From 7c43239766d1d54f4e5acda14e6f8e82c0f8db3b Mon Sep 17 00:00:00 2001 From: RedDragonling Date: Tue, 20 Aug 2024 14:42:39 +0000 Subject: [PATCH] deploy: 781fcce9e6a3112e6319ddb5eb39b6ce12822014 --- assets/bath-DN9fMIbK.png | Bin 0 -> 15446 bytes assets/{index-C8vn2WN-.js => index-eFYrz7QN.js} | 2 +- assets/medCSit1-DK76idiW.png | Bin 43814 -> 0 bytes assets/medCSit1-DW7hrtCR.png | Bin 0 -> 28142 bytes assets/nail-DQywZI44.png | Bin 0 -> 26425 bytes assets/wax-0MmrR8EU.png | Bin 0 -> 43017 bytes index.html | 2 +- 7 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 assets/bath-DN9fMIbK.png rename assets/{index-C8vn2WN-.js => index-eFYrz7QN.js} (88%) delete mode 100644 assets/medCSit1-DK76idiW.png create mode 100644 assets/medCSit1-DW7hrtCR.png create mode 100644 assets/nail-DQywZI44.png create mode 100644 assets/wax-0MmrR8EU.png diff --git a/assets/bath-DN9fMIbK.png b/assets/bath-DN9fMIbK.png new file mode 100644 index 0000000000000000000000000000000000000000..73f75250dc4bda6ae26b211cd37d973856e2ad91 GIT binary patch literal 15446 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 literal 0 HcmV?d00001 diff --git a/assets/index-C8vn2WN-.js b/assets/index-eFYrz7QN.js similarity index 88% rename from assets/index-C8vn2WN-.js rename to assets/index-eFYrz7QN.js index cad5f80..67a9129 100644 --- a/assets/index-C8vn2WN-.js +++ b/assets/index-eFYrz7QN.js @@ -1 +1 @@ -function t(t,e){for(var i=0;is[e]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}!function(){const t=document.createElement("link").relList;if(!(t&&t.supports&&t.supports("modulepreload"))){for(const t of document.querySelectorAll('link[rel="modulepreload"]'))e(t);new MutationObserver((t=>{for(const i of t)if("childList"===i.type)for(const t of i.addedNodes)"LINK"===t.tagName&&"modulepreload"===t.rel&&e(t)})).observe(document,{childList:!0,subtree:!0})}function e(t){if(t.ep)return;t.ep=!0;const e=function(t){const e={};return t.integrity&&(e.integrity=t.integrity),t.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),"use-credentials"===t.crossOrigin?e.credentials="include":"anonymous"===t.crossOrigin?e.credentials="omit":e.credentials="same-origin",e}(t);fetch(t.href,e)}}();"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var i,s,r,n,o,a,h,l,u,c,d,p,f,g={};function m(t,e,i,s){return new(i||(i=Promise))((function(e,r){function n(t){try{a(s.next(t))}catch(e){r(e)}}function o(t){try{a(s.throw(t))}catch(e){r(e)}}function a(t){var s;t.done?e(t.value):(s=t.value,s instanceof i?s:new i((function(t){t(s)}))).then(n,o)}a((s=s.apply(t,[])).next())}))}function v(){return _("extensions.getStats")}"function"==typeof SuppressedError&&SuppressedError;var y=Object.freeze({__proto__:null,broadcast:function(t,e){return _("extensions.broadcast",{event:t,data:e})},dispatch:function(t,e,i){return new Promise(((s,r)=>m(this,0,void 0,(function*(){const n=yield v();if(n.loaded.includes(t))if(n.connected.includes(t))try{const r=yield _("extensions.dispatch",{extensionId:t,event:e,data:i});s(r)}catch(o){r(o)}else a={method:"extensions.dispatch",data:{extensionId:t,event:e,data:i},resolve:s,reject:r},(o=t)in A?A[o].push(a):A[o]=[a];else r({code:"NE_EX_EXTNOTL",message:`${t} is not loaded`});var o,a}))))},getStats:v});function x(t,e){return window.addEventListener(t,e),Promise.resolve({success:!0,message:"Event listener added"})}function w(t,e){const i=new CustomEvent(t,{detail:e});return window.dispatchEvent(i),Promise.resolve({success:!0,message:"Message dispatched"})}function T(t){const e=window.atob(t),i=e.length,s=new Uint8Array(i);for(let r=0;r{if((null==S?void 0:S.readyState)!=WebSocket.OPEN)return r={method:t,data:e,resolve:i,reject:s},void C.push(r);var r;const n="10000000-1000-4000-8000-100000000000".replace(/[018]/g,(t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))),o=R();E[n]={resolve:i,reject:s},S.send(JSON.stringify({id:n,method:t,data:e,accessToken:o}))}))}function P(t){return m(this,0,void 0,(function*(){for(;t.length>0;){const i=t.shift();try{const t=yield _(i.method,i.data);i.resolve(t)}catch(e){i.reject(e)}}}))}function R(){return window.NL_TOKEN||sessionStorage.getItem("NL_TOKEN")||""}function M(t,e){return _("filesystem.writeBinaryFile",{path:t,data:b(e)})}var k=Object.freeze({__proto__:null,appendBinaryFile:function(t,e){return _("filesystem.appendBinaryFile",{path:t,data:b(e)})},appendFile:function(t,e){return _("filesystem.appendFile",{path:t,data:e})},copy:function(t,e,i){return _("filesystem.copy",Object.assign({source:t,destination:e},i))},createDirectory:function(t){return _("filesystem.createDirectory",{path:t})},createWatcher:function(t){return _("filesystem.createWatcher",{path:t})},getAbsolutePath:function(t){return _("filesystem.getAbsolutePath",{path:t})},getOpenedFileInfo:function(t){return _("filesystem.getOpenedFileInfo",{id:t})},getPathParts:function(t){return _("filesystem.getPathParts",{path:t})},getRelativePath:function(t,e){return _("filesystem.getRelativePath",{path:t,base:e})},getStats:function(t){return _("filesystem.getStats",{path:t})},getWatchers:function(){return _("filesystem.getWatchers")},move:function(t,e){return _("filesystem.move",{source:t,destination:e})},openFile:function(t){return _("filesystem.openFile",{path:t})},readBinaryFile:function(t,e){return new Promise(((i,s)=>{_("filesystem.readBinaryFile",Object.assign({path:t},e)).then((t=>{i(T(t))})).catch((t=>{s(t)}))}))},readDirectory:function(t,e){return _("filesystem.readDirectory",Object.assign({path:t},e))},readFile:function(t,e){return _("filesystem.readFile",Object.assign({path:t},e))},remove:function(t){return _("filesystem.remove",{path:t})},removeWatcher:function(t){return _("filesystem.removeWatcher",{id:t})},updateOpenedFile:function(t,e,i){return _("filesystem.updateOpenedFile",{id:t,event:e,data:i})},writeBinaryFile:M,writeFile:function(t,e){return _("filesystem.writeFile",{path:t,data:e})}});function L(t,e){return _("os.execCommand",Object.assign({command:t},e))}var O=Object.freeze({__proto__:null,execCommand:L,getEnv:function(t){return _("os.getEnv",{key:t})},getEnvs:function(){return _("os.getEnvs")},getPath:function(t){return _("os.getPath",{name:t})},getSpawnedProcesses:function(){return _("os.getSpawnedProcesses")},open:function(t){return _("os.open",{url:t})},setTray:function(t){return _("os.setTray",t)},showFolderDialog:function(t,e){return _("os.showFolderDialog",Object.assign({title:t},e))},showMessageBox:function(t,e,i,s){return _("os.showMessageBox",{title:t,content:e,choice:i,icon:s})},showNotification:function(t,e,i){return _("os.showNotification",{title:t,content:e,icon:i})},showOpenDialog:function(t,e){return _("os.showOpenDialog",Object.assign({title:t},e))},showSaveDialog:function(t,e){return _("os.showSaveDialog",Object.assign({title:t},e))},spawnProcess:function(t,e){return _("os.spawnProcess",{command:t,cwd:e})},updateSpawnedProcess:function(t,e,i){return _("os.updateSpawnedProcess",{id:t,event:e,data:i})}}),F=Object.freeze({__proto__:null,getArch:function(){return _("computer.getArch")},getCPUInfo:function(){return _("computer.getCPUInfo")},getDisplays:function(){return _("computer.getDisplays")},getKernelInfo:function(){return _("computer.getKernelInfo")},getMemoryInfo:function(){return _("computer.getMemoryInfo")},getMousePosition:function(){return _("computer.getMousePosition")},getOSInfo:function(){return _("computer.getOSInfo")}}),D=Object.freeze({__proto__:null,getData:function(t){return _("storage.getData",{key:t})},getKeys:function(){return _("storage.getKeys")},setData:function(t,e){return _("storage.setData",{key:t,data:e})}});function I(t,e){return _("debug.log",{message:t,type:e})}var B=Object.freeze({__proto__:null,log:I});function N(t){return _("app.exit",{code:t})}var U=Object.freeze({__proto__:null,broadcast:function(t,e){return _("app.broadcast",{event:t,data:e})},exit:N,getConfig:function(){return _("app.getConfig")},killProcess:function(){return _("app.killProcess")},readProcessInput:function(t){return _("app.readProcessInput",{readAll:t})},restartProcess:function(t){return new Promise((e=>m(this,0,void 0,(function*(){let i=window.NL_ARGS.reduce(((t,e)=>(e.includes(" ")&&(e=`"${e}"`),t+" "+e)),"");(null==t?void 0:t.args)&&(i+=" "+t.args),yield L(i,{background:!0}),N(),e()}))))},writeProcessError:function(t){return _("app.writeProcessError",{data:t})},writeProcessOutput:function(t){return _("app.writeProcessOutput",{data:t})}});const Y=new WeakMap;function z(t,e){return _("window.move",{x:t,y:e})}function X(){return _("window.getSize")}var G=Object.freeze({__proto__:null,center:function(){return _("window.center")},create:function(t,e){return new Promise(((i,s)=>{function r(t){return"string"!=typeof t||(t=t.trim()).includes(" ")&&(t=`"${t}"`),t}e=Object.assign(Object.assign({},e),{useSavedState:!1});let n=window.NL_ARGS.reduce(((t,e,i)=>((e.includes("--path=")||e.includes("--debug-mode")||e.includes("--load-dir-res")||0==i)&&(t+=" "+r(e)),t)),"");n+=" --url="+r(t);for(let t in e)"processArgs"!=t&&(n+=` --window${"-"+t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}=${r(e[t])}`);e&&e.processArgs&&(n+=" "+e.processArgs),L(n,{background:!0}).then((t=>{i(t)})).catch((t=>{s(t)}))}))},exitFullScreen:function(){return _("window.exitFullScreen")},focus:function(){return _("window.focus")},getPosition:function(){return _("window.getPosition")},getSize:X,getTitle:function(){return _("window.getTitle")},hide:function(){return _("window.hide")},isFullScreen:function(){return _("window.isFullScreen")},isMaximized:function(){return _("window.isMaximized")},isVisible:function(){return _("window.isVisible")},maximize:function(){return _("window.maximize")},minimize:function(){return _("window.minimize")},move:z,setAlwaysOnTop:function(t){return _("window.setAlwaysOnTop",{onTop:t})},setDraggableRegion:function(t){return new Promise(((e,i)=>{const s=t instanceof Element?t:document.getElementById(t);let r=0,n=0,o=0,a=!1,h=performance.now();if(!s)return i({code:"NE_WD_DOMNOTF",message:"Unable to find DOM element"});if(Y.has(s))return i({code:"NE_WD_ALRDREL",message:"This DOM element is already an active draggable region"});function l(t){return m(this,0,void 0,(function*(){if(a){const e=performance.now(),i=e-h;if(i<5)return;return h=e-(i-5),void(yield z(t.screenX-r,t.screenY-n))}o=Math.sqrt(t.movementX*t.movementX+t.movementY*t.movementY),o>=10&&(a=!0,s.setPointerCapture(t.pointerId))}))}function u(t){0===t.button&&(r=t.clientX,n=t.clientY,s.addEventListener("pointermove",l))}function c(t){s.removeEventListener("pointermove",l),s.releasePointerCapture(t.pointerId)}s.addEventListener("pointerdown",u),s.addEventListener("pointerup",c),Y.set(s,{pointerdown:u,pointerup:c}),e({success:!0,message:"Draggable region was activated"})}))},setFullScreen:function(){return _("window.setFullScreen")},setIcon:function(t){return _("window.setIcon",{icon:t})},setSize:function(t){return new Promise(((e,i)=>m(this,0,void 0,(function*(){let s=yield X();_("window.setSize",t=Object.assign(Object.assign({},s),t)).then((t=>{e(t)})).catch((t=>{i(t)}))}))))},setTitle:function(t){return _("window.setTitle",{title:t})},show:function(){return _("window.show")},unmaximize:function(){return _("window.unmaximize")},unsetDraggableRegion:function(t){return new Promise(((e,i)=>{const s=t instanceof Element?t:document.getElementById(t);if(!s)return i({code:"NE_WD_DOMNOTF",message:"Unable to find DOM element"});if(!Y.has(s))return i({code:"NE_WD_NOTDRRE",message:"DOM element is not an active draggable region"});const{pointerdown:r,pointerup:n}=Y.get(s);s.removeEventListener("pointerdown",r),s.removeEventListener("pointerup",n),Y.delete(s),e({success:!0,message:"Draggable region was deactivated"})}))}}),W=Object.freeze({__proto__:null,broadcast:function(t,e){return _("events.broadcast",{event:t,data:e})},dispatch:w,off:function(t,e){return window.removeEventListener(t,e),Promise.resolve({success:!0,message:"Event listener removed"})},on:x});let V=null;var H=Object.freeze({__proto__:null,checkForUpdates:function(t){return new Promise(((e,i)=>m(this,0,void 0,(function*(){if(!t)return i({code:"NE_RT_NATRTER",message:"Missing require parameter: url"});try{const r=yield fetch(t);V=JSON.parse(yield r.text()),(s=V).applicationId&&s.applicationId==window.NL_APPID&&s.version&&s.resourcesURL?e(V):i({code:"NE_UP_CUPDMER",message:"Invalid update manifest or mismatching applicationId"})}catch(r){i({code:"NE_UP_CUPDERR",message:"Unable to fetch update manifest"})}var s}))))},install:function(){return new Promise(((t,e)=>m(this,0,void 0,(function*(){if(!V)return e({code:"NE_UP_UPDNOUF",message:"No update manifest loaded"});try{const e=yield fetch(V.resourcesURL),i=yield e.arrayBuffer();yield M(window.NL_PATH+"/resources.neu",i),t({success:!0,message:"Update installed. Restart the process to see updates"})}catch(i){e({code:"NE_UP_UPDINER",message:"Update installation error"})}}))))}}),j=Object.freeze({__proto__:null,clear:function(){return _("clipboard.clear")},getFormat:function(){return _("clipboard.getFormat")},readImage:function(){return new Promise(((t,e)=>{_("clipboard.readImage").then((e=>{e&&(e.data=T(e.data)),t(e)})).catch((t=>{e(t)}))}))},readText:function(){return _("clipboard.readText")},writeImage:function(t){const e=Object.assign({},t);return(null==t?void 0:t.data)&&(e.data=b(t.data)),_("clipboard.writeImage",e)},writeText:function(t){return _("clipboard.writeText",{data:t})}}),q=Object.freeze({__proto__:null,getMethods:function(){return _("custom.getMethods")}});let K=!1;f=g.app=U,p=g.clipboard=j,d=g.computer=F,c=g.custom=q,u=g.debug=B,l=g.events=W,h=g.extensions=y,a=g.filesystem=k,o=g.init=function(t={}){if(t=Object.assign({exportCustomMethods:!0},t),!K){if(function(){window.NL_TOKEN&&sessionStorage.setItem("NL_TOKEN",window.NL_TOKEN);const t=R().split(".")[1];S=new WebSocket(`ws://${window.location.hostname}:${window.NL_PORT}?connectToken=${t}`),function(){x("ready",(()=>m(this,0,void 0,(function*(){if(yield P(C),!window.NL_EXTENABLED)return;const t=yield v();for(const e of t.connected)w("extensionReady",e)})))),x("extClientConnect",(t=>{w("extensionReady",t.detail)})),window.NL_EXTENABLED&&x("extensionReady",(t=>m(this,0,void 0,(function*(){t.detail in A&&(yield P(A[t.detail]),delete A[t.detail])}))))}(),function(){S.addEventListener("message",(t=>{var e,i,s;const r=JSON.parse(t.data);r.id&&r.id in E?((null===(e=r.data)||void 0===e?void 0:e.error)?(E[r.id].reject(r.data.error),"NE_RT_INVTOKN"==r.data.error.code&&(S.close(),document.body.innerText="",document.write("NE_RT_INVTOKN: Neutralinojs application cannot execute native methods since NL_TOKEN is invalid."))):(null===(i=r.data)||void 0===i?void 0:i.success)&&E[r.id].resolve(r.data.hasOwnProperty("returnValue")?r.data.returnValue:r.data),delete E[r.id]):r.event&&("openedFile"==r.event&&"dataBinary"==(null===(s=null==r?void 0:r.data)||void 0===s?void 0:s.action)&&(r.data.data=T(r.data.data)),w(r.event,r.data))})),S.addEventListener("open",(t=>m(this,0,void 0,(function*(){w("ready")})))),S.addEventListener("close",(t=>m(this,0,void 0,(function*(){w("serverOffline",{code:"NE_CL_NSEROFF",message:"Neutralino server is offline. Try restarting the application"})})))),S.addEventListener("error",(t=>m(this,0,void 0,(function*(){document.body.innerText="",document.write("NE_CL_IVCTOKN: Neutralinojs application cannot connect with the framework core using NL_TOKEN.")}))))}()}(),window.NL_ARGS.find((t=>"--neu-dev-auto-reload"==t))&&x("neuDev_reloadApp",(()=>m(this,0,void 0,(function*(){yield I("Reloading the application..."),location.reload()})))),t.exportCustomMethods&&window.NL_CMETHODS&&window.NL_CMETHODS.length>0)for(const t of window.NL_CMETHODS)Neutralino.custom[t]=(...e)=>{let i={};for(const[t,s]of e.entries())i="object"!=typeof s||Array.isArray(s)||null==s?Object.assign(Object.assign({},i),{["arg"+t]:s}):Object.assign(Object.assign({},i),s);return _("custom."+t,i)};window.NL_CVERSION="5.3.0",window.NL_CCOMMIT="425c526c318342e0e5d0f17caceef2a53049eda4",K=!0}},n=g.os=O,r=g.storage=D,s=g.updater=H,i=g.window=G;const Z=t({__proto__:null,get app(){return f},get clipboard(){return p},get computer(){return d},get custom(){return c},get debug(){return u},default:g,get events(){return l},get extensions(){return h},get filesystem(){return a},get init(){return o},get os(){return n},get storage(){return r},get updater(){return s},get window(){return i}},[g]);var J;window.NL_TOKEN&&(o(),(J=Z).window.center(),J.events.on("windowClose",(()=>{J.app.exit()})));var Q={exports:{}};const $=e(Q.exports=(()=>(()=>{var t={50792:t=>{var e=Object.prototype.hasOwnProperty,i="~";function s(){}function r(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function n(t,e,s,n,o){if("function"!=typeof s)throw new TypeError("The listener must be a function");var a=new r(s,n||t,o),h=i?i+e:e;return t._events[h]?t._events[h].fn?t._events[h]=[t._events[h],a]:t._events[h].push(a):(t._events[h]=a,t._eventsCount++),t}function o(t,e){0==--t._eventsCount?t._events=new s:delete t._events[e]}function a(){this._events=new s,this._eventsCount=0}Object.create&&(s.prototype=Object.create(null),(new s).__proto__||(i=!1)),a.prototype.eventNames=function(){var t,s,r=[];if(0===this._eventsCount)return r;for(s in t=this._events)e.call(t,s)&&r.push(i?s.slice(1):s);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},a.prototype.listeners=function(t){var e=i?i+t:t,s=this._events[e];if(!s)return[];if(s.fn)return[s.fn];for(var r=0,n=s.length,o=new Array(n);r{var s=i(38829);t.exports=function(t,e,i,r){for(var n=t[0],o=1;o{var s=i(66979);t.exports=function(t,e,i,r,n){return s(t,"angle",e,i,r,n)}},60757:t=>{t.exports=function(t,e,i){for(var s=0;s{t.exports=function(t,e,i){void 0===i&&(i=0);for(var s=i;s{t.exports=function(t,e,i){void 0===i&&(i=0);for(var s=t.length-1;s>=i;s--){var r=t[s],n=!0;for(var o in e)r[o]!==e[o]&&(n=!1);if(n)return r}return null}},94420:(t,e,i)=>{var s=i(11879),r=i(60461),n=i(95540),o=i(29747),a=new(i(41481))({sys:{queueDepthSort:o,events:{once:o}}},0,0,1,1).setOrigin(0,0);t.exports=function(t,e){void 0===e&&(e={});var i=e.hasOwnProperty("width"),o=e.hasOwnProperty("height"),h=n(e,"width",-1),l=n(e,"height",-1),u=n(e,"cellWidth",1),c=n(e,"cellHeight",u),d=n(e,"position",r.TOP_LEFT),p=n(e,"x",0),f=n(e,"y",0),g=0,m=0,v=h*u,y=l*c;a.setPosition(p,f),a.setSize(u,c);for(var x=0;x{var s=i(66979);t.exports=function(t,e,i,r,n){return s(t,"alpha",e,i,r,n)}},67285:(t,e,i)=>{var s=i(66979);t.exports=function(t,e,i,r,n){return s(t,"x",e,i,r,n)}},9074:(t,e,i)=>{var s=i(66979);t.exports=function(t,e,i,r,n,o,a){return null==i&&(i=e),s(t,"x",e,r,o,a),s(t,"y",i,n,o,a)}},75222:(t,e,i)=>{var s=i(66979);t.exports=function(t,e,i,r,n){return s(t,"y",e,i,r,n)}},22983:t=>{t.exports=function(t,e,i,s){void 0===i&&(i=0),void 0===s&&(s=6.28);for(var r=i,n=(s-i)/t.length,o=e.x,a=e.y,h=e.radius,l=0;l{t.exports=function(t,e,i,s){void 0===i&&(i=0),void 0===s&&(s=6.28);for(var r=i,n=(s-i)/t.length,o=e.width/2,a=e.height/2,h=0;h{var s=i(15258),r=i(26708);t.exports=function(t,e,i){var n;n=i?r(e,i,t.length):s(e,t.length);for(var o=0;o{var s=i(14649),r=i(86003),n=i(49498);t.exports=function(t,e,i){void 0===i&&(i=0);var o=s(e,!1,t.length);i>0?r(o,i):i<0&&n(o,Math.abs(i));for(var a=0;a{var s=i(84993);t.exports=function(t,e,i){var r=s({x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2},i),n=s({x1:e.x2,y1:e.y2,x2:e.x3,y2:e.y3},i),o=s({x1:e.x3,y1:e.y3,x2:e.x1,y2:e.y1},i);r.pop(),n.pop(),o.pop();for(var a=(r=r.concat(n,o)).length/t.length,h=0,l=0;l{t.exports=function(t,e,i){for(var s=0;s{t.exports=function(t,e,i,s,r,n){var o;void 0===s&&(s=0),void 0===r&&(r=0),void 0===n&&(n=1);var a=0,h=t.length;if(1===n)for(o=r;o=0;o--)t[o][e]+=i+a*s,a++;return t}},43967:t=>{t.exports=function(t,e,i,s,r,n){var o;void 0===s&&(s=0),void 0===r&&(r=0),void 0===n&&(n=1);var a=0,h=t.length;if(1===n)for(o=r;o=0;o--)t[o][e]=i+a*s,a++;return t}},88926:(t,e,i)=>{var s=i(28176);t.exports=function(t,e){for(var i=0;i{var s=i(24820);t.exports=function(t,e){for(var i=0;i{var s=i(65822);t.exports=function(t,e){for(var i=0;i{var s=i(26597);t.exports=function(t,e){for(var i=0;i{var s=i(90260);t.exports=function(t,e){for(var i=0;i{var s=i(66979);t.exports=function(t,e,i,r,n){return s(t,"rotation",e,i,r,n)}},91051:(t,e,i)=>{var s=i(1163),r=i(20339);t.exports=function(t,e,i){for(var n=e.x,o=e.y,a=0;a{var s=i(1163);t.exports=function(t,e,i,r){var n=e.x,o=e.y;if(0===r)return t;for(var a=0;a{var s=i(66979);t.exports=function(t,e,i,r,n){return s(t,"scaleX",e,i,r,n)}},94868:(t,e,i)=>{var s=i(66979);t.exports=function(t,e,i,r,n,o,a){return null==i&&(i=e),s(t,"scaleX",e,r,o,a),s(t,"scaleY",i,n,o,a)}},95532:(t,e,i)=>{var s=i(66979);t.exports=function(t,e,i,r,n){return s(t,"scaleY",e,i,r,n)}},8689:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n){return s(t,"alpha",e,i,r,n)}},2645:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r){return s(t,"blendMode",e,0,i,r)}},32372:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n){return s(t,"depth",e,i,r,n)}},85373:t=>{t.exports=function(t,e,i){for(var s=0;s{var s=i(43967);t.exports=function(t,e,i,r,n,o,a){return null==i&&(i=e),s(t,"originX",e,r,o,a),s(t,"originY",i,n,o,a),t.forEach((function(t){t.updateDisplayOrigin()})),t}},79939:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n){return s(t,"rotation",e,i,r,n)}},2699:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n,o,a){return null==i&&(i=e),s(t,"scaleX",e,r,o,a),s(t,"scaleY",i,n,o,a)}},98739:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n){return s(t,"scaleX",e,i,r,n)}},98476:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n){return s(t,"scaleY",e,i,r,n)}},6207:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n,o,a){return null==i&&(i=e),s(t,"scrollFactorX",e,r,o,a),s(t,"scrollFactorY",i,n,o,a)}},6607:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n){return s(t,"scrollFactorX",e,i,r,n)}},72248:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n){return s(t,"scrollFactorY",e,i,r,n)}},14036:t=>{t.exports=function(t,e,i,s,r){for(var n=0;n{var s=i(43967);t.exports=function(t,e,i,r){return s(t,"visible",e,0,i,r)}},77597:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n){return s(t,"x",e,i,r,n)}},83194:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n,o,a){return null==i&&(i=e),s(t,"x",e,r,o,a),s(t,"y",i,n,o,a)}},67678:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n){return s(t,"y",e,i,r,n)}},35850:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r,n){var o,a;void 0===r&&(r=0),void 0===n&&(n=new s);var h=t.length;if(1===h)o=t[0].x,a=t[0].y,t[0].x=e,t[0].y=i;else{var l=1,u=0;0===r&&(u=h-1,l=h-2),o=t[u].x,a=t[u].y,t[u].x=e,t[u].y=i;for(var c=0;c=h||-1===l)){var d=t[l],p=d.x,f=d.y;d.x=o,d.y=a,o=p,a=f,0===r?l--:l++}}return n.x=o,n.y=a,n}},8628:(t,e,i)=>{var s=i(33680);t.exports=function(t){return s(t)}},21837:(t,e,i)=>{var s=i(7602);t.exports=function(t,e,i,r,n){void 0===n&&(n=!1);var o,a=Math.abs(r-i)/t.length;if(n)for(o=0;o{var s=i(54261);t.exports=function(t,e,i,r,n){void 0===n&&(n=!1);var o,a=Math.abs(r-i)/t.length;if(n)for(o=0;o{t.exports=function(t,e,i,s,r){if(void 0===r&&(r=!1),0===t.length)return t;if(1===t.length)return r?t[0][e]+=(s+i)/2:t[0][e]=(s+i)/2,t;var n,o=Math.abs(s-i)/(t.length-1);if(r)for(n=0;n{t.exports=function(t){for(var e=0;e{var s=i(15994);t.exports=function(t,e,i){void 0===i&&(i=0);for(var r=0;r{t.exports={AlignTo:i(11517),Angle:i(80318),Call:i(60757),GetFirst:i(69927),GetLast:i(32265),GridAlign:i(94420),IncAlpha:i(41721),IncX:i(67285),IncXY:i(9074),IncY:i(75222),PlaceOnCircle:i(22983),PlaceOnEllipse:i(95253),PlaceOnLine:i(88505),PlaceOnRectangle:i(41346),PlaceOnTriangle:i(11575),PlayAnimation:i(29953),PropertyValueInc:i(66979),PropertyValueSet:i(43967),RandomCircle:i(88926),RandomEllipse:i(33286),RandomLine:i(96e3),RandomRectangle:i(28789),RandomTriangle:i(97154),Rotate:i(20510),RotateAround:i(91051),RotateAroundDistance:i(76332),ScaleX:i(61619),ScaleXY:i(94868),ScaleY:i(95532),SetAlpha:i(8689),SetBlendMode:i(2645),SetDepth:i(32372),SetHitArea:i(85373),SetOrigin:i(81583),SetRotation:i(79939),SetScale:i(2699),SetScaleX:i(98739),SetScaleY:i(98476),SetScrollFactor:i(6207),SetScrollFactorX:i(6607),SetScrollFactorY:i(72248),SetTint:i(14036),SetVisible:i(50159),SetX:i(77597),SetXY:i(83194),SetY:i(67678),ShiftPosition:i(35850),Shuffle:i(8628),SmootherStep:i(21910),SmoothStep:i(21837),Spread:i(62054),ToggleVisible:i(79815),WrapInRectangle:i(39665)}},42099:(t,e,i)=>{var s=i(45319),r=i(83419),n=i(74943),o=i(81957),a=i(41138),h=i(35154),l=i(90126),u=new r({initialize:function(t,e,i){this.manager=t,this.key=e,this.type="frame",this.frames=this.getFrames(t.textureManager,h(i,"frames",[]),h(i,"defaultTextureKey",null),h(i,"sortFrames",!0)),this.frameRate=h(i,"frameRate",null),this.duration=h(i,"duration",null),this.msPerFrame,this.skipMissedFrames=h(i,"skipMissedFrames",!0),this.delay=h(i,"delay",0),this.repeat=h(i,"repeat",0),this.repeatDelay=h(i,"repeatDelay",0),this.yoyo=h(i,"yoyo",!1),this.showBeforeDelay=h(i,"showBeforeDelay",!1),this.showOnStart=h(i,"showOnStart",!1),this.hideOnComplete=h(i,"hideOnComplete",!1),this.randomFrame=h(i,"randomFrame",!1),this.paused=!1,this.calculateDuration(this,this.getTotalFrames(),this.duration,this.frameRate),this.manager.on&&(this.manager.on(n.PAUSE_ALL,this.pause,this),this.manager.on(n.RESUME_ALL,this.resume,this))},getTotalFrames:function(){return this.frames.length},calculateDuration:function(t,e,i,s){null===i&&null===s?(t.frameRate=24,t.duration=24/e*1e3):i&&null===s?(t.duration=i,t.frameRate=e/(i/1e3)):(t.frameRate=s,t.duration=e/s*1e3),t.msPerFrame=1e3/t.frameRate},addFrame:function(t){return this.addFrameAt(this.frames.length,t)},addFrameAt:function(t,e){var i=this.getFrames(this.manager.textureManager,e);if(i.length>0){if(0===t)this.frames=i.concat(this.frames);else if(t===this.frames.length)this.frames=this.frames.concat(i);else{var s=this.frames.slice(0,t),r=this.frames.slice(t);this.frames=s.concat(i,r)}this.updateFrameSequence()}return this},checkFrame:function(t){return t>=0&&t0){n.isLast=!0,n.nextFrame=c[0],c[0].prevFrame=n;var y=1/(c.length-1);for(o=0;o0?t.inReverse&&t.forward?t.forward=!1:this.repeatAnimation(t):t.complete():this.updateAndGetNextTick(t,e.nextFrame)},handleYoyoFrame:function(t,e){if(e||(e=!1),t.inReverse===!e&&t.repeatCounter>0)return(0===t.repeatDelay||t.pendingRepeat)&&(t.forward=e),void this.repeatAnimation(t);if(t.inReverse===e||0!==t.repeatCounter){t.forward=e;var i=e?t.currentFrame.nextFrame:t.currentFrame.prevFrame;this.updateAndGetNextTick(t,i)}else t.complete()},getLastFrame:function(){return this.frames[this.frames.length-1]},previousFrame:function(t){var e=t.currentFrame;e.isFirst?t.yoyo?this.handleYoyoFrame(t,!0):t.repeatCounter>0?(t.inReverse&&!t.forward||(t.forward=!0),this.repeatAnimation(t)):t.complete():this.updateAndGetNextTick(t,e.prevFrame)},updateAndGetNextTick:function(t,e){t.setCurrentFrame(e),this.getNextTick(t)},removeFrame:function(t){var e=this.frames.indexOf(t);return-1!==e&&this.removeFrameAt(e),this},removeFrameAt:function(t){return this.frames.splice(t,1),this.updateFrameSequence(),this},repeatAnimation:function(t){if(2===t._pendingStop){if(0===t._pendingStopValue)return t.stop();t._pendingStopValue--}t.repeatDelay>0&&!t.pendingRepeat?(t.pendingRepeat=!0,t.accumulator-=t.nextTick,t.nextTick+=t.repeatDelay):(t.repeatCounter--,t.forward?t.setCurrentFrame(t.currentFrame.nextFrame):t.setCurrentFrame(t.currentFrame.prevFrame),t.isPlaying&&(this.getNextTick(t),t.handleRepeat()))},toJSON:function(){var t={key:this.key,type:this.type,frames:[],frameRate:this.frameRate,duration:this.duration,skipMissedFrames:this.skipMissedFrames,delay:this.delay,repeat:this.repeat,repeatDelay:this.repeatDelay,yoyo:this.yoyo,showBeforeDelay:this.showBeforeDelay,showOnStart:this.showOnStart,randomFrame:this.randomFrame,hideOnComplete:this.hideOnComplete};return this.frames.forEach((function(e){t.frames.push(e.toJSON())})),t},updateFrameSequence:function(){for(var t,e=this.frames.length,i=1/(e-1),s=0;s1?(t.isLast=!0,t.prevFrame=this.frames[e-2],t.nextFrame=this.frames[0]):e>1&&(t.prevFrame=this.frames[s-1],t.nextFrame=this.frames[s+1]);return this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},destroy:function(){this.manager.off&&(this.manager.off(n.PAUSE_ALL,this.pause,this),this.manager.off(n.RESUME_ALL,this.resume,this)),this.manager.remove(this.key);for(var t=0;t{var s=new(i(83419))({initialize:function(t,e,i,s,r){void 0===r&&(r=!1),this.textureKey=t,this.textureFrame=e,this.index=i,this.frame=s,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0,this.isKeyFrame=r},toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration,keyframe:this.isKeyFrame}},destroy:function(){this.frame=void 0}});t.exports=s},60848:(t,e,i)=>{var s=i(42099),r=i(83419),n=i(90330),o=i(50792),a=i(74943),h=i(8443),l=i(95540),u=i(35154),c=i(36383),d=i(20283),p=i(41836),f=new r({Extends:o,initialize:function(t){o.call(this),this.game=t,this.textureManager=null,this.globalTimeScale=1,this.anims=new n,this.mixes=new n,this.paused=!1,this.name="AnimationManager",t.events.once(h.BOOT,this.boot,this)},boot:function(){this.textureManager=this.game.textures,this.game.events.once(h.DESTROY,this.destroy,this)},addMix:function(t,e,i){var s=this.anims,r=this.mixes,n="string"==typeof t?t:t.key,o="string"==typeof e?e:e.key;if(s.has(n)&&s.has(o)){var a=r.get(n);a||(a={}),a[o]=i,r.set(n,a)}return this},removeMix:function(t,e){var i=this.mixes,s="string"==typeof t?t:t.key,r=i.get(s);if(r)if(e){var n="string"==typeof e?e:e.key;r.hasOwnProperty(n)&&delete r[n]}else e||i.delete(s);return this},getMix:function(t,e){var i=this.mixes,s="string"==typeof t?t:t.key,r="string"==typeof e?e:e.key,n=i.get(s);return n&&n.hasOwnProperty(r)?n[r]:0},add:function(t,e){return this.anims.has(t)?(console.warn("Animation key exists: "+t),this):(e.key=t,this.anims.set(t,e),this.emit(a.ADD_ANIMATION,t,e),this)},exists:function(t){return this.anims.has(t)},createFromAseprite:function(t,e,i){var s=[],r=this.game.cache.json.get(t);if(!r)return console.warn("No Aseprite data found for: "+t),s;var n=this,o=u(r,"meta",null),a=u(r,"frames",null);return o&&a&&u(o,"frameTags",[]).forEach((function(r){var o=[],h=l(r,"name",null),u=l(r,"from",0),d=l(r,"to",0),p=l(r,"direction","forward");if(h&&(!e||e&&e.indexOf(h)>-1)){for(var f=0,g=u;g<=d;g++){var m=g.toString(),v=a[m];if(v){var y=l(v,"duration",c.MAX_SAFE_INTEGER);o.push({key:t,frame:m,duration:y}),f+=y}}"reverse"===p&&(o=o.reverse());var x,w={key:h,frames:o,duration:f,yoyo:"pingpong"===p};i?i.anims&&(x=i.anims.create(w)):x=n.create(w),x&&s.push(x)}})),s},create:function(t){var e=t.key,i=!1;return e&&((i=this.get(e))?console.warn("AnimationManager key already exists: "+e):(i=new s(this,e,t),this.anims.set(e,i),this.emit(a.ADD_ANIMATION,e,i))),i},fromJSON:function(t,e){void 0===e&&(e=!1),e&&this.anims.clear(),"string"==typeof t&&(t=JSON.parse(t));var i=[];if(t.hasOwnProperty("anims")&&Array.isArray(t.anims)){for(var s=0;s{var s=i(42099),r=i(30976),n=i(83419),o=i(90330),a=i(74943),h=i(95540),l=new n({initialize:function(t){this.parent=t,this.animationManager=t.scene.sys.anims,this.animationManager.on(a.REMOVE_ANIMATION,this.globalRemove,this),this.textureManager=this.animationManager.textureManager,this.anims=null,this.isPlaying=!1,this.hasStarted=!1,this.currentAnim=null,this.currentFrame=null,this.nextAnim=null,this.nextAnimsQueue=[],this.timeScale=1,this.frameRate=0,this.duration=0,this.msPerFrame=0,this.skipMissedFrames=!0,this.randomFrame=!1,this.delay=0,this.repeat=0,this.repeatDelay=0,this.yoyo=!1,this.showBeforeDelay=!1,this.showOnStart=!1,this.hideOnComplete=!1,this.forward=!0,this.inReverse=!1,this.accumulator=0,this.nextTick=0,this.delayCounter=0,this.repeatCounter=0,this.pendingRepeat=!1,this._paused=!1,this._wasPlaying=!1,this._pendingStop=0,this._pendingStopValue},chain:function(t){var e=this.parent;if(void 0===t)return this.nextAnimsQueue.length=0,this.nextAnim=null,e;Array.isArray(t)||(t=[t]);for(var i=0;in&&(l=0),this.randomFrame&&(l=r(0,n-1));var u=s.frames[l];0!==l||this.forward||(u=s.getLastFrame()),this.currentFrame=u}else console.warn("Missing animation: "+i);return this.parent},pause:function(t){return this._paused||(this._paused=!0,this._wasPlaying=this.isPlaying,this.isPlaying=!1),void 0!==t&&this.setCurrentFrame(t),this.parent},resume:function(t){return this._paused&&(this._paused=!1,this.isPlaying=this._wasPlaying),void 0!==t&&this.setCurrentFrame(t),this.parent},playAfterDelay:function(t,e){if(this.isPlaying){var i=this.nextAnim,s=this.nextAnimsQueue;i&&s.unshift(i),this.nextAnim=t,this._pendingStop=1,this._pendingStopValue=e}else this.delayCounter=e,this.play(t,!0);return this.parent},playAfterRepeat:function(t,e){if(void 0===e&&(e=1),this.isPlaying){var i=this.nextAnim,s=this.nextAnimsQueue;i&&s.unshift(i),-1!==this.repeatCounter&&e>this.repeatCounter&&(e=this.repeatCounter),this.nextAnim=t,this._pendingStop=2,this._pendingStopValue=e}else this.play(t);return this.parent},play:function(t,e){void 0===e&&(e=!1);var i=this.currentAnim,s=this.parent,r="string"==typeof t?t:t.key;if(e&&this.isPlaying&&i.key===r)return s;if(i&&this.isPlaying){var n=this.animationManager.getMix(i.key,t);if(n>0)return this.playAfterDelay(t,n)}return this.forward=!0,this.inReverse=!1,this._paused=!1,this._wasPlaying=!0,this.startAnimation(t)},playReverse:function(t,e){void 0===e&&(e=!1);var i="string"==typeof t?t:t.key;return e&&this.isPlaying&&this.currentAnim.key===i?this.parent:(this.forward=!1,this.inReverse=!0,this._paused=!1,this._wasPlaying=!0,this.startAnimation(t))},startAnimation:function(t){this.load(t);var e=this.currentAnim,i=this.parent;return e?(this.repeatCounter=-1===this.repeat?Number.MAX_VALUE:this.repeat,e.getFirstTick(this),this.isPlaying=!0,this.pendingRepeat=!1,this.hasStarted=!1,this._pendingStop=0,this._pendingStopValue=0,this._paused=!1,this.delayCounter+=this.delay,0===this.delayCounter?this.handleStart():this.showBeforeDelay&&this.setCurrentFrame(this.currentFrame),i):i},handleStart:function(){this.showOnStart&&this.parent.setVisible(!0),this.setCurrentFrame(this.currentFrame),this.hasStarted=!0,this.emitEvents(a.ANIMATION_START)},handleRepeat:function(){this.pendingRepeat=!1,this.emitEvents(a.ANIMATION_REPEAT)},handleStop:function(){this._pendingStop=0,this.isPlaying=!1,this.emitEvents(a.ANIMATION_STOP)},handleComplete:function(){this._pendingStop=0,this.isPlaying=!1,this.hideOnComplete&&this.parent.setVisible(!1),this.emitEvents(a.ANIMATION_COMPLETE,a.ANIMATION_COMPLETE_KEY)},emitEvents:function(t,e){var i=this.currentAnim;if(i){var s=this.currentFrame,r=this.parent,n=s.textureFrame;r.emit(t,i,s,r,n),e&&r.emit(e+i.key,i,s,r,n)}},reverse:function(){return this.isPlaying&&(this.inReverse=!this.inReverse,this.forward=!this.forward),this.parent},getProgress:function(){var t=this.currentFrame;if(!t)return 0;var e=t.progress;return this.inReverse&&(e*=-1),e},setProgress:function(t){return this.forward||(t=1-t),this.setCurrentFrame(this.currentAnim.getFrameByProgress(t)),this.parent},setRepeat:function(t){return this.repeatCounter=-1===t?Number.MAX_VALUE:t,this.parent},globalRemove:function(t,e){void 0===e&&(e=this.currentAnim),this.isPlaying&&e.key===this.currentAnim.key&&(this.stop(),this.setCurrentFrame(this.currentAnim.frames[0]))},restart:function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var i=this.currentAnim,s=this.parent;return i?(e&&(this.repeatCounter=-1===this.repeat?Number.MAX_VALUE:this.repeat),i.getFirstTick(this),this.emitEvents(a.ANIMATION_RESTART),this.isPlaying=!0,this.pendingRepeat=!1,this.hasStarted=!t,this._pendingStop=0,this._pendingStopValue=0,this._paused=!1,this.setCurrentFrame(i.frames[0]),this.parent):s},complete:function(){if(this._pendingStop=0,this.isPlaying=!1,this.currentAnim&&this.handleComplete(),this.nextAnim){var t=this.nextAnim;this.nextAnim=this.nextAnimsQueue.length>0?this.nextAnimsQueue.shift():null,this.play(t)}return this.parent},stop:function(){if(this._pendingStop=0,this.isPlaying=!1,this.delayCounter=0,this.currentAnim&&this.handleStop(),this.nextAnim){var t=this.nextAnim;this.nextAnim=this.nextAnimsQueue.shift(),this.play(t)}return this.parent},stopAfterDelay:function(t){return this._pendingStop=1,this._pendingStopValue=t,this.parent},stopAfterRepeat:function(t){return void 0===t&&(t=1),-1!==this.repeatCounter&&t>this.repeatCounter&&(t=this.repeatCounter),this._pendingStop=2,this._pendingStopValue=t,this.parent},stopOnFrame:function(t){return this._pendingStop=3,this._pendingStopValue=t,this.parent},getTotalFrames:function(){return this.currentAnim?this.currentAnim.getTotalFrames():0},update:function(t,e){var i=this.currentAnim;if(this.isPlaying&&i&&!i.paused){if(this.accumulator+=e*this.timeScale*this.animationManager.globalTimeScale,1===this._pendingStop&&(this._pendingStopValue-=e,this._pendingStopValue<=0))return this.stop();if(this.hasStarted){if(this.accumulator>=this.nextTick&&(this.forward?i.nextFrame(this):i.previousFrame(this),this.isPlaying&&0===this._pendingStop&&this.skipMissedFrames&&this.accumulator>this.nextTick)){var s=0;do{this.forward?i.nextFrame(this):i.previousFrame(this),s++}while(this.isPlaying&&this.accumulator>this.nextTick&&s<60)}}else this.accumulator>=this.delayCounter&&(this.accumulator-=this.delayCounter,this.handleStart())}},setCurrentFrame:function(t){var e=this.parent;return this.currentFrame=t,e.texture=t.frame.texture,e.frame=t.frame,e.isCropped&&e.frame.updateCropUVs(e._crop,e.flipX,e.flipY),t.setAlpha&&(e.alpha=t.alpha),e.setSizeToFrame(),e._originComponent&&(t.frame.customPivot?e.setOrigin(t.frame.pivotX,t.frame.pivotY):e.updateDisplayOrigin()),this.isPlaying&&this.hasStarted&&(this.emitEvents(a.ANIMATION_UPDATE),3===this._pendingStop&&this._pendingStopValue===t&&this.stop()),e},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},get:function(t){return this.anims?this.anims.get(t):null},exists:function(t){return!!this.anims&&this.anims.has(t)},create:function(t){var e=t.key,i=!1;return e&&((i=this.get(e))?console.warn("Animation key already exists: "+e):(i=new s(this,e,t),this.anims||(this.anims=new o),this.anims.set(e,i))),i},createFromAseprite:function(t,e){return this.animationManager.createFromAseprite(t,e,this.parent)},generateFrameNames:function(t,e){return this.animationManager.generateFrameNames(t,e)},generateFrameNumbers:function(t,e){return this.animationManager.generateFrameNumbers(t,e)},remove:function(t){var e=this.get(t);return e&&(this.currentAnim===e&&this.stop(),this.anims.delete(t)),e},destroy:function(){this.animationManager.off(a.REMOVE_ANIMATION,this.globalRemove,this),this.anims&&this.anims.clear(),this.animationManager=null,this.parent=null,this.nextAnim=null,this.nextAnimsQueue.length=0,this.currentAnim=null,this.currentFrame=null},isPaused:{get:function(){return this._paused}}});t.exports=l},57090:t=>{t.exports="add"},25312:t=>{t.exports="animationcomplete"},89580:t=>{t.exports="animationcomplete-"},52860:t=>{t.exports="animationrepeat"},63850:t=>{t.exports="animationrestart"},99085:t=>{t.exports="animationstart"},28087:t=>{t.exports="animationstop"},1794:t=>{t.exports="animationupdate"},52562:t=>{t.exports="pauseall"},57953:t=>{t.exports="remove"},68339:t=>{t.exports="resumeall"},74943:(t,e,i)=>{t.exports={ADD_ANIMATION:i(57090),ANIMATION_COMPLETE:i(25312),ANIMATION_COMPLETE_KEY:i(89580),ANIMATION_REPEAT:i(52860),ANIMATION_RESTART:i(63850),ANIMATION_START:i(99085),ANIMATION_STOP:i(28087),ANIMATION_UPDATE:i(1794),PAUSE_ALL:i(52562),REMOVE_ANIMATION:i(57953),RESUME_ALL:i(68339)}},60421:(t,e,i)=>{t.exports={Animation:i(42099),AnimationFrame:i(41138),AnimationManager:i(60848),AnimationState:i(9674),Events:i(74943)}},2161:(t,e,i)=>{var s=i(83419),r=i(90330),n=i(50792),o=i(24736),a=new s({initialize:function(){this.entries=new r,this.events=new n},add:function(t,e){return this.entries.set(t,e),this.events.emit(o.ADD,this,t,e),this},has:function(t){return this.entries.has(t)},exists:function(t){return this.entries.has(t)},get:function(t){return this.entries.get(t)},remove:function(t){var e=this.get(t);return e&&(this.entries.delete(t),this.events.emit(o.REMOVE,this,t,e.data)),this},getKeys:function(){return this.entries.keys()},destroy:function(){this.entries.clear(),this.events.removeAllListeners(),this.entries=null,this.events=null}});t.exports=a},24047:(t,e,i)=>{var s=i(2161),r=i(83419),n=i(8443),o=new r({initialize:function(t){this.game=t,this.binary=new s,this.bitmapFont=new s,this.json=new s,this.physics=new s,this.shader=new s,this.audio=new s,this.video=new s,this.text=new s,this.html=new s,this.obj=new s,this.tilemap=new s,this.xml=new s,this.custom={},this.game.events.once(n.DESTROY,this.destroy,this)},addCustom:function(t){return this.custom.hasOwnProperty(t)||(this.custom[t]=new s),this.custom[t]},destroy:function(){for(var t=["binary","bitmapFont","json","physics","shader","audio","video","text","html","obj","tilemap","xml"],e=0;e{t.exports="add"},59261:t=>{t.exports="remove"},24736:(t,e,i)=>{t.exports={ADD:i(51464),REMOVE:i(59261)}},83388:(t,e,i)=>{t.exports={BaseCache:i(2161),CacheManager:i(24047),Events:i(24736)}},71911:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(39506),o=i(50792),a=i(19715),h=i(87841),l=i(61340),u=i(80333),c=i(26099),d=new s({Extends:o,Mixins:[r.AlphaSingle,r.Visible],initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),o.call(this),this.scene,this.sceneManager,this.scaleManager,this.cameraManager,this.id=0,this.name="",this.roundPixels=!1,this.useBounds=!1,this.worldView=new h,this.dirty=!0,this._x=t,this._y=e,this._width=i,this._height=s,this._bounds=new h,this._scrollX=0,this._scrollY=0,this._zoomX=1,this._zoomY=1,this._rotation=0,this.matrix=new l,this.transparent=!0,this.backgroundColor=u("rgba(0,0,0,0)"),this.disableCull=!1,this.culledObjects=[],this.midPoint=new c(i/2,s/2),this.originX=.5,this.originY=.5,this._customViewport=!1,this.mask=null,this._maskCamera=null,this.renderList=[],this.isSceneCamera=!0},addToRenderList:function(t){this.renderList.push(t)},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this},getScroll:function(t,e,i){void 0===i&&(i=new c);var s=.5*this.width,r=.5*this.height;return i.x=t-s,i.y=e-r,this.useBounds&&(i.x=this.clampX(i.x),i.y=this.clampY(i.y)),i},centerOnX:function(t){var e=.5*this.width;return this.midPoint.x=t,this.scrollX=t-e,this.useBounds&&(this.scrollX=this.clampX(this.scrollX)),this},centerOnY:function(t){var e=.5*this.height;return this.midPoint.y=t,this.scrollY=t-e,this.useBounds&&(this.scrollY=this.clampY(this.scrollY)),this},centerOn:function(t,e){return this.centerOnX(t),this.centerOnY(e),this},centerToBounds:function(){if(this.useBounds){var t=this._bounds,e=.5*this.width,i=.5*this.height;this.midPoint.set(t.centerX,t.centerY),this.scrollX=t.centerX-e,this.scrollY=t.centerY-i}return this},centerToSize:function(){return this.scrollX=.5*this.width,this.scrollY=.5*this.height,this},cull:function(t){if(this.disableCull)return t;var e=this.matrix.matrix,i=e[0],s=e[1],r=e[2],n=e[3],o=i*n-s*r;if(!o)return t;var a=e[4],h=e[5],l=this.scrollX,u=this.scrollY,c=this.width,d=this.height,p=this.y,f=p+d,g=this.x,m=g+c,v=this.culledObjects,y=t.length;o=1/o,v.length=0;for(var x=0;xg&&S*i+E*r+ap&&S*s+E*n+hr&&(t=r),t},clampY:function(t){var e=this._bounds,i=this.displayHeight,s=e.y+(i-this.height)/2,r=Math.max(s,s+e.height-i);return tr&&(t=r),t},removeBounds:function(){return this.useBounds=!1,this.dirty=!0,this._bounds.setEmpty(),this},setAngle:function(t){return void 0===t&&(t=0),this.rotation=n(t),this},setBackgroundColor:function(t){return void 0===t&&(t="rgba(0,0,0,0)"),this.backgroundColor=u(t),this.transparent=0===this.backgroundColor.alpha,this},setBounds:function(t,e,i,s,r){return void 0===r&&(r=!1),this._bounds.setTo(t,e,i,s),this.dirty=!0,this.useBounds=!0,r?this.centerToBounds():(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},getBounds:function(t){void 0===t&&(t=new h);var e=this._bounds;return t.setTo(e.x,e.y,e.width,e.height),t},setName:function(t){return void 0===t&&(t=""),this.name=t,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setRotation:function(t){return void 0===t&&(t=0),this.rotation=t,this},setRoundPixels:function(t){return this.roundPixels=t,this},setScene:function(t,e){void 0===e&&(e=!0),this.scene&&this._customViewport&&this.sceneManager.customViewports--,this.scene=t,this.isSceneCamera=e;var i=t.sys;return this.sceneManager=i.game.scene,this.scaleManager=i.scale,this.cameraManager=i.cameras,this.updateSystem(),this},setScroll:function(t,e){return void 0===e&&(e=t),this.scrollX=t,this.scrollY=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},setViewport:function(t,e,i,s){return this.x=t,this.y=e,this.width=i,this.height=s,this},setZoom:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),0===t&&(t=.001),0===e&&(e=.001),this.zoomX=t,this.zoomY=e,this},setMask:function(t,e){return void 0===e&&(e=!0),this.mask=t,this._maskCamera=e?this.cameraManager.default:this,this},clearMask:function(t){return void 0===t&&(t=!1),t&&this.mask&&this.mask.destroy(),this.mask=null,this},toJSON:function(){var t={name:this.name,x:this.x,y:this.y,width:this.width,height:this.height,zoom:this.zoom,rotation:this.rotation,roundPixels:this.roundPixels,scrollX:this.scrollX,scrollY:this.scrollY,backgroundColor:this.backgroundColor.rgba};return this.useBounds&&(t.bounds={x:this._bounds.x,y:this._bounds.y,width:this._bounds.width,height:this._bounds.height}),t},update:function(){},setIsSceneCamera:function(t){return this.isSceneCamera=t,this},updateSystem:function(){if(this.scaleManager&&this.isSceneCamera){var t=0!==this._x||0!==this._y||this.scaleManager.width!==this._width||this.scaleManager.height!==this._height,e=this.sceneManager;t&&!this._customViewport?e.customViewports++:!t&&this._customViewport&&e.customViewports--,this.dirty=!0,this._customViewport=t}},destroy:function(){this.emit(a.DESTROY,this),this.removeAllListeners(),this.matrix.destroy(),this.culledObjects=[],this._customViewport&&this.sceneManager.customViewports--,this.renderList=[],this._bounds=null,this.scene=null,this.scaleManager=null,this.sceneManager=null,this.cameraManager=null},x:{get:function(){return this._x},set:function(t){this._x=t,this.updateSystem()}},y:{get:function(){return this._y},set:function(t){this._y=t,this.updateSystem()}},width:{get:function(){return this._width},set:function(t){this._width=t,this.updateSystem()}},height:{get:function(){return this._height},set:function(t){this._height=t,this.updateSystem()}},scrollX:{get:function(){return this._scrollX},set:function(t){t!==this._scrollX&&(this._scrollX=t,this.dirty=!0)}},scrollY:{get:function(){return this._scrollY},set:function(t){t!==this._scrollY&&(this._scrollY=t,this.dirty=!0)}},zoom:{get:function(){return(this._zoomX+this._zoomY)/2},set:function(t){this._zoomX=t,this._zoomY=t,this.dirty=!0}},zoomX:{get:function(){return this._zoomX},set:function(t){this._zoomX=t,this.dirty=!0}},zoomY:{get:function(){return this._zoomY},set:function(t){this._zoomY=t,this.dirty=!0}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=t,this.dirty=!0}},centerX:{get:function(){return this.x+.5*this.width}},centerY:{get:function(){return this.y+.5*this.height}},displayWidth:{get:function(){return this.width/this.zoomX}},displayHeight:{get:function(){return this.height/this.zoomY}}});t.exports=d},38058:(t,e,i)=>{var s=i(71911),r=i(67502),n=i(45319),o=i(83419),a=i(31401),h=i(20052),l=i(19715),u=i(28915),c=i(87841),d=i(26099),p=new o({Extends:s,Mixins:[a.PostPipeline],initialize:function(t,e,i,r){s.call(this,t,e,i,r),this.initPostPipeline(),this.inputEnabled=!0,this.fadeEffect=new h.Fade(this),this.flashEffect=new h.Flash(this),this.shakeEffect=new h.Shake(this),this.panEffect=new h.Pan(this),this.rotateToEffect=new h.RotateTo(this),this.zoomEffect=new h.Zoom(this),this.lerp=new d(1,1),this.followOffset=new d,this.deadzone=null,this._follow=null},setDeadzone:function(t,e){if(void 0===t)this.deadzone=null;else{if(this.deadzone?(this.deadzone.width=t,this.deadzone.height=e):this.deadzone=new c(0,0,t,e),this._follow){var i=this.width/2,s=this.height/2,n=this._follow.x-this.followOffset.x,o=this._follow.y-this.followOffset.y;this.midPoint.set(n,o),this.scrollX=n-i,this.scrollY=o-s}r(this.deadzone,this.midPoint.x,this.midPoint.y)}return this},fadeIn:function(t,e,i,s,r,n){return this.fadeEffect.start(!1,t,e,i,s,!0,r,n)},fadeOut:function(t,e,i,s,r,n){return this.fadeEffect.start(!0,t,e,i,s,!0,r,n)},fadeFrom:function(t,e,i,s,r,n,o){return this.fadeEffect.start(!1,t,e,i,s,r,n,o)},fade:function(t,e,i,s,r,n,o){return this.fadeEffect.start(!0,t,e,i,s,r,n,o)},flash:function(t,e,i,s,r,n,o){return this.flashEffect.start(t,e,i,s,r,n,o)},shake:function(t,e,i,s,r){return this.shakeEffect.start(t,e,i,s,r)},pan:function(t,e,i,s,r,n,o){return this.panEffect.start(t,e,i,s,r,n,o)},rotateTo:function(t,e,i,s,r,n,o){return this.rotateToEffect.start(t,e,i,s,r,n,o)},zoomTo:function(t,e,i,s,r,n){return this.zoomEffect.start(t,e,i,s,r,n)},preRender:function(){this.renderList.length=0;var t=this.width,e=this.height,i=.5*t,s=.5*e,n=this.zoom,o=this.matrix,a=t*this.originX,h=e*this.originY,c=this._follow,d=this.deadzone,p=this.scrollX,f=this.scrollY;d&&r(d,this.midPoint.x,this.midPoint.y);var g=!1;if(c&&!this.panEffect.isRunning){var m=this.lerp,v=c.x-this.followOffset.x,y=c.y-this.followOffset.y;d?(vd.right&&(p=u(p,p+(v-d.right),m.x)),yd.bottom&&(f=u(f,f+(y-d.bottom),m.y))):(p=u(p,v-a,m.x),f=u(f,y-h,m.y)),g=!0}this.useBounds&&(p=this.clampX(p),f=this.clampY(f)),this.scrollX=p,this.scrollY=f;var x=p+i,w=f+s;this.midPoint.set(x,w);var T=t/n,b=e/n,S=Math.floor(x-T/2),E=Math.floor(w-b/2);this.worldView.setTo(S,E,T,b),o.applyITRS(Math.floor(this.x+a),Math.floor(this.y+h),this.rotation,n,n),o.translate(-a,-h),this.shakeEffect.preRender(),g&&this.emit(l.FOLLOW_UPDATE,this,c)},setLerp:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.lerp.set(t,e),this},setFollowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),this.followOffset.set(t,e),this},startFollow:function(t,e,i,s,r,o){void 0===e&&(e=!1),void 0===i&&(i=1),void 0===s&&(s=i),void 0===r&&(r=0),void 0===o&&(o=r),this._follow=t,this.roundPixels=e,i=n(i,0,1),s=n(s,0,1),this.lerp.set(i,s),this.followOffset.set(r,o);var a=this.width/2,h=this.height/2,l=t.x-r,u=t.y-o;return this.midPoint.set(l,u),this.scrollX=l-a,this.scrollY=u-h,this.useBounds&&(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},stopFollow:function(){return this._follow=null,this},resetFX:function(){return this.rotateToEffect.reset(),this.panEffect.reset(),this.shakeEffect.reset(),this.flashEffect.reset(),this.fadeEffect.reset(),this},update:function(t,e){this.visible&&(this.rotateToEffect.update(t,e),this.panEffect.update(t,e),this.zoomEffect.update(t,e),this.shakeEffect.update(t,e),this.flashEffect.update(t,e),this.fadeEffect.update(t,e))},destroy:function(){this.resetFX(),s.prototype.destroy.call(this),this._follow=null,this.deadzone=null}});t.exports=p},32743:(t,e,i)=>{var s=i(38058),r=i(83419),n=i(95540),o=i(37277),a=i(37303),h=i(97480),l=i(44594),u=new r({initialize:function(t){this.scene=t,this.systems=t.sys,this.roundPixels=t.sys.game.config.roundPixels,this.cameras=[],this.main,this.default,t.sys.events.once(l.BOOT,this.boot,this),t.sys.events.on(l.START,this.start,this)},boot:function(){var t=this.systems;t.settings.cameras?this.fromJSON(t.settings.cameras):this.add(),this.main=this.cameras[0],this.default=new s(0,0,t.scale.width,t.scale.height).setScene(this.scene),t.game.scale.on(h.RESIZE,this.onResize,this),this.systems.events.once(l.DESTROY,this.destroy,this)},start:function(){if(!this.main){var t=this.systems;t.settings.cameras?this.fromJSON(t.settings.cameras):this.add(),this.main=this.cameras[0]}var e=this.systems.events;e.on(l.UPDATE,this.update,this),e.once(l.SHUTDOWN,this.shutdown,this)},add:function(t,e,i,r,n,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.scene.sys.scale.width),void 0===r&&(r=this.scene.sys.scale.height),void 0===n&&(n=!1),void 0===o&&(o="");var a=new s(t,e,i,r);return a.setName(o),a.setScene(this.scene),a.setRoundPixels(this.roundPixels),a.id=this.getNextID(),this.cameras.push(a),n&&(this.main=a),a},addExisting:function(t,e){return void 0===e&&(e=!1),-1===this.cameras.indexOf(t)?(t.id=this.getNextID(),t.setRoundPixels(this.roundPixels),this.cameras.push(t),e&&(this.main=t),t):null},getNextID:function(){for(var t=this.cameras,e=1,i=0;i<32;i++){for(var s=!1,r=0;r0){n.preRender();var o=this.getVisibleChildren(e.getChildren(),n);t.render(i,o,n)}}},getVisibleChildren:function(t,e){return t.filter((function(t){return t.willRender(e)}))},resetAll:function(){for(var t=0;t{var s=i(45319),r=i(83419),n=i(19715),o=new r({initialize:function(t){this.camera=t,this.isRunning=!1,this.isComplete=!1,this.direction=!0,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,r,o,a,h){if(void 0===t&&(t=!0),void 0===e&&(e=1e3),void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o=!1),void 0===a&&(a=null),void 0===h&&(h=this.camera.scene),!o&&this.isRunning)return this.camera;this.isRunning=!0,this.isComplete=!1,this.duration=e,this.direction=t,this.progress=0,this.red=i,this.green=s,this.blue=r,this.alpha=t?Number.MIN_VALUE:1,this._elapsed=0,this._onUpdate=a,this._onUpdateScope=h;var l=t?n.FADE_OUT_START:n.FADE_IN_START;return this.camera.emit(l,this.camera,this,e,i,s,r),this.camera},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=s(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{var s=i(45319),r=i(83419),n=i(19715),o=new r({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=1,this.progress=0,this._elapsed=0,this._alpha,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,r,o,a){return void 0===t&&(t=250),void 0===e&&(e=255),void 0===i&&(i=255),void 0===s&&(s=255),void 0===r&&(r=!1),void 0===o&&(o=null),void 0===a&&(a=this.camera.scene),!r&&this.isRunning||(this.isRunning=!0,this.duration=t,this.progress=0,this.red=e,this.green=i,this.blue=s,this._alpha=this.alpha,this._elapsed=0,this._onUpdate=o,this._onUpdateScope=a,this.camera.emit(n.FLASH_START,this.camera,this,t,e,i,s)),this.camera},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=s(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{var s=i(45319),r=i(83419),n=i(62640),o=i(19715),a=i(26099),h=new r({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.source=new a,this.current=new a,this.destination=new a,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,r,a,h){void 0===i&&(i=1e3),void 0===s&&(s=n.Linear),void 0===r&&(r=!1),void 0===a&&(a=null),void 0===h&&(h=this.camera.scene);var l=this.camera;return!r&&this.isRunning||(this.isRunning=!0,this.duration=i,this.progress=0,this.source.set(l.scrollX,l.scrollY),this.destination.set(t,e),l.getScroll(t,e,this.current),"string"==typeof s&&n.hasOwnProperty(s)?this.ease=n[s]:"function"==typeof s&&(this.ease=s),this._elapsed=0,this._onUpdate=a,this._onUpdateScope=h,this.camera.emit(o.PAN_START,this.camera,this,i,t,e)),l},update:function(t,e){if(this.isRunning){this._elapsed+=e;var i=s(this._elapsed/this.duration,0,1);this.progress=i;var r=this.camera;if(this._elapsed{var s=i(45319),r=i(83419),n=i(19715),o=i(62640),a=new r({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.source=0,this.current=0,this.destination=0,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope,this.clockwise=!0,this.shortestPath=!1},start:function(t,e,i,s,r,a,h){void 0===i&&(i=1e3),void 0===s&&(s=o.Linear),void 0===r&&(r=!1),void 0===a&&(a=null),void 0===h&&(h=this.camera.scene),void 0===e&&(e=!1),this.shortestPath=e;var l=t;t<0?(l=-1*t,this.clockwise=!1):this.clockwise=!0;var u=360*Math.PI/180;l-=Math.floor(l/u)*u;var c=this.camera;if(!r&&this.isRunning)return c;if(this.isRunning=!0,this.duration=i,this.progress=0,this.source=c.rotation,this.destination=l,"string"==typeof s&&o.hasOwnProperty(s)?this.ease=o[s]:"function"==typeof s&&(this.ease=s),this._elapsed=0,this._onUpdate=a,this._onUpdateScope=h,this.shortestPath){var d=0,p=0;(d=this.destination>this.source?Math.abs(this.destination-this.source):Math.abs(this.destination+u)-this.source)<(p=this.source>this.destination?Math.abs(this.source-this.destination):Math.abs(this.source+u)-this.destination)?this.clockwise=!0:d>p&&(this.clockwise=!1)}return this.camera.emit(n.ROTATE_START,this.camera,this,i,l),c},update:function(t,e){if(this.isRunning){this._elapsed+=e;var i=s(this._elapsed/this.duration,0,1);this.progress=i;var r=this.camera;if(this._elapsed=l?Math.abs(h-l):Math.abs(h+a)-l;var u=0;u=this.clockwise?r.rotation+o*n:r.rotation-o*n,r.rotation=u,this._onUpdate&&this._onUpdate.call(this._onUpdateScope,r,i,u)}else r.rotation=this.destination,this._onUpdate&&this._onUpdate.call(this._onUpdateScope,r,i,this.destination),this.effectComplete()}},effectComplete:function(){this._onUpdate=null,this._onUpdateScope=null,this.isRunning=!1,this.camera.emit(n.ROTATE_COMPLETE,this.camera,this)},reset:function(){this.isRunning=!1,this._onUpdate=null,this._onUpdateScope=null},destroy:function(){this.reset(),this.camera=null,this.source=null,this.destination=null}});t.exports=a},30330:(t,e,i)=>{var s=i(45319),r=i(83419),n=i(19715),o=i(26099),a=new r({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.intensity=new o,this.progress=0,this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,r){return void 0===t&&(t=100),void 0===e&&(e=.05),void 0===i&&(i=!1),void 0===s&&(s=null),void 0===r&&(r=this.camera.scene),!i&&this.isRunning||(this.isRunning=!0,this.duration=t,this.progress=0,"number"==typeof e?this.intensity.set(e):this.intensity.set(e.x,e.y),this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate=s,this._onUpdateScope=r,this.camera.emit(n.SHAKE_START,this.camera,this,t,e)),this.camera},preRender:function(){this.isRunning&&this.camera.matrix.translate(this._offsetX,this._offsetY)},update:function(t,e){if(this.isRunning)if(this._elapsed+=e,this.progress=s(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{var s=i(45319),r=i(83419),n=i(62640),o=i(19715),a=new r({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.source=1,this.destination=1,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,r,a){void 0===e&&(e=1e3),void 0===i&&(i=n.Linear),void 0===s&&(s=!1),void 0===r&&(r=null),void 0===a&&(a=this.camera.scene);var h=this.camera;return!s&&this.isRunning||(this.isRunning=!0,this.duration=e,this.progress=0,this.source=h.zoom,this.destination=t,"string"==typeof i&&n.hasOwnProperty(i)?this.ease=n[i]:"function"==typeof i&&(this.ease=i),this._elapsed=0,this._onUpdate=r,this._onUpdateScope=a,this.camera.emit(o.ZOOM_START,this.camera,this,e,t)),h},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=s(this._elapsed/this.duration,0,1),this._elapsed{t.exports={Fade:i(5020),Flash:i(10662),Pan:i(20359),Shake:i(30330),RotateTo:i(34208),Zoom:i(45641)}},16438:t=>{t.exports="cameradestroy"},32726:t=>{t.exports="camerafadeincomplete"},87807:t=>{t.exports="camerafadeinstart"},45917:t=>{t.exports="camerafadeoutcomplete"},95666:t=>{t.exports="camerafadeoutstart"},47056:t=>{t.exports="cameraflashcomplete"},91261:t=>{t.exports="cameraflashstart"},45047:t=>{t.exports="followupdate"},81927:t=>{t.exports="camerapancomplete"},74264:t=>{t.exports="camerapanstart"},54419:t=>{t.exports="postrender"},79330:t=>{t.exports="prerender"},93183:t=>{t.exports="camerarotatecomplete"},80112:t=>{t.exports="camerarotatestart"},62252:t=>{t.exports="camerashakecomplete"},86017:t=>{t.exports="camerashakestart"},539:t=>{t.exports="camerazoomcomplete"},51892:t=>{t.exports="camerazoomstart"},19715:(t,e,i)=>{t.exports={DESTROY:i(16438),FADE_IN_COMPLETE:i(32726),FADE_IN_START:i(87807),FADE_OUT_COMPLETE:i(45917),FADE_OUT_START:i(95666),FLASH_COMPLETE:i(47056),FLASH_START:i(91261),FOLLOW_UPDATE:i(45047),PAN_COMPLETE:i(81927),PAN_START:i(74264),POST_RENDER:i(54419),PRE_RENDER:i(79330),ROTATE_COMPLETE:i(93183),ROTATE_START:i(80112),SHAKE_COMPLETE:i(62252),SHAKE_START:i(86017),ZOOM_COMPLETE:i(539),ZOOM_START:i(51892)}},87969:(t,e,i)=>{t.exports={Camera:i(38058),BaseCamera:i(71911),CameraManager:i(32743),Effects:i(20052),Events:i(19715)}},63091:(t,e,i)=>{var s=i(83419),r=i(35154),n=new s({initialize:function(t){this.camera=r(t,"camera",null),this.left=r(t,"left",null),this.right=r(t,"right",null),this.up=r(t,"up",null),this.down=r(t,"down",null),this.zoomIn=r(t,"zoomIn",null),this.zoomOut=r(t,"zoomOut",null),this.zoomSpeed=r(t,"zoomSpeed",.01),this.minZoom=r(t,"minZoom",.001),this.maxZoom=r(t,"maxZoom",1e3),this.speedX=0,this.speedY=0;var e=r(t,"speed",null);"number"==typeof e?(this.speedX=e,this.speedY=e):(this.speedX=r(t,"speed.x",0),this.speedY=r(t,"speed.y",0)),this._zoom=0,this.active=null!==this.camera},start:function(){return this.active=null!==this.camera,this},stop:function(){return this.active=!1,this},setCamera:function(t){return this.camera=t,this},update:function(t){if(this.active){void 0===t&&(t=1);var e=this.camera;this.up&&this.up.isDown?e.scrollY-=this.speedY*t|0:this.down&&this.down.isDown&&(e.scrollY+=this.speedY*t|0),this.left&&this.left.isDown?e.scrollX-=this.speedX*t|0:this.right&&this.right.isDown&&(e.scrollX+=this.speedX*t|0),this.zoomIn&&this.zoomIn.isDown?(e.zoom-=this.zoomSpeed,e.zoomthis.maxZoom&&(e.zoom=this.maxZoom))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});t.exports=n},58818:(t,e,i)=>{var s=i(83419),r=i(35154),n=new s({initialize:function(t){this.camera=r(t,"camera",null),this.left=r(t,"left",null),this.right=r(t,"right",null),this.up=r(t,"up",null),this.down=r(t,"down",null),this.zoomIn=r(t,"zoomIn",null),this.zoomOut=r(t,"zoomOut",null),this.zoomSpeed=r(t,"zoomSpeed",.01),this.minZoom=r(t,"minZoom",.001),this.maxZoom=r(t,"maxZoom",1e3),this.accelX=0,this.accelY=0;var e=r(t,"acceleration",null);"number"==typeof e?(this.accelX=e,this.accelY=e):(this.accelX=r(t,"acceleration.x",0),this.accelY=r(t,"acceleration.y",0)),this.dragX=0,this.dragY=0;var i=r(t,"drag",null);"number"==typeof i?(this.dragX=i,this.dragY=i):(this.dragX=r(t,"drag.x",0),this.dragY=r(t,"drag.y",0)),this.maxSpeedX=0,this.maxSpeedY=0;var s=r(t,"maxSpeed",null);"number"==typeof s?(this.maxSpeedX=s,this.maxSpeedY=s):(this.maxSpeedX=r(t,"maxSpeed.x",0),this.maxSpeedY=r(t,"maxSpeed.y",0)),this._speedX=0,this._speedY=0,this._zoom=0,this.active=null!==this.camera},start:function(){return this.active=null!==this.camera,this},stop:function(){return this.active=!1,this},setCamera:function(t){return this.camera=t,this},update:function(t){if(this.active){void 0===t&&(t=1);var e=this.camera;this._speedX>0?(this._speedX-=this.dragX*t,this._speedX<0&&(this._speedX=0)):this._speedX<0&&(this._speedX+=this.dragX*t,this._speedX>0&&(this._speedX=0)),this._speedY>0?(this._speedY-=this.dragY*t,this._speedY<0&&(this._speedY=0)):this._speedY<0&&(this._speedY+=this.dragY*t,this._speedY>0&&(this._speedY=0)),this.up&&this.up.isDown?(this._speedY+=this.accelY,this._speedY>this.maxSpeedY&&(this._speedY=this.maxSpeedY)):this.down&&this.down.isDown&&(this._speedY-=this.accelY,this._speedY<-this.maxSpeedY&&(this._speedY=-this.maxSpeedY)),this.left&&this.left.isDown?(this._speedX+=this.accelX,this._speedX>this.maxSpeedX&&(this._speedX=this.maxSpeedX)):this.right&&this.right.isDown&&(this._speedX-=this.accelX,this._speedX<-this.maxSpeedX&&(this._speedX=-this.maxSpeedX)),this.zoomIn&&this.zoomIn.isDown?this._zoom=-this.zoomSpeed:this.zoomOut&&this.zoomOut.isDown?this._zoom=this.zoomSpeed:this._zoom=0,0!==this._speedX&&(e.scrollX-=this._speedX*t|0),0!==this._speedY&&(e.scrollY-=this._speedY*t|0),0!==this._zoom&&(e.zoom+=this._zoom,e.zoomthis.maxZoom&&(e.zoom=this.maxZoom))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});t.exports=n},38865:(t,e,i)=>{t.exports={FixedKeyControl:i(63091),SmoothedKeyControl:i(58818)}},26638:(t,e,i)=>{t.exports={Controls:i(38865),Scene2D:i(87969)}},8054:(t,e,i)=>{var s={VERSION:"3.80.1",BlendModes:i(10312),ScaleModes:i(29795),AUTO:0,CANVAS:1,WEBGL:2,HEADLESS:3,FOREVER:-1,NONE:4,UP:5,DOWN:6,LEFT:7,RIGHT:8};t.exports=s},69547:(t,e,i)=>{var s=i(83419),r=i(8054),n=i(42363),o=i(82264),a=i(95540),h=i(35154),l=i(41212),u=i(29747),c=i(75508),d=i(36060),p=i(80333),f=new s({initialize:function(t){void 0===t&&(t={});var e=h(t,"scale",null);this.width=h(e,"width",1024,t),this.height=h(e,"height",768,t),this.zoom=h(e,"zoom",1,t),this.parent=h(e,"parent",void 0,t),this.scaleMode=h(e,e?"mode":"scaleMode",0,t),this.expandParent=h(e,"expandParent",!0,t),this.autoRound=h(e,"autoRound",!1,t),this.autoCenter=h(e,"autoCenter",0,t),this.resizeInterval=h(e,"resizeInterval",500,t),this.fullscreenTarget=h(e,"fullscreenTarget",null,t),this.minWidth=h(e,"min.width",0,t),this.maxWidth=h(e,"max.width",0,t),this.minHeight=h(e,"min.height",0,t),this.maxHeight=h(e,"max.height",0,t),this.snapWidth=h(e,"snap.width",0,t),this.snapHeight=h(e,"snap.height",0,t),this.renderType=h(t,"type",r.AUTO),this.canvas=h(t,"canvas",null),this.context=h(t,"context",null),this.canvasStyle=h(t,"canvasStyle",null),this.customEnvironment=h(t,"customEnvironment",!1),this.sceneConfig=h(t,"scene",null),this.seed=h(t,"seed",[(Date.now()*Math.random()).toString()]),c.RND=new c.RandomDataGenerator(this.seed),this.gameTitle=h(t,"title",""),this.gameURL=h(t,"url","https://phaser.io"),this.gameVersion=h(t,"version",""),this.autoFocus=h(t,"autoFocus",!0),this.stableSort=h(t,"stableSort",-1),-1===this.stableSort&&(this.stableSort=o.browser.es2019?1:0),o.features.stableSort=this.stableSort,this.domCreateContainer=h(t,"dom.createContainer",!1),this.domPointerEvents=h(t,"dom.pointerEvents","none"),this.inputKeyboard=h(t,"input.keyboard",!0),this.inputKeyboardEventTarget=h(t,"input.keyboard.target",window),this.inputKeyboardCapture=h(t,"input.keyboard.capture",[]),this.inputMouse=h(t,"input.mouse",!0),this.inputMouseEventTarget=h(t,"input.mouse.target",null),this.inputMousePreventDefaultDown=h(t,"input.mouse.preventDefaultDown",!0),this.inputMousePreventDefaultUp=h(t,"input.mouse.preventDefaultUp",!0),this.inputMousePreventDefaultMove=h(t,"input.mouse.preventDefaultMove",!0),this.inputMousePreventDefaultWheel=h(t,"input.mouse.preventDefaultWheel",!0),this.inputTouch=h(t,"input.touch",o.input.touch),this.inputTouchEventTarget=h(t,"input.touch.target",null),this.inputTouchCapture=h(t,"input.touch.capture",!0),this.inputActivePointers=h(t,"input.activePointers",1),this.inputSmoothFactor=h(t,"input.smoothFactor",0),this.inputWindowEvents=h(t,"input.windowEvents",!0),this.inputGamepad=h(t,"input.gamepad",!1),this.inputGamepadEventTarget=h(t,"input.gamepad.target",window),this.disableContextMenu=h(t,"disableContextMenu",!1),this.audio=h(t,"audio",{}),this.hideBanner=!1===h(t,"banner",null),this.hidePhaser=h(t,"banner.hidePhaser",!1),this.bannerTextColor=h(t,"banner.text","#ffffff"),this.bannerBackgroundColor=h(t,"banner.background",["#ff0000","#ffff00","#00ff00","#00ffff","#000000"]),""===this.gameTitle&&this.hidePhaser&&(this.hideBanner=!0),this.fps=h(t,"fps",null),this.disablePreFX=h(t,"disablePreFX",!1),this.disablePostFX=h(t,"disablePostFX",!1);var i=h(t,"render",null);this.pipeline=h(i,"pipeline",null,t),this.autoMobilePipeline=h(i,"autoMobilePipeline",!0,t),this.defaultPipeline=h(i,"defaultPipeline",d.MULTI_PIPELINE,t),this.antialias=h(i,"antialias",!0,t),this.antialiasGL=h(i,"antialiasGL",!0,t),this.mipmapFilter=h(i,"mipmapFilter","",t),this.desynchronized=h(i,"desynchronized",!1,t),this.roundPixels=h(i,"roundPixels",!0,t),this.pixelArt=h(i,"pixelArt",1!==this.zoom,t),this.pixelArt&&(this.antialias=!1,this.antialiasGL=!1,this.roundPixels=!0),this.transparent=h(i,"transparent",!1,t),this.clearBeforeRender=h(i,"clearBeforeRender",!0,t),this.preserveDrawingBuffer=h(i,"preserveDrawingBuffer",!1,t),this.premultipliedAlpha=h(i,"premultipliedAlpha",!0,t),this.failIfMajorPerformanceCaveat=h(i,"failIfMajorPerformanceCaveat",!1,t),this.powerPreference=h(i,"powerPreference","default",t),this.batchSize=h(i,"batchSize",4096,t),this.maxTextures=h(i,"maxTextures",-1,t),this.maxLights=h(i,"maxLights",10,t);var s=h(t,"backgroundColor",0);this.backgroundColor=p(s),this.transparent&&(this.backgroundColor=p(0),this.backgroundColor.alpha=0),this.preBoot=h(t,"callbacks.preBoot",u),this.postBoot=h(t,"callbacks.postBoot",u),this.physics=h(t,"physics",{}),this.defaultPhysicsSystem=h(this.physics,"default",!1),this.loaderBaseURL=h(t,"loader.baseURL",""),this.loaderPath=h(t,"loader.path",""),this.loaderMaxParallelDownloads=h(t,"loader.maxParallelDownloads",o.os.android?6:32),this.loaderCrossOrigin=h(t,"loader.crossOrigin",void 0),this.loaderResponseType=h(t,"loader.responseType",""),this.loaderAsync=h(t,"loader.async",!0),this.loaderUser=h(t,"loader.user",""),this.loaderPassword=h(t,"loader.password",""),this.loaderTimeout=h(t,"loader.timeout",0),this.loaderWithCredentials=h(t,"loader.withCredentials",!1),this.loaderImageLoadType=h(t,"loader.imageLoadType","XHR"),this.loaderLocalScheme=h(t,"loader.localScheme",["file://","capacitor://"]),this.glowFXQuality=h(t,"fx.glow.quality",.1),this.glowFXDistance=h(t,"fx.glow.distance",10),this.installGlobalPlugins=[],this.installScenePlugins=[];var f=h(t,"plugins",null),g=n.DefaultScene;f&&(Array.isArray(f)?this.defaultPlugins=f:l(f)&&(this.installGlobalPlugins=a(f,"global",[]),this.installScenePlugins=a(f,"scene",[]),Array.isArray(f.default)?g=f.default:Array.isArray(f.defaultMerge)&&(g=g.concat(f.defaultMerge)))),this.defaultPlugins=g;var m="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg";this.defaultImage=h(t,"images.default",m+"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg=="),this.missingImage=h(t,"images.missing",m+"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg=="),this.whiteImage=h(t,"images.white","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABdJREFUeNpi/P//PwMMMDEgAdwcgAADAJZuAwXJYZOzAAAAAElFTkSuQmCC"),window&&(window.FORCE_WEBGL?this.renderType=r.WEBGL:window.FORCE_CANVAS&&(this.renderType=r.CANVAS))}});t.exports=f},86054:(t,e,i)=>{var s=i(20623),r=i(27919),n=i(8054),o=i(89357);t.exports=function(t){var e=t.config;if((e.customEnvironment||e.canvas)&&e.renderType===n.AUTO)throw new Error("Must set explicit renderType in custom environment");if(!e.customEnvironment&&!e.canvas&&e.renderType!==n.HEADLESS)if(e.renderType===n.AUTO&&(e.renderType=o.webGL?n.WEBGL:n.CANVAS),e.renderType===n.WEBGL){if(!o.webGL)throw new Error("Cannot create WebGL context, aborting.")}else{if(e.renderType!==n.CANVAS)throw new Error("Unknown value for renderer type: "+e.renderType);if(!o.canvas)throw new Error("Cannot create Canvas context, aborting.")}e.antialias||r.disableSmoothing();var a,h,l=t.scale.baseSize,u=l.width,c=l.height;e.canvas?(t.canvas=e.canvas,t.canvas.width=u,t.canvas.height=c):t.canvas=r.create(t,u,c,e.renderType),e.canvasStyle&&(t.canvas.style=e.canvasStyle),e.antialias||s.setCrisp(t.canvas),e.renderType!==n.HEADLESS&&(a=i(68627),h=i(74797),e.renderType===n.WEBGL?t.renderer=new h(t):(t.renderer=new a(t),t.context=t.renderer.gameContext))}},96391:(t,e,i)=>{var s=i(8054);t.exports=function(t){var e=t.config;if(!e.hideBanner){var i="WebGL";e.renderType===s.CANVAS?i="Canvas":e.renderType===s.HEADLESS&&(i="Headless");var r,n=e.audio,o=t.device.audio;if(r=o.webAudio&&!n.disableWebAudio?"Web Audio":n.noAudio||!o.webAudio&&!o.audioData?"No Audio":"HTML5 Audio",t.device.browser.ie)window.console&&console.log("Phaser v"+s.VERSION+" / https://phaser.io");else{var a,h="",l=[h];Array.isArray(e.bannerBackgroundColor)?(e.bannerBackgroundColor.forEach((function(t){h=h.concat("%c "),l.push("background: "+t),a=t})),l[l.length-1]="color: "+e.bannerTextColor+"; background: "+a):(h=h.concat("%c "),l.push("color: "+e.bannerTextColor+"; background: "+e.bannerBackgroundColor)),l.push("background: transparent"),e.gameTitle&&(h=h.concat(e.gameTitle),e.gameVersion&&(h=h.concat(" v"+e.gameVersion)),e.hidePhaser||(h=h.concat(" / "))),e.hidePhaser||(h=h.concat("Phaser v"+s.VERSION+" ("+i+" | "+r+")")),h=h.concat(" %c "+e.gameURL),l[0]=h,console.log.apply(console,l)}}}},50127:(t,e,i)=>{var s=i(40366),r=i(60848),n=i(24047),o=i(27919),a=i(83419),h=i(69547),l=i(83719),u=i(86054),c=i(45893),d=i(96391),p=i(82264),f=i(57264),g=i(50792),m=i(8443),v=i(7003),y=i(37277),x=i(77332),w=i(76531),T=i(60903),b=i(69442),S=i(17130),E=i(65898),C=i(51085),A=i(14747),_=new a({initialize:function(t){this.config=new h(t),this.renderer=null,this.domContainer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new g,this.anims=new r(this),this.textures=new S(this),this.cache=new n(this),this.registry=new c(this,new g),this.input=new v(this,this.config),this.scene=new T(this,this.config.sceneConfig),this.device=p,this.scale=new w(this,this.config),this.sound=null,this.sound=A.create(this),this.loop=new E(this,this.config.fps),this.plugins=new x(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,this.noReturn=!1,this.hasFocus=!1,this.isPaused=!1,f(this.boot.bind(this))},boot:function(){y.hasCore("EventEmitter")?(this.isBooted=!0,this.config.preBoot(this),this.scale.preBoot(),u(this),l(this),d(this),s(this.canvas,this.config.parent),this.textures.once(b.READY,this.texturesReady,this),this.events.emit(m.BOOT)):console.warn("Aborting. Core Plugins missing.")},texturesReady:function(){this.events.emit(m.READY),this.start()},start:function(){this.isRunning=!0,this.config.postBoot(this),this.renderer?this.loop.start(this.step.bind(this)):this.loop.start(this.headlessStep.bind(this)),C(this);var t=this.events;t.on(m.HIDDEN,this.onHidden,this),t.on(m.VISIBLE,this.onVisible,this),t.on(m.BLUR,this.onBlur,this),t.on(m.FOCUS,this.onFocus,this)},step:function(t,e){if(this.pendingDestroy)return this.runDestroy();if(!this.isPaused){var i=this.events;i.emit(m.PRE_STEP,t,e),i.emit(m.STEP,t,e),this.scene.update(t,e),i.emit(m.POST_STEP,t,e);var s=this.renderer;s.preRender(),i.emit(m.PRE_RENDER,s,t,e),this.scene.render(s),s.postRender(),i.emit(m.POST_RENDER,s,t,e)}},headlessStep:function(t,e){if(this.pendingDestroy)return this.runDestroy();if(!this.isPaused){var i=this.events;i.emit(m.PRE_STEP,t,e),i.emit(m.STEP,t,e),this.scene.update(t,e),i.emit(m.POST_STEP,t,e),this.scene.isProcessing=!1,i.emit(m.PRE_RENDER,null,t,e),i.emit(m.POST_RENDER,null,t,e)}},onHidden:function(){this.loop.pause(),this.events.emit(m.PAUSE)},pause:function(){var t=this.isPaused;this.isPaused=!0,t||this.events.emit(m.PAUSE)},onVisible:function(){this.loop.resume(),this.events.emit(m.RESUME)},resume:function(){var t=this.isPaused;this.isPaused=!1,t&&this.events.emit(m.RESUME)},onBlur:function(){this.hasFocus=!1,this.loop.blur()},onFocus:function(){this.hasFocus=!0,this.loop.focus()},getFrame:function(){return this.loop.frame},getTime:function(){return this.loop.now},destroy:function(t,e){void 0===e&&(e=!1),this.pendingDestroy=!0,this.removeCanvas=t,this.noReturn=e},runDestroy:function(){this.scene.destroy(),this.events.emit(m.DESTROY),this.events.removeAllListeners(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(o.remove(this.canvas),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)),this.domContainer&&this.domContainer.parentNode&&this.domContainer.parentNode.removeChild(this.domContainer),this.loop.destroy(),this.pendingDestroy=!1}});t.exports=_},65898:(t,e,i)=>{var s=i(83419),r=i(35154),n=i(29747),o=i(43092),a=new s({initialize:function(t,e){this.game=t,this.raf=new o,this.started=!1,this.running=!1,this.minFps=r(e,"min",5),this.targetFps=r(e,"target",60),this.fpsLimit=r(e,"limit",0),this.hasFpsLimit=this.fpsLimit>0,this._limitRate=this.hasFpsLimit?1e3/this.fpsLimit:0,this._min=1e3/this.minFps,this._target=1e3/this.targetFps,this.actualFps=this.targetFps,this.nextFpsUpdate=0,this.framesThisSecond=0,this.callback=n,this.forceSetTimeOut=r(e,"forceSetTimeOut",!1),this.time=0,this.startTime=0,this.lastTime=0,this.frame=0,this.inFocus=!0,this._pauseTime=0,this._coolDown=0,this.delta=0,this.deltaIndex=0,this.deltaHistory=[],this.deltaSmoothingMax=r(e,"deltaHistory",10),this.panicMax=r(e,"panicMax",120),this.rawDelta=0,this.now=0,this.smoothStep=r(e,"smoothStep",!0)},blur:function(){this.inFocus=!1},focus:function(){this.inFocus=!0,this.resetDelta()},pause:function(){this._pauseTime=window.performance.now()},resume:function(){this.resetDelta(),this.startTime+=this.time-this._pauseTime},resetDelta:function(){var t=window.performance.now();this.time=t,this.lastTime=t,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0;for(var e=0;e0||!this.inFocus)&&(this._coolDown--,t=Math.min(t,this._target)),t>this._min&&(t=i[e],t=Math.min(t,this._min)),i[e]=t,this.deltaIndex++,this.deltaIndex>=s&&(this.deltaIndex=0);for(var r=0,n=0;n=this.nextFpsUpdate&&this.updateFPS(t),this.framesThisSecond++,this.delta>=this._limitRate&&(this.callback(t,this.delta),this.delta=0),this.lastTime=t,this.frame++},step:function(t){this.now=t;var e=Math.max(0,t-this.lastTime);this.rawDelta=e,this.time+=this.rawDelta,this.smoothStep&&(e=this.smoothDelta(e)),this.delta=e,t>=this.nextFpsUpdate&&this.updateFPS(t),this.framesThisSecond++,this.callback(t,e),this.lastTime=t,this.frame++},tick:function(){var t=window.performance.now();this.hasFpsLimit?this.stepLimitFPS(t):this.step(t)},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(t){void 0===t&&(t=!1);var e=window.performance.now();if(!this.running){t&&(this.startTime+=-this.lastTime+(this.lastTime+e));var i=this.hasFpsLimit?this.stepLimitFPS.bind(this):this.step.bind(this);this.raf.start(i,this.forceSetTimeOut,this._target),this.running=!0,this.nextFpsUpdate=e+1e3,this.framesThisSecond=0,this.fpsLimitTriggered=!1,this.tick()}},getDuration:function(){return Math.round(this.lastTime-this.startTime)/1e3},getDurationMS:function(){return Math.round(this.lastTime-this.startTime)},stop:function(){return this.running=!1,this.started=!1,this.raf.stop(),this},destroy:function(){this.stop(),this.raf.destroy(),this.raf=null,this.game=null,this.callback=null}});t.exports=a},51085:(t,e,i)=>{var s=i(8443);t.exports=function(t){var e,i=t.events;void 0!==document.hidden?e="visibilitychange":["webkit","moz","ms"].forEach((function(t){void 0!==document[t+"Hidden"]&&(document.hidden=function(){return document[t+"Hidden"]},e=t+"visibilitychange")})),e&&document.addEventListener(e,(function(t){document.hidden||"pause"===t.type?i.emit(s.HIDDEN):i.emit(s.VISIBLE)}),!1),window.onblur=function(){i.emit(s.BLUR)},window.onfocus=function(){i.emit(s.FOCUS)},window.focus&&t.config.autoFocus&&window.focus()}},97217:t=>{t.exports="blur"},47548:t=>{t.exports="boot"},19814:t=>{t.exports="contextlost"},68446:t=>{t.exports="destroy"},41700:t=>{t.exports="focus"},25432:t=>{t.exports="hidden"},65942:t=>{t.exports="pause"},59211:t=>{t.exports="postrender"},47789:t=>{t.exports="poststep"},39066:t=>{t.exports="prerender"},460:t=>{t.exports="prestep"},16175:t=>{t.exports="ready"},42331:t=>{t.exports="resume"},11966:t=>{t.exports="step"},32969:t=>{t.exports="systemready"},94830:t=>{t.exports="visible"},8443:(t,e,i)=>{t.exports={BLUR:i(97217),BOOT:i(47548),CONTEXT_LOST:i(19814),DESTROY:i(68446),FOCUS:i(41700),HIDDEN:i(25432),PAUSE:i(65942),POST_RENDER:i(59211),POST_STEP:i(47789),PRE_RENDER:i(39066),PRE_STEP:i(460),READY:i(16175),RESUME:i(42331),STEP:i(11966),SYSTEM_READY:i(32969),VISIBLE:i(94830)}},42857:(t,e,i)=>{t.exports={Config:i(69547),CreateRenderer:i(86054),DebugHeader:i(96391),Events:i(8443),TimeStep:i(65898),VisibilityHandler:i(51085)}},99584:(t,e,i)=>{var s=i(5290),r=i(27919),n=i(35154);t.exports=function(t){var e=n(t,"data",[]),i=n(t,"canvas",null),o=n(t,"palette",s),a=n(t,"pixelWidth",1),h=n(t,"pixelHeight",a),l=n(t,"resizeCanvas",!0),u=n(t,"clearCanvas",!0),c=n(t,"preRender",null),d=n(t,"postRender",null),p=Math.floor(Math.abs(e[0].length*a)),f=Math.floor(Math.abs(e.length*h));i||(i=r.create2D(this,p,f),l=!1,u=!1),l&&(i.width=p,i.height=f);var g=i.getContext("2d",{willReadFrequently:!0});u&&g.clearRect(0,0,p,f),c&&c(i,g);for(var m=0;m{t.exports={GenerateTexture:i(99584),Palettes:i(57763)}},5290:t=>{t.exports={0:"#000",1:"#9D9D9D",2:"#FFF",3:"#BE2633",4:"#E06F8B",5:"#493C2B",6:"#A46422",7:"#EB8931",8:"#F7E26B",9:"#2F484E",A:"#44891A",B:"#A3CE27",C:"#1B2632",D:"#005784",E:"#31A2F2",F:"#B2DCEF"}},23816:t=>{t.exports={0:"#000",1:"#fff",2:"#8b4131",3:"#7bbdc5",4:"#8b41ac",5:"#6aac41",6:"#3931a4",7:"#d5de73",8:"#945a20",9:"#5a4100",A:"#bd736a",B:"#525252",C:"#838383",D:"#acee8b",E:"#7b73de",F:"#acacac"}},9866:t=>{t.exports={0:"#000",1:"#2234d1",2:"#0c7e45",3:"#44aacc",4:"#8a3622",5:"#5c2e78",6:"#aa5c3d",7:"#b5b5b5",8:"#5e606e",9:"#4c81fb",A:"#6cd947",B:"#7be2f9",C:"#eb8a60",D:"#e23d69",E:"#ffd93f",F:"#fff"}},77552:t=>{t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#f5f4eb"}},92259:t=>{t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#fff"}},57763:(t,e,i)=>{t.exports={ARNE16:i(5290),C64:i(23816),CGA:i(9866),JMP:i(77552),MSX:i(92259)}},46728:(t,e,i)=>{var s=i(83419),r=i(36316),n=i(80021),o=i(26099),a=new s({Extends:n,initialize:function(t,e,i,s){n.call(this,"CubicBezierCurve"),Array.isArray(t)&&(s=new o(t[6],t[7]),i=new o(t[4],t[5]),e=new o(t[2],t[3]),t=new o(t[0],t[1])),this.p0=t,this.p1=e,this.p2=i,this.p3=s},getStartPoint:function(t){return void 0===t&&(t=new o),t.copy(this.p0)},getResolution:function(t){return t},getPoint:function(t,e){void 0===e&&(e=new o);var i=this.p0,s=this.p1,n=this.p2,a=this.p3;return e.set(r(t,i.x,s.x,n.x,a.x),r(t,i.y,s.y,n.y,a.y))},draw:function(t,e){void 0===e&&(e=32);var i=this.getPoints(e);t.beginPath(),t.moveTo(this.p0.x,this.p0.y);for(var s=1;s{var s=i(83419),r=i(19217),n=i(87841),o=i(26099),a=new s({initialize:function(t){this.type=t,this.defaultDivisions=5,this.arcLengthDivisions=100,this.cacheArcLengths=[],this.needsUpdate=!0,this.active=!0,this._tmpVec2A=new o,this._tmpVec2B=new o},draw:function(t,e){return void 0===e&&(e=32),t.strokePoints(this.getPoints(e))},getBounds:function(t,e){t||(t=new n),void 0===e&&(e=16);var i=this.getLength();e>i&&(e=i/2);var s=Math.max(1,Math.round(i/e));return r(this.getSpacedPoints(s),t)},getDistancePoints:function(t){var e=this.getLength(),i=Math.max(1,e/t);return this.getSpacedPoints(i)},getEndPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(1,t)},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(void 0===t&&(t=this.arcLengthDivisions),this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e,i=[],s=this.getPoint(0,this._tmpVec2A),r=0;i.push(0);for(var n=1;n<=t;n++)r+=(e=this.getPoint(n/t,this._tmpVec2B)).distance(s),i.push(r),s.copy(e);return this.cacheArcLengths=i,i},getPointAt:function(t,e){var i=this.getUtoTmapping(t);return this.getPoint(i,e)},getPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var s=0;s<=t;s++)i.push(this.getPoint(s/t));return i},getRandomPoint:function(t){return void 0===t&&(t=new o),this.getPoint(Math.random(),t)},getSpacedPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var s=0;s<=t;s++){var r=this.getUtoTmapping(s/t,null,t);i.push(this.getPoint(r))}return i},getStartPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(0,t)},getTangent:function(t,e){void 0===e&&(e=new o);var i=1e-4,s=t-i,r=t+i;return s<0&&(s=0),r>1&&(r=1),this.getPoint(s,this._tmpVec2A),this.getPoint(r,e),e.subtract(this._tmpVec2A).normalize()},getTangentAt:function(t,e){var i=this.getUtoTmapping(t);return this.getTangent(i,e)},getTFromDistance:function(t,e){return t<=0?0:this.getUtoTmapping(0,t,e)},getUtoTmapping:function(t,e,i){var s,r=this.getLengths(i),n=0,o=r.length;s=e?Math.min(e,r[o-1]):t*r[o-1];for(var a,h=0,l=o-1;h<=l;)if((a=r[n=Math.floor(h+(l-h)/2)]-s)<0)h=n+1;else{if(!(a>0)){l=n;break}l=n-1}if(r[n=l]===s)return n/(o-1);var u=r[n];return(n+(s-u)/(r[n+1]-u))/(o-1)},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()}});t.exports=a},73825:(t,e,i)=>{var s=i(83419),r=i(80021),n=i(39506),o=i(35154),a=i(43396),h=i(26099),l=new s({Extends:r,initialize:function(t,e,i,s,a,l,u,c){if("object"==typeof t){var d=t;t=o(d,"x",0),e=o(d,"y",0),i=o(d,"xRadius",0),s=o(d,"yRadius",i),a=o(d,"startAngle",0),l=o(d,"endAngle",360),u=o(d,"clockwise",!1),c=o(d,"rotation",0)}else void 0===s&&(s=i),void 0===a&&(a=0),void 0===l&&(l=360),void 0===u&&(u=!1),void 0===c&&(c=0);r.call(this,"EllipseCurve"),this.p0=new h(t,e),this._xRadius=i,this._yRadius=s,this._startAngle=n(a),this._endAngle=n(l),this._clockwise=u,this._rotation=n(c)},getStartPoint:function(t){return void 0===t&&(t=new h),this.getPoint(0,t)},getResolution:function(t){return 2*t},getPoint:function(t,e){void 0===e&&(e=new h);for(var i=2*Math.PI,s=this._endAngle-this._startAngle,r=Math.abs(s)i;)s-=i;s{var s=i(83419),r=i(80021),n=i(19217),o=i(87841),a=i(26099),h=new s({Extends:r,initialize:function(t,e){r.call(this,"LineCurve"),Array.isArray(t)&&(e=new a(t[2],t[3]),t=new a(t[0],t[1])),this.p0=t,this.p1=e,this.arcLengthDivisions=1},getBounds:function(t){return void 0===t&&(t=new o),n([this.p0,this.p1],t)},getStartPoint:function(t){return void 0===t&&(t=new a),t.copy(this.p0)},getResolution:function(t){return void 0===t&&(t=1),t},getPoint:function(t,e){return void 0===e&&(e=new a),1===t?e.copy(this.p1):(e.copy(this.p1).subtract(this.p0).scale(t).add(this.p0),e)},getPointAt:function(t,e){return this.getPoint(t,e)},getTangent:function(t,e){return void 0===e&&(e=new a),e.copy(this.p1).subtract(this.p0).normalize(),e},getUtoTmapping:function(t,e,i){var s;if(e){var r=this.getLengths(i),n=r[r.length-1];s=Math.min(e,n)/n}else s=t;return s},draw:function(t){return t.lineBetween(this.p0.x,this.p0.y,this.p1.x,this.p1.y),t},toJSON:function(){return{type:this.type,points:[this.p0.x,this.p0.y,this.p1.x,this.p1.y]}}});h.fromJSON=function(t){var e=t.points,i=new a(e[0],e[1]),s=new a(e[2],e[3]);return new h(i,s)},t.exports=h},14744:(t,e,i)=>{var s=i(83419),r=i(80021),n=i(32112),o=i(26099),a=new s({Extends:r,initialize:function(t,e,i){r.call(this,"QuadraticBezierCurve"),Array.isArray(t)&&(i=new o(t[4],t[5]),e=new o(t[2],t[3]),t=new o(t[0],t[1])),this.p0=t,this.p1=e,this.p2=i},getStartPoint:function(t){return void 0===t&&(t=new o),t.copy(this.p0)},getResolution:function(t){return t},getPoint:function(t,e){void 0===e&&(e=new o);var i=this.p0,s=this.p1,r=this.p2;return e.set(n(t,i.x,s.x,r.x),n(t,i.y,s.y,r.y))},draw:function(t,e){void 0===e&&(e=32);var i=this.getPoints(e);t.beginPath(),t.moveTo(this.p0.x,this.p0.y);for(var s=1;s{var s=i(87842),r=i(83419),n=i(80021),o=i(26099),a=new r({Extends:n,initialize:function(t){void 0===t&&(t=[]),n.call(this,"SplineCurve"),this.points=[],this.addPoints(t)},addPoints:function(t){for(var e=0;ei.length-2?i.length-1:n+1],c=i[n>i.length-3?i.length-1:n+2];return e.set(s(a,h.x,l.x,u.x,c.x),s(a,h.y,l.y,u.y,c.y))},toJSON:function(){for(var t=[],e=0;e{t.exports={Path:i(46669),MoveTo:i(68618),CubicBezier:i(46728),Curve:i(80021),Ellipse:i(73825),Line:i(33951),QuadraticBezier:i(14744),Spline:i(42534)}},68618:(t,e,i)=>{var s=i(83419),r=i(26099),n=new s({initialize:function(t,e){this.active=!1,this.p0=new r(t,e)},getPoint:function(t,e){return void 0===e&&(e=new r),e.copy(this.p0)},getPointAt:function(t,e){return this.getPoint(t,e)},getResolution:function(){return 1},getLength:function(){return 0},toJSON:function(){return{type:"MoveTo",points:[this.p0.x,this.p0.y]}}});t.exports=n},46669:(t,e,i)=>{var s=i(83419),r=i(46728),n=i(73825),o=i(39429),a=i(33951),h=i(68618),l=i(14744),u=i(87841),c=i(42534),d=i(26099),p=i(36383),f=new s({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.name="",this.defaultDivisions=12,this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new d,this._tmpVec2A=new d,this._tmpVec2B=new d,"object"==typeof t?this.fromJSON(t):this.startPoint.set(t,e)},add:function(t){return this.curves.push(t),this},circleTo:function(t,e,i){return void 0===e&&(e=!1),this.ellipseTo(t,t,0,360,e,i)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);return t.equals(e)||this.curves.push(new a(e,t)),this},cubicBezierTo:function(t,e,i,s,n,o){var a,h,l,u=this.getEndPoint();return t instanceof d?(a=t,h=e,l=i):(a=new d(i,s),h=new d(n,o),l=new d(t,e)),this.add(new r(u,a,h,l))},quadraticBezierTo:function(t,e,i,s){var r,n,o=this.getEndPoint();return t instanceof d?(r=t,n=e):(r=new d(i,s),n=new d(t,e)),this.add(new l(o,r,n))},draw:function(t,e){for(var i=0;i=e)return this.curves[s];s++}return null},getEndPoint:function(t){return void 0===t&&(t=new d),this.curves.length>0?this.curves[this.curves.length-1].getPoint(1,t):t.copy(this.startPoint),t},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},getPoint:function(t,e){void 0===e&&(e=new d);for(var i=t*this.getLength(),s=this.getCurveLengths(),r=0;r=i){var n=s[r]-i,o=this.curves[r],a=o.getLength(),h=0===a?0:1-n/a;return o.getPointAt(h,e)}r++}return null},getPoints:function(t,e){t||e||(t=this.defaultDivisions);for(var i,s=[],r=0;r1&&!s[s.length-1].equals(s[0])&&s.push(s[0]),s},getRandomPoint:function(t){return void 0===t&&(t=new d),this.getPoint(Math.random(),t)},getSpacedPoints:function(t){void 0===t&&(t=40);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e},getStartPoint:function(t){return void 0===t&&(t=new d),t.copy(this.startPoint)},getTangent:function(t,e){void 0===e&&(e=new d);for(var i=t*this.getLength(),s=this.getCurveLengths(),r=0;r=i){var n=s[r]-i,o=this.curves[r],a=o.getLength(),h=0===a?0:1-n/a;return o.getTangentAt(h,e)}r++}return null},lineTo:function(t,e){t instanceof d?this._tmpVec2B.copy(t):"object"==typeof t?this._tmpVec2B.setFromObject(t):this._tmpVec2B.set(t,e);var i=this.getEndPoint(this._tmpVec2A);return this.add(new a([i.x,i.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(t){return t.unshift(this.getEndPoint()),this.add(new c(t))},moveTo:function(t,e){return t instanceof d?this.add(new h(t.x,t.y)):this.add(new h(t,e))},toJSON:function(){for(var t=[],e=0;e{var s=i(83419),r=i(24882),n=new s({initialize:function(t,e){this.parent=t,this.events=e,e||(this.events=t.events?t.events:t),this.list={},this.values={},this._frozen=!1,!t.hasOwnProperty("sys")&&this.events&&this.events.once(r.DESTROY,this.destroy,this)},get:function(t){var e=this.list;if(Array.isArray(t)){for(var i=[],s=0;s{var s=i(83419),r=i(45893),n=i(37277),o=i(44594),a=new s({Extends:r,initialize:function(t){r.call(this,t,t.sys.events),this.scene=t,this.systems=t.sys,t.sys.events.once(o.BOOT,this.boot,this),t.sys.events.on(o.START,this.start,this)},boot:function(){this.events=this.systems.events,this.events.once(o.DESTROY,this.destroy,this)},start:function(){this.events.once(o.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.systems.events.off(o.SHUTDOWN,this.shutdown,this)},destroy:function(){r.prototype.destroy.call(this),this.events.off(o.START,this.start,this),this.scene=null,this.systems=null}});n.register("DataManagerPlugin",a,"data"),t.exports=a},10700:t=>{t.exports="changedata"},93608:t=>{t.exports="changedata-"},60883:t=>{t.exports="destroy"},69780:t=>{t.exports="removedata"},22166:t=>{t.exports="setdata"},24882:(t,e,i)=>{t.exports={CHANGE_DATA:i(10700),CHANGE_DATA_KEY:i(93608),DESTROY:i(60883),REMOVE_DATA:i(69780),SET_DATA:i(22166)}},44965:(t,e,i)=>{t.exports={DataManager:i(45893),DataManagerPlugin:i(63646),Events:i(24882)}},7098:(t,e,i)=>{var s=i(84148),r={flac:!1,aac:!1,audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};t.exports=function(){if("function"==typeof importScripts)return r;r.audioData=!!window.Audio,r.webAudio=!(!window.AudioContext&&!window.webkitAudioContext);var t=document.createElement("audio"),e=!!t.canPlayType;try{if(e){var i=function(e,i){var s=t.canPlayType("audio/"+e).replace(/^no$/,"");return i?Boolean(s||t.canPlayType("audio/"+i).replace(/^no$/,"")):Boolean(s)};if(r.ogg=i('ogg; codecs="vorbis"'),r.opus=i('ogg; codecs="opus"',"opus"),r.mp3=i("mpeg"),r.wav=i("wav"),r.m4a=i("x-m4a"),r.aac=i("aac"),r.flac=i("flac","x-flac"),r.webm=i('webm; codecs="vorbis"'),""!==t.canPlayType('audio/mp4; codecs="ec-3"'))if(s.edge)r.dolby=!0;else if(s.safari&&s.safariVersion>=9&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)){var n=parseInt(RegExp.$1,10),o=parseInt(RegExp.$2,10);(10===n&&o>=11||n>10)&&(r.dolby=!0)}}}catch(a){}return r}()},84148:(t,e,i)=>{var s,r=i(25892),n={chrome:!1,chromeVersion:0,edge:!1,firefox:!1,firefoxVersion:0,ie:!1,ieVersion:0,mobileSafari:!1,opera:!1,safari:!1,safariVersion:0,silk:!1,trident:!1,tridentVersion:0,es2019:!1};t.exports=(s=navigator.userAgent,/Edg\/\d+/.test(s)?(n.edge=!0,n.es2019=!0):/OPR/.test(s)?(n.opera=!0,n.es2019=!0):/Chrome\/(\d+)/.test(s)&&!r.windowsPhone?(n.chrome=!0,n.chromeVersion=parseInt(RegExp.$1,10),n.es2019=n.chromeVersion>69):/Firefox\D+(\d+)/.test(s)?(n.firefox=!0,n.firefoxVersion=parseInt(RegExp.$1,10),n.es2019=n.firefoxVersion>10):/AppleWebKit\/(?!.*CriOS)/.test(s)&&r.iOS?(n.mobileSafari=!0,n.es2019=!0):/MSIE (\d+\.\d+);/.test(s)?(n.ie=!0,n.ieVersion=parseInt(RegExp.$1,10)):/Version\/(\d+\.\d+(\.\d+)?) Safari/.test(s)&&!r.windowsPhone?(n.safari=!0,n.safariVersion=parseInt(RegExp.$1,10),n.es2019=n.safariVersion>10):/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(s)&&(n.ie=!0,n.trident=!0,n.tridentVersion=parseInt(RegExp.$1,10),n.ieVersion=parseInt(RegExp.$3,10)),/Silk/.test(s)&&(n.silk=!0),n)},89289:(t,e,i)=>{var s,r,n,o=i(27919),a={supportInverseAlpha:!1,supportNewBlendModes:!1};t.exports=("function"!=typeof importScripts&&void 0!==document&&(a.supportNewBlendModes=(s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",r="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",(n=new Image).onload=function(){var t=new Image;t.onload=function(){var e=o.create2D(t,6).getContext("2d",{willReadFrequently:!0});if(e.globalCompositeOperation="multiply",e.drawImage(n,0,0),e.drawImage(t,2,0),!e.getImageData(2,0,1,1))return!1;var i=e.getImageData(2,0,1,1).data;o.remove(t),a.supportNewBlendModes=255===i[0]&&0===i[1]&&0===i[2]},t.src=s+"/wCKxvRF"+r},n.src=s+"AP804Oa6"+r,!1),a.supportInverseAlpha=function(){var t=o.create2D(this,2).getContext("2d",{willReadFrequently:!0});t.fillStyle="rgba(10, 20, 30, 0.5)",t.fillRect(0,0,1,1);var e=t.getImageData(0,0,1,1);if(null===e)return!1;t.putImageData(e,1,0);var i=t.getImageData(1,0,1,1),s=i.data[0]===e.data[0]&&i.data[1]===e.data[1]&&i.data[2]===e.data[2]&&i.data[3]===e.data[3];return o.remove(this),s}()),a)},89357:(t,e,i)=>{var s=i(25892),r=i(84148),n=i(27919),o={canvas:!1,canvasBitBltShift:null,file:!1,fileSystem:!1,getUserMedia:!0,littleEndian:!1,localStorage:!1,pointerLock:!1,stableSort:!1,support32bit:!1,vibration:!1,webGL:!1,worker:!1};t.exports=function(){if("function"==typeof importScripts)return o;o.canvas=!!window.CanvasRenderingContext2D;try{o.localStorage=!!localStorage.getItem}catch(h){o.localStorage=!1}o.file=!!(window.File&&window.FileReader&&window.FileList&&window.Blob),o.fileSystem=!!window.requestFileSystem;var t,e,i,a=!1;return o.webGL=function(){if(window.WebGLRenderingContext)try{var t=n.createWebGL(this),e=t.getContext("webgl")||t.getContext("experimental-webgl"),i=n.create2D(this),s=i.getContext("2d",{willReadFrequently:!0}).createImageData(1,1);return a=s.data instanceof Uint8ClampedArray,n.remove(t),n.remove(i),!!e}catch(r){return!1}return!1}(),o.worker=!!window.Worker,o.pointerLock="pointerLockElement"in document||"mozPointerLockElement"in document||"webkitPointerLockElement"in document,navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia||navigator.oGetUserMedia,window.URL=window.URL||window.webkitURL||window.mozURL||window.msURL,o.getUserMedia=o.getUserMedia&&!!navigator.getUserMedia&&!!window.URL,r.firefox&&r.firefoxVersion<21&&(o.getUserMedia=!1),!s.iOS&&(r.ie||r.firefox||r.chrome)&&(o.canvasBitBltShift=!0),(r.safari||r.mobileSafari)&&(o.canvasBitBltShift=!1),navigator.vibrate=navigator.vibrate||navigator.webkitVibrate||navigator.mozVibrate||navigator.msVibrate,navigator.vibrate&&(o.vibration=!0),"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint32Array&&(o.littleEndian=(t=new ArrayBuffer(4),e=new Uint8Array(t),i=new Uint32Array(t),e[0]=161,e[1]=178,e[2]=195,e[3]=212,3569595041===i[0]||2712847316!==i[0]&&null)),o.support32bit="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof Int32Array&&null!==o.littleEndian&&a,o}()},91639:t=>{var e={available:!1,cancel:"",keyboard:!1,request:""};t.exports=function(){if("function"==typeof importScripts)return e;var t,i="Fullscreen",s="FullScreen",r=["request"+i,"request"+s,"webkitRequest"+i,"webkitRequest"+s,"msRequest"+i,"msRequest"+s,"mozRequest"+s,"mozRequest"+i];for(t=0;t{var s=i(84148),r={gamepads:!1,mspointer:!1,touch:!1,wheelEvent:null};t.exports=("function"==typeof importScripts||(("ontouchstart"in document.documentElement||navigator.maxTouchPoints&&navigator.maxTouchPoints>=1)&&(r.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(r.mspointer=!0),navigator.getGamepads&&(r.gamepads=!0),"onwheel"in window||s.ie&&"WheelEvent"in window?r.wheelEvent="wheel":"onmousewheel"in window?r.wheelEvent="mousewheel":s.firefox&&"MouseScrollEvent"in window&&(r.wheelEvent="DOMMouseScroll")),r)},25892:t=>{var e={android:!1,chromeOS:!1,cordova:!1,crosswalk:!1,desktop:!1,ejecta:!1,electron:!1,iOS:!1,iOSVersion:0,iPad:!1,iPhone:!1,kindle:!1,linux:!1,macOS:!1,node:!1,nodeWebkit:!1,pixelRatio:1,webApp:!1,windows:!1,windowsPhone:!1};t.exports=function(){if("function"==typeof importScripts)return e;var t=navigator.userAgent;/Windows/.test(t)?e.windows=!0:/Mac OS/.test(t)&&!/like Mac OS/.test(t)?navigator.maxTouchPoints&&navigator.maxTouchPoints>2?(e.iOS=!0,e.iPad=!0,navigator.appVersion.match(/Version\/(\d+)/),e.iOSVersion=parseInt(RegExp.$1,10)):e.macOS=!0:/Android/.test(t)?e.android=!0:/Linux/.test(t)?e.linux=!0:/iP[ao]d|iPhone/i.test(t)?(e.iOS=!0,navigator.appVersion.match(/OS (\d+)/),e.iOSVersion=parseInt(RegExp.$1,10),e.iPhone=-1!==t.toLowerCase().indexOf("iphone"),e.iPad=-1!==t.toLowerCase().indexOf("ipad")):/Kindle/.test(t)||/\bKF[A-Z][A-Z]+/.test(t)||/Silk.*Mobile Safari/.test(t)?e.kindle=!0:/CrOS/.test(t)&&(e.chromeOS=!0),(/Windows Phone/i.test(t)||/IEMobile/i.test(t))&&(e.android=!1,e.iOS=!1,e.macOS=!1,e.windows=!0,e.windowsPhone=!0);var i=/Silk/.test(t);return(e.windows||e.macOS||e.linux&&!i||e.chromeOS)&&(e.desktop=!0),(e.windowsPhone||/Windows NT/i.test(t)&&/Touch/i.test(t))&&(e.desktop=!1),navigator.standalone&&(e.webApp=!0),"function"!=typeof importScripts&&(void 0!==window.cordova&&(e.cordova=!0),void 0!==window.ejecta&&(e.ejecta=!0)),"undefined"!=typeof process&&process.versions&&process.versions.node&&(e.node=!0),e.node&&"object"==typeof process.versions&&(e.nodeWebkit=!!process.versions["node-webkit"],e.electron=!!process.versions.electron),/Crosswalk/.test(t)&&(e.crosswalk=!0),e.pixelRatio=window.devicePixelRatio||1,e}()},43267:(t,e,i)=>{var s=i(95540),r={h264:!1,hls:!1,mp4:!1,m4v:!1,ogg:!1,vp9:!1,webm:!1,hasRequestVideoFrame:!1};t.exports=function(){if("function"==typeof importScripts)return r;var t=document.createElement("video"),e=!!t.canPlayType,i=/^no$/;try{e&&(t.canPlayType('video/ogg; codecs="theora"').replace(i,"")&&(r.ogg=!0),t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(i,"")&&(r.h264=!0,r.mp4=!0),t.canPlayType("video/x-m4v").replace(i,"")&&(r.m4v=!0),t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(i,"")&&(r.webm=!0),t.canPlayType('video/webm; codecs="vp9"').replace(i,"")&&(r.vp9=!0),t.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(i,"")&&(r.hls=!0))}catch(n){}return t.parentNode&&t.parentNode.removeChild(t),r.getVideoURL=function(t){Array.isArray(t)||(t=[t]);for(var e=0;e{t.exports={os:i(25892),browser:i(84148),features:i(89357),input:i(31784),audio:i(7098),video:i(43267),fullscreen:i(91639),canvasFeatures:i(89289)}},89422:(t,e,i)=>{var s=i(83419),r=new Float32Array(20),n=new s({initialize:function(){this._matrix=new Float32Array(20),this.alpha=1,this._dirty=!0,this._data=new Float32Array(20),this.reset()},set:function(t){return this._matrix.set(t),this._dirty=!0,this},reset:function(){var t=this._matrix;return t.fill(0),t[0]=1,t[6]=1,t[12]=1,t[18]=1,this.alpha=1,this._dirty=!0,this},getData:function(){var t=this._data;return this._dirty&&(t.set(this._matrix),t[4]/=255,t[9]/=255,t[14]/=255,t[19]/=255,this._dirty=!1),t},brightness:function(t,e){void 0===t&&(t=0),void 0===e&&(e=!1);var i=t;return this.multiply([i,0,0,0,0,0,i,0,0,0,0,0,i,0,0,0,0,0,1,0],e)},saturate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=!1);var i=2*t/3+1,s=-.5*(i-1);return this.multiply([i,s,s,0,0,s,i,s,0,0,s,s,i,0,0,0,0,0,1,0],e)},desaturate:function(t){return void 0===t&&(t=!1),this.saturate(-1,t)},hue:function(t,e){void 0===t&&(t=0),void 0===e&&(e=!1),t=t/180*Math.PI;var i=Math.cos(t),s=Math.sin(t),r=.213,n=.715,o=.072;return this.multiply([r+.787*i+s*-r,n+i*-n+s*-n,o+i*-o+.928*s,0,0,r+i*-r+.143*s,n+i*(1-n)+.14*s,o+i*-o+-.283*s,0,0,r+i*-r+-.787*s,n+i*-n+s*n,o+.928*i+s*o,0,0,0,0,0,1,0],e)},grayscale:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=!1),this.saturate(-t,e)},blackWhite:function(t){return void 0===t&&(t=!1),this.multiply(n.BLACK_WHITE,t)},contrast:function(t,e){void 0===t&&(t=0),void 0===e&&(e=!1);var i=t+1,s=-.5*(i-1);return this.multiply([i,0,0,0,s,0,i,0,0,s,0,0,i,0,s,0,0,0,1,0],e)},negative:function(t){return void 0===t&&(t=!1),this.multiply(n.NEGATIVE,t)},desaturateLuminance:function(t){return void 0===t&&(t=!1),this.multiply(n.DESATURATE_LUMINANCE,t)},sepia:function(t){return void 0===t&&(t=!1),this.multiply(n.SEPIA,t)},night:function(t,e){return void 0===t&&(t=.1),void 0===e&&(e=!1),this.multiply([-2*t,-t,0,0,0,-t,0,t,0,0,0,t,2*t,0,0,0,0,0,1,0],e)},lsd:function(t){return void 0===t&&(t=!1),this.multiply(n.LSD,t)},brown:function(t){return void 0===t&&(t=!1),this.multiply(n.BROWN,t)},vintagePinhole:function(t){return void 0===t&&(t=!1),this.multiply(n.VINTAGE,t)},kodachrome:function(t){return void 0===t&&(t=!1),this.multiply(n.KODACHROME,t)},technicolor:function(t){return void 0===t&&(t=!1),this.multiply(n.TECHNICOLOR,t)},polaroid:function(t){return void 0===t&&(t=!1),this.multiply(n.POLAROID,t)},shiftToBGR:function(t){return void 0===t&&(t=!1),this.multiply(n.SHIFT_BGR,t)},multiply:function(t,e){void 0===e&&(e=!1),e||this.reset();var i=this._matrix,s=r;return s.set(i),i.set([s[0]*t[0]+s[1]*t[5]+s[2]*t[10]+s[3]*t[15],s[0]*t[1]+s[1]*t[6]+s[2]*t[11]+s[3]*t[16],s[0]*t[2]+s[1]*t[7]+s[2]*t[12]+s[3]*t[17],s[0]*t[3]+s[1]*t[8]+s[2]*t[13]+s[3]*t[18],s[0]*t[4]+s[1]*t[9]+s[2]*t[14]+s[3]*t[19]+s[4],s[5]*t[0]+s[6]*t[5]+s[7]*t[10]+s[8]*t[15],s[5]*t[1]+s[6]*t[6]+s[7]*t[11]+s[8]*t[16],s[5]*t[2]+s[6]*t[7]+s[7]*t[12]+s[8]*t[17],s[5]*t[3]+s[6]*t[8]+s[7]*t[13]+s[8]*t[18],s[5]*t[4]+s[6]*t[9]+s[7]*t[14]+s[8]*t[19]+s[9],s[10]*t[0]+s[11]*t[5]+s[12]*t[10]+s[13]*t[15],s[10]*t[1]+s[11]*t[6]+s[12]*t[11]+s[13]*t[16],s[10]*t[2]+s[11]*t[7]+s[12]*t[12]+s[13]*t[17],s[10]*t[3]+s[11]*t[8]+s[12]*t[13]+s[13]*t[18],s[10]*t[4]+s[11]*t[9]+s[12]*t[14]+s[13]*t[19]+s[14],s[15]*t[0]+s[16]*t[5]+s[17]*t[10]+s[18]*t[15],s[15]*t[1]+s[16]*t[6]+s[17]*t[11]+s[18]*t[16],s[15]*t[2]+s[16]*t[7]+s[17]*t[12]+s[18]*t[17],s[15]*t[3]+s[16]*t[8]+s[17]*t[13]+s[18]*t[18],s[15]*t[4]+s[16]*t[9]+s[17]*t[14]+s[18]*t[19]+s[19]]),this._dirty=!0,this}});n.BLACK_WHITE=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],n.NEGATIVE=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],n.DESATURATE_LUMINANCE=[.2764723,.929708,.0938197,0,-37.1,.2764723,.929708,.0938197,0,-37.1,.2764723,.929708,.0938197,0,-37.1,0,0,0,1,0],n.SEPIA=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],n.LSD=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],n.BROWN=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],n.VINTAGE=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],n.KODACHROME=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0],n.TECHNICOLOR=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0],n.POLAROID=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],n.SHIFT_BGR=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],t.exports=n},51767:(t,e,i)=>{var s=i(83419),r=i(29747),n=new s({initialize:function(t,e,i){this._rgb=[0,0,0],this.onChangeCallback=r,this.dirty=!1,this.set(t,e,i)},set:function(t,e,i){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),this._rgb=[t,e,i],this.onChange(),this},equals:function(t,e,i){var s=this._rgb;return s[0]===t&&s[1]===e&&s[2]===i},onChange:function(){this.dirty=!0;var t=this._rgb;this.onChangeCallback.call(this,t[0],t[1],t[2])},r:{get:function(){return this._rgb[0]},set:function(t){this._rgb[0]=t,this.onChange()}},g:{get:function(){return this._rgb[1]},set:function(t){this._rgb[1]=t,this.onChange()}},b:{get:function(){return this._rgb[2]},set:function(t){this._rgb[2]=t,this.onChange()}},destroy:function(){this.onChangeCallback=null}});t.exports=n},60461:t=>{t.exports={TOP_LEFT:0,TOP_CENTER:1,TOP_RIGHT:2,LEFT_TOP:3,LEFT_CENTER:4,LEFT_BOTTOM:5,CENTER:6,RIGHT_TOP:7,RIGHT_CENTER:8,RIGHT_BOTTOM:9,BOTTOM_LEFT:10,BOTTOM_CENTER:11,BOTTOM_RIGHT:12}},54312:(t,e,i)=>{var s=i(62235),r=i(35893),n=i(86327),o=i(88417);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,r(e)+i),n(t,s(e)+a),t}},46768:(t,e,i)=>{var s=i(62235),r=i(26541),n=i(86327),o=i(385);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,r(e)-i),n(t,s(e)+a),t}},35827:(t,e,i)=>{var s=i(62235),r=i(54380),n=i(86327),o=i(40136);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,r(e)+i),n(t,s(e)+a),t}},46871:(t,e,i)=>{var s=i(66786),r=i(35893),n=i(7702);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),s(t,r(e)+i,n(e)+o),t}},5198:(t,e,i)=>{var s=i(7702),r=i(26541),n=i(20786),o=i(385);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,r(e)-i),n(t,s(e)+a),t}},11879:(t,e,i)=>{var s=i(60461),r=[];r[s.BOTTOM_CENTER]=i(54312),r[s.BOTTOM_LEFT]=i(46768),r[s.BOTTOM_RIGHT]=i(35827),r[s.CENTER]=i(46871),r[s.LEFT_CENTER]=i(5198),r[s.RIGHT_CENTER]=i(80503),r[s.TOP_CENTER]=i(89698),r[s.TOP_LEFT]=i(922),r[s.TOP_RIGHT]=i(21373),r[s.LEFT_BOTTOM]=r[s.BOTTOM_LEFT],r[s.LEFT_TOP]=r[s.TOP_LEFT],r[s.RIGHT_BOTTOM]=r[s.BOTTOM_RIGHT],r[s.RIGHT_TOP]=r[s.TOP_RIGHT],t.exports=function(t,e,i,s,n){return r[i](t,e,s,n)}},80503:(t,e,i)=>{var s=i(7702),r=i(54380),n=i(20786),o=i(40136);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,r(e)+i),n(t,s(e)+a),t}},89698:(t,e,i)=>{var s=i(35893),r=i(17717),n=i(88417),o=i(66737);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),n(t,s(e)+i),o(t,r(e)-a),t}},922:(t,e,i)=>{var s=i(26541),r=i(17717),n=i(385),o=i(66737);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),n(t,s(e)-i),o(t,r(e)-a),t}},21373:(t,e,i)=>{var s=i(54380),r=i(17717),n=i(40136),o=i(66737);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),n(t,s(e)+i),o(t,r(e)-a),t}},91660:(t,e,i)=>{t.exports={BottomCenter:i(54312),BottomLeft:i(46768),BottomRight:i(35827),Center:i(46871),LeftCenter:i(5198),QuickSet:i(11879),RightCenter:i(80503),TopCenter:i(89698),TopLeft:i(922),TopRight:i(21373)}},71926:(t,e,i)=>{var s=i(60461),r=i(79291),n={In:i(91660),To:i(16694)};n=r(!1,n,s),t.exports=n},21578:(t,e,i)=>{var s=i(62235),r=i(35893),n=i(88417),o=i(66737);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),n(t,r(e)+i),o(t,s(e)+a),t}},10210:(t,e,i)=>{var s=i(62235),r=i(26541),n=i(385),o=i(66737);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),n(t,r(e)-i),o(t,s(e)+a),t}},82341:(t,e,i)=>{var s=i(62235),r=i(54380),n=i(40136),o=i(66737);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),n(t,r(e)+i),o(t,s(e)+a),t}},87958:(t,e,i)=>{var s=i(62235),r=i(26541),n=i(86327),o=i(40136);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,r(e)-i),n(t,s(e)+a),t}},40080:(t,e,i)=>{var s=i(7702),r=i(26541),n=i(20786),o=i(40136);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,r(e)-i),n(t,s(e)+a),t}},88466:(t,e,i)=>{var s=i(26541),r=i(17717),n=i(40136),o=i(66737);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),n(t,s(e)-i),o(t,r(e)-a),t}},38829:(t,e,i)=>{var s=i(60461),r=[];r[s.BOTTOM_CENTER]=i(21578),r[s.BOTTOM_LEFT]=i(10210),r[s.BOTTOM_RIGHT]=i(82341),r[s.LEFT_BOTTOM]=i(87958),r[s.LEFT_CENTER]=i(40080),r[s.LEFT_TOP]=i(88466),r[s.RIGHT_BOTTOM]=i(19211),r[s.RIGHT_CENTER]=i(34609),r[s.RIGHT_TOP]=i(48741),r[s.TOP_CENTER]=i(49440),r[s.TOP_LEFT]=i(81288),r[s.TOP_RIGHT]=i(61323),t.exports=function(t,e,i,s,n){return r[i](t,e,s,n)}},19211:(t,e,i)=>{var s=i(62235),r=i(54380),n=i(86327),o=i(385);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,r(e)+i),n(t,s(e)+a),t}},34609:(t,e,i)=>{var s=i(7702),r=i(54380),n=i(20786),o=i(385);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,r(e)+i),n(t,s(e)+a),t}},48741:(t,e,i)=>{var s=i(54380),r=i(17717),n=i(385),o=i(66737);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),n(t,s(e)+i),o(t,r(e)-a),t}},49440:(t,e,i)=>{var s=i(35893),r=i(17717),n=i(86327),o=i(88417);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),n(t,r(e)-a),t}},81288:(t,e,i)=>{var s=i(26541),r=i(17717),n=i(86327),o=i(385);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),n(t,r(e)-a),t}},61323:(t,e,i)=>{var s=i(54380),r=i(17717),n=i(86327),o=i(40136);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),n(t,r(e)-a),t}},16694:(t,e,i)=>{t.exports={BottomCenter:i(21578),BottomLeft:i(10210),BottomRight:i(82341),LeftBottom:i(87958),LeftCenter:i(40080),LeftTop:i(88466),QuickSet:i(38829),RightBottom:i(19211),RightCenter:i(34609),RightTop:i(48741),TopCenter:i(49440),TopLeft:i(81288),TopRight:i(61323)}},66786:(t,e,i)=>{var s=i(88417),r=i(20786);t.exports=function(t,e,i){return s(t,e),r(t,i)}},62235:t=>{t.exports=function(t){return t.y+t.height-t.height*t.originY}},72873:(t,e,i)=>{var s=i(62235),r=i(26541),n=i(54380),o=i(17717),a=i(87841);t.exports=function(t,e){void 0===e&&(e=new a);var i=r(t),h=o(t);return e.x=i,e.y=h,e.width=n(t)-i,e.height=s(t)-h,e}},35893:t=>{t.exports=function(t){return t.x-t.width*t.originX+.5*t.width}},7702:t=>{t.exports=function(t){return t.y-t.height*t.originY+.5*t.height}},26541:t=>{t.exports=function(t){return t.x-t.width*t.originX}},87431:t=>{t.exports=function(t){return t.width*t.originX}},46928:t=>{t.exports=function(t){return t.height*t.originY}},54380:t=>{t.exports=function(t){return t.x+t.width-t.width*t.originX}},17717:t=>{t.exports=function(t){return t.y-t.height*t.originY}},86327:t=>{t.exports=function(t,e){return t.y=e-t.height+t.height*t.originY,t}},88417:t=>{t.exports=function(t,e){var i=t.width*t.originX;return t.x=e+i-.5*t.width,t}},20786:t=>{t.exports=function(t,e){var i=t.height*t.originY;return t.y=e+i-.5*t.height,t}},385:t=>{t.exports=function(t,e){return t.x=e+t.width*t.originX,t}},40136:t=>{t.exports=function(t,e){return t.x=e-t.width+t.width*t.originX,t}},66737:t=>{t.exports=function(t,e){return t.y=e+t.height*t.originY,t}},58724:(t,e,i)=>{t.exports={CenterOn:i(66786),GetBottom:i(62235),GetBounds:i(72873),GetCenterX:i(35893),GetCenterY:i(7702),GetLeft:i(26541),GetOffsetX:i(87431),GetOffsetY:i(46928),GetRight:i(54380),GetTop:i(17717),SetBottom:i(86327),SetCenterX:i(88417),SetCenterY:i(20786),SetLeft:i(385),SetRight:i(40136),SetTop:i(66737)}},20623:t=>{t.exports={setCrisp:function(t){return["optimizeSpeed","-moz-crisp-edges","-o-crisp-edges","-webkit-optimize-contrast","optimize-contrast","crisp-edges","pixelated"].forEach((function(e){t.style["image-rendering"]=e})),t.style.msInterpolationMode="nearest-neighbor",t},setBicubic:function(t){return t.style["image-rendering"]="auto",t.style.msInterpolationMode="bicubic",t}}},27919:(t,e,i)=>{var s,r,n,o=i(8054),a=i(68703),h=[],l=!1;t.exports=(n=function(){var t=0;return h.forEach((function(e){e.parent&&t++})),t},{create2D:function(t,e,i){return s(t,e,i,o.CANVAS)},create:s=function(t,e,i,s,n){var u;void 0===e&&(e=1),void 0===i&&(i=1),void 0===s&&(s=o.CANVAS),void 0===n&&(n=!1);var c=r(s);return null===c?(c={parent:t,canvas:document.createElement("canvas"),type:s},s===o.CANVAS&&h.push(c),u=c.canvas):(c.parent=t,u=c.canvas),n&&(c.parent=u),u.width=e,u.height=i,l&&s===o.CANVAS&&a.disable(u.getContext("2d",{willReadFrequently:!1})),u},createWebGL:function(t,e,i){return s(t,e,i,o.WEBGL)},disableSmoothing:function(){l=!0},enableSmoothing:function(){l=!1},first:r=function(t){if(void 0===t&&(t=o.CANVAS),t===o.WEBGL)return null;for(var e=0;e{var e,i="";t.exports={disable:function(t){return""===i&&(i=e(t)),i&&(t[i]=!1),t},enable:function(t){return""===i&&(i=e(t)),i&&(t[i]=!0),t},getPrefix:e=function(t){for(var e=["i","webkitI","msI","mozI","oI"],i=0;i{t.exports=function(t,e){return void 0===e&&(e="none"),t.style.msTouchAction=e,t.style["ms-touch-action"]=e,t.style["touch-action"]=e,t}},91610:t=>{t.exports=function(t,e){return void 0===e&&(e="none"),["-webkit-","-khtml-","-moz-","-ms-",""].forEach((function(i){t.style[i+"user-select"]=e})),t.style["-webkit-touch-callout"]=e,t.style["-webkit-tap-highlight-color"]="rgba(0, 0, 0, 0)",t}},26253:(t,e,i)=>{t.exports={CanvasInterpolation:i(20623),CanvasPool:i(27919),Smoothing:i(68703),TouchAction:i(65208),UserSelect:i(91610)}},40987:(t,e,i)=>{var s=i(83419),r=i(37589),n=i(1e3),o=i(7537),a=i(87837),h=new s({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=255),this.r=0,this.g=0,this.b=0,this.a=255,this._h=0,this._s=0,this._v=0,this._locked=!1,this.gl=[0,0,0,1],this._color=0,this._color32=0,this._rgba="",this.setTo(t,e,i,s)},transparent:function(){return this._locked=!0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this._locked=!1,this.update(!0)},setTo:function(t,e,i,s,r){return void 0===s&&(s=255),void 0===r&&(r=!0),this._locked=!0,this.red=t,this.green=e,this.blue=i,this.alpha=s,this._locked=!1,this.update(r)},setGLTo:function(t,e,i,s){return void 0===s&&(s=1),this._locked=!0,this.redGL=t,this.greenGL=e,this.blueGL=i,this.alphaGL=s,this._locked=!1,this.update(!0)},setFromRGB:function(t){return this._locked=!0,this.red=t.r,this.green=t.g,this.blue=t.b,t.hasOwnProperty("a")&&(this.alpha=t.a),this._locked=!1,this.update(!0)},setFromHSV:function(t,e,i){return o(t,e,i,this)},update:function(t){if(void 0===t&&(t=!1),this._locked)return this;var e=this.r,i=this.g,s=this.b,o=this.a;return this._color=r(e,i,s),this._color32=n(e,i,s,o),this._rgba="rgba("+e+","+i+","+s+","+o/255+")",t&&a(e,i,s,this),this},updateHSV:function(){var t=this.r,e=this.g,i=this.b;return a(t,e,i,this),this},clone:function(){return new h(this.r,this.g,this.b,this.a)},gray:function(t){return this.setTo(t,t,t)},random:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t)),s=Math.floor(t+Math.random()*(e-t)),r=Math.floor(t+Math.random()*(e-t));return this.setTo(i,s,r)},randomGray:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t));return this.setTo(i,i,i)},saturate:function(t){return this.s+=t/100,this},desaturate:function(t){return this.s-=t/100,this},lighten:function(t){return this.v+=t/100,this},darken:function(t){return this.v-=t/100,this},brighten:function(t){var e=this.r,i=this.g,s=this.b;return e=Math.max(0,Math.min(255,e-Math.round(-t/100*255))),i=Math.max(0,Math.min(255,i-Math.round(-t/100*255))),s=Math.max(0,Math.min(255,s-Math.round(-t/100*255))),this.setTo(e,i,s)},color:{get:function(){return this._color}},color32:{get:function(){return this._color32}},rgba:{get:function(){return this._rgba}},redGL:{get:function(){return this.gl[0]},set:function(t){this.gl[0]=Math.min(Math.abs(t),1),this.r=Math.floor(255*this.gl[0]),this.update(!0)}},greenGL:{get:function(){return this.gl[1]},set:function(t){this.gl[1]=Math.min(Math.abs(t),1),this.g=Math.floor(255*this.gl[1]),this.update(!0)}},blueGL:{get:function(){return this.gl[2]},set:function(t){this.gl[2]=Math.min(Math.abs(t),1),this.b=Math.floor(255*this.gl[2]),this.update(!0)}},alphaGL:{get:function(){return this.gl[3]},set:function(t){this.gl[3]=Math.min(Math.abs(t),1),this.a=Math.floor(255*this.gl[3]),this.update()}},red:{get:function(){return this.r},set:function(t){t=Math.floor(Math.abs(t)),this.r=Math.min(t,255),this.gl[0]=t/255,this.update(!0)}},green:{get:function(){return this.g},set:function(t){t=Math.floor(Math.abs(t)),this.g=Math.min(t,255),this.gl[1]=t/255,this.update(!0)}},blue:{get:function(){return this.b},set:function(t){t=Math.floor(Math.abs(t)),this.b=Math.min(t,255),this.gl[2]=t/255,this.update(!0)}},alpha:{get:function(){return this.a},set:function(t){t=Math.floor(Math.abs(t)),this.a=Math.min(t,255),this.gl[3]=t/255,this.update()}},h:{get:function(){return this._h},set:function(t){this._h=t,o(t,this._s,this._v,this)}},s:{get:function(){return this._s},set:function(t){this._s=t,o(this._h,t,this._v,this)}},v:{get:function(){return this._v},set:function(t){this._v=t,o(this._h,this._s,t,this)}}});t.exports=h},92728:(t,e,i)=>{var s=i(37589);t.exports=function(t){void 0===t&&(t=1024);var e,i=[],r=255,n=255,o=0,a=0;for(e=0;e<=r;e++)i.push({r:n,g:e,b:a,color:s(n,e,a)});for(o=255,e=r;e>=0;e--)i.push({r:e,g:o,b:a,color:s(e,o,a)});for(n=0,e=0;e<=r;e++,o--)i.push({r:n,g:o,b:e,color:s(n,o,e)});for(o=0,a=255,e=0;e<=r;e++,a--,n++)i.push({r:n,g:o,b:a,color:s(n,o,a)});if(1024===t)return i;var h=[],l=0,u=1024/t;for(e=0;e{t.exports=function(t){var e={r:t>>16&255,g:t>>8&255,b:255&t,a:255};return t>16777215&&(e.a=t>>>24),e}},62957:t=>{t.exports=function(t){var e=t.toString(16);return 1===e.length?"0"+e:e}},37589:t=>{t.exports=function(t,e,i){return t<<16|e<<8|i}},1e3:t=>{t.exports=function(t,e,i,s){return s<<24|t<<16|e<<8|i}},62183:(t,e,i)=>{var s=i(40987),r=i(89528);t.exports=function(t,e,i){var n=i,o=i,a=i;if(0!==e){var h=i<.5?i*(1+e):i+e-i*e,l=2*i-h;n=r(l,h,t+1/3),o=r(l,h,t),a=r(l,h,t-1/3)}return(new s).setGLTo(n,o,a,1)}},27939:(t,e,i)=>{var s=i(7537);t.exports=function(t,e){void 0===t&&(t=1),void 0===e&&(e=1);for(var i=[],r=0;r<=359;r++)i.push(s(r/359,t,e));return i}},7537:(t,e,i)=>{var s=i(37589);function r(t,e,i,s){var r=(t+6*e)%6,n=Math.min(r,4-r,1);return Math.round(255*(s-s*i*Math.max(0,n)))}t.exports=function(t,e,i,n){void 0===e&&(e=1),void 0===i&&(i=1);var o=r(5,t,e,i),a=r(3,t,e,i),h=r(1,t,e,i);return n?n.setTo?n.setTo(o,a,h,n.alpha,!0):(n.r=o,n.g=a,n.b=h,n.color=s(o,a,h),n):{r:o,g:a,b:h,color:s(o,a,h)}}},70238:(t,e,i)=>{var s=i(40987);t.exports=function(t){var e=new s;t=t.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,i,s){return e+e+i+i+s+s}));var i=/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(i){var r=parseInt(i[1],16),n=parseInt(i[2],16),o=parseInt(i[3],16);e.setTo(r,n,o)}return e}},89528:t=>{t.exports=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}},30100:(t,e,i)=>{var s=i(40987),r=i(90664);t.exports=function(t){var e=r(t);return new s(e.r,e.g,e.b,e.a)}},90664:t=>{t.exports=function(t){return t>16777215?{a:t>>>24,r:t>>16&255,g:t>>8&255,b:255&t}:{a:255,r:t>>16&255,g:t>>8&255,b:255&t}}},13699:(t,e,i)=>{var s=i(28915),r=function(t,e,i,r,n,o,a,h){void 0===a&&(a=100),void 0===h&&(h=0);var l=h/a;return{r:s(t,r,l),g:s(e,n,l),b:s(i,o,l)}};t.exports={RGBWithRGB:r,ColorWithRGB:function(t,e,i,s,n,o){return void 0===n&&(n=100),void 0===o&&(o=0),r(t.r,t.g,t.b,e,i,s,n,o)},ColorWithColor:function(t,e,i,s){return void 0===i&&(i=100),void 0===s&&(s=0),r(t.r,t.g,t.b,e.r,e.g,e.b,i,s)}}},68957:(t,e,i)=>{var s=i(40987);t.exports=function(t){return new s(t.r,t.g,t.b,t.a)}},87388:(t,e,i)=>{var s=i(40987);t.exports=function(t){var e=new s,i=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(t.toLowerCase());if(i){var r=parseInt(i[1],10),n=parseInt(i[2],10),o=parseInt(i[3],10),a=void 0!==i[4]?parseFloat(i[4]):1;e.setTo(r,n,o,255*a)}return e}},87837:t=>{t.exports=function(t,e,i,s){void 0===s&&(s={h:0,s:0,v:0}),t/=255,e/=255,i/=255;var r=Math.min(t,e,i),n=Math.max(t,e,i),o=n-r,a=0,h=0===n?0:o/n,l=n;return n!==r&&(n===t?a=(e-i)/o+(e{var s=i(62957);t.exports=function(t,e,i,r,n){return void 0===r&&(r=255),void 0===n&&(n="#"),"#"===n?"#"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1,7):"0x"+s(r)+s(t)+s(e)+s(i)}},85386:(t,e,i)=>{var s=i(30976),r=i(40987);t.exports=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=255),new r(s(t,e),s(t,e),s(t,e))}},80333:(t,e,i)=>{var s=i(70238),r=i(30100),n=i(68957),o=i(87388);t.exports=function(t){switch(typeof t){case"string":return"rgb"===t.substr(0,3).toLowerCase()?o(t):s(t);case"number":return r(t);case"object":return n(t)}}},3956:(t,e,i)=>{var s=i(40987);s.ColorSpectrum=i(92728),s.ColorToRGBA=i(91588),s.ComponentToHex=i(62957),s.GetColor=i(37589),s.GetColor32=i(1e3),s.HexStringToColor=i(70238),s.HSLToColor=i(62183),s.HSVColorWheel=i(27939),s.HSVToRGB=i(7537),s.HueToComponent=i(89528),s.IntegerToColor=i(30100),s.IntegerToRGB=i(90664),s.Interpolate=i(13699),s.ObjectToColor=i(68957),s.RandomRGB=i(85386),s.RGBStringToColor=i(87388),s.RGBToHSV=i(87837),s.RGBToString=i(75723),s.ValueToColor=i(80333),t.exports=s},27460:(t,e,i)=>{t.exports={Align:i(71926),BaseShader:i(73894),Bounds:i(58724),Canvas:i(26253),Color:i(3956),ColorMatrix:i(89422),Masks:i(69781),RGB:i(51767)}},6858:(t,e,i)=>{var s=i(83419),r=i(39429),n=new s({initialize:function(t,e,i,s,r,n){e||(e=t.sys.make.image({x:i,y:s,key:r,frame:n,add:!1})),this.bitmapMask=e,this.invertAlpha=!1,this.isStencil=!1},setBitmap:function(t){this.bitmapMask=t},preRenderWebGL:function(t,e,i){t.pipelines.BITMAPMASK_PIPELINE.beginMask(this,e,i)},postRenderWebGL:function(t,e,i){t.pipelines.BITMAPMASK_PIPELINE.endMask(this,e,i)},preRenderCanvas:function(){},postRenderCanvas:function(){},destroy:function(){this.bitmapMask=null}});r.register("bitmapMask",(function(t,e,i,s,r){return new n(this.scene,t,e,i,s,r)})),t.exports=n},80661:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e){this.geometryMask=e,this.invertAlpha=!1,this.isStencil=!0,this.level=0},setShape:function(t){return this.geometryMask=t,this},setInvertAlpha:function(t){return void 0===t&&(t=!0),this.invertAlpha=t,this},preRenderWebGL:function(t,e,i){var s=t.gl;t.flush(),0===t.maskStack.length&&(s.enable(s.STENCIL_TEST),s.clear(s.STENCIL_BUFFER_BIT),t.maskCount=0),t.currentCameraMask.mask!==this&&(t.currentMask.mask=this),t.maskStack.push({mask:this,camera:i}),this.applyStencil(t,i,!0),t.maskCount++},applyStencil:function(t,e,i){var s=t.gl,r=this.geometryMask,n=t.maskCount,o=255;s.colorMask(!1,!1,!1,!1),i?(s.stencilFunc(s.EQUAL,n,o),s.stencilOp(s.KEEP,s.KEEP,s.INCR),n++):(s.stencilFunc(s.EQUAL,n+1,o),s.stencilOp(s.KEEP,s.KEEP,s.DECR)),this.level=n,r.renderWebGL(t,r,e),t.flush(),s.colorMask(!0,!0,!0,!0),s.stencilOp(s.KEEP,s.KEEP,s.KEEP),this.invertAlpha?s.stencilFunc(s.NOTEQUAL,n,o):s.stencilFunc(s.EQUAL,n,o)},postRenderWebGL:function(t){var e=t.gl;t.maskStack.pop(),t.maskCount--,t.flush();var i=t.currentMask;if(0===t.maskStack.length)i.mask=null,e.disable(e.STENCIL_TEST);else{var s=t.maskStack[t.maskStack.length-1];s.mask.applyStencil(t,s.camera,!1),t.currentCameraMask.mask!==s.mask?(i.mask=s.mask,i.camera=s.camera):i.mask=null}},preRenderCanvas:function(t,e,i){var s=this.geometryMask;t.currentContext.save(),s.renderCanvas(t,s,i,null,null,!0),t.currentContext.clip()},postRenderCanvas:function(t){t.currentContext.restore()},destroy:function(){this.geometryMask=null}});t.exports=s},69781:(t,e,i)=>{t.exports={BitmapMask:i(6858),GeometryMask:i(80661)}},73894:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e,i,s){e&&""!==e||(e=["precision mediump float;","uniform vec2 resolution;","varying vec2 fragCoord;","void main () {"," vec2 uv = fragCoord / resolution.xy;"," gl_FragColor = vec4(uv.xyx, 1.0);","}"].join("\n")),i&&""!==i||(i=["precision mediump float;","uniform mat4 uProjectionMatrix;","uniform mat4 uViewMatrix;","uniform vec2 uResolution;","attribute vec2 inPosition;","varying vec2 fragCoord;","varying vec2 outTexCoord;","void main () {"," gl_Position = uProjectionMatrix * uViewMatrix * vec4(inPosition, 1.0, 1.0);"," fragCoord = vec2(inPosition.x, uResolution.y - inPosition.y);"," outTexCoord = vec2(inPosition.x / uResolution.x, fragCoord.y / uResolution.y);","}"].join("\n")),void 0===s&&(s=null),this.key=t,this.fragmentSrc=e,this.vertexSrc=i,this.uniforms=s}});t.exports=s},40366:t=>{t.exports=function(t,e){var i;if(e)"string"==typeof e?i=document.getElementById(e):"object"==typeof e&&1===e.nodeType&&(i=e);else if(t.parentElement||null===e)return t;return i||(i=document.body),i.appendChild(t),t}},83719:(t,e,i)=>{var s=i(40366);t.exports=function(t){var e=t.config;if(e.parent&&e.domCreateContainer){var i=document.createElement("div");i.style.cssText=["display: block;","width: "+t.scale.width+"px;","height: "+t.scale.height+"px;","padding: 0; margin: 0;","position: absolute;","overflow: hidden;","pointer-events: "+e.domPointerEvents+";","transform: scale(1);","transform-origin: left top;"].join(" "),t.domContainer=i,s(i,e.parent)}}},57264:(t,e,i)=>{var s=i(25892);t.exports=function(t){if("complete"!==document.readyState&&"interactive"!==document.readyState){var e=function(){document.removeEventListener("deviceready",e,!0),document.removeEventListener("DOMContentLoaded",e,!0),window.removeEventListener("load",e,!0),t()};document.body?s.cordova?document.addEventListener("deviceready",e,!1):(document.addEventListener("DOMContentLoaded",e,!0),window.addEventListener("load",e,!0)):window.setTimeout(e,20)}else t()}},57811:t=>{t.exports=function(t){if(!t)return window.innerHeight;var e=Math.abs(window.orientation),i={w:0,h:0},s=document.createElement("div");return s.setAttribute("style","position: fixed; height: 100vh; width: 0; top: 0"),document.documentElement.appendChild(s),i.w=90===e?s.offsetHeight:window.innerWidth,i.h=90===e?window.innerWidth:s.offsetHeight,document.documentElement.removeChild(s),s=null,90!==Math.abs(window.orientation)?i.h:i.w}},45818:(t,e,i)=>{var s=i(13560);t.exports=function(t,e){var i=window.screen,r=!!i&&(i.orientation||i.mozOrientation||i.msOrientation);return r&&"string"==typeof r.type?r.type:"string"==typeof r?r:"number"==typeof window.orientation?0===window.orientation||180===window.orientation?s.ORIENTATION.PORTRAIT:s.ORIENTATION.LANDSCAPE:window.matchMedia?window.matchMedia("(orientation: portrait)").matches?s.ORIENTATION.PORTRAIT:window.matchMedia("(orientation: landscape)").matches?s.ORIENTATION.LANDSCAPE:void 0:e>t?s.ORIENTATION.PORTRAIT:s.ORIENTATION.LANDSCAPE}},74403:t=>{t.exports=function(t){var e;return""!==t&&("string"==typeof t?e=document.getElementById(t):t&&1===t.nodeType&&(e=t)),e||(e=document.body),e}},56836:t=>{t.exports=function(t){var e="";try{window.DOMParser?e=(new DOMParser).parseFromString(t,"text/xml"):(e=new ActiveXObject("Microsoft.XMLDOM")).loadXML(t)}catch(i){e=null}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length?e:null}},35846:t=>{t.exports=function(t){t.parentNode&&t.parentNode.removeChild(t)}},43092:(t,e,i)=>{var s=i(83419),r=i(29747),n=new s({initialize:function(){this.isRunning=!1,this.callback=r,this.isSetTimeOut=!1,this.timeOutID=null,this.delay=0;var t=this;this.step=function e(i){t.callback(i),t.isRunning&&(t.timeOutID=window.requestAnimationFrame(e))},this.stepTimeout=function e(){t.isRunning&&(t.timeOutID=window.setTimeout(e,t.delay)),t.callback(window.performance.now())}},start:function(t,e,i){this.isRunning||(this.callback=t,this.isSetTimeOut=e,this.delay=i,this.isRunning=!0,this.timeOutID=e?window.setTimeout(this.stepTimeout,0):window.requestAnimationFrame(this.step))},stop:function(){this.isRunning=!1,this.isSetTimeOut?clearTimeout(this.timeOutID):window.cancelAnimationFrame(this.timeOutID)},destroy:function(){this.stop(),this.callback=r}});t.exports=n},84902:(t,e,i)=>{var s={AddToDOM:i(40366),DOMContentLoaded:i(57264),GetInnerHeight:i(57811),GetScreenOrientation:i(45818),GetTarget:i(74403),ParseXML:i(56836),RemoveFromDOM:i(35846),RequestAnimationFrame:i(43092)};t.exports=s},47565:(t,e,i)=>{var s=i(83419),r=i(50792),n=i(37277),o=new s({Extends:r,initialize:function(){r.call(this)},shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});n.register("EventEmitter",o,"events"),t.exports=o},93055:(t,e,i)=>{t.exports={EventEmitter:i(47565)}},20122:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e){void 0===e&&(e=1),r.call(this,n.BARREL,t),this.amount=e}});t.exports=o},32251:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o,a,h){void 0===i&&(i=1),void 0===s&&(s=1),void 0===o&&(o=1),void 0===a&&(a=1),void 0===h&&(h=4),r.call(this,n.BLOOM,t),this.steps=h,this.offsetX=i,this.offsetY=s,this.blurStrength=o,this.strength=a,this.glcolor=[1,1,1],null!=e&&(this.color=e)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=o},9047:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o,a,h){void 0===e&&(e=0),void 0===i&&(i=2),void 0===s&&(s=2),void 0===o&&(o=1),void 0===h&&(h=4),r.call(this,n.BLUR,t),this.quality=e,this.x=i,this.y=s,this.steps=h,this.strength=o,this.glcolor=[1,1,1],null!=a&&(this.color=a)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=o},27885:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o,a,h,l){void 0===e&&(e=.5),void 0===i&&(i=1),void 0===s&&(s=.2),void 0===o&&(o=!1),void 0===a&&(a=1),void 0===h&&(h=1),void 0===l&&(l=1),r.call(this,n.BOKEH,t),this.radius=e,this.amount=i,this.contrast=s,this.isTiltShift=o,this.strength=l,this.blurX=a,this.blurY=h}});t.exports=o},12578:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o,a){void 0===e&&(e=8),void 0===o&&(o=1),void 0===a&&(a=.005),r.call(this,n.CIRCLE,t),this.scale=o,this.feather=a,this.thickness=e,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4],null!=i&&(this.color=i),null!=s&&(this.backgroundColor=s)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}},backgroundColor:{get:function(){var t=this.glcolor2;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor2;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}},backgroundAlpha:{get:function(){return this.glcolor2[3]},set:function(t){this.glcolor2[3]=t}}});t.exports=o},15802:(t,e,i)=>{var s=i(83419),r=i(89422),n=i(14811),o=new s({Extends:r,initialize:function(t){r.call(this),this.type=n.COLOR_MATRIX,this.gameObject=t,this.active=!0},destroy:function(){this.gameObject=null,this._matrix=null,this._data=null}});t.exports=o},72898:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e){this.type=t,this.gameObject=e,this.active=!0},setActive:function(t){return this.active=t,this},destroy:function(){this.gameObject=null,this.active=!1}});t.exports=s},44553:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s){void 0===e&&(e="__WHITE"),void 0===i&&(i=.005),void 0===s&&(s=.005),r.call(this,n.DISPLACEMENT,t),this.x=i,this.y=s,this.glTexture,this.setTexture(e)},setTexture:function(t){var e=this.gameObject.scene.sys.textures.getFrame(t);return e&&(this.glTexture=e.glTexture),this}});t.exports=o},68531:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o){void 0===i&&(i=4),void 0===s&&(s=0),void 0===o&&(o=!1),r.call(this,n.GLOW,t),this.outerStrength=i,this.innerStrength=s,this.knockout=o,this.glcolor=[1,1,1,1],void 0!==e&&(this.color=e)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=o},37102:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o,a,h,l,u){void 0===s&&(s=.2),void 0===o&&(o=0),void 0===a&&(a=0),void 0===h&&(h=0),void 0===l&&(l=1),void 0===u&&(u=0),r.call(this,n.GRADIENT,t),this.alpha=s,this.size=u,this.fromX=o,this.fromY=a,this.toX=h,this.toY=l,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0],null!=e&&(this.color1=e),null!=i&&(this.color2=i)},color1:{get:function(){var t=this.glcolor1;return(t[0]<<16)+(t[1]<<8)+(0|t[2])},set:function(t){var e=this.glcolor1;e[0]=t>>16&255,e[1]=t>>8&255,e[2]=255&t}},color2:{get:function(){var t=this.glcolor2;return(t[0]<<16)+(t[1]<<8)+(0|t[2])},set:function(t){var e=this.glcolor2;e[0]=t>>16&255,e[1]=t>>8&255,e[2]=255&t}}});t.exports=o},86886:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e){void 0===e&&(e=1),r.call(this,n.PIXELATE,t),this.amount=e}});t.exports=o},92322:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o,a,h,l){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=.1),void 0===o&&(o=1),void 0===h&&(h=6),void 0===l&&(l=1),r.call(this,n.SHADOW,t),this.x=e,this.y=i,this.decay=s,this.power=o,this.glcolor=[0,0,0,1],this.samples=h,this.intensity=l,void 0!==a&&(this.color=a)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=o},39563:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o){void 0===e&&(e=.5),void 0===i&&(i=.5),void 0===s&&(s=3),void 0===o&&(o=!1),r.call(this,n.SHINE,t),this.speed=e,this.lineWidth=i,this.gradient=s,this.reveal=o}});t.exports=o},56448:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o){void 0===e&&(e=.5),void 0===i&&(i=.5),void 0===s&&(s=.5),void 0===o&&(o=.5),r.call(this,n.VIGNETTE,t),this.x=e,this.y=i,this.radius=s,this.strength=o}});t.exports=o},38433:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o){void 0===e&&(e=.1),void 0===i&&(i=0),void 0===s&&(s=0),void 0===o&&(o=!1),r.call(this,n.WIPE,t),this.progress=0,this.wipeWidth=e,this.direction=i,this.axis=s,this.reveal=o}});t.exports=o},14811:t=>{t.exports={GLOW:4,SHADOW:5,PIXELATE:6,VIGNETTE:7,SHINE:8,BLUR:9,GRADIENT:12,BLOOM:13,COLOR_MATRIX:14,CIRCLE:15,BARREL:16,DISPLACEMENT:17,WIPE:18,BOKEH:19}},66064:(t,e,i)=>{var s=i(79291),r=i(14811),n={Barrel:i(20122),Controller:i(72898),Bloom:i(32251),Blur:i(9047),Bokeh:i(27885),Circle:i(12578),ColorMatrix:i(15802),Displacement:i(44553),Glow:i(68531),Gradient:i(37102),Pixelate:i(86886),Shadow:i(92322),Shine:i(39563),Vignette:i(56448),Wipe:i(38433)};n=s(!1,n,r),t.exports=n},25305:(t,e,i)=>{var s=i(10312),r=i(23568);t.exports=function(t,e,i){e.x=r(i,"x",0),e.y=r(i,"y",0),e.depth=r(i,"depth",0),e.flipX=r(i,"flipX",!1),e.flipY=r(i,"flipY",!1);var n=r(i,"scale",null);"number"==typeof n?e.setScale(n):null!==n&&(e.scaleX=r(n,"x",1),e.scaleY=r(n,"y",1));var o=r(i,"scrollFactor",null);"number"==typeof o?e.setScrollFactor(o):null!==o&&(e.scrollFactorX=r(o,"x",1),e.scrollFactorY=r(o,"y",1)),e.rotation=r(i,"rotation",0);var a=r(i,"angle",null);null!==a&&(e.angle=a),e.alpha=r(i,"alpha",1);var h=r(i,"origin",null);if("number"==typeof h)e.setOrigin(h);else if(null!==h){var l=r(h,"x",.5),u=r(h,"y",.5);e.setOrigin(l,u)}return e.blendMode=r(i,"blendMode",s.NORMAL),e.visible=r(i,"visible",!0),r(i,"add",!0)&&t.sys.displayList.add(e),e.preUpdate&&t.sys.updateList.add(e),e}},13059:(t,e,i)=>{var s=i(23568);t.exports=function(t,e){var i=s(e,"anims",null);if(null===i)return t;if("string"==typeof i)t.anims.play(i);else if("object"==typeof i){var r=t.anims,n=s(i,"key",void 0);if(n){var o=s(i,"startFrame",void 0),a=s(i,"delay",0),h=s(i,"repeat",0),l=s(i,"repeatDelay",0),u=s(i,"yoyo",!1),c=s(i,"play",!1),d=s(i,"delayedPlay",0),p={key:n,delay:a,repeat:h,repeatDelay:l,yoyo:u,startFrame:o};c?r.play(p):d>0?r.playAfterDelay(p,d):r.load(p)}}return t}},8050:(t,e,i)=>{var s=i(83419),r=i(73162),n=i(37277),o=i(51708),a=i(44594),h=i(19186),l=new s({Extends:r,initialize:function(t){r.call(this,t),this.sortChildrenFlag=!1,this.scene=t,this.systems=t.sys,this.events=t.sys.events,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.events.once(a.BOOT,this.boot,this),this.events.on(a.START,this.start,this)},boot:function(){this.events.once(a.DESTROY,this.destroy,this)},addChildCallback:function(t){t.displayList&&t.displayList!==this&&t.removeFromDisplayList(),t.parentContainer&&t.parentContainer.remove(t),t.displayList||(this.queueDepthSort(),t.displayList=this,t.emit(o.ADDED_TO_SCENE,t,this.scene),this.events.emit(a.ADDED_TO_SCENE,t,this.scene))},removeChildCallback:function(t){this.queueDepthSort(),t.displayList=null,t.emit(o.REMOVED_FROM_SCENE,t,this.scene),this.events.emit(a.REMOVED_FROM_SCENE,t,this.scene)},start:function(){this.events.once(a.SHUTDOWN,this.shutdown,this)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(h(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(t,e){return t._depth-e._depth},getChildren:function(){return this.list},shutdown:function(){for(var t=this.list;t.length;)t[0].destroy(!0);this.events.off(a.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(a.START,this.start,this),this.scene=null,this.systems=null,this.events=null}});n.register("DisplayList",l,"displayList"),t.exports=l},95643:(t,e,i)=>{var s=i(83419),r=i(53774),n=i(45893),o=i(50792),a=i(51708),h=i(44594),l=new s({Extends:o,initialize:function(t,e){o.call(this),this.scene=t,this.displayList=null,this.type=e,this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,this.on(a.ADDED_TO_SCENE,this.addedToScene,this),this.on(a.REMOVED_FROM_SCENE,this.removedFromScene,this),t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new n(this)),this},setData:function(t,e){return this.data||(this.data=new n(this)),this.data.set(t,e),this},incData:function(t,e){return this.data||(this.data=new n(this)),this.data.inc(t,e),this},toggleData:function(t){return this.data||(this.data=new n(this)),this.data.toggle(t),this},getData:function(t){return this.data||(this.data=new n(this)),this.data.get(t)},setInteractive:function(t,e,i){return this.scene.sys.input.enable(this,t,e,i),this},disableInteractive:function(){return this.scene.sys.input.disable(this),this},removeInteractive:function(){return this.scene.sys.input.clear(this),this.input=void 0,this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return r(this)},willRender:function(t){return!(this.displayList&&this.displayList.active&&!this.displayList.willRender(t)||l.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),t=e,e.parentContainer);)e=e.parentContainer;return this.displayList?i.unshift(this.displayList.getIndex(t)):i.unshift(this.scene.sys.displayList.getIndex(t)),i},addToDisplayList:function(t){return void 0===t&&(t=this.scene.sys.displayList),this.displayList&&this.displayList!==t&&this.removeFromDisplayList(),t.exists(this)||(this.displayList=t,t.add(this,!0),t.queueDepthSort(),this.emit(a.ADDED_TO_SCENE,this,this.scene),t.events.emit(h.ADDED_TO_SCENE,this,this.scene)),this},addToUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.add(this),this},removeFromDisplayList:function(){var t=this.displayList||this.scene.sys.displayList;return t&&t.exists(this)&&(t.remove(this,!0),t.queueDepthSort(),this.displayList=null,this.emit(a.REMOVED_FROM_SCENE,this,this.scene),t.events.emit(h.REMOVED_FROM_SCENE,this,this.scene)),this},removeFromUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.remove(this),this},destroy:function(t){this.scene&&!this.ignoreDestroy&&(void 0===t&&(t=!1),this.preDestroy&&this.preDestroy.call(this),this.emit(a.DESTROY,this,t),this.removeAllListeners(),this.postPipelines&&this.resetPostPipeline(!0),this.removeFromDisplayList(),this.removeFromUpdateList(),this.input&&(this.scene.sys.input.clear(this),this.input=void 0),this.data&&(this.data.destroy(),this.data=void 0),this.body&&(this.body.destroy(),this.body=void 0),this.preFX&&(this.preFX.destroy(),this.preFX=void 0),this.postFX&&(this.postFX.destroy(),this.postFX=void 0),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0)}});l.RENDER_MASK=15,t.exports=l},44603:(t,e,i)=>{var s=i(83419),r=i(37277),n=i(44594),o=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.events=t.sys.events,this.displayList,this.updateList,this.events.once(n.BOOT,this.boot,this),this.events.on(n.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(n.DESTROY,this.destroy,this)},start:function(){this.events.once(n.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.events.off(n.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(n.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},r.register("GameObjectCreator",o,"make"),t.exports=o},39429:(t,e,i)=>{var s=i(83419),r=i(37277),n=i(44594),o=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.events=t.sys.events,this.displayList,this.updateList,this.events.once(n.BOOT,this.boot,this),this.events.on(n.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(n.DESTROY,this.destroy,this)},start:function(){this.events.once(n.SHUTDOWN,this.shutdown,this)},existing:function(t){return(t.renderCanvas||t.renderWebGL)&&this.displayList.add(t),t.preUpdate&&this.updateList.add(t),t},shutdown:function(){this.events.off(n.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(n.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},r.register("GameObjectFactory",o,"add"),t.exports=o},91296:(t,e,i)=>{var s=i(61340),r=new s,n=new s,o=new s,a={camera:r,sprite:n,calc:o};t.exports=function(t,e,i){var s=r,h=n,l=o;return h.applyITRS(t.x,t.y,t.rotation,t.scaleX,t.scaleY),s.copyFrom(e.matrix),i?(s.multiplyWithOffset(i,-e.scrollX*t.scrollFactorX,-e.scrollY*t.scrollFactorY),h.e=t.x,h.f=t.y):(h.e-=e.scrollX*t.scrollFactorX,h.f-=e.scrollY*t.scrollFactorY),s.multiply(h,l),a}},45027:(t,e,i)=>{var s=i(83419),r=i(25774),n=i(37277),o=i(44594),a=new s({Extends:r,initialize:function(t){r.call(this),this.checkQueue=!0,this.scene=t,this.systems=t.sys,t.sys.events.once(o.BOOT,this.boot,this),t.sys.events.on(o.START,this.start,this)},boot:function(){this.systems.events.once(o.DESTROY,this.destroy,this)},start:function(){var t=this.systems.events;t.on(o.PRE_UPDATE,this.update,this),t.on(o.UPDATE,this.sceneUpdate,this),t.once(o.SHUTDOWN,this.shutdown,this)},sceneUpdate:function(t,e){for(var i=this._active,s=i.length,r=0;r{t.exports=function(t,e,i,s,r,n,o,a,h,l,u,c,d,p,f){var g=i.x-e.displayOriginX+r,m=i.y-e.displayOriginY+n,v=g+i.w,y=m+i.h,x=o.getXRound(g,m,a),w=o.getYRound(g,m,a),T=o.getXRound(g,y,a),b=o.getYRound(g,y,a),S=o.getXRound(v,y,a),E=o.getYRound(v,y,a),C=o.getXRound(v,m,a),A=o.getYRound(v,m,a);t.batchQuad(e,x,w,T,b,S,E,C,A,s.u0,s.v0,s.u1,s.v1,h,l,u,c,d,p,f)}},53048:t=>{t.exports=function(t,e,i,s){if(void 0===i&&(i=!1),void 0===s)return s={local:{x:0,y:0,width:0,height:0},global:{x:0,y:0,width:0,height:0},lines:{shortest:0,longest:0,lengths:null,height:0},wrappedText:"",words:[],characters:[],scaleX:0,scaleY:0};var r,n,o,a,h=t.text,l=h.length,u=t.maxWidth,c=t.wordWrapCharCode,d=Number.MAX_VALUE,p=Number.MAX_VALUE,f=0,g=0,m=t.fontData.chars,v=t.fontData.lineHeight,y=t.letterSpacing,x=t.lineSpacing,w=0,T=0,b=0,S=null,E=t._align,C=0,A=0,_=t.fontSize/t.fontData.size,P=_*t.scaleX,R=_*t.scaleY,M=null,k=0,L=[],O=Number.MAX_VALUE,F=0,D=0,I=0,B=[],N=[],U=null;if(u>0){for(r=0;ru||H-X>u?(G.push(W.i-1),W.cr?(G.push(W.i+W.word.length),X=0,z=null):z=W):W.cr&&(G.push(W.i+W.word.length),X=0,z=null)}for(r=G.length-1;r>=0;r--)n=h,o=G[r],a="\n",h=n.substr(0,o)+a+n.substr(o+1);s.wrappedText=h,l=h.length,B=[],U=null}var j=0;for(r=0;rC&&(d=C),p>A&&(p=A);var K=C+S.xAdvance,Z=A+v;fF&&(F=I),IF&&(F=I),I0)for(var Q=0;Q{var s=i(21859);t.exports=function(t,e,i,r,n,o,a){var h=t.sys.textures.get(i),l=h.get(r),u=t.sys.cache.xml.get(n);if(l&&u){var c=s(u,l,o,a,h);return t.sys.cache.bitmapFont.add(e,{data:c,texture:i,frame:r,fromAtlas:!0}),!0}return!1}},6925:(t,e,i)=>{var s=i(35154);t.exports=function(t,e){var i=e.width,r=e.height,n=Math.floor(i/2),o=Math.floor(r/2),a=s(e,"chars","");if(""!==a){var h=s(e,"image",""),l=t.sys.textures.getFrame(h),u=l.cutX,c=l.cutY,d=l.source.width,p=l.source.height,f=s(e,"offset.x",0),g=s(e,"offset.y",0),m=s(e,"spacing.x",0),v=s(e,"spacing.y",0),y=s(e,"lineSpacing",0),x=s(e,"charsPerRow",null);null===x&&(x=d/i)>a.length&&(x=a.length);for(var w=f,T=g,b={retroFont:!0,font:h,size:i,lineHeight:r+y,chars:{}},S=0,E=0;E{function e(t,e){return parseInt(t.getAttribute(e),10)}t.exports=function(t,i,s,r,n){void 0===s&&(s=0),void 0===r&&(r=0);var o=i.cutX,a=i.cutY,h=i.source.width,l=i.source.height,u=i.sourceIndex,c={},d=t.getElementsByTagName("info")[0],p=t.getElementsByTagName("common")[0];c.font=d.getAttribute("face"),c.size=e(d,"size"),c.lineHeight=e(p,"lineHeight")+r,c.chars={};var f=t.getElementsByTagName("char"),g=void 0!==i&&i.trimmed;if(g)var m=i.height,v=i.width;for(var y=0;y{var s=i(87662),r=i(79291),n={Parse:i(6925)};n=r(!1,n,s),t.exports=n},87662:t=>{var e={TEXT_SET1:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~",TEXT_SET2:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET3:"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",TEXT_SET4:"ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789",TEXT_SET5:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789",TEXT_SET6:"ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789\"(),-.' ",TEXT_SET7:"AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW\")28FLRX-'39",TEXT_SET8:"0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET9:"ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'\"?!",TEXT_SET10:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET11:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\"-+!?()':;0123456789"};t.exports=e},2638:(t,e,i)=>{var s=i(22186),r=i(83419),n=i(12310),o=new r({Extends:s,Mixins:[n],initialize:function(t,e,i,r,n,o,a){s.call(this,t,e,i,r,n,o,a),this.type="DynamicBitmapText",this.scrollX=0,this.scrollY=0,this.cropWidth=0,this.cropHeight=0,this.displayCallback,this.callbackData={parent:this,color:0,tint:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},index:0,charCode:0,x:0,y:0,scale:0,rotation:0,data:0}},setSize:function(t,e){return this.cropWidth=t,this.cropHeight=e,this},setDisplayCallback:function(t){return this.displayCallback=t,this},setScrollX:function(t){return this.scrollX=t,this},setScrollY:function(t){return this.scrollY=t,this}});t.exports=o},86741:(t,e,i)=>{var s=i(20926);t.exports=function(t,e,i,r){var n=e._text,o=n.length,a=t.currentContext;if(0!==o&&s(t,a,e,i,r)){i.addToRenderList(e);var h=e.fromAtlas?e.frame:e.texture.frames.__BASE,l=e.displayCallback,u=e.callbackData,c=e.fontData.chars,d=e.fontData.lineHeight,p=e._letterSpacing,f=0,g=0,m=0,v=null,y=0,x=0,w=0,T=0,b=0,S=0,E=null,C=0,A=e.frame.source.image,_=h.cutX,P=h.cutY,R=0,M=0,k=e._fontSize/e.fontData.size,L=e._align,O=0,F=0;e.getTextBounds(!1);var D=e._bounds.lines;1===L?F=(D.longest-D.lengths[0])/2:2===L&&(F=D.longest-D.lengths[0]),a.translate(-e.displayOriginX,-e.displayOriginY);var I=i.roundPixels;e.cropWidth>0&&e.cropHeight>0&&(a.beginPath(),a.rect(0,0,e.cropWidth,e.cropHeight),a.clip());for(var B=0;B{var s=i(2638),r=i(25305),n=i(44603),o=i(23568);n.register("dynamicBitmapText",(function(t,e){void 0===t&&(t={});var i=o(t,"font",""),n=o(t,"text",""),a=o(t,"size",!1),h=new s(this.scene,0,0,i,n,a);return void 0!==e&&(t.add=e),r(this.scene,h,t),h}))},72566:(t,e,i)=>{var s=i(2638);i(39429).register("dynamicBitmapText",(function(t,e,i,r,n){return this.displayList.add(new s(this.scene,t,e,i,r,n))}))},12310:(t,e,i)=>{var s,r;i(29747),s=i(73482),r=i(86741),t.exports={renderWebGL:s,renderCanvas:r}},73482:(t,e,i)=>{var s=i(91296),r=i(61340),n=i(70554),o=new r;t.exports=function(t,e,i,r){var a=e.text,h=a.length;if(0!==h){i.addToRenderList(e);var l=t.pipelines.set(e.pipeline,e),u=s(e,i,r);t.pipelines.preBatch(e);var c=u.sprite,d=u.calc,p=o,f=e.cropWidth>0||e.cropHeight>0;f&&(l.flush(),t.pushScissor(d.tx,d.ty,e.cropWidth*d.scaleX,e.cropHeight*d.scaleY));var g,m,v=e.frame.glTexture,y=e.tintFill,x=n.getTintAppendFloatAlpha(e.tintTopLeft,i.alpha*e._alphaTL),w=n.getTintAppendFloatAlpha(e.tintTopRight,i.alpha*e._alphaTR),T=n.getTintAppendFloatAlpha(e.tintBottomLeft,i.alpha*e._alphaBL),b=n.getTintAppendFloatAlpha(e.tintBottomRight,i.alpha*e._alphaBR),S=l.setGameObject(e),E=0,C=0,A=0,_=0,P=e.letterSpacing,R=0,M=0,k=e.scrollX,L=e.scrollY,O=e.fontData,F=O.chars,D=O.lineHeight,I=e.fontSize/O.size,B=0,N=e._align,U=0,Y=0,z=e.getTextBounds(!1);e.maxWidth>0&&(h=(a=z.wrappedText).length);var X=e._bounds.lines;1===N?Y=(X.longest-X.lengths[0])/2:2===N&&(Y=X.longest-X.lengths[0]);for(var G=i.roundPixels,W=e.displayCallback,V=e.callbackData,H=0;H{var s=i(83419),r=i(45319),n=i(31401),o=i(95643),a=i(53048),h=i(61327),l=i(21859),u=i(87841),c=i(18658),d=new s({Extends:o,Mixins:[n.Alpha,n.BlendMode,n.Depth,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Texture,n.Tint,n.Transform,n.Visible,c],initialize:function(t,e,i,s,r,n,h){void 0===r&&(r=""),void 0===h&&(h=0),o.call(this,t,"BitmapText"),this.font=s;var l=this.scene.sys.cache.bitmapFont.get(s);l||console.warn("Invalid BitmapText key: "+s),this.fontData=l.data,this._text="",this._fontSize=n||this.fontData.size,this._letterSpacing=0,this._lineSpacing=0,this._align=h,this._bounds=a(),this._dirty=!0,this._maxWidth=0,this.wordWrapCharCode=32,this.charColors=[],this.dropShadowX=0,this.dropShadowY=0,this.dropShadowColor=0,this.dropShadowAlpha=.5,this.fromAtlas=l.fromAtlas,this.setTexture(l.texture,l.frame),this.setPosition(e,i),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(),this.setText(r)},setLeftAlign:function(){return this._align=d.ALIGN_LEFT,this._dirty=!0,this},setCenterAlign:function(){return this._align=d.ALIGN_CENTER,this._dirty=!0,this},setRightAlign:function(){return this._align=d.ALIGN_RIGHT,this._dirty=!0,this},setFontSize:function(t){return this._fontSize=t,this._dirty=!0,this},setLetterSpacing:function(t){return void 0===t&&(t=0),this._letterSpacing=t,this._dirty=!0,this},setLineSpacing:function(t){return void 0===t&&(t=0),this.lineSpacing=t,this},setText:function(t){return t||0===t||(t=""),Array.isArray(t)&&(t=t.join("\n")),t!==this.text&&(this._text=t.toString(),this._dirty=!0,this.updateDisplayOrigin()),this},setDropShadow:function(t,e,i,s){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=.5),this.dropShadowX=t,this.dropShadowY=e,this.dropShadowColor=i,this.dropShadowAlpha=s,this},setCharacterTint:function(t,e,i,s,n,o,a){void 0===t&&(t=0),void 0===e&&(e=1),void 0===i&&(i=!1),void 0===s&&(s=-1),void 0===n&&(n=s,o=s,a=s);var h=this.text.length;-1===e&&(e=h),t<0&&(t=h+t),t=r(t,0,h-1);for(var l=r(t+e,t,h),u=this.charColors,c=t;c{var s=i(20926);t.exports=function(t,e,i,r){var n=e._text,o=n.length,a=t.currentContext;if(0!==o&&s(t,a,e,i,r)){i.addToRenderList(e);var h=e.fromAtlas?e.frame:e.texture.frames.__BASE,l=e.fontData.chars,u=e.fontData.lineHeight,c=e._letterSpacing,d=e._lineSpacing,p=0,f=0,g=0,m=null,v=0,y=0,x=0,w=0,T=0,b=0,S=null,E=0,C=h.source.image,A=h.cutX,_=h.cutY,P=e._fontSize/e.fontData.size,R=e._align,M=0,k=0,L=e.getTextBounds(!1);e.maxWidth>0&&(o=(n=L.wrappedText).length);var O=e._bounds.lines;1===R?k=(O.longest-O.lengths[0])/2:2===R&&(k=O.longest-O.lengths[0]),a.translate(-e.displayOriginX,-e.displayOriginY);for(var F=i.roundPixels,D=0;D{var s=i(22186),r=i(25305),n=i(44603),o=i(23568),a=i(35154);n.register("bitmapText",(function(t,e){void 0===t&&(t={});var i=a(t,"font",""),n=o(t,"text",""),h=o(t,"size",!1),l=a(t,"align",0),u=new s(this.scene,0,0,i,n,h,l);return void 0!==e&&(t.add=e),r(this.scene,u,t),u}))},34914:(t,e,i)=>{var s=i(22186);i(39429).register("bitmapText",(function(t,e,i,r,n,o){return this.displayList.add(new s(this.scene,t,e,i,r,n,o))}))},18658:(t,e,i)=>{var s,r;i(29747),s=i(33590),r=i(37289),t.exports={renderWebGL:s,renderCanvas:r}},33590:(t,e,i)=>{var s=i(3217),r=i(91296),n=i(70554);t.exports=function(t,e,i,o){if(0!==e._text.length){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline,e),h=r(e,i,o).calc;t.pipelines.preBatch(e);var l,u,c,d=i.roundPixels,p=i.alpha,f=e.charColors,g=e.tintFill,m=n.getTintAppendFloatAlpha,v=m(e.tintTopLeft,p*e._alphaTL),y=m(e.tintTopRight,p*e._alphaTR),x=m(e.tintBottomLeft,p*e._alphaBL),w=m(e.tintBottomRight,p*e._alphaBR),T=e.frame.glTexture,b=a.setGameObject(e),S=e.getTextBounds(!1).characters,E=e.dropShadowX,C=e.dropShadowY;if(0!==E||0!==C){var A=e.dropShadowColor,_=e.dropShadowAlpha,P=m(A,p*_*e._alphaTL),R=m(A,p*_*e._alphaTR),M=m(A,p*_*e._alphaBL),k=m(A,p*_*e._alphaBR);for(l=0;l{var s=i(48011),r=i(46590),n=i(83419),o=i(31401),a=i(4327),h=i(95643),l=i(73162),u=new n({Extends:h,Mixins:[o.Alpha,o.BlendMode,o.Depth,o.Mask,o.Pipeline,o.PostPipeline,o.ScrollFactor,o.Size,o.Texture,o.Transform,o.Visible,s],initialize:function(t,e,i,s,r){h.call(this,t,"Blitter"),this.setTexture(s,r),this.setPosition(e,i),this.initPipeline(),this.initPostPipeline(),this.children=new l,this.renderList=[],this.dirty=!1},create:function(t,e,i,s,n){void 0===s&&(s=!0),void 0===n&&(n=this.children.length),void 0===i?i=this.frame:i instanceof a||(i=this.texture.get(i));var o=new r(this,t,e,i,s);return this.children.addAt(o,n,!1),this.dirty=!0,o},createFromCallback:function(t,e,i,s){for(var r=this.createMultiple(e,i,s),n=0;n0},getRenderList:function(){return this.dirty&&(this.renderList=this.children.list.filter(this.childCanRender,this),this.dirty=!1),this.renderList},clear:function(){this.children.removeAll(),this.dirty=!0},preDestroy:function(){this.children.destroy(),this.renderList=[]}});t.exports=u},72396:t=>{t.exports=function(t,e,i,s){var r=e.getRenderList();if(0!==r.length){var n=t.currentContext,o=i.alpha*e.alpha;if(0!==o){i.addToRenderList(e),n.globalCompositeOperation=t.blendModes[e.blendMode],n.imageSmoothingEnabled=!e.frame.source.scaleMode;var a=e.x-i.scrollX*e.scrollFactorX,h=e.y-i.scrollY*e.scrollFactorY;n.save(),s&&s.copyToContext(n);for(var l=i.roundPixels,u=0;u0&&f.height>0&&(n.save(),n.translate(c.x+a,c.y+h),n.scale(v,y),n.drawImage(p.source.image,f.x,f.y,f.width,f.height,g,m,f.width,f.height),n.restore())):(l&&(g=Math.round(g),m=Math.round(m)),f.width>0&&f.height>0&&n.drawImage(p.source.image,f.x,f.y,f.width,f.height,g+c.x+a,m+c.y+h,f.width,f.height)))}n.restore()}}}},9403:(t,e,i)=>{var s=i(6107),r=i(25305),n=i(44603),o=i(23568);n.register("blitter",(function(t,e){void 0===t&&(t={});var i=o(t,"key",null),n=o(t,"frame",null),a=new s(this.scene,0,0,i,n);return void 0!==e&&(t.add=e),r(this.scene,a,t),a}))},12709:(t,e,i)=>{var s=i(6107);i(39429).register("blitter",(function(t,e,i,r){return this.displayList.add(new s(this.scene,t,e,i,r))}))},48011:(t,e,i)=>{var s,r;i(29747),s=i(99485),r=i(72396),t.exports={renderWebGL:s,renderCanvas:r}},99485:(t,e,i)=>{var s=i(61340),r=i(70554),n=new s;t.exports=function(t,e,i,s){var o=e.getRenderList(),a=i.alpha*e.alpha;if(0!==o.length&&0!==a){i.addToRenderList(e);var h=t.pipelines.set(this.pipeline,e),l=i.scrollX*e.scrollFactorX,u=i.scrollY*e.scrollFactorY,c=n.copyFrom(i.matrix);s&&(c.multiplyWithOffset(s,-l,-u),l=0,u=0);var d=e.x-l,p=e.y-u,f=-1;t.pipelines.preBatch(e);for(var g=0;g{var s=i(83419),r=i(4327),n=new s({initialize:function(t,e,i,s,r){this.parent=t,this.x=e,this.y=i,this.frame=s,this.data={},this.tint=16777215,this._visible=r,this._alpha=1,this.flipX=!1,this.flipY=!1,this.hasTransformComponent=!0},setFrame:function(t){return void 0===t?this.frame=this.parent.frame:t instanceof r&&t.texture===this.parent.texture?this.frame=t:this.frame=this.parent.texture.get(t),this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this},reset:function(t,e,i){return this.x=t,this.y=e,this.flipX=!1,this.flipY=!1,this._alpha=1,this._visible=!0,this.parent.dirty=!0,i&&this.setFrame(i),this},setPosition:function(t,e){return this.x=t,this.y=e,this},setFlipX:function(t){return this.flipX=t,this},setFlipY:function(t){return this.flipY=t,this},setFlip:function(t,e){return this.flipX=t,this.flipY=e,this},setVisible:function(t){return this.visible=t,this},setAlpha:function(t){return this.alpha=t,this},setTint:function(t){return this.tint=t,this},destroy:function(){this.parent.dirty=!0,this.parent.children.remove(this),this.parent=void 0,this.frame=void 0,this.data=void 0},visible:{get:function(){return this._visible},set:function(t){this.parent.dirty|=this._visible!==t,this._visible=t}},alpha:{get:function(){return this._alpha},set:function(t){this.parent.dirty|=this._alpha>0!=t>0,this._alpha=t}}});t.exports=n},16005:(t,e,i)=>{var s=i(45319),r={_alpha:1,_alphaTL:1,_alphaTR:1,_alphaBL:1,_alphaBR:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(t,e,i,r){return void 0===t&&(t=1),void 0===e?this.alpha=t:(this._alphaTL=s(t,0,1),this._alphaTR=s(e,0,1),this._alphaBL=s(i,0,1),this._alphaBR=s(r,0,1)),this},alpha:{get:function(){return this._alpha},set:function(t){var e=s(t,0,1);this._alpha=e,this._alphaTL=e,this._alphaTR=e,this._alphaBL=e,this._alphaBR=e,0===e?this.renderFlags&=-3:this.renderFlags|=2}},alphaTopLeft:{get:function(){return this._alphaTL},set:function(t){var e=s(t,0,1);this._alphaTL=e,0!==e&&(this.renderFlags|=2)}},alphaTopRight:{get:function(){return this._alphaTR},set:function(t){var e=s(t,0,1);this._alphaTR=e,0!==e&&(this.renderFlags|=2)}},alphaBottomLeft:{get:function(){return this._alphaBL},set:function(t){var e=s(t,0,1);this._alphaBL=e,0!==e&&(this.renderFlags|=2)}},alphaBottomRight:{get:function(){return this._alphaBR},set:function(t){var e=s(t,0,1);this._alphaBR=e,0!==e&&(this.renderFlags|=2)}}};t.exports=r},88509:(t,e,i)=>{var s=i(45319),r={_alpha:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(t){return void 0===t&&(t=1),this.alpha=t,this},alpha:{get:function(){return this._alpha},set:function(t){var e=s(t,0,1);this._alpha=e,0===e?this.renderFlags&=-3:this.renderFlags|=2}}};t.exports=r},90065:(t,e,i)=>{var s=i(10312),r={_blendMode:s.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(t){"string"==typeof t&&(t=s[t]),(t|=0)>=-1&&(this._blendMode=t)}},setBlendMode:function(t){return this.blendMode=t,this}};t.exports=r},94215:t=>{t.exports={width:0,height:0,displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this}}},61683:t=>{t.exports={texture:null,frame:null,isCropped:!1,setCrop:function(t,e,i,s){if(void 0===t)this.isCropped=!1;else if(this.frame){if("number"==typeof t)this.frame.setCropUVs(this._crop,t,e,i,s,this.flipX,this.flipY);else{var r=t;this.frame.setCropUVs(this._crop,r.x,r.y,r.width,r.height,this.flipX,this.flipY)}this.isCropped=!0}return this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}}},89272:t=>{t.exports={_depth:0,depth:{get:function(){return this._depth},set:function(t){this.displayList&&this.displayList.queueDepthSort(),this._depth=t}},setDepth:function(t){return void 0===t&&(t=0),this.depth=t,this}}},47059:(t,e,i)=>{var s=i(83419),r=i(66064),n=i(19133),o=new s({initialize:function(t,e){this.gameObject=t,this.isPost=e,this.enabled=!1,this.list=[],this.padding=0},setPadding:function(t){return void 0===t&&(t=0),this.padding=t,this.gameObject},onFXCopy:function(){},onFX:function(){},enable:function(t){if(!this.isPost){var e=this.gameObject.scene.sys.renderer;e&&e.pipelines?(this.gameObject.pipeline=e.pipelines.FX_PIPELINE,void 0!==t&&(this.padding=t),this.enabled=!0):this.enabled=!1}},clear:function(){if(this.isPost)this.gameObject.resetPostPipeline(!0);else{for(var t=this.list,e=0;e{t.exports={flipX:!1,flipY:!1,toggleFlipX:function(){return this.flipX=!this.flipX,this},toggleFlipY:function(){return this.flipY=!this.flipY,this},setFlipX:function(t){return this.flipX=t,this},setFlipY:function(t){return this.flipY=t,this},setFlip:function(t,e){return this.flipX=t,this.flipY=e,this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this}}},8004:(t,e,i)=>{var s=i(87841),r=i(11520),n=i(26099),o={prepareBoundsOutput:function(t,e){return void 0===e&&(e=!1),0!==this.rotation&&r(t,this.x,this.y,this.rotation),e&&this.parentContainer&&this.parentContainer.getBoundsTransformMatrix().transformPoint(t.x,t.y,t),t},getCenter:function(t,e){return void 0===t&&(t=new n),t.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,e)},getTopLeft:function(t,e){return t||(t=new n),t.x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,e)},getTopCenter:function(t,e){return t||(t=new n),t.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,e)},getTopRight:function(t,e){return t||(t=new n),t.x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,e)},getLeftCenter:function(t,e){return t||(t=new n),t.x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,e)},getRightCenter:function(t,e){return t||(t=new n),t.x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,e)},getBottomLeft:function(t,e){return t||(t=new n),t.x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,e)},getBottomCenter:function(t,e){return t||(t=new n),t.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,e)},getBottomRight:function(t,e){return t||(t=new n),t.x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,e)},getBounds:function(t){var e,i,r,n,o,a,h,l;if(void 0===t&&(t=new s),this.parentContainer){var u=this.parentContainer.getBoundsTransformMatrix();this.getTopLeft(t),u.transformPoint(t.x,t.y,t),e=t.x,i=t.y,this.getTopRight(t),u.transformPoint(t.x,t.y,t),r=t.x,n=t.y,this.getBottomLeft(t),u.transformPoint(t.x,t.y,t),o=t.x,a=t.y,this.getBottomRight(t),u.transformPoint(t.x,t.y,t),h=t.x,l=t.y}else this.getTopLeft(t),e=t.x,i=t.y,this.getTopRight(t),r=t.x,n=t.y,this.getBottomLeft(t),o=t.x,a=t.y,this.getBottomRight(t),h=t.x,l=t.y;return t.x=Math.min(e,r,o,h),t.y=Math.min(i,n,a,l),t.width=Math.max(e,r,o,h)-t.x,t.height=Math.max(i,n,a,l)-t.y,t}};t.exports=o},8573:(t,e,i)=>{var s=i(6858),r=i(80661),n={mask:null,setMask:function(t){return this.mask=t,this},clearMask:function(t){return void 0===t&&(t=!1),t&&this.mask&&this.mask.destroy(),this.mask=null,this},createBitmapMask:function(t,e,i,r,n){return void 0===t&&(this.texture||this.shader||this.geom)&&(t=this),new s(this.scene,t,e,i,r,n)},createGeometryMask:function(t){return void 0!==t||"Graphics"!==this.type&&!this.geom||(t=this),new r(this.scene,t)}};t.exports=n},27387:t=>{t.exports={_originComponent:!0,originX:.5,originY:.5,_displayOriginX:0,_displayOriginY:0,displayOriginX:{get:function(){return this._displayOriginX},set:function(t){this._displayOriginX=t,this.originX=t/this.width}},displayOriginY:{get:function(){return this._displayOriginY},set:function(t){this._displayOriginY=t,this.originY=t/this.height}},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this.updateDisplayOrigin()},setOriginFromFrame:function(){return this.frame&&this.frame.customPivot?(this.originX=this.frame.pivotX,this.originY=this.frame.pivotY,this.updateDisplayOrigin()):this.setOrigin()},setDisplayOrigin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.displayOriginX=t,this.displayOriginY=e,this},updateDisplayOrigin:function(){return this._displayOriginX=this.originX*this.width,this._displayOriginY=this.originY*this.height,this}}},37640:(t,e,i)=>{var s=i(39506),r=i(57355),n=i(35154),o=i(86353),a=i(26099),h={path:null,rotateToPath:!1,pathRotationOffset:0,pathOffset:null,pathVector:null,pathDelta:null,pathTween:null,pathConfig:null,_prevDirection:o.PLAYING_FORWARD,setPath:function(t,e){void 0===e&&(e=this.pathConfig);var i=this.pathTween;return i&&i.isPlaying()&&i.stop(),this.path=t,e&&this.startFollow(e),this},setRotateToPath:function(t,e){return void 0===e&&(e=0),this.rotateToPath=t,this.pathRotationOffset=e,this},isFollowing:function(){var t=this.pathTween;return t&&t.isPlaying()},startFollow:function(t,e){void 0===t&&(t={}),void 0===e&&(e=0);var i=this.pathTween;i&&i.isPlaying()&&i.stop(),"number"==typeof t&&(t={duration:t}),t.from=n(t,"from",0),t.to=n(t,"to",1);var h=r(t,"positionOnPath",!1);this.rotateToPath=r(t,"rotateToPath",!1),this.pathRotationOffset=n(t,"rotationOffset",0);var l=n(t,"startAt",e);if(l&&(t.onStart=function(t){var e=t.data[0];e.progress=l,e.elapsed=e.duration*l;var i=e.ease(e.progress);e.current=e.start+(e.end-e.start)*i,e.setTargetValue()}),this.pathOffset||(this.pathOffset=new a(this.x,this.y)),this.pathVector||(this.pathVector=new a),this.pathDelta||(this.pathDelta=new a),this.pathDelta.reset(),t.persist=!0,this.pathTween=this.scene.sys.tweens.addCounter(t),this.path.getStartPoint(this.pathOffset),h&&(this.x=this.pathOffset.x,this.y=this.pathOffset.y),this.pathOffset.x=this.x-this.pathOffset.x,this.pathOffset.y=this.y-this.pathOffset.y,this._prevDirection=o.PLAYING_FORWARD,this.rotateToPath){var u=this.path.getPoint(.1);this.rotation=Math.atan2(u.y-this.y,u.x-this.x)+s(this.pathRotationOffset)}return this.pathConfig=t,this},pauseFollow:function(){var t=this.pathTween;return t&&t.isPlaying()&&t.pause(),this},resumeFollow:function(){var t=this.pathTween;return t&&t.isPaused()&&t.resume(),this},stopFollow:function(){var t=this.pathTween;return t&&t.isPlaying()&&t.stop(),this},pathUpdate:function(){var t=this.pathTween;if(t&&t.data){var e=t.data[0],i=this.pathDelta,r=this.pathVector;if(i.copy(r).negate(),e.state===o.COMPLETE)return this.path.getPoint(e.end,r),i.add(r),r.add(this.pathOffset),void this.setPosition(r.x,r.y);if(e.state!==o.PLAYING_FORWARD&&e.state!==o.PLAYING_BACKWARD)return;this.path.getPoint(t.getValue(),r),i.add(r),r.add(this.pathOffset);var n=this.x,a=this.y;this.setPosition(r.x,r.y);var h=this.x-n,l=this.y-a;if(0===h&&0===l)return;if(e.state!==this._prevDirection)return void(this._prevDirection=e.state);this.rotateToPath&&(this.rotation=Math.atan2(l,h)+s(this.pathRotationOffset))}}};t.exports=h},72699:(t,e,i)=>{var s=i(62644),r={defaultPipeline:null,pipeline:null,pipelineData:null,initPipeline:function(t){this.pipelineData={};var e=this.scene.sys.renderer;if(!e)return!1;var i=e.pipelines;if(i){void 0===t&&(t=i.default);var s=i.get(t);if(s)return this.defaultPipeline=s,this.pipeline=s,!0}return!1},setPipeline:function(t,e,i){var r=this.scene.sys.renderer;if(!r)return this;var n=r.pipelines;if(n){var o=n.get(t);o&&(this.pipeline=o),e&&(this.pipelineData=i?s(e):e)}return this},setPipelineData:function(t,e){var i=this.pipelineData;return void 0===e?delete i[t]:i[t]=e,this},resetPipeline:function(t){return void 0===t&&(t=!1),this.pipeline=this.defaultPipeline,t&&(this.pipelineData={}),null!==this.pipeline},getPipelineName:function(){return this.pipeline.name}};t.exports=r},17581:(t,e,i)=>{var s=i(62644),r=i(47059),n=i(19133),o={hasPostPipeline:!1,postPipelines:null,postPipelineData:null,preFX:null,postFX:null,initPostPipeline:function(t){this.postPipelines=[],this.postPipelineData={},this.postFX=new r(this,!0),t&&(this.preFX=new r(this,!1))},setPostPipeline:function(t,e,i){var r=this.scene.sys.renderer;if(!r)return this;var n=r.pipelines;if(n){Array.isArray(t)||(t=[t]);for(var o=0;o0,this},setPostPipelineData:function(t,e){var i=this.postPipelineData;return void 0===e?delete i[t]:i[t]=e,this},getPostPipeline:function(t){for(var e="string"==typeof t,i=this.postPipelines,s=[],r=0;r=0;s--){var r=i[s];(e&&r.name===t||!e&&r===t)&&(r.destroy(),n(i,s))}return this.hasPostPipeline=this.postPipelines.length>0,this},clearFX:function(){return this.preFX&&this.preFX.clear(),this.postFX&&this.postFX.clear(),this}};t.exports=o},80227:t=>{t.exports={scrollFactorX:1,scrollFactorY:1,setScrollFactor:function(t,e){return void 0===e&&(e=t),this.scrollFactorX=t,this.scrollFactorY=e,this}}},16736:t=>{var e={_sizeComponent:!0,width:0,height:0,displayWidth:{get:function(){return Math.abs(this.scaleX*this.frame.realWidth)},set:function(t){this.scaleX=t/this.frame.realWidth}},displayHeight:{get:function(){return Math.abs(this.scaleY*this.frame.realHeight)},set:function(t){this.scaleY=t/this.frame.realHeight}},setSizeToFrame:function(t){t||(t=this.frame),this.width=t.realWidth,this.height=t.realHeight;var e=this.input;return e&&!e.customHitArea&&(e.hitArea.width=this.width,e.hitArea.height=this.height),this},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this}};t.exports=e},37726:(t,e,i)=>{var s=i(4327),r={texture:null,frame:null,isCropped:!1,setTexture:function(t,e,i,s){return this.texture=this.scene.sys.textures.get(t),this.setFrame(e,i,s)},setFrame:function(t,e,i){return void 0===e&&(e=!0),void 0===i&&(i=!0),t instanceof s?(this.texture=this.scene.sys.textures.get(t.texture.key),this.frame=t):this.frame=this.texture.get(t),this.frame.cutWidth&&this.frame.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this._sizeComponent&&e&&this.setSizeToFrame(),this._originComponent&&i&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this}};t.exports=r},79812:(t,e,i)=>{var s=i(4327),r={texture:null,frame:null,isCropped:!1,setCrop:function(t,e,i,s){if(void 0===t)this.isCropped=!1;else if(this.frame){if("number"==typeof t)this.frame.setCropUVs(this._crop,t,e,i,s,this.flipX,this.flipY);else{var r=t;this.frame.setCropUVs(this._crop,r.x,r.y,r.width,r.height,this.flipX,this.flipY)}this.isCropped=!0}return this},setTexture:function(t,e){return this.texture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t,e,i){return void 0===e&&(e=!0),void 0===i&&(i=!0),t instanceof s?(this.texture=this.scene.sys.textures.get(t.texture.key),this.frame=t):this.frame=this.texture.get(t),this.frame.cutWidth&&this.frame.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this._sizeComponent&&e&&this.setSizeToFrame(),this._originComponent&&i&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this.isCropped&&this.frame.updateCropUVs(this._crop,this.flipX,this.flipY),this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}};t.exports=r},27472:t=>{t.exports={tintTopLeft:16777215,tintTopRight:16777215,tintBottomLeft:16777215,tintBottomRight:16777215,tintFill:!1,clearTint:function(){return this.setTint(16777215),this},setTint:function(t,e,i,s){return void 0===t&&(t=16777215),void 0===e&&(e=t,i=t,s=t),this.tintTopLeft=t,this.tintTopRight=e,this.tintBottomLeft=i,this.tintBottomRight=s,this.tintFill=!1,this},setTintFill:function(t,e,i,s){return this.setTint(t,e,i,s),this.tintFill=!0,this},tint:{get:function(){return this.tintTopLeft},set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){var t=16777215;return this.tintFill||this.tintTopLeft!==t||this.tintTopRight!==t||this.tintBottomLeft!==t||this.tintBottomRight!==t}}}},53774:t=>{t.exports=function(t){var e={name:t.name,type:t.type,x:t.x,y:t.y,depth:t.depth,scale:{x:t.scaleX,y:t.scaleY},origin:{x:t.originX,y:t.originY},flipX:t.flipX,flipY:t.flipY,rotation:t.rotation,alpha:t.alpha,visible:t.visible,blendMode:t.blendMode,textureKey:"",frameKey:"",data:{}};return t.texture&&(e.textureKey=t.texture.key,e.frameKey=t.frame.name),e}},16901:(t,e,i)=>{var s=i(36383),r=i(61340),n=i(85955),o=i(86554),a=i(30954),h=i(26099),l={hasTransformComponent:!0,_scaleX:1,_scaleY:1,_rotation:0,x:0,y:0,z:0,w:0,scale:{get:function(){return(this._scaleX+this._scaleY)/2},set:function(t){this._scaleX=t,this._scaleY=t,0===t?this.renderFlags&=-5:this.renderFlags|=4}},scaleX:{get:function(){return this._scaleX},set:function(t){this._scaleX=t,0===t?this.renderFlags&=-5:0!==this._scaleY&&(this.renderFlags|=4)}},scaleY:{get:function(){return this._scaleY},set:function(t){this._scaleY=t,0===t?this.renderFlags&=-5:0!==this._scaleX&&(this.renderFlags|=4)}},angle:{get:function(){return a(this._rotation*s.RAD_TO_DEG)},set:function(t){this.rotation=a(t)*s.DEG_TO_RAD}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=o(t)}},setPosition:function(t,e,i,s){return void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===s&&(s=0),this.x=t,this.y=e,this.z=i,this.w=s,this},copyPosition:function(t){return void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.z&&(this.z=t.z),void 0!==t.w&&(this.w=t.w),this},setRandomPosition:function(t,e,i,s){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.scene.sys.scale.width),void 0===s&&(s=this.scene.sys.scale.height),this.x=t+Math.random()*i,this.y=e+Math.random()*s,this},setRotation:function(t){return void 0===t&&(t=0),this.rotation=t,this},setAngle:function(t){return void 0===t&&(t=0),this.angle=t,this},setScale:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.scaleX=t,this.scaleY=e,this},setX:function(t){return void 0===t&&(t=0),this.x=t,this},setY:function(t){return void 0===t&&(t=0),this.y=t,this},setZ:function(t){return void 0===t&&(t=0),this.z=t,this},setW:function(t){return void 0===t&&(t=0),this.w=t,this},getLocalTransformMatrix:function(t){return void 0===t&&(t=new r),t.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY)},getWorldTransformMatrix:function(t,e){void 0===t&&(t=new r);var i=this.parentContainer;if(!i)return this.getLocalTransformMatrix(t);for(e||(e=new r),t.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY);i;)e.applyITRS(i.x,i.y,i._rotation,i._scaleX,i._scaleY),e.multiply(t,t),i=i.parentContainer;return t},getLocalPoint:function(t,e,i,s){i||(i=new h),s||(s=this.scene.sys.cameras.main);var r=s.scrollX,o=s.scrollY,a=t+r*this.scrollFactorX-r,l=e+o*this.scrollFactorY-o;return this.parentContainer?this.getWorldTransformMatrix().applyInverse(a,l,i):n(a,l,this.x,this.y,this.rotation,this.scaleX,this.scaleY,i),this._originComponent&&(i.x+=this._displayOriginX,i.y+=this._displayOriginY),i},getParentRotation:function(){for(var t=0,e=this.parentContainer;e;)t+=e.rotation,e=e.parentContainer;return t}};t.exports=l},61340:(t,e,i)=>{var s=i(83419),r=i(36383),n=i(26099),o=new s({initialize:function(t,e,i,s,r,n){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=1),void 0===r&&(r=0),void 0===n&&(n=0),this.matrix=new Float32Array([t,e,i,s,r,n,0,0,1]),this.decomposedMatrix={translateX:0,translateY:0,scaleX:1,scaleY:1,rotation:0},this.quad=new Float32Array(8)},a:{get:function(){return this.matrix[0]},set:function(t){this.matrix[0]=t}},b:{get:function(){return this.matrix[1]},set:function(t){this.matrix[1]=t}},c:{get:function(){return this.matrix[2]},set:function(t){this.matrix[2]=t}},d:{get:function(){return this.matrix[3]},set:function(t){this.matrix[3]=t}},e:{get:function(){return this.matrix[4]},set:function(t){this.matrix[4]=t}},f:{get:function(){return this.matrix[5]},set:function(t){this.matrix[5]=t}},tx:{get:function(){return this.matrix[4]},set:function(t){this.matrix[4]=t}},ty:{get:function(){return this.matrix[5]},set:function(t){this.matrix[5]=t}},rotation:{get:function(){return Math.acos(this.a/this.scaleX)*(Math.atan(-this.c/this.a)<0?-1:1)}},rotationNormalized:{get:function(){var t=this.matrix,e=t[0],i=t[1],s=t[2],n=t[3];return e||i?i>0?Math.acos(e/this.scaleX):-Math.acos(e/this.scaleX):s||n?r.TAU-(n>0?Math.acos(-s/this.scaleY):-Math.acos(s/this.scaleY)):0}},scaleX:{get:function(){return Math.sqrt(this.a*this.a+this.b*this.b)}},scaleY:{get:function(){return Math.sqrt(this.c*this.c+this.d*this.d)}},loadIdentity:function(){var t=this.matrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,this},translate:function(t,e){var i=this.matrix;return i[4]=i[0]*t+i[2]*e+i[4],i[5]=i[1]*t+i[3]*e+i[5],this},scale:function(t,e){var i=this.matrix;return i[0]*=t,i[1]*=t,i[2]*=e,i[3]*=e,this},rotate:function(t){var e=Math.sin(t),i=Math.cos(t),s=this.matrix,r=s[0],n=s[1],o=s[2],a=s[3];return s[0]=r*i+o*e,s[1]=n*i+a*e,s[2]=r*-e+o*i,s[3]=n*-e+a*i,this},multiply:function(t,e){var i=this.matrix,s=t.matrix,r=i[0],n=i[1],o=i[2],a=i[3],h=i[4],l=i[5],u=s[0],c=s[1],d=s[2],p=s[3],f=s[4],g=s[5],m=void 0===e?i:e.matrix;return m[0]=u*r+c*o,m[1]=u*n+c*a,m[2]=d*r+p*o,m[3]=d*n+p*a,m[4]=f*r+g*o+h,m[5]=f*n+g*a+l,m},multiplyWithOffset:function(t,e,i){var s=this.matrix,r=t.matrix,n=s[0],o=s[1],a=s[2],h=s[3],l=e*n+i*a+s[4],u=e*o+i*h+s[5],c=r[0],d=r[1],p=r[2],f=r[3],g=r[4],m=r[5];return s[0]=c*n+d*a,s[1]=c*o+d*h,s[2]=p*n+f*a,s[3]=p*o+f*h,s[4]=g*n+m*a+l,s[5]=g*o+m*h+u,this},transform:function(t,e,i,s,r,n){var o=this.matrix,a=o[0],h=o[1],l=o[2],u=o[3],c=o[4],d=o[5];return o[0]=t*a+e*l,o[1]=t*h+e*u,o[2]=i*a+s*l,o[3]=i*h+s*u,o[4]=r*a+n*l+c,o[5]=r*h+n*u+d,this},transformPoint:function(t,e,i){void 0===i&&(i={x:0,y:0});var s=this.matrix,r=s[0],n=s[1],o=s[2],a=s[3],h=s[4],l=s[5];return i.x=t*r+e*o+h,i.y=t*n+e*a+l,i},invert:function(){var t=this.matrix,e=t[0],i=t[1],s=t[2],r=t[3],n=t[4],o=t[5],a=e*r-i*s;return t[0]=r/a,t[1]=-i/a,t[2]=-s/a,t[3]=e/a,t[4]=(s*o-r*n)/a,t[5]=-(e*o-i*n)/a,this},copyFrom:function(t){var e=this.matrix;return e[0]=t.a,e[1]=t.b,e[2]=t.c,e[3]=t.d,e[4]=t.e,e[5]=t.f,this},copyFromArray:function(t){var e=this.matrix;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],this},copyToContext:function(t){var e=this.matrix;return t.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t},setToContext:function(t){return t.setTransform(this),t},copyToArray:function(t){var e=this.matrix;return void 0===t?t=[e[0],e[1],e[2],e[3],e[4],e[5]]:(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5]),t},setTransform:function(t,e,i,s,r,n){var o=this.matrix;return o[0]=t,o[1]=e,o[2]=i,o[3]=s,o[4]=r,o[5]=n,this},decomposeMatrix:function(){var t=this.decomposedMatrix,e=this.matrix,i=e[0],s=e[1],r=e[2],n=e[3],o=i*n-s*r;if(t.translateX=e[4],t.translateY=e[5],i||s){var a=Math.sqrt(i*i+s*s);t.rotation=s>0?Math.acos(i/a):-Math.acos(i/a),t.scaleX=a,t.scaleY=o/a}else if(r||n){var h=Math.sqrt(r*r+n*n);t.rotation=.5*Math.PI-(n>0?Math.acos(-r/h):-Math.acos(r/h)),t.scaleX=o/h,t.scaleY=h}else t.rotation=0,t.scaleX=0,t.scaleY=0;return t},applyITRS:function(t,e,i,s,r){var n=this.matrix,o=Math.sin(i),a=Math.cos(i);return n[4]=t,n[5]=e,n[0]=a*s,n[1]=o*s,n[2]=-o*r,n[3]=a*r,this},applyInverse:function(t,e,i){void 0===i&&(i=new n);var s=this.matrix,r=s[0],o=s[1],a=s[2],h=s[3],l=s[4],u=s[5],c=1/(r*h+a*-o);return i.x=h*c*t+-a*c*e+(u*a-l*h)*c,i.y=r*c*e+-o*c*t+(-u*r+l*o)*c,i},setQuad:function(t,e,i,s,r,n){void 0===r&&(r=!1),void 0===n&&(n=this.quad);var o=this.matrix,a=o[0],h=o[1],l=o[2],u=o[3],c=o[4],d=o[5];return r?(n[0]=Math.round(t*a+e*l+c),n[1]=Math.round(t*h+e*u+d),n[2]=Math.round(t*a+s*l+c),n[3]=Math.round(t*h+s*u+d),n[4]=Math.round(i*a+s*l+c),n[5]=Math.round(i*h+s*u+d),n[6]=Math.round(i*a+e*l+c),n[7]=Math.round(i*h+e*u+d)):(n[0]=t*a+e*l+c,n[1]=t*h+e*u+d,n[2]=t*a+s*l+c,n[3]=t*h+s*u+d,n[4]=i*a+s*l+c,n[5]=i*h+s*u+d,n[6]=i*a+e*l+c,n[7]=i*h+e*u+d),n},getX:function(t,e){return t*this.a+e*this.c+this.e},getY:function(t,e){return t*this.b+e*this.d+this.f},getXRound:function(t,e,i){var s=this.getX(t,e);return i&&(s=Math.round(s)),s},getYRound:function(t,e,i){var s=this.getY(t,e);return i&&(s=Math.round(s)),s},getCSSMatrix:function(){var t=this.matrix;return"matrix("+t[0]+","+t[1]+","+t[2]+","+t[3]+","+t[4]+","+t[5]+")"},destroy:function(){this.matrix=null,this.quad=null,this.decomposedMatrix=null}});t.exports=o},59715:t=>{var e={_visible:!0,visible:{get:function(){return this._visible},set:function(t){t?(this._visible=!0,this.renderFlags|=1):(this._visible=!1,this.renderFlags&=-2)}},setVisible:function(t){return this.visible=t,this}};t.exports=e},31401:(t,e,i)=>{t.exports={Alpha:i(16005),AlphaSingle:i(88509),BlendMode:i(90065),ComputedSize:i(94215),Crop:i(61683),Depth:i(89272),Flip:i(54434),FX:i(47059),GetBounds:i(8004),Mask:i(8573),Origin:i(27387),PathFollower:i(37640),Pipeline:i(72699),PostPipeline:i(17581),ScrollFactor:i(80227),Size:i(16736),Texture:i(37726),TextureCrop:i(79812),Tint:i(27472),ToJSON:i(53774),Transform:i(16901),TransformMatrix:i(61340),Visible:i(59715)}},31559:(t,e,i)=>{var s=i(37105),r=i(10312),n=i(83419),o=i(31401),a=i(51708),h=i(95643),l=i(87841),u=i(29959),c=i(36899),d=i(26099),p=new n({Extends:h,Mixins:[o.AlphaSingle,o.BlendMode,o.ComputedSize,o.Depth,o.Mask,o.PostPipeline,o.Transform,o.Visible,u],initialize:function(t,e,i,s){h.call(this,t,"Container"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new o.TransformMatrix,this.tempTransformMatrix=new o.TransformMatrix,this._sortKey="",this._sysEvents=t.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.initPostPipeline(),this.setPosition(e,i),this.setBlendMode(r.SKIP_CHECK),s&&this.add(s)},originX:{get:function(){return.5}},originY:{get:function(){return.5}},displayOriginX:{get:function(){return.5*this.width}},displayOriginY:{get:function(){return.5*this.height}},setExclusive:function(t){return void 0===t&&(t=!0),this.exclusive=t,this},getBounds:function(t){if(void 0===t&&(t=new l),t.setTo(this.x,this.y,0,0),this.parentContainer){var e=this.parentContainer.getBoundsTransformMatrix().transformPoint(this.x,this.y);t.setTo(e.x,e.y,0,0)}if(this.list.length>0){var i=this.list,s=new l,r=!1;t.setEmpty();for(var n=0;n-1},setAll:function(t,e,i,r){return s.SetAll(this.list,t,e,i,r),this},each:function(t,e){var i,s=[null],r=this.list.slice(),n=r.length;for(i=2;i0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}},preDestroy:function(){this.removeAll(!!this.exclusive),this.localTransform.destroy(),this.tempTransformMatrix.destroy(),this.list=[]},onChildDestroyed:function(t){s.Remove(this.list,t),this.exclusive&&(t.parentContainer=null,t.removedFromScene())}});t.exports=p},53584:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e);var r=e.list;if(0!==r.length){var n=e.localTransform;s?(n.loadIdentity(),n.multiply(s),n.translate(e.x,e.y),n.rotate(e.rotation),n.scale(e.scaleX,e.scaleY)):n.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);var o=-1!==e.blendMode;o||t.setBlendMode(0);var a=e._alpha,h=e.scrollFactorX,l=e.scrollFactorY;e.mask&&e.mask.preRenderCanvas(t,null,i);for(var u=0;u{var s=i(25305),r=i(31559),n=i(44603),o=i(23568),a=i(95540);n.register("container",(function(t,e){void 0===t&&(t={});var i=o(t,"x",0),n=o(t,"y",0),h=a(t,"children",null),l=new r(this.scene,i,n,h);return void 0!==e&&(t.add=e),s(this.scene,l,t),l}))},24961:(t,e,i)=>{var s=i(31559);i(39429).register("container",(function(t,e,i){return this.displayList.add(new s(this.scene,t,e,i))}))},29959:(t,e,i)=>{var s,r;i(29747),s=i(72249),r=i(53584),t.exports={renderWebGL:s,renderCanvas:r}},72249:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e);var r=e.list,n=r.length;if(0!==n){var o=e.localTransform;s?(o.loadIdentity(),o.multiply(s),o.translate(e.x,e.y),o.rotate(e.rotation),o.scale(e.scaleX,e.scaleY)):o.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),t.pipelines.preBatch(e);var a=-1!==e.blendMode;a||t.setBlendMode(0);for(var h=e.alpha,l=e.scrollFactorX,u=e.scrollFactorY,c=0;c{t.exports=["normal","multiply","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},3069:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(441),o=i(95643),a=i(41212),h=i(35846),l=i(44594),u=i(61369),c=new s({Extends:o,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.Origin,r.ScrollFactor,r.Transform,r.Visible,n],initialize:function(t,e,i,s,r,n){o.call(this,t,"DOMElement"),this.parent=t.sys.game.domContainer,this.cache=t.sys.cache.html,this.node,this.transformOnly=!1,this.skewX=0,this.skewY=0,this.rotate3d=new u,this.rotate3dAngle="deg",this.pointerEvents="auto",this.width=0,this.height=0,this.displayWidth=0,this.displayHeight=0,this.handler=this.dispatchNativeEvent.bind(this),this.setPosition(e,i),"string"==typeof s?"#"===s[0]?this.setElement(s.substr(1),r,n):this.createElement(s,r,n):s&&this.setElement(s,r,n),t.sys.events.on(l.SLEEP,this.handleSceneEvent,this),t.sys.events.on(l.WAKE,this.handleSceneEvent,this),t.sys.events.on(l.PRE_RENDER,this.preRender,this)},handleSceneEvent:function(t){var e=this.node,i=e.style;e&&(i.display=t.settings.visible?"block":"none")},setSkew:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.skewX=t,this.skewY=e,this},setPerspective:function(t){return this.parent.style.perspective=t+"px",this},perspective:{get:function(){return parseFloat(this.parent.style.perspective)},set:function(t){this.parent.style.perspective=t+"px"}},addListener:function(t){if(this.node){t=t.split(" ");for(var e=0;e{var s=i(47407),r=i(95643),n=i(61340),o=new n,a=new n,h=new n;t.exports=function(t,e,i,n){if(e.node){var l=e.node.style,u=e.scene.sys.settings;if(!l||!u.visible||r.RENDER_MASK!==e.renderFlags||0!==e.cameraFilter&&e.cameraFilter&i.id||e.parentContainer&&!e.parentContainer.willRender())l.display="none";else{var c=e.parentContainer,d=i.alpha*e.alpha;c&&(d*=c.alpha);var p=o,f=a,g=h,m=0,v=0,y="0%",x="0%";n?(m=e.width*e.scaleX*e.originX,v=e.height*e.scaleY*e.originY,f.applyITRS(e.x-m,e.y-v,e.rotation,e.scaleX,e.scaleY),p.copyFrom(i.matrix),p.multiplyWithOffset(n,-i.scrollX*e.scrollFactorX,-i.scrollY*e.scrollFactorY),f.e=e.x-m,f.f=e.y-v,p.multiply(f,g)):(m=e.width*e.originX,v=e.height*e.originY,f.applyITRS(e.x-m,e.y-v,e.rotation,e.scaleX,e.scaleY),p.copyFrom(i.matrix),y=100*e.originX+"%",x=100*e.originY+"%",f.e-=i.scrollX*e.scrollFactorX,f.f-=i.scrollY*e.scrollFactorY,p.multiply(f,g)),e.transformOnly||(l.display="block",l.opacity=d,l.zIndex=e._depth,l.pointerEvents=e.pointerEvents,l.mixBlendMode=s[e._blendMode]),l.transform=g.getCSSMatrix()+" skew("+e.skewX+"rad, "+e.skewY+"rad) rotate3d("+e.rotate3d.x+","+e.rotate3d.y+","+e.rotate3d.z+","+e.rotate3d.w+e.rotate3dAngle+")",l.transformOrigin=y+" "+x}}}},2611:(t,e,i)=>{var s=i(3069);i(39429).register("dom",(function(t,e,i,r,n){var o=new s(this.scene,t,e,i,r,n);return this.displayList.add(o),o}))},441:(t,e,i)=>{var s,r;i(29747),s=i(49381),r=i(49381),t.exports={renderWebGL:s,renderCanvas:r}},62980:t=>{t.exports="addedtoscene"},41337:t=>{t.exports="destroy"},44947:t=>{t.exports="removedfromscene"},49358:t=>{t.exports="complete"},35163:t=>{t.exports="created"},97249:t=>{t.exports="error"},19483:t=>{t.exports="locked"},56059:t=>{t.exports="loop"},26772:t=>{t.exports="metadata"},64437:t=>{t.exports="playing"},83411:t=>{t.exports="play"},75780:t=>{t.exports="seeked"},67799:t=>{t.exports="seeking"},63500:t=>{t.exports="stalled"},55541:t=>{t.exports="stop"},53208:t=>{t.exports="textureready"},4992:t=>{t.exports="unlocked"},12:t=>{t.exports="unsupported"},51708:(t,e,i)=>{t.exports={ADDED_TO_SCENE:i(62980),DESTROY:i(41337),REMOVED_FROM_SCENE:i(44947),VIDEO_COMPLETE:i(49358),VIDEO_CREATED:i(35163),VIDEO_ERROR:i(97249),VIDEO_LOCKED:i(19483),VIDEO_LOOP:i(56059),VIDEO_METADATA:i(26772),VIDEO_PLAY:i(83411),VIDEO_PLAYING:i(64437),VIDEO_SEEKED:i(75780),VIDEO_SEEKING:i(67799),VIDEO_STALLED:i(63500),VIDEO_STOP:i(55541),VIDEO_TEXTURE:i(53208),VIDEO_UNLOCKED:i(4992),VIDEO_UNSUPPORTED:i(12)}},42421:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(95643),o=i(64993),a=new s({Extends:n,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Flip,r.Origin,r.ScrollFactor,r.Size,r.Texture,r.Tint,r.Transform,r.Visible,o],initialize:function(t){n.call(this,t,"Extern")},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(){},render:function(){}});t.exports=a},70217:()=>{},56315:(t,e,i)=>{var s=i(42421);i(39429).register("extern",(function(){var t=new s(this.scene);return this.displayList.add(t),t}))},64993:(t,e,i)=>{var s,r;i(29747),s=i(80287),r=i(70217),t.exports={renderWebGL:s,renderCanvas:r}},80287:(t,e,i)=>{var s=i(91296);t.exports=function(t,e,i,r){t.pipelines.clear();var n=s(e,i,r).calc;e.render.call(e,t,i,n),t.pipelines.rebind()}},85592:t=>{t.exports={ARC:0,BEGIN_PATH:1,CLOSE_PATH:2,FILL_RECT:3,LINE_TO:4,MOVE_TO:5,LINE_STYLE:6,FILL_STYLE:7,FILL_PATH:8,STROKE_PATH:9,FILL_TRIANGLE:10,STROKE_TRIANGLE:11,SAVE:14,RESTORE:15,TRANSLATE:16,SCALE:17,ROTATE:18,GRADIENT_FILL_STYLE:21,GRADIENT_LINE_STYLE:22}},43831:(t,e,i)=>{var s=i(71911),r=i(83419),n=i(85592),o=i(31401),a=i(8497),h=i(95643),l=i(95540),u=i(35154),c=i(36383),d=i(84503),p=new r({Extends:h,Mixins:[o.AlphaSingle,o.BlendMode,o.Depth,o.Mask,o.Pipeline,o.PostPipeline,o.Transform,o.Visible,o.ScrollFactor,d],initialize:function(t,e){var i=u(e,"x",0),s=u(e,"y",0);h.call(this,t,"Graphics"),this.setPosition(i,s),this.initPipeline(),this.initPostPipeline(),this.displayOriginX=0,this.displayOriginY=0,this.commandBuffer=[],this.defaultFillColor=-1,this.defaultFillAlpha=1,this.defaultStrokeWidth=1,this.defaultStrokeColor=-1,this.defaultStrokeAlpha=1,this._lineWidth=1,this.lineStyle(1,0,0),this.fillStyle(0,0),this.setDefaultStyles(e)},setDefaultStyles:function(t){return u(t,"lineStyle",null)&&(this.defaultStrokeWidth=u(t,"lineStyle.width",1),this.defaultStrokeColor=u(t,"lineStyle.color",16777215),this.defaultStrokeAlpha=u(t,"lineStyle.alpha",1),this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha)),u(t,"fillStyle",null)&&(this.defaultFillColor=u(t,"fillStyle.color",16777215),this.defaultFillAlpha=u(t,"fillStyle.alpha",1),this.fillStyle(this.defaultFillColor,this.defaultFillAlpha)),this},lineStyle:function(t,e,i){return void 0===i&&(i=1),this.commandBuffer.push(n.LINE_STYLE,t,e,i),this._lineWidth=t,this},fillStyle:function(t,e){return void 0===e&&(e=1),this.commandBuffer.push(n.FILL_STYLE,t,e),this},fillGradientStyle:function(t,e,i,s,r,o,a,h){return void 0===r&&(r=1),void 0===o&&(o=r),void 0===a&&(a=r),void 0===h&&(h=r),this.commandBuffer.push(n.GRADIENT_FILL_STYLE,r,o,a,h,t,e,i,s),this},lineGradientStyle:function(t,e,i,s,r,o){return void 0===o&&(o=1),this.commandBuffer.push(n.GRADIENT_LINE_STYLE,t,o,e,i,s,r),this},beginPath:function(){return this.commandBuffer.push(n.BEGIN_PATH),this},closePath:function(){return this.commandBuffer.push(n.CLOSE_PATH),this},fillPath:function(){return this.commandBuffer.push(n.FILL_PATH),this},fill:function(){return this.commandBuffer.push(n.FILL_PATH),this},strokePath:function(){return this.commandBuffer.push(n.STROKE_PATH),this},stroke:function(){return this.commandBuffer.push(n.STROKE_PATH),this},fillCircleShape:function(t){return this.fillCircle(t.x,t.y,t.radius)},strokeCircleShape:function(t){return this.strokeCircle(t.x,t.y,t.radius)},fillCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,c.PI2),this.fillPath(),this},strokeCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,c.PI2),this.strokePath(),this},fillRectShape:function(t){return this.fillRect(t.x,t.y,t.width,t.height)},strokeRectShape:function(t){return this.strokeRect(t.x,t.y,t.width,t.height)},fillRect:function(t,e,i,s){return this.commandBuffer.push(n.FILL_RECT,t,e,i,s),this},strokeRect:function(t,e,i,s){var r=this._lineWidth/2,n=t-r,o=t+r;return this.beginPath(),this.moveTo(t,e),this.lineTo(t,e+s),this.strokePath(),this.beginPath(),this.moveTo(t+i,e),this.lineTo(t+i,e+s),this.strokePath(),this.beginPath(),this.moveTo(n,e),this.lineTo(o+i,e),this.strokePath(),this.beginPath(),this.moveTo(n,e+s),this.lineTo(o+i,e+s),this.strokePath(),this},fillRoundedRect:function(t,e,i,s,r){void 0===r&&(r=20);var n=r,o=r,a=r,h=r;"number"!=typeof r&&(n=l(r,"tl",20),o=l(r,"tr",20),a=l(r,"bl",20),h=l(r,"br",20));var u=n>=0,d=o>=0,p=a>=0,f=h>=0;return n=Math.abs(n),o=Math.abs(o),a=Math.abs(a),h=Math.abs(h),this.beginPath(),this.moveTo(t+n,e),this.lineTo(t+i-o,e),d?this.arc(t+i-o,e+o,o,-c.TAU,0):this.arc(t+i,e,o,Math.PI,c.TAU,!0),this.lineTo(t+i,e+s-h),f?this.arc(t+i-h,e+s-h,h,0,c.TAU):this.arc(t+i,e+s,h,-c.TAU,Math.PI,!0),this.lineTo(t+a,e+s),p?this.arc(t+a,e+s-a,a,c.TAU,Math.PI):this.arc(t,e+s,a,0,-c.TAU,!0),this.lineTo(t,e+n),u?this.arc(t+n,e+n,n,-Math.PI,-c.TAU):this.arc(t,e,n,c.TAU,0,!0),this.fillPath(),this},strokeRoundedRect:function(t,e,i,s,r){void 0===r&&(r=20);var n=r,o=r,a=r,h=r,u=Math.min(i,s)/2;"number"!=typeof r&&(n=l(r,"tl",20),o=l(r,"tr",20),a=l(r,"bl",20),h=l(r,"br",20));var d=n>=0,p=o>=0,f=a>=0,g=h>=0;return n=Math.min(Math.abs(n),u),o=Math.min(Math.abs(o),u),a=Math.min(Math.abs(a),u),h=Math.min(Math.abs(h),u),this.beginPath(),this.moveTo(t+n,e),this.lineTo(t+i-o,e),this.moveTo(t+i-o,e),p?this.arc(t+i-o,e+o,o,-c.TAU,0):this.arc(t+i,e,o,Math.PI,c.TAU,!0),this.lineTo(t+i,e+s-h),this.moveTo(t+i,e+s-h),g?this.arc(t+i-h,e+s-h,h,0,c.TAU):this.arc(t+i,e+s,h,-c.TAU,Math.PI,!0),this.lineTo(t+a,e+s),this.moveTo(t+a,e+s),f?this.arc(t+a,e+s-a,a,c.TAU,Math.PI):this.arc(t,e+s,a,0,-c.TAU,!0),this.lineTo(t,e+n),this.moveTo(t,e+n),d?this.arc(t+n,e+n,n,-Math.PI,-c.TAU):this.arc(t,e,n,c.TAU,0,!0),this.strokePath(),this},fillPointShape:function(t,e){return this.fillPoint(t.x,t.y,e)},fillPoint:function(t,e,i){return!i||i<1?i=1:(t-=i/2,e-=i/2),this.commandBuffer.push(n.FILL_RECT,t,e,i,i),this},fillTriangleShape:function(t){return this.fillTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},strokeTriangleShape:function(t){return this.strokeTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},fillTriangle:function(t,e,i,s,r,o){return this.commandBuffer.push(n.FILL_TRIANGLE,t,e,i,s,r,o),this},strokeTriangle:function(t,e,i,s,r,o){return this.commandBuffer.push(n.STROKE_TRIANGLE,t,e,i,s,r,o),this},strokeLineShape:function(t){return this.lineBetween(t.x1,t.y1,t.x2,t.y2)},lineBetween:function(t,e,i,s){return this.beginPath(),this.moveTo(t,e),this.lineTo(i,s),this.strokePath(),this},lineTo:function(t,e){return this.commandBuffer.push(n.LINE_TO,t,e),this},moveTo:function(t,e){return this.commandBuffer.push(n.MOVE_TO,t,e),this},strokePoints:function(t,e,i,s){void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===s&&(s=t.length),this.beginPath(),this.moveTo(t[0].x,t[0].y);for(var r=1;r-1&&this.fillStyle(this.defaultFillColor,this.defaultFillAlpha),this.defaultStrokeColor>-1&&this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha),this},generateTexture:function(t,e,i){var s,r,n=this.scene.sys,o=n.game.renderer;void 0===e&&(e=n.scale.width),void 0===i&&(i=n.scale.height),p.TargetCamera.setScene(this.scene),p.TargetCamera.setViewport(0,0,e,i),p.TargetCamera.scrollX=this.x,p.TargetCamera.scrollY=this.y;var a={willReadFrequently:!0};if("string"==typeof t)if(n.textures.exists(t)){var h=(s=n.textures.get(t)).getSourceImage();h instanceof HTMLCanvasElement&&(r=h.getContext("2d",a))}else r=(s=n.textures.createCanvas(t,e,i)).getSourceImage().getContext("2d",a);else t instanceof HTMLCanvasElement&&(r=t.getContext("2d",a));return r&&(this.renderCanvas(o,this,p.TargetCamera,null,r,!1),s&&s.refresh()),this},preDestroy:function(){this.commandBuffer=[]}});p.TargetCamera=new s,t.exports=p},32768:(t,e,i)=>{var s=i(85592),r=i(20926);t.exports=function(t,e,i,n,o,a){var h=e.commandBuffer,l=h.length,u=o||t.currentContext;if(0!==l&&r(t,u,e,i,n)){i.addToRenderList(e);var c=1,d=1,p=0,f=0,g=1,m=0,v=0,y=0;u.beginPath();for(var x=0;x>>16,v=(65280&p)>>>8,y=255&p,u.strokeStyle="rgba("+m+","+v+","+y+","+c+")",u.lineWidth=g,x+=3;break;case s.FILL_STYLE:f=h[x+1],d=h[x+2],m=(16711680&f)>>>16,v=(65280&f)>>>8,y=255&f,u.fillStyle="rgba("+m+","+v+","+y+","+d+")",x+=2;break;case s.BEGIN_PATH:u.beginPath();break;case s.CLOSE_PATH:u.closePath();break;case s.FILL_PATH:a||u.fill();break;case s.STROKE_PATH:a||u.stroke();break;case s.FILL_RECT:a?u.rect(h[x+1],h[x+2],h[x+3],h[x+4]):u.fillRect(h[x+1],h[x+2],h[x+3],h[x+4]),x+=4;break;case s.FILL_TRIANGLE:u.beginPath(),u.moveTo(h[x+1],h[x+2]),u.lineTo(h[x+3],h[x+4]),u.lineTo(h[x+5],h[x+6]),u.closePath(),a||u.fill(),x+=6;break;case s.STROKE_TRIANGLE:u.beginPath(),u.moveTo(h[x+1],h[x+2]),u.lineTo(h[x+3],h[x+4]),u.lineTo(h[x+5],h[x+6]),u.closePath(),a||u.stroke(),x+=6;break;case s.LINE_TO:u.lineTo(h[x+1],h[x+2]),x+=2;break;case s.MOVE_TO:u.moveTo(h[x+1],h[x+2]),x+=2;break;case s.LINE_FX_TO:u.lineTo(h[x+1],h[x+2]),x+=5;break;case s.MOVE_FX_TO:u.moveTo(h[x+1],h[x+2]),x+=5;break;case s.SAVE:u.save();break;case s.RESTORE:u.restore();break;case s.TRANSLATE:u.translate(h[x+1],h[x+2]),x+=2;break;case s.SCALE:u.scale(h[x+1],h[x+2]),x+=2;break;case s.ROTATE:u.rotate(h[x+1]),x+=1;break;case s.GRADIENT_FILL_STYLE:x+=5;break;case s.GRADIENT_LINE_STYLE:x+=6}u.restore()}}},87079:(t,e,i)=>{var s=i(44603),r=i(43831);s.register("graphics",(function(t,e){void 0===t&&(t={}),void 0!==e&&(t.add=e);var i=new r(this.scene,t);return t.add&&this.scene.sys.displayList.add(i),i}))},1201:(t,e,i)=>{var s=i(43831);i(39429).register("graphics",(function(t){return this.displayList.add(new s(this.scene,t))}))},84503:(t,e,i)=>{var s,r;i(29747),s=i(77545),i(32768),r=i(32768),t.exports={renderWebGL:s,renderCanvas:r}},77545:(t,e,i)=>{var s=i(85592),r=i(91296),n=i(61340),o=i(70554),a=function(t,e,i){this.x=t,this.y=e,this.width=i},h=function(t,e,i){this.points=[],this.pointsLength=1,this.points[0]=new a(t,e,i)},l=[],u=new n;t.exports=function(t,e,i,n){if(0!==e.commandBuffer.length){i.addToRenderList(e);var c=t.pipelines.set(e.pipeline,e);t.pipelines.preBatch(e);for(var d=r(e,i,n).calc,p=u.loadIdentity(),f=e.commandBuffer,g=i.alpha*e.alpha,m=1,v=c.fillTint,y=c.strokeTint,x=0,w=0,T=0,b=2*Math.PI,S=[],E=0,C=!0,A=null,_=o.getTintAppendFloatAlpha,P=0;P0&&(z=z%b-b):z>b?z=b:z<0&&(z=b+z%b),null===A&&(A=new h(B+Math.cos(Y)*U,N+Math.sin(Y)*U,m),S.push(A),I+=.01);I<1+G;)T=z*I+Y,x=B+Math.cos(T)*U,w=N+Math.sin(T)*U,A.points.push(new a(x,w,m)),I+=.01;T=z+Y,x=B+Math.cos(T)*U,w=N+Math.sin(T)*U,A.points.push(new a(x,w,m));break;case s.FILL_RECT:c.batchFillRect(f[++P],f[++P],f[++P],f[++P],p,d);break;case s.FILL_TRIANGLE:c.batchFillTriangle(f[++P],f[++P],f[++P],f[++P],f[++P],f[++P],p,d);break;case s.STROKE_TRIANGLE:c.batchStrokeTriangle(f[++P],f[++P],f[++P],f[++P],f[++P],f[++P],m,p,d);break;case s.LINE_TO:null!==A?A.points.push(new a(f[++P],f[++P],m)):(A=new h(f[++P],f[++P],m),S.push(A));break;case s.MOVE_TO:A=new h(f[++P],f[++P],m),S.push(A);break;case s.SAVE:l.push(p.copyToArray());break;case s.RESTORE:p.copyFromArray(l.pop());break;case s.TRANSLATE:B=f[++P],N=f[++P],p.translate(B,N);break;case s.SCALE:B=f[++P],N=f[++P],p.scale(B,N);break;case s.ROTATE:p.rotate(f[++P])}t.pipelines.postBatch(e)}}},26479:(t,e,i)=>{var s=i(61061),r=i(83419),n=i(51708),o=i(50792),a=i(46710),h=i(95540),l=i(35154),u=i(97022),c=i(41212),d=i(88492),p=i(35072),f=i(68287),g=new r({Extends:o,initialize:function(t,e,i){o.call(this),i?e&&!Array.isArray(e)&&(e=[e]):Array.isArray(e)?c(e[0])&&(i=e,e=null):c(e)&&(i=e,e=null),this.scene=t,this.children=new p,this.isParent=!0,this.type="Group",this.classType=h(i,"classType",f),this.name=h(i,"name",""),this.active=h(i,"active",!0),this.maxSize=h(i,"maxSize",-1),this.defaultKey=h(i,"defaultKey",null),this.defaultFrame=h(i,"defaultFrame",null),this.runChildUpdate=h(i,"runChildUpdate",!1),this.createCallback=h(i,"createCallback",null),this.removeCallback=h(i,"removeCallback",null),this.createMultipleCallback=h(i,"createMultipleCallback",null),this.internalCreateCallback=h(i,"internalCreateCallback",null),this.internalRemoveCallback=h(i,"internalRemoveCallback",null),e&&this.addMultiple(e),i&&this.createMultiple(i),this.on(n.ADDED_TO_SCENE,this.addedToScene,this),this.on(n.REMOVED_FROM_SCENE,this.removedFromScene,this)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},create:function(t,e,i,s,r,n){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.defaultKey),void 0===s&&(s=this.defaultFrame),void 0===r&&(r=!0),void 0===n&&(n=!0),this.isFull())return null;var o=new this.classType(this.scene,t,e,i,s);return o.addToDisplayList(this.scene.sys.displayList),o.addToUpdateList(),o.visible=r,o.setActive(n),this.add(o),o},createMultiple:function(t){if(this.isFull())return[];Array.isArray(t)||(t=[t]);var e=[];if(t[0].key)for(var i=0;i=0;u--)if((l=d[u]).active===i){if(++c===e)break}else l=null;return l?("number"==typeof r&&(l.x=r),"number"==typeof n&&(l.y=n),l):s?this.create(r,n,o,a,h):null},get:function(t,e,i,s,r){return this.getFirst(!1,!0,t,e,i,s,r)},getFirstAlive:function(t,e,i,s,r,n){return this.getFirst(!0,t,e,i,s,r,n)},getFirstDead:function(t,e,i,s,r,n){return this.getFirst(!1,t,e,i,s,r,n)},playAnimation:function(t,e){return s.PlayAnimation(this.children.entries,t,e),this},isFull:function(){return-1!==this.maxSize&&this.children.size>=this.maxSize},countActive:function(t){void 0===t&&(t=!0);for(var e=0,i=0;i{var s=i(44603),r=i(26479);s.register("group",(function(t){return new r(this.scene,null,t)}))},3385:(t,e,i)=>{var s=i(26479);i(39429).register("group",(function(t,e){return this.updateList.add(new s(this.scene,t,e))}))},88571:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(95643),o=i(59819),a=new s({Extends:n,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Size,r.TextureCrop,r.Tint,r.Transform,r.Visible,o],initialize:function(t,e,i,s,r){n.call(this,t,"Image"),this._crop=this.resetCropObject(),this.setTexture(s,r),this.setPosition(e,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)}});t.exports=a},40652:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e),t.batchSprite(e,e.frame,i,s)}},82459:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(88571);r.register("image",(function(t,e){void 0===t&&(t={});var i=n(t,"key",null),r=n(t,"frame",null),a=new o(this.scene,0,0,i,r);return void 0!==e&&(t.add=e),s(this.scene,a,t),a}))},2117:(t,e,i)=>{var s=i(88571);i(39429).register("image",(function(t,e,i,r){return this.displayList.add(new s(this.scene,t,e,i,r))}))},59819:(t,e,i)=>{var s,r;i(29747),s=i(99517),r=i(40652),t.exports={renderWebGL:s,renderCanvas:r}},99517:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e),this.pipeline.batchSprite(e,i,s)}},77856:(t,e,i)=>{var s={Events:i(51708),DisplayList:i(8050),GameObjectCreator:i(44603),GameObjectFactory:i(39429),UpdateList:i(45027),Components:i(31401),GetCalcMatrix:i(91296),BuildGameObject:i(25305),BuildGameObjectAnimation:i(13059),GameObject:i(95643),BitmapText:i(22186),Blitter:i(6107),Bob:i(46590),Container:i(31559),DOMElement:i(3069),DynamicBitmapText:i(2638),Extern:i(42421),Graphics:i(43831),Group:i(26479),Image:i(88571),Layer:i(93595),Particles:i(18404),PathFollower:i(1159),RenderTexture:i(591),RetroFont:i(196),Rope:i(77757),Sprite:i(68287),Text:i(50171),GetTextSize:i(14220),MeasureText:i(79557),TextStyle:i(35762),TileSprite:i(20839),Zone:i(41481),Video:i(18471),Shape:i(17803),Arc:i(23629),Curve:i(89),Ellipse:i(19921),Grid:i(30479),IsoBox:i(61475),IsoTriangle:i(16933),Line:i(57847),Polygon:i(24949),Rectangle:i(74561),Star:i(55911),Triangle:i(36931),Factories:{Blitter:i(12709),Container:i(24961),DOMElement:i(2611),DynamicBitmapText:i(72566),Extern:i(56315),Graphics:i(1201),Group:i(3385),Image:i(2117),Layer:i(20005),Particles:i(676),PathFollower:i(90145),RenderTexture:i(60505),Rope:i(96819),Sprite:i(46409),StaticBitmapText:i(34914),Text:i(68005),TileSprite:i(91681),Zone:i(84175),Video:i(89025),Arc:i(42563),Curve:i(40511),Ellipse:i(1543),Grid:i(34137),IsoBox:i(3933),IsoTriangle:i(49803),Line:i(2481),Polygon:i(64827),Rectangle:i(87959),Star:i(93697),Triangle:i(45245)},Creators:{Blitter:i(9403),Container:i(77143),DynamicBitmapText:i(11164),Graphics:i(87079),Group:i(94975),Image:i(82459),Layer:i(25179),Particles:i(92730),RenderTexture:i(34495),Rope:i(26209),Sprite:i(15567),StaticBitmapText:i(57336),Text:i(71259),TileSprite:i(14167),Zone:i(95261),Video:i(11511)}};s.Shader=i(20071),s.Mesh=i(4703),s.NineSlice=i(28103),s.PointLight=i(80321),s.Plane=i(33663),s.Factories.Shader=i(74177),s.Factories.Mesh=i(9225),s.Factories.NineSlice=i(47521),s.Factories.PointLight=i(71255),s.Factories.Plane=i(30985),s.Creators.Shader=i(54935),s.Creators.Mesh=i(20527),s.Creators.NineSlice=i(28279),s.Creators.PointLight=i(39829),s.Creators.Plane=i(56015),s.Light=i(41432),s.LightsManager=i(61356),s.LightsPlugin=i(88992),t.exports=s},93595:(t,e,i)=>{var s=i(10312),r=i(83419),n=i(31401),o=i(53774),a=i(45893),h=i(50792),l=i(51708),u=i(73162),c=i(33963),d=i(44594),p=i(19186),f=new r({Extends:u,Mixins:[n.AlphaSingle,n.BlendMode,n.Depth,n.Mask,n.PostPipeline,n.Visible,h,c],initialize:function(t,e){u.call(this,t),h.call(this),this.scene=t,this.displayList=null,this.type="Layer",this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,this.systems=t.sys,this.events=t.sys.events,this.sortChildrenFlag=!1,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.initPostPipeline(),this.clearAlpha(),this.setBlendMode(s.SKIP_CHECK),e&&this.add(e),t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new a(this)),this},setData:function(t,e){return this.data||(this.data=new a(this)),this.data.set(t,e),this},incData:function(t,e){return this.data||(this.data=new a(this)),this.data.inc(t,e),this},toggleData:function(t){return this.data||(this.data=new a(this)),this.data.toggle(t),this},getData:function(t){return this.data||(this.data=new a(this)),this.data.get(t)},setInteractive:function(){return this},disableInteractive:function(){return this},removeInteractive:function(){return this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return o(this)},willRender:function(t){return!(15!==this.renderFlags||0===this.list.length||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),t=e,e.parentContainer);)e=e.parentContainer;return i.unshift(this.displayList.getIndex(t)),i},addChildCallback:function(t){var e=t.displayList;e&&e!==this&&t.removeFromDisplayList(),t.displayList||(this.queueDepthSort(),t.displayList=this,t.emit(l.ADDED_TO_SCENE,t,this.scene),this.events.emit(d.ADDED_TO_SCENE,t,this.scene))},removeChildCallback:function(t){this.queueDepthSort(),t.displayList=null,t.emit(l.REMOVED_FROM_SCENE,t,this.scene),this.events.emit(d.REMOVED_FROM_SCENE,t,this.scene)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(p(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(t,e){return t._depth-e._depth},getChildren:function(){return this.list},addToDisplayList:function(t){return void 0===t&&(t=this.scene.sys.displayList),this.displayList&&this.displayList!==t&&this.removeFromDisplayList(),t.exists(this)||(this.displayList=t,t.add(this,!0),t.queueDepthSort(),this.emit(l.ADDED_TO_SCENE,this,this.scene),t.events.emit(d.ADDED_TO_SCENE,this,this.scene)),this},removeFromDisplayList:function(){var t=this.displayList||this.scene.sys.displayList;return t.exists(this)&&(t.remove(this,!0),t.queueDepthSort(),this.displayList=null,this.emit(l.REMOVED_FROM_SCENE,this,this.scene),t.events.emit(d.REMOVED_FROM_SCENE,this,this.scene)),this},destroy:function(t){if(this.scene&&!this.ignoreDestroy){this.emit(l.DESTROY,this);for(var e=this.list;e.length;)e[0].destroy(t);this.removeAllListeners(),this.resetPostPipeline(!0),this.displayList&&(this.displayList.remove(this,!0,!1),this.displayList.queueDepthSort()),this.data&&(this.data.destroy(),this.data=void 0),this.active=!1,this.visible=!1,this.list=void 0,this.scene=void 0,this.displayList=void 0,this.systems=void 0,this.events=void 0}}});t.exports=f},2956:t=>{t.exports=function(t,e,i){var s=e.list;if(0!==s.length){e.depthSort();var r=-1!==e.blendMode;r||t.setBlendMode(0);var n=e._alpha;e.mask&&e.mask.preRenderCanvas(t,null,i);for(var o=0;o{var s=i(25305),r=i(93595),n=i(44603),o=i(23568);n.register("layer",(function(t,e){void 0===t&&(t={});var i=o(t,"children",null),n=new r(this.scene,i);return void 0!==e&&(t.add=e),s(this.scene,n,t),n}))},20005:(t,e,i)=>{var s=i(93595);i(39429).register("layer",(function(t){return this.displayList.add(new s(this.scene,t))}))},33963:(t,e,i)=>{var s,r;i(29747),s=i(15869),r=i(2956),t.exports={renderWebGL:s,renderCanvas:r}},15869:t=>{t.exports=function(t,e,i){var s=e.list,r=s.length;if(0!==r){e.depthSort(),t.pipelines.preBatch(e);var n=-1!==e.blendMode;n||t.setBlendMode(0);for(var o=e.alpha,a=0;a{var s=i(96503),r=i(83419),n=i(31401),o=i(51767),a=i(70554),h=new r({Extends:s,Mixins:[n.Origin,n.ScrollFactor,n.Visible],initialize:function(t,e,i,r,n,a,h){s.call(this,t,e,i),this.color=new o(r,n,a),this.intensity=h,this.renderFlags=15,this.cameraFilter=0,this.setScrollFactor(1,1),this.setOrigin(),this.setDisplayOrigin(i)},displayWidth:{get:function(){return this.diameter},set:function(t){this.diameter=t}},displayHeight:{get:function(){return this.diameter},set:function(t){this.diameter=t}},width:{get:function(){return this.diameter},set:function(t){this.diameter=t}},height:{get:function(){return this.diameter},set:function(t){this.diameter=t}},willRender:function(t){return!(h.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},setColor:function(t){var e=a.getFloatsFromUintRGB(t);return this.color.set(e[0],e[1],e[2]),this},setIntensity:function(t){return this.intensity=t,this},setRadius:function(t){return this.radius=t,this}});h.RENDER_MASK=15,t.exports=h},61356:(t,e,i)=>{var s=i(81491),r=i(83419),n=i(20339),o=i(41432),a=i(80321),h=i(51767),l=i(19133),u=i(19186),c=i(70554),d=new r({initialize:function(){this.lights=[],this.ambientColor=new h(.1,.1,.1),this.active=!1,this.maxLights=-1,this.visibleLights=0},addPointLight:function(t,e,i,s,r,n){return this.systems.displayList.add(new a(this.scene,t,e,i,s,r,n))},enable:function(){return-1===this.maxLights&&(this.maxLights=this.systems.renderer.config.maxLights),this.active=!0,this},disable:function(){return this.active=!1,this},getLights:function(t){for(var e=this.lights,i=t.worldView,r=[],o=0;othis.maxLights&&(u(r,this.sortByDistance),r=r.slice(0,this.maxLights)),this.visibleLights=r.length,r},sortByDistance:function(t,e){return t.distance>=e.distance},setAmbientColor:function(t){var e=c.getFloatsFromUintRGB(t);return this.ambientColor.set(e[0],e[1],e[2]),this},getMaxVisibleLights:function(){return this.maxLights},getLightCount:function(){return this.lights.length},addLight:function(t,e,i,s,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=128),void 0===s&&(s=16777215),void 0===r&&(r=1);var n=c.getFloatsFromUintRGB(s),a=new o(t,e,i,n[0],n[1],n[2],r);return this.lights.push(a),a},removeLight:function(t){var e=this.lights.indexOf(t);return e>=0&&l(this.lights,e),this},shutdown:function(){this.lights.length=0},destroy:function(){this.shutdown()}});t.exports=d},88992:(t,e,i)=>{var s=i(83419),r=i(61356),n=i(37277),o=i(44594),a=new s({Extends:r,initialize:function(t){this.scene=t,this.systems=t.sys,t.sys.settings.isBooted||t.sys.events.once(o.BOOT,this.boot,this),r.call(this)},boot:function(){var t=this.systems.events;t.on(o.SHUTDOWN,this.shutdown,this),t.on(o.DESTROY,this.destroy,this)},destroy:function(){this.shutdown(),this.scene=void 0,this.systems=void 0}});n.register("LightsPlugin",a,"lights"),t.exports=a},4703:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(39506),o=i(83997),a=i(95643),h=i(34684),l=i(92515),u=i(91296),c=i(37867),d=i(29807),p=i(43396),f=i(19186),g=i(25836),m=i(39318),v=new s({Extends:a,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.Mask,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Size,r.Texture,r.Transform,r.Visible,d],initialize:function(t,e,i,s,r,n,o,h,l,u,d,p){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s="__WHITE"),a.call(this,t,"Mesh"),this.faces=[],this.vertices=[],this.tintFill=!1,this.debugCallback=null,this.debugGraphic=null,this.hideCCW=!0,this.modelPosition=new g,this.modelScale=new g(1,1,1),this.modelRotation=new g,this.dirtyCache=[0,0,0,0,0,0,0,0,0,0,0,0],this.transformMatrix=new c,this.viewPosition=new g,this.viewMatrix=new c,this.projectionMatrix=new c,this.totalRendered=0,this.totalFrame=0,this.ignoreDirtyCache=!1,this.fov,this.displayOriginX=0,this.displayOriginY=0;var f=t.sys.renderer;this.setPosition(e,i),this.setTexture(s,r),this.setSize(f.width,f.height),this.initPipeline(),this.initPostPipeline(),this.setPerspective(f.width,f.height),n&&this.addVertices(n,o,h,l,u,d,p)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},panX:function(t){return this.viewPosition.addScale(g.LEFT,t),this.dirtyCache[10]=1,this},panY:function(t){return this.viewPosition.y+=g.DOWN.y*t,this.dirtyCache[10]=1,this},panZ:function(t){return this.viewPosition.z+=t,this.dirtyCache[10]=1,this},setPerspective:function(t,e,i,s,r){return void 0===i&&(i=45),void 0===s&&(s=.01),void 0===r&&(r=1e3),this.fov=i,this.projectionMatrix.perspective(n(i),t/e,s,r),this.dirtyCache[10]=1,this.dirtyCache[11]=0,this},setOrtho:function(t,e,i,s){return void 0===t&&(t=this.scene.sys.renderer.getAspectRatio()),void 0===e&&(e=1),void 0===i&&(i=-1e3),void 0===s&&(s=1e3),this.fov=0,this.projectionMatrix.ortho(-t,t,-e,e,i,s),this.dirtyCache[10]=1,this.dirtyCache[11]=1,this},clear:function(){return this.faces.forEach((function(t){t.destroy()})),this.faces=[],this.vertices=[],this},addVerticesFromObj:function(t,e,i,s,r,n,o,a,l){var u,c=this.scene.sys.cache.obj.get(t);return c&&(u=h(c,this,e,i,s,r,n,o,a,l)),u&&0!==u.verts.length||console.warn("Mesh.addVerticesFromObj data empty:",t),this},sortByDepth:function(t,e){return t.depth-e.depth},depthSort:function(){return f(this.faces,this.sortByDepth),this},addVertex:function(t,e,i,s,r,n,o){var a=new m(t,e,i,s,r,n,o);return this.vertices.push(a),a},addFace:function(t,e,i){var s=new o(t,e,i);return this.faces.push(s),this.dirtyCache[9]=-1,s},addVertices:function(t,e,i,s,r,n,o){var a=l(t,e,i,s,r,n,o);return a?(this.faces=this.faces.concat(a.faces),this.vertices=this.vertices.concat(a.vertices)):console.warn("Mesh.addVertices data empty or invalid"),this.dirtyCache[9]=-1,this},getFaceCount:function(){return this.faces.length},getVertexCount:function(){return this.vertices.length},getFace:function(t){return this.faces[t]},hasFaceAt:function(t,e,i){void 0===i&&(i=this.scene.sys.cameras.main);for(var s=u(this,i).calc,r=this.faces,n=0;n{t.exports=function(){}},20527:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(35154),a=i(4703);r.register("mesh",(function(t,e){void 0===t&&(t={});var i=n(t,"key",null),r=n(t,"frame",null),h=o(t,"vertices",[]),l=o(t,"uvs",[]),u=o(t,"indicies",[]),c=o(t,"containsZ",!1),d=o(t,"normals",[]),p=o(t,"colors",16777215),f=o(t,"alphas",1),g=new a(this.scene,0,0,i,r,h,l,u,c,d,p,f);return void 0!==e&&(t.add=e),s(this.scene,g,t),g}))},9225:(t,e,i)=>{var s=i(4703);i(39429).register("mesh",(function(t,e,i,r,n,o,a,h,l,u,c){return this.displayList.add(new s(this.scene,t,e,i,r,n,o,a,h,l,u,c))}))},29807:(t,e,i)=>{var s,r;i(29747),s=i(48833),r=i(36488),t.exports={renderWebGL:s,renderCanvas:r}},48833:(t,e,i)=>{var s=i(91296);t.exports=function(t,e,i,r){var n=e.faces,o=n.length;if(0!==o){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline,e),h=s(e,i,r).calc;t.pipelines.preBatch(e);for(var l=a.setGameObject(e),u=a.vertexViewF32,c=a.vertexViewU32,d=a.vertexCount*a.currentShader.vertexComponentCount-1,p=e.tintFill,f=[],g=e.debugCallback,m=h.a,v=h.b,y=h.c,x=h.d,w=h.e,T=h.f,b=e.viewPosition.z,S=e.hideCCW,E=i.roundPixels,C=i.alpha*e.alpha,A=0,_=0;_{var s=i(83419),r=i(31401),n=i(95643),o=i(78023),a=i(39318),h=new s({Extends:n,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Texture,r.Transform,r.Visible,o],initialize:function(t,e,i,s,r,o,h,l,u,c,d){n.call(this,t,"NineSlice"),this._width,this._height,this._originX=.5,this._originY=.5,this._sizeComponent=!0,this.vertices=[],this.leftWidth,this.rightWidth,this.topHeight,this.bottomHeight,this.tint=16777215,this.tintFill=!1;var p=t.textures.getFrame(s,r);this.is3Slice=!c&&!d,p.scale9&&(this.is3Slice=p.is3Slice);for(var f=this.is3Slice?18:54,g=0;g{var s=i(25305),r=i(44603),n=i(23568),o=i(35154),a=i(28103);r.register("nineslice",(function(t,e){void 0===t&&(t={});var i=n(t,"key",null),r=n(t,"frame",null),h=o(t,"width",256),l=o(t,"height",256),u=o(t,"leftWidth",10),c=o(t,"rightWidth",10),d=o(t,"topHeight",0),p=o(t,"bottomHeight",0),f=new a(this.scene,0,0,i,r,h,l,u,c,d,p);return void 0!==e&&(t.add=e),s(this.scene,f,t),f}))},47521:(t,e,i)=>{var s=i(28103);i(39429).register("nineslice",(function(t,e,i,r,n,o,a,h,l,u){return this.displayList.add(new s(this.scene,t,e,i,r,n,o,a,h,l,u))}))},78023:(t,e,i)=>{var s,r=i(29747),n=r;s=i(52230),t.exports={renderWebGL:s,renderCanvas:n}},52230:(t,e,i)=>{var s=i(91296),r=i(70554);t.exports=function(t,e,i,n){var o=e.vertices,a=o.length;if(0!==a){i.addToRenderList(e);var h=t.pipelines.set(e.pipeline,e),l=s(e,i,n,!1).calc;t.pipelines.preBatch(e);var u=h.setGameObject(e),c=h.vertexViewF32,d=h.vertexViewU32,p=h.vertexCount*h.currentShader.vertexComponentCount-1,f=i.roundPixels,g=e.tintFill,m=i.alpha*e.alpha,v=r.getTintAppendFloatAlpha(e.tint,m),y=h.vertexAvailable(),x=-1;y{var s=i(83419),r=i(44777),n=i(37589),o=i(6113),a=i(91389),h=i(90664),l=new s({Extends:r,initialize:function(t){r.call(this,t,null,!1),this.active=!1,this.easeName="Linear",this.r=[],this.g=[],this.b=[]},getMethod:function(){return null===this.propertyValue?0:9},setMethods:function(){var t=this.propertyValue,e=t,i=this.defaultEmit,s=this.defaultUpdate;if(9===this.method){this.start=t[0],this.ease=o("Linear"),this.interpolation=a("linear"),i=this.easedValueEmit,s=this.easeValueUpdate,e=t[0],this.active=!0;for(var r=0;r{var s=i(30976),r=i(45319),n=i(83419),o=i(99472),a=i(6113),h=i(95540),l=i(91389),u=i(77720),c=i(15994),d=new n({initialize:function(t,e,i){void 0===i&&(i=!1),this.propertyKey=t,this.propertyValue=e,this.defaultValue=e,this.steps=0,this.counter=0,this.yoyo=!1,this.direction=0,this.start=0,this.current=0,this.end=0,this.ease=null,this.interpolation=null,this.emitOnly=i,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.active=!0,this.method=0,this._onEmit,this._onUpdate},loadConfig:function(t,e){void 0===t&&(t={}),e&&(this.propertyKey=e),this.propertyValue=h(t,this.propertyKey,this.defaultValue),this.method=this.getMethod(),this.setMethods(),this.emitOnly&&(this.onUpdate=this.defaultUpdate)},toJSON:function(){return JSON.stringify(this.propertyValue)},onChange:function(t){var e;switch(this.method){case 1:case 3:case 8:e=t;break;case 2:this.propertyValue.indexOf(t)>=0&&(e=t);break;case 4:var i=(this.end-this.start)/this.steps;e=u(t,i),this.counter=e;break;case 5:case 6:case 7:e=r(t,this.start,this.end);break;case 9:e=this.start[0]}return this.current=e,this},getMethod:function(){var t=this.propertyValue;if(null===t)return 0;var e=typeof t;if("number"===e)return 1;if(Array.isArray(t))return 2;if("function"===e)return 3;if("object"===e){if(this.hasBoth(t,"start","end"))return this.has(t,"steps")?4:5;if(this.hasBoth(t,"min","max"))return 6;if(this.has(t,"random"))return 7;if(this.hasEither(t,"onEmit","onUpdate"))return 8;if(this.hasEither(t,"values","interpolation"))return 9}return 0},setMethods:function(){var t=this.propertyValue,e=t,i=this.defaultEmit,s=this.defaultUpdate;switch(this.method){case 1:i=this.staticValueEmit;break;case 2:i=this.randomStaticValueEmit,e=t[0];break;case 3:this._onEmit=t,i=this.proxyEmit;break;case 4:this.start=t.start,this.end=t.end,this.steps=t.steps,this.counter=this.start,this.yoyo=!!this.has(t,"yoyo")&&t.yoyo,this.direction=0,i=this.steppedEmit,e=this.start;break;case 5:this.start=t.start,this.end=t.end;var r=this.has(t,"ease")?t.ease:"Linear";this.ease=a(r,t.easeParams),i=this.has(t,"random")&&t.random?this.randomRangedValueEmit:this.easedValueEmit,s=this.easeValueUpdate,e=this.start;break;case 6:this.start=t.min,this.end=t.max,i=this.has(t,"int")&&t.int?this.randomRangedIntEmit:this.randomRangedValueEmit,e=this.start;break;case 7:var n=t.random;Array.isArray(n)&&(this.start=n[0],this.end=n[1]),i=this.randomRangedIntEmit,e=this.start;break;case 8:this._onEmit=this.has(t,"onEmit")?t.onEmit:this.defaultEmit,this._onUpdate=this.has(t,"onUpdate")?t.onUpdate:this.defaultUpdate,i=this.proxyEmit,s=this.proxyUpdate;break;case 9:this.start=t.values;var o=this.has(t,"ease")?t.ease:"Linear";this.ease=a(o,t.easeParams),this.interpolation=l(t.interpolation),i=this.easedValueEmit,s=this.easeValueUpdate,e=this.start[0]}return this.onEmit=i,this.onUpdate=s,this.current=e,this},has:function(t,e){return t.hasOwnProperty(e)},hasBoth:function(t,e,i){return t.hasOwnProperty(e)&&t.hasOwnProperty(i)},hasEither:function(t,e,i){return t.hasOwnProperty(e)||t.hasOwnProperty(i)},defaultEmit:function(t,e,i){return i},defaultUpdate:function(t,e,i,s){return s},proxyEmit:function(t,e,i){var s=this._onEmit(t,e,i);return this.current=s,s},proxyUpdate:function(t,e,i,s){var r=this._onUpdate(t,e,i,s);return this.current=r,r},staticValueEmit:function(){return this.current},staticValueUpdate:function(){return this.current},randomStaticValueEmit:function(){var t=Math.floor(Math.random()*this.propertyValue.length);return this.current=this.propertyValue[t],this.current},randomRangedValueEmit:function(t,e){var i=o(this.start,this.end);return t&&t.data[e]&&(t.data[e].min=i,t.data[e].max=this.end),this.current=i,i},randomRangedIntEmit:function(t,e){var i=s(this.start,this.end);return t&&t.data[e]&&(t.data[e].min=i,t.data[e].max=this.end),this.current=i,i},steppedEmit:function(){var t,e=this.counter,i=e,s=(this.end-this.start)/this.steps;return this.yoyo?(0===this.direction?(i+=s)>=this.end&&(t=i-this.end,i=this.end-t,this.direction=1):(i-=s)<=this.start&&(t=this.start-i,i=this.start+t,this.direction=0),this.counter=i):this.counter=c(i+s,this.start,this.end),this.current=e,e},easedValueEmit:function(t,e){if(t&&t.data[e]){var i=t.data[e];i.min=this.start,i.max=this.end}return this.current=this.start,this.start},easeValueUpdate:function(t,e,i){var s,r=t.data[e],n=this.ease(i);return s=this.interpolation?this.interpolation(this.start,n):(r.max-r.min)*n+r.min,this.current=s,s},destroy:function(){this.propertyValue=null,this.defaultValue=null,this.ease=null,this.interpolation=null,this._onEmit=null,this._onUpdate=null}});t.exports=d},24502:(t,e,i)=>{var s=i(83419),r=i(95540),n=i(20286),o=new s({Extends:n,initialize:function(t,e,i,s,o){if("object"==typeof t){var a=t;t=r(a,"x",0),e=r(a,"y",0),i=r(a,"power",0),s=r(a,"epsilon",100),o=r(a,"gravity",50)}else void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=100),void 0===o&&(o=50);n.call(this,t,e,!0),this._gravity=o,this._power=i*o,this._epsilon=s*s},update:function(t,e){var i=this.x-t.x,s=this.y-t.y,r=i*i+s*s;if(0!==r){var n=Math.sqrt(r);r{var s=i(9674),r=i(45319),n=i(83419),o=i(39506),a=i(87841),h=i(11520),l=i(26099),u=new n({initialize:function(t){this.emitter=t,this.texture=null,this.frame=null,this.x=0,this.y=0,this.worldPosition=new l,this.velocityX=0,this.velocityY=0,this.accelerationX=0,this.accelerationY=0,this.maxVelocityX=1e4,this.maxVelocityY=1e4,this.bounce=0,this.scaleX=1,this.scaleY=1,this.alpha=1,this.angle=0,this.rotation=0,this.tint=16777215,this.life=1e3,this.lifeCurrent=1e3,this.delayCurrent=0,this.holdCurrent=0,this.lifeT=0,this.data={tint:{min:16777215,max:16777215},alpha:{min:1,max:1},rotate:{min:0,max:0},scaleX:{min:1,max:1},scaleY:{min:1,max:1},x:{min:0,max:0},y:{min:0,max:0},accelerationX:{min:0,max:0},accelerationY:{min:0,max:0},maxVelocityX:{min:0,max:0},maxVelocityY:{min:0,max:0},moveToX:{min:0,max:0},moveToY:{min:0,max:0},bounce:{min:0,max:0}},this.isCropped=!1,this.scene=t.scene,this.anims=new s(this),this.bounds=new a},emit:function(t,e,i,s,r,n){return this.emitter.emit(t,e,i,s,r,n)},isAlive:function(){return this.lifeCurrent>0},kill:function(){this.lifeCurrent=0},setPosition:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=t,this.y=e},fire:function(t,e){var i=this.emitter,s=i.ops,r=i.getAnim();if(r?this.anims.play(r):(this.frame=i.getFrame(),this.texture=this.frame.texture),!this.frame)throw new Error("Particle has no texture frame");if(i.getEmitZone(this),void 0===t?this.x+=s.x.onEmit(this,"x"):s.x.steps>0?this.x+=t+s.x.onEmit(this,"x"):this.x+=t,void 0===e?this.y+=s.y.onEmit(this,"y"):s.y.steps>0?this.y+=e+s.y.onEmit(this,"y"):this.y+=e,this.life=s.lifespan.onEmit(this,"lifespan"),this.lifeCurrent=this.life,this.lifeT=0,this.delayCurrent=s.delay.onEmit(this,"delay"),this.holdCurrent=s.hold.onEmit(this,"hold"),this.scaleX=s.scaleX.onEmit(this,"scaleX"),this.scaleY=s.scaleY.active?s.scaleY.onEmit(this,"scaleY"):this.scaleX,this.angle=s.rotate.onEmit(this,"rotate"),this.rotation=o(this.angle),i.worldMatrix.transformPoint(this.x,this.y,this.worldPosition),0===this.delayCurrent&&i.getDeathZone(this))return this.lifeCurrent=0,!1;var n=s.speedX.onEmit(this,"speedX"),a=s.speedY.active?s.speedY.onEmit(this,"speedY"):n;if(i.radial){var h=o(s.angle.onEmit(this,"angle"));this.velocityX=Math.cos(h)*Math.abs(n),this.velocityY=Math.sin(h)*Math.abs(a)}else if(i.moveTo){var l=s.moveToX.onEmit(this,"moveToX"),u=s.moveToY.onEmit(this,"moveToY"),c=this.life/1e3;this.velocityX=(l-this.x)/c,this.velocityY=(u-this.y)/c}else this.velocityX=n,this.velocityY=a;return i.acceleration&&(this.accelerationX=s.accelerationX.onEmit(this,"accelerationX"),this.accelerationY=s.accelerationY.onEmit(this,"accelerationY")),this.maxVelocityX=s.maxVelocityX.onEmit(this,"maxVelocityX"),this.maxVelocityY=s.maxVelocityY.onEmit(this,"maxVelocityY"),this.bounce=s.bounce.onEmit(this,"bounce"),this.alpha=s.alpha.onEmit(this,"alpha"),s.color.active?this.tint=s.color.onEmit(this,"tint"):this.tint=s.tint.onEmit(this,"tint"),!0},update:function(t,e,i){if(this.lifeCurrent<=0)return!(this.holdCurrent>0)||(this.holdCurrent-=t,this.holdCurrent<=0);if(this.delayCurrent>0)return this.delayCurrent-=t,!1;this.anims.update(0,t);var s=this.emitter,n=s.ops,a=1-this.lifeCurrent/this.life;if(this.lifeT=a,this.x=n.x.onUpdate(this,"x",a,this.x),this.y=n.y.onUpdate(this,"y",a,this.y),s.moveTo){var h=n.moveToX.onUpdate(this,"moveToX",a,s.moveToX),l=n.moveToY.onUpdate(this,"moveToY",a,s.moveToY),u=this.lifeCurrent/1e3;this.velocityX=(h-this.x)/u,this.velocityY=(l-this.y)/u}return this.computeVelocity(s,t,e,i,a),this.scaleX=n.scaleX.onUpdate(this,"scaleX",a,this.scaleX),n.scaleY.active?this.scaleY=n.scaleY.onUpdate(this,"scaleY",a,this.scaleY):this.scaleY=this.scaleX,this.angle=n.rotate.onUpdate(this,"rotate",a,this.angle),this.rotation=o(this.angle),s.getDeathZone(this)?(this.lifeCurrent=0,!0):(this.alpha=r(n.alpha.onUpdate(this,"alpha",a,this.alpha),0,1),n.color.active?this.tint=n.color.onUpdate(this,"color",a,this.tint):this.tint=n.tint.onUpdate(this,"tint",a,this.tint),this.lifeCurrent-=t,this.lifeCurrent<=0&&this.holdCurrent<=0)},computeVelocity:function(t,e,i,s,n){var o=t.ops,a=this.velocityX,h=this.velocityY,l=o.accelerationX.onUpdate(this,"accelerationX",n,this.accelerationX),u=o.accelerationY.onUpdate(this,"accelerationY",n,this.accelerationY),c=o.maxVelocityX.onUpdate(this,"maxVelocityX",n,this.maxVelocityX),d=o.maxVelocityY.onUpdate(this,"maxVelocityY",n,this.maxVelocityY);this.bounce=o.bounce.onUpdate(this,"bounce",n,this.bounce),a+=t.gravityX*i+l*i,h+=t.gravityY*i+u*i,a=r(a,-c,c),h=r(h,-d,d),this.velocityX=a,this.velocityY=h,this.x+=a*i,this.y+=h*i,t.worldMatrix.transformPoint(this.x,this.y,this.worldPosition);for(var p=0;p{var s=i(83419),r=i(20286),n=i(87841),o=new s({Extends:r,initialize:function(t,e,i,s,o,a,h,l){void 0===o&&(o=!0),void 0===a&&(a=!0),void 0===h&&(h=!0),void 0===l&&(l=!0),r.call(this,t,e,!0),this.bounds=new n(t,e,i,s),this.collideLeft=o,this.collideRight=a,this.collideTop=h,this.collideBottom=l},update:function(t){var e=this.bounds,i=-t.bounce,s=t.worldPosition;s.xe.right&&this.collideRight&&(t.x-=s.x-e.right,t.velocityX*=i),s.ye.bottom&&this.collideBottom&&(t.y-=s.y-e.bottom,t.velocityY*=i)}});t.exports=o},31600:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(53774),o=i(43459),a=i(26388),h=i(19909),l=i(76472),u=i(44777),c=i(20696),d=i(95643),p=i(95540),f=i(26546),g=i(24502),m=i(1985),v=i(97022),y=i(86091),x=i(73162),w=i(20074),T=i(56480),b=i(68875),S=i(87841),E=i(59996),C=i(72905),A=i(90668),_=i(19186),P=i(61340),R=i(26099),M=i(15994),k=i(69601),L=["active","advance","blendMode","colorEase","deathCallback","deathCallbackScope","duration","emitCallback","emitCallbackScope","follow","frequency","gravityX","gravityY","maxAliveParticles","maxParticles","name","emitting","particleBringToTop","particleClass","radial","sortCallback","sortOrderAsc","sortProperty","stopAfter","tintFill","timeScale","trackVisible","visible"],O=["accelerationX","accelerationY","alpha","angle","bounce","color","delay","hold","lifespan","maxVelocityX","maxVelocityY","moveToX","moveToY","quantity","rotate","scaleX","scaleY","speedX","speedY","tint","x","y"],F=new s({Extends:d,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.Mask,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Texture,r.Transform,r.Visible,A],initialize:function(t,e,i,s,r){d.call(this,t,"ParticleEmitter"),this.particleClass=T,this.ops={accelerationX:new u("accelerationX",0),accelerationY:new u("accelerationY",0),alpha:new u("alpha",1),angle:new u("angle",{min:0,max:360},!0),bounce:new u("bounce",0),color:new l("color"),delay:new u("delay",0,!0),hold:new u("hold",0,!0),lifespan:new u("lifespan",1e3,!0),maxVelocityX:new u("maxVelocityX",1e4),maxVelocityY:new u("maxVelocityY",1e4),moveToX:new u("moveToX",0),moveToY:new u("moveToY",0),quantity:new u("quantity",1,!0),rotate:new u("rotate",0),scaleX:new u("scaleX",1),scaleY:new u("scaleY",1),speedX:new u("speedX",0,!0),speedY:new u("speedY",0,!0),tint:new u("tint",16777215),x:new u("x",0),y:new u("y",0)},this.radial=!0,this.gravityX=0,this.gravityY=0,this.acceleration=!1,this.moveTo=!1,this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.maxParticles=0,this.maxAliveParticles=0,this.stopAfter=0,this.duration=0,this.frequency=0,this.emitting=!0,this.particleBringToTop=!0,this.timeScale=1,this.emitZones=[],this.deathZones=[],this.viewBounds=null,this.follow=null,this.followOffset=new R,this.trackVisible=!1,this.frames=[],this.randomFrame=!0,this.frameQuantity=1,this.anims=[],this.randomAnim=!0,this.animQuantity=1,this.dead=[],this.alive=[],this.counters=new Float32Array(10),this.skipping=!1,this.worldMatrix=new P,this.sortProperty="",this.sortOrderAsc=!0,this.sortCallback=this.depthSortCallback,this.processors=new x(this),this.tintFill=!1,this.initPipeline(),this.initPostPipeline(),this.setPosition(e,i),this.setTexture(s),r&&this.setConfig(r)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},setConfig:function(t){if(!t)return this;var e=0,i="",s=this.ops;for(e=0;e=this.animQuantity&&(this.animCounter=0,this.currentAnim=M(this.currentAnim+1,0,e)),i},setAnim:function(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=1),this.randomAnim=e,this.animQuantity=i,this.currentAnim=0;var s=typeof t;if(this.anims.length=0,Array.isArray(t))this.anims=this.anims.concat(t);else if("string"===s)this.anims.push(t);else if("object"===s){var r=t;(t=p(r,"anims",null))&&(this.anims=this.anims.concat(t));var n=p(r,"cycle",!1);this.randomAnim=!n,this.animQuantity=p(r,"quantity",i)}return 1===this.anims.length&&(this.animQuantity=1,this.randomAnim=!1),this},setRadial:function(t){return void 0===t&&(t=!0),this.radial=t,this},addParticleBounds:function(t,e,i,s,r,n,o,a){if("object"==typeof t){var h=t;t=h.x,e=h.y,i=v(h,"w")?h.w:h.width,s=v(h,"h")?h.h:h.height}return this.addParticleProcessor(new k(t,e,i,s,r,n,o,a))},setParticleSpeed:function(t,e){return void 0===e&&(e=t),this.ops.speedX.onChange(t),t===e?this.ops.speedY.active=!1:this.ops.speedY.onChange(e),this.radial=!0,this},setParticleScale:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.ops.scaleX.onChange(t),this.ops.scaleY.onChange(e),this},setParticleGravity:function(t,e){return this.gravityX=t,this.gravityY=e,this},setParticleAlpha:function(t){return this.ops.alpha.onChange(t),this},setParticleTint:function(t){return this.ops.tint.onChange(t),this},setEmitterAngle:function(t){return this.ops.angle.onChange(t),this},setParticleLifespan:function(t){return this.ops.lifespan.onChange(t),this},setQuantity:function(t){return this.quantity=t,this},setFrequency:function(t,e){return this.frequency=t,this.flowCounter=t>0?t:0,e&&(this.quantity=e),this},addDeathZone:function(t){var e;Array.isArray(t)||(t=[t]);for(var i=[],s=0;s-1&&(this.zoneTotal++,this.zoneTotal===s.total&&(this.zoneTotal=0,this.zoneIndex++,this.zoneIndex===i&&(this.zoneIndex=0)))}},getDeathZone:function(t){for(var e=this.deathZones,i=0;i=0&&(this.zoneIndex=e),this},addParticleProcessor:function(t){return this.processors.exists(t)||(t.emitter&&t.emitter.removeParticleProcessor(t),this.processors.add(t),t.emitter=this),t},removeParticleProcessor:function(t){return this.processors.exists(t)&&(this.processors.remove(t,!0),t.emitter=null),t},getProcessors:function(){return this.processors.getAll("active",!0)},createGravityWell:function(t){return this.addParticleProcessor(new g(t))},reserve:function(t){var e=this.dead;if(this.maxParticles>0){var i=this.getParticleCount();i+t>this.maxParticles&&(t=this.maxParticles-(i+t))}for(var s=0;s0&&this.getParticleCount()>=this.maxParticles||this.maxAliveParticles>0&&this.getAliveParticleCount()>=this.maxAliveParticles},onParticleEmit:function(t,e){return void 0===t?(this.emitCallback=null,this.emitCallbackScope=null):"function"==typeof t&&(this.emitCallback=t,e&&(this.emitCallbackScope=e)),this},onParticleDeath:function(t,e){return void 0===t?(this.deathCallback=null,this.deathCallbackScope=null):"function"==typeof t&&(this.deathCallback=t,e&&(this.deathCallbackScope=e)),this},killAll:function(){for(var t=this.dead,e=this.alive;e.length>0;)t.push(e.pop());return this},forEachAlive:function(t,e){for(var i=this.alive,s=i.length,r=0;r0&&this.fastForward(t),this.emitting=!0,this.resetCounters(this.frequency,!0),void 0!==e&&(this.duration=Math.abs(e)),this.emit(c.START,this)),this},stop:function(t){return void 0===t&&(t=!1),this.emitting&&(this.emitting=!1,t&&this.killAll(),this.emit(c.STOP,this)),this},pause:function(){return this.active=!1,this},resume:function(){return this.active=!0,this},setSortProperty:function(t,e){return void 0===t&&(t=""),void 0===e&&(e=this.true),this.sortProperty=t,this.sortOrderAsc=e,this.sortCallback=this.depthSortCallback,this},setSortCallback:function(t){return t=""!==this.sortProperty?this.depthSortCallback:null,this.sortCallback=t,this},depthSort:function(){return _(this.alive,this.sortCallback.bind(this)),this},depthSortCallback:function(t,e){var i=this.sortProperty;return this.sortOrderAsc?t[i]-e[i]:e[i]-t[i]},flow:function(t,e,i){return void 0===e&&(e=1),this.emitting=!1,this.frequency=t,this.quantity=e,void 0!==i&&(this.stopAfter=i),this.start()},explode:function(t,e,i){this.frequency=-1,this.resetCounters(-1,!0);var s=this.emitParticle(t,e,i);return this.emit(c.EXPLODE,this,s),s},emitParticleAt:function(t,e,i){return this.emitParticle(i,t,e)},emitParticle:function(t,e,i){if(!this.atLimit()){void 0===t&&(t=this.ops.quantity.onEmit());for(var s=this.dead,r=this.stopAfter,n=this.follow?this.follow.x+this.followOffset.x:e,o=this.follow?this.follow.y+this.followOffset.y:i,a=0;a0&&(this.stopCounter++,this.stopCounter>=r))break;if(this.atLimit())break}return h}},fastForward:function(t,e){void 0===e&&(e=1e3/60);var i=0;for(this.skipping=!0;i0){var u=this.deathCallback,d=this.deathCallbackScope;for(o=h-1;o>=0;o--){var p=a[o];r.splice(p.index,1),n.push(p.particle),u&&u.call(d,p.particle),p.particle.setPosition()}}if(this.emitting||this.skipping){if(0===this.frequency)this.emitParticle();else if(this.frequency>0)for(this.flowCounter-=e;this.flowCounter<=0;)this.emitParticle(),this.flowCounter+=this.frequency;this.skipping||(this.duration>0&&(this.elapsed+=e,this.elapsed>=this.duration&&this.stop()),this.stopAfter>0&&this.stopCounter>=this.stopAfter&&this.stop())}else 1===this.completeFlag&&0===r.length&&(this.completeFlag=0,this.emit(c.COMPLETE,this))},overlap:function(t){for(var e=this.getWorldTransformMatrix(),i=this.alive,s=i.length,r=[],n=0;n0){var u=0;for(this.skipping=!0;u0&&y(s,t,t),s},createEmitter:function(){throw new Error("createEmitter removed. See ParticleEmitter docs for info")},particleX:{get:function(){return this.ops.x.current},set:function(t){this.ops.x.onChange(t)}},particleY:{get:function(){return this.ops.y.current},set:function(t){this.ops.y.onChange(t)}},accelerationX:{get:function(){return this.ops.accelerationX.current},set:function(t){this.ops.accelerationX.onChange(t)}},accelerationY:{get:function(){return this.ops.accelerationY.current},set:function(t){this.ops.accelerationY.onChange(t)}},maxVelocityX:{get:function(){return this.ops.maxVelocityX.current},set:function(t){this.ops.maxVelocityX.onChange(t)}},maxVelocityY:{get:function(){return this.ops.maxVelocityY.current},set:function(t){this.ops.maxVelocityY.onChange(t)}},speed:{get:function(){return this.ops.speedX.current},set:function(t){this.ops.speedX.onChange(t),this.ops.speedY.onChange(t)}},speedX:{get:function(){return this.ops.speedX.current},set:function(t){this.ops.speedX.onChange(t)}},speedY:{get:function(){return this.ops.speedY.current},set:function(t){this.ops.speedY.onChange(t)}},moveToX:{get:function(){return this.ops.moveToX.current},set:function(t){this.ops.moveToX.onChange(t)}},moveToY:{get:function(){return this.ops.moveToY.current},set:function(t){this.ops.moveToY.onChange(t)}},bounce:{get:function(){return this.ops.bounce.current},set:function(t){this.ops.bounce.onChange(t)}},particleScaleX:{get:function(){return this.ops.scaleX.current},set:function(t){this.ops.scaleX.onChange(t)}},particleScaleY:{get:function(){return this.ops.scaleY.current},set:function(t){this.ops.scaleY.onChange(t)}},particleColor:{get:function(){return this.ops.color.current},set:function(t){this.ops.color.onChange(t)}},colorEase:{get:function(){return this.ops.color.easeName},set:function(t){this.ops.color.setEase(t)}},particleTint:{get:function(){return this.ops.tint.current},set:function(t){this.ops.tint.onChange(t)}},particleAlpha:{get:function(){return this.ops.alpha.current},set:function(t){this.ops.alpha.onChange(t)}},lifespan:{get:function(){return this.ops.lifespan.current},set:function(t){this.ops.lifespan.onChange(t)}},particleAngle:{get:function(){return this.ops.angle.current},set:function(t){this.ops.angle.onChange(t)}},particleRotate:{get:function(){return this.ops.rotate.current},set:function(t){this.ops.rotate.onChange(t)}},quantity:{get:function(){return this.ops.quantity.current},set:function(t){this.ops.quantity.onChange(t)}},delay:{get:function(){return this.ops.delay.current},set:function(t){this.ops.delay.onChange(t)}},hold:{get:function(){return this.ops.hold.current},set:function(t){this.ops.hold.onChange(t)}},flowCounter:{get:function(){return this.counters[0]},set:function(t){this.counters[0]=t}},frameCounter:{get:function(){return this.counters[1]},set:function(t){this.counters[1]=t}},animCounter:{get:function(){return this.counters[2]},set:function(t){this.counters[2]=t}},elapsed:{get:function(){return this.counters[3]},set:function(t){this.counters[3]=t}},stopCounter:{get:function(){return this.counters[4]},set:function(t){this.counters[4]=t}},completeFlag:{get:function(){return this.counters[5]},set:function(t){this.counters[5]=t}},zoneIndex:{get:function(){return this.counters[6]},set:function(t){this.counters[6]=t}},zoneTotal:{get:function(){return this.counters[7]},set:function(t){this.counters[7]=t}},currentFrame:{get:function(){return this.counters[8]},set:function(t){this.counters[8]=t}},currentAnim:{get:function(){return this.counters[9]},set:function(t){this.counters[9]=t}},preDestroy:function(){var t;this.texture=null,this.frames=null,this.anims=null,this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.emitZones=null,this.deathZones=null,this.bounds=null,this.follow=null,this.counters=null;var e=this.ops;for(t=0;t{var s=i(59996),r=i(61340),n=new r,o=new r,a=new r,h=new r;t.exports=function(t,e,i,r){var l=n,u=o,c=a,d=h;r?(d.loadIdentity(),d.multiply(r),d.translate(e.x,e.y),d.rotate(e.rotation),d.scale(e.scaleX,e.scaleY)):d.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);var p=t.currentContext,f=i.roundPixels,g=i.alpha,m=e.alpha,v=e.alive,y=v.length,x=e.viewBounds;if(e.visible&&0!==y&&(!x||s(x,i.worldView))){e.sortCallback&&e.depthSort(),i.addToRenderList(e);var w=e.scrollFactorX,T=e.scrollFactorY;p.save(),p.globalCompositeOperation=t.blendModes[e.blendMode];for(var b=0;b0&&A.height>0){var _=-C.halfWidth,P=-C.halfHeight;p.globalAlpha=E,p.save(),u.setToContext(p),f&&(_=Math.round(_),P=Math.round(P)),p.imageSmoothingEnabled=!C.source.scaleMode,p.drawImage(C.source.image,A.x,A.y,A.width,A.height,_,P,A.width,A.height),p.restore()}}}p.restore()}}},92730:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(95540),a=i(31600);r.register("particles",(function(t,e){void 0===t&&(t={});var i=n(t,"key",null),r=o(t,"config",null),h=new a(this.scene,0,0,i);return void 0!==e&&(t.add=e),s(this.scene,h,t),r&&h.setConfig(r),h}))},676:(t,e,i)=>{var s=i(39429),r=i(31600);s.register("particles",(function(t,e,i,s){return void 0!==t&&"string"==typeof t&&console.warn("ParticleEmitterManager was removed in Phaser 3.60. See documentation for details"),this.displayList.add(new r(this.scene,t,e,i,s))}))},90668:(t,e,i)=>{var s,r;i(29747),s=i(21188),r=i(9871),t.exports={renderWebGL:s,renderCanvas:r}},21188:(t,e,i)=>{var s=i(59996),r=i(61340),n=i(70554),o=new r,a=new r,h=new r,l=new r;t.exports=function(t,e,i,r){var u=t.pipelines.set(e.pipeline),c=o,d=a,p=h,f=l;r?(f.loadIdentity(),f.multiply(r),f.translate(e.x,e.y),f.rotate(e.rotation),f.scale(e.scaleX,e.scaleY)):f.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);var g=n.getTintAppendFloatAlpha,m=i.alpha,v=e.alpha;t.pipelines.preBatch(e);var y=e.alive,x=y.length,w=e.viewBounds;if(0!==x&&(!w||s(w,i.worldView))){e.sortCallback&&e.depthSort(),i.addToRenderList(e),c.copyFrom(i.matrix),c.multiplyWithOffset(f,-i.scrollX*e.scrollFactorX,-i.scrollY*e.scrollFactorY),t.setBlendMode(e.blendMode),e.mask&&(e.mask.preRenderWebGL(t,e,i),t.pipelines.set(e.pipeline));for(var T,b,S=e.tintFill,E=0;E{var s=new(i(83419))({initialize:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=!0),this.emitter,this.x=t,this.y=e,this.active=i},update:function(){},destroy:function(){this.emitter=null}});t.exports=s},9774:t=>{t.exports="complete"},812:t=>{t.exports="deathzone"},30522:t=>{t.exports="explode"},96695:t=>{t.exports="start"},18677:t=>{t.exports="stop"},20696:(t,e,i)=>{t.exports={COMPLETE:i(9774),DEATH_ZONE:i(812),EXPLODE:i(30522),START:i(96695),STOP:i(18677)}},18404:(t,e,i)=>{t.exports={EmitterColorOp:i(76472),EmitterOp:i(44777),Events:i(20696),GravityWell:i(24502),Particle:i(56480),ParticleBounds:i(69601),ParticleEmitter:i(31600),ParticleProcessor:i(20286),Zones:i(21024)}},26388:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e){this.source=t,this.killOnEnter=e},willKill:function(t){var e=t.worldPosition,i=this.source.contains(e.x,e.y);return i&&this.killOnEnter||!i&&!this.killOnEnter}});t.exports=s},19909:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e,i,s,r,n){void 0===s&&(s=!1),void 0===r&&(r=!0),void 0===n&&(n=-1),this.source=t,this.points=[],this.quantity=e,this.stepRate=i,this.yoyo=s,this.counter=-1,this.seamless=r,this._length=0,this._direction=0,this.total=n,this.updateSource()},updateSource:function(){if(this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless){var t=this.points[0],e=this.points[this.points.length-1];t.x===e.x&&t.y===e.y&&this.points.pop()}var i=this._length;return this._length=this.points.length,this._lengththis._length&&(this.counter=this._length-1),this},changeSource:function(t){return this.source=t,this.updateSource()},getPoint:function(t){0===this._direction?(this.counter++,this.counter>=this._length&&(this.yoyo?(this._direction=1,this.counter=this._length-1):this.counter=0)):(this.counter--,-1===this.counter&&(this.yoyo?(this._direction=0,this.counter=0):this.counter=this._length-1));var e=this.points[this.counter];e&&(t.x=e.x,t.y=e.y)}});t.exports=s},68875:(t,e,i)=>{var s=i(83419),r=i(26099),n=new s({initialize:function(t){this.source=t,this._tempVec=new r,this.total=-1},getPoint:function(t){var e=this._tempVec;this.source.getRandomPoint(e),t.x=e.x,t.y=e.y}});t.exports=n},21024:(t,e,i)=>{t.exports={DeathZone:i(26388),EdgeZone:i(19909),RandomZone:i(68875)}},1159:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(68287),o=new s({Extends:n,Mixins:[r.PathFollower],initialize:function(t,e,i,s,r,o){n.call(this,t,i,s,r,o),this.path=e},preUpdate:function(t,e){this.anims.update(t,e),this.pathUpdate(t)}});t.exports=o},90145:(t,e,i)=>{var s=i(39429),r=i(1159);s.register("follower",(function(t,e,i,s,n){var o=new r(this.scene,t,e,i,s,n);return this.displayList.add(o),this.updateList.add(o),o}))},33663:(t,e,i)=>{var s=i(9674),r=i(83419),n=i(48803),o=i(90664),a=i(4703),h=i(45650),l=new r({Extends:a,initialize:function(t,e,i,r,n,o,h,l){r||(r="__DEFAULT"),a.call(this,t,e,i,r,n),this.type="Plane",this.anims=new s(this),this.gridWidth,this.gridHeight,this.isTiled,this._checkerboard=null,this.hideCCW=!1,this.setGridSize(o,h,l),this.setSizeToFrame(!1),this.setViewHeight()},originX:{get:function(){return.5}},originY:{get:function(){return.5}},setGridSize:function(t,e,i){void 0===t&&(t=8),void 0===e&&(e=8),void 0===i&&(i=!1);var s=!1;return i&&(s=!0),this.gridWidth=t,this.gridHeight=e,this.isTiled=i,this.clear(),n({mesh:this,widthSegments:t,heightSegments:e,isOrtho:!1,tile:i,flipY:s}),this},setSizeToFrame:function(t){void 0===t&&(t=!0);var e=this.frame;if(this.setPerspective(this.width/e.width,this.height/e.height),this._checkerboard&&this._checkerboard!==this.texture&&this.removeCheckerboard(),!t)return this;var i,s,r=this.gridWidth,n=this.gridHeight,o=this.vertices,a=e.u0,h=e.u1,l=e.v0,u=e.v1,c=0;if(this.isTiled)for(l=e.v1,u=e.v0,s=0;s7&&c>7?l.push(n.r,n.g,n.b,i):l.push(a.r,a.g,a.b,s);var d=this.scene.sys.textures.addUint8Array(h(),new Uint8Array(l),16,16);return this.removeCheckerboard(),this.setTexture(d),this.setSizeToFrame(),this.setViewHeight(r),this},removeCheckerboard:function(){this._checkerboard&&(this._checkerboard.destroy(),this._checkerboard=null)},play:function(t,e){return this.anims.play(t,e)},playReverse:function(t,e){return this.anims.playReverse(t,e)},playAfterDelay:function(t,e){return this.anims.playAfterDelay(t,e)},playAfterRepeat:function(t,e){return this.anims.playAfterRepeat(t,e)},stop:function(){return this.anims.stop()},stopAfterDelay:function(t){return this.anims.stopAfterDelay(t)},stopAfterRepeat:function(t){return this.anims.stopAfterRepeat(t)},stopOnFrame:function(t){return this.anims.stopOnFrame(t)},preUpdate:function(t,e){a.prototype.preUpdate.call(this,t,e),this.anims.update(t,e)},preDestroy:function(){this.clear(),this.removeCheckerboard(),this.anims.destroy(),this.anims=void 0,this.debugCallback=null,this.debugGraphic=null}});t.exports=l},56015:(t,e,i)=>{var s=i(25305),r=i(13059),n=i(44603),o=i(23568),a=i(35154),h=i(33663);n.register("plane",(function(t,e){void 0===t&&(t={});var i=o(t,"key",null),n=o(t,"frame",null),l=a(t,"width",8),u=a(t,"height",8),c=a(t,"tile",!1),d=new h(this.scene,0,0,i,n,l,u,c);void 0!==e&&(t.add=e);var p=a(t,"checkerboard",null);if(p){var f=a(p,"color1",16777215),g=a(p,"color2",255),m=a(p,"alpha1",255),v=a(p,"alpha2",255),y=a(p,"height",128);d.createCheckerboard(f,g,m,v,y)}return s(this.scene,d,t),r(d,t),d}))},30985:(t,e,i)=>{var s=i(33663);i(39429).register("plane",(function(t,e,i,r,n,o,a){return this.displayList.add(new s(this.scene,t,e,i,r,n,o,a))}))},80321:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(95643),o=i(30100),a=i(36060),h=i(67277),l=new s({Extends:n,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.Mask,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Transform,r.Visible,h],initialize:function(t,e,i,s,r,h,l){void 0===s&&(s=16777215),void 0===r&&(r=128),void 0===h&&(h=1),void 0===l&&(l=.1),n.call(this,t,"PointLight"),this.initPipeline(a.POINTLIGHT_PIPELINE),this.initPostPipeline(),this.setPosition(e,i),this.color=o(s),this.intensity=h,this.attenuation=l,this.width=2*r,this.height=2*r,this._radius=r},radius:{get:function(){return this._radius},set:function(t){this._radius=t,this.width=2*t,this.height=2*t}},originX:{get:function(){return.5}},originY:{get:function(){return.5}},displayOriginX:{get:function(){return this._radius}},displayOriginY:{get:function(){return this._radius}}});t.exports=l},39829:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(80321);r.register("pointlight",(function(t,e){void 0===t&&(t={});var i=n(t,"color",16777215),r=n(t,"radius",128),a=n(t,"intensity",1),h=n(t,"attenuation",.1),l=new o(this.scene,0,0,i,r,a,h);return void 0!==e&&(t.add=e),s(this.scene,l,t),l}))},71255:(t,e,i)=>{var s=i(39429),r=i(80321);s.register("pointlight",(function(t,e,i,s,n,o){return this.displayList.add(new r(this.scene,t,e,i,s,n,o))}))},67277:(t,e,i)=>{var s,r=i(29747),n=r;s=i(57787),t.exports={renderWebGL:s,renderCanvas:n}},57787:(t,e,i)=>{var s=i(91296);t.exports=function(t,e,i,r){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline),o=s(e,i,r).calc,a=e.width,h=e.height,l=-e._radius,u=-e._radius,c=l+a,d=u+h,p=o.getX(0,0),f=o.getY(0,0),g=o.getX(l,u),m=o.getY(l,u),v=o.getX(l,d),y=o.getY(l,d),x=o.getX(c,d),w=o.getY(c,d),T=o.getX(c,u),b=o.getY(c,u);t.pipelines.preBatch(e),n.batchPointLight(e,i,g,m,v,y,x,w,T,b,p,f),t.pipelines.postBatch(e)}},591:(t,e,i)=>{var s=i(83419),r=i(81320),n=i(88571),o=new s({Extends:n,initialize:function(t,e,i,s,o){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=32),void 0===o&&(o=32);var a=new r(t.sys.textures,"",s,o);n.call(this,t,e,i,a),this.type="RenderTexture",this.camera=this.texture.camera,this._saved=!1},setSize:function(t,e){this.width=t,this.height=e,this.texture.setSize(t,e),this.updateDisplayOrigin();var i=this.input;return i&&!i.customHitArea&&(i.hitArea.width=t,i.hitArea.height=e),this},resize:function(t,e){return this.setSize(t,e),this},saveTexture:function(t){var e=this.texture;return e.key=t,e.manager.addDynamicTexture(e)&&(this._saved=!0),e},fill:function(t,e,i,s,r,n){return this.texture.fill(t,e,i,s,r,n),this},clear:function(){return this.texture.clear(),this},stamp:function(t,e,i,s,r){return this.texture.stamp(t,e,i,s,r),this},erase:function(t,e,i){return this.texture.erase(t,e,i),this},draw:function(t,e,i,s,r){return this.texture.draw(t,e,i,s,r),this},drawFrame:function(t,e,i,s,r,n){return this.texture.drawFrame(t,e,i,s,r,n),this},repeat:function(t,e,i,s,r,n,o,a,h){return this.texture.repeat(t,e,i,s,r,n,o,a,h),this},beginDraw:function(){return this.texture.beginDraw(),this},batchDraw:function(t,e,i,s,r){return this.texture.batchDraw(t,e,i,s,r),this},batchDrawFrame:function(t,e,i,s,r,n){return this.texture.batchDrawFrame(t,e,i,s,r,n),this},endDraw:function(t){return this.texture.endDraw(t),this},snapshotArea:function(t,e,i,s,r,n,o){return this.texture.snapshotArea(t,e,i,s,r,n,o),this},snapshot:function(t,e,i){return this.snapshotArea(0,0,this.width,this.height,t,e,i)},snapshotPixel:function(t,e,i){return this.snapshotArea(t,e,1,1,i,"pixel")},preDestroy:function(){this.camera=null,this._saved||this.texture.destroy()}});t.exports=o},34495:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(591);r.register("renderTexture",(function(t,e){void 0===t&&(t={});var i=n(t,"x",0),r=n(t,"y",0),a=n(t,"width",32),h=n(t,"height",32),l=new o(this.scene,i,r,a,h);return void 0!==e&&(t.add=e),s(this.scene,l,t),l}))},60505:(t,e,i)=>{var s=i(39429),r=i(591);s.register("renderTexture",(function(t,e,i,s){return this.displayList.add(new r(this.scene,t,e,i,s))}))},77757:(t,e,i)=>{var s=i(9674),r=i(83419),n=i(31401),o=i(95643),a=i(36060),h=i(38745),l=i(26099),u=new r({Extends:o,Mixins:[n.AlphaSingle,n.BlendMode,n.Depth,n.Flip,n.Mask,n.Pipeline,n.PostPipeline,n.Size,n.Texture,n.Transform,n.Visible,n.ScrollFactor,h],initialize:function(t,e,i,r,n,h,u,c,d){void 0===r&&(r="__DEFAULT"),void 0===h&&(h=2),void 0===u&&(u=!0),o.call(this,t,"Rope"),this.anims=new s(this),this.points=h,this.vertices,this.uv,this.colors,this.alphas,this.tintFill="__DEFAULT"===r,this.dirty=!1,this.horizontal=u,this._flipX=!1,this._flipY=!1,this._perp=new l,this.debugCallback=null,this.debugGraphic=null,this.setTexture(r,n),this.setPosition(e,i),this.setSizeToFrame(),this.initPipeline(a.ROPE_PIPELINE),this.initPostPipeline(),Array.isArray(h)&&this.resizeArrays(h.length),this.setPoints(h,c,d),this.updateVertices()},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(t,e){var i=this.anims.currentFrame;this.anims.update(t,e),this.anims.currentFrame!==i&&(this.updateUVs(),this.updateVertices())},play:function(t,e,i){return this.anims.play(t,e,i),this},setDirty:function(){return this.dirty=!0,this},setHorizontal:function(t,e,i){return void 0===t&&(t=this.points.length),this.horizontal?this:(this.horizontal=!0,this.setPoints(t,e,i))},setVertical:function(t,e,i){return void 0===t&&(t=this.points.length),this.horizontal?(this.horizontal=!1,this.setPoints(t,e,i)):this},setTintFill:function(t){return void 0===t&&(t=!1),this.tintFill=t,this},setAlphas:function(t,e){var i=this.points.length;if(i<1)return this;var s,r=this.alphas;void 0===t?t=[1]:Array.isArray(t)||void 0!==e||(t=[t]);var n=0;if(void 0!==e)for(s=0;sn&&(o=t[n]),r[n]=o,t.length>n+1&&(o=t[n+1]),r[n+1]=o}return this},setColors:function(t){var e=this.points.length;if(e<1)return this;var i,s=this.colors;void 0===t?t=[16777215]:Array.isArray(t)||(t=[t]);var r=0;if(t.length===e)for(i=0;ir&&(n=t[r]),s[r]=n,t.length>r+1&&(n=t[r+1]),s[r+1]=n}return this},setPoints:function(t,e,i){if(void 0===t&&(t=2),"number"==typeof t){var s,r,n,o=t;if(o<2&&(o=2),t=[],this.horizontal)for(n=-this.frame.halfWidth,r=this.frame.width/(o-1),s=0;s{t.exports=function(){}},26209:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(35154),a=i(77757);r.register("rope",(function(t,e){void 0===t&&(t={});var i=n(t,"key",null),r=n(t,"frame",null),h=n(t,"horizontal",!0),l=o(t,"points",void 0),u=o(t,"colors",void 0),c=o(t,"alphas",void 0),d=new a(this.scene,0,0,i,r,l,h,u,c);return void 0!==e&&(t.add=e),s(this.scene,d,t),d}))},96819:(t,e,i)=>{var s=i(77757);i(39429).register("rope",(function(t,e,i,r,n,o,a,h){return this.displayList.add(new s(this.scene,t,e,i,r,n,o,a,h))}))},38745:(t,e,i)=>{var s,r;i(29747),s=i(20439),r=i(95262),t.exports={renderWebGL:s,renderCanvas:r}},20439:(t,e,i)=>{var s=i(91296),r=i(70554);t.exports=function(t,e,i,n){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline,e),a=s(e,i,n).calc,h=e.vertices,l=e.uv,u=e.colors,c=e.alphas,d=e.alpha,p=r.getTintAppendFloatAlpha,f=i.roundPixels,g=h.length,m=Math.floor(.5*g);o.flush(),t.pipelines.preBatch(e);var v=o.setGameObject(e),y=o.vertexViewF32,x=o.vertexViewU32,w=o.vertexCount*o.currentShader.vertexComponentCount-1,T=0,b=e.tintFill;e.dirty&&e.updateVertices();for(var S=e.debugCallback,E=[],C=0;C{var s=i(83419),r=i(31401),n=i(95643),o=i(95540),a=i(79291),h=i(61622),l=i(25479),u=i(61340),c=i(95428),d=i(92503),p=new s({Extends:n,Mixins:[r.ComputedSize,r.Depth,r.GetBounds,r.Mask,r.Origin,r.ScrollFactor,r.Transform,r.Visible,l],initialize:function(t,e,i,s,r,o,a,h){void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=128),void 0===o&&(o=128),n.call(this,t,"Shader"),this.blendMode=-1,this.shader;var l=t.sys.renderer;this.renderer=l,this.gl=l.gl,this.vertexData=new ArrayBuffer(2*Float32Array.BYTES_PER_ELEMENT*6),this.vertexBuffer=l.createVertexBuffer(this.vertexData.byteLength,this.gl.STREAM_DRAW),this._deferSetShader=null,this._deferProjOrtho=null,this.program=null,this.bytes=new Uint8Array(this.vertexData),this.vertexViewF32=new Float32Array(this.vertexData),this._tempMatrix1=new u,this._tempMatrix2=new u,this._tempMatrix3=new u,this.viewMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.projectionMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.uniforms={},this.pointer=null,this._rendererWidth=l.width,this._rendererHeight=l.height,this._textureCount=0,this.framebuffer=null,this.glTexture=null,this.renderToTexture=!1,this.texture=null,this.setPosition(i,s),this.setSize(r,o),this.setOrigin(.5,.5),this.setShader(e,a,h),this.renderer.on(d.RESTORE_WEBGL,this.onContextRestored,this)},willRender:function(t){return!!this.renderToTexture||!(n.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},setRenderToTexture:function(t,e){if(!this.renderToTexture){var i=this.width,s=this.height,r=this.renderer;this.glTexture=r.createTextureFromSource(null,i,s,0),this.framebuffer=r.createFramebuffer(i,s,this.glTexture,!1),this._rendererWidth=i,this._rendererHeight=s,this.renderToTexture=!0,this.projOrtho(0,this.width,this.height,0),t&&(this.texture=this.scene.sys.textures.addGLTexture(t,this.glTexture))}return this.shader&&(r.pipelines.clear(),this.load(),this.flush(),r.pipelines.rebind()),this},setShader:function(t,e,i){if(this.renderer.contextLost)return this._deferSetShader={key:t,textures:e,textureData:i},this;if(void 0===e&&(e=[]),"string"==typeof t){var s=this.scene.sys.cache.shader;if(!s.has(t))return console.warn("Shader missing: "+t),this;this.shader=s.get(t)}else this.shader=t;var r=this.gl,n=this.renderer;this.program&&n.deleteProgram(this.program);var o=n.createProgram(this.shader.vertexSrc,this.shader.fragmentSrc);r.uniformMatrix4fv(r.getUniformLocation(o.webGLProgram,"uViewMatrix"),!1,this.viewMatrix),r.uniformMatrix4fv(r.getUniformLocation(o.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),r.uniform2f(r.getUniformLocation(o.webGLProgram,"uResolution"),this.width,this.height),this.program=o;var h=new Date,l={resolution:{type:"2f",value:{x:this.width,y:this.height}},time:{type:"1f",value:0},mouse:{type:"2f",value:{x:this.width/2,y:this.height/2}},date:{type:"4fv",value:[h.getFullYear(),h.getMonth(),h.getDate(),60*h.getHours()*60+60*h.getMinutes()+h.getSeconds()]},sampleRate:{type:"1f",value:44100},iChannel0:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel1:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel2:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel3:{type:"sampler2D",value:null,textureData:{repeat:!0}}};this.shader.uniforms?this.uniforms=a(!0,{},this.shader.uniforms,l):this.uniforms=l;for(var u=0;u<4;u++)e[u]&&this.setSampler2D("iChannel"+u,e[u],u,i);return this.initUniforms(),this.projOrtho(0,this._rendererWidth,this._rendererHeight,0),this},setPointer:function(t){return this.pointer=t,this},projOrtho:function(t,e,i,s){if(this.renderer.contextLost)this._deferProjOrtho={left:t,right:e,bottom:i,top:s};else{var r=1/(t-e),n=1/(i-s),o=this.projectionMatrix;o[0]=-2*r,o[5]=-2*n,o[10]=-.001,o[12]=(t+e)*r,o[13]=(s+i)*n,o[14]=-0;var a=this.program,h=this.gl;this.renderer.setProgram(a),h.uniformMatrix4fv(h.getUniformLocation(a.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),this._rendererWidth=e,this._rendererHeight=i}},initUniforms:function(){var t=this.renderer.glFuncMap,e=this.program;for(var i in this._textureCount=0,this.uniforms){var s=this.uniforms[i],r=s.type,n=t[r];s.uniformLocation=this.renderer.createUniformLocation(e,i),"sampler2D"!==r&&(s.glMatrix=n.matrix,s.glValueLength=n.length,s.glFunc=n.func)}},setSampler2DBuffer:function(t,e,i,s,r,n){void 0===r&&(r=0),void 0===n&&(n={});var o=this.uniforms[t];return o.value=e,n.width=i,n.height=s,o.textureData=n,this._textureCount=r,this.initSampler2D(o),this},setSampler2D:function(t,e,i,s){void 0===i&&(i=0);var r=this.scene.sys.textures;if(r.exists(e)){var n=r.getFrame(e);if(n.glTexture&&n.glTexture.isRenderTexture)return this.setSampler2DBuffer(t,n.glTexture,n.width,n.height,i,s);var o=this.uniforms[t],a=n.source;o.textureKey=e,o.source=a.image,o.value=n.glTexture,a.isGLTexture&&(s||(s={}),s.width=a.width,s.height=a.height),s&&(o.textureData=s),this._textureCount=i,this.initSampler2D(o)}return this},setUniform:function(t,e){return h(this.uniforms,t,e),this},getUniform:function(t){return o(this.uniforms,t,null)},setChannel0:function(t,e){return this.setSampler2D("iChannel0",t,0,e)},setChannel1:function(t,e){return this.setSampler2D("iChannel1",t,1,e)},setChannel2:function(t,e){return this.setSampler2D("iChannel2",t,2,e)},setChannel3:function(t,e){return this.setSampler2D("iChannel3",t,3,e)},initSampler2D:function(t){if(t.value){var e=t.textureData;if(e&&!t.value.isRenderTexture){var i=this.gl,s=t.value,r=i[o(e,"magFilter","linear").toUpperCase()],n=i[o(e,"minFilter","linear").toUpperCase()],a=i[o(e,"wrapS","repeat").toUpperCase()],h=i[o(e,"wrapT","repeat").toUpperCase()],l=i[o(e,"format","rgba").toUpperCase()],u=o(e,"flipY",!1),c=o(e,"width",s.width),d=o(e,"height",s.height),p=o(e,"source",s.pixels);e.repeat&&(a=i.REPEAT,h=i.REPEAT),e.width&&(p=null),s.update(p,c,d,u,a,h,n,r,l)}this.renderer.setProgram(this.program),this._textureCount++}},syncUniforms:function(){var t,e,i,s,r,n=this.gl,o=this.uniforms,a=0;for(var h in o)i=(t=o[h]).glFunc,e=t.glValueLength,s=t.uniformLocation,null!==(r=t.value)&&(1===e?t.glMatrix?i.call(n,s.webGLUniformLocation,t.transpose,r):i.call(n,s.webGLUniformLocation,r):2===e?i.call(n,s.webGLUniformLocation,r.x,r.y):3===e?i.call(n,s.webGLUniformLocation,r.x,r.y,r.z):4===e?i.call(n,s.webGLUniformLocation,r.x,r.y,r.z,r.w):"sampler2D"===t.type&&(n.activeTexture(n.TEXTURE0+a),n.bindTexture(n.TEXTURE_2D,r.webGLTexture),n.uniform1i(s.webGLUniformLocation,a),a++))},load:function(t){var e=this.gl,i=this.width,s=this.height,r=this.renderer,n=this.program,o=this.viewMatrix;if(!this.renderToTexture){var a=-this._displayOriginX,h=-this._displayOriginY;o[0]=t[0],o[1]=t[1],o[4]=t[2],o[5]=t[3],o[8]=t[4],o[9]=t[5],o[12]=o[0]*a+o[4]*h,o[13]=o[1]*a+o[5]*h}e.useProgram(n.webGLProgram),e.uniformMatrix4fv(e.getUniformLocation(n.webGLProgram,"uViewMatrix"),!1,o),e.uniformMatrix4fv(e.getUniformLocation(n.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),e.uniform2f(e.getUniformLocation(n.webGLProgram,"uResolution"),this.width,this.height);var l=this.uniforms,u=l.resolution;u.value.x=i,u.value.y=s,l.time.value=r.game.loop.getDuration();var c=this.pointer;if(c){var d=l.mouse,p=c.x/i,f=1-c.y/s;d.value.x=p.toFixed(2),d.value.y=f.toFixed(2)}this.syncUniforms()},flush:function(){var t=this.width,e=this.height,i=this.program,s=this.gl,r=this.vertexBuffer,n=this.renderer,o=2*Float32Array.BYTES_PER_ELEMENT;this.renderToTexture&&(n.setFramebuffer(this.framebuffer),s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT)),s.bindBuffer(s.ARRAY_BUFFER,r.webGLBuffer);var a=s.getAttribLocation(i.webGLProgram,"inPosition");-1!==a&&(s.enableVertexAttribArray(a),s.vertexAttribPointer(a,2,s.FLOAT,!1,o,0));var h=this.vertexViewF32;h[3]=e,h[4]=t,h[5]=e,h[8]=t,h[9]=e,h[10]=t,s.bufferSubData(s.ARRAY_BUFFER,0,this.bytes.subarray(0,6*o)),s.drawArrays(s.TRIANGLES,0,6),this.renderToTexture&&n.setFramebuffer(null,!1)},setAlpha:function(){},setBlendMode:function(){},onContextRestored:function(){if(null!==this._deferSetShader){var t=this._deferSetShader.key,e=this._deferSetShader.textures,i=this._deferSetShader.textureData;this._deferSetShader=null,this.setShader(t,e,i)}if(null!==this._deferProjOrtho){var s=this._deferProjOrtho.left,r=this._deferProjOrtho.right,n=this._deferProjOrtho.bottom,o=this._deferProjOrtho.top;this._deferProjOrtho=null,this.projOrtho(s,r,n,o)}},preDestroy:function(){var t=this.renderer;t.off(d.RESTORE_WEBGL,this.onContextRestored,this),t.deleteProgram(this.program),t.deleteBuffer(this.vertexBuffer),this.renderToTexture&&(t.deleteFramebuffer(this.framebuffer),this.texture.destroy(),this.framebuffer=null,this.glTexture=null,this.texture=null),c(this.uniforms,(function(e){t.deleteUniformLocation(e.uniformLocation),e.uniformLocation=null}))}});t.exports=p},80464:t=>{t.exports=function(){}},54935:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(20071);r.register("shader",(function(t,e){void 0===t&&(t={});var i=n(t,"key",null),r=n(t,"x",0),a=n(t,"y",0),h=n(t,"width",128),l=n(t,"height",128),u=new o(this.scene,i,r,a,h,l);return void 0!==e&&(t.add=e),s(this.scene,u,t),u}))},74177:(t,e,i)=>{var s=i(20071);i(39429).register("shader",(function(t,e,i,r,n,o,a){return this.displayList.add(new s(this.scene,t,e,i,r,n,o,a))}))},25479:(t,e,i)=>{var s,r;i(29747),s=i(19257),r=i(80464),t.exports={renderWebGL:s,renderCanvas:r}},19257:(t,e,i)=>{var s=i(91296);t.exports=function(t,e,i,r){if(e.shader){if(i.addToRenderList(e),t.pipelines.clear(),e.renderToTexture)e.load(),e.flush();else{var n=s(e,i,r).calc;t.width===e._rendererWidth&&t.height===e._rendererHeight||e.projOrtho(0,t.width,t.height,0),e.load(n.matrix),e.flush()}t.pipelines.rebind()}}},10441:(t,e,i)=>{var s=i(70554);t.exports=function(t,e,i,r,n,o){for(var a=s.getTintAppendFloatAlpha(i.fillColor,i.fillAlpha*r),h=i.pathData,l=i.pathIndexes,u=0;u{t.exports=function(t,e,i,s){var r=i||e.fillColor,n=s||e.fillAlpha,o=(16711680&r)>>>16,a=(65280&r)>>>8,h=255&r;t.fillStyle="rgba("+o+","+a+","+h+","+n+")"}},75177:t=>{t.exports=function(t,e,i,s){var r=i||e.strokeColor,n=s||e.strokeAlpha,o=(16711680&r)>>>16,a=(65280&r)>>>8,h=255&r;t.strokeStyle="rgba("+o+","+a+","+h+","+n+")",t.lineWidth=e.lineWidth}},17803:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(95643),o=i(23031),a=new s({Extends:n,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Transform,r.Visible],initialize:function(t,e,i){void 0===e&&(e="Shape"),n.call(this,t,e),this.geom=i,this.pathData=[],this.pathIndexes=[],this.fillColor=16777215,this.fillAlpha=1,this.strokeColor=16777215,this.strokeAlpha=1,this.lineWidth=1,this.isFilled=!1,this.isStroked=!1,this.closePath=!0,this._tempLine=new o,this.width=0,this.height=0,this.initPipeline(),this.initPostPipeline()},setFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.isFilled=!1:(this.fillColor=t,this.fillAlpha=e,this.isFilled=!0),this},setStrokeStyle:function(t,e,i){return void 0===i&&(i=1),void 0===t?this.isStroked=!1:(this.lineWidth=t,this.strokeColor=e,this.strokeAlpha=i,this.isStroked=!0),this},setClosePath:function(t){return this.closePath=t,this},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this},preDestroy:function(){this.geom=null,this._tempLine=null,this.pathData=[],this.pathIndexes=[]},displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}}});t.exports=a},34682:(t,e,i)=>{var s=i(70554);t.exports=function(t,e,i,r,n){var o=t.strokeTint,a=s.getTintAppendFloatAlpha(e.strokeColor,e.strokeAlpha*i);o.TL=a,o.TR=a,o.BL=a,o.BR=a;var h=e.pathData,l=h.length-1,u=e.lineWidth,c=u/2,d=h[0]-r,p=h[1]-n;e.closePath||(l-=2);for(var f=2;f{var s=i(13609),r=i(83419),n=i(39506),o=i(94811),a=i(96503),h=i(36383),l=i(17803),u=new r({Extends:l,Mixins:[s],initialize:function(t,e,i,s,r,n,o,h,u){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=128),void 0===r&&(r=0),void 0===n&&(n=360),void 0===o&&(o=!1),l.call(this,t,"Arc",new a(0,0,s)),this._startAngle=r,this._endAngle=n,this._anticlockwise=o,this._iterations=.01,this.setPosition(e,i);var c=2*this.geom.radius;this.setSize(c,c),void 0!==h&&this.setFillStyle(h,u),this.updateDisplayOrigin(),this.updateData()},iterations:{get:function(){return this._iterations},set:function(t){this._iterations=t,this.updateData()}},radius:{get:function(){return this.geom.radius},set:function(t){this.geom.radius=t;var e=2*t;this.setSize(e,e),this.updateDisplayOrigin(),this.updateData()}},startAngle:{get:function(){return this._startAngle},set:function(t){this._startAngle=t,this.updateData()}},endAngle:{get:function(){return this._endAngle},set:function(t){this._endAngle=t,this.updateData()}},anticlockwise:{get:function(){return this._anticlockwise},set:function(t){this._anticlockwise=t,this.updateData()}},setRadius:function(t){return this.radius=t,this},setIterations:function(t){return void 0===t&&(t=.01),this.iterations=t,this},setStartAngle:function(t,e){return this._startAngle=t,void 0!==e&&(this._anticlockwise=e),this.updateData()},setEndAngle:function(t,e){return this._endAngle=t,void 0!==e&&(this._anticlockwise=e),this.updateData()},updateData:function(){var t=this._iterations,e=t,i=this.geom.radius,s=n(this._startAngle),r=n(this._endAngle),a=i,l=i;r-=s,this._anticlockwise?r<-h.PI2?r=-h.PI2:r>0&&(r=-h.PI2+r%h.PI2):r>h.PI2?r=h.PI2:r<0&&(r=h.PI2+r%h.PI2);for(var u,c=[a+Math.cos(s)*i,l+Math.sin(s)*i];e<1;)u=r*e+s,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),e+=t;return u=r+s,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),c.push(a+Math.cos(s)*i,l+Math.sin(s)*i),this.pathIndexes=o(c),this.pathData=c,this}});t.exports=u},42542:(t,e,i)=>{var s=i(39506),r=i(65960),n=i(75177),o=i(20926);t.exports=function(t,e,i,a){i.addToRenderList(e);var h=t.currentContext;if(o(t,h,e,i,a)){var l=e.radius;h.beginPath(),h.arc(l-e.originX*(2*l),l-e.originY*(2*l),l,s(e._startAngle),s(e._endAngle),e.anticlockwise),e.closePath&&h.closePath(),e.isFilled&&(r(h,e),h.fill()),e.isStroked&&(n(h,e),h.stroke()),h.restore()}}},42563:(t,e,i)=>{var s=i(23629),r=i(39429);r.register("arc",(function(t,e,i,r,n,o,a,h){return this.displayList.add(new s(this.scene,t,e,i,r,n,o,a,h))})),r.register("circle",(function(t,e,i,r,n){return this.displayList.add(new s(this.scene,t,e,i,0,360,!1,r,n))}))},13609:(t,e,i)=>{var s,r;i(29747),s=i(41447),r=i(42542),t.exports={renderWebGL:s,renderCanvas:r}},41447:(t,e,i)=>{var s=i(91296),r=i(10441),n=i(34682);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline),h=s(e,i,o),l=a.calcMatrix.copyFrom(h.calc),u=e._displayOriginX,c=e._displayOriginY,d=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&r(a,l,e,d,u,c),e.isStroked&&n(a,e,d,u,c),t.pipelines.postBatch(e)}},89:(t,e,i)=>{var s=i(83419),r=i(33141),n=i(94811),o=i(87841),a=i(17803),h=new s({Extends:a,Mixins:[r],initialize:function(t,e,i,s,r,n){void 0===e&&(e=0),void 0===i&&(i=0),a.call(this,t,"Curve",s),this._smoothness=32,this._curveBounds=new o,this.closePath=!1,this.setPosition(e,i),void 0!==r&&this.setFillStyle(r,n),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(t){this._smoothness=t,this.updateData()}},setSmoothness:function(t){return this._smoothness=t,this.updateData()},updateData:function(){var t=this._curveBounds,e=this._smoothness;this.geom.getBounds(t,e),this.setSize(t.width,t.height),this.updateDisplayOrigin();for(var i=[],s=this.geom.getPoints(e),r=0;r{var s=i(65960),r=i(75177),n=i(20926);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.currentContext;if(n(t,a,e,i,o)){var h=e._displayOriginX+e._curveBounds.x,l=e._displayOriginY+e._curveBounds.y,u=e.pathData,c=u.length-1,d=u[0]-h,p=u[1]-l;a.beginPath(),a.moveTo(d,p),e.closePath||(c-=2);for(var f=2;f{var s=i(39429),r=i(89);s.register("curve",(function(t,e,i,s,n){return this.displayList.add(new r(this.scene,t,e,i,s,n))}))},33141:(t,e,i)=>{var s,r;i(29747),s=i(53987),r=i(3170),t.exports={renderWebGL:s,renderCanvas:r}},53987:(t,e,i)=>{var s=i(10441),r=i(91296),n=i(34682);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline),h=r(e,i,o),l=a.calcMatrix.copyFrom(h.calc),u=e._displayOriginX+e._curveBounds.x,c=e._displayOriginY+e._curveBounds.y,d=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&s(a,l,e,d,u,c),e.isStroked&&n(a,e,d,u,c),t.pipelines.postBatch(e)}},19921:(t,e,i)=>{var s=i(83419),r=i(94811),n=i(54205),o=i(8497),a=i(17803),h=new s({Extends:a,Mixins:[n],initialize:function(t,e,i,s,r,n,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=128),void 0===r&&(r=128),a.call(this,t,"Ellipse",new o(s/2,r/2,s,r)),this._smoothness=64,this.setPosition(e,i),this.width=s,this.height=r,void 0!==n&&this.setFillStyle(n,h),this.updateDisplayOrigin(),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(t){this._smoothness=t,this.updateData()}},setSize:function(t,e){return this.width=t,this.height=e,this.geom.setPosition(t/2,e/2),this.geom.setSize(t,e),this.updateData()},setSmoothness:function(t){return this._smoothness=t,this.updateData()},updateData:function(){for(var t=[],e=this.geom.getPoints(this._smoothness),i=0;i{var s=i(65960),r=i(75177),n=i(20926);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.currentContext;if(n(t,a,e,i,o)){var h=e._displayOriginX,l=e._displayOriginY,u=e.pathData,c=u.length-1,d=u[0]-h,p=u[1]-l;a.beginPath(),a.moveTo(d,p),e.closePath||(c-=2);for(var f=2;f{var s=i(19921);i(39429).register("ellipse",(function(t,e,i,r,n,o){return this.displayList.add(new s(this.scene,t,e,i,r,n,o))}))},54205:(t,e,i)=>{var s,r;i(29747),s=i(19467),r=i(7930),t.exports={renderWebGL:s,renderCanvas:r}},19467:(t,e,i)=>{var s=i(10441),r=i(91296),n=i(34682);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline),h=r(e,i,o),l=a.calcMatrix.copyFrom(h.calc),u=e._displayOriginX,c=e._displayOriginY,d=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&s(a,l,e,d,u,c),e.isStroked&&n(a,e,d,u,c),t.pipelines.postBatch(e)}},30479:(t,e,i)=>{var s=i(83419),r=i(17803),n=i(26015),o=new s({Extends:r,Mixins:[n],initialize:function(t,e,i,s,n,o,a,h,l,u,c){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=128),void 0===n&&(n=128),void 0===o&&(o=32),void 0===a&&(a=32),r.call(this,t,"Grid",null),this.cellWidth=o,this.cellHeight=a,this.showCells=!0,this.outlineFillColor=0,this.outlineFillAlpha=0,this.showOutline=!0,this.showAltCells=!1,this.altFillColor,this.altFillAlpha,this.setPosition(e,i),this.setSize(s,n),this.setFillStyle(h,l),void 0!==u&&this.setOutlineStyle(u,c),this.updateDisplayOrigin()},setFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.showCells=!1:(this.fillColor=t,this.fillAlpha=e,this.showCells=!0),this},setAltFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.showAltCells=!1:(this.altFillColor=t,this.altFillAlpha=e,this.showAltCells=!0),this},setOutlineStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.showOutline=!1:(this.outlineFillColor=t,this.outlineFillAlpha=e,this.showOutline=!0),this}});t.exports=o},49912:(t,e,i)=>{var s=i(65960),r=i(75177),n=i(20926);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.currentContext;if(n(t,a,e,i,o)){var h=-e._displayOriginX,l=-e._displayOriginY,u=i.alpha*e.alpha,c=e.width,d=e.height,p=e.cellWidth,f=e.cellHeight,g=Math.ceil(c/p),m=Math.ceil(d/f),v=p,y=f,x=p-(g*p-c),w=f-(m*f-d),T=e.showCells,b=e.showAltCells,S=e.showOutline,E=0,C=0,A=0,_=0,P=0;if(S&&(v--,y--,x===p&&x--,w===f&&w--),T&&e.fillAlpha>0)for(s(a,e),C=0;C0)for(s(a,e,e.altFillColor,e.altFillAlpha*u),C=0;C0){for(r(a,e,e.outlineFillColor,e.outlineFillAlpha*u),E=1;E{var s=i(39429),r=i(30479);s.register("grid",(function(t,e,i,s,n,o,a,h,l,u){return this.displayList.add(new r(this.scene,t,e,i,s,n,o,a,h,l,u))}))},26015:(t,e,i)=>{var s,r;i(29747),s=i(46161),r=i(49912),t.exports={renderWebGL:s,renderCanvas:r}},46161:(t,e,i)=>{var s=i(91296),r=i(70554);t.exports=function(t,e,i,n){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline),a=s(e,i,n);o.calcMatrix.copyFrom(a.calc).translate(-e._displayOriginX,-e._displayOriginY);var h,l,u=i.alpha*e.alpha,c=e.width,d=e.height,p=e.cellWidth,f=e.cellHeight,g=Math.ceil(c/p),m=Math.ceil(d/f),v=p,y=f,x=p-(g*p-c),w=f-(m*f-d),T=e.showCells,b=e.showAltCells,S=e.showOutline,E=0,C=0,A=0,_=0,P=0;if(S&&(v--,y--,x===p&&x--,w===f&&w--),t.pipelines.preBatch(e),T&&e.fillAlpha>0)for(h=o.fillTint,l=r.getTintAppendFloatAlpha(e.fillColor,e.fillAlpha*u),h.TL=l,h.TR=l,h.BL=l,h.BR=l,C=0;C0)for(h=o.fillTint,l=r.getTintAppendFloatAlpha(e.altFillColor,e.altFillAlpha*u),h.TL=l,h.TR=l,h.BL=l,h.BR=l,C=0;C0){var R=o.strokeTint,M=r.getTintAppendFloatAlpha(e.outlineFillColor,e.outlineFillAlpha*u);for(R.TL=M,R.TR=M,R.BL=M,R.BR=M,E=1;E{var s=i(99651),r=i(83419),n=i(17803),o=new r({Extends:n,Mixins:[s],initialize:function(t,e,i,s,r,o,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=48),void 0===r&&(r=32),void 0===o&&(o=15658734),void 0===a&&(a=10066329),void 0===h&&(h=13421772),n.call(this,t,"IsoBox",null),this.projection=4,this.fillTop=o,this.fillLeft=a,this.fillRight=h,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isFilled=!0,this.setPosition(e,i),this.setSize(s,r),this.updateDisplayOrigin()},setProjection:function(t){return this.projection=t,this},setFaces:function(t,e,i){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===i&&(i=!0),this.showTop=t,this.showLeft=e,this.showRight=i,this},setFillStyle:function(t,e,i){return this.fillTop=t,this.fillLeft=e,this.fillRight=i,this.isFilled=!0,this}});t.exports=o},11508:(t,e,i)=>{var s=i(65960),r=i(20926);t.exports=function(t,e,i,n){i.addToRenderList(e);var o=t.currentContext;if(r(t,o,e,i,n)&&e.isFilled){var a=e.width,h=e.height,l=a/2,u=a/e.projection;e.showTop&&(s(o,e,e.fillTop),o.beginPath(),o.moveTo(-l,-h),o.lineTo(0,-u-h),o.lineTo(l,-h),o.lineTo(l,-1),o.lineTo(0,u-1),o.lineTo(-l,-1),o.lineTo(-l,-h),o.fill()),e.showLeft&&(s(o,e,e.fillLeft),o.beginPath(),o.moveTo(-l,0),o.lineTo(0,u),o.lineTo(0,u-h),o.lineTo(-l,-h),o.lineTo(-l,0),o.fill()),e.showRight&&(s(o,e,e.fillRight),o.beginPath(),o.moveTo(l,0),o.lineTo(0,u),o.lineTo(0,u-h),o.lineTo(l,-h),o.lineTo(l,0),o.fill()),o.restore()}}},3933:(t,e,i)=>{var s=i(39429),r=i(61475);s.register("isobox",(function(t,e,i,s,n,o,a){return this.displayList.add(new r(this.scene,t,e,i,s,n,o,a))}))},99651:(t,e,i)=>{var s,r;i(29747),s=i(68149),r=i(11508),t.exports={renderWebGL:s,renderCanvas:r}},68149:(t,e,i)=>{var s=i(91296),r=i(70554);t.exports=function(t,e,i,n){i.addToRenderList(e);var o,a,h,l,u,c,d,p,f,g=t.pipelines.set(e.pipeline),m=s(e,i,n),v=g.calcMatrix.copyFrom(m.calc),y=e.width,x=e.height,w=y/2,T=y/e.projection,b=i.alpha*e.alpha;e.isFilled&&(t.pipelines.preBatch(e),e.showTop&&(o=r.getTintAppendFloatAlpha(e.fillTop,b),a=v.getX(-w,-x),h=v.getY(-w,-x),l=v.getX(0,-T-x),u=v.getY(0,-T-x),c=v.getX(w,-x),d=v.getY(w,-x),p=v.getX(0,T-x),f=v.getY(0,T-x),g.batchQuad(e,a,h,l,u,c,d,p,f,0,0,1,1,o,o,o,o,2)),e.showLeft&&(o=r.getTintAppendFloatAlpha(e.fillLeft,b),a=v.getX(-w,0),h=v.getY(-w,0),l=v.getX(0,T),u=v.getY(0,T),c=v.getX(0,T-x),d=v.getY(0,T-x),p=v.getX(-w,-x),f=v.getY(-w,-x),g.batchQuad(e,a,h,l,u,c,d,p,f,0,0,1,1,o,o,o,o,2)),e.showRight&&(o=r.getTintAppendFloatAlpha(e.fillRight,b),a=v.getX(w,0),h=v.getY(w,0),l=v.getX(0,T),u=v.getY(0,T),c=v.getX(0,T-x),d=v.getY(0,T-x),p=v.getX(w,-x),f=v.getY(w,-x),g.batchQuad(e,a,h,l,u,c,d,p,f,0,0,1,1,o,o,o,o,2)),t.pipelines.postBatch(e))}},16933:(t,e,i)=>{var s=i(83419),r=i(60561),n=i(17803),o=new s({Extends:n,Mixins:[r],initialize:function(t,e,i,s,r,o,a,h,l){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=48),void 0===r&&(r=32),void 0===o&&(o=!1),void 0===a&&(a=15658734),void 0===h&&(h=10066329),void 0===l&&(l=13421772),n.call(this,t,"IsoTriangle",null),this.projection=4,this.fillTop=a,this.fillLeft=h,this.fillRight=l,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isReversed=o,this.isFilled=!0,this.setPosition(e,i),this.setSize(s,r),this.updateDisplayOrigin()},setProjection:function(t){return this.projection=t,this},setReversed:function(t){return this.isReversed=t,this},setFaces:function(t,e,i){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===i&&(i=!0),this.showTop=t,this.showLeft=e,this.showRight=i,this},setFillStyle:function(t,e,i){return this.fillTop=t,this.fillLeft=e,this.fillRight=i,this.isFilled=!0,this}});t.exports=o},79590:(t,e,i)=>{var s=i(65960),r=i(20926);t.exports=function(t,e,i,n){i.addToRenderList(e);var o=t.currentContext;if(r(t,o,e,i,n)&&e.isFilled){var a=e.width,h=e.height,l=a/2,u=a/e.projection,c=e.isReversed;e.showTop&&c&&(s(o,e,e.fillTop),o.beginPath(),o.moveTo(-l,-h),o.lineTo(0,-u-h),o.lineTo(l,-h),o.lineTo(0,u-h),o.fill()),e.showLeft&&(s(o,e,e.fillLeft),o.beginPath(),c?(o.moveTo(-l,-h),o.lineTo(0,u),o.lineTo(0,u-h)):(o.moveTo(-l,0),o.lineTo(0,u),o.lineTo(0,u-h)),o.fill()),e.showRight&&(s(o,e,e.fillRight),o.beginPath(),c?(o.moveTo(l,-h),o.lineTo(0,u),o.lineTo(0,u-h)):(o.moveTo(l,0),o.lineTo(0,u),o.lineTo(0,u-h)),o.fill()),o.restore()}}},49803:(t,e,i)=>{var s=i(39429),r=i(16933);s.register("isotriangle",(function(t,e,i,s,n,o,a,h){return this.displayList.add(new r(this.scene,t,e,i,s,n,o,a,h))}))},60561:(t,e,i)=>{var s,r;i(29747),s=i(51503),r=i(79590),t.exports={renderWebGL:s,renderCanvas:r}},51503:(t,e,i)=>{var s=i(91296),r=i(70554);t.exports=function(t,e,i,n){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline),a=s(e,i,n),h=o.calcMatrix.copyFrom(a.calc),l=e.width,u=e.height,c=l/2,d=l/e.projection,p=e.isReversed,f=i.alpha*e.alpha;if(e.isFilled){var g,m,v,y,x,w,T;if(t.pipelines.preBatch(e),e.showTop&&p){g=r.getTintAppendFloatAlpha(e.fillTop,f),m=h.getX(-c,-u),v=h.getY(-c,-u),y=h.getX(0,-d-u),x=h.getY(0,-d-u),w=h.getX(c,-u),T=h.getY(c,-u);var b=h.getX(0,d-u),S=h.getY(0,d-u);o.batchQuad(e,m,v,y,x,w,T,b,S,0,0,1,1,g,g,g,g,2)}e.showLeft&&(g=r.getTintAppendFloatAlpha(e.fillLeft,f),p?(m=h.getX(-c,-u),v=h.getY(-c,-u),y=h.getX(0,d),x=h.getY(0,d),w=h.getX(0,d-u),T=h.getY(0,d-u)):(m=h.getX(-c,0),v=h.getY(-c,0),y=h.getX(0,d),x=h.getY(0,d),w=h.getX(0,d-u),T=h.getY(0,d-u)),o.batchTri(e,m,v,y,x,w,T,0,0,1,1,g,g,g,2)),e.showRight&&(g=r.getTintAppendFloatAlpha(e.fillRight,f),p?(m=h.getX(c,-u),v=h.getY(c,-u),y=h.getX(0,d),x=h.getY(0,d),w=h.getX(0,d-u),T=h.getY(0,d-u)):(m=h.getX(c,0),v=h.getY(c,0),y=h.getX(0,d),x=h.getY(0,d),w=h.getX(0,d-u),T=h.getY(0,d-u)),o.batchTri(e,m,v,y,x,w,T,0,0,1,1,g,g,g,2)),t.pipelines.postBatch(e)}}},57847:(t,e,i)=>{var s=i(83419),r=i(17803),n=i(23031),o=i(36823),a=new s({Extends:r,Mixins:[o],initialize:function(t,e,i,s,o,a,h,l,u){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),void 0===o&&(o=0),void 0===a&&(a=128),void 0===h&&(h=0),r.call(this,t,"Line",new n(s,o,a,h));var c=Math.max(1,this.geom.right-this.geom.left),d=Math.max(1,this.geom.bottom-this.geom.top);this.lineWidth=1,this._startWidth=1,this._endWidth=1,this.setPosition(e,i),this.setSize(c,d),void 0!==l&&this.setStrokeStyle(1,l,u),this.updateDisplayOrigin()},setLineWidth:function(t,e){return void 0===e&&(e=t),this._startWidth=t,this._endWidth=e,this.lineWidth=t,this},setTo:function(t,e,i,s){return this.geom.setTo(t,e,i,s),this}});t.exports=a},17440:(t,e,i)=>{var s=i(75177),r=i(20926);t.exports=function(t,e,i,n){i.addToRenderList(e);var o=t.currentContext;if(r(t,o,e,i,n)){var a=e._displayOriginX,h=e._displayOriginY;e.isStroked&&(s(o,e),o.beginPath(),o.moveTo(e.geom.x1-a,e.geom.y1-h),o.lineTo(e.geom.x2-a,e.geom.y2-h),o.stroke()),o.restore()}}},2481:(t,e,i)=>{var s=i(39429),r=i(57847);s.register("line",(function(t,e,i,s,n,o,a,h){return this.displayList.add(new r(this.scene,t,e,i,s,n,o,a,h))}))},36823:(t,e,i)=>{var s,r;i(29747),s=i(77385),r=i(17440),t.exports={renderWebGL:s,renderCanvas:r}},77385:(t,e,i)=>{var s=i(91296),r=i(70554);t.exports=function(t,e,i,n){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline),a=s(e,i,n);o.calcMatrix.copyFrom(a.calc);var h=e._displayOriginX,l=e._displayOriginY,u=i.alpha*e.alpha;if(t.pipelines.preBatch(e),e.isStroked){var c=o.strokeTint,d=r.getTintAppendFloatAlpha(e.strokeColor,e.strokeAlpha*u);c.TL=d,c.TR=d,c.BL=d,c.BR=d,o.batchLine(e.geom.x1-h,e.geom.y1-l,e.geom.x2-h,e.geom.y2-l,e._startWidth/2,e._endWidth/2,1,0,!1,a.sprite,a.camera)}t.pipelines.postBatch(e)}},24949:(t,e,i)=>{var s=i(90273),r=i(83419),n=i(94811),o=i(13829),a=i(25717),h=i(17803),l=i(5469),u=new r({Extends:h,Mixins:[s],initialize:function(t,e,i,s,r,n){void 0===e&&(e=0),void 0===i&&(i=0),h.call(this,t,"Polygon",new a(s));var l=o(this.geom);this.setPosition(e,i),this.setSize(l.width,l.height),void 0!==r&&this.setFillStyle(r,n),this.updateDisplayOrigin(),this.updateData()},smooth:function(t){void 0===t&&(t=1);for(var e=0;e{var s=i(65960),r=i(75177),n=i(20926);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.currentContext;if(n(t,a,e,i,o)){var h=e._displayOriginX,l=e._displayOriginY,u=e.pathData,c=u.length-1,d=u[0]-h,p=u[1]-l;a.beginPath(),a.moveTo(d,p),e.closePath||(c-=2);for(var f=2;f{var s=i(39429),r=i(24949);s.register("polygon",(function(t,e,i,s,n){return this.displayList.add(new r(this.scene,t,e,i,s,n))}))},90273:(t,e,i)=>{var s,r;i(29747),s=i(73695),r=i(38710),t.exports={renderWebGL:s,renderCanvas:r}},73695:(t,e,i)=>{var s=i(10441),r=i(91296),n=i(34682);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline),h=r(e,i,o),l=a.calcMatrix.copyFrom(h.calc),u=e._displayOriginX,c=e._displayOriginY,d=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&s(a,l,e,d,u,c),e.isStroked&&n(a,e,d,u,c),t.pipelines.postBatch(e)}},74561:(t,e,i)=>{var s=i(83419),r=i(87841),n=i(17803),o=i(95597),a=new s({Extends:n,Mixins:[o],initialize:function(t,e,i,s,o,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=128),void 0===o&&(o=128),n.call(this,t,"Rectangle",new r(0,0,s,o)),this.setPosition(e,i),this.setSize(s,o),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},setSize:function(t,e){this.width=t,this.height=e,this.geom.setSize(t,e),this.updateData(),this.updateDisplayOrigin();var i=this.input;return i&&!i.customHitArea&&(i.hitArea.width=t,i.hitArea.height=e),this},updateData:function(){var t=[],e=this.geom,i=this._tempLine;return e.getLineA(i),t.push(i.x1,i.y1,i.x2,i.y2),e.getLineB(i),t.push(i.x2,i.y2),e.getLineC(i),t.push(i.x2,i.y2),e.getLineD(i),t.push(i.x2,i.y2),this.pathData=t,this}});t.exports=a},48682:(t,e,i)=>{var s=i(65960),r=i(75177),n=i(20926);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.currentContext;if(n(t,a,e,i,o)){var h=e._displayOriginX,l=e._displayOriginY;e.isFilled&&(s(a,e),a.fillRect(-h,-l,e.width,e.height)),e.isStroked&&(r(a,e),a.beginPath(),a.rect(-h,-l,e.width,e.height),a.stroke()),a.restore()}}},87959:(t,e,i)=>{var s=i(39429),r=i(74561);s.register("rectangle",(function(t,e,i,s,n,o){return this.displayList.add(new r(this.scene,t,e,i,s,n,o))}))},95597:(t,e,i)=>{var s,r;i(29747),s=i(52059),r=i(48682),t.exports={renderWebGL:s,renderCanvas:r}},52059:(t,e,i)=>{var s=i(91296),r=i(34682),n=i(70554);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline),h=s(e,i,o);a.calcMatrix.copyFrom(h.calc);var l=e._displayOriginX,u=e._displayOriginY,c=i.alpha*e.alpha;if(t.pipelines.preBatch(e),e.isFilled){var d=a.fillTint,p=n.getTintAppendFloatAlpha(e.fillColor,e.fillAlpha*c);d.TL=p,d.TR=p,d.BL=p,d.BR=p,a.batchFillRect(-l,-u,e.width,e.height)}e.isStroked&&r(a,e,c,l,u),t.pipelines.postBatch(e)}},55911:(t,e,i)=>{var s=i(81991),r=i(83419),n=i(94811),o=i(17803),a=new r({Extends:o,Mixins:[s],initialize:function(t,e,i,s,r,n,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=5),void 0===r&&(r=32),void 0===n&&(n=64),o.call(this,t,"Star",null),this._points=s,this._innerRadius=r,this._outerRadius=n,this.setPosition(e,i),this.setSize(2*n,2*n),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},setPoints:function(t){return this._points=t,this.updateData()},setInnerRadius:function(t){return this._innerRadius=t,this.updateData()},setOuterRadius:function(t){return this._outerRadius=t,this.updateData()},points:{get:function(){return this._points},set:function(t){this._points=t,this.updateData()}},innerRadius:{get:function(){return this._innerRadius},set:function(t){this._innerRadius=t,this.updateData()}},outerRadius:{get:function(){return this._outerRadius},set:function(t){this._outerRadius=t,this.updateData()}},updateData:function(){var t=[],e=this._points,i=this._innerRadius,s=this._outerRadius,r=Math.PI/2*3,o=Math.PI/e,a=s,h=s;t.push(a,h+-s);for(var l=0;l{var s=i(65960),r=i(75177),n=i(20926);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.currentContext;if(n(t,a,e,i,o)){var h=e._displayOriginX,l=e._displayOriginY,u=e.pathData,c=u.length-1,d=u[0]-h,p=u[1]-l;a.beginPath(),a.moveTo(d,p),e.closePath||(c-=2);for(var f=2;f{var s=i(55911);i(39429).register("star",(function(t,e,i,r,n,o,a){return this.displayList.add(new s(this.scene,t,e,i,r,n,o,a))}))},81991:(t,e,i)=>{var s,r;i(29747),s=i(57017),r=i(64272),t.exports={renderWebGL:s,renderCanvas:r}},57017:(t,e,i)=>{var s=i(10441),r=i(91296),n=i(34682);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline),h=r(e,i,o),l=a.calcMatrix.copyFrom(h.calc),u=e._displayOriginX,c=e._displayOriginY,d=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&s(a,l,e,d,u,c),e.isStroked&&n(a,e,d,u,c),t.pipelines.postBatch(e)}},36931:(t,e,i)=>{var s=i(83419),r=i(17803),n=i(16483),o=i(96195),a=new s({Extends:r,Mixins:[o],initialize:function(t,e,i,s,o,a,h,l,u,c,d){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),void 0===o&&(o=128),void 0===a&&(a=64),void 0===h&&(h=0),void 0===l&&(l=128),void 0===u&&(u=128),r.call(this,t,"Triangle",new n(s,o,a,h,l,u));var p=this.geom.right-this.geom.left,f=this.geom.bottom-this.geom.top;this.setPosition(e,i),this.setSize(p,f),void 0!==c&&this.setFillStyle(c,d),this.updateDisplayOrigin(),this.updateData()},setTo:function(t,e,i,s,r,n){return this.geom.setTo(t,e,i,s,r,n),this.updateData()},updateData:function(){var t=[],e=this.geom,i=this._tempLine;return e.getLineA(i),t.push(i.x1,i.y1,i.x2,i.y2),e.getLineB(i),t.push(i.x2,i.y2),e.getLineC(i),t.push(i.x2,i.y2),this.pathData=t,this}});t.exports=a},85172:(t,e,i)=>{var s=i(65960),r=i(75177),n=i(20926);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.currentContext;if(n(t,a,e,i,o)){var h=e._displayOriginX,l=e._displayOriginY,u=e.geom.x1-h,c=e.geom.y1-l,d=e.geom.x2-h,p=e.geom.y2-l,f=e.geom.x3-h,g=e.geom.y3-l;a.beginPath(),a.moveTo(u,c),a.lineTo(d,p),a.lineTo(f,g),a.closePath(),e.isFilled&&(s(a,e),a.fill()),e.isStroked&&(r(a,e),a.stroke()),a.restore()}}},45245:(t,e,i)=>{var s=i(39429),r=i(36931);s.register("triangle",(function(t,e,i,s,n,o,a,h,l,u){return this.displayList.add(new r(this.scene,t,e,i,s,n,o,a,h,l,u))}))},96195:(t,e,i)=>{var s,r;i(29747),s=i(83253),r=i(85172),t.exports={renderWebGL:s,renderCanvas:r}},83253:(t,e,i)=>{var s=i(91296),r=i(34682),n=i(70554);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline),h=s(e,i,o);a.calcMatrix.copyFrom(h.calc);var l=e._displayOriginX,u=e._displayOriginY,c=i.alpha*e.alpha;if(t.pipelines.preBatch(e),e.isFilled){var d=a.fillTint,p=n.getTintAppendFloatAlpha(e.fillColor,e.fillAlpha*c);d.TL=p,d.TR=p,d.BL=p,d.BR=p;var f=e.geom.x1-l,g=e.geom.y1-u,m=e.geom.x2-l,v=e.geom.y2-u,y=e.geom.x3-l,x=e.geom.y3-u;a.batchFillTriangle(f,g,m,v,y,x,h.sprite,h.camera)}e.isStroked&&r(a,e,c,l,u),t.pipelines.postBatch(e)}},68287:(t,e,i)=>{var s=i(9674),r=i(83419),n=i(31401),o=i(95643),a=i(92751),h=new r({Extends:o,Mixins:[n.Alpha,n.BlendMode,n.Depth,n.Flip,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Size,n.TextureCrop,n.Tint,n.Transform,n.Visible,a],initialize:function(t,e,i,r,n){o.call(this,t,"Sprite"),this._crop=this.resetCropObject(),this.anims=new s(this),this.setTexture(r,n),this.setPosition(e,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(t,e){this.anims.update(t,e)},play:function(t,e){return this.anims.play(t,e)},playReverse:function(t,e){return this.anims.playReverse(t,e)},playAfterDelay:function(t,e){return this.anims.playAfterDelay(t,e)},playAfterRepeat:function(t,e){return this.anims.playAfterRepeat(t,e)},chain:function(t){return this.anims.chain(t)},stop:function(){return this.anims.stop()},stopAfterDelay:function(t){return this.anims.stopAfterDelay(t)},stopAfterRepeat:function(t){return this.anims.stopAfterRepeat(t)},stopOnFrame:function(t){return this.anims.stopOnFrame(t)},toJSON:function(){return n.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});t.exports=h},76552:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e),t.batchSprite(e,e.frame,i,s)}},15567:(t,e,i)=>{var s=i(25305),r=i(13059),n=i(44603),o=i(23568),a=i(68287);n.register("sprite",(function(t,e){void 0===t&&(t={});var i=o(t,"key",null),n=o(t,"frame",null),h=new a(this.scene,0,0,i,n);return void 0!==e&&(t.add=e),s(this.scene,h,t),r(h,t),h}))},46409:(t,e,i)=>{var s=i(39429),r=i(68287);s.register("sprite",(function(t,e,i,s){return this.displayList.add(new r(this.scene,t,e,i,s))}))},92751:(t,e,i)=>{var s,r;i(29747),s=i(9409),r=i(76552),t.exports={renderWebGL:s,renderCanvas:r}},9409:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e),e.pipeline.batchSprite(e,i,s)}},14220:t=>{t.exports=function(t,e,i){var s=t.canvas,r=t.context,n=t.style,o=[],a=0,h=i.length;n.maxLines>0&&n.maxLines1&&(u+=t.letterSpacing*(i[l].length-1)),n.wordWrap&&(u-=r.measureText(" ").width),o[l]=Math.ceil(u),a=Math.max(a,o[l])}var c=e.fontSize+n.strokeThickness,d=c*h,p=t.lineSpacing;return h>1&&(d+=p*(h-1)),{width:a,height:d,lines:h,lineWidths:o,lineSpacing:p,lineHeight:c}}},79557:(t,e,i)=>{var s=i(27919);t.exports=function(t){var e=s.create(this),i=e.getContext("2d",{willReadFrequently:!0});t.syncFont(e,i);var r=i.measureText(t.testString);if("actualBoundingBoxAscent"in r){var n=r.actualBoundingBoxAscent,o=r.actualBoundingBoxDescent;return s.remove(e),{ascent:n,descent:o,fontSize:n+o}}var a=Math.ceil(r.width*t.baselineX),h=a,l=2*h;h=h*t.baselineY|0,e.width=a,e.height=l,i.fillStyle="#f00",i.fillRect(0,0,a,l),i.font=t._font,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(t.testString,0,h);var u={ascent:0,descent:0,fontSize:0},c=i.getImageData(0,0,a,l);if(!c)return u.ascent=h,u.descent=h+6,u.fontSize=u.ascent+u.descent,s.remove(e),u;var d,p,f=c.data,g=f.length,m=4*a,v=0,y=!1;for(d=0;dh;d--){for(p=0;p{var s=i(40366),r=i(27919),n=i(83419),o=i(31401),a=i(95643),h=i(14220),l=i(35154),u=i(35846),c=i(61771),d=i(35762),p=i(45650),f=new n({Extends:a,Mixins:[o.Alpha,o.BlendMode,o.ComputedSize,o.Crop,o.Depth,o.Flip,o.GetBounds,o.Mask,o.Origin,o.Pipeline,o.PostPipeline,o.ScrollFactor,o.Tint,o.Transform,o.Visible,c],initialize:function(t,e,i,s,n){void 0===e&&(e=0),void 0===i&&(i=0),a.call(this,t,"Text"),this.renderer=t.sys.renderer,this.setPosition(e,i),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(!0),this.canvas=r.create(this),this.context,this.style=new d(this,n),this.autoRound=!0,this.splitRegExp=/(?:\r\n|\r|\n)/,this._text=void 0,this.padding={left:0,right:0,top:0,bottom:0},this.width=1,this.height=1,this.lineSpacing=0,this.letterSpacing=0,0===this.style.resolution&&(this.style.resolution=1),this._crop=this.resetCropObject(),this._textureKey=p(),this.texture=t.sys.textures.addCanvas(this._textureKey,this.canvas),this.context=this.texture.context,this.frame=this.texture.get(),this.frame.source.resolution=this.style.resolution,this.renderer&&this.renderer.gl&&(this.renderer.deleteTexture(this.frame.source.glTexture),this.frame.source.glTexture=null),this.initRTL(),this.setText(s),n&&n.padding&&this.setPadding(n.padding),n&&n.lineSpacing&&this.setLineSpacing(n.lineSpacing)},initRTL:function(){this.style.rtl&&(this.canvas.dir="rtl",this.context.direction="rtl",this.canvas.style.display="none",s(this.canvas,this.scene.sys.canvas),this.originX=1)},runWordWrap:function(t){var e=this.style;if(e.wordWrapCallback){var i=e.wordWrapCallback.call(e.wordWrapCallbackScope,t,this);return Array.isArray(i)&&(i=i.join("\n")),i}return e.wordWrapWidth?e.wordWrapUseAdvanced?this.advancedWordWrap(t,this.context,this.style.wordWrapWidth):this.basicWordWrap(t,this.context,this.style.wordWrapWidth):t},advancedWordWrap:function(t,e,i){for(var s="",r=t.replace(/ +/gi," ").split(this.splitRegExp),n=r.length,o=0;ol){if(0===c){for(var g=p;g.length&&(g=g.slice(0,-1),!((f=e.measureText(g).width)<=l)););if(!g.length)throw new Error("wordWrapWidth < a single character");var m=d.substr(g.length);u[c]=m,h+=g}var v=u[c].length?c:c+1,y=u.slice(v).join(" ").replace(/[ \n]*$/gi,"");r.splice(o+1,0,y),n=r.length;break}h+=p,l-=f}s+=h.replace(/[ \n]*$/gi,"")+"\n"}}return s=s.replace(/[\s|\n]*$/gi,"")},basicWordWrap:function(t,e,i){for(var s="",r=t.split(this.splitRegExp),n=r.length-1,o=e.measureText(" ").width,a=0;a<=n;a++){for(var h=i,l=r[a].split(" "),u=l.length-1,c=0;c<=u;c++){var d=l[c],p=e.measureText(d).width,f=p;ch&&c>0&&(s+="\n",h=i),s+=d,c0&&(d+=l.lineSpacing*g),i.rtl)c=p-c-u.left-u.right;else if("right"===i.align)c+=o-l.lineWidths[g];else if("center"===i.align)c+=(o-l.lineWidths[g])/2;else if("justify"===i.align&&l.lineWidths[g]/l.width>=.85){var m=l.width-l.lineWidths[g],v=e.measureText(" ").width,y=a[g].trim(),x=y.split(" ");m+=(a[g].length-y.length)*v;for(var w=Math.floor(m/v),T=0;w>0;)x[T]+=" ",T=(T+1)%(x.length-1||1),--w;a[g]=x.join(" ")}if(this.autoRound&&(c=Math.round(c),d=Math.round(d)),i.strokeThickness&&(i.syncShadow(e,i.shadowStroke),e.strokeText(a[g],c,d)),i.color){i.syncShadow(e,i.shadowFill);var b=this.letterSpacing;if(0!==b)for(var S=0,E=a[g].split(""),C=0;C{t.exports=function(t,e,i,s){0!==e.width&&0!==e.height&&(i.addToRenderList(e),t.batchSprite(e,e.frame,i,s))}},71259:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(50171);r.register("text",(function(t,e){void 0===t&&(t={});var i=n(t,"text",""),r=n(t,"style",null),a=n(t,"padding",null);null!==a&&(r.padding=a);var h=new o(this.scene,0,0,i,r);return void 0!==e&&(t.add=e),s(this.scene,h,t),h.autoRound=n(t,"autoRound",!0),h.resolution=n(t,"resolution",1),h}))},68005:(t,e,i)=>{var s=i(50171);i(39429).register("text",(function(t,e,i,r){return this.displayList.add(new s(this.scene,t,e,i,r))}))},61771:(t,e,i)=>{var s,r;i(29747),s=i(34397),r=i(79724),t.exports={renderWebGL:s,renderCanvas:r}},35762:(t,e,i)=>{var s=i(83419),r=i(23568),n=i(35154),o=i(79557),a={fontFamily:["fontFamily","Courier"],fontSize:["fontSize","16px"],fontStyle:["fontStyle",""],backgroundColor:["backgroundColor",null],color:["color","#fff"],stroke:["stroke","#fff"],strokeThickness:["strokeThickness",0],shadowOffsetX:["shadow.offsetX",0],shadowOffsetY:["shadow.offsetY",0],shadowColor:["shadow.color","#000"],shadowBlur:["shadow.blur",0],shadowStroke:["shadow.stroke",!1],shadowFill:["shadow.fill",!1],align:["align","left"],maxLines:["maxLines",0],fixedWidth:["fixedWidth",0],fixedHeight:["fixedHeight",0],resolution:["resolution",0],rtl:["rtl",!1],testString:["testString","|MÉqgy"],baselineX:["baselineX",1.2],baselineY:["baselineY",1.4],wordWrapWidth:["wordWrap.width",null],wordWrapCallback:["wordWrap.callback",null],wordWrapCallbackScope:["wordWrap.callbackScope",null],wordWrapUseAdvanced:["wordWrap.useAdvancedWrap",!1]},h=new s({initialize:function(t,e){this.parent=t,this.fontFamily,this.fontSize,this.fontStyle,this.backgroundColor,this.color,this.stroke,this.strokeThickness,this.shadowOffsetX,this.shadowOffsetY,this.shadowColor,this.shadowBlur,this.shadowStroke,this.shadowFill,this.align,this.maxLines,this.fixedWidth,this.fixedHeight,this.resolution,this.rtl,this.testString,this.baselineX,this.baselineY,this.wordWrapWidth,this.wordWrapCallback,this.wordWrapCallbackScope,this.wordWrapUseAdvanced,this._font,this.setStyle(e,!1,!0)},setStyle:function(t,e,i){for(var s in void 0===e&&(e=!0),void 0===i&&(i=!1),t&&t.hasOwnProperty("fontSize")&&"number"==typeof t.fontSize&&(t.fontSize=t.fontSize.toString()+"px"),a){var h=i?a[s][1]:this[s];this[s]="wordWrapCallback"===s||"wordWrapCallbackScope"===s?n(t,a[s][0],h):r(t,a[s][0],h)}var l=n(t,"font",null);null!==l&&this.setFont(l,!1),this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim();var u=n(t,"fill",null);null!==u&&(this.color=u);var c=n(t,"metrics",!1);return c?this.metrics={ascent:n(c,"ascent",0),descent:n(c,"descent",0),fontSize:n(c,"fontSize",0)}:!e&&this.metrics||(this.metrics=o(this)),e?this.parent.updateText():this.parent},syncFont:function(t,e){e.font=this._font},syncStyle:function(t,e){e.textBaseline="alphabetic",e.fillStyle=this.color,e.strokeStyle=this.stroke,e.lineWidth=this.strokeThickness,e.lineCap="round",e.lineJoin="round"},syncShadow:function(t,e){e?(t.shadowOffsetX=this.shadowOffsetX,t.shadowOffsetY=this.shadowOffsetY,t.shadowColor=this.shadowColor,t.shadowBlur=this.shadowBlur):(t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowColor=0,t.shadowBlur=0)},update:function(t){return t&&(this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),this.metrics=o(this)),this.parent.updateText()},setFont:function(t,e){void 0===e&&(e=!0);var i=t,s="",r="";if("string"!=typeof t)i=n(t,"fontFamily","Courier"),s=n(t,"fontSize","16px"),r=n(t,"fontStyle","");else{var o=t.split(" "),a=0;r=o.length>2?o[a++]:"",s=o[a++]||"16px",i=o[a++]||"Courier"}return i===this.fontFamily&&s===this.fontSize&&r===this.fontStyle||(this.fontFamily=i,this.fontSize=s,this.fontStyle=r,e&&this.update(!0)),this.parent},setFontFamily:function(t){return this.fontFamily!==t&&(this.fontFamily=t,this.update(!0)),this.parent},setFontStyle:function(t){return this.fontStyle!==t&&(this.fontStyle=t,this.update(!0)),this.parent},setFontSize:function(t){return"number"==typeof t&&(t=t.toString()+"px"),this.fontSize!==t&&(this.fontSize=t,this.update(!0)),this.parent},setTestString:function(t){return this.testString=t,this.update(!0)},setFixedSize:function(t,e){return this.fixedWidth=t,this.fixedHeight=e,t&&(this.parent.width=t),e&&(this.parent.height=e),this.update(!1)},setBackgroundColor:function(t){return this.backgroundColor=t,this.update(!1)},setFill:function(t){return this.color=t,this.update(!1)},setColor:function(t){return this.color=t,this.update(!1)},setResolution:function(t){return this.resolution=t,this.update(!1)},setStroke:function(t,e){return void 0===e&&(e=this.strokeThickness),void 0===t&&0!==this.strokeThickness?(this.strokeThickness=0,this.update(!0)):this.stroke===t&&this.strokeThickness===e||(this.stroke=t,this.strokeThickness=e,this.update(!0)),this.parent},setShadow:function(t,e,i,s,r,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i="#000"),void 0===s&&(s=0),void 0===r&&(r=!1),void 0===n&&(n=!0),this.shadowOffsetX=t,this.shadowOffsetY=e,this.shadowColor=i,this.shadowBlur=s,this.shadowStroke=r,this.shadowFill=n,this.update(!1)},setShadowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.shadowOffsetX=t,this.shadowOffsetY=e,this.update(!1)},setShadowColor:function(t){return void 0===t&&(t="#000"),this.shadowColor=t,this.update(!1)},setShadowBlur:function(t){return void 0===t&&(t=0),this.shadowBlur=t,this.update(!1)},setShadowStroke:function(t){return this.shadowStroke=t,this.update(!1)},setShadowFill:function(t){return this.shadowFill=t,this.update(!1)},setWordWrapWidth:function(t,e){return void 0===e&&(e=!1),this.wordWrapWidth=t,this.wordWrapUseAdvanced=e,this.update(!1)},setWordWrapCallback:function(t,e){return void 0===e&&(e=null),this.wordWrapCallback=t,this.wordWrapCallbackScope=e,this.update(!1)},setAlign:function(t){return void 0===t&&(t="left"),this.align=t,this.update(!1)},setMaxLines:function(t){return void 0===t&&(t=0),this.maxLines=t,this.update(!1)},getTextMetrics:function(){var t=this.metrics;return{ascent:t.ascent,descent:t.descent,fontSize:t.fontSize}},toJSON:function(){var t={};for(var e in a)t[e]=this[e];return t.metrics=this.getTextMetrics(),t},destroy:function(){this.parent=void 0}});t.exports=h},34397:(t,e,i)=>{var s=i(70554);t.exports=function(t,e,i,r){if(0!==e.width&&0!==e.height){i.addToRenderList(e);var n=e.frame,o=n.width,a=n.height,h=s.getTintAppendFloatAlpha,l=t.pipelines.set(e.pipeline,e),u=l.setTexture2D(n.glTexture,e);l.batchTexture(e,n.glTexture,o,a,e.x,e.y,o/e.style.resolution,a/e.style.resolution,e.scaleX,e.scaleY,e.rotation,e.flipX,e.flipY,e.scrollFactorX,e.scrollFactorY,e.displayOriginX,e.displayOriginY,0,0,o,a,h(e.tintTopLeft,i.alpha*e._alphaTL),h(e.tintTopRight,i.alpha*e._alphaTR),h(e.tintBottomLeft,i.alpha*e._alphaBL),h(e.tintBottomRight,i.alpha*e._alphaBR),e.tintFill,0,0,i,r,!1,u)}}},20839:(t,e,i)=>{var s=i(27919),r=i(83419),n=i(31401),o=i(95643),a=i(98439),h=i(68703),l=i(56295),u=i(45650),c=i(26099),d=new r({Extends:o,Mixins:[n.Alpha,n.BlendMode,n.ComputedSize,n.Crop,n.Depth,n.Flip,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Tint,n.Transform,n.Visible,l],initialize:function(t,e,i,r,n,h,l){var d=t.sys.renderer;o.call(this,t,"TileSprite");var p=t.sys.textures.get(h),f=p.get(l);f.source.compressionAlgorithm&&(console.warn("TileSprite cannot use compressed texture"),f=(p=t.sys.textures.get("__MISSING")).get()),"DynamicTexture"===p.type&&(console.warn("TileSprite cannot use Dynamic Texture"),f=(p=t.sys.textures.get("__MISSING")).get()),r&&n?(r=Math.floor(r),n=Math.floor(n)):(r=f.width,n=f.height),this._tilePosition=new c,this._tileScale=new c(1,1),this.dirty=!1,this.renderer=d,this.canvas=s.create(this,r,n),this.context=this.canvas.getContext("2d",{willReadFrequently:!1}),this.displayTexture=p,this.displayFrame=f,this._crop=this.resetCropObject(),this._textureKey=u(),this.texture=t.sys.textures.addCanvas(this._textureKey,this.canvas),this.frame=this.texture.get(),this.potWidth=a(f.width),this.potHeight=a(f.height),this.fillCanvas=s.create2D(this,this.potWidth,this.potHeight),this.fillContext=this.fillCanvas.getContext("2d",{willReadFrequently:!1}),this.fillPattern=null,this.setPosition(e,i),this.setSize(r,n),this.setFrame(l),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},setTexture:function(t,e){return this.displayTexture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t){var e=this.displayTexture.get(t);return this.potWidth=a(e.width),this.potHeight=a(e.height),this.canvas.width=0,e.cutWidth&&e.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this.displayFrame=e,this.dirty=!0,this.updateTileTexture(),this},setTilePosition:function(t,e){return void 0!==t&&(this.tilePositionX=t),void 0!==e&&(this.tilePositionY=e),this},setTileScale:function(t,e){return void 0===t&&(t=this.tileScaleX),void 0===e&&(e=t),this.tileScaleX=t,this.tileScaleY=e,this},updateTileTexture:function(){if(this.dirty&&this.renderer){var t=this.displayFrame;if(t.source.isRenderTexture||t.source.isGLTexture)return console.warn("TileSprites can only use Image or Canvas based textures"),void(this.dirty=!1);var e=this.fillContext,i=this.fillCanvas,s=this.potWidth,r=this.potHeight;this.renderer&&this.renderer.gl||(s=t.cutWidth,r=t.cutHeight),e.clearRect(0,0,s,r),i.width=s,i.height=r,e.drawImage(t.source.image,t.cutX,t.cutY,t.cutWidth,t.cutHeight,0,0,s,r),this.renderer&&this.renderer.gl?this.fillPattern=this.renderer.canvasToTexture(i,this.fillPattern):this.fillPattern=e.createPattern(i,"repeat"),this.updateCanvas(),this.dirty=!1}},updateCanvas:function(){var t=this.canvas;if(t.width===this.width&&t.height===this.height||(t.width=this.width,t.height=this.height,this.frame.setSize(this.width,this.height),this.updateDisplayOrigin(),this.dirty=!0),!this.dirty||this.renderer&&this.renderer.gl)this.dirty=!1;else{var e=this.context;this.scene.sys.game.config.antialias||h.disable(e);var i=this._tileScale.x,s=this._tileScale.y,r=this._tilePosition.x,n=this._tilePosition.y;e.clearRect(0,0,this.width,this.height),e.save(),e.scale(i,s),e.translate(-r,-n),e.fillStyle=this.fillPattern,e.fillRect(r,n,this.width/i,this.height/s),e.restore(),this.dirty=!1}},preDestroy:function(){this.renderer&&this.renderer.gl&&this.renderer.deleteTexture(this.fillPattern),s.remove(this.canvas),s.remove(this.fillCanvas),this.fillPattern=null,this.fillContext=null,this.fillCanvas=null,this.displayTexture=null,this.displayFrame=null;var t=this.texture;t&&t.destroy(),this.renderer=null},tilePositionX:{get:function(){return this._tilePosition.x},set:function(t){this._tilePosition.x=t,this.dirty=!0}},tilePositionY:{get:function(){return this._tilePosition.y},set:function(t){this._tilePosition.y=t,this.dirty=!0}},tileScaleX:{get:function(){return this._tileScale.x},set:function(t){this._tileScale.x=t,this.dirty=!0}},tileScaleY:{get:function(){return this._tileScale.y},set:function(t){this._tileScale.y=t,this.dirty=!0}}});t.exports=d},46992:t=>{t.exports=function(t,e,i,s){e.updateCanvas(),i.addToRenderList(e),t.batchSprite(e,e.frame,i,s)}},14167:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(20839);r.register("tileSprite",(function(t,e){void 0===t&&(t={});var i=n(t,"x",0),r=n(t,"y",0),a=n(t,"width",512),h=n(t,"height",512),l=n(t,"key",""),u=n(t,"frame",""),c=new o(this.scene,i,r,a,h,l,u);return void 0!==e&&(t.add=e),s(this.scene,c,t),c}))},91681:(t,e,i)=>{var s=i(20839);i(39429).register("tileSprite",(function(t,e,i,r,n,o){return this.displayList.add(new s(this.scene,t,e,i,r,n,o))}))},56295:(t,e,i)=>{var s,r;i(29747),s=i(18553),r=i(46992),t.exports={renderWebGL:s,renderCanvas:r}},18553:(t,e,i)=>{var s=i(70554);t.exports=function(t,e,i,r){e.updateCanvas();var n=e.width,o=e.height;if(0!==n&&0!==o){i.addToRenderList(e);var a=s.getTintAppendFloatAlpha,h=t.pipelines.set(e.pipeline,e),l=h.setTexture2D(e.fillPattern,e);h.batchTexture(e,e.fillPattern,e.displayFrame.width*e.tileScaleX,e.displayFrame.height*e.tileScaleY,e.x,e.y,n,o,e.scaleX,e.scaleY,e.rotation,e.flipX,e.flipY,e.scrollFactorX,e.scrollFactorY,e.originX*n,e.originY*o,0,0,n,o,a(e.tintTopLeft,i.alpha*e._alphaTL),a(e.tintTopRight,i.alpha*e._alphaTR),a(e.tintBottomLeft,i.alpha*e._alphaBL),a(e.tintBottomRight,i.alpha*e._alphaBR),e.tintFill,e.tilePositionX%e.displayFrame.width/e.displayFrame.width,e.tilePositionY%e.displayFrame.height/e.displayFrame.height,i,r,!1,l)}}},18471:(t,e,i)=>{var s=i(45319),r=i(83419),n=i(31401),o=i(51708),a=i(8443),h=i(95643),l=i(36383),u=i(14463),c=i(45650),d=i(10247),p=new r({Extends:h,Mixins:[n.Alpha,n.BlendMode,n.ComputedSize,n.Depth,n.Flip,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.TextureCrop,n.Tint,n.Transform,n.Visible,d],initialize:function(t,e,i,s){h.call(this,t,"Video"),this.video,this.videoTexture,this.videoTextureSource,this.snapshotTexture,this.flipY=!1,this._key=c(),this.touchLocked=!1,this.playWhenUnlocked=!1,this.frameReady=!1,this.isStalled=!1,this.failedPlayAttempts=0,this.metadata,this.retry=0,this.retryInterval=500,this._systemMuted=!1,this._codeMuted=!1,this._systemPaused=!1,this._codePaused=!1,this._callbacks={ended:this.completeHandler.bind(this),legacy:this.legacyPlayHandler.bind(this),playing:this.playingHandler.bind(this),seeked:this.seekedHandler.bind(this),seeking:this.seekingHandler.bind(this),stalled:this.stalledHandler.bind(this),suspend:this.stalledHandler.bind(this),waiting:this.stalledHandler.bind(this)},this._loadCallbackHandler=this.loadErrorHandler.bind(this),this._metadataCallbackHandler=this.metadataHandler.bind(this),this._crop=this.resetCropObject(),this.markers={},this._markerIn=0,this._markerOut=0,this._playingMarker=!1,this._lastUpdate=0,this.cacheKey="",this.isSeeking=!1,this._playCalled=!1,this._rfvCallbackId=0;var r=t.sys.game;this._device=r.device.video,this.setPosition(e,i),this.setSize(256,256),this.initPipeline(),this.initPostPipeline(!0),r.events.on(a.PAUSE,this.globalPause,this),r.events.on(a.RESUME,this.globalResume,this);var n=t.sys.sound;n&&n.on(u.GLOBAL_MUTE,this.globalMute,this),s&&this.load(s)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},load:function(t){var e=this.scene.sys.cache.video.get(t);return e?(this.cacheKey=t,this.loadHandler(e.url,e.noAudio,e.crossOrigin)):console.warn("No video in cache for key: "+t),this},changeSource:function(t,e,i,s,r){void 0===e&&(e=!0),void 0===i&&(i=!1),this.cacheKey!==t&&(this.load(t),e&&this.play(i,s,r))},getVideoKey:function(){return this.cacheKey},loadURL:function(t,e,i){void 0===e&&(e=!1);var s=this._device.getVideoURL(t);return s?(this.cacheKey="",this.loadHandler(s.url,e,i)):console.warn("No supported video format found for "+t),this},loadMediaStream:function(t,e,i){return this.loadHandler(null,e,i,t)},loadHandler:function(t,e,i,s){e||(e=!1);var r=this.video;if(r?(this.removeLoadEventHandlers(),this.stop()):((r=document.createElement("video")).controls=!1,r.setAttribute("playsinline","playsinline"),r.setAttribute("preload","auto"),r.setAttribute("disablePictureInPicture","true")),e?(r.muted=!0,r.defaultMuted=!0,r.setAttribute("autoplay","autoplay")):(r.muted=!1,r.defaultMuted=!1,r.removeAttribute("autoplay")),i?r.setAttribute("crossorigin",i):r.removeAttribute("crossorigin"),s)if("srcObject"in r)try{r.srcObject=s}catch(o){if("TypeError"!==o.name)throw o;r.src=URL.createObjectURL(s)}else r.src=URL.createObjectURL(s);else r.src=t;this.retry=0,this.video=r,this._playCalled=!1,r.load(),this.addLoadEventHandlers();var n=this.scene.sys.textures.get(this._key);return this.setTexture(n),this},requestVideoFrame:function(t,e){var i=this.video;if(i){var s=e.width,r=e.height,n=this.videoTexture,a=this.videoTextureSource,h=!n||a.source!==i;h?(this._codePaused=i.paused,this._codeMuted=i.muted,n?(a.source=i,a.width=s,a.height=r,n.get().setSize(s,r)):((n=this.scene.sys.textures.create(this._key,i,s,r)).add("__BASE",0,0,0,s,r),this.setTexture(n),this.videoTexture=n,this.videoTextureSource=n.source[0],this.videoTextureSource.setFlipY(this.flipY),this.emit(o.VIDEO_TEXTURE,this,n)),this.setSizeToFrame(),this.updateDisplayOrigin()):a.update(),this.isStalled=!1,this.metadata=e;var l=e.mediaTime;h&&(this._lastUpdate=l,this.emit(o.VIDEO_CREATED,this,s,r),this.frameReady||(this.frameReady=!0,this.emit(o.VIDEO_PLAY,this))),this._playingMarker?l>=this._markerOut&&(i.loop?(i.currentTime=this._markerIn,this.emit(o.VIDEO_LOOP,this)):(this.stop(!1),this.emit(o.VIDEO_COMPLETE,this))):l-1&&i>e&&i=0&&!isNaN(i)&&i>e&&(this.markers[t]=[e,i]),this},playMarker:function(t,e){var i=this.markers[t];return i&&this.play(e,i[0],i[1]),this},removeMarker:function(t){return delete this.markers[t],this},snapshot:function(t,e){return void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.snapshotArea(0,0,this.width,this.height,t,e)},snapshotArea:function(t,e,i,s,r,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===s&&(s=this.height),void 0===r&&(r=i),void 0===n&&(n=s);var o=this.video,a=this.snapshotTexture;return a?(a.setSize(r,n),o&&a.context.drawImage(o,t,e,i,s,0,0,r,n)):(a=this.scene.sys.textures.createCanvas(c(),r,n),this.snapshotTexture=a,o&&a.context.drawImage(o,t,e,i,s,0,0,r,n)),a.update()},saveSnapshotTexture:function(t){return this.snapshotTexture?this.scene.sys.textures.renameTexture(this.snapshotTexture.key,t):this.snapshotTexture=this.scene.sys.textures.createCanvas(t,this.width,this.height),this.snapshotTexture},playSuccess:function(){if(this._playCalled){this.addEventHandlers(),this._codePaused=!1,this.touchLocked&&(this.touchLocked=!1,this.emit(o.VIDEO_UNLOCKED,this));var t=this.scene.sys.sound;t&&t.mute&&this.setMute(!0),this._markerIn>-1&&(this.video.currentTime=this._markerIn)}},playError:function(t){var e=t.name;"NotAllowedError"===e?(this.touchLocked=!0,this.playWhenUnlocked=!0,this.failedPlayAttempts=1,this.emit(o.VIDEO_LOCKED,this)):"NotSupportedError"===e?(this.stop(!1),this.emit(o.VIDEO_UNSUPPORTED,this,t)):(this.stop(!1),this.emit(o.VIDEO_ERROR,this,t))},legacyPlayHandler:function(){var t=this.video;t&&(this.playSuccess(),t.removeEventListener("playing",this._callbacks.legacy))},playingHandler:function(){this.isStalled=!1,this.emit(o.VIDEO_PLAYING,this)},loadErrorHandler:function(t){this.stop(!1),this.emit(o.VIDEO_ERROR,this,t)},metadataHandler:function(t){this.emit(o.VIDEO_METADATA,this,t)},setSizeToFrame:function(t){t||(t=this.frame),this.width=t.realWidth,this.height=t.realHeight,1!==this.scaleX&&(this.scaleX=this.displayWidth/this.width),1!==this.scaleY&&(this.scaleY=this.displayHeight/this.height);var e=this.input;return e&&!e.customHitArea&&(e.hitArea.width=this.width,e.hitArea.height=this.height),this},stalledHandler:function(t){this.isStalled=!0,this.emit(o.VIDEO_STALLED,this,t)},completeHandler:function(){this._playCalled=!1,this.emit(o.VIDEO_COMPLETE,this)},preUpdate:function(t,e){this.video&&this._playCalled&&this.touchLocked&&this.playWhenUnlocked&&(this.retry+=e,this.retry>=this.retryInterval&&(this.createPlayPromise(!1),this.retry=0))},seekTo:function(t){var e=this.video;if(e){var i=e.duration;if(i!==1/0&&!isNaN(i)){var s=i*t;this.setCurrentTime(s)}}return this},getCurrentTime:function(){return this.video?this.video.currentTime:0},setCurrentTime:function(t){var e=this.video;if(e){if("string"==typeof t){var i=t[0],s=parseFloat(t.substr(1));"+"===i?t=e.currentTime+s:"-"===i&&(t=e.currentTime-s)}e.currentTime=t}return this},seekingHandler:function(){this.isSeeking=!0,this.emit(o.VIDEO_SEEKING,this)},seekedHandler:function(){this.isSeeking=!1,this.emit(o.VIDEO_SEEKED,this)},getProgress:function(){var t=this.video;if(t){var e=t.duration;if(e!==1/0&&!isNaN(e))return t.currentTime/e}return-1},getDuration:function(){return this.video?this.video.duration:0},setMute:function(t){void 0===t&&(t=!0),this._codeMuted=t;var e=this.video;return e&&(e.muted=!!this._systemMuted||t),this},isMuted:function(){return this._codeMuted},globalMute:function(t,e){this._systemMuted=e;var i=this.video;i&&(i.muted=!!this._codeMuted||e)},globalPause:function(){this._systemPaused=!0,this.video&&!this.video.ended&&(this.removeEventHandlers(),this.video.pause())},globalResume:function(){this._systemPaused=!1,!this.video||this._codePaused||this.video.ended||this.createPlayPromise()},setPaused:function(t){void 0===t&&(t=!0);var e=this.video;return this._codePaused=t,e&&!e.ended&&(t?e.paused||(this.removeEventHandlers(),e.pause()):t||(this._playCalled?e.paused&&!this._systemPaused&&this.createPlayPromise():this.play())),this},pause:function(){return this.setPaused(!0)},resume:function(){return this.setPaused(!1)},getVolume:function(){return this.video?this.video.volume:1},setVolume:function(t){return void 0===t&&(t=1),this.video&&(this.video.volume=s(t,0,1)),this},getPlaybackRate:function(){return this.video?this.video.playbackRate:1},setPlaybackRate:function(t){return this.video&&(this.video.playbackRate=t),this},getLoop:function(){return!!this.video&&this.video.loop},setLoop:function(t){return void 0===t&&(t=!0),this.video&&(this.video.loop=t),this},isPlaying:function(){return!!this.video&&!(this.video.paused||this.video.ended)},isPaused:function(){return this.video&&this._playCalled&&this.video.paused||this._codePaused||this._systemPaused},saveTexture:function(t,e){return void 0===e&&(e=!1),this.videoTexture&&(this.scene.sys.textures.renameTexture(this._key,t),this.videoTextureSource.setFlipY(e)),this._key=t,this.flipY=e,!!this.videoTexture},stop:function(t){void 0===t&&(t=!0);var e=this.video;return e&&(this.removeEventHandlers(),e.cancelVideoFrameCallback(this._rfvCallbackId),e.pause()),this.retry=0,this._playCalled=!1,t&&this.emit(o.VIDEO_STOP,this),this},removeVideoElement:function(){var t=this.video;if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("autoplay"),t.removeAttribute("src"),this.video=null}},preDestroy:function(){this.stop(!1),this.removeLoadEventHandlers(),this.removeVideoElement();var t=this.scene.sys.game.events;t.off(a.PAUSE,this.globalPause,this),t.off(a.RESUME,this.globalResume,this);var e=this.scene.sys.sound;e&&e.off(u.GLOBAL_MUTE,this.globalMute,this)}});t.exports=p},58352:t=>{t.exports=function(t,e,i,s){e.videoTexture&&(i.addToRenderList(e),t.batchSprite(e,e.frame,i,s))}},11511:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(18471);r.register("video",(function(t,e){void 0===t&&(t={});var i=n(t,"key",null),r=new o(this.scene,0,0,i);return void 0!==e&&(t.add=e),s(this.scene,r,t),r}))},89025:(t,e,i)=>{var s=i(18471);i(39429).register("video",(function(t,e,i){return this.displayList.add(new s(this.scene,t,e,i))}))},10247:(t,e,i)=>{var s,r;i(29747),s=i(29849),r=i(58352),t.exports={renderWebGL:s,renderCanvas:r}},29849:t=>{t.exports=function(t,e,i,s){e.videoTexture&&(i.addToRenderList(e),e.pipeline.batchSprite(e,i,s))}},41481:(t,e,i)=>{var s=i(10312),r=i(96503),n=i(87902),o=i(83419),a=i(31401),h=i(95643),l=i(87841),u=i(37303),c=new o({Extends:h,Mixins:[a.Depth,a.GetBounds,a.Origin,a.Transform,a.ScrollFactor,a.Visible],initialize:function(t,e,i,r,n){void 0===r&&(r=1),void 0===n&&(n=r),h.call(this,t,"Zone"),this.setPosition(e,i),this.width=r,this.height=n,this.blendMode=s.NORMAL,this.updateDisplayOrigin()},displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}},setSize:function(t,e,i){void 0===i&&(i=!0),this.width=t,this.height=e,this.updateDisplayOrigin();var s=this.input;return i&&s&&!s.customHitArea&&(s.hitArea.width=t,s.hitArea.height=e),this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this},setCircleDropZone:function(t){return this.setDropZone(new r(0,0,t),n)},setRectangleDropZone:function(t,e){return this.setDropZone(new l(0,0,t,e),u)},setDropZone:function(t,e){return this.input||this.setInteractive(t,e,!0),this},setAlpha:function(){},setBlendMode:function(){},renderCanvas:function(t,e,i){i.addToRenderList(e)},renderWebGL:function(t,e,i){i.addToRenderList(e)}});t.exports=c},95261:(t,e,i)=>{var s=i(44603),r=i(23568),n=i(41481);s.register("zone",(function(t){var e=r(t,"x",0),i=r(t,"y",0),s=r(t,"width",1),o=r(t,"height",s);return new n(this.scene,e,i,s,o)}))},84175:(t,e,i)=>{var s=i(41481);i(39429).register("zone",(function(t,e,i,r){return this.displayList.add(new s(this.scene,t,e,i,r))}))},95166:t=>{t.exports=function(t){return t.radius>0?Math.PI*t.radius*t.radius:0}},96503:(t,e,i)=>{var s=i(83419),r=i(87902),n=i(26241),o=i(79124),a=i(23777),h=i(28176),l=new s({initialize:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),this.type=a.CIRCLE,this.x=t,this.y=e,this._radius=i,this._diameter=2*i},contains:function(t,e){return r(this,t,e)},getPoint:function(t,e){return n(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,e,i){return this.x=t,this.y=e,this._radius=i,this._diameter=2*i,this},setEmpty:function(){return this._radius=0,this._diameter=0,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},isEmpty:function(){return this._radius<=0},radius:{get:function(){return this._radius},set:function(t){this._radius=t,this._diameter=2*t}},diameter:{get:function(){return this._diameter},set:function(t){this._diameter=t,this._radius=.5*t}},left:{get:function(){return this.x-this._radius},set:function(t){this.x=t+this._radius}},right:{get:function(){return this.x+this._radius},set:function(t){this.x=t-this._radius}},top:{get:function(){return this.y-this._radius},set:function(t){this.y=t+this._radius}},bottom:{get:function(){return this.y+this._radius},set:function(t){this.y=t-this._radius}}});t.exports=l},71562:t=>{t.exports=function(t){return Math.PI*t.radius*2}},92110:(t,e,i)=>{var s=i(2141);t.exports=function(t,e,i){return void 0===i&&(i=new s),i.x=t.x+t.radius*Math.cos(e),i.y=t.y+t.radius*Math.sin(e),i}},42250:(t,e,i)=>{var s=i(96503);t.exports=function(t){return new s(t.x,t.y,t.radius)}},87902:t=>{t.exports=function(t,e,i){return t.radius>0&&e>=t.left&&e<=t.right&&i>=t.top&&i<=t.bottom&&(t.x-e)*(t.x-e)+(t.y-i)*(t.y-i)<=t.radius*t.radius}},5698:(t,e,i)=>{var s=i(87902);t.exports=function(t,e){return s(t,e.x,e.y)}},70588:(t,e,i)=>{var s=i(87902);t.exports=function(t,e){return s(t,e.x,e.y)&&s(t,e.right,e.y)&&s(t,e.x,e.bottom)&&s(t,e.right,e.bottom)}},26394:t=>{t.exports=function(t,e){return e.setTo(t.x,t.y,t.radius)}},76278:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.radius===e.radius}},2074:(t,e,i)=>{var s=i(87841);t.exports=function(t,e){return void 0===e&&(e=new s),e.x=t.left,e.y=t.top,e.width=t.diameter,e.height=t.diameter,e}},26241:(t,e,i)=>{var s=i(92110),r=i(62945),n=i(36383),o=i(2141);t.exports=function(t,e,i){void 0===i&&(i=new o);var a=r(e,0,n.PI2);return s(t,a,i)}},79124:(t,e,i)=>{var s=i(71562),r=i(92110),n=i(62945),o=i(36383);t.exports=function(t,e,i,a){void 0===a&&(a=[]),!e&&i>0&&(e=s(t)/i);for(var h=0;h{t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},39212:t=>{t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},28176:(t,e,i)=>{var s=i(2141);t.exports=function(t,e){void 0===e&&(e=new s);var i=2*Math.PI*Math.random(),r=Math.random()+Math.random(),n=r>1?2-r:r,o=n*Math.cos(i),a=n*Math.sin(i);return e.x=t.x+o*t.radius,e.y=t.y+a*t.radius,e}},88911:(t,e,i)=>{var s=i(96503);s.Area=i(95166),s.Circumference=i(71562),s.CircumferencePoint=i(92110),s.Clone=i(42250),s.Contains=i(87902),s.ContainsPoint=i(5698),s.ContainsRect=i(70588),s.CopyFrom=i(26394),s.Equals=i(76278),s.GetBounds=i(2074),s.GetPoint=i(26241),s.GetPoints=i(79124),s.Offset=i(50884),s.OffsetPoint=i(39212),s.Random=i(28176),t.exports=s},23777:t=>{t.exports={CIRCLE:0,ELLIPSE:1,LINE:2,POINT:3,POLYGON:4,RECTANGLE:5,TRIANGLE:6}},78874:t=>{t.exports=function(t){return t.isEmpty()?0:t.getMajorRadius()*t.getMinorRadius()*Math.PI}},92990:t=>{t.exports=function(t){var e=t.width/2,i=t.height/2,s=Math.pow(e-i,2)/Math.pow(e+i,2);return Math.PI*(e+i)*(1+3*s/(10+Math.sqrt(4-3*s)))}},79522:(t,e,i)=>{var s=i(2141);t.exports=function(t,e,i){void 0===i&&(i=new s);var r=t.width/2,n=t.height/2;return i.x=t.x+r*Math.cos(e),i.y=t.y+n*Math.sin(e),i}},58102:(t,e,i)=>{var s=i(8497);t.exports=function(t){return new s(t.x,t.y,t.width,t.height)}},81154:t=>{t.exports=function(t,e,i){if(t.width<=0||t.height<=0)return!1;var s=(e-t.x)/t.width,r=(i-t.y)/t.height;return(s*=s)+(r*=r)<.25}},46662:(t,e,i)=>{var s=i(81154);t.exports=function(t,e){return s(t,e.x,e.y)}},1632:(t,e,i)=>{var s=i(81154);t.exports=function(t,e){return s(t,e.x,e.y)&&s(t,e.right,e.y)&&s(t,e.x,e.bottom)&&s(t,e.right,e.bottom)}},65534:t=>{t.exports=function(t,e){return e.setTo(t.x,t.y,t.width,t.height)}},8497:(t,e,i)=>{var s=i(83419),r=i(81154),n=i(90549),o=i(48320),a=i(23777),h=i(24820),l=new s({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),this.type=a.ELLIPSE,this.x=t,this.y=e,this.width=i,this.height=s},contains:function(t,e){return r(this,t,e)},getPoint:function(t,e){return n(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,e,i,s){return this.x=t,this.y=e,this.width=i,this.height=s,this},setEmpty:function(){return this.width=0,this.height=0,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},isEmpty:function(){return this.width<=0||this.height<=0},getMinorRadius:function(){return Math.min(this.width,this.height)/2},getMajorRadius:function(){return Math.max(this.width,this.height)/2},left:{get:function(){return this.x-this.width/2},set:function(t){this.x=t+this.width/2}},right:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},top:{get:function(){return this.y-this.height/2},set:function(t){this.y=t+this.height/2}},bottom:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=l},36146:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}},23694:(t,e,i)=>{var s=i(87841);t.exports=function(t,e){return void 0===e&&(e=new s),e.x=t.left,e.y=t.top,e.width=t.width,e.height=t.height,e}},90549:(t,e,i)=>{var s=i(79522),r=i(62945),n=i(36383),o=i(2141);t.exports=function(t,e,i){void 0===i&&(i=new o);var a=r(e,0,n.PI2);return s(t,a,i)}},48320:(t,e,i)=>{var s=i(92990),r=i(79522),n=i(62945),o=i(36383);t.exports=function(t,e,i,a){void 0===a&&(a=[]),!e&&i>0&&(e=s(t)/i);for(var h=0;h{t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},44808:t=>{t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},24820:(t,e,i)=>{var s=i(2141);t.exports=function(t,e){void 0===e&&(e=new s);var i=Math.random()*Math.PI*2,r=Math.sqrt(Math.random());return e.x=t.x+r*Math.cos(i)*t.width/2,e.y=t.y+r*Math.sin(i)*t.height/2,e}},49203:(t,e,i)=>{var s=i(8497);s.Area=i(78874),s.Circumference=i(92990),s.CircumferencePoint=i(79522),s.Clone=i(58102),s.Contains=i(81154),s.ContainsPoint=i(46662),s.ContainsRect=i(1632),s.CopyFrom=i(65534),s.Equals=i(36146),s.GetBounds=i(23694),s.GetPoint=i(90549),s.GetPoints=i(48320),s.Offset=i(73424),s.OffsetPoint=i(44808),s.Random=i(24820),t.exports=s},55738:(t,e,i)=>{var s=i(23777),r=i(79291),n={Circle:i(88911),Ellipse:i(49203),Intersects:i(91865),Line:i(2529),Mesh:i(73090),Point:i(43711),Polygon:i(58423),Rectangle:i(93232),Triangle:i(84435)};n=r(!1,n,s),t.exports=n},2044:(t,e,i)=>{var s=i(20339);t.exports=function(t,e){return s(t.x,t.y,e.x,e.y)<=t.radius+e.radius}},81491:t=>{t.exports=function(t,e){var i=e.width/2,s=e.height/2,r=Math.abs(t.x-e.x-i),n=Math.abs(t.y-e.y-s),o=i+t.radius,a=s+t.radius;if(r>o||n>a)return!1;if(r<=i||n<=s)return!0;var h=r-i,l=n-s;return h*h+l*l<=t.radius*t.radius}},63376:(t,e,i)=>{var s=i(2141),r=i(2044);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e)){var n,o,a,h,l=t.x,u=t.y,c=t.radius,d=e.x,p=e.y,f=e.radius;if(u===p)0==(a=(o=-2*p)*o-4*(n=1)*(d*d+(h=(f*f-c*c-d*d+l*l)/(2*(l-d)))*h-2*d*h+p*p-f*f))?i.push(new s(h,-o/(2*n))):a>0&&(i.push(new s(h,(-o+Math.sqrt(a))/(2*n))),i.push(new s(h,(-o-Math.sqrt(a))/(2*n))));else{var g=(l-d)/(u-p),m=(f*f-c*c-d*d+l*l-p*p+u*u)/(2*(u-p));0==(a=(o=2*u*g-2*m*g-2*l)*o-4*(n=g*g+1)*(l*l+u*u+m*m-c*c-2*u*m))?(h=-o/(2*n),i.push(new s(h,m-h*g))):a>0&&(h=(-o+Math.sqrt(a))/(2*n),i.push(new s(h,m-h*g)),h=(-o-Math.sqrt(a))/(2*n),i.push(new s(h,m-h*g)))}}return i}},97439:(t,e,i)=>{var s=i(4042),r=i(81491);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e)){var n=e.getLineA(),o=e.getLineB(),a=e.getLineC(),h=e.getLineD();s(n,t,i),s(o,t,i),s(a,t,i),s(h,t,i)}return i}},4042:(t,e,i)=>{var s=i(2141),r=i(80462);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e)){var n,o,a=t.x1,h=t.y1,l=t.x2,u=t.y2,c=e.x,d=e.y,p=e.radius,f=l-a,g=u-h,m=a-c,v=h-d,y=f*f+g*g,x=2*(f*m+g*v),w=x*x-4*y*(m*m+v*v-p*p);if(0===w){var T=-x/(2*y);n=a+T*f,o=h+T*g,T>=0&&T<=1&&i.push(new s(n,o))}else if(w>0){var b=(-x-Math.sqrt(w))/(2*y);n=a+b*f,o=h+b*g,b>=0&&b<=1&&i.push(new s(n,o));var S=(-x+Math.sqrt(w))/(2*y);n=a+S*f,o=h+S*g,S>=0&&S<=1&&i.push(new s(n,o))}}return i}},36100:(t,e,i)=>{var s=i(25836);t.exports=function(t,e,i,r){void 0===i&&(i=!1);var n,o,a,h=t.x1,l=t.y1,u=t.x2,c=t.y2,d=e.x1,p=e.y1,f=u-h,g=c-l,m=e.x2-d,v=e.y2-p,y=f*v-g*m;if(0===y)return null;if(i){if((o=(d+m*(n=(f*(p-l)+g*(h-d))/(m*g-v*f))-h)/f)<0||n<0||n>1)return null;a=o}else{if(o=((l-p)*f-(h-d)*g)/y,(n=((d-h)*v-(p-l)*m)/y)<0||n>1||o<0||o>1)return null;a=n}return void 0===r&&(r=new s),r.set(h+f*a,l+g*a,a)}},3073:(t,e,i)=>{var s=i(36100),r=i(23031),n=i(25836),o=new r,a=new n;t.exports=function(t,e,i,r){void 0===i&&(i=!1),void 0===r&&(r=new n);var h=!1;r.set(),a.set();for(var l=e[e.length-1],u=0;u{var s=i(25836),r=i(61369),n=i(3073),o=new s;t.exports=function(t,e,i,s){void 0===s&&(s=new r),Array.isArray(e)||(e=[e]);var a=!1;s.set(),o.set();for(var h=0;h{var s=i(2141),r=i(76112),n=i(92773);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e))for(var o=e.getLineA(),a=e.getLineB(),h=e.getLineC(),l=e.getLineD(),u=[new s,new s,new s,new s],c=[r(o,t,u[0]),r(a,t,u[1]),r(h,t,u[2]),r(l,t,u[3])],d=0;d<4;d++)c[d]&&i.push(u[d]);return i}},71147:(t,e,i)=>{var s=i(61369),r=i(56362),n=new(i(23031));function o(t,e,i,o,a){var h=Math.cos(t),l=Math.sin(t);n.setTo(e,i,e+h,i+l);var u=r(n,o,!0);u&&a.push(new s(u.x,u.y,t,u.w))}function a(t,e){return t.z-e.z}t.exports=function(t,e,i){Array.isArray(i)||(i=[i]);for(var s=[],r=[],n=0;n{var s=i(87841),r=i(59996);t.exports=function(t,e,i){return void 0===i&&(i=new s),r(t,e)&&(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y),i}},52784:(t,e,i)=>{var s=i(60646),r=i(59996);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e)){var n=t.getLineA(),o=t.getLineB(),a=t.getLineC(),h=t.getLineD();s(n,e,i),s(o,e,i),s(a,e,i),s(h,e,i)}return i}},26341:(t,e,i)=>{var s=i(89265),r=i(60646);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var n=e.getLineA(),o=e.getLineB(),a=e.getLineC();r(n,t,i),r(o,t,i),r(a,t,i)}return i}},38720:(t,e,i)=>{var s=i(4042),r=i(67636);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e)){var n=t.getLineA(),o=t.getLineB(),a=t.getLineC();s(n,e,i),s(o,e,i),s(a,e,i)}return i}},13882:(t,e,i)=>{var s=i(2141),r=i(2822),n=i(76112);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e))for(var o=t.getLineA(),a=t.getLineB(),h=t.getLineC(),l=[new s,new s,new s],u=[n(o,e,l[0]),n(a,e,l[1]),n(h,e,l[2])],c=0;c<3;c++)u[c]&&i.push(l[c]);return i}},75636:(t,e,i)=>{var s=i(82944),r=i(13882);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var n=e.getLineA(),o=e.getLineB(),a=e.getLineC();r(t,n,i),r(t,o,i),r(t,a,i)}return i}},80462:(t,e,i)=>{var s=i(87902),r=new(i(2141));t.exports=function(t,e,i){if(void 0===i&&(i=r),s(e,t.x1,t.y1))return i.x=t.x1,i.y=t.y1,!0;if(s(e,t.x2,t.y2))return i.x=t.x2,i.y=t.y2,!0;var n=t.x2-t.x1,o=t.y2-t.y1,a=e.x-t.x1,h=e.y-t.y1,l=n*n+o*o,u=n,c=o;if(l>0){var d=(a*n+h*o)/l;u*=d,c*=d}return i.x=t.x1+u,i.y=t.y1+c,u*u+c*c<=l&&u*n+c*o>=0&&s(e,i.x,i.y)}},76112:t=>{t.exports=function(t,e,i){var s=t.x1,r=t.y1,n=t.x2,o=t.y2,a=e.x1,h=e.y1,l=e.x2,u=e.y2;if(s===n&&r===o||a===l&&h===u)return!1;var c=(u-h)*(n-s)-(l-a)*(o-r);if(0===c)return!1;var d=((l-a)*(r-h)-(u-h)*(s-a))/c,p=((n-s)*(r-h)-(o-r)*(s-a))/c;return!(d<0||d>1||p<0||p>1||(i&&(i.x=s+d*(n-s),i.y=r+d*(o-r)),0))}},92773:t=>{t.exports=function(t,e){var i=t.x1,s=t.y1,r=t.x2,n=t.y2,o=e.x,a=e.y,h=e.right,l=e.bottom,u=0;if(i>=o&&i<=h&&s>=a&&s<=l||r>=o&&r<=h&&n>=a&&n<=l)return!0;if(i=o){if((u=s+(n-s)*(o-i)/(r-i))>a&&u<=l)return!0}else if(i>h&&r<=h&&(u=s+(n-s)*(h-i)/(r-i))>=a&&u<=l)return!0;if(s=a){if((u=i+(r-i)*(a-s)/(n-s))>=o&&u<=h)return!0}else if(s>l&&n<=l&&(u=i+(r-i)*(l-s)/(n-s))>=o&&u<=h)return!0;return!1}},16204:t=>{t.exports=function(t,e,i){void 0===i&&(i=1);var s=e.x1,r=e.y1,n=e.x2,o=e.y2,a=t.x,h=t.y,l=(n-s)*(n-s)+(o-r)*(o-r);if(0===l)return!1;var u=((a-s)*(n-s)+(h-r)*(o-r))/l;if(u<0)return Math.sqrt((s-a)*(s-a)+(r-h)*(r-h))<=i;if(u>=0&&u<=1){var c=((r-h)*(n-s)-(s-a)*(o-r))/l;return Math.abs(c)*Math.sqrt(l)<=i}return Math.sqrt((n-a)*(n-a)+(o-h)*(o-h))<=i}},14199:(t,e,i)=>{var s=i(16204);t.exports=function(t,e){if(!s(t,e))return!1;var i=Math.min(e.x1,e.x2),r=Math.max(e.x1,e.x2),n=Math.min(e.y1,e.y2),o=Math.max(e.y1,e.y2);return t.x>=i&&t.x<=r&&t.y>=n&&t.y<=o}},59996:t=>{t.exports=function(t,e){return!(t.width<=0||t.height<=0||e.width<=0||e.height<=0||t.righte.right||t.y>e.bottom)}},89265:(t,e,i)=>{var s=i(76112),r=i(37303),n=i(48653),o=i(77493);t.exports=function(t,e){if(e.left>t.right||e.rightt.bottom||e.bottom0}},84411:t=>{t.exports=function(t,e,i,s,r,n){return void 0===n&&(n=0),!(e>t.right+n||it.bottom+n||r{var s=i(80462),r=i(10690);t.exports=function(t,e){return!(t.left>e.right||t.righte.bottom||t.bottom{var s=i(76112);t.exports=function(t,e){return!!(t.contains(e.x1,e.y1)||t.contains(e.x2,e.y2)||s(t.getLineA(),e)||s(t.getLineB(),e)||s(t.getLineC(),e))}},82944:(t,e,i)=>{var s=i(48653),r=i(71694),n=i(76112);t.exports=function(t,e){if(t.left>e.right||t.righte.bottom||t.bottom0||(c=r(e),(d=s(t,c,!0)).length>0)}},91865:(t,e,i)=>{t.exports={CircleToCircle:i(2044),CircleToRectangle:i(81491),GetCircleToCircle:i(63376),GetCircleToRectangle:i(97439),GetLineToCircle:i(4042),GetLineToLine:i(36100),GetLineToPoints:i(3073),GetLineToPolygon:i(56362),GetLineToRectangle:i(60646),GetRaysFromPointToPolygon:i(71147),GetRectangleIntersection:i(68389),GetRectangleToRectangle:i(52784),GetRectangleToTriangle:i(26341),GetTriangleToCircle:i(38720),GetTriangleToLine:i(13882),GetTriangleToTriangle:i(75636),LineToCircle:i(80462),LineToLine:i(76112),LineToRectangle:i(92773),PointToLine:i(16204),PointToLineSegment:i(14199),RectangleToRectangle:i(59996),RectangleToTriangle:i(89265),RectangleToValues:i(84411),TriangleToCircle:i(67636),TriangleToLine:i(2822),TriangleToTriangle:i(82944)}},91938:t=>{t.exports=function(t){return Math.atan2(t.y2-t.y1,t.x2-t.x1)}},84993:t=>{t.exports=function(t,e,i){void 0===e&&(e=1),void 0===i&&(i=[]);var s=Math.round(t.x1),r=Math.round(t.y1),n=Math.round(t.x2),o=Math.round(t.y2),a=Math.abs(n-s),h=Math.abs(o-r),l=s-h&&(c-=h,s+=l),p{t.exports=function(t,e,i){var s=e-(t.x1+t.x2)/2,r=i-(t.y1+t.y2)/2;return t.x1+=s,t.y1+=r,t.x2+=s,t.y2+=r,t}},31116:(t,e,i)=>{var s=i(23031);t.exports=function(t){return new s(t.x1,t.y1,t.x2,t.y2)}},59944:t=>{t.exports=function(t,e){return e.setTo(t.x1,t.y1,t.x2,t.y2)}},59220:t=>{t.exports=function(t,e){return t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2}},78177:(t,e,i)=>{var s=i(35001);t.exports=function(t,e,i){void 0===i&&(i=e);var r=s(t),n=t.x2-t.x1,o=t.y2-t.y1;return e&&(t.x1=t.x1-n/r*e,t.y1=t.y1-o/r*e),i&&(t.x2=t.x2+n/r*i,t.y2=t.y2+o/r*i),t}},26708:(t,e,i)=>{var s=i(52816),r=i(6113),n=i(2141);t.exports=function(t,e,i,o,a){void 0===o&&(o=0),void 0===a&&(a=[]);var h,l,u=[],c=t.x1,d=t.y1,p=t.x2-c,f=t.y2-d,g=r(e,a),m=i-1;for(h=0;h0){var v=u[0],y=[v];for(h=1;h=o&&(y.push(x),v=x)}var w=u[u.length-1];return s(v,w){var s=i(2141);t.exports=function(t,e){return void 0===e&&(e=new s),e.x=(t.x1+t.x2)/2,e.y=(t.y1+t.y2)/2,e}},99569:(t,e,i)=>{var s=i(2141);t.exports=function(t,e,i){void 0===i&&(i=new s);var r=t.x1,n=t.y1,o=t.x2,a=t.y2,h=(o-r)*(o-r)+(a-n)*(a-n);if(0===h)return i;var l=((e.x-r)*(o-r)+(e.y-n)*(a-n))/h;return i.x=r+l*(o-r),i.y=n+l*(a-n),i}},34638:(t,e,i)=>{var s=i(36383),r=i(91938),n=i(2141);t.exports=function(t,e){void 0===e&&(e=new n);var i=r(t)-s.TAU;return e.x=Math.cos(i),e.y=Math.sin(i),e}},13151:(t,e,i)=>{var s=i(2141);t.exports=function(t,e,i){return void 0===i&&(i=new s),i.x=t.x1+(t.x2-t.x1)*e,i.y=t.y1+(t.y2-t.y1)*e,i}},15258:(t,e,i)=>{var s=i(35001),r=i(2141);t.exports=function(t,e,i,n){void 0===n&&(n=[]),!e&&i>0&&(e=s(t)/i);for(var o=t.x1,a=t.y1,h=t.x2,l=t.y2,u=0;u{t.exports=function(t,e){var i=t.x1,s=t.y1,r=t.x2,n=t.y2,o=(r-i)*(r-i)+(n-s)*(n-s);if(0===o)return!1;var a=((s-e.y)*(r-i)-(i-e.x)*(n-s))/o;return Math.abs(a)*Math.sqrt(o)}},98770:t=>{t.exports=function(t){return Math.abs(t.y1-t.y2)}},35001:t=>{t.exports=function(t){return Math.sqrt((t.x2-t.x1)*(t.x2-t.x1)+(t.y2-t.y1)*(t.y2-t.y1))}},23031:(t,e,i)=>{var s=i(83419),r=i(13151),n=i(15258),o=i(23777),a=i(65822),h=i(26099),l=new s({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),this.type=o.LINE,this.x1=t,this.y1=e,this.x2=i,this.y2=s},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return n(this,t,e,i)},getRandomPoint:function(t){return a(this,t)},setTo:function(t,e,i,s){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),this.x1=t,this.y1=e,this.x2=i,this.y2=s,this},setFromObjects:function(t,e){return this.x1=t.x,this.y1=t.y,this.x2=e.x,this.y2=e.y,this},getPointA:function(t){return void 0===t&&(t=new h),t.set(this.x1,this.y1),t},getPointB:function(t){return void 0===t&&(t=new h),t.set(this.x2,this.y2),t},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(t){this.x1<=this.x2?this.x1=t:this.x2=t}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(t){this.x1>this.x2?this.x1=t:this.x2=t}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(t){this.y1<=this.y2?this.y1=t:this.y2=t}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(t){this.y1>this.y2?this.y1=t:this.y2=t}}});t.exports=l},64795:(t,e,i)=>{var s=i(36383),r=i(15994),n=i(91938);t.exports=function(t){var e=n(t)-s.TAU;return r(e,-Math.PI,Math.PI)}},52616:(t,e,i)=>{var s=i(36383),r=i(91938);t.exports=function(t){return Math.cos(r(t)-s.TAU)}},87231:(t,e,i)=>{var s=i(36383),r=i(91938);t.exports=function(t){return Math.sin(r(t)-s.TAU)}},89662:t=>{t.exports=function(t,e,i){return t.x1+=e,t.y1+=i,t.x2+=e,t.y2+=i,t}},71165:t=>{t.exports=function(t){return-(t.x2-t.x1)/(t.y2-t.y1)}},65822:(t,e,i)=>{var s=i(2141);t.exports=function(t,e){void 0===e&&(e=new s);var i=Math.random();return e.x=t.x1+i*(t.x2-t.x1),e.y=t.y1+i*(t.y2-t.y1),e}},69777:(t,e,i)=>{var s=i(91938),r=i(64795);t.exports=function(t,e){return 2*r(e)-Math.PI-s(t)}},39706:(t,e,i)=>{var s=i(64400);t.exports=function(t,e){var i=(t.x1+t.x2)/2,r=(t.y1+t.y2)/2;return s(t,i,r,e)}},82585:(t,e,i)=>{var s=i(64400);t.exports=function(t,e,i){return s(t,e.x,e.y,i)}},64400:t=>{t.exports=function(t,e,i,s){var r=Math.cos(s),n=Math.sin(s),o=t.x1-e,a=t.y1-i;return t.x1=o*r-a*n+e,t.y1=o*n+a*r+i,o=t.x2-e,a=t.y2-i,t.x2=o*r-a*n+e,t.y2=o*n+a*r+i,t}},62377:t=>{t.exports=function(t,e,i,s,r){return t.x1=e,t.y1=i,t.x2=e+Math.cos(s)*r,t.y2=i+Math.sin(s)*r,t}},71366:t=>{t.exports=function(t){return(t.y2-t.y1)/(t.x2-t.x1)}},10809:t=>{t.exports=function(t){return Math.abs(t.x1-t.x2)}},2529:(t,e,i)=>{var s=i(23031);s.Angle=i(91938),s.BresenhamPoints=i(84993),s.CenterOn=i(36469),s.Clone=i(31116),s.CopyFrom=i(59944),s.Equals=i(59220),s.Extend=i(78177),s.GetEasedPoints=i(26708),s.GetMidPoint=i(32125),s.GetNearestPoint=i(99569),s.GetNormal=i(34638),s.GetPoint=i(13151),s.GetPoints=i(15258),s.GetShortestDistance=i(26408),s.Height=i(98770),s.Length=i(35001),s.NormalAngle=i(64795),s.NormalX=i(52616),s.NormalY=i(87231),s.Offset=i(89662),s.PerpSlope=i(71165),s.Random=i(65822),s.ReflectAngle=i(69777),s.Rotate=i(39706),s.RotateAroundPoint=i(82585),s.RotateAroundXY=i(64400),s.SetToAngle=i(62377),s.Slope=i(71366),s.Width=i(10809),t.exports=s},83997:(t,e,i)=>{var s=i(83419),r=i(87841),n=i(26099);function o(t,e,i,s){var r=t-i,n=e-s,o=r*r+n*n;return Math.sqrt(o)}var a=new s({initialize:function(t,e,i){this.vertex1=t,this.vertex2=e,this.vertex3=i,this.bounds=new r,this._inCenter=new n},getInCenter:function(t){void 0===t&&(t=!0);var e,i,s,r,n,a,h=this.vertex1,l=this.vertex2,u=this.vertex3;t?(e=h.x,i=h.y,s=l.x,r=l.y,n=u.x,a=u.y):(e=h.vx,i=h.vy,s=l.vx,r=l.vy,n=u.vx,a=u.vy);var c=o(n,a,s,r),d=o(e,i,n,a),p=o(s,r,e,i),f=c+d+p;return this._inCenter.set((e*c+s*d+n*p)/f,(i*c+r*d+a*p)/f)},contains:function(t,e,i){var s=this.vertex1,r=this.vertex2,n=this.vertex3,o=s.vx,a=s.vy,h=r.vx,l=r.vy,u=n.vx,c=n.vy;if(i){var d=i.a,p=i.b,f=i.c,g=i.d,m=i.e,v=i.f;o=s.vx*d+s.vy*f+m,a=s.vx*p+s.vy*g+v,h=r.vx*d+r.vy*f+m,l=r.vx*p+r.vy*g+v,u=n.vx*d+n.vy*f+m,c=n.vx*p+n.vy*g+v}var y=u-o,x=c-a,w=h-o,T=l-a,b=t-o,S=e-a,E=y*y+x*x,C=y*w+x*T,A=y*b+x*S,_=w*w+T*T,P=w*b+T*S,R=E*_-C*C,M=0===R?0:1/R,k=(_*A-C*P)*M,L=(E*P-C*A)*M;return k>=0&&L>=0&&k+L<1},isCounterClockwise:function(t){var e=this.vertex1,i=this.vertex2,s=this.vertex3,r=(i.vx-e.vx)*(s.vy-e.vy)-(i.vy-e.vy)*(s.vx-e.vx);return t<=0?r>=0:r<0},load:function(t,e,i,s,r){return i=this.vertex1.load(t,e,i,s,r),i=this.vertex2.load(t,e,i,s,r),i=this.vertex3.load(t,e,i,s,r)},transformCoordinatesLocal:function(t,e,i,s){return this.vertex1.transformCoordinatesLocal(t,e,i,s),this.vertex2.transformCoordinatesLocal(t,e,i,s),this.vertex3.transformCoordinatesLocal(t,e,i,s),this},updateBounds:function(){var t=this.vertex1,e=this.vertex2,i=this.vertex3,s=this.bounds;return s.x=Math.min(t.vx,e.vx,i.vx),s.y=Math.min(t.vy,e.vy,i.vy),s.width=Math.max(t.vx,e.vx,i.vx)-s.x,s.height=Math.max(t.vy,e.vy,i.vy)-s.y,this},isInView:function(t,e,i,s,r,n,o,a,h,l,u){this.update(s,r,n,o,a,h,l,u);var c=this.vertex1,d=this.vertex2,p=this.vertex3;if(c.ta<=0&&d.ta<=0&&p.ta<=0)return!1;if(e&&!this.isCounterClockwise(i))return!1;var f=this.bounds;f.x=Math.min(c.tx,d.tx,p.tx),f.y=Math.min(c.ty,d.ty,p.ty),f.width=Math.max(c.tx,d.tx,p.tx)-f.x,f.height=Math.max(c.ty,d.ty,p.ty)-f.y;var g=t.x+t.width,m=t.y+t.height;return!(f.width<=0||f.height<=0||t.width<=0||t.height<=0||f.rightg||f.y>m)},scrollUV:function(t,e){return this.vertex1.scrollUV(t,e),this.vertex2.scrollUV(t,e),this.vertex3.scrollUV(t,e),this},scaleUV:function(t,e){return this.vertex1.scaleUV(t,e),this.vertex2.scaleUV(t,e),this.vertex3.scaleUV(t,e),this},setColor:function(t){return this.vertex1.color=t,this.vertex2.color=t,this.vertex3.color=t,this},update:function(t,e,i,s,r,n,o,a){return this.vertex1.update(e,i,s,r,n,o,a,t),this.vertex2.update(e,i,s,r,n,o,a,t),this.vertex3.update(e,i,s,r,n,o,a,t),this},translate:function(t,e){void 0===e&&(e=0);var i=this.vertex1,s=this.vertex2,r=this.vertex3;return i.x+=t,i.y+=e,s.x+=t,s.y+=e,r.x+=t,r.y+=e,this},x:{get:function(){return this.getInCenter().x},set:function(t){var e=this.getInCenter();this.translate(t-e.x,0)}},y:{get:function(){return this.getInCenter().y},set:function(t){var e=this.getInCenter();this.translate(0,t-e.y)}},alpha:{get:function(){var t=this.vertex1,e=this.vertex2,i=this.vertex3;return(t.alpha+e.alpha+i.alpha)/3},set:function(t){this.vertex1.alpha=t,this.vertex2.alpha=t,this.vertex3.alpha=t}},depth:{get:function(){var t=this.vertex1,e=this.vertex2,i=this.vertex3;return(t.vz+e.vz+i.vz)/3}},destroy:function(){this.vertex1=null,this.vertex2=null,this.vertex3=null}});t.exports=a},48803:(t,e,i)=>{var s=i(83997),r=i(95540),n=i(37867),o=i(25836),a=i(39318),h=new o,l=new o,u=new n;t.exports=function(t){var e,i=r(t,"mesh"),n=r(t,"texture",null),o=r(t,"frame"),c=r(t,"width",1),d=r(t,"height",c),p=r(t,"widthSegments",1),f=r(t,"heightSegments",p),g=r(t,"x",0),m=r(t,"y",0),v=r(t,"z",0),y=r(t,"rotateX",0),x=r(t,"rotateY",0),w=r(t,"rotateZ",0),T=r(t,"zIsUp",!0),b=r(t,"isOrtho",!!i&&i.dirtyCache[11]),S=r(t,"colors",[16777215]),E=r(t,"alphas",[1]),C=r(t,"tile",!1),A=r(t,"flipY",!1),_=r(t,"width",null),P={faces:[],verts:[]};if(h.set(g,m,v),l.set(y,x,w),u.fromRotationXYTranslation(l,h,T),!n&&i)n=i.texture,o||(e=i.frame);else if(i&&"string"==typeof n)n=i.scene.sys.textures.get(n);else if(!n)return P;e||(e=n.get(o)),!_&&b&&n&&i&&(c=e.width/i.height,d=e.height/i.height);var R,M,k=c/2,L=d/2,O=Math.floor(p),F=Math.floor(f),D=O+1,I=F+1,B=c/O,N=d/F,U=[],Y=[],z=0,X=1,G=0,W=1;e&&(z=e.u0,X=e.u1,A?(G=e.v1,W=e.v0):(G=e.v0,W=e.v1));var V=X-z,H=W-G;for(M=0;M{var s=i(83997),r=i(37867),n=i(25836),o=i(39318),a=new n,h=new n,l=new r;t.exports=function(t,e,i,r,n,u,c,d,p,f){void 0===i&&(i=1),void 0===r&&(r=0),void 0===n&&(n=0),void 0===u&&(u=0),void 0===c&&(c=0),void 0===d&&(d=0),void 0===p&&(p=0),void 0===f&&(f=!0);var g={faces:[],verts:[]},m=t.materials;a.set(r,n,u),h.set(c,d,p),l.fromRotationXYTranslation(h,a,f);for(var v=0;v{var s=i(83997),r=i(39318);t.exports=function(t,e,i,n,o,a,h,l){if(void 0===n&&(n=!1),void 0===a&&(a=16777215),void 0===h&&(h=1),void 0===l&&(l=!1),t.length===e.length||n){var u,c,d,p,f,g,m,v,y,x,w,T={faces:[],vertices:[]},b=n?3:2,S=Array.isArray(a),E=Array.isArray(h);if(Array.isArray(i)&&i.length>0)for(u=0;u{var e=!0,i="untitled",s="",r="";function n(t){var e=t.indexOf("#");return e>-1?t.substring(0,e):t}function o(t){return 0===t.models.length&&t.models.push({faces:[],name:i,textureCoords:[],vertexNormals:[],vertices:[]}),s="",t.models[t.models.length-1]}function a(t,e){var r=t.length>=2?t[1]:i;e.models.push({faces:[],name:r,textureCoords:[],vertexNormals:[],vertices:[]}),s=""}function h(t){2===t.length&&(s=t[1])}function l(t,e){var i=t.length,s=i>=2?parseFloat(t[1]):0,r=i>=3?parseFloat(t[2]):0,n=i>=4?parseFloat(t[3]):0;o(e).vertices.push({x:s,y:r,z:n})}function u(t,i){var s=t.length,r=s>=2?parseFloat(t[1]):0,n=s>=3?parseFloat(t[2]):0,a=s>=4?parseFloat(t[3]):0;isNaN(r)&&(r=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),e&&(n=1-n),o(i).textureCoords.push({u:r,v:n,w:a})}function c(t,e){var i=t.length,s=i>=2?parseFloat(t[1]):0,r=i>=3?parseFloat(t[2]):0,n=i>=4?parseFloat(t[3]):0;o(e).vertexNormals.push({x:s,y:r,z:n})}function d(t,e){var i=t.length-1;if(!(i<3)){for(var n={group:s,material:r,vertices:[]},a=0;a3)){var u=0,c=0,d=0;u=parseInt(h[0],10),l>1&&""!==h[1]&&(c=parseInt(h[1],10)),l>2&&(d=parseInt(h[2],10)),0!==u&&(u<0&&(u=o(e).vertices.length+1+u),c-=1,u-=1,d-=1,n.vertices.push({textureCoordsIndex:c,vertexIndex:u,vertexNormalIndex:d}))}}o(e).faces.push(n)}}function p(t,e){t.length>=2&&e.materialLibraries.push(t[1])}function f(t){t.length>=2&&(r=t[1])}t.exports=function(t,i){void 0===i&&(i=!0),e=i;var o={materials:{},materialLibraries:[],models:[]};s="",r="";for(var g=t.split("\n"),m=0;m{var s=i(37589);t.exports=function(t){for(var e={},i=t.split("\n"),r="",n=0;n=2?Math.floor(255*a[2]):h,u=a.length>=3?Math.floor(255*a[3]):h;e[r]=s(h,l,u)}}}return e}},92570:t=>{t.exports=function(t,e,i,s){var r,n;if(void 0===i&&void 0===s){var o=t.getInCenter();r=o.x,n=o.y}var a=Math.cos(e),h=Math.sin(e),l=t.vertex1,u=t.vertex2,c=t.vertex3,d=l.x-r,p=l.y-n;l.set(d*a-p*h+r,d*h+p*a+n),d=u.x-r,p=u.y-n,u.set(d*a-p*h+r,d*h+p*a+n),d=c.x-r,p=c.y-n,c.set(d*a-p*h+r,d*h+p*a+n)}},39318:(t,e,i)=>{var s=i(83419),r=i(70554),n=i(25836),o=new s({Extends:n,initialize:function(t,e,i,s,r,o,a,h,l,u){void 0===o&&(o=16777215),void 0===a&&(a=1),void 0===h&&(h=0),void 0===l&&(l=0),void 0===u&&(u=0),n.call(this,t,e,i),this.vx=0,this.vy=0,this.vz=0,this.nx=h,this.ny=l,this.nz=u,this.u=s,this.v=r,this.color=o,this.alpha=a,this.tx=0,this.ty=0,this.ta=0,this.tu=s,this.tv=r},setUVs:function(t,e){return this.u=t,this.v=e,this.tu=t,this.tv=e,this},scrollUV:function(t,e){return this.tu+=t,this.tv+=e,this},scaleUV:function(t,e){return this.tu=this.u*t,this.tv=this.v*e,this},transformCoordinatesLocal:function(t,e,i,s){var r=this.x,n=this.y,o=this.z,a=t.val,h=r*a[0]+n*a[4]+o*a[8]+a[12],l=r*a[1]+n*a[5]+o*a[9]+a[13],u=r*a[2]+n*a[6]+o*a[10]+a[14],c=r*a[3]+n*a[7]+o*a[11]+a[15];this.vx=h/c*e,this.vy=-l/c*i,this.vz=s<=0?u/c:-u/c},resize:function(t,e,i,s,r,n){return this.x=t,this.y=e,this.vx=this.x*i,this.vy=-this.y*s,this.vz=0,r<.5?this.vx+=i*(.5-r):r>.5&&(this.vx-=i*(r-.5)),n<.5?this.vy+=s*(.5-n):n>.5&&(this.vy-=s*(n-.5)),this},update:function(t,e,i,s,r,n,o,a){var h=this.vx*t+this.vy*i+r,l=this.vx*e+this.vy*s+n;return o&&(h=Math.round(h),l=Math.round(l)),this.tx=h,this.ty=l,this.ta=this.alpha*a,this},load:function(t,e,i,s,n){return t[++i]=this.tx,t[++i]=this.ty,t[++i]=this.tu,t[++i]=this.tv,t[++i]=s,t[++i]=n,e[++i]=r.getTintAppendFloatAlpha(this.color,this.ta),i}});t.exports=o},73090:(t,e,i)=>{var s={Face:i(83997),GenerateGridVerts:i(48803),GenerateObjVerts:i(34684),GenerateVerts:i(92515),ParseObj:i(85048),ParseObjMaterial:i(61485),RotateFace:i(92570),Vertex:i(39318)};t.exports=s},96550:t=>{t.exports=function(t){return t.setTo(Math.ceil(t.x),Math.ceil(t.y))}},99706:(t,e,i)=>{var s=i(2141);t.exports=function(t){return new s(t.x,t.y)}},68010:t=>{t.exports=function(t,e){return e.setTo(t.x,t.y)}},27814:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y}},73565:t=>{t.exports=function(t){return t.setTo(Math.floor(t.x),Math.floor(t.y))}},87555:(t,e,i)=>{var s=i(2141);t.exports=function(t,e){if(void 0===e&&(e=new s),!Array.isArray(t))throw new Error("GetCentroid points argument must be an array");var i=t.length;if(i<1)throw new Error("GetCentroid points array must not be empty");if(1===i)e.x=t[0].x,e.y=t[0].y;else{for(var r=0;r{t.exports=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)}},44405:t=>{t.exports=function(t){return t.x*t.x+t.y*t.y}},20873:(t,e,i)=>{var s=i(87841);t.exports=function(t,e){void 0===e&&(e=new s);for(var i=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY,a=0;ai&&(i=h.x),h.xn&&(n=h.y),h.y{var s=i(2141);t.exports=function(t,e,i,r){return void 0===i&&(i=0),void 0===r&&(r=new s),r.x=t.x+(e.x-t.x)*i,r.y=t.y+(e.y-t.y)*i,r}},55767:t=>{t.exports=function(t){return t.setTo(t.y,t.x)}},79432:(t,e,i)=>{var s=i(2141);t.exports=function(t,e){return void 0===e&&(e=new s),e.setTo(-t.x,-t.y)}},2141:(t,e,i)=>{var s=i(83419),r=i(23777),n=new s({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.type=r.POINT,this.x=t,this.y=e},setTo:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this}});t.exports=n},72930:(t,e,i)=>{var s=i(2141),r=i(44405);t.exports=function(t,e,i){void 0===i&&(i=new s);var n=(t.x*e.x+t.y*e.y)/r(e);return 0!==n&&(i.x=n*e.x,i.y=n*e.y),i}},62880:(t,e,i)=>{var s=i(2141);t.exports=function(t,e,i){void 0===i&&(i=new s);var r=t.x*e.x+t.y*e.y;return 0!==r&&(i.x=r*e.x,i.y=r*e.y),i}},15093:(t,e,i)=>{var s=i(28793);t.exports=function(t,e){if(0!==t.x||0!==t.y){var i=s(t);t.x/=i,t.y/=i}return t.x*=e,t.y*=e,t}},43711:(t,e,i)=>{var s=i(2141);s.Ceil=i(96550),s.Clone=i(99706),s.CopyFrom=i(68010),s.Equals=i(27814),s.Floor=i(73565),s.GetCentroid=i(87555),s.GetMagnitude=i(28793),s.GetMagnitudeSq=i(44405),s.GetRectangleFromPoints=i(20873),s.Interpolate=i(26152),s.Invert=i(55767),s.Negative=i(79432),s.Project=i(72930),s.ProjectUnit=i(62880),s.SetMagnitude=i(15093),t.exports=s},12306:(t,e,i)=>{var s=i(25717);t.exports=function(t){return new s(t.points)}},63814:t=>{t.exports=function(t,e,i){for(var s=!1,r=-1,n=t.points.length-1;++r{var s=i(63814);t.exports=function(t,e){return s(t,e.x,e.y)}},94811:t=>{function e(t,e,s){s=s||2;var n,o,a,h,c,d,f,g=e&&e.length,m=g?e[0]*s:t.length,v=i(t,0,m,s,!0),y=[];if(!v||v.next===v.prev)return y;if(g&&(v=function(t,e,s,r){var n,o,a,h=[];for(n=0,o=e.length;n80*s){n=a=t[0],o=h=t[1];for(var x=s;xa&&(a=c),d>h&&(h=d);f=0!==(f=Math.max(a-n,h-o))?32767/f:0}return r(v,y,s,n,o,f,0),y}function i(t,e,i,s,r){var n,o;if(r===A(t,e,i,s)>0)for(n=e;n=e;n-=s)o=S(n,t[n],t[n+1],o);return o&&v(o,o.next)&&(E(o),o=o.next),o}function s(t,e){if(!t)return t;e||(e=t);var i,s=t;do{if(i=!1,s.steiner||!v(s,s.next)&&0!==m(s.prev,s,s.next))s=s.next;else{if(E(s),(s=e=s.prev)===s.next)break;i=!0}}while(i||s!==e);return e}function r(t,e,i,l,u,c,p){if(t){!p&&c&&function(t,e,i,s){var r=t;do{0===r.z&&(r.z=d(r.x,r.y,e,i,s)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,i,s,r,n,o,a,h,l=1;do{for(i=t,t=null,n=null,o=0;i;){for(o++,s=i,a=0,e=0;e0||h>0&&s;)0!==a&&(0===h||!s||i.z<=s.z)?(r=i,i=i.nextZ,a--):(r=s,s=s.nextZ,h--),n?n.nextZ=r:t=r,r.prevZ=n,n=r;i=s}n.nextZ=null,l*=2}while(o>1)}(r)}(t,l,u,c);for(var f,g,m=t;t.prev!==t.next;)if(f=t.prev,g=t.next,c?o(t,l,u,c):n(t))e.push(f.i/i|0),e.push(t.i/i|0),e.push(g.i/i|0),E(t),t=g.next,m=g.next;else if((t=g)===m){p?1===p?r(t=a(s(t),e,i),e,i,l,u,c,2):2===p&&h(t,e,i,l,u,c):r(s(t),e,i,l,u,c,1);break}}}function n(t){var e=t.prev,i=t,s=t.next;if(m(e,i,s)>=0)return!1;for(var r=e.x,n=i.x,o=s.x,a=e.y,h=i.y,l=s.y,u=rn?r>o?r:o:n>o?n:o,p=a>h?a>l?a:l:h>l?h:l,g=s.next;g!==e;){if(g.x>=u&&g.x<=d&&g.y>=c&&g.y<=p&&f(r,a,n,h,o,l,g.x,g.y)&&m(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function o(t,e,i,s){var r=t.prev,n=t,o=t.next;if(m(r,n,o)>=0)return!1;for(var a=r.x,h=n.x,l=o.x,u=r.y,c=n.y,p=o.y,g=ah?a>l?a:l:h>l?h:l,x=u>c?u>p?u:p:c>p?c:p,w=d(g,v,e,i,s),T=d(y,x,e,i,s),b=t.prevZ,S=t.nextZ;b&&b.z>=w&&S&&S.z<=T;){if(b.x>=g&&b.x<=y&&b.y>=v&&b.y<=x&&b!==r&&b!==o&&f(a,u,h,c,l,p,b.x,b.y)&&m(b.prev,b,b.next)>=0)return!1;if(b=b.prevZ,S.x>=g&&S.x<=y&&S.y>=v&&S.y<=x&&S!==r&&S!==o&&f(a,u,h,c,l,p,S.x,S.y)&&m(S.prev,S,S.next)>=0)return!1;S=S.nextZ}for(;b&&b.z>=w;){if(b.x>=g&&b.x<=y&&b.y>=v&&b.y<=x&&b!==r&&b!==o&&f(a,u,h,c,l,p,b.x,b.y)&&m(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;S&&S.z<=T;){if(S.x>=g&&S.x<=y&&S.y>=v&&S.y<=x&&S!==r&&S!==o&&f(a,u,h,c,l,p,S.x,S.y)&&m(S.prev,S,S.next)>=0)return!1;S=S.nextZ}return!0}function a(t,e,i){var r=t;do{var n=r.prev,o=r.next.next;!v(n,o)&&y(n,r,r.next,o)&&T(n,o)&&T(o,n)&&(e.push(n.i/i|0),e.push(r.i/i|0),e.push(o.i/i|0),E(r),E(r.next),r=t=o),r=r.next}while(r!==t);return s(r)}function h(t,e,i,n,o,a){var h=t;do{for(var l=h.next.next;l!==h.prev;){if(h.i!==l.i&&g(h,l)){var u=b(h,l);return h=s(h,h.next),u=s(u,u.next),r(h,e,i,n,o,a,0),void r(u,e,i,n,o,a,0)}l=l.next}h=h.next}while(h!==t)}function l(t,e){return t.x-e.x}function u(t,e){var i=function(t,e){var i,s=e,r=t.x,n=t.y,o=-1/0;do{if(n<=s.y&&n>=s.next.y&&s.next.y!==s.y){var a=s.x+(n-s.y)*(s.next.x-s.x)/(s.next.y-s.y);if(a<=r&&a>o&&(o=a,i=s.x=s.x&&s.x>=u&&r!==s.x&&f(ni.x||s.x===i.x&&c(i,s)))&&(i=s,p=h)),s=s.next}while(s!==l);return i}(t,e);if(!i)return e;var r=b(i,t);return s(r,r.next),s(i,i.next)}function c(t,e){return m(t.prev,t,e.prev)<0&&m(e.next,t,t.next)<0}function d(t,e,i,s,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-i)*r|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-s)*r|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function p(t){var e=t,i=t;do{(e.x=(t-o)*(n-a)&&(t-o)*(s-a)>=(i-o)*(e-a)&&(i-o)*(n-a)>=(r-o)*(s-a)}function g(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&y(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&(T(t,e)&&T(e,t)&&function(t,e){var i=t,s=!1,r=(t.x+e.x)/2,n=(t.y+e.y)/2;do{i.y>n!=i.next.y>n&&i.next.y!==i.y&&r<(i.next.x-i.x)*(n-i.y)/(i.next.y-i.y)+i.x&&(s=!s),i=i.next}while(i!==t);return s}(t,e)&&(m(t.prev,t,e.prev)||m(t,e.prev,e))||v(t,e)&&m(t.prev,t,t.next)>0&&m(e.prev,e,e.next)>0)}function m(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function v(t,e){return t.x===e.x&&t.y===e.y}function y(t,e,i,s){var r=w(m(t,e,i)),n=w(m(t,e,s)),o=w(m(i,s,t)),a=w(m(i,s,e));return r!==n&&o!==a||!(0!==r||!x(t,i,e))||!(0!==n||!x(t,s,e))||!(0!==o||!x(i,t,s))||!(0!==a||!x(i,e,s))}function x(t,e,i){return e.x<=Math.max(t.x,i.x)&&e.x>=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)}function w(t){return t>0?1:t<0?-1:0}function T(t,e){return m(t.prev,t,t.next)<0?m(t,e,t.next)>=0&&m(t,t.prev,e)>=0:m(t,e,t.prev)<0||m(t,t.next,e)<0}function b(t,e){var i=new C(t.i,t.x,t.y),s=new C(e.i,e.x,e.y),r=t.next,n=e.prev;return t.next=e,e.prev=t,i.next=r,r.prev=i,s.next=i,i.prev=s,n.next=s,s.prev=n,s}function S(t,e,i,s){var r=new C(t,e,i);return s?(r.next=s.next,r.prev=s,s.next.prev=r,s.next=r):(r.prev=r,r.next=r),r}function E(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function C(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function A(t,e,i,s){for(var r=0,n=e,o=i-s;n0&&(s+=t[r-1].length,i.holes.push(s))}return i},t.exports=e},13829:(t,e,i)=>{var s=i(87841);t.exports=function(t,e){void 0===e&&(e=new s);for(var i,r=1/0,n=1/0,o=-r,a=-n,h=0;h{t.exports=function(t,e){void 0===e&&(e=[]);for(var i=0;i{var s=i(35001),r=i(23031),n=i(30052);t.exports=function(t,e,i,o){void 0===o&&(o=[]);var a=t.points,h=n(t);!e&&i>0&&(e=h/i);for(var l=0;lc+m)){var v=g.getPoint((u-c)/m);o.push(v);break}c+=m}return o}},30052:(t,e,i)=>{var s=i(35001),r=i(23031);t.exports=function(t){for(var e=t.points,i=0,n=0;n{var s=i(83419),r=i(63814),n=i(9564),o=i(23777),a=new s({initialize:function(t){this.type=o.POLYGON,this.area=0,this.points=[],t&&this.setTo(t)},contains:function(t,e){return r(this,t,e)},setTo:function(t){if(this.area=0,this.points=[],"string"==typeof t&&(t=t.split(" ")),!Array.isArray(t))return this;for(var e,i=0;i{t.exports=function(t){return t.points.reverse(),t}},29524:t=>{function e(t,e,i){var s=e.x,r=e.y,n=i.x-s,o=i.y-r;if(0!==n||0!==o){var a=((t.x-s)*n+(t.y-r)*o)/(n*n+o*o);a>1?(s=i.x,r=i.y):a>0&&(s+=n*a,r+=o*a)}return(n=t.x-s)*n+(o=t.y-r)*o}function i(t,s,r,n,o){for(var a,h=n,l=s+1;lh&&(a=l,h=u)}h>n&&(a-s>1&&i(t,s,a,n,o),o.push(t[a]),r-a>1&&i(t,a,r,n,o))}function s(t,e){var s=t.length-1,r=[t[0]];return i(t,0,s,e,r),r.push(t[s]),r}t.exports=function(t,e,i){void 0===e&&(e=1),void 0===i&&(i=!1);var r=t.points;if(r.length>2){var n=e*e;i||(r=function(t,e){for(var i,s,r,n,o,a=t[0],h=[a],l=1,u=t.length;le&&(h.push(i),a=i);return a!==i&&h.push(i),h}(r,n)),t.setTo(s(r,n))}return t}},5469:t=>{var e=function(t,e){return t[0]=e[0],t[1]=e[1],t};t.exports=function(t){var i,s=[],r=t.points;for(i=0;i0&&n.push(e([0,0],s[0])),i=0;i1&&n.push(e([0,0],s[s.length-1])),t.setTo(n)}},24709:t=>{t.exports=function(t,e,i){for(var s=t.points,r=0;r{var s=i(25717);s.Clone=i(12306),s.Contains=i(63814),s.ContainsPoint=i(99338),s.Earcut=i(94811),s.GetAABB=i(13829),s.GetNumberArray=i(26173),s.GetPoints=i(9564),s.Perimeter=i(30052),s.Reverse=i(8133),s.Simplify=i(29524),s.Smooth=i(5469),s.Translate=i(24709),t.exports=s},62224:t=>{t.exports=function(t){return t.width*t.height}},98615:t=>{t.exports=function(t){return t.x=Math.ceil(t.x),t.y=Math.ceil(t.y),t}},31688:t=>{t.exports=function(t){return t.x=Math.ceil(t.x),t.y=Math.ceil(t.y),t.width=Math.ceil(t.width),t.height=Math.ceil(t.height),t}},67502:t=>{t.exports=function(t,e,i){return t.x=e-t.width/2,t.y=i-t.height/2,t}},65085:(t,e,i)=>{var s=i(87841);t.exports=function(t){return new s(t.x,t.y,t.width,t.height)}},37303:t=>{t.exports=function(t,e,i){return!(t.width<=0||t.height<=0)&&t.x<=e&&t.x+t.width>=e&&t.y<=i&&t.y+t.height>=i}},96553:(t,e,i)=>{var s=i(37303);t.exports=function(t,e){return s(t,e.x,e.y)}},70273:t=>{t.exports=function(t,e){return!(e.width*e.height>t.width*t.height)&&e.x>t.x&&e.xt.x&&e.rightt.y&&e.yt.y&&e.bottom{t.exports=function(t,e){return e.setTo(t.x,t.y,t.width,t.height)}},77493:t=>{t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x,y:t.y}),e.push({x:t.right,y:t.y}),e.push({x:t.right,y:t.bottom}),e.push({x:t.x,y:t.bottom}),e}},9219:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}},53751:(t,e,i)=>{var s=i(8249);t.exports=function(t,e){var i=s(t);return i{var s=i(8249);t.exports=function(t,e){var i=s(t);return i>s(e)?t.setSize(e.height*i,e.height):t.setSize(e.width,e.width/i),t.setPosition(e.centerX-t.width/2,e.centerY-t.height/2)}},80774:t=>{t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t}},83859:t=>{t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t.width=Math.floor(t.width),t.height=Math.floor(t.height),t}},19217:(t,e,i)=>{var s=i(87841),r=i(36383);t.exports=function(t,e){if(void 0===e&&(e=new s),0===t.length)return e;for(var i,n,o,a=Number.MAX_VALUE,h=Number.MAX_VALUE,l=r.MIN_SAFE_INTEGER,u=r.MIN_SAFE_INTEGER,c=0;c{var s=i(87841);t.exports=function(t,e,i,r,n){return void 0===n&&(n=new s),n.setTo(Math.min(t,i),Math.min(e,r),Math.abs(t-i),Math.abs(e-r))}},8249:t=>{t.exports=function(t){return 0===t.height?NaN:t.width/t.height}},27165:(t,e,i)=>{var s=i(2141);t.exports=function(t,e){return void 0===e&&(e=new s),e.x=t.centerX,e.y=t.centerY,e}},20812:(t,e,i)=>{var s=i(13019),r=i(2141);t.exports=function(t,e,i){if(void 0===i&&(i=new r),e<=0||e>=1)return i.x=t.x,i.y=t.y,i;var n=s(t)*e;return e>.5?(n-=t.width+t.height)<=t.width?(i.x=t.right-n,i.y=t.bottom):(i.x=t.x,i.y=t.bottom-(n-t.width)):n<=t.width?(i.x=t.x+n,i.y=t.y):(i.x=t.right,i.y=t.y+(n-t.width)),i}},34819:(t,e,i)=>{var s=i(20812),r=i(13019);t.exports=function(t,e,i,n){void 0===n&&(n=[]),!e&&i>0&&(e=r(t)/i);for(var o=0;o{var s=i(2141);t.exports=function(t,e){return void 0===e&&(e=new s),e.x=t.width,e.y=t.height,e}},86091:(t,e,i)=>{var s=i(67502);t.exports=function(t,e,i){var r=t.centerX,n=t.centerY;return t.setSize(t.width+2*e,t.height+2*i),s(t,r,n)}},53951:(t,e,i)=>{var s=i(87841),r=i(59996);t.exports=function(t,e,i){return void 0===i&&(i=new s),r(t,e)?(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y):i.setEmpty(),i}},14649:(t,e,i)=>{var s=i(13019),r=i(2141);t.exports=function(t,e,i,n){if(void 0===n&&(n=[]),!e&&!i)return n;e?i=Math.round(s(t)/e):e=s(t)/i;for(var o=t.x,a=t.y,h=0,l=0;l=t.right&&(h=1,a+=o-t.right,o=t.right);break;case 1:(a+=e)>=t.bottom&&(h=2,o-=a-t.bottom,a=t.bottom);break;case 2:(o-=e)<=t.left&&(h=3,a-=t.left-o,o=t.left);break;case 3:(a-=e)<=t.top&&(h=0,a=t.top)}return n}},33595:t=>{t.exports=function(t,e){for(var i=t.x,s=t.right,r=t.y,n=t.bottom,o=0;o{t.exports=function(t,e){var i=Math.min(t.x,e.x),s=Math.max(t.right,e.right);t.x=i,t.width=s-i;var r=Math.min(t.y,e.y),n=Math.max(t.bottom,e.bottom);return t.y=r,t.height=n-r,t}},92171:t=>{t.exports=function(t,e,i){var s=Math.min(t.x,e),r=Math.max(t.right,e);t.x=s,t.width=r-s;var n=Math.min(t.y,i),o=Math.max(t.bottom,i);return t.y=n,t.height=o-n,t}},42981:t=>{t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},46907:t=>{t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},60170:t=>{t.exports=function(t,e){return t.xe.x&&t.ye.y}},13019:t=>{t.exports=function(t){return 2*(t.width+t.height)}},85133:(t,e,i)=>{var s=i(2141),r=i(39506);t.exports=function(t,e,i){void 0===i&&(i=new s),e=r(e);var n=Math.sin(e),o=Math.cos(e),a=o>0?t.width/2:t.width/-2,h=n>0?t.height/2:t.height/-2;return Math.abs(a*n){var s=i(2141);t.exports=function(t,e){return void 0===e&&(e=new s),e.x=t.x+Math.random()*t.width,e.y=t.y+Math.random()*t.height,e}},86470:(t,e,i)=>{var s=i(30976),r=i(70273),n=i(2141);t.exports=function(t,e,i){if(void 0===i&&(i=new n),r(t,e))switch(s(0,3)){case 0:i.x=t.x+Math.random()*(e.right-t.x),i.y=t.y+Math.random()*(e.top-t.y);break;case 1:i.x=e.x+Math.random()*(t.right-e.x),i.y=e.bottom+Math.random()*(t.bottom-e.bottom);break;case 2:i.x=t.x+Math.random()*(e.x-t.x),i.y=e.y+Math.random()*(t.bottom-e.y);break;case 3:i.x=e.right+Math.random()*(t.right-e.right),i.y=t.y+Math.random()*(e.bottom-t.y)}return i}},87841:(t,e,i)=>{var s=i(83419),r=i(37303),n=i(20812),o=i(34819),a=i(23777),h=i(23031),l=i(26597),u=new s({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),this.type=a.RECTANGLE,this.x=t,this.y=e,this.width=i,this.height=s},contains:function(t,e){return r(this,t,e)},getPoint:function(t,e){return n(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return l(this,t)},setTo:function(t,e,i,s){return this.x=t,this.y=e,this.width=i,this.height=s,this},setEmpty:function(){return this.setTo(0,0,0,0)},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},isEmpty:function(){return this.width<=0||this.height<=0},getLineA:function(t){return void 0===t&&(t=new h),t.setTo(this.x,this.y,this.right,this.y),t},getLineB:function(t){return void 0===t&&(t=new h),t.setTo(this.right,this.y,this.right,this.bottom),t},getLineC:function(t){return void 0===t&&(t=new h),t.setTo(this.right,this.bottom,this.x,this.bottom),t},getLineD:function(t){return void 0===t&&(t=new h),t.setTo(this.x,this.bottom,this.x,this.y),t},left:{get:function(){return this.x},set:function(t){t>=this.right?this.width=0:this.width=this.right-t,this.x=t}},right:{get:function(){return this.x+this.width},set:function(t){t<=this.x?this.width=0:this.width=t-this.x}},top:{get:function(){return this.y},set:function(t){t>=this.bottom?this.height=0:this.height=this.bottom-t,this.y=t}},bottom:{get:function(){return this.y+this.height},set:function(t){t<=this.y?this.height=0:this.height=t-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=u},94845:t=>{t.exports=function(t,e){return t.width===e.width&&t.height===e.height}},31730:t=>{t.exports=function(t,e,i){return void 0===i&&(i=e),t.width*=e,t.height*=i,t}},36899:(t,e,i)=>{var s=i(87841);t.exports=function(t,e,i){void 0===i&&(i=new s);var r=Math.min(t.x,e.x),n=Math.min(t.y,e.y),o=Math.max(t.right,e.right)-r,a=Math.max(t.bottom,e.bottom)-n;return i.setTo(r,n,o,a)}},93232:(t,e,i)=>{var s=i(87841);s.Area=i(62224),s.Ceil=i(98615),s.CeilAll=i(31688),s.CenterOn=i(67502),s.Clone=i(65085),s.Contains=i(37303),s.ContainsPoint=i(96553),s.ContainsRect=i(70273),s.CopyFrom=i(43459),s.Decompose=i(77493),s.Equals=i(9219),s.FitInside=i(53751),s.FitOutside=i(16088),s.Floor=i(80774),s.FloorAll=i(83859),s.FromPoints=i(19217),s.FromXY=i(9477),s.GetAspectRatio=i(8249),s.GetCenter=i(27165),s.GetPoint=i(20812),s.GetPoints=i(34819),s.GetSize=i(51313),s.Inflate=i(86091),s.Intersection=i(53951),s.MarchingAnts=i(14649),s.MergePoints=i(33595),s.MergeRect=i(20074),s.MergeXY=i(92171),s.Offset=i(42981),s.OffsetPoint=i(46907),s.Overlaps=i(60170),s.Perimeter=i(13019),s.PerimeterPoint=i(85133),s.Random=i(26597),s.RandomOutside=i(86470),s.SameDimensions=i(94845),s.Scale=i(31730),s.Union=i(36899),t.exports=s},41658:t=>{t.exports=function(t){var e=t.x1,i=t.y1,s=t.x2,r=t.y2,n=t.x3,o=t.y3;return Math.abs(((n-e)*(r-i)-(s-e)*(o-i))/2)}},39208:(t,e,i)=>{var s=i(16483);t.exports=function(t,e,i){var r=i*(Math.sqrt(3)/2);return new s(t,e,t+i/2,e+r,t-i/2,e+r)}},39545:(t,e,i)=>{var s=i(94811),r=i(16483);t.exports=function(t,e,i,n,o){void 0===e&&(e=null),void 0===i&&(i=1),void 0===n&&(n=1),void 0===o&&(o=[]);for(var a,h,l,u,c,d,p,f,g,m=s(t,e),v=0;v{var s=i(16483);t.exports=function(t,e,i,r){return void 0===r&&(r=i),new s(t,e,t,e-r,t+i,e)}},23707:(t,e,i)=>{var s=i(97523),r=i(13584);t.exports=function(t,e,i,n){void 0===n&&(n=s);var o=n(t),a=e-o.x,h=i-o.y;return r(t,a,h)}},97523:(t,e,i)=>{var s=i(2141);t.exports=function(t,e){return void 0===e&&(e=new s),e.x=(t.x1+t.x2+t.x3)/3,e.y=(t.y1+t.y2+t.y3)/3,e}},24951:(t,e,i)=>{var s=i(26099);function r(t,e,i,s){return t*s-e*i}t.exports=function(t,e){void 0===e&&(e=new s);var i=t.x3,n=t.y3,o=t.x1-i,a=t.y1-n,h=t.x2-i,l=t.y2-n,u=2*r(o,a,h,l),c=r(a,o*o+a*a,l,h*h+l*l),d=r(o,o*o+a*a,h,h*h+l*l);return e.x=i-c/u,e.y=n+d/u,e}},85614:(t,e,i)=>{var s=i(96503);t.exports=function(t,e){void 0===e&&(e=new s);var i,r,n=t.x1,o=t.y1,a=t.x2,h=t.y2,l=t.x3,u=t.y3,c=a-n,d=h-o,p=l-n,f=u-o,g=c*(n+a)+d*(o+h),m=p*(n+l)+f*(o+u),v=2*(c*(u-h)-d*(l-a));if(Math.abs(v)<1e-6){var y=Math.min(n,a,l),x=Math.min(o,h,u);i=.5*(Math.max(n,a,l)-y),r=.5*(Math.max(o,h,u)-x),e.x=y+i,e.y=x+r,e.radius=Math.sqrt(i*i+r*r)}else e.x=(f*g-d*m)/v,e.y=(c*m-p*g)/v,i=e.x-n,r=e.y-o,e.radius=Math.sqrt(i*i+r*r);return e}},74422:(t,e,i)=>{var s=i(16483);t.exports=function(t){return new s(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)}},10690:t=>{t.exports=function(t,e,i){var s=t.x3-t.x1,r=t.y3-t.y1,n=t.x2-t.x1,o=t.y2-t.y1,a=e-t.x1,h=i-t.y1,l=s*s+r*r,u=s*n+r*o,c=s*a+r*h,d=n*n+o*o,p=n*a+o*h,f=l*d-u*u,g=0===f?0:1/f,m=(d*c-u*p)*g,v=(l*p-u*c)*g;return m>=0&&v>=0&&m+v<1}},48653:t=>{t.exports=function(t,e,i,s){void 0===i&&(i=!1),void 0===s&&(s=[]);for(var r,n,o,a,h,l,u=t.x3-t.x1,c=t.y3-t.y1,d=t.x2-t.x1,p=t.y2-t.y1,f=u*u+c*c,g=u*d+c*p,m=d*d+p*p,v=f*m-g*g,y=0===v?0:1/v,x=t.x1,w=t.y1,T=0;T=0&&n>=0&&r+n<1&&(s.push({x:e[T].x,y:e[T].y}),i)));T++);return s}},96006:(t,e,i)=>{var s=i(10690);t.exports=function(t,e){return s(t,e.x,e.y)}},71326:t=>{t.exports=function(t,e){return e.setTo(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)}},71694:t=>{t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x1,y:t.y1}),e.push({x:t.x2,y:t.y2}),e.push({x:t.x3,y:t.y3}),e}},33522:t=>{t.exports=function(t,e){return t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2&&t.x3===e.x3&&t.y3===e.y3}},20437:(t,e,i)=>{var s=i(2141),r=i(35001);t.exports=function(t,e,i){void 0===i&&(i=new s);var n=t.getLineA(),o=t.getLineB(),a=t.getLineC();if(e<=0||e>=1)return i.x=n.x1,i.y=n.y1,i;var h=r(n),l=r(o),u=r(a),c=(h+l+u)*e,d=0;return ch+l?(d=(c-=h+l)/u,i.x=a.x1+(a.x2-a.x1)*d,i.y=a.y1+(a.y2-a.y1)*d):(d=(c-=h)/l,i.x=o.x1+(o.x2-o.x1)*d,i.y=o.y1+(o.y2-o.y1)*d),i}},80672:(t,e,i)=>{var s=i(35001),r=i(2141);t.exports=function(t,e,i,n){void 0===n&&(n=[]);var o=t.getLineA(),a=t.getLineB(),h=t.getLineC(),l=s(o),u=s(a),c=s(h),d=l+u+c;!e&&i>0&&(e=d/i);for(var p=0;pl+u?(g=(f-=l+u)/c,m.x=h.x1+(h.x2-h.x1)*g,m.y=h.y1+(h.y2-h.y1)*g):(g=(f-=l)/u,m.x=a.x1+(a.x2-a.x1)*g,m.y=a.y1+(a.y2-a.y1)*g),n.push(m)}return n}},39757:(t,e,i)=>{var s=i(2141);function r(t,e,i,s){var r=t-i,n=e-s,o=r*r+n*n;return Math.sqrt(o)}t.exports=function(t,e){void 0===e&&(e=new s);var i=t.x1,n=t.y1,o=t.x2,a=t.y2,h=t.x3,l=t.y3,u=r(h,l,o,a),c=r(i,n,h,l),d=r(o,a,i,n),p=u+c+d;return e.x=(i*u+o*c+h*d)/p,e.y=(n*u+a*c+l*d)/p,e}},13584:t=>{t.exports=function(t,e,i){return t.x1+=e,t.y1+=i,t.x2+=e,t.y2+=i,t.x3+=e,t.y3+=i,t}},1376:(t,e,i)=>{var s=i(35001);t.exports=function(t){var e=t.getLineA(),i=t.getLineB(),r=t.getLineC();return s(e)+s(i)+s(r)}},90260:(t,e,i)=>{var s=i(2141);t.exports=function(t,e){void 0===e&&(e=new s);var i=t.x2-t.x1,r=t.y2-t.y1,n=t.x3-t.x1,o=t.y3-t.y1,a=Math.random(),h=Math.random();return a+h>=1&&(a=1-a,h=1-h),e.x=t.x1+(i*a+n*h),e.y=t.y1+(r*a+o*h),e}},52172:(t,e,i)=>{var s=i(99614),r=i(39757);t.exports=function(t,e){var i=r(t);return s(t,i.x,i.y,e)}},49907:(t,e,i)=>{var s=i(99614);t.exports=function(t,e,i){return s(t,e.x,e.y,i)}},99614:t=>{t.exports=function(t,e,i,s){var r=Math.cos(s),n=Math.sin(s),o=t.x1-e,a=t.y1-i;return t.x1=o*r-a*n+e,t.y1=o*n+a*r+i,o=t.x2-e,a=t.y2-i,t.x2=o*r-a*n+e,t.y2=o*n+a*r+i,o=t.x3-e,a=t.y3-i,t.x3=o*r-a*n+e,t.y3=o*n+a*r+i,t}},16483:(t,e,i)=>{var s=i(83419),r=i(10690),n=i(20437),o=i(80672),a=i(23777),h=i(23031),l=i(90260),u=new s({initialize:function(t,e,i,s,r,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=0),void 0===n&&(n=0),this.type=a.TRIANGLE,this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.x3=r,this.y3=n},contains:function(t,e){return r(this,t,e)},getPoint:function(t,e){return n(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return l(this,t)},setTo:function(t,e,i,s,r,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=0),void 0===n&&(n=0),this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.x3=r,this.y3=n,this},getLineA:function(t){return void 0===t&&(t=new h),t.setTo(this.x1,this.y1,this.x2,this.y2),t},getLineB:function(t){return void 0===t&&(t=new h),t.setTo(this.x2,this.y2,this.x3,this.y3),t},getLineC:function(t){return void 0===t&&(t=new h),t.setTo(this.x3,this.y3,this.x1,this.y1),t},left:{get:function(){return Math.min(this.x1,this.x2,this.x3)},set:function(t){var e=0;e=this.x1<=this.x2&&this.x1<=this.x3?this.x1-t:this.x2<=this.x1&&this.x2<=this.x3?this.x2-t:this.x3-t,this.x1-=e,this.x2-=e,this.x3-=e}},right:{get:function(){return Math.max(this.x1,this.x2,this.x3)},set:function(t){var e=0;e=this.x1>=this.x2&&this.x1>=this.x3?this.x1-t:this.x2>=this.x1&&this.x2>=this.x3?this.x2-t:this.x3-t,this.x1-=e,this.x2-=e,this.x3-=e}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1<=this.y2&&this.y1<=this.y3?this.y1-t:this.y2<=this.y1&&this.y2<=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1>=this.y2&&this.y1>=this.y3?this.y1-t:this.y2>=this.y1&&this.y2>=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}}});t.exports=u},84435:(t,e,i)=>{var s=i(16483);s.Area=i(41658),s.BuildEquilateral=i(39208),s.BuildFromPolygon=i(39545),s.BuildRight=i(90301),s.CenterOn=i(23707),s.Centroid=i(97523),s.CircumCenter=i(24951),s.CircumCircle=i(85614),s.Clone=i(74422),s.Contains=i(10690),s.ContainsArray=i(48653),s.ContainsPoint=i(96006),s.CopyFrom=i(71326),s.Decompose=i(71694),s.Equals=i(33522),s.GetPoint=i(20437),s.GetPoints=i(80672),s.InCenter=i(39757),s.Perimeter=i(1376),s.Offset=i(13584),s.Random=i(90260),s.Rotate=i(52172),s.RotateAroundPoint=i(49907),s.RotateAroundXY=i(99614),t.exports=s},74457:t=>{t.exports=function(t,e,i){return{gameObject:t,enabled:!0,draggable:!1,dropZone:!1,cursor:!1,target:null,camera:null,hitArea:e,hitAreaCallback:i,hitAreaDebug:null,customHitArea:!1,localX:0,localY:0,dragState:0,dragStartX:0,dragStartY:0,dragStartXGlobal:0,dragStartYGlobal:0,dragX:0,dragY:0}}},84409:t=>{t.exports=function(t,e){return function(i,s,r,n){var o=t.getPixelAlpha(s,r,n.texture.key,n.frame.name);return o&&o>=e}}},7003:(t,e,i)=>{var s=i(83419),r=i(93301),n=i(50792),o=i(8214),a=i(8443),h=i(78970),l=i(85098),u=i(42515),c=i(36210),d=i(61340),p=i(85955),f=new s({initialize:function(t,e){this.game=t,this.scaleManager,this.canvas,this.config=e,this.enabled=!0,this.events=new n,this.isOver=!0,this.defaultCursor="",this.keyboard=e.inputKeyboard?new h(this):null,this.mouse=e.inputMouse?new l(this):null,this.touch=e.inputTouch?new c(this):null,this.pointers=[],this.pointersTotal=e.inputActivePointers,e.inputTouch&&1===this.pointersTotal&&(this.pointersTotal=2);for(var i=0;i<=this.pointersTotal;i++){var s=new u(this,i);s.smoothFactor=e.inputSmoothFactor,this.pointers.push(s)}this.mousePointer=e.inputMouse?this.pointers[0]:null,this.activePointer=this.pointers[0],this.globalTopOnly=!0,this.time=0,this._tempPoint={x:0,y:0},this._tempHitTest=[],this._tempMatrix=new d,this._tempMatrix2=new d,this._tempSkip=!1,this.mousePointerContainer=[this.mousePointer],t.events.once(a.BOOT,this.boot,this)},boot:function(){var t=this.game,e=t.events;this.canvas=t.canvas,this.scaleManager=t.scale,this.events.emit(o.MANAGER_BOOT),e.on(a.PRE_RENDER,this.preRender,this),e.once(a.DESTROY,this.destroy,this)},setCanvasOver:function(t){this.isOver=!0,this.events.emit(o.GAME_OVER,t)},setCanvasOut:function(t){this.isOver=!1,this.events.emit(o.GAME_OUT,t)},preRender:function(){var t=this.game.loop.now,e=this.game.loop.delta,i=this.game.scene.getScenes(!0,!0);this.time=t,this.events.emit(o.MANAGER_UPDATE);for(var s=0;s10&&(t=10-this.pointersTotal);for(var i=0;i{var s=i(96503),r=i(87902),n=i(83419),o=i(93301),a=i(74457),h=i(84409),l=i(20339),u=i(8497),c=i(81154),d=i(8214),p=i(50792),f=i(95540),g=i(23777),m=i(89639),v=i(41212),y=i(37277),x=i(87841),w=i(37303),T=i(44594),b=i(16483),S=i(10690),E=new n({Extends:p,initialize:function(t){p.call(this),this.scene=t,this.systems=t.sys,this.settings=t.sys.settings,this.manager=t.sys.game.input,this.pluginEvents=new p,this.enabled=!0,this.displayList,this.cameras,m.install(this),this.mouse=this.manager.mouse,this.topOnly=!0,this.pollRate=-1,this._pollTimer=0;var e={cancelled:!1};this._eventContainer={stopPropagation:function(){e.cancelled=!0}},this._eventData=e,this.dragDistanceThreshold=0,this.dragTimeThreshold=0,this._temp=[],this._tempZones=[],this._list=[],this._pendingInsertion=[],this._pendingRemoval=[],this._draggable=[],this._drag={0:[],1:[],2:[],3:[],4:[],5:[],6:[],7:[],8:[],9:[],10:[]},this._dragState=[],this._over={0:[],1:[],2:[],3:[],4:[],5:[],6:[],7:[],8:[],9:[],10:[]},this._validTypes=["onDown","onUp","onOver","onOut","onMove","onDragStart","onDrag","onDragEnd","onDragEnter","onDragLeave","onDragOver","onDrop"],this._updatedThisFrame=!1,t.sys.events.once(T.BOOT,this.boot,this),t.sys.events.on(T.START,this.start,this)},boot:function(){this.cameras=this.systems.cameras,this.displayList=this.systems.displayList,this.systems.events.once(T.DESTROY,this.destroy,this),this.pluginEvents.emit(d.BOOT)},start:function(){var t=this.systems.events;t.on(T.TRANSITION_START,this.transitionIn,this),t.on(T.TRANSITION_OUT,this.transitionOut,this),t.on(T.TRANSITION_COMPLETE,this.transitionComplete,this),t.on(T.PRE_UPDATE,this.preUpdate,this),t.once(T.SHUTDOWN,this.shutdown,this),this.manager.events.on(d.GAME_OUT,this.onGameOut,this),this.manager.events.on(d.GAME_OVER,this.onGameOver,this),this.enabled=!0,this._dragState=[0,0,0,0,0,0,0,0,0,0],this.pluginEvents.emit(d.START)},onGameOver:function(t){this.isActive()&&this.emit(d.GAME_OVER,t.timeStamp,t)},onGameOut:function(t){this.isActive()&&this.emit(d.GAME_OUT,t.timeStamp,t)},preUpdate:function(){this.pluginEvents.emit(d.PRE_UPDATE);var t=this._pendingRemoval,e=this._pendingInsertion,i=t.length,s=e.length;if(0!==i||0!==s){for(var r=this._list,n=0;n-1&&(r.splice(a,1),this.clear(o,!0))}this._pendingRemoval.length=0,this._list=r.concat(e.splice(0))}},isActive:function(){return this.enabled&&this.scene.sys.canInput()},updatePoll:function(t,e){if(!this.isActive())return!1;if(this.pluginEvents.emit(d.UPDATE,t,e),this._updatedThisFrame)return this._updatedThisFrame=!1,!1;var i,s=this.manager,r=s.pointers,n=s.pointersTotal;for(i=0;i0){if(this._pollTimer-=e,!(this._pollTimer<0))return!1;this._pollTimer=this.pollRate}var a=!1;for(i=0;i0&&(a=!0)}return a},update:function(t,e){if(!this.isActive())return!1;for(var i=e.length,s=!1,r=0;r0&&(s=!0)}return this._updatedThisFrame=!0,s},clear:function(t,e){void 0===e&&(e=!1),this.disable(t);var i=t.input;i&&(this.removeDebug(t),this.manager.resetCursor(i),i.gameObject=void 0,i.target=void 0,i.hitArea=void 0,i.hitAreaCallback=void 0,i.callbackContext=void 0,t.input=null),e||this.queueForRemoval(t);var s=this._draggable.indexOf(t);return s>-1&&this._draggable.splice(s,1),t},disable:function(t){var e=t.input;e&&(e.enabled=!1,e.dragState=0);for(var i,s=this._drag,r=this._over,n=this.manager,o=0;o-1&&s[o].splice(i,1),(i=r[o].indexOf(t))>-1&&r[o].splice(i,1);return this},enable:function(t,e,i,s){return void 0===s&&(s=!1),t.input?t.input.enabled=!0:this.setHitArea(t,e,i),t.input&&s&&!t.input.dropZone&&(t.input.dropZone=s),this},hitTestPointer:function(t){for(var e=this.cameras.getCamerasBelowPointer(t),i=0;i0)return t.camera=s,r}return t.camera=e[0],[]},processDownEvents:function(t){var e=0,i=this._temp,s=this._eventData,r=this._eventContainer;s.cancelled=!1;for(var n=!1,o=0;o0&&l(t.x,t.y,t.downX,t.downY)>=r||s>0&&e>=t.downTime+s)&&(i=!0),i)return this.setDragState(t,3),this.processDragStartList(t)},processDragStartList:function(t){if(3!==this.getDragState(t))return 0;for(var e=this._drag[t.id],i=0;i1&&(this.sortGameObjects(i,t),this.topOnly&&i.splice(1)),this._drag[t.id]=i,0===this.dragDistanceThreshold&&0===this.dragTimeThreshold?(this.setDragState(t,3),this.processDragStartList(t)):(this.setDragState(t,2),0))},processDragMoveEvent:function(t){if(2===this.getDragState(t)&&this.processDragThresholdEvent(t,this.manager.game.loop.now),4!==this.getDragState(t))return 0;for(var e=this._tempZones,i=this._drag[t.id],s=0;s0?(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),e[0]?(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):a.target=null)}else!h&&e[0]&&(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h));if(o.parentContainer){var u=t.worldX-a.dragStartXGlobal,c=t.worldY-a.dragStartYGlobal,p=o.getParentRotation(),f=u*Math.cos(p)+c*Math.sin(p),g=c*Math.cos(p)-u*Math.sin(p);f*=1/o.parentContainer.scaleX,g*=1/o.parentContainer.scaleY,r=f+a.dragStartX,n=g+a.dragStartY}else r=t.worldX-a.dragX,n=t.worldY-a.dragY;o.emit(d.GAMEOBJECT_DRAG,t,r,n),this.emit(d.DRAG,t,o,r,n)}return i.length},processDragUpEvent:function(t){for(var e=this._drag[t.id],i=0;i0){var n=this.manager,o=this._eventData,a=this._eventContainer;o.cancelled=!1;for(var h=!1,l=0;l0){var r=this.manager,n=this._eventData,o=this._eventContainer;n.cancelled=!1;var a=!1;this.sortGameObjects(e,t);for(var h=0;h0){for(this.sortGameObjects(r,t),e=0;e0){for(this.sortGameObjects(n,t),e=0;e-1&&this._draggable.splice(r,1)}return this},makePixelPerfect:function(t){void 0===t&&(t=1);var e=this.systems.textures;return h(e,t)},setHitArea:function(t,e,i){if(void 0===e)return this.setHitAreaFromTexture(t);Array.isArray(t)||(t=[t]);var s=!1,r=!1,n=!1,o=!1,h=!1,l=!0;if(v(e)&&Object.keys(e).length){var u=e;if(!t.some((function(t){return t.hasOwnProperty("faces")}))){e=f(u,"hitArea",null),i=f(u,"hitAreaCallback",null),h=f(u,"pixelPerfect",!1);var c=f(u,"alphaTolerance",1);h&&(e={},i=this.makePixelPerfect(c))}s=f(u,"draggable",!1),r=f(u,"dropZone",!1),n=f(u,"cursor",!1),o=f(u,"useHandCursor",!1),e&&i||(this.setHitAreaFromTexture(t),l=!1)}else"function"!=typeof e||i||(i=e,e={});for(var d=0;d{var s=i(35154),r={},n={register:function(t,e,i,s,n){r[t]={plugin:e,mapping:i,settingsKey:s,configKey:n}},getPlugin:function(t){return r[t]},install:function(t){var e=t.scene.sys,i=e.settings.input,n=e.game.config;for(var o in r){var a=r[o].plugin,h=r[o].mapping,l=r[o].settingsKey,u=r[o].configKey;s(i,l,n[u])&&(t[h]=new a(t))}},remove:function(t){r.hasOwnProperty(t)&&delete r[t]}};t.exports=n},42515:(t,e,i)=>{var s=i(31040),r=i(83419),n=i(20339),o=i(43855),a=i(47235),h=i(26099),l=i(25892),u=new r({initialize:function(t,e){this.manager=t,this.id=e,this.event,this.downElement,this.upElement,this.camera=null,this.button=0,this.buttons=0,this.position=new h,this.prevPosition=new h,this.midPoint=new h(-1,-1),this.velocity=new h,this.angle=0,this.distance=0,this.smoothFactor=0,this.motionFactor=.2,this.worldX=0,this.worldY=0,this.moveTime=0,this.downX=0,this.downY=0,this.downTime=0,this.upX=0,this.upY=0,this.upTime=0,this.primaryDown=!1,this.isDown=!1,this.wasTouch=!1,this.wasCanceled=!1,this.movementX=0,this.movementY=0,this.identifier=0,this.pointerId=null,this.active=0===e,this.locked=!1,this.deltaX=0,this.deltaY=0,this.deltaZ=0},updateWorldPoint:function(t){var e=t.getWorldPoint(this.x,this.y);return this.worldX=e.x,this.worldY=e.y,this},positionToCamera:function(t,e){return t.getWorldPoint(this.x,this.y,e)},updateMotion:function(){var t=this.position.x,e=this.position.y,i=this.midPoint.x,r=this.midPoint.y;if(t!==i||e!==r){var n=a(this.motionFactor,i,t),h=a(this.motionFactor,r,e);o(n,t,.1)&&(n=t),o(h,e,.1)&&(h=e),this.midPoint.set(n,h);var l=t-n,u=e-h;this.velocity.set(l,u),this.angle=s(n,h,t,e),this.distance=Math.sqrt(l*l+u*u)}},up:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!1,this.upX=this.x,this.upY=this.y),0===this.buttons&&(this.isDown=!1,this.upTime=t.timeStamp,this.wasTouch=!1)},down:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!0,this.downX=this.x,this.downY=this.y),l.macOS&&t.ctrlKey&&(this.buttons=2,this.primaryDown=!1),this.isDown||(this.isDown=!0,this.downTime=t.timeStamp),this.wasTouch=!1},move:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.locked&&(this.movementX=t.movementX||t.mozMovementX||t.webkitMovementX||0,this.movementY=t.movementY||t.mozMovementY||t.webkitMovementY||0),this.moveTime=t.timeStamp,this.wasTouch=!1},wheel:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.deltaX=t.deltaX,this.deltaY=t.deltaY,this.deltaZ=t.deltaZ,this.wasTouch=!1},touchstart:function(t,e){t.pointerId&&(this.pointerId=t.pointerId),this.identifier=t.identifier,this.target=t.target,this.active=!0,this.buttons=1,this.event=e,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=e.timeStamp,this.isDown=!0,this.wasTouch=!0,this.wasCanceled=!1,this.updateMotion()},touchmove:function(t,e){this.event=e,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.moveTime=e.timeStamp,this.wasTouch=!0,this.updateMotion()},touchend:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!1,this.active=!1,this.updateMotion()},touchcancel:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!0,this.active=!1},noButtonDown:function(){return 0===this.buttons},leftButtonDown:function(){return!!(1&this.buttons)},rightButtonDown:function(){return!!(2&this.buttons)},middleButtonDown:function(){return!!(4&this.buttons)},backButtonDown:function(){return!!(8&this.buttons)},forwardButtonDown:function(){return!!(16&this.buttons)},leftButtonReleased:function(){return 0===this.button&&!this.isDown},rightButtonReleased:function(){return 2===this.button&&!this.isDown},middleButtonReleased:function(){return 1===this.button&&!this.isDown},backButtonReleased:function(){return 3===this.button&&!this.isDown},forwardButtonReleased:function(){return 4===this.button&&!this.isDown},getDistance:function(){return this.isDown?n(this.downX,this.downY,this.x,this.y):n(this.downX,this.downY,this.upX,this.upY)},getDistanceX:function(){return this.isDown?Math.abs(this.downX-this.x):Math.abs(this.downX-this.upX)},getDistanceY:function(){return this.isDown?Math.abs(this.downY-this.y):Math.abs(this.downY-this.upY)},getDuration:function(){return this.isDown?this.manager.time-this.downTime:this.upTime-this.downTime},getAngle:function(){return this.isDown?s(this.downX,this.downY,this.x,this.y):s(this.downX,this.downY,this.upX,this.upY)},getInterpolatedPosition:function(t,e){void 0===t&&(t=10),void 0===e&&(e=[]);for(var i=this.prevPosition.x,s=this.prevPosition.y,r=this.position.x,n=this.position.y,o=0;o{t.exports={MOUSE_DOWN:0,MOUSE_MOVE:1,MOUSE_UP:2,TOUCH_START:3,TOUCH_MOVE:4,TOUCH_END:5,POINTER_LOCK_CHANGE:6,TOUCH_CANCEL:7,MOUSE_WHEEL:8}},7179:t=>{t.exports="boot"},85375:t=>{t.exports="destroy"},39843:t=>{t.exports="dragend"},23388:t=>{t.exports="dragenter"},16133:t=>{t.exports="drag"},27829:t=>{t.exports="dragleave"},53904:t=>{t.exports="dragover"},56058:t=>{t.exports="dragstart"},2642:t=>{t.exports="drop"},88171:t=>{t.exports="gameobjectdown"},36147:t=>{t.exports="dragend"},71692:t=>{t.exports="dragenter"},96149:t=>{t.exports="drag"},81285:t=>{t.exports="dragleave"},74048:t=>{t.exports="dragover"},21322:t=>{t.exports="dragstart"},49378:t=>{t.exports="drop"},86754:t=>{t.exports="gameobjectmove"},86433:t=>{t.exports="gameobjectout"},60709:t=>{t.exports="gameobjectover"},24081:t=>{t.exports="pointerdown"},11172:t=>{t.exports="pointermove"},18907:t=>{t.exports="pointerout"},95579:t=>{t.exports="pointerover"},35368:t=>{t.exports="pointerup"},26972:t=>{t.exports="wheel"},47078:t=>{t.exports="gameobjectup"},73802:t=>{t.exports="gameobjectwheel"},56718:t=>{t.exports="gameout"},25936:t=>{t.exports="gameover"},27503:t=>{t.exports="boot"},50852:t=>{t.exports="process"},96438:t=>{t.exports="update"},59152:t=>{t.exports="pointerlockchange"},47777:t=>{t.exports="pointerdown"},27957:t=>{t.exports="pointerdownoutside"},19444:t=>{t.exports="pointermove"},54251:t=>{t.exports="pointerout"},18667:t=>{t.exports="pointerover"},27192:t=>{t.exports="pointerup"},24652:t=>{t.exports="pointerupoutside"},45132:t=>{t.exports="wheel"},44512:t=>{t.exports="preupdate"},15757:t=>{t.exports="shutdown"},41637:t=>{t.exports="start"},93802:t=>{t.exports="update"},8214:(t,e,i)=>{t.exports={BOOT:i(7179),DESTROY:i(85375),DRAG_END:i(39843),DRAG_ENTER:i(23388),DRAG:i(16133),DRAG_LEAVE:i(27829),DRAG_OVER:i(53904),DRAG_START:i(56058),DROP:i(2642),GAME_OUT:i(56718),GAME_OVER:i(25936),GAMEOBJECT_DOWN:i(88171),GAMEOBJECT_DRAG_END:i(36147),GAMEOBJECT_DRAG_ENTER:i(71692),GAMEOBJECT_DRAG:i(96149),GAMEOBJECT_DRAG_LEAVE:i(81285),GAMEOBJECT_DRAG_OVER:i(74048),GAMEOBJECT_DRAG_START:i(21322),GAMEOBJECT_DROP:i(49378),GAMEOBJECT_MOVE:i(86754),GAMEOBJECT_OUT:i(86433),GAMEOBJECT_OVER:i(60709),GAMEOBJECT_POINTER_DOWN:i(24081),GAMEOBJECT_POINTER_MOVE:i(11172),GAMEOBJECT_POINTER_OUT:i(18907),GAMEOBJECT_POINTER_OVER:i(95579),GAMEOBJECT_POINTER_UP:i(35368),GAMEOBJECT_POINTER_WHEEL:i(26972),GAMEOBJECT_UP:i(47078),GAMEOBJECT_WHEEL:i(73802),MANAGER_BOOT:i(27503),MANAGER_PROCESS:i(50852),MANAGER_UPDATE:i(96438),POINTER_DOWN:i(47777),POINTER_DOWN_OUTSIDE:i(27957),POINTER_MOVE:i(19444),POINTER_OUT:i(54251),POINTER_OVER:i(18667),POINTER_UP:i(27192),POINTER_UP_OUTSIDE:i(24652),POINTER_WHEEL:i(45132),POINTERLOCK_CHANGE:i(59152),PRE_UPDATE:i(44512),SHUTDOWN:i(15757),START:i(41637),UPDATE:i(93802)}},97421:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e){this.pad=t,this.events=t.events,this.index=e,this.value=0,this.threshold=.1},update:function(t){this.value=t},getValue:function(){return Math.abs(this.value){var s=i(83419),r=i(92734),n=new s({initialize:function(t,e){this.pad=t,this.events=t.manager,this.index=e,this.value=0,this.threshold=1,this.pressed=!1},update:function(t){this.value=t;var e=this.pad,i=this.index;t>=this.threshold?this.pressed||(this.pressed=!0,this.events.emit(r.BUTTON_DOWN,e,this,t),this.pad.emit(r.GAMEPAD_BUTTON_DOWN,i,t,this)):this.pressed&&(this.pressed=!1,this.events.emit(r.BUTTON_UP,e,this,t),this.pad.emit(r.GAMEPAD_BUTTON_UP,i,t,this))},destroy:function(){this.pad=null,this.events=null}});t.exports=n},99125:(t,e,i)=>{var s=i(97421),r=i(28884),n=i(83419),o=i(50792),a=i(26099),h=new n({Extends:o,initialize:function(t,e){o.call(this),this.manager=t,this.pad=e,this.id=e.id,this.index=e.index;for(var i=[],n=0;n=2&&(this.leftStick.set(n[0].getValue(),n[1].getValue()),r>=4&&this.rightStick.set(n[2].getValue(),n[3].getValue()))}},destroy:function(){var t;for(this.removeAllListeners(),this.manager=null,this.pad=null,t=0;t{var s=i(83419),r=i(50792),n=i(92734),o=i(99125),a=i(35154),h=i(89639),l=i(8214),u=new s({Extends:r,initialize:function(t){r.call(this),this.scene=t.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=t,this.enabled=!0,this.target,this.gamepads=[],this.queue=[],this.onGamepadHandler,this._pad1,this._pad2,this._pad3,this._pad4,t.pluginEvents.once(l.BOOT,this.boot,this),t.pluginEvents.on(l.START,this.start,this)},boot:function(){var t=this.scene.sys.game,e=this.settings.input,i=t.config;this.enabled=a(e,"gamepad",i.inputGamepad)&&t.device.input.gamepads,this.target=a(e,"gamepad.target",i.inputGamepadEventTarget),this.sceneInputPlugin.pluginEvents.once(l.DESTROY,this.destroy,this)},start:function(){this.enabled&&(this.startListeners(),this.refreshPads()),this.sceneInputPlugin.pluginEvents.once(l.SHUTDOWN,this.shutdown,this)},isActive:function(){return this.enabled&&this.scene.sys.isActive()},startListeners:function(){var t=this,e=this.target,i=function(e){!e.defaultPrevented&&t.isActive()&&(t.refreshPads(),t.queue.push(e))};this.onGamepadHandler=i,e.addEventListener("gamepadconnected",i,!1),e.addEventListener("gamepaddisconnected",i,!1),this.sceneInputPlugin.pluginEvents.on(l.UPDATE,this.update,this)},stopListeners:function(){this.target.removeEventListener("gamepadconnected",this.onGamepadHandler),this.target.removeEventListener("gamepaddisconnected",this.onGamepadHandler),this.sceneInputPlugin.pluginEvents.off(l.UPDATE,this.update);for(var t=0;t{t.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,SELECT:8,START:9,B:0,A:1,Y:2,X:3,LEFT_SHOULDER:4,RIGHT_SHOULDER:5}},65294:t=>{t.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,SHARE:8,OPTIONS:9,PS:16,TOUCHBAR:17,X:0,CIRCLE:1,SQUARE:2,TRIANGLE:3,L1:4,R1:5,L2:6,R2:7,L3:10,R3:11,LEFT_STICK_H:0,LEFT_STICK_V:1,RIGHT_STICK_H:2,RIGHT_STICK_V:3}},90089:t=>{t.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,MENU:16,A:0,B:1,X:2,Y:3,LB:4,RB:5,LT:6,RT:7,BACK:8,START:9,LS:10,RS:11,LEFT_STICK_H:0,LEFT_STICK_V:1,RIGHT_STICK_H:2,RIGHT_STICK_V:3}},64894:(t,e,i)=>{t.exports={DUALSHOCK_4:i(65294),SNES_USB:i(89651),XBOX_360:i(90089)}},46008:t=>{t.exports="down"},7629:t=>{t.exports="up"},42206:t=>{t.exports="connected"},86544:t=>{t.exports="disconnected"},94784:t=>{t.exports="down"},14325:t=>{t.exports="up"},92734:(t,e,i)=>{t.exports={BUTTON_DOWN:i(46008),BUTTON_UP:i(7629),CONNECTED:i(42206),DISCONNECTED:i(86544),GAMEPAD_BUTTON_DOWN:i(94784),GAMEPAD_BUTTON_UP:i(14325)}},48646:(t,e,i)=>{t.exports={Axis:i(97421),Button:i(28884),Events:i(92734),Gamepad:i(99125),GamepadPlugin:i(56654),Configs:i(64894)}},14350:(t,e,i)=>{var s=i(93301),r=i(79291),n={CreatePixelPerfectHandler:i(84409),CreateInteractiveObject:i(74457),Events:i(8214),Gamepad:i(48646),InputManager:i(7003),InputPlugin:i(48205),InputPluginCache:i(89639),Keyboard:i(51442),Mouse:i(87078),Pointer:i(42515),Touch:i(95618)};n=r(!1,n,s),t.exports=n},78970:(t,e,i)=>{var s=i(72905),r=i(83419),n=i(8443),o=i(8214),a=i(46032),h=i(29747),l=new r({initialize:function(t){this.manager=t,this.queue=[],this.preventDefault=!0,this.captures=[],this.enabled=!1,this.target,this.onKeyDown=h,this.onKeyUp=h,t.events.once(o.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputKeyboard,this.target=t.inputKeyboardEventTarget,this.addCapture(t.inputKeyboardCapture),!this.target&&window&&(this.target=window),this.enabled&&this.target&&this.startListeners(),this.manager.game.events.on(n.POST_STEP,this.postUpdate,this)},startListeners:function(){var t=this;this.onKeyDown=function(e){if(!e.defaultPrevented&&t.enabled&&t.manager){t.queue.push(e),t.manager.events.emit(o.MANAGER_PROCESS);var i=e.altKey||e.ctrlKey||e.shiftKey||e.metaKey;t.preventDefault&&!i&&t.captures.indexOf(e.keyCode)>-1&&e.preventDefault()}},this.onKeyUp=function(e){if(!e.defaultPrevented&&t.enabled&&t.manager){t.queue.push(e),t.manager.events.emit(o.MANAGER_PROCESS);var i=e.altKey||e.ctrlKey||e.shiftKey||e.metaKey;t.preventDefault&&!i&&t.captures.indexOf(e.keyCode)>-1&&e.preventDefault()}};var e=this.target;e&&(e.addEventListener("keydown",this.onKeyDown,!1),e.addEventListener("keyup",this.onKeyUp,!1),this.enabled=!0)},stopListeners:function(){var t=this.target;t.removeEventListener("keydown",this.onKeyDown,!1),t.removeEventListener("keyup",this.onKeyUp,!1),this.enabled=!1},postUpdate:function(){this.queue=[]},addCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},removeCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},clearCaptures:function(){this.captures=[],this.preventDefault=!1},destroy:function(){this.stopListeners(),this.clearCaptures(),this.queue=[],this.manager.game.events.off(n.POST_RENDER,this.postUpdate,this),this.target=null,this.enabled=!1,this.manager=null}});t.exports=l},28846:(t,e,i)=>{var s=i(83419),r=i(50792),n=i(95922),o=i(8443),a=i(35154),h=i(8214),l=i(89639),u=i(30472),c=i(46032),d=i(87960),p=i(74600),f=i(44594),g=i(56583),m=new s({Extends:r,initialize:function(t){r.call(this),this.game=t.systems.game,this.scene=t.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=t,this.manager=t.manager.keyboard,this.enabled=!0,this.keys=[],this.combos=[],this.prevCode=null,this.prevTime=0,this.prevType=null,t.pluginEvents.once(h.BOOT,this.boot,this),t.pluginEvents.on(h.START,this.start,this)},boot:function(){var t=this.settings.input;this.enabled=a(t,"keyboard",!0);var e=a(t,"keyboard.capture",null);e&&this.addCaptures(e),this.sceneInputPlugin.pluginEvents.once(h.DESTROY,this.destroy,this)},start:function(){this.sceneInputPlugin.manager.events.on(h.MANAGER_PROCESS,this.update,this),this.sceneInputPlugin.pluginEvents.once(h.SHUTDOWN,this.shutdown,this),this.game.events.on(o.BLUR,this.resetKeys,this),this.scene.sys.events.on(f.PAUSE,this.resetKeys,this),this.scene.sys.events.on(f.SLEEP,this.resetKeys,this)},isActive:function(){return this.enabled&&this.scene.sys.canInput()},addCapture:function(t){return this.manager.addCapture(t),this},removeCapture:function(t){return this.manager.removeCapture(t),this},getCaptures:function(){return this.manager.captures},enableGlobalCapture:function(){return this.manager.preventDefault=!0,this},disableGlobalCapture:function(){return this.manager.preventDefault=!1,this},clearCaptures:function(){return this.manager.clearCaptures(),this},createCursorKeys:function(){return this.addKeys({up:c.UP,down:c.DOWN,left:c.LEFT,right:c.RIGHT,space:c.SPACE,shift:c.SHIFT})},addKeys:function(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=!1);var s={};if("string"==typeof t){t=t.split(",");for(var r=0;r-1?s[r]=t:s[t.keyCode]=t,e&&this.addCapture(t.keyCode),t.setEmitOnRepeat(i),t}return"string"==typeof t&&(t=c[t.toUpperCase()]),s[t]||(s[t]=new u(this,t),e&&this.addCapture(t),s[t].setEmitOnRepeat(i)),s[t]},removeKey:function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var s,r=this.keys;if(t instanceof u){var n=r.indexOf(t);n>-1&&(s=this.keys[n],this.keys[n]=void 0)}else"string"==typeof t&&(t=c[t.toUpperCase()]);return r[t]&&(s=r[t],r[t]=void 0),s&&(s.plugin=null,i&&this.removeCapture(s.keyCode),e&&s.destroy()),this},removeAllKeys:function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);for(var i=this.keys,s=0;st._tick)return t._tick=i,!0}return!1},update:function(){var t=this.manager.queue,e=t.length;if(this.isActive()&&0!==e)for(var i=this.keys,s=0;s{t.exports=function(t,e){return e.timeLastMatched=t.timeStamp,e.index++,e.index===e.size||(e.current=e.keyCodes[e.index],!1)}},87960:(t,e,i)=>{var s=i(83419),r=i(95922),n=i(95540),o=i(68769),a=i(92803),h=new s({initialize:function(t,e,i){if(void 0===i&&(i={}),e.length<2)return!1;this.manager=t,this.enabled=!0,this.keyCodes=[];for(var s=0;s{var s=i(66970);t.exports=function(t,e){if(e.matched)return!0;var i=!1,r=!1;if(t.keyCode===e.current)if(e.index>0&&e.maxKeyDelay>0){var n=e.timeLastMatched+e.maxKeyDelay;t.timeStamp<=n&&(r=!0,i=s(t,e))}else r=!0,i=s(t,e);return!r&&e.resetOnWrongKey&&(e.index=0,e.current=e.keyCodes[0]),i&&(e.timeLastMatched=t.timeStamp,e.matched=!0,e.timeMatched=t.timeStamp),i}},92803:t=>{t.exports=function(t){return t.current=t.keyCodes[0],t.index=0,t.timeLastMatched=0,t.matched=!1,t.timeMatched=0,t}},92612:t=>{t.exports="keydown"},23345:t=>{t.exports="keyup"},21957:t=>{t.exports="keycombomatch"},44743:t=>{t.exports="down"},3771:t=>{t.exports="keydown-"},46358:t=>{t.exports="keyup-"},75674:t=>{t.exports="up"},95922:(t,e,i)=>{t.exports={ANY_KEY_DOWN:i(92612),ANY_KEY_UP:i(23345),COMBO_MATCH:i(21957),DOWN:i(44743),KEY_DOWN:i(3771),KEY_UP:i(46358),UP:i(75674)}},51442:(t,e,i)=>{t.exports={Events:i(95922),KeyboardManager:i(78970),KeyboardPlugin:i(28846),Key:i(30472),KeyCodes:i(46032),KeyCombo:i(87960),AdvanceKeyCombo:i(66970),ProcessKeyCombo:i(68769),ResetKeyCombo:i(92803),JustDown:i(90229),JustUp:i(38796),DownDuration:i(37015),UpDuration:i(41170)}},37015:t=>{t.exports=function(t,e){void 0===e&&(e=50);var i=t.plugin.game.loop.time-t.timeDown;return t.isDown&&i{t.exports=function(t){return!!t._justDown&&(t._justDown=!1,!0)}},38796:t=>{t.exports=function(t){return!!t._justUp&&(t._justUp=!1,!0)}},30472:(t,e,i)=>{var s=i(83419),r=i(50792),n=i(95922),o=new s({Extends:r,initialize:function(t,e){r.call(this),this.plugin=t,this.keyCode=e,this.originalEvent=void 0,this.enabled=!0,this.isDown=!1,this.isUp=!0,this.altKey=!1,this.ctrlKey=!1,this.shiftKey=!1,this.metaKey=!1,this.location=0,this.timeDown=0,this.duration=0,this.timeUp=0,this.emitOnRepeat=!1,this.repeats=0,this._justDown=!1,this._justUp=!1,this._tick=-1},setEmitOnRepeat:function(t){return this.emitOnRepeat=t,this},onDown:function(t){this.originalEvent=t,this.enabled&&(this.altKey=t.altKey,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.location=t.location,this.repeats++,this.isDown?this.emitOnRepeat&&this.emit(n.DOWN,this,t):(this.isDown=!0,this.isUp=!1,this.timeDown=t.timeStamp,this.duration=0,this._justDown=!0,this._justUp=!1,this.emit(n.DOWN,this,t)))},onUp:function(t){this.originalEvent=t,this.enabled&&(this.isDown=!1,this.isUp=!0,this.timeUp=t.timeStamp,this.duration=this.timeUp-this.timeDown,this.repeats=0,this._justDown=!1,this._justUp=!0,this._tick=-1,this.emit(n.UP,this,t))},reset:function(){return this.isDown=!1,this.isUp=!0,this.altKey=!1,this.ctrlKey=!1,this.shiftKey=!1,this.metaKey=!1,this.timeDown=0,this.duration=0,this.timeUp=0,this.repeats=0,this._justDown=!1,this._justUp=!1,this._tick=-1,this},getDuration:function(){return this.isDown?this.plugin.game.loop.time-this.timeDown:0},destroy:function(){this.removeAllListeners(),this.originalEvent=null,this.plugin=null}});t.exports=o},46032:t=>{t.exports={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:42,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,NUMPAD_ZERO:96,NUMPAD_ONE:97,NUMPAD_TWO:98,NUMPAD_THREE:99,NUMPAD_FOUR:100,NUMPAD_FIVE:101,NUMPAD_SIX:102,NUMPAD_SEVEN:103,NUMPAD_EIGHT:104,NUMPAD_NINE:105,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,PLUS:187,COMMA:188,MINUS:189,PERIOD:190,FORWARD_SLASH:191,BACK_SLASH:220,QUOTES:222,BACKTICK:192,OPEN_BRACKET:219,CLOSED_BRACKET:221,SEMICOLON_FIREFOX:59,COLON:58,COMMA_FIREFOX_WINDOWS:60,COMMA_FIREFOX:62,BRACKET_RIGHT_FIREFOX:174,BRACKET_LEFT_FIREFOX:175}},74600:(t,e,i)=>{var s=i(46032),r={};for(var n in s)r[s[n]]=n;t.exports=r},41170:t=>{t.exports=function(t,e){void 0===e&&(e=50);var i=t.plugin.game.loop.time-t.timeUp;return t.isUp&&i{var s=i(83419),r=i(89357),n=i(8214),o=i(29747),a=new s({initialize:function(t){this.manager=t,this.preventDefaultDown=!0,this.preventDefaultUp=!0,this.preventDefaultMove=!0,this.preventDefaultWheel=!1,this.enabled=!1,this.target,this.locked=!1,this.onMouseMove=o,this.onMouseDown=o,this.onMouseUp=o,this.onMouseDownWindow=o,this.onMouseUpWindow=o,this.onMouseOver=o,this.onMouseOut=o,this.onMouseWheel=o,this.pointerLockChange=o,this.isTop=!0,t.events.once(n.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputMouse,this.target=t.inputMouseEventTarget,this.passive=t.inputMousePassive,this.preventDefaultDown=t.inputMousePreventDefaultDown,this.preventDefaultUp=t.inputMousePreventDefaultUp,this.preventDefaultMove=t.inputMousePreventDefaultMove,this.preventDefaultWheel=t.inputMousePreventDefaultWheel,this.target?"string"==typeof this.target&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,t.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener("contextmenu",(function(t){return t.preventDefault(),!1})),this},requestPointerLock:function(){if(r.pointerLock){var t=this.target;t.requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock||t.webkitRequestPointerLock,t.requestPointerLock()}},releasePointerLock:function(){r.pointerLock&&(document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock())},startListeners:function(){var t=this.target;if(t){var e=this,i=this.manager,s=i.canvas,n=window&&window.focus&&i.game.config.autoFocus;this.onMouseMove=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onMouseMove(t),e.preventDefaultMove&&t.preventDefault())},this.onMouseDown=function(t){n&&window.focus(),!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onMouseDown(t),e.preventDefaultDown&&t.target===s&&t.preventDefault())},this.onMouseDownWindow=function(t){t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||!t.defaultPrevented&&e.enabled&&i&&i.enabled&&t.target!==s&&i.onMouseDown(t)},this.onMouseUp=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onMouseUp(t),e.preventDefaultUp&&t.target===s&&t.preventDefault())},this.onMouseUpWindow=function(t){t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||!t.defaultPrevented&&e.enabled&&i&&i.enabled&&t.target!==s&&i.onMouseUp(t)},this.onMouseOver=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&i.setCanvasOver(t)},this.onMouseOut=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&i.setCanvasOut(t)},this.onMouseWheel=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&i.onMouseWheel(t),e.preventDefaultWheel&&t.target===s&&t.preventDefault()};var o={passive:!0};if(t.addEventListener("mousemove",this.onMouseMove),t.addEventListener("mousedown",this.onMouseDown),t.addEventListener("mouseup",this.onMouseUp),t.addEventListener("mouseover",this.onMouseOver,o),t.addEventListener("mouseout",this.onMouseOut,o),this.preventDefaultWheel?t.addEventListener("wheel",this.onMouseWheel,{passive:!1}):t.addEventListener("wheel",this.onMouseWheel,o),window&&i.game.config.inputWindowEvents)try{window.top.addEventListener("mousedown",this.onMouseDownWindow,o),window.top.addEventListener("mouseup",this.onMouseUpWindow,o)}catch(a){window.addEventListener("mousedown",this.onMouseDownWindow,o),window.addEventListener("mouseup",this.onMouseUpWindow,o),this.isTop=!1}r.pointerLock&&(this.pointerLockChange=function(t){var s=e.target;e.locked=document.pointerLockElement===s||document.mozPointerLockElement===s||document.webkitPointerLockElement===s,i.onPointerLockChange(t)},document.addEventListener("pointerlockchange",this.pointerLockChange,!0),document.addEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.addEventListener("webkitpointerlockchange",this.pointerLockChange,!0)),this.enabled=!0}},stopListeners:function(){var t=this.target;t.removeEventListener("mousemove",this.onMouseMove),t.removeEventListener("mousedown",this.onMouseDown),t.removeEventListener("mouseup",this.onMouseUp),t.removeEventListener("mouseover",this.onMouseOver),t.removeEventListener("mouseout",this.onMouseOut),window&&((t=this.isTop?window.top:window).removeEventListener("mousedown",this.onMouseDownWindow),t.removeEventListener("mouseup",this.onMouseUpWindow)),r.pointerLock&&(document.removeEventListener("pointerlockchange",this.pointerLockChange,!0),document.removeEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.removeEventListener("webkitpointerlockchange",this.pointerLockChange,!0))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});t.exports=a},87078:(t,e,i)=>{t.exports={MouseManager:i(85098)}},36210:(t,e,i)=>{var s=i(83419),r=i(8214),n=i(29747),o=new s({initialize:function(t){this.manager=t,this.capture=!0,this.enabled=!1,this.target,this.onTouchStart=n,this.onTouchStartWindow=n,this.onTouchMove=n,this.onTouchEnd=n,this.onTouchEndWindow=n,this.onTouchCancel=n,this.onTouchCancelWindow=n,this.isTop=!0,t.events.once(r.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputTouch,this.target=t.inputTouchEventTarget,this.capture=t.inputTouchCapture,this.target?"string"==typeof this.target&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,t.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener("contextmenu",(function(t){return t.preventDefault(),!1})),this},startListeners:function(){var t=this.target;if(t){var e=this,i=this.manager,s=i.canvas,r=window&&window.focus&&i.game.config.autoFocus;this.onTouchMove=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchMove(t),e.capture&&t.cancelable&&t.preventDefault())},this.onTouchStart=function(t){r&&window.focus(),!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchStart(t),e.capture&&t.cancelable&&t.target===s&&t.preventDefault())},this.onTouchStartWindow=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&t.target!==s&&i.onTouchStart(t)},this.onTouchEnd=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchEnd(t),e.capture&&t.cancelable&&t.target===s&&t.preventDefault())},this.onTouchEndWindow=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&t.target!==s&&i.onTouchEnd(t)},this.onTouchCancel=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchCancel(t),e.capture&&t.preventDefault())},this.onTouchCancelWindow=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&i.onTouchCancel(t)};var n=this.capture,o={passive:!0},a={passive:!1};if(t.addEventListener("touchstart",this.onTouchStart,n?a:o),t.addEventListener("touchmove",this.onTouchMove,n?a:o),t.addEventListener("touchend",this.onTouchEnd,n?a:o),t.addEventListener("touchcancel",this.onTouchCancel,n?a:o),window&&i.game.config.inputWindowEvents)try{window.top.addEventListener("touchstart",this.onTouchStartWindow,a),window.top.addEventListener("touchend",this.onTouchEndWindow,a),window.top.addEventListener("touchcancel",this.onTouchCancelWindow,a)}catch(h){window.addEventListener("touchstart",this.onTouchStartWindow,a),window.addEventListener("touchend",this.onTouchEndWindow,a),window.addEventListener("touchcancel",this.onTouchCancelWindow,a),this.isTop=!1}this.enabled=!0}},stopListeners:function(){var t=this.target;t.removeEventListener("touchstart",this.onTouchStart),t.removeEventListener("touchmove",this.onTouchMove),t.removeEventListener("touchend",this.onTouchEnd),t.removeEventListener("touchcancel",this.onTouchCancel),window&&((t=this.isTop?window.top:window).removeEventListener("touchstart",this.onTouchStartWindow),t.removeEventListener("touchend",this.onTouchEndWindow),t.removeEventListener("touchcancel",this.onTouchCancelWindow))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});t.exports=o},95618:(t,e,i)=>{t.exports={TouchManager:i(36210)}},41299:(t,e,i)=>{var s=i(83419),r=i(23906),n=i(54899),o=i(95540),a=i(98356),h=i(3374),l=i(84376),u=i(92638),c=new s({initialize:function(t,e){if(this.loader=t,this.cache=o(e,"cache",!1),this.type=o(e,"type",!1),!this.type)throw new Error("Invalid File type: "+this.type);this.key=o(e,"key",!1);var i=this.key;if(t.prefix&&""!==t.prefix&&(this.key=t.prefix+i),!this.key)throw new Error("Invalid File key: "+this.key);var s=o(e,"url");void 0===s?s=t.path+i+"."+o(e,"extension",""):"string"!=typeof s||s.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)||(s=t.path+s),this.url=s,this.src="",this.xhrSettings=u(o(e,"responseType",void 0)),o(e,"xhrSettings",!1)&&(this.xhrSettings=h(this.xhrSettings,o(e,"xhrSettings",{}))),this.xhrLoader=null,this.state="function"==typeof this.url?r.FILE_POPULATED:r.FILE_PENDING,this.bytesTotal=0,this.bytesLoaded=-1,this.percentComplete=-1,this.crossOrigin=void 0,this.data=void 0,this.config=o(e,"config",{}),this.multiFile,this.linkFile,this.base64="string"==typeof s&&0===s.indexOf("data:")},setLink:function(t){this.linkFile=t,t.linkFile=this},resetXHR:function(){this.xhrLoader&&(this.xhrLoader.onload=void 0,this.xhrLoader.onerror=void 0,this.xhrLoader.onprogress=void 0)},load:function(){this.state===r.FILE_POPULATED?this.loader.nextFile(this,!0):(this.state=r.FILE_LOADING,this.src=a(this,this.loader.baseURL),0===this.src.indexOf("data:")&&(this.base64=!0),this.xhrLoader=l(this,this.loader.xhr))},onLoad:function(t,e){var i=t.responseURL&&this.loader.localSchemes.some((function(e){return 0===t.responseURL.indexOf(e)}))&&0===e.target.status,s=!(e.target&&200!==e.target.status)||i;4===t.readyState&&t.status>=400&&t.status<=599&&(s=!1),this.state=r.FILE_LOADED,this.resetXHR(),this.loader.nextFile(this,s)},onBase64Load:function(t){this.xhrLoader=t,this.state=r.FILE_LOADED,this.percentComplete=1,this.loader.emit(n.FILE_PROGRESS,this,this.percentComplete),this.loader.nextFile(this,!0)},onError:function(){this.resetXHR(),this.loader.nextFile(this,!1)},onProgress:function(t){t.lengthComputable&&(this.bytesLoaded=t.loaded,this.bytesTotal=t.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(n.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=r.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=r.FILE_COMPLETE,this.multiFile&&this.multiFile.onFileComplete(this),this.loader.fileProcessComplete(this)},onProcessError:function(){console.error('Failed to process file: %s "%s"',this.type,this.key),this.state=r.FILE_ERRORED,this.multiFile&&this.multiFile.onFileFailed(this),this.loader.fileProcessComplete(this)},hasCacheConflict:function(){return this.cache&&this.cache.exists(this.key)},addToCache:function(){this.cache&&this.data&&this.cache.add(this.key,this.data)},pendingDestroy:function(t){if(this.state!==r.FILE_PENDING_DESTROY){void 0===t&&(t=this.data);var e=this.key,i=this.type;this.loader.emit(n.FILE_COMPLETE,e,i,t),this.loader.emit(n.FILE_KEY_COMPLETE+i+"-"+e,e,i,t),this.loader.flagForRemoval(this),this.state=r.FILE_PENDING_DESTROY}},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});c.createObjectURL=function(t,e,i){if("function"==typeof URL)t.src=URL.createObjectURL(e);else{var s=new FileReader;s.onload=function(){t.removeAttribute("crossOrigin"),t.src="data:"+(e.type||i)+";base64,"+s.result.split(",")[1]},s.onerror=t.onerror,s.readAsDataURL(e)}},c.revokeObjectURL=function(t){"function"==typeof URL&&URL.revokeObjectURL(t.src)},t.exports=c},74099:t=>{var e={},i={install:function(t){for(var i in e)t[i]=e[i]},register:function(t,i){e[t]=i},destroy:function(){e={}}};t.exports=i},98356:t=>{t.exports=function(t,e){return!!t.url&&(t.url.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)?t.url:e+t.url)}},74261:(t,e,i)=>{var s=i(83419),r=i(23906),n=i(35072),o=i(50792),a=i(54899),h=i(74099),l=i(95540),u=i(35154),c=i(37277),d=i(44594),p=i(92638),f=new s({Extends:o,initialize:function(t){o.call(this);var e=t.sys.game.config,i=t.sys.settings.loader;this.scene=t,this.systems=t.sys,this.cacheManager=t.sys.cache,this.textureManager=t.sys.textures,this.sceneManager=t.sys.game.scene,h.install(this),this.prefix="",this.path="",this.baseURL="",this.setBaseURL(l(i,"baseURL",e.loaderBaseURL)),this.setPath(l(i,"path",e.loaderPath)),this.setPrefix(l(i,"prefix",e.loaderPrefix)),this.maxParallelDownloads=l(i,"maxParallelDownloads",e.loaderMaxParallelDownloads),this.xhr=p(l(i,"responseType",e.loaderResponseType),l(i,"async",e.loaderAsync),l(i,"user",e.loaderUser),l(i,"password",e.loaderPassword),l(i,"timeout",e.loaderTimeout),l(i,"withCredentials",e.loaderWithCredentials)),this.crossOrigin=l(i,"crossOrigin",e.loaderCrossOrigin),this.imageLoadType=l(i,"imageLoadType",e.loaderImageLoadType),this.localSchemes=l(i,"localScheme",e.loaderLocalScheme),this.totalToLoad=0,this.progress=0,this.list=new n,this.inflight=new n,this.queue=new n,this._deleteQueue=new n,this.totalFailed=0,this.totalComplete=0,this.state=r.LOADER_IDLE,this.multiKeyIndex=0,t.sys.events.once(d.BOOT,this.boot,this),t.sys.events.on(d.START,this.pluginStart,this)},boot:function(){this.systems.events.once(d.DESTROY,this.destroy,this)},pluginStart:function(){this.systems.events.once(d.SHUTDOWN,this.shutdown,this)},setBaseURL:function(t){return void 0===t&&(t=""),""!==t&&"/"!==t.substr(-1)&&(t=t.concat("/")),this.baseURL=t,this},setPath:function(t){return void 0===t&&(t=""),""!==t&&"/"!==t.substr(-1)&&(t=t.concat("/")),this.path=t,this},setPrefix:function(t){return void 0===t&&(t=""),this.prefix=t,this},setCORS:function(t){return this.crossOrigin=t,this},addFile:function(t){Array.isArray(t)||(t=[t]);for(var e=0;e0},isLoading:function(){return this.state===r.LOADER_LOADING||this.state===r.LOADER_PROCESSING},isReady:function(){return this.state===r.LOADER_IDLE||this.state===r.LOADER_COMPLETE},start:function(){this.isReady()&&(this.progress=0,this.totalFailed=0,this.totalComplete=0,this.totalToLoad=this.list.size,this.emit(a.START,this),0===this.list.size?this.loadComplete():(this.state=r.LOADER_LOADING,this.inflight.clear(),this.queue.clear(),this.updateProgress(),this.checkLoadQueue(),this.systems.events.on(d.UPDATE,this.update,this)))},updateProgress:function(){this.progress=1-(this.list.size+this.inflight.size)/this.totalToLoad,this.emit(a.PROGRESS,this.progress)},update:function(){this.state===r.LOADER_LOADING&&this.list.size>0&&this.inflight.size{var s=i(79291),r=i(92638);t.exports=function(t,e){var i=void 0===t?r():s({},t);if(e)for(var n in e)void 0!==e[n]&&(i[n]=e[n]);return i}},26430:(t,e,i)=>{var s=i(83419),r=i(23906),n=i(54899),o=new s({initialize:function(t,e,i,s){var n=[];s.forEach((function(t){t&&n.push(t)})),this.loader=t,this.type=e,this.key=i;var o=this.key;t.prefix&&""!==t.prefix&&(this.key=t.prefix+o),this.multiKeyIndex=t.multiKeyIndex++,this.files=n,this.state=r.FILE_PENDING,this.complete=!1,this.pending=n.length,this.failed=0,this.config={},this.baseURL=t.baseURL,this.path=t.path,this.prefix=t.prefix;for(var a=0;a{var s=i(3374);t.exports=function(t,e){var i=s(e,t.xhrSettings);if(!t.base64){var r=new XMLHttpRequest;if(r.open("GET",t.src,i.async,i.user,i.password),r.responseType=t.xhrSettings.responseType,r.timeout=i.timeout,i.headers)for(var n in i.headers)r.setRequestHeader(n,i.headers[n]);return i.header&&i.headerValue&&r.setRequestHeader(i.header,i.headerValue),i.requestedWith&&r.setRequestHeader("X-Requested-With",i.requestedWith),i.overrideMimeType&&r.overrideMimeType(i.overrideMimeType),i.withCredentials&&(r.withCredentials=!0),r.onload=t.onLoad.bind(t,r),r.onerror=t.onError.bind(t,r),r.onprogress=t.onProgress.bind(t),r.ontimeout=t.onError.bind(t,r),r.send(),r}var o=t.url.split(";base64,").pop()||t.url.split(",").pop(),a={responseText:atob(o)};t.onBase64Load(a)}},92638:t=>{t.exports=function(t,e,i,s,r,n){return void 0===t&&(t=""),void 0===e&&(e=!0),void 0===i&&(i=""),void 0===s&&(s=""),void 0===r&&(r=0),void 0===n&&(n=!1),{responseType:t,async:e,user:i,password:s,timeout:r,headers:void 0,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:n}}},23906:t=>{t.exports={LOADER_IDLE:0,LOADER_LOADING:1,LOADER_PROCESSING:2,LOADER_COMPLETE:3,LOADER_SHUTDOWN:4,LOADER_DESTROYED:5,FILE_PENDING:10,FILE_LOADING:11,FILE_LOADED:12,FILE_FAILED:13,FILE_PROCESSING:14,FILE_ERRORED:16,FILE_COMPLETE:17,FILE_DESTROYED:18,FILE_POPULATED:19,FILE_PENDING_DESTROY:20}},42155:t=>{t.exports="addfile"},38991:t=>{t.exports="complete"},27540:t=>{t.exports="filecomplete"},87464:t=>{t.exports="filecomplete-"},94486:t=>{t.exports="loaderror"},13035:t=>{t.exports="load"},38144:t=>{t.exports="fileprogress"},97520:t=>{t.exports="postprocess"},85595:t=>{t.exports="progress"},55680:t=>{t.exports="start"},54899:(t,e,i)=>{t.exports={ADD:i(42155),COMPLETE:i(38991),FILE_COMPLETE:i(27540),FILE_KEY_COMPLETE:i(87464),FILE_LOAD_ERROR:i(94486),FILE_LOAD:i(13035),FILE_PROGRESS:i(38144),POST_PROCESS:i(97520),PROGRESS:i(85595),START:i(55680)}},14135:(t,e,i)=>{var s=i(83419),r=i(74099),n=i(518),o=i(54899),a=new s({Extends:n,initialize:function(t,e,i,s,r){n.call(this,t,e,i,s,r),this.type="animationJSON"},onProcess:function(){this.loader.once(o.POST_PROCESS,this.onLoadComplete,this),n.prototype.onProcess.call(this)},onLoadComplete:function(){this.loader.systems.anims.fromJSON(this.data)}});r.register("animation",(function(t,e,i,s){if(Array.isArray(t))for(var r=0;r{var s=i(83419),r=i(74099),n=i(95540),o=i(19550),a=i(41212),h=i(518),l=i(26430),u=new s({Extends:l,initialize:function(t,e,i,s,r,u){var c,d;if(a(e)){var p=e;e=n(p,"key"),c=new o(t,{key:e,url:n(p,"textureURL"),extension:n(p,"textureExtension","png"),normalMap:n(p,"normalMap"),xhrSettings:n(p,"textureXhrSettings")}),d=new h(t,{key:e,url:n(p,"atlasURL"),extension:n(p,"atlasExtension","json"),xhrSettings:n(p,"atlasXhrSettings")})}else c=new o(t,e,i,r),d=new h(t,e,s,u);c.linkFile?l.call(this,t,"atlasjson",e,[c,d,c.linkFile]):l.call(this,t,"atlasjson",e,[c,d])},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlas(t.key,t.data,e.data,i),e.addToCache(),this.complete=!0}}});r.register("aseprite",(function(t,e,i,s,r){var n;if(Array.isArray(t))for(var o=0;o{var s=i(83419),r=i(74099),n=i(95540),o=i(19550),a=i(41212),h=i(518),l=i(26430),u=new s({Extends:l,initialize:function(t,e,i,s,r,u){var c,d;if(a(e)){var p=e;e=n(p,"key"),c=new o(t,{key:e,url:n(p,"textureURL"),extension:n(p,"textureExtension","png"),normalMap:n(p,"normalMap"),xhrSettings:n(p,"textureXhrSettings")}),d=new h(t,{key:e,url:n(p,"atlasURL"),extension:n(p,"atlasExtension","json"),xhrSettings:n(p,"atlasXhrSettings")})}else c=new o(t,e,i,r),d=new h(t,e,s,u);c.linkFile?l.call(this,t,"atlasjson",e,[c,d,c.linkFile]):l.call(this,t,"atlasjson",e,[c,d])},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlas(t.key,t.data,e.data,i),this.complete=!0}}});r.register("atlas",(function(t,e,i,s,r){var n;if(Array.isArray(t))for(var o=0;o{var s=i(83419),r=i(74099),n=i(95540),o=i(19550),a=i(41212),h=i(26430),l=i(57318),u=new s({Extends:h,initialize:function(t,e,i,s,r,u){var c,d;if(a(e)){var p=e;e=n(p,"key"),c=new o(t,{key:e,url:n(p,"textureURL"),extension:n(p,"textureExtension","png"),normalMap:n(p,"normalMap"),xhrSettings:n(p,"textureXhrSettings")}),d=new l(t,{key:e,url:n(p,"atlasURL"),extension:n(p,"atlasExtension","xml"),xhrSettings:n(p,"atlasXhrSettings")})}else c=new o(t,e,i,r),d=new l(t,e,s,u);c.linkFile?h.call(this,t,"atlasxml",e,[c,d,c.linkFile]):h.call(this,t,"atlasxml",e,[c,d])},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlasXML(t.key,t.data,e.data,i),this.complete=!0}}});r.register("atlasXML",(function(t,e,i,s,r){var n;if(Array.isArray(t))for(var o=0;o{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(89749),l=i(41212),u=new s({Extends:n,initialize:function(t,e,i,s,r){if(l(e)){var o=e;e=a(o,"key"),s=a(o,"xhrSettings"),r=a(o,"context",r)}var h={type:"audio",cache:t.cacheManager.audio,extension:i.type,responseType:"arraybuffer",key:e,url:i.url,xhrSettings:s,config:{context:r}};n.call(this,t,h)},onProcess:function(){this.state=r.FILE_PROCESSING;var t=this;this.config.context.decodeAudioData(this.xhrLoader.response,(function(e){t.data=e,t.onProcessComplete()}),(function(e){console.error("Error decoding audio: "+t.key+" - ",e?e.message:null),t.onProcessError()})),this.config.context=null}});u.create=function(t,e,i,s,r){var n=t.systems.game,o=n.config.audio,c=n.device.audio;l(e)&&(i=a(e,"url",[]),s=a(e,"config",{}));var d=u.getAudioURL(n,i);return d?c.webAudio&&!o.disableWebAudio?new u(t,e,d,r,n.sound.context):new h(t,e,d,s):(console.warn('No audio URLs for "%s" matched this device',e),null)},u.getAudioURL=function(t,e){Array.isArray(e)||(e=[e]);for(var i=0;i{var s=i(21097),r=i(83419),n=i(74099),o=i(95540),a=i(41212),h=i(518),l=i(26430),u=new r({Extends:l,initialize:function(t,e,i,r,n,u,c){if(a(e)){var d=e;e=o(d,"key"),i=o(d,"jsonURL"),r=o(d,"audioURL"),n=o(d,"audioConfig"),u=o(d,"audioXhrSettings"),c=o(d,"jsonXhrSettings")}var p;if(r){var f=s.create(t,e,r,n,u);f&&(p=new h(t,e,i,c),l.call(this,t,"audiosprite",e,[f,p]),this.config.resourceLoad=!1)}else p=new h(t,e,i,c),l.call(this,t,"audiosprite",e,[p]),this.config.resourceLoad=!0,this.config.audioConfig=n,this.config.audioXhrSettings=u},onFileComplete:function(t){if(-1!==this.files.indexOf(t)&&(this.pending--,this.config.resourceLoad&&"json"===t.type&&t.data.hasOwnProperty("resources"))){var e=t.data.resources,i=o(this.config,"audioConfig"),r=o(this.config,"audioXhrSettings"),n=s.create(this.loader,t.key,e,i,r);n&&(this.addToMultiFile(n),this.loader.addFile(n))}},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1];t.addToCache(),e.addToCache(),this.complete=!0}}});n.register("audioSprite",(function(t,e,i,s,r,n){var o,a=this.systems.game,h=a.config.audio,l=a.device.audio;if(h&&h.noAudio||!l.webAudio&&!l.audioData)return this;if(Array.isArray(t))for(var c=0;c{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s,r){var o="bin";if(h(e)){var l=e;e=a(l,"key"),i=a(l,"url"),s=a(l,"xhrSettings"),o=a(l,"extension",o),r=a(l,"dataType",r)}var u={type:"binary",cache:t.cacheManager.binary,extension:o,responseType:"arraybuffer",key:e,url:i,xhrSettings:s,config:{dataType:r}};n.call(this,t,u)},onProcess:function(){this.state=r.FILE_PROCESSING;var t=this.config.dataType;this.data=t?new t(this.xhrLoader.response):this.xhrLoader.response,this.onProcessComplete()}});o.register("binary",(function(t,e,i,s){if(Array.isArray(t))for(var r=0;r{var s=i(83419),r=i(74099),n=i(95540),o=i(19550),a=i(41212),h=i(26430),l=i(21859),u=i(57318),c=new s({Extends:h,initialize:function(t,e,i,s,r,l){var c,d;if(a(e)){var p=e;e=n(p,"key"),c=new o(t,{key:e,url:n(p,"textureURL"),extension:n(p,"textureExtension","png"),normalMap:n(p,"normalMap"),xhrSettings:n(p,"textureXhrSettings")}),d=new u(t,{key:e,url:n(p,"fontDataURL"),extension:n(p,"fontDataExtension","xml"),xhrSettings:n(p,"fontDataXhrSettings")})}else c=new o(t,e,i,r),d=new u(t,e,s,l);c.linkFile?h.call(this,t,"bitmapfont",e,[c,d,c.linkFile]):h.call(this,t,"bitmapfont",e,[c,d])},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1];t.addToCache();var i=t.cache.get(t.key),s=l(e.data,t.cache.getFrame(t.key),0,0,i);this.loader.cacheManager.bitmapFont.add(t.key,{data:s,texture:t.key,frame:null}),this.complete=!0}}});r.register("bitmapFont",(function(t,e,i,s,r){var n;if(Array.isArray(t))for(var o=0;o{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s){var r="css";if(h(e)){var o=e;e=a(o,"key"),i=a(o,"url"),s=a(o,"xhrSettings"),r=a(o,"extension",r)}var l={type:"script",cache:!1,extension:r,responseType:"text",key:e,url:i,xhrSettings:s};n.call(this,t,l)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=document.createElement("style"),this.data.defer=!1,this.data.innerHTML=this.xhrLoader.responseText,document.head.appendChild(this.data),this.onProcessComplete()}});o.register("css",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(38734),r=i(85722),n=i(83419),o=i(74099),a=i(95540),h=i(19550),l=i(41212),u=i(518),c=i(31403),d=i(46975),p=i(59327),f=i(26430),g=i(82038),m=i(55222),v=new n({Extends:f,initialize:function(t,e,i,s){if(i.multiAtlasURL){var n=new u(t,{key:e,url:i.multiAtlasURL,xhrSettings:s,config:i});f.call(this,t,"texture",e,[n])}else{var o=i.textureURL.substr(i.textureURL.length-3);i.type||(i.type="ktx"===o.toLowerCase()?"KTX":"PVR");var a=new r(t,{key:e,url:i.textureURL,extension:o,xhrSettings:s,config:i});if(i.atlasURL){var h=new u(t,{key:e,url:i.atlasURL,xhrSettings:s,config:i});f.call(this,t,"texture",e,[a,h])}else f.call(this,t,"texture",e,[a])}this.config=i},onFileComplete:function(t){if(-1!==this.files.indexOf(t)){if(this.pending--,!this.config.multiAtlasURL)return;if("json"===t.type&&t.data.hasOwnProperty("textures")){var e=t.data.textures,i=this.config,s=this.loader,n=s.baseURL,o=s.path,h=s.prefix,l=a(i,"multiBaseURL",this.baseURL),u=a(i,"multiPath",this.path),c=a(i,"prefix",this.prefix),d=a(i,"textureXhrSettings");l&&s.setBaseURL(l),u&&s.setPath(u),c&&s.setPrefix(c);for(var p=0;p{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=i(73894),u=new s({Extends:n,initialize:function(t,e,i,s,r){var o="glsl";if(h(e)){var l=e;e=a(l,"key"),i=a(l,"url"),s=a(l,"shaderType","fragment"),r=a(l,"xhrSettings"),o=a(l,"extension",o)}else void 0===s&&(s="fragment");var u={type:"glsl",cache:t.cacheManager.shader,extension:o,responseType:"text",key:e,url:i,config:{shaderType:s},xhrSettings:r};n.call(this,t,u)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var t=this.data.split("\n"),e=this.extractBlock(t,0);if(e)for(;e;){var i=this.getShaderName(e.header),s=this.getShaderType(e.header),r=this.getShaderUniforms(e.header),n=e.shader;if(this.cache.has(i)){var o=this.cache.get(i);"fragment"===s?o.fragmentSrc=n:o.vertexSrc=n,o.uniforms||(o.uniforms=r)}else"fragment"===s?this.cache.add(i,new l(i,n,"",r)):this.cache.add(i,new l(i,"",n,r));e=this.extractBlock(t,e.offset)}else"fragment"===this.config.shaderType?this.cache.add(this.key,new l(this.key,this.data)):this.cache.add(this.key,new l(this.key,"",this.data))},getShaderName:function(t){for(var e=0;e{var s=i(83419),r=i(54899),n=i(41299),o=i(95540),a=i(98356),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s){if(h(e)){var r=e;e=o(r,"key"),s=o(r,"config",s)}var a={type:"audio",cache:t.cacheManager.audio,extension:i.type,key:e,url:i.url,config:s};n.call(this,t,a),this.locked="ontouchstart"in window,this.loaded=!1,this.filesLoaded=0,this.filesTotal=0},onLoad:function(){this.loaded||(this.loaded=!0,this.loader.nextFile(this,!0))},onError:function(){for(var t=0;t{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s){var r="html";if(h(e)){var o=e;e=a(o,"key"),i=a(o,"url"),s=a(o,"xhrSettings"),r=a(o,"extension",r)}var l={type:"text",cache:t.cacheManager.html,extension:r,responseType:"text",key:e,url:i,xhrSettings:s};n.call(this,t,l)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});o.register("html",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s,r,o){void 0===s&&(s=512),void 0===r&&(r=512);var l="html";if(h(e)){var u=e;e=a(u,"key"),i=a(u,"url"),o=a(u,"xhrSettings"),l=a(u,"extension",l),s=a(u,"width",s),r=a(u,"height",r)}var c={type:"html",cache:t.textureManager,extension:l,responseType:"text",key:e,url:i,xhrSettings:o,config:{width:s,height:r}};n.call(this,t,c)},onProcess:function(){this.state=r.FILE_PROCESSING;var t=this.config.width,e=this.config.height,i=[];i.push(''),i.push(''),i.push(''),i.push(this.xhrLoader.responseText),i.push(""),i.push(""),i.push("");var s=[i.join("\n")],o=this;try{var a=new window.Blob(s,{type:"image/svg+xml;charset=utf-8"})}catch(h){return o.state=r.FILE_ERRORED,void o.onProcessComplete()}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){n.revokeObjectURL(o.data),o.onProcessComplete()},this.data.onerror=function(){n.revokeObjectURL(o.data),o.onProcessError()},n.createObjectURL(this.data,a,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});o.register("htmlTexture",(function(t,e,i,s,r){if(Array.isArray(t))for(var n=0;n{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=i(98356),u=new s({Extends:n,initialize:function t(e,i,s,r,o){var l,u="png";if(h(i)){var c=i;i=a(c,"key"),s=a(c,"url"),l=a(c,"normalMap"),r=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"frameConfig")}Array.isArray(s)&&(l=s[1],s=s[0]);var d={type:"image",cache:e.textureManager,extension:u,responseType:"blob",key:i,url:s,xhrSettings:r,config:o};if(n.call(this,e,d),l){var p=new t(e,this.key,l,r,o);p.type="normalMap",this.setLink(p),e.addFile(p)}this.useImageElementLoad="HTMLImageElement"===e.imageLoadType||this.base64,this.useImageElementLoad&&(this.load=this.loadImage,this.onProcess=this.onProcessImage)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var t=this;this.data.onload=function(){n.revokeObjectURL(t.data),t.onProcessComplete()},this.data.onerror=function(){n.revokeObjectURL(t.data),t.onProcessError()},n.createObjectURL(this.data,this.xhrLoader.response,"image/png")},onProcessImage:function(){var t=this.state;this.state=r.FILE_PROCESSING,t===r.FILE_LOADED?this.onProcessComplete():this.onProcessError()},loadImage:function(){this.state=r.FILE_LOADING,this.src=l(this,this.loader.baseURL),this.data=new Image,this.data.crossOrigin=this.crossOrigin;var t=this;this.data.onload=function(){t.state=r.FILE_LOADED,t.loader.nextFile(t,!0)},this.data.onerror=function(){t.loader.nextFile(t,!1)},this.data.src=this.src},addToCache:function(){var t=this.linkFile;t?t.state>=r.FILE_COMPLETE&&("spritesheet"===t.type?t.addToCache():"normalMap"===this.type?this.cache.addImage(this.key,t.data,this.data):this.cache.addImage(this.key,this.data,t.data)):this.cache.addImage(this.key,this.data)}});o.register("image",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(35154),l=i(41212),u=new s({Extends:n,initialize:function(t,e,i,s,o){var u="json";if(l(e)){var c=e;e=a(c,"key"),i=a(c,"url"),s=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"dataKey",o)}var d={type:"json",cache:t.cacheManager.json,extension:u,responseType:"text",key:e,url:i,xhrSettings:s,config:o};n.call(this,t,d),l(i)&&(this.data=o?h(i,o):i,this.state=r.FILE_POPULATED)},onProcess:function(){if(this.state!==r.FILE_POPULATED){this.state=r.FILE_PROCESSING;try{var t=JSON.parse(this.xhrLoader.responseText)}catch(i){throw this.onProcessError(),i}var e=this.config;this.data="string"==typeof e?h(t,e,t):t}this.onProcessComplete()}});o.register("json",(function(t,e,i,s){if(Array.isArray(t))for(var r=0;r{var s=i(83419),r=i(74099),n=i(95540),o=i(19550),a=i(41212),h=i(518),l=i(26430),u=new s({Extends:l,initialize:function(t,e,i,s,r,o,u){if(a(e)){var c=e;e=n(c,"key"),i=n(c,"url",!1)?n(c,"url"):n(c,"atlasURL"),o=n(c,"xhrSettings"),s=n(c,"path"),r=n(c,"baseURL"),u=n(c,"textureXhrSettings")}var d=new h(t,e,i,o);l.call(this,t,"multiatlas",e,[d]),this.config.path=s,this.config.baseURL=r,this.config.textureXhrSettings=u},onFileComplete:function(t){if(-1!==this.files.indexOf(t)&&(this.pending--,"json"===t.type&&t.data.hasOwnProperty("textures"))){var e=t.data.textures,i=this.config,s=this.loader,r=s.baseURL,a=s.path,h=s.prefix,l=n(i,"baseURL",this.baseURL),u=n(i,"path",this.path),c=n(i,"prefix",this.prefix),d=n(i,"textureXhrSettings");s.setBaseURL(l),s.setPath(u),s.setPrefix(c);for(var p=0;p{var s=i(83419),r=i(74099),n=i(95540),o=i(41212),a=i(26430),h=i(34328),l=new s({Extends:a,initialize:function(t,e,i,s){var r="js",l=[];if(o(e)){var u=e;e=n(u,"key"),i=n(u,"url"),s=n(u,"xhrSettings"),r=n(u,"extension",r)}Array.isArray(i)||(i=[i]);for(var c=0;c{var s=i(83419),r=i(74099),n=i(95540),o=i(41212),a=i(26430),h=i(85048),l=i(61485),u=i(78776),c=new s({Extends:a,initialize:function(t,e,i,s,r,h){var l,c,d=t.cacheManager.obj;if(o(e)){var p=e;e=n(p,"key"),l=new u(t,{key:e,type:"obj",cache:d,url:n(p,"url"),extension:n(p,"extension","obj"),xhrSettings:n(p,"xhrSettings"),config:{flipUV:n(p,"flipUV",r)}}),(s=n(p,"matURL"))&&(c=new u(t,{key:e,type:"mat",cache:d,url:s,extension:n(p,"matExtension","mat"),xhrSettings:n(p,"xhrSettings")}))}else l=new u(t,{key:e,url:i,type:"obj",cache:d,extension:"obj",xhrSettings:h,config:{flipUV:r}}),s&&(c=new u(t,{key:e,url:s,type:"mat",cache:d,extension:"mat",xhrSettings:h}));a.call(this,t,"obj",e,[l,c])},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1],i=h(t.data,t.config.flipUV);e&&(i.materials=l(e.data)),t.cache.add(t.key,i),this.complete=!0}}});r.register("obj",(function(t,e,i,s,r){var n;if(Array.isArray(t))for(var o=0;o{var s=i(83419),r=i(23906),n=i(74099),o=i(518),a=new s({Extends:o,initialize:function(t,e,i,s,r){o.call(this,t,e,i,s,r),this.type="packfile"},onProcess:function(){if(this.state!==r.FILE_POPULATED&&(this.state=r.FILE_PROCESSING,this.data=JSON.parse(this.xhrLoader.responseText)),this.data.hasOwnProperty("files")&&this.config){var t={};t[this.config]=this.data,this.data=t}this.loader.addPack(this.data,this.config),this.onProcessComplete()}});n.register("pack",(function(t,e,i,s){if(Array.isArray(t))for(var r=0;r{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s,o,l){var u="js";if(h(e)){var c=e;e=a(c,"key"),i=a(c,"url"),l=a(c,"xhrSettings"),u=a(c,"extension",u),s=a(c,"start"),o=a(c,"mapping")}var d={type:"plugin",cache:!1,extension:u,responseType:"text",key:e,url:i,xhrSettings:l,config:{start:s,mapping:o}};n.call(this,t,d),"function"==typeof i&&(this.data=i,this.state=r.FILE_POPULATED)},onProcess:function(){var t=this.loader.systems.plugins,e=this.config,i=a(e,"start",!1),s=a(e,"mapping",null);if(this.state===r.FILE_POPULATED)t.install(this.key,this.data,i,s);else{this.state=r.FILE_PROCESSING,this.data=document.createElement("script"),this.data.language="javascript",this.data.type="text/javascript",this.data.defer=!1,this.data.text=this.xhrLoader.responseText,document.head.appendChild(this.data);var n=t.install(this.key,window[this.key],i,s);(i||s)&&(this.loader.systems[s]=n,this.loader.scene[s]=n)}this.onProcessComplete()}});o.register("plugin",(function(t,e,i,s,r){if(Array.isArray(t))for(var n=0;n{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s,r){var o="svg";if(h(e)){var l=e;e=a(l,"key"),i=a(l,"url"),s=a(l,"svgConfig",{}),r=a(l,"xhrSettings"),o=a(l,"extension",o)}var u={type:"svg",cache:t.textureManager,extension:o,responseType:"text",key:e,url:i,xhrSettings:r,config:{width:a(s,"width"),height:a(s,"height"),scale:a(s,"scale")}};n.call(this,t,u)},onProcess:function(){this.state=r.FILE_PROCESSING;var t=this.xhrLoader.responseText,e=[t],i=this.config.width,s=this.config.height,o=this.config.scale;t:if(i&&s||o){var a=(new DOMParser).parseFromString(t,"text/xml").getElementsByTagName("svg")[0],h=a.hasAttribute("viewBox"),l=parseFloat(a.getAttribute("width")),u=parseFloat(a.getAttribute("height"));if(!h&&l&&u)a.setAttribute("viewBox","0 0 "+l+" "+u);else if(h&&!l&&!u){var c=a.getAttribute("viewBox").split(/\s+|,/);l=c[2],u=c[3]}if(o){if(!l||!u)break t;i=l*o,s=u*o}a.setAttribute("width",i.toString()+"px"),a.setAttribute("height",s.toString()+"px"),e=[(new XMLSerializer).serializeToString(a)]}try{var d=new window.Blob(e,{type:"image/svg+xml;charset=utf-8"})}catch(g){return void this.onProcessError()}this.data=new Image,this.data.crossOrigin=this.crossOrigin;var p=this,f=!1;this.data.onload=function(){f||n.revokeObjectURL(p.data),p.onProcessComplete()},this.data.onerror=function(){f?p.onProcessError():(f=!0,n.revokeObjectURL(p.data),p.data.src="data:image/svg+xml,"+encodeURIComponent(e.join("")))},n.createObjectURL(this.data,d,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});o.register("svg",(function(t,e,i,s){if(Array.isArray(t))for(var r=0;r{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s){var r="js";if(h(e)){var o=e;e=a(o,"key"),i=a(o,"url"),s=a(o,"xhrSettings"),r=a(o,"extension",r)}var l={type:"text",extension:r,responseType:"text",key:e,url:i,xhrSettings:s};n.call(this,t,l)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var t=this.data.concat("(function(){\nreturn new "+this.key+"();\n}).call(this);"),e=eval;this.loader.sceneManager.add(this.key,e(t)),this.complete=!0}});o.register("sceneFile",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s,o,l){var u="js";if(h(e)){var c=e;e=a(c,"key"),i=a(c,"url"),l=a(c,"xhrSettings"),u=a(c,"extension",u),s=a(c,"systemKey"),o=a(c,"sceneKey")}var d={type:"scenePlugin",cache:!1,extension:u,responseType:"text",key:e,url:i,xhrSettings:l,config:{systemKey:s,sceneKey:o}};n.call(this,t,d),"function"==typeof i&&(this.data=i,this.state=r.FILE_POPULATED)},onProcess:function(){var t=this.loader.systems.plugins,e=this.config,i=this.key,s=a(e,"systemKey",i),n=a(e,"sceneKey",i);this.state===r.FILE_POPULATED?t.installScenePlugin(s,this.data,n,this.loader.scene,!0):(this.state=r.FILE_PROCESSING,this.data=document.createElement("script"),this.data.language="javascript",this.data.type="text/javascript",this.data.defer=!1,this.data.text=this.xhrLoader.responseText,document.head.appendChild(this.data),t.installScenePlugin(s,window[this.key],n,this.loader.scene,!0)),this.onProcessComplete()}});o.register("scenePlugin",(function(t,e,i,s,r){if(Array.isArray(t))for(var n=0;n{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s,r){var o="js";if(h(e)){var l=e;e=a(l,"key"),i=a(l,"url"),s=a(l,"type","script"),r=a(l,"xhrSettings"),o=a(l,"extension",o)}else void 0===s&&(s="script");var u={type:s,cache:!1,extension:o,responseType:"text",key:e,url:i,xhrSettings:r};n.call(this,t,u)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=document.createElement("script"),this.data.language="javascript",this.data.type="text/javascript",this.data.defer=!1,this.data.text=this.xhrLoader.responseText,document.head.appendChild(this.data),this.onProcessComplete()}});o.register("script",(function(t,e,i,s){if(Array.isArray(t))for(var r=0;r{var s=i(83419),r=i(23906),n=i(74099),o=i(19550),a=new s({Extends:o,initialize:function(t,e,i,s,r){o.call(this,t,e,i,r,s),this.type="spritesheet"},addToCache:function(){var t=this.linkFile;t?t.state>=r.FILE_COMPLETE&&("normalMap"===this.type?this.cache.addSpriteSheet(this.key,t.data,this.config,this.data):this.cache.addSpriteSheet(this.key,this.data,this.config,t.data)):this.cache.addSpriteSheet(this.key,this.data,this.config)}});n.register("spritesheet",(function(t,e,i,s){if(Array.isArray(t))for(var r=0;r{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s){var r="text",o="txt",l=t.cacheManager.text;if(h(e)){var u=e;e=a(u,"key"),i=a(u,"url"),s=a(u,"xhrSettings"),o=a(u,"extension",o),r=a(u,"type",r),l=a(u,"cache",l)}var c={type:r,cache:l,extension:o,responseType:"text",key:e,url:i,xhrSettings:s};n.call(this,t,c)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});o.register("text",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=i(80341),u=new s({Extends:n,initialize:function(t,e,i,s){var r="csv";if(h(e)){var o=e;e=a(o,"key"),i=a(o,"url"),s=a(o,"xhrSettings"),r=a(o,"extension",r)}var u={type:"tilemapCSV",cache:t.cacheManager.tilemap,extension:r,responseType:"text",key:e,url:i,xhrSettings:s};n.call(this,t,u),this.tilemapFormat=l.CSV},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var t={format:this.tilemapFormat,data:this.data};this.cache.add(this.key,t)}});o.register("tilemapCSV",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(83419),r=i(74099),n=i(518),o=i(80341),a=new s({Extends:n,initialize:function(t,e,i,s){n.call(this,t,e,i,s),this.type="tilemapJSON",this.cache=t.cacheManager.tilemap},addToCache:function(){var t={format:o.WELTMEISTER,data:this.data};this.cache.add(this.key,t)}});r.register("tilemapImpact",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(83419),r=i(74099),n=i(518),o=i(80341),a=new s({Extends:n,initialize:function(t,e,i,s){n.call(this,t,e,i,s),this.type="tilemapJSON",this.cache=t.cacheManager.tilemap},addToCache:function(){var t={format:o.TILED_JSON,data:this.data};this.cache.add(this.key,t)}});r.register("tilemapTiledJSON",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(83419),r=i(74099),n=i(95540),o=i(19550),a=i(41212),h=i(26430),l=i(78776),u=new s({Extends:h,initialize:function(t,e,i,s,r,u){var c,d;if(a(e)){var p=e;e=n(p,"key"),c=new o(t,{key:e,url:n(p,"textureURL"),extension:n(p,"textureExtension","png"),normalMap:n(p,"normalMap"),xhrSettings:n(p,"textureXhrSettings")}),d=new l(t,{key:e,url:n(p,"atlasURL"),extension:n(p,"atlasExtension","txt"),xhrSettings:n(p,"atlasXhrSettings")})}else c=new o(t,e,i,r),d=new l(t,e,s,u);c.linkFile?h.call(this,t,"unityatlas",e,[c,d,c.linkFile]):h.call(this,t,"unityatlas",e,[c,d])},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null;this.loader.textureManager.addUnityAtlas(t.key,t.data,e.data,i),this.complete=!0}}});r.register("unityAtlas",(function(t,e,i,s,r){var n;if(Array.isArray(t))for(var o=0;o{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(98356),h=i(95540),l=i(41212),u=new s({Extends:n,initialize:function(t,e,i,s){if(void 0===s&&(s=!1),l(e)){var r=e;e=h(r,"key"),i=h(r,"url",[]),s=h(r,"noAudio",!1)}var o=t.systems.game.device.video.getVideoURL(i);o||console.warn("VideoFile: No supported format for "+e);var a={type:"video",cache:t.cacheManager.video,extension:o.type,key:e,url:o.url,config:{noAudio:s}};n.call(this,t,a)},onProcess:function(){this.data={url:this.src,noAudio:this.config.noAudio,crossOrigin:this.crossOrigin},this.onProcessComplete()},load:function(){this.src=a(this,this.loader.baseURL),this.state=r.FILE_LOADED,this.loader.nextFile(this,!0)}});o.register("video",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=i(56836),u=new s({Extends:n,initialize:function(t,e,i,s){var r="xml";if(h(e)){var o=e;e=a(o,"key"),i=a(o,"url"),s=a(o,"xhrSettings"),r=a(o,"extension",r)}var l={type:"xml",cache:t.cacheManager.xml,extension:r,responseType:"text",key:e,url:i,xhrSettings:s};n.call(this,t,l)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=l(this.xhrLoader.responseText),this.data?this.onProcessComplete():this.onProcessError()}});o.register("xml",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{t.exports={AnimationJSONFile:i(14135),AsepriteFile:i(76272),AtlasJSONFile:i(38734),AtlasXMLFile:i(74599),AudioFile:i(21097),AudioSpriteFile:i(89524),BinaryFile:i(85722),BitmapFontFile:i(97025),CompressedTextureFile:i(69559),CSSFile:i(16024),GLSLFile:i(47931),HTML5AudioFile:i(89749),HTMLFile:i(88470),HTMLTextureFile:i(14643),ImageFile:i(19550),JSONFile:i(518),MultiAtlasFile:i(59327),MultiScriptFile:i(99297),OBJFile:i(41846),PackFile:i(58610),PluginFile:i(48988),SceneFile:i(88423),ScenePluginFile:i(56812),ScriptFile:i(34328),SpriteSheetFile:i(85035),SVGFile:i(67397),TextFile:i(78776),TilemapCSVFile:i(49477),TilemapImpactFile:i(40807),TilemapJSONFile:i(56775),UnityAtlasFile:i(25771),VideoFile:i(33720),XMLFile:i(57318)}},57777:(t,e,i)=>{var s=i(23906),r=i(79291),n={Events:i(54899),FileTypes:i(64589),File:i(41299),FileTypesManager:i(74099),GetURL:i(98356),LoaderPlugin:i(74261),MergeXHRSettings:i(3374),MultiFile:i(26430),XHRLoader:i(84376),XHRSettings:i(92638)};n=r(!1,n,s),t.exports=n},53307:t=>{t.exports=function(t){for(var e=0,i=0;i{var s=i(6411);t.exports=function(t,e){return s(t)/s(e)/s(t-e)}},30976:t=>{t.exports=function(t,e){return Math.floor(Math.random()*(e-t+1)+t)}},87842:t=>{t.exports=function(t,e,i,s,r){var n=.5*(s-e),o=.5*(r-i),a=t*t;return(2*i-2*s+n+o)*(t*a)+(-3*i+3*s-2*n-o)*a+n*t+i}},26302:t=>{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);var s=Math.pow(i,-e);return Math.ceil(t*s)/s}},45319:t=>{t.exports=function(t,e,i){return Math.max(e,Math.min(i,t))}},39506:(t,e,i)=>{var s=i(36383);t.exports=function(t){return t*s.DEG_TO_RAD}},61241:t=>{t.exports=function(t,e){return Math.abs(t-e)}},38857:(t,e,i)=>{var s=i(45319),r=i(83419),n=i(37867),o=i(29747),a=new n,h=new r({initialize:function t(e,i,s,r){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=t.DefaultOrder),this._x=e,this._y=i,this._z=s,this._order=r,this.onChangeCallback=o},x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback(this)}},order:{get:function(){return this._order},set:function(t){this._order=t,this.onChangeCallback(this)}},set:function(t,e,i,s){return void 0===s&&(s=this._order),this._x=t,this._y=e,this._z=i,this._order=s,this.onChangeCallback(this),this},copy:function(t){return this.set(t.x,t.y,t.z,t.order)},setFromQuaternion:function(t,e,i){return void 0===e&&(e=this._order),void 0===i&&(i=!1),a.fromQuat(t),this.setFromRotationMatrix(a,e,i)},setFromRotationMatrix:function(t,e,i){void 0===e&&(e=this._order),void 0===i&&(i=!1);var r=t.val,n=r[0],o=r[4],a=r[8],h=r[1],l=r[5],u=r[9],c=r[2],d=r[6],p=r[10],f=0,g=0,m=0,v=.99999;switch(e){case"XYZ":g=Math.asin(s(a,-1,1)),Math.abs(a){t.exports=function(t){if(0===t)return 1;for(var e=t;--t;)e*=t;return e}},99472:t=>{t.exports=function(t,e){return Math.random()*(e-t)+t}},77623:t=>{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);var s=Math.pow(i,-e);return Math.floor(t*s)/s}},62945:(t,e,i)=>{var s=i(45319);t.exports=function(t,e,i){return(i-e)*(t=s(t,0,1))+e}},38265:t=>{t.exports=function(t,e){return t/e/1e3}},78702:t=>{t.exports=function(t){return t==parseFloat(t)?!(t%2):void 0}},94883:t=>{t.exports=function(t){return t===parseFloat(t)?!(t%2):void 0}},28915:t=>{t.exports=function(t,e,i){return(e-t)*i+t}},94908:t=>{t.exports=function(t,e,i){return void 0===i&&(i=0),t.clone().lerp(e,i)}},94434:(t,e,i)=>{var s=new(i(83419))({initialize:function(t){this.val=new Float32Array(9),t?this.copy(t):this.identity()},clone:function(){return new s(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],this},fromMat4:function(t){var e=t.val,i=this.val;return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[4],i[4]=e[5],i[5]=e[6],i[6]=e[8],i[7]=e[9],i[8]=e[10],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],s=t[5];return t[1]=t[3],t[2]=t[6],t[3]=e,t[5]=t[7],t[6]=i,t[7]=s,this},invert:function(){var t=this.val,e=t[0],i=t[1],s=t[2],r=t[3],n=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=l*n-o*h,c=-l*r+o*a,d=h*r-n*a,p=e*u+i*c+s*d;return p?(p=1/p,t[0]=u*p,t[1]=(-l*i+s*h)*p,t[2]=(o*i-s*n)*p,t[3]=c*p,t[4]=(l*e-s*a)*p,t[5]=(-o*e+s*r)*p,t[6]=d*p,t[7]=(-h*e+i*a)*p,t[8]=(n*e-i*r)*p,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],s=t[2],r=t[3],n=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return t[0]=n*l-o*h,t[1]=s*h-i*l,t[2]=i*o-s*n,t[3]=o*a-r*l,t[4]=e*l-s*a,t[5]=s*r-e*o,t[6]=r*h-n*a,t[7]=i*a-e*h,t[8]=e*n-i*r,this},determinant:function(){var t=this.val,e=t[0],i=t[1],s=t[2],r=t[3],n=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return e*(l*n-o*h)+i*(-l*r+o*a)+s*(h*r-n*a)},multiply:function(t){var e=this.val,i=e[0],s=e[1],r=e[2],n=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=t.val,d=c[0],p=c[1],f=c[2],g=c[3],m=c[4],v=c[5],y=c[6],x=c[7],w=c[8];return e[0]=d*i+p*n+f*h,e[1]=d*s+p*o+f*l,e[2]=d*r+p*a+f*u,e[3]=g*i+m*n+v*h,e[4]=g*s+m*o+v*l,e[5]=g*r+m*a+v*u,e[6]=y*i+x*n+w*h,e[7]=y*s+x*o+w*l,e[8]=y*r+x*a+w*u,this},translate:function(t){var e=this.val,i=t.x,s=t.y;return e[6]=i*e[0]+s*e[3]+e[6],e[7]=i*e[1]+s*e[4]+e[7],e[8]=i*e[2]+s*e[5]+e[8],this},rotate:function(t){var e=this.val,i=e[0],s=e[1],r=e[2],n=e[3],o=e[4],a=e[5],h=Math.sin(t),l=Math.cos(t);return e[0]=l*i+h*n,e[1]=l*s+h*o,e[2]=l*r+h*a,e[3]=l*n-h*i,e[4]=l*o-h*s,e[5]=l*a-h*r,this},scale:function(t){var e=this.val,i=t.x,s=t.y;return e[0]=i*e[0],e[1]=i*e[1],e[2]=i*e[2],e[3]=s*e[3],e[4]=s*e[4],e[5]=s*e[5],this},fromQuat:function(t){var e=t.x,i=t.y,s=t.z,r=t.w,n=e+e,o=i+i,a=s+s,h=e*n,l=e*o,u=e*a,c=i*o,d=i*a,p=s*a,f=r*n,g=r*o,m=r*a,v=this.val;return v[0]=1-(c+p),v[3]=l+m,v[6]=u-g,v[1]=l-m,v[4]=1-(h+p),v[7]=d+f,v[2]=u+g,v[5]=d-f,v[8]=1-(h+c),this},normalFromMat4:function(t){var e=t.val,i=this.val,s=e[0],r=e[1],n=e[2],o=e[3],a=e[4],h=e[5],l=e[6],u=e[7],c=e[8],d=e[9],p=e[10],f=e[11],g=e[12],m=e[13],v=e[14],y=e[15],x=s*h-r*a,w=s*l-n*a,T=s*u-o*a,b=r*l-n*h,S=r*u-o*h,E=n*u-o*l,C=c*m-d*g,A=c*v-p*g,_=c*y-f*g,P=d*v-p*m,R=d*y-f*m,M=p*y-f*v,k=x*M-w*R+T*P+b*_-S*A+E*C;return k?(k=1/k,i[0]=(h*M-l*R+u*P)*k,i[1]=(l*_-a*M-u*A)*k,i[2]=(a*R-h*_+u*C)*k,i[3]=(n*R-r*M-o*P)*k,i[4]=(s*M-n*_+o*A)*k,i[5]=(r*_-s*R-o*C)*k,i[6]=(m*E-v*S+y*b)*k,i[7]=(v*T-g*E-y*w)*k,i[8]=(g*S-m*T+y*x)*k,this):null}});t.exports=s},37867:(t,e,i)=>{var s=i(83419),r=i(25836),n=1e-6,o=new s({initialize:function(t){this.val=new Float32Array(16),t?this.copy(t):this.identity()},clone:function(){return new o(this)},set:function(t){return this.copy(t)},setValues:function(t,e,i,s,r,n,o,a,h,l,u,c,d,p,f,g){var m=this.val;return m[0]=t,m[1]=e,m[2]=i,m[3]=s,m[4]=r,m[5]=n,m[6]=o,m[7]=a,m[8]=h,m[9]=l,m[10]=u,m[11]=c,m[12]=d,m[13]=p,m[14]=f,m[15]=g,this},copy:function(t){var e=t.val;return this.setValues(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])},fromArray:function(t){return this.setValues(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},zero:function(){return this.setValues(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)},transform:function(t,e,i){var s=a.fromQuat(i).val,r=e.x,n=e.y,o=e.z;return this.setValues(s[0]*r,s[1]*r,s[2]*r,0,s[4]*n,s[5]*n,s[6]*n,0,s[8]*o,s[9]*o,s[10]*o,0,t.x,t.y,t.z,1)},xyz:function(t,e,i){this.identity();var s=this.val;return s[12]=t,s[13]=e,s[14]=i,this},scaling:function(t,e,i){this.zero();var s=this.val;return s[0]=t,s[5]=e,s[10]=i,s[15]=1,this},identity:function(){return this.setValues(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)},transpose:function(){var t=this.val,e=t[1],i=t[2],s=t[3],r=t[6],n=t[7],o=t[11];return t[1]=t[4],t[2]=t[8],t[3]=t[12],t[4]=e,t[6]=t[9],t[7]=t[13],t[8]=i,t[9]=r,t[11]=t[14],t[12]=s,t[13]=n,t[14]=o,this},getInverse:function(t){return this.copy(t),this.invert()},invert:function(){var t=this.val,e=t[0],i=t[1],s=t[2],r=t[3],n=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],p=t[12],f=t[13],g=t[14],m=t[15],v=e*o-i*n,y=e*a-s*n,x=e*h-r*n,w=i*a-s*o,T=i*h-r*o,b=s*h-r*a,S=l*f-u*p,E=l*g-c*p,C=l*m-d*p,A=u*g-c*f,_=u*m-d*f,P=c*m-d*g,R=v*P-y*_+x*A+w*C-T*E+b*S;return R?(R=1/R,this.setValues((o*P-a*_+h*A)*R,(s*_-i*P-r*A)*R,(f*b-g*T+m*w)*R,(c*T-u*b-d*w)*R,(a*C-n*P-h*E)*R,(e*P-s*C+r*E)*R,(g*x-p*b-m*y)*R,(l*b-c*x+d*y)*R,(n*_-o*C+h*S)*R,(i*C-e*_-r*S)*R,(p*T-f*x+m*v)*R,(u*x-l*T-d*v)*R,(o*E-n*A-a*S)*R,(e*A-i*E+s*S)*R,(f*y-p*w-g*v)*R,(l*w-u*y+c*v)*R)):this},adjoint:function(){var t=this.val,e=t[0],i=t[1],s=t[2],r=t[3],n=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],p=t[12],f=t[13],g=t[14],m=t[15];return this.setValues(o*(c*m-d*g)-u*(a*m-h*g)+f*(a*d-h*c),-(i*(c*m-d*g)-u*(s*m-r*g)+f*(s*d-r*c)),i*(a*m-h*g)-o*(s*m-r*g)+f*(s*h-r*a),-(i*(a*d-h*c)-o*(s*d-r*c)+u*(s*h-r*a)),-(n*(c*m-d*g)-l*(a*m-h*g)+p*(a*d-h*c)),e*(c*m-d*g)-l*(s*m-r*g)+p*(s*d-r*c),-(e*(a*m-h*g)-n*(s*m-r*g)+p*(s*h-r*a)),e*(a*d-h*c)-n*(s*d-r*c)+l*(s*h-r*a),n*(u*m-d*f)-l*(o*m-h*f)+p*(o*d-h*u),-(e*(u*m-d*f)-l*(i*m-r*f)+p*(i*d-r*u)),e*(o*m-h*f)-n*(i*m-r*f)+p*(i*h-r*o),-(e*(o*d-h*u)-n*(i*d-r*u)+l*(i*h-r*o)),-(n*(u*g-c*f)-l*(o*g-a*f)+p*(o*c-a*u)),e*(u*g-c*f)-l*(i*g-s*f)+p*(i*c-s*u),-(e*(o*g-a*f)-n*(i*g-s*f)+p*(i*a-s*o)),e*(o*c-a*u)-n*(i*c-s*u)+l*(i*a-s*o))},determinant:function(){var t=this.val,e=t[0],i=t[1],s=t[2],r=t[3],n=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],p=t[12],f=t[13],g=t[14],m=t[15];return(e*o-i*n)*(c*m-d*g)-(e*a-s*n)*(u*m-d*f)+(e*h-r*n)*(u*g-c*f)+(i*a-s*o)*(l*m-d*p)-(i*h-r*o)*(l*g-c*p)+(s*h-r*a)*(l*f-u*p)},multiply:function(t){var e=this.val,i=e[0],s=e[1],r=e[2],n=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=e[9],d=e[10],p=e[11],f=e[12],g=e[13],m=e[14],v=e[15],y=t.val,x=y[0],w=y[1],T=y[2],b=y[3];return e[0]=x*i+w*o+T*u+b*f,e[1]=x*s+w*a+T*c+b*g,e[2]=x*r+w*h+T*d+b*m,e[3]=x*n+w*l+T*p+b*v,x=y[4],w=y[5],T=y[6],b=y[7],e[4]=x*i+w*o+T*u+b*f,e[5]=x*s+w*a+T*c+b*g,e[6]=x*r+w*h+T*d+b*m,e[7]=x*n+w*l+T*p+b*v,x=y[8],w=y[9],T=y[10],b=y[11],e[8]=x*i+w*o+T*u+b*f,e[9]=x*s+w*a+T*c+b*g,e[10]=x*r+w*h+T*d+b*m,e[11]=x*n+w*l+T*p+b*v,x=y[12],w=y[13],T=y[14],b=y[15],e[12]=x*i+w*o+T*u+b*f,e[13]=x*s+w*a+T*c+b*g,e[14]=x*r+w*h+T*d+b*m,e[15]=x*n+w*l+T*p+b*v,this},multiplyLocal:function(t){var e=this.val,i=t.val;return this.setValues(e[0]*i[0]+e[1]*i[4]+e[2]*i[8]+e[3]*i[12],e[0]*i[1]+e[1]*i[5]+e[2]*i[9]+e[3]*i[13],e[0]*i[2]+e[1]*i[6]+e[2]*i[10]+e[3]*i[14],e[0]*i[3]+e[1]*i[7]+e[2]*i[11]+e[3]*i[15],e[4]*i[0]+e[5]*i[4]+e[6]*i[8]+e[7]*i[12],e[4]*i[1]+e[5]*i[5]+e[6]*i[9]+e[7]*i[13],e[4]*i[2]+e[5]*i[6]+e[6]*i[10]+e[7]*i[14],e[4]*i[3]+e[5]*i[7]+e[6]*i[11]+e[7]*i[15],e[8]*i[0]+e[9]*i[4]+e[10]*i[8]+e[11]*i[12],e[8]*i[1]+e[9]*i[5]+e[10]*i[9]+e[11]*i[13],e[8]*i[2]+e[9]*i[6]+e[10]*i[10]+e[11]*i[14],e[8]*i[3]+e[9]*i[7]+e[10]*i[11]+e[11]*i[15],e[12]*i[0]+e[13]*i[4]+e[14]*i[8]+e[15]*i[12],e[12]*i[1]+e[13]*i[5]+e[14]*i[9]+e[15]*i[13],e[12]*i[2]+e[13]*i[6]+e[14]*i[10]+e[15]*i[14],e[12]*i[3]+e[13]*i[7]+e[14]*i[11]+e[15]*i[15])},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var i=t.val,s=e.val,r=i[0],n=i[4],o=i[8],a=i[12],h=i[1],l=i[5],u=i[9],c=i[13],d=i[2],p=i[6],f=i[10],g=i[14],m=i[3],v=i[7],y=i[11],x=i[15],w=s[0],T=s[4],b=s[8],S=s[12],E=s[1],C=s[5],A=s[9],_=s[13],P=s[2],R=s[6],M=s[10],k=s[14],L=s[3],O=s[7],F=s[11],D=s[15];return this.setValues(r*w+n*E+o*P+a*L,h*w+l*E+u*P+c*L,d*w+p*E+f*P+g*L,m*w+v*E+y*P+x*L,r*T+n*C+o*R+a*O,h*T+l*C+u*R+c*O,d*T+p*C+f*R+g*O,m*T+v*C+y*R+x*O,r*b+n*A+o*M+a*F,h*b+l*A+u*M+c*F,d*b+p*A+f*M+g*F,m*b+v*A+y*M+x*F,r*S+n*_+o*k+a*D,h*S+l*_+u*k+c*D,d*S+p*_+f*k+g*D,m*S+v*_+y*k+x*D)},translate:function(t){return this.translateXYZ(t.x,t.y,t.z)},translateXYZ:function(t,e,i){var s=this.val;return s[12]=s[0]*t+s[4]*e+s[8]*i+s[12],s[13]=s[1]*t+s[5]*e+s[9]*i+s[13],s[14]=s[2]*t+s[6]*e+s[10]*i+s[14],s[15]=s[3]*t+s[7]*e+s[11]*i+s[15],this},scale:function(t){return this.scaleXYZ(t.x,t.y,t.z)},scaleXYZ:function(t,e,i){var s=this.val;return s[0]=s[0]*t,s[1]=s[1]*t,s[2]=s[2]*t,s[3]=s[3]*t,s[4]=s[4]*e,s[5]=s[5]*e,s[6]=s[6]*e,s[7]=s[7]*e,s[8]=s[8]*i,s[9]=s[9]*i,s[10]=s[10]*i,s[11]=s[11]*i,this},makeRotationAxis:function(t,e){var i=Math.cos(e),s=Math.sin(e),r=1-i,n=t.x,o=t.y,a=t.z,h=r*n,l=r*o;return this.setValues(h*n+i,h*o-s*a,h*a+s*o,0,h*o+s*a,l*o+i,l*a-s*n,0,h*a-s*o,l*a+s*n,r*a*a+i,0,0,0,0,1)},rotate:function(t,e){var i=this.val,s=e.x,r=e.y,o=e.z,a=Math.sqrt(s*s+r*r+o*o);if(Math.abs(a){t.exports=function(t,e,i){return Math.min(t+e,i)}},50040:t=>{t.exports=function(t){var e=t.length;if(0===e)return 0;t.sort((function(t,e){return t-e}));var i=Math.floor(e/2);return e%2==0?(t[i]+t[i-1])/2:t[i]}},37204:t=>{t.exports=function(t,e,i){return Math.max(t-e,i)}},65201:t=>{t.exports=function(t,e,i,s){void 0===i&&(i=e+1);var r=(t-e)/(i-e);return r>1?void 0!==s?(r=(s-t)/(s-i))<0&&(r=0):r=1:r<0&&(r=0),r}},15746:(t,e,i)=>{var s=i(83419),r=i(94434),n=i(29747),o=i(25836),a=1e-6,h=new Int8Array([1,2,0]),l=new Float32Array([0,0,0]),u=new o(1,0,0),c=new o(0,1,0),d=new o,p=new r,f=new s({initialize:function(t,e,i,s){this.onChangeCallback=n,this.set(t,e,i,s)},x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback(this)}},w:{get:function(){return this._w},set:function(t){this._w=t,this.onChangeCallback(this)}},copy:function(t){return this.set(t)},set:function(t,e,i,s,r){return void 0===r&&(r=!0),"object"==typeof t?(this._x=t.x||0,this._y=t.y||0,this._z=t.z||0,this._w=t.w||0):(this._x=t||0,this._y=e||0,this._z=i||0,this._w=s||0),r&&this.onChangeCallback(this),this},add:function(t){return this._x+=t.x,this._y+=t.y,this._z+=t.z,this._w+=t.w,this.onChangeCallback(this),this},subtract:function(t){return this._x-=t.x,this._y-=t.y,this._z-=t.z,this._w-=t.w,this.onChangeCallback(this),this},scale:function(t){return this._x*=t,this._y*=t,this._z*=t,this._w*=t,this.onChangeCallback(this),this},length:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return Math.sqrt(t*t+e*e+i*i+s*s)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return t*t+e*e+i*i+s*s},normalize:function(){var t=this.x,e=this.y,i=this.z,s=this.w,r=t*t+e*e+i*i+s*s;return r>0&&(r=1/Math.sqrt(r),this._x=t*r,this._y=e*r,this._z=i*r,this._w=s*r),this.onChangeCallback(this),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,s=this.y,r=this.z,n=this.w;return this.set(i+e*(t.x-i),s+e*(t.y-s),r+e*(t.z-r),n+e*(t.w-n))},rotationTo:function(t,e){var i=t.x*e.x+t.y*e.y+t.z*e.z;return i<-.999999?(d.copy(u).cross(t).length().999999?this.set(0,0,0,1):(d.copy(t).cross(e),this._x=d.x,this._y=d.y,this._z=d.z,this._w=1+i,this.normalize())},setAxes:function(t,e,i){var s=p.val;return s[0]=e.x,s[3]=e.y,s[6]=e.z,s[1]=i.x,s[4]=i.y,s[7]=i.z,s[2]=-t.x,s[5]=-t.y,s[8]=-t.z,this.fromMat3(p).normalize()},identity:function(){return this.set(0,0,0,1)},setAxisAngle:function(t,e){e*=.5;var i=Math.sin(e);return this.set(i*t.x,i*t.y,i*t.z,Math.cos(e))},multiply:function(t){var e=this.x,i=this.y,s=this.z,r=this.w,n=t.x,o=t.y,a=t.z,h=t.w;return this.set(e*h+r*n+i*a-s*o,i*h+r*o+s*n-e*a,s*h+r*a+e*o-i*n,r*h-e*n-i*o-s*a)},slerp:function(t,e){var i=this.x,s=this.y,r=this.z,n=this.w,o=t.x,h=t.y,l=t.z,u=t.w,c=i*o+s*h+r*l+n*u;c<0&&(c=-c,o=-o,h=-h,l=-l,u=-u);var d=1-e,p=e;if(1-c>a){var f=Math.acos(c),g=Math.sin(f);d=Math.sin((1-e)*f)/g,p=Math.sin(e*f)/g}return this.set(d*i+p*o,d*s+p*h,d*r+p*l,d*n+p*u)},invert:function(){var t=this.x,e=this.y,i=this.z,s=this.w,r=t*t+e*e+i*i+s*s,n=r?1/r:0;return this.set(-t*n,-e*n,-i*n,s*n)},conjugate:function(){return this._x=-this.x,this._y=-this.y,this._z=-this.z,this.onChangeCallback(this),this},rotateX:function(t){t*=.5;var e=this.x,i=this.y,s=this.z,r=this.w,n=Math.sin(t),o=Math.cos(t);return this.set(e*o+r*n,i*o+s*n,s*o-i*n,r*o-e*n)},rotateY:function(t){t*=.5;var e=this.x,i=this.y,s=this.z,r=this.w,n=Math.sin(t),o=Math.cos(t);return this.set(e*o-s*n,i*o+r*n,s*o+e*n,r*o-i*n)},rotateZ:function(t){t*=.5;var e=this.x,i=this.y,s=this.z,r=this.w,n=Math.sin(t),o=Math.cos(t);return this.set(e*o+i*n,i*o-e*n,s*o+r*n,r*o-s*n)},calculateW:function(){var t=this.x,e=this.y,i=this.z;return this.w=-Math.sqrt(1-t*t-e*e-i*i),this},setFromEuler:function(t,e){var i=t.x/2,s=t.y/2,r=t.z/2,n=Math.cos(i),o=Math.cos(s),a=Math.cos(r),h=Math.sin(i),l=Math.sin(s),u=Math.sin(r);switch(t.order){case"XYZ":this.set(h*o*a+n*l*u,n*l*a-h*o*u,n*o*u+h*l*a,n*o*a-h*l*u,e);break;case"YXZ":this.set(h*o*a+n*l*u,n*l*a-h*o*u,n*o*u-h*l*a,n*o*a+h*l*u,e);break;case"ZXY":this.set(h*o*a-n*l*u,n*l*a+h*o*u,n*o*u+h*l*a,n*o*a-h*l*u,e);break;case"ZYX":this.set(h*o*a-n*l*u,n*l*a+h*o*u,n*o*u-h*l*a,n*o*a+h*l*u,e);break;case"YZX":this.set(h*o*a+n*l*u,n*l*a+h*o*u,n*o*u-h*l*a,n*o*a-h*l*u,e);break;case"XZY":this.set(h*o*a-n*l*u,n*l*a-h*o*u,n*o*u+h*l*a,n*o*a+h*l*u,e)}return this},setFromRotationMatrix:function(t){var e,i=t.val,s=i[0],r=i[4],n=i[8],o=i[1],a=i[5],h=i[9],l=i[2],u=i[6],c=i[10],d=s+a+c;return d>0?(e=.5/Math.sqrt(d+1),this.set((u-h)*e,(n-l)*e,(o-r)*e,.25/e)):s>a&&s>c?(e=2*Math.sqrt(1+s-a-c),this.set(.25*e,(r+o)/e,(n+l)/e,(u-h)/e)):a>c?(e=2*Math.sqrt(1+a-s-c),this.set((r+o)/e,.25*e,(h+u)/e,(n-l)/e)):(e=2*Math.sqrt(1+c-s-a),this.set((n+l)/e,(h+u)/e,.25*e,(o-r)/e)),this},fromMat3:function(t){var e,i=t.val,s=i[0]+i[4]+i[8];if(s>0)e=Math.sqrt(s+1),this.w=.5*e,e=.5/e,this._x=(i[7]-i[5])*e,this._y=(i[2]-i[6])*e,this._z=(i[3]-i[1])*e;else{var r=0;i[4]>i[0]&&(r=1),i[8]>i[3*r+r]&&(r=2);var n=h[r],o=h[n];e=Math.sqrt(i[3*r+r]-i[3*n+n]-i[3*o+o]+1),l[r]=.5*e,e=.5/e,l[n]=(i[3*n+r]+i[3*r+n])*e,l[o]=(i[3*o+r]+i[3*r+o])*e,this._x=l[0],this._y=l[1],this._z=l[2],this._w=(i[3*o+n]-i[3*n+o])*e}return this.onChangeCallback(this),this}});t.exports=f},43396:(t,e,i)=>{var s=i(36383);t.exports=function(t){return t*s.RAD_TO_DEG}},74362:t=>{t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI;return t.x=Math.cos(i)*e,t.y=Math.sin(i)*e,t}},60706:t=>{t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI,s=2*Math.random()-1,r=Math.sqrt(1-s*s)*e;return t.x=Math.cos(i)*r,t.y=Math.sin(i)*r,t.z=s*e,t}},67421:t=>{t.exports=function(t,e){return void 0===e&&(e=1),t.x=(2*Math.random()-1)*e,t.y=(2*Math.random()-1)*e,t.z=(2*Math.random()-1)*e,t.w=(2*Math.random()-1)*e,t}},36305:t=>{t.exports=function(t,e){var i=t.x,s=t.y;return t.x=i*Math.cos(e)-s*Math.sin(e),t.y=i*Math.sin(e)+s*Math.cos(e),t}},11520:t=>{t.exports=function(t,e,i,s){var r=Math.cos(s),n=Math.sin(s),o=t.x-e,a=t.y-i;return t.x=o*r-a*n+e,t.y=o*n+a*r+i,t}},1163:t=>{t.exports=function(t,e,i,s,r){var n=s+Math.atan2(t.y-i,t.x-e);return t.x=e+r*Math.cos(n),t.y=i+r*Math.sin(n),t}},70336:t=>{t.exports=function(t,e,i,s,r){return t.x=e+r*Math.cos(s),t.y=i+r*Math.sin(s),t}},72678:(t,e,i)=>{var s=i(25836),r=i(37867),n=i(15746),o=new r,a=new n,h=new s;t.exports=function(t,e,i){return a.setAxisAngle(e,i),o.fromRotationTranslation(a,h.set(0,0,0)),t.transformMat4(o)}},2284:t=>{t.exports=function(t){return t>0?Math.ceil(t):Math.floor(t)}},41013:t=>{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);var s=Math.pow(i,-e);return Math.round(t*s)/s}},16922:t=>{t.exports=function(t,e,i,s){void 0===e&&(e=1),void 0===i&&(i=1),void 0===s&&(s=1),s*=Math.PI/t;for(var r=[],n=[],o=0;o{t.exports=function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e))*t*(3-2*t)}},54261:t=>{t.exports=function(t,e,i){return(t=Math.max(0,Math.min(1,(t-e)/(i-e))))*t*t*(t*(6*t-15)+10)}},44408:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r){void 0===r&&(r=new s);var n=0,o=0;return t>0&&t<=e*i&&(n=t>e-1?t-(o=Math.floor(t/e))*e:t),r.set(n,o)}},85955:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r,n,o,a,h){void 0===h&&(h=new s);var l=Math.sin(n),u=Math.cos(n),c=u*o,d=l*o,p=-l*a,f=u*a,g=1/(c*f+p*-d);return h.x=f*g*t+-p*g*e+(r*p-i*f)*g,h.y=c*g*e+-d*g*t+(-r*c+i*d)*g,h}},26099:(t,e,i)=>{var s=i(83419),r=i(43855),n=new s({initialize:function(t,e){this.x=0,this.y=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0):(void 0===e&&(e=t),this.x=t||0,this.y=e||0)},clone:function(){return new n(this.x,this.y)},copy:function(t){return this.x=t.x||0,this.y=t.y||0,this},setFromObject:function(t){return this.x=t.x||0,this.y=t.y||0,this},set:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setTo:function(t,e){return this.set(t,e)},setToPolar:function(t,e){return null==e&&(e=1),this.x=Math.cos(t)*e,this.y=Math.sin(t)*e,this},equals:function(t){return this.x===t.x&&this.y===t.y},fuzzyEquals:function(t,e){return r(this.x,t.x,e)&&r(this.y,t.y,e)},angle:function(){var t=Math.atan2(this.y,this.x);return t<0&&(t+=2*Math.PI),t},setAngle:function(t){return this.setToPolar(t,this.length())},add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},scale:function(t){return isFinite(t)?(this.x*=t,this.y*=t):(this.x=0,this.y=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},negate:function(){return this.x=-this.x,this.y=-this.y,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y;return e*e+i*i},length:function(){var t=this.x,e=this.y;return Math.sqrt(t*t+e*e)},setLength:function(t){return this.normalize().scale(t)},lengthSq:function(){var t=this.x,e=this.y;return t*t+e*e},normalize:function(){var t=this.x,e=this.y,i=t*t+e*e;return i>0&&(i=1/Math.sqrt(i),this.x=t*i,this.y=e*i),this},normalizeRightHand:function(){var t=this.x;return this.x=-1*this.y,this.y=t,this},normalizeLeftHand:function(){var t=this.x;return this.x=this.y,this.y=-1*t,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,s=this.y;return this.x=i+e*(t.x-i),this.y=s+e*(t.y-s),this},transformMat3:function(t){var e=this.x,i=this.y,s=t.val;return this.x=s[0]*e+s[3]*i+s[6],this.y=s[1]*e+s[4]*i+s[7],this},transformMat4:function(t){var e=this.x,i=this.y,s=t.val;return this.x=s[0]*e+s[4]*i+s[12],this.y=s[1]*e+s[5]*i+s[13],this},reset:function(){return this.x=0,this.y=0,this},limit:function(t){var e=this.length();return e&&e>t&&this.scale(t/e),this},reflect:function(t){return t=t.clone().normalize(),this.subtract(t.scale(2*this.dot(t)))},mirror:function(t){return this.reflect(t).negate()},rotate:function(t){var e=Math.cos(t),i=Math.sin(t);return this.set(e*this.x-i*this.y,i*this.x+e*this.y)},project:function(t){var e=this.dot(t)/t.dot(t);return this.copy(t).scale(e)}});n.ZERO=new n,n.RIGHT=new n(1,0),n.LEFT=new n(-1,0),n.UP=new n(0,-1),n.DOWN=new n(0,1),n.ONE=new n(1,1),t.exports=n},25836:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e,i){this.x=0,this.y=0,this.z=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0):(this.x=t||0,this.y=e||0,this.z=i||0)},up:function(){return this.x=0,this.y=1,this.z=0,this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clone:function(){return new s(this.x,this.y,this.z)},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},crossVectors:function(t,e){var i=t.x,s=t.y,r=t.z,n=e.x,o=e.y,a=e.z;return this.x=s*a-r*o,this.y=r*n-i*a,this.z=i*o-s*n,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this},set:function(t,e,i){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0):(this.x=t||0,this.y=e||0,this.z=i||0),this},setFromMatrixPosition:function(t){return this.fromArray(t.val,12)},setFromMatrixColumn:function(t,e){return this.fromArray(t.val,4*e)},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addScale:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this},scale:function(t){return isFinite(t)?(this.x*=t,this.y*=t,this.z*=t):(this.x=0,this.y=0,this.z=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y,s=t.z-this.z||0;return Math.sqrt(e*e+i*i+s*s)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y,s=t.z-this.z||0;return e*e+i*i+s*s},length:function(){var t=this.x,e=this.y,i=this.z;return Math.sqrt(t*t+e*e+i*i)},lengthSq:function(){var t=this.x,e=this.y,i=this.z;return t*t+e*e+i*i},normalize:function(){var t=this.x,e=this.y,i=this.z,s=t*t+e*e+i*i;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},cross:function(t){var e=this.x,i=this.y,s=this.z,r=t.x,n=t.y,o=t.z;return this.x=i*o-s*n,this.y=s*r-e*o,this.z=e*n-i*r,this},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,s=this.y,r=this.z;return this.x=i+e*(t.x-i),this.y=s+e*(t.y-s),this.z=r+e*(t.z-r),this},applyMatrix3:function(t){var e=this.x,i=this.y,s=this.z,r=t.val;return this.x=r[0]*e+r[3]*i+r[6]*s,this.y=r[1]*e+r[4]*i+r[7]*s,this.z=r[2]*e+r[5]*i+r[8]*s,this},applyMatrix4:function(t){var e=this.x,i=this.y,s=this.z,r=t.val,n=1/(r[3]*e+r[7]*i+r[11]*s+r[15]);return this.x=(r[0]*e+r[4]*i+r[8]*s+r[12])*n,this.y=(r[1]*e+r[5]*i+r[9]*s+r[13])*n,this.z=(r[2]*e+r[6]*i+r[10]*s+r[14])*n,this},transformMat3:function(t){var e=this.x,i=this.y,s=this.z,r=t.val;return this.x=e*r[0]+i*r[3]+s*r[6],this.y=e*r[1]+i*r[4]+s*r[7],this.z=e*r[2]+i*r[5]+s*r[8],this},transformMat4:function(t){var e=this.x,i=this.y,s=this.z,r=t.val;return this.x=r[0]*e+r[4]*i+r[8]*s+r[12],this.y=r[1]*e+r[5]*i+r[9]*s+r[13],this.z=r[2]*e+r[6]*i+r[10]*s+r[14],this},transformCoordinates:function(t){var e=this.x,i=this.y,s=this.z,r=t.val,n=e*r[0]+i*r[4]+s*r[8]+r[12],o=e*r[1]+i*r[5]+s*r[9]+r[13],a=e*r[2]+i*r[6]+s*r[10]+r[14],h=e*r[3]+i*r[7]+s*r[11]+r[15];return this.x=n/h,this.y=o/h,this.z=a/h,this},transformQuat:function(t){var e=this.x,i=this.y,s=this.z,r=t.x,n=t.y,o=t.z,a=t.w,h=a*e+n*s-o*i,l=a*i+o*e-r*s,u=a*s+r*i-n*e,c=-r*e-n*i-o*s;return this.x=h*a+c*-r+l*-o-u*-n,this.y=l*a+c*-n+u*-r-h*-o,this.z=u*a+c*-o+h*-n-l*-r,this},project:function(t){var e=this.x,i=this.y,s=this.z,r=t.val,n=r[0],o=r[1],a=r[2],h=r[3],l=r[4],u=r[5],c=r[6],d=r[7],p=r[8],f=r[9],g=r[10],m=r[11],v=r[12],y=r[13],x=r[14],w=1/(e*h+i*d+s*m+r[15]);return this.x=(e*n+i*l+s*p+v)*w,this.y=(e*o+i*u+s*f+y)*w,this.z=(e*a+i*c+s*g+x)*w,this},projectViewMatrix:function(t,e){return this.applyMatrix4(t).applyMatrix4(e)},unprojectViewMatrix:function(t,e){return this.applyMatrix4(t).applyMatrix4(e)},unproject:function(t,e){var i=t.x,s=t.y,r=t.z,n=t.w,o=this.x-i,a=n-this.y-1-s,h=this.z;return this.x=2*o/r-1,this.y=2*a/n-1,this.z=2*h-1,this.project(e)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});s.ZERO=new s,s.RIGHT=new s(1,0,0),s.LEFT=new s(-1,0,0),s.UP=new s(0,-1,0),s.DOWN=new s(0,1,0),s.FORWARD=new s(0,0,1),s.BACK=new s(0,0,-1),s.ONE=new s(1,1,1),t.exports=s},61369:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e,i,s){this.x=0,this.y=0,this.z=0,this.w=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=s||0)},clone:function(){return new s(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this.w=t.w||0,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.w===t.w},set:function(t,e,i,s){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=s||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this.w+=t.w||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this.w-=t.w||0,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return Math.sqrt(t*t+e*e+i*i+s*s)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return t*t+e*e+i*i+s*s},normalize:function(){var t=this.x,e=this.y,i=this.z,s=this.w,r=t*t+e*e+i*i+s*s;return r>0&&(r=1/Math.sqrt(r),this.x=t*r,this.y=e*r,this.z=i*r,this.w=s*r),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,s=this.y,r=this.z,n=this.w;return this.x=i+e*(t.x-i),this.y=s+e*(t.y-s),this.z=r+e*(t.z-r),this.w=n+e*(t.w-n),this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this.w*=t.w||1,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this.w/=t.w||1,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y,s=t.z-this.z||0,r=t.w-this.w||0;return Math.sqrt(e*e+i*i+s*s+r*r)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y,s=t.z-this.z||0,r=t.w-this.w||0;return e*e+i*i+s*s+r*r},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},transformMat4:function(t){var e=this.x,i=this.y,s=this.z,r=this.w,n=t.val;return this.x=n[0]*e+n[4]*i+n[8]*s+n[12]*r,this.y=n[1]*e+n[5]*i+n[9]*s+n[13]*r,this.z=n[2]*e+n[6]*i+n[10]*s+n[14]*r,this.w=n[3]*e+n[7]*i+n[11]*s+n[15]*r,this},transformQuat:function(t){var e=this.x,i=this.y,s=this.z,r=t.x,n=t.y,o=t.z,a=t.w,h=a*e+n*s-o*i,l=a*i+o*e-r*s,u=a*s+r*i-n*e,c=-r*e-n*i-o*s;return this.x=h*a+c*-r+l*-o-u*-n,this.y=l*a+c*-n+u*-r-h*-o,this.z=u*a+c*-o+h*-n-l*-r,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});s.prototype.sub=s.prototype.subtract,s.prototype.mul=s.prototype.multiply,s.prototype.div=s.prototype.divide,s.prototype.dist=s.prototype.distance,s.prototype.distSq=s.prototype.distanceSq,s.prototype.len=s.prototype.length,s.prototype.lenSq=s.prototype.lengthSq,t.exports=s},60417:t=>{t.exports=function(t,e,i){return Math.abs(t-e)<=i}},15994:t=>{t.exports=function(t,e,i){var s=i-e;return e+((t-e)%s+s)%s}},31040:t=>{t.exports=function(t,e,i,s){return Math.atan2(s-e,i-t)}},55495:t=>{t.exports=function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)}},128:t=>{t.exports=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)}},41273:t=>{t.exports=function(t,e,i,s){return Math.atan2(i-t,s-e)}},1432:(t,e,i)=>{var s=i(36383);t.exports=function(t){return t>Math.PI&&(t-=s.PI2),Math.abs(((t+s.TAU)%s.PI2-s.PI2)%s.PI2)}},12407:t=>{t.exports=function(t){return(t%=2*Math.PI)>=0?t:t+2*Math.PI}},53993:(t,e,i)=>{var s=i(99472);t.exports=function(){return s(-Math.PI,Math.PI)}},86564:(t,e,i)=>{var s=i(99472);t.exports=function(){return s(-180,180)}},90154:(t,e,i)=>{var s=i(12407);t.exports=function(t){return s(t+Math.PI)}},48736:(t,e,i)=>{var s=i(36383);t.exports=function(t,e,i){return void 0===i&&(i=.05),t===e||(Math.abs(e-t)<=i||Math.abs(e-t)>=s.PI2-i?t=e:(Math.abs(e-t)>Math.PI&&(et?t+=i:e{t.exports=function(t,e){var i=e-t;return 0===i?0:i-360*Math.floor((i- -180)/360)}},86554:(t,e,i)=>{var s=i(15994);t.exports=function(t){return s(t,-Math.PI,Math.PI)}},30954:(t,e,i)=>{var s=i(15994);t.exports=function(t){return s(t,-180,180)}},25588:(t,e,i)=>{t.exports={Between:i(31040),BetweenPoints:i(55495),BetweenPointsY:i(128),BetweenY:i(41273),CounterClockwise:i(1432),Normalize:i(12407),Random:i(53993),RandomDegrees:i(86564),Reverse:i(90154),RotateTo:i(48736),ShortestBetween:i(61430),Wrap:i(86554),WrapDegrees:i(30954)}},36383:t=>{var e={PI2:2*Math.PI,TAU:.5*Math.PI,EPSILON:1e-6,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,RND:null,MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER||-9007199254740991,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991};t.exports=e},20339:t=>{t.exports=function(t,e,i,s){var r=t-i,n=e-s;return Math.sqrt(r*r+n*n)}},52816:t=>{t.exports=function(t,e){var i=t.x-e.x,s=t.y-e.y;return Math.sqrt(i*i+s*s)}},64559:t=>{t.exports=function(t,e){var i=t.x-e.x,s=t.y-e.y;return i*i+s*s}},82340:t=>{t.exports=function(t,e,i,s){return Math.max(Math.abs(t-i),Math.abs(e-s))}},14390:t=>{t.exports=function(t,e,i,s,r){return void 0===r&&(r=2),Math.sqrt(Math.pow(i-t,r)+Math.pow(s-e,r))}},2243:t=>{t.exports=function(t,e,i,s){return Math.abs(t-i)+Math.abs(e-s)}},89774:t=>{t.exports=function(t,e,i,s){var r=t-i,n=e-s;return r*r+n*n}},50994:(t,e,i)=>{t.exports={Between:i(20339),BetweenPoints:i(52816),BetweenPointsSquared:i(64559),Chebyshev:i(82340),Power:i(14390),Snake:i(2243),Squared:i(89774)}},62640:(t,e,i)=>{var s=i(54178),r=i(41521),n=i(79980),o=i(85433),a=i(99140),h=i(48857),l=i(81596),u=i(59133),c=i(98516),d=i(35248),p=i(82500),f=i(49752);t.exports={Power0:l,Power1:u.Out,Power2:o.Out,Power3:c.Out,Power4:d.Out,Linear:l,Quad:u.Out,Cubic:o.Out,Quart:c.Out,Quint:d.Out,Sine:p.Out,Expo:h.Out,Circ:n.Out,Elastic:a.Out,Back:s.Out,Bounce:r.Out,Stepped:f,"Quad.easeIn":u.In,"Cubic.easeIn":o.In,"Quart.easeIn":c.In,"Quint.easeIn":d.In,"Sine.easeIn":p.In,"Expo.easeIn":h.In,"Circ.easeIn":n.In,"Elastic.easeIn":a.In,"Back.easeIn":s.In,"Bounce.easeIn":r.In,"Quad.easeOut":u.Out,"Cubic.easeOut":o.Out,"Quart.easeOut":c.Out,"Quint.easeOut":d.Out,"Sine.easeOut":p.Out,"Expo.easeOut":h.Out,"Circ.easeOut":n.Out,"Elastic.easeOut":a.Out,"Back.easeOut":s.Out,"Bounce.easeOut":r.Out,"Quad.easeInOut":u.InOut,"Cubic.easeInOut":o.InOut,"Quart.easeInOut":c.InOut,"Quint.easeInOut":d.InOut,"Sine.easeInOut":p.InOut,"Expo.easeInOut":h.InOut,"Circ.easeInOut":n.InOut,"Elastic.easeInOut":a.InOut,"Back.easeInOut":s.InOut,"Bounce.easeInOut":r.InOut}},1639:t=>{t.exports=function(t,e){return void 0===e&&(e=1.70158),t*t*((e+1)*t-e)}},50099:t=>{t.exports=function(t,e){void 0===e&&(e=1.70158);var i=1.525*e;return(t*=2)<1?t*t*((i+1)*t-i)*.5:.5*((t-=2)*t*((i+1)*t+i)+2)}},41286:t=>{t.exports=function(t,e){return void 0===e&&(e=1.70158),--t*t*((e+1)*t+e)+1}},54178:(t,e,i)=>{t.exports={In:i(1639),Out:i(41286),InOut:i(50099)}},59590:t=>{t.exports=function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}},41788:t=>{t.exports=function(t){var e=!1;return t<.5?(t=1-2*t,e=!0):t=2*t-1,t<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5}},69905:t=>{t.exports=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}},41521:(t,e,i)=>{t.exports={In:i(59590),Out:i(69905),InOut:i(41788)}},91861:t=>{t.exports=function(t){return 1-Math.sqrt(1-t*t)}},4177:t=>{t.exports=function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},57512:t=>{t.exports=function(t){return Math.sqrt(1- --t*t)}},79980:(t,e,i)=>{t.exports={In:i(91861),Out:i(57512),InOut:i(4177)}},51150:t=>{t.exports=function(t){return t*t*t}},82820:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},35033:t=>{t.exports=function(t){return--t*t*t+1}},85433:(t,e,i)=>{t.exports={In:i(51150),Out:i(35033),InOut:i(82820)}},69965:t=>{t.exports=function(t,e,i){if(void 0===e&&(e=.1),void 0===i&&(i=.1),0===t)return 0;if(1===t)return 1;var s=i/4;return e<1?e=1:s=i*Math.asin(1/e)/(2*Math.PI),-e*Math.pow(2,10*(t-=1))*Math.sin((t-s)*(2*Math.PI)/i)}},50665:t=>{t.exports=function(t,e,i){if(void 0===e&&(e=.1),void 0===i&&(i=.1),0===t)return 0;if(1===t)return 1;var s=i/4;return e<1?e=1:s=i*Math.asin(1/e)/(2*Math.PI),(t*=2)<1?e*Math.pow(2,10*(t-=1))*Math.sin((t-s)*(2*Math.PI)/i)*-.5:e*Math.pow(2,-10*(t-=1))*Math.sin((t-s)*(2*Math.PI)/i)*.5+1}},7744:t=>{t.exports=function(t,e,i){if(void 0===e&&(e=.1),void 0===i&&(i=.1),0===t)return 0;if(1===t)return 1;var s=i/4;return e<1?e=1:s=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*t)*Math.sin((t-s)*(2*Math.PI)/i)+1}},99140:(t,e,i)=>{t.exports={In:i(69965),Out:i(7744),InOut:i(50665)}},24590:t=>{t.exports=function(t){return Math.pow(2,10*(t-1))-.001}},87844:t=>{t.exports=function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))}},89433:t=>{t.exports=function(t){return 1-Math.pow(2,-10*t)}},48857:(t,e,i)=>{t.exports={In:i(24590),Out:i(89433),InOut:i(87844)}},48820:(t,e,i)=>{t.exports={Back:i(54178),Bounce:i(41521),Circular:i(79980),Cubic:i(85433),Elastic:i(99140),Expo:i(48857),Linear:i(81596),Quadratic:i(59133),Quartic:i(98516),Quintic:i(35248),Sine:i(82500),Stepped:i(49752)}},7147:t=>{t.exports=function(t){return t}},81596:(t,e,i)=>{t.exports=i(7147)},34826:t=>{t.exports=function(t){return t*t}},20544:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},92029:t=>{t.exports=function(t){return t*(2-t)}},59133:(t,e,i)=>{t.exports={In:i(34826),Out:i(92029),InOut:i(20544)}},64413:t=>{t.exports=function(t){return t*t*t*t}},78137:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},45840:t=>{t.exports=function(t){return 1- --t*t*t*t}},98516:(t,e,i)=>{t.exports={In:i(64413),Out:i(45840),InOut:i(78137)}},87745:t=>{t.exports=function(t){return t*t*t*t*t}},16509:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},17868:t=>{t.exports=function(t){return--t*t*t*t*t+1}},35248:(t,e,i)=>{t.exports={In:i(87745),Out:i(17868),InOut:i(16509)}},80461:t=>{t.exports=function(t){return 0===t?0:1===t?1:1-Math.cos(t*Math.PI/2)}},34025:t=>{t.exports=function(t){return 0===t?0:1===t?1:.5*(1-Math.cos(Math.PI*t))}},52768:t=>{t.exports=function(t){return 0===t?0:1===t?1:Math.sin(t*Math.PI/2)}},82500:(t,e,i)=>{t.exports={In:i(80461),Out:i(52768),InOut:i(34025)}},72251:t=>{t.exports=function(t,e){return void 0===e&&(e=1),t<=0?0:t>=1?1:1/e*(1+(e*t|0))}},49752:(t,e,i)=>{t.exports=i(72251)},75698:t=>{t.exports=function(t,e){return void 0===e&&(e=1e-4),Math.ceil(t-e)}},43855:t=>{t.exports=function(t,e,i){return void 0===i&&(i=1e-4),Math.abs(t-e){t.exports=function(t,e){return void 0===e&&(e=1e-4),Math.floor(t+e)}},5470:t=>{t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t>e-i}},94977:t=>{t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t{t.exports={Ceil:i(75698),Equal:i(43855),Floor:i(25777),GreaterThan:i(5470),LessThan:i(94977)}},75508:(t,e,i)=>{var s=i(36383),r=i(79291),n={Angle:i(25588),Distance:i(50994),Easing:i(48820),Fuzzy:i(48379),Interpolation:i(38289),Pow2:i(49001),Snap:i(73697),RandomDataGenerator:i(28453),Average:i(53307),Bernstein:i(85710),Between:i(30976),CatmullRom:i(87842),CeilTo:i(26302),Clamp:i(45319),DegToRad:i(39506),Difference:i(61241),Euler:i(38857),Factorial:i(6411),FloatBetween:i(99472),FloorTo:i(77623),FromPercent:i(62945),GetSpeed:i(38265),IsEven:i(78702),IsEvenStrict:i(94883),Linear:i(28915),LinearXY:i(94908),MaxAdd:i(86883),Median:i(50040),MinSub:i(37204),Percent:i(65201),RadToDeg:i(43396),RandomXY:i(74362),RandomXYZ:i(60706),RandomXYZW:i(67421),Rotate:i(36305),RotateAround:i(11520),RotateAroundDistance:i(1163),RotateTo:i(70336),RoundAwayFromZero:i(2284),RoundTo:i(41013),SinCosTableGenerator:i(16922),SmootherStep:i(54261),SmoothStep:i(7602),ToXY:i(44408),TransformXY:i(85955),Within:i(60417),Wrap:i(15994),Vector2:i(26099),Vector3:i(25836),Vector4:i(61369),Matrix3:i(94434),Matrix4:i(37867),Quaternion:i(15746),RotateVec3:i(72678)};n=r(!1,n,s),t.exports=n},89318:(t,e,i)=>{var s=i(85710);t.exports=function(t,e){for(var i=0,r=t.length-1,n=0;n<=r;n++)i+=Math.pow(1-e,r-n)*Math.pow(e,n)*t[n]*s(r,n);return i}},77259:(t,e,i)=>{var s=i(87842);t.exports=function(t,e){var i=t.length-1,r=i*e,n=Math.floor(r);return t[0]===t[i]?(e<0&&(n=Math.floor(r=i*(1+e))),s(r-n,t[(n-1+i)%i],t[n],t[(n+1)%i],t[(n+2)%i])):e<0?t[0]-(s(-r,t[0],t[0],t[1],t[1])-t[0]):e>1?t[i]-(s(r-i,t[i],t[i],t[i-1],t[i-1])-t[i]):s(r-n,t[n?n-1:0],t[n],t[i{t.exports=function(t,e,i,s,r){return function(t,e){var i=1-t;return i*i*i*e}(t,e)+function(t,e){var i=1-t;return 3*i*i*t*e}(t,i)+function(t,e){return 3*(1-t)*t*t*e}(t,s)+function(t,e){return t*t*t*e}(t,r)}},28392:(t,e,i)=>{var s=i(28915);t.exports=function(t,e){var i=t.length-1,r=i*e,n=Math.floor(r);return e<0?s(t[0],t[1],r):e>1?s(t[i],t[i-1],i-r):s(t[n],t[n+1>i?i:n+1],r-n)}},32112:t=>{t.exports=function(t,e,i,s){return function(t,e){var i=1-t;return i*i*e}(t,e)+function(t,e){return 2*(1-t)*t*e}(t,i)+function(t,e){return t*t*e}(t,s)}},47235:(t,e,i)=>{var s=i(7602);t.exports=function(t,e,i){return e+(i-e)*s(t,0,1)}},50178:(t,e,i)=>{var s=i(54261);t.exports=function(t,e,i){return e+(i-e)*s(t,0,1)}},38289:(t,e,i)=>{t.exports={Bezier:i(89318),CatmullRom:i(77259),CubicBezier:i(36316),Linear:i(28392),QuadraticBezier:i(32112),SmoothStep:i(47235),SmootherStep:i(50178)}},98439:t=>{t.exports=function(t){var e=Math.log(t)/.6931471805599453;return 1<{t.exports=function(t,e){return t>0&&!(t&t-1)&&e>0&&!(e&e-1)}},81230:t=>{t.exports=function(t){return t>0&&!(t&t-1)}},49001:(t,e,i)=>{t.exports={GetNext:i(98439),IsSize:i(50030),IsValue:i(81230)}},28453:(t,e,i)=>{var s=new(i(83419))({initialize:function(t){void 0===t&&(t=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],t&&this.init(t)},rnd:function(){var t=2091639*this.s0+2.3283064365386963e-10*this.c;return this.c=0|t,this.s0=this.s1,this.s1=this.s2,this.s2=t-this.c,this.s2},hash:function(t){var e,i=this.n;t=t.toString();for(var s=0;s>>0,i=(e*=i)>>>0,i+=4294967296*(e-=i);return this.n=i,2.3283064365386963e-10*(i>>>0)},init:function(t){"string"==typeof t?this.state(t):this.sow(t)},sow:function(t){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,t)for(var e=0;e0;e--){var i=Math.floor(this.frac()*(e+1)),s=t[i];t[i]=t[e],t[e]=s}return t}});t.exports=s},63448:t=>{t.exports=function(t,e,i,s){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.ceil(t/e),s?(i+t)/e:i+t)}},56583:t=>{t.exports=function(t,e,i,s){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.floor(t/e),s?(i+t)/e:i+t)}},77720:t=>{t.exports=function(t,e,i,s){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.round(t/e),s?(i+t)/e:i+t)}},73697:(t,e,i)=>{t.exports={Ceil:i(63448),Floor:i(56583),To:i(77720)}},85454:(t,e,i)=>{i(63595);var s=i(8054),r=i(79291),n={Actions:i(61061),Animations:i(60421),BlendModes:i(10312),Cache:i(83388),Cameras:i(26638),Core:i(42857),Class:i(83419),Create:i(15822),Curves:i(25410),Data:i(44965),Display:i(27460),DOM:i(84902),Events:i(93055),FX:i(66064),Game:i(50127),GameObjects:i(77856),Geom:i(55738),Input:i(14350),Loader:i(57777),Math:i(75508),Physics:i(44563),Plugins:i(18922),Renderer:i(36909),Scale:i(93364),ScaleModes:i(29795),Scene:i(97482),Scenes:i(62194),Structs:i(41392),Textures:i(27458),Tilemaps:i(62501),Time:i(90291),Tweens:i(43066),Utils:i(91799)};n.Sound=i(23717),n=r(!1,n,s),t.exports=n,i.g.Phaser=n},71289:(t,e,i)=>{var s=i(83419),r=i(92209),n=i(88571),o=new s({Extends:n,Mixins:[r.Acceleration,r.Angular,r.Bounce,r.Collision,r.Debug,r.Drag,r.Enable,r.Friction,r.Gravity,r.Immovable,r.Mass,r.Pushable,r.Size,r.Velocity],initialize:function(t,e,i,s,r){n.call(this,t,e,i,s,r),this.body=null}});t.exports=o},86689:(t,e,i)=>{var s=i(83419),r=i(39506),n=i(20339),o=i(89774),a=i(66022),h=i(95540),l=i(46975),u=i(72441),c=i(47956),d=i(37277),p=i(44594),f=i(26099),g=i(82248),m=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.config=this.getConfig(),this.world,this.add,this._category=1,t.sys.events.once(p.BOOT,this.boot,this),t.sys.events.on(p.START,this.start,this)},boot:function(){this.world=new g(this.scene,this.config),this.add=new a(this.world),this.systems.events.once(p.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new g(this.scene,this.config),this.add=new a(this.world));var t=this.systems.events;h(this.config,"customUpdate",!1)||t.on(p.UPDATE,this.world.update,this.world),t.on(p.POST_UPDATE,this.world.postUpdate,this.world),t.once(p.SHUTDOWN,this.shutdown,this)},enableUpdate:function(){this.systems.events.on(p.UPDATE,this.world.update,this.world)},disableUpdate:function(){this.systems.events.off(p.UPDATE,this.world.update,this.world)},getConfig:function(){var t=this.systems.game.config.physics,e=this.systems.settings.physics;return l(h(e,"arcade",{}),h(t,"arcade",{}))},nextCategory:function(){return this._category=this._category<<1,this._category},overlap:function(t,e,i,s,r){return void 0===i&&(i=null),void 0===s&&(s=null),void 0===r&&(r=i),this.world.collideObjects(t,e,i,s,r,!0)},collide:function(t,e,i,s,r){return void 0===i&&(i=null),void 0===s&&(s=null),void 0===r&&(r=i),this.world.collideObjects(t,e,i,s,r,!1)},collideTiles:function(t,e,i,s,r){return this.world.collideTiles(t,e,i,s,r)},overlapTiles:function(t,e,i,s,r){return this.world.overlapTiles(t,e,i,s,r)},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},accelerateTo:function(t,e,i,s,r,n){void 0===s&&(s=60);var o=Math.atan2(i-t.y,e-t.x);return t.body.acceleration.setToPolar(o,s),void 0!==r&&void 0!==n&&t.body.maxVelocity.set(r,n),o},accelerateToObject:function(t,e,i,s,r){return this.accelerateTo(t,e.x,e.y,i,s,r)},closest:function(t,e){e||(e=this.world.bodies.entries);for(var i=Number.MAX_VALUE,s=null,r=t.x,n=t.y,a=e.length,h=0;hi&&(s=l,i=c)}}return s},moveTo:function(t,e,i,s,r){void 0===s&&(s=60),void 0===r&&(r=0);var o=Math.atan2(i-t.y,e-t.x);return r>0&&(s=n(t.x,t.y,e,i)/(r/1e3)),t.body.velocity.setToPolar(o,s),o},moveToObject:function(t,e,i,s){return this.moveTo(t,e.x,e.y,i,s)},velocityFromAngle:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new f),i.setToPolar(r(t),e)},velocityFromRotation:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new f),i.setToPolar(t,e)},overlapRect:function(t,e,i,s,r,n){return c(this.world,t,e,i,s,r,n)},overlapCirc:function(t,e,i,s,r){return u(this.world,t,e,i,s,r)},shutdown:function(){if(this.world){var t=this.systems.events;t.off(p.UPDATE,this.world.update,this.world),t.off(p.POST_UPDATE,this.world.postUpdate,this.world),t.off(p.SHUTDOWN,this.shutdown,this),this.add.destroy(),this.world.destroy(),this.add=null,this.world=null,this._category=1}},destroy:function(){this.shutdown(),this.scene.sys.events.off(p.START,this.start,this),this.scene=null,this.systems=null}});d.register("ArcadePhysics",m,"arcadePhysics"),t.exports=m},13759:(t,e,i)=>{var s=i(83419),r=i(92209),n=i(68287),o=new s({Extends:n,Mixins:[r.Acceleration,r.Angular,r.Bounce,r.Collision,r.Debug,r.Drag,r.Enable,r.Friction,r.Gravity,r.Immovable,r.Mass,r.Pushable,r.Size,r.Velocity],initialize:function(t,e,i,s,r){n.call(this,t,e,i,s,r),this.body=null}});t.exports=o},37742:(t,e,i)=>{var s=i(83419),r=i(78389),n=i(37747),o=i(63012),a=i(43396),h=i(87841),l=i(37303),u=i(95829),c=i(26099),d=new s({Mixins:[r],initialize:function(t,e){var i=64,s=64,r=void 0!==e;r&&e.displayWidth&&(i=e.displayWidth,s=e.displayHeight),r||(e={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0}),this.world=t,this.gameObject=r?e:void 0,this.isBody=!0,this.transform={x:e.x,y:e.y,rotation:e.angle,scaleX:e.scaleX,scaleY:e.scaleY,displayOriginX:e.displayOriginX,displayOriginY:e.displayOriginY},this.debugShowBody=t.defaults.debugShowBody,this.debugShowVelocity=t.defaults.debugShowVelocity,this.debugBodyColor=t.defaults.bodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new c,this.position=new c(e.x-e.scaleX*e.displayOriginX,e.y-e.scaleY*e.displayOriginY),this.prev=this.position.clone(),this.prevFrame=this.position.clone(),this.allowRotation=!0,this.rotation=e.angle,this.preRotation=e.angle,this.width=i,this.height=s,this.sourceWidth=i,this.sourceHeight=s,e.frame&&(this.sourceWidth=e.frame.realWidth,this.sourceHeight=e.frame.realHeight),this.halfWidth=Math.abs(i/2),this.halfHeight=Math.abs(s/2),this.center=new c(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=new c,this.newVelocity=new c,this.deltaMax=new c,this.acceleration=new c,this.allowDrag=!0,this.drag=new c,this.allowGravity=!0,this.gravity=new c,this.bounce=new c,this.worldBounce=null,this.customBoundsRectangle=t.bounds,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.maxVelocity=new c(1e4,1e4),this.maxSpeed=-1,this.friction=new c(1,0),this.useDamping=!1,this.angularVelocity=0,this.angularAcceleration=0,this.angularDrag=0,this.maxAngular=1e3,this.mass=1,this.angle=0,this.speed=0,this.facing=n.FACING_NONE,this.immovable=!1,this.pushable=!0,this.slideFactor=new c(1,1),this.moves=!0,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision=u(!1),this.touching=u(!0),this.wasTouching=u(!0),this.blocked=u(!0),this.syncBounds=!1,this.physicsType=n.DYNAMIC_BODY,this.collisionCategory=1,this.collisionMask=1,this._sx=e.scaleX,this._sy=e.scaleY,this._dx=0,this._dy=0,this._tx=0,this._ty=0,this._bounds=new h,this.directControl=!1,this.autoFrame=this.position.clone()},updateBounds:function(){var t=this.gameObject,e=this.transform;if(t.parentContainer){var i=t.getWorldTransformMatrix(this.world._tempMatrix,this.world._tempMatrix2);e.x=i.tx,e.y=i.ty,e.rotation=a(i.rotation),e.scaleX=i.scaleX,e.scaleY=i.scaleY,e.displayOriginX=t.displayOriginX,e.displayOriginY=t.displayOriginY}else e.x=t.x,e.y=t.y,e.rotation=t.angle,e.scaleX=t.scaleX,e.scaleY=t.scaleY,e.displayOriginX=t.displayOriginX,e.displayOriginY=t.displayOriginY;var s=!1;if(this.syncBounds){var r=t.getBounds(this._bounds);this.width=r.width,this.height=r.height,s=!0}else{var n=Math.abs(e.scaleX),o=Math.abs(e.scaleY);this._sx===n&&this._sy===o||(this.width=this.sourceWidth*n,this.height=this.sourceHeight*o,this._sx=n,this._sy=o,s=!0)}s&&(this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter())},updateCenter:function(){this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},updateFromGameObject:function(){this.updateBounds();var t=this.transform;this.position.x=t.x+t.scaleX*(this.offset.x-t.displayOriginX),this.position.y=t.y+t.scaleY*(this.offset.y-t.displayOriginY),this.updateCenter()},resetFlags:function(t){void 0===t&&(t=!1);var e=this.wasTouching,i=this.touching,s=this.blocked;t?u(!0,e):(e.none=i.none,e.up=i.up,e.down=i.down,e.left=i.left,e.right=i.right),u(!0,i),u(!0,s),this.overlapR=0,this.overlapX=0,this.overlapY=0,this.embedded=!1},preUpdate:function(t,e){if(t&&this.resetFlags(),this.gameObject&&this.updateFromGameObject(),this.rotation=this.transform.rotation,this.preRotation=this.rotation,this.moves){var i=this.position;this.prev.x=i.x,this.prev.y=i.y,this.prevFrame.x=i.x,this.prevFrame.y=i.y}t&&this.update(e)},update:function(t){var e=this.prev,i=this.position,s=this.velocity;if(e.set(i.x,i.y),!this.moves)return this._dx=i.x-e.x,void(this._dy=i.y-e.y);if(this.directControl){var r=this.autoFrame;s.set((i.x-r.x)/t,(i.y-r.y)/t),this.world.updateMotion(this,t),this._dx=i.x-r.x,this._dy=i.y-r.y}else this.world.updateMotion(this,t),this.newVelocity.set(s.x*t,s.y*t),i.add(this.newVelocity),this._dx=i.x-e.x,this._dy=i.y-e.y;var n=s.x,a=s.y;if(this.updateCenter(),this.angle=Math.atan2(a,n),this.speed=Math.sqrt(n*n+a*a),this.collideWorldBounds&&this.checkWorldBounds()&&this.onWorldBounds){var h=this.blocked;this.world.emit(o.WORLD_BOUNDS,this,h.up,h.down,h.left,h.right)}},postUpdate:function(){var t=this.position,e=t.x-this.prevFrame.x,i=t.y-this.prevFrame.y,s=this.gameObject;if(this.moves){var r=this.deltaMax.x,o=this.deltaMax.y;0!==r&&0!==e&&(e<0&&e<-r?e=-r:e>0&&e>r&&(e=r)),0!==o&&0!==i&&(i<0&&i<-o?i=-o:i>0&&i>o&&(i=o)),s&&(s.x+=e,s.y+=i)}e<0?this.facing=n.FACING_LEFT:e>0&&(this.facing=n.FACING_RIGHT),i<0?this.facing=n.FACING_UP:i>0&&(this.facing=n.FACING_DOWN),this.allowRotation&&s&&(s.angle+=this.deltaZ()),this._tx=e,this._ty=i,this.autoFrame.set(t.x,t.y)},setBoundsRectangle:function(t){return this.customBoundsRectangle=t||this.world.bounds,this},checkWorldBounds:function(){var t=this.position,e=this.velocity,i=this.blocked,s=this.customBoundsRectangle,r=this.world.checkCollision,n=this.worldBounce?-this.worldBounce.x:-this.bounce.x,o=this.worldBounce?-this.worldBounce.y:-this.bounce.y,a=!1;return t.xs.right&&r.right&&(t.x=s.right-this.width,e.x*=n,i.right=!0,a=!0),t.ys.bottom&&r.down&&(t.y=s.bottom-this.height,e.y*=o,i.down=!0,a=!0),a&&(this.blocked.none=!1,this.updateCenter()),a},setOffset:function(t,e){return void 0===e&&(e=t),this.offset.set(t,e),this},setGameObject:function(t,e){return void 0===e&&(e=!0),this.world.remove(this),this.gameObject&&this.gameObject.body&&(this.gameObject.body=null),this.gameObject=t,t.body&&(t.body=this),this.setSize(),this.world.add(this),this.enable=e,this},setSize:function(t,e,i){void 0===i&&(i=!0);var s=this.gameObject;if(s&&(!t&&s.frame&&(t=s.frame.realWidth),!e&&s.frame&&(e=s.frame.realHeight)),this.sourceWidth=t,this.sourceHeight=e,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter(),i&&s&&s.getCenter){var r=(s.width-t)/2,n=(s.height-e)/2;this.offset.set(r,n)}return this.isCircle=!1,this.radius=0,this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.isCircle=!0,this.radius=t,this.sourceWidth=2*t,this.sourceHeight=2*t,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter()):this.isCircle=!1,this},reset:function(t,e){this.stop();var i=this.gameObject;i&&(i.setPosition(t,e),this.rotation=i.angle,this.preRotation=i.angle);var s=this.position;i&&i.getTopLeft?i.getTopLeft(s):s.set(t,e),this.prev.copy(s),this.prevFrame.copy(s),this.autoFrame.copy(s),i&&this.updateBounds(),this.updateCenter(),this.collideWorldBounds&&this.checkWorldBounds(),this.resetFlags(!0)},stop:function(){return this.velocity.set(0),this.acceleration.set(0),this.speed=0,this.angularVelocity=0,this.angularAcceleration=0,this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?this.radius>0&&t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom&&(this.center.x-t)*(this.center.x-t)+(this.center.y-e)*(this.center.y-e)<=this.radius*this.radius:l(this,t,e)},onFloor:function(){return this.blocked.down},onCeiling:function(){return this.blocked.up},onWall:function(){return this.blocked.left||this.blocked.right},deltaAbsX:function(){return this._dx>0?this._dx:-this._dx},deltaAbsY:function(){return this._dy>0?this._dy:-this._dy},deltaX:function(){return this._dx},deltaY:function(){return this._dy},deltaXFinal:function(){return this._tx},deltaYFinal:function(){return this._ty},deltaZ:function(){return this.rotation-this.preRotation},destroy:function(){this.enable=!1,this.world&&this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,s=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor),this.isCircle?t.strokeCircle(i,s,this.width/2):(this.checkCollision.up&&t.lineBetween(e.x,e.y,e.x+this.width,e.y),this.checkCollision.right&&t.lineBetween(e.x+this.width,e.y,e.x+this.width,e.y+this.height),this.checkCollision.down&&t.lineBetween(e.x,e.y+this.height,e.x+this.width,e.y+this.height),this.checkCollision.left&&t.lineBetween(e.x,e.y,e.x,e.y+this.height))),this.debugShowVelocity&&(t.lineStyle(t.defaultStrokeWidth,this.world.defaults.velocityDebugColor,1),t.lineBetween(i,s,i+this.velocity.x/2,s+this.velocity.y/2))},willDrawDebug:function(){return this.debugShowBody||this.debugShowVelocity},setDirectControl:function(t){return void 0===t&&(t=!0),this.directControl=t,this},setCollideWorldBounds:function(t,e,i,s){void 0===t&&(t=!0),this.collideWorldBounds=t;var r=void 0!==e,n=void 0!==i;return(r||n)&&(this.worldBounce||(this.worldBounce=new c),r&&(this.worldBounce.x=e),n&&(this.worldBounce.y=i)),void 0!==s&&(this.onWorldBounds=s),this},setVelocity:function(t,e){return this.velocity.set(t,e),t=this.velocity.x,e=this.velocity.y,this.speed=Math.sqrt(t*t+e*e),this},setVelocityX:function(t){return this.setVelocity(t,this.velocity.y)},setVelocityY:function(t){return this.setVelocity(this.velocity.x,t)},setMaxVelocity:function(t,e){return this.maxVelocity.set(t,e),this},setMaxVelocityX:function(t){return this.maxVelocity.x=t,this},setMaxVelocityY:function(t){return this.maxVelocity.y=t,this},setMaxSpeed:function(t){return this.maxSpeed=t,this},setSlideFactor:function(t,e){return this.slideFactor.set(t,e),this},setBounce:function(t,e){return this.bounce.set(t,e),this},setBounceX:function(t){return this.bounce.x=t,this},setBounceY:function(t){return this.bounce.y=t,this},setAcceleration:function(t,e){return this.acceleration.set(t,e),this},setAccelerationX:function(t){return this.acceleration.x=t,this},setAccelerationY:function(t){return this.acceleration.y=t,this},setAllowDrag:function(t){return void 0===t&&(t=!0),this.allowDrag=t,this},setAllowGravity:function(t){return void 0===t&&(t=!0),this.allowGravity=t,this},setAllowRotation:function(t){return void 0===t&&(t=!0),this.allowRotation=t,this},setDrag:function(t,e){return this.drag.set(t,e),this},setDamping:function(t){return this.useDamping=t,this},setDragX:function(t){return this.drag.x=t,this},setDragY:function(t){return this.drag.y=t,this},setGravity:function(t,e){return this.gravity.set(t,e),this},setGravityX:function(t){return this.gravity.x=t,this},setGravityY:function(t){return this.gravity.y=t,this},setFriction:function(t,e){return this.friction.set(t,e),this},setFrictionX:function(t){return this.friction.x=t,this},setFrictionY:function(t){return this.friction.y=t,this},setAngularVelocity:function(t){return this.angularVelocity=t,this},setAngularAcceleration:function(t){return this.angularAcceleration=t,this},setAngularDrag:function(t){return this.angularDrag=t,this},setMass:function(t){return this.mass=t,this},setImmovable:function(t){return void 0===t&&(t=!0),this.immovable=t,this},setEnable:function(t){return void 0===t&&(t=!0),this.enable=t,this},processX:function(t,e,i,s){this.x+=t,this.updateCenter(),null!==e&&(this.velocity.x=e*this.slideFactor.x);var r=this.blocked;i&&(r.left=!0,r.none=!1),s&&(r.right=!0,r.none=!1)},processY:function(t,e,i,s){this.y+=t,this.updateCenter(),null!==e&&(this.velocity.y=e*this.slideFactor.y);var r=this.blocked;i&&(r.up=!0,r.none=!1),s&&(r.down=!0,r.none=!1)},x:{get:function(){return this.position.x},set:function(t){this.position.x=t}},y:{get:function(){return this.position.y},set:function(t){this.position.y=t}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=d},79342:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e,i,s,r,n,o){this.world=t,this.name="",this.active=!0,this.overlapOnly=e,this.object1=i,this.object2=s,this.collideCallback=r,this.processCallback=n,this.callbackContext=o},setName:function(t){return this.name=t,this},update:function(){this.world.collideObjects(this.object1,this.object2,this.collideCallback,this.processCallback,this.callbackContext,this.overlapOnly)},destroy:function(){this.world.removeCollider(this),this.active=!1,this.world=null,this.object1=null,this.object2=null,this.collideCallback=null,this.processCallback=null,this.callbackContext=null}});t.exports=s},66022:(t,e,i)=>{var s=i(71289),r=i(13759),n=i(37742),o=i(83419),a=i(37747),h=i(60758),l=i(72624),u=i(71464),c=new o({initialize:function(t){this.world=t,this.scene=t.scene,this.sys=t.scene.sys},collider:function(t,e,i,s,r){return this.world.addCollider(t,e,i,s,r)},overlap:function(t,e,i,s,r){return this.world.addOverlap(t,e,i,s,r)},existing:function(t,e){var i=e?a.STATIC_BODY:a.DYNAMIC_BODY;return this.world.enableBody(t,i),t},staticImage:function(t,e,i,r){var n=new s(this.scene,t,e,i,r);return this.sys.displayList.add(n),this.world.enableBody(n,a.STATIC_BODY),n},image:function(t,e,i,r){var n=new s(this.scene,t,e,i,r);return this.sys.displayList.add(n),this.world.enableBody(n,a.DYNAMIC_BODY),n},staticSprite:function(t,e,i,s){var n=new r(this.scene,t,e,i,s);return this.sys.displayList.add(n),this.sys.updateList.add(n),this.world.enableBody(n,a.STATIC_BODY),n},sprite:function(t,e,i,s){var n=new r(this.scene,t,e,i,s);return this.sys.displayList.add(n),this.sys.updateList.add(n),this.world.enableBody(n,a.DYNAMIC_BODY),n},staticGroup:function(t,e){return this.sys.updateList.add(new u(this.world,this.world.scene,t,e))},group:function(t,e){return this.sys.updateList.add(new h(this.world,this.world.scene,t,e))},body:function(t,e,i,s){var r=new n(this.world);return r.position.set(t,e),i&&s&&r.setSize(i,s),this.world.add(r,a.DYNAMIC_BODY),r},staticBody:function(t,e,i,s){var r=new l(this.world);return r.position.set(t,e),i&&s&&r.setSize(i,s),this.world.add(r,a.STATIC_BODY),r},destroy:function(){this.world=null,this.scene=null,this.sys=null}});t.exports=c},79599:t=>{t.exports=function(t){var e=0;if(Array.isArray(t))for(var i=0;i{var s=i(37747);t.exports=function(t,e,i,r){var n=0,o=t.deltaAbsX()+e.deltaAbsX()+r;return 0===t._dx&&0===e._dx?(t.embedded=!0,e.embedded=!0):t._dx>e._dx?(n=t.right-e.x)>o&&!i||!1===t.checkCollision.right||!1===e.checkCollision.left?n=0:(t.touching.none=!1,t.touching.right=!0,e.touching.none=!1,e.touching.left=!0,e.physicsType!==s.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.right=!0),t.physicsType!==s.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.left=!0)):t._dxo&&!i||!1===t.checkCollision.left||!1===e.checkCollision.right?n=0:(t.touching.none=!1,t.touching.left=!0,e.touching.none=!1,e.touching.right=!0,e.physicsType!==s.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.left=!0),t.physicsType!==s.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.right=!0))),t.overlapX=n,e.overlapX=n,n}},45170:(t,e,i)=>{var s=i(37747);t.exports=function(t,e,i,r){var n=0,o=t.deltaAbsY()+e.deltaAbsY()+r;return 0===t._dy&&0===e._dy?(t.embedded=!0,e.embedded=!0):t._dy>e._dy?(n=t.bottom-e.y)>o&&!i||!1===t.checkCollision.down||!1===e.checkCollision.up?n=0:(t.touching.none=!1,t.touching.down=!0,e.touching.none=!1,e.touching.up=!0,e.physicsType!==s.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.down=!0),t.physicsType!==s.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.up=!0)):t._dyo&&!i||!1===t.checkCollision.up||!1===e.checkCollision.down?n=0:(t.touching.none=!1,t.touching.up=!0,e.touching.none=!1,e.touching.down=!0,e.physicsType!==s.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.up=!0),t.physicsType!==s.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.down=!0))),t.overlapY=n,e.overlapY=n,n}},60758:(t,e,i)=>{var s=i(13759),r=i(83419),n=i(78389),o=i(37747),a=i(95540),h=i(26479),l=i(41212),u=new r({Extends:h,Mixins:[n],initialize:function(t,e,i,r){if(i||r)if(l(i))r=i,i=null,r.internalCreateCallback=this.createCallbackHandler,r.internalRemoveCallback=this.removeCallbackHandler;else if(Array.isArray(i)&&l(i[0])){var n=this;i.forEach((function(t){t.internalCreateCallback=n.createCallbackHandler,t.internalRemoveCallback=n.removeCallbackHandler,t.classType=a(t,"classType",s)})),r=null}else r={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};else r={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};this.world=t,r&&(r.classType=a(r,"classType",s)),this.physicsType=o.DYNAMIC_BODY,this.collisionCategory=1,this.collisionMask=1,this.defaults={setCollideWorldBounds:a(r,"collideWorldBounds",!1),setBoundsRectangle:a(r,"customBoundsRectangle",null),setAccelerationX:a(r,"accelerationX",0),setAccelerationY:a(r,"accelerationY",0),setAllowDrag:a(r,"allowDrag",!0),setAllowGravity:a(r,"allowGravity",!0),setAllowRotation:a(r,"allowRotation",!0),setDamping:a(r,"useDamping",!1),setBounceX:a(r,"bounceX",0),setBounceY:a(r,"bounceY",0),setDragX:a(r,"dragX",0),setDragY:a(r,"dragY",0),setEnable:a(r,"enable",!0),setGravityX:a(r,"gravityX",0),setGravityY:a(r,"gravityY",0),setFrictionX:a(r,"frictionX",0),setFrictionY:a(r,"frictionY",0),setMaxSpeed:a(r,"maxSpeed",-1),setMaxVelocityX:a(r,"maxVelocityX",1e4),setMaxVelocityY:a(r,"maxVelocityY",1e4),setVelocityX:a(r,"velocityX",0),setVelocityY:a(r,"velocityY",0),setAngularVelocity:a(r,"angularVelocity",0),setAngularAcceleration:a(r,"angularAcceleration",0),setAngularDrag:a(r,"angularDrag",0),setMass:a(r,"mass",1),setImmovable:a(r,"immovable",!1)},h.call(this,e,i,r),this.type="PhysicsGroup"},createCallbackHandler:function(t){t.body||this.world.enableBody(t,o.DYNAMIC_BODY);var e=t.body;for(var i in this.defaults)e[i](this.defaults[i])},removeCallbackHandler:function(t){t.body&&this.world.disableBody(t)},setVelocity:function(t,e,i){void 0===i&&(i=0);for(var s=this.getChildren(),r=0;r{var e,i,s,r,n,o,a,h,l,u,c,d,p,f,g,m,v,y=function(){return u&&g&&i.blocked.right?(e.processX(-v,a,!1,!0),1):l&&m&&i.blocked.left?(e.processX(v,a,!0),1):p&&m&&e.blocked.right?(i.processX(-v,h,!1,!0),2):d&&g&&e.blocked.left?(i.processX(v,h,!0),2):0},x=function(t){if(s&&r)v*=.5,0===t||3===t?(e.processX(v,n),i.processX(-v,o)):(e.processX(-v,n),i.processX(v,o));else if(s&&!r)0===t||3===t?e.processX(v,a,!0):e.processX(-v,a,!1,!0);else if(!s&&r)0===t||3===t?i.processX(-v,h,!1,!0):i.processX(v,h,!0);else{var g=.5*v;0===t?f?(e.processX(v,0,!0),i.processX(0,null,!1,!0)):p?(e.processX(g,0,!0),i.processX(-g,0,!1,!0)):(e.processX(g,i.velocity.x,!0),i.processX(-g,null,!1,!0)):1===t?c?(e.processX(0,null,!1,!0),i.processX(v,0,!0)):u?(e.processX(-g,0,!1,!0),i.processX(g,0,!0)):(e.processX(-g,null,!1,!0),i.processX(g,e.velocity.x,!0)):2===t?f?(e.processX(-v,0,!1,!0),i.processX(0,null,!0)):d?(e.processX(-g,0,!1,!0),i.processX(g,0,!0)):(e.processX(-g,i.velocity.x,!1,!0),i.processX(g,null,!0)):3===t&&(c?(e.processX(0,null,!0),i.processX(-v,0,!1,!0)):l?(e.processX(g,0,!0),i.processX(-g,0,!1,!0)):(e.processX(g,i.velocity.y,!0),i.processX(-g,null,!1,!0)))}return!0};t.exports={BlockCheck:y,Check:function(){var t=e.velocity.x,s=i.velocity.x,r=Math.sqrt(s*s*i.mass/e.mass)*(s>0?1:-1),a=Math.sqrt(t*t*e.mass/i.mass)*(t>0?1:-1),h=.5*(r+a);return a-=h,n=h+(r-=h)*e.bounce.x,o=h+a*i.bounce.x,l&&m?x(0):d&&g?x(1):u&&g?x(2):!(!p||!m)&&x(3)},Set:function(t,n,o){i=n;var x=(e=t).velocity.x,w=i.velocity.x;return s=e.pushable,l=e._dx<0,u=e._dx>0,c=0===e._dx,g=Math.abs(e.right-i.x)<=Math.abs(i.right-e.x),a=w-x*e.bounce.x,r=i.pushable,d=i._dx<0,p=i._dx>0,f=0===i._dx,m=!g,h=x-w*i.bounce.x,v=Math.abs(o),y()},Run:x,RunImmovableBody1:function(t){1===t?i.velocity.x=0:g?i.processX(v,h,!0):i.processX(-v,h,!1,!0),e.moves&&(i.y+=(e.y-e.prev.y)*e.friction.y,i._dy=i.y-i.prev.y)},RunImmovableBody2:function(t){2===t?e.velocity.x=0:m?e.processX(v,a,!0):e.processX(-v,a,!1,!0),i.moves&&(e.y+=(i.y-i.prev.y)*i.friction.y,e._dy=e.y-e.prev.y)}}},47962:t=>{var e,i,s,r,n,o,a,h,l,u,c,d,p,f,g,m,v,y=function(){return u&&g&&i.blocked.down?(e.processY(-v,a,!1,!0),1):l&&m&&i.blocked.up?(e.processY(v,a,!0),1):p&&m&&e.blocked.down?(i.processY(-v,h,!1,!0),2):d&&g&&e.blocked.up?(i.processY(v,h,!0),2):0},x=function(t){if(s&&r)v*=.5,0===t||3===t?(e.processY(v,n),i.processY(-v,o)):(e.processY(-v,n),i.processY(v,o));else if(s&&!r)0===t||3===t?e.processY(v,a,!0):e.processY(-v,a,!1,!0);else if(!s&&r)0===t||3===t?i.processY(-v,h,!1,!0):i.processY(v,h,!0);else{var g=.5*v;0===t?f?(e.processY(v,0,!0),i.processY(0,null,!1,!0)):p?(e.processY(g,0,!0),i.processY(-g,0,!1,!0)):(e.processY(g,i.velocity.y,!0),i.processY(-g,null,!1,!0)):1===t?c?(e.processY(0,null,!1,!0),i.processY(v,0,!0)):u?(e.processY(-g,0,!1,!0),i.processY(g,0,!0)):(e.processY(-g,null,!1,!0),i.processY(g,e.velocity.y,!0)):2===t?f?(e.processY(-v,0,!1,!0),i.processY(0,null,!0)):d?(e.processY(-g,0,!1,!0),i.processY(g,0,!0)):(e.processY(-g,i.velocity.y,!1,!0),i.processY(g,null,!0)):3===t&&(c?(e.processY(0,null,!0),i.processY(-v,0,!1,!0)):l?(e.processY(g,0,!0),i.processY(-g,0,!1,!0)):(e.processY(g,i.velocity.y,!0),i.processY(-g,null,!1,!0)))}return!0};t.exports={BlockCheck:y,Check:function(){var t=e.velocity.y,s=i.velocity.y,r=Math.sqrt(s*s*i.mass/e.mass)*(s>0?1:-1),a=Math.sqrt(t*t*e.mass/i.mass)*(t>0?1:-1),h=.5*(r+a);return a-=h,n=h+(r-=h)*e.bounce.y,o=h+a*i.bounce.y,l&&m?x(0):d&&g?x(1):u&&g?x(2):!(!p||!m)&&x(3)},Set:function(t,n,o){i=n;var x=(e=t).velocity.y,w=i.velocity.y;return s=e.pushable,l=e._dy<0,u=e._dy>0,c=0===e._dy,g=Math.abs(e.bottom-i.y)<=Math.abs(i.bottom-e.y),a=w-x*e.bounce.y,r=i.pushable,d=i._dy<0,p=i._dy>0,f=0===i._dy,m=!g,h=x-w*i.bounce.y,v=Math.abs(o),y()},Run:x,RunImmovableBody1:function(t){1===t?i.velocity.y=0:g?i.processY(v,h,!0):i.processY(-v,h,!1,!0),e.moves&&(i.x+=(e.x-e.prev.x)*e.friction.x,i._dx=i.x-i.prev.x)},RunImmovableBody2:function(t){2===t?e.velocity.y=0:m?e.processY(v,a,!0):e.processY(-v,a,!1,!0),i.moves&&(e.x+=(i.x-i.prev.x)*i.friction.x,e._dx=e.x-e.prev.x)}}},14087:(t,e,i)=>{var s=i(64897),r=i(3017);t.exports=function(t,e,i,n,o){void 0===o&&(o=s(t,e,i,n));var a=t.immovable,h=e.immovable;if(i||0===o||a&&h||t.customSeparateX||e.customSeparateX)return 0!==o||t.embedded&&e.embedded;var l=r.Set(t,e,o);return a||h?(a?r.RunImmovableBody1(l):h&&r.RunImmovableBody2(l),!0):l>0||r.Check()}},89936:(t,e,i)=>{var s=i(45170),r=i(47962);t.exports=function(t,e,i,n,o){void 0===o&&(o=s(t,e,i,n));var a=t.immovable,h=e.immovable;if(i||0===o||a&&h||t.customSeparateY||e.customSeparateY)return 0!==o||t.embedded&&e.embedded;var l=r.Set(t,e,o);return a||h?(a?r.RunImmovableBody1(l):h&&r.RunImmovableBody2(l),!0):l>0||r.Check()}},95829:t=>{t.exports=function(t,e){return void 0===e&&(e={}),e.none=t,e.up=!1,e.down=!1,e.left=!1,e.right=!1,t||(e.up=!0,e.down=!0,e.left=!0,e.right=!0),e}},72624:(t,e,i)=>{var s=i(87902),r=i(83419),n=i(78389),o=i(37747),a=i(37303),h=i(95829),l=i(26099),u=new r({Mixins:[n],initialize:function(t,e){var i=64,s=64,r=void 0!==e;r&&e.displayWidth&&(i=e.displayWidth,s=e.displayHeight),r||(e={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0}),this.world=t,this.gameObject=r?e:void 0,this.isBody=!0,this.debugShowBody=t.defaults.debugShowStaticBody,this.debugBodyColor=t.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new l,this.position=new l(e.x-i*e.originX,e.y-s*e.originY),this.width=i,this.height=s,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center=new l(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=l.ZERO,this.allowGravity=!1,this.gravity=l.ZERO,this.bounce=l.ZERO,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.mass=1,this.immovable=!0,this.pushable=!1,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision=h(!1),this.touching=h(!0),this.wasTouching=h(!0),this.blocked=h(!0),this.physicsType=o.STATIC_BODY,this.collisionCategory=1,this.collisionMask=1,this._dx=0,this._dy=0},setGameObject:function(t,e){return t&&t!==this.gameObject&&(this.gameObject.body=null,t.body=this,this.gameObject=t),e&&this.updateFromGameObject(),this},updateFromGameObject:function(){this.world.staticTree.remove(this);var t=this.gameObject;return t.getTopLeft(this.position),this.width=t.displayWidth,this.height=t.displayHeight,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.world.staticTree.insert(this),this},setOffset:function(t,e){return void 0===e&&(e=t),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(t,e),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(t,e,i){void 0===i&&(i=!0);var s=this.gameObject;if(s&&s.frame&&(t||(t=s.frame.realWidth),e||(e=s.frame.realHeight)),this.world.staticTree.remove(this),this.width=t,this.height=e,this.halfWidth=Math.floor(t/2),this.halfHeight=Math.floor(e/2),i&&s&&s.getCenter){var r=s.displayWidth/2,n=s.displayHeight/2;this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(r-this.halfWidth,n-this.halfHeight),this.position.x+=this.offset.x,this.position.y+=this.offset.y}return this.updateCenter(),this.isCircle=!1,this.radius=0,this.world.staticTree.insert(this),this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.world.staticTree.remove(this),this.isCircle=!0,this.radius=t,this.width=2*t,this.height=2*t,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter(),this.world.staticTree.insert(this)):this.isCircle=!1,this},updateCenter:function(){this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},reset:function(t,e){var i=this.gameObject;void 0===t&&(t=i.x),void 0===e&&(e=i.y),this.world.staticTree.remove(this),i.setPosition(t,e),i.getTopLeft(this.position),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this)},stop:function(){return this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?s(this,t,e):a(this,t,e)},postUpdate:function(){},deltaAbsX:function(){return 0},deltaAbsY:function(){return 0},deltaX:function(){return 0},deltaY:function(){return 0},deltaZ:function(){return 0},destroy:function(){this.enable=!1,this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,s=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor,1),this.isCircle?t.strokeCircle(i,s,this.width/2):t.strokeRect(e.x,e.y,this.width,this.height))},willDrawDebug:function(){return this.debugShowBody},setMass:function(t){return t<=0&&(t=.1),this.mass=t,this},x:{get:function(){return this.position.x},set:function(t){this.world.staticTree.remove(this),this.position.x=t,this.world.staticTree.insert(this)}},y:{get:function(){return this.position.y},set:function(t){this.world.staticTree.remove(this),this.position.y=t,this.world.staticTree.insert(this)}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=u},71464:(t,e,i)=>{var s=i(13759),r=i(83419),n=i(78389),o=i(37747),a=i(95540),h=i(26479),l=i(41212),u=new r({Extends:h,Mixins:[n],initialize:function(t,e,i,r){i||r?l(i)?(r=i,i=null,r.internalCreateCallback=this.createCallbackHandler,r.internalRemoveCallback=this.removeCallbackHandler,r.createMultipleCallback=this.createMultipleCallbackHandler,r.classType=a(r,"classType",s)):Array.isArray(i)&&l(i[0])?(r=i,i=null,r.forEach((function(t){t.internalCreateCallback=this.createCallbackHandler,t.internalRemoveCallback=this.removeCallbackHandler,t.createMultipleCallback=this.createMultipleCallbackHandler,t.classType=a(t,"classType",s)}))):r={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler}:r={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler,createMultipleCallback:this.createMultipleCallbackHandler,classType:s},this.world=t,this.physicsType=o.STATIC_BODY,this.collisionCategory=1,this.collisionMask=1,h.call(this,e,i,r),this.type="StaticPhysicsGroup"},createCallbackHandler:function(t){t.body||this.world.enableBody(t,o.STATIC_BODY)},removeCallbackHandler:function(t){t.body&&this.world.disableBody(t)},createMultipleCallbackHandler:function(){this.refresh()},refresh:function(){for(var t=this.children.entries,e=0;e{var s=i(55495),r=i(37742),n=i(45319),o=i(83419),a=i(79342),h=i(37747),l=i(20339),u=i(52816),c=i(50792),d=i(63012),p=i(43855),f=i(5470),g=i(94977),m=i(64897),v=i(45170),y=i(96523),x=i(35154),w=i(36383),T=i(25774),b=i(96602),S=i(87841),E=i(59542),C=i(40012),A=i(14087),_=i(89936),P=i(35072),R=i(72624),M=i(2483),k=i(61340),L=i(26099),O=i(15994),F=new o({Extends:c,initialize:function(t,e){c.call(this),this.scene=t,this.bodies=new P,this.staticBodies=new P,this.pendingDestroy=new P,this.colliders=new T,this.gravity=new L(x(e,"gravity.x",0),x(e,"gravity.y",0)),this.bounds=new S(x(e,"x",0),x(e,"y",0),x(e,"width",t.sys.scale.width),x(e,"height",t.sys.scale.height)),this.checkCollision={up:x(e,"checkCollision.up",!0),down:x(e,"checkCollision.down",!0),left:x(e,"checkCollision.left",!0),right:x(e,"checkCollision.right",!0)},this.fps=x(e,"fps",60),this.fixedStep=x(e,"fixedStep",!0),this._elapsed=0,this._frameTime=1/this.fps,this._frameTimeMS=1e3*this._frameTime,this.stepsLastFrame=0,this.timeScale=x(e,"timeScale",1),this.OVERLAP_BIAS=x(e,"overlapBias",4),this.TILE_BIAS=x(e,"tileBias",16),this.forceX=x(e,"forceX",!1),this.isPaused=x(e,"isPaused",!1),this._total=0,this.drawDebug=x(e,"debug",!1),this.debugGraphic,this.defaults={debugShowBody:x(e,"debugShowBody",!0),debugShowStaticBody:x(e,"debugShowStaticBody",!0),debugShowVelocity:x(e,"debugShowVelocity",!0),bodyDebugColor:x(e,"debugBodyColor",16711935),staticBodyDebugColor:x(e,"debugStaticBodyColor",255),velocityDebugColor:x(e,"debugVelocityColor",65280)},this.maxEntries=x(e,"maxEntries",16),this.useTree=x(e,"useTree",!0),this.tree=new E(this.maxEntries),this.staticTree=new E(this.maxEntries),this.treeMinMax={minX:0,minY:0,maxX:0,maxY:0},this._tempMatrix=new k,this._tempMatrix2=new k,this.tileFilterOptions={isColliding:!0,isNotEmpty:!0,hasInterestingFace:!0},this.drawDebug&&this.createDebugGraphic()},enable:function(t,e){void 0===e&&(e=h.DYNAMIC_BODY),Array.isArray(t)||(t=[t]);for(var i=0;i=n;for(this.fixedStep||(r=.001*e,a=!0,this._elapsed=0),i=0;i=n;)this._elapsed-=n,this.step(r)}},step:function(t){var e,i,s=this.bodies.entries,r=s.length;for(e=0;e0){var l=this.tree,u=this.staticTree;for(s=(i=a.entries).length,t=0;t-1&&t.velocity.length()>d&&(t.velocity.normalize().scale(d),c=d),t.speed=c},separate:function(t,e,i,s,r){var n,o,a=!1,h=!0;if(!t.enable||!e.enable||t.checkCollision.none||e.checkCollision.none||!this.intersects(t,e))return a;if(i&&!1===i.call(s,t.gameObject,e.gameObject))return a;if(t.isCircle||e.isCircle){var l=this.separateCircle(t,e,r);l.result?(a=!0,h=!1):(n=l.x,o=l.y,h=!0)}if(h){var u=!1,c=!1,p=this.OVERLAP_BIAS;r?(u=A(t,e,r,p,n),c=_(t,e,r,p,o)):this.forceX||Math.abs(this.gravity.y+t.gravity.y)E&&(f=l(y,x,E,S)-T):x>C&&(yE&&(f=l(y,x,E,C)-T)),f*=-1}else f=t.halfWidth+e.halfWidth-u(o,a);t.overlapR=f,e.overlapR=f;var A=s(o,a),_=(f+w.EPSILON)*Math.cos(A),P=(f+w.EPSILON)*Math.sin(A),R={overlap:f,result:!1,x:_,y:P};if(i&&(!g||g&&0!==f))return R.result=!0,R;if(!g&&0===f||h&&c||t.customSeparateX||e.customSeparateX)return R.x=void 0,R.y=void 0,R;var M=!t.pushable&&!e.pushable;if(g){var k=o.x-a.x,L=o.y-a.y,O=Math.sqrt(Math.pow(k,2)+Math.pow(L,2)),F=(a.x-o.x)/O||0,D=(a.y-o.y)/O||0,I=2*(d.x*F+d.y*D-p.x*F-p.y*D)/(t.mass+e.mass);(h||c)&&(I*=2),h||(d.x=d.x-I/t.mass*F,d.y=d.y-I/t.mass*D,d.multiply(t.bounce)),c||(p.x=p.x+I/e.mass*F,p.y=p.y+I/e.mass*D,p.multiply(e.bounce)),h||c||(_*=.5,P*=.5),h||(t.x-=_,t.y-=P,t.updateCenter()),c||(e.x+=_,e.y+=P,e.updateCenter()),R.result=!0}else!h||t.pushable||M?(t.x-=_,t.y-=P,t.updateCenter()):(!c||e.pushable||M)&&(e.x+=_,e.y+=P,e.updateCenter()),R.x=void 0,R.y=void 0;return R},intersects:function(t,e){return t!==e&&(t.isCircle||e.isCircle?t.isCircle?e.isCircle?u(t.center,e.center)<=t.halfWidth+e.halfWidth:this.circleBodyIntersects(t,e):this.circleBodyIntersects(e,t):!(t.right<=e.left||t.bottom<=e.top||t.left>=e.right||t.top>=e.bottom))},circleBodyIntersects:function(t,e){var i=n(t.center.x,e.left,e.right),s=n(t.center.y,e.top,e.bottom);return(t.center.x-i)*(t.center.x-i)+(t.center.y-s)*(t.center.y-s)<=t.halfWidth*t.halfWidth},overlap:function(t,e,i,s,r){return void 0===i&&(i=null),void 0===s&&(s=null),void 0===r&&(r=i),this.collideObjects(t,e,i,s,r,!0)},collide:function(t,e,i,s,r){return void 0===i&&(i=null),void 0===s&&(s=null),void 0===r&&(r=i),this.collideObjects(t,e,i,s,r,!1)},collideObjects:function(t,e,i,s,r,n){var o,a;!t.isParent||void 0!==t.physicsType&&void 0!==e&&t!==e||(t=t.children.entries),e&&e.isParent&&void 0===e.physicsType&&(e=e.children.entries);var h=Array.isArray(t),l=Array.isArray(e);if(this._total=0,h||l)if(!h&&l)for(o=0;o0},collideHandler:function(t,e,i,s,r,n){if(void 0===e&&t.isParent)return this.collideGroupVsGroup(t,t,i,s,r,n);if(!t||!e)return!1;if(t.body||t.isBody){if(e.body||e.isBody)return this.collideSpriteVsSprite(t,e,i,s,r,n);if(e.isParent)return this.collideSpriteVsGroup(t,e,i,s,r,n);if(e.isTilemap)return this.collideSpriteVsTilemapLayer(t,e,i,s,r,n)}else if(t.isParent){if(e.body||e.isBody)return this.collideSpriteVsGroup(e,t,i,s,r,n);if(e.isParent)return this.collideGroupVsGroup(t,e,i,s,r,n);if(e.isTilemap)return this.collideGroupVsTilemapLayer(t,e,i,s,r,n)}else if(t.isTilemap){if(e.body||e.isBody)return this.collideSpriteVsTilemapLayer(e,t,i,s,r,n);if(e.isParent)return this.collideGroupVsTilemapLayer(e,t,i,s,r,n)}},canCollide:function(t,e){return t&&e&&!!(t.collisionMask&e.collisionCategory)&&!!(e.collisionMask&t.collisionCategory)},collideSpriteVsSprite:function(t,e,i,s,r,n){var o=t.isBody?t:t.body,a=e.isBody?e:e.body;return!!this.canCollide(o,a)&&(this.separate(o,a,s,r,n)&&(i&&i.call(r,t,e),this._total++),!0)},collideSpriteVsGroup:function(t,e,i,s,r,n){var o,a,l,u=t.isBody?t:t.body;if(0!==e.length&&u&&u.enable&&!u.checkCollision.none&&this.canCollide(u,e))if(this.useTree||e.physicsType===h.STATIC_BODY){var c=this.treeMinMax;c.minX=u.left,c.minY=u.top,c.maxX=u.right,c.maxY=u.bottom;var d=e.physicsType===h.DYNAMIC_BODY?this.tree.search(c):this.staticTree.search(c);for(a=d.length,o=0;o{t.exports={setAcceleration:function(t,e){return this.body.acceleration.set(t,e),this},setAccelerationX:function(t){return this.body.acceleration.x=t,this},setAccelerationY:function(t){return this.body.acceleration.y=t,this}}},59023:t=>{t.exports={setAngularVelocity:function(t){return this.body.angularVelocity=t,this},setAngularAcceleration:function(t){return this.body.angularAcceleration=t,this},setAngularDrag:function(t){return this.body.angularDrag=t,this}}},62069:t=>{t.exports={setBounce:function(t,e){return this.body.bounce.set(t,e),this},setBounceX:function(t){return this.body.bounce.x=t,this},setBounceY:function(t){return this.body.bounce.y=t,this},setCollideWorldBounds:function(t,e,i,s){return this.body.setCollideWorldBounds(t,e,i,s),this}}},78389:(t,e,i)=>{var s=i(79599),r={setCollisionCategory:function(t){return(this.body?this.body:this).collisionCategory=t,this},willCollideWith:function(t){return!!((this.body?this.body:this).collisionMask&t)},addCollidesWith:function(t){var e=this.body?this.body:this;return e.collisionMask=e.collisionMask|t,this},removeCollidesWith:function(t){var e=this.body?this.body:this;return e.collisionMask=e.collisionMask&~t,this},setCollidesWith:function(t){return(this.body?this.body:this).collisionMask=s(t),this},resetCollisionCategory:function(){var t=this.body?this.body:this;return t.collisionCategory=1,t.collisionMask=1,this}};t.exports=r},87118:t=>{t.exports={setDebug:function(t,e,i){return this.debugShowBody=t,this.debugShowVelocity=e,this.debugBodyColor=i,this},setDebugBodyColor:function(t){return this.body.debugBodyColor=t,this},debugShowBody:{get:function(){return this.body.debugShowBody},set:function(t){this.body.debugShowBody=t}},debugShowVelocity:{get:function(){return this.body.debugShowVelocity},set:function(t){this.body.debugShowVelocity=t}},debugBodyColor:{get:function(){return this.body.debugBodyColor},set:function(t){this.body.debugBodyColor=t}}}},52819:t=>{t.exports={setDrag:function(t,e){return this.body.drag.set(t,e),this},setDragX:function(t){return this.body.drag.x=t,this},setDragY:function(t){return this.body.drag.y=t,this},setDamping:function(t){return this.body.useDamping=t,this}}},4074:t=>{t.exports={setDirectControl:function(t){return this.body.setDirectControl(t),this},enableBody:function(t,e,i,s,r){return t&&this.body.reset(e,i),s&&(this.body.gameObject.active=!0),r&&(this.body.gameObject.visible=!0),this.body.enable=!0,this},disableBody:function(t,e){return void 0===t&&(t=!1),void 0===e&&(e=!1),this.body.stop(),this.body.enable=!1,t&&(this.body.gameObject.active=!1),e&&(this.body.gameObject.visible=!1),this},refreshBody:function(){return this.body.updateFromGameObject(),this}}},40831:t=>{t.exports={setFriction:function(t,e){return this.body.friction.set(t,e),this},setFrictionX:function(t){return this.body.friction.x=t,this},setFrictionY:function(t){return this.body.friction.y=t,this}}},26775:t=>{t.exports={setGravity:function(t,e){return this.body.gravity.set(t,e),this},setGravityX:function(t){return this.body.gravity.x=t,this},setGravityY:function(t){return this.body.gravity.y=t,this}}},9437:t=>{t.exports={setImmovable:function(t){return void 0===t&&(t=!0),this.body.immovable=t,this}}},30621:t=>{t.exports={setMass:function(t){return this.body.mass=t,this}}},72441:(t,e,i)=>{var s=i(47956),r=i(96503),n=i(2044),o=i(81491);t.exports=function(t,e,i,a,h,l){var u=s(t,e-a,i-a,2*a,2*a,h,l);if(0===u.length)return u;for(var c=new r(e,i,a),d=new r,p=[],f=0;f{t.exports=function(t,e,i,s,r,n,o){void 0===n&&(n=!0),void 0===o&&(o=!1);var a=[],h=[],l=t.treeMinMax;if(l.minX=e,l.minY=i,l.maxX=e+s,l.maxY=i+r,o&&(h=t.staticTree.search(l)),n&&t.useTree)a=t.tree.search(l);else if(n){var u=t.bodies,c={position:{x:e,y:i},left:e,top:i,right:e+s,bottom:i+r,isCircle:!1},d=t.intersects;u.iterate((function(t){d(t,c)&&a.push(t)}))}return h.concat(a)}},62121:t=>{t.exports={setPushable:function(t){return void 0===t&&(t=!0),this.body.pushable=t,this}}},29384:t=>{t.exports={setOffset:function(t,e){return this.body.setOffset(t,e),this},setSize:function(t,e,i){return this.body.setSize(t,e,i),this},setBodySize:function(t,e,i){return this.body.setSize(t,e,i),this},setCircle:function(t,e,i){return this.body.setCircle(t,e,i),this}}},15098:t=>{t.exports={setVelocity:function(t,e){return this.body.setVelocity(t,e),this},setVelocityX:function(t){return this.body.setVelocityX(t),this},setVelocityY:function(t){return this.body.setVelocityY(t),this},setMaxVelocity:function(t,e){return this.body.maxVelocity.set(t,e),this}}},92209:(t,e,i)=>{t.exports={Acceleration:i(1093),Angular:i(59023),Bounce:i(62069),Collision:i(78389),Debug:i(87118),Drag:i(52819),Enable:i(4074),Friction:i(40831),Gravity:i(26775),Immovable:i(9437),Mass:i(30621),OverlapCirc:i(72441),OverlapRect:i(47956),Pushable:i(62121),Size:i(29384),Velocity:i(15098)}},37747:t=>{t.exports={DYNAMIC_BODY:0,STATIC_BODY:1,GROUP:2,TILEMAPLAYER:3,FACING_NONE:10,FACING_UP:11,FACING_DOWN:12,FACING_LEFT:13,FACING_RIGHT:14}},20009:t=>{t.exports="collide"},36768:t=>{t.exports="overlap"},60473:t=>{t.exports="pause"},89954:t=>{t.exports="resume"},61804:t=>{t.exports="tilecollide"},7161:t=>{t.exports="tileoverlap"},34689:t=>{t.exports="worldbounds"},16006:t=>{t.exports="worldstep"},63012:(t,e,i)=>{t.exports={COLLIDE:i(20009),OVERLAP:i(36768),PAUSE:i(60473),RESUME:i(89954),TILE_COLLIDE:i(61804),TILE_OVERLAP:i(7161),WORLD_BOUNDS:i(34689),WORLD_STEP:i(16006)}},27064:(t,e,i)=>{var s=i(37747),r=i(79291),n={ArcadePhysics:i(86689),Body:i(37742),Collider:i(79342),Components:i(92209),Events:i(63012),Factory:i(66022),GetCollidesWith:i(79599),GetOverlapX:i(64897),GetOverlapY:i(45170),SeparateX:i(14087),SeparateY:i(89936),Group:i(60758),Image:i(71289),Sprite:i(13759),StaticBody:i(72624),StaticGroup:i(71464),Tilemap:i(55173),World:i(82248)};n=r(!1,n,s),t.exports=n},96602:t=>{t.exports=function(t,e){return t.collisionCallback?!t.collisionCallback.call(t.collisionCallbackContext,e,t):!t.layer.callbacks[t.index]||!t.layer.callbacks[t.index].callback.call(t.layer.callbacks[t.index].callbackContext,e,t)}},36294:t=>{t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.left=!0):e>0&&(t.blocked.none=!1,t.blocked.right=!0),t.position.x-=e,t.updateCenter(),0===t.bounce.x?t.velocity.x=0:t.velocity.x=-t.velocity.x*t.bounce.x}},67013:t=>{t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.up=!0):e>0&&(t.blocked.none=!1,t.blocked.down=!0),t.position.y-=e,t.updateCenter(),0===t.bounce.y?t.velocity.y=0:t.velocity.y=-t.velocity.y*t.bounce.y}},40012:(t,e,i)=>{var s=i(21329),r=i(53442),n=i(2483);t.exports=function(t,e,i,o,a,h,l){var u=o.left,c=o.top,d=o.right,p=o.bottom,f=i.faceLeft||i.faceRight,g=i.faceTop||i.faceBottom;if(l||(f=!0,g=!0),!f&&!g)return!1;var m=0,v=0,y=0,x=1;if(e.deltaAbsX()>e.deltaAbsY()?y=-1:e.deltaAbsX(){var s=i(36294);t.exports=function(t,e,i,r,n,o){var a=0,h=e.faceLeft,l=e.faceRight,u=e.collideLeft,c=e.collideRight;return o||(h=!0,l=!0,u=!0,c=!0),t.deltaX()<0&&c&&t.checkCollision.left?l&&t.x0&&u&&t.checkCollision.right&&h&&t.right>i&&(a=t.right-i)>n&&(a=0),0!==a&&(t.customSeparateX?t.overlapX=a:s(t,a)),a}},53442:(t,e,i)=>{var s=i(67013);t.exports=function(t,e,i,r,n,o){var a=0,h=e.faceTop,l=e.faceBottom,u=e.collideUp,c=e.collideDown;return o||(h=!0,l=!0,u=!0,c=!0),t.deltaY()<0&&c&&t.checkCollision.up?l&&t.y0&&u&&t.checkCollision.down&&h&&t.bottom>i&&(a=t.bottom-i)>n&&(a=0),0!==a&&(t.customSeparateY?t.overlapY=a:s(t,a)),a}},2483:t=>{t.exports=function(t,e){return!(e.right<=t.left||e.bottom<=t.top||e.position.x>=t.right||e.position.y>=t.bottom)}},55173:(t,e,i)=>{var s={ProcessTileCallbacks:i(96602),ProcessTileSeparationX:i(36294),ProcessTileSeparationY:i(67013),SeparateTile:i(40012),TileCheckX:i(21329),TileCheckY:i(53442),TileIntersectsBody:i(2483)};t.exports=s},44563:(t,e,i)=>{t.exports={Arcade:i(27064),Matter:i(3875)}},68174:(t,e,i)=>{var s=i(83419),r=i(26099),n=new s({initialize:function(){this.boundsCenter=new r,this.centerDiff=new r},parseBody:function(t){if(!(t=t.hasOwnProperty("body")?t.body:t).hasOwnProperty("bounds")||!t.hasOwnProperty("centerOfMass"))return!1;var e=this.boundsCenter,i=this.centerDiff,s=t.bounds.max.x-t.bounds.min.x,r=t.bounds.max.y-t.bounds.min.y,n=s*t.centerOfMass.x,o=r*t.centerOfMass.y;return e.set(s/2,r/2),i.set(n-e.x,o-e.y),!0},getTopLeft:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var s=this.boundsCenter,n=this.centerDiff;return new r(e+s.x+n.x,i+s.y+n.y)}return!1},getTopCenter:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var s=this.boundsCenter,n=this.centerDiff;return new r(e+n.x,i+s.y+n.y)}return!1},getTopRight:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var s=this.boundsCenter,n=this.centerDiff;return new r(e-(s.x-n.x),i+s.y+n.y)}return!1},getLeftCenter:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var s=this.boundsCenter,n=this.centerDiff;return new r(e+s.x+n.x,i+n.y)}return!1},getCenter:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var s=this.centerDiff;return new r(e+s.x,i+s.y)}return!1},getRightCenter:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var s=this.boundsCenter,n=this.centerDiff;return new r(e-(s.x-n.x),i+n.y)}return!1},getBottomLeft:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var s=this.boundsCenter,n=this.centerDiff;return new r(e+s.x+n.x,i-(s.y-n.y))}return!1},getBottomCenter:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var s=this.boundsCenter,n=this.centerDiff;return new r(e+n.x,i-(s.y-n.y))}return!1},getBottomRight:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var s=this.boundsCenter,n=this.centerDiff;return new r(e-(s.x-n.x),i-(s.y-n.y))}return!1}});t.exports=n},19933:(t,e,i)=>{var s=i(6790);s.Body=i(22562),s.Composite=i(69351),s.World=i(4372),s.Collision=i(52284),s.Detector=i(81388),s.Pairs=i(99561),s.Pair=i(4506),s.Query=i(73296),s.Resolver=i(66272),s.Constraint=i(48140),s.Common=i(53402),s.Engine=i(48413),s.Events=i(35810),s.Sleeping=i(53614),s.Plugin=i(73832),s.Bodies=i(66280),s.Composites=i(74116),s.Axes=i(66615),s.Bounds=i(15647),s.Svg=i(74058),s.Vector=i(31725),s.Vertices=i(41598),s.World.add=s.Composite.add,s.World.remove=s.Composite.remove,s.World.addComposite=s.Composite.addComposite,s.World.addBody=s.Composite.addBody,s.World.addConstraint=s.Composite.addConstraint,s.World.clear=s.Composite.clear,t.exports=s},28137:(t,e,i)=>{var s=i(66280),r=i(83419),n=i(74116),o=i(48140),a=i(74058),h=i(75803),l=i(23181),u=i(34803),c=i(73834),d=i(19496),p=i(85791),f=i(98713),g=i(41598),m=new r({initialize:function(t){this.world=t,this.scene=t.scene,this.sys=t.scene.sys},rectangle:function(t,e,i,r,n){var o=s.rectangle(t,e,i,r,n);return this.world.add(o),o},trapezoid:function(t,e,i,r,n,o){var a=s.trapezoid(t,e,i,r,n,o);return this.world.add(a),a},circle:function(t,e,i,r,n){var o=s.circle(t,e,i,r,n);return this.world.add(o),o},polygon:function(t,e,i,r,n){var o=s.polygon(t,e,i,r,n);return this.world.add(o),o},fromVertices:function(t,e,i,r,n,o,a){"string"==typeof i&&(i=g.fromPath(i));var h=s.fromVertices(t,e,i,r,n,o,a);return this.world.add(h),h},fromPhysicsEditor:function(t,e,i,s,r){void 0===r&&(r=!0);var n=d.parseBody(t,e,i,s);return r&&!this.world.has(n)&&this.world.add(n),n},fromSVG:function(t,e,i,r,n,o){void 0===r&&(r=1),void 0===n&&(n={}),void 0===o&&(o=!0);for(var h=i.getElementsByTagName("path"),l=[],u=0;u{var s=i(31884),r=i(95540),n=i(26099);t.exports=function(t,e,i,o){void 0===i&&(i={}),void 0===o&&(o=!0);var a=e.x,h=e.y;if(e.body={temp:!0,position:{x:a,y:h}},[s.Bounce,s.Collision,s.Force,s.Friction,s.Gravity,s.Mass,s.Sensor,s.SetBody,s.Sleep,s.Static,s.Transform,s.Velocity].forEach((function(t){for(var i in t)(s=t[i]).get&&"function"==typeof s.get||s.set&&"function"==typeof s.set?Object.defineProperty(e,i,{get:t[i].get,set:t[i].set}):Object.defineProperty(e,i,{value:t[i]});var s})),e.world=t,e._tempVec2=new n(a,h),i.hasOwnProperty("type")&&"body"===i.type)e.setExistingBody(i,o);else{var l=r(i,"shape",null);l||(l="rectangle"),i.addToWorld=o,e.setBody(l,i)}return e}},23181:(t,e,i)=>{var s=i(83419),r=i(31884),n=i(95643),o=i(95540),a=i(88571),h=i(72699),l=i(26099),u=new s({Extends:a,Mixins:[r.Bounce,r.Collision,r.Force,r.Friction,r.Gravity,r.Mass,r.Sensor,r.SetBody,r.Sleep,r.Static,r.Transform,r.Velocity,h],initialize:function(t,e,i,s,r,a){n.call(this,t.scene,"Image"),this._crop=this.resetCropObject(),this.setTexture(s,r),this.setSizeToFrame(),this.setOrigin(),this.world=t,this._tempVec2=new l(e,i);var h=o(a,"shape",null);h?this.setBody(h,a):this.setRectangle(this.width,this.height,a),this.setPosition(e,i),this.initPipeline(),this.initPostPipeline(!0)}});t.exports=u},42045:(t,e,i)=>{var s=i(60461),r=i(66615),n=i(66280),o=i(22562),a=i(68174),h=i(15647),l=i(83419),u=i(52284),c=i(53402),d=i(69351),p=i(74116),f=i(48140),g=i(81388),m=i(20339),v=i(28137),y=i(95540),x=i(35154),w=i(18210),T=i(40178),b=i(6790),S=i(74507),E=i(46975),C=i(4506),A=i(99561),_=i(73832),P=i(37277),R=i(73296),M=i(66272),k=i(44594),L=i(74058),O=i(31725),F=i(41598),D=i(68243);c.setDecomp(i(55973));var I=new l({initialize:function(t){this.scene=t,this.systems=t.sys,this.config=this.getConfig(),this.world,this.add,this.bodyBounds,this.body=o,this.composite=d,this.collision=u,this.detector=g,this.pair=C,this.pairs=A,this.query=R,this.resolver=M,this.constraint=f,this.bodies=n,this.composites=p,this.axes=r,this.bounds=h,this.svg=L,this.vector=O,this.vertices=F,this.verts=F,this._tempVec2=O.create(),x(this.config,"plugins.collisionevents",!0)&&this.enableCollisionEventsPlugin(),x(this.config,"plugins.attractors",!1)&&this.enableAttractorPlugin(),x(this.config,"plugins.wrap",!1)&&this.enableWrapPlugin(),M._restingThresh=x(this.config,"restingThresh",4),M._restingThreshTangent=x(this.config,"restingThreshTangent",6),M._positionDampen=x(this.config,"positionDampen",.9),M._positionWarming=x(this.config,"positionWarming",.8),M._frictionNormalMultiplier=x(this.config,"frictionNormalMultiplier",5),t.sys.events.once(k.BOOT,this.boot,this),t.sys.events.on(k.START,this.start,this)},boot:function(){this.world=new D(this.scene,this.config),this.add=new v(this.world),this.bodyBounds=new a,this.systems.events.once(k.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new D(this.scene,this.config),this.add=new v(this.world));var t=this.systems.events;t.on(k.UPDATE,this.world.update,this.world),t.on(k.POST_UPDATE,this.world.postUpdate,this.world),t.once(k.SHUTDOWN,this.shutdown,this)},getConfig:function(){var t=this.systems.game.config.physics,e=this.systems.settings.physics;return E(y(e,"matter",{}),y(t,"matter",{}))},enableAttractorPlugin:function(){return _.register(w),_.use(b,w),this},enableWrapPlugin:function(){return _.register(S),_.use(b,S),this},enableCollisionEventsPlugin:function(){return _.register(T),_.use(b,T),this},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},set60Hz:function(){return this.world.getDelta=this.world.update60Hz,this.world.autoUpdate=!0,this},set30Hz:function(){return this.world.getDelta=this.world.update30Hz,this.world.autoUpdate=!0,this},step:function(t,e){this.world.step(t,e)},containsPoint:function(t,e,i){t=this.getMatterBodies(t);var s=O.create(e,i);return R.point(t,s).length>0},intersectPoint:function(t,e,i){i=this.getMatterBodies(i);var s=O.create(t,e),r=[];return R.point(i,s).forEach((function(t){-1===r.indexOf(t)&&r.push(t)})),r},intersectRect:function(t,e,i,s,r,n){void 0===r&&(r=!1),n=this.getMatterBodies(n);var o={min:{x:t,y:e},max:{x:t+i,y:e+s}},a=[];return R.region(n,o,r).forEach((function(t){-1===a.indexOf(t)&&a.push(t)})),a},intersectRay:function(t,e,i,s,r,n){void 0===r&&(r=1),n=this.getMatterBodies(n);for(var o=[],a=R.ray(n,O.create(t,e),O.create(i,s),r),h=0;h{var s=i(9674),r=i(83419),n=i(31884),o=i(95643),a=i(95540),h=i(72699),l=i(68287),u=i(26099),c=new r({Extends:l,Mixins:[n.Bounce,n.Collision,n.Force,n.Friction,n.Gravity,n.Mass,n.Sensor,n.SetBody,n.Sleep,n.Static,n.Transform,n.Velocity,h],initialize:function(t,e,i,r,n,h){o.call(this,t.scene,"Sprite"),this._crop=this.resetCropObject(),this.anims=new s(this),this.setTexture(r,n),this.setSizeToFrame(),this.setOrigin(),this.world=t,this._tempVec2=new u(e,i);var l=a(h,"shape",null);l?this.setBody(l,h):this.setRectangle(this.width,this.height,h),this.setPosition(e,i),this.initPipeline(),this.initPostPipeline(!0)}});t.exports=c},73834:(t,e,i)=>{var s=i(66280),r=i(22562),n=i(83419),o=i(31884),a=i(62644),h=i(50792),l=i(95540),u=i(97022),c=i(41598),d=new n({Extends:h,Mixins:[o.Bounce,o.Collision,o.Friction,o.Gravity,o.Mass,o.Sensor,o.Sleep,o.Static],initialize:function(t,e,i){h.call(this),this.tile=e,this.world=t,e.physics.matterBody&&e.physics.matterBody.destroy(),e.physics.matterBody=this;var s=l(i,"body",null),n=l(i,"addToWorld",!0);if(s)this.setBody(s,n);else{var o=e.getCollisionGroup();l(o,"objects",[]).length>0?this.setFromTileCollision(i):this.setFromTileRectangle(i)}if(e.flipX||e.flipY){var a={x:e.getCenterX(),y:e.getCenterY()},u=e.flipX?-1:1,c=e.flipY?-1:1;r.scale(s,u,c,a)}},setFromTileRectangle:function(t){void 0===t&&(t={}),u(t,"isStatic")||(t.isStatic=!0),u(t,"addToWorld")||(t.addToWorld=!0);var e=this.tile.getBounds(),i=e.x+e.width/2,r=e.y+e.height/2,n=s.rectangle(i,r,e.width,e.height,t);return this.setBody(n,t.addToWorld),this},setFromTileCollision:function(t){void 0===t&&(t={}),u(t,"isStatic")||(t.isStatic=!0),u(t,"addToWorld")||(t.addToWorld=!0);for(var e=this.tile.tilemapLayer.scaleX,i=this.tile.tilemapLayer.scaleY,n=this.tile.getLeft(),o=this.tile.getTop(),h=this.tile.getCollisionGroup(),d=l(h,"objects",[]),p=[],f=0;f1){var E=a(t);E.parts=p,this.setBody(r.create(E),E.addToWorld)}return this},setBody:function(t,e){return void 0===e&&(e=!0),this.body&&this.removeBody(),this.body=t,this.body.gameObject=this,e&&this.world.add(this.body),this},removeBody:function(){return this.body&&(this.world.remove(this.body),this.body.gameObject=void 0,this.body=void 0),this},destroy:function(){this.removeBody(),this.tile.physics.matterBody=void 0,this.removeAllListeners()}});t.exports=d},19496:(t,e,i)=>{var s=i(66280),r=i(22562),n=i(53402),o=i(95540),a=i(41598),h={parseBody:function(t,e,i,s){void 0===s&&(s={});for(var a=o(i,"fixtures",[]),h=[],l=0;l{var s=i(66280),r=i(22562),n={parseBody:function(t,e,i,n){var o;void 0===n&&(n={});var a=i.vertices;if(1===a.length)n.vertices=a[0],o=r.create(n),s.flagCoincidentParts(o.parts);else{for(var h=[],l=0;l{var s=i(15647),r=i(83419),n=i(69351),o=i(48140),a=i(81388),h=i(1121),l=i(8214),u=i(46975),c=i(53614),d=i(26099),p=i(41598),f=new r({initialize:function(t,e,i){void 0===i&&(i={}),this.scene=t,this.world=e,this.camera=null,this.pointer=null,this.active=!0,this.position=new d,this.body=null,this.part=null,this.constraint=o.create(u(i,{label:"Pointer Constraint",pointA:{x:0,y:0},pointB:{x:0,y:0},length:.01,stiffness:.1,angularStiffness:1,collisionFilter:{category:1,mask:4294967295,group:0}})),this.world.on(h.BEFORE_UPDATE,this.update,this),t.sys.input.on(l.POINTER_DOWN,this.onDown,this),t.sys.input.on(l.POINTER_UP,this.onUp,this)},onDown:function(t){this.pointer||(this.pointer=t,this.camera=t.camera)},onUp:function(t){t===this.pointer&&(this.pointer=null)},getBody:function(t){var e=this.position,i=this.constraint;this.camera.getWorldPoint(t.x,t.y,e);for(var r=n.allBodies(this.world.localWorld),o=0;o1?1:0;r{var s=i(66280),r=i(22562),n=i(83419),o=i(53402),a=i(69351),h=i(48413),l=i(50792),u=i(1121),c=i(95540),d=i(35154),p=i(22562),f=i(35810),g=i(73834),m=i(4372),v=i(31725),y=new n({Extends:l,initialize:function(t,e){l.call(this),this.scene=t,this.engine=h.create(e),this.localWorld=this.engine.world;var i=d(e,"gravity",null);i?this.setGravity(i.x,i.y,i.scale):!1===i&&this.setGravity(0,0,0),this.walls={left:null,right:null,top:null,bottom:null},this.enabled=d(e,"enabled",!0),this.getDelta=d(e,"getDelta",this.update60Hz);var s=c(e,"runner",{}),r=c(s,"fps",!1),n=c(s,"fps",60),o=c(s,"delta",1e3/n),a=c(s,"deltaMin",1e3/n),u=c(s,"deltaMax",1e3/(.5*n));r||(n=1e3/o),this.runner={fps:n,deltaSampleSize:c(s,"deltaSampleSize",60),counterTimestamp:0,frameCounter:0,deltaHistory:[],timePrev:null,timeScalePrev:1,frameRequestId:null,isFixed:c(s,"isFixed",!1),delta:o,deltaMin:a,deltaMax:u},this.autoUpdate=d(e,"autoUpdate",!0);var p=d(e,"debug",!1);if(this.drawDebug="object"==typeof p||p,this.debugGraphic,this.debugConfig={showAxes:c(p,"showAxes",!1),showAngleIndicator:c(p,"showAngleIndicator",!1),angleColor:c(p,"angleColor",15208787),showBroadphase:c(p,"showBroadphase",!1),broadphaseColor:c(p,"broadphaseColor",16757760),showBounds:c(p,"showBounds",!1),boundsColor:c(p,"boundsColor",16777215),showVelocity:c(p,"showVelocity",!1),velocityColor:c(p,"velocityColor",44783),showCollisions:c(p,"showCollisions",!1),collisionColor:c(p,"collisionColor",16094476),showSeparations:c(p,"showSeparations",!1),separationColor:c(p,"separationColor",16753920),showBody:c(p,"showBody",!0),showStaticBody:c(p,"showStaticBody",!0),showInternalEdges:c(p,"showInternalEdges",!1),renderFill:c(p,"renderFill",!1),renderLine:c(p,"renderLine",!0),fillColor:c(p,"fillColor",1075465),fillOpacity:c(p,"fillOpacity",1),lineColor:c(p,"lineColor",2678297),lineOpacity:c(p,"lineOpacity",1),lineThickness:c(p,"lineThickness",1),staticFillColor:c(p,"staticFillColor",857979),staticLineColor:c(p,"staticLineColor",1255396),showSleeping:c(p,"showSleeping",!1),staticBodySleepOpacity:c(p,"staticBodySleepOpacity",.7),sleepFillColor:c(p,"sleepFillColor",4605510),sleepLineColor:c(p,"sleepLineColor",10066585),showSensors:c(p,"showSensors",!0),sensorFillColor:c(p,"sensorFillColor",857979),sensorLineColor:c(p,"sensorLineColor",1255396),showPositions:c(p,"showPositions",!0),positionSize:c(p,"positionSize",4),positionColor:c(p,"positionColor",14697178),showJoint:c(p,"showJoint",!0),jointColor:c(p,"jointColor",14737474),jointLineOpacity:c(p,"jointLineOpacity",1),jointLineThickness:c(p,"jointLineThickness",2),pinSize:c(p,"pinSize",4),pinColor:c(p,"pinColor",4382944),springColor:c(p,"springColor",14697184),anchorColor:c(p,"anchorColor",15724527),anchorSize:c(p,"anchorSize",4),showConvexHulls:c(p,"showConvexHulls",!1),hullColor:c(p,"hullColor",14091216)},this.drawDebug&&this.createDebugGraphic(),this.setEventsProxy(),c(e,"setBounds",!1)){var f=e.setBounds;if("boolean"==typeof f)this.setBounds();else{var g=c(f,"x",0),m=c(f,"y",0),v=c(f,"width",t.sys.scale.width),y=c(f,"height",t.sys.scale.height),x=c(f,"thickness",64),w=c(f,"left",!0),T=c(f,"right",!0),b=c(f,"top",!0),S=c(f,"bottom",!0);this.setBounds(g,m,v,y,x,w,T,b,S)}}},setCompositeRenderStyle:function(t){var e,i,s,r=t.bodies,n=t.constraints,o=t.composites;for(e=0;e0&&(i=r[0].bodyA,s=r[0].bodyB),t.emit(u.COLLISION_START,e,i,s)})),f.on(e,"collisionActive",(function(e){var i,s,r=e.pairs;r.length>0&&(i=r[0].bodyA,s=r[0].bodyB),t.emit(u.COLLISION_ACTIVE,e,i,s)})),f.on(e,"collisionEnd",(function(e){var i,s,r=e.pairs;r.length>0&&(i=r[0].bodyA,s=r[0].bodyB),t.emit(u.COLLISION_END,e,i,s)}))},setBounds:function(t,e,i,s,r,n,o,a,h){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.scene.sys.scale.width),void 0===s&&(s=this.scene.sys.scale.height),void 0===r&&(r=64),void 0===n&&(n=!0),void 0===o&&(o=!0),void 0===a&&(a=!0),void 0===h&&(h=!0),this.updateWall(n,"left",t-r,e-r,r,s+2*r),this.updateWall(o,"right",t+i,e-r,r,s+2*r),this.updateWall(a,"top",t,e-r,i,r),this.updateWall(h,"bottom",t,e+s,i,r),this},updateWall:function(t,e,i,s,r,n){var o=this.walls[e];t?(o&&m.remove(this.localWorld,o),i+=r/2,s+=n/2,this.walls[e]=this.create(i,s,r,n,{isStatic:!0,friction:0,frictionStatic:0})):(o&&m.remove(this.localWorld,o),this.walls[e]=null)},createDebugGraphic:function(){var t=this.scene.sys.add.graphics({x:0,y:0});return t.setDepth(Number.MAX_VALUE),this.debugGraphic=t,this.drawDebug=!0,t},disableGravity:function(){return this.localWorld.gravity.x=0,this.localWorld.gravity.y=0,this.localWorld.gravity.scale=0,this},setGravity:function(t,e,i){return void 0===t&&(t=0),void 0===e&&(e=1),void 0===i&&(i=.001),this.localWorld.gravity.x=t,this.localWorld.gravity.y=e,this.localWorld.gravity.scale=i,this},create:function(t,e,i,r,n){var o=s.rectangle(t,e,i,r,n);return m.add(this.localWorld,o),o},add:function(t){return m.add(this.localWorld,t),this},remove:function(t,e){Array.isArray(t)||(t=[t]);for(var i=0;is.deltaMax?s.deltaMax:e,s.delta=e),s.timeScalePrev=r.timeScale,s.frameCounter+=1,t-s.counterTimestamp>=1e3&&(s.fps=s.frameCounter*((t-s.counterTimestamp)/1e3),s.counterTimestamp=t,s.frameCounter=0),h.update(i,e)}},step:function(t){h.update(this.engine,t)},update60Hz:function(){return 1e3/60},update30Hz:function(){return 1e3/30},has:function(t){var e=t.hasOwnProperty("body")?t.body:t;return null!==a.get(this.localWorld,e.id,e.type)},getAllBodies:function(){return a.allBodies(this.localWorld)},getAllConstraints:function(){return a.allConstraints(this.localWorld)},getAllComposites:function(){return a.allComposites(this.localWorld)},postUpdate:function(){if(this.drawDebug){var t=this.debugConfig,e=this.engine,i=this.debugGraphic,s=a.allBodies(this.localWorld);this.debugGraphic.clear(),t.showBroadphase&&e.broadphase.controller&&this.renderGrid(e.broadphase,i,t.broadphaseColor,.5),t.showBounds&&this.renderBodyBounds(s,i,t.boundsColor,.5),(t.showBody||t.showStaticBody)&&this.renderBodies(s),t.showJoint&&this.renderJoints(),(t.showAxes||t.showAngleIndicator)&&this.renderBodyAxes(s,i,t.showAxes,t.angleColor,.5),t.showVelocity&&this.renderBodyVelocity(s,i,t.velocityColor,1,2),t.showSeparations&&this.renderSeparations(e.pairs.list,i,t.separationColor),t.showCollisions&&this.renderCollisions(e.pairs.list,i,t.collisionColor)}},renderGrid:function(t,e,i,s){e.lineStyle(1,i,s);for(var r=o.keys(t.buckets),n=0;n0){var l=h[0].vertex.x,u=h[0].vertex.y;2===h.length&&(l=(h[0].vertex.x+h[1].vertex.x)/2,u=(h[0].vertex.y+h[1].vertex.y)/2),a.bodyB===a.supports[0].body||a.bodyA.isStatic?e.lineBetween(l-8*a.normal.x,u-8*a.normal.y,l,u):e.lineBetween(l+8*a.normal.x,u+8*a.normal.y,l,u)}}return this},renderBodyBounds:function(t,e,i,s){e.lineStyle(1,i,s);for(var r=0;r1?1:0;h1?1:0;a1?1:0;a1&&this.renderConvexHull(g,e,p,y)}}},renderBody:function(t,e,i,s,r,n,o,a){void 0===s&&(s=null),void 0===r&&(r=null),void 0===n&&(n=1),void 0===o&&(o=null),void 0===a&&(a=null);for(var h=this.debugConfig,l=h.sensorFillColor,u=h.sensorLineColor,c=t.parts,d=c.length,p=d>1?1:0;p1){var r=t.vertices;e.lineStyle(s,i),e.beginPath(),e.moveTo(r[0].x,r[0].y);for(var n=1;n0&&(e.fillStyle(a),e.fillCircle(u.x,u.y,h),e.fillCircle(c.x,c.y,h)),this},resetCollisionIDs:function(){return r._nextCollidingGroupId=1,r._nextNonCollidingGroupId=-1,r._nextCategory=1,this},shutdown:function(){f.off(this.engine),this.removeAllListeners(),m.clear(this.localWorld,!1),h.clear(this.engine),this.drawDebug&&this.debugGraphic.destroy()},destroy:function(){this.shutdown()}});t.exports=y},70410:t=>{t.exports={setBounce:function(t){return this.body.restitution=t,this}}},66968:t=>{var e={setCollisionCategory:function(t){return this.body.collisionFilter.category=t,this},setCollisionGroup:function(t){return this.body.collisionFilter.group=t,this},setCollidesWith:function(t){var e=0;if(Array.isArray(t))for(var i=0;i{var s=i(22562),r={applyForce:function(t){return this._tempVec2.set(this.body.position.x,this.body.position.y),s.applyForce(this.body,this._tempVec2,t),this},applyForceFrom:function(t,e){return s.applyForce(this.body,t,e),this},thrust:function(t){var e=this.body.angle;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),s.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustLeft:function(t){var e=this.body.angle-Math.PI/2;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),s.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustRight:function(t){var e=this.body.angle+Math.PI/2;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),s.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustBack:function(t){var e=this.body.angle-Math.PI;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),s.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this}};t.exports=r},5436:t=>{t.exports={setFriction:function(t,e,i){return this.body.friction=t,void 0!==e&&(this.body.frictionAir=e),void 0!==i&&(this.body.frictionStatic=i),this},setFrictionAir:function(t){return this.body.frictionAir=t,this},setFrictionStatic:function(t){return this.body.frictionStatic=t,this}}},39858:t=>{t.exports={setIgnoreGravity:function(t){return this.body.ignoreGravity=t,this}}},37302:(t,e,i)=>{var s=i(22562),r=i(26099),n={setMass:function(t){return s.setMass(this.body,t),this},setDensity:function(t){return s.setDensity(this.body,t),this},centerOfMass:{get:function(){return new r(this.body.centerOfMass.x,this.body.centerOfMass.y)}}};t.exports=n},39132:t=>{t.exports={setSensor:function(t){return this.body.isSensor=t,this},isSensor:function(){return this.body.isSensor}}},57772:(t,e,i)=>{var s=i(66280),r=i(22562),n=i(43855),o=i(95540),a=i(19496),h=i(85791),l=i(41598),u={setRectangle:function(t,e,i){return this.setBody({type:"rectangle",width:t,height:e},i)},setCircle:function(t,e){return this.setBody({type:"circle",radius:t},e)},setPolygon:function(t,e,i){return this.setBody({type:"polygon",sides:e,radius:t},i)},setTrapezoid:function(t,e,i,s){return this.setBody({type:"trapezoid",width:t,height:e,slope:i},s)},setExistingBody:function(t,e){void 0===e&&(e=!0),this.body&&this.world.remove(this.body,!0),this.body=t;for(var i=0;i{var s=i(1121),r=i(53614),n=i(35810),o={setToSleep:function(){return r.set(this.body,!0),this},setAwake:function(){return r.set(this.body,!1),this},setSleepThreshold:function(t){return void 0===t&&(t=60),this.body.sleepThreshold=t,this},setSleepEvents:function(t,e){return this.setSleepStartEvent(t),this.setSleepEndEvent(e),this},setSleepStartEvent:function(t){if(t){var e=this.world;n.on(this.body,"sleepStart",(function(t){e.emit(s.SLEEP_START,t,this)}))}else n.off(this.body,"sleepStart");return this},setSleepEndEvent:function(t){if(t){var e=this.world;n.on(this.body,"sleepEnd",(function(t){e.emit(s.SLEEP_END,t,this)}))}else n.off(this.body,"sleepEnd");return this}};t.exports=o},90556:(t,e,i)=>{var s=i(22562),r={setStatic:function(t){return s.setStatic(this.body,t),this},isStatic:function(){return this.body.isStatic}};t.exports=r},85436:(t,e,i)=>{var s=i(22562),r=i(36383),n=i(86554),o=i(30954),a={x:{get:function(){return this.body.position.x},set:function(t){this._tempVec2.set(t,this.y),s.setPosition(this.body,this._tempVec2)}},y:{get:function(){return this.body.position.y},set:function(t){this._tempVec2.set(this.x,t),s.setPosition(this.body,this._tempVec2)}},scaleX:{get:function(){return this._scaleX},set:function(t){var e=1/this._scaleX,i=1/this._scaleY;this._scaleX=t,0===this._scaleX?this.renderFlags&=-5:this.renderFlags|=4,s.scale(this.body,e,i),s.scale(this.body,t,this._scaleY)}},scaleY:{get:function(){return this._scaleY},set:function(t){var e=1/this._scaleX,i=1/this._scaleY;this._scaleY=t,0===this._scaleY?this.renderFlags&=-5:this.renderFlags|=4,s.scale(this.body,e,i),s.scale(this.body,this._scaleX,t)}},angle:{get:function(){return o(this.body.angle*r.RAD_TO_DEG)},set:function(t){this.rotation=o(t)*r.DEG_TO_RAD}},rotation:{get:function(){return this.body.angle},set:function(t){this._rotation=n(t),s.setAngle(this.body,this._rotation)}},setPosition:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this._tempVec2.set(t,e),s.setPosition(this.body,this._tempVec2),this},setRotation:function(t){return void 0===t&&(t=0),this._rotation=n(t),s.setAngle(this.body,t),this},setFixedRotation:function(){return s.setInertia(this.body,1/0),this},setAngle:function(t){return void 0===t&&(t=0),this.angle=t,s.setAngle(this.body,this.rotation),this},setScale:function(t,e,i){void 0===t&&(t=1),void 0===e&&(e=t);var r=1/this._scaleX,n=1/this._scaleY;return this._scaleX=t,this._scaleY=e,s.scale(this.body,r,n,i),s.scale(this.body,t,e,i),this}};t.exports=a},42081:(t,e,i)=>{var s=i(22562),r={setVelocityX:function(t){return this._tempVec2.set(t,this.body.velocity.y),s.setVelocity(this.body,this._tempVec2),this},setVelocityY:function(t){return this._tempVec2.set(this.body.velocity.x,t),s.setVelocity(this.body,this._tempVec2),this},setVelocity:function(t,e){return this._tempVec2.set(t,e),s.setVelocity(this.body,this._tempVec2),this},getVelocity:function(){return s.getVelocity(this.body)},setAngularVelocity:function(t){return s.setAngularVelocity(this.body,t),this},getAngularVelocity:function(){return s.getAngularVelocity(this.body)},setAngularSpeed:function(t){return s.setAngularSpeed(this.body,t),this},getAngularSpeed:function(){return s.getAngularSpeed(this.body)}};t.exports=r},31884:(t,e,i)=>{t.exports={Bounce:i(70410),Collision:i(66968),Force:i(51607),Friction:i(5436),Gravity:i(39858),Mass:i(37302),Sensor:i(39132),SetBody:i(57772),Sleep:i(38083),Static:i(90556),Transform:i(85436),Velocity:i(42081)}},85608:t=>{t.exports="afteradd"},1213:t=>{t.exports="afterremove"},25968:t=>{t.exports="afterupdate"},67205:t=>{t.exports="beforeadd"},39438:t=>{t.exports="beforeremove"},44823:t=>{t.exports="beforeupdate"},92593:t=>{t.exports="collisionactive"},60128:t=>{t.exports="collisionend"},76861:t=>{t.exports="collisionstart"},92362:t=>{t.exports="dragend"},76408:t=>{t.exports="drag"},93971:t=>{t.exports="dragstart"},5656:t=>{t.exports="pause"},47861:t=>{t.exports="resume"},79099:t=>{t.exports="sleepend"},35906:t=>{t.exports="sleepstart"},1121:(t,e,i)=>{t.exports={AFTER_ADD:i(85608),AFTER_REMOVE:i(1213),AFTER_UPDATE:i(25968),BEFORE_ADD:i(67205),BEFORE_REMOVE:i(39438),BEFORE_UPDATE:i(44823),COLLISION_ACTIVE:i(92593),COLLISION_END:i(60128),COLLISION_START:i(76861),DRAG_END:i(92362),DRAG:i(76408),DRAG_START:i(93971),PAUSE:i(5656),RESUME:i(47861),SLEEP_END:i(79099),SLEEP_START:i(35906)}},3875:(t,e,i)=>{t.exports={BodyBounds:i(68174),Components:i(31884),Events:i(1121),Factory:i(28137),MatterGameObject:i(75803),Image:i(23181),Matter:i(19933),MatterPhysics:i(42045),PolyDecomp:i(55973),Sprite:i(34803),TileBody:i(73834),PhysicsEditorParser:i(19496),PhysicsJSONParser:i(85791),PointerConstraint:i(98713),World:i(68243)}},22562:(t,e,i)=>{var s={};t.exports=s;var r=i(41598),n=i(31725),o=i(53614),a=i(53402),h=i(15647),l=i(66615);!function(){s._timeCorrection=!0,s._inertiaScale=4,s._nextCollidingGroupId=1,s._nextNonCollidingGroupId=-1,s._nextCategory=1,s._baseDelta=1e3/60,s.create=function(e){var i={id:a.nextId(),type:"body",label:"Body",parts:[],plugin:{},angle:0,vertices:null,position:{x:0,y:0},force:{x:0,y:0},torque:0,positionImpulse:{x:0,y:0},constraintImpulse:{x:0,y:0,angle:0},totalContacts:0,speed:0,angularSpeed:0,velocity:{x:0,y:0},angularVelocity:0,isSensor:!1,isStatic:!1,isSleeping:!1,motion:0,sleepThreshold:60,density:.001,restitution:0,friction:.1,frictionStatic:.5,frictionAir:.01,collisionFilter:{category:1,mask:4294967295,group:0},slop:.05,timeScale:1,events:null,bounds:null,chamfer:null,circleRadius:0,positionPrev:null,anglePrev:0,parent:null,axes:null,area:0,mass:0,inverseMass:0,inertia:0,deltaTime:1e3/60,inverseInertia:0,_original:null,render:{visible:!0,opacity:1,sprite:{xOffset:0,yOffset:0},fillColor:null,fillOpacity:null,lineColor:null,lineOpacity:null,lineThickness:null},gameObject:null,scale:{x:1,y:1},centerOfMass:{x:0,y:0},centerOffset:{x:0,y:0},gravityScale:{x:1,y:1},ignoreGravity:!1,ignorePointer:!1,onCollideCallback:null,onCollideEndCallback:null,onCollideActiveCallback:null,onCollideWith:{}};!e.hasOwnProperty("position")&&e.hasOwnProperty("vertices")?e.position=r.centre(e.vertices):e.hasOwnProperty("vertices")||(i.vertices=r.fromPath("L 0 0 L 40 0 L 40 40 L 0 40"));var s=a.extend(i,e);return t(s,e),s.setOnCollideWith=function(t,e){return e?this.onCollideWith[t.id]=e:delete this.onCollideWith[t.id],this},s},s.nextGroup=function(t){return t?s._nextNonCollidingGroupId--:s._nextCollidingGroupId++},s.nextCategory=function(){return s._nextCategory=s._nextCategory<<1,s._nextCategory};var t=function(t,e){if(e=e||{},s.set(t,{bounds:t.bounds||h.create(t.vertices),positionPrev:t.positionPrev||n.clone(t.position),anglePrev:t.anglePrev||t.angle,vertices:t.vertices,parts:t.parts||[t],isStatic:t.isStatic,isSleeping:t.isSleeping,parent:t.parent||t}),r.rotate(t.vertices,t.angle,t.position),l.rotate(t.axes,t.angle),h.update(t.bounds,t.vertices,t.velocity),s.set(t,{axes:e.axes||t.axes,area:e.area||t.area,mass:e.mass||t.mass,inertia:e.inertia||t.inertia}),1===t.parts.length){var i=t.bounds,o=t.centerOfMass,a=t.centerOffset,u=i.max.x-i.min.x,c=i.max.y-i.min.y;o.x=-(i.min.x-t.position.x)/u,o.y=-(i.min.y-t.position.y)/c,a.x=u*o.x,a.y=c*o.y}};s.set=function(t,e,i){var r;for(r in"string"==typeof e&&(r=e,(e={})[r]=i),e)if(Object.prototype.hasOwnProperty.call(e,r))switch(i=e[r],r){case"isStatic":s.setStatic(t,i);break;case"isSleeping":o.set(t,i);break;case"mass":s.setMass(t,i);break;case"density":s.setDensity(t,i);break;case"inertia":s.setInertia(t,i);break;case"vertices":s.setVertices(t,i);break;case"position":s.setPosition(t,i);break;case"angle":s.setAngle(t,i);break;case"velocity":s.setVelocity(t,i);break;case"angularVelocity":s.setAngularVelocity(t,i);break;case"speed":s.setSpeed(t,i);break;case"angularSpeed":s.setAngularSpeed(t,i);break;case"parts":s.setParts(t,i);break;case"centre":s.setCentre(t,i);break;default:t[r]=i}},s.setStatic=function(t,e){for(var i=0;i0&&n.rotateAbout(a.position,s,t.position,a.position)}},s.setVelocity=function(t,e){var i=t.deltaTime/s._baseDelta;t.positionPrev.x=t.position.x-e.x*i,t.positionPrev.y=t.position.y-e.y*i,t.velocity.x=(t.position.x-t.positionPrev.x)/i,t.velocity.y=(t.position.y-t.positionPrev.y)/i,t.speed=n.magnitude(t.velocity)},s.getVelocity=function(t){var e=s._baseDelta/t.deltaTime;return{x:(t.position.x-t.positionPrev.x)*e,y:(t.position.y-t.positionPrev.y)*e}},s.getSpeed=function(t){return n.magnitude(s.getVelocity(t))},s.setSpeed=function(t,e){s.setVelocity(t,n.mult(n.normalise(s.getVelocity(t)),e))},s.setAngularVelocity=function(t,e){var i=t.deltaTime/s._baseDelta;t.anglePrev=t.angle-e*i,t.angularVelocity=(t.angle-t.anglePrev)/i,t.angularSpeed=Math.abs(t.angularVelocity)},s.getAngularVelocity=function(t){return(t.angle-t.anglePrev)*s._baseDelta/t.deltaTime},s.getAngularSpeed=function(t){return Math.abs(s.getAngularVelocity(t))},s.setAngularSpeed=function(t,e){s.setAngularVelocity(t,a.sign(s.getAngularVelocity(t))*e)},s.translate=function(t,e,i){s.setPosition(t,n.add(t.position,e),i)},s.rotate=function(t,e,i,r){if(i){var n=Math.cos(e),o=Math.sin(e),a=t.position.x-i.x,h=t.position.y-i.y;s.setPosition(t,{x:i.x+(a*n-h*o),y:i.y+(a*o+h*n)},r),s.setAngle(t,t.angle+e,r)}else s.setAngle(t,t.angle+e,r)},s.scale=function(t,e,i,n){var o=0,a=0;n=n||t.position;for(var u=t.inertia===1/0,c=0;c0&&(o+=d.area,a+=d.inertia),d.position.x=n.x+(d.position.x-n.x)*e,d.position.y=n.y+(d.position.y-n.y)*i,h.update(d.bounds,d.vertices,t.velocity)}t.parts.length>1&&(t.area=o,t.isStatic||(s.setMass(t,t.density*o),s.setInertia(t,a))),t.circleRadius&&(e===i?t.circleRadius*=e:t.circleRadius=null),u&&s.setInertia(t,1/0)},s.update=function(t,e){var i=(e=(void 0!==e?e:1e3/60)*t.timeScale)*e,o=s._timeCorrection?e/(t.deltaTime||e):1,u=1-t.frictionAir*(e/a._baseDelta),c=(t.position.x-t.positionPrev.x)*o,d=(t.position.y-t.positionPrev.y)*o;t.velocity.x=c*u+t.force.x/t.mass*i,t.velocity.y=d*u+t.force.y/t.mass*i,t.positionPrev.x=t.position.x,t.positionPrev.y=t.position.y,t.position.x+=t.velocity.x,t.position.y+=t.velocity.y,t.deltaTime=e,t.angularVelocity=(t.angle-t.anglePrev)*u*o+t.torque/t.inertia*i,t.anglePrev=t.angle,t.angle+=t.angularVelocity,t.speed=n.magnitude(t.velocity),t.angularSpeed=Math.abs(t.angularVelocity);for(var p=0;p0&&(f.position.x+=t.velocity.x,f.position.y+=t.velocity.y),0!==t.angularVelocity&&(r.rotate(f.vertices,t.angularVelocity,t.position),l.rotate(f.axes,t.angularVelocity),p>0&&n.rotateAbout(f.position,t.angularVelocity,t.position,f.position)),h.update(f.bounds,f.vertices,t.velocity)}},s.updateVelocities=function(t){var e=s._baseDelta/t.deltaTime,i=t.velocity;i.x=(t.position.x-t.positionPrev.x)*e,i.y=(t.position.y-t.positionPrev.y)*e,t.speed=Math.sqrt(i.x*i.x+i.y*i.y),t.angularVelocity=(t.angle-t.anglePrev)*e,t.angularSpeed=Math.abs(t.angularVelocity)},s.applyForce=function(t,e,i){var s=e.x-t.position.x,r=e.y-t.position.y;t.force.x+=i.x,t.force.y+=i.y,t.torque+=s*i.y-r*i.x},s._totalProperties=function(t){for(var e={mass:0,area:0,inertia:0,centre:{x:0,y:0}},i=1===t.parts.length?0:1;i{var s={};t.exports=s;var r=i(35810),n=i(53402),o=i(15647),a=i(22562);s.create=function(t){return n.extend({id:n.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{},cache:{allBodies:null,allConstraints:null,allComposites:null}},t)},s.setModified=function(t,e,i,n){if(r.trigger(t,"compositeModified",t),t.isModified=e,e&&t.cache&&(t.cache.allBodies=null,t.cache.allConstraints=null,t.cache.allComposites=null),i&&t.parent&&s.setModified(t.parent,e,i,n),n)for(var o=0;o{var s={};t.exports=s;var r=i(69351);s.create=r.create,s.add=r.add,s.remove=r.remove,s.clear=r.clear,s.addComposite=r.addComposite,s.addBody=r.addBody,s.addConstraint=r.addConstraint},52284:(t,e,i)=>{var s={};t.exports=s;var r,n,o,a=i(41598),h=i(4506);r=[],n={overlap:0,axis:null},o={overlap:0,axis:null},s.create=function(t,e){return{pair:null,collided:!1,bodyA:t,bodyB:e,parentA:t.parent,parentB:e.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[]}},s.collides=function(t,e,i){if(s._overlapAxes(n,t.vertices,e.vertices,t.axes),n.overlap<=0)return null;if(s._overlapAxes(o,e.vertices,t.vertices,e.axes),o.overlap<=0)return null;var r,l,u=i&&i.table[h.id(t,e)];u?r=u.collision:((r=s.create(t,e)).collided=!0,r.bodyA=t.idE?E=a:aC?C=a:ar?r=o:o{var e={};t.exports=e,e.create=function(t){return{vertex:t,normalImpulse:0,tangentImpulse:0}}},81388:(t,e,i)=>{var s={};t.exports=s;var r=i(53402),n=i(52284);s.create=function(t){return r.extend({bodies:[],pairs:null},t)},s.setBodies=function(t,e){t.bodies=e.slice(0)},s.clear=function(t){t.bodies=[]},s.collisions=function(t){var e,i,r=[],o=t.pairs,a=t.bodies,h=a.length,l=s.canCollide,u=n.collides;for(a.sort(s._compareBoundsX),e=0;ep)break;if(!(f<_.min.y||g>_.max.y)&&(!m||!x.isStatic&&!x.isSleeping)&&l(c.collisionFilter,x.collisionFilter)){var w=x.parts.length;if(y&&1===w)(C=u(c,x,o))&&r.push(C);else for(var T=w>1?1:0,b=v>1?1:0;b_.max.x||d.max.x<_.min.x||d.max.y<_.min.y||d.min.y>_.max.y||(C=u(S,A,o))&&r.push(C)}}}}return r},s.canCollide=function(t,e){return t.group===e.group&&0!==t.group?t.group>0:!!(t.mask&e.category)&&!!(e.mask&t.category)},s._compareBoundsX=function(t,e){return t.bounds.min.x-e.bounds.min.x}},4506:(t,e,i)=>{var s={};t.exports=s;var r=i(43424);s.create=function(t,e){var i=t.bodyA,r=t.bodyB,n={id:s.id(i,r),bodyA:i,bodyB:r,collision:t,contacts:[],activeContacts:[],separation:0,isActive:!0,confirmedActive:!0,isSensor:i.isSensor||r.isSensor,timeCreated:e,timeUpdated:e,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return s.update(n,t,e),n},s.update=function(t,e,i){var s=t.contacts,n=e.supports,o=t.activeContacts,a=e.parentA,h=e.parentB,l=a.vertices.length;t.isActive=!0,t.timeUpdated=i,t.collision=e,t.separation=e.depth,t.inverseMass=a.inverseMass+h.inverseMass,t.friction=a.frictionh.frictionStatic?a.frictionStatic:h.frictionStatic,t.restitution=a.restitution>h.restitution?a.restitution:h.restitution,t.slop=a.slop>h.slop?a.slop:h.slop,e.pair=t,o.length=0;for(var u=0;u{var s={};t.exports=s;var r=i(4506),n=i(53402);s.create=function(t){return n.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},t)},s.update=function(t,e,i){var s,n,o,a,h=t.list,l=h.length,u=t.table,c=e.length,d=t.collisionStart,p=t.collisionEnd,f=t.collisionActive;for(d.length=0,p.length=0,f.length=0,a=0;a{var s={};t.exports=s;var r=i(31725),n=i(52284),o=i(15647),a=i(66280),h=i(41598);s.collides=function(t,e){for(var i=[],s=e.length,r=t.bounds,a=n.collides,h=o.overlaps,l=0;l{var s={};t.exports=s;var r=i(41598),n=i(53402),o=i(15647);s._restingThresh=2,s._restingThreshTangent=Math.sqrt(6),s._positionDampen=.9,s._positionWarming=.8,s._frictionNormalMultiplier=5,s._frictionMaxStatic=Number.MAX_VALUE,s.preSolvePosition=function(t){var e,i,s,r=t.length;for(e=0;eW?(r=z>0?z:-z,(i=g.friction*(z>0?1:-1)*l)<-r?i=-r:i>r&&(i=r)):(i=z,r=p);var V=L*b-O*T,H=F*b-D*T,j=_/(P+v.inverseInertia*V*V+y.inverseInertia*H*H),q=(1+g.restitution)*Y*j;if(i*=j,Y0&&(M.normalImpulse=0),q=M.normalImpulse-K}if(z<-c||z>c)M.tangentImpulse=0;else{var Z=M.tangentImpulse;M.tangentImpulse+=i,M.tangentImpulse<-r&&(M.tangentImpulse=-r),M.tangentImpulse>r&&(M.tangentImpulse=r),i=M.tangentImpulse-Z}var J=T*q+S*i,Q=b*q+E*i;v.isStatic||v.isSleeping||(v.positionPrev.x+=J*v.inverseMass,v.positionPrev.y+=Q*v.inverseMass,v.anglePrev+=(L*Q-O*J)*v.inverseInertia),y.isStatic||y.isSleeping||(y.positionPrev.x-=J*y.inverseMass,y.positionPrev.y-=Q*y.inverseMass,y.anglePrev-=(F*Q-D*J)*y.inverseInertia)}}}}},48140:(t,e,i)=>{var s={};t.exports=s;var r=i(41598),n=i(31725),o=i(53614),a=i(15647),h=i(66615),l=i(53402);s._warming=.4,s._torqueDampen=1,s._minLength=1e-6,s.create=function(t){var e=t;e.bodyA&&!e.pointA&&(e.pointA={x:0,y:0}),e.bodyB&&!e.pointB&&(e.pointB={x:0,y:0});var i=e.bodyA?n.add(e.bodyA.position,e.pointA):e.pointA,s=e.bodyB?n.add(e.bodyB.position,e.pointB):e.pointB,r=n.magnitude(n.sub(i,s));e.length=void 0!==e.length?e.length:r,e.id=e.id||l.nextId(),e.label=e.label||"Constraint",e.type="constraint",e.stiffness=e.stiffness||(e.length>0?1:.7),e.damping=e.damping||0,e.angularStiffness=e.angularStiffness||0,e.angleA=e.bodyA?e.bodyA.angle:e.angleA,e.angleB=e.bodyB?e.bodyB.angle:e.angleB,e.plugin={};var o={visible:!0,type:"line",anchors:!0,lineColor:null,lineOpacity:null,lineThickness:null,pinSize:null,anchorColor:null,anchorSize:null};return 0===e.length&&e.stiffness>.1?(o.type="pin",o.anchors=!1):e.stiffness<.9&&(o.type="spring"),e.render=l.extend(o,e.render),e},s.preSolveAll=function(t){for(var e=0;e=1||0===t.length?t.stiffness*e:t.stiffness*e*e,x=t.damping*e,w=n.mult(u,v*y),T=(i?i.inverseMass:0)+(r?r.inverseMass:0),b=T+((i?i.inverseInertia:0)+(r?r.inverseInertia:0));if(x>0){var S=n.create();f=n.div(u,c),m=n.sub(r&&n.sub(r.position,r.positionPrev)||S,i&&n.sub(i.position,i.positionPrev)||S),g=n.dot(f,m)}i&&!i.isStatic&&(p=i.inverseMass/T,i.constraintImpulse.x-=w.x*p,i.constraintImpulse.y-=w.y*p,i.position.x-=w.x*p,i.position.y-=w.y*p,x>0&&(i.positionPrev.x-=x*f.x*g*p,i.positionPrev.y-=x*f.y*g*p),d=n.cross(o,w)/b*s._torqueDampen*i.inverseInertia*(1-t.angularStiffness),i.constraintImpulse.angle-=d,i.angle-=d),r&&!r.isStatic&&(p=r.inverseMass/T,r.constraintImpulse.x+=w.x*p,r.constraintImpulse.y+=w.y*p,r.position.x+=w.x*p,r.position.y+=w.y*p,x>0&&(r.positionPrev.x+=x*f.x*g*p,r.positionPrev.y+=x*f.y*g*p),d=n.cross(a,w)/b*s._torqueDampen*r.inverseInertia*(1-t.angularStiffness),r.constraintImpulse.angle+=d,r.angle+=d)}}},s.postSolveAll=function(t){for(var e=0;e0&&(c.position.x+=l.x,c.position.y+=l.y),0!==l.angle&&(r.rotate(c.vertices,l.angle,i.position),h.rotate(c.axes,l.angle),u>0&&n.rotateAbout(c.position,l.angle,i.position,c.position)),a.update(c.bounds,c.vertices,i.velocity)}l.angle*=s._warming,l.x*=s._warming,l.y*=s._warming}}},s.pointAWorld=function(t){return{x:(t.bodyA?t.bodyA.position.x:0)+(t.pointA?t.pointA.x:0),y:(t.bodyA?t.bodyA.position.y:0)+(t.pointA?t.pointA.y:0)}},s.pointBWorld=function(t){return{x:(t.bodyB?t.bodyB.position.x:0)+(t.pointB?t.pointB.x:0),y:(t.bodyB?t.bodyB.position.y:0)+(t.pointB?t.pointB.y:0)}},s.currentLength=function(t){var e=(t.bodyA?t.bodyA.position.x:0)+(t.pointA?t.pointA.x:0),i=(t.bodyA?t.bodyA.position.y:0)+(t.pointA?t.pointA.y:0),s=e-((t.bodyB?t.bodyB.position.x:0)+(t.pointB?t.pointB.x:0)),r=i-((t.bodyB?t.bodyB.position.y:0)+(t.pointB?t.pointB.y:0));return Math.sqrt(s*s+r*r)}},53402:(t,e,i)=>{var s={};t.exports=s,function(){s._baseDelta=1e3/60,s._nextId=0,s._seed=0,s._nowStartTime=+new Date,s._warnedOnce={},s._decomp=null,s.extend=function(t,e){var i,r;"boolean"==typeof e?(i=2,r=e):(i=1,r=!0);for(var n=i;n0;e--){var i=Math.floor(s.random()*(e+1)),r=t[e];t[e]=t[i],t[i]=r}return t},s.choose=function(t){return t[Math.floor(s.random()*t.length)]},s.isElement=function(t){return"undefined"!=typeof HTMLElement?t instanceof HTMLElement:!!(t&&t.nodeType&&t.nodeName)},s.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},s.isFunction=function(t){return"function"==typeof t},s.isPlainObject=function(t){return"object"==typeof t&&t.constructor===Object},s.isString=function(t){return"[object String]"===toString.call(t)},s.clamp=function(t,e,i){return ti?i:t},s.sign=function(t){return t<0?-1:1},s.now=function(){if("undefined"!=typeof window&&window.performance){if(window.performance.now)return window.performance.now();if(window.performance.webkitNow)return window.performance.webkitNow()}return Date.now?Date.now():new Date-s._nowStartTime},s.random=function(e,i){return i=void 0!==i?i:1,(e=void 0!==e?e:0)+t()*(i-e)};var t=function(){return s._seed=(9301*s._seed+49297)%233280,s._seed/233280};s.colorToNumber=function(t){return 3==(t=t.replace("#","")).length&&(t=t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)),parseInt(t,16)},s.logLevel=1,s.log=function(){console&&s.logLevel>0&&s.logLevel<=3&&console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},s.info=function(){console&&s.logLevel>0&&s.logLevel<=2&&console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},s.warn=function(){console&&s.logLevel>0&&s.logLevel<=3&&console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},s.warnOnce=function(){var t=Array.prototype.slice.call(arguments).join(" ");s._warnedOnce[t]||(s.warn(t),s._warnedOnce[t]=!0)},s.deprecated=function(t,e,i){t[e]=s.chain((function(){s.warnOnce("🔅 deprecated 🔅",i)}),t[e])},s.nextId=function(){return s._nextId++},s.indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0;i{var s={};t.exports=s;var r=i(53614),n=i(66272),o=i(81388),a=i(99561),h=i(35810),l=i(69351),u=i(48140),c=i(53402),d=i(22562);s.create=function(t){t=t||{};var e=c.extend({positionIterations:6,velocityIterations:4,constraintIterations:2,enableSleeping:!1,events:[],plugin:{},gravity:{x:0,y:1,scale:.001},timing:{timestamp:0,timeScale:1,lastDelta:0,lastElapsed:0}},t);return e.world=t.world||l.create({label:"World"}),e.pairs=t.pairs||a.create(),e.detector=t.detector||o.create(),e.grid={buckets:[]},e.world.gravity=e.gravity,e.broadphase=e.grid,e.metrics={},e},s.update=function(t,e){var i,d=c.now(),p=t.world,f=t.detector,g=t.pairs,m=t.timing,v=m.timestamp;e=void 0!==e?e:c._baseDelta,e*=m.timeScale,m.timestamp+=e,m.lastDelta=e;var y={timestamp:m.timestamp,delta:e};h.trigger(t,"beforeUpdate",y);var x=l.allBodies(p),w=l.allConstraints(p);for(p.isModified&&(o.setBodies(f,x),l.setModified(p,!1,!1,!0)),t.enableSleeping&&r.update(x,e),s._bodiesApplyGravity(x,t.gravity),e>0&&s._bodiesUpdate(x,e),h.trigger(t,"beforeSolve",y),u.preSolveAll(x),i=0;i0&&h.trigger(t,"collisionStart",{pairs:g.collisionStart,timestamp:m.timestamp,delta:e});var b=c.clamp(20/t.positionIterations,0,1);for(n.preSolvePosition(g.list),i=0;i0&&h.trigger(t,"collisionActive",{pairs:g.collisionActive,timestamp:m.timestamp,delta:e}),g.collisionEnd.length>0&&h.trigger(t,"collisionEnd",{pairs:g.collisionEnd,timestamp:m.timestamp,delta:e}),s._bodiesClearForces(x),h.trigger(t,"afterUpdate",y),t.timing.lastElapsed=c.now()-d,t},s.merge=function(t,e){if(c.extend(t,e),e.world){t.world=e.world,s.clear(t);for(var i=l.allBodies(t.world),n=0;n{var s={};t.exports=s;var r=i(53402);s.on=function(t,e,i){for(var s,r=e.split(" "),n=0;n0){i||(i={}),s=e.split(" ");for(var l=0;l{var s={};t.exports=s;var r=i(73832),n=i(53402);s.name="matter-js",s.version="0.19.0",s.uses=[],s.used=[],s.use=function(){r.use(s,Array.prototype.slice.call(arguments))},s.before=function(t,e){return t=t.replace(/^Matter./,""),n.chainPathBefore(s,t,e)},s.after=function(t,e){return t=t.replace(/^Matter./,""),n.chainPathAfter(s,t,e)}},73832:(t,e,i)=>{var s={};t.exports=s;var r=i(53402);s._registry={},s.register=function(t){if(s.isPlugin(t)||r.warn("Plugin.register:",s.toString(t),"does not implement all required fields."),t.name in s._registry){var e=s._registry[t.name],i=s.versionParse(t.version).number,n=s.versionParse(e.version).number;i>n?(r.warn("Plugin.register:",s.toString(e),"was upgraded to",s.toString(t)),s._registry[t.name]=t):i-1},s.isFor=function(t,e){var i=t.for&&s.dependencyParse(t.for);return!t.for||e.name===i.name&&s.versionSatisfies(e.version,i.range)},s.use=function(t,e){if(t.uses=(t.uses||[]).concat(e||[]),0!==t.uses.length){for(var i=s.dependencies(t),n=r.topologicalSort(i),o=[],a=0;a0&&!h.silent&&r.info(o.join(" "))}else r.warn("Plugin.use:",s.toString(t),"does not specify any dependencies to install.")},s.dependencies=function(t,e){var i=s.dependencyParse(t),n=i.name;if(!(n in(e=e||{}))){t=s.resolve(t)||t,e[n]=r.map(t.uses||[],(function(e){s.isPlugin(e)&&s.register(e);var n=s.dependencyParse(e),o=s.resolve(e);return o&&!s.versionSatisfies(o.version,n.range)?(r.warn("Plugin.dependencies:",s.toString(o),"does not satisfy",s.toString(n),"used by",s.toString(i)+"."),o._warned=!0,t._warned=!0):o||(r.warn("Plugin.dependencies:",s.toString(e),"used by",s.toString(i),"could not be resolved."),t._warned=!0),n.name}));for(var o=0;o=|>)?\s*((\d+)\.(\d+)\.(\d+))(-[0-9A-Za-z-+]+)?$/;e.test(t)||r.warn("Plugin.versionParse:",t,"is not a valid version or range.");var i=e.exec(t),s=Number(i[4]),n=Number(i[5]),o=Number(i[6]);return{isRange:Boolean(i[1]||i[2]),version:i[3],range:t,operator:i[1]||i[2]||"",major:s,minor:n,patch:o,parts:[s,n,o],prerelease:i[7],number:1e8*s+1e4*n+o}},s.versionSatisfies=function(t,e){e=e||"*";var i=s.versionParse(e),r=s.versionParse(t);if(i.isRange){if("*"===i.operator||"*"===t)return!0;if(">"===i.operator)return r.number>i.number;if(">="===i.operator)return r.number>=i.number;if("~"===i.operator)return r.major===i.major&&r.minor===i.minor&&r.patch>=i.patch;if("^"===i.operator)return i.major>0?r.major===i.major&&r.number>=i.number:i.minor>0?r.minor===i.minor&&r.patch>=i.patch:r.patch===i.patch}return t===e||"*"===t}},53614:(t,e,i)=>{var s={};t.exports=s;var r=i(22562),n=i(35810),o=i(53402);s._motionWakeThreshold=.18,s._motionSleepThreshold=.08,s._minBias=.9,s.update=function(t,e){for(var i=e/o._baseDelta,n=s._motionSleepThreshold,a=0;a0&&h.motion=h.sleepThreshold/i&&s.set(h,!0)):h.sleepCounter>0&&(h.sleepCounter-=1)}else s.set(h,!1)}},s.afterCollisions=function(t){for(var e=s._motionSleepThreshold,i=0;ie&&s.set(h,!1)}}}},s.set=function(t,e){var i=t.isSleeping;e?(t.isSleeping=!0,t.sleepCounter=t.sleepThreshold,t.positionImpulse.x=0,t.positionImpulse.y=0,t.positionPrev.x=t.position.x,t.positionPrev.y=t.position.y,t.anglePrev=t.angle,t.speed=0,t.angularSpeed=0,t.motion=0,i||n.trigger(t,"sleepStart")):(t.isSleeping=!1,t.sleepCounter=0,i&&n.trigger(t,"sleepEnd"))}},66280:(t,e,i)=>{var s={};t.exports=s;var r=i(41598),n=i(53402),o=i(22562),a=i(15647),h=i(31725);s.rectangle=function(t,e,i,s,a){a=a||{};var h={label:"Rectangle Body",position:{x:t,y:e},vertices:r.fromPath("L 0 0 L "+i+" 0 L "+i+" "+s+" L 0 "+s)};if(a.chamfer){var l=a.chamfer;h.vertices=r.chamfer(h.vertices,l.radius,l.quality,l.qualityMin,l.qualityMax),delete a.chamfer}return o.create(n.extend({},h,a))},s.trapezoid=function(t,e,i,s,a,h){h=h||{};var l,u=i*(a*=.5),c=u+(1-2*a)*i,d=c+u;l=a<.5?"L 0 0 L "+u+" "+-s+" L "+c+" "+-s+" L "+d+" 0":"L 0 0 L "+c+" "+-s+" L "+d+" 0";var p={label:"Trapezoid Body",position:{x:t,y:e},vertices:r.fromPath(l)};if(h.chamfer){var f=h.chamfer;p.vertices=r.chamfer(p.vertices,f.radius,f.quality,f.qualityMin,f.qualityMax),delete h.chamfer}return o.create(n.extend({},p,h))},s.circle=function(t,e,i,r,o){r=r||{};var a={label:"Circle Body",circleRadius:i};o=o||25;var h=Math.ceil(Math.max(10,Math.min(o,i)));return h%2==1&&(h+=1),s.polygon(t,e,h,i,n.extend({},a,r))},s.polygon=function(t,e,i,a,h){if(h=h||{},i<3)return s.circle(t,e,a,h);for(var l=2*Math.PI/i,u="",c=.5*l,d=0;d0&&r.area(A)1?(f=o.create(n.extend({parts:g.slice(0)},s)),o.setPosition(f,{x:t,y:e}),f):g[0]},s.flagCoincidentParts=function(t,e){void 0===e&&(e=5);for(var i=0;i{var s={};t.exports=s;var r=i(69351),n=i(48140),o=i(53402),a=i(22562),h=i(66280);s.stack=function(t,e,i,s,n,o,h){for(var l,u=r.create({label:"Stack"}),c=t,d=e,p=0,f=0;fg&&(g=y),a.translate(v,{x:.5*x,y:.5*y}),c=v.bounds.max.x+n,r.addBody(u,v),l=v,p+=1}else c+=n}d+=g+o,c=t}return u},s.chain=function(t,e,i,s,a,h){for(var l=t.bodies,u=1;u0)for(l=0;l0&&(d=p[l-1+(h-1)*e],r.addConstraint(t,n.create(o.extend({bodyA:d,bodyB:c},a)))),s&&ld||o<(l=d-l)||o>i-1-l))return 1===c&&a.translate(u,{x:(o+(i%2==1?1:-1))*p,y:0}),h(t+(u?o*p:0)+o*n,s,o,l,u,c)}))},s.newtonsCradle=function(t,e,i,s,o){for(var a=r.create({label:"Newtons Cradle"}),l=0;l{var s={};t.exports=s;var r=i(31725),n=i(53402);s.fromVertices=function(t){for(var e={},i=0;i{var e={};t.exports=e,e.create=function(t){var i={min:{x:0,y:0},max:{x:0,y:0}};return t&&e.update(i,t),i},e.update=function(t,e,i){t.min.x=1/0,t.max.x=-1/0,t.min.y=1/0,t.max.y=-1/0;for(var s=0;st.max.x&&(t.max.x=r.x),r.xt.max.y&&(t.max.y=r.y),r.y0?t.max.x+=i.x:t.min.x+=i.x,i.y>0?t.max.y+=i.y:t.min.y+=i.y)},e.contains=function(t,e){return e.x>=t.min.x&&e.x<=t.max.x&&e.y>=t.min.y&&e.y<=t.max.y},e.overlaps=function(t,e){return t.min.x<=e.max.x&&t.max.x>=e.min.x&&t.max.y>=e.min.y&&t.min.y<=e.max.y},e.translate=function(t,e){t.min.x+=e.x,t.max.x+=e.x,t.min.y+=e.y,t.max.y+=e.y},e.shift=function(t,e){var i=t.max.x-t.min.x,s=t.max.y-t.min.y;t.min.x=e.x,t.max.x=e.x+i,t.min.y=e.y,t.max.y=e.y+s}},74058:(t,e,i)=>{var s={};t.exports=s,i(15647);var r=i(53402);s.pathToVertices=function(t,e){"undefined"==typeof window||"SVGPathSeg"in window||r.warn("Svg.pathToVertices: SVGPathSeg not defined, a polyfill is required.");var i,n,o,a,h,l,u,c,d,p,f,g=[],m=0,v=0,y=0;e=e||15;var x=function(t,e,i){var s=i%2==1&&i>1;if(!d||t!=d.x||e!=d.y){d&&s?(p=d.x,f=d.y):(p=0,f=0);var r={x:p+t,y:f+e};!s&&d||(d=r),g.push(r),v=p+t,y=f+e}},w=function(t){var e=t.pathSegTypeAsLetter.toUpperCase();if("Z"!==e){switch(e){case"M":case"L":case"T":case"C":case"S":case"Q":v=t.x,y=t.y;break;case"H":v=t.x;break;case"V":y=t.y}x(v,y,t.pathSegType)}};for(s._svgPathToAbsolute(t),o=t.getTotalLength(),l=[],i=0;i{var e={};t.exports=e,e.create=function(t,e){return{x:t||0,y:e||0}},e.clone=function(t){return{x:t.x,y:t.y}},e.magnitude=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.magnitudeSquared=function(t){return t.x*t.x+t.y*t.y},e.rotate=function(t,e,i){var s=Math.cos(e),r=Math.sin(e);i||(i={});var n=t.x*s-t.y*r;return i.y=t.x*r+t.y*s,i.x=n,i},e.rotateAbout=function(t,e,i,s){var r=Math.cos(e),n=Math.sin(e);s||(s={});var o=i.x+((t.x-i.x)*r-(t.y-i.y)*n);return s.y=i.y+((t.x-i.x)*n+(t.y-i.y)*r),s.x=o,s},e.normalise=function(t){var i=e.magnitude(t);return 0===i?{x:0,y:0}:{x:t.x/i,y:t.y/i}},e.dot=function(t,e){return t.x*e.x+t.y*e.y},e.cross=function(t,e){return t.x*e.y-t.y*e.x},e.cross3=function(t,e,i){return(e.x-t.x)*(i.y-t.y)-(e.y-t.y)*(i.x-t.x)},e.add=function(t,e,i){return i||(i={}),i.x=t.x+e.x,i.y=t.y+e.y,i},e.sub=function(t,e,i){return i||(i={}),i.x=t.x-e.x,i.y=t.y-e.y,i},e.mult=function(t,e){return{x:t.x*e,y:t.y*e}},e.div=function(t,e){return{x:t.x/e,y:t.y/e}},e.perp=function(t,e){return{x:(e=!0===e?-1:1)*-t.y,y:e*t.x}},e.neg=function(t){return{x:-t.x,y:-t.y}},e.angle=function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)},e._temp=[e.create(),e.create(),e.create(),e.create(),e.create(),e.create()]},41598:(t,e,i)=>{var s={};t.exports=s;var r=i(31725),n=i(53402);s.create=function(t,e){for(var i=[],s=0;s0)return!1;o=i}return!0},s.scale=function(t,e,i,n){if(1===e&&1===i)return t;var o,a;n=n||s.centre(t);for(var h=0;h=0?h-1:t.length-1],u=t[h],c=t[(h+1)%t.length],d=e[h0&&(n|=2),3===n)return!1;return 0!==n||null},s.hull=function(t){var e,i,s=[],n=[];for((t=t.slice(0)).sort((function(t,e){var i=t.x-e.x;return 0!==i?i:t.y-e.y})),i=0;i=2&&r.cross3(n[n.length-2],n[n.length-1],e)<=0;)n.pop();n.push(e)}for(i=t.length-1;i>=0;i-=1){for(e=t[i];s.length>=2&&r.cross3(s[s.length-2],s[s.length-1],e)<=0;)s.pop();s.push(e)}return s.pop(),n.pop(),s.concat(n)}},18210:(t,e,i)=>{var s=i(19933),r={name:"matter-attractors",version:"0.1.7",for:"matter-js@^0.19.0",silent:!0,install:function(t){t.after("Body.create",(function(){r.Body.init(this)})),t.before("Engine.update",(function(t){r.Engine.update(t)}))},Body:{init:function(t){t.plugin.attractors=t.plugin.attractors||[]}},Engine:{update:function(t){for(var e=s.Composite.allBodies(t.world),i=0;i0)for(var o=0;o{t.exports={name:"matter-collision-events",version:"0.1.6",for:"matter-js@^0.19.0",silent:!0,install:function(t){t.after("Engine.create",(function(){t.Events.on(this,"collisionStart",(function(e){e.pairs.map((function(e){var i=e.bodyA,s=e.bodyB;i.gameObject&&i.gameObject.emit("collide",i,s,e),s.gameObject&&s.gameObject.emit("collide",s,i,e),t.Events.trigger(i,"onCollide",{pair:e}),t.Events.trigger(s,"onCollide",{pair:e}),i.onCollideCallback&&i.onCollideCallback(e),s.onCollideCallback&&s.onCollideCallback(e),i.onCollideWith[s.id]&&i.onCollideWith[s.id](s,e),s.onCollideWith[i.id]&&s.onCollideWith[i.id](i,e)}))})),t.Events.on(this,"collisionActive",(function(e){e.pairs.map((function(e){var i=e.bodyA,s=e.bodyB;i.gameObject&&i.gameObject.emit("collideActive",i,s,e),s.gameObject&&s.gameObject.emit("collideActive",s,i,e),t.Events.trigger(i,"onCollideActive",{pair:e}),t.Events.trigger(s,"onCollideActive",{pair:e}),i.onCollideActiveCallback&&i.onCollideActiveCallback(e),s.onCollideActiveCallback&&s.onCollideActiveCallback(e)}))})),t.Events.on(this,"collisionEnd",(function(e){e.pairs.map((function(e){var i=e.bodyA,s=e.bodyB;i.gameObject&&i.gameObject.emit("collideEnd",i,s,e),s.gameObject&&s.gameObject.emit("collideEnd",s,i,e),t.Events.trigger(i,"onCollideEnd",{pair:e}),t.Events.trigger(s,"onCollideEnd",{pair:e}),i.onCollideEndCallback&&i.onCollideEndCallback(e),s.onCollideEndCallback&&s.onCollideEndCallback(e)}))}))}))}}},74507:(t,e,i)=>{var s=i(19933),r={name:"matter-wrap",version:"0.1.4",for:"matter-js@^0.19.0",silent:!0,install:function(t){t.after("Engine.update",(function(){r.Engine.update(this)}))},Engine:{update:function(t){for(var e=t.world,i=s.Composite.allBodies(e),n=s.Composite.allComposites(e),o=0;oe.max.x?i=e.min.x-t.max.x:t.max.xe.max.y?s=e.min.y-t.max.y:t.max.y{function e(t,e,i){i=i||0;var s,r,n,o,a,h,l,u=[0,0];return s=t[1][1]-t[0][1],r=t[0][0]-t[1][0],n=s*t[0][0]+r*t[0][1],o=e[1][1]-e[0][1],a=e[0][0]-e[1][0],h=o*e[0][0]+a*e[0][1],S(l=s*a-o*r,0,i)||(u[0]=(a*n-r*h)/l,u[1]=(s*h-o*n)/l),u}function i(t,e,i,s){var r=e[0]-t[0],n=e[1]-t[1],o=s[0]-i[0],a=s[1]-i[1];if(o*n-a*r==0)return!1;var h=(r*(i[1]-t[1])+n*(t[0]-i[0]))/(o*n-a*r),l=(o*(t[1]-i[1])+a*(i[0]-t[0]))/(a*r-o*n);return h>=0&&h<=1&&l>=0&&l<=1}function s(t,e,i){return(e[0]-t[0])*(i[1]-t[1])-(i[0]-t[0])*(e[1]-t[1])}function r(t,e,i){return s(t,e,i)>0}function n(t,e,i){return s(t,e,i)>=0}function o(t,e,i){return s(t,e,i)<0}function a(t,e,i){return s(t,e,i)<=0}t.exports={decomp:function(t){var e=w(t);return e.length>0?T(t,e):[t]},quickDecomp:function t(e,i,s,h,l,u,g){u=u||100,g=g||0,l=l||25,i=void 0!==i?i:[],s=s||[],h=h||[];var m=[0,0],v=[0,0],x=[0,0],w=0,T=0,S=0,E=0,C=0,A=0,_=0,P=[],R=[],M=e,k=e;if(k.length<3)return i;if(++g>u)return console.warn("quickDecomp: max level ("+u+") reached."),i;for(var L=0;LC&&(C+=e.length),E=Number.MAX_VALUE,C3&&s>=0;--s)u(d(t,s-1),d(t,s),d(t,s+1),e)&&(t.splice(s%t.length,1),i++);return i},removeDuplicatePoints:function(t,e){for(var i=t.length-1;i>=1;--i)for(var s=t[i],r=i-1;r>=0;--r)E(s,t[r],e)&&t.splice(i,1)},makeCCW:function(t){for(var e=0,i=t,s=1;si[e][0])&&(e=s);return!r(d(t,e-1),d(t,e),d(t,e+1))&&(function(t){for(var e=[],i=t.length,s=0;s!==i;s++)e.push(t.pop());for(s=0;s!==i;s++)t[s]=e[s]}(t),!0)}};var h=[],l=[];function u(t,e,i,r){if(r){var n=h,o=l;n[0]=e[0]-t[0],n[1]=e[1]-t[1],o[0]=i[0]-e[0],o[1]=i[1]-e[1];var a=n[0]*o[0]+n[1]*o[1],u=Math.sqrt(n[0]*n[0]+n[1]*n[1]),c=Math.sqrt(o[0]*o[0]+o[1]*o[1]);return Math.acos(a/(u*c)){var s=new(i(83419))({initialize:function(t){this.pluginManager=t,this.game=t.game},init:function(){},start:function(){},stop:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=s},42363:t=>{t.exports={Global:["game","anims","cache","plugins","registry","scale","sound","textures","renderer"],CoreScene:["EventEmitter","CameraManager","GameObjectCreator","GameObjectFactory","ScenePlugin","DisplayList","UpdateList"],DefaultScene:["Clock","DataManagerPlugin","InputPlugin","Loader","TweenManager","LightsPlugin"]}},37277:t=>{var e={},i={},s={register:function(t,i,s,r){void 0===r&&(r=!1),e[t]={plugin:i,mapping:s,custom:r}},registerCustom:function(t,e,s,r){i[t]={plugin:e,mapping:s,data:r}},hasCore:function(t){return e.hasOwnProperty(t)},hasCustom:function(t){return i.hasOwnProperty(t)},getCore:function(t){return e[t]},getCustom:function(t){return i[t]},getCustomClass:function(t){return i.hasOwnProperty(t)?i[t].plugin:null},remove:function(t){e.hasOwnProperty(t)&&delete e[t]},removeCustom:function(t){i.hasOwnProperty(t)&&delete i[t]},destroyCorePlugins:function(){for(var t in e)e.hasOwnProperty(t)&&delete e[t]},destroyCustomPlugins:function(){for(var t in i)i.hasOwnProperty(t)&&delete i[t]}};t.exports=s},77332:(t,e,i)=>{var s=i(83419),r=i(8443),n=i(50792),o=i(74099),a=i(44603),h=i(39429),l=i(95540),u=i(37277),c=i(72905),d=new s({Extends:n,initialize:function(t){n.call(this),this.game=t,this.plugins=[],this.scenePlugins=[],this._pendingGlobal=[],this._pendingScene=[],t.isBooted?this.boot():t.events.once(r.BOOT,this.boot,this)},boot:function(){var t,e,i,s,n,o,a,h=this.game.config,u=h.installGlobalPlugins;for(u=u.concat(this._pendingGlobal),t=0;t{var s=i(52018),r=i(83419),n=i(44594),o=new r({Extends:s,initialize:function(t,e,i){s.call(this,e),this.scene=t,this.systems=t.sys,this.pluginKey=i,t.sys.events.once(n.BOOT,this.boot,this)},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=o},18922:(t,e,i)=>{t.exports={BasePlugin:i(52018),DefaultPlugins:i(42363),PluginCache:i(37277),PluginManager:i(77332),ScenePlugin:i(45145)}},63595:()=>{HTMLVideoElement&&!("requestVideoFrameCallback"in HTMLVideoElement.prototype)&&"getVideoPlaybackQuality"in HTMLVideoElement.prototype&&(HTMLVideoElement.prototype._rvfcpolyfillmap={},HTMLVideoElement.prototype.requestVideoFrameCallback=function(t){const e=performance.now(),i=this.getVideoPlaybackQuality(),s=this.mozPresentedFrames||this.mozPaintedFrames||i.totalVideoFrames-i.droppedVideoFrames,r=(n,o)=>{const a=this.getVideoPlaybackQuality(),h=this.mozPresentedFrames||this.mozPaintedFrames||a.totalVideoFrames-a.droppedVideoFrames;if(h>s){const s=this.mozFrameDelay||a.totalFrameDelay-i.totalFrameDelay||0,r=o-n;t(o,{presentationTime:o+1e3*s,expectedDisplayTime:o+r,width:this.videoWidth,height:this.videoHeight,mediaTime:Math.max(0,this.currentTime||0)+r/1e3,presentedFrames:h,processingDuration:s}),delete this._rvfcpolyfillmap[e]}else this._rvfcpolyfillmap[e]=requestAnimationFrame((t=>r(o,t)))};return this._rvfcpolyfillmap[e]=requestAnimationFrame((t=>r(e,t))),e},HTMLVideoElement.prototype.cancelVideoFrameCallback=function(t){cancelAnimationFrame(this._rvfcpolyfillmap[t]),delete this._rvfcpolyfillmap[t]})},10312:t=>{t.exports={SKIP_CHECK:-1,NORMAL:0,ADD:1,MULTIPLY:2,SCREEN:3,OVERLAY:4,DARKEN:5,LIGHTEN:6,COLOR_DODGE:7,COLOR_BURN:8,HARD_LIGHT:9,SOFT_LIGHT:10,DIFFERENCE:11,EXCLUSION:12,HUE:13,SATURATION:14,COLOR:15,LUMINOSITY:16,ERASE:17,SOURCE_IN:18,SOURCE_OUT:19,SOURCE_ATOP:20,DESTINATION_OVER:21,DESTINATION_IN:22,DESTINATION_OUT:23,DESTINATION_ATOP:24,LIGHTER:25,COPY:26,XOR:27}},29795:t=>{t.exports={DEFAULT:0,LINEAR:0,NEAREST:1}},68627:(t,e,i)=>{var s=i(19715),r=i(32880),n=i(83419),o=i(8054),a=i(50792),h=i(92503),l=i(56373),u=i(97480),c=i(69442),d=i(61340),p=new n({Extends:a,initialize:function(t){a.call(this);var e=t.config;this.config={clearBeforeRender:e.clearBeforeRender,backgroundColor:e.backgroundColor,antialias:e.antialias,roundPixels:e.roundPixels},this.game=t,this.type=o.CANVAS,this.drawCount=0,this.width=0,this.height=0,this.gameCanvas=t.canvas;var i={alpha:t.config.transparent,desynchronized:t.config.desynchronized,willReadFrequently:!1};this.gameContext=e.context?e.context:this.gameCanvas.getContext("2d",i),this.currentContext=this.gameContext,this.antialias=t.config.antialias,this.blendModes=l(),this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92},this._tempMatrix1=new d,this._tempMatrix2=new d,this._tempMatrix3=new d,this.isBooted=!1,this.init()},init:function(){this.game.textures.once(c.READY,this.boot,this)},boot:function(){var t=this.game,e=t.scale.baseSize;this.width=e.width,this.height=e.height,this.isBooted=!0,t.scale.on(u.RESIZE,this.onResize,this),this.resize(e.width,e.height)},onResize:function(t,e){e.width===this.width&&e.height===this.height||this.resize(e.width,e.height)},resize:function(t,e){this.width=t,this.height=e,this.emit(h.RESIZE,t,e)},resetTransform:function(){this.currentContext.setTransform(1,0,0,1,0,0)},setBlendMode:function(t){return this.currentContext.globalCompositeOperation=t,this},setContext:function(t){return this.currentContext=t||this.gameContext,this},setAlpha:function(t){return this.currentContext.globalAlpha=t,this},preRender:function(){var t=this.gameContext,e=this.config,i=this.width,s=this.height;t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),e.clearBeforeRender&&(t.clearRect(0,0,i,s),e.transparent||(t.fillStyle=e.backgroundColor.rgba,t.fillRect(0,0,i,s))),t.save(),this.drawCount=0,this.emit(h.PRE_RENDER)},render:function(t,e,i){var r=e.length;this.emit(h.RENDER,t,i);var n=i.x,o=i.y,a=i.width,l=i.height,u=i.renderToTexture?i.context:t.sys.context;u.save(),this.game.scene.customViewports&&(u.beginPath(),u.rect(n,o,a,l),u.clip()),i.emit(s.PRE_RENDER,i),this.currentContext=u;var c=i.mask;c&&c.preRenderCanvas(this,null,i._maskCamera),i.transparent||(u.fillStyle=i.backgroundColor.rgba,u.fillRect(n,o,a,l)),u.globalAlpha=i.alpha,u.globalCompositeOperation="source-over",this.drawCount+=r,i.renderToTexture&&i.emit(s.PRE_RENDER,i),i.matrix.copyToContext(u);for(var d=0;d=0?v=-(v+c):v<0&&(v=Math.abs(v)-c)),t.flipY&&(y>=0?y=-(y+d):y<0&&(y=Math.abs(y)-d))}var w=1,T=1;t.flipX&&(p||(v+=-e.realWidth+2*g),w=-1),t.flipY&&(p||(y+=-e.realHeight+2*m),T=-1);var b=t.x,S=t.y;a.applyITRS(b,S,t.rotation,t.scaleX*w,t.scaleY*T),o.copyFrom(i.matrix),s?(o.multiplyWithOffset(s,-i.scrollX*t.scrollFactorX,-i.scrollY*t.scrollFactorY),a.e=b,a.f=S):(a.e-=i.scrollX*t.scrollFactorX,a.f-=i.scrollY*t.scrollFactorY),o.multiply(a),i.roundPixels&&(o.e=Math.round(o.e),o.f=Math.round(o.f)),n.save(),o.setToContext(n),n.globalCompositeOperation=this.blendModes[t.blendMode],n.globalAlpha=r,n.imageSmoothingEnabled=!e.source.scaleMode,t.mask&&t.mask.preRenderCanvas(this,t,i),c>0&&d>0&&(i.roundPixels?n.drawImage(e.source.image,l,u,c,d,Math.round(v),Math.round(y),Math.round(c/f),Math.round(d/f)):n.drawImage(e.source.image,l,u,c,d,v,y,c/f,d/f)),t.mask&&t.mask.postRenderCanvas(this,t,i),n.restore()}},destroy:function(){this.removeAllListeners(),this.game=null,this.gameCanvas=null,this.gameContext=null}});t.exports=p},55830:(t,e,i)=>{t.exports={CanvasRenderer:i(68627),GetBlendModes:i(56373),SetTransform:i(20926)}},56373:(t,e,i)=>{var s=i(10312),r=i(89289);t.exports=function(){var t=[],e=r.supportNewBlendModes,i="source-over";return t[s.NORMAL]=i,t[s.ADD]="lighter",t[s.MULTIPLY]=e?"multiply":i,t[s.SCREEN]=e?"screen":i,t[s.OVERLAY]=e?"overlay":i,t[s.DARKEN]=e?"darken":i,t[s.LIGHTEN]=e?"lighten":i,t[s.COLOR_DODGE]=e?"color-dodge":i,t[s.COLOR_BURN]=e?"color-burn":i,t[s.HARD_LIGHT]=e?"hard-light":i,t[s.SOFT_LIGHT]=e?"soft-light":i,t[s.DIFFERENCE]=e?"difference":i,t[s.EXCLUSION]=e?"exclusion":i,t[s.HUE]=e?"hue":i,t[s.SATURATION]=e?"saturation":i,t[s.COLOR]=e?"color":i,t[s.LUMINOSITY]=e?"luminosity":i,t[s.ERASE]="destination-out",t[s.SOURCE_IN]="source-in",t[s.SOURCE_OUT]="source-out",t[s.SOURCE_ATOP]="source-atop",t[s.DESTINATION_OVER]="destination-over",t[s.DESTINATION_IN]="destination-in",t[s.DESTINATION_OUT]="destination-out",t[s.DESTINATION_ATOP]="destination-atop",t[s.LIGHTER]="lighter",t[s.COPY]="copy",t[s.XOR]="xor",t}},20926:(t,e,i)=>{var s=i(91296);t.exports=function(t,e,i,r,n){var o=r.alpha*i.alpha;if(o<=0)return!1;var a=s(i,r,n).calc;return e.globalCompositeOperation=t.blendModes[i.blendMode],e.globalAlpha=o,e.save(),a.setToContext(e),e.imageSmoothingEnabled=i.frame?!i.frame.source.scaleMode:t.antialias,!0}},63899:t=>{t.exports="losewebgl"},6119:t=>{t.exports="postrender"},48070:t=>{t.exports="prerender"},15640:t=>{t.exports="render"},8912:t=>{t.exports="resize"},87124:t=>{t.exports="restorewebgl"},92503:(t,e,i)=>{t.exports={LOSE_WEBGL:i(63899),POST_RENDER:i(6119),PRE_RENDER:i(48070),RENDER:i(15640),RESIZE:i(8912),RESTORE_WEBGL:i(87124)}},36909:(t,e,i)=>{t.exports={Events:i(92503),Snapshot:i(89966)},t.exports.Canvas=i(55830),t.exports.WebGL=i(4159)},32880:(t,e,i)=>{var s=i(27919),r=i(40987),n=i(95540);t.exports=function(t,e){var i=n(e,"callback"),o=n(e,"type","image/png"),a=n(e,"encoder",.92),h=Math.abs(Math.round(n(e,"x",0))),l=Math.abs(Math.round(n(e,"y",0))),u=Math.floor(n(e,"width",t.width)),c=Math.floor(n(e,"height",t.height));if(n(e,"getPixel",!1)){var d=t.getContext("2d",{willReadFrequently:!1}).getImageData(h,l,1,1).data;i.call(null,new r(d[0],d[1],d[2],d[3]))}else if(0!==h||0!==l||u!==t.width||c!==t.height){var p=s.createWebGL(this,u,c),f=p.getContext("2d",{willReadFrequently:!0});u>0&&c>0&&f.drawImage(t,h,l,u,c,0,0,u,c);var g=new Image;g.onerror=function(){i.call(null),s.remove(p)},g.onload=function(){i.call(null,g),s.remove(p)},g.src=p.toDataURL(o,a)}else{var m=new Image;m.onerror=function(){i.call(null)},m.onload=function(){i.call(null,m)},m.src=t.toDataURL(o,a)}}},88815:(t,e,i)=>{var s=i(27919),r=i(40987),n=i(95540);t.exports=function(t,e){var i=t,o=n(e,"callback"),a=n(e,"type","image/png"),h=n(e,"encoder",.92),l=Math.abs(Math.round(n(e,"x",0))),u=Math.abs(Math.round(n(e,"y",0))),c=n(e,"getPixel",!1),d=n(e,"isFramebuffer",!1),p=d?n(e,"bufferWidth",1):i.drawingBufferWidth,f=d?n(e,"bufferHeight",1):i.drawingBufferHeight;if(c){var g=new Uint8Array(4),m=d?u:f-u;i.readPixels(l,m,1,1,i.RGBA,i.UNSIGNED_BYTE,g),o.call(null,new r(g[0],g[1],g[2],g[3]))}else{var v=Math.floor(n(e,"width",p)),y=Math.floor(n(e,"height",f)),x=v*y*4,w=new Uint8Array(x);i.readPixels(l,f-u-y,v,y,i.RGBA,i.UNSIGNED_BYTE,w);for(var T=s.createWebGL(this,v,y),b=T.getContext("2d",{willReadFrequently:!0}),S=b.getImageData(0,0,v,y),E=S.data,C=0;C{t.exports={Canvas:i(32880),WebGL:i(88815)}},7530:(t,e,i)=>{var s=i(83419),r=i(36060),n=i(90330),o=i(82264),a=i(95540),h=i(32302),l=i(63448),u=i(31302),c=i(58918),d=i(14811),p=i(92651),f=i(96569),g=i(56527),m=i(57516),v=i(43439),y=i(81041),x=i(12385),w=i(7589),T=i(95428),b=i(72905),S=new s({initialize:function(t){this.game=t.game,this.renderer=t,this.classes=new n([[r.UTILITY_PIPELINE,w],[r.MULTI_PIPELINE,m],[r.BITMAPMASK_PIPELINE,u],[r.SINGLE_PIPELINE,x],[r.ROPE_PIPELINE,y],[r.LIGHT_PIPELINE,f],[r.POINTLIGHT_PIPELINE,v],[r.MOBILE_PIPELINE,g]]),this.postPipelineClasses=new n,this.pipelines=new n,this.postPipelineInstances=[],this.default=null,this.current=null,this.previous=null,this.MULTI_PIPELINE=null,this.BITMAPMASK_PIPELINE=null,this.UTILITY_PIPELINE=null,this.MOBILE_PIPELINE=null,this.FX_PIPELINE=null,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2,this.renderTargets=[],this.maxDimension=0,this.frameInc=32,this.targetIndex=0},boot:function(t,e,i){var s=this.renderer,n=this.renderTargets;this.frameInc=Math.floor(a(t,"frameInc",32));var l,u,f=s.width,g=s.height,m=this.game.config.disablePreFX;if(this.game.config.disablePostFX||this.postPipelineClasses.setAll([[String(d.BARREL),c.Barrel],[String(d.BLOOM),c.Bloom],[String(d.BLUR),c.Blur],[String(d.BOKEH),c.Bokeh],[String(d.CIRCLE),c.Circle],[String(d.COLOR_MATRIX),c.ColorMatrix],[String(d.DISPLACEMENT),c.Displacement],[String(d.GLOW),c.Glow],[String(d.GRADIENT),c.Gradient],[String(d.PIXELATE),c.Pixelate],[String(d.SHADOW),c.Shadow],[String(d.SHINE),c.Shine],[String(d.VIGNETTE),c.Vignette],[String(d.WIPE),c.Wipe]]),!m){this.classes.set(r.FX_PIPELINE,p);for(var v=Math.min(f,g),y=Math.ceil(v/this.frameInc),x=1;x=0;i--){var s=e[i];s.active&&s.preBatch(t)}}},postBatch:function(t){if(t.hasPostPipeline){this.flush();for(var e=t.postPipelines,i=0;i=0;i--){var s=e[i];s.active&&s.preBatch(t)}}},postBatchCamera:function(t){if(t.hasPostPipeline){this.flush();for(var e=t.postPipelines,i=0;ithis.maxDimension)return this.targetIndex=e.length-3,e[this.targetIndex];var i=3*(l(t,this.frameInc,0,!0)-1);return this.targetIndex=i,e[i]},getSwapRenderTarget:function(){return this.renderTargets[this.targetIndex+1]},getAltSwapRenderTarget:function(){return this.renderTargets[this.targetIndex+2]},destroy:function(){this.flush(),this.classes.clear(),this.postPipelineClasses.clear(),this.pipelines.clear(),this.renderer=null,this.game=null,this.classes=null,this.postPipelineClasses=null,this.pipelines=null,this.default=null,this.current=null,this.previous=null}});t.exports=S},32302:(t,e,i)=>{var s=i(83419),r=i(92503),n=new s({initialize:function(t,e,i,s,r,n,o,a,h){void 0===s&&(s=1),void 0===r&&(r=0),void 0===n&&(n=!0),void 0===o&&(o=!1),void 0===a&&(a=!0),void 0===h&&(h=!0),this.renderer=t,this.framebuffer=null,this.texture=null,this.width=0,this.height=0,this.scale=s,this.minFilter=r,this.autoClear=n,this.autoResize=!0,this.hasDepthBuffer=a,this.forceClamp=h,this.resize(e,i),o?this.setAutoResize(!0):this.autoResize=!1},setAutoResize:function(t){return t&&!this.autoResize?(this.renderer.on(r.RESIZE,this.resize,this),this.autoResize=!0):!t&&this.autoResize&&(this.renderer.off(r.RESIZE,this.resize,this),this.autoResize=!1),this},resize:function(t,e){if((t=Math.round(t*this.scale))<=0&&(t=1),(e=Math.round(e*this.scale))<=0&&(e=1),this.autoResize&&(t!==this.width||e!==this.height)){var i=this.renderer;i.deleteFramebuffer(this.framebuffer),i.deleteTexture(this.texture),this.texture=i.createTextureFromSource(null,t,e,this.minFilter,this.forceClamp),this.framebuffer=i.createFramebuffer(t,e,this.texture,this.hasDepthBuffer),this.width=t,this.height=e}return this},willResize:function(t,e){return(t=Math.round(t*this.scale))<=0&&(t=1),(e=Math.round(e*this.scale))<=0&&(e=1),t!==this.width||e!==this.height},bind:function(t,e,i){void 0===t&&(t=!1);var s=this.renderer;if(t&&s.flush(),e&&i&&this.resize(e,i),s.pushFramebuffer(this.framebuffer,!1,!1),t&&this.adjustViewport(),this.autoClear){var r=this.renderer.gl;r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT)}s.clearStencilMask()},adjustViewport:function(){var t=this.renderer.gl;t.viewport(0,0,this.width,this.height),t.disable(t.SCISSOR_TEST)},clear:function(){var t=this.renderer,e=t.gl;t.pushFramebuffer(this.framebuffer),e.disable(e.SCISSOR_TEST),e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),t.popFramebuffer(),t.resetScissor()},unbind:function(t){void 0===t&&(t=!1);var e=this.renderer;return t&&e.flush(),e.popFramebuffer()},destroy:function(){var t=this.renderer;t.off(r.RESIZE,this.resize,this),t.deleteFramebuffer(this.framebuffer),t.deleteTexture(this.texture),this.renderer=null,this.framebuffer=null,this.texture=null}});t.exports=n},70554:t=>{t.exports={getTintFromFloats:function(t,e,i,s){return((255*s&255)<<24|(255*t&255)<<16|(255*e&255)<<8|255*i&255)>>>0},getTintAppendFloatAlpha:function(t,e){return((255*e&255)<<24|t)>>>0},getTintAppendFloatAlphaAndSwap:function(t,e){return((255*e&255)<<24|(255&t)<<16|(t>>8&255)<<8|t>>16&255)>>>0},getFloatsFromUintRGB:function(t){return[(t>>16&255)/255,(t>>8&255)/255,(255&t)/255]},checkShaderMax:function(t,e){var i=Math.min(16,t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS));return e&&-1!==e?Math.min(i,e):i},parseFragmentShaderMaxTextures:function(t,e){if(!t)return"";for(var i="",s=0;s0&&(i+="\n\telse "),s{var s=i(83419),r=i(62644),n=i(50792),o=i(77085),a=i(95540),h=i(37867),l=i(92503),u=i(32302),c=i(70554),d=i(38683),p=new s({Extends:n,initialize:function(t){n.call(this);var e=t.game,i=e.renderer,s=i.gl;this.name=a(t,"name","WebGLPipeline"),this.game=e,this.renderer=i,this.manager,this.gl=s,this.view=e.canvas,this.width=0,this.height=0,this.vertexCount=0,this.vertexCapacity=0,this.vertexData,this.vertexBuffer,this.activeBuffer,this.topology=a(t,"topology",s.TRIANGLES),this.bytes,this.vertexViewF32,this.vertexViewU32,this.active=!0,this.forceZero=a(t,"forceZero",!1),this.hasBooted=!1,this.isPostFX=!1,this.isPreFX=!1,this.renderTargets=[],this.currentRenderTarget,this.shaders=[],this.currentShader,this.projectionMatrix,this.projectionWidth=0,this.projectionHeight=0,this.config=t,this.glReset=!1,this.batch=[],this.currentBatch=null,this.currentTexture=null,this.currentUnit=0,this.activeTextures=[],this.resizeUniform=a(t,"resizeUniform","")},boot:function(){var t,e=this.gl,i=this.config,s=this.renderer;this.isPostFX||(this.projectionMatrix=(new h).identity());var r=this.renderTargets,n=a(i,"renderTarget",!1);"boolean"==typeof n&&n&&(n=1);var c=s.width,d=s.height;if("number"==typeof n)for(t=0;tw&&(w=x[t].vertexSize);var T=a(i,"batchSize",s.config.batchSize);this.vertexCapacity=6*T;var b=new ArrayBuffer(this.vertexCapacity*w);this.vertexData=b,this.bytes=new Uint8Array(b),this.vertexViewF32=new Float32Array(b),this.vertexViewU32=new Uint32Array(b);var S=a(i,"vertices",null);for(S?(this.vertexViewF32.set(S),this.vertexBuffer=s.createVertexBuffer(b,e.STATIC_DRAW)):this.vertexBuffer=s.createVertexBuffer(b.byteLength,e.DYNAMIC_DRAW),this.setVertexBuffer(),t=x.length-1;t>=0;t--)x[t].rebind();this.hasBooted=!0,s.on(l.RESIZE,this.resize,this),s.on(l.PRE_RENDER,this.onPreRender,this),s.on(l.RENDER,this.onRender,this),s.on(l.POST_RENDER,this.onPostRender,this),this.emit(o.BOOT,this),this.onBoot()},onBoot:function(){},onResize:function(){},setShader:function(t,e,i){var s=this.renderer;return t===this.currentShader&&s.currentProgram===this.currentShader.program||(this.flush(),this.setVertexBuffer(i)&&!e&&(e=!0),t.bind(e,!1),this.currentShader=t),this},getShaderByName:function(t){for(var e=this.shaders,i=0;i-1&&(v=b.substring(20))}y&&x&&m.push(new d(this,v,y,x,r(w)))}this.shaders=m}return 0===this.shaders.length?console.warn("Pipeline: "+this.name+" - Invalid shader config"):this.currentShader=this.shaders[0],this},createBatch:function(t){return this.currentBatch={start:this.vertexCount,count:0,texture:[t],unit:0,maxUnit:0},this.currentUnit=0,this.currentTexture=t,this.batch.push(this.currentBatch),0},addTextureToBatch:function(t){var e=this.currentBatch;e&&(e.texture.push(t),e.unit++,e.maxUnit++)},pushBatch:function(t){if(!this.currentBatch||this.forceZero&&t!==this.currentTexture)return this.createBatch(t);if(t===this.currentTexture)return this.currentUnit;var e=this.currentBatch,i=e.texture.indexOf(t);return-1===i?e.texture.length===this.renderer.maxTextures?this.createBatch(t):(e.unit++,e.maxUnit++,e.texture.push(t),this.currentUnit=e.unit,this.currentTexture=t,e.unit):(this.currentUnit=i,this.currentTexture=t,i)},setGameObject:function(t,e){return void 0===e&&(e=t.frame),this.pushBatch(e.source.glTexture)},shouldFlush:function(t){return void 0===t&&(t=0),this.vertexCount+t>this.vertexCapacity},vertexAvailable:function(){return this.vertexCapacity-this.vertexCount},resize:function(t,e){t===this.width&&e===this.height||this.flush(),this.width=t,this.height=e;for(var i=this.renderTargets,s=0;s=0;i--){var s=e[i].rebind();t&&s!==t||(this.currentShader=s)}return this.activeTextures.length=0,this.emit(o.REBIND,this.currentShader),this.onActive(this.currentShader),this.onRebind(),this.glReset=!1,this},restoreContext:function(){var t=this.shaders,e=!!this.vertexBuffer;this.activeBuffer=null,this.activeTextures.length=0,this.batch.length=0,this.currentBatch=null,this.currentTexture=null,this.currentUnit=0,e&&this.setVertexBuffer();for(var i=0;i0){this.emit(o.BEFORE_FLUSH,this,t),this.onBeforeFlush(t);var e=this.gl,i=this.vertexCount,s=this.currentShader.vertexSize,r=this.topology;if(this.active){var n,a,h;this.setVertexBuffer(),i===this.vertexCapacity?e.bufferData(e.ARRAY_BUFFER,this.vertexData,e.DYNAMIC_DRAW):e.bufferSubData(e.ARRAY_BUFFER,0,this.bytes.subarray(0,i*s));var l=this.batch,u=this.activeTextures;if(this.forceZero)for(u[0]||e.activeTexture(e.TEXTURE0),n=0;n{var s=i(95428),r=i(72905),n=i(19715),o=i(83419),a=i(8054),h=i(50792),l=i(92503),u=i(50030),c=i(37867),d=i(29747),p=i(7530),f=i(32302),g=i(97480),m=i(69442),v=i(70554),y=i(88815),x=i(26128),w=i(1482),T=i(82751),b=i(84387),S=i(93567),E=i(57183),C=new o({Extends:h,initialize:function(t){h.call(this);var e=t.config,i={alpha:e.transparent,desynchronized:e.desynchronized,depth:!0,antialias:e.antialiasGL,premultipliedAlpha:e.premultipliedAlpha,stencil:!0,failIfMajorPerformanceCaveat:e.failIfMajorPerformanceCaveat,powerPreference:e.powerPreference,preserveDrawingBuffer:e.preserveDrawingBuffer,willReadFrequently:!1};this.config={clearBeforeRender:e.clearBeforeRender,antialias:e.antialias,backgroundColor:e.backgroundColor,contextCreation:i,roundPixels:e.roundPixels,maxTextures:e.maxTextures,maxTextureSize:e.maxTextureSize,batchSize:e.batchSize,maxLights:e.maxLights,mipmapFilter:e.mipmapFilter},this.game=t,this.type=a.WEBGL,this.pipelines=null,this.width=0,this.height=0,this.canvas=t.canvas,this.blendModes=[],this.contextLost=!1,this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92,isFramebuffer:!1,bufferWidth:0,bufferHeight:0},this.maxTextures=0,this.textureIndexes,this.glBufferWrappers=[],this.glProgramWrappers=[],this.glTextureWrappers=[],this.glFramebufferWrappers=[],this.glAttribLocationWrappers=[],this.glUniformLocationWrappers=[],this.currentFramebuffer=null,this.fboStack=[],this.currentProgram=null,this.currentBlendMode=1/0,this.currentScissorEnabled=!1,this.currentScissor=null,this.scissorStack=[],this.contextLostHandler=d,this.contextRestoredHandler=d,this.gl=null,this.supportedExtensions=null,this.instancedArraysExtension=null,this.vaoExtension=null,this.extensions={},this.glFormats,this.compression,this.drawingBufferHeight=0,this.blankTexture=null,this.normalTexture=null,this.whiteTexture=null,this.maskCount=0,this.maskStack=[],this.currentMask={mask:null,camera:null},this.currentCameraMask={mask:null,camera:null},this.glFuncMap=null,this.currentType="",this.newType=!1,this.nextTypeMatch=!1,this.finalType=!1,this.mipmapFilter=null,this.defaultScissor=[0,0,0,0],this.isBooted=!1,this.renderTarget=null,this.projectionMatrix,this.projectionWidth=0,this.projectionHeight=0,this.maskSource=null,this.maskTarget=null,this.spector=null,this._debugCapture=!1,this.init(this.config)},init:function(t){var e,i=this.game,r=this.canvas,n=t.backgroundColor;if(!(e=i.config.context?i.config.context:r.getContext("webgl",t.contextCreation)||r.getContext("experimental-webgl",t.contextCreation))||e.isContextLost())throw this.contextLost=!0,new Error("WebGL unsupported");this.gl=e;var o=this,h=function(){var t=e.getSupportedExtensions();o.supportedExtensions=t;var i="ANGLE_instanced_arrays";o.instancedArraysExtension=t.indexOf(i)>-1?e.getExtension(i):null;var s="OES_vertex_array_object";o.vaoExtension=t.indexOf(s)>-1?e.getExtension(s):null};h(),this.contextLostHandler=function(t){o.contextLost=!0,console&&console.warn("WebGL Context lost. Renderer disabled"),o.emit(l.LOSE_WEBGL,o),t.preventDefault()},r.addEventListener("webglcontextlost",this.contextLostHandler,!1),this.contextRestoredHandler=function(t){if(e.isContextLost())console&&console.log("WebGL Context restored, but context is still lost");else{o.currentProgram=null,o.currentFramebuffer=null,o.setBlendMode(a.BlendModes.NORMAL),e.disable(e.BLEND),e.disable(e.DEPTH_TEST),e.enable(e.CULL_FACE),o.compression=o.getCompressedTextures();var i=function(t){t.createResource()};s(o.glTextureWrappers,i),s(o.glBufferWrappers,i),s(o.glFramebufferWrappers,i),s(o.glProgramWrappers,i),s(o.glAttribLocationWrappers,i),s(o.glUniformLocationWrappers,i),o.createTemporaryTextures(),o.pipelines.restoreContext(),o.resize(o.game.scale.baseSize.width,o.game.scale.baseSize.height),h(),o.contextLost=!1,console&&console.warn("WebGL Context restored. Renderer running again."),o.emit(l.RESTORE_WEBGL,o),t.preventDefault()}},r.addEventListener("webglcontextrestored",this.contextRestoredHandler,!1),i.context=e;for(var u=0;u<=27;u++)this.blendModes.push({func:[e.ONE,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_ADD});return this.blendModes[1].func=[e.ONE,e.DST_ALPHA],this.blendModes[2].func=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA],this.blendModes[3].func=[e.ONE,e.ONE_MINUS_SRC_COLOR],this.blendModes[17]={func:[e.ZERO,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_REVERSE_SUBTRACT},this.glFormats=[e.BYTE,e.SHORT,e.UNSIGNED_BYTE,e.UNSIGNED_SHORT,e.FLOAT],this.glFuncMap={mat2:{func:e.uniformMatrix2fv,length:1,matrix:!0},mat3:{func:e.uniformMatrix3fv,length:1,matrix:!0},mat4:{func:e.uniformMatrix4fv,length:1,matrix:!0},"1f":{func:e.uniform1f,length:1},"1fv":{func:e.uniform1fv,length:1},"1i":{func:e.uniform1i,length:1},"1iv":{func:e.uniform1iv,length:1},"2f":{func:e.uniform2f,length:2},"2fv":{func:e.uniform2fv,length:1},"2i":{func:e.uniform2i,length:2},"2iv":{func:e.uniform2iv,length:1},"3f":{func:e.uniform3f,length:3},"3fv":{func:e.uniform3fv,length:1},"3i":{func:e.uniform3i,length:3},"3iv":{func:e.uniform3iv,length:1},"4f":{func:e.uniform4f,length:4},"4fv":{func:e.uniform4fv,length:1},"4i":{func:e.uniform4i,length:4},"4iv":{func:e.uniform4iv,length:1}},t.maxTextures&&-1!==t.maxTextures||(t.maxTextures=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),t.maxTextureSize||(t.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE)),this.compression=this.getCompressedTextures(),e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),e.enable(e.BLEND),e.clearColor(n.redGL,n.greenGL,n.blueGL,n.alphaGL),-1!==["NEAREST","LINEAR","NEAREST_MIPMAP_NEAREST","LINEAR_MIPMAP_NEAREST","NEAREST_MIPMAP_LINEAR","LINEAR_MIPMAP_LINEAR"].indexOf(t.mipmapFilter)&&(this.mipmapFilter=e[t.mipmapFilter]),this.maxTextures=v.checkShaderMax(e,t.maxTextures),this.textureIndexes=[],this.createTemporaryTextures(),this.pipelines=new p(this),this.setBlendMode(a.BlendModes.NORMAL),this.projectionMatrix=(new c).identity(),i.textures.once(m.READY,this.boot,this),this},boot:function(){var t=this.game,e=this.pipelines,i=t.scale.baseSize,s=i.width,r=i.height;this.width=s,this.height=r,this.isBooted=!0,this.renderTarget=new f(this,s,r,1,0,!0,!0),this.maskTarget=new f(this,s,r,1,0,!0,!0),this.maskSource=new f(this,s,r,1,0,!0,!0);var n=t.config;e.boot(n.pipeline,n.defaultPipeline,n.autoMobilePipeline),this.blankTexture=t.textures.getFrame("__DEFAULT").glTexture,this.normalTexture=t.textures.getFrame("__NORMAL").glTexture,this.whiteTexture=t.textures.getFrame("__WHITE").glTexture;var o=this.gl;o.bindFramebuffer(o.FRAMEBUFFER,null),o.enable(o.SCISSOR_TEST),t.scale.on(g.RESIZE,this.onResize,this),this.resize(s,r)},createTemporaryTextures:function(){for(var t=this.gl,e=0;e0&&s>0;if(o&&a){var h=o[0],l=o[1],u=o[2],c=o[3];a=h!==t||l!==e||u!==i||c!==s}a&&(this.flush(),n.scissor(t,r-e-s,i,s))},resetScissor:function(){var t=this.gl;t.enable(t.SCISSOR_TEST);var e=this.currentScissor;if(e){var i=e[0],s=e[1],r=e[2],n=e[3];r>0&&n>0&&t.scissor(i,this.drawingBufferHeight-s-n,r,n)}},popScissor:function(){var t=this.scissorStack;t.pop();var e=t[t.length-1];e&&this.setScissor(e[0],e[1],e[2],e[3]),this.currentScissor=e},hasActiveStencilMask:function(){var t=this.currentMask.mask,e=this.currentCameraMask.mask;return t&&t.isStencil||e&&e.isStencil},resetViewport:function(){var t=this.gl;t.viewport(0,0,this.width,this.height),this.drawingBufferHeight=t.drawingBufferHeight},setBlendMode:function(t,e){void 0===e&&(e=!1);var i=this.gl,s=this.blendModes[t];return!!(e||t!==a.BlendModes.SKIP_CHECK&&this.currentBlendMode!==t)&&(this.flush(),i.enable(i.BLEND),i.blendEquation(s.equation),s.func.length>2?i.blendFuncSeparate(s.func[0],s.func[1],s.func[2],s.func[3]):i.blendFunc(s.func[0],s.func[1]),this.currentBlendMode=t,!0)},addBlendMode:function(t,e){return this.blendModes.push({func:t,equation:e})-1},updateBlendMode:function(t,e,i){return this.blendModes[t]&&(this.blendModes[t].func=e,i&&(this.blendModes[t].equation=i)),this},removeBlendMode:function(t){return t>17&&this.blendModes[t]&&this.blendModes.splice(t,1),this},pushFramebuffer:function(t,e,i,s,r){return t===this.currentFramebuffer?this:(this.fboStack.push(t),this.setFramebuffer(t,e,i,s,r))},setFramebuffer:function(t,e,i,s,r){if(void 0===e&&(e=!1),void 0===i&&(i=!0),void 0===s&&(s=null),void 0===r&&(r=!1),t===this.currentFramebuffer)return this;var n=this.gl,o=this.width,a=this.height;return t&&t.renderTexture&&i?(o=t.renderTexture.width,a=t.renderTexture.height):this.flush(),t?n.bindFramebuffer(n.FRAMEBUFFER,t.webGLFramebuffer):n.bindFramebuffer(n.FRAMEBUFFER,null),i&&n.viewport(0,0,o,a),s&&n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,s.webGLTexture,0),r&&(n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT)),e&&(t?(this.drawingBufferHeight=a,this.pushScissor(0,0,o,a)):(this.drawingBufferHeight=this.height,this.popScissor())),this.currentFramebuffer=t,this},popFramebuffer:function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!0);var i=this.fboStack;i.pop();var s=i[i.length-1];return s||(s=null),this.setFramebuffer(s,t,e),s},restoreFramebuffer:function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!0);var i=this.fboStack,s=i[i.length-1];s||(s=null),this.currentFramebuffer=null,this.setFramebuffer(s,t,e)},setProgram:function(t){return t!==this.currentProgram&&(this.flush(),this.gl.useProgram(t.webGLProgram),this.currentProgram=t,!0)},resetProgram:function(){return this.gl.useProgram(this.currentProgram.webGLProgramWrapper),this},createTextureFromSource:function(t,e,i,s,r){void 0===r&&(r=!1);var n=this.gl,o=n.NEAREST,h=n.NEAREST,l=n.CLAMP_TO_EDGE;e=t?t.width:e,i=t?t.height:i;var c=u(e,i);if(c&&!r&&(l=n.REPEAT),s===a.ScaleModes.LINEAR&&this.config.antialias){var d=t&&t.compressed,p=!d&&c||d&&t.mipmaps.length>1;o=this.mipmapFilter&&p?this.mipmapFilter:n.LINEAR,h=n.LINEAR}return t||"number"!=typeof e||"number"!=typeof i?this.createTexture2D(0,o,h,l,l,n.RGBA,t):this.createTexture2D(0,o,h,l,l,n.RGBA,null,e,i)},createTexture2D:function(t,e,i,s,r,n,o,a,h,l,u,c){"number"!=typeof a&&(a=o?o.width:1),"number"!=typeof h&&(h=o?o.height:1);var d=new T(this.gl,t,e,i,s,r,n,o,a,h,l,u,c);return this.glTextureWrappers.push(d),d},createFramebuffer:function(t,e,i,s){this.currentFramebuffer=null;var r=new b(this.gl,t,e,i,s);return this.glFramebufferWrappers.push(r),r},beginBitmapMask:function(t,e){this.gl&&(this.flush(),this.maskTarget.bind(!0),this.currentCameraMask.mask!==t&&(this.currentMask.mask=t,this.currentMask.camera=e))},drawBitmapMask:function(t,e,i){this.flush(),this.maskSource.bind(),this.setBlendMode(0,!0),t.renderWebGL(this,t,e),this.maskSource.unbind(!0),this.maskTarget.unbind();var s=this.gl,r=this.getCurrentStencilMask();r?(s.enable(s.STENCIL_TEST),r.mask.applyStencil(this,r.camera,!0)):this.currentMask.mask=null,this.pipelines.set(i),s.activeTexture(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,this.maskTarget.texture.webGLTexture),s.activeTexture(s.TEXTURE1),s.bindTexture(s.TEXTURE_2D,this.maskSource.texture.webGLTexture)},createProgram:function(t,e){var i=new w(this.gl,t,e);return this.glProgramWrappers.push(i),i},createVertexBuffer:function(t,e){var i=this.gl,s=new x(i,t,i.ARRAY_BUFFER,e);return this.glBufferWrappers.push(s),s},createAttribLocation:function(t,e){var i=new S(this.gl,t,e);return this.glAttribLocationWrappers.push(i),i},createUniformLocation:function(t,e){var i=new E(this.gl,t,e);return this.glUniformLocationWrappers.push(i),i},createIndexBuffer:function(t,e){var i=this.gl,s=new x(i,t,i.ELEMENT_ARRAY_BUFFER,e);return this.glBufferWrappers.push(s),s},deleteTexture:function(t){if(t)return r(this.glTextureWrappers,t),t.destroy(),this},deleteFramebuffer:function(t){return t?(r(this.fboStack,t),r(this.glFramebufferWrappers,t),t.destroy(),this):this},deleteProgram:function(t){return t&&(r(this.glProgramWrappers,t),t.destroy()),this},deleteAttribLocation:function(t){return t&&(r(this.glAttribLocationWrappers,t),t.destroy()),this},deleteUniformLocation:function(t){return t&&(r(this.glUniformLocationWrappers,t),t.destroy()),this},deleteBuffer:function(t){return t?(r(this.glBufferWrappers,t),t.destroy(),this):this},preRenderCamera:function(t){var e=t.x,i=t.y,s=t.width,r=t.height,o=t.backgroundColor;t.emit(n.PRE_RENDER,t),this.pipelines.preBatchCamera(t),this.pushScissor(e,i,s,r),t.mask&&(this.currentCameraMask.mask=t.mask,this.currentCameraMask.camera=t._maskCamera,t.mask.preRenderWebGL(this,t,t._maskCamera)),o.alphaGL>0&&this.pipelines.setMulti().drawFillRect(e,i,s,r,v.getTintFromFloats(o.blueGL,o.greenGL,o.redGL,1),o.alphaGL)},getCurrentStencilMask:function(){var t=null,e=this.maskStack,i=this.currentCameraMask;return e.length>0?t=e[e.length-1]:i.mask&&i.mask.isStencil&&(t=i),t},postRenderCamera:function(t){var e=t.flashEffect,i=t.fadeEffect;if(e.isRunning||i.isRunning||i.isComplete){var s=this.pipelines.setMulti();e.postRenderWebGL(s,v.getTintFromFloats),i.postRenderWebGL(s,v.getTintFromFloats)}t.dirty=!1,this.popScissor(),t.mask&&(this.currentCameraMask.mask=null,t.mask.postRenderWebGL(this,t._maskCamera)),this.pipelines.postBatchCamera(t),t.emit(n.POST_RENDER,t)},preRender:function(){if(!this.contextLost){var t=this.gl;if(t.bindFramebuffer(t.FRAMEBUFFER,null),this.config.clearBeforeRender){var e=this.config.backgroundColor;t.clearColor(e.redGL,e.greenGL,e.blueGL,e.alphaGL),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT|t.STENCIL_BUFFER_BIT)}t.enable(t.SCISSOR_TEST),this.currentScissor=this.defaultScissor,this.scissorStack.length=0,this.scissorStack.push(this.currentScissor),this.game.scene.customViewports&&t.scissor(0,this.drawingBufferHeight-this.height,this.width,this.height),this.currentMask.mask=null,this.currentCameraMask.mask=null,this.maskStack.length=0,this.emit(l.PRE_RENDER)}},render:function(t,e,i){if(!this.contextLost){var s=e.length;if(this.emit(l.RENDER,t,i),this.preRenderCamera(i),0===s)return this.setBlendMode(a.BlendModes.NORMAL),void this.postRenderCamera(i);this.currentType="";for(var r=this.currentMask,n=0;n{var s=i(83419),r=i(95428),n=i(95540),o=i(14500),a=new s({initialize:function(t,e,i,s,r){this.pipeline=t,this.name=e,this.renderer=t.renderer,this.gl=this.renderer.gl,this.fragSrc=s,this.vertSrc=i,this.program=this.renderer.createProgram(i,s),this.attributes,this.vertexComponentCount=0,this.vertexSize=0,this.uniforms={},this.createAttributes(r),this.createUniforms()},createAttributes:function(t){var e=0,i=0,s=[];this.vertexComponentCount=0;for(var r=0;r=0?(e.enableVertexAttribArray(f.webGLAttribLocation),e.vertexAttribPointer(f.webGLAttribLocation,h,l,p,s,u),a.enabled=!0,a.location=f):-1!==f.webGLAttribLocation&&e.disableVertexAttribArray(f.webGLAttribLocation)}else c?e.vertexAttribPointer(d.webGLAttribLocation,h,l,p,s,u):!c&&-1!==d&&d.webGLAttribLocation>-1&&(e.disableVertexAttribArray(d.webGLAttribLocation),a.location=-1)}return this},createUniforms:function(){var t,e,i,s=this.gl,r=this.program,n=this.uniforms,o=s.getProgramParameter(r.webGLProgram,s.ACTIVE_UNIFORMS);for(t=0;t0&&(e=e.substr(0,h),n.hasOwnProperty(e)||null!==(i=this.renderer.createUniformLocation(r,e))&&(n[e]={name:e,location:i,setter:null,value1:null,value2:null,value3:null,value4:null}))}}return this},syncUniforms:function(){var t=this.gl;for(var e in this.renderer.setProgram(this.program),this.uniforms){var i=this.uniforms[e];i.setter&&i.setter.call(t,i.location.webGLUniformLocation,i.value1,i.value2,i.value3,i.value4)}},hasUniform:function(t){return this.uniforms.hasOwnProperty(t)},resetUniform:function(t){var e=this.uniforms[t];return e&&(e.value1=null,e.value2=null,e.value3=null,e.value4=null),this},setUniform1:function(t,e,i,s){var r=this.uniforms[e];return r?((s||r.value1!==i)&&(r.setter||(r.setter=t),r.value1=i,this.renderer.setProgram(this.program),t.call(this.gl,r.location.webGLUniformLocation,i),this.pipeline.currentShader=this),this):this},setUniform2:function(t,e,i,s,r){var n=this.uniforms[e];return n?((r||n.value1!==i||n.value2!==s)&&(n.setter||(n.setter=t),n.value1=i,n.value2=s,this.renderer.setProgram(this.program),t.call(this.gl,n.location.webGLUniformLocation,i,s),this.pipeline.currentShader=this),this):this},setUniform3:function(t,e,i,s,r,n){var o=this.uniforms[e];return o?((n||o.value1!==i||o.value2!==s||o.value3!==r)&&(o.setter||(o.setter=t),o.value1=i,o.value2=s,o.value3=r,this.renderer.setProgram(this.program),t.call(this.gl,o.location.webGLUniformLocation,i,s,r),this.pipeline.currentShader=this),this):this},setUniform4:function(t,e,i,s,r,n,o){var a=this.uniforms[e];return a?((o||a.value1!==i||a.value2!==s||a.value3!==r||a.value4!==n)&&(a.setter||(a.setter=t),a.value1=i,a.value2=s,a.value3=r,a.value4=n,this.renderer.setProgram(this.program),t.call(this.gl,a.location.webGLUniformLocation,i,s,r,n),this.pipeline.currentShader=this),this):this},setBoolean:function(t,e){return this.setUniform1(this.gl.uniform1i,t,Number(e))},set1f:function(t,e){return this.setUniform1(this.gl.uniform1f,t,e)},set2f:function(t,e,i){return this.setUniform2(this.gl.uniform2f,t,e,i)},set3f:function(t,e,i,s){return this.setUniform3(this.gl.uniform3f,t,e,i,s)},set4f:function(t,e,i,s,r){return this.setUniform4(this.gl.uniform4f,t,e,i,s,r)},set1fv:function(t,e){return this.setUniform1(this.gl.uniform1fv,t,e,!0)},set2fv:function(t,e){return this.setUniform1(this.gl.uniform2fv,t,e,!0)},set3fv:function(t,e){return this.setUniform1(this.gl.uniform3fv,t,e,!0)},set4fv:function(t,e){return this.setUniform1(this.gl.uniform4fv,t,e,!0)},set1iv:function(t,e){return this.setUniform1(this.gl.uniform1iv,t,e,!0)},set2iv:function(t,e){return this.setUniform1(this.gl.uniform2iv,t,e,!0)},set3iv:function(t,e){return this.setUniform1(this.gl.uniform3iv,t,e,!0)},set4iv:function(t,e){return this.setUniform1(this.gl.uniform4iv,t,e,!0)},set1i:function(t,e){return this.setUniform1(this.gl.uniform1i,t,e)},set2i:function(t,e,i){return this.setUniform2(this.gl.uniform2i,t,e,i)},set3i:function(t,e,i,s){return this.setUniform3(this.gl.uniform3i,t,e,i,s)},set4i:function(t,e,i,s,r){return this.setUniform4(this.gl.uniform4i,t,e,i,s,r)},setMatrix2fv:function(t,e,i){return this.setUniform2(this.gl.uniformMatrix2fv,t,e,i,!0)},setMatrix3fv:function(t,e,i){return this.setUniform2(this.gl.uniformMatrix3fv,t,e,i,!0)},setMatrix4fv:function(t,e,i){return this.setUniform2(this.gl.uniformMatrix4fv,t,e,i,!0)},createProgram:function(t,e){return void 0===t&&(t=this.vertSrc),void 0===e&&(e=this.fragSrc),this.program&&this.renderer.deleteProgram(this.program),this.vertSrc=t,this.fragSrc=e,this.program=this.renderer.createProgram(t,e),this.createUniforms(),this.rebind()},destroy:function(){var t=this.renderer;r(this.uniforms,(function(e){t.deleteUniformLocation(e.location)})),this.uniforms=null,r(this.attributes,(function(e){t.deleteAttribLocation(e.location)})),this.attributes=null,t.deleteProgram(this.program),this.pipeline=null,this.renderer=null,this.gl=null,this.program=null}});t.exports=a},14500:t=>{t.exports={BYTE:{enum:5120,size:1},UNSIGNED_BYTE:{enum:5121,size:1},SHORT:{enum:5122,size:2},UNSIGNED_SHORT:{enum:5123,size:2},INT:{enum:5124,size:4},UNSIGNED_INT:{enum:5125,size:4},FLOAT:{enum:5126,size:4}}},4159:(t,e,i)=>{var s=i(14500),r=i(79291),n={PipelineManager:i(7530),Pipelines:i(96615),RenderTarget:i(32302),Utils:i(70554),WebGLPipeline:i(29100),WebGLRenderer:i(74797),WebGLShader:i(38683),Wrappers:i(9503)};n=r(!1,n,s),t.exports=n},31302:(t,e,i)=>{var s=i(83419),r=i(95540),n=i(78908),o=i(85191),a=i(14500),h=i(29100),l=new s({Extends:h,initialize:function(t){t.fragShader=r(t,"fragShader",n),t.vertShader=r(t,"vertShader",o),t.batchSize=r(t,"batchSize",1),t.vertices=r(t,"vertices",[-1,1,-1,-7,7,1]),t.attributes=r(t,"attributes",[{name:"inPosition",size:2,type:a.FLOAT}]),h.call(this,t)},boot:function(){h.prototype.boot.call(this),this.set1i("uMainSampler",0),this.set1i("uMaskSampler",1)},resize:function(t,e){h.prototype.resize.call(this,t,e),this.set2f("uResolution",t,e)},beginMask:function(t,e,i){this.renderer.beginBitmapMask(t,i)},endMask:function(t,e,i){var s=this.gl,r=this.renderer,n=t.bitmapMask;n&&s&&(r.drawBitmapMask(n,e,this),i&&this.set2f("uResolution",i.width,i.height),this.set1i("uInvertMaskAlpha",t.invertAlpha),s.drawArrays(this.topology,0,3),i&&this.set2f("uResolution",this.width,this.height),s.bindTexture(s.TEXTURE_2D,null))}});t.exports=l},92651:(t,e,i)=>{var s=i(83419),r=i(58918),n=i(14811),o=i(95540),a=i(43558),h=i(89350),l=i(70554),u=new s({Extends:a,initialize:function(t){t.shaders=[l.setGlowQuality(h.FXGlowFrag,t.game),h.FXShadowFrag,h.FXPixelateFrag,h.FXVignetteFrag,h.FXShineFrag,h.FXBlurLowFrag,h.FXBlurMedFrag,h.FXBlurHighFrag,h.FXGradientFrag,h.FXBloomFrag,h.ColorMatrixFrag,h.FXCircleFrag,h.FXBarrelFrag,h.FXDisplacementFrag,h.FXWipeFrag,h.FXBokehFrag],a.call(this,t);var e=this.game;this.glow=new r.Glow(e),this.shadow=new r.Shadow(e),this.pixelate=new r.Pixelate(e),this.vignette=new r.Vignette(e),this.shine=new r.Shine(e),this.gradient=new r.Gradient(e),this.circle=new r.Circle(e),this.barrel=new r.Barrel(e),this.wipe=new r.Wipe(e),this.bokeh=new r.Bokeh(e);var i=[];i[n.GLOW]=this.onGlow,i[n.SHADOW]=this.onShadow,i[n.PIXELATE]=this.onPixelate,i[n.VIGNETTE]=this.onVignette,i[n.SHINE]=this.onShine,i[n.BLUR]=this.onBlur,i[n.GRADIENT]=this.onGradient,i[n.BLOOM]=this.onBloom,i[n.COLOR_MATRIX]=this.onColorMatrix,i[n.CIRCLE]=this.onCircle,i[n.BARREL]=this.onBarrel,i[n.DISPLACEMENT]=this.onDisplacement,i[n.WIPE]=this.onWipe,i[n.BOKEH]=this.onBokeh,this.fxHandlers=i,this.source,this.target,this.swap},onDraw:function(t,e,i){this.source=t,this.target=e,this.swap=i;var s=t.width,r=t.height,n=this.tempSprite,o=this.fxHandlers;if(n&&n.preFX)for(var a=n.preFX.list,h=0;h{var s=i(83419),r=i(95540),n=i(31063),o=i(57516),a=i(61340),h=i(26099),l=i(29100),u=new s({Extends:o,initialize:function(t){var e=r(t,"fragShader",n);t.fragShader=e.replace("%LIGHT_COUNT%",t.game.renderer.config.maxLights),o.call(this,t),this.inverseRotationMatrix=new Float32Array([1,0,0,0,1,0,0,0,1]),this.currentNormalMap,this.lightsActive=!0,this.tempVec2=new h,this._tempMatrix=new a,this._tempMatrix2=new a},boot:function(){l.prototype.boot.call(this)},onRender:function(t,e){var i=t.sys.lights;if(this.lightsActive=!1,i&&i.active){var s,r=i.getLights(e),n=r.length;this.lightsActive=!0;var o=this.renderer.height,a=e.matrix,h=this.tempVec2;for(this.set1i("uMainSampler",0),this.set1i("uNormSampler",1),this.set2f("uResolution",this.width/2,this.height/2),this.set4f("uCamera",e.x,e.y,e.rotation,e.zoom),this.set3f("uAmbientLightColor",i.ambientColor.r,i.ambientColor.g,i.ambientColor.b),this.set1i("uLightCount",n),s=0;s0&&this.flush();var e=this.inverseRotationMatrix;if(t){var i=-t,s=Math.cos(i),r=Math.sin(i);e[1]=r,e[3]=-r,e[0]=e[4]=s}else e[0]=e[4]=1,e[1]=e[3]=0;this.setMatrix3fv("uInverseRotationMatrix",!1,e),this.currentNormalMapRotation=t}},setTexture2D:function(t,e){var i=this.renderer;void 0===t&&(t=i.whiteTexture);var s=this.getNormalMap(e);this.isNewNormalMap(t,s)&&(this.flush(),this.createBatch(t),this.addTextureToBatch(s),this.currentNormalMap=s);var r=0;return e&&e.parentContainer?r=e.getWorldTransformMatrix(this._tempMatrix,this._tempMatrix2).rotationNormalized:e&&(r=e.rotation),this.setNormalMapRotation(r),0},setGameObject:function(t,e){void 0===e&&(e=t.frame);var i=e.glTexture,s=this.getNormalMap(t);if(this.isNewNormalMap(i,s)&&(this.flush(),this.createBatch(i),this.addTextureToBatch(s),this.currentNormalMap=s),t.parentContainer){var r=t.getWorldTransformMatrix(this._tempMatrix,this._tempMatrix2);this.setNormalMapRotation(r.rotationNormalized)}else this.setNormalMapRotation(t.rotation);return 0},isNewNormalMap:function(t,e){return this.currentTexture!==t||this.currentNormalMap!==e},getNormalMap:function(t){var e;return t?(t.displayTexture?e=t.displayTexture.dataSource[t.displayFrame.sourceIndex]:t.texture?e=t.texture.dataSource[t.frame.sourceIndex]:t.tileset&&(e=Array.isArray(t.tileset)?t.tileset[0].image.dataSource[0]:t.tileset.image.dataSource[0]),e?e.glTexture:this.renderer.normalTexture):this.renderer.normalTexture},batchSprite:function(t,e,i){this.lightsActive&&o.prototype.batchSprite.call(this,t,e,i)},batchTexture:function(t,e,i,s,r,n,a,h,l,u,c,d,p,f,g,m,v,y,x,w,T,b,S,E,C,A,_,P,R,M,k,L){this.lightsActive&&o.prototype.batchTexture.call(this,t,e,i,s,r,n,a,h,l,u,c,d,p,f,g,m,v,y,x,w,T,b,S,E,C,A,_,P,R,M,k,L)},batchTextureFrame:function(t,e,i,s,r,n,a){this.lightsActive&&o.prototype.batchTextureFrame.call(this,t,e,i,s,r,n,a)}});t.exports=u},56527:(t,e,i)=>{var s=i(83419),r=i(95540),n=i(57516),o=i(45561),a=i(60722),h=i(14500),l=i(29100),u=new s({Extends:n,initialize:function(t){t.fragShader=r(t,"fragShader",o),t.vertShader=r(t,"vertShader",a),t.attributes=r(t,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:h.UNSIGNED_BYTE,normalized:!0}]),t.forceZero=!0,t.resizeUniform="uResolution",n.call(this,t)},boot:function(){l.prototype.boot.call(this);var t=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",t.width,t.height),this.set1i("uRoundPixels",t.config.roundPixels)}});t.exports=u},57516:(t,e,i)=>{var s=i(83419),r=i(94811),n=i(95540),o=i(98840),a=i(44667),h=i(61340),l=i(70554),u=i(14500),c=i(29100),d=new s({Extends:c,initialize:function(t){var e=t.game.renderer,i=n(t,"fragShader",o);t.fragShader=l.parseFragmentShaderMaxTextures(i,e.maxTextures),t.vertShader=n(t,"vertShader",a),t.attributes=n(t,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:u.UNSIGNED_BYTE,normalized:!0}]),t.resizeUniform="uResolution",c.call(this,t),this._tempMatrix1=new h,this._tempMatrix2=new h,this._tempMatrix3=new h,this.calcMatrix=new h,this.tempTriangle=[{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0}],this.strokeTint={TL:0,TR:0,BL:0,BR:0},this.fillTint={TL:0,TR:0,BL:0,BR:0},this.currentFrame={u0:0,v0:0,u1:1,v1:1},this.firstQuad=[0,0,0,0,0],this.prevQuad=[0,0,0,0,0],this.polygonCache=[]},boot:function(){c.prototype.boot.call(this);var t=this.renderer;this.set1iv("uMainSampler",t.textureIndexes),this.set2f("uResolution",t.width,t.height),this.set1i("uRoundPixels",t.config.roundPixels)},batchSprite:function(t,e,i){this.manager.set(this,t);var s=this._tempMatrix1,r=this._tempMatrix2,n=this._tempMatrix3,o=t.frame,a=o.glTexture,h=o.u0,u=o.v0,c=o.u1,d=o.v1,p=o.x,f=o.y,g=o.cutWidth,m=o.cutHeight,v=o.customPivot,y=t.displayOriginX,x=t.displayOriginY,w=-y+p,T=-x+f;if(t.isCropped){var b=t._crop;b.flipX===t.flipX&&b.flipY===t.flipY||o.updateCropUVs(b,t.flipX,t.flipY),h=b.u0,u=b.v0,c=b.u1,d=b.v1,g=b.width,m=b.height,w=-y+(p=b.x),T=-x+(f=b.y)}var S=1,E=1;t.flipX&&(v||(w+=-o.realWidth+2*y),S=-1),t.flipY&&(v||(T+=-o.realHeight+2*x),E=-1);var C=t.x,A=t.y;r.applyITRS(C,A,t.rotation,t.scaleX*S,t.scaleY*E),s.copyFrom(e.matrix),i?(s.multiplyWithOffset(i,-e.scrollX*t.scrollFactorX,-e.scrollY*t.scrollFactorY),r.e=C,r.f=A):(r.e-=e.scrollX*t.scrollFactorX,r.f-=e.scrollY*t.scrollFactorY),s.multiply(r,n);var _=n.setQuad(w,T,w+g,T+m),P=l.getTintAppendFloatAlpha,R=e.alpha,M=P(t.tintTopLeft,R*t._alphaTL),k=P(t.tintTopRight,R*t._alphaTR),L=P(t.tintBottomLeft,R*t._alphaBL),O=P(t.tintBottomRight,R*t._alphaBR);this.shouldFlush(6)&&this.flush();var F=this.setGameObject(t,o);this.manager.preBatch(t),this.currentShader.set1i("uRoundPixels",e.roundPixels),this.batchQuad(t,_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],h,u,c,d,M,k,L,O,t.tintFill,a,F),this.manager.postBatch(t)},batchTexture:function(t,e,i,s,r,n,o,a,h,l,u,c,d,p,f,g,m,v,y,x,w,T,b,S,E,C,A,_,P,R,M,k,L){void 0===L&&(L=!1),this.manager.set(this,t);var O=this._tempMatrix1,F=this._tempMatrix2,D=this._tempMatrix3,I=v/i+A,B=y/s+_,N=(v+x)/i+A,U=(y+w)/s+_,Y=o,z=a,X=-g,G=-m;if(t.isCropped){var W=t._crop,V=W.width,H=W.height;Y=V,z=H,o=V,a=H;var j=v=W.x,q=y=W.y;c&&(j=x-W.x-V),d&&(q=w-W.y-H),I=j/i+A,B=q/s+_,N=(j+V)/i+A,U=(q+H)/s+_,X=-g+v,G=-m+y}c&&(Y*=-1,X+=o),(d^=!M&&e.isRenderTexture?1:0)&&(z*=-1,G+=a),F.applyITRS(r,n,u,h,l),O.copyFrom(P.matrix),R?(O.multiplyWithOffset(R,-P.scrollX*p,-P.scrollY*f),F.e=r,F.f=n):(F.e-=P.scrollX*p,F.f-=P.scrollY*f),O.multiply(F,D);var K=D.setQuad(X,G,X+Y,G+z);null==k&&(k=this.setTexture2D(e)),t&&!L&&this.manager.preBatch(t),this.currentShader.set1i("uRoundPixels",P.roundPixels),this.batchQuad(t,K[0],K[1],K[2],K[3],K[4],K[5],K[6],K[7],I,B,N,U,T,b,S,E,C,e,k),t&&!L&&this.manager.postBatch(t)},batchTextureFrame:function(t,e,i,s,r,n,o){this.manager.set(this);var a=this._tempMatrix1.copyFrom(n),h=this._tempMatrix2;o?a.multiply(o,h):h=a;var u=h.setQuad(e,i,e+t.width,i+t.height),c=this.setTexture2D(t.source.glTexture);s=l.getTintAppendFloatAlpha(s,r),this.batchQuad(null,u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],t.u0,t.v0,t.u1,t.v1,s,s,s,s,0,t.glTexture,c)},batchFillRect:function(t,e,i,s,r,n){this.renderer.pipelines.set(this);var o=this.calcMatrix;n&&n.multiply(r,o);var a=o.setQuad(t,e,t+i,e+s),h=this.fillTint;this.batchQuad(null,a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],0,0,1,1,h.TL,h.TR,h.BL,h.BR,2)},batchFillTriangle:function(t,e,i,s,r,n,o,a){this.renderer.pipelines.set(this);var h=this.calcMatrix;a&&a.multiply(o,h);var l=h.getX(t,e),u=h.getY(t,e),c=h.getX(i,s),d=h.getY(i,s),p=h.getX(r,n),f=h.getY(r,n),g=this.fillTint;this.currentShader.set1i("uRoundPixels",!1),this.batchTri(null,l,u,c,d,p,f,0,0,1,1,g.TL,g.TR,g.BL,2)},batchStrokeTriangle:function(t,e,i,s,r,n,o,a,h){var l=this.tempTriangle;l[0].x=t,l[0].y=e,l[0].width=o,l[1].x=i,l[1].y=s,l[1].width=o,l[2].x=r,l[2].y=n,l[2].width=o,l[3].x=t,l[3].y=e,l[3].width=o,this.batchStrokePath(l,o,!1,a,h)},batchFillPath:function(t,e,i){this.renderer.pipelines.set(this);var s=this.calcMatrix;i&&i.multiply(e,s);for(var n,o,a=t.length,h=this.polygonCache,l=this.fillTint.TL,u=this.fillTint.TR,c=this.fillTint.BL,d=0;d0&&Y[4]?this.batchQuad(null,O,F,R,M,Y[0],Y[1],Y[2],Y[3],0,0,1,1,I,B,N,U,2):(z[0]=O,z[1]=F,z[2]=R,z[3]=M,z[4]=1),h&&z[4]?this.batchQuad(null,_,P,k,L,z[0],z[1],z[2],z[3],0,0,1,1,I,B,N,U,2):(Y[0]=_,Y[1]=P,Y[2]=k,Y[3]=L,Y[4]=1)}}},destroy:function(){return this._tempMatrix1.destroy(),this._tempMatrix2.destroy(),this._tempMatrix3.destroy(),this._tempMatrix1=null,this._tempMatrix1=null,this._tempMatrix1=null,c.prototype.destroy.call(this),this}});t.exports=d},43439:(t,e,i)=>{var s=i(83419),r=i(95540),n=i(4127),o=i(89924),a=i(29100),h=new s({Extends:a,initialize:function(t){t.vertShader=r(t,"vertShader",o),t.fragShader=r(t,"fragShader",n),t.attributes=r(t,"attributes",[{name:"inPosition",size:2},{name:"inLightPosition",size:2},{name:"inLightRadius"},{name:"inLightAttenuation"},{name:"inLightColor",size:4}]),a.call(this,t)},onRender:function(t,e){this.set2f("uResolution",this.width,this.height),this.set1f("uCameraZoom",e.zoom)},batchPointLight:function(t,e,i,s,r,n,o,a,h,l,u,c){var d=t.color,p=t.intensity,f=t.radius,g=t.attenuation,m=d.r*p,v=d.g*p,y=d.b*p,x=e.alpha*t.alpha;this.shouldFlush(6)&&this.flush(),this.currentBatch||this.setTexture2D(),this.batchLightVert(i,s,u,c,f,g,m,v,y,x),this.batchLightVert(r,n,u,c,f,g,m,v,y,x),this.batchLightVert(o,a,u,c,f,g,m,v,y,x),this.batchLightVert(i,s,u,c,f,g,m,v,y,x),this.batchLightVert(o,a,u,c,f,g,m,v,y,x),this.batchLightVert(h,l,u,c,f,g,m,v,y,x),this.currentBatch.count=this.vertexCount-this.currentBatch.start},batchLightVert:function(t,e,i,s,r,n,o,a,h,l){var u=this.vertexViewF32,c=this.vertexCount*this.currentShader.vertexComponentCount-1;u[++c]=t,u[++c]=e,u[++c]=i,u[++c]=s,u[++c]=r,u[++c]=n,u[++c]=o,u[++c]=a,u[++c]=h,u[++c]=l,this.vertexCount++}});t.exports=h},84057:(t,e,i)=>{var s=i(83419),r=i(89422),n=i(95540),o=i(27681),a=i(49627),h=i(29100),l=new s({Extends:h,initialize:function(t){t.renderTarget=n(t,"renderTarget",1),t.fragShader=n(t,"fragShader",o),t.vertShader=n(t,"vertShader",a),t.attributes=n(t,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),t.batchSize=1,t.vertices=[-1,-1,0,0,-1,1,0,1,1,1,1,1,-1,-1,0,0,1,1,1,1,1,-1,1,0],h.call(this,t),this.isPostFX=!0,this.gameObject,this.controller,this.colorMatrix=new r,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2,this.renderer.isBooted&&(this.manager=this.renderer.pipelines)},bootFX:function(){h.prototype.boot.call(this);var t=this.manager.UTILITY_PIPELINE;this.fullFrame1=t.fullFrame1,this.fullFrame2=t.fullFrame2,this.halfFrame1=t.halfFrame1,this.halfFrame2=t.halfFrame2;var e=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",e.width,e.height),this.set1i("uRoundPixels",e.config.roundPixels);for(var i=this.renderTargets,s=0;s{var s=i(10312),r=i(67502),n=i(83419),o=i(96293),a=i(95540),h=i(57516),l=i(27681),u=i(87841),c=i(32302),d=i(45561),p=i(60722),f=i(29100),g=new n({Extends:h,initialize:function(t){var e=a(t,"fragShader",l),i=a(t,"vertShader",p),s=a(t,"drawShader",l),r=[{name:"DrawSprite",fragShader:d,vertShader:p},{name:"CopySprite",fragShader:e,vertShader:i},{name:"DrawGame",fragShader:s,vertShader:p},{name:"ColorMatrix",fragShader:o}],n=a(t,"shaders",[]);t.shaders=r.concat(n),t.vertShader||(t.vertShader=i),t.batchSize=1,h.call(this,t),this.isPreFX=!0,this.customMainSampler=null,this.drawSpriteShader,this.copyShader,this.gameShader,this.colorMatrixShader,this.quadVertexData,this.quadVertexBuffer,this.quadVertexViewF32,this.spriteBounds=new u,this.targetBounds=new u,this.fsTarget,this.tempSprite,this.renderer.isBooted&&(this.manager=this.renderer.pipelines,this.boot())},boot:function(){f.prototype.boot.call(this);var t=this.shaders,e=this.renderer;this.drawSpriteShader=t[0],this.copyShader=t[1],this.gameShader=t[2],this.colorMatrixShader=t[3],this.fsTarget=new c(e,e.width,e.height,1,0,!0,!0),this.renderTargets=this.manager.renderTargets.concat(this.fsTarget);var i=new ArrayBuffer(168);this.quadVertexData=i,this.quadVertexViewF32=new Float32Array(i),this.quadVertexBuffer=e.createVertexBuffer(i,this.gl.STATIC_DRAW),this.onResize(e.width,e.height),this.currentShader=this.copyShader,this.set2f("uResolution",e.width,e.height),this.set1i("uRoundPixels",e.config.roundPixels)},onResize:function(t,e){var i=this.quadVertexViewF32;i[1]=e,i[22]=e,i[14]=t,i[28]=t,i[35]=t,i[36]=e},batchQuad:function(t,e,i,s,n,o,a,h,l,u,c,d,p,f,g,m,v,y,x){var w=Math.min(e,s,o,h),T=Math.min(i,n,a,l),b=Math.max(e,s,o,h)-w,S=Math.max(i,n,a,l)-T,E=this.spriteBounds.setTo(w,T,b,S),C=t?t.preFX.padding:0,A=b+2*C,_=S+2*C,P=Math.abs(Math.max(A,_)),R=this.manager.getRenderTarget(P),M=this.targetBounds.setTo(0,0,R.width,R.height);r(M,E.centerX,E.centerY),this.tempSprite=t;var k=this.gl,L=this.renderer;L.clearStencilMask(),this.setShader(this.drawSpriteShader),this.set1i("uMainSampler",0),this.set2f("uResolution",L.width,L.height),this.set1i("uRoundPixels",L.config.roundPixels),this.flipProjectionMatrix(!0),t&&(this.onDrawSprite(t,R),t.preFX.onFX(this));var O=this.fsTarget;return this.flush(),k.viewport(0,0,L.width,L.height),k.bindFramebuffer(k.FRAMEBUFFER,O.framebuffer.webGLFramebuffer),k.framebufferTexture2D(k.FRAMEBUFFER,k.COLOR_ATTACHMENT0,k.TEXTURE_2D,O.texture.webGLTexture,0),k.clearColor(0,0,0,0),k.clear(k.COLOR_BUFFER_BIT),this.setTexture2D(x),this.batchVert(e,i,u,c,0,y,f),this.batchVert(s,n,u,p,0,y,m),this.batchVert(o,a,d,p,0,y,v),this.batchVert(e,i,u,c,0,y,f),this.batchVert(o,a,d,p,0,y,v),this.batchVert(h,l,d,c,0,y,g),this.flush(),this.flipProjectionMatrix(!1),k.activeTexture(k.TEXTURE0),k.bindTexture(k.TEXTURE_2D,R.texture.webGLTexture),k.copyTexSubImage2D(k.TEXTURE_2D,0,0,0,M.x,M.y,M.width,M.height),k.bindFramebuffer(k.FRAMEBUFFER,null),k.bindTexture(k.TEXTURE_2D,null),this.onBatch(t),this.currentShader=this.copyShader,this.onDraw(R,this.manager.getSwapRenderTarget(),this.manager.getAltSwapRenderTarget()),!0},onDrawSprite:function(){},onCopySprite:function(){},copySprite:function(t,e,i,r,n,o,a){void 0===i&&(i=!0),void 0===r&&(r=!0),void 0===n&&(n=!1),void 0===a&&(a=this.copyShader);var h=this.gl,l=this.tempSprite;o&&(a=this.colorMatrixShader),this.currentShader=a;var u=this.setVertexBuffer(this.quadVertexBuffer);a.bind(u,!1);var c=this.renderer;if(this.set1i("uMainSampler",0),this.set2f("uResolution",c.width,c.height),this.set1i("uRoundPixels",c.config.roundPixels),l.preFX.onFXCopy(this),this.onCopySprite(t,e,l),o&&(this.set1fv("uColorMatrix",o.getData()),this.set1f("uAlpha",o.alpha)),h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,t.texture.webGLTexture),t.height>e.height)h.viewport(0,0,t.width,t.height),this.setTargetUVs(t,e);else{var d=e.height-t.height;h.viewport(0,d,t.width,t.height),this.resetUVs()}if(h.bindFramebuffer(h.FRAMEBUFFER,e.framebuffer.webGLFramebuffer),h.framebufferTexture2D(h.FRAMEBUFFER,h.COLOR_ATTACHMENT0,h.TEXTURE_2D,e.texture.webGLTexture,0),i&&(h.clearColor(0,0,0,Number(!r)),h.clear(h.COLOR_BUFFER_BIT)),n){var p=this.renderer.currentBlendMode;this.renderer.setBlendMode(s.ERASE)}h.bufferData(h.ARRAY_BUFFER,this.quadVertexData,h.STATIC_DRAW),h.drawArrays(h.TRIANGLES,0,6),n&&this.renderer.setBlendMode(p),h.bindFramebuffer(h.FRAMEBUFFER,null)},copy:function(t,e){var i=this.gl;this.set1i("uMainSampler",0),i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,t.texture.webGLTexture),i.viewport(0,0,t.width,t.height),this.setUVs(0,0,0,1,1,1,1,0),i.bindFramebuffer(i.FRAMEBUFFER,e.framebuffer.webGLFramebuffer),i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,e.texture.webGLTexture,0),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.bufferData(i.ARRAY_BUFFER,this.quadVertexData,i.STATIC_DRAW),i.drawArrays(i.TRIANGLES,0,6),i.bindFramebuffer(i.FRAMEBUFFER,null)},blendFrames:function(t,e,i,s,r){this.manager.blendFrames(t,e,i,s,r)},blendFramesAdditive:function(t,e,i,s,r){this.manager.blendFramesAdditive(t,e,i,s,r)},drawToGame:function(t){this.currentShader=null,this.setShader(this.copyShader),this.bindAndDraw(t)},copyToGame:function(t){this.currentShader=null,this.setShader(this.gameShader),this.bindAndDraw(t)},bindAndDraw:function(t){var e=this.gl,i=this.renderer;this.set1i("uMainSampler",0),this.customMainSampler?this.setTexture2D(this.customMainSampler):this.setTexture2D(t.texture);var s=this._tempMatrix1.loadIdentity(),r=this.targetBounds.x,n=this.targetBounds.y,o=r+t.width,a=n+t.height,h=s.getX(r,n),l=s.getX(r,a),u=s.getX(o,a),c=s.getX(o,n),d=s.getY(r,n),p=s.getY(r,a),f=s.getY(o,a),g=s.getY(o,n),m=16777215;this.batchVert(h,d,0,0,0,0,m),this.batchVert(l,p,0,1,0,0,m),this.batchVert(u,f,1,1,0,0,m),this.batchVert(h,d,0,0,0,0,m),this.batchVert(u,f,1,1,0,0,m),this.batchVert(c,g,1,0,0,0,m),i.restoreFramebuffer(!1,!0),i.currentFramebuffer||e.viewport(0,0,i.width,i.height),i.restoreStencilMask(),this.flush(),this.tempSprite=null},onDraw:function(t){this.drawToGame(t)},setUVs:function(t,e,i,s,r,n,o,a){var h=this.quadVertexViewF32;h[2]=t,h[3]=e,h[9]=i,h[10]=s,h[16]=r,h[17]=n,h[23]=t,h[24]=e,h[30]=r,h[31]=n,h[37]=o,h[38]=a},setTargetUVs:function(t,e){var i=e.height/t.height;i=i>.5?.5-(i-.5):.5-i+.5,this.setUVs(0,i,0,1+i,1,1+i,1,i)},resetUVs:function(){this.setUVs(0,0,0,1,1,1,1,0)},destroy:function(){return this.renderer.deleteBuffer(this.quadVertexBuffer),this.drawSpriteShader=null,this.copyShader=null,this.gameShader=null,this.colorMatrixShader=null,this.quadVertexData=null,this.quadVertexBuffer=null,this.quadVertexViewF32=null,this.fsTarget=null,this.tempSprite=null,h.prototype.destroy.call(this),this}});t.exports=g},81041:(t,e,i)=>{var s=i(83419),r=i(95540),n=i(57516),o=new s({Extends:n,initialize:function(t){t.topology=5,t.batchSize=r(t,"batchSize",256),n.call(this,t)}});t.exports=o},12385:(t,e,i)=>{var s=i(83419),r=i(95540),n=i(57516),o=i(45561),a=i(60722),h=i(29100),l=new s({Extends:n,initialize:function(t){t.fragShader=r(t,"fragShader",o),t.vertShader=r(t,"vertShader",a),t.forceZero=!0,n.call(this,t)},boot:function(){h.prototype.boot.call(this);var t=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",t.width,t.height),this.set1i("uRoundPixels",t.config.roundPixels)}});t.exports=l},7589:(t,e,i)=>{var s=i(35407),r=i(10312),n=i(83419),o=i(89422),a=i(96293),h=i(36682),l=i(95540),u=i(48247),c=i(49627),d=i(29100),p=new n({Extends:d,initialize:function(t){t.renderTarget=l(t,"renderTarget",[{scale:1,autoResize:!0},{scale:1,autoResize:!0},{scale:.5,autoResize:!0},{scale:.5,autoResize:!0}]),t.vertShader=l(t,"vertShader",c),t.shaders=l(t,"shaders",[{name:"Copy",fragShader:h},{name:"AddBlend",fragShader:s},{name:"LinearBlend",fragShader:u},{name:"ColorMatrix",fragShader:a}]),t.attributes=l(t,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),t.vertices=[-1,-1,0,0,-1,1,0,1,1,1,1,1,-1,-1,0,0,1,1,1,1,1,-1,1,0],t.batchSize=1,d.call(this,t),this.colorMatrix=new o,this.copyShader,this.addShader,this.linearShader,this.colorMatrixShader,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2},boot:function(){d.prototype.boot.call(this);var t=this.shaders,e=this.renderTargets;this.copyShader=t[0],this.addShader=t[1],this.linearShader=t[2],this.colorMatrixShader=t[3],this.fullFrame1=e[0],this.fullFrame2=e[1],this.halfFrame1=e[2],this.halfFrame2=e[3]},copyFrame:function(t,e,i,s,r){void 0===i&&(i=1),void 0===s&&(s=!0),void 0===r&&(r=!0);var n=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",i),n.activeTexture(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,t.texture.webGLTexture),e?(n.viewport(0,0,e.width,e.height),n.bindFramebuffer(n.FRAMEBUFFER,e.framebuffer.webGLFramebuffer),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,e.texture.webGLTexture,0)):n.viewport(0,0,t.width,t.height),s&&(r?n.clearColor(0,0,0,0):n.clearColor(0,0,0,1),n.clear(n.COLOR_BUFFER_BIT)),n.bufferData(n.ARRAY_BUFFER,this.vertexData,n.STATIC_DRAW),n.drawArrays(n.TRIANGLES,0,6),n.bindFramebuffer(n.FRAMEBUFFER,null),n.bindTexture(n.TEXTURE_2D,null)},blitFrame:function(t,e,i,s,n,o,a){void 0===i&&(i=1),void 0===s&&(s=!0),void 0===n&&(n=!0),void 0===o&&(o=!1),void 0===a&&(a=!1);var h=this.gl;if(this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",i),h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,t.texture.webGLTexture),t.height>e.height)h.viewport(0,0,t.width,t.height),this.setTargetUVs(t,e);else{var l=e.height-t.height;h.viewport(0,l,t.width,t.height)}if(h.bindFramebuffer(h.FRAMEBUFFER,e.framebuffer.webGLFramebuffer),h.framebufferTexture2D(h.FRAMEBUFFER,h.COLOR_ATTACHMENT0,h.TEXTURE_2D,e.texture.webGLTexture,0),s&&(n?h.clearColor(0,0,0,0):h.clearColor(0,0,0,1),h.clear(h.COLOR_BUFFER_BIT)),o){var u=this.renderer.currentBlendMode;this.renderer.setBlendMode(r.ERASE)}a&&this.flipY(),h.bufferData(h.ARRAY_BUFFER,this.vertexData,h.STATIC_DRAW),h.drawArrays(h.TRIANGLES,0,6),o&&this.renderer.setBlendMode(u),h.bindFramebuffer(h.FRAMEBUFFER,null),h.bindTexture(h.TEXTURE_2D,null),this.resetUVs()},copyFrameRect:function(t,e,i,s,r,n,o,a){void 0===o&&(o=!0),void 0===a&&(a=!0);var h=this.gl;h.bindFramebuffer(h.FRAMEBUFFER,t.framebuffer.webGLFramebuffer),h.framebufferTexture2D(h.FRAMEBUFFER,h.COLOR_ATTACHMENT0,h.TEXTURE_2D,t.texture.webGLTexture,0),o&&(a?h.clearColor(0,0,0,0):h.clearColor(0,0,0,1),h.clear(h.COLOR_BUFFER_BIT)),h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,e.texture.webGLTexture),h.copyTexSubImage2D(h.TEXTURE_2D,0,0,0,i,s,r,n),h.bindFramebuffer(h.FRAMEBUFFER,null),h.bindTexture(h.TEXTURE_2D,null)},copyToGame:function(t){var e=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",1),this.renderer.popFramebuffer(),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,t.texture.webGLTexture),e.bufferData(e.ARRAY_BUFFER,this.vertexData,e.STATIC_DRAW),e.drawArrays(e.TRIANGLES,0,6)},drawFrame:function(t,e,i,s){void 0===i&&(i=!0),void 0===s&&(s=this.colorMatrix);var r=this.gl;this.setShader(this.colorMatrixShader),this.set1i("uMainSampler",0),this.set1fv("uColorMatrix",s.getData()),this.set1f("uAlpha",s.alpha),r.activeTexture(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,t.texture.webGLTexture),e?(r.viewport(0,0,e.width,e.height),r.bindFramebuffer(r.FRAMEBUFFER,e.framebuffer.webGLFramebuffer),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,e.texture.webGLTexture,0)):r.viewport(0,0,t.width,t.height),i?r.clearColor(0,0,0,0):r.clearColor(0,0,0,1),r.clear(r.COLOR_BUFFER_BIT),r.bufferData(r.ARRAY_BUFFER,this.vertexData,r.STATIC_DRAW),r.drawArrays(r.TRIANGLES,0,6),r.bindFramebuffer(r.FRAMEBUFFER,null),r.bindTexture(r.TEXTURE_2D,null)},blendFrames:function(t,e,i,s,r,n){void 0===s&&(s=1),void 0===r&&(r=!0),void 0===n&&(n=this.linearShader);var o=this.gl;this.setShader(n),this.set1i("uMainSampler1",0),this.set1i("uMainSampler2",1),this.set1f("uStrength",s),o.activeTexture(o.TEXTURE0),o.bindTexture(o.TEXTURE_2D,t.texture.webGLTexture),o.activeTexture(o.TEXTURE1),o.bindTexture(o.TEXTURE_2D,e.texture.webGLTexture),i?(o.bindFramebuffer(o.FRAMEBUFFER,i.framebuffer.webGLFramebuffer),o.framebufferTexture2D(o.FRAMEBUFFER,o.COLOR_ATTACHMENT0,o.TEXTURE_2D,i.texture.webGLTexture,0),o.viewport(0,0,i.width,i.height)):o.viewport(0,0,t.width,t.height),r?o.clearColor(0,0,0,0):o.clearColor(0,0,0,1),o.clear(o.COLOR_BUFFER_BIT),o.bufferData(o.ARRAY_BUFFER,this.vertexData,o.STATIC_DRAW),o.drawArrays(o.TRIANGLES,0,6),o.bindFramebuffer(o.FRAMEBUFFER,null),o.bindTexture(o.TEXTURE_2D,null)},blendFramesAdditive:function(t,e,i,s,r){this.blendFrames(t,e,i,s,r,this.addShader)},clearFrame:function(t,e){void 0===e&&(e=!0);var i=this.gl;i.viewport(0,0,t.width,t.height),i.bindFramebuffer(i.FRAMEBUFFER,t.framebuffer.webGLFramebuffer),e?i.clearColor(0,0,0,0):i.clearColor(0,0,0,1),i.clear(i.COLOR_BUFFER_BIT);var s=this.renderer.currentFramebuffer;i.bindFramebuffer(i.FRAMEBUFFER,s.webGLFramebuffer)},setUVs:function(t,e,i,s,r,n,o,a){var h=this.vertexViewF32;h[2]=t,h[3]=e,h[6]=i,h[7]=s,h[10]=r,h[11]=n,h[14]=t,h[15]=e,h[18]=r,h[19]=n,h[22]=o,h[23]=a},setTargetUVs:function(t,e){var i=e.height/t.height;i=i>.5?.5-(i-.5):.5-i+.5,this.setUVs(0,i,0,1+i,1,1+i,1,i)},flipX:function(){this.setUVs(1,0,1,1,0,1,0,0)},flipY:function(){this.setUVs(0,1,0,0,1,0,1,1)},resetUVs:function(){this.setUVs(0,0,0,1,1,1,1,0)}});t.exports=p},36060:t=>{t.exports={BITMAPMASK_PIPELINE:"BitmapMaskPipeline",LIGHT_PIPELINE:"Light2D",POINTLIGHT_PIPELINE:"PointLightPipeline",SINGLE_PIPELINE:"SinglePipeline",MULTI_PIPELINE:"MultiPipeline",ROPE_PIPELINE:"RopePipeline",GRAPHICS_PIPELINE:"GraphicsPipeline",POSTFX_PIPELINE:"PostFXPipeline",UTILITY_PIPELINE:"UtilityPipeline",MOBILE_PIPELINE:"MobilePipeline",FX_PIPELINE:"FxPipeline"}},84817:t=>{t.exports="pipelineafterflush"},36712:t=>{t.exports="pipelinebeforeflush"},40285:t=>{t.exports="pipelinebind"},65918:t=>{t.exports="pipelineboot"},92852:t=>{t.exports="pipelinedestroy"},56072:t=>{t.exports="pipelinerebind"},57566:t=>{t.exports="pipelineresize"},77085:(t,e,i)=>{t.exports={AFTER_FLUSH:i(84817),BEFORE_FLUSH:i(36712),BIND:i(40285),BOOT:i(65918),DESTROY:i(92852),REBIND:i(56072),RESIZE:i(57566)}},54812:(t,e,i)=>{var s=i(83419),r=i(99155),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.amount=1},onPreRender:function(t,e){t=this.getController(t),this.set1f("amount",t.amount,e)}});t.exports=o},67329:(t,e,i)=>{var s=i(83419),r=i(24400),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.steps=4,this.offsetX=1,this.offsetY=1,this.blurStrength=1,this.strength=1,this.glcolor=[1,1,1]},onPreRender:function(t){t=this.getController(t),this.set1f("strength",t.blurStrength),this.set3fv("color",t.glcolor)},onDraw:function(t){var e=this.getController(),i=this.fullFrame1,s=this.fullFrame2;this.copyFrame(t,s);for(var r=2/t.width*e.offsetX,n=2/t.height*e.offsetY,o=0;o{var s=i(83419),r=i(41514),n=i(51078),o=i(94328),a=i(84057),h=new s({Extends:a,initialize:function(t){a.call(this,{game:t,shaders:[{name:"Gaussian5",fragShader:r},{name:"Gaussian9",fragShader:n},{name:"Gaussian13",fragShader:o}]}),this.activeShader=this.shaders[0],this.x=2,this.y=2,this.steps=4,this.strength=1,this.glcolor=[1,1,1]},setQualityLow:function(){return this.activeShader=this.shaders[0],this},setQualityMedium:function(){return this.activeShader=this.shaders[1],this},setQualityHigh:function(){return this.activeShader=this.shaders[2],this},onDraw:function(t){var e=this.getController(),i=this.gl,s=this.fullFrame1,r=i.getParameter(i.FRAMEBUFFER_BINDING);this.bind(this.shaders[e.quality]),i.activeTexture(i.TEXTURE0),i.viewport(0,0,t.width,t.height),this.set1i("uMainSampler",0),this.set2f("resolution",t.width,t.height),this.set1f("strength",e.strength),this.set3fv("color",e.glcolor);for(var n=0;n{var s=i(83419),r=i(90610),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.isTiltShift=!1,this.strength=1,this.blurX=1,this.blurY=1,this.radius=.5,this.amount=1,this.contrast=.2},onPreRender:function(t,e,i,s){t=this.getController(t),this.set1f("radius",t.radius,e),this.set1f("amount",t.amount,e),this.set1f("contrast",t.contrast,e),this.set1f("strength",t.strength,e),this.set2f("blur",t.blurX,t.blurY,e),this.setBoolean("isTiltShift",t.isTiltShift,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=o},89428:(t,e,i)=>{var s=i(83419),r=i(91899),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.scale=1,this.feather=.005,this.thickness=8,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4]},onPreRender:function(t,e,i,s){t=this.getController(t),this.set1f("scale",t.scale,e),this.set1f("feather",t.feather,e),this.set1f("thickness",t.thickness,e),this.set3fv("color",t.glcolor,e),this.set4fv("backgroundColor",t.glcolor2,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=o},88904:(t,e,i)=>{var s=i(83419),r=i(84057),n=new s({Extends:r,initialize:function(t){r.call(this,{game:t})},onDraw:function(t){var e=this.fullFrame1;this.controller?this.manager.drawFrame(t,e,!0,this.controller):this.drawFrame(t,e),this.copyToGame(e)}});t.exports=n},63563:(t,e,i)=>{var s=i(83419),r=i(47838),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.x=.005,this.y=.005,this.glTexture},onBoot:function(){this.setTexture("__WHITE")},setTexture:function(t){var e=this.game.textures.getFrame(t);e&&(this.glTexture=e.glTexture)},onDraw:function(t){var e=this.getController(),i=this.fullFrame1;this.bind(),this.set1i("uMainSampler",0),this.set1i("uDisplacementSampler",1),this.set2f("amount",e.x,e.y),this.bindTexture(e.glTexture,1),this.copySprite(t,i),this.copyToGame(i)}});t.exports=o},94045:(t,e,i)=>{var s=i(83419),r=i(95540),n=i(98656),o=i(84057),a=i(70554),h=new s({Extends:o,initialize:function(t,e){var i=r(e,"quality",.1),s=r(e,"distance",10);o.call(this,{game:t,fragShader:a.setGlowQuality(n,t,i,s)}),this.outerStrength=4,this.innerStrength=0,this.knockout=!1,this.glcolor=[1,1,1,1]},onPreRender:function(t,e,i,s){t=this.getController(t),this.set1f("outerStrength",t.outerStrength,e),this.set1f("innerStrength",t.innerStrength,e),this.set4fv("glowColor",t.glcolor,e),this.setBoolean("knockout",t.knockout,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=h},74088:(t,e,i)=>{var s=i(83419),r=i(70463),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.alpha=.2,this.size=0,this.fromX=0,this.fromY=0,this.toX=0,this.toY=1,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0]},onPreRender:function(t,e){t=this.getController(t),this.set1f("alpha",t.alpha,e),this.set1i("size",t.size,e),this.set3fv("color1",t.glcolor1,e),this.set3fv("color2",t.glcolor2,e),this.set2f("positionFrom",t.fromX,t.fromY,e),this.set2f("positionTo",t.toX,t.toY,e)}});t.exports=o},99636:(t,e,i)=>{var s=i(83419),r=i(50831),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.amount=1},onPreRender:function(t,e,i,s){t=this.getController(t),this.set1f("amount",t.amount,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=o},34700:(t,e,i)=>{var s=i(83419),r=i(92595),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.x=0,this.y=0,this.decay=.1,this.power=1,this.glcolor=[0,0,0,1],this.samples=6,this.intensity=1},onPreRender:function(t,e){var i=(t=this.getController(t)).samples;this.set1i("samples",i,e),this.set1f("intensity",t.intensity,e),this.set1f("decay",t.decay,e),this.set1f("power",t.power/i,e),this.set2f("lightPosition",t.x,t.y,e),this.set4fv("color",t.glcolor,e)}});t.exports=o},91157:(t,e,i)=>{var s=i(83419),r=i(72464),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.speed=.5,this.lineWidth=.5,this.gradient=3,this.reveal=!1},onPreRender:function(t,e,i,s){t=this.getController(t),this.setTime("time",e),this.set1f("speed",t.speed,e),this.set1f("lineWidth",t.lineWidth,e),this.set1f("gradient",t.gradient,e),this.setBoolean("reveal",t.reveal,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=o},27797:(t,e,i)=>{var s=i(83419),r=i(39249),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.x=.5,this.y=.5,this.radius=.5,this.strength=.5},onPreRender:function(t,e){t=this.getController(t),this.set1f("radius",t.radius,e),this.set1f("strength",t.strength,e),this.set2f("position",t.x,t.y,e)}});t.exports=o},67603:(t,e,i)=>{var s=i(83419),r=i(2878),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.progress=0,this.wipeWidth=.1,this.direction=0,this.axis=0,this.reveal=!1},onPreRender:function(t,e){var i=(t=this.getController(t)).progress,s=t.wipeWidth,r=t.direction,n=t.axis;this.set4f("config",i,s,r,n,e),this.setBoolean("reveal",t.reveal,e)}});t.exports=o},58918:(t,e,i)=>{var s={Barrel:i(54812),Bloom:i(67329),Blur:i(8861),Bokeh:i(51051),Circle:i(89428),ColorMatrix:i(88904),Displacement:i(63563),Glow:i(94045),Gradient:i(74088),Pixelate:i(99636),Shadow:i(34700),Shine:i(91157),Vignette:i(27797),Wipe:i(67603)};t.exports=s},96615:(t,e,i)=>{var s=i(36060),r=i(79291),n={FX:i(58918),BitmapMaskPipeline:i(31302),Events:i(77085),FXPipeline:i(92651),LightPipeline:i(96569),MobilePipeline:i(56527),MultiPipeline:i(57516),PointLightPipeline:i(43439),PostFXPipeline:i(84057),PreFXPipeline:i(43558),RopePipeline:i(81041),SinglePipeline:i(12385),UtilityPipeline:i(7589)};n=r(!1,n,s),t.exports=n},35407:t=>{t.exports=["#define SHADER_NAME PHASER_ADD_BLEND_FS","precision mediump float;","uniform sampler2D uMainSampler1;","uniform sampler2D uMainSampler2;","uniform float uStrength;","varying vec2 outTexCoord;","void main ()","{"," vec4 frame1 = texture2D(uMainSampler1, outTexCoord);"," vec4 frame2 = texture2D(uMainSampler2, outTexCoord);"," gl_FragColor = frame1 + frame2 * uStrength;","}"].join("\n")},78908:t=>{t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_FS","precision mediump float;","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uMaskSampler;","uniform bool uInvertMaskAlpha;","void main ()","{"," vec2 uv = gl_FragCoord.xy / uResolution;"," vec4 mainColor = texture2D(uMainSampler, uv);"," vec4 maskColor = texture2D(uMaskSampler, uv);"," if (!uInvertMaskAlpha)"," {"," mainColor *= maskColor.a;"," }"," else"," {"," mainColor *= (1.0 - maskColor.a);"," }"," gl_FragColor = mainColor;","}"].join("\n")},85191:t=>{t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_VS","precision mediump float;","attribute vec2 inPosition;","void main ()","{"," gl_Position = vec4(inPosition, 0.0, 1.0);","}"].join("\n")},96293:t=>{t.exports=["#define SHADER_NAME PHASER_COLORMATRIX_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float uColorMatrix[20];","uniform float uAlpha;","varying vec2 outTexCoord;","void main ()","{"," vec4 c = texture2D(uMainSampler, outTexCoord);"," if (uAlpha == 0.0)"," {"," gl_FragColor = c;"," return;"," }"," if (c.a > 0.0)"," {"," c.rgb /= c.a;"," }"," vec4 result;"," result.r = (uColorMatrix[0] * c.r) + (uColorMatrix[1] * c.g) + (uColorMatrix[2] * c.b) + (uColorMatrix[3] * c.a) + uColorMatrix[4];"," result.g = (uColorMatrix[5] * c.r) + (uColorMatrix[6] * c.g) + (uColorMatrix[7] * c.b) + (uColorMatrix[8] * c.a) + uColorMatrix[9];"," result.b = (uColorMatrix[10] * c.r) + (uColorMatrix[11] * c.g) + (uColorMatrix[12] * c.b) + (uColorMatrix[13] * c.a) + uColorMatrix[14];"," result.a = (uColorMatrix[15] * c.r) + (uColorMatrix[16] * c.g) + (uColorMatrix[17] * c.b) + (uColorMatrix[18] * c.a) + uColorMatrix[19];"," vec3 rgb = mix(c.rgb, result.rgb, uAlpha);"," rgb *= result.a;"," gl_FragColor = vec4(rgb, result.a);","}"].join("\n")},36682:t=>{t.exports=["#define SHADER_NAME PHASER_COPY_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float uBrightness;","varying vec2 outTexCoord;","void main ()","{"," gl_FragColor = texture2D(uMainSampler, outTexCoord) * uBrightness;","}"].join("\n")},99155:t=>{t.exports=["#define SHADER_NAME BARREL_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float amount;","varying vec2 outTexCoord;","vec2 Distort(vec2 p)","{"," float theta = atan(p.y, p.x);"," float radius = length(p);"," radius = pow(radius, amount);"," p.x = radius * cos(theta);"," p.y = radius * sin(theta);"," return 0.5 * (p + 1.0);","}","void main()","{"," vec2 xy = 2.0 * outTexCoord - 1.0;"," vec2 texCoord = outTexCoord;"," if (length(xy) < 1.0)"," {"," texCoord = Distort(xy);"," }"," gl_FragColor = texture2D(uMainSampler, texCoord);","}"].join("\n")},24400:t=>{t.exports=["#define SHADER_NAME BLOOM_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec4 sum = texture2D(uMainSampler, outTexCoord) * 0.204164 * strength;"," sum = sum + texture2D(uMainSampler, outTexCoord + offset * 1.407333) * 0.304005;"," sum = sum + texture2D(uMainSampler, outTexCoord - offset * 1.407333) * 0.304005;"," sum = sum + texture2D(uMainSampler, outTexCoord + offset * 3.294215) * 0.093913;"," gl_FragColor = (sum + texture2D(uMainSampler, outTexCoord - offset * 3.294215) * 0.093913) * vec4(color, 1);","}"].join("\n")},94328:t=>{t.exports=["#define SHADER_NAME BLUR_HIGH_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 col = vec4(0.0);"," vec2 off1 = vec2(1.411764705882353) * offset * strength;"," vec2 off2 = vec2(3.2941176470588234) * offset * strength;"," vec2 off3 = vec2(5.176470588235294) * offset * strength;"," col += texture2D(uMainSampler, uv) * 0.1964825501511404;"," col += texture2D(uMainSampler, uv + (off1 / resolution)) * 0.2969069646728344;"," col += texture2D(uMainSampler, uv - (off1 / resolution)) * 0.2969069646728344;"," col += texture2D(uMainSampler, uv + (off2 / resolution)) * 0.09447039785044732;"," col += texture2D(uMainSampler, uv - (off2 / resolution)) * 0.09447039785044732;"," col += texture2D(uMainSampler, uv + (off3 / resolution)) * 0.010381362401148057;"," col += texture2D(uMainSampler, uv - (off3 / resolution)) * 0.010381362401148057;"," gl_FragColor = col * vec4(color, 1.0);","}"].join("\n")},41514:t=>{t.exports=["#define SHADER_NAME BLUR_LOW_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 col = vec4(0.0);"," vec2 offset = vec2(1.333) * offset * strength;"," col += texture2D(uMainSampler, uv) * 0.29411764705882354;"," col += texture2D(uMainSampler, uv + (offset / resolution)) * 0.35294117647058826;"," col += texture2D(uMainSampler, uv - (offset / resolution)) * 0.35294117647058826;"," gl_FragColor = col * vec4(color, 1.0);","}"].join("\n")},51078:t=>{t.exports=["#define SHADER_NAME BLUR_MED_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 col = vec4(0.0);"," vec2 off1 = vec2(1.3846153846) * offset * strength;"," vec2 off2 = vec2(3.2307692308) * offset * strength;"," col += texture2D(uMainSampler, uv) * 0.2270270270;"," col += texture2D(uMainSampler, uv + (off1 / resolution)) * 0.3162162162;"," col += texture2D(uMainSampler, uv - (off1 / resolution)) * 0.3162162162;"," col += texture2D(uMainSampler, uv + (off2 / resolution)) * 0.0702702703;"," col += texture2D(uMainSampler, uv - (off2 / resolution)) * 0.0702702703;"," gl_FragColor = col * vec4(color, 1.0);","}"].join("\n")},90610:t=>{t.exports=["#define SHADER_NAME BOKEH_FS","precision mediump float;","#define ITERATIONS 100.0","#define ONEOVER_ITR 1.0 / ITERATIONS","#define PI 3.141596","#define GOLDEN_ANGLE 2.39996323","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform float radius;","uniform float amount;","uniform float contrast;","uniform bool isTiltShift;","uniform float strength;","uniform vec2 blur;","varying vec2 outTexCoord;","vec2 Sample (in float theta, inout float r)","{"," r += 1.0 / r;"," return (r - 1.0) * vec2(cos(theta), sin(theta)) * 0.06;","}","vec3 Bokeh (sampler2D tex, vec2 uv, float radius)","{"," vec3 acc = vec3(0.0);"," vec3 div = vec3(0.0);"," vec2 pixel = vec2(resolution.y / resolution.x, 1.0) * radius * .025;"," float r = 1.0;"," for (float j = 0.0; j < GOLDEN_ANGLE * ITERATIONS; j += GOLDEN_ANGLE)"," {"," vec3 col = texture2D(tex, uv + pixel * Sample(j, r)).xyz;"," col = contrast > 0.0 ? col * col * (1.0 + contrast) : col;"," vec3 bokeh = vec3(0.5) + pow(col, vec3(10.0)) * amount;"," acc += col * bokeh;"," div += bokeh;"," }"," return acc / div;","}","void main ()","{"," float shift = 1.0;"," if (isTiltShift)"," {"," vec2 uv = vec2(gl_FragCoord.xy / resolution + vec2(-0.5, -0.5)) * 2.0;"," float centerStrength = 1.0;"," shift = length(uv * blur * strength) * centerStrength;"," }"," gl_FragColor = vec4(Bokeh(uMainSampler, outTexCoord * vec2(1.0, 1.0), radius * shift), 0.0);","}"].join("\n")},91899:t=>{t.exports=["#define SHADER_NAME CIRCLE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec3 color;","uniform vec4 backgroundColor;","uniform float thickness;","uniform float scale;","uniform float feather;","varying vec2 outTexCoord;","void main ()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec2 position = (gl_FragCoord.xy / resolution.xy) * 2.0 - 1.0;"," float aspectRatio = resolution.x / resolution.y;"," position.x *= aspectRatio;"," float grad = length(position);"," float outer = aspectRatio;"," float inner = outer - (thickness * 2.0 / resolution.y);"," if (aspectRatio >= 1.0)"," {"," float f = 2.0 + (resolution.y / resolution.x);"," outer = 1.0;"," inner = 1.0 - (thickness * f / resolution.x);"," }"," outer *= scale;"," inner *= scale;"," float circle = smoothstep(outer, outer - 0.01, grad);"," float ring = circle - smoothstep(inner, inner - feather, grad);"," texture = mix(backgroundColor * backgroundColor.a, texture, texture.a);"," texture = (texture * (circle - ring));"," gl_FragColor = vec4(texture.rgb + (ring * color), texture.a);","}"].join("\n")},47838:t=>{t.exports=["#define SHADER_NAME DISPLACEMENT_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform sampler2D uDisplacementSampler;","uniform vec2 amount;","varying vec2 outTexCoord;","void main ()","{"," vec2 disp = (-vec2(0.5, 0.5) + texture2D(uDisplacementSampler, outTexCoord).rr) * amount;"," gl_FragColor = texture2D(uMainSampler, outTexCoord + disp).rgba;","}"].join("\n")},98656:t=>{t.exports=["#define SHADER_NAME GLOW_FS","precision mediump float;","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","uniform float outerStrength;","uniform float innerStrength;","uniform vec2 resolution;","uniform vec4 glowColor;","uniform bool knockout;","const float PI = 3.14159265358979323846264;","const float DIST = __DIST__;","const float SIZE = min(__SIZE__, PI * 2.0);","const float STEP = ceil(PI * 2.0 / SIZE);","const float MAX_ALPHA = STEP * DIST * (DIST + 1.0) / 2.0;","void main ()","{"," vec2 px = vec2(1.0 / resolution.x, 1.0 / resolution.y);"," float totalAlpha = 0.0;"," vec2 direction;"," vec2 displaced;"," vec4 color;"," for (float angle = 0.0; angle < PI * 2.0; angle += SIZE)"," {"," direction = vec2(cos(angle), sin(angle)) * px;"," for (float curDistance = 0.0; curDistance < DIST; curDistance++)"," {"," displaced = outTexCoord + direction * (curDistance + 1.0);"," color = texture2D(uMainSampler, displaced);"," totalAlpha += (DIST - curDistance) * color.a;"," }"," }"," color = texture2D(uMainSampler, outTexCoord);"," float alphaRatio = (totalAlpha / MAX_ALPHA);"," float innerGlowAlpha = (1.0 - alphaRatio) * innerStrength * color.a;"," float innerGlowStrength = min(1.0, innerGlowAlpha);"," vec4 innerColor = mix(color, glowColor, innerGlowStrength);"," float outerGlowAlpha = alphaRatio * outerStrength * (1.0 - color.a);"," float outerGlowStrength = min(1.0 - innerColor.a, outerGlowAlpha);"," vec4 outerGlowColor = outerGlowStrength * glowColor.rgba;"," if (knockout)"," {"," float resultAlpha = outerGlowAlpha + innerGlowAlpha;"," gl_FragColor = vec4(glowColor.rgb * resultAlpha, resultAlpha);"," }"," else"," {"," gl_FragColor = innerColor + outerGlowColor;"," }","}"].join("\n")},70463:t=>{t.exports=["#define SHADER_NAME GRADIENT_FS","#define SRGB_TO_LINEAR(c) pow((c), vec3(2.2))","#define LINEAR_TO_SRGB(c) pow((c), vec3(1.0 / 2.2))","#define SRGB(r, g, b) SRGB_TO_LINEAR(vec3(float(r), float(g), float(b)) / 255.0)","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 positionFrom;","uniform vec2 positionTo;","uniform vec3 color1;","uniform vec3 color2;","uniform float alpha;","uniform int size;","varying vec2 outTexCoord;","float gradientNoise(in vec2 uv)","{"," const vec3 magic = vec3(0.06711056, 0.00583715, 52.9829189);"," return fract(magic.z * fract(dot(uv, magic.xy)));","}","float stepped (in float s, in float scale, in int steps)","{"," return steps > 0 ? floor( s / ((1.0 * scale) / float(steps))) * 1.0 / float(steps - 1) : s;","}","void main ()","{"," vec2 a = positionFrom;"," vec2 b = positionTo;"," vec2 ba = b - a;"," float d = dot(outTexCoord - a, ba) / dot(ba, ba);"," float t = size > 0 ? stepped(d, 1.0, size) : d;"," t = smoothstep(0.0, 1.0, clamp(t, 0.0, 1.0));"," vec3 color = mix(SRGB(color1.r, color1.g, color1.b), SRGB(color2.r, color2.g, color2.b), t);"," color = LINEAR_TO_SRGB(color);"," color += (1.0 / 255.0) * gradientNoise(outTexCoord) - (0.5 / 255.0);"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," gl_FragColor = vec4(mix(color.rgb, texture.rgb, alpha), 1.0) * texture.a;","}"].join("\n")},50831:t=>{t.exports=["#define SHADER_NAME PIXELATE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform float amount;","varying vec2 outTexCoord;","void main ()","{"," float pixelSize = floor(2.0 + amount);"," vec2 center = pixelSize * floor(outTexCoord * resolution / pixelSize) + pixelSize * vec2(0.5, 0.5);"," vec2 corner1 = center + pixelSize * vec2(-0.5, -0.5);"," vec2 corner2 = center + pixelSize * vec2(+0.5, -0.5);"," vec2 corner3 = center + pixelSize * vec2(+0.5, +0.5);"," vec2 corner4 = center + pixelSize * vec2(-0.5, +0.5);"," vec4 pixel = 0.4 * texture2D(uMainSampler, center / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner1 / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner2 / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner3 / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner4 / resolution);"," gl_FragColor = pixel;","}"].join("\n")},92595:t=>{t.exports=["#define SHADER_NAME SHADOW_FS","precision mediump float;","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","uniform vec2 lightPosition;","uniform vec4 color;","uniform float decay;","uniform float power;","uniform float intensity;","uniform int samples;","const int MAX = 12;","void main ()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec2 pc = (lightPosition - outTexCoord) * intensity;"," float shadow = 0.0;"," float limit = max(float(MAX), float(samples));"," for (int i = 0; i < MAX; ++i)"," {"," if (i >= samples)"," {"," break;"," }"," shadow += texture2D(uMainSampler, outTexCoord + float(i) * decay / limit * pc).a * power;"," }"," float mask = 1.0 - texture.a;"," gl_FragColor = mix(texture, color, shadow * mask);","}"].join("\n")},72464:t=>{t.exports=["#define SHADER_NAME SHINE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform bool reveal;","uniform float speed;","uniform float time;","uniform float lineWidth;","uniform float gradient;","varying vec2 outTexCoord;","void main ()","{","\tvec2 uv = gl_FragCoord.xy / resolution.xy;"," vec4 tex = texture2D(uMainSampler, outTexCoord);"," vec4 col1 = vec4(0.3, 0.0, 0.0, 1.0);"," vec4 col2 = vec4(0.85, 0.85, 0.85, 1.0);"," uv.x = uv.x - mod(time * speed, 2.0) + 0.5;"," float y = uv.x * gradient;"," float s = smoothstep(y - lineWidth, y, uv.y) - smoothstep(y, y + lineWidth, uv.y);"," gl_FragColor = (((s * col1) + (s * col2)) * tex);"," if (!reveal)"," {"," gl_FragColor += tex;"," }","}"].join("\n")},39249:t=>{t.exports=["#define SHADER_NAME VIGNETTE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float radius;","uniform float strength;","uniform vec2 position;","varying vec2 outTexCoord;","void main ()","{"," vec4 col = vec4(1.0);"," float d = length(outTexCoord - position);"," if (d <= radius)"," {"," float g = d / radius;"," g = sin(g * 3.14 * strength);"," \tcol = vec4(g * g * g);"," }"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," gl_FragColor = texture * (1.0 - col);","}"].join("\n")},2878:t=>{t.exports=["#define SHADER_NAME WIPE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec4 config;","uniform bool reveal;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 color0;"," vec4 color1;"," if (reveal)"," {"," color0 = vec4(0);"," color1 = texture2D(uMainSampler, uv);"," }"," else"," {"," color0 = texture2D(uMainSampler, uv);"," color1 = vec4(0);"," }"," float distance = config.x;"," float width = config.y;"," float direction = config.z;"," float axis = uv.x;"," if (config.w == 1.0)"," {"," axis = uv.y;"," }"," float adjust = mix(width, -width, distance);"," float value = smoothstep(distance - width, distance + width, abs(direction - axis) + adjust);"," gl_FragColor = mix(color1, color0, value);","}"].join("\n")},31063:t=>{t.exports=["#define SHADER_NAME PHASER_LIGHT_FS","precision mediump float;","struct Light","{"," vec2 position;"," vec3 color;"," float intensity;"," float radius;","};","const int kMaxLights = %LIGHT_COUNT%;","uniform vec4 uCamera; /* x, y, rotation, zoom */","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uNormSampler;","uniform vec3 uAmbientLightColor;","uniform Light uLights[kMaxLights];","uniform mat3 uInverseRotationMatrix;","uniform int uLightCount;","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec3 finalColor = vec3(0.0, 0.0, 0.0);"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," vec3 normalMap = texture2D(uNormSampler, outTexCoord).rgb;"," vec3 normal = normalize(uInverseRotationMatrix * vec3(normalMap * 2.0 - 1.0));"," vec2 res = vec2(min(uResolution.x, uResolution.y)) * uCamera.w;"," for (int index = 0; index < kMaxLights; ++index)"," {"," if (index < uLightCount)"," {"," Light light = uLights[index];"," vec3 lightDir = vec3((light.position.xy / res) - (gl_FragCoord.xy / res), 0.1);"," vec3 lightNormal = normalize(lightDir);"," float distToSurf = length(lightDir) * uCamera.w;"," float diffuseFactor = max(dot(normal, lightNormal), 0.0);"," float radius = (light.radius / res.x * uCamera.w) * uCamera.w;"," float attenuation = clamp(1.0 - distToSurf * distToSurf / (radius * radius), 0.0, 1.0);"," vec3 diffuse = light.color * diffuseFactor;"," finalColor += (attenuation * diffuse) * light.intensity;"," }"," }"," vec4 colorOutput = vec4(uAmbientLightColor + finalColor, 1.0);"," gl_FragColor = color * vec4(colorOutput.rgb * colorOutput.a, colorOutput.a);","}"].join("\n")},48247:t=>{t.exports=["#define SHADER_NAME PHASER_LINEAR_BLEND_FS","precision mediump float;","uniform sampler2D uMainSampler1;","uniform sampler2D uMainSampler2;","uniform float uStrength;","varying vec2 outTexCoord;","void main ()","{"," vec4 frame1 = texture2D(uMainSampler1, outTexCoord);"," vec4 frame2 = texture2D(uMainSampler2, outTexCoord);"," gl_FragColor = mix(frame1, frame2 * uStrength, 0.5);","}"].join("\n")},41214:t=>{t.exports=["#define SHADER_NAME PHASER_MESH_FS","precision mediump float;","uniform vec3 uLightPosition;","uniform vec3 uLightAmbient;","uniform vec3 uLightDiffuse;","uniform vec3 uLightSpecular;","uniform vec3 uFogColor;","uniform float uFogNear;","uniform float uFogFar;","uniform vec3 uMaterialAmbient;","uniform vec3 uMaterialDiffuse;","uniform vec3 uMaterialSpecular;","uniform float uMaterialShine;","uniform vec3 uCameraPosition;","uniform sampler2D uTexture;","varying vec2 vTextureCoord;","varying vec3 vNormal;","varying vec3 vPosition;","void main (void)","{"," vec4 color = texture2D(uTexture, vTextureCoord);"," vec3 ambient = uLightAmbient * uMaterialAmbient;"," vec3 norm = normalize(vNormal);"," vec3 lightDir = normalize(uLightPosition - vPosition);"," float diff = max(dot(norm, lightDir), 0.0);"," vec3 diffuse = uLightDiffuse * (diff * uMaterialDiffuse);"," vec3 viewDir = normalize(uCameraPosition - vPosition);"," vec3 reflectDir = reflect(-lightDir, norm);"," float spec = pow(max(dot(viewDir, reflectDir), 0.0), uMaterialShine);"," vec3 specular = uLightSpecular * (spec * uMaterialSpecular);"," vec3 result = (ambient + diffuse + specular) * color.rgb;"," float depth = gl_FragCoord.z / gl_FragCoord.w;"," float fogFactor = smoothstep(uFogNear, uFogFar, depth);"," gl_FragColor.rgb = mix(result.rgb, uFogColor, fogFactor);"," gl_FragColor.a = color.a;","}"].join("\n")},39653:t=>{t.exports=["#define SHADER_NAME PHASER_MESH_VS","precision mediump float;","attribute vec3 aVertexPosition;","attribute vec3 aVertexNormal;","attribute vec2 aTextureCoord;","uniform mat4 uViewProjectionMatrix;","uniform mat4 uModelMatrix;","uniform mat4 uNormalMatrix;","varying vec2 vTextureCoord;","varying vec3 vNormal;","varying vec3 vPosition;","void main ()","{"," vTextureCoord = aTextureCoord;"," vPosition = vec3(uModelMatrix * vec4(aVertexPosition, 1.0));"," vNormal = vec3(uNormalMatrix * vec4(aVertexNormal, 1.0));"," gl_Position = uViewProjectionMatrix * uModelMatrix * vec4(aVertexPosition, 1.0);","}"].join("\n")},62143:t=>{t.exports=["#define SHADER_NAME PHASER_MOBILE_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join("\n")},47940:t=>{t.exports=["#define SHADER_NAME PHASER_MOBILE_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","uniform int uRoundPixels;","uniform vec2 uResolution;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," if (uRoundPixels == 1)"," {"," gl_Position.xy = floor(((gl_Position.xy + 1.0) * 0.5 * uResolution) + 0.5) / uResolution * 2.0 - 1.0;"," }"," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join("\n")},98840:t=>{t.exports=["#define SHADER_NAME PHASER_MULTI_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler[%count%];","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texture;"," %forloop%"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join("\n")},44667:t=>{t.exports=["#define SHADER_NAME PHASER_MULTI_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","uniform int uRoundPixels;","uniform vec2 uResolution;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," if (uRoundPixels == 1)"," {"," gl_Position.xy = floor(((gl_Position.xy + 1.0) * 0.5 * uResolution) + 0.5) / uResolution * 2.0 - 1.0;"," }"," outTexCoord = inTexCoord;"," outTexId = inTexId;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join("\n")},4127:t=>{t.exports=["#define SHADER_NAME PHASER_POINTLIGHT_FS","precision mediump float;","uniform vec2 uResolution;","uniform float uCameraZoom;","varying vec4 lightPosition;","varying vec4 lightColor;","varying float lightRadius;","varying float lightAttenuation;","void main ()","{"," vec2 center = (lightPosition.xy + 1.0) * (uResolution.xy * 0.5);"," float distToSurf = length(center - gl_FragCoord.xy);"," float radius = 1.0 - distToSurf / (lightRadius * uCameraZoom);"," float intensity = smoothstep(0.0, 1.0, radius * lightAttenuation);"," vec4 color = vec4(intensity, intensity, intensity, 0.0) * lightColor;"," gl_FragColor = vec4(color.rgb * lightColor.a, color.a);","}"].join("\n")},89924:t=>{t.exports=["#define SHADER_NAME PHASER_POINTLIGHT_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","attribute vec2 inPosition;","attribute vec2 inLightPosition;","attribute vec4 inLightColor;","attribute float inLightRadius;","attribute float inLightAttenuation;","varying vec4 lightPosition;","varying vec4 lightColor;","varying float lightRadius;","varying float lightAttenuation;","void main ()","{"," lightColor = inLightColor;"," lightRadius = inLightRadius;"," lightAttenuation = inLightAttenuation;"," lightPosition = uProjectionMatrix * vec4(inLightPosition, 1.0, 1.0);"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);","}"].join("\n")},27681:t=>{t.exports=["#define SHADER_NAME PHASER_POSTFX_FS","precision mediump float;","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","void main ()","{"," gl_FragColor = texture2D(uMainSampler, outTexCoord);","}"].join("\n")},49627:t=>{t.exports=["#define SHADER_NAME PHASER_QUAD_VS","precision mediump float;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","varying vec2 outFragCoord;","varying vec2 outTexCoord;","void main ()","{"," outFragCoord = inPosition.xy * 0.5 + 0.5;"," outTexCoord = inTexCoord;"," gl_Position = vec4(inPosition, 0, 1);","}"].join("\n")},45561:t=>{t.exports=["#define SHADER_NAME PHASER_SINGLE_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join("\n")},60722:t=>{t.exports=["#define SHADER_NAME PHASER_SINGLE_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","uniform int uRoundPixels;","uniform vec2 uResolution;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," if (uRoundPixels == 1)"," {"," gl_Position.xy = floor(((gl_Position.xy + 1.0) * 0.5 * uResolution) + 0.5) / uResolution * 2.0 - 1.0;"," }"," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join("\n")},89350:(t,e,i)=>{t.exports={AddBlendFrag:i(35407),BitmapMaskFrag:i(78908),BitmapMaskVert:i(85191),ColorMatrixFrag:i(96293),CopyFrag:i(36682),FXBarrelFrag:i(99155),FXBloomFrag:i(24400),FXBlurHighFrag:i(94328),FXBlurLowFrag:i(41514),FXBlurMedFrag:i(51078),FXBokehFrag:i(90610),FXCircleFrag:i(91899),FXDisplacementFrag:i(47838),FXGlowFrag:i(98656),FXGradientFrag:i(70463),FXPixelateFrag:i(50831),FXShadowFrag:i(92595),FXShineFrag:i(72464),FXVignetteFrag:i(39249),FXWipeFrag:i(2878),LightFrag:i(31063),LinearBlendFrag:i(48247),MeshFrag:i(41214),MeshVert:i(39653),MobileFrag:i(62143),MobileVert:i(47940),MultiFrag:i(98840),MultiVert:i(44667),PointLightFrag:i(4127),PointLightVert:i(89924),PostFXFrag:i(27681),QuadVert:i(49627),SingleFrag:i(45561),SingleVert:i(60722)}},93567:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e,i){this.webGLAttribLocation=-1,this.gl=t,this.program=e,this.name=i,this.createResource()},createResource:function(){if(null!==this.program.webGLProgram){var t=this.gl;t.isContextLost()||(this.webGLAttribLocation=t.getAttribLocation(this.program.webGLProgram,this.name))}else this.webGLAttribLocation=-1},destroy:function(){this.gl=null,this.program=null,this.name=null,this.webGLAttribLocation=-1}});t.exports=s},26128:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e,i,s){this.webGLBuffer=null,this.gl=t,this.initialDataOrSize=e,this.bufferType=i,this.bufferUsage=s,this.createResource()},createResource:function(){if(null!==this.initialDataOrSize){var t=this.gl;if(!t.isContextLost()){var e=this.bufferType,i=t.createBuffer();this.webGLBuffer=i,t.bindBuffer(e,this.webGLBuffer),t.bufferData(e,this.initialDataOrSize,this.bufferUsage),t.bindBuffer(e,null)}}},destroy:function(){var t=this.gl;t.isContextLost()||t.deleteBuffer(this.webGLBuffer),this.webGLBuffer=null,this.initialDataOrSize=null,this.gl=null}});t.exports=s},84387:(t,e,i)=>{var s=i(83419),r={36054:"Incomplete Attachment",36055:"Missing Attachment",36057:"Incomplete Dimensions",36061:"Framebuffer Unsupported"},n=new s({initialize:function(t,e,i,s,r){this.webGLFramebuffer=null,this.gl=t,this.width=e,this.height=i,this.renderTexture=s,this.addDepthStencilBuffer=!!r,this.createResource()},createResource:function(){var t=this.gl;if(!t.isContextLost()){var e,i=this.renderTexture,s=t.createFramebuffer();if(this.webGLFramebuffer=s,t.bindFramebuffer(t.FRAMEBUFFER,s),i.isRenderTexture=!0,i.isAlphaPremultiplied=!1,t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,i.webGLTexture,0),(e=t.checkFramebufferStatus(t.FRAMEBUFFER))!==t.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer status: "+(r[e]||e));if(this.addDepthStencilBuffer){var n=t.createRenderbuffer();t.bindRenderbuffer(t.RENDERBUFFER,n),t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,this.width,this.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,n)}t.bindFramebuffer(t.FRAMEBUFFER,null)}},destroy:function(){if(null!==this.webGLFramebuffer){var t=this.gl;if(!t.isContextLost()){t.bindFramebuffer(t.FRAMEBUFFER,this.webGLFramebuffer);var e=t.getFramebufferAttachmentParameter(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME);null!==e&&(t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,null,0),t.deleteTexture(e));var i=t.getFramebufferAttachmentParameter(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME);null!==i&&t.deleteRenderbuffer(i),t.bindFramebuffer(t.FRAMEBUFFER,null),t.deleteFramebuffer(this.webGLFramebuffer)}this.renderTexture=null,this.webGLFramebuffer=null,this.gl=null}}});t.exports=n},1482:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e,i){this.webGLProgram=null,this.gl=t,this.vertexSource=e,this.fragmentSource=i,this.createResource()},createResource:function(){var t=this.gl;if(!t.isContextLost()){var e=t.createProgram(),i=t.createShader(t.VERTEX_SHADER),s=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(i,this.vertexSource),t.shaderSource(s,this.fragmentSource),t.compileShader(i),t.compileShader(s);var r="Shader failed:\n";if(!t.getShaderParameter(i,t.COMPILE_STATUS))throw new Error("Vertex "+r+t.getShaderInfoLog(i));if(!t.getShaderParameter(s,t.COMPILE_STATUS))throw new Error("Fragment "+r+t.getShaderInfoLog(s));if(t.attachShader(e,i),t.attachShader(e,s),t.linkProgram(e),!t.getProgramParameter(e,t.LINK_STATUS))throw new Error("Link "+r+t.getProgramInfoLog(e));t.useProgram(e),this.webGLProgram=e}},destroy:function(){this.webGLProgram&&(this.gl.isContextLost()||this.gl.deleteProgram(this.webGLProgram),this.webGLProgram=null,this.gl=null)}});t.exports=s},82751:(t,e,i)=>{var s=i(83419),r=i(50030),n=new s({initialize:function(t,e,i,s,r,n,o,a,h,l,u,c,d){this.webGLTexture=null,this.isRenderTexture=!1,this.gl=t,this.mipLevel=e,this.minFilter=i,this.magFilter=s,this.wrapT=r,this.wrapS=n,this.format=o,this.pixels=a,this.width=h,this.height=l,this.pma=null==u||u,this.forceSize=!!c,this.flipY=!!d,this.__SPECTOR_Metadata={},this.createResource()},createResource:function(){var t=this.gl;if(!t.isContextLost())if(this.pixels instanceof n)this.webGLTexture=this.pixels.webGLTexture;else{var e=t.createTexture();e.__SPECTOR_Metadata=this.__SPECTOR_Metadata,this.webGLTexture=e,this._processTexture()}},update:function(t,e,i,s,r,n,o,a,h){0!==e&&0!==i&&(this.pixels=t,this.width=e,this.height=i,this.flipY=s,this.wrapS=r,this.wrapT=n,this.minFilter=o,this.magFilter=a,this.format=h,this.gl.isContextLost()||this._processTexture())},_processTexture:function(){var t=this.gl;t.activeTexture(t.TEXTURE0);var e=t.getParameter(t.TEXTURE_BINDING_2D);t.bindTexture(t.TEXTURE_2D,this.webGLTexture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.minFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.magFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,this.wrapS),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,this.wrapT),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.pma),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,this.flipY);var i=this.pixels,s=this.mipLevel,n=this.width,o=this.height,a=this.format,h=!1;if(null==i)t.texImage2D(t.TEXTURE_2D,s,a,n,o,0,a,t.UNSIGNED_BYTE,null),h=r(n,o);else if(i.compressed){n=i.width,o=i.height,h=i.generateMipmap;for(var l=0;l{var s=new(i(83419))({initialize:function(t,e,i){this.webGLUniformLocation=null,this.gl=t,this.program=e,this.name=i,this.createResource()},createResource:function(){if(null!==this.program.webGLProgram){var t=this.gl;t.isContextLost()||(this.webGLUniformLocation=t.getUniformLocation(this.program.webGLProgram,this.name))}else this.webGLUniformLocation=null},destroy:function(){this.gl=null,this.program=null,this.name=null,this.webGLUniformLocation=null}});t.exports=s},9503:(t,e,i)=>{var s={WebGLAttribLocationWrapper:i(93567),WebGLBufferWrapper:i(26128),WebGLProgramWrapper:i(1482),WebGLTextureWrapper:i(82751),WebGLFramebufferWrapper:i(84387),WebGLUniformLocationWrapper:i(57183)};t.exports=s},76531:(t,e,i)=>{var s=i(13560),r=i(83419),n=i(50792),o=i(97480),a=i(8443),h=i(57811),l=i(74403),u=i(45818),c=i(29747),d=i(87841),p=i(86555),f=i(56583),g=i(26099),m=i(38058),v=new r({Extends:n,initialize:function(t){n.call(this),this.game=t,this.canvas,this.canvasBounds=new d,this.parent=null,this.parentIsWindow=!1,this.parentSize=new p,this.gameSize=new p,this.baseSize=new p,this.displaySize=new p,this.scaleMode=s.SCALE_MODE.NONE,this.zoom=1,this._resetZoom=!1,this.displayScale=new g(1,1),this.autoRound=!1,this.autoCenter=s.CENTER.NO_CENTER,this.orientation=s.ORIENTATION.LANDSCAPE,this.fullscreen,this.fullscreenTarget=null,this._createdFullscreenTarget=!1,this.dirty=!1,this.resizeInterval=500,this._lastCheck=0,this._checkOrientation=!1,this.domlisteners={orientationChange:c,windowResize:c,fullScreenChange:c,fullScreenError:c}},preBoot:function(){this.parseConfig(this.game.config),this.game.events.once(a.BOOT,this.boot,this)},boot:function(){var t=this.game;this.canvas=t.canvas,this.fullscreen=t.device.fullscreen,this.scaleMode!==s.SCALE_MODE.RESIZE&&this.scaleMode!==s.SCALE_MODE.EXPAND&&this.displaySize.setAspectMode(this.scaleMode),this.scaleMode===s.SCALE_MODE.NONE?this.resize(this.width,this.height):(this.getParentBounds(),this.parentSize.width>0&&this.parentSize.height>0&&this.displaySize.setParent(this.parentSize),this.refresh()),t.events.on(a.PRE_STEP,this.step,this),t.events.once(a.READY,this.refresh,this),t.events.once(a.DESTROY,this.destroy,this),this.startListeners()},parseConfig:function(t){this.getParent(t),this.getParentBounds();var e=t.width,i=t.height,r=t.scaleMode,n=t.zoom,o=t.autoRound;if("string"==typeof e)if("%"!==e.substr(-1))e=parseInt(e,10);else{var a=this.parentSize.width;0===a&&(a=window.innerWidth);var h=parseInt(e,10)/100;e=Math.floor(a*h)}if("string"==typeof i)if("%"!==i.substr(-1))i=parseInt(i,10);else{var l=this.parentSize.height;0===l&&(l=window.innerHeight);var c=parseInt(i,10)/100;i=Math.floor(l*c)}this.scaleMode=r,this.autoRound=o,this.autoCenter=t.autoCenter,this.resizeInterval=t.resizeInterval,o&&(e=Math.floor(e),i=Math.floor(i)),this.gameSize.setSize(e,i),n===s.ZOOM.MAX_ZOOM&&(n=this.getMaxZoom()),this.zoom=n,1!==n&&(this._resetZoom=!0),this.baseSize.setSize(e,i),o&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),t.minWidth>0&&this.displaySize.setMin(t.minWidth*n,t.minHeight*n),t.maxWidth>0&&this.displaySize.setMax(t.maxWidth*n,t.maxHeight*n),this.displaySize.setSize(e,i),(t.snapWidth>0||t.snapHeight>0)&&this.displaySize.setSnap(t.snapWidth,t.snapHeight),this.orientation=u(e,i)},getParent:function(t){var e=t.parent;if(null!==e){if(this.parent=l(e),this.parentIsWindow=this.parent===document.body,t.expandParent&&t.scaleMode!==s.SCALE_MODE.NONE){var i=this.parent.getBoundingClientRect();(this.parentIsWindow||0===i.height)&&(document.documentElement.style.height="100%",document.body.style.height="100%",i=this.parent.getBoundingClientRect(),this.parentIsWindow||0!==i.height||(this.parent.style.overflow="hidden",this.parent.style.width="100%",this.parent.style.height="100%"))}t.fullscreenTarget&&!this.fullscreenTarget&&(this.fullscreenTarget=l(t.fullscreenTarget))}},getParentBounds:function(){if(!this.parent)return!1;var t=this.parentSize,e=this.parent.getBoundingClientRect();this.parentIsWindow&&this.game.device.os.iOS&&(e.height=h(!0));var i=e.width,s=e.height;if(t.width!==i||t.height!==s)return t.setSize(i,s),!0;if(this.canvas){var r=this.canvasBounds,n=this.canvas.getBoundingClientRect();if(n.x!==r.x||n.y!==r.y)return!0}return!1},lockOrientation:function(t){var e=screen.lockOrientation||screen.mozLockOrientation||screen.msLockOrientation;return!!e&&e.call(screen,t)},setParentSize:function(t,e){return this.parentSize.setSize(t,e),this.refresh()},setGameSize:function(t,e){var i=this.autoRound;i&&(t=Math.floor(t),e=Math.floor(e));var s=this.width,r=this.height;return this.gameSize.resize(t,e),this.baseSize.resize(t,e),i&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setAspectRatio(t/e),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height,this.refresh(s,r)},resize:function(t,e){var i=this.zoom,s=this.autoRound;s&&(t=Math.floor(t),e=Math.floor(e));var r=this.width,n=this.height;this.gameSize.resize(t,e),this.baseSize.resize(t,e),s&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(t*i,e*i),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height;var o=this.canvas.style,a=t*i,h=e*i;return s&&(a=Math.floor(a),h=Math.floor(h)),a===t&&h===e||(o.width=a+"px",o.height=h+"px"),this.refresh(r,n)},setZoom:function(t){return this.zoom=t,this._resetZoom=!0,this.refresh()},setMaxZoom:function(){return this.zoom=this.getMaxZoom(),this._resetZoom=!0,this.refresh()},setSnap:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.displaySize.setSnap(t,e),this.refresh()},refresh:function(t,e){void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.updateScale(),this.updateBounds(),this.updateOrientation(),this.displayScale.set(this.baseSize.width/this.canvasBounds.width,this.baseSize.height/this.canvasBounds.height);var i=this.game.domContainer;if(i){this.baseSize.setCSS(i);var s=this.canvas.style,r=i.style;r.transform="scale("+this.displaySize.width/this.baseSize.width+","+this.displaySize.height/this.baseSize.height+")",r.marginLeft=s.marginLeft,r.marginTop=s.marginTop}return this.emit(o.RESIZE,this.gameSize,this.baseSize,this.displaySize,t,e),this},updateOrientation:function(){if(this._checkOrientation){this._checkOrientation=!1;var t=u(this.width,this.height);t!==this.orientation&&(this.orientation=t,this.emit(o.ORIENTATION_CHANGE,t))}},updateScale:function(){var t,e,i=this.canvas.style,r=this.gameSize.width,n=this.gameSize.height,o=this.zoom,a=this.autoRound;if(this.scaleMode===s.SCALE_MODE.NONE)this.displaySize.setSize(r*o,n*o),t=this.displaySize.width,e=this.displaySize.height,a&&(t=Math.floor(t),e=Math.floor(e)),this._resetZoom&&(i.width=t+"px",i.height=e+"px",this._resetZoom=!1);else if(this.scaleMode===s.SCALE_MODE.RESIZE)this.displaySize.setSize(this.parentSize.width,this.parentSize.height),this.gameSize.setSize(this.displaySize.width,this.displaySize.height),this.baseSize.setSize(this.displaySize.width,this.displaySize.height),t=this.displaySize.width,e=this.displaySize.height,a&&(t=Math.floor(t),e=Math.floor(e)),this.canvas.width=t,this.canvas.height=e;else if(this.scaleMode===s.SCALE_MODE.EXPAND){this.displaySize.setSize(this.parentSize.width,this.parentSize.height),t=this.displaySize.width,e=this.displaySize.height,a&&(t=Math.floor(t),e=Math.floor(e)),i.width=t+"px",i.height=e+"px";var h=this.parentSize.width/this.gameSize.width,l=this.parentSize.height/this.gameSize.height;h=0?0:-o.x*a.x,l=o.y>=0?0:-o.y*a.y;return i=n.width>=o.width?r.width:r.width-(o.width-n.width)*a.x,s=n.height>=o.height?r.height:r.height-(o.height-n.height)*a.y,e.setTo(h,l,i,s),t&&(e.width/=t.zoomX,e.height/=t.zoomY,e.centerX=t.centerX+t.scrollX,e.centerY=t.centerY+t.scrollY),e},step:function(t,e){this.parent&&(this._lastCheck+=e,(this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&this.refresh(),this.dirty=!1,this._lastCheck=0))},stopListeners:function(){var t=this.domlisteners;window.removeEventListener("orientationchange",t.orientationChange,!1),window.removeEventListener("resize",t.windowResize,!1),["webkit","moz",""].forEach((function(e){document.removeEventListener(e+"fullscreenchange",t.fullScreenChange,!1),document.removeEventListener(e+"fullscreenerror",t.fullScreenError,!1)})),document.removeEventListener("MSFullscreenChange",t.fullScreenChange,!1),document.removeEventListener("MSFullscreenError",t.fullScreenError,!1)},destroy:function(){this.removeAllListeners(),this.stopListeners(),this.game=null,this.canvas=null,this.canvasBounds=null,this.parent=null,this.fullscreenTarget=null,this.parentSize.destroy(),this.gameSize.destroy(),this.baseSize.destroy(),this.displaySize.destroy()},isFullscreen:{get:function(){return this.fullscreen.active}},width:{get:function(){return this.gameSize.width}},height:{get:function(){return this.gameSize.height}},isPortrait:{get:function(){return this.orientation===s.ORIENTATION.PORTRAIT}},isLandscape:{get:function(){return this.orientation===s.ORIENTATION.LANDSCAPE}},isGamePortrait:{get:function(){return this.height>this.width}},isGameLandscape:{get:function(){return this.width>this.height}}});t.exports=v},64743:t=>{t.exports={NO_CENTER:0,CENTER_BOTH:1,CENTER_HORIZONTALLY:2,CENTER_VERTICALLY:3}},39218:t=>{t.exports={LANDSCAPE:"landscape-primary",PORTRAIT:"portrait-primary"}},81050:t=>{t.exports={NONE:0,WIDTH_CONTROLS_HEIGHT:1,HEIGHT_CONTROLS_WIDTH:2,FIT:3,ENVELOP:4,RESIZE:5,EXPAND:6}},80805:t=>{t.exports={NO_ZOOM:1,ZOOM_2X:2,ZOOM_4X:4,MAX_ZOOM:-1}},13560:(t,e,i)=>{var s={CENTER:i(64743),ORIENTATION:i(39218),SCALE_MODE:i(81050),ZOOM:i(80805)};t.exports=s},56139:t=>{t.exports="enterfullscreen"},2336:t=>{t.exports="fullscreenfailed"},47412:t=>{t.exports="fullscreenunsupported"},51452:t=>{t.exports="leavefullscreen"},20666:t=>{t.exports="orientationchange"},47945:t=>{t.exports="resize"},97480:(t,e,i)=>{t.exports={ENTER_FULLSCREEN:i(56139),FULLSCREEN_FAILED:i(2336),FULLSCREEN_UNSUPPORTED:i(47412),LEAVE_FULLSCREEN:i(51452),ORIENTATION_CHANGE:i(20666),RESIZE:i(47945)}},93364:(t,e,i)=>{var s=i(79291),r=i(13560),n={Center:i(64743),Events:i(97480),Orientation:i(39218),ScaleManager:i(76531),ScaleModes:i(81050),Zoom:i(80805)};n=s(!1,n,r.CENTER),n=s(!1,n,r.ORIENTATION),n=s(!1,n,r.SCALE_MODE),n=s(!1,n,r.ZOOM),t.exports=n},27397:(t,e,i)=>{var s=i(95540),r=i(35355);t.exports=function(t){var e=t.game.config.defaultPhysicsSystem,i=s(t.settings,"physics",!1);if(e||i){var n=[];if(e&&n.push(r(e+"Physics")),i)for(var o in i)o=r(o.concat("Physics")),-1===n.indexOf(o)&&n.push(o);return n}}},52106:(t,e,i)=>{var s=i(95540);t.exports=function(t){var e=t.plugins.getDefaultScenePlugins(),i=s(t.settings,"plugins",!1);return Array.isArray(i)?i:e||[]}},87033:t=>{t.exports={game:"game",renderer:"renderer",anims:"anims",cache:"cache",plugins:"plugins",registry:"registry",scale:"scale",sound:"sound",textures:"textures",events:"events",cameras:"cameras",add:"add",make:"make",scenePlugin:"scene",displayList:"children",lights:"lights",data:"data",input:"input",load:"load",time:"time",tweens:"tweens",arcadePhysics:"physics",impactPhysics:"impact",matterPhysics:"matter"}},97482:(t,e,i)=>{var s=i(83419),r=i(2368),n=new s({initialize:function(t){this.sys=new r(this,t),this.game,this.anims,this.cache,this.registry,this.sound,this.textures,this.events,this.cameras,this.add,this.make,this.scene,this.children,this.lights,this.data,this.input,this.load,this.time,this.tweens,this.physics,this.matter,this.scale,this.plugins,this.renderer},update:function(){}});t.exports=n},60903:(t,e,i)=>{var s=i(83419),r=i(89993),n=i(44594),o=i(8443),a=i(35154),h=i(54899),l=i(29747),u=i(97482),c=i(2368),d=new s({initialize:function(t,e){if(this.game=t,this.keys={},this.scenes=[],this._pending=[],this._start=[],this._queue=[],this._data={},this.isProcessing=!1,this.isBooted=!1,this.customViewports=0,this.systemScene,e){Array.isArray(e)||(e=[e]);for(var i=0;i-1&&(delete this.keys[s],this.scenes.splice(i,1),this._start.indexOf(s)>-1&&(i=this._start.indexOf(s),this._start.splice(i,1)),e.sys.destroy())}return this},bootScene:function(t){var e,i=t.sys,s=i.settings;i.sceneUpdate=l,t.init&&(t.init.call(t,s.data),s.status=r.INIT,s.isTransition&&i.events.emit(n.TRANSITION_INIT,s.transitionFrom,s.transitionDuration)),i.load&&(e=i.load).reset(),e&&t.preload?(t.preload.call(t),s.status=r.LOADING,e.once(h.COMPLETE,this.loadComplete,this),e.start()):this.create(t)},loadComplete:function(t){this.game.sound&&this.game.sound.onBlurPausedSounds&&this.game.sound.unlock(),this.create(t.scene)},payloadComplete:function(t){this.bootScene(t.scene)},update:function(t,e){this.processQueue(),this.isProcessing=!0;for(var i=this.scenes.length-1;i>=0;i--){var s=this.scenes[i].sys;s.settings.status>r.START&&s.settings.status<=r.RUNNING&&s.step(t,e),s.scenePlugin&&s.scenePlugin._target&&s.scenePlugin.step(t,e)}},render:function(t){for(var e=0;e=r.LOADING&&i.settings.status=r.START&&o<=r.CREATING)return this;if(o>=r.RUNNING&&o<=r.SLEEPING)n.shutdown(),n.sceneUpdate=l,n.start(e);else if(n.sceneUpdate=l,n.start(e),n.load&&(s=n.load),s&&n.settings.hasOwnProperty("pack")&&(s.reset(),s.addPack({payload:n.settings.pack})))return n.settings.status=r.LOADING,s.once(h.COMPLETE,this.payloadComplete,this),s.start(),this;return this.bootScene(i),this},stop:function(t,e){var i=this.getScene(t);if(i&&!i.sys.isTransitioning()&&i.sys.settings.status!==r.SHUTDOWN){var s=i.sys.load;s&&(s.off(h.COMPLETE,this.loadComplete,this),s.off(h.COMPLETE,this.payloadComplete,this)),i.sys.shutdown(e)}return this},switch:function(t,e){var i=this.getScene(t),s=this.getScene(e);return i&&s&&i!==s&&(this.sleep(t),this.isSleeping(e)?this.wake(e):this.start(e)),this},getAt:function(t){return this.scenes[t]},getIndex:function(t){var e=this.getScene(t);return this.scenes.indexOf(e)},bringToTop:function(t){if(this.isProcessing)this._queue.push({op:"bringToTop",keyA:t,keyB:null});else{var e=this.getIndex(t);if(-1!==e&&e0){var i=this.getScene(t);this.scenes.splice(e,1),this.scenes.unshift(i)}}return this},moveDown:function(t){if(this.isProcessing)this._queue.push({op:"moveDown",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e>0){var i=e-1,s=this.getScene(t),r=this.getAt(i);this.scenes[e]=r,this.scenes[i]=s}}return this},moveUp:function(t){if(this.isProcessing)this._queue.push({op:"moveUp",keyA:t,keyB:null});else{var e=this.getIndex(t);if(ei),0,r)}}return this},moveBelow:function(t,e){if(t===e)return this;if(this.isProcessing)this._queue.push({op:"moveBelow",keyA:t,keyB:e});else{var i=this.getIndex(t),s=this.getIndex(e);if(-1!==i&&-1!==s&&s>i){var r=this.getAt(s);this.scenes.splice(s,1),0===i?this.scenes.unshift(r):this.scenes.splice(i-(s{var s=i(45319),r=i(83419),n=i(44594),o=i(95540),a=i(37277),h=new r({initialize:function(t){this.scene=t,this.systems=t.sys,this.settings=t.sys.settings,this.key=t.sys.settings.key,this.manager=t.sys.game.scene,this.transitionProgress=0,this._elapsed=0,this._target=null,this._duration=0,this._onUpdate,this._onUpdateScope,this._willSleep=!1,this._willRemove=!1,t.sys.events.once(n.BOOT,this.boot,this),t.sys.events.on(n.START,this.pluginStart,this)},boot:function(){this.systems.events.once(n.DESTROY,this.destroy,this)},pluginStart:function(){this._target=null,this.systems.events.once(n.SHUTDOWN,this.shutdown,this)},start:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",this.key),this.manager.queueOp("start",t,e),this},restart:function(t){var e=this.key;return this.manager.queueOp("stop",e),this.manager.queueOp("start",e,t),this},transition:function(t){void 0===t&&(t={});var e=o(t,"target",!1),i=this.manager.getScene(e);if(!e||!this.checkValidTransition(i))return!1;var s=o(t,"duration",1e3);this._elapsed=0,this._target=i,this._duration=s,this._willSleep=o(t,"sleep",!1),this._willRemove=o(t,"remove",!1);var r=o(t,"onUpdate",null);r&&(this._onUpdate=r,this._onUpdateScope=o(t,"onUpdateScope",this.scene));var a=o(t,"allowInput",!1);this.settings.transitionAllowInput=a;var h=i.sys.settings;h.isTransition=!0,h.transitionFrom=this.scene,h.transitionDuration=s,h.transitionAllowInput=a,o(t,"moveAbove",!1)?this.manager.moveAbove(this.key,e):o(t,"moveBelow",!1)&&this.manager.moveBelow(this.key,e),i.sys.isSleeping()?i.sys.wake(o(t,"data")):this.manager.start(e,o(t,"data"));var l=o(t,"onStart",null),u=o(t,"onStartScope",this.scene);return l&&l.call(u,this.scene,i,s),this.systems.events.emit(n.TRANSITION_OUT,i,s),!0},checkValidTransition:function(t){return!(!t||t.sys.isActive()||t.sys.isTransitioning()||t===this.scene||this.systems.isTransitioning())},step:function(t,e){this._elapsed+=e,this.transitionProgress=s(this._elapsed/this._duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.transitionProgress),this._elapsed>=this._duration&&this.transitionComplete()},transitionComplete:function(){var t=this._target.sys,e=this._target.sys.settings;t.events.emit(n.TRANSITION_COMPLETE,this.scene),e.isTransition=!1,e.transitionFrom=null,this._duration=0,this._target=null,this._onUpdate=null,this._onUpdateScope=null,this._willRemove?this.manager.remove(this.key):this._willSleep?this.systems.sleep():this.manager.stop(this.key)},add:function(t,e,i,s){return this.manager.add(t,e,i,s)},launch:function(t,e){return t&&t!==this.key&&this.manager.queueOp("start",t,e),this},run:function(t,e){return t&&t!==this.key&&this.manager.queueOp("run",t,e),this},pause:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("pause",t,e),this},resume:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("resume",t,e),this},sleep:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("sleep",t,e),this},wake:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("wake",t,e),this},switch:function(t){return t!==this.key&&this.manager.queueOp("switch",this.key,t),this},stop:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",t,e),this},setActive:function(t,e,i){void 0===e&&(e=this.key);var s=this.manager.getScene(e);return s&&s.sys.setActive(t,i),this},setVisible:function(t,e){void 0===e&&(e=this.key);var i=this.manager.getScene(e);return i&&i.sys.setVisible(t),this},isSleeping:function(t){return void 0===t&&(t=this.key),this.manager.isSleeping(t)},isActive:function(t){return void 0===t&&(t=this.key),this.manager.isActive(t)},isPaused:function(t){return void 0===t&&(t=this.key),this.manager.isPaused(t)},isVisible:function(t){return void 0===t&&(t=this.key),this.manager.isVisible(t)},swapPosition:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.swapPosition(t,e),this},moveAbove:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveAbove(t,e),this},moveBelow:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveBelow(t,e),this},remove:function(t){return void 0===t&&(t=this.key),this.manager.remove(t),this},moveUp:function(t){return void 0===t&&(t=this.key),this.manager.moveUp(t),this},moveDown:function(t){return void 0===t&&(t=this.key),this.manager.moveDown(t),this},bringToTop:function(t){return void 0===t&&(t=this.key),this.manager.bringToTop(t),this},sendToBack:function(t){return void 0===t&&(t=this.key),this.manager.sendToBack(t),this},get:function(t){return this.manager.getScene(t)},getStatus:function(t){var e=this.manager.getScene(t);if(e)return e.sys.getStatus()},getIndex:function(t){return void 0===t&&(t=this.key),this.manager.getIndex(t)},shutdown:function(){var t=this.systems.events;t.off(n.SHUTDOWN,this.shutdown,this),t.off(n.TRANSITION_OUT)},destroy:function(){this.shutdown(),this.scene.sys.events.off(n.START,this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});a.register("ScenePlugin",h,"scenePlugin"),t.exports=h},55681:(t,e,i)=>{var s=i(89993),r=i(35154),n=i(46975),o=i(87033),a={create:function(t){return"string"==typeof t?t={key:t}:void 0===t&&(t={}),{status:s.PENDING,key:r(t,"key",""),active:r(t,"active",!1),visible:r(t,"visible",!0),isBooted:!1,isTransition:!1,transitionFrom:null,transitionDuration:0,transitionAllowInput:!0,data:{},pack:r(t,"pack",!1),cameras:r(t,"cameras",null),map:r(t,"map",n(o,r(t,"mapAdd",{}))),physics:r(t,"physics",{}),loader:r(t,"loader",{}),plugins:r(t,"plugins",!1),input:r(t,"input",{})}}};t.exports=a},2368:(t,e,i)=>{var s=i(83419),r=i(89993),n=i(42363),o=i(44594),a=i(27397),h=i(52106),l=i(29747),u=i(55681),c=new s({initialize:function(t,e){this.scene=t,this.game,this.renderer,this.config=e,this.settings=u.create(e),this.canvas,this.context,this.anims,this.cache,this.plugins,this.registry,this.scale,this.sound,this.textures,this.add,this.cameras,this.displayList,this.events,this.make,this.scenePlugin,this.updateList,this.sceneUpdate=l},init:function(t){this.settings.status=r.INIT,this.sceneUpdate=l,this.game=t,this.renderer=t.renderer,this.canvas=t.canvas,this.context=t.context;var e=t.plugins;this.plugins=e,e.addToScene(this,n.Global,[n.CoreScene,h(this),a(this)]),this.events.emit(o.BOOT,this),this.settings.isBooted=!0},step:function(t,e){var i=this.events;i.emit(o.PRE_UPDATE,t,e),i.emit(o.UPDATE,t,e),this.sceneUpdate.call(this.scene,t,e),i.emit(o.POST_UPDATE,t,e)},render:function(t){var e=this.displayList;e.depthSort(),this.events.emit(o.PRE_RENDER,t),this.cameras.render(t,e),this.events.emit(o.RENDER,t)},queueDepthSort:function(){this.displayList.queueDepthSort()},depthSort:function(){this.displayList.depthSort()},pause:function(t){var e=this.settings,i=this.getStatus();return i!==r.CREATING&&i!==r.RUNNING?console.warn("Cannot pause non-running Scene",e.key):this.settings.active&&(e.status=r.PAUSED,e.active=!1,this.events.emit(o.PAUSE,this,t)),this},resume:function(t){var e=this.events,i=this.settings;return this.settings.active||(i.status=r.RUNNING,i.active=!0,e.emit(o.RESUME,this,t)),this},sleep:function(t){var e=this.settings,i=this.getStatus();return i!==r.CREATING&&i!==r.RUNNING?console.warn("Cannot sleep non-running Scene",e.key):(e.status=r.SLEEPING,e.active=!1,e.visible=!1,this.events.emit(o.SLEEP,this,t)),this},wake:function(t){var e=this.events,i=this.settings;return i.status=r.RUNNING,i.active=!0,i.visible=!0,e.emit(o.WAKE,this,t),i.isTransition&&e.emit(o.TRANSITION_WAKE,i.transitionFrom,i.transitionDuration),this},getData:function(){return this.settings.data},getStatus:function(){return this.settings.status},canInput:function(){var t=this.settings.status;return t>r.PENDING&&t<=r.RUNNING},isSleeping:function(){return this.settings.status===r.SLEEPING},isActive:function(){return this.settings.status===r.RUNNING},isPaused:function(){return this.settings.status===r.PAUSED},isTransitioning:function(){return this.settings.isTransition||null!==this.scenePlugin._target},isTransitionOut:function(){return null!==this.scenePlugin._target&&this.scenePlugin._duration>0},isTransitionIn:function(){return this.settings.isTransition},isVisible:function(){return this.settings.visible},setVisible:function(t){return this.settings.visible=t,this},setActive:function(t,e){return t?this.resume(e):this.pause(e)},start:function(t){var e=this.events,i=this.settings;t&&(i.data=t),i.status=r.START,i.active=!0,i.visible=!0,e.emit(o.START,this),e.emit(o.READY,this,t)},shutdown:function(t){var e=this.events,i=this.settings;e.off(o.TRANSITION_INIT),e.off(o.TRANSITION_START),e.off(o.TRANSITION_COMPLETE),e.off(o.TRANSITION_OUT),i.status=r.SHUTDOWN,i.active=!1,i.visible=!1,e.emit(o.SHUTDOWN,this,t)},destroy:function(){var t=this.events,e=this.settings;e.status=r.DESTROYED,e.active=!1,e.visible=!1,t.emit(o.DESTROY,this),t.removeAllListeners();for(var i=["scene","game","anims","cache","plugins","registry","sound","textures","add","camera","displayList","events","make","scenePlugin","updateList"],s=0;s{t.exports={PENDING:0,INIT:1,START:2,LOADING:3,CREATING:4,RUNNING:5,PAUSED:6,SLEEPING:7,SHUTDOWN:8,DESTROYED:9}},69830:t=>{t.exports="addedtoscene"},7919:t=>{t.exports="boot"},46763:t=>{t.exports="create"},11763:t=>{t.exports="destroy"},71555:t=>{t.exports="pause"},36735:t=>{t.exports="postupdate"},3809:t=>{t.exports="prerender"},90716:t=>{t.exports="preupdate"},58262:t=>{t.exports="ready"},91633:t=>{t.exports="removedfromscene"},10319:t=>{t.exports="render"},87132:t=>{t.exports="resume"},81961:t=>{t.exports="shutdown"},90194:t=>{t.exports="sleep"},6265:t=>{t.exports="start"},33178:t=>{t.exports="transitioncomplete"},43063:t=>{t.exports="transitioninit"},11259:t=>{t.exports="transitionout"},61611:t=>{t.exports="transitionstart"},45209:t=>{t.exports="transitionwake"},22966:t=>{t.exports="update"},21747:t=>{t.exports="wake"},44594:(t,e,i)=>{t.exports={ADDED_TO_SCENE:i(69830),BOOT:i(7919),CREATE:i(46763),DESTROY:i(11763),PAUSE:i(71555),POST_UPDATE:i(36735),PRE_RENDER:i(3809),PRE_UPDATE:i(90716),READY:i(58262),REMOVED_FROM_SCENE:i(91633),RENDER:i(10319),RESUME:i(87132),SHUTDOWN:i(81961),SLEEP:i(90194),START:i(6265),TRANSITION_COMPLETE:i(33178),TRANSITION_INIT:i(43063),TRANSITION_OUT:i(11259),TRANSITION_START:i(61611),TRANSITION_WAKE:i(45209),UPDATE:i(22966),WAKE:i(21747)}},62194:(t,e,i)=>{var s=i(89993),r=i(79291),n={Events:i(44594),GetPhysicsPlugins:i(27397),GetScenePlugins:i(52106),SceneManager:i(60903),ScenePlugin:i(52209),Settings:i(55681),Systems:i(2368)};n=r(!1,n,s),t.exports=n},30341:(t,e,i)=>{var s=i(83419),r=i(50792),n=i(14463),o=i(79291),a=i(29747),h=new s({Extends:r,initialize:function(t,e,i){r.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=this.duration||0,this.totalDuration=this.totalDuration||0,this.config={mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0},this.currentConfig=this.config,this.config=o(this.config,i),this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name||(this.markers[t.name]?(console.error("addMarker "+t.name+" already exists in Sound"),1):(t=o(!0,{name:"",start:0,duration:this.totalDuration-(t.start||0),config:{mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0}},t),this.markers[t.name]=t,0)))},updateMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name||(this.markers[t.name]?(this.markers[t.name]=o(!0,this.markers[t.name],t),0):(console.warn("Audio Marker: "+t.name+" missing in Sound: "+this.key),1)))},removeMarker:function(t){var e=this.markers[t];return e?(this.markers[t]=null,e):null},play:function(t,e){if(void 0===t&&(t=""),"object"==typeof t&&(e=t,t=""),"string"!=typeof t)return!1;if(t){if(!this.markers[t])return console.warn("Marker: "+t+" missing in Sound: "+this.key),!1;this.currentMarker=this.markers[t],this.currentConfig=this.currentMarker.config,this.duration=this.currentMarker.duration}else this.currentMarker=null,this.currentConfig=this.config,this.duration=this.totalDuration;return this.resetConfig(),this.currentConfig=o(this.currentConfig,e),this.isPlaying=!0,this.isPaused=!1,!0},pause:function(){return!(this.isPaused||!this.isPlaying||(this.isPlaying=!1,this.isPaused=!0,0))},resume:function(){return!(!this.isPaused||this.isPlaying||(this.isPlaying=!0,this.isPaused=!1,0))},stop:function(){return!(!this.isPaused&&!this.isPlaying||(this.isPlaying=!1,this.isPaused=!1,this.resetConfig(),0))},applyConfig:function(){this.mute=this.currentConfig.mute,this.volume=this.currentConfig.volume,this.rate=this.currentConfig.rate,this.detune=this.currentConfig.detune,this.loop=this.currentConfig.loop,this.pan=this.currentConfig.pan},resetConfig:function(){this.currentConfig.seek=0,this.currentConfig.delay=0},update:a,calculateRate:function(){var t=this.currentConfig.detune+this.manager.detune,e=Math.pow(1.0005777895065548,t);this.totalRate=this.currentConfig.rate*this.manager.rate*e},destroy:function(){this.pendingRemove||(this.stop(),this.emit(n.DESTROY,this),this.removeAllListeners(),this.pendingRemove=!0,this.manager=null,this.config=null,this.currentConfig=null,this.markers=null,this.currentMarker=null)}});t.exports=h},85034:(t,e,i)=>{var s=i(83419),r=i(41786),n=i(50792),o=i(14463),a=i(8443),h=i(46710),l=i(58731),u=i(29747),c=i(26099),d=new s({Extends:n,initialize:function(t){n.call(this),this.game=t,this.jsonCache=t.cache.json,this.sounds=[],this.mute=!1,this.volume=1,this.pauseOnBlur=!0,this._rate=1,this._detune=0,this.locked=this.locked||!1,this.unlocked=!1,this.gameLostFocus=!1,this.listenerPosition=new c,t.events.on(a.BLUR,this.onGameBlur,this),t.events.on(a.FOCUS,this.onGameFocus,this),t.events.on(a.PRE_STEP,this.update,this),t.events.once(a.DESTROY,this.destroy,this)},add:u,addAudioSprite:function(t,e){void 0===e&&(e={});var i=this.add(t,e);for(var s in i.spritemap=this.jsonCache.get(t).spritemap,i.spritemap)if(i.spritemap.hasOwnProperty(s)){var n=r(e),o=i.spritemap[s];n.loop=!!o.hasOwnProperty("loop")&&o.loop,i.addMarker({name:s,start:o.start,duration:o.end-o.start,config:n})}return i},get:function(t){return l(this.sounds,"key",t)},getAll:function(t){return t?h(this.sounds,"key",t):h(this.sounds)},getAllPlaying:function(){return h(this.sounds,"isPlaying",!0)},play:function(t,e){var i=this.add(t);return i.once(o.COMPLETE,i.destroy,i),e?e.name?(i.addMarker(e),i.play(e.name)):i.play(e):i.play()},playAudioSprite:function(t,e,i){var s=this.addAudioSprite(t);return s.once(o.COMPLETE,s.destroy,s),s.play(e,i)},remove:function(t){var e=this.sounds.indexOf(t);return-1!==e&&(t.destroy(),this.sounds.splice(e,1),!0)},removeAll:function(){this.sounds.forEach((function(t){t.destroy()})),this.sounds.length=0},removeByKey:function(t){for(var e=0,i=this.sounds.length-1;i>=0;i--){var s=this.sounds[i];s.key===t&&(s.destroy(),this.sounds.splice(i,1),e++)}return e},pauseAll:function(){this.forEachActiveSound((function(t){t.pause()})),this.emit(o.PAUSE_ALL,this)},resumeAll:function(){this.forEachActiveSound((function(t){t.resume()})),this.emit(o.RESUME_ALL,this)},setListenerPosition:u,stopAll:function(){this.forEachActiveSound((function(t){t.stop()})),this.emit(o.STOP_ALL,this)},stopByKey:function(t){var e=0;return this.getAll(t).forEach((function(t){t.stop()&&e++})),e},unlock:u,onBlur:u,onFocus:u,onGameBlur:function(){this.gameLostFocus=!0,this.pauseOnBlur&&this.onBlur()},onGameFocus:function(){this.gameLostFocus=!1,this.pauseOnBlur&&this.onFocus()},update:function(t,e){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit(o.UNLOCKED,this));for(var i=this.sounds.length-1;i>=0;i--)this.sounds[i].pendingRemove&&this.sounds.splice(i,1);this.sounds.forEach((function(i){i.update(t,e)}))},destroy:function(){this.game.events.off(a.BLUR,this.onGameBlur,this),this.game.events.off(a.FOCUS,this.onGameFocus,this),this.game.events.off(a.PRE_STEP,this.update,this),this.removeAllListeners(),this.removeAll(),this.sounds.length=0,this.sounds=null,this.listenerPosition=null,this.game=null},forEachActiveSound:function(t,e){var i=this;this.sounds.forEach((function(s,r){s&&!s.pendingRemove&&t.call(e||i,s,r,i.sounds)}))},setRate:function(t){return this.rate=t,this},rate:{get:function(){return this._rate},set:function(t){this._rate=t,this.forEachActiveSound((function(t){t.calculateRate()})),this.emit(o.GLOBAL_RATE,this,t)}},setDetune:function(t){return this.detune=t,this},detune:{get:function(){return this._detune},set:function(t){this._detune=t,this.forEachActiveSound((function(t){t.calculateRate()})),this.emit(o.GLOBAL_DETUNE,this,t)}}});t.exports=d},14747:(t,e,i)=>{var s=i(33684),r=i(25960),n=i(57490),o={create:function(t){var e=t.config.audio,i=t.device.audio;return e.noAudio||!i.webAudio&&!i.audioData?new r(t):i.webAudio&&!e.disableWebAudio?new n(t):new s(t)}};t.exports=o},19723:t=>{t.exports="complete"},98882:t=>{t.exports="decodedall"},57506:t=>{t.exports="decoded"},73146:t=>{t.exports="destroy"},11305:t=>{t.exports="detune"},40577:t=>{t.exports="detune"},30333:t=>{t.exports="mute"},20394:t=>{t.exports="rate"},21802:t=>{t.exports="volume"},1299:t=>{t.exports="looped"},99190:t=>{t.exports="loop"},97125:t=>{t.exports="mute"},89259:t=>{t.exports="pan"},79986:t=>{t.exports="pauseall"},17586:t=>{t.exports="pause"},19618:t=>{t.exports="play"},42306:t=>{t.exports="rate"},10387:t=>{t.exports="resumeall"},48959:t=>{t.exports="resume"},9960:t=>{t.exports="seek"},19180:t=>{t.exports="stopall"},98328:t=>{t.exports="stop"},50401:t=>{t.exports="unlocked"},52498:t=>{t.exports="volume"},14463:(t,e,i)=>{t.exports={COMPLETE:i(19723),DECODED:i(57506),DECODED_ALL:i(98882),DESTROY:i(73146),DETUNE:i(11305),GLOBAL_DETUNE:i(40577),GLOBAL_MUTE:i(30333),GLOBAL_RATE:i(20394),GLOBAL_VOLUME:i(21802),LOOP:i(99190),LOOPED:i(1299),MUTE:i(97125),PAN:i(89259),PAUSE_ALL:i(79986),PAUSE:i(17586),PLAY:i(19618),RATE:i(42306),RESUME_ALL:i(10387),RESUME:i(48959),SEEK:i(9960),STOP_ALL:i(19180),STOP:i(98328),UNLOCKED:i(50401),VOLUME:i(52498)}},64895:(t,e,i)=>{var s=i(30341),r=i(83419),n=i(14463),o=i(45319),a=new r({Extends:s,initialize:function(t,e,i){if(void 0===i&&(i={}),this.tags=t.game.cache.audio.get(e),!this.tags)throw new Error('No cached audio asset with key "'+e);this.audio=null,this.startTime=0,this.previousTime=0,this.duration=this.tags[0].duration,this.totalDuration=this.tags[0].duration,s.call(this,t,e,i)},play:function(t,e){return!(this.manager.isLocked(this,"play",[t,e])||!s.prototype.play.call(this,t,e)||!this.pickAndPlayAudioTag()||(this.emit(n.PLAY,this),0))},pause:function(){return!(this.manager.isLocked(this,"pause")||this.startTime>0||!s.prototype.pause.call(this)||(this.currentConfig.seek=this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0),this.stopAndReleaseAudioTag(),this.emit(n.PAUSE,this),0))},resume:function(){return!(this.manager.isLocked(this,"resume")||this.startTime>0||!s.prototype.resume.call(this)||!this.pickAndPlayAudioTag()||(this.emit(n.RESUME,this),0))},stop:function(){return!this.manager.isLocked(this,"stop")&&!!s.prototype.stop.call(this)&&(this.stopAndReleaseAudioTag(),this.emit(n.STOP,this),!0)},pickAndPlayAudioTag:function(){if(!this.pickAudioTag())return this.reset(),!1;var t=this.currentConfig.seek,e=this.currentConfig.delay,i=(this.currentMarker?this.currentMarker.start:0)+t;return this.previousTime=i,this.audio.currentTime=i,this.applyConfig(),0===e?(this.startTime=0,this.audio.paused&&this.playCatchPromise()):(this.startTime=window.performance.now()+1e3*e,this.audio.paused||this.audio.pause()),this.resetConfig(),!0},pickAudioTag:function(){if(this.audio)return!0;for(var t=0;t0)this.startTime=i-this.manager.loopEndOffset?(this.audio.currentTime=e+Math.max(0,s-i),s=this.audio.currentTime):s=i)return this.reset(),this.stopAndReleaseAudioTag(),void this.emit(n.COMPLETE,this);this.previousTime=s}},destroy:function(){s.prototype.destroy.call(this),this.tags=null,this.audio&&this.stopAndReleaseAudioTag()},updateMute:function(){this.audio&&(this.audio.muted=this.currentConfig.mute||this.manager.mute)},updateVolume:function(){this.audio&&(this.audio.volume=o(this.currentConfig.volume*this.manager.volume,0,1))},calculateRate:function(){s.prototype.calculateRate.call(this),this.audio&&(this.audio.playbackRate=this.totalRate)},mute:{get:function(){return this.currentConfig.mute},set:function(t){this.currentConfig.mute=t,this.manager.isLocked(this,"mute",t)||(this.updateMute(),this.emit(n.MUTE,this,t))}},setMute:function(t){return this.mute=t,this},volume:{get:function(){return this.currentConfig.volume},set:function(t){this.currentConfig.volume=t,this.manager.isLocked(this,"volume",t)||(this.updateVolume(),this.emit(n.VOLUME,this,t))}},setVolume:function(t){return this.volume=t,this},rate:{get:function(){return this.currentConfig.rate},set:function(t){this.currentConfig.rate=t,this.manager.isLocked(this,n.RATE,t)||(this.calculateRate(),this.emit(n.RATE,this,t))}},setRate:function(t){return this.rate=t,this},detune:{get:function(){return this.currentConfig.detune},set:function(t){this.currentConfig.detune=t,this.manager.isLocked(this,n.DETUNE,t)||(this.calculateRate(),this.emit(n.DETUNE,this,t))}},setDetune:function(t){return this.detune=t,this},seek:{get:function(){return this.isPlaying?this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0):this.isPaused?this.currentConfig.seek:0},set:function(t){this.manager.isLocked(this,"seek",t)||this.startTime>0||(this.isPlaying||this.isPaused)&&(t=Math.min(Math.max(0,t),this.duration),this.isPlaying?(this.previousTime=t,this.audio.currentTime=t):this.isPaused&&(this.currentConfig.seek=t),this.emit(n.SEEK,this,t))}},setSeek:function(t){return this.seek=t,this},loop:{get:function(){return this.currentConfig.loop},set:function(t){this.currentConfig.loop=t,this.manager.isLocked(this,"loop",t)||(this.audio&&(this.audio.loop=t),this.emit(n.LOOP,this,t))}},setLoop:function(t){return this.loop=t,this},pan:{get:function(){return this.currentConfig.pan},set:function(t){this.currentConfig.pan=t,this.emit(n.PAN,this,t)}},setPan:function(t){return this.pan=t,this}});t.exports=a},33684:(t,e,i)=>{var s=i(85034),r=i(83419),n=i(14463),o=i(64895),a=new r({Extends:s,initialize:function(t){this.override=!0,this.audioPlayDelay=.1,this.loopEndOffset=.05,this.onBlurPausedSounds=[],this.locked="ontouchstart"in window,this.lockedActionsQueue=this.locked?[]:null,this._mute=!1,this._volume=1,s.call(this,t)},add:function(t,e){var i=new o(this,t,e);return this.sounds.push(i),i},unlock:function(){this.locked=!1;var t=this;if(this.game.cache.audio.entries.each((function(e,i){for(var s=0;s{t.exports={SoundManagerCreator:i(14747),Events:i(14463),BaseSound:i(30341),BaseSoundManager:i(85034),WebAudioSound:i(71741),WebAudioSoundManager:i(57490),HTML5AudioSound:i(64895),HTML5AudioSoundManager:i(33684),NoAudioSound:i(4603),NoAudioSoundManager:i(25960)}},4603:(t,e,i)=>{var s=i(30341),r=i(83419),n=i(50792),o=i(79291),a=i(29747),h=function(){return!1},l=function(){return null},u=function(){return this},c=new r({Extends:n,initialize:function(t,e,i){void 0===i&&(i={}),n.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=0,this.totalDuration=0,this.config=o({mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0},i),this.currentConfig=this.config,this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.seek=0,this.loop=!1,this.pan=0,this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:h,updateMarker:h,removeMarker:l,play:h,pause:h,resume:h,stop:h,setMute:u,setVolume:u,setRate:u,setDetune:u,setSeek:u,setLoop:u,setPan:u,applyConfig:l,resetConfig:l,update:a,calculateRate:l,destroy:function(){s.prototype.destroy.call(this)}});t.exports=c},25960:(t,e,i)=>{var s=i(85034),r=i(83419),n=i(50792),o=i(4603),a=i(29747),h=new r({Extends:n,initialize:function(t){n.call(this),this.game=t,this.sounds=[],this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.pauseOnBlur=!0,this.locked=!1},add:function(t,e){var i=new o(this,t,e);return this.sounds.push(i),i},addAudioSprite:function(t,e){var i=this.add(t,e);return i.spritemap={},i},get:function(t){return s.prototype.get.call(this,t)},getAll:function(t){return s.prototype.getAll.call(this,t)},play:function(t,e){return!1},playAudioSprite:function(t,e,i){return!1},remove:function(t){return s.prototype.remove.call(this,t)},removeAll:function(){return s.prototype.removeAll.call(this)},removeByKey:function(t){return s.prototype.removeByKey.call(this,t)},stopByKey:function(t){return s.prototype.stopByKey.call(this,t)},onBlur:a,onFocus:a,onGameBlur:a,onGameFocus:a,pauseAll:a,resumeAll:a,stopAll:a,update:a,setRate:a,setDetune:a,setMute:a,setVolume:a,unlock:a,forEachActiveSound:function(t,e){s.prototype.forEachActiveSound.call(this,t,e)},destroy:function(){s.prototype.destroy.call(this)}});t.exports=h},71741:(t,e,i)=>{var s=i(30341),r=i(83419),n=i(14463),o=i(95540),a=new r({Extends:s,initialize:function(t,e,i){if(void 0===i&&(i={}),this.audioBuffer=t.game.cache.audio.get(e),!this.audioBuffer)throw new Error('Audio key "'+e+'" missing from cache');this.source=null,this.loopSource=null,this.muteNode=t.context.createGain(),this.volumeNode=t.context.createGain(),this.pannerNode=null,this.spatialNode=null,this.spatialSource=null,this.playTime=0,this.startTime=0,this.loopTime=0,this.rateUpdates=[],this.hasEnded=!1,this.hasLooped=!1,this.muteNode.connect(this.volumeNode),t.context.createPanner&&(this.spatialNode=t.context.createPanner(),this.volumeNode.connect(this.spatialNode)),t.context.createStereoPanner?(this.pannerNode=t.context.createStereoPanner(),t.context.createPanner?this.spatialNode.connect(this.pannerNode):this.volumeNode.connect(this.pannerNode),this.pannerNode.connect(t.destination)):t.context.createPanner?this.spatialNode.connect(t.destination):this.volumeNode.connect(t.destination),this.duration=this.audioBuffer.duration,this.totalDuration=this.audioBuffer.duration,s.call(this,t,e,i)},play:function(t,e){return!!s.prototype.play.call(this,t,e)&&(this.stopAndRemoveBufferSource(),this.createAndStartBufferSource(),this.emit(n.PLAY,this),!0)},pause:function(){return!(this.manager.context.currentTime{var s=i(53134),r=i(85034),n=i(83419),o=i(14463),a=i(8443),h=i(71741),l=i(95540),u=new n({Extends:r,initialize:function(t){this.context=this.createAudioContext(t),this.masterMuteNode=this.context.createGain(),this.masterVolumeNode=this.context.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(this.context.destination),this.destination=this.masterMuteNode,this.locked="suspended"===this.context.state&&("ontouchstart"in window||"onclick"in window),r.call(this,t),this.locked&&t.isBooted?this.unlock():t.events.once(a.BOOT,this.unlock,this)},createAudioContext:function(t){var e=t.config.audio;return e.context?(e.context.resume(),e.context):window.hasOwnProperty("AudioContext")?new AudioContext:window.hasOwnProperty("webkitAudioContext")?new window.webkitAudioContext:void 0},setAudioContext:function(t){return this.context&&this.context.close(),this.masterMuteNode&&this.masterMuteNode.disconnect(),this.masterVolumeNode&&this.masterVolumeNode.disconnect(),this.context=t,this.masterMuteNode=t.createGain(),this.masterVolumeNode=t.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(t.destination),this.destination=this.masterMuteNode,this},add:function(t,e){var i=new h(this,t,e);return this.sounds.push(i),i},decodeAudio:function(t,e){var i;i=Array.isArray(t)?t:[{key:t,data:e}];for(var r=this.game.cache.audio,n=i.length,a=0;a{var s=i(37105),r=i(83419),n=i(29747),o=i(19186),a=new r({initialize:function(t){this.parent=t,this.list=[],this.position=0,this.addCallback=n,this.removeCallback=n,this._sortKey=""},add:function(t,e){return e?s.Add(this.list,t):s.Add(this.list,t,0,this.addCallback,this)},addAt:function(t,e,i){return i?s.AddAt(this.list,t,e):s.AddAt(this.list,t,e,0,this.addCallback,this)},getAt:function(t){return this.list[t]},getIndex:function(t){return this.list.indexOf(t)},sort:function(t,e){return t?(void 0===e&&(e=function(e,i){return e[t]-i[t]}),o(this.list,e),this):this},getByName:function(t){return s.GetFirst(this.list,"name",t)},getRandom:function(t,e){return s.GetRandom(this.list,t,e)},getFirst:function(t,e,i,r){return s.GetFirst(this.list,t,e,i,r)},getAll:function(t,e,i,r){return s.GetAll(this.list,t,e,i,r)},count:function(t,e){return s.CountAllMatching(this.list,t,e)},swap:function(t,e){s.Swap(this.list,t,e)},moveTo:function(t,e){return s.MoveTo(this.list,t,e)},moveAbove:function(t,e){return s.MoveAbove(this.list,t,e)},moveBelow:function(t,e){return s.MoveBelow(this.list,t,e)},remove:function(t,e){return e?s.Remove(this.list,t):s.Remove(this.list,t,this.removeCallback,this)},removeAt:function(t,e){return e?s.RemoveAt(this.list,t):s.RemoveAt(this.list,t,this.removeCallback,this)},removeBetween:function(t,e,i){return i?s.RemoveBetween(this.list,t,e):s.RemoveBetween(this.list,t,e,this.removeCallback,this)},removeAll:function(t){for(var e=this.list.length;e--;)this.remove(this.list[e],t);return this},bringToTop:function(t){return s.BringToTop(this.list,t)},sendToBack:function(t){return s.SendToBack(this.list,t)},moveUp:function(t){return s.MoveUp(this.list,t),t},moveDown:function(t){return s.MoveDown(this.list,t),t},reverse:function(){return this.list.reverse(),this},shuffle:function(){return s.Shuffle(this.list),this},replace:function(t,e){return s.Replace(this.list,t,e)},exists:function(t){return this.list.indexOf(t)>-1},setAll:function(t,e,i,r){return s.SetAll(this.list,t,e,i,r),this},each:function(t,e){for(var i=[null],s=2;s0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}}});t.exports=a},90330:(t,e,i)=>{var s=new(i(83419))({initialize:function(t){this.entries={},this.size=0,this.setAll(t)},setAll:function(t){if(Array.isArray(t))for(var e=0;e{var s=i(83419),r=i(50792),n=i(82348),o=new s({Extends:r,initialize:function(){r.call(this),this._pending=[],this._active=[],this._destroy=[],this._toProcess=0,this.checkQueue=!1},isActive:function(t){return this._active.indexOf(t)>-1},isPending:function(t){return this._toProcess>0&&this._pending.indexOf(t)>-1},isDestroying:function(t){return this._destroy.indexOf(t)>-1},add:function(t){return this.checkQueue&&this.isActive(t)&&!this.isDestroying(t)||this.isPending(t)||(this._pending.push(t),this._toProcess++),t},remove:function(t){if(this.isPending(t)){var e=this._pending,i=e.indexOf(t);-1!==i&&e.splice(i,1)}else this.isActive(t)&&(this._destroy.push(t),this._toProcess++);return t},removeAll:function(){for(var t=this._active,e=this._destroy,i=t.length;i--;)e.push(t[i]),this._toProcess++;return this},update:function(){if(0===this._toProcess)return this._active;var t,e,i=this._destroy,s=this._active;for(t=0;t{var s=i(43886);function r(t){if(!(this instanceof r))return new r(t);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}function n(t,e,i){if(!i)return e.indexOf(t);for(var s=0;s=t.minX&&e.maxY>=t.minY}function g(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(t,e,i,r,n){for(var o,a=[e,i];a.length;)(i=a.pop())-(e=a.pop())<=r||(o=e+Math.ceil((i-e)/r/2)*r,s(t,o,e,i,n),a.push(e,o,o,i))}r.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],s=this.toBBox;if(!f(t,e))return i;for(var r,n,o,a,h=[];e;){for(r=0,n=e.children.length;r=0&&n[e].children.length>this._maxEntries;)this._split(n,e),e--;this._adjustParentBBoxes(r,n,e)},_split:function(t,e){var i=t[e],s=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,s);var n=this._chooseSplitIndex(i,r,s),a=g(i.children.splice(n,i.children.length-n));a.height=i.height,a.leaf=i.leaf,o(i,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},_splitRoot:function(t,e){this.data=g([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){var s,r,n,o,h,l,u,d,p,f,g,m,v,y;for(l=u=1/0,s=e;s<=i-e;s++)r=a(t,0,s,this.toBBox),n=a(t,s,i,this.toBBox),p=r,f=n,g=void 0,m=void 0,v=void 0,y=void 0,g=Math.max(p.minX,f.minX),m=Math.max(p.minY,f.minY),v=Math.min(p.maxX,f.maxX),y=Math.min(p.maxY,f.maxY),o=Math.max(0,v-g)*Math.max(0,y-m),h=c(r)+c(n),o=e;r--)n=t.children[r],h(u,t.leaf?o(n):n),c+=d(u);return c},_adjustParentBBoxes:function(t,e,i){for(var s=i;s>=0;s--)h(e[s],t)},_condense:function(t){for(var e,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(e=t[i-1].children).splice(e.indexOf(t[i]),1):this.clear():o(t[i],this.toBBox)},compareMinX:function(t,e){return t.left-e.left},compareMinY:function(t,e){return t.top-e.top},toBBox:function(t){return{minX:t.left,minY:t.top,maxX:t.right,maxY:t.bottom}}},t.exports=r},35072:(t,e,i)=>{var s=new(i(83419))({initialize:function(t){if(this.entries=[],Array.isArray(t))for(var e=0;e-1&&this.entries.splice(e,1),this},dump:function(){console.group("Set");for(var t=0;t-1},union:function(t){var e=new s;return t.entries.forEach((function(t){e.set(t)})),this.entries.forEach((function(t){e.set(t)})),e},intersect:function(t){var e=new s;return this.entries.forEach((function(i){t.contains(i)&&e.set(i)})),e},difference:function(t){var e=new s;return this.entries.forEach((function(i){t.contains(i)||e.set(i)})),e},size:{get:function(){return this.entries.length},set:function(t){return t{var s=i(45319),r=i(83419),n=i(56583),o=i(26099),a=new r({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===s&&(s=null),this._width=t,this._height=e,this._parent=s,this.aspectMode=i,this.aspectRatio=0===e?1:t/e,this.minWidth=0,this.minHeight=0,this.maxWidth=Number.MAX_VALUE,this.maxHeight=Number.MAX_VALUE,this.snapTo=new o},setAspectMode:function(t){return void 0===t&&(t=0),this.aspectMode=t,this.setSize(this._width,this._height)},setSnap:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.snapTo.set(t,e),this.setSize(this._width,this._height)},setParent:function(t){return this._parent=t,this.setSize(this._width,this._height)},setMin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.minWidth=s(t,0,this.maxWidth),this.minHeight=s(e,0,this.maxHeight),this.setSize(this._width,this._height)},setMax:function(t,e){return void 0===t&&(t=Number.MAX_VALUE),void 0===e&&(e=t),this.maxWidth=s(t,this.minWidth,Number.MAX_VALUE),this.maxHeight=s(e,this.minHeight,Number.MAX_VALUE),this.setSize(this._width,this._height)},setSize:function(t,e){switch(void 0===t&&(t=0),void 0===e&&(e=t),this.aspectMode){case a.NONE:this._width=this.getNewWidth(n(t,this.snapTo.x)),this._height=this.getNewHeight(n(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height;break;case a.WIDTH_CONTROLS_HEIGHT:this._width=this.getNewWidth(n(t,this.snapTo.x)),this._height=this.getNewHeight(this._width*(1/this.aspectRatio),!1);break;case a.HEIGHT_CONTROLS_WIDTH:this._height=this.getNewHeight(n(e,this.snapTo.y)),this._width=this.getNewWidth(this._height*this.aspectRatio,!1);break;case a.FIT:this.constrain(t,e,!0);break;case a.ENVELOP:this.constrain(t,e,!1)}return this},setAspectRatio:function(t){return this.aspectRatio=t,this.setSize(this._width,this._height)},resize:function(t,e){return this._width=this.getNewWidth(n(t,this.snapTo.x)),this._height=this.getNewHeight(n(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height,this},getNewWidth:function(t,e){return void 0===e&&(e=!0),t=s(t,this.minWidth,this.maxWidth),e&&this._parent&&t>this._parent.width&&(t=Math.max(this.minWidth,this._parent.width)),t},getNewHeight:function(t,e){return void 0===e&&(e=!0),t=s(t,this.minHeight,this.maxHeight),e&&this._parent&&t>this._parent.height&&(t=Math.max(this.minHeight,this._parent.height)),t},constrain:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=!0),t=this.getNewWidth(t),e=this.getNewHeight(e);var s=this.snapTo,r=0===e?1:t/e;return i&&this.aspectRatio>r||!i&&this.aspectRatio0&&(t=(e=n(e,s.y))*this.aspectRatio)):(i&&this.aspectRatior)&&(t=(e=n(e,s.y))*this.aspectRatio,s.x>0&&(e=(t=n(t,s.x))*(1/this.aspectRatio))),this._width=t,this._height=e,this},fitTo:function(t,e){return this.constrain(t,e,!0)},envelop:function(t,e){return this.constrain(t,e,!1)},setWidth:function(t){return this.setSize(t,this._height)},setHeight:function(t){return this.setSize(this._width,t)},toString:function(){return"[{ Size (width="+this._width+" height="+this._height+" aspectRatio="+this.aspectRatio+" aspectMode="+this.aspectMode+") }]"},setCSS:function(t){t&&t.style&&(t.style.width=this._width+"px",t.style.height=this._height+"px")},copy:function(t){return t.setAspectMode(this.aspectMode),t.aspectRatio=this.aspectRatio,t.setSize(this.width,this.height)},destroy:function(){this._parent=null,this.snapTo=null},width:{get:function(){return this._width},set:function(t){this.setSize(t,this._height)}},height:{get:function(){return this._height},set:function(t){this.setSize(this._width,t)}}});a.NONE=0,a.WIDTH_CONTROLS_HEIGHT=1,a.HEIGHT_CONTROLS_WIDTH=2,a.FIT=3,a.ENVELOP=4,t.exports=a},15238:t=>{t.exports="add"},56187:t=>{t.exports="remove"},82348:(t,e,i)=>{t.exports={PROCESS_QUEUE_ADD:i(15238),PROCESS_QUEUE_REMOVE:i(56187)}},41392:(t,e,i)=>{t.exports={Events:i(82348),List:i(73162),Map:i(90330),ProcessQueue:i(25774),RTree:i(59542),Set:i(35072),Size:i(86555)}},57382:(t,e,i)=>{var s=i(83419),r=i(45319),n=i(40987),o=i(8054),a=i(50030),h=i(79237),l=new s({Extends:h,initialize:function(t,e,i,s,r){h.call(this,t,e,i,s,r),this.add("__BASE",0,0,0,s,r),this._source=this.frames.__BASE.source,this.canvas=this._source.image,this.context=this.canvas.getContext("2d",{willReadFrequently:!0}),this.width=s,this.height=r,this.imageData=this.context.getImageData(0,0,s,r),this.data=null,this.imageData&&(this.data=this.imageData.data),this.pixels=null,this.buffer,this.data&&(this.imageData.data.buffer?(this.buffer=this.imageData.data.buffer,this.pixels=new Uint32Array(this.buffer)):window.ArrayBuffer?(this.buffer=new ArrayBuffer(this.imageData.data.length),this.pixels=new Uint32Array(this.buffer)):this.pixels=this.imageData.data)},update:function(){return this.imageData=this.context.getImageData(0,0,this.width,this.height),this.data=this.imageData.data,this.imageData.data.buffer?(this.buffer=this.imageData.data.buffer,this.pixels=new Uint32Array(this.buffer)):window.ArrayBuffer?(this.buffer=new ArrayBuffer(this.imageData.data.length),this.pixels=new Uint32Array(this.buffer)):this.pixels=this.imageData.data,this.manager.game.config.renderType===o.WEBGL&&this.refresh(),this},draw:function(t,e,i,s){return void 0===s&&(s=!0),this.context.drawImage(i,t,e),s&&this.update(),this},drawFrame:function(t,e,i,s,r){void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=!0);var n=this.manager.getFrame(t,e);if(n){var o=n.canvasData,a=n.cutWidth,h=n.cutHeight,l=n.source.resolution;this.context.drawImage(n.source.image,o.x,o.y,a,h,i,s,a/l,h/l),r&&this.update()}return this},setPixel:function(t,e,i,s,r,n){if(void 0===n&&(n=255),t=Math.abs(Math.floor(t)),e=Math.abs(Math.floor(e)),this.getIndex(t,e)>-1){var o=this.context.getImageData(t,e,1,1);o.data[0]=i,o.data[1]=s,o.data[2]=r,o.data[3]=n,this.context.putImageData(o,t,e)}return this},putData:function(t,e,i,s,r,n,o){return void 0===s&&(s=0),void 0===r&&(r=0),void 0===n&&(n=t.width),void 0===o&&(o=t.height),this.context.putImageData(t,e,i,s,r,n,o),this},getData:function(t,e,i,s){return t=r(Math.floor(t),0,this.width-1),e=r(Math.floor(e),0,this.height-1),i=r(i,1,this.width-t),s=r(s,1,this.height-e),this.context.getImageData(t,e,i,s)},getPixel:function(t,e,i){i||(i=new n);var s=this.getIndex(t,e);if(s>-1){var r=this.data,o=r[s+0],a=r[s+1],h=r[s+2],l=r[s+3];i.setTo(o,a,h,l)}return i},getPixels:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===s&&(s=i),t=Math.abs(Math.round(t)),e=Math.abs(Math.round(e));for(var o=r(t,0,this.width),a=r(t+i,0,this.width),h=r(e,0,this.height),l=r(e+s,0,this.height),u=new n,c=[],d=h;d{var s=i(10312),r=i(71911),n=i(27919),o=i(83419),a=i(8054),h=i(4327),l=i(95540),u=i(36060),c=i(32302),d=i(79237),p=i(70554),f=new o({Extends:d,initialize:function(t,e,i,s){void 0===i&&(i=256),void 0===s&&(s=256),this.type="DynamicTexture";var o=t.game.renderer,h=o&&o.type===a.CANVAS,l=h?n.create2D(this,i,s):[this];d.call(this,t,e,l,i,s),this.add("__BASE",0,0,0,i,s),this.renderer=o,this.width=-1,this.height=-1,this.isDrawing=!1,this.canvas=h?l:null,this.context=h?l.getContext("2d",{willReadFrequently:!0}):null,this.dirty=!1,this.isSpriteTexture=!0,this._eraseMode=!1,this.camera=new r(0,0,i,s).setScene(t.game.scene.systemScene,!1),this.renderTarget=h?null:new c(o,i,s,1,0,!1,!0,!0,!1),this.pipeline=h?null:o.pipelines.get(u.SINGLE_PIPELINE),this.setSize(i,s)},setSize:function(t,e){void 0===e&&(e=t);var i=this.get(),s=i.source;if(t!==this.width||e!==this.height){this.canvas&&(this.canvas.width=t,this.canvas.height=e);var r=this.renderTarget;r&&(r.willResize(t,e)&&r.resize(t,e),r.texture!==s.glTexture&&this.renderer.deleteTexture(s.glTexture),this.setFromRenderTarget()),this.camera.setSize(t,e),s.width=t,s.height=e,i.setSize(t,e),this.width=t,this.height=e}else{var n=this.getSourceImage();i.cutX+t>n.width&&(t=n.width-i.cutX),i.cutY+e>n.height&&(e=n.height-i.cutY),i.setSize(t,e,i.cutX,i.cutY)}return this},setFromRenderTarget:function(){var t=this.get().source,e=this.renderTarget;return t.isRenderTexture=!0,t.isGLTexture=!0,t.glTexture=e.texture,this},setIsSpriteTexture:function(t){return this.isSpriteTexture=t,this},fill:function(t,e,i,s,r,n){var o=this.camera,a=this.renderer;void 0===e&&(e=1),void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=this.width),void 0===n&&(n=this.height);var h=t>>16&255,l=t>>8&255,u=255&t,c=this.renderTarget;if(o.preRender(),c){c.bind(!0);var d=this.pipeline.manager.set(this.pipeline),f=a.width/c.width,g=a.height/c.height,m=c.height-(s+n);d.drawFillRect(i*f,m*g,r*f,n*g,p.getTintFromFloats(u/255,l/255,h/255,1),e),c.unbind(!0)}else{var v=this.context;a.setContext(v),v.globalCompositeOperation="source-over",v.fillStyle="rgba("+h+","+l+","+u+","+e+")",v.fillRect(i,s,r,n),a.setContext()}return this.dirty=!0,this},clear:function(){if(this.dirty){var t=this.context,e=this.renderTarget;e?e.clear():t&&(t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,this.width,this.height),t.restore()),this.dirty=!1}return this},stamp:function(t,e,i,s,r){void 0===i&&(i=0),void 0===s&&(s=0);var n=l(r,"alpha",1),o=l(r,"tint",16777215),a=l(r,"angle",0),h=l(r,"rotation",0),u=l(r,"scale",1),c=l(r,"scaleX",u),d=l(r,"scaleY",u),p=l(r,"originX",.5),f=l(r,"originY",.5),g=l(r,"blendMode",0),m=l(r,"erase",!1),v=l(r,"skipBatch",!1),y=this.manager.resetStamp(n,o);return y.setAngle(0),0!==a?y.setAngle(a):0!==h&&y.setRotation(h),y.setScale(c,d),y.setTexture(t,e),y.setOrigin(p,f),y.setBlendMode(g),m&&(this._eraseMode=!0),v?this.batchGameObject(y,i,s):this.draw(y,i,s),m&&(this._eraseMode=!1),this},erase:function(t,e,i){return this._eraseMode=!0,this.draw(t,e,i),this._eraseMode=!1,this},draw:function(t,e,i,s,r){return this.beginDraw(),this.batchDraw(t,e,i,s,r),this.endDraw(),this},drawFrame:function(t,e,i,s,r,n){return this.beginDraw(),this.batchDrawFrame(t,e,i,s,r,n),this.endDraw(),this},repeat:function(t,e,i,s,r,n,o,a,l){if(void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=this.width),void 0===n&&(n=this.height),void 0===o&&(o=1),void 0===a&&(a=16777215),void 0===l&&(l=!1),!(e=t instanceof h?t:this.manager.getFrame(t,e)))return this;var u=this.manager.resetStamp(o,a);u.setFrame(e),u.setOrigin(0);var c=e.width,d=e.height;r=Math.floor(r),n=Math.floor(n);var p=Math.ceil(r/c),f=Math.ceil(n/d),g=p*c-r,m=f*d-n;g>0&&(g=c-g),m>0&&(m=d-m),i<0&&(p+=Math.ceil(Math.abs(i)/c)),s<0&&(f+=Math.ceil(Math.abs(s)/d));var v=i,y=s,x=!1,w=this.manager.stampCrop.setTo(0,0,c,d);l||this.beginDraw();for(var T=0;T0&&b===p-1&&(x=!0,w.width=g),m>0&&T===f-1&&(x=!0,w.height=m),x&&u.setCrop(w),this.batchGameObject(u,v,y),u.isCropped=!1,w.setTo(0,0,c,d)),v+=c;v=i,y+=d}return l||this.endDraw(),this},beginDraw:function(){if(!this.isDrawing){var t=this.camera,e=this.renderer,i=this.renderTarget;t.preRender(),i?e.beginCapture(i.width,i.height):e.setContext(this.context),this.isDrawing=!0}return this},batchDraw:function(t,e,i,s,r){return Array.isArray(t)||(t=[t]),this.batchList(t,e,i,s,r),this},batchDrawFrame:function(t,e,i,s,r,n){void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=1),void 0===n&&(n=16777215);var o=this.manager.getFrame(t,e);return o&&(this.renderTarget?this.pipeline.batchTextureFrame(o,i,s,n,r,this.camera.matrix,null):this.batchTextureFrame(o,i,s,r,n)),this},endDraw:function(t){if(void 0===t&&(t=this._eraseMode),this.isDrawing){var e=this.renderer,i=this.renderTarget;if(i){var s=e.endCapture();e.pipelines.setUtility().blitFrame(s,i,1,!1,!1,t,this.isSpriteTexture),e.resetScissor(),e.resetViewport()}else e.setContext();this.dirty=!0,this.isDrawing=!1}return this},batchList:function(t,e,i,s,r){var n=t.length;if(0!==n)for(var o=0;o0&&a.height>0&&o.drawImage(h,a.x,a.y,a.width,a.height,e,i,a.width,a.height),o.restore()}},snapshotArea:function(t,e,i,s,r,n,o){return this.renderTarget?this.renderer.snapshotFramebuffer(this.renderTarget.framebuffer,this.width,this.height,r,!1,t,e,i,s,n,o):this.renderer.snapshotCanvas(this.canvas,r,!1,t,e,i,s,n,o),this},snapshot:function(t,e,i){return this.snapshotArea(0,0,this.width,this.height,t,e,i)},snapshotPixel:function(t,e,i){return this.snapshotArea(t,e,1,1,i,"pixel")},getWebGLTexture:function(){if(this.renderTarget)return this.renderTarget.texture},renderWebGL:function(t,e,i,s){var r=this.manager.resetStamp();r.setTexture(this),r.setOrigin(0),r.renderWebGL(t,r,i,s)},renderCanvas:function(){},destroy:function(){var t=this.manager.stamp;t&&t.texture===this&&this.manager.resetStamp(),d.prototype.destroy.call(this),n.remove(this.canvas),this.renderTarget&&this.renderTarget.destroy(),this.camera.destroy(),this.canvas=null,this.context=null,this.renderer=null}});t.exports=f},4327:(t,e,i)=>{var s=i(83419),r=i(45319),n=i(79291),o=new s({initialize:function(t,e,i,s,r,n,o){this.texture=t,this.name=e,this.source=t.source[i],this.sourceIndex=i,this.cutX,this.cutY,this.cutWidth,this.cutHeight,this.x=0,this.y=0,this.width,this.height,this.halfWidth,this.halfHeight,this.centerX,this.centerY,this.pivotX=0,this.pivotY=0,this.customPivot=!1,this.rotated=!1,this.autoRound=-1,this.customData={},this.u0=0,this.v0=0,this.u1=0,this.v1=0,this.data={cut:{x:0,y:0,w:0,h:0,r:0,b:0},trim:!1,sourceSize:{w:0,h:0},spriteSourceSize:{x:0,y:0,w:0,h:0,r:0,b:0},radius:0,drawImage:{x:0,y:0,width:0,height:0},is3Slice:!1,scale9:!1,scale9Borders:{x:0,y:0,w:0,h:0}},this.setSize(n,o,s,r)},setSize:function(t,e,i,s){void 0===i&&(i=0),void 0===s&&(s=0),this.cutX=i,this.cutY=s,this.cutWidth=t,this.cutHeight=e,this.width=t,this.height=e,this.halfWidth=Math.floor(.5*t),this.halfHeight=Math.floor(.5*e),this.centerX=Math.floor(t/2),this.centerY=Math.floor(e/2);var r=this.data,n=r.cut;n.x=i,n.y=s,n.w=t,n.h=e,n.r=i+t,n.b=s+e,r.sourceSize.w=t,r.sourceSize.h=e,r.spriteSourceSize.w=t,r.spriteSourceSize.h=e,r.radius=.5*Math.sqrt(t*t+e*e);var o=r.drawImage;return o.x=i,o.y=s,o.width=t,o.height=e,this.updateUVs()},setTrim:function(t,e,i,s,r,n){var o=this.data,a=o.spriteSourceSize;return o.trim=!0,o.sourceSize.w=t,o.sourceSize.h=e,a.x=i,a.y=s,a.w=r,a.h=n,a.r=i+r,a.b=s+n,this.x=i,this.y=s,this.width=r,this.height=n,this.halfWidth=.5*r,this.halfHeight=.5*n,this.centerX=Math.floor(r/2),this.centerY=Math.floor(n/2),this.updateUVs()},setScale9:function(t,e,i,s){var r=this.data;return r.scale9=!0,r.is3Slice=0===e&&s===this.height,r.scale9Borders.x=t,r.scale9Borders.y=e,r.scale9Borders.w=i,r.scale9Borders.h=s,this},setCropUVs:function(t,e,i,s,n,o,a){var h=this.cutX,l=this.cutY,u=this.cutWidth,c=this.cutHeight,d=this.realWidth,p=this.realHeight,f=h+(e=r(e,0,d)),g=l+(i=r(i,0,p)),m=s=r(s,0,d-e),v=n=r(n,0,p-i),y=this.data;if(y.trim){var x=y.spriteSourceSize,w=e+(s=r(s,0,u-e)),T=i+(n=r(n,0,c-i));if(x.rw||x.y>T)f=0,g=0,m=0,v=0;else{var b=Math.max(x.x,e),S=Math.max(x.y,i),E=Math.min(x.r,w)-b,C=Math.min(x.b,T)-S;m=E,v=C,f=o?h+(u-(b-x.x)-E):h+(b-x.x),g=a?l+(c-(S-x.y)-C):l+(S-x.y),e=b,i=S,s=E,n=C}}else o&&(f=h+(u-e-s)),a&&(g=l+(c-i-n));var A=this.source.width,_=this.source.height;return t.u0=Math.max(0,f/A),t.v0=Math.max(0,g/_),t.u1=Math.min(1,(f+m)/A),t.v1=Math.min(1,(g+v)/_),t.x=e,t.y=i,t.cx=f,t.cy=g,t.cw=m,t.ch=v,t.width=s,t.height=n,t.flipX=o,t.flipY=a,t},updateCropUVs:function(t,e,i){return this.setCropUVs(t,t.x,t.y,t.width,t.height,e,i)},setUVs:function(t,e,i,s,r,n){var o=this.data.drawImage;return o.width=t,o.height=e,this.u0=i,this.v0=s,this.u1=r,this.v1=n,this},updateUVs:function(){var t=this.cutX,e=this.cutY,i=this.cutWidth,s=this.cutHeight,r=this.data.drawImage;r.width=i,r.height=s;var n=this.source.width,o=this.source.height;return this.u0=t/n,this.v0=e/o,this.u1=(t+i)/n,this.v1=(e+s)/o,this},updateUVsInverted:function(){var t=this.source.width,e=this.source.height;return this.u0=(this.cutX+this.cutHeight)/t,this.v0=this.cutY/e,this.u1=this.cutX/t,this.v1=(this.cutY+this.cutWidth)/e,this},clone:function(){var t=new o(this.texture,this.name,this.sourceIndex);return t.cutX=this.cutX,t.cutY=this.cutY,t.cutWidth=this.cutWidth,t.cutHeight=this.cutHeight,t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t.halfWidth=this.halfWidth,t.halfHeight=this.halfHeight,t.centerX=this.centerX,t.centerY=this.centerY,t.rotated=this.rotated,t.data=n(!0,t.data,this.data),t.updateUVs(),t},destroy:function(){this.texture=null,this.source=null,this.customData=null,this.data=null},glTexture:{get:function(){return this.source.glTexture}},realWidth:{get:function(){return this.data.sourceSize.w}},realHeight:{get:function(){return this.data.sourceSize.h}},radius:{get:function(){return this.data.radius}},trimmed:{get:function(){return this.data.trim}},scale9:{get:function(){return this.data.scale9}},is3Slice:{get:function(){return this.data.is3Slice}},canvasData:{get:function(){return this.data.drawImage}}});t.exports=o},79237:(t,e,i)=>{var s=i(83419),r=i(4327),n=i(11876),o='Texture "%s" has no frame "%s"',a=new s({initialize:function(t,e,i,s,r){Array.isArray(i)||(i=[i]),this.manager=t,this.key=e,this.source=[],this.dataSource=[],this.frames={},this.customData={},this.firstFrame="__BASE",this.frameTotal=0;for(var o=0;or&&(r=a.cutX+a.cutWidth),a.cutY+a.cutHeight>n&&(n=a.cutY+a.cutHeight)}return{x:i,y:s,width:r-i,height:n-s}},getFrameNames:function(t){void 0===t&&(t=!1);var e=Object.keys(this.frames);if(!t){var i=e.indexOf("__BASE");-1!==i&&e.splice(i,1)}return e},getSourceImage:function(t){null!=t&&1!==this.frameTotal||(t="__BASE");var e=this.frames[t];return e?e.source.image:(console.warn(o,this.key,t),this.frames.__BASE.source.image)},getDataSourceImage:function(t){null!=t&&1!==this.frameTotal||(t="__BASE");var e,i=this.frames[t];return i?e=i.sourceIndex:(console.warn(o,this.key,t),e=this.frames.__BASE.sourceIndex),this.dataSource[e].image},setDataSource:function(t){Array.isArray(t)||(t=[t]);for(var e=0;e{var s=i(27919),r=i(57382),n=i(83419),o=i(40987),a=i(8054),h=i(81320),l=i(50792),u=i(69442),c=i(4327),d=i(8443),p=i(99584),f=i(35154),g=i(88571),m=i(41212),v=i(61309),y=i(87841),x=i(79237),w=new n({Extends:l,initialize:function(t){l.call(this),this.game=t,this.name="TextureManager",this.list={},this._tempCanvas=s.create2D(this),this._tempContext=this._tempCanvas.getContext("2d",{willReadFrequently:!0}),this._pending=0,this.stamp,this.stampCrop=new y,this.silentWarnings=!1,t.events.once(d.BOOT,this.boot,this)},boot:function(){this._pending=3,this.on(u.LOAD,this.updatePending,this),this.on(u.ERROR,this.updatePending,this);var t=this.game.config;this.addBase64("__DEFAULT",t.defaultImage),this.addBase64("__MISSING",t.missingImage),this.addBase64("__WHITE",t.whiteImage),this.game.renderer&&this.game.renderer.gl&&this.addUint8Array("__NORMAL",new Uint8Array([127,127,255,255]),1,1),this.game.events.once(d.DESTROY,this.destroy,this),this.game.events.once(d.SYSTEM_READY,(function(t){this.stamp=new g(t).setOrigin(0)}),this)},updatePending:function(){this._pending--,0===this._pending&&(this.off(u.LOAD),this.off(u.ERROR),this.emit(u.READY))},checkKey:function(t){return!this.exists(t)||(this.silentWarnings||console.error("Texture key already in use: "+t),!1)},remove:function(t){if("string"==typeof t){if(!this.exists(t))return this.silentWarnings||console.warn("No texture found matching key: "+t),this;t=this.get(t)}var e=t.key;return this.list.hasOwnProperty(e)&&(t.destroy(),this.emit(u.REMOVE,e),this.emit(u.REMOVE_KEY+e)),this},removeKey:function(t){return this.list.hasOwnProperty(t)&&delete this.list[t],this},addBase64:function(t,e){if(this.checkKey(t)){var i=this,s=new Image;s.onerror=function(){i.emit(u.ERROR,t)},s.onload=function(){var e=i.create(t,s);v.Image(e,0),i.emit(u.ADD,t,e),i.emit(u.ADD_KEY+t,e),i.emit(u.LOAD,t,e)},s.src=e}return this},getBase64:function(t,e,i,r){void 0===i&&(i="image/png"),void 0===r&&(r=.92);var n="",o=this.getFrame(t,e);if(o&&(o.source.isRenderTexture||o.source.isGLTexture))this.silentWarnings||console.warn("Cannot getBase64 from WebGL Texture");else if(o){var a=o.canvasData,h=s.create2D(this,a.width,a.height),l=h.getContext("2d",{willReadFrequently:!0});a.width>0&&a.height>0&&l.drawImage(o.source.image,a.x,a.y,a.width,a.height,0,0,a.width,a.height),n=h.toDataURL(i,r),s.remove(h)}return n},addImage:function(t,e,i){var s=null;return this.checkKey(t)&&(s=this.create(t,e),v.Image(s,0),i&&s.setDataSource(i),this.emit(u.ADD,t,s),this.emit(u.ADD_KEY+t,s)),s},addGLTexture:function(t,e){var i=null;if(this.checkKey(t)){var s=e.width,r=e.height;(i=this.create(t,e,s,r)).add("__BASE",0,0,0,s,r),this.emit(u.ADD,t,i),this.emit(u.ADD_KEY+t,i)}return i},addCompressedTexture:function(t,e,i){var s=null;if(this.checkKey(t)){if((s=this.create(t,e)).add("__BASE",0,0,0,e.width,e.height),i){var r=function(t,e,i){Array.isArray(i.textures)||Array.isArray(i.frames)?v.JSONArray(t,e,i):v.JSONHash(t,e,i)};if(Array.isArray(i))for(var n=0;n=n.x&&t=n.y&&e=n.x&&t=n.y&&e{var s=i(27919),r=i(83419),n=i(50030),o=i(29795),a=i(82751),h=new r({initialize:function(t,e,i,s,r){void 0===r&&(r=!1);var h=t.manager.game;this.renderer=h.renderer,this.texture=t,this.source=e,this.image=e.compressed?null:e,this.compressionAlgorithm=e.compressed?e.format:null,this.resolution=1,this.width=i||e.naturalWidth||e.videoWidth||e.width||0,this.height=s||e.naturalHeight||e.videoHeight||e.height||0,this.scaleMode=o.DEFAULT,this.isCanvas=e instanceof HTMLCanvasElement,this.isVideo=window.hasOwnProperty("HTMLVideoElement")&&e instanceof HTMLVideoElement,this.isRenderTexture="RenderTexture"===e.type||"DynamicTexture"===e.type,this.isGLTexture=e instanceof a,this.isPowerOf2=n(this.width,this.height),this.glTexture=null,this.flipY=r,this.init(h)},init:function(t){var e=this.renderer;if(e){var i=this.source;if(e.gl){var s=this.image,r=this.flipY,n=this.width,o=this.height,a=this.scaleMode;this.isCanvas?this.glTexture=e.createCanvasTexture(s,!1,r):this.isVideo?this.glTexture=e.createVideoTexture(s,!1,r):this.isRenderTexture?this.glTexture=e.createTextureFromSource(null,n,o,a):this.isGLTexture?this.glTexture=i:this.compressionAlgorithm?this.glTexture=e.createTextureFromSource(i,void 0,void 0,a):i instanceof Uint8Array?this.glTexture=e.createUint8ArrayTexture(i,n,o,a):this.glTexture=e.createTextureFromSource(s,n,o,a)}else this.isRenderTexture&&(this.image=i.canvas)}t.config.antialias||this.setFilter(1)},setFilter:function(t){this.renderer&&this.renderer.gl&&this.renderer.setTextureFilter(this.glTexture,t),this.scaleMode=t},setFlipY:function(t){return void 0===t&&(t=!0),t===this.flipY||(this.flipY=t,this.update()),this},update:function(){var t=this.renderer,e=this.image,i=this.flipY,s=t.gl;s&&this.isCanvas?t.updateCanvasTexture(e,this.glTexture,i):s&&this.isVideo&&t.updateVideoTexture(e,this.glTexture,i)},destroy:function(){this.glTexture&&this.renderer.deleteTexture(this.glTexture),this.isCanvas&&s.remove(this.image),this.renderer=null,this.texture=null,this.source=null,this.image=null,this.glTexture=null}});t.exports=h},19673:t=>{t.exports={LINEAR:0,NEAREST:1}},44538:t=>{t.exports="addtexture"},63486:t=>{t.exports="addtexture-"},94851:t=>{t.exports="onerror"},29099:t=>{t.exports="onload"},8678:t=>{t.exports="ready"},86415:t=>{t.exports="removetexture"},30879:t=>{t.exports="removetexture-"},69442:(t,e,i)=>{t.exports={ADD:i(44538),ADD_KEY:i(63486),ERROR:i(94851),LOAD:i(29099),READY:i(8678),REMOVE:i(86415),REMOVE_KEY:i(30879)}},27458:(t,e,i)=>{var s=i(79291),r=i(19673),n={CanvasTexture:i(57382),DynamicTexture:i(81320),Events:i(69442),FilterMode:r,Frame:i(4327),Parsers:i(61309),Texture:i(79237),TextureManager:i(17130),TextureSource:i(11876)};n=s(!1,n,r),t.exports=n},89905:t=>{t.exports=function(t,e,i){if(i.getElementsByTagName("TextureAtlas")){var s=t.source[e];t.add("__BASE",e,0,0,s.width,s.height);for(var r,n=i.getElementsByTagName("SubTexture"),o=0;o{t.exports=function(t,e){var i=t.source[e];return t.add("__BASE",e,0,0,i.width,i.height),t}},4832:t=>{t.exports=function(t,e){var i=t.source[e];return t.add("__BASE",e,0,0,i.width,i.height),t}},78566:(t,e,i)=>{var s=i(41786);t.exports=function(t,e,i){if(i.frames||i.textures){var r=t.source[e];t.add("__BASE",e,0,0,r.width,r.height);for(var n,o=Array.isArray(i.textures)?i.textures[e].frames:i.frames,a=0;a{var s=i(41786);t.exports=function(t,e,i){if(i.frames){var r=t.source[e];t.add("__BASE",e,0,0,r.width,r.height);var n,o=i.frames;for(var a in o)if(o.hasOwnProperty(a)){var h=o[a];if(n=t.add(a,e,h.frame.x,h.frame.y,h.frame.w,h.frame.h)){h.trimmed&&n.setTrim(h.sourceSize.w,h.sourceSize.h,h.spriteSourceSize.x,h.spriteSourceSize.y,h.spriteSourceSize.w,h.spriteSourceSize.h),h.rotated&&(n.rotated=!0,n.updateUVsInverted());var l=h.anchor||h.pivot;l&&(n.customPivot=!0,n.pivotX=l.x,n.pivotY=l.y),h.scale9Borders&&n.setScale9(h.scale9Borders.x,h.scale9Borders.y,h.scale9Borders.w,h.scale9Borders.h),n.customData=s(h)}else console.warn("Invalid atlas json, frame already exists: "+a)}for(var u in i)"frames"!==u&&(Array.isArray(i[u])?t.customData[u]=i[u].slice(0):t.customData[u]=i[u]);return t}console.warn("Invalid Texture Atlas JSON Hash given, missing 'frames' Object")}},31403:t=>{t.exports=function(t){var e,i=[171,75,84,88,32,49,49,187,13,10,26,10],s=new Uint8Array(t,0,12);for(e=0;e>1),g=Math.max(1,g>>1),p+=m}return{mipmaps:d,width:h,height:l,internalFormat:a,compressed:!0,generateMipmap:!1}}console.warn("KTXParser - Only compressed formats supported")}},82038:t=>{function e(t,e,i,s,r,n,o){return void 0===o&&(o=16),Math.floor((t+i)/r)*Math.floor((e+s)/n)*o}function i(t,e){return(t=Math.max(t,16))*(e=Math.max(e,8))/4}function s(t,e){return(t=Math.max(t,8))*(e=Math.max(e,8))/2}function r(t,e){return Math.ceil(t/4)*Math.ceil(e/4)*16}function n(t,i){return e(t,i,3,3,4,4,8)}function o(t,i){return e(t,i,3,3,4,4)}var a={0:{sizeFunc:i,glFormat:[35841]},1:{sizeFunc:i,glFormat:[35843]},2:{sizeFunc:s,glFormat:[35840]},3:{sizeFunc:s,glFormat:[35842]},6:{sizeFunc:n,glFormat:[36196]},7:{sizeFunc:n,glFormat:[33776,35916]},8:{sizeFunc:o,glFormat:[33777,35917]},9:{sizeFunc:o,glFormat:[33778,35918]},11:{sizeFunc:o,glFormat:[33779,35919]},14:{sizeFunc:r,glFormat:[36494,36495]},15:{sizeFunc:r,glFormat:[36492,36493]},22:{sizeFunc:n,glFormat:[37492,37493]},23:{sizeFunc:o,glFormat:[37496,37497]},24:{sizeFunc:n,glFormat:[37494,37495]},25:{sizeFunc:n,glFormat:[37488]},26:{sizeFunc:o,glFormat:[37490]},27:{sizeFunc:o,glFormat:[37808,37840]},28:{sizeFunc:function(t,i){return e(t,i,4,3,5,4)},glFormat:[37809,37841]},29:{sizeFunc:function(t,i){return e(t,i,4,4,5,5)},glFormat:[37810,37842]},30:{sizeFunc:function(t,i){return e(t,i,5,4,6,5)},glFormat:[37811,37843]},31:{sizeFunc:function(t,i){return e(t,i,5,5,6,6)},glFormat:[37812,37844]},32:{sizeFunc:function(t,i){return e(t,i,7,4,8,5)},glFormat:[37813,37845]},33:{sizeFunc:function(t,i){return e(t,i,7,5,8,6)},glFormat:[37814,37846]},34:{sizeFunc:function(t,i){return e(t,i,7,7,8,8)},glFormat:[37815,37847]},35:{sizeFunc:function(t,i){return e(t,i,9,4,10,5)},glFormat:[37816,37848]},36:{sizeFunc:function(t,i){return e(t,i,9,5,10,6)},glFormat:[37817,37849]},37:{sizeFunc:function(t,i){return e(t,i,9,7,10,8)},glFormat:[37818,37850]},38:{sizeFunc:function(t,i){return e(t,i,9,9,10,10)},glFormat:[37819,37851]},39:{sizeFunc:function(t,i){return e(t,i,11,9,12,10)},glFormat:[37820,37852]},40:{sizeFunc:function(t,i){return e(t,i,11,11,12,12)},glFormat:[37821,37853]}};t.exports=function(t){for(var e=new Uint32Array(t,0,13),i=55727696===e[0]?e[2]:e[3],s=e[4],r=a[i].glFormat[s],n=a[i].sizeFunc,o=e[11],h=e[7],l=e[6],u=52+e[12],c=new Uint8Array(t,u),d=new Array(o),p=0,f=h,g=l,m=0;m>1),g=Math.max(1,g>>1),p+=v}return{mipmaps:d,width:h,height:l,internalFormat:r,compressed:!0,generateMipmap:!1}}},75549:(t,e,i)=>{var s=i(95540);t.exports=function(t,e,i,r,n,o,a){var h=s(a,"frameWidth",null),l=s(a,"frameHeight",h);if(null===h)throw new Error("TextureManager.SpriteSheet: Invalid frameWidth given.");var u=t.source[e];t.add("__BASE",e,0,0,u.width,u.height);var c=s(a,"startFrame",0),d=s(a,"endFrame",-1),p=s(a,"margin",0),f=s(a,"spacing",0),g=Math.floor((n-p+f)/(h+f))*Math.floor((o-p+f)/(l+f));0===g&&console.warn("SpriteSheet frame dimensions will result in zero frames for texture:",t.key),(c>g||c<-g)&&(c=0),c<0&&(c=g+c),(-1===d||d>g||dn&&(y=b-n),S>o&&(x=S-o),T>=c&&T<=d&&(t.add(w,e,i+m,r+v,h-y,l-x),w++),(m+=h+f)+h>n&&(m=p,v+=l+f)}return t}},47534:(t,e,i)=>{var s=i(95540);t.exports=function(t,e,i){var r=s(i,"frameWidth",null),n=s(i,"frameHeight",r);if(!r)throw new Error("TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.");var o=t.source[0];t.add("__BASE",0,0,0,o.width,o.height),s(i,"startFrame",0),s(i,"endFrame",-1);for(var a,h=s(i,"margin",0),l=s(i,"spacing",0),u=e.cutX,c=e.cutY,d=e.cutWidth,p=e.cutHeight,f=e.realWidth,g=e.realHeight,m=Math.floor((f-h+l)/(r+l)),v=Math.floor((g-h+l)/(n+l)),y=e.x,x=r-y,w=r-(f-d-y),T=e.y,b=n-T,S=n-(g-p-T),E=h,C=h,A=0,_=0;_{var e=0,i=function(t,i,s,r){var n=e-r.y-r.height;t.add(s,i,r.x,n,r.width,r.height)};t.exports=function(t,s,r){var n=t.source[s];t.add("__BASE",s,0,0,n.width,n.height),e=n.height;for(var o=r.split("\n"),a=/^[ ]*(- )*(\w+)+[: ]+(.*)/,h="",l="",u={x:0,y:0,width:0,height:0},c=0;c{var s=i(50030);function r(t){for(var e=t.mipmaps,i=0;i{t.exports={AtlasXML:i(89905),Canvas:i(72893),Image:i(4832),JSONArray:i(78566),JSONHash:i(39711),KTXParser:i(31403),PVRParser:i(82038),SpriteSheet:i(75549),SpriteSheetFromAtlas:i(47534),UnityYAML:i(86147)}},80341:t=>{t.exports={CSV:0,TILED_JSON:1,ARRAY_2D:2,WELTMEISTER:3}},16536:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e,i,s,r,n,o){(void 0===i||i<=0)&&(i=32),(void 0===s||s<=0)&&(s=32),void 0===r&&(r=0),void 0===n&&(n=0),this.name=t,this.firstgid=0|e,this.imageWidth=0|i,this.imageHeight=0|s,this.imageMargin=0|r,this.imageSpacing=0|n,this.properties=o||{},this.images=[],this.total=0},containsImageIndex:function(t){return t>=this.firstgid&&t{var s=new(i(83419))({initialize:function(t){if(this.gids=[],void 0!==t)for(var e=0;e{var s=i(80341),r=i(87010),n=i(46177),o=i(49075);t.exports=function(t,e,i,a,h,l,u,c){void 0===i&&(i=32),void 0===a&&(a=32),void 0===h&&(h=10),void 0===l&&(l=10),void 0===c&&(c=!1);var d=null;if(Array.isArray(u))d=n(void 0!==e?e:"map",s.ARRAY_2D,u,i,a,c);else if(void 0!==e){var p=t.cache.tilemap.get(e);p?d=n(e,p.format,p.data,i,a,c):console.warn("No map data found for key "+e)}return null===d&&(d=new r({tileWidth:i,tileHeight:a,width:h,height:l})),new o(t,d)}},23029:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(91907),o=i(62644),a=i(93232),h=new s({Mixins:[r.AlphaSingle,r.Flip,r.Visible],initialize:function(t,e,i,s,r,n,o,a){this.layer=t,this.index=e,this.x=i,this.y=s,this.width=r,this.height=n,this.right,this.bottom,this.baseWidth=void 0!==o?o:r,this.baseHeight=void 0!==a?a:n,this.pixelX=0,this.pixelY=0,this.updatePixelXY(),this.properties={},this.rotation=0,this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceLeft=!1,this.faceRight=!1,this.faceTop=!1,this.faceBottom=!1,this.collisionCallback=void 0,this.collisionCallbackContext=this,this.tint=16777215,this.tintFill=!1,this.physics={}},containsPoint:function(t,e){return!(tthis.right||e>this.bottom)},copy:function(t){return this.index=t.index,this.alpha=t.alpha,this.properties=o(t.properties),this.visible=t.visible,this.setFlip(t.flipX,t.flipY),this.tint=t.tint,this.rotation=t.rotation,this.collideUp=t.collideUp,this.collideDown=t.collideDown,this.collideLeft=t.collideLeft,this.collideRight=t.collideRight,this.collisionCallback=t.collisionCallback,this.collisionCallbackContext=t.collisionCallbackContext,this},getCollisionGroup:function(){return this.tileset?this.tileset.getTileCollisionGroup(this.index):null},getTileData:function(){return this.tileset?this.tileset.getTileData(this.index):null},getLeft:function(t){var e=this.tilemapLayer;return e?e.tileToWorldXY(this.x,this.y,void 0,t).x:this.x*this.baseWidth},getRight:function(t){var e=this.tilemapLayer;return e?this.getLeft(t)+this.width*e.scaleX:this.getLeft(t)+this.width},getTop:function(t){var e=this.tilemapLayer;return e?e.tileToWorldXY(this.x,this.y,void 0,t).y:this.y*this.baseWidth-(this.height-this.baseHeight)},getBottom:function(t){var e=this.tilemapLayer;return e?this.getTop(t)+this.height*e.scaleY:this.getTop(t)+this.height},getBounds:function(t,e){return void 0===e&&(e=new a),e.x=this.getLeft(t),e.y=this.getTop(t),e.width=this.getRight(t)-e.x,e.height=this.getBottom(t)-e.y,e},getCenterX:function(t){return(this.getLeft(t)+this.getRight(t))/2},getCenterY:function(t){return(this.getTop(t)+this.getBottom(t))/2},intersects:function(t,e,i,s){return!(i<=this.pixelX||s<=this.pixelY||t>=this.right||e>=this.bottom)},isInteresting:function(t,e){return t&&e?this.canCollide||this.hasInterestingFace:t?this.collides:!!e&&this.hasInterestingFace},resetCollision:function(t){return void 0===t&&(t=!0),this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,t&&this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y),this},resetFaces:function(){return this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,this},setCollision:function(t,e,i,s,r){return void 0===e&&(e=t),void 0===i&&(i=t),void 0===s&&(s=t),void 0===r&&(r=!0),this.collideLeft=t,this.collideRight=e,this.collideUp=i,this.collideDown=s,this.faceLeft=t,this.faceRight=e,this.faceTop=i,this.faceBottom=s,r&&this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y),this},setCollisionCallback:function(t,e){return null===t?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=t,this.collisionCallbackContext=e),this},setSize:function(t,e,i,s){return void 0!==t&&(this.width=t),void 0!==e&&(this.height=e),void 0!==i&&(this.baseWidth=i),void 0!==s&&(this.baseHeight=s),this.updatePixelXY(),this},updatePixelXY:function(){var t=this.layer.orientation;if(t===n.ORTHOGONAL)this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight;else if(t===n.ISOMETRIC)this.pixelX=(this.x-this.y)*this.baseWidth*.5,this.pixelY=(this.x+this.y)*this.baseHeight*.5;else if(t===n.STAGGERED)this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2),this.pixelY=this.y*(this.baseHeight/2);else if(t===n.HEXAGONAL){var e,i,s=this.layer.staggerAxis,r=this.layer.staggerIndex,o=this.layer.hexSideLength;"y"===s?(i=(this.baseHeight-o)/2+o,this.pixelX="odd"===r?this.x*this.baseWidth+this.y%2*(this.baseWidth/2):this.x*this.baseWidth-this.y%2*(this.baseWidth/2),this.pixelY=this.y*i):"x"===s&&(e=(this.baseWidth-o)/2+o,this.pixelX=this.x*e,this.pixelY="odd"===r?this.y*this.baseHeight+this.x%2*(this.baseHeight/2):this.y*this.baseHeight-this.x%2*(this.baseHeight/2))}return this.right=this.pixelX+this.baseWidth,this.bottom=this.pixelY+this.baseHeight,this},destroy:function(){this.collisionCallback=void 0,this.collisionCallbackContext=void 0,this.properties=void 0},canCollide:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown||void 0!==this.collisionCallback}},collides:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown}},hasInterestingFace:{get:function(){return this.faceTop||this.faceBottom||this.faceLeft||this.faceRight}},tileset:{get:function(){var t=this.layer.tilemapLayer;if(t){var e=t.gidMap[this.index];if(e)return e}return null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var t=this.tilemapLayer;return t?t.tilemap:null}}});t.exports=h},49075:(t,e,i)=>{var s=i(84101),r=i(83419),n=i(39506),o=i(80341),a=i(95540),h=i(14977),l=i(27462),u=i(91907),c=i(36305),d=i(19133),p=i(68287),f=i(23029),g=i(81086),m=i(20442),v=i(33629),y=new r({initialize:function(t,e){this.scene=t,this.tileWidth=e.tileWidth,this.tileHeight=e.tileHeight,this.width=e.width,this.height=e.height,this.orientation=e.orientation,this.renderOrder=e.renderOrder,this.format=e.format,this.version=e.version,this.properties=e.properties,this.widthInPixels=e.widthInPixels,this.heightInPixels=e.heightInPixels,this.imageCollections=e.imageCollections,this.images=e.images,this.layers=e.layers,this.tiles=e.tiles,this.tilesets=e.tilesets,this.objects=e.objects,this.currentLayerIndex=0,this.hexSideLength=e.hexSideLength;var i=this.orientation;this._convert={WorldToTileXY:g.GetWorldToTileXYFunction(i),WorldToTileX:g.GetWorldToTileXFunction(i),WorldToTileY:g.GetWorldToTileYFunction(i),TileToWorldXY:g.GetTileToWorldXYFunction(i),TileToWorldX:g.GetTileToWorldXFunction(i),TileToWorldY:g.GetTileToWorldYFunction(i),GetTileCorners:g.GetTileCornersFunction(i)}},setRenderOrder:function(t){var e=["right-down","left-down","right-up","left-up"];return"number"==typeof t&&(t=e[t]),e.indexOf(t)>-1&&(this.renderOrder=t),this},addTilesetImage:function(t,e,i,r,n,a,h,l){if(void 0===t)return null;null==e&&(e=t);var u=this.scene.sys.textures;if(!u.exists(e))return console.warn('Texture key "%s" not found',e),null;var c=u.get(e),d=this.getTilesetIndex(t);if(null===d&&this.format===o.TILED_JSON)return console.warn('Tilemap has no tileset "%s". Its tilesets are %o',t,this.tilesets),null;var p=this.tilesets[d];return p?(p.setTileSize(i,r),p.setSpacing(n,a),p.setImage(c),p):(void 0===i&&(i=this.tileWidth),void 0===r&&(r=this.tileHeight),void 0===n&&(n=0),void 0===a&&(a=0),void 0===h&&(h=0),void 0===l&&(l={x:0,y:0}),(p=new v(t,h,i,r,n,a,void 0,void 0,l)).setImage(c),this.tilesets.push(p),this.tiles=s(this),p)},copy:function(t,e,i,s,r,n,o,a){return null!==(a=this.getLayer(a))?(g.Copy(t,e,i,s,r,n,o,a),this):null},createBlankLayer:function(t,e,i,s,r,n,o,a){if(void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=this.width),void 0===n&&(n=this.height),void 0===o&&(o=this.tileWidth),void 0===a&&(a=this.tileHeight),null!==this.getLayerIndex(t))return console.warn("Invalid Tilemap Layer ID: "+t),null;for(var l,u=new h({name:t,tileWidth:o,tileHeight:a,width:r,height:n,orientation:this.orientation}),c=0;c-1&&this.putTileAt(e,n.x,n.y,i,n.tilemapLayer)}return s},removeTileAt:function(t,e,i,s,r){return void 0===i&&(i=!0),void 0===s&&(s=!0),null===(r=this.getLayer(r))?null:g.RemoveTileAt(t,e,i,s,r)},removeTileAtWorldXY:function(t,e,i,s,r,n){return void 0===i&&(i=!0),void 0===s&&(s=!0),null===(n=this.getLayer(n))?null:g.RemoveTileAtWorldXY(t,e,i,s,r,n)},renderDebug:function(t,e,i){return null===(i=this.getLayer(i))?null:(this.orientation===u.ORTHOGONAL&&g.RenderDebug(t,e,i),this)},renderDebugFull:function(t,e){for(var i=this.layers,s=0;s{var s=i(44603),r=i(31989);s.register("tilemap",(function(t){var e=void 0!==t?t:{};return r(this.scene,e.key,e.tileWidth,e.tileHeight,e.width,e.height,e.data,e.insertNull)}))},46029:(t,e,i)=>{var s=i(39429),r=i(31989);s.register("tilemap",(function(t,e,i,s,n,o,a){return null===t&&(t=void 0),null===e&&(e=void 0),null===i&&(i=void 0),null===s&&(s=void 0),null===n&&(n=void 0),r(this.scene,t,e,i,s,n,o,a)}))},20442:(t,e,i)=>{var s=i(83419),r=i(78389),n=i(31401),o=i(95643),a=i(81086),h=i(19218),l=i(26099),u=new s({Extends:o,Mixins:[n.Alpha,n.BlendMode,n.ComputedSize,n.Depth,n.Flip,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.Transform,n.Visible,n.ScrollFactor,r,h],initialize:function(t,e,i,s,r,n){o.call(this,t,"TilemapLayer"),this.isTilemap=!0,this.tilemap=e,this.layerIndex=i,this.layer=e.layers[i],this.layer.tilemapLayer=this,this.tileset=[],this.tilesDrawn=0,this.tilesTotal=this.layer.width*this.layer.height,this.culledTiles=[],this.skipCull=!1,this.cullPaddingX=1,this.cullPaddingY=1,this.cullCallback=a.GetCullTilesFunction(this.layer.orientation),this._renderOrder=0,this.gidMap=[],this.tempVec=new l,this.collisionCategory=1,this.collisionMask=1,this.setTilesets(s),this.setAlpha(this.layer.alpha),this.setPosition(r,n),this.setOrigin(0,0),this.setSize(e.tileWidth*this.layer.width,e.tileHeight*this.layer.height),this.initPipeline(),this.initPostPipeline(!1)},setTilesets:function(t){var e=[],i=[],s=this.tilemap;Array.isArray(t)||(t=[t]);for(var r=0;r=0&&t<4&&(this._renderOrder=t),this},calculateFacesAt:function(t,e){return a.CalculateFacesAt(t,e,this.layer),this},calculateFacesWithin:function(t,e,i,s){return a.CalculateFacesWithin(t,e,i,s,this.layer),this},createFromTiles:function(t,e,i,s,r){return a.CreateFromTiles(t,e,i,s,r,this.layer)},cull:function(t){return this.cullCallback(this.layer,t,this.culledTiles,this._renderOrder)},copy:function(t,e,i,s,r,n,o){return a.Copy(t,e,i,s,r,n,o,this.layer),this},fill:function(t,e,i,s,r,n){return a.Fill(t,e,i,s,r,n,this.layer),this},filterTiles:function(t,e,i,s,r,n,o){return a.FilterTiles(t,e,i,s,r,n,o,this.layer)},findByIndex:function(t,e,i){return a.FindByIndex(t,e,i,this.layer)},findTile:function(t,e,i,s,r,n,o){return a.FindTile(t,e,i,s,r,n,o,this.layer)},forEachTile:function(t,e,i,s,r,n,o){return a.ForEachTile(t,e,i,s,r,n,o,this.layer),this},setTint:function(t,e,i,s,r,n){return void 0===t&&(t=16777215),this.forEachTile((function(e){e.tint=t,e.tintFill=!1}),this,e,i,s,r,n)},setTintFill:function(t,e,i,s,r,n){return void 0===t&&(t=16777215),this.forEachTile((function(e){e.tint=t,e.tintFill=!0}),this,e,i,s,r,n)},getTileAt:function(t,e,i){return a.GetTileAt(t,e,i,this.layer)},getTileAtWorldXY:function(t,e,i,s){return a.GetTileAtWorldXY(t,e,i,s,this.layer)},getIsoTileAtWorldXY:function(t,e,i,s,r){void 0===i&&(i=!0);var n=this.tempVec;return a.IsometricWorldToTileXY(t,e,!0,n,r,this.layer,i),this.getTileAt(n.x,n.y,s)},getTilesWithin:function(t,e,i,s,r){return a.GetTilesWithin(t,e,i,s,r,this.layer)},getTilesWithinShape:function(t,e,i){return a.GetTilesWithinShape(t,e,i,this.layer)},getTilesWithinWorldXY:function(t,e,i,s,r,n){return a.GetTilesWithinWorldXY(t,e,i,s,r,n,this.layer)},hasTileAt:function(t,e){return a.HasTileAt(t,e,this.layer)},hasTileAtWorldXY:function(t,e,i){return a.HasTileAtWorldXY(t,e,i,this.layer)},putTileAt:function(t,e,i,s){return a.PutTileAt(t,e,i,s,this.layer)},putTileAtWorldXY:function(t,e,i,s,r){return a.PutTileAtWorldXY(t,e,i,s,r,this.layer)},putTilesAt:function(t,e,i,s){return a.PutTilesAt(t,e,i,s,this.layer),this},randomize:function(t,e,i,s,r){return a.Randomize(t,e,i,s,r,this.layer),this},removeTileAt:function(t,e,i,s){return a.RemoveTileAt(t,e,i,s,this.layer)},removeTileAtWorldXY:function(t,e,i,s,r){return a.RemoveTileAtWorldXY(t,e,i,s,r,this.layer)},renderDebug:function(t,e){return a.RenderDebug(t,e,this.layer),this},replaceByIndex:function(t,e,i,s,r,n){return a.ReplaceByIndex(t,e,i,s,r,n,this.layer),this},setSkipCull:function(t){return void 0===t&&(t=!0),this.skipCull=t,this},setCullPadding:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=1),this.cullPaddingX=t,this.cullPaddingY=e,this},setCollision:function(t,e,i,s){return a.SetCollision(t,e,i,this.layer,s),this},setCollisionBetween:function(t,e,i,s){return a.SetCollisionBetween(t,e,i,s,this.layer),this},setCollisionByProperty:function(t,e,i){return a.SetCollisionByProperty(t,e,i,this.layer),this},setCollisionByExclusion:function(t,e,i){return a.SetCollisionByExclusion(t,e,i,this.layer),this},setCollisionFromCollisionGroup:function(t,e){return a.SetCollisionFromCollisionGroup(t,e,this.layer),this},setTileIndexCallback:function(t,e,i){return a.SetTileIndexCallback(t,e,i,this.layer),this},setTileLocationCallback:function(t,e,i,s,r,n){return a.SetTileLocationCallback(t,e,i,s,r,n,this.layer),this},shuffle:function(t,e,i,s){return a.Shuffle(t,e,i,s,this.layer),this},swapByIndex:function(t,e,i,s,r,n){return a.SwapByIndex(t,e,i,s,r,n,this.layer),this},tileToWorldX:function(t,e){return this.tilemap.tileToWorldX(t,e,this)},tileToWorldY:function(t,e){return this.tilemap.tileToWorldY(t,e,this)},tileToWorldXY:function(t,e,i,s){return this.tilemap.tileToWorldXY(t,e,i,s,this)},getTileCorners:function(t,e,i){return this.tilemap.getTileCorners(t,e,i,this)},weightedRandomize:function(t,e,i,s,r){return a.WeightedRandomize(e,i,s,r,t,this.layer),this},worldToTileX:function(t,e,i){return this.tilemap.worldToTileX(t,e,i,this)},worldToTileY:function(t,e,i){return this.tilemap.worldToTileY(t,e,i,this)},worldToTileXY:function(t,e,i,s,r){return this.tilemap.worldToTileXY(t,e,i,s,r,this)},destroy:function(t){void 0===t&&(t=!0),this.tilemap&&(this.layer.tilemapLayer===this&&(this.layer.tilemapLayer=void 0),t&&this.tilemap.removeLayer(this),this.tilemap=void 0,this.layer=void 0,this.culledTiles.length=0,this.cullCallback=null,this.gidMap=[],this.tileset=[],o.prototype.destroy.call(this))}});t.exports=u},16153:(t,e,i)=>{var s=i(61340),r=new s,n=new s,o=new s;t.exports=function(t,e,i,s){var a=e.cull(i),h=a.length,l=i.alpha*e.alpha;if(!(0===h||l<=0)){var u=r,c=n,d=o;c.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),u.copyFrom(i.matrix);var p=t.currentContext,f=e.gidMap;p.save(),s?(u.multiplyWithOffset(s,-i.scrollX*e.scrollFactorX,-i.scrollY*e.scrollFactorY),c.e=e.x,c.f=e.y,u.multiply(c,d),d.copyToContext(p)):(c.e-=i.scrollX*e.scrollFactorX,c.f-=i.scrollY*e.scrollFactorY,c.copyToContext(p)),(!t.antialias||e.scaleX>1||e.scaleY>1)&&(p.imageSmoothingEnabled=!1);for(var g=0;g{var s,r;i(29747),s=i(99558),r=i(16153),t.exports={renderWebGL:s,renderCanvas:r}},99558:(t,e,i)=>{var s=i(70554);t.exports=function(t,e,i){var r=e.cull(i),n=r.length,o=i.alpha*e.alpha;if(!(0===n||o<=0)){var a=e.gidMap,h=t.pipelines.set(e.pipeline,e),l=s.getTintAppendFloatAlpha,u=e.scrollFactorX,c=e.scrollFactorY,d=e.x,p=e.y,f=e.scaleX,g=e.scaleY;t.pipelines.preBatch(e);for(var m=0;m{var s=i(83419),r=i(26099),n=new s({initialize:function(t,e,i,s,n,o,a,h,l){(void 0===i||i<=0)&&(i=32),(void 0===s||s<=0)&&(s=32),void 0===n&&(n=0),void 0===o&&(o=0),void 0===a&&(a={}),void 0===h&&(h={}),this.name=t,this.firstgid=e,this.tileWidth=i,this.tileHeight=s,this.tileMargin=n,this.tileSpacing=o,this.tileProperties=a,this.tileData=h,this.tileOffset=new r,void 0!==l&&this.tileOffset.set(l.x,l.y),this.image=null,this.glTexture=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},getTileProperties:function(t){return this.containsTileIndex(t)?this.tileProperties[t-this.firstgid]:null},getTileData:function(t){return this.containsTileIndex(t)?this.tileData[t-this.firstgid]:null},getTileCollisionGroup:function(t){var e=this.getTileData(t);return e&&e.objectgroup?e.objectgroup:null},containsTileIndex:function(t){return t>=this.firstgid&&ti.width||e.height>i.height?this.updateTileData(e.width,e.height):this.updateTileData(i.width,i.height,i.x,i.y),this},setTileSize:function(t,e){return void 0!==t&&(this.tileWidth=t),void 0!==e&&(this.tileHeight=e),this.image&&this.updateTileData(this.image.source[0].width,this.image.source[0].height),this},setSpacing:function(t,e){return void 0!==t&&(this.tileMargin=t),void 0!==e&&(this.tileSpacing=e),this.image&&this.updateTileData(this.image.source[0].width,this.image.source[0].height),this},updateTileData:function(t,e,i,s){void 0===i&&(i=0),void 0===s&&(s=0);var r=(e-2*this.tileMargin+this.tileSpacing)/(this.tileHeight+this.tileSpacing),n=(t-2*this.tileMargin+this.tileSpacing)/(this.tileWidth+this.tileSpacing);r%1==0&&n%1==0||console.warn("Image tile area not tile size multiple in: "+this.name),r=Math.floor(r),n=Math.floor(n),this.rows=r,this.columns=n,this.total=r*n,this.texCoordinates.length=0;for(var o=this.tileMargin+i,a=this.tileMargin+s,h=0;h{var s=i(7423);t.exports=function(t,e,i){var r=s(t,e,!0,i),n=s(t,e-1,!0,i),o=s(t,e+1,!0,i),a=s(t-1,e,!0,i),h=s(t+1,e,!0,i),l=r&&r.collides;return l&&(r.faceTop=!0,r.faceBottom=!0,r.faceLeft=!0,r.faceRight=!0),n&&n.collides&&(l&&(r.faceTop=!1),n.faceBottom=!l),o&&o.collides&&(l&&(r.faceBottom=!1),o.faceTop=!l),a&&a.collides&&(l&&(r.faceLeft=!1),a.faceRight=!l),h&&h.collides&&(l&&(r.faceRight=!1),h.faceLeft=!l),r&&!r.collides&&r.resetFaces(),r}},42573:(t,e,i)=>{var s=i(7423),r=i(7386);t.exports=function(t,e,i,n,o){for(var a=null,h=null,l=null,u=null,c=r(t,e,i,n,null,o),d=0;d{var s=new(i(26099));t.exports=function(t,e,i,r){var n=i.tilemapLayer,o=n.cullPaddingX,a=n.cullPaddingY,h=n.tilemap.tileToWorldXY(t,e,s,r,n);return h.x>r.worldView.x+n.scaleX*i.tileWidth*(-o-.5)&&h.xr.worldView.y+n.scaleY*i.tileHeight*(-a-1)&&h.y{var s=i(42573),r=i(7386),n=i(62991),o=i(23029);t.exports=function(t,e,i,a,h,l,u,c){void 0===u&&(u=!0);var d=r(t,e,i,a,null,c),p=[];d.forEach((function(t){var e=new o(t.layer,t.index,t.x,t.y,t.width,t.height,t.baseWidth,t.baseHeight);e.copy(t),p.push(e)}));for(var f=h-t,g=l-e,m=0;m{var s=i(62644),r=i(7386),n=i(27987);t.exports=function(t,e,i,o,a,h){i||(i={}),Array.isArray(t)||(t=[t]);var l=h.tilemapLayer;o||(o=l.scene),a||(a=o.cameras.main);var u,c=h.width,d=h.height,p=r(0,0,c,d,null,h),f=[],g=function(t,e,i){for(var s=0;s{var s=i(87841),r=i(63448),n=i(56583),o=new s;t.exports=function(t,e){var i=t.tilemapLayer.tilemap,s=t.tilemapLayer,a=Math.floor(i.tileWidth*s.scaleX),h=Math.floor(i.tileHeight*s.scaleY),l=n(e.worldView.x-s.x,a,0,!0)-s.cullPaddingX,u=r(e.worldView.right-s.x,a,0,!0)+s.cullPaddingX,c=n(e.worldView.y-s.y,h,0,!0)-s.cullPaddingY,d=r(e.worldView.bottom-s.y,h,0,!0)+s.cullPaddingY;return o.setTo(l,c,u-l,d-c)}},30003:(t,e,i)=>{var s=i(19545),r=i(32483);t.exports=function(t,e,i,n){void 0===i&&(i=[]),void 0===n&&(n=0),i.length=0;var o=t.tilemapLayer,a=s(t,e);return(o.skipCull||1!==o.scrollFactorX||1!==o.scrollFactorY)&&(a.left=0,a.right=t.width,a.top=0,a.bottom=t.height),r(t,a,n,i),i}},35137:(t,e,i)=>{var s=i(7386),r=i(42573),n=i(20576);t.exports=function(t,e,i,o,a,h,l){for(var u=-1!==l.collideIndexes.indexOf(t),c=s(e,i,o,a,null,l),d=0;d{var s=i(7386);t.exports=function(t,e,i,r,n,o,a,h){return s(i,r,n,o,a,h).filter(t,e)}},52692:t=>{t.exports=function(t,e,i,s){void 0===e&&(e=0),void 0===i&&(i=!1);var r,n,o,a=0;if(i){for(n=s.height-1;n>=0;n--)for(r=s.width-1;r>=0;r--)if((o=s.data[n][r])&&o.index===t){if(a===e)return o;a+=1}}else for(n=0;n{var s=i(7386);t.exports=function(t,e,i,r,n,o,a,h){return s(i,r,n,o,a,h).find(t,e)||null}},97560:(t,e,i)=>{var s=i(7386);t.exports=function(t,e,i,r,n,o,a,h){s(i,r,n,o,a,h).forEach(t,e)}},43305:(t,e,i)=>{var s=i(91907),r=i(30003),n=i(9474),o=i(14018),a=i(29747),h=i(54503);t.exports=function(t){return t===s.ORTHOGONAL?r:t===s.HEXAGONAL?n:t===s.STAGGERED?h:t===s.ISOMETRIC?o:a}},7423:(t,e,i)=>{var s=i(62991);t.exports=function(t,e,i,r){if(void 0===i&&(i=!1),s(t,e,r)){var n=r.data[e][t]||null;return n?-1===n.index?i?n:null:n:null}return null}},60540:(t,e,i)=>{var s=i(7423),r=new(i(26099));t.exports=function(t,e,i,n,o){return o.tilemapLayer.worldToTileXY(t,e,!0,r,n),s(r.x,r.y,i,o)}},55826:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r){var n=r.baseTileWidth,o=r.baseTileHeight,a=r.tilemapLayer,h=0,l=0;a&&(i||(i=a.scene.cameras.main),h=a.x+i.scrollX*(1-a.scrollFactorX),l=a.y+i.scrollY*(1-a.scrollFactorY),n*=a.scaleX,o*=a.scaleY);var u=h+t*n,c=l+e*o;return[new s(u,c),new s(u+n,c),new s(u+n,c+o),new s(u,c+o)]}},11758:(t,e,i)=>{var s=i(91907),r=i(27229),n=i(29747),o=i(55826);t.exports=function(t){return t===s.ORTHOGONAL?o:t===s.ISOMETRIC?n:t===s.HEXAGONAL?r:(s.STAGGERED,n)}},39167:(t,e,i)=>{var s=i(91907),r=i(29747),n=i(97281);t.exports=function(t){return t===s.ORTHOGONAL?n:r}},62e3:(t,e,i)=>{var s=i(91907),r=i(19951),n=i(14127),o=i(29747),a=i(97202),h=i(70326);t.exports=function(t){return t===s.ORTHOGONAL?h:t===s.ISOMETRIC?n:t===s.HEXAGONAL?r:t===s.STAGGERED?a:o}},5984:(t,e,i)=>{var s=i(91907),r=i(29747),n=i(28054),o=i(29650);t.exports=function(t){return t===s.ORTHOGONAL?o:t===s.STAGGERED?n:r}},7386:(t,e,i)=>{var s=i(95540);t.exports=function(t,e,i,r,n,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=o.width),void 0===r&&(r=o.height),n||(n={});var a=s(n,"isNotEmpty",!1),h=s(n,"isColliding",!1),l=s(n,"hasInterestingFace",!1);t<0&&(i+=t,t=0),e<0&&(r+=e,e=0),t+i>o.width&&(i=Math.max(o.width-t,0)),e+r>o.height&&(r=Math.max(o.height-e,0));for(var u=[],c=e;c{var s=i(55738),r=i(7386),n=i(91865),o=i(29747),a=i(26099),h=function(t,e){return n.RectangleToTriangle(e,t)},l=new a,u=new a,c=new a;t.exports=function(t,e,i,a){if(void 0===t)return[];var d=o;t instanceof s.Circle?d=n.CircleToRectangle:t instanceof s.Rectangle?d=n.RectangleToRectangle:t instanceof s.Triangle?d=h:t instanceof s.Line&&(d=n.LineToRectangle),a.tilemapLayer.worldToTileXY(t.left,t.top,!0,u,i);var p=u.x,f=u.y;a.tilemapLayer.worldToTileXY(t.right,t.bottom,!1,c,i);var g=Math.ceil(c.x),m=Math.ceil(c.y),v=Math.max(g-p,1),y=Math.max(m-f,1),x=r(p,f,v,y,e,a),w=a.tileWidth,T=a.tileHeight;a.tilemapLayer&&(w*=a.tilemapLayer.scaleX,T*=a.tilemapLayer.scaleY);for(var b=[],S=new s.Rectangle(0,0,w,T),E=0;E{var s=i(7386),r=i(26099),n=new r,o=new r;t.exports=function(t,e,i,r,a,h,l){var u=l.tilemapLayer.tilemap._convert.WorldToTileXY;u(t,e,!0,n,h,l);var c=n.x,d=n.y;u(t+i,e+r,!1,o,h,l);var p=Math.ceil(o.x),f=Math.ceil(o.y);return s(c,d,p-c,f-d,a,l)}},96113:(t,e,i)=>{var s=i(91907),r=i(20242),n=i(10095);t.exports=function(t){return t===s.ORTHOGONAL?n:r}},16926:(t,e,i)=>{var s=i(91907),r=i(86625),n=i(96897),o=i(29747),a=i(15108),h=i(85896);t.exports=function(t){return t===s.ORTHOGONAL?h:t===s.ISOMETRIC?n:t===s.HEXAGONAL?r:t===s.STAGGERED?a:o}},55762:(t,e,i)=>{var s=i(91907),r=i(20242),n=i(51900),o=i(63288);t.exports=function(t){return t===s.ORTHOGONAL?o:t===s.STAGGERED?n:r}},45091:(t,e,i)=>{var s=i(62991);t.exports=function(t,e,i){if(s(t,e,i)){var r=i.data[e][t];return null!==r&&r.index>-1}return!1}},24152:(t,e,i)=>{var s=i(45091),r=new(i(26099));t.exports=function(t,e,i,n){n.tilemapLayer.worldToTileXY(t,e,!0,r,i);var o=r.x,a=r.y;return s(o,a,n)}},90454:(t,e,i)=>{var s=i(63448),r=i(56583);t.exports=function(t,e){var i,n,o,a,h=t.tilemapLayer.tilemap,l=t.tilemapLayer,u=Math.floor(h.tileWidth*l.scaleX),c=Math.floor(h.tileHeight*l.scaleY),d=t.hexSideLength;if("y"===t.staggerAxis){var p=(c-d)/2+d;i=r(e.worldView.x-l.x,u,0,!0)-l.cullPaddingX,n=s(e.worldView.right-l.x,u,0,!0)+l.cullPaddingX,o=r(e.worldView.y-l.y,p,0,!0)-l.cullPaddingY,a=s(e.worldView.bottom-l.y,p,0,!0)+l.cullPaddingY}else{var f=(u-d)/2+d;i=r(e.worldView.x-l.x,f,0,!0)-l.cullPaddingX,n=s(e.worldView.right-l.x,f,0,!0)+l.cullPaddingX,o=r(e.worldView.y-l.y,c,0,!0)-l.cullPaddingY,a=s(e.worldView.bottom-l.y,c,0,!0)+l.cullPaddingY}return{left:i,right:n,top:o,bottom:a}}},9474:(t,e,i)=>{var s=i(90454),r=i(32483);t.exports=function(t,e,i,n){void 0===i&&(i=[]),void 0===n&&(n=0),i.length=0;var o=t.tilemapLayer,a=s(t,e);return o.skipCull&&1===o.scrollFactorX&&1===o.scrollFactorY&&(a.left=0,a.right=t.width,a.top=0,a.bottom=t.height),r(t,a,n,i),i}},27229:(t,e,i)=>{var s=i(19951),r=i(26099),n=new r;t.exports=function(t,e,i,o){var a=o.baseTileWidth,h=o.baseTileHeight,l=o.tilemapLayer;l&&(a*=l.scaleX,h*=l.scaleY);var u,c,d=s(t,e,n,i,o),p=[],f=.5773502691896257;"y"===o.staggerAxis?(u=f*a,c=h/2):(u=a/2,c=f*h);for(var g=0;g<6;g++){var m=2*Math.PI*(.5-g)/6;p.push(new r(d.x+u*Math.cos(m),d.y+c*Math.sin(m)))}return p}},19951:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r,n){i||(i=new s);var o=n.baseTileWidth,a=n.baseTileHeight,h=n.tilemapLayer,l=0,u=0;h&&(r||(r=h.scene.cameras.main),l=h.x+r.scrollX*(1-h.scrollFactorX),u=h.y+r.scrollY*(1-h.scrollFactorY),o*=h.scaleX,a*=h.scaleY);var c,d,p=o/2,f=a/2;return"y"===n.staggerAxis?(c=l+o*t+o,d=u+1.5*e*f+f,e%2==0&&("odd"===this.staggerIndex?c-=p:c+=p)):"x"===this.staggerAxis&&"odd"===this.staggerIndex&&(c=l+1.5*t*p+p,d=u+a*t+a,t%2==0&&("odd"===this.staggerIndex?d-=f:d+=f)),i.set(c,d)}},86625:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r,n,o){r||(r=new s);var a=o.baseTileWidth,h=o.baseTileHeight,l=o.tilemapLayer;l&&(n||(n=l.scene.cameras.main),t-=l.x+n.scrollX*(1-l.scrollFactorX),e-=l.y+n.scrollY*(1-l.scrollFactorY),a*=l.scaleX,h*=l.scaleY);var u,c,d,p,f,g=.5773502691896257,m=-.3333333333333333,v=.6666666666666666,y=a/2,x=h/2;"y"===o.staggerAxis?(d=g*(u=(t-y)/(g*a))+m*(c=(e-x)/x),p=0*u+v*c):(d=m*(u=(t-y)/y)+g*(c=(e-x)/(g*h)),p=v*u+0*c),f=-d-p;var w,T=Math.round(d),b=Math.round(p),S=Math.round(f),E=Math.abs(T-d),C=Math.abs(b-p),A=Math.abs(S-f);E>C&&E>A?T=-b-S:C>A&&(b=-T-S);var _=b;return w="odd"===o.staggerIndex?_%2==0?b/2+T:b/2+T-.5:_%2==0?b/2+T:b/2+T+.5,r.set(w,_)}},62991:t=>{t.exports=function(t,e,i){return t>=0&&t=0&&e{var s=i(33528);t.exports=function(t,e,i,r){void 0===i&&(i=[]),void 0===r&&(r=0),i.length=0;var n,o,a,h=t.tilemapLayer,l=t.data,u=t.width,c=t.height,d=h.skipCull,p=u,f=c;if(0===r)for(o=0;o=0;n--)(a=l[o][n])&&-1!==a.index&&a.visible&&0!==a.alpha&&(d||s(n,o,t,e))&&i.push(a);else if(2===r)for(o=f;o>=0;o--)for(n=0;n=0;o--)for(n=p;n>=0;n--)(a=l[o][n])&&-1!==a.index&&a.visible&&0!==a.alpha&&(d||s(n,o,t,e))&&i.push(a);return h.tilesDrawn=i.length,h.tilesTotal=u*c,i}},14127:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r,n){i||(i=new s);var o=n.baseTileWidth,a=n.baseTileHeight,h=n.tilemapLayer,l=0,u=0;h&&(r||(r=h.scene.cameras.main),l=h.x+r.scrollX*(1-h.scrollFactorX),o*=h.scaleX,u=h.y+r.scrollY*(1-h.scrollFactorY),a*=h.scaleY);var c=l+o/2*(t-e),d=u+(t+e)*(a/2);return i.set(c,d)}},96897:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r,n,o,a){r||(r=new s);var h=o.baseTileWidth,l=o.baseTileHeight,u=o.tilemapLayer;u&&(n||(n=u.scene.cameras.main),e-=u.y+n.scrollY*(1-u.scrollFactorY),l*=u.scaleY,t-=u.x+n.scrollX*(1-u.scrollFactorX),h*=u.scaleX);var c=h/2,d=l/2;a||(e-=l);var p=.5*((t-=c)/c+e/d),f=.5*(-t/c+e/d);return i&&(p=Math.floor(p),f=Math.floor(f)),r.set(p,f)}},71558:(t,e,i)=>{var s=i(23029),r=i(62991),n=i(72023),o=i(20576);t.exports=function(t,e,i,a,h){if(void 0===a&&(a=!0),!r(e,i,h))return null;var l,u=h.data[i][e],c=u&&u.collides;t instanceof s?(null===h.data[i][e]&&(h.data[i][e]=new s(h,t.index,e,i,h.tileWidth,h.tileHeight)),h.data[i][e].copy(t)):(l=t,null===h.data[i][e]?h.data[i][e]=new s(h,l,e,i,h.tileWidth,h.tileHeight):h.data[i][e].index=l);var d=h.data[i][e],p=-1!==h.collideIndexes.indexOf(d.index);if(-1===(l=t instanceof s?t.index:t))d.width=h.tileWidth,d.height=h.tileHeight;else{var f=h.tilemapLayer.tilemap,g=f.tiles[l][2],m=f.tilesets[g];d.width=m.tileWidth,d.height=m.tileHeight}return o(d,p),a&&c!==d.collides&&n(e,i,h),d}},26303:(t,e,i)=>{var s=i(71558),r=new(i(26099));t.exports=function(t,e,i,n,o,a){return a.tilemapLayer.worldToTileXY(e,i,!0,r,o,a),s(t,r.x,r.y,n,a)}},14051:(t,e,i)=>{var s=i(42573),r=i(71558);t.exports=function(t,e,i,n,o){if(void 0===n&&(n=!0),!Array.isArray(t))return null;Array.isArray(t[0])||(t=[t]);for(var a=t.length,h=t[0].length,l=0;l{var s=i(7386),r=i(26546);t.exports=function(t,e,i,n,o,a){var h,l=s(t,e,i,n,{},a);if(!o)for(o=[],h=0;h{var s=i(23029),r=i(62991),n=i(72023);t.exports=function(t,e,i,o,a){if(void 0===i&&(i=!0),void 0===o&&(o=!0),!r(t,e,a))return null;var h=a.data[e][t];return h?(a.data[e][t]=i?null:new s(a,-1,t,e,a.tileWidth,a.tileHeight),o&&h&&h.collides&&n(t,e,a),h):null}},94178:(t,e,i)=>{var s=i(63557),r=new(i(26099));t.exports=function(t,e,i,n,o,a){return a.tilemapLayer.worldToTileXY(t,e,!0,r,o,a),s(r.x,r.y,i,n,a)}},15533:(t,e,i)=>{var s=i(7386),r=i(3956),n=new r(105,210,231,150),o=new r(243,134,48,200),a=new r(40,39,37,150);t.exports=function(t,e,i){void 0===e&&(e={});var r=void 0!==e.tileColor?e.tileColor:n,h=void 0!==e.collidingTileColor?e.collidingTileColor:o,l=void 0!==e.faceColor?e.faceColor:a,u=s(0,0,i.width,i.height,null,i);t.translateCanvas(i.tilemapLayer.x,i.tilemapLayer.y),t.scaleCanvas(i.tilemapLayer.scaleX,i.tilemapLayer.scaleY);for(var c=0;c{var s=i(7386);t.exports=function(t,e,i,r,n,o,a){for(var h=s(i,r,n,o,null,a),l=0;l{t.exports=function(t,e,i,s){var r,n,o,a=t.data,h=t.width,l=t.height,u=t.tilemapLayer,c=Math.max(0,e.left),d=Math.min(h,e.right),p=Math.max(0,e.top),f=Math.min(l,e.bottom);if(0===i)for(n=p;n=c;r--)(o=a[n][r])&&-1!==o.index&&o.visible&&0!==o.alpha&&s.push(o);else if(2===i)for(n=f;n>=p;n--)for(r=c;a[n]&&r=p;n--)for(r=d;a[n]&&r>=c;r--)(o=a[n][r])&&-1!==o.index&&o.visible&&0!==o.alpha&&s.push(o);return u.tilesDrawn=s.length,u.tilesTotal=h*l,s}},57068:(t,e,i)=>{var s=i(20576),r=i(42573),n=i(9589);t.exports=function(t,e,i,o,a){void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===a&&(a=!0),Array.isArray(t)||(t=[t]);for(var h=0;h{var s=i(20576),r=i(42573),n=i(9589);t.exports=function(t,e,i,o,a,h){if(void 0===i&&(i=!0),void 0===o&&(o=!0),void 0===h&&(h=!0),!(t>e)){for(var l=t;l<=e;l++)n(l,i,a);if(h)for(var u=0;u=t&&d.index<=e&&s(d,i)}o&&r(0,0,a.width,a.height,a)}}},75661:(t,e,i)=>{var s=i(20576),r=i(42573),n=i(9589);t.exports=function(t,e,i,o){void 0===e&&(e=!0),void 0===i&&(i=!0),Array.isArray(t)||(t=[t]);for(var a=0;a{var s=i(20576),r=i(42573),n=i(97022);t.exports=function(t,e,i,o){void 0===e&&(e=!0),void 0===i&&(i=!0);for(var a=0;a{var s=i(20576),r=i(42573);t.exports=function(t,e,i){void 0===t&&(t=!0),void 0===e&&(e=!0);for(var n=0;n0&&s(a,t)}}e&&r(0,0,i.width,i.height,i)}},9589:t=>{t.exports=function(t,e,i){var s=i.collideIndexes.indexOf(t);e&&-1===s?i.collideIndexes.push(t):e||-1===s||i.collideIndexes.splice(s,1)}},20576:t=>{t.exports=function(t,e){e?t.setCollision(!0,!0,!0,!0,!1):t.resetCollision(!1)}},79583:t=>{t.exports=function(t,e,i,s){if("number"==typeof t)s.callbacks[t]=null!==e?{callback:e,callbackContext:i}:void 0;else for(var r=0,n=t.length;r{var s=i(7386);t.exports=function(t,e,i,r,n,o,a){for(var h=s(t,e,i,r,null,a),l=0;l{var s=i(7386),r=i(33680);t.exports=function(t,e,i,n,o){var a=s(t,e,i,n,null,o),h=a.map((function(t){return t.index}));r(h);for(var l=0;l{var s=i(63448),r=i(56583);t.exports=function(t,e){var i=t.tilemapLayer.tilemap,n=t.tilemapLayer,o=Math.floor(i.tileWidth*n.scaleX),a=Math.floor(i.tileHeight*n.scaleY);return{left:r(e.worldView.x-n.x,o,0,!0)-n.cullPaddingX,right:s(e.worldView.right-n.x,o,0,!0)+n.cullPaddingX,top:r(e.worldView.y-n.y,a/2,0,!0)-n.cullPaddingY,bottom:s(e.worldView.bottom-n.y,a/2,0,!0)+n.cullPaddingY}}},54503:(t,e,i)=>{var s=i(61325),r=i(32483);t.exports=function(t,e,i,n){void 0===i&&(i=[]),void 0===n&&(n=0),i.length=0;var o=t.tilemapLayer,a=s(t,e);return o.skipCull&&1===o.scrollFactorX&&1===o.scrollFactorY&&(a.left=0,a.right=t.width,a.top=0,a.bottom=t.height),r(t,a,n,i),i}},97202:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r,n){i||(i=new s);var o=n.baseTileWidth,a=n.baseTileHeight,h=n.tilemapLayer,l=0,u=0;h&&(r||(r=h.scene.cameras.main),l=h.x+r.scrollX*(1-h.scrollFactorX),o*=h.scaleX,u=h.y+r.scrollY*(1-h.scrollFactorY),a*=h.scaleY);var c=l+t*o+e%2*(o/2),d=u+e*(a/2);return i.set(c,d)}},28054:t=>{t.exports=function(t,e,i){var s=i.baseTileHeight,r=i.tilemapLayer,n=0;return r&&(void 0===e&&(e=r.scene.cameras.main),n=r.y+e.scrollY*(1-r.scrollFactorY),s*=r.scaleY),n+t*(s/2)+s}},15108:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r,n,o){r||(r=new s);var a=o.baseTileWidth,h=o.baseTileHeight,l=o.tilemapLayer;l&&(n||(n=l.scene.cameras.main),e-=l.y+n.scrollY*(1-l.scrollFactorY),h*=l.scaleY,t-=l.x+n.scrollX*(1-l.scrollFactorX),a*=l.scaleX);var u=i?Math.floor(e/(h/2)):e/(h/2),c=i?Math.floor((t+u%2*.5*a)/a):(t+u%2*.5*a)/a;return r.set(c,u)}},51900:t=>{t.exports=function(t,e,i,s){var r=s.baseTileHeight,n=s.tilemapLayer;return n&&(i||(i=n.scene.cameras.main),t-=n.y+i.scrollY*(1-n.scrollFactorY),r*=n.scaleY),e?Math.floor(t/(r/2)):t/(r/2)}},86560:(t,e,i)=>{var s=i(7386);t.exports=function(t,e,i,r,n,o,a){for(var h=s(i,r,n,o,null,a),l=0;l{t.exports=function(t,e,i){var s=i.baseTileWidth,r=i.tilemapLayer,n=0;return r&&(e||(e=r.scene.cameras.main),n=r.x+e.scrollX*(1-r.scrollFactorX),s*=r.scaleX),n+t*s}},70326:(t,e,i)=>{var s=i(97281),r=i(29650),n=i(26099);t.exports=function(t,e,i,o,a){return i||(i=new n(0,0)),i.x=s(t,o,a),i.y=r(e,o,a),i}},29650:t=>{t.exports=function(t,e,i){var s=i.baseTileHeight,r=i.tilemapLayer,n=0;return r&&(e||(e=r.scene.cameras.main),n=r.y+e.scrollY*(1-r.scrollFactorY),s*=r.scaleY),n+t*s}},77366:(t,e,i)=>{var s=i(7386),r=i(75508);t.exports=function(t,e,i,n,o,a){if(o){var h,l=s(t,e,i,n,null,a),u=0;for(h=0;h{var s=i(85896),r=new(i(26099));t.exports=function(t,e,i,n){return s(t,0,e,r,i,n),r.x}},85896:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r,n,o){void 0===i&&(i=!0),r||(r=new s);var a=o.baseTileWidth,h=o.baseTileHeight,l=o.tilemapLayer;l&&(n||(n=l.scene.cameras.main),t-=l.x+n.scrollX*(1-l.scrollFactorX),e-=l.y+n.scrollY*(1-l.scrollFactorY),a*=l.scaleX,h*=l.scaleY);var u=t/a,c=e/h;return i&&(u=Math.floor(u),c=Math.floor(c)),r.set(u,c)}},63288:(t,e,i)=>{var s=i(85896),r=new(i(26099));t.exports=function(t,e,i,n){return s(0,t,e,r,i,n),r.y}},81086:(t,e,i)=>{t.exports={CalculateFacesAt:i(72023),CalculateFacesWithin:i(42573),CheckIsoBounds:i(33528),Copy:i(1785),CreateFromTiles:i(78419),CullBounds:i(19545),CullTiles:i(30003),Fill:i(35137),FilterTiles:i(40253),FindByIndex:i(52692),FindTile:i(66151),ForEachTile:i(97560),GetCullTilesFunction:i(43305),GetTileAt:i(7423),GetTileAtWorldXY:i(60540),GetTileCorners:i(55826),GetTileCornersFunction:i(11758),GetTilesWithin:i(7386),GetTilesWithinShape:i(91141),GetTilesWithinWorldXY:i(96523),GetTileToWorldXFunction:i(39167),GetTileToWorldXYFunction:i(62e3),GetTileToWorldYFunction:i(5984),GetWorldToTileXFunction:i(96113),GetWorldToTileXYFunction:i(16926),GetWorldToTileYFunction:i(55762),HasTileAt:i(45091),HasTileAtWorldXY:i(24152),HexagonalCullBounds:i(90454),HexagonalCullTiles:i(9474),HexagonalGetTileCorners:i(27229),HexagonalTileToWorldXY:i(19951),HexagonalWorldToTileXY:i(86625),IsInLayerBounds:i(62991),IsometricCullTiles:i(14018),IsometricTileToWorldXY:i(14127),IsometricWorldToTileXY:i(96897),PutTileAt:i(71558),PutTileAtWorldXY:i(26303),PutTilesAt:i(14051),Randomize:i(77389),RemoveTileAt:i(63557),RemoveTileAtWorldXY:i(94178),RenderDebug:i(15533),ReplaceByIndex:i(27987),RunCull:i(32483),SetCollision:i(57068),SetCollisionBetween:i(37266),SetCollisionByExclusion:i(75661),SetCollisionByProperty:i(64740),SetCollisionFromCollisionGroup:i(63307),SetLayerCollisionIndex:i(9589),SetTileCollision:i(20576),SetTileIndexCallback:i(79583),SetTileLocationCallback:i(93254),Shuffle:i(32903),StaggeredCullBounds:i(61325),StaggeredCullTiles:i(54503),StaggeredTileToWorldXY:i(97202),StaggeredTileToWorldY:i(28054),StaggeredWorldToTileXY:i(15108),StaggeredWorldToTileY:i(51900),SwapByIndex:i(86560),TileToWorldX:i(97281),TileToWorldXY:i(70326),TileToWorldY:i(29650),WeightedRandomize:i(77366),WorldToTileX:i(10095),WorldToTileXY:i(85896),WorldToTileY:i(63288)}},91907:t=>{t.exports={ORTHOGONAL:0,ISOMETRIC:1,STAGGERED:2,HEXAGONAL:3}},21829:(t,e,i)=>{var s={ORIENTATION:i(91907)};t.exports=s},62501:(t,e,i)=>{var s=i(79291),r=i(21829),n={Components:i(81086),Parsers:i(57442),Formats:i(80341),ImageCollection:i(16536),ParseToTilemap:i(31989),Tile:i(23029),Tilemap:i(49075),TilemapCreator:i(45939),TilemapFactory:i(46029),Tileset:i(33629),TilemapLayer:i(20442),Orientation:i(91907),LayerData:i(14977),MapData:i(87010),ObjectLayer:i(48700)};n=s(!1,n,r.ORIENTATION),t.exports=n},14977:(t,e,i)=>{var s=i(83419),r=i(91907),n=i(95540),o=new s({initialize:function(t){void 0===t&&(t={}),this.name=n(t,"name","layer"),this.id=n(t,"id",0),this.x=n(t,"x",0),this.y=n(t,"y",0),this.width=n(t,"width",0),this.height=n(t,"height",0),this.tileWidth=n(t,"tileWidth",0),this.tileHeight=n(t,"tileHeight",0),this.baseTileWidth=n(t,"baseTileWidth",this.tileWidth),this.baseTileHeight=n(t,"baseTileHeight",this.tileHeight),this.orientation=n(t,"orientation",r.ORTHOGONAL),this.widthInPixels=n(t,"widthInPixels",this.width*this.baseTileWidth),this.heightInPixels=n(t,"heightInPixels",this.height*this.baseTileHeight),this.alpha=n(t,"alpha",1),this.visible=n(t,"visible",!0),this.properties=n(t,"properties",[]),this.indexes=n(t,"indexes",[]),this.collideIndexes=n(t,"collideIndexes",[]),this.callbacks=n(t,"callbacks",[]),this.bodies=n(t,"bodies",[]),this.data=n(t,"data",[]),this.tilemapLayer=n(t,"tilemapLayer",null),this.hexSideLength=n(t,"hexSideLength",0),this.staggerAxis=n(t,"staggerAxis","y"),this.staggerIndex=n(t,"staggerIndex","odd")}});t.exports=o},87010:(t,e,i)=>{var s=i(83419),r=i(91907),n=i(95540),o=new s({initialize:function(t){void 0===t&&(t={}),this.name=n(t,"name","map"),this.width=n(t,"width",0),this.height=n(t,"height",0),this.infinite=n(t,"infinite",!1),this.tileWidth=n(t,"tileWidth",0),this.tileHeight=n(t,"tileHeight",0),this.widthInPixels=n(t,"widthInPixels",this.width*this.tileWidth),this.heightInPixels=n(t,"heightInPixels",this.height*this.tileHeight),this.format=n(t,"format",null),this.orientation=n(t,"orientation",r.ORTHOGONAL),this.renderOrder=n(t,"renderOrder","right-down"),this.version=n(t,"version","1"),this.properties=n(t,"properties",{}),this.layers=n(t,"layers",[]),this.images=n(t,"images",[]),this.objects=n(t,"objects",[]),Array.isArray(this.objects)||(this.objects=[]),this.collision=n(t,"collision",{}),this.tilesets=n(t,"tilesets",[]),this.imageCollections=n(t,"imageCollections",[]),this.tiles=n(t,"tiles",[]),this.hexSideLength=n(t,"hexSideLength",0),this.staggerAxis=n(t,"staggerAxis","y"),this.staggerIndex=n(t,"staggerIndex","odd")}});t.exports=o},48700:(t,e,i)=>{var s=i(83419),r=i(95540),n=new s({initialize:function(t){void 0===t&&(t={}),this.name=r(t,"name","object layer"),this.id=r(t,"id",0),this.opacity=r(t,"opacity",1),this.properties=r(t,"properties",{}),this.propertyTypes=r(t,"propertytypes",{}),this.type=r(t,"type","objectgroup"),this.visible=r(t,"visible",!0),this.objects=r(t,"objects",[]),Array.isArray(this.objects)||(this.objects=[])}});t.exports=n},6641:(t,e,i)=>{var s=i(91907);t.exports=function(t){return"isometric"===(t=t.toLowerCase())?s.ISOMETRIC:"staggered"===t?s.STAGGERED:"hexagonal"===t?s.HEXAGONAL:s.ORTHOGONAL}},46177:(t,e,i)=>{var s=i(80341),r=i(2342),n=i(82593),o=i(46594),a=i(87021);t.exports=function(t,e,i,h,l,u){var c;switch(e){case s.ARRAY_2D:c=r(t,i,h,l,u);break;case s.CSV:c=n(t,i,h,l,u);break;case s.TILED_JSON:c=o(t,i,u);break;case s.WELTMEISTER:c=a(t,i,u);break;default:console.warn("Unrecognized tilemap data format: "+e),c=null}return c}},2342:(t,e,i)=>{var s=i(80341),r=i(14977),n=i(87010),o=i(23029);t.exports=function(t,e,i,a,h){for(var l=new r({tileWidth:i,tileHeight:a}),u=new n({name:t,tileWidth:i,tileHeight:a,format:s.ARRAY_2D,layers:[l]}),c=[],d=e.length,p=0,f=0;f{var s=i(80341),r=i(2342);t.exports=function(t,e,i,n,o){var a=e.trim().split("\n").map((function(t){return t.split(",")})),h=r(t,a,i,n,o);return h.format=s.CSV,h}},6656:(t,e,i)=>{var s=i(14977),r=i(23029);t.exports=function(t,e){for(var i=[],n=0;n-1?new r(a,p,c,u,o.tilesize,o.tilesize):e?null:new r(a,-1,c,u,o.tilesize,o.tilesize),h.push(d)}l.push(h),h=[]}a.data=l,i.push(a)}return i}},96483:(t,e,i)=>{var s=i(33629);t.exports=function(t){for(var e=[],i=[],r=0;r{var s=i(80341),r=i(87010),n=i(6656),o=i(96483);t.exports=function(t,e,i){if(0===e.layer.length)return console.warn("No layers found in the Weltmeister map: "+t),null;for(var a=0,h=0,l=0;la&&(a=e.layer[l].width),e.layer[l].height>h&&(h=e.layer[l].height);var u=new r({width:a,height:h,name:t,tileWidth:e.layer[0].tilesize,tileHeight:e.layer[0].tilesize,format:s.WELTMEISTER});return u.layers=n(e,i),u.tilesets=o(e),u}},52833:(t,e,i)=>{t.exports={ParseTileLayers:i(6656),ParseTilesets:i(96483),ParseWeltmeister:i(87021)}},57442:(t,e,i)=>{t.exports={FromOrientationString:i(6641),Parse:i(46177),Parse2DArray:i(2342),ParseCSV:i(82593),Impact:i(52833),Tiled:i(96761)}},51233:(t,e,i)=>{var s=i(79291);t.exports=function(t){for(var e,i,r,n,o,a=0;a{t.exports=function(t){for(var e=window.atob(t),i=e.length,s=new Array(i/4),r=0;r>>0;return s}},84101:(t,e,i)=>{var s=i(33629);t.exports=function(t){var e,i,r=[];for(e=0;e{var s=i(95540);t.exports=function(t,e,i){if(!e)return{i:0,layers:t.layers,name:"",opacity:1,visible:!0,x:0,y:0};var r=e.x+s(e,"startx",0)*t.tilewidth+s(e,"offsetx",0),n=e.y+s(e,"starty",0)*t.tileheight+s(e,"offsety",0);return{i:0,layers:e.layers,name:i.name+e.name+"/",opacity:i.opacity*e.opacity,visible:i.visible&&e.visible,x:i.x+r,y:i.y+n}}},29920:t=>{var e=2147483648,i=1073741824,s=536870912;t.exports=function(t){var r=Boolean(t&e),n=Boolean(t&i),o=Boolean(t&s);t&=536870911;var a=0,h=!1;return r&&n&&o?(a=Math.PI/2,h=!0):r&&n&&!o?(a=Math.PI,h=!1):r&&!n&&o?(a=Math.PI/2,h=!1):!r||n||o?!r&&n&&o?(a=3*Math.PI/2,h=!1):r||!n||o?r||n||!o?r||n||o||(a=0,h=!1):(a=3*Math.PI/2,h=!0):(a=Math.PI,h=!0):(a=0,h=!0),{gid:t,flippedHorizontal:r,flippedVertical:n,flippedAntiDiagonal:o,rotation:a,flipped:h}}},12635:(t,e,i)=>{var s=i(95540),r=i(79677);t.exports=function(t){for(var e=[],i=[],n=r(t);n.i0;)if(n.i>=n.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}n=i.pop()}else{var o=n.layers[n.i];if(n.i++,"imagelayer"===o.type){var a=s(o,"offsetx",0)+s(o,"startx",0),h=s(o,"offsety",0)+s(o,"starty",0);e.push({name:n.name+o.name,image:o.image,x:n.x+a+o.x,y:n.y+h+o.y,alpha:n.opacity*o.opacity,visible:n.visible&&o.visible,properties:s(o,"properties",{})})}else if("group"===o.type){var l=r(t,o,n);i.push(n),n=l}}return e}},46594:(t,e,i)=>{var s=i(51233),r=i(84101),n=i(91907),o=i(62644),a=i(80341),h=i(6641),l=i(87010),u=i(12635),c=i(22611),d=i(28200),p=i(24619);t.exports=function(t,e,i){var f=o(e),g=new l({width:f.width,height:f.height,name:t,tileWidth:f.tilewidth,tileHeight:f.tileheight,orientation:h(f.orientation),format:a.TILED_JSON,version:f.version,properties:f.properties,renderOrder:f.renderorder,infinite:f.infinite});g.orientation===n.HEXAGONAL&&(g.hexSideLength=f.hexsidelength,g.staggerAxis=f.staggeraxis,g.staggerIndex=f.staggerindex),g.layers=d(f,i),g.images=u(f);var m=p(f);return g.tilesets=m.tilesets,g.imageCollections=m.imageCollections,g.objects=c(f),g.tiles=r(g),s(g),g}},52205:(t,e,i)=>{var s=i(18254),r=i(29920),n=function(t){return{x:t.x,y:t.y}},o=["id","name","type","rotation","properties","visible","x","y","width","height"];t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0);var a=s(t,o);if(a.x+=e,a.y+=i,t.gid){var h=r(t.gid);a.gid=h.gid,a.flippedHorizontal=h.flippedHorizontal,a.flippedVertical=h.flippedVertical,a.flippedAntiDiagonal=h.flippedAntiDiagonal}else t.polyline?a.polyline=t.polyline.map(n):t.polygon?a.polygon=t.polygon.map(n):t.ellipse?a.ellipse=t.ellipse:t.text?a.text=t.text:t.point?a.point=!0:a.rectangle=!0;return a}},22611:(t,e,i)=>{var s=i(95540),r=i(52205),n=i(48700),o=i(79677);t.exports=function(t){for(var e=[],i=[],a=o(t);a.i0;)if(a.i>=a.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}a=i.pop()}else{var h=a.layers[a.i];if(a.i++,h.opacity*=a.opacity,h.visible=a.visible&&h.visible,"objectgroup"===h.type){h.name=a.name+h.name;for(var l=a.x+s(h,"startx",0)+s(h,"offsetx",0),u=a.y+s(h,"starty",0)+s(h,"offsety",0),c=[],d=0;d{var s=i(41868),r=i(91907),n=i(79677),o=i(6641),a=i(95540),h=i(14977),l=i(29920),u=i(23029);t.exports=function(t,e){for(var i=a(t,"infinite",!1),c=[],d=[],p=n(t);p.i0;)if(p.i>=p.layers.length){if(d.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}p=d.pop()}else{var f=p.layers[p.i];if(p.i++,"tilelayer"===f.type)if(f.compression)console.warn("TilemapParser.parseTiledJSON - Layer compression is unsupported, skipping layer '"+f.name+"'");else{if(f.encoding&&"base64"===f.encoding){if(f.chunks)for(var g=0;g0?((y=new u(m,v.gid,L,O,t.tilewidth,t.tileheight)).rotation=v.rotation,y.flipX=v.flipped,w[O][L]=y):(x=e?null:new u(m,-1,L,O,t.tilewidth,t.tileheight),w[O][L]=x),++T===A.width&&(R++,T=0)}}else{(m=new h({name:p.name+f.name,id:f.id,x:p.x+a(f,"offsetx",0)+f.x,y:p.y+a(f,"offsety",0)+f.y,width:f.width,height:f.height,tileWidth:t.tilewidth,tileHeight:t.tileheight,alpha:p.opacity*f.opacity,visible:p.visible&&f.visible,properties:a(f,"properties",[]),orientation:o(t.orientation)})).orientation===r.HEXAGONAL&&(m.hexSideLength=t.hexsidelength,m.staggerAxis=t.staggeraxis,m.staggerIndex=t.staggerindex);for(var F=[],D=0,I=f.data.length;D0?((y=new u(m,v.gid,T,w.length,t.tilewidth,t.tileheight)).rotation=v.rotation,y.flipX=v.flipped,F.push(y)):(x=e?null:new u(m,-1,T,w.length,t.tilewidth,t.tileheight),F.push(x)),++T===f.width&&(w.push(F),T=0,F=[])}m.data=w,c.push(m)}else if("group"===f.type){var B=n(t,f,p);d.push(p),p=B}}return c}},24619:(t,e,i)=>{var s=i(33629),r=i(16536),n=i(52205),o=i(57880);t.exports=function(t){for(var e,i=[],a=[],h=null,l=0;l1){var d=void 0,p=void 0;if(Array.isArray(u.tiles)){d=d||{},p=p||{};for(var f=0;f{t.exports=function(t,e){for(var i=0;i0){var n,o,a,h={},l={};if(Array.isArray(s.edgecolors))for(n=0;n{t.exports={AssignTileProperties:i(51233),Base64Decode:i(41868),BuildTilesetIndex:i(84101),CreateGroupLayer:i(79677),ParseGID:i(29920),ParseImageLayers:i(12635),ParseJSONTiled:i(46594),ParseObject:i(52205),ParseObjectLayers:i(22611),ParseTileLayers:i(28200),ParseTilesets:i(24619)}},33385:(t,e,i)=>{var s=i(83419),r=i(37277),n=i(44594),o=i(94880),a=i(72905),h=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.now=0,this.startTime=0,this.timeScale=1,this.paused=!1,this._active=[],this._pendingInsertion=[],this._pendingRemoval=[],t.sys.events.once(n.BOOT,this.boot,this),t.sys.events.on(n.START,this.start,this)},boot:function(){this.now=this.systems.game.loop.time,this.systems.events.once(n.DESTROY,this.destroy,this)},start:function(){this.startTime=this.systems.game.loop.time;var t=this.systems.events;t.on(n.PRE_UPDATE,this.preUpdate,this),t.on(n.UPDATE,this.update,this),t.once(n.SHUTDOWN,this.shutdown,this)},addEvent:function(t){var e;return t instanceof o?(e=t,this.removeEvent(e),e.elapsed=e.startAt,e.hasDispatched=!1,e.repeatCount=-1===e.repeat||e.loop?999999999999:e.repeat):e=new o(t),this._pendingInsertion.push(e),e},delayedCall:function(t,e,i,s){return this.addEvent({delay:t,callback:e,args:i,callbackScope:s})},clearPendingEvents:function(){return this._pendingInsertion=[],this},removeEvent:function(t){Array.isArray(t)||(t=[t]);for(var e=0;e-1&&this._active.splice(r,1),s.destroy()}for(i=0;i=s.delay)){var r=s.elapsed-s.delay;if(s.elapsed=s.delay,!s.hasDispatched&&s.callback&&(s.hasDispatched=!0,s.callback.apply(s.callbackScope,s.args)),s.repeatCount>0){if(s.repeatCount--,r>=s.delay)for(;r>=s.delay&&s.repeatCount>0;)s.callback&&s.callback.apply(s.callbackScope,s.args),r-=s.delay,s.repeatCount--;s.elapsed=r,s.hasDispatched=!1}else s.hasDispatched&&this._pendingRemoval.push(s)}}}},shutdown:function(){var t;for(t=0;t{var s=i(83419),r=i(50792),n=i(39429),o=i(95540),a=i(44594),h=i(89809),l=new s({Extends:r,initialize:function(t,e){r.call(this),this.scene=t,this.systems=t.sys,this.elapsed=0,this.paused=!0,this.complete=!1,this.totalComplete=0,this.loop=0,this.iteration=0,this.events=[];var i=this.systems.events;i.on(a.PRE_UPDATE,this.preUpdate,this),i.on(a.UPDATE,this.update,this),i.once(a.SHUTDOWN,this.destroy,this),e&&this.add(e)},preUpdate:function(t,e){this.paused||(this.elapsed+=e)},update:function(){if(!this.paused&&!this.complete){var t,e,i=this.events,s=!1,r=this.systems;for(t=0;t=i.length&&(0!==this.loop&&(-1===this.loop||this.loop>this.iteration)?(this.iteration++,this.reset(!0)):this.complete=!0),this.complete&&this.emit(h.COMPLETE,this)}},play:function(t){return void 0===t&&(t=!0),this.paused=!1,this.complete=!1,this.totalComplete=0,t&&this.reset(),this},pause:function(){return this.paused=!0,this},repeat:function(t){return void 0!==t&&!0!==t||(t=-1),!1===t&&(t=0),this.loop=t,this},resume:function(){return this.paused=!1,this},stop:function(){return this.paused=!0,this.complete=!0,this},reset:function(t){void 0===t&&(t=!1),this.elapsed=0,t||(this.iteration=0);for(var e=0;e0&&(i=e[e.length-1].time);for(var s=0;s{var s=i(83419),r=i(95540),n=new s({initialize:function(t){this.delay=0,this.repeat=0,this.repeatCount=0,this.loop=!1,this.callback,this.callbackScope,this.args,this.timeScale=1,this.startAt=0,this.elapsed=0,this.paused=!1,this.hasDispatched=!1,this.reset(t)},reset:function(t){if(this.delay=r(t,"delay",0),this.repeat=r(t,"repeat",0),this.loop=r(t,"loop",!1),this.callback=r(t,"callback",void 0),this.callbackScope=r(t,"callbackScope",this),this.args=r(t,"args",[]),this.timeScale=r(t,"timeScale",1),this.startAt=r(t,"startAt",0),this.paused=r(t,"paused",!1),this.elapsed=this.startAt,this.hasDispatched=!1,this.repeatCount=-1===this.repeat||this.loop?999999999999:this.repeat,0===this.delay&&(this.repeat>0||this.loop))throw new Error("TimerEvent infinite loop created via zero delay");return this},getProgress:function(){return this.elapsed/this.delay},getOverallProgress:function(){if(this.repeat>0){var t=this.delay+this.delay*this.repeat;return(this.elapsed+this.delay*(this.repeat-this.repeatCount))/t}return this.getProgress()},getRepeatCount:function(){return this.repeatCount},getElapsed:function(){return this.elapsed},getElapsedSeconds:function(){return.001*this.elapsed},getRemaining:function(){return this.delay-this.elapsed},getRemainingSeconds:function(){return.001*this.getRemaining()},getOverallRemaining:function(){return this.delay*(1+this.repeatCount)-this.elapsed},getOverallRemainingSeconds:function(){return.001*this.getOverallRemaining()},remove:function(t){void 0===t&&(t=!1),this.elapsed=this.delay,this.hasDispatched=!t,this.repeatCount=0},destroy:function(){this.callback=void 0,this.callbackScope=void 0,this.args=[]}});t.exports=n},35945:t=>{t.exports="complete"},89809:(t,e,i)=>{t.exports={COMPLETE:i(35945)}},90291:(t,e,i)=>{t.exports={Clock:i(33385),Events:i(89809),Timeline:i(96120),TimerEvent:i(94880)}},40382:(t,e,i)=>{var s=i(72905),r=i(83419),n=i(43491),o=i(88032),a=i(37277),h=i(44594),l=i(93109),u=i(86081),c=i(8357),d=i(43960),p=i(26012),f=new r({initialize:function(t){this.scene=t,this.events=t.sys.events,this.timeScale=1,this.paused=!1,this.processing=!1,this.tweens=[],this.time=0,this.startTime=0,this.nextTime=0,this.prevTime=0,this.maxLag=500,this.lagSkip=33,this.gap=1e3/240,this.events.once(h.BOOT,this.boot,this),this.events.on(h.START,this.start,this)},boot:function(){this.events.once(h.DESTROY,this.destroy,this)},start:function(){this.timeScale=1,this.paused=!1,this.startTime=Date.now(),this.prevTime=this.startTime,this.nextTime=this.gap,this.events.on(h.UPDATE,this.update,this),this.events.once(h.SHUTDOWN,this.shutdown,this)},create:function(t){Array.isArray(t)||(t=[t]);for(var e=[],i=0;i-1},existing:function(t){return this.has(t)||this.tweens.push(t.reset()),this},addCounter:function(t){var e=o(this,t);return this.tweens.push(e.reset()),e},stagger:function(t,e){return l(t,e)},setLagSmooth:function(t,e){return void 0===t&&(t=1/1e-8),void 0===e&&(e=0),this.maxLag=t,this.lagSkip=Math.min(e,this.maxLag),this},setFps:function(t){return void 0===t&&(t=240),this.gap=1e3/t,this.nextTime=1e3*this.time+this.gap,this},getDelta:function(t){var e=Date.now()-this.prevTime;e>this.maxLag&&(this.startTime+=e-this.lagSkip),this.prevTime+=e;var i=this.prevTime-this.startTime,s=i-this.nextTime,r=i-1e3*this.time;return s>0||t?(i/=1e3,this.time=i,this.nextTime+=s+(s>=this.gap?4:this.gap-s)):r=0,r},tick:function(){return this.step(!0),this},update:function(){this.paused||this.step(!1)},step:function(t){void 0===t&&(t=!1);var e=this.getDelta(t);if(!(e<=0)){var i,s;this.processing=!0;var r=[],n=this.tweens;for(i=0;i0){for(i=0;i-1&&(s.isPendingRemove()||s.isDestroyed())&&(n.splice(a,1),s.destroy())}r.length=0}this.processing=!1}},remove:function(t){return this.processing?t.setPendingRemoveState():(s(this.tweens,t),t.setRemovedState()),this},reset:function(t){return this.existing(t),t.seek(),t.setActiveState(),this},makeActive:function(t){return this.existing(t),t.setActiveState(),this},each:function(t,e){var i,s=[null];for(i=1;i{t.exports=function(t,e,i){return t&&t.hasOwnProperty(e)?t[e]:i}},6113:(t,e,i)=>{var s=i(62640),r=i(35355);t.exports=function(t,e){var i=s.Power0;if("string"==typeof t)if(s.hasOwnProperty(t))i=s[t];else{var n="";if(t.indexOf(".")){var o=(n=t.substring(t.indexOf(".")+1)).toLowerCase();"in"===o?n="easeIn":"out"===o?n="easeOut":"inout"===o&&(n="easeInOut")}t=r(t.substring(0,t.indexOf(".")+1)+n),s.hasOwnProperty(t)&&(i=s[t])}else"function"==typeof t&&(i=t);if(!e)return i;var a=e.slice(0);return a.unshift(0),function(t){return a[0]=t,i.apply(this,a)}}},91389:(t,e,i)=>{var s=i(89318),r=i(77259),n={bezier:s,catmull:r,catmullrom:r,linear:i(28392)};t.exports=function(t){if(null===t)return null;var e=n.linear;return"string"==typeof t?n.hasOwnProperty(t)&&(e=n[t]):"function"==typeof t&&(e=t),e}},55292:t=>{t.exports=function(t,e,i){return t.hasOwnProperty(e)?"function"==typeof t[e]?function(i,s,r,n,o,a){return t[e](i,s,r,n,o,a)}:function(){return t[e]}:"function"==typeof i?i:function(){return i}}},82985:(t,e,i)=>{var s=i(81076);t.exports=function(t){var e,i=[];if(t.hasOwnProperty("props"))for(e in t.props)"_"!==e.substring(0,1)&&i.push({key:e,value:t.props[e]});else for(e in t)-1===s.indexOf(e)&&"_"!==e.substring(0,1)&&i.push({key:e,value:t[e]});return i}},62329:(t,e,i)=>{var s=i(35154);t.exports=function(t){var e=s(t,"targets",null);return null===e||("function"==typeof e&&(e=e.call()),Array.isArray(e)||(e=[e])),e}},17777:(t,e,i)=>{var s=i(30976),r=i(99472);function n(t){return!!t.getActive&&"function"==typeof t.getActive}function o(t){return!!t.getStart&&"function"==typeof t.getStart}function a(t){return!!t.getEnd&&"function"==typeof t.getEnd}var h=function(t,e){var i,l,u=function(t,e,i){return i},c=function(t,e,i){return i},d=null,p=typeof e;if("number"===p)u=function(){return e};else if(Array.isArray(e))c=function(){return e[0]},u=function(){return e[e.length-1]};else if("string"===p){var f=e.toLowerCase(),g="random"===f.substring(0,6),m="int"===f.substring(0,3);if(g||m){var v=f.indexOf("("),y=f.indexOf(")"),x=f.indexOf(",");if(!(v&&y&&x))throw new Error("invalid random() format");var w=parseFloat(f.substring(v+1,x)),T=parseFloat(f.substring(x+1,y));u=g?function(){return r(w,T)}:function(){return s(w,T)}}else{f=f[0];var b=parseFloat(e.substr(2));switch(f){case"+":u=function(t,e,i){return i+b};break;case"-":u=function(t,e,i){return i-b};break;case"*":u=function(t,e,i){return i*b};break;case"/":u=function(t,e,i){return i/b};break;default:u=function(){return parseFloat(e)}}}}else if("function"===p)u=e;else if("object"===p)if(o(l=e)||a(l)||n(l))n(e)&&(d=e.getActive),a(e)&&(u=e.getEnd),o(e)&&(c=e.getStart);else if(e.hasOwnProperty("value"))i=h(t,e.value);else{var S=e.hasOwnProperty("to"),E=e.hasOwnProperty("from"),C=e.hasOwnProperty("start");if(S&&(E||C)){if(i=h(t,e.to),C){var A=h(t,e.start);i.getActive=A.getEnd}if(E){var _=h(t,e.from);i.getStart=_.getEnd}}}return i||(i={getActive:d,getEnd:u,getStart:c}),i};t.exports=h},88032:(t,e,i)=>{var s=i(70402),r=i(69902),n=i(23568),o=i(57355),a=i(6113),h=i(55292),l=i(35154),u=i(17777),c=i(269),d=i(86081);t.exports=function(t,e,i){if(e instanceof d)return e.parent=t,e;i=void 0===i?r:c(r,i);var p=l(e,"from",0),f=l(e,"to",1),g=[{value:p}],m=l(e,"delay",i.delay),v=l(e,"easeParams",i.easeParams),y=l(e,"ease",i.ease),x=u("value",f),w=new d(t,g),T=w.add(0,"value",x.getEnd,x.getStart,x.getActive,a(l(e,"ease",y),l(e,"easeParams",v)),h(e,"delay",m),l(e,"duration",i.duration),o(e,"yoyo",i.yoyo),l(e,"hold",i.hold),l(e,"repeat",i.repeat),l(e,"repeatDelay",i.repeatDelay),!1,!1);T.start=p,T.current=p,w.completeDelay=n(e,"completeDelay",0),w.loop=Math.round(n(e,"loop",0)),w.loopDelay=Math.round(n(e,"loopDelay",0)),w.paused=o(e,"paused",!1),w.persist=o(e,"persist",!1),w.callbackScope=l(e,"callbackScope",w);for(var b=s.TYPES,S=0;S{var s=i(6113),r=i(35154),n=i(36383);t.exports=function(t,e){void 0===e&&(e={});var i=r(e,"start",0),o=r(e,"ease",null),a=r(e,"grid",null),h=r(e,"from",0),l="first"===h,u="center"===h,c="last"===h,d="number"==typeof h,p=Array.isArray(t),f=p?parseFloat(t[0]):parseFloat(t),g=p?parseFloat(t[1]):0,m=Math.max(f,g);if(p&&(i+=f),a){var v=a[0],y=a[1],x=0,w=0,T=0,b=0,S=[];c?(x=v-1,w=y-1):d?(x=h%v,w=Math.floor(h/v)):u&&(x=(v-1)/2,w=(y-1)/2);for(var E=n.MIN_SAFE_INTEGER,C=0;CE&&(E=_),S[C][A]=_}}}var P=o?s(o):null;return a?function(t,e,s,r){var n,o=0,a=r%v,h=Math.floor(r/v);if(a>=0&&a=0&&h{var s=i(70402),r=i(69902),n=i(23568),o=i(57355),a=i(6113),h=i(91389),l=i(55292),u=i(82985),c=i(62329),d=i(35154),p=i(17777),f=i(269),g=i(86081);t.exports=function(t,e,i){if(e instanceof g)return e.parent=t,e;i=void 0===i?r:f(r,i);var m=c(e);!m&&i.targets&&(m=i.targets);for(var v=u(e),y=d(e,"delay",i.delay),x=d(e,"duration",i.duration),w=d(e,"easeParams",i.easeParams),T=d(e,"ease",i.ease),b=d(e,"hold",i.hold),S=d(e,"repeat",i.repeat),E=d(e,"repeatDelay",i.repeatDelay),C=o(e,"yoyo",i.yoyo),A=o(e,"flipX",i.flipX),_=o(e,"flipY",i.flipY),P=d(e,"interpolation",i.interpolation),R=function(t,e,i,s){if("texture"===i){var r=s,n=void 0;Array.isArray(s)?(r=s[0],n=s[1]):s.hasOwnProperty("value")?(r=s.value,Array.isArray(s.value)?(r=s.value[0],n=s.value[1]):"string"==typeof s.value&&(r=s.value)):"string"==typeof s&&(r=s),t.addFrame(e,r,n,l(s,"delay",y),d(s,"duration",x),d(s,"hold",b),d(s,"repeat",S),d(s,"repeatDelay",E),o(s,"flipX",A),o(s,"flipY",_))}else{var u=p(i,s),c=h(d(s,"interpolation",P));t.add(e,i,u.getEnd,u.getStart,u.getActive,a(d(s,"ease",T),d(s,"easeParams",w)),l(s,"delay",y),d(s,"duration",x),o(s,"yoyo",C),d(s,"hold",b),d(s,"repeat",S),d(s,"repeatDelay",E),o(s,"flipX",A),o(s,"flipY",_),c,c?s:null)}},M=new g(t,m),k=0;k{var s=i(70402),r=i(23568),n=i(57355),o=i(62329),a=i(35154),h=i(8357),l=i(43960);t.exports=function(t,e){if(e instanceof l)return e.parent=t,e;var i,u=new l(t);u.startDelay=a(e,"delay",0),u.completeDelay=r(e,"completeDelay",0),u.loop=Math.round(r(e,"loop",a(e,"repeat",0))),u.loopDelay=Math.round(r(e,"loopDelay",a(e,"repeatDelay",0))),u.paused=n(e,"paused",!1),u.persist=n(e,"persist",!1),u.callbackScope=a(e,"callbackScope",u);var c=s.TYPES;for(i=0;i{t.exports={GetBoolean:i(57355),GetEaseFunction:i(6113),GetInterpolationFunction:i(91389),GetNewValue:i(55292),GetProps:i(82985),GetTargets:i(62329),GetValueOp:i(17777),NumberTweenBuilder:i(88032),StaggerBuilder:i(93109),TweenBuilder:i(8357)}},73685:t=>{t.exports="active"},98540:t=>{t.exports="complete"},67233:t=>{t.exports="loop"},2859:t=>{t.exports="pause"},98336:t=>{t.exports="repeat"},25764:t=>{t.exports="resume"},32193:t=>{t.exports="start"},84371:t=>{t.exports="stop"},70766:t=>{t.exports="update"},55659:t=>{t.exports="yoyo"},842:(t,e,i)=>{t.exports={TWEEN_ACTIVE:i(73685),TWEEN_COMPLETE:i(98540),TWEEN_LOOP:i(67233),TWEEN_PAUSE:i(2859),TWEEN_RESUME:i(25764),TWEEN_REPEAT:i(98336),TWEEN_START:i(32193),TWEEN_STOP:i(84371),TWEEN_UPDATE:i(70766),TWEEN_YOYO:i(55659)}},43066:(t,e,i)=>{var s={States:i(86353),Builders:i(30231),Events:i(842),TweenManager:i(40382),Tween:i(86081),TweenData:i(48177),TweenFrameData:i(42220),BaseTween:i(70402),TweenChain:i(43960)};t.exports=s},70402:(t,e,i)=>{var s=i(83419),r=i(50792),n=i(842),o=i(86353),a=new s({Extends:r,initialize:function(t){r.call(this),this.parent=t,this.data=[],this.totalData=0,this.startDelay=0,this.hasStarted=!1,this.timeScale=1,this.loop=0,this.loopDelay=0,this.loopCounter=0,this.completeDelay=0,this.countdown=0,this.state=o.PENDING,this.paused=!1,this.callbacks={onActive:null,onComplete:null,onLoop:null,onPause:null,onRepeat:null,onResume:null,onStart:null,onStop:null,onUpdate:null,onYoyo:null},this.callbackScope,this.persist=!1},setTimeScale:function(t){return this.timeScale=t,this},getTimeScale:function(){return this.timeScale},isPlaying:function(){return!this.paused&&this.isActive()},isPaused:function(){return this.paused},pause:function(){return this.paused||(this.paused=!0,this.dispatchEvent(n.TWEEN_PAUSE,"onPause")),this},resume:function(){return this.paused&&(this.paused=!1,this.dispatchEvent(n.TWEEN_RESUME,"onResume")),this},makeActive:function(){this.parent.makeActive(this),this.dispatchEvent(n.TWEEN_ACTIVE,"onActive")},onCompleteHandler:function(){this.setPendingRemoveState(),this.dispatchEvent(n.TWEEN_COMPLETE,"onComplete")},complete:function(t){return void 0===t&&(t=0),t?(this.setCompleteDelayState(),this.countdown=t):this.onCompleteHandler(),this},completeAfterLoop:function(t){return void 0===t&&(t=0),this.loopCounter>t&&(this.loopCounter=t),this},remove:function(){return this.parent&&this.parent.remove(this),this},stop:function(){return!this.parent||this.isRemoved()||this.isPendingRemove()||this.isDestroyed()||(this.dispatchEvent(n.TWEEN_STOP,"onStop"),this.setPendingRemoveState()),this},updateLoopCountdown:function(t){this.countdown-=t,this.countdown<=0&&(this.setActiveState(),this.dispatchEvent(n.TWEEN_LOOP,"onLoop"))},updateStartCountdown:function(t){return this.countdown-=t,this.countdown<=0&&(this.hasStarted=!0,this.setActiveState(),this.dispatchEvent(n.TWEEN_START,"onStart"),t=0),t},updateCompleteDelay:function(t){this.countdown-=t,this.countdown<=0&&this.onCompleteHandler()},setCallback:function(t,e,i){return void 0===i&&(i=[]),this.callbacks.hasOwnProperty(t)&&(this.callbacks[t]={func:e,params:i}),this},setPendingState:function(){this.state=o.PENDING},setActiveState:function(){this.state=o.ACTIVE},setLoopDelayState:function(){this.state=o.LOOP_DELAY},setCompleteDelayState:function(){this.state=o.COMPLETE_DELAY},setStartDelayState:function(){this.state=o.START_DELAY,this.countdown=this.startDelay,this.hasStarted=!1},setPendingRemoveState:function(){this.state=o.PENDING_REMOVE},setRemovedState:function(){this.state=o.REMOVED},setFinishedState:function(){this.state=o.FINISHED},setDestroyedState:function(){this.state=o.DESTROYED},isPending:function(){return this.state===o.PENDING},isActive:function(){return this.state===o.ACTIVE},isLoopDelayed:function(){return this.state===o.LOOP_DELAY},isCompleteDelayed:function(){return this.state===o.COMPLETE_DELAY},isStartDelayed:function(){return this.state===o.START_DELAY},isPendingRemove:function(){return this.state===o.PENDING_REMOVE},isRemoved:function(){return this.state===o.REMOVED},isFinished:function(){return this.state===o.FINISHED},isDestroyed:function(){return this.state===o.DESTROYED},destroy:function(){this.data&&this.data.forEach((function(t){t.destroy()})),this.removeAllListeners(),this.callbacks=null,this.data=null,this.parent=null,this.setDestroyedState()}});a.TYPES=["onActive","onComplete","onLoop","onPause","onRepeat","onResume","onStart","onStop","onUpdate","onYoyo"],t.exports=a},95042:(t,e,i)=>{var s=i(83419),r=i(842),n=i(86353),o=new s({initialize:function(t,e,i,s,r,n,o,a,h,l){this.tween=t,this.targetIndex=e,this.duration=s,this.totalDuration=0,this.delay=0,this.getDelay=i,this.yoyo=r,this.hold=n,this.repeat=o,this.repeatDelay=a,this.repeatCounter=0,this.flipX=h,this.flipY=l,this.progress=0,this.elapsed=0,this.state=0,this.isCountdown=!1},getTarget:function(){return this.tween.targets[this.targetIndex]},setTargetValue:function(t){void 0===t&&(t=this.current),this.tween.targets[this.targetIndex][this.key]=t},setCreatedState:function(){this.state=n.CREATED,this.isCountdown=!1},setDelayState:function(){this.state=n.DELAY,this.isCountdown=!0},setPendingRenderState:function(){this.state=n.PENDING_RENDER,this.isCountdown=!1},setPlayingForwardState:function(){this.state=n.PLAYING_FORWARD,this.isCountdown=!1},setPlayingBackwardState:function(){this.state=n.PLAYING_BACKWARD,this.isCountdown=!1},setHoldState:function(){this.state=n.HOLD_DELAY,this.isCountdown=!0},setRepeatState:function(){this.state=n.REPEAT_DELAY,this.isCountdown=!0},setCompleteState:function(){this.state=n.COMPLETE,this.isCountdown=!1},isCreated:function(){return this.state===n.CREATED},isDelayed:function(){return this.state===n.DELAY},isPendingRender:function(){return this.state===n.PENDING_RENDER},isPlayingForward:function(){return this.state===n.PLAYING_FORWARD},isPlayingBackward:function(){return this.state===n.PLAYING_BACKWARD},isHolding:function(){return this.state===n.HOLD_DELAY},isRepeating:function(){return this.state===n.REPEAT_DELAY},isComplete:function(){return this.state===n.COMPLETE},setStateFromEnd:function(t){this.yoyo?this.onRepeat(t,!0,!0):this.repeatCounter>0?this.onRepeat(t,!0,!1):this.setCompleteState()},setStateFromStart:function(t){this.repeatCounter>0?this.onRepeat(t,!1):this.setCompleteState()},reset:function(){var t=this.tween,e=t.totalTargets,i=this.targetIndex,s=t.targets[i],r=this.key;this.progress=0,this.elapsed=0,this.delay=this.getDelay(s,r,0,i,e,t),this.repeatCounter=-1===this.repeat?n.MAX:this.repeat,this.setPendingRenderState();var o=this.duration+this.hold;this.yoyo&&(o+=this.duration);var a=o+this.repeatDelay;this.totalDuration=this.delay+o,-1===this.repeat?(this.totalDuration+=a*n.MAX,t.isInfinite=!0):this.repeat>0&&(this.totalDuration+=a*this.repeat),this.totalDuration>t.duration&&(t.duration=this.totalDuration),this.delay0&&(this.elapsed=this.delay,this.setDelayState())},onRepeat:function(t,e,i){var s=this.tween,n=s.totalTargets,o=this.targetIndex,a=s.targets[o],h=this.key,l="texture"!==h;if(this.elapsed=t,this.progress=t/this.duration,this.flipX&&a.toggleFlipX(),this.flipY&&a.toggleFlipY(),l&&(e||i)&&(this.start=this.getStartValue(a,h,this.start,o,n,s)),i)return this.setPlayingBackwardState(),void this.dispatchEvent(r.TWEEN_YOYO,"onYoyo");this.repeatCounter--,l&&(this.end=this.getEndValue(a,h,this.start,o,n,s)),this.repeatDelay>0?(this.elapsed=this.repeatDelay-t,l&&(this.current=this.start,a[h]=this.current),this.setRepeatState()):(this.setPlayingForwardState(),this.dispatchEvent(r.TWEEN_REPEAT,"onRepeat"))},destroy:function(){this.tween=null,this.getDelay=null,this.setCompleteState()}});t.exports=o},69902:t=>{t.exports={targets:null,delay:0,duration:1e3,ease:"Power0",easeParams:null,hold:0,repeat:0,repeatDelay:0,yoyo:!1,flipX:!1,flipY:!1,persist:!1,interpolation:null}},81076:t=>{t.exports=["callbackScope","completeDelay","delay","duration","ease","easeParams","flipX","flipY","hold","interpolation","loop","loopDelay","onActive","onActiveParams","onComplete","onCompleteParams","onLoop","onLoopParams","onPause","onPauseParams","onRepeat","onRepeatParams","onResume","onResumeParams","onStart","onStartParams","onStop","onStopParams","onUpdate","onUpdateParams","onYoyo","onYoyoParams","paused","persist","props","repeat","repeatDelay","targets","yoyo"]},86081:(t,e,i)=>{var s=i(70402),r=i(83419),n=i(842),o=i(44603),a=i(39429),h=i(36383),l=i(86353),u=i(48177),c=i(42220),d=new r({Extends:s,initialize:function(t,e){s.call(this,t),this.targets=e,this.totalTargets=e.length,this.isSeeking=!1,this.isInfinite=!1,this.elapsed=0,this.totalElapsed=0,this.duration=0,this.progress=0,this.totalDuration=0,this.totalProgress=0},add:function(t,e,i,s,r,n,o,a,h,l,c,d,p,f,g,m){var v=new u(this,t,e,i,s,r,n,o,a,h,l,c,d,p,f,g,m);return this.totalData=this.data.push(v),v},addFrame:function(t,e,i,s,r,n,o,a,h,l){var u=new c(this,t,e,i,s,r,n,o,a,h,l);return this.totalData=this.data.push(u),u},getValue:function(t){void 0===t&&(t=0);var e=null;return this.data&&(e=this.data[t].current),e},hasTarget:function(t){return this.targets&&-1!==this.targets.indexOf(t)},updateTo:function(t,e,i){if(void 0===i&&(i=!1),"texture"!==t)for(var s=0;s0)this.elapsed=0,this.progress=0,this.loopCounter--,this.initTweenData(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.setLoopDelayState()):(this.setActiveState(),this.dispatchEvent(n.TWEEN_LOOP,"onLoop"));else{if(!(this.completeDelay>0))return this.onCompleteHandler(),!0;this.countdown=this.completeDelay,this.setCompleteDelayState()}return!1},onCompleteHandler:function(){this.progress=1,this.totalProgress=1,s.prototype.onCompleteHandler.call(this)},play:function(){return this.isDestroyed()?(console.warn("Cannot play destroyed Tween",this),this):((this.isPendingRemove()||this.isFinished())&&this.seek(),this.paused=!1,this.setActiveState(),this)},seek:function(t,e,i){if(void 0===t&&(t=0),void 0===e&&(e=16.6),void 0===i&&(i=!1),this.isDestroyed())return console.warn("Cannot seek destroyed Tween",this),this;i||(this.isSeeking=!0),this.reset(!0),this.initTweenData(!0),this.setActiveState(),this.dispatchEvent(n.TWEEN_ACTIVE,"onActive");var s=this.paused;if(this.paused=!1,t>0){for(var r=Math.floor(t/e),o=t-r*e,a=0;a0&&this.update(o)}return this.paused=s,this.isSeeking=!1,this},initTweenData:function(t){void 0===t&&(t=!1),this.duration=0,this.startDelay=h.MAX_SAFE_INTEGER;for(var e=this.data,i=0;i0?s+r+(s+o)*n:s+r},reset:function(t){return void 0===t&&(t=!1),this.elapsed=0,this.totalElapsed=0,this.progress=0,this.totalProgress=0,this.loopCounter=this.loop,-1===this.loop&&(this.isInfinite=!0,this.loopCounter=l.MAX),t||(this.initTweenData(),this.setActiveState(),this.dispatchEvent(n.TWEEN_ACTIVE,"onActive")),this},update:function(t){if(this.isPendingRemove()||this.isDestroyed())return!0;if(this.paused||this.isFinished())return!1;if(t*=this.timeScale*this.parent.timeScale,this.isLoopDelayed())return this.updateLoopCountdown(t),!1;if(this.isCompleteDelayed())return this.updateCompleteDelay(t),!1;this.hasStarted||(this.startDelay-=t,this.startDelay<=0&&(this.hasStarted=!0,this.dispatchEvent(n.TWEEN_START,"onStart"),t=0));var e=!1;if(this.isActive())for(var i=this.data,s=0;s{var s=i(72905),r=i(70402),n=i(83419),o=i(842),a=i(44603),h=i(39429),l=i(86353),u=new n({Extends:r,initialize:function(t){r.call(this,t),this.currentTween=null,this.currentIndex=0},init:function(){return this.loopCounter=-1===this.loop?l.MAX:this.loop,this.setCurrentTween(0),this.startDelay>0&&!this.isStartDelayed()?this.setStartDelayState():this.setActiveState(),this.dispatchEvent(o.TWEEN_ACTIVE,"onActive"),this},add:function(t){var e=this.parent.create(t);Array.isArray(e)||(e=[e]);for(var i=this.data,s=0;s0)this.loopCounter--,this.resetTweens(),this.loopDelay>0?(this.countdown=this.loopDelay,this.setLoopDelayState()):(this.setActiveState(),this.dispatchEvent(o.TWEEN_LOOP,"onLoop"));else{if(!(this.completeDelay>0))return this.onCompleteHandler(),!0;this.countdown=this.completeDelay,this.setCompleteDelayState()}return!1},play:function(){return this.isDestroyed()?(console.warn("Cannot play destroyed TweenChain",this),this):((this.isPendingRemove()||this.isPending())&&this.resetTweens(),this.paused=!1,this.startDelay>0&&!this.isStartDelayed()?this.setStartDelayState():this.setActiveState(),this)},resetTweens:function(){for(var t=this.data,e=this.totalData,i=0;i{var s=i(95042),r=i(45319),n=i(83419),o=i(842),a=new n({Extends:s,initialize:function(t,e,i,r,n,o,a,h,l,u,c,d,p,f,g,m,v){s.call(this,t,e,h,l,u,c,d,p,f,g),this.key=i,this.getActiveValue=o,this.getEndValue=r,this.getStartValue=n,this.ease=a,this.start=0,this.previous=0,this.current=0,this.end=0,this.interpolation=m,this.interpolationData=v},reset:function(t){s.prototype.reset.call(this);var e=this.tween.targets[this.targetIndex],i=this.key;t&&(e[i]=this.start),this.start=0,this.previous=0,this.current=0,this.end=0,this.getActiveValue&&(e[i]=this.getActiveValue(e,i,0))},update:function(t){var e=this.tween,i=e.totalTargets,s=this.targetIndex,n=e.targets[s],a=this.key;if(!n)return this.setCompleteState(),!1;if(this.isCountdown&&(this.elapsed-=t,this.elapsed<=0&&(this.elapsed=0,t=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(o.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0))),this.isPendingRender())return this.start=this.getStartValue(n,a,n[a],s,i,e),this.end=this.getEndValue(n,a,this.start,s,i,e),this.current=this.start,n[a]=this.start,this.setPlayingForwardState(),!0;var h=this.isPlayingForward(),l=this.isPlayingBackward();if(h||l){var u=this.elapsed,c=this.duration,d=0,p=!1;(u+=t)>=c?(d=u-c,u=c,p=!0):u<0&&(u=0);var f=r(u/c,0,1);if(this.elapsed=u,this.progress=f,this.previous=this.current,p)h?(this.current=this.end,n[a]=this.end,this.hold>0?(this.elapsed=this.hold,this.setHoldState()):this.setStateFromEnd(d)):(this.current=this.start,n[a]=this.start,this.setStateFromStart(d));else{h||(f=1-f);var g=this.ease(f);this.interpolation?this.current=this.interpolation(this.interpolationData,g):this.current=this.start+(this.end-this.start)*g,n[a]=this.current}this.dispatchEvent(o.TWEEN_UPDATE,"onUpdate")}return!this.isComplete()},dispatchEvent:function(t,e){var i=this.tween;if(!i.isSeeking){var s=i.targets[this.targetIndex],r=this.key,n=this.current,o=this.previous;i.emit(t,i,r,s,n,o);var a=i.callbacks[e];a&&a.func.apply(i.callbackScope,[i,s,r,n,o].concat(a.params))}},destroy:function(){s.prototype.destroy.call(this),this.getActiveValue=null,this.getEndValue=null,this.getStartValue=null,this.ease=null}});t.exports=a},42220:(t,e,i)=>{var s=i(95042),r=i(45319),n=i(83419),o=i(842),a=new n({Extends:s,initialize:function(t,e,i,r,n,o,a,h,l,u,c){s.call(this,t,e,n,o,!1,a,h,l,u,c),this.key="texture",this.startTexture=null,this.endTexture=i,this.startFrame=null,this.endFrame=r,this.yoyo=0!==h},reset:function(t){s.prototype.reset.call(this);var e=this.tween.targets[this.targetIndex];this.startTexture||(this.startTexture=e.texture.key,this.startFrame=e.frame.name),t&&e.setTexture(this.startTexture,this.startFrame)},update:function(t){var e=this.tween,i=this.targetIndex,s=e.targets[i];if(!s)return this.setCompleteState(),!1;if(this.isCountdown&&(this.elapsed-=t,this.elapsed<=0&&(this.elapsed=0,t=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(o.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0))),this.isPendingRender())return this.startTexture&&s.setTexture(this.startTexture,this.startFrame),this.setPlayingForwardState(),!0;var n=this.isPlayingForward(),a=this.isPlayingBackward();if(n||a){var h=this.elapsed,l=this.duration,u=0,c=!1;(h+=t)>=l?(u=h-l,h=l,c=!0):h<0&&(h=0);var d=r(h/l,0,1);this.elapsed=h,this.progress=d,c&&(n?(s.setTexture(this.endTexture,this.endFrame),this.hold>0?(this.elapsed=this.hold,this.setHoldState()):this.setStateFromEnd(u)):(s.setTexture(this.startTexture,this.startFrame),this.setStateFromStart(u))),this.dispatchEvent(o.TWEEN_UPDATE,"onUpdate")}return!this.isComplete()},dispatchEvent:function(t,e){var i=this.tween;if(!i.isSeeking){var s=i.targets[this.targetIndex],r=this.key;i.emit(t,i,r,s);var n=i.callbacks[e];n&&n.func.apply(i.callbackScope,[i,s,r].concat(n.params))}},destroy:function(){s.prototype.destroy.call(this),this.startTexture=null,this.endTexture=null,this.startFrame=null,this.endFrame=null}});t.exports=a},86353:t=>{t.exports={CREATED:0,DELAY:2,PENDING_RENDER:4,PLAYING_FORWARD:5,PLAYING_BACKWARD:6,HOLD_DELAY:7,REPEAT_DELAY:8,COMPLETE:9,PENDING:20,ACTIVE:21,LOOP_DELAY:22,COMPLETE_DELAY:23,START_DELAY:24,PENDING_REMOVE:25,REMOVED:26,FINISHED:27,DESTROYED:28,MAX:999999999999}},83419:t=>{function e(t,e,i){var s=i?t[e]:Object.getOwnPropertyDescriptor(t,e);return!i&&s.value&&"object"==typeof s.value&&(s=s.value),!(!s||!function(t){return!!t.get&&"function"==typeof t.get||!!t.set&&"function"==typeof t.set}(s))&&(void 0===s.enumerable&&(s.enumerable=!0),void 0===s.configurable&&(s.configurable=!0),s)}function i(t,e){var i=Object.getOwnPropertyDescriptor(t,e);return!!i&&(i.value&&"object"==typeof i.value&&(i=i.value),!1===i.configurable)}function s(t,s,r,o){for(var a in s)if(s.hasOwnProperty(a)){var h=e(s,a,r);if(!1!==h){if(i((o||t).prototype,a)){if(n.ignoreFinals)continue;throw new Error("cannot override final property '"+a+"', set Class.ignoreFinals = true to skip")}Object.defineProperty(t.prototype,a,h)}else t.prototype[a]=s[a]}}function r(t,e){if(e){Array.isArray(e)||(e=[e]);for(var i=0;i{t.exports=function(){}},20242:t=>{t.exports=function(){return null}},71146:t=>{t.exports=function(t,e,i,s,r){if(void 0===r&&(r=t),i>0){var n=i-t.length;if(n<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.push(e),s&&s.call(r,e),e):null;for(var o=e.length-1;o>=0;)-1!==t.indexOf(e[o])&&e.splice(o,1),o--;if(0===(o=e.length))return null;i>0&&o>n&&(e.splice(n),o=n);for(var a=0;a{t.exports=function(t,e,i,s,r,n){if(void 0===i&&(i=0),void 0===n&&(n=t),s>0){var o=s-t.length;if(o<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.splice(i,0,e),r&&r.call(n,e),e):null;for(var a=e.length-1;a>=0;)-1!==t.indexOf(e[a])&&e.pop(),a--;if(0===(a=e.length))return null;s>0&&a>o&&(e.splice(o),a=o);for(var h=a-1;h>=0;h--){var l=e[h];t.splice(i,0,l),r&&r.call(n,l)}return e}},66905:t=>{t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&i{var s=i(82011);t.exports=function(t,e,i,r,n){void 0===r&&(r=0),void 0===n&&(n=t.length);var o=0;if(s(t,r,n))for(var a=r;a{t.exports=function(t,e,i){var s,r=[null];for(s=3;s{var s=i(82011);t.exports=function(t,e,i,r,n){if(void 0===r&&(r=0),void 0===n&&(n=t.length),s(t,r,n)){var o,a=[null];for(o=5;o{t.exports=function(t,e,i){if(!e.length)return NaN;if(1===e.length)return e[0];var s,r,n=1;if(i){if(te.length&&(n=e.length),i?(s=e[n-1][i],(r=e[n][i])-t<=t-s?e[n]:e[n-1]):(s=e[n-1],(r=e[n])-t<=t-s?r:s)}},43491:t=>{var e=function(t,i){void 0===i&&(i=[]);for(var s=0;s{var s=i(82011);t.exports=function(t,e,i,r,n){void 0===r&&(r=0),void 0===n&&(n=t.length);var o=[];if(s(t,r,n))for(var a=r;a{var s=i(82011);t.exports=function(t,e,i,r,n){if(void 0===r&&(r=0),void 0===n&&(n=t.length),s(t,r,n))for(var o=r;o{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=t.length);var s=e+Math.floor(Math.random()*i);return void 0===t[s]?null:t[s]}},85835:t=>{t.exports=function(t,e,i){if(e===i)return t;var s=t.indexOf(e),r=t.indexOf(i);if(s<0||r<0)throw new Error("Supplied items must be elements of the same array");return s>r||(t.splice(s,1),r===t.length-1?t.push(e):t.splice(r,0,e)),t}},83371:t=>{t.exports=function(t,e,i){if(e===i)return t;var s=t.indexOf(e),r=t.indexOf(i);if(s<0||r<0)throw new Error("Supplied items must be elements of the same array");return s{t.exports=function(t,e){var i=t.indexOf(e);if(i>0){var s=t[i-1],r=t.indexOf(s);t[i]=s,t[r]=e}return t}},69693:t=>{t.exports=function(t,e,i){var s=t.indexOf(e);if(-1===s||i<0||i>=t.length)throw new Error("Supplied index out of bounds");return s!==i&&(t.splice(s,1),t.splice(i,0,e)),e}},40853:t=>{t.exports=function(t,e){var i=t.indexOf(e);if(-1!==i&&i{t.exports=function(t,e,i,s){var r,n=[],o=!1;if((i||s)&&(o=!0,i||(i=""),s||(s="")),e=e;r--)o?n.push(i+r.toString()+s):n.push(r);else for(r=t;r<=e;r++)o?n.push(i+r.toString()+s):n.push(r);return n}},593:(t,e,i)=>{var s=i(2284);t.exports=function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=null),void 0===i&&(i=1),null===e&&(e=t,t=0);for(var r=[],n=Math.max(s((e-t)/(i||1)),0),o=0;o{function e(t,e,i){var s=t[e];t[e]=t[i],t[i]=s}function i(t,e){return te?1:0}var s=function(t,r,n,o,a){for(void 0===n&&(n=0),void 0===o&&(o=t.length-1),void 0===a&&(a=i);o>n;){if(o-n>600){var h=o-n+1,l=r-n+1,u=Math.log(h),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(h-c)/h)*(l-h/2<0?-1:1),p=Math.max(n,Math.floor(r-l*c/h+d)),f=Math.min(o,Math.floor(r+(h-l)*c/h+d));s(t,r,p,f,a)}var g=t[r],m=n,v=o;for(e(t,n,r),a(t[o],g)>0&&e(t,n,o);m0;)v--}0===a(t[n],g)?e(t,n,v):e(t,++v,o),v<=r&&(n=v+1),r<=v&&(o=v-1)}};t.exports=s},88492:(t,e,i)=>{var s=i(35154),r=i(33680),n=function(t,e,i){for(var s=[],r=0;r{var s=i(19133);t.exports=function(t,e,i,r){var n;if(void 0===r&&(r=t),!Array.isArray(e))return-1!==(n=t.indexOf(e))?(s(t,n),i&&i.call(r,e),e):null;for(var o=e.length-1,a=[];o>=0;){var h=e[o];-1!==(n=t.indexOf(h))&&(s(t,n),a.push(h),i&&i.call(r,h)),o--}return a}},60248:(t,e,i)=>{var s=i(19133);t.exports=function(t,e,i,r){if(void 0===r&&(r=t),e<0||e>t.length-1)throw new Error("Index out of bounds");var n=s(t,e);return i&&i.call(r,n),n}},81409:(t,e,i)=>{var s=i(82011);t.exports=function(t,e,i,r,n){if(void 0===e&&(e=0),void 0===i&&(i=t.length),void 0===n&&(n=t),s(t,e,i)){var o=i-e,a=t.splice(e,o);if(r)for(var h=0;h{var s=i(19133);t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=t.length);var r=e+Math.floor(Math.random()*i);return s(t,r)}},42169:t=>{t.exports=function(t,e,i){var s=t.indexOf(e),r=t.indexOf(i);return-1!==s&&-1===r&&(t[s]=i,!0)}},86003:t=>{t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,s=0;s{t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,s=0;s{t.exports=function(t,e,i,s){var r=t.length;if(e<0||e>r||e>=i||i>r){if(s)throw new Error("Range Error: Values outside acceptable range");return!1}return!0}},89545:t=>{t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&i>0&&(t.splice(i,1),t.unshift(e)),e}},17810:(t,e,i)=>{var s=i(82011);t.exports=function(t,e,i,r,n){if(void 0===r&&(r=0),void 0===n&&(n=t.length),s(t,r,n))for(var o=r;o{t.exports=function(t){for(var e=t.length-1;e>0;e--){var i=Math.floor(Math.random()*(e+1)),s=t[e];t[e]=t[i],t[i]=s}return t}},90126:t=>{t.exports=function(t){var e=/\D/g;return t.sort((function(t,i){return parseInt(t.replace(e,""),10)-parseInt(i.replace(e,""),10)})),t}},19133:t=>{t.exports=function(t,e){if(!(e>=t.length)){for(var i=t.length-1,s=t[e],r=e;r{var s=i(82264);function r(t,e){return String(t).localeCompare(e)}function n(t,e,i,s){var r,n,o,a,h,l=t.length,u=0,c=2*i;for(r=0;rl&&(n=l),o>l&&(o=l),a=r,h=n;;)if(a{t.exports=function(t,e,i){if(e===i)return t;var s=t.indexOf(e),r=t.indexOf(i);if(s<0||r<0)throw new Error("Supplied items must be elements of the same array");return t[s]=i,t[r]=e,t}},37105:(t,e,i)=>{t.exports={Matrix:i(54915),Add:i(71146),AddAt:i(51067),BringToTop:i(66905),CountAllMatching:i(21612),Each:i(95428),EachInRange:i(36914),FindClosestInSorted:i(81957),Flatten:i(43491),GetAll:i(46710),GetFirst:i(58731),GetRandom:i(26546),MoveDown:i(70864),MoveTo:i(69693),MoveUp:i(40853),MoveAbove:i(85835),MoveBelow:i(83371),NumberArray:i(20283),NumberArrayStep:i(593),QuickSelect:i(43886),Range:i(88492),Remove:i(72905),RemoveAt:i(60248),RemoveBetween:i(81409),RemoveRandomElement:i(31856),Replace:i(42169),RotateLeft:i(86003),RotateRight:i(49498),SafeRange:i(82011),SendToBack:i(89545),SetAll:i(17810),Shuffle:i(33680),SortByDigits:i(90126),SpliceOne:i(19133),StableSort:i(19186),Swap:i(25630)}},86922:t=>{t.exports=function(t){if(!Array.isArray(t)||!Array.isArray(t[0]))return!1;for(var e=t[0].length,i=1;i{var s=i(41836),r=i(86922);t.exports=function(t){var e="";if(!r(t))return e;for(var i=0;i{t.exports=function(t){return t.reverse()}},21224:t=>{t.exports=function(t){for(var e=0;e{var s=i(37829);t.exports=function(t){return s(t,180)}},44657:(t,e,i)=>{var s=i(37829);t.exports=function(t,e){void 0===e&&(e=1);for(var i=0;i{var s=i(86922),r=i(2429);t.exports=function(t,e){if(void 0===e&&(e=90),!s(t))return null;if("string"!=typeof e&&(e=(e%360+360)%360),90===e||-270===e||"rotateLeft"===e)(t=r(t)).reverse();else if(-90===e||270===e||"rotateRight"===e)t.reverse(),t=r(t);else if(180===Math.abs(e)||"rotate180"===e){for(var i=0;i{var s=i(37829);t.exports=function(t,e){void 0===e&&(e=1);for(var i=0;i{var s=i(86003),r=i(49498);t.exports=function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),0!==i&&(i<0?s(t,Math.abs(i)):r(t,i)),0!==e)for(var n=0;n{t.exports=function(t){for(var e=t.length,i=t[0].length,s=new Array(i),r=0;r-1;n--)s[r][n]=t[n][r]}return s}},54915:(t,e,i)=>{t.exports={CheckMatrix:i(86922),MatrixToString:i(63362),ReverseColumns:i(92598),ReverseRows:i(21224),Rotate180:i(98717),RotateLeft:i(44657),RotateMatrix:i(37829),RotateRight:i(92632),Translate:i(69512),TransposeMatrix:i(2429)}},71334:t=>{var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";t.exports=function(t,i){for(var s=new Uint8Array(t),r=s.length,n=i?"data:"+i+";base64,":"",o=0;o>2],n+=e[(3&s[o])<<4|s[o+1]>>4],n+=e[(15&s[o+1])<<2|s[o+2]>>6],n+=e[63&s[o+2]];return r%3==2?n=n.substring(0,n.length-1)+"=":r%3==1&&(n=n.substring(0,n.length-2)+"=="),n}},53134:t=>{for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(256),s=0;s<64;s++)i[e.charCodeAt(s)]=s;t.exports=function(t){var e,s,r,n,o=(t=t.substr(t.indexOf(",")+1)).length,a=.75*o,h=0;"="===t[o-1]&&(a--,"="===t[o-2]&&a--);for(var l=new ArrayBuffer(a),u=new Uint8Array(l),c=0;c>4,u[h++]=(15&s)<<4|r>>2,u[h++]=(3&r)<<6|63&n;return l}},65839:(t,e,i)=>{t.exports={ArrayBufferToBase64:i(71334),Base64ToArrayBuffer:i(53134)}},91799:(t,e,i)=>{t.exports={Array:i(37105),Base64:i(65839),Objects:i(1183),String:i(31749),NOOP:i(29747),NULL:i(20242)}},41786:t=>{t.exports=function(t){var e={};for(var i in t)Array.isArray(t[i])?e[i]=t[i].slice(0):e[i]=t[i];return e}},62644:t=>{var e=function(t){var i,s,r;if("object"!=typeof t||null===t)return t;for(r in i=Array.isArray(t)?[]:{},t)s=t[r],i[r]=e(s);return i};t.exports=e},79291:(t,e,i)=>{var s=i(41212),r=function(){var t,e,i,n,o,a,h=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof h&&(c=h,h=arguments[1]||{},l=2),u===l&&(h=this,--l);l{var s=i(75508),r=i(35154);t.exports=function(t,e,i){var n=r(t,e,null);if(null===n)return i;if(Array.isArray(n))return s.RND.pick(n);if("object"==typeof n){if(n.hasOwnProperty("randInt"))return s.RND.integerInRange(n.randInt[0],n.randInt[1]);if(n.hasOwnProperty("randFloat"))return s.RND.realInRange(n.randFloat[0],n.randFloat[1])}else if("function"==typeof n)return n(e);return n}},95540:t=>{t.exports=function(t,e,i){var s=typeof t;return t&&"number"!==s&&"string"!==s&&t.hasOwnProperty(e)&&void 0!==t[e]?t[e]:i}},82840:(t,e,i)=>{var s=i(35154),r=i(45319);t.exports=function(t,e,i,n,o){void 0===o&&(o=i);var a=s(t,e,o);return r(a,i,n)}},35154:t=>{t.exports=function(t,e,i,s){if(!t&&!s||"number"==typeof t)return i;if(t&&t.hasOwnProperty(e))return t[e];if(s&&s.hasOwnProperty(e))return s[e];if(-1!==e.indexOf(".")){for(var r=e.split("."),n=t,o=s,a=i,h=i,l=!0,u=!0,c=0;c{t.exports=function(t,e){for(var i=0;i{t.exports=function(t,e){for(var i=0;i{t.exports=function(t,e){return t.hasOwnProperty(e)}},41212:t=>{t.exports=function(t){if(!t||"object"!=typeof t||t.nodeType||t===t.window)return!1;try{if(t.constructor&&!{}.hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}return!0}},46975:(t,e,i)=>{var s=i(41786);t.exports=function(t,e){var i=s(t);for(var r in e)i.hasOwnProperty(r)||(i[r]=e[r]);return i}},269:(t,e,i)=>{var s=i(41786);t.exports=function(t,e){var i=s(t);for(var r in e)i.hasOwnProperty(r)&&(i[r]=e[r]);return i}},18254:(t,e,i)=>{var s=i(97022);t.exports=function(t,e){for(var i={},r=0;r{t.exports=function(t,e,i){if(!t||"number"==typeof t)return!1;if(t.hasOwnProperty(e))return t[e]=i,!0;if(-1!==e.indexOf(".")){for(var s=e.split("."),r=t,n=t,o=0;o{t.exports={Clone:i(41786),DeepCopy:i(62644),Extend:i(79291),GetAdvancedValue:i(23568),GetFastValue:i(95540),GetMinMaxValue:i(82840),GetValue:i(35154),HasAll:i(69036),HasAny:i(1985),HasValue:i(97022),IsPlainObject:i(41212),Merge:i(46975),MergeRight:i(269),Pick:i(18254),SetValue:i(61622)}},27902:t=>{t.exports=function(t,e){return t.replace(/%([0-9]+)/g,(function(t,i){return e[Number(i)-1]}))}},41836:t=>{t.exports=function(t,e,i,s){void 0===e&&(e=0),void 0===i&&(i=" "),void 0===s&&(s=3);var r=0;if(e+1>=(t=t.toString()).length)switch(s){case 1:t=new Array(e+1-t.length).join(i)+t;break;case 3:var n=Math.ceil((r=e-t.length)/2);t=new Array(r-n+1).join(i)+t+new Array(n+1).join(i);break;default:t+=new Array(e+1-t.length).join(i)}return t}},33628:t=>{t.exports=function(t,e){return 0===e?t.slice(1):t.slice(0,e-1)+t.slice(e)}},27671:t=>{t.exports=function(t){return t.split("").reverse().join("")}},45650:t=>{t.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}},35355:t=>{t.exports=function(t){return t&&t[0].toUpperCase()+t.slice(1)}},31749:(t,e,i)=>{t.exports={Format:i(27902),Pad:i(41836),RemoveAt:i(33628),Reverse:i(27671),UppercaseFirst:i(35355),UUID:i(45650)}}},e={};function i(s){var r=e[s];if(void 0!==r)return r.exports;var n=e[s]={exports:{}};return t[s](n,n.exports,i),n.exports}return i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i(85454)})())());class tt extends Phaser.Scene{flashRect;cameraShakeValue;constructor(t){super(t),this.cameraShakeValue=0,this.flashRect=null}fade(t,e,i){let s=Phaser.Display.Color.ColorToRGBA(i);this.cameras.main.fadeEffect.start(t,e,s.r,s.g,s.b)}flash(t,e=16777215,i=1){this.flashRect||(this.flashRect=this.add.rectangle(this.CX,this.CY,this.W,this.H,0),this.flashRect.setDepth(9999999999)),this.flashRect.setAlpha(i),this.flashRect.fillColor=e,this.tweens.add({targets:this.flashRect,alpha:{from:i,to:0},ease:"Cubic.Out",duration:t})}shake(t,e=1,i=0){this.cameraShakeValue=e,this.tweens.add({targets:this,cameraShakeValue:{from:e,to:i},ease:i{this.cameraShakeValue=0}})}addEvent(t,e,i=this){return this.time.addEvent({delay:t,callback:e,callbackScope:i})}addText({fontFamily:t="Game Font",x:e=0,y:i=0,size:s=12,weight:r=500,color:n="#FFFFFF",alpha:o=1,text:a=""}){return this.add.text(e,i,a,{fontFamily:t,fontSize:Math.max(s,1)+"px",fontStyle:r.toString(),color:n}).setAlpha(o).setPadding(2)}fitToScreen(t){t.setScale(Math.max(this.W/t.width,this.H/t.height))}containToScreen(t){t.setScale(Math.min(this.W/t.width,this.H/t.height))}get W(){return this.cameras.main.displayWidth}get H(){return this.cameras.main.displayHeight}get CX(){return this.cameras.main.centerX}get CY(){return this.cameras.main.centerY}}const et=""+new URL("background-D68ZDri5.png",import.meta.url).href,it=""+new URL("grid1-DYknCd0J.png",import.meta.url).href,st=""+new URL("grid2-DWUPQ8ux.png",import.meta.url).href,rt=""+new URL("grid3-iXT3f-Oi.png",import.meta.url).href,nt=""+new URL("grid4-l4os8jnD.png",import.meta.url).href,ot=""+new URL("playarea-base-Dc210b5P.png",import.meta.url).href,at=""+new URL("largeCSit1-DrM3gWbg.png",import.meta.url).href,ht=""+new URL("largeCSit1_aqua-JakUc0SS.png",import.meta.url).href,lt=""+new URL("largeCSit1_green-DxoTWNWr.png",import.meta.url).href,ut=""+new URL("largeCSit1_red-CBwr4LaG.png",import.meta.url).href,ct=""+new URL("largeCWalk1-ChtJe88e.png",import.meta.url).href,dt=""+new URL("largeCWalk1_aqua-1hWEzf67.png",import.meta.url).href,pt=""+new URL("largeCWalk1_green-VeTh1j4R.png",import.meta.url).href,ft=""+new URL("largeCWalk1_red-CJY1IL7A.png",import.meta.url).href,gt=""+new URL("largeCWalk2-DH3mGqcW.png",import.meta.url).href,mt=""+new URL("largeCWalk2_aqua-B0x3poiI.png",import.meta.url).href,vt=""+new URL("largeCWalk2_green-LZ26pnZm.png",import.meta.url).href,yt=""+new URL("largeCWalk2_red-CwnVKNi9.png",import.meta.url).href,xt=""+new URL("largeCWalk3-BnrwSn83.png",import.meta.url).href,wt=""+new URL("largeCWalk3_aqua-CAfv9djs.png",import.meta.url).href,Tt=""+new URL("largeCWalk3_green-BcEwNAtO.png",import.meta.url).href,bt=""+new URL("largeCWalk3_red-t9BlBxJD.png",import.meta.url).href,St=""+new URL("medCSit1-DK76idiW.png",import.meta.url).href,Et=""+new URL("medCSit1_aqua-mTTjUjBB.png",import.meta.url).href,Ct=""+new URL("medCSit1_green-9aKM2Viw.png",import.meta.url).href,At=""+new URL("medCSit1_red-U-sDUztL.png",import.meta.url).href,_t=""+new URL("medCWalk1-CyPdHoAv.png",import.meta.url).href,Pt=""+new URL("medCWalk1_aqua-SmQLreJf.png",import.meta.url).href,Rt=""+new URL("medCWalk1_green-BRj_bGgN.png",import.meta.url).href,Mt=""+new URL("medCWalk1_red-DElAGWb_.png",import.meta.url).href,kt=""+new URL("medCWalk2-Wgf7jxrU.png",import.meta.url).href,Lt=""+new URL("medCWalk2_aqua-jRyozQ46.png",import.meta.url).href,Ot=""+new URL("medCWalk2_green-5_t16Ee2.png",import.meta.url).href,Ft=""+new URL("medCWalk2_red-fxeERtLB.png",import.meta.url).href,Dt=""+new URL("medCWalk3-DzDONOGe.png",import.meta.url).href,It=""+new URL("medCWalk3_aqua-DTE16Dtd.png",import.meta.url).href,Bt=""+new URL("medCWalk3_green-8IuDl5fI.png",import.meta.url).href,Nt=""+new URL("medCWalk3_red-BvsRbNI4.png",import.meta.url).href,Ut=""+new URL("moneybagSprite-C00BS5_E.png",import.meta.url).href,Yt=""+new URL("player-bGWAzV5n.png",import.meta.url).href,zt=""+new URL("smallCSit1-gWvCqb7N.png",import.meta.url).href,Xt=""+new URL("smallCSit1_aqua-CH5ssgpm.png",import.meta.url).href,Gt=""+new URL("smallCSit1_green-Btv1nEXV.png",import.meta.url).href,Wt=""+new URL("smallCSit1_red-Csslhdda.png",import.meta.url).href,Vt=""+new URL("smallCWalk1-DirBV2NN.png",import.meta.url).href,Ht=""+new URL("smallCWalk1_aqua-B9o24prq.png",import.meta.url).href,jt=""+new URL("smallCWalk1_green-g_Gs9kn7.png",import.meta.url).href,qt=""+new URL("smallCWalk1_red-Dh0HWcq5.png",import.meta.url).href,Kt=""+new URL("smallCWalk2-Cbdj27pY.png",import.meta.url).href,Zt=""+new URL("smallCWalk2_aqua-BXz5y3Yj.png",import.meta.url).href,Jt=""+new URL("smallCWalk2_green-kOv11F2v.png",import.meta.url).href,Qt=""+new URL("smallCWalk2_red-BMW0GG0q.png",import.meta.url).href,$t=""+new URL("smallCWalk3-CXln23J6.png",import.meta.url).href,te=""+new URL("smallCWalk3_aqua-CXx86bDC.png",import.meta.url).href,ee=""+new URL("smallCWalk3_green-DGnnK2Mz.png",import.meta.url).href,ie=""+new URL("smallCWalk3_red-D2KgKrlR.png",import.meta.url).href,se=""+new URL("worker-CExr65XG.png",import.meta.url).href,re=""+new URL("workerAlt1-BWgMDrcj.png",import.meta.url).href,ne=""+new URL("workerAlt1WalkDown1-CWpYedi7.png",import.meta.url).href,oe=""+new URL("workerAlt1-BWgMDrcj.png",import.meta.url).href,ae=""+new URL("workerAlt1WalkDown3-Cpsc9SE3.png",import.meta.url).href,he=""+new URL("workerAlt1Working-BkQatj9a.png",import.meta.url).href,le=""+new URL("workerAlt1Working2-ha3Y6wyi.png",import.meta.url).href,ue=""+new URL("workerAlt2-69T1Ws1O.png",import.meta.url).href,ce=""+new URL("workerAlt2WalkDown1-D67pu1vV.png",import.meta.url).href,de=""+new URL("workerAlt2-69T1Ws1O.png",import.meta.url).href,pe=""+new URL("workerAlt2WalkDown3-YY073RXR.png",import.meta.url).href,fe=""+new URL("workerAlt2Working-aoyq4zPp.png",import.meta.url).href,ge=""+new URL("workerAlt2Working2-sPxKJU53.png",import.meta.url).href,me=""+new URL("workerAlt3-Dmv1VsPI.png",import.meta.url).href,ve=""+new URL("workerAlt3WalkDown1-oQXIyorL.png",import.meta.url).href,ye=""+new URL("workerAlt3-Dmv1VsPI.png",import.meta.url).href,xe=""+new URL("workerAlt3WalkDown3-CtLrr7Y0.png",import.meta.url).href,we=""+new URL("workerAlt3Working-DqLiCqoj.png",import.meta.url).href,Te=""+new URL("workerAlt3Working2-K2yOb0jg.png",import.meta.url).href,be=""+new URL("workerAlt4-WZDOaBHe.png",import.meta.url).href,Se=""+new URL("workerAlt4WalkDown1-52wmwEFw.png",import.meta.url).href,Ee=""+new URL("workerAlt4-WZDOaBHe.png",import.meta.url).href,Ce=""+new URL("workerAlt4WalkDown3-DQvjNOm9.png",import.meta.url).href,Ae=""+new URL("workerAlt4Working-D7_OK6rp.png",import.meta.url).href,_e=""+new URL("workerAlt4Working2--H8--thG.png",import.meta.url).href,Pe=""+new URL("workerWalkDown1-BiuCWN_2.png",import.meta.url).href,Re=""+new URL("worker-CExr65XG.png",import.meta.url).href,Me=""+new URL("workerWalkDown3-B8pKQIhc.png",import.meta.url).href,ke=""+new URL("workerWorking-ZYz4qUiK.png",import.meta.url).href,Le=""+new URL("workerWorking2-C6edLDHe.png",import.meta.url).href,Oe=""+new URL("dummy1-DZ-2mjy5.png",import.meta.url).href,Fe=""+new URL("dummy2-DIwzqxXh.png",import.meta.url).href,De=""+new URL("dummy3-CfFp-YAL.png",import.meta.url).href,Ie=""+new URL("dummy4-CHQiABAj.png",import.meta.url).href,Be=""+new URL("bath1-B8XIFLgM.png",import.meta.url).href,Ne=""+new URL("bath1f-BiFPuVjX.png",import.meta.url).href,Ue=""+new URL("bath2-BFLFAWcT.png",import.meta.url).href,Ye=""+new URL("bath2f-D4wWyDJe.png",import.meta.url).href,ze=""+new URL("bath3-CnLcLPPb.png",import.meta.url).href,Xe=""+new URL("bath3f-CIT5qGTm.png",import.meta.url).href,Ge=""+new URL("checkout-CkTlIvML.png",import.meta.url).href,We=""+new URL("coin-D-kONNYd.png",import.meta.url).href,Ve=""+new URL("nail1-h1kLoUKw.png",import.meta.url).href,He=""+new URL("nail2-jCtpqazZ.png",import.meta.url).href,je=""+new URL("nail3-Ayxt5Bqf.png",import.meta.url).href,qe=""+new URL("waitchair1-9XadsPaB.png",import.meta.url).href,Ke=""+new URL("waitchair2-Brk8OapF.png",import.meta.url).href,Ze=""+new URL("waitchair3-CYrS1b0T.png",import.meta.url).href,Je=""+new URL("wax1-RjQiHmkG.png",import.meta.url).href,Qe=""+new URL("wax2-DwtvhbLZ.png",import.meta.url).href,$e=""+new URL("wax3-ToHv0vBR.png",import.meta.url).href,ti=""+new URL("anger-D8yCAV5n.png",import.meta.url).href,ei=""+new URL("blankspr-Vu2mcIFt.png",import.meta.url).href,ii=""+new URL("boykisser-BZmdx0c1.png",import.meta.url).href,si=""+new URL("brocc-DMjOE3te.png",import.meta.url).href,ri=""+new URL("buybutton-C8eH3b_H.png",import.meta.url).href,ni=""+new URL("coke-CXdE2ytt.png",import.meta.url).href,oi=""+new URL("defaultsparks-8JJCDixL.png",import.meta.url).href,ai=""+new URL("dragon-BHlkVOCS.png",import.meta.url).href,hi=""+new URL("ellipse-BVF0eImV.png",import.meta.url).href,li=""+new URL("fwbutton-C1TaX9sy.png",import.meta.url).href,ui=""+new URL("greensparks-YNFLAoSr.png",import.meta.url).href,ci=""+new URL("h1-C1aL_uqf.png",import.meta.url).href,di=""+new URL("h2-D9dXQ_Ep.png",import.meta.url).href,pi=""+new URL("h3-D2E7Iwbo.png",import.meta.url).href,fi=""+new URL("h4--6Gw3b7J.png",import.meta.url).href,gi=""+new URL("h5-CANWIUDp.png",import.meta.url).href,mi=""+new URL("h6-NRxwo5AT.png",import.meta.url).href,vi=""+new URL("hotdog-DvmJ3beZ.png",import.meta.url).href,yi=""+new URL("hourglass-Bhf1ZpnW.png",import.meta.url).href,xi=""+new URL("hypnosis-_IY0oTqS.png",import.meta.url).href,wi=""+new URL("invbutton-C-p3lIyd.png",import.meta.url).href,Ti=""+new URL("invwindow-DOUZ4nEl.png",import.meta.url).href,bi=""+new URL("lugia-CyOdwf_v.png",import.meta.url).href,Si=""+new URL("milk-CQBpgA0g.png",import.meta.url).href,Ei=""+new URL("otter-CWkNtJzh.png",import.meta.url).href,Ci=""+new URL("pillowtalk-DH48ONiK.png",import.meta.url).href,Ai=""+new URL("player-bGWAzV5n.png",import.meta.url).href,_i=""+new URL("pocky-Dgd0l7OM.png",import.meta.url).href,Pi=""+new URL("polish-Cz21o13f.png",import.meta.url).href,Ri=""+new URL("protogen-JfTFpnTk.png",import.meta.url).href,Mi=""+new URL("raptor-Cj7An6RZ.png",import.meta.url).href,ki=""+new URL("redsparks-CT2stA_V.png",import.meta.url).href,Li=""+new URL("redx-BtQHeZmG.png",import.meta.url).href,Oi=""+new URL("rock-DzXSorOR.png",import.meta.url).href,Fi=""+new URL("shopwindow-CNZotfdM.png",import.meta.url).href,Di=""+new URL("shuriken-CPAwzYgj.png",import.meta.url).href,Ii=""+new URL("snowglobe-DK1_7Uld.png",import.meta.url).href,Bi=""+new URL("triceratops-D2YU6d87.png",import.meta.url).href,Ni=""+new URL("usb-DKwtyAX7.png",import.meta.url).href,Ui=""+new URL("background-jAV_-imz.png",import.meta.url).href,Yi=""+new URL("backgroundbath-C-MBTDN7.png",import.meta.url).href,zi=""+new URL("backgroundsitting-OalX4cYS.png",import.meta.url).href,Xi=""+new URL("character-dnr44odR.png",import.meta.url).href,Gi=""+new URL("foreground-BVWaqVD7.png",import.meta.url).href,Wi=""+new URL("hand-CmPdS6-B.png",import.meta.url).href,Vi=""+new URL("sky-BXQySOFR.png",import.meta.url).href,Hi=""+new URL("tail-PVjp3zoF.png",import.meta.url).href,ji=""+new URL("title-DFBSVLUC.png",import.meta.url).href,qi=""+new URL("titlescreen full-IiVeEWPq.png",import.meta.url).href,Ki=""+new URL("washbearhand-B-UEezbP.png",import.meta.url).href,Zi=""+new URL("washbeartail-BvDNUTtY.png",import.meta.url).href,Ji=""+new URL("0-e2ps3I15.png",import.meta.url).href,Qi=""+new URL("1-Tt1mI-F5.png",import.meta.url).href,$i=""+new URL("2-D94Kv7D6.png",import.meta.url).href,ts=""+new URL("3-FB8PK3iI.png",import.meta.url).href,es=""+new URL("4-O_VUis5s.png",import.meta.url).href,is=""+new URL("5-1gbBxxYy.png",import.meta.url).href,ss=""+new URL("6-BkqZbckL.png",import.meta.url).href,rs=""+new URL("7-eUprky--.png",import.meta.url).href,ns=""+new URL("8-DcXf5pR7.png",import.meta.url).href,os=""+new URL("9-CBhHWu1e.png",import.meta.url).href,as=""+new URL("Area-BSA2QDoy.png",import.meta.url).href,hs=""+new URL("By-Bhmdyvxg.png",import.meta.url).href,ls=""+new URL("Global-DW3zvzNZ.png",import.meta.url).href,us=""+new URL("S-Bk5WPP1I.png",import.meta.url).href,cs=""+new URL("angyv-kpGrrPQb.png",import.meta.url).href,ds=""+new URL("arrow-CVfI9oJs.png",import.meta.url).href,ps=""+new URL("best-Cgz_rJAx.png",import.meta.url).href,fs=""+new URL("bubble-BeOD5D0M.png",import.meta.url).href,gs=""+new URL("continue-E0GUnZI3.png",import.meta.url).href,ms=""+new URL("exclaimation2-Bzd5FnQO.png",import.meta.url).href,vs=""+new URL("exclamation-BH_GQfse.png",import.meta.url).href,ys=""+new URL("happy-BOigVOi5.png",import.meta.url).href,xs=""+new URL("love-DM39cSsC.png",import.meta.url).href,ws=""+new URL("minus-xUI25vQP.png",import.meta.url).href,Ts=""+new URL("money-DbRYz8eC.png",import.meta.url).href,bs=""+new URL("next-BvpR8wS_.png",import.meta.url).href,Ss=""+new URL("plus (2)-Cwd5cOpW.png",import.meta.url).href,Es=""+new URL("plus-CcDYEMpV.png",import.meta.url).href,Cs=""+new URL("point-BM1rkqp-.png",import.meta.url).href,As=""+new URL("previous-BgotoIZp.png",import.meta.url).href,_s=""+new URL("question-D1m3thcR.png",import.meta.url).href,Ps=""+new URL("question2-DZOlv-fi.png",import.meta.url).href,Rs=""+new URL("sad-C2voqRAG.png",import.meta.url).href,Ms=""+new URL("star-Za7m6GaI.png",import.meta.url).href,ks=""+new URL("timer-BRyOyctT.png",import.meta.url).href,Ls=""+new URL("total-BheIqHH_.png",import.meta.url).href,Os=""+new URL("first-B0E5EdIx.mp3",import.meta.url).href,Fs=""+new URL("title-Ch4A-h0B.mp3",import.meta.url).href,Ds=""+new URL("bite-D3tstpLF.mp3",import.meta.url).href,Is=""+new URL("button-Cb9T30w4.mp3",import.meta.url).href,Bs=""+new URL("cashmoney-CcfunbTk.mp3",import.meta.url).href,Ns=""+new URL("chomp-Bj1zLxtF.mp3",import.meta.url).href,Us=""+new URL("crit-YslV7lBd.mp3",import.meta.url).href,Ys=""+new URL("doink-DAAWKDqC.mp3",import.meta.url).href,zs=""+new URL("dropcustomer-eZ7j3lyT.mp3",import.meta.url).href,Xs=""+new URL("endday-Bp2-BbP1.mp3",import.meta.url).href,Gs=""+new URL("fail-BC2GDUtG.mp3",import.meta.url).href,Ws=""+new URL("goldbath-BZVeye6C.mp3",import.meta.url).href,Vs=""+new URL("pickupcustomer-DWYZbaeF.mp3",import.meta.url).href,Hs=""+new URL("place-DO_ISFDc.mp3",import.meta.url).href,js=""+new URL("polish-D9g76JHA.mp3",import.meta.url).href,qs=""+new URL("return-CpkahYC_.mp3",import.meta.url).href,Ks=""+new URL("scroll-CjP2IcND.mp3",import.meta.url).href,Zs=""+new URL("slurp-CFDjDYxz.mp3",import.meta.url).href,Js=""+new URL("snip-DXfKCcF0.mp3",import.meta.url).href,Qs=""+new URL("sparkle-CfdcW74m.mp3",import.meta.url).href,$s=""+new URL("sqk-B5h5tRIj.mp3",import.meta.url).href,tr=""+new URL("sqk-B5h5tRIj.mp3",import.meta.url).href,er=""+new URL("squish2-B2qmO0vX.mp3",import.meta.url).href,ir=""+new URL("escape-Do8Ab1Lg.mp3",import.meta.url).href,sr=""+new URL("meme_explosion_sound-DBO1TqjO.mp3",import.meta.url).href,rr=""+new URL("rustle-B_tPJP7H.mp3",import.meta.url).href,nr=""+new URL("air-Dsl2z1Wz.mp3",import.meta.url).href,or=""+new URL("flail-RM5BMKwB.mp3",import.meta.url).href,ar=""+new URL("grab-DGX99ujz.mp3",import.meta.url).href,hr=""+new URL("land-VUZg6CoO.mp3",import.meta.url).href,lr=""+new URL("letgo1-9wUAHiFA.mp3",import.meta.url).href,ur=""+new URL("letgo2-C5jjOwaF.mp3",import.meta.url).href,cr=""+new URL("letgo3-A7784RLu.mp3",import.meta.url).href,dr=""+new URL("miss-iEZJhAg0.mp3",import.meta.url).href,pr=""+new URL("missLand-BySkALOK.mp3",import.meta.url).href,fr=""+new URL("score-CY5PTt3D.mp3",import.meta.url).href,gr=""+new URL("slip-7Zk2TaAp.mp3",import.meta.url).href,mr=""+new URL("toss-rc84DhcA.mp3",import.meta.url).href,vr=""+new URL("trick-DAG_DD4t.mp3",import.meta.url).href,yr=""+new URL("trip-Ld6YU4Q3.mp3",import.meta.url).href,xr=""+new URL("DynaPuff-Medium-DEziKUpu.ttf",import.meta.url).href,wr=""+new URL("Sketch-DdVMapkx.ttf",import.meta.url).href,Tr=Object.assign({"./images/backgrounds/background.png":et,"./images/backgrounds/grid1.png":it,"./images/backgrounds/grid2.png":st,"./images/backgrounds/grid3.png":rt,"./images/backgrounds/grid4.png":nt,"./images/backgrounds/playarea-base.png":ot,"./images/characters/largeCSit1.png":at,"./images/characters/largeCSit1_aqua.png":ht,"./images/characters/largeCSit1_green.png":lt,"./images/characters/largeCSit1_red.png":ut,"./images/characters/largeCWalk1.png":ct,"./images/characters/largeCWalk1_aqua.png":dt,"./images/characters/largeCWalk1_green.png":pt,"./images/characters/largeCWalk1_red.png":ft,"./images/characters/largeCWalk2.png":gt,"./images/characters/largeCWalk2_aqua.png":mt,"./images/characters/largeCWalk2_green.png":vt,"./images/characters/largeCWalk2_red.png":yt,"./images/characters/largeCWalk3.png":xt,"./images/characters/largeCWalk3_aqua.png":wt,"./images/characters/largeCWalk3_green.png":Tt,"./images/characters/largeCWalk3_red.png":bt,"./images/characters/medCSit1.png":St,"./images/characters/medCSit1_aqua.png":Et,"./images/characters/medCSit1_green.png":Ct,"./images/characters/medCSit1_red.png":At,"./images/characters/medCWalk1.png":_t,"./images/characters/medCWalk1_aqua.png":Pt,"./images/characters/medCWalk1_green.png":Rt,"./images/characters/medCWalk1_red.png":Mt,"./images/characters/medCWalk2.png":kt,"./images/characters/medCWalk2_aqua.png":Lt,"./images/characters/medCWalk2_green.png":Ot,"./images/characters/medCWalk2_red.png":Ft,"./images/characters/medCWalk3.png":Dt,"./images/characters/medCWalk3_aqua.png":It,"./images/characters/medCWalk3_green.png":Bt,"./images/characters/medCWalk3_red.png":Nt,"./images/characters/moneybagSprite.png":Ut,"./images/characters/player.png":Yt,"./images/characters/smallCSit1.png":zt,"./images/characters/smallCSit1_aqua.png":Xt,"./images/characters/smallCSit1_green.png":Gt,"./images/characters/smallCSit1_red.png":Wt,"./images/characters/smallCWalk1.png":Vt,"./images/characters/smallCWalk1_aqua.png":Ht,"./images/characters/smallCWalk1_green.png":jt,"./images/characters/smallCWalk1_red.png":qt,"./images/characters/smallCWalk2.png":Kt,"./images/characters/smallCWalk2_aqua.png":Zt,"./images/characters/smallCWalk2_green.png":Jt,"./images/characters/smallCWalk2_red.png":Qt,"./images/characters/smallCWalk3.png":$t,"./images/characters/smallCWalk3_aqua.png":te,"./images/characters/smallCWalk3_green.png":ee,"./images/characters/smallCWalk3_red.png":ie,"./images/characters/worker.png":se,"./images/characters/workerAlt1.png":re,"./images/characters/workerAlt1WalkDown1.png":ne,"./images/characters/workerAlt1WalkDown2.png":oe,"./images/characters/workerAlt1WalkDown3.png":ae,"./images/characters/workerAlt1Working.png":he,"./images/characters/workerAlt1Working2.png":le,"./images/characters/workerAlt2.png":ue,"./images/characters/workerAlt2WalkDown1.png":ce,"./images/characters/workerAlt2WalkDown2.png":de,"./images/characters/workerAlt2WalkDown3.png":pe,"./images/characters/workerAlt2Working.png":fe,"./images/characters/workerAlt2Working2.png":ge,"./images/characters/workerAlt3.png":me,"./images/characters/workerAlt3WalkDown1.png":ve,"./images/characters/workerAlt3WalkDown2.png":ye,"./images/characters/workerAlt3WalkDown3.png":xe,"./images/characters/workerAlt3Working.png":we,"./images/characters/workerAlt3Working2.png":Te,"./images/characters/workerAlt4.png":be,"./images/characters/workerAlt4WalkDown1.png":Se,"./images/characters/workerAlt4WalkDown2.png":Ee,"./images/characters/workerAlt4WalkDown3.png":Ce,"./images/characters/workerAlt4Working.png":Ae,"./images/characters/workerAlt4Working2.png":_e,"./images/characters/workerWalkDown1.png":Pe,"./images/characters/workerWalkDown2.png":Re,"./images/characters/workerWalkDown3.png":Me,"./images/characters/workerWorking.png":ke,"./images/characters/workerWorking2.png":Le,"./images/cutscenes/dummy1.png":Oe,"./images/cutscenes/dummy2.png":Fe,"./images/cutscenes/dummy3.png":De,"./images/cutscenes/dummy4.png":Ie,"./images/items/bath1.png":Be,"./images/items/bath1f.png":Ne,"./images/items/bath2.png":Ue,"./images/items/bath2f.png":Ye,"./images/items/bath3.png":ze,"./images/items/bath3f.png":Xe,"./images/items/checkout.png":Ge,"./images/items/coin.png":We,"./images/items/nail1.png":Ve,"./images/items/nail2.png":He,"./images/items/nail3.png":je,"./images/items/waitchair1.png":qe,"./images/items/waitchair2.png":Ke,"./images/items/waitchair3.png":Ze,"./images/items/wax1.png":Je,"./images/items/wax2.png":Qe,"./images/items/wax3.png":$e,"./images/temp/anger.png":ti,"./images/temp/blankspr.png":ei,"./images/temp/boykisser.png":ii,"./images/temp/brocc.png":si,"./images/temp/buybutton.png":ri,"./images/temp/coke.png":ni,"./images/temp/defaultsparks.png":oi,"./images/temp/dragon.png":ai,"./images/temp/ellipse.png":hi,"./images/temp/fwbutton.png":li,"./images/temp/greensparks.png":ui,"./images/temp/h1.png":ci,"./images/temp/h2.png":di,"./images/temp/h3.png":pi,"./images/temp/h4.png":fi,"./images/temp/h5.png":gi,"./images/temp/h6.png":mi,"./images/temp/hotdog.png":vi,"./images/temp/hourglass.png":yi,"./images/temp/hypnosis.png":xi,"./images/temp/invbutton.png":wi,"./images/temp/invwindow.png":Ti,"./images/temp/lugia.png":bi,"./images/temp/milk.png":Si,"./images/temp/otter.png":Ei,"./images/temp/pillowtalk.png":Ci,"./images/temp/player.png":Ai,"./images/temp/pocky.png":_i,"./images/temp/polish.png":Pi,"./images/temp/protogen.png":Ri,"./images/temp/raptor.png":Mi,"./images/temp/redsparks.png":ki,"./images/temp/redx.png":Li,"./images/temp/rock.png":Oi,"./images/temp/shopwindow.png":Fi,"./images/temp/shuriken.png":Di,"./images/temp/snowglobe.png":Ii,"./images/temp/triceratops.png":Bi,"./images/temp/usb.png":Ni,"./images/titlescreen/background.png":Ui,"./images/titlescreen/backgroundbath.png":Yi,"./images/titlescreen/backgroundsitting.png":zi,"./images/titlescreen/character.png":Xi,"./images/titlescreen/foreground.png":Gi,"./images/titlescreen/hand.png":Wi,"./images/titlescreen/sky.png":Vi,"./images/titlescreen/tail.png":Hi,"./images/titlescreen/title.png":ji,"./images/titlescreen/titlescreen full.png":qi,"./images/titlescreen/washbearhand.png":Ki,"./images/titlescreen/washbeartail.png":Zi,"./images/ui/0.png":Ji,"./images/ui/1.png":Qi,"./images/ui/2.png":$i,"./images/ui/3.png":ts,"./images/ui/4.png":es,"./images/ui/5.png":is,"./images/ui/6.png":ss,"./images/ui/7.png":rs,"./images/ui/8.png":ns,"./images/ui/9.png":os,"./images/ui/Area.png":as,"./images/ui/By.png":hs,"./images/ui/Global.png":ls,"./images/ui/S.png":us,"./images/ui/angyv.png":cs,"./images/ui/arrow.png":ds,"./images/ui/best.png":ps,"./images/ui/bubble.png":fs,"./images/ui/continue.png":gs,"./images/ui/exclaimation2.png":ms,"./images/ui/exclamation.png":vs,"./images/ui/happy.png":ys,"./images/ui/love.png":xs,"./images/ui/minus.png":ws,"./images/ui/money.png":Ts,"./images/ui/next.png":bs,"./images/ui/plus (2).png":Ss,"./images/ui/plus.png":Es,"./images/ui/point.png":Cs,"./images/ui/previous.png":As,"./images/ui/question.png":_s,"./images/ui/question2.png":Ps,"./images/ui/sad.png":Rs,"./images/ui/star.png":Ms,"./images/ui/timer.png":ks,"./images/ui/total.png":Ls}),br=(t,e)=>({key:e,path:Tr[`./images/${t}.png`]}),Sr=(t,e,i,s)=>({key:e,width:i,height:s,path:Tr[`./images/${t}.png`]}),Er=Object.assign({"./music/first.mp3":Os,"./music/title.mp3":Fs}),Cr=(t,e,i,s)=>({key:e,volume:i,rate:s,path:Er[`./music/${t}.mp3`]}),Ar=Object.assign({"./sounds/bite.mp3":Ds,"./sounds/button.mp3":Is,"./sounds/cashmoney.mp3":Bs,"./sounds/chomp.mp3":Ns,"./sounds/crit.mp3":Us,"./sounds/doink.mp3":Ys,"./sounds/dropcustomer.mp3":zs,"./sounds/endday.mp3":Xs,"./sounds/fail.mp3":Gs,"./sounds/goldbath.mp3":Ws,"./sounds/pickupcustomer.mp3":Vs,"./sounds/place.mp3":Hs,"./sounds/polish.mp3":js,"./sounds/return.mp3":qs,"./sounds/scroll.mp3":Ks,"./sounds/slurp.mp3":Zs,"./sounds/snip.mp3":Js,"./sounds/sparkle.mp3":Qs,"./sounds/sqk.mp3":$s,"./sounds/squish1.mp3":tr,"./sounds/squish2.mp3":er,"./sounds/tree/escape.mp3":ir,"./sounds/tree/meme_explosion_sound.mp3":sr,"./sounds/tree/rustle.mp3":rr,"./sounds/turtle/air.mp3":nr,"./sounds/turtle/flail.mp3":or,"./sounds/turtle/grab.mp3":ar,"./sounds/turtle/land.mp3":hr,"./sounds/turtle/letgo1.mp3":lr,"./sounds/turtle/letgo2.mp3":ur,"./sounds/turtle/letgo3.mp3":cr,"./sounds/turtle/miss.mp3":dr,"./sounds/turtle/missLand.mp3":pr,"./sounds/turtle/score.mp3":fr,"./sounds/turtle/slip.mp3":gr,"./sounds/turtle/toss.mp3":mr,"./sounds/turtle/trick.mp3":vr,"./sounds/turtle/trip.mp3":yr}),_r=(t,e,i,s)=>({key:e,volume:i,rate:s,path:Ar[`./sounds/${t}.mp3`]}),Pr=Object.assign({"./fonts/DynaPuff-Medium.ttf":xr,"./fonts/Sketch.ttf":wr}),Rr=[br("backgrounds/background","background"),br("backgrounds/playarea-base","playArea_base"),br("backgrounds/grid1","grid1"),br("backgrounds/grid2","grid2"),br("backgrounds/grid3","grid3"),br("backgrounds/grid4","grid4"),br("cutscenes/dummy1","cutscene_dummy1"),br("cutscenes/dummy2","cutscene_dummy2"),br("cutscenes/dummy3","cutscene_dummy3"),br("cutscenes/dummy4","cutscene_dummy4"),br("characters/player","player"),br("characters/worker","worker"),br("characters/workerWalkDown1","workerWalk1"),br("characters/workerWalkDown2","workerWalk2"),br("characters/workerWalkDown3","workerWalk3"),br("characters/workerWorking","workerWork1"),br("characters/workerWorking2","workerWork2"),br("characters/workerAlt1","workerAlt1"),br("characters/workerAlt1WalkDown1","workerAlt1Walk1"),br("characters/workerAlt1WalkDown2","workerAlt1Walk2"),br("characters/workerAlt1WalkDown3","workerAlt1Walk3"),br("characters/workerAlt1Working","workerAlt1Work1"),br("characters/workerAlt1Working2","workerAlt1Work2"),br("characters/workerAlt2","workerAlt2"),br("characters/workerAlt2WalkDown1","workerAlt2Walk1"),br("characters/workerAlt2WalkDown2","workerAlt2Walk2"),br("characters/workerAlt2WalkDown3","workerAlt2Walk3"),br("characters/workerAlt2Working","workerAlt2Work1"),br("characters/workerAlt2Working2","workerAlt2Work2"),br("characters/workerAlt3","workerAlt3"),br("characters/workerAlt3WalkDown1","workerAlt3Walk1"),br("characters/workerAlt3WalkDown2","workerAlt3Walk2"),br("characters/workerAlt3WalkDown3","workerAlt3Walk3"),br("characters/workerAlt3Working","workerAlt3Work1"),br("characters/workerAlt3Working2","workerAlt3Work2"),br("characters/workerAlt4","workerAlt4"),br("characters/workerAlt4WalkDown1","workerAlt4Walk1"),br("characters/workerAlt4WalkDown2","workerAlt4Walk2"),br("characters/workerAlt4WalkDown3","workerAlt4Walk3"),br("characters/workerAlt4Working","workerAlt4Work1"),br("characters/workerAlt4Working2","workerAlt4Work2"),br("characters/smallCWalk1","small_customer_walk1"),br("characters/smallCWalk2","small_customer_walk2"),br("characters/smallCWalk3","small_customer_walk3"),br("characters/smallCSit1","small_customer_sit1"),br("characters/smallCWalk1_red","small_customer_walk1_red"),br("characters/smallCWalk2_red","small_customer_walk2_red"),br("characters/smallCWalk3_red","small_customer_walk3_red"),br("characters/smallCSit1_red","small_customer_sit1_red"),br("characters/smallCWalk1_aqua","small_customer_walk1_aqua"),br("characters/smallCWalk2_aqua","small_customer_walk2_aqua"),br("characters/smallCWalk3_aqua","small_customer_walk3_aqua"),br("characters/smallCSit1_aqua","small_customer_sit1_aqua"),br("characters/smallCWalk1_green","small_customer_walk1_green"),br("characters/smallCWalk2_green","small_customer_walk2_green"),br("characters/smallCWalk3_green","small_customer_walk3_green"),br("characters/smallCSit1_green","small_customer_sit1_green"),br("characters/medCWalk1","medium_customer_walk1"),br("characters/medCWalk2","medium_customer_walk2"),br("characters/medCWalk3","medium_customer_walk3"),br("characters/medCSit1","medium_customer_sit1"),br("characters/medCWalk1_red","med_customer_walk1_red"),br("characters/medCWalk2_red","med_customer_walk2_red"),br("characters/medCWalk3_red","med_customer_walk3_red"),br("characters/medCSit1_red","med_customer_sit1_red"),br("characters/medCWalk1_aqua","med_customer_walk1_aqua"),br("characters/medCWalk2_aqua","med_customer_walk2_aqua"),br("characters/medCWalk3_aqua","med_customer_walk3_aqua"),br("characters/medCSit1_aqua","med_customer_sit1_aqua"),br("characters/medCWalk1_green","med_customer_walk1_green"),br("characters/medCWalk2_green","med_customer_walk2_green"),br("characters/medCWalk3_green","med_customer_walk3_green"),br("characters/medCSit1_green","med_customer_sit1_green"),br("characters/largeCWalk1","large_customer_walk1"),br("characters/largeCWalk2","large_customer_walk2"),br("characters/largeCWalk3","large_customer_walk3"),br("characters/largeCSit1","large_customer_sit1"),br("characters/largeCWalk1_red","large_customer_walk1_red"),br("characters/largeCWalk2_red","large_customer_walk2_red"),br("characters/largeCWalk3_red","large_customer_walk3_red"),br("characters/largeCSit1_red","large_customer_sit1_red"),br("characters/largeCWalk1_aqua","large_customer_walk1_aqua"),br("characters/largeCWalk2_aqua","large_customer_walk2_aqua"),br("characters/largeCWalk3_aqua","large_customer_walk3_aqua"),br("characters/largeCSit1_aqua","large_customer_sit1_aqua"),br("characters/largeCWalk1_green","large_customer_walk1_green"),br("characters/largeCWalk2_green","large_customer_walk2_green"),br("characters/largeCWalk3_green","large_customer_walk3_green"),br("characters/largeCSit1_green","large_customer_sit1_green"),br("characters/moneybagSprite","moneybag_sprite"),br("items/coin","coin"),br("items/bath1","bath_1"),br("items/bath1f","bath_1_front"),br("items/bath2","bath_2"),br("items/bath2f","bath_2_front"),br("items/bath3","bath_3"),br("items/bath3f","bath_3_front"),br("items/wax1","wax_1"),br("items/wax2","wax_2"),br("items/wax3","wax_3"),br("items/nail1","nail_1"),br("items/nail2","nail_2"),br("items/nail3","nail_3"),br("items/waitchair1","waitchair_1"),br("items/waitchair2","waitchair_2"),br("items/waitchair3","waitchair_3"),br("items/checkout","checkout"),br("ui/angyv","angyv"),br("ui/bubble","bubble"),br("ui/exclamation","exclamation"),br("ui/happy","happy"),br("ui/love","love"),br("ui/money","money"),br("ui/question","question"),br("ui/sad","sad"),br("ui/timer","timer"),br("ui/plus","plus"),br("titlescreen/background","title_background"),br("titlescreen/backgroundsitting","title_chairs"),br("titlescreen/backgroundbath","title_bath"),br("titlescreen/tail","title_tail"),br("titlescreen/hand","title_hand"),br("titlescreen/washbeartail","title_washbear_tail"),br("titlescreen/washbearhand","title_washbear_hand"),br("temp/invwindow","invwindow"),br("temp/shopwindow","shopwindow"),br("temp/lugia","lugia"),br("temp/protogen","protogen"),br("temp/triceratops","triceratops"),br("temp/raptor","raptor"),br("temp/boykisser","boykisser"),br("temp/dragon","dragon"),br("temp/h1","h1"),br("temp/h2","h2"),br("temp/h3","h3"),br("temp/h4","h4"),br("temp/h5","h5"),br("temp/h6","h6")],Mr=[Sr("temp/invbutton","invbutton",240,480),Sr("temp/fwbutton","fwbutton",64,262),Sr("temp/rock","rock",100,100),Sr("temp/coke","coke",100,100),Sr("temp/brocc","brocc",100,100),Sr("temp/hotdog","hotdog",100,100),Sr("temp/hourglass","hourglass",100,100),Sr("temp/hypnosis","hypnosis",100,100),Sr("temp/milk","milk",100,100),Sr("temp/pocky","pocky",100,100),Sr("temp/polish","polish",100,100),Sr("temp/snowglobe","snowglobe",100,100),Sr("temp/usb","usb",100,100),Sr("temp/pillowtalk","pillowtalk",100,100),Sr("temp/shuriken","shuriken",100,100),Sr("temp/redx","redx",64,64),Sr("temp/anger","anger",64,64),Sr("temp/ellipse","ellipse",64,64),Sr("temp/redsparks","redspark",64,64),Sr("temp/greensparks","greenspark",64,64),Sr("temp/defaultsparks","defaultspark",64,64),Sr("temp/blankspr","blankspr",100,100),Sr("temp/buybutton","buybutton",120,90),Sr("temp/otter","otter",1080,1080)],kr=[Cr("title","m_main_menu"),Cr("first","m_first"),_r("place","place",.5),_r("return","return",.5),_r("scroll","scroll",.5),_r("cashmoney","cashmoney",.5),_r("button","button",.5),_r("tree/rustle","t_rustle",.5),_r("tree/escape","fail",.5),_r("crit","crit",.5),_r("sparkle","sparkle",.5),_r("polish","polish",.5),_r("snip","snip",.5),_r("goldbath","goldbath",.5),_r("fail","rip",.5),_r("sqk","sqk",.5),_r("squish1","squish1",.5),_r("squish2","squish2",.5),_r("endday","endday",.5),_r("chomp","chomp",.5),_r("bite","bite",.5),_r("doink","doink",.5),_r("slurp","slurp",.5),_r("pickupcustomer","pickup",.5),_r("dropcustomer","drop",.5),_r("tree/meme_explosion_sound","meme_explosion_sound",.5),_r("turtle/air","air",.5),_r("turtle/flail","flail",.5),_r("turtle/grab","grab",.5),_r("turtle/land","land",.5),_r("turtle/letgo1","letgo1",.5),_r("turtle/letgo2","letgo2",.5),_r("turtle/letgo3","letgo3",.5),_r("turtle/miss","miss",.5),_r("turtle/missLand","missLand",.5),_r("turtle/score","score",.5),_r("turtle/slip","slip",.5),_r("turtle/toss","toss",.5),_r("turtle/trick","trick",.5),_r("turtle/trip","trip",.5)];await(async(t,e)=>{const i=new FontFace(e,`url(${Pr[`./fonts/${t}.ttf`]})`,{style:"normal",weight:"400"});await i.load(),document.fonts.add(i)})("DynaPuff-Medium","Game Font");class Lr extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline{constructor(t){super({game:t,name:"GrayScalePostFilter"})}onPreRender(){this.colorMatrix.blackWhite()}onDraw(t){this.drawFrame(t,this.fullFrame1),this.bindAndDraw(this.fullFrame1)}}class Or extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline{offsetX;offsetY;lowres;steps;constructor(t){super({game:t,name:"BlurPostFilter",fragShader:"\n\t\t\t\t#ifdef GL_FRAGMENT_PRECISION_HIGH\n\t\t\t\t#define highmedp highp\n\t\t\t\t#else\n\t\t\t\t#define highmedp mediump\n\t\t\t\t#endif\n\t\t\t\tprecision highmedp float;\n\n\t\t\t\tuniform sampler2D uMainSampler;\n\t\t\t\tvarying vec2 outTexCoord;\n\t\t\t\tuniform vec2 uTexSize;\n\t\t\t\tuniform vec2 uOffset;\n\n\t\t\t\tvoid main (void) {\n\t\t\t\t\tvec4 c = texture2D( uMainSampler, outTexCoord );\n\t\t\t\t\tvec4 l = texture2D( uMainSampler, outTexCoord + uOffset );\n\t\t\t\t\tvec4 r = texture2D( uMainSampler, outTexCoord - uOffset );\n\n\t\t\t\t\tgl_FragColor = (1.0*c + 1.0*l + 1.0*r) / 3.0;\n\t\t\t\t}\n\t\t\t"}),this.offsetX=1.6,this.offsetY=1.6,this.lowres=!0,this.steps=2}onPreRender(){this.set2f("uTexSize",this.game.scale.width,this.game.scale.height)}onDraw(t){const e=this.lowres?this.halfFrame1:this.fullFrame1,i=this.lowres?this.halfFrame2:this.fullFrame2;this.copyFrame(t,e);const s=1/e.width*this.offsetX,r=1/e.height*this.offsetY;for(let n=0;nthis.end&&(this.setSeek(this.currentTime-(this.end-this.start)),this.loopSum+=this.end-this.start,this.emit("loop"));let t=this.getBarTime();t>=0&&Math.floor(t)!=Math.floor(this._prevBarTime)&&this.emit("bar",Math.floor(t)),this._prevBarTime=t}}getBarTime(){return(this.currentTime-this.offset)/this.speed}getBar(){return Math.floor(this.getBarTime())}get currentTime(){return this.seek}get totalTime(){return this.seek+this.loopSum}get barTime(){return(this.totalTime-this.offset)/this.speed}}const Yr=`${Ir} \n\n@Handle\n@Handle\n@Handle`;class zr extends Phaser.GameObjects.Container{scene;size;width;height;grid;things;constructor(t,e,i,s,r,n){super(t,e,i),t.add.existing(this),this.scene=t,this.size=n,this.width=s,this.height=r,this.grid=this.scene.add.grid(0,0,s*this.size,r*this.size,this.size,this.size,16777215,.1,0,.2),this.add(this.grid),this.things=[]}update(t,e){}resize(t,e,i){this.size=i,this.width=t,this.height=e,this.grid.destroy(),this.grid=this.scene.add.grid(0,0,t*this.size,e*this.size,this.size,this.size,16777215,0,16711680,0),this.add(this.grid)}gridToCoord(t,e){return{x:this.x-this.grid.width/2+t*this.size+this.size/2,y:this.y-this.grid.height/2+e*this.size+this.size/2}}navGridToCoord(t,e){return{x:this.x-this.grid.width/2+t*(this.size/7),y:this.y-this.grid.height/2+e*(this.size/7)}}coordToGrid(t,e){return{x:Math.floor((t-this.x+this.grid.width/2)/this.size),y:Math.floor((e-this.y+this.grid.height/2)/this.size)}}coordToNavGrid(t,e){return{x:Math.floor((t-this.x+this.grid.width/2)/(this.size/7)),y:Math.floor((e-this.y+this.grid.height/2)/(this.size/7))}}coordToNav(t,e){return{x:(t-this.x+this.grid.width/2)/(this.size/7),y:(e-this.y+this.grid.height/2)/(this.size/7)}}}class Xr extends Phaser.GameObjects.Container{scene;enabled;_hold;dragged;blocked;liftSmooth;holdSmooth;category;tween;constructor(t,e,i){super(t,e,i),this.scene=t,t.add.existing(this),this._hold=!1,this.dragged=!1,this.blocked=!1,this.enabled=!0,this.liftSmooth=0,this.holdSmooth=0}bindInteractive(t,e=!1){return t.removeInteractive(),t.setInteractive({useHandCursor:!0,draggable:e}).on("pointerout",this.onOut,this).on("pointerover",this.onOver,this).on("pointerdown",this.onDown,this).on("pointerup",this.onUp,this).on("dragstart",this.onDragStart,this).on("drag",this.onDrag,this).on("dragend",this.onDragEnd,this),t}get hold(){return this._hold}set hold(t){t!=this._hold&&(this.tween&&this.tween.stop(),this.tween=t?this.scene.tweens.add({targets:this,holdSmooth:{from:0,to:1},ease:"Cubic.Out",duration:100}):this.scene.tweens.add({targets:this,holdSmooth:{from:1,to:0},ease:t=>Phaser.Math.Easing.Elastic.Out(t,1.5,.5),duration:400})),this._hold=t}onOut(t,e){this.hold&&this.emit("up"),this.hold=!1}onOver(t,e,i,s){}onDown(t,e,i,s){this.hold||this.emit("down"),this.hold=!0,this.blocked=!1}onUp(t,e,i,s){this.hold&&!this.blocked&&this.enabled&&this.emit("click"),this.hold&&this.emit("up"),this.hold=!1}onDragStart(t,e,i){}onDrag(t,e,i){}onDragEnd(t,e,i){}isInsidePlayingField(){return!1}block(){this.blocked=!0}}const Gr={0:{spriteKeys:{idle:"worker",walk:["workerWalk1","workerWalk2","workerWalk3","workerWalk2"],work:["workerWork1","workerWork2"]}},1:{spriteKeys:{idle:"workerAlt1",walk:["workerAlt1Walk1","workerAlt1Walk2","workerAlt1Walk3","workerAlt1Walk2"],work:["workerAlt1Work1","workerAlt1Work2"]}},2:{spriteKeys:{idle:"workerAlt2",walk:["workerAlt2Walk1","workerAlt2Walk2","workerAlt2Walk3","workerAlt2Walk2"],work:["workerAlt2Work1","workerAlt2Work2"]}},3:{spriteKeys:{idle:"workerAlt3",walk:["workerAlt3Walk1","workerAlt3Walk2","workerAlt3Walk3","workerAlt3Walk2"],work:["workerAlt3Work1","workerAlt3Work2"]}},4:{spriteKeys:{idle:"workerAlt4",walk:["workerAlt4Walk1","workerAlt4Walk2","workerAlt4Walk3","workerAlt4Walk2"],work:["workerAlt4Work1","workerAlt4Work2"]}},5:{spriteKeys:{idle:"player",walk:["player"],work:["player"]}}};var Wr=(t=>(t[t.RaccoonGrayTier1=0]="RaccoonGrayTier1",t[t.RaccoonGrayTier2=1]="RaccoonGrayTier2",t[t.RaccoonGrayTier3=2]="RaccoonGrayTier3",t[t.RaccoonBrownTier1=3]="RaccoonBrownTier1",t[t.RaccoonBrownTier2=4]="RaccoonBrownTier2",t[t.RaccoonBrownTier3=5]="RaccoonBrownTier3",t[t.RaccoonYellowTier1=6]="RaccoonYellowTier1",t[t.RaccoonYellowTier2=7]="RaccoonYellowTier2",t[t.RaccoonYellowTier3=8]="RaccoonYellowTier3",t[t.RaccoonPurpleTier1=9]="RaccoonPurpleTier1",t[t.RaccoonPurpleTier2=10]="RaccoonPurpleTier2",t[t.RaccoonPurpleTier3=11]="RaccoonPurpleTier3",t[t.RaccoonGreenTier1=12]="RaccoonGreenTier1",t[t.RaccoonGreenTier2=13]="RaccoonGreenTier2",t[t.RaccoonGreenTier3=14]="RaccoonGreenTier3",t[t.HumanTier1=15]="HumanTier1",t[t.HumanTier2=16]="HumanTier2",t[t.HumanTier3=17]="HumanTier3",t))(Wr||{});const Vr={0:{type:0,name:"Raccoon employee",tier:1,walkSpeed:2,workSpeed:1,cost:300,upgradeTo:1},1:{type:0,name:"Raccoon employee",tier:2,walkSpeed:3,workSpeed:1.25,cost:400,upgradeTo:2},2:{type:0,name:"Raccoon employee",tier:3,walkSpeed:4,workSpeed:1.5,cost:800},3:{type:1,name:"Raccoon employee",tier:1,walkSpeed:2.5,workSpeed:1,cost:350,upgradeTo:4},4:{type:1,name:"Raccoon employee",tier:2,walkSpeed:4,workSpeed:1.125,cost:475,upgradeTo:5},5:{type:1,name:"Raccoon employee",tier:3,walkSpeed:5.5,workSpeed:1.25,cost:950},6:{type:2,name:"Raccoon employee",tier:1,walkSpeed:1,workSpeed:1,cost:375,upgradeTo:7},7:{type:2,name:"Raccoon employee",tier:2,walkSpeed:2.5,workSpeed:1.5,cost:525,upgradeTo:8},8:{type:2,name:"Raccoon employee",tier:3,walkSpeed:4,workSpeed:2,cost:1050},9:{type:3,name:"Raccoon employee",tier:1,walkSpeed:2,workSpeed:1,cost:600,upgradeTo:10},10:{type:3,name:"Raccoon employee",tier:2,walkSpeed:3.5,workSpeed:1.5,cost:900,upgradeTo:11},11:{type:3,name:"Raccoon employee",tier:3,walkSpeed:6,workSpeed:2,cost:1800},12:{type:4,name:"Raccoon employee",tier:4,walkSpeed:3,workSpeed:1,cost:800,upgradeTo:13},13:{type:4,name:"Raccoon employee",tier:2,walkSpeed:6,workSpeed:2,cost:1600,upgradeTo:14},14:{type:4,name:"Raccoon employee",tier:3,walkSpeed:9,workSpeed:3,cost:2400},15:{type:5,name:"Human employee",tier:1,walkSpeed:1,workSpeed:1,cost:2500,upgradeTo:16},16:{type:5,name:"Human employee",tier:2,walkSpeed:1.25,workSpeed:1.05,cost:5e3,upgradeTo:17},17:{type:5,name:"Human employee",tier:3,walkSpeed:1.5,workSpeed:1.15,cost:9999}};class Hr extends Xr{employeeId;hasBeenPurchased;currentCustomer;isWorking;cellSize;spriteCont;sprite;linoone=!1;startX;startY;constructor(t,e,i,s,r){super(t,e,i),t.add.existing(this),this.scene=t,this.employeeId=s,this.cellSize=r,this.currentCustomer=null,this.isWorking=!1,this.startX=e,this.startY=i,this.hasBeenPurchased=!1,this.spriteCont=this.scene.add.container(0,this.spriteOffset),this.add(this.spriteCont),this.sprite=this.scene.add.sprite(0,0,this.spriteKeys.idle),this.sprite.setOrigin(.5,1),this.sprite.setScale(this.spriteSize/this.sprite.width),this.spriteCont.add(this.sprite),this.bindInteractive(this.sprite),this.sprite.input.enabled=!1}update(t,e){const i=1+(this.isWorking?.1:this.hasBeenPurchased?.02:0)*Math.sin(6*t/1e3);if(this.spriteCont.setScale(1,i-.2*this.holdSmooth),this.isWorking){const e=this.spriteKeys.work.length,i=Math.floor(t/200)%e,s=this.spriteKeys.work[i];this.sprite.setTexture(s)}}setCustomer(t){this.currentCustomer=t,this.currentCustomer&&this.currentCustomer.currentStation&&(this.currentCustomer.currentStation.taskHaste*=this.workSpeed)}walk(t){const e=t.getLength();this.scene.tweens.addCounter({duration:10*e/this.walkSpeed,ease:"Linear",onUpdate:({progress:i})=>{const s=t.getPoint(i);this.setPosition(s.x,s.y);const r=this.spriteKeys.walk.length,n=Math.floor(i*e/40)%r,o=this.spriteKeys.walk[n];this.sprite.setTexture(o)},onComplete:()=>{const e=t.getPoint(1);this.setPosition(e.x,e.y),this.sprite.setTexture(this.spriteKeys.idle),this.emit("walkend")}})}setAction(t){this.isWorking=t,t||this.sprite.setTexture(this.spriteKeys.idle)}setClickable(t){this.sprite.input.enabled=t}upgrade(){this.hasBeenPurchased?this.upgradeTo&&(this.employeeId=this.upgradeTo,this.sprite.setTexture(this.spriteKeys.idle)):(this.hasBeenPurchased=!0,this.setAlpha(1))}pauseClickable(){this.sprite.input.enabled?this.sprite.input.enabled=!1:this.linoone=!0}resumeClickable(){this.linoone?this.linoone=!1:this.sprite.input.enabled=!0}forceUpgrade(t){this.hasBeenPurchased=!0,this.setAlpha(1),this.employeeId=t,this.sprite.setTexture(this.spriteKeys.idle)}get employeeType(){return Vr[this.employeeId].type}get employeeName(){return Vr[this.employeeId].name}get employeeTier(){return Vr[this.employeeId].tier}get spriteKeys(){return Gr[this.employeeType].spriteKeys}get spriteScale(){return 1.4}get spriteSize(){return this.spriteScale*this.cellSize}get spriteOffset(){return.3*this.spriteSize}get walkSpeed(){return Vr[this.employeeId].walkSpeed??0}get workSpeed(){return Vr[this.employeeId].workSpeed??0}get upgradeCost(){return this.hasBeenPurchased?this.upgradeTo?Vr[this.upgradeTo].cost:0:Vr[this.employeeId].cost}get upgradeTo(){return Vr[this.employeeId].upgradeTo}}class jr extends Phaser.GameObjects.Container{background;graphics;size;color;constructor(t,e,i,s,r){super(t,e,i),t.add.existing(this),this.scene=t,this.size=s,this.color=r,this.background=this.scene.add.image(0,0,"timer"),this.background.setScale(s/this.background.width),this.add(this.background),this.graphics=this.scene.add.graphics(),this.add(this.graphics)}setColor(t){this.color=t}redraw(t){const e=.24*this.size,i=.055*this.size;this.graphics.clear(),this.graphics.beginPath(),this.graphics.fillStyle(this.color),this.graphics.moveTo(0,0),this.graphics.arc(0,0,e-i,-Math.PI/2,-Math.PI/2-2*t*Math.PI),this.graphics.closePath(),this.graphics.fillPath()}}function qr(t,e,i){return i<=0?t:i>=1?e:Phaser.Display.Color.ObjectToColor(Phaser.Display.Color.Interpolate.ColorWithColor(Phaser.Display.Color.ValueToColor(t),Phaser.Display.Color.ValueToColor(e),255,255*i)).color}function Kr(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}var Zr=(t=>(t[t.WaitingSeat=0]="WaitingSeat",t[t.HornAndNails=1]="HornAndNails",t[t.ScalePolish=2]="ScalePolish",t[t.GoldBath=3]="GoldBath",t[t.CashRegister=4]="CashRegister",t))(Zr||{});const Jr={0:{symbolKey:"seat",color:2258807},1:{symbolKey:"nail",color:16711680},2:{symbolKey:"wax",color:16776960},3:{symbolKey:"gold",color:255},4:{symbolKey:"cash",color:65280}};var Qr=(t=>(t[t.WaitingSeatTier1=0]="WaitingSeatTier1",t[t.WaitingSeatTier2=1]="WaitingSeatTier2",t[t.WaitingSeatTier3=2]="WaitingSeatTier3",t[t.HornAndNailsTier1=3]="HornAndNailsTier1",t[t.HornAndNailsTier2=4]="HornAndNailsTier2",t[t.HornAndNailsTier3=5]="HornAndNailsTier3",t[t.ScalePolishTier1=6]="ScalePolishTier1",t[t.ScalePolishTier2=7]="ScalePolishTier2",t[t.ScalePolishTier3=8]="ScalePolishTier3",t[t.GoldBathTier1=9]="GoldBathTier1",t[t.GoldBathTier2=10]="GoldBathTier2",t[t.GoldBathTier3=11]="GoldBathTier3",t[t.CashRegister=12]="CashRegister",t))(Qr||{});const $r={0:{type:0,name:"Waiting seat",tier:1,spriteKey:"waitchair_1",spriteScale:1,cost:100,upgradeTo:1},1:{type:0,name:"Waiting armchair",tier:2,spriteKey:"waitchair_2",spriteScale:1.25,cost:250,upgradeTo:2},2:{type:0,name:"Waiting throne",tier:3,spriteKey:"waitchair_3",spriteScale:1.5,cost:500},3:{type:1,name:"Talonicure pillow",tier:1,spriteKey:"nail_1",spriteScale:1,taskDuration:3e3,admissionFee:20,cost:150,upgradeTo:4},4:{type:1,name:"Talonicure beanbag",tier:2,spriteKey:"nail_2",spriteScale:1.25,taskDuration:2500,admissionFee:40,cost:250,upgradeTo:5},5:{type:1,name:"Talonicure bed",tier:3,spriteKey:"nail_3",spriteScale:1.5,taskDuration:2e3,admissionFee:60,cost:400},6:{type:2,name:"Scalicure chair",tier:1,spriteKey:"wax_1",spriteScale:1,taskDuration:2e3,admissionFee:10,cost:100,upgradeTo:7},7:{type:2,name:"Scalicure station",tier:2,spriteKey:"wax_2",spriteScale:1.25,taskDuration:1500,admissionFee:20,cost:250,upgradeTo:8},8:{type:2,name:"Scalicure divan",tier:3,spriteKey:"wax_3",spriteScale:1.5,taskDuration:1e3,admissionFee:30,cost:500},9:{type:3,name:"Draconic bath",tier:1,spriteKey:"bath_1",spriteScale:1,taskDuration:4e3,admissionFee:20,cost:200,upgradeTo:10},10:{type:3,name:"Draconic shower",tier:2,spriteKey:"bath_2",spriteScale:1.25,taskDuration:3e3,admissionFee:30,cost:350,upgradeTo:11},11:{type:3,name:"Dracuzzi",tier:3,spriteKey:"bath_3",spriteScale:1.5,taskDuration:2e3,admissionFee:40,cost:600},12:{type:4,name:"Cash register",tier:1,spriteKey:"checkout",spriteScale:1.4,taskDuration:500,cost:0}};class tn extends Phaser.GameObjects.Container{background;image;symbol;constructor(t,e,i,s){super(t,e,i),t.add.existing(this),this.scene=t,this.background=this.scene.add.sprite(0,0,"bubble"),this.background.setScale(.5),this.background.setVisible(!1),this.add(this.background),this.image=this.scene.add.ellipse(0,-.05*s,40,40,0),this.image.setVisible(!1),this.add(this.image),this.symbol=this.scene.add.image(0,-.02*s,"exclamation"),this.symbol.setScale(70/this.symbol.width),this.symbol.setVisible(!1),this.add(this.symbol)}hide(){this.background.setVisible(!1),this.image.setVisible(!1),this.symbol.setVisible(!1)}setRequest(t){this.background.setVisible(null!==t),this.image.setVisible(null!==t),this.symbol.setVisible(!1),null!==t&&(this.image.fillColor=Jr[t].color),t===Zr.CashRegister&&this.showSymbol("money")}showSymbol(t){this.background.setVisible(!0),this.image.setVisible(!1),this.symbol.setVisible(!0),this.symbol.setTexture(t)}}var en=(t=>(t[t.SmallRed=0]="SmallRed",t[t.SmallAqua=1]="SmallAqua",t[t.SmallGreen=2]="SmallGreen",t[t.MediumRed=3]="MediumRed",t[t.MediumAqua=4]="MediumAqua",t[t.MediumGreen=5]="MediumGreen",t[t.LargeRed=6]="LargeRed",t[t.LargeAqua=7]="LargeAqua",t[t.LargeGreen=8]="LargeGreen",t))(en||{});const sn={0:{tier:1,spriteKeys:{walk:["small_customer_walk1_red","small_customer_walk2_red","small_customer_walk1_red","small_customer_walk3_red"],sit:"small_customer_sit1_red"},spriteScale:1,walkSpeed:3,workMultiplier:1,tags:["red","kobold"],antitags:["aqua","green","dino","dragon"],budget:100,baseTips:10},1:{tier:1,spriteKeys:{walk:["small_customer_walk1_aqua","small_customer_walk2_aqua","small_customer_walk1_aqua","small_customer_walk3_aqua"],sit:"small_customer_sit1_aqua"},spriteScale:1,walkSpeed:3,workMultiplier:1,tags:["aqua","kobold"],antitags:["red","green","dino","dragon"],budget:100,baseTips:10},2:{tier:1,spriteKeys:{walk:["small_customer_walk1_green","small_customer_walk2_green","small_customer_walk1_green","small_customer_walk3_green"],sit:"small_customer_sit1_green"},spriteScale:1,walkSpeed:3,workMultiplier:1,tags:["green","kobold"],antitags:["red","aqua","dino","dragon"],budget:100,baseTips:10},3:{tier:2,spriteKeys:{walk:["medium_customer_walk1_red","medium_customer_walk2_red","medium_customer_walk1_red","medium_customer_walk3_red"],sit:"medium_customer_sit1_red"},spriteScale:1.4,walkSpeed:2,workMultiplier:2,tags:["red","dino"],antitags:["aqua","green","kobold","dragon"],budget:100,baseTips:10},4:{tier:2,spriteKeys:{walk:["medium_customer_walk1_aqua","medium_customer_walk2_aqua","medium_customer_walk1_aqua","medium_customer_walk3_aqua"],sit:"medium_customer_sit1_aqua"},spriteScale:1.4,walkSpeed:2,workMultiplier:2,tags:["aqua","dino"],antitags:["red","green","kobold","dragon"],budget:100,baseTips:10},5:{tier:2,spriteKeys:{walk:["medium_customer_walk1_green","medium_customer_walk2_green","medium_customer_walk1_green","medium_customer_walk3_green"],sit:"medium_customer_sit1_green"},spriteScale:1.4,walkSpeed:2,workMultiplier:2,tags:["green","dino"],antitags:["red","aqua","kobold","dragon"],budget:100,baseTips:10},6:{tier:3,spriteKeys:{walk:["large_customer_walk1_red","large_customer_walk2_red","large_customer_walk1_red","large_customer_walk3_red"],sit:"large_customer_sit1_red"},spriteScale:1.7,walkSpeed:1.5,workMultiplier:3,tags:["red","dragon"],antitags:["aqua","green","kobold","dino"],budget:100,baseTips:10},7:{tier:3,spriteKeys:{walk:["large_customer_walk1_aqua","large_customer_walk2_aqua","large_customer_walk1_aqua","large_customer_walk3_aqua"],sit:"large_customer_sit1_aqua"},spriteScale:1.7,walkSpeed:1.5,workMultiplier:3,tags:["aqua","dragon"],antitags:["red","green","kobold","dino"],budget:100,baseTips:10},8:{tier:3,spriteKeys:{walk:["large_customer_walk1_green","large_customer_walk2_green","large_customer_walk1_green","large_customer_walk3_green"],sit:"large_customer_sit1_green"},spriteScale:1.7,walkSpeed:1.5,workMultiplier:3,tags:["green","dragon"],antitags:["red","aqua","kobold","dino"],budget:100,baseTips:10}};class rn extends Phaser.GameObjects.Container{deleteFlag=!1;constructor(t,e,i){super(t,e,i),this.scene=t,this.deleteFlag=!1}update(t,e){}}class nn extends rn{scene;timer=0;maxTimer=0;myText;txt;color1;color2;fadeTime=800;maxFadeTime=800;deleteFlag=!1;isFlashing=!1;flashTimer=100;maxFlashTimer=100;colors;index=0;phase=1;dmod;amod;negative=-1;amp=1;constructor(t,e,i,s,r="yellow",n=30,o=!1,a="red",h=800,l=100,u=1,c=1,d=700){super(t,e,i),this.scene=t,this.myText=this.scene.addText({x:0,y:0,size:n,color:this.color1,text:s}),this.phase=Math.random(),this.phase>.5?this.phase=-1:this.phase=1,this.isFlashing=o,this.color1=r,this.color2=a,this.myText.setColor(r),this.myText.setOrigin(.5,.5),this.fadeTime=h,this.maxFadeTime=h,this.add(this.myText),this.scene.add.existing(this),this.setDepth(d),this.dmod=75*Math.random(),this.amod=2*Math.random(),this.negative=u,this.amp=c,this.setDepth(d)}update(t,e){this.y-=this.negative*(120*t/1e3),this.x+=this.phase*this.amp*(2+this.amod)*Math.sin(e/(125+this.dmod)),this.isFlashing&&(this.flashTimer>0&&(this.flashTimer-=t),this.flashTimer<=0&&(this.flashTimer=this.maxFlashTimer,this.flash())),this.fadeTime>0&&(this.fadeTime-=t),this.fadeTime<=0&&(this.fadeTime=0,this.deleteFlag=!0),this.myText.setAlpha(this.fadeTime/this.maxFadeTime)}flash(){0==this.index?(this.index=1,this.myText.setColor(this.color2)):(this.index=0,this.myText.setColor(this.color1))}}class on extends Phaser.GameObjects.Container{background;bar;anger;sparks;graphics;size;color;veiled=!0;vTimer=0;vfTimer=0;critical=!1;DEFAULT_ALPHA=.8;workingAlpha=.8;lock=!1;constructor(t,e,i,s,r){super(t,e,i),t.add.existing(this),this.scene=t,this.scale=s,this.color=r,this.bar=this.scene.add.rectangle(0,-60,16,128,65280),this.bar.setOrigin(.5,0),this.anger=new Phaser.GameObjects.Sprite(this.scene,0,-80,"ellipse"),this.sparks=new Phaser.GameObjects.Sprite(this.scene,0,64,"defaultspark"),this.sparks.setTint(65280),this.sparks.setScale(.5),this.anger.setVisible(!1),this.add(this.bar),this.add(this.sparks),this.add(this.anger),this.updateAlpha(this.DEFAULT_ALPHA),this.graphics=this.scene.add.graphics(),this.add(this.graphics),this.setVisible(!1)}setColor(t){this.color=t}update(t,e){Math.sin(t/120)>0?(this.anger.setFrame(0),this.sparks.setFrame(0)):(this.anger.setFrame(1),this.sparks.setFrame(1)),this.veiled?this.vTimer>0&&(this.vTimer-=e,this.vTimer<=0?(this.setVisible(!1),this.updateAlpha(this.DEFAULT_ALPHA),this.vTimer=0):this.updateAlpha(this.DEFAULT_ALPHA*this.vTimer/500)):this.veiled||this.vfTimer>0&&(this.vfTimer-=e,this.vfTimer<=0?(this.vfTimer=0,this.updateAlpha(this.DEFAULT_ALPHA)):this.updateAlpha(this.DEFAULT_ALPHA*((200-this.vfTimer)/200)))}lockTimer(){this.lock=!0}unlockTimer(){this.lock=!1}unveil(){this.lock||(this.setVisible(!0),this.vTimer=0,this.vfTimer=200,this.veiled=!1)}veil(){this.lock||(this.updateAlpha(this.DEFAULT_ALPHA),this.vTimer=500,this.veiled=!0)}updateAlpha(t){this.sparks.setAlpha(t),this.bar.setAlpha(t),this.anger.setAlpha(t)}resetAlpha(){this.critical?(this.sparks.setAlpha(1),this.bar.setAlpha(1),this.anger.setAlpha(1)):(this.sparks.setAlpha(.5),this.bar.setAlpha(.5),this.anger.setAlpha(.5))}redraw(t){this.bar.setScale(1,t),this.sparks.setY(128*t-64),t<.5&&!this.critical&&(this.critical=!0,this.anger.setTexture("anger"),this.sparks.setTint(16711680),this.sparks.setAlpha(1),this.bar.setAlpha(1),this.anger.setAlpha(1),this.bar.fillColor=16711680)}}var an=(t=>(t[t.Black=0]="Black",t[t.White=16777215]="White",t[t.Slate50=16317180]="Slate50",t[t.Slate100=15857145]="Slate100",t[t.Slate200=14870768]="Slate200",t[t.Slate300=13358561]="Slate300",t[t.Slate400=9741240]="Slate400",t[t.Slate500=6583435]="Slate500",t[t.Slate600=4674921]="Slate600",t[t.Slate700=3359061]="Slate700",t[t.Slate800=1976635]="Slate800",t[t.Slate900=988970]="Slate900",t[t.Slate950=132631]="Slate950",t[t.Gray50=16382715]="Gray50",t[t.Gray100=15987958]="Gray100",t[t.Gray200=15067115]="Gray200",t[t.Gray300=13751771]="Gray300",t[t.Gray400=10265519]="Gray400",t[t.Gray500=7041664]="Gray500",t[t.Gray600=4937059]="Gray600",t[t.Gray700=3621201]="Gray700",t[t.Gray800=2042167]="Gray800",t[t.Gray900=1120295]="Gray900",t[t.Gray950=198418]="Gray950",t[t.Zinc50=16448250]="Zinc50",t[t.Zinc100=16053493]="Zinc100",t[t.Zinc200=15000807]="Zinc200",t[t.Zinc300=13948120]="Zinc300",t[t.Zinc400=10592682]="Zinc400",t[t.Zinc500=7434618]="Zinc500",t[t.Zinc600=5395035]="Zinc600",t[t.Zinc700=4144966]="Zinc700",t[t.Zinc800=2565930]="Zinc800",t[t.Zinc900=1579035]="Zinc900",t[t.Zinc950=592139]="Zinc950",t[t.Neutral50=16448250]="Neutral50",t[t.Neutral100=16119285]="Neutral100",t[t.Neutral200=15066597]="Neutral200",t[t.Neutral300=13948116]="Neutral300",t[t.Neutral400=10724259]="Neutral400",t[t.Neutral500=7566195]="Neutral500",t[t.Neutral600=5395026]="Neutral600",t[t.Neutral700=4210752]="Neutral700",t[t.Neutral800=2500134]="Neutral800",t[t.Neutral900=1513239]="Neutral900",t[t.Neutral950=657930]="Neutral950",t[t.Stone50=16448249]="Stone50",t[t.Stone100=16119284]="Stone100",t[t.Stone200=15197668]="Stone200",t[t.Stone300=14078929]="Stone300",t[t.Stone400=11051678]="Stone400",t[t.Stone500=7893356]="Stone500",t[t.Stone600=5722958]="Stone600",t[t.Stone700=4472892]="Stone700",t[t.Stone800=2696484]="Stone800",t[t.Stone900=1841431]="Stone900",t[t.Stone950=789001]="Stone950",t[t.Red50=16708338]="Red50",t[t.Red100=16704226]="Red100",t[t.Red200=16698058]="Red200",t[t.Red300=16557477]="Red300",t[t.Red400=16281969]="Red400",t[t.Red500=15680580]="Red500",t[t.Red600=14427686]="Red600",t[t.Red700=12131356]="Red700",t[t.Red800=10033947]="Red800",t[t.Red900=8330525]="Red900",t[t.Red950=4524554]="Red950",t[t.Orange50=16775149]="Orange50",t[t.Orange100=16772565]="Orange100",t[t.Orange200=16701354]="Orange200",t[t.Orange300=16628340]="Orange300",t[t.Orange400=16486972]="Orange400",t[t.Orange500=16347926]="Orange500",t[t.Orange600=15357964]="Orange600",t[t.Orange700=12730636]="Orange700",t[t.Orange800=10105874]="Orange800",t[t.Orange900=8138002]="Orange900",t[t.Orange950=4396039]="Orange950",t[t.Amber50=16776171]="Amber50",t[t.Amber100=16708551]="Amber100",t[t.Amber200=16639626]="Amber200",t[t.Amber300=16569165]="Amber300",t[t.Amber400=16498468]="Amber400",t[t.Amber500=16096779]="Amber500",t[t.Amber600=14251782]="Amber600",t[t.Amber700=11817737]="Amber700",t[t.Amber800=9584654]="Amber800",t[t.Amber900=7877903]="Amber900",t[t.Amber950=4528643]="Amber950",t[t.Yellow50=16710888]="Yellow50",t[t.Yellow100=16710083]="Yellow100",t[t.Yellow200=16707722]="Yellow200",t[t.Yellow300=16638023]="Yellow300",t[t.Yellow400=16436245]="Yellow400",t[t.Yellow500=15381256]="Yellow500",t[t.Yellow600=13273604]="Yellow600",t[t.Yellow700=10576391]="Yellow700",t[t.Yellow800=8736014]="Yellow800",t[t.Yellow900=7421714]="Yellow900",t[t.Yellow950=4333574]="Yellow950",t[t.Lime50=16252647]="Lime50",t[t.Lime100=15531211]="Lime100",t[t.Lime200=14285213]="Lime200",t[t.Lime300=12513892]="Lime300",t[t.Lime400=10741301]="Lime400",t[t.Lime500=8702998]="Lime500",t[t.Lime600=6660877]="Lime600",t[t.Lime700=5078031]="Lime700",t[t.Lime800=4153874]="Lime800",t[t.Lime900=3560212]="Lime900",t[t.Lime950=1715717]="Lime950",t[t.Green50=15793652]="Green50",t[t.Green100=14482663]="Green100",t[t.Green200=12318672]="Green200",t[t.Green300=8843180]="Green300",t[t.Green400=4906624]="Green400",t[t.Green500=2278750]="Green500",t[t.Green600=1483594]="Green600",t[t.Green700=1409085]="Green700",t[t.Green800=1467700]="Green800",t[t.Green900=1332013]="Green900",t[t.Green950=339478]="Green950",t[t.Emerald50=15531509]="Emerald50",t[t.Emerald100=13761253]="Emerald100",t[t.Emerald200=11006928]="Emerald200",t[t.Emerald300=7268279]="Emerald300",t[t.Emerald400=3462041]="Emerald400",t[t.Emerald500=1096065]="Emerald500",t[t.Emerald600=366185]="Emerald600",t[t.Emerald700=292951]="Emerald700",t[t.Emerald800=417606]="Emerald800",t[t.Emerald900=413243]="Emerald900",t[t.Emerald950=142370]="Emerald950",t[t.Teal50=15793658]="Teal50",t[t.Teal100=13433841]="Teal100",t[t.Teal200=10090212]="Teal200",t[t.Teal300=6220500]="Teal300",t[t.Teal400=3003583]="Teal400",t[t.Teal500=1357990]="Teal500",t[t.Teal600=889992]="Teal600",t[t.Teal700=1013358]="Teal700",t[t.Teal800=1138265]="Teal800",t[t.Teal900=1265226]="Teal900",t[t.Teal950=274222]="Teal950",t[t.Cyan50=15531775]="Cyan50",t[t.Cyan100=13630206]="Cyan100",t[t.Cyan200=10875900]="Cyan200",t[t.Cyan300=6809849]="Cyan300",t[t.Cyan400=2282478]="Cyan400",t[t.Cyan500=440020]="Cyan500",t[t.Cyan600=561586]="Cyan600",t[t.Cyan700=947344]="Cyan700",t[t.Cyan800=1400437]="Cyan800",t[t.Cyan900=1461859]="Cyan900",t[t.Cyan950=537412]="Cyan950",t[t.Sky50=15792639]="Sky50",t[t.Sky100=14742270]="Sky100",t[t.Sky200=12248829]="Sky200",t[t.Sky300=8246268]="Sky300",t[t.Sky400=3718648]="Sky400",t[t.Sky500=959977]="Sky500",t[t.Sky600=165063]="Sky600",t[t.Sky700=223649]="Sky700",t[t.Sky800=481669]="Sky800",t[t.Sky900=805486]="Sky900",t[t.Sky950=536393]="Sky950",t[t.Blue50=15726335]="Blue50",t[t.Blue100=14412542]="Blue100",t[t.Blue200=12573694]="Blue200",t[t.Blue300=9684477]="Blue300",t[t.Blue400=6333946]="Blue400",t[t.Blue500=3900150]="Blue500",t[t.Blue600=2450411]="Blue600",t[t.Blue700=1920728]="Blue700",t[t.Blue800=1982639]="Blue800",t[t.Blue900=1981066]="Blue900",t[t.Blue950=1516884]="Blue950",t[t.Indigo50=15659775]="Indigo50",t[t.Indigo100=14739455]="Indigo100",t[t.Indigo200=13095678]="Indigo200",t[t.Indigo300=10859772]="Indigo300",t[t.Indigo400=8490232]="Indigo400",t[t.Indigo500=6514417]="Indigo500",t[t.Indigo600=5195493]="Indigo600",t[t.Indigo700=4405450]="Indigo700",t[t.Indigo800=3616931]="Indigo800",t[t.Indigo900=3223169]="Indigo900",t[t.Indigo950=1973067]="Indigo950",t[t.Violet50=16118783]="Violet50",t[t.Violet100=15591934]="Violet100",t[t.Violet200=14538494]="Violet200",t[t.Violet300=12891645]="Violet300",t[t.Violet400=10980346]="Violet400",t[t.Violet500=9133302]="Violet500",t[t.Violet600=8141549]="Violet600",t[t.Violet700=7153881]="Violet700",t[t.Violet800=5972406]="Violet800",t[t.Violet900=4988309]="Violet900",t[t.Violet950=3018853]="Violet950",t[t.Purple50=16446975]="Purple50",t[t.Purple100=15984895]="Purple100",t[t.Purple200=15324671]="Purple200",t[t.Purple300=14202110]="Purple300",t[t.Purple400=12616956]="Purple400",t[t.Purple500=11032055]="Purple500",t[t.Purple600=9647082]="Purple600",t[t.Purple700=8266446]="Purple700",t[t.Purple800=7020968]="Purple800",t[t.Purple900=5774471]="Purple900",t[t.Purple950=3868516]="Purple950",t[t.Fuchsia50=16643327]="Fuchsia50",t[t.Fuchsia100=16443647]="Fuchsia100",t[t.Fuchsia200=16109822]="Fuchsia200",t[t.Fuchsia300=15772668]="Fuchsia300",t[t.Fuchsia400=15235577]="Fuchsia400",t[t.Fuchsia500=14239471]="Fuchsia500",t[t.Fuchsia600=12592851]="Fuchsia600",t[t.Fuchsia700=10624175]="Fuchsia700",t[t.Fuchsia800=8788367]="Fuchsia800",t[t.Fuchsia900=7346805]="Fuchsia900",t[t.Fuchsia950=4850766]="Fuchsia950",t[t.Pink50=16642808]="Pink50",t[t.Pink100=16574451]="Pink100",t[t.Pink200=16502760]="Pink200",t[t.Pink300=16361684]="Pink300",t[t.Pink400=16020150]="Pink400",t[t.Pink500=15485081]="Pink500",t[t.Pink600=14362487]="Pink600",t[t.Pink700=12458077]="Pink700",t[t.Pink800=10295117]="Pink800",t[t.Pink900=8591427]="Pink900",t[t.Pink950=5244708]="Pink950",t[t.Rose50=16773618]="Rose50",t[t.Rose100=16770278]="Rose100",t[t.Rose200=16698835]="Rose200",t[t.Rose300=16622767]="Rose300",t[t.Rose400=16478597]="Rose400",t[t.Rose500=16007006]="Rose500",t[t.Rose600=14753096]="Rose600",t[t.Rose700=12456508]="Rose700",t[t.Rose800=10424889]="Rose800",t[t.Rose900=8917815]="Rose900",t[t.Rose950=4982041]="Rose950",t))(an||{}),hn=(t=>(t.Black="#000000",t.White="#ffffff",t.Slate50="#f8fafc",t.Slate100="#f1f5f9",t.Slate200="#e2e8f0",t.Slate300="#cbd5e1",t.Slate400="#94a3b8",t.Slate500="#64748b",t.Slate600="#475569",t.Slate700="#334155",t.Slate800="#1e293b",t.Slate900="#0f172a",t.Slate950="#020617",t.Gray50="#f9fafb",t.Gray100="#f3f4f6",t.Gray200="#e5e7eb",t.Gray300="#d1d5db",t.Gray400="#9ca3af",t.Gray500="#6b7280",t.Gray600="#4b5563",t.Gray700="#374151",t.Gray800="#1f2937",t.Gray900="#111827",t.Gray950="#030712",t.Zinc50="#fafafa",t.Zinc100="#f4f4f5",t.Zinc200="#e4e4e7",t.Zinc300="#d4d4d8",t.Zinc400="#a1a1aa",t.Zinc500="#71717a",t.Zinc600="#52525b",t.Zinc700="#3f3f46",t.Zinc800="#27272a",t.Zinc900="#18181b",t.Zinc950="#09090b",t.Neutral50="#fafafa",t.Neutral100="#f5f5f5",t.Neutral200="#e5e5e5",t.Neutral300="#d4d4d4",t.Neutral400="#a3a3a3",t.Neutral500="#737373",t.Neutral600="#525252",t.Neutral700="#404040",t.Neutral800="#262626",t.Neutral900="#171717",t.Neutral950="#0a0a0a",t.Stone50="#fafaf9",t.Stone100="#f5f5f4",t.Stone200="#e7e5e4",t.Stone300="#d6d3d1",t.Stone400="#a8a29e",t.Stone500="#78716c",t.Stone600="#57534e",t.Stone700="#44403c",t.Stone800="#292524",t.Stone900="#1c1917",t.Stone950="#0c0a09",t.Red50="#fef2f2",t.Red100="#fee2e2",t.Red200="#fecaca",t.Red300="#fca5a5",t.Red400="#f87171",t.Red500="#ef4444",t.Red600="#dc2626",t.Red700="#b91c1c",t.Red800="#991b1b",t.Red900="#7f1d1d",t.Red950="#450a0a",t.Orange50="#fff7ed",t.Orange100="#ffedd5",t.Orange200="#fed7aa",t.Orange300="#fdba74",t.Orange400="#fb923c",t.Orange500="#f97316",t.Orange600="#ea580c",t.Orange700="#c2410c",t.Orange800="#9a3412",t.Orange900="#7c2d12",t.Orange950="#431407",t.Amber50="#fffbeb",t.Amber100="#fef3c7",t.Amber200="#fde68a",t.Amber300="#fcd34d",t.Amber400="#fbbf24",t.Amber500="#f59e0b",t.Amber600="#d97706",t.Amber700="#b45309",t.Amber800="#92400e",t.Amber900="#78350f",t.Amber950="#451a03",t.Yellow50="#fefce8",t.Yellow100="#fef9c3",t.Yellow200="#fef08a",t.Yellow300="#fde047",t.Yellow400="#facc15",t.Yellow500="#eab308",t.Yellow600="#ca8a04",t.Yellow700="#a16207",t.Yellow800="#854d0e",t.Yellow900="#713f12",t.Yellow950="#422006",t.Lime50="#f7fee7",t.Lime100="#ecfccb",t.Lime200="#d9f99d",t.Lime300="#bef264",t.Lime400="#a3e635",t.Lime500="#84cc16",t.Lime600="#65a30d",t.Lime700="#4d7c0f",t.Lime800="#3f6212",t.Lime900="#365314",t.Lime950="#1a2e05",t.Green50="#f0fdf4",t.Green100="#dcfce7",t.Green200="#bbf7d0",t.Green300="#86efac",t.Green400="#4ade80",t.Green500="#22c55e",t.Green600="#16a34a",t.Green700="#15803d",t.Green800="#166534",t.Green900="#14532d",t.Green950="#052e16",t.Emerald50="#ecfdf5",t.Emerald100="#d1fae5",t.Emerald200="#a7f3d0",t.Emerald300="#6ee7b7",t.Emerald400="#34d399",t.Emerald500="#10b981",t.Emerald600="#059669",t.Emerald700="#047857",t.Emerald800="#065f46",t.Emerald900="#064e3b",t.Emerald950="#022c22",t.Teal50="#f0fdfa",t.Teal100="#ccfbf1",t.Teal200="#99f6e4",t.Teal300="#5eead4",t.Teal400="#2dd4bf",t.Teal500="#14b8a6",t.Teal600="#0d9488",t.Teal700="#0f766e",t.Teal800="#115e59",t.Teal900="#134e4a",t.Teal950="#042f2e",t.Cyan50="#ecfeff",t.Cyan100="#cffafe",t.Cyan200="#a5f3fc",t.Cyan300="#67e8f9",t.Cyan400="#22d3ee",t.Cyan500="#06b6d4",t.Cyan600="#0891b2",t.Cyan700="#0e7490",t.Cyan800="#155e75",t.Cyan900="#164e63",t.Cyan950="#083344",t.Sky50="#f0f9ff",t.Sky100="#e0f2fe",t.Sky200="#bae6fd",t.Sky300="#7dd3fc",t.Sky400="#38bdf8",t.Sky500="#0ea5e9",t.Sky600="#0284c7",t.Sky700="#0369a1",t.Sky800="#075985",t.Sky900="#0c4a6e",t.Sky950="#082f49",t.Blue50="#eff6ff",t.Blue100="#dbeafe",t.Blue200="#bfdbfe",t.Blue300="#93c5fd",t.Blue400="#60a5fa",t.Blue500="#3b82f6",t.Blue600="#2563eb",t.Blue700="#1d4ed8",t.Blue800="#1e40af",t.Blue900="#1e3a8a",t.Blue950="#172554",t.Indigo50="#eef2ff",t.Indigo100="#e0e7ff",t.Indigo200="#c7d2fe",t.Indigo300="#a5b4fc",t.Indigo400="#818cf8",t.Indigo500="#6366f1",t.Indigo600="#4f46e5",t.Indigo700="#4338ca",t.Indigo800="#3730a3",t.Indigo900="#312e81",t.Indigo950="#1e1b4b",t.Violet50="#f5f3ff",t.Violet100="#ede9fe",t.Violet200="#ddd6fe",t.Violet300="#c4b5fd",t.Violet400="#a78bfa",t.Violet500="#8b5cf6",t.Violet600="#7c3aed",t.Violet700="#6d28d9",t.Violet800="#5b21b6",t.Violet900="#4c1d95",t.Violet950="#2e1065",t.Purple50="#faf5ff",t.Purple100="#f3e8ff",t.Purple200="#e9d5ff",t.Purple300="#d8b4fe",t.Purple400="#c084fc",t.Purple500="#a855f7",t.Purple600="#9333ea",t.Purple700="#7e22ce",t.Purple800="#6b21a8",t.Purple900="#581c87",t.Purple950="#3b0764",t.Fuchsia50="#fdf4ff",t.Fuchsia100="#fae8ff",t.Fuchsia200="#f5d0fe",t.Fuchsia300="#f0abfc",t.Fuchsia400="#e879f9",t.Fuchsia500="#d946ef",t.Fuchsia600="#c026d3",t.Fuchsia700="#a21caf",t.Fuchsia800="#86198f",t.Fuchsia900="#701a75",t.Fuchsia950="#4a044e",t.Pink50="#fdf2f8",t.Pink100="#fce7f3",t.Pink200="#fbcfe8",t.Pink300="#f9a8d4",t.Pink400="#f472b6",t.Pink500="#ec4899",t.Pink600="#db2777",t.Pink700="#be185d",t.Pink800="#9d174d",t.Pink900="#831843",t.Pink950="#500724",t.Rose50="#fff1f2",t.Rose100="#ffe4e6",t.Rose200="#fecdd3",t.Rose300="#fda4af",t.Rose400="#fb7185",t.Rose500="#f43f5e",t.Rose600="#e11d48",t.Rose700="#be123c",t.Rose800="#9f1239",t.Rose900="#881337",t.Rose950="#4c0519",t))(hn||{});class ln extends Xr{customerId;scene;lastX;lastY;dragX;dragY;currentStation;currentEmployee;itinerary;requestedStation;hasEnteredShop=!1;hasCompleted=!1;tips=0;tipMultiplier=1;tipBonus=0;happiness=1.01;happinessBonus=0;rockBonus=0;minHappiness=1.01;maxHappiness=6.01;patience=1;minPatience;maxPatience=1;lockPatience;actionsComplete=!1;doingCuteThing;tasksCompleted;moneySpent;cellSize;spriteCont;sprite;customColor;thoughtBubble;angryImage;patienceTimer;spriteList;itemList;sprList;garchomp;testTimer;eatDelay=0;playFail=!1;constructor(t,e,i,s,r){super(t,e,i),t.add.existing(this),this.scene=t,this.customerId=s,this.cellSize=r,this.lastX=e,this.lastY=i,this.dragX=e,this.dragY=i,this.currentStation=null,this.currentEmployee=null,this.itinerary=[],this.requestedStation=null,this.doingCuteThing=!1,this.tasksCompleted=0,this.moneySpent=0,this.spriteCont=this.scene.add.container(0,this.spriteOffset),this.add(this.spriteCont),this.sprite=this.scene.add.sprite(0,0,this.spriteKeys.sit),this.sprite.setOrigin(.5,1),this.sprite.setScale(this.spriteSize/this.sprite.width),this.spriteCont.add(this.sprite);const n=[an.Red600,an.Orange600,an.Amber600,an.Yellow600,an.Lime600,an.Green600,an.Emerald600,an.Teal600,an.Cyan600,an.Sky600,an.Blue600,an.Indigo600,an.Violet600,an.Purple600,an.Fuchsia600,an.Pink600,an.Rose600];this.customColor=qr(Phaser.Math.RND.pick(n),16777215,.8);const o=this.spriteSize;this.angryImage=this.scene.add.sprite(-.2*o,-.5*o,"anger"),this.angryImage.setScale(1),this.angryImage.setVisible(!1),this.add(this.angryImage),this.testTimer=new on(this.scene,-80,-40,1,16711680),this.add(this.testTimer),this.thoughtBubble=new tn(t,.4*r,-.6*r,r),this.add(this.thoughtBubble),this.patienceTimer=new jr(t,-.3*r,-.3*r,.6*r,16421925),this.patienceTimer.setAlpha(0),this.add(this.patienceTimer),this.itemList=[],this.sprList=[],this.bindInteractive(this.sprite,!0),this.sprite.input.enabled=!1}update(t,e){this.x+=.5*(this.dragX-this.x),this.y+=.5*(this.dragY-this.y);const i=1+(this.doingCuteThing?.1:.02)*Math.sin(6*t/1e3);this.setScale(1,i-.2*this.holdSmooth),this.sprite.setTint(qr(16711680,16777215,2*this.patience)),this.isWaiting?(this.patienceTimer.setVisible(!0),this.dragged||this.lockPatience||(this.patience-=1/40*(e/1e3)),this.patienceTimer.setColor(qr(16711680,65280,this.patience)),this.patienceTimer.redraw(this.patience/this.maxPatience),this.testTimer.redraw(this.patience/this.maxPatience>1?1:this.patience/this.maxPatience),this.angryImage.setVisible(this.patience<=.25),this.angryImage.setFrame(Math.floor(t/300%2)),this.testTimer.update(t,e),this.patience<=0&&(this.hasCompleted&&Math.random()>.2?(this.scene.sound.play("cashmoney",{volume:.4}),this.scene.addEffect(new nn(this.scene,this.x-70+80*Math.random(),this.y-80,"+"+this.moneySpent+" €","yellow",40,!0,"red",800,100,.7,0)),this.emit("pay",this.moneySpent)):this.scene.sound.play("rip",{volume:.3}),this.leave(),this.thoughtBubble.showSymbol("sad"),this.emit("angry"))):(this.patienceTimer.setVisible(!1),this.angryImage.setVisible(!1)),this.testTimer.update(t,e),this.itemList.length>0&&this.eatDelay<=0&&(this.eatDelay=100+200*Math.random()),this.eatDelay>0&&(this.eatDelay-=e,this.eatDelay<=0&&(this.eatDelay=0,this.itemList.length>0&&(this.scene.parseCustomerItems(this.itemList.shift(),this),this.sprList[0]&&(this.sprList[0].destroy(),this.sprList.shift())))),this.playFail&&(this.scene.sound.play("rip",{volume:.3}),this.playFail=!1)}onOver(t,e,i,s){super.onOver(t,e,i,s),this.toggleTimer()}onOut(t,e){super.onOut(t,e),this.untoggleTimer()}onDragStart(t,e,i){this.emit("pickup"),this.dragged=!0,this.sprite.setTexture(this.spriteKeys.sit),this.scene.sound.play("grab",{volume:.4})}onDrag(t,e,i){this.hold=!1,this.dragX=t.x,this.dragY=t.y,this.emit("drag")}onDragEnd(t,e,i){this.dragged=!1,this.emit("drop"),this.sprite.setTexture(this.spriteKeys.sit),this.scene.sound.play("letgo1",{volume:.4})}resetPatience(){this.patience=1.25*this.maxPatience}miniRefresh(){this.lockPatience||(this.patience+=.125,this.patience>1.25&&(this.patience=1.25))}toggleTimer(){this.testTimer.unveil()}untoggleTimer(){this.testTimer.veil()}lockTimer(){this.testTimer.lockTimer()}unlockTimer(){this.testTimer.unlockTimer()}snapTo(t,e,i=!1){this.dragX=t,this.dragY=e,i&&(this.x=t,this.y=e)}walk(t){const e=t.getLength();this.scene.tweens.addCounter({duration:10*e/this.walkSpeed,ease:"Linear",onUpdate:({progress:i})=>{const s=t.getPoint(i);this.dragX=s.x,this.dragY=s.y;const r=this.spriteKeys.walk.length,n=Math.floor(i*e/50)%r,o=this.spriteKeys.walk[n];this.sprite.setTexture(o),this.sprite.flipX=this.dragX{const e=t.getPoint(1);this.dragX=e.x,this.dragY=e.y,this.sprite.setTexture(this.spriteKeys.sit),this.sprite.flipX=!1,this.hasEnteredShop=!0,this.sprite.input.enabled=!0,this.scene.sound.play("letgo1",{volume:.2}),this.emit("seated")}})}setStation(t){this.currentStation=t,t&&(this.lastX=t.x,this.lastY=t.y,this.patience<.25&&this.requestedStation!==t.stationType&&(this.patience=.25),this.requestedStation===t.stationType&&this.thoughtBubble.showSymbol("exclamation"))}setEmployee(t){this.currentEmployee=t,this.sprite.input.enabled=!t,t&&(this.untoggleTimer(),this.lockTimer()),this.thoughtBubble.showSymbol("love")}setAction(t){this.doingCuteThing=t}setRequest(t){null!==t?(this.requestedStation=t,this.thoughtBubble.setRequest(t)):this.thoughtBubble.setRequest(null)}nextActivity(){this.itinerary.length>0?this.setRequest(this.itinerary.shift()||null):this.hasCompleted?(this.actionsComplete=!0,this.parseMoney(),this.scene.sound.play("cashmoney",{volume:.4}),this.scene.addEffect(new nn(this.scene,this.x-70+80*Math.random(),this.y-80,"+"+this.moneySpent+" €","yellow",40,!0,"red",800,100,.7,0)),this.scene.addEffect(new nn(this.scene,this.x-40+80*Math.random(),this.y-20,"Tips +"+this.tips+" €","yellow",40,!0,"red",800,100,.7,0)),this.emit("pay",this.moneySpent),this.emit("tip",this.tips),this.leave()):(this.hasCompleted=!0,this.setRequest(Zr.CashRegister))}leave(){this.sprite.input.enabled=!1,this.testTimer.setVisible(!1),this.setRequest(null),this.patienceTimer.setVisible(!1),this.currentStation&&(this.currentStation.setCustomer(null),this.setStation(null)),this.currentEmployee&&(this.currentEmployee.setCustomer(null),this.setEmployee(null)),this.scene.tweens.add({targets:this,dragX:"+=1920",dragY:this.lastY,duration:2e3,ease:"Linear",onComplete:()=>{this.emit("offscreen")}})}recheckHappiness(){if(this.hasCompleted)return;let t=this.happiness;switch(this.patience>.5?t+=2:t+=4*this.patience/this.maxPatience,this.patience>=1&&(t+=1),t+=this.rockBonus,t>4.01&&(t=4.01),t+=this.happinessBonus,tthis.maxHappiness&&(t=this.maxHappiness),Math.trunc(t)){case 1:this.thoughtBubble.showSymbol("h1");break;case 2:this.thoughtBubble.showSymbol("h2");break;case 3:this.thoughtBubble.showSymbol("h3");break;case 4:this.thoughtBubble.showSymbol("h4");break;case 5:this.thoughtBubble.showSymbol("h5");break;case 6:this.thoughtBubble.showSymbol("h6")}}parseHappiness(){let t=this.happiness;switch(this.patience>.5?t+=2:t+=4*this.patience/this.maxPatience,this.patience>=1&&(t+=1),t+=this.rockBonus,t>4.01&&(t=4.01),t+=this.happinessBonus,tthis.maxHappiness&&(t=this.maxHappiness),this.tips=this.baseTips*(1+this.tipBonus),Math.trunc(t)){case 1:this.thoughtBubble.showSymbol("h1"),this.tips+=(0+this.tipBonus)*this.moneySpent;break;case 2:this.thoughtBubble.showSymbol("h2"),this.tips+=(.05+this.tipBonus)*this.moneySpent;break;case 3:this.thoughtBubble.showSymbol("h3"),this.tips+=(.1+this.tipBonus)*this.moneySpent;break;case 4:this.thoughtBubble.showSymbol("h4"),this.tips+=(.25+this.tipBonus)*this.moneySpent;break;case 5:this.thoughtBubble.showSymbol("h5"),this.tips+=(.5+this.tipBonus)*this.moneySpent;break;case 6:this.thoughtBubble.showSymbol("h6"),this.tips+=(1+this.tipBonus)*this.moneySpent}this.tips*=this.tipMultiplier,this.tips=Math.trunc(this.tips)}applyItem(t,e){this.itemList.push(t);let i=new Phaser.GameObjects.Sprite(this.scene,40*this.itemList.length-80,60,e);i.setOrigin(.5,.5),i.setScale(.4),i.setDepth(4),i.setAlpha(.85),this.add(i),this.sprList.push(i)}queueFail(){this.playFail=!0}parseMoney(){this.parseHappiness()}pauseClickable(){this.sprite.input.enabled?this.sprite.input.enabled=!1:this.garchomp=!0}resumeClickable(){this.garchomp?this.garchomp=!1:this.sprite.input.enabled=!0}getColorTags(){}getColorAntiTags(){}get isWaiting(){return this.hasEnteredShop&&null!==this.currentStation&&null===this.currentEmployee}get spriteKeys(){return sn[this.customerId].spriteKeys}get spriteScale(){return sn[this.customerId].spriteScale}get spriteSize(){return this.spriteScale*this.cellSize}get spriteOffset(){return.2*this.spriteSize}get walkSpeed(){return sn[this.customerId].walkSpeed}get workMultiplier(){return sn[this.customerId].workMultiplier}get tags(){return sn[this.customerId].tags}get antitags(){return sn[this.customerId].antitags}get budget(){return sn[this.customerId].budget}get baseTips(){return sn[this.customerId].baseTips}}class un extends Xr{index;value;sprite;tdisplay;disabled=!1;constructor(t,e,i,s,r,n=40){super(t,e,i),this.sprite=t.add.sprite(0,0,r,0),this.sprite.setOrigin(.5,.5),this.add(this.sprite),this.bindInteractive(this.sprite),this.value=s,this.tdisplay=t.addText({text:s,color:"white",size:n}),this.tdisplay.setOrigin(.5),this.add(this.tdisplay),this.index=-1,this.disabled=!1}center(){this.sprite.setOrigin(.5,.5),this.tdisplay.setOrigin(.5,.5)}reCenter(t,e){this.sprite.setOrigin(t,e),this.tdisplay.setOrigin(t,e)}setValue(t){this.value=t,this.tdisplay.setText(this.value)}setIndex(t){this.index=t}turnOff(){this.sprite.input.enabled=!1,this.disabled=!0,this.resetState()}turnOn(){this.sprite.input.enabled=!0,this.disabled=!1,this.resetState()}resetState(){this.tdisplay.setColor("white"),this.sprite.setFrame(0)}onDown(t,e,i,s){this.disabled||(super.onDown(t,e,i,s),this.tdisplay.setColor("green"),this.sprite.setFrame(1))}onUp(t,e,i,s){this.disabled||(super.onUp(t,e,i,s),this.tdisplay.setColor("white"),this.sprite.setFrame(0))}}class cn extends Xr{stationId;hasBeenPurchased;currentCustomer;taskSpeed=1;taskHaste=1;refresh=!1;queueFail=!1;crit=0;clearButton;scene;taskTimer=0;appliedItems;appliedSprites;jolteon=!1;cellSize;spriteCont;sprite;text;progressTimer;constructor(t,e,i,s,r){super(t,e,i),t.add.existing(this),this.scene=t,this.stationId=s,this.cellSize=r,this.currentCustomer=null,this.hasBeenPurchased=!1,this.spriteCont=this.scene.add.container(0,this.spriteOffset),this.add(this.spriteCont),this.sprite=this.scene.add.image(0,0,this.spriteKey),this.sprite.setOrigin(.5,1),this.sprite.setScale(this.spriteSize/this.sprite.width),this.sprite.setTint(qr(16777215,this.stationTypeColor,.2)),this.spriteCont.add(this.sprite),this.text=this.scene.addText({x:0,y:r/2,size:32,text:"Available"}),this.text.setOrigin(.5),this.text.setVisible(!1),this.text.setStroke("#000000",4),this.add(this.text),this.progressTimer=new jr(t,-.4*r,.4*r,.8*r,15552932),this.progressTimer.setVisible(!1),this.add(this.progressTimer),this.bindInteractive(this.sprite),this.sprite.input.enabled=!1,this.appliedItems=[],this.appliedSprites=[],this.clearButton=new un(this.scene,.45*r,-.45*r,"","redx",10),this.clearButton.on("click",(()=>{this.returnItems()})),this.add(this.clearButton),this.clearButton.setScale(.75,.75),this.clearButton.setDepth(5),this.clearButton.setVisible(!1)}update(t,e){const i=1+(this.hasBeenPurchased?.02:0)*Math.sin(6*t/1e3);this.spriteCont.setScale(1,i-.2*this.holdSmooth)}setCustomer(t){this.currentCustomer=t,this.text.setText(t?"Click me!":"Available")}startTask(){this.text.setText("Working"),this.currentCustomer?this.taskHaste*=this.currentCustomer.workMultiplier:this.taskHaste*=1,this.parseItems(),this.queueFail?this.scene.sound.play("rip",{volume:.5}):this.playJingle(),this.clearItems(),this.stationType==Zr.CashRegister&&(this.taskHaste=1),this.currentCustomer&&this.currentCustomer.recheckHappiness(),this.scene.tweens.addCounter({from:1,to:0,duration:this.taskDuration*this.taskHaste*this.taskSpeed,onStart:()=>{this.progressTimer.setVisible(!0)},onUpdate:t=>{this.progressTimer.redraw(t.getValue())},onComplete:()=>{this.parseTaskEndParams(),this.resetTempVariables(),this.emit("taskend"),this.progressTimer.setVisible(!1),this.text.setText("Click me!")}}),this.setCrits(this.taskDuration*this.taskHaste*this.taskSpeed)}setCrits(t){if(this.crit<=0)return;let e=1;for(let i=0;i<5;i++)Math.random(){},onUpdate:()=>{},onComplete:()=>{this.scene.addEffect(new nn(this.scene,this.x-80+160*Math.random(),this.y-80+160*Math.random(),"Crit! +Happiness!","cyan",30,!0,"red",800,100,.7,0)),this.scene.sound.play("crit",{volume:.5}),this.currentCustomer&&(this.currentCustomer.happinessBonus+=.75,this.currentCustomer.recheckHappiness())}})}parseTaskEndParams(){this.refresh&&this.currentCustomer&&this.currentCustomer.resetPatience()}resetTempVariables(){this.taskHaste=1,this.refresh=!1,this.queueFail=!1,this.crit=0}setClickable(t){this.sprite.input.enabled=t}pauseClickable(){this.sprite.input.enabled?this.sprite.input.enabled=!1:this.jolteon=!0}resumeClickable(){this.jolteon?this.jolteon=!1:this.sprite.input.enabled=!0}upgrade(){this.hasBeenPurchased?this.upgradeTo&&(this.stationId=this.upgradeTo,this.sprite.setTexture(this.spriteKey),this.spriteCont.y=this.spriteOffset,this.sprite.setScale(this.spriteSize/this.sprite.width)):(this.hasBeenPurchased=!0,this.setAlpha(1))}forceUpgrade(t){this.hasBeenPurchased=!0,this.setAlpha(1),this.stationId=t,this.sprite.setTexture(this.spriteKey),this.spriteCont.y=this.spriteOffset,this.sprite.setScale(this.spriteSize/this.sprite.width)}applyItem(t,e){this.appliedItems.push(t);let i=new Phaser.GameObjects.Sprite(this.scene,40*this.appliedItems.length-80,60,e);i.setOrigin(.5,.5),i.setScale(.4),i.setDepth(2),i.setAlpha(.85),this.add(i),this.appliedSprites.push(i),this.clearButton.setVisible(!0)}clearItems(){this.appliedItems=[],this.appliedSprites.forEach((t=>t.destroy())),this.appliedSprites=[],this.clearButton.setVisible(!1)}parseItems(){this.currentCustomer&&(this.currentCustomer.miniRefresh(),this.appliedItems.length>0&&this.appliedItems.forEach((t=>this.scene.parseItems(t,this,this.currentCustomer))))}returnItems(){this.appliedItems.length>0&&this.appliedItems.forEach((t=>this.scene.returnItem(t))),this.appliedSprites.length>0&&this.appliedSprites.forEach((t=>t.destroy())),this.appliedItems=[],this.appliedSprites=[],this.scene.sound.play("return",{volume:.5}),this.clearButton.setVisible(!1)}playJingle(){switch(this.stationType){case Zr.ScalePolish:this.scene.sound.play("polish",{volume:.5});break;case Zr.GoldBath:this.scene.sound.play("goldbath",{volume:.5});break;case Zr.HornAndNails:this.scene.sound.play("snip",{volume:.5})}}get stationType(){return $r[this.stationId].type}get stationName(){return $r[this.stationId].name}get stationTier(){return $r[this.stationId].tier}get spriteKey(){return $r[this.stationId].spriteKey}get spriteScale(){return $r[this.stationId].spriteScale}get spriteSize(){return this.spriteScale*this.cellSize}get spriteOffset(){return.5*this.spriteSize}get taskDuration(){return $r[this.stationId].taskDuration??0}get admissionFee(){return $r[this.stationId].admissionFee??0}get upgradeCost(){return this.hasBeenPurchased?this.upgradeTo?$r[this.upgradeTo].cost:0:$r[this.stationId].cost}get upgradeTo(){return $r[this.stationId].upgradeTo}get stationTypeSymbolKey(){return Jr[this.stationType].symbolKey}get stationTypeColor(){return Jr[this.stationType].color}}class dn extends Phaser.GameObjects.Container{scene;context;polygon;radius;color;origin;corners;constructor(t,{rect:e,x:i=0,y:s=0,width:r=100,height:n=100,radius:o=16,color:a=16777215,alpha:h=1,bottomRight:l=!0,bottomLeft:u=!0,topLeft:c=!0,topRight:d=!0}){e&&(i=e.centerX,s=e.centerY,r=e.width,n=e.height),super(t,i,s),t.add.existing(this),this.scene=t,this.radius=o,this.width=Math.max(r,2*o),this.height=Math.max(n,2*o),this.color=a,this.corners=[l,u,c,d],this.origin=new Phaser.Math.Vector2(.5,.5),this.setAlpha(h),this.context=this.scene.add.graphics({x:0,y:0}),this.add(this.context),this.updatePolygon()}setWidth(t){this.width=Math.max(t,2*this.radius),this.updatePolygon()}setHeight(t){this.height=Math.max(t,2*this.radius),this.updatePolygon()}setRadius(t){this.radius=t,this.updatePolygon()}setColor(t){this.color=t,this.updatePolygon()}setOrigin(t,e){void 0===e&&(e=t),this.origin.x=t,this.origin.y=e,this.updatePolygon()}updatePolygon(){let t=[];for(let e=0;e<4;e++){let i=Math.sign(Math.cos(e*Math.PI/2+.1)),s=Math.sign(Math.sin(e*Math.PI/2+.1));if(this.corners[e])for(let r=0;r<16;r++){let n=Math.cos(e*Math.PI/2+r/15*Math.PI/2),o=Math.sin(e*Math.PI/2+r/15*Math.PI/2);t.push({x:(.5-this.origin.x)*this.width+i*(this.width/2-this.radius)+this.radius*n,y:(.5-this.origin.y)*this.height+s*(this.height/2-this.radius)+this.radius*o})}else t.push({x:(.5-this.origin.x)*this.width+i*this.width/2,y:(.5-this.origin.y)*this.height+s*this.height/2})}this.context.clear(),this.context.fillStyle(this.color,1),this.context.fillPoints(t,!0,!0)}}class pn extends Xr{scene;border;background;text;constructor(t,e,i,s,r,n){super(t,e,i),t.add.existing(this),this.scene=t,this.border=new dn(t,{width:s+20,height:r+20,radius:30,color:an.White}),this.add(this.border),this.background=new dn(t,{width:s,height:r,radius:20,color:an.Green700}),this.add(this.background),this.text=this.scene.addText({size:48,color:"#FFFFFF",text:n}),this.text.setOrigin(.5),this.add(this.text),this.bindInteractive(this.border)}update(t,e){this.setScale(1-.1*this.holdSmooth)}setText(t){this.text.setText(t)}setEnabled(t){this.setAlpha(t?1:.5),this.border.input.enabled=t,this.background.setColor(t?an.Green700:an.Gray500)}}class fn extends Phaser.GameObjects.Container{scene;panel;background;dayProgressTimer;clockText;dayText;moneyTitle;moneyText;nextButton;newLocationButton;constructor(t){super(t,0,0),t.add.existing(this),this.scene=t;const e=500;this.panel=this.scene.add.container(t.W-165-13,263),this.add(this.panel);const i=new dn(t,{x:0,y:0,width:330,height:e,radius:20,color:0,alpha:.6});this.panel.add(i),this.dayProgressTimer=new jr(t,0,-35,370,16742144),this.panel.add(this.dayProgressTimer),this.clockText=this.scene.addText({x:0,y:this.dayProgressTimer.y,size:35,color:"#FFFFFF",text:"09:00"}),this.clockText.setOrigin(.5),this.clockText.setStroke("black",6),this.panel.add(this.clockText),this.dayText=this.scene.addText({x:0,y:-180,size:60,color:"#FFFFFF",text:"Day 1"}),this.dayText.setOrigin(.5),this.dayText.setStroke("black",8),this.panel.add(this.dayText),this.moneyTitle=this.scene.addText({x:0,y:105,size:30,color:"#FFFFFF",text:"Money"}),this.moneyTitle.setStroke("black",6),this.moneyTitle.setOrigin(.5),this.panel.add(this.moneyTitle),this.moneyText=this.scene.addText({x:0,y:this.moneyTitle.y+55,size:60,color:"#FFFFFF",text:"$0"}),this.moneyText.setStroke("black",8),this.moneyText.setOrigin(.5),this.panel.add(this.moneyText),this.nextButton=new pn(t,0,600,300,90,"Start day"),this.panel.add(this.nextButton),this.nextButton.on("click",(()=>{this.emit("nextDay")})),this.newLocationButton=new pn(t,0,400,300,200,"..."),this.panel.add(this.newLocationButton),this.newLocationButton.on("click",(()=>{this.emit("nextLevel")}))}update(t,e){this.nextButton.update(t,e),this.newLocationButton.update(t,e)}setDay(t){this.dayText.setText(`Day ${t}`)}setTimeOfDay(t){this.dayProgressTimer.redraw(t);const e=9+7*t,i=e%1*60,s=Math.floor(e).toString().padStart(2,"0"),r=(10*Math.floor(i/10)).toString().padStart(2,"0");this.clockText.setText(`${s}:${r}`),1==t&&this.clockText.setText("Closed")}setLevel(t){this.newLocationButton.setData("cost",t.upgradeCost),this.newLocationButton.setVisible(void 0!==t.upgradeCost),this.newLocationButton.setText(`Upgrade\n shop\n $${Kr(t.upgradeCost??0)}`)}setMoney(t){this.moneyText.setText(`$${Kr(t)}`);const e=t>=this.newLocationButton.getData("cost");this.newLocationButton.setEnabled(e)}setShoppingMode(t){this.nextButton.setVisible(t);const e=void 0!==this.newLocationButton.getData("cost");this.newLocationButton.setVisible(t&&e)}}var gn=(t=>(t[t.CUSTOMER=0]="CUSTOMER",t[t.STATION=1]="STATION",t))(gn||{});class mn{id;spr;quant;price;tags;antitags;name;desc;snap;sound;clippingType;constructor(t,e,i,s,r,n,o,a,h,l){this.id=t,this.spr=e,this.quant=i,this.price=s,this.tags=r,this.antitags=n,this.name=o,this.desc=a,this.snap=h,this.sound=l}setQuantity(t){this.quant=t}}class vn extends Xr{id;index;sprname;spr;default;state=0;passivate=!1;dragX;dragY;doingCuteThing;parent;snap;constructor(t,e,i,s,r,n,o,a){super(t,e,i),this.parent=s,this.default=[e,i],this.id=r,this.index=n,this.sprname=o,this.snap=a,this.spr=new Phaser.GameObjects.Sprite(this.scene,e,i,o,0),this.spr.setOrigin(.5,.5),this.bindInteractive(this.spr,!0),this.add(this.spr),this.parent.add(this),this.setDepth(4)}onDown(t,e,i,s){super.onDown(t,e,i,s),this.passivate||this.parseClick()}update(t,e){3==this.state&&(this.x=this.dragX-this.default[0],this.y=this.dragY-this.default[1])}parseClick(){0==this.state&&(this.parent.unhighlight(),this.select(),this.parent.highlight(this.id))}onDragStart(t,e,i){this.dragged=!0,0==this.state&&(this.parent.unhighlight(),this.select(),this.parent.highlight(this.id)),1==this.state&&(this.spr.setFrame(0),this.state=3,this.parent.remove(this),this.parent.scene.setActiveItem(this),this.parent.scene.veilInvButton(),this.setPosition(0,0),this.split(),this.passivate=!0,this.setDepth(10)),this.emit("itempickup")}onDrag(t,e,i){this.hold=!1,this.dragX=t.x,this.dragY=t.y,this.emit("itemdrag")}onDragEnd(t,e,i){this.dragged=!1,3==this.state&&this.emit("itemdrop")}select(){this.state=1,this.spr.setFrame(1)}unselect(){this.parent.itemList[this.id].quant<=0?this.shadow():(this.state=0,this.spr.setFrame(0),this.passivate=!1)}shadow(){this.spr.setFrame(2),this.passivate=!0,this.state=2}snapTo(t,e){this.x=t-this.default[0],this.y=e-this.default[1]}unshadow(){this.state=1,this.spr.setFrame(1),this.passivate=!1}split(){this.parent.display[this.index]=new vn(this.scene,this.default[0],this.default[1],this.parent,this.id,this.index,this.sprname,this.snap),this.parent.itemList[this.id].quant--;let t=this.parent.itemList[this.id].quant;t<=0?this.parent.display[this.index].shadow():this.parent.display[this.index].select(),this.parent.updateAmountText(this.id,t),this.parent.glassify()}}class yn extends Phaser.GameObjects.Container{scene;isOpen=!1;itemList;display;window;fwButton;title;tdisplay;highlightIndex=-1;currentIndices=[0,11];coordinates=[[64,64],[148,64],[232,64],[64,148],[148,148],[232,148],[64,232],[148,232],[232,232],[64,316],[148,316],[232,316]];constructor(t,e,i,s){super(t,e,i),this.scene=t,this.itemList=[new mn(0,"rock",s[0],1,["rock","cheap"],["cheap"],"Complimentary Pet Rock","A loving pet rock to cheer up any customer. Works modestly well.",gn.CUSTOMER,"doink"),new mn(1,"sugar",s[1],20,["drug"],["illegal","cool"],"Sugar","A delicious white powder made from plants. Improves working speed a whole bunch!",gn.STATION,"chomp"),new mn(2,"hotdog",s[2],25,["red"],["red"],"Hot Dog","A thick wiener with condiments. This savory snack is great for hot-headed customers.",gn.CUSTOMER,"chomp"),new mn(3,"brocc",s[3],12,["green"],["green"],"Broccoli","Verdant customers will be overjoyed to have this stalk of organic free-range broccoli.",gn.CUSTOMER,"chomp"),new mn(4,"snowglobe",s[4],30,["blue"],["blue"],"Snowglobe","A cute little snowglobe that appeals to frosty-looking customers.",gn.CUSTOMER,"doink"),new mn(5,"usb",s[5],40,["kobold"],["kobold"],"Mini USB","A small piece of technology. A pleasant distraction for small kobolds.",gn.CUSTOMER,"doink"),new mn(6,"pocky",s[6],35,["dino"],["dino"],"Pöcky","Sweet snack made of edible sticks. Dinosaurs love these.",gn.CUSTOMER,"chomp"),new mn(7,"milk",s[7],30,["dragon"],["dragon"],"Fresh Milk","Warm, creamy milk. Grows strong bones. Essential for big dragons.",gn.CUSTOMER,"slurp"),new mn(8,"hourglass",s[8],110,["time","physics","glass"],["physics"],"Hourglass","Place on a workstation to fully turn back the time on a customer's patience. Might make it hard to work though...",gn.STATION,"doink"),new mn(9,"hypnosis",s[9],90,["hypno","horny","kinky","weird","psychic"],["horny","kinky","weird"],"Hypnosis","Uses a state of hypnosis to keep a customer's patience constant. You can't increase it any more either though.",gn.CUSTOMER,"doink"),new mn(10,"polish",s[10],80,["expensive","creamy","musky"],["expensive","musky"],"Extra-Premium Polish","Put this on a station to give scales a wonderful gloss and unique scent. Most customers love it and will give you generous tips!",gn.STATION,"slurp"),new mn(11,"pillowtalk",s[11],50,["horny","soft","cringe"],["horny","cringe"],"Pillow Talk","Instruct a station to talk to a customer alluringly and have them use more services. Good telemarketing is vital!",gn.STATION,"slurp"),new mn(12,"shuriken",s[12],75,["sharp","weeb","ninja","cringe","cool"],["cool","cringe","weeb","sharp"],"Shuriken","Equip a station to allow the stylists to critically strike when grooming! It's some type of mysterious fidget spinner that sharpens mental capabilites. ",gn.STATION,"meme_explosion_sound")],this.display=[],this.window=new Phaser.GameObjects.Image(this.scene,e,i,"invwindow"),this.window.setAlpha(.85),this.window.setOrigin(-1,0),this.add(this.window),this.window.setDepth(1),this.title=this.scene.addText({x:75,y:760,size:30,color:"#FFFFFF",text:""}),this.tdisplay=this.scene.addText({x:75,y:845,size:25,color:"#FFFFFF",text:""}),this.tdisplay.setWordWrapWidth(500),this.add(this.title),this.add(this.tdisplay),this.fwButton=new un(this.scene,580,500,"","fwbutton",10),this.fwButton.on("click",(()=>{this.scroll()})),this.add(this.fwButton),this.scene.add.existing(this)}unhighlight(){for(let t=0;tt.destroy())),this.display=[];for(let e=this.currentIndices[0];et.destroy())),this.setPosition(-650,0),this.isOpen=!1,this.display=[],this.window.setVisible(!1),this.title.setText(""),this.tdisplay.setText(""),this.currentIndices=[0,11],this.highlightIndex=-1}open(){this.scene.sound.play("t_rustle",{volume:.5}),this.window.setVisible(!0),this.x=0,this.y=0,this.isOpen=!0,this.populate()}returnItem(t){this.itemList[t].quant++,this.isOpen&&this.highlightIndex>=0&&t==this.highlightIndex&&this.updateAmountText(t,this.itemList[t].quant)}buyItem(t,e){this.itemList[t].quant+=e}updateAmountText(t,e){e>0?this.title.setText(this.itemList[t].name+" x"+e):(this.title.setText(""),this.tdisplay.setText(""))}glassify(){this.window.setAlpha(.17),this.title.setAlpha(.2),this.tdisplay.setAlpha(.2),this.fwButton.setAlpha(.2),this.display.forEach((t=>t.setAlpha(.2)))}unglassify(){this.window.setAlpha(.85),this.title.setAlpha(1),this.tdisplay.setAlpha(1),this.fwButton.setAlpha(1),this.display.forEach((t=>t.setAlpha(1)))}scroll(){if(this.currentIndices[1]0&&i.antitags.length>0)for(let e=0;e0&&i.tags.length>0)for(let r=0;r0&&i.antitags.length>0)for(let r=0;r0&&e.tags.length>0)for(let s=0;s0&&e.antitags.length>0)for(let s=0;s{this.selectedStation?(this.emit("upgradeStation",this.selectedStation),this.scene.sound.play("score",{volume:1})):(this.emit("upgradeEmployee",this.selectedEmployee),this.scene.sound.play("score",{volume:1}))})),this.background.setInteractive(),this.background.on("pointerdown",this.close,this),this.panel.setInteractive()}update(t,e){this.buyButton.update(t,e)}selectStation(t){if(this.selectedEmployee=null,this.selectedStation=t,this.titleText.setText(t.stationName),t.x>this.scene.W/2?(this.panel.x=t.x-500,this.panel.y=t.y):(this.panel.x=t.x+500,this.panel.y=t.y),t.upgradeTo&&t.hasBeenPurchased){const e=$r[t.upgradeTo],i=e.taskDuration-t.taskDuration,s=e.admissionFee-t.admissionFee;let r="";r+=`Tier: ${t.stationTier}\n`,t.taskDuration>0&&(r+=`Duration: ${t.taskDuration/1e3}s (${i/1e3}s)\n`),t.admissionFee>0&&(r+=`Revenue: $${t.admissionFee} (+$${s})\n`),this.moneyText.setText(r)}else{let e="";e+=`Tier: ${t.stationTier}\n`,e+=`Duration: ${t.taskDuration/1e3}s\n`,e+=`Revenue: $${t.admissionFee}\n`,this.moneyText.setText(e)}const e=t.upgradeCost<=this.scene.money;this.buyButton.setEnabled(e),this.buyButton.setVisible(!!t.upgradeTo||!t.hasBeenPurchased),this.buyButton.setText(`$${Kr(t.upgradeCost)}`),this.open()}selectEmployee(t){if(this.selectedStation=null,this.selectedEmployee=t,this.titleText.setText(t.employeeName),t.x>this.scene.W/2?(this.panel.x=t.x-500,this.panel.y=t.y):(this.panel.x=t.x+500,this.panel.y=t.y),t.upgradeTo&&t.hasBeenPurchased){const e=Vr[t.upgradeTo],i=e.walkSpeed-t.walkSpeed,s=e.workSpeed-t.workSpeed;let r="";r+=`Tier: ${t.employeeTier}\n`,r+=`Walk speed: ${t.walkSpeed} (+${i}s)\n`,r+=`Work speed: ${t.workSpeed} (+${s})\n`,this.moneyText.setText(r),this.buyButton.setVisible(!0)}else{let e="";e+=`Tier: ${t.employeeTier}\n`,e+=`Walk speed: ${t.walkSpeed}\n`,e+=`Work speed: ${t.workSpeed}\n`,this.moneyText.setText(e)}const e=t.upgradeCost<=this.scene.money;this.buyButton.setEnabled(e),this.buyButton.setVisible(!!t.upgradeTo||!t.hasBeenPurchased),this.buyButton.setText(`$${Kr(t.upgradeCost)}`),this.open()}open(){this.alpha<1&&(this.setVisible(!0),this.setAlpha(0),this.scene.tweens.add({targets:this,alpha:1,duration:200}),this.scene.sound.play("flail",{volume:.3}))}close(){this.setVisible(!0),this.setAlpha(1),this.scene.tweens.add({targets:this,alpha:0,duration:200,onComplete:()=>{this.setVisible(!1),this.emit("close")}}),this.scene.sound.play("missLand",{volume:.2})}}class bn extends Phaser.GameObjects.Container{scene;background;panel;dayText;moneyText;okButton;constructor(t){super(t,0,0),t.add.existing(this),this.scene=t,this.setVisible(!1),this.setAlpha(0),this.background=this.scene.add.rectangle(0,0,t.W,t.H,0,.75),this.background.setOrigin(0),this.add(this.background),this.background.setInteractive(),this.panel=new dn(t,{x:t.W/2,y:t.H/2,width:1e3,height:800,radius:20,color:16777215}),this.add(this.panel),this.dayText=this.scene.addText({x:0,y:-300,size:60,color:"#FFFFFF",text:"Day 1"}),this.dayText.setOrigin(.5),this.dayText.setStroke("black",4),this.panel.add(this.dayText),this.moneyText=this.scene.addText({x:0,y:-100,size:40,color:"#FFFFFF",text:"Money earned: $123\nCustomers served: 12\nAngry customers: 1"}),this.moneyText.setStroke("black",4),this.moneyText.setOrigin(.5),this.panel.add(this.moneyText),this.okButton=new pn(t,0,300,200,100,"OK"),this.panel.add(this.okButton),this.okButton.on("click",(()=>{this.emit("progress")}))}update(t,e){this.okButton.update(t,e)}open(t,e){this.setVisible(!0),this.setAlpha(0),this.scene.tweens.add({targets:this,alpha:1,duration:200});let i="";i+=`Money earned: $${e.money}\n`,i+=`Customers served: ${e.happyCustomers}\n`,i+=`Angry customers: ${e.angryCustomers}`,this.moneyText.setText(i),this.dayText.setText(`Day ${t}`),this.scene.sound.play("flail",{volume:.3})}close(){this.setVisible(!0),this.setAlpha(1),this.scene.tweens.add({targets:this,alpha:0,duration:200,onComplete:()=>{this.setVisible(!1)}}),this.scene.sound.play("missLand",{volume:.2})}}var Sn=(t=>(t[t.Level1=0]="Level1",t[t.Level2=1]="Level2",t[t.Level3=2]="Level3",t))(Sn||{}),En=(t=>(t[t.Empty=0]="Empty",t[t.Wall=1]="Wall",t[t.WaitingSeat=2]="WaitingSeat",t[t.HornAndNails=3]="HornAndNails",t[t.ScalePolish=4]="ScalePolish",t[t.GoldBath=5]="GoldBath",t[t.CashRegister=6]="CashRegister",t[t.EmployeeGray=11]="EmployeeGray",t[t.EmployeeBrown=12]="EmployeeBrown",t[t.EmployeeYellow=13]="EmployeeYellow",t[t.EmployeePurple=14]="EmployeePurple",t[t.EmployeeGreen=15]="EmployeeGreen",t))(En||{});const Cn=[{id:0,background:"grid1",width:8,height:6,cellSize:190,grid:[[1,1,1,1,1,1,1,1],[1,2,0,11,12,13,4,1],[1,2,0,3,3,0,4,1],[0,0,0,0,0,0,0,1],[1,0,5,5,0,6,0,0],[1,1,1,1,1,1,1,1]],upgradeCost:1e3},{id:1,background:"grid4",width:9,height:7,cellSize:150,grid:[[1,1,1,1,1,1,1,1,1],[1,2,0,11,12,13,14,0,1],[1,2,0,3,3,3,0,4,1],[1,2,0,0,0,0,0,4,1],[0,0,0,5,5,5,0,0,1],[1,0,0,0,0,0,6,0,0],[1,1,1,1,1,1,1,1,1]],upgradeCost:2e3},{id:2,background:"grid2",width:10,height:8,cellSize:138,grid:[[1,1,1,1,1,1,1,1,1,1],[1,2,0,11,12,13,14,15,0,1],[1,2,0,3,0,3,0,4,4,1],[1,2,0,3,0,3,0,0,0,1],[1,2,0,0,0,0,0,4,4,1],[0,0,0,5,5,5,0,0,0,1],[1,0,0,0,0,0,0,6,0,0],[1,1,1,1,1,1,1,1,1,1]]}];var An=(t=>(t[t.IntroCutscene1=0]="IntroCutscene1",t[t.IntroCutscene2=1]="IntroCutscene2",t[t.IntroCutscene3=2]="IntroCutscene3",t[t.NextLevelCutscene=3]="NextLevelCutscene",t[t.TheEnd=4]="TheEnd",t))(An||{});class _n extends Phaser.GameObjects.Container{scene;mode;graphics;cutscene;rect;subtitles;button;constructor(t){super(t),this.scene=t,t.add.existing(this),this.graphics=this.scene.make.graphics(),this.graphics.fillStyle(an.White);let e=this.graphics.createGeometryMask();e.setInvertAlpha(!0),this.setMask(e),this.rect=t.add.rectangle(t.CX,t.CY,t.W,t.H,an.Black),this.rect.setInteractive(),this.add(this.rect),this.cutscene=t.add.image(t.CX,t.CY,"cutscene_dummy1"),this.cutscene.setVisible(!1),this.scene.fitToScreen(this.cutscene),this.add(this.cutscene),this.subtitles=t.addText({x:t.CX,y:t.H-100,size:64,color:hn.Black,text:"subtitles"}),this.subtitles.setOrigin(.5),this.subtitles.setPadding(10),this.subtitles.setWordWrapWidth(.7*t.W),this.subtitles.setStroke(hn.White,16),this.add(this.subtitles),this.button=new pn(t,t.W-240,t.H-120,300,120,"OK"),this.add(this.button),this.button.on("click",this.proceed,this),this.setMode(0),this.scene.addEvent(500,(()=>{this.emit("restartLevel")}))}update(t,e){this.button.setScale(1-.1*this.button.holdSmooth)}setMode(t){switch(this.mode=t,t){case 0:case 1:case 2:case 3:this.cutscene.setVisible(!0),this.button.setVisible(!0),this.subtitles.setVisible(!0);break;default:this.cutscene.setVisible(!1),this.button.setVisible(!1),this.subtitles.setVisible(!1)}switch(t){case 0:this.cutscene.setTexture("cutscene_dummy1"),this.subtitles.setText("Somewhere in Chocoland");break;case 1:this.cutscene.setTexture("cutscene_dummy2"),this.subtitles.setText("If only my scales weren't so dirty...");break;case 2:this.cutscene.setTexture("cutscene_dummy3"),this.subtitles.setText("Lets go to the Scale Salon™!");break;case 3:this.cutscene.setTexture("cutscene_dummy4"),this.subtitles.setText("Wow! A new location!");break;case 4:this.subtitles.setText("The End")}}proceed(){switch(this.scene.sound.play("scroll",{volume:.3}),this.mode){case 0:this.setMode(1);break;case 1:this.setMode(2);break;case 2:this.emit("close");break;case 3:this.emit("nextLevel")}}fadeToGame(){this.hideContent(),this.scene.tweens.addCounter({duration:1e3,from:0,to:1,ease:Phaser.Math.Easing.Quintic.InOut,onUpdate:(t,e,i,s)=>{let r=.6*s*this.scene.W;this.redrawMask(this.scene.CX,this.scene.CY,r)},onComplete:()=>{this.setVisible(!1)}})}fadeToIntermission(t){this.setMode(t),this.setVisible(!0),this.scene.tweens.addCounter({duration:1e3,from:1,to:0,ease:Phaser.Math.Easing.Quintic.InOut,onUpdate:(t,e,i,s)=>{let r=.6*s*this.scene.W;this.redrawMask(this.scene.CX,this.scene.CY,r)},onStart:()=>{this.showContent()},onComplete:()=>{}})}redrawMask(t,e,i){this.graphics.clear(),this.graphics.fillCircle(t,e,i)}showContent(){this.scene.tweens.add({targets:[this.button,this.subtitles],alpha:{from:0,to:1},duration:500,ease:Phaser.Math.Easing.Sine.Out,onComplete:()=>{this.button.enabled=!0}})}hideContent(){this.button.enabled=!1,this.scene.tweens.add({targets:[this.button,this.subtitles],alpha:{from:1,to:0},duration:500,ease:Phaser.Math.Easing.Sine.Out})}}var Pn={exports:{}};"undefined"!=typeof self&&self;var Rn=Pn.exports=(()=>{var t={774:(t,e)=>{var i,s,r,n;n=function(){function t(t){for(var e=t,i=[];e.parent;)i.unshift(e),e=e.parent;return i}var e={search:function(i,s,n,o){i.cleanDirty();var a=(o=o||{}).heuristic||e.heuristics.manhattan,h=o.closest||!1,l=new r((function(t){return t.f})),u=s;for(s.h=a(s,n),i.markDirty(s),l.push(s);l.size()>0;){var c=l.pop();if(c===n)return t(c);c.closed=!0;for(var d=i.neighbors(c),p=0,f=d.length;p0&&(this.content[0]=e,this.bubbleUp(0)),t},remove:function(t){var e=this.content.indexOf(t),i=this.content.pop();e!==this.content.length-1&&(this.content[e]=i,this.scoreFunction(i)0;){var i=(t+1>>1)-1,s=this.content[i];if(!(this.scoreFunction(e){var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};return(()=>{i.r(s),i.d(s,{NavMesh:()=>g,PointQueue:()=>v,RectangleHull:()=>y,buildPolysFromGridMap:()=>x,default:()=>T});var t=i(774),e=i.n(t);class r{x;y;constructor(t=0,e=0){this.x=t,this.y=e}equals(t){return this.x===t.x&&this.y===t.y}angle(t){return Math.atan2(t.y-this.y,t.x-this.x)}distance(t){const e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)}add(t){this.x+=t.x,this.y+=t.y}subtract(t){this.x-=t.x,this.y-=t.y}clone(){return new r(this.x,this.y)}}class n{id;polygon;edges;neighbors;portals;centroid;boundingRadius;weight=1;x=0;y=0;constructor(t,e){this.id=t,this.polygon=e,this.edges=e.edges,this.neighbors=[],this.portals=[],this.centroid=this.calculateCentroid(),this.boundingRadius=this.calculateRadius()}getPoints(){return this.polygon.points}contains(t){return this.polygon.contains(t.x,t.y)||this.isPointOnEdge(t)}calculateCentroid(){const t=new r(0,0),e=this.polygon.points.length;return this.polygon.points.forEach((e=>t.add(e))),t.x/=e,t.y/=e,t}calculateRadius(){let t=0;for(const e of this.polygon.points){const i=this.centroid.distance(e);i>t&&(t=i)}return t}isPointOnEdge({x:t,y:e}){for(const i of this.edges)if(i.pointOnSegment(t,e))return!0;return!1}destroy(){this.neighbors=[],this.portals=[]}toString(){return`NavPoly(id: ${this.id} at: ${this.centroid})`}isWall(){return 0===this.weight}centroidDistance(t){return this.centroid.distance(t.centroid)}getCost(t){return this.centroidDistance(t)}}function o(t,e){const i=e.start,s=e.end,n=function(t,e){const i=e.x-t.x,s=e.y-t.y;return i*i+s*s}(i,s);let o=((t.x-i.x)*(s.x-i.x)+(t.y-i.y)*(s.y-i.y))/n;var a;return(a=o)<0&&(a=0),a>1&&(a=1),o=a,new r(i.x+o*(s.x-i.x),i.y+o*(s.y-i.y))}function a(t,e,i){const s=e.x-t.x,r=e.y-t.y;return(i.x-t.x)*r-s*(i.y-t.y)}function h(t,e,i=1e-4){return Math.abs(t-e)<=i}function l(t,e){let i=t-e;const s=i+Math.PI,r=2*Math.PI;return i=s-Math.floor(s/r)*r,i-=Math.PI,i}function u(t,e,i=1e-4){const s=a(t.start,t.end,e.start),r=a(t.start,t.end,e.end);return!(!h(s,0,i)||!h(r,0,i))}function c(t){return Boolean(t)}class d{path;portals;constructor(){this.portals=[],this.path=[]}push(t,e){void 0===e&&(e=t),this.portals.push({left:t,right:e})}stringPull(){const t=this.portals,e=[];let i=0,s=0,r=0,n=t[0].left,o=t[0].left,h=t[0].right;e.push(n);for(var l=1;l0)){e.push(o),n=o,i=s,o=n,h=n,s=i,r=i,l=i;continue}h=c,r=l}if(a(n,o,u)>=0){if(!(n.equals(o)||a(n,h,u)<0)){e.push(h),n=h,i=r,o=n,h=n,s=i,r=i,l=i;continue}o=u,s=l}}return 0!==e.length&&e[e.length-1].equals(t[t.length-1].left)||e.push(t[t.length-1].left),this.path=e,e}}class p{start;end;left;right;top;bottom;constructor(t,e,i,s){this.start=new r(t,e),this.end=new r(i,s),this.left=Math.min(t,i),this.right=Math.max(t,i),this.top=Math.min(e,s),this.bottom=Math.max(e,s)}pointOnSegment(t,e){return t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom&&this.pointOnLine(t,e)}pointOnLine(t,e){return(t-this.left)*(this.bottom-this.top)==(this.right-this.left)*(e-this.top)}}class f{edges;points;isClosed;constructor(t,e=!0){this.isClosed=e,this.points=t,this.edges=[];for(let i=1;i{const e=t.map((t=>new r(t.x,t.y)));return new f(e)}));this.navPolygons=s.map(((t,e)=>new n(e,t))),this.calculateNeighbors(),this.graph=new class{nodes;grid=[];constructor(t){this.nodes=t,this.init()}neighbors(t){return t.neighbors}navHeuristic(t,e){return t.centroidDistance(e)}destroy(){this.cleanDirty(),this.nodes=[]}init=e().Graph.prototype.init.bind(this);cleanDirty=e().Graph.prototype.cleanDirty.bind(this);markDirty=e().Graph.prototype.markDirty.bind(this);toString=e().Graph.prototype.toString.bind(this)}(this.navPolygons)}getPolygons(){return this.navPolygons}destroy(){this.graph.destroy();for(const t of this.navPolygons)t.destroy();this.navPolygons=[]}isPointInMesh(t){return this.navPolygons.some((e=>e.contains(t)))}findClosestMeshPoint(t,e=Number.POSITIVE_INFINITY){let i=e,s=null,r=null;for(const n of this.navPolygons){if(n.contains(t)){i=0,s=n,r=t;break}const e=n.boundingRadius;if(n.centroid.distance(t)-e0)for(const e of this.navPolygons)if(n=e.boundingRadius+this.meshShrinkAmount,s=e.centroid.distance(c),s<=n){const{distance:t}=this.projectPointToPolygon(c,e);t<=this.meshShrinkAmount&&t0)for(const e of this.navPolygons)if(n=e.boundingRadius+this.meshShrinkAmount,s=e.centroid.distance(u),s<=n){const{distance:t}=this.projectPointToPolygon(u,e);t<=this.meshShrinkAmount&&te.boundingRadius+t.boundingRadius))for(const i of e.edges)for(const s of t.edges){if(!u(i,s))continue;const r=this.getSegmentOverlap(i,s);if(!r)continue;e.neighbors.push(t),t.neighbors.push(e);const[n,o]=r;let a=e.centroid.angle(i.start),h=e.centroid.angle(r[0]),c=e.centroid.angle(r[1]),d=l(a,h),f=l(a,c);de.point.x?1:t.point.ye.point.y?1:0}));const s=i[0].line===i[1].line,r=i[1].point.equals(i[2].point);return s||r?null:[i[1].point,i[2].point]}projectPointToPolygon(t,e){let i=null,s=Number.MAX_VALUE;for(const r of e.edges){const e=o(t,r),n=t.distance(e);(null===i||n{e.forEach(((e,s)=>{t(s,i,this.map[i][s])}))}))}isInGrid(t,e){return t>=0&&t=0&&ee.x===t.x&&e.y===t.y))}containsAllPoints(t){return t.every((t=>this.containsPoint(t)))}getIndexOfPoint(t){return this.data.findIndex((e=>e.x==t.x&&e.y==t.y))}removePoint(t){const e=this.getIndexOfPoint(t);-1!==e&&this.data.splice(e,1)}removePoints(t){t.forEach((t=>this.removePoint(t)))}}class y{x;y;width;height;constructor(t,e,i,s){this.x=t,this.y=e,this.width=i,this.height=s}setPosition(t,e){this.x=t,this.y=e}setSize(t,e){this.width=t,this.height=e}set(t,e,i,s){this.setPosition(t,e),this.setSize(i,s)}get left(){return this.x}set left(t){this.x=t}get top(){return this.y}set top(t){this.y=t}get right(){return this.x+this.width}set right(t){this.width=t-this.x}get bottom(){return this.y+this.height}set bottom(t){this.height=t-this.top}get center(){return{x:(this.x+this.right)/2,y:(this.y+this.bottom)/2}}doesOverlap(t){return!(this.rightt.right||this.y>t.bottom||this.bottom=e||r>=i)throw new Error(`navmesh: Unsupported shrink amount ${r}. Must be less than tile width and height.`);let o=function(t){const e=new v,{tileWidth:i,tileHeight:s}=t,r=[];let n;t.forEach(((i,s)=>{t.isWalkable(i,s)&&e.add({x:i,y:s})}));const o=(t,i)=>{const s=((t,e)=>{const{top:i,left:s,right:r,bottom:n}=t;let o=[];if("top"===e)for(let a=s;a<=r-1;a++)o.push({x:a,y:i});else if("bottom"===e)for(let a=s;a<=r-1;a++)o.push({x:a,y:n});else if("left"===e)for(let a=i;a<=n-1;a++)o.push({x:s,y:a});else{if("right"!==e)throw new Error(`Invalid dir "${e}" for extend`);for(let t=i;t<=n-1;t++)o.push({x:r,y:t})}return o})(t,i),r=e.containsAllPoints(s);return r&&(((t,e)=>{if("top"===e)t.y-=1;else if("bottom"===e)t.bottom+=1;else if("left"===e)t.x-=1;else{if("right"!==e)throw new Error(`Invalid dir "${e}" for extend`);t.right+=1}})(t,i),e.removePoints(s)),r};for(;!e.isEmpty();){const t=e.shift();if(void 0===t)break;n=new y(t.x,t.y,1,1);let a=!0;for(;a;){const t=o(n,"top"),e=o(n,"right"),i=o(n,"left"),s=o(n,"bottom");a=t||s||i||e}n.setPosition(n.x*i,n.y*s),n.setSize(n.width*i,n.height*s),r.push(n)}return r}(n);return r>0&&(o=function(t,e,i){const{tileHeight:s,tileWidth:r}=e,n=[],o=[];t.forEach(((t,a)=>{const h=s,l=r,u=e.getGridX(t.x),c=e.getGridY(t.y),d=e.getGridY(t.bottom),p=e.getGridX(t.right),f=w(t,e,i,r,s);if(t.left>=t.right||t.top>=t.bottom)return;o.push(t);const g=[],m=[],v=(t,e,i,s)=>{const r=new y(t,e,i,s);i>s?m.push(r):g.push(r)};if(f.left){const s=t.left-i;let r=c,n=r-1;for(let t=c;t{g.forEach((e=>{t.doesOverlap(e)&&(t.y>e.y?e.height-=i:e.top+=i)}))})),[...m,...g].forEach((t=>{w(t,e,i,r,s),t.left>=t.right||t.top>=t.bottom||n.push(t)}))}));for(let a=0;at.toPoints()))}function w(t,e,i,s,r){const n=i,o=s/2,a=r/2,{left:h,top:l,right:u,bottom:c}=t,d={left:!1,right:!1,top:!1,bottom:!1,topLeft:e.isBlockedAtWorld(h-n,l-n),topRight:e.isBlockedAtWorld(u+n,l-n),bottomLeft:e.isBlockedAtWorld(h-n,c+n),bottomRight:e.isBlockedAtWorld(u+n,c+n)};for(let f=l+a;ft.height?p.left=!0:p.top=!0),!d.topRight||d.right||d.top||(t.width>t.height?p.right=!0:p.top=!0),!d.bottomLeft||d.bottom||d.left||(t.width>t.height?p.left=!0:p.bottom=!0),!d.bottomRight||d.bottom||d.right||(t.width>t.height?p.right=!0:p.bottom=!0),p.left&&(t.x+=i,t.width-=i),p.top&&(t.y+=i,t.height-=i),p.right&&(t.width-=i),p.bottom&&(t.height-=i),p}const T=g})(),s})();const Mn=e(Rn),kn=!0,Ln=!1,On=[[kn,Ln,Ln,Ln,Ln,Ln,kn],[kn,Ln,Ln,Ln,Ln,Ln,kn],[kn,Ln,Ln,Ln,Ln,Ln,kn],[kn,Ln,Ln,Ln,Ln,Ln,kn],[kn,Ln,Ln,Ln,Ln,Ln,kn],[kn,Ln,Ln,Ln,Ln,Ln,kn],[kn,Ln,Ln,Ln,Ln,Ln,kn]],Fn=[[Ln,Ln,Ln,Ln,Ln,Ln,Ln],[Ln,Ln,Ln,Ln,Ln,Ln,Ln],[Ln,Ln,Ln,Ln,Ln,Ln,Ln],[Ln,Ln,Ln,kn,kn,kn,kn],[Ln,Ln,Ln,Ln,Ln,Ln,Ln],[Ln,Ln,Ln,Ln,Ln,Ln,Ln],[Ln,Ln,Ln,Ln,Ln,Ln,Ln]];function Dn(t,e){const i=function(t,e){return new Array(t.height*e).fill(!0).map((()=>new Array(t.width*e).fill(!0)))}(t,7);for(let s=0;s0&&t{this.scroll()})),this.add(this.fwButton),this.scene.add.existing(this),this.buy1=new Bn(this.scene,390,602,"Buy 1","buybutton",this,1,20),this.buyall=new Bn(this.scene,390,690,"Buy All","buybutton",this,-99,20),this.buy5=new Bn(this.scene,520,602,"Buy 5","buybutton",this,5,20),this.buy10=new Bn(this.scene,520,690,"Buy 10","buybutton",this,10,20),this.buy1.on("click",(()=>{this.buy(this.buy1.mode)})),this.buy5.on("click",(()=>{this.buy(this.buy5.mode)})),this.buy10.on("click",(()=>{this.buy(this.buy10.mode)})),this.buyall.on("click",(()=>{this.buy(this.buyall.mode)})),this.add(this.buy1),this.add(this.buy5),this.add(this.buy10),this.add(this.buyall),this.disableAllBuyButtons(),this.pricedisp=this.scene.addText({x:80,y:594,size:24,color:"#FFFFFF",text:""}),this.pricedisp.setVisible(!1),this.add(this.pricedisp),this.myinvdisp=this.scene.addText({x:80,y:682,size:24,color:"#FFFFFF",text:""}),this.myinvdisp.setVisible(!1),this.add(this.myinvdisp)}unhighlight(){for(let t=0;t0||-99==t){-99==t&&(e=this.itemList[this.highlightIndex].quant);let i=e*this.itemList[this.highlightIndex].price;if(i>this.scene.money)return void this.scene.sound.play("fail",{volume:.5});this.scene.buyItem(this.highlightIndex,e),this.scene.removeMoney(i),this.itemList[this.highlightIndex].quant-=e,this.itemList[this.highlightIndex].quant<=0?(this.itemList[this.highlightIndex].quant=0,this.display[this.highlightIndex].shadow(),this.updateButtons(this.highlightIndex),this.hideInvDisp(),this.clearPriceDisp(),this.clearTextDisplays()):(this.display[this.highlightIndex].updateAmt(this.itemList[this.highlightIndex].quant),this.updateButtons(this.highlightIndex),this.updateInvDisp(this.highlightIndex),this.updatePriceDisp(t))}}clearTextDisplays(){this.title.setVisible(!1),this.tdisplay.setVisible(!1)}updateInvDisp(t){this.myinvdisp.setVisible(!0),this.myinvdisp.setText("Owned: x"+this.scene.getAmountOwned(t))}hideInvDisp(){this.myinvdisp.setVisible(!1)}clearInvDisp(){this.myinvdisp.setText(""),this.myinvdisp.setVisible(!1)}updatePriceDisp(t){this.pricedisp.setColor("White");let e=t*this.itemList[this.highlightIndex].price;if(this.highlightIndex>0){if(-99==t)e=this.itemList[this.highlightIndex].quant*this.itemList[this.highlightIndex].price,this.pricedisp.setVisible(!0);else{if(!(t>0))return void this.pricedisp.setVisible(!1);this.pricedisp.setVisible(!0)}e>this.scene.money&&this.pricedisp.setColor("Red"),this.pricedisp.setText("Total: $"+e)}}clearPriceDisp(){this.pricedisp.setColor("White"),this.pricedisp.setText(""),this.pricedisp.setVisible(!1)}updateButtons(t){let e=this.itemList[t].quant;this.enableAllBuyButtons(),e<=0?this.disableAllBuyButtons():e<5?(this.disableButton(this.buy5),this.disableButton(this.buy10)):e<10&&this.disableButton(this.buy10)}updateInvText(t){this.myinvdisp.setText("Owned: x"+this.scene.getAmountOwned(t))}disableButton(t){t.turnOff(),t.setVisible(!1)}enableAllBuyButtons(){this.buy1.turnOn(),this.buy1.setVisible(!0),this.buy5.turnOn(),this.buy5.setVisible(!0),this.buy10.turnOn(),this.buy10.setVisible(!0),this.buyall.turnOn(),this.buyall.setVisible(!0)}disableAllBuyButtons(){this.buy1.turnOff(),this.buy1.setVisible(!1),this.buy5.turnOff(),this.buy5.setVisible(!1),this.buy10.turnOff(),this.buy10.setVisible(!1),this.buyall.turnOff(),this.buyall.setVisible(!1)}populate(){let t=0;for(let e=this.currentIndices[0];et.destroy())),this.display=[];for(let e=this.currentIndices[0];et.destroy())),this.setPosition(-650,0),this.isOpen=!1,this.display=[],this.window.setVisible(!1),this.title.setText(""),this.tdisplay.setText(""),this.currentIndices=[0,8],this.highlightIndex=-1,this.clearInvDisp(),this.disableAllBuyButtons(),this.clearPriceDisp()}open(){this.scene.sound.play("t_rustle",{volume:.5}),this.window.setVisible(!0),this.x=0,this.y=0,this.isOpen=!0,this.populate(),this.clearInvDisp(),this.disableAllBuyButtons(),this.clearPriceDisp()}returnItem(t){this.itemList[t].quant++,this.isOpen&&this.highlightIndex>=0&&t==this.highlightIndex&&this.updateAmountText(t,this.itemList[t].quant)}updateAmountText(t,e){e>0?this.title.setText(this.itemList[t].name):(this.title.setText(""),this.tdisplay.setText(""))}scroll(){if(this.currentIndices[1]=0;s--)(o=r[s])instanceof e&&(o.destroy(),$n(r,s));else{s=0;for(var r,n=(r=t.postPipelines).length;s{s.width=e*t}));for(let r of Rr)this.load.image(r.key,r.path);for(let r of Mr)this.load.spritesheet(r.key,r.path,{frameWidth:r.width,frameHeight:r.height});for(let r of kr)this.load.audio(r.key,r.path)}create(){this.fade(!0,100,0),this.addEvent(100,(()=>{this.scene.start("GameScene")}))}},class extends tt{sky;background;foreground;character;credits;title;subtitle;tap;version;musicTitle;select;select2;isStarting;constructor(){super({key:"TitleScene"})}create(){this.fade(!1,200,0),this.sky=this.add.image(this.CX,this.CY,"title_sky"),this.containToScreen(this.sky),this.background=this.add.image(this.CX,.9*this.CY,"title_background"),this.containToScreen(this.background),this.foreground=this.add.image(this.CX,this.CY,"title_foreground"),this.containToScreen(this.foreground),this.character=this.add.image(this.CX,this.CY,"title_character"),this.containToScreen(this.character),this.background.setVisible(!1),this.background.setAlpha(0),this.background.y+=4e3,this.foreground.y+=1e3,this.character.y+=1e3,this.title=this.addText({x:.25*this.W,y:.7*this.H,size:160,color:"#000",text:"Game Title"}),this.title.setOrigin(.5),this.title.setStroke("#FFF",8),this.title.setPadding(2),this.title.setVisible(!1),this.title.setAlpha(0),this.subtitle=this.addText({x:.25*this.W,y:.87*this.H,size:120,color:"#000",text:"Tap to start"}),this.subtitle.setOrigin(.5),this.subtitle.setStroke("#FFF",3),this.subtitle.setPadding(2),this.subtitle.setVisible(!1),this.subtitle.setAlpha(0),this.tap=this.addText({x:this.CX,y:this.CY,size:140,color:"#000",text:"Tap to focus"}),this.tap.setOrigin(.5),this.tap.setAlpha(-1),this.tap.setStroke("#FFF",4),this.tap.setPadding(2),this.version=this.addText({x:this.W,y:this.H,size:40,color:"#000",text:Br}),this.version.setOrigin(1,1),this.version.setAlpha(-1),this.version.setStroke("#FFF",4),this.version.setPadding(2),this.credits=this.add.container(0,0),this.credits.setVisible(!1),this.credits.setAlpha(0);let t=this.addText({x:.65*this.W,y:0,size:40,color:"#c2185b",text:Yr});t.setStroke("#FFF",10),t.setPadding(2),t.setLineSpacing(0),this.credits.add(t);let e=this.addText({x:.85*this.W,y:0,size:40,color:"#c2185b",text:"\n\nrole\nrole\nrole"});e.setStroke("#FFF",10),e.setPadding(2),e.setLineSpacing(0),this.credits.add(e),this.musicTitle||(this.musicTitle=new Ur(this,"m_first",{volume:.4}),this.musicTitle.on("bar",this.onBar,this),this.musicTitle.on("beat",this.onBeat,this)),this.musicTitle.play(),this.input.keyboard?.addKey(Phaser.Input.Keyboard.KeyCodes.SPACE).on("down",this.progress,this),this.input.on("pointerdown",(t=>{0==t.button&&this.progress()}),this),this.isStarting=!1}update(t,e){this.background.visible?(this.background.y+=.02*(this.CY-this.background.y),this.foreground.y+=.025*(this.CY-this.foreground.y),this.character.y+=.02*(this.CY-this.character.y),this.background.alpha+=.03*(1-this.background.alpha),this.character.scaleX=Math.sin(3*t/1e3),this.title.alpha+=.02*((this.title.visible?1:0)-this.title.alpha),this.subtitle.alpha+=.02*((this.subtitle.visible?1:0)-this.subtitle.alpha),this.version.alpha+=.02*((this.version.visible?1:0)-this.version.alpha),this.credits.visible&&(this.credits.alpha+=.02*(1-this.credits.alpha))):(this.tap.alpha+=.01*(1-this.tap.alpha),this.musicTitle.seek>0&&(this.background.setVisible(!0),this.tap.setVisible(!1))),this.subtitle.setScale(1+.02*Math.sin(5*t/1e3)),this.isStarting&&this.subtitle.setAlpha(.6+.4*Math.sin(50*t/1e3))}progress(){this.background.visible?this.subtitle.visible?this.isStarting||(this.sound.play("t_rustle",{volume:.3}),this.isStarting=!0,this.flash(3e3,16777215,.6),this.addEvent(1e3,(()=>{this.fade(!0,1e3,0),this.addEvent(1050,(()=>{this.musicTitle.stop(),this.scene.start("GameScene")}))}))):(this.title.setVisible(!0),this.title.setAlpha(1),this.subtitle.setVisible(!0),this.subtitle.setAlpha(1)):this.onBar(1)}onBar(t){t>=2&&this.title.setVisible(!0),t>=4&&(this.subtitle.setVisible(!0),this.credits.setVisible(!0))}onBeat(t){}},class extends tt{background;board;stations;employees;customers;ui;intermission;upgradeOverlay;summaryOverlay;paused=!1;browsing=!1;inventory;shopinventory;invButton;iHandler;activeItem;tArray;shopClicker;ownerImage;shopSpeech;shopBubble;shopText;noivern=["Like I said, the prices are absolutely fair!","My old job? I used to be a turret engineer~","If you encounter a special customer, use clues to figure out their needs!","Have you heard of widgets? I might have one in stock.","It's alawys so hot in the dragonlands...","Different customers will have different preferences!","That one's popular! Why not pick up a few for your salon?","Some items can be only given to customers. Others are only equipped at stations.","Happy customers tip more! Give them things they like and tend to them quickly!","Don't forget to upgrade your stations! A well equipped salon succeeds.","My favorite items? A tasty hot dog and a box of milk! And I love the widgets too!","How's the weather been lately? I think it's lovely outside.","I saw lots of happy people by your salon! I hope it's doing well.","Buy a lot and buy often! Think of it as an investment!"];viewedShopTutorial=!1;shopTutorialText=["Hey, going to leave already? Click the left tab and drop by!","First time? Welcome to my little otter shop!","You can pick up all kinds of snacks, trinkets, and widgets here!","They might be of help for your customers and stations!","I left some notes in the descriptions too, if you need any help.","And you can hit the brown arrow to browse the other shelves!","The prices are totally fair, but make sure you have enough money!","Once you're done, you can hit the tab again to close the shop!","Oh, and it works for your inventory too during the day!","I'll look forward to your visits!"];shopTutorialFrames=[0,0,1,1,2,0,2,0,0,1];shopTutorialIndex=1;shopTutorialInitialized=!1;tutorialTimer=0;canProceed=[!1,!1,!1];dinonugget=0;shopOpenCheck=!1;shopOwnerState=-1;proceedButton;hitRectangle;cycleCount=0;effects;navmesh;state=0;level=Sn.Level1;day=0;dayDuration=6e4;timeOfDay=0;customerSpawnTimer;customerSpawnPool=[];money=500;dailyStats;savedPurchases;constructor(){super({key:"GameScene"})}create(){this.fade(!1,200,0),this.input.addPointer(2),this.input.dragDistanceThreshold=10,this.dailyStats={money:0,happyCustomers:0,angryCustomers:0},this.savedPurchases={stations:[Qr.WaitingSeatTier1,Qr.HornAndNailsTier1,Qr.ScalePolishTier1,Qr.CashRegister],employees:[Wr.RaccoonGrayTier1]},this.background=this.add.image(0,0,"grid1"),this.background.setOrigin(0),this.fitToScreen(this.background),this.board=new zr(this,this.CX,this.CY,6,4,100),this.stations=[],this.employees=[],this.customers=[],this.ui=new fn(this),this.ui.setDepth(1e3),this.ui.setTimeOfDay(1),this.ui.on("nextDay",(()=>{this.inventory.isOpen&&this.toggleInventory(),this.startDay()})),this.ui.on("nextLevel",(()=>{const t=Cn[this.level].upgradeCost??0;this.money>=t&&(this.money-=t,this.ui.setMoney(this.money),this.inventory.isOpen&&this.toggleInventory(),this.intermission.fadeToIntermission(An.NextLevelCutscene))})),this.iHandler=new wn(this),this.intermission=new _n(this),this.intermission.setDepth(1e4),this.intermission.on("close",(()=>{this.intermission.fadeToGame()})),this.intermission.on("nextLevel",(()=>{const t={[Sn.Level1]:Sn.Level2,[Sn.Level2]:Sn.Level3,[Sn.Level3]:Sn.Level1}[this.level];this.loadLevel(t),this.intermission.fadeToGame()})),this.effects=[],this.inventory=new yn(this,-650,0,[99,5,2,2,2,0,0,0,0,0,0,0,0]),this.shopinventory=new Nn(this,-650,0,[99,5,5,5,5,5,5,5,1,1,1,1,1]),this.shopinventory.setDepth(2500),this.invButton=new xn(this,64,540,"invbutton"),this.invButton.setScale(.5),this.invButton.setAlpha(.85),this.add.existing(this.invButton),this.invButton.on("click",(()=>{this.togglePanel()})),this.inventory.setDepth(800),this.invButton.setDepth(900),this.invButton.setAlpha(.75),this.activeItem=new vn(this,-500,-500,this.inventory,-1,-100,"blankspr",gn.STATION),this.upgradeOverlay=new Tn(this),this.upgradeOverlay.setDepth(1010),this.upgradeOverlay.on("upgradeStation",(t=>{this.money-=t.upgradeCost,this.ui.setMoney(this.money),t.upgrade(),this.upgradeOverlay.close(),this.updateSavedPurchases()})),this.upgradeOverlay.on("upgradeEmployee",(t=>{this.money-=t.upgradeCost,this.ui.setMoney(this.money),t.upgrade(),this.upgradeOverlay.close(),this.updateSavedPurchases()})),this.upgradeOverlay.on("close",(()=>{this.sortDepth()})),this.summaryOverlay=new bn(this),this.summaryOverlay.setDepth(1020),this.summaryOverlay.on("progress",(()=>{this.summaryOverlay.setVisible(!1)})),this.shopClicker=new Xr(this,1460,540),this.add.existing(this.shopClicker),this.ownerImage=new Phaser.GameObjects.Sprite(this,0,0,"otter"),this.ownerImage.setOrigin(.5,.5),this.shopClicker.add(this.ownerImage),this.shopClicker.bindInteractive(this.ownerImage),this.shopClicker.on("click",(()=>this.proceedShopTutorial())),this.ownerImage.input.enabled=!1,this.shopSpeech=new Phaser.GameObjects.Container(this,1010,450),this.add.existing(this.shopSpeech),this.shopBubble=new Phaser.GameObjects.Image(this,0,0,"bubble"),this.shopBubble.setScale(-3.5,2.5),this.shopBubble.setOrigin(.5,.5),this.shopSpeech.add(this.shopBubble),this.shopClicker.setDepth(1050),this.shopSpeech.setDepth(1045),this.shopText=this.addText({x:0,y:-20,size:40,color:"#000000",text:""}),this.shopText.setWordWrapWidth(380),this.shopText.setOrigin(.5,.5),this.shopSpeech.add(this.shopText),this.proceedButton=new Xr(this,960,540),this.hitRectangle=new Phaser.GameObjects.Rectangle(this,0,0,1980,1100,0),this.hitRectangle.setOrigin(.5,.5),this.hitRectangle.setAlpha(.001),this.proceedButton.add(this.hitRectangle),this.proceedButton.bindInteractive(this.hitRectangle),this.add.existing(this.proceedButton),this.proceedButton.setDepth(5e3),this.proceedButton.setVisible(!1),this.shopClicker.setVisible(!1),this.shopSpeech.setVisible(!1),this.loadLevel(Sn.Level1),this.setState(2),this.tArray=[],this.pauseInvButton()}update(t,e){if(this.viewedShopTutorial&&2!=this.shopOwnerState||this.updateShopTutorial(t,e),this.browsing||this.paused)return this.activeItem.update(t,e),void(3==this.activeItem.state&&this.snapItem());this.stations.forEach((i=>i.update(t,e))),this.employees.forEach((i=>i.update(t,e))),this.customers.forEach((i=>i.update(t,e))),this.updateEffects(t,e),this.ui.update(t,e),this.intermission.update(t,e),this.summaryOverlay.update(t,e),this.activeItem.update(t,e),3==this.activeItem.state&&this.snapItem(),this.upgradeOverlay.update(t,e),1===this.state&&this.sortDepth()}updateEffects(t,e){for(let i=this.effects.length-1;i>=0;i--){if(null==this.effects[i])return void console.log("NULL INSTANCE EFFECT");this.effects[i].update(e,t),this.effects[i].deleteFlag&&(this.effects[i].destroy(),this.effects.splice(i,1))}}setState(t){this.state=t;const e=2===t;this.ui.setShoppingMode(e);this.stations.forEach((t=>{t.setClickable(e),t.setAlpha(t.hasBeenPurchased?1:e?.2:0)})),this.employees.forEach((t=>{t.setClickable(e),t.setAlpha(t.hasBeenPurchased?1:e?.2:0)})),e&&this.day>0&&this.summaryOverlay.open(this.day,this.dailyStats)}loadLevel(t){this.level=t;const e=Cn[t];this.background.setTexture(e.background),this.board.resize(e.width,e.height,e.cellSize),this.stations.forEach((t=>t.destroy())),this.employees.forEach((t=>t.destroy())),this.customers.forEach((t=>t.destroy())),this.stations=[],this.employees=[],this.customers=[];for(let i=0;i{const e=this.stations.find((e=>!e.hasBeenPurchased&&e.stationType===$r[t].type));e&&e.forceUpgrade(t)})),this.savedPurchases.employees.forEach((t=>{const e=this.employees.find((e=>!e.hasBeenPurchased&&e.employeeType===Vr[t].type));e&&e.forceUpgrade(t)})),this.navmesh=Dn(this.board,Cn[t]),this.ui.setLevel(e),this.ui.setMoney(this.money),this.ui.setDay(this.day),this.setState(2)}startDay(){if(this.cycleCount>0){if(!this.viewedShopTutorial)return void this.beginShopTutorial(0)}else this.shopinventory.isOpen&&this.toggleShop();this.setState(1),this.day+=1,this.ui.setDay(this.day),this.dailyStats={money:0,happyCustomers:0,angryCustomers:0},this.stations.forEach((t=>t.setDepth(0))),this.employees.forEach((t=>t.setDepth(0))),this.customerSpawnTimer&&this.customerSpawnTimer.destroy(),this.updateSpawnPool(),this.tweens.add({targets:this,duration:this.dayDuration,timeOfDay:{from:0,to:100},onStart:()=>{this.attemptSpawnCustomer(),this.sound.play("endday",{volume:.2})},onUpdate:t=>{this.ui.setTimeOfDay(this.timeOfDay/100)},onComplete:()=>{this.sound.play("endday",{volume:.2})}})}endDay(){this.customerSpawnTimer.destroy(),this.resumeInvButton(),this.cycleCount++,this.setState(2)}canSpawnCustomer(t){return 1==this.state&&this.timeOfDay<100&&this.getAvailableWaitingSeat(t)}attemptSpawnCustomer(){let t=4e3;const e=Phaser.Math.RND.pick(this.customerSpawnPool);if(this.canSpawnCustomer(e)){this.addCustomer(e);let i=Math.max(2e3,6e3-400*this.day),s=i+1e4-400*this.day;t=Phaser.Math.Between(i,s),console.log(`Customer spawned. Waiting ${t} ms`)}else console.log(`Customer failed to spawn. Waiting ${t} ms`);this.customerSpawnTimer=this.time.addEvent({delay:t,callback:this.attemptSpawnCustomer,callbackScope:this})}updateSpawnPool(){this.customerSpawnPool=[],this.stations.forEach((t=>{t.hasBeenPurchased&&(t.stationTier>=1&&(this.customerSpawnPool.push(en.SmallRed),this.customerSpawnPool.push(en.SmallAqua),this.customerSpawnPool.push(en.SmallGreen)),t.stationTier>=2&&(this.customerSpawnPool.push(en.MediumRed),this.customerSpawnPool.push(en.MediumAqua),this.customerSpawnPool.push(en.MediumGreen)),t.stationTier>=3&&(this.customerSpawnPool.push(en.LargeRed),this.customerSpawnPool.push(en.LargeAqua),this.customerSpawnPool.push(en.LargeGreen)))})),console.log("Spawn pool:",this.customerSpawnPool)}updateSavedPurchases(){this.savedPurchases.stations=this.stations.filter((t=>t.hasBeenPurchased)).map((t=>t.stationId)),this.savedPurchases.employees=this.employees.filter((t=>t.hasBeenPurchased)).map((t=>t.employeeId))}addStation(t,e,i){const s=this.board.gridToCoord(t,e),r=new cn(this,s.x,s.y,i,this.board.size);this.stations.push(r),r.on("taskend",(()=>{const t=r.currentCustomer,e=t?.currentEmployee;t&&e&&(t.setAction(!1),t.setEmployee(null),t.unlockTimer(),e.setAction(!1),e.setCustomer(null),t.tasksCompleted+=1,t.moneySpent+=r.admissionFee,t.nextActivity())})),r.on("click",(()=>{2!==this.state||this.upgradeOverlay.visible||(this.upgradeOverlay.selectStation(r),this.sortDepth(),r.setDepth(2e3))}))}openInventory(){this.browsing=!0,this.pauseAllClickables(),this.tweens.pauseAll()}closeInventory(){this.browsing=!1,this.resumeAllClickables(),this.tweens.resumeAll()}addEmployee(t,e,i){const s=this.board.gridToCoord(t,e),r=new Hr(this,s.x,s.y,i,this.board.size);this.employees.push(r),r.on("walkend",(()=>{const t=r.currentCustomer;t&&t.currentStation?(t.setAction(!0),r.setAction(!0),t.currentStation.startTask()):r.setCustomer(null)})),r.on("click",(()=>{2!==this.state||this.upgradeOverlay.visible||(this.upgradeOverlay.selectEmployee(r),this.sortDepth(),r.setDepth(2e3))}))}addCustomer(t){const e=new ln(this,0,0,t,this.board.size);this.customers.push(e);const i=this.getAvailableWaitingSeat(t);i?(i.setCustomer(e),e.setStation(i),this.moveCustomerToSeat(e,i)):console.error("Whoops"),e.on("seated",(()=>{this.setCustomerItinerary(e)})),e.on("pickup",(()=>{e.currentStation})),e.on("drag",(()=>{let t=this.getClosestStation(e);t&&e.snapTo(t.x,t.y)})),e.on("drop",(()=>{let t=this.getClosestStation(e);t?(e.currentStation&&(e.currentStation.setCustomer(null),e.setStation(null)),t.setCustomer(e),e.setStation(t)):e.currentStation?e.snapTo(e.currentStation.x,e.currentStation.y):e.snapTo(e.lastX,e.lastY)})),e.on("click",(()=>{e.currentStation?.stationType==e.requestedStation&&this.callEmployee(e)})),e.on("offscreen",(()=>{this.customers=this.customers.filter((t=>t!==e)),e.destroy(),1==this.state&&this.timeOfDay>=100&&0===this.customers.length&&this.endDay()})),e.on("pay",(t=>{this.money+=t,this.dailyStats.money+=t,this.dailyStats.happyCustomers+=1,this.ui.setMoney(this.money)})),e.on("tip",(t=>{this.money+=t,this.dailyStats.money+=t,this.ui.setMoney(this.money)})),e.on("angry",(()=>{this.dailyStats.angryCustomers+=1}))}getAvailableWaitingSeat(t){return this.stations.find((t=>t.stationType===Zr.WaitingSeat&&t.hasBeenPurchased&&!t.currentCustomer))}getClosestStation(t){let e=null,i=1/0;return this.stations.forEach((s=>{const r=Phaser.Math.Distance.Between(t.dragX,t.dragY,s.x,s.y);s.hasBeenPurchased&&!s.currentCustomer&&r{const n=Phaser.Math.Distance.Between(t,e,r.x,r.y);r.hasBeenPurchased&&!r.currentCustomer&&nthis.board.navGridToCoord(t.x,t.y))),i=new Phaser.Curves.Path;i.moveTo(e.x,e.y),t.forEach((t=>i.lineTo(t.x,t.y))),e.walk(i)}else{console.error("No path found");const t=this.board.navGridToCoord(r.x,r.y);this.add.ellipse(t.x,t.y,30,30,16711680);const s=new Phaser.Curves.Path;s.moveTo(e.x,e.y),s.lineTo(i.x-this.board.size/3,i.y-this.board.size/3),e.walk(s)}}else this.sound.play("squish1",{volume:.6})}moveCustomerToSeat(t,e){const i=Cn[this.level].height-3,s=this.board.gridToCoord(0,i),r=this.board.coordToNav(s.x,s.y),n=this.board.coordToNav(e.x,e.y);t.snapTo(s.x-2*this.board.size,s.y,!0);const o=this.navmesh.findPath(r,n);if(o){const e=o.map((t=>this.board.navGridToCoord(t.x,t.y))),i=new Phaser.Curves.Path;i.moveTo(t.x,t.y),e.forEach((t=>i.lineTo(t.x,t.y))),t.walk(i)}else{const i=new Phaser.Curves.Path;i.moveTo(t.x,t.y),i.lineTo(e.x,e.y)}}moveCustomerToEntrance(t){const e=Cn[this.level].height-3,i=this.board.gridToCoord(0,e),s=this.board.coordToNav(i.x,i.y),r=this.board.coordToNav(t.x,t.y),n=this.navmesh.findPath(r,s);if(n){const e=n.map((t=>this.board.navGridToCoord(t.x,t.y))),s=new Phaser.Curves.Path;s.moveTo(t.x,t.y),e.forEach((t=>s.lineTo(t.x,t.y))),s.lineTo(-this.board.size,i.y),t.walk(s)}else{const e=new Phaser.Curves.Path;e.moveTo(t.x,t.y),e.lineTo(i.x,i.y)}}setCustomerItinerary(t){const e=t=>this.stations.some((e=>e.stationType===t&&e.hasBeenPurchased)),i=e(Zr.HornAndNails),s=e(Zr.ScalePolish),r=e(Zr.GoldBath);function n(){let t=[];return i&&Math.random()<.6&&t.push(Zr.HornAndNails),s&&Math.random()<.6&&t.push(Zr.ScalePolish),r&&Math.random()<.6&&t.push(Zr.GoldBath),t}let o=[];for(;o.length<1;)o=n();t.itinerary=o,t.requestedStation=o[0],t.nextActivity()}togglePanel(){2===this.state?this.toggleShop():this.toggleInventory()}toggleInventory(){this.inventory.toggle(),this.inventory.isOpen?(this.invButton.setPosition(714,540),this.invButton.toggleForward(),this.openInventory()):(this.invButton.setPosition(64,540),this.invButton.toggleBackward(),this.closeInventory())}toggleShop(){this.shopinventory.toggle(),this.shopinventory.isOpen?(this.invButton.setPosition(714,540),this.invButton.toggleForward(),this.openInventory(),0==this.shopTutorialInitialized&&(this.beginShopTutorial(1),this.pauseInvButton()),this.shopOpenCheck&&(this.shopOpenCheck=!1,this.pauseInvButton(),this.proceedShopTutorial())):(this.invButton.setPosition(64,540),this.invButton.toggleBackward(),this.closeInventory())}setActiveItem(t){this.activeItem.destroy(),this.activeItem=t,this.activeItem.on("itemdrop",(()=>{this.cleanUpItem()})),this.add.existing(this.activeItem)}addEffect(t){this.effects.push(t)}parseItems(t,e,i){this.iHandler.process(this.inventory.itemList[t],e,i)}snapItem(){if(this.activeItem.snap==gn.STATION){let t=this.getClosestStationToItem(this.activeItem);t&&this.activeItem.snapTo(t.x,t.y)}else if(this.activeItem.snap==gn.CUSTOMER){console.log("Snapping to Customer");let t=this.getClosestCustomerToItem(this.activeItem);t&&this.activeItem.snapTo(t.x,t.y-30)}}applyToStation(){let t=this.getClosestStationToItem(this.activeItem);t?(t.applyItem(this.activeItem.id,this.activeItem.sprname),this.sound.play("place",{volume:.4})):(this.returnItem(this.activeItem.id),this.sound.play("return",{volume:.4})),this.activeItem.destroy(),this.activeItem=new vn(this,-500,-500,this.inventory,-1,-100,"blankspr",gn.STATION)}applyToCustomer(){let t=this.getClosestCustomerToItem(this.activeItem);t?(t.applyItem(this.activeItem.id,this.activeItem.sprname),this.sound.play("place",{volume:.4})):(this.returnItem(this.activeItem.id),this.sound.play("return",{volume:.4})),this.activeItem.destroy(),this.activeItem=new vn(this,-500,-500,this.inventory,-1,-100,"blankspr",gn.STATION)}cleanUpItem(){this.activeItem.snap==gn.CUSTOMER?this.applyToCustomer():this.activeItem.snap==gn.STATION&&this.applyToStation(),this.inventory.unglassify(),this.unveilInvButton()}returnItem(t){this.inventory.returnItem(t)}buyItem(t,e){this.inventory.buyItem(t,e)}pauseInvButton(){this.invButton.spr.input.enabled=!1,this.invButton.setAlpha(.34)}resumeInvButton(){this.invButton.spr.input.enabled=!0,this.invButton.setAlpha(.85)}parseCustomerItems(t,e){this.iHandler.processCustomerItem(this.inventory.itemList[t],e),this.sound.play(this.inventory.itemList[t].sound,{volume:.4})}getClosestCustomerToItem(t){let e=null,i=1/0;return this.customers.forEach((s=>{const r=Phaser.Math.Distance.Between(t.dragX,t.dragY,s.x,s.y-30);s.itemList.length<3&&r{const r=Phaser.Math.Distance.Between(t.dragX,t.dragY,s.x,s.y);s.stationType!=Zr.CashRegister&&!s.currentCustomer&&r0&&this.pauseInvButton()}updateShopTutorial(t,e){this.dinonugget>0&&(this.dinonugget-=e,this.dinonugget<=0?(this.shopClicker.setAlpha(0),this.shopSpeech.setAlpha(0),this.shopSpeech.setVisible(!1),this.shopClicker.setVisible(!1),this.shopOwnerState=-1):(this.shopClicker.setAlpha(this.dinonugget/300),this.shopSpeech.setAlpha(this.dinonugget/300))),this.viewedShopTutorial||(this.shopTutorialInitialized?this.viewedShopTutorial||this.tutorialTimer>0&&(this.tutorialTimer-=e,this.tutorialTimer<=0?(this.shopSpeech.setAlpha(1),this.canProceed=[!0,!1,!1],this.ownerImage.input.enabled=!0):this.shopSpeech.setAlpha(1-this.tutorialTimer/300)):this.tutorialTimer>0&&(this.tutorialTimer>300?(this.tutorialTimer-=e,this.tutorialTimer<=300?this.shopClicker.setPosition(1460,540):this.shopClicker.setPosition(1460,1480+-940*(1-(this.tutorialTimer-300)/700))):this.tutorialTimer<=300&&(this.tutorialTimer-=e,this.tutorialTimer<=0&&(this.shopSpeech.setAlpha(1),this.shopTutorialInitialized=!0,this.ownerImage.input.enabled=!0,0==this.shopTutorialIndex&&(this.shopOpenCheck=!0),this.canProceed=[!0,!1,!1]),this.shopSpeech.setAlpha(1-this.tutorialTimer/300))))}proceedShopTutorial(){!this.shopOpenCheck&&this.canProceed&&(this.shopTutorialIndex++,this.shopTutorialIndext.pauseClickable())),this.customers.forEach((t=>t.pauseClickable())),this.employees.forEach((t=>t.pauseClickable()))}resumeAllClickables(){this.stations.forEach((t=>t.resumeClickable())),this.customers.forEach((t=>t.resumeClickable())),this.employees.forEach((t=>t.resumeClickable()))}getAmountOwned(t){return this.inventory.itemList[t].quant}veilInvButton(){this.invButton.setAlpha(.17)}unveilInvButton(){this.invButton.setAlpha(.85)}sortDepth(){this.stations.forEach((t=>t.setDepth(t.y/50+0))),this.employees.forEach((t=>t.setDepth(t.y/50+1))),this.customers.forEach((t=>t.setDepth(t.y/50+(t.dragged?100:1))))}refreshStationIDArray(){this.tArray=[],this.stations.forEach((t=>{t.stationType==Zr.HornAndNails?this.tArray.push(0):t.stationType==Zr.ScalePolish?this.tArray.push(1):t.stationType==Zr.GoldBath&&this.tArray.push(2)}))}}],plugins:{global:[{key:"rexOutlinePipeline",plugin:class extends to{constructor(t){super(t),this.setPostPipelineClass(jn,"rexOutlinePostFx")}add(t,e){return this.setQuality(io(e,"quality",this.quality)),super.add(t,e)}setQuality(t){return jn.setQuality(t),this}set quality(t){this.setQuality(t)}get quality(){return jn.getQuality()}},start:!0}]}};new $.Game(so); +function t(t,e){for(var i=0;is[e]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}!function(){const t=document.createElement("link").relList;if(!(t&&t.supports&&t.supports("modulepreload"))){for(const t of document.querySelectorAll('link[rel="modulepreload"]'))e(t);new MutationObserver((t=>{for(const i of t)if("childList"===i.type)for(const t of i.addedNodes)"LINK"===t.tagName&&"modulepreload"===t.rel&&e(t)})).observe(document,{childList:!0,subtree:!0})}function e(t){if(t.ep)return;t.ep=!0;const e=function(t){const e={};return t.integrity&&(e.integrity=t.integrity),t.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),"use-credentials"===t.crossOrigin?e.credentials="include":"anonymous"===t.crossOrigin?e.credentials="omit":e.credentials="same-origin",e}(t);fetch(t.href,e)}}();"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var i,s,r,n,o,a,h,l,u,c,d,p,f,g={};function m(t,e,i,s){return new(i||(i=Promise))((function(e,r){function n(t){try{a(s.next(t))}catch(e){r(e)}}function o(t){try{a(s.throw(t))}catch(e){r(e)}}function a(t){var s;t.done?e(t.value):(s=t.value,s instanceof i?s:new i((function(t){t(s)}))).then(n,o)}a((s=s.apply(t,[])).next())}))}function v(){return _("extensions.getStats")}"function"==typeof SuppressedError&&SuppressedError;var y=Object.freeze({__proto__:null,broadcast:function(t,e){return _("extensions.broadcast",{event:t,data:e})},dispatch:function(t,e,i){return new Promise(((s,r)=>m(this,0,void 0,(function*(){const n=yield v();if(n.loaded.includes(t))if(n.connected.includes(t))try{const r=yield _("extensions.dispatch",{extensionId:t,event:e,data:i});s(r)}catch(o){r(o)}else a={method:"extensions.dispatch",data:{extensionId:t,event:e,data:i},resolve:s,reject:r},(o=t)in A?A[o].push(a):A[o]=[a];else r({code:"NE_EX_EXTNOTL",message:`${t} is not loaded`});var o,a}))))},getStats:v});function x(t,e){return window.addEventListener(t,e),Promise.resolve({success:!0,message:"Event listener added"})}function w(t,e){const i=new CustomEvent(t,{detail:e});return window.dispatchEvent(i),Promise.resolve({success:!0,message:"Message dispatched"})}function T(t){const e=window.atob(t),i=e.length,s=new Uint8Array(i);for(let r=0;r{if((null==S?void 0:S.readyState)!=WebSocket.OPEN)return r={method:t,data:e,resolve:i,reject:s},void C.push(r);var r;const n="10000000-1000-4000-8000-100000000000".replace(/[018]/g,(t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))),o=R();E[n]={resolve:i,reject:s},S.send(JSON.stringify({id:n,method:t,data:e,accessToken:o}))}))}function P(t){return m(this,0,void 0,(function*(){for(;t.length>0;){const i=t.shift();try{const t=yield _(i.method,i.data);i.resolve(t)}catch(e){i.reject(e)}}}))}function R(){return window.NL_TOKEN||sessionStorage.getItem("NL_TOKEN")||""}function M(t,e){return _("filesystem.writeBinaryFile",{path:t,data:b(e)})}var k=Object.freeze({__proto__:null,appendBinaryFile:function(t,e){return _("filesystem.appendBinaryFile",{path:t,data:b(e)})},appendFile:function(t,e){return _("filesystem.appendFile",{path:t,data:e})},copy:function(t,e,i){return _("filesystem.copy",Object.assign({source:t,destination:e},i))},createDirectory:function(t){return _("filesystem.createDirectory",{path:t})},createWatcher:function(t){return _("filesystem.createWatcher",{path:t})},getAbsolutePath:function(t){return _("filesystem.getAbsolutePath",{path:t})},getOpenedFileInfo:function(t){return _("filesystem.getOpenedFileInfo",{id:t})},getPathParts:function(t){return _("filesystem.getPathParts",{path:t})},getRelativePath:function(t,e){return _("filesystem.getRelativePath",{path:t,base:e})},getStats:function(t){return _("filesystem.getStats",{path:t})},getWatchers:function(){return _("filesystem.getWatchers")},move:function(t,e){return _("filesystem.move",{source:t,destination:e})},openFile:function(t){return _("filesystem.openFile",{path:t})},readBinaryFile:function(t,e){return new Promise(((i,s)=>{_("filesystem.readBinaryFile",Object.assign({path:t},e)).then((t=>{i(T(t))})).catch((t=>{s(t)}))}))},readDirectory:function(t,e){return _("filesystem.readDirectory",Object.assign({path:t},e))},readFile:function(t,e){return _("filesystem.readFile",Object.assign({path:t},e))},remove:function(t){return _("filesystem.remove",{path:t})},removeWatcher:function(t){return _("filesystem.removeWatcher",{id:t})},updateOpenedFile:function(t,e,i){return _("filesystem.updateOpenedFile",{id:t,event:e,data:i})},writeBinaryFile:M,writeFile:function(t,e){return _("filesystem.writeFile",{path:t,data:e})}});function L(t,e){return _("os.execCommand",Object.assign({command:t},e))}var O=Object.freeze({__proto__:null,execCommand:L,getEnv:function(t){return _("os.getEnv",{key:t})},getEnvs:function(){return _("os.getEnvs")},getPath:function(t){return _("os.getPath",{name:t})},getSpawnedProcesses:function(){return _("os.getSpawnedProcesses")},open:function(t){return _("os.open",{url:t})},setTray:function(t){return _("os.setTray",t)},showFolderDialog:function(t,e){return _("os.showFolderDialog",Object.assign({title:t},e))},showMessageBox:function(t,e,i,s){return _("os.showMessageBox",{title:t,content:e,choice:i,icon:s})},showNotification:function(t,e,i){return _("os.showNotification",{title:t,content:e,icon:i})},showOpenDialog:function(t,e){return _("os.showOpenDialog",Object.assign({title:t},e))},showSaveDialog:function(t,e){return _("os.showSaveDialog",Object.assign({title:t},e))},spawnProcess:function(t,e){return _("os.spawnProcess",{command:t,cwd:e})},updateSpawnedProcess:function(t,e,i){return _("os.updateSpawnedProcess",{id:t,event:e,data:i})}}),F=Object.freeze({__proto__:null,getArch:function(){return _("computer.getArch")},getCPUInfo:function(){return _("computer.getCPUInfo")},getDisplays:function(){return _("computer.getDisplays")},getKernelInfo:function(){return _("computer.getKernelInfo")},getMemoryInfo:function(){return _("computer.getMemoryInfo")},getMousePosition:function(){return _("computer.getMousePosition")},getOSInfo:function(){return _("computer.getOSInfo")}}),D=Object.freeze({__proto__:null,getData:function(t){return _("storage.getData",{key:t})},getKeys:function(){return _("storage.getKeys")},setData:function(t,e){return _("storage.setData",{key:t,data:e})}});function I(t,e){return _("debug.log",{message:t,type:e})}var B=Object.freeze({__proto__:null,log:I});function N(t){return _("app.exit",{code:t})}var U=Object.freeze({__proto__:null,broadcast:function(t,e){return _("app.broadcast",{event:t,data:e})},exit:N,getConfig:function(){return _("app.getConfig")},killProcess:function(){return _("app.killProcess")},readProcessInput:function(t){return _("app.readProcessInput",{readAll:t})},restartProcess:function(t){return new Promise((e=>m(this,0,void 0,(function*(){let i=window.NL_ARGS.reduce(((t,e)=>(e.includes(" ")&&(e=`"${e}"`),t+" "+e)),"");(null==t?void 0:t.args)&&(i+=" "+t.args),yield L(i,{background:!0}),N(),e()}))))},writeProcessError:function(t){return _("app.writeProcessError",{data:t})},writeProcessOutput:function(t){return _("app.writeProcessOutput",{data:t})}});const Y=new WeakMap;function z(t,e){return _("window.move",{x:t,y:e})}function X(){return _("window.getSize")}var G=Object.freeze({__proto__:null,center:function(){return _("window.center")},create:function(t,e){return new Promise(((i,s)=>{function r(t){return"string"!=typeof t||(t=t.trim()).includes(" ")&&(t=`"${t}"`),t}e=Object.assign(Object.assign({},e),{useSavedState:!1});let n=window.NL_ARGS.reduce(((t,e,i)=>((e.includes("--path=")||e.includes("--debug-mode")||e.includes("--load-dir-res")||0==i)&&(t+=" "+r(e)),t)),"");n+=" --url="+r(t);for(let t in e)"processArgs"!=t&&(n+=` --window${"-"+t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}=${r(e[t])}`);e&&e.processArgs&&(n+=" "+e.processArgs),L(n,{background:!0}).then((t=>{i(t)})).catch((t=>{s(t)}))}))},exitFullScreen:function(){return _("window.exitFullScreen")},focus:function(){return _("window.focus")},getPosition:function(){return _("window.getPosition")},getSize:X,getTitle:function(){return _("window.getTitle")},hide:function(){return _("window.hide")},isFullScreen:function(){return _("window.isFullScreen")},isMaximized:function(){return _("window.isMaximized")},isVisible:function(){return _("window.isVisible")},maximize:function(){return _("window.maximize")},minimize:function(){return _("window.minimize")},move:z,setAlwaysOnTop:function(t){return _("window.setAlwaysOnTop",{onTop:t})},setDraggableRegion:function(t){return new Promise(((e,i)=>{const s=t instanceof Element?t:document.getElementById(t);let r=0,n=0,o=0,a=!1,h=performance.now();if(!s)return i({code:"NE_WD_DOMNOTF",message:"Unable to find DOM element"});if(Y.has(s))return i({code:"NE_WD_ALRDREL",message:"This DOM element is already an active draggable region"});function l(t){return m(this,0,void 0,(function*(){if(a){const e=performance.now(),i=e-h;if(i<5)return;return h=e-(i-5),void(yield z(t.screenX-r,t.screenY-n))}o=Math.sqrt(t.movementX*t.movementX+t.movementY*t.movementY),o>=10&&(a=!0,s.setPointerCapture(t.pointerId))}))}function u(t){0===t.button&&(r=t.clientX,n=t.clientY,s.addEventListener("pointermove",l))}function c(t){s.removeEventListener("pointermove",l),s.releasePointerCapture(t.pointerId)}s.addEventListener("pointerdown",u),s.addEventListener("pointerup",c),Y.set(s,{pointerdown:u,pointerup:c}),e({success:!0,message:"Draggable region was activated"})}))},setFullScreen:function(){return _("window.setFullScreen")},setIcon:function(t){return _("window.setIcon",{icon:t})},setSize:function(t){return new Promise(((e,i)=>m(this,0,void 0,(function*(){let s=yield X();_("window.setSize",t=Object.assign(Object.assign({},s),t)).then((t=>{e(t)})).catch((t=>{i(t)}))}))))},setTitle:function(t){return _("window.setTitle",{title:t})},show:function(){return _("window.show")},unmaximize:function(){return _("window.unmaximize")},unsetDraggableRegion:function(t){return new Promise(((e,i)=>{const s=t instanceof Element?t:document.getElementById(t);if(!s)return i({code:"NE_WD_DOMNOTF",message:"Unable to find DOM element"});if(!Y.has(s))return i({code:"NE_WD_NOTDRRE",message:"DOM element is not an active draggable region"});const{pointerdown:r,pointerup:n}=Y.get(s);s.removeEventListener("pointerdown",r),s.removeEventListener("pointerup",n),Y.delete(s),e({success:!0,message:"Draggable region was deactivated"})}))}}),W=Object.freeze({__proto__:null,broadcast:function(t,e){return _("events.broadcast",{event:t,data:e})},dispatch:w,off:function(t,e){return window.removeEventListener(t,e),Promise.resolve({success:!0,message:"Event listener removed"})},on:x});let V=null;var H=Object.freeze({__proto__:null,checkForUpdates:function(t){return new Promise(((e,i)=>m(this,0,void 0,(function*(){if(!t)return i({code:"NE_RT_NATRTER",message:"Missing require parameter: url"});try{const r=yield fetch(t);V=JSON.parse(yield r.text()),(s=V).applicationId&&s.applicationId==window.NL_APPID&&s.version&&s.resourcesURL?e(V):i({code:"NE_UP_CUPDMER",message:"Invalid update manifest or mismatching applicationId"})}catch(r){i({code:"NE_UP_CUPDERR",message:"Unable to fetch update manifest"})}var s}))))},install:function(){return new Promise(((t,e)=>m(this,0,void 0,(function*(){if(!V)return e({code:"NE_UP_UPDNOUF",message:"No update manifest loaded"});try{const e=yield fetch(V.resourcesURL),i=yield e.arrayBuffer();yield M(window.NL_PATH+"/resources.neu",i),t({success:!0,message:"Update installed. Restart the process to see updates"})}catch(i){e({code:"NE_UP_UPDINER",message:"Update installation error"})}}))))}}),j=Object.freeze({__proto__:null,clear:function(){return _("clipboard.clear")},getFormat:function(){return _("clipboard.getFormat")},readImage:function(){return new Promise(((t,e)=>{_("clipboard.readImage").then((e=>{e&&(e.data=T(e.data)),t(e)})).catch((t=>{e(t)}))}))},readText:function(){return _("clipboard.readText")},writeImage:function(t){const e=Object.assign({},t);return(null==t?void 0:t.data)&&(e.data=b(t.data)),_("clipboard.writeImage",e)},writeText:function(t){return _("clipboard.writeText",{data:t})}}),q=Object.freeze({__proto__:null,getMethods:function(){return _("custom.getMethods")}});let K=!1;f=g.app=U,p=g.clipboard=j,d=g.computer=F,c=g.custom=q,u=g.debug=B,l=g.events=W,h=g.extensions=y,a=g.filesystem=k,o=g.init=function(t={}){if(t=Object.assign({exportCustomMethods:!0},t),!K){if(function(){window.NL_TOKEN&&sessionStorage.setItem("NL_TOKEN",window.NL_TOKEN);const t=R().split(".")[1];S=new WebSocket(`ws://${window.location.hostname}:${window.NL_PORT}?connectToken=${t}`),function(){x("ready",(()=>m(this,0,void 0,(function*(){if(yield P(C),!window.NL_EXTENABLED)return;const t=yield v();for(const e of t.connected)w("extensionReady",e)})))),x("extClientConnect",(t=>{w("extensionReady",t.detail)})),window.NL_EXTENABLED&&x("extensionReady",(t=>m(this,0,void 0,(function*(){t.detail in A&&(yield P(A[t.detail]),delete A[t.detail])}))))}(),function(){S.addEventListener("message",(t=>{var e,i,s;const r=JSON.parse(t.data);r.id&&r.id in E?((null===(e=r.data)||void 0===e?void 0:e.error)?(E[r.id].reject(r.data.error),"NE_RT_INVTOKN"==r.data.error.code&&(S.close(),document.body.innerText="",document.write("NE_RT_INVTOKN: Neutralinojs application cannot execute native methods since NL_TOKEN is invalid."))):(null===(i=r.data)||void 0===i?void 0:i.success)&&E[r.id].resolve(r.data.hasOwnProperty("returnValue")?r.data.returnValue:r.data),delete E[r.id]):r.event&&("openedFile"==r.event&&"dataBinary"==(null===(s=null==r?void 0:r.data)||void 0===s?void 0:s.action)&&(r.data.data=T(r.data.data)),w(r.event,r.data))})),S.addEventListener("open",(t=>m(this,0,void 0,(function*(){w("ready")})))),S.addEventListener("close",(t=>m(this,0,void 0,(function*(){w("serverOffline",{code:"NE_CL_NSEROFF",message:"Neutralino server is offline. Try restarting the application"})})))),S.addEventListener("error",(t=>m(this,0,void 0,(function*(){document.body.innerText="",document.write("NE_CL_IVCTOKN: Neutralinojs application cannot connect with the framework core using NL_TOKEN.")}))))}()}(),window.NL_ARGS.find((t=>"--neu-dev-auto-reload"==t))&&x("neuDev_reloadApp",(()=>m(this,0,void 0,(function*(){yield I("Reloading the application..."),location.reload()})))),t.exportCustomMethods&&window.NL_CMETHODS&&window.NL_CMETHODS.length>0)for(const t of window.NL_CMETHODS)Neutralino.custom[t]=(...e)=>{let i={};for(const[t,s]of e.entries())i="object"!=typeof s||Array.isArray(s)||null==s?Object.assign(Object.assign({},i),{["arg"+t]:s}):Object.assign(Object.assign({},i),s);return _("custom."+t,i)};window.NL_CVERSION="5.3.0",window.NL_CCOMMIT="425c526c318342e0e5d0f17caceef2a53049eda4",K=!0}},n=g.os=O,r=g.storage=D,s=g.updater=H,i=g.window=G;const Z=t({__proto__:null,get app(){return f},get clipboard(){return p},get computer(){return d},get custom(){return c},get debug(){return u},default:g,get events(){return l},get extensions(){return h},get filesystem(){return a},get init(){return o},get os(){return n},get storage(){return r},get updater(){return s},get window(){return i}},[g]);var J;window.NL_TOKEN&&(o(),(J=Z).window.center(),J.events.on("windowClose",(()=>{J.app.exit()})));var Q={exports:{}};const $=e(Q.exports=(()=>(()=>{var t={50792:t=>{var e=Object.prototype.hasOwnProperty,i="~";function s(){}function r(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function n(t,e,s,n,o){if("function"!=typeof s)throw new TypeError("The listener must be a function");var a=new r(s,n||t,o),h=i?i+e:e;return t._events[h]?t._events[h].fn?t._events[h]=[t._events[h],a]:t._events[h].push(a):(t._events[h]=a,t._eventsCount++),t}function o(t,e){0==--t._eventsCount?t._events=new s:delete t._events[e]}function a(){this._events=new s,this._eventsCount=0}Object.create&&(s.prototype=Object.create(null),(new s).__proto__||(i=!1)),a.prototype.eventNames=function(){var t,s,r=[];if(0===this._eventsCount)return r;for(s in t=this._events)e.call(t,s)&&r.push(i?s.slice(1):s);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},a.prototype.listeners=function(t){var e=i?i+t:t,s=this._events[e];if(!s)return[];if(s.fn)return[s.fn];for(var r=0,n=s.length,o=new Array(n);r{var s=i(38829);t.exports=function(t,e,i,r){for(var n=t[0],o=1;o{var s=i(66979);t.exports=function(t,e,i,r,n){return s(t,"angle",e,i,r,n)}},60757:t=>{t.exports=function(t,e,i){for(var s=0;s{t.exports=function(t,e,i){void 0===i&&(i=0);for(var s=i;s{t.exports=function(t,e,i){void 0===i&&(i=0);for(var s=t.length-1;s>=i;s--){var r=t[s],n=!0;for(var o in e)r[o]!==e[o]&&(n=!1);if(n)return r}return null}},94420:(t,e,i)=>{var s=i(11879),r=i(60461),n=i(95540),o=i(29747),a=new(i(41481))({sys:{queueDepthSort:o,events:{once:o}}},0,0,1,1).setOrigin(0,0);t.exports=function(t,e){void 0===e&&(e={});var i=e.hasOwnProperty("width"),o=e.hasOwnProperty("height"),h=n(e,"width",-1),l=n(e,"height",-1),u=n(e,"cellWidth",1),c=n(e,"cellHeight",u),d=n(e,"position",r.TOP_LEFT),p=n(e,"x",0),f=n(e,"y",0),g=0,m=0,v=h*u,y=l*c;a.setPosition(p,f),a.setSize(u,c);for(var x=0;x{var s=i(66979);t.exports=function(t,e,i,r,n){return s(t,"alpha",e,i,r,n)}},67285:(t,e,i)=>{var s=i(66979);t.exports=function(t,e,i,r,n){return s(t,"x",e,i,r,n)}},9074:(t,e,i)=>{var s=i(66979);t.exports=function(t,e,i,r,n,o,a){return null==i&&(i=e),s(t,"x",e,r,o,a),s(t,"y",i,n,o,a)}},75222:(t,e,i)=>{var s=i(66979);t.exports=function(t,e,i,r,n){return s(t,"y",e,i,r,n)}},22983:t=>{t.exports=function(t,e,i,s){void 0===i&&(i=0),void 0===s&&(s=6.28);for(var r=i,n=(s-i)/t.length,o=e.x,a=e.y,h=e.radius,l=0;l{t.exports=function(t,e,i,s){void 0===i&&(i=0),void 0===s&&(s=6.28);for(var r=i,n=(s-i)/t.length,o=e.width/2,a=e.height/2,h=0;h{var s=i(15258),r=i(26708);t.exports=function(t,e,i){var n;n=i?r(e,i,t.length):s(e,t.length);for(var o=0;o{var s=i(14649),r=i(86003),n=i(49498);t.exports=function(t,e,i){void 0===i&&(i=0);var o=s(e,!1,t.length);i>0?r(o,i):i<0&&n(o,Math.abs(i));for(var a=0;a{var s=i(84993);t.exports=function(t,e,i){var r=s({x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2},i),n=s({x1:e.x2,y1:e.y2,x2:e.x3,y2:e.y3},i),o=s({x1:e.x3,y1:e.y3,x2:e.x1,y2:e.y1},i);r.pop(),n.pop(),o.pop();for(var a=(r=r.concat(n,o)).length/t.length,h=0,l=0;l{t.exports=function(t,e,i){for(var s=0;s{t.exports=function(t,e,i,s,r,n){var o;void 0===s&&(s=0),void 0===r&&(r=0),void 0===n&&(n=1);var a=0,h=t.length;if(1===n)for(o=r;o=0;o--)t[o][e]+=i+a*s,a++;return t}},43967:t=>{t.exports=function(t,e,i,s,r,n){var o;void 0===s&&(s=0),void 0===r&&(r=0),void 0===n&&(n=1);var a=0,h=t.length;if(1===n)for(o=r;o=0;o--)t[o][e]=i+a*s,a++;return t}},88926:(t,e,i)=>{var s=i(28176);t.exports=function(t,e){for(var i=0;i{var s=i(24820);t.exports=function(t,e){for(var i=0;i{var s=i(65822);t.exports=function(t,e){for(var i=0;i{var s=i(26597);t.exports=function(t,e){for(var i=0;i{var s=i(90260);t.exports=function(t,e){for(var i=0;i{var s=i(66979);t.exports=function(t,e,i,r,n){return s(t,"rotation",e,i,r,n)}},91051:(t,e,i)=>{var s=i(1163),r=i(20339);t.exports=function(t,e,i){for(var n=e.x,o=e.y,a=0;a{var s=i(1163);t.exports=function(t,e,i,r){var n=e.x,o=e.y;if(0===r)return t;for(var a=0;a{var s=i(66979);t.exports=function(t,e,i,r,n){return s(t,"scaleX",e,i,r,n)}},94868:(t,e,i)=>{var s=i(66979);t.exports=function(t,e,i,r,n,o,a){return null==i&&(i=e),s(t,"scaleX",e,r,o,a),s(t,"scaleY",i,n,o,a)}},95532:(t,e,i)=>{var s=i(66979);t.exports=function(t,e,i,r,n){return s(t,"scaleY",e,i,r,n)}},8689:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n){return s(t,"alpha",e,i,r,n)}},2645:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r){return s(t,"blendMode",e,0,i,r)}},32372:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n){return s(t,"depth",e,i,r,n)}},85373:t=>{t.exports=function(t,e,i){for(var s=0;s{var s=i(43967);t.exports=function(t,e,i,r,n,o,a){return null==i&&(i=e),s(t,"originX",e,r,o,a),s(t,"originY",i,n,o,a),t.forEach((function(t){t.updateDisplayOrigin()})),t}},79939:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n){return s(t,"rotation",e,i,r,n)}},2699:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n,o,a){return null==i&&(i=e),s(t,"scaleX",e,r,o,a),s(t,"scaleY",i,n,o,a)}},98739:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n){return s(t,"scaleX",e,i,r,n)}},98476:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n){return s(t,"scaleY",e,i,r,n)}},6207:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n,o,a){return null==i&&(i=e),s(t,"scrollFactorX",e,r,o,a),s(t,"scrollFactorY",i,n,o,a)}},6607:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n){return s(t,"scrollFactorX",e,i,r,n)}},72248:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n){return s(t,"scrollFactorY",e,i,r,n)}},14036:t=>{t.exports=function(t,e,i,s,r){for(var n=0;n{var s=i(43967);t.exports=function(t,e,i,r){return s(t,"visible",e,0,i,r)}},77597:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n){return s(t,"x",e,i,r,n)}},83194:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n,o,a){return null==i&&(i=e),s(t,"x",e,r,o,a),s(t,"y",i,n,o,a)}},67678:(t,e,i)=>{var s=i(43967);t.exports=function(t,e,i,r,n){return s(t,"y",e,i,r,n)}},35850:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r,n){var o,a;void 0===r&&(r=0),void 0===n&&(n=new s);var h=t.length;if(1===h)o=t[0].x,a=t[0].y,t[0].x=e,t[0].y=i;else{var l=1,u=0;0===r&&(u=h-1,l=h-2),o=t[u].x,a=t[u].y,t[u].x=e,t[u].y=i;for(var c=0;c=h||-1===l)){var d=t[l],p=d.x,f=d.y;d.x=o,d.y=a,o=p,a=f,0===r?l--:l++}}return n.x=o,n.y=a,n}},8628:(t,e,i)=>{var s=i(33680);t.exports=function(t){return s(t)}},21837:(t,e,i)=>{var s=i(7602);t.exports=function(t,e,i,r,n){void 0===n&&(n=!1);var o,a=Math.abs(r-i)/t.length;if(n)for(o=0;o{var s=i(54261);t.exports=function(t,e,i,r,n){void 0===n&&(n=!1);var o,a=Math.abs(r-i)/t.length;if(n)for(o=0;o{t.exports=function(t,e,i,s,r){if(void 0===r&&(r=!1),0===t.length)return t;if(1===t.length)return r?t[0][e]+=(s+i)/2:t[0][e]=(s+i)/2,t;var n,o=Math.abs(s-i)/(t.length-1);if(r)for(n=0;n{t.exports=function(t){for(var e=0;e{var s=i(15994);t.exports=function(t,e,i){void 0===i&&(i=0);for(var r=0;r{t.exports={AlignTo:i(11517),Angle:i(80318),Call:i(60757),GetFirst:i(69927),GetLast:i(32265),GridAlign:i(94420),IncAlpha:i(41721),IncX:i(67285),IncXY:i(9074),IncY:i(75222),PlaceOnCircle:i(22983),PlaceOnEllipse:i(95253),PlaceOnLine:i(88505),PlaceOnRectangle:i(41346),PlaceOnTriangle:i(11575),PlayAnimation:i(29953),PropertyValueInc:i(66979),PropertyValueSet:i(43967),RandomCircle:i(88926),RandomEllipse:i(33286),RandomLine:i(96e3),RandomRectangle:i(28789),RandomTriangle:i(97154),Rotate:i(20510),RotateAround:i(91051),RotateAroundDistance:i(76332),ScaleX:i(61619),ScaleXY:i(94868),ScaleY:i(95532),SetAlpha:i(8689),SetBlendMode:i(2645),SetDepth:i(32372),SetHitArea:i(85373),SetOrigin:i(81583),SetRotation:i(79939),SetScale:i(2699),SetScaleX:i(98739),SetScaleY:i(98476),SetScrollFactor:i(6207),SetScrollFactorX:i(6607),SetScrollFactorY:i(72248),SetTint:i(14036),SetVisible:i(50159),SetX:i(77597),SetXY:i(83194),SetY:i(67678),ShiftPosition:i(35850),Shuffle:i(8628),SmootherStep:i(21910),SmoothStep:i(21837),Spread:i(62054),ToggleVisible:i(79815),WrapInRectangle:i(39665)}},42099:(t,e,i)=>{var s=i(45319),r=i(83419),n=i(74943),o=i(81957),a=i(41138),h=i(35154),l=i(90126),u=new r({initialize:function(t,e,i){this.manager=t,this.key=e,this.type="frame",this.frames=this.getFrames(t.textureManager,h(i,"frames",[]),h(i,"defaultTextureKey",null),h(i,"sortFrames",!0)),this.frameRate=h(i,"frameRate",null),this.duration=h(i,"duration",null),this.msPerFrame,this.skipMissedFrames=h(i,"skipMissedFrames",!0),this.delay=h(i,"delay",0),this.repeat=h(i,"repeat",0),this.repeatDelay=h(i,"repeatDelay",0),this.yoyo=h(i,"yoyo",!1),this.showBeforeDelay=h(i,"showBeforeDelay",!1),this.showOnStart=h(i,"showOnStart",!1),this.hideOnComplete=h(i,"hideOnComplete",!1),this.randomFrame=h(i,"randomFrame",!1),this.paused=!1,this.calculateDuration(this,this.getTotalFrames(),this.duration,this.frameRate),this.manager.on&&(this.manager.on(n.PAUSE_ALL,this.pause,this),this.manager.on(n.RESUME_ALL,this.resume,this))},getTotalFrames:function(){return this.frames.length},calculateDuration:function(t,e,i,s){null===i&&null===s?(t.frameRate=24,t.duration=24/e*1e3):i&&null===s?(t.duration=i,t.frameRate=e/(i/1e3)):(t.frameRate=s,t.duration=e/s*1e3),t.msPerFrame=1e3/t.frameRate},addFrame:function(t){return this.addFrameAt(this.frames.length,t)},addFrameAt:function(t,e){var i=this.getFrames(this.manager.textureManager,e);if(i.length>0){if(0===t)this.frames=i.concat(this.frames);else if(t===this.frames.length)this.frames=this.frames.concat(i);else{var s=this.frames.slice(0,t),r=this.frames.slice(t);this.frames=s.concat(i,r)}this.updateFrameSequence()}return this},checkFrame:function(t){return t>=0&&t0){n.isLast=!0,n.nextFrame=c[0],c[0].prevFrame=n;var y=1/(c.length-1);for(o=0;o0?t.inReverse&&t.forward?t.forward=!1:this.repeatAnimation(t):t.complete():this.updateAndGetNextTick(t,e.nextFrame)},handleYoyoFrame:function(t,e){if(e||(e=!1),t.inReverse===!e&&t.repeatCounter>0)return(0===t.repeatDelay||t.pendingRepeat)&&(t.forward=e),void this.repeatAnimation(t);if(t.inReverse===e||0!==t.repeatCounter){t.forward=e;var i=e?t.currentFrame.nextFrame:t.currentFrame.prevFrame;this.updateAndGetNextTick(t,i)}else t.complete()},getLastFrame:function(){return this.frames[this.frames.length-1]},previousFrame:function(t){var e=t.currentFrame;e.isFirst?t.yoyo?this.handleYoyoFrame(t,!0):t.repeatCounter>0?(t.inReverse&&!t.forward||(t.forward=!0),this.repeatAnimation(t)):t.complete():this.updateAndGetNextTick(t,e.prevFrame)},updateAndGetNextTick:function(t,e){t.setCurrentFrame(e),this.getNextTick(t)},removeFrame:function(t){var e=this.frames.indexOf(t);return-1!==e&&this.removeFrameAt(e),this},removeFrameAt:function(t){return this.frames.splice(t,1),this.updateFrameSequence(),this},repeatAnimation:function(t){if(2===t._pendingStop){if(0===t._pendingStopValue)return t.stop();t._pendingStopValue--}t.repeatDelay>0&&!t.pendingRepeat?(t.pendingRepeat=!0,t.accumulator-=t.nextTick,t.nextTick+=t.repeatDelay):(t.repeatCounter--,t.forward?t.setCurrentFrame(t.currentFrame.nextFrame):t.setCurrentFrame(t.currentFrame.prevFrame),t.isPlaying&&(this.getNextTick(t),t.handleRepeat()))},toJSON:function(){var t={key:this.key,type:this.type,frames:[],frameRate:this.frameRate,duration:this.duration,skipMissedFrames:this.skipMissedFrames,delay:this.delay,repeat:this.repeat,repeatDelay:this.repeatDelay,yoyo:this.yoyo,showBeforeDelay:this.showBeforeDelay,showOnStart:this.showOnStart,randomFrame:this.randomFrame,hideOnComplete:this.hideOnComplete};return this.frames.forEach((function(e){t.frames.push(e.toJSON())})),t},updateFrameSequence:function(){for(var t,e=this.frames.length,i=1/(e-1),s=0;s1?(t.isLast=!0,t.prevFrame=this.frames[e-2],t.nextFrame=this.frames[0]):e>1&&(t.prevFrame=this.frames[s-1],t.nextFrame=this.frames[s+1]);return this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},destroy:function(){this.manager.off&&(this.manager.off(n.PAUSE_ALL,this.pause,this),this.manager.off(n.RESUME_ALL,this.resume,this)),this.manager.remove(this.key);for(var t=0;t{var s=new(i(83419))({initialize:function(t,e,i,s,r){void 0===r&&(r=!1),this.textureKey=t,this.textureFrame=e,this.index=i,this.frame=s,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0,this.isKeyFrame=r},toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration,keyframe:this.isKeyFrame}},destroy:function(){this.frame=void 0}});t.exports=s},60848:(t,e,i)=>{var s=i(42099),r=i(83419),n=i(90330),o=i(50792),a=i(74943),h=i(8443),l=i(95540),u=i(35154),c=i(36383),d=i(20283),p=i(41836),f=new r({Extends:o,initialize:function(t){o.call(this),this.game=t,this.textureManager=null,this.globalTimeScale=1,this.anims=new n,this.mixes=new n,this.paused=!1,this.name="AnimationManager",t.events.once(h.BOOT,this.boot,this)},boot:function(){this.textureManager=this.game.textures,this.game.events.once(h.DESTROY,this.destroy,this)},addMix:function(t,e,i){var s=this.anims,r=this.mixes,n="string"==typeof t?t:t.key,o="string"==typeof e?e:e.key;if(s.has(n)&&s.has(o)){var a=r.get(n);a||(a={}),a[o]=i,r.set(n,a)}return this},removeMix:function(t,e){var i=this.mixes,s="string"==typeof t?t:t.key,r=i.get(s);if(r)if(e){var n="string"==typeof e?e:e.key;r.hasOwnProperty(n)&&delete r[n]}else e||i.delete(s);return this},getMix:function(t,e){var i=this.mixes,s="string"==typeof t?t:t.key,r="string"==typeof e?e:e.key,n=i.get(s);return n&&n.hasOwnProperty(r)?n[r]:0},add:function(t,e){return this.anims.has(t)?(console.warn("Animation key exists: "+t),this):(e.key=t,this.anims.set(t,e),this.emit(a.ADD_ANIMATION,t,e),this)},exists:function(t){return this.anims.has(t)},createFromAseprite:function(t,e,i){var s=[],r=this.game.cache.json.get(t);if(!r)return console.warn("No Aseprite data found for: "+t),s;var n=this,o=u(r,"meta",null),a=u(r,"frames",null);return o&&a&&u(o,"frameTags",[]).forEach((function(r){var o=[],h=l(r,"name",null),u=l(r,"from",0),d=l(r,"to",0),p=l(r,"direction","forward");if(h&&(!e||e&&e.indexOf(h)>-1)){for(var f=0,g=u;g<=d;g++){var m=g.toString(),v=a[m];if(v){var y=l(v,"duration",c.MAX_SAFE_INTEGER);o.push({key:t,frame:m,duration:y}),f+=y}}"reverse"===p&&(o=o.reverse());var x,w={key:h,frames:o,duration:f,yoyo:"pingpong"===p};i?i.anims&&(x=i.anims.create(w)):x=n.create(w),x&&s.push(x)}})),s},create:function(t){var e=t.key,i=!1;return e&&((i=this.get(e))?console.warn("AnimationManager key already exists: "+e):(i=new s(this,e,t),this.anims.set(e,i),this.emit(a.ADD_ANIMATION,e,i))),i},fromJSON:function(t,e){void 0===e&&(e=!1),e&&this.anims.clear(),"string"==typeof t&&(t=JSON.parse(t));var i=[];if(t.hasOwnProperty("anims")&&Array.isArray(t.anims)){for(var s=0;s{var s=i(42099),r=i(30976),n=i(83419),o=i(90330),a=i(74943),h=i(95540),l=new n({initialize:function(t){this.parent=t,this.animationManager=t.scene.sys.anims,this.animationManager.on(a.REMOVE_ANIMATION,this.globalRemove,this),this.textureManager=this.animationManager.textureManager,this.anims=null,this.isPlaying=!1,this.hasStarted=!1,this.currentAnim=null,this.currentFrame=null,this.nextAnim=null,this.nextAnimsQueue=[],this.timeScale=1,this.frameRate=0,this.duration=0,this.msPerFrame=0,this.skipMissedFrames=!0,this.randomFrame=!1,this.delay=0,this.repeat=0,this.repeatDelay=0,this.yoyo=!1,this.showBeforeDelay=!1,this.showOnStart=!1,this.hideOnComplete=!1,this.forward=!0,this.inReverse=!1,this.accumulator=0,this.nextTick=0,this.delayCounter=0,this.repeatCounter=0,this.pendingRepeat=!1,this._paused=!1,this._wasPlaying=!1,this._pendingStop=0,this._pendingStopValue},chain:function(t){var e=this.parent;if(void 0===t)return this.nextAnimsQueue.length=0,this.nextAnim=null,e;Array.isArray(t)||(t=[t]);for(var i=0;in&&(l=0),this.randomFrame&&(l=r(0,n-1));var u=s.frames[l];0!==l||this.forward||(u=s.getLastFrame()),this.currentFrame=u}else console.warn("Missing animation: "+i);return this.parent},pause:function(t){return this._paused||(this._paused=!0,this._wasPlaying=this.isPlaying,this.isPlaying=!1),void 0!==t&&this.setCurrentFrame(t),this.parent},resume:function(t){return this._paused&&(this._paused=!1,this.isPlaying=this._wasPlaying),void 0!==t&&this.setCurrentFrame(t),this.parent},playAfterDelay:function(t,e){if(this.isPlaying){var i=this.nextAnim,s=this.nextAnimsQueue;i&&s.unshift(i),this.nextAnim=t,this._pendingStop=1,this._pendingStopValue=e}else this.delayCounter=e,this.play(t,!0);return this.parent},playAfterRepeat:function(t,e){if(void 0===e&&(e=1),this.isPlaying){var i=this.nextAnim,s=this.nextAnimsQueue;i&&s.unshift(i),-1!==this.repeatCounter&&e>this.repeatCounter&&(e=this.repeatCounter),this.nextAnim=t,this._pendingStop=2,this._pendingStopValue=e}else this.play(t);return this.parent},play:function(t,e){void 0===e&&(e=!1);var i=this.currentAnim,s=this.parent,r="string"==typeof t?t:t.key;if(e&&this.isPlaying&&i.key===r)return s;if(i&&this.isPlaying){var n=this.animationManager.getMix(i.key,t);if(n>0)return this.playAfterDelay(t,n)}return this.forward=!0,this.inReverse=!1,this._paused=!1,this._wasPlaying=!0,this.startAnimation(t)},playReverse:function(t,e){void 0===e&&(e=!1);var i="string"==typeof t?t:t.key;return e&&this.isPlaying&&this.currentAnim.key===i?this.parent:(this.forward=!1,this.inReverse=!0,this._paused=!1,this._wasPlaying=!0,this.startAnimation(t))},startAnimation:function(t){this.load(t);var e=this.currentAnim,i=this.parent;return e?(this.repeatCounter=-1===this.repeat?Number.MAX_VALUE:this.repeat,e.getFirstTick(this),this.isPlaying=!0,this.pendingRepeat=!1,this.hasStarted=!1,this._pendingStop=0,this._pendingStopValue=0,this._paused=!1,this.delayCounter+=this.delay,0===this.delayCounter?this.handleStart():this.showBeforeDelay&&this.setCurrentFrame(this.currentFrame),i):i},handleStart:function(){this.showOnStart&&this.parent.setVisible(!0),this.setCurrentFrame(this.currentFrame),this.hasStarted=!0,this.emitEvents(a.ANIMATION_START)},handleRepeat:function(){this.pendingRepeat=!1,this.emitEvents(a.ANIMATION_REPEAT)},handleStop:function(){this._pendingStop=0,this.isPlaying=!1,this.emitEvents(a.ANIMATION_STOP)},handleComplete:function(){this._pendingStop=0,this.isPlaying=!1,this.hideOnComplete&&this.parent.setVisible(!1),this.emitEvents(a.ANIMATION_COMPLETE,a.ANIMATION_COMPLETE_KEY)},emitEvents:function(t,e){var i=this.currentAnim;if(i){var s=this.currentFrame,r=this.parent,n=s.textureFrame;r.emit(t,i,s,r,n),e&&r.emit(e+i.key,i,s,r,n)}},reverse:function(){return this.isPlaying&&(this.inReverse=!this.inReverse,this.forward=!this.forward),this.parent},getProgress:function(){var t=this.currentFrame;if(!t)return 0;var e=t.progress;return this.inReverse&&(e*=-1),e},setProgress:function(t){return this.forward||(t=1-t),this.setCurrentFrame(this.currentAnim.getFrameByProgress(t)),this.parent},setRepeat:function(t){return this.repeatCounter=-1===t?Number.MAX_VALUE:t,this.parent},globalRemove:function(t,e){void 0===e&&(e=this.currentAnim),this.isPlaying&&e.key===this.currentAnim.key&&(this.stop(),this.setCurrentFrame(this.currentAnim.frames[0]))},restart:function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var i=this.currentAnim,s=this.parent;return i?(e&&(this.repeatCounter=-1===this.repeat?Number.MAX_VALUE:this.repeat),i.getFirstTick(this),this.emitEvents(a.ANIMATION_RESTART),this.isPlaying=!0,this.pendingRepeat=!1,this.hasStarted=!t,this._pendingStop=0,this._pendingStopValue=0,this._paused=!1,this.setCurrentFrame(i.frames[0]),this.parent):s},complete:function(){if(this._pendingStop=0,this.isPlaying=!1,this.currentAnim&&this.handleComplete(),this.nextAnim){var t=this.nextAnim;this.nextAnim=this.nextAnimsQueue.length>0?this.nextAnimsQueue.shift():null,this.play(t)}return this.parent},stop:function(){if(this._pendingStop=0,this.isPlaying=!1,this.delayCounter=0,this.currentAnim&&this.handleStop(),this.nextAnim){var t=this.nextAnim;this.nextAnim=this.nextAnimsQueue.shift(),this.play(t)}return this.parent},stopAfterDelay:function(t){return this._pendingStop=1,this._pendingStopValue=t,this.parent},stopAfterRepeat:function(t){return void 0===t&&(t=1),-1!==this.repeatCounter&&t>this.repeatCounter&&(t=this.repeatCounter),this._pendingStop=2,this._pendingStopValue=t,this.parent},stopOnFrame:function(t){return this._pendingStop=3,this._pendingStopValue=t,this.parent},getTotalFrames:function(){return this.currentAnim?this.currentAnim.getTotalFrames():0},update:function(t,e){var i=this.currentAnim;if(this.isPlaying&&i&&!i.paused){if(this.accumulator+=e*this.timeScale*this.animationManager.globalTimeScale,1===this._pendingStop&&(this._pendingStopValue-=e,this._pendingStopValue<=0))return this.stop();if(this.hasStarted){if(this.accumulator>=this.nextTick&&(this.forward?i.nextFrame(this):i.previousFrame(this),this.isPlaying&&0===this._pendingStop&&this.skipMissedFrames&&this.accumulator>this.nextTick)){var s=0;do{this.forward?i.nextFrame(this):i.previousFrame(this),s++}while(this.isPlaying&&this.accumulator>this.nextTick&&s<60)}}else this.accumulator>=this.delayCounter&&(this.accumulator-=this.delayCounter,this.handleStart())}},setCurrentFrame:function(t){var e=this.parent;return this.currentFrame=t,e.texture=t.frame.texture,e.frame=t.frame,e.isCropped&&e.frame.updateCropUVs(e._crop,e.flipX,e.flipY),t.setAlpha&&(e.alpha=t.alpha),e.setSizeToFrame(),e._originComponent&&(t.frame.customPivot?e.setOrigin(t.frame.pivotX,t.frame.pivotY):e.updateDisplayOrigin()),this.isPlaying&&this.hasStarted&&(this.emitEvents(a.ANIMATION_UPDATE),3===this._pendingStop&&this._pendingStopValue===t&&this.stop()),e},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},get:function(t){return this.anims?this.anims.get(t):null},exists:function(t){return!!this.anims&&this.anims.has(t)},create:function(t){var e=t.key,i=!1;return e&&((i=this.get(e))?console.warn("Animation key already exists: "+e):(i=new s(this,e,t),this.anims||(this.anims=new o),this.anims.set(e,i))),i},createFromAseprite:function(t,e){return this.animationManager.createFromAseprite(t,e,this.parent)},generateFrameNames:function(t,e){return this.animationManager.generateFrameNames(t,e)},generateFrameNumbers:function(t,e){return this.animationManager.generateFrameNumbers(t,e)},remove:function(t){var e=this.get(t);return e&&(this.currentAnim===e&&this.stop(),this.anims.delete(t)),e},destroy:function(){this.animationManager.off(a.REMOVE_ANIMATION,this.globalRemove,this),this.anims&&this.anims.clear(),this.animationManager=null,this.parent=null,this.nextAnim=null,this.nextAnimsQueue.length=0,this.currentAnim=null,this.currentFrame=null},isPaused:{get:function(){return this._paused}}});t.exports=l},57090:t=>{t.exports="add"},25312:t=>{t.exports="animationcomplete"},89580:t=>{t.exports="animationcomplete-"},52860:t=>{t.exports="animationrepeat"},63850:t=>{t.exports="animationrestart"},99085:t=>{t.exports="animationstart"},28087:t=>{t.exports="animationstop"},1794:t=>{t.exports="animationupdate"},52562:t=>{t.exports="pauseall"},57953:t=>{t.exports="remove"},68339:t=>{t.exports="resumeall"},74943:(t,e,i)=>{t.exports={ADD_ANIMATION:i(57090),ANIMATION_COMPLETE:i(25312),ANIMATION_COMPLETE_KEY:i(89580),ANIMATION_REPEAT:i(52860),ANIMATION_RESTART:i(63850),ANIMATION_START:i(99085),ANIMATION_STOP:i(28087),ANIMATION_UPDATE:i(1794),PAUSE_ALL:i(52562),REMOVE_ANIMATION:i(57953),RESUME_ALL:i(68339)}},60421:(t,e,i)=>{t.exports={Animation:i(42099),AnimationFrame:i(41138),AnimationManager:i(60848),AnimationState:i(9674),Events:i(74943)}},2161:(t,e,i)=>{var s=i(83419),r=i(90330),n=i(50792),o=i(24736),a=new s({initialize:function(){this.entries=new r,this.events=new n},add:function(t,e){return this.entries.set(t,e),this.events.emit(o.ADD,this,t,e),this},has:function(t){return this.entries.has(t)},exists:function(t){return this.entries.has(t)},get:function(t){return this.entries.get(t)},remove:function(t){var e=this.get(t);return e&&(this.entries.delete(t),this.events.emit(o.REMOVE,this,t,e.data)),this},getKeys:function(){return this.entries.keys()},destroy:function(){this.entries.clear(),this.events.removeAllListeners(),this.entries=null,this.events=null}});t.exports=a},24047:(t,e,i)=>{var s=i(2161),r=i(83419),n=i(8443),o=new r({initialize:function(t){this.game=t,this.binary=new s,this.bitmapFont=new s,this.json=new s,this.physics=new s,this.shader=new s,this.audio=new s,this.video=new s,this.text=new s,this.html=new s,this.obj=new s,this.tilemap=new s,this.xml=new s,this.custom={},this.game.events.once(n.DESTROY,this.destroy,this)},addCustom:function(t){return this.custom.hasOwnProperty(t)||(this.custom[t]=new s),this.custom[t]},destroy:function(){for(var t=["binary","bitmapFont","json","physics","shader","audio","video","text","html","obj","tilemap","xml"],e=0;e{t.exports="add"},59261:t=>{t.exports="remove"},24736:(t,e,i)=>{t.exports={ADD:i(51464),REMOVE:i(59261)}},83388:(t,e,i)=>{t.exports={BaseCache:i(2161),CacheManager:i(24047),Events:i(24736)}},71911:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(39506),o=i(50792),a=i(19715),h=i(87841),l=i(61340),u=i(80333),c=i(26099),d=new s({Extends:o,Mixins:[r.AlphaSingle,r.Visible],initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),o.call(this),this.scene,this.sceneManager,this.scaleManager,this.cameraManager,this.id=0,this.name="",this.roundPixels=!1,this.useBounds=!1,this.worldView=new h,this.dirty=!0,this._x=t,this._y=e,this._width=i,this._height=s,this._bounds=new h,this._scrollX=0,this._scrollY=0,this._zoomX=1,this._zoomY=1,this._rotation=0,this.matrix=new l,this.transparent=!0,this.backgroundColor=u("rgba(0,0,0,0)"),this.disableCull=!1,this.culledObjects=[],this.midPoint=new c(i/2,s/2),this.originX=.5,this.originY=.5,this._customViewport=!1,this.mask=null,this._maskCamera=null,this.renderList=[],this.isSceneCamera=!0},addToRenderList:function(t){this.renderList.push(t)},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this},getScroll:function(t,e,i){void 0===i&&(i=new c);var s=.5*this.width,r=.5*this.height;return i.x=t-s,i.y=e-r,this.useBounds&&(i.x=this.clampX(i.x),i.y=this.clampY(i.y)),i},centerOnX:function(t){var e=.5*this.width;return this.midPoint.x=t,this.scrollX=t-e,this.useBounds&&(this.scrollX=this.clampX(this.scrollX)),this},centerOnY:function(t){var e=.5*this.height;return this.midPoint.y=t,this.scrollY=t-e,this.useBounds&&(this.scrollY=this.clampY(this.scrollY)),this},centerOn:function(t,e){return this.centerOnX(t),this.centerOnY(e),this},centerToBounds:function(){if(this.useBounds){var t=this._bounds,e=.5*this.width,i=.5*this.height;this.midPoint.set(t.centerX,t.centerY),this.scrollX=t.centerX-e,this.scrollY=t.centerY-i}return this},centerToSize:function(){return this.scrollX=.5*this.width,this.scrollY=.5*this.height,this},cull:function(t){if(this.disableCull)return t;var e=this.matrix.matrix,i=e[0],s=e[1],r=e[2],n=e[3],o=i*n-s*r;if(!o)return t;var a=e[4],h=e[5],l=this.scrollX,u=this.scrollY,c=this.width,d=this.height,p=this.y,f=p+d,g=this.x,m=g+c,v=this.culledObjects,y=t.length;o=1/o,v.length=0;for(var x=0;xg&&S*i+E*r+ap&&S*s+E*n+hr&&(t=r),t},clampY:function(t){var e=this._bounds,i=this.displayHeight,s=e.y+(i-this.height)/2,r=Math.max(s,s+e.height-i);return tr&&(t=r),t},removeBounds:function(){return this.useBounds=!1,this.dirty=!0,this._bounds.setEmpty(),this},setAngle:function(t){return void 0===t&&(t=0),this.rotation=n(t),this},setBackgroundColor:function(t){return void 0===t&&(t="rgba(0,0,0,0)"),this.backgroundColor=u(t),this.transparent=0===this.backgroundColor.alpha,this},setBounds:function(t,e,i,s,r){return void 0===r&&(r=!1),this._bounds.setTo(t,e,i,s),this.dirty=!0,this.useBounds=!0,r?this.centerToBounds():(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},getBounds:function(t){void 0===t&&(t=new h);var e=this._bounds;return t.setTo(e.x,e.y,e.width,e.height),t},setName:function(t){return void 0===t&&(t=""),this.name=t,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setRotation:function(t){return void 0===t&&(t=0),this.rotation=t,this},setRoundPixels:function(t){return this.roundPixels=t,this},setScene:function(t,e){void 0===e&&(e=!0),this.scene&&this._customViewport&&this.sceneManager.customViewports--,this.scene=t,this.isSceneCamera=e;var i=t.sys;return this.sceneManager=i.game.scene,this.scaleManager=i.scale,this.cameraManager=i.cameras,this.updateSystem(),this},setScroll:function(t,e){return void 0===e&&(e=t),this.scrollX=t,this.scrollY=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},setViewport:function(t,e,i,s){return this.x=t,this.y=e,this.width=i,this.height=s,this},setZoom:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),0===t&&(t=.001),0===e&&(e=.001),this.zoomX=t,this.zoomY=e,this},setMask:function(t,e){return void 0===e&&(e=!0),this.mask=t,this._maskCamera=e?this.cameraManager.default:this,this},clearMask:function(t){return void 0===t&&(t=!1),t&&this.mask&&this.mask.destroy(),this.mask=null,this},toJSON:function(){var t={name:this.name,x:this.x,y:this.y,width:this.width,height:this.height,zoom:this.zoom,rotation:this.rotation,roundPixels:this.roundPixels,scrollX:this.scrollX,scrollY:this.scrollY,backgroundColor:this.backgroundColor.rgba};return this.useBounds&&(t.bounds={x:this._bounds.x,y:this._bounds.y,width:this._bounds.width,height:this._bounds.height}),t},update:function(){},setIsSceneCamera:function(t){return this.isSceneCamera=t,this},updateSystem:function(){if(this.scaleManager&&this.isSceneCamera){var t=0!==this._x||0!==this._y||this.scaleManager.width!==this._width||this.scaleManager.height!==this._height,e=this.sceneManager;t&&!this._customViewport?e.customViewports++:!t&&this._customViewport&&e.customViewports--,this.dirty=!0,this._customViewport=t}},destroy:function(){this.emit(a.DESTROY,this),this.removeAllListeners(),this.matrix.destroy(),this.culledObjects=[],this._customViewport&&this.sceneManager.customViewports--,this.renderList=[],this._bounds=null,this.scene=null,this.scaleManager=null,this.sceneManager=null,this.cameraManager=null},x:{get:function(){return this._x},set:function(t){this._x=t,this.updateSystem()}},y:{get:function(){return this._y},set:function(t){this._y=t,this.updateSystem()}},width:{get:function(){return this._width},set:function(t){this._width=t,this.updateSystem()}},height:{get:function(){return this._height},set:function(t){this._height=t,this.updateSystem()}},scrollX:{get:function(){return this._scrollX},set:function(t){t!==this._scrollX&&(this._scrollX=t,this.dirty=!0)}},scrollY:{get:function(){return this._scrollY},set:function(t){t!==this._scrollY&&(this._scrollY=t,this.dirty=!0)}},zoom:{get:function(){return(this._zoomX+this._zoomY)/2},set:function(t){this._zoomX=t,this._zoomY=t,this.dirty=!0}},zoomX:{get:function(){return this._zoomX},set:function(t){this._zoomX=t,this.dirty=!0}},zoomY:{get:function(){return this._zoomY},set:function(t){this._zoomY=t,this.dirty=!0}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=t,this.dirty=!0}},centerX:{get:function(){return this.x+.5*this.width}},centerY:{get:function(){return this.y+.5*this.height}},displayWidth:{get:function(){return this.width/this.zoomX}},displayHeight:{get:function(){return this.height/this.zoomY}}});t.exports=d},38058:(t,e,i)=>{var s=i(71911),r=i(67502),n=i(45319),o=i(83419),a=i(31401),h=i(20052),l=i(19715),u=i(28915),c=i(87841),d=i(26099),p=new o({Extends:s,Mixins:[a.PostPipeline],initialize:function(t,e,i,r){s.call(this,t,e,i,r),this.initPostPipeline(),this.inputEnabled=!0,this.fadeEffect=new h.Fade(this),this.flashEffect=new h.Flash(this),this.shakeEffect=new h.Shake(this),this.panEffect=new h.Pan(this),this.rotateToEffect=new h.RotateTo(this),this.zoomEffect=new h.Zoom(this),this.lerp=new d(1,1),this.followOffset=new d,this.deadzone=null,this._follow=null},setDeadzone:function(t,e){if(void 0===t)this.deadzone=null;else{if(this.deadzone?(this.deadzone.width=t,this.deadzone.height=e):this.deadzone=new c(0,0,t,e),this._follow){var i=this.width/2,s=this.height/2,n=this._follow.x-this.followOffset.x,o=this._follow.y-this.followOffset.y;this.midPoint.set(n,o),this.scrollX=n-i,this.scrollY=o-s}r(this.deadzone,this.midPoint.x,this.midPoint.y)}return this},fadeIn:function(t,e,i,s,r,n){return this.fadeEffect.start(!1,t,e,i,s,!0,r,n)},fadeOut:function(t,e,i,s,r,n){return this.fadeEffect.start(!0,t,e,i,s,!0,r,n)},fadeFrom:function(t,e,i,s,r,n,o){return this.fadeEffect.start(!1,t,e,i,s,r,n,o)},fade:function(t,e,i,s,r,n,o){return this.fadeEffect.start(!0,t,e,i,s,r,n,o)},flash:function(t,e,i,s,r,n,o){return this.flashEffect.start(t,e,i,s,r,n,o)},shake:function(t,e,i,s,r){return this.shakeEffect.start(t,e,i,s,r)},pan:function(t,e,i,s,r,n,o){return this.panEffect.start(t,e,i,s,r,n,o)},rotateTo:function(t,e,i,s,r,n,o){return this.rotateToEffect.start(t,e,i,s,r,n,o)},zoomTo:function(t,e,i,s,r,n){return this.zoomEffect.start(t,e,i,s,r,n)},preRender:function(){this.renderList.length=0;var t=this.width,e=this.height,i=.5*t,s=.5*e,n=this.zoom,o=this.matrix,a=t*this.originX,h=e*this.originY,c=this._follow,d=this.deadzone,p=this.scrollX,f=this.scrollY;d&&r(d,this.midPoint.x,this.midPoint.y);var g=!1;if(c&&!this.panEffect.isRunning){var m=this.lerp,v=c.x-this.followOffset.x,y=c.y-this.followOffset.y;d?(vd.right&&(p=u(p,p+(v-d.right),m.x)),yd.bottom&&(f=u(f,f+(y-d.bottom),m.y))):(p=u(p,v-a,m.x),f=u(f,y-h,m.y)),g=!0}this.useBounds&&(p=this.clampX(p),f=this.clampY(f)),this.scrollX=p,this.scrollY=f;var x=p+i,w=f+s;this.midPoint.set(x,w);var T=t/n,b=e/n,S=Math.floor(x-T/2),E=Math.floor(w-b/2);this.worldView.setTo(S,E,T,b),o.applyITRS(Math.floor(this.x+a),Math.floor(this.y+h),this.rotation,n,n),o.translate(-a,-h),this.shakeEffect.preRender(),g&&this.emit(l.FOLLOW_UPDATE,this,c)},setLerp:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.lerp.set(t,e),this},setFollowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),this.followOffset.set(t,e),this},startFollow:function(t,e,i,s,r,o){void 0===e&&(e=!1),void 0===i&&(i=1),void 0===s&&(s=i),void 0===r&&(r=0),void 0===o&&(o=r),this._follow=t,this.roundPixels=e,i=n(i,0,1),s=n(s,0,1),this.lerp.set(i,s),this.followOffset.set(r,o);var a=this.width/2,h=this.height/2,l=t.x-r,u=t.y-o;return this.midPoint.set(l,u),this.scrollX=l-a,this.scrollY=u-h,this.useBounds&&(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},stopFollow:function(){return this._follow=null,this},resetFX:function(){return this.rotateToEffect.reset(),this.panEffect.reset(),this.shakeEffect.reset(),this.flashEffect.reset(),this.fadeEffect.reset(),this},update:function(t,e){this.visible&&(this.rotateToEffect.update(t,e),this.panEffect.update(t,e),this.zoomEffect.update(t,e),this.shakeEffect.update(t,e),this.flashEffect.update(t,e),this.fadeEffect.update(t,e))},destroy:function(){this.resetFX(),s.prototype.destroy.call(this),this._follow=null,this.deadzone=null}});t.exports=p},32743:(t,e,i)=>{var s=i(38058),r=i(83419),n=i(95540),o=i(37277),a=i(37303),h=i(97480),l=i(44594),u=new r({initialize:function(t){this.scene=t,this.systems=t.sys,this.roundPixels=t.sys.game.config.roundPixels,this.cameras=[],this.main,this.default,t.sys.events.once(l.BOOT,this.boot,this),t.sys.events.on(l.START,this.start,this)},boot:function(){var t=this.systems;t.settings.cameras?this.fromJSON(t.settings.cameras):this.add(),this.main=this.cameras[0],this.default=new s(0,0,t.scale.width,t.scale.height).setScene(this.scene),t.game.scale.on(h.RESIZE,this.onResize,this),this.systems.events.once(l.DESTROY,this.destroy,this)},start:function(){if(!this.main){var t=this.systems;t.settings.cameras?this.fromJSON(t.settings.cameras):this.add(),this.main=this.cameras[0]}var e=this.systems.events;e.on(l.UPDATE,this.update,this),e.once(l.SHUTDOWN,this.shutdown,this)},add:function(t,e,i,r,n,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.scene.sys.scale.width),void 0===r&&(r=this.scene.sys.scale.height),void 0===n&&(n=!1),void 0===o&&(o="");var a=new s(t,e,i,r);return a.setName(o),a.setScene(this.scene),a.setRoundPixels(this.roundPixels),a.id=this.getNextID(),this.cameras.push(a),n&&(this.main=a),a},addExisting:function(t,e){return void 0===e&&(e=!1),-1===this.cameras.indexOf(t)?(t.id=this.getNextID(),t.setRoundPixels(this.roundPixels),this.cameras.push(t),e&&(this.main=t),t):null},getNextID:function(){for(var t=this.cameras,e=1,i=0;i<32;i++){for(var s=!1,r=0;r0){n.preRender();var o=this.getVisibleChildren(e.getChildren(),n);t.render(i,o,n)}}},getVisibleChildren:function(t,e){return t.filter((function(t){return t.willRender(e)}))},resetAll:function(){for(var t=0;t{var s=i(45319),r=i(83419),n=i(19715),o=new r({initialize:function(t){this.camera=t,this.isRunning=!1,this.isComplete=!1,this.direction=!0,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,r,o,a,h){if(void 0===t&&(t=!0),void 0===e&&(e=1e3),void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=0),void 0===o&&(o=!1),void 0===a&&(a=null),void 0===h&&(h=this.camera.scene),!o&&this.isRunning)return this.camera;this.isRunning=!0,this.isComplete=!1,this.duration=e,this.direction=t,this.progress=0,this.red=i,this.green=s,this.blue=r,this.alpha=t?Number.MIN_VALUE:1,this._elapsed=0,this._onUpdate=a,this._onUpdateScope=h;var l=t?n.FADE_OUT_START:n.FADE_IN_START;return this.camera.emit(l,this.camera,this,e,i,s,r),this.camera},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=s(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{var s=i(45319),r=i(83419),n=i(19715),o=new r({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=1,this.progress=0,this._elapsed=0,this._alpha,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,r,o,a){return void 0===t&&(t=250),void 0===e&&(e=255),void 0===i&&(i=255),void 0===s&&(s=255),void 0===r&&(r=!1),void 0===o&&(o=null),void 0===a&&(a=this.camera.scene),!r&&this.isRunning||(this.isRunning=!0,this.duration=t,this.progress=0,this.red=e,this.green=i,this.blue=s,this._alpha=this.alpha,this._elapsed=0,this._onUpdate=o,this._onUpdateScope=a,this.camera.emit(n.FLASH_START,this.camera,this,t,e,i,s)),this.camera},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=s(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{var s=i(45319),r=i(83419),n=i(62640),o=i(19715),a=i(26099),h=new r({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.source=new a,this.current=new a,this.destination=new a,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,r,a,h){void 0===i&&(i=1e3),void 0===s&&(s=n.Linear),void 0===r&&(r=!1),void 0===a&&(a=null),void 0===h&&(h=this.camera.scene);var l=this.camera;return!r&&this.isRunning||(this.isRunning=!0,this.duration=i,this.progress=0,this.source.set(l.scrollX,l.scrollY),this.destination.set(t,e),l.getScroll(t,e,this.current),"string"==typeof s&&n.hasOwnProperty(s)?this.ease=n[s]:"function"==typeof s&&(this.ease=s),this._elapsed=0,this._onUpdate=a,this._onUpdateScope=h,this.camera.emit(o.PAN_START,this.camera,this,i,t,e)),l},update:function(t,e){if(this.isRunning){this._elapsed+=e;var i=s(this._elapsed/this.duration,0,1);this.progress=i;var r=this.camera;if(this._elapsed{var s=i(45319),r=i(83419),n=i(19715),o=i(62640),a=new r({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.source=0,this.current=0,this.destination=0,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope,this.clockwise=!0,this.shortestPath=!1},start:function(t,e,i,s,r,a,h){void 0===i&&(i=1e3),void 0===s&&(s=o.Linear),void 0===r&&(r=!1),void 0===a&&(a=null),void 0===h&&(h=this.camera.scene),void 0===e&&(e=!1),this.shortestPath=e;var l=t;t<0?(l=-1*t,this.clockwise=!1):this.clockwise=!0;var u=360*Math.PI/180;l-=Math.floor(l/u)*u;var c=this.camera;if(!r&&this.isRunning)return c;if(this.isRunning=!0,this.duration=i,this.progress=0,this.source=c.rotation,this.destination=l,"string"==typeof s&&o.hasOwnProperty(s)?this.ease=o[s]:"function"==typeof s&&(this.ease=s),this._elapsed=0,this._onUpdate=a,this._onUpdateScope=h,this.shortestPath){var d=0,p=0;(d=this.destination>this.source?Math.abs(this.destination-this.source):Math.abs(this.destination+u)-this.source)<(p=this.source>this.destination?Math.abs(this.source-this.destination):Math.abs(this.source+u)-this.destination)?this.clockwise=!0:d>p&&(this.clockwise=!1)}return this.camera.emit(n.ROTATE_START,this.camera,this,i,l),c},update:function(t,e){if(this.isRunning){this._elapsed+=e;var i=s(this._elapsed/this.duration,0,1);this.progress=i;var r=this.camera;if(this._elapsed=l?Math.abs(h-l):Math.abs(h+a)-l;var u=0;u=this.clockwise?r.rotation+o*n:r.rotation-o*n,r.rotation=u,this._onUpdate&&this._onUpdate.call(this._onUpdateScope,r,i,u)}else r.rotation=this.destination,this._onUpdate&&this._onUpdate.call(this._onUpdateScope,r,i,this.destination),this.effectComplete()}},effectComplete:function(){this._onUpdate=null,this._onUpdateScope=null,this.isRunning=!1,this.camera.emit(n.ROTATE_COMPLETE,this.camera,this)},reset:function(){this.isRunning=!1,this._onUpdate=null,this._onUpdateScope=null},destroy:function(){this.reset(),this.camera=null,this.source=null,this.destination=null}});t.exports=a},30330:(t,e,i)=>{var s=i(45319),r=i(83419),n=i(19715),o=i(26099),a=new r({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.intensity=new o,this.progress=0,this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,r){return void 0===t&&(t=100),void 0===e&&(e=.05),void 0===i&&(i=!1),void 0===s&&(s=null),void 0===r&&(r=this.camera.scene),!i&&this.isRunning||(this.isRunning=!0,this.duration=t,this.progress=0,"number"==typeof e?this.intensity.set(e):this.intensity.set(e.x,e.y),this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate=s,this._onUpdateScope=r,this.camera.emit(n.SHAKE_START,this.camera,this,t,e)),this.camera},preRender:function(){this.isRunning&&this.camera.matrix.translate(this._offsetX,this._offsetY)},update:function(t,e){if(this.isRunning)if(this._elapsed+=e,this.progress=s(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{var s=i(45319),r=i(83419),n=i(62640),o=i(19715),a=new r({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.source=1,this.destination=1,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,r,a){void 0===e&&(e=1e3),void 0===i&&(i=n.Linear),void 0===s&&(s=!1),void 0===r&&(r=null),void 0===a&&(a=this.camera.scene);var h=this.camera;return!s&&this.isRunning||(this.isRunning=!0,this.duration=e,this.progress=0,this.source=h.zoom,this.destination=t,"string"==typeof i&&n.hasOwnProperty(i)?this.ease=n[i]:"function"==typeof i&&(this.ease=i),this._elapsed=0,this._onUpdate=r,this._onUpdateScope=a,this.camera.emit(o.ZOOM_START,this.camera,this,e,t)),h},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=s(this._elapsed/this.duration,0,1),this._elapsed{t.exports={Fade:i(5020),Flash:i(10662),Pan:i(20359),Shake:i(30330),RotateTo:i(34208),Zoom:i(45641)}},16438:t=>{t.exports="cameradestroy"},32726:t=>{t.exports="camerafadeincomplete"},87807:t=>{t.exports="camerafadeinstart"},45917:t=>{t.exports="camerafadeoutcomplete"},95666:t=>{t.exports="camerafadeoutstart"},47056:t=>{t.exports="cameraflashcomplete"},91261:t=>{t.exports="cameraflashstart"},45047:t=>{t.exports="followupdate"},81927:t=>{t.exports="camerapancomplete"},74264:t=>{t.exports="camerapanstart"},54419:t=>{t.exports="postrender"},79330:t=>{t.exports="prerender"},93183:t=>{t.exports="camerarotatecomplete"},80112:t=>{t.exports="camerarotatestart"},62252:t=>{t.exports="camerashakecomplete"},86017:t=>{t.exports="camerashakestart"},539:t=>{t.exports="camerazoomcomplete"},51892:t=>{t.exports="camerazoomstart"},19715:(t,e,i)=>{t.exports={DESTROY:i(16438),FADE_IN_COMPLETE:i(32726),FADE_IN_START:i(87807),FADE_OUT_COMPLETE:i(45917),FADE_OUT_START:i(95666),FLASH_COMPLETE:i(47056),FLASH_START:i(91261),FOLLOW_UPDATE:i(45047),PAN_COMPLETE:i(81927),PAN_START:i(74264),POST_RENDER:i(54419),PRE_RENDER:i(79330),ROTATE_COMPLETE:i(93183),ROTATE_START:i(80112),SHAKE_COMPLETE:i(62252),SHAKE_START:i(86017),ZOOM_COMPLETE:i(539),ZOOM_START:i(51892)}},87969:(t,e,i)=>{t.exports={Camera:i(38058),BaseCamera:i(71911),CameraManager:i(32743),Effects:i(20052),Events:i(19715)}},63091:(t,e,i)=>{var s=i(83419),r=i(35154),n=new s({initialize:function(t){this.camera=r(t,"camera",null),this.left=r(t,"left",null),this.right=r(t,"right",null),this.up=r(t,"up",null),this.down=r(t,"down",null),this.zoomIn=r(t,"zoomIn",null),this.zoomOut=r(t,"zoomOut",null),this.zoomSpeed=r(t,"zoomSpeed",.01),this.minZoom=r(t,"minZoom",.001),this.maxZoom=r(t,"maxZoom",1e3),this.speedX=0,this.speedY=0;var e=r(t,"speed",null);"number"==typeof e?(this.speedX=e,this.speedY=e):(this.speedX=r(t,"speed.x",0),this.speedY=r(t,"speed.y",0)),this._zoom=0,this.active=null!==this.camera},start:function(){return this.active=null!==this.camera,this},stop:function(){return this.active=!1,this},setCamera:function(t){return this.camera=t,this},update:function(t){if(this.active){void 0===t&&(t=1);var e=this.camera;this.up&&this.up.isDown?e.scrollY-=this.speedY*t|0:this.down&&this.down.isDown&&(e.scrollY+=this.speedY*t|0),this.left&&this.left.isDown?e.scrollX-=this.speedX*t|0:this.right&&this.right.isDown&&(e.scrollX+=this.speedX*t|0),this.zoomIn&&this.zoomIn.isDown?(e.zoom-=this.zoomSpeed,e.zoomthis.maxZoom&&(e.zoom=this.maxZoom))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});t.exports=n},58818:(t,e,i)=>{var s=i(83419),r=i(35154),n=new s({initialize:function(t){this.camera=r(t,"camera",null),this.left=r(t,"left",null),this.right=r(t,"right",null),this.up=r(t,"up",null),this.down=r(t,"down",null),this.zoomIn=r(t,"zoomIn",null),this.zoomOut=r(t,"zoomOut",null),this.zoomSpeed=r(t,"zoomSpeed",.01),this.minZoom=r(t,"minZoom",.001),this.maxZoom=r(t,"maxZoom",1e3),this.accelX=0,this.accelY=0;var e=r(t,"acceleration",null);"number"==typeof e?(this.accelX=e,this.accelY=e):(this.accelX=r(t,"acceleration.x",0),this.accelY=r(t,"acceleration.y",0)),this.dragX=0,this.dragY=0;var i=r(t,"drag",null);"number"==typeof i?(this.dragX=i,this.dragY=i):(this.dragX=r(t,"drag.x",0),this.dragY=r(t,"drag.y",0)),this.maxSpeedX=0,this.maxSpeedY=0;var s=r(t,"maxSpeed",null);"number"==typeof s?(this.maxSpeedX=s,this.maxSpeedY=s):(this.maxSpeedX=r(t,"maxSpeed.x",0),this.maxSpeedY=r(t,"maxSpeed.y",0)),this._speedX=0,this._speedY=0,this._zoom=0,this.active=null!==this.camera},start:function(){return this.active=null!==this.camera,this},stop:function(){return this.active=!1,this},setCamera:function(t){return this.camera=t,this},update:function(t){if(this.active){void 0===t&&(t=1);var e=this.camera;this._speedX>0?(this._speedX-=this.dragX*t,this._speedX<0&&(this._speedX=0)):this._speedX<0&&(this._speedX+=this.dragX*t,this._speedX>0&&(this._speedX=0)),this._speedY>0?(this._speedY-=this.dragY*t,this._speedY<0&&(this._speedY=0)):this._speedY<0&&(this._speedY+=this.dragY*t,this._speedY>0&&(this._speedY=0)),this.up&&this.up.isDown?(this._speedY+=this.accelY,this._speedY>this.maxSpeedY&&(this._speedY=this.maxSpeedY)):this.down&&this.down.isDown&&(this._speedY-=this.accelY,this._speedY<-this.maxSpeedY&&(this._speedY=-this.maxSpeedY)),this.left&&this.left.isDown?(this._speedX+=this.accelX,this._speedX>this.maxSpeedX&&(this._speedX=this.maxSpeedX)):this.right&&this.right.isDown&&(this._speedX-=this.accelX,this._speedX<-this.maxSpeedX&&(this._speedX=-this.maxSpeedX)),this.zoomIn&&this.zoomIn.isDown?this._zoom=-this.zoomSpeed:this.zoomOut&&this.zoomOut.isDown?this._zoom=this.zoomSpeed:this._zoom=0,0!==this._speedX&&(e.scrollX-=this._speedX*t|0),0!==this._speedY&&(e.scrollY-=this._speedY*t|0),0!==this._zoom&&(e.zoom+=this._zoom,e.zoomthis.maxZoom&&(e.zoom=this.maxZoom))}},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});t.exports=n},38865:(t,e,i)=>{t.exports={FixedKeyControl:i(63091),SmoothedKeyControl:i(58818)}},26638:(t,e,i)=>{t.exports={Controls:i(38865),Scene2D:i(87969)}},8054:(t,e,i)=>{var s={VERSION:"3.80.1",BlendModes:i(10312),ScaleModes:i(29795),AUTO:0,CANVAS:1,WEBGL:2,HEADLESS:3,FOREVER:-1,NONE:4,UP:5,DOWN:6,LEFT:7,RIGHT:8};t.exports=s},69547:(t,e,i)=>{var s=i(83419),r=i(8054),n=i(42363),o=i(82264),a=i(95540),h=i(35154),l=i(41212),u=i(29747),c=i(75508),d=i(36060),p=i(80333),f=new s({initialize:function(t){void 0===t&&(t={});var e=h(t,"scale",null);this.width=h(e,"width",1024,t),this.height=h(e,"height",768,t),this.zoom=h(e,"zoom",1,t),this.parent=h(e,"parent",void 0,t),this.scaleMode=h(e,e?"mode":"scaleMode",0,t),this.expandParent=h(e,"expandParent",!0,t),this.autoRound=h(e,"autoRound",!1,t),this.autoCenter=h(e,"autoCenter",0,t),this.resizeInterval=h(e,"resizeInterval",500,t),this.fullscreenTarget=h(e,"fullscreenTarget",null,t),this.minWidth=h(e,"min.width",0,t),this.maxWidth=h(e,"max.width",0,t),this.minHeight=h(e,"min.height",0,t),this.maxHeight=h(e,"max.height",0,t),this.snapWidth=h(e,"snap.width",0,t),this.snapHeight=h(e,"snap.height",0,t),this.renderType=h(t,"type",r.AUTO),this.canvas=h(t,"canvas",null),this.context=h(t,"context",null),this.canvasStyle=h(t,"canvasStyle",null),this.customEnvironment=h(t,"customEnvironment",!1),this.sceneConfig=h(t,"scene",null),this.seed=h(t,"seed",[(Date.now()*Math.random()).toString()]),c.RND=new c.RandomDataGenerator(this.seed),this.gameTitle=h(t,"title",""),this.gameURL=h(t,"url","https://phaser.io"),this.gameVersion=h(t,"version",""),this.autoFocus=h(t,"autoFocus",!0),this.stableSort=h(t,"stableSort",-1),-1===this.stableSort&&(this.stableSort=o.browser.es2019?1:0),o.features.stableSort=this.stableSort,this.domCreateContainer=h(t,"dom.createContainer",!1),this.domPointerEvents=h(t,"dom.pointerEvents","none"),this.inputKeyboard=h(t,"input.keyboard",!0),this.inputKeyboardEventTarget=h(t,"input.keyboard.target",window),this.inputKeyboardCapture=h(t,"input.keyboard.capture",[]),this.inputMouse=h(t,"input.mouse",!0),this.inputMouseEventTarget=h(t,"input.mouse.target",null),this.inputMousePreventDefaultDown=h(t,"input.mouse.preventDefaultDown",!0),this.inputMousePreventDefaultUp=h(t,"input.mouse.preventDefaultUp",!0),this.inputMousePreventDefaultMove=h(t,"input.mouse.preventDefaultMove",!0),this.inputMousePreventDefaultWheel=h(t,"input.mouse.preventDefaultWheel",!0),this.inputTouch=h(t,"input.touch",o.input.touch),this.inputTouchEventTarget=h(t,"input.touch.target",null),this.inputTouchCapture=h(t,"input.touch.capture",!0),this.inputActivePointers=h(t,"input.activePointers",1),this.inputSmoothFactor=h(t,"input.smoothFactor",0),this.inputWindowEvents=h(t,"input.windowEvents",!0),this.inputGamepad=h(t,"input.gamepad",!1),this.inputGamepadEventTarget=h(t,"input.gamepad.target",window),this.disableContextMenu=h(t,"disableContextMenu",!1),this.audio=h(t,"audio",{}),this.hideBanner=!1===h(t,"banner",null),this.hidePhaser=h(t,"banner.hidePhaser",!1),this.bannerTextColor=h(t,"banner.text","#ffffff"),this.bannerBackgroundColor=h(t,"banner.background",["#ff0000","#ffff00","#00ff00","#00ffff","#000000"]),""===this.gameTitle&&this.hidePhaser&&(this.hideBanner=!0),this.fps=h(t,"fps",null),this.disablePreFX=h(t,"disablePreFX",!1),this.disablePostFX=h(t,"disablePostFX",!1);var i=h(t,"render",null);this.pipeline=h(i,"pipeline",null,t),this.autoMobilePipeline=h(i,"autoMobilePipeline",!0,t),this.defaultPipeline=h(i,"defaultPipeline",d.MULTI_PIPELINE,t),this.antialias=h(i,"antialias",!0,t),this.antialiasGL=h(i,"antialiasGL",!0,t),this.mipmapFilter=h(i,"mipmapFilter","",t),this.desynchronized=h(i,"desynchronized",!1,t),this.roundPixels=h(i,"roundPixels",!0,t),this.pixelArt=h(i,"pixelArt",1!==this.zoom,t),this.pixelArt&&(this.antialias=!1,this.antialiasGL=!1,this.roundPixels=!0),this.transparent=h(i,"transparent",!1,t),this.clearBeforeRender=h(i,"clearBeforeRender",!0,t),this.preserveDrawingBuffer=h(i,"preserveDrawingBuffer",!1,t),this.premultipliedAlpha=h(i,"premultipliedAlpha",!0,t),this.failIfMajorPerformanceCaveat=h(i,"failIfMajorPerformanceCaveat",!1,t),this.powerPreference=h(i,"powerPreference","default",t),this.batchSize=h(i,"batchSize",4096,t),this.maxTextures=h(i,"maxTextures",-1,t),this.maxLights=h(i,"maxLights",10,t);var s=h(t,"backgroundColor",0);this.backgroundColor=p(s),this.transparent&&(this.backgroundColor=p(0),this.backgroundColor.alpha=0),this.preBoot=h(t,"callbacks.preBoot",u),this.postBoot=h(t,"callbacks.postBoot",u),this.physics=h(t,"physics",{}),this.defaultPhysicsSystem=h(this.physics,"default",!1),this.loaderBaseURL=h(t,"loader.baseURL",""),this.loaderPath=h(t,"loader.path",""),this.loaderMaxParallelDownloads=h(t,"loader.maxParallelDownloads",o.os.android?6:32),this.loaderCrossOrigin=h(t,"loader.crossOrigin",void 0),this.loaderResponseType=h(t,"loader.responseType",""),this.loaderAsync=h(t,"loader.async",!0),this.loaderUser=h(t,"loader.user",""),this.loaderPassword=h(t,"loader.password",""),this.loaderTimeout=h(t,"loader.timeout",0),this.loaderWithCredentials=h(t,"loader.withCredentials",!1),this.loaderImageLoadType=h(t,"loader.imageLoadType","XHR"),this.loaderLocalScheme=h(t,"loader.localScheme",["file://","capacitor://"]),this.glowFXQuality=h(t,"fx.glow.quality",.1),this.glowFXDistance=h(t,"fx.glow.distance",10),this.installGlobalPlugins=[],this.installScenePlugins=[];var f=h(t,"plugins",null),g=n.DefaultScene;f&&(Array.isArray(f)?this.defaultPlugins=f:l(f)&&(this.installGlobalPlugins=a(f,"global",[]),this.installScenePlugins=a(f,"scene",[]),Array.isArray(f.default)?g=f.default:Array.isArray(f.defaultMerge)&&(g=g.concat(f.defaultMerge)))),this.defaultPlugins=g;var m="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg";this.defaultImage=h(t,"images.default",m+"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg=="),this.missingImage=h(t,"images.missing",m+"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg=="),this.whiteImage=h(t,"images.white","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABdJREFUeNpi/P//PwMMMDEgAdwcgAADAJZuAwXJYZOzAAAAAElFTkSuQmCC"),window&&(window.FORCE_WEBGL?this.renderType=r.WEBGL:window.FORCE_CANVAS&&(this.renderType=r.CANVAS))}});t.exports=f},86054:(t,e,i)=>{var s=i(20623),r=i(27919),n=i(8054),o=i(89357);t.exports=function(t){var e=t.config;if((e.customEnvironment||e.canvas)&&e.renderType===n.AUTO)throw new Error("Must set explicit renderType in custom environment");if(!e.customEnvironment&&!e.canvas&&e.renderType!==n.HEADLESS)if(e.renderType===n.AUTO&&(e.renderType=o.webGL?n.WEBGL:n.CANVAS),e.renderType===n.WEBGL){if(!o.webGL)throw new Error("Cannot create WebGL context, aborting.")}else{if(e.renderType!==n.CANVAS)throw new Error("Unknown value for renderer type: "+e.renderType);if(!o.canvas)throw new Error("Cannot create Canvas context, aborting.")}e.antialias||r.disableSmoothing();var a,h,l=t.scale.baseSize,u=l.width,c=l.height;e.canvas?(t.canvas=e.canvas,t.canvas.width=u,t.canvas.height=c):t.canvas=r.create(t,u,c,e.renderType),e.canvasStyle&&(t.canvas.style=e.canvasStyle),e.antialias||s.setCrisp(t.canvas),e.renderType!==n.HEADLESS&&(a=i(68627),h=i(74797),e.renderType===n.WEBGL?t.renderer=new h(t):(t.renderer=new a(t),t.context=t.renderer.gameContext))}},96391:(t,e,i)=>{var s=i(8054);t.exports=function(t){var e=t.config;if(!e.hideBanner){var i="WebGL";e.renderType===s.CANVAS?i="Canvas":e.renderType===s.HEADLESS&&(i="Headless");var r,n=e.audio,o=t.device.audio;if(r=o.webAudio&&!n.disableWebAudio?"Web Audio":n.noAudio||!o.webAudio&&!o.audioData?"No Audio":"HTML5 Audio",t.device.browser.ie)window.console&&console.log("Phaser v"+s.VERSION+" / https://phaser.io");else{var a,h="",l=[h];Array.isArray(e.bannerBackgroundColor)?(e.bannerBackgroundColor.forEach((function(t){h=h.concat("%c "),l.push("background: "+t),a=t})),l[l.length-1]="color: "+e.bannerTextColor+"; background: "+a):(h=h.concat("%c "),l.push("color: "+e.bannerTextColor+"; background: "+e.bannerBackgroundColor)),l.push("background: transparent"),e.gameTitle&&(h=h.concat(e.gameTitle),e.gameVersion&&(h=h.concat(" v"+e.gameVersion)),e.hidePhaser||(h=h.concat(" / "))),e.hidePhaser||(h=h.concat("Phaser v"+s.VERSION+" ("+i+" | "+r+")")),h=h.concat(" %c "+e.gameURL),l[0]=h,console.log.apply(console,l)}}}},50127:(t,e,i)=>{var s=i(40366),r=i(60848),n=i(24047),o=i(27919),a=i(83419),h=i(69547),l=i(83719),u=i(86054),c=i(45893),d=i(96391),p=i(82264),f=i(57264),g=i(50792),m=i(8443),v=i(7003),y=i(37277),x=i(77332),w=i(76531),T=i(60903),b=i(69442),S=i(17130),E=i(65898),C=i(51085),A=i(14747),_=new a({initialize:function(t){this.config=new h(t),this.renderer=null,this.domContainer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new g,this.anims=new r(this),this.textures=new S(this),this.cache=new n(this),this.registry=new c(this,new g),this.input=new v(this,this.config),this.scene=new T(this,this.config.sceneConfig),this.device=p,this.scale=new w(this,this.config),this.sound=null,this.sound=A.create(this),this.loop=new E(this,this.config.fps),this.plugins=new x(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,this.noReturn=!1,this.hasFocus=!1,this.isPaused=!1,f(this.boot.bind(this))},boot:function(){y.hasCore("EventEmitter")?(this.isBooted=!0,this.config.preBoot(this),this.scale.preBoot(),u(this),l(this),d(this),s(this.canvas,this.config.parent),this.textures.once(b.READY,this.texturesReady,this),this.events.emit(m.BOOT)):console.warn("Aborting. Core Plugins missing.")},texturesReady:function(){this.events.emit(m.READY),this.start()},start:function(){this.isRunning=!0,this.config.postBoot(this),this.renderer?this.loop.start(this.step.bind(this)):this.loop.start(this.headlessStep.bind(this)),C(this);var t=this.events;t.on(m.HIDDEN,this.onHidden,this),t.on(m.VISIBLE,this.onVisible,this),t.on(m.BLUR,this.onBlur,this),t.on(m.FOCUS,this.onFocus,this)},step:function(t,e){if(this.pendingDestroy)return this.runDestroy();if(!this.isPaused){var i=this.events;i.emit(m.PRE_STEP,t,e),i.emit(m.STEP,t,e),this.scene.update(t,e),i.emit(m.POST_STEP,t,e);var s=this.renderer;s.preRender(),i.emit(m.PRE_RENDER,s,t,e),this.scene.render(s),s.postRender(),i.emit(m.POST_RENDER,s,t,e)}},headlessStep:function(t,e){if(this.pendingDestroy)return this.runDestroy();if(!this.isPaused){var i=this.events;i.emit(m.PRE_STEP,t,e),i.emit(m.STEP,t,e),this.scene.update(t,e),i.emit(m.POST_STEP,t,e),this.scene.isProcessing=!1,i.emit(m.PRE_RENDER,null,t,e),i.emit(m.POST_RENDER,null,t,e)}},onHidden:function(){this.loop.pause(),this.events.emit(m.PAUSE)},pause:function(){var t=this.isPaused;this.isPaused=!0,t||this.events.emit(m.PAUSE)},onVisible:function(){this.loop.resume(),this.events.emit(m.RESUME)},resume:function(){var t=this.isPaused;this.isPaused=!1,t&&this.events.emit(m.RESUME)},onBlur:function(){this.hasFocus=!1,this.loop.blur()},onFocus:function(){this.hasFocus=!0,this.loop.focus()},getFrame:function(){return this.loop.frame},getTime:function(){return this.loop.now},destroy:function(t,e){void 0===e&&(e=!1),this.pendingDestroy=!0,this.removeCanvas=t,this.noReturn=e},runDestroy:function(){this.scene.destroy(),this.events.emit(m.DESTROY),this.events.removeAllListeners(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(o.remove(this.canvas),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas)),this.domContainer&&this.domContainer.parentNode&&this.domContainer.parentNode.removeChild(this.domContainer),this.loop.destroy(),this.pendingDestroy=!1}});t.exports=_},65898:(t,e,i)=>{var s=i(83419),r=i(35154),n=i(29747),o=i(43092),a=new s({initialize:function(t,e){this.game=t,this.raf=new o,this.started=!1,this.running=!1,this.minFps=r(e,"min",5),this.targetFps=r(e,"target",60),this.fpsLimit=r(e,"limit",0),this.hasFpsLimit=this.fpsLimit>0,this._limitRate=this.hasFpsLimit?1e3/this.fpsLimit:0,this._min=1e3/this.minFps,this._target=1e3/this.targetFps,this.actualFps=this.targetFps,this.nextFpsUpdate=0,this.framesThisSecond=0,this.callback=n,this.forceSetTimeOut=r(e,"forceSetTimeOut",!1),this.time=0,this.startTime=0,this.lastTime=0,this.frame=0,this.inFocus=!0,this._pauseTime=0,this._coolDown=0,this.delta=0,this.deltaIndex=0,this.deltaHistory=[],this.deltaSmoothingMax=r(e,"deltaHistory",10),this.panicMax=r(e,"panicMax",120),this.rawDelta=0,this.now=0,this.smoothStep=r(e,"smoothStep",!0)},blur:function(){this.inFocus=!1},focus:function(){this.inFocus=!0,this.resetDelta()},pause:function(){this._pauseTime=window.performance.now()},resume:function(){this.resetDelta(),this.startTime+=this.time-this._pauseTime},resetDelta:function(){var t=window.performance.now();this.time=t,this.lastTime=t,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0;for(var e=0;e0||!this.inFocus)&&(this._coolDown--,t=Math.min(t,this._target)),t>this._min&&(t=i[e],t=Math.min(t,this._min)),i[e]=t,this.deltaIndex++,this.deltaIndex>=s&&(this.deltaIndex=0);for(var r=0,n=0;n=this.nextFpsUpdate&&this.updateFPS(t),this.framesThisSecond++,this.delta>=this._limitRate&&(this.callback(t,this.delta),this.delta=0),this.lastTime=t,this.frame++},step:function(t){this.now=t;var e=Math.max(0,t-this.lastTime);this.rawDelta=e,this.time+=this.rawDelta,this.smoothStep&&(e=this.smoothDelta(e)),this.delta=e,t>=this.nextFpsUpdate&&this.updateFPS(t),this.framesThisSecond++,this.callback(t,e),this.lastTime=t,this.frame++},tick:function(){var t=window.performance.now();this.hasFpsLimit?this.stepLimitFPS(t):this.step(t)},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(t){void 0===t&&(t=!1);var e=window.performance.now();if(!this.running){t&&(this.startTime+=-this.lastTime+(this.lastTime+e));var i=this.hasFpsLimit?this.stepLimitFPS.bind(this):this.step.bind(this);this.raf.start(i,this.forceSetTimeOut,this._target),this.running=!0,this.nextFpsUpdate=e+1e3,this.framesThisSecond=0,this.fpsLimitTriggered=!1,this.tick()}},getDuration:function(){return Math.round(this.lastTime-this.startTime)/1e3},getDurationMS:function(){return Math.round(this.lastTime-this.startTime)},stop:function(){return this.running=!1,this.started=!1,this.raf.stop(),this},destroy:function(){this.stop(),this.raf.destroy(),this.raf=null,this.game=null,this.callback=null}});t.exports=a},51085:(t,e,i)=>{var s=i(8443);t.exports=function(t){var e,i=t.events;void 0!==document.hidden?e="visibilitychange":["webkit","moz","ms"].forEach((function(t){void 0!==document[t+"Hidden"]&&(document.hidden=function(){return document[t+"Hidden"]},e=t+"visibilitychange")})),e&&document.addEventListener(e,(function(t){document.hidden||"pause"===t.type?i.emit(s.HIDDEN):i.emit(s.VISIBLE)}),!1),window.onblur=function(){i.emit(s.BLUR)},window.onfocus=function(){i.emit(s.FOCUS)},window.focus&&t.config.autoFocus&&window.focus()}},97217:t=>{t.exports="blur"},47548:t=>{t.exports="boot"},19814:t=>{t.exports="contextlost"},68446:t=>{t.exports="destroy"},41700:t=>{t.exports="focus"},25432:t=>{t.exports="hidden"},65942:t=>{t.exports="pause"},59211:t=>{t.exports="postrender"},47789:t=>{t.exports="poststep"},39066:t=>{t.exports="prerender"},460:t=>{t.exports="prestep"},16175:t=>{t.exports="ready"},42331:t=>{t.exports="resume"},11966:t=>{t.exports="step"},32969:t=>{t.exports="systemready"},94830:t=>{t.exports="visible"},8443:(t,e,i)=>{t.exports={BLUR:i(97217),BOOT:i(47548),CONTEXT_LOST:i(19814),DESTROY:i(68446),FOCUS:i(41700),HIDDEN:i(25432),PAUSE:i(65942),POST_RENDER:i(59211),POST_STEP:i(47789),PRE_RENDER:i(39066),PRE_STEP:i(460),READY:i(16175),RESUME:i(42331),STEP:i(11966),SYSTEM_READY:i(32969),VISIBLE:i(94830)}},42857:(t,e,i)=>{t.exports={Config:i(69547),CreateRenderer:i(86054),DebugHeader:i(96391),Events:i(8443),TimeStep:i(65898),VisibilityHandler:i(51085)}},99584:(t,e,i)=>{var s=i(5290),r=i(27919),n=i(35154);t.exports=function(t){var e=n(t,"data",[]),i=n(t,"canvas",null),o=n(t,"palette",s),a=n(t,"pixelWidth",1),h=n(t,"pixelHeight",a),l=n(t,"resizeCanvas",!0),u=n(t,"clearCanvas",!0),c=n(t,"preRender",null),d=n(t,"postRender",null),p=Math.floor(Math.abs(e[0].length*a)),f=Math.floor(Math.abs(e.length*h));i||(i=r.create2D(this,p,f),l=!1,u=!1),l&&(i.width=p,i.height=f);var g=i.getContext("2d",{willReadFrequently:!0});u&&g.clearRect(0,0,p,f),c&&c(i,g);for(var m=0;m{t.exports={GenerateTexture:i(99584),Palettes:i(57763)}},5290:t=>{t.exports={0:"#000",1:"#9D9D9D",2:"#FFF",3:"#BE2633",4:"#E06F8B",5:"#493C2B",6:"#A46422",7:"#EB8931",8:"#F7E26B",9:"#2F484E",A:"#44891A",B:"#A3CE27",C:"#1B2632",D:"#005784",E:"#31A2F2",F:"#B2DCEF"}},23816:t=>{t.exports={0:"#000",1:"#fff",2:"#8b4131",3:"#7bbdc5",4:"#8b41ac",5:"#6aac41",6:"#3931a4",7:"#d5de73",8:"#945a20",9:"#5a4100",A:"#bd736a",B:"#525252",C:"#838383",D:"#acee8b",E:"#7b73de",F:"#acacac"}},9866:t=>{t.exports={0:"#000",1:"#2234d1",2:"#0c7e45",3:"#44aacc",4:"#8a3622",5:"#5c2e78",6:"#aa5c3d",7:"#b5b5b5",8:"#5e606e",9:"#4c81fb",A:"#6cd947",B:"#7be2f9",C:"#eb8a60",D:"#e23d69",E:"#ffd93f",F:"#fff"}},77552:t=>{t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#f5f4eb"}},92259:t=>{t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#fff"}},57763:(t,e,i)=>{t.exports={ARNE16:i(5290),C64:i(23816),CGA:i(9866),JMP:i(77552),MSX:i(92259)}},46728:(t,e,i)=>{var s=i(83419),r=i(36316),n=i(80021),o=i(26099),a=new s({Extends:n,initialize:function(t,e,i,s){n.call(this,"CubicBezierCurve"),Array.isArray(t)&&(s=new o(t[6],t[7]),i=new o(t[4],t[5]),e=new o(t[2],t[3]),t=new o(t[0],t[1])),this.p0=t,this.p1=e,this.p2=i,this.p3=s},getStartPoint:function(t){return void 0===t&&(t=new o),t.copy(this.p0)},getResolution:function(t){return t},getPoint:function(t,e){void 0===e&&(e=new o);var i=this.p0,s=this.p1,n=this.p2,a=this.p3;return e.set(r(t,i.x,s.x,n.x,a.x),r(t,i.y,s.y,n.y,a.y))},draw:function(t,e){void 0===e&&(e=32);var i=this.getPoints(e);t.beginPath(),t.moveTo(this.p0.x,this.p0.y);for(var s=1;s{var s=i(83419),r=i(19217),n=i(87841),o=i(26099),a=new s({initialize:function(t){this.type=t,this.defaultDivisions=5,this.arcLengthDivisions=100,this.cacheArcLengths=[],this.needsUpdate=!0,this.active=!0,this._tmpVec2A=new o,this._tmpVec2B=new o},draw:function(t,e){return void 0===e&&(e=32),t.strokePoints(this.getPoints(e))},getBounds:function(t,e){t||(t=new n),void 0===e&&(e=16);var i=this.getLength();e>i&&(e=i/2);var s=Math.max(1,Math.round(i/e));return r(this.getSpacedPoints(s),t)},getDistancePoints:function(t){var e=this.getLength(),i=Math.max(1,e/t);return this.getSpacedPoints(i)},getEndPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(1,t)},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(void 0===t&&(t=this.arcLengthDivisions),this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e,i=[],s=this.getPoint(0,this._tmpVec2A),r=0;i.push(0);for(var n=1;n<=t;n++)r+=(e=this.getPoint(n/t,this._tmpVec2B)).distance(s),i.push(r),s.copy(e);return this.cacheArcLengths=i,i},getPointAt:function(t,e){var i=this.getUtoTmapping(t);return this.getPoint(i,e)},getPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var s=0;s<=t;s++)i.push(this.getPoint(s/t));return i},getRandomPoint:function(t){return void 0===t&&(t=new o),this.getPoint(Math.random(),t)},getSpacedPoints:function(t,e,i){void 0===i&&(i=[]),t||(t=e?this.getLength()/e:this.defaultDivisions);for(var s=0;s<=t;s++){var r=this.getUtoTmapping(s/t,null,t);i.push(this.getPoint(r))}return i},getStartPoint:function(t){return void 0===t&&(t=new o),this.getPointAt(0,t)},getTangent:function(t,e){void 0===e&&(e=new o);var i=1e-4,s=t-i,r=t+i;return s<0&&(s=0),r>1&&(r=1),this.getPoint(s,this._tmpVec2A),this.getPoint(r,e),e.subtract(this._tmpVec2A).normalize()},getTangentAt:function(t,e){var i=this.getUtoTmapping(t);return this.getTangent(i,e)},getTFromDistance:function(t,e){return t<=0?0:this.getUtoTmapping(0,t,e)},getUtoTmapping:function(t,e,i){var s,r=this.getLengths(i),n=0,o=r.length;s=e?Math.min(e,r[o-1]):t*r[o-1];for(var a,h=0,l=o-1;h<=l;)if((a=r[n=Math.floor(h+(l-h)/2)]-s)<0)h=n+1;else{if(!(a>0)){l=n;break}l=n-1}if(r[n=l]===s)return n/(o-1);var u=r[n];return(n+(s-u)/(r[n+1]-u))/(o-1)},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()}});t.exports=a},73825:(t,e,i)=>{var s=i(83419),r=i(80021),n=i(39506),o=i(35154),a=i(43396),h=i(26099),l=new s({Extends:r,initialize:function(t,e,i,s,a,l,u,c){if("object"==typeof t){var d=t;t=o(d,"x",0),e=o(d,"y",0),i=o(d,"xRadius",0),s=o(d,"yRadius",i),a=o(d,"startAngle",0),l=o(d,"endAngle",360),u=o(d,"clockwise",!1),c=o(d,"rotation",0)}else void 0===s&&(s=i),void 0===a&&(a=0),void 0===l&&(l=360),void 0===u&&(u=!1),void 0===c&&(c=0);r.call(this,"EllipseCurve"),this.p0=new h(t,e),this._xRadius=i,this._yRadius=s,this._startAngle=n(a),this._endAngle=n(l),this._clockwise=u,this._rotation=n(c)},getStartPoint:function(t){return void 0===t&&(t=new h),this.getPoint(0,t)},getResolution:function(t){return 2*t},getPoint:function(t,e){void 0===e&&(e=new h);for(var i=2*Math.PI,s=this._endAngle-this._startAngle,r=Math.abs(s)i;)s-=i;s{var s=i(83419),r=i(80021),n=i(19217),o=i(87841),a=i(26099),h=new s({Extends:r,initialize:function(t,e){r.call(this,"LineCurve"),Array.isArray(t)&&(e=new a(t[2],t[3]),t=new a(t[0],t[1])),this.p0=t,this.p1=e,this.arcLengthDivisions=1},getBounds:function(t){return void 0===t&&(t=new o),n([this.p0,this.p1],t)},getStartPoint:function(t){return void 0===t&&(t=new a),t.copy(this.p0)},getResolution:function(t){return void 0===t&&(t=1),t},getPoint:function(t,e){return void 0===e&&(e=new a),1===t?e.copy(this.p1):(e.copy(this.p1).subtract(this.p0).scale(t).add(this.p0),e)},getPointAt:function(t,e){return this.getPoint(t,e)},getTangent:function(t,e){return void 0===e&&(e=new a),e.copy(this.p1).subtract(this.p0).normalize(),e},getUtoTmapping:function(t,e,i){var s;if(e){var r=this.getLengths(i),n=r[r.length-1];s=Math.min(e,n)/n}else s=t;return s},draw:function(t){return t.lineBetween(this.p0.x,this.p0.y,this.p1.x,this.p1.y),t},toJSON:function(){return{type:this.type,points:[this.p0.x,this.p0.y,this.p1.x,this.p1.y]}}});h.fromJSON=function(t){var e=t.points,i=new a(e[0],e[1]),s=new a(e[2],e[3]);return new h(i,s)},t.exports=h},14744:(t,e,i)=>{var s=i(83419),r=i(80021),n=i(32112),o=i(26099),a=new s({Extends:r,initialize:function(t,e,i){r.call(this,"QuadraticBezierCurve"),Array.isArray(t)&&(i=new o(t[4],t[5]),e=new o(t[2],t[3]),t=new o(t[0],t[1])),this.p0=t,this.p1=e,this.p2=i},getStartPoint:function(t){return void 0===t&&(t=new o),t.copy(this.p0)},getResolution:function(t){return t},getPoint:function(t,e){void 0===e&&(e=new o);var i=this.p0,s=this.p1,r=this.p2;return e.set(n(t,i.x,s.x,r.x),n(t,i.y,s.y,r.y))},draw:function(t,e){void 0===e&&(e=32);var i=this.getPoints(e);t.beginPath(),t.moveTo(this.p0.x,this.p0.y);for(var s=1;s{var s=i(87842),r=i(83419),n=i(80021),o=i(26099),a=new r({Extends:n,initialize:function(t){void 0===t&&(t=[]),n.call(this,"SplineCurve"),this.points=[],this.addPoints(t)},addPoints:function(t){for(var e=0;ei.length-2?i.length-1:n+1],c=i[n>i.length-3?i.length-1:n+2];return e.set(s(a,h.x,l.x,u.x,c.x),s(a,h.y,l.y,u.y,c.y))},toJSON:function(){for(var t=[],e=0;e{t.exports={Path:i(46669),MoveTo:i(68618),CubicBezier:i(46728),Curve:i(80021),Ellipse:i(73825),Line:i(33951),QuadraticBezier:i(14744),Spline:i(42534)}},68618:(t,e,i)=>{var s=i(83419),r=i(26099),n=new s({initialize:function(t,e){this.active=!1,this.p0=new r(t,e)},getPoint:function(t,e){return void 0===e&&(e=new r),e.copy(this.p0)},getPointAt:function(t,e){return this.getPoint(t,e)},getResolution:function(){return 1},getLength:function(){return 0},toJSON:function(){return{type:"MoveTo",points:[this.p0.x,this.p0.y]}}});t.exports=n},46669:(t,e,i)=>{var s=i(83419),r=i(46728),n=i(73825),o=i(39429),a=i(33951),h=i(68618),l=i(14744),u=i(87841),c=i(42534),d=i(26099),p=i(36383),f=new s({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.name="",this.defaultDivisions=12,this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new d,this._tmpVec2A=new d,this._tmpVec2B=new d,"object"==typeof t?this.fromJSON(t):this.startPoint.set(t,e)},add:function(t){return this.curves.push(t),this},circleTo:function(t,e,i){return void 0===e&&(e=!1),this.ellipseTo(t,t,0,360,e,i)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);return t.equals(e)||this.curves.push(new a(e,t)),this},cubicBezierTo:function(t,e,i,s,n,o){var a,h,l,u=this.getEndPoint();return t instanceof d?(a=t,h=e,l=i):(a=new d(i,s),h=new d(n,o),l=new d(t,e)),this.add(new r(u,a,h,l))},quadraticBezierTo:function(t,e,i,s){var r,n,o=this.getEndPoint();return t instanceof d?(r=t,n=e):(r=new d(i,s),n=new d(t,e)),this.add(new l(o,r,n))},draw:function(t,e){for(var i=0;i=e)return this.curves[s];s++}return null},getEndPoint:function(t){return void 0===t&&(t=new d),this.curves.length>0?this.curves[this.curves.length-1].getPoint(1,t):t.copy(this.startPoint),t},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},getPoint:function(t,e){void 0===e&&(e=new d);for(var i=t*this.getLength(),s=this.getCurveLengths(),r=0;r=i){var n=s[r]-i,o=this.curves[r],a=o.getLength(),h=0===a?0:1-n/a;return o.getPointAt(h,e)}r++}return null},getPoints:function(t,e){t||e||(t=this.defaultDivisions);for(var i,s=[],r=0;r1&&!s[s.length-1].equals(s[0])&&s.push(s[0]),s},getRandomPoint:function(t){return void 0===t&&(t=new d),this.getPoint(Math.random(),t)},getSpacedPoints:function(t){void 0===t&&(t=40);for(var e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e},getStartPoint:function(t){return void 0===t&&(t=new d),t.copy(this.startPoint)},getTangent:function(t,e){void 0===e&&(e=new d);for(var i=t*this.getLength(),s=this.getCurveLengths(),r=0;r=i){var n=s[r]-i,o=this.curves[r],a=o.getLength(),h=0===a?0:1-n/a;return o.getTangentAt(h,e)}r++}return null},lineTo:function(t,e){t instanceof d?this._tmpVec2B.copy(t):"object"==typeof t?this._tmpVec2B.setFromObject(t):this._tmpVec2B.set(t,e);var i=this.getEndPoint(this._tmpVec2A);return this.add(new a([i.x,i.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(t){return t.unshift(this.getEndPoint()),this.add(new c(t))},moveTo:function(t,e){return t instanceof d?this.add(new h(t.x,t.y)):this.add(new h(t,e))},toJSON:function(){for(var t=[],e=0;e{var s=i(83419),r=i(24882),n=new s({initialize:function(t,e){this.parent=t,this.events=e,e||(this.events=t.events?t.events:t),this.list={},this.values={},this._frozen=!1,!t.hasOwnProperty("sys")&&this.events&&this.events.once(r.DESTROY,this.destroy,this)},get:function(t){var e=this.list;if(Array.isArray(t)){for(var i=[],s=0;s{var s=i(83419),r=i(45893),n=i(37277),o=i(44594),a=new s({Extends:r,initialize:function(t){r.call(this,t,t.sys.events),this.scene=t,this.systems=t.sys,t.sys.events.once(o.BOOT,this.boot,this),t.sys.events.on(o.START,this.start,this)},boot:function(){this.events=this.systems.events,this.events.once(o.DESTROY,this.destroy,this)},start:function(){this.events.once(o.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.systems.events.off(o.SHUTDOWN,this.shutdown,this)},destroy:function(){r.prototype.destroy.call(this),this.events.off(o.START,this.start,this),this.scene=null,this.systems=null}});n.register("DataManagerPlugin",a,"data"),t.exports=a},10700:t=>{t.exports="changedata"},93608:t=>{t.exports="changedata-"},60883:t=>{t.exports="destroy"},69780:t=>{t.exports="removedata"},22166:t=>{t.exports="setdata"},24882:(t,e,i)=>{t.exports={CHANGE_DATA:i(10700),CHANGE_DATA_KEY:i(93608),DESTROY:i(60883),REMOVE_DATA:i(69780),SET_DATA:i(22166)}},44965:(t,e,i)=>{t.exports={DataManager:i(45893),DataManagerPlugin:i(63646),Events:i(24882)}},7098:(t,e,i)=>{var s=i(84148),r={flac:!1,aac:!1,audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};t.exports=function(){if("function"==typeof importScripts)return r;r.audioData=!!window.Audio,r.webAudio=!(!window.AudioContext&&!window.webkitAudioContext);var t=document.createElement("audio"),e=!!t.canPlayType;try{if(e){var i=function(e,i){var s=t.canPlayType("audio/"+e).replace(/^no$/,"");return i?Boolean(s||t.canPlayType("audio/"+i).replace(/^no$/,"")):Boolean(s)};if(r.ogg=i('ogg; codecs="vorbis"'),r.opus=i('ogg; codecs="opus"',"opus"),r.mp3=i("mpeg"),r.wav=i("wav"),r.m4a=i("x-m4a"),r.aac=i("aac"),r.flac=i("flac","x-flac"),r.webm=i('webm; codecs="vorbis"'),""!==t.canPlayType('audio/mp4; codecs="ec-3"'))if(s.edge)r.dolby=!0;else if(s.safari&&s.safariVersion>=9&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)){var n=parseInt(RegExp.$1,10),o=parseInt(RegExp.$2,10);(10===n&&o>=11||n>10)&&(r.dolby=!0)}}}catch(a){}return r}()},84148:(t,e,i)=>{var s,r=i(25892),n={chrome:!1,chromeVersion:0,edge:!1,firefox:!1,firefoxVersion:0,ie:!1,ieVersion:0,mobileSafari:!1,opera:!1,safari:!1,safariVersion:0,silk:!1,trident:!1,tridentVersion:0,es2019:!1};t.exports=(s=navigator.userAgent,/Edg\/\d+/.test(s)?(n.edge=!0,n.es2019=!0):/OPR/.test(s)?(n.opera=!0,n.es2019=!0):/Chrome\/(\d+)/.test(s)&&!r.windowsPhone?(n.chrome=!0,n.chromeVersion=parseInt(RegExp.$1,10),n.es2019=n.chromeVersion>69):/Firefox\D+(\d+)/.test(s)?(n.firefox=!0,n.firefoxVersion=parseInt(RegExp.$1,10),n.es2019=n.firefoxVersion>10):/AppleWebKit\/(?!.*CriOS)/.test(s)&&r.iOS?(n.mobileSafari=!0,n.es2019=!0):/MSIE (\d+\.\d+);/.test(s)?(n.ie=!0,n.ieVersion=parseInt(RegExp.$1,10)):/Version\/(\d+\.\d+(\.\d+)?) Safari/.test(s)&&!r.windowsPhone?(n.safari=!0,n.safariVersion=parseInt(RegExp.$1,10),n.es2019=n.safariVersion>10):/Trident\/(\d+\.\d+)(.*)rv:(\d+\.\d+)/.test(s)&&(n.ie=!0,n.trident=!0,n.tridentVersion=parseInt(RegExp.$1,10),n.ieVersion=parseInt(RegExp.$3,10)),/Silk/.test(s)&&(n.silk=!0),n)},89289:(t,e,i)=>{var s,r,n,o=i(27919),a={supportInverseAlpha:!1,supportNewBlendModes:!1};t.exports=("function"!=typeof importScripts&&void 0!==document&&(a.supportNewBlendModes=(s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",r="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",(n=new Image).onload=function(){var t=new Image;t.onload=function(){var e=o.create2D(t,6).getContext("2d",{willReadFrequently:!0});if(e.globalCompositeOperation="multiply",e.drawImage(n,0,0),e.drawImage(t,2,0),!e.getImageData(2,0,1,1))return!1;var i=e.getImageData(2,0,1,1).data;o.remove(t),a.supportNewBlendModes=255===i[0]&&0===i[1]&&0===i[2]},t.src=s+"/wCKxvRF"+r},n.src=s+"AP804Oa6"+r,!1),a.supportInverseAlpha=function(){var t=o.create2D(this,2).getContext("2d",{willReadFrequently:!0});t.fillStyle="rgba(10, 20, 30, 0.5)",t.fillRect(0,0,1,1);var e=t.getImageData(0,0,1,1);if(null===e)return!1;t.putImageData(e,1,0);var i=t.getImageData(1,0,1,1),s=i.data[0]===e.data[0]&&i.data[1]===e.data[1]&&i.data[2]===e.data[2]&&i.data[3]===e.data[3];return o.remove(this),s}()),a)},89357:(t,e,i)=>{var s=i(25892),r=i(84148),n=i(27919),o={canvas:!1,canvasBitBltShift:null,file:!1,fileSystem:!1,getUserMedia:!0,littleEndian:!1,localStorage:!1,pointerLock:!1,stableSort:!1,support32bit:!1,vibration:!1,webGL:!1,worker:!1};t.exports=function(){if("function"==typeof importScripts)return o;o.canvas=!!window.CanvasRenderingContext2D;try{o.localStorage=!!localStorage.getItem}catch(h){o.localStorage=!1}o.file=!!(window.File&&window.FileReader&&window.FileList&&window.Blob),o.fileSystem=!!window.requestFileSystem;var t,e,i,a=!1;return o.webGL=function(){if(window.WebGLRenderingContext)try{var t=n.createWebGL(this),e=t.getContext("webgl")||t.getContext("experimental-webgl"),i=n.create2D(this),s=i.getContext("2d",{willReadFrequently:!0}).createImageData(1,1);return a=s.data instanceof Uint8ClampedArray,n.remove(t),n.remove(i),!!e}catch(r){return!1}return!1}(),o.worker=!!window.Worker,o.pointerLock="pointerLockElement"in document||"mozPointerLockElement"in document||"webkitPointerLockElement"in document,navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia||navigator.oGetUserMedia,window.URL=window.URL||window.webkitURL||window.mozURL||window.msURL,o.getUserMedia=o.getUserMedia&&!!navigator.getUserMedia&&!!window.URL,r.firefox&&r.firefoxVersion<21&&(o.getUserMedia=!1),!s.iOS&&(r.ie||r.firefox||r.chrome)&&(o.canvasBitBltShift=!0),(r.safari||r.mobileSafari)&&(o.canvasBitBltShift=!1),navigator.vibrate=navigator.vibrate||navigator.webkitVibrate||navigator.mozVibrate||navigator.msVibrate,navigator.vibrate&&(o.vibration=!0),"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint32Array&&(o.littleEndian=(t=new ArrayBuffer(4),e=new Uint8Array(t),i=new Uint32Array(t),e[0]=161,e[1]=178,e[2]=195,e[3]=212,3569595041===i[0]||2712847316!==i[0]&&null)),o.support32bit="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof Int32Array&&null!==o.littleEndian&&a,o}()},91639:t=>{var e={available:!1,cancel:"",keyboard:!1,request:""};t.exports=function(){if("function"==typeof importScripts)return e;var t,i="Fullscreen",s="FullScreen",r=["request"+i,"request"+s,"webkitRequest"+i,"webkitRequest"+s,"msRequest"+i,"msRequest"+s,"mozRequest"+s,"mozRequest"+i];for(t=0;t{var s=i(84148),r={gamepads:!1,mspointer:!1,touch:!1,wheelEvent:null};t.exports=("function"==typeof importScripts||(("ontouchstart"in document.documentElement||navigator.maxTouchPoints&&navigator.maxTouchPoints>=1)&&(r.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(r.mspointer=!0),navigator.getGamepads&&(r.gamepads=!0),"onwheel"in window||s.ie&&"WheelEvent"in window?r.wheelEvent="wheel":"onmousewheel"in window?r.wheelEvent="mousewheel":s.firefox&&"MouseScrollEvent"in window&&(r.wheelEvent="DOMMouseScroll")),r)},25892:t=>{var e={android:!1,chromeOS:!1,cordova:!1,crosswalk:!1,desktop:!1,ejecta:!1,electron:!1,iOS:!1,iOSVersion:0,iPad:!1,iPhone:!1,kindle:!1,linux:!1,macOS:!1,node:!1,nodeWebkit:!1,pixelRatio:1,webApp:!1,windows:!1,windowsPhone:!1};t.exports=function(){if("function"==typeof importScripts)return e;var t=navigator.userAgent;/Windows/.test(t)?e.windows=!0:/Mac OS/.test(t)&&!/like Mac OS/.test(t)?navigator.maxTouchPoints&&navigator.maxTouchPoints>2?(e.iOS=!0,e.iPad=!0,navigator.appVersion.match(/Version\/(\d+)/),e.iOSVersion=parseInt(RegExp.$1,10)):e.macOS=!0:/Android/.test(t)?e.android=!0:/Linux/.test(t)?e.linux=!0:/iP[ao]d|iPhone/i.test(t)?(e.iOS=!0,navigator.appVersion.match(/OS (\d+)/),e.iOSVersion=parseInt(RegExp.$1,10),e.iPhone=-1!==t.toLowerCase().indexOf("iphone"),e.iPad=-1!==t.toLowerCase().indexOf("ipad")):/Kindle/.test(t)||/\bKF[A-Z][A-Z]+/.test(t)||/Silk.*Mobile Safari/.test(t)?e.kindle=!0:/CrOS/.test(t)&&(e.chromeOS=!0),(/Windows Phone/i.test(t)||/IEMobile/i.test(t))&&(e.android=!1,e.iOS=!1,e.macOS=!1,e.windows=!0,e.windowsPhone=!0);var i=/Silk/.test(t);return(e.windows||e.macOS||e.linux&&!i||e.chromeOS)&&(e.desktop=!0),(e.windowsPhone||/Windows NT/i.test(t)&&/Touch/i.test(t))&&(e.desktop=!1),navigator.standalone&&(e.webApp=!0),"function"!=typeof importScripts&&(void 0!==window.cordova&&(e.cordova=!0),void 0!==window.ejecta&&(e.ejecta=!0)),"undefined"!=typeof process&&process.versions&&process.versions.node&&(e.node=!0),e.node&&"object"==typeof process.versions&&(e.nodeWebkit=!!process.versions["node-webkit"],e.electron=!!process.versions.electron),/Crosswalk/.test(t)&&(e.crosswalk=!0),e.pixelRatio=window.devicePixelRatio||1,e}()},43267:(t,e,i)=>{var s=i(95540),r={h264:!1,hls:!1,mp4:!1,m4v:!1,ogg:!1,vp9:!1,webm:!1,hasRequestVideoFrame:!1};t.exports=function(){if("function"==typeof importScripts)return r;var t=document.createElement("video"),e=!!t.canPlayType,i=/^no$/;try{e&&(t.canPlayType('video/ogg; codecs="theora"').replace(i,"")&&(r.ogg=!0),t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(i,"")&&(r.h264=!0,r.mp4=!0),t.canPlayType("video/x-m4v").replace(i,"")&&(r.m4v=!0),t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(i,"")&&(r.webm=!0),t.canPlayType('video/webm; codecs="vp9"').replace(i,"")&&(r.vp9=!0),t.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(i,"")&&(r.hls=!0))}catch(n){}return t.parentNode&&t.parentNode.removeChild(t),r.getVideoURL=function(t){Array.isArray(t)||(t=[t]);for(var e=0;e{t.exports={os:i(25892),browser:i(84148),features:i(89357),input:i(31784),audio:i(7098),video:i(43267),fullscreen:i(91639),canvasFeatures:i(89289)}},89422:(t,e,i)=>{var s=i(83419),r=new Float32Array(20),n=new s({initialize:function(){this._matrix=new Float32Array(20),this.alpha=1,this._dirty=!0,this._data=new Float32Array(20),this.reset()},set:function(t){return this._matrix.set(t),this._dirty=!0,this},reset:function(){var t=this._matrix;return t.fill(0),t[0]=1,t[6]=1,t[12]=1,t[18]=1,this.alpha=1,this._dirty=!0,this},getData:function(){var t=this._data;return this._dirty&&(t.set(this._matrix),t[4]/=255,t[9]/=255,t[14]/=255,t[19]/=255,this._dirty=!1),t},brightness:function(t,e){void 0===t&&(t=0),void 0===e&&(e=!1);var i=t;return this.multiply([i,0,0,0,0,0,i,0,0,0,0,0,i,0,0,0,0,0,1,0],e)},saturate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=!1);var i=2*t/3+1,s=-.5*(i-1);return this.multiply([i,s,s,0,0,s,i,s,0,0,s,s,i,0,0,0,0,0,1,0],e)},desaturate:function(t){return void 0===t&&(t=!1),this.saturate(-1,t)},hue:function(t,e){void 0===t&&(t=0),void 0===e&&(e=!1),t=t/180*Math.PI;var i=Math.cos(t),s=Math.sin(t),r=.213,n=.715,o=.072;return this.multiply([r+.787*i+s*-r,n+i*-n+s*-n,o+i*-o+.928*s,0,0,r+i*-r+.143*s,n+i*(1-n)+.14*s,o+i*-o+-.283*s,0,0,r+i*-r+-.787*s,n+i*-n+s*n,o+.928*i+s*o,0,0,0,0,0,1,0],e)},grayscale:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=!1),this.saturate(-t,e)},blackWhite:function(t){return void 0===t&&(t=!1),this.multiply(n.BLACK_WHITE,t)},contrast:function(t,e){void 0===t&&(t=0),void 0===e&&(e=!1);var i=t+1,s=-.5*(i-1);return this.multiply([i,0,0,0,s,0,i,0,0,s,0,0,i,0,s,0,0,0,1,0],e)},negative:function(t){return void 0===t&&(t=!1),this.multiply(n.NEGATIVE,t)},desaturateLuminance:function(t){return void 0===t&&(t=!1),this.multiply(n.DESATURATE_LUMINANCE,t)},sepia:function(t){return void 0===t&&(t=!1),this.multiply(n.SEPIA,t)},night:function(t,e){return void 0===t&&(t=.1),void 0===e&&(e=!1),this.multiply([-2*t,-t,0,0,0,-t,0,t,0,0,0,t,2*t,0,0,0,0,0,1,0],e)},lsd:function(t){return void 0===t&&(t=!1),this.multiply(n.LSD,t)},brown:function(t){return void 0===t&&(t=!1),this.multiply(n.BROWN,t)},vintagePinhole:function(t){return void 0===t&&(t=!1),this.multiply(n.VINTAGE,t)},kodachrome:function(t){return void 0===t&&(t=!1),this.multiply(n.KODACHROME,t)},technicolor:function(t){return void 0===t&&(t=!1),this.multiply(n.TECHNICOLOR,t)},polaroid:function(t){return void 0===t&&(t=!1),this.multiply(n.POLAROID,t)},shiftToBGR:function(t){return void 0===t&&(t=!1),this.multiply(n.SHIFT_BGR,t)},multiply:function(t,e){void 0===e&&(e=!1),e||this.reset();var i=this._matrix,s=r;return s.set(i),i.set([s[0]*t[0]+s[1]*t[5]+s[2]*t[10]+s[3]*t[15],s[0]*t[1]+s[1]*t[6]+s[2]*t[11]+s[3]*t[16],s[0]*t[2]+s[1]*t[7]+s[2]*t[12]+s[3]*t[17],s[0]*t[3]+s[1]*t[8]+s[2]*t[13]+s[3]*t[18],s[0]*t[4]+s[1]*t[9]+s[2]*t[14]+s[3]*t[19]+s[4],s[5]*t[0]+s[6]*t[5]+s[7]*t[10]+s[8]*t[15],s[5]*t[1]+s[6]*t[6]+s[7]*t[11]+s[8]*t[16],s[5]*t[2]+s[6]*t[7]+s[7]*t[12]+s[8]*t[17],s[5]*t[3]+s[6]*t[8]+s[7]*t[13]+s[8]*t[18],s[5]*t[4]+s[6]*t[9]+s[7]*t[14]+s[8]*t[19]+s[9],s[10]*t[0]+s[11]*t[5]+s[12]*t[10]+s[13]*t[15],s[10]*t[1]+s[11]*t[6]+s[12]*t[11]+s[13]*t[16],s[10]*t[2]+s[11]*t[7]+s[12]*t[12]+s[13]*t[17],s[10]*t[3]+s[11]*t[8]+s[12]*t[13]+s[13]*t[18],s[10]*t[4]+s[11]*t[9]+s[12]*t[14]+s[13]*t[19]+s[14],s[15]*t[0]+s[16]*t[5]+s[17]*t[10]+s[18]*t[15],s[15]*t[1]+s[16]*t[6]+s[17]*t[11]+s[18]*t[16],s[15]*t[2]+s[16]*t[7]+s[17]*t[12]+s[18]*t[17],s[15]*t[3]+s[16]*t[8]+s[17]*t[13]+s[18]*t[18],s[15]*t[4]+s[16]*t[9]+s[17]*t[14]+s[18]*t[19]+s[19]]),this._dirty=!0,this}});n.BLACK_WHITE=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],n.NEGATIVE=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],n.DESATURATE_LUMINANCE=[.2764723,.929708,.0938197,0,-37.1,.2764723,.929708,.0938197,0,-37.1,.2764723,.929708,.0938197,0,-37.1,0,0,0,1,0],n.SEPIA=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],n.LSD=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],n.BROWN=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],n.VINTAGE=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],n.KODACHROME=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0],n.TECHNICOLOR=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0],n.POLAROID=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],n.SHIFT_BGR=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],t.exports=n},51767:(t,e,i)=>{var s=i(83419),r=i(29747),n=new s({initialize:function(t,e,i){this._rgb=[0,0,0],this.onChangeCallback=r,this.dirty=!1,this.set(t,e,i)},set:function(t,e,i){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),this._rgb=[t,e,i],this.onChange(),this},equals:function(t,e,i){var s=this._rgb;return s[0]===t&&s[1]===e&&s[2]===i},onChange:function(){this.dirty=!0;var t=this._rgb;this.onChangeCallback.call(this,t[0],t[1],t[2])},r:{get:function(){return this._rgb[0]},set:function(t){this._rgb[0]=t,this.onChange()}},g:{get:function(){return this._rgb[1]},set:function(t){this._rgb[1]=t,this.onChange()}},b:{get:function(){return this._rgb[2]},set:function(t){this._rgb[2]=t,this.onChange()}},destroy:function(){this.onChangeCallback=null}});t.exports=n},60461:t=>{t.exports={TOP_LEFT:0,TOP_CENTER:1,TOP_RIGHT:2,LEFT_TOP:3,LEFT_CENTER:4,LEFT_BOTTOM:5,CENTER:6,RIGHT_TOP:7,RIGHT_CENTER:8,RIGHT_BOTTOM:9,BOTTOM_LEFT:10,BOTTOM_CENTER:11,BOTTOM_RIGHT:12}},54312:(t,e,i)=>{var s=i(62235),r=i(35893),n=i(86327),o=i(88417);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,r(e)+i),n(t,s(e)+a),t}},46768:(t,e,i)=>{var s=i(62235),r=i(26541),n=i(86327),o=i(385);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,r(e)-i),n(t,s(e)+a),t}},35827:(t,e,i)=>{var s=i(62235),r=i(54380),n=i(86327),o=i(40136);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,r(e)+i),n(t,s(e)+a),t}},46871:(t,e,i)=>{var s=i(66786),r=i(35893),n=i(7702);t.exports=function(t,e,i,o){return void 0===i&&(i=0),void 0===o&&(o=0),s(t,r(e)+i,n(e)+o),t}},5198:(t,e,i)=>{var s=i(7702),r=i(26541),n=i(20786),o=i(385);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,r(e)-i),n(t,s(e)+a),t}},11879:(t,e,i)=>{var s=i(60461),r=[];r[s.BOTTOM_CENTER]=i(54312),r[s.BOTTOM_LEFT]=i(46768),r[s.BOTTOM_RIGHT]=i(35827),r[s.CENTER]=i(46871),r[s.LEFT_CENTER]=i(5198),r[s.RIGHT_CENTER]=i(80503),r[s.TOP_CENTER]=i(89698),r[s.TOP_LEFT]=i(922),r[s.TOP_RIGHT]=i(21373),r[s.LEFT_BOTTOM]=r[s.BOTTOM_LEFT],r[s.LEFT_TOP]=r[s.TOP_LEFT],r[s.RIGHT_BOTTOM]=r[s.BOTTOM_RIGHT],r[s.RIGHT_TOP]=r[s.TOP_RIGHT],t.exports=function(t,e,i,s,n){return r[i](t,e,s,n)}},80503:(t,e,i)=>{var s=i(7702),r=i(54380),n=i(20786),o=i(40136);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,r(e)+i),n(t,s(e)+a),t}},89698:(t,e,i)=>{var s=i(35893),r=i(17717),n=i(88417),o=i(66737);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),n(t,s(e)+i),o(t,r(e)-a),t}},922:(t,e,i)=>{var s=i(26541),r=i(17717),n=i(385),o=i(66737);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),n(t,s(e)-i),o(t,r(e)-a),t}},21373:(t,e,i)=>{var s=i(54380),r=i(17717),n=i(40136),o=i(66737);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),n(t,s(e)+i),o(t,r(e)-a),t}},91660:(t,e,i)=>{t.exports={BottomCenter:i(54312),BottomLeft:i(46768),BottomRight:i(35827),Center:i(46871),LeftCenter:i(5198),QuickSet:i(11879),RightCenter:i(80503),TopCenter:i(89698),TopLeft:i(922),TopRight:i(21373)}},71926:(t,e,i)=>{var s=i(60461),r=i(79291),n={In:i(91660),To:i(16694)};n=r(!1,n,s),t.exports=n},21578:(t,e,i)=>{var s=i(62235),r=i(35893),n=i(88417),o=i(66737);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),n(t,r(e)+i),o(t,s(e)+a),t}},10210:(t,e,i)=>{var s=i(62235),r=i(26541),n=i(385),o=i(66737);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),n(t,r(e)-i),o(t,s(e)+a),t}},82341:(t,e,i)=>{var s=i(62235),r=i(54380),n=i(40136),o=i(66737);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),n(t,r(e)+i),o(t,s(e)+a),t}},87958:(t,e,i)=>{var s=i(62235),r=i(26541),n=i(86327),o=i(40136);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,r(e)-i),n(t,s(e)+a),t}},40080:(t,e,i)=>{var s=i(7702),r=i(26541),n=i(20786),o=i(40136);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,r(e)-i),n(t,s(e)+a),t}},88466:(t,e,i)=>{var s=i(26541),r=i(17717),n=i(40136),o=i(66737);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),n(t,s(e)-i),o(t,r(e)-a),t}},38829:(t,e,i)=>{var s=i(60461),r=[];r[s.BOTTOM_CENTER]=i(21578),r[s.BOTTOM_LEFT]=i(10210),r[s.BOTTOM_RIGHT]=i(82341),r[s.LEFT_BOTTOM]=i(87958),r[s.LEFT_CENTER]=i(40080),r[s.LEFT_TOP]=i(88466),r[s.RIGHT_BOTTOM]=i(19211),r[s.RIGHT_CENTER]=i(34609),r[s.RIGHT_TOP]=i(48741),r[s.TOP_CENTER]=i(49440),r[s.TOP_LEFT]=i(81288),r[s.TOP_RIGHT]=i(61323),t.exports=function(t,e,i,s,n){return r[i](t,e,s,n)}},19211:(t,e,i)=>{var s=i(62235),r=i(54380),n=i(86327),o=i(385);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,r(e)+i),n(t,s(e)+a),t}},34609:(t,e,i)=>{var s=i(7702),r=i(54380),n=i(20786),o=i(385);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,r(e)+i),n(t,s(e)+a),t}},48741:(t,e,i)=>{var s=i(54380),r=i(17717),n=i(385),o=i(66737);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),n(t,s(e)+i),o(t,r(e)-a),t}},49440:(t,e,i)=>{var s=i(35893),r=i(17717),n=i(86327),o=i(88417);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),n(t,r(e)-a),t}},81288:(t,e,i)=>{var s=i(26541),r=i(17717),n=i(86327),o=i(385);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)-i),n(t,r(e)-a),t}},61323:(t,e,i)=>{var s=i(54380),r=i(17717),n=i(86327),o=i(40136);t.exports=function(t,e,i,a){return void 0===i&&(i=0),void 0===a&&(a=0),o(t,s(e)+i),n(t,r(e)-a),t}},16694:(t,e,i)=>{t.exports={BottomCenter:i(21578),BottomLeft:i(10210),BottomRight:i(82341),LeftBottom:i(87958),LeftCenter:i(40080),LeftTop:i(88466),QuickSet:i(38829),RightBottom:i(19211),RightCenter:i(34609),RightTop:i(48741),TopCenter:i(49440),TopLeft:i(81288),TopRight:i(61323)}},66786:(t,e,i)=>{var s=i(88417),r=i(20786);t.exports=function(t,e,i){return s(t,e),r(t,i)}},62235:t=>{t.exports=function(t){return t.y+t.height-t.height*t.originY}},72873:(t,e,i)=>{var s=i(62235),r=i(26541),n=i(54380),o=i(17717),a=i(87841);t.exports=function(t,e){void 0===e&&(e=new a);var i=r(t),h=o(t);return e.x=i,e.y=h,e.width=n(t)-i,e.height=s(t)-h,e}},35893:t=>{t.exports=function(t){return t.x-t.width*t.originX+.5*t.width}},7702:t=>{t.exports=function(t){return t.y-t.height*t.originY+.5*t.height}},26541:t=>{t.exports=function(t){return t.x-t.width*t.originX}},87431:t=>{t.exports=function(t){return t.width*t.originX}},46928:t=>{t.exports=function(t){return t.height*t.originY}},54380:t=>{t.exports=function(t){return t.x+t.width-t.width*t.originX}},17717:t=>{t.exports=function(t){return t.y-t.height*t.originY}},86327:t=>{t.exports=function(t,e){return t.y=e-t.height+t.height*t.originY,t}},88417:t=>{t.exports=function(t,e){var i=t.width*t.originX;return t.x=e+i-.5*t.width,t}},20786:t=>{t.exports=function(t,e){var i=t.height*t.originY;return t.y=e+i-.5*t.height,t}},385:t=>{t.exports=function(t,e){return t.x=e+t.width*t.originX,t}},40136:t=>{t.exports=function(t,e){return t.x=e-t.width+t.width*t.originX,t}},66737:t=>{t.exports=function(t,e){return t.y=e+t.height*t.originY,t}},58724:(t,e,i)=>{t.exports={CenterOn:i(66786),GetBottom:i(62235),GetBounds:i(72873),GetCenterX:i(35893),GetCenterY:i(7702),GetLeft:i(26541),GetOffsetX:i(87431),GetOffsetY:i(46928),GetRight:i(54380),GetTop:i(17717),SetBottom:i(86327),SetCenterX:i(88417),SetCenterY:i(20786),SetLeft:i(385),SetRight:i(40136),SetTop:i(66737)}},20623:t=>{t.exports={setCrisp:function(t){return["optimizeSpeed","-moz-crisp-edges","-o-crisp-edges","-webkit-optimize-contrast","optimize-contrast","crisp-edges","pixelated"].forEach((function(e){t.style["image-rendering"]=e})),t.style.msInterpolationMode="nearest-neighbor",t},setBicubic:function(t){return t.style["image-rendering"]="auto",t.style.msInterpolationMode="bicubic",t}}},27919:(t,e,i)=>{var s,r,n,o=i(8054),a=i(68703),h=[],l=!1;t.exports=(n=function(){var t=0;return h.forEach((function(e){e.parent&&t++})),t},{create2D:function(t,e,i){return s(t,e,i,o.CANVAS)},create:s=function(t,e,i,s,n){var u;void 0===e&&(e=1),void 0===i&&(i=1),void 0===s&&(s=o.CANVAS),void 0===n&&(n=!1);var c=r(s);return null===c?(c={parent:t,canvas:document.createElement("canvas"),type:s},s===o.CANVAS&&h.push(c),u=c.canvas):(c.parent=t,u=c.canvas),n&&(c.parent=u),u.width=e,u.height=i,l&&s===o.CANVAS&&a.disable(u.getContext("2d",{willReadFrequently:!1})),u},createWebGL:function(t,e,i){return s(t,e,i,o.WEBGL)},disableSmoothing:function(){l=!0},enableSmoothing:function(){l=!1},first:r=function(t){if(void 0===t&&(t=o.CANVAS),t===o.WEBGL)return null;for(var e=0;e{var e,i="";t.exports={disable:function(t){return""===i&&(i=e(t)),i&&(t[i]=!1),t},enable:function(t){return""===i&&(i=e(t)),i&&(t[i]=!0),t},getPrefix:e=function(t){for(var e=["i","webkitI","msI","mozI","oI"],i=0;i{t.exports=function(t,e){return void 0===e&&(e="none"),t.style.msTouchAction=e,t.style["ms-touch-action"]=e,t.style["touch-action"]=e,t}},91610:t=>{t.exports=function(t,e){return void 0===e&&(e="none"),["-webkit-","-khtml-","-moz-","-ms-",""].forEach((function(i){t.style[i+"user-select"]=e})),t.style["-webkit-touch-callout"]=e,t.style["-webkit-tap-highlight-color"]="rgba(0, 0, 0, 0)",t}},26253:(t,e,i)=>{t.exports={CanvasInterpolation:i(20623),CanvasPool:i(27919),Smoothing:i(68703),TouchAction:i(65208),UserSelect:i(91610)}},40987:(t,e,i)=>{var s=i(83419),r=i(37589),n=i(1e3),o=i(7537),a=i(87837),h=new s({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=255),this.r=0,this.g=0,this.b=0,this.a=255,this._h=0,this._s=0,this._v=0,this._locked=!1,this.gl=[0,0,0,1],this._color=0,this._color32=0,this._rgba="",this.setTo(t,e,i,s)},transparent:function(){return this._locked=!0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this._locked=!1,this.update(!0)},setTo:function(t,e,i,s,r){return void 0===s&&(s=255),void 0===r&&(r=!0),this._locked=!0,this.red=t,this.green=e,this.blue=i,this.alpha=s,this._locked=!1,this.update(r)},setGLTo:function(t,e,i,s){return void 0===s&&(s=1),this._locked=!0,this.redGL=t,this.greenGL=e,this.blueGL=i,this.alphaGL=s,this._locked=!1,this.update(!0)},setFromRGB:function(t){return this._locked=!0,this.red=t.r,this.green=t.g,this.blue=t.b,t.hasOwnProperty("a")&&(this.alpha=t.a),this._locked=!1,this.update(!0)},setFromHSV:function(t,e,i){return o(t,e,i,this)},update:function(t){if(void 0===t&&(t=!1),this._locked)return this;var e=this.r,i=this.g,s=this.b,o=this.a;return this._color=r(e,i,s),this._color32=n(e,i,s,o),this._rgba="rgba("+e+","+i+","+s+","+o/255+")",t&&a(e,i,s,this),this},updateHSV:function(){var t=this.r,e=this.g,i=this.b;return a(t,e,i,this),this},clone:function(){return new h(this.r,this.g,this.b,this.a)},gray:function(t){return this.setTo(t,t,t)},random:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t)),s=Math.floor(t+Math.random()*(e-t)),r=Math.floor(t+Math.random()*(e-t));return this.setTo(i,s,r)},randomGray:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t));return this.setTo(i,i,i)},saturate:function(t){return this.s+=t/100,this},desaturate:function(t){return this.s-=t/100,this},lighten:function(t){return this.v+=t/100,this},darken:function(t){return this.v-=t/100,this},brighten:function(t){var e=this.r,i=this.g,s=this.b;return e=Math.max(0,Math.min(255,e-Math.round(-t/100*255))),i=Math.max(0,Math.min(255,i-Math.round(-t/100*255))),s=Math.max(0,Math.min(255,s-Math.round(-t/100*255))),this.setTo(e,i,s)},color:{get:function(){return this._color}},color32:{get:function(){return this._color32}},rgba:{get:function(){return this._rgba}},redGL:{get:function(){return this.gl[0]},set:function(t){this.gl[0]=Math.min(Math.abs(t),1),this.r=Math.floor(255*this.gl[0]),this.update(!0)}},greenGL:{get:function(){return this.gl[1]},set:function(t){this.gl[1]=Math.min(Math.abs(t),1),this.g=Math.floor(255*this.gl[1]),this.update(!0)}},blueGL:{get:function(){return this.gl[2]},set:function(t){this.gl[2]=Math.min(Math.abs(t),1),this.b=Math.floor(255*this.gl[2]),this.update(!0)}},alphaGL:{get:function(){return this.gl[3]},set:function(t){this.gl[3]=Math.min(Math.abs(t),1),this.a=Math.floor(255*this.gl[3]),this.update()}},red:{get:function(){return this.r},set:function(t){t=Math.floor(Math.abs(t)),this.r=Math.min(t,255),this.gl[0]=t/255,this.update(!0)}},green:{get:function(){return this.g},set:function(t){t=Math.floor(Math.abs(t)),this.g=Math.min(t,255),this.gl[1]=t/255,this.update(!0)}},blue:{get:function(){return this.b},set:function(t){t=Math.floor(Math.abs(t)),this.b=Math.min(t,255),this.gl[2]=t/255,this.update(!0)}},alpha:{get:function(){return this.a},set:function(t){t=Math.floor(Math.abs(t)),this.a=Math.min(t,255),this.gl[3]=t/255,this.update()}},h:{get:function(){return this._h},set:function(t){this._h=t,o(t,this._s,this._v,this)}},s:{get:function(){return this._s},set:function(t){this._s=t,o(this._h,t,this._v,this)}},v:{get:function(){return this._v},set:function(t){this._v=t,o(this._h,this._s,t,this)}}});t.exports=h},92728:(t,e,i)=>{var s=i(37589);t.exports=function(t){void 0===t&&(t=1024);var e,i=[],r=255,n=255,o=0,a=0;for(e=0;e<=r;e++)i.push({r:n,g:e,b:a,color:s(n,e,a)});for(o=255,e=r;e>=0;e--)i.push({r:e,g:o,b:a,color:s(e,o,a)});for(n=0,e=0;e<=r;e++,o--)i.push({r:n,g:o,b:e,color:s(n,o,e)});for(o=0,a=255,e=0;e<=r;e++,a--,n++)i.push({r:n,g:o,b:a,color:s(n,o,a)});if(1024===t)return i;var h=[],l=0,u=1024/t;for(e=0;e{t.exports=function(t){var e={r:t>>16&255,g:t>>8&255,b:255&t,a:255};return t>16777215&&(e.a=t>>>24),e}},62957:t=>{t.exports=function(t){var e=t.toString(16);return 1===e.length?"0"+e:e}},37589:t=>{t.exports=function(t,e,i){return t<<16|e<<8|i}},1e3:t=>{t.exports=function(t,e,i,s){return s<<24|t<<16|e<<8|i}},62183:(t,e,i)=>{var s=i(40987),r=i(89528);t.exports=function(t,e,i){var n=i,o=i,a=i;if(0!==e){var h=i<.5?i*(1+e):i+e-i*e,l=2*i-h;n=r(l,h,t+1/3),o=r(l,h,t),a=r(l,h,t-1/3)}return(new s).setGLTo(n,o,a,1)}},27939:(t,e,i)=>{var s=i(7537);t.exports=function(t,e){void 0===t&&(t=1),void 0===e&&(e=1);for(var i=[],r=0;r<=359;r++)i.push(s(r/359,t,e));return i}},7537:(t,e,i)=>{var s=i(37589);function r(t,e,i,s){var r=(t+6*e)%6,n=Math.min(r,4-r,1);return Math.round(255*(s-s*i*Math.max(0,n)))}t.exports=function(t,e,i,n){void 0===e&&(e=1),void 0===i&&(i=1);var o=r(5,t,e,i),a=r(3,t,e,i),h=r(1,t,e,i);return n?n.setTo?n.setTo(o,a,h,n.alpha,!0):(n.r=o,n.g=a,n.b=h,n.color=s(o,a,h),n):{r:o,g:a,b:h,color:s(o,a,h)}}},70238:(t,e,i)=>{var s=i(40987);t.exports=function(t){var e=new s;t=t.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,i,s){return e+e+i+i+s+s}));var i=/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(i){var r=parseInt(i[1],16),n=parseInt(i[2],16),o=parseInt(i[3],16);e.setTo(r,n,o)}return e}},89528:t=>{t.exports=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}},30100:(t,e,i)=>{var s=i(40987),r=i(90664);t.exports=function(t){var e=r(t);return new s(e.r,e.g,e.b,e.a)}},90664:t=>{t.exports=function(t){return t>16777215?{a:t>>>24,r:t>>16&255,g:t>>8&255,b:255&t}:{a:255,r:t>>16&255,g:t>>8&255,b:255&t}}},13699:(t,e,i)=>{var s=i(28915),r=function(t,e,i,r,n,o,a,h){void 0===a&&(a=100),void 0===h&&(h=0);var l=h/a;return{r:s(t,r,l),g:s(e,n,l),b:s(i,o,l)}};t.exports={RGBWithRGB:r,ColorWithRGB:function(t,e,i,s,n,o){return void 0===n&&(n=100),void 0===o&&(o=0),r(t.r,t.g,t.b,e,i,s,n,o)},ColorWithColor:function(t,e,i,s){return void 0===i&&(i=100),void 0===s&&(s=0),r(t.r,t.g,t.b,e.r,e.g,e.b,i,s)}}},68957:(t,e,i)=>{var s=i(40987);t.exports=function(t){return new s(t.r,t.g,t.b,t.a)}},87388:(t,e,i)=>{var s=i(40987);t.exports=function(t){var e=new s,i=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(t.toLowerCase());if(i){var r=parseInt(i[1],10),n=parseInt(i[2],10),o=parseInt(i[3],10),a=void 0!==i[4]?parseFloat(i[4]):1;e.setTo(r,n,o,255*a)}return e}},87837:t=>{t.exports=function(t,e,i,s){void 0===s&&(s={h:0,s:0,v:0}),t/=255,e/=255,i/=255;var r=Math.min(t,e,i),n=Math.max(t,e,i),o=n-r,a=0,h=0===n?0:o/n,l=n;return n!==r&&(n===t?a=(e-i)/o+(e{var s=i(62957);t.exports=function(t,e,i,r,n){return void 0===r&&(r=255),void 0===n&&(n="#"),"#"===n?"#"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1,7):"0x"+s(r)+s(t)+s(e)+s(i)}},85386:(t,e,i)=>{var s=i(30976),r=i(40987);t.exports=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=255),new r(s(t,e),s(t,e),s(t,e))}},80333:(t,e,i)=>{var s=i(70238),r=i(30100),n=i(68957),o=i(87388);t.exports=function(t){switch(typeof t){case"string":return"rgb"===t.substr(0,3).toLowerCase()?o(t):s(t);case"number":return r(t);case"object":return n(t)}}},3956:(t,e,i)=>{var s=i(40987);s.ColorSpectrum=i(92728),s.ColorToRGBA=i(91588),s.ComponentToHex=i(62957),s.GetColor=i(37589),s.GetColor32=i(1e3),s.HexStringToColor=i(70238),s.HSLToColor=i(62183),s.HSVColorWheel=i(27939),s.HSVToRGB=i(7537),s.HueToComponent=i(89528),s.IntegerToColor=i(30100),s.IntegerToRGB=i(90664),s.Interpolate=i(13699),s.ObjectToColor=i(68957),s.RandomRGB=i(85386),s.RGBStringToColor=i(87388),s.RGBToHSV=i(87837),s.RGBToString=i(75723),s.ValueToColor=i(80333),t.exports=s},27460:(t,e,i)=>{t.exports={Align:i(71926),BaseShader:i(73894),Bounds:i(58724),Canvas:i(26253),Color:i(3956),ColorMatrix:i(89422),Masks:i(69781),RGB:i(51767)}},6858:(t,e,i)=>{var s=i(83419),r=i(39429),n=new s({initialize:function(t,e,i,s,r,n){e||(e=t.sys.make.image({x:i,y:s,key:r,frame:n,add:!1})),this.bitmapMask=e,this.invertAlpha=!1,this.isStencil=!1},setBitmap:function(t){this.bitmapMask=t},preRenderWebGL:function(t,e,i){t.pipelines.BITMAPMASK_PIPELINE.beginMask(this,e,i)},postRenderWebGL:function(t,e,i){t.pipelines.BITMAPMASK_PIPELINE.endMask(this,e,i)},preRenderCanvas:function(){},postRenderCanvas:function(){},destroy:function(){this.bitmapMask=null}});r.register("bitmapMask",(function(t,e,i,s,r){return new n(this.scene,t,e,i,s,r)})),t.exports=n},80661:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e){this.geometryMask=e,this.invertAlpha=!1,this.isStencil=!0,this.level=0},setShape:function(t){return this.geometryMask=t,this},setInvertAlpha:function(t){return void 0===t&&(t=!0),this.invertAlpha=t,this},preRenderWebGL:function(t,e,i){var s=t.gl;t.flush(),0===t.maskStack.length&&(s.enable(s.STENCIL_TEST),s.clear(s.STENCIL_BUFFER_BIT),t.maskCount=0),t.currentCameraMask.mask!==this&&(t.currentMask.mask=this),t.maskStack.push({mask:this,camera:i}),this.applyStencil(t,i,!0),t.maskCount++},applyStencil:function(t,e,i){var s=t.gl,r=this.geometryMask,n=t.maskCount,o=255;s.colorMask(!1,!1,!1,!1),i?(s.stencilFunc(s.EQUAL,n,o),s.stencilOp(s.KEEP,s.KEEP,s.INCR),n++):(s.stencilFunc(s.EQUAL,n+1,o),s.stencilOp(s.KEEP,s.KEEP,s.DECR)),this.level=n,r.renderWebGL(t,r,e),t.flush(),s.colorMask(!0,!0,!0,!0),s.stencilOp(s.KEEP,s.KEEP,s.KEEP),this.invertAlpha?s.stencilFunc(s.NOTEQUAL,n,o):s.stencilFunc(s.EQUAL,n,o)},postRenderWebGL:function(t){var e=t.gl;t.maskStack.pop(),t.maskCount--,t.flush();var i=t.currentMask;if(0===t.maskStack.length)i.mask=null,e.disable(e.STENCIL_TEST);else{var s=t.maskStack[t.maskStack.length-1];s.mask.applyStencil(t,s.camera,!1),t.currentCameraMask.mask!==s.mask?(i.mask=s.mask,i.camera=s.camera):i.mask=null}},preRenderCanvas:function(t,e,i){var s=this.geometryMask;t.currentContext.save(),s.renderCanvas(t,s,i,null,null,!0),t.currentContext.clip()},postRenderCanvas:function(t){t.currentContext.restore()},destroy:function(){this.geometryMask=null}});t.exports=s},69781:(t,e,i)=>{t.exports={BitmapMask:i(6858),GeometryMask:i(80661)}},73894:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e,i,s){e&&""!==e||(e=["precision mediump float;","uniform vec2 resolution;","varying vec2 fragCoord;","void main () {"," vec2 uv = fragCoord / resolution.xy;"," gl_FragColor = vec4(uv.xyx, 1.0);","}"].join("\n")),i&&""!==i||(i=["precision mediump float;","uniform mat4 uProjectionMatrix;","uniform mat4 uViewMatrix;","uniform vec2 uResolution;","attribute vec2 inPosition;","varying vec2 fragCoord;","varying vec2 outTexCoord;","void main () {"," gl_Position = uProjectionMatrix * uViewMatrix * vec4(inPosition, 1.0, 1.0);"," fragCoord = vec2(inPosition.x, uResolution.y - inPosition.y);"," outTexCoord = vec2(inPosition.x / uResolution.x, fragCoord.y / uResolution.y);","}"].join("\n")),void 0===s&&(s=null),this.key=t,this.fragmentSrc=e,this.vertexSrc=i,this.uniforms=s}});t.exports=s},40366:t=>{t.exports=function(t,e){var i;if(e)"string"==typeof e?i=document.getElementById(e):"object"==typeof e&&1===e.nodeType&&(i=e);else if(t.parentElement||null===e)return t;return i||(i=document.body),i.appendChild(t),t}},83719:(t,e,i)=>{var s=i(40366);t.exports=function(t){var e=t.config;if(e.parent&&e.domCreateContainer){var i=document.createElement("div");i.style.cssText=["display: block;","width: "+t.scale.width+"px;","height: "+t.scale.height+"px;","padding: 0; margin: 0;","position: absolute;","overflow: hidden;","pointer-events: "+e.domPointerEvents+";","transform: scale(1);","transform-origin: left top;"].join(" "),t.domContainer=i,s(i,e.parent)}}},57264:(t,e,i)=>{var s=i(25892);t.exports=function(t){if("complete"!==document.readyState&&"interactive"!==document.readyState){var e=function(){document.removeEventListener("deviceready",e,!0),document.removeEventListener("DOMContentLoaded",e,!0),window.removeEventListener("load",e,!0),t()};document.body?s.cordova?document.addEventListener("deviceready",e,!1):(document.addEventListener("DOMContentLoaded",e,!0),window.addEventListener("load",e,!0)):window.setTimeout(e,20)}else t()}},57811:t=>{t.exports=function(t){if(!t)return window.innerHeight;var e=Math.abs(window.orientation),i={w:0,h:0},s=document.createElement("div");return s.setAttribute("style","position: fixed; height: 100vh; width: 0; top: 0"),document.documentElement.appendChild(s),i.w=90===e?s.offsetHeight:window.innerWidth,i.h=90===e?window.innerWidth:s.offsetHeight,document.documentElement.removeChild(s),s=null,90!==Math.abs(window.orientation)?i.h:i.w}},45818:(t,e,i)=>{var s=i(13560);t.exports=function(t,e){var i=window.screen,r=!!i&&(i.orientation||i.mozOrientation||i.msOrientation);return r&&"string"==typeof r.type?r.type:"string"==typeof r?r:"number"==typeof window.orientation?0===window.orientation||180===window.orientation?s.ORIENTATION.PORTRAIT:s.ORIENTATION.LANDSCAPE:window.matchMedia?window.matchMedia("(orientation: portrait)").matches?s.ORIENTATION.PORTRAIT:window.matchMedia("(orientation: landscape)").matches?s.ORIENTATION.LANDSCAPE:void 0:e>t?s.ORIENTATION.PORTRAIT:s.ORIENTATION.LANDSCAPE}},74403:t=>{t.exports=function(t){var e;return""!==t&&("string"==typeof t?e=document.getElementById(t):t&&1===t.nodeType&&(e=t)),e||(e=document.body),e}},56836:t=>{t.exports=function(t){var e="";try{window.DOMParser?e=(new DOMParser).parseFromString(t,"text/xml"):(e=new ActiveXObject("Microsoft.XMLDOM")).loadXML(t)}catch(i){e=null}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length?e:null}},35846:t=>{t.exports=function(t){t.parentNode&&t.parentNode.removeChild(t)}},43092:(t,e,i)=>{var s=i(83419),r=i(29747),n=new s({initialize:function(){this.isRunning=!1,this.callback=r,this.isSetTimeOut=!1,this.timeOutID=null,this.delay=0;var t=this;this.step=function e(i){t.callback(i),t.isRunning&&(t.timeOutID=window.requestAnimationFrame(e))},this.stepTimeout=function e(){t.isRunning&&(t.timeOutID=window.setTimeout(e,t.delay)),t.callback(window.performance.now())}},start:function(t,e,i){this.isRunning||(this.callback=t,this.isSetTimeOut=e,this.delay=i,this.isRunning=!0,this.timeOutID=e?window.setTimeout(this.stepTimeout,0):window.requestAnimationFrame(this.step))},stop:function(){this.isRunning=!1,this.isSetTimeOut?clearTimeout(this.timeOutID):window.cancelAnimationFrame(this.timeOutID)},destroy:function(){this.stop(),this.callback=r}});t.exports=n},84902:(t,e,i)=>{var s={AddToDOM:i(40366),DOMContentLoaded:i(57264),GetInnerHeight:i(57811),GetScreenOrientation:i(45818),GetTarget:i(74403),ParseXML:i(56836),RemoveFromDOM:i(35846),RequestAnimationFrame:i(43092)};t.exports=s},47565:(t,e,i)=>{var s=i(83419),r=i(50792),n=i(37277),o=new s({Extends:r,initialize:function(){r.call(this)},shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});n.register("EventEmitter",o,"events"),t.exports=o},93055:(t,e,i)=>{t.exports={EventEmitter:i(47565)}},20122:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e){void 0===e&&(e=1),r.call(this,n.BARREL,t),this.amount=e}});t.exports=o},32251:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o,a,h){void 0===i&&(i=1),void 0===s&&(s=1),void 0===o&&(o=1),void 0===a&&(a=1),void 0===h&&(h=4),r.call(this,n.BLOOM,t),this.steps=h,this.offsetX=i,this.offsetY=s,this.blurStrength=o,this.strength=a,this.glcolor=[1,1,1],null!=e&&(this.color=e)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=o},9047:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o,a,h){void 0===e&&(e=0),void 0===i&&(i=2),void 0===s&&(s=2),void 0===o&&(o=1),void 0===h&&(h=4),r.call(this,n.BLUR,t),this.quality=e,this.x=i,this.y=s,this.steps=h,this.strength=o,this.glcolor=[1,1,1],null!=a&&(this.color=a)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=o},27885:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o,a,h,l){void 0===e&&(e=.5),void 0===i&&(i=1),void 0===s&&(s=.2),void 0===o&&(o=!1),void 0===a&&(a=1),void 0===h&&(h=1),void 0===l&&(l=1),r.call(this,n.BOKEH,t),this.radius=e,this.amount=i,this.contrast=s,this.isTiltShift=o,this.strength=l,this.blurX=a,this.blurY=h}});t.exports=o},12578:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o,a){void 0===e&&(e=8),void 0===o&&(o=1),void 0===a&&(a=.005),r.call(this,n.CIRCLE,t),this.scale=o,this.feather=a,this.thickness=e,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4],null!=i&&(this.color=i),null!=s&&(this.backgroundColor=s)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}},backgroundColor:{get:function(){var t=this.glcolor2;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor2;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}},backgroundAlpha:{get:function(){return this.glcolor2[3]},set:function(t){this.glcolor2[3]=t}}});t.exports=o},15802:(t,e,i)=>{var s=i(83419),r=i(89422),n=i(14811),o=new s({Extends:r,initialize:function(t){r.call(this),this.type=n.COLOR_MATRIX,this.gameObject=t,this.active=!0},destroy:function(){this.gameObject=null,this._matrix=null,this._data=null}});t.exports=o},72898:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e){this.type=t,this.gameObject=e,this.active=!0},setActive:function(t){return this.active=t,this},destroy:function(){this.gameObject=null,this.active=!1}});t.exports=s},44553:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s){void 0===e&&(e="__WHITE"),void 0===i&&(i=.005),void 0===s&&(s=.005),r.call(this,n.DISPLACEMENT,t),this.x=i,this.y=s,this.glTexture,this.setTexture(e)},setTexture:function(t){var e=this.gameObject.scene.sys.textures.getFrame(t);return e&&(this.glTexture=e.glTexture),this}});t.exports=o},68531:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o){void 0===i&&(i=4),void 0===s&&(s=0),void 0===o&&(o=!1),r.call(this,n.GLOW,t),this.outerStrength=i,this.innerStrength=s,this.knockout=o,this.glcolor=[1,1,1,1],void 0!==e&&(this.color=e)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=o},37102:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o,a,h,l,u){void 0===s&&(s=.2),void 0===o&&(o=0),void 0===a&&(a=0),void 0===h&&(h=0),void 0===l&&(l=1),void 0===u&&(u=0),r.call(this,n.GRADIENT,t),this.alpha=s,this.size=u,this.fromX=o,this.fromY=a,this.toX=h,this.toY=l,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0],null!=e&&(this.color1=e),null!=i&&(this.color2=i)},color1:{get:function(){var t=this.glcolor1;return(t[0]<<16)+(t[1]<<8)+(0|t[2])},set:function(t){var e=this.glcolor1;e[0]=t>>16&255,e[1]=t>>8&255,e[2]=255&t}},color2:{get:function(){var t=this.glcolor2;return(t[0]<<16)+(t[1]<<8)+(0|t[2])},set:function(t){var e=this.glcolor2;e[0]=t>>16&255,e[1]=t>>8&255,e[2]=255&t}}});t.exports=o},86886:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e){void 0===e&&(e=1),r.call(this,n.PIXELATE,t),this.amount=e}});t.exports=o},92322:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o,a,h,l){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=.1),void 0===o&&(o=1),void 0===h&&(h=6),void 0===l&&(l=1),r.call(this,n.SHADOW,t),this.x=e,this.y=i,this.decay=s,this.power=o,this.glcolor=[0,0,0,1],this.samples=h,this.intensity=l,void 0!==a&&(this.color=a)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=o},39563:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o){void 0===e&&(e=.5),void 0===i&&(i=.5),void 0===s&&(s=3),void 0===o&&(o=!1),r.call(this,n.SHINE,t),this.speed=e,this.lineWidth=i,this.gradient=s,this.reveal=o}});t.exports=o},56448:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o){void 0===e&&(e=.5),void 0===i&&(i=.5),void 0===s&&(s=.5),void 0===o&&(o=.5),r.call(this,n.VIGNETTE,t),this.x=e,this.y=i,this.radius=s,this.strength=o}});t.exports=o},38433:(t,e,i)=>{var s=i(83419),r=i(72898),n=i(14811),o=new s({Extends:r,initialize:function(t,e,i,s,o){void 0===e&&(e=.1),void 0===i&&(i=0),void 0===s&&(s=0),void 0===o&&(o=!1),r.call(this,n.WIPE,t),this.progress=0,this.wipeWidth=e,this.direction=i,this.axis=s,this.reveal=o}});t.exports=o},14811:t=>{t.exports={GLOW:4,SHADOW:5,PIXELATE:6,VIGNETTE:7,SHINE:8,BLUR:9,GRADIENT:12,BLOOM:13,COLOR_MATRIX:14,CIRCLE:15,BARREL:16,DISPLACEMENT:17,WIPE:18,BOKEH:19}},66064:(t,e,i)=>{var s=i(79291),r=i(14811),n={Barrel:i(20122),Controller:i(72898),Bloom:i(32251),Blur:i(9047),Bokeh:i(27885),Circle:i(12578),ColorMatrix:i(15802),Displacement:i(44553),Glow:i(68531),Gradient:i(37102),Pixelate:i(86886),Shadow:i(92322),Shine:i(39563),Vignette:i(56448),Wipe:i(38433)};n=s(!1,n,r),t.exports=n},25305:(t,e,i)=>{var s=i(10312),r=i(23568);t.exports=function(t,e,i){e.x=r(i,"x",0),e.y=r(i,"y",0),e.depth=r(i,"depth",0),e.flipX=r(i,"flipX",!1),e.flipY=r(i,"flipY",!1);var n=r(i,"scale",null);"number"==typeof n?e.setScale(n):null!==n&&(e.scaleX=r(n,"x",1),e.scaleY=r(n,"y",1));var o=r(i,"scrollFactor",null);"number"==typeof o?e.setScrollFactor(o):null!==o&&(e.scrollFactorX=r(o,"x",1),e.scrollFactorY=r(o,"y",1)),e.rotation=r(i,"rotation",0);var a=r(i,"angle",null);null!==a&&(e.angle=a),e.alpha=r(i,"alpha",1);var h=r(i,"origin",null);if("number"==typeof h)e.setOrigin(h);else if(null!==h){var l=r(h,"x",.5),u=r(h,"y",.5);e.setOrigin(l,u)}return e.blendMode=r(i,"blendMode",s.NORMAL),e.visible=r(i,"visible",!0),r(i,"add",!0)&&t.sys.displayList.add(e),e.preUpdate&&t.sys.updateList.add(e),e}},13059:(t,e,i)=>{var s=i(23568);t.exports=function(t,e){var i=s(e,"anims",null);if(null===i)return t;if("string"==typeof i)t.anims.play(i);else if("object"==typeof i){var r=t.anims,n=s(i,"key",void 0);if(n){var o=s(i,"startFrame",void 0),a=s(i,"delay",0),h=s(i,"repeat",0),l=s(i,"repeatDelay",0),u=s(i,"yoyo",!1),c=s(i,"play",!1),d=s(i,"delayedPlay",0),p={key:n,delay:a,repeat:h,repeatDelay:l,yoyo:u,startFrame:o};c?r.play(p):d>0?r.playAfterDelay(p,d):r.load(p)}}return t}},8050:(t,e,i)=>{var s=i(83419),r=i(73162),n=i(37277),o=i(51708),a=i(44594),h=i(19186),l=new s({Extends:r,initialize:function(t){r.call(this,t),this.sortChildrenFlag=!1,this.scene=t,this.systems=t.sys,this.events=t.sys.events,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.events.once(a.BOOT,this.boot,this),this.events.on(a.START,this.start,this)},boot:function(){this.events.once(a.DESTROY,this.destroy,this)},addChildCallback:function(t){t.displayList&&t.displayList!==this&&t.removeFromDisplayList(),t.parentContainer&&t.parentContainer.remove(t),t.displayList||(this.queueDepthSort(),t.displayList=this,t.emit(o.ADDED_TO_SCENE,t,this.scene),this.events.emit(a.ADDED_TO_SCENE,t,this.scene))},removeChildCallback:function(t){this.queueDepthSort(),t.displayList=null,t.emit(o.REMOVED_FROM_SCENE,t,this.scene),this.events.emit(a.REMOVED_FROM_SCENE,t,this.scene)},start:function(){this.events.once(a.SHUTDOWN,this.shutdown,this)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(h(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(t,e){return t._depth-e._depth},getChildren:function(){return this.list},shutdown:function(){for(var t=this.list;t.length;)t[0].destroy(!0);this.events.off(a.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(a.START,this.start,this),this.scene=null,this.systems=null,this.events=null}});n.register("DisplayList",l,"displayList"),t.exports=l},95643:(t,e,i)=>{var s=i(83419),r=i(53774),n=i(45893),o=i(50792),a=i(51708),h=i(44594),l=new s({Extends:o,initialize:function(t,e){o.call(this),this.scene=t,this.displayList=null,this.type=e,this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,this.on(a.ADDED_TO_SCENE,this.addedToScene,this),this.on(a.REMOVED_FROM_SCENE,this.removedFromScene,this),t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new n(this)),this},setData:function(t,e){return this.data||(this.data=new n(this)),this.data.set(t,e),this},incData:function(t,e){return this.data||(this.data=new n(this)),this.data.inc(t,e),this},toggleData:function(t){return this.data||(this.data=new n(this)),this.data.toggle(t),this},getData:function(t){return this.data||(this.data=new n(this)),this.data.get(t)},setInteractive:function(t,e,i){return this.scene.sys.input.enable(this,t,e,i),this},disableInteractive:function(){return this.scene.sys.input.disable(this),this},removeInteractive:function(){return this.scene.sys.input.clear(this),this.input=void 0,this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return r(this)},willRender:function(t){return!(this.displayList&&this.displayList.active&&!this.displayList.willRender(t)||l.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),t=e,e.parentContainer);)e=e.parentContainer;return this.displayList?i.unshift(this.displayList.getIndex(t)):i.unshift(this.scene.sys.displayList.getIndex(t)),i},addToDisplayList:function(t){return void 0===t&&(t=this.scene.sys.displayList),this.displayList&&this.displayList!==t&&this.removeFromDisplayList(),t.exists(this)||(this.displayList=t,t.add(this,!0),t.queueDepthSort(),this.emit(a.ADDED_TO_SCENE,this,this.scene),t.events.emit(h.ADDED_TO_SCENE,this,this.scene)),this},addToUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.add(this),this},removeFromDisplayList:function(){var t=this.displayList||this.scene.sys.displayList;return t&&t.exists(this)&&(t.remove(this,!0),t.queueDepthSort(),this.displayList=null,this.emit(a.REMOVED_FROM_SCENE,this,this.scene),t.events.emit(h.REMOVED_FROM_SCENE,this,this.scene)),this},removeFromUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.remove(this),this},destroy:function(t){this.scene&&!this.ignoreDestroy&&(void 0===t&&(t=!1),this.preDestroy&&this.preDestroy.call(this),this.emit(a.DESTROY,this,t),this.removeAllListeners(),this.postPipelines&&this.resetPostPipeline(!0),this.removeFromDisplayList(),this.removeFromUpdateList(),this.input&&(this.scene.sys.input.clear(this),this.input=void 0),this.data&&(this.data.destroy(),this.data=void 0),this.body&&(this.body.destroy(),this.body=void 0),this.preFX&&(this.preFX.destroy(),this.preFX=void 0),this.postFX&&(this.postFX.destroy(),this.postFX=void 0),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0)}});l.RENDER_MASK=15,t.exports=l},44603:(t,e,i)=>{var s=i(83419),r=i(37277),n=i(44594),o=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.events=t.sys.events,this.displayList,this.updateList,this.events.once(n.BOOT,this.boot,this),this.events.on(n.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(n.DESTROY,this.destroy,this)},start:function(){this.events.once(n.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.events.off(n.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(n.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},r.register("GameObjectCreator",o,"make"),t.exports=o},39429:(t,e,i)=>{var s=i(83419),r=i(37277),n=i(44594),o=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.events=t.sys.events,this.displayList,this.updateList,this.events.once(n.BOOT,this.boot,this),this.events.on(n.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(n.DESTROY,this.destroy,this)},start:function(){this.events.once(n.SHUTDOWN,this.shutdown,this)},existing:function(t){return(t.renderCanvas||t.renderWebGL)&&this.displayList.add(t),t.preUpdate&&this.updateList.add(t),t},shutdown:function(){this.events.off(n.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(n.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},r.register("GameObjectFactory",o,"add"),t.exports=o},91296:(t,e,i)=>{var s=i(61340),r=new s,n=new s,o=new s,a={camera:r,sprite:n,calc:o};t.exports=function(t,e,i){var s=r,h=n,l=o;return h.applyITRS(t.x,t.y,t.rotation,t.scaleX,t.scaleY),s.copyFrom(e.matrix),i?(s.multiplyWithOffset(i,-e.scrollX*t.scrollFactorX,-e.scrollY*t.scrollFactorY),h.e=t.x,h.f=t.y):(h.e-=e.scrollX*t.scrollFactorX,h.f-=e.scrollY*t.scrollFactorY),s.multiply(h,l),a}},45027:(t,e,i)=>{var s=i(83419),r=i(25774),n=i(37277),o=i(44594),a=new s({Extends:r,initialize:function(t){r.call(this),this.checkQueue=!0,this.scene=t,this.systems=t.sys,t.sys.events.once(o.BOOT,this.boot,this),t.sys.events.on(o.START,this.start,this)},boot:function(){this.systems.events.once(o.DESTROY,this.destroy,this)},start:function(){var t=this.systems.events;t.on(o.PRE_UPDATE,this.update,this),t.on(o.UPDATE,this.sceneUpdate,this),t.once(o.SHUTDOWN,this.shutdown,this)},sceneUpdate:function(t,e){for(var i=this._active,s=i.length,r=0;r{t.exports=function(t,e,i,s,r,n,o,a,h,l,u,c,d,p,f){var g=i.x-e.displayOriginX+r,m=i.y-e.displayOriginY+n,v=g+i.w,y=m+i.h,x=o.getXRound(g,m,a),w=o.getYRound(g,m,a),T=o.getXRound(g,y,a),b=o.getYRound(g,y,a),S=o.getXRound(v,y,a),E=o.getYRound(v,y,a),C=o.getXRound(v,m,a),A=o.getYRound(v,m,a);t.batchQuad(e,x,w,T,b,S,E,C,A,s.u0,s.v0,s.u1,s.v1,h,l,u,c,d,p,f)}},53048:t=>{t.exports=function(t,e,i,s){if(void 0===i&&(i=!1),void 0===s)return s={local:{x:0,y:0,width:0,height:0},global:{x:0,y:0,width:0,height:0},lines:{shortest:0,longest:0,lengths:null,height:0},wrappedText:"",words:[],characters:[],scaleX:0,scaleY:0};var r,n,o,a,h=t.text,l=h.length,u=t.maxWidth,c=t.wordWrapCharCode,d=Number.MAX_VALUE,p=Number.MAX_VALUE,f=0,g=0,m=t.fontData.chars,v=t.fontData.lineHeight,y=t.letterSpacing,x=t.lineSpacing,w=0,T=0,b=0,S=null,E=t._align,C=0,A=0,_=t.fontSize/t.fontData.size,P=_*t.scaleX,R=_*t.scaleY,M=null,k=0,L=[],O=Number.MAX_VALUE,F=0,D=0,I=0,B=[],N=[],U=null;if(u>0){for(r=0;ru||H-X>u?(G.push(W.i-1),W.cr?(G.push(W.i+W.word.length),X=0,z=null):z=W):W.cr&&(G.push(W.i+W.word.length),X=0,z=null)}for(r=G.length-1;r>=0;r--)n=h,o=G[r],a="\n",h=n.substr(0,o)+a+n.substr(o+1);s.wrappedText=h,l=h.length,B=[],U=null}var j=0;for(r=0;rC&&(d=C),p>A&&(p=A);var K=C+S.xAdvance,Z=A+v;fF&&(F=I),IF&&(F=I),I0)for(var Q=0;Q{var s=i(21859);t.exports=function(t,e,i,r,n,o,a){var h=t.sys.textures.get(i),l=h.get(r),u=t.sys.cache.xml.get(n);if(l&&u){var c=s(u,l,o,a,h);return t.sys.cache.bitmapFont.add(e,{data:c,texture:i,frame:r,fromAtlas:!0}),!0}return!1}},6925:(t,e,i)=>{var s=i(35154);t.exports=function(t,e){var i=e.width,r=e.height,n=Math.floor(i/2),o=Math.floor(r/2),a=s(e,"chars","");if(""!==a){var h=s(e,"image",""),l=t.sys.textures.getFrame(h),u=l.cutX,c=l.cutY,d=l.source.width,p=l.source.height,f=s(e,"offset.x",0),g=s(e,"offset.y",0),m=s(e,"spacing.x",0),v=s(e,"spacing.y",0),y=s(e,"lineSpacing",0),x=s(e,"charsPerRow",null);null===x&&(x=d/i)>a.length&&(x=a.length);for(var w=f,T=g,b={retroFont:!0,font:h,size:i,lineHeight:r+y,chars:{}},S=0,E=0;E{function e(t,e){return parseInt(t.getAttribute(e),10)}t.exports=function(t,i,s,r,n){void 0===s&&(s=0),void 0===r&&(r=0);var o=i.cutX,a=i.cutY,h=i.source.width,l=i.source.height,u=i.sourceIndex,c={},d=t.getElementsByTagName("info")[0],p=t.getElementsByTagName("common")[0];c.font=d.getAttribute("face"),c.size=e(d,"size"),c.lineHeight=e(p,"lineHeight")+r,c.chars={};var f=t.getElementsByTagName("char"),g=void 0!==i&&i.trimmed;if(g)var m=i.height,v=i.width;for(var y=0;y{var s=i(87662),r=i(79291),n={Parse:i(6925)};n=r(!1,n,s),t.exports=n},87662:t=>{var e={TEXT_SET1:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~",TEXT_SET2:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET3:"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",TEXT_SET4:"ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789",TEXT_SET5:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789",TEXT_SET6:"ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789\"(),-.' ",TEXT_SET7:"AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW\")28FLRX-'39",TEXT_SET8:"0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET9:"ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'\"?!",TEXT_SET10:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET11:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\"-+!?()':;0123456789"};t.exports=e},2638:(t,e,i)=>{var s=i(22186),r=i(83419),n=i(12310),o=new r({Extends:s,Mixins:[n],initialize:function(t,e,i,r,n,o,a){s.call(this,t,e,i,r,n,o,a),this.type="DynamicBitmapText",this.scrollX=0,this.scrollY=0,this.cropWidth=0,this.cropHeight=0,this.displayCallback,this.callbackData={parent:this,color:0,tint:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},index:0,charCode:0,x:0,y:0,scale:0,rotation:0,data:0}},setSize:function(t,e){return this.cropWidth=t,this.cropHeight=e,this},setDisplayCallback:function(t){return this.displayCallback=t,this},setScrollX:function(t){return this.scrollX=t,this},setScrollY:function(t){return this.scrollY=t,this}});t.exports=o},86741:(t,e,i)=>{var s=i(20926);t.exports=function(t,e,i,r){var n=e._text,o=n.length,a=t.currentContext;if(0!==o&&s(t,a,e,i,r)){i.addToRenderList(e);var h=e.fromAtlas?e.frame:e.texture.frames.__BASE,l=e.displayCallback,u=e.callbackData,c=e.fontData.chars,d=e.fontData.lineHeight,p=e._letterSpacing,f=0,g=0,m=0,v=null,y=0,x=0,w=0,T=0,b=0,S=0,E=null,C=0,A=e.frame.source.image,_=h.cutX,P=h.cutY,R=0,M=0,k=e._fontSize/e.fontData.size,L=e._align,O=0,F=0;e.getTextBounds(!1);var D=e._bounds.lines;1===L?F=(D.longest-D.lengths[0])/2:2===L&&(F=D.longest-D.lengths[0]),a.translate(-e.displayOriginX,-e.displayOriginY);var I=i.roundPixels;e.cropWidth>0&&e.cropHeight>0&&(a.beginPath(),a.rect(0,0,e.cropWidth,e.cropHeight),a.clip());for(var B=0;B{var s=i(2638),r=i(25305),n=i(44603),o=i(23568);n.register("dynamicBitmapText",(function(t,e){void 0===t&&(t={});var i=o(t,"font",""),n=o(t,"text",""),a=o(t,"size",!1),h=new s(this.scene,0,0,i,n,a);return void 0!==e&&(t.add=e),r(this.scene,h,t),h}))},72566:(t,e,i)=>{var s=i(2638);i(39429).register("dynamicBitmapText",(function(t,e,i,r,n){return this.displayList.add(new s(this.scene,t,e,i,r,n))}))},12310:(t,e,i)=>{var s,r;i(29747),s=i(73482),r=i(86741),t.exports={renderWebGL:s,renderCanvas:r}},73482:(t,e,i)=>{var s=i(91296),r=i(61340),n=i(70554),o=new r;t.exports=function(t,e,i,r){var a=e.text,h=a.length;if(0!==h){i.addToRenderList(e);var l=t.pipelines.set(e.pipeline,e),u=s(e,i,r);t.pipelines.preBatch(e);var c=u.sprite,d=u.calc,p=o,f=e.cropWidth>0||e.cropHeight>0;f&&(l.flush(),t.pushScissor(d.tx,d.ty,e.cropWidth*d.scaleX,e.cropHeight*d.scaleY));var g,m,v=e.frame.glTexture,y=e.tintFill,x=n.getTintAppendFloatAlpha(e.tintTopLeft,i.alpha*e._alphaTL),w=n.getTintAppendFloatAlpha(e.tintTopRight,i.alpha*e._alphaTR),T=n.getTintAppendFloatAlpha(e.tintBottomLeft,i.alpha*e._alphaBL),b=n.getTintAppendFloatAlpha(e.tintBottomRight,i.alpha*e._alphaBR),S=l.setGameObject(e),E=0,C=0,A=0,_=0,P=e.letterSpacing,R=0,M=0,k=e.scrollX,L=e.scrollY,O=e.fontData,F=O.chars,D=O.lineHeight,I=e.fontSize/O.size,B=0,N=e._align,U=0,Y=0,z=e.getTextBounds(!1);e.maxWidth>0&&(h=(a=z.wrappedText).length);var X=e._bounds.lines;1===N?Y=(X.longest-X.lengths[0])/2:2===N&&(Y=X.longest-X.lengths[0]);for(var G=i.roundPixels,W=e.displayCallback,V=e.callbackData,H=0;H{var s=i(83419),r=i(45319),n=i(31401),o=i(95643),a=i(53048),h=i(61327),l=i(21859),u=i(87841),c=i(18658),d=new s({Extends:o,Mixins:[n.Alpha,n.BlendMode,n.Depth,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Texture,n.Tint,n.Transform,n.Visible,c],initialize:function(t,e,i,s,r,n,h){void 0===r&&(r=""),void 0===h&&(h=0),o.call(this,t,"BitmapText"),this.font=s;var l=this.scene.sys.cache.bitmapFont.get(s);l||console.warn("Invalid BitmapText key: "+s),this.fontData=l.data,this._text="",this._fontSize=n||this.fontData.size,this._letterSpacing=0,this._lineSpacing=0,this._align=h,this._bounds=a(),this._dirty=!0,this._maxWidth=0,this.wordWrapCharCode=32,this.charColors=[],this.dropShadowX=0,this.dropShadowY=0,this.dropShadowColor=0,this.dropShadowAlpha=.5,this.fromAtlas=l.fromAtlas,this.setTexture(l.texture,l.frame),this.setPosition(e,i),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(),this.setText(r)},setLeftAlign:function(){return this._align=d.ALIGN_LEFT,this._dirty=!0,this},setCenterAlign:function(){return this._align=d.ALIGN_CENTER,this._dirty=!0,this},setRightAlign:function(){return this._align=d.ALIGN_RIGHT,this._dirty=!0,this},setFontSize:function(t){return this._fontSize=t,this._dirty=!0,this},setLetterSpacing:function(t){return void 0===t&&(t=0),this._letterSpacing=t,this._dirty=!0,this},setLineSpacing:function(t){return void 0===t&&(t=0),this.lineSpacing=t,this},setText:function(t){return t||0===t||(t=""),Array.isArray(t)&&(t=t.join("\n")),t!==this.text&&(this._text=t.toString(),this._dirty=!0,this.updateDisplayOrigin()),this},setDropShadow:function(t,e,i,s){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=.5),this.dropShadowX=t,this.dropShadowY=e,this.dropShadowColor=i,this.dropShadowAlpha=s,this},setCharacterTint:function(t,e,i,s,n,o,a){void 0===t&&(t=0),void 0===e&&(e=1),void 0===i&&(i=!1),void 0===s&&(s=-1),void 0===n&&(n=s,o=s,a=s);var h=this.text.length;-1===e&&(e=h),t<0&&(t=h+t),t=r(t,0,h-1);for(var l=r(t+e,t,h),u=this.charColors,c=t;c{var s=i(20926);t.exports=function(t,e,i,r){var n=e._text,o=n.length,a=t.currentContext;if(0!==o&&s(t,a,e,i,r)){i.addToRenderList(e);var h=e.fromAtlas?e.frame:e.texture.frames.__BASE,l=e.fontData.chars,u=e.fontData.lineHeight,c=e._letterSpacing,d=e._lineSpacing,p=0,f=0,g=0,m=null,v=0,y=0,x=0,w=0,T=0,b=0,S=null,E=0,C=h.source.image,A=h.cutX,_=h.cutY,P=e._fontSize/e.fontData.size,R=e._align,M=0,k=0,L=e.getTextBounds(!1);e.maxWidth>0&&(o=(n=L.wrappedText).length);var O=e._bounds.lines;1===R?k=(O.longest-O.lengths[0])/2:2===R&&(k=O.longest-O.lengths[0]),a.translate(-e.displayOriginX,-e.displayOriginY);for(var F=i.roundPixels,D=0;D{var s=i(22186),r=i(25305),n=i(44603),o=i(23568),a=i(35154);n.register("bitmapText",(function(t,e){void 0===t&&(t={});var i=a(t,"font",""),n=o(t,"text",""),h=o(t,"size",!1),l=a(t,"align",0),u=new s(this.scene,0,0,i,n,h,l);return void 0!==e&&(t.add=e),r(this.scene,u,t),u}))},34914:(t,e,i)=>{var s=i(22186);i(39429).register("bitmapText",(function(t,e,i,r,n,o){return this.displayList.add(new s(this.scene,t,e,i,r,n,o))}))},18658:(t,e,i)=>{var s,r;i(29747),s=i(33590),r=i(37289),t.exports={renderWebGL:s,renderCanvas:r}},33590:(t,e,i)=>{var s=i(3217),r=i(91296),n=i(70554);t.exports=function(t,e,i,o){if(0!==e._text.length){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline,e),h=r(e,i,o).calc;t.pipelines.preBatch(e);var l,u,c,d=i.roundPixels,p=i.alpha,f=e.charColors,g=e.tintFill,m=n.getTintAppendFloatAlpha,v=m(e.tintTopLeft,p*e._alphaTL),y=m(e.tintTopRight,p*e._alphaTR),x=m(e.tintBottomLeft,p*e._alphaBL),w=m(e.tintBottomRight,p*e._alphaBR),T=e.frame.glTexture,b=a.setGameObject(e),S=e.getTextBounds(!1).characters,E=e.dropShadowX,C=e.dropShadowY;if(0!==E||0!==C){var A=e.dropShadowColor,_=e.dropShadowAlpha,P=m(A,p*_*e._alphaTL),R=m(A,p*_*e._alphaTR),M=m(A,p*_*e._alphaBL),k=m(A,p*_*e._alphaBR);for(l=0;l{var s=i(48011),r=i(46590),n=i(83419),o=i(31401),a=i(4327),h=i(95643),l=i(73162),u=new n({Extends:h,Mixins:[o.Alpha,o.BlendMode,o.Depth,o.Mask,o.Pipeline,o.PostPipeline,o.ScrollFactor,o.Size,o.Texture,o.Transform,o.Visible,s],initialize:function(t,e,i,s,r){h.call(this,t,"Blitter"),this.setTexture(s,r),this.setPosition(e,i),this.initPipeline(),this.initPostPipeline(),this.children=new l,this.renderList=[],this.dirty=!1},create:function(t,e,i,s,n){void 0===s&&(s=!0),void 0===n&&(n=this.children.length),void 0===i?i=this.frame:i instanceof a||(i=this.texture.get(i));var o=new r(this,t,e,i,s);return this.children.addAt(o,n,!1),this.dirty=!0,o},createFromCallback:function(t,e,i,s){for(var r=this.createMultiple(e,i,s),n=0;n0},getRenderList:function(){return this.dirty&&(this.renderList=this.children.list.filter(this.childCanRender,this),this.dirty=!1),this.renderList},clear:function(){this.children.removeAll(),this.dirty=!0},preDestroy:function(){this.children.destroy(),this.renderList=[]}});t.exports=u},72396:t=>{t.exports=function(t,e,i,s){var r=e.getRenderList();if(0!==r.length){var n=t.currentContext,o=i.alpha*e.alpha;if(0!==o){i.addToRenderList(e),n.globalCompositeOperation=t.blendModes[e.blendMode],n.imageSmoothingEnabled=!e.frame.source.scaleMode;var a=e.x-i.scrollX*e.scrollFactorX,h=e.y-i.scrollY*e.scrollFactorY;n.save(),s&&s.copyToContext(n);for(var l=i.roundPixels,u=0;u0&&f.height>0&&(n.save(),n.translate(c.x+a,c.y+h),n.scale(v,y),n.drawImage(p.source.image,f.x,f.y,f.width,f.height,g,m,f.width,f.height),n.restore())):(l&&(g=Math.round(g),m=Math.round(m)),f.width>0&&f.height>0&&n.drawImage(p.source.image,f.x,f.y,f.width,f.height,g+c.x+a,m+c.y+h,f.width,f.height)))}n.restore()}}}},9403:(t,e,i)=>{var s=i(6107),r=i(25305),n=i(44603),o=i(23568);n.register("blitter",(function(t,e){void 0===t&&(t={});var i=o(t,"key",null),n=o(t,"frame",null),a=new s(this.scene,0,0,i,n);return void 0!==e&&(t.add=e),r(this.scene,a,t),a}))},12709:(t,e,i)=>{var s=i(6107);i(39429).register("blitter",(function(t,e,i,r){return this.displayList.add(new s(this.scene,t,e,i,r))}))},48011:(t,e,i)=>{var s,r;i(29747),s=i(99485),r=i(72396),t.exports={renderWebGL:s,renderCanvas:r}},99485:(t,e,i)=>{var s=i(61340),r=i(70554),n=new s;t.exports=function(t,e,i,s){var o=e.getRenderList(),a=i.alpha*e.alpha;if(0!==o.length&&0!==a){i.addToRenderList(e);var h=t.pipelines.set(this.pipeline,e),l=i.scrollX*e.scrollFactorX,u=i.scrollY*e.scrollFactorY,c=n.copyFrom(i.matrix);s&&(c.multiplyWithOffset(s,-l,-u),l=0,u=0);var d=e.x-l,p=e.y-u,f=-1;t.pipelines.preBatch(e);for(var g=0;g{var s=i(83419),r=i(4327),n=new s({initialize:function(t,e,i,s,r){this.parent=t,this.x=e,this.y=i,this.frame=s,this.data={},this.tint=16777215,this._visible=r,this._alpha=1,this.flipX=!1,this.flipY=!1,this.hasTransformComponent=!0},setFrame:function(t){return void 0===t?this.frame=this.parent.frame:t instanceof r&&t.texture===this.parent.texture?this.frame=t:this.frame=this.parent.texture.get(t),this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this},reset:function(t,e,i){return this.x=t,this.y=e,this.flipX=!1,this.flipY=!1,this._alpha=1,this._visible=!0,this.parent.dirty=!0,i&&this.setFrame(i),this},setPosition:function(t,e){return this.x=t,this.y=e,this},setFlipX:function(t){return this.flipX=t,this},setFlipY:function(t){return this.flipY=t,this},setFlip:function(t,e){return this.flipX=t,this.flipY=e,this},setVisible:function(t){return this.visible=t,this},setAlpha:function(t){return this.alpha=t,this},setTint:function(t){return this.tint=t,this},destroy:function(){this.parent.dirty=!0,this.parent.children.remove(this),this.parent=void 0,this.frame=void 0,this.data=void 0},visible:{get:function(){return this._visible},set:function(t){this.parent.dirty|=this._visible!==t,this._visible=t}},alpha:{get:function(){return this._alpha},set:function(t){this.parent.dirty|=this._alpha>0!=t>0,this._alpha=t}}});t.exports=n},16005:(t,e,i)=>{var s=i(45319),r={_alpha:1,_alphaTL:1,_alphaTR:1,_alphaBL:1,_alphaBR:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(t,e,i,r){return void 0===t&&(t=1),void 0===e?this.alpha=t:(this._alphaTL=s(t,0,1),this._alphaTR=s(e,0,1),this._alphaBL=s(i,0,1),this._alphaBR=s(r,0,1)),this},alpha:{get:function(){return this._alpha},set:function(t){var e=s(t,0,1);this._alpha=e,this._alphaTL=e,this._alphaTR=e,this._alphaBL=e,this._alphaBR=e,0===e?this.renderFlags&=-3:this.renderFlags|=2}},alphaTopLeft:{get:function(){return this._alphaTL},set:function(t){var e=s(t,0,1);this._alphaTL=e,0!==e&&(this.renderFlags|=2)}},alphaTopRight:{get:function(){return this._alphaTR},set:function(t){var e=s(t,0,1);this._alphaTR=e,0!==e&&(this.renderFlags|=2)}},alphaBottomLeft:{get:function(){return this._alphaBL},set:function(t){var e=s(t,0,1);this._alphaBL=e,0!==e&&(this.renderFlags|=2)}},alphaBottomRight:{get:function(){return this._alphaBR},set:function(t){var e=s(t,0,1);this._alphaBR=e,0!==e&&(this.renderFlags|=2)}}};t.exports=r},88509:(t,e,i)=>{var s=i(45319),r={_alpha:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(t){return void 0===t&&(t=1),this.alpha=t,this},alpha:{get:function(){return this._alpha},set:function(t){var e=s(t,0,1);this._alpha=e,0===e?this.renderFlags&=-3:this.renderFlags|=2}}};t.exports=r},90065:(t,e,i)=>{var s=i(10312),r={_blendMode:s.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(t){"string"==typeof t&&(t=s[t]),(t|=0)>=-1&&(this._blendMode=t)}},setBlendMode:function(t){return this.blendMode=t,this}};t.exports=r},94215:t=>{t.exports={width:0,height:0,displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this}}},61683:t=>{t.exports={texture:null,frame:null,isCropped:!1,setCrop:function(t,e,i,s){if(void 0===t)this.isCropped=!1;else if(this.frame){if("number"==typeof t)this.frame.setCropUVs(this._crop,t,e,i,s,this.flipX,this.flipY);else{var r=t;this.frame.setCropUVs(this._crop,r.x,r.y,r.width,r.height,this.flipX,this.flipY)}this.isCropped=!0}return this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}}},89272:t=>{t.exports={_depth:0,depth:{get:function(){return this._depth},set:function(t){this.displayList&&this.displayList.queueDepthSort(),this._depth=t}},setDepth:function(t){return void 0===t&&(t=0),this.depth=t,this}}},47059:(t,e,i)=>{var s=i(83419),r=i(66064),n=i(19133),o=new s({initialize:function(t,e){this.gameObject=t,this.isPost=e,this.enabled=!1,this.list=[],this.padding=0},setPadding:function(t){return void 0===t&&(t=0),this.padding=t,this.gameObject},onFXCopy:function(){},onFX:function(){},enable:function(t){if(!this.isPost){var e=this.gameObject.scene.sys.renderer;e&&e.pipelines?(this.gameObject.pipeline=e.pipelines.FX_PIPELINE,void 0!==t&&(this.padding=t),this.enabled=!0):this.enabled=!1}},clear:function(){if(this.isPost)this.gameObject.resetPostPipeline(!0);else{for(var t=this.list,e=0;e{t.exports={flipX:!1,flipY:!1,toggleFlipX:function(){return this.flipX=!this.flipX,this},toggleFlipY:function(){return this.flipY=!this.flipY,this},setFlipX:function(t){return this.flipX=t,this},setFlipY:function(t){return this.flipY=t,this},setFlip:function(t,e){return this.flipX=t,this.flipY=e,this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this}}},8004:(t,e,i)=>{var s=i(87841),r=i(11520),n=i(26099),o={prepareBoundsOutput:function(t,e){return void 0===e&&(e=!1),0!==this.rotation&&r(t,this.x,this.y,this.rotation),e&&this.parentContainer&&this.parentContainer.getBoundsTransformMatrix().transformPoint(t.x,t.y,t),t},getCenter:function(t,e){return void 0===t&&(t=new n),t.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,e)},getTopLeft:function(t,e){return t||(t=new n),t.x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,e)},getTopCenter:function(t,e){return t||(t=new n),t.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,e)},getTopRight:function(t,e){return t||(t=new n),t.x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,e)},getLeftCenter:function(t,e){return t||(t=new n),t.x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,e)},getRightCenter:function(t,e){return t||(t=new n),t.x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,e)},getBottomLeft:function(t,e){return t||(t=new n),t.x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,e)},getBottomCenter:function(t,e){return t||(t=new n),t.x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,e)},getBottomRight:function(t,e){return t||(t=new n),t.x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,e)},getBounds:function(t){var e,i,r,n,o,a,h,l;if(void 0===t&&(t=new s),this.parentContainer){var u=this.parentContainer.getBoundsTransformMatrix();this.getTopLeft(t),u.transformPoint(t.x,t.y,t),e=t.x,i=t.y,this.getTopRight(t),u.transformPoint(t.x,t.y,t),r=t.x,n=t.y,this.getBottomLeft(t),u.transformPoint(t.x,t.y,t),o=t.x,a=t.y,this.getBottomRight(t),u.transformPoint(t.x,t.y,t),h=t.x,l=t.y}else this.getTopLeft(t),e=t.x,i=t.y,this.getTopRight(t),r=t.x,n=t.y,this.getBottomLeft(t),o=t.x,a=t.y,this.getBottomRight(t),h=t.x,l=t.y;return t.x=Math.min(e,r,o,h),t.y=Math.min(i,n,a,l),t.width=Math.max(e,r,o,h)-t.x,t.height=Math.max(i,n,a,l)-t.y,t}};t.exports=o},8573:(t,e,i)=>{var s=i(6858),r=i(80661),n={mask:null,setMask:function(t){return this.mask=t,this},clearMask:function(t){return void 0===t&&(t=!1),t&&this.mask&&this.mask.destroy(),this.mask=null,this},createBitmapMask:function(t,e,i,r,n){return void 0===t&&(this.texture||this.shader||this.geom)&&(t=this),new s(this.scene,t,e,i,r,n)},createGeometryMask:function(t){return void 0!==t||"Graphics"!==this.type&&!this.geom||(t=this),new r(this.scene,t)}};t.exports=n},27387:t=>{t.exports={_originComponent:!0,originX:.5,originY:.5,_displayOriginX:0,_displayOriginY:0,displayOriginX:{get:function(){return this._displayOriginX},set:function(t){this._displayOriginX=t,this.originX=t/this.width}},displayOriginY:{get:function(){return this._displayOriginY},set:function(t){this._displayOriginY=t,this.originY=t/this.height}},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this.updateDisplayOrigin()},setOriginFromFrame:function(){return this.frame&&this.frame.customPivot?(this.originX=this.frame.pivotX,this.originY=this.frame.pivotY,this.updateDisplayOrigin()):this.setOrigin()},setDisplayOrigin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.displayOriginX=t,this.displayOriginY=e,this},updateDisplayOrigin:function(){return this._displayOriginX=this.originX*this.width,this._displayOriginY=this.originY*this.height,this}}},37640:(t,e,i)=>{var s=i(39506),r=i(57355),n=i(35154),o=i(86353),a=i(26099),h={path:null,rotateToPath:!1,pathRotationOffset:0,pathOffset:null,pathVector:null,pathDelta:null,pathTween:null,pathConfig:null,_prevDirection:o.PLAYING_FORWARD,setPath:function(t,e){void 0===e&&(e=this.pathConfig);var i=this.pathTween;return i&&i.isPlaying()&&i.stop(),this.path=t,e&&this.startFollow(e),this},setRotateToPath:function(t,e){return void 0===e&&(e=0),this.rotateToPath=t,this.pathRotationOffset=e,this},isFollowing:function(){var t=this.pathTween;return t&&t.isPlaying()},startFollow:function(t,e){void 0===t&&(t={}),void 0===e&&(e=0);var i=this.pathTween;i&&i.isPlaying()&&i.stop(),"number"==typeof t&&(t={duration:t}),t.from=n(t,"from",0),t.to=n(t,"to",1);var h=r(t,"positionOnPath",!1);this.rotateToPath=r(t,"rotateToPath",!1),this.pathRotationOffset=n(t,"rotationOffset",0);var l=n(t,"startAt",e);if(l&&(t.onStart=function(t){var e=t.data[0];e.progress=l,e.elapsed=e.duration*l;var i=e.ease(e.progress);e.current=e.start+(e.end-e.start)*i,e.setTargetValue()}),this.pathOffset||(this.pathOffset=new a(this.x,this.y)),this.pathVector||(this.pathVector=new a),this.pathDelta||(this.pathDelta=new a),this.pathDelta.reset(),t.persist=!0,this.pathTween=this.scene.sys.tweens.addCounter(t),this.path.getStartPoint(this.pathOffset),h&&(this.x=this.pathOffset.x,this.y=this.pathOffset.y),this.pathOffset.x=this.x-this.pathOffset.x,this.pathOffset.y=this.y-this.pathOffset.y,this._prevDirection=o.PLAYING_FORWARD,this.rotateToPath){var u=this.path.getPoint(.1);this.rotation=Math.atan2(u.y-this.y,u.x-this.x)+s(this.pathRotationOffset)}return this.pathConfig=t,this},pauseFollow:function(){var t=this.pathTween;return t&&t.isPlaying()&&t.pause(),this},resumeFollow:function(){var t=this.pathTween;return t&&t.isPaused()&&t.resume(),this},stopFollow:function(){var t=this.pathTween;return t&&t.isPlaying()&&t.stop(),this},pathUpdate:function(){var t=this.pathTween;if(t&&t.data){var e=t.data[0],i=this.pathDelta,r=this.pathVector;if(i.copy(r).negate(),e.state===o.COMPLETE)return this.path.getPoint(e.end,r),i.add(r),r.add(this.pathOffset),void this.setPosition(r.x,r.y);if(e.state!==o.PLAYING_FORWARD&&e.state!==o.PLAYING_BACKWARD)return;this.path.getPoint(t.getValue(),r),i.add(r),r.add(this.pathOffset);var n=this.x,a=this.y;this.setPosition(r.x,r.y);var h=this.x-n,l=this.y-a;if(0===h&&0===l)return;if(e.state!==this._prevDirection)return void(this._prevDirection=e.state);this.rotateToPath&&(this.rotation=Math.atan2(l,h)+s(this.pathRotationOffset))}}};t.exports=h},72699:(t,e,i)=>{var s=i(62644),r={defaultPipeline:null,pipeline:null,pipelineData:null,initPipeline:function(t){this.pipelineData={};var e=this.scene.sys.renderer;if(!e)return!1;var i=e.pipelines;if(i){void 0===t&&(t=i.default);var s=i.get(t);if(s)return this.defaultPipeline=s,this.pipeline=s,!0}return!1},setPipeline:function(t,e,i){var r=this.scene.sys.renderer;if(!r)return this;var n=r.pipelines;if(n){var o=n.get(t);o&&(this.pipeline=o),e&&(this.pipelineData=i?s(e):e)}return this},setPipelineData:function(t,e){var i=this.pipelineData;return void 0===e?delete i[t]:i[t]=e,this},resetPipeline:function(t){return void 0===t&&(t=!1),this.pipeline=this.defaultPipeline,t&&(this.pipelineData={}),null!==this.pipeline},getPipelineName:function(){return this.pipeline.name}};t.exports=r},17581:(t,e,i)=>{var s=i(62644),r=i(47059),n=i(19133),o={hasPostPipeline:!1,postPipelines:null,postPipelineData:null,preFX:null,postFX:null,initPostPipeline:function(t){this.postPipelines=[],this.postPipelineData={},this.postFX=new r(this,!0),t&&(this.preFX=new r(this,!1))},setPostPipeline:function(t,e,i){var r=this.scene.sys.renderer;if(!r)return this;var n=r.pipelines;if(n){Array.isArray(t)||(t=[t]);for(var o=0;o0,this},setPostPipelineData:function(t,e){var i=this.postPipelineData;return void 0===e?delete i[t]:i[t]=e,this},getPostPipeline:function(t){for(var e="string"==typeof t,i=this.postPipelines,s=[],r=0;r=0;s--){var r=i[s];(e&&r.name===t||!e&&r===t)&&(r.destroy(),n(i,s))}return this.hasPostPipeline=this.postPipelines.length>0,this},clearFX:function(){return this.preFX&&this.preFX.clear(),this.postFX&&this.postFX.clear(),this}};t.exports=o},80227:t=>{t.exports={scrollFactorX:1,scrollFactorY:1,setScrollFactor:function(t,e){return void 0===e&&(e=t),this.scrollFactorX=t,this.scrollFactorY=e,this}}},16736:t=>{var e={_sizeComponent:!0,width:0,height:0,displayWidth:{get:function(){return Math.abs(this.scaleX*this.frame.realWidth)},set:function(t){this.scaleX=t/this.frame.realWidth}},displayHeight:{get:function(){return Math.abs(this.scaleY*this.frame.realHeight)},set:function(t){this.scaleY=t/this.frame.realHeight}},setSizeToFrame:function(t){t||(t=this.frame),this.width=t.realWidth,this.height=t.realHeight;var e=this.input;return e&&!e.customHitArea&&(e.hitArea.width=this.width,e.hitArea.height=this.height),this},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this}};t.exports=e},37726:(t,e,i)=>{var s=i(4327),r={texture:null,frame:null,isCropped:!1,setTexture:function(t,e,i,s){return this.texture=this.scene.sys.textures.get(t),this.setFrame(e,i,s)},setFrame:function(t,e,i){return void 0===e&&(e=!0),void 0===i&&(i=!0),t instanceof s?(this.texture=this.scene.sys.textures.get(t.texture.key),this.frame=t):this.frame=this.texture.get(t),this.frame.cutWidth&&this.frame.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this._sizeComponent&&e&&this.setSizeToFrame(),this._originComponent&&i&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this}};t.exports=r},79812:(t,e,i)=>{var s=i(4327),r={texture:null,frame:null,isCropped:!1,setCrop:function(t,e,i,s){if(void 0===t)this.isCropped=!1;else if(this.frame){if("number"==typeof t)this.frame.setCropUVs(this._crop,t,e,i,s,this.flipX,this.flipY);else{var r=t;this.frame.setCropUVs(this._crop,r.x,r.y,r.width,r.height,this.flipX,this.flipY)}this.isCropped=!0}return this},setTexture:function(t,e){return this.texture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t,e,i){return void 0===e&&(e=!0),void 0===i&&(i=!0),t instanceof s?(this.texture=this.scene.sys.textures.get(t.texture.key),this.frame=t):this.frame=this.texture.get(t),this.frame.cutWidth&&this.frame.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this._sizeComponent&&e&&this.setSizeToFrame(),this._originComponent&&i&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this.isCropped&&this.frame.updateCropUVs(this._crop,this.flipX,this.flipY),this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}};t.exports=r},27472:t=>{t.exports={tintTopLeft:16777215,tintTopRight:16777215,tintBottomLeft:16777215,tintBottomRight:16777215,tintFill:!1,clearTint:function(){return this.setTint(16777215),this},setTint:function(t,e,i,s){return void 0===t&&(t=16777215),void 0===e&&(e=t,i=t,s=t),this.tintTopLeft=t,this.tintTopRight=e,this.tintBottomLeft=i,this.tintBottomRight=s,this.tintFill=!1,this},setTintFill:function(t,e,i,s){return this.setTint(t,e,i,s),this.tintFill=!0,this},tint:{get:function(){return this.tintTopLeft},set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){var t=16777215;return this.tintFill||this.tintTopLeft!==t||this.tintTopRight!==t||this.tintBottomLeft!==t||this.tintBottomRight!==t}}}},53774:t=>{t.exports=function(t){var e={name:t.name,type:t.type,x:t.x,y:t.y,depth:t.depth,scale:{x:t.scaleX,y:t.scaleY},origin:{x:t.originX,y:t.originY},flipX:t.flipX,flipY:t.flipY,rotation:t.rotation,alpha:t.alpha,visible:t.visible,blendMode:t.blendMode,textureKey:"",frameKey:"",data:{}};return t.texture&&(e.textureKey=t.texture.key,e.frameKey=t.frame.name),e}},16901:(t,e,i)=>{var s=i(36383),r=i(61340),n=i(85955),o=i(86554),a=i(30954),h=i(26099),l={hasTransformComponent:!0,_scaleX:1,_scaleY:1,_rotation:0,x:0,y:0,z:0,w:0,scale:{get:function(){return(this._scaleX+this._scaleY)/2},set:function(t){this._scaleX=t,this._scaleY=t,0===t?this.renderFlags&=-5:this.renderFlags|=4}},scaleX:{get:function(){return this._scaleX},set:function(t){this._scaleX=t,0===t?this.renderFlags&=-5:0!==this._scaleY&&(this.renderFlags|=4)}},scaleY:{get:function(){return this._scaleY},set:function(t){this._scaleY=t,0===t?this.renderFlags&=-5:0!==this._scaleX&&(this.renderFlags|=4)}},angle:{get:function(){return a(this._rotation*s.RAD_TO_DEG)},set:function(t){this.rotation=a(t)*s.DEG_TO_RAD}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=o(t)}},setPosition:function(t,e,i,s){return void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===s&&(s=0),this.x=t,this.y=e,this.z=i,this.w=s,this},copyPosition:function(t){return void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.z&&(this.z=t.z),void 0!==t.w&&(this.w=t.w),this},setRandomPosition:function(t,e,i,s){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.scene.sys.scale.width),void 0===s&&(s=this.scene.sys.scale.height),this.x=t+Math.random()*i,this.y=e+Math.random()*s,this},setRotation:function(t){return void 0===t&&(t=0),this.rotation=t,this},setAngle:function(t){return void 0===t&&(t=0),this.angle=t,this},setScale:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.scaleX=t,this.scaleY=e,this},setX:function(t){return void 0===t&&(t=0),this.x=t,this},setY:function(t){return void 0===t&&(t=0),this.y=t,this},setZ:function(t){return void 0===t&&(t=0),this.z=t,this},setW:function(t){return void 0===t&&(t=0),this.w=t,this},getLocalTransformMatrix:function(t){return void 0===t&&(t=new r),t.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY)},getWorldTransformMatrix:function(t,e){void 0===t&&(t=new r);var i=this.parentContainer;if(!i)return this.getLocalTransformMatrix(t);for(e||(e=new r),t.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY);i;)e.applyITRS(i.x,i.y,i._rotation,i._scaleX,i._scaleY),e.multiply(t,t),i=i.parentContainer;return t},getLocalPoint:function(t,e,i,s){i||(i=new h),s||(s=this.scene.sys.cameras.main);var r=s.scrollX,o=s.scrollY,a=t+r*this.scrollFactorX-r,l=e+o*this.scrollFactorY-o;return this.parentContainer?this.getWorldTransformMatrix().applyInverse(a,l,i):n(a,l,this.x,this.y,this.rotation,this.scaleX,this.scaleY,i),this._originComponent&&(i.x+=this._displayOriginX,i.y+=this._displayOriginY),i},getParentRotation:function(){for(var t=0,e=this.parentContainer;e;)t+=e.rotation,e=e.parentContainer;return t}};t.exports=l},61340:(t,e,i)=>{var s=i(83419),r=i(36383),n=i(26099),o=new s({initialize:function(t,e,i,s,r,n){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=1),void 0===r&&(r=0),void 0===n&&(n=0),this.matrix=new Float32Array([t,e,i,s,r,n,0,0,1]),this.decomposedMatrix={translateX:0,translateY:0,scaleX:1,scaleY:1,rotation:0},this.quad=new Float32Array(8)},a:{get:function(){return this.matrix[0]},set:function(t){this.matrix[0]=t}},b:{get:function(){return this.matrix[1]},set:function(t){this.matrix[1]=t}},c:{get:function(){return this.matrix[2]},set:function(t){this.matrix[2]=t}},d:{get:function(){return this.matrix[3]},set:function(t){this.matrix[3]=t}},e:{get:function(){return this.matrix[4]},set:function(t){this.matrix[4]=t}},f:{get:function(){return this.matrix[5]},set:function(t){this.matrix[5]=t}},tx:{get:function(){return this.matrix[4]},set:function(t){this.matrix[4]=t}},ty:{get:function(){return this.matrix[5]},set:function(t){this.matrix[5]=t}},rotation:{get:function(){return Math.acos(this.a/this.scaleX)*(Math.atan(-this.c/this.a)<0?-1:1)}},rotationNormalized:{get:function(){var t=this.matrix,e=t[0],i=t[1],s=t[2],n=t[3];return e||i?i>0?Math.acos(e/this.scaleX):-Math.acos(e/this.scaleX):s||n?r.TAU-(n>0?Math.acos(-s/this.scaleY):-Math.acos(s/this.scaleY)):0}},scaleX:{get:function(){return Math.sqrt(this.a*this.a+this.b*this.b)}},scaleY:{get:function(){return Math.sqrt(this.c*this.c+this.d*this.d)}},loadIdentity:function(){var t=this.matrix;return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,this},translate:function(t,e){var i=this.matrix;return i[4]=i[0]*t+i[2]*e+i[4],i[5]=i[1]*t+i[3]*e+i[5],this},scale:function(t,e){var i=this.matrix;return i[0]*=t,i[1]*=t,i[2]*=e,i[3]*=e,this},rotate:function(t){var e=Math.sin(t),i=Math.cos(t),s=this.matrix,r=s[0],n=s[1],o=s[2],a=s[3];return s[0]=r*i+o*e,s[1]=n*i+a*e,s[2]=r*-e+o*i,s[3]=n*-e+a*i,this},multiply:function(t,e){var i=this.matrix,s=t.matrix,r=i[0],n=i[1],o=i[2],a=i[3],h=i[4],l=i[5],u=s[0],c=s[1],d=s[2],p=s[3],f=s[4],g=s[5],m=void 0===e?i:e.matrix;return m[0]=u*r+c*o,m[1]=u*n+c*a,m[2]=d*r+p*o,m[3]=d*n+p*a,m[4]=f*r+g*o+h,m[5]=f*n+g*a+l,m},multiplyWithOffset:function(t,e,i){var s=this.matrix,r=t.matrix,n=s[0],o=s[1],a=s[2],h=s[3],l=e*n+i*a+s[4],u=e*o+i*h+s[5],c=r[0],d=r[1],p=r[2],f=r[3],g=r[4],m=r[5];return s[0]=c*n+d*a,s[1]=c*o+d*h,s[2]=p*n+f*a,s[3]=p*o+f*h,s[4]=g*n+m*a+l,s[5]=g*o+m*h+u,this},transform:function(t,e,i,s,r,n){var o=this.matrix,a=o[0],h=o[1],l=o[2],u=o[3],c=o[4],d=o[5];return o[0]=t*a+e*l,o[1]=t*h+e*u,o[2]=i*a+s*l,o[3]=i*h+s*u,o[4]=r*a+n*l+c,o[5]=r*h+n*u+d,this},transformPoint:function(t,e,i){void 0===i&&(i={x:0,y:0});var s=this.matrix,r=s[0],n=s[1],o=s[2],a=s[3],h=s[4],l=s[5];return i.x=t*r+e*o+h,i.y=t*n+e*a+l,i},invert:function(){var t=this.matrix,e=t[0],i=t[1],s=t[2],r=t[3],n=t[4],o=t[5],a=e*r-i*s;return t[0]=r/a,t[1]=-i/a,t[2]=-s/a,t[3]=e/a,t[4]=(s*o-r*n)/a,t[5]=-(e*o-i*n)/a,this},copyFrom:function(t){var e=this.matrix;return e[0]=t.a,e[1]=t.b,e[2]=t.c,e[3]=t.d,e[4]=t.e,e[5]=t.f,this},copyFromArray:function(t){var e=this.matrix;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],this},copyToContext:function(t){var e=this.matrix;return t.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t},setToContext:function(t){return t.setTransform(this),t},copyToArray:function(t){var e=this.matrix;return void 0===t?t=[e[0],e[1],e[2],e[3],e[4],e[5]]:(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5]),t},setTransform:function(t,e,i,s,r,n){var o=this.matrix;return o[0]=t,o[1]=e,o[2]=i,o[3]=s,o[4]=r,o[5]=n,this},decomposeMatrix:function(){var t=this.decomposedMatrix,e=this.matrix,i=e[0],s=e[1],r=e[2],n=e[3],o=i*n-s*r;if(t.translateX=e[4],t.translateY=e[5],i||s){var a=Math.sqrt(i*i+s*s);t.rotation=s>0?Math.acos(i/a):-Math.acos(i/a),t.scaleX=a,t.scaleY=o/a}else if(r||n){var h=Math.sqrt(r*r+n*n);t.rotation=.5*Math.PI-(n>0?Math.acos(-r/h):-Math.acos(r/h)),t.scaleX=o/h,t.scaleY=h}else t.rotation=0,t.scaleX=0,t.scaleY=0;return t},applyITRS:function(t,e,i,s,r){var n=this.matrix,o=Math.sin(i),a=Math.cos(i);return n[4]=t,n[5]=e,n[0]=a*s,n[1]=o*s,n[2]=-o*r,n[3]=a*r,this},applyInverse:function(t,e,i){void 0===i&&(i=new n);var s=this.matrix,r=s[0],o=s[1],a=s[2],h=s[3],l=s[4],u=s[5],c=1/(r*h+a*-o);return i.x=h*c*t+-a*c*e+(u*a-l*h)*c,i.y=r*c*e+-o*c*t+(-u*r+l*o)*c,i},setQuad:function(t,e,i,s,r,n){void 0===r&&(r=!1),void 0===n&&(n=this.quad);var o=this.matrix,a=o[0],h=o[1],l=o[2],u=o[3],c=o[4],d=o[5];return r?(n[0]=Math.round(t*a+e*l+c),n[1]=Math.round(t*h+e*u+d),n[2]=Math.round(t*a+s*l+c),n[3]=Math.round(t*h+s*u+d),n[4]=Math.round(i*a+s*l+c),n[5]=Math.round(i*h+s*u+d),n[6]=Math.round(i*a+e*l+c),n[7]=Math.round(i*h+e*u+d)):(n[0]=t*a+e*l+c,n[1]=t*h+e*u+d,n[2]=t*a+s*l+c,n[3]=t*h+s*u+d,n[4]=i*a+s*l+c,n[5]=i*h+s*u+d,n[6]=i*a+e*l+c,n[7]=i*h+e*u+d),n},getX:function(t,e){return t*this.a+e*this.c+this.e},getY:function(t,e){return t*this.b+e*this.d+this.f},getXRound:function(t,e,i){var s=this.getX(t,e);return i&&(s=Math.round(s)),s},getYRound:function(t,e,i){var s=this.getY(t,e);return i&&(s=Math.round(s)),s},getCSSMatrix:function(){var t=this.matrix;return"matrix("+t[0]+","+t[1]+","+t[2]+","+t[3]+","+t[4]+","+t[5]+")"},destroy:function(){this.matrix=null,this.quad=null,this.decomposedMatrix=null}});t.exports=o},59715:t=>{var e={_visible:!0,visible:{get:function(){return this._visible},set:function(t){t?(this._visible=!0,this.renderFlags|=1):(this._visible=!1,this.renderFlags&=-2)}},setVisible:function(t){return this.visible=t,this}};t.exports=e},31401:(t,e,i)=>{t.exports={Alpha:i(16005),AlphaSingle:i(88509),BlendMode:i(90065),ComputedSize:i(94215),Crop:i(61683),Depth:i(89272),Flip:i(54434),FX:i(47059),GetBounds:i(8004),Mask:i(8573),Origin:i(27387),PathFollower:i(37640),Pipeline:i(72699),PostPipeline:i(17581),ScrollFactor:i(80227),Size:i(16736),Texture:i(37726),TextureCrop:i(79812),Tint:i(27472),ToJSON:i(53774),Transform:i(16901),TransformMatrix:i(61340),Visible:i(59715)}},31559:(t,e,i)=>{var s=i(37105),r=i(10312),n=i(83419),o=i(31401),a=i(51708),h=i(95643),l=i(87841),u=i(29959),c=i(36899),d=i(26099),p=new n({Extends:h,Mixins:[o.AlphaSingle,o.BlendMode,o.ComputedSize,o.Depth,o.Mask,o.PostPipeline,o.Transform,o.Visible,u],initialize:function(t,e,i,s){h.call(this,t,"Container"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new o.TransformMatrix,this.tempTransformMatrix=new o.TransformMatrix,this._sortKey="",this._sysEvents=t.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.initPostPipeline(),this.setPosition(e,i),this.setBlendMode(r.SKIP_CHECK),s&&this.add(s)},originX:{get:function(){return.5}},originY:{get:function(){return.5}},displayOriginX:{get:function(){return.5*this.width}},displayOriginY:{get:function(){return.5*this.height}},setExclusive:function(t){return void 0===t&&(t=!0),this.exclusive=t,this},getBounds:function(t){if(void 0===t&&(t=new l),t.setTo(this.x,this.y,0,0),this.parentContainer){var e=this.parentContainer.getBoundsTransformMatrix().transformPoint(this.x,this.y);t.setTo(e.x,e.y,0,0)}if(this.list.length>0){var i=this.list,s=new l,r=!1;t.setEmpty();for(var n=0;n-1},setAll:function(t,e,i,r){return s.SetAll(this.list,t,e,i,r),this},each:function(t,e){var i,s=[null],r=this.list.slice(),n=r.length;for(i=2;i0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}},preDestroy:function(){this.removeAll(!!this.exclusive),this.localTransform.destroy(),this.tempTransformMatrix.destroy(),this.list=[]},onChildDestroyed:function(t){s.Remove(this.list,t),this.exclusive&&(t.parentContainer=null,t.removedFromScene())}});t.exports=p},53584:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e);var r=e.list;if(0!==r.length){var n=e.localTransform;s?(n.loadIdentity(),n.multiply(s),n.translate(e.x,e.y),n.rotate(e.rotation),n.scale(e.scaleX,e.scaleY)):n.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);var o=-1!==e.blendMode;o||t.setBlendMode(0);var a=e._alpha,h=e.scrollFactorX,l=e.scrollFactorY;e.mask&&e.mask.preRenderCanvas(t,null,i);for(var u=0;u{var s=i(25305),r=i(31559),n=i(44603),o=i(23568),a=i(95540);n.register("container",(function(t,e){void 0===t&&(t={});var i=o(t,"x",0),n=o(t,"y",0),h=a(t,"children",null),l=new r(this.scene,i,n,h);return void 0!==e&&(t.add=e),s(this.scene,l,t),l}))},24961:(t,e,i)=>{var s=i(31559);i(39429).register("container",(function(t,e,i){return this.displayList.add(new s(this.scene,t,e,i))}))},29959:(t,e,i)=>{var s,r;i(29747),s=i(72249),r=i(53584),t.exports={renderWebGL:s,renderCanvas:r}},72249:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e);var r=e.list,n=r.length;if(0!==n){var o=e.localTransform;s?(o.loadIdentity(),o.multiply(s),o.translate(e.x,e.y),o.rotate(e.rotation),o.scale(e.scaleX,e.scaleY)):o.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),t.pipelines.preBatch(e);var a=-1!==e.blendMode;a||t.setBlendMode(0);for(var h=e.alpha,l=e.scrollFactorX,u=e.scrollFactorY,c=0;c{t.exports=["normal","multiply","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},3069:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(441),o=i(95643),a=i(41212),h=i(35846),l=i(44594),u=i(61369),c=new s({Extends:o,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.Origin,r.ScrollFactor,r.Transform,r.Visible,n],initialize:function(t,e,i,s,r,n){o.call(this,t,"DOMElement"),this.parent=t.sys.game.domContainer,this.cache=t.sys.cache.html,this.node,this.transformOnly=!1,this.skewX=0,this.skewY=0,this.rotate3d=new u,this.rotate3dAngle="deg",this.pointerEvents="auto",this.width=0,this.height=0,this.displayWidth=0,this.displayHeight=0,this.handler=this.dispatchNativeEvent.bind(this),this.setPosition(e,i),"string"==typeof s?"#"===s[0]?this.setElement(s.substr(1),r,n):this.createElement(s,r,n):s&&this.setElement(s,r,n),t.sys.events.on(l.SLEEP,this.handleSceneEvent,this),t.sys.events.on(l.WAKE,this.handleSceneEvent,this),t.sys.events.on(l.PRE_RENDER,this.preRender,this)},handleSceneEvent:function(t){var e=this.node,i=e.style;e&&(i.display=t.settings.visible?"block":"none")},setSkew:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.skewX=t,this.skewY=e,this},setPerspective:function(t){return this.parent.style.perspective=t+"px",this},perspective:{get:function(){return parseFloat(this.parent.style.perspective)},set:function(t){this.parent.style.perspective=t+"px"}},addListener:function(t){if(this.node){t=t.split(" ");for(var e=0;e{var s=i(47407),r=i(95643),n=i(61340),o=new n,a=new n,h=new n;t.exports=function(t,e,i,n){if(e.node){var l=e.node.style,u=e.scene.sys.settings;if(!l||!u.visible||r.RENDER_MASK!==e.renderFlags||0!==e.cameraFilter&&e.cameraFilter&i.id||e.parentContainer&&!e.parentContainer.willRender())l.display="none";else{var c=e.parentContainer,d=i.alpha*e.alpha;c&&(d*=c.alpha);var p=o,f=a,g=h,m=0,v=0,y="0%",x="0%";n?(m=e.width*e.scaleX*e.originX,v=e.height*e.scaleY*e.originY,f.applyITRS(e.x-m,e.y-v,e.rotation,e.scaleX,e.scaleY),p.copyFrom(i.matrix),p.multiplyWithOffset(n,-i.scrollX*e.scrollFactorX,-i.scrollY*e.scrollFactorY),f.e=e.x-m,f.f=e.y-v,p.multiply(f,g)):(m=e.width*e.originX,v=e.height*e.originY,f.applyITRS(e.x-m,e.y-v,e.rotation,e.scaleX,e.scaleY),p.copyFrom(i.matrix),y=100*e.originX+"%",x=100*e.originY+"%",f.e-=i.scrollX*e.scrollFactorX,f.f-=i.scrollY*e.scrollFactorY,p.multiply(f,g)),e.transformOnly||(l.display="block",l.opacity=d,l.zIndex=e._depth,l.pointerEvents=e.pointerEvents,l.mixBlendMode=s[e._blendMode]),l.transform=g.getCSSMatrix()+" skew("+e.skewX+"rad, "+e.skewY+"rad) rotate3d("+e.rotate3d.x+","+e.rotate3d.y+","+e.rotate3d.z+","+e.rotate3d.w+e.rotate3dAngle+")",l.transformOrigin=y+" "+x}}}},2611:(t,e,i)=>{var s=i(3069);i(39429).register("dom",(function(t,e,i,r,n){var o=new s(this.scene,t,e,i,r,n);return this.displayList.add(o),o}))},441:(t,e,i)=>{var s,r;i(29747),s=i(49381),r=i(49381),t.exports={renderWebGL:s,renderCanvas:r}},62980:t=>{t.exports="addedtoscene"},41337:t=>{t.exports="destroy"},44947:t=>{t.exports="removedfromscene"},49358:t=>{t.exports="complete"},35163:t=>{t.exports="created"},97249:t=>{t.exports="error"},19483:t=>{t.exports="locked"},56059:t=>{t.exports="loop"},26772:t=>{t.exports="metadata"},64437:t=>{t.exports="playing"},83411:t=>{t.exports="play"},75780:t=>{t.exports="seeked"},67799:t=>{t.exports="seeking"},63500:t=>{t.exports="stalled"},55541:t=>{t.exports="stop"},53208:t=>{t.exports="textureready"},4992:t=>{t.exports="unlocked"},12:t=>{t.exports="unsupported"},51708:(t,e,i)=>{t.exports={ADDED_TO_SCENE:i(62980),DESTROY:i(41337),REMOVED_FROM_SCENE:i(44947),VIDEO_COMPLETE:i(49358),VIDEO_CREATED:i(35163),VIDEO_ERROR:i(97249),VIDEO_LOCKED:i(19483),VIDEO_LOOP:i(56059),VIDEO_METADATA:i(26772),VIDEO_PLAY:i(83411),VIDEO_PLAYING:i(64437),VIDEO_SEEKED:i(75780),VIDEO_SEEKING:i(67799),VIDEO_STALLED:i(63500),VIDEO_STOP:i(55541),VIDEO_TEXTURE:i(53208),VIDEO_UNLOCKED:i(4992),VIDEO_UNSUPPORTED:i(12)}},42421:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(95643),o=i(64993),a=new s({Extends:n,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Flip,r.Origin,r.ScrollFactor,r.Size,r.Texture,r.Tint,r.Transform,r.Visible,o],initialize:function(t){n.call(this,t,"Extern")},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(){},render:function(){}});t.exports=a},70217:()=>{},56315:(t,e,i)=>{var s=i(42421);i(39429).register("extern",(function(){var t=new s(this.scene);return this.displayList.add(t),t}))},64993:(t,e,i)=>{var s,r;i(29747),s=i(80287),r=i(70217),t.exports={renderWebGL:s,renderCanvas:r}},80287:(t,e,i)=>{var s=i(91296);t.exports=function(t,e,i,r){t.pipelines.clear();var n=s(e,i,r).calc;e.render.call(e,t,i,n),t.pipelines.rebind()}},85592:t=>{t.exports={ARC:0,BEGIN_PATH:1,CLOSE_PATH:2,FILL_RECT:3,LINE_TO:4,MOVE_TO:5,LINE_STYLE:6,FILL_STYLE:7,FILL_PATH:8,STROKE_PATH:9,FILL_TRIANGLE:10,STROKE_TRIANGLE:11,SAVE:14,RESTORE:15,TRANSLATE:16,SCALE:17,ROTATE:18,GRADIENT_FILL_STYLE:21,GRADIENT_LINE_STYLE:22}},43831:(t,e,i)=>{var s=i(71911),r=i(83419),n=i(85592),o=i(31401),a=i(8497),h=i(95643),l=i(95540),u=i(35154),c=i(36383),d=i(84503),p=new r({Extends:h,Mixins:[o.AlphaSingle,o.BlendMode,o.Depth,o.Mask,o.Pipeline,o.PostPipeline,o.Transform,o.Visible,o.ScrollFactor,d],initialize:function(t,e){var i=u(e,"x",0),s=u(e,"y",0);h.call(this,t,"Graphics"),this.setPosition(i,s),this.initPipeline(),this.initPostPipeline(),this.displayOriginX=0,this.displayOriginY=0,this.commandBuffer=[],this.defaultFillColor=-1,this.defaultFillAlpha=1,this.defaultStrokeWidth=1,this.defaultStrokeColor=-1,this.defaultStrokeAlpha=1,this._lineWidth=1,this.lineStyle(1,0,0),this.fillStyle(0,0),this.setDefaultStyles(e)},setDefaultStyles:function(t){return u(t,"lineStyle",null)&&(this.defaultStrokeWidth=u(t,"lineStyle.width",1),this.defaultStrokeColor=u(t,"lineStyle.color",16777215),this.defaultStrokeAlpha=u(t,"lineStyle.alpha",1),this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha)),u(t,"fillStyle",null)&&(this.defaultFillColor=u(t,"fillStyle.color",16777215),this.defaultFillAlpha=u(t,"fillStyle.alpha",1),this.fillStyle(this.defaultFillColor,this.defaultFillAlpha)),this},lineStyle:function(t,e,i){return void 0===i&&(i=1),this.commandBuffer.push(n.LINE_STYLE,t,e,i),this._lineWidth=t,this},fillStyle:function(t,e){return void 0===e&&(e=1),this.commandBuffer.push(n.FILL_STYLE,t,e),this},fillGradientStyle:function(t,e,i,s,r,o,a,h){return void 0===r&&(r=1),void 0===o&&(o=r),void 0===a&&(a=r),void 0===h&&(h=r),this.commandBuffer.push(n.GRADIENT_FILL_STYLE,r,o,a,h,t,e,i,s),this},lineGradientStyle:function(t,e,i,s,r,o){return void 0===o&&(o=1),this.commandBuffer.push(n.GRADIENT_LINE_STYLE,t,o,e,i,s,r),this},beginPath:function(){return this.commandBuffer.push(n.BEGIN_PATH),this},closePath:function(){return this.commandBuffer.push(n.CLOSE_PATH),this},fillPath:function(){return this.commandBuffer.push(n.FILL_PATH),this},fill:function(){return this.commandBuffer.push(n.FILL_PATH),this},strokePath:function(){return this.commandBuffer.push(n.STROKE_PATH),this},stroke:function(){return this.commandBuffer.push(n.STROKE_PATH),this},fillCircleShape:function(t){return this.fillCircle(t.x,t.y,t.radius)},strokeCircleShape:function(t){return this.strokeCircle(t.x,t.y,t.radius)},fillCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,c.PI2),this.fillPath(),this},strokeCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,c.PI2),this.strokePath(),this},fillRectShape:function(t){return this.fillRect(t.x,t.y,t.width,t.height)},strokeRectShape:function(t){return this.strokeRect(t.x,t.y,t.width,t.height)},fillRect:function(t,e,i,s){return this.commandBuffer.push(n.FILL_RECT,t,e,i,s),this},strokeRect:function(t,e,i,s){var r=this._lineWidth/2,n=t-r,o=t+r;return this.beginPath(),this.moveTo(t,e),this.lineTo(t,e+s),this.strokePath(),this.beginPath(),this.moveTo(t+i,e),this.lineTo(t+i,e+s),this.strokePath(),this.beginPath(),this.moveTo(n,e),this.lineTo(o+i,e),this.strokePath(),this.beginPath(),this.moveTo(n,e+s),this.lineTo(o+i,e+s),this.strokePath(),this},fillRoundedRect:function(t,e,i,s,r){void 0===r&&(r=20);var n=r,o=r,a=r,h=r;"number"!=typeof r&&(n=l(r,"tl",20),o=l(r,"tr",20),a=l(r,"bl",20),h=l(r,"br",20));var u=n>=0,d=o>=0,p=a>=0,f=h>=0;return n=Math.abs(n),o=Math.abs(o),a=Math.abs(a),h=Math.abs(h),this.beginPath(),this.moveTo(t+n,e),this.lineTo(t+i-o,e),d?this.arc(t+i-o,e+o,o,-c.TAU,0):this.arc(t+i,e,o,Math.PI,c.TAU,!0),this.lineTo(t+i,e+s-h),f?this.arc(t+i-h,e+s-h,h,0,c.TAU):this.arc(t+i,e+s,h,-c.TAU,Math.PI,!0),this.lineTo(t+a,e+s),p?this.arc(t+a,e+s-a,a,c.TAU,Math.PI):this.arc(t,e+s,a,0,-c.TAU,!0),this.lineTo(t,e+n),u?this.arc(t+n,e+n,n,-Math.PI,-c.TAU):this.arc(t,e,n,c.TAU,0,!0),this.fillPath(),this},strokeRoundedRect:function(t,e,i,s,r){void 0===r&&(r=20);var n=r,o=r,a=r,h=r,u=Math.min(i,s)/2;"number"!=typeof r&&(n=l(r,"tl",20),o=l(r,"tr",20),a=l(r,"bl",20),h=l(r,"br",20));var d=n>=0,p=o>=0,f=a>=0,g=h>=0;return n=Math.min(Math.abs(n),u),o=Math.min(Math.abs(o),u),a=Math.min(Math.abs(a),u),h=Math.min(Math.abs(h),u),this.beginPath(),this.moveTo(t+n,e),this.lineTo(t+i-o,e),this.moveTo(t+i-o,e),p?this.arc(t+i-o,e+o,o,-c.TAU,0):this.arc(t+i,e,o,Math.PI,c.TAU,!0),this.lineTo(t+i,e+s-h),this.moveTo(t+i,e+s-h),g?this.arc(t+i-h,e+s-h,h,0,c.TAU):this.arc(t+i,e+s,h,-c.TAU,Math.PI,!0),this.lineTo(t+a,e+s),this.moveTo(t+a,e+s),f?this.arc(t+a,e+s-a,a,c.TAU,Math.PI):this.arc(t,e+s,a,0,-c.TAU,!0),this.lineTo(t,e+n),this.moveTo(t,e+n),d?this.arc(t+n,e+n,n,-Math.PI,-c.TAU):this.arc(t,e,n,c.TAU,0,!0),this.strokePath(),this},fillPointShape:function(t,e){return this.fillPoint(t.x,t.y,e)},fillPoint:function(t,e,i){return!i||i<1?i=1:(t-=i/2,e-=i/2),this.commandBuffer.push(n.FILL_RECT,t,e,i,i),this},fillTriangleShape:function(t){return this.fillTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},strokeTriangleShape:function(t){return this.strokeTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},fillTriangle:function(t,e,i,s,r,o){return this.commandBuffer.push(n.FILL_TRIANGLE,t,e,i,s,r,o),this},strokeTriangle:function(t,e,i,s,r,o){return this.commandBuffer.push(n.STROKE_TRIANGLE,t,e,i,s,r,o),this},strokeLineShape:function(t){return this.lineBetween(t.x1,t.y1,t.x2,t.y2)},lineBetween:function(t,e,i,s){return this.beginPath(),this.moveTo(t,e),this.lineTo(i,s),this.strokePath(),this},lineTo:function(t,e){return this.commandBuffer.push(n.LINE_TO,t,e),this},moveTo:function(t,e){return this.commandBuffer.push(n.MOVE_TO,t,e),this},strokePoints:function(t,e,i,s){void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===s&&(s=t.length),this.beginPath(),this.moveTo(t[0].x,t[0].y);for(var r=1;r-1&&this.fillStyle(this.defaultFillColor,this.defaultFillAlpha),this.defaultStrokeColor>-1&&this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha),this},generateTexture:function(t,e,i){var s,r,n=this.scene.sys,o=n.game.renderer;void 0===e&&(e=n.scale.width),void 0===i&&(i=n.scale.height),p.TargetCamera.setScene(this.scene),p.TargetCamera.setViewport(0,0,e,i),p.TargetCamera.scrollX=this.x,p.TargetCamera.scrollY=this.y;var a={willReadFrequently:!0};if("string"==typeof t)if(n.textures.exists(t)){var h=(s=n.textures.get(t)).getSourceImage();h instanceof HTMLCanvasElement&&(r=h.getContext("2d",a))}else r=(s=n.textures.createCanvas(t,e,i)).getSourceImage().getContext("2d",a);else t instanceof HTMLCanvasElement&&(r=t.getContext("2d",a));return r&&(this.renderCanvas(o,this,p.TargetCamera,null,r,!1),s&&s.refresh()),this},preDestroy:function(){this.commandBuffer=[]}});p.TargetCamera=new s,t.exports=p},32768:(t,e,i)=>{var s=i(85592),r=i(20926);t.exports=function(t,e,i,n,o,a){var h=e.commandBuffer,l=h.length,u=o||t.currentContext;if(0!==l&&r(t,u,e,i,n)){i.addToRenderList(e);var c=1,d=1,p=0,f=0,g=1,m=0,v=0,y=0;u.beginPath();for(var x=0;x>>16,v=(65280&p)>>>8,y=255&p,u.strokeStyle="rgba("+m+","+v+","+y+","+c+")",u.lineWidth=g,x+=3;break;case s.FILL_STYLE:f=h[x+1],d=h[x+2],m=(16711680&f)>>>16,v=(65280&f)>>>8,y=255&f,u.fillStyle="rgba("+m+","+v+","+y+","+d+")",x+=2;break;case s.BEGIN_PATH:u.beginPath();break;case s.CLOSE_PATH:u.closePath();break;case s.FILL_PATH:a||u.fill();break;case s.STROKE_PATH:a||u.stroke();break;case s.FILL_RECT:a?u.rect(h[x+1],h[x+2],h[x+3],h[x+4]):u.fillRect(h[x+1],h[x+2],h[x+3],h[x+4]),x+=4;break;case s.FILL_TRIANGLE:u.beginPath(),u.moveTo(h[x+1],h[x+2]),u.lineTo(h[x+3],h[x+4]),u.lineTo(h[x+5],h[x+6]),u.closePath(),a||u.fill(),x+=6;break;case s.STROKE_TRIANGLE:u.beginPath(),u.moveTo(h[x+1],h[x+2]),u.lineTo(h[x+3],h[x+4]),u.lineTo(h[x+5],h[x+6]),u.closePath(),a||u.stroke(),x+=6;break;case s.LINE_TO:u.lineTo(h[x+1],h[x+2]),x+=2;break;case s.MOVE_TO:u.moveTo(h[x+1],h[x+2]),x+=2;break;case s.LINE_FX_TO:u.lineTo(h[x+1],h[x+2]),x+=5;break;case s.MOVE_FX_TO:u.moveTo(h[x+1],h[x+2]),x+=5;break;case s.SAVE:u.save();break;case s.RESTORE:u.restore();break;case s.TRANSLATE:u.translate(h[x+1],h[x+2]),x+=2;break;case s.SCALE:u.scale(h[x+1],h[x+2]),x+=2;break;case s.ROTATE:u.rotate(h[x+1]),x+=1;break;case s.GRADIENT_FILL_STYLE:x+=5;break;case s.GRADIENT_LINE_STYLE:x+=6}u.restore()}}},87079:(t,e,i)=>{var s=i(44603),r=i(43831);s.register("graphics",(function(t,e){void 0===t&&(t={}),void 0!==e&&(t.add=e);var i=new r(this.scene,t);return t.add&&this.scene.sys.displayList.add(i),i}))},1201:(t,e,i)=>{var s=i(43831);i(39429).register("graphics",(function(t){return this.displayList.add(new s(this.scene,t))}))},84503:(t,e,i)=>{var s,r;i(29747),s=i(77545),i(32768),r=i(32768),t.exports={renderWebGL:s,renderCanvas:r}},77545:(t,e,i)=>{var s=i(85592),r=i(91296),n=i(61340),o=i(70554),a=function(t,e,i){this.x=t,this.y=e,this.width=i},h=function(t,e,i){this.points=[],this.pointsLength=1,this.points[0]=new a(t,e,i)},l=[],u=new n;t.exports=function(t,e,i,n){if(0!==e.commandBuffer.length){i.addToRenderList(e);var c=t.pipelines.set(e.pipeline,e);t.pipelines.preBatch(e);for(var d=r(e,i,n).calc,p=u.loadIdentity(),f=e.commandBuffer,g=i.alpha*e.alpha,m=1,v=c.fillTint,y=c.strokeTint,x=0,w=0,T=0,b=2*Math.PI,S=[],E=0,C=!0,A=null,_=o.getTintAppendFloatAlpha,P=0;P0&&(z=z%b-b):z>b?z=b:z<0&&(z=b+z%b),null===A&&(A=new h(B+Math.cos(Y)*U,N+Math.sin(Y)*U,m),S.push(A),I+=.01);I<1+G;)T=z*I+Y,x=B+Math.cos(T)*U,w=N+Math.sin(T)*U,A.points.push(new a(x,w,m)),I+=.01;T=z+Y,x=B+Math.cos(T)*U,w=N+Math.sin(T)*U,A.points.push(new a(x,w,m));break;case s.FILL_RECT:c.batchFillRect(f[++P],f[++P],f[++P],f[++P],p,d);break;case s.FILL_TRIANGLE:c.batchFillTriangle(f[++P],f[++P],f[++P],f[++P],f[++P],f[++P],p,d);break;case s.STROKE_TRIANGLE:c.batchStrokeTriangle(f[++P],f[++P],f[++P],f[++P],f[++P],f[++P],m,p,d);break;case s.LINE_TO:null!==A?A.points.push(new a(f[++P],f[++P],m)):(A=new h(f[++P],f[++P],m),S.push(A));break;case s.MOVE_TO:A=new h(f[++P],f[++P],m),S.push(A);break;case s.SAVE:l.push(p.copyToArray());break;case s.RESTORE:p.copyFromArray(l.pop());break;case s.TRANSLATE:B=f[++P],N=f[++P],p.translate(B,N);break;case s.SCALE:B=f[++P],N=f[++P],p.scale(B,N);break;case s.ROTATE:p.rotate(f[++P])}t.pipelines.postBatch(e)}}},26479:(t,e,i)=>{var s=i(61061),r=i(83419),n=i(51708),o=i(50792),a=i(46710),h=i(95540),l=i(35154),u=i(97022),c=i(41212),d=i(88492),p=i(35072),f=i(68287),g=new r({Extends:o,initialize:function(t,e,i){o.call(this),i?e&&!Array.isArray(e)&&(e=[e]):Array.isArray(e)?c(e[0])&&(i=e,e=null):c(e)&&(i=e,e=null),this.scene=t,this.children=new p,this.isParent=!0,this.type="Group",this.classType=h(i,"classType",f),this.name=h(i,"name",""),this.active=h(i,"active",!0),this.maxSize=h(i,"maxSize",-1),this.defaultKey=h(i,"defaultKey",null),this.defaultFrame=h(i,"defaultFrame",null),this.runChildUpdate=h(i,"runChildUpdate",!1),this.createCallback=h(i,"createCallback",null),this.removeCallback=h(i,"removeCallback",null),this.createMultipleCallback=h(i,"createMultipleCallback",null),this.internalCreateCallback=h(i,"internalCreateCallback",null),this.internalRemoveCallback=h(i,"internalRemoveCallback",null),e&&this.addMultiple(e),i&&this.createMultiple(i),this.on(n.ADDED_TO_SCENE,this.addedToScene,this),this.on(n.REMOVED_FROM_SCENE,this.removedFromScene,this)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},create:function(t,e,i,s,r,n){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.defaultKey),void 0===s&&(s=this.defaultFrame),void 0===r&&(r=!0),void 0===n&&(n=!0),this.isFull())return null;var o=new this.classType(this.scene,t,e,i,s);return o.addToDisplayList(this.scene.sys.displayList),o.addToUpdateList(),o.visible=r,o.setActive(n),this.add(o),o},createMultiple:function(t){if(this.isFull())return[];Array.isArray(t)||(t=[t]);var e=[];if(t[0].key)for(var i=0;i=0;u--)if((l=d[u]).active===i){if(++c===e)break}else l=null;return l?("number"==typeof r&&(l.x=r),"number"==typeof n&&(l.y=n),l):s?this.create(r,n,o,a,h):null},get:function(t,e,i,s,r){return this.getFirst(!1,!0,t,e,i,s,r)},getFirstAlive:function(t,e,i,s,r,n){return this.getFirst(!0,t,e,i,s,r,n)},getFirstDead:function(t,e,i,s,r,n){return this.getFirst(!1,t,e,i,s,r,n)},playAnimation:function(t,e){return s.PlayAnimation(this.children.entries,t,e),this},isFull:function(){return-1!==this.maxSize&&this.children.size>=this.maxSize},countActive:function(t){void 0===t&&(t=!0);for(var e=0,i=0;i{var s=i(44603),r=i(26479);s.register("group",(function(t){return new r(this.scene,null,t)}))},3385:(t,e,i)=>{var s=i(26479);i(39429).register("group",(function(t,e){return this.updateList.add(new s(this.scene,t,e))}))},88571:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(95643),o=i(59819),a=new s({Extends:n,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Size,r.TextureCrop,r.Tint,r.Transform,r.Visible,o],initialize:function(t,e,i,s,r){n.call(this,t,"Image"),this._crop=this.resetCropObject(),this.setTexture(s,r),this.setPosition(e,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)}});t.exports=a},40652:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e),t.batchSprite(e,e.frame,i,s)}},82459:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(88571);r.register("image",(function(t,e){void 0===t&&(t={});var i=n(t,"key",null),r=n(t,"frame",null),a=new o(this.scene,0,0,i,r);return void 0!==e&&(t.add=e),s(this.scene,a,t),a}))},2117:(t,e,i)=>{var s=i(88571);i(39429).register("image",(function(t,e,i,r){return this.displayList.add(new s(this.scene,t,e,i,r))}))},59819:(t,e,i)=>{var s,r;i(29747),s=i(99517),r=i(40652),t.exports={renderWebGL:s,renderCanvas:r}},99517:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e),this.pipeline.batchSprite(e,i,s)}},77856:(t,e,i)=>{var s={Events:i(51708),DisplayList:i(8050),GameObjectCreator:i(44603),GameObjectFactory:i(39429),UpdateList:i(45027),Components:i(31401),GetCalcMatrix:i(91296),BuildGameObject:i(25305),BuildGameObjectAnimation:i(13059),GameObject:i(95643),BitmapText:i(22186),Blitter:i(6107),Bob:i(46590),Container:i(31559),DOMElement:i(3069),DynamicBitmapText:i(2638),Extern:i(42421),Graphics:i(43831),Group:i(26479),Image:i(88571),Layer:i(93595),Particles:i(18404),PathFollower:i(1159),RenderTexture:i(591),RetroFont:i(196),Rope:i(77757),Sprite:i(68287),Text:i(50171),GetTextSize:i(14220),MeasureText:i(79557),TextStyle:i(35762),TileSprite:i(20839),Zone:i(41481),Video:i(18471),Shape:i(17803),Arc:i(23629),Curve:i(89),Ellipse:i(19921),Grid:i(30479),IsoBox:i(61475),IsoTriangle:i(16933),Line:i(57847),Polygon:i(24949),Rectangle:i(74561),Star:i(55911),Triangle:i(36931),Factories:{Blitter:i(12709),Container:i(24961),DOMElement:i(2611),DynamicBitmapText:i(72566),Extern:i(56315),Graphics:i(1201),Group:i(3385),Image:i(2117),Layer:i(20005),Particles:i(676),PathFollower:i(90145),RenderTexture:i(60505),Rope:i(96819),Sprite:i(46409),StaticBitmapText:i(34914),Text:i(68005),TileSprite:i(91681),Zone:i(84175),Video:i(89025),Arc:i(42563),Curve:i(40511),Ellipse:i(1543),Grid:i(34137),IsoBox:i(3933),IsoTriangle:i(49803),Line:i(2481),Polygon:i(64827),Rectangle:i(87959),Star:i(93697),Triangle:i(45245)},Creators:{Blitter:i(9403),Container:i(77143),DynamicBitmapText:i(11164),Graphics:i(87079),Group:i(94975),Image:i(82459),Layer:i(25179),Particles:i(92730),RenderTexture:i(34495),Rope:i(26209),Sprite:i(15567),StaticBitmapText:i(57336),Text:i(71259),TileSprite:i(14167),Zone:i(95261),Video:i(11511)}};s.Shader=i(20071),s.Mesh=i(4703),s.NineSlice=i(28103),s.PointLight=i(80321),s.Plane=i(33663),s.Factories.Shader=i(74177),s.Factories.Mesh=i(9225),s.Factories.NineSlice=i(47521),s.Factories.PointLight=i(71255),s.Factories.Plane=i(30985),s.Creators.Shader=i(54935),s.Creators.Mesh=i(20527),s.Creators.NineSlice=i(28279),s.Creators.PointLight=i(39829),s.Creators.Plane=i(56015),s.Light=i(41432),s.LightsManager=i(61356),s.LightsPlugin=i(88992),t.exports=s},93595:(t,e,i)=>{var s=i(10312),r=i(83419),n=i(31401),o=i(53774),a=i(45893),h=i(50792),l=i(51708),u=i(73162),c=i(33963),d=i(44594),p=i(19186),f=new r({Extends:u,Mixins:[n.AlphaSingle,n.BlendMode,n.Depth,n.Mask,n.PostPipeline,n.Visible,h,c],initialize:function(t,e){u.call(this,t),h.call(this),this.scene=t,this.displayList=null,this.type="Layer",this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,this.systems=t.sys,this.events=t.sys.events,this.sortChildrenFlag=!1,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.initPostPipeline(),this.clearAlpha(),this.setBlendMode(s.SKIP_CHECK),e&&this.add(e),t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new a(this)),this},setData:function(t,e){return this.data||(this.data=new a(this)),this.data.set(t,e),this},incData:function(t,e){return this.data||(this.data=new a(this)),this.data.inc(t,e),this},toggleData:function(t){return this.data||(this.data=new a(this)),this.data.toggle(t),this},getData:function(t){return this.data||(this.data=new a(this)),this.data.get(t)},setInteractive:function(){return this},disableInteractive:function(){return this},removeInteractive:function(){return this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return o(this)},willRender:function(t){return!(15!==this.renderFlags||0===this.list.length||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),t=e,e.parentContainer);)e=e.parentContainer;return i.unshift(this.displayList.getIndex(t)),i},addChildCallback:function(t){var e=t.displayList;e&&e!==this&&t.removeFromDisplayList(),t.displayList||(this.queueDepthSort(),t.displayList=this,t.emit(l.ADDED_TO_SCENE,t,this.scene),this.events.emit(d.ADDED_TO_SCENE,t,this.scene))},removeChildCallback:function(t){this.queueDepthSort(),t.displayList=null,t.emit(l.REMOVED_FROM_SCENE,t,this.scene),this.events.emit(d.REMOVED_FROM_SCENE,t,this.scene)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(p(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(t,e){return t._depth-e._depth},getChildren:function(){return this.list},addToDisplayList:function(t){return void 0===t&&(t=this.scene.sys.displayList),this.displayList&&this.displayList!==t&&this.removeFromDisplayList(),t.exists(this)||(this.displayList=t,t.add(this,!0),t.queueDepthSort(),this.emit(l.ADDED_TO_SCENE,this,this.scene),t.events.emit(d.ADDED_TO_SCENE,this,this.scene)),this},removeFromDisplayList:function(){var t=this.displayList||this.scene.sys.displayList;return t.exists(this)&&(t.remove(this,!0),t.queueDepthSort(),this.displayList=null,this.emit(l.REMOVED_FROM_SCENE,this,this.scene),t.events.emit(d.REMOVED_FROM_SCENE,this,this.scene)),this},destroy:function(t){if(this.scene&&!this.ignoreDestroy){this.emit(l.DESTROY,this);for(var e=this.list;e.length;)e[0].destroy(t);this.removeAllListeners(),this.resetPostPipeline(!0),this.displayList&&(this.displayList.remove(this,!0,!1),this.displayList.queueDepthSort()),this.data&&(this.data.destroy(),this.data=void 0),this.active=!1,this.visible=!1,this.list=void 0,this.scene=void 0,this.displayList=void 0,this.systems=void 0,this.events=void 0}}});t.exports=f},2956:t=>{t.exports=function(t,e,i){var s=e.list;if(0!==s.length){e.depthSort();var r=-1!==e.blendMode;r||t.setBlendMode(0);var n=e._alpha;e.mask&&e.mask.preRenderCanvas(t,null,i);for(var o=0;o{var s=i(25305),r=i(93595),n=i(44603),o=i(23568);n.register("layer",(function(t,e){void 0===t&&(t={});var i=o(t,"children",null),n=new r(this.scene,i);return void 0!==e&&(t.add=e),s(this.scene,n,t),n}))},20005:(t,e,i)=>{var s=i(93595);i(39429).register("layer",(function(t){return this.displayList.add(new s(this.scene,t))}))},33963:(t,e,i)=>{var s,r;i(29747),s=i(15869),r=i(2956),t.exports={renderWebGL:s,renderCanvas:r}},15869:t=>{t.exports=function(t,e,i){var s=e.list,r=s.length;if(0!==r){e.depthSort(),t.pipelines.preBatch(e);var n=-1!==e.blendMode;n||t.setBlendMode(0);for(var o=e.alpha,a=0;a{var s=i(96503),r=i(83419),n=i(31401),o=i(51767),a=i(70554),h=new r({Extends:s,Mixins:[n.Origin,n.ScrollFactor,n.Visible],initialize:function(t,e,i,r,n,a,h){s.call(this,t,e,i),this.color=new o(r,n,a),this.intensity=h,this.renderFlags=15,this.cameraFilter=0,this.setScrollFactor(1,1),this.setOrigin(),this.setDisplayOrigin(i)},displayWidth:{get:function(){return this.diameter},set:function(t){this.diameter=t}},displayHeight:{get:function(){return this.diameter},set:function(t){this.diameter=t}},width:{get:function(){return this.diameter},set:function(t){this.diameter=t}},height:{get:function(){return this.diameter},set:function(t){this.diameter=t}},willRender:function(t){return!(h.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},setColor:function(t){var e=a.getFloatsFromUintRGB(t);return this.color.set(e[0],e[1],e[2]),this},setIntensity:function(t){return this.intensity=t,this},setRadius:function(t){return this.radius=t,this}});h.RENDER_MASK=15,t.exports=h},61356:(t,e,i)=>{var s=i(81491),r=i(83419),n=i(20339),o=i(41432),a=i(80321),h=i(51767),l=i(19133),u=i(19186),c=i(70554),d=new r({initialize:function(){this.lights=[],this.ambientColor=new h(.1,.1,.1),this.active=!1,this.maxLights=-1,this.visibleLights=0},addPointLight:function(t,e,i,s,r,n){return this.systems.displayList.add(new a(this.scene,t,e,i,s,r,n))},enable:function(){return-1===this.maxLights&&(this.maxLights=this.systems.renderer.config.maxLights),this.active=!0,this},disable:function(){return this.active=!1,this},getLights:function(t){for(var e=this.lights,i=t.worldView,r=[],o=0;othis.maxLights&&(u(r,this.sortByDistance),r=r.slice(0,this.maxLights)),this.visibleLights=r.length,r},sortByDistance:function(t,e){return t.distance>=e.distance},setAmbientColor:function(t){var e=c.getFloatsFromUintRGB(t);return this.ambientColor.set(e[0],e[1],e[2]),this},getMaxVisibleLights:function(){return this.maxLights},getLightCount:function(){return this.lights.length},addLight:function(t,e,i,s,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=128),void 0===s&&(s=16777215),void 0===r&&(r=1);var n=c.getFloatsFromUintRGB(s),a=new o(t,e,i,n[0],n[1],n[2],r);return this.lights.push(a),a},removeLight:function(t){var e=this.lights.indexOf(t);return e>=0&&l(this.lights,e),this},shutdown:function(){this.lights.length=0},destroy:function(){this.shutdown()}});t.exports=d},88992:(t,e,i)=>{var s=i(83419),r=i(61356),n=i(37277),o=i(44594),a=new s({Extends:r,initialize:function(t){this.scene=t,this.systems=t.sys,t.sys.settings.isBooted||t.sys.events.once(o.BOOT,this.boot,this),r.call(this)},boot:function(){var t=this.systems.events;t.on(o.SHUTDOWN,this.shutdown,this),t.on(o.DESTROY,this.destroy,this)},destroy:function(){this.shutdown(),this.scene=void 0,this.systems=void 0}});n.register("LightsPlugin",a,"lights"),t.exports=a},4703:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(39506),o=i(83997),a=i(95643),h=i(34684),l=i(92515),u=i(91296),c=i(37867),d=i(29807),p=i(43396),f=i(19186),g=i(25836),m=i(39318),v=new s({Extends:a,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.Mask,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Size,r.Texture,r.Transform,r.Visible,d],initialize:function(t,e,i,s,r,n,o,h,l,u,d,p){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s="__WHITE"),a.call(this,t,"Mesh"),this.faces=[],this.vertices=[],this.tintFill=!1,this.debugCallback=null,this.debugGraphic=null,this.hideCCW=!0,this.modelPosition=new g,this.modelScale=new g(1,1,1),this.modelRotation=new g,this.dirtyCache=[0,0,0,0,0,0,0,0,0,0,0,0],this.transformMatrix=new c,this.viewPosition=new g,this.viewMatrix=new c,this.projectionMatrix=new c,this.totalRendered=0,this.totalFrame=0,this.ignoreDirtyCache=!1,this.fov,this.displayOriginX=0,this.displayOriginY=0;var f=t.sys.renderer;this.setPosition(e,i),this.setTexture(s,r),this.setSize(f.width,f.height),this.initPipeline(),this.initPostPipeline(),this.setPerspective(f.width,f.height),n&&this.addVertices(n,o,h,l,u,d,p)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},panX:function(t){return this.viewPosition.addScale(g.LEFT,t),this.dirtyCache[10]=1,this},panY:function(t){return this.viewPosition.y+=g.DOWN.y*t,this.dirtyCache[10]=1,this},panZ:function(t){return this.viewPosition.z+=t,this.dirtyCache[10]=1,this},setPerspective:function(t,e,i,s,r){return void 0===i&&(i=45),void 0===s&&(s=.01),void 0===r&&(r=1e3),this.fov=i,this.projectionMatrix.perspective(n(i),t/e,s,r),this.dirtyCache[10]=1,this.dirtyCache[11]=0,this},setOrtho:function(t,e,i,s){return void 0===t&&(t=this.scene.sys.renderer.getAspectRatio()),void 0===e&&(e=1),void 0===i&&(i=-1e3),void 0===s&&(s=1e3),this.fov=0,this.projectionMatrix.ortho(-t,t,-e,e,i,s),this.dirtyCache[10]=1,this.dirtyCache[11]=1,this},clear:function(){return this.faces.forEach((function(t){t.destroy()})),this.faces=[],this.vertices=[],this},addVerticesFromObj:function(t,e,i,s,r,n,o,a,l){var u,c=this.scene.sys.cache.obj.get(t);return c&&(u=h(c,this,e,i,s,r,n,o,a,l)),u&&0!==u.verts.length||console.warn("Mesh.addVerticesFromObj data empty:",t),this},sortByDepth:function(t,e){return t.depth-e.depth},depthSort:function(){return f(this.faces,this.sortByDepth),this},addVertex:function(t,e,i,s,r,n,o){var a=new m(t,e,i,s,r,n,o);return this.vertices.push(a),a},addFace:function(t,e,i){var s=new o(t,e,i);return this.faces.push(s),this.dirtyCache[9]=-1,s},addVertices:function(t,e,i,s,r,n,o){var a=l(t,e,i,s,r,n,o);return a?(this.faces=this.faces.concat(a.faces),this.vertices=this.vertices.concat(a.vertices)):console.warn("Mesh.addVertices data empty or invalid"),this.dirtyCache[9]=-1,this},getFaceCount:function(){return this.faces.length},getVertexCount:function(){return this.vertices.length},getFace:function(t){return this.faces[t]},hasFaceAt:function(t,e,i){void 0===i&&(i=this.scene.sys.cameras.main);for(var s=u(this,i).calc,r=this.faces,n=0;n{t.exports=function(){}},20527:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(35154),a=i(4703);r.register("mesh",(function(t,e){void 0===t&&(t={});var i=n(t,"key",null),r=n(t,"frame",null),h=o(t,"vertices",[]),l=o(t,"uvs",[]),u=o(t,"indicies",[]),c=o(t,"containsZ",!1),d=o(t,"normals",[]),p=o(t,"colors",16777215),f=o(t,"alphas",1),g=new a(this.scene,0,0,i,r,h,l,u,c,d,p,f);return void 0!==e&&(t.add=e),s(this.scene,g,t),g}))},9225:(t,e,i)=>{var s=i(4703);i(39429).register("mesh",(function(t,e,i,r,n,o,a,h,l,u,c){return this.displayList.add(new s(this.scene,t,e,i,r,n,o,a,h,l,u,c))}))},29807:(t,e,i)=>{var s,r;i(29747),s=i(48833),r=i(36488),t.exports={renderWebGL:s,renderCanvas:r}},48833:(t,e,i)=>{var s=i(91296);t.exports=function(t,e,i,r){var n=e.faces,o=n.length;if(0!==o){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline,e),h=s(e,i,r).calc;t.pipelines.preBatch(e);for(var l=a.setGameObject(e),u=a.vertexViewF32,c=a.vertexViewU32,d=a.vertexCount*a.currentShader.vertexComponentCount-1,p=e.tintFill,f=[],g=e.debugCallback,m=h.a,v=h.b,y=h.c,x=h.d,w=h.e,T=h.f,b=e.viewPosition.z,S=e.hideCCW,E=i.roundPixels,C=i.alpha*e.alpha,A=0,_=0;_{var s=i(83419),r=i(31401),n=i(95643),o=i(78023),a=i(39318),h=new s({Extends:n,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Texture,r.Transform,r.Visible,o],initialize:function(t,e,i,s,r,o,h,l,u,c,d){n.call(this,t,"NineSlice"),this._width,this._height,this._originX=.5,this._originY=.5,this._sizeComponent=!0,this.vertices=[],this.leftWidth,this.rightWidth,this.topHeight,this.bottomHeight,this.tint=16777215,this.tintFill=!1;var p=t.textures.getFrame(s,r);this.is3Slice=!c&&!d,p.scale9&&(this.is3Slice=p.is3Slice);for(var f=this.is3Slice?18:54,g=0;g{var s=i(25305),r=i(44603),n=i(23568),o=i(35154),a=i(28103);r.register("nineslice",(function(t,e){void 0===t&&(t={});var i=n(t,"key",null),r=n(t,"frame",null),h=o(t,"width",256),l=o(t,"height",256),u=o(t,"leftWidth",10),c=o(t,"rightWidth",10),d=o(t,"topHeight",0),p=o(t,"bottomHeight",0),f=new a(this.scene,0,0,i,r,h,l,u,c,d,p);return void 0!==e&&(t.add=e),s(this.scene,f,t),f}))},47521:(t,e,i)=>{var s=i(28103);i(39429).register("nineslice",(function(t,e,i,r,n,o,a,h,l,u){return this.displayList.add(new s(this.scene,t,e,i,r,n,o,a,h,l,u))}))},78023:(t,e,i)=>{var s,r=i(29747),n=r;s=i(52230),t.exports={renderWebGL:s,renderCanvas:n}},52230:(t,e,i)=>{var s=i(91296),r=i(70554);t.exports=function(t,e,i,n){var o=e.vertices,a=o.length;if(0!==a){i.addToRenderList(e);var h=t.pipelines.set(e.pipeline,e),l=s(e,i,n,!1).calc;t.pipelines.preBatch(e);var u=h.setGameObject(e),c=h.vertexViewF32,d=h.vertexViewU32,p=h.vertexCount*h.currentShader.vertexComponentCount-1,f=i.roundPixels,g=e.tintFill,m=i.alpha*e.alpha,v=r.getTintAppendFloatAlpha(e.tint,m),y=h.vertexAvailable(),x=-1;y{var s=i(83419),r=i(44777),n=i(37589),o=i(6113),a=i(91389),h=i(90664),l=new s({Extends:r,initialize:function(t){r.call(this,t,null,!1),this.active=!1,this.easeName="Linear",this.r=[],this.g=[],this.b=[]},getMethod:function(){return null===this.propertyValue?0:9},setMethods:function(){var t=this.propertyValue,e=t,i=this.defaultEmit,s=this.defaultUpdate;if(9===this.method){this.start=t[0],this.ease=o("Linear"),this.interpolation=a("linear"),i=this.easedValueEmit,s=this.easeValueUpdate,e=t[0],this.active=!0;for(var r=0;r{var s=i(30976),r=i(45319),n=i(83419),o=i(99472),a=i(6113),h=i(95540),l=i(91389),u=i(77720),c=i(15994),d=new n({initialize:function(t,e,i){void 0===i&&(i=!1),this.propertyKey=t,this.propertyValue=e,this.defaultValue=e,this.steps=0,this.counter=0,this.yoyo=!1,this.direction=0,this.start=0,this.current=0,this.end=0,this.ease=null,this.interpolation=null,this.emitOnly=i,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.active=!0,this.method=0,this._onEmit,this._onUpdate},loadConfig:function(t,e){void 0===t&&(t={}),e&&(this.propertyKey=e),this.propertyValue=h(t,this.propertyKey,this.defaultValue),this.method=this.getMethod(),this.setMethods(),this.emitOnly&&(this.onUpdate=this.defaultUpdate)},toJSON:function(){return JSON.stringify(this.propertyValue)},onChange:function(t){var e;switch(this.method){case 1:case 3:case 8:e=t;break;case 2:this.propertyValue.indexOf(t)>=0&&(e=t);break;case 4:var i=(this.end-this.start)/this.steps;e=u(t,i),this.counter=e;break;case 5:case 6:case 7:e=r(t,this.start,this.end);break;case 9:e=this.start[0]}return this.current=e,this},getMethod:function(){var t=this.propertyValue;if(null===t)return 0;var e=typeof t;if("number"===e)return 1;if(Array.isArray(t))return 2;if("function"===e)return 3;if("object"===e){if(this.hasBoth(t,"start","end"))return this.has(t,"steps")?4:5;if(this.hasBoth(t,"min","max"))return 6;if(this.has(t,"random"))return 7;if(this.hasEither(t,"onEmit","onUpdate"))return 8;if(this.hasEither(t,"values","interpolation"))return 9}return 0},setMethods:function(){var t=this.propertyValue,e=t,i=this.defaultEmit,s=this.defaultUpdate;switch(this.method){case 1:i=this.staticValueEmit;break;case 2:i=this.randomStaticValueEmit,e=t[0];break;case 3:this._onEmit=t,i=this.proxyEmit;break;case 4:this.start=t.start,this.end=t.end,this.steps=t.steps,this.counter=this.start,this.yoyo=!!this.has(t,"yoyo")&&t.yoyo,this.direction=0,i=this.steppedEmit,e=this.start;break;case 5:this.start=t.start,this.end=t.end;var r=this.has(t,"ease")?t.ease:"Linear";this.ease=a(r,t.easeParams),i=this.has(t,"random")&&t.random?this.randomRangedValueEmit:this.easedValueEmit,s=this.easeValueUpdate,e=this.start;break;case 6:this.start=t.min,this.end=t.max,i=this.has(t,"int")&&t.int?this.randomRangedIntEmit:this.randomRangedValueEmit,e=this.start;break;case 7:var n=t.random;Array.isArray(n)&&(this.start=n[0],this.end=n[1]),i=this.randomRangedIntEmit,e=this.start;break;case 8:this._onEmit=this.has(t,"onEmit")?t.onEmit:this.defaultEmit,this._onUpdate=this.has(t,"onUpdate")?t.onUpdate:this.defaultUpdate,i=this.proxyEmit,s=this.proxyUpdate;break;case 9:this.start=t.values;var o=this.has(t,"ease")?t.ease:"Linear";this.ease=a(o,t.easeParams),this.interpolation=l(t.interpolation),i=this.easedValueEmit,s=this.easeValueUpdate,e=this.start[0]}return this.onEmit=i,this.onUpdate=s,this.current=e,this},has:function(t,e){return t.hasOwnProperty(e)},hasBoth:function(t,e,i){return t.hasOwnProperty(e)&&t.hasOwnProperty(i)},hasEither:function(t,e,i){return t.hasOwnProperty(e)||t.hasOwnProperty(i)},defaultEmit:function(t,e,i){return i},defaultUpdate:function(t,e,i,s){return s},proxyEmit:function(t,e,i){var s=this._onEmit(t,e,i);return this.current=s,s},proxyUpdate:function(t,e,i,s){var r=this._onUpdate(t,e,i,s);return this.current=r,r},staticValueEmit:function(){return this.current},staticValueUpdate:function(){return this.current},randomStaticValueEmit:function(){var t=Math.floor(Math.random()*this.propertyValue.length);return this.current=this.propertyValue[t],this.current},randomRangedValueEmit:function(t,e){var i=o(this.start,this.end);return t&&t.data[e]&&(t.data[e].min=i,t.data[e].max=this.end),this.current=i,i},randomRangedIntEmit:function(t,e){var i=s(this.start,this.end);return t&&t.data[e]&&(t.data[e].min=i,t.data[e].max=this.end),this.current=i,i},steppedEmit:function(){var t,e=this.counter,i=e,s=(this.end-this.start)/this.steps;return this.yoyo?(0===this.direction?(i+=s)>=this.end&&(t=i-this.end,i=this.end-t,this.direction=1):(i-=s)<=this.start&&(t=this.start-i,i=this.start+t,this.direction=0),this.counter=i):this.counter=c(i+s,this.start,this.end),this.current=e,e},easedValueEmit:function(t,e){if(t&&t.data[e]){var i=t.data[e];i.min=this.start,i.max=this.end}return this.current=this.start,this.start},easeValueUpdate:function(t,e,i){var s,r=t.data[e],n=this.ease(i);return s=this.interpolation?this.interpolation(this.start,n):(r.max-r.min)*n+r.min,this.current=s,s},destroy:function(){this.propertyValue=null,this.defaultValue=null,this.ease=null,this.interpolation=null,this._onEmit=null,this._onUpdate=null}});t.exports=d},24502:(t,e,i)=>{var s=i(83419),r=i(95540),n=i(20286),o=new s({Extends:n,initialize:function(t,e,i,s,o){if("object"==typeof t){var a=t;t=r(a,"x",0),e=r(a,"y",0),i=r(a,"power",0),s=r(a,"epsilon",100),o=r(a,"gravity",50)}else void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=100),void 0===o&&(o=50);n.call(this,t,e,!0),this._gravity=o,this._power=i*o,this._epsilon=s*s},update:function(t,e){var i=this.x-t.x,s=this.y-t.y,r=i*i+s*s;if(0!==r){var n=Math.sqrt(r);r{var s=i(9674),r=i(45319),n=i(83419),o=i(39506),a=i(87841),h=i(11520),l=i(26099),u=new n({initialize:function(t){this.emitter=t,this.texture=null,this.frame=null,this.x=0,this.y=0,this.worldPosition=new l,this.velocityX=0,this.velocityY=0,this.accelerationX=0,this.accelerationY=0,this.maxVelocityX=1e4,this.maxVelocityY=1e4,this.bounce=0,this.scaleX=1,this.scaleY=1,this.alpha=1,this.angle=0,this.rotation=0,this.tint=16777215,this.life=1e3,this.lifeCurrent=1e3,this.delayCurrent=0,this.holdCurrent=0,this.lifeT=0,this.data={tint:{min:16777215,max:16777215},alpha:{min:1,max:1},rotate:{min:0,max:0},scaleX:{min:1,max:1},scaleY:{min:1,max:1},x:{min:0,max:0},y:{min:0,max:0},accelerationX:{min:0,max:0},accelerationY:{min:0,max:0},maxVelocityX:{min:0,max:0},maxVelocityY:{min:0,max:0},moveToX:{min:0,max:0},moveToY:{min:0,max:0},bounce:{min:0,max:0}},this.isCropped=!1,this.scene=t.scene,this.anims=new s(this),this.bounds=new a},emit:function(t,e,i,s,r,n){return this.emitter.emit(t,e,i,s,r,n)},isAlive:function(){return this.lifeCurrent>0},kill:function(){this.lifeCurrent=0},setPosition:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=t,this.y=e},fire:function(t,e){var i=this.emitter,s=i.ops,r=i.getAnim();if(r?this.anims.play(r):(this.frame=i.getFrame(),this.texture=this.frame.texture),!this.frame)throw new Error("Particle has no texture frame");if(i.getEmitZone(this),void 0===t?this.x+=s.x.onEmit(this,"x"):s.x.steps>0?this.x+=t+s.x.onEmit(this,"x"):this.x+=t,void 0===e?this.y+=s.y.onEmit(this,"y"):s.y.steps>0?this.y+=e+s.y.onEmit(this,"y"):this.y+=e,this.life=s.lifespan.onEmit(this,"lifespan"),this.lifeCurrent=this.life,this.lifeT=0,this.delayCurrent=s.delay.onEmit(this,"delay"),this.holdCurrent=s.hold.onEmit(this,"hold"),this.scaleX=s.scaleX.onEmit(this,"scaleX"),this.scaleY=s.scaleY.active?s.scaleY.onEmit(this,"scaleY"):this.scaleX,this.angle=s.rotate.onEmit(this,"rotate"),this.rotation=o(this.angle),i.worldMatrix.transformPoint(this.x,this.y,this.worldPosition),0===this.delayCurrent&&i.getDeathZone(this))return this.lifeCurrent=0,!1;var n=s.speedX.onEmit(this,"speedX"),a=s.speedY.active?s.speedY.onEmit(this,"speedY"):n;if(i.radial){var h=o(s.angle.onEmit(this,"angle"));this.velocityX=Math.cos(h)*Math.abs(n),this.velocityY=Math.sin(h)*Math.abs(a)}else if(i.moveTo){var l=s.moveToX.onEmit(this,"moveToX"),u=s.moveToY.onEmit(this,"moveToY"),c=this.life/1e3;this.velocityX=(l-this.x)/c,this.velocityY=(u-this.y)/c}else this.velocityX=n,this.velocityY=a;return i.acceleration&&(this.accelerationX=s.accelerationX.onEmit(this,"accelerationX"),this.accelerationY=s.accelerationY.onEmit(this,"accelerationY")),this.maxVelocityX=s.maxVelocityX.onEmit(this,"maxVelocityX"),this.maxVelocityY=s.maxVelocityY.onEmit(this,"maxVelocityY"),this.bounce=s.bounce.onEmit(this,"bounce"),this.alpha=s.alpha.onEmit(this,"alpha"),s.color.active?this.tint=s.color.onEmit(this,"tint"):this.tint=s.tint.onEmit(this,"tint"),!0},update:function(t,e,i){if(this.lifeCurrent<=0)return!(this.holdCurrent>0)||(this.holdCurrent-=t,this.holdCurrent<=0);if(this.delayCurrent>0)return this.delayCurrent-=t,!1;this.anims.update(0,t);var s=this.emitter,n=s.ops,a=1-this.lifeCurrent/this.life;if(this.lifeT=a,this.x=n.x.onUpdate(this,"x",a,this.x),this.y=n.y.onUpdate(this,"y",a,this.y),s.moveTo){var h=n.moveToX.onUpdate(this,"moveToX",a,s.moveToX),l=n.moveToY.onUpdate(this,"moveToY",a,s.moveToY),u=this.lifeCurrent/1e3;this.velocityX=(h-this.x)/u,this.velocityY=(l-this.y)/u}return this.computeVelocity(s,t,e,i,a),this.scaleX=n.scaleX.onUpdate(this,"scaleX",a,this.scaleX),n.scaleY.active?this.scaleY=n.scaleY.onUpdate(this,"scaleY",a,this.scaleY):this.scaleY=this.scaleX,this.angle=n.rotate.onUpdate(this,"rotate",a,this.angle),this.rotation=o(this.angle),s.getDeathZone(this)?(this.lifeCurrent=0,!0):(this.alpha=r(n.alpha.onUpdate(this,"alpha",a,this.alpha),0,1),n.color.active?this.tint=n.color.onUpdate(this,"color",a,this.tint):this.tint=n.tint.onUpdate(this,"tint",a,this.tint),this.lifeCurrent-=t,this.lifeCurrent<=0&&this.holdCurrent<=0)},computeVelocity:function(t,e,i,s,n){var o=t.ops,a=this.velocityX,h=this.velocityY,l=o.accelerationX.onUpdate(this,"accelerationX",n,this.accelerationX),u=o.accelerationY.onUpdate(this,"accelerationY",n,this.accelerationY),c=o.maxVelocityX.onUpdate(this,"maxVelocityX",n,this.maxVelocityX),d=o.maxVelocityY.onUpdate(this,"maxVelocityY",n,this.maxVelocityY);this.bounce=o.bounce.onUpdate(this,"bounce",n,this.bounce),a+=t.gravityX*i+l*i,h+=t.gravityY*i+u*i,a=r(a,-c,c),h=r(h,-d,d),this.velocityX=a,this.velocityY=h,this.x+=a*i,this.y+=h*i,t.worldMatrix.transformPoint(this.x,this.y,this.worldPosition);for(var p=0;p{var s=i(83419),r=i(20286),n=i(87841),o=new s({Extends:r,initialize:function(t,e,i,s,o,a,h,l){void 0===o&&(o=!0),void 0===a&&(a=!0),void 0===h&&(h=!0),void 0===l&&(l=!0),r.call(this,t,e,!0),this.bounds=new n(t,e,i,s),this.collideLeft=o,this.collideRight=a,this.collideTop=h,this.collideBottom=l},update:function(t){var e=this.bounds,i=-t.bounce,s=t.worldPosition;s.xe.right&&this.collideRight&&(t.x-=s.x-e.right,t.velocityX*=i),s.ye.bottom&&this.collideBottom&&(t.y-=s.y-e.bottom,t.velocityY*=i)}});t.exports=o},31600:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(53774),o=i(43459),a=i(26388),h=i(19909),l=i(76472),u=i(44777),c=i(20696),d=i(95643),p=i(95540),f=i(26546),g=i(24502),m=i(1985),v=i(97022),y=i(86091),x=i(73162),w=i(20074),T=i(56480),b=i(68875),S=i(87841),E=i(59996),C=i(72905),A=i(90668),_=i(19186),P=i(61340),R=i(26099),M=i(15994),k=i(69601),L=["active","advance","blendMode","colorEase","deathCallback","deathCallbackScope","duration","emitCallback","emitCallbackScope","follow","frequency","gravityX","gravityY","maxAliveParticles","maxParticles","name","emitting","particleBringToTop","particleClass","radial","sortCallback","sortOrderAsc","sortProperty","stopAfter","tintFill","timeScale","trackVisible","visible"],O=["accelerationX","accelerationY","alpha","angle","bounce","color","delay","hold","lifespan","maxVelocityX","maxVelocityY","moveToX","moveToY","quantity","rotate","scaleX","scaleY","speedX","speedY","tint","x","y"],F=new s({Extends:d,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.Mask,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Texture,r.Transform,r.Visible,A],initialize:function(t,e,i,s,r){d.call(this,t,"ParticleEmitter"),this.particleClass=T,this.ops={accelerationX:new u("accelerationX",0),accelerationY:new u("accelerationY",0),alpha:new u("alpha",1),angle:new u("angle",{min:0,max:360},!0),bounce:new u("bounce",0),color:new l("color"),delay:new u("delay",0,!0),hold:new u("hold",0,!0),lifespan:new u("lifespan",1e3,!0),maxVelocityX:new u("maxVelocityX",1e4),maxVelocityY:new u("maxVelocityY",1e4),moveToX:new u("moveToX",0),moveToY:new u("moveToY",0),quantity:new u("quantity",1,!0),rotate:new u("rotate",0),scaleX:new u("scaleX",1),scaleY:new u("scaleY",1),speedX:new u("speedX",0,!0),speedY:new u("speedY",0,!0),tint:new u("tint",16777215),x:new u("x",0),y:new u("y",0)},this.radial=!0,this.gravityX=0,this.gravityY=0,this.acceleration=!1,this.moveTo=!1,this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.maxParticles=0,this.maxAliveParticles=0,this.stopAfter=0,this.duration=0,this.frequency=0,this.emitting=!0,this.particleBringToTop=!0,this.timeScale=1,this.emitZones=[],this.deathZones=[],this.viewBounds=null,this.follow=null,this.followOffset=new R,this.trackVisible=!1,this.frames=[],this.randomFrame=!0,this.frameQuantity=1,this.anims=[],this.randomAnim=!0,this.animQuantity=1,this.dead=[],this.alive=[],this.counters=new Float32Array(10),this.skipping=!1,this.worldMatrix=new P,this.sortProperty="",this.sortOrderAsc=!0,this.sortCallback=this.depthSortCallback,this.processors=new x(this),this.tintFill=!1,this.initPipeline(),this.initPostPipeline(),this.setPosition(e,i),this.setTexture(s),r&&this.setConfig(r)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},setConfig:function(t){if(!t)return this;var e=0,i="",s=this.ops;for(e=0;e=this.animQuantity&&(this.animCounter=0,this.currentAnim=M(this.currentAnim+1,0,e)),i},setAnim:function(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=1),this.randomAnim=e,this.animQuantity=i,this.currentAnim=0;var s=typeof t;if(this.anims.length=0,Array.isArray(t))this.anims=this.anims.concat(t);else if("string"===s)this.anims.push(t);else if("object"===s){var r=t;(t=p(r,"anims",null))&&(this.anims=this.anims.concat(t));var n=p(r,"cycle",!1);this.randomAnim=!n,this.animQuantity=p(r,"quantity",i)}return 1===this.anims.length&&(this.animQuantity=1,this.randomAnim=!1),this},setRadial:function(t){return void 0===t&&(t=!0),this.radial=t,this},addParticleBounds:function(t,e,i,s,r,n,o,a){if("object"==typeof t){var h=t;t=h.x,e=h.y,i=v(h,"w")?h.w:h.width,s=v(h,"h")?h.h:h.height}return this.addParticleProcessor(new k(t,e,i,s,r,n,o,a))},setParticleSpeed:function(t,e){return void 0===e&&(e=t),this.ops.speedX.onChange(t),t===e?this.ops.speedY.active=!1:this.ops.speedY.onChange(e),this.radial=!0,this},setParticleScale:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.ops.scaleX.onChange(t),this.ops.scaleY.onChange(e),this},setParticleGravity:function(t,e){return this.gravityX=t,this.gravityY=e,this},setParticleAlpha:function(t){return this.ops.alpha.onChange(t),this},setParticleTint:function(t){return this.ops.tint.onChange(t),this},setEmitterAngle:function(t){return this.ops.angle.onChange(t),this},setParticleLifespan:function(t){return this.ops.lifespan.onChange(t),this},setQuantity:function(t){return this.quantity=t,this},setFrequency:function(t,e){return this.frequency=t,this.flowCounter=t>0?t:0,e&&(this.quantity=e),this},addDeathZone:function(t){var e;Array.isArray(t)||(t=[t]);for(var i=[],s=0;s-1&&(this.zoneTotal++,this.zoneTotal===s.total&&(this.zoneTotal=0,this.zoneIndex++,this.zoneIndex===i&&(this.zoneIndex=0)))}},getDeathZone:function(t){for(var e=this.deathZones,i=0;i=0&&(this.zoneIndex=e),this},addParticleProcessor:function(t){return this.processors.exists(t)||(t.emitter&&t.emitter.removeParticleProcessor(t),this.processors.add(t),t.emitter=this),t},removeParticleProcessor:function(t){return this.processors.exists(t)&&(this.processors.remove(t,!0),t.emitter=null),t},getProcessors:function(){return this.processors.getAll("active",!0)},createGravityWell:function(t){return this.addParticleProcessor(new g(t))},reserve:function(t){var e=this.dead;if(this.maxParticles>0){var i=this.getParticleCount();i+t>this.maxParticles&&(t=this.maxParticles-(i+t))}for(var s=0;s0&&this.getParticleCount()>=this.maxParticles||this.maxAliveParticles>0&&this.getAliveParticleCount()>=this.maxAliveParticles},onParticleEmit:function(t,e){return void 0===t?(this.emitCallback=null,this.emitCallbackScope=null):"function"==typeof t&&(this.emitCallback=t,e&&(this.emitCallbackScope=e)),this},onParticleDeath:function(t,e){return void 0===t?(this.deathCallback=null,this.deathCallbackScope=null):"function"==typeof t&&(this.deathCallback=t,e&&(this.deathCallbackScope=e)),this},killAll:function(){for(var t=this.dead,e=this.alive;e.length>0;)t.push(e.pop());return this},forEachAlive:function(t,e){for(var i=this.alive,s=i.length,r=0;r0&&this.fastForward(t),this.emitting=!0,this.resetCounters(this.frequency,!0),void 0!==e&&(this.duration=Math.abs(e)),this.emit(c.START,this)),this},stop:function(t){return void 0===t&&(t=!1),this.emitting&&(this.emitting=!1,t&&this.killAll(),this.emit(c.STOP,this)),this},pause:function(){return this.active=!1,this},resume:function(){return this.active=!0,this},setSortProperty:function(t,e){return void 0===t&&(t=""),void 0===e&&(e=this.true),this.sortProperty=t,this.sortOrderAsc=e,this.sortCallback=this.depthSortCallback,this},setSortCallback:function(t){return t=""!==this.sortProperty?this.depthSortCallback:null,this.sortCallback=t,this},depthSort:function(){return _(this.alive,this.sortCallback.bind(this)),this},depthSortCallback:function(t,e){var i=this.sortProperty;return this.sortOrderAsc?t[i]-e[i]:e[i]-t[i]},flow:function(t,e,i){return void 0===e&&(e=1),this.emitting=!1,this.frequency=t,this.quantity=e,void 0!==i&&(this.stopAfter=i),this.start()},explode:function(t,e,i){this.frequency=-1,this.resetCounters(-1,!0);var s=this.emitParticle(t,e,i);return this.emit(c.EXPLODE,this,s),s},emitParticleAt:function(t,e,i){return this.emitParticle(i,t,e)},emitParticle:function(t,e,i){if(!this.atLimit()){void 0===t&&(t=this.ops.quantity.onEmit());for(var s=this.dead,r=this.stopAfter,n=this.follow?this.follow.x+this.followOffset.x:e,o=this.follow?this.follow.y+this.followOffset.y:i,a=0;a0&&(this.stopCounter++,this.stopCounter>=r))break;if(this.atLimit())break}return h}},fastForward:function(t,e){void 0===e&&(e=1e3/60);var i=0;for(this.skipping=!0;i0){var u=this.deathCallback,d=this.deathCallbackScope;for(o=h-1;o>=0;o--){var p=a[o];r.splice(p.index,1),n.push(p.particle),u&&u.call(d,p.particle),p.particle.setPosition()}}if(this.emitting||this.skipping){if(0===this.frequency)this.emitParticle();else if(this.frequency>0)for(this.flowCounter-=e;this.flowCounter<=0;)this.emitParticle(),this.flowCounter+=this.frequency;this.skipping||(this.duration>0&&(this.elapsed+=e,this.elapsed>=this.duration&&this.stop()),this.stopAfter>0&&this.stopCounter>=this.stopAfter&&this.stop())}else 1===this.completeFlag&&0===r.length&&(this.completeFlag=0,this.emit(c.COMPLETE,this))},overlap:function(t){for(var e=this.getWorldTransformMatrix(),i=this.alive,s=i.length,r=[],n=0;n0){var u=0;for(this.skipping=!0;u0&&y(s,t,t),s},createEmitter:function(){throw new Error("createEmitter removed. See ParticleEmitter docs for info")},particleX:{get:function(){return this.ops.x.current},set:function(t){this.ops.x.onChange(t)}},particleY:{get:function(){return this.ops.y.current},set:function(t){this.ops.y.onChange(t)}},accelerationX:{get:function(){return this.ops.accelerationX.current},set:function(t){this.ops.accelerationX.onChange(t)}},accelerationY:{get:function(){return this.ops.accelerationY.current},set:function(t){this.ops.accelerationY.onChange(t)}},maxVelocityX:{get:function(){return this.ops.maxVelocityX.current},set:function(t){this.ops.maxVelocityX.onChange(t)}},maxVelocityY:{get:function(){return this.ops.maxVelocityY.current},set:function(t){this.ops.maxVelocityY.onChange(t)}},speed:{get:function(){return this.ops.speedX.current},set:function(t){this.ops.speedX.onChange(t),this.ops.speedY.onChange(t)}},speedX:{get:function(){return this.ops.speedX.current},set:function(t){this.ops.speedX.onChange(t)}},speedY:{get:function(){return this.ops.speedY.current},set:function(t){this.ops.speedY.onChange(t)}},moveToX:{get:function(){return this.ops.moveToX.current},set:function(t){this.ops.moveToX.onChange(t)}},moveToY:{get:function(){return this.ops.moveToY.current},set:function(t){this.ops.moveToY.onChange(t)}},bounce:{get:function(){return this.ops.bounce.current},set:function(t){this.ops.bounce.onChange(t)}},particleScaleX:{get:function(){return this.ops.scaleX.current},set:function(t){this.ops.scaleX.onChange(t)}},particleScaleY:{get:function(){return this.ops.scaleY.current},set:function(t){this.ops.scaleY.onChange(t)}},particleColor:{get:function(){return this.ops.color.current},set:function(t){this.ops.color.onChange(t)}},colorEase:{get:function(){return this.ops.color.easeName},set:function(t){this.ops.color.setEase(t)}},particleTint:{get:function(){return this.ops.tint.current},set:function(t){this.ops.tint.onChange(t)}},particleAlpha:{get:function(){return this.ops.alpha.current},set:function(t){this.ops.alpha.onChange(t)}},lifespan:{get:function(){return this.ops.lifespan.current},set:function(t){this.ops.lifespan.onChange(t)}},particleAngle:{get:function(){return this.ops.angle.current},set:function(t){this.ops.angle.onChange(t)}},particleRotate:{get:function(){return this.ops.rotate.current},set:function(t){this.ops.rotate.onChange(t)}},quantity:{get:function(){return this.ops.quantity.current},set:function(t){this.ops.quantity.onChange(t)}},delay:{get:function(){return this.ops.delay.current},set:function(t){this.ops.delay.onChange(t)}},hold:{get:function(){return this.ops.hold.current},set:function(t){this.ops.hold.onChange(t)}},flowCounter:{get:function(){return this.counters[0]},set:function(t){this.counters[0]=t}},frameCounter:{get:function(){return this.counters[1]},set:function(t){this.counters[1]=t}},animCounter:{get:function(){return this.counters[2]},set:function(t){this.counters[2]=t}},elapsed:{get:function(){return this.counters[3]},set:function(t){this.counters[3]=t}},stopCounter:{get:function(){return this.counters[4]},set:function(t){this.counters[4]=t}},completeFlag:{get:function(){return this.counters[5]},set:function(t){this.counters[5]=t}},zoneIndex:{get:function(){return this.counters[6]},set:function(t){this.counters[6]=t}},zoneTotal:{get:function(){return this.counters[7]},set:function(t){this.counters[7]=t}},currentFrame:{get:function(){return this.counters[8]},set:function(t){this.counters[8]=t}},currentAnim:{get:function(){return this.counters[9]},set:function(t){this.counters[9]=t}},preDestroy:function(){var t;this.texture=null,this.frames=null,this.anims=null,this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.emitZones=null,this.deathZones=null,this.bounds=null,this.follow=null,this.counters=null;var e=this.ops;for(t=0;t{var s=i(59996),r=i(61340),n=new r,o=new r,a=new r,h=new r;t.exports=function(t,e,i,r){var l=n,u=o,c=a,d=h;r?(d.loadIdentity(),d.multiply(r),d.translate(e.x,e.y),d.rotate(e.rotation),d.scale(e.scaleX,e.scaleY)):d.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);var p=t.currentContext,f=i.roundPixels,g=i.alpha,m=e.alpha,v=e.alive,y=v.length,x=e.viewBounds;if(e.visible&&0!==y&&(!x||s(x,i.worldView))){e.sortCallback&&e.depthSort(),i.addToRenderList(e);var w=e.scrollFactorX,T=e.scrollFactorY;p.save(),p.globalCompositeOperation=t.blendModes[e.blendMode];for(var b=0;b0&&A.height>0){var _=-C.halfWidth,P=-C.halfHeight;p.globalAlpha=E,p.save(),u.setToContext(p),f&&(_=Math.round(_),P=Math.round(P)),p.imageSmoothingEnabled=!C.source.scaleMode,p.drawImage(C.source.image,A.x,A.y,A.width,A.height,_,P,A.width,A.height),p.restore()}}}p.restore()}}},92730:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(95540),a=i(31600);r.register("particles",(function(t,e){void 0===t&&(t={});var i=n(t,"key",null),r=o(t,"config",null),h=new a(this.scene,0,0,i);return void 0!==e&&(t.add=e),s(this.scene,h,t),r&&h.setConfig(r),h}))},676:(t,e,i)=>{var s=i(39429),r=i(31600);s.register("particles",(function(t,e,i,s){return void 0!==t&&"string"==typeof t&&console.warn("ParticleEmitterManager was removed in Phaser 3.60. See documentation for details"),this.displayList.add(new r(this.scene,t,e,i,s))}))},90668:(t,e,i)=>{var s,r;i(29747),s=i(21188),r=i(9871),t.exports={renderWebGL:s,renderCanvas:r}},21188:(t,e,i)=>{var s=i(59996),r=i(61340),n=i(70554),o=new r,a=new r,h=new r,l=new r;t.exports=function(t,e,i,r){var u=t.pipelines.set(e.pipeline),c=o,d=a,p=h,f=l;r?(f.loadIdentity(),f.multiply(r),f.translate(e.x,e.y),f.rotate(e.rotation),f.scale(e.scaleX,e.scaleY)):f.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY);var g=n.getTintAppendFloatAlpha,m=i.alpha,v=e.alpha;t.pipelines.preBatch(e);var y=e.alive,x=y.length,w=e.viewBounds;if(0!==x&&(!w||s(w,i.worldView))){e.sortCallback&&e.depthSort(),i.addToRenderList(e),c.copyFrom(i.matrix),c.multiplyWithOffset(f,-i.scrollX*e.scrollFactorX,-i.scrollY*e.scrollFactorY),t.setBlendMode(e.blendMode),e.mask&&(e.mask.preRenderWebGL(t,e,i),t.pipelines.set(e.pipeline));for(var T,b,S=e.tintFill,E=0;E{var s=new(i(83419))({initialize:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=!0),this.emitter,this.x=t,this.y=e,this.active=i},update:function(){},destroy:function(){this.emitter=null}});t.exports=s},9774:t=>{t.exports="complete"},812:t=>{t.exports="deathzone"},30522:t=>{t.exports="explode"},96695:t=>{t.exports="start"},18677:t=>{t.exports="stop"},20696:(t,e,i)=>{t.exports={COMPLETE:i(9774),DEATH_ZONE:i(812),EXPLODE:i(30522),START:i(96695),STOP:i(18677)}},18404:(t,e,i)=>{t.exports={EmitterColorOp:i(76472),EmitterOp:i(44777),Events:i(20696),GravityWell:i(24502),Particle:i(56480),ParticleBounds:i(69601),ParticleEmitter:i(31600),ParticleProcessor:i(20286),Zones:i(21024)}},26388:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e){this.source=t,this.killOnEnter=e},willKill:function(t){var e=t.worldPosition,i=this.source.contains(e.x,e.y);return i&&this.killOnEnter||!i&&!this.killOnEnter}});t.exports=s},19909:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e,i,s,r,n){void 0===s&&(s=!1),void 0===r&&(r=!0),void 0===n&&(n=-1),this.source=t,this.points=[],this.quantity=e,this.stepRate=i,this.yoyo=s,this.counter=-1,this.seamless=r,this._length=0,this._direction=0,this.total=n,this.updateSource()},updateSource:function(){if(this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless){var t=this.points[0],e=this.points[this.points.length-1];t.x===e.x&&t.y===e.y&&this.points.pop()}var i=this._length;return this._length=this.points.length,this._lengththis._length&&(this.counter=this._length-1),this},changeSource:function(t){return this.source=t,this.updateSource()},getPoint:function(t){0===this._direction?(this.counter++,this.counter>=this._length&&(this.yoyo?(this._direction=1,this.counter=this._length-1):this.counter=0)):(this.counter--,-1===this.counter&&(this.yoyo?(this._direction=0,this.counter=0):this.counter=this._length-1));var e=this.points[this.counter];e&&(t.x=e.x,t.y=e.y)}});t.exports=s},68875:(t,e,i)=>{var s=i(83419),r=i(26099),n=new s({initialize:function(t){this.source=t,this._tempVec=new r,this.total=-1},getPoint:function(t){var e=this._tempVec;this.source.getRandomPoint(e),t.x=e.x,t.y=e.y}});t.exports=n},21024:(t,e,i)=>{t.exports={DeathZone:i(26388),EdgeZone:i(19909),RandomZone:i(68875)}},1159:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(68287),o=new s({Extends:n,Mixins:[r.PathFollower],initialize:function(t,e,i,s,r,o){n.call(this,t,i,s,r,o),this.path=e},preUpdate:function(t,e){this.anims.update(t,e),this.pathUpdate(t)}});t.exports=o},90145:(t,e,i)=>{var s=i(39429),r=i(1159);s.register("follower",(function(t,e,i,s,n){var o=new r(this.scene,t,e,i,s,n);return this.displayList.add(o),this.updateList.add(o),o}))},33663:(t,e,i)=>{var s=i(9674),r=i(83419),n=i(48803),o=i(90664),a=i(4703),h=i(45650),l=new r({Extends:a,initialize:function(t,e,i,r,n,o,h,l){r||(r="__DEFAULT"),a.call(this,t,e,i,r,n),this.type="Plane",this.anims=new s(this),this.gridWidth,this.gridHeight,this.isTiled,this._checkerboard=null,this.hideCCW=!1,this.setGridSize(o,h,l),this.setSizeToFrame(!1),this.setViewHeight()},originX:{get:function(){return.5}},originY:{get:function(){return.5}},setGridSize:function(t,e,i){void 0===t&&(t=8),void 0===e&&(e=8),void 0===i&&(i=!1);var s=!1;return i&&(s=!0),this.gridWidth=t,this.gridHeight=e,this.isTiled=i,this.clear(),n({mesh:this,widthSegments:t,heightSegments:e,isOrtho:!1,tile:i,flipY:s}),this},setSizeToFrame:function(t){void 0===t&&(t=!0);var e=this.frame;if(this.setPerspective(this.width/e.width,this.height/e.height),this._checkerboard&&this._checkerboard!==this.texture&&this.removeCheckerboard(),!t)return this;var i,s,r=this.gridWidth,n=this.gridHeight,o=this.vertices,a=e.u0,h=e.u1,l=e.v0,u=e.v1,c=0;if(this.isTiled)for(l=e.v1,u=e.v0,s=0;s7&&c>7?l.push(n.r,n.g,n.b,i):l.push(a.r,a.g,a.b,s);var d=this.scene.sys.textures.addUint8Array(h(),new Uint8Array(l),16,16);return this.removeCheckerboard(),this.setTexture(d),this.setSizeToFrame(),this.setViewHeight(r),this},removeCheckerboard:function(){this._checkerboard&&(this._checkerboard.destroy(),this._checkerboard=null)},play:function(t,e){return this.anims.play(t,e)},playReverse:function(t,e){return this.anims.playReverse(t,e)},playAfterDelay:function(t,e){return this.anims.playAfterDelay(t,e)},playAfterRepeat:function(t,e){return this.anims.playAfterRepeat(t,e)},stop:function(){return this.anims.stop()},stopAfterDelay:function(t){return this.anims.stopAfterDelay(t)},stopAfterRepeat:function(t){return this.anims.stopAfterRepeat(t)},stopOnFrame:function(t){return this.anims.stopOnFrame(t)},preUpdate:function(t,e){a.prototype.preUpdate.call(this,t,e),this.anims.update(t,e)},preDestroy:function(){this.clear(),this.removeCheckerboard(),this.anims.destroy(),this.anims=void 0,this.debugCallback=null,this.debugGraphic=null}});t.exports=l},56015:(t,e,i)=>{var s=i(25305),r=i(13059),n=i(44603),o=i(23568),a=i(35154),h=i(33663);n.register("plane",(function(t,e){void 0===t&&(t={});var i=o(t,"key",null),n=o(t,"frame",null),l=a(t,"width",8),u=a(t,"height",8),c=a(t,"tile",!1),d=new h(this.scene,0,0,i,n,l,u,c);void 0!==e&&(t.add=e);var p=a(t,"checkerboard",null);if(p){var f=a(p,"color1",16777215),g=a(p,"color2",255),m=a(p,"alpha1",255),v=a(p,"alpha2",255),y=a(p,"height",128);d.createCheckerboard(f,g,m,v,y)}return s(this.scene,d,t),r(d,t),d}))},30985:(t,e,i)=>{var s=i(33663);i(39429).register("plane",(function(t,e,i,r,n,o,a){return this.displayList.add(new s(this.scene,t,e,i,r,n,o,a))}))},80321:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(95643),o=i(30100),a=i(36060),h=i(67277),l=new s({Extends:n,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.Mask,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Transform,r.Visible,h],initialize:function(t,e,i,s,r,h,l){void 0===s&&(s=16777215),void 0===r&&(r=128),void 0===h&&(h=1),void 0===l&&(l=.1),n.call(this,t,"PointLight"),this.initPipeline(a.POINTLIGHT_PIPELINE),this.initPostPipeline(),this.setPosition(e,i),this.color=o(s),this.intensity=h,this.attenuation=l,this.width=2*r,this.height=2*r,this._radius=r},radius:{get:function(){return this._radius},set:function(t){this._radius=t,this.width=2*t,this.height=2*t}},originX:{get:function(){return.5}},originY:{get:function(){return.5}},displayOriginX:{get:function(){return this._radius}},displayOriginY:{get:function(){return this._radius}}});t.exports=l},39829:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(80321);r.register("pointlight",(function(t,e){void 0===t&&(t={});var i=n(t,"color",16777215),r=n(t,"radius",128),a=n(t,"intensity",1),h=n(t,"attenuation",.1),l=new o(this.scene,0,0,i,r,a,h);return void 0!==e&&(t.add=e),s(this.scene,l,t),l}))},71255:(t,e,i)=>{var s=i(39429),r=i(80321);s.register("pointlight",(function(t,e,i,s,n,o){return this.displayList.add(new r(this.scene,t,e,i,s,n,o))}))},67277:(t,e,i)=>{var s,r=i(29747),n=r;s=i(57787),t.exports={renderWebGL:s,renderCanvas:n}},57787:(t,e,i)=>{var s=i(91296);t.exports=function(t,e,i,r){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline),o=s(e,i,r).calc,a=e.width,h=e.height,l=-e._radius,u=-e._radius,c=l+a,d=u+h,p=o.getX(0,0),f=o.getY(0,0),g=o.getX(l,u),m=o.getY(l,u),v=o.getX(l,d),y=o.getY(l,d),x=o.getX(c,d),w=o.getY(c,d),T=o.getX(c,u),b=o.getY(c,u);t.pipelines.preBatch(e),n.batchPointLight(e,i,g,m,v,y,x,w,T,b,p,f),t.pipelines.postBatch(e)}},591:(t,e,i)=>{var s=i(83419),r=i(81320),n=i(88571),o=new s({Extends:n,initialize:function(t,e,i,s,o){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=32),void 0===o&&(o=32);var a=new r(t.sys.textures,"",s,o);n.call(this,t,e,i,a),this.type="RenderTexture",this.camera=this.texture.camera,this._saved=!1},setSize:function(t,e){this.width=t,this.height=e,this.texture.setSize(t,e),this.updateDisplayOrigin();var i=this.input;return i&&!i.customHitArea&&(i.hitArea.width=t,i.hitArea.height=e),this},resize:function(t,e){return this.setSize(t,e),this},saveTexture:function(t){var e=this.texture;return e.key=t,e.manager.addDynamicTexture(e)&&(this._saved=!0),e},fill:function(t,e,i,s,r,n){return this.texture.fill(t,e,i,s,r,n),this},clear:function(){return this.texture.clear(),this},stamp:function(t,e,i,s,r){return this.texture.stamp(t,e,i,s,r),this},erase:function(t,e,i){return this.texture.erase(t,e,i),this},draw:function(t,e,i,s,r){return this.texture.draw(t,e,i,s,r),this},drawFrame:function(t,e,i,s,r,n){return this.texture.drawFrame(t,e,i,s,r,n),this},repeat:function(t,e,i,s,r,n,o,a,h){return this.texture.repeat(t,e,i,s,r,n,o,a,h),this},beginDraw:function(){return this.texture.beginDraw(),this},batchDraw:function(t,e,i,s,r){return this.texture.batchDraw(t,e,i,s,r),this},batchDrawFrame:function(t,e,i,s,r,n){return this.texture.batchDrawFrame(t,e,i,s,r,n),this},endDraw:function(t){return this.texture.endDraw(t),this},snapshotArea:function(t,e,i,s,r,n,o){return this.texture.snapshotArea(t,e,i,s,r,n,o),this},snapshot:function(t,e,i){return this.snapshotArea(0,0,this.width,this.height,t,e,i)},snapshotPixel:function(t,e,i){return this.snapshotArea(t,e,1,1,i,"pixel")},preDestroy:function(){this.camera=null,this._saved||this.texture.destroy()}});t.exports=o},34495:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(591);r.register("renderTexture",(function(t,e){void 0===t&&(t={});var i=n(t,"x",0),r=n(t,"y",0),a=n(t,"width",32),h=n(t,"height",32),l=new o(this.scene,i,r,a,h);return void 0!==e&&(t.add=e),s(this.scene,l,t),l}))},60505:(t,e,i)=>{var s=i(39429),r=i(591);s.register("renderTexture",(function(t,e,i,s){return this.displayList.add(new r(this.scene,t,e,i,s))}))},77757:(t,e,i)=>{var s=i(9674),r=i(83419),n=i(31401),o=i(95643),a=i(36060),h=i(38745),l=i(26099),u=new r({Extends:o,Mixins:[n.AlphaSingle,n.BlendMode,n.Depth,n.Flip,n.Mask,n.Pipeline,n.PostPipeline,n.Size,n.Texture,n.Transform,n.Visible,n.ScrollFactor,h],initialize:function(t,e,i,r,n,h,u,c,d){void 0===r&&(r="__DEFAULT"),void 0===h&&(h=2),void 0===u&&(u=!0),o.call(this,t,"Rope"),this.anims=new s(this),this.points=h,this.vertices,this.uv,this.colors,this.alphas,this.tintFill="__DEFAULT"===r,this.dirty=!1,this.horizontal=u,this._flipX=!1,this._flipY=!1,this._perp=new l,this.debugCallback=null,this.debugGraphic=null,this.setTexture(r,n),this.setPosition(e,i),this.setSizeToFrame(),this.initPipeline(a.ROPE_PIPELINE),this.initPostPipeline(),Array.isArray(h)&&this.resizeArrays(h.length),this.setPoints(h,c,d),this.updateVertices()},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(t,e){var i=this.anims.currentFrame;this.anims.update(t,e),this.anims.currentFrame!==i&&(this.updateUVs(),this.updateVertices())},play:function(t,e,i){return this.anims.play(t,e,i),this},setDirty:function(){return this.dirty=!0,this},setHorizontal:function(t,e,i){return void 0===t&&(t=this.points.length),this.horizontal?this:(this.horizontal=!0,this.setPoints(t,e,i))},setVertical:function(t,e,i){return void 0===t&&(t=this.points.length),this.horizontal?(this.horizontal=!1,this.setPoints(t,e,i)):this},setTintFill:function(t){return void 0===t&&(t=!1),this.tintFill=t,this},setAlphas:function(t,e){var i=this.points.length;if(i<1)return this;var s,r=this.alphas;void 0===t?t=[1]:Array.isArray(t)||void 0!==e||(t=[t]);var n=0;if(void 0!==e)for(s=0;sn&&(o=t[n]),r[n]=o,t.length>n+1&&(o=t[n+1]),r[n+1]=o}return this},setColors:function(t){var e=this.points.length;if(e<1)return this;var i,s=this.colors;void 0===t?t=[16777215]:Array.isArray(t)||(t=[t]);var r=0;if(t.length===e)for(i=0;ir&&(n=t[r]),s[r]=n,t.length>r+1&&(n=t[r+1]),s[r+1]=n}return this},setPoints:function(t,e,i){if(void 0===t&&(t=2),"number"==typeof t){var s,r,n,o=t;if(o<2&&(o=2),t=[],this.horizontal)for(n=-this.frame.halfWidth,r=this.frame.width/(o-1),s=0;s{t.exports=function(){}},26209:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(35154),a=i(77757);r.register("rope",(function(t,e){void 0===t&&(t={});var i=n(t,"key",null),r=n(t,"frame",null),h=n(t,"horizontal",!0),l=o(t,"points",void 0),u=o(t,"colors",void 0),c=o(t,"alphas",void 0),d=new a(this.scene,0,0,i,r,l,h,u,c);return void 0!==e&&(t.add=e),s(this.scene,d,t),d}))},96819:(t,e,i)=>{var s=i(77757);i(39429).register("rope",(function(t,e,i,r,n,o,a,h){return this.displayList.add(new s(this.scene,t,e,i,r,n,o,a,h))}))},38745:(t,e,i)=>{var s,r;i(29747),s=i(20439),r=i(95262),t.exports={renderWebGL:s,renderCanvas:r}},20439:(t,e,i)=>{var s=i(91296),r=i(70554);t.exports=function(t,e,i,n){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline,e),a=s(e,i,n).calc,h=e.vertices,l=e.uv,u=e.colors,c=e.alphas,d=e.alpha,p=r.getTintAppendFloatAlpha,f=i.roundPixels,g=h.length,m=Math.floor(.5*g);o.flush(),t.pipelines.preBatch(e);var v=o.setGameObject(e),y=o.vertexViewF32,x=o.vertexViewU32,w=o.vertexCount*o.currentShader.vertexComponentCount-1,T=0,b=e.tintFill;e.dirty&&e.updateVertices();for(var S=e.debugCallback,E=[],C=0;C{var s=i(83419),r=i(31401),n=i(95643),o=i(95540),a=i(79291),h=i(61622),l=i(25479),u=i(61340),c=i(95428),d=i(92503),p=new s({Extends:n,Mixins:[r.ComputedSize,r.Depth,r.GetBounds,r.Mask,r.Origin,r.ScrollFactor,r.Transform,r.Visible,l],initialize:function(t,e,i,s,r,o,a,h){void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=128),void 0===o&&(o=128),n.call(this,t,"Shader"),this.blendMode=-1,this.shader;var l=t.sys.renderer;this.renderer=l,this.gl=l.gl,this.vertexData=new ArrayBuffer(2*Float32Array.BYTES_PER_ELEMENT*6),this.vertexBuffer=l.createVertexBuffer(this.vertexData.byteLength,this.gl.STREAM_DRAW),this._deferSetShader=null,this._deferProjOrtho=null,this.program=null,this.bytes=new Uint8Array(this.vertexData),this.vertexViewF32=new Float32Array(this.vertexData),this._tempMatrix1=new u,this._tempMatrix2=new u,this._tempMatrix3=new u,this.viewMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.projectionMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.uniforms={},this.pointer=null,this._rendererWidth=l.width,this._rendererHeight=l.height,this._textureCount=0,this.framebuffer=null,this.glTexture=null,this.renderToTexture=!1,this.texture=null,this.setPosition(i,s),this.setSize(r,o),this.setOrigin(.5,.5),this.setShader(e,a,h),this.renderer.on(d.RESTORE_WEBGL,this.onContextRestored,this)},willRender:function(t){return!!this.renderToTexture||!(n.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},setRenderToTexture:function(t,e){if(!this.renderToTexture){var i=this.width,s=this.height,r=this.renderer;this.glTexture=r.createTextureFromSource(null,i,s,0),this.framebuffer=r.createFramebuffer(i,s,this.glTexture,!1),this._rendererWidth=i,this._rendererHeight=s,this.renderToTexture=!0,this.projOrtho(0,this.width,this.height,0),t&&(this.texture=this.scene.sys.textures.addGLTexture(t,this.glTexture))}return this.shader&&(r.pipelines.clear(),this.load(),this.flush(),r.pipelines.rebind()),this},setShader:function(t,e,i){if(this.renderer.contextLost)return this._deferSetShader={key:t,textures:e,textureData:i},this;if(void 0===e&&(e=[]),"string"==typeof t){var s=this.scene.sys.cache.shader;if(!s.has(t))return console.warn("Shader missing: "+t),this;this.shader=s.get(t)}else this.shader=t;var r=this.gl,n=this.renderer;this.program&&n.deleteProgram(this.program);var o=n.createProgram(this.shader.vertexSrc,this.shader.fragmentSrc);r.uniformMatrix4fv(r.getUniformLocation(o.webGLProgram,"uViewMatrix"),!1,this.viewMatrix),r.uniformMatrix4fv(r.getUniformLocation(o.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),r.uniform2f(r.getUniformLocation(o.webGLProgram,"uResolution"),this.width,this.height),this.program=o;var h=new Date,l={resolution:{type:"2f",value:{x:this.width,y:this.height}},time:{type:"1f",value:0},mouse:{type:"2f",value:{x:this.width/2,y:this.height/2}},date:{type:"4fv",value:[h.getFullYear(),h.getMonth(),h.getDate(),60*h.getHours()*60+60*h.getMinutes()+h.getSeconds()]},sampleRate:{type:"1f",value:44100},iChannel0:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel1:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel2:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel3:{type:"sampler2D",value:null,textureData:{repeat:!0}}};this.shader.uniforms?this.uniforms=a(!0,{},this.shader.uniforms,l):this.uniforms=l;for(var u=0;u<4;u++)e[u]&&this.setSampler2D("iChannel"+u,e[u],u,i);return this.initUniforms(),this.projOrtho(0,this._rendererWidth,this._rendererHeight,0),this},setPointer:function(t){return this.pointer=t,this},projOrtho:function(t,e,i,s){if(this.renderer.contextLost)this._deferProjOrtho={left:t,right:e,bottom:i,top:s};else{var r=1/(t-e),n=1/(i-s),o=this.projectionMatrix;o[0]=-2*r,o[5]=-2*n,o[10]=-.001,o[12]=(t+e)*r,o[13]=(s+i)*n,o[14]=-0;var a=this.program,h=this.gl;this.renderer.setProgram(a),h.uniformMatrix4fv(h.getUniformLocation(a.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),this._rendererWidth=e,this._rendererHeight=i}},initUniforms:function(){var t=this.renderer.glFuncMap,e=this.program;for(var i in this._textureCount=0,this.uniforms){var s=this.uniforms[i],r=s.type,n=t[r];s.uniformLocation=this.renderer.createUniformLocation(e,i),"sampler2D"!==r&&(s.glMatrix=n.matrix,s.glValueLength=n.length,s.glFunc=n.func)}},setSampler2DBuffer:function(t,e,i,s,r,n){void 0===r&&(r=0),void 0===n&&(n={});var o=this.uniforms[t];return o.value=e,n.width=i,n.height=s,o.textureData=n,this._textureCount=r,this.initSampler2D(o),this},setSampler2D:function(t,e,i,s){void 0===i&&(i=0);var r=this.scene.sys.textures;if(r.exists(e)){var n=r.getFrame(e);if(n.glTexture&&n.glTexture.isRenderTexture)return this.setSampler2DBuffer(t,n.glTexture,n.width,n.height,i,s);var o=this.uniforms[t],a=n.source;o.textureKey=e,o.source=a.image,o.value=n.glTexture,a.isGLTexture&&(s||(s={}),s.width=a.width,s.height=a.height),s&&(o.textureData=s),this._textureCount=i,this.initSampler2D(o)}return this},setUniform:function(t,e){return h(this.uniforms,t,e),this},getUniform:function(t){return o(this.uniforms,t,null)},setChannel0:function(t,e){return this.setSampler2D("iChannel0",t,0,e)},setChannel1:function(t,e){return this.setSampler2D("iChannel1",t,1,e)},setChannel2:function(t,e){return this.setSampler2D("iChannel2",t,2,e)},setChannel3:function(t,e){return this.setSampler2D("iChannel3",t,3,e)},initSampler2D:function(t){if(t.value){var e=t.textureData;if(e&&!t.value.isRenderTexture){var i=this.gl,s=t.value,r=i[o(e,"magFilter","linear").toUpperCase()],n=i[o(e,"minFilter","linear").toUpperCase()],a=i[o(e,"wrapS","repeat").toUpperCase()],h=i[o(e,"wrapT","repeat").toUpperCase()],l=i[o(e,"format","rgba").toUpperCase()],u=o(e,"flipY",!1),c=o(e,"width",s.width),d=o(e,"height",s.height),p=o(e,"source",s.pixels);e.repeat&&(a=i.REPEAT,h=i.REPEAT),e.width&&(p=null),s.update(p,c,d,u,a,h,n,r,l)}this.renderer.setProgram(this.program),this._textureCount++}},syncUniforms:function(){var t,e,i,s,r,n=this.gl,o=this.uniforms,a=0;for(var h in o)i=(t=o[h]).glFunc,e=t.glValueLength,s=t.uniformLocation,null!==(r=t.value)&&(1===e?t.glMatrix?i.call(n,s.webGLUniformLocation,t.transpose,r):i.call(n,s.webGLUniformLocation,r):2===e?i.call(n,s.webGLUniformLocation,r.x,r.y):3===e?i.call(n,s.webGLUniformLocation,r.x,r.y,r.z):4===e?i.call(n,s.webGLUniformLocation,r.x,r.y,r.z,r.w):"sampler2D"===t.type&&(n.activeTexture(n.TEXTURE0+a),n.bindTexture(n.TEXTURE_2D,r.webGLTexture),n.uniform1i(s.webGLUniformLocation,a),a++))},load:function(t){var e=this.gl,i=this.width,s=this.height,r=this.renderer,n=this.program,o=this.viewMatrix;if(!this.renderToTexture){var a=-this._displayOriginX,h=-this._displayOriginY;o[0]=t[0],o[1]=t[1],o[4]=t[2],o[5]=t[3],o[8]=t[4],o[9]=t[5],o[12]=o[0]*a+o[4]*h,o[13]=o[1]*a+o[5]*h}e.useProgram(n.webGLProgram),e.uniformMatrix4fv(e.getUniformLocation(n.webGLProgram,"uViewMatrix"),!1,o),e.uniformMatrix4fv(e.getUniformLocation(n.webGLProgram,"uProjectionMatrix"),!1,this.projectionMatrix),e.uniform2f(e.getUniformLocation(n.webGLProgram,"uResolution"),this.width,this.height);var l=this.uniforms,u=l.resolution;u.value.x=i,u.value.y=s,l.time.value=r.game.loop.getDuration();var c=this.pointer;if(c){var d=l.mouse,p=c.x/i,f=1-c.y/s;d.value.x=p.toFixed(2),d.value.y=f.toFixed(2)}this.syncUniforms()},flush:function(){var t=this.width,e=this.height,i=this.program,s=this.gl,r=this.vertexBuffer,n=this.renderer,o=2*Float32Array.BYTES_PER_ELEMENT;this.renderToTexture&&(n.setFramebuffer(this.framebuffer),s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT)),s.bindBuffer(s.ARRAY_BUFFER,r.webGLBuffer);var a=s.getAttribLocation(i.webGLProgram,"inPosition");-1!==a&&(s.enableVertexAttribArray(a),s.vertexAttribPointer(a,2,s.FLOAT,!1,o,0));var h=this.vertexViewF32;h[3]=e,h[4]=t,h[5]=e,h[8]=t,h[9]=e,h[10]=t,s.bufferSubData(s.ARRAY_BUFFER,0,this.bytes.subarray(0,6*o)),s.drawArrays(s.TRIANGLES,0,6),this.renderToTexture&&n.setFramebuffer(null,!1)},setAlpha:function(){},setBlendMode:function(){},onContextRestored:function(){if(null!==this._deferSetShader){var t=this._deferSetShader.key,e=this._deferSetShader.textures,i=this._deferSetShader.textureData;this._deferSetShader=null,this.setShader(t,e,i)}if(null!==this._deferProjOrtho){var s=this._deferProjOrtho.left,r=this._deferProjOrtho.right,n=this._deferProjOrtho.bottom,o=this._deferProjOrtho.top;this._deferProjOrtho=null,this.projOrtho(s,r,n,o)}},preDestroy:function(){var t=this.renderer;t.off(d.RESTORE_WEBGL,this.onContextRestored,this),t.deleteProgram(this.program),t.deleteBuffer(this.vertexBuffer),this.renderToTexture&&(t.deleteFramebuffer(this.framebuffer),this.texture.destroy(),this.framebuffer=null,this.glTexture=null,this.texture=null),c(this.uniforms,(function(e){t.deleteUniformLocation(e.uniformLocation),e.uniformLocation=null}))}});t.exports=p},80464:t=>{t.exports=function(){}},54935:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(20071);r.register("shader",(function(t,e){void 0===t&&(t={});var i=n(t,"key",null),r=n(t,"x",0),a=n(t,"y",0),h=n(t,"width",128),l=n(t,"height",128),u=new o(this.scene,i,r,a,h,l);return void 0!==e&&(t.add=e),s(this.scene,u,t),u}))},74177:(t,e,i)=>{var s=i(20071);i(39429).register("shader",(function(t,e,i,r,n,o,a){return this.displayList.add(new s(this.scene,t,e,i,r,n,o,a))}))},25479:(t,e,i)=>{var s,r;i(29747),s=i(19257),r=i(80464),t.exports={renderWebGL:s,renderCanvas:r}},19257:(t,e,i)=>{var s=i(91296);t.exports=function(t,e,i,r){if(e.shader){if(i.addToRenderList(e),t.pipelines.clear(),e.renderToTexture)e.load(),e.flush();else{var n=s(e,i,r).calc;t.width===e._rendererWidth&&t.height===e._rendererHeight||e.projOrtho(0,t.width,t.height,0),e.load(n.matrix),e.flush()}t.pipelines.rebind()}}},10441:(t,e,i)=>{var s=i(70554);t.exports=function(t,e,i,r,n,o){for(var a=s.getTintAppendFloatAlpha(i.fillColor,i.fillAlpha*r),h=i.pathData,l=i.pathIndexes,u=0;u{t.exports=function(t,e,i,s){var r=i||e.fillColor,n=s||e.fillAlpha,o=(16711680&r)>>>16,a=(65280&r)>>>8,h=255&r;t.fillStyle="rgba("+o+","+a+","+h+","+n+")"}},75177:t=>{t.exports=function(t,e,i,s){var r=i||e.strokeColor,n=s||e.strokeAlpha,o=(16711680&r)>>>16,a=(65280&r)>>>8,h=255&r;t.strokeStyle="rgba("+o+","+a+","+h+","+n+")",t.lineWidth=e.lineWidth}},17803:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(95643),o=i(23031),a=new s({Extends:n,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Transform,r.Visible],initialize:function(t,e,i){void 0===e&&(e="Shape"),n.call(this,t,e),this.geom=i,this.pathData=[],this.pathIndexes=[],this.fillColor=16777215,this.fillAlpha=1,this.strokeColor=16777215,this.strokeAlpha=1,this.lineWidth=1,this.isFilled=!1,this.isStroked=!1,this.closePath=!0,this._tempLine=new o,this.width=0,this.height=0,this.initPipeline(),this.initPostPipeline()},setFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.isFilled=!1:(this.fillColor=t,this.fillAlpha=e,this.isFilled=!0),this},setStrokeStyle:function(t,e,i){return void 0===i&&(i=1),void 0===t?this.isStroked=!1:(this.lineWidth=t,this.strokeColor=e,this.strokeAlpha=i,this.isStroked=!0),this},setClosePath:function(t){return this.closePath=t,this},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this},preDestroy:function(){this.geom=null,this._tempLine=null,this.pathData=[],this.pathIndexes=[]},displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}}});t.exports=a},34682:(t,e,i)=>{var s=i(70554);t.exports=function(t,e,i,r,n){var o=t.strokeTint,a=s.getTintAppendFloatAlpha(e.strokeColor,e.strokeAlpha*i);o.TL=a,o.TR=a,o.BL=a,o.BR=a;var h=e.pathData,l=h.length-1,u=e.lineWidth,c=u/2,d=h[0]-r,p=h[1]-n;e.closePath||(l-=2);for(var f=2;f{var s=i(13609),r=i(83419),n=i(39506),o=i(94811),a=i(96503),h=i(36383),l=i(17803),u=new r({Extends:l,Mixins:[s],initialize:function(t,e,i,s,r,n,o,h,u){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=128),void 0===r&&(r=0),void 0===n&&(n=360),void 0===o&&(o=!1),l.call(this,t,"Arc",new a(0,0,s)),this._startAngle=r,this._endAngle=n,this._anticlockwise=o,this._iterations=.01,this.setPosition(e,i);var c=2*this.geom.radius;this.setSize(c,c),void 0!==h&&this.setFillStyle(h,u),this.updateDisplayOrigin(),this.updateData()},iterations:{get:function(){return this._iterations},set:function(t){this._iterations=t,this.updateData()}},radius:{get:function(){return this.geom.radius},set:function(t){this.geom.radius=t;var e=2*t;this.setSize(e,e),this.updateDisplayOrigin(),this.updateData()}},startAngle:{get:function(){return this._startAngle},set:function(t){this._startAngle=t,this.updateData()}},endAngle:{get:function(){return this._endAngle},set:function(t){this._endAngle=t,this.updateData()}},anticlockwise:{get:function(){return this._anticlockwise},set:function(t){this._anticlockwise=t,this.updateData()}},setRadius:function(t){return this.radius=t,this},setIterations:function(t){return void 0===t&&(t=.01),this.iterations=t,this},setStartAngle:function(t,e){return this._startAngle=t,void 0!==e&&(this._anticlockwise=e),this.updateData()},setEndAngle:function(t,e){return this._endAngle=t,void 0!==e&&(this._anticlockwise=e),this.updateData()},updateData:function(){var t=this._iterations,e=t,i=this.geom.radius,s=n(this._startAngle),r=n(this._endAngle),a=i,l=i;r-=s,this._anticlockwise?r<-h.PI2?r=-h.PI2:r>0&&(r=-h.PI2+r%h.PI2):r>h.PI2?r=h.PI2:r<0&&(r=h.PI2+r%h.PI2);for(var u,c=[a+Math.cos(s)*i,l+Math.sin(s)*i];e<1;)u=r*e+s,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),e+=t;return u=r+s,c.push(a+Math.cos(u)*i,l+Math.sin(u)*i),c.push(a+Math.cos(s)*i,l+Math.sin(s)*i),this.pathIndexes=o(c),this.pathData=c,this}});t.exports=u},42542:(t,e,i)=>{var s=i(39506),r=i(65960),n=i(75177),o=i(20926);t.exports=function(t,e,i,a){i.addToRenderList(e);var h=t.currentContext;if(o(t,h,e,i,a)){var l=e.radius;h.beginPath(),h.arc(l-e.originX*(2*l),l-e.originY*(2*l),l,s(e._startAngle),s(e._endAngle),e.anticlockwise),e.closePath&&h.closePath(),e.isFilled&&(r(h,e),h.fill()),e.isStroked&&(n(h,e),h.stroke()),h.restore()}}},42563:(t,e,i)=>{var s=i(23629),r=i(39429);r.register("arc",(function(t,e,i,r,n,o,a,h){return this.displayList.add(new s(this.scene,t,e,i,r,n,o,a,h))})),r.register("circle",(function(t,e,i,r,n){return this.displayList.add(new s(this.scene,t,e,i,0,360,!1,r,n))}))},13609:(t,e,i)=>{var s,r;i(29747),s=i(41447),r=i(42542),t.exports={renderWebGL:s,renderCanvas:r}},41447:(t,e,i)=>{var s=i(91296),r=i(10441),n=i(34682);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline),h=s(e,i,o),l=a.calcMatrix.copyFrom(h.calc),u=e._displayOriginX,c=e._displayOriginY,d=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&r(a,l,e,d,u,c),e.isStroked&&n(a,e,d,u,c),t.pipelines.postBatch(e)}},89:(t,e,i)=>{var s=i(83419),r=i(33141),n=i(94811),o=i(87841),a=i(17803),h=new s({Extends:a,Mixins:[r],initialize:function(t,e,i,s,r,n){void 0===e&&(e=0),void 0===i&&(i=0),a.call(this,t,"Curve",s),this._smoothness=32,this._curveBounds=new o,this.closePath=!1,this.setPosition(e,i),void 0!==r&&this.setFillStyle(r,n),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(t){this._smoothness=t,this.updateData()}},setSmoothness:function(t){return this._smoothness=t,this.updateData()},updateData:function(){var t=this._curveBounds,e=this._smoothness;this.geom.getBounds(t,e),this.setSize(t.width,t.height),this.updateDisplayOrigin();for(var i=[],s=this.geom.getPoints(e),r=0;r{var s=i(65960),r=i(75177),n=i(20926);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.currentContext;if(n(t,a,e,i,o)){var h=e._displayOriginX+e._curveBounds.x,l=e._displayOriginY+e._curveBounds.y,u=e.pathData,c=u.length-1,d=u[0]-h,p=u[1]-l;a.beginPath(),a.moveTo(d,p),e.closePath||(c-=2);for(var f=2;f{var s=i(39429),r=i(89);s.register("curve",(function(t,e,i,s,n){return this.displayList.add(new r(this.scene,t,e,i,s,n))}))},33141:(t,e,i)=>{var s,r;i(29747),s=i(53987),r=i(3170),t.exports={renderWebGL:s,renderCanvas:r}},53987:(t,e,i)=>{var s=i(10441),r=i(91296),n=i(34682);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline),h=r(e,i,o),l=a.calcMatrix.copyFrom(h.calc),u=e._displayOriginX+e._curveBounds.x,c=e._displayOriginY+e._curveBounds.y,d=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&s(a,l,e,d,u,c),e.isStroked&&n(a,e,d,u,c),t.pipelines.postBatch(e)}},19921:(t,e,i)=>{var s=i(83419),r=i(94811),n=i(54205),o=i(8497),a=i(17803),h=new s({Extends:a,Mixins:[n],initialize:function(t,e,i,s,r,n,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=128),void 0===r&&(r=128),a.call(this,t,"Ellipse",new o(s/2,r/2,s,r)),this._smoothness=64,this.setPosition(e,i),this.width=s,this.height=r,void 0!==n&&this.setFillStyle(n,h),this.updateDisplayOrigin(),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(t){this._smoothness=t,this.updateData()}},setSize:function(t,e){return this.width=t,this.height=e,this.geom.setPosition(t/2,e/2),this.geom.setSize(t,e),this.updateData()},setSmoothness:function(t){return this._smoothness=t,this.updateData()},updateData:function(){for(var t=[],e=this.geom.getPoints(this._smoothness),i=0;i{var s=i(65960),r=i(75177),n=i(20926);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.currentContext;if(n(t,a,e,i,o)){var h=e._displayOriginX,l=e._displayOriginY,u=e.pathData,c=u.length-1,d=u[0]-h,p=u[1]-l;a.beginPath(),a.moveTo(d,p),e.closePath||(c-=2);for(var f=2;f{var s=i(19921);i(39429).register("ellipse",(function(t,e,i,r,n,o){return this.displayList.add(new s(this.scene,t,e,i,r,n,o))}))},54205:(t,e,i)=>{var s,r;i(29747),s=i(19467),r=i(7930),t.exports={renderWebGL:s,renderCanvas:r}},19467:(t,e,i)=>{var s=i(10441),r=i(91296),n=i(34682);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline),h=r(e,i,o),l=a.calcMatrix.copyFrom(h.calc),u=e._displayOriginX,c=e._displayOriginY,d=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&s(a,l,e,d,u,c),e.isStroked&&n(a,e,d,u,c),t.pipelines.postBatch(e)}},30479:(t,e,i)=>{var s=i(83419),r=i(17803),n=i(26015),o=new s({Extends:r,Mixins:[n],initialize:function(t,e,i,s,n,o,a,h,l,u,c){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=128),void 0===n&&(n=128),void 0===o&&(o=32),void 0===a&&(a=32),r.call(this,t,"Grid",null),this.cellWidth=o,this.cellHeight=a,this.showCells=!0,this.outlineFillColor=0,this.outlineFillAlpha=0,this.showOutline=!0,this.showAltCells=!1,this.altFillColor,this.altFillAlpha,this.setPosition(e,i),this.setSize(s,n),this.setFillStyle(h,l),void 0!==u&&this.setOutlineStyle(u,c),this.updateDisplayOrigin()},setFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.showCells=!1:(this.fillColor=t,this.fillAlpha=e,this.showCells=!0),this},setAltFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.showAltCells=!1:(this.altFillColor=t,this.altFillAlpha=e,this.showAltCells=!0),this},setOutlineStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.showOutline=!1:(this.outlineFillColor=t,this.outlineFillAlpha=e,this.showOutline=!0),this}});t.exports=o},49912:(t,e,i)=>{var s=i(65960),r=i(75177),n=i(20926);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.currentContext;if(n(t,a,e,i,o)){var h=-e._displayOriginX,l=-e._displayOriginY,u=i.alpha*e.alpha,c=e.width,d=e.height,p=e.cellWidth,f=e.cellHeight,g=Math.ceil(c/p),m=Math.ceil(d/f),v=p,y=f,x=p-(g*p-c),w=f-(m*f-d),T=e.showCells,b=e.showAltCells,S=e.showOutline,E=0,C=0,A=0,_=0,P=0;if(S&&(v--,y--,x===p&&x--,w===f&&w--),T&&e.fillAlpha>0)for(s(a,e),C=0;C0)for(s(a,e,e.altFillColor,e.altFillAlpha*u),C=0;C0){for(r(a,e,e.outlineFillColor,e.outlineFillAlpha*u),E=1;E{var s=i(39429),r=i(30479);s.register("grid",(function(t,e,i,s,n,o,a,h,l,u){return this.displayList.add(new r(this.scene,t,e,i,s,n,o,a,h,l,u))}))},26015:(t,e,i)=>{var s,r;i(29747),s=i(46161),r=i(49912),t.exports={renderWebGL:s,renderCanvas:r}},46161:(t,e,i)=>{var s=i(91296),r=i(70554);t.exports=function(t,e,i,n){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline),a=s(e,i,n);o.calcMatrix.copyFrom(a.calc).translate(-e._displayOriginX,-e._displayOriginY);var h,l,u=i.alpha*e.alpha,c=e.width,d=e.height,p=e.cellWidth,f=e.cellHeight,g=Math.ceil(c/p),m=Math.ceil(d/f),v=p,y=f,x=p-(g*p-c),w=f-(m*f-d),T=e.showCells,b=e.showAltCells,S=e.showOutline,E=0,C=0,A=0,_=0,P=0;if(S&&(v--,y--,x===p&&x--,w===f&&w--),t.pipelines.preBatch(e),T&&e.fillAlpha>0)for(h=o.fillTint,l=r.getTintAppendFloatAlpha(e.fillColor,e.fillAlpha*u),h.TL=l,h.TR=l,h.BL=l,h.BR=l,C=0;C0)for(h=o.fillTint,l=r.getTintAppendFloatAlpha(e.altFillColor,e.altFillAlpha*u),h.TL=l,h.TR=l,h.BL=l,h.BR=l,C=0;C0){var R=o.strokeTint,M=r.getTintAppendFloatAlpha(e.outlineFillColor,e.outlineFillAlpha*u);for(R.TL=M,R.TR=M,R.BL=M,R.BR=M,E=1;E{var s=i(99651),r=i(83419),n=i(17803),o=new r({Extends:n,Mixins:[s],initialize:function(t,e,i,s,r,o,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=48),void 0===r&&(r=32),void 0===o&&(o=15658734),void 0===a&&(a=10066329),void 0===h&&(h=13421772),n.call(this,t,"IsoBox",null),this.projection=4,this.fillTop=o,this.fillLeft=a,this.fillRight=h,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isFilled=!0,this.setPosition(e,i),this.setSize(s,r),this.updateDisplayOrigin()},setProjection:function(t){return this.projection=t,this},setFaces:function(t,e,i){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===i&&(i=!0),this.showTop=t,this.showLeft=e,this.showRight=i,this},setFillStyle:function(t,e,i){return this.fillTop=t,this.fillLeft=e,this.fillRight=i,this.isFilled=!0,this}});t.exports=o},11508:(t,e,i)=>{var s=i(65960),r=i(20926);t.exports=function(t,e,i,n){i.addToRenderList(e);var o=t.currentContext;if(r(t,o,e,i,n)&&e.isFilled){var a=e.width,h=e.height,l=a/2,u=a/e.projection;e.showTop&&(s(o,e,e.fillTop),o.beginPath(),o.moveTo(-l,-h),o.lineTo(0,-u-h),o.lineTo(l,-h),o.lineTo(l,-1),o.lineTo(0,u-1),o.lineTo(-l,-1),o.lineTo(-l,-h),o.fill()),e.showLeft&&(s(o,e,e.fillLeft),o.beginPath(),o.moveTo(-l,0),o.lineTo(0,u),o.lineTo(0,u-h),o.lineTo(-l,-h),o.lineTo(-l,0),o.fill()),e.showRight&&(s(o,e,e.fillRight),o.beginPath(),o.moveTo(l,0),o.lineTo(0,u),o.lineTo(0,u-h),o.lineTo(l,-h),o.lineTo(l,0),o.fill()),o.restore()}}},3933:(t,e,i)=>{var s=i(39429),r=i(61475);s.register("isobox",(function(t,e,i,s,n,o,a){return this.displayList.add(new r(this.scene,t,e,i,s,n,o,a))}))},99651:(t,e,i)=>{var s,r;i(29747),s=i(68149),r=i(11508),t.exports={renderWebGL:s,renderCanvas:r}},68149:(t,e,i)=>{var s=i(91296),r=i(70554);t.exports=function(t,e,i,n){i.addToRenderList(e);var o,a,h,l,u,c,d,p,f,g=t.pipelines.set(e.pipeline),m=s(e,i,n),v=g.calcMatrix.copyFrom(m.calc),y=e.width,x=e.height,w=y/2,T=y/e.projection,b=i.alpha*e.alpha;e.isFilled&&(t.pipelines.preBatch(e),e.showTop&&(o=r.getTintAppendFloatAlpha(e.fillTop,b),a=v.getX(-w,-x),h=v.getY(-w,-x),l=v.getX(0,-T-x),u=v.getY(0,-T-x),c=v.getX(w,-x),d=v.getY(w,-x),p=v.getX(0,T-x),f=v.getY(0,T-x),g.batchQuad(e,a,h,l,u,c,d,p,f,0,0,1,1,o,o,o,o,2)),e.showLeft&&(o=r.getTintAppendFloatAlpha(e.fillLeft,b),a=v.getX(-w,0),h=v.getY(-w,0),l=v.getX(0,T),u=v.getY(0,T),c=v.getX(0,T-x),d=v.getY(0,T-x),p=v.getX(-w,-x),f=v.getY(-w,-x),g.batchQuad(e,a,h,l,u,c,d,p,f,0,0,1,1,o,o,o,o,2)),e.showRight&&(o=r.getTintAppendFloatAlpha(e.fillRight,b),a=v.getX(w,0),h=v.getY(w,0),l=v.getX(0,T),u=v.getY(0,T),c=v.getX(0,T-x),d=v.getY(0,T-x),p=v.getX(w,-x),f=v.getY(w,-x),g.batchQuad(e,a,h,l,u,c,d,p,f,0,0,1,1,o,o,o,o,2)),t.pipelines.postBatch(e))}},16933:(t,e,i)=>{var s=i(83419),r=i(60561),n=i(17803),o=new s({Extends:n,Mixins:[r],initialize:function(t,e,i,s,r,o,a,h,l){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=48),void 0===r&&(r=32),void 0===o&&(o=!1),void 0===a&&(a=15658734),void 0===h&&(h=10066329),void 0===l&&(l=13421772),n.call(this,t,"IsoTriangle",null),this.projection=4,this.fillTop=a,this.fillLeft=h,this.fillRight=l,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isReversed=o,this.isFilled=!0,this.setPosition(e,i),this.setSize(s,r),this.updateDisplayOrigin()},setProjection:function(t){return this.projection=t,this},setReversed:function(t){return this.isReversed=t,this},setFaces:function(t,e,i){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===i&&(i=!0),this.showTop=t,this.showLeft=e,this.showRight=i,this},setFillStyle:function(t,e,i){return this.fillTop=t,this.fillLeft=e,this.fillRight=i,this.isFilled=!0,this}});t.exports=o},79590:(t,e,i)=>{var s=i(65960),r=i(20926);t.exports=function(t,e,i,n){i.addToRenderList(e);var o=t.currentContext;if(r(t,o,e,i,n)&&e.isFilled){var a=e.width,h=e.height,l=a/2,u=a/e.projection,c=e.isReversed;e.showTop&&c&&(s(o,e,e.fillTop),o.beginPath(),o.moveTo(-l,-h),o.lineTo(0,-u-h),o.lineTo(l,-h),o.lineTo(0,u-h),o.fill()),e.showLeft&&(s(o,e,e.fillLeft),o.beginPath(),c?(o.moveTo(-l,-h),o.lineTo(0,u),o.lineTo(0,u-h)):(o.moveTo(-l,0),o.lineTo(0,u),o.lineTo(0,u-h)),o.fill()),e.showRight&&(s(o,e,e.fillRight),o.beginPath(),c?(o.moveTo(l,-h),o.lineTo(0,u),o.lineTo(0,u-h)):(o.moveTo(l,0),o.lineTo(0,u),o.lineTo(0,u-h)),o.fill()),o.restore()}}},49803:(t,e,i)=>{var s=i(39429),r=i(16933);s.register("isotriangle",(function(t,e,i,s,n,o,a,h){return this.displayList.add(new r(this.scene,t,e,i,s,n,o,a,h))}))},60561:(t,e,i)=>{var s,r;i(29747),s=i(51503),r=i(79590),t.exports={renderWebGL:s,renderCanvas:r}},51503:(t,e,i)=>{var s=i(91296),r=i(70554);t.exports=function(t,e,i,n){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline),a=s(e,i,n),h=o.calcMatrix.copyFrom(a.calc),l=e.width,u=e.height,c=l/2,d=l/e.projection,p=e.isReversed,f=i.alpha*e.alpha;if(e.isFilled){var g,m,v,y,x,w,T;if(t.pipelines.preBatch(e),e.showTop&&p){g=r.getTintAppendFloatAlpha(e.fillTop,f),m=h.getX(-c,-u),v=h.getY(-c,-u),y=h.getX(0,-d-u),x=h.getY(0,-d-u),w=h.getX(c,-u),T=h.getY(c,-u);var b=h.getX(0,d-u),S=h.getY(0,d-u);o.batchQuad(e,m,v,y,x,w,T,b,S,0,0,1,1,g,g,g,g,2)}e.showLeft&&(g=r.getTintAppendFloatAlpha(e.fillLeft,f),p?(m=h.getX(-c,-u),v=h.getY(-c,-u),y=h.getX(0,d),x=h.getY(0,d),w=h.getX(0,d-u),T=h.getY(0,d-u)):(m=h.getX(-c,0),v=h.getY(-c,0),y=h.getX(0,d),x=h.getY(0,d),w=h.getX(0,d-u),T=h.getY(0,d-u)),o.batchTri(e,m,v,y,x,w,T,0,0,1,1,g,g,g,2)),e.showRight&&(g=r.getTintAppendFloatAlpha(e.fillRight,f),p?(m=h.getX(c,-u),v=h.getY(c,-u),y=h.getX(0,d),x=h.getY(0,d),w=h.getX(0,d-u),T=h.getY(0,d-u)):(m=h.getX(c,0),v=h.getY(c,0),y=h.getX(0,d),x=h.getY(0,d),w=h.getX(0,d-u),T=h.getY(0,d-u)),o.batchTri(e,m,v,y,x,w,T,0,0,1,1,g,g,g,2)),t.pipelines.postBatch(e)}}},57847:(t,e,i)=>{var s=i(83419),r=i(17803),n=i(23031),o=i(36823),a=new s({Extends:r,Mixins:[o],initialize:function(t,e,i,s,o,a,h,l,u){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),void 0===o&&(o=0),void 0===a&&(a=128),void 0===h&&(h=0),r.call(this,t,"Line",new n(s,o,a,h));var c=Math.max(1,this.geom.right-this.geom.left),d=Math.max(1,this.geom.bottom-this.geom.top);this.lineWidth=1,this._startWidth=1,this._endWidth=1,this.setPosition(e,i),this.setSize(c,d),void 0!==l&&this.setStrokeStyle(1,l,u),this.updateDisplayOrigin()},setLineWidth:function(t,e){return void 0===e&&(e=t),this._startWidth=t,this._endWidth=e,this.lineWidth=t,this},setTo:function(t,e,i,s){return this.geom.setTo(t,e,i,s),this}});t.exports=a},17440:(t,e,i)=>{var s=i(75177),r=i(20926);t.exports=function(t,e,i,n){i.addToRenderList(e);var o=t.currentContext;if(r(t,o,e,i,n)){var a=e._displayOriginX,h=e._displayOriginY;e.isStroked&&(s(o,e),o.beginPath(),o.moveTo(e.geom.x1-a,e.geom.y1-h),o.lineTo(e.geom.x2-a,e.geom.y2-h),o.stroke()),o.restore()}}},2481:(t,e,i)=>{var s=i(39429),r=i(57847);s.register("line",(function(t,e,i,s,n,o,a,h){return this.displayList.add(new r(this.scene,t,e,i,s,n,o,a,h))}))},36823:(t,e,i)=>{var s,r;i(29747),s=i(77385),r=i(17440),t.exports={renderWebGL:s,renderCanvas:r}},77385:(t,e,i)=>{var s=i(91296),r=i(70554);t.exports=function(t,e,i,n){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline),a=s(e,i,n);o.calcMatrix.copyFrom(a.calc);var h=e._displayOriginX,l=e._displayOriginY,u=i.alpha*e.alpha;if(t.pipelines.preBatch(e),e.isStroked){var c=o.strokeTint,d=r.getTintAppendFloatAlpha(e.strokeColor,e.strokeAlpha*u);c.TL=d,c.TR=d,c.BL=d,c.BR=d,o.batchLine(e.geom.x1-h,e.geom.y1-l,e.geom.x2-h,e.geom.y2-l,e._startWidth/2,e._endWidth/2,1,0,!1,a.sprite,a.camera)}t.pipelines.postBatch(e)}},24949:(t,e,i)=>{var s=i(90273),r=i(83419),n=i(94811),o=i(13829),a=i(25717),h=i(17803),l=i(5469),u=new r({Extends:h,Mixins:[s],initialize:function(t,e,i,s,r,n){void 0===e&&(e=0),void 0===i&&(i=0),h.call(this,t,"Polygon",new a(s));var l=o(this.geom);this.setPosition(e,i),this.setSize(l.width,l.height),void 0!==r&&this.setFillStyle(r,n),this.updateDisplayOrigin(),this.updateData()},smooth:function(t){void 0===t&&(t=1);for(var e=0;e{var s=i(65960),r=i(75177),n=i(20926);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.currentContext;if(n(t,a,e,i,o)){var h=e._displayOriginX,l=e._displayOriginY,u=e.pathData,c=u.length-1,d=u[0]-h,p=u[1]-l;a.beginPath(),a.moveTo(d,p),e.closePath||(c-=2);for(var f=2;f{var s=i(39429),r=i(24949);s.register("polygon",(function(t,e,i,s,n){return this.displayList.add(new r(this.scene,t,e,i,s,n))}))},90273:(t,e,i)=>{var s,r;i(29747),s=i(73695),r=i(38710),t.exports={renderWebGL:s,renderCanvas:r}},73695:(t,e,i)=>{var s=i(10441),r=i(91296),n=i(34682);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline),h=r(e,i,o),l=a.calcMatrix.copyFrom(h.calc),u=e._displayOriginX,c=e._displayOriginY,d=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&s(a,l,e,d,u,c),e.isStroked&&n(a,e,d,u,c),t.pipelines.postBatch(e)}},74561:(t,e,i)=>{var s=i(83419),r=i(87841),n=i(17803),o=i(95597),a=new s({Extends:n,Mixins:[o],initialize:function(t,e,i,s,o,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=128),void 0===o&&(o=128),n.call(this,t,"Rectangle",new r(0,0,s,o)),this.setPosition(e,i),this.setSize(s,o),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},setSize:function(t,e){this.width=t,this.height=e,this.geom.setSize(t,e),this.updateData(),this.updateDisplayOrigin();var i=this.input;return i&&!i.customHitArea&&(i.hitArea.width=t,i.hitArea.height=e),this},updateData:function(){var t=[],e=this.geom,i=this._tempLine;return e.getLineA(i),t.push(i.x1,i.y1,i.x2,i.y2),e.getLineB(i),t.push(i.x2,i.y2),e.getLineC(i),t.push(i.x2,i.y2),e.getLineD(i),t.push(i.x2,i.y2),this.pathData=t,this}});t.exports=a},48682:(t,e,i)=>{var s=i(65960),r=i(75177),n=i(20926);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.currentContext;if(n(t,a,e,i,o)){var h=e._displayOriginX,l=e._displayOriginY;e.isFilled&&(s(a,e),a.fillRect(-h,-l,e.width,e.height)),e.isStroked&&(r(a,e),a.beginPath(),a.rect(-h,-l,e.width,e.height),a.stroke()),a.restore()}}},87959:(t,e,i)=>{var s=i(39429),r=i(74561);s.register("rectangle",(function(t,e,i,s,n,o){return this.displayList.add(new r(this.scene,t,e,i,s,n,o))}))},95597:(t,e,i)=>{var s,r;i(29747),s=i(52059),r=i(48682),t.exports={renderWebGL:s,renderCanvas:r}},52059:(t,e,i)=>{var s=i(91296),r=i(34682),n=i(70554);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline),h=s(e,i,o);a.calcMatrix.copyFrom(h.calc);var l=e._displayOriginX,u=e._displayOriginY,c=i.alpha*e.alpha;if(t.pipelines.preBatch(e),e.isFilled){var d=a.fillTint,p=n.getTintAppendFloatAlpha(e.fillColor,e.fillAlpha*c);d.TL=p,d.TR=p,d.BL=p,d.BR=p,a.batchFillRect(-l,-u,e.width,e.height)}e.isStroked&&r(a,e,c,l,u),t.pipelines.postBatch(e)}},55911:(t,e,i)=>{var s=i(81991),r=i(83419),n=i(94811),o=i(17803),a=new r({Extends:o,Mixins:[s],initialize:function(t,e,i,s,r,n,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=5),void 0===r&&(r=32),void 0===n&&(n=64),o.call(this,t,"Star",null),this._points=s,this._innerRadius=r,this._outerRadius=n,this.setPosition(e,i),this.setSize(2*n,2*n),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},setPoints:function(t){return this._points=t,this.updateData()},setInnerRadius:function(t){return this._innerRadius=t,this.updateData()},setOuterRadius:function(t){return this._outerRadius=t,this.updateData()},points:{get:function(){return this._points},set:function(t){this._points=t,this.updateData()}},innerRadius:{get:function(){return this._innerRadius},set:function(t){this._innerRadius=t,this.updateData()}},outerRadius:{get:function(){return this._outerRadius},set:function(t){this._outerRadius=t,this.updateData()}},updateData:function(){var t=[],e=this._points,i=this._innerRadius,s=this._outerRadius,r=Math.PI/2*3,o=Math.PI/e,a=s,h=s;t.push(a,h+-s);for(var l=0;l{var s=i(65960),r=i(75177),n=i(20926);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.currentContext;if(n(t,a,e,i,o)){var h=e._displayOriginX,l=e._displayOriginY,u=e.pathData,c=u.length-1,d=u[0]-h,p=u[1]-l;a.beginPath(),a.moveTo(d,p),e.closePath||(c-=2);for(var f=2;f{var s=i(55911);i(39429).register("star",(function(t,e,i,r,n,o,a){return this.displayList.add(new s(this.scene,t,e,i,r,n,o,a))}))},81991:(t,e,i)=>{var s,r;i(29747),s=i(57017),r=i(64272),t.exports={renderWebGL:s,renderCanvas:r}},57017:(t,e,i)=>{var s=i(10441),r=i(91296),n=i(34682);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline),h=r(e,i,o),l=a.calcMatrix.copyFrom(h.calc),u=e._displayOriginX,c=e._displayOriginY,d=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&s(a,l,e,d,u,c),e.isStroked&&n(a,e,d,u,c),t.pipelines.postBatch(e)}},36931:(t,e,i)=>{var s=i(83419),r=i(17803),n=i(16483),o=i(96195),a=new s({Extends:r,Mixins:[o],initialize:function(t,e,i,s,o,a,h,l,u,c,d){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),void 0===o&&(o=128),void 0===a&&(a=64),void 0===h&&(h=0),void 0===l&&(l=128),void 0===u&&(u=128),r.call(this,t,"Triangle",new n(s,o,a,h,l,u));var p=this.geom.right-this.geom.left,f=this.geom.bottom-this.geom.top;this.setPosition(e,i),this.setSize(p,f),void 0!==c&&this.setFillStyle(c,d),this.updateDisplayOrigin(),this.updateData()},setTo:function(t,e,i,s,r,n){return this.geom.setTo(t,e,i,s,r,n),this.updateData()},updateData:function(){var t=[],e=this.geom,i=this._tempLine;return e.getLineA(i),t.push(i.x1,i.y1,i.x2,i.y2),e.getLineB(i),t.push(i.x2,i.y2),e.getLineC(i),t.push(i.x2,i.y2),this.pathData=t,this}});t.exports=a},85172:(t,e,i)=>{var s=i(65960),r=i(75177),n=i(20926);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.currentContext;if(n(t,a,e,i,o)){var h=e._displayOriginX,l=e._displayOriginY,u=e.geom.x1-h,c=e.geom.y1-l,d=e.geom.x2-h,p=e.geom.y2-l,f=e.geom.x3-h,g=e.geom.y3-l;a.beginPath(),a.moveTo(u,c),a.lineTo(d,p),a.lineTo(f,g),a.closePath(),e.isFilled&&(s(a,e),a.fill()),e.isStroked&&(r(a,e),a.stroke()),a.restore()}}},45245:(t,e,i)=>{var s=i(39429),r=i(36931);s.register("triangle",(function(t,e,i,s,n,o,a,h,l,u){return this.displayList.add(new r(this.scene,t,e,i,s,n,o,a,h,l,u))}))},96195:(t,e,i)=>{var s,r;i(29747),s=i(83253),r=i(85172),t.exports={renderWebGL:s,renderCanvas:r}},83253:(t,e,i)=>{var s=i(91296),r=i(34682),n=i(70554);t.exports=function(t,e,i,o){i.addToRenderList(e);var a=t.pipelines.set(e.pipeline),h=s(e,i,o);a.calcMatrix.copyFrom(h.calc);var l=e._displayOriginX,u=e._displayOriginY,c=i.alpha*e.alpha;if(t.pipelines.preBatch(e),e.isFilled){var d=a.fillTint,p=n.getTintAppendFloatAlpha(e.fillColor,e.fillAlpha*c);d.TL=p,d.TR=p,d.BL=p,d.BR=p;var f=e.geom.x1-l,g=e.geom.y1-u,m=e.geom.x2-l,v=e.geom.y2-u,y=e.geom.x3-l,x=e.geom.y3-u;a.batchFillTriangle(f,g,m,v,y,x,h.sprite,h.camera)}e.isStroked&&r(a,e,c,l,u),t.pipelines.postBatch(e)}},68287:(t,e,i)=>{var s=i(9674),r=i(83419),n=i(31401),o=i(95643),a=i(92751),h=new r({Extends:o,Mixins:[n.Alpha,n.BlendMode,n.Depth,n.Flip,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Size,n.TextureCrop,n.Tint,n.Transform,n.Visible,a],initialize:function(t,e,i,r,n){o.call(this,t,"Sprite"),this._crop=this.resetCropObject(),this.anims=new s(this),this.setTexture(r,n),this.setPosition(e,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(t,e){this.anims.update(t,e)},play:function(t,e){return this.anims.play(t,e)},playReverse:function(t,e){return this.anims.playReverse(t,e)},playAfterDelay:function(t,e){return this.anims.playAfterDelay(t,e)},playAfterRepeat:function(t,e){return this.anims.playAfterRepeat(t,e)},chain:function(t){return this.anims.chain(t)},stop:function(){return this.anims.stop()},stopAfterDelay:function(t){return this.anims.stopAfterDelay(t)},stopAfterRepeat:function(t){return this.anims.stopAfterRepeat(t)},stopOnFrame:function(t){return this.anims.stopOnFrame(t)},toJSON:function(){return n.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});t.exports=h},76552:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e),t.batchSprite(e,e.frame,i,s)}},15567:(t,e,i)=>{var s=i(25305),r=i(13059),n=i(44603),o=i(23568),a=i(68287);n.register("sprite",(function(t,e){void 0===t&&(t={});var i=o(t,"key",null),n=o(t,"frame",null),h=new a(this.scene,0,0,i,n);return void 0!==e&&(t.add=e),s(this.scene,h,t),r(h,t),h}))},46409:(t,e,i)=>{var s=i(39429),r=i(68287);s.register("sprite",(function(t,e,i,s){return this.displayList.add(new r(this.scene,t,e,i,s))}))},92751:(t,e,i)=>{var s,r;i(29747),s=i(9409),r=i(76552),t.exports={renderWebGL:s,renderCanvas:r}},9409:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e),e.pipeline.batchSprite(e,i,s)}},14220:t=>{t.exports=function(t,e,i){var s=t.canvas,r=t.context,n=t.style,o=[],a=0,h=i.length;n.maxLines>0&&n.maxLines1&&(u+=t.letterSpacing*(i[l].length-1)),n.wordWrap&&(u-=r.measureText(" ").width),o[l]=Math.ceil(u),a=Math.max(a,o[l])}var c=e.fontSize+n.strokeThickness,d=c*h,p=t.lineSpacing;return h>1&&(d+=p*(h-1)),{width:a,height:d,lines:h,lineWidths:o,lineSpacing:p,lineHeight:c}}},79557:(t,e,i)=>{var s=i(27919);t.exports=function(t){var e=s.create(this),i=e.getContext("2d",{willReadFrequently:!0});t.syncFont(e,i);var r=i.measureText(t.testString);if("actualBoundingBoxAscent"in r){var n=r.actualBoundingBoxAscent,o=r.actualBoundingBoxDescent;return s.remove(e),{ascent:n,descent:o,fontSize:n+o}}var a=Math.ceil(r.width*t.baselineX),h=a,l=2*h;h=h*t.baselineY|0,e.width=a,e.height=l,i.fillStyle="#f00",i.fillRect(0,0,a,l),i.font=t._font,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(t.testString,0,h);var u={ascent:0,descent:0,fontSize:0},c=i.getImageData(0,0,a,l);if(!c)return u.ascent=h,u.descent=h+6,u.fontSize=u.ascent+u.descent,s.remove(e),u;var d,p,f=c.data,g=f.length,m=4*a,v=0,y=!1;for(d=0;dh;d--){for(p=0;p{var s=i(40366),r=i(27919),n=i(83419),o=i(31401),a=i(95643),h=i(14220),l=i(35154),u=i(35846),c=i(61771),d=i(35762),p=i(45650),f=new n({Extends:a,Mixins:[o.Alpha,o.BlendMode,o.ComputedSize,o.Crop,o.Depth,o.Flip,o.GetBounds,o.Mask,o.Origin,o.Pipeline,o.PostPipeline,o.ScrollFactor,o.Tint,o.Transform,o.Visible,c],initialize:function(t,e,i,s,n){void 0===e&&(e=0),void 0===i&&(i=0),a.call(this,t,"Text"),this.renderer=t.sys.renderer,this.setPosition(e,i),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(!0),this.canvas=r.create(this),this.context,this.style=new d(this,n),this.autoRound=!0,this.splitRegExp=/(?:\r\n|\r|\n)/,this._text=void 0,this.padding={left:0,right:0,top:0,bottom:0},this.width=1,this.height=1,this.lineSpacing=0,this.letterSpacing=0,0===this.style.resolution&&(this.style.resolution=1),this._crop=this.resetCropObject(),this._textureKey=p(),this.texture=t.sys.textures.addCanvas(this._textureKey,this.canvas),this.context=this.texture.context,this.frame=this.texture.get(),this.frame.source.resolution=this.style.resolution,this.renderer&&this.renderer.gl&&(this.renderer.deleteTexture(this.frame.source.glTexture),this.frame.source.glTexture=null),this.initRTL(),this.setText(s),n&&n.padding&&this.setPadding(n.padding),n&&n.lineSpacing&&this.setLineSpacing(n.lineSpacing)},initRTL:function(){this.style.rtl&&(this.canvas.dir="rtl",this.context.direction="rtl",this.canvas.style.display="none",s(this.canvas,this.scene.sys.canvas),this.originX=1)},runWordWrap:function(t){var e=this.style;if(e.wordWrapCallback){var i=e.wordWrapCallback.call(e.wordWrapCallbackScope,t,this);return Array.isArray(i)&&(i=i.join("\n")),i}return e.wordWrapWidth?e.wordWrapUseAdvanced?this.advancedWordWrap(t,this.context,this.style.wordWrapWidth):this.basicWordWrap(t,this.context,this.style.wordWrapWidth):t},advancedWordWrap:function(t,e,i){for(var s="",r=t.replace(/ +/gi," ").split(this.splitRegExp),n=r.length,o=0;ol){if(0===c){for(var g=p;g.length&&(g=g.slice(0,-1),!((f=e.measureText(g).width)<=l)););if(!g.length)throw new Error("wordWrapWidth < a single character");var m=d.substr(g.length);u[c]=m,h+=g}var v=u[c].length?c:c+1,y=u.slice(v).join(" ").replace(/[ \n]*$/gi,"");r.splice(o+1,0,y),n=r.length;break}h+=p,l-=f}s+=h.replace(/[ \n]*$/gi,"")+"\n"}}return s=s.replace(/[\s|\n]*$/gi,"")},basicWordWrap:function(t,e,i){for(var s="",r=t.split(this.splitRegExp),n=r.length-1,o=e.measureText(" ").width,a=0;a<=n;a++){for(var h=i,l=r[a].split(" "),u=l.length-1,c=0;c<=u;c++){var d=l[c],p=e.measureText(d).width,f=p;ch&&c>0&&(s+="\n",h=i),s+=d,c0&&(d+=l.lineSpacing*g),i.rtl)c=p-c-u.left-u.right;else if("right"===i.align)c+=o-l.lineWidths[g];else if("center"===i.align)c+=(o-l.lineWidths[g])/2;else if("justify"===i.align&&l.lineWidths[g]/l.width>=.85){var m=l.width-l.lineWidths[g],v=e.measureText(" ").width,y=a[g].trim(),x=y.split(" ");m+=(a[g].length-y.length)*v;for(var w=Math.floor(m/v),T=0;w>0;)x[T]+=" ",T=(T+1)%(x.length-1||1),--w;a[g]=x.join(" ")}if(this.autoRound&&(c=Math.round(c),d=Math.round(d)),i.strokeThickness&&(i.syncShadow(e,i.shadowStroke),e.strokeText(a[g],c,d)),i.color){i.syncShadow(e,i.shadowFill);var b=this.letterSpacing;if(0!==b)for(var S=0,E=a[g].split(""),C=0;C{t.exports=function(t,e,i,s){0!==e.width&&0!==e.height&&(i.addToRenderList(e),t.batchSprite(e,e.frame,i,s))}},71259:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(50171);r.register("text",(function(t,e){void 0===t&&(t={});var i=n(t,"text",""),r=n(t,"style",null),a=n(t,"padding",null);null!==a&&(r.padding=a);var h=new o(this.scene,0,0,i,r);return void 0!==e&&(t.add=e),s(this.scene,h,t),h.autoRound=n(t,"autoRound",!0),h.resolution=n(t,"resolution",1),h}))},68005:(t,e,i)=>{var s=i(50171);i(39429).register("text",(function(t,e,i,r){return this.displayList.add(new s(this.scene,t,e,i,r))}))},61771:(t,e,i)=>{var s,r;i(29747),s=i(34397),r=i(79724),t.exports={renderWebGL:s,renderCanvas:r}},35762:(t,e,i)=>{var s=i(83419),r=i(23568),n=i(35154),o=i(79557),a={fontFamily:["fontFamily","Courier"],fontSize:["fontSize","16px"],fontStyle:["fontStyle",""],backgroundColor:["backgroundColor",null],color:["color","#fff"],stroke:["stroke","#fff"],strokeThickness:["strokeThickness",0],shadowOffsetX:["shadow.offsetX",0],shadowOffsetY:["shadow.offsetY",0],shadowColor:["shadow.color","#000"],shadowBlur:["shadow.blur",0],shadowStroke:["shadow.stroke",!1],shadowFill:["shadow.fill",!1],align:["align","left"],maxLines:["maxLines",0],fixedWidth:["fixedWidth",0],fixedHeight:["fixedHeight",0],resolution:["resolution",0],rtl:["rtl",!1],testString:["testString","|MÉqgy"],baselineX:["baselineX",1.2],baselineY:["baselineY",1.4],wordWrapWidth:["wordWrap.width",null],wordWrapCallback:["wordWrap.callback",null],wordWrapCallbackScope:["wordWrap.callbackScope",null],wordWrapUseAdvanced:["wordWrap.useAdvancedWrap",!1]},h=new s({initialize:function(t,e){this.parent=t,this.fontFamily,this.fontSize,this.fontStyle,this.backgroundColor,this.color,this.stroke,this.strokeThickness,this.shadowOffsetX,this.shadowOffsetY,this.shadowColor,this.shadowBlur,this.shadowStroke,this.shadowFill,this.align,this.maxLines,this.fixedWidth,this.fixedHeight,this.resolution,this.rtl,this.testString,this.baselineX,this.baselineY,this.wordWrapWidth,this.wordWrapCallback,this.wordWrapCallbackScope,this.wordWrapUseAdvanced,this._font,this.setStyle(e,!1,!0)},setStyle:function(t,e,i){for(var s in void 0===e&&(e=!0),void 0===i&&(i=!1),t&&t.hasOwnProperty("fontSize")&&"number"==typeof t.fontSize&&(t.fontSize=t.fontSize.toString()+"px"),a){var h=i?a[s][1]:this[s];this[s]="wordWrapCallback"===s||"wordWrapCallbackScope"===s?n(t,a[s][0],h):r(t,a[s][0],h)}var l=n(t,"font",null);null!==l&&this.setFont(l,!1),this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim();var u=n(t,"fill",null);null!==u&&(this.color=u);var c=n(t,"metrics",!1);return c?this.metrics={ascent:n(c,"ascent",0),descent:n(c,"descent",0),fontSize:n(c,"fontSize",0)}:!e&&this.metrics||(this.metrics=o(this)),e?this.parent.updateText():this.parent},syncFont:function(t,e){e.font=this._font},syncStyle:function(t,e){e.textBaseline="alphabetic",e.fillStyle=this.color,e.strokeStyle=this.stroke,e.lineWidth=this.strokeThickness,e.lineCap="round",e.lineJoin="round"},syncShadow:function(t,e){e?(t.shadowOffsetX=this.shadowOffsetX,t.shadowOffsetY=this.shadowOffsetY,t.shadowColor=this.shadowColor,t.shadowBlur=this.shadowBlur):(t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowColor=0,t.shadowBlur=0)},update:function(t){return t&&(this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),this.metrics=o(this)),this.parent.updateText()},setFont:function(t,e){void 0===e&&(e=!0);var i=t,s="",r="";if("string"!=typeof t)i=n(t,"fontFamily","Courier"),s=n(t,"fontSize","16px"),r=n(t,"fontStyle","");else{var o=t.split(" "),a=0;r=o.length>2?o[a++]:"",s=o[a++]||"16px",i=o[a++]||"Courier"}return i===this.fontFamily&&s===this.fontSize&&r===this.fontStyle||(this.fontFamily=i,this.fontSize=s,this.fontStyle=r,e&&this.update(!0)),this.parent},setFontFamily:function(t){return this.fontFamily!==t&&(this.fontFamily=t,this.update(!0)),this.parent},setFontStyle:function(t){return this.fontStyle!==t&&(this.fontStyle=t,this.update(!0)),this.parent},setFontSize:function(t){return"number"==typeof t&&(t=t.toString()+"px"),this.fontSize!==t&&(this.fontSize=t,this.update(!0)),this.parent},setTestString:function(t){return this.testString=t,this.update(!0)},setFixedSize:function(t,e){return this.fixedWidth=t,this.fixedHeight=e,t&&(this.parent.width=t),e&&(this.parent.height=e),this.update(!1)},setBackgroundColor:function(t){return this.backgroundColor=t,this.update(!1)},setFill:function(t){return this.color=t,this.update(!1)},setColor:function(t){return this.color=t,this.update(!1)},setResolution:function(t){return this.resolution=t,this.update(!1)},setStroke:function(t,e){return void 0===e&&(e=this.strokeThickness),void 0===t&&0!==this.strokeThickness?(this.strokeThickness=0,this.update(!0)):this.stroke===t&&this.strokeThickness===e||(this.stroke=t,this.strokeThickness=e,this.update(!0)),this.parent},setShadow:function(t,e,i,s,r,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i="#000"),void 0===s&&(s=0),void 0===r&&(r=!1),void 0===n&&(n=!0),this.shadowOffsetX=t,this.shadowOffsetY=e,this.shadowColor=i,this.shadowBlur=s,this.shadowStroke=r,this.shadowFill=n,this.update(!1)},setShadowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.shadowOffsetX=t,this.shadowOffsetY=e,this.update(!1)},setShadowColor:function(t){return void 0===t&&(t="#000"),this.shadowColor=t,this.update(!1)},setShadowBlur:function(t){return void 0===t&&(t=0),this.shadowBlur=t,this.update(!1)},setShadowStroke:function(t){return this.shadowStroke=t,this.update(!1)},setShadowFill:function(t){return this.shadowFill=t,this.update(!1)},setWordWrapWidth:function(t,e){return void 0===e&&(e=!1),this.wordWrapWidth=t,this.wordWrapUseAdvanced=e,this.update(!1)},setWordWrapCallback:function(t,e){return void 0===e&&(e=null),this.wordWrapCallback=t,this.wordWrapCallbackScope=e,this.update(!1)},setAlign:function(t){return void 0===t&&(t="left"),this.align=t,this.update(!1)},setMaxLines:function(t){return void 0===t&&(t=0),this.maxLines=t,this.update(!1)},getTextMetrics:function(){var t=this.metrics;return{ascent:t.ascent,descent:t.descent,fontSize:t.fontSize}},toJSON:function(){var t={};for(var e in a)t[e]=this[e];return t.metrics=this.getTextMetrics(),t},destroy:function(){this.parent=void 0}});t.exports=h},34397:(t,e,i)=>{var s=i(70554);t.exports=function(t,e,i,r){if(0!==e.width&&0!==e.height){i.addToRenderList(e);var n=e.frame,o=n.width,a=n.height,h=s.getTintAppendFloatAlpha,l=t.pipelines.set(e.pipeline,e),u=l.setTexture2D(n.glTexture,e);l.batchTexture(e,n.glTexture,o,a,e.x,e.y,o/e.style.resolution,a/e.style.resolution,e.scaleX,e.scaleY,e.rotation,e.flipX,e.flipY,e.scrollFactorX,e.scrollFactorY,e.displayOriginX,e.displayOriginY,0,0,o,a,h(e.tintTopLeft,i.alpha*e._alphaTL),h(e.tintTopRight,i.alpha*e._alphaTR),h(e.tintBottomLeft,i.alpha*e._alphaBL),h(e.tintBottomRight,i.alpha*e._alphaBR),e.tintFill,0,0,i,r,!1,u)}}},20839:(t,e,i)=>{var s=i(27919),r=i(83419),n=i(31401),o=i(95643),a=i(98439),h=i(68703),l=i(56295),u=i(45650),c=i(26099),d=new r({Extends:o,Mixins:[n.Alpha,n.BlendMode,n.ComputedSize,n.Crop,n.Depth,n.Flip,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Tint,n.Transform,n.Visible,l],initialize:function(t,e,i,r,n,h,l){var d=t.sys.renderer;o.call(this,t,"TileSprite");var p=t.sys.textures.get(h),f=p.get(l);f.source.compressionAlgorithm&&(console.warn("TileSprite cannot use compressed texture"),f=(p=t.sys.textures.get("__MISSING")).get()),"DynamicTexture"===p.type&&(console.warn("TileSprite cannot use Dynamic Texture"),f=(p=t.sys.textures.get("__MISSING")).get()),r&&n?(r=Math.floor(r),n=Math.floor(n)):(r=f.width,n=f.height),this._tilePosition=new c,this._tileScale=new c(1,1),this.dirty=!1,this.renderer=d,this.canvas=s.create(this,r,n),this.context=this.canvas.getContext("2d",{willReadFrequently:!1}),this.displayTexture=p,this.displayFrame=f,this._crop=this.resetCropObject(),this._textureKey=u(),this.texture=t.sys.textures.addCanvas(this._textureKey,this.canvas),this.frame=this.texture.get(),this.potWidth=a(f.width),this.potHeight=a(f.height),this.fillCanvas=s.create2D(this,this.potWidth,this.potHeight),this.fillContext=this.fillCanvas.getContext("2d",{willReadFrequently:!1}),this.fillPattern=null,this.setPosition(e,i),this.setSize(r,n),this.setFrame(l),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},setTexture:function(t,e){return this.displayTexture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t){var e=this.displayTexture.get(t);return this.potWidth=a(e.width),this.potHeight=a(e.height),this.canvas.width=0,e.cutWidth&&e.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this.displayFrame=e,this.dirty=!0,this.updateTileTexture(),this},setTilePosition:function(t,e){return void 0!==t&&(this.tilePositionX=t),void 0!==e&&(this.tilePositionY=e),this},setTileScale:function(t,e){return void 0===t&&(t=this.tileScaleX),void 0===e&&(e=t),this.tileScaleX=t,this.tileScaleY=e,this},updateTileTexture:function(){if(this.dirty&&this.renderer){var t=this.displayFrame;if(t.source.isRenderTexture||t.source.isGLTexture)return console.warn("TileSprites can only use Image or Canvas based textures"),void(this.dirty=!1);var e=this.fillContext,i=this.fillCanvas,s=this.potWidth,r=this.potHeight;this.renderer&&this.renderer.gl||(s=t.cutWidth,r=t.cutHeight),e.clearRect(0,0,s,r),i.width=s,i.height=r,e.drawImage(t.source.image,t.cutX,t.cutY,t.cutWidth,t.cutHeight,0,0,s,r),this.renderer&&this.renderer.gl?this.fillPattern=this.renderer.canvasToTexture(i,this.fillPattern):this.fillPattern=e.createPattern(i,"repeat"),this.updateCanvas(),this.dirty=!1}},updateCanvas:function(){var t=this.canvas;if(t.width===this.width&&t.height===this.height||(t.width=this.width,t.height=this.height,this.frame.setSize(this.width,this.height),this.updateDisplayOrigin(),this.dirty=!0),!this.dirty||this.renderer&&this.renderer.gl)this.dirty=!1;else{var e=this.context;this.scene.sys.game.config.antialias||h.disable(e);var i=this._tileScale.x,s=this._tileScale.y,r=this._tilePosition.x,n=this._tilePosition.y;e.clearRect(0,0,this.width,this.height),e.save(),e.scale(i,s),e.translate(-r,-n),e.fillStyle=this.fillPattern,e.fillRect(r,n,this.width/i,this.height/s),e.restore(),this.dirty=!1}},preDestroy:function(){this.renderer&&this.renderer.gl&&this.renderer.deleteTexture(this.fillPattern),s.remove(this.canvas),s.remove(this.fillCanvas),this.fillPattern=null,this.fillContext=null,this.fillCanvas=null,this.displayTexture=null,this.displayFrame=null;var t=this.texture;t&&t.destroy(),this.renderer=null},tilePositionX:{get:function(){return this._tilePosition.x},set:function(t){this._tilePosition.x=t,this.dirty=!0}},tilePositionY:{get:function(){return this._tilePosition.y},set:function(t){this._tilePosition.y=t,this.dirty=!0}},tileScaleX:{get:function(){return this._tileScale.x},set:function(t){this._tileScale.x=t,this.dirty=!0}},tileScaleY:{get:function(){return this._tileScale.y},set:function(t){this._tileScale.y=t,this.dirty=!0}}});t.exports=d},46992:t=>{t.exports=function(t,e,i,s){e.updateCanvas(),i.addToRenderList(e),t.batchSprite(e,e.frame,i,s)}},14167:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(20839);r.register("tileSprite",(function(t,e){void 0===t&&(t={});var i=n(t,"x",0),r=n(t,"y",0),a=n(t,"width",512),h=n(t,"height",512),l=n(t,"key",""),u=n(t,"frame",""),c=new o(this.scene,i,r,a,h,l,u);return void 0!==e&&(t.add=e),s(this.scene,c,t),c}))},91681:(t,e,i)=>{var s=i(20839);i(39429).register("tileSprite",(function(t,e,i,r,n,o){return this.displayList.add(new s(this.scene,t,e,i,r,n,o))}))},56295:(t,e,i)=>{var s,r;i(29747),s=i(18553),r=i(46992),t.exports={renderWebGL:s,renderCanvas:r}},18553:(t,e,i)=>{var s=i(70554);t.exports=function(t,e,i,r){e.updateCanvas();var n=e.width,o=e.height;if(0!==n&&0!==o){i.addToRenderList(e);var a=s.getTintAppendFloatAlpha,h=t.pipelines.set(e.pipeline,e),l=h.setTexture2D(e.fillPattern,e);h.batchTexture(e,e.fillPattern,e.displayFrame.width*e.tileScaleX,e.displayFrame.height*e.tileScaleY,e.x,e.y,n,o,e.scaleX,e.scaleY,e.rotation,e.flipX,e.flipY,e.scrollFactorX,e.scrollFactorY,e.originX*n,e.originY*o,0,0,n,o,a(e.tintTopLeft,i.alpha*e._alphaTL),a(e.tintTopRight,i.alpha*e._alphaTR),a(e.tintBottomLeft,i.alpha*e._alphaBL),a(e.tintBottomRight,i.alpha*e._alphaBR),e.tintFill,e.tilePositionX%e.displayFrame.width/e.displayFrame.width,e.tilePositionY%e.displayFrame.height/e.displayFrame.height,i,r,!1,l)}}},18471:(t,e,i)=>{var s=i(45319),r=i(83419),n=i(31401),o=i(51708),a=i(8443),h=i(95643),l=i(36383),u=i(14463),c=i(45650),d=i(10247),p=new r({Extends:h,Mixins:[n.Alpha,n.BlendMode,n.ComputedSize,n.Depth,n.Flip,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.TextureCrop,n.Tint,n.Transform,n.Visible,d],initialize:function(t,e,i,s){h.call(this,t,"Video"),this.video,this.videoTexture,this.videoTextureSource,this.snapshotTexture,this.flipY=!1,this._key=c(),this.touchLocked=!1,this.playWhenUnlocked=!1,this.frameReady=!1,this.isStalled=!1,this.failedPlayAttempts=0,this.metadata,this.retry=0,this.retryInterval=500,this._systemMuted=!1,this._codeMuted=!1,this._systemPaused=!1,this._codePaused=!1,this._callbacks={ended:this.completeHandler.bind(this),legacy:this.legacyPlayHandler.bind(this),playing:this.playingHandler.bind(this),seeked:this.seekedHandler.bind(this),seeking:this.seekingHandler.bind(this),stalled:this.stalledHandler.bind(this),suspend:this.stalledHandler.bind(this),waiting:this.stalledHandler.bind(this)},this._loadCallbackHandler=this.loadErrorHandler.bind(this),this._metadataCallbackHandler=this.metadataHandler.bind(this),this._crop=this.resetCropObject(),this.markers={},this._markerIn=0,this._markerOut=0,this._playingMarker=!1,this._lastUpdate=0,this.cacheKey="",this.isSeeking=!1,this._playCalled=!1,this._rfvCallbackId=0;var r=t.sys.game;this._device=r.device.video,this.setPosition(e,i),this.setSize(256,256),this.initPipeline(),this.initPostPipeline(!0),r.events.on(a.PAUSE,this.globalPause,this),r.events.on(a.RESUME,this.globalResume,this);var n=t.sys.sound;n&&n.on(u.GLOBAL_MUTE,this.globalMute,this),s&&this.load(s)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},load:function(t){var e=this.scene.sys.cache.video.get(t);return e?(this.cacheKey=t,this.loadHandler(e.url,e.noAudio,e.crossOrigin)):console.warn("No video in cache for key: "+t),this},changeSource:function(t,e,i,s,r){void 0===e&&(e=!0),void 0===i&&(i=!1),this.cacheKey!==t&&(this.load(t),e&&this.play(i,s,r))},getVideoKey:function(){return this.cacheKey},loadURL:function(t,e,i){void 0===e&&(e=!1);var s=this._device.getVideoURL(t);return s?(this.cacheKey="",this.loadHandler(s.url,e,i)):console.warn("No supported video format found for "+t),this},loadMediaStream:function(t,e,i){return this.loadHandler(null,e,i,t)},loadHandler:function(t,e,i,s){e||(e=!1);var r=this.video;if(r?(this.removeLoadEventHandlers(),this.stop()):((r=document.createElement("video")).controls=!1,r.setAttribute("playsinline","playsinline"),r.setAttribute("preload","auto"),r.setAttribute("disablePictureInPicture","true")),e?(r.muted=!0,r.defaultMuted=!0,r.setAttribute("autoplay","autoplay")):(r.muted=!1,r.defaultMuted=!1,r.removeAttribute("autoplay")),i?r.setAttribute("crossorigin",i):r.removeAttribute("crossorigin"),s)if("srcObject"in r)try{r.srcObject=s}catch(o){if("TypeError"!==o.name)throw o;r.src=URL.createObjectURL(s)}else r.src=URL.createObjectURL(s);else r.src=t;this.retry=0,this.video=r,this._playCalled=!1,r.load(),this.addLoadEventHandlers();var n=this.scene.sys.textures.get(this._key);return this.setTexture(n),this},requestVideoFrame:function(t,e){var i=this.video;if(i){var s=e.width,r=e.height,n=this.videoTexture,a=this.videoTextureSource,h=!n||a.source!==i;h?(this._codePaused=i.paused,this._codeMuted=i.muted,n?(a.source=i,a.width=s,a.height=r,n.get().setSize(s,r)):((n=this.scene.sys.textures.create(this._key,i,s,r)).add("__BASE",0,0,0,s,r),this.setTexture(n),this.videoTexture=n,this.videoTextureSource=n.source[0],this.videoTextureSource.setFlipY(this.flipY),this.emit(o.VIDEO_TEXTURE,this,n)),this.setSizeToFrame(),this.updateDisplayOrigin()):a.update(),this.isStalled=!1,this.metadata=e;var l=e.mediaTime;h&&(this._lastUpdate=l,this.emit(o.VIDEO_CREATED,this,s,r),this.frameReady||(this.frameReady=!0,this.emit(o.VIDEO_PLAY,this))),this._playingMarker?l>=this._markerOut&&(i.loop?(i.currentTime=this._markerIn,this.emit(o.VIDEO_LOOP,this)):(this.stop(!1),this.emit(o.VIDEO_COMPLETE,this))):l-1&&i>e&&i=0&&!isNaN(i)&&i>e&&(this.markers[t]=[e,i]),this},playMarker:function(t,e){var i=this.markers[t];return i&&this.play(e,i[0],i[1]),this},removeMarker:function(t){return delete this.markers[t],this},snapshot:function(t,e){return void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.snapshotArea(0,0,this.width,this.height,t,e)},snapshotArea:function(t,e,i,s,r,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===s&&(s=this.height),void 0===r&&(r=i),void 0===n&&(n=s);var o=this.video,a=this.snapshotTexture;return a?(a.setSize(r,n),o&&a.context.drawImage(o,t,e,i,s,0,0,r,n)):(a=this.scene.sys.textures.createCanvas(c(),r,n),this.snapshotTexture=a,o&&a.context.drawImage(o,t,e,i,s,0,0,r,n)),a.update()},saveSnapshotTexture:function(t){return this.snapshotTexture?this.scene.sys.textures.renameTexture(this.snapshotTexture.key,t):this.snapshotTexture=this.scene.sys.textures.createCanvas(t,this.width,this.height),this.snapshotTexture},playSuccess:function(){if(this._playCalled){this.addEventHandlers(),this._codePaused=!1,this.touchLocked&&(this.touchLocked=!1,this.emit(o.VIDEO_UNLOCKED,this));var t=this.scene.sys.sound;t&&t.mute&&this.setMute(!0),this._markerIn>-1&&(this.video.currentTime=this._markerIn)}},playError:function(t){var e=t.name;"NotAllowedError"===e?(this.touchLocked=!0,this.playWhenUnlocked=!0,this.failedPlayAttempts=1,this.emit(o.VIDEO_LOCKED,this)):"NotSupportedError"===e?(this.stop(!1),this.emit(o.VIDEO_UNSUPPORTED,this,t)):(this.stop(!1),this.emit(o.VIDEO_ERROR,this,t))},legacyPlayHandler:function(){var t=this.video;t&&(this.playSuccess(),t.removeEventListener("playing",this._callbacks.legacy))},playingHandler:function(){this.isStalled=!1,this.emit(o.VIDEO_PLAYING,this)},loadErrorHandler:function(t){this.stop(!1),this.emit(o.VIDEO_ERROR,this,t)},metadataHandler:function(t){this.emit(o.VIDEO_METADATA,this,t)},setSizeToFrame:function(t){t||(t=this.frame),this.width=t.realWidth,this.height=t.realHeight,1!==this.scaleX&&(this.scaleX=this.displayWidth/this.width),1!==this.scaleY&&(this.scaleY=this.displayHeight/this.height);var e=this.input;return e&&!e.customHitArea&&(e.hitArea.width=this.width,e.hitArea.height=this.height),this},stalledHandler:function(t){this.isStalled=!0,this.emit(o.VIDEO_STALLED,this,t)},completeHandler:function(){this._playCalled=!1,this.emit(o.VIDEO_COMPLETE,this)},preUpdate:function(t,e){this.video&&this._playCalled&&this.touchLocked&&this.playWhenUnlocked&&(this.retry+=e,this.retry>=this.retryInterval&&(this.createPlayPromise(!1),this.retry=0))},seekTo:function(t){var e=this.video;if(e){var i=e.duration;if(i!==1/0&&!isNaN(i)){var s=i*t;this.setCurrentTime(s)}}return this},getCurrentTime:function(){return this.video?this.video.currentTime:0},setCurrentTime:function(t){var e=this.video;if(e){if("string"==typeof t){var i=t[0],s=parseFloat(t.substr(1));"+"===i?t=e.currentTime+s:"-"===i&&(t=e.currentTime-s)}e.currentTime=t}return this},seekingHandler:function(){this.isSeeking=!0,this.emit(o.VIDEO_SEEKING,this)},seekedHandler:function(){this.isSeeking=!1,this.emit(o.VIDEO_SEEKED,this)},getProgress:function(){var t=this.video;if(t){var e=t.duration;if(e!==1/0&&!isNaN(e))return t.currentTime/e}return-1},getDuration:function(){return this.video?this.video.duration:0},setMute:function(t){void 0===t&&(t=!0),this._codeMuted=t;var e=this.video;return e&&(e.muted=!!this._systemMuted||t),this},isMuted:function(){return this._codeMuted},globalMute:function(t,e){this._systemMuted=e;var i=this.video;i&&(i.muted=!!this._codeMuted||e)},globalPause:function(){this._systemPaused=!0,this.video&&!this.video.ended&&(this.removeEventHandlers(),this.video.pause())},globalResume:function(){this._systemPaused=!1,!this.video||this._codePaused||this.video.ended||this.createPlayPromise()},setPaused:function(t){void 0===t&&(t=!0);var e=this.video;return this._codePaused=t,e&&!e.ended&&(t?e.paused||(this.removeEventHandlers(),e.pause()):t||(this._playCalled?e.paused&&!this._systemPaused&&this.createPlayPromise():this.play())),this},pause:function(){return this.setPaused(!0)},resume:function(){return this.setPaused(!1)},getVolume:function(){return this.video?this.video.volume:1},setVolume:function(t){return void 0===t&&(t=1),this.video&&(this.video.volume=s(t,0,1)),this},getPlaybackRate:function(){return this.video?this.video.playbackRate:1},setPlaybackRate:function(t){return this.video&&(this.video.playbackRate=t),this},getLoop:function(){return!!this.video&&this.video.loop},setLoop:function(t){return void 0===t&&(t=!0),this.video&&(this.video.loop=t),this},isPlaying:function(){return!!this.video&&!(this.video.paused||this.video.ended)},isPaused:function(){return this.video&&this._playCalled&&this.video.paused||this._codePaused||this._systemPaused},saveTexture:function(t,e){return void 0===e&&(e=!1),this.videoTexture&&(this.scene.sys.textures.renameTexture(this._key,t),this.videoTextureSource.setFlipY(e)),this._key=t,this.flipY=e,!!this.videoTexture},stop:function(t){void 0===t&&(t=!0);var e=this.video;return e&&(this.removeEventHandlers(),e.cancelVideoFrameCallback(this._rfvCallbackId),e.pause()),this.retry=0,this._playCalled=!1,t&&this.emit(o.VIDEO_STOP,this),this},removeVideoElement:function(){var t=this.video;if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("autoplay"),t.removeAttribute("src"),this.video=null}},preDestroy:function(){this.stop(!1),this.removeLoadEventHandlers(),this.removeVideoElement();var t=this.scene.sys.game.events;t.off(a.PAUSE,this.globalPause,this),t.off(a.RESUME,this.globalResume,this);var e=this.scene.sys.sound;e&&e.off(u.GLOBAL_MUTE,this.globalMute,this)}});t.exports=p},58352:t=>{t.exports=function(t,e,i,s){e.videoTexture&&(i.addToRenderList(e),t.batchSprite(e,e.frame,i,s))}},11511:(t,e,i)=>{var s=i(25305),r=i(44603),n=i(23568),o=i(18471);r.register("video",(function(t,e){void 0===t&&(t={});var i=n(t,"key",null),r=new o(this.scene,0,0,i);return void 0!==e&&(t.add=e),s(this.scene,r,t),r}))},89025:(t,e,i)=>{var s=i(18471);i(39429).register("video",(function(t,e,i){return this.displayList.add(new s(this.scene,t,e,i))}))},10247:(t,e,i)=>{var s,r;i(29747),s=i(29849),r=i(58352),t.exports={renderWebGL:s,renderCanvas:r}},29849:t=>{t.exports=function(t,e,i,s){e.videoTexture&&(i.addToRenderList(e),e.pipeline.batchSprite(e,i,s))}},41481:(t,e,i)=>{var s=i(10312),r=i(96503),n=i(87902),o=i(83419),a=i(31401),h=i(95643),l=i(87841),u=i(37303),c=new o({Extends:h,Mixins:[a.Depth,a.GetBounds,a.Origin,a.Transform,a.ScrollFactor,a.Visible],initialize:function(t,e,i,r,n){void 0===r&&(r=1),void 0===n&&(n=r),h.call(this,t,"Zone"),this.setPosition(e,i),this.width=r,this.height=n,this.blendMode=s.NORMAL,this.updateDisplayOrigin()},displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}},setSize:function(t,e,i){void 0===i&&(i=!0),this.width=t,this.height=e,this.updateDisplayOrigin();var s=this.input;return i&&s&&!s.customHitArea&&(s.hitArea.width=t,s.hitArea.height=e),this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this},setCircleDropZone:function(t){return this.setDropZone(new r(0,0,t),n)},setRectangleDropZone:function(t,e){return this.setDropZone(new l(0,0,t,e),u)},setDropZone:function(t,e){return this.input||this.setInteractive(t,e,!0),this},setAlpha:function(){},setBlendMode:function(){},renderCanvas:function(t,e,i){i.addToRenderList(e)},renderWebGL:function(t,e,i){i.addToRenderList(e)}});t.exports=c},95261:(t,e,i)=>{var s=i(44603),r=i(23568),n=i(41481);s.register("zone",(function(t){var e=r(t,"x",0),i=r(t,"y",0),s=r(t,"width",1),o=r(t,"height",s);return new n(this.scene,e,i,s,o)}))},84175:(t,e,i)=>{var s=i(41481);i(39429).register("zone",(function(t,e,i,r){return this.displayList.add(new s(this.scene,t,e,i,r))}))},95166:t=>{t.exports=function(t){return t.radius>0?Math.PI*t.radius*t.radius:0}},96503:(t,e,i)=>{var s=i(83419),r=i(87902),n=i(26241),o=i(79124),a=i(23777),h=i(28176),l=new s({initialize:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),this.type=a.CIRCLE,this.x=t,this.y=e,this._radius=i,this._diameter=2*i},contains:function(t,e){return r(this,t,e)},getPoint:function(t,e){return n(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,e,i){return this.x=t,this.y=e,this._radius=i,this._diameter=2*i,this},setEmpty:function(){return this._radius=0,this._diameter=0,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},isEmpty:function(){return this._radius<=0},radius:{get:function(){return this._radius},set:function(t){this._radius=t,this._diameter=2*t}},diameter:{get:function(){return this._diameter},set:function(t){this._diameter=t,this._radius=.5*t}},left:{get:function(){return this.x-this._radius},set:function(t){this.x=t+this._radius}},right:{get:function(){return this.x+this._radius},set:function(t){this.x=t-this._radius}},top:{get:function(){return this.y-this._radius},set:function(t){this.y=t+this._radius}},bottom:{get:function(){return this.y+this._radius},set:function(t){this.y=t-this._radius}}});t.exports=l},71562:t=>{t.exports=function(t){return Math.PI*t.radius*2}},92110:(t,e,i)=>{var s=i(2141);t.exports=function(t,e,i){return void 0===i&&(i=new s),i.x=t.x+t.radius*Math.cos(e),i.y=t.y+t.radius*Math.sin(e),i}},42250:(t,e,i)=>{var s=i(96503);t.exports=function(t){return new s(t.x,t.y,t.radius)}},87902:t=>{t.exports=function(t,e,i){return t.radius>0&&e>=t.left&&e<=t.right&&i>=t.top&&i<=t.bottom&&(t.x-e)*(t.x-e)+(t.y-i)*(t.y-i)<=t.radius*t.radius}},5698:(t,e,i)=>{var s=i(87902);t.exports=function(t,e){return s(t,e.x,e.y)}},70588:(t,e,i)=>{var s=i(87902);t.exports=function(t,e){return s(t,e.x,e.y)&&s(t,e.right,e.y)&&s(t,e.x,e.bottom)&&s(t,e.right,e.bottom)}},26394:t=>{t.exports=function(t,e){return e.setTo(t.x,t.y,t.radius)}},76278:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.radius===e.radius}},2074:(t,e,i)=>{var s=i(87841);t.exports=function(t,e){return void 0===e&&(e=new s),e.x=t.left,e.y=t.top,e.width=t.diameter,e.height=t.diameter,e}},26241:(t,e,i)=>{var s=i(92110),r=i(62945),n=i(36383),o=i(2141);t.exports=function(t,e,i){void 0===i&&(i=new o);var a=r(e,0,n.PI2);return s(t,a,i)}},79124:(t,e,i)=>{var s=i(71562),r=i(92110),n=i(62945),o=i(36383);t.exports=function(t,e,i,a){void 0===a&&(a=[]),!e&&i>0&&(e=s(t)/i);for(var h=0;h{t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},39212:t=>{t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},28176:(t,e,i)=>{var s=i(2141);t.exports=function(t,e){void 0===e&&(e=new s);var i=2*Math.PI*Math.random(),r=Math.random()+Math.random(),n=r>1?2-r:r,o=n*Math.cos(i),a=n*Math.sin(i);return e.x=t.x+o*t.radius,e.y=t.y+a*t.radius,e}},88911:(t,e,i)=>{var s=i(96503);s.Area=i(95166),s.Circumference=i(71562),s.CircumferencePoint=i(92110),s.Clone=i(42250),s.Contains=i(87902),s.ContainsPoint=i(5698),s.ContainsRect=i(70588),s.CopyFrom=i(26394),s.Equals=i(76278),s.GetBounds=i(2074),s.GetPoint=i(26241),s.GetPoints=i(79124),s.Offset=i(50884),s.OffsetPoint=i(39212),s.Random=i(28176),t.exports=s},23777:t=>{t.exports={CIRCLE:0,ELLIPSE:1,LINE:2,POINT:3,POLYGON:4,RECTANGLE:5,TRIANGLE:6}},78874:t=>{t.exports=function(t){return t.isEmpty()?0:t.getMajorRadius()*t.getMinorRadius()*Math.PI}},92990:t=>{t.exports=function(t){var e=t.width/2,i=t.height/2,s=Math.pow(e-i,2)/Math.pow(e+i,2);return Math.PI*(e+i)*(1+3*s/(10+Math.sqrt(4-3*s)))}},79522:(t,e,i)=>{var s=i(2141);t.exports=function(t,e,i){void 0===i&&(i=new s);var r=t.width/2,n=t.height/2;return i.x=t.x+r*Math.cos(e),i.y=t.y+n*Math.sin(e),i}},58102:(t,e,i)=>{var s=i(8497);t.exports=function(t){return new s(t.x,t.y,t.width,t.height)}},81154:t=>{t.exports=function(t,e,i){if(t.width<=0||t.height<=0)return!1;var s=(e-t.x)/t.width,r=(i-t.y)/t.height;return(s*=s)+(r*=r)<.25}},46662:(t,e,i)=>{var s=i(81154);t.exports=function(t,e){return s(t,e.x,e.y)}},1632:(t,e,i)=>{var s=i(81154);t.exports=function(t,e){return s(t,e.x,e.y)&&s(t,e.right,e.y)&&s(t,e.x,e.bottom)&&s(t,e.right,e.bottom)}},65534:t=>{t.exports=function(t,e){return e.setTo(t.x,t.y,t.width,t.height)}},8497:(t,e,i)=>{var s=i(83419),r=i(81154),n=i(90549),o=i(48320),a=i(23777),h=i(24820),l=new s({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),this.type=a.ELLIPSE,this.x=t,this.y=e,this.width=i,this.height=s},contains:function(t,e){return r(this,t,e)},getPoint:function(t,e){return n(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,e,i,s){return this.x=t,this.y=e,this.width=i,this.height=s,this},setEmpty:function(){return this.width=0,this.height=0,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},isEmpty:function(){return this.width<=0||this.height<=0},getMinorRadius:function(){return Math.min(this.width,this.height)/2},getMajorRadius:function(){return Math.max(this.width,this.height)/2},left:{get:function(){return this.x-this.width/2},set:function(t){this.x=t+this.width/2}},right:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},top:{get:function(){return this.y-this.height/2},set:function(t){this.y=t+this.height/2}},bottom:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=l},36146:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}},23694:(t,e,i)=>{var s=i(87841);t.exports=function(t,e){return void 0===e&&(e=new s),e.x=t.left,e.y=t.top,e.width=t.width,e.height=t.height,e}},90549:(t,e,i)=>{var s=i(79522),r=i(62945),n=i(36383),o=i(2141);t.exports=function(t,e,i){void 0===i&&(i=new o);var a=r(e,0,n.PI2);return s(t,a,i)}},48320:(t,e,i)=>{var s=i(92990),r=i(79522),n=i(62945),o=i(36383);t.exports=function(t,e,i,a){void 0===a&&(a=[]),!e&&i>0&&(e=s(t)/i);for(var h=0;h{t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},44808:t=>{t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},24820:(t,e,i)=>{var s=i(2141);t.exports=function(t,e){void 0===e&&(e=new s);var i=Math.random()*Math.PI*2,r=Math.sqrt(Math.random());return e.x=t.x+r*Math.cos(i)*t.width/2,e.y=t.y+r*Math.sin(i)*t.height/2,e}},49203:(t,e,i)=>{var s=i(8497);s.Area=i(78874),s.Circumference=i(92990),s.CircumferencePoint=i(79522),s.Clone=i(58102),s.Contains=i(81154),s.ContainsPoint=i(46662),s.ContainsRect=i(1632),s.CopyFrom=i(65534),s.Equals=i(36146),s.GetBounds=i(23694),s.GetPoint=i(90549),s.GetPoints=i(48320),s.Offset=i(73424),s.OffsetPoint=i(44808),s.Random=i(24820),t.exports=s},55738:(t,e,i)=>{var s=i(23777),r=i(79291),n={Circle:i(88911),Ellipse:i(49203),Intersects:i(91865),Line:i(2529),Mesh:i(73090),Point:i(43711),Polygon:i(58423),Rectangle:i(93232),Triangle:i(84435)};n=r(!1,n,s),t.exports=n},2044:(t,e,i)=>{var s=i(20339);t.exports=function(t,e){return s(t.x,t.y,e.x,e.y)<=t.radius+e.radius}},81491:t=>{t.exports=function(t,e){var i=e.width/2,s=e.height/2,r=Math.abs(t.x-e.x-i),n=Math.abs(t.y-e.y-s),o=i+t.radius,a=s+t.radius;if(r>o||n>a)return!1;if(r<=i||n<=s)return!0;var h=r-i,l=n-s;return h*h+l*l<=t.radius*t.radius}},63376:(t,e,i)=>{var s=i(2141),r=i(2044);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e)){var n,o,a,h,l=t.x,u=t.y,c=t.radius,d=e.x,p=e.y,f=e.radius;if(u===p)0==(a=(o=-2*p)*o-4*(n=1)*(d*d+(h=(f*f-c*c-d*d+l*l)/(2*(l-d)))*h-2*d*h+p*p-f*f))?i.push(new s(h,-o/(2*n))):a>0&&(i.push(new s(h,(-o+Math.sqrt(a))/(2*n))),i.push(new s(h,(-o-Math.sqrt(a))/(2*n))));else{var g=(l-d)/(u-p),m=(f*f-c*c-d*d+l*l-p*p+u*u)/(2*(u-p));0==(a=(o=2*u*g-2*m*g-2*l)*o-4*(n=g*g+1)*(l*l+u*u+m*m-c*c-2*u*m))?(h=-o/(2*n),i.push(new s(h,m-h*g))):a>0&&(h=(-o+Math.sqrt(a))/(2*n),i.push(new s(h,m-h*g)),h=(-o-Math.sqrt(a))/(2*n),i.push(new s(h,m-h*g)))}}return i}},97439:(t,e,i)=>{var s=i(4042),r=i(81491);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e)){var n=e.getLineA(),o=e.getLineB(),a=e.getLineC(),h=e.getLineD();s(n,t,i),s(o,t,i),s(a,t,i),s(h,t,i)}return i}},4042:(t,e,i)=>{var s=i(2141),r=i(80462);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e)){var n,o,a=t.x1,h=t.y1,l=t.x2,u=t.y2,c=e.x,d=e.y,p=e.radius,f=l-a,g=u-h,m=a-c,v=h-d,y=f*f+g*g,x=2*(f*m+g*v),w=x*x-4*y*(m*m+v*v-p*p);if(0===w){var T=-x/(2*y);n=a+T*f,o=h+T*g,T>=0&&T<=1&&i.push(new s(n,o))}else if(w>0){var b=(-x-Math.sqrt(w))/(2*y);n=a+b*f,o=h+b*g,b>=0&&b<=1&&i.push(new s(n,o));var S=(-x+Math.sqrt(w))/(2*y);n=a+S*f,o=h+S*g,S>=0&&S<=1&&i.push(new s(n,o))}}return i}},36100:(t,e,i)=>{var s=i(25836);t.exports=function(t,e,i,r){void 0===i&&(i=!1);var n,o,a,h=t.x1,l=t.y1,u=t.x2,c=t.y2,d=e.x1,p=e.y1,f=u-h,g=c-l,m=e.x2-d,v=e.y2-p,y=f*v-g*m;if(0===y)return null;if(i){if((o=(d+m*(n=(f*(p-l)+g*(h-d))/(m*g-v*f))-h)/f)<0||n<0||n>1)return null;a=o}else{if(o=((l-p)*f-(h-d)*g)/y,(n=((d-h)*v-(p-l)*m)/y)<0||n>1||o<0||o>1)return null;a=n}return void 0===r&&(r=new s),r.set(h+f*a,l+g*a,a)}},3073:(t,e,i)=>{var s=i(36100),r=i(23031),n=i(25836),o=new r,a=new n;t.exports=function(t,e,i,r){void 0===i&&(i=!1),void 0===r&&(r=new n);var h=!1;r.set(),a.set();for(var l=e[e.length-1],u=0;u{var s=i(25836),r=i(61369),n=i(3073),o=new s;t.exports=function(t,e,i,s){void 0===s&&(s=new r),Array.isArray(e)||(e=[e]);var a=!1;s.set(),o.set();for(var h=0;h{var s=i(2141),r=i(76112),n=i(92773);t.exports=function(t,e,i){if(void 0===i&&(i=[]),n(t,e))for(var o=e.getLineA(),a=e.getLineB(),h=e.getLineC(),l=e.getLineD(),u=[new s,new s,new s,new s],c=[r(o,t,u[0]),r(a,t,u[1]),r(h,t,u[2]),r(l,t,u[3])],d=0;d<4;d++)c[d]&&i.push(u[d]);return i}},71147:(t,e,i)=>{var s=i(61369),r=i(56362),n=new(i(23031));function o(t,e,i,o,a){var h=Math.cos(t),l=Math.sin(t);n.setTo(e,i,e+h,i+l);var u=r(n,o,!0);u&&a.push(new s(u.x,u.y,t,u.w))}function a(t,e){return t.z-e.z}t.exports=function(t,e,i){Array.isArray(i)||(i=[i]);for(var s=[],r=[],n=0;n{var s=i(87841),r=i(59996);t.exports=function(t,e,i){return void 0===i&&(i=new s),r(t,e)&&(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y),i}},52784:(t,e,i)=>{var s=i(60646),r=i(59996);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e)){var n=t.getLineA(),o=t.getLineB(),a=t.getLineC(),h=t.getLineD();s(n,e,i),s(o,e,i),s(a,e,i),s(h,e,i)}return i}},26341:(t,e,i)=>{var s=i(89265),r=i(60646);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var n=e.getLineA(),o=e.getLineB(),a=e.getLineC();r(n,t,i),r(o,t,i),r(a,t,i)}return i}},38720:(t,e,i)=>{var s=i(4042),r=i(67636);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e)){var n=t.getLineA(),o=t.getLineB(),a=t.getLineC();s(n,e,i),s(o,e,i),s(a,e,i)}return i}},13882:(t,e,i)=>{var s=i(2141),r=i(2822),n=i(76112);t.exports=function(t,e,i){if(void 0===i&&(i=[]),r(t,e))for(var o=t.getLineA(),a=t.getLineB(),h=t.getLineC(),l=[new s,new s,new s],u=[n(o,e,l[0]),n(a,e,l[1]),n(h,e,l[2])],c=0;c<3;c++)u[c]&&i.push(l[c]);return i}},75636:(t,e,i)=>{var s=i(82944),r=i(13882);t.exports=function(t,e,i){if(void 0===i&&(i=[]),s(t,e)){var n=e.getLineA(),o=e.getLineB(),a=e.getLineC();r(t,n,i),r(t,o,i),r(t,a,i)}return i}},80462:(t,e,i)=>{var s=i(87902),r=new(i(2141));t.exports=function(t,e,i){if(void 0===i&&(i=r),s(e,t.x1,t.y1))return i.x=t.x1,i.y=t.y1,!0;if(s(e,t.x2,t.y2))return i.x=t.x2,i.y=t.y2,!0;var n=t.x2-t.x1,o=t.y2-t.y1,a=e.x-t.x1,h=e.y-t.y1,l=n*n+o*o,u=n,c=o;if(l>0){var d=(a*n+h*o)/l;u*=d,c*=d}return i.x=t.x1+u,i.y=t.y1+c,u*u+c*c<=l&&u*n+c*o>=0&&s(e,i.x,i.y)}},76112:t=>{t.exports=function(t,e,i){var s=t.x1,r=t.y1,n=t.x2,o=t.y2,a=e.x1,h=e.y1,l=e.x2,u=e.y2;if(s===n&&r===o||a===l&&h===u)return!1;var c=(u-h)*(n-s)-(l-a)*(o-r);if(0===c)return!1;var d=((l-a)*(r-h)-(u-h)*(s-a))/c,p=((n-s)*(r-h)-(o-r)*(s-a))/c;return!(d<0||d>1||p<0||p>1||(i&&(i.x=s+d*(n-s),i.y=r+d*(o-r)),0))}},92773:t=>{t.exports=function(t,e){var i=t.x1,s=t.y1,r=t.x2,n=t.y2,o=e.x,a=e.y,h=e.right,l=e.bottom,u=0;if(i>=o&&i<=h&&s>=a&&s<=l||r>=o&&r<=h&&n>=a&&n<=l)return!0;if(i=o){if((u=s+(n-s)*(o-i)/(r-i))>a&&u<=l)return!0}else if(i>h&&r<=h&&(u=s+(n-s)*(h-i)/(r-i))>=a&&u<=l)return!0;if(s=a){if((u=i+(r-i)*(a-s)/(n-s))>=o&&u<=h)return!0}else if(s>l&&n<=l&&(u=i+(r-i)*(l-s)/(n-s))>=o&&u<=h)return!0;return!1}},16204:t=>{t.exports=function(t,e,i){void 0===i&&(i=1);var s=e.x1,r=e.y1,n=e.x2,o=e.y2,a=t.x,h=t.y,l=(n-s)*(n-s)+(o-r)*(o-r);if(0===l)return!1;var u=((a-s)*(n-s)+(h-r)*(o-r))/l;if(u<0)return Math.sqrt((s-a)*(s-a)+(r-h)*(r-h))<=i;if(u>=0&&u<=1){var c=((r-h)*(n-s)-(s-a)*(o-r))/l;return Math.abs(c)*Math.sqrt(l)<=i}return Math.sqrt((n-a)*(n-a)+(o-h)*(o-h))<=i}},14199:(t,e,i)=>{var s=i(16204);t.exports=function(t,e){if(!s(t,e))return!1;var i=Math.min(e.x1,e.x2),r=Math.max(e.x1,e.x2),n=Math.min(e.y1,e.y2),o=Math.max(e.y1,e.y2);return t.x>=i&&t.x<=r&&t.y>=n&&t.y<=o}},59996:t=>{t.exports=function(t,e){return!(t.width<=0||t.height<=0||e.width<=0||e.height<=0||t.righte.right||t.y>e.bottom)}},89265:(t,e,i)=>{var s=i(76112),r=i(37303),n=i(48653),o=i(77493);t.exports=function(t,e){if(e.left>t.right||e.rightt.bottom||e.bottom0}},84411:t=>{t.exports=function(t,e,i,s,r,n){return void 0===n&&(n=0),!(e>t.right+n||it.bottom+n||r{var s=i(80462),r=i(10690);t.exports=function(t,e){return!(t.left>e.right||t.righte.bottom||t.bottom{var s=i(76112);t.exports=function(t,e){return!!(t.contains(e.x1,e.y1)||t.contains(e.x2,e.y2)||s(t.getLineA(),e)||s(t.getLineB(),e)||s(t.getLineC(),e))}},82944:(t,e,i)=>{var s=i(48653),r=i(71694),n=i(76112);t.exports=function(t,e){if(t.left>e.right||t.righte.bottom||t.bottom0||(c=r(e),(d=s(t,c,!0)).length>0)}},91865:(t,e,i)=>{t.exports={CircleToCircle:i(2044),CircleToRectangle:i(81491),GetCircleToCircle:i(63376),GetCircleToRectangle:i(97439),GetLineToCircle:i(4042),GetLineToLine:i(36100),GetLineToPoints:i(3073),GetLineToPolygon:i(56362),GetLineToRectangle:i(60646),GetRaysFromPointToPolygon:i(71147),GetRectangleIntersection:i(68389),GetRectangleToRectangle:i(52784),GetRectangleToTriangle:i(26341),GetTriangleToCircle:i(38720),GetTriangleToLine:i(13882),GetTriangleToTriangle:i(75636),LineToCircle:i(80462),LineToLine:i(76112),LineToRectangle:i(92773),PointToLine:i(16204),PointToLineSegment:i(14199),RectangleToRectangle:i(59996),RectangleToTriangle:i(89265),RectangleToValues:i(84411),TriangleToCircle:i(67636),TriangleToLine:i(2822),TriangleToTriangle:i(82944)}},91938:t=>{t.exports=function(t){return Math.atan2(t.y2-t.y1,t.x2-t.x1)}},84993:t=>{t.exports=function(t,e,i){void 0===e&&(e=1),void 0===i&&(i=[]);var s=Math.round(t.x1),r=Math.round(t.y1),n=Math.round(t.x2),o=Math.round(t.y2),a=Math.abs(n-s),h=Math.abs(o-r),l=s-h&&(c-=h,s+=l),p{t.exports=function(t,e,i){var s=e-(t.x1+t.x2)/2,r=i-(t.y1+t.y2)/2;return t.x1+=s,t.y1+=r,t.x2+=s,t.y2+=r,t}},31116:(t,e,i)=>{var s=i(23031);t.exports=function(t){return new s(t.x1,t.y1,t.x2,t.y2)}},59944:t=>{t.exports=function(t,e){return e.setTo(t.x1,t.y1,t.x2,t.y2)}},59220:t=>{t.exports=function(t,e){return t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2}},78177:(t,e,i)=>{var s=i(35001);t.exports=function(t,e,i){void 0===i&&(i=e);var r=s(t),n=t.x2-t.x1,o=t.y2-t.y1;return e&&(t.x1=t.x1-n/r*e,t.y1=t.y1-o/r*e),i&&(t.x2=t.x2+n/r*i,t.y2=t.y2+o/r*i),t}},26708:(t,e,i)=>{var s=i(52816),r=i(6113),n=i(2141);t.exports=function(t,e,i,o,a){void 0===o&&(o=0),void 0===a&&(a=[]);var h,l,u=[],c=t.x1,d=t.y1,p=t.x2-c,f=t.y2-d,g=r(e,a),m=i-1;for(h=0;h0){var v=u[0],y=[v];for(h=1;h=o&&(y.push(x),v=x)}var w=u[u.length-1];return s(v,w){var s=i(2141);t.exports=function(t,e){return void 0===e&&(e=new s),e.x=(t.x1+t.x2)/2,e.y=(t.y1+t.y2)/2,e}},99569:(t,e,i)=>{var s=i(2141);t.exports=function(t,e,i){void 0===i&&(i=new s);var r=t.x1,n=t.y1,o=t.x2,a=t.y2,h=(o-r)*(o-r)+(a-n)*(a-n);if(0===h)return i;var l=((e.x-r)*(o-r)+(e.y-n)*(a-n))/h;return i.x=r+l*(o-r),i.y=n+l*(a-n),i}},34638:(t,e,i)=>{var s=i(36383),r=i(91938),n=i(2141);t.exports=function(t,e){void 0===e&&(e=new n);var i=r(t)-s.TAU;return e.x=Math.cos(i),e.y=Math.sin(i),e}},13151:(t,e,i)=>{var s=i(2141);t.exports=function(t,e,i){return void 0===i&&(i=new s),i.x=t.x1+(t.x2-t.x1)*e,i.y=t.y1+(t.y2-t.y1)*e,i}},15258:(t,e,i)=>{var s=i(35001),r=i(2141);t.exports=function(t,e,i,n){void 0===n&&(n=[]),!e&&i>0&&(e=s(t)/i);for(var o=t.x1,a=t.y1,h=t.x2,l=t.y2,u=0;u{t.exports=function(t,e){var i=t.x1,s=t.y1,r=t.x2,n=t.y2,o=(r-i)*(r-i)+(n-s)*(n-s);if(0===o)return!1;var a=((s-e.y)*(r-i)-(i-e.x)*(n-s))/o;return Math.abs(a)*Math.sqrt(o)}},98770:t=>{t.exports=function(t){return Math.abs(t.y1-t.y2)}},35001:t=>{t.exports=function(t){return Math.sqrt((t.x2-t.x1)*(t.x2-t.x1)+(t.y2-t.y1)*(t.y2-t.y1))}},23031:(t,e,i)=>{var s=i(83419),r=i(13151),n=i(15258),o=i(23777),a=i(65822),h=i(26099),l=new s({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),this.type=o.LINE,this.x1=t,this.y1=e,this.x2=i,this.y2=s},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return n(this,t,e,i)},getRandomPoint:function(t){return a(this,t)},setTo:function(t,e,i,s){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),this.x1=t,this.y1=e,this.x2=i,this.y2=s,this},setFromObjects:function(t,e){return this.x1=t.x,this.y1=t.y,this.x2=e.x,this.y2=e.y,this},getPointA:function(t){return void 0===t&&(t=new h),t.set(this.x1,this.y1),t},getPointB:function(t){return void 0===t&&(t=new h),t.set(this.x2,this.y2),t},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(t){this.x1<=this.x2?this.x1=t:this.x2=t}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(t){this.x1>this.x2?this.x1=t:this.x2=t}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(t){this.y1<=this.y2?this.y1=t:this.y2=t}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(t){this.y1>this.y2?this.y1=t:this.y2=t}}});t.exports=l},64795:(t,e,i)=>{var s=i(36383),r=i(15994),n=i(91938);t.exports=function(t){var e=n(t)-s.TAU;return r(e,-Math.PI,Math.PI)}},52616:(t,e,i)=>{var s=i(36383),r=i(91938);t.exports=function(t){return Math.cos(r(t)-s.TAU)}},87231:(t,e,i)=>{var s=i(36383),r=i(91938);t.exports=function(t){return Math.sin(r(t)-s.TAU)}},89662:t=>{t.exports=function(t,e,i){return t.x1+=e,t.y1+=i,t.x2+=e,t.y2+=i,t}},71165:t=>{t.exports=function(t){return-(t.x2-t.x1)/(t.y2-t.y1)}},65822:(t,e,i)=>{var s=i(2141);t.exports=function(t,e){void 0===e&&(e=new s);var i=Math.random();return e.x=t.x1+i*(t.x2-t.x1),e.y=t.y1+i*(t.y2-t.y1),e}},69777:(t,e,i)=>{var s=i(91938),r=i(64795);t.exports=function(t,e){return 2*r(e)-Math.PI-s(t)}},39706:(t,e,i)=>{var s=i(64400);t.exports=function(t,e){var i=(t.x1+t.x2)/2,r=(t.y1+t.y2)/2;return s(t,i,r,e)}},82585:(t,e,i)=>{var s=i(64400);t.exports=function(t,e,i){return s(t,e.x,e.y,i)}},64400:t=>{t.exports=function(t,e,i,s){var r=Math.cos(s),n=Math.sin(s),o=t.x1-e,a=t.y1-i;return t.x1=o*r-a*n+e,t.y1=o*n+a*r+i,o=t.x2-e,a=t.y2-i,t.x2=o*r-a*n+e,t.y2=o*n+a*r+i,t}},62377:t=>{t.exports=function(t,e,i,s,r){return t.x1=e,t.y1=i,t.x2=e+Math.cos(s)*r,t.y2=i+Math.sin(s)*r,t}},71366:t=>{t.exports=function(t){return(t.y2-t.y1)/(t.x2-t.x1)}},10809:t=>{t.exports=function(t){return Math.abs(t.x1-t.x2)}},2529:(t,e,i)=>{var s=i(23031);s.Angle=i(91938),s.BresenhamPoints=i(84993),s.CenterOn=i(36469),s.Clone=i(31116),s.CopyFrom=i(59944),s.Equals=i(59220),s.Extend=i(78177),s.GetEasedPoints=i(26708),s.GetMidPoint=i(32125),s.GetNearestPoint=i(99569),s.GetNormal=i(34638),s.GetPoint=i(13151),s.GetPoints=i(15258),s.GetShortestDistance=i(26408),s.Height=i(98770),s.Length=i(35001),s.NormalAngle=i(64795),s.NormalX=i(52616),s.NormalY=i(87231),s.Offset=i(89662),s.PerpSlope=i(71165),s.Random=i(65822),s.ReflectAngle=i(69777),s.Rotate=i(39706),s.RotateAroundPoint=i(82585),s.RotateAroundXY=i(64400),s.SetToAngle=i(62377),s.Slope=i(71366),s.Width=i(10809),t.exports=s},83997:(t,e,i)=>{var s=i(83419),r=i(87841),n=i(26099);function o(t,e,i,s){var r=t-i,n=e-s,o=r*r+n*n;return Math.sqrt(o)}var a=new s({initialize:function(t,e,i){this.vertex1=t,this.vertex2=e,this.vertex3=i,this.bounds=new r,this._inCenter=new n},getInCenter:function(t){void 0===t&&(t=!0);var e,i,s,r,n,a,h=this.vertex1,l=this.vertex2,u=this.vertex3;t?(e=h.x,i=h.y,s=l.x,r=l.y,n=u.x,a=u.y):(e=h.vx,i=h.vy,s=l.vx,r=l.vy,n=u.vx,a=u.vy);var c=o(n,a,s,r),d=o(e,i,n,a),p=o(s,r,e,i),f=c+d+p;return this._inCenter.set((e*c+s*d+n*p)/f,(i*c+r*d+a*p)/f)},contains:function(t,e,i){var s=this.vertex1,r=this.vertex2,n=this.vertex3,o=s.vx,a=s.vy,h=r.vx,l=r.vy,u=n.vx,c=n.vy;if(i){var d=i.a,p=i.b,f=i.c,g=i.d,m=i.e,v=i.f;o=s.vx*d+s.vy*f+m,a=s.vx*p+s.vy*g+v,h=r.vx*d+r.vy*f+m,l=r.vx*p+r.vy*g+v,u=n.vx*d+n.vy*f+m,c=n.vx*p+n.vy*g+v}var y=u-o,x=c-a,w=h-o,T=l-a,b=t-o,S=e-a,E=y*y+x*x,C=y*w+x*T,A=y*b+x*S,_=w*w+T*T,P=w*b+T*S,R=E*_-C*C,M=0===R?0:1/R,k=(_*A-C*P)*M,L=(E*P-C*A)*M;return k>=0&&L>=0&&k+L<1},isCounterClockwise:function(t){var e=this.vertex1,i=this.vertex2,s=this.vertex3,r=(i.vx-e.vx)*(s.vy-e.vy)-(i.vy-e.vy)*(s.vx-e.vx);return t<=0?r>=0:r<0},load:function(t,e,i,s,r){return i=this.vertex1.load(t,e,i,s,r),i=this.vertex2.load(t,e,i,s,r),i=this.vertex3.load(t,e,i,s,r)},transformCoordinatesLocal:function(t,e,i,s){return this.vertex1.transformCoordinatesLocal(t,e,i,s),this.vertex2.transformCoordinatesLocal(t,e,i,s),this.vertex3.transformCoordinatesLocal(t,e,i,s),this},updateBounds:function(){var t=this.vertex1,e=this.vertex2,i=this.vertex3,s=this.bounds;return s.x=Math.min(t.vx,e.vx,i.vx),s.y=Math.min(t.vy,e.vy,i.vy),s.width=Math.max(t.vx,e.vx,i.vx)-s.x,s.height=Math.max(t.vy,e.vy,i.vy)-s.y,this},isInView:function(t,e,i,s,r,n,o,a,h,l,u){this.update(s,r,n,o,a,h,l,u);var c=this.vertex1,d=this.vertex2,p=this.vertex3;if(c.ta<=0&&d.ta<=0&&p.ta<=0)return!1;if(e&&!this.isCounterClockwise(i))return!1;var f=this.bounds;f.x=Math.min(c.tx,d.tx,p.tx),f.y=Math.min(c.ty,d.ty,p.ty),f.width=Math.max(c.tx,d.tx,p.tx)-f.x,f.height=Math.max(c.ty,d.ty,p.ty)-f.y;var g=t.x+t.width,m=t.y+t.height;return!(f.width<=0||f.height<=0||t.width<=0||t.height<=0||f.rightg||f.y>m)},scrollUV:function(t,e){return this.vertex1.scrollUV(t,e),this.vertex2.scrollUV(t,e),this.vertex3.scrollUV(t,e),this},scaleUV:function(t,e){return this.vertex1.scaleUV(t,e),this.vertex2.scaleUV(t,e),this.vertex3.scaleUV(t,e),this},setColor:function(t){return this.vertex1.color=t,this.vertex2.color=t,this.vertex3.color=t,this},update:function(t,e,i,s,r,n,o,a){return this.vertex1.update(e,i,s,r,n,o,a,t),this.vertex2.update(e,i,s,r,n,o,a,t),this.vertex3.update(e,i,s,r,n,o,a,t),this},translate:function(t,e){void 0===e&&(e=0);var i=this.vertex1,s=this.vertex2,r=this.vertex3;return i.x+=t,i.y+=e,s.x+=t,s.y+=e,r.x+=t,r.y+=e,this},x:{get:function(){return this.getInCenter().x},set:function(t){var e=this.getInCenter();this.translate(t-e.x,0)}},y:{get:function(){return this.getInCenter().y},set:function(t){var e=this.getInCenter();this.translate(0,t-e.y)}},alpha:{get:function(){var t=this.vertex1,e=this.vertex2,i=this.vertex3;return(t.alpha+e.alpha+i.alpha)/3},set:function(t){this.vertex1.alpha=t,this.vertex2.alpha=t,this.vertex3.alpha=t}},depth:{get:function(){var t=this.vertex1,e=this.vertex2,i=this.vertex3;return(t.vz+e.vz+i.vz)/3}},destroy:function(){this.vertex1=null,this.vertex2=null,this.vertex3=null}});t.exports=a},48803:(t,e,i)=>{var s=i(83997),r=i(95540),n=i(37867),o=i(25836),a=i(39318),h=new o,l=new o,u=new n;t.exports=function(t){var e,i=r(t,"mesh"),n=r(t,"texture",null),o=r(t,"frame"),c=r(t,"width",1),d=r(t,"height",c),p=r(t,"widthSegments",1),f=r(t,"heightSegments",p),g=r(t,"x",0),m=r(t,"y",0),v=r(t,"z",0),y=r(t,"rotateX",0),x=r(t,"rotateY",0),w=r(t,"rotateZ",0),T=r(t,"zIsUp",!0),b=r(t,"isOrtho",!!i&&i.dirtyCache[11]),S=r(t,"colors",[16777215]),E=r(t,"alphas",[1]),C=r(t,"tile",!1),A=r(t,"flipY",!1),_=r(t,"width",null),P={faces:[],verts:[]};if(h.set(g,m,v),l.set(y,x,w),u.fromRotationXYTranslation(l,h,T),!n&&i)n=i.texture,o||(e=i.frame);else if(i&&"string"==typeof n)n=i.scene.sys.textures.get(n);else if(!n)return P;e||(e=n.get(o)),!_&&b&&n&&i&&(c=e.width/i.height,d=e.height/i.height);var R,M,k=c/2,L=d/2,O=Math.floor(p),F=Math.floor(f),D=O+1,I=F+1,B=c/O,N=d/F,U=[],Y=[],z=0,X=1,G=0,W=1;e&&(z=e.u0,X=e.u1,A?(G=e.v1,W=e.v0):(G=e.v0,W=e.v1));var V=X-z,H=W-G;for(M=0;M{var s=i(83997),r=i(37867),n=i(25836),o=i(39318),a=new n,h=new n,l=new r;t.exports=function(t,e,i,r,n,u,c,d,p,f){void 0===i&&(i=1),void 0===r&&(r=0),void 0===n&&(n=0),void 0===u&&(u=0),void 0===c&&(c=0),void 0===d&&(d=0),void 0===p&&(p=0),void 0===f&&(f=!0);var g={faces:[],verts:[]},m=t.materials;a.set(r,n,u),h.set(c,d,p),l.fromRotationXYTranslation(h,a,f);for(var v=0;v{var s=i(83997),r=i(39318);t.exports=function(t,e,i,n,o,a,h,l){if(void 0===n&&(n=!1),void 0===a&&(a=16777215),void 0===h&&(h=1),void 0===l&&(l=!1),t.length===e.length||n){var u,c,d,p,f,g,m,v,y,x,w,T={faces:[],vertices:[]},b=n?3:2,S=Array.isArray(a),E=Array.isArray(h);if(Array.isArray(i)&&i.length>0)for(u=0;u{var e=!0,i="untitled",s="",r="";function n(t){var e=t.indexOf("#");return e>-1?t.substring(0,e):t}function o(t){return 0===t.models.length&&t.models.push({faces:[],name:i,textureCoords:[],vertexNormals:[],vertices:[]}),s="",t.models[t.models.length-1]}function a(t,e){var r=t.length>=2?t[1]:i;e.models.push({faces:[],name:r,textureCoords:[],vertexNormals:[],vertices:[]}),s=""}function h(t){2===t.length&&(s=t[1])}function l(t,e){var i=t.length,s=i>=2?parseFloat(t[1]):0,r=i>=3?parseFloat(t[2]):0,n=i>=4?parseFloat(t[3]):0;o(e).vertices.push({x:s,y:r,z:n})}function u(t,i){var s=t.length,r=s>=2?parseFloat(t[1]):0,n=s>=3?parseFloat(t[2]):0,a=s>=4?parseFloat(t[3]):0;isNaN(r)&&(r=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),e&&(n=1-n),o(i).textureCoords.push({u:r,v:n,w:a})}function c(t,e){var i=t.length,s=i>=2?parseFloat(t[1]):0,r=i>=3?parseFloat(t[2]):0,n=i>=4?parseFloat(t[3]):0;o(e).vertexNormals.push({x:s,y:r,z:n})}function d(t,e){var i=t.length-1;if(!(i<3)){for(var n={group:s,material:r,vertices:[]},a=0;a3)){var u=0,c=0,d=0;u=parseInt(h[0],10),l>1&&""!==h[1]&&(c=parseInt(h[1],10)),l>2&&(d=parseInt(h[2],10)),0!==u&&(u<0&&(u=o(e).vertices.length+1+u),c-=1,u-=1,d-=1,n.vertices.push({textureCoordsIndex:c,vertexIndex:u,vertexNormalIndex:d}))}}o(e).faces.push(n)}}function p(t,e){t.length>=2&&e.materialLibraries.push(t[1])}function f(t){t.length>=2&&(r=t[1])}t.exports=function(t,i){void 0===i&&(i=!0),e=i;var o={materials:{},materialLibraries:[],models:[]};s="",r="";for(var g=t.split("\n"),m=0;m{var s=i(37589);t.exports=function(t){for(var e={},i=t.split("\n"),r="",n=0;n=2?Math.floor(255*a[2]):h,u=a.length>=3?Math.floor(255*a[3]):h;e[r]=s(h,l,u)}}}return e}},92570:t=>{t.exports=function(t,e,i,s){var r,n;if(void 0===i&&void 0===s){var o=t.getInCenter();r=o.x,n=o.y}var a=Math.cos(e),h=Math.sin(e),l=t.vertex1,u=t.vertex2,c=t.vertex3,d=l.x-r,p=l.y-n;l.set(d*a-p*h+r,d*h+p*a+n),d=u.x-r,p=u.y-n,u.set(d*a-p*h+r,d*h+p*a+n),d=c.x-r,p=c.y-n,c.set(d*a-p*h+r,d*h+p*a+n)}},39318:(t,e,i)=>{var s=i(83419),r=i(70554),n=i(25836),o=new s({Extends:n,initialize:function(t,e,i,s,r,o,a,h,l,u){void 0===o&&(o=16777215),void 0===a&&(a=1),void 0===h&&(h=0),void 0===l&&(l=0),void 0===u&&(u=0),n.call(this,t,e,i),this.vx=0,this.vy=0,this.vz=0,this.nx=h,this.ny=l,this.nz=u,this.u=s,this.v=r,this.color=o,this.alpha=a,this.tx=0,this.ty=0,this.ta=0,this.tu=s,this.tv=r},setUVs:function(t,e){return this.u=t,this.v=e,this.tu=t,this.tv=e,this},scrollUV:function(t,e){return this.tu+=t,this.tv+=e,this},scaleUV:function(t,e){return this.tu=this.u*t,this.tv=this.v*e,this},transformCoordinatesLocal:function(t,e,i,s){var r=this.x,n=this.y,o=this.z,a=t.val,h=r*a[0]+n*a[4]+o*a[8]+a[12],l=r*a[1]+n*a[5]+o*a[9]+a[13],u=r*a[2]+n*a[6]+o*a[10]+a[14],c=r*a[3]+n*a[7]+o*a[11]+a[15];this.vx=h/c*e,this.vy=-l/c*i,this.vz=s<=0?u/c:-u/c},resize:function(t,e,i,s,r,n){return this.x=t,this.y=e,this.vx=this.x*i,this.vy=-this.y*s,this.vz=0,r<.5?this.vx+=i*(.5-r):r>.5&&(this.vx-=i*(r-.5)),n<.5?this.vy+=s*(.5-n):n>.5&&(this.vy-=s*(n-.5)),this},update:function(t,e,i,s,r,n,o,a){var h=this.vx*t+this.vy*i+r,l=this.vx*e+this.vy*s+n;return o&&(h=Math.round(h),l=Math.round(l)),this.tx=h,this.ty=l,this.ta=this.alpha*a,this},load:function(t,e,i,s,n){return t[++i]=this.tx,t[++i]=this.ty,t[++i]=this.tu,t[++i]=this.tv,t[++i]=s,t[++i]=n,e[++i]=r.getTintAppendFloatAlpha(this.color,this.ta),i}});t.exports=o},73090:(t,e,i)=>{var s={Face:i(83997),GenerateGridVerts:i(48803),GenerateObjVerts:i(34684),GenerateVerts:i(92515),ParseObj:i(85048),ParseObjMaterial:i(61485),RotateFace:i(92570),Vertex:i(39318)};t.exports=s},96550:t=>{t.exports=function(t){return t.setTo(Math.ceil(t.x),Math.ceil(t.y))}},99706:(t,e,i)=>{var s=i(2141);t.exports=function(t){return new s(t.x,t.y)}},68010:t=>{t.exports=function(t,e){return e.setTo(t.x,t.y)}},27814:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y}},73565:t=>{t.exports=function(t){return t.setTo(Math.floor(t.x),Math.floor(t.y))}},87555:(t,e,i)=>{var s=i(2141);t.exports=function(t,e){if(void 0===e&&(e=new s),!Array.isArray(t))throw new Error("GetCentroid points argument must be an array");var i=t.length;if(i<1)throw new Error("GetCentroid points array must not be empty");if(1===i)e.x=t[0].x,e.y=t[0].y;else{for(var r=0;r{t.exports=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)}},44405:t=>{t.exports=function(t){return t.x*t.x+t.y*t.y}},20873:(t,e,i)=>{var s=i(87841);t.exports=function(t,e){void 0===e&&(e=new s);for(var i=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY,a=0;ai&&(i=h.x),h.xn&&(n=h.y),h.y{var s=i(2141);t.exports=function(t,e,i,r){return void 0===i&&(i=0),void 0===r&&(r=new s),r.x=t.x+(e.x-t.x)*i,r.y=t.y+(e.y-t.y)*i,r}},55767:t=>{t.exports=function(t){return t.setTo(t.y,t.x)}},79432:(t,e,i)=>{var s=i(2141);t.exports=function(t,e){return void 0===e&&(e=new s),e.setTo(-t.x,-t.y)}},2141:(t,e,i)=>{var s=i(83419),r=i(23777),n=new s({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.type=r.POINT,this.x=t,this.y=e},setTo:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this}});t.exports=n},72930:(t,e,i)=>{var s=i(2141),r=i(44405);t.exports=function(t,e,i){void 0===i&&(i=new s);var n=(t.x*e.x+t.y*e.y)/r(e);return 0!==n&&(i.x=n*e.x,i.y=n*e.y),i}},62880:(t,e,i)=>{var s=i(2141);t.exports=function(t,e,i){void 0===i&&(i=new s);var r=t.x*e.x+t.y*e.y;return 0!==r&&(i.x=r*e.x,i.y=r*e.y),i}},15093:(t,e,i)=>{var s=i(28793);t.exports=function(t,e){if(0!==t.x||0!==t.y){var i=s(t);t.x/=i,t.y/=i}return t.x*=e,t.y*=e,t}},43711:(t,e,i)=>{var s=i(2141);s.Ceil=i(96550),s.Clone=i(99706),s.CopyFrom=i(68010),s.Equals=i(27814),s.Floor=i(73565),s.GetCentroid=i(87555),s.GetMagnitude=i(28793),s.GetMagnitudeSq=i(44405),s.GetRectangleFromPoints=i(20873),s.Interpolate=i(26152),s.Invert=i(55767),s.Negative=i(79432),s.Project=i(72930),s.ProjectUnit=i(62880),s.SetMagnitude=i(15093),t.exports=s},12306:(t,e,i)=>{var s=i(25717);t.exports=function(t){return new s(t.points)}},63814:t=>{t.exports=function(t,e,i){for(var s=!1,r=-1,n=t.points.length-1;++r{var s=i(63814);t.exports=function(t,e){return s(t,e.x,e.y)}},94811:t=>{function e(t,e,s){s=s||2;var n,o,a,h,c,d,f,g=e&&e.length,m=g?e[0]*s:t.length,v=i(t,0,m,s,!0),y=[];if(!v||v.next===v.prev)return y;if(g&&(v=function(t,e,s,r){var n,o,a,h=[];for(n=0,o=e.length;n80*s){n=a=t[0],o=h=t[1];for(var x=s;xa&&(a=c),d>h&&(h=d);f=0!==(f=Math.max(a-n,h-o))?32767/f:0}return r(v,y,s,n,o,f,0),y}function i(t,e,i,s,r){var n,o;if(r===A(t,e,i,s)>0)for(n=e;n=e;n-=s)o=S(n,t[n],t[n+1],o);return o&&v(o,o.next)&&(E(o),o=o.next),o}function s(t,e){if(!t)return t;e||(e=t);var i,s=t;do{if(i=!1,s.steiner||!v(s,s.next)&&0!==m(s.prev,s,s.next))s=s.next;else{if(E(s),(s=e=s.prev)===s.next)break;i=!0}}while(i||s!==e);return e}function r(t,e,i,l,u,c,p){if(t){!p&&c&&function(t,e,i,s){var r=t;do{0===r.z&&(r.z=d(r.x,r.y,e,i,s)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,i,s,r,n,o,a,h,l=1;do{for(i=t,t=null,n=null,o=0;i;){for(o++,s=i,a=0,e=0;e0||h>0&&s;)0!==a&&(0===h||!s||i.z<=s.z)?(r=i,i=i.nextZ,a--):(r=s,s=s.nextZ,h--),n?n.nextZ=r:t=r,r.prevZ=n,n=r;i=s}n.nextZ=null,l*=2}while(o>1)}(r)}(t,l,u,c);for(var f,g,m=t;t.prev!==t.next;)if(f=t.prev,g=t.next,c?o(t,l,u,c):n(t))e.push(f.i/i|0),e.push(t.i/i|0),e.push(g.i/i|0),E(t),t=g.next,m=g.next;else if((t=g)===m){p?1===p?r(t=a(s(t),e,i),e,i,l,u,c,2):2===p&&h(t,e,i,l,u,c):r(s(t),e,i,l,u,c,1);break}}}function n(t){var e=t.prev,i=t,s=t.next;if(m(e,i,s)>=0)return!1;for(var r=e.x,n=i.x,o=s.x,a=e.y,h=i.y,l=s.y,u=rn?r>o?r:o:n>o?n:o,p=a>h?a>l?a:l:h>l?h:l,g=s.next;g!==e;){if(g.x>=u&&g.x<=d&&g.y>=c&&g.y<=p&&f(r,a,n,h,o,l,g.x,g.y)&&m(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function o(t,e,i,s){var r=t.prev,n=t,o=t.next;if(m(r,n,o)>=0)return!1;for(var a=r.x,h=n.x,l=o.x,u=r.y,c=n.y,p=o.y,g=ah?a>l?a:l:h>l?h:l,x=u>c?u>p?u:p:c>p?c:p,w=d(g,v,e,i,s),T=d(y,x,e,i,s),b=t.prevZ,S=t.nextZ;b&&b.z>=w&&S&&S.z<=T;){if(b.x>=g&&b.x<=y&&b.y>=v&&b.y<=x&&b!==r&&b!==o&&f(a,u,h,c,l,p,b.x,b.y)&&m(b.prev,b,b.next)>=0)return!1;if(b=b.prevZ,S.x>=g&&S.x<=y&&S.y>=v&&S.y<=x&&S!==r&&S!==o&&f(a,u,h,c,l,p,S.x,S.y)&&m(S.prev,S,S.next)>=0)return!1;S=S.nextZ}for(;b&&b.z>=w;){if(b.x>=g&&b.x<=y&&b.y>=v&&b.y<=x&&b!==r&&b!==o&&f(a,u,h,c,l,p,b.x,b.y)&&m(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;S&&S.z<=T;){if(S.x>=g&&S.x<=y&&S.y>=v&&S.y<=x&&S!==r&&S!==o&&f(a,u,h,c,l,p,S.x,S.y)&&m(S.prev,S,S.next)>=0)return!1;S=S.nextZ}return!0}function a(t,e,i){var r=t;do{var n=r.prev,o=r.next.next;!v(n,o)&&y(n,r,r.next,o)&&T(n,o)&&T(o,n)&&(e.push(n.i/i|0),e.push(r.i/i|0),e.push(o.i/i|0),E(r),E(r.next),r=t=o),r=r.next}while(r!==t);return s(r)}function h(t,e,i,n,o,a){var h=t;do{for(var l=h.next.next;l!==h.prev;){if(h.i!==l.i&&g(h,l)){var u=b(h,l);return h=s(h,h.next),u=s(u,u.next),r(h,e,i,n,o,a,0),void r(u,e,i,n,o,a,0)}l=l.next}h=h.next}while(h!==t)}function l(t,e){return t.x-e.x}function u(t,e){var i=function(t,e){var i,s=e,r=t.x,n=t.y,o=-1/0;do{if(n<=s.y&&n>=s.next.y&&s.next.y!==s.y){var a=s.x+(n-s.y)*(s.next.x-s.x)/(s.next.y-s.y);if(a<=r&&a>o&&(o=a,i=s.x=s.x&&s.x>=u&&r!==s.x&&f(ni.x||s.x===i.x&&c(i,s)))&&(i=s,p=h)),s=s.next}while(s!==l);return i}(t,e);if(!i)return e;var r=b(i,t);return s(r,r.next),s(i,i.next)}function c(t,e){return m(t.prev,t,e.prev)<0&&m(e.next,t,t.next)<0}function d(t,e,i,s,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-i)*r|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-s)*r|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function p(t){var e=t,i=t;do{(e.x=(t-o)*(n-a)&&(t-o)*(s-a)>=(i-o)*(e-a)&&(i-o)*(n-a)>=(r-o)*(s-a)}function g(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&y(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&(T(t,e)&&T(e,t)&&function(t,e){var i=t,s=!1,r=(t.x+e.x)/2,n=(t.y+e.y)/2;do{i.y>n!=i.next.y>n&&i.next.y!==i.y&&r<(i.next.x-i.x)*(n-i.y)/(i.next.y-i.y)+i.x&&(s=!s),i=i.next}while(i!==t);return s}(t,e)&&(m(t.prev,t,e.prev)||m(t,e.prev,e))||v(t,e)&&m(t.prev,t,t.next)>0&&m(e.prev,e,e.next)>0)}function m(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function v(t,e){return t.x===e.x&&t.y===e.y}function y(t,e,i,s){var r=w(m(t,e,i)),n=w(m(t,e,s)),o=w(m(i,s,t)),a=w(m(i,s,e));return r!==n&&o!==a||!(0!==r||!x(t,i,e))||!(0!==n||!x(t,s,e))||!(0!==o||!x(i,t,s))||!(0!==a||!x(i,e,s))}function x(t,e,i){return e.x<=Math.max(t.x,i.x)&&e.x>=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)}function w(t){return t>0?1:t<0?-1:0}function T(t,e){return m(t.prev,t,t.next)<0?m(t,e,t.next)>=0&&m(t,t.prev,e)>=0:m(t,e,t.prev)<0||m(t,t.next,e)<0}function b(t,e){var i=new C(t.i,t.x,t.y),s=new C(e.i,e.x,e.y),r=t.next,n=e.prev;return t.next=e,e.prev=t,i.next=r,r.prev=i,s.next=i,i.prev=s,n.next=s,s.prev=n,s}function S(t,e,i,s){var r=new C(t,e,i);return s?(r.next=s.next,r.prev=s,s.next.prev=r,s.next=r):(r.prev=r,r.next=r),r}function E(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function C(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function A(t,e,i,s){for(var r=0,n=e,o=i-s;n0&&(s+=t[r-1].length,i.holes.push(s))}return i},t.exports=e},13829:(t,e,i)=>{var s=i(87841);t.exports=function(t,e){void 0===e&&(e=new s);for(var i,r=1/0,n=1/0,o=-r,a=-n,h=0;h{t.exports=function(t,e){void 0===e&&(e=[]);for(var i=0;i{var s=i(35001),r=i(23031),n=i(30052);t.exports=function(t,e,i,o){void 0===o&&(o=[]);var a=t.points,h=n(t);!e&&i>0&&(e=h/i);for(var l=0;lc+m)){var v=g.getPoint((u-c)/m);o.push(v);break}c+=m}return o}},30052:(t,e,i)=>{var s=i(35001),r=i(23031);t.exports=function(t){for(var e=t.points,i=0,n=0;n{var s=i(83419),r=i(63814),n=i(9564),o=i(23777),a=new s({initialize:function(t){this.type=o.POLYGON,this.area=0,this.points=[],t&&this.setTo(t)},contains:function(t,e){return r(this,t,e)},setTo:function(t){if(this.area=0,this.points=[],"string"==typeof t&&(t=t.split(" ")),!Array.isArray(t))return this;for(var e,i=0;i{t.exports=function(t){return t.points.reverse(),t}},29524:t=>{function e(t,e,i){var s=e.x,r=e.y,n=i.x-s,o=i.y-r;if(0!==n||0!==o){var a=((t.x-s)*n+(t.y-r)*o)/(n*n+o*o);a>1?(s=i.x,r=i.y):a>0&&(s+=n*a,r+=o*a)}return(n=t.x-s)*n+(o=t.y-r)*o}function i(t,s,r,n,o){for(var a,h=n,l=s+1;lh&&(a=l,h=u)}h>n&&(a-s>1&&i(t,s,a,n,o),o.push(t[a]),r-a>1&&i(t,a,r,n,o))}function s(t,e){var s=t.length-1,r=[t[0]];return i(t,0,s,e,r),r.push(t[s]),r}t.exports=function(t,e,i){void 0===e&&(e=1),void 0===i&&(i=!1);var r=t.points;if(r.length>2){var n=e*e;i||(r=function(t,e){for(var i,s,r,n,o,a=t[0],h=[a],l=1,u=t.length;le&&(h.push(i),a=i);return a!==i&&h.push(i),h}(r,n)),t.setTo(s(r,n))}return t}},5469:t=>{var e=function(t,e){return t[0]=e[0],t[1]=e[1],t};t.exports=function(t){var i,s=[],r=t.points;for(i=0;i0&&n.push(e([0,0],s[0])),i=0;i1&&n.push(e([0,0],s[s.length-1])),t.setTo(n)}},24709:t=>{t.exports=function(t,e,i){for(var s=t.points,r=0;r{var s=i(25717);s.Clone=i(12306),s.Contains=i(63814),s.ContainsPoint=i(99338),s.Earcut=i(94811),s.GetAABB=i(13829),s.GetNumberArray=i(26173),s.GetPoints=i(9564),s.Perimeter=i(30052),s.Reverse=i(8133),s.Simplify=i(29524),s.Smooth=i(5469),s.Translate=i(24709),t.exports=s},62224:t=>{t.exports=function(t){return t.width*t.height}},98615:t=>{t.exports=function(t){return t.x=Math.ceil(t.x),t.y=Math.ceil(t.y),t}},31688:t=>{t.exports=function(t){return t.x=Math.ceil(t.x),t.y=Math.ceil(t.y),t.width=Math.ceil(t.width),t.height=Math.ceil(t.height),t}},67502:t=>{t.exports=function(t,e,i){return t.x=e-t.width/2,t.y=i-t.height/2,t}},65085:(t,e,i)=>{var s=i(87841);t.exports=function(t){return new s(t.x,t.y,t.width,t.height)}},37303:t=>{t.exports=function(t,e,i){return!(t.width<=0||t.height<=0)&&t.x<=e&&t.x+t.width>=e&&t.y<=i&&t.y+t.height>=i}},96553:(t,e,i)=>{var s=i(37303);t.exports=function(t,e){return s(t,e.x,e.y)}},70273:t=>{t.exports=function(t,e){return!(e.width*e.height>t.width*t.height)&&e.x>t.x&&e.xt.x&&e.rightt.y&&e.yt.y&&e.bottom{t.exports=function(t,e){return e.setTo(t.x,t.y,t.width,t.height)}},77493:t=>{t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x,y:t.y}),e.push({x:t.right,y:t.y}),e.push({x:t.right,y:t.bottom}),e.push({x:t.x,y:t.bottom}),e}},9219:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}},53751:(t,e,i)=>{var s=i(8249);t.exports=function(t,e){var i=s(t);return i{var s=i(8249);t.exports=function(t,e){var i=s(t);return i>s(e)?t.setSize(e.height*i,e.height):t.setSize(e.width,e.width/i),t.setPosition(e.centerX-t.width/2,e.centerY-t.height/2)}},80774:t=>{t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t}},83859:t=>{t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t.width=Math.floor(t.width),t.height=Math.floor(t.height),t}},19217:(t,e,i)=>{var s=i(87841),r=i(36383);t.exports=function(t,e){if(void 0===e&&(e=new s),0===t.length)return e;for(var i,n,o,a=Number.MAX_VALUE,h=Number.MAX_VALUE,l=r.MIN_SAFE_INTEGER,u=r.MIN_SAFE_INTEGER,c=0;c{var s=i(87841);t.exports=function(t,e,i,r,n){return void 0===n&&(n=new s),n.setTo(Math.min(t,i),Math.min(e,r),Math.abs(t-i),Math.abs(e-r))}},8249:t=>{t.exports=function(t){return 0===t.height?NaN:t.width/t.height}},27165:(t,e,i)=>{var s=i(2141);t.exports=function(t,e){return void 0===e&&(e=new s),e.x=t.centerX,e.y=t.centerY,e}},20812:(t,e,i)=>{var s=i(13019),r=i(2141);t.exports=function(t,e,i){if(void 0===i&&(i=new r),e<=0||e>=1)return i.x=t.x,i.y=t.y,i;var n=s(t)*e;return e>.5?(n-=t.width+t.height)<=t.width?(i.x=t.right-n,i.y=t.bottom):(i.x=t.x,i.y=t.bottom-(n-t.width)):n<=t.width?(i.x=t.x+n,i.y=t.y):(i.x=t.right,i.y=t.y+(n-t.width)),i}},34819:(t,e,i)=>{var s=i(20812),r=i(13019);t.exports=function(t,e,i,n){void 0===n&&(n=[]),!e&&i>0&&(e=r(t)/i);for(var o=0;o{var s=i(2141);t.exports=function(t,e){return void 0===e&&(e=new s),e.x=t.width,e.y=t.height,e}},86091:(t,e,i)=>{var s=i(67502);t.exports=function(t,e,i){var r=t.centerX,n=t.centerY;return t.setSize(t.width+2*e,t.height+2*i),s(t,r,n)}},53951:(t,e,i)=>{var s=i(87841),r=i(59996);t.exports=function(t,e,i){return void 0===i&&(i=new s),r(t,e)?(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y):i.setEmpty(),i}},14649:(t,e,i)=>{var s=i(13019),r=i(2141);t.exports=function(t,e,i,n){if(void 0===n&&(n=[]),!e&&!i)return n;e?i=Math.round(s(t)/e):e=s(t)/i;for(var o=t.x,a=t.y,h=0,l=0;l=t.right&&(h=1,a+=o-t.right,o=t.right);break;case 1:(a+=e)>=t.bottom&&(h=2,o-=a-t.bottom,a=t.bottom);break;case 2:(o-=e)<=t.left&&(h=3,a-=t.left-o,o=t.left);break;case 3:(a-=e)<=t.top&&(h=0,a=t.top)}return n}},33595:t=>{t.exports=function(t,e){for(var i=t.x,s=t.right,r=t.y,n=t.bottom,o=0;o{t.exports=function(t,e){var i=Math.min(t.x,e.x),s=Math.max(t.right,e.right);t.x=i,t.width=s-i;var r=Math.min(t.y,e.y),n=Math.max(t.bottom,e.bottom);return t.y=r,t.height=n-r,t}},92171:t=>{t.exports=function(t,e,i){var s=Math.min(t.x,e),r=Math.max(t.right,e);t.x=s,t.width=r-s;var n=Math.min(t.y,i),o=Math.max(t.bottom,i);return t.y=n,t.height=o-n,t}},42981:t=>{t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},46907:t=>{t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},60170:t=>{t.exports=function(t,e){return t.xe.x&&t.ye.y}},13019:t=>{t.exports=function(t){return 2*(t.width+t.height)}},85133:(t,e,i)=>{var s=i(2141),r=i(39506);t.exports=function(t,e,i){void 0===i&&(i=new s),e=r(e);var n=Math.sin(e),o=Math.cos(e),a=o>0?t.width/2:t.width/-2,h=n>0?t.height/2:t.height/-2;return Math.abs(a*n){var s=i(2141);t.exports=function(t,e){return void 0===e&&(e=new s),e.x=t.x+Math.random()*t.width,e.y=t.y+Math.random()*t.height,e}},86470:(t,e,i)=>{var s=i(30976),r=i(70273),n=i(2141);t.exports=function(t,e,i){if(void 0===i&&(i=new n),r(t,e))switch(s(0,3)){case 0:i.x=t.x+Math.random()*(e.right-t.x),i.y=t.y+Math.random()*(e.top-t.y);break;case 1:i.x=e.x+Math.random()*(t.right-e.x),i.y=e.bottom+Math.random()*(t.bottom-e.bottom);break;case 2:i.x=t.x+Math.random()*(e.x-t.x),i.y=e.y+Math.random()*(t.bottom-e.y);break;case 3:i.x=e.right+Math.random()*(t.right-e.right),i.y=t.y+Math.random()*(e.bottom-t.y)}return i}},87841:(t,e,i)=>{var s=i(83419),r=i(37303),n=i(20812),o=i(34819),a=i(23777),h=i(23031),l=i(26597),u=new s({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),this.type=a.RECTANGLE,this.x=t,this.y=e,this.width=i,this.height=s},contains:function(t,e){return r(this,t,e)},getPoint:function(t,e){return n(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return l(this,t)},setTo:function(t,e,i,s){return this.x=t,this.y=e,this.width=i,this.height=s,this},setEmpty:function(){return this.setTo(0,0,0,0)},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},isEmpty:function(){return this.width<=0||this.height<=0},getLineA:function(t){return void 0===t&&(t=new h),t.setTo(this.x,this.y,this.right,this.y),t},getLineB:function(t){return void 0===t&&(t=new h),t.setTo(this.right,this.y,this.right,this.bottom),t},getLineC:function(t){return void 0===t&&(t=new h),t.setTo(this.right,this.bottom,this.x,this.bottom),t},getLineD:function(t){return void 0===t&&(t=new h),t.setTo(this.x,this.bottom,this.x,this.y),t},left:{get:function(){return this.x},set:function(t){t>=this.right?this.width=0:this.width=this.right-t,this.x=t}},right:{get:function(){return this.x+this.width},set:function(t){t<=this.x?this.width=0:this.width=t-this.x}},top:{get:function(){return this.y},set:function(t){t>=this.bottom?this.height=0:this.height=this.bottom-t,this.y=t}},bottom:{get:function(){return this.y+this.height},set:function(t){t<=this.y?this.height=0:this.height=t-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=u},94845:t=>{t.exports=function(t,e){return t.width===e.width&&t.height===e.height}},31730:t=>{t.exports=function(t,e,i){return void 0===i&&(i=e),t.width*=e,t.height*=i,t}},36899:(t,e,i)=>{var s=i(87841);t.exports=function(t,e,i){void 0===i&&(i=new s);var r=Math.min(t.x,e.x),n=Math.min(t.y,e.y),o=Math.max(t.right,e.right)-r,a=Math.max(t.bottom,e.bottom)-n;return i.setTo(r,n,o,a)}},93232:(t,e,i)=>{var s=i(87841);s.Area=i(62224),s.Ceil=i(98615),s.CeilAll=i(31688),s.CenterOn=i(67502),s.Clone=i(65085),s.Contains=i(37303),s.ContainsPoint=i(96553),s.ContainsRect=i(70273),s.CopyFrom=i(43459),s.Decompose=i(77493),s.Equals=i(9219),s.FitInside=i(53751),s.FitOutside=i(16088),s.Floor=i(80774),s.FloorAll=i(83859),s.FromPoints=i(19217),s.FromXY=i(9477),s.GetAspectRatio=i(8249),s.GetCenter=i(27165),s.GetPoint=i(20812),s.GetPoints=i(34819),s.GetSize=i(51313),s.Inflate=i(86091),s.Intersection=i(53951),s.MarchingAnts=i(14649),s.MergePoints=i(33595),s.MergeRect=i(20074),s.MergeXY=i(92171),s.Offset=i(42981),s.OffsetPoint=i(46907),s.Overlaps=i(60170),s.Perimeter=i(13019),s.PerimeterPoint=i(85133),s.Random=i(26597),s.RandomOutside=i(86470),s.SameDimensions=i(94845),s.Scale=i(31730),s.Union=i(36899),t.exports=s},41658:t=>{t.exports=function(t){var e=t.x1,i=t.y1,s=t.x2,r=t.y2,n=t.x3,o=t.y3;return Math.abs(((n-e)*(r-i)-(s-e)*(o-i))/2)}},39208:(t,e,i)=>{var s=i(16483);t.exports=function(t,e,i){var r=i*(Math.sqrt(3)/2);return new s(t,e,t+i/2,e+r,t-i/2,e+r)}},39545:(t,e,i)=>{var s=i(94811),r=i(16483);t.exports=function(t,e,i,n,o){void 0===e&&(e=null),void 0===i&&(i=1),void 0===n&&(n=1),void 0===o&&(o=[]);for(var a,h,l,u,c,d,p,f,g,m=s(t,e),v=0;v{var s=i(16483);t.exports=function(t,e,i,r){return void 0===r&&(r=i),new s(t,e,t,e-r,t+i,e)}},23707:(t,e,i)=>{var s=i(97523),r=i(13584);t.exports=function(t,e,i,n){void 0===n&&(n=s);var o=n(t),a=e-o.x,h=i-o.y;return r(t,a,h)}},97523:(t,e,i)=>{var s=i(2141);t.exports=function(t,e){return void 0===e&&(e=new s),e.x=(t.x1+t.x2+t.x3)/3,e.y=(t.y1+t.y2+t.y3)/3,e}},24951:(t,e,i)=>{var s=i(26099);function r(t,e,i,s){return t*s-e*i}t.exports=function(t,e){void 0===e&&(e=new s);var i=t.x3,n=t.y3,o=t.x1-i,a=t.y1-n,h=t.x2-i,l=t.y2-n,u=2*r(o,a,h,l),c=r(a,o*o+a*a,l,h*h+l*l),d=r(o,o*o+a*a,h,h*h+l*l);return e.x=i-c/u,e.y=n+d/u,e}},85614:(t,e,i)=>{var s=i(96503);t.exports=function(t,e){void 0===e&&(e=new s);var i,r,n=t.x1,o=t.y1,a=t.x2,h=t.y2,l=t.x3,u=t.y3,c=a-n,d=h-o,p=l-n,f=u-o,g=c*(n+a)+d*(o+h),m=p*(n+l)+f*(o+u),v=2*(c*(u-h)-d*(l-a));if(Math.abs(v)<1e-6){var y=Math.min(n,a,l),x=Math.min(o,h,u);i=.5*(Math.max(n,a,l)-y),r=.5*(Math.max(o,h,u)-x),e.x=y+i,e.y=x+r,e.radius=Math.sqrt(i*i+r*r)}else e.x=(f*g-d*m)/v,e.y=(c*m-p*g)/v,i=e.x-n,r=e.y-o,e.radius=Math.sqrt(i*i+r*r);return e}},74422:(t,e,i)=>{var s=i(16483);t.exports=function(t){return new s(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)}},10690:t=>{t.exports=function(t,e,i){var s=t.x3-t.x1,r=t.y3-t.y1,n=t.x2-t.x1,o=t.y2-t.y1,a=e-t.x1,h=i-t.y1,l=s*s+r*r,u=s*n+r*o,c=s*a+r*h,d=n*n+o*o,p=n*a+o*h,f=l*d-u*u,g=0===f?0:1/f,m=(d*c-u*p)*g,v=(l*p-u*c)*g;return m>=0&&v>=0&&m+v<1}},48653:t=>{t.exports=function(t,e,i,s){void 0===i&&(i=!1),void 0===s&&(s=[]);for(var r,n,o,a,h,l,u=t.x3-t.x1,c=t.y3-t.y1,d=t.x2-t.x1,p=t.y2-t.y1,f=u*u+c*c,g=u*d+c*p,m=d*d+p*p,v=f*m-g*g,y=0===v?0:1/v,x=t.x1,w=t.y1,T=0;T=0&&n>=0&&r+n<1&&(s.push({x:e[T].x,y:e[T].y}),i)));T++);return s}},96006:(t,e,i)=>{var s=i(10690);t.exports=function(t,e){return s(t,e.x,e.y)}},71326:t=>{t.exports=function(t,e){return e.setTo(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)}},71694:t=>{t.exports=function(t,e){return void 0===e&&(e=[]),e.push({x:t.x1,y:t.y1}),e.push({x:t.x2,y:t.y2}),e.push({x:t.x3,y:t.y3}),e}},33522:t=>{t.exports=function(t,e){return t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2&&t.x3===e.x3&&t.y3===e.y3}},20437:(t,e,i)=>{var s=i(2141),r=i(35001);t.exports=function(t,e,i){void 0===i&&(i=new s);var n=t.getLineA(),o=t.getLineB(),a=t.getLineC();if(e<=0||e>=1)return i.x=n.x1,i.y=n.y1,i;var h=r(n),l=r(o),u=r(a),c=(h+l+u)*e,d=0;return ch+l?(d=(c-=h+l)/u,i.x=a.x1+(a.x2-a.x1)*d,i.y=a.y1+(a.y2-a.y1)*d):(d=(c-=h)/l,i.x=o.x1+(o.x2-o.x1)*d,i.y=o.y1+(o.y2-o.y1)*d),i}},80672:(t,e,i)=>{var s=i(35001),r=i(2141);t.exports=function(t,e,i,n){void 0===n&&(n=[]);var o=t.getLineA(),a=t.getLineB(),h=t.getLineC(),l=s(o),u=s(a),c=s(h),d=l+u+c;!e&&i>0&&(e=d/i);for(var p=0;pl+u?(g=(f-=l+u)/c,m.x=h.x1+(h.x2-h.x1)*g,m.y=h.y1+(h.y2-h.y1)*g):(g=(f-=l)/u,m.x=a.x1+(a.x2-a.x1)*g,m.y=a.y1+(a.y2-a.y1)*g),n.push(m)}return n}},39757:(t,e,i)=>{var s=i(2141);function r(t,e,i,s){var r=t-i,n=e-s,o=r*r+n*n;return Math.sqrt(o)}t.exports=function(t,e){void 0===e&&(e=new s);var i=t.x1,n=t.y1,o=t.x2,a=t.y2,h=t.x3,l=t.y3,u=r(h,l,o,a),c=r(i,n,h,l),d=r(o,a,i,n),p=u+c+d;return e.x=(i*u+o*c+h*d)/p,e.y=(n*u+a*c+l*d)/p,e}},13584:t=>{t.exports=function(t,e,i){return t.x1+=e,t.y1+=i,t.x2+=e,t.y2+=i,t.x3+=e,t.y3+=i,t}},1376:(t,e,i)=>{var s=i(35001);t.exports=function(t){var e=t.getLineA(),i=t.getLineB(),r=t.getLineC();return s(e)+s(i)+s(r)}},90260:(t,e,i)=>{var s=i(2141);t.exports=function(t,e){void 0===e&&(e=new s);var i=t.x2-t.x1,r=t.y2-t.y1,n=t.x3-t.x1,o=t.y3-t.y1,a=Math.random(),h=Math.random();return a+h>=1&&(a=1-a,h=1-h),e.x=t.x1+(i*a+n*h),e.y=t.y1+(r*a+o*h),e}},52172:(t,e,i)=>{var s=i(99614),r=i(39757);t.exports=function(t,e){var i=r(t);return s(t,i.x,i.y,e)}},49907:(t,e,i)=>{var s=i(99614);t.exports=function(t,e,i){return s(t,e.x,e.y,i)}},99614:t=>{t.exports=function(t,e,i,s){var r=Math.cos(s),n=Math.sin(s),o=t.x1-e,a=t.y1-i;return t.x1=o*r-a*n+e,t.y1=o*n+a*r+i,o=t.x2-e,a=t.y2-i,t.x2=o*r-a*n+e,t.y2=o*n+a*r+i,o=t.x3-e,a=t.y3-i,t.x3=o*r-a*n+e,t.y3=o*n+a*r+i,t}},16483:(t,e,i)=>{var s=i(83419),r=i(10690),n=i(20437),o=i(80672),a=i(23777),h=i(23031),l=i(90260),u=new s({initialize:function(t,e,i,s,r,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=0),void 0===n&&(n=0),this.type=a.TRIANGLE,this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.x3=r,this.y3=n},contains:function(t,e){return r(this,t,e)},getPoint:function(t,e){return n(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return l(this,t)},setTo:function(t,e,i,s,r,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=0),void 0===n&&(n=0),this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.x3=r,this.y3=n,this},getLineA:function(t){return void 0===t&&(t=new h),t.setTo(this.x1,this.y1,this.x2,this.y2),t},getLineB:function(t){return void 0===t&&(t=new h),t.setTo(this.x2,this.y2,this.x3,this.y3),t},getLineC:function(t){return void 0===t&&(t=new h),t.setTo(this.x3,this.y3,this.x1,this.y1),t},left:{get:function(){return Math.min(this.x1,this.x2,this.x3)},set:function(t){var e=0;e=this.x1<=this.x2&&this.x1<=this.x3?this.x1-t:this.x2<=this.x1&&this.x2<=this.x3?this.x2-t:this.x3-t,this.x1-=e,this.x2-=e,this.x3-=e}},right:{get:function(){return Math.max(this.x1,this.x2,this.x3)},set:function(t){var e=0;e=this.x1>=this.x2&&this.x1>=this.x3?this.x1-t:this.x2>=this.x1&&this.x2>=this.x3?this.x2-t:this.x3-t,this.x1-=e,this.x2-=e,this.x3-=e}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1<=this.y2&&this.y1<=this.y3?this.y1-t:this.y2<=this.y1&&this.y2<=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(t){var e=0;e=this.y1>=this.y2&&this.y1>=this.y3?this.y1-t:this.y2>=this.y1&&this.y2>=this.y3?this.y2-t:this.y3-t,this.y1-=e,this.y2-=e,this.y3-=e}}});t.exports=u},84435:(t,e,i)=>{var s=i(16483);s.Area=i(41658),s.BuildEquilateral=i(39208),s.BuildFromPolygon=i(39545),s.BuildRight=i(90301),s.CenterOn=i(23707),s.Centroid=i(97523),s.CircumCenter=i(24951),s.CircumCircle=i(85614),s.Clone=i(74422),s.Contains=i(10690),s.ContainsArray=i(48653),s.ContainsPoint=i(96006),s.CopyFrom=i(71326),s.Decompose=i(71694),s.Equals=i(33522),s.GetPoint=i(20437),s.GetPoints=i(80672),s.InCenter=i(39757),s.Perimeter=i(1376),s.Offset=i(13584),s.Random=i(90260),s.Rotate=i(52172),s.RotateAroundPoint=i(49907),s.RotateAroundXY=i(99614),t.exports=s},74457:t=>{t.exports=function(t,e,i){return{gameObject:t,enabled:!0,draggable:!1,dropZone:!1,cursor:!1,target:null,camera:null,hitArea:e,hitAreaCallback:i,hitAreaDebug:null,customHitArea:!1,localX:0,localY:0,dragState:0,dragStartX:0,dragStartY:0,dragStartXGlobal:0,dragStartYGlobal:0,dragX:0,dragY:0}}},84409:t=>{t.exports=function(t,e){return function(i,s,r,n){var o=t.getPixelAlpha(s,r,n.texture.key,n.frame.name);return o&&o>=e}}},7003:(t,e,i)=>{var s=i(83419),r=i(93301),n=i(50792),o=i(8214),a=i(8443),h=i(78970),l=i(85098),u=i(42515),c=i(36210),d=i(61340),p=i(85955),f=new s({initialize:function(t,e){this.game=t,this.scaleManager,this.canvas,this.config=e,this.enabled=!0,this.events=new n,this.isOver=!0,this.defaultCursor="",this.keyboard=e.inputKeyboard?new h(this):null,this.mouse=e.inputMouse?new l(this):null,this.touch=e.inputTouch?new c(this):null,this.pointers=[],this.pointersTotal=e.inputActivePointers,e.inputTouch&&1===this.pointersTotal&&(this.pointersTotal=2);for(var i=0;i<=this.pointersTotal;i++){var s=new u(this,i);s.smoothFactor=e.inputSmoothFactor,this.pointers.push(s)}this.mousePointer=e.inputMouse?this.pointers[0]:null,this.activePointer=this.pointers[0],this.globalTopOnly=!0,this.time=0,this._tempPoint={x:0,y:0},this._tempHitTest=[],this._tempMatrix=new d,this._tempMatrix2=new d,this._tempSkip=!1,this.mousePointerContainer=[this.mousePointer],t.events.once(a.BOOT,this.boot,this)},boot:function(){var t=this.game,e=t.events;this.canvas=t.canvas,this.scaleManager=t.scale,this.events.emit(o.MANAGER_BOOT),e.on(a.PRE_RENDER,this.preRender,this),e.once(a.DESTROY,this.destroy,this)},setCanvasOver:function(t){this.isOver=!0,this.events.emit(o.GAME_OVER,t)},setCanvasOut:function(t){this.isOver=!1,this.events.emit(o.GAME_OUT,t)},preRender:function(){var t=this.game.loop.now,e=this.game.loop.delta,i=this.game.scene.getScenes(!0,!0);this.time=t,this.events.emit(o.MANAGER_UPDATE);for(var s=0;s10&&(t=10-this.pointersTotal);for(var i=0;i{var s=i(96503),r=i(87902),n=i(83419),o=i(93301),a=i(74457),h=i(84409),l=i(20339),u=i(8497),c=i(81154),d=i(8214),p=i(50792),f=i(95540),g=i(23777),m=i(89639),v=i(41212),y=i(37277),x=i(87841),w=i(37303),T=i(44594),b=i(16483),S=i(10690),E=new n({Extends:p,initialize:function(t){p.call(this),this.scene=t,this.systems=t.sys,this.settings=t.sys.settings,this.manager=t.sys.game.input,this.pluginEvents=new p,this.enabled=!0,this.displayList,this.cameras,m.install(this),this.mouse=this.manager.mouse,this.topOnly=!0,this.pollRate=-1,this._pollTimer=0;var e={cancelled:!1};this._eventContainer={stopPropagation:function(){e.cancelled=!0}},this._eventData=e,this.dragDistanceThreshold=0,this.dragTimeThreshold=0,this._temp=[],this._tempZones=[],this._list=[],this._pendingInsertion=[],this._pendingRemoval=[],this._draggable=[],this._drag={0:[],1:[],2:[],3:[],4:[],5:[],6:[],7:[],8:[],9:[],10:[]},this._dragState=[],this._over={0:[],1:[],2:[],3:[],4:[],5:[],6:[],7:[],8:[],9:[],10:[]},this._validTypes=["onDown","onUp","onOver","onOut","onMove","onDragStart","onDrag","onDragEnd","onDragEnter","onDragLeave","onDragOver","onDrop"],this._updatedThisFrame=!1,t.sys.events.once(T.BOOT,this.boot,this),t.sys.events.on(T.START,this.start,this)},boot:function(){this.cameras=this.systems.cameras,this.displayList=this.systems.displayList,this.systems.events.once(T.DESTROY,this.destroy,this),this.pluginEvents.emit(d.BOOT)},start:function(){var t=this.systems.events;t.on(T.TRANSITION_START,this.transitionIn,this),t.on(T.TRANSITION_OUT,this.transitionOut,this),t.on(T.TRANSITION_COMPLETE,this.transitionComplete,this),t.on(T.PRE_UPDATE,this.preUpdate,this),t.once(T.SHUTDOWN,this.shutdown,this),this.manager.events.on(d.GAME_OUT,this.onGameOut,this),this.manager.events.on(d.GAME_OVER,this.onGameOver,this),this.enabled=!0,this._dragState=[0,0,0,0,0,0,0,0,0,0],this.pluginEvents.emit(d.START)},onGameOver:function(t){this.isActive()&&this.emit(d.GAME_OVER,t.timeStamp,t)},onGameOut:function(t){this.isActive()&&this.emit(d.GAME_OUT,t.timeStamp,t)},preUpdate:function(){this.pluginEvents.emit(d.PRE_UPDATE);var t=this._pendingRemoval,e=this._pendingInsertion,i=t.length,s=e.length;if(0!==i||0!==s){for(var r=this._list,n=0;n-1&&(r.splice(a,1),this.clear(o,!0))}this._pendingRemoval.length=0,this._list=r.concat(e.splice(0))}},isActive:function(){return this.enabled&&this.scene.sys.canInput()},updatePoll:function(t,e){if(!this.isActive())return!1;if(this.pluginEvents.emit(d.UPDATE,t,e),this._updatedThisFrame)return this._updatedThisFrame=!1,!1;var i,s=this.manager,r=s.pointers,n=s.pointersTotal;for(i=0;i0){if(this._pollTimer-=e,!(this._pollTimer<0))return!1;this._pollTimer=this.pollRate}var a=!1;for(i=0;i0&&(a=!0)}return a},update:function(t,e){if(!this.isActive())return!1;for(var i=e.length,s=!1,r=0;r0&&(s=!0)}return this._updatedThisFrame=!0,s},clear:function(t,e){void 0===e&&(e=!1),this.disable(t);var i=t.input;i&&(this.removeDebug(t),this.manager.resetCursor(i),i.gameObject=void 0,i.target=void 0,i.hitArea=void 0,i.hitAreaCallback=void 0,i.callbackContext=void 0,t.input=null),e||this.queueForRemoval(t);var s=this._draggable.indexOf(t);return s>-1&&this._draggable.splice(s,1),t},disable:function(t){var e=t.input;e&&(e.enabled=!1,e.dragState=0);for(var i,s=this._drag,r=this._over,n=this.manager,o=0;o-1&&s[o].splice(i,1),(i=r[o].indexOf(t))>-1&&r[o].splice(i,1);return this},enable:function(t,e,i,s){return void 0===s&&(s=!1),t.input?t.input.enabled=!0:this.setHitArea(t,e,i),t.input&&s&&!t.input.dropZone&&(t.input.dropZone=s),this},hitTestPointer:function(t){for(var e=this.cameras.getCamerasBelowPointer(t),i=0;i0)return t.camera=s,r}return t.camera=e[0],[]},processDownEvents:function(t){var e=0,i=this._temp,s=this._eventData,r=this._eventContainer;s.cancelled=!1;for(var n=!1,o=0;o0&&l(t.x,t.y,t.downX,t.downY)>=r||s>0&&e>=t.downTime+s)&&(i=!0),i)return this.setDragState(t,3),this.processDragStartList(t)},processDragStartList:function(t){if(3!==this.getDragState(t))return 0;for(var e=this._drag[t.id],i=0;i1&&(this.sortGameObjects(i,t),this.topOnly&&i.splice(1)),this._drag[t.id]=i,0===this.dragDistanceThreshold&&0===this.dragTimeThreshold?(this.setDragState(t,3),this.processDragStartList(t)):(this.setDragState(t,2),0))},processDragMoveEvent:function(t){if(2===this.getDragState(t)&&this.processDragThresholdEvent(t,this.manager.game.loop.now),4!==this.getDragState(t))return 0;for(var e=this._tempZones,i=this._drag[t.id],s=0;s0?(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):(o.emit(d.GAMEOBJECT_DRAG_LEAVE,t,h),this.emit(d.DRAG_LEAVE,t,o,h),e[0]?(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h)):a.target=null)}else!h&&e[0]&&(a.target=e[0],h=a.target,o.emit(d.GAMEOBJECT_DRAG_ENTER,t,h),this.emit(d.DRAG_ENTER,t,o,h));if(o.parentContainer){var u=t.worldX-a.dragStartXGlobal,c=t.worldY-a.dragStartYGlobal,p=o.getParentRotation(),f=u*Math.cos(p)+c*Math.sin(p),g=c*Math.cos(p)-u*Math.sin(p);f*=1/o.parentContainer.scaleX,g*=1/o.parentContainer.scaleY,r=f+a.dragStartX,n=g+a.dragStartY}else r=t.worldX-a.dragX,n=t.worldY-a.dragY;o.emit(d.GAMEOBJECT_DRAG,t,r,n),this.emit(d.DRAG,t,o,r,n)}return i.length},processDragUpEvent:function(t){for(var e=this._drag[t.id],i=0;i0){var n=this.manager,o=this._eventData,a=this._eventContainer;o.cancelled=!1;for(var h=!1,l=0;l0){var r=this.manager,n=this._eventData,o=this._eventContainer;n.cancelled=!1;var a=!1;this.sortGameObjects(e,t);for(var h=0;h0){for(this.sortGameObjects(r,t),e=0;e0){for(this.sortGameObjects(n,t),e=0;e-1&&this._draggable.splice(r,1)}return this},makePixelPerfect:function(t){void 0===t&&(t=1);var e=this.systems.textures;return h(e,t)},setHitArea:function(t,e,i){if(void 0===e)return this.setHitAreaFromTexture(t);Array.isArray(t)||(t=[t]);var s=!1,r=!1,n=!1,o=!1,h=!1,l=!0;if(v(e)&&Object.keys(e).length){var u=e;if(!t.some((function(t){return t.hasOwnProperty("faces")}))){e=f(u,"hitArea",null),i=f(u,"hitAreaCallback",null),h=f(u,"pixelPerfect",!1);var c=f(u,"alphaTolerance",1);h&&(e={},i=this.makePixelPerfect(c))}s=f(u,"draggable",!1),r=f(u,"dropZone",!1),n=f(u,"cursor",!1),o=f(u,"useHandCursor",!1),e&&i||(this.setHitAreaFromTexture(t),l=!1)}else"function"!=typeof e||i||(i=e,e={});for(var d=0;d{var s=i(35154),r={},n={register:function(t,e,i,s,n){r[t]={plugin:e,mapping:i,settingsKey:s,configKey:n}},getPlugin:function(t){return r[t]},install:function(t){var e=t.scene.sys,i=e.settings.input,n=e.game.config;for(var o in r){var a=r[o].plugin,h=r[o].mapping,l=r[o].settingsKey,u=r[o].configKey;s(i,l,n[u])&&(t[h]=new a(t))}},remove:function(t){r.hasOwnProperty(t)&&delete r[t]}};t.exports=n},42515:(t,e,i)=>{var s=i(31040),r=i(83419),n=i(20339),o=i(43855),a=i(47235),h=i(26099),l=i(25892),u=new r({initialize:function(t,e){this.manager=t,this.id=e,this.event,this.downElement,this.upElement,this.camera=null,this.button=0,this.buttons=0,this.position=new h,this.prevPosition=new h,this.midPoint=new h(-1,-1),this.velocity=new h,this.angle=0,this.distance=0,this.smoothFactor=0,this.motionFactor=.2,this.worldX=0,this.worldY=0,this.moveTime=0,this.downX=0,this.downY=0,this.downTime=0,this.upX=0,this.upY=0,this.upTime=0,this.primaryDown=!1,this.isDown=!1,this.wasTouch=!1,this.wasCanceled=!1,this.movementX=0,this.movementY=0,this.identifier=0,this.pointerId=null,this.active=0===e,this.locked=!1,this.deltaX=0,this.deltaY=0,this.deltaZ=0},updateWorldPoint:function(t){var e=t.getWorldPoint(this.x,this.y);return this.worldX=e.x,this.worldY=e.y,this},positionToCamera:function(t,e){return t.getWorldPoint(this.x,this.y,e)},updateMotion:function(){var t=this.position.x,e=this.position.y,i=this.midPoint.x,r=this.midPoint.y;if(t!==i||e!==r){var n=a(this.motionFactor,i,t),h=a(this.motionFactor,r,e);o(n,t,.1)&&(n=t),o(h,e,.1)&&(h=e),this.midPoint.set(n,h);var l=t-n,u=e-h;this.velocity.set(l,u),this.angle=s(n,h,t,e),this.distance=Math.sqrt(l*l+u*u)}},up:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!1,this.upX=this.x,this.upY=this.y),0===this.buttons&&(this.isDown=!1,this.upTime=t.timeStamp,this.wasTouch=!1)},down:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!0,this.downX=this.x,this.downY=this.y),l.macOS&&t.ctrlKey&&(this.buttons=2,this.primaryDown=!1),this.isDown||(this.isDown=!0,this.downTime=t.timeStamp),this.wasTouch=!1},move:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.locked&&(this.movementX=t.movementX||t.mozMovementX||t.webkitMovementX||0,this.movementY=t.movementY||t.mozMovementY||t.webkitMovementY||0),this.moveTime=t.timeStamp,this.wasTouch=!1},wheel:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.deltaX=t.deltaX,this.deltaY=t.deltaY,this.deltaZ=t.deltaZ,this.wasTouch=!1},touchstart:function(t,e){t.pointerId&&(this.pointerId=t.pointerId),this.identifier=t.identifier,this.target=t.target,this.active=!0,this.buttons=1,this.event=e,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=e.timeStamp,this.isDown=!0,this.wasTouch=!0,this.wasCanceled=!1,this.updateMotion()},touchmove:function(t,e){this.event=e,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.moveTime=e.timeStamp,this.wasTouch=!0,this.updateMotion()},touchend:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!1,this.active=!1,this.updateMotion()},touchcancel:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!0,this.active=!1},noButtonDown:function(){return 0===this.buttons},leftButtonDown:function(){return!!(1&this.buttons)},rightButtonDown:function(){return!!(2&this.buttons)},middleButtonDown:function(){return!!(4&this.buttons)},backButtonDown:function(){return!!(8&this.buttons)},forwardButtonDown:function(){return!!(16&this.buttons)},leftButtonReleased:function(){return 0===this.button&&!this.isDown},rightButtonReleased:function(){return 2===this.button&&!this.isDown},middleButtonReleased:function(){return 1===this.button&&!this.isDown},backButtonReleased:function(){return 3===this.button&&!this.isDown},forwardButtonReleased:function(){return 4===this.button&&!this.isDown},getDistance:function(){return this.isDown?n(this.downX,this.downY,this.x,this.y):n(this.downX,this.downY,this.upX,this.upY)},getDistanceX:function(){return this.isDown?Math.abs(this.downX-this.x):Math.abs(this.downX-this.upX)},getDistanceY:function(){return this.isDown?Math.abs(this.downY-this.y):Math.abs(this.downY-this.upY)},getDuration:function(){return this.isDown?this.manager.time-this.downTime:this.upTime-this.downTime},getAngle:function(){return this.isDown?s(this.downX,this.downY,this.x,this.y):s(this.downX,this.downY,this.upX,this.upY)},getInterpolatedPosition:function(t,e){void 0===t&&(t=10),void 0===e&&(e=[]);for(var i=this.prevPosition.x,s=this.prevPosition.y,r=this.position.x,n=this.position.y,o=0;o{t.exports={MOUSE_DOWN:0,MOUSE_MOVE:1,MOUSE_UP:2,TOUCH_START:3,TOUCH_MOVE:4,TOUCH_END:5,POINTER_LOCK_CHANGE:6,TOUCH_CANCEL:7,MOUSE_WHEEL:8}},7179:t=>{t.exports="boot"},85375:t=>{t.exports="destroy"},39843:t=>{t.exports="dragend"},23388:t=>{t.exports="dragenter"},16133:t=>{t.exports="drag"},27829:t=>{t.exports="dragleave"},53904:t=>{t.exports="dragover"},56058:t=>{t.exports="dragstart"},2642:t=>{t.exports="drop"},88171:t=>{t.exports="gameobjectdown"},36147:t=>{t.exports="dragend"},71692:t=>{t.exports="dragenter"},96149:t=>{t.exports="drag"},81285:t=>{t.exports="dragleave"},74048:t=>{t.exports="dragover"},21322:t=>{t.exports="dragstart"},49378:t=>{t.exports="drop"},86754:t=>{t.exports="gameobjectmove"},86433:t=>{t.exports="gameobjectout"},60709:t=>{t.exports="gameobjectover"},24081:t=>{t.exports="pointerdown"},11172:t=>{t.exports="pointermove"},18907:t=>{t.exports="pointerout"},95579:t=>{t.exports="pointerover"},35368:t=>{t.exports="pointerup"},26972:t=>{t.exports="wheel"},47078:t=>{t.exports="gameobjectup"},73802:t=>{t.exports="gameobjectwheel"},56718:t=>{t.exports="gameout"},25936:t=>{t.exports="gameover"},27503:t=>{t.exports="boot"},50852:t=>{t.exports="process"},96438:t=>{t.exports="update"},59152:t=>{t.exports="pointerlockchange"},47777:t=>{t.exports="pointerdown"},27957:t=>{t.exports="pointerdownoutside"},19444:t=>{t.exports="pointermove"},54251:t=>{t.exports="pointerout"},18667:t=>{t.exports="pointerover"},27192:t=>{t.exports="pointerup"},24652:t=>{t.exports="pointerupoutside"},45132:t=>{t.exports="wheel"},44512:t=>{t.exports="preupdate"},15757:t=>{t.exports="shutdown"},41637:t=>{t.exports="start"},93802:t=>{t.exports="update"},8214:(t,e,i)=>{t.exports={BOOT:i(7179),DESTROY:i(85375),DRAG_END:i(39843),DRAG_ENTER:i(23388),DRAG:i(16133),DRAG_LEAVE:i(27829),DRAG_OVER:i(53904),DRAG_START:i(56058),DROP:i(2642),GAME_OUT:i(56718),GAME_OVER:i(25936),GAMEOBJECT_DOWN:i(88171),GAMEOBJECT_DRAG_END:i(36147),GAMEOBJECT_DRAG_ENTER:i(71692),GAMEOBJECT_DRAG:i(96149),GAMEOBJECT_DRAG_LEAVE:i(81285),GAMEOBJECT_DRAG_OVER:i(74048),GAMEOBJECT_DRAG_START:i(21322),GAMEOBJECT_DROP:i(49378),GAMEOBJECT_MOVE:i(86754),GAMEOBJECT_OUT:i(86433),GAMEOBJECT_OVER:i(60709),GAMEOBJECT_POINTER_DOWN:i(24081),GAMEOBJECT_POINTER_MOVE:i(11172),GAMEOBJECT_POINTER_OUT:i(18907),GAMEOBJECT_POINTER_OVER:i(95579),GAMEOBJECT_POINTER_UP:i(35368),GAMEOBJECT_POINTER_WHEEL:i(26972),GAMEOBJECT_UP:i(47078),GAMEOBJECT_WHEEL:i(73802),MANAGER_BOOT:i(27503),MANAGER_PROCESS:i(50852),MANAGER_UPDATE:i(96438),POINTER_DOWN:i(47777),POINTER_DOWN_OUTSIDE:i(27957),POINTER_MOVE:i(19444),POINTER_OUT:i(54251),POINTER_OVER:i(18667),POINTER_UP:i(27192),POINTER_UP_OUTSIDE:i(24652),POINTER_WHEEL:i(45132),POINTERLOCK_CHANGE:i(59152),PRE_UPDATE:i(44512),SHUTDOWN:i(15757),START:i(41637),UPDATE:i(93802)}},97421:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e){this.pad=t,this.events=t.events,this.index=e,this.value=0,this.threshold=.1},update:function(t){this.value=t},getValue:function(){return Math.abs(this.value){var s=i(83419),r=i(92734),n=new s({initialize:function(t,e){this.pad=t,this.events=t.manager,this.index=e,this.value=0,this.threshold=1,this.pressed=!1},update:function(t){this.value=t;var e=this.pad,i=this.index;t>=this.threshold?this.pressed||(this.pressed=!0,this.events.emit(r.BUTTON_DOWN,e,this,t),this.pad.emit(r.GAMEPAD_BUTTON_DOWN,i,t,this)):this.pressed&&(this.pressed=!1,this.events.emit(r.BUTTON_UP,e,this,t),this.pad.emit(r.GAMEPAD_BUTTON_UP,i,t,this))},destroy:function(){this.pad=null,this.events=null}});t.exports=n},99125:(t,e,i)=>{var s=i(97421),r=i(28884),n=i(83419),o=i(50792),a=i(26099),h=new n({Extends:o,initialize:function(t,e){o.call(this),this.manager=t,this.pad=e,this.id=e.id,this.index=e.index;for(var i=[],n=0;n=2&&(this.leftStick.set(n[0].getValue(),n[1].getValue()),r>=4&&this.rightStick.set(n[2].getValue(),n[3].getValue()))}},destroy:function(){var t;for(this.removeAllListeners(),this.manager=null,this.pad=null,t=0;t{var s=i(83419),r=i(50792),n=i(92734),o=i(99125),a=i(35154),h=i(89639),l=i(8214),u=new s({Extends:r,initialize:function(t){r.call(this),this.scene=t.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=t,this.enabled=!0,this.target,this.gamepads=[],this.queue=[],this.onGamepadHandler,this._pad1,this._pad2,this._pad3,this._pad4,t.pluginEvents.once(l.BOOT,this.boot,this),t.pluginEvents.on(l.START,this.start,this)},boot:function(){var t=this.scene.sys.game,e=this.settings.input,i=t.config;this.enabled=a(e,"gamepad",i.inputGamepad)&&t.device.input.gamepads,this.target=a(e,"gamepad.target",i.inputGamepadEventTarget),this.sceneInputPlugin.pluginEvents.once(l.DESTROY,this.destroy,this)},start:function(){this.enabled&&(this.startListeners(),this.refreshPads()),this.sceneInputPlugin.pluginEvents.once(l.SHUTDOWN,this.shutdown,this)},isActive:function(){return this.enabled&&this.scene.sys.isActive()},startListeners:function(){var t=this,e=this.target,i=function(e){!e.defaultPrevented&&t.isActive()&&(t.refreshPads(),t.queue.push(e))};this.onGamepadHandler=i,e.addEventListener("gamepadconnected",i,!1),e.addEventListener("gamepaddisconnected",i,!1),this.sceneInputPlugin.pluginEvents.on(l.UPDATE,this.update,this)},stopListeners:function(){this.target.removeEventListener("gamepadconnected",this.onGamepadHandler),this.target.removeEventListener("gamepaddisconnected",this.onGamepadHandler),this.sceneInputPlugin.pluginEvents.off(l.UPDATE,this.update);for(var t=0;t{t.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,SELECT:8,START:9,B:0,A:1,Y:2,X:3,LEFT_SHOULDER:4,RIGHT_SHOULDER:5}},65294:t=>{t.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,SHARE:8,OPTIONS:9,PS:16,TOUCHBAR:17,X:0,CIRCLE:1,SQUARE:2,TRIANGLE:3,L1:4,R1:5,L2:6,R2:7,L3:10,R3:11,LEFT_STICK_H:0,LEFT_STICK_V:1,RIGHT_STICK_H:2,RIGHT_STICK_V:3}},90089:t=>{t.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,MENU:16,A:0,B:1,X:2,Y:3,LB:4,RB:5,LT:6,RT:7,BACK:8,START:9,LS:10,RS:11,LEFT_STICK_H:0,LEFT_STICK_V:1,RIGHT_STICK_H:2,RIGHT_STICK_V:3}},64894:(t,e,i)=>{t.exports={DUALSHOCK_4:i(65294),SNES_USB:i(89651),XBOX_360:i(90089)}},46008:t=>{t.exports="down"},7629:t=>{t.exports="up"},42206:t=>{t.exports="connected"},86544:t=>{t.exports="disconnected"},94784:t=>{t.exports="down"},14325:t=>{t.exports="up"},92734:(t,e,i)=>{t.exports={BUTTON_DOWN:i(46008),BUTTON_UP:i(7629),CONNECTED:i(42206),DISCONNECTED:i(86544),GAMEPAD_BUTTON_DOWN:i(94784),GAMEPAD_BUTTON_UP:i(14325)}},48646:(t,e,i)=>{t.exports={Axis:i(97421),Button:i(28884),Events:i(92734),Gamepad:i(99125),GamepadPlugin:i(56654),Configs:i(64894)}},14350:(t,e,i)=>{var s=i(93301),r=i(79291),n={CreatePixelPerfectHandler:i(84409),CreateInteractiveObject:i(74457),Events:i(8214),Gamepad:i(48646),InputManager:i(7003),InputPlugin:i(48205),InputPluginCache:i(89639),Keyboard:i(51442),Mouse:i(87078),Pointer:i(42515),Touch:i(95618)};n=r(!1,n,s),t.exports=n},78970:(t,e,i)=>{var s=i(72905),r=i(83419),n=i(8443),o=i(8214),a=i(46032),h=i(29747),l=new r({initialize:function(t){this.manager=t,this.queue=[],this.preventDefault=!0,this.captures=[],this.enabled=!1,this.target,this.onKeyDown=h,this.onKeyUp=h,t.events.once(o.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputKeyboard,this.target=t.inputKeyboardEventTarget,this.addCapture(t.inputKeyboardCapture),!this.target&&window&&(this.target=window),this.enabled&&this.target&&this.startListeners(),this.manager.game.events.on(n.POST_STEP,this.postUpdate,this)},startListeners:function(){var t=this;this.onKeyDown=function(e){if(!e.defaultPrevented&&t.enabled&&t.manager){t.queue.push(e),t.manager.events.emit(o.MANAGER_PROCESS);var i=e.altKey||e.ctrlKey||e.shiftKey||e.metaKey;t.preventDefault&&!i&&t.captures.indexOf(e.keyCode)>-1&&e.preventDefault()}},this.onKeyUp=function(e){if(!e.defaultPrevented&&t.enabled&&t.manager){t.queue.push(e),t.manager.events.emit(o.MANAGER_PROCESS);var i=e.altKey||e.ctrlKey||e.shiftKey||e.metaKey;t.preventDefault&&!i&&t.captures.indexOf(e.keyCode)>-1&&e.preventDefault()}};var e=this.target;e&&(e.addEventListener("keydown",this.onKeyDown,!1),e.addEventListener("keyup",this.onKeyUp,!1),this.enabled=!0)},stopListeners:function(){var t=this.target;t.removeEventListener("keydown",this.onKeyDown,!1),t.removeEventListener("keyup",this.onKeyUp,!1),this.enabled=!1},postUpdate:function(){this.queue=[]},addCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},removeCapture:function(t){"string"==typeof t&&(t=t.split(",")),Array.isArray(t)||(t=[t]);for(var e=this.captures,i=0;i0},clearCaptures:function(){this.captures=[],this.preventDefault=!1},destroy:function(){this.stopListeners(),this.clearCaptures(),this.queue=[],this.manager.game.events.off(n.POST_RENDER,this.postUpdate,this),this.target=null,this.enabled=!1,this.manager=null}});t.exports=l},28846:(t,e,i)=>{var s=i(83419),r=i(50792),n=i(95922),o=i(8443),a=i(35154),h=i(8214),l=i(89639),u=i(30472),c=i(46032),d=i(87960),p=i(74600),f=i(44594),g=i(56583),m=new s({Extends:r,initialize:function(t){r.call(this),this.game=t.systems.game,this.scene=t.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=t,this.manager=t.manager.keyboard,this.enabled=!0,this.keys=[],this.combos=[],this.prevCode=null,this.prevTime=0,this.prevType=null,t.pluginEvents.once(h.BOOT,this.boot,this),t.pluginEvents.on(h.START,this.start,this)},boot:function(){var t=this.settings.input;this.enabled=a(t,"keyboard",!0);var e=a(t,"keyboard.capture",null);e&&this.addCaptures(e),this.sceneInputPlugin.pluginEvents.once(h.DESTROY,this.destroy,this)},start:function(){this.sceneInputPlugin.manager.events.on(h.MANAGER_PROCESS,this.update,this),this.sceneInputPlugin.pluginEvents.once(h.SHUTDOWN,this.shutdown,this),this.game.events.on(o.BLUR,this.resetKeys,this),this.scene.sys.events.on(f.PAUSE,this.resetKeys,this),this.scene.sys.events.on(f.SLEEP,this.resetKeys,this)},isActive:function(){return this.enabled&&this.scene.sys.canInput()},addCapture:function(t){return this.manager.addCapture(t),this},removeCapture:function(t){return this.manager.removeCapture(t),this},getCaptures:function(){return this.manager.captures},enableGlobalCapture:function(){return this.manager.preventDefault=!0,this},disableGlobalCapture:function(){return this.manager.preventDefault=!1,this},clearCaptures:function(){return this.manager.clearCaptures(),this},createCursorKeys:function(){return this.addKeys({up:c.UP,down:c.DOWN,left:c.LEFT,right:c.RIGHT,space:c.SPACE,shift:c.SHIFT})},addKeys:function(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=!1);var s={};if("string"==typeof t){t=t.split(",");for(var r=0;r-1?s[r]=t:s[t.keyCode]=t,e&&this.addCapture(t.keyCode),t.setEmitOnRepeat(i),t}return"string"==typeof t&&(t=c[t.toUpperCase()]),s[t]||(s[t]=new u(this,t),e&&this.addCapture(t),s[t].setEmitOnRepeat(i)),s[t]},removeKey:function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var s,r=this.keys;if(t instanceof u){var n=r.indexOf(t);n>-1&&(s=this.keys[n],this.keys[n]=void 0)}else"string"==typeof t&&(t=c[t.toUpperCase()]);return r[t]&&(s=r[t],r[t]=void 0),s&&(s.plugin=null,i&&this.removeCapture(s.keyCode),e&&s.destroy()),this},removeAllKeys:function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);for(var i=this.keys,s=0;st._tick)return t._tick=i,!0}return!1},update:function(){var t=this.manager.queue,e=t.length;if(this.isActive()&&0!==e)for(var i=this.keys,s=0;s{t.exports=function(t,e){return e.timeLastMatched=t.timeStamp,e.index++,e.index===e.size||(e.current=e.keyCodes[e.index],!1)}},87960:(t,e,i)=>{var s=i(83419),r=i(95922),n=i(95540),o=i(68769),a=i(92803),h=new s({initialize:function(t,e,i){if(void 0===i&&(i={}),e.length<2)return!1;this.manager=t,this.enabled=!0,this.keyCodes=[];for(var s=0;s{var s=i(66970);t.exports=function(t,e){if(e.matched)return!0;var i=!1,r=!1;if(t.keyCode===e.current)if(e.index>0&&e.maxKeyDelay>0){var n=e.timeLastMatched+e.maxKeyDelay;t.timeStamp<=n&&(r=!0,i=s(t,e))}else r=!0,i=s(t,e);return!r&&e.resetOnWrongKey&&(e.index=0,e.current=e.keyCodes[0]),i&&(e.timeLastMatched=t.timeStamp,e.matched=!0,e.timeMatched=t.timeStamp),i}},92803:t=>{t.exports=function(t){return t.current=t.keyCodes[0],t.index=0,t.timeLastMatched=0,t.matched=!1,t.timeMatched=0,t}},92612:t=>{t.exports="keydown"},23345:t=>{t.exports="keyup"},21957:t=>{t.exports="keycombomatch"},44743:t=>{t.exports="down"},3771:t=>{t.exports="keydown-"},46358:t=>{t.exports="keyup-"},75674:t=>{t.exports="up"},95922:(t,e,i)=>{t.exports={ANY_KEY_DOWN:i(92612),ANY_KEY_UP:i(23345),COMBO_MATCH:i(21957),DOWN:i(44743),KEY_DOWN:i(3771),KEY_UP:i(46358),UP:i(75674)}},51442:(t,e,i)=>{t.exports={Events:i(95922),KeyboardManager:i(78970),KeyboardPlugin:i(28846),Key:i(30472),KeyCodes:i(46032),KeyCombo:i(87960),AdvanceKeyCombo:i(66970),ProcessKeyCombo:i(68769),ResetKeyCombo:i(92803),JustDown:i(90229),JustUp:i(38796),DownDuration:i(37015),UpDuration:i(41170)}},37015:t=>{t.exports=function(t,e){void 0===e&&(e=50);var i=t.plugin.game.loop.time-t.timeDown;return t.isDown&&i{t.exports=function(t){return!!t._justDown&&(t._justDown=!1,!0)}},38796:t=>{t.exports=function(t){return!!t._justUp&&(t._justUp=!1,!0)}},30472:(t,e,i)=>{var s=i(83419),r=i(50792),n=i(95922),o=new s({Extends:r,initialize:function(t,e){r.call(this),this.plugin=t,this.keyCode=e,this.originalEvent=void 0,this.enabled=!0,this.isDown=!1,this.isUp=!0,this.altKey=!1,this.ctrlKey=!1,this.shiftKey=!1,this.metaKey=!1,this.location=0,this.timeDown=0,this.duration=0,this.timeUp=0,this.emitOnRepeat=!1,this.repeats=0,this._justDown=!1,this._justUp=!1,this._tick=-1},setEmitOnRepeat:function(t){return this.emitOnRepeat=t,this},onDown:function(t){this.originalEvent=t,this.enabled&&(this.altKey=t.altKey,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.location=t.location,this.repeats++,this.isDown?this.emitOnRepeat&&this.emit(n.DOWN,this,t):(this.isDown=!0,this.isUp=!1,this.timeDown=t.timeStamp,this.duration=0,this._justDown=!0,this._justUp=!1,this.emit(n.DOWN,this,t)))},onUp:function(t){this.originalEvent=t,this.enabled&&(this.isDown=!1,this.isUp=!0,this.timeUp=t.timeStamp,this.duration=this.timeUp-this.timeDown,this.repeats=0,this._justDown=!1,this._justUp=!0,this._tick=-1,this.emit(n.UP,this,t))},reset:function(){return this.isDown=!1,this.isUp=!0,this.altKey=!1,this.ctrlKey=!1,this.shiftKey=!1,this.metaKey=!1,this.timeDown=0,this.duration=0,this.timeUp=0,this.repeats=0,this._justDown=!1,this._justUp=!1,this._tick=-1,this},getDuration:function(){return this.isDown?this.plugin.game.loop.time-this.timeDown:0},destroy:function(){this.removeAllListeners(),this.originalEvent=null,this.plugin=null}});t.exports=o},46032:t=>{t.exports={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:42,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,NUMPAD_ZERO:96,NUMPAD_ONE:97,NUMPAD_TWO:98,NUMPAD_THREE:99,NUMPAD_FOUR:100,NUMPAD_FIVE:101,NUMPAD_SIX:102,NUMPAD_SEVEN:103,NUMPAD_EIGHT:104,NUMPAD_NINE:105,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,PLUS:187,COMMA:188,MINUS:189,PERIOD:190,FORWARD_SLASH:191,BACK_SLASH:220,QUOTES:222,BACKTICK:192,OPEN_BRACKET:219,CLOSED_BRACKET:221,SEMICOLON_FIREFOX:59,COLON:58,COMMA_FIREFOX_WINDOWS:60,COMMA_FIREFOX:62,BRACKET_RIGHT_FIREFOX:174,BRACKET_LEFT_FIREFOX:175}},74600:(t,e,i)=>{var s=i(46032),r={};for(var n in s)r[s[n]]=n;t.exports=r},41170:t=>{t.exports=function(t,e){void 0===e&&(e=50);var i=t.plugin.game.loop.time-t.timeUp;return t.isUp&&i{var s=i(83419),r=i(89357),n=i(8214),o=i(29747),a=new s({initialize:function(t){this.manager=t,this.preventDefaultDown=!0,this.preventDefaultUp=!0,this.preventDefaultMove=!0,this.preventDefaultWheel=!1,this.enabled=!1,this.target,this.locked=!1,this.onMouseMove=o,this.onMouseDown=o,this.onMouseUp=o,this.onMouseDownWindow=o,this.onMouseUpWindow=o,this.onMouseOver=o,this.onMouseOut=o,this.onMouseWheel=o,this.pointerLockChange=o,this.isTop=!0,t.events.once(n.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputMouse,this.target=t.inputMouseEventTarget,this.passive=t.inputMousePassive,this.preventDefaultDown=t.inputMousePreventDefaultDown,this.preventDefaultUp=t.inputMousePreventDefaultUp,this.preventDefaultMove=t.inputMousePreventDefaultMove,this.preventDefaultWheel=t.inputMousePreventDefaultWheel,this.target?"string"==typeof this.target&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,t.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener("contextmenu",(function(t){return t.preventDefault(),!1})),this},requestPointerLock:function(){if(r.pointerLock){var t=this.target;t.requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock||t.webkitRequestPointerLock,t.requestPointerLock()}},releasePointerLock:function(){r.pointerLock&&(document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock())},startListeners:function(){var t=this.target;if(t){var e=this,i=this.manager,s=i.canvas,n=window&&window.focus&&i.game.config.autoFocus;this.onMouseMove=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onMouseMove(t),e.preventDefaultMove&&t.preventDefault())},this.onMouseDown=function(t){n&&window.focus(),!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onMouseDown(t),e.preventDefaultDown&&t.target===s&&t.preventDefault())},this.onMouseDownWindow=function(t){t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||!t.defaultPrevented&&e.enabled&&i&&i.enabled&&t.target!==s&&i.onMouseDown(t)},this.onMouseUp=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onMouseUp(t),e.preventDefaultUp&&t.target===s&&t.preventDefault())},this.onMouseUpWindow=function(t){t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||!t.defaultPrevented&&e.enabled&&i&&i.enabled&&t.target!==s&&i.onMouseUp(t)},this.onMouseOver=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&i.setCanvasOver(t)},this.onMouseOut=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&i.setCanvasOut(t)},this.onMouseWheel=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&i.onMouseWheel(t),e.preventDefaultWheel&&t.target===s&&t.preventDefault()};var o={passive:!0};if(t.addEventListener("mousemove",this.onMouseMove),t.addEventListener("mousedown",this.onMouseDown),t.addEventListener("mouseup",this.onMouseUp),t.addEventListener("mouseover",this.onMouseOver,o),t.addEventListener("mouseout",this.onMouseOut,o),this.preventDefaultWheel?t.addEventListener("wheel",this.onMouseWheel,{passive:!1}):t.addEventListener("wheel",this.onMouseWheel,o),window&&i.game.config.inputWindowEvents)try{window.top.addEventListener("mousedown",this.onMouseDownWindow,o),window.top.addEventListener("mouseup",this.onMouseUpWindow,o)}catch(a){window.addEventListener("mousedown",this.onMouseDownWindow,o),window.addEventListener("mouseup",this.onMouseUpWindow,o),this.isTop=!1}r.pointerLock&&(this.pointerLockChange=function(t){var s=e.target;e.locked=document.pointerLockElement===s||document.mozPointerLockElement===s||document.webkitPointerLockElement===s,i.onPointerLockChange(t)},document.addEventListener("pointerlockchange",this.pointerLockChange,!0),document.addEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.addEventListener("webkitpointerlockchange",this.pointerLockChange,!0)),this.enabled=!0}},stopListeners:function(){var t=this.target;t.removeEventListener("mousemove",this.onMouseMove),t.removeEventListener("mousedown",this.onMouseDown),t.removeEventListener("mouseup",this.onMouseUp),t.removeEventListener("mouseover",this.onMouseOver),t.removeEventListener("mouseout",this.onMouseOut),window&&((t=this.isTop?window.top:window).removeEventListener("mousedown",this.onMouseDownWindow),t.removeEventListener("mouseup",this.onMouseUpWindow)),r.pointerLock&&(document.removeEventListener("pointerlockchange",this.pointerLockChange,!0),document.removeEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.removeEventListener("webkitpointerlockchange",this.pointerLockChange,!0))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});t.exports=a},87078:(t,e,i)=>{t.exports={MouseManager:i(85098)}},36210:(t,e,i)=>{var s=i(83419),r=i(8214),n=i(29747),o=new s({initialize:function(t){this.manager=t,this.capture=!0,this.enabled=!1,this.target,this.onTouchStart=n,this.onTouchStartWindow=n,this.onTouchMove=n,this.onTouchEnd=n,this.onTouchEndWindow=n,this.onTouchCancel=n,this.onTouchCancelWindow=n,this.isTop=!0,t.events.once(r.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputTouch,this.target=t.inputTouchEventTarget,this.capture=t.inputTouchCapture,this.target?"string"==typeof this.target&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,t.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener("contextmenu",(function(t){return t.preventDefault(),!1})),this},startListeners:function(){var t=this.target;if(t){var e=this,i=this.manager,s=i.canvas,r=window&&window.focus&&i.game.config.autoFocus;this.onTouchMove=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchMove(t),e.capture&&t.cancelable&&t.preventDefault())},this.onTouchStart=function(t){r&&window.focus(),!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchStart(t),e.capture&&t.cancelable&&t.target===s&&t.preventDefault())},this.onTouchStartWindow=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&t.target!==s&&i.onTouchStart(t)},this.onTouchEnd=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchEnd(t),e.capture&&t.cancelable&&t.target===s&&t.preventDefault())},this.onTouchEndWindow=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&t.target!==s&&i.onTouchEnd(t)},this.onTouchCancel=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchCancel(t),e.capture&&t.preventDefault())},this.onTouchCancelWindow=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&i.onTouchCancel(t)};var n=this.capture,o={passive:!0},a={passive:!1};if(t.addEventListener("touchstart",this.onTouchStart,n?a:o),t.addEventListener("touchmove",this.onTouchMove,n?a:o),t.addEventListener("touchend",this.onTouchEnd,n?a:o),t.addEventListener("touchcancel",this.onTouchCancel,n?a:o),window&&i.game.config.inputWindowEvents)try{window.top.addEventListener("touchstart",this.onTouchStartWindow,a),window.top.addEventListener("touchend",this.onTouchEndWindow,a),window.top.addEventListener("touchcancel",this.onTouchCancelWindow,a)}catch(h){window.addEventListener("touchstart",this.onTouchStartWindow,a),window.addEventListener("touchend",this.onTouchEndWindow,a),window.addEventListener("touchcancel",this.onTouchCancelWindow,a),this.isTop=!1}this.enabled=!0}},stopListeners:function(){var t=this.target;t.removeEventListener("touchstart",this.onTouchStart),t.removeEventListener("touchmove",this.onTouchMove),t.removeEventListener("touchend",this.onTouchEnd),t.removeEventListener("touchcancel",this.onTouchCancel),window&&((t=this.isTop?window.top:window).removeEventListener("touchstart",this.onTouchStartWindow),t.removeEventListener("touchend",this.onTouchEndWindow),t.removeEventListener("touchcancel",this.onTouchCancelWindow))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});t.exports=o},95618:(t,e,i)=>{t.exports={TouchManager:i(36210)}},41299:(t,e,i)=>{var s=i(83419),r=i(23906),n=i(54899),o=i(95540),a=i(98356),h=i(3374),l=i(84376),u=i(92638),c=new s({initialize:function(t,e){if(this.loader=t,this.cache=o(e,"cache",!1),this.type=o(e,"type",!1),!this.type)throw new Error("Invalid File type: "+this.type);this.key=o(e,"key",!1);var i=this.key;if(t.prefix&&""!==t.prefix&&(this.key=t.prefix+i),!this.key)throw new Error("Invalid File key: "+this.key);var s=o(e,"url");void 0===s?s=t.path+i+"."+o(e,"extension",""):"string"!=typeof s||s.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)||(s=t.path+s),this.url=s,this.src="",this.xhrSettings=u(o(e,"responseType",void 0)),o(e,"xhrSettings",!1)&&(this.xhrSettings=h(this.xhrSettings,o(e,"xhrSettings",{}))),this.xhrLoader=null,this.state="function"==typeof this.url?r.FILE_POPULATED:r.FILE_PENDING,this.bytesTotal=0,this.bytesLoaded=-1,this.percentComplete=-1,this.crossOrigin=void 0,this.data=void 0,this.config=o(e,"config",{}),this.multiFile,this.linkFile,this.base64="string"==typeof s&&0===s.indexOf("data:")},setLink:function(t){this.linkFile=t,t.linkFile=this},resetXHR:function(){this.xhrLoader&&(this.xhrLoader.onload=void 0,this.xhrLoader.onerror=void 0,this.xhrLoader.onprogress=void 0)},load:function(){this.state===r.FILE_POPULATED?this.loader.nextFile(this,!0):(this.state=r.FILE_LOADING,this.src=a(this,this.loader.baseURL),0===this.src.indexOf("data:")&&(this.base64=!0),this.xhrLoader=l(this,this.loader.xhr))},onLoad:function(t,e){var i=t.responseURL&&this.loader.localSchemes.some((function(e){return 0===t.responseURL.indexOf(e)}))&&0===e.target.status,s=!(e.target&&200!==e.target.status)||i;4===t.readyState&&t.status>=400&&t.status<=599&&(s=!1),this.state=r.FILE_LOADED,this.resetXHR(),this.loader.nextFile(this,s)},onBase64Load:function(t){this.xhrLoader=t,this.state=r.FILE_LOADED,this.percentComplete=1,this.loader.emit(n.FILE_PROGRESS,this,this.percentComplete),this.loader.nextFile(this,!0)},onError:function(){this.resetXHR(),this.loader.nextFile(this,!1)},onProgress:function(t){t.lengthComputable&&(this.bytesLoaded=t.loaded,this.bytesTotal=t.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(n.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=r.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=r.FILE_COMPLETE,this.multiFile&&this.multiFile.onFileComplete(this),this.loader.fileProcessComplete(this)},onProcessError:function(){console.error('Failed to process file: %s "%s"',this.type,this.key),this.state=r.FILE_ERRORED,this.multiFile&&this.multiFile.onFileFailed(this),this.loader.fileProcessComplete(this)},hasCacheConflict:function(){return this.cache&&this.cache.exists(this.key)},addToCache:function(){this.cache&&this.data&&this.cache.add(this.key,this.data)},pendingDestroy:function(t){if(this.state!==r.FILE_PENDING_DESTROY){void 0===t&&(t=this.data);var e=this.key,i=this.type;this.loader.emit(n.FILE_COMPLETE,e,i,t),this.loader.emit(n.FILE_KEY_COMPLETE+i+"-"+e,e,i,t),this.loader.flagForRemoval(this),this.state=r.FILE_PENDING_DESTROY}},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});c.createObjectURL=function(t,e,i){if("function"==typeof URL)t.src=URL.createObjectURL(e);else{var s=new FileReader;s.onload=function(){t.removeAttribute("crossOrigin"),t.src="data:"+(e.type||i)+";base64,"+s.result.split(",")[1]},s.onerror=t.onerror,s.readAsDataURL(e)}},c.revokeObjectURL=function(t){"function"==typeof URL&&URL.revokeObjectURL(t.src)},t.exports=c},74099:t=>{var e={},i={install:function(t){for(var i in e)t[i]=e[i]},register:function(t,i){e[t]=i},destroy:function(){e={}}};t.exports=i},98356:t=>{t.exports=function(t,e){return!!t.url&&(t.url.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)?t.url:e+t.url)}},74261:(t,e,i)=>{var s=i(83419),r=i(23906),n=i(35072),o=i(50792),a=i(54899),h=i(74099),l=i(95540),u=i(35154),c=i(37277),d=i(44594),p=i(92638),f=new s({Extends:o,initialize:function(t){o.call(this);var e=t.sys.game.config,i=t.sys.settings.loader;this.scene=t,this.systems=t.sys,this.cacheManager=t.sys.cache,this.textureManager=t.sys.textures,this.sceneManager=t.sys.game.scene,h.install(this),this.prefix="",this.path="",this.baseURL="",this.setBaseURL(l(i,"baseURL",e.loaderBaseURL)),this.setPath(l(i,"path",e.loaderPath)),this.setPrefix(l(i,"prefix",e.loaderPrefix)),this.maxParallelDownloads=l(i,"maxParallelDownloads",e.loaderMaxParallelDownloads),this.xhr=p(l(i,"responseType",e.loaderResponseType),l(i,"async",e.loaderAsync),l(i,"user",e.loaderUser),l(i,"password",e.loaderPassword),l(i,"timeout",e.loaderTimeout),l(i,"withCredentials",e.loaderWithCredentials)),this.crossOrigin=l(i,"crossOrigin",e.loaderCrossOrigin),this.imageLoadType=l(i,"imageLoadType",e.loaderImageLoadType),this.localSchemes=l(i,"localScheme",e.loaderLocalScheme),this.totalToLoad=0,this.progress=0,this.list=new n,this.inflight=new n,this.queue=new n,this._deleteQueue=new n,this.totalFailed=0,this.totalComplete=0,this.state=r.LOADER_IDLE,this.multiKeyIndex=0,t.sys.events.once(d.BOOT,this.boot,this),t.sys.events.on(d.START,this.pluginStart,this)},boot:function(){this.systems.events.once(d.DESTROY,this.destroy,this)},pluginStart:function(){this.systems.events.once(d.SHUTDOWN,this.shutdown,this)},setBaseURL:function(t){return void 0===t&&(t=""),""!==t&&"/"!==t.substr(-1)&&(t=t.concat("/")),this.baseURL=t,this},setPath:function(t){return void 0===t&&(t=""),""!==t&&"/"!==t.substr(-1)&&(t=t.concat("/")),this.path=t,this},setPrefix:function(t){return void 0===t&&(t=""),this.prefix=t,this},setCORS:function(t){return this.crossOrigin=t,this},addFile:function(t){Array.isArray(t)||(t=[t]);for(var e=0;e0},isLoading:function(){return this.state===r.LOADER_LOADING||this.state===r.LOADER_PROCESSING},isReady:function(){return this.state===r.LOADER_IDLE||this.state===r.LOADER_COMPLETE},start:function(){this.isReady()&&(this.progress=0,this.totalFailed=0,this.totalComplete=0,this.totalToLoad=this.list.size,this.emit(a.START,this),0===this.list.size?this.loadComplete():(this.state=r.LOADER_LOADING,this.inflight.clear(),this.queue.clear(),this.updateProgress(),this.checkLoadQueue(),this.systems.events.on(d.UPDATE,this.update,this)))},updateProgress:function(){this.progress=1-(this.list.size+this.inflight.size)/this.totalToLoad,this.emit(a.PROGRESS,this.progress)},update:function(){this.state===r.LOADER_LOADING&&this.list.size>0&&this.inflight.size{var s=i(79291),r=i(92638);t.exports=function(t,e){var i=void 0===t?r():s({},t);if(e)for(var n in e)void 0!==e[n]&&(i[n]=e[n]);return i}},26430:(t,e,i)=>{var s=i(83419),r=i(23906),n=i(54899),o=new s({initialize:function(t,e,i,s){var n=[];s.forEach((function(t){t&&n.push(t)})),this.loader=t,this.type=e,this.key=i;var o=this.key;t.prefix&&""!==t.prefix&&(this.key=t.prefix+o),this.multiKeyIndex=t.multiKeyIndex++,this.files=n,this.state=r.FILE_PENDING,this.complete=!1,this.pending=n.length,this.failed=0,this.config={},this.baseURL=t.baseURL,this.path=t.path,this.prefix=t.prefix;for(var a=0;a{var s=i(3374);t.exports=function(t,e){var i=s(e,t.xhrSettings);if(!t.base64){var r=new XMLHttpRequest;if(r.open("GET",t.src,i.async,i.user,i.password),r.responseType=t.xhrSettings.responseType,r.timeout=i.timeout,i.headers)for(var n in i.headers)r.setRequestHeader(n,i.headers[n]);return i.header&&i.headerValue&&r.setRequestHeader(i.header,i.headerValue),i.requestedWith&&r.setRequestHeader("X-Requested-With",i.requestedWith),i.overrideMimeType&&r.overrideMimeType(i.overrideMimeType),i.withCredentials&&(r.withCredentials=!0),r.onload=t.onLoad.bind(t,r),r.onerror=t.onError.bind(t,r),r.onprogress=t.onProgress.bind(t),r.ontimeout=t.onError.bind(t,r),r.send(),r}var o=t.url.split(";base64,").pop()||t.url.split(",").pop(),a={responseText:atob(o)};t.onBase64Load(a)}},92638:t=>{t.exports=function(t,e,i,s,r,n){return void 0===t&&(t=""),void 0===e&&(e=!0),void 0===i&&(i=""),void 0===s&&(s=""),void 0===r&&(r=0),void 0===n&&(n=!1),{responseType:t,async:e,user:i,password:s,timeout:r,headers:void 0,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:n}}},23906:t=>{t.exports={LOADER_IDLE:0,LOADER_LOADING:1,LOADER_PROCESSING:2,LOADER_COMPLETE:3,LOADER_SHUTDOWN:4,LOADER_DESTROYED:5,FILE_PENDING:10,FILE_LOADING:11,FILE_LOADED:12,FILE_FAILED:13,FILE_PROCESSING:14,FILE_ERRORED:16,FILE_COMPLETE:17,FILE_DESTROYED:18,FILE_POPULATED:19,FILE_PENDING_DESTROY:20}},42155:t=>{t.exports="addfile"},38991:t=>{t.exports="complete"},27540:t=>{t.exports="filecomplete"},87464:t=>{t.exports="filecomplete-"},94486:t=>{t.exports="loaderror"},13035:t=>{t.exports="load"},38144:t=>{t.exports="fileprogress"},97520:t=>{t.exports="postprocess"},85595:t=>{t.exports="progress"},55680:t=>{t.exports="start"},54899:(t,e,i)=>{t.exports={ADD:i(42155),COMPLETE:i(38991),FILE_COMPLETE:i(27540),FILE_KEY_COMPLETE:i(87464),FILE_LOAD_ERROR:i(94486),FILE_LOAD:i(13035),FILE_PROGRESS:i(38144),POST_PROCESS:i(97520),PROGRESS:i(85595),START:i(55680)}},14135:(t,e,i)=>{var s=i(83419),r=i(74099),n=i(518),o=i(54899),a=new s({Extends:n,initialize:function(t,e,i,s,r){n.call(this,t,e,i,s,r),this.type="animationJSON"},onProcess:function(){this.loader.once(o.POST_PROCESS,this.onLoadComplete,this),n.prototype.onProcess.call(this)},onLoadComplete:function(){this.loader.systems.anims.fromJSON(this.data)}});r.register("animation",(function(t,e,i,s){if(Array.isArray(t))for(var r=0;r{var s=i(83419),r=i(74099),n=i(95540),o=i(19550),a=i(41212),h=i(518),l=i(26430),u=new s({Extends:l,initialize:function(t,e,i,s,r,u){var c,d;if(a(e)){var p=e;e=n(p,"key"),c=new o(t,{key:e,url:n(p,"textureURL"),extension:n(p,"textureExtension","png"),normalMap:n(p,"normalMap"),xhrSettings:n(p,"textureXhrSettings")}),d=new h(t,{key:e,url:n(p,"atlasURL"),extension:n(p,"atlasExtension","json"),xhrSettings:n(p,"atlasXhrSettings")})}else c=new o(t,e,i,r),d=new h(t,e,s,u);c.linkFile?l.call(this,t,"atlasjson",e,[c,d,c.linkFile]):l.call(this,t,"atlasjson",e,[c,d])},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlas(t.key,t.data,e.data,i),e.addToCache(),this.complete=!0}}});r.register("aseprite",(function(t,e,i,s,r){var n;if(Array.isArray(t))for(var o=0;o{var s=i(83419),r=i(74099),n=i(95540),o=i(19550),a=i(41212),h=i(518),l=i(26430),u=new s({Extends:l,initialize:function(t,e,i,s,r,u){var c,d;if(a(e)){var p=e;e=n(p,"key"),c=new o(t,{key:e,url:n(p,"textureURL"),extension:n(p,"textureExtension","png"),normalMap:n(p,"normalMap"),xhrSettings:n(p,"textureXhrSettings")}),d=new h(t,{key:e,url:n(p,"atlasURL"),extension:n(p,"atlasExtension","json"),xhrSettings:n(p,"atlasXhrSettings")})}else c=new o(t,e,i,r),d=new h(t,e,s,u);c.linkFile?l.call(this,t,"atlasjson",e,[c,d,c.linkFile]):l.call(this,t,"atlasjson",e,[c,d])},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlas(t.key,t.data,e.data,i),this.complete=!0}}});r.register("atlas",(function(t,e,i,s,r){var n;if(Array.isArray(t))for(var o=0;o{var s=i(83419),r=i(74099),n=i(95540),o=i(19550),a=i(41212),h=i(26430),l=i(57318),u=new s({Extends:h,initialize:function(t,e,i,s,r,u){var c,d;if(a(e)){var p=e;e=n(p,"key"),c=new o(t,{key:e,url:n(p,"textureURL"),extension:n(p,"textureExtension","png"),normalMap:n(p,"normalMap"),xhrSettings:n(p,"textureXhrSettings")}),d=new l(t,{key:e,url:n(p,"atlasURL"),extension:n(p,"atlasExtension","xml"),xhrSettings:n(p,"atlasXhrSettings")})}else c=new o(t,e,i,r),d=new l(t,e,s,u);c.linkFile?h.call(this,t,"atlasxml",e,[c,d,c.linkFile]):h.call(this,t,"atlasxml",e,[c,d])},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null;this.loader.textureManager.addAtlasXML(t.key,t.data,e.data,i),this.complete=!0}}});r.register("atlasXML",(function(t,e,i,s,r){var n;if(Array.isArray(t))for(var o=0;o{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(89749),l=i(41212),u=new s({Extends:n,initialize:function(t,e,i,s,r){if(l(e)){var o=e;e=a(o,"key"),s=a(o,"xhrSettings"),r=a(o,"context",r)}var h={type:"audio",cache:t.cacheManager.audio,extension:i.type,responseType:"arraybuffer",key:e,url:i.url,xhrSettings:s,config:{context:r}};n.call(this,t,h)},onProcess:function(){this.state=r.FILE_PROCESSING;var t=this;this.config.context.decodeAudioData(this.xhrLoader.response,(function(e){t.data=e,t.onProcessComplete()}),(function(e){console.error("Error decoding audio: "+t.key+" - ",e?e.message:null),t.onProcessError()})),this.config.context=null}});u.create=function(t,e,i,s,r){var n=t.systems.game,o=n.config.audio,c=n.device.audio;l(e)&&(i=a(e,"url",[]),s=a(e,"config",{}));var d=u.getAudioURL(n,i);return d?c.webAudio&&!o.disableWebAudio?new u(t,e,d,r,n.sound.context):new h(t,e,d,s):(console.warn('No audio URLs for "%s" matched this device',e),null)},u.getAudioURL=function(t,e){Array.isArray(e)||(e=[e]);for(var i=0;i{var s=i(21097),r=i(83419),n=i(74099),o=i(95540),a=i(41212),h=i(518),l=i(26430),u=new r({Extends:l,initialize:function(t,e,i,r,n,u,c){if(a(e)){var d=e;e=o(d,"key"),i=o(d,"jsonURL"),r=o(d,"audioURL"),n=o(d,"audioConfig"),u=o(d,"audioXhrSettings"),c=o(d,"jsonXhrSettings")}var p;if(r){var f=s.create(t,e,r,n,u);f&&(p=new h(t,e,i,c),l.call(this,t,"audiosprite",e,[f,p]),this.config.resourceLoad=!1)}else p=new h(t,e,i,c),l.call(this,t,"audiosprite",e,[p]),this.config.resourceLoad=!0,this.config.audioConfig=n,this.config.audioXhrSettings=u},onFileComplete:function(t){if(-1!==this.files.indexOf(t)&&(this.pending--,this.config.resourceLoad&&"json"===t.type&&t.data.hasOwnProperty("resources"))){var e=t.data.resources,i=o(this.config,"audioConfig"),r=o(this.config,"audioXhrSettings"),n=s.create(this.loader,t.key,e,i,r);n&&(this.addToMultiFile(n),this.loader.addFile(n))}},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1];t.addToCache(),e.addToCache(),this.complete=!0}}});n.register("audioSprite",(function(t,e,i,s,r,n){var o,a=this.systems.game,h=a.config.audio,l=a.device.audio;if(h&&h.noAudio||!l.webAudio&&!l.audioData)return this;if(Array.isArray(t))for(var c=0;c{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s,r){var o="bin";if(h(e)){var l=e;e=a(l,"key"),i=a(l,"url"),s=a(l,"xhrSettings"),o=a(l,"extension",o),r=a(l,"dataType",r)}var u={type:"binary",cache:t.cacheManager.binary,extension:o,responseType:"arraybuffer",key:e,url:i,xhrSettings:s,config:{dataType:r}};n.call(this,t,u)},onProcess:function(){this.state=r.FILE_PROCESSING;var t=this.config.dataType;this.data=t?new t(this.xhrLoader.response):this.xhrLoader.response,this.onProcessComplete()}});o.register("binary",(function(t,e,i,s){if(Array.isArray(t))for(var r=0;r{var s=i(83419),r=i(74099),n=i(95540),o=i(19550),a=i(41212),h=i(26430),l=i(21859),u=i(57318),c=new s({Extends:h,initialize:function(t,e,i,s,r,l){var c,d;if(a(e)){var p=e;e=n(p,"key"),c=new o(t,{key:e,url:n(p,"textureURL"),extension:n(p,"textureExtension","png"),normalMap:n(p,"normalMap"),xhrSettings:n(p,"textureXhrSettings")}),d=new u(t,{key:e,url:n(p,"fontDataURL"),extension:n(p,"fontDataExtension","xml"),xhrSettings:n(p,"fontDataXhrSettings")})}else c=new o(t,e,i,r),d=new u(t,e,s,l);c.linkFile?h.call(this,t,"bitmapfont",e,[c,d,c.linkFile]):h.call(this,t,"bitmapfont",e,[c,d])},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1];t.addToCache();var i=t.cache.get(t.key),s=l(e.data,t.cache.getFrame(t.key),0,0,i);this.loader.cacheManager.bitmapFont.add(t.key,{data:s,texture:t.key,frame:null}),this.complete=!0}}});r.register("bitmapFont",(function(t,e,i,s,r){var n;if(Array.isArray(t))for(var o=0;o{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s){var r="css";if(h(e)){var o=e;e=a(o,"key"),i=a(o,"url"),s=a(o,"xhrSettings"),r=a(o,"extension",r)}var l={type:"script",cache:!1,extension:r,responseType:"text",key:e,url:i,xhrSettings:s};n.call(this,t,l)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=document.createElement("style"),this.data.defer=!1,this.data.innerHTML=this.xhrLoader.responseText,document.head.appendChild(this.data),this.onProcessComplete()}});o.register("css",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(38734),r=i(85722),n=i(83419),o=i(74099),a=i(95540),h=i(19550),l=i(41212),u=i(518),c=i(31403),d=i(46975),p=i(59327),f=i(26430),g=i(82038),m=i(55222),v=new n({Extends:f,initialize:function(t,e,i,s){if(i.multiAtlasURL){var n=new u(t,{key:e,url:i.multiAtlasURL,xhrSettings:s,config:i});f.call(this,t,"texture",e,[n])}else{var o=i.textureURL.substr(i.textureURL.length-3);i.type||(i.type="ktx"===o.toLowerCase()?"KTX":"PVR");var a=new r(t,{key:e,url:i.textureURL,extension:o,xhrSettings:s,config:i});if(i.atlasURL){var h=new u(t,{key:e,url:i.atlasURL,xhrSettings:s,config:i});f.call(this,t,"texture",e,[a,h])}else f.call(this,t,"texture",e,[a])}this.config=i},onFileComplete:function(t){if(-1!==this.files.indexOf(t)){if(this.pending--,!this.config.multiAtlasURL)return;if("json"===t.type&&t.data.hasOwnProperty("textures")){var e=t.data.textures,i=this.config,s=this.loader,n=s.baseURL,o=s.path,h=s.prefix,l=a(i,"multiBaseURL",this.baseURL),u=a(i,"multiPath",this.path),c=a(i,"prefix",this.prefix),d=a(i,"textureXhrSettings");l&&s.setBaseURL(l),u&&s.setPath(u),c&&s.setPrefix(c);for(var p=0;p{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=i(73894),u=new s({Extends:n,initialize:function(t,e,i,s,r){var o="glsl";if(h(e)){var l=e;e=a(l,"key"),i=a(l,"url"),s=a(l,"shaderType","fragment"),r=a(l,"xhrSettings"),o=a(l,"extension",o)}else void 0===s&&(s="fragment");var u={type:"glsl",cache:t.cacheManager.shader,extension:o,responseType:"text",key:e,url:i,config:{shaderType:s},xhrSettings:r};n.call(this,t,u)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var t=this.data.split("\n"),e=this.extractBlock(t,0);if(e)for(;e;){var i=this.getShaderName(e.header),s=this.getShaderType(e.header),r=this.getShaderUniforms(e.header),n=e.shader;if(this.cache.has(i)){var o=this.cache.get(i);"fragment"===s?o.fragmentSrc=n:o.vertexSrc=n,o.uniforms||(o.uniforms=r)}else"fragment"===s?this.cache.add(i,new l(i,n,"",r)):this.cache.add(i,new l(i,"",n,r));e=this.extractBlock(t,e.offset)}else"fragment"===this.config.shaderType?this.cache.add(this.key,new l(this.key,this.data)):this.cache.add(this.key,new l(this.key,"",this.data))},getShaderName:function(t){for(var e=0;e{var s=i(83419),r=i(54899),n=i(41299),o=i(95540),a=i(98356),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s){if(h(e)){var r=e;e=o(r,"key"),s=o(r,"config",s)}var a={type:"audio",cache:t.cacheManager.audio,extension:i.type,key:e,url:i.url,config:s};n.call(this,t,a),this.locked="ontouchstart"in window,this.loaded=!1,this.filesLoaded=0,this.filesTotal=0},onLoad:function(){this.loaded||(this.loaded=!0,this.loader.nextFile(this,!0))},onError:function(){for(var t=0;t{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s){var r="html";if(h(e)){var o=e;e=a(o,"key"),i=a(o,"url"),s=a(o,"xhrSettings"),r=a(o,"extension",r)}var l={type:"text",cache:t.cacheManager.html,extension:r,responseType:"text",key:e,url:i,xhrSettings:s};n.call(this,t,l)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});o.register("html",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s,r,o){void 0===s&&(s=512),void 0===r&&(r=512);var l="html";if(h(e)){var u=e;e=a(u,"key"),i=a(u,"url"),o=a(u,"xhrSettings"),l=a(u,"extension",l),s=a(u,"width",s),r=a(u,"height",r)}var c={type:"html",cache:t.textureManager,extension:l,responseType:"text",key:e,url:i,xhrSettings:o,config:{width:s,height:r}};n.call(this,t,c)},onProcess:function(){this.state=r.FILE_PROCESSING;var t=this.config.width,e=this.config.height,i=[];i.push(''),i.push(''),i.push(''),i.push(this.xhrLoader.responseText),i.push(""),i.push(""),i.push("");var s=[i.join("\n")],o=this;try{var a=new window.Blob(s,{type:"image/svg+xml;charset=utf-8"})}catch(h){return o.state=r.FILE_ERRORED,void o.onProcessComplete()}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){n.revokeObjectURL(o.data),o.onProcessComplete()},this.data.onerror=function(){n.revokeObjectURL(o.data),o.onProcessError()},n.createObjectURL(this.data,a,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});o.register("htmlTexture",(function(t,e,i,s,r){if(Array.isArray(t))for(var n=0;n{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=i(98356),u=new s({Extends:n,initialize:function t(e,i,s,r,o){var l,u="png";if(h(i)){var c=i;i=a(c,"key"),s=a(c,"url"),l=a(c,"normalMap"),r=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"frameConfig")}Array.isArray(s)&&(l=s[1],s=s[0]);var d={type:"image",cache:e.textureManager,extension:u,responseType:"blob",key:i,url:s,xhrSettings:r,config:o};if(n.call(this,e,d),l){var p=new t(e,this.key,l,r,o);p.type="normalMap",this.setLink(p),e.addFile(p)}this.useImageElementLoad="HTMLImageElement"===e.imageLoadType||this.base64,this.useImageElementLoad&&(this.load=this.loadImage,this.onProcess=this.onProcessImage)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var t=this;this.data.onload=function(){n.revokeObjectURL(t.data),t.onProcessComplete()},this.data.onerror=function(){n.revokeObjectURL(t.data),t.onProcessError()},n.createObjectURL(this.data,this.xhrLoader.response,"image/png")},onProcessImage:function(){var t=this.state;this.state=r.FILE_PROCESSING,t===r.FILE_LOADED?this.onProcessComplete():this.onProcessError()},loadImage:function(){this.state=r.FILE_LOADING,this.src=l(this,this.loader.baseURL),this.data=new Image,this.data.crossOrigin=this.crossOrigin;var t=this;this.data.onload=function(){t.state=r.FILE_LOADED,t.loader.nextFile(t,!0)},this.data.onerror=function(){t.loader.nextFile(t,!1)},this.data.src=this.src},addToCache:function(){var t=this.linkFile;t?t.state>=r.FILE_COMPLETE&&("spritesheet"===t.type?t.addToCache():"normalMap"===this.type?this.cache.addImage(this.key,t.data,this.data):this.cache.addImage(this.key,this.data,t.data)):this.cache.addImage(this.key,this.data)}});o.register("image",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(35154),l=i(41212),u=new s({Extends:n,initialize:function(t,e,i,s,o){var u="json";if(l(e)){var c=e;e=a(c,"key"),i=a(c,"url"),s=a(c,"xhrSettings"),u=a(c,"extension",u),o=a(c,"dataKey",o)}var d={type:"json",cache:t.cacheManager.json,extension:u,responseType:"text",key:e,url:i,xhrSettings:s,config:o};n.call(this,t,d),l(i)&&(this.data=o?h(i,o):i,this.state=r.FILE_POPULATED)},onProcess:function(){if(this.state!==r.FILE_POPULATED){this.state=r.FILE_PROCESSING;try{var t=JSON.parse(this.xhrLoader.responseText)}catch(i){throw this.onProcessError(),i}var e=this.config;this.data="string"==typeof e?h(t,e,t):t}this.onProcessComplete()}});o.register("json",(function(t,e,i,s){if(Array.isArray(t))for(var r=0;r{var s=i(83419),r=i(74099),n=i(95540),o=i(19550),a=i(41212),h=i(518),l=i(26430),u=new s({Extends:l,initialize:function(t,e,i,s,r,o,u){if(a(e)){var c=e;e=n(c,"key"),i=n(c,"url",!1)?n(c,"url"):n(c,"atlasURL"),o=n(c,"xhrSettings"),s=n(c,"path"),r=n(c,"baseURL"),u=n(c,"textureXhrSettings")}var d=new h(t,e,i,o);l.call(this,t,"multiatlas",e,[d]),this.config.path=s,this.config.baseURL=r,this.config.textureXhrSettings=u},onFileComplete:function(t){if(-1!==this.files.indexOf(t)&&(this.pending--,"json"===t.type&&t.data.hasOwnProperty("textures"))){var e=t.data.textures,i=this.config,s=this.loader,r=s.baseURL,a=s.path,h=s.prefix,l=n(i,"baseURL",this.baseURL),u=n(i,"path",this.path),c=n(i,"prefix",this.prefix),d=n(i,"textureXhrSettings");s.setBaseURL(l),s.setPath(u),s.setPrefix(c);for(var p=0;p{var s=i(83419),r=i(74099),n=i(95540),o=i(41212),a=i(26430),h=i(34328),l=new s({Extends:a,initialize:function(t,e,i,s){var r="js",l=[];if(o(e)){var u=e;e=n(u,"key"),i=n(u,"url"),s=n(u,"xhrSettings"),r=n(u,"extension",r)}Array.isArray(i)||(i=[i]);for(var c=0;c{var s=i(83419),r=i(74099),n=i(95540),o=i(41212),a=i(26430),h=i(85048),l=i(61485),u=i(78776),c=new s({Extends:a,initialize:function(t,e,i,s,r,h){var l,c,d=t.cacheManager.obj;if(o(e)){var p=e;e=n(p,"key"),l=new u(t,{key:e,type:"obj",cache:d,url:n(p,"url"),extension:n(p,"extension","obj"),xhrSettings:n(p,"xhrSettings"),config:{flipUV:n(p,"flipUV",r)}}),(s=n(p,"matURL"))&&(c=new u(t,{key:e,type:"mat",cache:d,url:s,extension:n(p,"matExtension","mat"),xhrSettings:n(p,"xhrSettings")}))}else l=new u(t,{key:e,url:i,type:"obj",cache:d,extension:"obj",xhrSettings:h,config:{flipUV:r}}),s&&(c=new u(t,{key:e,url:s,type:"mat",cache:d,extension:"mat",xhrSettings:h}));a.call(this,t,"obj",e,[l,c])},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1],i=h(t.data,t.config.flipUV);e&&(i.materials=l(e.data)),t.cache.add(t.key,i),this.complete=!0}}});r.register("obj",(function(t,e,i,s,r){var n;if(Array.isArray(t))for(var o=0;o{var s=i(83419),r=i(23906),n=i(74099),o=i(518),a=new s({Extends:o,initialize:function(t,e,i,s,r){o.call(this,t,e,i,s,r),this.type="packfile"},onProcess:function(){if(this.state!==r.FILE_POPULATED&&(this.state=r.FILE_PROCESSING,this.data=JSON.parse(this.xhrLoader.responseText)),this.data.hasOwnProperty("files")&&this.config){var t={};t[this.config]=this.data,this.data=t}this.loader.addPack(this.data,this.config),this.onProcessComplete()}});n.register("pack",(function(t,e,i,s){if(Array.isArray(t))for(var r=0;r{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s,o,l){var u="js";if(h(e)){var c=e;e=a(c,"key"),i=a(c,"url"),l=a(c,"xhrSettings"),u=a(c,"extension",u),s=a(c,"start"),o=a(c,"mapping")}var d={type:"plugin",cache:!1,extension:u,responseType:"text",key:e,url:i,xhrSettings:l,config:{start:s,mapping:o}};n.call(this,t,d),"function"==typeof i&&(this.data=i,this.state=r.FILE_POPULATED)},onProcess:function(){var t=this.loader.systems.plugins,e=this.config,i=a(e,"start",!1),s=a(e,"mapping",null);if(this.state===r.FILE_POPULATED)t.install(this.key,this.data,i,s);else{this.state=r.FILE_PROCESSING,this.data=document.createElement("script"),this.data.language="javascript",this.data.type="text/javascript",this.data.defer=!1,this.data.text=this.xhrLoader.responseText,document.head.appendChild(this.data);var n=t.install(this.key,window[this.key],i,s);(i||s)&&(this.loader.systems[s]=n,this.loader.scene[s]=n)}this.onProcessComplete()}});o.register("plugin",(function(t,e,i,s,r){if(Array.isArray(t))for(var n=0;n{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s,r){var o="svg";if(h(e)){var l=e;e=a(l,"key"),i=a(l,"url"),s=a(l,"svgConfig",{}),r=a(l,"xhrSettings"),o=a(l,"extension",o)}var u={type:"svg",cache:t.textureManager,extension:o,responseType:"text",key:e,url:i,xhrSettings:r,config:{width:a(s,"width"),height:a(s,"height"),scale:a(s,"scale")}};n.call(this,t,u)},onProcess:function(){this.state=r.FILE_PROCESSING;var t=this.xhrLoader.responseText,e=[t],i=this.config.width,s=this.config.height,o=this.config.scale;t:if(i&&s||o){var a=(new DOMParser).parseFromString(t,"text/xml").getElementsByTagName("svg")[0],h=a.hasAttribute("viewBox"),l=parseFloat(a.getAttribute("width")),u=parseFloat(a.getAttribute("height"));if(!h&&l&&u)a.setAttribute("viewBox","0 0 "+l+" "+u);else if(h&&!l&&!u){var c=a.getAttribute("viewBox").split(/\s+|,/);l=c[2],u=c[3]}if(o){if(!l||!u)break t;i=l*o,s=u*o}a.setAttribute("width",i.toString()+"px"),a.setAttribute("height",s.toString()+"px"),e=[(new XMLSerializer).serializeToString(a)]}try{var d=new window.Blob(e,{type:"image/svg+xml;charset=utf-8"})}catch(g){return void this.onProcessError()}this.data=new Image,this.data.crossOrigin=this.crossOrigin;var p=this,f=!1;this.data.onload=function(){f||n.revokeObjectURL(p.data),p.onProcessComplete()},this.data.onerror=function(){f?p.onProcessError():(f=!0,n.revokeObjectURL(p.data),p.data.src="data:image/svg+xml,"+encodeURIComponent(e.join("")))},n.createObjectURL(this.data,d,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});o.register("svg",(function(t,e,i,s){if(Array.isArray(t))for(var r=0;r{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s){var r="js";if(h(e)){var o=e;e=a(o,"key"),i=a(o,"url"),s=a(o,"xhrSettings"),r=a(o,"extension",r)}var l={type:"text",extension:r,responseType:"text",key:e,url:i,xhrSettings:s};n.call(this,t,l)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var t=this.data.concat("(function(){\nreturn new "+this.key+"();\n}).call(this);"),e=eval;this.loader.sceneManager.add(this.key,e(t)),this.complete=!0}});o.register("sceneFile",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s,o,l){var u="js";if(h(e)){var c=e;e=a(c,"key"),i=a(c,"url"),l=a(c,"xhrSettings"),u=a(c,"extension",u),s=a(c,"systemKey"),o=a(c,"sceneKey")}var d={type:"scenePlugin",cache:!1,extension:u,responseType:"text",key:e,url:i,xhrSettings:l,config:{systemKey:s,sceneKey:o}};n.call(this,t,d),"function"==typeof i&&(this.data=i,this.state=r.FILE_POPULATED)},onProcess:function(){var t=this.loader.systems.plugins,e=this.config,i=this.key,s=a(e,"systemKey",i),n=a(e,"sceneKey",i);this.state===r.FILE_POPULATED?t.installScenePlugin(s,this.data,n,this.loader.scene,!0):(this.state=r.FILE_PROCESSING,this.data=document.createElement("script"),this.data.language="javascript",this.data.type="text/javascript",this.data.defer=!1,this.data.text=this.xhrLoader.responseText,document.head.appendChild(this.data),t.installScenePlugin(s,window[this.key],n,this.loader.scene,!0)),this.onProcessComplete()}});o.register("scenePlugin",(function(t,e,i,s,r){if(Array.isArray(t))for(var n=0;n{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s,r){var o="js";if(h(e)){var l=e;e=a(l,"key"),i=a(l,"url"),s=a(l,"type","script"),r=a(l,"xhrSettings"),o=a(l,"extension",o)}else void 0===s&&(s="script");var u={type:s,cache:!1,extension:o,responseType:"text",key:e,url:i,xhrSettings:r};n.call(this,t,u)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=document.createElement("script"),this.data.language="javascript",this.data.type="text/javascript",this.data.defer=!1,this.data.text=this.xhrLoader.responseText,document.head.appendChild(this.data),this.onProcessComplete()}});o.register("script",(function(t,e,i,s){if(Array.isArray(t))for(var r=0;r{var s=i(83419),r=i(23906),n=i(74099),o=i(19550),a=new s({Extends:o,initialize:function(t,e,i,s,r){o.call(this,t,e,i,r,s),this.type="spritesheet"},addToCache:function(){var t=this.linkFile;t?t.state>=r.FILE_COMPLETE&&("normalMap"===this.type?this.cache.addSpriteSheet(this.key,t.data,this.config,this.data):this.cache.addSpriteSheet(this.key,this.data,this.config,t.data)):this.cache.addSpriteSheet(this.key,this.data,this.config)}});n.register("spritesheet",(function(t,e,i,s){if(Array.isArray(t))for(var r=0;r{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=new s({Extends:n,initialize:function(t,e,i,s){var r="text",o="txt",l=t.cacheManager.text;if(h(e)){var u=e;e=a(u,"key"),i=a(u,"url"),s=a(u,"xhrSettings"),o=a(u,"extension",o),r=a(u,"type",r),l=a(u,"cache",l)}var c={type:r,cache:l,extension:o,responseType:"text",key:e,url:i,xhrSettings:s};n.call(this,t,c)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});o.register("text",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=i(80341),u=new s({Extends:n,initialize:function(t,e,i,s){var r="csv";if(h(e)){var o=e;e=a(o,"key"),i=a(o,"url"),s=a(o,"xhrSettings"),r=a(o,"extension",r)}var u={type:"tilemapCSV",cache:t.cacheManager.tilemap,extension:r,responseType:"text",key:e,url:i,xhrSettings:s};n.call(this,t,u),this.tilemapFormat=l.CSV},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var t={format:this.tilemapFormat,data:this.data};this.cache.add(this.key,t)}});o.register("tilemapCSV",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(83419),r=i(74099),n=i(518),o=i(80341),a=new s({Extends:n,initialize:function(t,e,i,s){n.call(this,t,e,i,s),this.type="tilemapJSON",this.cache=t.cacheManager.tilemap},addToCache:function(){var t={format:o.WELTMEISTER,data:this.data};this.cache.add(this.key,t)}});r.register("tilemapImpact",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(83419),r=i(74099),n=i(518),o=i(80341),a=new s({Extends:n,initialize:function(t,e,i,s){n.call(this,t,e,i,s),this.type="tilemapJSON",this.cache=t.cacheManager.tilemap},addToCache:function(){var t={format:o.TILED_JSON,data:this.data};this.cache.add(this.key,t)}});r.register("tilemapTiledJSON",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(83419),r=i(74099),n=i(95540),o=i(19550),a=i(41212),h=i(26430),l=i(78776),u=new s({Extends:h,initialize:function(t,e,i,s,r,u){var c,d;if(a(e)){var p=e;e=n(p,"key"),c=new o(t,{key:e,url:n(p,"textureURL"),extension:n(p,"textureExtension","png"),normalMap:n(p,"normalMap"),xhrSettings:n(p,"textureXhrSettings")}),d=new l(t,{key:e,url:n(p,"atlasURL"),extension:n(p,"atlasExtension","txt"),xhrSettings:n(p,"atlasXhrSettings")})}else c=new o(t,e,i,r),d=new l(t,e,s,u);c.linkFile?h.call(this,t,"unityatlas",e,[c,d,c.linkFile]):h.call(this,t,"unityatlas",e,[c,d])},addToCache:function(){if(this.isReadyToProcess()){var t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null;this.loader.textureManager.addUnityAtlas(t.key,t.data,e.data,i),this.complete=!0}}});r.register("unityAtlas",(function(t,e,i,s,r){var n;if(Array.isArray(t))for(var o=0;o{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(98356),h=i(95540),l=i(41212),u=new s({Extends:n,initialize:function(t,e,i,s){if(void 0===s&&(s=!1),l(e)){var r=e;e=h(r,"key"),i=h(r,"url",[]),s=h(r,"noAudio",!1)}var o=t.systems.game.device.video.getVideoURL(i);o||console.warn("VideoFile: No supported format for "+e);var a={type:"video",cache:t.cacheManager.video,extension:o.type,key:e,url:o.url,config:{noAudio:s}};n.call(this,t,a)},onProcess:function(){this.data={url:this.src,noAudio:this.config.noAudio,crossOrigin:this.crossOrigin},this.onProcessComplete()},load:function(){this.src=a(this,this.loader.baseURL),this.state=r.FILE_LOADED,this.loader.nextFile(this,!0)}});o.register("video",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(83419),r=i(23906),n=i(41299),o=i(74099),a=i(95540),h=i(41212),l=i(56836),u=new s({Extends:n,initialize:function(t,e,i,s){var r="xml";if(h(e)){var o=e;e=a(o,"key"),i=a(o,"url"),s=a(o,"xhrSettings"),r=a(o,"extension",r)}var l={type:"xml",cache:t.cacheManager.xml,extension:r,responseType:"text",key:e,url:i,xhrSettings:s};n.call(this,t,l)},onProcess:function(){this.state=r.FILE_PROCESSING,this.data=l(this.xhrLoader.responseText),this.data?this.onProcessComplete():this.onProcessError()}});o.register("xml",(function(t,e,i){if(Array.isArray(t))for(var s=0;s{t.exports={AnimationJSONFile:i(14135),AsepriteFile:i(76272),AtlasJSONFile:i(38734),AtlasXMLFile:i(74599),AudioFile:i(21097),AudioSpriteFile:i(89524),BinaryFile:i(85722),BitmapFontFile:i(97025),CompressedTextureFile:i(69559),CSSFile:i(16024),GLSLFile:i(47931),HTML5AudioFile:i(89749),HTMLFile:i(88470),HTMLTextureFile:i(14643),ImageFile:i(19550),JSONFile:i(518),MultiAtlasFile:i(59327),MultiScriptFile:i(99297),OBJFile:i(41846),PackFile:i(58610),PluginFile:i(48988),SceneFile:i(88423),ScenePluginFile:i(56812),ScriptFile:i(34328),SpriteSheetFile:i(85035),SVGFile:i(67397),TextFile:i(78776),TilemapCSVFile:i(49477),TilemapImpactFile:i(40807),TilemapJSONFile:i(56775),UnityAtlasFile:i(25771),VideoFile:i(33720),XMLFile:i(57318)}},57777:(t,e,i)=>{var s=i(23906),r=i(79291),n={Events:i(54899),FileTypes:i(64589),File:i(41299),FileTypesManager:i(74099),GetURL:i(98356),LoaderPlugin:i(74261),MergeXHRSettings:i(3374),MultiFile:i(26430),XHRLoader:i(84376),XHRSettings:i(92638)};n=r(!1,n,s),t.exports=n},53307:t=>{t.exports=function(t){for(var e=0,i=0;i{var s=i(6411);t.exports=function(t,e){return s(t)/s(e)/s(t-e)}},30976:t=>{t.exports=function(t,e){return Math.floor(Math.random()*(e-t+1)+t)}},87842:t=>{t.exports=function(t,e,i,s,r){var n=.5*(s-e),o=.5*(r-i),a=t*t;return(2*i-2*s+n+o)*(t*a)+(-3*i+3*s-2*n-o)*a+n*t+i}},26302:t=>{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);var s=Math.pow(i,-e);return Math.ceil(t*s)/s}},45319:t=>{t.exports=function(t,e,i){return Math.max(e,Math.min(i,t))}},39506:(t,e,i)=>{var s=i(36383);t.exports=function(t){return t*s.DEG_TO_RAD}},61241:t=>{t.exports=function(t,e){return Math.abs(t-e)}},38857:(t,e,i)=>{var s=i(45319),r=i(83419),n=i(37867),o=i(29747),a=new n,h=new r({initialize:function t(e,i,s,r){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=t.DefaultOrder),this._x=e,this._y=i,this._z=s,this._order=r,this.onChangeCallback=o},x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback(this)}},order:{get:function(){return this._order},set:function(t){this._order=t,this.onChangeCallback(this)}},set:function(t,e,i,s){return void 0===s&&(s=this._order),this._x=t,this._y=e,this._z=i,this._order=s,this.onChangeCallback(this),this},copy:function(t){return this.set(t.x,t.y,t.z,t.order)},setFromQuaternion:function(t,e,i){return void 0===e&&(e=this._order),void 0===i&&(i=!1),a.fromQuat(t),this.setFromRotationMatrix(a,e,i)},setFromRotationMatrix:function(t,e,i){void 0===e&&(e=this._order),void 0===i&&(i=!1);var r=t.val,n=r[0],o=r[4],a=r[8],h=r[1],l=r[5],u=r[9],c=r[2],d=r[6],p=r[10],f=0,g=0,m=0,v=.99999;switch(e){case"XYZ":g=Math.asin(s(a,-1,1)),Math.abs(a){t.exports=function(t){if(0===t)return 1;for(var e=t;--t;)e*=t;return e}},99472:t=>{t.exports=function(t,e){return Math.random()*(e-t)+t}},77623:t=>{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);var s=Math.pow(i,-e);return Math.floor(t*s)/s}},62945:(t,e,i)=>{var s=i(45319);t.exports=function(t,e,i){return(i-e)*(t=s(t,0,1))+e}},38265:t=>{t.exports=function(t,e){return t/e/1e3}},78702:t=>{t.exports=function(t){return t==parseFloat(t)?!(t%2):void 0}},94883:t=>{t.exports=function(t){return t===parseFloat(t)?!(t%2):void 0}},28915:t=>{t.exports=function(t,e,i){return(e-t)*i+t}},94908:t=>{t.exports=function(t,e,i){return void 0===i&&(i=0),t.clone().lerp(e,i)}},94434:(t,e,i)=>{var s=new(i(83419))({initialize:function(t){this.val=new Float32Array(9),t?this.copy(t):this.identity()},clone:function(){return new s(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,i=t.val;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],this},fromMat4:function(t){var e=t.val,i=this.val;return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[4],i[4]=e[5],i[5]=e[6],i[6]=e[8],i[7]=e[9],i[8]=e[10],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],s=t[5];return t[1]=t[3],t[2]=t[6],t[3]=e,t[5]=t[7],t[6]=i,t[7]=s,this},invert:function(){var t=this.val,e=t[0],i=t[1],s=t[2],r=t[3],n=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=l*n-o*h,c=-l*r+o*a,d=h*r-n*a,p=e*u+i*c+s*d;return p?(p=1/p,t[0]=u*p,t[1]=(-l*i+s*h)*p,t[2]=(o*i-s*n)*p,t[3]=c*p,t[4]=(l*e-s*a)*p,t[5]=(-o*e+s*r)*p,t[6]=d*p,t[7]=(-h*e+i*a)*p,t[8]=(n*e-i*r)*p,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],s=t[2],r=t[3],n=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return t[0]=n*l-o*h,t[1]=s*h-i*l,t[2]=i*o-s*n,t[3]=o*a-r*l,t[4]=e*l-s*a,t[5]=s*r-e*o,t[6]=r*h-n*a,t[7]=i*a-e*h,t[8]=e*n-i*r,this},determinant:function(){var t=this.val,e=t[0],i=t[1],s=t[2],r=t[3],n=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return e*(l*n-o*h)+i*(-l*r+o*a)+s*(h*r-n*a)},multiply:function(t){var e=this.val,i=e[0],s=e[1],r=e[2],n=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=t.val,d=c[0],p=c[1],f=c[2],g=c[3],m=c[4],v=c[5],y=c[6],x=c[7],w=c[8];return e[0]=d*i+p*n+f*h,e[1]=d*s+p*o+f*l,e[2]=d*r+p*a+f*u,e[3]=g*i+m*n+v*h,e[4]=g*s+m*o+v*l,e[5]=g*r+m*a+v*u,e[6]=y*i+x*n+w*h,e[7]=y*s+x*o+w*l,e[8]=y*r+x*a+w*u,this},translate:function(t){var e=this.val,i=t.x,s=t.y;return e[6]=i*e[0]+s*e[3]+e[6],e[7]=i*e[1]+s*e[4]+e[7],e[8]=i*e[2]+s*e[5]+e[8],this},rotate:function(t){var e=this.val,i=e[0],s=e[1],r=e[2],n=e[3],o=e[4],a=e[5],h=Math.sin(t),l=Math.cos(t);return e[0]=l*i+h*n,e[1]=l*s+h*o,e[2]=l*r+h*a,e[3]=l*n-h*i,e[4]=l*o-h*s,e[5]=l*a-h*r,this},scale:function(t){var e=this.val,i=t.x,s=t.y;return e[0]=i*e[0],e[1]=i*e[1],e[2]=i*e[2],e[3]=s*e[3],e[4]=s*e[4],e[5]=s*e[5],this},fromQuat:function(t){var e=t.x,i=t.y,s=t.z,r=t.w,n=e+e,o=i+i,a=s+s,h=e*n,l=e*o,u=e*a,c=i*o,d=i*a,p=s*a,f=r*n,g=r*o,m=r*a,v=this.val;return v[0]=1-(c+p),v[3]=l+m,v[6]=u-g,v[1]=l-m,v[4]=1-(h+p),v[7]=d+f,v[2]=u+g,v[5]=d-f,v[8]=1-(h+c),this},normalFromMat4:function(t){var e=t.val,i=this.val,s=e[0],r=e[1],n=e[2],o=e[3],a=e[4],h=e[5],l=e[6],u=e[7],c=e[8],d=e[9],p=e[10],f=e[11],g=e[12],m=e[13],v=e[14],y=e[15],x=s*h-r*a,w=s*l-n*a,T=s*u-o*a,b=r*l-n*h,S=r*u-o*h,E=n*u-o*l,C=c*m-d*g,A=c*v-p*g,_=c*y-f*g,P=d*v-p*m,R=d*y-f*m,M=p*y-f*v,k=x*M-w*R+T*P+b*_-S*A+E*C;return k?(k=1/k,i[0]=(h*M-l*R+u*P)*k,i[1]=(l*_-a*M-u*A)*k,i[2]=(a*R-h*_+u*C)*k,i[3]=(n*R-r*M-o*P)*k,i[4]=(s*M-n*_+o*A)*k,i[5]=(r*_-s*R-o*C)*k,i[6]=(m*E-v*S+y*b)*k,i[7]=(v*T-g*E-y*w)*k,i[8]=(g*S-m*T+y*x)*k,this):null}});t.exports=s},37867:(t,e,i)=>{var s=i(83419),r=i(25836),n=1e-6,o=new s({initialize:function(t){this.val=new Float32Array(16),t?this.copy(t):this.identity()},clone:function(){return new o(this)},set:function(t){return this.copy(t)},setValues:function(t,e,i,s,r,n,o,a,h,l,u,c,d,p,f,g){var m=this.val;return m[0]=t,m[1]=e,m[2]=i,m[3]=s,m[4]=r,m[5]=n,m[6]=o,m[7]=a,m[8]=h,m[9]=l,m[10]=u,m[11]=c,m[12]=d,m[13]=p,m[14]=f,m[15]=g,this},copy:function(t){var e=t.val;return this.setValues(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])},fromArray:function(t){return this.setValues(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},zero:function(){return this.setValues(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)},transform:function(t,e,i){var s=a.fromQuat(i).val,r=e.x,n=e.y,o=e.z;return this.setValues(s[0]*r,s[1]*r,s[2]*r,0,s[4]*n,s[5]*n,s[6]*n,0,s[8]*o,s[9]*o,s[10]*o,0,t.x,t.y,t.z,1)},xyz:function(t,e,i){this.identity();var s=this.val;return s[12]=t,s[13]=e,s[14]=i,this},scaling:function(t,e,i){this.zero();var s=this.val;return s[0]=t,s[5]=e,s[10]=i,s[15]=1,this},identity:function(){return this.setValues(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)},transpose:function(){var t=this.val,e=t[1],i=t[2],s=t[3],r=t[6],n=t[7],o=t[11];return t[1]=t[4],t[2]=t[8],t[3]=t[12],t[4]=e,t[6]=t[9],t[7]=t[13],t[8]=i,t[9]=r,t[11]=t[14],t[12]=s,t[13]=n,t[14]=o,this},getInverse:function(t){return this.copy(t),this.invert()},invert:function(){var t=this.val,e=t[0],i=t[1],s=t[2],r=t[3],n=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],p=t[12],f=t[13],g=t[14],m=t[15],v=e*o-i*n,y=e*a-s*n,x=e*h-r*n,w=i*a-s*o,T=i*h-r*o,b=s*h-r*a,S=l*f-u*p,E=l*g-c*p,C=l*m-d*p,A=u*g-c*f,_=u*m-d*f,P=c*m-d*g,R=v*P-y*_+x*A+w*C-T*E+b*S;return R?(R=1/R,this.setValues((o*P-a*_+h*A)*R,(s*_-i*P-r*A)*R,(f*b-g*T+m*w)*R,(c*T-u*b-d*w)*R,(a*C-n*P-h*E)*R,(e*P-s*C+r*E)*R,(g*x-p*b-m*y)*R,(l*b-c*x+d*y)*R,(n*_-o*C+h*S)*R,(i*C-e*_-r*S)*R,(p*T-f*x+m*v)*R,(u*x-l*T-d*v)*R,(o*E-n*A-a*S)*R,(e*A-i*E+s*S)*R,(f*y-p*w-g*v)*R,(l*w-u*y+c*v)*R)):this},adjoint:function(){var t=this.val,e=t[0],i=t[1],s=t[2],r=t[3],n=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],p=t[12],f=t[13],g=t[14],m=t[15];return this.setValues(o*(c*m-d*g)-u*(a*m-h*g)+f*(a*d-h*c),-(i*(c*m-d*g)-u*(s*m-r*g)+f*(s*d-r*c)),i*(a*m-h*g)-o*(s*m-r*g)+f*(s*h-r*a),-(i*(a*d-h*c)-o*(s*d-r*c)+u*(s*h-r*a)),-(n*(c*m-d*g)-l*(a*m-h*g)+p*(a*d-h*c)),e*(c*m-d*g)-l*(s*m-r*g)+p*(s*d-r*c),-(e*(a*m-h*g)-n*(s*m-r*g)+p*(s*h-r*a)),e*(a*d-h*c)-n*(s*d-r*c)+l*(s*h-r*a),n*(u*m-d*f)-l*(o*m-h*f)+p*(o*d-h*u),-(e*(u*m-d*f)-l*(i*m-r*f)+p*(i*d-r*u)),e*(o*m-h*f)-n*(i*m-r*f)+p*(i*h-r*o),-(e*(o*d-h*u)-n*(i*d-r*u)+l*(i*h-r*o)),-(n*(u*g-c*f)-l*(o*g-a*f)+p*(o*c-a*u)),e*(u*g-c*f)-l*(i*g-s*f)+p*(i*c-s*u),-(e*(o*g-a*f)-n*(i*g-s*f)+p*(i*a-s*o)),e*(o*c-a*u)-n*(i*c-s*u)+l*(i*a-s*o))},determinant:function(){var t=this.val,e=t[0],i=t[1],s=t[2],r=t[3],n=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],p=t[12],f=t[13],g=t[14],m=t[15];return(e*o-i*n)*(c*m-d*g)-(e*a-s*n)*(u*m-d*f)+(e*h-r*n)*(u*g-c*f)+(i*a-s*o)*(l*m-d*p)-(i*h-r*o)*(l*g-c*p)+(s*h-r*a)*(l*f-u*p)},multiply:function(t){var e=this.val,i=e[0],s=e[1],r=e[2],n=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=e[9],d=e[10],p=e[11],f=e[12],g=e[13],m=e[14],v=e[15],y=t.val,x=y[0],w=y[1],T=y[2],b=y[3];return e[0]=x*i+w*o+T*u+b*f,e[1]=x*s+w*a+T*c+b*g,e[2]=x*r+w*h+T*d+b*m,e[3]=x*n+w*l+T*p+b*v,x=y[4],w=y[5],T=y[6],b=y[7],e[4]=x*i+w*o+T*u+b*f,e[5]=x*s+w*a+T*c+b*g,e[6]=x*r+w*h+T*d+b*m,e[7]=x*n+w*l+T*p+b*v,x=y[8],w=y[9],T=y[10],b=y[11],e[8]=x*i+w*o+T*u+b*f,e[9]=x*s+w*a+T*c+b*g,e[10]=x*r+w*h+T*d+b*m,e[11]=x*n+w*l+T*p+b*v,x=y[12],w=y[13],T=y[14],b=y[15],e[12]=x*i+w*o+T*u+b*f,e[13]=x*s+w*a+T*c+b*g,e[14]=x*r+w*h+T*d+b*m,e[15]=x*n+w*l+T*p+b*v,this},multiplyLocal:function(t){var e=this.val,i=t.val;return this.setValues(e[0]*i[0]+e[1]*i[4]+e[2]*i[8]+e[3]*i[12],e[0]*i[1]+e[1]*i[5]+e[2]*i[9]+e[3]*i[13],e[0]*i[2]+e[1]*i[6]+e[2]*i[10]+e[3]*i[14],e[0]*i[3]+e[1]*i[7]+e[2]*i[11]+e[3]*i[15],e[4]*i[0]+e[5]*i[4]+e[6]*i[8]+e[7]*i[12],e[4]*i[1]+e[5]*i[5]+e[6]*i[9]+e[7]*i[13],e[4]*i[2]+e[5]*i[6]+e[6]*i[10]+e[7]*i[14],e[4]*i[3]+e[5]*i[7]+e[6]*i[11]+e[7]*i[15],e[8]*i[0]+e[9]*i[4]+e[10]*i[8]+e[11]*i[12],e[8]*i[1]+e[9]*i[5]+e[10]*i[9]+e[11]*i[13],e[8]*i[2]+e[9]*i[6]+e[10]*i[10]+e[11]*i[14],e[8]*i[3]+e[9]*i[7]+e[10]*i[11]+e[11]*i[15],e[12]*i[0]+e[13]*i[4]+e[14]*i[8]+e[15]*i[12],e[12]*i[1]+e[13]*i[5]+e[14]*i[9]+e[15]*i[13],e[12]*i[2]+e[13]*i[6]+e[14]*i[10]+e[15]*i[14],e[12]*i[3]+e[13]*i[7]+e[14]*i[11]+e[15]*i[15])},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var i=t.val,s=e.val,r=i[0],n=i[4],o=i[8],a=i[12],h=i[1],l=i[5],u=i[9],c=i[13],d=i[2],p=i[6],f=i[10],g=i[14],m=i[3],v=i[7],y=i[11],x=i[15],w=s[0],T=s[4],b=s[8],S=s[12],E=s[1],C=s[5],A=s[9],_=s[13],P=s[2],R=s[6],M=s[10],k=s[14],L=s[3],O=s[7],F=s[11],D=s[15];return this.setValues(r*w+n*E+o*P+a*L,h*w+l*E+u*P+c*L,d*w+p*E+f*P+g*L,m*w+v*E+y*P+x*L,r*T+n*C+o*R+a*O,h*T+l*C+u*R+c*O,d*T+p*C+f*R+g*O,m*T+v*C+y*R+x*O,r*b+n*A+o*M+a*F,h*b+l*A+u*M+c*F,d*b+p*A+f*M+g*F,m*b+v*A+y*M+x*F,r*S+n*_+o*k+a*D,h*S+l*_+u*k+c*D,d*S+p*_+f*k+g*D,m*S+v*_+y*k+x*D)},translate:function(t){return this.translateXYZ(t.x,t.y,t.z)},translateXYZ:function(t,e,i){var s=this.val;return s[12]=s[0]*t+s[4]*e+s[8]*i+s[12],s[13]=s[1]*t+s[5]*e+s[9]*i+s[13],s[14]=s[2]*t+s[6]*e+s[10]*i+s[14],s[15]=s[3]*t+s[7]*e+s[11]*i+s[15],this},scale:function(t){return this.scaleXYZ(t.x,t.y,t.z)},scaleXYZ:function(t,e,i){var s=this.val;return s[0]=s[0]*t,s[1]=s[1]*t,s[2]=s[2]*t,s[3]=s[3]*t,s[4]=s[4]*e,s[5]=s[5]*e,s[6]=s[6]*e,s[7]=s[7]*e,s[8]=s[8]*i,s[9]=s[9]*i,s[10]=s[10]*i,s[11]=s[11]*i,this},makeRotationAxis:function(t,e){var i=Math.cos(e),s=Math.sin(e),r=1-i,n=t.x,o=t.y,a=t.z,h=r*n,l=r*o;return this.setValues(h*n+i,h*o-s*a,h*a+s*o,0,h*o+s*a,l*o+i,l*a-s*n,0,h*a-s*o,l*a+s*n,r*a*a+i,0,0,0,0,1)},rotate:function(t,e){var i=this.val,s=e.x,r=e.y,o=e.z,a=Math.sqrt(s*s+r*r+o*o);if(Math.abs(a){t.exports=function(t,e,i){return Math.min(t+e,i)}},50040:t=>{t.exports=function(t){var e=t.length;if(0===e)return 0;t.sort((function(t,e){return t-e}));var i=Math.floor(e/2);return e%2==0?(t[i]+t[i-1])/2:t[i]}},37204:t=>{t.exports=function(t,e,i){return Math.max(t-e,i)}},65201:t=>{t.exports=function(t,e,i,s){void 0===i&&(i=e+1);var r=(t-e)/(i-e);return r>1?void 0!==s?(r=(s-t)/(s-i))<0&&(r=0):r=1:r<0&&(r=0),r}},15746:(t,e,i)=>{var s=i(83419),r=i(94434),n=i(29747),o=i(25836),a=1e-6,h=new Int8Array([1,2,0]),l=new Float32Array([0,0,0]),u=new o(1,0,0),c=new o(0,1,0),d=new o,p=new r,f=new s({initialize:function(t,e,i,s){this.onChangeCallback=n,this.set(t,e,i,s)},x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback(this)}},w:{get:function(){return this._w},set:function(t){this._w=t,this.onChangeCallback(this)}},copy:function(t){return this.set(t)},set:function(t,e,i,s,r){return void 0===r&&(r=!0),"object"==typeof t?(this._x=t.x||0,this._y=t.y||0,this._z=t.z||0,this._w=t.w||0):(this._x=t||0,this._y=e||0,this._z=i||0,this._w=s||0),r&&this.onChangeCallback(this),this},add:function(t){return this._x+=t.x,this._y+=t.y,this._z+=t.z,this._w+=t.w,this.onChangeCallback(this),this},subtract:function(t){return this._x-=t.x,this._y-=t.y,this._z-=t.z,this._w-=t.w,this.onChangeCallback(this),this},scale:function(t){return this._x*=t,this._y*=t,this._z*=t,this._w*=t,this.onChangeCallback(this),this},length:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return Math.sqrt(t*t+e*e+i*i+s*s)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return t*t+e*e+i*i+s*s},normalize:function(){var t=this.x,e=this.y,i=this.z,s=this.w,r=t*t+e*e+i*i+s*s;return r>0&&(r=1/Math.sqrt(r),this._x=t*r,this._y=e*r,this._z=i*r,this._w=s*r),this.onChangeCallback(this),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,s=this.y,r=this.z,n=this.w;return this.set(i+e*(t.x-i),s+e*(t.y-s),r+e*(t.z-r),n+e*(t.w-n))},rotationTo:function(t,e){var i=t.x*e.x+t.y*e.y+t.z*e.z;return i<-.999999?(d.copy(u).cross(t).length().999999?this.set(0,0,0,1):(d.copy(t).cross(e),this._x=d.x,this._y=d.y,this._z=d.z,this._w=1+i,this.normalize())},setAxes:function(t,e,i){var s=p.val;return s[0]=e.x,s[3]=e.y,s[6]=e.z,s[1]=i.x,s[4]=i.y,s[7]=i.z,s[2]=-t.x,s[5]=-t.y,s[8]=-t.z,this.fromMat3(p).normalize()},identity:function(){return this.set(0,0,0,1)},setAxisAngle:function(t,e){e*=.5;var i=Math.sin(e);return this.set(i*t.x,i*t.y,i*t.z,Math.cos(e))},multiply:function(t){var e=this.x,i=this.y,s=this.z,r=this.w,n=t.x,o=t.y,a=t.z,h=t.w;return this.set(e*h+r*n+i*a-s*o,i*h+r*o+s*n-e*a,s*h+r*a+e*o-i*n,r*h-e*n-i*o-s*a)},slerp:function(t,e){var i=this.x,s=this.y,r=this.z,n=this.w,o=t.x,h=t.y,l=t.z,u=t.w,c=i*o+s*h+r*l+n*u;c<0&&(c=-c,o=-o,h=-h,l=-l,u=-u);var d=1-e,p=e;if(1-c>a){var f=Math.acos(c),g=Math.sin(f);d=Math.sin((1-e)*f)/g,p=Math.sin(e*f)/g}return this.set(d*i+p*o,d*s+p*h,d*r+p*l,d*n+p*u)},invert:function(){var t=this.x,e=this.y,i=this.z,s=this.w,r=t*t+e*e+i*i+s*s,n=r?1/r:0;return this.set(-t*n,-e*n,-i*n,s*n)},conjugate:function(){return this._x=-this.x,this._y=-this.y,this._z=-this.z,this.onChangeCallback(this),this},rotateX:function(t){t*=.5;var e=this.x,i=this.y,s=this.z,r=this.w,n=Math.sin(t),o=Math.cos(t);return this.set(e*o+r*n,i*o+s*n,s*o-i*n,r*o-e*n)},rotateY:function(t){t*=.5;var e=this.x,i=this.y,s=this.z,r=this.w,n=Math.sin(t),o=Math.cos(t);return this.set(e*o-s*n,i*o+r*n,s*o+e*n,r*o-i*n)},rotateZ:function(t){t*=.5;var e=this.x,i=this.y,s=this.z,r=this.w,n=Math.sin(t),o=Math.cos(t);return this.set(e*o+i*n,i*o-e*n,s*o+r*n,r*o-s*n)},calculateW:function(){var t=this.x,e=this.y,i=this.z;return this.w=-Math.sqrt(1-t*t-e*e-i*i),this},setFromEuler:function(t,e){var i=t.x/2,s=t.y/2,r=t.z/2,n=Math.cos(i),o=Math.cos(s),a=Math.cos(r),h=Math.sin(i),l=Math.sin(s),u=Math.sin(r);switch(t.order){case"XYZ":this.set(h*o*a+n*l*u,n*l*a-h*o*u,n*o*u+h*l*a,n*o*a-h*l*u,e);break;case"YXZ":this.set(h*o*a+n*l*u,n*l*a-h*o*u,n*o*u-h*l*a,n*o*a+h*l*u,e);break;case"ZXY":this.set(h*o*a-n*l*u,n*l*a+h*o*u,n*o*u+h*l*a,n*o*a-h*l*u,e);break;case"ZYX":this.set(h*o*a-n*l*u,n*l*a+h*o*u,n*o*u-h*l*a,n*o*a+h*l*u,e);break;case"YZX":this.set(h*o*a+n*l*u,n*l*a+h*o*u,n*o*u-h*l*a,n*o*a-h*l*u,e);break;case"XZY":this.set(h*o*a-n*l*u,n*l*a-h*o*u,n*o*u+h*l*a,n*o*a+h*l*u,e)}return this},setFromRotationMatrix:function(t){var e,i=t.val,s=i[0],r=i[4],n=i[8],o=i[1],a=i[5],h=i[9],l=i[2],u=i[6],c=i[10],d=s+a+c;return d>0?(e=.5/Math.sqrt(d+1),this.set((u-h)*e,(n-l)*e,(o-r)*e,.25/e)):s>a&&s>c?(e=2*Math.sqrt(1+s-a-c),this.set(.25*e,(r+o)/e,(n+l)/e,(u-h)/e)):a>c?(e=2*Math.sqrt(1+a-s-c),this.set((r+o)/e,.25*e,(h+u)/e,(n-l)/e)):(e=2*Math.sqrt(1+c-s-a),this.set((n+l)/e,(h+u)/e,.25*e,(o-r)/e)),this},fromMat3:function(t){var e,i=t.val,s=i[0]+i[4]+i[8];if(s>0)e=Math.sqrt(s+1),this.w=.5*e,e=.5/e,this._x=(i[7]-i[5])*e,this._y=(i[2]-i[6])*e,this._z=(i[3]-i[1])*e;else{var r=0;i[4]>i[0]&&(r=1),i[8]>i[3*r+r]&&(r=2);var n=h[r],o=h[n];e=Math.sqrt(i[3*r+r]-i[3*n+n]-i[3*o+o]+1),l[r]=.5*e,e=.5/e,l[n]=(i[3*n+r]+i[3*r+n])*e,l[o]=(i[3*o+r]+i[3*r+o])*e,this._x=l[0],this._y=l[1],this._z=l[2],this._w=(i[3*o+n]-i[3*n+o])*e}return this.onChangeCallback(this),this}});t.exports=f},43396:(t,e,i)=>{var s=i(36383);t.exports=function(t){return t*s.RAD_TO_DEG}},74362:t=>{t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI;return t.x=Math.cos(i)*e,t.y=Math.sin(i)*e,t}},60706:t=>{t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI,s=2*Math.random()-1,r=Math.sqrt(1-s*s)*e;return t.x=Math.cos(i)*r,t.y=Math.sin(i)*r,t.z=s*e,t}},67421:t=>{t.exports=function(t,e){return void 0===e&&(e=1),t.x=(2*Math.random()-1)*e,t.y=(2*Math.random()-1)*e,t.z=(2*Math.random()-1)*e,t.w=(2*Math.random()-1)*e,t}},36305:t=>{t.exports=function(t,e){var i=t.x,s=t.y;return t.x=i*Math.cos(e)-s*Math.sin(e),t.y=i*Math.sin(e)+s*Math.cos(e),t}},11520:t=>{t.exports=function(t,e,i,s){var r=Math.cos(s),n=Math.sin(s),o=t.x-e,a=t.y-i;return t.x=o*r-a*n+e,t.y=o*n+a*r+i,t}},1163:t=>{t.exports=function(t,e,i,s,r){var n=s+Math.atan2(t.y-i,t.x-e);return t.x=e+r*Math.cos(n),t.y=i+r*Math.sin(n),t}},70336:t=>{t.exports=function(t,e,i,s,r){return t.x=e+r*Math.cos(s),t.y=i+r*Math.sin(s),t}},72678:(t,e,i)=>{var s=i(25836),r=i(37867),n=i(15746),o=new r,a=new n,h=new s;t.exports=function(t,e,i){return a.setAxisAngle(e,i),o.fromRotationTranslation(a,h.set(0,0,0)),t.transformMat4(o)}},2284:t=>{t.exports=function(t){return t>0?Math.ceil(t):Math.floor(t)}},41013:t=>{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);var s=Math.pow(i,-e);return Math.round(t*s)/s}},16922:t=>{t.exports=function(t,e,i,s){void 0===e&&(e=1),void 0===i&&(i=1),void 0===s&&(s=1),s*=Math.PI/t;for(var r=[],n=[],o=0;o{t.exports=function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e))*t*(3-2*t)}},54261:t=>{t.exports=function(t,e,i){return(t=Math.max(0,Math.min(1,(t-e)/(i-e))))*t*t*(t*(6*t-15)+10)}},44408:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r){void 0===r&&(r=new s);var n=0,o=0;return t>0&&t<=e*i&&(n=t>e-1?t-(o=Math.floor(t/e))*e:t),r.set(n,o)}},85955:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r,n,o,a,h){void 0===h&&(h=new s);var l=Math.sin(n),u=Math.cos(n),c=u*o,d=l*o,p=-l*a,f=u*a,g=1/(c*f+p*-d);return h.x=f*g*t+-p*g*e+(r*p-i*f)*g,h.y=c*g*e+-d*g*t+(-r*c+i*d)*g,h}},26099:(t,e,i)=>{var s=i(83419),r=i(43855),n=new s({initialize:function(t,e){this.x=0,this.y=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0):(void 0===e&&(e=t),this.x=t||0,this.y=e||0)},clone:function(){return new n(this.x,this.y)},copy:function(t){return this.x=t.x||0,this.y=t.y||0,this},setFromObject:function(t){return this.x=t.x||0,this.y=t.y||0,this},set:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setTo:function(t,e){return this.set(t,e)},setToPolar:function(t,e){return null==e&&(e=1),this.x=Math.cos(t)*e,this.y=Math.sin(t)*e,this},equals:function(t){return this.x===t.x&&this.y===t.y},fuzzyEquals:function(t,e){return r(this.x,t.x,e)&&r(this.y,t.y,e)},angle:function(){var t=Math.atan2(this.y,this.x);return t<0&&(t+=2*Math.PI),t},setAngle:function(t){return this.setToPolar(t,this.length())},add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},scale:function(t){return isFinite(t)?(this.x*=t,this.y*=t):(this.x=0,this.y=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},negate:function(){return this.x=-this.x,this.y=-this.y,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y;return e*e+i*i},length:function(){var t=this.x,e=this.y;return Math.sqrt(t*t+e*e)},setLength:function(t){return this.normalize().scale(t)},lengthSq:function(){var t=this.x,e=this.y;return t*t+e*e},normalize:function(){var t=this.x,e=this.y,i=t*t+e*e;return i>0&&(i=1/Math.sqrt(i),this.x=t*i,this.y=e*i),this},normalizeRightHand:function(){var t=this.x;return this.x=-1*this.y,this.y=t,this},normalizeLeftHand:function(){var t=this.x;return this.x=this.y,this.y=-1*t,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,s=this.y;return this.x=i+e*(t.x-i),this.y=s+e*(t.y-s),this},transformMat3:function(t){var e=this.x,i=this.y,s=t.val;return this.x=s[0]*e+s[3]*i+s[6],this.y=s[1]*e+s[4]*i+s[7],this},transformMat4:function(t){var e=this.x,i=this.y,s=t.val;return this.x=s[0]*e+s[4]*i+s[12],this.y=s[1]*e+s[5]*i+s[13],this},reset:function(){return this.x=0,this.y=0,this},limit:function(t){var e=this.length();return e&&e>t&&this.scale(t/e),this},reflect:function(t){return t=t.clone().normalize(),this.subtract(t.scale(2*this.dot(t)))},mirror:function(t){return this.reflect(t).negate()},rotate:function(t){var e=Math.cos(t),i=Math.sin(t);return this.set(e*this.x-i*this.y,i*this.x+e*this.y)},project:function(t){var e=this.dot(t)/t.dot(t);return this.copy(t).scale(e)}});n.ZERO=new n,n.RIGHT=new n(1,0),n.LEFT=new n(-1,0),n.UP=new n(0,-1),n.DOWN=new n(0,1),n.ONE=new n(1,1),t.exports=n},25836:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e,i){this.x=0,this.y=0,this.z=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0):(this.x=t||0,this.y=e||0,this.z=i||0)},up:function(){return this.x=0,this.y=1,this.z=0,this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clone:function(){return new s(this.x,this.y,this.z)},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},crossVectors:function(t,e){var i=t.x,s=t.y,r=t.z,n=e.x,o=e.y,a=e.z;return this.x=s*a-r*o,this.y=r*n-i*a,this.z=i*o-s*n,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this},set:function(t,e,i){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0):(this.x=t||0,this.y=e||0,this.z=i||0),this},setFromMatrixPosition:function(t){return this.fromArray(t.val,12)},setFromMatrixColumn:function(t,e){return this.fromArray(t.val,4*e)},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addScale:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this},scale:function(t){return isFinite(t)?(this.x*=t,this.y*=t,this.z*=t):(this.x=0,this.y=0,this.z=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y,s=t.z-this.z||0;return Math.sqrt(e*e+i*i+s*s)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y,s=t.z-this.z||0;return e*e+i*i+s*s},length:function(){var t=this.x,e=this.y,i=this.z;return Math.sqrt(t*t+e*e+i*i)},lengthSq:function(){var t=this.x,e=this.y,i=this.z;return t*t+e*e+i*i},normalize:function(){var t=this.x,e=this.y,i=this.z,s=t*t+e*e+i*i;return s>0&&(s=1/Math.sqrt(s),this.x=t*s,this.y=e*s,this.z=i*s),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},cross:function(t){var e=this.x,i=this.y,s=this.z,r=t.x,n=t.y,o=t.z;return this.x=i*o-s*n,this.y=s*r-e*o,this.z=e*n-i*r,this},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,s=this.y,r=this.z;return this.x=i+e*(t.x-i),this.y=s+e*(t.y-s),this.z=r+e*(t.z-r),this},applyMatrix3:function(t){var e=this.x,i=this.y,s=this.z,r=t.val;return this.x=r[0]*e+r[3]*i+r[6]*s,this.y=r[1]*e+r[4]*i+r[7]*s,this.z=r[2]*e+r[5]*i+r[8]*s,this},applyMatrix4:function(t){var e=this.x,i=this.y,s=this.z,r=t.val,n=1/(r[3]*e+r[7]*i+r[11]*s+r[15]);return this.x=(r[0]*e+r[4]*i+r[8]*s+r[12])*n,this.y=(r[1]*e+r[5]*i+r[9]*s+r[13])*n,this.z=(r[2]*e+r[6]*i+r[10]*s+r[14])*n,this},transformMat3:function(t){var e=this.x,i=this.y,s=this.z,r=t.val;return this.x=e*r[0]+i*r[3]+s*r[6],this.y=e*r[1]+i*r[4]+s*r[7],this.z=e*r[2]+i*r[5]+s*r[8],this},transformMat4:function(t){var e=this.x,i=this.y,s=this.z,r=t.val;return this.x=r[0]*e+r[4]*i+r[8]*s+r[12],this.y=r[1]*e+r[5]*i+r[9]*s+r[13],this.z=r[2]*e+r[6]*i+r[10]*s+r[14],this},transformCoordinates:function(t){var e=this.x,i=this.y,s=this.z,r=t.val,n=e*r[0]+i*r[4]+s*r[8]+r[12],o=e*r[1]+i*r[5]+s*r[9]+r[13],a=e*r[2]+i*r[6]+s*r[10]+r[14],h=e*r[3]+i*r[7]+s*r[11]+r[15];return this.x=n/h,this.y=o/h,this.z=a/h,this},transformQuat:function(t){var e=this.x,i=this.y,s=this.z,r=t.x,n=t.y,o=t.z,a=t.w,h=a*e+n*s-o*i,l=a*i+o*e-r*s,u=a*s+r*i-n*e,c=-r*e-n*i-o*s;return this.x=h*a+c*-r+l*-o-u*-n,this.y=l*a+c*-n+u*-r-h*-o,this.z=u*a+c*-o+h*-n-l*-r,this},project:function(t){var e=this.x,i=this.y,s=this.z,r=t.val,n=r[0],o=r[1],a=r[2],h=r[3],l=r[4],u=r[5],c=r[6],d=r[7],p=r[8],f=r[9],g=r[10],m=r[11],v=r[12],y=r[13],x=r[14],w=1/(e*h+i*d+s*m+r[15]);return this.x=(e*n+i*l+s*p+v)*w,this.y=(e*o+i*u+s*f+y)*w,this.z=(e*a+i*c+s*g+x)*w,this},projectViewMatrix:function(t,e){return this.applyMatrix4(t).applyMatrix4(e)},unprojectViewMatrix:function(t,e){return this.applyMatrix4(t).applyMatrix4(e)},unproject:function(t,e){var i=t.x,s=t.y,r=t.z,n=t.w,o=this.x-i,a=n-this.y-1-s,h=this.z;return this.x=2*o/r-1,this.y=2*a/n-1,this.z=2*h-1,this.project(e)},reset:function(){return this.x=0,this.y=0,this.z=0,this}});s.ZERO=new s,s.RIGHT=new s(1,0,0),s.LEFT=new s(-1,0,0),s.UP=new s(0,-1,0),s.DOWN=new s(0,1,0),s.FORWARD=new s(0,0,1),s.BACK=new s(0,0,-1),s.ONE=new s(1,1,1),t.exports=s},61369:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e,i,s){this.x=0,this.y=0,this.z=0,this.w=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=s||0)},clone:function(){return new s(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this.w=t.w||0,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.w===t.w},set:function(t,e,i,s){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=s||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this.w+=t.w||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this.w-=t.w||0,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return Math.sqrt(t*t+e*e+i*i+s*s)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return t*t+e*e+i*i+s*s},normalize:function(){var t=this.x,e=this.y,i=this.z,s=this.w,r=t*t+e*e+i*i+s*s;return r>0&&(r=1/Math.sqrt(r),this.x=t*r,this.y=e*r,this.z=i*r,this.w=s*r),this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lerp:function(t,e){void 0===e&&(e=0);var i=this.x,s=this.y,r=this.z,n=this.w;return this.x=i+e*(t.x-i),this.y=s+e*(t.y-s),this.z=r+e*(t.z-r),this.w=n+e*(t.w-n),this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this.w*=t.w||1,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this.w/=t.w||1,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y,s=t.z-this.z||0,r=t.w-this.w||0;return Math.sqrt(e*e+i*i+s*s+r*r)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y,s=t.z-this.z||0,r=t.w-this.w||0;return e*e+i*i+s*s+r*r},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},transformMat4:function(t){var e=this.x,i=this.y,s=this.z,r=this.w,n=t.val;return this.x=n[0]*e+n[4]*i+n[8]*s+n[12]*r,this.y=n[1]*e+n[5]*i+n[9]*s+n[13]*r,this.z=n[2]*e+n[6]*i+n[10]*s+n[14]*r,this.w=n[3]*e+n[7]*i+n[11]*s+n[15]*r,this},transformQuat:function(t){var e=this.x,i=this.y,s=this.z,r=t.x,n=t.y,o=t.z,a=t.w,h=a*e+n*s-o*i,l=a*i+o*e-r*s,u=a*s+r*i-n*e,c=-r*e-n*i-o*s;return this.x=h*a+c*-r+l*-o-u*-n,this.y=l*a+c*-n+u*-r-h*-o,this.z=u*a+c*-o+h*-n-l*-r,this},reset:function(){return this.x=0,this.y=0,this.z=0,this.w=0,this}});s.prototype.sub=s.prototype.subtract,s.prototype.mul=s.prototype.multiply,s.prototype.div=s.prototype.divide,s.prototype.dist=s.prototype.distance,s.prototype.distSq=s.prototype.distanceSq,s.prototype.len=s.prototype.length,s.prototype.lenSq=s.prototype.lengthSq,t.exports=s},60417:t=>{t.exports=function(t,e,i){return Math.abs(t-e)<=i}},15994:t=>{t.exports=function(t,e,i){var s=i-e;return e+((t-e)%s+s)%s}},31040:t=>{t.exports=function(t,e,i,s){return Math.atan2(s-e,i-t)}},55495:t=>{t.exports=function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)}},128:t=>{t.exports=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)}},41273:t=>{t.exports=function(t,e,i,s){return Math.atan2(i-t,s-e)}},1432:(t,e,i)=>{var s=i(36383);t.exports=function(t){return t>Math.PI&&(t-=s.PI2),Math.abs(((t+s.TAU)%s.PI2-s.PI2)%s.PI2)}},12407:t=>{t.exports=function(t){return(t%=2*Math.PI)>=0?t:t+2*Math.PI}},53993:(t,e,i)=>{var s=i(99472);t.exports=function(){return s(-Math.PI,Math.PI)}},86564:(t,e,i)=>{var s=i(99472);t.exports=function(){return s(-180,180)}},90154:(t,e,i)=>{var s=i(12407);t.exports=function(t){return s(t+Math.PI)}},48736:(t,e,i)=>{var s=i(36383);t.exports=function(t,e,i){return void 0===i&&(i=.05),t===e||(Math.abs(e-t)<=i||Math.abs(e-t)>=s.PI2-i?t=e:(Math.abs(e-t)>Math.PI&&(et?t+=i:e{t.exports=function(t,e){var i=e-t;return 0===i?0:i-360*Math.floor((i- -180)/360)}},86554:(t,e,i)=>{var s=i(15994);t.exports=function(t){return s(t,-Math.PI,Math.PI)}},30954:(t,e,i)=>{var s=i(15994);t.exports=function(t){return s(t,-180,180)}},25588:(t,e,i)=>{t.exports={Between:i(31040),BetweenPoints:i(55495),BetweenPointsY:i(128),BetweenY:i(41273),CounterClockwise:i(1432),Normalize:i(12407),Random:i(53993),RandomDegrees:i(86564),Reverse:i(90154),RotateTo:i(48736),ShortestBetween:i(61430),Wrap:i(86554),WrapDegrees:i(30954)}},36383:t=>{var e={PI2:2*Math.PI,TAU:.5*Math.PI,EPSILON:1e-6,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,RND:null,MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER||-9007199254740991,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991};t.exports=e},20339:t=>{t.exports=function(t,e,i,s){var r=t-i,n=e-s;return Math.sqrt(r*r+n*n)}},52816:t=>{t.exports=function(t,e){var i=t.x-e.x,s=t.y-e.y;return Math.sqrt(i*i+s*s)}},64559:t=>{t.exports=function(t,e){var i=t.x-e.x,s=t.y-e.y;return i*i+s*s}},82340:t=>{t.exports=function(t,e,i,s){return Math.max(Math.abs(t-i),Math.abs(e-s))}},14390:t=>{t.exports=function(t,e,i,s,r){return void 0===r&&(r=2),Math.sqrt(Math.pow(i-t,r)+Math.pow(s-e,r))}},2243:t=>{t.exports=function(t,e,i,s){return Math.abs(t-i)+Math.abs(e-s)}},89774:t=>{t.exports=function(t,e,i,s){var r=t-i,n=e-s;return r*r+n*n}},50994:(t,e,i)=>{t.exports={Between:i(20339),BetweenPoints:i(52816),BetweenPointsSquared:i(64559),Chebyshev:i(82340),Power:i(14390),Snake:i(2243),Squared:i(89774)}},62640:(t,e,i)=>{var s=i(54178),r=i(41521),n=i(79980),o=i(85433),a=i(99140),h=i(48857),l=i(81596),u=i(59133),c=i(98516),d=i(35248),p=i(82500),f=i(49752);t.exports={Power0:l,Power1:u.Out,Power2:o.Out,Power3:c.Out,Power4:d.Out,Linear:l,Quad:u.Out,Cubic:o.Out,Quart:c.Out,Quint:d.Out,Sine:p.Out,Expo:h.Out,Circ:n.Out,Elastic:a.Out,Back:s.Out,Bounce:r.Out,Stepped:f,"Quad.easeIn":u.In,"Cubic.easeIn":o.In,"Quart.easeIn":c.In,"Quint.easeIn":d.In,"Sine.easeIn":p.In,"Expo.easeIn":h.In,"Circ.easeIn":n.In,"Elastic.easeIn":a.In,"Back.easeIn":s.In,"Bounce.easeIn":r.In,"Quad.easeOut":u.Out,"Cubic.easeOut":o.Out,"Quart.easeOut":c.Out,"Quint.easeOut":d.Out,"Sine.easeOut":p.Out,"Expo.easeOut":h.Out,"Circ.easeOut":n.Out,"Elastic.easeOut":a.Out,"Back.easeOut":s.Out,"Bounce.easeOut":r.Out,"Quad.easeInOut":u.InOut,"Cubic.easeInOut":o.InOut,"Quart.easeInOut":c.InOut,"Quint.easeInOut":d.InOut,"Sine.easeInOut":p.InOut,"Expo.easeInOut":h.InOut,"Circ.easeInOut":n.InOut,"Elastic.easeInOut":a.InOut,"Back.easeInOut":s.InOut,"Bounce.easeInOut":r.InOut}},1639:t=>{t.exports=function(t,e){return void 0===e&&(e=1.70158),t*t*((e+1)*t-e)}},50099:t=>{t.exports=function(t,e){void 0===e&&(e=1.70158);var i=1.525*e;return(t*=2)<1?t*t*((i+1)*t-i)*.5:.5*((t-=2)*t*((i+1)*t+i)+2)}},41286:t=>{t.exports=function(t,e){return void 0===e&&(e=1.70158),--t*t*((e+1)*t+e)+1}},54178:(t,e,i)=>{t.exports={In:i(1639),Out:i(41286),InOut:i(50099)}},59590:t=>{t.exports=function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}},41788:t=>{t.exports=function(t){var e=!1;return t<.5?(t=1-2*t,e=!0):t=2*t-1,t<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5}},69905:t=>{t.exports=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}},41521:(t,e,i)=>{t.exports={In:i(59590),Out:i(69905),InOut:i(41788)}},91861:t=>{t.exports=function(t){return 1-Math.sqrt(1-t*t)}},4177:t=>{t.exports=function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},57512:t=>{t.exports=function(t){return Math.sqrt(1- --t*t)}},79980:(t,e,i)=>{t.exports={In:i(91861),Out:i(57512),InOut:i(4177)}},51150:t=>{t.exports=function(t){return t*t*t}},82820:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},35033:t=>{t.exports=function(t){return--t*t*t+1}},85433:(t,e,i)=>{t.exports={In:i(51150),Out:i(35033),InOut:i(82820)}},69965:t=>{t.exports=function(t,e,i){if(void 0===e&&(e=.1),void 0===i&&(i=.1),0===t)return 0;if(1===t)return 1;var s=i/4;return e<1?e=1:s=i*Math.asin(1/e)/(2*Math.PI),-e*Math.pow(2,10*(t-=1))*Math.sin((t-s)*(2*Math.PI)/i)}},50665:t=>{t.exports=function(t,e,i){if(void 0===e&&(e=.1),void 0===i&&(i=.1),0===t)return 0;if(1===t)return 1;var s=i/4;return e<1?e=1:s=i*Math.asin(1/e)/(2*Math.PI),(t*=2)<1?e*Math.pow(2,10*(t-=1))*Math.sin((t-s)*(2*Math.PI)/i)*-.5:e*Math.pow(2,-10*(t-=1))*Math.sin((t-s)*(2*Math.PI)/i)*.5+1}},7744:t=>{t.exports=function(t,e,i){if(void 0===e&&(e=.1),void 0===i&&(i=.1),0===t)return 0;if(1===t)return 1;var s=i/4;return e<1?e=1:s=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*t)*Math.sin((t-s)*(2*Math.PI)/i)+1}},99140:(t,e,i)=>{t.exports={In:i(69965),Out:i(7744),InOut:i(50665)}},24590:t=>{t.exports=function(t){return Math.pow(2,10*(t-1))-.001}},87844:t=>{t.exports=function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))}},89433:t=>{t.exports=function(t){return 1-Math.pow(2,-10*t)}},48857:(t,e,i)=>{t.exports={In:i(24590),Out:i(89433),InOut:i(87844)}},48820:(t,e,i)=>{t.exports={Back:i(54178),Bounce:i(41521),Circular:i(79980),Cubic:i(85433),Elastic:i(99140),Expo:i(48857),Linear:i(81596),Quadratic:i(59133),Quartic:i(98516),Quintic:i(35248),Sine:i(82500),Stepped:i(49752)}},7147:t=>{t.exports=function(t){return t}},81596:(t,e,i)=>{t.exports=i(7147)},34826:t=>{t.exports=function(t){return t*t}},20544:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},92029:t=>{t.exports=function(t){return t*(2-t)}},59133:(t,e,i)=>{t.exports={In:i(34826),Out:i(92029),InOut:i(20544)}},64413:t=>{t.exports=function(t){return t*t*t*t}},78137:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},45840:t=>{t.exports=function(t){return 1- --t*t*t*t}},98516:(t,e,i)=>{t.exports={In:i(64413),Out:i(45840),InOut:i(78137)}},87745:t=>{t.exports=function(t){return t*t*t*t*t}},16509:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},17868:t=>{t.exports=function(t){return--t*t*t*t*t+1}},35248:(t,e,i)=>{t.exports={In:i(87745),Out:i(17868),InOut:i(16509)}},80461:t=>{t.exports=function(t){return 0===t?0:1===t?1:1-Math.cos(t*Math.PI/2)}},34025:t=>{t.exports=function(t){return 0===t?0:1===t?1:.5*(1-Math.cos(Math.PI*t))}},52768:t=>{t.exports=function(t){return 0===t?0:1===t?1:Math.sin(t*Math.PI/2)}},82500:(t,e,i)=>{t.exports={In:i(80461),Out:i(52768),InOut:i(34025)}},72251:t=>{t.exports=function(t,e){return void 0===e&&(e=1),t<=0?0:t>=1?1:1/e*(1+(e*t|0))}},49752:(t,e,i)=>{t.exports=i(72251)},75698:t=>{t.exports=function(t,e){return void 0===e&&(e=1e-4),Math.ceil(t-e)}},43855:t=>{t.exports=function(t,e,i){return void 0===i&&(i=1e-4),Math.abs(t-e){t.exports=function(t,e){return void 0===e&&(e=1e-4),Math.floor(t+e)}},5470:t=>{t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t>e-i}},94977:t=>{t.exports=function(t,e,i){return void 0===i&&(i=1e-4),t{t.exports={Ceil:i(75698),Equal:i(43855),Floor:i(25777),GreaterThan:i(5470),LessThan:i(94977)}},75508:(t,e,i)=>{var s=i(36383),r=i(79291),n={Angle:i(25588),Distance:i(50994),Easing:i(48820),Fuzzy:i(48379),Interpolation:i(38289),Pow2:i(49001),Snap:i(73697),RandomDataGenerator:i(28453),Average:i(53307),Bernstein:i(85710),Between:i(30976),CatmullRom:i(87842),CeilTo:i(26302),Clamp:i(45319),DegToRad:i(39506),Difference:i(61241),Euler:i(38857),Factorial:i(6411),FloatBetween:i(99472),FloorTo:i(77623),FromPercent:i(62945),GetSpeed:i(38265),IsEven:i(78702),IsEvenStrict:i(94883),Linear:i(28915),LinearXY:i(94908),MaxAdd:i(86883),Median:i(50040),MinSub:i(37204),Percent:i(65201),RadToDeg:i(43396),RandomXY:i(74362),RandomXYZ:i(60706),RandomXYZW:i(67421),Rotate:i(36305),RotateAround:i(11520),RotateAroundDistance:i(1163),RotateTo:i(70336),RoundAwayFromZero:i(2284),RoundTo:i(41013),SinCosTableGenerator:i(16922),SmootherStep:i(54261),SmoothStep:i(7602),ToXY:i(44408),TransformXY:i(85955),Within:i(60417),Wrap:i(15994),Vector2:i(26099),Vector3:i(25836),Vector4:i(61369),Matrix3:i(94434),Matrix4:i(37867),Quaternion:i(15746),RotateVec3:i(72678)};n=r(!1,n,s),t.exports=n},89318:(t,e,i)=>{var s=i(85710);t.exports=function(t,e){for(var i=0,r=t.length-1,n=0;n<=r;n++)i+=Math.pow(1-e,r-n)*Math.pow(e,n)*t[n]*s(r,n);return i}},77259:(t,e,i)=>{var s=i(87842);t.exports=function(t,e){var i=t.length-1,r=i*e,n=Math.floor(r);return t[0]===t[i]?(e<0&&(n=Math.floor(r=i*(1+e))),s(r-n,t[(n-1+i)%i],t[n],t[(n+1)%i],t[(n+2)%i])):e<0?t[0]-(s(-r,t[0],t[0],t[1],t[1])-t[0]):e>1?t[i]-(s(r-i,t[i],t[i],t[i-1],t[i-1])-t[i]):s(r-n,t[n?n-1:0],t[n],t[i{t.exports=function(t,e,i,s,r){return function(t,e){var i=1-t;return i*i*i*e}(t,e)+function(t,e){var i=1-t;return 3*i*i*t*e}(t,i)+function(t,e){return 3*(1-t)*t*t*e}(t,s)+function(t,e){return t*t*t*e}(t,r)}},28392:(t,e,i)=>{var s=i(28915);t.exports=function(t,e){var i=t.length-1,r=i*e,n=Math.floor(r);return e<0?s(t[0],t[1],r):e>1?s(t[i],t[i-1],i-r):s(t[n],t[n+1>i?i:n+1],r-n)}},32112:t=>{t.exports=function(t,e,i,s){return function(t,e){var i=1-t;return i*i*e}(t,e)+function(t,e){return 2*(1-t)*t*e}(t,i)+function(t,e){return t*t*e}(t,s)}},47235:(t,e,i)=>{var s=i(7602);t.exports=function(t,e,i){return e+(i-e)*s(t,0,1)}},50178:(t,e,i)=>{var s=i(54261);t.exports=function(t,e,i){return e+(i-e)*s(t,0,1)}},38289:(t,e,i)=>{t.exports={Bezier:i(89318),CatmullRom:i(77259),CubicBezier:i(36316),Linear:i(28392),QuadraticBezier:i(32112),SmoothStep:i(47235),SmootherStep:i(50178)}},98439:t=>{t.exports=function(t){var e=Math.log(t)/.6931471805599453;return 1<{t.exports=function(t,e){return t>0&&!(t&t-1)&&e>0&&!(e&e-1)}},81230:t=>{t.exports=function(t){return t>0&&!(t&t-1)}},49001:(t,e,i)=>{t.exports={GetNext:i(98439),IsSize:i(50030),IsValue:i(81230)}},28453:(t,e,i)=>{var s=new(i(83419))({initialize:function(t){void 0===t&&(t=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],t&&this.init(t)},rnd:function(){var t=2091639*this.s0+2.3283064365386963e-10*this.c;return this.c=0|t,this.s0=this.s1,this.s1=this.s2,this.s2=t-this.c,this.s2},hash:function(t){var e,i=this.n;t=t.toString();for(var s=0;s>>0,i=(e*=i)>>>0,i+=4294967296*(e-=i);return this.n=i,2.3283064365386963e-10*(i>>>0)},init:function(t){"string"==typeof t?this.state(t):this.sow(t)},sow:function(t){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,t)for(var e=0;e0;e--){var i=Math.floor(this.frac()*(e+1)),s=t[i];t[i]=t[e],t[e]=s}return t}});t.exports=s},63448:t=>{t.exports=function(t,e,i,s){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.ceil(t/e),s?(i+t)/e:i+t)}},56583:t=>{t.exports=function(t,e,i,s){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.floor(t/e),s?(i+t)/e:i+t)}},77720:t=>{t.exports=function(t,e,i,s){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.round(t/e),s?(i+t)/e:i+t)}},73697:(t,e,i)=>{t.exports={Ceil:i(63448),Floor:i(56583),To:i(77720)}},85454:(t,e,i)=>{i(63595);var s=i(8054),r=i(79291),n={Actions:i(61061),Animations:i(60421),BlendModes:i(10312),Cache:i(83388),Cameras:i(26638),Core:i(42857),Class:i(83419),Create:i(15822),Curves:i(25410),Data:i(44965),Display:i(27460),DOM:i(84902),Events:i(93055),FX:i(66064),Game:i(50127),GameObjects:i(77856),Geom:i(55738),Input:i(14350),Loader:i(57777),Math:i(75508),Physics:i(44563),Plugins:i(18922),Renderer:i(36909),Scale:i(93364),ScaleModes:i(29795),Scene:i(97482),Scenes:i(62194),Structs:i(41392),Textures:i(27458),Tilemaps:i(62501),Time:i(90291),Tweens:i(43066),Utils:i(91799)};n.Sound=i(23717),n=r(!1,n,s),t.exports=n,i.g.Phaser=n},71289:(t,e,i)=>{var s=i(83419),r=i(92209),n=i(88571),o=new s({Extends:n,Mixins:[r.Acceleration,r.Angular,r.Bounce,r.Collision,r.Debug,r.Drag,r.Enable,r.Friction,r.Gravity,r.Immovable,r.Mass,r.Pushable,r.Size,r.Velocity],initialize:function(t,e,i,s,r){n.call(this,t,e,i,s,r),this.body=null}});t.exports=o},86689:(t,e,i)=>{var s=i(83419),r=i(39506),n=i(20339),o=i(89774),a=i(66022),h=i(95540),l=i(46975),u=i(72441),c=i(47956),d=i(37277),p=i(44594),f=i(26099),g=i(82248),m=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.config=this.getConfig(),this.world,this.add,this._category=1,t.sys.events.once(p.BOOT,this.boot,this),t.sys.events.on(p.START,this.start,this)},boot:function(){this.world=new g(this.scene,this.config),this.add=new a(this.world),this.systems.events.once(p.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new g(this.scene,this.config),this.add=new a(this.world));var t=this.systems.events;h(this.config,"customUpdate",!1)||t.on(p.UPDATE,this.world.update,this.world),t.on(p.POST_UPDATE,this.world.postUpdate,this.world),t.once(p.SHUTDOWN,this.shutdown,this)},enableUpdate:function(){this.systems.events.on(p.UPDATE,this.world.update,this.world)},disableUpdate:function(){this.systems.events.off(p.UPDATE,this.world.update,this.world)},getConfig:function(){var t=this.systems.game.config.physics,e=this.systems.settings.physics;return l(h(e,"arcade",{}),h(t,"arcade",{}))},nextCategory:function(){return this._category=this._category<<1,this._category},overlap:function(t,e,i,s,r){return void 0===i&&(i=null),void 0===s&&(s=null),void 0===r&&(r=i),this.world.collideObjects(t,e,i,s,r,!0)},collide:function(t,e,i,s,r){return void 0===i&&(i=null),void 0===s&&(s=null),void 0===r&&(r=i),this.world.collideObjects(t,e,i,s,r,!1)},collideTiles:function(t,e,i,s,r){return this.world.collideTiles(t,e,i,s,r)},overlapTiles:function(t,e,i,s,r){return this.world.overlapTiles(t,e,i,s,r)},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},accelerateTo:function(t,e,i,s,r,n){void 0===s&&(s=60);var o=Math.atan2(i-t.y,e-t.x);return t.body.acceleration.setToPolar(o,s),void 0!==r&&void 0!==n&&t.body.maxVelocity.set(r,n),o},accelerateToObject:function(t,e,i,s,r){return this.accelerateTo(t,e.x,e.y,i,s,r)},closest:function(t,e){e||(e=this.world.bodies.entries);for(var i=Number.MAX_VALUE,s=null,r=t.x,n=t.y,a=e.length,h=0;hi&&(s=l,i=c)}}return s},moveTo:function(t,e,i,s,r){void 0===s&&(s=60),void 0===r&&(r=0);var o=Math.atan2(i-t.y,e-t.x);return r>0&&(s=n(t.x,t.y,e,i)/(r/1e3)),t.body.velocity.setToPolar(o,s),o},moveToObject:function(t,e,i,s){return this.moveTo(t,e.x,e.y,i,s)},velocityFromAngle:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new f),i.setToPolar(r(t),e)},velocityFromRotation:function(t,e,i){return void 0===e&&(e=60),void 0===i&&(i=new f),i.setToPolar(t,e)},overlapRect:function(t,e,i,s,r,n){return c(this.world,t,e,i,s,r,n)},overlapCirc:function(t,e,i,s,r){return u(this.world,t,e,i,s,r)},shutdown:function(){if(this.world){var t=this.systems.events;t.off(p.UPDATE,this.world.update,this.world),t.off(p.POST_UPDATE,this.world.postUpdate,this.world),t.off(p.SHUTDOWN,this.shutdown,this),this.add.destroy(),this.world.destroy(),this.add=null,this.world=null,this._category=1}},destroy:function(){this.shutdown(),this.scene.sys.events.off(p.START,this.start,this),this.scene=null,this.systems=null}});d.register("ArcadePhysics",m,"arcadePhysics"),t.exports=m},13759:(t,e,i)=>{var s=i(83419),r=i(92209),n=i(68287),o=new s({Extends:n,Mixins:[r.Acceleration,r.Angular,r.Bounce,r.Collision,r.Debug,r.Drag,r.Enable,r.Friction,r.Gravity,r.Immovable,r.Mass,r.Pushable,r.Size,r.Velocity],initialize:function(t,e,i,s,r){n.call(this,t,e,i,s,r),this.body=null}});t.exports=o},37742:(t,e,i)=>{var s=i(83419),r=i(78389),n=i(37747),o=i(63012),a=i(43396),h=i(87841),l=i(37303),u=i(95829),c=i(26099),d=new s({Mixins:[r],initialize:function(t,e){var i=64,s=64,r=void 0!==e;r&&e.displayWidth&&(i=e.displayWidth,s=e.displayHeight),r||(e={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0}),this.world=t,this.gameObject=r?e:void 0,this.isBody=!0,this.transform={x:e.x,y:e.y,rotation:e.angle,scaleX:e.scaleX,scaleY:e.scaleY,displayOriginX:e.displayOriginX,displayOriginY:e.displayOriginY},this.debugShowBody=t.defaults.debugShowBody,this.debugShowVelocity=t.defaults.debugShowVelocity,this.debugBodyColor=t.defaults.bodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new c,this.position=new c(e.x-e.scaleX*e.displayOriginX,e.y-e.scaleY*e.displayOriginY),this.prev=this.position.clone(),this.prevFrame=this.position.clone(),this.allowRotation=!0,this.rotation=e.angle,this.preRotation=e.angle,this.width=i,this.height=s,this.sourceWidth=i,this.sourceHeight=s,e.frame&&(this.sourceWidth=e.frame.realWidth,this.sourceHeight=e.frame.realHeight),this.halfWidth=Math.abs(i/2),this.halfHeight=Math.abs(s/2),this.center=new c(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=new c,this.newVelocity=new c,this.deltaMax=new c,this.acceleration=new c,this.allowDrag=!0,this.drag=new c,this.allowGravity=!0,this.gravity=new c,this.bounce=new c,this.worldBounce=null,this.customBoundsRectangle=t.bounds,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.maxVelocity=new c(1e4,1e4),this.maxSpeed=-1,this.friction=new c(1,0),this.useDamping=!1,this.angularVelocity=0,this.angularAcceleration=0,this.angularDrag=0,this.maxAngular=1e3,this.mass=1,this.angle=0,this.speed=0,this.facing=n.FACING_NONE,this.immovable=!1,this.pushable=!0,this.slideFactor=new c(1,1),this.moves=!0,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision=u(!1),this.touching=u(!0),this.wasTouching=u(!0),this.blocked=u(!0),this.syncBounds=!1,this.physicsType=n.DYNAMIC_BODY,this.collisionCategory=1,this.collisionMask=1,this._sx=e.scaleX,this._sy=e.scaleY,this._dx=0,this._dy=0,this._tx=0,this._ty=0,this._bounds=new h,this.directControl=!1,this.autoFrame=this.position.clone()},updateBounds:function(){var t=this.gameObject,e=this.transform;if(t.parentContainer){var i=t.getWorldTransformMatrix(this.world._tempMatrix,this.world._tempMatrix2);e.x=i.tx,e.y=i.ty,e.rotation=a(i.rotation),e.scaleX=i.scaleX,e.scaleY=i.scaleY,e.displayOriginX=t.displayOriginX,e.displayOriginY=t.displayOriginY}else e.x=t.x,e.y=t.y,e.rotation=t.angle,e.scaleX=t.scaleX,e.scaleY=t.scaleY,e.displayOriginX=t.displayOriginX,e.displayOriginY=t.displayOriginY;var s=!1;if(this.syncBounds){var r=t.getBounds(this._bounds);this.width=r.width,this.height=r.height,s=!0}else{var n=Math.abs(e.scaleX),o=Math.abs(e.scaleY);this._sx===n&&this._sy===o||(this.width=this.sourceWidth*n,this.height=this.sourceHeight*o,this._sx=n,this._sy=o,s=!0)}s&&(this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter())},updateCenter:function(){this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},updateFromGameObject:function(){this.updateBounds();var t=this.transform;this.position.x=t.x+t.scaleX*(this.offset.x-t.displayOriginX),this.position.y=t.y+t.scaleY*(this.offset.y-t.displayOriginY),this.updateCenter()},resetFlags:function(t){void 0===t&&(t=!1);var e=this.wasTouching,i=this.touching,s=this.blocked;t?u(!0,e):(e.none=i.none,e.up=i.up,e.down=i.down,e.left=i.left,e.right=i.right),u(!0,i),u(!0,s),this.overlapR=0,this.overlapX=0,this.overlapY=0,this.embedded=!1},preUpdate:function(t,e){if(t&&this.resetFlags(),this.gameObject&&this.updateFromGameObject(),this.rotation=this.transform.rotation,this.preRotation=this.rotation,this.moves){var i=this.position;this.prev.x=i.x,this.prev.y=i.y,this.prevFrame.x=i.x,this.prevFrame.y=i.y}t&&this.update(e)},update:function(t){var e=this.prev,i=this.position,s=this.velocity;if(e.set(i.x,i.y),!this.moves)return this._dx=i.x-e.x,void(this._dy=i.y-e.y);if(this.directControl){var r=this.autoFrame;s.set((i.x-r.x)/t,(i.y-r.y)/t),this.world.updateMotion(this,t),this._dx=i.x-r.x,this._dy=i.y-r.y}else this.world.updateMotion(this,t),this.newVelocity.set(s.x*t,s.y*t),i.add(this.newVelocity),this._dx=i.x-e.x,this._dy=i.y-e.y;var n=s.x,a=s.y;if(this.updateCenter(),this.angle=Math.atan2(a,n),this.speed=Math.sqrt(n*n+a*a),this.collideWorldBounds&&this.checkWorldBounds()&&this.onWorldBounds){var h=this.blocked;this.world.emit(o.WORLD_BOUNDS,this,h.up,h.down,h.left,h.right)}},postUpdate:function(){var t=this.position,e=t.x-this.prevFrame.x,i=t.y-this.prevFrame.y,s=this.gameObject;if(this.moves){var r=this.deltaMax.x,o=this.deltaMax.y;0!==r&&0!==e&&(e<0&&e<-r?e=-r:e>0&&e>r&&(e=r)),0!==o&&0!==i&&(i<0&&i<-o?i=-o:i>0&&i>o&&(i=o)),s&&(s.x+=e,s.y+=i)}e<0?this.facing=n.FACING_LEFT:e>0&&(this.facing=n.FACING_RIGHT),i<0?this.facing=n.FACING_UP:i>0&&(this.facing=n.FACING_DOWN),this.allowRotation&&s&&(s.angle+=this.deltaZ()),this._tx=e,this._ty=i,this.autoFrame.set(t.x,t.y)},setBoundsRectangle:function(t){return this.customBoundsRectangle=t||this.world.bounds,this},checkWorldBounds:function(){var t=this.position,e=this.velocity,i=this.blocked,s=this.customBoundsRectangle,r=this.world.checkCollision,n=this.worldBounce?-this.worldBounce.x:-this.bounce.x,o=this.worldBounce?-this.worldBounce.y:-this.bounce.y,a=!1;return t.xs.right&&r.right&&(t.x=s.right-this.width,e.x*=n,i.right=!0,a=!0),t.ys.bottom&&r.down&&(t.y=s.bottom-this.height,e.y*=o,i.down=!0,a=!0),a&&(this.blocked.none=!1,this.updateCenter()),a},setOffset:function(t,e){return void 0===e&&(e=t),this.offset.set(t,e),this},setGameObject:function(t,e){return void 0===e&&(e=!0),this.world.remove(this),this.gameObject&&this.gameObject.body&&(this.gameObject.body=null),this.gameObject=t,t.body&&(t.body=this),this.setSize(),this.world.add(this),this.enable=e,this},setSize:function(t,e,i){void 0===i&&(i=!0);var s=this.gameObject;if(s&&(!t&&s.frame&&(t=s.frame.realWidth),!e&&s.frame&&(e=s.frame.realHeight)),this.sourceWidth=t,this.sourceHeight=e,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter(),i&&s&&s.getCenter){var r=(s.width-t)/2,n=(s.height-e)/2;this.offset.set(r,n)}return this.isCircle=!1,this.radius=0,this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.isCircle=!0,this.radius=t,this.sourceWidth=2*t,this.sourceHeight=2*t,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter()):this.isCircle=!1,this},reset:function(t,e){this.stop();var i=this.gameObject;i&&(i.setPosition(t,e),this.rotation=i.angle,this.preRotation=i.angle);var s=this.position;i&&i.getTopLeft?i.getTopLeft(s):s.set(t,e),this.prev.copy(s),this.prevFrame.copy(s),this.autoFrame.copy(s),i&&this.updateBounds(),this.updateCenter(),this.collideWorldBounds&&this.checkWorldBounds(),this.resetFlags(!0)},stop:function(){return this.velocity.set(0),this.acceleration.set(0),this.speed=0,this.angularVelocity=0,this.angularAcceleration=0,this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?this.radius>0&&t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom&&(this.center.x-t)*(this.center.x-t)+(this.center.y-e)*(this.center.y-e)<=this.radius*this.radius:l(this,t,e)},onFloor:function(){return this.blocked.down},onCeiling:function(){return this.blocked.up},onWall:function(){return this.blocked.left||this.blocked.right},deltaAbsX:function(){return this._dx>0?this._dx:-this._dx},deltaAbsY:function(){return this._dy>0?this._dy:-this._dy},deltaX:function(){return this._dx},deltaY:function(){return this._dy},deltaXFinal:function(){return this._tx},deltaYFinal:function(){return this._ty},deltaZ:function(){return this.rotation-this.preRotation},destroy:function(){this.enable=!1,this.world&&this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,s=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor),this.isCircle?t.strokeCircle(i,s,this.width/2):(this.checkCollision.up&&t.lineBetween(e.x,e.y,e.x+this.width,e.y),this.checkCollision.right&&t.lineBetween(e.x+this.width,e.y,e.x+this.width,e.y+this.height),this.checkCollision.down&&t.lineBetween(e.x,e.y+this.height,e.x+this.width,e.y+this.height),this.checkCollision.left&&t.lineBetween(e.x,e.y,e.x,e.y+this.height))),this.debugShowVelocity&&(t.lineStyle(t.defaultStrokeWidth,this.world.defaults.velocityDebugColor,1),t.lineBetween(i,s,i+this.velocity.x/2,s+this.velocity.y/2))},willDrawDebug:function(){return this.debugShowBody||this.debugShowVelocity},setDirectControl:function(t){return void 0===t&&(t=!0),this.directControl=t,this},setCollideWorldBounds:function(t,e,i,s){void 0===t&&(t=!0),this.collideWorldBounds=t;var r=void 0!==e,n=void 0!==i;return(r||n)&&(this.worldBounce||(this.worldBounce=new c),r&&(this.worldBounce.x=e),n&&(this.worldBounce.y=i)),void 0!==s&&(this.onWorldBounds=s),this},setVelocity:function(t,e){return this.velocity.set(t,e),t=this.velocity.x,e=this.velocity.y,this.speed=Math.sqrt(t*t+e*e),this},setVelocityX:function(t){return this.setVelocity(t,this.velocity.y)},setVelocityY:function(t){return this.setVelocity(this.velocity.x,t)},setMaxVelocity:function(t,e){return this.maxVelocity.set(t,e),this},setMaxVelocityX:function(t){return this.maxVelocity.x=t,this},setMaxVelocityY:function(t){return this.maxVelocity.y=t,this},setMaxSpeed:function(t){return this.maxSpeed=t,this},setSlideFactor:function(t,e){return this.slideFactor.set(t,e),this},setBounce:function(t,e){return this.bounce.set(t,e),this},setBounceX:function(t){return this.bounce.x=t,this},setBounceY:function(t){return this.bounce.y=t,this},setAcceleration:function(t,e){return this.acceleration.set(t,e),this},setAccelerationX:function(t){return this.acceleration.x=t,this},setAccelerationY:function(t){return this.acceleration.y=t,this},setAllowDrag:function(t){return void 0===t&&(t=!0),this.allowDrag=t,this},setAllowGravity:function(t){return void 0===t&&(t=!0),this.allowGravity=t,this},setAllowRotation:function(t){return void 0===t&&(t=!0),this.allowRotation=t,this},setDrag:function(t,e){return this.drag.set(t,e),this},setDamping:function(t){return this.useDamping=t,this},setDragX:function(t){return this.drag.x=t,this},setDragY:function(t){return this.drag.y=t,this},setGravity:function(t,e){return this.gravity.set(t,e),this},setGravityX:function(t){return this.gravity.x=t,this},setGravityY:function(t){return this.gravity.y=t,this},setFriction:function(t,e){return this.friction.set(t,e),this},setFrictionX:function(t){return this.friction.x=t,this},setFrictionY:function(t){return this.friction.y=t,this},setAngularVelocity:function(t){return this.angularVelocity=t,this},setAngularAcceleration:function(t){return this.angularAcceleration=t,this},setAngularDrag:function(t){return this.angularDrag=t,this},setMass:function(t){return this.mass=t,this},setImmovable:function(t){return void 0===t&&(t=!0),this.immovable=t,this},setEnable:function(t){return void 0===t&&(t=!0),this.enable=t,this},processX:function(t,e,i,s){this.x+=t,this.updateCenter(),null!==e&&(this.velocity.x=e*this.slideFactor.x);var r=this.blocked;i&&(r.left=!0,r.none=!1),s&&(r.right=!0,r.none=!1)},processY:function(t,e,i,s){this.y+=t,this.updateCenter(),null!==e&&(this.velocity.y=e*this.slideFactor.y);var r=this.blocked;i&&(r.up=!0,r.none=!1),s&&(r.down=!0,r.none=!1)},x:{get:function(){return this.position.x},set:function(t){this.position.x=t}},y:{get:function(){return this.position.y},set:function(t){this.position.y=t}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=d},79342:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e,i,s,r,n,o){this.world=t,this.name="",this.active=!0,this.overlapOnly=e,this.object1=i,this.object2=s,this.collideCallback=r,this.processCallback=n,this.callbackContext=o},setName:function(t){return this.name=t,this},update:function(){this.world.collideObjects(this.object1,this.object2,this.collideCallback,this.processCallback,this.callbackContext,this.overlapOnly)},destroy:function(){this.world.removeCollider(this),this.active=!1,this.world=null,this.object1=null,this.object2=null,this.collideCallback=null,this.processCallback=null,this.callbackContext=null}});t.exports=s},66022:(t,e,i)=>{var s=i(71289),r=i(13759),n=i(37742),o=i(83419),a=i(37747),h=i(60758),l=i(72624),u=i(71464),c=new o({initialize:function(t){this.world=t,this.scene=t.scene,this.sys=t.scene.sys},collider:function(t,e,i,s,r){return this.world.addCollider(t,e,i,s,r)},overlap:function(t,e,i,s,r){return this.world.addOverlap(t,e,i,s,r)},existing:function(t,e){var i=e?a.STATIC_BODY:a.DYNAMIC_BODY;return this.world.enableBody(t,i),t},staticImage:function(t,e,i,r){var n=new s(this.scene,t,e,i,r);return this.sys.displayList.add(n),this.world.enableBody(n,a.STATIC_BODY),n},image:function(t,e,i,r){var n=new s(this.scene,t,e,i,r);return this.sys.displayList.add(n),this.world.enableBody(n,a.DYNAMIC_BODY),n},staticSprite:function(t,e,i,s){var n=new r(this.scene,t,e,i,s);return this.sys.displayList.add(n),this.sys.updateList.add(n),this.world.enableBody(n,a.STATIC_BODY),n},sprite:function(t,e,i,s){var n=new r(this.scene,t,e,i,s);return this.sys.displayList.add(n),this.sys.updateList.add(n),this.world.enableBody(n,a.DYNAMIC_BODY),n},staticGroup:function(t,e){return this.sys.updateList.add(new u(this.world,this.world.scene,t,e))},group:function(t,e){return this.sys.updateList.add(new h(this.world,this.world.scene,t,e))},body:function(t,e,i,s){var r=new n(this.world);return r.position.set(t,e),i&&s&&r.setSize(i,s),this.world.add(r,a.DYNAMIC_BODY),r},staticBody:function(t,e,i,s){var r=new l(this.world);return r.position.set(t,e),i&&s&&r.setSize(i,s),this.world.add(r,a.STATIC_BODY),r},destroy:function(){this.world=null,this.scene=null,this.sys=null}});t.exports=c},79599:t=>{t.exports=function(t){var e=0;if(Array.isArray(t))for(var i=0;i{var s=i(37747);t.exports=function(t,e,i,r){var n=0,o=t.deltaAbsX()+e.deltaAbsX()+r;return 0===t._dx&&0===e._dx?(t.embedded=!0,e.embedded=!0):t._dx>e._dx?(n=t.right-e.x)>o&&!i||!1===t.checkCollision.right||!1===e.checkCollision.left?n=0:(t.touching.none=!1,t.touching.right=!0,e.touching.none=!1,e.touching.left=!0,e.physicsType!==s.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.right=!0),t.physicsType!==s.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.left=!0)):t._dxo&&!i||!1===t.checkCollision.left||!1===e.checkCollision.right?n=0:(t.touching.none=!1,t.touching.left=!0,e.touching.none=!1,e.touching.right=!0,e.physicsType!==s.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.left=!0),t.physicsType!==s.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.right=!0))),t.overlapX=n,e.overlapX=n,n}},45170:(t,e,i)=>{var s=i(37747);t.exports=function(t,e,i,r){var n=0,o=t.deltaAbsY()+e.deltaAbsY()+r;return 0===t._dy&&0===e._dy?(t.embedded=!0,e.embedded=!0):t._dy>e._dy?(n=t.bottom-e.y)>o&&!i||!1===t.checkCollision.down||!1===e.checkCollision.up?n=0:(t.touching.none=!1,t.touching.down=!0,e.touching.none=!1,e.touching.up=!0,e.physicsType!==s.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.down=!0),t.physicsType!==s.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.up=!0)):t._dyo&&!i||!1===t.checkCollision.up||!1===e.checkCollision.down?n=0:(t.touching.none=!1,t.touching.up=!0,e.touching.none=!1,e.touching.down=!0,e.physicsType!==s.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.up=!0),t.physicsType!==s.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.down=!0))),t.overlapY=n,e.overlapY=n,n}},60758:(t,e,i)=>{var s=i(13759),r=i(83419),n=i(78389),o=i(37747),a=i(95540),h=i(26479),l=i(41212),u=new r({Extends:h,Mixins:[n],initialize:function(t,e,i,r){if(i||r)if(l(i))r=i,i=null,r.internalCreateCallback=this.createCallbackHandler,r.internalRemoveCallback=this.removeCallbackHandler;else if(Array.isArray(i)&&l(i[0])){var n=this;i.forEach((function(t){t.internalCreateCallback=n.createCallbackHandler,t.internalRemoveCallback=n.removeCallbackHandler,t.classType=a(t,"classType",s)})),r=null}else r={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};else r={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler};this.world=t,r&&(r.classType=a(r,"classType",s)),this.physicsType=o.DYNAMIC_BODY,this.collisionCategory=1,this.collisionMask=1,this.defaults={setCollideWorldBounds:a(r,"collideWorldBounds",!1),setBoundsRectangle:a(r,"customBoundsRectangle",null),setAccelerationX:a(r,"accelerationX",0),setAccelerationY:a(r,"accelerationY",0),setAllowDrag:a(r,"allowDrag",!0),setAllowGravity:a(r,"allowGravity",!0),setAllowRotation:a(r,"allowRotation",!0),setDamping:a(r,"useDamping",!1),setBounceX:a(r,"bounceX",0),setBounceY:a(r,"bounceY",0),setDragX:a(r,"dragX",0),setDragY:a(r,"dragY",0),setEnable:a(r,"enable",!0),setGravityX:a(r,"gravityX",0),setGravityY:a(r,"gravityY",0),setFrictionX:a(r,"frictionX",0),setFrictionY:a(r,"frictionY",0),setMaxSpeed:a(r,"maxSpeed",-1),setMaxVelocityX:a(r,"maxVelocityX",1e4),setMaxVelocityY:a(r,"maxVelocityY",1e4),setVelocityX:a(r,"velocityX",0),setVelocityY:a(r,"velocityY",0),setAngularVelocity:a(r,"angularVelocity",0),setAngularAcceleration:a(r,"angularAcceleration",0),setAngularDrag:a(r,"angularDrag",0),setMass:a(r,"mass",1),setImmovable:a(r,"immovable",!1)},h.call(this,e,i,r),this.type="PhysicsGroup"},createCallbackHandler:function(t){t.body||this.world.enableBody(t,o.DYNAMIC_BODY);var e=t.body;for(var i in this.defaults)e[i](this.defaults[i])},removeCallbackHandler:function(t){t.body&&this.world.disableBody(t)},setVelocity:function(t,e,i){void 0===i&&(i=0);for(var s=this.getChildren(),r=0;r{var e,i,s,r,n,o,a,h,l,u,c,d,p,f,g,m,v,y=function(){return u&&g&&i.blocked.right?(e.processX(-v,a,!1,!0),1):l&&m&&i.blocked.left?(e.processX(v,a,!0),1):p&&m&&e.blocked.right?(i.processX(-v,h,!1,!0),2):d&&g&&e.blocked.left?(i.processX(v,h,!0),2):0},x=function(t){if(s&&r)v*=.5,0===t||3===t?(e.processX(v,n),i.processX(-v,o)):(e.processX(-v,n),i.processX(v,o));else if(s&&!r)0===t||3===t?e.processX(v,a,!0):e.processX(-v,a,!1,!0);else if(!s&&r)0===t||3===t?i.processX(-v,h,!1,!0):i.processX(v,h,!0);else{var g=.5*v;0===t?f?(e.processX(v,0,!0),i.processX(0,null,!1,!0)):p?(e.processX(g,0,!0),i.processX(-g,0,!1,!0)):(e.processX(g,i.velocity.x,!0),i.processX(-g,null,!1,!0)):1===t?c?(e.processX(0,null,!1,!0),i.processX(v,0,!0)):u?(e.processX(-g,0,!1,!0),i.processX(g,0,!0)):(e.processX(-g,null,!1,!0),i.processX(g,e.velocity.x,!0)):2===t?f?(e.processX(-v,0,!1,!0),i.processX(0,null,!0)):d?(e.processX(-g,0,!1,!0),i.processX(g,0,!0)):(e.processX(-g,i.velocity.x,!1,!0),i.processX(g,null,!0)):3===t&&(c?(e.processX(0,null,!0),i.processX(-v,0,!1,!0)):l?(e.processX(g,0,!0),i.processX(-g,0,!1,!0)):(e.processX(g,i.velocity.y,!0),i.processX(-g,null,!1,!0)))}return!0};t.exports={BlockCheck:y,Check:function(){var t=e.velocity.x,s=i.velocity.x,r=Math.sqrt(s*s*i.mass/e.mass)*(s>0?1:-1),a=Math.sqrt(t*t*e.mass/i.mass)*(t>0?1:-1),h=.5*(r+a);return a-=h,n=h+(r-=h)*e.bounce.x,o=h+a*i.bounce.x,l&&m?x(0):d&&g?x(1):u&&g?x(2):!(!p||!m)&&x(3)},Set:function(t,n,o){i=n;var x=(e=t).velocity.x,w=i.velocity.x;return s=e.pushable,l=e._dx<0,u=e._dx>0,c=0===e._dx,g=Math.abs(e.right-i.x)<=Math.abs(i.right-e.x),a=w-x*e.bounce.x,r=i.pushable,d=i._dx<0,p=i._dx>0,f=0===i._dx,m=!g,h=x-w*i.bounce.x,v=Math.abs(o),y()},Run:x,RunImmovableBody1:function(t){1===t?i.velocity.x=0:g?i.processX(v,h,!0):i.processX(-v,h,!1,!0),e.moves&&(i.y+=(e.y-e.prev.y)*e.friction.y,i._dy=i.y-i.prev.y)},RunImmovableBody2:function(t){2===t?e.velocity.x=0:m?e.processX(v,a,!0):e.processX(-v,a,!1,!0),i.moves&&(e.y+=(i.y-i.prev.y)*i.friction.y,e._dy=e.y-e.prev.y)}}},47962:t=>{var e,i,s,r,n,o,a,h,l,u,c,d,p,f,g,m,v,y=function(){return u&&g&&i.blocked.down?(e.processY(-v,a,!1,!0),1):l&&m&&i.blocked.up?(e.processY(v,a,!0),1):p&&m&&e.blocked.down?(i.processY(-v,h,!1,!0),2):d&&g&&e.blocked.up?(i.processY(v,h,!0),2):0},x=function(t){if(s&&r)v*=.5,0===t||3===t?(e.processY(v,n),i.processY(-v,o)):(e.processY(-v,n),i.processY(v,o));else if(s&&!r)0===t||3===t?e.processY(v,a,!0):e.processY(-v,a,!1,!0);else if(!s&&r)0===t||3===t?i.processY(-v,h,!1,!0):i.processY(v,h,!0);else{var g=.5*v;0===t?f?(e.processY(v,0,!0),i.processY(0,null,!1,!0)):p?(e.processY(g,0,!0),i.processY(-g,0,!1,!0)):(e.processY(g,i.velocity.y,!0),i.processY(-g,null,!1,!0)):1===t?c?(e.processY(0,null,!1,!0),i.processY(v,0,!0)):u?(e.processY(-g,0,!1,!0),i.processY(g,0,!0)):(e.processY(-g,null,!1,!0),i.processY(g,e.velocity.y,!0)):2===t?f?(e.processY(-v,0,!1,!0),i.processY(0,null,!0)):d?(e.processY(-g,0,!1,!0),i.processY(g,0,!0)):(e.processY(-g,i.velocity.y,!1,!0),i.processY(g,null,!0)):3===t&&(c?(e.processY(0,null,!0),i.processY(-v,0,!1,!0)):l?(e.processY(g,0,!0),i.processY(-g,0,!1,!0)):(e.processY(g,i.velocity.y,!0),i.processY(-g,null,!1,!0)))}return!0};t.exports={BlockCheck:y,Check:function(){var t=e.velocity.y,s=i.velocity.y,r=Math.sqrt(s*s*i.mass/e.mass)*(s>0?1:-1),a=Math.sqrt(t*t*e.mass/i.mass)*(t>0?1:-1),h=.5*(r+a);return a-=h,n=h+(r-=h)*e.bounce.y,o=h+a*i.bounce.y,l&&m?x(0):d&&g?x(1):u&&g?x(2):!(!p||!m)&&x(3)},Set:function(t,n,o){i=n;var x=(e=t).velocity.y,w=i.velocity.y;return s=e.pushable,l=e._dy<0,u=e._dy>0,c=0===e._dy,g=Math.abs(e.bottom-i.y)<=Math.abs(i.bottom-e.y),a=w-x*e.bounce.y,r=i.pushable,d=i._dy<0,p=i._dy>0,f=0===i._dy,m=!g,h=x-w*i.bounce.y,v=Math.abs(o),y()},Run:x,RunImmovableBody1:function(t){1===t?i.velocity.y=0:g?i.processY(v,h,!0):i.processY(-v,h,!1,!0),e.moves&&(i.x+=(e.x-e.prev.x)*e.friction.x,i._dx=i.x-i.prev.x)},RunImmovableBody2:function(t){2===t?e.velocity.y=0:m?e.processY(v,a,!0):e.processY(-v,a,!1,!0),i.moves&&(e.x+=(i.x-i.prev.x)*i.friction.x,e._dx=e.x-e.prev.x)}}},14087:(t,e,i)=>{var s=i(64897),r=i(3017);t.exports=function(t,e,i,n,o){void 0===o&&(o=s(t,e,i,n));var a=t.immovable,h=e.immovable;if(i||0===o||a&&h||t.customSeparateX||e.customSeparateX)return 0!==o||t.embedded&&e.embedded;var l=r.Set(t,e,o);return a||h?(a?r.RunImmovableBody1(l):h&&r.RunImmovableBody2(l),!0):l>0||r.Check()}},89936:(t,e,i)=>{var s=i(45170),r=i(47962);t.exports=function(t,e,i,n,o){void 0===o&&(o=s(t,e,i,n));var a=t.immovable,h=e.immovable;if(i||0===o||a&&h||t.customSeparateY||e.customSeparateY)return 0!==o||t.embedded&&e.embedded;var l=r.Set(t,e,o);return a||h?(a?r.RunImmovableBody1(l):h&&r.RunImmovableBody2(l),!0):l>0||r.Check()}},95829:t=>{t.exports=function(t,e){return void 0===e&&(e={}),e.none=t,e.up=!1,e.down=!1,e.left=!1,e.right=!1,t||(e.up=!0,e.down=!0,e.left=!0,e.right=!0),e}},72624:(t,e,i)=>{var s=i(87902),r=i(83419),n=i(78389),o=i(37747),a=i(37303),h=i(95829),l=i(26099),u=new r({Mixins:[n],initialize:function(t,e){var i=64,s=64,r=void 0!==e;r&&e.displayWidth&&(i=e.displayWidth,s=e.displayHeight),r||(e={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0}),this.world=t,this.gameObject=r?e:void 0,this.isBody=!0,this.debugShowBody=t.defaults.debugShowStaticBody,this.debugBodyColor=t.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new l,this.position=new l(e.x-i*e.originX,e.y-s*e.originY),this.width=i,this.height=s,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center=new l(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=l.ZERO,this.allowGravity=!1,this.gravity=l.ZERO,this.bounce=l.ZERO,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.mass=1,this.immovable=!0,this.pushable=!1,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision=h(!1),this.touching=h(!0),this.wasTouching=h(!0),this.blocked=h(!0),this.physicsType=o.STATIC_BODY,this.collisionCategory=1,this.collisionMask=1,this._dx=0,this._dy=0},setGameObject:function(t,e){return t&&t!==this.gameObject&&(this.gameObject.body=null,t.body=this,this.gameObject=t),e&&this.updateFromGameObject(),this},updateFromGameObject:function(){this.world.staticTree.remove(this);var t=this.gameObject;return t.getTopLeft(this.position),this.width=t.displayWidth,this.height=t.displayHeight,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.world.staticTree.insert(this),this},setOffset:function(t,e){return void 0===e&&(e=t),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(t,e),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(t,e,i){void 0===i&&(i=!0);var s=this.gameObject;if(s&&s.frame&&(t||(t=s.frame.realWidth),e||(e=s.frame.realHeight)),this.world.staticTree.remove(this),this.width=t,this.height=e,this.halfWidth=Math.floor(t/2),this.halfHeight=Math.floor(e/2),i&&s&&s.getCenter){var r=s.displayWidth/2,n=s.displayHeight/2;this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(r-this.halfWidth,n-this.halfHeight),this.position.x+=this.offset.x,this.position.y+=this.offset.y}return this.updateCenter(),this.isCircle=!1,this.radius=0,this.world.staticTree.insert(this),this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),t>0?(this.world.staticTree.remove(this),this.isCircle=!0,this.radius=t,this.width=2*t,this.height=2*t,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.offset.set(e,i),this.updateCenter(),this.world.staticTree.insert(this)):this.isCircle=!1,this},updateCenter:function(){this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},reset:function(t,e){var i=this.gameObject;void 0===t&&(t=i.x),void 0===e&&(e=i.y),this.world.staticTree.remove(this),i.setPosition(t,e),i.getTopLeft(this.position),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this)},stop:function(){return this},getBounds:function(t){return t.x=this.x,t.y=this.y,t.right=this.right,t.bottom=this.bottom,t},hitTest:function(t,e){return this.isCircle?s(this,t,e):a(this,t,e)},postUpdate:function(){},deltaAbsX:function(){return 0},deltaAbsY:function(){return 0},deltaX:function(){return 0},deltaY:function(){return 0},deltaZ:function(){return 0},destroy:function(){this.enable=!1,this.world.pendingDestroy.set(this)},drawDebug:function(t){var e=this.position,i=e.x+this.halfWidth,s=e.y+this.halfHeight;this.debugShowBody&&(t.lineStyle(t.defaultStrokeWidth,this.debugBodyColor,1),this.isCircle?t.strokeCircle(i,s,this.width/2):t.strokeRect(e.x,e.y,this.width,this.height))},willDrawDebug:function(){return this.debugShowBody},setMass:function(t){return t<=0&&(t=.1),this.mass=t,this},x:{get:function(){return this.position.x},set:function(t){this.world.staticTree.remove(this),this.position.x=t,this.world.staticTree.insert(this)}},y:{get:function(){return this.position.y},set:function(t){this.world.staticTree.remove(this),this.position.y=t,this.world.staticTree.insert(this)}},left:{get:function(){return this.position.x}},right:{get:function(){return this.position.x+this.width}},top:{get:function(){return this.position.y}},bottom:{get:function(){return this.position.y+this.height}}});t.exports=u},71464:(t,e,i)=>{var s=i(13759),r=i(83419),n=i(78389),o=i(37747),a=i(95540),h=i(26479),l=i(41212),u=new r({Extends:h,Mixins:[n],initialize:function(t,e,i,r){i||r?l(i)?(r=i,i=null,r.internalCreateCallback=this.createCallbackHandler,r.internalRemoveCallback=this.removeCallbackHandler,r.createMultipleCallback=this.createMultipleCallbackHandler,r.classType=a(r,"classType",s)):Array.isArray(i)&&l(i[0])?(r=i,i=null,r.forEach((function(t){t.internalCreateCallback=this.createCallbackHandler,t.internalRemoveCallback=this.removeCallbackHandler,t.createMultipleCallback=this.createMultipleCallbackHandler,t.classType=a(t,"classType",s)}))):r={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler}:r={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler,createMultipleCallback:this.createMultipleCallbackHandler,classType:s},this.world=t,this.physicsType=o.STATIC_BODY,this.collisionCategory=1,this.collisionMask=1,h.call(this,e,i,r),this.type="StaticPhysicsGroup"},createCallbackHandler:function(t){t.body||this.world.enableBody(t,o.STATIC_BODY)},removeCallbackHandler:function(t){t.body&&this.world.disableBody(t)},createMultipleCallbackHandler:function(){this.refresh()},refresh:function(){for(var t=this.children.entries,e=0;e{var s=i(55495),r=i(37742),n=i(45319),o=i(83419),a=i(79342),h=i(37747),l=i(20339),u=i(52816),c=i(50792),d=i(63012),p=i(43855),f=i(5470),g=i(94977),m=i(64897),v=i(45170),y=i(96523),x=i(35154),w=i(36383),T=i(25774),b=i(96602),S=i(87841),E=i(59542),C=i(40012),A=i(14087),_=i(89936),P=i(35072),R=i(72624),M=i(2483),k=i(61340),L=i(26099),O=i(15994),F=new o({Extends:c,initialize:function(t,e){c.call(this),this.scene=t,this.bodies=new P,this.staticBodies=new P,this.pendingDestroy=new P,this.colliders=new T,this.gravity=new L(x(e,"gravity.x",0),x(e,"gravity.y",0)),this.bounds=new S(x(e,"x",0),x(e,"y",0),x(e,"width",t.sys.scale.width),x(e,"height",t.sys.scale.height)),this.checkCollision={up:x(e,"checkCollision.up",!0),down:x(e,"checkCollision.down",!0),left:x(e,"checkCollision.left",!0),right:x(e,"checkCollision.right",!0)},this.fps=x(e,"fps",60),this.fixedStep=x(e,"fixedStep",!0),this._elapsed=0,this._frameTime=1/this.fps,this._frameTimeMS=1e3*this._frameTime,this.stepsLastFrame=0,this.timeScale=x(e,"timeScale",1),this.OVERLAP_BIAS=x(e,"overlapBias",4),this.TILE_BIAS=x(e,"tileBias",16),this.forceX=x(e,"forceX",!1),this.isPaused=x(e,"isPaused",!1),this._total=0,this.drawDebug=x(e,"debug",!1),this.debugGraphic,this.defaults={debugShowBody:x(e,"debugShowBody",!0),debugShowStaticBody:x(e,"debugShowStaticBody",!0),debugShowVelocity:x(e,"debugShowVelocity",!0),bodyDebugColor:x(e,"debugBodyColor",16711935),staticBodyDebugColor:x(e,"debugStaticBodyColor",255),velocityDebugColor:x(e,"debugVelocityColor",65280)},this.maxEntries=x(e,"maxEntries",16),this.useTree=x(e,"useTree",!0),this.tree=new E(this.maxEntries),this.staticTree=new E(this.maxEntries),this.treeMinMax={minX:0,minY:0,maxX:0,maxY:0},this._tempMatrix=new k,this._tempMatrix2=new k,this.tileFilterOptions={isColliding:!0,isNotEmpty:!0,hasInterestingFace:!0},this.drawDebug&&this.createDebugGraphic()},enable:function(t,e){void 0===e&&(e=h.DYNAMIC_BODY),Array.isArray(t)||(t=[t]);for(var i=0;i=n;for(this.fixedStep||(r=.001*e,a=!0,this._elapsed=0),i=0;i=n;)this._elapsed-=n,this.step(r)}},step:function(t){var e,i,s=this.bodies.entries,r=s.length;for(e=0;e0){var l=this.tree,u=this.staticTree;for(s=(i=a.entries).length,t=0;t-1&&t.velocity.length()>d&&(t.velocity.normalize().scale(d),c=d),t.speed=c},separate:function(t,e,i,s,r){var n,o,a=!1,h=!0;if(!t.enable||!e.enable||t.checkCollision.none||e.checkCollision.none||!this.intersects(t,e))return a;if(i&&!1===i.call(s,t.gameObject,e.gameObject))return a;if(t.isCircle||e.isCircle){var l=this.separateCircle(t,e,r);l.result?(a=!0,h=!1):(n=l.x,o=l.y,h=!0)}if(h){var u=!1,c=!1,p=this.OVERLAP_BIAS;r?(u=A(t,e,r,p,n),c=_(t,e,r,p,o)):this.forceX||Math.abs(this.gravity.y+t.gravity.y)E&&(f=l(y,x,E,S)-T):x>C&&(yE&&(f=l(y,x,E,C)-T)),f*=-1}else f=t.halfWidth+e.halfWidth-u(o,a);t.overlapR=f,e.overlapR=f;var A=s(o,a),_=(f+w.EPSILON)*Math.cos(A),P=(f+w.EPSILON)*Math.sin(A),R={overlap:f,result:!1,x:_,y:P};if(i&&(!g||g&&0!==f))return R.result=!0,R;if(!g&&0===f||h&&c||t.customSeparateX||e.customSeparateX)return R.x=void 0,R.y=void 0,R;var M=!t.pushable&&!e.pushable;if(g){var k=o.x-a.x,L=o.y-a.y,O=Math.sqrt(Math.pow(k,2)+Math.pow(L,2)),F=(a.x-o.x)/O||0,D=(a.y-o.y)/O||0,I=2*(d.x*F+d.y*D-p.x*F-p.y*D)/(t.mass+e.mass);(h||c)&&(I*=2),h||(d.x=d.x-I/t.mass*F,d.y=d.y-I/t.mass*D,d.multiply(t.bounce)),c||(p.x=p.x+I/e.mass*F,p.y=p.y+I/e.mass*D,p.multiply(e.bounce)),h||c||(_*=.5,P*=.5),h||(t.x-=_,t.y-=P,t.updateCenter()),c||(e.x+=_,e.y+=P,e.updateCenter()),R.result=!0}else!h||t.pushable||M?(t.x-=_,t.y-=P,t.updateCenter()):(!c||e.pushable||M)&&(e.x+=_,e.y+=P,e.updateCenter()),R.x=void 0,R.y=void 0;return R},intersects:function(t,e){return t!==e&&(t.isCircle||e.isCircle?t.isCircle?e.isCircle?u(t.center,e.center)<=t.halfWidth+e.halfWidth:this.circleBodyIntersects(t,e):this.circleBodyIntersects(e,t):!(t.right<=e.left||t.bottom<=e.top||t.left>=e.right||t.top>=e.bottom))},circleBodyIntersects:function(t,e){var i=n(t.center.x,e.left,e.right),s=n(t.center.y,e.top,e.bottom);return(t.center.x-i)*(t.center.x-i)+(t.center.y-s)*(t.center.y-s)<=t.halfWidth*t.halfWidth},overlap:function(t,e,i,s,r){return void 0===i&&(i=null),void 0===s&&(s=null),void 0===r&&(r=i),this.collideObjects(t,e,i,s,r,!0)},collide:function(t,e,i,s,r){return void 0===i&&(i=null),void 0===s&&(s=null),void 0===r&&(r=i),this.collideObjects(t,e,i,s,r,!1)},collideObjects:function(t,e,i,s,r,n){var o,a;!t.isParent||void 0!==t.physicsType&&void 0!==e&&t!==e||(t=t.children.entries),e&&e.isParent&&void 0===e.physicsType&&(e=e.children.entries);var h=Array.isArray(t),l=Array.isArray(e);if(this._total=0,h||l)if(!h&&l)for(o=0;o0},collideHandler:function(t,e,i,s,r,n){if(void 0===e&&t.isParent)return this.collideGroupVsGroup(t,t,i,s,r,n);if(!t||!e)return!1;if(t.body||t.isBody){if(e.body||e.isBody)return this.collideSpriteVsSprite(t,e,i,s,r,n);if(e.isParent)return this.collideSpriteVsGroup(t,e,i,s,r,n);if(e.isTilemap)return this.collideSpriteVsTilemapLayer(t,e,i,s,r,n)}else if(t.isParent){if(e.body||e.isBody)return this.collideSpriteVsGroup(e,t,i,s,r,n);if(e.isParent)return this.collideGroupVsGroup(t,e,i,s,r,n);if(e.isTilemap)return this.collideGroupVsTilemapLayer(t,e,i,s,r,n)}else if(t.isTilemap){if(e.body||e.isBody)return this.collideSpriteVsTilemapLayer(e,t,i,s,r,n);if(e.isParent)return this.collideGroupVsTilemapLayer(e,t,i,s,r,n)}},canCollide:function(t,e){return t&&e&&!!(t.collisionMask&e.collisionCategory)&&!!(e.collisionMask&t.collisionCategory)},collideSpriteVsSprite:function(t,e,i,s,r,n){var o=t.isBody?t:t.body,a=e.isBody?e:e.body;return!!this.canCollide(o,a)&&(this.separate(o,a,s,r,n)&&(i&&i.call(r,t,e),this._total++),!0)},collideSpriteVsGroup:function(t,e,i,s,r,n){var o,a,l,u=t.isBody?t:t.body;if(0!==e.length&&u&&u.enable&&!u.checkCollision.none&&this.canCollide(u,e))if(this.useTree||e.physicsType===h.STATIC_BODY){var c=this.treeMinMax;c.minX=u.left,c.minY=u.top,c.maxX=u.right,c.maxY=u.bottom;var d=e.physicsType===h.DYNAMIC_BODY?this.tree.search(c):this.staticTree.search(c);for(a=d.length,o=0;o{t.exports={setAcceleration:function(t,e){return this.body.acceleration.set(t,e),this},setAccelerationX:function(t){return this.body.acceleration.x=t,this},setAccelerationY:function(t){return this.body.acceleration.y=t,this}}},59023:t=>{t.exports={setAngularVelocity:function(t){return this.body.angularVelocity=t,this},setAngularAcceleration:function(t){return this.body.angularAcceleration=t,this},setAngularDrag:function(t){return this.body.angularDrag=t,this}}},62069:t=>{t.exports={setBounce:function(t,e){return this.body.bounce.set(t,e),this},setBounceX:function(t){return this.body.bounce.x=t,this},setBounceY:function(t){return this.body.bounce.y=t,this},setCollideWorldBounds:function(t,e,i,s){return this.body.setCollideWorldBounds(t,e,i,s),this}}},78389:(t,e,i)=>{var s=i(79599),r={setCollisionCategory:function(t){return(this.body?this.body:this).collisionCategory=t,this},willCollideWith:function(t){return!!((this.body?this.body:this).collisionMask&t)},addCollidesWith:function(t){var e=this.body?this.body:this;return e.collisionMask=e.collisionMask|t,this},removeCollidesWith:function(t){var e=this.body?this.body:this;return e.collisionMask=e.collisionMask&~t,this},setCollidesWith:function(t){return(this.body?this.body:this).collisionMask=s(t),this},resetCollisionCategory:function(){var t=this.body?this.body:this;return t.collisionCategory=1,t.collisionMask=1,this}};t.exports=r},87118:t=>{t.exports={setDebug:function(t,e,i){return this.debugShowBody=t,this.debugShowVelocity=e,this.debugBodyColor=i,this},setDebugBodyColor:function(t){return this.body.debugBodyColor=t,this},debugShowBody:{get:function(){return this.body.debugShowBody},set:function(t){this.body.debugShowBody=t}},debugShowVelocity:{get:function(){return this.body.debugShowVelocity},set:function(t){this.body.debugShowVelocity=t}},debugBodyColor:{get:function(){return this.body.debugBodyColor},set:function(t){this.body.debugBodyColor=t}}}},52819:t=>{t.exports={setDrag:function(t,e){return this.body.drag.set(t,e),this},setDragX:function(t){return this.body.drag.x=t,this},setDragY:function(t){return this.body.drag.y=t,this},setDamping:function(t){return this.body.useDamping=t,this}}},4074:t=>{t.exports={setDirectControl:function(t){return this.body.setDirectControl(t),this},enableBody:function(t,e,i,s,r){return t&&this.body.reset(e,i),s&&(this.body.gameObject.active=!0),r&&(this.body.gameObject.visible=!0),this.body.enable=!0,this},disableBody:function(t,e){return void 0===t&&(t=!1),void 0===e&&(e=!1),this.body.stop(),this.body.enable=!1,t&&(this.body.gameObject.active=!1),e&&(this.body.gameObject.visible=!1),this},refreshBody:function(){return this.body.updateFromGameObject(),this}}},40831:t=>{t.exports={setFriction:function(t,e){return this.body.friction.set(t,e),this},setFrictionX:function(t){return this.body.friction.x=t,this},setFrictionY:function(t){return this.body.friction.y=t,this}}},26775:t=>{t.exports={setGravity:function(t,e){return this.body.gravity.set(t,e),this},setGravityX:function(t){return this.body.gravity.x=t,this},setGravityY:function(t){return this.body.gravity.y=t,this}}},9437:t=>{t.exports={setImmovable:function(t){return void 0===t&&(t=!0),this.body.immovable=t,this}}},30621:t=>{t.exports={setMass:function(t){return this.body.mass=t,this}}},72441:(t,e,i)=>{var s=i(47956),r=i(96503),n=i(2044),o=i(81491);t.exports=function(t,e,i,a,h,l){var u=s(t,e-a,i-a,2*a,2*a,h,l);if(0===u.length)return u;for(var c=new r(e,i,a),d=new r,p=[],f=0;f{t.exports=function(t,e,i,s,r,n,o){void 0===n&&(n=!0),void 0===o&&(o=!1);var a=[],h=[],l=t.treeMinMax;if(l.minX=e,l.minY=i,l.maxX=e+s,l.maxY=i+r,o&&(h=t.staticTree.search(l)),n&&t.useTree)a=t.tree.search(l);else if(n){var u=t.bodies,c={position:{x:e,y:i},left:e,top:i,right:e+s,bottom:i+r,isCircle:!1},d=t.intersects;u.iterate((function(t){d(t,c)&&a.push(t)}))}return h.concat(a)}},62121:t=>{t.exports={setPushable:function(t){return void 0===t&&(t=!0),this.body.pushable=t,this}}},29384:t=>{t.exports={setOffset:function(t,e){return this.body.setOffset(t,e),this},setSize:function(t,e,i){return this.body.setSize(t,e,i),this},setBodySize:function(t,e,i){return this.body.setSize(t,e,i),this},setCircle:function(t,e,i){return this.body.setCircle(t,e,i),this}}},15098:t=>{t.exports={setVelocity:function(t,e){return this.body.setVelocity(t,e),this},setVelocityX:function(t){return this.body.setVelocityX(t),this},setVelocityY:function(t){return this.body.setVelocityY(t),this},setMaxVelocity:function(t,e){return this.body.maxVelocity.set(t,e),this}}},92209:(t,e,i)=>{t.exports={Acceleration:i(1093),Angular:i(59023),Bounce:i(62069),Collision:i(78389),Debug:i(87118),Drag:i(52819),Enable:i(4074),Friction:i(40831),Gravity:i(26775),Immovable:i(9437),Mass:i(30621),OverlapCirc:i(72441),OverlapRect:i(47956),Pushable:i(62121),Size:i(29384),Velocity:i(15098)}},37747:t=>{t.exports={DYNAMIC_BODY:0,STATIC_BODY:1,GROUP:2,TILEMAPLAYER:3,FACING_NONE:10,FACING_UP:11,FACING_DOWN:12,FACING_LEFT:13,FACING_RIGHT:14}},20009:t=>{t.exports="collide"},36768:t=>{t.exports="overlap"},60473:t=>{t.exports="pause"},89954:t=>{t.exports="resume"},61804:t=>{t.exports="tilecollide"},7161:t=>{t.exports="tileoverlap"},34689:t=>{t.exports="worldbounds"},16006:t=>{t.exports="worldstep"},63012:(t,e,i)=>{t.exports={COLLIDE:i(20009),OVERLAP:i(36768),PAUSE:i(60473),RESUME:i(89954),TILE_COLLIDE:i(61804),TILE_OVERLAP:i(7161),WORLD_BOUNDS:i(34689),WORLD_STEP:i(16006)}},27064:(t,e,i)=>{var s=i(37747),r=i(79291),n={ArcadePhysics:i(86689),Body:i(37742),Collider:i(79342),Components:i(92209),Events:i(63012),Factory:i(66022),GetCollidesWith:i(79599),GetOverlapX:i(64897),GetOverlapY:i(45170),SeparateX:i(14087),SeparateY:i(89936),Group:i(60758),Image:i(71289),Sprite:i(13759),StaticBody:i(72624),StaticGroup:i(71464),Tilemap:i(55173),World:i(82248)};n=r(!1,n,s),t.exports=n},96602:t=>{t.exports=function(t,e){return t.collisionCallback?!t.collisionCallback.call(t.collisionCallbackContext,e,t):!t.layer.callbacks[t.index]||!t.layer.callbacks[t.index].callback.call(t.layer.callbacks[t.index].callbackContext,e,t)}},36294:t=>{t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.left=!0):e>0&&(t.blocked.none=!1,t.blocked.right=!0),t.position.x-=e,t.updateCenter(),0===t.bounce.x?t.velocity.x=0:t.velocity.x=-t.velocity.x*t.bounce.x}},67013:t=>{t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.up=!0):e>0&&(t.blocked.none=!1,t.blocked.down=!0),t.position.y-=e,t.updateCenter(),0===t.bounce.y?t.velocity.y=0:t.velocity.y=-t.velocity.y*t.bounce.y}},40012:(t,e,i)=>{var s=i(21329),r=i(53442),n=i(2483);t.exports=function(t,e,i,o,a,h,l){var u=o.left,c=o.top,d=o.right,p=o.bottom,f=i.faceLeft||i.faceRight,g=i.faceTop||i.faceBottom;if(l||(f=!0,g=!0),!f&&!g)return!1;var m=0,v=0,y=0,x=1;if(e.deltaAbsX()>e.deltaAbsY()?y=-1:e.deltaAbsX(){var s=i(36294);t.exports=function(t,e,i,r,n,o){var a=0,h=e.faceLeft,l=e.faceRight,u=e.collideLeft,c=e.collideRight;return o||(h=!0,l=!0,u=!0,c=!0),t.deltaX()<0&&c&&t.checkCollision.left?l&&t.x0&&u&&t.checkCollision.right&&h&&t.right>i&&(a=t.right-i)>n&&(a=0),0!==a&&(t.customSeparateX?t.overlapX=a:s(t,a)),a}},53442:(t,e,i)=>{var s=i(67013);t.exports=function(t,e,i,r,n,o){var a=0,h=e.faceTop,l=e.faceBottom,u=e.collideUp,c=e.collideDown;return o||(h=!0,l=!0,u=!0,c=!0),t.deltaY()<0&&c&&t.checkCollision.up?l&&t.y0&&u&&t.checkCollision.down&&h&&t.bottom>i&&(a=t.bottom-i)>n&&(a=0),0!==a&&(t.customSeparateY?t.overlapY=a:s(t,a)),a}},2483:t=>{t.exports=function(t,e){return!(e.right<=t.left||e.bottom<=t.top||e.position.x>=t.right||e.position.y>=t.bottom)}},55173:(t,e,i)=>{var s={ProcessTileCallbacks:i(96602),ProcessTileSeparationX:i(36294),ProcessTileSeparationY:i(67013),SeparateTile:i(40012),TileCheckX:i(21329),TileCheckY:i(53442),TileIntersectsBody:i(2483)};t.exports=s},44563:(t,e,i)=>{t.exports={Arcade:i(27064),Matter:i(3875)}},68174:(t,e,i)=>{var s=i(83419),r=i(26099),n=new s({initialize:function(){this.boundsCenter=new r,this.centerDiff=new r},parseBody:function(t){if(!(t=t.hasOwnProperty("body")?t.body:t).hasOwnProperty("bounds")||!t.hasOwnProperty("centerOfMass"))return!1;var e=this.boundsCenter,i=this.centerDiff,s=t.bounds.max.x-t.bounds.min.x,r=t.bounds.max.y-t.bounds.min.y,n=s*t.centerOfMass.x,o=r*t.centerOfMass.y;return e.set(s/2,r/2),i.set(n-e.x,o-e.y),!0},getTopLeft:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var s=this.boundsCenter,n=this.centerDiff;return new r(e+s.x+n.x,i+s.y+n.y)}return!1},getTopCenter:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var s=this.boundsCenter,n=this.centerDiff;return new r(e+n.x,i+s.y+n.y)}return!1},getTopRight:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var s=this.boundsCenter,n=this.centerDiff;return new r(e-(s.x-n.x),i+s.y+n.y)}return!1},getLeftCenter:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var s=this.boundsCenter,n=this.centerDiff;return new r(e+s.x+n.x,i+n.y)}return!1},getCenter:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var s=this.centerDiff;return new r(e+s.x,i+s.y)}return!1},getRightCenter:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var s=this.boundsCenter,n=this.centerDiff;return new r(e-(s.x-n.x),i+n.y)}return!1},getBottomLeft:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var s=this.boundsCenter,n=this.centerDiff;return new r(e+s.x+n.x,i-(s.y-n.y))}return!1},getBottomCenter:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var s=this.boundsCenter,n=this.centerDiff;return new r(e+n.x,i-(s.y-n.y))}return!1},getBottomRight:function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),this.parseBody(t)){var s=this.boundsCenter,n=this.centerDiff;return new r(e-(s.x-n.x),i-(s.y-n.y))}return!1}});t.exports=n},19933:(t,e,i)=>{var s=i(6790);s.Body=i(22562),s.Composite=i(69351),s.World=i(4372),s.Collision=i(52284),s.Detector=i(81388),s.Pairs=i(99561),s.Pair=i(4506),s.Query=i(73296),s.Resolver=i(66272),s.Constraint=i(48140),s.Common=i(53402),s.Engine=i(48413),s.Events=i(35810),s.Sleeping=i(53614),s.Plugin=i(73832),s.Bodies=i(66280),s.Composites=i(74116),s.Axes=i(66615),s.Bounds=i(15647),s.Svg=i(74058),s.Vector=i(31725),s.Vertices=i(41598),s.World.add=s.Composite.add,s.World.remove=s.Composite.remove,s.World.addComposite=s.Composite.addComposite,s.World.addBody=s.Composite.addBody,s.World.addConstraint=s.Composite.addConstraint,s.World.clear=s.Composite.clear,t.exports=s},28137:(t,e,i)=>{var s=i(66280),r=i(83419),n=i(74116),o=i(48140),a=i(74058),h=i(75803),l=i(23181),u=i(34803),c=i(73834),d=i(19496),p=i(85791),f=i(98713),g=i(41598),m=new r({initialize:function(t){this.world=t,this.scene=t.scene,this.sys=t.scene.sys},rectangle:function(t,e,i,r,n){var o=s.rectangle(t,e,i,r,n);return this.world.add(o),o},trapezoid:function(t,e,i,r,n,o){var a=s.trapezoid(t,e,i,r,n,o);return this.world.add(a),a},circle:function(t,e,i,r,n){var o=s.circle(t,e,i,r,n);return this.world.add(o),o},polygon:function(t,e,i,r,n){var o=s.polygon(t,e,i,r,n);return this.world.add(o),o},fromVertices:function(t,e,i,r,n,o,a){"string"==typeof i&&(i=g.fromPath(i));var h=s.fromVertices(t,e,i,r,n,o,a);return this.world.add(h),h},fromPhysicsEditor:function(t,e,i,s,r){void 0===r&&(r=!0);var n=d.parseBody(t,e,i,s);return r&&!this.world.has(n)&&this.world.add(n),n},fromSVG:function(t,e,i,r,n,o){void 0===r&&(r=1),void 0===n&&(n={}),void 0===o&&(o=!0);for(var h=i.getElementsByTagName("path"),l=[],u=0;u{var s=i(31884),r=i(95540),n=i(26099);t.exports=function(t,e,i,o){void 0===i&&(i={}),void 0===o&&(o=!0);var a=e.x,h=e.y;if(e.body={temp:!0,position:{x:a,y:h}},[s.Bounce,s.Collision,s.Force,s.Friction,s.Gravity,s.Mass,s.Sensor,s.SetBody,s.Sleep,s.Static,s.Transform,s.Velocity].forEach((function(t){for(var i in t)(s=t[i]).get&&"function"==typeof s.get||s.set&&"function"==typeof s.set?Object.defineProperty(e,i,{get:t[i].get,set:t[i].set}):Object.defineProperty(e,i,{value:t[i]});var s})),e.world=t,e._tempVec2=new n(a,h),i.hasOwnProperty("type")&&"body"===i.type)e.setExistingBody(i,o);else{var l=r(i,"shape",null);l||(l="rectangle"),i.addToWorld=o,e.setBody(l,i)}return e}},23181:(t,e,i)=>{var s=i(83419),r=i(31884),n=i(95643),o=i(95540),a=i(88571),h=i(72699),l=i(26099),u=new s({Extends:a,Mixins:[r.Bounce,r.Collision,r.Force,r.Friction,r.Gravity,r.Mass,r.Sensor,r.SetBody,r.Sleep,r.Static,r.Transform,r.Velocity,h],initialize:function(t,e,i,s,r,a){n.call(this,t.scene,"Image"),this._crop=this.resetCropObject(),this.setTexture(s,r),this.setSizeToFrame(),this.setOrigin(),this.world=t,this._tempVec2=new l(e,i);var h=o(a,"shape",null);h?this.setBody(h,a):this.setRectangle(this.width,this.height,a),this.setPosition(e,i),this.initPipeline(),this.initPostPipeline(!0)}});t.exports=u},42045:(t,e,i)=>{var s=i(60461),r=i(66615),n=i(66280),o=i(22562),a=i(68174),h=i(15647),l=i(83419),u=i(52284),c=i(53402),d=i(69351),p=i(74116),f=i(48140),g=i(81388),m=i(20339),v=i(28137),y=i(95540),x=i(35154),w=i(18210),T=i(40178),b=i(6790),S=i(74507),E=i(46975),C=i(4506),A=i(99561),_=i(73832),P=i(37277),R=i(73296),M=i(66272),k=i(44594),L=i(74058),O=i(31725),F=i(41598),D=i(68243);c.setDecomp(i(55973));var I=new l({initialize:function(t){this.scene=t,this.systems=t.sys,this.config=this.getConfig(),this.world,this.add,this.bodyBounds,this.body=o,this.composite=d,this.collision=u,this.detector=g,this.pair=C,this.pairs=A,this.query=R,this.resolver=M,this.constraint=f,this.bodies=n,this.composites=p,this.axes=r,this.bounds=h,this.svg=L,this.vector=O,this.vertices=F,this.verts=F,this._tempVec2=O.create(),x(this.config,"plugins.collisionevents",!0)&&this.enableCollisionEventsPlugin(),x(this.config,"plugins.attractors",!1)&&this.enableAttractorPlugin(),x(this.config,"plugins.wrap",!1)&&this.enableWrapPlugin(),M._restingThresh=x(this.config,"restingThresh",4),M._restingThreshTangent=x(this.config,"restingThreshTangent",6),M._positionDampen=x(this.config,"positionDampen",.9),M._positionWarming=x(this.config,"positionWarming",.8),M._frictionNormalMultiplier=x(this.config,"frictionNormalMultiplier",5),t.sys.events.once(k.BOOT,this.boot,this),t.sys.events.on(k.START,this.start,this)},boot:function(){this.world=new D(this.scene,this.config),this.add=new v(this.world),this.bodyBounds=new a,this.systems.events.once(k.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new D(this.scene,this.config),this.add=new v(this.world));var t=this.systems.events;t.on(k.UPDATE,this.world.update,this.world),t.on(k.POST_UPDATE,this.world.postUpdate,this.world),t.once(k.SHUTDOWN,this.shutdown,this)},getConfig:function(){var t=this.systems.game.config.physics,e=this.systems.settings.physics;return E(y(e,"matter",{}),y(t,"matter",{}))},enableAttractorPlugin:function(){return _.register(w),_.use(b,w),this},enableWrapPlugin:function(){return _.register(S),_.use(b,S),this},enableCollisionEventsPlugin:function(){return _.register(T),_.use(b,T),this},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},set60Hz:function(){return this.world.getDelta=this.world.update60Hz,this.world.autoUpdate=!0,this},set30Hz:function(){return this.world.getDelta=this.world.update30Hz,this.world.autoUpdate=!0,this},step:function(t,e){this.world.step(t,e)},containsPoint:function(t,e,i){t=this.getMatterBodies(t);var s=O.create(e,i);return R.point(t,s).length>0},intersectPoint:function(t,e,i){i=this.getMatterBodies(i);var s=O.create(t,e),r=[];return R.point(i,s).forEach((function(t){-1===r.indexOf(t)&&r.push(t)})),r},intersectRect:function(t,e,i,s,r,n){void 0===r&&(r=!1),n=this.getMatterBodies(n);var o={min:{x:t,y:e},max:{x:t+i,y:e+s}},a=[];return R.region(n,o,r).forEach((function(t){-1===a.indexOf(t)&&a.push(t)})),a},intersectRay:function(t,e,i,s,r,n){void 0===r&&(r=1),n=this.getMatterBodies(n);for(var o=[],a=R.ray(n,O.create(t,e),O.create(i,s),r),h=0;h{var s=i(9674),r=i(83419),n=i(31884),o=i(95643),a=i(95540),h=i(72699),l=i(68287),u=i(26099),c=new r({Extends:l,Mixins:[n.Bounce,n.Collision,n.Force,n.Friction,n.Gravity,n.Mass,n.Sensor,n.SetBody,n.Sleep,n.Static,n.Transform,n.Velocity,h],initialize:function(t,e,i,r,n,h){o.call(this,t.scene,"Sprite"),this._crop=this.resetCropObject(),this.anims=new s(this),this.setTexture(r,n),this.setSizeToFrame(),this.setOrigin(),this.world=t,this._tempVec2=new u(e,i);var l=a(h,"shape",null);l?this.setBody(l,h):this.setRectangle(this.width,this.height,h),this.setPosition(e,i),this.initPipeline(),this.initPostPipeline(!0)}});t.exports=c},73834:(t,e,i)=>{var s=i(66280),r=i(22562),n=i(83419),o=i(31884),a=i(62644),h=i(50792),l=i(95540),u=i(97022),c=i(41598),d=new n({Extends:h,Mixins:[o.Bounce,o.Collision,o.Friction,o.Gravity,o.Mass,o.Sensor,o.Sleep,o.Static],initialize:function(t,e,i){h.call(this),this.tile=e,this.world=t,e.physics.matterBody&&e.physics.matterBody.destroy(),e.physics.matterBody=this;var s=l(i,"body",null),n=l(i,"addToWorld",!0);if(s)this.setBody(s,n);else{var o=e.getCollisionGroup();l(o,"objects",[]).length>0?this.setFromTileCollision(i):this.setFromTileRectangle(i)}if(e.flipX||e.flipY){var a={x:e.getCenterX(),y:e.getCenterY()},u=e.flipX?-1:1,c=e.flipY?-1:1;r.scale(s,u,c,a)}},setFromTileRectangle:function(t){void 0===t&&(t={}),u(t,"isStatic")||(t.isStatic=!0),u(t,"addToWorld")||(t.addToWorld=!0);var e=this.tile.getBounds(),i=e.x+e.width/2,r=e.y+e.height/2,n=s.rectangle(i,r,e.width,e.height,t);return this.setBody(n,t.addToWorld),this},setFromTileCollision:function(t){void 0===t&&(t={}),u(t,"isStatic")||(t.isStatic=!0),u(t,"addToWorld")||(t.addToWorld=!0);for(var e=this.tile.tilemapLayer.scaleX,i=this.tile.tilemapLayer.scaleY,n=this.tile.getLeft(),o=this.tile.getTop(),h=this.tile.getCollisionGroup(),d=l(h,"objects",[]),p=[],f=0;f1){var E=a(t);E.parts=p,this.setBody(r.create(E),E.addToWorld)}return this},setBody:function(t,e){return void 0===e&&(e=!0),this.body&&this.removeBody(),this.body=t,this.body.gameObject=this,e&&this.world.add(this.body),this},removeBody:function(){return this.body&&(this.world.remove(this.body),this.body.gameObject=void 0,this.body=void 0),this},destroy:function(){this.removeBody(),this.tile.physics.matterBody=void 0,this.removeAllListeners()}});t.exports=d},19496:(t,e,i)=>{var s=i(66280),r=i(22562),n=i(53402),o=i(95540),a=i(41598),h={parseBody:function(t,e,i,s){void 0===s&&(s={});for(var a=o(i,"fixtures",[]),h=[],l=0;l{var s=i(66280),r=i(22562),n={parseBody:function(t,e,i,n){var o;void 0===n&&(n={});var a=i.vertices;if(1===a.length)n.vertices=a[0],o=r.create(n),s.flagCoincidentParts(o.parts);else{for(var h=[],l=0;l{var s=i(15647),r=i(83419),n=i(69351),o=i(48140),a=i(81388),h=i(1121),l=i(8214),u=i(46975),c=i(53614),d=i(26099),p=i(41598),f=new r({initialize:function(t,e,i){void 0===i&&(i={}),this.scene=t,this.world=e,this.camera=null,this.pointer=null,this.active=!0,this.position=new d,this.body=null,this.part=null,this.constraint=o.create(u(i,{label:"Pointer Constraint",pointA:{x:0,y:0},pointB:{x:0,y:0},length:.01,stiffness:.1,angularStiffness:1,collisionFilter:{category:1,mask:4294967295,group:0}})),this.world.on(h.BEFORE_UPDATE,this.update,this),t.sys.input.on(l.POINTER_DOWN,this.onDown,this),t.sys.input.on(l.POINTER_UP,this.onUp,this)},onDown:function(t){this.pointer||(this.pointer=t,this.camera=t.camera)},onUp:function(t){t===this.pointer&&(this.pointer=null)},getBody:function(t){var e=this.position,i=this.constraint;this.camera.getWorldPoint(t.x,t.y,e);for(var r=n.allBodies(this.world.localWorld),o=0;o1?1:0;r{var s=i(66280),r=i(22562),n=i(83419),o=i(53402),a=i(69351),h=i(48413),l=i(50792),u=i(1121),c=i(95540),d=i(35154),p=i(22562),f=i(35810),g=i(73834),m=i(4372),v=i(31725),y=new n({Extends:l,initialize:function(t,e){l.call(this),this.scene=t,this.engine=h.create(e),this.localWorld=this.engine.world;var i=d(e,"gravity",null);i?this.setGravity(i.x,i.y,i.scale):!1===i&&this.setGravity(0,0,0),this.walls={left:null,right:null,top:null,bottom:null},this.enabled=d(e,"enabled",!0),this.getDelta=d(e,"getDelta",this.update60Hz);var s=c(e,"runner",{}),r=c(s,"fps",!1),n=c(s,"fps",60),o=c(s,"delta",1e3/n),a=c(s,"deltaMin",1e3/n),u=c(s,"deltaMax",1e3/(.5*n));r||(n=1e3/o),this.runner={fps:n,deltaSampleSize:c(s,"deltaSampleSize",60),counterTimestamp:0,frameCounter:0,deltaHistory:[],timePrev:null,timeScalePrev:1,frameRequestId:null,isFixed:c(s,"isFixed",!1),delta:o,deltaMin:a,deltaMax:u},this.autoUpdate=d(e,"autoUpdate",!0);var p=d(e,"debug",!1);if(this.drawDebug="object"==typeof p||p,this.debugGraphic,this.debugConfig={showAxes:c(p,"showAxes",!1),showAngleIndicator:c(p,"showAngleIndicator",!1),angleColor:c(p,"angleColor",15208787),showBroadphase:c(p,"showBroadphase",!1),broadphaseColor:c(p,"broadphaseColor",16757760),showBounds:c(p,"showBounds",!1),boundsColor:c(p,"boundsColor",16777215),showVelocity:c(p,"showVelocity",!1),velocityColor:c(p,"velocityColor",44783),showCollisions:c(p,"showCollisions",!1),collisionColor:c(p,"collisionColor",16094476),showSeparations:c(p,"showSeparations",!1),separationColor:c(p,"separationColor",16753920),showBody:c(p,"showBody",!0),showStaticBody:c(p,"showStaticBody",!0),showInternalEdges:c(p,"showInternalEdges",!1),renderFill:c(p,"renderFill",!1),renderLine:c(p,"renderLine",!0),fillColor:c(p,"fillColor",1075465),fillOpacity:c(p,"fillOpacity",1),lineColor:c(p,"lineColor",2678297),lineOpacity:c(p,"lineOpacity",1),lineThickness:c(p,"lineThickness",1),staticFillColor:c(p,"staticFillColor",857979),staticLineColor:c(p,"staticLineColor",1255396),showSleeping:c(p,"showSleeping",!1),staticBodySleepOpacity:c(p,"staticBodySleepOpacity",.7),sleepFillColor:c(p,"sleepFillColor",4605510),sleepLineColor:c(p,"sleepLineColor",10066585),showSensors:c(p,"showSensors",!0),sensorFillColor:c(p,"sensorFillColor",857979),sensorLineColor:c(p,"sensorLineColor",1255396),showPositions:c(p,"showPositions",!0),positionSize:c(p,"positionSize",4),positionColor:c(p,"positionColor",14697178),showJoint:c(p,"showJoint",!0),jointColor:c(p,"jointColor",14737474),jointLineOpacity:c(p,"jointLineOpacity",1),jointLineThickness:c(p,"jointLineThickness",2),pinSize:c(p,"pinSize",4),pinColor:c(p,"pinColor",4382944),springColor:c(p,"springColor",14697184),anchorColor:c(p,"anchorColor",15724527),anchorSize:c(p,"anchorSize",4),showConvexHulls:c(p,"showConvexHulls",!1),hullColor:c(p,"hullColor",14091216)},this.drawDebug&&this.createDebugGraphic(),this.setEventsProxy(),c(e,"setBounds",!1)){var f=e.setBounds;if("boolean"==typeof f)this.setBounds();else{var g=c(f,"x",0),m=c(f,"y",0),v=c(f,"width",t.sys.scale.width),y=c(f,"height",t.sys.scale.height),x=c(f,"thickness",64),w=c(f,"left",!0),T=c(f,"right",!0),b=c(f,"top",!0),S=c(f,"bottom",!0);this.setBounds(g,m,v,y,x,w,T,b,S)}}},setCompositeRenderStyle:function(t){var e,i,s,r=t.bodies,n=t.constraints,o=t.composites;for(e=0;e0&&(i=r[0].bodyA,s=r[0].bodyB),t.emit(u.COLLISION_START,e,i,s)})),f.on(e,"collisionActive",(function(e){var i,s,r=e.pairs;r.length>0&&(i=r[0].bodyA,s=r[0].bodyB),t.emit(u.COLLISION_ACTIVE,e,i,s)})),f.on(e,"collisionEnd",(function(e){var i,s,r=e.pairs;r.length>0&&(i=r[0].bodyA,s=r[0].bodyB),t.emit(u.COLLISION_END,e,i,s)}))},setBounds:function(t,e,i,s,r,n,o,a,h){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.scene.sys.scale.width),void 0===s&&(s=this.scene.sys.scale.height),void 0===r&&(r=64),void 0===n&&(n=!0),void 0===o&&(o=!0),void 0===a&&(a=!0),void 0===h&&(h=!0),this.updateWall(n,"left",t-r,e-r,r,s+2*r),this.updateWall(o,"right",t+i,e-r,r,s+2*r),this.updateWall(a,"top",t,e-r,i,r),this.updateWall(h,"bottom",t,e+s,i,r),this},updateWall:function(t,e,i,s,r,n){var o=this.walls[e];t?(o&&m.remove(this.localWorld,o),i+=r/2,s+=n/2,this.walls[e]=this.create(i,s,r,n,{isStatic:!0,friction:0,frictionStatic:0})):(o&&m.remove(this.localWorld,o),this.walls[e]=null)},createDebugGraphic:function(){var t=this.scene.sys.add.graphics({x:0,y:0});return t.setDepth(Number.MAX_VALUE),this.debugGraphic=t,this.drawDebug=!0,t},disableGravity:function(){return this.localWorld.gravity.x=0,this.localWorld.gravity.y=0,this.localWorld.gravity.scale=0,this},setGravity:function(t,e,i){return void 0===t&&(t=0),void 0===e&&(e=1),void 0===i&&(i=.001),this.localWorld.gravity.x=t,this.localWorld.gravity.y=e,this.localWorld.gravity.scale=i,this},create:function(t,e,i,r,n){var o=s.rectangle(t,e,i,r,n);return m.add(this.localWorld,o),o},add:function(t){return m.add(this.localWorld,t),this},remove:function(t,e){Array.isArray(t)||(t=[t]);for(var i=0;is.deltaMax?s.deltaMax:e,s.delta=e),s.timeScalePrev=r.timeScale,s.frameCounter+=1,t-s.counterTimestamp>=1e3&&(s.fps=s.frameCounter*((t-s.counterTimestamp)/1e3),s.counterTimestamp=t,s.frameCounter=0),h.update(i,e)}},step:function(t){h.update(this.engine,t)},update60Hz:function(){return 1e3/60},update30Hz:function(){return 1e3/30},has:function(t){var e=t.hasOwnProperty("body")?t.body:t;return null!==a.get(this.localWorld,e.id,e.type)},getAllBodies:function(){return a.allBodies(this.localWorld)},getAllConstraints:function(){return a.allConstraints(this.localWorld)},getAllComposites:function(){return a.allComposites(this.localWorld)},postUpdate:function(){if(this.drawDebug){var t=this.debugConfig,e=this.engine,i=this.debugGraphic,s=a.allBodies(this.localWorld);this.debugGraphic.clear(),t.showBroadphase&&e.broadphase.controller&&this.renderGrid(e.broadphase,i,t.broadphaseColor,.5),t.showBounds&&this.renderBodyBounds(s,i,t.boundsColor,.5),(t.showBody||t.showStaticBody)&&this.renderBodies(s),t.showJoint&&this.renderJoints(),(t.showAxes||t.showAngleIndicator)&&this.renderBodyAxes(s,i,t.showAxes,t.angleColor,.5),t.showVelocity&&this.renderBodyVelocity(s,i,t.velocityColor,1,2),t.showSeparations&&this.renderSeparations(e.pairs.list,i,t.separationColor),t.showCollisions&&this.renderCollisions(e.pairs.list,i,t.collisionColor)}},renderGrid:function(t,e,i,s){e.lineStyle(1,i,s);for(var r=o.keys(t.buckets),n=0;n0){var l=h[0].vertex.x,u=h[0].vertex.y;2===h.length&&(l=(h[0].vertex.x+h[1].vertex.x)/2,u=(h[0].vertex.y+h[1].vertex.y)/2),a.bodyB===a.supports[0].body||a.bodyA.isStatic?e.lineBetween(l-8*a.normal.x,u-8*a.normal.y,l,u):e.lineBetween(l+8*a.normal.x,u+8*a.normal.y,l,u)}}return this},renderBodyBounds:function(t,e,i,s){e.lineStyle(1,i,s);for(var r=0;r1?1:0;h1?1:0;a1?1:0;a1&&this.renderConvexHull(g,e,p,y)}}},renderBody:function(t,e,i,s,r,n,o,a){void 0===s&&(s=null),void 0===r&&(r=null),void 0===n&&(n=1),void 0===o&&(o=null),void 0===a&&(a=null);for(var h=this.debugConfig,l=h.sensorFillColor,u=h.sensorLineColor,c=t.parts,d=c.length,p=d>1?1:0;p1){var r=t.vertices;e.lineStyle(s,i),e.beginPath(),e.moveTo(r[0].x,r[0].y);for(var n=1;n0&&(e.fillStyle(a),e.fillCircle(u.x,u.y,h),e.fillCircle(c.x,c.y,h)),this},resetCollisionIDs:function(){return r._nextCollidingGroupId=1,r._nextNonCollidingGroupId=-1,r._nextCategory=1,this},shutdown:function(){f.off(this.engine),this.removeAllListeners(),m.clear(this.localWorld,!1),h.clear(this.engine),this.drawDebug&&this.debugGraphic.destroy()},destroy:function(){this.shutdown()}});t.exports=y},70410:t=>{t.exports={setBounce:function(t){return this.body.restitution=t,this}}},66968:t=>{var e={setCollisionCategory:function(t){return this.body.collisionFilter.category=t,this},setCollisionGroup:function(t){return this.body.collisionFilter.group=t,this},setCollidesWith:function(t){var e=0;if(Array.isArray(t))for(var i=0;i{var s=i(22562),r={applyForce:function(t){return this._tempVec2.set(this.body.position.x,this.body.position.y),s.applyForce(this.body,this._tempVec2,t),this},applyForceFrom:function(t,e){return s.applyForce(this.body,t,e),this},thrust:function(t){var e=this.body.angle;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),s.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustLeft:function(t){var e=this.body.angle-Math.PI/2;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),s.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustRight:function(t){var e=this.body.angle+Math.PI/2;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),s.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustBack:function(t){var e=this.body.angle-Math.PI;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),s.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this}};t.exports=r},5436:t=>{t.exports={setFriction:function(t,e,i){return this.body.friction=t,void 0!==e&&(this.body.frictionAir=e),void 0!==i&&(this.body.frictionStatic=i),this},setFrictionAir:function(t){return this.body.frictionAir=t,this},setFrictionStatic:function(t){return this.body.frictionStatic=t,this}}},39858:t=>{t.exports={setIgnoreGravity:function(t){return this.body.ignoreGravity=t,this}}},37302:(t,e,i)=>{var s=i(22562),r=i(26099),n={setMass:function(t){return s.setMass(this.body,t),this},setDensity:function(t){return s.setDensity(this.body,t),this},centerOfMass:{get:function(){return new r(this.body.centerOfMass.x,this.body.centerOfMass.y)}}};t.exports=n},39132:t=>{t.exports={setSensor:function(t){return this.body.isSensor=t,this},isSensor:function(){return this.body.isSensor}}},57772:(t,e,i)=>{var s=i(66280),r=i(22562),n=i(43855),o=i(95540),a=i(19496),h=i(85791),l=i(41598),u={setRectangle:function(t,e,i){return this.setBody({type:"rectangle",width:t,height:e},i)},setCircle:function(t,e){return this.setBody({type:"circle",radius:t},e)},setPolygon:function(t,e,i){return this.setBody({type:"polygon",sides:e,radius:t},i)},setTrapezoid:function(t,e,i,s){return this.setBody({type:"trapezoid",width:t,height:e,slope:i},s)},setExistingBody:function(t,e){void 0===e&&(e=!0),this.body&&this.world.remove(this.body,!0),this.body=t;for(var i=0;i{var s=i(1121),r=i(53614),n=i(35810),o={setToSleep:function(){return r.set(this.body,!0),this},setAwake:function(){return r.set(this.body,!1),this},setSleepThreshold:function(t){return void 0===t&&(t=60),this.body.sleepThreshold=t,this},setSleepEvents:function(t,e){return this.setSleepStartEvent(t),this.setSleepEndEvent(e),this},setSleepStartEvent:function(t){if(t){var e=this.world;n.on(this.body,"sleepStart",(function(t){e.emit(s.SLEEP_START,t,this)}))}else n.off(this.body,"sleepStart");return this},setSleepEndEvent:function(t){if(t){var e=this.world;n.on(this.body,"sleepEnd",(function(t){e.emit(s.SLEEP_END,t,this)}))}else n.off(this.body,"sleepEnd");return this}};t.exports=o},90556:(t,e,i)=>{var s=i(22562),r={setStatic:function(t){return s.setStatic(this.body,t),this},isStatic:function(){return this.body.isStatic}};t.exports=r},85436:(t,e,i)=>{var s=i(22562),r=i(36383),n=i(86554),o=i(30954),a={x:{get:function(){return this.body.position.x},set:function(t){this._tempVec2.set(t,this.y),s.setPosition(this.body,this._tempVec2)}},y:{get:function(){return this.body.position.y},set:function(t){this._tempVec2.set(this.x,t),s.setPosition(this.body,this._tempVec2)}},scaleX:{get:function(){return this._scaleX},set:function(t){var e=1/this._scaleX,i=1/this._scaleY;this._scaleX=t,0===this._scaleX?this.renderFlags&=-5:this.renderFlags|=4,s.scale(this.body,e,i),s.scale(this.body,t,this._scaleY)}},scaleY:{get:function(){return this._scaleY},set:function(t){var e=1/this._scaleX,i=1/this._scaleY;this._scaleY=t,0===this._scaleY?this.renderFlags&=-5:this.renderFlags|=4,s.scale(this.body,e,i),s.scale(this.body,this._scaleX,t)}},angle:{get:function(){return o(this.body.angle*r.RAD_TO_DEG)},set:function(t){this.rotation=o(t)*r.DEG_TO_RAD}},rotation:{get:function(){return this.body.angle},set:function(t){this._rotation=n(t),s.setAngle(this.body,this._rotation)}},setPosition:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this._tempVec2.set(t,e),s.setPosition(this.body,this._tempVec2),this},setRotation:function(t){return void 0===t&&(t=0),this._rotation=n(t),s.setAngle(this.body,t),this},setFixedRotation:function(){return s.setInertia(this.body,1/0),this},setAngle:function(t){return void 0===t&&(t=0),this.angle=t,s.setAngle(this.body,this.rotation),this},setScale:function(t,e,i){void 0===t&&(t=1),void 0===e&&(e=t);var r=1/this._scaleX,n=1/this._scaleY;return this._scaleX=t,this._scaleY=e,s.scale(this.body,r,n,i),s.scale(this.body,t,e,i),this}};t.exports=a},42081:(t,e,i)=>{var s=i(22562),r={setVelocityX:function(t){return this._tempVec2.set(t,this.body.velocity.y),s.setVelocity(this.body,this._tempVec2),this},setVelocityY:function(t){return this._tempVec2.set(this.body.velocity.x,t),s.setVelocity(this.body,this._tempVec2),this},setVelocity:function(t,e){return this._tempVec2.set(t,e),s.setVelocity(this.body,this._tempVec2),this},getVelocity:function(){return s.getVelocity(this.body)},setAngularVelocity:function(t){return s.setAngularVelocity(this.body,t),this},getAngularVelocity:function(){return s.getAngularVelocity(this.body)},setAngularSpeed:function(t){return s.setAngularSpeed(this.body,t),this},getAngularSpeed:function(){return s.getAngularSpeed(this.body)}};t.exports=r},31884:(t,e,i)=>{t.exports={Bounce:i(70410),Collision:i(66968),Force:i(51607),Friction:i(5436),Gravity:i(39858),Mass:i(37302),Sensor:i(39132),SetBody:i(57772),Sleep:i(38083),Static:i(90556),Transform:i(85436),Velocity:i(42081)}},85608:t=>{t.exports="afteradd"},1213:t=>{t.exports="afterremove"},25968:t=>{t.exports="afterupdate"},67205:t=>{t.exports="beforeadd"},39438:t=>{t.exports="beforeremove"},44823:t=>{t.exports="beforeupdate"},92593:t=>{t.exports="collisionactive"},60128:t=>{t.exports="collisionend"},76861:t=>{t.exports="collisionstart"},92362:t=>{t.exports="dragend"},76408:t=>{t.exports="drag"},93971:t=>{t.exports="dragstart"},5656:t=>{t.exports="pause"},47861:t=>{t.exports="resume"},79099:t=>{t.exports="sleepend"},35906:t=>{t.exports="sleepstart"},1121:(t,e,i)=>{t.exports={AFTER_ADD:i(85608),AFTER_REMOVE:i(1213),AFTER_UPDATE:i(25968),BEFORE_ADD:i(67205),BEFORE_REMOVE:i(39438),BEFORE_UPDATE:i(44823),COLLISION_ACTIVE:i(92593),COLLISION_END:i(60128),COLLISION_START:i(76861),DRAG_END:i(92362),DRAG:i(76408),DRAG_START:i(93971),PAUSE:i(5656),RESUME:i(47861),SLEEP_END:i(79099),SLEEP_START:i(35906)}},3875:(t,e,i)=>{t.exports={BodyBounds:i(68174),Components:i(31884),Events:i(1121),Factory:i(28137),MatterGameObject:i(75803),Image:i(23181),Matter:i(19933),MatterPhysics:i(42045),PolyDecomp:i(55973),Sprite:i(34803),TileBody:i(73834),PhysicsEditorParser:i(19496),PhysicsJSONParser:i(85791),PointerConstraint:i(98713),World:i(68243)}},22562:(t,e,i)=>{var s={};t.exports=s;var r=i(41598),n=i(31725),o=i(53614),a=i(53402),h=i(15647),l=i(66615);!function(){s._timeCorrection=!0,s._inertiaScale=4,s._nextCollidingGroupId=1,s._nextNonCollidingGroupId=-1,s._nextCategory=1,s._baseDelta=1e3/60,s.create=function(e){var i={id:a.nextId(),type:"body",label:"Body",parts:[],plugin:{},angle:0,vertices:null,position:{x:0,y:0},force:{x:0,y:0},torque:0,positionImpulse:{x:0,y:0},constraintImpulse:{x:0,y:0,angle:0},totalContacts:0,speed:0,angularSpeed:0,velocity:{x:0,y:0},angularVelocity:0,isSensor:!1,isStatic:!1,isSleeping:!1,motion:0,sleepThreshold:60,density:.001,restitution:0,friction:.1,frictionStatic:.5,frictionAir:.01,collisionFilter:{category:1,mask:4294967295,group:0},slop:.05,timeScale:1,events:null,bounds:null,chamfer:null,circleRadius:0,positionPrev:null,anglePrev:0,parent:null,axes:null,area:0,mass:0,inverseMass:0,inertia:0,deltaTime:1e3/60,inverseInertia:0,_original:null,render:{visible:!0,opacity:1,sprite:{xOffset:0,yOffset:0},fillColor:null,fillOpacity:null,lineColor:null,lineOpacity:null,lineThickness:null},gameObject:null,scale:{x:1,y:1},centerOfMass:{x:0,y:0},centerOffset:{x:0,y:0},gravityScale:{x:1,y:1},ignoreGravity:!1,ignorePointer:!1,onCollideCallback:null,onCollideEndCallback:null,onCollideActiveCallback:null,onCollideWith:{}};!e.hasOwnProperty("position")&&e.hasOwnProperty("vertices")?e.position=r.centre(e.vertices):e.hasOwnProperty("vertices")||(i.vertices=r.fromPath("L 0 0 L 40 0 L 40 40 L 0 40"));var s=a.extend(i,e);return t(s,e),s.setOnCollideWith=function(t,e){return e?this.onCollideWith[t.id]=e:delete this.onCollideWith[t.id],this},s},s.nextGroup=function(t){return t?s._nextNonCollidingGroupId--:s._nextCollidingGroupId++},s.nextCategory=function(){return s._nextCategory=s._nextCategory<<1,s._nextCategory};var t=function(t,e){if(e=e||{},s.set(t,{bounds:t.bounds||h.create(t.vertices),positionPrev:t.positionPrev||n.clone(t.position),anglePrev:t.anglePrev||t.angle,vertices:t.vertices,parts:t.parts||[t],isStatic:t.isStatic,isSleeping:t.isSleeping,parent:t.parent||t}),r.rotate(t.vertices,t.angle,t.position),l.rotate(t.axes,t.angle),h.update(t.bounds,t.vertices,t.velocity),s.set(t,{axes:e.axes||t.axes,area:e.area||t.area,mass:e.mass||t.mass,inertia:e.inertia||t.inertia}),1===t.parts.length){var i=t.bounds,o=t.centerOfMass,a=t.centerOffset,u=i.max.x-i.min.x,c=i.max.y-i.min.y;o.x=-(i.min.x-t.position.x)/u,o.y=-(i.min.y-t.position.y)/c,a.x=u*o.x,a.y=c*o.y}};s.set=function(t,e,i){var r;for(r in"string"==typeof e&&(r=e,(e={})[r]=i),e)if(Object.prototype.hasOwnProperty.call(e,r))switch(i=e[r],r){case"isStatic":s.setStatic(t,i);break;case"isSleeping":o.set(t,i);break;case"mass":s.setMass(t,i);break;case"density":s.setDensity(t,i);break;case"inertia":s.setInertia(t,i);break;case"vertices":s.setVertices(t,i);break;case"position":s.setPosition(t,i);break;case"angle":s.setAngle(t,i);break;case"velocity":s.setVelocity(t,i);break;case"angularVelocity":s.setAngularVelocity(t,i);break;case"speed":s.setSpeed(t,i);break;case"angularSpeed":s.setAngularSpeed(t,i);break;case"parts":s.setParts(t,i);break;case"centre":s.setCentre(t,i);break;default:t[r]=i}},s.setStatic=function(t,e){for(var i=0;i0&&n.rotateAbout(a.position,s,t.position,a.position)}},s.setVelocity=function(t,e){var i=t.deltaTime/s._baseDelta;t.positionPrev.x=t.position.x-e.x*i,t.positionPrev.y=t.position.y-e.y*i,t.velocity.x=(t.position.x-t.positionPrev.x)/i,t.velocity.y=(t.position.y-t.positionPrev.y)/i,t.speed=n.magnitude(t.velocity)},s.getVelocity=function(t){var e=s._baseDelta/t.deltaTime;return{x:(t.position.x-t.positionPrev.x)*e,y:(t.position.y-t.positionPrev.y)*e}},s.getSpeed=function(t){return n.magnitude(s.getVelocity(t))},s.setSpeed=function(t,e){s.setVelocity(t,n.mult(n.normalise(s.getVelocity(t)),e))},s.setAngularVelocity=function(t,e){var i=t.deltaTime/s._baseDelta;t.anglePrev=t.angle-e*i,t.angularVelocity=(t.angle-t.anglePrev)/i,t.angularSpeed=Math.abs(t.angularVelocity)},s.getAngularVelocity=function(t){return(t.angle-t.anglePrev)*s._baseDelta/t.deltaTime},s.getAngularSpeed=function(t){return Math.abs(s.getAngularVelocity(t))},s.setAngularSpeed=function(t,e){s.setAngularVelocity(t,a.sign(s.getAngularVelocity(t))*e)},s.translate=function(t,e,i){s.setPosition(t,n.add(t.position,e),i)},s.rotate=function(t,e,i,r){if(i){var n=Math.cos(e),o=Math.sin(e),a=t.position.x-i.x,h=t.position.y-i.y;s.setPosition(t,{x:i.x+(a*n-h*o),y:i.y+(a*o+h*n)},r),s.setAngle(t,t.angle+e,r)}else s.setAngle(t,t.angle+e,r)},s.scale=function(t,e,i,n){var o=0,a=0;n=n||t.position;for(var u=t.inertia===1/0,c=0;c0&&(o+=d.area,a+=d.inertia),d.position.x=n.x+(d.position.x-n.x)*e,d.position.y=n.y+(d.position.y-n.y)*i,h.update(d.bounds,d.vertices,t.velocity)}t.parts.length>1&&(t.area=o,t.isStatic||(s.setMass(t,t.density*o),s.setInertia(t,a))),t.circleRadius&&(e===i?t.circleRadius*=e:t.circleRadius=null),u&&s.setInertia(t,1/0)},s.update=function(t,e){var i=(e=(void 0!==e?e:1e3/60)*t.timeScale)*e,o=s._timeCorrection?e/(t.deltaTime||e):1,u=1-t.frictionAir*(e/a._baseDelta),c=(t.position.x-t.positionPrev.x)*o,d=(t.position.y-t.positionPrev.y)*o;t.velocity.x=c*u+t.force.x/t.mass*i,t.velocity.y=d*u+t.force.y/t.mass*i,t.positionPrev.x=t.position.x,t.positionPrev.y=t.position.y,t.position.x+=t.velocity.x,t.position.y+=t.velocity.y,t.deltaTime=e,t.angularVelocity=(t.angle-t.anglePrev)*u*o+t.torque/t.inertia*i,t.anglePrev=t.angle,t.angle+=t.angularVelocity,t.speed=n.magnitude(t.velocity),t.angularSpeed=Math.abs(t.angularVelocity);for(var p=0;p0&&(f.position.x+=t.velocity.x,f.position.y+=t.velocity.y),0!==t.angularVelocity&&(r.rotate(f.vertices,t.angularVelocity,t.position),l.rotate(f.axes,t.angularVelocity),p>0&&n.rotateAbout(f.position,t.angularVelocity,t.position,f.position)),h.update(f.bounds,f.vertices,t.velocity)}},s.updateVelocities=function(t){var e=s._baseDelta/t.deltaTime,i=t.velocity;i.x=(t.position.x-t.positionPrev.x)*e,i.y=(t.position.y-t.positionPrev.y)*e,t.speed=Math.sqrt(i.x*i.x+i.y*i.y),t.angularVelocity=(t.angle-t.anglePrev)*e,t.angularSpeed=Math.abs(t.angularVelocity)},s.applyForce=function(t,e,i){var s=e.x-t.position.x,r=e.y-t.position.y;t.force.x+=i.x,t.force.y+=i.y,t.torque+=s*i.y-r*i.x},s._totalProperties=function(t){for(var e={mass:0,area:0,inertia:0,centre:{x:0,y:0}},i=1===t.parts.length?0:1;i{var s={};t.exports=s;var r=i(35810),n=i(53402),o=i(15647),a=i(22562);s.create=function(t){return n.extend({id:n.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{},cache:{allBodies:null,allConstraints:null,allComposites:null}},t)},s.setModified=function(t,e,i,n){if(r.trigger(t,"compositeModified",t),t.isModified=e,e&&t.cache&&(t.cache.allBodies=null,t.cache.allConstraints=null,t.cache.allComposites=null),i&&t.parent&&s.setModified(t.parent,e,i,n),n)for(var o=0;o{var s={};t.exports=s;var r=i(69351);s.create=r.create,s.add=r.add,s.remove=r.remove,s.clear=r.clear,s.addComposite=r.addComposite,s.addBody=r.addBody,s.addConstraint=r.addConstraint},52284:(t,e,i)=>{var s={};t.exports=s;var r,n,o,a=i(41598),h=i(4506);r=[],n={overlap:0,axis:null},o={overlap:0,axis:null},s.create=function(t,e){return{pair:null,collided:!1,bodyA:t,bodyB:e,parentA:t.parent,parentB:e.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[]}},s.collides=function(t,e,i){if(s._overlapAxes(n,t.vertices,e.vertices,t.axes),n.overlap<=0)return null;if(s._overlapAxes(o,e.vertices,t.vertices,e.axes),o.overlap<=0)return null;var r,l,u=i&&i.table[h.id(t,e)];u?r=u.collision:((r=s.create(t,e)).collided=!0,r.bodyA=t.idE?E=a:aC?C=a:ar?r=o:o{var e={};t.exports=e,e.create=function(t){return{vertex:t,normalImpulse:0,tangentImpulse:0}}},81388:(t,e,i)=>{var s={};t.exports=s;var r=i(53402),n=i(52284);s.create=function(t){return r.extend({bodies:[],pairs:null},t)},s.setBodies=function(t,e){t.bodies=e.slice(0)},s.clear=function(t){t.bodies=[]},s.collisions=function(t){var e,i,r=[],o=t.pairs,a=t.bodies,h=a.length,l=s.canCollide,u=n.collides;for(a.sort(s._compareBoundsX),e=0;ep)break;if(!(f<_.min.y||g>_.max.y)&&(!m||!x.isStatic&&!x.isSleeping)&&l(c.collisionFilter,x.collisionFilter)){var w=x.parts.length;if(y&&1===w)(C=u(c,x,o))&&r.push(C);else for(var T=w>1?1:0,b=v>1?1:0;b_.max.x||d.max.x<_.min.x||d.max.y<_.min.y||d.min.y>_.max.y||(C=u(S,A,o))&&r.push(C)}}}}return r},s.canCollide=function(t,e){return t.group===e.group&&0!==t.group?t.group>0:!!(t.mask&e.category)&&!!(e.mask&t.category)},s._compareBoundsX=function(t,e){return t.bounds.min.x-e.bounds.min.x}},4506:(t,e,i)=>{var s={};t.exports=s;var r=i(43424);s.create=function(t,e){var i=t.bodyA,r=t.bodyB,n={id:s.id(i,r),bodyA:i,bodyB:r,collision:t,contacts:[],activeContacts:[],separation:0,isActive:!0,confirmedActive:!0,isSensor:i.isSensor||r.isSensor,timeCreated:e,timeUpdated:e,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return s.update(n,t,e),n},s.update=function(t,e,i){var s=t.contacts,n=e.supports,o=t.activeContacts,a=e.parentA,h=e.parentB,l=a.vertices.length;t.isActive=!0,t.timeUpdated=i,t.collision=e,t.separation=e.depth,t.inverseMass=a.inverseMass+h.inverseMass,t.friction=a.frictionh.frictionStatic?a.frictionStatic:h.frictionStatic,t.restitution=a.restitution>h.restitution?a.restitution:h.restitution,t.slop=a.slop>h.slop?a.slop:h.slop,e.pair=t,o.length=0;for(var u=0;u{var s={};t.exports=s;var r=i(4506),n=i(53402);s.create=function(t){return n.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},t)},s.update=function(t,e,i){var s,n,o,a,h=t.list,l=h.length,u=t.table,c=e.length,d=t.collisionStart,p=t.collisionEnd,f=t.collisionActive;for(d.length=0,p.length=0,f.length=0,a=0;a{var s={};t.exports=s;var r=i(31725),n=i(52284),o=i(15647),a=i(66280),h=i(41598);s.collides=function(t,e){for(var i=[],s=e.length,r=t.bounds,a=n.collides,h=o.overlaps,l=0;l{var s={};t.exports=s;var r=i(41598),n=i(53402),o=i(15647);s._restingThresh=2,s._restingThreshTangent=Math.sqrt(6),s._positionDampen=.9,s._positionWarming=.8,s._frictionNormalMultiplier=5,s._frictionMaxStatic=Number.MAX_VALUE,s.preSolvePosition=function(t){var e,i,s,r=t.length;for(e=0;eW?(r=z>0?z:-z,(i=g.friction*(z>0?1:-1)*l)<-r?i=-r:i>r&&(i=r)):(i=z,r=p);var V=L*b-O*T,H=F*b-D*T,j=_/(P+v.inverseInertia*V*V+y.inverseInertia*H*H),q=(1+g.restitution)*Y*j;if(i*=j,Y0&&(M.normalImpulse=0),q=M.normalImpulse-K}if(z<-c||z>c)M.tangentImpulse=0;else{var Z=M.tangentImpulse;M.tangentImpulse+=i,M.tangentImpulse<-r&&(M.tangentImpulse=-r),M.tangentImpulse>r&&(M.tangentImpulse=r),i=M.tangentImpulse-Z}var J=T*q+S*i,Q=b*q+E*i;v.isStatic||v.isSleeping||(v.positionPrev.x+=J*v.inverseMass,v.positionPrev.y+=Q*v.inverseMass,v.anglePrev+=(L*Q-O*J)*v.inverseInertia),y.isStatic||y.isSleeping||(y.positionPrev.x-=J*y.inverseMass,y.positionPrev.y-=Q*y.inverseMass,y.anglePrev-=(F*Q-D*J)*y.inverseInertia)}}}}},48140:(t,e,i)=>{var s={};t.exports=s;var r=i(41598),n=i(31725),o=i(53614),a=i(15647),h=i(66615),l=i(53402);s._warming=.4,s._torqueDampen=1,s._minLength=1e-6,s.create=function(t){var e=t;e.bodyA&&!e.pointA&&(e.pointA={x:0,y:0}),e.bodyB&&!e.pointB&&(e.pointB={x:0,y:0});var i=e.bodyA?n.add(e.bodyA.position,e.pointA):e.pointA,s=e.bodyB?n.add(e.bodyB.position,e.pointB):e.pointB,r=n.magnitude(n.sub(i,s));e.length=void 0!==e.length?e.length:r,e.id=e.id||l.nextId(),e.label=e.label||"Constraint",e.type="constraint",e.stiffness=e.stiffness||(e.length>0?1:.7),e.damping=e.damping||0,e.angularStiffness=e.angularStiffness||0,e.angleA=e.bodyA?e.bodyA.angle:e.angleA,e.angleB=e.bodyB?e.bodyB.angle:e.angleB,e.plugin={};var o={visible:!0,type:"line",anchors:!0,lineColor:null,lineOpacity:null,lineThickness:null,pinSize:null,anchorColor:null,anchorSize:null};return 0===e.length&&e.stiffness>.1?(o.type="pin",o.anchors=!1):e.stiffness<.9&&(o.type="spring"),e.render=l.extend(o,e.render),e},s.preSolveAll=function(t){for(var e=0;e=1||0===t.length?t.stiffness*e:t.stiffness*e*e,x=t.damping*e,w=n.mult(u,v*y),T=(i?i.inverseMass:0)+(r?r.inverseMass:0),b=T+((i?i.inverseInertia:0)+(r?r.inverseInertia:0));if(x>0){var S=n.create();f=n.div(u,c),m=n.sub(r&&n.sub(r.position,r.positionPrev)||S,i&&n.sub(i.position,i.positionPrev)||S),g=n.dot(f,m)}i&&!i.isStatic&&(p=i.inverseMass/T,i.constraintImpulse.x-=w.x*p,i.constraintImpulse.y-=w.y*p,i.position.x-=w.x*p,i.position.y-=w.y*p,x>0&&(i.positionPrev.x-=x*f.x*g*p,i.positionPrev.y-=x*f.y*g*p),d=n.cross(o,w)/b*s._torqueDampen*i.inverseInertia*(1-t.angularStiffness),i.constraintImpulse.angle-=d,i.angle-=d),r&&!r.isStatic&&(p=r.inverseMass/T,r.constraintImpulse.x+=w.x*p,r.constraintImpulse.y+=w.y*p,r.position.x+=w.x*p,r.position.y+=w.y*p,x>0&&(r.positionPrev.x+=x*f.x*g*p,r.positionPrev.y+=x*f.y*g*p),d=n.cross(a,w)/b*s._torqueDampen*r.inverseInertia*(1-t.angularStiffness),r.constraintImpulse.angle+=d,r.angle+=d)}}},s.postSolveAll=function(t){for(var e=0;e0&&(c.position.x+=l.x,c.position.y+=l.y),0!==l.angle&&(r.rotate(c.vertices,l.angle,i.position),h.rotate(c.axes,l.angle),u>0&&n.rotateAbout(c.position,l.angle,i.position,c.position)),a.update(c.bounds,c.vertices,i.velocity)}l.angle*=s._warming,l.x*=s._warming,l.y*=s._warming}}},s.pointAWorld=function(t){return{x:(t.bodyA?t.bodyA.position.x:0)+(t.pointA?t.pointA.x:0),y:(t.bodyA?t.bodyA.position.y:0)+(t.pointA?t.pointA.y:0)}},s.pointBWorld=function(t){return{x:(t.bodyB?t.bodyB.position.x:0)+(t.pointB?t.pointB.x:0),y:(t.bodyB?t.bodyB.position.y:0)+(t.pointB?t.pointB.y:0)}},s.currentLength=function(t){var e=(t.bodyA?t.bodyA.position.x:0)+(t.pointA?t.pointA.x:0),i=(t.bodyA?t.bodyA.position.y:0)+(t.pointA?t.pointA.y:0),s=e-((t.bodyB?t.bodyB.position.x:0)+(t.pointB?t.pointB.x:0)),r=i-((t.bodyB?t.bodyB.position.y:0)+(t.pointB?t.pointB.y:0));return Math.sqrt(s*s+r*r)}},53402:(t,e,i)=>{var s={};t.exports=s,function(){s._baseDelta=1e3/60,s._nextId=0,s._seed=0,s._nowStartTime=+new Date,s._warnedOnce={},s._decomp=null,s.extend=function(t,e){var i,r;"boolean"==typeof e?(i=2,r=e):(i=1,r=!0);for(var n=i;n0;e--){var i=Math.floor(s.random()*(e+1)),r=t[e];t[e]=t[i],t[i]=r}return t},s.choose=function(t){return t[Math.floor(s.random()*t.length)]},s.isElement=function(t){return"undefined"!=typeof HTMLElement?t instanceof HTMLElement:!!(t&&t.nodeType&&t.nodeName)},s.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},s.isFunction=function(t){return"function"==typeof t},s.isPlainObject=function(t){return"object"==typeof t&&t.constructor===Object},s.isString=function(t){return"[object String]"===toString.call(t)},s.clamp=function(t,e,i){return ti?i:t},s.sign=function(t){return t<0?-1:1},s.now=function(){if("undefined"!=typeof window&&window.performance){if(window.performance.now)return window.performance.now();if(window.performance.webkitNow)return window.performance.webkitNow()}return Date.now?Date.now():new Date-s._nowStartTime},s.random=function(e,i){return i=void 0!==i?i:1,(e=void 0!==e?e:0)+t()*(i-e)};var t=function(){return s._seed=(9301*s._seed+49297)%233280,s._seed/233280};s.colorToNumber=function(t){return 3==(t=t.replace("#","")).length&&(t=t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)),parseInt(t,16)},s.logLevel=1,s.log=function(){console&&s.logLevel>0&&s.logLevel<=3&&console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},s.info=function(){console&&s.logLevel>0&&s.logLevel<=2&&console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},s.warn=function(){console&&s.logLevel>0&&s.logLevel<=3&&console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},s.warnOnce=function(){var t=Array.prototype.slice.call(arguments).join(" ");s._warnedOnce[t]||(s.warn(t),s._warnedOnce[t]=!0)},s.deprecated=function(t,e,i){t[e]=s.chain((function(){s.warnOnce("🔅 deprecated 🔅",i)}),t[e])},s.nextId=function(){return s._nextId++},s.indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0;i{var s={};t.exports=s;var r=i(53614),n=i(66272),o=i(81388),a=i(99561),h=i(35810),l=i(69351),u=i(48140),c=i(53402),d=i(22562);s.create=function(t){t=t||{};var e=c.extend({positionIterations:6,velocityIterations:4,constraintIterations:2,enableSleeping:!1,events:[],plugin:{},gravity:{x:0,y:1,scale:.001},timing:{timestamp:0,timeScale:1,lastDelta:0,lastElapsed:0}},t);return e.world=t.world||l.create({label:"World"}),e.pairs=t.pairs||a.create(),e.detector=t.detector||o.create(),e.grid={buckets:[]},e.world.gravity=e.gravity,e.broadphase=e.grid,e.metrics={},e},s.update=function(t,e){var i,d=c.now(),p=t.world,f=t.detector,g=t.pairs,m=t.timing,v=m.timestamp;e=void 0!==e?e:c._baseDelta,e*=m.timeScale,m.timestamp+=e,m.lastDelta=e;var y={timestamp:m.timestamp,delta:e};h.trigger(t,"beforeUpdate",y);var x=l.allBodies(p),w=l.allConstraints(p);for(p.isModified&&(o.setBodies(f,x),l.setModified(p,!1,!1,!0)),t.enableSleeping&&r.update(x,e),s._bodiesApplyGravity(x,t.gravity),e>0&&s._bodiesUpdate(x,e),h.trigger(t,"beforeSolve",y),u.preSolveAll(x),i=0;i0&&h.trigger(t,"collisionStart",{pairs:g.collisionStart,timestamp:m.timestamp,delta:e});var b=c.clamp(20/t.positionIterations,0,1);for(n.preSolvePosition(g.list),i=0;i0&&h.trigger(t,"collisionActive",{pairs:g.collisionActive,timestamp:m.timestamp,delta:e}),g.collisionEnd.length>0&&h.trigger(t,"collisionEnd",{pairs:g.collisionEnd,timestamp:m.timestamp,delta:e}),s._bodiesClearForces(x),h.trigger(t,"afterUpdate",y),t.timing.lastElapsed=c.now()-d,t},s.merge=function(t,e){if(c.extend(t,e),e.world){t.world=e.world,s.clear(t);for(var i=l.allBodies(t.world),n=0;n{var s={};t.exports=s;var r=i(53402);s.on=function(t,e,i){for(var s,r=e.split(" "),n=0;n0){i||(i={}),s=e.split(" ");for(var l=0;l{var s={};t.exports=s;var r=i(73832),n=i(53402);s.name="matter-js",s.version="0.19.0",s.uses=[],s.used=[],s.use=function(){r.use(s,Array.prototype.slice.call(arguments))},s.before=function(t,e){return t=t.replace(/^Matter./,""),n.chainPathBefore(s,t,e)},s.after=function(t,e){return t=t.replace(/^Matter./,""),n.chainPathAfter(s,t,e)}},73832:(t,e,i)=>{var s={};t.exports=s;var r=i(53402);s._registry={},s.register=function(t){if(s.isPlugin(t)||r.warn("Plugin.register:",s.toString(t),"does not implement all required fields."),t.name in s._registry){var e=s._registry[t.name],i=s.versionParse(t.version).number,n=s.versionParse(e.version).number;i>n?(r.warn("Plugin.register:",s.toString(e),"was upgraded to",s.toString(t)),s._registry[t.name]=t):i-1},s.isFor=function(t,e){var i=t.for&&s.dependencyParse(t.for);return!t.for||e.name===i.name&&s.versionSatisfies(e.version,i.range)},s.use=function(t,e){if(t.uses=(t.uses||[]).concat(e||[]),0!==t.uses.length){for(var i=s.dependencies(t),n=r.topologicalSort(i),o=[],a=0;a0&&!h.silent&&r.info(o.join(" "))}else r.warn("Plugin.use:",s.toString(t),"does not specify any dependencies to install.")},s.dependencies=function(t,e){var i=s.dependencyParse(t),n=i.name;if(!(n in(e=e||{}))){t=s.resolve(t)||t,e[n]=r.map(t.uses||[],(function(e){s.isPlugin(e)&&s.register(e);var n=s.dependencyParse(e),o=s.resolve(e);return o&&!s.versionSatisfies(o.version,n.range)?(r.warn("Plugin.dependencies:",s.toString(o),"does not satisfy",s.toString(n),"used by",s.toString(i)+"."),o._warned=!0,t._warned=!0):o||(r.warn("Plugin.dependencies:",s.toString(e),"used by",s.toString(i),"could not be resolved."),t._warned=!0),n.name}));for(var o=0;o=|>)?\s*((\d+)\.(\d+)\.(\d+))(-[0-9A-Za-z-+]+)?$/;e.test(t)||r.warn("Plugin.versionParse:",t,"is not a valid version or range.");var i=e.exec(t),s=Number(i[4]),n=Number(i[5]),o=Number(i[6]);return{isRange:Boolean(i[1]||i[2]),version:i[3],range:t,operator:i[1]||i[2]||"",major:s,minor:n,patch:o,parts:[s,n,o],prerelease:i[7],number:1e8*s+1e4*n+o}},s.versionSatisfies=function(t,e){e=e||"*";var i=s.versionParse(e),r=s.versionParse(t);if(i.isRange){if("*"===i.operator||"*"===t)return!0;if(">"===i.operator)return r.number>i.number;if(">="===i.operator)return r.number>=i.number;if("~"===i.operator)return r.major===i.major&&r.minor===i.minor&&r.patch>=i.patch;if("^"===i.operator)return i.major>0?r.major===i.major&&r.number>=i.number:i.minor>0?r.minor===i.minor&&r.patch>=i.patch:r.patch===i.patch}return t===e||"*"===t}},53614:(t,e,i)=>{var s={};t.exports=s;var r=i(22562),n=i(35810),o=i(53402);s._motionWakeThreshold=.18,s._motionSleepThreshold=.08,s._minBias=.9,s.update=function(t,e){for(var i=e/o._baseDelta,n=s._motionSleepThreshold,a=0;a0&&h.motion=h.sleepThreshold/i&&s.set(h,!0)):h.sleepCounter>0&&(h.sleepCounter-=1)}else s.set(h,!1)}},s.afterCollisions=function(t){for(var e=s._motionSleepThreshold,i=0;ie&&s.set(h,!1)}}}},s.set=function(t,e){var i=t.isSleeping;e?(t.isSleeping=!0,t.sleepCounter=t.sleepThreshold,t.positionImpulse.x=0,t.positionImpulse.y=0,t.positionPrev.x=t.position.x,t.positionPrev.y=t.position.y,t.anglePrev=t.angle,t.speed=0,t.angularSpeed=0,t.motion=0,i||n.trigger(t,"sleepStart")):(t.isSleeping=!1,t.sleepCounter=0,i&&n.trigger(t,"sleepEnd"))}},66280:(t,e,i)=>{var s={};t.exports=s;var r=i(41598),n=i(53402),o=i(22562),a=i(15647),h=i(31725);s.rectangle=function(t,e,i,s,a){a=a||{};var h={label:"Rectangle Body",position:{x:t,y:e},vertices:r.fromPath("L 0 0 L "+i+" 0 L "+i+" "+s+" L 0 "+s)};if(a.chamfer){var l=a.chamfer;h.vertices=r.chamfer(h.vertices,l.radius,l.quality,l.qualityMin,l.qualityMax),delete a.chamfer}return o.create(n.extend({},h,a))},s.trapezoid=function(t,e,i,s,a,h){h=h||{};var l,u=i*(a*=.5),c=u+(1-2*a)*i,d=c+u;l=a<.5?"L 0 0 L "+u+" "+-s+" L "+c+" "+-s+" L "+d+" 0":"L 0 0 L "+c+" "+-s+" L "+d+" 0";var p={label:"Trapezoid Body",position:{x:t,y:e},vertices:r.fromPath(l)};if(h.chamfer){var f=h.chamfer;p.vertices=r.chamfer(p.vertices,f.radius,f.quality,f.qualityMin,f.qualityMax),delete h.chamfer}return o.create(n.extend({},p,h))},s.circle=function(t,e,i,r,o){r=r||{};var a={label:"Circle Body",circleRadius:i};o=o||25;var h=Math.ceil(Math.max(10,Math.min(o,i)));return h%2==1&&(h+=1),s.polygon(t,e,h,i,n.extend({},a,r))},s.polygon=function(t,e,i,a,h){if(h=h||{},i<3)return s.circle(t,e,a,h);for(var l=2*Math.PI/i,u="",c=.5*l,d=0;d0&&r.area(A)1?(f=o.create(n.extend({parts:g.slice(0)},s)),o.setPosition(f,{x:t,y:e}),f):g[0]},s.flagCoincidentParts=function(t,e){void 0===e&&(e=5);for(var i=0;i{var s={};t.exports=s;var r=i(69351),n=i(48140),o=i(53402),a=i(22562),h=i(66280);s.stack=function(t,e,i,s,n,o,h){for(var l,u=r.create({label:"Stack"}),c=t,d=e,p=0,f=0;fg&&(g=y),a.translate(v,{x:.5*x,y:.5*y}),c=v.bounds.max.x+n,r.addBody(u,v),l=v,p+=1}else c+=n}d+=g+o,c=t}return u},s.chain=function(t,e,i,s,a,h){for(var l=t.bodies,u=1;u0)for(l=0;l0&&(d=p[l-1+(h-1)*e],r.addConstraint(t,n.create(o.extend({bodyA:d,bodyB:c},a)))),s&&ld||o<(l=d-l)||o>i-1-l))return 1===c&&a.translate(u,{x:(o+(i%2==1?1:-1))*p,y:0}),h(t+(u?o*p:0)+o*n,s,o,l,u,c)}))},s.newtonsCradle=function(t,e,i,s,o){for(var a=r.create({label:"Newtons Cradle"}),l=0;l{var s={};t.exports=s;var r=i(31725),n=i(53402);s.fromVertices=function(t){for(var e={},i=0;i{var e={};t.exports=e,e.create=function(t){var i={min:{x:0,y:0},max:{x:0,y:0}};return t&&e.update(i,t),i},e.update=function(t,e,i){t.min.x=1/0,t.max.x=-1/0,t.min.y=1/0,t.max.y=-1/0;for(var s=0;st.max.x&&(t.max.x=r.x),r.xt.max.y&&(t.max.y=r.y),r.y0?t.max.x+=i.x:t.min.x+=i.x,i.y>0?t.max.y+=i.y:t.min.y+=i.y)},e.contains=function(t,e){return e.x>=t.min.x&&e.x<=t.max.x&&e.y>=t.min.y&&e.y<=t.max.y},e.overlaps=function(t,e){return t.min.x<=e.max.x&&t.max.x>=e.min.x&&t.max.y>=e.min.y&&t.min.y<=e.max.y},e.translate=function(t,e){t.min.x+=e.x,t.max.x+=e.x,t.min.y+=e.y,t.max.y+=e.y},e.shift=function(t,e){var i=t.max.x-t.min.x,s=t.max.y-t.min.y;t.min.x=e.x,t.max.x=e.x+i,t.min.y=e.y,t.max.y=e.y+s}},74058:(t,e,i)=>{var s={};t.exports=s,i(15647);var r=i(53402);s.pathToVertices=function(t,e){"undefined"==typeof window||"SVGPathSeg"in window||r.warn("Svg.pathToVertices: SVGPathSeg not defined, a polyfill is required.");var i,n,o,a,h,l,u,c,d,p,f,g=[],m=0,v=0,y=0;e=e||15;var x=function(t,e,i){var s=i%2==1&&i>1;if(!d||t!=d.x||e!=d.y){d&&s?(p=d.x,f=d.y):(p=0,f=0);var r={x:p+t,y:f+e};!s&&d||(d=r),g.push(r),v=p+t,y=f+e}},w=function(t){var e=t.pathSegTypeAsLetter.toUpperCase();if("Z"!==e){switch(e){case"M":case"L":case"T":case"C":case"S":case"Q":v=t.x,y=t.y;break;case"H":v=t.x;break;case"V":y=t.y}x(v,y,t.pathSegType)}};for(s._svgPathToAbsolute(t),o=t.getTotalLength(),l=[],i=0;i{var e={};t.exports=e,e.create=function(t,e){return{x:t||0,y:e||0}},e.clone=function(t){return{x:t.x,y:t.y}},e.magnitude=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.magnitudeSquared=function(t){return t.x*t.x+t.y*t.y},e.rotate=function(t,e,i){var s=Math.cos(e),r=Math.sin(e);i||(i={});var n=t.x*s-t.y*r;return i.y=t.x*r+t.y*s,i.x=n,i},e.rotateAbout=function(t,e,i,s){var r=Math.cos(e),n=Math.sin(e);s||(s={});var o=i.x+((t.x-i.x)*r-(t.y-i.y)*n);return s.y=i.y+((t.x-i.x)*n+(t.y-i.y)*r),s.x=o,s},e.normalise=function(t){var i=e.magnitude(t);return 0===i?{x:0,y:0}:{x:t.x/i,y:t.y/i}},e.dot=function(t,e){return t.x*e.x+t.y*e.y},e.cross=function(t,e){return t.x*e.y-t.y*e.x},e.cross3=function(t,e,i){return(e.x-t.x)*(i.y-t.y)-(e.y-t.y)*(i.x-t.x)},e.add=function(t,e,i){return i||(i={}),i.x=t.x+e.x,i.y=t.y+e.y,i},e.sub=function(t,e,i){return i||(i={}),i.x=t.x-e.x,i.y=t.y-e.y,i},e.mult=function(t,e){return{x:t.x*e,y:t.y*e}},e.div=function(t,e){return{x:t.x/e,y:t.y/e}},e.perp=function(t,e){return{x:(e=!0===e?-1:1)*-t.y,y:e*t.x}},e.neg=function(t){return{x:-t.x,y:-t.y}},e.angle=function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)},e._temp=[e.create(),e.create(),e.create(),e.create(),e.create(),e.create()]},41598:(t,e,i)=>{var s={};t.exports=s;var r=i(31725),n=i(53402);s.create=function(t,e){for(var i=[],s=0;s0)return!1;o=i}return!0},s.scale=function(t,e,i,n){if(1===e&&1===i)return t;var o,a;n=n||s.centre(t);for(var h=0;h=0?h-1:t.length-1],u=t[h],c=t[(h+1)%t.length],d=e[h0&&(n|=2),3===n)return!1;return 0!==n||null},s.hull=function(t){var e,i,s=[],n=[];for((t=t.slice(0)).sort((function(t,e){var i=t.x-e.x;return 0!==i?i:t.y-e.y})),i=0;i=2&&r.cross3(n[n.length-2],n[n.length-1],e)<=0;)n.pop();n.push(e)}for(i=t.length-1;i>=0;i-=1){for(e=t[i];s.length>=2&&r.cross3(s[s.length-2],s[s.length-1],e)<=0;)s.pop();s.push(e)}return s.pop(),n.pop(),s.concat(n)}},18210:(t,e,i)=>{var s=i(19933),r={name:"matter-attractors",version:"0.1.7",for:"matter-js@^0.19.0",silent:!0,install:function(t){t.after("Body.create",(function(){r.Body.init(this)})),t.before("Engine.update",(function(t){r.Engine.update(t)}))},Body:{init:function(t){t.plugin.attractors=t.plugin.attractors||[]}},Engine:{update:function(t){for(var e=s.Composite.allBodies(t.world),i=0;i0)for(var o=0;o{t.exports={name:"matter-collision-events",version:"0.1.6",for:"matter-js@^0.19.0",silent:!0,install:function(t){t.after("Engine.create",(function(){t.Events.on(this,"collisionStart",(function(e){e.pairs.map((function(e){var i=e.bodyA,s=e.bodyB;i.gameObject&&i.gameObject.emit("collide",i,s,e),s.gameObject&&s.gameObject.emit("collide",s,i,e),t.Events.trigger(i,"onCollide",{pair:e}),t.Events.trigger(s,"onCollide",{pair:e}),i.onCollideCallback&&i.onCollideCallback(e),s.onCollideCallback&&s.onCollideCallback(e),i.onCollideWith[s.id]&&i.onCollideWith[s.id](s,e),s.onCollideWith[i.id]&&s.onCollideWith[i.id](i,e)}))})),t.Events.on(this,"collisionActive",(function(e){e.pairs.map((function(e){var i=e.bodyA,s=e.bodyB;i.gameObject&&i.gameObject.emit("collideActive",i,s,e),s.gameObject&&s.gameObject.emit("collideActive",s,i,e),t.Events.trigger(i,"onCollideActive",{pair:e}),t.Events.trigger(s,"onCollideActive",{pair:e}),i.onCollideActiveCallback&&i.onCollideActiveCallback(e),s.onCollideActiveCallback&&s.onCollideActiveCallback(e)}))})),t.Events.on(this,"collisionEnd",(function(e){e.pairs.map((function(e){var i=e.bodyA,s=e.bodyB;i.gameObject&&i.gameObject.emit("collideEnd",i,s,e),s.gameObject&&s.gameObject.emit("collideEnd",s,i,e),t.Events.trigger(i,"onCollideEnd",{pair:e}),t.Events.trigger(s,"onCollideEnd",{pair:e}),i.onCollideEndCallback&&i.onCollideEndCallback(e),s.onCollideEndCallback&&s.onCollideEndCallback(e)}))}))}))}}},74507:(t,e,i)=>{var s=i(19933),r={name:"matter-wrap",version:"0.1.4",for:"matter-js@^0.19.0",silent:!0,install:function(t){t.after("Engine.update",(function(){r.Engine.update(this)}))},Engine:{update:function(t){for(var e=t.world,i=s.Composite.allBodies(e),n=s.Composite.allComposites(e),o=0;oe.max.x?i=e.min.x-t.max.x:t.max.xe.max.y?s=e.min.y-t.max.y:t.max.y{function e(t,e,i){i=i||0;var s,r,n,o,a,h,l,u=[0,0];return s=t[1][1]-t[0][1],r=t[0][0]-t[1][0],n=s*t[0][0]+r*t[0][1],o=e[1][1]-e[0][1],a=e[0][0]-e[1][0],h=o*e[0][0]+a*e[0][1],S(l=s*a-o*r,0,i)||(u[0]=(a*n-r*h)/l,u[1]=(s*h-o*n)/l),u}function i(t,e,i,s){var r=e[0]-t[0],n=e[1]-t[1],o=s[0]-i[0],a=s[1]-i[1];if(o*n-a*r==0)return!1;var h=(r*(i[1]-t[1])+n*(t[0]-i[0]))/(o*n-a*r),l=(o*(t[1]-i[1])+a*(i[0]-t[0]))/(a*r-o*n);return h>=0&&h<=1&&l>=0&&l<=1}function s(t,e,i){return(e[0]-t[0])*(i[1]-t[1])-(i[0]-t[0])*(e[1]-t[1])}function r(t,e,i){return s(t,e,i)>0}function n(t,e,i){return s(t,e,i)>=0}function o(t,e,i){return s(t,e,i)<0}function a(t,e,i){return s(t,e,i)<=0}t.exports={decomp:function(t){var e=w(t);return e.length>0?T(t,e):[t]},quickDecomp:function t(e,i,s,h,l,u,g){u=u||100,g=g||0,l=l||25,i=void 0!==i?i:[],s=s||[],h=h||[];var m=[0,0],v=[0,0],x=[0,0],w=0,T=0,S=0,E=0,C=0,A=0,_=0,P=[],R=[],M=e,k=e;if(k.length<3)return i;if(++g>u)return console.warn("quickDecomp: max level ("+u+") reached."),i;for(var L=0;LC&&(C+=e.length),E=Number.MAX_VALUE,C3&&s>=0;--s)u(d(t,s-1),d(t,s),d(t,s+1),e)&&(t.splice(s%t.length,1),i++);return i},removeDuplicatePoints:function(t,e){for(var i=t.length-1;i>=1;--i)for(var s=t[i],r=i-1;r>=0;--r)E(s,t[r],e)&&t.splice(i,1)},makeCCW:function(t){for(var e=0,i=t,s=1;si[e][0])&&(e=s);return!r(d(t,e-1),d(t,e),d(t,e+1))&&(function(t){for(var e=[],i=t.length,s=0;s!==i;s++)e.push(t.pop());for(s=0;s!==i;s++)t[s]=e[s]}(t),!0)}};var h=[],l=[];function u(t,e,i,r){if(r){var n=h,o=l;n[0]=e[0]-t[0],n[1]=e[1]-t[1],o[0]=i[0]-e[0],o[1]=i[1]-e[1];var a=n[0]*o[0]+n[1]*o[1],u=Math.sqrt(n[0]*n[0]+n[1]*n[1]),c=Math.sqrt(o[0]*o[0]+o[1]*o[1]);return Math.acos(a/(u*c)){var s=new(i(83419))({initialize:function(t){this.pluginManager=t,this.game=t.game},init:function(){},start:function(){},stop:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=s},42363:t=>{t.exports={Global:["game","anims","cache","plugins","registry","scale","sound","textures","renderer"],CoreScene:["EventEmitter","CameraManager","GameObjectCreator","GameObjectFactory","ScenePlugin","DisplayList","UpdateList"],DefaultScene:["Clock","DataManagerPlugin","InputPlugin","Loader","TweenManager","LightsPlugin"]}},37277:t=>{var e={},i={},s={register:function(t,i,s,r){void 0===r&&(r=!1),e[t]={plugin:i,mapping:s,custom:r}},registerCustom:function(t,e,s,r){i[t]={plugin:e,mapping:s,data:r}},hasCore:function(t){return e.hasOwnProperty(t)},hasCustom:function(t){return i.hasOwnProperty(t)},getCore:function(t){return e[t]},getCustom:function(t){return i[t]},getCustomClass:function(t){return i.hasOwnProperty(t)?i[t].plugin:null},remove:function(t){e.hasOwnProperty(t)&&delete e[t]},removeCustom:function(t){i.hasOwnProperty(t)&&delete i[t]},destroyCorePlugins:function(){for(var t in e)e.hasOwnProperty(t)&&delete e[t]},destroyCustomPlugins:function(){for(var t in i)i.hasOwnProperty(t)&&delete i[t]}};t.exports=s},77332:(t,e,i)=>{var s=i(83419),r=i(8443),n=i(50792),o=i(74099),a=i(44603),h=i(39429),l=i(95540),u=i(37277),c=i(72905),d=new s({Extends:n,initialize:function(t){n.call(this),this.game=t,this.plugins=[],this.scenePlugins=[],this._pendingGlobal=[],this._pendingScene=[],t.isBooted?this.boot():t.events.once(r.BOOT,this.boot,this)},boot:function(){var t,e,i,s,n,o,a,h=this.game.config,u=h.installGlobalPlugins;for(u=u.concat(this._pendingGlobal),t=0;t{var s=i(52018),r=i(83419),n=i(44594),o=new r({Extends:s,initialize:function(t,e,i){s.call(this,e),this.scene=t,this.systems=t.sys,this.pluginKey=i,t.sys.events.once(n.BOOT,this.boot,this)},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=o},18922:(t,e,i)=>{t.exports={BasePlugin:i(52018),DefaultPlugins:i(42363),PluginCache:i(37277),PluginManager:i(77332),ScenePlugin:i(45145)}},63595:()=>{HTMLVideoElement&&!("requestVideoFrameCallback"in HTMLVideoElement.prototype)&&"getVideoPlaybackQuality"in HTMLVideoElement.prototype&&(HTMLVideoElement.prototype._rvfcpolyfillmap={},HTMLVideoElement.prototype.requestVideoFrameCallback=function(t){const e=performance.now(),i=this.getVideoPlaybackQuality(),s=this.mozPresentedFrames||this.mozPaintedFrames||i.totalVideoFrames-i.droppedVideoFrames,r=(n,o)=>{const a=this.getVideoPlaybackQuality(),h=this.mozPresentedFrames||this.mozPaintedFrames||a.totalVideoFrames-a.droppedVideoFrames;if(h>s){const s=this.mozFrameDelay||a.totalFrameDelay-i.totalFrameDelay||0,r=o-n;t(o,{presentationTime:o+1e3*s,expectedDisplayTime:o+r,width:this.videoWidth,height:this.videoHeight,mediaTime:Math.max(0,this.currentTime||0)+r/1e3,presentedFrames:h,processingDuration:s}),delete this._rvfcpolyfillmap[e]}else this._rvfcpolyfillmap[e]=requestAnimationFrame((t=>r(o,t)))};return this._rvfcpolyfillmap[e]=requestAnimationFrame((t=>r(e,t))),e},HTMLVideoElement.prototype.cancelVideoFrameCallback=function(t){cancelAnimationFrame(this._rvfcpolyfillmap[t]),delete this._rvfcpolyfillmap[t]})},10312:t=>{t.exports={SKIP_CHECK:-1,NORMAL:0,ADD:1,MULTIPLY:2,SCREEN:3,OVERLAY:4,DARKEN:5,LIGHTEN:6,COLOR_DODGE:7,COLOR_BURN:8,HARD_LIGHT:9,SOFT_LIGHT:10,DIFFERENCE:11,EXCLUSION:12,HUE:13,SATURATION:14,COLOR:15,LUMINOSITY:16,ERASE:17,SOURCE_IN:18,SOURCE_OUT:19,SOURCE_ATOP:20,DESTINATION_OVER:21,DESTINATION_IN:22,DESTINATION_OUT:23,DESTINATION_ATOP:24,LIGHTER:25,COPY:26,XOR:27}},29795:t=>{t.exports={DEFAULT:0,LINEAR:0,NEAREST:1}},68627:(t,e,i)=>{var s=i(19715),r=i(32880),n=i(83419),o=i(8054),a=i(50792),h=i(92503),l=i(56373),u=i(97480),c=i(69442),d=i(61340),p=new n({Extends:a,initialize:function(t){a.call(this);var e=t.config;this.config={clearBeforeRender:e.clearBeforeRender,backgroundColor:e.backgroundColor,antialias:e.antialias,roundPixels:e.roundPixels},this.game=t,this.type=o.CANVAS,this.drawCount=0,this.width=0,this.height=0,this.gameCanvas=t.canvas;var i={alpha:t.config.transparent,desynchronized:t.config.desynchronized,willReadFrequently:!1};this.gameContext=e.context?e.context:this.gameCanvas.getContext("2d",i),this.currentContext=this.gameContext,this.antialias=t.config.antialias,this.blendModes=l(),this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92},this._tempMatrix1=new d,this._tempMatrix2=new d,this._tempMatrix3=new d,this.isBooted=!1,this.init()},init:function(){this.game.textures.once(c.READY,this.boot,this)},boot:function(){var t=this.game,e=t.scale.baseSize;this.width=e.width,this.height=e.height,this.isBooted=!0,t.scale.on(u.RESIZE,this.onResize,this),this.resize(e.width,e.height)},onResize:function(t,e){e.width===this.width&&e.height===this.height||this.resize(e.width,e.height)},resize:function(t,e){this.width=t,this.height=e,this.emit(h.RESIZE,t,e)},resetTransform:function(){this.currentContext.setTransform(1,0,0,1,0,0)},setBlendMode:function(t){return this.currentContext.globalCompositeOperation=t,this},setContext:function(t){return this.currentContext=t||this.gameContext,this},setAlpha:function(t){return this.currentContext.globalAlpha=t,this},preRender:function(){var t=this.gameContext,e=this.config,i=this.width,s=this.height;t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),e.clearBeforeRender&&(t.clearRect(0,0,i,s),e.transparent||(t.fillStyle=e.backgroundColor.rgba,t.fillRect(0,0,i,s))),t.save(),this.drawCount=0,this.emit(h.PRE_RENDER)},render:function(t,e,i){var r=e.length;this.emit(h.RENDER,t,i);var n=i.x,o=i.y,a=i.width,l=i.height,u=i.renderToTexture?i.context:t.sys.context;u.save(),this.game.scene.customViewports&&(u.beginPath(),u.rect(n,o,a,l),u.clip()),i.emit(s.PRE_RENDER,i),this.currentContext=u;var c=i.mask;c&&c.preRenderCanvas(this,null,i._maskCamera),i.transparent||(u.fillStyle=i.backgroundColor.rgba,u.fillRect(n,o,a,l)),u.globalAlpha=i.alpha,u.globalCompositeOperation="source-over",this.drawCount+=r,i.renderToTexture&&i.emit(s.PRE_RENDER,i),i.matrix.copyToContext(u);for(var d=0;d=0?v=-(v+c):v<0&&(v=Math.abs(v)-c)),t.flipY&&(y>=0?y=-(y+d):y<0&&(y=Math.abs(y)-d))}var w=1,T=1;t.flipX&&(p||(v+=-e.realWidth+2*g),w=-1),t.flipY&&(p||(y+=-e.realHeight+2*m),T=-1);var b=t.x,S=t.y;a.applyITRS(b,S,t.rotation,t.scaleX*w,t.scaleY*T),o.copyFrom(i.matrix),s?(o.multiplyWithOffset(s,-i.scrollX*t.scrollFactorX,-i.scrollY*t.scrollFactorY),a.e=b,a.f=S):(a.e-=i.scrollX*t.scrollFactorX,a.f-=i.scrollY*t.scrollFactorY),o.multiply(a),i.roundPixels&&(o.e=Math.round(o.e),o.f=Math.round(o.f)),n.save(),o.setToContext(n),n.globalCompositeOperation=this.blendModes[t.blendMode],n.globalAlpha=r,n.imageSmoothingEnabled=!e.source.scaleMode,t.mask&&t.mask.preRenderCanvas(this,t,i),c>0&&d>0&&(i.roundPixels?n.drawImage(e.source.image,l,u,c,d,Math.round(v),Math.round(y),Math.round(c/f),Math.round(d/f)):n.drawImage(e.source.image,l,u,c,d,v,y,c/f,d/f)),t.mask&&t.mask.postRenderCanvas(this,t,i),n.restore()}},destroy:function(){this.removeAllListeners(),this.game=null,this.gameCanvas=null,this.gameContext=null}});t.exports=p},55830:(t,e,i)=>{t.exports={CanvasRenderer:i(68627),GetBlendModes:i(56373),SetTransform:i(20926)}},56373:(t,e,i)=>{var s=i(10312),r=i(89289);t.exports=function(){var t=[],e=r.supportNewBlendModes,i="source-over";return t[s.NORMAL]=i,t[s.ADD]="lighter",t[s.MULTIPLY]=e?"multiply":i,t[s.SCREEN]=e?"screen":i,t[s.OVERLAY]=e?"overlay":i,t[s.DARKEN]=e?"darken":i,t[s.LIGHTEN]=e?"lighten":i,t[s.COLOR_DODGE]=e?"color-dodge":i,t[s.COLOR_BURN]=e?"color-burn":i,t[s.HARD_LIGHT]=e?"hard-light":i,t[s.SOFT_LIGHT]=e?"soft-light":i,t[s.DIFFERENCE]=e?"difference":i,t[s.EXCLUSION]=e?"exclusion":i,t[s.HUE]=e?"hue":i,t[s.SATURATION]=e?"saturation":i,t[s.COLOR]=e?"color":i,t[s.LUMINOSITY]=e?"luminosity":i,t[s.ERASE]="destination-out",t[s.SOURCE_IN]="source-in",t[s.SOURCE_OUT]="source-out",t[s.SOURCE_ATOP]="source-atop",t[s.DESTINATION_OVER]="destination-over",t[s.DESTINATION_IN]="destination-in",t[s.DESTINATION_OUT]="destination-out",t[s.DESTINATION_ATOP]="destination-atop",t[s.LIGHTER]="lighter",t[s.COPY]="copy",t[s.XOR]="xor",t}},20926:(t,e,i)=>{var s=i(91296);t.exports=function(t,e,i,r,n){var o=r.alpha*i.alpha;if(o<=0)return!1;var a=s(i,r,n).calc;return e.globalCompositeOperation=t.blendModes[i.blendMode],e.globalAlpha=o,e.save(),a.setToContext(e),e.imageSmoothingEnabled=i.frame?!i.frame.source.scaleMode:t.antialias,!0}},63899:t=>{t.exports="losewebgl"},6119:t=>{t.exports="postrender"},48070:t=>{t.exports="prerender"},15640:t=>{t.exports="render"},8912:t=>{t.exports="resize"},87124:t=>{t.exports="restorewebgl"},92503:(t,e,i)=>{t.exports={LOSE_WEBGL:i(63899),POST_RENDER:i(6119),PRE_RENDER:i(48070),RENDER:i(15640),RESIZE:i(8912),RESTORE_WEBGL:i(87124)}},36909:(t,e,i)=>{t.exports={Events:i(92503),Snapshot:i(89966)},t.exports.Canvas=i(55830),t.exports.WebGL=i(4159)},32880:(t,e,i)=>{var s=i(27919),r=i(40987),n=i(95540);t.exports=function(t,e){var i=n(e,"callback"),o=n(e,"type","image/png"),a=n(e,"encoder",.92),h=Math.abs(Math.round(n(e,"x",0))),l=Math.abs(Math.round(n(e,"y",0))),u=Math.floor(n(e,"width",t.width)),c=Math.floor(n(e,"height",t.height));if(n(e,"getPixel",!1)){var d=t.getContext("2d",{willReadFrequently:!1}).getImageData(h,l,1,1).data;i.call(null,new r(d[0],d[1],d[2],d[3]))}else if(0!==h||0!==l||u!==t.width||c!==t.height){var p=s.createWebGL(this,u,c),f=p.getContext("2d",{willReadFrequently:!0});u>0&&c>0&&f.drawImage(t,h,l,u,c,0,0,u,c);var g=new Image;g.onerror=function(){i.call(null),s.remove(p)},g.onload=function(){i.call(null,g),s.remove(p)},g.src=p.toDataURL(o,a)}else{var m=new Image;m.onerror=function(){i.call(null)},m.onload=function(){i.call(null,m)},m.src=t.toDataURL(o,a)}}},88815:(t,e,i)=>{var s=i(27919),r=i(40987),n=i(95540);t.exports=function(t,e){var i=t,o=n(e,"callback"),a=n(e,"type","image/png"),h=n(e,"encoder",.92),l=Math.abs(Math.round(n(e,"x",0))),u=Math.abs(Math.round(n(e,"y",0))),c=n(e,"getPixel",!1),d=n(e,"isFramebuffer",!1),p=d?n(e,"bufferWidth",1):i.drawingBufferWidth,f=d?n(e,"bufferHeight",1):i.drawingBufferHeight;if(c){var g=new Uint8Array(4),m=d?u:f-u;i.readPixels(l,m,1,1,i.RGBA,i.UNSIGNED_BYTE,g),o.call(null,new r(g[0],g[1],g[2],g[3]))}else{var v=Math.floor(n(e,"width",p)),y=Math.floor(n(e,"height",f)),x=v*y*4,w=new Uint8Array(x);i.readPixels(l,f-u-y,v,y,i.RGBA,i.UNSIGNED_BYTE,w);for(var T=s.createWebGL(this,v,y),b=T.getContext("2d",{willReadFrequently:!0}),S=b.getImageData(0,0,v,y),E=S.data,C=0;C{t.exports={Canvas:i(32880),WebGL:i(88815)}},7530:(t,e,i)=>{var s=i(83419),r=i(36060),n=i(90330),o=i(82264),a=i(95540),h=i(32302),l=i(63448),u=i(31302),c=i(58918),d=i(14811),p=i(92651),f=i(96569),g=i(56527),m=i(57516),v=i(43439),y=i(81041),x=i(12385),w=i(7589),T=i(95428),b=i(72905),S=new s({initialize:function(t){this.game=t.game,this.renderer=t,this.classes=new n([[r.UTILITY_PIPELINE,w],[r.MULTI_PIPELINE,m],[r.BITMAPMASK_PIPELINE,u],[r.SINGLE_PIPELINE,x],[r.ROPE_PIPELINE,y],[r.LIGHT_PIPELINE,f],[r.POINTLIGHT_PIPELINE,v],[r.MOBILE_PIPELINE,g]]),this.postPipelineClasses=new n,this.pipelines=new n,this.postPipelineInstances=[],this.default=null,this.current=null,this.previous=null,this.MULTI_PIPELINE=null,this.BITMAPMASK_PIPELINE=null,this.UTILITY_PIPELINE=null,this.MOBILE_PIPELINE=null,this.FX_PIPELINE=null,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2,this.renderTargets=[],this.maxDimension=0,this.frameInc=32,this.targetIndex=0},boot:function(t,e,i){var s=this.renderer,n=this.renderTargets;this.frameInc=Math.floor(a(t,"frameInc",32));var l,u,f=s.width,g=s.height,m=this.game.config.disablePreFX;if(this.game.config.disablePostFX||this.postPipelineClasses.setAll([[String(d.BARREL),c.Barrel],[String(d.BLOOM),c.Bloom],[String(d.BLUR),c.Blur],[String(d.BOKEH),c.Bokeh],[String(d.CIRCLE),c.Circle],[String(d.COLOR_MATRIX),c.ColorMatrix],[String(d.DISPLACEMENT),c.Displacement],[String(d.GLOW),c.Glow],[String(d.GRADIENT),c.Gradient],[String(d.PIXELATE),c.Pixelate],[String(d.SHADOW),c.Shadow],[String(d.SHINE),c.Shine],[String(d.VIGNETTE),c.Vignette],[String(d.WIPE),c.Wipe]]),!m){this.classes.set(r.FX_PIPELINE,p);for(var v=Math.min(f,g),y=Math.ceil(v/this.frameInc),x=1;x=0;i--){var s=e[i];s.active&&s.preBatch(t)}}},postBatch:function(t){if(t.hasPostPipeline){this.flush();for(var e=t.postPipelines,i=0;i=0;i--){var s=e[i];s.active&&s.preBatch(t)}}},postBatchCamera:function(t){if(t.hasPostPipeline){this.flush();for(var e=t.postPipelines,i=0;ithis.maxDimension)return this.targetIndex=e.length-3,e[this.targetIndex];var i=3*(l(t,this.frameInc,0,!0)-1);return this.targetIndex=i,e[i]},getSwapRenderTarget:function(){return this.renderTargets[this.targetIndex+1]},getAltSwapRenderTarget:function(){return this.renderTargets[this.targetIndex+2]},destroy:function(){this.flush(),this.classes.clear(),this.postPipelineClasses.clear(),this.pipelines.clear(),this.renderer=null,this.game=null,this.classes=null,this.postPipelineClasses=null,this.pipelines=null,this.default=null,this.current=null,this.previous=null}});t.exports=S},32302:(t,e,i)=>{var s=i(83419),r=i(92503),n=new s({initialize:function(t,e,i,s,r,n,o,a,h){void 0===s&&(s=1),void 0===r&&(r=0),void 0===n&&(n=!0),void 0===o&&(o=!1),void 0===a&&(a=!0),void 0===h&&(h=!0),this.renderer=t,this.framebuffer=null,this.texture=null,this.width=0,this.height=0,this.scale=s,this.minFilter=r,this.autoClear=n,this.autoResize=!0,this.hasDepthBuffer=a,this.forceClamp=h,this.resize(e,i),o?this.setAutoResize(!0):this.autoResize=!1},setAutoResize:function(t){return t&&!this.autoResize?(this.renderer.on(r.RESIZE,this.resize,this),this.autoResize=!0):!t&&this.autoResize&&(this.renderer.off(r.RESIZE,this.resize,this),this.autoResize=!1),this},resize:function(t,e){if((t=Math.round(t*this.scale))<=0&&(t=1),(e=Math.round(e*this.scale))<=0&&(e=1),this.autoResize&&(t!==this.width||e!==this.height)){var i=this.renderer;i.deleteFramebuffer(this.framebuffer),i.deleteTexture(this.texture),this.texture=i.createTextureFromSource(null,t,e,this.minFilter,this.forceClamp),this.framebuffer=i.createFramebuffer(t,e,this.texture,this.hasDepthBuffer),this.width=t,this.height=e}return this},willResize:function(t,e){return(t=Math.round(t*this.scale))<=0&&(t=1),(e=Math.round(e*this.scale))<=0&&(e=1),t!==this.width||e!==this.height},bind:function(t,e,i){void 0===t&&(t=!1);var s=this.renderer;if(t&&s.flush(),e&&i&&this.resize(e,i),s.pushFramebuffer(this.framebuffer,!1,!1),t&&this.adjustViewport(),this.autoClear){var r=this.renderer.gl;r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT)}s.clearStencilMask()},adjustViewport:function(){var t=this.renderer.gl;t.viewport(0,0,this.width,this.height),t.disable(t.SCISSOR_TEST)},clear:function(){var t=this.renderer,e=t.gl;t.pushFramebuffer(this.framebuffer),e.disable(e.SCISSOR_TEST),e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),t.popFramebuffer(),t.resetScissor()},unbind:function(t){void 0===t&&(t=!1);var e=this.renderer;return t&&e.flush(),e.popFramebuffer()},destroy:function(){var t=this.renderer;t.off(r.RESIZE,this.resize,this),t.deleteFramebuffer(this.framebuffer),t.deleteTexture(this.texture),this.renderer=null,this.framebuffer=null,this.texture=null}});t.exports=n},70554:t=>{t.exports={getTintFromFloats:function(t,e,i,s){return((255*s&255)<<24|(255*t&255)<<16|(255*e&255)<<8|255*i&255)>>>0},getTintAppendFloatAlpha:function(t,e){return((255*e&255)<<24|t)>>>0},getTintAppendFloatAlphaAndSwap:function(t,e){return((255*e&255)<<24|(255&t)<<16|(t>>8&255)<<8|t>>16&255)>>>0},getFloatsFromUintRGB:function(t){return[(t>>16&255)/255,(t>>8&255)/255,(255&t)/255]},checkShaderMax:function(t,e){var i=Math.min(16,t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS));return e&&-1!==e?Math.min(i,e):i},parseFragmentShaderMaxTextures:function(t,e){if(!t)return"";for(var i="",s=0;s0&&(i+="\n\telse "),s{var s=i(83419),r=i(62644),n=i(50792),o=i(77085),a=i(95540),h=i(37867),l=i(92503),u=i(32302),c=i(70554),d=i(38683),p=new s({Extends:n,initialize:function(t){n.call(this);var e=t.game,i=e.renderer,s=i.gl;this.name=a(t,"name","WebGLPipeline"),this.game=e,this.renderer=i,this.manager,this.gl=s,this.view=e.canvas,this.width=0,this.height=0,this.vertexCount=0,this.vertexCapacity=0,this.vertexData,this.vertexBuffer,this.activeBuffer,this.topology=a(t,"topology",s.TRIANGLES),this.bytes,this.vertexViewF32,this.vertexViewU32,this.active=!0,this.forceZero=a(t,"forceZero",!1),this.hasBooted=!1,this.isPostFX=!1,this.isPreFX=!1,this.renderTargets=[],this.currentRenderTarget,this.shaders=[],this.currentShader,this.projectionMatrix,this.projectionWidth=0,this.projectionHeight=0,this.config=t,this.glReset=!1,this.batch=[],this.currentBatch=null,this.currentTexture=null,this.currentUnit=0,this.activeTextures=[],this.resizeUniform=a(t,"resizeUniform","")},boot:function(){var t,e=this.gl,i=this.config,s=this.renderer;this.isPostFX||(this.projectionMatrix=(new h).identity());var r=this.renderTargets,n=a(i,"renderTarget",!1);"boolean"==typeof n&&n&&(n=1);var c=s.width,d=s.height;if("number"==typeof n)for(t=0;tw&&(w=x[t].vertexSize);var T=a(i,"batchSize",s.config.batchSize);this.vertexCapacity=6*T;var b=new ArrayBuffer(this.vertexCapacity*w);this.vertexData=b,this.bytes=new Uint8Array(b),this.vertexViewF32=new Float32Array(b),this.vertexViewU32=new Uint32Array(b);var S=a(i,"vertices",null);for(S?(this.vertexViewF32.set(S),this.vertexBuffer=s.createVertexBuffer(b,e.STATIC_DRAW)):this.vertexBuffer=s.createVertexBuffer(b.byteLength,e.DYNAMIC_DRAW),this.setVertexBuffer(),t=x.length-1;t>=0;t--)x[t].rebind();this.hasBooted=!0,s.on(l.RESIZE,this.resize,this),s.on(l.PRE_RENDER,this.onPreRender,this),s.on(l.RENDER,this.onRender,this),s.on(l.POST_RENDER,this.onPostRender,this),this.emit(o.BOOT,this),this.onBoot()},onBoot:function(){},onResize:function(){},setShader:function(t,e,i){var s=this.renderer;return t===this.currentShader&&s.currentProgram===this.currentShader.program||(this.flush(),this.setVertexBuffer(i)&&!e&&(e=!0),t.bind(e,!1),this.currentShader=t),this},getShaderByName:function(t){for(var e=this.shaders,i=0;i-1&&(v=b.substring(20))}y&&x&&m.push(new d(this,v,y,x,r(w)))}this.shaders=m}return 0===this.shaders.length?console.warn("Pipeline: "+this.name+" - Invalid shader config"):this.currentShader=this.shaders[0],this},createBatch:function(t){return this.currentBatch={start:this.vertexCount,count:0,texture:[t],unit:0,maxUnit:0},this.currentUnit=0,this.currentTexture=t,this.batch.push(this.currentBatch),0},addTextureToBatch:function(t){var e=this.currentBatch;e&&(e.texture.push(t),e.unit++,e.maxUnit++)},pushBatch:function(t){if(!this.currentBatch||this.forceZero&&t!==this.currentTexture)return this.createBatch(t);if(t===this.currentTexture)return this.currentUnit;var e=this.currentBatch,i=e.texture.indexOf(t);return-1===i?e.texture.length===this.renderer.maxTextures?this.createBatch(t):(e.unit++,e.maxUnit++,e.texture.push(t),this.currentUnit=e.unit,this.currentTexture=t,e.unit):(this.currentUnit=i,this.currentTexture=t,i)},setGameObject:function(t,e){return void 0===e&&(e=t.frame),this.pushBatch(e.source.glTexture)},shouldFlush:function(t){return void 0===t&&(t=0),this.vertexCount+t>this.vertexCapacity},vertexAvailable:function(){return this.vertexCapacity-this.vertexCount},resize:function(t,e){t===this.width&&e===this.height||this.flush(),this.width=t,this.height=e;for(var i=this.renderTargets,s=0;s=0;i--){var s=e[i].rebind();t&&s!==t||(this.currentShader=s)}return this.activeTextures.length=0,this.emit(o.REBIND,this.currentShader),this.onActive(this.currentShader),this.onRebind(),this.glReset=!1,this},restoreContext:function(){var t=this.shaders,e=!!this.vertexBuffer;this.activeBuffer=null,this.activeTextures.length=0,this.batch.length=0,this.currentBatch=null,this.currentTexture=null,this.currentUnit=0,e&&this.setVertexBuffer();for(var i=0;i0){this.emit(o.BEFORE_FLUSH,this,t),this.onBeforeFlush(t);var e=this.gl,i=this.vertexCount,s=this.currentShader.vertexSize,r=this.topology;if(this.active){var n,a,h;this.setVertexBuffer(),i===this.vertexCapacity?e.bufferData(e.ARRAY_BUFFER,this.vertexData,e.DYNAMIC_DRAW):e.bufferSubData(e.ARRAY_BUFFER,0,this.bytes.subarray(0,i*s));var l=this.batch,u=this.activeTextures;if(this.forceZero)for(u[0]||e.activeTexture(e.TEXTURE0),n=0;n{var s=i(95428),r=i(72905),n=i(19715),o=i(83419),a=i(8054),h=i(50792),l=i(92503),u=i(50030),c=i(37867),d=i(29747),p=i(7530),f=i(32302),g=i(97480),m=i(69442),v=i(70554),y=i(88815),x=i(26128),w=i(1482),T=i(82751),b=i(84387),S=i(93567),E=i(57183),C=new o({Extends:h,initialize:function(t){h.call(this);var e=t.config,i={alpha:e.transparent,desynchronized:e.desynchronized,depth:!0,antialias:e.antialiasGL,premultipliedAlpha:e.premultipliedAlpha,stencil:!0,failIfMajorPerformanceCaveat:e.failIfMajorPerformanceCaveat,powerPreference:e.powerPreference,preserveDrawingBuffer:e.preserveDrawingBuffer,willReadFrequently:!1};this.config={clearBeforeRender:e.clearBeforeRender,antialias:e.antialias,backgroundColor:e.backgroundColor,contextCreation:i,roundPixels:e.roundPixels,maxTextures:e.maxTextures,maxTextureSize:e.maxTextureSize,batchSize:e.batchSize,maxLights:e.maxLights,mipmapFilter:e.mipmapFilter},this.game=t,this.type=a.WEBGL,this.pipelines=null,this.width=0,this.height=0,this.canvas=t.canvas,this.blendModes=[],this.contextLost=!1,this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92,isFramebuffer:!1,bufferWidth:0,bufferHeight:0},this.maxTextures=0,this.textureIndexes,this.glBufferWrappers=[],this.glProgramWrappers=[],this.glTextureWrappers=[],this.glFramebufferWrappers=[],this.glAttribLocationWrappers=[],this.glUniformLocationWrappers=[],this.currentFramebuffer=null,this.fboStack=[],this.currentProgram=null,this.currentBlendMode=1/0,this.currentScissorEnabled=!1,this.currentScissor=null,this.scissorStack=[],this.contextLostHandler=d,this.contextRestoredHandler=d,this.gl=null,this.supportedExtensions=null,this.instancedArraysExtension=null,this.vaoExtension=null,this.extensions={},this.glFormats,this.compression,this.drawingBufferHeight=0,this.blankTexture=null,this.normalTexture=null,this.whiteTexture=null,this.maskCount=0,this.maskStack=[],this.currentMask={mask:null,camera:null},this.currentCameraMask={mask:null,camera:null},this.glFuncMap=null,this.currentType="",this.newType=!1,this.nextTypeMatch=!1,this.finalType=!1,this.mipmapFilter=null,this.defaultScissor=[0,0,0,0],this.isBooted=!1,this.renderTarget=null,this.projectionMatrix,this.projectionWidth=0,this.projectionHeight=0,this.maskSource=null,this.maskTarget=null,this.spector=null,this._debugCapture=!1,this.init(this.config)},init:function(t){var e,i=this.game,r=this.canvas,n=t.backgroundColor;if(!(e=i.config.context?i.config.context:r.getContext("webgl",t.contextCreation)||r.getContext("experimental-webgl",t.contextCreation))||e.isContextLost())throw this.contextLost=!0,new Error("WebGL unsupported");this.gl=e;var o=this,h=function(){var t=e.getSupportedExtensions();o.supportedExtensions=t;var i="ANGLE_instanced_arrays";o.instancedArraysExtension=t.indexOf(i)>-1?e.getExtension(i):null;var s="OES_vertex_array_object";o.vaoExtension=t.indexOf(s)>-1?e.getExtension(s):null};h(),this.contextLostHandler=function(t){o.contextLost=!0,console&&console.warn("WebGL Context lost. Renderer disabled"),o.emit(l.LOSE_WEBGL,o),t.preventDefault()},r.addEventListener("webglcontextlost",this.contextLostHandler,!1),this.contextRestoredHandler=function(t){if(e.isContextLost())console&&console.log("WebGL Context restored, but context is still lost");else{o.currentProgram=null,o.currentFramebuffer=null,o.setBlendMode(a.BlendModes.NORMAL),e.disable(e.BLEND),e.disable(e.DEPTH_TEST),e.enable(e.CULL_FACE),o.compression=o.getCompressedTextures();var i=function(t){t.createResource()};s(o.glTextureWrappers,i),s(o.glBufferWrappers,i),s(o.glFramebufferWrappers,i),s(o.glProgramWrappers,i),s(o.glAttribLocationWrappers,i),s(o.glUniformLocationWrappers,i),o.createTemporaryTextures(),o.pipelines.restoreContext(),o.resize(o.game.scale.baseSize.width,o.game.scale.baseSize.height),h(),o.contextLost=!1,console&&console.warn("WebGL Context restored. Renderer running again."),o.emit(l.RESTORE_WEBGL,o),t.preventDefault()}},r.addEventListener("webglcontextrestored",this.contextRestoredHandler,!1),i.context=e;for(var u=0;u<=27;u++)this.blendModes.push({func:[e.ONE,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_ADD});return this.blendModes[1].func=[e.ONE,e.DST_ALPHA],this.blendModes[2].func=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA],this.blendModes[3].func=[e.ONE,e.ONE_MINUS_SRC_COLOR],this.blendModes[17]={func:[e.ZERO,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_REVERSE_SUBTRACT},this.glFormats=[e.BYTE,e.SHORT,e.UNSIGNED_BYTE,e.UNSIGNED_SHORT,e.FLOAT],this.glFuncMap={mat2:{func:e.uniformMatrix2fv,length:1,matrix:!0},mat3:{func:e.uniformMatrix3fv,length:1,matrix:!0},mat4:{func:e.uniformMatrix4fv,length:1,matrix:!0},"1f":{func:e.uniform1f,length:1},"1fv":{func:e.uniform1fv,length:1},"1i":{func:e.uniform1i,length:1},"1iv":{func:e.uniform1iv,length:1},"2f":{func:e.uniform2f,length:2},"2fv":{func:e.uniform2fv,length:1},"2i":{func:e.uniform2i,length:2},"2iv":{func:e.uniform2iv,length:1},"3f":{func:e.uniform3f,length:3},"3fv":{func:e.uniform3fv,length:1},"3i":{func:e.uniform3i,length:3},"3iv":{func:e.uniform3iv,length:1},"4f":{func:e.uniform4f,length:4},"4fv":{func:e.uniform4fv,length:1},"4i":{func:e.uniform4i,length:4},"4iv":{func:e.uniform4iv,length:1}},t.maxTextures&&-1!==t.maxTextures||(t.maxTextures=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),t.maxTextureSize||(t.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE)),this.compression=this.getCompressedTextures(),e.disable(e.DEPTH_TEST),e.disable(e.CULL_FACE),e.enable(e.BLEND),e.clearColor(n.redGL,n.greenGL,n.blueGL,n.alphaGL),-1!==["NEAREST","LINEAR","NEAREST_MIPMAP_NEAREST","LINEAR_MIPMAP_NEAREST","NEAREST_MIPMAP_LINEAR","LINEAR_MIPMAP_LINEAR"].indexOf(t.mipmapFilter)&&(this.mipmapFilter=e[t.mipmapFilter]),this.maxTextures=v.checkShaderMax(e,t.maxTextures),this.textureIndexes=[],this.createTemporaryTextures(),this.pipelines=new p(this),this.setBlendMode(a.BlendModes.NORMAL),this.projectionMatrix=(new c).identity(),i.textures.once(m.READY,this.boot,this),this},boot:function(){var t=this.game,e=this.pipelines,i=t.scale.baseSize,s=i.width,r=i.height;this.width=s,this.height=r,this.isBooted=!0,this.renderTarget=new f(this,s,r,1,0,!0,!0),this.maskTarget=new f(this,s,r,1,0,!0,!0),this.maskSource=new f(this,s,r,1,0,!0,!0);var n=t.config;e.boot(n.pipeline,n.defaultPipeline,n.autoMobilePipeline),this.blankTexture=t.textures.getFrame("__DEFAULT").glTexture,this.normalTexture=t.textures.getFrame("__NORMAL").glTexture,this.whiteTexture=t.textures.getFrame("__WHITE").glTexture;var o=this.gl;o.bindFramebuffer(o.FRAMEBUFFER,null),o.enable(o.SCISSOR_TEST),t.scale.on(g.RESIZE,this.onResize,this),this.resize(s,r)},createTemporaryTextures:function(){for(var t=this.gl,e=0;e0&&s>0;if(o&&a){var h=o[0],l=o[1],u=o[2],c=o[3];a=h!==t||l!==e||u!==i||c!==s}a&&(this.flush(),n.scissor(t,r-e-s,i,s))},resetScissor:function(){var t=this.gl;t.enable(t.SCISSOR_TEST);var e=this.currentScissor;if(e){var i=e[0],s=e[1],r=e[2],n=e[3];r>0&&n>0&&t.scissor(i,this.drawingBufferHeight-s-n,r,n)}},popScissor:function(){var t=this.scissorStack;t.pop();var e=t[t.length-1];e&&this.setScissor(e[0],e[1],e[2],e[3]),this.currentScissor=e},hasActiveStencilMask:function(){var t=this.currentMask.mask,e=this.currentCameraMask.mask;return t&&t.isStencil||e&&e.isStencil},resetViewport:function(){var t=this.gl;t.viewport(0,0,this.width,this.height),this.drawingBufferHeight=t.drawingBufferHeight},setBlendMode:function(t,e){void 0===e&&(e=!1);var i=this.gl,s=this.blendModes[t];return!!(e||t!==a.BlendModes.SKIP_CHECK&&this.currentBlendMode!==t)&&(this.flush(),i.enable(i.BLEND),i.blendEquation(s.equation),s.func.length>2?i.blendFuncSeparate(s.func[0],s.func[1],s.func[2],s.func[3]):i.blendFunc(s.func[0],s.func[1]),this.currentBlendMode=t,!0)},addBlendMode:function(t,e){return this.blendModes.push({func:t,equation:e})-1},updateBlendMode:function(t,e,i){return this.blendModes[t]&&(this.blendModes[t].func=e,i&&(this.blendModes[t].equation=i)),this},removeBlendMode:function(t){return t>17&&this.blendModes[t]&&this.blendModes.splice(t,1),this},pushFramebuffer:function(t,e,i,s,r){return t===this.currentFramebuffer?this:(this.fboStack.push(t),this.setFramebuffer(t,e,i,s,r))},setFramebuffer:function(t,e,i,s,r){if(void 0===e&&(e=!1),void 0===i&&(i=!0),void 0===s&&(s=null),void 0===r&&(r=!1),t===this.currentFramebuffer)return this;var n=this.gl,o=this.width,a=this.height;return t&&t.renderTexture&&i?(o=t.renderTexture.width,a=t.renderTexture.height):this.flush(),t?n.bindFramebuffer(n.FRAMEBUFFER,t.webGLFramebuffer):n.bindFramebuffer(n.FRAMEBUFFER,null),i&&n.viewport(0,0,o,a),s&&n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,s.webGLTexture,0),r&&(n.clearColor(0,0,0,0),n.clear(n.COLOR_BUFFER_BIT)),e&&(t?(this.drawingBufferHeight=a,this.pushScissor(0,0,o,a)):(this.drawingBufferHeight=this.height,this.popScissor())),this.currentFramebuffer=t,this},popFramebuffer:function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!0);var i=this.fboStack;i.pop();var s=i[i.length-1];return s||(s=null),this.setFramebuffer(s,t,e),s},restoreFramebuffer:function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!0);var i=this.fboStack,s=i[i.length-1];s||(s=null),this.currentFramebuffer=null,this.setFramebuffer(s,t,e)},setProgram:function(t){return t!==this.currentProgram&&(this.flush(),this.gl.useProgram(t.webGLProgram),this.currentProgram=t,!0)},resetProgram:function(){return this.gl.useProgram(this.currentProgram.webGLProgramWrapper),this},createTextureFromSource:function(t,e,i,s,r){void 0===r&&(r=!1);var n=this.gl,o=n.NEAREST,h=n.NEAREST,l=n.CLAMP_TO_EDGE;e=t?t.width:e,i=t?t.height:i;var c=u(e,i);if(c&&!r&&(l=n.REPEAT),s===a.ScaleModes.LINEAR&&this.config.antialias){var d=t&&t.compressed,p=!d&&c||d&&t.mipmaps.length>1;o=this.mipmapFilter&&p?this.mipmapFilter:n.LINEAR,h=n.LINEAR}return t||"number"!=typeof e||"number"!=typeof i?this.createTexture2D(0,o,h,l,l,n.RGBA,t):this.createTexture2D(0,o,h,l,l,n.RGBA,null,e,i)},createTexture2D:function(t,e,i,s,r,n,o,a,h,l,u,c){"number"!=typeof a&&(a=o?o.width:1),"number"!=typeof h&&(h=o?o.height:1);var d=new T(this.gl,t,e,i,s,r,n,o,a,h,l,u,c);return this.glTextureWrappers.push(d),d},createFramebuffer:function(t,e,i,s){this.currentFramebuffer=null;var r=new b(this.gl,t,e,i,s);return this.glFramebufferWrappers.push(r),r},beginBitmapMask:function(t,e){this.gl&&(this.flush(),this.maskTarget.bind(!0),this.currentCameraMask.mask!==t&&(this.currentMask.mask=t,this.currentMask.camera=e))},drawBitmapMask:function(t,e,i){this.flush(),this.maskSource.bind(),this.setBlendMode(0,!0),t.renderWebGL(this,t,e),this.maskSource.unbind(!0),this.maskTarget.unbind();var s=this.gl,r=this.getCurrentStencilMask();r?(s.enable(s.STENCIL_TEST),r.mask.applyStencil(this,r.camera,!0)):this.currentMask.mask=null,this.pipelines.set(i),s.activeTexture(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,this.maskTarget.texture.webGLTexture),s.activeTexture(s.TEXTURE1),s.bindTexture(s.TEXTURE_2D,this.maskSource.texture.webGLTexture)},createProgram:function(t,e){var i=new w(this.gl,t,e);return this.glProgramWrappers.push(i),i},createVertexBuffer:function(t,e){var i=this.gl,s=new x(i,t,i.ARRAY_BUFFER,e);return this.glBufferWrappers.push(s),s},createAttribLocation:function(t,e){var i=new S(this.gl,t,e);return this.glAttribLocationWrappers.push(i),i},createUniformLocation:function(t,e){var i=new E(this.gl,t,e);return this.glUniformLocationWrappers.push(i),i},createIndexBuffer:function(t,e){var i=this.gl,s=new x(i,t,i.ELEMENT_ARRAY_BUFFER,e);return this.glBufferWrappers.push(s),s},deleteTexture:function(t){if(t)return r(this.glTextureWrappers,t),t.destroy(),this},deleteFramebuffer:function(t){return t?(r(this.fboStack,t),r(this.glFramebufferWrappers,t),t.destroy(),this):this},deleteProgram:function(t){return t&&(r(this.glProgramWrappers,t),t.destroy()),this},deleteAttribLocation:function(t){return t&&(r(this.glAttribLocationWrappers,t),t.destroy()),this},deleteUniformLocation:function(t){return t&&(r(this.glUniformLocationWrappers,t),t.destroy()),this},deleteBuffer:function(t){return t?(r(this.glBufferWrappers,t),t.destroy(),this):this},preRenderCamera:function(t){var e=t.x,i=t.y,s=t.width,r=t.height,o=t.backgroundColor;t.emit(n.PRE_RENDER,t),this.pipelines.preBatchCamera(t),this.pushScissor(e,i,s,r),t.mask&&(this.currentCameraMask.mask=t.mask,this.currentCameraMask.camera=t._maskCamera,t.mask.preRenderWebGL(this,t,t._maskCamera)),o.alphaGL>0&&this.pipelines.setMulti().drawFillRect(e,i,s,r,v.getTintFromFloats(o.blueGL,o.greenGL,o.redGL,1),o.alphaGL)},getCurrentStencilMask:function(){var t=null,e=this.maskStack,i=this.currentCameraMask;return e.length>0?t=e[e.length-1]:i.mask&&i.mask.isStencil&&(t=i),t},postRenderCamera:function(t){var e=t.flashEffect,i=t.fadeEffect;if(e.isRunning||i.isRunning||i.isComplete){var s=this.pipelines.setMulti();e.postRenderWebGL(s,v.getTintFromFloats),i.postRenderWebGL(s,v.getTintFromFloats)}t.dirty=!1,this.popScissor(),t.mask&&(this.currentCameraMask.mask=null,t.mask.postRenderWebGL(this,t._maskCamera)),this.pipelines.postBatchCamera(t),t.emit(n.POST_RENDER,t)},preRender:function(){if(!this.contextLost){var t=this.gl;if(t.bindFramebuffer(t.FRAMEBUFFER,null),this.config.clearBeforeRender){var e=this.config.backgroundColor;t.clearColor(e.redGL,e.greenGL,e.blueGL,e.alphaGL),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT|t.STENCIL_BUFFER_BIT)}t.enable(t.SCISSOR_TEST),this.currentScissor=this.defaultScissor,this.scissorStack.length=0,this.scissorStack.push(this.currentScissor),this.game.scene.customViewports&&t.scissor(0,this.drawingBufferHeight-this.height,this.width,this.height),this.currentMask.mask=null,this.currentCameraMask.mask=null,this.maskStack.length=0,this.emit(l.PRE_RENDER)}},render:function(t,e,i){if(!this.contextLost){var s=e.length;if(this.emit(l.RENDER,t,i),this.preRenderCamera(i),0===s)return this.setBlendMode(a.BlendModes.NORMAL),void this.postRenderCamera(i);this.currentType="";for(var r=this.currentMask,n=0;n{var s=i(83419),r=i(95428),n=i(95540),o=i(14500),a=new s({initialize:function(t,e,i,s,r){this.pipeline=t,this.name=e,this.renderer=t.renderer,this.gl=this.renderer.gl,this.fragSrc=s,this.vertSrc=i,this.program=this.renderer.createProgram(i,s),this.attributes,this.vertexComponentCount=0,this.vertexSize=0,this.uniforms={},this.createAttributes(r),this.createUniforms()},createAttributes:function(t){var e=0,i=0,s=[];this.vertexComponentCount=0;for(var r=0;r=0?(e.enableVertexAttribArray(f.webGLAttribLocation),e.vertexAttribPointer(f.webGLAttribLocation,h,l,p,s,u),a.enabled=!0,a.location=f):-1!==f.webGLAttribLocation&&e.disableVertexAttribArray(f.webGLAttribLocation)}else c?e.vertexAttribPointer(d.webGLAttribLocation,h,l,p,s,u):!c&&-1!==d&&d.webGLAttribLocation>-1&&(e.disableVertexAttribArray(d.webGLAttribLocation),a.location=-1)}return this},createUniforms:function(){var t,e,i,s=this.gl,r=this.program,n=this.uniforms,o=s.getProgramParameter(r.webGLProgram,s.ACTIVE_UNIFORMS);for(t=0;t0&&(e=e.substr(0,h),n.hasOwnProperty(e)||null!==(i=this.renderer.createUniformLocation(r,e))&&(n[e]={name:e,location:i,setter:null,value1:null,value2:null,value3:null,value4:null}))}}return this},syncUniforms:function(){var t=this.gl;for(var e in this.renderer.setProgram(this.program),this.uniforms){var i=this.uniforms[e];i.setter&&i.setter.call(t,i.location.webGLUniformLocation,i.value1,i.value2,i.value3,i.value4)}},hasUniform:function(t){return this.uniforms.hasOwnProperty(t)},resetUniform:function(t){var e=this.uniforms[t];return e&&(e.value1=null,e.value2=null,e.value3=null,e.value4=null),this},setUniform1:function(t,e,i,s){var r=this.uniforms[e];return r?((s||r.value1!==i)&&(r.setter||(r.setter=t),r.value1=i,this.renderer.setProgram(this.program),t.call(this.gl,r.location.webGLUniformLocation,i),this.pipeline.currentShader=this),this):this},setUniform2:function(t,e,i,s,r){var n=this.uniforms[e];return n?((r||n.value1!==i||n.value2!==s)&&(n.setter||(n.setter=t),n.value1=i,n.value2=s,this.renderer.setProgram(this.program),t.call(this.gl,n.location.webGLUniformLocation,i,s),this.pipeline.currentShader=this),this):this},setUniform3:function(t,e,i,s,r,n){var o=this.uniforms[e];return o?((n||o.value1!==i||o.value2!==s||o.value3!==r)&&(o.setter||(o.setter=t),o.value1=i,o.value2=s,o.value3=r,this.renderer.setProgram(this.program),t.call(this.gl,o.location.webGLUniformLocation,i,s,r),this.pipeline.currentShader=this),this):this},setUniform4:function(t,e,i,s,r,n,o){var a=this.uniforms[e];return a?((o||a.value1!==i||a.value2!==s||a.value3!==r||a.value4!==n)&&(a.setter||(a.setter=t),a.value1=i,a.value2=s,a.value3=r,a.value4=n,this.renderer.setProgram(this.program),t.call(this.gl,a.location.webGLUniformLocation,i,s,r,n),this.pipeline.currentShader=this),this):this},setBoolean:function(t,e){return this.setUniform1(this.gl.uniform1i,t,Number(e))},set1f:function(t,e){return this.setUniform1(this.gl.uniform1f,t,e)},set2f:function(t,e,i){return this.setUniform2(this.gl.uniform2f,t,e,i)},set3f:function(t,e,i,s){return this.setUniform3(this.gl.uniform3f,t,e,i,s)},set4f:function(t,e,i,s,r){return this.setUniform4(this.gl.uniform4f,t,e,i,s,r)},set1fv:function(t,e){return this.setUniform1(this.gl.uniform1fv,t,e,!0)},set2fv:function(t,e){return this.setUniform1(this.gl.uniform2fv,t,e,!0)},set3fv:function(t,e){return this.setUniform1(this.gl.uniform3fv,t,e,!0)},set4fv:function(t,e){return this.setUniform1(this.gl.uniform4fv,t,e,!0)},set1iv:function(t,e){return this.setUniform1(this.gl.uniform1iv,t,e,!0)},set2iv:function(t,e){return this.setUniform1(this.gl.uniform2iv,t,e,!0)},set3iv:function(t,e){return this.setUniform1(this.gl.uniform3iv,t,e,!0)},set4iv:function(t,e){return this.setUniform1(this.gl.uniform4iv,t,e,!0)},set1i:function(t,e){return this.setUniform1(this.gl.uniform1i,t,e)},set2i:function(t,e,i){return this.setUniform2(this.gl.uniform2i,t,e,i)},set3i:function(t,e,i,s){return this.setUniform3(this.gl.uniform3i,t,e,i,s)},set4i:function(t,e,i,s,r){return this.setUniform4(this.gl.uniform4i,t,e,i,s,r)},setMatrix2fv:function(t,e,i){return this.setUniform2(this.gl.uniformMatrix2fv,t,e,i,!0)},setMatrix3fv:function(t,e,i){return this.setUniform2(this.gl.uniformMatrix3fv,t,e,i,!0)},setMatrix4fv:function(t,e,i){return this.setUniform2(this.gl.uniformMatrix4fv,t,e,i,!0)},createProgram:function(t,e){return void 0===t&&(t=this.vertSrc),void 0===e&&(e=this.fragSrc),this.program&&this.renderer.deleteProgram(this.program),this.vertSrc=t,this.fragSrc=e,this.program=this.renderer.createProgram(t,e),this.createUniforms(),this.rebind()},destroy:function(){var t=this.renderer;r(this.uniforms,(function(e){t.deleteUniformLocation(e.location)})),this.uniforms=null,r(this.attributes,(function(e){t.deleteAttribLocation(e.location)})),this.attributes=null,t.deleteProgram(this.program),this.pipeline=null,this.renderer=null,this.gl=null,this.program=null}});t.exports=a},14500:t=>{t.exports={BYTE:{enum:5120,size:1},UNSIGNED_BYTE:{enum:5121,size:1},SHORT:{enum:5122,size:2},UNSIGNED_SHORT:{enum:5123,size:2},INT:{enum:5124,size:4},UNSIGNED_INT:{enum:5125,size:4},FLOAT:{enum:5126,size:4}}},4159:(t,e,i)=>{var s=i(14500),r=i(79291),n={PipelineManager:i(7530),Pipelines:i(96615),RenderTarget:i(32302),Utils:i(70554),WebGLPipeline:i(29100),WebGLRenderer:i(74797),WebGLShader:i(38683),Wrappers:i(9503)};n=r(!1,n,s),t.exports=n},31302:(t,e,i)=>{var s=i(83419),r=i(95540),n=i(78908),o=i(85191),a=i(14500),h=i(29100),l=new s({Extends:h,initialize:function(t){t.fragShader=r(t,"fragShader",n),t.vertShader=r(t,"vertShader",o),t.batchSize=r(t,"batchSize",1),t.vertices=r(t,"vertices",[-1,1,-1,-7,7,1]),t.attributes=r(t,"attributes",[{name:"inPosition",size:2,type:a.FLOAT}]),h.call(this,t)},boot:function(){h.prototype.boot.call(this),this.set1i("uMainSampler",0),this.set1i("uMaskSampler",1)},resize:function(t,e){h.prototype.resize.call(this,t,e),this.set2f("uResolution",t,e)},beginMask:function(t,e,i){this.renderer.beginBitmapMask(t,i)},endMask:function(t,e,i){var s=this.gl,r=this.renderer,n=t.bitmapMask;n&&s&&(r.drawBitmapMask(n,e,this),i&&this.set2f("uResolution",i.width,i.height),this.set1i("uInvertMaskAlpha",t.invertAlpha),s.drawArrays(this.topology,0,3),i&&this.set2f("uResolution",this.width,this.height),s.bindTexture(s.TEXTURE_2D,null))}});t.exports=l},92651:(t,e,i)=>{var s=i(83419),r=i(58918),n=i(14811),o=i(95540),a=i(43558),h=i(89350),l=i(70554),u=new s({Extends:a,initialize:function(t){t.shaders=[l.setGlowQuality(h.FXGlowFrag,t.game),h.FXShadowFrag,h.FXPixelateFrag,h.FXVignetteFrag,h.FXShineFrag,h.FXBlurLowFrag,h.FXBlurMedFrag,h.FXBlurHighFrag,h.FXGradientFrag,h.FXBloomFrag,h.ColorMatrixFrag,h.FXCircleFrag,h.FXBarrelFrag,h.FXDisplacementFrag,h.FXWipeFrag,h.FXBokehFrag],a.call(this,t);var e=this.game;this.glow=new r.Glow(e),this.shadow=new r.Shadow(e),this.pixelate=new r.Pixelate(e),this.vignette=new r.Vignette(e),this.shine=new r.Shine(e),this.gradient=new r.Gradient(e),this.circle=new r.Circle(e),this.barrel=new r.Barrel(e),this.wipe=new r.Wipe(e),this.bokeh=new r.Bokeh(e);var i=[];i[n.GLOW]=this.onGlow,i[n.SHADOW]=this.onShadow,i[n.PIXELATE]=this.onPixelate,i[n.VIGNETTE]=this.onVignette,i[n.SHINE]=this.onShine,i[n.BLUR]=this.onBlur,i[n.GRADIENT]=this.onGradient,i[n.BLOOM]=this.onBloom,i[n.COLOR_MATRIX]=this.onColorMatrix,i[n.CIRCLE]=this.onCircle,i[n.BARREL]=this.onBarrel,i[n.DISPLACEMENT]=this.onDisplacement,i[n.WIPE]=this.onWipe,i[n.BOKEH]=this.onBokeh,this.fxHandlers=i,this.source,this.target,this.swap},onDraw:function(t,e,i){this.source=t,this.target=e,this.swap=i;var s=t.width,r=t.height,n=this.tempSprite,o=this.fxHandlers;if(n&&n.preFX)for(var a=n.preFX.list,h=0;h{var s=i(83419),r=i(95540),n=i(31063),o=i(57516),a=i(61340),h=i(26099),l=i(29100),u=new s({Extends:o,initialize:function(t){var e=r(t,"fragShader",n);t.fragShader=e.replace("%LIGHT_COUNT%",t.game.renderer.config.maxLights),o.call(this,t),this.inverseRotationMatrix=new Float32Array([1,0,0,0,1,0,0,0,1]),this.currentNormalMap,this.lightsActive=!0,this.tempVec2=new h,this._tempMatrix=new a,this._tempMatrix2=new a},boot:function(){l.prototype.boot.call(this)},onRender:function(t,e){var i=t.sys.lights;if(this.lightsActive=!1,i&&i.active){var s,r=i.getLights(e),n=r.length;this.lightsActive=!0;var o=this.renderer.height,a=e.matrix,h=this.tempVec2;for(this.set1i("uMainSampler",0),this.set1i("uNormSampler",1),this.set2f("uResolution",this.width/2,this.height/2),this.set4f("uCamera",e.x,e.y,e.rotation,e.zoom),this.set3f("uAmbientLightColor",i.ambientColor.r,i.ambientColor.g,i.ambientColor.b),this.set1i("uLightCount",n),s=0;s0&&this.flush();var e=this.inverseRotationMatrix;if(t){var i=-t,s=Math.cos(i),r=Math.sin(i);e[1]=r,e[3]=-r,e[0]=e[4]=s}else e[0]=e[4]=1,e[1]=e[3]=0;this.setMatrix3fv("uInverseRotationMatrix",!1,e),this.currentNormalMapRotation=t}},setTexture2D:function(t,e){var i=this.renderer;void 0===t&&(t=i.whiteTexture);var s=this.getNormalMap(e);this.isNewNormalMap(t,s)&&(this.flush(),this.createBatch(t),this.addTextureToBatch(s),this.currentNormalMap=s);var r=0;return e&&e.parentContainer?r=e.getWorldTransformMatrix(this._tempMatrix,this._tempMatrix2).rotationNormalized:e&&(r=e.rotation),this.setNormalMapRotation(r),0},setGameObject:function(t,e){void 0===e&&(e=t.frame);var i=e.glTexture,s=this.getNormalMap(t);if(this.isNewNormalMap(i,s)&&(this.flush(),this.createBatch(i),this.addTextureToBatch(s),this.currentNormalMap=s),t.parentContainer){var r=t.getWorldTransformMatrix(this._tempMatrix,this._tempMatrix2);this.setNormalMapRotation(r.rotationNormalized)}else this.setNormalMapRotation(t.rotation);return 0},isNewNormalMap:function(t,e){return this.currentTexture!==t||this.currentNormalMap!==e},getNormalMap:function(t){var e;return t?(t.displayTexture?e=t.displayTexture.dataSource[t.displayFrame.sourceIndex]:t.texture?e=t.texture.dataSource[t.frame.sourceIndex]:t.tileset&&(e=Array.isArray(t.tileset)?t.tileset[0].image.dataSource[0]:t.tileset.image.dataSource[0]),e?e.glTexture:this.renderer.normalTexture):this.renderer.normalTexture},batchSprite:function(t,e,i){this.lightsActive&&o.prototype.batchSprite.call(this,t,e,i)},batchTexture:function(t,e,i,s,r,n,a,h,l,u,c,d,p,f,g,m,v,y,x,w,T,b,S,E,C,A,_,P,R,M,k,L){this.lightsActive&&o.prototype.batchTexture.call(this,t,e,i,s,r,n,a,h,l,u,c,d,p,f,g,m,v,y,x,w,T,b,S,E,C,A,_,P,R,M,k,L)},batchTextureFrame:function(t,e,i,s,r,n,a){this.lightsActive&&o.prototype.batchTextureFrame.call(this,t,e,i,s,r,n,a)}});t.exports=u},56527:(t,e,i)=>{var s=i(83419),r=i(95540),n=i(57516),o=i(45561),a=i(60722),h=i(14500),l=i(29100),u=new s({Extends:n,initialize:function(t){t.fragShader=r(t,"fragShader",o),t.vertShader=r(t,"vertShader",a),t.attributes=r(t,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:h.UNSIGNED_BYTE,normalized:!0}]),t.forceZero=!0,t.resizeUniform="uResolution",n.call(this,t)},boot:function(){l.prototype.boot.call(this);var t=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",t.width,t.height),this.set1i("uRoundPixels",t.config.roundPixels)}});t.exports=u},57516:(t,e,i)=>{var s=i(83419),r=i(94811),n=i(95540),o=i(98840),a=i(44667),h=i(61340),l=i(70554),u=i(14500),c=i(29100),d=new s({Extends:c,initialize:function(t){var e=t.game.renderer,i=n(t,"fragShader",o);t.fragShader=l.parseFragmentShaderMaxTextures(i,e.maxTextures),t.vertShader=n(t,"vertShader",a),t.attributes=n(t,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:u.UNSIGNED_BYTE,normalized:!0}]),t.resizeUniform="uResolution",c.call(this,t),this._tempMatrix1=new h,this._tempMatrix2=new h,this._tempMatrix3=new h,this.calcMatrix=new h,this.tempTriangle=[{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0}],this.strokeTint={TL:0,TR:0,BL:0,BR:0},this.fillTint={TL:0,TR:0,BL:0,BR:0},this.currentFrame={u0:0,v0:0,u1:1,v1:1},this.firstQuad=[0,0,0,0,0],this.prevQuad=[0,0,0,0,0],this.polygonCache=[]},boot:function(){c.prototype.boot.call(this);var t=this.renderer;this.set1iv("uMainSampler",t.textureIndexes),this.set2f("uResolution",t.width,t.height),this.set1i("uRoundPixels",t.config.roundPixels)},batchSprite:function(t,e,i){this.manager.set(this,t);var s=this._tempMatrix1,r=this._tempMatrix2,n=this._tempMatrix3,o=t.frame,a=o.glTexture,h=o.u0,u=o.v0,c=o.u1,d=o.v1,p=o.x,f=o.y,g=o.cutWidth,m=o.cutHeight,v=o.customPivot,y=t.displayOriginX,x=t.displayOriginY,w=-y+p,T=-x+f;if(t.isCropped){var b=t._crop;b.flipX===t.flipX&&b.flipY===t.flipY||o.updateCropUVs(b,t.flipX,t.flipY),h=b.u0,u=b.v0,c=b.u1,d=b.v1,g=b.width,m=b.height,w=-y+(p=b.x),T=-x+(f=b.y)}var S=1,E=1;t.flipX&&(v||(w+=-o.realWidth+2*y),S=-1),t.flipY&&(v||(T+=-o.realHeight+2*x),E=-1);var C=t.x,A=t.y;r.applyITRS(C,A,t.rotation,t.scaleX*S,t.scaleY*E),s.copyFrom(e.matrix),i?(s.multiplyWithOffset(i,-e.scrollX*t.scrollFactorX,-e.scrollY*t.scrollFactorY),r.e=C,r.f=A):(r.e-=e.scrollX*t.scrollFactorX,r.f-=e.scrollY*t.scrollFactorY),s.multiply(r,n);var _=n.setQuad(w,T,w+g,T+m),P=l.getTintAppendFloatAlpha,R=e.alpha,M=P(t.tintTopLeft,R*t._alphaTL),k=P(t.tintTopRight,R*t._alphaTR),L=P(t.tintBottomLeft,R*t._alphaBL),O=P(t.tintBottomRight,R*t._alphaBR);this.shouldFlush(6)&&this.flush();var F=this.setGameObject(t,o);this.manager.preBatch(t),this.currentShader.set1i("uRoundPixels",e.roundPixels),this.batchQuad(t,_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],h,u,c,d,M,k,L,O,t.tintFill,a,F),this.manager.postBatch(t)},batchTexture:function(t,e,i,s,r,n,o,a,h,l,u,c,d,p,f,g,m,v,y,x,w,T,b,S,E,C,A,_,P,R,M,k,L){void 0===L&&(L=!1),this.manager.set(this,t);var O=this._tempMatrix1,F=this._tempMatrix2,D=this._tempMatrix3,I=v/i+A,B=y/s+_,N=(v+x)/i+A,U=(y+w)/s+_,Y=o,z=a,X=-g,G=-m;if(t.isCropped){var W=t._crop,V=W.width,H=W.height;Y=V,z=H,o=V,a=H;var j=v=W.x,q=y=W.y;c&&(j=x-W.x-V),d&&(q=w-W.y-H),I=j/i+A,B=q/s+_,N=(j+V)/i+A,U=(q+H)/s+_,X=-g+v,G=-m+y}c&&(Y*=-1,X+=o),(d^=!M&&e.isRenderTexture?1:0)&&(z*=-1,G+=a),F.applyITRS(r,n,u,h,l),O.copyFrom(P.matrix),R?(O.multiplyWithOffset(R,-P.scrollX*p,-P.scrollY*f),F.e=r,F.f=n):(F.e-=P.scrollX*p,F.f-=P.scrollY*f),O.multiply(F,D);var K=D.setQuad(X,G,X+Y,G+z);null==k&&(k=this.setTexture2D(e)),t&&!L&&this.manager.preBatch(t),this.currentShader.set1i("uRoundPixels",P.roundPixels),this.batchQuad(t,K[0],K[1],K[2],K[3],K[4],K[5],K[6],K[7],I,B,N,U,T,b,S,E,C,e,k),t&&!L&&this.manager.postBatch(t)},batchTextureFrame:function(t,e,i,s,r,n,o){this.manager.set(this);var a=this._tempMatrix1.copyFrom(n),h=this._tempMatrix2;o?a.multiply(o,h):h=a;var u=h.setQuad(e,i,e+t.width,i+t.height),c=this.setTexture2D(t.source.glTexture);s=l.getTintAppendFloatAlpha(s,r),this.batchQuad(null,u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],t.u0,t.v0,t.u1,t.v1,s,s,s,s,0,t.glTexture,c)},batchFillRect:function(t,e,i,s,r,n){this.renderer.pipelines.set(this);var o=this.calcMatrix;n&&n.multiply(r,o);var a=o.setQuad(t,e,t+i,e+s),h=this.fillTint;this.batchQuad(null,a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],0,0,1,1,h.TL,h.TR,h.BL,h.BR,2)},batchFillTriangle:function(t,e,i,s,r,n,o,a){this.renderer.pipelines.set(this);var h=this.calcMatrix;a&&a.multiply(o,h);var l=h.getX(t,e),u=h.getY(t,e),c=h.getX(i,s),d=h.getY(i,s),p=h.getX(r,n),f=h.getY(r,n),g=this.fillTint;this.currentShader.set1i("uRoundPixels",!1),this.batchTri(null,l,u,c,d,p,f,0,0,1,1,g.TL,g.TR,g.BL,2)},batchStrokeTriangle:function(t,e,i,s,r,n,o,a,h){var l=this.tempTriangle;l[0].x=t,l[0].y=e,l[0].width=o,l[1].x=i,l[1].y=s,l[1].width=o,l[2].x=r,l[2].y=n,l[2].width=o,l[3].x=t,l[3].y=e,l[3].width=o,this.batchStrokePath(l,o,!1,a,h)},batchFillPath:function(t,e,i){this.renderer.pipelines.set(this);var s=this.calcMatrix;i&&i.multiply(e,s);for(var n,o,a=t.length,h=this.polygonCache,l=this.fillTint.TL,u=this.fillTint.TR,c=this.fillTint.BL,d=0;d0&&Y[4]?this.batchQuad(null,O,F,R,M,Y[0],Y[1],Y[2],Y[3],0,0,1,1,I,B,N,U,2):(z[0]=O,z[1]=F,z[2]=R,z[3]=M,z[4]=1),h&&z[4]?this.batchQuad(null,_,P,k,L,z[0],z[1],z[2],z[3],0,0,1,1,I,B,N,U,2):(Y[0]=_,Y[1]=P,Y[2]=k,Y[3]=L,Y[4]=1)}}},destroy:function(){return this._tempMatrix1.destroy(),this._tempMatrix2.destroy(),this._tempMatrix3.destroy(),this._tempMatrix1=null,this._tempMatrix1=null,this._tempMatrix1=null,c.prototype.destroy.call(this),this}});t.exports=d},43439:(t,e,i)=>{var s=i(83419),r=i(95540),n=i(4127),o=i(89924),a=i(29100),h=new s({Extends:a,initialize:function(t){t.vertShader=r(t,"vertShader",o),t.fragShader=r(t,"fragShader",n),t.attributes=r(t,"attributes",[{name:"inPosition",size:2},{name:"inLightPosition",size:2},{name:"inLightRadius"},{name:"inLightAttenuation"},{name:"inLightColor",size:4}]),a.call(this,t)},onRender:function(t,e){this.set2f("uResolution",this.width,this.height),this.set1f("uCameraZoom",e.zoom)},batchPointLight:function(t,e,i,s,r,n,o,a,h,l,u,c){var d=t.color,p=t.intensity,f=t.radius,g=t.attenuation,m=d.r*p,v=d.g*p,y=d.b*p,x=e.alpha*t.alpha;this.shouldFlush(6)&&this.flush(),this.currentBatch||this.setTexture2D(),this.batchLightVert(i,s,u,c,f,g,m,v,y,x),this.batchLightVert(r,n,u,c,f,g,m,v,y,x),this.batchLightVert(o,a,u,c,f,g,m,v,y,x),this.batchLightVert(i,s,u,c,f,g,m,v,y,x),this.batchLightVert(o,a,u,c,f,g,m,v,y,x),this.batchLightVert(h,l,u,c,f,g,m,v,y,x),this.currentBatch.count=this.vertexCount-this.currentBatch.start},batchLightVert:function(t,e,i,s,r,n,o,a,h,l){var u=this.vertexViewF32,c=this.vertexCount*this.currentShader.vertexComponentCount-1;u[++c]=t,u[++c]=e,u[++c]=i,u[++c]=s,u[++c]=r,u[++c]=n,u[++c]=o,u[++c]=a,u[++c]=h,u[++c]=l,this.vertexCount++}});t.exports=h},84057:(t,e,i)=>{var s=i(83419),r=i(89422),n=i(95540),o=i(27681),a=i(49627),h=i(29100),l=new s({Extends:h,initialize:function(t){t.renderTarget=n(t,"renderTarget",1),t.fragShader=n(t,"fragShader",o),t.vertShader=n(t,"vertShader",a),t.attributes=n(t,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),t.batchSize=1,t.vertices=[-1,-1,0,0,-1,1,0,1,1,1,1,1,-1,-1,0,0,1,1,1,1,1,-1,1,0],h.call(this,t),this.isPostFX=!0,this.gameObject,this.controller,this.colorMatrix=new r,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2,this.renderer.isBooted&&(this.manager=this.renderer.pipelines)},bootFX:function(){h.prototype.boot.call(this);var t=this.manager.UTILITY_PIPELINE;this.fullFrame1=t.fullFrame1,this.fullFrame2=t.fullFrame2,this.halfFrame1=t.halfFrame1,this.halfFrame2=t.halfFrame2;var e=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",e.width,e.height),this.set1i("uRoundPixels",e.config.roundPixels);for(var i=this.renderTargets,s=0;s{var s=i(10312),r=i(67502),n=i(83419),o=i(96293),a=i(95540),h=i(57516),l=i(27681),u=i(87841),c=i(32302),d=i(45561),p=i(60722),f=i(29100),g=new n({Extends:h,initialize:function(t){var e=a(t,"fragShader",l),i=a(t,"vertShader",p),s=a(t,"drawShader",l),r=[{name:"DrawSprite",fragShader:d,vertShader:p},{name:"CopySprite",fragShader:e,vertShader:i},{name:"DrawGame",fragShader:s,vertShader:p},{name:"ColorMatrix",fragShader:o}],n=a(t,"shaders",[]);t.shaders=r.concat(n),t.vertShader||(t.vertShader=i),t.batchSize=1,h.call(this,t),this.isPreFX=!0,this.customMainSampler=null,this.drawSpriteShader,this.copyShader,this.gameShader,this.colorMatrixShader,this.quadVertexData,this.quadVertexBuffer,this.quadVertexViewF32,this.spriteBounds=new u,this.targetBounds=new u,this.fsTarget,this.tempSprite,this.renderer.isBooted&&(this.manager=this.renderer.pipelines,this.boot())},boot:function(){f.prototype.boot.call(this);var t=this.shaders,e=this.renderer;this.drawSpriteShader=t[0],this.copyShader=t[1],this.gameShader=t[2],this.colorMatrixShader=t[3],this.fsTarget=new c(e,e.width,e.height,1,0,!0,!0),this.renderTargets=this.manager.renderTargets.concat(this.fsTarget);var i=new ArrayBuffer(168);this.quadVertexData=i,this.quadVertexViewF32=new Float32Array(i),this.quadVertexBuffer=e.createVertexBuffer(i,this.gl.STATIC_DRAW),this.onResize(e.width,e.height),this.currentShader=this.copyShader,this.set2f("uResolution",e.width,e.height),this.set1i("uRoundPixels",e.config.roundPixels)},onResize:function(t,e){var i=this.quadVertexViewF32;i[1]=e,i[22]=e,i[14]=t,i[28]=t,i[35]=t,i[36]=e},batchQuad:function(t,e,i,s,n,o,a,h,l,u,c,d,p,f,g,m,v,y,x){var w=Math.min(e,s,o,h),T=Math.min(i,n,a,l),b=Math.max(e,s,o,h)-w,S=Math.max(i,n,a,l)-T,E=this.spriteBounds.setTo(w,T,b,S),C=t?t.preFX.padding:0,A=b+2*C,_=S+2*C,P=Math.abs(Math.max(A,_)),R=this.manager.getRenderTarget(P),M=this.targetBounds.setTo(0,0,R.width,R.height);r(M,E.centerX,E.centerY),this.tempSprite=t;var k=this.gl,L=this.renderer;L.clearStencilMask(),this.setShader(this.drawSpriteShader),this.set1i("uMainSampler",0),this.set2f("uResolution",L.width,L.height),this.set1i("uRoundPixels",L.config.roundPixels),this.flipProjectionMatrix(!0),t&&(this.onDrawSprite(t,R),t.preFX.onFX(this));var O=this.fsTarget;return this.flush(),k.viewport(0,0,L.width,L.height),k.bindFramebuffer(k.FRAMEBUFFER,O.framebuffer.webGLFramebuffer),k.framebufferTexture2D(k.FRAMEBUFFER,k.COLOR_ATTACHMENT0,k.TEXTURE_2D,O.texture.webGLTexture,0),k.clearColor(0,0,0,0),k.clear(k.COLOR_BUFFER_BIT),this.setTexture2D(x),this.batchVert(e,i,u,c,0,y,f),this.batchVert(s,n,u,p,0,y,m),this.batchVert(o,a,d,p,0,y,v),this.batchVert(e,i,u,c,0,y,f),this.batchVert(o,a,d,p,0,y,v),this.batchVert(h,l,d,c,0,y,g),this.flush(),this.flipProjectionMatrix(!1),k.activeTexture(k.TEXTURE0),k.bindTexture(k.TEXTURE_2D,R.texture.webGLTexture),k.copyTexSubImage2D(k.TEXTURE_2D,0,0,0,M.x,M.y,M.width,M.height),k.bindFramebuffer(k.FRAMEBUFFER,null),k.bindTexture(k.TEXTURE_2D,null),this.onBatch(t),this.currentShader=this.copyShader,this.onDraw(R,this.manager.getSwapRenderTarget(),this.manager.getAltSwapRenderTarget()),!0},onDrawSprite:function(){},onCopySprite:function(){},copySprite:function(t,e,i,r,n,o,a){void 0===i&&(i=!0),void 0===r&&(r=!0),void 0===n&&(n=!1),void 0===a&&(a=this.copyShader);var h=this.gl,l=this.tempSprite;o&&(a=this.colorMatrixShader),this.currentShader=a;var u=this.setVertexBuffer(this.quadVertexBuffer);a.bind(u,!1);var c=this.renderer;if(this.set1i("uMainSampler",0),this.set2f("uResolution",c.width,c.height),this.set1i("uRoundPixels",c.config.roundPixels),l.preFX.onFXCopy(this),this.onCopySprite(t,e,l),o&&(this.set1fv("uColorMatrix",o.getData()),this.set1f("uAlpha",o.alpha)),h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,t.texture.webGLTexture),t.height>e.height)h.viewport(0,0,t.width,t.height),this.setTargetUVs(t,e);else{var d=e.height-t.height;h.viewport(0,d,t.width,t.height),this.resetUVs()}if(h.bindFramebuffer(h.FRAMEBUFFER,e.framebuffer.webGLFramebuffer),h.framebufferTexture2D(h.FRAMEBUFFER,h.COLOR_ATTACHMENT0,h.TEXTURE_2D,e.texture.webGLTexture,0),i&&(h.clearColor(0,0,0,Number(!r)),h.clear(h.COLOR_BUFFER_BIT)),n){var p=this.renderer.currentBlendMode;this.renderer.setBlendMode(s.ERASE)}h.bufferData(h.ARRAY_BUFFER,this.quadVertexData,h.STATIC_DRAW),h.drawArrays(h.TRIANGLES,0,6),n&&this.renderer.setBlendMode(p),h.bindFramebuffer(h.FRAMEBUFFER,null)},copy:function(t,e){var i=this.gl;this.set1i("uMainSampler",0),i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,t.texture.webGLTexture),i.viewport(0,0,t.width,t.height),this.setUVs(0,0,0,1,1,1,1,0),i.bindFramebuffer(i.FRAMEBUFFER,e.framebuffer.webGLFramebuffer),i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,e.texture.webGLTexture,0),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.bufferData(i.ARRAY_BUFFER,this.quadVertexData,i.STATIC_DRAW),i.drawArrays(i.TRIANGLES,0,6),i.bindFramebuffer(i.FRAMEBUFFER,null)},blendFrames:function(t,e,i,s,r){this.manager.blendFrames(t,e,i,s,r)},blendFramesAdditive:function(t,e,i,s,r){this.manager.blendFramesAdditive(t,e,i,s,r)},drawToGame:function(t){this.currentShader=null,this.setShader(this.copyShader),this.bindAndDraw(t)},copyToGame:function(t){this.currentShader=null,this.setShader(this.gameShader),this.bindAndDraw(t)},bindAndDraw:function(t){var e=this.gl,i=this.renderer;this.set1i("uMainSampler",0),this.customMainSampler?this.setTexture2D(this.customMainSampler):this.setTexture2D(t.texture);var s=this._tempMatrix1.loadIdentity(),r=this.targetBounds.x,n=this.targetBounds.y,o=r+t.width,a=n+t.height,h=s.getX(r,n),l=s.getX(r,a),u=s.getX(o,a),c=s.getX(o,n),d=s.getY(r,n),p=s.getY(r,a),f=s.getY(o,a),g=s.getY(o,n),m=16777215;this.batchVert(h,d,0,0,0,0,m),this.batchVert(l,p,0,1,0,0,m),this.batchVert(u,f,1,1,0,0,m),this.batchVert(h,d,0,0,0,0,m),this.batchVert(u,f,1,1,0,0,m),this.batchVert(c,g,1,0,0,0,m),i.restoreFramebuffer(!1,!0),i.currentFramebuffer||e.viewport(0,0,i.width,i.height),i.restoreStencilMask(),this.flush(),this.tempSprite=null},onDraw:function(t){this.drawToGame(t)},setUVs:function(t,e,i,s,r,n,o,a){var h=this.quadVertexViewF32;h[2]=t,h[3]=e,h[9]=i,h[10]=s,h[16]=r,h[17]=n,h[23]=t,h[24]=e,h[30]=r,h[31]=n,h[37]=o,h[38]=a},setTargetUVs:function(t,e){var i=e.height/t.height;i=i>.5?.5-(i-.5):.5-i+.5,this.setUVs(0,i,0,1+i,1,1+i,1,i)},resetUVs:function(){this.setUVs(0,0,0,1,1,1,1,0)},destroy:function(){return this.renderer.deleteBuffer(this.quadVertexBuffer),this.drawSpriteShader=null,this.copyShader=null,this.gameShader=null,this.colorMatrixShader=null,this.quadVertexData=null,this.quadVertexBuffer=null,this.quadVertexViewF32=null,this.fsTarget=null,this.tempSprite=null,h.prototype.destroy.call(this),this}});t.exports=g},81041:(t,e,i)=>{var s=i(83419),r=i(95540),n=i(57516),o=new s({Extends:n,initialize:function(t){t.topology=5,t.batchSize=r(t,"batchSize",256),n.call(this,t)}});t.exports=o},12385:(t,e,i)=>{var s=i(83419),r=i(95540),n=i(57516),o=i(45561),a=i(60722),h=i(29100),l=new s({Extends:n,initialize:function(t){t.fragShader=r(t,"fragShader",o),t.vertShader=r(t,"vertShader",a),t.forceZero=!0,n.call(this,t)},boot:function(){h.prototype.boot.call(this);var t=this.renderer;this.set1i("uMainSampler",0),this.set2f("uResolution",t.width,t.height),this.set1i("uRoundPixels",t.config.roundPixels)}});t.exports=l},7589:(t,e,i)=>{var s=i(35407),r=i(10312),n=i(83419),o=i(89422),a=i(96293),h=i(36682),l=i(95540),u=i(48247),c=i(49627),d=i(29100),p=new n({Extends:d,initialize:function(t){t.renderTarget=l(t,"renderTarget",[{scale:1,autoResize:!0},{scale:1,autoResize:!0},{scale:.5,autoResize:!0},{scale:.5,autoResize:!0}]),t.vertShader=l(t,"vertShader",c),t.shaders=l(t,"shaders",[{name:"Copy",fragShader:h},{name:"AddBlend",fragShader:s},{name:"LinearBlend",fragShader:u},{name:"ColorMatrix",fragShader:a}]),t.attributes=l(t,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),t.vertices=[-1,-1,0,0,-1,1,0,1,1,1,1,1,-1,-1,0,0,1,1,1,1,1,-1,1,0],t.batchSize=1,d.call(this,t),this.colorMatrix=new o,this.copyShader,this.addShader,this.linearShader,this.colorMatrixShader,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2},boot:function(){d.prototype.boot.call(this);var t=this.shaders,e=this.renderTargets;this.copyShader=t[0],this.addShader=t[1],this.linearShader=t[2],this.colorMatrixShader=t[3],this.fullFrame1=e[0],this.fullFrame2=e[1],this.halfFrame1=e[2],this.halfFrame2=e[3]},copyFrame:function(t,e,i,s,r){void 0===i&&(i=1),void 0===s&&(s=!0),void 0===r&&(r=!0);var n=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",i),n.activeTexture(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,t.texture.webGLTexture),e?(n.viewport(0,0,e.width,e.height),n.bindFramebuffer(n.FRAMEBUFFER,e.framebuffer.webGLFramebuffer),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,e.texture.webGLTexture,0)):n.viewport(0,0,t.width,t.height),s&&(r?n.clearColor(0,0,0,0):n.clearColor(0,0,0,1),n.clear(n.COLOR_BUFFER_BIT)),n.bufferData(n.ARRAY_BUFFER,this.vertexData,n.STATIC_DRAW),n.drawArrays(n.TRIANGLES,0,6),n.bindFramebuffer(n.FRAMEBUFFER,null),n.bindTexture(n.TEXTURE_2D,null)},blitFrame:function(t,e,i,s,n,o,a){void 0===i&&(i=1),void 0===s&&(s=!0),void 0===n&&(n=!0),void 0===o&&(o=!1),void 0===a&&(a=!1);var h=this.gl;if(this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",i),h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,t.texture.webGLTexture),t.height>e.height)h.viewport(0,0,t.width,t.height),this.setTargetUVs(t,e);else{var l=e.height-t.height;h.viewport(0,l,t.width,t.height)}if(h.bindFramebuffer(h.FRAMEBUFFER,e.framebuffer.webGLFramebuffer),h.framebufferTexture2D(h.FRAMEBUFFER,h.COLOR_ATTACHMENT0,h.TEXTURE_2D,e.texture.webGLTexture,0),s&&(n?h.clearColor(0,0,0,0):h.clearColor(0,0,0,1),h.clear(h.COLOR_BUFFER_BIT)),o){var u=this.renderer.currentBlendMode;this.renderer.setBlendMode(r.ERASE)}a&&this.flipY(),h.bufferData(h.ARRAY_BUFFER,this.vertexData,h.STATIC_DRAW),h.drawArrays(h.TRIANGLES,0,6),o&&this.renderer.setBlendMode(u),h.bindFramebuffer(h.FRAMEBUFFER,null),h.bindTexture(h.TEXTURE_2D,null),this.resetUVs()},copyFrameRect:function(t,e,i,s,r,n,o,a){void 0===o&&(o=!0),void 0===a&&(a=!0);var h=this.gl;h.bindFramebuffer(h.FRAMEBUFFER,t.framebuffer.webGLFramebuffer),h.framebufferTexture2D(h.FRAMEBUFFER,h.COLOR_ATTACHMENT0,h.TEXTURE_2D,t.texture.webGLTexture,0),o&&(a?h.clearColor(0,0,0,0):h.clearColor(0,0,0,1),h.clear(h.COLOR_BUFFER_BIT)),h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,e.texture.webGLTexture),h.copyTexSubImage2D(h.TEXTURE_2D,0,0,0,i,s,r,n),h.bindFramebuffer(h.FRAMEBUFFER,null),h.bindTexture(h.TEXTURE_2D,null)},copyToGame:function(t){var e=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",1),this.renderer.popFramebuffer(),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,t.texture.webGLTexture),e.bufferData(e.ARRAY_BUFFER,this.vertexData,e.STATIC_DRAW),e.drawArrays(e.TRIANGLES,0,6)},drawFrame:function(t,e,i,s){void 0===i&&(i=!0),void 0===s&&(s=this.colorMatrix);var r=this.gl;this.setShader(this.colorMatrixShader),this.set1i("uMainSampler",0),this.set1fv("uColorMatrix",s.getData()),this.set1f("uAlpha",s.alpha),r.activeTexture(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,t.texture.webGLTexture),e?(r.viewport(0,0,e.width,e.height),r.bindFramebuffer(r.FRAMEBUFFER,e.framebuffer.webGLFramebuffer),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,e.texture.webGLTexture,0)):r.viewport(0,0,t.width,t.height),i?r.clearColor(0,0,0,0):r.clearColor(0,0,0,1),r.clear(r.COLOR_BUFFER_BIT),r.bufferData(r.ARRAY_BUFFER,this.vertexData,r.STATIC_DRAW),r.drawArrays(r.TRIANGLES,0,6),r.bindFramebuffer(r.FRAMEBUFFER,null),r.bindTexture(r.TEXTURE_2D,null)},blendFrames:function(t,e,i,s,r,n){void 0===s&&(s=1),void 0===r&&(r=!0),void 0===n&&(n=this.linearShader);var o=this.gl;this.setShader(n),this.set1i("uMainSampler1",0),this.set1i("uMainSampler2",1),this.set1f("uStrength",s),o.activeTexture(o.TEXTURE0),o.bindTexture(o.TEXTURE_2D,t.texture.webGLTexture),o.activeTexture(o.TEXTURE1),o.bindTexture(o.TEXTURE_2D,e.texture.webGLTexture),i?(o.bindFramebuffer(o.FRAMEBUFFER,i.framebuffer.webGLFramebuffer),o.framebufferTexture2D(o.FRAMEBUFFER,o.COLOR_ATTACHMENT0,o.TEXTURE_2D,i.texture.webGLTexture,0),o.viewport(0,0,i.width,i.height)):o.viewport(0,0,t.width,t.height),r?o.clearColor(0,0,0,0):o.clearColor(0,0,0,1),o.clear(o.COLOR_BUFFER_BIT),o.bufferData(o.ARRAY_BUFFER,this.vertexData,o.STATIC_DRAW),o.drawArrays(o.TRIANGLES,0,6),o.bindFramebuffer(o.FRAMEBUFFER,null),o.bindTexture(o.TEXTURE_2D,null)},blendFramesAdditive:function(t,e,i,s,r){this.blendFrames(t,e,i,s,r,this.addShader)},clearFrame:function(t,e){void 0===e&&(e=!0);var i=this.gl;i.viewport(0,0,t.width,t.height),i.bindFramebuffer(i.FRAMEBUFFER,t.framebuffer.webGLFramebuffer),e?i.clearColor(0,0,0,0):i.clearColor(0,0,0,1),i.clear(i.COLOR_BUFFER_BIT);var s=this.renderer.currentFramebuffer;i.bindFramebuffer(i.FRAMEBUFFER,s.webGLFramebuffer)},setUVs:function(t,e,i,s,r,n,o,a){var h=this.vertexViewF32;h[2]=t,h[3]=e,h[6]=i,h[7]=s,h[10]=r,h[11]=n,h[14]=t,h[15]=e,h[18]=r,h[19]=n,h[22]=o,h[23]=a},setTargetUVs:function(t,e){var i=e.height/t.height;i=i>.5?.5-(i-.5):.5-i+.5,this.setUVs(0,i,0,1+i,1,1+i,1,i)},flipX:function(){this.setUVs(1,0,1,1,0,1,0,0)},flipY:function(){this.setUVs(0,1,0,0,1,0,1,1)},resetUVs:function(){this.setUVs(0,0,0,1,1,1,1,0)}});t.exports=p},36060:t=>{t.exports={BITMAPMASK_PIPELINE:"BitmapMaskPipeline",LIGHT_PIPELINE:"Light2D",POINTLIGHT_PIPELINE:"PointLightPipeline",SINGLE_PIPELINE:"SinglePipeline",MULTI_PIPELINE:"MultiPipeline",ROPE_PIPELINE:"RopePipeline",GRAPHICS_PIPELINE:"GraphicsPipeline",POSTFX_PIPELINE:"PostFXPipeline",UTILITY_PIPELINE:"UtilityPipeline",MOBILE_PIPELINE:"MobilePipeline",FX_PIPELINE:"FxPipeline"}},84817:t=>{t.exports="pipelineafterflush"},36712:t=>{t.exports="pipelinebeforeflush"},40285:t=>{t.exports="pipelinebind"},65918:t=>{t.exports="pipelineboot"},92852:t=>{t.exports="pipelinedestroy"},56072:t=>{t.exports="pipelinerebind"},57566:t=>{t.exports="pipelineresize"},77085:(t,e,i)=>{t.exports={AFTER_FLUSH:i(84817),BEFORE_FLUSH:i(36712),BIND:i(40285),BOOT:i(65918),DESTROY:i(92852),REBIND:i(56072),RESIZE:i(57566)}},54812:(t,e,i)=>{var s=i(83419),r=i(99155),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.amount=1},onPreRender:function(t,e){t=this.getController(t),this.set1f("amount",t.amount,e)}});t.exports=o},67329:(t,e,i)=>{var s=i(83419),r=i(24400),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.steps=4,this.offsetX=1,this.offsetY=1,this.blurStrength=1,this.strength=1,this.glcolor=[1,1,1]},onPreRender:function(t){t=this.getController(t),this.set1f("strength",t.blurStrength),this.set3fv("color",t.glcolor)},onDraw:function(t){var e=this.getController(),i=this.fullFrame1,s=this.fullFrame2;this.copyFrame(t,s);for(var r=2/t.width*e.offsetX,n=2/t.height*e.offsetY,o=0;o{var s=i(83419),r=i(41514),n=i(51078),o=i(94328),a=i(84057),h=new s({Extends:a,initialize:function(t){a.call(this,{game:t,shaders:[{name:"Gaussian5",fragShader:r},{name:"Gaussian9",fragShader:n},{name:"Gaussian13",fragShader:o}]}),this.activeShader=this.shaders[0],this.x=2,this.y=2,this.steps=4,this.strength=1,this.glcolor=[1,1,1]},setQualityLow:function(){return this.activeShader=this.shaders[0],this},setQualityMedium:function(){return this.activeShader=this.shaders[1],this},setQualityHigh:function(){return this.activeShader=this.shaders[2],this},onDraw:function(t){var e=this.getController(),i=this.gl,s=this.fullFrame1,r=i.getParameter(i.FRAMEBUFFER_BINDING);this.bind(this.shaders[e.quality]),i.activeTexture(i.TEXTURE0),i.viewport(0,0,t.width,t.height),this.set1i("uMainSampler",0),this.set2f("resolution",t.width,t.height),this.set1f("strength",e.strength),this.set3fv("color",e.glcolor);for(var n=0;n{var s=i(83419),r=i(90610),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.isTiltShift=!1,this.strength=1,this.blurX=1,this.blurY=1,this.radius=.5,this.amount=1,this.contrast=.2},onPreRender:function(t,e,i,s){t=this.getController(t),this.set1f("radius",t.radius,e),this.set1f("amount",t.amount,e),this.set1f("contrast",t.contrast,e),this.set1f("strength",t.strength,e),this.set2f("blur",t.blurX,t.blurY,e),this.setBoolean("isTiltShift",t.isTiltShift,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=o},89428:(t,e,i)=>{var s=i(83419),r=i(91899),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.scale=1,this.feather=.005,this.thickness=8,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4]},onPreRender:function(t,e,i,s){t=this.getController(t),this.set1f("scale",t.scale,e),this.set1f("feather",t.feather,e),this.set1f("thickness",t.thickness,e),this.set3fv("color",t.glcolor,e),this.set4fv("backgroundColor",t.glcolor2,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=o},88904:(t,e,i)=>{var s=i(83419),r=i(84057),n=new s({Extends:r,initialize:function(t){r.call(this,{game:t})},onDraw:function(t){var e=this.fullFrame1;this.controller?this.manager.drawFrame(t,e,!0,this.controller):this.drawFrame(t,e),this.copyToGame(e)}});t.exports=n},63563:(t,e,i)=>{var s=i(83419),r=i(47838),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.x=.005,this.y=.005,this.glTexture},onBoot:function(){this.setTexture("__WHITE")},setTexture:function(t){var e=this.game.textures.getFrame(t);e&&(this.glTexture=e.glTexture)},onDraw:function(t){var e=this.getController(),i=this.fullFrame1;this.bind(),this.set1i("uMainSampler",0),this.set1i("uDisplacementSampler",1),this.set2f("amount",e.x,e.y),this.bindTexture(e.glTexture,1),this.copySprite(t,i),this.copyToGame(i)}});t.exports=o},94045:(t,e,i)=>{var s=i(83419),r=i(95540),n=i(98656),o=i(84057),a=i(70554),h=new s({Extends:o,initialize:function(t,e){var i=r(e,"quality",.1),s=r(e,"distance",10);o.call(this,{game:t,fragShader:a.setGlowQuality(n,t,i,s)}),this.outerStrength=4,this.innerStrength=0,this.knockout=!1,this.glcolor=[1,1,1,1]},onPreRender:function(t,e,i,s){t=this.getController(t),this.set1f("outerStrength",t.outerStrength,e),this.set1f("innerStrength",t.innerStrength,e),this.set4fv("glowColor",t.glcolor,e),this.setBoolean("knockout",t.knockout,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=h},74088:(t,e,i)=>{var s=i(83419),r=i(70463),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.alpha=.2,this.size=0,this.fromX=0,this.fromY=0,this.toX=0,this.toY=1,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0]},onPreRender:function(t,e){t=this.getController(t),this.set1f("alpha",t.alpha,e),this.set1i("size",t.size,e),this.set3fv("color1",t.glcolor1,e),this.set3fv("color2",t.glcolor2,e),this.set2f("positionFrom",t.fromX,t.fromY,e),this.set2f("positionTo",t.toX,t.toY,e)}});t.exports=o},99636:(t,e,i)=>{var s=i(83419),r=i(50831),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.amount=1},onPreRender:function(t,e,i,s){t=this.getController(t),this.set1f("amount",t.amount,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=o},34700:(t,e,i)=>{var s=i(83419),r=i(92595),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.x=0,this.y=0,this.decay=.1,this.power=1,this.glcolor=[0,0,0,1],this.samples=6,this.intensity=1},onPreRender:function(t,e){var i=(t=this.getController(t)).samples;this.set1i("samples",i,e),this.set1f("intensity",t.intensity,e),this.set1f("decay",t.decay,e),this.set1f("power",t.power/i,e),this.set2f("lightPosition",t.x,t.y,e),this.set4fv("color",t.glcolor,e)}});t.exports=o},91157:(t,e,i)=>{var s=i(83419),r=i(72464),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.speed=.5,this.lineWidth=.5,this.gradient=3,this.reveal=!1},onPreRender:function(t,e,i,s){t=this.getController(t),this.setTime("time",e),this.set1f("speed",t.speed,e),this.set1f("lineWidth",t.lineWidth,e),this.set1f("gradient",t.gradient,e),this.setBoolean("reveal",t.reveal,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=o},27797:(t,e,i)=>{var s=i(83419),r=i(39249),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.x=.5,this.y=.5,this.radius=.5,this.strength=.5},onPreRender:function(t,e){t=this.getController(t),this.set1f("radius",t.radius,e),this.set1f("strength",t.strength,e),this.set2f("position",t.x,t.y,e)}});t.exports=o},67603:(t,e,i)=>{var s=i(83419),r=i(2878),n=i(84057),o=new s({Extends:n,initialize:function(t){n.call(this,{game:t,fragShader:r}),this.progress=0,this.wipeWidth=.1,this.direction=0,this.axis=0,this.reveal=!1},onPreRender:function(t,e){var i=(t=this.getController(t)).progress,s=t.wipeWidth,r=t.direction,n=t.axis;this.set4f("config",i,s,r,n,e),this.setBoolean("reveal",t.reveal,e)}});t.exports=o},58918:(t,e,i)=>{var s={Barrel:i(54812),Bloom:i(67329),Blur:i(8861),Bokeh:i(51051),Circle:i(89428),ColorMatrix:i(88904),Displacement:i(63563),Glow:i(94045),Gradient:i(74088),Pixelate:i(99636),Shadow:i(34700),Shine:i(91157),Vignette:i(27797),Wipe:i(67603)};t.exports=s},96615:(t,e,i)=>{var s=i(36060),r=i(79291),n={FX:i(58918),BitmapMaskPipeline:i(31302),Events:i(77085),FXPipeline:i(92651),LightPipeline:i(96569),MobilePipeline:i(56527),MultiPipeline:i(57516),PointLightPipeline:i(43439),PostFXPipeline:i(84057),PreFXPipeline:i(43558),RopePipeline:i(81041),SinglePipeline:i(12385),UtilityPipeline:i(7589)};n=r(!1,n,s),t.exports=n},35407:t=>{t.exports=["#define SHADER_NAME PHASER_ADD_BLEND_FS","precision mediump float;","uniform sampler2D uMainSampler1;","uniform sampler2D uMainSampler2;","uniform float uStrength;","varying vec2 outTexCoord;","void main ()","{"," vec4 frame1 = texture2D(uMainSampler1, outTexCoord);"," vec4 frame2 = texture2D(uMainSampler2, outTexCoord);"," gl_FragColor = frame1 + frame2 * uStrength;","}"].join("\n")},78908:t=>{t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_FS","precision mediump float;","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uMaskSampler;","uniform bool uInvertMaskAlpha;","void main ()","{"," vec2 uv = gl_FragCoord.xy / uResolution;"," vec4 mainColor = texture2D(uMainSampler, uv);"," vec4 maskColor = texture2D(uMaskSampler, uv);"," if (!uInvertMaskAlpha)"," {"," mainColor *= maskColor.a;"," }"," else"," {"," mainColor *= (1.0 - maskColor.a);"," }"," gl_FragColor = mainColor;","}"].join("\n")},85191:t=>{t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_VS","precision mediump float;","attribute vec2 inPosition;","void main ()","{"," gl_Position = vec4(inPosition, 0.0, 1.0);","}"].join("\n")},96293:t=>{t.exports=["#define SHADER_NAME PHASER_COLORMATRIX_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float uColorMatrix[20];","uniform float uAlpha;","varying vec2 outTexCoord;","void main ()","{"," vec4 c = texture2D(uMainSampler, outTexCoord);"," if (uAlpha == 0.0)"," {"," gl_FragColor = c;"," return;"," }"," if (c.a > 0.0)"," {"," c.rgb /= c.a;"," }"," vec4 result;"," result.r = (uColorMatrix[0] * c.r) + (uColorMatrix[1] * c.g) + (uColorMatrix[2] * c.b) + (uColorMatrix[3] * c.a) + uColorMatrix[4];"," result.g = (uColorMatrix[5] * c.r) + (uColorMatrix[6] * c.g) + (uColorMatrix[7] * c.b) + (uColorMatrix[8] * c.a) + uColorMatrix[9];"," result.b = (uColorMatrix[10] * c.r) + (uColorMatrix[11] * c.g) + (uColorMatrix[12] * c.b) + (uColorMatrix[13] * c.a) + uColorMatrix[14];"," result.a = (uColorMatrix[15] * c.r) + (uColorMatrix[16] * c.g) + (uColorMatrix[17] * c.b) + (uColorMatrix[18] * c.a) + uColorMatrix[19];"," vec3 rgb = mix(c.rgb, result.rgb, uAlpha);"," rgb *= result.a;"," gl_FragColor = vec4(rgb, result.a);","}"].join("\n")},36682:t=>{t.exports=["#define SHADER_NAME PHASER_COPY_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float uBrightness;","varying vec2 outTexCoord;","void main ()","{"," gl_FragColor = texture2D(uMainSampler, outTexCoord) * uBrightness;","}"].join("\n")},99155:t=>{t.exports=["#define SHADER_NAME BARREL_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float amount;","varying vec2 outTexCoord;","vec2 Distort(vec2 p)","{"," float theta = atan(p.y, p.x);"," float radius = length(p);"," radius = pow(radius, amount);"," p.x = radius * cos(theta);"," p.y = radius * sin(theta);"," return 0.5 * (p + 1.0);","}","void main()","{"," vec2 xy = 2.0 * outTexCoord - 1.0;"," vec2 texCoord = outTexCoord;"," if (length(xy) < 1.0)"," {"," texCoord = Distort(xy);"," }"," gl_FragColor = texture2D(uMainSampler, texCoord);","}"].join("\n")},24400:t=>{t.exports=["#define SHADER_NAME BLOOM_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec4 sum = texture2D(uMainSampler, outTexCoord) * 0.204164 * strength;"," sum = sum + texture2D(uMainSampler, outTexCoord + offset * 1.407333) * 0.304005;"," sum = sum + texture2D(uMainSampler, outTexCoord - offset * 1.407333) * 0.304005;"," sum = sum + texture2D(uMainSampler, outTexCoord + offset * 3.294215) * 0.093913;"," gl_FragColor = (sum + texture2D(uMainSampler, outTexCoord - offset * 3.294215) * 0.093913) * vec4(color, 1);","}"].join("\n")},94328:t=>{t.exports=["#define SHADER_NAME BLUR_HIGH_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 col = vec4(0.0);"," vec2 off1 = vec2(1.411764705882353) * offset * strength;"," vec2 off2 = vec2(3.2941176470588234) * offset * strength;"," vec2 off3 = vec2(5.176470588235294) * offset * strength;"," col += texture2D(uMainSampler, uv) * 0.1964825501511404;"," col += texture2D(uMainSampler, uv + (off1 / resolution)) * 0.2969069646728344;"," col += texture2D(uMainSampler, uv - (off1 / resolution)) * 0.2969069646728344;"," col += texture2D(uMainSampler, uv + (off2 / resolution)) * 0.09447039785044732;"," col += texture2D(uMainSampler, uv - (off2 / resolution)) * 0.09447039785044732;"," col += texture2D(uMainSampler, uv + (off3 / resolution)) * 0.010381362401148057;"," col += texture2D(uMainSampler, uv - (off3 / resolution)) * 0.010381362401148057;"," gl_FragColor = col * vec4(color, 1.0);","}"].join("\n")},41514:t=>{t.exports=["#define SHADER_NAME BLUR_LOW_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 col = vec4(0.0);"," vec2 offset = vec2(1.333) * offset * strength;"," col += texture2D(uMainSampler, uv) * 0.29411764705882354;"," col += texture2D(uMainSampler, uv + (offset / resolution)) * 0.35294117647058826;"," col += texture2D(uMainSampler, uv - (offset / resolution)) * 0.35294117647058826;"," gl_FragColor = col * vec4(color, 1.0);","}"].join("\n")},51078:t=>{t.exports=["#define SHADER_NAME BLUR_MED_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 col = vec4(0.0);"," vec2 off1 = vec2(1.3846153846) * offset * strength;"," vec2 off2 = vec2(3.2307692308) * offset * strength;"," col += texture2D(uMainSampler, uv) * 0.2270270270;"," col += texture2D(uMainSampler, uv + (off1 / resolution)) * 0.3162162162;"," col += texture2D(uMainSampler, uv - (off1 / resolution)) * 0.3162162162;"," col += texture2D(uMainSampler, uv + (off2 / resolution)) * 0.0702702703;"," col += texture2D(uMainSampler, uv - (off2 / resolution)) * 0.0702702703;"," gl_FragColor = col * vec4(color, 1.0);","}"].join("\n")},90610:t=>{t.exports=["#define SHADER_NAME BOKEH_FS","precision mediump float;","#define ITERATIONS 100.0","#define ONEOVER_ITR 1.0 / ITERATIONS","#define PI 3.141596","#define GOLDEN_ANGLE 2.39996323","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform float radius;","uniform float amount;","uniform float contrast;","uniform bool isTiltShift;","uniform float strength;","uniform vec2 blur;","varying vec2 outTexCoord;","vec2 Sample (in float theta, inout float r)","{"," r += 1.0 / r;"," return (r - 1.0) * vec2(cos(theta), sin(theta)) * 0.06;","}","vec3 Bokeh (sampler2D tex, vec2 uv, float radius)","{"," vec3 acc = vec3(0.0);"," vec3 div = vec3(0.0);"," vec2 pixel = vec2(resolution.y / resolution.x, 1.0) * radius * .025;"," float r = 1.0;"," for (float j = 0.0; j < GOLDEN_ANGLE * ITERATIONS; j += GOLDEN_ANGLE)"," {"," vec3 col = texture2D(tex, uv + pixel * Sample(j, r)).xyz;"," col = contrast > 0.0 ? col * col * (1.0 + contrast) : col;"," vec3 bokeh = vec3(0.5) + pow(col, vec3(10.0)) * amount;"," acc += col * bokeh;"," div += bokeh;"," }"," return acc / div;","}","void main ()","{"," float shift = 1.0;"," if (isTiltShift)"," {"," vec2 uv = vec2(gl_FragCoord.xy / resolution + vec2(-0.5, -0.5)) * 2.0;"," float centerStrength = 1.0;"," shift = length(uv * blur * strength) * centerStrength;"," }"," gl_FragColor = vec4(Bokeh(uMainSampler, outTexCoord * vec2(1.0, 1.0), radius * shift), 0.0);","}"].join("\n")},91899:t=>{t.exports=["#define SHADER_NAME CIRCLE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec3 color;","uniform vec4 backgroundColor;","uniform float thickness;","uniform float scale;","uniform float feather;","varying vec2 outTexCoord;","void main ()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec2 position = (gl_FragCoord.xy / resolution.xy) * 2.0 - 1.0;"," float aspectRatio = resolution.x / resolution.y;"," position.x *= aspectRatio;"," float grad = length(position);"," float outer = aspectRatio;"," float inner = outer - (thickness * 2.0 / resolution.y);"," if (aspectRatio >= 1.0)"," {"," float f = 2.0 + (resolution.y / resolution.x);"," outer = 1.0;"," inner = 1.0 - (thickness * f / resolution.x);"," }"," outer *= scale;"," inner *= scale;"," float circle = smoothstep(outer, outer - 0.01, grad);"," float ring = circle - smoothstep(inner, inner - feather, grad);"," texture = mix(backgroundColor * backgroundColor.a, texture, texture.a);"," texture = (texture * (circle - ring));"," gl_FragColor = vec4(texture.rgb + (ring * color), texture.a);","}"].join("\n")},47838:t=>{t.exports=["#define SHADER_NAME DISPLACEMENT_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform sampler2D uDisplacementSampler;","uniform vec2 amount;","varying vec2 outTexCoord;","void main ()","{"," vec2 disp = (-vec2(0.5, 0.5) + texture2D(uDisplacementSampler, outTexCoord).rr) * amount;"," gl_FragColor = texture2D(uMainSampler, outTexCoord + disp).rgba;","}"].join("\n")},98656:t=>{t.exports=["#define SHADER_NAME GLOW_FS","precision mediump float;","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","uniform float outerStrength;","uniform float innerStrength;","uniform vec2 resolution;","uniform vec4 glowColor;","uniform bool knockout;","const float PI = 3.14159265358979323846264;","const float DIST = __DIST__;","const float SIZE = min(__SIZE__, PI * 2.0);","const float STEP = ceil(PI * 2.0 / SIZE);","const float MAX_ALPHA = STEP * DIST * (DIST + 1.0) / 2.0;","void main ()","{"," vec2 px = vec2(1.0 / resolution.x, 1.0 / resolution.y);"," float totalAlpha = 0.0;"," vec2 direction;"," vec2 displaced;"," vec4 color;"," for (float angle = 0.0; angle < PI * 2.0; angle += SIZE)"," {"," direction = vec2(cos(angle), sin(angle)) * px;"," for (float curDistance = 0.0; curDistance < DIST; curDistance++)"," {"," displaced = outTexCoord + direction * (curDistance + 1.0);"," color = texture2D(uMainSampler, displaced);"," totalAlpha += (DIST - curDistance) * color.a;"," }"," }"," color = texture2D(uMainSampler, outTexCoord);"," float alphaRatio = (totalAlpha / MAX_ALPHA);"," float innerGlowAlpha = (1.0 - alphaRatio) * innerStrength * color.a;"," float innerGlowStrength = min(1.0, innerGlowAlpha);"," vec4 innerColor = mix(color, glowColor, innerGlowStrength);"," float outerGlowAlpha = alphaRatio * outerStrength * (1.0 - color.a);"," float outerGlowStrength = min(1.0 - innerColor.a, outerGlowAlpha);"," vec4 outerGlowColor = outerGlowStrength * glowColor.rgba;"," if (knockout)"," {"," float resultAlpha = outerGlowAlpha + innerGlowAlpha;"," gl_FragColor = vec4(glowColor.rgb * resultAlpha, resultAlpha);"," }"," else"," {"," gl_FragColor = innerColor + outerGlowColor;"," }","}"].join("\n")},70463:t=>{t.exports=["#define SHADER_NAME GRADIENT_FS","#define SRGB_TO_LINEAR(c) pow((c), vec3(2.2))","#define LINEAR_TO_SRGB(c) pow((c), vec3(1.0 / 2.2))","#define SRGB(r, g, b) SRGB_TO_LINEAR(vec3(float(r), float(g), float(b)) / 255.0)","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 positionFrom;","uniform vec2 positionTo;","uniform vec3 color1;","uniform vec3 color2;","uniform float alpha;","uniform int size;","varying vec2 outTexCoord;","float gradientNoise(in vec2 uv)","{"," const vec3 magic = vec3(0.06711056, 0.00583715, 52.9829189);"," return fract(magic.z * fract(dot(uv, magic.xy)));","}","float stepped (in float s, in float scale, in int steps)","{"," return steps > 0 ? floor( s / ((1.0 * scale) / float(steps))) * 1.0 / float(steps - 1) : s;","}","void main ()","{"," vec2 a = positionFrom;"," vec2 b = positionTo;"," vec2 ba = b - a;"," float d = dot(outTexCoord - a, ba) / dot(ba, ba);"," float t = size > 0 ? stepped(d, 1.0, size) : d;"," t = smoothstep(0.0, 1.0, clamp(t, 0.0, 1.0));"," vec3 color = mix(SRGB(color1.r, color1.g, color1.b), SRGB(color2.r, color2.g, color2.b), t);"," color = LINEAR_TO_SRGB(color);"," color += (1.0 / 255.0) * gradientNoise(outTexCoord) - (0.5 / 255.0);"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," gl_FragColor = vec4(mix(color.rgb, texture.rgb, alpha), 1.0) * texture.a;","}"].join("\n")},50831:t=>{t.exports=["#define SHADER_NAME PIXELATE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform float amount;","varying vec2 outTexCoord;","void main ()","{"," float pixelSize = floor(2.0 + amount);"," vec2 center = pixelSize * floor(outTexCoord * resolution / pixelSize) + pixelSize * vec2(0.5, 0.5);"," vec2 corner1 = center + pixelSize * vec2(-0.5, -0.5);"," vec2 corner2 = center + pixelSize * vec2(+0.5, -0.5);"," vec2 corner3 = center + pixelSize * vec2(+0.5, +0.5);"," vec2 corner4 = center + pixelSize * vec2(-0.5, +0.5);"," vec4 pixel = 0.4 * texture2D(uMainSampler, center / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner1 / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner2 / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner3 / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner4 / resolution);"," gl_FragColor = pixel;","}"].join("\n")},92595:t=>{t.exports=["#define SHADER_NAME SHADOW_FS","precision mediump float;","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","uniform vec2 lightPosition;","uniform vec4 color;","uniform float decay;","uniform float power;","uniform float intensity;","uniform int samples;","const int MAX = 12;","void main ()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec2 pc = (lightPosition - outTexCoord) * intensity;"," float shadow = 0.0;"," float limit = max(float(MAX), float(samples));"," for (int i = 0; i < MAX; ++i)"," {"," if (i >= samples)"," {"," break;"," }"," shadow += texture2D(uMainSampler, outTexCoord + float(i) * decay / limit * pc).a * power;"," }"," float mask = 1.0 - texture.a;"," gl_FragColor = mix(texture, color, shadow * mask);","}"].join("\n")},72464:t=>{t.exports=["#define SHADER_NAME SHINE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform bool reveal;","uniform float speed;","uniform float time;","uniform float lineWidth;","uniform float gradient;","varying vec2 outTexCoord;","void main ()","{","\tvec2 uv = gl_FragCoord.xy / resolution.xy;"," vec4 tex = texture2D(uMainSampler, outTexCoord);"," vec4 col1 = vec4(0.3, 0.0, 0.0, 1.0);"," vec4 col2 = vec4(0.85, 0.85, 0.85, 1.0);"," uv.x = uv.x - mod(time * speed, 2.0) + 0.5;"," float y = uv.x * gradient;"," float s = smoothstep(y - lineWidth, y, uv.y) - smoothstep(y, y + lineWidth, uv.y);"," gl_FragColor = (((s * col1) + (s * col2)) * tex);"," if (!reveal)"," {"," gl_FragColor += tex;"," }","}"].join("\n")},39249:t=>{t.exports=["#define SHADER_NAME VIGNETTE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float radius;","uniform float strength;","uniform vec2 position;","varying vec2 outTexCoord;","void main ()","{"," vec4 col = vec4(1.0);"," float d = length(outTexCoord - position);"," if (d <= radius)"," {"," float g = d / radius;"," g = sin(g * 3.14 * strength);"," \tcol = vec4(g * g * g);"," }"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," gl_FragColor = texture * (1.0 - col);","}"].join("\n")},2878:t=>{t.exports=["#define SHADER_NAME WIPE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec4 config;","uniform bool reveal;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 color0;"," vec4 color1;"," if (reveal)"," {"," color0 = vec4(0);"," color1 = texture2D(uMainSampler, uv);"," }"," else"," {"," color0 = texture2D(uMainSampler, uv);"," color1 = vec4(0);"," }"," float distance = config.x;"," float width = config.y;"," float direction = config.z;"," float axis = uv.x;"," if (config.w == 1.0)"," {"," axis = uv.y;"," }"," float adjust = mix(width, -width, distance);"," float value = smoothstep(distance - width, distance + width, abs(direction - axis) + adjust);"," gl_FragColor = mix(color1, color0, value);","}"].join("\n")},31063:t=>{t.exports=["#define SHADER_NAME PHASER_LIGHT_FS","precision mediump float;","struct Light","{"," vec2 position;"," vec3 color;"," float intensity;"," float radius;","};","const int kMaxLights = %LIGHT_COUNT%;","uniform vec4 uCamera; /* x, y, rotation, zoom */","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uNormSampler;","uniform vec3 uAmbientLightColor;","uniform Light uLights[kMaxLights];","uniform mat3 uInverseRotationMatrix;","uniform int uLightCount;","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec3 finalColor = vec3(0.0, 0.0, 0.0);"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," vec3 normalMap = texture2D(uNormSampler, outTexCoord).rgb;"," vec3 normal = normalize(uInverseRotationMatrix * vec3(normalMap * 2.0 - 1.0));"," vec2 res = vec2(min(uResolution.x, uResolution.y)) * uCamera.w;"," for (int index = 0; index < kMaxLights; ++index)"," {"," if (index < uLightCount)"," {"," Light light = uLights[index];"," vec3 lightDir = vec3((light.position.xy / res) - (gl_FragCoord.xy / res), 0.1);"," vec3 lightNormal = normalize(lightDir);"," float distToSurf = length(lightDir) * uCamera.w;"," float diffuseFactor = max(dot(normal, lightNormal), 0.0);"," float radius = (light.radius / res.x * uCamera.w) * uCamera.w;"," float attenuation = clamp(1.0 - distToSurf * distToSurf / (radius * radius), 0.0, 1.0);"," vec3 diffuse = light.color * diffuseFactor;"," finalColor += (attenuation * diffuse) * light.intensity;"," }"," }"," vec4 colorOutput = vec4(uAmbientLightColor + finalColor, 1.0);"," gl_FragColor = color * vec4(colorOutput.rgb * colorOutput.a, colorOutput.a);","}"].join("\n")},48247:t=>{t.exports=["#define SHADER_NAME PHASER_LINEAR_BLEND_FS","precision mediump float;","uniform sampler2D uMainSampler1;","uniform sampler2D uMainSampler2;","uniform float uStrength;","varying vec2 outTexCoord;","void main ()","{"," vec4 frame1 = texture2D(uMainSampler1, outTexCoord);"," vec4 frame2 = texture2D(uMainSampler2, outTexCoord);"," gl_FragColor = mix(frame1, frame2 * uStrength, 0.5);","}"].join("\n")},41214:t=>{t.exports=["#define SHADER_NAME PHASER_MESH_FS","precision mediump float;","uniform vec3 uLightPosition;","uniform vec3 uLightAmbient;","uniform vec3 uLightDiffuse;","uniform vec3 uLightSpecular;","uniform vec3 uFogColor;","uniform float uFogNear;","uniform float uFogFar;","uniform vec3 uMaterialAmbient;","uniform vec3 uMaterialDiffuse;","uniform vec3 uMaterialSpecular;","uniform float uMaterialShine;","uniform vec3 uCameraPosition;","uniform sampler2D uTexture;","varying vec2 vTextureCoord;","varying vec3 vNormal;","varying vec3 vPosition;","void main (void)","{"," vec4 color = texture2D(uTexture, vTextureCoord);"," vec3 ambient = uLightAmbient * uMaterialAmbient;"," vec3 norm = normalize(vNormal);"," vec3 lightDir = normalize(uLightPosition - vPosition);"," float diff = max(dot(norm, lightDir), 0.0);"," vec3 diffuse = uLightDiffuse * (diff * uMaterialDiffuse);"," vec3 viewDir = normalize(uCameraPosition - vPosition);"," vec3 reflectDir = reflect(-lightDir, norm);"," float spec = pow(max(dot(viewDir, reflectDir), 0.0), uMaterialShine);"," vec3 specular = uLightSpecular * (spec * uMaterialSpecular);"," vec3 result = (ambient + diffuse + specular) * color.rgb;"," float depth = gl_FragCoord.z / gl_FragCoord.w;"," float fogFactor = smoothstep(uFogNear, uFogFar, depth);"," gl_FragColor.rgb = mix(result.rgb, uFogColor, fogFactor);"," gl_FragColor.a = color.a;","}"].join("\n")},39653:t=>{t.exports=["#define SHADER_NAME PHASER_MESH_VS","precision mediump float;","attribute vec3 aVertexPosition;","attribute vec3 aVertexNormal;","attribute vec2 aTextureCoord;","uniform mat4 uViewProjectionMatrix;","uniform mat4 uModelMatrix;","uniform mat4 uNormalMatrix;","varying vec2 vTextureCoord;","varying vec3 vNormal;","varying vec3 vPosition;","void main ()","{"," vTextureCoord = aTextureCoord;"," vPosition = vec3(uModelMatrix * vec4(aVertexPosition, 1.0));"," vNormal = vec3(uNormalMatrix * vec4(aVertexNormal, 1.0));"," gl_Position = uViewProjectionMatrix * uModelMatrix * vec4(aVertexPosition, 1.0);","}"].join("\n")},62143:t=>{t.exports=["#define SHADER_NAME PHASER_MOBILE_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join("\n")},47940:t=>{t.exports=["#define SHADER_NAME PHASER_MOBILE_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","uniform int uRoundPixels;","uniform vec2 uResolution;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," if (uRoundPixels == 1)"," {"," gl_Position.xy = floor(((gl_Position.xy + 1.0) * 0.5 * uResolution) + 0.5) / uResolution * 2.0 - 1.0;"," }"," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join("\n")},98840:t=>{t.exports=["#define SHADER_NAME PHASER_MULTI_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler[%count%];","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texture;"," %forloop%"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join("\n")},44667:t=>{t.exports=["#define SHADER_NAME PHASER_MULTI_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","uniform int uRoundPixels;","uniform vec2 uResolution;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," if (uRoundPixels == 1)"," {"," gl_Position.xy = floor(((gl_Position.xy + 1.0) * 0.5 * uResolution) + 0.5) / uResolution * 2.0 - 1.0;"," }"," outTexCoord = inTexCoord;"," outTexId = inTexId;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join("\n")},4127:t=>{t.exports=["#define SHADER_NAME PHASER_POINTLIGHT_FS","precision mediump float;","uniform vec2 uResolution;","uniform float uCameraZoom;","varying vec4 lightPosition;","varying vec4 lightColor;","varying float lightRadius;","varying float lightAttenuation;","void main ()","{"," vec2 center = (lightPosition.xy + 1.0) * (uResolution.xy * 0.5);"," float distToSurf = length(center - gl_FragCoord.xy);"," float radius = 1.0 - distToSurf / (lightRadius * uCameraZoom);"," float intensity = smoothstep(0.0, 1.0, radius * lightAttenuation);"," vec4 color = vec4(intensity, intensity, intensity, 0.0) * lightColor;"," gl_FragColor = vec4(color.rgb * lightColor.a, color.a);","}"].join("\n")},89924:t=>{t.exports=["#define SHADER_NAME PHASER_POINTLIGHT_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","attribute vec2 inPosition;","attribute vec2 inLightPosition;","attribute vec4 inLightColor;","attribute float inLightRadius;","attribute float inLightAttenuation;","varying vec4 lightPosition;","varying vec4 lightColor;","varying float lightRadius;","varying float lightAttenuation;","void main ()","{"," lightColor = inLightColor;"," lightRadius = inLightRadius;"," lightAttenuation = inLightAttenuation;"," lightPosition = uProjectionMatrix * vec4(inLightPosition, 1.0, 1.0);"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);","}"].join("\n")},27681:t=>{t.exports=["#define SHADER_NAME PHASER_POSTFX_FS","precision mediump float;","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","void main ()","{"," gl_FragColor = texture2D(uMainSampler, outTexCoord);","}"].join("\n")},49627:t=>{t.exports=["#define SHADER_NAME PHASER_QUAD_VS","precision mediump float;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","varying vec2 outFragCoord;","varying vec2 outTexCoord;","void main ()","{"," outFragCoord = inPosition.xy * 0.5 + 0.5;"," outTexCoord = inTexCoord;"," gl_Position = vec4(inPosition, 0, 1);","}"].join("\n")},45561:t=>{t.exports=["#define SHADER_NAME PHASER_SINGLE_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join("\n")},60722:t=>{t.exports=["#define SHADER_NAME PHASER_SINGLE_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","uniform int uRoundPixels;","uniform vec2 uResolution;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," if (uRoundPixels == 1)"," {"," gl_Position.xy = floor(((gl_Position.xy + 1.0) * 0.5 * uResolution) + 0.5) / uResolution * 2.0 - 1.0;"," }"," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join("\n")},89350:(t,e,i)=>{t.exports={AddBlendFrag:i(35407),BitmapMaskFrag:i(78908),BitmapMaskVert:i(85191),ColorMatrixFrag:i(96293),CopyFrag:i(36682),FXBarrelFrag:i(99155),FXBloomFrag:i(24400),FXBlurHighFrag:i(94328),FXBlurLowFrag:i(41514),FXBlurMedFrag:i(51078),FXBokehFrag:i(90610),FXCircleFrag:i(91899),FXDisplacementFrag:i(47838),FXGlowFrag:i(98656),FXGradientFrag:i(70463),FXPixelateFrag:i(50831),FXShadowFrag:i(92595),FXShineFrag:i(72464),FXVignetteFrag:i(39249),FXWipeFrag:i(2878),LightFrag:i(31063),LinearBlendFrag:i(48247),MeshFrag:i(41214),MeshVert:i(39653),MobileFrag:i(62143),MobileVert:i(47940),MultiFrag:i(98840),MultiVert:i(44667),PointLightFrag:i(4127),PointLightVert:i(89924),PostFXFrag:i(27681),QuadVert:i(49627),SingleFrag:i(45561),SingleVert:i(60722)}},93567:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e,i){this.webGLAttribLocation=-1,this.gl=t,this.program=e,this.name=i,this.createResource()},createResource:function(){if(null!==this.program.webGLProgram){var t=this.gl;t.isContextLost()||(this.webGLAttribLocation=t.getAttribLocation(this.program.webGLProgram,this.name))}else this.webGLAttribLocation=-1},destroy:function(){this.gl=null,this.program=null,this.name=null,this.webGLAttribLocation=-1}});t.exports=s},26128:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e,i,s){this.webGLBuffer=null,this.gl=t,this.initialDataOrSize=e,this.bufferType=i,this.bufferUsage=s,this.createResource()},createResource:function(){if(null!==this.initialDataOrSize){var t=this.gl;if(!t.isContextLost()){var e=this.bufferType,i=t.createBuffer();this.webGLBuffer=i,t.bindBuffer(e,this.webGLBuffer),t.bufferData(e,this.initialDataOrSize,this.bufferUsage),t.bindBuffer(e,null)}}},destroy:function(){var t=this.gl;t.isContextLost()||t.deleteBuffer(this.webGLBuffer),this.webGLBuffer=null,this.initialDataOrSize=null,this.gl=null}});t.exports=s},84387:(t,e,i)=>{var s=i(83419),r={36054:"Incomplete Attachment",36055:"Missing Attachment",36057:"Incomplete Dimensions",36061:"Framebuffer Unsupported"},n=new s({initialize:function(t,e,i,s,r){this.webGLFramebuffer=null,this.gl=t,this.width=e,this.height=i,this.renderTexture=s,this.addDepthStencilBuffer=!!r,this.createResource()},createResource:function(){var t=this.gl;if(!t.isContextLost()){var e,i=this.renderTexture,s=t.createFramebuffer();if(this.webGLFramebuffer=s,t.bindFramebuffer(t.FRAMEBUFFER,s),i.isRenderTexture=!0,i.isAlphaPremultiplied=!1,t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,i.webGLTexture,0),(e=t.checkFramebufferStatus(t.FRAMEBUFFER))!==t.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer status: "+(r[e]||e));if(this.addDepthStencilBuffer){var n=t.createRenderbuffer();t.bindRenderbuffer(t.RENDERBUFFER,n),t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,this.width,this.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,n)}t.bindFramebuffer(t.FRAMEBUFFER,null)}},destroy:function(){if(null!==this.webGLFramebuffer){var t=this.gl;if(!t.isContextLost()){t.bindFramebuffer(t.FRAMEBUFFER,this.webGLFramebuffer);var e=t.getFramebufferAttachmentParameter(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME);null!==e&&(t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,null,0),t.deleteTexture(e));var i=t.getFramebufferAttachmentParameter(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME);null!==i&&t.deleteRenderbuffer(i),t.bindFramebuffer(t.FRAMEBUFFER,null),t.deleteFramebuffer(this.webGLFramebuffer)}this.renderTexture=null,this.webGLFramebuffer=null,this.gl=null}}});t.exports=n},1482:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e,i){this.webGLProgram=null,this.gl=t,this.vertexSource=e,this.fragmentSource=i,this.createResource()},createResource:function(){var t=this.gl;if(!t.isContextLost()){var e=t.createProgram(),i=t.createShader(t.VERTEX_SHADER),s=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(i,this.vertexSource),t.shaderSource(s,this.fragmentSource),t.compileShader(i),t.compileShader(s);var r="Shader failed:\n";if(!t.getShaderParameter(i,t.COMPILE_STATUS))throw new Error("Vertex "+r+t.getShaderInfoLog(i));if(!t.getShaderParameter(s,t.COMPILE_STATUS))throw new Error("Fragment "+r+t.getShaderInfoLog(s));if(t.attachShader(e,i),t.attachShader(e,s),t.linkProgram(e),!t.getProgramParameter(e,t.LINK_STATUS))throw new Error("Link "+r+t.getProgramInfoLog(e));t.useProgram(e),this.webGLProgram=e}},destroy:function(){this.webGLProgram&&(this.gl.isContextLost()||this.gl.deleteProgram(this.webGLProgram),this.webGLProgram=null,this.gl=null)}});t.exports=s},82751:(t,e,i)=>{var s=i(83419),r=i(50030),n=new s({initialize:function(t,e,i,s,r,n,o,a,h,l,u,c,d){this.webGLTexture=null,this.isRenderTexture=!1,this.gl=t,this.mipLevel=e,this.minFilter=i,this.magFilter=s,this.wrapT=r,this.wrapS=n,this.format=o,this.pixels=a,this.width=h,this.height=l,this.pma=null==u||u,this.forceSize=!!c,this.flipY=!!d,this.__SPECTOR_Metadata={},this.createResource()},createResource:function(){var t=this.gl;if(!t.isContextLost())if(this.pixels instanceof n)this.webGLTexture=this.pixels.webGLTexture;else{var e=t.createTexture();e.__SPECTOR_Metadata=this.__SPECTOR_Metadata,this.webGLTexture=e,this._processTexture()}},update:function(t,e,i,s,r,n,o,a,h){0!==e&&0!==i&&(this.pixels=t,this.width=e,this.height=i,this.flipY=s,this.wrapS=r,this.wrapT=n,this.minFilter=o,this.magFilter=a,this.format=h,this.gl.isContextLost()||this._processTexture())},_processTexture:function(){var t=this.gl;t.activeTexture(t.TEXTURE0);var e=t.getParameter(t.TEXTURE_BINDING_2D);t.bindTexture(t.TEXTURE_2D,this.webGLTexture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,this.minFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,this.magFilter),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,this.wrapS),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,this.wrapT),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.pma),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,this.flipY);var i=this.pixels,s=this.mipLevel,n=this.width,o=this.height,a=this.format,h=!1;if(null==i)t.texImage2D(t.TEXTURE_2D,s,a,n,o,0,a,t.UNSIGNED_BYTE,null),h=r(n,o);else if(i.compressed){n=i.width,o=i.height,h=i.generateMipmap;for(var l=0;l{var s=new(i(83419))({initialize:function(t,e,i){this.webGLUniformLocation=null,this.gl=t,this.program=e,this.name=i,this.createResource()},createResource:function(){if(null!==this.program.webGLProgram){var t=this.gl;t.isContextLost()||(this.webGLUniformLocation=t.getUniformLocation(this.program.webGLProgram,this.name))}else this.webGLUniformLocation=null},destroy:function(){this.gl=null,this.program=null,this.name=null,this.webGLUniformLocation=null}});t.exports=s},9503:(t,e,i)=>{var s={WebGLAttribLocationWrapper:i(93567),WebGLBufferWrapper:i(26128),WebGLProgramWrapper:i(1482),WebGLTextureWrapper:i(82751),WebGLFramebufferWrapper:i(84387),WebGLUniformLocationWrapper:i(57183)};t.exports=s},76531:(t,e,i)=>{var s=i(13560),r=i(83419),n=i(50792),o=i(97480),a=i(8443),h=i(57811),l=i(74403),u=i(45818),c=i(29747),d=i(87841),p=i(86555),f=i(56583),g=i(26099),m=i(38058),v=new r({Extends:n,initialize:function(t){n.call(this),this.game=t,this.canvas,this.canvasBounds=new d,this.parent=null,this.parentIsWindow=!1,this.parentSize=new p,this.gameSize=new p,this.baseSize=new p,this.displaySize=new p,this.scaleMode=s.SCALE_MODE.NONE,this.zoom=1,this._resetZoom=!1,this.displayScale=new g(1,1),this.autoRound=!1,this.autoCenter=s.CENTER.NO_CENTER,this.orientation=s.ORIENTATION.LANDSCAPE,this.fullscreen,this.fullscreenTarget=null,this._createdFullscreenTarget=!1,this.dirty=!1,this.resizeInterval=500,this._lastCheck=0,this._checkOrientation=!1,this.domlisteners={orientationChange:c,windowResize:c,fullScreenChange:c,fullScreenError:c}},preBoot:function(){this.parseConfig(this.game.config),this.game.events.once(a.BOOT,this.boot,this)},boot:function(){var t=this.game;this.canvas=t.canvas,this.fullscreen=t.device.fullscreen,this.scaleMode!==s.SCALE_MODE.RESIZE&&this.scaleMode!==s.SCALE_MODE.EXPAND&&this.displaySize.setAspectMode(this.scaleMode),this.scaleMode===s.SCALE_MODE.NONE?this.resize(this.width,this.height):(this.getParentBounds(),this.parentSize.width>0&&this.parentSize.height>0&&this.displaySize.setParent(this.parentSize),this.refresh()),t.events.on(a.PRE_STEP,this.step,this),t.events.once(a.READY,this.refresh,this),t.events.once(a.DESTROY,this.destroy,this),this.startListeners()},parseConfig:function(t){this.getParent(t),this.getParentBounds();var e=t.width,i=t.height,r=t.scaleMode,n=t.zoom,o=t.autoRound;if("string"==typeof e)if("%"!==e.substr(-1))e=parseInt(e,10);else{var a=this.parentSize.width;0===a&&(a=window.innerWidth);var h=parseInt(e,10)/100;e=Math.floor(a*h)}if("string"==typeof i)if("%"!==i.substr(-1))i=parseInt(i,10);else{var l=this.parentSize.height;0===l&&(l=window.innerHeight);var c=parseInt(i,10)/100;i=Math.floor(l*c)}this.scaleMode=r,this.autoRound=o,this.autoCenter=t.autoCenter,this.resizeInterval=t.resizeInterval,o&&(e=Math.floor(e),i=Math.floor(i)),this.gameSize.setSize(e,i),n===s.ZOOM.MAX_ZOOM&&(n=this.getMaxZoom()),this.zoom=n,1!==n&&(this._resetZoom=!0),this.baseSize.setSize(e,i),o&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),t.minWidth>0&&this.displaySize.setMin(t.minWidth*n,t.minHeight*n),t.maxWidth>0&&this.displaySize.setMax(t.maxWidth*n,t.maxHeight*n),this.displaySize.setSize(e,i),(t.snapWidth>0||t.snapHeight>0)&&this.displaySize.setSnap(t.snapWidth,t.snapHeight),this.orientation=u(e,i)},getParent:function(t){var e=t.parent;if(null!==e){if(this.parent=l(e),this.parentIsWindow=this.parent===document.body,t.expandParent&&t.scaleMode!==s.SCALE_MODE.NONE){var i=this.parent.getBoundingClientRect();(this.parentIsWindow||0===i.height)&&(document.documentElement.style.height="100%",document.body.style.height="100%",i=this.parent.getBoundingClientRect(),this.parentIsWindow||0!==i.height||(this.parent.style.overflow="hidden",this.parent.style.width="100%",this.parent.style.height="100%"))}t.fullscreenTarget&&!this.fullscreenTarget&&(this.fullscreenTarget=l(t.fullscreenTarget))}},getParentBounds:function(){if(!this.parent)return!1;var t=this.parentSize,e=this.parent.getBoundingClientRect();this.parentIsWindow&&this.game.device.os.iOS&&(e.height=h(!0));var i=e.width,s=e.height;if(t.width!==i||t.height!==s)return t.setSize(i,s),!0;if(this.canvas){var r=this.canvasBounds,n=this.canvas.getBoundingClientRect();if(n.x!==r.x||n.y!==r.y)return!0}return!1},lockOrientation:function(t){var e=screen.lockOrientation||screen.mozLockOrientation||screen.msLockOrientation;return!!e&&e.call(screen,t)},setParentSize:function(t,e){return this.parentSize.setSize(t,e),this.refresh()},setGameSize:function(t,e){var i=this.autoRound;i&&(t=Math.floor(t),e=Math.floor(e));var s=this.width,r=this.height;return this.gameSize.resize(t,e),this.baseSize.resize(t,e),i&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setAspectRatio(t/e),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height,this.refresh(s,r)},resize:function(t,e){var i=this.zoom,s=this.autoRound;s&&(t=Math.floor(t),e=Math.floor(e));var r=this.width,n=this.height;this.gameSize.resize(t,e),this.baseSize.resize(t,e),s&&(this.baseSize.width=Math.floor(this.baseSize.width),this.baseSize.height=Math.floor(this.baseSize.height)),this.displaySize.setSize(t*i,e*i),this.canvas.width=this.baseSize.width,this.canvas.height=this.baseSize.height;var o=this.canvas.style,a=t*i,h=e*i;return s&&(a=Math.floor(a),h=Math.floor(h)),a===t&&h===e||(o.width=a+"px",o.height=h+"px"),this.refresh(r,n)},setZoom:function(t){return this.zoom=t,this._resetZoom=!0,this.refresh()},setMaxZoom:function(){return this.zoom=this.getMaxZoom(),this._resetZoom=!0,this.refresh()},setSnap:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.displaySize.setSnap(t,e),this.refresh()},refresh:function(t,e){void 0===t&&(t=this.width),void 0===e&&(e=this.height),this.updateScale(),this.updateBounds(),this.updateOrientation(),this.displayScale.set(this.baseSize.width/this.canvasBounds.width,this.baseSize.height/this.canvasBounds.height);var i=this.game.domContainer;if(i){this.baseSize.setCSS(i);var s=this.canvas.style,r=i.style;r.transform="scale("+this.displaySize.width/this.baseSize.width+","+this.displaySize.height/this.baseSize.height+")",r.marginLeft=s.marginLeft,r.marginTop=s.marginTop}return this.emit(o.RESIZE,this.gameSize,this.baseSize,this.displaySize,t,e),this},updateOrientation:function(){if(this._checkOrientation){this._checkOrientation=!1;var t=u(this.width,this.height);t!==this.orientation&&(this.orientation=t,this.emit(o.ORIENTATION_CHANGE,t))}},updateScale:function(){var t,e,i=this.canvas.style,r=this.gameSize.width,n=this.gameSize.height,o=this.zoom,a=this.autoRound;if(this.scaleMode===s.SCALE_MODE.NONE)this.displaySize.setSize(r*o,n*o),t=this.displaySize.width,e=this.displaySize.height,a&&(t=Math.floor(t),e=Math.floor(e)),this._resetZoom&&(i.width=t+"px",i.height=e+"px",this._resetZoom=!1);else if(this.scaleMode===s.SCALE_MODE.RESIZE)this.displaySize.setSize(this.parentSize.width,this.parentSize.height),this.gameSize.setSize(this.displaySize.width,this.displaySize.height),this.baseSize.setSize(this.displaySize.width,this.displaySize.height),t=this.displaySize.width,e=this.displaySize.height,a&&(t=Math.floor(t),e=Math.floor(e)),this.canvas.width=t,this.canvas.height=e;else if(this.scaleMode===s.SCALE_MODE.EXPAND){this.displaySize.setSize(this.parentSize.width,this.parentSize.height),t=this.displaySize.width,e=this.displaySize.height,a&&(t=Math.floor(t),e=Math.floor(e)),i.width=t+"px",i.height=e+"px";var h=this.parentSize.width/this.gameSize.width,l=this.parentSize.height/this.gameSize.height;h=0?0:-o.x*a.x,l=o.y>=0?0:-o.y*a.y;return i=n.width>=o.width?r.width:r.width-(o.width-n.width)*a.x,s=n.height>=o.height?r.height:r.height-(o.height-n.height)*a.y,e.setTo(h,l,i,s),t&&(e.width/=t.zoomX,e.height/=t.zoomY,e.centerX=t.centerX+t.scrollX,e.centerY=t.centerY+t.scrollY),e},step:function(t,e){this.parent&&(this._lastCheck+=e,(this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&this.refresh(),this.dirty=!1,this._lastCheck=0))},stopListeners:function(){var t=this.domlisteners;window.removeEventListener("orientationchange",t.orientationChange,!1),window.removeEventListener("resize",t.windowResize,!1),["webkit","moz",""].forEach((function(e){document.removeEventListener(e+"fullscreenchange",t.fullScreenChange,!1),document.removeEventListener(e+"fullscreenerror",t.fullScreenError,!1)})),document.removeEventListener("MSFullscreenChange",t.fullScreenChange,!1),document.removeEventListener("MSFullscreenError",t.fullScreenError,!1)},destroy:function(){this.removeAllListeners(),this.stopListeners(),this.game=null,this.canvas=null,this.canvasBounds=null,this.parent=null,this.fullscreenTarget=null,this.parentSize.destroy(),this.gameSize.destroy(),this.baseSize.destroy(),this.displaySize.destroy()},isFullscreen:{get:function(){return this.fullscreen.active}},width:{get:function(){return this.gameSize.width}},height:{get:function(){return this.gameSize.height}},isPortrait:{get:function(){return this.orientation===s.ORIENTATION.PORTRAIT}},isLandscape:{get:function(){return this.orientation===s.ORIENTATION.LANDSCAPE}},isGamePortrait:{get:function(){return this.height>this.width}},isGameLandscape:{get:function(){return this.width>this.height}}});t.exports=v},64743:t=>{t.exports={NO_CENTER:0,CENTER_BOTH:1,CENTER_HORIZONTALLY:2,CENTER_VERTICALLY:3}},39218:t=>{t.exports={LANDSCAPE:"landscape-primary",PORTRAIT:"portrait-primary"}},81050:t=>{t.exports={NONE:0,WIDTH_CONTROLS_HEIGHT:1,HEIGHT_CONTROLS_WIDTH:2,FIT:3,ENVELOP:4,RESIZE:5,EXPAND:6}},80805:t=>{t.exports={NO_ZOOM:1,ZOOM_2X:2,ZOOM_4X:4,MAX_ZOOM:-1}},13560:(t,e,i)=>{var s={CENTER:i(64743),ORIENTATION:i(39218),SCALE_MODE:i(81050),ZOOM:i(80805)};t.exports=s},56139:t=>{t.exports="enterfullscreen"},2336:t=>{t.exports="fullscreenfailed"},47412:t=>{t.exports="fullscreenunsupported"},51452:t=>{t.exports="leavefullscreen"},20666:t=>{t.exports="orientationchange"},47945:t=>{t.exports="resize"},97480:(t,e,i)=>{t.exports={ENTER_FULLSCREEN:i(56139),FULLSCREEN_FAILED:i(2336),FULLSCREEN_UNSUPPORTED:i(47412),LEAVE_FULLSCREEN:i(51452),ORIENTATION_CHANGE:i(20666),RESIZE:i(47945)}},93364:(t,e,i)=>{var s=i(79291),r=i(13560),n={Center:i(64743),Events:i(97480),Orientation:i(39218),ScaleManager:i(76531),ScaleModes:i(81050),Zoom:i(80805)};n=s(!1,n,r.CENTER),n=s(!1,n,r.ORIENTATION),n=s(!1,n,r.SCALE_MODE),n=s(!1,n,r.ZOOM),t.exports=n},27397:(t,e,i)=>{var s=i(95540),r=i(35355);t.exports=function(t){var e=t.game.config.defaultPhysicsSystem,i=s(t.settings,"physics",!1);if(e||i){var n=[];if(e&&n.push(r(e+"Physics")),i)for(var o in i)o=r(o.concat("Physics")),-1===n.indexOf(o)&&n.push(o);return n}}},52106:(t,e,i)=>{var s=i(95540);t.exports=function(t){var e=t.plugins.getDefaultScenePlugins(),i=s(t.settings,"plugins",!1);return Array.isArray(i)?i:e||[]}},87033:t=>{t.exports={game:"game",renderer:"renderer",anims:"anims",cache:"cache",plugins:"plugins",registry:"registry",scale:"scale",sound:"sound",textures:"textures",events:"events",cameras:"cameras",add:"add",make:"make",scenePlugin:"scene",displayList:"children",lights:"lights",data:"data",input:"input",load:"load",time:"time",tweens:"tweens",arcadePhysics:"physics",impactPhysics:"impact",matterPhysics:"matter"}},97482:(t,e,i)=>{var s=i(83419),r=i(2368),n=new s({initialize:function(t){this.sys=new r(this,t),this.game,this.anims,this.cache,this.registry,this.sound,this.textures,this.events,this.cameras,this.add,this.make,this.scene,this.children,this.lights,this.data,this.input,this.load,this.time,this.tweens,this.physics,this.matter,this.scale,this.plugins,this.renderer},update:function(){}});t.exports=n},60903:(t,e,i)=>{var s=i(83419),r=i(89993),n=i(44594),o=i(8443),a=i(35154),h=i(54899),l=i(29747),u=i(97482),c=i(2368),d=new s({initialize:function(t,e){if(this.game=t,this.keys={},this.scenes=[],this._pending=[],this._start=[],this._queue=[],this._data={},this.isProcessing=!1,this.isBooted=!1,this.customViewports=0,this.systemScene,e){Array.isArray(e)||(e=[e]);for(var i=0;i-1&&(delete this.keys[s],this.scenes.splice(i,1),this._start.indexOf(s)>-1&&(i=this._start.indexOf(s),this._start.splice(i,1)),e.sys.destroy())}return this},bootScene:function(t){var e,i=t.sys,s=i.settings;i.sceneUpdate=l,t.init&&(t.init.call(t,s.data),s.status=r.INIT,s.isTransition&&i.events.emit(n.TRANSITION_INIT,s.transitionFrom,s.transitionDuration)),i.load&&(e=i.load).reset(),e&&t.preload?(t.preload.call(t),s.status=r.LOADING,e.once(h.COMPLETE,this.loadComplete,this),e.start()):this.create(t)},loadComplete:function(t){this.game.sound&&this.game.sound.onBlurPausedSounds&&this.game.sound.unlock(),this.create(t.scene)},payloadComplete:function(t){this.bootScene(t.scene)},update:function(t,e){this.processQueue(),this.isProcessing=!0;for(var i=this.scenes.length-1;i>=0;i--){var s=this.scenes[i].sys;s.settings.status>r.START&&s.settings.status<=r.RUNNING&&s.step(t,e),s.scenePlugin&&s.scenePlugin._target&&s.scenePlugin.step(t,e)}},render:function(t){for(var e=0;e=r.LOADING&&i.settings.status=r.START&&o<=r.CREATING)return this;if(o>=r.RUNNING&&o<=r.SLEEPING)n.shutdown(),n.sceneUpdate=l,n.start(e);else if(n.sceneUpdate=l,n.start(e),n.load&&(s=n.load),s&&n.settings.hasOwnProperty("pack")&&(s.reset(),s.addPack({payload:n.settings.pack})))return n.settings.status=r.LOADING,s.once(h.COMPLETE,this.payloadComplete,this),s.start(),this;return this.bootScene(i),this},stop:function(t,e){var i=this.getScene(t);if(i&&!i.sys.isTransitioning()&&i.sys.settings.status!==r.SHUTDOWN){var s=i.sys.load;s&&(s.off(h.COMPLETE,this.loadComplete,this),s.off(h.COMPLETE,this.payloadComplete,this)),i.sys.shutdown(e)}return this},switch:function(t,e){var i=this.getScene(t),s=this.getScene(e);return i&&s&&i!==s&&(this.sleep(t),this.isSleeping(e)?this.wake(e):this.start(e)),this},getAt:function(t){return this.scenes[t]},getIndex:function(t){var e=this.getScene(t);return this.scenes.indexOf(e)},bringToTop:function(t){if(this.isProcessing)this._queue.push({op:"bringToTop",keyA:t,keyB:null});else{var e=this.getIndex(t);if(-1!==e&&e0){var i=this.getScene(t);this.scenes.splice(e,1),this.scenes.unshift(i)}}return this},moveDown:function(t){if(this.isProcessing)this._queue.push({op:"moveDown",keyA:t,keyB:null});else{var e=this.getIndex(t);if(e>0){var i=e-1,s=this.getScene(t),r=this.getAt(i);this.scenes[e]=r,this.scenes[i]=s}}return this},moveUp:function(t){if(this.isProcessing)this._queue.push({op:"moveUp",keyA:t,keyB:null});else{var e=this.getIndex(t);if(ei),0,r)}}return this},moveBelow:function(t,e){if(t===e)return this;if(this.isProcessing)this._queue.push({op:"moveBelow",keyA:t,keyB:e});else{var i=this.getIndex(t),s=this.getIndex(e);if(-1!==i&&-1!==s&&s>i){var r=this.getAt(s);this.scenes.splice(s,1),0===i?this.scenes.unshift(r):this.scenes.splice(i-(s{var s=i(45319),r=i(83419),n=i(44594),o=i(95540),a=i(37277),h=new r({initialize:function(t){this.scene=t,this.systems=t.sys,this.settings=t.sys.settings,this.key=t.sys.settings.key,this.manager=t.sys.game.scene,this.transitionProgress=0,this._elapsed=0,this._target=null,this._duration=0,this._onUpdate,this._onUpdateScope,this._willSleep=!1,this._willRemove=!1,t.sys.events.once(n.BOOT,this.boot,this),t.sys.events.on(n.START,this.pluginStart,this)},boot:function(){this.systems.events.once(n.DESTROY,this.destroy,this)},pluginStart:function(){this._target=null,this.systems.events.once(n.SHUTDOWN,this.shutdown,this)},start:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",this.key),this.manager.queueOp("start",t,e),this},restart:function(t){var e=this.key;return this.manager.queueOp("stop",e),this.manager.queueOp("start",e,t),this},transition:function(t){void 0===t&&(t={});var e=o(t,"target",!1),i=this.manager.getScene(e);if(!e||!this.checkValidTransition(i))return!1;var s=o(t,"duration",1e3);this._elapsed=0,this._target=i,this._duration=s,this._willSleep=o(t,"sleep",!1),this._willRemove=o(t,"remove",!1);var r=o(t,"onUpdate",null);r&&(this._onUpdate=r,this._onUpdateScope=o(t,"onUpdateScope",this.scene));var a=o(t,"allowInput",!1);this.settings.transitionAllowInput=a;var h=i.sys.settings;h.isTransition=!0,h.transitionFrom=this.scene,h.transitionDuration=s,h.transitionAllowInput=a,o(t,"moveAbove",!1)?this.manager.moveAbove(this.key,e):o(t,"moveBelow",!1)&&this.manager.moveBelow(this.key,e),i.sys.isSleeping()?i.sys.wake(o(t,"data")):this.manager.start(e,o(t,"data"));var l=o(t,"onStart",null),u=o(t,"onStartScope",this.scene);return l&&l.call(u,this.scene,i,s),this.systems.events.emit(n.TRANSITION_OUT,i,s),!0},checkValidTransition:function(t){return!(!t||t.sys.isActive()||t.sys.isTransitioning()||t===this.scene||this.systems.isTransitioning())},step:function(t,e){this._elapsed+=e,this.transitionProgress=s(this._elapsed/this._duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.transitionProgress),this._elapsed>=this._duration&&this.transitionComplete()},transitionComplete:function(){var t=this._target.sys,e=this._target.sys.settings;t.events.emit(n.TRANSITION_COMPLETE,this.scene),e.isTransition=!1,e.transitionFrom=null,this._duration=0,this._target=null,this._onUpdate=null,this._onUpdateScope=null,this._willRemove?this.manager.remove(this.key):this._willSleep?this.systems.sleep():this.manager.stop(this.key)},add:function(t,e,i,s){return this.manager.add(t,e,i,s)},launch:function(t,e){return t&&t!==this.key&&this.manager.queueOp("start",t,e),this},run:function(t,e){return t&&t!==this.key&&this.manager.queueOp("run",t,e),this},pause:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("pause",t,e),this},resume:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("resume",t,e),this},sleep:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("sleep",t,e),this},wake:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("wake",t,e),this},switch:function(t){return t!==this.key&&this.manager.queueOp("switch",this.key,t),this},stop:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",t,e),this},setActive:function(t,e,i){void 0===e&&(e=this.key);var s=this.manager.getScene(e);return s&&s.sys.setActive(t,i),this},setVisible:function(t,e){void 0===e&&(e=this.key);var i=this.manager.getScene(e);return i&&i.sys.setVisible(t),this},isSleeping:function(t){return void 0===t&&(t=this.key),this.manager.isSleeping(t)},isActive:function(t){return void 0===t&&(t=this.key),this.manager.isActive(t)},isPaused:function(t){return void 0===t&&(t=this.key),this.manager.isPaused(t)},isVisible:function(t){return void 0===t&&(t=this.key),this.manager.isVisible(t)},swapPosition:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.swapPosition(t,e),this},moveAbove:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveAbove(t,e),this},moveBelow:function(t,e){return void 0===e&&(e=this.key),t!==e&&this.manager.moveBelow(t,e),this},remove:function(t){return void 0===t&&(t=this.key),this.manager.remove(t),this},moveUp:function(t){return void 0===t&&(t=this.key),this.manager.moveUp(t),this},moveDown:function(t){return void 0===t&&(t=this.key),this.manager.moveDown(t),this},bringToTop:function(t){return void 0===t&&(t=this.key),this.manager.bringToTop(t),this},sendToBack:function(t){return void 0===t&&(t=this.key),this.manager.sendToBack(t),this},get:function(t){return this.manager.getScene(t)},getStatus:function(t){var e=this.manager.getScene(t);if(e)return e.sys.getStatus()},getIndex:function(t){return void 0===t&&(t=this.key),this.manager.getIndex(t)},shutdown:function(){var t=this.systems.events;t.off(n.SHUTDOWN,this.shutdown,this),t.off(n.TRANSITION_OUT)},destroy:function(){this.shutdown(),this.scene.sys.events.off(n.START,this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});a.register("ScenePlugin",h,"scenePlugin"),t.exports=h},55681:(t,e,i)=>{var s=i(89993),r=i(35154),n=i(46975),o=i(87033),a={create:function(t){return"string"==typeof t?t={key:t}:void 0===t&&(t={}),{status:s.PENDING,key:r(t,"key",""),active:r(t,"active",!1),visible:r(t,"visible",!0),isBooted:!1,isTransition:!1,transitionFrom:null,transitionDuration:0,transitionAllowInput:!0,data:{},pack:r(t,"pack",!1),cameras:r(t,"cameras",null),map:r(t,"map",n(o,r(t,"mapAdd",{}))),physics:r(t,"physics",{}),loader:r(t,"loader",{}),plugins:r(t,"plugins",!1),input:r(t,"input",{})}}};t.exports=a},2368:(t,e,i)=>{var s=i(83419),r=i(89993),n=i(42363),o=i(44594),a=i(27397),h=i(52106),l=i(29747),u=i(55681),c=new s({initialize:function(t,e){this.scene=t,this.game,this.renderer,this.config=e,this.settings=u.create(e),this.canvas,this.context,this.anims,this.cache,this.plugins,this.registry,this.scale,this.sound,this.textures,this.add,this.cameras,this.displayList,this.events,this.make,this.scenePlugin,this.updateList,this.sceneUpdate=l},init:function(t){this.settings.status=r.INIT,this.sceneUpdate=l,this.game=t,this.renderer=t.renderer,this.canvas=t.canvas,this.context=t.context;var e=t.plugins;this.plugins=e,e.addToScene(this,n.Global,[n.CoreScene,h(this),a(this)]),this.events.emit(o.BOOT,this),this.settings.isBooted=!0},step:function(t,e){var i=this.events;i.emit(o.PRE_UPDATE,t,e),i.emit(o.UPDATE,t,e),this.sceneUpdate.call(this.scene,t,e),i.emit(o.POST_UPDATE,t,e)},render:function(t){var e=this.displayList;e.depthSort(),this.events.emit(o.PRE_RENDER,t),this.cameras.render(t,e),this.events.emit(o.RENDER,t)},queueDepthSort:function(){this.displayList.queueDepthSort()},depthSort:function(){this.displayList.depthSort()},pause:function(t){var e=this.settings,i=this.getStatus();return i!==r.CREATING&&i!==r.RUNNING?console.warn("Cannot pause non-running Scene",e.key):this.settings.active&&(e.status=r.PAUSED,e.active=!1,this.events.emit(o.PAUSE,this,t)),this},resume:function(t){var e=this.events,i=this.settings;return this.settings.active||(i.status=r.RUNNING,i.active=!0,e.emit(o.RESUME,this,t)),this},sleep:function(t){var e=this.settings,i=this.getStatus();return i!==r.CREATING&&i!==r.RUNNING?console.warn("Cannot sleep non-running Scene",e.key):(e.status=r.SLEEPING,e.active=!1,e.visible=!1,this.events.emit(o.SLEEP,this,t)),this},wake:function(t){var e=this.events,i=this.settings;return i.status=r.RUNNING,i.active=!0,i.visible=!0,e.emit(o.WAKE,this,t),i.isTransition&&e.emit(o.TRANSITION_WAKE,i.transitionFrom,i.transitionDuration),this},getData:function(){return this.settings.data},getStatus:function(){return this.settings.status},canInput:function(){var t=this.settings.status;return t>r.PENDING&&t<=r.RUNNING},isSleeping:function(){return this.settings.status===r.SLEEPING},isActive:function(){return this.settings.status===r.RUNNING},isPaused:function(){return this.settings.status===r.PAUSED},isTransitioning:function(){return this.settings.isTransition||null!==this.scenePlugin._target},isTransitionOut:function(){return null!==this.scenePlugin._target&&this.scenePlugin._duration>0},isTransitionIn:function(){return this.settings.isTransition},isVisible:function(){return this.settings.visible},setVisible:function(t){return this.settings.visible=t,this},setActive:function(t,e){return t?this.resume(e):this.pause(e)},start:function(t){var e=this.events,i=this.settings;t&&(i.data=t),i.status=r.START,i.active=!0,i.visible=!0,e.emit(o.START,this),e.emit(o.READY,this,t)},shutdown:function(t){var e=this.events,i=this.settings;e.off(o.TRANSITION_INIT),e.off(o.TRANSITION_START),e.off(o.TRANSITION_COMPLETE),e.off(o.TRANSITION_OUT),i.status=r.SHUTDOWN,i.active=!1,i.visible=!1,e.emit(o.SHUTDOWN,this,t)},destroy:function(){var t=this.events,e=this.settings;e.status=r.DESTROYED,e.active=!1,e.visible=!1,t.emit(o.DESTROY,this),t.removeAllListeners();for(var i=["scene","game","anims","cache","plugins","registry","sound","textures","add","camera","displayList","events","make","scenePlugin","updateList"],s=0;s{t.exports={PENDING:0,INIT:1,START:2,LOADING:3,CREATING:4,RUNNING:5,PAUSED:6,SLEEPING:7,SHUTDOWN:8,DESTROYED:9}},69830:t=>{t.exports="addedtoscene"},7919:t=>{t.exports="boot"},46763:t=>{t.exports="create"},11763:t=>{t.exports="destroy"},71555:t=>{t.exports="pause"},36735:t=>{t.exports="postupdate"},3809:t=>{t.exports="prerender"},90716:t=>{t.exports="preupdate"},58262:t=>{t.exports="ready"},91633:t=>{t.exports="removedfromscene"},10319:t=>{t.exports="render"},87132:t=>{t.exports="resume"},81961:t=>{t.exports="shutdown"},90194:t=>{t.exports="sleep"},6265:t=>{t.exports="start"},33178:t=>{t.exports="transitioncomplete"},43063:t=>{t.exports="transitioninit"},11259:t=>{t.exports="transitionout"},61611:t=>{t.exports="transitionstart"},45209:t=>{t.exports="transitionwake"},22966:t=>{t.exports="update"},21747:t=>{t.exports="wake"},44594:(t,e,i)=>{t.exports={ADDED_TO_SCENE:i(69830),BOOT:i(7919),CREATE:i(46763),DESTROY:i(11763),PAUSE:i(71555),POST_UPDATE:i(36735),PRE_RENDER:i(3809),PRE_UPDATE:i(90716),READY:i(58262),REMOVED_FROM_SCENE:i(91633),RENDER:i(10319),RESUME:i(87132),SHUTDOWN:i(81961),SLEEP:i(90194),START:i(6265),TRANSITION_COMPLETE:i(33178),TRANSITION_INIT:i(43063),TRANSITION_OUT:i(11259),TRANSITION_START:i(61611),TRANSITION_WAKE:i(45209),UPDATE:i(22966),WAKE:i(21747)}},62194:(t,e,i)=>{var s=i(89993),r=i(79291),n={Events:i(44594),GetPhysicsPlugins:i(27397),GetScenePlugins:i(52106),SceneManager:i(60903),ScenePlugin:i(52209),Settings:i(55681),Systems:i(2368)};n=r(!1,n,s),t.exports=n},30341:(t,e,i)=>{var s=i(83419),r=i(50792),n=i(14463),o=i(79291),a=i(29747),h=new s({Extends:r,initialize:function(t,e,i){r.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=this.duration||0,this.totalDuration=this.totalDuration||0,this.config={mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0},this.currentConfig=this.config,this.config=o(this.config,i),this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name||(this.markers[t.name]?(console.error("addMarker "+t.name+" already exists in Sound"),1):(t=o(!0,{name:"",start:0,duration:this.totalDuration-(t.start||0),config:{mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0}},t),this.markers[t.name]=t,0)))},updateMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name||(this.markers[t.name]?(this.markers[t.name]=o(!0,this.markers[t.name],t),0):(console.warn("Audio Marker: "+t.name+" missing in Sound: "+this.key),1)))},removeMarker:function(t){var e=this.markers[t];return e?(this.markers[t]=null,e):null},play:function(t,e){if(void 0===t&&(t=""),"object"==typeof t&&(e=t,t=""),"string"!=typeof t)return!1;if(t){if(!this.markers[t])return console.warn("Marker: "+t+" missing in Sound: "+this.key),!1;this.currentMarker=this.markers[t],this.currentConfig=this.currentMarker.config,this.duration=this.currentMarker.duration}else this.currentMarker=null,this.currentConfig=this.config,this.duration=this.totalDuration;return this.resetConfig(),this.currentConfig=o(this.currentConfig,e),this.isPlaying=!0,this.isPaused=!1,!0},pause:function(){return!(this.isPaused||!this.isPlaying||(this.isPlaying=!1,this.isPaused=!0,0))},resume:function(){return!(!this.isPaused||this.isPlaying||(this.isPlaying=!0,this.isPaused=!1,0))},stop:function(){return!(!this.isPaused&&!this.isPlaying||(this.isPlaying=!1,this.isPaused=!1,this.resetConfig(),0))},applyConfig:function(){this.mute=this.currentConfig.mute,this.volume=this.currentConfig.volume,this.rate=this.currentConfig.rate,this.detune=this.currentConfig.detune,this.loop=this.currentConfig.loop,this.pan=this.currentConfig.pan},resetConfig:function(){this.currentConfig.seek=0,this.currentConfig.delay=0},update:a,calculateRate:function(){var t=this.currentConfig.detune+this.manager.detune,e=Math.pow(1.0005777895065548,t);this.totalRate=this.currentConfig.rate*this.manager.rate*e},destroy:function(){this.pendingRemove||(this.stop(),this.emit(n.DESTROY,this),this.removeAllListeners(),this.pendingRemove=!0,this.manager=null,this.config=null,this.currentConfig=null,this.markers=null,this.currentMarker=null)}});t.exports=h},85034:(t,e,i)=>{var s=i(83419),r=i(41786),n=i(50792),o=i(14463),a=i(8443),h=i(46710),l=i(58731),u=i(29747),c=i(26099),d=new s({Extends:n,initialize:function(t){n.call(this),this.game=t,this.jsonCache=t.cache.json,this.sounds=[],this.mute=!1,this.volume=1,this.pauseOnBlur=!0,this._rate=1,this._detune=0,this.locked=this.locked||!1,this.unlocked=!1,this.gameLostFocus=!1,this.listenerPosition=new c,t.events.on(a.BLUR,this.onGameBlur,this),t.events.on(a.FOCUS,this.onGameFocus,this),t.events.on(a.PRE_STEP,this.update,this),t.events.once(a.DESTROY,this.destroy,this)},add:u,addAudioSprite:function(t,e){void 0===e&&(e={});var i=this.add(t,e);for(var s in i.spritemap=this.jsonCache.get(t).spritemap,i.spritemap)if(i.spritemap.hasOwnProperty(s)){var n=r(e),o=i.spritemap[s];n.loop=!!o.hasOwnProperty("loop")&&o.loop,i.addMarker({name:s,start:o.start,duration:o.end-o.start,config:n})}return i},get:function(t){return l(this.sounds,"key",t)},getAll:function(t){return t?h(this.sounds,"key",t):h(this.sounds)},getAllPlaying:function(){return h(this.sounds,"isPlaying",!0)},play:function(t,e){var i=this.add(t);return i.once(o.COMPLETE,i.destroy,i),e?e.name?(i.addMarker(e),i.play(e.name)):i.play(e):i.play()},playAudioSprite:function(t,e,i){var s=this.addAudioSprite(t);return s.once(o.COMPLETE,s.destroy,s),s.play(e,i)},remove:function(t){var e=this.sounds.indexOf(t);return-1!==e&&(t.destroy(),this.sounds.splice(e,1),!0)},removeAll:function(){this.sounds.forEach((function(t){t.destroy()})),this.sounds.length=0},removeByKey:function(t){for(var e=0,i=this.sounds.length-1;i>=0;i--){var s=this.sounds[i];s.key===t&&(s.destroy(),this.sounds.splice(i,1),e++)}return e},pauseAll:function(){this.forEachActiveSound((function(t){t.pause()})),this.emit(o.PAUSE_ALL,this)},resumeAll:function(){this.forEachActiveSound((function(t){t.resume()})),this.emit(o.RESUME_ALL,this)},setListenerPosition:u,stopAll:function(){this.forEachActiveSound((function(t){t.stop()})),this.emit(o.STOP_ALL,this)},stopByKey:function(t){var e=0;return this.getAll(t).forEach((function(t){t.stop()&&e++})),e},unlock:u,onBlur:u,onFocus:u,onGameBlur:function(){this.gameLostFocus=!0,this.pauseOnBlur&&this.onBlur()},onGameFocus:function(){this.gameLostFocus=!1,this.pauseOnBlur&&this.onFocus()},update:function(t,e){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit(o.UNLOCKED,this));for(var i=this.sounds.length-1;i>=0;i--)this.sounds[i].pendingRemove&&this.sounds.splice(i,1);this.sounds.forEach((function(i){i.update(t,e)}))},destroy:function(){this.game.events.off(a.BLUR,this.onGameBlur,this),this.game.events.off(a.FOCUS,this.onGameFocus,this),this.game.events.off(a.PRE_STEP,this.update,this),this.removeAllListeners(),this.removeAll(),this.sounds.length=0,this.sounds=null,this.listenerPosition=null,this.game=null},forEachActiveSound:function(t,e){var i=this;this.sounds.forEach((function(s,r){s&&!s.pendingRemove&&t.call(e||i,s,r,i.sounds)}))},setRate:function(t){return this.rate=t,this},rate:{get:function(){return this._rate},set:function(t){this._rate=t,this.forEachActiveSound((function(t){t.calculateRate()})),this.emit(o.GLOBAL_RATE,this,t)}},setDetune:function(t){return this.detune=t,this},detune:{get:function(){return this._detune},set:function(t){this._detune=t,this.forEachActiveSound((function(t){t.calculateRate()})),this.emit(o.GLOBAL_DETUNE,this,t)}}});t.exports=d},14747:(t,e,i)=>{var s=i(33684),r=i(25960),n=i(57490),o={create:function(t){var e=t.config.audio,i=t.device.audio;return e.noAudio||!i.webAudio&&!i.audioData?new r(t):i.webAudio&&!e.disableWebAudio?new n(t):new s(t)}};t.exports=o},19723:t=>{t.exports="complete"},98882:t=>{t.exports="decodedall"},57506:t=>{t.exports="decoded"},73146:t=>{t.exports="destroy"},11305:t=>{t.exports="detune"},40577:t=>{t.exports="detune"},30333:t=>{t.exports="mute"},20394:t=>{t.exports="rate"},21802:t=>{t.exports="volume"},1299:t=>{t.exports="looped"},99190:t=>{t.exports="loop"},97125:t=>{t.exports="mute"},89259:t=>{t.exports="pan"},79986:t=>{t.exports="pauseall"},17586:t=>{t.exports="pause"},19618:t=>{t.exports="play"},42306:t=>{t.exports="rate"},10387:t=>{t.exports="resumeall"},48959:t=>{t.exports="resume"},9960:t=>{t.exports="seek"},19180:t=>{t.exports="stopall"},98328:t=>{t.exports="stop"},50401:t=>{t.exports="unlocked"},52498:t=>{t.exports="volume"},14463:(t,e,i)=>{t.exports={COMPLETE:i(19723),DECODED:i(57506),DECODED_ALL:i(98882),DESTROY:i(73146),DETUNE:i(11305),GLOBAL_DETUNE:i(40577),GLOBAL_MUTE:i(30333),GLOBAL_RATE:i(20394),GLOBAL_VOLUME:i(21802),LOOP:i(99190),LOOPED:i(1299),MUTE:i(97125),PAN:i(89259),PAUSE_ALL:i(79986),PAUSE:i(17586),PLAY:i(19618),RATE:i(42306),RESUME_ALL:i(10387),RESUME:i(48959),SEEK:i(9960),STOP_ALL:i(19180),STOP:i(98328),UNLOCKED:i(50401),VOLUME:i(52498)}},64895:(t,e,i)=>{var s=i(30341),r=i(83419),n=i(14463),o=i(45319),a=new r({Extends:s,initialize:function(t,e,i){if(void 0===i&&(i={}),this.tags=t.game.cache.audio.get(e),!this.tags)throw new Error('No cached audio asset with key "'+e);this.audio=null,this.startTime=0,this.previousTime=0,this.duration=this.tags[0].duration,this.totalDuration=this.tags[0].duration,s.call(this,t,e,i)},play:function(t,e){return!(this.manager.isLocked(this,"play",[t,e])||!s.prototype.play.call(this,t,e)||!this.pickAndPlayAudioTag()||(this.emit(n.PLAY,this),0))},pause:function(){return!(this.manager.isLocked(this,"pause")||this.startTime>0||!s.prototype.pause.call(this)||(this.currentConfig.seek=this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0),this.stopAndReleaseAudioTag(),this.emit(n.PAUSE,this),0))},resume:function(){return!(this.manager.isLocked(this,"resume")||this.startTime>0||!s.prototype.resume.call(this)||!this.pickAndPlayAudioTag()||(this.emit(n.RESUME,this),0))},stop:function(){return!this.manager.isLocked(this,"stop")&&!!s.prototype.stop.call(this)&&(this.stopAndReleaseAudioTag(),this.emit(n.STOP,this),!0)},pickAndPlayAudioTag:function(){if(!this.pickAudioTag())return this.reset(),!1;var t=this.currentConfig.seek,e=this.currentConfig.delay,i=(this.currentMarker?this.currentMarker.start:0)+t;return this.previousTime=i,this.audio.currentTime=i,this.applyConfig(),0===e?(this.startTime=0,this.audio.paused&&this.playCatchPromise()):(this.startTime=window.performance.now()+1e3*e,this.audio.paused||this.audio.pause()),this.resetConfig(),!0},pickAudioTag:function(){if(this.audio)return!0;for(var t=0;t0)this.startTime=i-this.manager.loopEndOffset?(this.audio.currentTime=e+Math.max(0,s-i),s=this.audio.currentTime):s=i)return this.reset(),this.stopAndReleaseAudioTag(),void this.emit(n.COMPLETE,this);this.previousTime=s}},destroy:function(){s.prototype.destroy.call(this),this.tags=null,this.audio&&this.stopAndReleaseAudioTag()},updateMute:function(){this.audio&&(this.audio.muted=this.currentConfig.mute||this.manager.mute)},updateVolume:function(){this.audio&&(this.audio.volume=o(this.currentConfig.volume*this.manager.volume,0,1))},calculateRate:function(){s.prototype.calculateRate.call(this),this.audio&&(this.audio.playbackRate=this.totalRate)},mute:{get:function(){return this.currentConfig.mute},set:function(t){this.currentConfig.mute=t,this.manager.isLocked(this,"mute",t)||(this.updateMute(),this.emit(n.MUTE,this,t))}},setMute:function(t){return this.mute=t,this},volume:{get:function(){return this.currentConfig.volume},set:function(t){this.currentConfig.volume=t,this.manager.isLocked(this,"volume",t)||(this.updateVolume(),this.emit(n.VOLUME,this,t))}},setVolume:function(t){return this.volume=t,this},rate:{get:function(){return this.currentConfig.rate},set:function(t){this.currentConfig.rate=t,this.manager.isLocked(this,n.RATE,t)||(this.calculateRate(),this.emit(n.RATE,this,t))}},setRate:function(t){return this.rate=t,this},detune:{get:function(){return this.currentConfig.detune},set:function(t){this.currentConfig.detune=t,this.manager.isLocked(this,n.DETUNE,t)||(this.calculateRate(),this.emit(n.DETUNE,this,t))}},setDetune:function(t){return this.detune=t,this},seek:{get:function(){return this.isPlaying?this.audio.currentTime-(this.currentMarker?this.currentMarker.start:0):this.isPaused?this.currentConfig.seek:0},set:function(t){this.manager.isLocked(this,"seek",t)||this.startTime>0||(this.isPlaying||this.isPaused)&&(t=Math.min(Math.max(0,t),this.duration),this.isPlaying?(this.previousTime=t,this.audio.currentTime=t):this.isPaused&&(this.currentConfig.seek=t),this.emit(n.SEEK,this,t))}},setSeek:function(t){return this.seek=t,this},loop:{get:function(){return this.currentConfig.loop},set:function(t){this.currentConfig.loop=t,this.manager.isLocked(this,"loop",t)||(this.audio&&(this.audio.loop=t),this.emit(n.LOOP,this,t))}},setLoop:function(t){return this.loop=t,this},pan:{get:function(){return this.currentConfig.pan},set:function(t){this.currentConfig.pan=t,this.emit(n.PAN,this,t)}},setPan:function(t){return this.pan=t,this}});t.exports=a},33684:(t,e,i)=>{var s=i(85034),r=i(83419),n=i(14463),o=i(64895),a=new r({Extends:s,initialize:function(t){this.override=!0,this.audioPlayDelay=.1,this.loopEndOffset=.05,this.onBlurPausedSounds=[],this.locked="ontouchstart"in window,this.lockedActionsQueue=this.locked?[]:null,this._mute=!1,this._volume=1,s.call(this,t)},add:function(t,e){var i=new o(this,t,e);return this.sounds.push(i),i},unlock:function(){this.locked=!1;var t=this;if(this.game.cache.audio.entries.each((function(e,i){for(var s=0;s{t.exports={SoundManagerCreator:i(14747),Events:i(14463),BaseSound:i(30341),BaseSoundManager:i(85034),WebAudioSound:i(71741),WebAudioSoundManager:i(57490),HTML5AudioSound:i(64895),HTML5AudioSoundManager:i(33684),NoAudioSound:i(4603),NoAudioSoundManager:i(25960)}},4603:(t,e,i)=>{var s=i(30341),r=i(83419),n=i(50792),o=i(79291),a=i(29747),h=function(){return!1},l=function(){return null},u=function(){return this},c=new r({Extends:n,initialize:function(t,e,i){void 0===i&&(i={}),n.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=0,this.totalDuration=0,this.config=o({mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0},i),this.currentConfig=this.config,this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.seek=0,this.loop=!1,this.pan=0,this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:h,updateMarker:h,removeMarker:l,play:h,pause:h,resume:h,stop:h,setMute:u,setVolume:u,setRate:u,setDetune:u,setSeek:u,setLoop:u,setPan:u,applyConfig:l,resetConfig:l,update:a,calculateRate:l,destroy:function(){s.prototype.destroy.call(this)}});t.exports=c},25960:(t,e,i)=>{var s=i(85034),r=i(83419),n=i(50792),o=i(4603),a=i(29747),h=new r({Extends:n,initialize:function(t){n.call(this),this.game=t,this.sounds=[],this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.pauseOnBlur=!0,this.locked=!1},add:function(t,e){var i=new o(this,t,e);return this.sounds.push(i),i},addAudioSprite:function(t,e){var i=this.add(t,e);return i.spritemap={},i},get:function(t){return s.prototype.get.call(this,t)},getAll:function(t){return s.prototype.getAll.call(this,t)},play:function(t,e){return!1},playAudioSprite:function(t,e,i){return!1},remove:function(t){return s.prototype.remove.call(this,t)},removeAll:function(){return s.prototype.removeAll.call(this)},removeByKey:function(t){return s.prototype.removeByKey.call(this,t)},stopByKey:function(t){return s.prototype.stopByKey.call(this,t)},onBlur:a,onFocus:a,onGameBlur:a,onGameFocus:a,pauseAll:a,resumeAll:a,stopAll:a,update:a,setRate:a,setDetune:a,setMute:a,setVolume:a,unlock:a,forEachActiveSound:function(t,e){s.prototype.forEachActiveSound.call(this,t,e)},destroy:function(){s.prototype.destroy.call(this)}});t.exports=h},71741:(t,e,i)=>{var s=i(30341),r=i(83419),n=i(14463),o=i(95540),a=new r({Extends:s,initialize:function(t,e,i){if(void 0===i&&(i={}),this.audioBuffer=t.game.cache.audio.get(e),!this.audioBuffer)throw new Error('Audio key "'+e+'" missing from cache');this.source=null,this.loopSource=null,this.muteNode=t.context.createGain(),this.volumeNode=t.context.createGain(),this.pannerNode=null,this.spatialNode=null,this.spatialSource=null,this.playTime=0,this.startTime=0,this.loopTime=0,this.rateUpdates=[],this.hasEnded=!1,this.hasLooped=!1,this.muteNode.connect(this.volumeNode),t.context.createPanner&&(this.spatialNode=t.context.createPanner(),this.volumeNode.connect(this.spatialNode)),t.context.createStereoPanner?(this.pannerNode=t.context.createStereoPanner(),t.context.createPanner?this.spatialNode.connect(this.pannerNode):this.volumeNode.connect(this.pannerNode),this.pannerNode.connect(t.destination)):t.context.createPanner?this.spatialNode.connect(t.destination):this.volumeNode.connect(t.destination),this.duration=this.audioBuffer.duration,this.totalDuration=this.audioBuffer.duration,s.call(this,t,e,i)},play:function(t,e){return!!s.prototype.play.call(this,t,e)&&(this.stopAndRemoveBufferSource(),this.createAndStartBufferSource(),this.emit(n.PLAY,this),!0)},pause:function(){return!(this.manager.context.currentTime{var s=i(53134),r=i(85034),n=i(83419),o=i(14463),a=i(8443),h=i(71741),l=i(95540),u=new n({Extends:r,initialize:function(t){this.context=this.createAudioContext(t),this.masterMuteNode=this.context.createGain(),this.masterVolumeNode=this.context.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(this.context.destination),this.destination=this.masterMuteNode,this.locked="suspended"===this.context.state&&("ontouchstart"in window||"onclick"in window),r.call(this,t),this.locked&&t.isBooted?this.unlock():t.events.once(a.BOOT,this.unlock,this)},createAudioContext:function(t){var e=t.config.audio;return e.context?(e.context.resume(),e.context):window.hasOwnProperty("AudioContext")?new AudioContext:window.hasOwnProperty("webkitAudioContext")?new window.webkitAudioContext:void 0},setAudioContext:function(t){return this.context&&this.context.close(),this.masterMuteNode&&this.masterMuteNode.disconnect(),this.masterVolumeNode&&this.masterVolumeNode.disconnect(),this.context=t,this.masterMuteNode=t.createGain(),this.masterVolumeNode=t.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(t.destination),this.destination=this.masterMuteNode,this},add:function(t,e){var i=new h(this,t,e);return this.sounds.push(i),i},decodeAudio:function(t,e){var i;i=Array.isArray(t)?t:[{key:t,data:e}];for(var r=this.game.cache.audio,n=i.length,a=0;a{var s=i(37105),r=i(83419),n=i(29747),o=i(19186),a=new r({initialize:function(t){this.parent=t,this.list=[],this.position=0,this.addCallback=n,this.removeCallback=n,this._sortKey=""},add:function(t,e){return e?s.Add(this.list,t):s.Add(this.list,t,0,this.addCallback,this)},addAt:function(t,e,i){return i?s.AddAt(this.list,t,e):s.AddAt(this.list,t,e,0,this.addCallback,this)},getAt:function(t){return this.list[t]},getIndex:function(t){return this.list.indexOf(t)},sort:function(t,e){return t?(void 0===e&&(e=function(e,i){return e[t]-i[t]}),o(this.list,e),this):this},getByName:function(t){return s.GetFirst(this.list,"name",t)},getRandom:function(t,e){return s.GetRandom(this.list,t,e)},getFirst:function(t,e,i,r){return s.GetFirst(this.list,t,e,i,r)},getAll:function(t,e,i,r){return s.GetAll(this.list,t,e,i,r)},count:function(t,e){return s.CountAllMatching(this.list,t,e)},swap:function(t,e){s.Swap(this.list,t,e)},moveTo:function(t,e){return s.MoveTo(this.list,t,e)},moveAbove:function(t,e){return s.MoveAbove(this.list,t,e)},moveBelow:function(t,e){return s.MoveBelow(this.list,t,e)},remove:function(t,e){return e?s.Remove(this.list,t):s.Remove(this.list,t,this.removeCallback,this)},removeAt:function(t,e){return e?s.RemoveAt(this.list,t):s.RemoveAt(this.list,t,this.removeCallback,this)},removeBetween:function(t,e,i){return i?s.RemoveBetween(this.list,t,e):s.RemoveBetween(this.list,t,e,this.removeCallback,this)},removeAll:function(t){for(var e=this.list.length;e--;)this.remove(this.list[e],t);return this},bringToTop:function(t){return s.BringToTop(this.list,t)},sendToBack:function(t){return s.SendToBack(this.list,t)},moveUp:function(t){return s.MoveUp(this.list,t),t},moveDown:function(t){return s.MoveDown(this.list,t),t},reverse:function(){return this.list.reverse(),this},shuffle:function(){return s.Shuffle(this.list),this},replace:function(t,e){return s.Replace(this.list,t,e)},exists:function(t){return this.list.indexOf(t)>-1},setAll:function(t,e,i,r){return s.SetAll(this.list,t,e,i,r),this},each:function(t,e){for(var i=[null],s=2;s0?this.list[0]:null}},last:{get:function(){return this.list.length>0?(this.position=this.list.length-1,this.list[this.position]):null}},next:{get:function(){return this.position0?(this.position--,this.list[this.position]):null}}});t.exports=a},90330:(t,e,i)=>{var s=new(i(83419))({initialize:function(t){this.entries={},this.size=0,this.setAll(t)},setAll:function(t){if(Array.isArray(t))for(var e=0;e{var s=i(83419),r=i(50792),n=i(82348),o=new s({Extends:r,initialize:function(){r.call(this),this._pending=[],this._active=[],this._destroy=[],this._toProcess=0,this.checkQueue=!1},isActive:function(t){return this._active.indexOf(t)>-1},isPending:function(t){return this._toProcess>0&&this._pending.indexOf(t)>-1},isDestroying:function(t){return this._destroy.indexOf(t)>-1},add:function(t){return this.checkQueue&&this.isActive(t)&&!this.isDestroying(t)||this.isPending(t)||(this._pending.push(t),this._toProcess++),t},remove:function(t){if(this.isPending(t)){var e=this._pending,i=e.indexOf(t);-1!==i&&e.splice(i,1)}else this.isActive(t)&&(this._destroy.push(t),this._toProcess++);return t},removeAll:function(){for(var t=this._active,e=this._destroy,i=t.length;i--;)e.push(t[i]),this._toProcess++;return this},update:function(){if(0===this._toProcess)return this._active;var t,e,i=this._destroy,s=this._active;for(t=0;t{var s=i(43886);function r(t){if(!(this instanceof r))return new r(t);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}function n(t,e,i){if(!i)return e.indexOf(t);for(var s=0;s=t.minX&&e.maxY>=t.minY}function g(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function m(t,e,i,r,n){for(var o,a=[e,i];a.length;)(i=a.pop())-(e=a.pop())<=r||(o=e+Math.ceil((i-e)/r/2)*r,s(t,o,e,i,n),a.push(e,o,o,i))}r.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],s=this.toBBox;if(!f(t,e))return i;for(var r,n,o,a,h=[];e;){for(r=0,n=e.children.length;r=0&&n[e].children.length>this._maxEntries;)this._split(n,e),e--;this._adjustParentBBoxes(r,n,e)},_split:function(t,e){var i=t[e],s=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,s);var n=this._chooseSplitIndex(i,r,s),a=g(i.children.splice(n,i.children.length-n));a.height=i.height,a.leaf=i.leaf,o(i,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},_splitRoot:function(t,e){this.data=g([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){var s,r,n,o,h,l,u,d,p,f,g,m,v,y;for(l=u=1/0,s=e;s<=i-e;s++)r=a(t,0,s,this.toBBox),n=a(t,s,i,this.toBBox),p=r,f=n,g=void 0,m=void 0,v=void 0,y=void 0,g=Math.max(p.minX,f.minX),m=Math.max(p.minY,f.minY),v=Math.min(p.maxX,f.maxX),y=Math.min(p.maxY,f.maxY),o=Math.max(0,v-g)*Math.max(0,y-m),h=c(r)+c(n),o=e;r--)n=t.children[r],h(u,t.leaf?o(n):n),c+=d(u);return c},_adjustParentBBoxes:function(t,e,i){for(var s=i;s>=0;s--)h(e[s],t)},_condense:function(t){for(var e,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(e=t[i-1].children).splice(e.indexOf(t[i]),1):this.clear():o(t[i],this.toBBox)},compareMinX:function(t,e){return t.left-e.left},compareMinY:function(t,e){return t.top-e.top},toBBox:function(t){return{minX:t.left,minY:t.top,maxX:t.right,maxY:t.bottom}}},t.exports=r},35072:(t,e,i)=>{var s=new(i(83419))({initialize:function(t){if(this.entries=[],Array.isArray(t))for(var e=0;e-1&&this.entries.splice(e,1),this},dump:function(){console.group("Set");for(var t=0;t-1},union:function(t){var e=new s;return t.entries.forEach((function(t){e.set(t)})),this.entries.forEach((function(t){e.set(t)})),e},intersect:function(t){var e=new s;return this.entries.forEach((function(i){t.contains(i)&&e.set(i)})),e},difference:function(t){var e=new s;return this.entries.forEach((function(i){t.contains(i)||e.set(i)})),e},size:{get:function(){return this.entries.length},set:function(t){return t{var s=i(45319),r=i(83419),n=i(56583),o=i(26099),a=new r({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===s&&(s=null),this._width=t,this._height=e,this._parent=s,this.aspectMode=i,this.aspectRatio=0===e?1:t/e,this.minWidth=0,this.minHeight=0,this.maxWidth=Number.MAX_VALUE,this.maxHeight=Number.MAX_VALUE,this.snapTo=new o},setAspectMode:function(t){return void 0===t&&(t=0),this.aspectMode=t,this.setSize(this._width,this._height)},setSnap:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.snapTo.set(t,e),this.setSize(this._width,this._height)},setParent:function(t){return this._parent=t,this.setSize(this._width,this._height)},setMin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.minWidth=s(t,0,this.maxWidth),this.minHeight=s(e,0,this.maxHeight),this.setSize(this._width,this._height)},setMax:function(t,e){return void 0===t&&(t=Number.MAX_VALUE),void 0===e&&(e=t),this.maxWidth=s(t,this.minWidth,Number.MAX_VALUE),this.maxHeight=s(e,this.minHeight,Number.MAX_VALUE),this.setSize(this._width,this._height)},setSize:function(t,e){switch(void 0===t&&(t=0),void 0===e&&(e=t),this.aspectMode){case a.NONE:this._width=this.getNewWidth(n(t,this.snapTo.x)),this._height=this.getNewHeight(n(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height;break;case a.WIDTH_CONTROLS_HEIGHT:this._width=this.getNewWidth(n(t,this.snapTo.x)),this._height=this.getNewHeight(this._width*(1/this.aspectRatio),!1);break;case a.HEIGHT_CONTROLS_WIDTH:this._height=this.getNewHeight(n(e,this.snapTo.y)),this._width=this.getNewWidth(this._height*this.aspectRatio,!1);break;case a.FIT:this.constrain(t,e,!0);break;case a.ENVELOP:this.constrain(t,e,!1)}return this},setAspectRatio:function(t){return this.aspectRatio=t,this.setSize(this._width,this._height)},resize:function(t,e){return this._width=this.getNewWidth(n(t,this.snapTo.x)),this._height=this.getNewHeight(n(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height,this},getNewWidth:function(t,e){return void 0===e&&(e=!0),t=s(t,this.minWidth,this.maxWidth),e&&this._parent&&t>this._parent.width&&(t=Math.max(this.minWidth,this._parent.width)),t},getNewHeight:function(t,e){return void 0===e&&(e=!0),t=s(t,this.minHeight,this.maxHeight),e&&this._parent&&t>this._parent.height&&(t=Math.max(this.minHeight,this._parent.height)),t},constrain:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=!0),t=this.getNewWidth(t),e=this.getNewHeight(e);var s=this.snapTo,r=0===e?1:t/e;return i&&this.aspectRatio>r||!i&&this.aspectRatio0&&(t=(e=n(e,s.y))*this.aspectRatio)):(i&&this.aspectRatior)&&(t=(e=n(e,s.y))*this.aspectRatio,s.x>0&&(e=(t=n(t,s.x))*(1/this.aspectRatio))),this._width=t,this._height=e,this},fitTo:function(t,e){return this.constrain(t,e,!0)},envelop:function(t,e){return this.constrain(t,e,!1)},setWidth:function(t){return this.setSize(t,this._height)},setHeight:function(t){return this.setSize(this._width,t)},toString:function(){return"[{ Size (width="+this._width+" height="+this._height+" aspectRatio="+this.aspectRatio+" aspectMode="+this.aspectMode+") }]"},setCSS:function(t){t&&t.style&&(t.style.width=this._width+"px",t.style.height=this._height+"px")},copy:function(t){return t.setAspectMode(this.aspectMode),t.aspectRatio=this.aspectRatio,t.setSize(this.width,this.height)},destroy:function(){this._parent=null,this.snapTo=null},width:{get:function(){return this._width},set:function(t){this.setSize(t,this._height)}},height:{get:function(){return this._height},set:function(t){this.setSize(this._width,t)}}});a.NONE=0,a.WIDTH_CONTROLS_HEIGHT=1,a.HEIGHT_CONTROLS_WIDTH=2,a.FIT=3,a.ENVELOP=4,t.exports=a},15238:t=>{t.exports="add"},56187:t=>{t.exports="remove"},82348:(t,e,i)=>{t.exports={PROCESS_QUEUE_ADD:i(15238),PROCESS_QUEUE_REMOVE:i(56187)}},41392:(t,e,i)=>{t.exports={Events:i(82348),List:i(73162),Map:i(90330),ProcessQueue:i(25774),RTree:i(59542),Set:i(35072),Size:i(86555)}},57382:(t,e,i)=>{var s=i(83419),r=i(45319),n=i(40987),o=i(8054),a=i(50030),h=i(79237),l=new s({Extends:h,initialize:function(t,e,i,s,r){h.call(this,t,e,i,s,r),this.add("__BASE",0,0,0,s,r),this._source=this.frames.__BASE.source,this.canvas=this._source.image,this.context=this.canvas.getContext("2d",{willReadFrequently:!0}),this.width=s,this.height=r,this.imageData=this.context.getImageData(0,0,s,r),this.data=null,this.imageData&&(this.data=this.imageData.data),this.pixels=null,this.buffer,this.data&&(this.imageData.data.buffer?(this.buffer=this.imageData.data.buffer,this.pixels=new Uint32Array(this.buffer)):window.ArrayBuffer?(this.buffer=new ArrayBuffer(this.imageData.data.length),this.pixels=new Uint32Array(this.buffer)):this.pixels=this.imageData.data)},update:function(){return this.imageData=this.context.getImageData(0,0,this.width,this.height),this.data=this.imageData.data,this.imageData.data.buffer?(this.buffer=this.imageData.data.buffer,this.pixels=new Uint32Array(this.buffer)):window.ArrayBuffer?(this.buffer=new ArrayBuffer(this.imageData.data.length),this.pixels=new Uint32Array(this.buffer)):this.pixels=this.imageData.data,this.manager.game.config.renderType===o.WEBGL&&this.refresh(),this},draw:function(t,e,i,s){return void 0===s&&(s=!0),this.context.drawImage(i,t,e),s&&this.update(),this},drawFrame:function(t,e,i,s,r){void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=!0);var n=this.manager.getFrame(t,e);if(n){var o=n.canvasData,a=n.cutWidth,h=n.cutHeight,l=n.source.resolution;this.context.drawImage(n.source.image,o.x,o.y,a,h,i,s,a/l,h/l),r&&this.update()}return this},setPixel:function(t,e,i,s,r,n){if(void 0===n&&(n=255),t=Math.abs(Math.floor(t)),e=Math.abs(Math.floor(e)),this.getIndex(t,e)>-1){var o=this.context.getImageData(t,e,1,1);o.data[0]=i,o.data[1]=s,o.data[2]=r,o.data[3]=n,this.context.putImageData(o,t,e)}return this},putData:function(t,e,i,s,r,n,o){return void 0===s&&(s=0),void 0===r&&(r=0),void 0===n&&(n=t.width),void 0===o&&(o=t.height),this.context.putImageData(t,e,i,s,r,n,o),this},getData:function(t,e,i,s){return t=r(Math.floor(t),0,this.width-1),e=r(Math.floor(e),0,this.height-1),i=r(i,1,this.width-t),s=r(s,1,this.height-e),this.context.getImageData(t,e,i,s)},getPixel:function(t,e,i){i||(i=new n);var s=this.getIndex(t,e);if(s>-1){var r=this.data,o=r[s+0],a=r[s+1],h=r[s+2],l=r[s+3];i.setTo(o,a,h,l)}return i},getPixels:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.width),void 0===s&&(s=i),t=Math.abs(Math.round(t)),e=Math.abs(Math.round(e));for(var o=r(t,0,this.width),a=r(t+i,0,this.width),h=r(e,0,this.height),l=r(e+s,0,this.height),u=new n,c=[],d=h;d{var s=i(10312),r=i(71911),n=i(27919),o=i(83419),a=i(8054),h=i(4327),l=i(95540),u=i(36060),c=i(32302),d=i(79237),p=i(70554),f=new o({Extends:d,initialize:function(t,e,i,s){void 0===i&&(i=256),void 0===s&&(s=256),this.type="DynamicTexture";var o=t.game.renderer,h=o&&o.type===a.CANVAS,l=h?n.create2D(this,i,s):[this];d.call(this,t,e,l,i,s),this.add("__BASE",0,0,0,i,s),this.renderer=o,this.width=-1,this.height=-1,this.isDrawing=!1,this.canvas=h?l:null,this.context=h?l.getContext("2d",{willReadFrequently:!0}):null,this.dirty=!1,this.isSpriteTexture=!0,this._eraseMode=!1,this.camera=new r(0,0,i,s).setScene(t.game.scene.systemScene,!1),this.renderTarget=h?null:new c(o,i,s,1,0,!1,!0,!0,!1),this.pipeline=h?null:o.pipelines.get(u.SINGLE_PIPELINE),this.setSize(i,s)},setSize:function(t,e){void 0===e&&(e=t);var i=this.get(),s=i.source;if(t!==this.width||e!==this.height){this.canvas&&(this.canvas.width=t,this.canvas.height=e);var r=this.renderTarget;r&&(r.willResize(t,e)&&r.resize(t,e),r.texture!==s.glTexture&&this.renderer.deleteTexture(s.glTexture),this.setFromRenderTarget()),this.camera.setSize(t,e),s.width=t,s.height=e,i.setSize(t,e),this.width=t,this.height=e}else{var n=this.getSourceImage();i.cutX+t>n.width&&(t=n.width-i.cutX),i.cutY+e>n.height&&(e=n.height-i.cutY),i.setSize(t,e,i.cutX,i.cutY)}return this},setFromRenderTarget:function(){var t=this.get().source,e=this.renderTarget;return t.isRenderTexture=!0,t.isGLTexture=!0,t.glTexture=e.texture,this},setIsSpriteTexture:function(t){return this.isSpriteTexture=t,this},fill:function(t,e,i,s,r,n){var o=this.camera,a=this.renderer;void 0===e&&(e=1),void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=this.width),void 0===n&&(n=this.height);var h=t>>16&255,l=t>>8&255,u=255&t,c=this.renderTarget;if(o.preRender(),c){c.bind(!0);var d=this.pipeline.manager.set(this.pipeline),f=a.width/c.width,g=a.height/c.height,m=c.height-(s+n);d.drawFillRect(i*f,m*g,r*f,n*g,p.getTintFromFloats(u/255,l/255,h/255,1),e),c.unbind(!0)}else{var v=this.context;a.setContext(v),v.globalCompositeOperation="source-over",v.fillStyle="rgba("+h+","+l+","+u+","+e+")",v.fillRect(i,s,r,n),a.setContext()}return this.dirty=!0,this},clear:function(){if(this.dirty){var t=this.context,e=this.renderTarget;e?e.clear():t&&(t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,this.width,this.height),t.restore()),this.dirty=!1}return this},stamp:function(t,e,i,s,r){void 0===i&&(i=0),void 0===s&&(s=0);var n=l(r,"alpha",1),o=l(r,"tint",16777215),a=l(r,"angle",0),h=l(r,"rotation",0),u=l(r,"scale",1),c=l(r,"scaleX",u),d=l(r,"scaleY",u),p=l(r,"originX",.5),f=l(r,"originY",.5),g=l(r,"blendMode",0),m=l(r,"erase",!1),v=l(r,"skipBatch",!1),y=this.manager.resetStamp(n,o);return y.setAngle(0),0!==a?y.setAngle(a):0!==h&&y.setRotation(h),y.setScale(c,d),y.setTexture(t,e),y.setOrigin(p,f),y.setBlendMode(g),m&&(this._eraseMode=!0),v?this.batchGameObject(y,i,s):this.draw(y,i,s),m&&(this._eraseMode=!1),this},erase:function(t,e,i){return this._eraseMode=!0,this.draw(t,e,i),this._eraseMode=!1,this},draw:function(t,e,i,s,r){return this.beginDraw(),this.batchDraw(t,e,i,s,r),this.endDraw(),this},drawFrame:function(t,e,i,s,r,n){return this.beginDraw(),this.batchDrawFrame(t,e,i,s,r,n),this.endDraw(),this},repeat:function(t,e,i,s,r,n,o,a,l){if(void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=this.width),void 0===n&&(n=this.height),void 0===o&&(o=1),void 0===a&&(a=16777215),void 0===l&&(l=!1),!(e=t instanceof h?t:this.manager.getFrame(t,e)))return this;var u=this.manager.resetStamp(o,a);u.setFrame(e),u.setOrigin(0);var c=e.width,d=e.height;r=Math.floor(r),n=Math.floor(n);var p=Math.ceil(r/c),f=Math.ceil(n/d),g=p*c-r,m=f*d-n;g>0&&(g=c-g),m>0&&(m=d-m),i<0&&(p+=Math.ceil(Math.abs(i)/c)),s<0&&(f+=Math.ceil(Math.abs(s)/d));var v=i,y=s,x=!1,w=this.manager.stampCrop.setTo(0,0,c,d);l||this.beginDraw();for(var T=0;T0&&b===p-1&&(x=!0,w.width=g),m>0&&T===f-1&&(x=!0,w.height=m),x&&u.setCrop(w),this.batchGameObject(u,v,y),u.isCropped=!1,w.setTo(0,0,c,d)),v+=c;v=i,y+=d}return l||this.endDraw(),this},beginDraw:function(){if(!this.isDrawing){var t=this.camera,e=this.renderer,i=this.renderTarget;t.preRender(),i?e.beginCapture(i.width,i.height):e.setContext(this.context),this.isDrawing=!0}return this},batchDraw:function(t,e,i,s,r){return Array.isArray(t)||(t=[t]),this.batchList(t,e,i,s,r),this},batchDrawFrame:function(t,e,i,s,r,n){void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=1),void 0===n&&(n=16777215);var o=this.manager.getFrame(t,e);return o&&(this.renderTarget?this.pipeline.batchTextureFrame(o,i,s,n,r,this.camera.matrix,null):this.batchTextureFrame(o,i,s,r,n)),this},endDraw:function(t){if(void 0===t&&(t=this._eraseMode),this.isDrawing){var e=this.renderer,i=this.renderTarget;if(i){var s=e.endCapture();e.pipelines.setUtility().blitFrame(s,i,1,!1,!1,t,this.isSpriteTexture),e.resetScissor(),e.resetViewport()}else e.setContext();this.dirty=!0,this.isDrawing=!1}return this},batchList:function(t,e,i,s,r){var n=t.length;if(0!==n)for(var o=0;o0&&a.height>0&&o.drawImage(h,a.x,a.y,a.width,a.height,e,i,a.width,a.height),o.restore()}},snapshotArea:function(t,e,i,s,r,n,o){return this.renderTarget?this.renderer.snapshotFramebuffer(this.renderTarget.framebuffer,this.width,this.height,r,!1,t,e,i,s,n,o):this.renderer.snapshotCanvas(this.canvas,r,!1,t,e,i,s,n,o),this},snapshot:function(t,e,i){return this.snapshotArea(0,0,this.width,this.height,t,e,i)},snapshotPixel:function(t,e,i){return this.snapshotArea(t,e,1,1,i,"pixel")},getWebGLTexture:function(){if(this.renderTarget)return this.renderTarget.texture},renderWebGL:function(t,e,i,s){var r=this.manager.resetStamp();r.setTexture(this),r.setOrigin(0),r.renderWebGL(t,r,i,s)},renderCanvas:function(){},destroy:function(){var t=this.manager.stamp;t&&t.texture===this&&this.manager.resetStamp(),d.prototype.destroy.call(this),n.remove(this.canvas),this.renderTarget&&this.renderTarget.destroy(),this.camera.destroy(),this.canvas=null,this.context=null,this.renderer=null}});t.exports=f},4327:(t,e,i)=>{var s=i(83419),r=i(45319),n=i(79291),o=new s({initialize:function(t,e,i,s,r,n,o){this.texture=t,this.name=e,this.source=t.source[i],this.sourceIndex=i,this.cutX,this.cutY,this.cutWidth,this.cutHeight,this.x=0,this.y=0,this.width,this.height,this.halfWidth,this.halfHeight,this.centerX,this.centerY,this.pivotX=0,this.pivotY=0,this.customPivot=!1,this.rotated=!1,this.autoRound=-1,this.customData={},this.u0=0,this.v0=0,this.u1=0,this.v1=0,this.data={cut:{x:0,y:0,w:0,h:0,r:0,b:0},trim:!1,sourceSize:{w:0,h:0},spriteSourceSize:{x:0,y:0,w:0,h:0,r:0,b:0},radius:0,drawImage:{x:0,y:0,width:0,height:0},is3Slice:!1,scale9:!1,scale9Borders:{x:0,y:0,w:0,h:0}},this.setSize(n,o,s,r)},setSize:function(t,e,i,s){void 0===i&&(i=0),void 0===s&&(s=0),this.cutX=i,this.cutY=s,this.cutWidth=t,this.cutHeight=e,this.width=t,this.height=e,this.halfWidth=Math.floor(.5*t),this.halfHeight=Math.floor(.5*e),this.centerX=Math.floor(t/2),this.centerY=Math.floor(e/2);var r=this.data,n=r.cut;n.x=i,n.y=s,n.w=t,n.h=e,n.r=i+t,n.b=s+e,r.sourceSize.w=t,r.sourceSize.h=e,r.spriteSourceSize.w=t,r.spriteSourceSize.h=e,r.radius=.5*Math.sqrt(t*t+e*e);var o=r.drawImage;return o.x=i,o.y=s,o.width=t,o.height=e,this.updateUVs()},setTrim:function(t,e,i,s,r,n){var o=this.data,a=o.spriteSourceSize;return o.trim=!0,o.sourceSize.w=t,o.sourceSize.h=e,a.x=i,a.y=s,a.w=r,a.h=n,a.r=i+r,a.b=s+n,this.x=i,this.y=s,this.width=r,this.height=n,this.halfWidth=.5*r,this.halfHeight=.5*n,this.centerX=Math.floor(r/2),this.centerY=Math.floor(n/2),this.updateUVs()},setScale9:function(t,e,i,s){var r=this.data;return r.scale9=!0,r.is3Slice=0===e&&s===this.height,r.scale9Borders.x=t,r.scale9Borders.y=e,r.scale9Borders.w=i,r.scale9Borders.h=s,this},setCropUVs:function(t,e,i,s,n,o,a){var h=this.cutX,l=this.cutY,u=this.cutWidth,c=this.cutHeight,d=this.realWidth,p=this.realHeight,f=h+(e=r(e,0,d)),g=l+(i=r(i,0,p)),m=s=r(s,0,d-e),v=n=r(n,0,p-i),y=this.data;if(y.trim){var x=y.spriteSourceSize,w=e+(s=r(s,0,u-e)),T=i+(n=r(n,0,c-i));if(x.rw||x.y>T)f=0,g=0,m=0,v=0;else{var b=Math.max(x.x,e),S=Math.max(x.y,i),E=Math.min(x.r,w)-b,C=Math.min(x.b,T)-S;m=E,v=C,f=o?h+(u-(b-x.x)-E):h+(b-x.x),g=a?l+(c-(S-x.y)-C):l+(S-x.y),e=b,i=S,s=E,n=C}}else o&&(f=h+(u-e-s)),a&&(g=l+(c-i-n));var A=this.source.width,_=this.source.height;return t.u0=Math.max(0,f/A),t.v0=Math.max(0,g/_),t.u1=Math.min(1,(f+m)/A),t.v1=Math.min(1,(g+v)/_),t.x=e,t.y=i,t.cx=f,t.cy=g,t.cw=m,t.ch=v,t.width=s,t.height=n,t.flipX=o,t.flipY=a,t},updateCropUVs:function(t,e,i){return this.setCropUVs(t,t.x,t.y,t.width,t.height,e,i)},setUVs:function(t,e,i,s,r,n){var o=this.data.drawImage;return o.width=t,o.height=e,this.u0=i,this.v0=s,this.u1=r,this.v1=n,this},updateUVs:function(){var t=this.cutX,e=this.cutY,i=this.cutWidth,s=this.cutHeight,r=this.data.drawImage;r.width=i,r.height=s;var n=this.source.width,o=this.source.height;return this.u0=t/n,this.v0=e/o,this.u1=(t+i)/n,this.v1=(e+s)/o,this},updateUVsInverted:function(){var t=this.source.width,e=this.source.height;return this.u0=(this.cutX+this.cutHeight)/t,this.v0=this.cutY/e,this.u1=this.cutX/t,this.v1=(this.cutY+this.cutWidth)/e,this},clone:function(){var t=new o(this.texture,this.name,this.sourceIndex);return t.cutX=this.cutX,t.cutY=this.cutY,t.cutWidth=this.cutWidth,t.cutHeight=this.cutHeight,t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t.halfWidth=this.halfWidth,t.halfHeight=this.halfHeight,t.centerX=this.centerX,t.centerY=this.centerY,t.rotated=this.rotated,t.data=n(!0,t.data,this.data),t.updateUVs(),t},destroy:function(){this.texture=null,this.source=null,this.customData=null,this.data=null},glTexture:{get:function(){return this.source.glTexture}},realWidth:{get:function(){return this.data.sourceSize.w}},realHeight:{get:function(){return this.data.sourceSize.h}},radius:{get:function(){return this.data.radius}},trimmed:{get:function(){return this.data.trim}},scale9:{get:function(){return this.data.scale9}},is3Slice:{get:function(){return this.data.is3Slice}},canvasData:{get:function(){return this.data.drawImage}}});t.exports=o},79237:(t,e,i)=>{var s=i(83419),r=i(4327),n=i(11876),o='Texture "%s" has no frame "%s"',a=new s({initialize:function(t,e,i,s,r){Array.isArray(i)||(i=[i]),this.manager=t,this.key=e,this.source=[],this.dataSource=[],this.frames={},this.customData={},this.firstFrame="__BASE",this.frameTotal=0;for(var o=0;or&&(r=a.cutX+a.cutWidth),a.cutY+a.cutHeight>n&&(n=a.cutY+a.cutHeight)}return{x:i,y:s,width:r-i,height:n-s}},getFrameNames:function(t){void 0===t&&(t=!1);var e=Object.keys(this.frames);if(!t){var i=e.indexOf("__BASE");-1!==i&&e.splice(i,1)}return e},getSourceImage:function(t){null!=t&&1!==this.frameTotal||(t="__BASE");var e=this.frames[t];return e?e.source.image:(console.warn(o,this.key,t),this.frames.__BASE.source.image)},getDataSourceImage:function(t){null!=t&&1!==this.frameTotal||(t="__BASE");var e,i=this.frames[t];return i?e=i.sourceIndex:(console.warn(o,this.key,t),e=this.frames.__BASE.sourceIndex),this.dataSource[e].image},setDataSource:function(t){Array.isArray(t)||(t=[t]);for(var e=0;e{var s=i(27919),r=i(57382),n=i(83419),o=i(40987),a=i(8054),h=i(81320),l=i(50792),u=i(69442),c=i(4327),d=i(8443),p=i(99584),f=i(35154),g=i(88571),m=i(41212),v=i(61309),y=i(87841),x=i(79237),w=new n({Extends:l,initialize:function(t){l.call(this),this.game=t,this.name="TextureManager",this.list={},this._tempCanvas=s.create2D(this),this._tempContext=this._tempCanvas.getContext("2d",{willReadFrequently:!0}),this._pending=0,this.stamp,this.stampCrop=new y,this.silentWarnings=!1,t.events.once(d.BOOT,this.boot,this)},boot:function(){this._pending=3,this.on(u.LOAD,this.updatePending,this),this.on(u.ERROR,this.updatePending,this);var t=this.game.config;this.addBase64("__DEFAULT",t.defaultImage),this.addBase64("__MISSING",t.missingImage),this.addBase64("__WHITE",t.whiteImage),this.game.renderer&&this.game.renderer.gl&&this.addUint8Array("__NORMAL",new Uint8Array([127,127,255,255]),1,1),this.game.events.once(d.DESTROY,this.destroy,this),this.game.events.once(d.SYSTEM_READY,(function(t){this.stamp=new g(t).setOrigin(0)}),this)},updatePending:function(){this._pending--,0===this._pending&&(this.off(u.LOAD),this.off(u.ERROR),this.emit(u.READY))},checkKey:function(t){return!this.exists(t)||(this.silentWarnings||console.error("Texture key already in use: "+t),!1)},remove:function(t){if("string"==typeof t){if(!this.exists(t))return this.silentWarnings||console.warn("No texture found matching key: "+t),this;t=this.get(t)}var e=t.key;return this.list.hasOwnProperty(e)&&(t.destroy(),this.emit(u.REMOVE,e),this.emit(u.REMOVE_KEY+e)),this},removeKey:function(t){return this.list.hasOwnProperty(t)&&delete this.list[t],this},addBase64:function(t,e){if(this.checkKey(t)){var i=this,s=new Image;s.onerror=function(){i.emit(u.ERROR,t)},s.onload=function(){var e=i.create(t,s);v.Image(e,0),i.emit(u.ADD,t,e),i.emit(u.ADD_KEY+t,e),i.emit(u.LOAD,t,e)},s.src=e}return this},getBase64:function(t,e,i,r){void 0===i&&(i="image/png"),void 0===r&&(r=.92);var n="",o=this.getFrame(t,e);if(o&&(o.source.isRenderTexture||o.source.isGLTexture))this.silentWarnings||console.warn("Cannot getBase64 from WebGL Texture");else if(o){var a=o.canvasData,h=s.create2D(this,a.width,a.height),l=h.getContext("2d",{willReadFrequently:!0});a.width>0&&a.height>0&&l.drawImage(o.source.image,a.x,a.y,a.width,a.height,0,0,a.width,a.height),n=h.toDataURL(i,r),s.remove(h)}return n},addImage:function(t,e,i){var s=null;return this.checkKey(t)&&(s=this.create(t,e),v.Image(s,0),i&&s.setDataSource(i),this.emit(u.ADD,t,s),this.emit(u.ADD_KEY+t,s)),s},addGLTexture:function(t,e){var i=null;if(this.checkKey(t)){var s=e.width,r=e.height;(i=this.create(t,e,s,r)).add("__BASE",0,0,0,s,r),this.emit(u.ADD,t,i),this.emit(u.ADD_KEY+t,i)}return i},addCompressedTexture:function(t,e,i){var s=null;if(this.checkKey(t)){if((s=this.create(t,e)).add("__BASE",0,0,0,e.width,e.height),i){var r=function(t,e,i){Array.isArray(i.textures)||Array.isArray(i.frames)?v.JSONArray(t,e,i):v.JSONHash(t,e,i)};if(Array.isArray(i))for(var n=0;n=n.x&&t=n.y&&e=n.x&&t=n.y&&e{var s=i(27919),r=i(83419),n=i(50030),o=i(29795),a=i(82751),h=new r({initialize:function(t,e,i,s,r){void 0===r&&(r=!1);var h=t.manager.game;this.renderer=h.renderer,this.texture=t,this.source=e,this.image=e.compressed?null:e,this.compressionAlgorithm=e.compressed?e.format:null,this.resolution=1,this.width=i||e.naturalWidth||e.videoWidth||e.width||0,this.height=s||e.naturalHeight||e.videoHeight||e.height||0,this.scaleMode=o.DEFAULT,this.isCanvas=e instanceof HTMLCanvasElement,this.isVideo=window.hasOwnProperty("HTMLVideoElement")&&e instanceof HTMLVideoElement,this.isRenderTexture="RenderTexture"===e.type||"DynamicTexture"===e.type,this.isGLTexture=e instanceof a,this.isPowerOf2=n(this.width,this.height),this.glTexture=null,this.flipY=r,this.init(h)},init:function(t){var e=this.renderer;if(e){var i=this.source;if(e.gl){var s=this.image,r=this.flipY,n=this.width,o=this.height,a=this.scaleMode;this.isCanvas?this.glTexture=e.createCanvasTexture(s,!1,r):this.isVideo?this.glTexture=e.createVideoTexture(s,!1,r):this.isRenderTexture?this.glTexture=e.createTextureFromSource(null,n,o,a):this.isGLTexture?this.glTexture=i:this.compressionAlgorithm?this.glTexture=e.createTextureFromSource(i,void 0,void 0,a):i instanceof Uint8Array?this.glTexture=e.createUint8ArrayTexture(i,n,o,a):this.glTexture=e.createTextureFromSource(s,n,o,a)}else this.isRenderTexture&&(this.image=i.canvas)}t.config.antialias||this.setFilter(1)},setFilter:function(t){this.renderer&&this.renderer.gl&&this.renderer.setTextureFilter(this.glTexture,t),this.scaleMode=t},setFlipY:function(t){return void 0===t&&(t=!0),t===this.flipY||(this.flipY=t,this.update()),this},update:function(){var t=this.renderer,e=this.image,i=this.flipY,s=t.gl;s&&this.isCanvas?t.updateCanvasTexture(e,this.glTexture,i):s&&this.isVideo&&t.updateVideoTexture(e,this.glTexture,i)},destroy:function(){this.glTexture&&this.renderer.deleteTexture(this.glTexture),this.isCanvas&&s.remove(this.image),this.renderer=null,this.texture=null,this.source=null,this.image=null,this.glTexture=null}});t.exports=h},19673:t=>{t.exports={LINEAR:0,NEAREST:1}},44538:t=>{t.exports="addtexture"},63486:t=>{t.exports="addtexture-"},94851:t=>{t.exports="onerror"},29099:t=>{t.exports="onload"},8678:t=>{t.exports="ready"},86415:t=>{t.exports="removetexture"},30879:t=>{t.exports="removetexture-"},69442:(t,e,i)=>{t.exports={ADD:i(44538),ADD_KEY:i(63486),ERROR:i(94851),LOAD:i(29099),READY:i(8678),REMOVE:i(86415),REMOVE_KEY:i(30879)}},27458:(t,e,i)=>{var s=i(79291),r=i(19673),n={CanvasTexture:i(57382),DynamicTexture:i(81320),Events:i(69442),FilterMode:r,Frame:i(4327),Parsers:i(61309),Texture:i(79237),TextureManager:i(17130),TextureSource:i(11876)};n=s(!1,n,r),t.exports=n},89905:t=>{t.exports=function(t,e,i){if(i.getElementsByTagName("TextureAtlas")){var s=t.source[e];t.add("__BASE",e,0,0,s.width,s.height);for(var r,n=i.getElementsByTagName("SubTexture"),o=0;o{t.exports=function(t,e){var i=t.source[e];return t.add("__BASE",e,0,0,i.width,i.height),t}},4832:t=>{t.exports=function(t,e){var i=t.source[e];return t.add("__BASE",e,0,0,i.width,i.height),t}},78566:(t,e,i)=>{var s=i(41786);t.exports=function(t,e,i){if(i.frames||i.textures){var r=t.source[e];t.add("__BASE",e,0,0,r.width,r.height);for(var n,o=Array.isArray(i.textures)?i.textures[e].frames:i.frames,a=0;a{var s=i(41786);t.exports=function(t,e,i){if(i.frames){var r=t.source[e];t.add("__BASE",e,0,0,r.width,r.height);var n,o=i.frames;for(var a in o)if(o.hasOwnProperty(a)){var h=o[a];if(n=t.add(a,e,h.frame.x,h.frame.y,h.frame.w,h.frame.h)){h.trimmed&&n.setTrim(h.sourceSize.w,h.sourceSize.h,h.spriteSourceSize.x,h.spriteSourceSize.y,h.spriteSourceSize.w,h.spriteSourceSize.h),h.rotated&&(n.rotated=!0,n.updateUVsInverted());var l=h.anchor||h.pivot;l&&(n.customPivot=!0,n.pivotX=l.x,n.pivotY=l.y),h.scale9Borders&&n.setScale9(h.scale9Borders.x,h.scale9Borders.y,h.scale9Borders.w,h.scale9Borders.h),n.customData=s(h)}else console.warn("Invalid atlas json, frame already exists: "+a)}for(var u in i)"frames"!==u&&(Array.isArray(i[u])?t.customData[u]=i[u].slice(0):t.customData[u]=i[u]);return t}console.warn("Invalid Texture Atlas JSON Hash given, missing 'frames' Object")}},31403:t=>{t.exports=function(t){var e,i=[171,75,84,88,32,49,49,187,13,10,26,10],s=new Uint8Array(t,0,12);for(e=0;e>1),g=Math.max(1,g>>1),p+=m}return{mipmaps:d,width:h,height:l,internalFormat:a,compressed:!0,generateMipmap:!1}}console.warn("KTXParser - Only compressed formats supported")}},82038:t=>{function e(t,e,i,s,r,n,o){return void 0===o&&(o=16),Math.floor((t+i)/r)*Math.floor((e+s)/n)*o}function i(t,e){return(t=Math.max(t,16))*(e=Math.max(e,8))/4}function s(t,e){return(t=Math.max(t,8))*(e=Math.max(e,8))/2}function r(t,e){return Math.ceil(t/4)*Math.ceil(e/4)*16}function n(t,i){return e(t,i,3,3,4,4,8)}function o(t,i){return e(t,i,3,3,4,4)}var a={0:{sizeFunc:i,glFormat:[35841]},1:{sizeFunc:i,glFormat:[35843]},2:{sizeFunc:s,glFormat:[35840]},3:{sizeFunc:s,glFormat:[35842]},6:{sizeFunc:n,glFormat:[36196]},7:{sizeFunc:n,glFormat:[33776,35916]},8:{sizeFunc:o,glFormat:[33777,35917]},9:{sizeFunc:o,glFormat:[33778,35918]},11:{sizeFunc:o,glFormat:[33779,35919]},14:{sizeFunc:r,glFormat:[36494,36495]},15:{sizeFunc:r,glFormat:[36492,36493]},22:{sizeFunc:n,glFormat:[37492,37493]},23:{sizeFunc:o,glFormat:[37496,37497]},24:{sizeFunc:n,glFormat:[37494,37495]},25:{sizeFunc:n,glFormat:[37488]},26:{sizeFunc:o,glFormat:[37490]},27:{sizeFunc:o,glFormat:[37808,37840]},28:{sizeFunc:function(t,i){return e(t,i,4,3,5,4)},glFormat:[37809,37841]},29:{sizeFunc:function(t,i){return e(t,i,4,4,5,5)},glFormat:[37810,37842]},30:{sizeFunc:function(t,i){return e(t,i,5,4,6,5)},glFormat:[37811,37843]},31:{sizeFunc:function(t,i){return e(t,i,5,5,6,6)},glFormat:[37812,37844]},32:{sizeFunc:function(t,i){return e(t,i,7,4,8,5)},glFormat:[37813,37845]},33:{sizeFunc:function(t,i){return e(t,i,7,5,8,6)},glFormat:[37814,37846]},34:{sizeFunc:function(t,i){return e(t,i,7,7,8,8)},glFormat:[37815,37847]},35:{sizeFunc:function(t,i){return e(t,i,9,4,10,5)},glFormat:[37816,37848]},36:{sizeFunc:function(t,i){return e(t,i,9,5,10,6)},glFormat:[37817,37849]},37:{sizeFunc:function(t,i){return e(t,i,9,7,10,8)},glFormat:[37818,37850]},38:{sizeFunc:function(t,i){return e(t,i,9,9,10,10)},glFormat:[37819,37851]},39:{sizeFunc:function(t,i){return e(t,i,11,9,12,10)},glFormat:[37820,37852]},40:{sizeFunc:function(t,i){return e(t,i,11,11,12,12)},glFormat:[37821,37853]}};t.exports=function(t){for(var e=new Uint32Array(t,0,13),i=55727696===e[0]?e[2]:e[3],s=e[4],r=a[i].glFormat[s],n=a[i].sizeFunc,o=e[11],h=e[7],l=e[6],u=52+e[12],c=new Uint8Array(t,u),d=new Array(o),p=0,f=h,g=l,m=0;m>1),g=Math.max(1,g>>1),p+=v}return{mipmaps:d,width:h,height:l,internalFormat:r,compressed:!0,generateMipmap:!1}}},75549:(t,e,i)=>{var s=i(95540);t.exports=function(t,e,i,r,n,o,a){var h=s(a,"frameWidth",null),l=s(a,"frameHeight",h);if(null===h)throw new Error("TextureManager.SpriteSheet: Invalid frameWidth given.");var u=t.source[e];t.add("__BASE",e,0,0,u.width,u.height);var c=s(a,"startFrame",0),d=s(a,"endFrame",-1),p=s(a,"margin",0),f=s(a,"spacing",0),g=Math.floor((n-p+f)/(h+f))*Math.floor((o-p+f)/(l+f));0===g&&console.warn("SpriteSheet frame dimensions will result in zero frames for texture:",t.key),(c>g||c<-g)&&(c=0),c<0&&(c=g+c),(-1===d||d>g||dn&&(y=b-n),S>o&&(x=S-o),T>=c&&T<=d&&(t.add(w,e,i+m,r+v,h-y,l-x),w++),(m+=h+f)+h>n&&(m=p,v+=l+f)}return t}},47534:(t,e,i)=>{var s=i(95540);t.exports=function(t,e,i){var r=s(i,"frameWidth",null),n=s(i,"frameHeight",r);if(!r)throw new Error("TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.");var o=t.source[0];t.add("__BASE",0,0,0,o.width,o.height),s(i,"startFrame",0),s(i,"endFrame",-1);for(var a,h=s(i,"margin",0),l=s(i,"spacing",0),u=e.cutX,c=e.cutY,d=e.cutWidth,p=e.cutHeight,f=e.realWidth,g=e.realHeight,m=Math.floor((f-h+l)/(r+l)),v=Math.floor((g-h+l)/(n+l)),y=e.x,x=r-y,w=r-(f-d-y),T=e.y,b=n-T,S=n-(g-p-T),E=h,C=h,A=0,_=0;_{var e=0,i=function(t,i,s,r){var n=e-r.y-r.height;t.add(s,i,r.x,n,r.width,r.height)};t.exports=function(t,s,r){var n=t.source[s];t.add("__BASE",s,0,0,n.width,n.height),e=n.height;for(var o=r.split("\n"),a=/^[ ]*(- )*(\w+)+[: ]+(.*)/,h="",l="",u={x:0,y:0,width:0,height:0},c=0;c{var s=i(50030);function r(t){for(var e=t.mipmaps,i=0;i{t.exports={AtlasXML:i(89905),Canvas:i(72893),Image:i(4832),JSONArray:i(78566),JSONHash:i(39711),KTXParser:i(31403),PVRParser:i(82038),SpriteSheet:i(75549),SpriteSheetFromAtlas:i(47534),UnityYAML:i(86147)}},80341:t=>{t.exports={CSV:0,TILED_JSON:1,ARRAY_2D:2,WELTMEISTER:3}},16536:(t,e,i)=>{var s=new(i(83419))({initialize:function(t,e,i,s,r,n,o){(void 0===i||i<=0)&&(i=32),(void 0===s||s<=0)&&(s=32),void 0===r&&(r=0),void 0===n&&(n=0),this.name=t,this.firstgid=0|e,this.imageWidth=0|i,this.imageHeight=0|s,this.imageMargin=0|r,this.imageSpacing=0|n,this.properties=o||{},this.images=[],this.total=0},containsImageIndex:function(t){return t>=this.firstgid&&t{var s=new(i(83419))({initialize:function(t){if(this.gids=[],void 0!==t)for(var e=0;e{var s=i(80341),r=i(87010),n=i(46177),o=i(49075);t.exports=function(t,e,i,a,h,l,u,c){void 0===i&&(i=32),void 0===a&&(a=32),void 0===h&&(h=10),void 0===l&&(l=10),void 0===c&&(c=!1);var d=null;if(Array.isArray(u))d=n(void 0!==e?e:"map",s.ARRAY_2D,u,i,a,c);else if(void 0!==e){var p=t.cache.tilemap.get(e);p?d=n(e,p.format,p.data,i,a,c):console.warn("No map data found for key "+e)}return null===d&&(d=new r({tileWidth:i,tileHeight:a,width:h,height:l})),new o(t,d)}},23029:(t,e,i)=>{var s=i(83419),r=i(31401),n=i(91907),o=i(62644),a=i(93232),h=new s({Mixins:[r.AlphaSingle,r.Flip,r.Visible],initialize:function(t,e,i,s,r,n,o,a){this.layer=t,this.index=e,this.x=i,this.y=s,this.width=r,this.height=n,this.right,this.bottom,this.baseWidth=void 0!==o?o:r,this.baseHeight=void 0!==a?a:n,this.pixelX=0,this.pixelY=0,this.updatePixelXY(),this.properties={},this.rotation=0,this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceLeft=!1,this.faceRight=!1,this.faceTop=!1,this.faceBottom=!1,this.collisionCallback=void 0,this.collisionCallbackContext=this,this.tint=16777215,this.tintFill=!1,this.physics={}},containsPoint:function(t,e){return!(tthis.right||e>this.bottom)},copy:function(t){return this.index=t.index,this.alpha=t.alpha,this.properties=o(t.properties),this.visible=t.visible,this.setFlip(t.flipX,t.flipY),this.tint=t.tint,this.rotation=t.rotation,this.collideUp=t.collideUp,this.collideDown=t.collideDown,this.collideLeft=t.collideLeft,this.collideRight=t.collideRight,this.collisionCallback=t.collisionCallback,this.collisionCallbackContext=t.collisionCallbackContext,this},getCollisionGroup:function(){return this.tileset?this.tileset.getTileCollisionGroup(this.index):null},getTileData:function(){return this.tileset?this.tileset.getTileData(this.index):null},getLeft:function(t){var e=this.tilemapLayer;return e?e.tileToWorldXY(this.x,this.y,void 0,t).x:this.x*this.baseWidth},getRight:function(t){var e=this.tilemapLayer;return e?this.getLeft(t)+this.width*e.scaleX:this.getLeft(t)+this.width},getTop:function(t){var e=this.tilemapLayer;return e?e.tileToWorldXY(this.x,this.y,void 0,t).y:this.y*this.baseWidth-(this.height-this.baseHeight)},getBottom:function(t){var e=this.tilemapLayer;return e?this.getTop(t)+this.height*e.scaleY:this.getTop(t)+this.height},getBounds:function(t,e){return void 0===e&&(e=new a),e.x=this.getLeft(t),e.y=this.getTop(t),e.width=this.getRight(t)-e.x,e.height=this.getBottom(t)-e.y,e},getCenterX:function(t){return(this.getLeft(t)+this.getRight(t))/2},getCenterY:function(t){return(this.getTop(t)+this.getBottom(t))/2},intersects:function(t,e,i,s){return!(i<=this.pixelX||s<=this.pixelY||t>=this.right||e>=this.bottom)},isInteresting:function(t,e){return t&&e?this.canCollide||this.hasInterestingFace:t?this.collides:!!e&&this.hasInterestingFace},resetCollision:function(t){return void 0===t&&(t=!0),this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,t&&this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y),this},resetFaces:function(){return this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,this},setCollision:function(t,e,i,s,r){return void 0===e&&(e=t),void 0===i&&(i=t),void 0===s&&(s=t),void 0===r&&(r=!0),this.collideLeft=t,this.collideRight=e,this.collideUp=i,this.collideDown=s,this.faceLeft=t,this.faceRight=e,this.faceTop=i,this.faceBottom=s,r&&this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y),this},setCollisionCallback:function(t,e){return null===t?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=t,this.collisionCallbackContext=e),this},setSize:function(t,e,i,s){return void 0!==t&&(this.width=t),void 0!==e&&(this.height=e),void 0!==i&&(this.baseWidth=i),void 0!==s&&(this.baseHeight=s),this.updatePixelXY(),this},updatePixelXY:function(){var t=this.layer.orientation;if(t===n.ORTHOGONAL)this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight;else if(t===n.ISOMETRIC)this.pixelX=(this.x-this.y)*this.baseWidth*.5,this.pixelY=(this.x+this.y)*this.baseHeight*.5;else if(t===n.STAGGERED)this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2),this.pixelY=this.y*(this.baseHeight/2);else if(t===n.HEXAGONAL){var e,i,s=this.layer.staggerAxis,r=this.layer.staggerIndex,o=this.layer.hexSideLength;"y"===s?(i=(this.baseHeight-o)/2+o,this.pixelX="odd"===r?this.x*this.baseWidth+this.y%2*(this.baseWidth/2):this.x*this.baseWidth-this.y%2*(this.baseWidth/2),this.pixelY=this.y*i):"x"===s&&(e=(this.baseWidth-o)/2+o,this.pixelX=this.x*e,this.pixelY="odd"===r?this.y*this.baseHeight+this.x%2*(this.baseHeight/2):this.y*this.baseHeight-this.x%2*(this.baseHeight/2))}return this.right=this.pixelX+this.baseWidth,this.bottom=this.pixelY+this.baseHeight,this},destroy:function(){this.collisionCallback=void 0,this.collisionCallbackContext=void 0,this.properties=void 0},canCollide:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown||void 0!==this.collisionCallback}},collides:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown}},hasInterestingFace:{get:function(){return this.faceTop||this.faceBottom||this.faceLeft||this.faceRight}},tileset:{get:function(){var t=this.layer.tilemapLayer;if(t){var e=t.gidMap[this.index];if(e)return e}return null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var t=this.tilemapLayer;return t?t.tilemap:null}}});t.exports=h},49075:(t,e,i)=>{var s=i(84101),r=i(83419),n=i(39506),o=i(80341),a=i(95540),h=i(14977),l=i(27462),u=i(91907),c=i(36305),d=i(19133),p=i(68287),f=i(23029),g=i(81086),m=i(20442),v=i(33629),y=new r({initialize:function(t,e){this.scene=t,this.tileWidth=e.tileWidth,this.tileHeight=e.tileHeight,this.width=e.width,this.height=e.height,this.orientation=e.orientation,this.renderOrder=e.renderOrder,this.format=e.format,this.version=e.version,this.properties=e.properties,this.widthInPixels=e.widthInPixels,this.heightInPixels=e.heightInPixels,this.imageCollections=e.imageCollections,this.images=e.images,this.layers=e.layers,this.tiles=e.tiles,this.tilesets=e.tilesets,this.objects=e.objects,this.currentLayerIndex=0,this.hexSideLength=e.hexSideLength;var i=this.orientation;this._convert={WorldToTileXY:g.GetWorldToTileXYFunction(i),WorldToTileX:g.GetWorldToTileXFunction(i),WorldToTileY:g.GetWorldToTileYFunction(i),TileToWorldXY:g.GetTileToWorldXYFunction(i),TileToWorldX:g.GetTileToWorldXFunction(i),TileToWorldY:g.GetTileToWorldYFunction(i),GetTileCorners:g.GetTileCornersFunction(i)}},setRenderOrder:function(t){var e=["right-down","left-down","right-up","left-up"];return"number"==typeof t&&(t=e[t]),e.indexOf(t)>-1&&(this.renderOrder=t),this},addTilesetImage:function(t,e,i,r,n,a,h,l){if(void 0===t)return null;null==e&&(e=t);var u=this.scene.sys.textures;if(!u.exists(e))return console.warn('Texture key "%s" not found',e),null;var c=u.get(e),d=this.getTilesetIndex(t);if(null===d&&this.format===o.TILED_JSON)return console.warn('Tilemap has no tileset "%s". Its tilesets are %o',t,this.tilesets),null;var p=this.tilesets[d];return p?(p.setTileSize(i,r),p.setSpacing(n,a),p.setImage(c),p):(void 0===i&&(i=this.tileWidth),void 0===r&&(r=this.tileHeight),void 0===n&&(n=0),void 0===a&&(a=0),void 0===h&&(h=0),void 0===l&&(l={x:0,y:0}),(p=new v(t,h,i,r,n,a,void 0,void 0,l)).setImage(c),this.tilesets.push(p),this.tiles=s(this),p)},copy:function(t,e,i,s,r,n,o,a){return null!==(a=this.getLayer(a))?(g.Copy(t,e,i,s,r,n,o,a),this):null},createBlankLayer:function(t,e,i,s,r,n,o,a){if(void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=this.width),void 0===n&&(n=this.height),void 0===o&&(o=this.tileWidth),void 0===a&&(a=this.tileHeight),null!==this.getLayerIndex(t))return console.warn("Invalid Tilemap Layer ID: "+t),null;for(var l,u=new h({name:t,tileWidth:o,tileHeight:a,width:r,height:n,orientation:this.orientation}),c=0;c-1&&this.putTileAt(e,n.x,n.y,i,n.tilemapLayer)}return s},removeTileAt:function(t,e,i,s,r){return void 0===i&&(i=!0),void 0===s&&(s=!0),null===(r=this.getLayer(r))?null:g.RemoveTileAt(t,e,i,s,r)},removeTileAtWorldXY:function(t,e,i,s,r,n){return void 0===i&&(i=!0),void 0===s&&(s=!0),null===(n=this.getLayer(n))?null:g.RemoveTileAtWorldXY(t,e,i,s,r,n)},renderDebug:function(t,e,i){return null===(i=this.getLayer(i))?null:(this.orientation===u.ORTHOGONAL&&g.RenderDebug(t,e,i),this)},renderDebugFull:function(t,e){for(var i=this.layers,s=0;s{var s=i(44603),r=i(31989);s.register("tilemap",(function(t){var e=void 0!==t?t:{};return r(this.scene,e.key,e.tileWidth,e.tileHeight,e.width,e.height,e.data,e.insertNull)}))},46029:(t,e,i)=>{var s=i(39429),r=i(31989);s.register("tilemap",(function(t,e,i,s,n,o,a){return null===t&&(t=void 0),null===e&&(e=void 0),null===i&&(i=void 0),null===s&&(s=void 0),null===n&&(n=void 0),r(this.scene,t,e,i,s,n,o,a)}))},20442:(t,e,i)=>{var s=i(83419),r=i(78389),n=i(31401),o=i(95643),a=i(81086),h=i(19218),l=i(26099),u=new s({Extends:o,Mixins:[n.Alpha,n.BlendMode,n.ComputedSize,n.Depth,n.Flip,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.Transform,n.Visible,n.ScrollFactor,r,h],initialize:function(t,e,i,s,r,n){o.call(this,t,"TilemapLayer"),this.isTilemap=!0,this.tilemap=e,this.layerIndex=i,this.layer=e.layers[i],this.layer.tilemapLayer=this,this.tileset=[],this.tilesDrawn=0,this.tilesTotal=this.layer.width*this.layer.height,this.culledTiles=[],this.skipCull=!1,this.cullPaddingX=1,this.cullPaddingY=1,this.cullCallback=a.GetCullTilesFunction(this.layer.orientation),this._renderOrder=0,this.gidMap=[],this.tempVec=new l,this.collisionCategory=1,this.collisionMask=1,this.setTilesets(s),this.setAlpha(this.layer.alpha),this.setPosition(r,n),this.setOrigin(0,0),this.setSize(e.tileWidth*this.layer.width,e.tileHeight*this.layer.height),this.initPipeline(),this.initPostPipeline(!1)},setTilesets:function(t){var e=[],i=[],s=this.tilemap;Array.isArray(t)||(t=[t]);for(var r=0;r=0&&t<4&&(this._renderOrder=t),this},calculateFacesAt:function(t,e){return a.CalculateFacesAt(t,e,this.layer),this},calculateFacesWithin:function(t,e,i,s){return a.CalculateFacesWithin(t,e,i,s,this.layer),this},createFromTiles:function(t,e,i,s,r){return a.CreateFromTiles(t,e,i,s,r,this.layer)},cull:function(t){return this.cullCallback(this.layer,t,this.culledTiles,this._renderOrder)},copy:function(t,e,i,s,r,n,o){return a.Copy(t,e,i,s,r,n,o,this.layer),this},fill:function(t,e,i,s,r,n){return a.Fill(t,e,i,s,r,n,this.layer),this},filterTiles:function(t,e,i,s,r,n,o){return a.FilterTiles(t,e,i,s,r,n,o,this.layer)},findByIndex:function(t,e,i){return a.FindByIndex(t,e,i,this.layer)},findTile:function(t,e,i,s,r,n,o){return a.FindTile(t,e,i,s,r,n,o,this.layer)},forEachTile:function(t,e,i,s,r,n,o){return a.ForEachTile(t,e,i,s,r,n,o,this.layer),this},setTint:function(t,e,i,s,r,n){return void 0===t&&(t=16777215),this.forEachTile((function(e){e.tint=t,e.tintFill=!1}),this,e,i,s,r,n)},setTintFill:function(t,e,i,s,r,n){return void 0===t&&(t=16777215),this.forEachTile((function(e){e.tint=t,e.tintFill=!0}),this,e,i,s,r,n)},getTileAt:function(t,e,i){return a.GetTileAt(t,e,i,this.layer)},getTileAtWorldXY:function(t,e,i,s){return a.GetTileAtWorldXY(t,e,i,s,this.layer)},getIsoTileAtWorldXY:function(t,e,i,s,r){void 0===i&&(i=!0);var n=this.tempVec;return a.IsometricWorldToTileXY(t,e,!0,n,r,this.layer,i),this.getTileAt(n.x,n.y,s)},getTilesWithin:function(t,e,i,s,r){return a.GetTilesWithin(t,e,i,s,r,this.layer)},getTilesWithinShape:function(t,e,i){return a.GetTilesWithinShape(t,e,i,this.layer)},getTilesWithinWorldXY:function(t,e,i,s,r,n){return a.GetTilesWithinWorldXY(t,e,i,s,r,n,this.layer)},hasTileAt:function(t,e){return a.HasTileAt(t,e,this.layer)},hasTileAtWorldXY:function(t,e,i){return a.HasTileAtWorldXY(t,e,i,this.layer)},putTileAt:function(t,e,i,s){return a.PutTileAt(t,e,i,s,this.layer)},putTileAtWorldXY:function(t,e,i,s,r){return a.PutTileAtWorldXY(t,e,i,s,r,this.layer)},putTilesAt:function(t,e,i,s){return a.PutTilesAt(t,e,i,s,this.layer),this},randomize:function(t,e,i,s,r){return a.Randomize(t,e,i,s,r,this.layer),this},removeTileAt:function(t,e,i,s){return a.RemoveTileAt(t,e,i,s,this.layer)},removeTileAtWorldXY:function(t,e,i,s,r){return a.RemoveTileAtWorldXY(t,e,i,s,r,this.layer)},renderDebug:function(t,e){return a.RenderDebug(t,e,this.layer),this},replaceByIndex:function(t,e,i,s,r,n){return a.ReplaceByIndex(t,e,i,s,r,n,this.layer),this},setSkipCull:function(t){return void 0===t&&(t=!0),this.skipCull=t,this},setCullPadding:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=1),this.cullPaddingX=t,this.cullPaddingY=e,this},setCollision:function(t,e,i,s){return a.SetCollision(t,e,i,this.layer,s),this},setCollisionBetween:function(t,e,i,s){return a.SetCollisionBetween(t,e,i,s,this.layer),this},setCollisionByProperty:function(t,e,i){return a.SetCollisionByProperty(t,e,i,this.layer),this},setCollisionByExclusion:function(t,e,i){return a.SetCollisionByExclusion(t,e,i,this.layer),this},setCollisionFromCollisionGroup:function(t,e){return a.SetCollisionFromCollisionGroup(t,e,this.layer),this},setTileIndexCallback:function(t,e,i){return a.SetTileIndexCallback(t,e,i,this.layer),this},setTileLocationCallback:function(t,e,i,s,r,n){return a.SetTileLocationCallback(t,e,i,s,r,n,this.layer),this},shuffle:function(t,e,i,s){return a.Shuffle(t,e,i,s,this.layer),this},swapByIndex:function(t,e,i,s,r,n){return a.SwapByIndex(t,e,i,s,r,n,this.layer),this},tileToWorldX:function(t,e){return this.tilemap.tileToWorldX(t,e,this)},tileToWorldY:function(t,e){return this.tilemap.tileToWorldY(t,e,this)},tileToWorldXY:function(t,e,i,s){return this.tilemap.tileToWorldXY(t,e,i,s,this)},getTileCorners:function(t,e,i){return this.tilemap.getTileCorners(t,e,i,this)},weightedRandomize:function(t,e,i,s,r){return a.WeightedRandomize(e,i,s,r,t,this.layer),this},worldToTileX:function(t,e,i){return this.tilemap.worldToTileX(t,e,i,this)},worldToTileY:function(t,e,i){return this.tilemap.worldToTileY(t,e,i,this)},worldToTileXY:function(t,e,i,s,r){return this.tilemap.worldToTileXY(t,e,i,s,r,this)},destroy:function(t){void 0===t&&(t=!0),this.tilemap&&(this.layer.tilemapLayer===this&&(this.layer.tilemapLayer=void 0),t&&this.tilemap.removeLayer(this),this.tilemap=void 0,this.layer=void 0,this.culledTiles.length=0,this.cullCallback=null,this.gidMap=[],this.tileset=[],o.prototype.destroy.call(this))}});t.exports=u},16153:(t,e,i)=>{var s=i(61340),r=new s,n=new s,o=new s;t.exports=function(t,e,i,s){var a=e.cull(i),h=a.length,l=i.alpha*e.alpha;if(!(0===h||l<=0)){var u=r,c=n,d=o;c.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),u.copyFrom(i.matrix);var p=t.currentContext,f=e.gidMap;p.save(),s?(u.multiplyWithOffset(s,-i.scrollX*e.scrollFactorX,-i.scrollY*e.scrollFactorY),c.e=e.x,c.f=e.y,u.multiply(c,d),d.copyToContext(p)):(c.e-=i.scrollX*e.scrollFactorX,c.f-=i.scrollY*e.scrollFactorY,c.copyToContext(p)),(!t.antialias||e.scaleX>1||e.scaleY>1)&&(p.imageSmoothingEnabled=!1);for(var g=0;g{var s,r;i(29747),s=i(99558),r=i(16153),t.exports={renderWebGL:s,renderCanvas:r}},99558:(t,e,i)=>{var s=i(70554);t.exports=function(t,e,i){var r=e.cull(i),n=r.length,o=i.alpha*e.alpha;if(!(0===n||o<=0)){var a=e.gidMap,h=t.pipelines.set(e.pipeline,e),l=s.getTintAppendFloatAlpha,u=e.scrollFactorX,c=e.scrollFactorY,d=e.x,p=e.y,f=e.scaleX,g=e.scaleY;t.pipelines.preBatch(e);for(var m=0;m{var s=i(83419),r=i(26099),n=new s({initialize:function(t,e,i,s,n,o,a,h,l){(void 0===i||i<=0)&&(i=32),(void 0===s||s<=0)&&(s=32),void 0===n&&(n=0),void 0===o&&(o=0),void 0===a&&(a={}),void 0===h&&(h={}),this.name=t,this.firstgid=e,this.tileWidth=i,this.tileHeight=s,this.tileMargin=n,this.tileSpacing=o,this.tileProperties=a,this.tileData=h,this.tileOffset=new r,void 0!==l&&this.tileOffset.set(l.x,l.y),this.image=null,this.glTexture=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},getTileProperties:function(t){return this.containsTileIndex(t)?this.tileProperties[t-this.firstgid]:null},getTileData:function(t){return this.containsTileIndex(t)?this.tileData[t-this.firstgid]:null},getTileCollisionGroup:function(t){var e=this.getTileData(t);return e&&e.objectgroup?e.objectgroup:null},containsTileIndex:function(t){return t>=this.firstgid&&ti.width||e.height>i.height?this.updateTileData(e.width,e.height):this.updateTileData(i.width,i.height,i.x,i.y),this},setTileSize:function(t,e){return void 0!==t&&(this.tileWidth=t),void 0!==e&&(this.tileHeight=e),this.image&&this.updateTileData(this.image.source[0].width,this.image.source[0].height),this},setSpacing:function(t,e){return void 0!==t&&(this.tileMargin=t),void 0!==e&&(this.tileSpacing=e),this.image&&this.updateTileData(this.image.source[0].width,this.image.source[0].height),this},updateTileData:function(t,e,i,s){void 0===i&&(i=0),void 0===s&&(s=0);var r=(e-2*this.tileMargin+this.tileSpacing)/(this.tileHeight+this.tileSpacing),n=(t-2*this.tileMargin+this.tileSpacing)/(this.tileWidth+this.tileSpacing);r%1==0&&n%1==0||console.warn("Image tile area not tile size multiple in: "+this.name),r=Math.floor(r),n=Math.floor(n),this.rows=r,this.columns=n,this.total=r*n,this.texCoordinates.length=0;for(var o=this.tileMargin+i,a=this.tileMargin+s,h=0;h{var s=i(7423);t.exports=function(t,e,i){var r=s(t,e,!0,i),n=s(t,e-1,!0,i),o=s(t,e+1,!0,i),a=s(t-1,e,!0,i),h=s(t+1,e,!0,i),l=r&&r.collides;return l&&(r.faceTop=!0,r.faceBottom=!0,r.faceLeft=!0,r.faceRight=!0),n&&n.collides&&(l&&(r.faceTop=!1),n.faceBottom=!l),o&&o.collides&&(l&&(r.faceBottom=!1),o.faceTop=!l),a&&a.collides&&(l&&(r.faceLeft=!1),a.faceRight=!l),h&&h.collides&&(l&&(r.faceRight=!1),h.faceLeft=!l),r&&!r.collides&&r.resetFaces(),r}},42573:(t,e,i)=>{var s=i(7423),r=i(7386);t.exports=function(t,e,i,n,o){for(var a=null,h=null,l=null,u=null,c=r(t,e,i,n,null,o),d=0;d{var s=new(i(26099));t.exports=function(t,e,i,r){var n=i.tilemapLayer,o=n.cullPaddingX,a=n.cullPaddingY,h=n.tilemap.tileToWorldXY(t,e,s,r,n);return h.x>r.worldView.x+n.scaleX*i.tileWidth*(-o-.5)&&h.xr.worldView.y+n.scaleY*i.tileHeight*(-a-1)&&h.y{var s=i(42573),r=i(7386),n=i(62991),o=i(23029);t.exports=function(t,e,i,a,h,l,u,c){void 0===u&&(u=!0);var d=r(t,e,i,a,null,c),p=[];d.forEach((function(t){var e=new o(t.layer,t.index,t.x,t.y,t.width,t.height,t.baseWidth,t.baseHeight);e.copy(t),p.push(e)}));for(var f=h-t,g=l-e,m=0;m{var s=i(62644),r=i(7386),n=i(27987);t.exports=function(t,e,i,o,a,h){i||(i={}),Array.isArray(t)||(t=[t]);var l=h.tilemapLayer;o||(o=l.scene),a||(a=o.cameras.main);var u,c=h.width,d=h.height,p=r(0,0,c,d,null,h),f=[],g=function(t,e,i){for(var s=0;s{var s=i(87841),r=i(63448),n=i(56583),o=new s;t.exports=function(t,e){var i=t.tilemapLayer.tilemap,s=t.tilemapLayer,a=Math.floor(i.tileWidth*s.scaleX),h=Math.floor(i.tileHeight*s.scaleY),l=n(e.worldView.x-s.x,a,0,!0)-s.cullPaddingX,u=r(e.worldView.right-s.x,a,0,!0)+s.cullPaddingX,c=n(e.worldView.y-s.y,h,0,!0)-s.cullPaddingY,d=r(e.worldView.bottom-s.y,h,0,!0)+s.cullPaddingY;return o.setTo(l,c,u-l,d-c)}},30003:(t,e,i)=>{var s=i(19545),r=i(32483);t.exports=function(t,e,i,n){void 0===i&&(i=[]),void 0===n&&(n=0),i.length=0;var o=t.tilemapLayer,a=s(t,e);return(o.skipCull||1!==o.scrollFactorX||1!==o.scrollFactorY)&&(a.left=0,a.right=t.width,a.top=0,a.bottom=t.height),r(t,a,n,i),i}},35137:(t,e,i)=>{var s=i(7386),r=i(42573),n=i(20576);t.exports=function(t,e,i,o,a,h,l){for(var u=-1!==l.collideIndexes.indexOf(t),c=s(e,i,o,a,null,l),d=0;d{var s=i(7386);t.exports=function(t,e,i,r,n,o,a,h){return s(i,r,n,o,a,h).filter(t,e)}},52692:t=>{t.exports=function(t,e,i,s){void 0===e&&(e=0),void 0===i&&(i=!1);var r,n,o,a=0;if(i){for(n=s.height-1;n>=0;n--)for(r=s.width-1;r>=0;r--)if((o=s.data[n][r])&&o.index===t){if(a===e)return o;a+=1}}else for(n=0;n{var s=i(7386);t.exports=function(t,e,i,r,n,o,a,h){return s(i,r,n,o,a,h).find(t,e)||null}},97560:(t,e,i)=>{var s=i(7386);t.exports=function(t,e,i,r,n,o,a,h){s(i,r,n,o,a,h).forEach(t,e)}},43305:(t,e,i)=>{var s=i(91907),r=i(30003),n=i(9474),o=i(14018),a=i(29747),h=i(54503);t.exports=function(t){return t===s.ORTHOGONAL?r:t===s.HEXAGONAL?n:t===s.STAGGERED?h:t===s.ISOMETRIC?o:a}},7423:(t,e,i)=>{var s=i(62991);t.exports=function(t,e,i,r){if(void 0===i&&(i=!1),s(t,e,r)){var n=r.data[e][t]||null;return n?-1===n.index?i?n:null:n:null}return null}},60540:(t,e,i)=>{var s=i(7423),r=new(i(26099));t.exports=function(t,e,i,n,o){return o.tilemapLayer.worldToTileXY(t,e,!0,r,n),s(r.x,r.y,i,o)}},55826:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r){var n=r.baseTileWidth,o=r.baseTileHeight,a=r.tilemapLayer,h=0,l=0;a&&(i||(i=a.scene.cameras.main),h=a.x+i.scrollX*(1-a.scrollFactorX),l=a.y+i.scrollY*(1-a.scrollFactorY),n*=a.scaleX,o*=a.scaleY);var u=h+t*n,c=l+e*o;return[new s(u,c),new s(u+n,c),new s(u+n,c+o),new s(u,c+o)]}},11758:(t,e,i)=>{var s=i(91907),r=i(27229),n=i(29747),o=i(55826);t.exports=function(t){return t===s.ORTHOGONAL?o:t===s.ISOMETRIC?n:t===s.HEXAGONAL?r:(s.STAGGERED,n)}},39167:(t,e,i)=>{var s=i(91907),r=i(29747),n=i(97281);t.exports=function(t){return t===s.ORTHOGONAL?n:r}},62e3:(t,e,i)=>{var s=i(91907),r=i(19951),n=i(14127),o=i(29747),a=i(97202),h=i(70326);t.exports=function(t){return t===s.ORTHOGONAL?h:t===s.ISOMETRIC?n:t===s.HEXAGONAL?r:t===s.STAGGERED?a:o}},5984:(t,e,i)=>{var s=i(91907),r=i(29747),n=i(28054),o=i(29650);t.exports=function(t){return t===s.ORTHOGONAL?o:t===s.STAGGERED?n:r}},7386:(t,e,i)=>{var s=i(95540);t.exports=function(t,e,i,r,n,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=o.width),void 0===r&&(r=o.height),n||(n={});var a=s(n,"isNotEmpty",!1),h=s(n,"isColliding",!1),l=s(n,"hasInterestingFace",!1);t<0&&(i+=t,t=0),e<0&&(r+=e,e=0),t+i>o.width&&(i=Math.max(o.width-t,0)),e+r>o.height&&(r=Math.max(o.height-e,0));for(var u=[],c=e;c{var s=i(55738),r=i(7386),n=i(91865),o=i(29747),a=i(26099),h=function(t,e){return n.RectangleToTriangle(e,t)},l=new a,u=new a,c=new a;t.exports=function(t,e,i,a){if(void 0===t)return[];var d=o;t instanceof s.Circle?d=n.CircleToRectangle:t instanceof s.Rectangle?d=n.RectangleToRectangle:t instanceof s.Triangle?d=h:t instanceof s.Line&&(d=n.LineToRectangle),a.tilemapLayer.worldToTileXY(t.left,t.top,!0,u,i);var p=u.x,f=u.y;a.tilemapLayer.worldToTileXY(t.right,t.bottom,!1,c,i);var g=Math.ceil(c.x),m=Math.ceil(c.y),v=Math.max(g-p,1),y=Math.max(m-f,1),x=r(p,f,v,y,e,a),w=a.tileWidth,T=a.tileHeight;a.tilemapLayer&&(w*=a.tilemapLayer.scaleX,T*=a.tilemapLayer.scaleY);for(var b=[],S=new s.Rectangle(0,0,w,T),E=0;E{var s=i(7386),r=i(26099),n=new r,o=new r;t.exports=function(t,e,i,r,a,h,l){var u=l.tilemapLayer.tilemap._convert.WorldToTileXY;u(t,e,!0,n,h,l);var c=n.x,d=n.y;u(t+i,e+r,!1,o,h,l);var p=Math.ceil(o.x),f=Math.ceil(o.y);return s(c,d,p-c,f-d,a,l)}},96113:(t,e,i)=>{var s=i(91907),r=i(20242),n=i(10095);t.exports=function(t){return t===s.ORTHOGONAL?n:r}},16926:(t,e,i)=>{var s=i(91907),r=i(86625),n=i(96897),o=i(29747),a=i(15108),h=i(85896);t.exports=function(t){return t===s.ORTHOGONAL?h:t===s.ISOMETRIC?n:t===s.HEXAGONAL?r:t===s.STAGGERED?a:o}},55762:(t,e,i)=>{var s=i(91907),r=i(20242),n=i(51900),o=i(63288);t.exports=function(t){return t===s.ORTHOGONAL?o:t===s.STAGGERED?n:r}},45091:(t,e,i)=>{var s=i(62991);t.exports=function(t,e,i){if(s(t,e,i)){var r=i.data[e][t];return null!==r&&r.index>-1}return!1}},24152:(t,e,i)=>{var s=i(45091),r=new(i(26099));t.exports=function(t,e,i,n){n.tilemapLayer.worldToTileXY(t,e,!0,r,i);var o=r.x,a=r.y;return s(o,a,n)}},90454:(t,e,i)=>{var s=i(63448),r=i(56583);t.exports=function(t,e){var i,n,o,a,h=t.tilemapLayer.tilemap,l=t.tilemapLayer,u=Math.floor(h.tileWidth*l.scaleX),c=Math.floor(h.tileHeight*l.scaleY),d=t.hexSideLength;if("y"===t.staggerAxis){var p=(c-d)/2+d;i=r(e.worldView.x-l.x,u,0,!0)-l.cullPaddingX,n=s(e.worldView.right-l.x,u,0,!0)+l.cullPaddingX,o=r(e.worldView.y-l.y,p,0,!0)-l.cullPaddingY,a=s(e.worldView.bottom-l.y,p,0,!0)+l.cullPaddingY}else{var f=(u-d)/2+d;i=r(e.worldView.x-l.x,f,0,!0)-l.cullPaddingX,n=s(e.worldView.right-l.x,f,0,!0)+l.cullPaddingX,o=r(e.worldView.y-l.y,c,0,!0)-l.cullPaddingY,a=s(e.worldView.bottom-l.y,c,0,!0)+l.cullPaddingY}return{left:i,right:n,top:o,bottom:a}}},9474:(t,e,i)=>{var s=i(90454),r=i(32483);t.exports=function(t,e,i,n){void 0===i&&(i=[]),void 0===n&&(n=0),i.length=0;var o=t.tilemapLayer,a=s(t,e);return o.skipCull&&1===o.scrollFactorX&&1===o.scrollFactorY&&(a.left=0,a.right=t.width,a.top=0,a.bottom=t.height),r(t,a,n,i),i}},27229:(t,e,i)=>{var s=i(19951),r=i(26099),n=new r;t.exports=function(t,e,i,o){var a=o.baseTileWidth,h=o.baseTileHeight,l=o.tilemapLayer;l&&(a*=l.scaleX,h*=l.scaleY);var u,c,d=s(t,e,n,i,o),p=[],f=.5773502691896257;"y"===o.staggerAxis?(u=f*a,c=h/2):(u=a/2,c=f*h);for(var g=0;g<6;g++){var m=2*Math.PI*(.5-g)/6;p.push(new r(d.x+u*Math.cos(m),d.y+c*Math.sin(m)))}return p}},19951:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r,n){i||(i=new s);var o=n.baseTileWidth,a=n.baseTileHeight,h=n.tilemapLayer,l=0,u=0;h&&(r||(r=h.scene.cameras.main),l=h.x+r.scrollX*(1-h.scrollFactorX),u=h.y+r.scrollY*(1-h.scrollFactorY),o*=h.scaleX,a*=h.scaleY);var c,d,p=o/2,f=a/2;return"y"===n.staggerAxis?(c=l+o*t+o,d=u+1.5*e*f+f,e%2==0&&("odd"===this.staggerIndex?c-=p:c+=p)):"x"===this.staggerAxis&&"odd"===this.staggerIndex&&(c=l+1.5*t*p+p,d=u+a*t+a,t%2==0&&("odd"===this.staggerIndex?d-=f:d+=f)),i.set(c,d)}},86625:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r,n,o){r||(r=new s);var a=o.baseTileWidth,h=o.baseTileHeight,l=o.tilemapLayer;l&&(n||(n=l.scene.cameras.main),t-=l.x+n.scrollX*(1-l.scrollFactorX),e-=l.y+n.scrollY*(1-l.scrollFactorY),a*=l.scaleX,h*=l.scaleY);var u,c,d,p,f,g=.5773502691896257,m=-.3333333333333333,v=.6666666666666666,y=a/2,x=h/2;"y"===o.staggerAxis?(d=g*(u=(t-y)/(g*a))+m*(c=(e-x)/x),p=0*u+v*c):(d=m*(u=(t-y)/y)+g*(c=(e-x)/(g*h)),p=v*u+0*c),f=-d-p;var w,T=Math.round(d),b=Math.round(p),S=Math.round(f),E=Math.abs(T-d),C=Math.abs(b-p),A=Math.abs(S-f);E>C&&E>A?T=-b-S:C>A&&(b=-T-S);var _=b;return w="odd"===o.staggerIndex?_%2==0?b/2+T:b/2+T-.5:_%2==0?b/2+T:b/2+T+.5,r.set(w,_)}},62991:t=>{t.exports=function(t,e,i){return t>=0&&t=0&&e{var s=i(33528);t.exports=function(t,e,i,r){void 0===i&&(i=[]),void 0===r&&(r=0),i.length=0;var n,o,a,h=t.tilemapLayer,l=t.data,u=t.width,c=t.height,d=h.skipCull,p=u,f=c;if(0===r)for(o=0;o=0;n--)(a=l[o][n])&&-1!==a.index&&a.visible&&0!==a.alpha&&(d||s(n,o,t,e))&&i.push(a);else if(2===r)for(o=f;o>=0;o--)for(n=0;n=0;o--)for(n=p;n>=0;n--)(a=l[o][n])&&-1!==a.index&&a.visible&&0!==a.alpha&&(d||s(n,o,t,e))&&i.push(a);return h.tilesDrawn=i.length,h.tilesTotal=u*c,i}},14127:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r,n){i||(i=new s);var o=n.baseTileWidth,a=n.baseTileHeight,h=n.tilemapLayer,l=0,u=0;h&&(r||(r=h.scene.cameras.main),l=h.x+r.scrollX*(1-h.scrollFactorX),o*=h.scaleX,u=h.y+r.scrollY*(1-h.scrollFactorY),a*=h.scaleY);var c=l+o/2*(t-e),d=u+(t+e)*(a/2);return i.set(c,d)}},96897:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r,n,o,a){r||(r=new s);var h=o.baseTileWidth,l=o.baseTileHeight,u=o.tilemapLayer;u&&(n||(n=u.scene.cameras.main),e-=u.y+n.scrollY*(1-u.scrollFactorY),l*=u.scaleY,t-=u.x+n.scrollX*(1-u.scrollFactorX),h*=u.scaleX);var c=h/2,d=l/2;a||(e-=l);var p=.5*((t-=c)/c+e/d),f=.5*(-t/c+e/d);return i&&(p=Math.floor(p),f=Math.floor(f)),r.set(p,f)}},71558:(t,e,i)=>{var s=i(23029),r=i(62991),n=i(72023),o=i(20576);t.exports=function(t,e,i,a,h){if(void 0===a&&(a=!0),!r(e,i,h))return null;var l,u=h.data[i][e],c=u&&u.collides;t instanceof s?(null===h.data[i][e]&&(h.data[i][e]=new s(h,t.index,e,i,h.tileWidth,h.tileHeight)),h.data[i][e].copy(t)):(l=t,null===h.data[i][e]?h.data[i][e]=new s(h,l,e,i,h.tileWidth,h.tileHeight):h.data[i][e].index=l);var d=h.data[i][e],p=-1!==h.collideIndexes.indexOf(d.index);if(-1===(l=t instanceof s?t.index:t))d.width=h.tileWidth,d.height=h.tileHeight;else{var f=h.tilemapLayer.tilemap,g=f.tiles[l][2],m=f.tilesets[g];d.width=m.tileWidth,d.height=m.tileHeight}return o(d,p),a&&c!==d.collides&&n(e,i,h),d}},26303:(t,e,i)=>{var s=i(71558),r=new(i(26099));t.exports=function(t,e,i,n,o,a){return a.tilemapLayer.worldToTileXY(e,i,!0,r,o,a),s(t,r.x,r.y,n,a)}},14051:(t,e,i)=>{var s=i(42573),r=i(71558);t.exports=function(t,e,i,n,o){if(void 0===n&&(n=!0),!Array.isArray(t))return null;Array.isArray(t[0])||(t=[t]);for(var a=t.length,h=t[0].length,l=0;l{var s=i(7386),r=i(26546);t.exports=function(t,e,i,n,o,a){var h,l=s(t,e,i,n,{},a);if(!o)for(o=[],h=0;h{var s=i(23029),r=i(62991),n=i(72023);t.exports=function(t,e,i,o,a){if(void 0===i&&(i=!0),void 0===o&&(o=!0),!r(t,e,a))return null;var h=a.data[e][t];return h?(a.data[e][t]=i?null:new s(a,-1,t,e,a.tileWidth,a.tileHeight),o&&h&&h.collides&&n(t,e,a),h):null}},94178:(t,e,i)=>{var s=i(63557),r=new(i(26099));t.exports=function(t,e,i,n,o,a){return a.tilemapLayer.worldToTileXY(t,e,!0,r,o,a),s(r.x,r.y,i,n,a)}},15533:(t,e,i)=>{var s=i(7386),r=i(3956),n=new r(105,210,231,150),o=new r(243,134,48,200),a=new r(40,39,37,150);t.exports=function(t,e,i){void 0===e&&(e={});var r=void 0!==e.tileColor?e.tileColor:n,h=void 0!==e.collidingTileColor?e.collidingTileColor:o,l=void 0!==e.faceColor?e.faceColor:a,u=s(0,0,i.width,i.height,null,i);t.translateCanvas(i.tilemapLayer.x,i.tilemapLayer.y),t.scaleCanvas(i.tilemapLayer.scaleX,i.tilemapLayer.scaleY);for(var c=0;c{var s=i(7386);t.exports=function(t,e,i,r,n,o,a){for(var h=s(i,r,n,o,null,a),l=0;l{t.exports=function(t,e,i,s){var r,n,o,a=t.data,h=t.width,l=t.height,u=t.tilemapLayer,c=Math.max(0,e.left),d=Math.min(h,e.right),p=Math.max(0,e.top),f=Math.min(l,e.bottom);if(0===i)for(n=p;n=c;r--)(o=a[n][r])&&-1!==o.index&&o.visible&&0!==o.alpha&&s.push(o);else if(2===i)for(n=f;n>=p;n--)for(r=c;a[n]&&r=p;n--)for(r=d;a[n]&&r>=c;r--)(o=a[n][r])&&-1!==o.index&&o.visible&&0!==o.alpha&&s.push(o);return u.tilesDrawn=s.length,u.tilesTotal=h*l,s}},57068:(t,e,i)=>{var s=i(20576),r=i(42573),n=i(9589);t.exports=function(t,e,i,o,a){void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===a&&(a=!0),Array.isArray(t)||(t=[t]);for(var h=0;h{var s=i(20576),r=i(42573),n=i(9589);t.exports=function(t,e,i,o,a,h){if(void 0===i&&(i=!0),void 0===o&&(o=!0),void 0===h&&(h=!0),!(t>e)){for(var l=t;l<=e;l++)n(l,i,a);if(h)for(var u=0;u=t&&d.index<=e&&s(d,i)}o&&r(0,0,a.width,a.height,a)}}},75661:(t,e,i)=>{var s=i(20576),r=i(42573),n=i(9589);t.exports=function(t,e,i,o){void 0===e&&(e=!0),void 0===i&&(i=!0),Array.isArray(t)||(t=[t]);for(var a=0;a{var s=i(20576),r=i(42573),n=i(97022);t.exports=function(t,e,i,o){void 0===e&&(e=!0),void 0===i&&(i=!0);for(var a=0;a{var s=i(20576),r=i(42573);t.exports=function(t,e,i){void 0===t&&(t=!0),void 0===e&&(e=!0);for(var n=0;n0&&s(a,t)}}e&&r(0,0,i.width,i.height,i)}},9589:t=>{t.exports=function(t,e,i){var s=i.collideIndexes.indexOf(t);e&&-1===s?i.collideIndexes.push(t):e||-1===s||i.collideIndexes.splice(s,1)}},20576:t=>{t.exports=function(t,e){e?t.setCollision(!0,!0,!0,!0,!1):t.resetCollision(!1)}},79583:t=>{t.exports=function(t,e,i,s){if("number"==typeof t)s.callbacks[t]=null!==e?{callback:e,callbackContext:i}:void 0;else for(var r=0,n=t.length;r{var s=i(7386);t.exports=function(t,e,i,r,n,o,a){for(var h=s(t,e,i,r,null,a),l=0;l{var s=i(7386),r=i(33680);t.exports=function(t,e,i,n,o){var a=s(t,e,i,n,null,o),h=a.map((function(t){return t.index}));r(h);for(var l=0;l{var s=i(63448),r=i(56583);t.exports=function(t,e){var i=t.tilemapLayer.tilemap,n=t.tilemapLayer,o=Math.floor(i.tileWidth*n.scaleX),a=Math.floor(i.tileHeight*n.scaleY);return{left:r(e.worldView.x-n.x,o,0,!0)-n.cullPaddingX,right:s(e.worldView.right-n.x,o,0,!0)+n.cullPaddingX,top:r(e.worldView.y-n.y,a/2,0,!0)-n.cullPaddingY,bottom:s(e.worldView.bottom-n.y,a/2,0,!0)+n.cullPaddingY}}},54503:(t,e,i)=>{var s=i(61325),r=i(32483);t.exports=function(t,e,i,n){void 0===i&&(i=[]),void 0===n&&(n=0),i.length=0;var o=t.tilemapLayer,a=s(t,e);return o.skipCull&&1===o.scrollFactorX&&1===o.scrollFactorY&&(a.left=0,a.right=t.width,a.top=0,a.bottom=t.height),r(t,a,n,i),i}},97202:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r,n){i||(i=new s);var o=n.baseTileWidth,a=n.baseTileHeight,h=n.tilemapLayer,l=0,u=0;h&&(r||(r=h.scene.cameras.main),l=h.x+r.scrollX*(1-h.scrollFactorX),o*=h.scaleX,u=h.y+r.scrollY*(1-h.scrollFactorY),a*=h.scaleY);var c=l+t*o+e%2*(o/2),d=u+e*(a/2);return i.set(c,d)}},28054:t=>{t.exports=function(t,e,i){var s=i.baseTileHeight,r=i.tilemapLayer,n=0;return r&&(void 0===e&&(e=r.scene.cameras.main),n=r.y+e.scrollY*(1-r.scrollFactorY),s*=r.scaleY),n+t*(s/2)+s}},15108:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r,n,o){r||(r=new s);var a=o.baseTileWidth,h=o.baseTileHeight,l=o.tilemapLayer;l&&(n||(n=l.scene.cameras.main),e-=l.y+n.scrollY*(1-l.scrollFactorY),h*=l.scaleY,t-=l.x+n.scrollX*(1-l.scrollFactorX),a*=l.scaleX);var u=i?Math.floor(e/(h/2)):e/(h/2),c=i?Math.floor((t+u%2*.5*a)/a):(t+u%2*.5*a)/a;return r.set(c,u)}},51900:t=>{t.exports=function(t,e,i,s){var r=s.baseTileHeight,n=s.tilemapLayer;return n&&(i||(i=n.scene.cameras.main),t-=n.y+i.scrollY*(1-n.scrollFactorY),r*=n.scaleY),e?Math.floor(t/(r/2)):t/(r/2)}},86560:(t,e,i)=>{var s=i(7386);t.exports=function(t,e,i,r,n,o,a){for(var h=s(i,r,n,o,null,a),l=0;l{t.exports=function(t,e,i){var s=i.baseTileWidth,r=i.tilemapLayer,n=0;return r&&(e||(e=r.scene.cameras.main),n=r.x+e.scrollX*(1-r.scrollFactorX),s*=r.scaleX),n+t*s}},70326:(t,e,i)=>{var s=i(97281),r=i(29650),n=i(26099);t.exports=function(t,e,i,o,a){return i||(i=new n(0,0)),i.x=s(t,o,a),i.y=r(e,o,a),i}},29650:t=>{t.exports=function(t,e,i){var s=i.baseTileHeight,r=i.tilemapLayer,n=0;return r&&(e||(e=r.scene.cameras.main),n=r.y+e.scrollY*(1-r.scrollFactorY),s*=r.scaleY),n+t*s}},77366:(t,e,i)=>{var s=i(7386),r=i(75508);t.exports=function(t,e,i,n,o,a){if(o){var h,l=s(t,e,i,n,null,a),u=0;for(h=0;h{var s=i(85896),r=new(i(26099));t.exports=function(t,e,i,n){return s(t,0,e,r,i,n),r.x}},85896:(t,e,i)=>{var s=i(26099);t.exports=function(t,e,i,r,n,o){void 0===i&&(i=!0),r||(r=new s);var a=o.baseTileWidth,h=o.baseTileHeight,l=o.tilemapLayer;l&&(n||(n=l.scene.cameras.main),t-=l.x+n.scrollX*(1-l.scrollFactorX),e-=l.y+n.scrollY*(1-l.scrollFactorY),a*=l.scaleX,h*=l.scaleY);var u=t/a,c=e/h;return i&&(u=Math.floor(u),c=Math.floor(c)),r.set(u,c)}},63288:(t,e,i)=>{var s=i(85896),r=new(i(26099));t.exports=function(t,e,i,n){return s(0,t,e,r,i,n),r.y}},81086:(t,e,i)=>{t.exports={CalculateFacesAt:i(72023),CalculateFacesWithin:i(42573),CheckIsoBounds:i(33528),Copy:i(1785),CreateFromTiles:i(78419),CullBounds:i(19545),CullTiles:i(30003),Fill:i(35137),FilterTiles:i(40253),FindByIndex:i(52692),FindTile:i(66151),ForEachTile:i(97560),GetCullTilesFunction:i(43305),GetTileAt:i(7423),GetTileAtWorldXY:i(60540),GetTileCorners:i(55826),GetTileCornersFunction:i(11758),GetTilesWithin:i(7386),GetTilesWithinShape:i(91141),GetTilesWithinWorldXY:i(96523),GetTileToWorldXFunction:i(39167),GetTileToWorldXYFunction:i(62e3),GetTileToWorldYFunction:i(5984),GetWorldToTileXFunction:i(96113),GetWorldToTileXYFunction:i(16926),GetWorldToTileYFunction:i(55762),HasTileAt:i(45091),HasTileAtWorldXY:i(24152),HexagonalCullBounds:i(90454),HexagonalCullTiles:i(9474),HexagonalGetTileCorners:i(27229),HexagonalTileToWorldXY:i(19951),HexagonalWorldToTileXY:i(86625),IsInLayerBounds:i(62991),IsometricCullTiles:i(14018),IsometricTileToWorldXY:i(14127),IsometricWorldToTileXY:i(96897),PutTileAt:i(71558),PutTileAtWorldXY:i(26303),PutTilesAt:i(14051),Randomize:i(77389),RemoveTileAt:i(63557),RemoveTileAtWorldXY:i(94178),RenderDebug:i(15533),ReplaceByIndex:i(27987),RunCull:i(32483),SetCollision:i(57068),SetCollisionBetween:i(37266),SetCollisionByExclusion:i(75661),SetCollisionByProperty:i(64740),SetCollisionFromCollisionGroup:i(63307),SetLayerCollisionIndex:i(9589),SetTileCollision:i(20576),SetTileIndexCallback:i(79583),SetTileLocationCallback:i(93254),Shuffle:i(32903),StaggeredCullBounds:i(61325),StaggeredCullTiles:i(54503),StaggeredTileToWorldXY:i(97202),StaggeredTileToWorldY:i(28054),StaggeredWorldToTileXY:i(15108),StaggeredWorldToTileY:i(51900),SwapByIndex:i(86560),TileToWorldX:i(97281),TileToWorldXY:i(70326),TileToWorldY:i(29650),WeightedRandomize:i(77366),WorldToTileX:i(10095),WorldToTileXY:i(85896),WorldToTileY:i(63288)}},91907:t=>{t.exports={ORTHOGONAL:0,ISOMETRIC:1,STAGGERED:2,HEXAGONAL:3}},21829:(t,e,i)=>{var s={ORIENTATION:i(91907)};t.exports=s},62501:(t,e,i)=>{var s=i(79291),r=i(21829),n={Components:i(81086),Parsers:i(57442),Formats:i(80341),ImageCollection:i(16536),ParseToTilemap:i(31989),Tile:i(23029),Tilemap:i(49075),TilemapCreator:i(45939),TilemapFactory:i(46029),Tileset:i(33629),TilemapLayer:i(20442),Orientation:i(91907),LayerData:i(14977),MapData:i(87010),ObjectLayer:i(48700)};n=s(!1,n,r.ORIENTATION),t.exports=n},14977:(t,e,i)=>{var s=i(83419),r=i(91907),n=i(95540),o=new s({initialize:function(t){void 0===t&&(t={}),this.name=n(t,"name","layer"),this.id=n(t,"id",0),this.x=n(t,"x",0),this.y=n(t,"y",0),this.width=n(t,"width",0),this.height=n(t,"height",0),this.tileWidth=n(t,"tileWidth",0),this.tileHeight=n(t,"tileHeight",0),this.baseTileWidth=n(t,"baseTileWidth",this.tileWidth),this.baseTileHeight=n(t,"baseTileHeight",this.tileHeight),this.orientation=n(t,"orientation",r.ORTHOGONAL),this.widthInPixels=n(t,"widthInPixels",this.width*this.baseTileWidth),this.heightInPixels=n(t,"heightInPixels",this.height*this.baseTileHeight),this.alpha=n(t,"alpha",1),this.visible=n(t,"visible",!0),this.properties=n(t,"properties",[]),this.indexes=n(t,"indexes",[]),this.collideIndexes=n(t,"collideIndexes",[]),this.callbacks=n(t,"callbacks",[]),this.bodies=n(t,"bodies",[]),this.data=n(t,"data",[]),this.tilemapLayer=n(t,"tilemapLayer",null),this.hexSideLength=n(t,"hexSideLength",0),this.staggerAxis=n(t,"staggerAxis","y"),this.staggerIndex=n(t,"staggerIndex","odd")}});t.exports=o},87010:(t,e,i)=>{var s=i(83419),r=i(91907),n=i(95540),o=new s({initialize:function(t){void 0===t&&(t={}),this.name=n(t,"name","map"),this.width=n(t,"width",0),this.height=n(t,"height",0),this.infinite=n(t,"infinite",!1),this.tileWidth=n(t,"tileWidth",0),this.tileHeight=n(t,"tileHeight",0),this.widthInPixels=n(t,"widthInPixels",this.width*this.tileWidth),this.heightInPixels=n(t,"heightInPixels",this.height*this.tileHeight),this.format=n(t,"format",null),this.orientation=n(t,"orientation",r.ORTHOGONAL),this.renderOrder=n(t,"renderOrder","right-down"),this.version=n(t,"version","1"),this.properties=n(t,"properties",{}),this.layers=n(t,"layers",[]),this.images=n(t,"images",[]),this.objects=n(t,"objects",[]),Array.isArray(this.objects)||(this.objects=[]),this.collision=n(t,"collision",{}),this.tilesets=n(t,"tilesets",[]),this.imageCollections=n(t,"imageCollections",[]),this.tiles=n(t,"tiles",[]),this.hexSideLength=n(t,"hexSideLength",0),this.staggerAxis=n(t,"staggerAxis","y"),this.staggerIndex=n(t,"staggerIndex","odd")}});t.exports=o},48700:(t,e,i)=>{var s=i(83419),r=i(95540),n=new s({initialize:function(t){void 0===t&&(t={}),this.name=r(t,"name","object layer"),this.id=r(t,"id",0),this.opacity=r(t,"opacity",1),this.properties=r(t,"properties",{}),this.propertyTypes=r(t,"propertytypes",{}),this.type=r(t,"type","objectgroup"),this.visible=r(t,"visible",!0),this.objects=r(t,"objects",[]),Array.isArray(this.objects)||(this.objects=[])}});t.exports=n},6641:(t,e,i)=>{var s=i(91907);t.exports=function(t){return"isometric"===(t=t.toLowerCase())?s.ISOMETRIC:"staggered"===t?s.STAGGERED:"hexagonal"===t?s.HEXAGONAL:s.ORTHOGONAL}},46177:(t,e,i)=>{var s=i(80341),r=i(2342),n=i(82593),o=i(46594),a=i(87021);t.exports=function(t,e,i,h,l,u){var c;switch(e){case s.ARRAY_2D:c=r(t,i,h,l,u);break;case s.CSV:c=n(t,i,h,l,u);break;case s.TILED_JSON:c=o(t,i,u);break;case s.WELTMEISTER:c=a(t,i,u);break;default:console.warn("Unrecognized tilemap data format: "+e),c=null}return c}},2342:(t,e,i)=>{var s=i(80341),r=i(14977),n=i(87010),o=i(23029);t.exports=function(t,e,i,a,h){for(var l=new r({tileWidth:i,tileHeight:a}),u=new n({name:t,tileWidth:i,tileHeight:a,format:s.ARRAY_2D,layers:[l]}),c=[],d=e.length,p=0,f=0;f{var s=i(80341),r=i(2342);t.exports=function(t,e,i,n,o){var a=e.trim().split("\n").map((function(t){return t.split(",")})),h=r(t,a,i,n,o);return h.format=s.CSV,h}},6656:(t,e,i)=>{var s=i(14977),r=i(23029);t.exports=function(t,e){for(var i=[],n=0;n-1?new r(a,p,c,u,o.tilesize,o.tilesize):e?null:new r(a,-1,c,u,o.tilesize,o.tilesize),h.push(d)}l.push(h),h=[]}a.data=l,i.push(a)}return i}},96483:(t,e,i)=>{var s=i(33629);t.exports=function(t){for(var e=[],i=[],r=0;r{var s=i(80341),r=i(87010),n=i(6656),o=i(96483);t.exports=function(t,e,i){if(0===e.layer.length)return console.warn("No layers found in the Weltmeister map: "+t),null;for(var a=0,h=0,l=0;la&&(a=e.layer[l].width),e.layer[l].height>h&&(h=e.layer[l].height);var u=new r({width:a,height:h,name:t,tileWidth:e.layer[0].tilesize,tileHeight:e.layer[0].tilesize,format:s.WELTMEISTER});return u.layers=n(e,i),u.tilesets=o(e),u}},52833:(t,e,i)=>{t.exports={ParseTileLayers:i(6656),ParseTilesets:i(96483),ParseWeltmeister:i(87021)}},57442:(t,e,i)=>{t.exports={FromOrientationString:i(6641),Parse:i(46177),Parse2DArray:i(2342),ParseCSV:i(82593),Impact:i(52833),Tiled:i(96761)}},51233:(t,e,i)=>{var s=i(79291);t.exports=function(t){for(var e,i,r,n,o,a=0;a{t.exports=function(t){for(var e=window.atob(t),i=e.length,s=new Array(i/4),r=0;r>>0;return s}},84101:(t,e,i)=>{var s=i(33629);t.exports=function(t){var e,i,r=[];for(e=0;e{var s=i(95540);t.exports=function(t,e,i){if(!e)return{i:0,layers:t.layers,name:"",opacity:1,visible:!0,x:0,y:0};var r=e.x+s(e,"startx",0)*t.tilewidth+s(e,"offsetx",0),n=e.y+s(e,"starty",0)*t.tileheight+s(e,"offsety",0);return{i:0,layers:e.layers,name:i.name+e.name+"/",opacity:i.opacity*e.opacity,visible:i.visible&&e.visible,x:i.x+r,y:i.y+n}}},29920:t=>{var e=2147483648,i=1073741824,s=536870912;t.exports=function(t){var r=Boolean(t&e),n=Boolean(t&i),o=Boolean(t&s);t&=536870911;var a=0,h=!1;return r&&n&&o?(a=Math.PI/2,h=!0):r&&n&&!o?(a=Math.PI,h=!1):r&&!n&&o?(a=Math.PI/2,h=!1):!r||n||o?!r&&n&&o?(a=3*Math.PI/2,h=!1):r||!n||o?r||n||!o?r||n||o||(a=0,h=!1):(a=3*Math.PI/2,h=!0):(a=Math.PI,h=!0):(a=0,h=!0),{gid:t,flippedHorizontal:r,flippedVertical:n,flippedAntiDiagonal:o,rotation:a,flipped:h}}},12635:(t,e,i)=>{var s=i(95540),r=i(79677);t.exports=function(t){for(var e=[],i=[],n=r(t);n.i0;)if(n.i>=n.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}n=i.pop()}else{var o=n.layers[n.i];if(n.i++,"imagelayer"===o.type){var a=s(o,"offsetx",0)+s(o,"startx",0),h=s(o,"offsety",0)+s(o,"starty",0);e.push({name:n.name+o.name,image:o.image,x:n.x+a+o.x,y:n.y+h+o.y,alpha:n.opacity*o.opacity,visible:n.visible&&o.visible,properties:s(o,"properties",{})})}else if("group"===o.type){var l=r(t,o,n);i.push(n),n=l}}return e}},46594:(t,e,i)=>{var s=i(51233),r=i(84101),n=i(91907),o=i(62644),a=i(80341),h=i(6641),l=i(87010),u=i(12635),c=i(22611),d=i(28200),p=i(24619);t.exports=function(t,e,i){var f=o(e),g=new l({width:f.width,height:f.height,name:t,tileWidth:f.tilewidth,tileHeight:f.tileheight,orientation:h(f.orientation),format:a.TILED_JSON,version:f.version,properties:f.properties,renderOrder:f.renderorder,infinite:f.infinite});g.orientation===n.HEXAGONAL&&(g.hexSideLength=f.hexsidelength,g.staggerAxis=f.staggeraxis,g.staggerIndex=f.staggerindex),g.layers=d(f,i),g.images=u(f);var m=p(f);return g.tilesets=m.tilesets,g.imageCollections=m.imageCollections,g.objects=c(f),g.tiles=r(g),s(g),g}},52205:(t,e,i)=>{var s=i(18254),r=i(29920),n=function(t){return{x:t.x,y:t.y}},o=["id","name","type","rotation","properties","visible","x","y","width","height"];t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0);var a=s(t,o);if(a.x+=e,a.y+=i,t.gid){var h=r(t.gid);a.gid=h.gid,a.flippedHorizontal=h.flippedHorizontal,a.flippedVertical=h.flippedVertical,a.flippedAntiDiagonal=h.flippedAntiDiagonal}else t.polyline?a.polyline=t.polyline.map(n):t.polygon?a.polygon=t.polygon.map(n):t.ellipse?a.ellipse=t.ellipse:t.text?a.text=t.text:t.point?a.point=!0:a.rectangle=!0;return a}},22611:(t,e,i)=>{var s=i(95540),r=i(52205),n=i(48700),o=i(79677);t.exports=function(t){for(var e=[],i=[],a=o(t);a.i0;)if(a.i>=a.layers.length){if(i.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}a=i.pop()}else{var h=a.layers[a.i];if(a.i++,h.opacity*=a.opacity,h.visible=a.visible&&h.visible,"objectgroup"===h.type){h.name=a.name+h.name;for(var l=a.x+s(h,"startx",0)+s(h,"offsetx",0),u=a.y+s(h,"starty",0)+s(h,"offsety",0),c=[],d=0;d{var s=i(41868),r=i(91907),n=i(79677),o=i(6641),a=i(95540),h=i(14977),l=i(29920),u=i(23029);t.exports=function(t,e){for(var i=a(t,"infinite",!1),c=[],d=[],p=n(t);p.i0;)if(p.i>=p.layers.length){if(d.length<1){console.warn("TilemapParser.parseTiledJSON - Invalid layer group hierarchy");break}p=d.pop()}else{var f=p.layers[p.i];if(p.i++,"tilelayer"===f.type)if(f.compression)console.warn("TilemapParser.parseTiledJSON - Layer compression is unsupported, skipping layer '"+f.name+"'");else{if(f.encoding&&"base64"===f.encoding){if(f.chunks)for(var g=0;g0?((y=new u(m,v.gid,L,O,t.tilewidth,t.tileheight)).rotation=v.rotation,y.flipX=v.flipped,w[O][L]=y):(x=e?null:new u(m,-1,L,O,t.tilewidth,t.tileheight),w[O][L]=x),++T===A.width&&(R++,T=0)}}else{(m=new h({name:p.name+f.name,id:f.id,x:p.x+a(f,"offsetx",0)+f.x,y:p.y+a(f,"offsety",0)+f.y,width:f.width,height:f.height,tileWidth:t.tilewidth,tileHeight:t.tileheight,alpha:p.opacity*f.opacity,visible:p.visible&&f.visible,properties:a(f,"properties",[]),orientation:o(t.orientation)})).orientation===r.HEXAGONAL&&(m.hexSideLength=t.hexsidelength,m.staggerAxis=t.staggeraxis,m.staggerIndex=t.staggerindex);for(var F=[],D=0,I=f.data.length;D0?((y=new u(m,v.gid,T,w.length,t.tilewidth,t.tileheight)).rotation=v.rotation,y.flipX=v.flipped,F.push(y)):(x=e?null:new u(m,-1,T,w.length,t.tilewidth,t.tileheight),F.push(x)),++T===f.width&&(w.push(F),T=0,F=[])}m.data=w,c.push(m)}else if("group"===f.type){var B=n(t,f,p);d.push(p),p=B}}return c}},24619:(t,e,i)=>{var s=i(33629),r=i(16536),n=i(52205),o=i(57880);t.exports=function(t){for(var e,i=[],a=[],h=null,l=0;l1){var d=void 0,p=void 0;if(Array.isArray(u.tiles)){d=d||{},p=p||{};for(var f=0;f{t.exports=function(t,e){for(var i=0;i0){var n,o,a,h={},l={};if(Array.isArray(s.edgecolors))for(n=0;n{t.exports={AssignTileProperties:i(51233),Base64Decode:i(41868),BuildTilesetIndex:i(84101),CreateGroupLayer:i(79677),ParseGID:i(29920),ParseImageLayers:i(12635),ParseJSONTiled:i(46594),ParseObject:i(52205),ParseObjectLayers:i(22611),ParseTileLayers:i(28200),ParseTilesets:i(24619)}},33385:(t,e,i)=>{var s=i(83419),r=i(37277),n=i(44594),o=i(94880),a=i(72905),h=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.now=0,this.startTime=0,this.timeScale=1,this.paused=!1,this._active=[],this._pendingInsertion=[],this._pendingRemoval=[],t.sys.events.once(n.BOOT,this.boot,this),t.sys.events.on(n.START,this.start,this)},boot:function(){this.now=this.systems.game.loop.time,this.systems.events.once(n.DESTROY,this.destroy,this)},start:function(){this.startTime=this.systems.game.loop.time;var t=this.systems.events;t.on(n.PRE_UPDATE,this.preUpdate,this),t.on(n.UPDATE,this.update,this),t.once(n.SHUTDOWN,this.shutdown,this)},addEvent:function(t){var e;return t instanceof o?(e=t,this.removeEvent(e),e.elapsed=e.startAt,e.hasDispatched=!1,e.repeatCount=-1===e.repeat||e.loop?999999999999:e.repeat):e=new o(t),this._pendingInsertion.push(e),e},delayedCall:function(t,e,i,s){return this.addEvent({delay:t,callback:e,args:i,callbackScope:s})},clearPendingEvents:function(){return this._pendingInsertion=[],this},removeEvent:function(t){Array.isArray(t)||(t=[t]);for(var e=0;e-1&&this._active.splice(r,1),s.destroy()}for(i=0;i=s.delay)){var r=s.elapsed-s.delay;if(s.elapsed=s.delay,!s.hasDispatched&&s.callback&&(s.hasDispatched=!0,s.callback.apply(s.callbackScope,s.args)),s.repeatCount>0){if(s.repeatCount--,r>=s.delay)for(;r>=s.delay&&s.repeatCount>0;)s.callback&&s.callback.apply(s.callbackScope,s.args),r-=s.delay,s.repeatCount--;s.elapsed=r,s.hasDispatched=!1}else s.hasDispatched&&this._pendingRemoval.push(s)}}}},shutdown:function(){var t;for(t=0;t{var s=i(83419),r=i(50792),n=i(39429),o=i(95540),a=i(44594),h=i(89809),l=new s({Extends:r,initialize:function(t,e){r.call(this),this.scene=t,this.systems=t.sys,this.elapsed=0,this.paused=!0,this.complete=!1,this.totalComplete=0,this.loop=0,this.iteration=0,this.events=[];var i=this.systems.events;i.on(a.PRE_UPDATE,this.preUpdate,this),i.on(a.UPDATE,this.update,this),i.once(a.SHUTDOWN,this.destroy,this),e&&this.add(e)},preUpdate:function(t,e){this.paused||(this.elapsed+=e)},update:function(){if(!this.paused&&!this.complete){var t,e,i=this.events,s=!1,r=this.systems;for(t=0;t=i.length&&(0!==this.loop&&(-1===this.loop||this.loop>this.iteration)?(this.iteration++,this.reset(!0)):this.complete=!0),this.complete&&this.emit(h.COMPLETE,this)}},play:function(t){return void 0===t&&(t=!0),this.paused=!1,this.complete=!1,this.totalComplete=0,t&&this.reset(),this},pause:function(){return this.paused=!0,this},repeat:function(t){return void 0!==t&&!0!==t||(t=-1),!1===t&&(t=0),this.loop=t,this},resume:function(){return this.paused=!1,this},stop:function(){return this.paused=!0,this.complete=!0,this},reset:function(t){void 0===t&&(t=!1),this.elapsed=0,t||(this.iteration=0);for(var e=0;e0&&(i=e[e.length-1].time);for(var s=0;s{var s=i(83419),r=i(95540),n=new s({initialize:function(t){this.delay=0,this.repeat=0,this.repeatCount=0,this.loop=!1,this.callback,this.callbackScope,this.args,this.timeScale=1,this.startAt=0,this.elapsed=0,this.paused=!1,this.hasDispatched=!1,this.reset(t)},reset:function(t){if(this.delay=r(t,"delay",0),this.repeat=r(t,"repeat",0),this.loop=r(t,"loop",!1),this.callback=r(t,"callback",void 0),this.callbackScope=r(t,"callbackScope",this),this.args=r(t,"args",[]),this.timeScale=r(t,"timeScale",1),this.startAt=r(t,"startAt",0),this.paused=r(t,"paused",!1),this.elapsed=this.startAt,this.hasDispatched=!1,this.repeatCount=-1===this.repeat||this.loop?999999999999:this.repeat,0===this.delay&&(this.repeat>0||this.loop))throw new Error("TimerEvent infinite loop created via zero delay");return this},getProgress:function(){return this.elapsed/this.delay},getOverallProgress:function(){if(this.repeat>0){var t=this.delay+this.delay*this.repeat;return(this.elapsed+this.delay*(this.repeat-this.repeatCount))/t}return this.getProgress()},getRepeatCount:function(){return this.repeatCount},getElapsed:function(){return this.elapsed},getElapsedSeconds:function(){return.001*this.elapsed},getRemaining:function(){return this.delay-this.elapsed},getRemainingSeconds:function(){return.001*this.getRemaining()},getOverallRemaining:function(){return this.delay*(1+this.repeatCount)-this.elapsed},getOverallRemainingSeconds:function(){return.001*this.getOverallRemaining()},remove:function(t){void 0===t&&(t=!1),this.elapsed=this.delay,this.hasDispatched=!t,this.repeatCount=0},destroy:function(){this.callback=void 0,this.callbackScope=void 0,this.args=[]}});t.exports=n},35945:t=>{t.exports="complete"},89809:(t,e,i)=>{t.exports={COMPLETE:i(35945)}},90291:(t,e,i)=>{t.exports={Clock:i(33385),Events:i(89809),Timeline:i(96120),TimerEvent:i(94880)}},40382:(t,e,i)=>{var s=i(72905),r=i(83419),n=i(43491),o=i(88032),a=i(37277),h=i(44594),l=i(93109),u=i(86081),c=i(8357),d=i(43960),p=i(26012),f=new r({initialize:function(t){this.scene=t,this.events=t.sys.events,this.timeScale=1,this.paused=!1,this.processing=!1,this.tweens=[],this.time=0,this.startTime=0,this.nextTime=0,this.prevTime=0,this.maxLag=500,this.lagSkip=33,this.gap=1e3/240,this.events.once(h.BOOT,this.boot,this),this.events.on(h.START,this.start,this)},boot:function(){this.events.once(h.DESTROY,this.destroy,this)},start:function(){this.timeScale=1,this.paused=!1,this.startTime=Date.now(),this.prevTime=this.startTime,this.nextTime=this.gap,this.events.on(h.UPDATE,this.update,this),this.events.once(h.SHUTDOWN,this.shutdown,this)},create:function(t){Array.isArray(t)||(t=[t]);for(var e=[],i=0;i-1},existing:function(t){return this.has(t)||this.tweens.push(t.reset()),this},addCounter:function(t){var e=o(this,t);return this.tweens.push(e.reset()),e},stagger:function(t,e){return l(t,e)},setLagSmooth:function(t,e){return void 0===t&&(t=1/1e-8),void 0===e&&(e=0),this.maxLag=t,this.lagSkip=Math.min(e,this.maxLag),this},setFps:function(t){return void 0===t&&(t=240),this.gap=1e3/t,this.nextTime=1e3*this.time+this.gap,this},getDelta:function(t){var e=Date.now()-this.prevTime;e>this.maxLag&&(this.startTime+=e-this.lagSkip),this.prevTime+=e;var i=this.prevTime-this.startTime,s=i-this.nextTime,r=i-1e3*this.time;return s>0||t?(i/=1e3,this.time=i,this.nextTime+=s+(s>=this.gap?4:this.gap-s)):r=0,r},tick:function(){return this.step(!0),this},update:function(){this.paused||this.step(!1)},step:function(t){void 0===t&&(t=!1);var e=this.getDelta(t);if(!(e<=0)){var i,s;this.processing=!0;var r=[],n=this.tweens;for(i=0;i0){for(i=0;i-1&&(s.isPendingRemove()||s.isDestroyed())&&(n.splice(a,1),s.destroy())}r.length=0}this.processing=!1}},remove:function(t){return this.processing?t.setPendingRemoveState():(s(this.tweens,t),t.setRemovedState()),this},reset:function(t){return this.existing(t),t.seek(),t.setActiveState(),this},makeActive:function(t){return this.existing(t),t.setActiveState(),this},each:function(t,e){var i,s=[null];for(i=1;i{t.exports=function(t,e,i){return t&&t.hasOwnProperty(e)?t[e]:i}},6113:(t,e,i)=>{var s=i(62640),r=i(35355);t.exports=function(t,e){var i=s.Power0;if("string"==typeof t)if(s.hasOwnProperty(t))i=s[t];else{var n="";if(t.indexOf(".")){var o=(n=t.substring(t.indexOf(".")+1)).toLowerCase();"in"===o?n="easeIn":"out"===o?n="easeOut":"inout"===o&&(n="easeInOut")}t=r(t.substring(0,t.indexOf(".")+1)+n),s.hasOwnProperty(t)&&(i=s[t])}else"function"==typeof t&&(i=t);if(!e)return i;var a=e.slice(0);return a.unshift(0),function(t){return a[0]=t,i.apply(this,a)}}},91389:(t,e,i)=>{var s=i(89318),r=i(77259),n={bezier:s,catmull:r,catmullrom:r,linear:i(28392)};t.exports=function(t){if(null===t)return null;var e=n.linear;return"string"==typeof t?n.hasOwnProperty(t)&&(e=n[t]):"function"==typeof t&&(e=t),e}},55292:t=>{t.exports=function(t,e,i){return t.hasOwnProperty(e)?"function"==typeof t[e]?function(i,s,r,n,o,a){return t[e](i,s,r,n,o,a)}:function(){return t[e]}:"function"==typeof i?i:function(){return i}}},82985:(t,e,i)=>{var s=i(81076);t.exports=function(t){var e,i=[];if(t.hasOwnProperty("props"))for(e in t.props)"_"!==e.substring(0,1)&&i.push({key:e,value:t.props[e]});else for(e in t)-1===s.indexOf(e)&&"_"!==e.substring(0,1)&&i.push({key:e,value:t[e]});return i}},62329:(t,e,i)=>{var s=i(35154);t.exports=function(t){var e=s(t,"targets",null);return null===e||("function"==typeof e&&(e=e.call()),Array.isArray(e)||(e=[e])),e}},17777:(t,e,i)=>{var s=i(30976),r=i(99472);function n(t){return!!t.getActive&&"function"==typeof t.getActive}function o(t){return!!t.getStart&&"function"==typeof t.getStart}function a(t){return!!t.getEnd&&"function"==typeof t.getEnd}var h=function(t,e){var i,l,u=function(t,e,i){return i},c=function(t,e,i){return i},d=null,p=typeof e;if("number"===p)u=function(){return e};else if(Array.isArray(e))c=function(){return e[0]},u=function(){return e[e.length-1]};else if("string"===p){var f=e.toLowerCase(),g="random"===f.substring(0,6),m="int"===f.substring(0,3);if(g||m){var v=f.indexOf("("),y=f.indexOf(")"),x=f.indexOf(",");if(!(v&&y&&x))throw new Error("invalid random() format");var w=parseFloat(f.substring(v+1,x)),T=parseFloat(f.substring(x+1,y));u=g?function(){return r(w,T)}:function(){return s(w,T)}}else{f=f[0];var b=parseFloat(e.substr(2));switch(f){case"+":u=function(t,e,i){return i+b};break;case"-":u=function(t,e,i){return i-b};break;case"*":u=function(t,e,i){return i*b};break;case"/":u=function(t,e,i){return i/b};break;default:u=function(){return parseFloat(e)}}}}else if("function"===p)u=e;else if("object"===p)if(o(l=e)||a(l)||n(l))n(e)&&(d=e.getActive),a(e)&&(u=e.getEnd),o(e)&&(c=e.getStart);else if(e.hasOwnProperty("value"))i=h(t,e.value);else{var S=e.hasOwnProperty("to"),E=e.hasOwnProperty("from"),C=e.hasOwnProperty("start");if(S&&(E||C)){if(i=h(t,e.to),C){var A=h(t,e.start);i.getActive=A.getEnd}if(E){var _=h(t,e.from);i.getStart=_.getEnd}}}return i||(i={getActive:d,getEnd:u,getStart:c}),i};t.exports=h},88032:(t,e,i)=>{var s=i(70402),r=i(69902),n=i(23568),o=i(57355),a=i(6113),h=i(55292),l=i(35154),u=i(17777),c=i(269),d=i(86081);t.exports=function(t,e,i){if(e instanceof d)return e.parent=t,e;i=void 0===i?r:c(r,i);var p=l(e,"from",0),f=l(e,"to",1),g=[{value:p}],m=l(e,"delay",i.delay),v=l(e,"easeParams",i.easeParams),y=l(e,"ease",i.ease),x=u("value",f),w=new d(t,g),T=w.add(0,"value",x.getEnd,x.getStart,x.getActive,a(l(e,"ease",y),l(e,"easeParams",v)),h(e,"delay",m),l(e,"duration",i.duration),o(e,"yoyo",i.yoyo),l(e,"hold",i.hold),l(e,"repeat",i.repeat),l(e,"repeatDelay",i.repeatDelay),!1,!1);T.start=p,T.current=p,w.completeDelay=n(e,"completeDelay",0),w.loop=Math.round(n(e,"loop",0)),w.loopDelay=Math.round(n(e,"loopDelay",0)),w.paused=o(e,"paused",!1),w.persist=o(e,"persist",!1),w.callbackScope=l(e,"callbackScope",w);for(var b=s.TYPES,S=0;S{var s=i(6113),r=i(35154),n=i(36383);t.exports=function(t,e){void 0===e&&(e={});var i=r(e,"start",0),o=r(e,"ease",null),a=r(e,"grid",null),h=r(e,"from",0),l="first"===h,u="center"===h,c="last"===h,d="number"==typeof h,p=Array.isArray(t),f=p?parseFloat(t[0]):parseFloat(t),g=p?parseFloat(t[1]):0,m=Math.max(f,g);if(p&&(i+=f),a){var v=a[0],y=a[1],x=0,w=0,T=0,b=0,S=[];c?(x=v-1,w=y-1):d?(x=h%v,w=Math.floor(h/v)):u&&(x=(v-1)/2,w=(y-1)/2);for(var E=n.MIN_SAFE_INTEGER,C=0;CE&&(E=_),S[C][A]=_}}}var P=o?s(o):null;return a?function(t,e,s,r){var n,o=0,a=r%v,h=Math.floor(r/v);if(a>=0&&a=0&&h{var s=i(70402),r=i(69902),n=i(23568),o=i(57355),a=i(6113),h=i(91389),l=i(55292),u=i(82985),c=i(62329),d=i(35154),p=i(17777),f=i(269),g=i(86081);t.exports=function(t,e,i){if(e instanceof g)return e.parent=t,e;i=void 0===i?r:f(r,i);var m=c(e);!m&&i.targets&&(m=i.targets);for(var v=u(e),y=d(e,"delay",i.delay),x=d(e,"duration",i.duration),w=d(e,"easeParams",i.easeParams),T=d(e,"ease",i.ease),b=d(e,"hold",i.hold),S=d(e,"repeat",i.repeat),E=d(e,"repeatDelay",i.repeatDelay),C=o(e,"yoyo",i.yoyo),A=o(e,"flipX",i.flipX),_=o(e,"flipY",i.flipY),P=d(e,"interpolation",i.interpolation),R=function(t,e,i,s){if("texture"===i){var r=s,n=void 0;Array.isArray(s)?(r=s[0],n=s[1]):s.hasOwnProperty("value")?(r=s.value,Array.isArray(s.value)?(r=s.value[0],n=s.value[1]):"string"==typeof s.value&&(r=s.value)):"string"==typeof s&&(r=s),t.addFrame(e,r,n,l(s,"delay",y),d(s,"duration",x),d(s,"hold",b),d(s,"repeat",S),d(s,"repeatDelay",E),o(s,"flipX",A),o(s,"flipY",_))}else{var u=p(i,s),c=h(d(s,"interpolation",P));t.add(e,i,u.getEnd,u.getStart,u.getActive,a(d(s,"ease",T),d(s,"easeParams",w)),l(s,"delay",y),d(s,"duration",x),o(s,"yoyo",C),d(s,"hold",b),d(s,"repeat",S),d(s,"repeatDelay",E),o(s,"flipX",A),o(s,"flipY",_),c,c?s:null)}},M=new g(t,m),k=0;k{var s=i(70402),r=i(23568),n=i(57355),o=i(62329),a=i(35154),h=i(8357),l=i(43960);t.exports=function(t,e){if(e instanceof l)return e.parent=t,e;var i,u=new l(t);u.startDelay=a(e,"delay",0),u.completeDelay=r(e,"completeDelay",0),u.loop=Math.round(r(e,"loop",a(e,"repeat",0))),u.loopDelay=Math.round(r(e,"loopDelay",a(e,"repeatDelay",0))),u.paused=n(e,"paused",!1),u.persist=n(e,"persist",!1),u.callbackScope=a(e,"callbackScope",u);var c=s.TYPES;for(i=0;i{t.exports={GetBoolean:i(57355),GetEaseFunction:i(6113),GetInterpolationFunction:i(91389),GetNewValue:i(55292),GetProps:i(82985),GetTargets:i(62329),GetValueOp:i(17777),NumberTweenBuilder:i(88032),StaggerBuilder:i(93109),TweenBuilder:i(8357)}},73685:t=>{t.exports="active"},98540:t=>{t.exports="complete"},67233:t=>{t.exports="loop"},2859:t=>{t.exports="pause"},98336:t=>{t.exports="repeat"},25764:t=>{t.exports="resume"},32193:t=>{t.exports="start"},84371:t=>{t.exports="stop"},70766:t=>{t.exports="update"},55659:t=>{t.exports="yoyo"},842:(t,e,i)=>{t.exports={TWEEN_ACTIVE:i(73685),TWEEN_COMPLETE:i(98540),TWEEN_LOOP:i(67233),TWEEN_PAUSE:i(2859),TWEEN_RESUME:i(25764),TWEEN_REPEAT:i(98336),TWEEN_START:i(32193),TWEEN_STOP:i(84371),TWEEN_UPDATE:i(70766),TWEEN_YOYO:i(55659)}},43066:(t,e,i)=>{var s={States:i(86353),Builders:i(30231),Events:i(842),TweenManager:i(40382),Tween:i(86081),TweenData:i(48177),TweenFrameData:i(42220),BaseTween:i(70402),TweenChain:i(43960)};t.exports=s},70402:(t,e,i)=>{var s=i(83419),r=i(50792),n=i(842),o=i(86353),a=new s({Extends:r,initialize:function(t){r.call(this),this.parent=t,this.data=[],this.totalData=0,this.startDelay=0,this.hasStarted=!1,this.timeScale=1,this.loop=0,this.loopDelay=0,this.loopCounter=0,this.completeDelay=0,this.countdown=0,this.state=o.PENDING,this.paused=!1,this.callbacks={onActive:null,onComplete:null,onLoop:null,onPause:null,onRepeat:null,onResume:null,onStart:null,onStop:null,onUpdate:null,onYoyo:null},this.callbackScope,this.persist=!1},setTimeScale:function(t){return this.timeScale=t,this},getTimeScale:function(){return this.timeScale},isPlaying:function(){return!this.paused&&this.isActive()},isPaused:function(){return this.paused},pause:function(){return this.paused||(this.paused=!0,this.dispatchEvent(n.TWEEN_PAUSE,"onPause")),this},resume:function(){return this.paused&&(this.paused=!1,this.dispatchEvent(n.TWEEN_RESUME,"onResume")),this},makeActive:function(){this.parent.makeActive(this),this.dispatchEvent(n.TWEEN_ACTIVE,"onActive")},onCompleteHandler:function(){this.setPendingRemoveState(),this.dispatchEvent(n.TWEEN_COMPLETE,"onComplete")},complete:function(t){return void 0===t&&(t=0),t?(this.setCompleteDelayState(),this.countdown=t):this.onCompleteHandler(),this},completeAfterLoop:function(t){return void 0===t&&(t=0),this.loopCounter>t&&(this.loopCounter=t),this},remove:function(){return this.parent&&this.parent.remove(this),this},stop:function(){return!this.parent||this.isRemoved()||this.isPendingRemove()||this.isDestroyed()||(this.dispatchEvent(n.TWEEN_STOP,"onStop"),this.setPendingRemoveState()),this},updateLoopCountdown:function(t){this.countdown-=t,this.countdown<=0&&(this.setActiveState(),this.dispatchEvent(n.TWEEN_LOOP,"onLoop"))},updateStartCountdown:function(t){return this.countdown-=t,this.countdown<=0&&(this.hasStarted=!0,this.setActiveState(),this.dispatchEvent(n.TWEEN_START,"onStart"),t=0),t},updateCompleteDelay:function(t){this.countdown-=t,this.countdown<=0&&this.onCompleteHandler()},setCallback:function(t,e,i){return void 0===i&&(i=[]),this.callbacks.hasOwnProperty(t)&&(this.callbacks[t]={func:e,params:i}),this},setPendingState:function(){this.state=o.PENDING},setActiveState:function(){this.state=o.ACTIVE},setLoopDelayState:function(){this.state=o.LOOP_DELAY},setCompleteDelayState:function(){this.state=o.COMPLETE_DELAY},setStartDelayState:function(){this.state=o.START_DELAY,this.countdown=this.startDelay,this.hasStarted=!1},setPendingRemoveState:function(){this.state=o.PENDING_REMOVE},setRemovedState:function(){this.state=o.REMOVED},setFinishedState:function(){this.state=o.FINISHED},setDestroyedState:function(){this.state=o.DESTROYED},isPending:function(){return this.state===o.PENDING},isActive:function(){return this.state===o.ACTIVE},isLoopDelayed:function(){return this.state===o.LOOP_DELAY},isCompleteDelayed:function(){return this.state===o.COMPLETE_DELAY},isStartDelayed:function(){return this.state===o.START_DELAY},isPendingRemove:function(){return this.state===o.PENDING_REMOVE},isRemoved:function(){return this.state===o.REMOVED},isFinished:function(){return this.state===o.FINISHED},isDestroyed:function(){return this.state===o.DESTROYED},destroy:function(){this.data&&this.data.forEach((function(t){t.destroy()})),this.removeAllListeners(),this.callbacks=null,this.data=null,this.parent=null,this.setDestroyedState()}});a.TYPES=["onActive","onComplete","onLoop","onPause","onRepeat","onResume","onStart","onStop","onUpdate","onYoyo"],t.exports=a},95042:(t,e,i)=>{var s=i(83419),r=i(842),n=i(86353),o=new s({initialize:function(t,e,i,s,r,n,o,a,h,l){this.tween=t,this.targetIndex=e,this.duration=s,this.totalDuration=0,this.delay=0,this.getDelay=i,this.yoyo=r,this.hold=n,this.repeat=o,this.repeatDelay=a,this.repeatCounter=0,this.flipX=h,this.flipY=l,this.progress=0,this.elapsed=0,this.state=0,this.isCountdown=!1},getTarget:function(){return this.tween.targets[this.targetIndex]},setTargetValue:function(t){void 0===t&&(t=this.current),this.tween.targets[this.targetIndex][this.key]=t},setCreatedState:function(){this.state=n.CREATED,this.isCountdown=!1},setDelayState:function(){this.state=n.DELAY,this.isCountdown=!0},setPendingRenderState:function(){this.state=n.PENDING_RENDER,this.isCountdown=!1},setPlayingForwardState:function(){this.state=n.PLAYING_FORWARD,this.isCountdown=!1},setPlayingBackwardState:function(){this.state=n.PLAYING_BACKWARD,this.isCountdown=!1},setHoldState:function(){this.state=n.HOLD_DELAY,this.isCountdown=!0},setRepeatState:function(){this.state=n.REPEAT_DELAY,this.isCountdown=!0},setCompleteState:function(){this.state=n.COMPLETE,this.isCountdown=!1},isCreated:function(){return this.state===n.CREATED},isDelayed:function(){return this.state===n.DELAY},isPendingRender:function(){return this.state===n.PENDING_RENDER},isPlayingForward:function(){return this.state===n.PLAYING_FORWARD},isPlayingBackward:function(){return this.state===n.PLAYING_BACKWARD},isHolding:function(){return this.state===n.HOLD_DELAY},isRepeating:function(){return this.state===n.REPEAT_DELAY},isComplete:function(){return this.state===n.COMPLETE},setStateFromEnd:function(t){this.yoyo?this.onRepeat(t,!0,!0):this.repeatCounter>0?this.onRepeat(t,!0,!1):this.setCompleteState()},setStateFromStart:function(t){this.repeatCounter>0?this.onRepeat(t,!1):this.setCompleteState()},reset:function(){var t=this.tween,e=t.totalTargets,i=this.targetIndex,s=t.targets[i],r=this.key;this.progress=0,this.elapsed=0,this.delay=this.getDelay(s,r,0,i,e,t),this.repeatCounter=-1===this.repeat?n.MAX:this.repeat,this.setPendingRenderState();var o=this.duration+this.hold;this.yoyo&&(o+=this.duration);var a=o+this.repeatDelay;this.totalDuration=this.delay+o,-1===this.repeat?(this.totalDuration+=a*n.MAX,t.isInfinite=!0):this.repeat>0&&(this.totalDuration+=a*this.repeat),this.totalDuration>t.duration&&(t.duration=this.totalDuration),this.delay0&&(this.elapsed=this.delay,this.setDelayState())},onRepeat:function(t,e,i){var s=this.tween,n=s.totalTargets,o=this.targetIndex,a=s.targets[o],h=this.key,l="texture"!==h;if(this.elapsed=t,this.progress=t/this.duration,this.flipX&&a.toggleFlipX(),this.flipY&&a.toggleFlipY(),l&&(e||i)&&(this.start=this.getStartValue(a,h,this.start,o,n,s)),i)return this.setPlayingBackwardState(),void this.dispatchEvent(r.TWEEN_YOYO,"onYoyo");this.repeatCounter--,l&&(this.end=this.getEndValue(a,h,this.start,o,n,s)),this.repeatDelay>0?(this.elapsed=this.repeatDelay-t,l&&(this.current=this.start,a[h]=this.current),this.setRepeatState()):(this.setPlayingForwardState(),this.dispatchEvent(r.TWEEN_REPEAT,"onRepeat"))},destroy:function(){this.tween=null,this.getDelay=null,this.setCompleteState()}});t.exports=o},69902:t=>{t.exports={targets:null,delay:0,duration:1e3,ease:"Power0",easeParams:null,hold:0,repeat:0,repeatDelay:0,yoyo:!1,flipX:!1,flipY:!1,persist:!1,interpolation:null}},81076:t=>{t.exports=["callbackScope","completeDelay","delay","duration","ease","easeParams","flipX","flipY","hold","interpolation","loop","loopDelay","onActive","onActiveParams","onComplete","onCompleteParams","onLoop","onLoopParams","onPause","onPauseParams","onRepeat","onRepeatParams","onResume","onResumeParams","onStart","onStartParams","onStop","onStopParams","onUpdate","onUpdateParams","onYoyo","onYoyoParams","paused","persist","props","repeat","repeatDelay","targets","yoyo"]},86081:(t,e,i)=>{var s=i(70402),r=i(83419),n=i(842),o=i(44603),a=i(39429),h=i(36383),l=i(86353),u=i(48177),c=i(42220),d=new r({Extends:s,initialize:function(t,e){s.call(this,t),this.targets=e,this.totalTargets=e.length,this.isSeeking=!1,this.isInfinite=!1,this.elapsed=0,this.totalElapsed=0,this.duration=0,this.progress=0,this.totalDuration=0,this.totalProgress=0},add:function(t,e,i,s,r,n,o,a,h,l,c,d,p,f,g,m){var v=new u(this,t,e,i,s,r,n,o,a,h,l,c,d,p,f,g,m);return this.totalData=this.data.push(v),v},addFrame:function(t,e,i,s,r,n,o,a,h,l){var u=new c(this,t,e,i,s,r,n,o,a,h,l);return this.totalData=this.data.push(u),u},getValue:function(t){void 0===t&&(t=0);var e=null;return this.data&&(e=this.data[t].current),e},hasTarget:function(t){return this.targets&&-1!==this.targets.indexOf(t)},updateTo:function(t,e,i){if(void 0===i&&(i=!1),"texture"!==t)for(var s=0;s0)this.elapsed=0,this.progress=0,this.loopCounter--,this.initTweenData(!0),this.loopDelay>0?(this.countdown=this.loopDelay,this.setLoopDelayState()):(this.setActiveState(),this.dispatchEvent(n.TWEEN_LOOP,"onLoop"));else{if(!(this.completeDelay>0))return this.onCompleteHandler(),!0;this.countdown=this.completeDelay,this.setCompleteDelayState()}return!1},onCompleteHandler:function(){this.progress=1,this.totalProgress=1,s.prototype.onCompleteHandler.call(this)},play:function(){return this.isDestroyed()?(console.warn("Cannot play destroyed Tween",this),this):((this.isPendingRemove()||this.isFinished())&&this.seek(),this.paused=!1,this.setActiveState(),this)},seek:function(t,e,i){if(void 0===t&&(t=0),void 0===e&&(e=16.6),void 0===i&&(i=!1),this.isDestroyed())return console.warn("Cannot seek destroyed Tween",this),this;i||(this.isSeeking=!0),this.reset(!0),this.initTweenData(!0),this.setActiveState(),this.dispatchEvent(n.TWEEN_ACTIVE,"onActive");var s=this.paused;if(this.paused=!1,t>0){for(var r=Math.floor(t/e),o=t-r*e,a=0;a0&&this.update(o)}return this.paused=s,this.isSeeking=!1,this},initTweenData:function(t){void 0===t&&(t=!1),this.duration=0,this.startDelay=h.MAX_SAFE_INTEGER;for(var e=this.data,i=0;i0?s+r+(s+o)*n:s+r},reset:function(t){return void 0===t&&(t=!1),this.elapsed=0,this.totalElapsed=0,this.progress=0,this.totalProgress=0,this.loopCounter=this.loop,-1===this.loop&&(this.isInfinite=!0,this.loopCounter=l.MAX),t||(this.initTweenData(),this.setActiveState(),this.dispatchEvent(n.TWEEN_ACTIVE,"onActive")),this},update:function(t){if(this.isPendingRemove()||this.isDestroyed())return!0;if(this.paused||this.isFinished())return!1;if(t*=this.timeScale*this.parent.timeScale,this.isLoopDelayed())return this.updateLoopCountdown(t),!1;if(this.isCompleteDelayed())return this.updateCompleteDelay(t),!1;this.hasStarted||(this.startDelay-=t,this.startDelay<=0&&(this.hasStarted=!0,this.dispatchEvent(n.TWEEN_START,"onStart"),t=0));var e=!1;if(this.isActive())for(var i=this.data,s=0;s{var s=i(72905),r=i(70402),n=i(83419),o=i(842),a=i(44603),h=i(39429),l=i(86353),u=new n({Extends:r,initialize:function(t){r.call(this,t),this.currentTween=null,this.currentIndex=0},init:function(){return this.loopCounter=-1===this.loop?l.MAX:this.loop,this.setCurrentTween(0),this.startDelay>0&&!this.isStartDelayed()?this.setStartDelayState():this.setActiveState(),this.dispatchEvent(o.TWEEN_ACTIVE,"onActive"),this},add:function(t){var e=this.parent.create(t);Array.isArray(e)||(e=[e]);for(var i=this.data,s=0;s0)this.loopCounter--,this.resetTweens(),this.loopDelay>0?(this.countdown=this.loopDelay,this.setLoopDelayState()):(this.setActiveState(),this.dispatchEvent(o.TWEEN_LOOP,"onLoop"));else{if(!(this.completeDelay>0))return this.onCompleteHandler(),!0;this.countdown=this.completeDelay,this.setCompleteDelayState()}return!1},play:function(){return this.isDestroyed()?(console.warn("Cannot play destroyed TweenChain",this),this):((this.isPendingRemove()||this.isPending())&&this.resetTweens(),this.paused=!1,this.startDelay>0&&!this.isStartDelayed()?this.setStartDelayState():this.setActiveState(),this)},resetTweens:function(){for(var t=this.data,e=this.totalData,i=0;i{var s=i(95042),r=i(45319),n=i(83419),o=i(842),a=new n({Extends:s,initialize:function(t,e,i,r,n,o,a,h,l,u,c,d,p,f,g,m,v){s.call(this,t,e,h,l,u,c,d,p,f,g),this.key=i,this.getActiveValue=o,this.getEndValue=r,this.getStartValue=n,this.ease=a,this.start=0,this.previous=0,this.current=0,this.end=0,this.interpolation=m,this.interpolationData=v},reset:function(t){s.prototype.reset.call(this);var e=this.tween.targets[this.targetIndex],i=this.key;t&&(e[i]=this.start),this.start=0,this.previous=0,this.current=0,this.end=0,this.getActiveValue&&(e[i]=this.getActiveValue(e,i,0))},update:function(t){var e=this.tween,i=e.totalTargets,s=this.targetIndex,n=e.targets[s],a=this.key;if(!n)return this.setCompleteState(),!1;if(this.isCountdown&&(this.elapsed-=t,this.elapsed<=0&&(this.elapsed=0,t=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(o.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0))),this.isPendingRender())return this.start=this.getStartValue(n,a,n[a],s,i,e),this.end=this.getEndValue(n,a,this.start,s,i,e),this.current=this.start,n[a]=this.start,this.setPlayingForwardState(),!0;var h=this.isPlayingForward(),l=this.isPlayingBackward();if(h||l){var u=this.elapsed,c=this.duration,d=0,p=!1;(u+=t)>=c?(d=u-c,u=c,p=!0):u<0&&(u=0);var f=r(u/c,0,1);if(this.elapsed=u,this.progress=f,this.previous=this.current,p)h?(this.current=this.end,n[a]=this.end,this.hold>0?(this.elapsed=this.hold,this.setHoldState()):this.setStateFromEnd(d)):(this.current=this.start,n[a]=this.start,this.setStateFromStart(d));else{h||(f=1-f);var g=this.ease(f);this.interpolation?this.current=this.interpolation(this.interpolationData,g):this.current=this.start+(this.end-this.start)*g,n[a]=this.current}this.dispatchEvent(o.TWEEN_UPDATE,"onUpdate")}return!this.isComplete()},dispatchEvent:function(t,e){var i=this.tween;if(!i.isSeeking){var s=i.targets[this.targetIndex],r=this.key,n=this.current,o=this.previous;i.emit(t,i,r,s,n,o);var a=i.callbacks[e];a&&a.func.apply(i.callbackScope,[i,s,r,n,o].concat(a.params))}},destroy:function(){s.prototype.destroy.call(this),this.getActiveValue=null,this.getEndValue=null,this.getStartValue=null,this.ease=null}});t.exports=a},42220:(t,e,i)=>{var s=i(95042),r=i(45319),n=i(83419),o=i(842),a=new n({Extends:s,initialize:function(t,e,i,r,n,o,a,h,l,u,c){s.call(this,t,e,n,o,!1,a,h,l,u,c),this.key="texture",this.startTexture=null,this.endTexture=i,this.startFrame=null,this.endFrame=r,this.yoyo=0!==h},reset:function(t){s.prototype.reset.call(this);var e=this.tween.targets[this.targetIndex];this.startTexture||(this.startTexture=e.texture.key,this.startFrame=e.frame.name),t&&e.setTexture(this.startTexture,this.startFrame)},update:function(t){var e=this.tween,i=this.targetIndex,s=e.targets[i];if(!s)return this.setCompleteState(),!1;if(this.isCountdown&&(this.elapsed-=t,this.elapsed<=0&&(this.elapsed=0,t=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(o.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0))),this.isPendingRender())return this.startTexture&&s.setTexture(this.startTexture,this.startFrame),this.setPlayingForwardState(),!0;var n=this.isPlayingForward(),a=this.isPlayingBackward();if(n||a){var h=this.elapsed,l=this.duration,u=0,c=!1;(h+=t)>=l?(u=h-l,h=l,c=!0):h<0&&(h=0);var d=r(h/l,0,1);this.elapsed=h,this.progress=d,c&&(n?(s.setTexture(this.endTexture,this.endFrame),this.hold>0?(this.elapsed=this.hold,this.setHoldState()):this.setStateFromEnd(u)):(s.setTexture(this.startTexture,this.startFrame),this.setStateFromStart(u))),this.dispatchEvent(o.TWEEN_UPDATE,"onUpdate")}return!this.isComplete()},dispatchEvent:function(t,e){var i=this.tween;if(!i.isSeeking){var s=i.targets[this.targetIndex],r=this.key;i.emit(t,i,r,s);var n=i.callbacks[e];n&&n.func.apply(i.callbackScope,[i,s,r].concat(n.params))}},destroy:function(){s.prototype.destroy.call(this),this.startTexture=null,this.endTexture=null,this.startFrame=null,this.endFrame=null}});t.exports=a},86353:t=>{t.exports={CREATED:0,DELAY:2,PENDING_RENDER:4,PLAYING_FORWARD:5,PLAYING_BACKWARD:6,HOLD_DELAY:7,REPEAT_DELAY:8,COMPLETE:9,PENDING:20,ACTIVE:21,LOOP_DELAY:22,COMPLETE_DELAY:23,START_DELAY:24,PENDING_REMOVE:25,REMOVED:26,FINISHED:27,DESTROYED:28,MAX:999999999999}},83419:t=>{function e(t,e,i){var s=i?t[e]:Object.getOwnPropertyDescriptor(t,e);return!i&&s.value&&"object"==typeof s.value&&(s=s.value),!(!s||!function(t){return!!t.get&&"function"==typeof t.get||!!t.set&&"function"==typeof t.set}(s))&&(void 0===s.enumerable&&(s.enumerable=!0),void 0===s.configurable&&(s.configurable=!0),s)}function i(t,e){var i=Object.getOwnPropertyDescriptor(t,e);return!!i&&(i.value&&"object"==typeof i.value&&(i=i.value),!1===i.configurable)}function s(t,s,r,o){for(var a in s)if(s.hasOwnProperty(a)){var h=e(s,a,r);if(!1!==h){if(i((o||t).prototype,a)){if(n.ignoreFinals)continue;throw new Error("cannot override final property '"+a+"', set Class.ignoreFinals = true to skip")}Object.defineProperty(t.prototype,a,h)}else t.prototype[a]=s[a]}}function r(t,e){if(e){Array.isArray(e)||(e=[e]);for(var i=0;i{t.exports=function(){}},20242:t=>{t.exports=function(){return null}},71146:t=>{t.exports=function(t,e,i,s,r){if(void 0===r&&(r=t),i>0){var n=i-t.length;if(n<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.push(e),s&&s.call(r,e),e):null;for(var o=e.length-1;o>=0;)-1!==t.indexOf(e[o])&&e.splice(o,1),o--;if(0===(o=e.length))return null;i>0&&o>n&&(e.splice(n),o=n);for(var a=0;a{t.exports=function(t,e,i,s,r,n){if(void 0===i&&(i=0),void 0===n&&(n=t),s>0){var o=s-t.length;if(o<=0)return null}if(!Array.isArray(e))return-1===t.indexOf(e)?(t.splice(i,0,e),r&&r.call(n,e),e):null;for(var a=e.length-1;a>=0;)-1!==t.indexOf(e[a])&&e.pop(),a--;if(0===(a=e.length))return null;s>0&&a>o&&(e.splice(o),a=o);for(var h=a-1;h>=0;h--){var l=e[h];t.splice(i,0,l),r&&r.call(n,l)}return e}},66905:t=>{t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&i{var s=i(82011);t.exports=function(t,e,i,r,n){void 0===r&&(r=0),void 0===n&&(n=t.length);var o=0;if(s(t,r,n))for(var a=r;a{t.exports=function(t,e,i){var s,r=[null];for(s=3;s{var s=i(82011);t.exports=function(t,e,i,r,n){if(void 0===r&&(r=0),void 0===n&&(n=t.length),s(t,r,n)){var o,a=[null];for(o=5;o{t.exports=function(t,e,i){if(!e.length)return NaN;if(1===e.length)return e[0];var s,r,n=1;if(i){if(te.length&&(n=e.length),i?(s=e[n-1][i],(r=e[n][i])-t<=t-s?e[n]:e[n-1]):(s=e[n-1],(r=e[n])-t<=t-s?r:s)}},43491:t=>{var e=function(t,i){void 0===i&&(i=[]);for(var s=0;s{var s=i(82011);t.exports=function(t,e,i,r,n){void 0===r&&(r=0),void 0===n&&(n=t.length);var o=[];if(s(t,r,n))for(var a=r;a{var s=i(82011);t.exports=function(t,e,i,r,n){if(void 0===r&&(r=0),void 0===n&&(n=t.length),s(t,r,n))for(var o=r;o{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=t.length);var s=e+Math.floor(Math.random()*i);return void 0===t[s]?null:t[s]}},85835:t=>{t.exports=function(t,e,i){if(e===i)return t;var s=t.indexOf(e),r=t.indexOf(i);if(s<0||r<0)throw new Error("Supplied items must be elements of the same array");return s>r||(t.splice(s,1),r===t.length-1?t.push(e):t.splice(r,0,e)),t}},83371:t=>{t.exports=function(t,e,i){if(e===i)return t;var s=t.indexOf(e),r=t.indexOf(i);if(s<0||r<0)throw new Error("Supplied items must be elements of the same array");return s{t.exports=function(t,e){var i=t.indexOf(e);if(i>0){var s=t[i-1],r=t.indexOf(s);t[i]=s,t[r]=e}return t}},69693:t=>{t.exports=function(t,e,i){var s=t.indexOf(e);if(-1===s||i<0||i>=t.length)throw new Error("Supplied index out of bounds");return s!==i&&(t.splice(s,1),t.splice(i,0,e)),e}},40853:t=>{t.exports=function(t,e){var i=t.indexOf(e);if(-1!==i&&i{t.exports=function(t,e,i,s){var r,n=[],o=!1;if((i||s)&&(o=!0,i||(i=""),s||(s="")),e=e;r--)o?n.push(i+r.toString()+s):n.push(r);else for(r=t;r<=e;r++)o?n.push(i+r.toString()+s):n.push(r);return n}},593:(t,e,i)=>{var s=i(2284);t.exports=function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=null),void 0===i&&(i=1),null===e&&(e=t,t=0);for(var r=[],n=Math.max(s((e-t)/(i||1)),0),o=0;o{function e(t,e,i){var s=t[e];t[e]=t[i],t[i]=s}function i(t,e){return te?1:0}var s=function(t,r,n,o,a){for(void 0===n&&(n=0),void 0===o&&(o=t.length-1),void 0===a&&(a=i);o>n;){if(o-n>600){var h=o-n+1,l=r-n+1,u=Math.log(h),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(h-c)/h)*(l-h/2<0?-1:1),p=Math.max(n,Math.floor(r-l*c/h+d)),f=Math.min(o,Math.floor(r+(h-l)*c/h+d));s(t,r,p,f,a)}var g=t[r],m=n,v=o;for(e(t,n,r),a(t[o],g)>0&&e(t,n,o);m0;)v--}0===a(t[n],g)?e(t,n,v):e(t,++v,o),v<=r&&(n=v+1),r<=v&&(o=v-1)}};t.exports=s},88492:(t,e,i)=>{var s=i(35154),r=i(33680),n=function(t,e,i){for(var s=[],r=0;r{var s=i(19133);t.exports=function(t,e,i,r){var n;if(void 0===r&&(r=t),!Array.isArray(e))return-1!==(n=t.indexOf(e))?(s(t,n),i&&i.call(r,e),e):null;for(var o=e.length-1,a=[];o>=0;){var h=e[o];-1!==(n=t.indexOf(h))&&(s(t,n),a.push(h),i&&i.call(r,h)),o--}return a}},60248:(t,e,i)=>{var s=i(19133);t.exports=function(t,e,i,r){if(void 0===r&&(r=t),e<0||e>t.length-1)throw new Error("Index out of bounds");var n=s(t,e);return i&&i.call(r,n),n}},81409:(t,e,i)=>{var s=i(82011);t.exports=function(t,e,i,r,n){if(void 0===e&&(e=0),void 0===i&&(i=t.length),void 0===n&&(n=t),s(t,e,i)){var o=i-e,a=t.splice(e,o);if(r)for(var h=0;h{var s=i(19133);t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=t.length);var r=e+Math.floor(Math.random()*i);return s(t,r)}},42169:t=>{t.exports=function(t,e,i){var s=t.indexOf(e),r=t.indexOf(i);return-1!==s&&-1===r&&(t[s]=i,!0)}},86003:t=>{t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,s=0;s{t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,s=0;s{t.exports=function(t,e,i,s){var r=t.length;if(e<0||e>r||e>=i||i>r){if(s)throw new Error("Range Error: Values outside acceptable range");return!1}return!0}},89545:t=>{t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&i>0&&(t.splice(i,1),t.unshift(e)),e}},17810:(t,e,i)=>{var s=i(82011);t.exports=function(t,e,i,r,n){if(void 0===r&&(r=0),void 0===n&&(n=t.length),s(t,r,n))for(var o=r;o{t.exports=function(t){for(var e=t.length-1;e>0;e--){var i=Math.floor(Math.random()*(e+1)),s=t[e];t[e]=t[i],t[i]=s}return t}},90126:t=>{t.exports=function(t){var e=/\D/g;return t.sort((function(t,i){return parseInt(t.replace(e,""),10)-parseInt(i.replace(e,""),10)})),t}},19133:t=>{t.exports=function(t,e){if(!(e>=t.length)){for(var i=t.length-1,s=t[e],r=e;r{var s=i(82264);function r(t,e){return String(t).localeCompare(e)}function n(t,e,i,s){var r,n,o,a,h,l=t.length,u=0,c=2*i;for(r=0;rl&&(n=l),o>l&&(o=l),a=r,h=n;;)if(a{t.exports=function(t,e,i){if(e===i)return t;var s=t.indexOf(e),r=t.indexOf(i);if(s<0||r<0)throw new Error("Supplied items must be elements of the same array");return t[s]=i,t[r]=e,t}},37105:(t,e,i)=>{t.exports={Matrix:i(54915),Add:i(71146),AddAt:i(51067),BringToTop:i(66905),CountAllMatching:i(21612),Each:i(95428),EachInRange:i(36914),FindClosestInSorted:i(81957),Flatten:i(43491),GetAll:i(46710),GetFirst:i(58731),GetRandom:i(26546),MoveDown:i(70864),MoveTo:i(69693),MoveUp:i(40853),MoveAbove:i(85835),MoveBelow:i(83371),NumberArray:i(20283),NumberArrayStep:i(593),QuickSelect:i(43886),Range:i(88492),Remove:i(72905),RemoveAt:i(60248),RemoveBetween:i(81409),RemoveRandomElement:i(31856),Replace:i(42169),RotateLeft:i(86003),RotateRight:i(49498),SafeRange:i(82011),SendToBack:i(89545),SetAll:i(17810),Shuffle:i(33680),SortByDigits:i(90126),SpliceOne:i(19133),StableSort:i(19186),Swap:i(25630)}},86922:t=>{t.exports=function(t){if(!Array.isArray(t)||!Array.isArray(t[0]))return!1;for(var e=t[0].length,i=1;i{var s=i(41836),r=i(86922);t.exports=function(t){var e="";if(!r(t))return e;for(var i=0;i{t.exports=function(t){return t.reverse()}},21224:t=>{t.exports=function(t){for(var e=0;e{var s=i(37829);t.exports=function(t){return s(t,180)}},44657:(t,e,i)=>{var s=i(37829);t.exports=function(t,e){void 0===e&&(e=1);for(var i=0;i{var s=i(86922),r=i(2429);t.exports=function(t,e){if(void 0===e&&(e=90),!s(t))return null;if("string"!=typeof e&&(e=(e%360+360)%360),90===e||-270===e||"rotateLeft"===e)(t=r(t)).reverse();else if(-90===e||270===e||"rotateRight"===e)t.reverse(),t=r(t);else if(180===Math.abs(e)||"rotate180"===e){for(var i=0;i{var s=i(37829);t.exports=function(t,e){void 0===e&&(e=1);for(var i=0;i{var s=i(86003),r=i(49498);t.exports=function(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=0),0!==i&&(i<0?s(t,Math.abs(i)):r(t,i)),0!==e)for(var n=0;n{t.exports=function(t){for(var e=t.length,i=t[0].length,s=new Array(i),r=0;r-1;n--)s[r][n]=t[n][r]}return s}},54915:(t,e,i)=>{t.exports={CheckMatrix:i(86922),MatrixToString:i(63362),ReverseColumns:i(92598),ReverseRows:i(21224),Rotate180:i(98717),RotateLeft:i(44657),RotateMatrix:i(37829),RotateRight:i(92632),Translate:i(69512),TransposeMatrix:i(2429)}},71334:t=>{var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";t.exports=function(t,i){for(var s=new Uint8Array(t),r=s.length,n=i?"data:"+i+";base64,":"",o=0;o>2],n+=e[(3&s[o])<<4|s[o+1]>>4],n+=e[(15&s[o+1])<<2|s[o+2]>>6],n+=e[63&s[o+2]];return r%3==2?n=n.substring(0,n.length-1)+"=":r%3==1&&(n=n.substring(0,n.length-2)+"=="),n}},53134:t=>{for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(256),s=0;s<64;s++)i[e.charCodeAt(s)]=s;t.exports=function(t){var e,s,r,n,o=(t=t.substr(t.indexOf(",")+1)).length,a=.75*o,h=0;"="===t[o-1]&&(a--,"="===t[o-2]&&a--);for(var l=new ArrayBuffer(a),u=new Uint8Array(l),c=0;c>4,u[h++]=(15&s)<<4|r>>2,u[h++]=(3&r)<<6|63&n;return l}},65839:(t,e,i)=>{t.exports={ArrayBufferToBase64:i(71334),Base64ToArrayBuffer:i(53134)}},91799:(t,e,i)=>{t.exports={Array:i(37105),Base64:i(65839),Objects:i(1183),String:i(31749),NOOP:i(29747),NULL:i(20242)}},41786:t=>{t.exports=function(t){var e={};for(var i in t)Array.isArray(t[i])?e[i]=t[i].slice(0):e[i]=t[i];return e}},62644:t=>{var e=function(t){var i,s,r;if("object"!=typeof t||null===t)return t;for(r in i=Array.isArray(t)?[]:{},t)s=t[r],i[r]=e(s);return i};t.exports=e},79291:(t,e,i)=>{var s=i(41212),r=function(){var t,e,i,n,o,a,h=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof h&&(c=h,h=arguments[1]||{},l=2),u===l&&(h=this,--l);l{var s=i(75508),r=i(35154);t.exports=function(t,e,i){var n=r(t,e,null);if(null===n)return i;if(Array.isArray(n))return s.RND.pick(n);if("object"==typeof n){if(n.hasOwnProperty("randInt"))return s.RND.integerInRange(n.randInt[0],n.randInt[1]);if(n.hasOwnProperty("randFloat"))return s.RND.realInRange(n.randFloat[0],n.randFloat[1])}else if("function"==typeof n)return n(e);return n}},95540:t=>{t.exports=function(t,e,i){var s=typeof t;return t&&"number"!==s&&"string"!==s&&t.hasOwnProperty(e)&&void 0!==t[e]?t[e]:i}},82840:(t,e,i)=>{var s=i(35154),r=i(45319);t.exports=function(t,e,i,n,o){void 0===o&&(o=i);var a=s(t,e,o);return r(a,i,n)}},35154:t=>{t.exports=function(t,e,i,s){if(!t&&!s||"number"==typeof t)return i;if(t&&t.hasOwnProperty(e))return t[e];if(s&&s.hasOwnProperty(e))return s[e];if(-1!==e.indexOf(".")){for(var r=e.split("."),n=t,o=s,a=i,h=i,l=!0,u=!0,c=0;c{t.exports=function(t,e){for(var i=0;i{t.exports=function(t,e){for(var i=0;i{t.exports=function(t,e){return t.hasOwnProperty(e)}},41212:t=>{t.exports=function(t){if(!t||"object"!=typeof t||t.nodeType||t===t.window)return!1;try{if(t.constructor&&!{}.hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}return!0}},46975:(t,e,i)=>{var s=i(41786);t.exports=function(t,e){var i=s(t);for(var r in e)i.hasOwnProperty(r)||(i[r]=e[r]);return i}},269:(t,e,i)=>{var s=i(41786);t.exports=function(t,e){var i=s(t);for(var r in e)i.hasOwnProperty(r)&&(i[r]=e[r]);return i}},18254:(t,e,i)=>{var s=i(97022);t.exports=function(t,e){for(var i={},r=0;r{t.exports=function(t,e,i){if(!t||"number"==typeof t)return!1;if(t.hasOwnProperty(e))return t[e]=i,!0;if(-1!==e.indexOf(".")){for(var s=e.split("."),r=t,n=t,o=0;o{t.exports={Clone:i(41786),DeepCopy:i(62644),Extend:i(79291),GetAdvancedValue:i(23568),GetFastValue:i(95540),GetMinMaxValue:i(82840),GetValue:i(35154),HasAll:i(69036),HasAny:i(1985),HasValue:i(97022),IsPlainObject:i(41212),Merge:i(46975),MergeRight:i(269),Pick:i(18254),SetValue:i(61622)}},27902:t=>{t.exports=function(t,e){return t.replace(/%([0-9]+)/g,(function(t,i){return e[Number(i)-1]}))}},41836:t=>{t.exports=function(t,e,i,s){void 0===e&&(e=0),void 0===i&&(i=" "),void 0===s&&(s=3);var r=0;if(e+1>=(t=t.toString()).length)switch(s){case 1:t=new Array(e+1-t.length).join(i)+t;break;case 3:var n=Math.ceil((r=e-t.length)/2);t=new Array(r-n+1).join(i)+t+new Array(n+1).join(i);break;default:t+=new Array(e+1-t.length).join(i)}return t}},33628:t=>{t.exports=function(t,e){return 0===e?t.slice(1):t.slice(0,e-1)+t.slice(e)}},27671:t=>{t.exports=function(t){return t.split("").reverse().join("")}},45650:t=>{t.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}},35355:t=>{t.exports=function(t){return t&&t[0].toUpperCase()+t.slice(1)}},31749:(t,e,i)=>{t.exports={Format:i(27902),Pad:i(41836),RemoveAt:i(33628),Reverse:i(27671),UppercaseFirst:i(35355),UUID:i(45650)}}},e={};function i(s){var r=e[s];if(void 0!==r)return r.exports;var n=e[s]={exports:{}};return t[s](n,n.exports,i),n.exports}return i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i(85454)})())());class tt extends Phaser.Scene{flashRect;cameraShakeValue;constructor(t){super(t),this.cameraShakeValue=0,this.flashRect=null}fade(t,e,i){let s=Phaser.Display.Color.ColorToRGBA(i);this.cameras.main.fadeEffect.start(t,e,s.r,s.g,s.b)}flash(t,e=16777215,i=1){this.flashRect||(this.flashRect=this.add.rectangle(this.CX,this.CY,this.W,this.H,0),this.flashRect.setDepth(9999999999)),this.flashRect.setAlpha(i),this.flashRect.fillColor=e,this.tweens.add({targets:this.flashRect,alpha:{from:i,to:0},ease:"Cubic.Out",duration:t})}shake(t,e=1,i=0){this.cameraShakeValue=e,this.tweens.add({targets:this,cameraShakeValue:{from:e,to:i},ease:i{this.cameraShakeValue=0}})}addEvent(t,e,i=this){return this.time.addEvent({delay:t,callback:e,callbackScope:i})}addText({fontFamily:t="Game Font",x:e=0,y:i=0,size:s=12,weight:r=500,color:n="#FFFFFF",alpha:o=1,text:a=""}){return this.add.text(e,i,a,{fontFamily:t,fontSize:Math.max(s,1)+"px",fontStyle:r.toString(),color:n}).setAlpha(o).setPadding(2)}fitToScreen(t){t.setScale(Math.max(this.W/t.width,this.H/t.height))}containToScreen(t){t.setScale(Math.min(this.W/t.width,this.H/t.height))}get W(){return this.cameras.main.displayWidth}get H(){return this.cameras.main.displayHeight}get CX(){return this.cameras.main.centerX}get CY(){return this.cameras.main.centerY}}const et=""+new URL("background-D68ZDri5.png",import.meta.url).href,it=""+new URL("grid1-DYknCd0J.png",import.meta.url).href,st=""+new URL("grid2-DWUPQ8ux.png",import.meta.url).href,rt=""+new URL("grid3-iXT3f-Oi.png",import.meta.url).href,nt=""+new URL("grid4-l4os8jnD.png",import.meta.url).href,ot=""+new URL("playarea-base-Dc210b5P.png",import.meta.url).href,at=""+new URL("largeCSit1-DrM3gWbg.png",import.meta.url).href,ht=""+new URL("largeCSit1_aqua-JakUc0SS.png",import.meta.url).href,lt=""+new URL("largeCSit1_green-DxoTWNWr.png",import.meta.url).href,ut=""+new URL("largeCSit1_red-CBwr4LaG.png",import.meta.url).href,ct=""+new URL("largeCWalk1-ChtJe88e.png",import.meta.url).href,dt=""+new URL("largeCWalk1_aqua-1hWEzf67.png",import.meta.url).href,pt=""+new URL("largeCWalk1_green-VeTh1j4R.png",import.meta.url).href,ft=""+new URL("largeCWalk1_red-CJY1IL7A.png",import.meta.url).href,gt=""+new URL("largeCWalk2-DH3mGqcW.png",import.meta.url).href,mt=""+new URL("largeCWalk2_aqua-B0x3poiI.png",import.meta.url).href,vt=""+new URL("largeCWalk2_green-LZ26pnZm.png",import.meta.url).href,yt=""+new URL("largeCWalk2_red-CwnVKNi9.png",import.meta.url).href,xt=""+new URL("largeCWalk3-BnrwSn83.png",import.meta.url).href,wt=""+new URL("largeCWalk3_aqua-CAfv9djs.png",import.meta.url).href,Tt=""+new URL("largeCWalk3_green-BcEwNAtO.png",import.meta.url).href,bt=""+new URL("largeCWalk3_red-t9BlBxJD.png",import.meta.url).href,St=""+new URL("medCSit1-DW7hrtCR.png",import.meta.url).href,Et=""+new URL("medCSit1_aqua-mTTjUjBB.png",import.meta.url).href,Ct=""+new URL("medCSit1_green-9aKM2Viw.png",import.meta.url).href,At=""+new URL("medCSit1_red-U-sDUztL.png",import.meta.url).href,_t=""+new URL("medCWalk1-CyPdHoAv.png",import.meta.url).href,Pt=""+new URL("medCWalk1_aqua-SmQLreJf.png",import.meta.url).href,Rt=""+new URL("medCWalk1_green-BRj_bGgN.png",import.meta.url).href,Mt=""+new URL("medCWalk1_red-DElAGWb_.png",import.meta.url).href,kt=""+new URL("medCWalk2-Wgf7jxrU.png",import.meta.url).href,Lt=""+new URL("medCWalk2_aqua-jRyozQ46.png",import.meta.url).href,Ot=""+new URL("medCWalk2_green-5_t16Ee2.png",import.meta.url).href,Ft=""+new URL("medCWalk2_red-fxeERtLB.png",import.meta.url).href,Dt=""+new URL("medCWalk3-DzDONOGe.png",import.meta.url).href,It=""+new URL("medCWalk3_aqua-DTE16Dtd.png",import.meta.url).href,Bt=""+new URL("medCWalk3_green-8IuDl5fI.png",import.meta.url).href,Nt=""+new URL("medCWalk3_red-BvsRbNI4.png",import.meta.url).href,Ut=""+new URL("moneybagSprite-C00BS5_E.png",import.meta.url).href,Yt=""+new URL("player-bGWAzV5n.png",import.meta.url).href,zt=""+new URL("smallCSit1-gWvCqb7N.png",import.meta.url).href,Xt=""+new URL("smallCSit1_aqua-CH5ssgpm.png",import.meta.url).href,Gt=""+new URL("smallCSit1_green-Btv1nEXV.png",import.meta.url).href,Wt=""+new URL("smallCSit1_red-Csslhdda.png",import.meta.url).href,Vt=""+new URL("smallCWalk1-DirBV2NN.png",import.meta.url).href,Ht=""+new URL("smallCWalk1_aqua-B9o24prq.png",import.meta.url).href,jt=""+new URL("smallCWalk1_green-g_Gs9kn7.png",import.meta.url).href,qt=""+new URL("smallCWalk1_red-Dh0HWcq5.png",import.meta.url).href,Kt=""+new URL("smallCWalk2-Cbdj27pY.png",import.meta.url).href,Zt=""+new URL("smallCWalk2_aqua-BXz5y3Yj.png",import.meta.url).href,Jt=""+new URL("smallCWalk2_green-kOv11F2v.png",import.meta.url).href,Qt=""+new URL("smallCWalk2_red-BMW0GG0q.png",import.meta.url).href,$t=""+new URL("smallCWalk3-CXln23J6.png",import.meta.url).href,te=""+new URL("smallCWalk3_aqua-CXx86bDC.png",import.meta.url).href,ee=""+new URL("smallCWalk3_green-DGnnK2Mz.png",import.meta.url).href,ie=""+new URL("smallCWalk3_red-D2KgKrlR.png",import.meta.url).href,se=""+new URL("worker-CExr65XG.png",import.meta.url).href,re=""+new URL("workerAlt1-BWgMDrcj.png",import.meta.url).href,ne=""+new URL("workerAlt1WalkDown1-CWpYedi7.png",import.meta.url).href,oe=""+new URL("workerAlt1-BWgMDrcj.png",import.meta.url).href,ae=""+new URL("workerAlt1WalkDown3-Cpsc9SE3.png",import.meta.url).href,he=""+new URL("workerAlt1Working-BkQatj9a.png",import.meta.url).href,le=""+new URL("workerAlt1Working2-ha3Y6wyi.png",import.meta.url).href,ue=""+new URL("workerAlt2-69T1Ws1O.png",import.meta.url).href,ce=""+new URL("workerAlt2WalkDown1-D67pu1vV.png",import.meta.url).href,de=""+new URL("workerAlt2-69T1Ws1O.png",import.meta.url).href,pe=""+new URL("workerAlt2WalkDown3-YY073RXR.png",import.meta.url).href,fe=""+new URL("workerAlt2Working-aoyq4zPp.png",import.meta.url).href,ge=""+new URL("workerAlt2Working2-sPxKJU53.png",import.meta.url).href,me=""+new URL("workerAlt3-Dmv1VsPI.png",import.meta.url).href,ve=""+new URL("workerAlt3WalkDown1-oQXIyorL.png",import.meta.url).href,ye=""+new URL("workerAlt3-Dmv1VsPI.png",import.meta.url).href,xe=""+new URL("workerAlt3WalkDown3-CtLrr7Y0.png",import.meta.url).href,we=""+new URL("workerAlt3Working-DqLiCqoj.png",import.meta.url).href,Te=""+new URL("workerAlt3Working2-K2yOb0jg.png",import.meta.url).href,be=""+new URL("workerAlt4-WZDOaBHe.png",import.meta.url).href,Se=""+new URL("workerAlt4WalkDown1-52wmwEFw.png",import.meta.url).href,Ee=""+new URL("workerAlt4-WZDOaBHe.png",import.meta.url).href,Ce=""+new URL("workerAlt4WalkDown3-DQvjNOm9.png",import.meta.url).href,Ae=""+new URL("workerAlt4Working-D7_OK6rp.png",import.meta.url).href,_e=""+new URL("workerAlt4Working2--H8--thG.png",import.meta.url).href,Pe=""+new URL("workerWalkDown1-BiuCWN_2.png",import.meta.url).href,Re=""+new URL("worker-CExr65XG.png",import.meta.url).href,Me=""+new URL("workerWalkDown3-B8pKQIhc.png",import.meta.url).href,ke=""+new URL("workerWorking-ZYz4qUiK.png",import.meta.url).href,Le=""+new URL("workerWorking2-C6edLDHe.png",import.meta.url).href,Oe=""+new URL("dummy1-DZ-2mjy5.png",import.meta.url).href,Fe=""+new URL("dummy2-DIwzqxXh.png",import.meta.url).href,De=""+new URL("dummy3-CfFp-YAL.png",import.meta.url).href,Ie=""+new URL("dummy4-CHQiABAj.png",import.meta.url).href,Be=""+new URL("bath1-B8XIFLgM.png",import.meta.url).href,Ne=""+new URL("bath1f-BiFPuVjX.png",import.meta.url).href,Ue=""+new URL("bath2-BFLFAWcT.png",import.meta.url).href,Ye=""+new URL("bath2f-D4wWyDJe.png",import.meta.url).href,ze=""+new URL("bath3-CnLcLPPb.png",import.meta.url).href,Xe=""+new URL("bath3f-CIT5qGTm.png",import.meta.url).href,Ge=""+new URL("checkout-CkTlIvML.png",import.meta.url).href,We=""+new URL("coin-D-kONNYd.png",import.meta.url).href,Ve=""+new URL("nail1-h1kLoUKw.png",import.meta.url).href,He=""+new URL("nail2-jCtpqazZ.png",import.meta.url).href,je=""+new URL("nail3-Ayxt5Bqf.png",import.meta.url).href,qe=""+new URL("waitchair1-9XadsPaB.png",import.meta.url).href,Ke=""+new URL("waitchair2-Brk8OapF.png",import.meta.url).href,Ze=""+new URL("waitchair3-CYrS1b0T.png",import.meta.url).href,Je=""+new URL("wax1-RjQiHmkG.png",import.meta.url).href,Qe=""+new URL("wax2-DwtvhbLZ.png",import.meta.url).href,$e=""+new URL("wax3-ToHv0vBR.png",import.meta.url).href,ti=""+new URL("anger-D8yCAV5n.png",import.meta.url).href,ei=""+new URL("blankspr-Vu2mcIFt.png",import.meta.url).href,ii=""+new URL("boykisser-BZmdx0c1.png",import.meta.url).href,si=""+new URL("brocc-DMjOE3te.png",import.meta.url).href,ri=""+new URL("buybutton-C8eH3b_H.png",import.meta.url).href,ni=""+new URL("coke-CXdE2ytt.png",import.meta.url).href,oi=""+new URL("defaultsparks-8JJCDixL.png",import.meta.url).href,ai=""+new URL("dragon-BHlkVOCS.png",import.meta.url).href,hi=""+new URL("ellipse-BVF0eImV.png",import.meta.url).href,li=""+new URL("fwbutton-C1TaX9sy.png",import.meta.url).href,ui=""+new URL("greensparks-YNFLAoSr.png",import.meta.url).href,ci=""+new URL("h1-C1aL_uqf.png",import.meta.url).href,di=""+new URL("h2-D9dXQ_Ep.png",import.meta.url).href,pi=""+new URL("h3-D2E7Iwbo.png",import.meta.url).href,fi=""+new URL("h4--6Gw3b7J.png",import.meta.url).href,gi=""+new URL("h5-CANWIUDp.png",import.meta.url).href,mi=""+new URL("h6-NRxwo5AT.png",import.meta.url).href,vi=""+new URL("hotdog-DvmJ3beZ.png",import.meta.url).href,yi=""+new URL("hourglass-Bhf1ZpnW.png",import.meta.url).href,xi=""+new URL("hypnosis-_IY0oTqS.png",import.meta.url).href,wi=""+new URL("invbutton-C-p3lIyd.png",import.meta.url).href,Ti=""+new URL("invwindow-DOUZ4nEl.png",import.meta.url).href,bi=""+new URL("lugia-CyOdwf_v.png",import.meta.url).href,Si=""+new URL("milk-CQBpgA0g.png",import.meta.url).href,Ei=""+new URL("otter-CWkNtJzh.png",import.meta.url).href,Ci=""+new URL("pillowtalk-DH48ONiK.png",import.meta.url).href,Ai=""+new URL("player-bGWAzV5n.png",import.meta.url).href,_i=""+new URL("pocky-Dgd0l7OM.png",import.meta.url).href,Pi=""+new URL("polish-Cz21o13f.png",import.meta.url).href,Ri=""+new URL("protogen-JfTFpnTk.png",import.meta.url).href,Mi=""+new URL("raptor-Cj7An6RZ.png",import.meta.url).href,ki=""+new URL("redsparks-CT2stA_V.png",import.meta.url).href,Li=""+new URL("redx-BtQHeZmG.png",import.meta.url).href,Oi=""+new URL("rock-DzXSorOR.png",import.meta.url).href,Fi=""+new URL("shopwindow-CNZotfdM.png",import.meta.url).href,Di=""+new URL("shuriken-CPAwzYgj.png",import.meta.url).href,Ii=""+new URL("snowglobe-DK1_7Uld.png",import.meta.url).href,Bi=""+new URL("triceratops-D2YU6d87.png",import.meta.url).href,Ni=""+new URL("usb-DKwtyAX7.png",import.meta.url).href,Ui=""+new URL("background-jAV_-imz.png",import.meta.url).href,Yi=""+new URL("backgroundbath-C-MBTDN7.png",import.meta.url).href,zi=""+new URL("backgroundsitting-OalX4cYS.png",import.meta.url).href,Xi=""+new URL("character-dnr44odR.png",import.meta.url).href,Gi=""+new URL("foreground-BVWaqVD7.png",import.meta.url).href,Wi=""+new URL("hand-CmPdS6-B.png",import.meta.url).href,Vi=""+new URL("sky-BXQySOFR.png",import.meta.url).href,Hi=""+new URL("tail-PVjp3zoF.png",import.meta.url).href,ji=""+new URL("title-DFBSVLUC.png",import.meta.url).href,qi=""+new URL("titlescreen full-IiVeEWPq.png",import.meta.url).href,Ki=""+new URL("washbearhand-B-UEezbP.png",import.meta.url).href,Zi=""+new URL("washbeartail-BvDNUTtY.png",import.meta.url).href,Ji=""+new URL("0-e2ps3I15.png",import.meta.url).href,Qi=""+new URL("1-Tt1mI-F5.png",import.meta.url).href,$i=""+new URL("2-D94Kv7D6.png",import.meta.url).href,ts=""+new URL("3-FB8PK3iI.png",import.meta.url).href,es=""+new URL("4-O_VUis5s.png",import.meta.url).href,is=""+new URL("5-1gbBxxYy.png",import.meta.url).href,ss=""+new URL("6-BkqZbckL.png",import.meta.url).href,rs=""+new URL("7-eUprky--.png",import.meta.url).href,ns=""+new URL("8-DcXf5pR7.png",import.meta.url).href,os=""+new URL("9-CBhHWu1e.png",import.meta.url).href,as=""+new URL("Area-BSA2QDoy.png",import.meta.url).href,hs=""+new URL("By-Bhmdyvxg.png",import.meta.url).href,ls=""+new URL("Global-DW3zvzNZ.png",import.meta.url).href,us=""+new URL("S-Bk5WPP1I.png",import.meta.url).href,cs=""+new URL("angyv-kpGrrPQb.png",import.meta.url).href,ds=""+new URL("arrow-CVfI9oJs.png",import.meta.url).href,ps=""+new URL("bath-DN9fMIbK.png",import.meta.url).href,fs=""+new URL("best-Cgz_rJAx.png",import.meta.url).href,gs=""+new URL("bubble-BeOD5D0M.png",import.meta.url).href,ms=""+new URL("continue-E0GUnZI3.png",import.meta.url).href,vs=""+new URL("exclaimation2-Bzd5FnQO.png",import.meta.url).href,ys=""+new URL("exclamation-BH_GQfse.png",import.meta.url).href,xs=""+new URL("happy-BOigVOi5.png",import.meta.url).href,ws=""+new URL("love-DM39cSsC.png",import.meta.url).href,Ts=""+new URL("minus-xUI25vQP.png",import.meta.url).href,bs=""+new URL("money-DbRYz8eC.png",import.meta.url).href,Ss=""+new URL("nail-DQywZI44.png",import.meta.url).href,Es=""+new URL("next-BvpR8wS_.png",import.meta.url).href,Cs=""+new URL("plus (2)-Cwd5cOpW.png",import.meta.url).href,As=""+new URL("plus-CcDYEMpV.png",import.meta.url).href,_s=""+new URL("point-BM1rkqp-.png",import.meta.url).href,Ps=""+new URL("previous-BgotoIZp.png",import.meta.url).href,Rs=""+new URL("question-D1m3thcR.png",import.meta.url).href,Ms=""+new URL("question2-DZOlv-fi.png",import.meta.url).href,ks=""+new URL("sad-C2voqRAG.png",import.meta.url).href,Ls=""+new URL("star-Za7m6GaI.png",import.meta.url).href,Os=""+new URL("timer-BRyOyctT.png",import.meta.url).href,Fs=""+new URL("total-BheIqHH_.png",import.meta.url).href,Ds=""+new URL("wax-0MmrR8EU.png",import.meta.url).href,Is=""+new URL("first-B0E5EdIx.mp3",import.meta.url).href,Bs=""+new URL("title-Ch4A-h0B.mp3",import.meta.url).href,Ns=""+new URL("bite-D3tstpLF.mp3",import.meta.url).href,Us=""+new URL("button-Cb9T30w4.mp3",import.meta.url).href,Ys=""+new URL("cashmoney-CcfunbTk.mp3",import.meta.url).href,zs=""+new URL("chomp-Bj1zLxtF.mp3",import.meta.url).href,Xs=""+new URL("crit-YslV7lBd.mp3",import.meta.url).href,Gs=""+new URL("doink-DAAWKDqC.mp3",import.meta.url).href,Ws=""+new URL("dropcustomer-eZ7j3lyT.mp3",import.meta.url).href,Vs=""+new URL("endday-Bp2-BbP1.mp3",import.meta.url).href,Hs=""+new URL("fail-BC2GDUtG.mp3",import.meta.url).href,js=""+new URL("goldbath-BZVeye6C.mp3",import.meta.url).href,qs=""+new URL("pickupcustomer-DWYZbaeF.mp3",import.meta.url).href,Ks=""+new URL("place-DO_ISFDc.mp3",import.meta.url).href,Zs=""+new URL("polish-D9g76JHA.mp3",import.meta.url).href,Js=""+new URL("return-CpkahYC_.mp3",import.meta.url).href,Qs=""+new URL("scroll-CjP2IcND.mp3",import.meta.url).href,$s=""+new URL("slurp-CFDjDYxz.mp3",import.meta.url).href,tr=""+new URL("snip-DXfKCcF0.mp3",import.meta.url).href,er=""+new URL("sparkle-CfdcW74m.mp3",import.meta.url).href,ir=""+new URL("sqk-B5h5tRIj.mp3",import.meta.url).href,sr=""+new URL("sqk-B5h5tRIj.mp3",import.meta.url).href,rr=""+new URL("squish2-B2qmO0vX.mp3",import.meta.url).href,nr=""+new URL("escape-Do8Ab1Lg.mp3",import.meta.url).href,or=""+new URL("meme_explosion_sound-DBO1TqjO.mp3",import.meta.url).href,ar=""+new URL("rustle-B_tPJP7H.mp3",import.meta.url).href,hr=""+new URL("air-Dsl2z1Wz.mp3",import.meta.url).href,lr=""+new URL("flail-RM5BMKwB.mp3",import.meta.url).href,ur=""+new URL("grab-DGX99ujz.mp3",import.meta.url).href,cr=""+new URL("land-VUZg6CoO.mp3",import.meta.url).href,dr=""+new URL("letgo1-9wUAHiFA.mp3",import.meta.url).href,pr=""+new URL("letgo2-C5jjOwaF.mp3",import.meta.url).href,fr=""+new URL("letgo3-A7784RLu.mp3",import.meta.url).href,gr=""+new URL("miss-iEZJhAg0.mp3",import.meta.url).href,mr=""+new URL("missLand-BySkALOK.mp3",import.meta.url).href,vr=""+new URL("score-CY5PTt3D.mp3",import.meta.url).href,yr=""+new URL("slip-7Zk2TaAp.mp3",import.meta.url).href,xr=""+new URL("toss-rc84DhcA.mp3",import.meta.url).href,wr=""+new URL("trick-DAG_DD4t.mp3",import.meta.url).href,Tr=""+new URL("trip-Ld6YU4Q3.mp3",import.meta.url).href,br=""+new URL("DynaPuff-Medium-DEziKUpu.ttf",import.meta.url).href,Sr=""+new URL("Sketch-DdVMapkx.ttf",import.meta.url).href,Er=Object.assign({"./images/backgrounds/background.png":et,"./images/backgrounds/grid1.png":it,"./images/backgrounds/grid2.png":st,"./images/backgrounds/grid3.png":rt,"./images/backgrounds/grid4.png":nt,"./images/backgrounds/playarea-base.png":ot,"./images/characters/largeCSit1.png":at,"./images/characters/largeCSit1_aqua.png":ht,"./images/characters/largeCSit1_green.png":lt,"./images/characters/largeCSit1_red.png":ut,"./images/characters/largeCWalk1.png":ct,"./images/characters/largeCWalk1_aqua.png":dt,"./images/characters/largeCWalk1_green.png":pt,"./images/characters/largeCWalk1_red.png":ft,"./images/characters/largeCWalk2.png":gt,"./images/characters/largeCWalk2_aqua.png":mt,"./images/characters/largeCWalk2_green.png":vt,"./images/characters/largeCWalk2_red.png":yt,"./images/characters/largeCWalk3.png":xt,"./images/characters/largeCWalk3_aqua.png":wt,"./images/characters/largeCWalk3_green.png":Tt,"./images/characters/largeCWalk3_red.png":bt,"./images/characters/medCSit1.png":St,"./images/characters/medCSit1_aqua.png":Et,"./images/characters/medCSit1_green.png":Ct,"./images/characters/medCSit1_red.png":At,"./images/characters/medCWalk1.png":_t,"./images/characters/medCWalk1_aqua.png":Pt,"./images/characters/medCWalk1_green.png":Rt,"./images/characters/medCWalk1_red.png":Mt,"./images/characters/medCWalk2.png":kt,"./images/characters/medCWalk2_aqua.png":Lt,"./images/characters/medCWalk2_green.png":Ot,"./images/characters/medCWalk2_red.png":Ft,"./images/characters/medCWalk3.png":Dt,"./images/characters/medCWalk3_aqua.png":It,"./images/characters/medCWalk3_green.png":Bt,"./images/characters/medCWalk3_red.png":Nt,"./images/characters/moneybagSprite.png":Ut,"./images/characters/player.png":Yt,"./images/characters/smallCSit1.png":zt,"./images/characters/smallCSit1_aqua.png":Xt,"./images/characters/smallCSit1_green.png":Gt,"./images/characters/smallCSit1_red.png":Wt,"./images/characters/smallCWalk1.png":Vt,"./images/characters/smallCWalk1_aqua.png":Ht,"./images/characters/smallCWalk1_green.png":jt,"./images/characters/smallCWalk1_red.png":qt,"./images/characters/smallCWalk2.png":Kt,"./images/characters/smallCWalk2_aqua.png":Zt,"./images/characters/smallCWalk2_green.png":Jt,"./images/characters/smallCWalk2_red.png":Qt,"./images/characters/smallCWalk3.png":$t,"./images/characters/smallCWalk3_aqua.png":te,"./images/characters/smallCWalk3_green.png":ee,"./images/characters/smallCWalk3_red.png":ie,"./images/characters/worker.png":se,"./images/characters/workerAlt1.png":re,"./images/characters/workerAlt1WalkDown1.png":ne,"./images/characters/workerAlt1WalkDown2.png":oe,"./images/characters/workerAlt1WalkDown3.png":ae,"./images/characters/workerAlt1Working.png":he,"./images/characters/workerAlt1Working2.png":le,"./images/characters/workerAlt2.png":ue,"./images/characters/workerAlt2WalkDown1.png":ce,"./images/characters/workerAlt2WalkDown2.png":de,"./images/characters/workerAlt2WalkDown3.png":pe,"./images/characters/workerAlt2Working.png":fe,"./images/characters/workerAlt2Working2.png":ge,"./images/characters/workerAlt3.png":me,"./images/characters/workerAlt3WalkDown1.png":ve,"./images/characters/workerAlt3WalkDown2.png":ye,"./images/characters/workerAlt3WalkDown3.png":xe,"./images/characters/workerAlt3Working.png":we,"./images/characters/workerAlt3Working2.png":Te,"./images/characters/workerAlt4.png":be,"./images/characters/workerAlt4WalkDown1.png":Se,"./images/characters/workerAlt4WalkDown2.png":Ee,"./images/characters/workerAlt4WalkDown3.png":Ce,"./images/characters/workerAlt4Working.png":Ae,"./images/characters/workerAlt4Working2.png":_e,"./images/characters/workerWalkDown1.png":Pe,"./images/characters/workerWalkDown2.png":Re,"./images/characters/workerWalkDown3.png":Me,"./images/characters/workerWorking.png":ke,"./images/characters/workerWorking2.png":Le,"./images/cutscenes/dummy1.png":Oe,"./images/cutscenes/dummy2.png":Fe,"./images/cutscenes/dummy3.png":De,"./images/cutscenes/dummy4.png":Ie,"./images/items/bath1.png":Be,"./images/items/bath1f.png":Ne,"./images/items/bath2.png":Ue,"./images/items/bath2f.png":Ye,"./images/items/bath3.png":ze,"./images/items/bath3f.png":Xe,"./images/items/checkout.png":Ge,"./images/items/coin.png":We,"./images/items/nail1.png":Ve,"./images/items/nail2.png":He,"./images/items/nail3.png":je,"./images/items/waitchair1.png":qe,"./images/items/waitchair2.png":Ke,"./images/items/waitchair3.png":Ze,"./images/items/wax1.png":Je,"./images/items/wax2.png":Qe,"./images/items/wax3.png":$e,"./images/temp/anger.png":ti,"./images/temp/blankspr.png":ei,"./images/temp/boykisser.png":ii,"./images/temp/brocc.png":si,"./images/temp/buybutton.png":ri,"./images/temp/coke.png":ni,"./images/temp/defaultsparks.png":oi,"./images/temp/dragon.png":ai,"./images/temp/ellipse.png":hi,"./images/temp/fwbutton.png":li,"./images/temp/greensparks.png":ui,"./images/temp/h1.png":ci,"./images/temp/h2.png":di,"./images/temp/h3.png":pi,"./images/temp/h4.png":fi,"./images/temp/h5.png":gi,"./images/temp/h6.png":mi,"./images/temp/hotdog.png":vi,"./images/temp/hourglass.png":yi,"./images/temp/hypnosis.png":xi,"./images/temp/invbutton.png":wi,"./images/temp/invwindow.png":Ti,"./images/temp/lugia.png":bi,"./images/temp/milk.png":Si,"./images/temp/otter.png":Ei,"./images/temp/pillowtalk.png":Ci,"./images/temp/player.png":Ai,"./images/temp/pocky.png":_i,"./images/temp/polish.png":Pi,"./images/temp/protogen.png":Ri,"./images/temp/raptor.png":Mi,"./images/temp/redsparks.png":ki,"./images/temp/redx.png":Li,"./images/temp/rock.png":Oi,"./images/temp/shopwindow.png":Fi,"./images/temp/shuriken.png":Di,"./images/temp/snowglobe.png":Ii,"./images/temp/triceratops.png":Bi,"./images/temp/usb.png":Ni,"./images/titlescreen/background.png":Ui,"./images/titlescreen/backgroundbath.png":Yi,"./images/titlescreen/backgroundsitting.png":zi,"./images/titlescreen/character.png":Xi,"./images/titlescreen/foreground.png":Gi,"./images/titlescreen/hand.png":Wi,"./images/titlescreen/sky.png":Vi,"./images/titlescreen/tail.png":Hi,"./images/titlescreen/title.png":ji,"./images/titlescreen/titlescreen full.png":qi,"./images/titlescreen/washbearhand.png":Ki,"./images/titlescreen/washbeartail.png":Zi,"./images/ui/0.png":Ji,"./images/ui/1.png":Qi,"./images/ui/2.png":$i,"./images/ui/3.png":ts,"./images/ui/4.png":es,"./images/ui/5.png":is,"./images/ui/6.png":ss,"./images/ui/7.png":rs,"./images/ui/8.png":ns,"./images/ui/9.png":os,"./images/ui/Area.png":as,"./images/ui/By.png":hs,"./images/ui/Global.png":ls,"./images/ui/S.png":us,"./images/ui/angyv.png":cs,"./images/ui/arrow.png":ds,"./images/ui/bath.png":ps,"./images/ui/best.png":fs,"./images/ui/bubble.png":gs,"./images/ui/continue.png":ms,"./images/ui/exclaimation2.png":vs,"./images/ui/exclamation.png":ys,"./images/ui/happy.png":xs,"./images/ui/love.png":ws,"./images/ui/minus.png":Ts,"./images/ui/money.png":bs,"./images/ui/nail.png":Ss,"./images/ui/next.png":Es,"./images/ui/plus (2).png":Cs,"./images/ui/plus.png":As,"./images/ui/point.png":_s,"./images/ui/previous.png":Ps,"./images/ui/question.png":Rs,"./images/ui/question2.png":Ms,"./images/ui/sad.png":ks,"./images/ui/star.png":Ls,"./images/ui/timer.png":Os,"./images/ui/total.png":Fs,"./images/ui/wax.png":Ds}),Cr=(t,e)=>({key:e,path:Er[`./images/${t}.png`]}),Ar=(t,e,i,s)=>({key:e,width:i,height:s,path:Er[`./images/${t}.png`]}),_r=Object.assign({"./music/first.mp3":Is,"./music/title.mp3":Bs}),Pr=(t,e,i,s)=>({key:e,volume:i,rate:s,path:_r[`./music/${t}.mp3`]}),Rr=Object.assign({"./sounds/bite.mp3":Ns,"./sounds/button.mp3":Us,"./sounds/cashmoney.mp3":Ys,"./sounds/chomp.mp3":zs,"./sounds/crit.mp3":Xs,"./sounds/doink.mp3":Gs,"./sounds/dropcustomer.mp3":Ws,"./sounds/endday.mp3":Vs,"./sounds/fail.mp3":Hs,"./sounds/goldbath.mp3":js,"./sounds/pickupcustomer.mp3":qs,"./sounds/place.mp3":Ks,"./sounds/polish.mp3":Zs,"./sounds/return.mp3":Js,"./sounds/scroll.mp3":Qs,"./sounds/slurp.mp3":$s,"./sounds/snip.mp3":tr,"./sounds/sparkle.mp3":er,"./sounds/sqk.mp3":ir,"./sounds/squish1.mp3":sr,"./sounds/squish2.mp3":rr,"./sounds/tree/escape.mp3":nr,"./sounds/tree/meme_explosion_sound.mp3":or,"./sounds/tree/rustle.mp3":ar,"./sounds/turtle/air.mp3":hr,"./sounds/turtle/flail.mp3":lr,"./sounds/turtle/grab.mp3":ur,"./sounds/turtle/land.mp3":cr,"./sounds/turtle/letgo1.mp3":dr,"./sounds/turtle/letgo2.mp3":pr,"./sounds/turtle/letgo3.mp3":fr,"./sounds/turtle/miss.mp3":gr,"./sounds/turtle/missLand.mp3":mr,"./sounds/turtle/score.mp3":vr,"./sounds/turtle/slip.mp3":yr,"./sounds/turtle/toss.mp3":xr,"./sounds/turtle/trick.mp3":wr,"./sounds/turtle/trip.mp3":Tr}),Mr=(t,e,i,s)=>({key:e,volume:i,rate:s,path:Rr[`./sounds/${t}.mp3`]}),kr=Object.assign({"./fonts/DynaPuff-Medium.ttf":br,"./fonts/Sketch.ttf":Sr}),Lr=[Cr("backgrounds/background","background"),Cr("backgrounds/playarea-base","playArea_base"),Cr("backgrounds/grid1","grid1"),Cr("backgrounds/grid2","grid2"),Cr("backgrounds/grid3","grid3"),Cr("backgrounds/grid4","grid4"),Cr("cutscenes/dummy1","cutscene_dummy1"),Cr("cutscenes/dummy2","cutscene_dummy2"),Cr("cutscenes/dummy3","cutscene_dummy3"),Cr("cutscenes/dummy4","cutscene_dummy4"),Cr("characters/player","player"),Cr("characters/worker","worker"),Cr("characters/workerWalkDown1","workerWalk1"),Cr("characters/workerWalkDown2","workerWalk2"),Cr("characters/workerWalkDown3","workerWalk3"),Cr("characters/workerWorking","workerWork1"),Cr("characters/workerWorking2","workerWork2"),Cr("characters/workerAlt1","workerAlt1"),Cr("characters/workerAlt1WalkDown1","workerAlt1Walk1"),Cr("characters/workerAlt1WalkDown2","workerAlt1Walk2"),Cr("characters/workerAlt1WalkDown3","workerAlt1Walk3"),Cr("characters/workerAlt1Working","workerAlt1Work1"),Cr("characters/workerAlt1Working2","workerAlt1Work2"),Cr("characters/workerAlt2","workerAlt2"),Cr("characters/workerAlt2WalkDown1","workerAlt2Walk1"),Cr("characters/workerAlt2WalkDown2","workerAlt2Walk2"),Cr("characters/workerAlt2WalkDown3","workerAlt2Walk3"),Cr("characters/workerAlt2Working","workerAlt2Work1"),Cr("characters/workerAlt2Working2","workerAlt2Work2"),Cr("characters/workerAlt3","workerAlt3"),Cr("characters/workerAlt3WalkDown1","workerAlt3Walk1"),Cr("characters/workerAlt3WalkDown2","workerAlt3Walk2"),Cr("characters/workerAlt3WalkDown3","workerAlt3Walk3"),Cr("characters/workerAlt3Working","workerAlt3Work1"),Cr("characters/workerAlt3Working2","workerAlt3Work2"),Cr("characters/workerAlt4","workerAlt4"),Cr("characters/workerAlt4WalkDown1","workerAlt4Walk1"),Cr("characters/workerAlt4WalkDown2","workerAlt4Walk2"),Cr("characters/workerAlt4WalkDown3","workerAlt4Walk3"),Cr("characters/workerAlt4Working","workerAlt4Work1"),Cr("characters/workerAlt4Working2","workerAlt4Work2"),Cr("characters/smallCWalk1","small_customer_walk1"),Cr("characters/smallCWalk2","small_customer_walk2"),Cr("characters/smallCWalk3","small_customer_walk3"),Cr("characters/smallCSit1","small_customer_sit1"),Cr("characters/smallCWalk1_red","small_customer_walk1_red"),Cr("characters/smallCWalk2_red","small_customer_walk2_red"),Cr("characters/smallCWalk3_red","small_customer_walk3_red"),Cr("characters/smallCSit1_red","small_customer_sit1_red"),Cr("characters/smallCWalk1_aqua","small_customer_walk1_aqua"),Cr("characters/smallCWalk2_aqua","small_customer_walk2_aqua"),Cr("characters/smallCWalk3_aqua","small_customer_walk3_aqua"),Cr("characters/smallCSit1_aqua","small_customer_sit1_aqua"),Cr("characters/smallCWalk1_green","small_customer_walk1_green"),Cr("characters/smallCWalk2_green","small_customer_walk2_green"),Cr("characters/smallCWalk3_green","small_customer_walk3_green"),Cr("characters/smallCSit1_green","small_customer_sit1_green"),Cr("characters/medCWalk1","medium_customer_walk1"),Cr("characters/medCWalk2","medium_customer_walk2"),Cr("characters/medCWalk3","medium_customer_walk3"),Cr("characters/medCSit1","medium_customer_sit1"),Cr("characters/medCWalk1_red","med_customer_walk1_red"),Cr("characters/medCWalk2_red","med_customer_walk2_red"),Cr("characters/medCWalk3_red","med_customer_walk3_red"),Cr("characters/medCSit1_red","med_customer_sit1_red"),Cr("characters/medCWalk1_aqua","med_customer_walk1_aqua"),Cr("characters/medCWalk2_aqua","med_customer_walk2_aqua"),Cr("characters/medCWalk3_aqua","med_customer_walk3_aqua"),Cr("characters/medCSit1_aqua","med_customer_sit1_aqua"),Cr("characters/medCWalk1_green","med_customer_walk1_green"),Cr("characters/medCWalk2_green","med_customer_walk2_green"),Cr("characters/medCWalk3_green","med_customer_walk3_green"),Cr("characters/medCSit1_green","med_customer_sit1_green"),Cr("characters/largeCWalk1","large_customer_walk1"),Cr("characters/largeCWalk2","large_customer_walk2"),Cr("characters/largeCWalk3","large_customer_walk3"),Cr("characters/largeCSit1","large_customer_sit1"),Cr("characters/largeCWalk1_red","large_customer_walk1_red"),Cr("characters/largeCWalk2_red","large_customer_walk2_red"),Cr("characters/largeCWalk3_red","large_customer_walk3_red"),Cr("characters/largeCSit1_red","large_customer_sit1_red"),Cr("characters/largeCWalk1_aqua","large_customer_walk1_aqua"),Cr("characters/largeCWalk2_aqua","large_customer_walk2_aqua"),Cr("characters/largeCWalk3_aqua","large_customer_walk3_aqua"),Cr("characters/largeCSit1_aqua","large_customer_sit1_aqua"),Cr("characters/largeCWalk1_green","large_customer_walk1_green"),Cr("characters/largeCWalk2_green","large_customer_walk2_green"),Cr("characters/largeCWalk3_green","large_customer_walk3_green"),Cr("characters/largeCSit1_green","large_customer_sit1_green"),Cr("characters/moneybagSprite","moneybag_sprite"),Cr("items/coin","coin"),Cr("items/bath1","bath_1"),Cr("items/bath1f","bath_1_front"),Cr("items/bath2","bath_2"),Cr("items/bath2f","bath_2_front"),Cr("items/bath3","bath_3"),Cr("items/bath3f","bath_3_front"),Cr("items/wax1","wax_1"),Cr("items/wax2","wax_2"),Cr("items/wax3","wax_3"),Cr("items/nail1","nail_1"),Cr("items/nail2","nail_2"),Cr("items/nail3","nail_3"),Cr("items/waitchair1","waitchair_1"),Cr("items/waitchair2","waitchair_2"),Cr("items/waitchair3","waitchair_3"),Cr("items/checkout","checkout"),Cr("ui/angyv","angyv"),Cr("ui/bubble","bubble"),Cr("ui/exclamation","exclamation"),Cr("ui/happy","happy"),Cr("ui/love","love"),Cr("ui/money","money"),Cr("ui/question","question"),Cr("ui/sad","sad"),Cr("ui/timer","timer"),Cr("ui/plus","plus"),Cr("ui/wax","wax"),Cr("ui/nail","nail"),Cr("ui/bath","bath"),Cr("titlescreen/background","title_background"),Cr("titlescreen/backgroundsitting","title_chairs"),Cr("titlescreen/backgroundbath","title_bath"),Cr("titlescreen/tail","title_tail"),Cr("titlescreen/hand","title_hand"),Cr("titlescreen/washbeartail","title_washbear_tail"),Cr("titlescreen/washbearhand","title_washbear_hand"),Cr("temp/invwindow","invwindow"),Cr("temp/shopwindow","shopwindow"),Cr("temp/lugia","lugia"),Cr("temp/protogen","protogen"),Cr("temp/triceratops","triceratops"),Cr("temp/raptor","raptor"),Cr("temp/boykisser","boykisser"),Cr("temp/dragon","dragon"),Cr("temp/h1","h1"),Cr("temp/h2","h2"),Cr("temp/h3","h3"),Cr("temp/h4","h4"),Cr("temp/h5","h5"),Cr("temp/h6","h6")],Or=[Ar("temp/invbutton","invbutton",240,480),Ar("temp/fwbutton","fwbutton",64,262),Ar("temp/rock","rock",100,100),Ar("temp/coke","coke",100,100),Ar("temp/brocc","brocc",100,100),Ar("temp/hotdog","hotdog",100,100),Ar("temp/hourglass","hourglass",100,100),Ar("temp/hypnosis","hypnosis",100,100),Ar("temp/milk","milk",100,100),Ar("temp/pocky","pocky",100,100),Ar("temp/polish","polish",100,100),Ar("temp/snowglobe","snowglobe",100,100),Ar("temp/usb","usb",100,100),Ar("temp/pillowtalk","pillowtalk",100,100),Ar("temp/shuriken","shuriken",100,100),Ar("temp/redx","redx",64,64),Ar("temp/anger","anger",64,64),Ar("temp/ellipse","ellipse",64,64),Ar("temp/redsparks","redspark",64,64),Ar("temp/greensparks","greenspark",64,64),Ar("temp/defaultsparks","defaultspark",64,64),Ar("temp/blankspr","blankspr",100,100),Ar("temp/buybutton","buybutton",120,90),Ar("temp/otter","otter",1080,1080)],Fr=[Pr("title","m_main_menu"),Pr("first","m_first"),Mr("place","place",.5),Mr("return","return",.5),Mr("scroll","scroll",.5),Mr("cashmoney","cashmoney",.5),Mr("button","button",.5),Mr("tree/rustle","t_rustle",.5),Mr("tree/escape","fail",.5),Mr("crit","crit",.5),Mr("sparkle","sparkle",.5),Mr("polish","polish",.5),Mr("snip","snip",.5),Mr("goldbath","goldbath",.5),Mr("fail","rip",.5),Mr("sqk","sqk",.5),Mr("squish1","squish1",.5),Mr("squish2","squish2",.5),Mr("endday","endday",.5),Mr("chomp","chomp",.5),Mr("bite","bite",.5),Mr("doink","doink",.5),Mr("slurp","slurp",.5),Mr("pickupcustomer","pickup",.5),Mr("dropcustomer","drop",.5),Mr("tree/meme_explosion_sound","meme_explosion_sound",.5),Mr("turtle/air","air",.5),Mr("turtle/flail","flail",.5),Mr("turtle/grab","grab",.5),Mr("turtle/land","land",.5),Mr("turtle/letgo1","letgo1",.5),Mr("turtle/letgo2","letgo2",.5),Mr("turtle/letgo3","letgo3",.5),Mr("turtle/miss","miss",.5),Mr("turtle/missLand","missLand",.5),Mr("turtle/score","score",.5),Mr("turtle/slip","slip",.5),Mr("turtle/toss","toss",.5),Mr("turtle/trick","trick",.5),Mr("turtle/trip","trip",.5)];await(async(t,e)=>{const i=new FontFace(e,`url(${kr[`./fonts/${t}.ttf`]})`,{style:"normal",weight:"400"});await i.load(),document.fonts.add(i)})("DynaPuff-Medium","Game Font");class Dr extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline{constructor(t){super({game:t,name:"GrayScalePostFilter"})}onPreRender(){this.colorMatrix.blackWhite()}onDraw(t){this.drawFrame(t,this.fullFrame1),this.bindAndDraw(this.fullFrame1)}}class Ir extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline{offsetX;offsetY;lowres;steps;constructor(t){super({game:t,name:"BlurPostFilter",fragShader:"\n\t\t\t\t#ifdef GL_FRAGMENT_PRECISION_HIGH\n\t\t\t\t#define highmedp highp\n\t\t\t\t#else\n\t\t\t\t#define highmedp mediump\n\t\t\t\t#endif\n\t\t\t\tprecision highmedp float;\n\n\t\t\t\tuniform sampler2D uMainSampler;\n\t\t\t\tvarying vec2 outTexCoord;\n\t\t\t\tuniform vec2 uTexSize;\n\t\t\t\tuniform vec2 uOffset;\n\n\t\t\t\tvoid main (void) {\n\t\t\t\t\tvec4 c = texture2D( uMainSampler, outTexCoord );\n\t\t\t\t\tvec4 l = texture2D( uMainSampler, outTexCoord + uOffset );\n\t\t\t\t\tvec4 r = texture2D( uMainSampler, outTexCoord - uOffset );\n\n\t\t\t\t\tgl_FragColor = (1.0*c + 1.0*l + 1.0*r) / 3.0;\n\t\t\t\t}\n\t\t\t"}),this.offsetX=1.6,this.offsetY=1.6,this.lowres=!0,this.steps=2}onPreRender(){this.set2f("uTexSize",this.game.scale.width,this.game.scale.height)}onDraw(t){const e=this.lowres?this.halfFrame1:this.fullFrame1,i=this.lowres?this.halfFrame2:this.fullFrame2;this.copyFrame(t,e);const s=1/e.width*this.offsetX,r=1/e.height*this.offsetY;for(let n=0;nthis.end&&(this.setSeek(this.currentTime-(this.end-this.start)),this.loopSum+=this.end-this.start,this.emit("loop"));let t=this.getBarTime();t>=0&&Math.floor(t)!=Math.floor(this._prevBarTime)&&this.emit("bar",Math.floor(t)),this._prevBarTime=t}}getBarTime(){return(this.currentTime-this.offset)/this.speed}getBar(){return Math.floor(this.getBarTime())}get currentTime(){return this.seek}get totalTime(){return this.seek+this.loopSum}get barTime(){return(this.totalTime-this.offset)/this.speed}}const Gr=`${Ur} \n\n@Handle\n@Handle\n@Handle`;class Wr extends Phaser.GameObjects.Container{scene;size;width;height;grid;things;constructor(t,e,i,s,r,n){super(t,e,i),t.add.existing(this),this.scene=t,this.size=n,this.width=s,this.height=r,this.grid=this.scene.add.grid(0,0,s*this.size,r*this.size,this.size,this.size,16777215,.1,0,.2),this.add(this.grid),this.things=[]}update(t,e){}resize(t,e,i){this.size=i,this.width=t,this.height=e,this.grid.destroy(),this.grid=this.scene.add.grid(0,0,t*this.size,e*this.size,this.size,this.size,16777215,0,16711680,0),this.add(this.grid)}gridToCoord(t,e){return{x:this.x-this.grid.width/2+t*this.size+this.size/2,y:this.y-this.grid.height/2+e*this.size+this.size/2}}navGridToCoord(t,e){return{x:this.x-this.grid.width/2+t*(this.size/7),y:this.y-this.grid.height/2+e*(this.size/7)}}coordToGrid(t,e){return{x:Math.floor((t-this.x+this.grid.width/2)/this.size),y:Math.floor((e-this.y+this.grid.height/2)/this.size)}}coordToNavGrid(t,e){return{x:Math.floor((t-this.x+this.grid.width/2)/(this.size/7)),y:Math.floor((e-this.y+this.grid.height/2)/(this.size/7))}}coordToNav(t,e){return{x:(t-this.x+this.grid.width/2)/(this.size/7),y:(e-this.y+this.grid.height/2)/(this.size/7)}}}class Vr extends Phaser.GameObjects.Container{scene;enabled;_hold;dragged;blocked;liftSmooth;holdSmooth;category;tween;constructor(t,e,i){super(t,e,i),this.scene=t,t.add.existing(this),this._hold=!1,this.dragged=!1,this.blocked=!1,this.enabled=!0,this.liftSmooth=0,this.holdSmooth=0}bindInteractive(t,e=!1){return t.removeInteractive(),t.setInteractive({useHandCursor:!0,draggable:e}).on("pointerout",this.onOut,this).on("pointerover",this.onOver,this).on("pointerdown",this.onDown,this).on("pointerup",this.onUp,this).on("dragstart",this.onDragStart,this).on("drag",this.onDrag,this).on("dragend",this.onDragEnd,this),t}get hold(){return this._hold}set hold(t){t!=this._hold&&(this.tween&&this.tween.stop(),this.tween=t?this.scene.tweens.add({targets:this,holdSmooth:{from:0,to:1},ease:"Cubic.Out",duration:100}):this.scene.tweens.add({targets:this,holdSmooth:{from:1,to:0},ease:t=>Phaser.Math.Easing.Elastic.Out(t,1.5,.5),duration:400})),this._hold=t}onOut(t,e){this.hold&&this.emit("up"),this.hold=!1}onOver(t,e,i,s){}onDown(t,e,i,s){this.hold||this.emit("down"),this.hold=!0,this.blocked=!1}onUp(t,e,i,s){this.hold&&!this.blocked&&this.enabled&&this.emit("click"),this.hold&&this.emit("up"),this.hold=!1}onDragStart(t,e,i){}onDrag(t,e,i){}onDragEnd(t,e,i){}isInsidePlayingField(){return!1}block(){this.blocked=!0}}const Hr={0:{spriteKeys:{idle:"worker",walk:["workerWalk1","workerWalk2","workerWalk3","workerWalk2"],work:["workerWork1","workerWork2"]}},1:{spriteKeys:{idle:"workerAlt1",walk:["workerAlt1Walk1","workerAlt1Walk2","workerAlt1Walk3","workerAlt1Walk2"],work:["workerAlt1Work1","workerAlt1Work2"]}},2:{spriteKeys:{idle:"workerAlt2",walk:["workerAlt2Walk1","workerAlt2Walk2","workerAlt2Walk3","workerAlt2Walk2"],work:["workerAlt2Work1","workerAlt2Work2"]}},3:{spriteKeys:{idle:"workerAlt3",walk:["workerAlt3Walk1","workerAlt3Walk2","workerAlt3Walk3","workerAlt3Walk2"],work:["workerAlt3Work1","workerAlt3Work2"]}},4:{spriteKeys:{idle:"workerAlt4",walk:["workerAlt4Walk1","workerAlt4Walk2","workerAlt4Walk3","workerAlt4Walk2"],work:["workerAlt4Work1","workerAlt4Work2"]}},5:{spriteKeys:{idle:"player",walk:["player"],work:["player"]}}};var jr=(t=>(t[t.RaccoonGrayTier1=0]="RaccoonGrayTier1",t[t.RaccoonGrayTier2=1]="RaccoonGrayTier2",t[t.RaccoonGrayTier3=2]="RaccoonGrayTier3",t[t.RaccoonBrownTier1=3]="RaccoonBrownTier1",t[t.RaccoonBrownTier2=4]="RaccoonBrownTier2",t[t.RaccoonBrownTier3=5]="RaccoonBrownTier3",t[t.RaccoonYellowTier1=6]="RaccoonYellowTier1",t[t.RaccoonYellowTier2=7]="RaccoonYellowTier2",t[t.RaccoonYellowTier3=8]="RaccoonYellowTier3",t[t.RaccoonPurpleTier1=9]="RaccoonPurpleTier1",t[t.RaccoonPurpleTier2=10]="RaccoonPurpleTier2",t[t.RaccoonPurpleTier3=11]="RaccoonPurpleTier3",t[t.RaccoonGreenTier1=12]="RaccoonGreenTier1",t[t.RaccoonGreenTier2=13]="RaccoonGreenTier2",t[t.RaccoonGreenTier3=14]="RaccoonGreenTier3",t[t.HumanTier1=15]="HumanTier1",t[t.HumanTier2=16]="HumanTier2",t[t.HumanTier3=17]="HumanTier3",t))(jr||{});const qr={0:{type:0,name:"Raccoon employee",tier:1,walkSpeed:2,workSpeed:1,cost:300,upgradeTo:1},1:{type:0,name:"Raccoon employee",tier:2,walkSpeed:3,workSpeed:1.25,cost:400,upgradeTo:2},2:{type:0,name:"Raccoon employee",tier:3,walkSpeed:4,workSpeed:1.5,cost:800},3:{type:1,name:"Raccoon employee",tier:1,walkSpeed:2.5,workSpeed:1,cost:350,upgradeTo:4},4:{type:1,name:"Raccoon employee",tier:2,walkSpeed:4,workSpeed:1.125,cost:475,upgradeTo:5},5:{type:1,name:"Raccoon employee",tier:3,walkSpeed:5.5,workSpeed:1.25,cost:950},6:{type:2,name:"Raccoon employee",tier:1,walkSpeed:1,workSpeed:1,cost:375,upgradeTo:7},7:{type:2,name:"Raccoon employee",tier:2,walkSpeed:2.5,workSpeed:1.5,cost:525,upgradeTo:8},8:{type:2,name:"Raccoon employee",tier:3,walkSpeed:4,workSpeed:2,cost:1050},9:{type:3,name:"Raccoon employee",tier:1,walkSpeed:2,workSpeed:1,cost:600,upgradeTo:10},10:{type:3,name:"Raccoon employee",tier:2,walkSpeed:3.5,workSpeed:1.5,cost:900,upgradeTo:11},11:{type:3,name:"Raccoon employee",tier:3,walkSpeed:6,workSpeed:2,cost:1800},12:{type:4,name:"Raccoon employee",tier:4,walkSpeed:3,workSpeed:1,cost:800,upgradeTo:13},13:{type:4,name:"Raccoon employee",tier:2,walkSpeed:6,workSpeed:2,cost:1600,upgradeTo:14},14:{type:4,name:"Raccoon employee",tier:3,walkSpeed:9,workSpeed:3,cost:2400},15:{type:5,name:"Human employee",tier:1,walkSpeed:1,workSpeed:1,cost:2500,upgradeTo:16},16:{type:5,name:"Human employee",tier:2,walkSpeed:1.25,workSpeed:1.05,cost:5e3,upgradeTo:17},17:{type:5,name:"Human employee",tier:3,walkSpeed:1.5,workSpeed:1.15,cost:9999}};class Kr extends Vr{employeeId;hasBeenPurchased;currentCustomer;isWorking;cellSize;spriteCont;sprite;linoone=!1;startX;startY;constructor(t,e,i,s,r){super(t,e,i),t.add.existing(this),this.scene=t,this.employeeId=s,this.cellSize=r,this.currentCustomer=null,this.isWorking=!1,this.startX=e,this.startY=i,this.hasBeenPurchased=!1,this.spriteCont=this.scene.add.container(0,this.spriteOffset),this.add(this.spriteCont),this.sprite=this.scene.add.sprite(0,0,this.spriteKeys.idle),this.sprite.setOrigin(.5,1),this.sprite.setScale(this.spriteSize/this.sprite.width),this.spriteCont.add(this.sprite),this.bindInteractive(this.sprite),this.sprite.input.enabled=!1}update(t,e){const i=1+(this.isWorking?.1:this.hasBeenPurchased?.02:0)*Math.sin(6*t/1e3);if(this.spriteCont.setScale(1,i-.2*this.holdSmooth),this.isWorking){const e=this.spriteKeys.work.length,i=Math.floor(t/200)%e,s=this.spriteKeys.work[i];this.sprite.setTexture(s)}}setCustomer(t){this.currentCustomer=t,this.currentCustomer&&this.currentCustomer.currentStation&&(this.currentCustomer.currentStation.taskHaste*=this.workSpeed)}walk(t){const e=t.getLength();this.scene.tweens.addCounter({duration:10*e/this.walkSpeed,ease:"Linear",onUpdate:({progress:i})=>{const s=t.getPoint(i);this.setPosition(s.x,s.y);const r=this.spriteKeys.walk.length,n=Math.floor(i*e/40)%r,o=this.spriteKeys.walk[n];this.sprite.setTexture(o)},onComplete:()=>{const e=t.getPoint(1);this.setPosition(e.x,e.y),this.sprite.setTexture(this.spriteKeys.idle),this.emit("walkend")}})}setAction(t){this.isWorking=t,t||this.sprite.setTexture(this.spriteKeys.idle)}setClickable(t){this.sprite.input.enabled=t}upgrade(){this.hasBeenPurchased?this.upgradeTo&&(this.employeeId=this.upgradeTo,this.sprite.setTexture(this.spriteKeys.idle)):(this.hasBeenPurchased=!0,this.setAlpha(1))}pauseClickable(){this.sprite.input.enabled?this.sprite.input.enabled=!1:this.linoone=!0}resumeClickable(){this.linoone?this.linoone=!1:this.sprite.input.enabled=!0}forceUpgrade(t){this.hasBeenPurchased=!0,this.setAlpha(1),this.employeeId=t,this.sprite.setTexture(this.spriteKeys.idle)}get employeeType(){return qr[this.employeeId].type}get employeeName(){return qr[this.employeeId].name}get employeeTier(){return qr[this.employeeId].tier}get spriteKeys(){return Hr[this.employeeType].spriteKeys}get spriteScale(){return 1.4}get spriteSize(){return this.spriteScale*this.cellSize}get spriteOffset(){return.3*this.spriteSize}get walkSpeed(){return qr[this.employeeId].walkSpeed??0}get workSpeed(){return qr[this.employeeId].workSpeed??0}get upgradeCost(){return this.hasBeenPurchased?this.upgradeTo?qr[this.upgradeTo].cost:0:qr[this.employeeId].cost}get upgradeTo(){return qr[this.employeeId].upgradeTo}}class Zr extends Phaser.GameObjects.Container{background;graphics;size;color;constructor(t,e,i,s,r){super(t,e,i),t.add.existing(this),this.scene=t,this.size=s,this.color=r,this.background=this.scene.add.image(0,0,"timer"),this.background.setScale(s/this.background.width),this.add(this.background),this.graphics=this.scene.add.graphics(),this.add(this.graphics)}setColor(t){this.color=t}redraw(t){const e=.24*this.size,i=.055*this.size;this.graphics.clear(),this.graphics.beginPath(),this.graphics.fillStyle(this.color),this.graphics.moveTo(0,0),this.graphics.arc(0,0,e-i,-Math.PI/2,-Math.PI/2-2*t*Math.PI),this.graphics.closePath(),this.graphics.fillPath()}}function Jr(t,e,i){return i<=0?t:i>=1?e:Phaser.Display.Color.ObjectToColor(Phaser.Display.Color.Interpolate.ColorWithColor(Phaser.Display.Color.ValueToColor(t),Phaser.Display.Color.ValueToColor(e),255,255*i)).color}function Qr(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}var $r=(t=>(t[t.WaitingSeat=0]="WaitingSeat",t[t.HornAndNails=1]="HornAndNails",t[t.ScalePolish=2]="ScalePolish",t[t.GoldBath=3]="GoldBath",t[t.CashRegister=4]="CashRegister",t))($r||{});const tn={0:{symbolKey:"seat",color:2258807},1:{symbolKey:"nail",color:16711680},2:{symbolKey:"wax",color:16776960},3:{symbolKey:"gold",color:255},4:{symbolKey:"cash",color:65280}};var en=(t=>(t[t.WaitingSeatTier1=0]="WaitingSeatTier1",t[t.WaitingSeatTier2=1]="WaitingSeatTier2",t[t.WaitingSeatTier3=2]="WaitingSeatTier3",t[t.HornAndNailsTier1=3]="HornAndNailsTier1",t[t.HornAndNailsTier2=4]="HornAndNailsTier2",t[t.HornAndNailsTier3=5]="HornAndNailsTier3",t[t.ScalePolishTier1=6]="ScalePolishTier1",t[t.ScalePolishTier2=7]="ScalePolishTier2",t[t.ScalePolishTier3=8]="ScalePolishTier3",t[t.GoldBathTier1=9]="GoldBathTier1",t[t.GoldBathTier2=10]="GoldBathTier2",t[t.GoldBathTier3=11]="GoldBathTier3",t[t.CashRegister=12]="CashRegister",t))(en||{});const sn={0:{type:0,name:"Waiting seat",tier:1,spriteKey:"waitchair_1",spriteScale:1,cost:100,upgradeTo:1},1:{type:0,name:"Waiting armchair",tier:2,spriteKey:"waitchair_2",spriteScale:1.25,cost:250,upgradeTo:2},2:{type:0,name:"Waiting throne",tier:3,spriteKey:"waitchair_3",spriteScale:1.5,cost:500},3:{type:1,name:"Talonicure pillow",tier:1,spriteKey:"nail_1",spriteScale:1,taskDuration:3e3,admissionFee:20,cost:150,upgradeTo:4},4:{type:1,name:"Talonicure beanbag",tier:2,spriteKey:"nail_2",spriteScale:1.25,taskDuration:2500,admissionFee:40,cost:250,upgradeTo:5},5:{type:1,name:"Talonicure bed",tier:3,spriteKey:"nail_3",spriteScale:1.5,taskDuration:2e3,admissionFee:60,cost:400},6:{type:2,name:"Scalicure chair",tier:1,spriteKey:"wax_1",spriteScale:1,taskDuration:2e3,admissionFee:10,cost:100,upgradeTo:7},7:{type:2,name:"Scalicure station",tier:2,spriteKey:"wax_2",spriteScale:1.25,taskDuration:1500,admissionFee:20,cost:250,upgradeTo:8},8:{type:2,name:"Scalicure divan",tier:3,spriteKey:"wax_3",spriteScale:1.5,taskDuration:1e3,admissionFee:30,cost:500},9:{type:3,name:"Draconic bath",tier:1,spriteKey:"bath_1",spriteScale:1,taskDuration:4e3,admissionFee:20,cost:200,upgradeTo:10},10:{type:3,name:"Draconic shower",tier:2,spriteKey:"bath_2",spriteScale:1.25,taskDuration:3e3,admissionFee:30,cost:350,upgradeTo:11},11:{type:3,name:"Dracuzzi",tier:3,spriteKey:"bath_3",spriteScale:1.5,taskDuration:2e3,admissionFee:40,cost:600},12:{type:4,name:"Cash register",tier:1,spriteKey:"checkout",spriteScale:1.4,taskDuration:500,cost:0}};class rn extends Phaser.GameObjects.Container{background;image;symbol;constructor(t,e,i,s){super(t,e,i),t.add.existing(this),this.scene=t,this.background=this.scene.add.sprite(0,0,"bubble"),this.background.setScale(.5),this.background.setVisible(!1),this.add(this.background),this.image=this.scene.add.ellipse(0,-.05*s,40,40,0),this.image.setVisible(!1),this.add(this.image),this.symbol=this.scene.add.image(0,-.02*s,"exclamation"),this.symbol.setScale(70/this.symbol.width),this.symbol.setVisible(!1),this.add(this.symbol)}hide(){this.background.setVisible(!1),this.image.setVisible(!1),this.symbol.setVisible(!1)}setRequest(t){this.background.setVisible(null!==t),this.image.setVisible(null!==t),this.symbol.setVisible(!1),null!==t&&(this.image.fillColor=tn[t].color),t===$r.CashRegister&&this.showSymbol("money")}showSymbol(t){this.background.setVisible(!0),this.image.setVisible(!1),this.symbol.setVisible(!0),this.symbol.setTexture(t)}}var nn=(t=>(t[t.SmallRed=0]="SmallRed",t[t.SmallAqua=1]="SmallAqua",t[t.SmallGreen=2]="SmallGreen",t[t.MediumRed=3]="MediumRed",t[t.MediumAqua=4]="MediumAqua",t[t.MediumGreen=5]="MediumGreen",t[t.LargeRed=6]="LargeRed",t[t.LargeAqua=7]="LargeAqua",t[t.LargeGreen=8]="LargeGreen",t))(nn||{});const on={0:{tier:1,spriteKeys:{walk:["small_customer_walk1_red","small_customer_walk2_red","small_customer_walk1_red","small_customer_walk3_red"],sit:"small_customer_sit1_red"},spriteScale:1,walkSpeed:3,workMultiplier:1,tags:["red","kobold"],antitags:["aqua","green","dino","dragon"],budget:100,baseTips:10},1:{tier:1,spriteKeys:{walk:["small_customer_walk1_aqua","small_customer_walk2_aqua","small_customer_walk1_aqua","small_customer_walk3_aqua"],sit:"small_customer_sit1_aqua"},spriteScale:1,walkSpeed:3,workMultiplier:1,tags:["aqua","kobold"],antitags:["red","green","dino","dragon"],budget:100,baseTips:10},2:{tier:1,spriteKeys:{walk:["small_customer_walk1_green","small_customer_walk2_green","small_customer_walk1_green","small_customer_walk3_green"],sit:"small_customer_sit1_green"},spriteScale:1,walkSpeed:3,workMultiplier:1,tags:["green","kobold"],antitags:["red","aqua","dino","dragon"],budget:100,baseTips:10},3:{tier:2,spriteKeys:{walk:["medium_customer_walk1_red","medium_customer_walk2_red","medium_customer_walk1_red","medium_customer_walk3_red"],sit:"medium_customer_sit1_red"},spriteScale:1.4,walkSpeed:2,workMultiplier:2,tags:["red","dino"],antitags:["aqua","green","kobold","dragon"],budget:100,baseTips:10},4:{tier:2,spriteKeys:{walk:["medium_customer_walk1_aqua","medium_customer_walk2_aqua","medium_customer_walk1_aqua","medium_customer_walk3_aqua"],sit:"medium_customer_sit1_aqua"},spriteScale:1.4,walkSpeed:2,workMultiplier:2,tags:["aqua","dino"],antitags:["red","green","kobold","dragon"],budget:100,baseTips:10},5:{tier:2,spriteKeys:{walk:["medium_customer_walk1_green","medium_customer_walk2_green","medium_customer_walk1_green","medium_customer_walk3_green"],sit:"medium_customer_sit1_green"},spriteScale:1.4,walkSpeed:2,workMultiplier:2,tags:["green","dino"],antitags:["red","aqua","kobold","dragon"],budget:100,baseTips:10},6:{tier:3,spriteKeys:{walk:["large_customer_walk1_red","large_customer_walk2_red","large_customer_walk1_red","large_customer_walk3_red"],sit:"large_customer_sit1_red"},spriteScale:1.7,walkSpeed:1.5,workMultiplier:3,tags:["red","dragon"],antitags:["aqua","green","kobold","dino"],budget:100,baseTips:10},7:{tier:3,spriteKeys:{walk:["large_customer_walk1_aqua","large_customer_walk2_aqua","large_customer_walk1_aqua","large_customer_walk3_aqua"],sit:"large_customer_sit1_aqua"},spriteScale:1.7,walkSpeed:1.5,workMultiplier:3,tags:["aqua","dragon"],antitags:["red","green","kobold","dino"],budget:100,baseTips:10},8:{tier:3,spriteKeys:{walk:["large_customer_walk1_green","large_customer_walk2_green","large_customer_walk1_green","large_customer_walk3_green"],sit:"large_customer_sit1_green"},spriteScale:1.7,walkSpeed:1.5,workMultiplier:3,tags:["green","dragon"],antitags:["red","aqua","kobold","dino"],budget:100,baseTips:10}};class an extends Phaser.GameObjects.Container{deleteFlag=!1;constructor(t,e,i){super(t,e,i),this.scene=t,this.deleteFlag=!1}update(t,e){}}class hn extends an{scene;timer=0;maxTimer=0;myText;txt;color1;color2;fadeTime=800;maxFadeTime=800;deleteFlag=!1;isFlashing=!1;flashTimer=100;maxFlashTimer=100;colors;index=0;phase=1;dmod;amod;negative=-1;amp=1;constructor(t,e,i,s,r="yellow",n=30,o=!1,a="red",h=800,l=100,u=1,c=1,d=700){super(t,e,i),this.scene=t,this.myText=this.scene.addText({x:0,y:0,size:n,color:this.color1,text:s}),this.phase=Math.random(),this.phase>.5?this.phase=-1:this.phase=1,this.isFlashing=o,this.color1=r,this.color2=a,this.myText.setColor(r),this.myText.setOrigin(.5,.5),this.fadeTime=h,this.maxFadeTime=h,this.add(this.myText),this.scene.add.existing(this),this.setDepth(d),this.dmod=75*Math.random(),this.amod=2*Math.random(),this.negative=u,this.amp=c,this.setDepth(d)}update(t,e){this.y-=this.negative*(120*t/1e3),this.x+=this.phase*this.amp*(2+this.amod)*Math.sin(e/(125+this.dmod)),this.isFlashing&&(this.flashTimer>0&&(this.flashTimer-=t),this.flashTimer<=0&&(this.flashTimer=this.maxFlashTimer,this.flash())),this.fadeTime>0&&(this.fadeTime-=t),this.fadeTime<=0&&(this.fadeTime=0,this.deleteFlag=!0),this.myText.setAlpha(this.fadeTime/this.maxFadeTime)}flash(){0==this.index?(this.index=1,this.myText.setColor(this.color2)):(this.index=0,this.myText.setColor(this.color1))}}class ln extends Phaser.GameObjects.Container{background;bar;anger;sparks;graphics;size;color;veiled=!0;vTimer=0;vfTimer=0;critical=!1;DEFAULT_ALPHA=.8;workingAlpha=.8;lock=!1;constructor(t,e,i,s,r){super(t,e,i),t.add.existing(this),this.scene=t,this.scale=s,this.color=r,this.bar=this.scene.add.rectangle(0,-60,16,128,65280),this.bar.setOrigin(.5,0),this.anger=new Phaser.GameObjects.Sprite(this.scene,0,-80,"ellipse"),this.sparks=new Phaser.GameObjects.Sprite(this.scene,0,64,"defaultspark"),this.sparks.setTint(65280),this.sparks.setScale(.5),this.anger.setVisible(!1),this.add(this.bar),this.add(this.sparks),this.add(this.anger),this.updateAlpha(this.DEFAULT_ALPHA),this.graphics=this.scene.add.graphics(),this.add(this.graphics),this.setVisible(!1)}setColor(t){this.color=t}update(t,e){Math.sin(t/120)>0?(this.anger.setFrame(0),this.sparks.setFrame(0)):(this.anger.setFrame(1),this.sparks.setFrame(1)),this.veiled?this.vTimer>0&&(this.vTimer-=e,this.vTimer<=0?(this.setVisible(!1),this.updateAlpha(this.DEFAULT_ALPHA),this.vTimer=0):this.updateAlpha(this.DEFAULT_ALPHA*this.vTimer/500)):this.veiled||this.vfTimer>0&&(this.vfTimer-=e,this.vfTimer<=0?(this.vfTimer=0,this.updateAlpha(this.DEFAULT_ALPHA)):this.updateAlpha(this.DEFAULT_ALPHA*((200-this.vfTimer)/200)))}lockTimer(){this.lock=!0}unlockTimer(){this.lock=!1}unveil(){this.lock||(this.setVisible(!0),this.vTimer=0,this.vfTimer=200,this.veiled=!1)}veil(){this.lock||(this.updateAlpha(this.DEFAULT_ALPHA),this.vTimer=500,this.veiled=!0)}updateAlpha(t){this.sparks.setAlpha(t),this.bar.setAlpha(t),this.anger.setAlpha(t)}resetAlpha(){this.critical?(this.sparks.setAlpha(1),this.bar.setAlpha(1),this.anger.setAlpha(1)):(this.sparks.setAlpha(.5),this.bar.setAlpha(.5),this.anger.setAlpha(.5))}redraw(t){this.bar.setScale(1,t),this.sparks.setY(128*t-64),t<.5&&!this.critical&&(this.critical=!0,this.anger.setTexture("anger"),this.sparks.setTint(16711680),this.sparks.setAlpha(1),this.bar.setAlpha(1),this.anger.setAlpha(1),this.bar.fillColor=16711680)}}var un=(t=>(t[t.Black=0]="Black",t[t.White=16777215]="White",t[t.Slate50=16317180]="Slate50",t[t.Slate100=15857145]="Slate100",t[t.Slate200=14870768]="Slate200",t[t.Slate300=13358561]="Slate300",t[t.Slate400=9741240]="Slate400",t[t.Slate500=6583435]="Slate500",t[t.Slate600=4674921]="Slate600",t[t.Slate700=3359061]="Slate700",t[t.Slate800=1976635]="Slate800",t[t.Slate900=988970]="Slate900",t[t.Slate950=132631]="Slate950",t[t.Gray50=16382715]="Gray50",t[t.Gray100=15987958]="Gray100",t[t.Gray200=15067115]="Gray200",t[t.Gray300=13751771]="Gray300",t[t.Gray400=10265519]="Gray400",t[t.Gray500=7041664]="Gray500",t[t.Gray600=4937059]="Gray600",t[t.Gray700=3621201]="Gray700",t[t.Gray800=2042167]="Gray800",t[t.Gray900=1120295]="Gray900",t[t.Gray950=198418]="Gray950",t[t.Zinc50=16448250]="Zinc50",t[t.Zinc100=16053493]="Zinc100",t[t.Zinc200=15000807]="Zinc200",t[t.Zinc300=13948120]="Zinc300",t[t.Zinc400=10592682]="Zinc400",t[t.Zinc500=7434618]="Zinc500",t[t.Zinc600=5395035]="Zinc600",t[t.Zinc700=4144966]="Zinc700",t[t.Zinc800=2565930]="Zinc800",t[t.Zinc900=1579035]="Zinc900",t[t.Zinc950=592139]="Zinc950",t[t.Neutral50=16448250]="Neutral50",t[t.Neutral100=16119285]="Neutral100",t[t.Neutral200=15066597]="Neutral200",t[t.Neutral300=13948116]="Neutral300",t[t.Neutral400=10724259]="Neutral400",t[t.Neutral500=7566195]="Neutral500",t[t.Neutral600=5395026]="Neutral600",t[t.Neutral700=4210752]="Neutral700",t[t.Neutral800=2500134]="Neutral800",t[t.Neutral900=1513239]="Neutral900",t[t.Neutral950=657930]="Neutral950",t[t.Stone50=16448249]="Stone50",t[t.Stone100=16119284]="Stone100",t[t.Stone200=15197668]="Stone200",t[t.Stone300=14078929]="Stone300",t[t.Stone400=11051678]="Stone400",t[t.Stone500=7893356]="Stone500",t[t.Stone600=5722958]="Stone600",t[t.Stone700=4472892]="Stone700",t[t.Stone800=2696484]="Stone800",t[t.Stone900=1841431]="Stone900",t[t.Stone950=789001]="Stone950",t[t.Red50=16708338]="Red50",t[t.Red100=16704226]="Red100",t[t.Red200=16698058]="Red200",t[t.Red300=16557477]="Red300",t[t.Red400=16281969]="Red400",t[t.Red500=15680580]="Red500",t[t.Red600=14427686]="Red600",t[t.Red700=12131356]="Red700",t[t.Red800=10033947]="Red800",t[t.Red900=8330525]="Red900",t[t.Red950=4524554]="Red950",t[t.Orange50=16775149]="Orange50",t[t.Orange100=16772565]="Orange100",t[t.Orange200=16701354]="Orange200",t[t.Orange300=16628340]="Orange300",t[t.Orange400=16486972]="Orange400",t[t.Orange500=16347926]="Orange500",t[t.Orange600=15357964]="Orange600",t[t.Orange700=12730636]="Orange700",t[t.Orange800=10105874]="Orange800",t[t.Orange900=8138002]="Orange900",t[t.Orange950=4396039]="Orange950",t[t.Amber50=16776171]="Amber50",t[t.Amber100=16708551]="Amber100",t[t.Amber200=16639626]="Amber200",t[t.Amber300=16569165]="Amber300",t[t.Amber400=16498468]="Amber400",t[t.Amber500=16096779]="Amber500",t[t.Amber600=14251782]="Amber600",t[t.Amber700=11817737]="Amber700",t[t.Amber800=9584654]="Amber800",t[t.Amber900=7877903]="Amber900",t[t.Amber950=4528643]="Amber950",t[t.Yellow50=16710888]="Yellow50",t[t.Yellow100=16710083]="Yellow100",t[t.Yellow200=16707722]="Yellow200",t[t.Yellow300=16638023]="Yellow300",t[t.Yellow400=16436245]="Yellow400",t[t.Yellow500=15381256]="Yellow500",t[t.Yellow600=13273604]="Yellow600",t[t.Yellow700=10576391]="Yellow700",t[t.Yellow800=8736014]="Yellow800",t[t.Yellow900=7421714]="Yellow900",t[t.Yellow950=4333574]="Yellow950",t[t.Lime50=16252647]="Lime50",t[t.Lime100=15531211]="Lime100",t[t.Lime200=14285213]="Lime200",t[t.Lime300=12513892]="Lime300",t[t.Lime400=10741301]="Lime400",t[t.Lime500=8702998]="Lime500",t[t.Lime600=6660877]="Lime600",t[t.Lime700=5078031]="Lime700",t[t.Lime800=4153874]="Lime800",t[t.Lime900=3560212]="Lime900",t[t.Lime950=1715717]="Lime950",t[t.Green50=15793652]="Green50",t[t.Green100=14482663]="Green100",t[t.Green200=12318672]="Green200",t[t.Green300=8843180]="Green300",t[t.Green400=4906624]="Green400",t[t.Green500=2278750]="Green500",t[t.Green600=1483594]="Green600",t[t.Green700=1409085]="Green700",t[t.Green800=1467700]="Green800",t[t.Green900=1332013]="Green900",t[t.Green950=339478]="Green950",t[t.Emerald50=15531509]="Emerald50",t[t.Emerald100=13761253]="Emerald100",t[t.Emerald200=11006928]="Emerald200",t[t.Emerald300=7268279]="Emerald300",t[t.Emerald400=3462041]="Emerald400",t[t.Emerald500=1096065]="Emerald500",t[t.Emerald600=366185]="Emerald600",t[t.Emerald700=292951]="Emerald700",t[t.Emerald800=417606]="Emerald800",t[t.Emerald900=413243]="Emerald900",t[t.Emerald950=142370]="Emerald950",t[t.Teal50=15793658]="Teal50",t[t.Teal100=13433841]="Teal100",t[t.Teal200=10090212]="Teal200",t[t.Teal300=6220500]="Teal300",t[t.Teal400=3003583]="Teal400",t[t.Teal500=1357990]="Teal500",t[t.Teal600=889992]="Teal600",t[t.Teal700=1013358]="Teal700",t[t.Teal800=1138265]="Teal800",t[t.Teal900=1265226]="Teal900",t[t.Teal950=274222]="Teal950",t[t.Cyan50=15531775]="Cyan50",t[t.Cyan100=13630206]="Cyan100",t[t.Cyan200=10875900]="Cyan200",t[t.Cyan300=6809849]="Cyan300",t[t.Cyan400=2282478]="Cyan400",t[t.Cyan500=440020]="Cyan500",t[t.Cyan600=561586]="Cyan600",t[t.Cyan700=947344]="Cyan700",t[t.Cyan800=1400437]="Cyan800",t[t.Cyan900=1461859]="Cyan900",t[t.Cyan950=537412]="Cyan950",t[t.Sky50=15792639]="Sky50",t[t.Sky100=14742270]="Sky100",t[t.Sky200=12248829]="Sky200",t[t.Sky300=8246268]="Sky300",t[t.Sky400=3718648]="Sky400",t[t.Sky500=959977]="Sky500",t[t.Sky600=165063]="Sky600",t[t.Sky700=223649]="Sky700",t[t.Sky800=481669]="Sky800",t[t.Sky900=805486]="Sky900",t[t.Sky950=536393]="Sky950",t[t.Blue50=15726335]="Blue50",t[t.Blue100=14412542]="Blue100",t[t.Blue200=12573694]="Blue200",t[t.Blue300=9684477]="Blue300",t[t.Blue400=6333946]="Blue400",t[t.Blue500=3900150]="Blue500",t[t.Blue600=2450411]="Blue600",t[t.Blue700=1920728]="Blue700",t[t.Blue800=1982639]="Blue800",t[t.Blue900=1981066]="Blue900",t[t.Blue950=1516884]="Blue950",t[t.Indigo50=15659775]="Indigo50",t[t.Indigo100=14739455]="Indigo100",t[t.Indigo200=13095678]="Indigo200",t[t.Indigo300=10859772]="Indigo300",t[t.Indigo400=8490232]="Indigo400",t[t.Indigo500=6514417]="Indigo500",t[t.Indigo600=5195493]="Indigo600",t[t.Indigo700=4405450]="Indigo700",t[t.Indigo800=3616931]="Indigo800",t[t.Indigo900=3223169]="Indigo900",t[t.Indigo950=1973067]="Indigo950",t[t.Violet50=16118783]="Violet50",t[t.Violet100=15591934]="Violet100",t[t.Violet200=14538494]="Violet200",t[t.Violet300=12891645]="Violet300",t[t.Violet400=10980346]="Violet400",t[t.Violet500=9133302]="Violet500",t[t.Violet600=8141549]="Violet600",t[t.Violet700=7153881]="Violet700",t[t.Violet800=5972406]="Violet800",t[t.Violet900=4988309]="Violet900",t[t.Violet950=3018853]="Violet950",t[t.Purple50=16446975]="Purple50",t[t.Purple100=15984895]="Purple100",t[t.Purple200=15324671]="Purple200",t[t.Purple300=14202110]="Purple300",t[t.Purple400=12616956]="Purple400",t[t.Purple500=11032055]="Purple500",t[t.Purple600=9647082]="Purple600",t[t.Purple700=8266446]="Purple700",t[t.Purple800=7020968]="Purple800",t[t.Purple900=5774471]="Purple900",t[t.Purple950=3868516]="Purple950",t[t.Fuchsia50=16643327]="Fuchsia50",t[t.Fuchsia100=16443647]="Fuchsia100",t[t.Fuchsia200=16109822]="Fuchsia200",t[t.Fuchsia300=15772668]="Fuchsia300",t[t.Fuchsia400=15235577]="Fuchsia400",t[t.Fuchsia500=14239471]="Fuchsia500",t[t.Fuchsia600=12592851]="Fuchsia600",t[t.Fuchsia700=10624175]="Fuchsia700",t[t.Fuchsia800=8788367]="Fuchsia800",t[t.Fuchsia900=7346805]="Fuchsia900",t[t.Fuchsia950=4850766]="Fuchsia950",t[t.Pink50=16642808]="Pink50",t[t.Pink100=16574451]="Pink100",t[t.Pink200=16502760]="Pink200",t[t.Pink300=16361684]="Pink300",t[t.Pink400=16020150]="Pink400",t[t.Pink500=15485081]="Pink500",t[t.Pink600=14362487]="Pink600",t[t.Pink700=12458077]="Pink700",t[t.Pink800=10295117]="Pink800",t[t.Pink900=8591427]="Pink900",t[t.Pink950=5244708]="Pink950",t[t.Rose50=16773618]="Rose50",t[t.Rose100=16770278]="Rose100",t[t.Rose200=16698835]="Rose200",t[t.Rose300=16622767]="Rose300",t[t.Rose400=16478597]="Rose400",t[t.Rose500=16007006]="Rose500",t[t.Rose600=14753096]="Rose600",t[t.Rose700=12456508]="Rose700",t[t.Rose800=10424889]="Rose800",t[t.Rose900=8917815]="Rose900",t[t.Rose950=4982041]="Rose950",t))(un||{}),cn=(t=>(t.Black="#000000",t.White="#ffffff",t.Slate50="#f8fafc",t.Slate100="#f1f5f9",t.Slate200="#e2e8f0",t.Slate300="#cbd5e1",t.Slate400="#94a3b8",t.Slate500="#64748b",t.Slate600="#475569",t.Slate700="#334155",t.Slate800="#1e293b",t.Slate900="#0f172a",t.Slate950="#020617",t.Gray50="#f9fafb",t.Gray100="#f3f4f6",t.Gray200="#e5e7eb",t.Gray300="#d1d5db",t.Gray400="#9ca3af",t.Gray500="#6b7280",t.Gray600="#4b5563",t.Gray700="#374151",t.Gray800="#1f2937",t.Gray900="#111827",t.Gray950="#030712",t.Zinc50="#fafafa",t.Zinc100="#f4f4f5",t.Zinc200="#e4e4e7",t.Zinc300="#d4d4d8",t.Zinc400="#a1a1aa",t.Zinc500="#71717a",t.Zinc600="#52525b",t.Zinc700="#3f3f46",t.Zinc800="#27272a",t.Zinc900="#18181b",t.Zinc950="#09090b",t.Neutral50="#fafafa",t.Neutral100="#f5f5f5",t.Neutral200="#e5e5e5",t.Neutral300="#d4d4d4",t.Neutral400="#a3a3a3",t.Neutral500="#737373",t.Neutral600="#525252",t.Neutral700="#404040",t.Neutral800="#262626",t.Neutral900="#171717",t.Neutral950="#0a0a0a",t.Stone50="#fafaf9",t.Stone100="#f5f5f4",t.Stone200="#e7e5e4",t.Stone300="#d6d3d1",t.Stone400="#a8a29e",t.Stone500="#78716c",t.Stone600="#57534e",t.Stone700="#44403c",t.Stone800="#292524",t.Stone900="#1c1917",t.Stone950="#0c0a09",t.Red50="#fef2f2",t.Red100="#fee2e2",t.Red200="#fecaca",t.Red300="#fca5a5",t.Red400="#f87171",t.Red500="#ef4444",t.Red600="#dc2626",t.Red700="#b91c1c",t.Red800="#991b1b",t.Red900="#7f1d1d",t.Red950="#450a0a",t.Orange50="#fff7ed",t.Orange100="#ffedd5",t.Orange200="#fed7aa",t.Orange300="#fdba74",t.Orange400="#fb923c",t.Orange500="#f97316",t.Orange600="#ea580c",t.Orange700="#c2410c",t.Orange800="#9a3412",t.Orange900="#7c2d12",t.Orange950="#431407",t.Amber50="#fffbeb",t.Amber100="#fef3c7",t.Amber200="#fde68a",t.Amber300="#fcd34d",t.Amber400="#fbbf24",t.Amber500="#f59e0b",t.Amber600="#d97706",t.Amber700="#b45309",t.Amber800="#92400e",t.Amber900="#78350f",t.Amber950="#451a03",t.Yellow50="#fefce8",t.Yellow100="#fef9c3",t.Yellow200="#fef08a",t.Yellow300="#fde047",t.Yellow400="#facc15",t.Yellow500="#eab308",t.Yellow600="#ca8a04",t.Yellow700="#a16207",t.Yellow800="#854d0e",t.Yellow900="#713f12",t.Yellow950="#422006",t.Lime50="#f7fee7",t.Lime100="#ecfccb",t.Lime200="#d9f99d",t.Lime300="#bef264",t.Lime400="#a3e635",t.Lime500="#84cc16",t.Lime600="#65a30d",t.Lime700="#4d7c0f",t.Lime800="#3f6212",t.Lime900="#365314",t.Lime950="#1a2e05",t.Green50="#f0fdf4",t.Green100="#dcfce7",t.Green200="#bbf7d0",t.Green300="#86efac",t.Green400="#4ade80",t.Green500="#22c55e",t.Green600="#16a34a",t.Green700="#15803d",t.Green800="#166534",t.Green900="#14532d",t.Green950="#052e16",t.Emerald50="#ecfdf5",t.Emerald100="#d1fae5",t.Emerald200="#a7f3d0",t.Emerald300="#6ee7b7",t.Emerald400="#34d399",t.Emerald500="#10b981",t.Emerald600="#059669",t.Emerald700="#047857",t.Emerald800="#065f46",t.Emerald900="#064e3b",t.Emerald950="#022c22",t.Teal50="#f0fdfa",t.Teal100="#ccfbf1",t.Teal200="#99f6e4",t.Teal300="#5eead4",t.Teal400="#2dd4bf",t.Teal500="#14b8a6",t.Teal600="#0d9488",t.Teal700="#0f766e",t.Teal800="#115e59",t.Teal900="#134e4a",t.Teal950="#042f2e",t.Cyan50="#ecfeff",t.Cyan100="#cffafe",t.Cyan200="#a5f3fc",t.Cyan300="#67e8f9",t.Cyan400="#22d3ee",t.Cyan500="#06b6d4",t.Cyan600="#0891b2",t.Cyan700="#0e7490",t.Cyan800="#155e75",t.Cyan900="#164e63",t.Cyan950="#083344",t.Sky50="#f0f9ff",t.Sky100="#e0f2fe",t.Sky200="#bae6fd",t.Sky300="#7dd3fc",t.Sky400="#38bdf8",t.Sky500="#0ea5e9",t.Sky600="#0284c7",t.Sky700="#0369a1",t.Sky800="#075985",t.Sky900="#0c4a6e",t.Sky950="#082f49",t.Blue50="#eff6ff",t.Blue100="#dbeafe",t.Blue200="#bfdbfe",t.Blue300="#93c5fd",t.Blue400="#60a5fa",t.Blue500="#3b82f6",t.Blue600="#2563eb",t.Blue700="#1d4ed8",t.Blue800="#1e40af",t.Blue900="#1e3a8a",t.Blue950="#172554",t.Indigo50="#eef2ff",t.Indigo100="#e0e7ff",t.Indigo200="#c7d2fe",t.Indigo300="#a5b4fc",t.Indigo400="#818cf8",t.Indigo500="#6366f1",t.Indigo600="#4f46e5",t.Indigo700="#4338ca",t.Indigo800="#3730a3",t.Indigo900="#312e81",t.Indigo950="#1e1b4b",t.Violet50="#f5f3ff",t.Violet100="#ede9fe",t.Violet200="#ddd6fe",t.Violet300="#c4b5fd",t.Violet400="#a78bfa",t.Violet500="#8b5cf6",t.Violet600="#7c3aed",t.Violet700="#6d28d9",t.Violet800="#5b21b6",t.Violet900="#4c1d95",t.Violet950="#2e1065",t.Purple50="#faf5ff",t.Purple100="#f3e8ff",t.Purple200="#e9d5ff",t.Purple300="#d8b4fe",t.Purple400="#c084fc",t.Purple500="#a855f7",t.Purple600="#9333ea",t.Purple700="#7e22ce",t.Purple800="#6b21a8",t.Purple900="#581c87",t.Purple950="#3b0764",t.Fuchsia50="#fdf4ff",t.Fuchsia100="#fae8ff",t.Fuchsia200="#f5d0fe",t.Fuchsia300="#f0abfc",t.Fuchsia400="#e879f9",t.Fuchsia500="#d946ef",t.Fuchsia600="#c026d3",t.Fuchsia700="#a21caf",t.Fuchsia800="#86198f",t.Fuchsia900="#701a75",t.Fuchsia950="#4a044e",t.Pink50="#fdf2f8",t.Pink100="#fce7f3",t.Pink200="#fbcfe8",t.Pink300="#f9a8d4",t.Pink400="#f472b6",t.Pink500="#ec4899",t.Pink600="#db2777",t.Pink700="#be185d",t.Pink800="#9d174d",t.Pink900="#831843",t.Pink950="#500724",t.Rose50="#fff1f2",t.Rose100="#ffe4e6",t.Rose200="#fecdd3",t.Rose300="#fda4af",t.Rose400="#fb7185",t.Rose500="#f43f5e",t.Rose600="#e11d48",t.Rose700="#be123c",t.Rose800="#9f1239",t.Rose900="#881337",t.Rose950="#4c0519",t))(cn||{});class dn extends Vr{customerId;scene;lastX;lastY;dragX;dragY;currentStation;currentEmployee;itinerary;requestedStation;hasEnteredShop=!1;hasCompleted=!1;tips=0;tipMultiplier=1;tipBonus=0;happiness=1.01;happinessBonus=0;rockBonus=0;minHappiness=1.01;maxHappiness=6.01;patience=1;minPatience;maxPatience=1;lockPatience;actionsComplete=!1;doingCuteThing;tasksCompleted;moneySpent;cellSize;spriteCont;sprite;customColor;thoughtBubble;angryImage;patienceTimer;spriteList;itemList;sprList;garchomp;testTimer;eatDelay=0;playFail=!1;constructor(t,e,i,s,r){super(t,e,i),t.add.existing(this),this.scene=t,this.customerId=s,this.cellSize=r,this.lastX=e,this.lastY=i,this.dragX=e,this.dragY=i,this.currentStation=null,this.currentEmployee=null,this.itinerary=[],this.requestedStation=null,this.doingCuteThing=!1,this.tasksCompleted=0,this.moneySpent=0,this.spriteCont=this.scene.add.container(0,this.spriteOffset),this.add(this.spriteCont),this.sprite=this.scene.add.sprite(0,0,this.spriteKeys.sit),this.sprite.setOrigin(.5,1),this.sprite.setScale(this.spriteSize/this.sprite.width),this.spriteCont.add(this.sprite);const n=[un.Red600,un.Orange600,un.Amber600,un.Yellow600,un.Lime600,un.Green600,un.Emerald600,un.Teal600,un.Cyan600,un.Sky600,un.Blue600,un.Indigo600,un.Violet600,un.Purple600,un.Fuchsia600,un.Pink600,un.Rose600];this.customColor=Jr(Phaser.Math.RND.pick(n),16777215,.8);const o=this.spriteSize;this.angryImage=this.scene.add.sprite(-.2*o,-.5*o,"anger"),this.angryImage.setScale(1),this.angryImage.setVisible(!1),this.add(this.angryImage),this.testTimer=new ln(this.scene,-80,-40,1,16711680),this.add(this.testTimer),this.thoughtBubble=new rn(t,.4*r,-.6*r,r),this.add(this.thoughtBubble),this.patienceTimer=new Zr(t,-.3*r,-.3*r,.6*r,16421925),this.patienceTimer.setAlpha(0),this.add(this.patienceTimer),this.itemList=[],this.sprList=[],this.bindInteractive(this.sprite,!0),this.sprite.input.enabled=!1}update(t,e){this.x+=.5*(this.dragX-this.x),this.y+=.5*(this.dragY-this.y);const i=1+(this.doingCuteThing?.1:.02)*Math.sin(6*t/1e3);this.setScale(1,i-.2*this.holdSmooth),this.sprite.setTint(Jr(16711680,16777215,2*this.patience)),this.isWaiting?(this.patienceTimer.setVisible(!0),this.dragged||this.lockPatience||(this.patience-=1/40*(e/1e3)),this.patienceTimer.setColor(Jr(16711680,65280,this.patience)),this.patienceTimer.redraw(this.patience/this.maxPatience),this.testTimer.redraw(this.patience/this.maxPatience>1?1:this.patience/this.maxPatience),this.angryImage.setVisible(this.patience<=.25),this.angryImage.setFrame(Math.floor(t/300%2)),this.testTimer.update(t,e),this.patience<=0&&(this.hasCompleted&&Math.random()>.2?(this.scene.sound.play("cashmoney",{volume:.4}),this.scene.addEffect(new hn(this.scene,this.x-70+80*Math.random(),this.y-80,"+"+this.moneySpent+" €","yellow",40,!0,"red",800,100,.7,0)),this.emit("pay",this.moneySpent)):this.scene.sound.play("rip",{volume:.3}),this.leave(),this.thoughtBubble.showSymbol("sad"),this.emit("angry"))):(this.patienceTimer.setVisible(!1),this.angryImage.setVisible(!1)),this.testTimer.update(t,e),this.itemList.length>0&&this.eatDelay<=0&&(this.eatDelay=100+200*Math.random()),this.eatDelay>0&&(this.eatDelay-=e,this.eatDelay<=0&&(this.eatDelay=0,this.itemList.length>0&&(this.scene.parseCustomerItems(this.itemList.shift(),this),this.sprList[0]&&(this.sprList[0].destroy(),this.sprList.shift())))),this.playFail&&(this.scene.sound.play("rip",{volume:.3}),this.playFail=!1)}onOver(t,e,i,s){super.onOver(t,e,i,s),this.toggleTimer()}onOut(t,e){super.onOut(t,e),this.untoggleTimer()}onDragStart(t,e,i){this.emit("pickup"),this.dragged=!0,this.sprite.setTexture(this.spriteKeys.sit),this.scene.sound.play("grab",{volume:.4})}onDrag(t,e,i){this.hold=!1,this.dragX=t.x,this.dragY=t.y,this.emit("drag")}onDragEnd(t,e,i){this.dragged=!1,this.emit("drop"),this.sprite.setTexture(this.spriteKeys.sit),this.scene.sound.play("letgo1",{volume:.4})}resetPatience(){this.patience=1.25*this.maxPatience}miniRefresh(){this.lockPatience||(this.patience+=.125,this.patience>1.25&&(this.patience=1.25))}toggleTimer(){this.testTimer.unveil()}untoggleTimer(){this.testTimer.veil()}lockTimer(){this.testTimer.lockTimer()}unlockTimer(){this.testTimer.unlockTimer()}snapTo(t,e,i=!1){this.dragX=t,this.dragY=e,i&&(this.x=t,this.y=e)}walk(t){const e=t.getLength();this.scene.tweens.addCounter({duration:10*e/this.walkSpeed,ease:"Linear",onUpdate:({progress:i})=>{const s=t.getPoint(i);this.dragX=s.x,this.dragY=s.y;const r=this.spriteKeys.walk.length,n=Math.floor(i*e/50)%r,o=this.spriteKeys.walk[n];this.sprite.setTexture(o),this.sprite.flipX=this.dragX{const e=t.getPoint(1);this.dragX=e.x,this.dragY=e.y,this.sprite.setTexture(this.spriteKeys.sit),this.sprite.flipX=!1,this.hasEnteredShop=!0,this.sprite.input.enabled=!0,this.scene.sound.play("letgo1",{volume:.2}),this.emit("seated")}})}setStation(t){this.currentStation=t,t&&(this.lastX=t.x,this.lastY=t.y,this.patience<.25&&this.requestedStation!==t.stationType&&(this.patience=.25),this.requestedStation===t.stationType&&this.thoughtBubble.showSymbol("exclamation"))}setEmployee(t){this.currentEmployee=t,this.sprite.input.enabled=!t,t&&(this.untoggleTimer(),this.lockTimer()),this.thoughtBubble.showSymbol("love")}setAction(t){this.doingCuteThing=t}setRequest(t){null!==t?(this.requestedStation=t,this.thoughtBubble.setRequest(t)):this.thoughtBubble.setRequest(null)}nextActivity(){this.itinerary.length>0?this.setRequest(this.itinerary.shift()||null):this.hasCompleted?(this.actionsComplete=!0,this.parseMoney(),this.scene.sound.play("cashmoney",{volume:.4}),this.scene.addEffect(new hn(this.scene,this.x-70+80*Math.random(),this.y-80,"+"+this.moneySpent+" €","yellow",40,!0,"red",800,100,.7,0)),this.scene.addEffect(new hn(this.scene,this.x-40+80*Math.random(),this.y-20,"Tips +"+this.tips+" €","yellow",40,!0,"red",800,100,.7,0)),this.emit("pay",this.moneySpent),this.emit("tip",this.tips),this.leave()):(this.hasCompleted=!0,this.setRequest($r.CashRegister))}leave(){this.sprite.input.enabled=!1,this.testTimer.setVisible(!1),this.setRequest(null),this.patienceTimer.setVisible(!1),this.currentStation&&(this.currentStation.setCustomer(null),this.setStation(null)),this.currentEmployee&&(this.currentEmployee.setCustomer(null),this.setEmployee(null)),this.scene.tweens.add({targets:this,dragX:"+=1920",dragY:this.lastY,duration:2e3,ease:"Linear",onComplete:()=>{this.emit("offscreen")}})}recheckHappiness(){if(this.hasCompleted)return;let t=this.happiness;switch(this.patience>.5?t+=2:t+=4*this.patience/this.maxPatience,this.patience>=1&&(t+=1),t+=this.rockBonus,t>4.01&&(t=4.01),t+=this.happinessBonus,tthis.maxHappiness&&(t=this.maxHappiness),Math.trunc(t)){case 1:this.thoughtBubble.showSymbol("h1");break;case 2:this.thoughtBubble.showSymbol("h2");break;case 3:this.thoughtBubble.showSymbol("h3");break;case 4:this.thoughtBubble.showSymbol("h4");break;case 5:this.thoughtBubble.showSymbol("h5");break;case 6:this.thoughtBubble.showSymbol("h6")}}parseHappiness(){let t=this.happiness;switch(this.patience>.5?t+=2:t+=4*this.patience/this.maxPatience,this.patience>=1&&(t+=1),t+=this.rockBonus,t>4.01&&(t=4.01),t+=this.happinessBonus,tthis.maxHappiness&&(t=this.maxHappiness),this.tips=this.baseTips*(1+this.tipBonus),Math.trunc(t)){case 1:this.thoughtBubble.showSymbol("h1"),this.tips+=(0+this.tipBonus)*this.moneySpent;break;case 2:this.thoughtBubble.showSymbol("h2"),this.tips+=(.05+this.tipBonus)*this.moneySpent;break;case 3:this.thoughtBubble.showSymbol("h3"),this.tips+=(.1+this.tipBonus)*this.moneySpent;break;case 4:this.thoughtBubble.showSymbol("h4"),this.tips+=(.25+this.tipBonus)*this.moneySpent;break;case 5:this.thoughtBubble.showSymbol("h5"),this.tips+=(.5+this.tipBonus)*this.moneySpent;break;case 6:this.thoughtBubble.showSymbol("h6"),this.tips+=(1+this.tipBonus)*this.moneySpent}this.tips*=this.tipMultiplier,this.tips=Math.trunc(this.tips)}applyItem(t,e){this.itemList.push(t);let i=new Phaser.GameObjects.Sprite(this.scene,40*this.itemList.length-80,60,e);i.setOrigin(.5,.5),i.setScale(.4),i.setDepth(4),i.setAlpha(.85),this.add(i),this.sprList.push(i)}queueFail(){this.playFail=!0}parseMoney(){this.parseHappiness()}pauseClickable(){this.sprite.input.enabled?this.sprite.input.enabled=!1:this.garchomp=!0}resumeClickable(){this.garchomp?this.garchomp=!1:this.sprite.input.enabled=!0}getColorTags(){}getColorAntiTags(){}get isWaiting(){return this.hasEnteredShop&&null!==this.currentStation&&null===this.currentEmployee}get spriteKeys(){return on[this.customerId].spriteKeys}get spriteScale(){return on[this.customerId].spriteScale}get spriteSize(){return this.spriteScale*this.cellSize}get spriteOffset(){return.2*this.spriteSize}get walkSpeed(){return on[this.customerId].walkSpeed}get workMultiplier(){return on[this.customerId].workMultiplier}get tags(){return on[this.customerId].tags}get antitags(){return on[this.customerId].antitags}get budget(){return on[this.customerId].budget}get baseTips(){return on[this.customerId].baseTips}}class pn extends Vr{index;value;sprite;tdisplay;disabled=!1;constructor(t,e,i,s,r,n=40){super(t,e,i),this.sprite=t.add.sprite(0,0,r,0),this.sprite.setOrigin(.5,.5),this.add(this.sprite),this.bindInteractive(this.sprite),this.value=s,this.tdisplay=t.addText({text:s,color:"white",size:n}),this.tdisplay.setOrigin(.5),this.add(this.tdisplay),this.index=-1,this.disabled=!1}center(){this.sprite.setOrigin(.5,.5),this.tdisplay.setOrigin(.5,.5)}reCenter(t,e){this.sprite.setOrigin(t,e),this.tdisplay.setOrigin(t,e)}setValue(t){this.value=t,this.tdisplay.setText(this.value)}setIndex(t){this.index=t}turnOff(){this.sprite.input.enabled=!1,this.disabled=!0,this.resetState()}turnOn(){this.sprite.input.enabled=!0,this.disabled=!1,this.resetState()}resetState(){this.tdisplay.setColor("white"),this.sprite.setFrame(0)}onDown(t,e,i,s){this.disabled||(super.onDown(t,e,i,s),this.tdisplay.setColor("green"),this.sprite.setFrame(1))}onUp(t,e,i,s){this.disabled||(super.onUp(t,e,i,s),this.tdisplay.setColor("white"),this.sprite.setFrame(0))}}class fn extends Vr{stationId;hasBeenPurchased;currentCustomer;taskSpeed=1;taskHaste=1;refresh=!1;queueFail=!1;crit=0;clearButton;scene;taskTimer=0;appliedItems;appliedSprites;jolteon=!1;cellSize;spriteCont;sprite;text;progressTimer;constructor(t,e,i,s,r){super(t,e,i),t.add.existing(this),this.scene=t,this.stationId=s,this.cellSize=r,this.currentCustomer=null,this.hasBeenPurchased=!1,this.spriteCont=this.scene.add.container(0,this.spriteOffset),this.add(this.spriteCont),this.sprite=this.scene.add.image(0,0,this.spriteKey),this.sprite.setOrigin(.5,1),this.sprite.setScale(this.spriteSize/this.sprite.width),this.sprite.setTint(Jr(16777215,this.stationTypeColor,.2)),this.spriteCont.add(this.sprite),this.text=this.scene.addText({x:0,y:r/2,size:32,text:"Available"}),this.text.setOrigin(.5),this.text.setVisible(!1),this.text.setStroke("#000000",4),this.add(this.text),this.progressTimer=new Zr(t,-.4*r,.4*r,.8*r,15552932),this.progressTimer.setVisible(!1),this.add(this.progressTimer),this.bindInteractive(this.sprite),this.sprite.input.enabled=!1,this.appliedItems=[],this.appliedSprites=[],this.clearButton=new pn(this.scene,.45*r,-.45*r,"","redx",10),this.clearButton.on("click",(()=>{this.returnItems()})),this.add(this.clearButton),this.clearButton.setScale(.75,.75),this.clearButton.setDepth(5),this.clearButton.setVisible(!1)}update(t,e){const i=1+(this.hasBeenPurchased?.02:0)*Math.sin(6*t/1e3);this.spriteCont.setScale(1,i-.2*this.holdSmooth)}setCustomer(t){this.currentCustomer=t,this.text.setText(t?"Click me!":"Available")}startTask(){this.text.setText("Working"),this.currentCustomer?this.taskHaste*=this.currentCustomer.workMultiplier:this.taskHaste*=1,this.parseItems(),this.queueFail?this.scene.sound.play("rip",{volume:.5}):this.playJingle(),this.clearItems(),this.stationType==$r.CashRegister&&(this.taskHaste=1),this.currentCustomer&&this.currentCustomer.recheckHappiness(),this.scene.tweens.addCounter({from:1,to:0,duration:this.taskDuration*this.taskHaste*this.taskSpeed,onStart:()=>{this.progressTimer.setVisible(!0)},onUpdate:t=>{this.progressTimer.redraw(t.getValue())},onComplete:()=>{this.parseTaskEndParams(),this.resetTempVariables(),this.emit("taskend"),this.progressTimer.setVisible(!1),this.text.setText("Click me!")}}),this.setCrits(this.taskDuration*this.taskHaste*this.taskSpeed)}setCrits(t){if(this.crit<=0)return;let e=1;for(let i=0;i<5;i++)Math.random(){},onUpdate:()=>{},onComplete:()=>{this.scene.addEffect(new hn(this.scene,this.x-80+160*Math.random(),this.y-80+160*Math.random(),"Crit! +Happiness!","cyan",30,!0,"red",800,100,.7,0)),this.scene.sound.play("crit",{volume:.5}),this.currentCustomer&&(this.currentCustomer.happinessBonus+=.75,this.currentCustomer.recheckHappiness())}})}parseTaskEndParams(){this.refresh&&this.currentCustomer&&this.currentCustomer.resetPatience()}resetTempVariables(){this.taskHaste=1,this.refresh=!1,this.queueFail=!1,this.crit=0}setClickable(t){this.sprite.input.enabled=t}pauseClickable(){this.sprite.input.enabled?this.sprite.input.enabled=!1:this.jolteon=!0}resumeClickable(){this.jolteon?this.jolteon=!1:this.sprite.input.enabled=!0}upgrade(){this.hasBeenPurchased?this.upgradeTo&&(this.stationId=this.upgradeTo,this.sprite.setTexture(this.spriteKey),this.spriteCont.y=this.spriteOffset,this.sprite.setScale(this.spriteSize/this.sprite.width)):(this.hasBeenPurchased=!0,this.setAlpha(1))}forceUpgrade(t){this.hasBeenPurchased=!0,this.setAlpha(1),this.stationId=t,this.sprite.setTexture(this.spriteKey),this.spriteCont.y=this.spriteOffset,this.sprite.setScale(this.spriteSize/this.sprite.width)}applyItem(t,e){this.appliedItems.push(t);let i=new Phaser.GameObjects.Sprite(this.scene,40*this.appliedItems.length-80,60,e);i.setOrigin(.5,.5),i.setScale(.4),i.setDepth(2),i.setAlpha(.85),this.add(i),this.appliedSprites.push(i),this.clearButton.setVisible(!0)}clearItems(){this.appliedItems=[],this.appliedSprites.forEach((t=>t.destroy())),this.appliedSprites=[],this.clearButton.setVisible(!1)}parseItems(){this.currentCustomer&&(this.currentCustomer.miniRefresh(),this.appliedItems.length>0&&this.appliedItems.forEach((t=>this.scene.parseItems(t,this,this.currentCustomer))))}returnItems(){this.appliedItems.length>0&&this.appliedItems.forEach((t=>this.scene.returnItem(t))),this.appliedSprites.length>0&&this.appliedSprites.forEach((t=>t.destroy())),this.appliedItems=[],this.appliedSprites=[],this.scene.sound.play("return",{volume:.5}),this.clearButton.setVisible(!1)}playJingle(){switch(this.stationType){case $r.ScalePolish:this.scene.sound.play("polish",{volume:.5});break;case $r.GoldBath:this.scene.sound.play("goldbath",{volume:.5});break;case $r.HornAndNails:this.scene.sound.play("snip",{volume:.5})}}get stationType(){return sn[this.stationId].type}get stationName(){return sn[this.stationId].name}get stationTier(){return sn[this.stationId].tier}get spriteKey(){return sn[this.stationId].spriteKey}get spriteScale(){return sn[this.stationId].spriteScale}get spriteSize(){return this.spriteScale*this.cellSize}get spriteOffset(){return.5*this.spriteSize}get taskDuration(){return sn[this.stationId].taskDuration??0}get admissionFee(){return sn[this.stationId].admissionFee??0}get upgradeCost(){return this.hasBeenPurchased?this.upgradeTo?sn[this.upgradeTo].cost:0:sn[this.stationId].cost}get upgradeTo(){return sn[this.stationId].upgradeTo}get stationTypeSymbolKey(){return tn[this.stationType].symbolKey}get stationTypeColor(){return tn[this.stationType].color}}class gn extends Phaser.GameObjects.Container{scene;context;polygon;radius;color;origin;corners;constructor(t,{rect:e,x:i=0,y:s=0,width:r=100,height:n=100,radius:o=16,color:a=16777215,alpha:h=1,bottomRight:l=!0,bottomLeft:u=!0,topLeft:c=!0,topRight:d=!0}){e&&(i=e.centerX,s=e.centerY,r=e.width,n=e.height),super(t,i,s),t.add.existing(this),this.scene=t,this.radius=o,this.width=Math.max(r,2*o),this.height=Math.max(n,2*o),this.color=a,this.corners=[l,u,c,d],this.origin=new Phaser.Math.Vector2(.5,.5),this.setAlpha(h),this.context=this.scene.add.graphics({x:0,y:0}),this.add(this.context),this.updatePolygon()}setWidth(t){this.width=Math.max(t,2*this.radius),this.updatePolygon()}setHeight(t){this.height=Math.max(t,2*this.radius),this.updatePolygon()}setRadius(t){this.radius=t,this.updatePolygon()}setColor(t){this.color=t,this.updatePolygon()}setOrigin(t,e){void 0===e&&(e=t),this.origin.x=t,this.origin.y=e,this.updatePolygon()}updatePolygon(){let t=[];for(let e=0;e<4;e++){let i=Math.sign(Math.cos(e*Math.PI/2+.1)),s=Math.sign(Math.sin(e*Math.PI/2+.1));if(this.corners[e])for(let r=0;r<16;r++){let n=Math.cos(e*Math.PI/2+r/15*Math.PI/2),o=Math.sin(e*Math.PI/2+r/15*Math.PI/2);t.push({x:(.5-this.origin.x)*this.width+i*(this.width/2-this.radius)+this.radius*n,y:(.5-this.origin.y)*this.height+s*(this.height/2-this.radius)+this.radius*o})}else t.push({x:(.5-this.origin.x)*this.width+i*this.width/2,y:(.5-this.origin.y)*this.height+s*this.height/2})}this.context.clear(),this.context.fillStyle(this.color,1),this.context.fillPoints(t,!0,!0)}}class mn extends Vr{scene;border;background;text;constructor(t,e,i,s,r,n){super(t,e,i),t.add.existing(this),this.scene=t,this.border=new gn(t,{width:s+20,height:r+20,radius:30,color:un.White}),this.add(this.border),this.background=new gn(t,{width:s,height:r,radius:20,color:un.Green700}),this.add(this.background),this.text=this.scene.addText({size:48,color:"#FFFFFF",text:n}),this.text.setOrigin(.5),this.add(this.text),this.bindInteractive(this.border)}update(t,e){this.setScale(1-.1*this.holdSmooth)}setText(t){this.text.setText(t)}setEnabled(t){this.setAlpha(t?1:.5),this.border.input.enabled=t,this.background.setColor(t?un.Green700:un.Gray500)}}class vn extends Phaser.GameObjects.Container{scene;panel;background;dayProgressTimer;clockText;dayText;moneyTitle;moneyText;nextButton;newLocationButton;constructor(t){super(t,0,0),t.add.existing(this),this.scene=t;const e=500;this.panel=this.scene.add.container(t.W-165-13,263),this.add(this.panel);const i=new gn(t,{x:0,y:0,width:330,height:e,radius:20,color:0,alpha:.6});this.panel.add(i),this.dayProgressTimer=new Zr(t,0,-35,370,16742144),this.panel.add(this.dayProgressTimer),this.clockText=this.scene.addText({x:0,y:this.dayProgressTimer.y,size:35,color:"#FFFFFF",text:"09:00"}),this.clockText.setOrigin(.5),this.clockText.setStroke("black",6),this.panel.add(this.clockText),this.dayText=this.scene.addText({x:0,y:-180,size:60,color:"#FFFFFF",text:"Day 1"}),this.dayText.setOrigin(.5),this.dayText.setStroke("black",8),this.panel.add(this.dayText),this.moneyTitle=this.scene.addText({x:0,y:105,size:30,color:"#FFFFFF",text:"Money"}),this.moneyTitle.setStroke("black",6),this.moneyTitle.setOrigin(.5),this.panel.add(this.moneyTitle),this.moneyText=this.scene.addText({x:0,y:this.moneyTitle.y+55,size:60,color:"#FFFFFF",text:"$0"}),this.moneyText.setStroke("black",8),this.moneyText.setOrigin(.5),this.panel.add(this.moneyText),this.nextButton=new mn(t,0,600,300,90,"Start day"),this.panel.add(this.nextButton),this.nextButton.on("click",(()=>{this.emit("nextDay")})),this.newLocationButton=new mn(t,0,400,300,200,"..."),this.panel.add(this.newLocationButton),this.newLocationButton.on("click",(()=>{this.emit("nextLevel")}))}update(t,e){this.nextButton.update(t,e),this.newLocationButton.update(t,e)}setDay(t){this.dayText.setText(`Day ${t}`)}setTimeOfDay(t){this.dayProgressTimer.redraw(t);const e=9+7*t,i=e%1*60,s=Math.floor(e).toString().padStart(2,"0"),r=(10*Math.floor(i/10)).toString().padStart(2,"0");this.clockText.setText(`${s}:${r}`),1==t&&this.clockText.setText("Closed")}setLevel(t){this.newLocationButton.setData("cost",t.upgradeCost),this.newLocationButton.setVisible(void 0!==t.upgradeCost),this.newLocationButton.setText(`Upgrade\n shop\n $${Qr(t.upgradeCost??0)}`)}setMoney(t){this.moneyText.setText(`$${Qr(t)}`);const e=t>=this.newLocationButton.getData("cost");this.newLocationButton.setEnabled(e)}setShoppingMode(t){this.nextButton.setVisible(t);const e=void 0!==this.newLocationButton.getData("cost");this.newLocationButton.setVisible(t&&e)}}var yn=(t=>(t[t.CUSTOMER=0]="CUSTOMER",t[t.STATION=1]="STATION",t))(yn||{});class xn{id;spr;quant;price;tags;antitags;name;desc;snap;sound;clippingType;constructor(t,e,i,s,r,n,o,a,h,l){this.id=t,this.spr=e,this.quant=i,this.price=s,this.tags=r,this.antitags=n,this.name=o,this.desc=a,this.snap=h,this.sound=l}setQuantity(t){this.quant=t}}class wn extends Vr{id;index;sprname;spr;default;state=0;passivate=!1;dragX;dragY;doingCuteThing;parent;snap;constructor(t,e,i,s,r,n,o,a){super(t,e,i),this.parent=s,this.default=[e,i],this.id=r,this.index=n,this.sprname=o,this.snap=a,this.spr=new Phaser.GameObjects.Sprite(this.scene,e,i,o,0),this.spr.setOrigin(.5,.5),this.bindInteractive(this.spr,!0),this.add(this.spr),this.parent.add(this),this.setDepth(4)}onDown(t,e,i,s){super.onDown(t,e,i,s),this.passivate||this.parseClick()}update(t,e){3==this.state&&(this.x=this.dragX-this.default[0],this.y=this.dragY-this.default[1])}parseClick(){0==this.state&&(this.parent.unhighlight(),this.select(),this.parent.highlight(this.id))}onDragStart(t,e,i){this.dragged=!0,0==this.state&&(this.parent.unhighlight(),this.select(),this.parent.highlight(this.id)),1==this.state&&(this.spr.setFrame(0),this.state=3,this.parent.remove(this),this.parent.scene.setActiveItem(this),this.parent.scene.veilInvButton(),this.setPosition(0,0),this.split(),this.passivate=!0,this.setDepth(10)),this.emit("itempickup")}onDrag(t,e,i){this.hold=!1,this.dragX=t.x,this.dragY=t.y,this.emit("itemdrag")}onDragEnd(t,e,i){this.dragged=!1,3==this.state&&this.emit("itemdrop")}select(){this.state=1,this.spr.setFrame(1)}unselect(){this.parent.itemList[this.id].quant<=0?this.shadow():(this.state=0,this.spr.setFrame(0),this.passivate=!1)}shadow(){this.spr.setFrame(2),this.passivate=!0,this.state=2}snapTo(t,e){this.x=t-this.default[0],this.y=e-this.default[1]}unshadow(){this.state=1,this.spr.setFrame(1),this.passivate=!1}split(){this.parent.display[this.index]=new wn(this.scene,this.default[0],this.default[1],this.parent,this.id,this.index,this.sprname,this.snap),this.parent.itemList[this.id].quant--;let t=this.parent.itemList[this.id].quant;t<=0?this.parent.display[this.index].shadow():this.parent.display[this.index].select(),this.parent.updateAmountText(this.id,t),this.parent.glassify()}}class Tn extends Phaser.GameObjects.Container{scene;isOpen=!1;itemList;display;window;fwButton;title;tdisplay;highlightIndex=-1;currentIndices=[0,11];coordinates=[[64,64],[148,64],[232,64],[64,148],[148,148],[232,148],[64,232],[148,232],[232,232],[64,316],[148,316],[232,316]];constructor(t,e,i,s){super(t,e,i),this.scene=t,this.itemList=[new xn(0,"rock",s[0],1,["rock","cheap"],["cheap"],"Complimentary Pet Rock","A loving pet rock to cheer up any customer. Works modestly well.",yn.CUSTOMER,"doink"),new xn(1,"sugar",s[1],20,["drug"],["illegal","cool"],"Sugar","A delicious white powder made from plants. Improves working speed a whole bunch!",yn.STATION,"chomp"),new xn(2,"hotdog",s[2],25,["red"],["red"],"Hot Dog","A thick wiener with condiments. This savory snack is great for hot-headed customers.",yn.CUSTOMER,"chomp"),new xn(3,"brocc",s[3],12,["green"],["green"],"Broccoli","Verdant customers will be overjoyed to have this stalk of organic free-range broccoli.",yn.CUSTOMER,"chomp"),new xn(4,"snowglobe",s[4],30,["blue"],["blue"],"Snowglobe","A cute little snowglobe that appeals to frosty-looking customers.",yn.CUSTOMER,"doink"),new xn(5,"usb",s[5],40,["kobold"],["kobold"],"Mini USB","A small piece of technology. A pleasant distraction for small kobolds.",yn.CUSTOMER,"doink"),new xn(6,"pocky",s[6],35,["dino"],["dino"],"Pöcky","Sweet snack made of edible sticks. Dinosaurs love these.",yn.CUSTOMER,"chomp"),new xn(7,"milk",s[7],30,["dragon"],["dragon"],"Fresh Milk","Warm, creamy milk. Grows strong bones. Essential for big dragons.",yn.CUSTOMER,"slurp"),new xn(8,"hourglass",s[8],110,["time","physics","glass"],["physics"],"Hourglass","Place on a workstation to fully turn back the time on a customer's patience. Might make it hard to work though...",yn.STATION,"doink"),new xn(9,"hypnosis",s[9],90,["hypno","horny","kinky","weird","psychic"],["horny","kinky","weird"],"Hypnosis","Uses a state of hypnosis to keep a customer's patience constant. You can't increase it any more either though.",yn.CUSTOMER,"doink"),new xn(10,"polish",s[10],80,["expensive","creamy","musky"],["expensive","musky"],"Extra-Premium Polish","Put this on a station to give scales a wonderful gloss and unique scent. Most customers love it and will give you generous tips!",yn.STATION,"slurp"),new xn(11,"pillowtalk",s[11],50,["horny","soft","cringe"],["horny","cringe"],"Pillow Talk","Instruct a station to talk to a customer alluringly and have them use more services. Good telemarketing is vital!",yn.STATION,"slurp"),new xn(12,"shuriken",s[12],75,["sharp","weeb","ninja","cringe","cool"],["cool","cringe","weeb","sharp"],"Shuriken","Equip a station to allow the stylists to critically strike when grooming! It's some type of mysterious fidget spinner that sharpens mental capabilites. ",yn.STATION,"meme_explosion_sound")],this.display=[],this.window=new Phaser.GameObjects.Image(this.scene,e,i,"invwindow"),this.window.setAlpha(.85),this.window.setOrigin(-1,0),this.add(this.window),this.window.setDepth(1),this.title=this.scene.addText({x:75,y:760,size:30,color:"#FFFFFF",text:""}),this.tdisplay=this.scene.addText({x:75,y:845,size:25,color:"#FFFFFF",text:""}),this.tdisplay.setWordWrapWidth(500),this.add(this.title),this.add(this.tdisplay),this.fwButton=new pn(this.scene,580,500,"","fwbutton",10),this.fwButton.on("click",(()=>{this.scroll()})),this.add(this.fwButton),this.scene.add.existing(this)}unhighlight(){for(let t=0;tt.destroy())),this.display=[];for(let e=this.currentIndices[0];et.destroy())),this.setPosition(-650,0),this.isOpen=!1,this.display=[],this.window.setVisible(!1),this.title.setText(""),this.tdisplay.setText(""),this.currentIndices=[0,11],this.highlightIndex=-1}open(){this.scene.sound.play("t_rustle",{volume:.5}),this.window.setVisible(!0),this.x=0,this.y=0,this.isOpen=!0,this.populate()}returnItem(t){this.itemList[t].quant++,this.isOpen&&this.highlightIndex>=0&&t==this.highlightIndex&&this.updateAmountText(t,this.itemList[t].quant)}buyItem(t,e){this.itemList[t].quant+=e}updateAmountText(t,e){e>0?this.title.setText(this.itemList[t].name+" x"+e):(this.title.setText(""),this.tdisplay.setText(""))}glassify(){this.window.setAlpha(.17),this.title.setAlpha(.2),this.tdisplay.setAlpha(.2),this.fwButton.setAlpha(.2),this.display.forEach((t=>t.setAlpha(.2)))}unglassify(){this.window.setAlpha(.85),this.title.setAlpha(1),this.tdisplay.setAlpha(1),this.fwButton.setAlpha(1),this.display.forEach((t=>t.setAlpha(1)))}scroll(){if(this.currentIndices[1]0&&i.antitags.length>0)for(let e=0;e0&&i.tags.length>0)for(let r=0;r0&&i.antitags.length>0)for(let r=0;r0&&e.tags.length>0)for(let s=0;s0&&e.antitags.length>0)for(let s=0;s{this.selectedStation?(this.emit("upgradeStation",this.selectedStation),this.scene.sound.play("score",{volume:1})):(this.emit("upgradeEmployee",this.selectedEmployee),this.scene.sound.play("score",{volume:1}))})),this.background.setInteractive(),this.background.on("pointerdown",this.close,this),this.panel.setInteractive()}update(t,e){this.buyButton.update(t,e)}selectStation(t){if(this.selectedEmployee=null,this.selectedStation=t,this.titleText.setText(t.stationName),t.x>this.scene.W/2?(this.panel.x=t.x-500,this.panel.y=t.y):(this.panel.x=t.x+500,this.panel.y=t.y),t.upgradeTo&&t.hasBeenPurchased){const e=sn[t.upgradeTo],i=e.taskDuration-t.taskDuration,s=e.admissionFee-t.admissionFee;let r="";r+=`Tier: ${t.stationTier}\n`,t.taskDuration>0&&(r+=`Duration: ${t.taskDuration/1e3}s (${i/1e3}s)\n`),t.admissionFee>0&&(r+=`Revenue: $${t.admissionFee} (+$${s})\n`),this.moneyText.setText(r)}else{let e="";e+=`Tier: ${t.stationTier}\n`,e+=`Duration: ${t.taskDuration/1e3}s\n`,e+=`Revenue: $${t.admissionFee}\n`,this.moneyText.setText(e)}const e=t.upgradeCost<=this.scene.money;this.buyButton.setEnabled(e),this.buyButton.setVisible(!!t.upgradeTo||!t.hasBeenPurchased),this.buyButton.setText(`$${Qr(t.upgradeCost)}`),this.open()}selectEmployee(t){if(this.selectedStation=null,this.selectedEmployee=t,this.titleText.setText(t.employeeName),t.x>this.scene.W/2?(this.panel.x=t.x-500,this.panel.y=t.y):(this.panel.x=t.x+500,this.panel.y=t.y),t.upgradeTo&&t.hasBeenPurchased){const e=qr[t.upgradeTo],i=e.walkSpeed-t.walkSpeed,s=e.workSpeed-t.workSpeed;let r="";r+=`Tier: ${t.employeeTier}\n`,r+=`Walk speed: ${t.walkSpeed} (+${i}s)\n`,r+=`Work speed: ${t.workSpeed} (+${s})\n`,this.moneyText.setText(r),this.buyButton.setVisible(!0)}else{let e="";e+=`Tier: ${t.employeeTier}\n`,e+=`Walk speed: ${t.walkSpeed}\n`,e+=`Work speed: ${t.workSpeed}\n`,this.moneyText.setText(e)}const e=t.upgradeCost<=this.scene.money;this.buyButton.setEnabled(e),this.buyButton.setVisible(!!t.upgradeTo||!t.hasBeenPurchased),this.buyButton.setText(`$${Qr(t.upgradeCost)}`),this.open()}open(){this.alpha<1&&(this.setVisible(!0),this.setAlpha(0),this.scene.tweens.add({targets:this,alpha:1,duration:200}),this.scene.sound.play("flail",{volume:.3}))}close(){this.setVisible(!0),this.setAlpha(1),this.scene.tweens.add({targets:this,alpha:0,duration:200,onComplete:()=>{this.setVisible(!1),this.emit("close")}}),this.scene.sound.play("missLand",{volume:.2})}}class Cn extends Phaser.GameObjects.Container{scene;background;panel;dayText;moneyText;okButton;constructor(t){super(t,0,0),t.add.existing(this),this.scene=t,this.setVisible(!1),this.setAlpha(0),this.background=this.scene.add.rectangle(0,0,t.W,t.H,0,.75),this.background.setOrigin(0),this.add(this.background),this.background.setInteractive(),this.panel=new gn(t,{x:t.W/2,y:t.H/2,width:1e3,height:800,radius:20,color:16777215}),this.add(this.panel),this.dayText=this.scene.addText({x:0,y:-300,size:60,color:"#FFFFFF",text:"Day 1"}),this.dayText.setOrigin(.5),this.dayText.setStroke("black",4),this.panel.add(this.dayText),this.moneyText=this.scene.addText({x:0,y:-100,size:40,color:"#FFFFFF",text:"Money earned: $123\nCustomers served: 12\nAngry customers: 1"}),this.moneyText.setStroke("black",4),this.moneyText.setOrigin(.5),this.panel.add(this.moneyText),this.okButton=new mn(t,0,300,200,100,"OK"),this.panel.add(this.okButton),this.okButton.on("click",(()=>{this.emit("progress")}))}update(t,e){this.okButton.update(t,e)}open(t,e){this.setVisible(!0),this.setAlpha(0),this.scene.tweens.add({targets:this,alpha:1,duration:200});let i="";i+=`Money earned: $${e.money}\n`,i+=`Customers served: ${e.happyCustomers}\n`,i+=`Angry customers: ${e.angryCustomers}`,this.moneyText.setText(i),this.dayText.setText(`Day ${t}`),this.scene.sound.play("flail",{volume:.3})}close(){this.setVisible(!0),this.setAlpha(1),this.scene.tweens.add({targets:this,alpha:0,duration:200,onComplete:()=>{this.setVisible(!1)}}),this.scene.sound.play("missLand",{volume:.2})}}var An=(t=>(t[t.Level1=0]="Level1",t[t.Level2=1]="Level2",t[t.Level3=2]="Level3",t))(An||{}),_n=(t=>(t[t.Empty=0]="Empty",t[t.Wall=1]="Wall",t[t.WaitingSeat=2]="WaitingSeat",t[t.HornAndNails=3]="HornAndNails",t[t.ScalePolish=4]="ScalePolish",t[t.GoldBath=5]="GoldBath",t[t.CashRegister=6]="CashRegister",t[t.EmployeeGray=11]="EmployeeGray",t[t.EmployeeBrown=12]="EmployeeBrown",t[t.EmployeeYellow=13]="EmployeeYellow",t[t.EmployeePurple=14]="EmployeePurple",t[t.EmployeeGreen=15]="EmployeeGreen",t))(_n||{});const Pn=[{id:0,background:"grid1",width:8,height:6,cellSize:190,grid:[[1,1,1,1,1,1,1,1],[1,2,0,11,12,13,4,1],[1,2,0,3,3,0,4,1],[0,0,0,0,0,0,0,1],[1,0,5,5,0,6,0,0],[1,1,1,1,1,1,1,1]],upgradeCost:1e3},{id:1,background:"grid4",width:9,height:7,cellSize:150,grid:[[1,1,1,1,1,1,1,1,1],[1,2,0,11,12,13,14,0,1],[1,2,0,3,3,3,0,4,1],[1,2,0,0,0,0,0,4,1],[0,0,0,5,5,5,0,0,1],[1,0,0,0,0,0,6,0,0],[1,1,1,1,1,1,1,1,1]],upgradeCost:2e3},{id:2,background:"grid2",width:10,height:8,cellSize:138,grid:[[1,1,1,1,1,1,1,1,1,1],[1,2,0,11,12,13,14,15,0,1],[1,2,0,3,0,3,0,4,4,1],[1,2,0,3,0,3,0,0,0,1],[1,2,0,0,0,0,0,4,4,1],[0,0,0,5,5,5,0,0,0,1],[1,0,0,0,0,0,0,6,0,0],[1,1,1,1,1,1,1,1,1,1]]}];var Rn=(t=>(t[t.IntroCutscene1=0]="IntroCutscene1",t[t.IntroCutscene2=1]="IntroCutscene2",t[t.IntroCutscene3=2]="IntroCutscene3",t[t.NextLevelCutscene=3]="NextLevelCutscene",t[t.TheEnd=4]="TheEnd",t))(Rn||{});class Mn extends Phaser.GameObjects.Container{scene;mode;graphics;cutscene;rect;subtitles;button;constructor(t){super(t),this.scene=t,t.add.existing(this),this.graphics=this.scene.make.graphics(),this.graphics.fillStyle(un.White);let e=this.graphics.createGeometryMask();e.setInvertAlpha(!0),this.setMask(e),this.rect=t.add.rectangle(t.CX,t.CY,t.W,t.H,un.Black),this.rect.setInteractive(),this.add(this.rect),this.cutscene=t.add.image(t.CX,t.CY,"cutscene_dummy1"),this.cutscene.setVisible(!1),this.scene.fitToScreen(this.cutscene),this.add(this.cutscene),this.subtitles=t.addText({x:t.CX,y:t.H-100,size:64,color:cn.Black,text:"subtitles"}),this.subtitles.setOrigin(.5),this.subtitles.setPadding(10),this.subtitles.setWordWrapWidth(.7*t.W),this.subtitles.setStroke(cn.White,16),this.add(this.subtitles),this.button=new mn(t,t.W-240,t.H-120,300,120,"OK"),this.add(this.button),this.button.on("click",this.proceed,this),this.setMode(0),this.scene.addEvent(500,(()=>{this.emit("restartLevel")}))}update(t,e){this.button.setScale(1-.1*this.button.holdSmooth)}setMode(t){switch(this.mode=t,t){case 0:case 1:case 2:case 3:this.cutscene.setVisible(!0),this.button.setVisible(!0),this.subtitles.setVisible(!0);break;default:this.cutscene.setVisible(!1),this.button.setVisible(!1),this.subtitles.setVisible(!1)}switch(t){case 0:this.cutscene.setTexture("cutscene_dummy1"),this.subtitles.setText("Somewhere in Chocoland");break;case 1:this.cutscene.setTexture("cutscene_dummy2"),this.subtitles.setText("If only my scales weren't so dirty...");break;case 2:this.cutscene.setTexture("cutscene_dummy3"),this.subtitles.setText("Lets go to the Scale Salon™!");break;case 3:this.cutscene.setTexture("cutscene_dummy4"),this.subtitles.setText("Wow! A new location!");break;case 4:this.subtitles.setText("The End")}}proceed(){switch(this.scene.sound.play("scroll",{volume:.3}),this.mode){case 0:this.setMode(1);break;case 1:this.setMode(2);break;case 2:this.emit("close");break;case 3:this.emit("nextLevel")}}fadeToGame(){this.hideContent(),this.scene.tweens.addCounter({duration:1e3,from:0,to:1,ease:Phaser.Math.Easing.Quintic.InOut,onUpdate:(t,e,i,s)=>{let r=.6*s*this.scene.W;this.redrawMask(this.scene.CX,this.scene.CY,r)},onComplete:()=>{this.setVisible(!1)}})}fadeToIntermission(t){this.setMode(t),this.setVisible(!0),this.scene.tweens.addCounter({duration:1e3,from:1,to:0,ease:Phaser.Math.Easing.Quintic.InOut,onUpdate:(t,e,i,s)=>{let r=.6*s*this.scene.W;this.redrawMask(this.scene.CX,this.scene.CY,r)},onStart:()=>{this.showContent()},onComplete:()=>{}})}redrawMask(t,e,i){this.graphics.clear(),this.graphics.fillCircle(t,e,i)}showContent(){this.scene.tweens.add({targets:[this.button,this.subtitles],alpha:{from:0,to:1},duration:500,ease:Phaser.Math.Easing.Sine.Out,onComplete:()=>{this.button.enabled=!0}})}hideContent(){this.button.enabled=!1,this.scene.tweens.add({targets:[this.button,this.subtitles],alpha:{from:1,to:0},duration:500,ease:Phaser.Math.Easing.Sine.Out})}}var kn={exports:{}};"undefined"!=typeof self&&self;var Ln=kn.exports=(()=>{var t={774:(t,e)=>{var i,s,r,n;n=function(){function t(t){for(var e=t,i=[];e.parent;)i.unshift(e),e=e.parent;return i}var e={search:function(i,s,n,o){i.cleanDirty();var a=(o=o||{}).heuristic||e.heuristics.manhattan,h=o.closest||!1,l=new r((function(t){return t.f})),u=s;for(s.h=a(s,n),i.markDirty(s),l.push(s);l.size()>0;){var c=l.pop();if(c===n)return t(c);c.closed=!0;for(var d=i.neighbors(c),p=0,f=d.length;p0&&(this.content[0]=e,this.bubbleUp(0)),t},remove:function(t){var e=this.content.indexOf(t),i=this.content.pop();e!==this.content.length-1&&(this.content[e]=i,this.scoreFunction(i)0;){var i=(t+1>>1)-1,s=this.content[i];if(!(this.scoreFunction(e){var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};return(()=>{i.r(s),i.d(s,{NavMesh:()=>g,PointQueue:()=>v,RectangleHull:()=>y,buildPolysFromGridMap:()=>x,default:()=>T});var t=i(774),e=i.n(t);class r{x;y;constructor(t=0,e=0){this.x=t,this.y=e}equals(t){return this.x===t.x&&this.y===t.y}angle(t){return Math.atan2(t.y-this.y,t.x-this.x)}distance(t){const e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)}add(t){this.x+=t.x,this.y+=t.y}subtract(t){this.x-=t.x,this.y-=t.y}clone(){return new r(this.x,this.y)}}class n{id;polygon;edges;neighbors;portals;centroid;boundingRadius;weight=1;x=0;y=0;constructor(t,e){this.id=t,this.polygon=e,this.edges=e.edges,this.neighbors=[],this.portals=[],this.centroid=this.calculateCentroid(),this.boundingRadius=this.calculateRadius()}getPoints(){return this.polygon.points}contains(t){return this.polygon.contains(t.x,t.y)||this.isPointOnEdge(t)}calculateCentroid(){const t=new r(0,0),e=this.polygon.points.length;return this.polygon.points.forEach((e=>t.add(e))),t.x/=e,t.y/=e,t}calculateRadius(){let t=0;for(const e of this.polygon.points){const i=this.centroid.distance(e);i>t&&(t=i)}return t}isPointOnEdge({x:t,y:e}){for(const i of this.edges)if(i.pointOnSegment(t,e))return!0;return!1}destroy(){this.neighbors=[],this.portals=[]}toString(){return`NavPoly(id: ${this.id} at: ${this.centroid})`}isWall(){return 0===this.weight}centroidDistance(t){return this.centroid.distance(t.centroid)}getCost(t){return this.centroidDistance(t)}}function o(t,e){const i=e.start,s=e.end,n=function(t,e){const i=e.x-t.x,s=e.y-t.y;return i*i+s*s}(i,s);let o=((t.x-i.x)*(s.x-i.x)+(t.y-i.y)*(s.y-i.y))/n;var a;return(a=o)<0&&(a=0),a>1&&(a=1),o=a,new r(i.x+o*(s.x-i.x),i.y+o*(s.y-i.y))}function a(t,e,i){const s=e.x-t.x,r=e.y-t.y;return(i.x-t.x)*r-s*(i.y-t.y)}function h(t,e,i=1e-4){return Math.abs(t-e)<=i}function l(t,e){let i=t-e;const s=i+Math.PI,r=2*Math.PI;return i=s-Math.floor(s/r)*r,i-=Math.PI,i}function u(t,e,i=1e-4){const s=a(t.start,t.end,e.start),r=a(t.start,t.end,e.end);return!(!h(s,0,i)||!h(r,0,i))}function c(t){return Boolean(t)}class d{path;portals;constructor(){this.portals=[],this.path=[]}push(t,e){void 0===e&&(e=t),this.portals.push({left:t,right:e})}stringPull(){const t=this.portals,e=[];let i=0,s=0,r=0,n=t[0].left,o=t[0].left,h=t[0].right;e.push(n);for(var l=1;l0)){e.push(o),n=o,i=s,o=n,h=n,s=i,r=i,l=i;continue}h=c,r=l}if(a(n,o,u)>=0){if(!(n.equals(o)||a(n,h,u)<0)){e.push(h),n=h,i=r,o=n,h=n,s=i,r=i,l=i;continue}o=u,s=l}}return 0!==e.length&&e[e.length-1].equals(t[t.length-1].left)||e.push(t[t.length-1].left),this.path=e,e}}class p{start;end;left;right;top;bottom;constructor(t,e,i,s){this.start=new r(t,e),this.end=new r(i,s),this.left=Math.min(t,i),this.right=Math.max(t,i),this.top=Math.min(e,s),this.bottom=Math.max(e,s)}pointOnSegment(t,e){return t>=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom&&this.pointOnLine(t,e)}pointOnLine(t,e){return(t-this.left)*(this.bottom-this.top)==(this.right-this.left)*(e-this.top)}}class f{edges;points;isClosed;constructor(t,e=!0){this.isClosed=e,this.points=t,this.edges=[];for(let i=1;i{const e=t.map((t=>new r(t.x,t.y)));return new f(e)}));this.navPolygons=s.map(((t,e)=>new n(e,t))),this.calculateNeighbors(),this.graph=new class{nodes;grid=[];constructor(t){this.nodes=t,this.init()}neighbors(t){return t.neighbors}navHeuristic(t,e){return t.centroidDistance(e)}destroy(){this.cleanDirty(),this.nodes=[]}init=e().Graph.prototype.init.bind(this);cleanDirty=e().Graph.prototype.cleanDirty.bind(this);markDirty=e().Graph.prototype.markDirty.bind(this);toString=e().Graph.prototype.toString.bind(this)}(this.navPolygons)}getPolygons(){return this.navPolygons}destroy(){this.graph.destroy();for(const t of this.navPolygons)t.destroy();this.navPolygons=[]}isPointInMesh(t){return this.navPolygons.some((e=>e.contains(t)))}findClosestMeshPoint(t,e=Number.POSITIVE_INFINITY){let i=e,s=null,r=null;for(const n of this.navPolygons){if(n.contains(t)){i=0,s=n,r=t;break}const e=n.boundingRadius;if(n.centroid.distance(t)-e0)for(const e of this.navPolygons)if(n=e.boundingRadius+this.meshShrinkAmount,s=e.centroid.distance(c),s<=n){const{distance:t}=this.projectPointToPolygon(c,e);t<=this.meshShrinkAmount&&t0)for(const e of this.navPolygons)if(n=e.boundingRadius+this.meshShrinkAmount,s=e.centroid.distance(u),s<=n){const{distance:t}=this.projectPointToPolygon(u,e);t<=this.meshShrinkAmount&&te.boundingRadius+t.boundingRadius))for(const i of e.edges)for(const s of t.edges){if(!u(i,s))continue;const r=this.getSegmentOverlap(i,s);if(!r)continue;e.neighbors.push(t),t.neighbors.push(e);const[n,o]=r;let a=e.centroid.angle(i.start),h=e.centroid.angle(r[0]),c=e.centroid.angle(r[1]),d=l(a,h),f=l(a,c);de.point.x?1:t.point.ye.point.y?1:0}));const s=i[0].line===i[1].line,r=i[1].point.equals(i[2].point);return s||r?null:[i[1].point,i[2].point]}projectPointToPolygon(t,e){let i=null,s=Number.MAX_VALUE;for(const r of e.edges){const e=o(t,r),n=t.distance(e);(null===i||n{e.forEach(((e,s)=>{t(s,i,this.map[i][s])}))}))}isInGrid(t,e){return t>=0&&t=0&&ee.x===t.x&&e.y===t.y))}containsAllPoints(t){return t.every((t=>this.containsPoint(t)))}getIndexOfPoint(t){return this.data.findIndex((e=>e.x==t.x&&e.y==t.y))}removePoint(t){const e=this.getIndexOfPoint(t);-1!==e&&this.data.splice(e,1)}removePoints(t){t.forEach((t=>this.removePoint(t)))}}class y{x;y;width;height;constructor(t,e,i,s){this.x=t,this.y=e,this.width=i,this.height=s}setPosition(t,e){this.x=t,this.y=e}setSize(t,e){this.width=t,this.height=e}set(t,e,i,s){this.setPosition(t,e),this.setSize(i,s)}get left(){return this.x}set left(t){this.x=t}get top(){return this.y}set top(t){this.y=t}get right(){return this.x+this.width}set right(t){this.width=t-this.x}get bottom(){return this.y+this.height}set bottom(t){this.height=t-this.top}get center(){return{x:(this.x+this.right)/2,y:(this.y+this.bottom)/2}}doesOverlap(t){return!(this.rightt.right||this.y>t.bottom||this.bottom=e||r>=i)throw new Error(`navmesh: Unsupported shrink amount ${r}. Must be less than tile width and height.`);let o=function(t){const e=new v,{tileWidth:i,tileHeight:s}=t,r=[];let n;t.forEach(((i,s)=>{t.isWalkable(i,s)&&e.add({x:i,y:s})}));const o=(t,i)=>{const s=((t,e)=>{const{top:i,left:s,right:r,bottom:n}=t;let o=[];if("top"===e)for(let a=s;a<=r-1;a++)o.push({x:a,y:i});else if("bottom"===e)for(let a=s;a<=r-1;a++)o.push({x:a,y:n});else if("left"===e)for(let a=i;a<=n-1;a++)o.push({x:s,y:a});else{if("right"!==e)throw new Error(`Invalid dir "${e}" for extend`);for(let t=i;t<=n-1;t++)o.push({x:r,y:t})}return o})(t,i),r=e.containsAllPoints(s);return r&&(((t,e)=>{if("top"===e)t.y-=1;else if("bottom"===e)t.bottom+=1;else if("left"===e)t.x-=1;else{if("right"!==e)throw new Error(`Invalid dir "${e}" for extend`);t.right+=1}})(t,i),e.removePoints(s)),r};for(;!e.isEmpty();){const t=e.shift();if(void 0===t)break;n=new y(t.x,t.y,1,1);let a=!0;for(;a;){const t=o(n,"top"),e=o(n,"right"),i=o(n,"left"),s=o(n,"bottom");a=t||s||i||e}n.setPosition(n.x*i,n.y*s),n.setSize(n.width*i,n.height*s),r.push(n)}return r}(n);return r>0&&(o=function(t,e,i){const{tileHeight:s,tileWidth:r}=e,n=[],o=[];t.forEach(((t,a)=>{const h=s,l=r,u=e.getGridX(t.x),c=e.getGridY(t.y),d=e.getGridY(t.bottom),p=e.getGridX(t.right),f=w(t,e,i,r,s);if(t.left>=t.right||t.top>=t.bottom)return;o.push(t);const g=[],m=[],v=(t,e,i,s)=>{const r=new y(t,e,i,s);i>s?m.push(r):g.push(r)};if(f.left){const s=t.left-i;let r=c,n=r-1;for(let t=c;t{g.forEach((e=>{t.doesOverlap(e)&&(t.y>e.y?e.height-=i:e.top+=i)}))})),[...m,...g].forEach((t=>{w(t,e,i,r,s),t.left>=t.right||t.top>=t.bottom||n.push(t)}))}));for(let a=0;at.toPoints()))}function w(t,e,i,s,r){const n=i,o=s/2,a=r/2,{left:h,top:l,right:u,bottom:c}=t,d={left:!1,right:!1,top:!1,bottom:!1,topLeft:e.isBlockedAtWorld(h-n,l-n),topRight:e.isBlockedAtWorld(u+n,l-n),bottomLeft:e.isBlockedAtWorld(h-n,c+n),bottomRight:e.isBlockedAtWorld(u+n,c+n)};for(let f=l+a;ft.height?p.left=!0:p.top=!0),!d.topRight||d.right||d.top||(t.width>t.height?p.right=!0:p.top=!0),!d.bottomLeft||d.bottom||d.left||(t.width>t.height?p.left=!0:p.bottom=!0),!d.bottomRight||d.bottom||d.right||(t.width>t.height?p.right=!0:p.bottom=!0),p.left&&(t.x+=i,t.width-=i),p.top&&(t.y+=i,t.height-=i),p.right&&(t.width-=i),p.bottom&&(t.height-=i),p}const T=g})(),s})();const On=e(Ln),Fn=!0,Dn=!1,In=[[Fn,Dn,Dn,Dn,Dn,Dn,Fn],[Fn,Dn,Dn,Dn,Dn,Dn,Fn],[Fn,Dn,Dn,Dn,Dn,Dn,Fn],[Fn,Dn,Dn,Dn,Dn,Dn,Fn],[Fn,Dn,Dn,Dn,Dn,Dn,Fn],[Fn,Dn,Dn,Dn,Dn,Dn,Fn],[Fn,Dn,Dn,Dn,Dn,Dn,Fn]],Bn=[[Dn,Dn,Dn,Dn,Dn,Dn,Dn],[Dn,Dn,Dn,Dn,Dn,Dn,Dn],[Dn,Dn,Dn,Dn,Dn,Dn,Dn],[Dn,Dn,Dn,Fn,Fn,Fn,Fn],[Dn,Dn,Dn,Dn,Dn,Dn,Dn],[Dn,Dn,Dn,Dn,Dn,Dn,Dn],[Dn,Dn,Dn,Dn,Dn,Dn,Dn]];function Nn(t,e){const i=function(t,e){return new Array(t.height*e).fill(!0).map((()=>new Array(t.width*e).fill(!0)))}(t,7);for(let s=0;s0&&t{this.scroll()})),this.add(this.fwButton),this.scene.add.existing(this),this.buy1=new Yn(this.scene,390,602,"Buy 1","buybutton",this,1,20),this.buyall=new Yn(this.scene,390,690,"Buy All","buybutton",this,-99,20),this.buy5=new Yn(this.scene,520,602,"Buy 5","buybutton",this,5,20),this.buy10=new Yn(this.scene,520,690,"Buy 10","buybutton",this,10,20),this.buy1.on("click",(()=>{this.buy(this.buy1.mode)})),this.buy5.on("click",(()=>{this.buy(this.buy5.mode)})),this.buy10.on("click",(()=>{this.buy(this.buy10.mode)})),this.buyall.on("click",(()=>{this.buy(this.buyall.mode)})),this.add(this.buy1),this.add(this.buy5),this.add(this.buy10),this.add(this.buyall),this.disableAllBuyButtons(),this.pricedisp=this.scene.addText({x:80,y:594,size:24,color:"#FFFFFF",text:""}),this.pricedisp.setVisible(!1),this.add(this.pricedisp),this.myinvdisp=this.scene.addText({x:80,y:682,size:24,color:"#FFFFFF",text:""}),this.myinvdisp.setVisible(!1),this.add(this.myinvdisp)}unhighlight(){for(let t=0;t0||-99==t){-99==t&&(e=this.itemList[this.highlightIndex].quant);let i=e*this.itemList[this.highlightIndex].price;if(i>this.scene.money)return void this.scene.sound.play("fail",{volume:.5});this.scene.buyItem(this.highlightIndex,e),this.scene.removeMoney(i),this.itemList[this.highlightIndex].quant-=e,this.itemList[this.highlightIndex].quant<=0?(this.itemList[this.highlightIndex].quant=0,this.display[this.highlightIndex].shadow(),this.updateButtons(this.highlightIndex),this.hideInvDisp(),this.clearPriceDisp(),this.clearTextDisplays()):(this.display[this.highlightIndex].updateAmt(this.itemList[this.highlightIndex].quant),this.updateButtons(this.highlightIndex),this.updateInvDisp(this.highlightIndex),this.updatePriceDisp(t))}}clearTextDisplays(){this.title.setVisible(!1),this.tdisplay.setVisible(!1)}updateInvDisp(t){this.myinvdisp.setVisible(!0),this.myinvdisp.setText("Owned: x"+this.scene.getAmountOwned(t))}hideInvDisp(){this.myinvdisp.setVisible(!1)}clearInvDisp(){this.myinvdisp.setText(""),this.myinvdisp.setVisible(!1)}updatePriceDisp(t){this.pricedisp.setColor("White");let e=t*this.itemList[this.highlightIndex].price;if(this.highlightIndex>0){if(-99==t)e=this.itemList[this.highlightIndex].quant*this.itemList[this.highlightIndex].price,this.pricedisp.setVisible(!0);else{if(!(t>0))return void this.pricedisp.setVisible(!1);this.pricedisp.setVisible(!0)}e>this.scene.money&&this.pricedisp.setColor("Red"),this.pricedisp.setText("Total: $"+e)}}clearPriceDisp(){this.pricedisp.setColor("White"),this.pricedisp.setText(""),this.pricedisp.setVisible(!1)}updateButtons(t){let e=this.itemList[t].quant;this.enableAllBuyButtons(),e<=0?this.disableAllBuyButtons():e<5?(this.disableButton(this.buy5),this.disableButton(this.buy10)):e<10&&this.disableButton(this.buy10)}updateInvText(t){this.myinvdisp.setText("Owned: x"+this.scene.getAmountOwned(t))}disableButton(t){t.turnOff(),t.setVisible(!1)}enableAllBuyButtons(){this.buy1.turnOn(),this.buy1.setVisible(!0),this.buy5.turnOn(),this.buy5.setVisible(!0),this.buy10.turnOn(),this.buy10.setVisible(!0),this.buyall.turnOn(),this.buyall.setVisible(!0)}disableAllBuyButtons(){this.buy1.turnOff(),this.buy1.setVisible(!1),this.buy5.turnOff(),this.buy5.setVisible(!1),this.buy10.turnOff(),this.buy10.setVisible(!1),this.buyall.turnOff(),this.buyall.setVisible(!1)}populate(){let t=0;for(let e=this.currentIndices[0];et.destroy())),this.display=[];for(let e=this.currentIndices[0];et.destroy())),this.setPosition(-650,0),this.isOpen=!1,this.display=[],this.window.setVisible(!1),this.title.setText(""),this.tdisplay.setText(""),this.currentIndices=[0,8],this.highlightIndex=-1,this.clearInvDisp(),this.disableAllBuyButtons(),this.clearPriceDisp()}open(){this.scene.sound.play("t_rustle",{volume:.5}),this.window.setVisible(!0),this.x=0,this.y=0,this.isOpen=!0,this.populate(),this.clearInvDisp(),this.disableAllBuyButtons(),this.clearPriceDisp()}returnItem(t){this.itemList[t].quant++,this.isOpen&&this.highlightIndex>=0&&t==this.highlightIndex&&this.updateAmountText(t,this.itemList[t].quant)}updateAmountText(t,e){e>0?this.title.setText(this.itemList[t].name):(this.title.setText(""),this.tdisplay.setText(""))}scroll(){if(this.currentIndices[1]=0;s--)(o=r[s])instanceof e&&(o.destroy(),io(r,s));else{s=0;for(var r,n=(r=t.postPipelines).length;s{s.width=e*t}));for(let r of Lr)this.load.image(r.key,r.path);for(let r of Or)this.load.spritesheet(r.key,r.path,{frameWidth:r.width,frameHeight:r.height});for(let r of Fr)this.load.audio(r.key,r.path)}create(){this.fade(!0,100,0),this.addEvent(100,(()=>{this.scene.start("GameScene")}))}},class extends tt{sky;background;foreground;character;credits;title;subtitle;tap;version;musicTitle;select;select2;isStarting;constructor(){super({key:"TitleScene"})}create(){this.fade(!1,200,0),this.sky=this.add.image(this.CX,this.CY,"title_sky"),this.containToScreen(this.sky),this.background=this.add.image(this.CX,.9*this.CY,"title_background"),this.containToScreen(this.background),this.foreground=this.add.image(this.CX,this.CY,"title_foreground"),this.containToScreen(this.foreground),this.character=this.add.image(this.CX,this.CY,"title_character"),this.containToScreen(this.character),this.background.setVisible(!1),this.background.setAlpha(0),this.background.y+=4e3,this.foreground.y+=1e3,this.character.y+=1e3,this.title=this.addText({x:.25*this.W,y:.7*this.H,size:160,color:"#000",text:"Game Title"}),this.title.setOrigin(.5),this.title.setStroke("#FFF",8),this.title.setPadding(2),this.title.setVisible(!1),this.title.setAlpha(0),this.subtitle=this.addText({x:.25*this.W,y:.87*this.H,size:120,color:"#000",text:"Tap to start"}),this.subtitle.setOrigin(.5),this.subtitle.setStroke("#FFF",3),this.subtitle.setPadding(2),this.subtitle.setVisible(!1),this.subtitle.setAlpha(0),this.tap=this.addText({x:this.CX,y:this.CY,size:140,color:"#000",text:"Tap to focus"}),this.tap.setOrigin(.5),this.tap.setAlpha(-1),this.tap.setStroke("#FFF",4),this.tap.setPadding(2),this.version=this.addText({x:this.W,y:this.H,size:40,color:"#000",text:Yr}),this.version.setOrigin(1,1),this.version.setAlpha(-1),this.version.setStroke("#FFF",4),this.version.setPadding(2),this.credits=this.add.container(0,0),this.credits.setVisible(!1),this.credits.setAlpha(0);let t=this.addText({x:.65*this.W,y:0,size:40,color:"#c2185b",text:Gr});t.setStroke("#FFF",10),t.setPadding(2),t.setLineSpacing(0),this.credits.add(t);let e=this.addText({x:.85*this.W,y:0,size:40,color:"#c2185b",text:"\n\nrole\nrole\nrole"});e.setStroke("#FFF",10),e.setPadding(2),e.setLineSpacing(0),this.credits.add(e),this.musicTitle||(this.musicTitle=new Xr(this,"m_first",{volume:.4}),this.musicTitle.on("bar",this.onBar,this),this.musicTitle.on("beat",this.onBeat,this)),this.musicTitle.play(),this.input.keyboard?.addKey(Phaser.Input.Keyboard.KeyCodes.SPACE).on("down",this.progress,this),this.input.on("pointerdown",(t=>{0==t.button&&this.progress()}),this),this.isStarting=!1}update(t,e){this.background.visible?(this.background.y+=.02*(this.CY-this.background.y),this.foreground.y+=.025*(this.CY-this.foreground.y),this.character.y+=.02*(this.CY-this.character.y),this.background.alpha+=.03*(1-this.background.alpha),this.character.scaleX=Math.sin(3*t/1e3),this.title.alpha+=.02*((this.title.visible?1:0)-this.title.alpha),this.subtitle.alpha+=.02*((this.subtitle.visible?1:0)-this.subtitle.alpha),this.version.alpha+=.02*((this.version.visible?1:0)-this.version.alpha),this.credits.visible&&(this.credits.alpha+=.02*(1-this.credits.alpha))):(this.tap.alpha+=.01*(1-this.tap.alpha),this.musicTitle.seek>0&&(this.background.setVisible(!0),this.tap.setVisible(!1))),this.subtitle.setScale(1+.02*Math.sin(5*t/1e3)),this.isStarting&&this.subtitle.setAlpha(.6+.4*Math.sin(50*t/1e3))}progress(){this.background.visible?this.subtitle.visible?this.isStarting||(this.sound.play("t_rustle",{volume:.3}),this.isStarting=!0,this.flash(3e3,16777215,.6),this.addEvent(1e3,(()=>{this.fade(!0,1e3,0),this.addEvent(1050,(()=>{this.musicTitle.stop(),this.scene.start("GameScene")}))}))):(this.title.setVisible(!0),this.title.setAlpha(1),this.subtitle.setVisible(!0),this.subtitle.setAlpha(1)):this.onBar(1)}onBar(t){t>=2&&this.title.setVisible(!0),t>=4&&(this.subtitle.setVisible(!0),this.credits.setVisible(!0))}onBeat(t){}},class extends tt{background;board;stations;employees;customers;ui;intermission;upgradeOverlay;summaryOverlay;paused=!1;browsing=!1;inventory;shopinventory;invButton;iHandler;activeItem;tArray;shopClicker;ownerImage;shopSpeech;shopBubble;shopText;noivern=["Like I said, the prices are absolutely fair!","My old job? I used to be a turret engineer~","If you encounter a special customer, use clues to figure out their needs!","Have you heard of widgets? I might have one in stock.","It's alawys so hot in the dragonlands...","Different customers will have different preferences!","That one's popular! Why not pick up a few for your salon?","Some items can be only given to customers. Others are only equipped at stations.","Happy customers tip more! Give them things they like and tend to them quickly!","Don't forget to upgrade your stations! A well equipped salon succeeds.","My favorite items? A tasty hot dog and a box of milk! And I love the widgets too!","How's the weather been lately? I think it's lovely outside.","I saw lots of happy people by your salon! I hope it's doing well.","Buy a lot and buy often! Think of it as an investment!"];viewedShopTutorial=!1;shopTutorialText=["Hey, going to leave already? Click the left tab and drop by!","First time? Welcome to my little otter shop!","You can pick up all kinds of snacks, trinkets, and widgets here!","They might be of help for your customers and stations!","I left some notes in the descriptions too, if you need any help.","And you can hit the brown arrow to browse the other shelves!","The prices are totally fair, but make sure you have enough money!","Once you're done, you can hit the tab again to close the shop!","Oh, and it works for your inventory too during the day!","I'll look forward to your visits!"];shopTutorialFrames=[0,0,1,1,2,0,2,0,0,1];shopTutorialIndex=1;shopTutorialInitialized=!1;tutorialTimer=0;canProceed=[!1,!1,!1];dinonugget=0;shopOpenCheck=!1;shopOwnerState=-1;proceedButton;hitRectangle;cycleCount=0;effects;navmesh;state=0;level=An.Level1;day=0;dayDuration=6e4;timeOfDay=0;customerSpawnTimer;customerSpawnPool=[];money=500;dailyStats;savedPurchases;constructor(){super({key:"GameScene"})}create(){this.fade(!1,200,0),this.input.addPointer(2),this.input.dragDistanceThreshold=10,this.dailyStats={money:0,happyCustomers:0,angryCustomers:0},this.savedPurchases={stations:[en.WaitingSeatTier1,en.HornAndNailsTier1,en.ScalePolishTier1,en.CashRegister],employees:[jr.RaccoonGrayTier1]},this.background=this.add.image(0,0,"grid1"),this.background.setOrigin(0),this.fitToScreen(this.background),this.board=new Wr(this,this.CX,this.CY,6,4,100),this.stations=[],this.employees=[],this.customers=[],this.ui=new vn(this),this.ui.setDepth(1e3),this.ui.setTimeOfDay(1),this.ui.on("nextDay",(()=>{this.inventory.isOpen&&this.toggleInventory(),this.startDay()})),this.ui.on("nextLevel",(()=>{const t=Pn[this.level].upgradeCost??0;this.money>=t&&(this.money-=t,this.ui.setMoney(this.money),this.inventory.isOpen&&this.toggleInventory(),this.intermission.fadeToIntermission(Rn.NextLevelCutscene))})),this.iHandler=new Sn(this),this.intermission=new Mn(this),this.intermission.setDepth(1e4),this.intermission.on("close",(()=>{this.intermission.fadeToGame()})),this.intermission.on("nextLevel",(()=>{const t={[An.Level1]:An.Level2,[An.Level2]:An.Level3,[An.Level3]:An.Level1}[this.level];this.loadLevel(t),this.intermission.fadeToGame()})),this.effects=[],this.inventory=new Tn(this,-650,0,[99,5,2,2,2,0,0,0,0,0,0,0,0]),this.shopinventory=new zn(this,-650,0,[99,5,5,5,5,5,5,5,1,1,1,1,1]),this.shopinventory.setDepth(2500),this.invButton=new bn(this,64,540,"invbutton"),this.invButton.setScale(.5),this.invButton.setAlpha(.85),this.add.existing(this.invButton),this.invButton.on("click",(()=>{this.togglePanel()})),this.inventory.setDepth(800),this.invButton.setDepth(900),this.invButton.setAlpha(.75),this.activeItem=new wn(this,-500,-500,this.inventory,-1,-100,"blankspr",yn.STATION),this.upgradeOverlay=new En(this),this.upgradeOverlay.setDepth(1010),this.upgradeOverlay.on("upgradeStation",(t=>{this.money-=t.upgradeCost,this.ui.setMoney(this.money),t.upgrade(),this.upgradeOverlay.close(),this.updateSavedPurchases()})),this.upgradeOverlay.on("upgradeEmployee",(t=>{this.money-=t.upgradeCost,this.ui.setMoney(this.money),t.upgrade(),this.upgradeOverlay.close(),this.updateSavedPurchases()})),this.upgradeOverlay.on("close",(()=>{this.sortDepth()})),this.summaryOverlay=new Cn(this),this.summaryOverlay.setDepth(1020),this.summaryOverlay.on("progress",(()=>{this.summaryOverlay.setVisible(!1)})),this.shopClicker=new Vr(this,1460,540),this.add.existing(this.shopClicker),this.ownerImage=new Phaser.GameObjects.Sprite(this,0,0,"otter"),this.ownerImage.setOrigin(.5,.5),this.shopClicker.add(this.ownerImage),this.shopClicker.bindInteractive(this.ownerImage),this.shopClicker.on("click",(()=>this.proceedShopTutorial())),this.ownerImage.input.enabled=!1,this.shopSpeech=new Phaser.GameObjects.Container(this,1010,450),this.add.existing(this.shopSpeech),this.shopBubble=new Phaser.GameObjects.Image(this,0,0,"bubble"),this.shopBubble.setScale(-3.5,2.5),this.shopBubble.setOrigin(.5,.5),this.shopSpeech.add(this.shopBubble),this.shopClicker.setDepth(1050),this.shopSpeech.setDepth(1045),this.shopText=this.addText({x:0,y:-20,size:40,color:"#000000",text:""}),this.shopText.setWordWrapWidth(380),this.shopText.setOrigin(.5,.5),this.shopSpeech.add(this.shopText),this.proceedButton=new Vr(this,960,540),this.hitRectangle=new Phaser.GameObjects.Rectangle(this,0,0,1980,1100,0),this.hitRectangle.setOrigin(.5,.5),this.hitRectangle.setAlpha(.001),this.proceedButton.add(this.hitRectangle),this.proceedButton.bindInteractive(this.hitRectangle),this.add.existing(this.proceedButton),this.proceedButton.setDepth(5e3),this.proceedButton.setVisible(!1),this.shopClicker.setVisible(!1),this.shopSpeech.setVisible(!1),this.loadLevel(An.Level1),this.setState(2),this.tArray=[],this.pauseInvButton()}update(t,e){if(this.viewedShopTutorial&&2!=this.shopOwnerState||this.updateShopTutorial(t,e),this.browsing||this.paused)return this.activeItem.update(t,e),void(3==this.activeItem.state&&this.snapItem());this.stations.forEach((i=>i.update(t,e))),this.employees.forEach((i=>i.update(t,e))),this.customers.forEach((i=>i.update(t,e))),this.updateEffects(t,e),this.ui.update(t,e),this.intermission.update(t,e),this.summaryOverlay.update(t,e),this.activeItem.update(t,e),3==this.activeItem.state&&this.snapItem(),this.upgradeOverlay.update(t,e),1===this.state&&this.sortDepth()}updateEffects(t,e){for(let i=this.effects.length-1;i>=0;i--){if(null==this.effects[i])return void console.log("NULL INSTANCE EFFECT");this.effects[i].update(e,t),this.effects[i].deleteFlag&&(this.effects[i].destroy(),this.effects.splice(i,1))}}setState(t){this.state=t;const e=2===t;this.ui.setShoppingMode(e);this.stations.forEach((t=>{t.setClickable(e),t.setAlpha(t.hasBeenPurchased?1:e?.2:0)})),this.employees.forEach((t=>{t.setClickable(e),t.setAlpha(t.hasBeenPurchased?1:e?.2:0)})),e&&this.day>0&&this.summaryOverlay.open(this.day,this.dailyStats)}loadLevel(t){this.level=t;const e=Pn[t];this.background.setTexture(e.background),this.board.resize(e.width,e.height,e.cellSize),this.stations.forEach((t=>t.destroy())),this.employees.forEach((t=>t.destroy())),this.customers.forEach((t=>t.destroy())),this.stations=[],this.employees=[],this.customers=[];for(let i=0;i{const e=this.stations.find((e=>!e.hasBeenPurchased&&e.stationType===sn[t].type));e&&e.forceUpgrade(t)})),this.savedPurchases.employees.forEach((t=>{const e=this.employees.find((e=>!e.hasBeenPurchased&&e.employeeType===qr[t].type));e&&e.forceUpgrade(t)})),this.navmesh=Nn(this.board,Pn[t]),this.ui.setLevel(e),this.ui.setMoney(this.money),this.ui.setDay(this.day),this.setState(2)}startDay(){if(this.cycleCount>0){if(!this.viewedShopTutorial)return void this.beginShopTutorial(0)}else this.shopinventory.isOpen&&this.toggleShop();this.setState(1),this.day+=1,this.ui.setDay(this.day),this.dailyStats={money:0,happyCustomers:0,angryCustomers:0},this.stations.forEach((t=>t.setDepth(0))),this.employees.forEach((t=>t.setDepth(0))),this.customerSpawnTimer&&this.customerSpawnTimer.destroy(),this.updateSpawnPool(),this.tweens.add({targets:this,duration:this.dayDuration,timeOfDay:{from:0,to:100},onStart:()=>{this.attemptSpawnCustomer(),this.sound.play("endday",{volume:.2})},onUpdate:t=>{this.ui.setTimeOfDay(this.timeOfDay/100)},onComplete:()=>{this.sound.play("endday",{volume:.2})}})}endDay(){this.customerSpawnTimer.destroy(),this.resumeInvButton(),this.cycleCount++,this.setState(2)}canSpawnCustomer(t){return 1==this.state&&this.timeOfDay<100&&this.getAvailableWaitingSeat(t)}attemptSpawnCustomer(){let t=4e3;const e=Phaser.Math.RND.pick(this.customerSpawnPool);if(this.canSpawnCustomer(e)){this.addCustomer(e);let i=Math.max(2e3,6e3-400*this.day),s=i+1e4-400*this.day;t=Phaser.Math.Between(i,s),console.log(`Customer spawned. Waiting ${t} ms`)}else console.log(`Customer failed to spawn. Waiting ${t} ms`);this.customerSpawnTimer=this.time.addEvent({delay:t,callback:this.attemptSpawnCustomer,callbackScope:this})}updateSpawnPool(){this.customerSpawnPool=[],this.stations.forEach((t=>{t.hasBeenPurchased&&(t.stationTier>=1&&(this.customerSpawnPool.push(nn.SmallRed),this.customerSpawnPool.push(nn.SmallAqua),this.customerSpawnPool.push(nn.SmallGreen)),t.stationTier>=2&&(this.customerSpawnPool.push(nn.MediumRed),this.customerSpawnPool.push(nn.MediumAqua),this.customerSpawnPool.push(nn.MediumGreen)),t.stationTier>=3&&(this.customerSpawnPool.push(nn.LargeRed),this.customerSpawnPool.push(nn.LargeAqua),this.customerSpawnPool.push(nn.LargeGreen)))})),console.log("Spawn pool:",this.customerSpawnPool)}updateSavedPurchases(){this.savedPurchases.stations=this.stations.filter((t=>t.hasBeenPurchased)).map((t=>t.stationId)),this.savedPurchases.employees=this.employees.filter((t=>t.hasBeenPurchased)).map((t=>t.employeeId))}addStation(t,e,i){const s=this.board.gridToCoord(t,e),r=new fn(this,s.x,s.y,i,this.board.size);this.stations.push(r),r.on("taskend",(()=>{const t=r.currentCustomer,e=t?.currentEmployee;t&&e&&(t.setAction(!1),t.setEmployee(null),t.unlockTimer(),e.setAction(!1),e.setCustomer(null),t.tasksCompleted+=1,t.moneySpent+=r.admissionFee,t.nextActivity())})),r.on("click",(()=>{2!==this.state||this.upgradeOverlay.visible||(this.upgradeOverlay.selectStation(r),this.sortDepth(),r.setDepth(2e3))}))}openInventory(){this.browsing=!0,this.pauseAllClickables(),this.tweens.pauseAll()}closeInventory(){this.browsing=!1,this.resumeAllClickables(),this.tweens.resumeAll()}addEmployee(t,e,i){const s=this.board.gridToCoord(t,e),r=new Kr(this,s.x,s.y,i,this.board.size);this.employees.push(r),r.on("walkend",(()=>{const t=r.currentCustomer;t&&t.currentStation?(t.setAction(!0),r.setAction(!0),t.currentStation.startTask()):r.setCustomer(null)})),r.on("click",(()=>{2!==this.state||this.upgradeOverlay.visible||(this.upgradeOverlay.selectEmployee(r),this.sortDepth(),r.setDepth(2e3))}))}addCustomer(t){const e=new dn(this,0,0,t,this.board.size);this.customers.push(e);const i=this.getAvailableWaitingSeat(t);i?(i.setCustomer(e),e.setStation(i),this.moveCustomerToSeat(e,i)):console.error("Whoops"),e.on("seated",(()=>{this.setCustomerItinerary(e)})),e.on("pickup",(()=>{e.currentStation})),e.on("drag",(()=>{let t=this.getClosestStation(e);t&&e.snapTo(t.x,t.y)})),e.on("drop",(()=>{let t=this.getClosestStation(e);t?(e.currentStation&&(e.currentStation.setCustomer(null),e.setStation(null)),t.setCustomer(e),e.setStation(t)):e.currentStation?e.snapTo(e.currentStation.x,e.currentStation.y):e.snapTo(e.lastX,e.lastY)})),e.on("click",(()=>{e.currentStation?.stationType==e.requestedStation&&this.callEmployee(e)})),e.on("offscreen",(()=>{this.customers=this.customers.filter((t=>t!==e)),e.destroy(),1==this.state&&this.timeOfDay>=100&&0===this.customers.length&&this.endDay()})),e.on("pay",(t=>{this.money+=t,this.dailyStats.money+=t,this.dailyStats.happyCustomers+=1,this.ui.setMoney(this.money)})),e.on("tip",(t=>{this.money+=t,this.dailyStats.money+=t,this.ui.setMoney(this.money)})),e.on("angry",(()=>{this.dailyStats.angryCustomers+=1}))}getAvailableWaitingSeat(t){return this.stations.find((t=>t.stationType===$r.WaitingSeat&&t.hasBeenPurchased&&!t.currentCustomer))}getClosestStation(t){let e=null,i=1/0;return this.stations.forEach((s=>{const r=Phaser.Math.Distance.Between(t.dragX,t.dragY,s.x,s.y);s.hasBeenPurchased&&!s.currentCustomer&&r{const n=Phaser.Math.Distance.Between(t,e,r.x,r.y);r.hasBeenPurchased&&!r.currentCustomer&&nthis.board.navGridToCoord(t.x,t.y))),i=new Phaser.Curves.Path;i.moveTo(e.x,e.y),t.forEach((t=>i.lineTo(t.x,t.y))),e.walk(i)}else{console.error("No path found");const t=this.board.navGridToCoord(r.x,r.y);this.add.ellipse(t.x,t.y,30,30,16711680);const s=new Phaser.Curves.Path;s.moveTo(e.x,e.y),s.lineTo(i.x-this.board.size/3,i.y-this.board.size/3),e.walk(s)}}else this.sound.play("squish1",{volume:.6})}moveCustomerToSeat(t,e){const i=Pn[this.level].height-3,s=this.board.gridToCoord(0,i),r=this.board.coordToNav(s.x,s.y),n=this.board.coordToNav(e.x,e.y);t.snapTo(s.x-2*this.board.size,s.y,!0);const o=this.navmesh.findPath(r,n);if(o){const e=o.map((t=>this.board.navGridToCoord(t.x,t.y))),i=new Phaser.Curves.Path;i.moveTo(t.x,t.y),e.forEach((t=>i.lineTo(t.x,t.y))),t.walk(i)}else{const i=new Phaser.Curves.Path;i.moveTo(t.x,t.y),i.lineTo(e.x,e.y)}}moveCustomerToEntrance(t){const e=Pn[this.level].height-3,i=this.board.gridToCoord(0,e),s=this.board.coordToNav(i.x,i.y),r=this.board.coordToNav(t.x,t.y),n=this.navmesh.findPath(r,s);if(n){const e=n.map((t=>this.board.navGridToCoord(t.x,t.y))),s=new Phaser.Curves.Path;s.moveTo(t.x,t.y),e.forEach((t=>s.lineTo(t.x,t.y))),s.lineTo(-this.board.size,i.y),t.walk(s)}else{const e=new Phaser.Curves.Path;e.moveTo(t.x,t.y),e.lineTo(i.x,i.y)}}setCustomerItinerary(t){const e=t=>this.stations.some((e=>e.stationType===t&&e.hasBeenPurchased)),i=e($r.HornAndNails),s=e($r.ScalePolish),r=e($r.GoldBath);function n(){let t=[];return i&&Math.random()<.6&&t.push($r.HornAndNails),s&&Math.random()<.6&&t.push($r.ScalePolish),r&&Math.random()<.6&&t.push($r.GoldBath),t}let o=[];for(;o.length<1;)o=n();t.itinerary=o,t.requestedStation=o[0],t.nextActivity()}togglePanel(){2===this.state?this.toggleShop():this.toggleInventory()}toggleInventory(){this.inventory.toggle(),this.inventory.isOpen?(this.invButton.setPosition(714,540),this.invButton.toggleForward(),this.openInventory()):(this.invButton.setPosition(64,540),this.invButton.toggleBackward(),this.closeInventory())}toggleShop(){this.shopinventory.toggle(),this.shopinventory.isOpen?(this.invButton.setPosition(714,540),this.invButton.toggleForward(),this.openInventory(),0==this.shopTutorialInitialized&&(this.beginShopTutorial(1),this.pauseInvButton()),this.shopOpenCheck&&(this.shopOpenCheck=!1,this.pauseInvButton(),this.proceedShopTutorial())):(this.invButton.setPosition(64,540),this.invButton.toggleBackward(),this.closeInventory())}setActiveItem(t){this.activeItem.destroy(),this.activeItem=t,this.activeItem.on("itemdrop",(()=>{this.cleanUpItem()})),this.add.existing(this.activeItem)}addEffect(t){this.effects.push(t)}parseItems(t,e,i){this.iHandler.process(this.inventory.itemList[t],e,i)}snapItem(){if(this.activeItem.snap==yn.STATION){let t=this.getClosestStationToItem(this.activeItem);t&&this.activeItem.snapTo(t.x,t.y)}else if(this.activeItem.snap==yn.CUSTOMER){console.log("Snapping to Customer");let t=this.getClosestCustomerToItem(this.activeItem);t&&this.activeItem.snapTo(t.x,t.y-30)}}applyToStation(){let t=this.getClosestStationToItem(this.activeItem);t?(t.applyItem(this.activeItem.id,this.activeItem.sprname),this.sound.play("place",{volume:.4})):(this.returnItem(this.activeItem.id),this.sound.play("return",{volume:.4})),this.activeItem.destroy(),this.activeItem=new wn(this,-500,-500,this.inventory,-1,-100,"blankspr",yn.STATION)}applyToCustomer(){let t=this.getClosestCustomerToItem(this.activeItem);t?(t.applyItem(this.activeItem.id,this.activeItem.sprname),this.sound.play("place",{volume:.4})):(this.returnItem(this.activeItem.id),this.sound.play("return",{volume:.4})),this.activeItem.destroy(),this.activeItem=new wn(this,-500,-500,this.inventory,-1,-100,"blankspr",yn.STATION)}cleanUpItem(){this.activeItem.snap==yn.CUSTOMER?this.applyToCustomer():this.activeItem.snap==yn.STATION&&this.applyToStation(),this.inventory.unglassify(),this.unveilInvButton()}returnItem(t){this.inventory.returnItem(t)}buyItem(t,e){this.inventory.buyItem(t,e)}pauseInvButton(){this.invButton.spr.input.enabled=!1,this.invButton.setAlpha(.34)}resumeInvButton(){this.invButton.spr.input.enabled=!0,this.invButton.setAlpha(.85)}parseCustomerItems(t,e){this.iHandler.processCustomerItem(this.inventory.itemList[t],e),this.sound.play(this.inventory.itemList[t].sound,{volume:.4})}getClosestCustomerToItem(t){let e=null,i=1/0;return this.customers.forEach((s=>{const r=Phaser.Math.Distance.Between(t.dragX,t.dragY,s.x,s.y-30);s.itemList.length<3&&r{const r=Phaser.Math.Distance.Between(t.dragX,t.dragY,s.x,s.y);s.stationType!=$r.CashRegister&&!s.currentCustomer&&r0&&this.pauseInvButton()}updateShopTutorial(t,e){this.dinonugget>0&&(this.dinonugget-=e,this.dinonugget<=0?(this.shopClicker.setAlpha(0),this.shopSpeech.setAlpha(0),this.shopSpeech.setVisible(!1),this.shopClicker.setVisible(!1),this.shopOwnerState=-1):(this.shopClicker.setAlpha(this.dinonugget/300),this.shopSpeech.setAlpha(this.dinonugget/300))),this.viewedShopTutorial||(this.shopTutorialInitialized?this.viewedShopTutorial||this.tutorialTimer>0&&(this.tutorialTimer-=e,this.tutorialTimer<=0?(this.shopSpeech.setAlpha(1),this.canProceed=[!0,!1,!1],this.ownerImage.input.enabled=!0):this.shopSpeech.setAlpha(1-this.tutorialTimer/300)):this.tutorialTimer>0&&(this.tutorialTimer>300?(this.tutorialTimer-=e,this.tutorialTimer<=300?this.shopClicker.setPosition(1460,540):this.shopClicker.setPosition(1460,1480+-940*(1-(this.tutorialTimer-300)/700))):this.tutorialTimer<=300&&(this.tutorialTimer-=e,this.tutorialTimer<=0&&(this.shopSpeech.setAlpha(1),this.shopTutorialInitialized=!0,this.ownerImage.input.enabled=!0,0==this.shopTutorialIndex&&(this.shopOpenCheck=!0),this.canProceed=[!0,!1,!1]),this.shopSpeech.setAlpha(1-this.tutorialTimer/300))))}proceedShopTutorial(){!this.shopOpenCheck&&this.canProceed&&(this.shopTutorialIndex++,this.shopTutorialIndext.pauseClickable())),this.customers.forEach((t=>t.pauseClickable())),this.employees.forEach((t=>t.pauseClickable()))}resumeAllClickables(){this.stations.forEach((t=>t.resumeClickable())),this.customers.forEach((t=>t.resumeClickable())),this.employees.forEach((t=>t.resumeClickable()))}getAmountOwned(t){return this.inventory.itemList[t].quant}veilInvButton(){this.invButton.setAlpha(.17)}unveilInvButton(){this.invButton.setAlpha(.85)}sortDepth(){this.stations.forEach((t=>t.setDepth(t.y/50+0))),this.employees.forEach((t=>t.setDepth(t.y/50+1))),this.customers.forEach((t=>t.setDepth(t.y/50+(t.dragged?100:1))))}refreshStationIDArray(){this.tArray=[],this.stations.forEach((t=>{t.stationType==$r.HornAndNails?this.tArray.push(0):t.stationType==$r.ScalePolish?this.tArray.push(1):t.stationType==$r.GoldBath&&this.tArray.push(2)}))}}],plugins:{global:[{key:"rexOutlinePipeline",plugin:class extends so{constructor(t){super(t),this.setPostPipelineClass(Zn,"rexOutlinePostFx")}add(t,e){return this.setQuality(no(e,"quality",this.quality)),super.add(t,e)}setQuality(t){return Zn.setQuality(t),this}set quality(t){this.setQuality(t)}get quality(){return Zn.getQuality()}},start:!0}]}};new $.Game(oo); diff --git a/assets/medCSit1-DK76idiW.png b/assets/medCSit1-DK76idiW.png deleted file mode 100644 index 95b5c84e1d94ebd8ca1aff79e87392efb9930ec6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 43814 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 U@p@TVVE_OC07*qoM6N<$f-#sk2LJ#7 diff --git a/assets/medCSit1-DW7hrtCR.png b/assets/medCSit1-DW7hrtCR.png new file mode 100644 index 0000000000000000000000000000000000000000..48dcf8447176fad91684fedcbd74430fcdecd237 GIT binary patch literal 28142 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 z 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 - +