diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml deleted file mode 100644 index 8b0f7d3..0000000 --- a/.github/workflows/build-deploy.yml +++ /dev/null @@ -1,38 +0,0 @@ -# When someone pushes to `main` branch, -# or when "Workflow Name Upgrade Packages" workflow succeeded, -# build the create-react-app project and deploy the static files to `gh-pages` branch - -name: Workflow Name Build CRA And Push Static Files To gh-pages Branch - -on: - workflow_dispatch: - push: - branches: - - main - workflow_run: # Only trigger, when the "Workflow Name Upgrade Packages" workflow succeeded - workflows: ["Workflow Name Upgrade Packages"] - types: - - completed - -jobs: - job_id_build_and_push: - name: Job Name Build And Push - runs-on: ubuntu-latest - - steps: - - name: Step Name Checkout code - uses: actions/checkout@v2 - - - name: Step Name Install Node.js - uses: actions/setup-node@v1 - with: - node-version: 16.x - - - name: Step Name Build this project - run: ./build.sh - - - name: Step Name Push to gh-pages branch - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./build diff --git a/.github/workflows/upgrade.yml b/.github/workflows/upgrade.yml deleted file mode 100644 index 31a1750..0000000 --- a/.github/workflows/upgrade.yml +++ /dev/null @@ -1,26 +0,0 @@ -# Run on 00:00 every Monday -# Upgrade package-lock.json then git push -# -# > Note: You cannot trigger new workflow runs using the GITHUB_TOKEN -# So the git push in this workflow will not trigger build-deploy.yml -# But we need build-deploy.yml to listen to upgrade.yml succeeded - -name: Workflow Name Upgrade Packages - -on: - workflow_dispatch: - schedule: - - cron: '0 0 * * 1' # 00:00 every Monday - -# Defining access for the GITHUB_TOKEN scopes (GITHUB_TOKEN used actions/checkout@v3 could git push) -permissions: - contents: write - -jobs: - job_id_upgrade_packages: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Step Name Upgrade Packages - run: | - ./upgrade.sh diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 4d29575..0000000 --- a/.gitignore +++ /dev/null @@ -1,23 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# production -/build - -# misc -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local - -npm-debug.log* -yarn-debug.log* -yarn-error.log* diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index bf6c5e3..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "jest.enable": false -} diff --git a/public/404.html b/404.html similarity index 100% rename from public/404.html rename to 404.html diff --git a/DEVELOP.md b/DEVELOP.md deleted file mode 100644 index 90e2e7b..0000000 --- a/DEVELOP.md +++ /dev/null @@ -1,23 +0,0 @@ -# DEVELOP - -## Upgrade @db-man/components - -```bash -npm i -``` - -## How to develop - -```bash -npm start -``` - -## How to test locally - -```bash -npm run build -cd build -python -m http.server -``` - -Access http://localhost:8000 diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 6492c29..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2022 db-man - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md deleted file mode 100644 index 6b79202..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# db-man - -https://db-man.github.io/ diff --git a/asset-manifest.json b/asset-manifest.json new file mode 100644 index 0000000..fbeb7a9 --- /dev/null +++ b/asset-manifest.json @@ -0,0 +1,15 @@ +{ + "files": { + "main.css": "/static/css/main.46031dbd.css", + "main.js": "/static/js/main.132ad8fc.js", + "static/js/787.a5b11e52.chunk.js": "/static/js/787.a5b11e52.chunk.js", + "index.html": "/index.html", + "main.46031dbd.css.map": "/static/css/main.46031dbd.css.map", + "main.132ad8fc.js.map": "/static/js/main.132ad8fc.js.map", + "787.a5b11e52.chunk.js.map": "/static/js/787.a5b11e52.chunk.js.map" + }, + "entrypoints": [ + "static/css/main.46031dbd.css", + "static/js/main.132ad8fc.js" + ] +} \ No newline at end of file diff --git a/build.sh b/build.sh deleted file mode 100755 index 3540792..0000000 --- a/build.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -ex - -echo "[db-man] Install NPM packages" -npm i -git diff - -echo "[db-man] Build project" -npm run build diff --git a/public/favicon.ico b/favicon.ico similarity index 100% rename from public/favicon.ico rename to favicon.ico diff --git a/index.html b/index.html new file mode 100644 index 0000000..983610f --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +
- Edit src/App.tsx
and save to reload.
-
0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;et&&Ft&&Ft[0]&&Ft[1]&&E.isAfter(Ft[1],Ft[0])&&(r=Ft);var a=R;if(R&&"object"===(0,he.Z)(R)&&R.defaultValue){var i=R.defaultValue;a=(0,g.Z)((0,g.Z)({},R),{},{defaultValue:By(i,tt)||void 0})}return f.createElement(Fy.Provider,{value:{inRange:!0,panelPosition:t,rangedValue:At||Ue,hoverRangedValue:r}},f.createElement(Sw,(0,d.Z)({},e,n,{cellRender:kn,showTime:a,mode:Ye[tt],generateConfig:E,style:void 0,direction:be,disabledDate:0===tt?lt:st,disabledTime:function(e){return!!B&&B(e,0===tt?"start":"end")},className:u()((0,o.Z)({},"".concat(l,"-panel-focused"),0===tt?!mn:!En)),value:By(Ue,tt),locale:C,tabIndex:-1,onPanelChange:function(e,n){0===tt&&qt(!0),1===tt&&nn(!0),$e(Dy(Ye,n,tt),Dy(Ue,e,tt));var r=e;"right"===t&&Ye[tt]===n&&(r=by(r,n,E,-1)),Ve(r,tt)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:By(Ue,0===tt?1:0)})))}var On=0,Rn=0;if(tt&&ke.current&&Me.current&&Ze.current&&Pe.current){On=ke.current.offsetWidth+Me.current.offsetWidth;var Pn=Pe.current.offsetLeft>On?Pe.current.offsetLeft-On:Pe.current.offsetLeft,Tn=Ze.current.offsetWidth,Nn=Pe.current.offsetWidth;Tn&&Nn&&On>Tn-Nn-("rtl"===be?0:Pn)&&(Rn=On)}var Hn="rtl"===be?{right:On}:{left:On};var jn,Ln,In=f.createElement("div",{className:u()("".concat(l,"-range-wrapper"),"".concat(l,"-").concat(O,"-range-wrapper")),style:{minWidth:ft}},f.createElement("div",{ref:Pe,className:"".concat(l,"-range-arrow"),style:Hn}),function(){var e,t=xw(l,Ye[tt],ee),n=Ew({prefixCls:l,components:me,needConfirmButton:Ce,okDisabled:!By(Ue,tt)||A&&A(Ue[tt]),locale:C,onOk:function(){By(Ue,tt)&&(vt(Ue,tt),null===pe||void 0===pe||pe(Ue),rt(!1,tt,"confirm"))}});if("time"===O||R)e=Mn();else{var r=De(tt),o=by(r,O,E),a=Ye[tt]===O,i=Mn(!!a&&"left",{pickerValue:r,onPickerValueChange:function(e){Ve(e,tt)}}),c=Mn("right",{pickerValue:o,onPickerValueChange:function(e){Ve(by(e,O,E,-1),tt)}});e="rtl"===be?f.createElement(f.Fragment,null,c,a&&i):f.createElement(f.Fragment,null,i,a&&c)}var s=f.createElement("div",{className:"".concat(l,"-panel-layout")},f.createElement(zw,{prefixCls:l,presets:zn,onClick:function(e){vt(e,null),rt(!1,tt,"preset")},onHover:function(e){Bt(e)}}),f.createElement("div",null,f.createElement("div",{className:"".concat(l,"-panels")},e),(t||n)&&f.createElement("div",{className:"".concat(l,"-footer")},t,n)));return W&&(s=W(s)),f.createElement("div",{className:"".concat(l,"-panel-container"),style:{marginLeft:Rn},ref:Ze,onMouseDown:function(e){e.preventDefault()}},s)}());Y&&(jn=f.createElement("span",{className:"".concat(l,"-suffix"),onMouseDown:function(e){e.preventDefault()}},Y)),X&&(By(Ie,0)&&!He[0]||By(Ie,1)&&!He[1])&&(Ln=f.createElement("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation();var t=Ie;He[0]||(t=Dy(t,null,0)),He[1]||(t=Dy(t,null,1)),vt(t,null),rt(!1,tt,"clear")},className:"".concat(l,"-clear")},q||f.createElement("span",{className:"".concat(l,"-clear-btn")})));var _n={size:My(O,Te[0],E)},An=0,Bn=0;ke.current&&ze.current&&Me.current&&(0===tt?Bn=ke.current.offsetWidth:(An=On,Bn=ze.current.offsetWidth));var Dn="rtl"===be?{right:An}:{left:An};return f.createElement(Ly.Provider,{value:{operationRef:Ne,hideHeader:"time"===O,onDateMouseEnter:function(e){Wt(Dy(Ue,e,tt)),0===tt?Yt(e):tn(e)},onDateMouseLeave:function(){Wt(Dy(Ue,null,tt)),0===tt?qt():nn()},hideRanges:!0,onSelect:function(e,t){var n=Dy(Ue,e,tt);"submit"===t||"key"!==t&&!Ce?(vt(n,tt),0===tt?qt():nn(),He[0===tt?1:0]?rt(!1,!1,"confirm"):rt(!1,tt,"confirm")):Ge(n)},open:et}},f.createElement(kw,{visible:et,popupElement:In,popupStyle:v,prefixCls:l,dropdownClassName:b,dropdownAlign:w,getPopupContainer:x,transitionName:y,range:!0,direction:be},f.createElement("div",(0,d.Z)({ref:Se,className:u()(l,"".concat(l,"-range"),h,(t={},(0,o.Z)(t,"".concat(l,"-disabled"),He[0]&&He[1]),(0,o.Z)(t,"".concat(l,"-focused"),0===tt?vn:xn),(0,o.Z)(t,"".concat(l,"-rtl"),"rtl"===be),t)),style:p,onClick:function(e){fe&&fe(e),et||Oe.current.contains(e.target)||Re.current.contains(e.target)||(He[0]?He[1]||ht(1):ht(0))},onMouseEnter:ue,onMouseLeave:de,onMouseDown:function(e){ce&&ce(e),!et||!vn&&!xn||Oe.current.contains(e.target)||Re.current.contains(e.target)||e.preventDefault()},onMouseUp:se},ao(e,{aria:!0,data:!0})),f.createElement("div",{className:u()("".concat(l,"-input"),(n={},(0,o.Z)(n,"".concat(l,"-input-active"),0===tt),(0,o.Z)(n,"".concat(l,"-input-placeholder"),!!Kt),n)),ref:ke},f.createElement("input",(0,d.Z)({id:s,disabled:He[0],readOnly:J||"function"===typeof Te[0]||!mn,value:Kt||Ot,onChange:function(e){Rt(e.target.value)},autoFocus:Z,placeholder:By(S,0)||"",ref:Oe},pn,_n,{autoComplete:xe}))),f.createElement("div",{className:"".concat(l,"-range-separator"),ref:Me},N),f.createElement("div",{className:u()("".concat(l,"-input"),(a={},(0,o.Z)(a,"".concat(l,"-input-active"),1===tt),(0,o.Z)(a,"".concat(l,"-input-placeholder"),!!en),a)),ref:ze},f.createElement("input",(0,d.Z)({disabled:He[1],readOnly:J||"function"===typeof Te[0]||!En,value:en||Ht,onChange:function(e){jt(e.target.value)},placeholder:By(S,1)||"",ref:Re},yn,_n,{autoComplete:xe}))),f.createElement("div",{className:"".concat(l,"-active-bar"),style:(0,g.Z)((0,g.Z)({},Dn),{},{width:Bn,position:"absolute"})}),jn,Ln)))}var Lw=function(e){(0,c.Z)(n,e);var t=(0,l.Z)(n);function n(){var e;(0,a.Z)(this,n);for(var r=arguments.length,i=new Array(r),c=0;c=r?[0,0]:[i,r]}),[e,t,r,o,a,s,d,u.map((function(e){return e.key})).join("_"),p])}(fe,be,H?I:D,he,ve,me,(0,g.Z)((0,g.Z)({},e),{},{tabs:c})),Pe=(0,r.Z)(Re,2),Te=Pe[0],Ne=Pe[1],He=Xt((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=fe.get(e)||{width:0,height:0,left:0,right:0,top:0};if(H){var n=I;m?t.rightI+be&&(n=t.right+t.width-be):t.left<-I?n=-t.left:t.left+t.width>-I+be&&(n=-(t.left+t.width-be)),V(0),_(Ee(n))}else{var r=D;t.top<-D?r=-t.top:t.top+t.height>-D+be&&(r=-(t.top+t.height-be)),_(0),V(Ee(r))}})),je={};"top"===E||"bottom"===E?je[m?"marginRight":"marginLeft"]=C:je.marginTop=C;var Le=c.map((function(e,t){var n=e.key;return f.createElement(ZE,{id:p,prefixCls:i,key:n,tab:e,style:0===t?void 0:je,closable:e.closable,editable:w,active:n===v,renderWrapper:S,removeAriaLabel:null===x||void 0===x?void 0:x.removeAriaLabel,onClick:function(e){Z(n,e)},onFocus:function(){He(n),Me(),R.current&&(m||(R.current.scrollLeft=0),R.current.scrollTop=0)}})})),Ie=function(){return de((function(){var e=new Map;return c.forEach((function(t){var n,r=t.key,o=null===(n=P.current)||void 0===n?void 0:n.querySelector('[data-node-key="'.concat(gE(r),'"]'));o&&e.set(r,{width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,top:o.offsetTop})})),e}))};(0,f.useEffect)((function(){Ie()}),[c.map((function(e){return e.key})).join("_")]);var _e=hE((function(){var e=kE(z),t=kE(M),n=kE(O);G([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=kE(N);ne(r);var o=kE(T);ie(o);var a=kE(P);q([a[0]-r[0],a[1]-r[1]]),Ie()})),Ae=c.slice(0,Te),Be=c.slice(Ne+1),De=[].concat((0,te.Z)(Ae),(0,te.Z)(Be)),Ve=(0,f.useState)(),Fe=(0,r.Z)(Ve,2),We=Fe[0],Ue=Fe[1],Ge=fe.get(v),Ke=(0,f.useRef)();function Xe(){le.cancel(Ke.current)}(0,f.useEffect)((function(){var e={};return Ge&&(H?(m?e.right=Ge.right:e.left=Ge.left,e.width=Ge.width):(e.top=Ge.top,e.height=Ge.height)),Xe(),Ke.current=le((function(){Ue(e)})),Xe}),[Ge,H,m]),(0,f.useEffect)((function(){He()}),[v,we,xe,mE(Ge),mE(fe),H]),(0,f.useEffect)((function(){_e()}),[m]);var Ye,qe,$e,Je,Qe=!!De.length,et="".concat(i,"-nav-wrap");return H?m?(qe=I>0,Ye=I!==xe):(Ye=I<0,qe=I!==we):($e=D<0,Je=D!==we),f.createElement(Q,{onResize:_e},f.createElement("div",{ref:(0,b.x1)(t,z),role:"tablist",className:u()("".concat(i,"-nav"),l),style:s,onKeyDown:function(){Me()}},f.createElement(EE,{ref:M,position:"left",extra:y,prefixCls:i}),f.createElement("div",{className:u()(et,(n={},(0,o.Z)(n,"".concat(et,"-ping-left"),Ye),(0,o.Z)(n,"".concat(et,"-ping-right"),qe),(0,o.Z)(n,"".concat(et,"-ping-top"),$e),(0,o.Z)(n,"".concat(et,"-ping-bottom"),Je),n)),ref:R},f.createElement(Q,{onResize:_e},f.createElement("div",{ref:P,className:"".concat(i,"-nav-list"),style:{transform:"translate(".concat(I,"px, ").concat(D,"px)"),transition:ke?"none":void 0}},Le,f.createElement(wE,{ref:N,prefixCls:i,locale:x,editable:w,style:(0,g.Z)((0,g.Z)({},0===Le.length?void 0:je),{},{visibility:Qe?"hidden":null})}),f.createElement("div",{className:u()("".concat(i,"-ink-bar"),(0,o.Z)({},"".concat(i,"-ink-bar-animated"),h.inkBar)),style:We})))),f.createElement(SE,(0,d.Z)({},e,{removeAriaLabel:null===x||void 0===x?void 0:x.removeAriaLabel,ref:T,prefixCls:i,tabs:De,className:!Qe&&ye,tabMoving:!!ke})),f.createElement(EE,{ref:O,position:"right",extra:y,prefixCls:i})))}var OE=f.forwardRef(ME),RE=["renderTabBar"],PE=["label","key"];function TE(e){var t=e.renderTabBar,n=(0,cr.Z)(e,RE),r=f.useContext(iE).tabs;return t?t((0,g.Z)((0,g.Z)({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=(0,cr.Z)(e,PE);return f.createElement(lE,(0,d.Z)({tab:t,key:n,tabKey:n},r))}))}),OE):f.createElement(OE,n)}var NE=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],HE=0;function jE(e,t){var n,a=e.id,i=e.prefixCls,c=void 0===i?"rc-tabs":i,l=e.className,s=e.items,p=e.direction,h=e.activeKey,v=e.defaultActiveKey,m=e.editable,b=e.animated,y=e.tabPosition,w=void 0===y?"top":y,x=e.tabBarGutter,E=e.tabBarStyle,C=e.tabBarExtraContent,S=e.locale,Z=e.moreIcon,k=e.moreTransitionName,z=e.destroyInactiveTabPane,M=e.renderTabBar,O=e.onChange,R=e.onTabClick,P=e.onTabScroll,T=e.getPopupContainer,N=e.popupClassName,H=(0,cr.Z)(e,NE),j=f.useMemo((function(){return(s||[]).filter((function(e){return e&&"object"===(0,he.Z)(e)&&"key"in e}))}),[s]),L="rtl"===p,I=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,g.Z)({inkBar:!0},"object"===(0,he.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(b),_=(0,f.useState)(!1),A=(0,r.Z)(_,2),B=A[0],D=A[1];(0,f.useEffect)((function(){D(Uu())}),[]);var V=$t((function(){var e;return null===(e=j[0])||void 0===e?void 0:e.key}),{value:h,defaultValue:v}),F=(0,r.Z)(V,2),W=F[0],U=F[1],G=(0,f.useState)((function(){return j.findIndex((function(e){return e.key===W}))})),K=(0,r.Z)(G,2),X=K[0],Y=K[1];(0,f.useEffect)((function(){var e,t=j.findIndex((function(e){return e.key===W}));-1===t&&(t=Math.max(0,Math.min(X,j.length-1)),U(null===(e=j[t])||void 0===e?void 0:e.key));Y(t)}),[j.map((function(e){return e.key})).join("_"),W,X]);var q=$t(null,{value:a}),$=(0,r.Z)(q,2),J=$[0],Q=$[1];(0,f.useEffect)((function(){a||(Q("rc-tabs-".concat(HE)),HE+=1)}),[]);var ee={id:J,activeKey:W,animated:I,tabPosition:w,rtl:L,mobile:B},te=(0,g.Z)((0,g.Z)({},ee),{},{editable:m,locale:S,moreIcon:Z,moreTransitionName:k,tabBarGutter:x,onTabClick:function(e,t){null===R||void 0===R||R(e,t);var n=e!==W;U(e),n&&(null===O||void 0===O||O(e))},onTabScroll:P,extra:C,style:E,panes:null,getPopupContainer:T,popupClassName:N});return f.createElement(iE.Provider,{value:{tabs:j,prefixCls:c}},f.createElement("div",(0,d.Z)({ref:t,id:a,className:u()(c,"".concat(c,"-").concat(w),(n={},(0,o.Z)(n,"".concat(c,"-mobile"),B),(0,o.Z)(n,"".concat(c,"-editable"),m),(0,o.Z)(n,"".concat(c,"-rtl"),L),n),l)},H),undefined,f.createElement(TE,(0,d.Z)({},te,{renderTabBar:M})),f.createElement(uE,(0,d.Z)({destroyInactiveTabPane:z},ee,{animated:I}))))}var LE=f.forwardRef(jE);var IE=function(){return null},_E={motionAppear:!1,motionEnter:!0,motionLeave:!0};var AE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&(n+=", "+o.join(", "));var a=0;r(this.aliases).forEach((function(e){var r=t.aliases[e];r.children&&r.referenceCount>1&&(n+=", alias"+ ++a+"="+e,r.children[0]="alias"+a)})),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var i=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&i.push("blockParams"),this.useDepths&&i.push("depths");var c=this.mergeSource(n);return e?(i.push(c),Function.apply(this,i)):this.source.wrap(["function(",i.join(","),") {\n ",c,"}"])},mergeSource:function(e){var t=this.environment.isSimple,n=!this.forceBuffer,r=void 0,o=void 0,a=void 0,i=void 0;return this.source.each((function(e){e.appendToBuffer?(a?e.prepend(" + "):a=e,i=e):(a&&(o?a.prepend("buffer += "):r=!0,i.add(";"),a=i=void 0),o=!0,t||(n=!1))})),n?a?(a.prepend("return "),i.add(";")):o||this.source.push('return "";'):(e+=", buffer = "+(r?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),i.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(r?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(e){var t=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var r=this.popStack();n.splice(1,0,r),this.push(this.source.functionCall(t,"call",n))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var n=this.topStack();t.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack((function(e){return[" != null ? ",e,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,n,r){var o=0;r||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[o++])),this.resolvePath("context",e,o,t,n)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,n)},resolvePath:function(e,t,n,r,o){var a=this;if(this.options.strict||this.options.assumeObjects)this.push(function(e,t,n,r,o){var a=t.popStack(),i=n.length;for(e&&i--;rthis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,n=e.length;t