diff --git a/semag/al2/js/animations.6d4f80e8.js b/semag/al2/js/animations.6d4f80e8.js new file mode 100644 index 00000000..ab584e80 --- /dev/null +++ b/semag/al2/js/animations.6d4f80e8.js @@ -0,0 +1,2 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["animations"],{"407f":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"animations"},[i("AnimationFinal"),i("AnimationFusion"),i("AnimationMixed"),i("AnimationNew"),t.shouldRenderEndAnimation?i("div",[i("AnimationEnd")],1):t._e(),t.shouldRenderCompletionAnimation?i("div",[i("AnimationCompletion")],1):t._e()],1)},s=[],a=i("6e95"),o=i("5c57"),r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"final-animation-container"},t._l(t.elementsList,(function(e){return i("FinalSingle",{key:e[0].elementId,attrs:{elements:e},on:{remove:t.onRemove,finish:t.onSingleFinished}})})),1)},h=[],d=i("1663"),l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",t._l(t.elements,(function(e){return i("div",{key:e.id,ref:"element",refInFor:!0,staticClass:"dematerialize",class:t.classes,style:t.getStyles(e.position)},[i("div",{staticClass:"core"}),i("div",{staticClass:"ring1"}),i("div",{staticClass:"ring2"})])})),0)},m=[],c=i("53b2"),u=i("7d61"),p=i("d257");const v=u["a"][c["b"]];var A=a["a"].extend({name:"animation-final-single",props:{elements:{type:Array,required:!0}},computed:{id(){return this.elements[0].elementId},classes(){return{"js-active":!0}}},mounted(){const t=Object(p["u"])(this.$refs.element[0],t=>{t===v.delete&&this.onRemoveElement(),t===v.end&&this.onAnimationEnd()});this.$once("hook:beforeDestroy",t)},methods:{getStyles(t){return{top:`${t.y}px`,left:`${t.x}px`}},onRemoveElement(){this.$emit("remove",this.id)},onAnimationEnd(){this.$emit("finish",this.id)}}}),x=A,f=i("2877"),E=Object(f["a"])(x,l,m,!1,null,null,null),w=E.exports,C=a["a"].extend({name:"animation-final",components:{FinalSingle:w},computed:{...Object(o["b"])({elementsIds:"animationFinalElements",finalElements:"workspaceFinal",exhaustedElements:"workspaceExhausted"}),allElements(){return this.finalElements.concat(this.exhaustedElements)},elementsList(){return this.elementsIds.map(t=>this.allElements.filter(({elementId:e})=>e===t)).filter(t=>!!t.length)}},methods:{onRemove(t){this.$store.dispatch("animationFinalMiddle",t)},onSingleFinished(t){this.$store.dispatch("workspaceFinalRemove",t),this.$store.dispatch("workspaceExhaustedRemove",t),this.$store.dispatch("animationFinalFinished",t),d["a"].emit("ANIMATION_FINAL_SINGLE_END")}}}),N=C,_=Object(f["a"])(N,r,h,!1,null,null,null),b=_.exports,y=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"animation-end",rawName:"v-animation-end",value:t.onAnimation,expression:"onAnimation"}],ref:"element",staticClass:"fusion",class:t.classes,style:t.styles,attrs:{id:"fusion"}},[i("div",{staticClass:"fusion-charge-ring"}),i("div",{staticClass:"fusion-core-dark"}),i("div",{staticClass:"fusion-core-light"}),i("div",{staticClass:"fusion-core-ring"})])},I=[];const g=u["a"][c["c"]];var $=a["a"].extend({name:"animation-fusion",data:()=>({isRunning:!1,width:0,height:0}),computed:{...Object(o["b"])({dimensions:"workspaceBoxDimensions",mixHasNewChildren:"mixHasNewChildren",isAnimationActive:"isAnimationActive",mixFather:"mixFather",mixMother:"mixMother"}),isActive(){return this.isAnimationActive(c["c"])||this.isRunning},classes(){return{"js-active":this.isActive}},position(){if(!this.isActive||!this.mixFather||!this.mixMother)return{x:-500,y:0};const t=this.mixFather.position,e=this.mixMother.position,i=(t.x+e.x)/2+this.dimensions.width/2,n=(t.y+e.y)/2+this.dimensions.height/2;return{x:i,y:n}},styles(){const t=this.position,e=t.y-this.height/2,i=t.x-this.width/2;return{top:`${e}px`,left:`${i}px`}}},mounted(){this.updateDimensions(),d["a"].onResize(()=>this.updateDimensions())},methods:{updateDimensions(){const t=Object(p["g"])(this.$refs.element),e=parseInt(t.width,10),i=parseInt(t.height,10);this.width=e,this.height=i},onAnimation({animationName:t}){t===g.middle&&this.onStartNext(),t===g.end&&this.onAnimationEnd()},onStartNext(){this.isRunning=!0,this.$store.dispatch("animationFusionMiddle")},onAnimationEnd(){this.isRunning=!1,this.mixHasNewChildren||this.$store.dispatch("animationReset")}}}),O=$,j=Object(f["a"])(O,y,I,!1,null,null,null),F=j.exports,S=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",t._l(t.animations,(function(e){return i("MixedItem",{key:e.id,attrs:{children:e.children,position:e.position},on:{"animation-end":function(i){return t.onAnimationEnd(e.id)}}})})),1)},k=[],R=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"already-made-container",class:t.classes,style:t.parentStyles},t._l(t.children,(function(e,n){return i("img",{key:e,ref:"icons",refInFor:!0,staticClass:"already-done",class:t.childClasses(n),attrs:{alt:t.getName(e),src:t.iconUrl(e)}})})),0)},B=[],D=i("fd41"),M=a["a"].extend({name:"animation-mixed-item",props:{position:Object,children:Array},data:()=>({isActive:!1}),computed:{parentStyles(){return{top:`${this.position.y}px`,left:`${this.position.x}px`}},classes(){return{"js-active":this.isActive}}},mounted(){this.$nextTick(()=>this.setup())},methods:{setup(){Object(p["y"])(this.$el);const t=this.$refs.icons;if(!t||!t.length)return;const e=Object(p["s"])(t[0],()=>{this.$emit("animation-end"),e()});window.setTimeout(()=>{this.isActive=!0},15)},iconUrl(t){return Object(D["a"])(t)},getName(t){const e=this.$store.getters.elementById(t);return e?e.name:""},childClasses(t){return this.isActive?`already-made-${this.children.length}-${t+1}`:""}}}),K=M,T=Object(f["a"])(K,R,B,!1,null,null,null),H=T.exports,L=a["a"].extend({name:"animation-mixed",components:{MixedItem:H},data(){return{animations:[]}},computed:{...Object(o["b"])(["mixFather","mixChildren"])},mounted(){d["a"].on("ANIMATION_MIXED_START",()=>this.addAnimation())},methods:{addAnimation(){if(!this.mixFather)return;const t=this.mixChildren.map(t=>t.id),e={...this.mixFather.position};this.animations.push({id:Date.now(),children:t,position:e})},onAnimationEnd(t){this.animations=this.animations.filter(({id:e})=>e!==t)}}}),Y=L,P=Object(f["a"])(Y,S,k,!1,null,null,null),W=P.exports,U=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"animation-end",rawName:"v-animation-end",value:t.onAnimation,expression:"onAnimation"}],staticClass:"new-element",class:t.classes,attrs:{id:t.ANIMATION_NEW_ID},on:{click:t.checkNext}},[i("div",{staticClass:"background"}),t._m(0),i("div",{staticClass:"new-element-image-container"},[t.current?i("img",{attrs:{src:t.iconUrl,alt:t.name}}):t._e()]),i("div",{staticClass:"absolute-center outer-name"},[t.isActive?i("div",{staticClass:"name"},[i("span",[t._v(t._s(t.name))])]):t._e()]),i("div",{staticClass:"absolute-center"},[i("div",{staticClass:"description"},[t._v(t._s(t.description))])]),t.isNewBaseActive?i("NewBaseAnimation",{attrs:{active:t.isNewBaseActive},on:{hidden:t.onNewBaseHidden}}):t._e()],1)},z=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"new-element-rays-container"},[i("div",{staticClass:"rays"})])}],J=i("b047"),q=i.n(J),G=i("cd57"),X=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"animation-end",rawName:"v-animation-end",value:t.onAnimation,expression:"onAnimation"}],staticClass:"new-base-element",class:t.classes,on:{click:t.hide}},[t._m(0)])},Q=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"new-item-unlocked"},[t._v(" new item"),i("br"),t._v("revealed! ")])}];const V=u["a"][c["f"]],Z=250;var tt=a["a"].extend({name:"animation-new-base",props:{active:Boolean},data(){return{timestamp:0,hiding:!1}},computed:{classes(){return{"js-active":this.active&&!this.hiding}}},mounted(){this.initKeysListeners()},beforeDestroy(){this.destroyKeysListeners()},methods:{onAnimation({animationName:t}){t===V.baseShow&&this.onShown(),t===V.baseHide&&this.onHidden()},initKeysListeners(){this.hide=this.hide.bind(this),d["a"].on("KEY_ESC",this.hide),d["a"].on("KEY_SPACE",this.hide),d["a"].on("KEY_ENTER",this.hide)},destroyKeysListeners(){d["a"].off("KEY_ESC",this.hide),d["a"].off("KEY_SPACE",this.hide),d["a"].off("KEY_ENTER",this.hide)},hide(){this.active&&!this.hiding&&(this.timestamp+Z>Date.now()||(this.hiding=!0))},onShown(){this.timestamp=Date.now()},onHidden(){this.active&&(this.hiding=!1,this.timestamp=0,this.$emit("hidden"))}}}),et=tt,it=Object(f["a"])(et,X,Q,!1,null,null,null),nt=it.exports;const st=u["a"][c["f"]],at=300;var ot=a["a"].extend({name:"animation-new",components:{NewBaseAnimation:nt},data:()=>({timestamp:0,currentIndex:0,hide:!1,hideContent:!1,isNewBaseActive:!1}),computed:{...Object(o["b"])(["isAnimationActive","mixChildren","elementIsNewlyDiscovered","elementById","descriptionById"]),isActive(){return this.isAnimationActive(c["f"])||this.hide},children(){return this.mixChildren.filter(({id:t})=>this.elementIsNewlyDiscovered(t))},hasElements(){return this.currentIndex+1this.checkNext()),d["a"].on("KEY_SPACE",()=>this.checkNext()),d["a"].on("KEY_ENTER",()=>this.checkNext())},checkNext(){!this.isActive||this.hide||this.isNewBaseActive||this.timestamp+at>Date.now()||(this.hasElements?this.hideContent=!0:(this.hide=!0,this.$store.dispatch("animationNewEnding",{removeParents:!1})))},onAnimation({animationName:t}){t===st.start&&this.onAnimationStart(),t===st.hideContent&&this.onContentHidden(),t===st.showContent&&this.onContentShow(),t===st.end&&this.onAnimationEnd()},onAnimationStart(){this.timestamp=Date.now()},onContentHidden(){this.hideContent&&this.hasElements&&(this.currentIndex++,this.isBase&&(this.isNewBaseActive=!0))},onContentShow(){this.hideContent&&!this.isNewBaseActive&&(this.showContent(),d["a"].emit("ANIMATION_NEW_POP"))},onNewBaseHidden(){this.isNewBaseActive=!1,this.showContent(),d["a"].emit("ANIMATION_NEW_POP")},showContent(){this.hideContent=!1,this.timestamp=Date.now()},onAnimationEnd(){this.hide=!1,this.$store.dispatch("animationReset"),this.$store.dispatch("animationNewEnd"),d["a"].emit("ANIMATION_NEW_END"),this.currentIndex=0,this.timestamp=0,this.hideContent=!1}}}),rt=ot,ht=Object(f["a"])(rt,U,z,!1,null,null,null),dt=ht.exports,lt=a["a"].extend({name:"animations",components:{AnimationFinal:b,AnimationFusion:F,AnimationMixed:W,AnimationNew:dt,AnimationEnd:()=>i.e("end-animation").then(i.bind(null,"0e2c")),AnimationCompletion:()=>i.e("completion-animation").then(i.bind(null,"ee39"))},computed:{...Object(o["b"])(["hasAllElements","hasAllExhausted"]),shouldRenderEndAnimation(){return this.hasAllElements},shouldRenderCompletionAnimation(){return this.hasAllExhausted}}}),mt=lt,ct=Object(f["a"])(mt,n,s,!1,null,null,null);e["default"]=ct.exports}}]); +//# sourceMappingURL=animations.6d4f80e8.js.map \ No newline at end of file diff --git a/semag/al2/js/app.64a51313.js b/semag/al2/js/app.64a51313.js new file mode 100644 index 00000000..f2c3304a --- /dev/null +++ b/semag/al2/js/app.64a51313.js @@ -0,0 +1,2 @@ +(function(t){function e(e){for(var i,n,o=e[0],c=e[1],l=e[2],h=0,d=[];h{if(t.keyCode!==i["b"])return;const e=t.srcElement||t.target;if(!e||!e.tagName)return;const s=e.tagName.toUpperCase(),r=(e.type||"").toUpperCase();let a=!0;("INPUT"===s&&n.includes(r)||"TEXTAREA"===s)&&(a=e.readOnly||e.disabled),a&&t.preventDefault()},a=t=>{const e=document.createEvent("Event");e.initEvent(t,!0,!0),document.dispatchEvent(e)},o=(t=document.body,e,s=!0)=>{const i=document.createEvent("MouseEvents");i.initMouseEvent(e,!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,0,null),i.simulated=s,t.dispatchEvent(i)},c=(t=document.body,e=!0)=>o(t,"mouseup",e)},1663:function(t,e,s){"use strict";var i=s("2b0e"),n=s("b047"),r=s.n(n),a=s("152b"),o=s("571d"),c=s("80b0"),l=s.n(c),h=s("06c5");const d=[{event:"orientationchange",handler:t=>window.setTimeout(()=>t("RESIZE"),350)},{event:"beforeunload",handler:"UNLOAD"},{event:"pagehide",handler:"UNLOAD"},{event:"blur",handler:t=>l()(()=>{document.activeElement&&"IFRAME"===document.activeElement.tagName||t("BLUR")})},{event:"focus",handler:"FOCUS"},{event:"online",handler:"ONLINE"},{event:"offline",handler:"OFFLINE"},{event:"popstate",handler:"BACK_BUTTON"},{parent:"document",event:"visibilitychange",handler:t=>{let e="VISIBILITY_HIDDEN";"visible"===document.visibilityState&&(e="VISIBILITY_VISIBLE"),t(e)}},{parent:"document",event:"keydown",handler:(t,e)=>{const s=e;Object(a["b"])(s);const{keyCode:i}=s;t("KEY_DOWN",s),i!==h["c"]?i!==h["d"]?i===h["e"]&&t("KEY_SPACE",s):t("KEY_ESC",s):t("KEY_ENTER",s)}}],u=[...d],m=new i["a"]({});class p{constructor(t){this.initEventHandlers(t),this._ready=new Promise(t=>this.once(o["a"],t))}init(t){this.initInitialEvents(t),this.initCustomEvents()}initInitialEvents(t){this.once("LIBRARY_RENDERED",()=>window.setTimeout(()=>this.emit(o["a"]),150)),this.once("LIBRARY_EMPTY",()=>window.setTimeout(()=>this.emit(o["a"]),150)),this.once("LOGGED_IN",()=>this.emit(o["a"])),this.once("NOT_LOGGED_IN",()=>window.setTimeout(()=>this.emit(o["a"]),250)),this.once(o["a"],()=>{Object(a["a"])(o["a"]),t.commit("GAME_READY")}),document.addEventListener(o["b"],()=>this.emit(o["b"]))}initCustomEvents(){const t=r()(()=>this.emit("RESIZE"),250);window.addEventListener("resize",t,!1)}initEventHandlers(t){t.forEach(({parent:t="window",event:e,handler:s})=>{const i="window"===t?window:document;let n;n="string"===typeof s?()=>this.emit(s):t=>s(this.emit,t),i.addEventListener(e,n,!1)})}on(t,e){m.$on(t,e)}once(t,e){m.$once(t,e)}off(t,e){m.$off(t,e)}emit(t,e){m.$emit(t,e)}then(t){return new Promise(e=>m.$once(t,e))}onResize(t){this.on("RESIZE",t)}onReady(){return this._ready}}e["a"]=new p(u)},"16b7":function(t,e,s){"use strict";var i;s.d(e,"a",(function(){return i})),function(t){t["WORKSPACE"]="workspace",t["WORKSPACE_INACTIVE"]="final-exhausted",t["PROGRESS"]="history",t["STATS"]="stats",t["ENCYCLOPEDIA"]="encyclopedia",t["SETTINGS"]="settings",t["RESET_TIMESTAMP"]="timestamp",t["TUTORIALS"]="tutorials"}(i||(i={}))},"199d":function(t,e,s){"use strict";s.d(e,"a",(function(){return n}));const i=()=>(Math.random()+1).toString(36).substring(4),n=t=>`${t}_${i()}`},"1ae4":function(t,e,s){t.exports=s.p+"img/logo.2b0c661a.svg"},2138:function(t,e,s){"use strict";s.d(e,"b",(function(){return i})),s.d(e,"c",(function(){return n})),s.d(e,"d",(function(){return r})),s.d(e,"a",(function(){return a})),s.d(e,"f",(function(){return o})),s.d(e,"e",(function(){return c})),s.d(e,"g",(function(){return l}));const i=2,n="library",r="workspace",a=12,o=.65,c="library",l="workspace"},2149:function(t,e,s){"use strict";var i;s.d(e,"a",(function(){return i})),function(t){t["FINAL"]="final",t["EXHAUSTED"]="exhausted",t["BASE"]="base",t["HINTS"]="hints",t["DLC"]="dlc",t["ENCYCLOPEDIA_INTRO"]="encyclopediaIntro",t["GAME_END"]="gameEnd",t["GAME_COMPLETION"]="gameCompletion"}(i||(i={}))},2260:function(t,e,s){t.exports=s.p+"img/popup-close.d2a03f3b.svg"},"22a7":function(t,e,s){"use strict";var i=s("c2e2"),n=s("ded8");const r=t=>t.reduce((t,e)=>(t[e]=!0,t),{});class a{analyze(t,e){const{totalProgress:s,timestamps:i}=this.analyzeHistory(t,e),{base:n,final:a}=this.analyzeProgress(t,s),{primes:o}=this.analyzeBase(t),c=r(a),l=s.filter(t=>!c.hasOwnProperty(t)&&!n.includes(t)&&!o.includes(t));return{progress:r(l),base:n,final:c,primes:o,timestamps:i}}analyzeHistory(t,e){const s={},r=[];return e.forEach(({mother:e,father:a,timestamp:o})=>{const c=Object(n["c"])([e,a]),l=Object(i["b"])(t,c);l.forEach(t=>{s.hasOwnProperty(t)||(s[t]=!0,r.push({id:t,timestamp:o}))})}),{totalProgress:Object.keys(s),timestamps:r}}analyzeProgress(t,e){const s=[],i=[];return e.forEach(e=>{const n=t[e];n.base&&s.push(e),n.final&&i.push(e)}),{base:s,final:i}}analyzeBase(t){const e=[];return Object.entries(t).forEach(([t,s])=>{s.prime&&e.push(t)}),{primes:e}}}e["a"]=new a},2321:function(t,e){},2540:function(t,e,s){"use strict";var i=s("b2eb"),n=s("d257");const r=()=>{const t=window.history.state;t&&t.popup||window.history.pushState({popup:!0},"")},a=()=>{const t=window.history.state;t&&t.popup&&window.history.back()};var o=s("1663"),c=s("c97d");const l=Object(n["k"])();class h{constructor(){this.handleKeyboard=()=>{this.$store.getters.isPopupClosable&&this.hide()}}init(t){this.$store=t,this.initHideListeners()}initHideListeners(){o["a"].on("KEY_ESC",this.handleKeyboard),o["a"].on("BACK_BUTTON",this.handleKeyboard)}hide(){this.$store.getters.isPopupActive&&this.$store.dispatch("popupHide",void 0)}onShow(t){r(),o["a"].emit("POPUP_SHOW",t),c["a"].handler&&c["a"].handler.disable()}onHide(t){l||a(),o["a"].emit("POPUP_HIDE",t),c["a"].handler&&c["a"].handler.enable(),t===i["ENCYCLOPEDIA"]&&o["a"].emit("ENCYCLOPEDIA_POPUP_HIDE")}onHidePromise(){return this.$store.getters.isPopupOverlayActive?new Promise(t=>{const e=this.$store.watch((t,e)=>e.isPopupOverlayActive,s=>{s||(e(),t())})}):Promise.resolve()}}e["a"]=new h},2929:function(t,e,s){"use strict";window.addEventListener("unhandledrejection",t=>{if(!t.reason)return;const e=/Loading chunk .+ failed/,s="#retry"===window.location.hash;e.test(t.reason)&&!s&&(window.location.hash="retry",window.location.reload(!0))})},"2ae7":function(t,e,s){"use strict";function i(){const t=document.createElement("fakeelement"),e={animation:"a",WebkitAnimation:"webkitA"},s=Object.keys(e).find(e=>void 0!==t.style[e])||"animation";return e[s]}s.d(e,"b",(function(){return n})),s.d(e,"a",(function(){return r}));const n="transitionend",r=`${i()}nimationend`;i()},"2de2":function(t,e,s){"use strict";s.d(e,"g",(function(){return i})),s.d(e,"e",(function(){return n})),s.d(e,"a",(function(){return r})),s.d(e,"f",(function(){return a})),s.d(e,"i",(function(){return o})),s.d(e,"d",(function(){return c})),s.d(e,"j",(function(){return l})),s.d(e,"h",(function(){return h})),s.d(e,"c",(function(){return d})),s.d(e,"b",(function(){return u}));const i="la2",n={apiKey:"AIzaSyAIeudM0cX1dqiXe7S57TFcNlStHdnC56c",authDomain:"little-alchemy-2.firebaseapp.com",databaseURL:"https://little-alchemy-2.firebaseio.com",storageBucket:"little-alchemy-2.appspot.com",messagingSenderId:"970099188369"},r=2e3,a="https://hints.littlealchemy2.com",o=1496268e3,c="https://help.littlealchemy2.com",l="1.2.1",h=!1,d=!1,u=!1},"33ff":function(t,e){},"3b56":function(t,e,s){"use strict";var i=s("16b7"),n=s("7897"),r=s("1663"),a=s("2138");const o={key:i["a"].PROGRESS,parse:t=>{const e=t.map(([t,e,s])=>({father:t,mother:e,timestamp:s}));return e},prepare:t=>{const e=t.getters.history;return e.map(({father:t,mother:e,timestamp:s})=>[t,e,s])},watch:[]},c={key:i["a"].WORKSPACE,parse:t=>t,prepare:t=>{if(!t.getters.hasProgress)return[];const e=document.querySelectorAll(`#${a["g"]} [data-id][data-normal]`),s=[];return Array.from(e).forEach(({dataset:{id:e}})=>{e!==t.getters.draggableHelperId&&s.push(t.getters.droppableById(e))}),s},watch:[]},l={key:i["a"].WORKSPACE_INACTIVE,parse:t=>t,prepare:t=>({workspaceFinal:t.getters.workspaceFinal,workspaceExhausted:t.getters.workspaceExhausted,exhausted:t.getters.exhaustedVisible}),watch:[]},h={key:i["a"].RESET_TIMESTAMP,parse:t=>t,prepare:t=>t.getters.resetTimestamp,watch:[]},d={key:i["a"].SETTINGS,parse:t=>t,prepare:t=>t.state.settings,watch:[]},u={key:i["a"].ENCYCLOPEDIA,parse:t=>t,prepare:t=>t.state.encyclopedia,watch:[]},m={key:i["a"].STATS,parse:t=>t,prepare:t=>({firstLaunch:t.getters.firstLaunch,sessionsCount:t.getters.sessionsCount}),watch:[]},p={key:i["a"].TUTORIALS,parse:t=>t,prepare:t=>({shownText:t.getters.tutorialTextShown}),watch:[]};var g={[i["a"].PROGRESS]:o,[i["a"].WORKSPACE]:c,[i["a"].WORKSPACE_INACTIVE]:l,[i["a"].RESET_TIMESTAMP]:h,[i["a"].SETTINGS]:d,[i["a"].ENCYCLOPEDIA]:u,[i["a"].STATS]:m,[i["a"].TUTORIALS]:p};s.d(e,"a",(function(){return i["a"]}));const f=["UNLOAD","VISIBILITY_HIDDEN"];class E{constructor(t){this.save=()=>{Object.values(this.entries).forEach(t=>{const e=t.prepare(this.$store);this.saveSingle(t.key,e)})},this.entries=t}init(t){this.$store=t,this.initSaveTriggers()}initSaveTriggers(){f.forEach(t=>r["a"].on(t,this.save)),Object.values(this.entries).forEach(({watch:t})=>t.forEach(t=>this.$store.watch((e,s)=>s[t],this.save)))}saveSingle(t,e){Object(n["b"])(t,e)}load(t){const e=Object(n["a"])(t);if(!e)return e;const s=this.getEntryByKey(t);return s?s.parse(e):e}disable(){f.forEach(t=>r["a"].off(t,this.save))}clear(){this.disable(),localStorage.clear()}getEntryByKey(t){return this.entries[t]||null}}const b=new E(g);e["b"]=b},"437c":function(t,e,s){},4819:function(t,e){},"4a5e":function(t,e){},5221:function(t,e){},"53b2":function(t,e,s){"use strict";s.d(e,"c",(function(){return i})),s.d(e,"b",(function(){return n})),s.d(e,"f",(function(){return r})),s.d(e,"a",(function(){return a})),s.d(e,"g",(function(){return o})),s.d(e,"e",(function(){return c})),s.d(e,"d",(function(){return l}));const i="FUSION",n="FINAL",r="NEW",a="CLEAR",o="REVERT",c="GAME_END",l="GAME_COMPLETION"},"54cb":function(t,e,s){"use strict";class i{constructor(){this.count=0}init(t){this.$store=t}getInitiallyUnlocked(){return this.getRecentlyUnlockedIds()}getRecentlyUnlockedIds(){this.count=0;const t=this.getDiscovered();return 0!==this.count?this.getDiscovered():t}getDiscovered(){return this.lockedIds.filter(t=>{const e=this.$store.getters.elementById(t);if(!e)return!1;const s=this.checkConditions(e);return this.count+=s?1:0,s})}checkConditions(t){if(!t.hasOwnProperty("condition")||!t.condition)return!1;const e=t.condition;return"elements"===e.type?this.checkElements(e.elements,e.min):"progress"!==e.type||this.checkProgress(e.total)}checkElements(t,e=0){const s=t.reduce((t,e)=>this.$store.getters.hasInProgress(e)?t+1:t,0);return s>=e}checkProgress(t){return this.$store.getters.totalProgress+this.count>=t}get lockedIds(){const t=this.$store.getters.baseElementsIds;return t.filter(t=>{const e=this.$store.getters.elementById(t);return!!e&&(e.parents.length?!this.$store.getters.hasInProgress(t):!this.$store.getters.hasUnlockedBase(t))})}}e["a"]=new i},"571d":function(t,e,s){"use strict";s.d(e,"d",(function(){return i})),s.d(e,"e",(function(){return n})),s.d(e,"a",(function(){return r})),s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return o}));const i=window.PointerEvent?["pointerdown"]:["mousedown","touchstart"],n=(window.PointerEvent,window.PointerEvent?["pointerup"]:["mouseup","touchend"]),r="GAME_READY",a="PLAY",o="PLAY_NOT_READY"},"5c57":function(t,e,s){"use strict";var i=s("2b0e"),n=s("2f62"),r=s("d257");const a="js-frozen",o=()=>document.body.classList.add(a),c=()=>document.body.classList.remove(a);var l=s("53b2"),h=s("1663"),d=s("b7ba");const u={active:null,activeFinal:[],middleFinal:[],activeExhausted:[]},m={state:u,getters:{animation:t=>t.active,isAnimationActive:t=>e=>t.active===e,animationFinalElements:t=>t.activeFinal,animationFinalFinished:t=>t.middleFinal,animationExhaustedElement:t=>t.activeExhausted,isFinalForIdActive:t=>e=>t.activeFinal.includes(e),isExhaustedForIdActive:t=>e=>t.activeExhausted.includes(e)},actions:{animationChange({commit:t,dispatch:e},s){t("ANIMATION_CHANGE",s),s===l["f"]&&window.setTimeout(()=>e("animationNewStart"),250)},animationReset({dispatch:t,commit:e}){e("ANIMATION_CHANGE",null),c(),t("mixReset")},animationFinalStart({commit:t,getters:e},s){e.animationFinalElements.includes(s)||t("ANIMATION_FINAL_START",s)},animationFinalMiddle({commit:t},e){t("ANIMATION_FINAL_MIDDLE",e)},animationFinalFinished({commit:t},e){t("ANIMATION_FINAL_FINISH",e)},animationExhaustedStart({commit:t,getters:e},s){e.isExhaustedForIdActive(s)||t("ANIMATION_EXHAUSTED_START",s)},animationExhaustedFinished({dispatch:t,commit:e},s){e("ANIMATION_EXHAUSTED_FINISH",s),t("libraryReload"),window.setTimeout(()=>t("animationCompletionCheck"),30)},async mixOccured({dispatch:t,getters:e}){await Object(r["c"])(10),e.mixStatus!==d["a"]&&(e.mixStatus!==d["b"]?e.mixStatus===d["c"]&&(o(),t("animationChange",l["c"])):h["a"].emit("ANIMATION_MIXED_START"))},async animationFusionMiddle({dispatch:t,getters:e}){t("animationNewCheck"),e.mixHasNewChildren||(t("workspaceHandleMixResult",{removeParents:!0}),await Object(r["c"])(250),t("workspaceExhaustedCheck"))},animationNewCheck({dispatch:t,getters:e}){e.mixHasNewChildren&&(t("animationChange",l["f"]),h["a"].emit("ANIMATION_NEW_POP"))},animationNewStart({dispatch:t}){t("workspaceRemoveMixParents")},async animationNewEnding({dispatch:t},{removeParents:e=!0}={}){t("workspaceHandleMixResult",{removeParents:e}),Object(r["c"])(250),t("workspaceExhaustedCheck")},animationNewEnd({dispatch:t}){t("animationEndCheck")},animationEndCheck({dispatch:t,getters:e}){e.hasAllElements&&(t("animationChange",l["e"]),h["a"].emit("GAME_ENDED"))},async workspaceClear({dispatch:t}){await Object(r["c"])(1e3),t("animationCompletionCheck")},workspaceFinalRemove({dispatch:t}){t("animationCompletionCheck")},async workspaceExhaustedRemove({dispatch:t}){await Object(r["c"])(10),t("animationCompletionCheck")},animationCompletionCheck({getters:t,dispatch:e}){t.hasAllCleared&&t.needsGameCompletionAnimation&&(e("animationChange",l["d"]),h["a"].emit("GAME_COMPLETED"))},animationCompletionEnding({commit:t,dispatch:e}){t("WORKSPACE_INACTIVE_RESET"),e("libraryReload")}},mutations:{ANIMATION_CHANGE(t,e){t.active=e},ANIMATION_FINAL_START(t,e){t.activeFinal.push(e)},ANIMATION_FINAL_MIDDLE(t,e){t.middleFinal.push(e)},ANIMATION_FINAL_FINISH(t,e){t.activeFinal=t.activeFinal.filter(t=>t!==e),t.middleFinal=t.middleFinal.filter(t=>t!==e)},ANIMATION_EXHAUSTED_START(t,e){t.activeExhausted.push(e)},ANIMATION_EXHAUSTED_FINISH(t,e){t.activeExhausted=t.activeExhausted.filter(t=>t!==e)}}};var p=m,g=s("6e2e");const f={elementsUpdated:-1},E={state:f,getters:{elements:t=>-1===t.elementsUpdated?{}:g["a"].elements,elementsIds:(t,e)=>Object.keys(e.elements),elementsList:(t,e)=>Object.values(e.elements),elementById:(t,e)=>t=>{const s=`${t}`;return e.elements.hasOwnProperty(s)?e.elements[s]:null},descriptionById:()=>t=>g["a"].getDescriptionById(t),hasElement:(t,e)=>t=>{const s=`${t}`;return e.elements.hasOwnProperty(s)},baseElementsIds:(t,e)=>e.elementsList.filter(({base:t})=>t).map(({id:t})=>t),elementsCount:(t,e)=>e.elementsIds.length,connectionsCount:(t,e)=>e.elementsList.reduce((t,e)=>t+e.parents.length,0)},actions:{init({dispatch:t}){t("baseLoad")},async baseLoad({dispatch:t}){const e=await g["a"].loadBase();t("baseLoaded",e),await h["a"].onReady(),await g["a"].loadDescriptions(),h["a"].emit("ENCYCLOPEDIA_DESCRIPTIONS"),await g["a"].loadTags(),h["a"].emit("ENCYCLOPEDIA_TAGS")},baseLoaded({commit:t,dispatch:e}){t("ELEMENTS_SET"),h["a"].emit("ENCYCLOPEDIA_ELEMENTS"),e("progressCalculate")},baseElementsAdd({commit:t,getters:e},s){s.forEach(t=>{e.elements.hasOwnProperty(t.id)||g["a"].elementAdd(t.id,t)}),t("ELEMENTS_ADD"),h["a"].emit("ENCYCLOPEDIA_ELEMENTS")},baseElementAdd({commit:t,getters:e},s){e.elements.hasOwnProperty(s.id)||(g["a"].elementAdd(s.id,s),t("ELEMENTS_ADD"))},baseElementsRemove({commit:t,getters:e},s){s.forEach(t=>{e.elements.hasOwnProperty(t)&&g["a"].elementRemove(t)}),t("ELEMENTS_REMOVE"),h["a"].emit("ENCYCLOPEDIA_ELEMENTS")},baseElementRemove({commit:t,getters:e},s){e.elements.hasOwnProperty(s)&&(g["a"].elementRemove(s),t("ELEMENTS_REMOVE"))}},mutations:{ELEMENTS_SET(t){t.elementsUpdated=Date.now()},ELEMENTS_ADD(t){t.elementsUpdated=Date.now()},ELEMENTS_REMOVE(t){t.elementsUpdated=Date.now()}}};var b=E;const y={workspaceBox:{width:-1,height:-1},libraryBox:{width:-1,height:-1,margin:-1}},v={state:y,getters:{workspaceBoxDimensions:t=>t.workspaceBox,libraryBoxDimensions:t=>t.libraryBox,libraryBoxMargin:t=>t.libraryBox.margin},actions:{dimensionsLibraryBox({commit:t},e){t("DIMENSIONS_LIBRARY_BOX",e)},dimensionsWorkspaceBox({commit:t},e){t("DIMENSIONS_WORKSPACE_BOX",e)}},mutations:{DIMENSIONS_LIBRARY_BOX(t,{width:e,height:s,margin:i}){t.libraryBox.width=e,t.libraryBox.height=s,t.libraryBox.margin=i},DIMENSIONS_WORKSPACE_BOX(t,{width:e,height:s}){t.workspaceBox.width=e,t.workspaceBox.height=s}}};var w=v,I=s("3b56");const O=I["b"].load(I["a"].ENCYCLOPEDIA)||{encyclopediaShown:-1},A={state:O,getters:{encyclopediaTimestamp:t=>t.encyclopediaShown},actions:{encyclopediaShow({commit:t}){t("ENCYCLOPEDIA_SHOW")}},mutations:{ENCYCLOPEDIA_SHOW(t){t.encyclopediaShown=Date.now()}}};var S=A;const T="#",_=([t,e])=>`${t}${T}${e}`,x=t=>t.reduce((t,e)=>{const s=_([e.father,e.mother]);return t[s]=e.timestamp,t},{}),P=(t,e)=>{const s=_(e);return t.hasOwnProperty(s)},C=(t,e,s)=>{const i=t[s].children,n=i.some(i=>{const n=t[i];for(const t of n.parents)if(s===t[0]||s===t[1]){const s=P(e,t);if(!s)return!0}return!1});return n},L=(t,e,s)=>{const i=`${s}`;return!C(t,e,i)},D=(t,e,s)=>s.map(s=>({id:s,exhausted:L(t,e,s)})),R=I["b"].load(I["a"].WORKSPACE_INACTIVE),N={exhausted:{},visible:null!==R?R.exhausted:[]},k={state:N,getters:{elementIsExhausted:t=>e=>t.exhausted.hasOwnProperty(e)?t.exhausted[e]:null,exhaustedVisible:t=>t.visible,isExhaustedVisible:(t,e)=>t=>e.exhaustedVisible.includes(t),hasExhaustedVisible:(t,e)=>!!e.exhaustedVisible.length},actions:{exhaustedCheckIds({commit:t,getters:e},s){const i=D(e.elements,e.historyMap,s);t("ELEMENTS_SET_EXHAUSTED",i)},async mixNew({commit:t,getters:e},{parents:s}){await Object(r["c"])(30),s.forEach(s=>{const i=L(e.elements,e.historyMap,s);i&&(t("ELEMENT_SET_EXHAUSTED",{id:s,exhausted:i}),t("EXHAUSTED_VISIBLE_ADD",s))})},resetProgress({commit:t,getters:e}){const s=e.elementsIds.filter(t=>e.elementIsExhausted(t)).map(t=>({id:t,exhausted:!1}));t("ELEMENTS_SET_EXHAUSTED",s),t("EXHAUSTED_VISIBLE_CLEAR")}},mutations:{ELEMENT_SET_EXHAUSTED(t,{id:e,exhausted:s}){i["a"].set(t.exhausted,e,s)},ELEMENTS_SET_EXHAUSTED(t,e){e.forEach(({id:e,exhausted:s})=>i["a"].set(t.exhausted,e,s))},EXHAUSTED_VISIBLE_ADD(t,e){t.visible.includes(e)||t.visible.push(e)},EXHAUSTED_VISIBLE_CLEAR(t){t.visible=[]},ANIMATION_EXHAUSTED_FINISH(t,e){t.visible=t.visible.filter(t=>t!==e)}}};var M=k,j=s("80b0"),$=s.n(j),H=s("199d"),B=s("2138"),F=s("623d"),G=s("d0c4"),U=s("cd57");class W{onDragStart(){this.animationNew&&(this.animationNew.style.display="none")}onDragEnd(){this.animationNew&&(this.animationNew.style.display="initial")}get animationNew(){return document.getElementById(U["a"])}}var Y=new W;const K={dragging:null,over:null,listening:[],static:{[B["e"]]:{id:B["e"],dimensions:{width:0,height:0},position:{x:0,y:0}}},draggableHelper:null},z={state:K,getters:{draggedId:t=>t.dragging,draggedElement:(t,e)=>t.dragging&&e.droppables.find(e=>e.id===t.dragging)||null,isDragging:t=>null!==t.dragging,draggingOverId:t=>t.over,draggingOverElement:(t,e)=>{const s=t.over;return s?e.droppableById(s):null},isOver:t=>null!==t.over,isOverStatic:(t,e)=>{const s=e.draggingOverElement;return!!s&&s.hasOwnProperty("dimensions")},draggableHelperId:t=>t.draggableHelper,draggableHelperElement:(t,e)=>t.draggableHelper?e.droppableById(t.draggableHelper):null,droppables:(t,e)=>e.workspaceElements,droppablesActive:(t,e)=>e.droppables.filter(e=>e.id!==t.draggableHelper),droppablesListening:(t,e)=>e.droppables.filter(e=>t.listening.includes(e.id)),droppablesStatic:t=>t.static,droppableStaticById:t=>e=>t.static[e],droppablesToListen:(t,e)=>t=>e.droppables.filter(({id:s})=>s!==t&&s!==e.draggableHelperId).map(({id:t})=>t),droppableById:(t,e)=>s=>{const i=e.droppables.find(t=>t.id===s);return i||(t.static.hasOwnProperty(s)?t.static[s]:null)}},actions:{dragStart({commit:t,dispatch:e,getters:s},i){const n=s.droppablesToListen(i);t("DRAG_START",{id:i,listening:n}),h["a"].emit("DRAG_START"),G["a"].onDragStart(),e("mixReset"),$()(()=>{e("searchHide"),Y.onDragStart()})},dragOver({commit:t},e){t("DRAG_OVER",e)},dragOut({commit:t}){t("DRAG_OUT")},dragEnd({commit:t,dispatch:e,getters:s},{position:i,simulated:n}){t("DRAG_POSITION",{dragged:s.draggedElement,...i}),G["a"].onDragEnd(n),t("DRAG_END"),$()(()=>{e("draggableHelperAdd",!0),Y.onDragEnd()})},staticDroppableAdd({commit:t},e){t("STATIC_DROPPABLE_ADD",e)},baseLoaded({dispatch:t}){t("draggableHelperAdd",!0)},draggableHelperAdd({commit:t,state:e},s=!1){if(null!==e.draggableHelper)return;const i=s?Object(H["a"])(F["a"]):null;t("DRAGGABLE_HELPER_SET",i)}},mutations:{DRAG_START(t,{id:e,listening:s}){t.dragging=e,t.listening=s},DRAG_OVER(t,e){t.over=e},DRAG_OUT(t){t.over=null},DRAG_POSITION(t,{dragged:e,x:s,y:i}){e&&(e.position.x=s,e.position.y=i)},DRAG_END(t){t.dragging=null,t.over=null,t.listening.length&&(t.listening=[])},DROPPABLE_DROP(t){t.over=null},DRAGGABLE_HELPER_SET(t,e){t.draggableHelper=e||null},DRAGGABLE_HELPER_RESET(t){t.draggableHelper=null},STATIC_DROPPABLE_ADD(t,e){t.static[e.id]=e},STATIC_DROPPABLE_UPDATE(t,{id:e,width:s,height:i,x:n,y:r}){const a=t.static[e];a.dimensions.width=s,a.dimensions.height=i,a.position.x=n,a.position.y=r},WORKSPACE_ELEMENT_REMOVE(t,e){t.dragging===e&&(t.dragging=null)}}};var V=z;const X={isReady:!1,playing:!1,online:!0,user:null,userProgressSynced:!1,visible:!0},q={state:X,getters:{isGameReady:t=>t.isReady,online:t=>t.online,user:t=>t.user,isLoggedIn:t=>null!==t.user,canLogout:(t,e)=>e.isLoggedIn&&t.userProgressSynced,isGameActive:t=>t.visible,isPlaying:t=>t.playing},actions:{online({commit:t}){t("ONLINE")},offline({commit:t}){t("OFFLINE")},loggedIn({commit:t},e){t("LOGGED_IN",e),h["a"].emit("LOGGED_IN")},userSynced({commit:t}){t("USER_SYNCED")},notLoggedIn(){h["a"].emit("NOT_LOGGED_IN")},loggedOut({commit:t}){t("LOGGED_OUT"),h["a"].emit("LOGGED_OUT")},startedPlaying({commit:t}){t("PLAY")}},mutations:{GAME_READY(t){t.isReady=!0},ONLINE(t){t.online=!0},OFFLINE(t){t.online=!1},LOGGED_IN(t,e){t.user=e},LOGGED_OUT(t){t.user=null,t.userProgressSynced=!1},USER_SYNCED(t){t.userProgressSynced=!0},VISIBILITY(t,e){t.visible!==e&&(t.visible=e)},PLAY(t){t.playing=!0}}};var Q=q,J=s("c97d");class Z{constructor(){this._history=[],this._historyMap={};const t=I["b"].load(I["a"].PROGRESS)||[];this._history=t,this._historyMap=x(t)}set(t){this._history=t,this._historyMap=x(t)}addNewParents([t,e]){this.addEntry({father:t,mother:e,timestamp:Date.now()})}addEntry(t){this._history.push(t);const e=_([t.father,t.mother]);this._historyMap[e]=t.timestamp}reset(){this._history=[],this._historyMap={}}removeBeforeTimestamp(t){const e=this._history.filter(({timestamp:e})=>e>=t);e.length!==this._history.length&&(this._historyMap=x(e)),this._history=e}get history(){return this._history}get historyMap(){return this._historyMap}}const tt=new Z;var et=tt,st=s("cf19");const it={historyTimestamp:0,resetTimestamp:I["b"].load(I["a"].RESET_TIMESTAMP)||-1},nt={state:it,getters:{history:t=>t.historyTimestamp<0?[]:et.history,historyMap:t=>t.historyTimestamp<0?{}:et.historyMap,hasMixed:(t,e)=>t=>{const s=_(t);return e.historyMap.hasOwnProperty(s)},historyBefore:(t,e)=>t=>e.history.filter(({timestamp:e})=>ee.history.length?e.history[e.history.length-1].timestamp:0,resetTimestamp:t=>t.resetTimestamp},actions:{historyReload({dispatch:t}){t("progressCalculate"),J["a"].scrollTop(),h["a"].emit("SYNC_PROGRESS_CHANGED")},historySet({commit:t},e){t("HISTORY_SET",e)},historyIntegrity({getters:t,dispatch:e}){const s=e=>t.hasElement(e)&&t.hasInProgress(e)||Object(st["a"])(e),i=t.history.filter(({mother:t,father:e})=>s(t)&&s(e)),n=i.length!==t.history.length;n&&(e("historySet",i),e("historyReload"))},historyRemoveBeforeTimestamp({commit:t},e){t("HISTORY_REMOVE_BEFORE",e)},mixNew({commit:t,getters:e},{parents:s}){e.hasMixed(s)||(t("HISTORY_NEW_PARENTS",s),h["a"].emit("HISTORY_UPDATE"))},resetProgress({commit:t,dispatch:e}){t("RESET_PROGRESS"),e("libraryReload"),h["a"].emit("PROGRESS_RESET")}},mutations:{HISTORY_SET(t,e){et.set(e),t.historyTimestamp=Date.now()},HISTORY_ADD(t,e){et.addEntry(e),t.historyTimestamp=Date.now()},HISTORY_NEW_PARENTS(t,e){et.addNewParents(e),t.historyTimestamp=Date.now()},HISTORY_REMOVE_BEFORE(t,e){et.removeBeforeTimestamp(e),t.historyTimestamp=Date.now()},RESET_PROGRESS(t){et.reset(),t.historyTimestamp=Date.now(),t.resetTimestamp=Date.now()},RESET_TIMESTAMP(t,e){t.resetTimestamp=e}}};var rt=nt,at=s("a799");const ot={status:null,father:null,mother:null,children:[],baseChildren:[]},ct={state:ot,getters:{mixStatus:t=>t.status,mixFather:t=>t.father,mixMother:t=>t.mother,mixChildren:t=>t.children,mixBaseChildren:t=>t.baseChildren,mixHasBase:(t,e)=>!!e.mixBaseChildren.length,mixHasNewChildren:(t,e)=>e.mixChildren.some(({id:t})=>e.elementIsNewlyDiscovered(t)&&!e.hasUnlockedBase(t)),isMixingDisabled:(t,e)=>e.isArtModeEnabled},actions:{droppableDrop({dispatch:t}){const e=at["a"].getDropMixResult();if(!e)return;const{status:s,...i}=e;t(s,i);const n=at["a"].getBaseElementsMixResult(i.children);n&&t("mixBase",n)},mixFail({dispatch:t}){t("mixOccured",{status:d["a"]}),h["a"].emit("MIX_FAIL")},mixMixed({dispatch:t},{children:e}){t("mixOccured",{status:d["b"],children:e.map(t=>({id:t}))}),h["a"].emit("MIX_MIXED")},mixNew({dispatch:t},{children:e,positions:s}){o();const i=e.map((t,e)=>({id:t,position:s[e]}));t("mixOccured",{status:d["c"],children:i}),h["a"].emit("MIX_NEW")},mixBase({commit:t,dispatch:e,getters:s},{children:i,positions:n}){const r=i.map((t,e)=>({id:t,position:n[e]})),a=i.filter(t=>s.elementById(t).base);t("MIX_SET_CHILDREN",r),t("MIX_SET_BASE_CHILDREN",a),e("progressNewBase",a)},mixOccured({commit:t,getters:e},{status:s,children:i=[]}){if(!e.draggedElement||!e.draggingOverElement)return;const n={...e.draggedElement},r={...e.draggingOverElement};t("MIX_OCCURED",{status:s,father:n,mother:r,children:i})},mixReset({commit:t,state:e}){e.status&&t("MIX_RESET")}},mutations:{MIX_OCCURED(t,e){t.status=e.status,t.father=e.father,t.mother=e.mother,t.children=e.children},MIX_SET_CHILDREN(t,e){t.children=e},MIX_SET_BASE_CHILDREN(t,e){t.baseChildren=e},MIX_RESET(t){t.status=null,t.father=null,t.mother=null,t.children.length&&(t.children=[]),t.baseChildren.length&&(t.baseChildren=[])}}};var lt=ct;const ht={enabled:!0,current:null,playing:!1},dt={state:ht,getters:{isAudioEnabled:t=>t.enabled,isMusicPlaying:t=>t.playing,currentMusic:t=>t.current},actions:{musicSet({commit:t},e){t("MUSIC_SET",e)},musicPlay({commit:t},e){t("MUSIC_PLAY",e)},musicPause({commit:t}){t("MUSIC_PAUSE",void 0)},musicStop({commit:t}){t("MUSIC_STOP",void 0)}},mutations:{AUDIO_DISABLED(t){t.enabled=!1},MUSIC_SET(t,e){t.current=e},MUSIC_PLAY(t,e){t.current=e,t.playing=!0},MUSIC_PAUSE(t){t.playing=!1},MUSIC_STOP(t){t.current=null,t.playing=!1}}};var ut=dt,mt=s("ded8");const pt={library:[],rendered:!1,sortBy:"alphabet"},gt={state:pt,getters:{library:t=>t.library,hasLibrary:t=>!!t.library.length,hasInLibrary:t=>e=>t.library.includes(`${e}`),librarySortBy:t=>t.sortBy,isLibraryRendered:t=>t.rendered},actions:{libraryReload({commit:t,getters:e}){let s,i=[...e.prime,...e.progress,...e.base];i=e.isArtModeEnabled?i.concat(e.final):i.filter(t=>{const s=e.mixStatus&&(e.mixFather.elementId===t||e.mixMother.elementId===t);return!!s||!(e.elementIsExhausted(t)&&!e.isExhaustedVisible(t))}),s="timestamp"===e.librarySortBy?Object(mt["b"])(e.total,i):Object(mt["a"])(e.elements,i),t("LIBRARY_RELOAD",s)},libraryRendered({commit:t}){t("LIBRARY_RENDERED")},libraryChangeSorting({dispatch:t,commit:e},s){e("LIBRARY_SORTING",s),t("libraryReload")}},mutations:{LIBRARY_RELOAD(t,e){t.library=e},LIBRARY_RENDERED(t){t.rendered=!0},LIBRARY_SORTING(t,e){t.sortBy!==e&&(t.sortBy=e)}}};var ft=gt,Et=s("54cb"),bt=s("22a7");const yt={progress:{},final:{},prime:[],base:[],total:[]},vt={state:yt,getters:{progressObject:t=>t.progress,progress:t=>Object.keys(t.progress),prime:t=>t.prime,finalObject:t=>t.final,final:t=>Object.keys(t.final),base:t=>t.base,total:t=>t.total,hasProgress:(t,e)=>!!e.progress.length,hasInProgress:t=>e=>{const s=`${e}`;return t.progress.hasOwnProperty(s)||t.final.hasOwnProperty(s)||t.base.includes(s)||t.prime.includes(s)},hasUnlockedBase:t=>e=>t.base.includes(e),totalProgress:(t,e)=>e.totalProgressWithoutFinal+e.final.length,totalProgressWithoutFinal:(t,e)=>{let s=e.progress.length;return s+=e.prime.length,s+=e.base.length,s},totalProgressElements:(t,e)=>[...e.progress,...e.prime,...e.base,...e.final],progressSince:t=>e=>t.total.filter(({timestamp:t})=>t>e).map(({id:t})=>t),elementTimestamp:t=>e=>{for(let s=t.total.length-1;s>=0;s--)if(t.total[s].id===e)return t.total[s].timestamp;return 0},elementIsNewlyDiscovered:(t,e)=>t=>{const s=e.elementTimestamp(t),i=e.historyLastTimestamp;return s>=i},hasAllElements:(t,e)=>e.elementsCount>0&&e.totalProgress>=e.elementsCount,hasAllExhausted:(t,e)=>e.elementsCount>0&&e.elementsIds.every(t=>{const s=e.elements[t];return!!s.final||!!e.elementIsExhausted(t)}),hasEmptyLibrary:(t,e)=>!e.hasExhaustedVisible&&e.hasAllExhausted,hasAllCleared:(t,e)=>e.hasEmptyLibrary&&!e.workspaceHasInactive,isArtModeEnabled:(t,e)=>e.hasAllCleared&&!e.needsGameCompletionAnimation},actions:{progressCalculate({commit:t,dispatch:e,getters:s}){const i=bt["a"].analyze(s.elements,[...s.history]);t("PROGRESS_ANALYZED",i);const n=Et["a"].getInitiallyUnlocked();n.length&&e("progressNewBase",n),e("exhaustedCheckIds",s.totalProgressElements),e("libraryReload"),$()(()=>{h["a"].emit("ENCYCLOPEDIA_PROGRESS_ANALYZED")})},mixNew({commit:t,getters:e},{parents:s,children:i}){i.forEach(s=>{if(e.hasInLibrary(s))return;const i=e.elementById(s);i&&(i.final?t("PROGRESS_FINAL",s):e.hasInProgress(s)||t("PROGRESS_NEW",s))}),window.setTimeout(()=>h["a"].emit("ENCYCLOPEDIA_MIX_NEW",{parents:s,children:i,timestamp:Date.now()}),60)},progressNewBase({commit:t,getters:e},s){const i=s.filter(t=>!e.base.includes(t));i.forEach(e=>t("PROGRESS_BASE",{id:e,timestamp:Date.now()})),h["a"].emit("ENCYCLOPEDIA_MIX_BASE",i)}},mutations:{PROGRESS_ANALYZED(t,{progress:e,base:s,final:i,primes:n,timestamps:a}){t.progress=e,t.base=s,t.prime=n,t.final=i,t.total=a,Object(r["A"])("progress","analyzed",t)},PROGRESS_NEW(t,e){i["a"].set(t.progress,e,!0),t.total.push({id:e,timestamp:Date.now()})},PROGRESS_FINAL(t,e){t.final.hasOwnProperty(e)||(i["a"].set(t.final,e,!0),t.total.push({id:e,timestamp:Date.now()}))},PROGRESS_BASE(t,{id:e,timestamp:s}){t.base.push(e),t.total.push({id:e,timestamp:s})},PROGRESS_PRIMES(t,e){t.prime=e},RESET_PROGRESS(t){t.progress={},t.final={},t.base=[],t.total=[]}}};var wt=vt;const It={query:null},Ot={state:It,getters:{searchQuery:t=>t.query,isSearchActive:t=>null!==t.query},actions:{search({commit:t},e){t("SEARCH",e)},searchShow({commit:t}){t("SEARCH","")},searchHide({commit:t,state:e}){null!==e.query&&t("SEARCH",null)}},mutations:{SEARCH(t,e){t.query=e}}};var At=Ot;const St={music:!0,sfx:!0,...I["b"].load(I["a"].SETTINGS)||{}},Tt={state:St,getters:{playSfx:t=>t.sfx,playMusic:t=>t.music},actions:{settingsMusic({commit:t},e){t("SETTINGS_MUSIC",e)},settingsSfx({commit:t},e){t("SETTINGS_SFX",e)}},mutations:{SETTINGS_MUSIC(t,e){t.music=e},SETTINGS_SFX(t,e){t.sfx=e}}};var _t=Tt;const xt={firstLaunch:Date.now(),sessionsCount:1,session:{initialProgress:0,start:Date.now(),streak:0,fails:0,failsStreak:0}},Pt={...xt,...I["b"].load(I["a"].STATS)||{}},Ct={state:Pt,getters:{firstLaunch:t=>t.firstLaunch,sessionsCount:t=>t.sessionsCount,sessionStats:t=>t.session,sessionFailStreak:t=>t.session.failsStreak,sessionFails:t=>t.session.fails,sessionStreak:t=>t.session.streak},actions:{statsSessionsCount({commit:t}){t("STATS_SESSIONS")},statsInitialProgress({commit:t,getters:e}){t("STATS_INITIAL_PROGRESS",e.totalProgress)},mixOccured({commit:t},{status:e}){e===d["c"]?t("STATS_MIX_NEW"):e===d["a"]&&t("STATS_MIX_FAIL")},resetProgress({dispatch:t}){t("statsInitialProgress")}},mutations:{STATS_SESSIONS(t){t.sessionsCount++},STATS_INITIAL_PROGRESS(t,e){t.session.initialProgress=e},STATS_MIX_NEW(t){t.session.streak++,t.session.failsStreak=0},STATS_MIX_FAIL(t){t.session.streak=0,t.session.failsStreak++,t.session.fails++}}};var Lt=Ct,Dt=s("6953");const Rt={tutorial:null,tutorialsFinished:!1,currentText:null,currentTextPosition:null,shownText:[],...I["b"].load(I["a"].TUTORIALS)},Nt={state:Rt,getters:{tutorial:t=>t.tutorial,areTutorialsFinished:t=>t.tutorialsFinished,isTutorialActive:t=>e=>t.tutorial===e,tutorialTextCurrentId:t=>t.currentText,tutorialTextCurrent:(t,e)=>Dt["a"].getById(e.tutorialTextCurrentId),tutorialTextPosition:t=>t.currentTextPosition,tutorialTextShown:t=>t.shownText,wasTutorialTextShown:(t,e)=>t=>e.tutorialTextShown.includes(t)},actions:{tutorialShow({commit:t},e){t("TUTORIAL_SHOW",e)},tutorialHide({commit:t}){t("TUTORIAL_HIDE")},tutorialsFinished({commit:t}){t("TUTORIALS_FINISHED"),h["a"].emit("TUTORIALS_FINISHED")},tutorialTextShow({commit:t},e){t("TUTORIAL_TEXT_SHOW",e)},tutorialTextHide({commit:t}){t("TUTORIAL_TEXT_HIDE")},resetProgress({commit:t}){t("TUTORIALS_TEXT_CLEAR"),Dt["a"].onReset()}},mutations:{TUTORIAL_SHOW(t,e){t.tutorial=e,t.tutorialsFinished=!1},TUTORIAL_HIDE(t){t.tutorial=null},TUTORIALS_FINISHED(t){t.tutorialsFinished=!0},TUTORIAL_TEXT_SHOW(t,{id:e,position:s}){t.currentText=e,t.currentTextPosition=s,t.shownText.includes(e)||t.shownText.push(e)},TUTORIAL_TEXT_HIDE(t){t.currentText=null,t.currentTextPosition=null},TUTORIALS_TEXT_CLEAR(t){t.currentText=null,t.currentTextPosition=null,t.shownText=[]}}};var kt=Nt,Mt=s("b2eb"),jt=s("2540");const $t={popupName:null,popupData:null,isOverlayActive:!1},Ht={state:$t,getters:{popup:t=>t.popupName,isPopupActive:(t,e)=>null!==e.popup,isPopupOverlayActive:t=>t.isOverlayActive,isPopupWithNameActive:(t,e)=>t=>e.popup===t,popupData:t=>t.popupData,isPopupClosable:(t,e)=>null===e.popupData||!e.popupData.hasOwnProperty("closable")||e.popupData.closable},actions:{popupToggle({dispatch:t,getters:e},s){e.popup!==s?(null!==e.popup&&t("popupHide",void 0),$()(()=>t("popupShow",s))):t("popupHide",void 0)},popupShow({commit:t,dispatch:e},s){s===Mt["ENCYCLOPEDIA"]&&e("encyclopediaShow"),t("UI_POPUP_SHOW",s),jt["a"].onShow(s)},popupShowWithData({commit:t,dispatch:e},{name:s,data:i}){e("popupShow",s),t("UI_POPUP_DATA",i)},async popupShowNext({dispatch:t},{name:e,data:s=null}){t("popupHide",{hideOverlay:!1}),await Object(r["c"])(Mt["DELAY"]),s?t("popupShowWithData",{name:e,data:s}):t("popupShow",e)},popupHide({commit:t,getters:e},{hideOverlay:s=!0}={}){null!==e.popup&&(jt["a"].onHide(e.popup),t("UI_POPUP_HIDE",s))}},mutations:{UI_POPUP_SHOW(t,e){t.popupName=e,t.isOverlayActive=!0},UI_POPUP_DATA(t,e){t.popupData=e},UI_POPUP_HIDE(t,e){t.popupName=null,e&&(t.isOverlayActive=!1,t.popupData=null)}}};var Bt=Ht,Ft=s("c561"),Gt=s("b10a");const Ut={elements:I["b"].load(I["a"].WORKSPACE)||[],elementsPrevious:[]},Wt={state:Ut,getters:{workspaceElements:t=>t.elements,workspacePrevious:t=>t.elementsPrevious,workspaceRevertable:(t,e)=>!!t.elementsPrevious.length||!!e.workspaceInactivePrevious.length,workspaceElementsExhausted:(t,e)=>e.workspaceElements.filter(({elementId:t})=>e.elementIsExhausted(t))},actions:{workspaceClearRevertStart({dispatch:t,getters:e}){e.workspaceRevertable?t("workspaceRevertStart"):t("workspaceClearStart")},workspaceClearStart({dispatch:t,getters:e}){(e.workspaceElements.length||e.workspaceExhausted.length)&&(t("animationChange",l["a"]),h["a"].emit("WORKSPACE_CLEAR_START"),o(),h["a"].once("ANIMATION_WORKSPACE_MIDDLE",()=>t("workspaceClear")))},workspaceRevertStart({dispatch:t,getters:e}){(e.workspacePrevious.length||e.workspaceInactivePrevious.length)&&(t("animationChange",l["g"]),o(),h["a"].once("ANIMATION_WORKSPACE_MIDDLE",()=>t("workspaceRevert")))},workspaceClear({commit:t,getters:e}){e.droppablesActive.length&&(t("WORKSPACE_CLEAR",e.draggableHelperElement),h["a"].emit("WORKSPACE_CLEAR"))},workspaceRevert({commit:t,getters:e}){e.workspacePrevious.length&&(t("WORKSPACE_REVERT"),h["a"].emit("WORKSPACE_REVERT"))},workspaceRemoveUnderLibrary({commit:t,getters:e}){const{position:{x:s}}=e.droppableStaticById(B["e"]),i=e.workspaceBoxDimensions.width/2,n=s-i;e.workspaceElements.forEach(s=>{const i=s.id===e.draggedId,r=s.position.x<=n;i||r||t("WORKSPACE_ELEMENT_REMOVE",s.id)})},workspaceRemoveExhausted({commit:t,getters:e}){e.workspaceElementsExhausted.forEach(({id:e})=>t("WORKSPACE_ELEMENT_REMOVE",e))},workspaceElementClone({dispatch:t,commit:e,getters:s},i){const n=s.droppableById(i);if(!n)return;const r={...n},a=Gt["a"].getCloneDirections(n.position,s.workspaceBoxDimensions);e("DRAGGABLE_HELPER_PREPARE",{helper:s.draggableHelperElement,elementId:r.elementId,position:{x:n.position.x+a.x*B["a"]*2,y:n.position.y+a.y*B["a"]}}),h["a"].emit("ELEMENT_CLONE",s.draggableHelperId),e("DRAGGABLE_HELPER_RESET"),window.setTimeout(()=>t("draggableHelperAdd",!0),50)},workspaceElementsAdd({commit:t},e){t("WORKSPACE_ELEMENT_ADD",e)},workspaceElementRemove({commit:t},e){t("WORKSPACE_ELEMENT_REMOVE",e)},workspaceRemoveMixParents({getters:t,dispatch:e}){if(!t.mixFather||!t.mixMother)return;const s=[t.mixFather.id,t.mixMother.id];s.forEach(t=>e("workspaceElementRemove",t))},workspaceHandleMixResult({dispatch:t,getters:e},{removeParents:s=!0}={}){s&&t("workspaceRemoveMixParents");const i=e.mixChildren,n=i.map(t=>({...Ft["a"],id:Object(H["a"])(t.id),elementId:t.id,position:t.position})),r=[],a=[],o=[];n.forEach(t=>{const s=t.elementId,i=e.elementById(s);i&&(i.final?r.push(t):e.elementIsExhausted(s)?a.push(t):o.push(t))}),o.length&&t("workspaceElementsAdd",o),r.length&&t("workspaceFinalAdd",r),a.length&&t("workspaceExhaustedAdd",a),$()(()=>t("libraryReload"))},historyIntegrity({commit:t,getters:e}){e.workspaceElements.forEach(({id:s,elementId:i})=>{e.draggableHelperId!==s&&(e.hasInProgress(i)||t("WORKSPACE_ELEMENT_REMOVE",s))})},resetProgress({commit:t,getters:e}){t("WORKSPACE_RESET",e.draggableHelperElement)}},mutations:{WORKSPACE_CLEAR(t,e){const s=[],i=[];t.elements.forEach(t=>(t&&t.id===e.id?i:s).push(t)),t.elementsPrevious=s,t.elements=i},WORKSPACE_REVERT(t){t.elements.push(...t.elementsPrevious),t.elementsPrevious.length&&(t.elementsPrevious=[])},WORKSPACE_ELEMENT_ADD(t,e){t.elements.length>=1&&t.elementsPrevious.length&&(t.elementsPrevious=[]);const s=[...e];t.elements.push(...s)},WORKSPACE_ELEMENT_REMOVE(t,e){t.elements=t.elements.filter(t=>t.id!==e)},WORKSPACE_RESET(t,e){let s=[];e&&(s=[e]),t.elements=s,t.elementsPrevious=[]},LOGGED_IN(t){t.elementsPrevious=[]},DRAG_START(t){t.elementsPrevious.length&&(t.elementsPrevious=[])},DRAGGABLE_HELPER_SET(t,e){e&&t.elements.push({...Ft["a"],id:e,elementId:F["a"],position:{x:-500,y:-500}})},DRAGGABLE_HELPER_PREPARE(t,{helper:e,elementId:s,position:i}){e&&(e.elementId=s,e.position=i)}}};var Yt=Wt;const Kt={workspaceFinal:[],workspaceFinalPrevious:[],workspaceExhausted:[],workspaceExhaustedPrevious:[],needsGameCompletionAnimation:!1,...I["b"].load(I["a"].WORKSPACE_INACTIVE)||{}};Kt.hasOwnProperty("exhausted")&&delete Kt.exhausted;const zt=Kt,Vt={state:zt,getters:{workspaceFinal:t=>t.workspaceFinal,workspaceFinalPrevious:t=>t.workspaceFinalPrevious,workspaceExhausted:t=>t.workspaceExhausted,workspaceExhaustedPrevious:t=>t.workspaceExhaustedPrevious,workspaceInactivePrevious:t=>t.workspaceExhaustedPrevious.concat(t.workspaceFinalPrevious),workspaceHasInactive:(t,e)=>!!e.workspaceFinal.length||!!e.workspaceExhausted.length,needsGameCompletionAnimation:t=>t.needsGameCompletionAnimation},actions:{async workspaceClear({commit:t}){t("WORKSPACE_FINAL_CLEAR")},workspaceRevert({commit:t}){t("WORKSPACE_FINAL_REVERT")},workspaceFinalAdd({commit:t},e){e.length&&t("WORKSPACE_FINAL_ADD",e)},workspaceFinalRemove({commit:t},e){t("WORKSPACE_FINAL_REMOVE",e)},workspaceExhaustedAdd({commit:t},e){e.length&&t("WORKSPACE_EXHAUSTED_ADD",e)},async workspaceExhaustedRemove({commit:t},e){t("WORKSPACE_EXHAUSTED_REMOVE",e)},historyIntegrity({dispatch:t}){t("workspaceExhaustedCheck")},workspaceExhaustedCheck({dispatch:t,getters:e}){const s=e.workspaceElementsExhausted;t("workspaceExhaustedAdd",s),t("workspaceRemoveExhausted")}},mutations:{WORKSPACE_FINAL_CLEAR(t){(t.workspaceFinal.length||t.workspaceExhausted.length)&&(t.needsGameCompletionAnimation=!0),t.workspaceExhaustedPrevious=t.workspaceExhausted,t.workspaceExhausted=[],t.workspaceFinalPrevious=t.workspaceFinal,t.workspaceFinal=[]},WORKSPACE_FINAL_REVERT(t){t.workspaceExhausted=t.workspaceExhaustedPrevious,t.workspaceExhaustedPrevious=[],t.workspaceFinal=t.workspaceFinalPrevious,t.workspaceFinalPrevious=[]},DRAG_START(t){t.workspaceExhaustedPrevious.length&&(t.workspaceExhaustedPrevious=[]),t.workspaceFinalPrevious.length&&(t.workspaceFinalPrevious=[])},WORKSPACE_FINAL_ADD(t,e){t.workspaceFinal=t.workspaceFinal.concat(e)},WORKSPACE_FINAL_REMOVE(t,e){t.workspaceFinal=t.workspaceFinal.filter(({elementId:t})=>e!==t),t.needsGameCompletionAnimation=!0},WORKSPACE_EXHAUSTED_ADD(t,e){t.workspaceExhausted=t.workspaceExhausted.concat(e)},WORKSPACE_EXHAUSTED_REMOVE(t,e){t.workspaceExhausted=t.workspaceExhausted.filter(({elementId:t})=>e!==t),t.needsGameCompletionAnimation=!0},ANIMATION_EXHAUSTED_FINISH(t){t.needsGameCompletionAnimation=!0},WORKSPACE_INACTIVE_RESET(t){t.needsGameCompletionAnimation=!1,t.workspaceFinalPrevious=[],t.workspaceExhaustedPrevious=[]},RESET_PROGRESS(t){t.workspaceFinal=[],t.workspaceFinalPrevious=[],t.workspaceExhausted=[],t.workspaceExhaustedPrevious=[]},LOGGED_IN(t){t.workspaceFinalPrevious=[],t.workspaceExhaustedPrevious=[]}}};var Xt=Vt;s.d(e,"b",(function(){return Jt})),i["a"].use(n["b"]);const qt={animations:p,base:b,dimensions:w,encyclopedia:S,exhausted:M,drag:V,global:Q,history:rt,mix:lt,music:ut,library:ft,progress:wt,search:At,settings:_t,stats:Lt,tutorials:kt,ui:Bt,workspace:Yt,workspaceInactive:Xt},Qt=new n["b"].Store({modules:qt,strict:!1}),Jt=(Object(n["a"])(),n["d"]);n["c"];e["a"]=Qt},"5d96":function(t,e,s){"use strict";let i=!1;try{const t=Object.defineProperty({},"passive",{get(){return i=!0,null}});window.addEventListener("test",()=>{},t)}catch(r){}const n=!!i&&{passive:!0};e["a"]=n},"623d":function(t,e,s){"use strict";s.d(e,"b",(function(){return i})),s.d(e,"a",(function(){return n}));const i="outer-library",n="0"},6294:function(t,e,s){"use strict";s("437c")},6953:function(t,e,s){"use strict";var i=s("d257"),n=s("ebe2"),r=s("1663"),a=s("7543"),o=s("93e8");const c={horizontal:1,vertical:1},l=[{id:n["TextTutorialId"].FINAL,text:"You discovered your first final item!
Since final items don't mix with anything they will hide into the encyclopedia when you tap them.",watcher:t=>{const e="new"===t.mixStatus;if(!e)return!1;const s=t.mixChildren.some(({id:e})=>t.elementById(e).final);return s},after:()=>r["a"].then("ANIMATION_NEW_END"),delay:500,getPosition:t=>{if(!t.getters.workspaceFinal.length)return c;const e=Object(a["b"])(t.getters.workspaceFinal[0].position,t.getters.workspaceBoxDimensions);return Object(o["a"])(e)}},{id:n["TextTutorialId"].BASE,text:"You discovered a new basic item!
Unlike the items you discover by mixing two things together, basic items can be unlocked by satisfying hidden goals!",watcher:t=>{const e="new"===t.mixStatus;return!!e&&t.mixHasBase},after:()=>r["a"].then("ANIMATION_NEW_END"),delay:500,getPosition:t=>{const e=t.getters.workspaceElements.find(({elementId:e})=>{const s=t.getters.elementById(e);return!!s&&s.base})||null;if(!e)return c;const s=Object(a["b"])(e.position,t.getters.workspaceBoxDimensions);return Object(o["a"])(s)}},{id:n["TextTutorialId"].EXHAUSTED,text:t=>{const e=t.exhaustedVisible[t.exhaustedVisible.length-1],s=t.elementById(e);let n;if(s){const t=Object(i["a"])(s.name);n=`${t} is now a depleted item!
`}else n="You produced your first depleted item! ";return`${n} It means you discovered all uses of this item. Now when you tap it you'll send it straight to the encyclopedia!`},watcher:t=>{const e="new"===t.mixStatus;if(!e)return!1;if(!t.mixFather||!t.mixMother)return!1;const s=[t.mixFather.elementId,t.mixMother.elementId],i=s.some(e=>!0===t.elementIsExhausted(e));return i},after:t=>t.mixHasNewChildren?r["a"].then("ANIMATION_NEW_END"):Promise.resolve(),delay:1e3,getPosition:t=>{if(!t.getters.workspaceExhausted.length)return c;const e=Object(a["b"])(t.getters.workspaceExhausted[0].position,t.getters.workspaceBoxDimensions);return Object(o["a"])(e)}},{id:n["TextTutorialId"].GAME_END,text:"Nice!
You discovered all available items!
If you feel adventureous you can look for the remaining combinations!",watcher:t=>t.hasAllElements,after:()=>r["a"].then("GAME_END_ANIMATION_END"),delay:500,getPosition:()=>c},{id:n["TextTutorialId"].GAME_COMPLETION,text:"Impressive!
You discovered all available combinations!
Enjoy the art mode!",watcher:t=>t.hasAllCleared,after:()=>r["a"].then("GAME_COMPLETION_ANIMATION_END"),delay:500,getPosition:()=>c}];class h{constructor(t){this.unwatchList=[],this.tutorials=t}init(t){this.$store=t,this.initWatchers()}initWatchers(){this.tutorials.forEach(t=>{const{id:e}=t;if(this.$store.getters.wasTutorialTextShown(e))return;const s=this.$store.watch((e,s)=>t.watcher(s),e=>{e&&(this.waitToShow(t),s())});this.unwatchList.push(s)})}async waitToShow(t){"function"===typeof t.after&&await t.after(this.$store.getters),"number"===typeof t.delay&&await Object(i["c"])(t.delay),await this.canShow(),this.show(t)}canShow(){return null===this.$store.getters.tutorialTextCurrentId?Promise.resolve():new Promise(t=>{const e=this.$store.watch((t,e)=>null===e.tutorialTextCurrentId,s=>{s&&(t(),e())})})}show({id:t,getPosition:e}){const s=e(this.$store);this.$store.dispatch("tutorialTextShow",{id:t,position:s})}onReset(){this.unwatchAll(),this.initWatchers()}unwatchAll(){this.unwatchList.forEach(t=>t()),this.unwatchList=[]}getById(t){return this.tutorials.find(({id:e})=>t===e)||null}}const d=new h(l);e["a"]=d},"6e2e":function(t,e,s){"use strict";var i=s("2de2"),n=s("d257");class r{constructor(){this.elements={},this.descriptions={},this.tags=[]}init(t){this.loader=t}async loadBase(){const t=await this.loader.loadBase();return this.elements=t,Object(n["A"])("base","elements loaded",{elements:t}),this.elements}async loadDescriptions(){const t=await this.loader.loadDescriptions();return this.descriptions=t,Object(n["A"])("base","descriptions loaded",{descriptions:t}),this.descriptions}async loadTags(){const t=await this.loader.loadTags();return this.tags=t,Object(n["A"])("base","tags loaded",{tags:t}),this.tags}elementAdd(t,e){return this.elements[t]=e,this.elements}elementRemove(t){return delete this.elements[t],this.elements}getElementById(t){const e=`${t}`;return this.elements.hasOwnProperty(e)?this.elements[e]:null}getDescriptionById(t){const e=`${t}`;if(!this.descriptions.hasOwnProperty(e)){const t=this.getElementById(e);return t&&t.description.length?t.description:""}return this.descriptions[e]}}class a extends r{constructor(){super(...arguments),this.textElements={}}init(t){this.loader=t}async loadTextElements(){const t=await this.loader.loadTextElements();return this.textElements=t,Object(n["A"])("base","text elements loaded",{elements:t}),this.textElements}}const o=i["b"]?new a:new r;e["a"]=o},"6e95":function(t,e,s){"use strict";s.d(e,"a",(function(){return n}));var i=s("2b0e");new i["a"];const n=i["a"]},"6eeb":function(t,e,s){"use strict";var i=s("2de2");class n{async init(){const t=await this.load();return this.firebase=t,this.initApp()}async load(){const t=await Promise.all([s.e("firebase-app-firebase-auth-firebase-database-firebase-messaging"),s.e("firebase-app")]).then(s.t.bind(null,"59ca",7));return t.default}initApp(){return this.firebase.initializeApp(i["e"])}async reinitialize(){return await this.firebase.app().delete(),this.initApp()}}var r=n,a=s("d257"),o=s("7897"),c=s("1663");const l="__fcm",h=1500,d=3;class u{constructor(){this.onMessage=t=>{c["a"].emit("NOTIFICATION_RECEIVED",t),this.log("message received",t)}}init(t,e,s){this.firebase=t,this._saveToken=s,this.initEvents(),c["a"].once("PLAY",async()=>{await Object(a["c"])(h),this.shouldLoad(e)&&(await this.load(),this.onLoaded(),this.shouldRequestPermission(e)&&this.request())})}initEvents(){c["a"].on("NOTIFICATIONS_REQUEST",async()=>{await this.load(),this.onLoaded(),this.request()})}load(){return Promise.all([s.e("firebase-app-firebase-auth-firebase-database-firebase-messaging"),s.e("firebase-messaging")]).then(s.bind(null,"741f"))}onLoaded(){this.handleTokenRefresh(),this.messaging.onMessage(this.onMessage)}handleTokenRefresh(){this.messaging.onTokenRefresh(async()=>{const t=await this.getToken();this.sendToken(t)})}async request(){if(this.hasSavedToken||this.hasDenied)return;await this.requestPermission();const t=await this.getToken();this.sendToken(t),this.notifySuccess()}requestPermission(){return this.messaging.requestPermission()}async getToken(){const t=await this.messaging.getToken();if(!t)throw new Error;return t}async sendToken(t){"function"===typeof this._saveToken&&(await this._saveToken(t),Object(o["b"])(l,JSON.stringify(1)))}notifySuccess(){c["a"].emit("NOTIFICATIONS_APPROVED")}shouldLoad(t){return this.shouldRequestPermission(t)||window.Notification&&"granted"===Notification.permission}shouldRequestPermission(t){return t.getters.sessionsCount>=d&&!this.hasDenied}get messaging(){return this.firebase.messaging()}get hasSavedToken(){return!!Object(o["a"])(l)}get canRequest(){return!this.hasSavedToken&&!this.hasDenied}get hasDenied(){return!window.Notification||"denied"===Notification.permission}log(...t){Object(a["q"])("firebase","[NOTIFICATIONS]",...t)}}var m=u,p=s("b047"),g=s.n(p);const f={"auth/invalid-email":"Invalid email","auth/user-disabled":"User account is disabled","auth/user-not-found":"User not found","auth/wrong-password":"Password doesn't match the email","auth/email-already-in-use":"This email is already in use","auth/operation-not-allowed":"Unknown error occured","auth/weak-password":"Your password is too weak"};class E{constructor(t,e){this.handleError=t=>{const{code:e}=t,s=this.getErrorText(e);throw new Error(s)},this.firebase=t,this._onLoggedIn=e}async login({mail:t,password:e}){try{const{user:s,additionalUserInfo:i}=await this.firebase.auth().signInWithEmailAndPassword(t,e);this.notify(s,i)}catch(s){this.handleError(s)}}async signup({mail:t,password:e}){try{const{user:s,additionalUserInfo:i}=await this.firebase.auth().createUserWithEmailAndPassword(t,e);this.notify(s,i)}catch(s){this.handleError(s)}}async sendResetEmail(t){return this.firebase.auth().sendPasswordResetEmail(t).catch(this.handleError)}async checkProviders(t){try{const e=await this.firebase.auth().fetchSignInMethodsForEmail(t);if(!e.length)return"signup";const[s]=e;return s}catch(e){this.handleError(e)}}getErrorText(t){return f.hasOwnProperty(t)?f[t]:"Unknown error occured!"}notify(t,e){"function"===typeof this._onLoggedIn&&this._onLoggedIn(t,e)}}var b=E;class y{constructor(){this.unsubscribe=null,this.onAuthStateChanged=(t,e)=>{if(this.log("onAuthStateChanged",t),!t)return void this.onNotLoggedIn();const s={isAnonymous:t.isAnonymous,uid:t.uid,name:t.displayName,email:t.email,emailVerified:t.emailVerified,avatar:t.photoURL,providerId:e?e.providerId:"",isNewUser:!!e&&e.isNewUser};this.onLoggedIn(s)},this.onAuthStateChanged=g()(this.onAuthStateChanged,250,{leading:!0,trailing:!1})}async init(t,e,s){return this.firebase=t,this.$store=e,this.listeners=s,await this.load(),this.mail=new b(t,this.onAuthStateChanged),this.initAuth()}async load(){await Promise.all([s.e("firebase-app-firebase-auth-firebase-database-firebase-messaging"),s.e("firebase-auth")]).then(s.bind(null,"ea7b"))}initAuth(){null!==this.unsubscribe&&this.unsubscribe(),this.unsubscribe=this.auth.onAuthStateChanged(this.onAuthStateChanged,t=>this.log(t))}login(t){return"google"===t?this.loginGoogle():"facebook"===t?this.loginFacebook():Promise.reject()}loginGoogle(){const t=new this.firebase.auth.GoogleAuthProvider;return this.loginWithProvider(t)}loginFacebook(){const t=new this.firebase.auth.FacebookAuthProvider;return t.setCustomParameters({display:"popup"}),this.loginWithProvider(t)}async loginWithProvider(t){try{const e=await this.auth.signInWithPopup(t);return this.log(t.providerId,"login success",e),this.onAuthStateChanged(e.user,e.additionalUserInfo),e}catch(e){throw this.log(t.providerId,"login error",e),new Error(e.message)}}async logout(){try{await this.auth.signOut(),this.onLoggedOut()}catch(t){throw this.log("logout error",t),new Error(t.message)}}onLoggedIn(t){this.$store.dispatch("loggedIn",t),this.listeners.onLogin()}onNotLoggedIn(){this.$store.dispatch("notLoggedIn")}onLoggedOut(){this.$store.dispatch("loggedOut"),this.initAuth(),this.listeners.onLogout()}get auth(){return this.firebase.auth()}log(...t){Object(a["q"])("firebase","[AUTH]",...t)}}var v=y;class w{async init(t,e,s){const i=await this.load();await s(),this.handler=new i(t,e)}async load(){const[,t]=await Promise.all([this.loadDatabase(),this.loadHandler()]);return t}loadDatabase(){return Promise.all([s.e("firebase-app-firebase-auth-firebase-database-firebase-messaging"),s.e("firebase-database")]).then(s.bind(null,"66ce"))}async loadHandler(){const t=await s.e("firebase-database-handler").then(s.bind(null,"65f2"));return t.default}destroy(){this.handler&&this.handler.destroy(),this.handler=null}}var I=w;class O{constructor(){this.database=null,this.onLogin=()=>{this.initDatabase()},this.onLogout=()=>{this.database&&(this.database.destroy(),this.database=null)},this.reinitialize=()=>this.app.reinitialize()}async init(t){this.$store=t,this.app=new r,await this.app.init(),this.auth=new v,this.auth.init(this.firebase,this.$store,{onLogin:this.onLogin,onLogout:this.onLogout}),this.notifications=new m,this.notifications.init(this.firebase,this.$store,async t=>{if(await this.initDatabase(),!this.database)throw new Error("database not initialized");return this.database.handler.sendNotificationsToken(t)})}async initDatabase(){this.database=new I,await this.database.init(this.firebase,this.$store,this.reinitialize)}get firebase(){return this.app.firebase}}e["a"]=new O},"6f84":function(t,e){},7543:function(t,e,s){"use strict";s.d(e,"a",(function(){return i})),s.d(e,"b",(function(){return n})),s.d(e,"c",(function(){return r}));const i=(t,e)=>Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y)),n=(t,e)=>({x:t.x+e.width/2,y:t.y+e.height/2}),r=(t,e,s,i,n="half")=>{const r=t.x,a=t.y,o=r+e.width,c=a+e.height,l=i.width,h=i.height,d=s.x,u=d+l,m=s.y,p=m+h;return"touch"===n?(m>=a&&m<=c||p>=a&&p<=c||mc)&&(d>=r&&d<=o||u>=r&&u<=o||do):r{if(!t)return null;try{const e=localStorage.getItem(t);if(!e)return null;const s=JSON.parse(e);return s}catch(e){return null}},n=(t,e)=>{if(t)try{localStorage.setItem(t,JSON.stringify(e))}catch(s){console.error(s)}}},"7d61":function(t,e,s){"use strict";s.d(e,"a",(function(){return n}));var i=s("53b2");const n={[i["c"]]:{middle:"fusion-core-come-back",end:"fusion-core-out"},[i["f"]]:{start:"background-in",end:"background-out",hideContent:"hide-popup-content",showContent:"hide-popup-content-timer",baseShow:"item-unlocked-show",baseHide:"item-unlocked-hide"},[i["b"]]:{delete:"dematerialize-core-in",end:"dematerialize-timer",encyclopedia:"materialize-core-out",encyclopediaId:"animation-final-encyclopedia"},[i["a"]]:{transitionMiddle:"transform",revertMiddle:"opacity"},[i["e"]]:{end:"ending-hide"},[i["d"]]:{middle:"cover-show",end:"completion-hide"}}},"84df":function(t,e,s){"use strict"},"85eb":function(t,e,s){"use strict";var i;s.d(e,"a",(function(){return i})),function(t){t["Intro"]="INTRO",t["Mix"]="MIX",t["Guide"]="GUIDE"}(i||(i={}))},"93e8":function(t,e,s){"use strict";s.d(e,"a",(function(){return n})),s.d(e,"b",(function(){return r}));const i=t=>{const e=3,s=window.innerWidth/e,i=window.innerHeight/e,n=Math.floor(t.x/s),r=Math.floor(t.y/i);return{horizontal:n,vertical:r}},n=t=>{const e=i(t),s=e.horizontal,n=e.vertical;return{horizontal:s,vertical:n}},r=t=>"string"===typeof t},a097:function(t,e){},a799:function(t,e,s){"use strict";var i=s("c2e2"),n=s("ded8"),r=s("54cb"),a=s("623d");class o{init(t){this.$store=t}getDropMixResult(){if(!this.canMix)return null;const t=this.parents,e=Object(i["b"])(this.elements,t),s=!e.length,n={parents:t,children:e,positions:[]};if(s)return{...n,status:"mixFail"};const r=this.$store.getters.hasMixed(t);if(r)return{...n,status:"mixMixed"};const a=this.getChildrenPositions(e.length);return{...n,status:"mixNew",positions:a}}getBaseElementsMixResult(t){const e=r["a"].getRecentlyUnlockedIds();if(!e.length)return null;const s=t.concat(e),i=this.getChildrenPositions(s.length);return{base:e,children:s,positions:i}}getChildrenPositions(t){if(!this.father||!this.mother)return[];const e=[this.father.position,this.mother.position],s=this.$store.getters.workspaceBoxDimensions.width;return Object(i["a"])(e,s,t)}get elements(){return this.$store.getters.elements}get parents(){return this.father&&this.mother?Object(n["c"])([this.father.elementId,this.mother.elementId]):[a["a"],a["a"]]}get father(){return this.$store.getters.draggedElement}get mother(){return this.$store.getters.draggingOverElement}get canMix(){return!this.$store.getters.isMixingDisabled&&this.$store.getters.isOver&&this.$store.getters.isDragging&&!this.$store.getters.isOverStatic}}e["a"]=new o},ab1f:function(t,e){},b10a:function(t,e,s){"use strict";var i=s("d257"),n=s("7543"),r=s("199d"),a=s("c561"),o=s("2138"),c=s("1663");const l=20,h=10;class d{init(t){this.$store=t,c["a"].on("ELEMENT_CLONE",t=>this.onCloned(t))}onCloned(t){const e=this.getWorkspaceBoxById(t);if(!e)return;Object(i["x"])(e);const s=e.__vue__;s.onClone()}getCloneDirections(t,e){let s=1,i=-1;return t.x+e.width+h>=this.workspacePositionRight&&(s*=-1),t.y<=h&&(i*=-1),{x:s,y:i}}addToWorkspace(t){this.$store.dispatch("workspaceElementsAdd",[{...a["a"],id:Object(r["a"])(t),elementId:t,position:this.calculateNewElementPosition()}])}calculateNewElementPosition(){const t=this.workspaceBoxDimensions.width+l,e=this.workspaceBoxDimensions.height+l,s=this.workspacePositionRight-t,i=this.height/2-e/2;let n=0,r=i;while(r>0&&r0;e-=t)if(this.isEmptyPosition({x:e,y:r}))return{x:e,y:r};n*=-1,n>=0&&(n+=e),r=i+n}return{x:s,y:i}}isEmptyPosition(t){const e=this.$store.getters.droppables;return!e.some(e=>Object(n["c"])(e.position,this.workspaceBoxDimensions,t,this.workspaceBoxDimensions))}getWorkspaceBoxById(t){const e=document.querySelector(`#${o["g"]} [data-id="${t}"]`);return e||null}get workspacePositionRight(){const t=this.$store.getters.droppableStaticById(o["e"]);return t.position.x}get height(){return window.innerHeight}get workspaceBoxDimensions(){return this.$store.getters.workspaceBoxDimensions}}e["a"]=new d},b2eb:function(t,e,s){"use strict";s.r(e),s.d(e,"DELAY",(function(){return i})),s.d(e,"HIDE_DURATION",(function(){return n})),s.d(e,"SETTINGS",(function(){return r})),s.d(e,"PROGRESS_RESET",(function(){return a})),s.d(e,"LOGIN",(function(){return o})),s.d(e,"ENCYCLOPEDIA",(function(){return c})),s.d(e,"STORE",(function(){return l})),s.d(e,"HINTS",(function(){return h})),s.d(e,"SYNC",(function(){return d})),s.d(e,"NEWS",(function(){return u})),s.d(e,"RATING_MAIN",(function(){return m})),s.d(e,"RATING_REVIEW",(function(){return p})),s.d(e,"RATING_FEEDBACK",(function(){return g})),s.d(e,"ALL",(function(){return f}));const i=150,n=400,r="SETTINGS",a="PROGRESS_RESET",o="LOGIN",c="ENCYCLOPEDIA",l="STORE",h="HINTS",d="SYNC",u="NEWS",m="RATING_MAIN",p="RATING_REVIEW",g="RATING_FEEDBACK",f={[r]:r,[a]:a,[o]:o,[c]:c,[l]:l,[h]:h,[m]:m,[p]:p,[g]:g,[d]:d,[u]:u}},b7ba:function(t,e,s){"use strict";s.d(e,"c",(function(){return i})),s.d(e,"a",(function(){return n})),s.d(e,"b",(function(){return r}));const i="new",n="fail",r="mixed"},c2e2:function(t,e,s){"use strict";s.d(e,"b",(function(){return a})),s.d(e,"a",(function(){return c}));var i=s("da98");function n(t,[e,s],n){const r=t[n];if(!Object(i["a"])(t,n)||!Object(i["b"])(r))return[];const a=r.parents.filter(([t,i])=>e===t&&s===i).length;return 0===a?[]:1===a?[n]:Array(a).fill(n)}function r(t,[e,s]){if(!Object(i["a"])(t,e)||!Object(i["a"])(t,s))return[];const n=t[e],r=t[s];if(e===s)return n.children;const a=[];return n.children.forEach(t=>{r.children.includes(t)&&(a.includes(t)||a.push(t))}),a}function a(t,e){let s=[];const i=r(t,e),a=i.length;for(let r=0;r{const n=(t.y-e.y)/(t.x-e.x),r=s*o,a={x:(t.x+e.x)/2,y:(t.y+e.y)/2},c=a.x+Math.cos(Math.atan(-1/n))*i*r,l=a.y+Math.sin(Math.atan(-1/n))*i*r;return{x:Math.round(c),y:Math.round(l)}},r=[],a=Math.floor(i/2);for(let o=-a;o<=a;o++)(0!==o||i%2)&&r.push(n(o));return r}},c55c:function(t,e,s){"use strict";s.d(e,"a",(function(){return i})),s.d(e,"b",(function(){return n}));const i="encyclopediaFrame",n="https://littlealchemy2.com"},c561:function(t,e,s){"use strict";s.d(e,"a",(function(){return i}));const i={id:"",elementId:"",position:{x:0,y:-500}}},c97d:function(t,e,s){"use strict";var i=s("623d"),n=s("1663"),r=s("5d96"),a=s("d257");class o{constructor(){this._callback=null}init(t){return this.element=t,this.element.style.WebkitOverflowScrolling="touch",this.element.style.overflowY="scroll",this.element.style.overflowX="hidden",this.element.style.transform="translateZ(0)",Promise.resolve()}reinitialize(){return Promise.resolve()}enable(){this.element.style.overflow="scroll"}disable(){this.element.style.overflow="hidden"}onScroll(t){this._callback=()=>t({y:this.element.scrollTop}),this.element.addEventListener("scroll",this._callback,r["a"])}offScroll(){this._callback&&(this.element.removeEventListener("scroll",this._callback),this._callback=null)}scrollTo(t,e=350){Object(a["z"])(this.element,t,e)}get type(){return"native"}get y(){return this.element.scrollTop}onResize(){"function"===typeof this._callback&&this._callback()}refresh(){}}var c=o,l=s("0f32"),h=s.n(l),d=s("152b");const u=10;class m{constructor(){this._callback=null}async init(t){await this.initInstance(t),this.initMouseOutHandling()}async initInstance(t){const e=await this.load();return this.iscroll=new e(`#${t.id}`,{bindToWrapper:!1,mouseWheel:!0,deceleration:.0011,resizePolling:2e3,disablePointer:!0,disableMouse:!1,disableTouch:!1,bounceTime:300,probeType:3}),this.iscroll}async load(){const t=await s.e("iscroll").then(s.bind(null,"a59a"));return t.default}initMouseOutHandling(){document.addEventListener("mouseout",t=>{const e=t.relatedTarget||t.toElement;e&&"HTML"!==e.nodeName||Object(d["c"])(this.iscroll.wrapper)},!1)}async reinitialize(){if(!this.iscroll)return Promise.reject();const t=this.iscroll.wrapper;return this.iscroll.destroy(),this.initInstance(t)}enable(){this.iscroll&&(this.iscroll.initiated=!1,this.iscroll.enable())}disable(){this.iscroll&&this.iscroll.disable&&this.iscroll.disable()}onScroll(t){this._callback=h()(()=>{const e=-1*Math.round(this.iscroll.y);e+this.iscroll.wrapperHeight>this.iscroll.scrollerHeight||t({y:e})},u),this.iscroll.on("scroll",this._callback)}offScroll(){this.iscroll&&this.iscroll.off("scroll",this._callback)}scrollTo(t,e=350){this.iscroll&&this.iscroll.scrollTo(0,-t,e)}get type(){return"iscroll"}get y(){return this.iscroll?-this.iscroll.y:0}refresh(t){this.iscroll&&this.iscroll.refresh(!0,t)}onResize(){"function"===typeof this._callback&&this._callback()}}var p=m;class g{constructor(){this.initiated=!1,this.position=0,this.init=async()=>{this.hasNativeSupport()?this._handler=new c:this._handler=new p,await this.handler.init(this.scrollerElement),this.notify(),this.setScrollClass(),n["a"].on("RESIZE",()=>this.handler.onResize())},n["a"].once("LIBRARY_RENDERED",this.init)}onInit(){return this.initiated?Promise.resolve():new Promise(t=>n["a"].once("SCROLL_INITIATED",t))}hasNativeSupport(){const t="WebkitOverflowScrolling"in document.documentElement.style,e=a["o"]||t;return e}notify(){this.initiated=!0,n["a"].emit("SCROLL_INITIATED")}setScrollClass(){const t=this.isNative?"native":"iscroll";this.scrollerElement.classList.add(t)}scrollTop(t=150){this.handler.scrollTo(0,t)}savePosition(){this.position=this.handler.y}applyPosition(){this.handler.scrollTo(this.position,0),this.handler.onResize()}get scrollerElement(){return document.querySelector(`#${i["b"]}`)}get handler(){return this._handler}get isNative(){return"native"===this.handler.type}get isIScroll(){return"iscroll"===this.handler.type}}const f=new g;e["a"]=f},cd49:function(t,e,s){"use strict";s.r(e);var i=s("16b7");function n(){window.LA_FIRST_TIME_USER=!1;try{const t=localStorage.getItem(i["a"].PROGRESS)||null;window.LA_FIRST_TIME_USER=null===t}catch(t){window.LA_FIRST_TIME_USER=!1}}n();s("84df"),s("2929");var r=s("2b0e"),a=s("5c57"),o=s("d257"),c=s("6e2e"),l=s("da98"),h=s("2e77"),d=s.n(h);class u{async loadBase(){const t=await this.fetchBase(),e={};return Object.entries(t).forEach(([t,s])=>{e[t]=Object(l["c"])(s,t)}),e}fetchBase(){return Promise.resolve(d.a)}async loadDescriptions(){const t=await this.fetchDescriptions();return t}async fetchDescriptions(){const t=await s.e("descriptions").then(s.t.bind(null,"afd0",7));return t.default}async loadTags(){const t=await this.fetchTags();return t}async fetchTags(){const t=await s.e("tags").then(s.t.bind(null,"b9f0",7));return t.default}}var m=u,p=s("54cb"),g=s("1663"),f=s("80b0"),E=s.n(f),b=s("7897"),y=s("b2eb"),v=s("2de2");const w={id:"",offline:!1,immediate:!1,title:"",img:"",text:"",conditions:[],action:null,timestamp:Date.now()},I=1,O=1e3*I,A=60*O,S=60*A,T=24*S,_="https://littlealchemy2.com/public/news/v1/w",x="news",P=1,C=3*T,L=300;class D{constructor(){this._promise=null,this.initContent=async()=>{if(this.fetch().then(this.fillCache),this.$store.getters.sessionsCount<=P)return;const t=await this.load(),e=this.getNewsToShow(this.prepare(t));e&&this.show(e)},this.fillCache=(t=[])=>{let e=!1;const s=this.cached.map(({id:t})=>t);t.forEach(t=>{s.includes(t.id)||this.shown.includes(t.id)||("boolean"===typeof t.clear&&t.clear&&(e=!0),this.cached.push(t))}),this.cached=e?[]:this.cached.filter(({id:t})=>!this.shown.includes(t)),this.save()},this.shown=this.storage.shown||[],this.cached=this.storage.cached||[],this.lastShownTimestamp=this.storage.timestamp||-1}init(t){this.$store=t,g["a"].once("LIBRARY_RENDERED",this.initContent)}load(){const t=async()=>(await Object(o["c"])(L),this.cached);return Promise.race([this.fetch(),t()])}prepare(t){return t?t.map(t=>({...w,...t})).filter(({id:t,offline:e,conditions:s})=>{const i=this.shown.includes(t);if(i)return!1;const n=this.isOffline&&e||!this.isOffline,r=this.checkConditions(s);return r&&n}):[]}getNewsToShow(t){if(!t||!t.length)return null;const e=t.find(({immediate:t})=>t);if(e)return e;const s=Date.now()-this.lastShownTimestamp;if(sthis.$store.dispatch("popupShowWithData",{name:y["NEWS"],data:t})),g["a"].once("PLAY",()=>{this.shown.push(t.id),this.lastShownTimestamp=Date.now(),this.save()})}checkConditions(t){const e={versionEq:t=>t===v["j"],versionGt:t=>{const e=v["j"].split("."),s=t.split(".");return s.some((t,s)=>+t<+e[s])},versionLt:t=>{const e=v["j"].split("."),s=t.split(".");return s.some((t,s)=>+t>+e[s])},expired:t=>Date.now()<=t,after:t=>this.shown.includes(t)};return t.every(({type:t,value:s})=>!e.hasOwnProperty(t)||e[t](s))}save(){Object(b["b"])(x,{shown:this.shown,cached:this.cached,timestamp:this.lastShownTimestamp})}fetch(){return null!==this._promise?this._promise:(this._promise=Object(o["d"])(_),this._promise)}get storage(){return Object(b["a"])(x)||{}}get isOffline(){return!this.$store.getters.online}}var R=new D,N=s("c55c");const k=t=>null!==t&&void 0!==t,M=t=>"function"===typeof t;var j=s("b10a");const $={addToWorkspace:({id:t})=>j["a"].addToWorkspace(t)};var H=$,B=s("152b");const F=(t,e,s)=>({trigger:t,command:e,...s}),G=[F("ENCYCLOPEDIA_ELEMENTS","elements",{prepare:()=>({elements:c["a"].elements})}),F("ENCYCLOPEDIA_TAGS","tags",{prepare:()=>({tags:c["a"].tags})}),F("ENCYCLOPEDIA_DESCRIPTIONS","descriptions",{prepare:()=>({descriptions:c["a"].descriptions})}),F("ENCYCLOPEDIA_SHOW_ITEM","showItem",{prepare:(t,e)=>({id:e}),callback:async t=>{Object(B["c"])(document.body,"longpress"),await Object(o["c"])(60),t.dispatch("popupShow",y["ENCYCLOPEDIA"])}}),F("ENCYCLOPEDIA_SHOW_HELP","showHelp",{prepare:(t,e)=>({id:e}),callback:async t=>{await Object(o["c"])(60),t.dispatch("popupShow",y["ENCYCLOPEDIA"])}}),F("ENCYCLOPEDIA_POPUP_HIDE","hiding",{callback:()=>{document.activeElement&&"function"===typeof document.activeElement.blur&&document.activeElement.blur()}}),F("PROGRESS_RESET","reset",{}),F("ENCYCLOPEDIA_MIX_BASE","mixBase",{prepare:(t,e)=>({elements:e})}),F("ENCYCLOPEDIA_MIX_NEW","mixNew",{prepare:(t,e)=>{const s=e.parents.filter(e=>t.getters.elementIsExhausted(e));return{...e,exhausted:s}}}),F("ENCYCLOPEDIA_PROGRESS_ANALYZED","progress",{prepare:t=>{const e=t.getters.totalProgressElements.filter(e=>t.getters.elementIsExhausted(e));return{history:t.getters.history,progress:t.getters.progress,timestamps:t.getters.total,prime:t.getters.prime,base:t.getters.base,final:t.getters.final,exhausted:e}}})];var U=G;class W{constructor(){this.saved=[],this.loaded=!1,this.onMessageReceived=t=>{if(!t.data||!t.data.length)return;if(t.origin!==N["b"])return;const e=this.parseJSON(t.data);e&&this.onMessage(e)}}init(t){this.$store=t,window.addEventListener("message",this.onMessageReceived,!1),this.initCommands()}initCommands(){U.forEach(t=>{g["a"].on(t.trigger,e=>{let s={};M(t.prepare)&&(s=t.prepare(this.$store,e)),this.post(t.command,s),M(t.callback)&&t.callback(this.$store)})})}onMessage({command:t,data:e}){this.log("onMessage",t,e),"ready"!==t?H.hasOwnProperty(t)&&H[t](e):this.onReady()}onReady(){this.log("ready"),this.loaded=!0,this.saved.forEach(t=>this.post(...t)),this.saved=[],this.post("version",{version:v["j"]});let t="";Object(o["j"])()&&(t="Chrome"),Object(o["p"])()&&(t="Safari"),Object(o["l"])()&&(t="Edge"),this.post("userAgent",{browser:t})}post(t,e={}){if(!this.loaded)return this.log("post save",t,e),void this.saved.push([t,e]);if(!this.iframe)return;const s={command:t,data:e};this.log("post",t,e),this.iframe.postMessage(JSON.stringify(s),"*")}parseJSON(t){try{return JSON.parse(t)}catch(e){return null}}get iframe(){const t=document.getElementById(N["a"]);return t?t.contentWindow:null}log(...t){Object(o["q"])("encyclopedia",...t)}}var Y=new W;const K=()=>{if(!Object(o["n"])()){const t="proper-hover";document.body.classList.add(t)}if(Object(o["n"])()&&Object(o["p"])()){document.addEventListener("gestureend",t=>{t.scale&&1!==t.scale&&t.preventDefault()},!1),document.addEventListener("touchmove",t=>{t.scale&&1!==t.scale&&t.preventDefault()},!1);let t=0;document.addEventListener("touchend",e=>{const s=Date.now();s-t<=300&&e.preventDefault(),t=s},!1)}},z=[K];class V{init(){this.applyChanges(),this.disableContextMenu(),this.addCommitHelpers()}applyChanges(){z.forEach(t=>t())}disableContextMenu(){document.oncontextmenu=()=>!1}addCommitHelpers(){window.__COMMIT_HASH=()=>"41fd4c0"}}var X=new V,q=s("3b56"),Q=s("85eb");const J=.6,Z=()=>a["a"].getters.droppablesActive,tt=[{name:Q["a"].Intro,check:()=>!a["a"].getters.hasProgress,next:Q["a"].Mix,hide:()=>g["a"].then("ELEMENT_DROP")},{name:Q["a"].Mix,check:()=>!a["a"].getters.hasProgress&&1===a["a"].getters.droppablesActive.length,next:Q["a"].Guide,hide(){return new Promise(t=>{const e=()=>{Z().length<2||(g["a"].off("ELEMENT_DROP",e),g["a"].off("MIX_NEW",e),t())};g["a"].on("ELEMENT_DROP",e),g["a"].once("MIX_NEW",e)})}},{name:Q["a"].Guide,check:()=>!a["a"].getters.hasProgress&&2===Z().length,hide(){return new Promise(t=>{let e;const s=()=>{g["a"].off("ELEMENT_DESTROY",e),g["a"].off("MIX_NEW",s),t()};e=()=>{Z().length>=1||s()},g["a"].on("ELEMENT_DESTROY",e),g["a"].once("MIX_NEW",s)})}}];class et{constructor(){this.check=()=>{if(a["a"].getters.isLoggedIn)return void g["a"].emit("TUTORIALS_FINISHED");const t=tt.find(t=>t.check())||null;t?this.show(t):g["a"].emit("TUTORIALS_FINISHED")},this.notifyIfFinished=()=>{const t=a["a"].getters.isLoggedIn,e=tt.some(t=>t.check());!t&&e||a["a"].commit("TUTORIALS_FINISHED")},this.reset=()=>{this.hide(),a["a"].dispatch("tutorialsFinished"),g["a"].off("PLAY",this.check),g["a"].off("WORKSPACE_CLEAR",this.reset),g["a"].off("LOGGED_IN",this.reset)}}init(){g["a"].once("PLAY",this.check),g["a"].once("WORKSPACE_CLEAR",this.reset),g["a"].once("LOGGED_IN",this.reset),g["a"].onReady().then(this.notifyIfFinished)}show(t){a["a"].dispatch("tutorialShow",t.name),g["a"].emit("TUTORIALS_PROGRESS",{type:"start",name:t.name}),t.hide().then(()=>{const e=this.getNext();this.hide(),g["a"].emit("TUTORIALS_PROGRESS",{type:"end",name:t.name}),e?this.showNext(e):window.setTimeout(()=>a["a"].dispatch("tutorialsFinished"),1e3*J)})}getNext(t=this.current){if(!t||!t.hasOwnProperty("next"))return null;const e=this.getByName(t.next);return e&&e.check()?e:null}showNext(t){t&&window.setTimeout(()=>{if(t.check())this.show(t);else{const e=this.getNext(t);e?this.showNext(e):this.reset()}},1e3*J)}hide(){a["a"].dispatch("tutorialHide")}get current(){const t=a["a"].getters.tutorial;return t?this.getByName(t):null}getByName(t){return tt.find(e=>e.name===t)}}var st=new et,it=s("6953"),nt=s("2540"),rt=s("5d96"),at=s("571d");const ot=0;var ct=s("7543");const lt=t=>t.target&&t.target.parentElement&&t.target.parentElement.classList&&t.target.parentElement.classList.contains("element"),ht=2,dt=600,ut=30;let mt=0,pt=null,gt=null,ft=null,Et=null,bt=null;const yt=()=>{if(!gt)return;const t=document.createEvent("Event");t.initEvent("doubletap",!0,!0),gt.dispatchEvent(t)},vt=()=>{clearTimeout(pt),pt=null,mt=0,gt=null,bt=null,ft=null,Et=null},wt=t=>{t.simulated||"mousedown"===t.type&&t.button!==ot||null!==Et&&Et!==t.type||null!==gt&>!==t.target||lt(t)&&(gt=t.target,Et=t.type,clearTimeout(pt),pt=window.setTimeout(vt,dt),0!==mt||bt||(bt={x:t.pageX,y:t.pageY}))},It=t=>{if(t.simulated)return;if("mouseup"===t.type&&t.button!==ot)return;if(null!==ft&&ft!==t.type)return;if(null!==gt&>!==t.target)return;if(!lt(t))return;if(!bt)return void vt();const e=Object(ct["a"])(bt,{x:t.pageX,y:t.pageY});e>ut?vt():(ft=t.type,clearTimeout(pt),pt=window.setTimeout(vt,dt),mt++,mt===ht&&(yt(),vt()))},Ot=1e3,At=2;let St,Tt=null,_t=null,xt=null,Pt=null,Ct=null;const Lt=()=>{document.removeEventListener(`${Ct}move`,St,!1),clearTimeout(_t),_t=null,Tt=null,Ct=null},Dt=()=>{if(!Tt)return void Lt();const t=document.createEvent("Event");t.initEvent("longpress",!0,!0),Tt.dispatchEvent(t),Lt()},Rt=()=>{if(!Pt||!xt)return 0;const t=Object(ct["a"])(Pt,xt);return t<=At},Nt=t=>{t.simulated||(null===Ct||t.type.includes(Ct))&&("mousedown"!==t.type&&"pointerdown"!==t.type||t.button===ot)&<(t)&&(Tt=t.target,Ct=t.type.replace("down","").replace("start",""),xt={x:t.pageX,y:t.pageY},Pt=xt,_t=window.setTimeout(()=>{Rt()?Dt():Lt()},Ot),St=t=>{_t&&(Pt={x:t.pageX,y:t.pageY})},document.addEventListener(`${Ct}move`,St,!1))},kt=t=>{(null===Ct||t.type.includes(Ct))&&Lt()};class Mt{constructor(){this.onDown=this.onDown.bind(this),this.onUp=this.onUp.bind(this)}init(){at["d"].forEach(t=>{document.addEventListener(t,this.onDown,rt["a"])}),at["e"].forEach(t=>{document.addEventListener(t,this.onUp,rt["a"])})}onDown(t){wt(t),Nt(t)}onUp(t){It(t),kt(t)}}var jt=new Mt,$t=s("c97d");class Ht{init(t){this.$store=t}onDragStart(t){null!==t&&($t["a"].handler.disable(),this.$store.dispatch("dragStart",t))}onDragEnd(t,e=!1){$t["a"].handler.enable(),this.$store.dispatch("dragEnd",{position:t,simulated:e})}async onLibraryDistanceDragged(t,e,s,i,n){$t["a"].handler.disable();const r=this.calculatePosition(e,s,i);let a=this.$store.getters.draggableHelperId,c=this.$store.getters.draggableHelperElement;c&&this.getWorkspaceBoxElement(a)||(this.$store.commit("DRAGGABLE_HELPER_RESET"),this.$store.dispatch("draggableHelperAdd",!0),a=this.$store.getters.draggableHelperId,c=this.$store.getters.draggableHelperElement,await Object(o["r"])()),this.$store.commit("DRAGGABLE_HELPER_PREPARE",{helper:c,elementId:t,position:r}),this.$store.commit("DRAGGABLE_HELPER_RESET"),this.simulateStartDrag({id:a,dragPoint:s,startEventType:n})}calculatePosition(t,e,s){const i=this.$store.getters.workspaceBoxDimensions,n=this.$store.getters.libraryBoxDimensions,r={...s},a=this.$store.getters.libraryBoxMargin,o=i.width!==n.width,c=i.height!==n.height;if(o||c){const o=i.width/n.width,c=i.height/n.height,l=o*(t.x-s.x),h=c*(t.y-s.y),d=e.x-t.x,u=e.y-t.y;r.x=t.x-l+o*a+d,r.y=t.y-h+u}return r}simulateStartDrag({id:t,dragPoint:{x:e,y:s},startEventType:i}){const n={cancelable:!1,simulated:!0,pageX:e,pageY:s,clientX:e,clientY:s,startEventType:i},r=this.getWorkspaceBoxElement(t);if(!r)throw new Error("DragManager.simulateStartDrag - empty helper");const a=r.__vue__;a&&(a.updateDraggablePosition(),a.draggable.dragStart(n,n))}getWorkspaceBoxElement(t){return document.querySelector(`#workspace [data-id="${t}"]`)}get isDragging(){return this.$store.getters.isDragging}}var Bt=new Ht,Ft=s("d0c4");class Gt{init(t){this.$store=t,g["a"].once("PLAY",()=>this.setInitial())}setInitial(){this.$store.dispatch("statsSessionsCount"),this.$store.dispatch("statsInitialProgress")}}var Ut=new Gt;const Wt="https://littlealchemy2.com/static/online";class Yt{init(t){this.$store=t,this.initEvents(),this.isOnline()}initEvents(){window.addEventListener("online",()=>this.notify(!0)),window.addEventListener("offline",()=>this.notify(!1))}isOnline(){const t=navigator.onLine;return t?this.testConnection().then(t=>this.notify(t)):(this.notify(!1),Promise.reject())}notify(t){const e=t?"ONLINE":"OFFLINE";g["a"].emit(e);const s=t?"online":"offline";return this.$store.dispatch(s),t}testConnection(){return new Promise(t=>{const e=new XMLHttpRequest;e.open("HEAD",Wt),e.send(),e.onprogress=()=>t(!0),e.onload=()=>t(!0),e.onerror=()=>t(!1)})}}var Kt=new Yt,zt=s("a799");const Vt=1050;class Xt{init(t){this.$store=t}startExhausted(t){this.$store.dispatch("animationExhaustedStart",t),window.setTimeout(()=>{this.$store.dispatch("animationExhaustedFinished",t),this.$store.dispatch("animationReset")},Vt),this.startFinal(t)}startFinal(t){this.$store.dispatch("animationFinalStart",t)}}var qt=new Xt;class Qt{constructor(){this.onShow=()=>{this.$store.commit("VISIBILITY",!0)},this.onHide=()=>{this.$store.commit("VISIBILITY",!1)}}init(t){this.$store=t,g["a"].on("BLUR",this.onHide),g["a"].on("FOCUS",this.onShow),g["a"].on("VISIBILITY_HIDDEN",this.onHide),g["a"].on("VISIBILITY_VISIBLE",this.onShow)}}var Jt=new Qt;const Zt="sfx",te="music",ee="connector",se="silence",ie=1,ne=2,re="static/audio/sfx/",ae="static/audio/music/",oe=3,ce="audio-extension",le="GenericClick",he=0,de=.6,ue=.08,me=.01;class pe{constructor(t,e){this.$store=e,this.context=t,this.sfx=this.context.createGain(),this.setVolume(this.sfx.gain,de),this.music=this.context.createGain(),this.setVolume(this.music.gain,me),this.gain=this.context.createGain(),this.sfx.connect(this.gain),this.music.connect(this.gain),this.gain.connect(this.context.destination),this.initWatchers()}initWatchers(){this.$store.watch((t,e)=>e.playMusic,t=>this[t?"unmute":"mute"](te)),this.$store.watch((t,e)=>e.playSfx,t=>this[t?"unmute":"mute"](Zt))}mute(t){const e=t===te?me:he;this.setVolumeSmooth(this[t].gain,e)}unmute(t,e=ue){const s=t===te?this.getMusicMax(e):de;this.setVolumeSmooth(this[t].gain,s)}async fadeInMusic(t=oe,e=ue){if(this.canPlay(te)){const s=this.getMusicMax(e);this.music.gain.value!==s&&this.setVolume(this.music.gain,me),this.music.gain.exponentialRampToValueAtTime(s,this.context.currentTime+t)}await Object(o["c"])(1e3*t)}async fadeOutMusic(t=oe){this.music.gain.exponentialRampToValueAtTime(me,this.context.currentTime+t),await Object(o["c"])(1e3*t)}canPlay(t){return t===te?this.$store.getters.playMusic:this.$store.getters.playSfx}setVolume(t,e){t.setValueAtTime(e,this.context.currentTime)}setVolumeSmooth(t,e){const s=.25;t.setTargetAtTime(e,this.context.currentTime,s)}getMusicMax(t){return 100===t?ue:t/100*ue}}var ge=pe;const fe={name:"",type:null,url:null,buffer:null},Ee={...fe,lazy:!0,loop:!1,mood:-1,duration:0,fadeIn:0,fadeOut:0,volume:100,silenceAfter:0,prevents:[]},be=t=>t.hasOwnProperty("lazy");class ye{constructor(t){this.sounds={},this.decode=t=>new Promise((e,s)=>this.context.decodeAudioData(t,e,s)),this.context=t}add(t,e){const s=this.extension,i=t===Zt?re:ae,n=t===Zt?fe:Ee;Object.entries(e).forEach(([e,r])=>{const a={...n,...r};a.name=e,a.type=a.type||t,a.url&&(a.url=`${i}${a.url}.${s}`),this.sounds[e]=a})}get(t){return this.sounds.hasOwnProperty(t)?this.sounds[t]:null}loadAll(){const t=[];return Object.values(this.sounds).forEach(e=>{be(e)&&e.lazy||t.push(this.load(e))}),Promise.all(t)}load(t){const{name:e,url:s=null}=t;return this.sounds.hasOwnProperty(e)&&s?t.hasOwnProperty("promise")?t.promise:(t.promise=this.fetch(s).then(this.decode).then(e=>(t.buffer=e,!0)).catch(t=>{throw console.error("Error while loading and decoding sound",t),new Error(t.message)}),t.promise):Promise.resolve(null)}fetch(t){const e=new XMLHttpRequest;return e.open("GET",t,!0),e.responseType="arraybuffer",new Promise((t,s)=>{e.onload=()=>t(e.response),e.onerror=s,e.send()})}get extension(){const t=document.getElementById(ce);if(!t||!t.currentSrc)return"ogg";const e=t.currentSrc;return e.includes(".m4a")?"m4a":"ogg"}}var ve=ye;const we={click:{url:le,volume:100},pickup:{url:"PickUpItem",volume:100},drop:{url:"DropItem",volume:100},alreadymixed:{url:"AlreadyMixed",volume:400},clone:{url:"CloneItem",volume:150},failed:{url:"FailedToMix",volume:80},remove:{url:"RemoveItem",volume:80},charge:{url:"ChargeUp",volume:10},pop:{url:"PopUp",volume:30}},Ie={DRAG_START:"pickup",ELEMENT_DROP:"drop",ELEMENT_CLONE:"clone",ELEMENT_DESTROY:"remove",MIX_MIXED:"alreadymixed",MIX_FAIL:"failed",MIX_NEW:"charge",ANIMATION_NEW_POP:"pop",BUTTON_CLICK:"click"};class Oe{constructor(t){this.play=t,this.initTriggersListeners()}initTriggersListeners(){Object.entries(Ie).forEach(([t,e])=>g["a"].on(t,()=>this.play(e)))}get sounds(){return we}}var Ae=Oe;const Se={LA_001:{type:te,url:"LA_001",mood:ne,silenceAfter:10,prevents:["LA_001_loop"]},LA_002:{type:te,url:"LA_002",mood:ne,silenceAfter:10,prevents:["LA_002_loop"]},LA_003:{type:te,url:"LA_003",mood:ne,silenceAfter:15,prevents:["LA_003_loop"]},LA_FS_3_4:{type:te,url:"LA_FS_3_4",mood:ne,silenceAfter:10,prevents:["LA_FS_3_4_loop"]},LA_004:{type:te,url:"LA_004_Loop",loop:!0,mood:ie,duration:320,volume:70,silenceAfter:6,fadeIn:4,fadeOut:4},LA_005:{type:te,url:"LA_005_Loop",loop:!0,mood:ie,duration:246,volume:70,silenceAfter:20,fadeIn:4,fadeOut:4},LA_006:{type:te,url:"LA_006_Loop",loop:!0,mood:ne,duration:180,silenceAfter:6,fadeIn:2,fadeOut:2},LA_FS_001:{type:te,url:"LA_FS_001_Loop",loop:!0,mood:ie,duration:200,volume:70,silenceAfter:10,fadeIn:4,fadeOut:4},LA_FS_0032:{type:te,url:"LA_FS_0032_Loop",loop:!0,mood:ie,duration:60},LA_001_loop:{type:ee,url:"LA_001_Loop",loop:!0,mood:ie,duration:50,volume:50,silenceAfter:6,fadeIn:6,fadeOut:6,prevents:["LA_001"]},LA_002_loop:{type:ee,url:"LA_002_Loop",loop:!0,mood:ie,duration:100,volume:50,silenceAfter:15,fadeIn:3,fadeOut:6,prevents:["LA_002"]},LA_003_loop:{type:ee,url:"LA_003_Loop",loop:!0,mood:ie,duration:90,volume:50,silenceAfter:10,fadeIn:2,fadeOut:5,prevents:["LA_003"]},LA_FS_3_4_loop:{type:ee,url:"LA_FS_3_4_Loop",loop:!0,mood:ie,duration:64,volume:50,silenceAfter:10,fadeIn:3,fadeOut:6,prevents:["LS_FS_3_4"]},[se]:{type:ee,buffer:[],duration:20}};var Te=Se;const _e=6e4,xe=15e4,Pe=3e5,Ce=1,Le=()=>{let t=0,e=0,s=0;const i=Date.now();return a["a"].getters.history.forEach(({timestamp:n})=>{const r=i-n;r<_e?t++:r{const{short:t,long:e,finish:s}=Le(),i=3*t+2*e+s;return i>Ce?ne:ie};var Re=De;const Ne=5,ke="LA_006";class Me{constructor(t,e){this.history=[],this.playNext=()=>{const t=this.getNext();Object(o["q"])("music","next track",t),this.play(t),this.addToHistory(t)},this.base=t,this.play=e,Te[ke].lazy=!1,g["a"].once("PLAY",()=>{this.play(ke),this.addToHistory(ke)})}onTrackFinished(){Object(o["q"])("music","trackFinished",this.current),this.current&&this.current.silenceAfter?window.setTimeout(this.playNext,1e3*this.current.silenceAfter):this.playNext()}getNext(){let t=this.calculateRandomNext();return this.history.includes(t)&&(t=this.calculateRandomNext()),t}calculateRandomNext(){const t=this.calculateMood();if(!this.current)return se;if(this.current.type===te&&this.current.mood===ne)return this.randomConnector();if(this.current.mood===ie){const t=[this.randomConnector(),this.randomTrack(ie)];return this.random(t)}return this.current.type===ee?this.randomTrack(t):this.randomConnector()}calculateMood(){return Re()}randomConnector(){const t=this.names.filter(t=>this.getSound(t).type===ee&&!this.prevents.includes(t)&&t!==this.latest);return this.random(t)}randomTrack(t){const e=this.names.filter(e=>{const s=this.getSound(e);return!!s&&(s.type===te&&s.mood===t&&e!==this.latest&&!this.prevents.includes(e))});return this.random(e)}random(t){const e=Math.floor(Math.random()*t.length);return t[e]}addToHistory(t){this.history.unshift(t),this.history.length>Ne&&this.history.pop()}getSound(t){return this.base.sounds.get(t)}get current(){return this.getSound(this.latest)}get prevents(){return this.current?this.current.prevents:[]}get sounds(){return Te}get names(){return Object.keys(this.sounds)}get latest(){return this.history.length?this.history[0]:""}}var je=Me;const $e=.4;class He{constructor(t,e,s){this.timer=null,this.source=null,this.startedAt=-1,this.pausedAt=0,this.onEnded=()=>{this.base.onTrackFinished()},this.durationReached=()=>{const t=.5,e=this.context.currentTime-this.startedAt+t;ethis.stop(!0)):this.stop(!0))},this.base=t,this.context=e,this.$store=s,this.initVisibilityListener(),this.initMuteListener()}initVisibilityListener(){this.$store.watch((t,e)=>e.isGameActive,t=>t?this.onShow():this.onHide())}initMuteListener(){this.$store.watch((t,e)=>e.playMusic,t=>{Object(o["q"])("music","mute music",!t),!this.isPlaying||t?!this.isPlaying&&t&&this.current&&this.play(this.current):this.pause()})}play(t){const e=this.base.sounds.get(t);this.isValid(e)&&(this.$store.dispatch("musicPlay",t),Object(o["q"])("music","play track",e),this.current!==se?(this.playSource(e),0!==this.currentDuration&&(this.clearTimer(),this.timer=window.setTimeout(this.durationReached,1e3*(this.currentDuration-this.pausedAt))),e.fadeIn?this.volume.fadeInMusic(e.fadeIn,e.volume):this.volume.unmute(te,e.volume)):window.setTimeout(()=>{this.$store.dispatch("musicStop"),this.onEnded()},1e3*this.currentDuration))}isValid(t){return!!t&&(!this.isPlaying&&!this.isHidden&&(this.volume.canPlay(te)&&this.$store.getters.isGameActive?!!t.buffer||(this.base.sounds.load(t).then(()=>this.play(t.name)).catch(()=>null),!1):(this.$store.dispatch("musicSet",t.name),!1)))}playSource(t){if(!t.buffer)return;const e=this.context.createBufferSource();e.buffer=t.buffer,e.loop=t.loop,e.connect(this.volume.music);const s=this.pausedAt;e.start(0,s),e.onended=this.onEnded,this.source=e,this.startedAt=this.context.currentTime-this.pausedAt,this.pausedAt=0}pause(){const t=this.context.currentTime-this.startedAt;this.pausedAt=t,this.stop(),this.$store.dispatch("musicPause")}stop(t=!1){null!==this.current&&null!==this.source&&(this.source.stop||(this.source.stop=this.source.noteOff),this.clearTimer(),t?this.$store.dispatch("musicStop"):this.source.onended=null,Object(o["q"])("music","stop track",this.current),this.source.stop(0),this.source=null,this.startedAt=-1)}async onShow(){this.currentSound&&!this.isPlaying&&(await this.context.resume(),Object(o["q"])("music","start on show",this.current),this.play(this.current),this.currentSound&&!this.currentSound.fadeIn&&this.volume.fadeInMusic($e,this.currentSound.volume))}async onHide(){this.isPlaying&&(Object(o["q"])("music","stop on hide",this.current),await this.volume.fadeOutMusic($e),await this.pause(),this.context.suspend(),this.clearTimer())}clearTimer(){this.timer&&window.clearTimeout(this.timer),this.timer=null}get volume(){return this.base.volume}get isPlaying(){return this.$store.getters.isMusicPlaying}get current(){return this.$store.getters.currentMusic}get currentSound(){return this.current?this.base.sounds.get(this.current):null}get currentDuration(){if(!this.current||!this.currentSound)return 0;const t=this.currentSound,e=t.duration,s=t.fadeOut?t.fadeOut:0;return e-s}get isHidden(){return"hidden"===document.visibilityState||document.hidden}}var Be=He;class Fe{constructor(){this.playMusic=t=>{this.player.play(t)},this.playSFX=t=>{const e=this.sounds.get(t);if(!e)return;if(!e.buffer)return;if(!this.volume.canPlay(Zt))return;if(!this.context)return;const s=this.context.createBufferSource();s.buffer=e.buffer;let i=this.volume.sfx;"number"===typeof e.volume&&(i=this.context.createGain(),i.gain.setValueAtTime(e.volume/100,this.context.currentTime),i.connect(this.volume.sfx),s.onended=()=>i.disconnect()),s.connect(i),s.start(0,0)}}init(t){if("AudioContext"in window)this.context=new window.AudioContext;else{if(!("webkitAudioContext"in window))return void t.commit("AUDIO_DISABLED");this.context=new window.webkitAudioContext}this.player=new Be(this,this.context,t),this.sounds=new ve(this.context),this.volume=new ge(this.context,t),this.sfx=new Ae(this.playSFX),this.music=new je(this,this.playMusic),g["a"].once("AUDIO_EXTENSION",()=>{this.sounds.add(Zt,this.sfx.sounds),this.sounds.add(te,this.music.sounds),window.setTimeout(()=>this.sounds.loadAll(),0)}),this.initInteraction()}initInteraction(){if(!this.context)return;const t=()=>{this.context.resume(),document.removeEventListener("mousedown",t,!1),document.removeEventListener("touchstart",t,!1)};document.addEventListener("mousedown",t,!1),document.addEventListener("touchstart",t,!1)}onTrackFinished(){this.music.onTrackFinished()}}var Ge=new Fe,Ue=s("6eeb");const We={logged_in:"dimension1",music_active:"dimension2",sfx_active:"dimension3",engagement:"dimension4",progress:"dimension5"},Ye={game_ready_timing:"metric1",session_progress:"metric2",total_progress:"metric3",fails_on_hints_click:"metric4"},Ke=["4","5","6","10","20","30","50","75","100","150","200","250","300","400","500"],ze=t=>{const e=Ke.findIndex(e=>!(+e<=t))||-1;return-1===e?null:Ke[e-1]},Ve=(t,e)=>({trigger:t,handle:e}),Xe=(t,e)=>({watcher:t,handle:e}),qe=[Ve("ANALYTICS_INIT",({send:t})=>t("metrics","game_ready",null,null,null,!0)),Ve("PLAY",({send:t})=>t("metrics","play_clicked")),Ve("MIX_NEW",async({send:t,$store:e})=>{await Object(o["c"])(500);const s=e.getters.totalProgress,i=ze(s);i&&t("metrics","total_progress",i,+i)}),Ve("TUTORIALS_FINISHED",({send:t})=>t("metrics","tutorials_finished")),Ve("HINTS_CLICKED",({send:t,$store:e})=>{t("metrics","hints_clicked"),t("user","opens hints - fails streak",e.getters.sessionFailStreak)}),Ve("UNLOAD",({send:t,$store:e})=>t("user","leaves - fails streak",e.getters.sessionFailStreak))];var Qe=qe;const Je=[Ve("ANALYTICS_INIT",({set:t,$store:e})=>{t("game_ready_timing",Math.round(window.performance.now())),t("music_active",e.state.settings.music),t("sfx_active",e.state.settings.sfx),e.getters.totalProgress===e.getters.prime.length&&t("engagement","game_ready")}),Ve("PLAY",({set:t,$store:e})=>{const s=e.getters.totalProgress,i=e.getters.prime.length;s===i?t("engagement","play_clicked"):s===i+1?t("engagement","tutorials_finished"):s>=i+2&&t("engagement","own_element");const n=ze(s);n&&t("progress",n)}),Ve("MIX_NEW",async({set:t,$store:e})=>{await Object(o["c"])(500);const s=e.getters.sessionStats.initialProgress,i=e.getters.totalProgress,n=i-s;t("session_progress",n),i===e.getters.prime.length+2&&t("engagement","own_element");const r=ze(i);r&&t("progress",r)}),Ve("LOGGED_IN",({set:t})=>t("logged_in",!0)),Ve("NOT_LOGGED_IN",({set:t})=>t("logged_in",!1)),Ve("TUTORIALS_FINISHED",({set:t})=>t("engagement","tutorials_finished")),Ve("TUTORIALS_PROGRESS",({set:t},{type:e,name:s})=>t("engagement",`tutorial_${e}_${s}`)),Ve("ANIMATION_NEW_POP",({set:t,$store:e})=>{e.getters.totalProgress>5||t("engagement","first_new_animation_pop")}),Ve("ANIMATION_NEW_END",({set:t,$store:e})=>{e.getters.totalProgress>5||t("engagement","first_new_animation_end")}),Ve("HINTS_CLICKED",({set:t})=>t("engagement","hints_clicked")),Ve("GAME_ENDED",({set:t})=>t("engagement","game_ended")),Ve("GAME_COMPLETED",({set:t})=>t("engagement","game_completed"))],Ze=[Xe(t=>t.playMusic,({set:t},e)=>t("music_active",e)),Xe(t=>t.playSfx,({set:t},e)=>t("sfx_active",e))],ts=[...Je,...Ze];var es=ts;const ss=[Ve("GAME_READY",({timing:t})=>t("ready",Math.round(window.performance.now())))];var is=ss;const ns=[...Qe,...es,...is];var rs=ns;const as=t=>t.hasOwnProperty("trigger"),os={...We,...Ye};class cs{constructor(){this.setup=()=>{this.setupTracker(),this.initHandlers()},this.send=(t,e,s=null,i=null,n=null,r=!1)=>{if(!window.ga)return;const a={};r&&(a.nonInteraction=!0),null===n?window.ga("send","event",t,e,s,i,a):window.ga("send","event",t,e,n,a),this.logger("[EVENT]",t,e,s,i,n,a)},this.set=(t,e)=>{window.ga&&(window.ga("set",os[t],e),this.logger("[SET]",t,e))},this.sendTiming=(t,e)=>{window.ga&&(window.ga("send","timing","Game",t,e),this.logger("[TIMING]",t,e))}}async init(t){this.$store=t,document.addEventListener(at["c"],()=>this.send("metrics","not_ready_play_click","timing",window.performance.now(),null,!0)),await g["a"].onReady(),this.setup()}setupTracker(){window.ga&&window.ga("set","transport","beacon")}initHandlers(){const t={send:this.send,set:this.set,timing:this.sendTiming,$store:this.$store};rs.forEach(e=>{const s=s=>e.handle(t,s);as(e)?g["a"].on(e.trigger,s):this.$store.watch((t,s)=>e.watcher(s),s)})}handleErrors(t){window.ga&&window.ga("send","exception",{exDescription:t.message||t,exFatal:!1})}logger(...t){Object(o["q"])("analytics",...t)}}var ls=new cs,hs=s("2ae7");const ds={bind(t,e,s){const i=e.expression,n=s.context[i];t.addEventListener(hs["a"],n,!1)},unbind(t,e,s){const i=e.expression,n=s.context[i];t.removeEventListener(hs["a"],n)}};var us=ds;r["a"].directive("animation-end",us);var ms=s("baf5");g["a"].on("PLAY",()=>ms["install"]({onUpdateReady:()=>ms["applyUpdate"]()}));var ps=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"app"}},[t.isGameReady?s("Popups"):t._e(),s("Game"),s("AudioExtension")],1)},gs=[],fs=s("6e95"),Es=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"game",attrs:{id:"js-game"}},[i("Workspace"),i("Animations"),i("Library"),i("div",{staticClass:"ui"},[i("Search"),i("Menu"),i("img",{staticClass:"logo",attrs:{alt:"Little Alchemy 2",src:s("1ae4")}})],1),t.areTutorialsVisible?i("Tutorials"):t._e(),i("TextTutorials")],1)},bs=[],ys=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"workspace",class:t.classes,attrs:{id:t.WORKSPACE_ID},on:{longpress:t.onLongpress}},[s("div",{ref:"element",staticClass:"workspace-cleanup"}),s("BoxSizing"),t._l(t.workspaceFinalWithoutAnimated,(function(t){return s("FinalBox",{key:t.id,attrs:{data:t,type:"final"}})})),t._l(t.workspaceExhaustedWithoutAnimated,(function(t){return s("FinalBox",{key:t.id,attrs:{data:t,type:"exhausted"}})})),t._l(t.workspaceElements,(function(t){return s("WorkspaceBox",{key:t.id,attrs:{data:t,"data-normal":""}})}))],2)},vs=[],ws=s("2138"),Is=s("53b2"),Os=s("7d61"),As=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("Box",{class:t.classes,attrs:{data:t.data,"data-final":t.isFinal,"data-exhausted":t.isExhausted},on:{click:t.onClick,touchstart:t.onClick}})},Ss=[],Ts=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",t._g({staticClass:"element droppable",style:t.style},t.$listeners),[s("img",{attrs:{src:t.iconUrl,alt:t.id}})])},_s=[],xs=s("fd41"),Ps=fs["a"].extend({name:"base-box",props:{data:Object},computed:{id(){return this.data.id},iconUrl(){return Object(xs["a"])(this.data.elementId)},style(){const{x:t,y:e}=this.data.position;return{position:"absolute",top:`${e}px`,left:`${t}px`}}}}),Cs=Ps,Ls=s("2877"),Ds=Object(Ls["a"])(Cs,Ts,_s,!1,null,null,null),Rs=Ds.exports,Ns=fs["a"].extend({name:"final-box",props:{data:Object,type:String},components:{Box:Rs},computed:{id(){return this.data.elementId},isFinal(){return"final"===this.type},isExhausted(){return"exhausted"===this.type},isFinalAnimationActive(){return this.$store.getters.isFinalForIdActive(this.id)},isExhaustedAnimationActive(){return this.$store.getters.isExhaustedForIdActive(this.id)},classes(){return{"js-final":!this.isFinalAnimationActive&&!this.isExhaustedAnimationActive,"js-exhausted":this.isExhausted}}},methods:{onClick(){this.isFinal?this.onFinalClick():this.onExhaustedClick()},onFinalClick(){qt.startFinal(this.id)},onExhaustedClick(){qt.startExhausted(this.id)}}}),ks=Ns,Ms=Object(Ls["a"])(ks,As,Ss,!1,null,null,null),js=Ms.exports,$s=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{ref:"element",staticClass:"element droppable",class:t.classes,style:t.style,attrs:{"data-id":t.id},on:{mouseenter:function(e){return e.stopPropagation(),t.onMouseEnter(e)},mouseleave:function(e){return e.stopPropagation(),t.onMouseLeave(e)}}},[s("img",{ref:"icon",attrs:{src:t.iconUrl,alt:t.name,draggable:"false"},on:{doubletap:t.onDoubleTap}})])},Hs=[],Bs=s("b7ba");const Fs=Object(o["h"])("transform"),Gs={id:null,dragDistance:null,position:null,handle:null,type:ws["d"]},Us={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel","mouseup"],pointerdown:["pointermove","pointerup","pointercancel","mouseup"]};class Ws{constructor(t,e={}){this.handles=[],this.throttle=!1,this.startEventType="",this.pointerIdentifier=null,this.startPosition={x:0,y:0},this.isDragging=!1,this.boundEvents=[],this.element=t,this.position={x:-1,y:-1},this.startPoint={x:0,y:0},this.dragPoint={x:0,y:0},this.options={...Gs,...e},this._create(this.options)}_create(t){this.isWorkspace&&(this.position=t.position?t.position:this._getPosition()),this.startPosition={...this.position},this.setHandles()}get isWorkspace(){return this.options.type===ws["d"]}get id(){return this.options.id}setHandles(){this.options.handle?this.handles=this.options.handle:this.handles=[this.element],this.addListenersToHandles()}addListenersToHandles(){this.handles.forEach(t=>{t.addEventListener("mousedown",this,!1),t.addEventListener("touchstart",this,!1),window.navigator.pointerEnabled&&(t.addEventListener("pointerdown",this,!1),t.style.touchAction="none")})}removeHandlerListeners(){this.handles.forEach(t=>{t.removeEventListener("mousedown",this,!1),t.removeEventListener("touchstart",this,!1),t.removeEventListener("pointerdown",this,!1)})}setPosition(t){this.position=t}_getPosition(){const t=Object(o["g"])(this.element),e=t=>"0px"===t||"auto"===t;if("absolute"!==t.position||e(t.left)&&e(t.top)){const t=this.element.getBoundingClientRect();return this.position={x:t.left,y:t.top},this.position}return this.position={x:parseInt(t.left,10),y:parseInt(t.top,10)},this.position}handleEvent(t){const e=`on${t.type}`;this[e]&&this[e](t)}onmousedown(t){const e=t.button;e&&0!==e&&1!==e||this.dragStart(t,t)}ontouchstart(t){this.isDragging||this.dragStart(t,t.changedTouches[0])}onMSPointerDown(t){this.onpointerdown(t)}onpointerdown(t){this.isDragging||this.dragStart(t,t)}setPointerPoint(t,e){t.x=void 0!==e.pageX?e.pageX:e.clientX,t.y=void 0!==e.pageY?e.pageY:e.clientY}dragStart(t,e){Bt.isDragging||(t.cancelable&&t.preventDefault(),this.throttle=!1,this.helper=null,this.isDragging=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.setPointerPoint(this.startPoint,e),t.simulated&&this.position||this._getPosition(),this.startPosition.x=this.position.x,this.startPosition.y=this.position.y,this.dragPoint.x=0,this.dragPoint.y=0,this.startEventType=t.startEventType?t.startEventType:t.type,this._bindEvents(Us[this.startEventType]),this.isWorkspace?this.startAnimatedDrag():this.hasOwnProperty("onLibraryDragStart")&&"function"===typeof this.onLibraryDragStart&&this.onLibraryDragStart())}startAnimatedDrag(){this.helper=this.element,this.setLeftTop(),this.hasOwnProperty("onDragStart")&&"function"===typeof this.onDragStart&&this.onDragStart(this),Bt.onDragStart(this.id),this.animate()}_bindEvents(t){t.forEach(t=>{window.addEventListener(t,this,!1)}),this.boundEvents=t}_unbindEvents(){const t=this.boundEvents;t&&(t.forEach(t=>{window.removeEventListener(t,this,!1)}),this.boundEvents=null)}_getTouch(t){if(!this.pointerIdentifier){const e=t.changedTouches[0];return this.pointerIdentifier=e.identifier,e}for(let e=0,s=t.changedTouches.length;ethis.options.dragDistance&&(this.dragEnd(),this.hasOwnProperty("onDistanceDragged")&&"function"===typeof this.onDistanceDragged&&this.onDistanceDragged(this.startPoint,this.dragPoint,this.startPosition,this.startEventType))}}onmouseup(t){this.dragEnd(t)}ontouchend(t){const e=this._getTouch(t);e&&this.dragEnd(t)}onpointerup(t){this.pointerIdentifier===t.pointerId&&this.dragEnd(t)}onpointercancel(t){t.pointerId===this.pointerIdentifier&&this.dragEnd(t)}ontouchcancel(t){const e=this._getTouch(t);e&&this.dragEnd(t)}dragEnd(t){this.isDragging=!1,this.pointerIdentifier=null,this._unbindEvents(),this.isWorkspace&&(this.helper&&"none"!==this.helper.style.display&&Fs&&(this.helper.style[Fs]="",this.setLeftTop()),this.hasOwnProperty("onDragEnd")&&"function"===typeof this.onDragEnd&&this.onDragEnd(this),Bt.onDragEnd(this.position,t.simulated||!1))}animate(){if(this.throttle=!1,!this.isDragging)return;this.transform();const t=this;window.requestAnimationFrame((function(){t.animate()}))}transform(){this.helper.style[Fs]=`translate(${this.dragPoint.x}px,${this.dragPoint.y}px)`}setLeftTop(){this.helper.style.left=`${this.position.x}px`,this.helper.style.top=`${this.position.y}px`}destroy(){this.onDragStart=null,this.onDragEnd=null,this.onDistanceDragged=null,this.onLibraryDragStart=null,this._unbindEvents(),this.removeHandlerListeners()}}var Ys=Ws,Ks=fs["a"].extend({name:"workspace-box",props:{data:Object},data:()=>({isDragging:!1,hover:!1,isClone:!1,cloned:!1}),computed:{...Object(a["b"])(["elementById","isArtModeEnabled","draggingOverId","mixFather","mixStatus","elementIsExhausted"]),id(){return this.data.id},elementId(){return this.data.elementId},position(){return this.data.position},element(){return this.elementById(this.elementId)},name(){return this.element?this.element.name:""},isBelow(){return this.draggingOverId===this.id&&!this.isDragging},hasFailed(){const t=this.mixFather;return this.mixStatus===Bs["a"]&&!!t&&t.id===this.id},hasAlreadyMixed(){const t=this.mixFather;return this.mixStatus===Bs["b"]&&!!t&&t.id===this.id},iconUrl(){return Object(xs["a"])(this.elementId)},style(){const{x:t=-500,y:e=-500}=this.position;return{position:"absolute",top:`${e}px`,left:`${t}px`}},isExhausted(){return!!this.elementIsExhausted(this.elementId)},classes(){return{"is-dragging":this.isDragging,"js-hover":this.hover,"js-pulse":this.isBelow,"js-mix-fail":!this.isDragging&&this.hasFailed,"js-mix-mixed":!this.isDragging&&this.hasAlreadyMixed,"js-cloned":!this.isDragging&&this.cloned,"js-clone":this.isClone,"js-to-remove":!!this.element&&this.isExhausted&&!this.isArtModeEnabled}}},mounted(){this.initDraggable()},beforeDestroy(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},methods:{initDraggable(){this.draggable=new Ys(this.$refs.element,{id:this.id,handle:[this.$refs.icon],type:ws["d"],position:{...this.position}}),this.draggable.onDragStart=()=>this.onDragStart(),this.draggable.onDragEnd=()=>this.onDragEnd()},onDragStart(){this.isDragging=!0,this.isClone=!1,Object(o["x"])(this.$refs.element),window.setTimeout(()=>{this.hover=!1},150)},onDragEnd(){this.isDragging=!1},onMouseEnter(){this.isDragging||this.isClone||(this.hover=!0)},onMouseLeave(){this.isDragging||(this.hover=!1,this.isClone=!1)},onDoubleTap(){this.$store.dispatch("workspaceElementClone",this.id),this.$nextTick(async()=>{this.cloned=!0,this.$refs.element?await Object(o["t"])(this.$refs.element):await Object(o["c"])(50),this.cloned=!1})},onClone(){this.$nextTick(()=>{this.isClone=!0})},updateDraggablePosition(){this.draggable&&this.draggable.setPosition({...this.position})}}}),zs=Ks,Vs=Object(Ls["a"])(zs,$s,Hs,!1,null,null,null),Xs=Vs.exports,qs=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.obtainSize?s("Box",{ref:"box",attrs:{data:t.boxData}}):t._e()},Qs=[],Js=fs["a"].extend({name:"workspace-box-sizing",components:{Box:Rs},data:()=>({obtainSize:!0}),computed:{boxData(){return{id:"0",elementId:"0",position:{x:-200,y:-200}}}},mounted(){this.updateSize(),g["a"].onResize(()=>{this.obtainSize=!0,this.$nextTick(()=>this.updateSize())})},methods:{updateSize(t=!1){if(!this.$refs.box||!this.$refs.box.$el)return void this.retry(t);const{width:e,height:s}=this.getSize();e&&s?(this.obtainSize=!1,this.notify(e,s)):this.retry(t)},retry(t){t?this.notify(0,0):window.setTimeout(()=>this.updateSize(!0),100)},getSize(){const t=Object(o["g"])(this.$refs.box.$el),e=parseInt(t.width,10)||0,s=parseInt(t.height,10)||0;return{width:e,height:s}},notify(t,e){this.$store.dispatch("dimensionsWorkspaceBox",{width:t,height:e})}}}),Zs=Js,ti=Object(Ls["a"])(Zs,qs,Qs,!1,null,null,null),ei=ti.exports;const si=Os["a"][Is["a"]];var ii=fs["a"].extend({name:"workspace",components:{WorkspaceBox:Xs,FinalBox:js,BoxSizing:ei},data:()=>({listenerAdded:!1}),computed:{...Object(a["b"])(["workspaceElements","workspaceRevertable","workspaceFinal","workspaceExhausted","isAnimationActive","animationFinalFinished","droppableById"]),WORKSPACE_ID(){return ws["g"]},ifAnimateClear(){return this.isAnimationActive(Is["a"])||this.workspaceRevertable},ifAnimateRevert(){return this.isAnimationActive(Is["g"])},workspaceFinalWithoutAnimated(){return this.workspaceFinal.filter(({elementId:t})=>!this.animationFinalFinished.includes(t))},workspaceExhaustedWithoutAnimated(){return this.workspaceExhausted.filter(({elementId:t})=>!this.animationFinalFinished.includes(t))},classes(){return{"js-cleanup":this.ifAnimateClear||this.ifAnimateRevert,"js-revert":this.ifAnimateRevert}}},mounted(){this.onTransitionEnd=this.onTransitionEnd.bind(this)},watch:{ifAnimateClear:"addTransitionListener",ifAnimateRevert:"addTransitionListener"},methods:{onLongpress({target:t}){if(!t)return;const e=t.parentNode.dataset.id,s=this.droppableById(e);s&&g["a"].emit("ENCYCLOPEDIA_SHOW_ITEM",s.elementId)},addTransitionListener(t){t&&!this.listenerAdded&&(this.$refs.element.addEventListener(hs["b"],this.onTransitionEnd,!1),this.listenerAdded=!0)},onTransitionEnd({target:t,propertyName:e}){if(t!==this.$refs.element)return;const s=e.includes(si.revertMiddle)&&this.ifAnimateRevert,i=e.includes(si.transitionMiddle)&&this.ifAnimateClear;s||i?this.onWorkspaceAnimationMiddle():this.onWorkspaceAnimationEnd()},onWorkspaceAnimationMiddle(){g["a"].emit("ANIMATION_WORKSPACE_MIDDLE")},onWorkspaceAnimationEnd(){this.$store.dispatch("animationReset"),this.$refs.element.removeEventListener(hs["b"],this.onTransitionEnd),this.listenerAdded=!1}}}),ni=ii,ri=Object(Ls["a"])(ni,ys,vs,!1,null,null,null),ai=ri.exports,oi=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{ref:"element",staticClass:"side",attrs:{id:"side"}},[t.isSortingEnabled?s("div",[s("button",{class:{"js-active":"alphabet"===t.sorting},on:{click:function(e){return t.changeSorting("alphabet")}}},[t._v(" A to Z ")]),s("button",{class:{"js-active":"timestamp"===t.sorting},on:{click:function(e){return t.changeSorting("timestamp")}}},[t._v(" Newest to oldest ")])]):t._e(),s("div",{staticClass:"outer-library",attrs:{id:t.OUTER_LIBRARY_ID},on:{longpress:t.onLongpress}},[s("LibraryScroller",{ref:"scroller",attrs:{elements:t.libraryCurrentElements}})],1)])},ci=[],li=s("b047"),hi=s.n(li),di=s("623d");const ui=t=>{const e=200,s=t.getBoundingClientRect(),i=Object(o["g"])(t),n=parseInt(i.width,10)+e,r=parseInt(i.height,10)+2*e;return{width:n,height:r,x:s.left,y:s.top-e}},mi=t=>{const e=Object(o["g"])(t),s=parseInt(e.width,10)||0,i=parseInt(e.height,10)||0,n=parseInt(e.paddingLeft,10)||0;return{width:s,height:i,margin:n}};var pi=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.hasElements?s("div",{staticClass:"library",style:t.styles,attrs:{id:"library"}},[t.shouldUseLiteBox?t._l(t.elementsList,(function(e,i){return s("LibraryBoxLite",{key:i,style:t.getStyle(i),attrs:{element:e}})})):t._l(t.elementsList,(function(e,i){return s("LibraryBox",{key:i,style:t.getStyle(i),attrs:{element:e}})}))],2):t._e()},gi=[],fi=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{ref:"element",staticClass:"element",class:t.classes,on:{click:t.onClick,touchstart:t.onClick}},[s("img",{ref:"icon",attrs:{src:t.iconUrl,alt:t.name,draggable:"false",decoding:"async"}}),s("div",{staticClass:"elementName"},[t._v(" "+t._s(t.name)+" ")])])},Ei=[],bi=fs["a"].extend({name:"library-box",props:{element:Object},data:()=>({animated:!1}),computed:{...Object(a["b"])(["elementIsExhausted","isExhaustedForIdActive"]),iconUrl(){return Object(xs["a"])(this.element.id)},name(){return this.element.name},isExhausted(){return!!this.elementIsExhausted(this.element.id)},ifAnimateExhausted(){return this.isExhausted&&this.isExhaustedForIdActive(this.element.id)},classes(){return{"js-exhausted":this.isExhausted,"js-animate":this.ifAnimateExhausted}}},mounted(){this.initDraggable()},beforeDestroy(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},methods:{initDraggable(){this.draggable=new Ys(this.$refs.element,{handle:[this.$refs.icon],type:ws["c"],dragDistance:ws["b"]}),this.startedDragId=null,this.draggable.onDistanceDragged=(...t)=>{this.isExhausted||Bt.onLibraryDistanceDragged(this.startedDragId,...t)},this.draggable.onLibraryDragStart=()=>{this.startedDragId=this.element.id}},onClick(){this.isExhausted&&qt.startExhausted(this.element.id)}}}),yi=bi,vi=Object(Ls["a"])(yi,fi,Ei,!1,null,null,null),wi=vi.exports,Ii=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{ref:"element",staticClass:"element"},[s("img",{ref:"icon",attrs:{src:t.iconUrl,alt:t.name,draggable:"false",decoding:"async"}}),s("div",{staticClass:"elementName"},[t._v(" "+t._s(t.name)+" ")])])},Oi=[],Ai=fs["a"].extend({name:"library-box-lite",props:{element:Object},computed:{iconUrl(){return Object(xs["a"])(this.element.id)},name(){return this.element.name}},mounted(){this.initDraggable()},beforeDestroy(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},methods:{initDraggable(){this.draggable=new Ys(this.$refs.element,{handle:[this.$refs.icon],type:ws["c"],dragDistance:ws["b"]}),this.draggable&&(this.startedDragId=null,this.draggable.onDistanceDragged=(...t)=>{Bt.onLibraryDistanceDragged(this.startedDragId,...t)},this.draggable.onLibraryDragStart=()=>{this.startedDragId=this.element.id})}}}),Si=Ai,Ti=Object(Ls["a"])(Si,Ii,Oi,!1,null,null,null),_i=Ti.exports;const xi=5,Pi=15,Ci=10;var Li=fs["a"].extend({name:"library-scroller",props:{elements:Array},components:{LibraryBox:wi,LibraryBoxLite:_i},data:()=>({starting:0,reloading:!1}),computed:{...Object(a["b"])({libraryElementsIds:"library",hasElements:"hasLibrary",isSearchActive:"isSearchActive",searchQuery:"searchQuery",inArtMode:"isArtModeEnabled",boxDimensions:"libraryBoxDimensions"}),shouldUseLiteBox(){return this.inArtMode},elementsCount(){return this.elements.length},elementsList(){if(this.elementsCountthis.elementsCount&&(t=this.elementsCount-this.KEEP),Math.max(t,0)},KEEP(){const t=Math.ceil(this.scrollerHeight/this.elementHeight)+6;return Math.max(Pi,t)}},mounted(){this.initScroll(),this.lastY=0,this._startIndex=0,this._KEEP=this.KEEP,this._elementOuterHeight=this.elementOuterHeight},watch:{searchQuery(t,e){t!==e&&null!==t&&t.length&&this.$nextTick(()=>{this.setStarting(0),this.$nextTick(()=>$t["a"].scrollTop(0))})},isSearchActive(t){t||(this.reloading=!0,this.$nextTick(()=>window.setTimeout(()=>{this.reloading=!1},50)))},async inArtMode(t){t&&(await $t["a"].onInit(),$t["a"].handler&&$t["a"].handler.refresh())},startIndex(t){this._startIndex=t},KEEP(t){this._KEEP=t},elementOuterHeight(t){this._elementOuterHeight=t}},methods:{async initScroll(){await $t["a"].onInit(),await $t["a"].handler.reinitialize(),this.handleScroll=this.handleScroll.bind(this),$t["a"].handler.onScroll(t=>{this.lastY=t.y,window.requestAnimationFrame(()=>this.handleScroll())})},handleScroll(t=this.lastY){const e=Math.max(0,Math.floor(t/this.elementOuterHeight));this.starting!==e&&this.setStarting(e)},setStarting(t){this.starting=t},getKey(t){const e=this._startIndex%this._KEEP;return Math.abs(e-t-this._KEEP)%this._KEEP},getStyle(t){const e=this.getKey(t),s=Ci+(this._startIndex+e)*this._elementOuterHeight;return{transform:`translate3d(0, ${s}px, 0)`}}}}),Di=Li,Ri=Object(Ls["a"])(Di,pi,gi,!1,null,null,null),Ni=Ri.exports;const ki=/[|\\{}()[\]^$+*?.]/g;var Mi=fs["a"].extend({name:"library",components:{LibraryScroller:Ni},data:()=>({OUTER_LIBRARY_ID:di["b"],outerHeight:0,elementOuterHeight:0}),computed:{...Object(a["b"])({libraryElementsIds:"library",hasElements:"hasLibrary",elementById:"elementById",isSearchActive:"isSearchActive",searchQuery:"searchQuery",hasEmptyLibrary:"hasEmptyLibrary",sorting:"librarySortBy"}),elements(){return this.libraryElementsIds.map(t=>this.elementById(t)).filter(k)},filteredByQuery(){if(!this.searchQuery)return[];let t=this.searchQuery.toLowerCase().trim();t=t.replace(ki,"");const e=new RegExp(t);return this.elements.filter(({name:t})=>e.test(t.toLowerCase()))},libraryCurrentElements(){return this.isSearchActive&&this.searchQuery&&this.searchQuery.length?this.filteredByQuery:this.elements},elementsCount(){return this.libraryCurrentElements.length},elementHeight(){const t=this.$store.getters.libraryBoxDimensions;return t.height+t.margin},isSortingEnabled(){return v["c"]}},mounted(){this.checkUnderLibrary=hi()(this.checkUnderLibrary.bind(this),v["a"]),this.updateDroppableData(),g["a"].onResize(async()=>{await Object(o["c"])(100),this.onResize()}),this.libraryRendered().then(()=>this.onRendered()),this.onEmptyLibrary().then(()=>this.onEmpty()),this.initScrollRefresher()},watch:{searchQuery(t,e){t===e||t&&!t.length||this.refreshScroll()}},methods:{onRendered(){this.updateLibraryBoxDimensions(),g["a"].emit("LIBRARY_RENDERED"),this.$store.dispatch("libraryRendered")},onEmpty(){g["a"].emit("LIBRARY_EMPTY"),this.$store.dispatch("libraryRendered")},onLongpress({target:t}){if(!t.parentNode)return;const e=t.parentNode.__vue__;if(!e||!e.element)return;const s=e.element.id;g["a"].emit("ENCYCLOPEDIA_SHOW_ITEM",s)},onResize(){this.updateDroppableData(),this.updateLibraryBoxDimensions();const t=this.updateHeights();t&&this.refreshScroll(),this.checkUnderLibrary()},updateDroppableData(){const t=ui(this.$refs.element);this.$store.commit("STATIC_DROPPABLE_UPDATE",{id:ws["e"],...t})},updateLibraryBoxDimensions(){const t=this.$refs.scroller.$children;if(!t.length)return;const e=t[0].$el.querySelector("img");e&&this.$store.dispatch("dimensionsLibraryBox",mi(e))},updateHeights(){const t=this.$refs.scroller.$children;if($t["a"].isNative||!this.$refs.element.firstChild)return!1;if(t.length<2)return!1;const e=t[1].$el,s=e.offsetHeight,i=(Object(o["e"])(e)-s)/2;return this.elementOuterHeight=s+i,this.outerHeight=this.$refs.element.firstChild.offsetHeight,!0},checkUnderLibrary(){this.$store.dispatch("workspaceRemoveUnderLibrary")},changeSorting(t){this.$store.dispatch("libraryChangeSorting",t)},async initScrollRefresher(){await $t["a"].onInit(),$t["a"].isNative||(this.updateHeights(),this.$watch(()=>this.libraryCurrentElements,()=>this.refreshScroll()))},refreshScroll(){const t=this.elementsCount;let e=this.outerHeight;e{const e=this.$watch(()=>this.hasElements,s=>{s&&(this.$nextTick(()=>window.setTimeout(t,30)),e())})})},onEmptyLibrary(){return new Promise(t=>{const e=this.$watch(()=>this.hasEmptyLibrary,s=>{s&&(t(),e())})})}}}),ji=Mi,$i=Object(Ls["a"])(ji,oi,ci,!1,null,null,null),Hi=$i.exports,Bi=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("label",{ref:"container",attrs:{for:"search-input",id:t.SEARCH_BAR_ID}},[s("input",{ref:"input",staticClass:"search-bar",class:t.classes,attrs:{type:"text",id:"search-input",maxlength:"20",tabindex:t.tabIndex},on:{blur:t.hide,keyup:t.onKeyUp}}),s("div",{staticClass:"search icon",class:t.iconClasses,on:{click:t.toggle}},[t.isActive?s("IconClose",{staticClass:"close-search-icon"}):s("IconSearch")],1)])},Fi=[],Gi=s("06c5"),Ui=s("cd57"),Wi=["class","staticClass","style","staticStyle","attrs"];function Yi(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function Ki(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,s)&&(n[s]=t[s])}return n}function Xi(t,e){if(null==t)return{};var s,i,n={},r=Object.keys(t);for(i=0;i=0||(n[s]=t[s]);return n}var qi={functional:!0,render:function(t,e){var s=e._c,i=(e._v,e.data),n=e.children,r=void 0===n?[]:n,a=i["class"],o=i.staticClass,c=i.style,l=i.staticStyle,h=i.attrs,d=void 0===h?{}:h,u=Vi(i,Wi);return s("svg",Ki({class:[a,o],style:[c,l],attrs:Object.assign({id:"icon-search",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64"},d)},u),r.concat([s("path",{attrs:{d:"M26.3 10.08a16.2 16.2 0 11-11.47 4.75 16.1 16.1 0 0111.46-4.75m0-3a19.2 19.2 0 1013.54 5.62A19.15 19.15 0 0026.3 7.08z"}}),s("path",{attrs:{d:"M26.3 3a23.3 23.3 0 0116.45 39.75A23.3 23.3 0 019.82 9.82 23.13 23.13 0 0126.3 3m0-3a26.3 26.3 0 1018.57 7.7A26.2 26.2 0 0026.3 0zm25.85 48.53l8.14 8.14a2.5 2.5 0 010 3.54l-.1.1a2.5 2.5 0 01-3.57 0l-8.13-8.1 3.63-3.62m0-3.84a1 1 0 00-.68.3L45 51.47a1 1 0 000 1.35l9.6 9.6a5.5 5.5 0 007.77 0l.1-.1a5.5 5.5 0 000-7.78L52.82 45a1 1 0 00-.68-.28z"}}),s("path",{staticClass:"svg-n svg-m",attrs:{d:"M48.93 48.93l-4.3-4.3"}})]))}},Qi=["class","staticClass","style","staticStyle","attrs"];function Ji(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function Zi(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,s)&&(n[s]=t[s])}return n}function sn(t,e){if(null==t)return{};var s,i,n={},r=Object.keys(t);for(i=0;i=0||(n[s]=t[s]);return n}var nn={functional:!0,render:function(t,e){var s=e._c,i=(e._v,e.data),n=e.children,r=void 0===n?[]:n,a=i["class"],o=i.staticClass,c=i.style,l=i.staticStyle,h=i.attrs,d=void 0===h?{}:h,u=en(i,Qi);return s("svg",Zi({class:["close-icon",a,o],style:[c,l],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64"},d)},u),r.concat([s("path",{staticClass:"cls-1",attrs:{d:"M5 59L59 5"}}),s("path",{staticClass:"cls-1",attrs:{d:"M5 5l54 54"}})]))}},rn=fs["a"].extend({name:"search-bar",components:{IconSearch:qi,IconClose:nn},computed:{...Object(a["b"])({isActive:"isSearchActive",query:"searchQuery",isPopupActive:"isPopupActive",isTutorialFinished:"areTutorialsFinished",isAnimationActive:"isAnimationActive",isArtModeEnabled:"isArtModeEnabled"}),tabIndex(){return this.isPopupActive?-1:0},classes(){return{"js-hidden":!this.isActive,"js-visible":this.isActive}},iconClasses(){return{"js-hidden":!this.isTutorialFinished}},isCompletionAnimationActive(){return this.isAnimationActive(Is["d"])},SEARCH_BAR_ID(){return Ui["b"]}},mounted(){this.blurHackForIOS=this.blurHackForIOS.bind(this),this.initListener()},watch:{isCompletionAnimationActive(t){t&&this.hide()},isActive(t){t||this.onHide()}},methods:{initListener(){g["a"].on("KEY_DOWN",t=>{if(this.isActive||this.isPopupActive)return;const e=document.activeElement;e&&e!==document.body&&"INPUT"!==e.tagName||t.keyCodeGi["f"]||t.ctrlKey||t.metaKey||this.show()})},getValue(){return this.$refs.input.value},onKeyUp(t){const e=this.getValue();if(this.isActive&&t.keyCode===Gi["d"])return t.preventDefault(),void this.hide();this.query!==e&&this.$store.dispatch("search",e)},toggle(){this.isActive?this.hide():this.show(!0)},show(t=!1){const e=this.isTutorialFinished&&!this.isCompletionAnimationActive;e&&(this.$store.dispatch("searchShow"),this.$refs.input.focus(),$t["a"].savePosition(),t&&this.emitSound(),Object(o["p"])()&&Object(o["n"])()&&document.addEventListener("touchstart",this.blurHackForIOS))},emitSound(){g["a"].emit("BUTTON_CLICK")},hide(){window.setTimeout(()=>this.$store.dispatch("searchHide"),50)},onHide(){this.$refs.input.blur(),this.$refs.input.value="",$t["a"].applyPosition(),Object(o["p"])()&&Object(o["n"])()&&document.removeEventListener("touchstart",this.blurHackForIOS)},blurHackForIOS(t){t.target&&(Object(o["m"])(this.$refs.container,t.target)||(this.isArtModeEnabled?window.setTimeout(()=>this.$refs.input.blur(),100):this.$refs.input.blur()))}}}),an=rn,on=Object(Ls["a"])(an,Bi,Fi,!1,null,null,null),cn=on.exports,ln=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"icons"},[s("MenuButton",{staticClass:"no-highlight",attrs:{active:!t.workspaceRevertable,alwaysShow:!0,alwaysAnimate:!0,primaryText:"clean up",secondaryText:"revert"},on:{click:t.onClearRevert}},[s("IconClear",{staticClass:"menu-button-icon primary",attrs:{slot:"primary"},slot:"primary"}),s("IconRevert",{staticClass:"menu-button-icon secondary",attrs:{slot:"secondary"},slot:"secondary"})],1),s("MenuButton",{attrs:{active:!t.isSettingsActive,primaryText:"settings",secondaryText:"close"},on:{click:t.toggleSettings}},[s("IconSettings",{staticClass:"menu-button-icon primary",attrs:{slot:"primary"},slot:"primary"}),s("IconClose",{staticClass:"menu-button-icon secondary",attrs:{slot:"secondary"},slot:"secondary"})],1),s("MenuButton",{staticClass:"tight",attrs:{active:!t.isEncyclopediaActive,primaryText:"encyclopedia",secondaryText:"close"},on:{click:t.toggleEncyclopedia}},[s("div",{attrs:{slot:"additional"},slot:"additional"},[s("div",{staticClass:"badge-container"},[s("span",{staticClass:"badge",class:{"js-hide":0===t.newInEncyclopediaCount}},[t._v(" "+t._s(t.newInEncyclopediaCount||"")+" ")])]),s("AnimationFinalEncyclopedia")],1),s("IconEncyclopedia",{staticClass:"menu-button-icon primary",attrs:{slot:"primary"},slot:"primary"}),s("IconClose",{staticClass:"menu-button-icon secondary",attrs:{slot:"secondary"},slot:"secondary"})],1),s("a",{staticClass:"menu-button primary js-in",attrs:{href:t.HINTS_URL,target:"_blank",title:"Little Alchemy 2 Official Cheats",rel:"noopener"},on:{click:t.onHintsClick}},[s("div",{staticClass:"menu-button-icon-container"},[s("IconHints",{staticClass:"menu-button-icon primary"})],1),t._m(0)])],1)},hn=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"menu-button-label-container"},[s("div",{staticClass:"menu-button-label primary"},[t._v("hints")])])}],dn=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"materialize-container"},[s("div",{directives:[{name:"animation-end",rawName:"v-animation-end",value:t.onAnimation,expression:"onAnimation"}],staticClass:"materialize",class:t.classes,attrs:{id:t.id}},[s("div",{staticClass:"core"}),s("div",{staticClass:"core2"})])])},un=[];const mn=Os["a"][Is["b"]];var pn=fs["a"].extend({name:"animation-final-encyclopedia",data:()=>({isActive:!1}),computed:{id(){return mn.encyclopediaId},classes(){return{"js-active":this.isActive}}},mounted(){g["a"].on("ANIMATION_FINAL_SINGLE_END",()=>this.onElementAnimationEnd())},methods:{onElementAnimationEnd(){this.isActive=!0},onAnimation({animationName:t}){t===mn.encyclopedia&&(this.isActive=!1)}}}),gn=pn,fn=Object(Ls["a"])(gn,dn,un,!1,null,null,null),En=fn.exports,bn=["class","staticClass","style","staticStyle","attrs"];function yn(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function vn(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,s)&&(n[s]=t[s])}return n}function On(t,e){if(null==t)return{};var s,i,n={},r=Object.keys(t);for(i=0;i=0||(n[s]=t[s]);return n}var An={functional:!0,render:function(t,e){var s=e._c,i=(e._v,e.data),n=e.children,r=void 0===n?[]:n,a=i["class"],o=i.staticClass,c=i.style,l=i.staticStyle,h=i.attrs,d=void 0===h?{}:h,u=In(i,bn);return s("svg",vn({class:[a,o],style:[c,l],attrs:Object.assign({id:"icon-clear",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64"},d)},u),r.concat([s("g",[s("path",{attrs:{d:"M23.13 18.13a3.55 3.55 0 012.5 1L44.53 38a3.53 3.53 0 01.53 4.27L29 58.3 5.3 34.6l16-16a3.53 3.53 0 011.8-.46m0-3a6.44 6.44 0 00-3.7 1.12L1.07 34.62 29 62.52l18.37-18.35a6.5 6.5 0 00-.72-8.3L27.75 17a6.56 6.56 0 00-4.62-1.85z"}}),s("path",{staticClass:"svg-n svg-m",attrs:{d:"M46.36 44.6L19 17.3M8.76 41.2l17.1-17.08M20.38 52.8l7.52-7.5"}}),s("path",{attrs:{d:"M58.86 3.74a1.1 1.1 0 01.76.28 1.08 1.08 0 010 1.52L38 27.12l-1.5-1.52L58.1 4a1.1 1.1 0 01.77-.28m0-3A4.08 4.08 0 0056 1.9L32.25 25.6 38 31.36l23.75-23.7a4 4 0 00-2.9-6.92z"}})]),s("circle",{staticClass:"svg-n svg-m",attrs:{cx:"50",cy:"56",r:"2.83"}})]))}},Sn=["class","staticClass","style","staticStyle","attrs"];function Tn(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function _n(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,s)&&(n[s]=t[s])}return n}function Cn(t,e){if(null==t)return{};var s,i,n={},r=Object.keys(t);for(i=0;i=0||(n[s]=t[s]);return n}var Ln={functional:!0,render:function(t,e){var s=e._c,i=(e._v,e.data),n=e.children,r=void 0===n?[]:n,a=i["class"],o=i.staticClass,c=i.style,l=i.staticStyle,h=i.attrs,d=void 0===h?{}:h,u=Pn(i,Sn);return s("svg",_n({class:[a,o],style:[c,l],attrs:Object.assign({id:"icon-encyclopedia",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64"},d)},u),r.concat([s("path",{attrs:{d:"M55.86 7.12a3 3 0 002.54 1.4H61v38.7h-9.77l-11.83-.1h-2.8a3 3 0 00-2.68 1.66 2.13 2.13 0 01-1 1h-.08a2.12 2.12 0 01-1 .25 2.55 2.55 0 01-2.22-1.33A3 3 0 0027 47.12H3V8.92h2.1a3 3 0 002.75-1.8h16.4a5.73 5.73 0 014.83 3 3 3 0 002.62 1.54A3 3 0 0034.34 10a5.35 5.35 0 014.76-2.88h16.76m1.54-3H39.1a8.36 8.36 0 00-7.4 4.5 8.76 8.76 0 00-7.4-4.5H6.1a.94.94 0 00-1 1v.8H1a.94.94 0 00-1 1v42.2a.94.94 0 001 1h26A5.56 5.56 0 0031.86 53a5.4 5.4 0 004.74-2.9h2.8l11.8.1H63a.94.94 0 001-1V6.5a1 1 0 00-1-1h-4.6v-.4a.94.94 0 00-1-1z"}}),s("path",{staticClass:"svg-b svg-m bookmark",attrs:{d:"M54.1 33.62v25.2a.87.87 0 01-.9 1 1.85 1.85 0 01-.7-.2l-5.2-4.5-5.3 4.5a1 1 0 01-1.4-.1.9.9 0 01-.3-.7v-25.2z"}}),s("path",{staticClass:"svg-b",attrs:{d:"M31.7 45.56A8 8 0 0025.9 43H6.5V5.62h17.8a7.2 7.2 0 016.1 3.73l1.32 2.4L33 9.33a6.83 6.83 0 016.1-3.7h17.8V43H37.5a8 8 0 00-5.8 2.56z"}}),s("path",{attrs:{d:"M55.4 7.12v34.4H37.5a9.5 9.5 0 00-5.8 2 9.5 9.5 0 00-5.8-2H8V7.12h16.25a5.73 5.73 0 014.83 3l2.67 4.8 2.6-4.92a5.35 5.35 0 014.75-2.88h16.3m2-3H39.1a8.36 8.36 0 00-7.4 4.5 8.76 8.76 0 00-7.4-4.5H6a.94.94 0 00-1 1v38.4a.94.94 0 001 1h19.9a6.5 6.5 0 015 2.4.55.55 0 00.5.3h.6a.85.85 0 00.5-.3 6.5 6.5 0 015-2.4h19.9a.94.94 0 001-1V5.12a.94.94 0 00-1-1z"}}),s("path",{staticClass:"svg-n svg-j",attrs:{d:"M31.7 9.5v36"}}),s("g",{staticClass:"lines"},[s("path",{attrs:{d:"M25.91 14H10.33a1 1 0 010-2h15.58a1 1 0 010 2z"}}),s("path",{attrs:{d:"M25.91 21.54H10.33a1 1 0 010-2h15.58a1 1 0 010 2z"}}),s("path",{attrs:{d:"M25.91 29.11H10.33a1 1 0 010-2h15.58a1 1 0 010 2z"}}),s("path",{attrs:{d:"M25.91 36.69H10.33a1 1 0 010-2h15.58a1 1 0 010 2z"}}),s("path",{attrs:{d:"M52.92 14H37.34a1 1 0 010-2h15.58a1 1 0 010 2z"}}),s("path",{attrs:{d:"M52.92 21.54H37.34a1 1 0 010-2h15.58a1 1 0 010 2z"}}),s("path",{attrs:{d:"M52.92 29.11H37.34a1 1 0 010-2h15.58a1 1 0 010 2z"}}),s("path",{attrs:{d:"M52.92 36.69H37.34a1 1 0 010-2h15.58a1 1 0 010 2z"}})])]))}},Dn=["class","staticClass","style","staticStyle","attrs"];function Rn(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function Nn(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,s)&&(n[s]=t[s])}return n}function jn(t,e){if(null==t)return{};var s,i,n={},r=Object.keys(t);for(i=0;i=0||(n[s]=t[s]);return n}var $n={functional:!0,render:function(t,e){var s=e._c,i=(e._v,e.data),n=e.children,r=void 0===n?[]:n,a=i["class"],o=i.staticClass,c=i.style,l=i.staticStyle,h=i.attrs,d=void 0===h?{}:h,u=Mn(i,Dn);return s("svg",Nn({class:[a,o],style:[c,l],attrs:Object.assign({id:"icon-hints",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64"},d)},u),r.concat([s("g",{staticClass:"lines"},[s("path",{staticClass:"line-r",attrs:{d:"M61.64 31.9h-4.08a1.33 1.33 0 110-2.67h4.09a1.33 1.33 0 110 2.67z"}}),s("path",{staticClass:"line-l",attrs:{d:"M6.44 31.9H2.36a1.33 1.33 0 010-2.67h4.08a1.33 1.33 0 010 2.67z"}}),s("path",{staticClass:"line-rt",attrs:{d:"M50.06 14.1a1.33 1.33 0 01-.94-2.28L52 9a1.33 1.33 0 111.87 1.9L51 13.72a1.33 1.33 0 01-.94.38z"}}),s("path",{staticClass:"line-lb",attrs:{d:"M11 52.56a1.33 1.33 0 01-.94-2.28L13 47.41a1.33 1.33 0 011.87 1.9L12 52.18a1.33 1.33 0 01-1 .38z"}}),s("path",{staticClass:"line-t",attrs:{d:"M32 6.74a1.33 1.33 0 01-1.33-1.33V1.33a1.33 1.33 0 112.67 0v4.08A1.33 1.33 0 0132 6.74z"}}),s("path",{staticClass:"line-lt",attrs:{d:"M13.94 14.1a1.33 1.33 0 01-.94-.38l-2.9-2.87A1.33 1.33 0 1112 9l2.91 2.86a1.33 1.33 0 01-.94 2.28z"}}),s("path",{staticClass:"line-rb",attrs:{d:"M53 52.56a1.33 1.33 0 01-.94-.38l-2.91-2.86A1.33 1.33 0 1151 47.41l2.91 2.86a1.33 1.33 0 01-.91 2.29z"}})]),s("path",{attrs:{d:"M32 50.81a20.12 20.12 0 01-20.25-19.94 20.25 20.25 0 0140.5 0A20.12 20.12 0 0132 50.81z"}}),s("path",{staticClass:"svg-b",attrs:{d:"M32 13.59a17.45 17.45 0 00-17.58 17.28 17.58 17.58 0 0035.16 0A17.45 17.45 0 0032 13.59z"}}),s("path",{attrs:{d:"M38.59 57H25.41a1.33 1.33 0 110-2.67h13.18a1.33 1.33 0 110 2.67z"}}),s("path",{attrs:{d:"M35.43 64h-6.86a1.33 1.33 0 010-2.67h6.87a1.33 1.33 0 010 2.67z"}})]))}},Hn=["class","staticClass","style","staticStyle","attrs"];function Bn(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function Fn(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,s)&&(n[s]=t[s])}return n}function Wn(t,e){if(null==t)return{};var s,i,n={},r=Object.keys(t);for(i=0;i=0||(n[s]=t[s]);return n}var Yn={functional:!0,render:function(t,e){var s=e._c,i=(e._v,e.data),n=e.children,r=void 0===n?[]:n,a=i["class"],o=i.staticClass,c=i.style,l=i.staticStyle,h=i.attrs,d=void 0===h?{}:h,u=Un(i,Hn);return s("svg",Fn({class:[a,o],style:[c,l],attrs:Object.assign({id:"icon-revert",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64"},d)},u),r.concat([s("path",{staticClass:"svg-n svg-c svg-j",attrs:{d:"M36.4 53.5h9.9a15.6 15.6 0 100-31.22h-44"}}),s("path",{staticClass:"svg-n svg-c svg-j",attrs:{d:"M2.3 22.3l11.8-11.8"}}),s("path",{staticClass:"svg-n svg-c svg-j",attrs:{d:"M2.1 22.3l11.8 11.8"}})]))}},Kn=["class","staticClass","style","staticStyle","attrs"];function zn(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function Vn(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,s)&&(n[s]=t[s])}return n}function Qn(t,e){if(null==t)return{};var s,i,n={},r=Object.keys(t);for(i=0;i=0||(n[s]=t[s]);return n}var Jn={functional:!0,render:function(t,e){var s=e._c,i=(e._v,e.data),n=e.children,r=void 0===n?[]:n,a=i["class"],o=i.staticClass,c=i.style,l=i.staticStyle,h=i.attrs,d=void 0===h?{}:h,u=qn(i,Kn);return s("svg",Vn({class:[a,o],style:[c,l],attrs:Object.assign({id:"icon-settings",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64"},d)},u),r.concat([s("path",{staticClass:"svg-n svg-m svg-c",attrs:{d:"M63 15H1m62 17H1m62 17H1"}}),s("ellipse",{staticClass:"svg-b svg-c",attrs:{cx:"14",cy:"15",rx:"6",ry:"6.06"}}),s("ellipse",{staticClass:"svg-b svg-c",attrs:{cx:"32",cy:"32",rx:"6",ry:"6.06"}}),s("ellipse",{staticClass:"svg-b svg-c",attrs:{cx:"50",cy:"49",rx:"6",ry:"6.06"}})]))}},Zn=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"menu-button",class:t.classes,on:{click:t.onClick}},[t._t("additional"),s("div",{staticClass:"menu-button-icon-container"},[t._t("primary"),t._t("secondary")],2),s("div",{staticClass:"menu-button-label-container"},[s("div",{staticClass:"menu-button-label primary"},[t._v(t._s(t.primaryText))]),s("div",{staticClass:"menu-button-label secondary"},[t._v(t._s(t.secondaryText))])])],2)},tr=[];const er=500;var sr=fs["a"].extend({name:"menu-button",props:{active:{type:Boolean,required:!1,default:!0},primaryText:{type:String,required:!0},secondaryText:{type:String,required:!1,default:""},alwaysShow:{type:Boolean,required:!1,default:!1},alwaysAnimate:{type:Boolean,required:!1,default:!1}},data:()=>({animating:!1}),computed:{classes(){const t=this.alwaysAnimate?this.animating:this.isPrimary;return{primary:this.isPrimary||this.alwaysAnimate&&this.animating,secondary:!this.active&&this.hasSecondary&&(!this.alwaysAnimate||!this.animating),back:!this.alwaysShow&&this.hasSecondary,"js-in":t}},isPrimary(){return this.active||!this.hasSecondary},hasSecondary(){return!!this.secondaryText.length}},methods:{onClick(){this.click(),this.handleAnimation()},click(){this.$emit("click"),this.emitSound()},async handleAnimation(){this.alwaysAnimate&&(this.animating=!0,await Object(o["c"])(er),this.onAnimationEnd())},onAnimationEnd(){this.animating=!1},emitSound(){g["a"].emit("BUTTON_CLICK")}}}),ir=sr,nr=Object(Ls["a"])(ir,Zn,tr,!1,null,null,null),rr=nr.exports,ar=fs["a"].extend({name:"menu-custom",components:{AnimationFinalEncyclopedia:En,MenuButton:rr,IconClear:An,IconClose:nn,IconEncyclopedia:Ln,IconHints:$n,IconRevert:Yn,IconSettings:Jn},computed:{...Object(a["b"])(["isPopupWithNameActive","encyclopediaTimestamp","workspaceRevertable","progressSince"]),HINTS_URL(){return v["f"]},newInEncyclopediaCount(){return this.progressSince(this.encyclopediaTimestamp).length},isSettingsActive(){return this.isPopupWithNameActive(y["SETTINGS"])},isEncyclopediaActive(){return this.isPopupWithNameActive(y["ENCYCLOPEDIA"])}},methods:{onClearRevert(){this.$store.dispatch("workspaceClearRevertStart")},toggleSettings(){this.isPopupWithNameActive(y["SETTINGS"])?g["a"].emit("SETTINGS_HIDE"):g["a"].emit("SETTINGS_SHOW"),this.toggle(y["SETTINGS"])},toggleEncyclopedia(){this.toggle(y["ENCYCLOPEDIA"])},toggleStore(){this.toggle(y["STORE"])},toggleHints(){this.isPopupWithNameActive(y["SYNC"])||(window.open(v["f"],"_blank"),this.onHintsClick())},onHintsClick(){g["a"].emit("HINTS_CLICKED")},toggle(t){this.isPopupWithNameActive(y["SYNC"])||this.$store.dispatch("popupToggle",t)}}}),or=ar,cr=Object(Ls["a"])(or,ln,hn,!1,null,null,null),lr=cr.exports,hr=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"text-tutorials-container",class:t.containerClasses},[i("div",{staticClass:"text-tutorials",class:t.classes},[i("div",{staticClass:"close",on:{click:t.hide}},[i("img",{staticClass:"label",attrs:{src:s("2260"),alt:"close"}})]),i("div",{staticClass:"content",domProps:{innerHTML:t._s(t.text)}})])])},dr=[],ur=s("93e8");const mr=["left","center","right"],pr=["top","center","bottom"],gr=(t,e)=>e>t.length-1?"center":t[e];var fr=fs["a"].extend({name:"text-tutorials",data:()=>({textCopy:"",containerClassesCopy:[]}),computed:{...Object(a["b"])(["tutorialTextCurrent","tutorialTextPosition"]),classes(){return{"js-active":null!==this.tutorialTextCurrent}},containerClasses(){const t=this.tutorialTextPosition;if(!t)return this.containerClassesCopy;const e=[`horizontal-${gr(mr,t.horizontal)}`,`vertical-${gr(pr,t.vertical)}`];return this.containerClassesCopy=e,e},text(){return this.textCopy}},watch:{tutorialTextCurrent(t){if(!t)return;let e;e=Object(ur["b"])(t.text)?t.text:t.text(this.$store.getters),this.textCopy=e}},methods:{hide(){this.$store.dispatch("tutorialTextHide")}}}),Er=fr,br=Object(Ls["a"])(Er,hr,dr,!1,null,null,null),yr=br.exports,vr=fs["a"].extend({name:"game",components:{Workspace:ai,Library:Hi,Search:cn,Menu:lr,Tutorials:()=>s.e("tutorials").then(s.bind(null,"735f")),TextTutorials:yr,Animations:()=>s.e("animations").then(s.bind(null,"407f"))},computed:{areTutorialsVisible(){return!this.$store.getters.areTutorialsFinished}},mounted(){g["a"].once("PLAY",()=>this.$store.dispatch("startedPlaying"))}}),wr=vr,Ir=Object(Ls["a"])(wr,Es,bs,!1,null,null,null),Or=Ir.exports,Ar=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},Sr=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("audio",{attrs:{id:t.id,preload:"metadata"},on:{loadedmetadata:t.onMetaData}},[s("source",{attrs:{src:t.srcOGG,type:"audio/ogg"}}),s("source",{attrs:{src:t.srcM4A,type:"audio/mpeg"}})])}],Tr=fs["a"].extend({name:"audio-extension",computed:{id(){return ce},srcOGG(){return`${re}${le}.ogg`},srcM4A(){return`${re}${le}.m4a`}},methods:{onMetaData(){g["a"].emit("AUDIO_EXTENSION")}}}),_r=Tr,xr=Object(Ls["a"])(_r,Ar,Sr,!1,null,null,null),Pr=xr.exports,Cr=fs["a"].extend({name:"app",components:{Game:Or,Popups:()=>s.e("popups").then(s.bind(null,"59a1")),AudioExtension:Pr},computed:{isGameReady(){return this.$store.getters.isGameReady}}}),Lr=Cr,Dr=(s("6294"),Object(Ls["a"])(Lr,ps,gs,!1,null,null,null)),Rr=Dr.exports;r["a"].config.productionTip=!1,r["a"].config.devtools=!1,r["a"].config.debug=!1,r["a"].config.silent=!0,r["a"].config.performance=!1,new r["a"]({store:a["a"],el:"#app",render:t=>t(Rr)}),c["a"].init(new m),p["a"].init(a["a"]),g["a"].init(a["a"]),R.init(a["a"]),Y.init(a["a"]),X.init(),q["b"].init(a["a"]),st.init(),a["a"].dispatch("init"),Object(o["b"])(()=>{nt["a"].init(a["a"]),jt.init(),Bt.init(a["a"]),Ft["a"].init(a["a"]),Ut.init(a["a"]),Ue["a"].init(a["a"]),Object(o["b"])(()=>{it["a"].init(a["a"]),Kt.init(a["a"]),zt["a"].init(a["a"]),qt.init(a["a"]),j["a"].init(a["a"]),Jt.init(a["a"]),Ge.init(a["a"]),ls.init(a["a"])})})},cd57:function(t,e,s){"use strict";s.d(e,"a",(function(){return i})),s.d(e,"b",(function(){return n}));const i="js-animation-new",n="js-search-bar"},cf19:function(t,e,s){"use strict";s.d(e,"a",(function(){return r})),s.d(e,"b",(function(){return a}));var i=s("2de2");const n="_",r=t=>t.includes(n),a=(t,e)=>e===i["g"]?!r(t):r(t)&&t.includes(e)},cfb6:function(t,e){},d0c4:function(t,e,s){"use strict";var i=s("2138"),n=s("1663"),r=s("7543");const a=t=>t.hasOwnProperty("dimensions");class o{constructor(){this.currentPosition=null,this.listening=[]}init(t){this.$store=t}onDragStart(){this.isMixingEnabled&&(this.listening=this.getSortedListening())}onDragMove(t){if(this.currentPosition=t,this.checkStatic())return;if(this.checkAlreadyOver())return;if(!this.isMixingEnabled)return;const e=this.checkListening();null!==e&&(this.isOver||this.triggerOver(e))}onDragEnd(t=!1){if(this.currentPosition=null,!this.isOver)return this.isOutsideWorkspace()?void this.destroyDragged():void(this.wasCloned||"longpress"===t||n["a"].emit("ELEMENT_DROP"));this.shouldDestroyAfterDrop?this.destroyDragged():t||this.$store.dispatch("droppableDrop")}destroyDragged(){const t=this.$store.getters.draggedId;null!==t&&this.$store.dispatch("workspaceElementRemove",t),n["a"].emit("ELEMENT_DESTROY")}triggerOver({id:t}){this.$store.dispatch("dragOver",t)}triggerOut(){this.$store.dispatch("dragOut")}checkAlreadyOver(){if(!this.isOver)return!1;const t=this.checkIntersection(this.over);return!!t||(this.triggerOut(),!1)}checkStatic(){const t=this.static.find(t=>this.checkIntersection(t));return!!t&&(this.over&&this.over.id===t.id||this.triggerOver(t),!0)}checkListening(){return this.listening.find(t=>this.checkIntersection(t))||null}checkIntersection(t){if(null===t)return!1;const e=a(t)?t.dimensions:this.workspaceBoxDimensions;return Object(r["c"])(t.position,e,this.currentPosition,this.workspaceBoxDimensions)}isOutsideWorkspace(){const t=this.$store.getters.draggedElement,e=t?t.position:null;if(!e)return!1;const{x:s,y:n}=e,{width:r,height:a}=this.workspaceBoxDimensions;return s<-r*i["f"]||(n<-a*i["f"]||n>window.innerHeight-a*(1-i["f"]))}getSortedListening(){const t=[],e=this.$store.getters.droppablesListening,s=document.querySelectorAll(`#${i["g"]} [data-id]`);return Array.from(s).forEach(({dataset:{id:s}})=>{const i=e.find(t=>t.id===s);i&&t.push(i)}),t.reverse()}get isMixingEnabled(){return!this.$store.getters.isMixingDisabled}get static(){return Object.values(this.$store.getters.droppablesStatic)}get over(){return this.$store.getters.draggingOverElement}get isOver(){return this.$store.getters.isOver}get isDragging(){return this.$store.getters.isDragging}get shouldDestroyAfterDrop(){return this.over&&this.over.id===i["e"]}get workspaceBoxDimensions(){return this.$store.getters.workspaceBoxDimensions}get wasCloned(){const t=this.$store.getters.draggedElement;if(!t)return!1;const e=document.querySelector(`[data-id="${t.id}"]`);return!(!e||!e.__vue__)&&e.__vue__.cloned}}e["a"]=new o},d1f6:function(t,e){},d257:function(t,e,s){"use strict";var i=s("2ae7");const n=(t,e="animationend")=>new Promise(s=>{const i=()=>{t.removeEventListener(e,i),s()};t.addEventListener(e,i)}),r=t=>{const{className:e}=t;t.className="",t.offsetWidth,t.className=e},a=(t,e)=>(t.addEventListener(i["a"],e,!1),()=>t.removeEventListener(i["a"],e)),o=(t,e)=>a(t,({animationName:t})=>e(t)),c=(t,e)=>(t.addEventListener(i["b"],e,!1),()=>t.removeEventListener(i["b"],e)),l=t=>new Promise(e=>window.setTimeout(e,t)),h=t=>window.setTimeout(t,0),d=window.requestAnimationFrame?()=>new Promise(t=>requestAnimationFrame(()=>t())):()=>l(0),u=["Webkit","Moz","ms","Ms","O"],m=document.documentElement.style,p=window.getComputedStyle?t=>getComputedStyle(t,null):t=>t.currentStyle,g=t=>{if("string"===typeof m[t])return t;const e=`${t.charAt(0).toUpperCase()}${t.slice(1)}`;let s;for(let i=0,n=u.length;i{const e=getComputedStyle(t);return t.offsetHeight+parseInt(e.marginTop||"0",10)+parseInt(e.marginBottom||"0",10)};var E=s("0347");const b=Object(E["a"])(),y=b.any,v=navigator.userAgent,w=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,I=()=>/Edge/.test(navigator.userAgent),O=()=>(v.includes("Chrome")||v.includes("Chromium"))&&!I(),A=()=>v.includes("Safari")&&!O()&&!I(),S=()=>w()&&O(),T=(t,e)=>{let s=e.parentNode;while(null!==s){if(s===t)return!0;s=s.parentNode}return!1},_=t=>{t.parentNode&&t.parentNode.appendChild(t)},x=t=>new Promise((e,s)=>{const i=new XMLHttpRequest;i.open("get",t,!0),i.responseType="json",i.onload=()=>{200===i.status?e(i.response):s(i.status)},i.send()}),P=(t,...e)=>{},C=(t,e,s)=>{},L=(t,e)=>{t.scrollTop=e},D=t=>t.scrollY||t.scrollTop,R=t=>"getComputedStyle"in window&&"smooth"===window.getComputedStyle(t)["scroll-behavior"],N=(t,e,s=250)=>{if(0===s||R(t))return void L(t,e);const i=D(t),n=Math.max(0,e)-i,r=(new Date).getTime(),a=s||Math.min(Math.abs(n),s);(function e(){setTimeout(()=>{const s=Math.min(1,((new Date).getTime()-r)/a),o=s<.5?2*s*s:s*(4-2*s)-1,c=Math.max(0,Math.floor(i+n*o));L(t,c),s<1&&e()},9)})()},k=t=>`${t.charAt(0).toUpperCase()}${t.slice(1)}`,M=60,j=60*M,$=24*j,H=t=>{const e=Date.now(),s=Math.round((e-t)/1e3),i=Math.floor(s/$),n=Math.floor((s-i*$)/j),r=Math.floor((s-i*$-n*j)/M);return{days:i,hours:n,minutes:r}},B=t=>{const{days:e,hours:s,minutes:i}=H(t);return 0===e&&0===s&&i<2?"just now":0===e&&0===s?`${i} minutes ago`:0===e&&1===s?`${s} hour ${i} minutes ago`:0===e&&s<3?`${s} hours ${i} minutes ago`:0===e?`${s} hours ago`:1===e?`${e} day ago`:`${e} days ago`},F=(t,e)=>{const s=new XMLHttpRequest;return s.open("POST",t,!0),s.setRequestHeader("Content-type","application/json"),s.send(JSON.stringify(e)),new Promise((t,e)=>{s.onload=()=>t(s.response),s.onerror=e})},G=t=>{const e=new XMLHttpRequest;return e.open("GET",t,!0),e.send(),new Promise((t,s)=>{e.onload=()=>t(e.response),e.onerror=s})};s.d(e,"t",(function(){return n})),s.d(e,"y",(function(){return r})),s.d(e,"s",(function(){return a})),s.d(e,"u",(function(){return o})),s.d(e,"v",(function(){return c})),s.d(e,"c",(function(){return l})),s.d(e,"b",(function(){return h})),s.d(e,"r",(function(){return d})),s.d(e,"g",(function(){return p})),s.d(e,"h",(function(){return g})),s.d(e,"e",(function(){return f})),s.d(e,"o",(function(){return y})),s.d(e,"n",(function(){return w})),s.d(e,"l",(function(){return I})),s.d(e,"j",(function(){return O})),s.d(e,"p",(function(){return A})),s.d(e,"k",(function(){return S})),s.d(e,"m",(function(){return T})),s.d(e,"x",(function(){return _})),s.d(e,"d",(function(){return x})),s.d(e,"q",(function(){return P})),s.d(e,"A",(function(){return C})),s.d(e,"z",(function(){return N})),s.d(e,"a",(function(){return k})),s.d(e,"i",(function(){return B})),s.d(e,"w",(function(){return F})),s.d(e,"f",(function(){return G}))},d74b:function(t,e){},da98:function(t,e,s){"use strict";const i={id:"",name:"",description:"",parents:[],children:[],tags:[],prime:!1,base:!1,final:!1,exhausted:null,condition:null};var n=i;s.d(e,"a",(function(){return r})),s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return o}));const r=(t,e)=>t.hasOwnProperty(e),a=t=>t.hasOwnProperty("parents")&&!!t.parents&&!!t.parents.length,o=(t,e)=>{const s=t.name||t.n||"",i=t.parents||t.p||[],r=t.children||t.c||[];return delete t.n,delete t.c,delete t.p,{...n,...t,id:e,name:s,children:r,parents:i,final:!r.length}}},ded8:function(t,e,s){"use strict";s.d(e,"c",(function(){return a})),s.d(e,"a",(function(){return o})),s.d(e,"b",(function(){return l}));const i=/[0-9]{1,2}_/;function n(t,e){if(i.test(t)&&i.test(e)){const s=t.replace(i,""),n=e.replace(i,"");return+n<+s?[e,t]:[t,e]}return i.test(t)?[e,t]:[t,e]}function r(t,e){return[`${Math.min(+t,+e)}`,`${Math.max(+t,+e)}`]}function a([t,e]){return i.test(t)||i.test(e)?n(t,e):r(t,e)}function o(t,e,s=!1){const i=[],n={};e.forEach(e=>{if(!t.hasOwnProperty(e))return;const s=`${t[e].name.toLowerCase()}_${e}`;n[s]=e,i.push(s)});const r=i.sort(),a=r.map(t=>n[t]);return s?a.reverse():a}function c(t,e,s=!1){const i=e.sort((e,s)=>{const i=t[e]||-1,n=t[s]||-1;return i>n?-1:i(t[e]=s,t),{});return c(i,e,s)}},e5fe:function(t,e){},ebe2:function(t,e,s){"use strict";var i=s("cfb6");s.o(i,"TextTutorialId")&&s.d(e,"TextTutorialId",(function(){return i["TextTutorialId"]}));var n=s("0745");s.o(n,"TextTutorialId")&&s.d(e,"TextTutorialId",(function(){return n["TextTutorialId"]}));var r=s("4a5e");s.o(r,"TextTutorialId")&&s.d(e,"TextTutorialId",(function(){return r["TextTutorialId"]}));var a=s("03b6");s.o(a,"TextTutorialId")&&s.d(e,"TextTutorialId",(function(){return a["TextTutorialId"]}));var o=s("ab1f");s.o(o,"TextTutorialId")&&s.d(e,"TextTutorialId",(function(){return o["TextTutorialId"]}));var c=s("2321");s.o(c,"TextTutorialId")&&s.d(e,"TextTutorialId",(function(){return c["TextTutorialId"]}));var l=s("6f84");s.o(l,"TextTutorialId")&&s.d(e,"TextTutorialId",(function(){return l["TextTutorialId"]}));var h=s("4819");s.o(h,"TextTutorialId")&&s.d(e,"TextTutorialId",(function(){return h["TextTutorialId"]}));var d=s("d1f6");s.o(d,"TextTutorialId")&&s.d(e,"TextTutorialId",(function(){return d["TextTutorialId"]}));var u=s("a097");s.o(u,"TextTutorialId")&&s.d(e,"TextTutorialId",(function(){return u["TextTutorialId"]}));var m=s("5221");s.o(m,"TextTutorialId")&&s.d(e,"TextTutorialId",(function(){return m["TextTutorialId"]}));var p=s("33ff");s.o(p,"TextTutorialId")&&s.d(e,"TextTutorialId",(function(){return p["TextTutorialId"]}));var g=s("ff0e");s.o(g,"TextTutorialId")&&s.d(e,"TextTutorialId",(function(){return g["TextTutorialId"]}));var f=s("d74b");s.o(f,"TextTutorialId")&&s.d(e,"TextTutorialId",(function(){return f["TextTutorialId"]}));var E=s("f339");s.o(E,"TextTutorialId")&&s.d(e,"TextTutorialId",(function(){return E["TextTutorialId"]}));var b=s("fe31");s.o(b,"TextTutorialId")&&s.d(e,"TextTutorialId",(function(){return b["TextTutorialId"]}));var y=s("2149");s.d(e,"TextTutorialId",(function(){return y["a"]}));s("e5fe")},f339:function(t,e){},fd41:function(t,e,s){"use strict";var i=s("623d");const n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",r=t=>`static/icons/${t}.svg`,a=t=>t===i["a"]?n:r(t);e["a"]=a},fe31:function(t,e){},ff0e:function(t,e){}}); +//# sourceMappingURL=app.64a51313.js.map \ No newline at end of file diff --git a/semag/al2/js/chunk-vendors.92f77a18.js b/semag/al2/js/chunk-vendors.92f77a18.js new file mode 100644 index 00000000..86a44e0f --- /dev/null +++ b/semag/al2/js/chunk-vendors.92f77a18.js @@ -0,0 +1,14 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00fd":function(t,n,e){var r=e("9e69"),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;function s(t){var n=i.call(t,c),e=t[c];try{t[c]=void 0;var r=!0}catch(s){}var o=a.call(t);return r&&(n?t[c]=e:delete t[c]),o}t.exports=s},"0347":function(t,n,e){"use strict";const r=/iPhone/i,o=/iPod/i,i=/iPad/i,a=/\bAndroid(?:.+)Mobile\b/i,c=/Android/i,s=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,p=/Silk/i,u=/Windows Phone/i,l=/\bWindows(?:.+)ARM\b/i,f=/BlackBerry/i,d=/BB10/i,h=/Opera Mini/i,v=/\b(CriOS|Chrome)(?:.+)Mobile/i,m=/Mobile(?:.+)Firefox\b/i;function y(t,n){return t.test(n)}function g(t){t=t||("undefined"!==typeof navigator?navigator.userAgent:"");let n=t.split("[FBAN");"undefined"!==typeof n[1]&&(t=n[0]),n=t.split("Twitter"),"undefined"!==typeof n[1]&&(t=n[0]);const e={apple:{phone:y(r,t)&&!y(u,t),ipod:y(o,t),tablet:!y(r,t)&&y(i,t)&&!y(u,t),device:(y(r,t)||y(o,t)||y(i,t))&&!y(u,t)},amazon:{phone:y(s,t),tablet:!y(s,t)&&y(p,t),device:y(s,t)||y(p,t)},android:{phone:!y(u,t)&&y(s,t)||!y(u,t)&&y(a,t),tablet:!y(u,t)&&!y(s,t)&&!y(a,t)&&(y(p,t)||y(c,t)),device:!y(u,t)&&(y(s,t)||y(p,t)||y(a,t)||y(c,t))||y(/\bokhttp\b/i,t)},windows:{phone:y(u,t),tablet:y(l,t),device:y(u,t)||y(l,t)},other:{blackberry:y(f,t),blackberry10:y(d,t),opera:y(h,t),firefox:y(m,t),chrome:y(v,t),device:y(f,t)||y(d,t)||y(h,t)||y(m,t)||y(v,t)},any:!1,phone:!1,tablet:!1};return e.any=e.apple.device||e.android.device||e.windows.device||e.other.device,e.phone=e.apple.phone||e.android.phone||e.windows.phone,e.tablet=e.apple.tablet||e.android.tablet||e.windows.tablet,e}e.d(n,"a",(function(){return g}))},"0b07":function(t,n,e){var r=e("34ac"),o=e("3698");function i(t,n){var e=o(t,n);return r(e)?e:void 0}t.exports=i},"0f32":function(t,n,e){var r=e("b047"),o=e("1a8c"),i="Expected a function";function a(t,n,e){var a=!0,c=!0;if("function"!=typeof t)throw new TypeError(i);return o(e)&&(a="leading"in e?!!e.leading:a,c="trailing"in e?!!e.trailing:c),r(t,n,{leading:a,maxWait:n,trailing:c})}t.exports=a},"100e":function(t,n,e){var r=e("cd9d"),o=e("2286"),i=e("c1c9");function a(t,n){return i(o(t,n,r),t+"")}t.exports=a},1310:function(t,n){function e(t){return null!=t&&"object"==typeof t}t.exports=e},1368:function(t,n,e){var r=e("da03"),o=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function i(t){return!!o&&o in t}t.exports=i},"1a8c":function(t,n){function e(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}t.exports=e},2286:function(t,n,e){var r=e("85e3"),o=Math.max;function i(t,n,e){return n=o(void 0===n?t.length-1:n,0),function(){var i=arguments,a=-1,c=o(i.length-n,0),s=Array(c);while(++a=0&&Math.floor(n)===n&&isFinite(t)}function d(t){return o(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function h(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===p?JSON.stringify(t,null,2):String(t)}function v(t){var n=parseFloat(t);return isNaN(n)?t:n}function m(t,n){for(var e=Object.create(null),r=t.split(","),o=0;o-1)return t.splice(e,1)}}var b=Object.prototype.hasOwnProperty;function _(t,n){return b.call(t,n)}function w(t){var n=Object.create(null);return function(e){var r=n[e];return r||(n[e]=t(e))}}var k=/-(\w)/g,x=w((function(t){return t.replace(k,(function(t,n){return n?n.toUpperCase():""}))})),$=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,O=w((function(t){return t.replace(C,"-$1").toLowerCase()}));function A(t,n){function e(e){var r=arguments.length;return r?r>1?t.apply(n,arguments):t.call(n,e):t.call(n)}return e._length=t.length,e}function S(t,n){return t.bind(n)}var j=Function.prototype.bind?S:A;function E(t,n){n=n||0;var e=t.length-n,r=new Array(e);while(e--)r[e]=t[e+n];return r}function T(t,n){for(var e in n)t[e]=n[e];return t}function M(t){for(var n={},e=0;e0,et=Y&&Y.indexOf("edge/")>0,rt=(Y&&Y.indexOf("android"),Y&&/iphone|ipad|ipod|ios/.test(Y)||"ios"===Q),ot=(Y&&/chrome\/\d+/.test(Y),Y&&/phantomjs/.test(Y),Y&&Y.match(/firefox\/(\d+)/)),it={}.watch,at=!1;if(J)try{var ct={};Object.defineProperty(ct,"passive",{get:function(){at=!0}}),window.addEventListener("test-passive",null,ct)}catch(xa){}var st=function(){return void 0===K&&(K=!J&&!Z&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),K},pt=J&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ut(t){return"function"===typeof t&&/native code/.test(t.toString())}var lt,ft="undefined"!==typeof Symbol&&ut(Symbol)&&"undefined"!==typeof Reflect&&ut(Reflect.ownKeys);lt="undefined"!==typeof Set&&ut(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var dt=I,ht=0,vt=function(){this.id=ht++,this.subs=[]};vt.prototype.addSub=function(t){this.subs.push(t)},vt.prototype.removeSub=function(t){g(this.subs,t)},vt.prototype.depend=function(){vt.target&&vt.target.addDep(this)},vt.prototype.notify=function(){var t=this.subs.slice();for(var n=0,e=t.length;n-1)if(i&&!_(o,"default"))a=!1;else if(""===a||a===O(t)){var s=tn(String,o.type);(s<0||c0&&(a=Sn(a,(n||"")+"_"+e),An(a[0])&&An(p)&&(u[s]=kt(p.text+a[0].text),a.shift()),u.push.apply(u,a)):c(a)?An(p)?u[s]=kt(p.text+a):""!==a&&u.push(kt(a)):An(a)&&An(p)?u[s]=kt(p.text+a.text):(i(t._isVList)&&o(a.tag)&&r(a.key)&&o(n)&&(a.key="__vlist"+n+"_"+e+"__"),u.push(a)));return u}function jn(t){var n=t.$options.provide;n&&(t._provided="function"===typeof n?n.call(t):n)}function En(t){var n=Tn(t.$options.inject,t);n&&(jt(!1),Object.keys(n).forEach((function(e){Pt(t,e,n[e])})),jt(!0))}function Tn(t,n){if(t){for(var e=Object.create(null),r=ft?Reflect.ownKeys(t):Object.keys(t),o=0;o0,a=t?!!t.$stable:!i,c=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==e&&c===r.$key&&!i&&!r.$hasNormal)return r;for(var s in o={},t)t[s]&&"$"!==s[0]&&(o[s]=Nn(n,s,t[s]))}else o={};for(var p in n)p in o||(o[p]=Dn(n,p));return t&&Object.isExtensible(t)&&(t._normalized=o),W(o,"$stable",a),W(o,"$key",c),W(o,"$hasNormal",i),o}function Nn(t,n,e){var r=function(){var t=arguments.length?e.apply(null,arguments):e({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:On(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return e.proxy&&Object.defineProperty(t,n,{get:r,enumerable:!0,configurable:!0}),r}function Dn(t,n){return function(){return t[n]}}function Fn(t,n){var e,r,i,a,c;if(Array.isArray(t)||"string"===typeof t)for(e=new Array(t.length),r=0,i=t.length;r1?E(e):e;for(var r=E(arguments,1),o='event handler for "'+t+'"',i=0,a=e.length;idocument.createEvent("Event").timeStamp&&(Ke=function(){return Xe.now()})}function Je(){var t,n;for(Ge=Ke(),He=!0,Ue.sort((function(t,n){return t.id-n.id})),We=0;WeWe&&Ue[e].id>t.id)e--;Ue.splice(e+1,0,t)}else Ue.push(t);Be||(Be=!0,vn(Je))}}var nr=0,er=function(t,n,e,r,o){this.vm=t,o&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=e,this.id=++nr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new lt,this.newDepIds=new lt,this.expression="","function"===typeof n?this.getter=n:(this.getter=G(n),this.getter||(this.getter=I)),this.value=this.lazy?void 0:this.get()};er.prototype.get=function(){var t;yt(this);var n=this.vm;try{t=this.getter.call(n,n)}catch(xa){if(!this.user)throw xa;nn(xa,n,'getter for watcher "'+this.expression+'"')}finally{this.deep&&yn(t),gt(),this.cleanupDeps()}return t},er.prototype.addDep=function(t){var n=t.id;this.newDepIds.has(n)||(this.newDepIds.add(n),this.newDeps.push(t),this.depIds.has(n)||t.addSub(this))},er.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var n=this.deps[t];this.newDepIds.has(n.id)||n.removeSub(this)}var e=this.depIds;this.depIds=this.newDepIds,this.newDepIds=e,this.newDepIds.clear(),e=this.deps,this.deps=this.newDeps,this.newDeps=e,this.newDeps.length=0},er.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},er.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||s(t)||this.deep){var n=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,n)}catch(xa){nn(xa,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,n)}}},er.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},er.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},er.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:I,set:I};function or(t,n,e){rr.get=function(){return this[n][e]},rr.set=function(t){this[n][e]=t},Object.defineProperty(t,e,rr)}function ir(t){t._watchers=[];var n=t.$options;n.props&&ar(t,n.props),n.methods&&hr(t,n.methods),n.data?cr(t):It(t._data={},!0),n.computed&&ur(t,n.computed),n.watch&&n.watch!==it&&vr(t,n.watch)}function ar(t,n){var e=t.$options.propsData||{},r=t._props={},o=t.$options._propKeys=[],i=!t.$parent;i||jt(!1);var a=function(i){o.push(i);var a=Jt(i,n,e,t);Pt(r,i,a),i in t||or(t,"_props",i)};for(var c in n)a(c);jt(!0)}function cr(t){var n=t.$options.data;n=t._data="function"===typeof n?sr(n,t):n||{},u(n)||(n={});var e=Object.keys(n),r=t.$options.props,o=(t.$options.methods,e.length);while(o--){var i=e[o];0,r&&_(r,i)||H(i)||or(t,"_data",i)}It(n,!0)}function sr(t,n){yt();try{return t.call(n,n)}catch(xa){return nn(xa,n,"data()"),{}}finally{gt()}}var pr={lazy:!0};function ur(t,n){var e=t._computedWatchers=Object.create(null),r=st();for(var o in n){var i=n[o],a="function"===typeof i?i:i.get;0,r||(e[o]=new er(t,a||I,I,pr)),o in t||lr(t,o,i)}}function lr(t,n,e){var r=!st();"function"===typeof e?(rr.get=r?fr(n):dr(e),rr.set=I):(rr.get=e.get?r&&!1!==e.cache?fr(n):dr(e.get):I,rr.set=e.set||I),Object.defineProperty(t,n,rr)}function fr(t){return function(){var n=this._computedWatchers&&this._computedWatchers[t];if(n)return n.dirty&&n.evaluate(),vt.target&&n.depend(),n.value}}function dr(t){return function(){return t.call(this,this)}}function hr(t,n){t.$options.props;for(var e in n)t[e]="function"!==typeof n[e]?I:j(n[e],t)}function vr(t,n){for(var e in n){var r=n[e];if(Array.isArray(r))for(var o=0;o-1)return this;var e=E(arguments,1);return e.unshift(this),"function"===typeof t.install?t.install.apply(t,e):"function"===typeof t&&t.apply(null,e),n.push(t),this}}function Cr(t){t.mixin=function(t){return this.options=Kt(this.options,t),this}}function Or(t){t.cid=0;var n=1;t.extend=function(t){t=t||{};var e=this,r=e.cid,o=t._Ctor||(t._Ctor={});if(o[r])return o[r];var i=t.name||e.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(e.prototype),a.prototype.constructor=a,a.cid=n++,a.options=Kt(e.options,t),a["super"]=e,a.options.props&&Ar(a),a.options.computed&&Sr(a),a.extend=e.extend,a.mixin=e.mixin,a.use=e.use,U.forEach((function(t){a[t]=e[t]})),i&&(a.options.components[i]=a),a.superOptions=e.options,a.extendOptions=t,a.sealedOptions=T({},a.options),o[r]=a,a}}function Ar(t){var n=t.options.props;for(var e in n)or(t.prototype,"_props",e)}function Sr(t){var n=t.options.computed;for(var e in n)lr(t.prototype,e,n[e])}function jr(t){U.forEach((function(n){t[n]=function(t,e){return e?("component"===n&&u(e)&&(e.name=e.name||t,e=this.options._base.extend(e)),"directive"===n&&"function"===typeof e&&(e={bind:e,update:e}),this.options[n+"s"][t]=e,e):this.options[n+"s"][t]}}))}function Er(t){return t&&(t.Ctor.options.name||t.tag)}function Tr(t,n){return Array.isArray(t)?t.indexOf(n)>-1:"string"===typeof t?t.split(",").indexOf(n)>-1:!!l(t)&&t.test(n)}function Mr(t,n){var e=t.cache,r=t.keys,o=t._vnode;for(var i in e){var a=e[i];if(a){var c=Er(a.componentOptions);c&&!n(c)&&Ir(e,i,r,o)}}}function Ir(t,n,e,r){var o=t[n];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[n]=null,g(e,n)}br(xr),yr(xr),je(xr),Ie(xr),ge(xr);var Pr=[String,RegExp,Array],Nr={name:"keep-alive",abstract:!0,props:{include:Pr,exclude:Pr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Ir(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(n){Mr(t,(function(t){return Tr(n,t)}))})),this.$watch("exclude",(function(n){Mr(t,(function(t){return!Tr(n,t)}))}))},render:function(){var t=this.$slots.default,n=xe(t),e=n&&n.componentOptions;if(e){var r=Er(e),o=this,i=o.include,a=o.exclude;if(i&&(!r||!Tr(i,r))||a&&r&&Tr(a,r))return n;var c=this,s=c.cache,p=c.keys,u=null==n.key?e.Ctor.cid+(e.tag?"::"+e.tag:""):n.key;s[u]?(n.componentInstance=s[u].componentInstance,g(p,u),p.push(u)):(s[u]=n,p.push(u),this.max&&p.length>parseInt(this.max)&&Ir(s,p[0],p,this._vnode)),n.data.keepAlive=!0}return n||t&&t[0]}},Dr={KeepAlive:Nr};function Fr(t){var n={get:function(){return V}};Object.defineProperty(t,"config",n),t.util={warn:dt,extend:T,mergeOptions:Kt,defineReactive:Pt},t.set=Nt,t.delete=Dt,t.nextTick=vn,t.observable=function(t){return It(t),t},t.options=Object.create(null),U.forEach((function(n){t.options[n+"s"]=Object.create(null)})),t.options._base=t,T(t.options.components,Dr),$r(t),Cr(t),Or(t),jr(t)}Fr(xr),Object.defineProperty(xr.prototype,"$isServer",{get:st}),Object.defineProperty(xr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(xr,"FunctionalRenderContext",{value:Qn}),xr.version="2.6.10";var Lr=m("style,class"),Rr=m("input,textarea,option,select,progress"),Ur=function(t,n,e){return"value"===e&&Rr(t)&&"button"!==n||"selected"===e&&"option"===t||"checked"===e&&"input"===t||"muted"===e&&"video"===t},zr=m("contenteditable,draggable,spellcheck"),Vr=m("events,caret,typing,plaintext-only"),Br=function(t,n){return Kr(n)||"false"===n?"false":"contenteditable"===t&&Vr(n)?n:"true"},Hr=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Wr="http://www.w3.org/1999/xlink",qr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Gr=function(t){return qr(t)?t.slice(6,t.length):""},Kr=function(t){return null==t||!1===t};function Xr(t){var n=t.data,e=t,r=t;while(o(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(n=Jr(r.data,n));while(o(e=e.parent))e&&e.data&&(n=Jr(n,e.data));return Zr(n.staticClass,n.class)}function Jr(t,n){return{staticClass:Qr(t.staticClass,n.staticClass),class:o(t.class)?[t.class,n.class]:n.class}}function Zr(t,n){return o(t)||o(n)?Qr(t,Yr(n)):""}function Qr(t,n){return t?n?t+" "+n:t:n||""}function Yr(t){return Array.isArray(t)?to(t):s(t)?no(t):"string"===typeof t?t:""}function to(t){for(var n,e="",r=0,i=t.length;r-1?co[t]=n.constructor===window.HTMLUnknownElement||n.constructor===window.HTMLElement:co[t]=/HTMLUnknownElement/.test(n.toString())}var po=m("text,number,password,search,email,tel,url");function uo(t){if("string"===typeof t){var n=document.querySelector(t);return n||document.createElement("div")}return t}function lo(t,n){var e=document.createElement(t);return"select"!==t?e:(n.data&&n.data.attrs&&void 0!==n.data.attrs.multiple&&e.setAttribute("multiple","multiple"),e)}function fo(t,n){return document.createElementNS(eo[t],n)}function ho(t){return document.createTextNode(t)}function vo(t){return document.createComment(t)}function mo(t,n,e){t.insertBefore(n,e)}function yo(t,n){t.removeChild(n)}function go(t,n){t.appendChild(n)}function bo(t){return t.parentNode}function _o(t){return t.nextSibling}function wo(t){return t.tagName}function ko(t,n){t.textContent=n}function xo(t,n){t.setAttribute(n,"")}var $o=Object.freeze({createElement:lo,createElementNS:fo,createTextNode:ho,createComment:vo,insertBefore:mo,removeChild:yo,appendChild:go,parentNode:bo,nextSibling:_o,tagName:wo,setTextContent:ko,setStyleScope:xo}),Co={create:function(t,n){Oo(n)},update:function(t,n){t.data.ref!==n.data.ref&&(Oo(t,!0),Oo(n))},destroy:function(t){Oo(t,!0)}};function Oo(t,n){var e=t.data.ref;if(o(e)){var r=t.context,i=t.componentInstance||t.elm,a=r.$refs;n?Array.isArray(a[e])?g(a[e],i):a[e]===i&&(a[e]=void 0):t.data.refInFor?Array.isArray(a[e])?a[e].indexOf(i)<0&&a[e].push(i):a[e]=[i]:a[e]=i}}var Ao=new bt("",{},[]),So=["create","activate","update","remove","destroy"];function jo(t,n){return t.key===n.key&&(t.tag===n.tag&&t.isComment===n.isComment&&o(t.data)===o(n.data)&&Eo(t,n)||i(t.isAsyncPlaceholder)&&t.asyncFactory===n.asyncFactory&&r(n.asyncFactory.error))}function Eo(t,n){if("input"!==t.tag)return!0;var e,r=o(e=t.data)&&o(e=e.attrs)&&e.type,i=o(e=n.data)&&o(e=e.attrs)&&e.type;return r===i||po(r)&&po(i)}function To(t,n,e){var r,i,a={};for(r=n;r<=e;++r)i=t[r].key,o(i)&&(a[i]=r);return a}function Mo(t){var n,e,a={},s=t.modules,p=t.nodeOps;for(n=0;nv?(l=r(e[g+1])?null:e[g+1].elm,x(t,l,e,h,g,i)):h>g&&C(t,n,f,v)}function S(t,n,e,r){for(var i=e;i-1?Bo(t,n,e):Hr(n)?Kr(e)?t.removeAttribute(n):(e="allowfullscreen"===n&&"EMBED"===t.tagName?"true":n,t.setAttribute(n,e)):zr(n)?t.setAttribute(n,Br(n,e)):qr(n)?Kr(e)?t.removeAttributeNS(Wr,Gr(n)):t.setAttributeNS(Wr,n,e):Bo(t,n,e)}function Bo(t,n,e){if(Kr(e))t.removeAttribute(n);else{if(tt&&!nt&&"TEXTAREA"===t.tagName&&"placeholder"===n&&""!==e&&!t.__ieph){var r=function(n){n.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(n,e)}}var Ho={create:zo,update:zo};function Wo(t,n){var e=n.elm,i=n.data,a=t.data;if(!(r(i.staticClass)&&r(i.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var c=Xr(n),s=e._transitionClasses;o(s)&&(c=Qr(c,Yr(s))),c!==e._prevClass&&(e.setAttribute("class",c),e._prevClass=c)}}var qo,Go={create:Wo,update:Wo},Ko="__r",Xo="__c";function Jo(t){if(o(t[Ko])){var n=tt?"change":"input";t[n]=[].concat(t[Ko],t[n]||[]),delete t[Ko]}o(t[Xo])&&(t.change=[].concat(t[Xo],t.change||[]),delete t[Xo])}function Zo(t,n,e){var r=qo;return function o(){var i=n.apply(null,arguments);null!==i&&ti(t,o,e,r)}}var Qo=cn&&!(ot&&Number(ot[1])<=53);function Yo(t,n,e,r){if(Qo){var o=Ge,i=n;n=i._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return i.apply(this,arguments)}}qo.addEventListener(t,n,at?{capture:e,passive:r}:e)}function ti(t,n,e,r){(r||qo).removeEventListener(t,n._wrapper||n,e)}function ni(t,n){if(!r(t.data.on)||!r(n.data.on)){var e=n.data.on||{},o=t.data.on||{};qo=n.elm,Jo(e),wn(e,o,Yo,ti,Zo,n.context),qo=void 0}}var ei,ri={create:ni,update:ni};function oi(t,n){if(!r(t.data.domProps)||!r(n.data.domProps)){var e,i,a=n.elm,c=t.data.domProps||{},s=n.data.domProps||{};for(e in o(s.__ob__)&&(s=n.data.domProps=T({},s)),c)e in s||(a[e]="");for(e in s){if(i=s[e],"textContent"===e||"innerHTML"===e){if(n.children&&(n.children.length=0),i===c[e])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===e&&"PROGRESS"!==a.tagName){a._value=i;var p=r(i)?"":String(i);ii(a,p)&&(a.value=p)}else if("innerHTML"===e&&oo(a.tagName)&&r(a.innerHTML)){ei=ei||document.createElement("div"),ei.innerHTML=""+i+"";var u=ei.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(u.firstChild)a.appendChild(u.firstChild)}else if(i!==c[e])try{a[e]=i}catch(xa){}}}}function ii(t,n){return!t.composing&&("OPTION"===t.tagName||ai(t,n)||ci(t,n))}function ai(t,n){var e=!0;try{e=document.activeElement!==t}catch(xa){}return e&&t.value!==n}function ci(t,n){var e=t.value,r=t._vModifiers;if(o(r)){if(r.number)return v(e)!==v(n);if(r.trim)return e.trim()!==n.trim()}return e!==n}var si={create:oi,update:oi},pi=w((function(t){var n={},e=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(e).forEach((function(t){if(t){var e=t.split(r);e.length>1&&(n[e[0].trim()]=e[1].trim())}})),n}));function ui(t){var n=li(t.style);return t.staticStyle?T(t.staticStyle,n):n}function li(t){return Array.isArray(t)?M(t):"string"===typeof t?pi(t):t}function fi(t,n){var e,r={};if(n){var o=t;while(o.componentInstance)o=o.componentInstance._vnode,o&&o.data&&(e=ui(o.data))&&T(r,e)}(e=ui(t.data))&&T(r,e);var i=t;while(i=i.parent)i.data&&(e=ui(i.data))&&T(r,e);return r}var di,hi=/^--/,vi=/\s*!important$/,mi=function(t,n,e){if(hi.test(n))t.style.setProperty(n,e);else if(vi.test(e))t.style.setProperty(O(n),e.replace(vi,""),"important");else{var r=gi(n);if(Array.isArray(e))for(var o=0,i=e.length;o-1?n.split(wi).forEach((function(n){return t.classList.add(n)})):t.classList.add(n);else{var e=" "+(t.getAttribute("class")||"")+" ";e.indexOf(" "+n+" ")<0&&t.setAttribute("class",(e+n).trim())}}function xi(t,n){if(n&&(n=n.trim()))if(t.classList)n.indexOf(" ")>-1?n.split(wi).forEach((function(n){return t.classList.remove(n)})):t.classList.remove(n),t.classList.length||t.removeAttribute("class");else{var e=" "+(t.getAttribute("class")||"")+" ",r=" "+n+" ";while(e.indexOf(r)>=0)e=e.replace(r," ");e=e.trim(),e?t.setAttribute("class",e):t.removeAttribute("class")}}function $i(t){if(t){if("object"===typeof t){var n={};return!1!==t.css&&T(n,Ci(t.name||"v")),T(n,t),n}return"string"===typeof t?Ci(t):void 0}}var Ci=w((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Oi=J&&!nt,Ai="transition",Si="animation",ji="transition",Ei="transitionend",Ti="animation",Mi="animationend";Oi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ji="WebkitTransition",Ei="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ti="WebkitAnimation",Mi="webkitAnimationEnd"));var Ii=J?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Pi(t){Ii((function(){Ii(t)}))}function Ni(t,n){var e=t._transitionClasses||(t._transitionClasses=[]);e.indexOf(n)<0&&(e.push(n),ki(t,n))}function Di(t,n){t._transitionClasses&&g(t._transitionClasses,n),xi(t,n)}function Fi(t,n,e){var r=Ri(t,n),o=r.type,i=r.timeout,a=r.propCount;if(!o)return e();var c=o===Ai?Ei:Mi,s=0,p=function(){t.removeEventListener(c,u),e()},u=function(n){n.target===t&&++s>=a&&p()};setTimeout((function(){s0&&(e=Ai,u=a,l=i.length):n===Si?p>0&&(e=Si,u=p,l=s.length):(u=Math.max(a,p),e=u>0?a>p?Ai:Si:null,l=e?e===Ai?i.length:s.length:0);var f=e===Ai&&Li.test(r[ji+"Property"]);return{type:e,timeout:u,propCount:l,hasTransform:f}}function Ui(t,n){while(t.length1}function qi(t,n){!0!==n.data.show&&Vi(n)}var Gi=J?{create:qi,activate:qi,remove:function(t,n){!0!==t.data.show?Bi(t,n):n()}}:{},Ki=[Ho,Go,ri,si,_i,Gi],Xi=Ki.concat(Uo),Ji=Mo({nodeOps:$o,modules:Xi});nt&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&oa(t,"input")}));var Zi={inserted:function(t,n,e,r){"select"===e.tag?(r.elm&&!r.elm._vOptions?kn(e,"postpatch",(function(){Zi.componentUpdated(t,n,e)})):Qi(t,n,e.context),t._vOptions=[].map.call(t.options,na)):("textarea"===e.tag||po(t.type))&&(t._vModifiers=n.modifiers,n.modifiers.lazy||(t.addEventListener("compositionstart",ea),t.addEventListener("compositionend",ra),t.addEventListener("change",ra),nt&&(t.vmodel=!0)))},componentUpdated:function(t,n,e){if("select"===e.tag){Qi(t,n,e.context);var r=t._vOptions,o=t._vOptions=[].map.call(t.options,na);if(o.some((function(t,n){return!D(t,r[n])}))){var i=t.multiple?n.value.some((function(t){return ta(t,o)})):n.value!==n.oldValue&&ta(n.value,o);i&&oa(t,"change")}}}};function Qi(t,n,e){Yi(t,n,e),(tt||et)&&setTimeout((function(){Yi(t,n,e)}),0)}function Yi(t,n,e){var r=n.value,o=t.multiple;if(!o||Array.isArray(r)){for(var i,a,c=0,s=t.options.length;c-1,a.selected!==i&&(a.selected=i);else if(D(na(a),r))return void(t.selectedIndex!==c&&(t.selectedIndex=c));o||(t.selectedIndex=-1)}}function ta(t,n){return n.every((function(n){return!D(n,t)}))}function na(t){return"_value"in t?t._value:t.value}function ea(t){t.target.composing=!0}function ra(t){t.target.composing&&(t.target.composing=!1,oa(t.target,"input"))}function oa(t,n){var e=document.createEvent("HTMLEvents");e.initEvent(n,!0,!0),t.dispatchEvent(e)}function ia(t){return!t.componentInstance||t.data&&t.data.transition?t:ia(t.componentInstance._vnode)}var aa={bind:function(t,n,e){var r=n.value;e=ia(e);var o=e.data&&e.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(e.data.show=!0,Vi(e,(function(){t.style.display=i}))):t.style.display=r?i:"none"},update:function(t,n,e){var r=n.value,o=n.oldValue;if(!r!==!o){e=ia(e);var i=e.data&&e.data.transition;i?(e.data.show=!0,r?Vi(e,(function(){t.style.display=t.__vOriginalDisplay})):Bi(e,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,n,e,r,o){o||(t.style.display=t.__vOriginalDisplay)}},ca={model:Zi,show:aa},sa={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function pa(t){var n=t&&t.componentOptions;return n&&n.Ctor.options.abstract?pa(xe(n.children)):t}function ua(t){var n={},e=t.$options;for(var r in e.propsData)n[r]=t[r];var o=e._parentListeners;for(var i in o)n[x(i)]=o[i];return n}function la(t,n){if(/\d-keep-alive$/.test(n.tag))return t("keep-alive",{props:n.componentOptions.propsData})}function fa(t){while(t=t.parent)if(t.data.transition)return!0}function da(t,n){return n.key===t.key&&n.tag===t.tag}var ha=function(t){return t.tag||ke(t)},va=function(t){return"show"===t.name},ma={name:"transition",props:sa,abstract:!0,render:function(t){var n=this,e=this.$slots.default;if(e&&(e=e.filter(ha),e.length)){0;var r=this.mode;0;var o=e[0];if(fa(this.$vnode))return o;var i=pa(o);if(!i)return o;if(this._leaving)return la(t,o);var a="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?a+"comment":a+i.tag:c(i.key)?0===String(i.key).indexOf(a)?i.key:a+i.key:i.key;var s=(i.data||(i.data={})).transition=ua(this),p=this._vnode,u=pa(p);if(i.data.directives&&i.data.directives.some(va)&&(i.data.show=!0),u&&u.data&&!da(i,u)&&!ke(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var l=u.data.transition=T({},s);if("out-in"===r)return this._leaving=!0,kn(l,"afterLeave",(function(){n._leaving=!1,n.$forceUpdate()})),la(t,o);if("in-out"===r){if(ke(i))return p;var f,d=function(){f()};kn(s,"afterEnter",d),kn(s,"enterCancelled",d),kn(l,"delayLeave",(function(t){f=t}))}}return o}}},ya=T({tag:String,moveClass:String},sa);delete ya.mode;var ga={props:ya,beforeMount:function(){var t=this,n=this._update;this._update=function(e,r){var o=Te(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),n.call(t,e,r)}},render:function(t){for(var n=this.tag||this.$vnode.data.tag||"span",e=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=ua(this),c=0;c=2)t.mixin({beforeCreate:r});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,e.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}},o="undefined"!==typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(t){o&&(t._devtoolHook=o,o.emit("vuex:init",t),o.on("vuex:travel-to-state",(function(n){t.replaceState(n)})),t.subscribe((function(t,n){o.emit("vuex:mutation",t,n)})))}function a(t,n){Object.keys(t).forEach((function(e){return n(t[e],e)}))}function c(t){return null!==t&&"object"===typeof t}function s(t){return t&&"function"===typeof t.then}var p=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var e=t.state;this.state=("function"===typeof e?e():e)||{}},u={namespaced:{configurable:!0}};u.namespaced.get=function(){return!!this._rawModule.namespaced},p.prototype.addChild=function(t,n){this._children[t]=n},p.prototype.removeChild=function(t){delete this._children[t]},p.prototype.getChild=function(t){return this._children[t]},p.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},p.prototype.forEachChild=function(t){a(this._children,t)},p.prototype.forEachGetter=function(t){this._rawModule.getters&&a(this._rawModule.getters,t)},p.prototype.forEachAction=function(t){this._rawModule.actions&&a(this._rawModule.actions,t)},p.prototype.forEachMutation=function(t){this._rawModule.mutations&&a(this._rawModule.mutations,t)},Object.defineProperties(p.prototype,u);var l=function(t){this.register([],t,!1)};function f(t,n,e){if(n.update(e),e.modules)for(var r in e.modules){if(!n.getChild(r))return void 0;f(t.concat(r),n.getChild(r),e.modules[r])}}l.prototype.get=function(t){return t.reduce((function(t,n){return t.getChild(n)}),this.root)},l.prototype.getNamespace=function(t){var n=this.root;return t.reduce((function(t,e){return n=n.getChild(e),t+(n.namespaced?e+"/":"")}),"")},l.prototype.update=function(t){f([],this.root,t)},l.prototype.register=function(t,n,e){var r=this;void 0===e&&(e=!0);var o=new p(n,e);if(0===t.length)this.root=o;else{var i=this.get(t.slice(0,-1));i.addChild(t[t.length-1],o)}n.modules&&a(n.modules,(function(n,o){r.register(t.concat(o),n,e)}))},l.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),e=t[t.length-1];n.getChild(e).runtime&&n.removeChild(e)};var d;var h=function(t){var n=this;void 0===t&&(t={}),!d&&"undefined"!==typeof window&&window.Vue&&S(window.Vue);var e=t.plugins;void 0===e&&(e=[]);var r=t.strict;void 0===r&&(r=!1);var o=t.state;void 0===o&&(o={}),"function"===typeof o&&(o=o()||{}),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new l(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new d;var a=this,c=this,s=c.dispatch,p=c.commit;this.dispatch=function(t,n){return s.call(a,t,n)},this.commit=function(t,n,e){return p.call(a,t,n,e)},this.strict=r,b(this,o,[],this._modules.root),g(this,o),e.forEach((function(t){return t(n)})),d.config.devtools&&i(this)},v={state:{configurable:!0}};function m(t,n){return n.indexOf(t)<0&&n.push(t),function(){var e=n.indexOf(t);e>-1&&n.splice(e,1)}}function y(t,n){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var e=t.state;b(t,e,[],t._modules.root,!0),g(t,e,n)}function g(t,n,e){var r=t._vm;t.getters={};var o=t._wrappedGetters,i={};a(o,(function(n,e){i[e]=function(){return n(t)},Object.defineProperty(t.getters,e,{get:function(){return t._vm[e]},enumerable:!0})}));var c=d.config.silent;d.config.silent=!0,t._vm=new d({data:{$$state:n},computed:i}),d.config.silent=c,t.strict&&C(t),r&&(e&&t._withCommit((function(){r._data.$$state=null})),d.nextTick((function(){return r.$destroy()})))}function b(t,n,e,r,o){var i=!e.length,a=t._modules.getNamespace(e);if(r.namespaced&&(t._modulesNamespaceMap[a]=r),!i&&!o){var c=O(n,e.slice(0,-1)),s=e[e.length-1];t._withCommit((function(){d.set(c,s,r.state)}))}var p=r.context=_(t,a,e);r.forEachMutation((function(n,e){var r=a+e;k(t,r,n,p)})),r.forEachAction((function(n,e){var r=n.root?e:a+e,o=n.handler||n;x(t,r,o,p)})),r.forEachGetter((function(n,e){var r=a+e;$(t,r,n,p)})),r.forEachChild((function(r,i){b(t,n,e.concat(i),r,o)}))}function _(t,n,e){var r=""===n,o={dispatch:r?t.dispatch:function(e,r,o){var i=A(e,r,o),a=i.payload,c=i.options,s=i.type;return c&&c.root||(s=n+s),t.dispatch(s,a)},commit:r?t.commit:function(e,r,o){var i=A(e,r,o),a=i.payload,c=i.options,s=i.type;c&&c.root||(s=n+s),t.commit(s,a,c)}};return Object.defineProperties(o,{getters:{get:r?function(){return t.getters}:function(){return w(t,n)}},state:{get:function(){return O(t.state,e)}}}),o}function w(t,n){var e={},r=n.length;return Object.keys(t.getters).forEach((function(o){if(o.slice(0,r)===n){var i=o.slice(r);Object.defineProperty(e,i,{get:function(){return t.getters[o]},enumerable:!0})}})),e}function k(t,n,e,r){var o=t._mutations[n]||(t._mutations[n]=[]);o.push((function(n){e.call(t,r.state,n)}))}function x(t,n,e,r){var o=t._actions[n]||(t._actions[n]=[]);o.push((function(n,o){var i=e.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},n,o);return s(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(n){throw t._devtoolHook.emit("vuex:error",n),n})):i}))}function $(t,n,e,r){t._wrappedGetters[n]||(t._wrappedGetters[n]=function(t){return e(r.state,r.getters,t.state,t.getters)})}function C(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function O(t,n){return n.length?n.reduce((function(t,n){return t[n]}),t):t}function A(t,n,e){return c(t)&&t.type&&(e=n,n=t,t=t.type),{type:t,payload:n,options:e}}function S(t){d&&t===d||(d=t,r(d))}v.state.get=function(){return this._vm._data.$$state},v.state.set=function(t){0},h.prototype.commit=function(t,n,e){var r=this,o=A(t,n,e),i=o.type,a=o.payload,c=(o.options,{type:i,payload:a}),s=this._mutations[i];s&&(this._withCommit((function(){s.forEach((function(t){t(a)}))})),this._subscribers.forEach((function(t){return t(c,r.state)})))},h.prototype.dispatch=function(t,n){var e=this,r=A(t,n),o=r.type,i=r.payload,a={type:o,payload:i},c=this._actions[o];if(c)return this._actionSubscribers.forEach((function(t){return t(a,e.state)})),c.length>1?Promise.all(c.map((function(t){return t(i)}))):c[0](i)},h.prototype.subscribe=function(t){return m(t,this._subscribers)},h.prototype.subscribeAction=function(t){return m(t,this._actionSubscribers)},h.prototype.watch=function(t,n,e){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),n,e)},h.prototype.replaceState=function(t){var n=this;this._withCommit((function(){n._vm._data.$$state=t}))},h.prototype.registerModule=function(t,n,e){void 0===e&&(e={}),"string"===typeof t&&(t=[t]),this._modules.register(t,n),b(this,this.state,t,this._modules.get(t),e.preserveState),g(this,this.state)},h.prototype.unregisterModule=function(t){var n=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var e=O(n.state,t.slice(0,-1));d.delete(e,t[t.length-1])})),y(this)},h.prototype.hotUpdate=function(t){this._modules.update(t),y(this,!0)},h.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n},Object.defineProperties(h.prototype,v);var j=N((function(t,n){var e={};return P(n).forEach((function(n){var r=n.key,o=n.val;e[r]=function(){var n=this.$store.state,e=this.$store.getters;if(t){var r=D(this.$store,"mapState",t);if(!r)return;n=r.context.state,e=r.context.getters}return"function"===typeof o?o.call(this,n,e):n[o]},e[r].vuex=!0})),e})),E=N((function(t,n){var e={};return P(n).forEach((function(n){var r=n.key,o=n.val;e[r]=function(){var n=[],e=arguments.length;while(e--)n[e]=arguments[e];var r=this.$store.commit;if(t){var i=D(this.$store,"mapMutations",t);if(!i)return;r=i.context.commit}return"function"===typeof o?o.apply(this,[r].concat(n)):r.apply(this.$store,[o].concat(n))}})),e})),T=N((function(t,n){var e={};return P(n).forEach((function(n){var r=n.key,o=n.val;o=t+o,e[r]=function(){if(!t||D(this.$store,"mapGetters",t))return this.$store.getters[o]},e[r].vuex=!0})),e})),M=N((function(t,n){var e={};return P(n).forEach((function(n){var r=n.key,o=n.val;e[r]=function(){var n=[],e=arguments.length;while(e--)n[e]=arguments[e];var r=this.$store.dispatch;if(t){var i=D(this.$store,"mapActions",t);if(!i)return;r=i.context.dispatch}return"function"===typeof o?o.apply(this,[r].concat(n)):r.apply(this.$store,[o].concat(n))}})),e})),I=function(t){return{mapState:j.bind(null,t),mapGetters:T.bind(null,t),mapMutations:E.bind(null,t),mapActions:M.bind(null,t)}};function P(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(n){return{key:n,val:t[n]}}))}function N(t){return function(n,e){return"string"!==typeof n?(e=n,n=""):"/"!==n.charAt(n.length-1)&&(n+="/"),t(n,e)}}function D(t,n,e){var r=t._modulesNamespaceMap[e];return r}var F={Store:h,install:S,version:"3.0.1",mapState:j,mapMutations:E,mapGetters:T,mapActions:M,createNamespacedHelpers:I};n["b"]=F},"34ac":function(t,n,e){var r=e("9520"),o=e("1368"),i=e("1a8c"),a=e("dc57"),c=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,p=Function.prototype,u=Object.prototype,l=p.toString,f=u.hasOwnProperty,d=RegExp("^"+l.call(f).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(t){if(!i(t)||o(t))return!1;var n=r(t)?d:s;return n.test(a(t))}t.exports=h},3698:function(t,n){function e(t,n){return null==t?void 0:t[n]}t.exports=e},3729:function(t,n,e){var r=e("9e69"),o=e("00fd"),i=e("29f3"),a="[object Null]",c="[object Undefined]",s=r?r.toStringTag:void 0;function p(t){return null==t?void 0===t?c:a:s&&s in Object(t)?o(t):i(t)}t.exports=p},"3b4a":function(t,n,e){var r=e("0b07"),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(n){}}();t.exports=o},"408c":function(t,n,e){var r=e("2b3e"),o=function(){return r.Date.now()};t.exports=o},"4a68":function(t,n){var e="Expected a function";function r(t,n,r){if("function"!=typeof t)throw new TypeError(e);return setTimeout((function(){t.apply(void 0,r)}),n)}t.exports=r},"585a":function(t,n,e){(function(n){var e="object"==typeof n&&n&&n.Object===Object&&n;t.exports=e}).call(this,e("c8ba"))},"72f0":function(t,n){function e(t){return function(){return t}}t.exports=e},"80b0":function(t,n,e){var r=e("4a68"),o=e("100e"),i=o((function(t,n){return r(t,1,n)}));t.exports=i},"85e3":function(t,n){function e(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}t.exports=e},9520:function(t,n,e){var r=e("3729"),o=e("1a8c"),i="[object AsyncFunction]",a="[object Function]",c="[object GeneratorFunction]",s="[object Proxy]";function p(t){if(!o(t))return!1;var n=r(t);return n==a||n==c||n==i||n==s}t.exports=p},"9e69":function(t,n,e){var r=e("2b3e"),o=r.Symbol;t.exports=o},a454:function(t,n,e){var r=e("72f0"),o=e("3b4a"),i=e("cd9d"),a=o?function(t,n){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(n),writable:!0})}:i;t.exports=a},b047:function(t,n,e){var r=e("1a8c"),o=e("408c"),i=e("b4b0"),a="Expected a function",c=Math.max,s=Math.min;function p(t,n,e){var p,u,l,f,d,h,v=0,m=!1,y=!1,g=!0;if("function"!=typeof t)throw new TypeError(a);function b(n){var e=p,r=u;return p=u=void 0,v=n,f=t.apply(r,e),f}function _(t){return v=t,d=setTimeout(x,n),m?b(t):f}function w(t){var e=t-h,r=t-v,o=n-e;return y?s(o,l-r):o}function k(t){var e=t-h,r=t-v;return void 0===h||e>=n||e<0||y&&r>=l}function x(){var t=o();if(k(t))return $(t);d=setTimeout(x,w(t))}function $(t){return d=void 0,g&&p?b(t):(p=u=void 0,f)}function C(){void 0!==d&&clearTimeout(d),v=0,p=h=u=d=void 0}function O(){return void 0===d?f:$(o())}function A(){var t=o(),e=k(t);if(p=arguments,u=this,h=t,e){if(void 0===d)return _(h);if(y)return d=setTimeout(x,n),b(h)}return void 0===d&&(d=setTimeout(x,n)),f}return n=i(n)||0,r(e)&&(m=!!e.leading,y="maxWait"in e,l=y?c(i(e.maxWait)||0,n):l,g="trailing"in e?!!e.trailing:g),A.cancel=C,A.flush=O,A}t.exports=p},b4b0:function(t,n,e){var r=e("1a8c"),o=e("ffd6"),i=NaN,a=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,p=/^0o[0-7]+$/i,u=parseInt;function l(t){if("number"==typeof t)return t;if(o(t))return i;if(r(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=r(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var e=s.test(t);return e||p.test(t)?u(t.slice(2),e?2:8):c.test(t)?i:+t}t.exports=l},baf5:function(t,n){function e(){return"serviceWorker"in navigator&&("https:"===window.location.protocol||"localhost"===window.location.hostname||0===window.location.hostname.indexOf("127."))}function r(t){if(t||(t={}),e()){var n=navigator.serviceWorker.register("/sw.js",{}),r=function(t){var n,e,r,i=t.installing||t.waiting;i&&!i.onstatechange&&(t.active?(a(),r=a):(c(),r=c),n=!0,t.waiting&&(e=!0),i.onstatechange=r);function a(){switch(i.state){case"redundant":o("onUpdateFailed"),i.onstatechange=null;break;case"installing":n||o("onUpdating");break;case"installed":e||o("onUpdateReady");break;case"activated":o("onUpdated"),i.onstatechange=null;break}}function c(){switch(i.state){case"redundant":i.onstatechange=null;break;case"installing":break;case"installed":break;case"activated":o("onInstalled"),i.onstatechange=null;break}}},o=function(n){"function"===typeof t[n]&&t[n]({source:"ServiceWorker"})};n.then((function(t){t&&(r(t),t.onupdatefound=function(){r(t)})})).catch((function(t){return o("onError"),Promise.reject(t)}))}else;}function o(t,n){e()&&navigator.serviceWorker.getRegistration().then((function(e){e&&e.waiting?(e.waiting.postMessage({action:"skipWaiting"}),t&&t()):n&&n()}))}function i(){e()&&navigator.serviceWorker.getRegistration().then((function(t){if(t)return t.update()}))}n.install=r,n.applyUpdate=o,n.update=i},c1c9:function(t,n,e){var r=e("a454"),o=e("f3c1"),i=o(r);t.exports=i},c8ba:function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(r){"object"===typeof window&&(e=window)}t.exports=e},cd9d:function(t,n){function e(t){return t}t.exports=e},da03:function(t,n,e){var r=e("2b3e"),o=r["__core-js_shared__"];t.exports=o},dc57:function(t,n){var e=Function.prototype,r=e.toString;function o(t){if(null!=t){try{return r.call(t)}catch(n){}try{return t+""}catch(n){}}return""}t.exports=o},f3c1:function(t,n){var e=800,r=16,o=Date.now;function i(t){var n=0,i=0;return function(){var a=o(),c=r-(a-i);if(i=a,c>0){if(++n>=e)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}t.exports=i},ffd6:function(t,n,e){var r=e("3729"),o=e("1310"),i="[object Symbol]";function a(t){return"symbol"==typeof t||o(t)&&r(t)==i}t.exports=a}}]); +//# sourceMappingURL=chunk-vendors.92f77a18.js.map \ No newline at end of file