diff --git a/OPPOSans-R.ea925359.ttf b/OPPOSans-R.ea925359.ttf new file mode 100644 index 0000000..ddadfba Binary files /dev/null and b/OPPOSans-R.ea925359.ttf differ diff --git a/SourceHanSerifCN-Regular.1e60cc2e.ttf b/SourceHanSerifCN-Regular.1e60cc2e.ttf new file mode 100644 index 0000000..dbafe4e Binary files /dev/null and b/SourceHanSerifCN-Regular.1e60cc2e.ttf differ diff --git a/favicon.a0f5bb8c.ico b/favicon.a0f5bb8c.ico new file mode 100644 index 0000000..2f42266 Binary files /dev/null and b/favicon.a0f5bb8c.ico differ diff --git a/index.65568ee6.js b/index.65568ee6.js new file mode 100644 index 0000000..58ce479 --- /dev/null +++ b/index.65568ee6.js @@ -0,0 +1,1617 @@ +var zS=Object.defineProperty,WS=Object.defineProperties;var qS=Object.getOwnPropertyDescriptors;var Mm=Object.getOwnPropertySymbols;var YS=Object.prototype.hasOwnProperty,KS=Object.prototype.propertyIsEnumerable;var Dm=(e,t,r)=>t in e?zS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gm=(e,t)=>{for(var r in t||(t={}))YS.call(t,r)&&Dm(e,r,t[r]);if(Mm)for(var r of Mm(t))KS.call(t,r)&&Dm(e,r,t[r]);return e},$m=(e,t)=>WS(e,qS(t));const ZS=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}};ZS();var Sr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function zs(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var he={exports:{}},Se={};/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var jm=Object.getOwnPropertySymbols,JS=Object.prototype.hasOwnProperty,QS=Object.prototype.propertyIsEnumerable;function eC(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function tC(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Tp=tC()?Object.assign:function(e,t){for(var r,n=eC(e),i,o=1;o=g},i=function(){},e.unstable_forceFrameRate=function(L){0>L||125>>1,ve=L[le];if(ve!==void 0&&0O(Pe,q))Ie!==void 0&&0>O(Ie,Pe)?(L[le]=Ie,L[De]=q,le=De):(L[le]=Pe,L[ye]=q,le=ye);else if(Ie!==void 0&&0>O(Ie,q))L[le]=Ie,L[De]=q,le=De;else break e}}return G}return null}function O(L,G){var q=L.sortIndex-G.sortIndex;return q!==0?q:L.id-G.id}var P=[],k=[],K=1,X=null,J=3,Te=!1,z=!1,W=!1;function fe(L){for(var G=b(k);G!==null;){if(G.callback===null)R(k);else if(G.startTime<=L)R(k),G.sortIndex=G.expirationTime,T(P,G);else break;G=b(k)}}function ge(L){if(W=!1,fe(L),!z)if(b(P)!==null)z=!0,t(Ue);else{var G=b(k);G!==null&&r(ge,G.startTime-L)}}function Ue(L,G){z=!1,W&&(W=!1,n()),Te=!0;var q=J;try{for(fe(G),X=b(P);X!==null&&(!(X.expirationTime>G)||L&&!e.unstable_shouldYield());){var le=X.callback;if(typeof le=="function"){X.callback=null,J=X.priorityLevel;var ve=le(X.expirationTime<=G);G=e.unstable_now(),typeof ve=="function"?X.callback=ve:X===b(P)&&R(P),fe(G)}else R(P);X=b(P)}if(X!==null)var ye=!0;else{var Pe=b(k);Pe!==null&&r(ge,Pe.startTime-G),ye=!1}return ye}finally{X=null,J=q,Te=!1}}var U=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){z||Te||(z=!0,t(Ue))},e.unstable_getCurrentPriorityLevel=function(){return J},e.unstable_getFirstCallbackNode=function(){return b(P)},e.unstable_next=function(L){switch(J){case 1:case 2:case 3:var G=3;break;default:G=J}var q=J;J=G;try{return L()}finally{J=q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=U,e.unstable_runWithPriority=function(L,G){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var q=J;J=L;try{return G()}finally{J=q}},e.unstable_scheduleCallback=function(L,G,q){var le=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0le?(L.sortIndex=q,T(k,L),b(P)===null&&L===b(k)&&(W?n():W=!0,r(ge,q-le))):(L.sortIndex=ve,T(P,L),z||Te||(z=!0,t(Ue))),L},e.unstable_wrapCallback=function(L){var G=J;return function(){var q=J;J=G;try{return L.apply(this,arguments)}finally{J=q}}}})(rx);tx.exports=rx;/** @license React v17.0.2 + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Xl=he.exports,Ke=Tp,Et=tx.exports;function j(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;rt}return!1}function $t(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Rt[e]=new $t(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Rt[t]=new $t(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Rt[e]=new $t(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Rt[e]=new $t(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Rt[e]=new $t(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Rt[e]=new $t(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Rt[e]=new $t(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Rt[e]=new $t(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Rt[e]=new $t(e,5,!1,e.toLowerCase(),null,!1,!1)});var Rp=/[\-:]([a-z])/g;function Ap(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Rp,Ap);Rt[t]=new $t(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Rp,Ap);Rt[t]=new $t(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Rp,Ap);Rt[t]=new $t(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Rt[e]=new $t(e,1,!1,e.toLowerCase(),null,!1,!1)});Rt.xlinkHref=new $t("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Rt[e]=new $t(e,1,!1,e.toLowerCase(),null,!0,!0)});function Op(e,t,r,n){var i=Rt.hasOwnProperty(t)?Rt[t]:null,o=i!==null?i.type===0:n?!1:!(!(2s||i[a]!==o[s])return` +`+i[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{lf=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Na(e):""}function fC(e){switch(e.tag){case 5:return Na(e.type);case 16:return Na("Lazy");case 13:return Na("Suspense");case 19:return Na("SuspenseList");case 0:case 2:case 15:return e=qs(e.type,!1),e;case 11:return e=qs(e.type.render,!1),e;case 22:return e=qs(e.type._render,!1),e;case 1:return e=qs(e.type,!0),e;default:return""}}function uo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case bn:return"Fragment";case ci:return"Portal";case ka:return"Profiler";case Lp:return"StrictMode";case Fa:return"Suspense";case tl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fp:return(e.displayName||"Context")+".Consumer";case kp:return(e._context.displayName||"Context")+".Provider";case zl:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Wl:return uo(e.type);case Bp:return uo(e._render);case Up:t=e._payload,e=e._init;try{return uo(e(t))}catch{}}return null}function Bn(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ox(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hC(e){var t=ox(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r!="undefined"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ys(e){e._valueTracker||(e._valueTracker=hC(e))}function ax(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=ox(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function rl(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ph(e,t){var r=t.checked;return Ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function Ym(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Bn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function sx(e,t){t=t.checked,t!=null&&Op(e,"checked",t,!1)}function Rh(e,t){sx(e,t);var r=Bn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ah(e,t.type,r):t.hasOwnProperty("defaultValue")&&Ah(e,t.type,Bn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Km(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Ah(e,t,r){(t!=="number"||rl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function dC(e){var t="";return Xl.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function Oh(e,t){return e=Ke({children:void 0},t),(t=dC(t.children))&&(e.children=t),e}function lo(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i=r.length))throw Error(j(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Bn(r)}}function ux(e,t){var r=Bn(t.value),n=Bn(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Jm(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var kh={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function lx(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Fh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?lx(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ks,cx=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==kh.svg||"innerHTML"in e)e.innerHTML=t;else{for(Ks=Ks||document.createElement("div"),Ks.innerHTML=""+t.valueOf().toString()+"",t=Ks.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Za(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ua={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pC=["Webkit","ms","Moz","O"];Object.keys(Ua).forEach(function(e){pC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ua[t]=Ua[e]})});function fx(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ua.hasOwnProperty(e)&&Ua[e]?(""+t).trim():t+"px"}function hx(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=fx(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var vC=Ke({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Uh(e,t){if(t){if(vC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function Bh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Gp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Mh=null,co=null,fo=null;function Qm(e){if(e=Rs(e)){if(typeof Mh!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Ql(t),Mh(e.stateNode,e.type,t))}}function dx(e){co?fo?fo.push(e):fo=[e]:co=e}function px(){if(co){var e=co,t=fo;if(fo=co=null,Qm(e),t)for(e=0;en?0:1<r;r++)t.push(e);return t}function Yl(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Mn(t),e[t]=r}var Mn=Math.clz32?Math.clz32:AC,PC=Math.log,RC=Math.LN2;function AC(e){return e===0?32:31-(PC(e)/RC|0)|0}var OC=Et.unstable_UserBlockingPriority,LC=Et.unstable_runWithPriority,Fu=!0;function kC(e,t,r,n){fi||jp();var i=Wp,o=fi;fi=!0;try{vx(i,e,t,r,n)}finally{(fi=o)||Hp()}}function FC(e,t,r,n){LC(OC,Wp.bind(null,e,t,r,n))}function Wp(e,t,r,n){if(Fu){var i;if((i=(t&4)===0)&&0=Ma),l_=String.fromCharCode(32),c_=!1;function Ox(e,t){switch(e){case"keyup":return i2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ki=!1;function a2(e,t){switch(e){case"compositionend":return Lx(t);case"keypress":return t.which!==32?null:(c_=!0,l_);case"textInput":return e=t.data,e===l_&&c_?null:e;default:return null}}function s2(e,t){if(Ki)return e==="compositionend"||!Jp&&Ox(e,t)?(e=Rx(),Uu=Yp=Tn=null,Ki=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=p_(r)}}function Bx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function m_(){for(var e=window,t=rl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=rl(e.document)}return t}function Hh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var _2=ln&&"documentMode"in document&&11>=document.documentMode,Zi=null,Vh=null,Ga=null,Xh=!1;function __(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Xh||Zi==null||Zi!==rl(n)||(n=Zi,"selectionStart"in n&&Hh(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ga&&ns(Ga,n)||(Ga=n,n=al(Vh,"onSelect"),0Qi||(e.current=Wh[Qi],Wh[Qi]=null,Qi--)}function ot(e,t){Qi++,Wh[Qi]=e.current,e.current=t}var Dn={},Dt=zn(Dn),zt=zn(!1),yi=Dn;function Co(e,t){var r=e.type.contextTypes;if(!r)return Dn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Wt(e){return e=e.childContextTypes,e!=null}function ll(){Xe(zt),Xe(Dt)}function C_(e,t,r){if(Dt.current!==Dn)throw Error(j(168));ot(Dt,t),ot(zt,r)}function Xx(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(j(108,uo(t)||"Unknown",i));return Ke({},r,n)}function Mu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dn,yi=Dt.current,ot(Dt,e),ot(zt,zt.current),!0}function I_(e,t,r){var n=e.stateNode;if(!n)throw Error(j(169));r?(e=Xx(e,t,yi),n.__reactInternalMemoizedMergedChildContext=e,Xe(zt),Xe(Dt),ot(Dt,e)):Xe(zt),ot(zt,r)}var ev=null,vi=null,x2=Et.unstable_runWithPriority,tv=Et.unstable_scheduleCallback,qh=Et.unstable_cancelCallback,b2=Et.unstable_shouldYield,N_=Et.unstable_requestPaint,Yh=Et.unstable_now,E2=Et.unstable_getCurrentPriorityLevel,ec=Et.unstable_ImmediatePriority,zx=Et.unstable_UserBlockingPriority,Wx=Et.unstable_NormalPriority,qx=Et.unstable_LowPriority,Yx=Et.unstable_IdlePriority,Ef={},T2=N_!==void 0?N_:function(){},Qr=null,Du=null,Tf=!1,P_=Yh(),Bt=1e4>P_?Yh:function(){return Yh()-P_};function Io(){switch(E2()){case ec:return 99;case zx:return 98;case Wx:return 97;case qx:return 96;case Yx:return 95;default:throw Error(j(332))}}function Kx(e){switch(e){case 99:return ec;case 98:return zx;case 97:return Wx;case 96:return qx;case 95:return Yx;default:throw Error(j(332))}}function xi(e,t){return e=Kx(e),x2(e,t)}function os(e,t,r){return e=Kx(e),tv(e,t,r)}function Vr(){if(Du!==null){var e=Du;Du=null,qh(e)}Zx()}function Zx(){if(!Tf&&Qr!==null){Tf=!0;var e=0;try{var t=Qr;xi(99,function(){for(;eR?(O=b,b=null):O=b.sibling;var P=h(p,b,g[R],x);if(P===null){b===null&&(b=O);break}e&&b&&P.alternate===null&&t(p,b),m=o(P,m,R),T===null?w=P:T.sibling=P,T=P,b=O}if(R===g.length)return r(p,b),w;if(b===null){for(;RR?(O=b,b=null):O=b.sibling;var k=h(p,b,P.value,x);if(k===null){b===null&&(b=O);break}e&&b&&k.alternate===null&&t(p,b),m=o(k,m,R),T===null?w=k:T.sibling=k,T=k,b=O}if(P.done)return r(p,b),w;if(b===null){for(;!P.done;R++,P=g.next())P=f(p,P.value,x),P!==null&&(m=o(P,m,R),T===null?w=P:T.sibling=P,T=P);return w}for(b=n(p,b);!P.done;R++,P=g.next())P=d(b,p,R,P.value,x),P!==null&&(e&&P.alternate!==null&&b.delete(P.key===null?R:P.key),m=o(P,m,R),T===null?w=P:T.sibling=P,T=P);return e&&b.forEach(function(K){return t(p,K)}),w}return function(p,m,g,x){var w=typeof g=="object"&&g!==null&&g.type===bn&&g.key===null;w&&(g=g.props.children);var T=typeof g=="object"&&g!==null;if(T)switch(g.$$typeof){case Ia:e:{for(T=g.key,w=m;w!==null;){if(w.key===T){switch(w.tag){case 7:if(g.type===bn){r(p,w.sibling),m=i(w,g.props.children),m.return=p,p=m;break e}break;default:if(w.elementType===g.type){r(p,w.sibling),m=i(w,g.props),m.ref=ca(p,w,g),m.return=p,p=m;break e}}r(p,w);break}else t(p,w);w=w.sibling}g.type===bn?(m=go(g.props.children,p.mode,x,g.key),m.return=p,p=m):(x=Hu(g.type,g.key,g.props,null,p.mode,x),x.ref=ca(p,m,g),x.return=p,p=x)}return a(p);case ci:e:{for(w=g.key;m!==null;){if(m.key===w)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){r(p,m.sibling),m=i(m,g.children||[]),m.return=p,p=m;break e}else{r(p,m);break}else t(p,m);m=m.sibling}m=Pf(g,p.mode,x),m.return=p,p=m}return a(p)}if(typeof g=="string"||typeof g=="number")return g=""+g,m!==null&&m.tag===6?(r(p,m.sibling),m=i(m,g),m.return=p,p=m):(r(p,m),m=Nf(g,p.mode,x),m.return=p,p=m),a(p);if(Qs(g))return v(p,m,g,x);if(ia(g))return _(p,m,g,x);if(T&&eu(p,g),typeof g=="undefined"&&!w)switch(p.tag){case 1:case 22:case 0:case 11:case 15:throw Error(j(152,uo(p.type)||"Component"))}return r(p,m)}}var pl=rb(!0),nb=rb(!1),As={},Mr=zn(As),ss=zn(As),us=zn(As);function di(e){if(e===As)throw Error(j(174));return e}function Zh(e,t){switch(ot(us,t),ot(ss,e),ot(Mr,As),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fh(t,e)}Xe(Mr),ot(Mr,t)}function No(){Xe(Mr),Xe(ss),Xe(us)}function k_(e){di(us.current);var t=di(Mr.current),r=Fh(t,e.type);t!==r&&(ot(ss,e),ot(Mr,r))}function ov(e){ss.current===e&&(Xe(Mr),Xe(ss))}var it=zn(0);function vl(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var nn=null,Sn=null,Dr=!1;function ib(e,t){var r=ur(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function F_(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Jh(e){if(Dr){var t=Sn;if(t){var r=t;if(!F_(e,t)){if(t=ho(r.nextSibling),!t||!F_(e,t)){e.flags=e.flags&-1025|2,Dr=!1,nn=e;return}ib(nn,r)}nn=e,Sn=ho(t.firstChild)}else e.flags=e.flags&-1025|2,Dr=!1,nn=e}}function U_(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;nn=e}function tu(e){if(e!==nn)return!1;if(!Dr)return U_(e),Dr=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!zh(t,e.memoizedProps))for(t=Sn;t;)ib(e,t),t=ho(t.nextSibling);if(U_(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Sn=ho(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Sn=null}}else Sn=nn?ho(e.stateNode.nextSibling):null;return!0}function wf(){Sn=nn=null,Dr=!1}var vo=[];function av(){for(var e=0;eo))throw Error(j(301));o+=1,It=kt=null,t.updateQueue=null,$a.current=N2,e=r(n,i)}while(ja)}if($a.current=xl,t=kt!==null&&kt.next!==null,ls=0,It=kt=ct=null,ml=!1,t)throw Error(j(300));return e}function pi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return It===null?ct.memoizedState=It=e:It=It.next=e,It}function Pi(){if(kt===null){var e=ct.alternate;e=e!==null?e.memoizedState:null}else e=kt.next;var t=It===null?ct.memoizedState:It.next;if(t!==null)It=t,kt=e;else{if(e===null)throw Error(j(310));kt=e,e={memoizedState:kt.memoizedState,baseState:kt.baseState,baseQueue:kt.baseQueue,queue:kt.queue,next:null},It===null?ct.memoizedState=It=e:It=It.next=e}return It}function kr(e,t){return typeof t=="function"?t(e):t}function fa(e){var t=Pi(),r=t.queue;if(r===null)throw Error(j(311));r.lastRenderedReducer=e;var n=kt,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var s=a=o=null,u=i;do{var l=u.lane;if((ls&l)===l)s!==null&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),n=u.eagerReducer===e?u.eagerState:e(n,u.action);else{var c={lane:l,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};s===null?(a=s=c,o=n):s=s.next=c,ct.lanes|=l,Os|=l}u=u.next}while(u!==null&&u!==i);s===null?o=n:s.next=a,sr(n,t.memoizedState)||(Cr=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function ha(e){var t=Pi(),r=t.queue;if(r===null)throw Error(j(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);sr(o,t.memoizedState)||(Cr=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function B_(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===n:(e=e.mutableReadLanes,(e=(ls&e)===e)&&(t._workInProgressVersionPrimary=n,vo.push(t))),e)return r(t._source);throw vo.push(t),Error(j(350))}function ob(e,t,r,n){var i=Gt;if(i===null)throw Error(j(349));var o=t._getVersion,a=o(t._source),s=$a.current,u=s.useState(function(){return B_(i,t,r)}),l=u[1],c=u[0];u=It;var f=e.memoizedState,h=f.refs,d=h.getSnapshot,v=f.source;f=f.subscribe;var _=ct;return e.memoizedState={refs:h,source:t,subscribe:n},s.useEffect(function(){h.getSnapshot=r,h.setSnapshot=l;var p=o(t._source);if(!sr(a,p)){p=r(t._source),sr(c,p)||(l(p),p=Ln(_),i.mutableReadLanes|=p&i.pendingLanes),p=i.mutableReadLanes,i.entangledLanes|=p;for(var m=i.entanglements,g=p;0r?98:r,function(){e(!0)}),xi(97<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[wn]=t,e[ul]=n,pb(e,t,!1,!1),t.stateNode=e,a=Bh(r,n),r){case"dialog":He("cancel",e),He("close",e),i=n;break;case"iframe":case"object":case"embed":He("load",e),i=n;break;case"video":case"audio":for(i=0;iud&&(t.flags|=64,o=!0,pa(n,!1),t.lanes=33554432)}else{if(!o)if(e=vl(a),e!==null){if(t.flags|=64,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),pa(n,!0),n.tail===null&&n.tailMode==="hidden"&&!a.alternate&&!Dr)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Bt()-n.renderingStartTime>ud&&r!==1073741824&&(t.flags|=64,o=!0,pa(n,!1),t.lanes=33554432);n.isBackwards?(a.sibling=t.child,t.child=a):(r=n.last,r!==null?r.sibling=a:t.child=a,n.last=a)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Bt(),r.sibling=null,t=it.current,ot(it,o?t&1|2:t&1),r):null;case 23:case 24:return mv(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(j(156,t.tag))}function A2(e){switch(e.tag){case 1:Wt(e.type)&&ll();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(No(),Xe(zt),Xe(Dt),av(),t=e.flags,(t&64)!==0)throw Error(j(285));return e.flags=t&-4097|64,e;case 5:return ov(e),null;case 13:return Xe(it),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Xe(it),null;case 4:return No(),null;case 10:return nv(e),null;case 23:case 24:return mv(),null;default:return null}}function hv(e,t){try{var r="",n=t;do r+=fC(n),n=n.return;while(n);var i=r}catch(o){i=` +Error generating stack: `+o.message+` +`+o.stack}return{value:e,source:t,stack:i}}function nd(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var O2=typeof WeakMap=="function"?WeakMap:Map;function _b(e,t,r){r=An(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){El||(El=!0,ld=n),nd(e,t)},r}function gb(e,t,r){r=An(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return nd(e,t),n(i)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(Fr===null?Fr=new Set([this]):Fr.add(this),nd(e,t));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}var L2=typeof WeakSet=="function"?WeakSet:Set;function K_(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Fn(e,r)}else t.current=null}function k2(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:Er(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&Qp(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(j(163))}function F2(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;n=i.next,i=i.tag,(i&4)!==0&&(i&1)!==0&&(Ib(r,e),H2(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:Er(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&A_(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}A_(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&Hx(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&Ex(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(j(163))}function Z_(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var i=r.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,n.style.display=fx("display",i)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function J_(e,t){if(vi&&typeof vi.onCommitFiberUnmount=="function")try{vi.onCommitFiberUnmount(ev,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,i=n.destroy;if(n=n.tag,i!==void 0)if((n&4)!==0)Ib(t,r);else{n=t;try{i()}catch(o){Fn(n,o)}}r=r.next}while(r!==e)}break;case 1:if(K_(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Fn(t,o)}break;case 5:K_(t);break;case 4:yb(e,t)}}function Q_(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function eg(e){return e.tag===5||e.tag===3||e.tag===4}function tg(e){e:{for(var t=e.return;t!==null;){if(eg(t))break e;t=t.return}throw Error(j(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(j(161))}r.flags&16&&(Za(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||eg(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?id(e,r,t):od(e,r,t)}function id(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=sl));else if(n!==4&&(e=e.child,e!==null))for(id(e,t,r),e=e.sibling;e!==null;)id(e,t,r),e=e.sibling}function od(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(od(e,t,r),e=e.sibling;e!==null;)od(e,t,r),e=e.sibling}function yb(e,t){for(var r=t,n=!1,i,o;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(j(160));switch(i=n.stateNode,n.tag){case 5:o=!1;break e;case 3:i=i.containerInfo,o=!0;break e;case 4:i=i.containerInfo,o=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var a=e,s=r,u=s;;)if(J_(a,u),u.child!==null&&u.tag!==4)u.child.return=u,u=u.child;else{if(u===s)break e;for(;u.sibling===null;){if(u.return===null||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}o?(a=i,s=r.stateNode,a.nodeType===8?a.parentNode.removeChild(s):a.removeChild(s)):i.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,o=!0,r.child.return=r,r=r.child;continue}}else if(J_(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function If(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)===3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var i=e!==null?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(r[ul]=n,e==="input"&&n.type==="radio"&&n.name!=null&&sx(r,n),Bh(e,i),t=Bh(e,n),i=0;ii&&(i=a),r&=~o}if(r=i,r=Bt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*B2(r/1960))-r,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}Nt!==5&&(Nt=2),u=hv(u,s),h=a;do{switch(h.tag){case 3:o=u,h.flags|=4096,t&=-t,h.lanes|=t;var T=_b(h,o,t);R_(h,T);break e;case 1:o=u;var b=h.type,R=h.stateNode;if((h.flags&64)===0&&(typeof b.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(Fr===null||!Fr.has(R)))){h.flags|=4096,t&=-t,h.lanes|=t;var O=gb(h,o,t);R_(h,O);break e}}h=h.return}while(h!==null)}Cb(r)}catch(P){t=P,mt===r&&r!==null&&(mt=r=r.return);continue}break}while(1)}function wb(){var e=bl.current;return bl.current=xl,e===null?xl:e}function Aa(e,t){var r=de;de|=16;var n=wb();Gt===e&&Mt===t||_o(e,t);do try{D2();break}catch(i){Tb(e,i)}while(1);if(rv(),de=r,bl.current=n,mt!==null)throw Error(j(261));return Gt=null,Mt=0,Nt}function D2(){for(;mt!==null;)Sb(mt)}function G2(){for(;mt!==null&&!b2();)Sb(mt)}function Sb(e){var t=Nb(e.alternate,e,bi);e.memoizedProps=e.pendingProps,t===null?Cb(e):mt=t,dv.current=null}function Cb(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&2048)===0){if(r=R2(r,t,bi),r!==null){mt=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||(bi&1073741824)!==0||(r.mode&4)===0){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}e!==null&&(e.flags&2048)===0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1a&&(s=a,a=T,T=s),s=v_(g,T),o=v_(g,a),s&&o&&(w.rangeCount!==1||w.anchorNode!==s.node||w.anchorOffset!==s.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&(x=x.createRange(),x.setStart(s.node,s.offset),w.removeAllRanges(),T>a?(w.addRange(x),w.extend(o.node,o.offset)):(x.setEnd(o.node,o.offset),w.addRange(x)))))),x=[],w=g;w=w.parentNode;)w.nodeType===1&&x.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;gBt()-vv?_o(e,0):pv|=r),fr(e,t)}function z2(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,(t&2)===0?t=1:(t&4)===0?t=Io()===99?1:2:(tn===0&&(tn=Go),t=Wi(62914560&~tn),t===0&&(t=4194304))),r=Qt(),e=nc(e,t),e!==null&&(Yl(e,t,r),fr(e,r))}var Nb;Nb=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||zt.current)Cr=!0;else if((r&n)!==0)Cr=(e.flags&16384)!==0;else{switch(Cr=!1,t.tag){case 3:H_(t),wf();break;case 5:k_(t);break;case 1:Wt(t.type)&&Mu(t);break;case 4:Zh(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;ot(cl,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return(r&t.child.childLanes)!==0?V_(e,t,r):(ot(it,it.current&1),t=on(e,t,r),t!==null?t.sibling:null);ot(it,it.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&64)!==0){if(n)return Y_(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ot(it,it.current),n)break;return null;case 23:case 24:return t.lanes=0,Sf(e,t,r)}return on(e,t,r)}else Cr=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=Co(t,Dt.current),po(t,r),i=uv(null,t,n,e,i,r),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Wt(n)){var o=!0;Mu(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,iv(t);var a=n.getDerivedStateFromProps;typeof a=="function"&&dl(t,n,a,e),i.updater=tc,t.stateNode=i,i._reactInternals=t,Kh(t,n,e,r),t=td(null,t,n,!0,o,r)}else t.tag=0,Xt(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=q2(i),e=Er(i,e),o){case 0:t=ed(null,t,i,e,r);break e;case 1:t=j_(null,t,i,e,r);break e;case 11:t=G_(null,t,i,e,r);break e;case 14:t=$_(null,t,i,Er(i.type,e),n,r);break e}throw Error(j(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Er(n,i),ed(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Er(n,i),j_(e,t,n,i,r);case 3:if(H_(t),n=t.updateQueue,e===null||n===null)throw Error(j(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,Qx(e,t),as(t,n,null,r),n=t.memoizedState.element,n===i)wf(),t=on(e,t,r);else{if(i=t.stateNode,(o=i.hydrate)&&(Sn=ho(t.stateNode.containerInfo.firstChild),nn=t,o=Dr=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:bv(e)?2:Ev(e)?3:0}function yo(e,t){return Ho(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function sI(e,t){return Ho(e)===2?e.get(t):e[t]}function Ab(e,t,r){var n=Ho(e);n===2?e.set(t,r):n===3?(e.delete(t),e.add(r)):e[t]=r}function Ob(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function bv(e){return dI&&e instanceof Map}function Ev(e){return pI&&e instanceof Set}function ii(e){return e.o||e.t}function Tv(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=kb(e);delete t[qe];for(var r=xo(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=uI),Object.freeze(e),t&&Ei(e,function(r,n){return wv(n,!0)},!0)),e}function uI(){wr(2)}function Sv(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Gr(e){var t=_d[e];return t||wr(18,e),t}function lI(e,t){_d[e]||(_d[e]=t)}function pd(){return cs}function Af(e,t){t&&(Gr("Patches"),e.u=[],e.s=[],e.v=t)}function wl(e){vd(e),e.p.forEach(cI),e.p=null}function vd(e){e===cs&&(cs=e.l)}function og(e){return cs={p:[],l:cs,h:e,m:!0,_:0}}function cI(e){var t=e[qe];t.i===0||t.i===1?t.j():t.O=!0}function Of(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.g||Gr("ES5").S(t,e,n),n?(r[qe].P&&(wl(t),wr(4)),Hn(e)&&(e=Sl(t,e),t.l||Cl(t,e)),t.u&&Gr("Patches").M(r[qe].t,e,t.u,t.s)):e=Sl(t,r,[]),wl(t),t.u&&t.v(t.u,t.s),e!==Lb?e:void 0}function Sl(e,t,r){if(Sv(t))return t;var n=t[qe];if(!n)return Ei(t,function(o,a){return ag(e,n,t,o,a,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Cl(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Tv(n.k):n.o;Ei(n.i===3?new Set(i):i,function(o,a){return ag(e,n,i,o,a,r)}),Cl(e,i,!1),r&&e.u&&Gr("Patches").R(n,r,e.u,e.s)}return n.o}function ag(e,t,r,n,i,o){if(jn(i)){var a=Sl(e,i,o&&t&&t.i!==3&&!yo(t.D,n)?o.concat(n):void 0);if(Ab(r,n,a),!jn(a))return;e.m=!1}if(Hn(i)&&!Sv(i)){if(!e.h.F&&e._<1)return;Sl(e,i),t&&t.A.l||Cl(e,i)}}function Cl(e,t,r){r===void 0&&(r=!1),e.h.F&&e.m&&wv(t,r)}function Lf(e,t){var r=e[qe];return(r?ii(r):e)[t]}function sg(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function En(e){e.P||(e.P=!0,e.l&&En(e.l))}function kf(e){e.o||(e.o=Tv(e.t))}function md(e,t,r){var n=bv(t)?Gr("MapSet").N(t,r):Ev(t)?Gr("MapSet").T(t,r):e.g?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:pd(),P:!1,I:!1,D:{},l:o,t:i,k:null,o:null,j:null,C:!1},u=s,l=fs;a&&(u=[s],l=Oa);var c=Proxy.revocable(u,l),f=c.revoke,h=c.proxy;return s.k=h,s.j=f,h}(t,r):Gr("ES5").J(t,r);return(r?r.A:pd()).p.push(n),n}function fI(e){return jn(e)||wr(22,e),function t(r){if(!Hn(r))return r;var n,i=r[qe],o=Ho(r);if(i){if(!i.P&&(i.i<4||!Gr("ES5").K(i)))return i.t;i.I=!0,n=ug(r,o),i.I=!1}else n=ug(r,o);return Ei(n,function(a,s){i&&sI(i.t,a)===s||Ab(n,a,t(s))}),o===3?new Set(n):n}(e)}function ug(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Tv(e)}function hI(){function e(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var u=this[qe];return fs.get(u,o)},set:function(u){var l=this[qe];fs.set(l,o,u)}},s}function t(o){for(var a=o.length-1;a>=0;a--){var s=o[a][qe];if(!s.P)switch(s.i){case 5:n(s)&&En(s);break;case 4:r(s)&&En(s)}}}function r(o){for(var a=o.t,s=o.k,u=xo(s),l=u.length-1;l>=0;l--){var c=u[l];if(c!==qe){var f=a[c];if(f===void 0&&!yo(a,c))return!0;var h=s[c],d=h&&h[qe];if(d?d.t!==f:!Ob(h,f))return!0}}var v=!!a[qe];return u.length!==xo(a).length+(v?0:1)}function n(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var u=0;u1?m-1:0),x=1;x1?c-1:0),h=1;h=0;i--){var o=n[i];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}i>-1&&(n=n.slice(i+1));var a=Gr("Patches").$;return jn(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),tr=new mI,_I=tr.produce;tr.produceWithPatches.bind(tr);tr.setAutoFreeze.bind(tr);tr.setUseProxies.bind(tr);tr.applyPatches.bind(tr);tr.createDraft.bind(tr);tr.finishDraft.bind(tr);var Vu=_I;function gI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dg(e){for(var t=1;t{Object.assign(e,t.payload)},setStage:(e,t)=>{e[t.payload.key]=t.payload.value},setStageVar:(e,t)=>{e.GameVar[t.payload.key]=t.payload.value}}}),{resetStageState:Vo,setStage:tt,setStageVar:ma}=Gb.actions;var MI=Gb.reducer,cn={exports:{}};/*! + localForage -- Offline Storage, Improved + Version 1.10.0 + https://localforage.github.io/localForage + (c) 2013-2017 Mozilla, Apache License 2.0 +*/(function(e,t){(function(r){e.exports=r()})(function(){return function r(n,i,o){function a(l,c){if(!i[l]){if(!n[l]){var f=typeof zs=="function"&&zs;if(!c&&f)return f(l,!0);if(s)return s(l,!0);var h=new Error("Cannot find module '"+l+"'");throw h.code="MODULE_NOT_FOUND",h}var d=i[l]={exports:{}};n[l][0].call(d.exports,function(v){var _=n[l][1][v];return a(_||v)},d,d.exports,r,n,i,o)}return i[l].exports}for(var s=typeof zs=="function"&&zs,u=0;u=43)}}).catch(function(){return!1})}function O(y){return typeof m=="boolean"?f.resolve(m):R(y).then(function(S){return m=S,m})}function P(y){var S=g[y.name],E={};E.promise=new f(function(N,A){E.resolve=N,E.reject=A}),S.deferredOperations.push(E),S.dbReady?S.dbReady=S.dbReady.then(function(){return E.promise}):S.dbReady=E.promise}function k(y){var S=g[y.name],E=S.deferredOperations.pop();if(E)return E.resolve(),E.promise}function K(y,S){var E=g[y.name],N=E.deferredOperations.pop();if(N)return N.reject(S),N.promise}function X(y,S){return new f(function(E,N){if(g[y.name]=g[y.name]||G(),y.db)if(S)P(y),y.db.close();else return E(y.db);var A=[y.name];S&&A.push(y.version);var I=u.open.apply(u,A);S&&(I.onupgradeneeded=function(F){var B=I.result;try{B.createObjectStore(y.storeName),F.oldVersion<=1&&B.createObjectStore(p)}catch(D){if(D.name==="ConstraintError")console.warn('The database "'+y.name+'" has been upgraded from version '+F.oldVersion+" to version "+F.newVersion+', but the storage "'+y.storeName+'" already exists.');else throw D}}),I.onerror=function(F){F.preventDefault(),N(I.error)},I.onsuccess=function(){var F=I.result;F.onversionchange=function(B){B.target.close()},E(F),k(y)}})}function J(y){return X(y,!1)}function Te(y){return X(y,!0)}function z(y,S){if(!y.db)return!0;var E=!y.db.objectStoreNames.contains(y.storeName),N=y.versiony.db.version;if(N&&(y.version!==S&&console.warn('The database "'+y.name+`" can't be downgraded from version `+y.db.version+" to version "+y.version+"."),y.version=y.db.version),A||E){if(E){var I=y.db.version+1;I>y.version&&(y.version=I)}return!0}return!1}function W(y){return new f(function(S,E){var N=new FileReader;N.onerror=E,N.onloadend=function(A){var I=btoa(A.target.result||"");S({__local_forage_encoded_blob:!0,data:I,type:y.type})},N.readAsBinaryString(y)})}function fe(y){var S=b(atob(y.data));return c([S],{type:y.type})}function ge(y){return y&&y.__local_forage_encoded_blob}function Ue(y){var S=this,E=S._initReady().then(function(){var N=g[S._dbInfo.name];if(N&&N.dbReady)return N.dbReady});return d(E,y,y),E}function U(y){P(y);for(var S=g[y.name],E=S.forages,N=0;N0&&(!y.db||I.name==="InvalidStateError"||I.name==="NotFoundError"))return f.resolve().then(function(){if(!y.db||I.name==="NotFoundError"&&!y.db.objectStoreNames.contains(y.storeName)&&y.version<=y.db.version)return y.db&&(y.version=y.db.version+1),Te(y)}).then(function(){return U(y).then(function(){L(y,S,E,N-1)})}).catch(E);E(I)}}function G(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function q(y){var S=this,E={db:null};if(y)for(var N in y)E[N]=y[N];var A=g[E.name];A||(A=G(),g[E.name]=A),A.forages.push(S),S._initReady||(S._initReady=S.ready,S.ready=Ue);var I=[];function F(){return f.resolve()}for(var B=0;B>4,V[A++]=(F&15)<<4|B>>2,V[A++]=(B&3)<<6|D&63;return $}function ef(y){var S=new Uint8Array(y),E="",N;for(N=0;N>2],E+=Me[(S[N]&3)<<4|S[N+1]>>4],E+=Me[(S[N+1]&15)<<2|S[N+2]>>6],E+=Me[S[N+2]&63];return S.length%3===2?E=E.substring(0,E.length-1)+"=":S.length%3===1&&(E=E.substring(0,E.length-2)+"=="),E}function uS(y,S){var E="";if(y&&(E=Rm.call(y)),y&&(E==="[object ArrayBuffer]"||y.buffer&&Rm.call(y.buffer)==="[object ArrayBuffer]")){var N,A=_r;y instanceof ArrayBuffer?(N=y,A+=ki):(N=y.buffer,E==="[object Int8Array]"?A+=ea:E==="[object Uint8Array]"?A+=ta:E==="[object Uint8ClampedArray]"?A+=Em:E==="[object Int16Array]"?A+=Tm:E==="[object Uint16Array]"?A+=Sm:E==="[object Int32Array]"?A+=wm:E==="[object Uint32Array]"?A+=Cm:E==="[object Float32Array]"?A+=Im:E==="[object Float64Array]"?A+=Nm:S(new Error("Failed to get type for BinaryArray"))),S(A+ef(N))}else if(E==="[object Blob]"){var I=new FileReader;I.onload=function(){var F=be+y.type+"~"+ef(this.result);S(_r+Fi+F)},I.readAsArrayBuffer(y)}else try{S(JSON.stringify(y))}catch(F){console.error("Couldn't convert value into a JSON string: ",y),S(null,F)}}function lS(y){if(y.substring(0,mn)!==_r)return JSON.parse(y);var S=y.substring(Pm),E=y.substring(mn,Pm),N;if(E===Fi&&Yt.test(S)){var A=S.match(Yt);N=A[1],S=S.substring(A[0].length)}var I=Am(S);switch(E){case ki:return I;case Fi:return c([I],{type:N});case ea:return new Int8Array(I);case ta:return new Uint8Array(I);case Em:return new Uint8ClampedArray(I);case Tm:return new Int16Array(I);case Sm:return new Uint16Array(I);case wm:return new Int32Array(I);case Cm:return new Uint32Array(I);case Im:return new Float32Array(I);case Nm:return new Float64Array(I);default:throw new Error("Unkown type: "+E)}}var tf={serialize:uS,deserialize:lS,stringToBuffer:Am,bufferToString:ef};function Om(y,S,E,N){y.executeSql("CREATE TABLE IF NOT EXISTS "+S.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],E,N)}function cS(y){var S=this,E={db:null};if(y)for(var N in y)E[N]=typeof y[N]!="string"?y[N].toString():y[N];var A=new f(function(I,F){try{E.db=openDatabase(E.name,String(E.version),E.description,E.size)}catch(B){return F(B)}E.db.transaction(function(B){Om(B,E,function(){S._dbInfo=E,I()},function(D,$){F($)})},F)});return E.serializer=tf,A}function _n(y,S,E,N,A,I){y.executeSql(E,N,A,function(F,B){B.code===B.SYNTAX_ERR?F.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[S.storeName],function(D,$){$.rows.length?I(D,B):Om(D,S,function(){D.executeSql(E,N,A,I)},I)},I):I(F,B)},I)}function fS(y,S){var E=this;y=v(y);var N=new f(function(A,I){E.ready().then(function(){var F=E._dbInfo;F.db.transaction(function(B){_n(B,F,"SELECT * FROM "+F.storeName+" WHERE key = ? LIMIT 1",[y],function(D,$){var V=$.rows.length?$.rows.item(0).value:null;V&&(V=F.serializer.deserialize(V)),A(V)},function(D,$){I($)})})}).catch(I)});return h(N,S),N}function hS(y,S){var E=this,N=new f(function(A,I){E.ready().then(function(){var F=E._dbInfo;F.db.transaction(function(B){_n(B,F,"SELECT * FROM "+F.storeName,[],function(D,$){for(var V=$.rows,te=V.length,xe=0;xe0){F(Lm.apply(A,[y,D,E,N-1]));return}B(xe)}})})}).catch(B)});return h(I,E),I}function dS(y,S,E){return Lm.apply(this,[y,S,E,1])}function pS(y,S){var E=this;y=v(y);var N=new f(function(A,I){E.ready().then(function(){var F=E._dbInfo;F.db.transaction(function(B){_n(B,F,"DELETE FROM "+F.storeName+" WHERE key = ?",[y],function(){A()},function(D,$){I($)})})}).catch(I)});return h(N,S),N}function vS(y){var S=this,E=new f(function(N,A){S.ready().then(function(){var I=S._dbInfo;I.db.transaction(function(F){_n(F,I,"DELETE FROM "+I.storeName,[],function(){N()},function(B,D){A(D)})})}).catch(A)});return h(E,y),E}function mS(y){var S=this,E=new f(function(N,A){S.ready().then(function(){var I=S._dbInfo;I.db.transaction(function(F){_n(F,I,"SELECT COUNT(key) as c FROM "+I.storeName,[],function(B,D){var $=D.rows.item(0).c;N($)},function(B,D){A(D)})})}).catch(A)});return h(E,y),E}function _S(y,S){var E=this,N=new f(function(A,I){E.ready().then(function(){var F=E._dbInfo;F.db.transaction(function(B){_n(B,F,"SELECT key FROM "+F.storeName+" WHERE id = ? LIMIT 1",[y+1],function(D,$){var V=$.rows.length?$.rows.item(0).key:null;A(V)},function(D,$){I($)})})}).catch(I)});return h(N,S),N}function gS(y){var S=this,E=new f(function(N,A){S.ready().then(function(){var I=S._dbInfo;I.db.transaction(function(F){_n(F,I,"SELECT key FROM "+I.storeName,[],function(B,D){for(var $=[],V=0;V '__WebKitDatabaseInfoTable__'",[],function(A,I){for(var F=[],B=0;B0}function SS(y){var S=this,E={};if(y)for(var N in y)E[N]=y[N];return E.keyPrefix=km(y,S._defaultConfig),wS()?(S._dbInfo=E,E.serializer=tf,f.resolve()):f.reject()}function CS(y){var S=this,E=S.ready().then(function(){for(var N=S._dbInfo.keyPrefix,A=localStorage.length-1;A>=0;A--){var I=localStorage.key(A);I.indexOf(N)===0&&localStorage.removeItem(I)}});return h(E,y),E}function IS(y,S){var E=this;y=v(y);var N=E.ready().then(function(){var A=E._dbInfo,I=localStorage.getItem(A.keyPrefix+y);return I&&(I=A.serializer.deserialize(I)),I});return h(N,S),N}function NS(y,S){var E=this,N=E.ready().then(function(){for(var A=E._dbInfo,I=A.keyPrefix,F=I.length,B=localStorage.length,D=1,$=0;$=0;F--){var B=localStorage.key(F);B.indexOf(I)===0&&localStorage.removeItem(B)}}):A=f.reject("Invalid arguments"),h(A,S),A}var FS={_driver:"localStorageWrapper",_initStorage:SS,_support:ES(),iterate:NS,getItem:IS,setItem:LS,removeItem:OS,clear:CS,length:AS,key:PS,keys:RS,dropInstance:kS},US=function(S,E){return S===E||typeof S=="number"&&typeof E=="number"&&isNaN(S)&&isNaN(E)},BS=function(S,E){for(var N=S.length,A=0;A=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([i]):r[n]=r[n]?r[n]+", "+i:i}}),r},xg=nr,mN=xg.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(o){var a=o;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(a){var s=xg.isString(a)?i(a):a;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function Ov(e){this.message=e}Ov.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Ov.prototype.__CANCEL__=!0;var ac=Ov,au=nr,_N=sN,gN=uN,yN=zb,xN=dN,bN=vN,EN=mN,Bf=qb,TN=uc,wN=ac,bg=function(t){return new Promise(function(n,i){var o=t.data,a=t.headers,s=t.responseType,u;function l(){t.cancelToken&&t.cancelToken.unsubscribe(u),t.signal&&t.signal.removeEventListener("abort",u)}au.isFormData(o)&&delete a["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";a.Authorization="Basic "+btoa(f+":"+h)}var d=xN(t.baseURL,t.url);c.open(t.method.toUpperCase(),yN(d,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function v(){if(!!c){var p="getAllResponseHeaders"in c?bN(c.getAllResponseHeaders()):null,m=!s||s==="text"||s==="json"?c.responseText:c.response,g={data:m,status:c.status,statusText:c.statusText,headers:p,config:t,request:c};_N(function(w){n(w),l()},function(w){i(w),l()},g),c=null}}if("onloadend"in c?c.onloadend=v:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(v)},c.onabort=function(){!c||(i(Bf("Request aborted",t,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(Bf("Network Error",t,null,c)),c=null},c.ontimeout=function(){var m=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",g=t.transitional||TN.transitional;t.timeoutErrorMessage&&(m=t.timeoutErrorMessage),i(Bf(m,t,g.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},au.isStandardBrowserEnv()){var _=(t.withCredentials||EN(d))&&t.xsrfCookieName?gN.read(t.xsrfCookieName):void 0;_&&(a[t.xsrfHeaderName]=_)}"setRequestHeader"in c&&au.forEach(a,function(m,g){typeof o=="undefined"&&g.toLowerCase()==="content-type"?delete a[g]:c.setRequestHeader(g,m)}),au.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),s&&s!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(u=function(p){!c||(i(!p||p&&p.type?new wN("canceled"):p),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(u),t.signal&&(t.signal.aborted?u():t.signal.addEventListener("abort",u))),o||(o=null),c.send(o)})},wt=nr,Eg=iN,SN=Wb,CN={"Content-Type":"application/x-www-form-urlencoded"};function Tg(e,t){!wt.isUndefined(e)&&wt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function IN(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=bg),e}function NN(e,t,r){if(wt.isString(e))try{return(t||JSON.parse)(e),wt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var sc={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:IN(),transformRequest:[function(t,r){return Eg(r,"Accept"),Eg(r,"Content-Type"),wt.isFormData(t)||wt.isArrayBuffer(t)||wt.isBuffer(t)||wt.isStream(t)||wt.isFile(t)||wt.isBlob(t)?t:wt.isArrayBufferView(t)?t.buffer:wt.isURLSearchParams(t)?(Tg(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):wt.isObject(t)||r&&r["Content-Type"]==="application/json"?(Tg(r,"application/json"),NN(t)):t}],transformResponse:[function(t){var r=this.transitional||sc.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||i&&wt.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?SN(a,this,"E_JSON_PARSE"):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};wt.forEach(["delete","get","head"],function(t){sc.headers[t]={}});wt.forEach(["post","put","patch"],function(t){sc.headers[t]=wt.merge(CN)});var uc=sc,PN=nr,RN=uc,AN=function(t,r,n){var i=this||RN;return PN.forEach(n,function(a){t=a.call(i,t,r)}),t},Yb=function(t){return!!(t&&t.__CANCEL__)},wg=nr,Mf=AN,ON=Yb,LN=uc,kN=ac;function Df(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kN("canceled")}var FN=function(t){Df(t),t.headers=t.headers||{},t.data=Mf.call(t,t.data,t.headers,t.transformRequest),t.headers=wg.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),wg.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||LN.adapter;return r(t).then(function(i){return Df(t),i.data=Mf.call(t,i.data,i.headers,t.transformResponse),i},function(i){return ON(i)||(Df(t),i&&i.response&&(i.response.data=Mf.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Kt=nr,Kb=function(t,r){r=r||{};var n={};function i(c,f){return Kt.isPlainObject(c)&&Kt.isPlainObject(f)?Kt.merge(c,f):Kt.isPlainObject(f)?Kt.merge({},f):Kt.isArray(f)?f.slice():f}function o(c){if(Kt.isUndefined(r[c])){if(!Kt.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function a(c){if(!Kt.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(Kt.isUndefined(r[c])){if(!Kt.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,r[c])}function u(c){if(c in r)return i(t[c],r[c]);if(c in t)return i(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return Kt.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||o,d=h(f);Kt.isUndefined(d)&&h!==u||(n[f]=d)}),n},Zb={version:"0.24.0"},UN=Zb.version,Lv={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Lv[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Sg={};Lv.transitional=function(t,r,n){function i(o,a){return"[Axios v"+UN+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,s){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!Sg[a]&&(Sg[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function BN(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new TypeError("option "+o+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+o)}}var MN={assertOptions:BN,validators:Lv},Jb=nr,DN=zb,Cg=rN,Ig=FN,lc=Kb,Qb=MN,Di=Qb.validators;function ks(e){this.defaults=e,this.interceptors={request:new Cg,response:new Cg}}ks.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=lc(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&Qb.assertOptions(r,{silentJSONParsing:Di.transitional(Di.boolean),forcedJSONParsing:Di.transitional(Di.boolean),clarifyTimeoutError:Di.transitional(Di.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(i=i&&h.synchronous,n.unshift(h.fulfilled,h.rejected))});var o=[];this.interceptors.response.forEach(function(h){o.push(h.fulfilled,h.rejected)});var a;if(!i){var s=[Ig,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(o),a=Promise.resolve(t);s.length;)a=a.then(s.shift(),s.shift());return a}for(var u=t;n.length;){var l=n.shift(),c=n.shift();try{u=l(u)}catch(f){c(f);break}}try{a=Ig(u)}catch(f){return Promise.reject(f)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};ks.prototype.getUri=function(t){return t=lc(this.defaults,t),DN(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};Jb.forEach(["delete","get","head","options"],function(t){ks.prototype[t]=function(r,n){return this.request(lc(n||{},{method:t,url:r,data:(n||{}).data}))}});Jb.forEach(["post","put","patch"],function(t){ks.prototype[t]=function(r,n,i){return this.request(lc(i||{},{method:t,url:r,data:n}))}});var GN=ks,$N=ac;function Ro(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var r=this;this.promise.then(function(n){if(!!r._listeners){var i,o=r._listeners.length;for(i=0;i{a.trace("Logged to cloud.",void 0,!1)}).catch(s=>{a.error("Logging to cloud failed!",void 0,!1)})}clog(t,r,n,i,o,a){const s={all:7,ALL:7,TRACE:6,DEBUG:5,INFO:4,WARN:3,ERROR:2,FATAL:1,NONE:0,none:0};s[n]<=s[this.level]&&(console.log("%c%s%c%s%c%s%c %s","color:white;background-color:"+i,"["+n+"]",""," ","color:"+i,"["+o.toLocaleString()+"]","",t),r&&(console.log(r),console.log("------------------------"))),a===void 0&&this.upload(t,r,n,o),a!==void 0&&a&&this.upload(t,r,n,o)}trace(t,r,n){const i=new Date,o="TRACE",a="#005CAF";this.clog(t,r,o,a,i,n)}debug(t,r,n){const i=new Date,o="DEBUG",a="#0089A7";this.clog(t,r,o,a,i,n)}info(t,r,n){const i=new Date,o="INFO",a="#00896C";this.clog(t,r,o,a,i,n)}warn(t,r,n){const i=new Date,o="WARN",a="#DDA52D";this.clog(t,r,o,a,i,n)}error(t,r,n){const i=new Date,o="ERROR",a="#AB3B3A";this.clog(t,r,o,a,i,n)}fatal(t,r,n){const i=new Date,o="FATAL",a="#E16B8C";this.clog(t,r,o,a,i,n)}}var ZN=KN;const pe=new ZN;var en=(e=>(e[e.slow=0]="slow",e[e.normal=1]="normal",e[e.fast=2]="fast",e))(en||{}),za=(e=>(e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e))(za||{});const tE={saveData:[],optionData:{slPage:1,volumeMain:100,textSpeed:en.normal,autoSpeed:en.normal,textSize:za.medium,vocalVolume:100,bgmVolume:25},appreciationData:{bgm:[],cg:[]},quickSaveData:null},rE=Iv({name:"userData",initialState:tE,reducers:{setUserData:(e,t)=>{const{key:r,value:n}=t.payload;e[r]=n},unlockCgInUserData:(e,t)=>{const{name:r,url:n,series:i}=t.payload;let o=!1;e.appreciationData.cg.forEach(a=>{r===a.name&&(o=!0,a.url=n,a.series=i)}),o||e.appreciationData.cg.push(t.payload)},unlockBgmInUserData:(e,t)=>{const{name:r,url:n,series:i}=t.payload;let o=!1;e.appreciationData.bgm.forEach(a=>{r===a.name&&(o=!0,a.url=n,a.series=i)}),o||e.appreciationData.bgm.push(t.payload)},resetUserData:(e,t)=>{Object.assign(e,t.payload)},setOptionData:(e,t)=>{const{key:r,value:n}=t.payload;e.optionData[r]=n},setSlPage:(e,t)=>{e.optionData.slPage=t.payload},setFastSave:(e,t)=>{e.quickSaveData=t.payload}}}),{setUserData:JN,resetUserData:kv,setOptionData:ar,setSlPage:nE,unlockCgInUserData:QN,unlockBgmInUserData:eP,setFastSave:tP}=rE.actions;var rP=rE.reducer;const Ot=iE(()=>{const e=Y.getState().userData;cn.exports.setItem(Pr.gameKey,e).then(()=>{pe.info("\u5199\u5165\u672C\u5730\u5B58\u50A8")})},100),Rl=iE(()=>{cn.exports.getItem(Pr.gameKey).then(e=>{if(!e||!oE(e)){pe.warn("\u73B0\u5728\u91CD\u7F6E\u6570\u636E"),Ot();return}Y.dispatch(kv(e))})},100);function iE(e,t){let r;function n(...i){clearTimeout(r);let o;return r=setTimeout(()=>{o=e.apply(n,i)},t),o}return n}const nP=()=>{const e=Y.getState().userData;cn.exports.setItem(Pr.gameKey,e).then(()=>{cn.exports.getItem(Pr.gameKey).then(t=>{if(!t){Ot();return}Y.dispatch(kv(t))}),pe.info("\u540C\u6B65\u672C\u5730\u5B58\u50A8")})};function oE(e){let t=!0;for(const r in tE)e.hasOwnProperty(r)||(t=!1);return t}async function iP(){const e=Y.getState().userData;return await cn.exports.setItem(Pr.gameKey,e)}async function aE(){const e=await cn.exports.getItem(Pr.gameKey);if(!e||!oE(e)){const t=Y.getState().userData;return pe.warn("\u73B0\u5728\u91CD\u7F6E\u6570\u636E"),await cn.exports.setItem(Pr.gameKey,t)}else Y.dispatch(kv(e))}var ke=(e=>(e[e.Save=0]="Save",e[e.Load=1]="Load",e[e.Option=2]="Option",e))(ke||{});const oP={showBacklog:!1,showStarter:!0,showTitle:!0,showMenuPanel:!1,showTextBox:!0,currentMenuTag:ke.Option,titleBg:"",titleBgm:"",showExtra:!1},sE=Iv({name:"gui",initialState:oP,reducers:{setVisibility:(e,t)=>{Rl();const{component:r,visibility:n}=t.payload;e[r]=n},setMenuPanelTag:(e,t)=>{Rl(),e.currentMenuTag=t.payload},setGuiAsset:(e,t)=>{const{asset:r,value:n}=t.payload;e[r]=n}}}),{setVisibility:nt,setMenuPanelTag:mi,setGuiAsset:Pg}=sE.actions;var aP=sE.reducer;const Y=kI({reducer:{stage:MI,GUI:aP,userData:rP}});function cc(e){Y.dispatch(tt({key:"bgm",value:e}))}const uE={currentSentenceId:0,sceneStack:[],currentScene:{sceneName:"",sceneUrl:"",sentenceList:[],assetsList:[],subSceneList:[]}},ie=uE;var Ye=(e=>(e[e.background=0]="background",e[e.bgm=1]="bgm",e[e.figure=2]="figure",e[e.scene=3]="scene",e[e.tex=4]="tex",e[e.vocal=5]="vocal",e[e.video=6]="video",e))(Ye||{});const Ct=(e,t)=>{if(e.match("http://")||e.match("https://"))return e;{let r;switch(t){case 0:r=`./game/background/${e}`;break;case 3:r=`./game/scene/${e}`;break;case 5:r=`./game/vocal/${e}`;break;case 2:r=`./game/figure/${e}`;break;case 1:r=`./game/bgm/${e}`;break;case 6:r=`./game/video/${e}`;break;default:r="";break}return r}};var Fv={exports:{}},lE=function(t,r){return function(){for(var i=new Array(arguments.length),o=0;o=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([i]):r[n]=r[n]?r[n]+", "+i:i}}),r},Ag=qt,BP=Ag.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(o){var a=o;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(a){var s=Ag.isString(a)?i(a):a;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function Mv(e){this.message=e}Mv.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Mv.prototype.__CANCEL__=!0;var hc=Mv,uu=qt,MP=NP,DP=PP,GP=dE,$P=kP,jP=UP,HP=BP,$f=mE,VP=vE,XP=hc,Og=function(t){return new Promise(function(n,i){var o=t.data,a=t.headers,s=t.responseType,u;function l(){t.cancelToken&&t.cancelToken.unsubscribe(u),t.signal&&t.signal.removeEventListener("abort",u)}uu.isFormData(o)&&delete a["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";a.Authorization="Basic "+btoa(f+":"+h)}var d=$P(t.baseURL,t.url);c.open(t.method.toUpperCase(),GP(d,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function v(){if(!!c){var p="getAllResponseHeaders"in c?jP(c.getAllResponseHeaders()):null,m=!s||s==="text"||s==="json"?c.responseText:c.response,g={data:m,status:c.status,statusText:c.statusText,headers:p,config:t,request:c};MP(function(w){n(w),l()},function(w){i(w),l()},g),c=null}}if("onloadend"in c?c.onloadend=v:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(v)},c.onabort=function(){!c||(i($f("Request aborted",t,"ECONNABORTED",c)),c=null)},c.onerror=function(){i($f("Network Error",t,null,c)),c=null},c.ontimeout=function(){var m=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",g=t.transitional||VP;t.timeoutErrorMessage&&(m=t.timeoutErrorMessage),i($f(m,t,g.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},uu.isStandardBrowserEnv()){var _=(t.withCredentials||HP(d))&&t.xsrfCookieName?DP.read(t.xsrfCookieName):void 0;_&&(a[t.xsrfHeaderName]=_)}"setRequestHeader"in c&&uu.forEach(a,function(m,g){typeof o=="undefined"&&g.toLowerCase()==="content-type"?delete a[g]:c.setRequestHeader(g,m)}),uu.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),s&&s!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(u=function(p){!c||(i(!p||p&&p.type?new XP("canceled"):p),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(u),t.signal&&(t.signal.aborted?u():t.signal.addEventListener("abort",u))),o||(o=null),c.send(o)})},St=qt,Lg=SP,zP=pE,WP=vE,qP={"Content-Type":"application/x-www-form-urlencoded"};function kg(e,t){!St.isUndefined(e)&&St.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function YP(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Og),e}function KP(e,t,r){if(St.isString(e))try{return(t||JSON.parse)(e),St.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var dc={transitional:WP,adapter:YP(),transformRequest:[function(t,r){return Lg(r,"Accept"),Lg(r,"Content-Type"),St.isFormData(t)||St.isArrayBuffer(t)||St.isBuffer(t)||St.isStream(t)||St.isFile(t)||St.isBlob(t)?t:St.isArrayBufferView(t)?t.buffer:St.isURLSearchParams(t)?(kg(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):St.isObject(t)||r&&r["Content-Type"]==="application/json"?(kg(r,"application/json"),KP(t)):t}],transformResponse:[function(t){var r=this.transitional||dc.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||i&&St.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?zP(a,this,"E_JSON_PARSE"):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};St.forEach(["delete","get","head"],function(t){dc.headers[t]={}});St.forEach(["post","put","patch"],function(t){dc.headers[t]=St.merge(qP)});var Dv=dc,ZP=qt,JP=Dv,QP=function(t,r,n){var i=this||JP;return ZP.forEach(n,function(a){t=a.call(i,t,r)}),t},_E=function(t){return!!(t&&t.__CANCEL__)},Fg=qt,jf=QP,eR=_E,tR=Dv,rR=hc;function Hf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rR("canceled")}var nR=function(t){Hf(t),t.headers=t.headers||{},t.data=jf.call(t,t.data,t.headers,t.transformRequest),t.headers=Fg.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Fg.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||tR.adapter;return r(t).then(function(i){return Hf(t),i.data=jf.call(t,i.data,i.headers,t.transformResponse),i},function(i){return eR(i)||(Hf(t),i&&i.response&&(i.response.data=jf.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Zt=qt,gE=function(t,r){r=r||{};var n={};function i(c,f){return Zt.isPlainObject(c)&&Zt.isPlainObject(f)?Zt.merge(c,f):Zt.isPlainObject(f)?Zt.merge({},f):Zt.isArray(f)?f.slice():f}function o(c){if(Zt.isUndefined(r[c])){if(!Zt.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],r[c])}function a(c){if(!Zt.isUndefined(r[c]))return i(void 0,r[c])}function s(c){if(Zt.isUndefined(r[c])){if(!Zt.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,r[c])}function u(c){if(c in r)return i(t[c],r[c]);if(c in t)return i(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return Zt.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||o,d=h(f);Zt.isUndefined(d)&&h!==u||(n[f]=d)}),n},yE={version:"0.26.1"},iR=yE.version,Gv={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Gv[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Ug={};Gv.transitional=function(t,r,n){function i(o,a){return"[Axios v"+iR+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,s){if(t===!1)throw new Error(i(a," has been removed"+(r?" in "+r:"")));return r&&!Ug[a]&&(Ug[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,s):!0}};function oR(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],a=t[o];if(a){var s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new TypeError("option "+o+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+o)}}var aR={assertOptions:oR,validators:Gv},xE=qt,sR=dE,Bg=TP,Mg=nR,pc=gE,bE=aR,$i=bE.validators;function Fs(e){this.defaults=e,this.interceptors={request:new Bg,response:new Bg}}Fs.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=pc(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&bE.assertOptions(n,{silentJSONParsing:$i.transitional($i.boolean),forcedJSONParsing:$i.transitional($i.boolean),clarifyTimeoutError:$i.transitional($i.boolean)},!1);var i=[],o=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(o=o&&d.synchronous,i.unshift(d.fulfilled,d.rejected))});var a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});var s;if(!o){var u=[Mg,void 0];for(Array.prototype.unshift.apply(u,i),u=u.concat(a),s=Promise.resolve(r);u.length;)s=s.then(u.shift(),u.shift());return s}for(var l=r;i.length;){var c=i.shift(),f=i.shift();try{l=c(l)}catch(h){f(h);break}}try{s=Mg(l)}catch(h){return Promise.reject(h)}for(;a.length;)s=s.then(a.shift(),a.shift());return s};Fs.prototype.getUri=function(t){return t=pc(this.defaults,t),sR(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};xE.forEach(["delete","get","head","options"],function(t){Fs.prototype[t]=function(r,n){return this.request(pc(n||{},{method:t,url:r,data:(n||{}).data}))}});xE.forEach(["post","put","patch"],function(t){Fs.prototype[t]=function(r,n,i){return this.request(pc(i||{},{method:t,url:r,data:n}))}});var uR=Fs,lR=hc;function Ao(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var r=this;this.promise.then(function(n){if(!!r._listeners){var i,o=r._listeners.length;for(i=0;inew Promise(t=>{TE.get(e).then(r=>{const n=r.data.toString();t(n)})});var Z=(e=>(e[e.say=0]="say",e[e.changeBg=1]="changeBg",e[e.changeFigure=2]="changeFigure",e[e.bgm=3]="bgm",e[e.video=4]="video",e[e.pixi=5]="pixi",e[e.pixiInit=6]="pixiInit",e[e.intro=7]="intro",e[e.miniAvatar=8]="miniAvatar",e[e.changeScene=9]="changeScene",e[e.choose=10]="choose",e[e.end=11]="end",e[e.perform_bgAni=12]="perform_bgAni",e[e.perform_FigAni=13]="perform_FigAni",e[e.setBgTransform=14]="setBgTransform",e[e.setFigTransform=15]="setFigTransform",e[e.setBgFilter=16]="setBgFilter",e[e.setFigFilter=17]="setFigFilter",e[e.label=18]="label",e[e.jumpLabel=19]="jumpLabel",e[e.chooseLabel=20]="chooseLabel",e[e.setVar=21]="setVar",e[e.if=22]="if",e[e.callScene=23]="callScene",e[e.showVars=24]="showVars",e[e.unlockCg=25]="unlockCg",e[e.unlockBgm=26]="unlockBgm",e[e.filmMode=27]="filmMode",e))(Z||{});const _R="_FullScreenPerform_main_14crw_2",gR="_FullScreenPerform_element_14crw_9",yR="_fullScreen_video_14crw_17",xR="_introContainer_14crw_25",bR="_introElement_14crw_38",ER="_intro_showSoftly_14crw_1",TR="_videoContainer_14crw_52";var ps={FullScreenPerform_main:_R,FullScreenPerform_element:gR,fullScreen_video:yR,introContainer:xR,introElement:bR,intro_showSoftly:ER,videoContainer:TR},vc={exports:{}},Us={};/** @license React v17.0.2 + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var wR=he.exports,wE=60103;Us.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var Gg=Symbol.for;wE=Gg("react.element"),Us.Fragment=Gg("react.fragment")}var SR=wR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,CR=Object.prototype.hasOwnProperty,IR={key:!0,ref:!0,__self:!0,__source:!0};function SE(e,t,r){var n,i={},o=null,a=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)CR.call(t,n)&&!IR.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:wE,type:e,key:o,ref:a,props:i,_owner:SR.current}}Us.jsx=SE;Us.jsxs=SE;vc.exports=Us;const C=vc.exports.jsx,ne=vc.exports.jsxs,jr=vc.exports.Fragment,NR=e=>{const t=e.content.split(/\|/),r=t.map((o,a)=>C("div",{style:{animationDelay:`${1500*a}ms`},className:ps.introElement,children:o},"introtext"+a+Math.random().toString())),n=C("div",{children:r});Po.render(n,document.getElementById("introContainer"));const i=document.getElementById("introContainer");return i&&(i.style.display="block"),{performName:"introPerform",duration:1e3+1500*t.length,isOver:!1,isHoldOn:!1,stopFunction:()=>{const o=document.getElementById("introContainer");o&&(o.style.display="none")},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0,goNextWhenOver:!0}},PR="_MainStage_main_fcwvo_1",RR="_MainStage_main_container_fcwvo_10",AR="_MainStage_bgContainer_fcwvo_17",OR="_MainStage_showBgSoftly_fcwvo_1",LR="_MainStage_bgContainer_Settled_fcwvo_27",kR="_MainStage_oldBgContainer_fcwvo_37",FR="_MainStage_oldBgFadeout_fcwvo_1",UR="_MainStage_oldBgContainer_Settled_fcwvo_47";var La={MainStage_main:PR,MainStage_main_container:RR,MainStage_bgContainer:AR,MainStage_showBgSoftly:OR,MainStage_bgContainer_Settled:LR,MainStage_oldBgContainer:kR,MainStage_oldBgFadeout:FR,MainStage_oldBgContainer_Settled:UR};const BR=e=>{const r=Y.getState().stage.bgName,n=Y.dispatch;return n(tt({key:"oldBgName",value:r})),n(tt({key:"bgName",value:e.content})),{performName:"none",duration:1e3,isOver:!1,isHoldOn:!1,stopFunction:()=>{const i=document.getElementById("MainStage_bg_MainContainer");i&&(i.className=La.MainStage_bgContainer_Settled)},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},MR=e=>{let t="center",r=e.content;for(const i of e.args)i.key==="left"&&i.value===!0&&(t="left"),i.key==="right"&&i.value===!0&&(t="right"),i.key==="clear"&&i.value===!0&&(r=""),r==="none"&&(r="");const n=Y.dispatch;switch(t){case"center":n(tt({key:"figName",value:r}));break;case"left":n(tt({key:"figNameLeft",value:r}));break;case"right":n(tt({key:"figNameRight",value:r}));break}return{performName:"none",duration:0,isOver:!1,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}},DR=e=>{let t=e.content;return(e.content==="none"||e.content==="")&&(t=""),Y.dispatch(tt({key:"miniAvatar",value:t})),{performName:"none",duration:0,isOver:!1,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},er=[],GR="_TextBox_EventHandler_1295f_2",$R="_TextBox_main_1295f_10",jR="_showSoftly_1295f_1",HR="_TextBox_textElement_1295f_37",VR="_TextBox_textElement_start_1295f_42",XR="_TextDelayShow_1295f_1",zR="_TextBox_textElement_Settled_1295f_47",WR="_TextBox_showName_1295f_51",qR="_miniAvatarContainer_1295f_67",YR="_miniAvatarImg_1295f_75";var Tr={TextBox_EventHandler:GR,TextBox_main:$R,showSoftly:jR,TextBox_textElement:HR,TextBox_textElement_start:VR,TextDelayShow:XR,TextBox_textElement_Settled:zR,TextBox_showName:WR,miniAvatarContainer:qR,miniAvatarImg:YR};const KR="_TextBox_EventHandler_449dq_2",ZR="_TextBox_main_449dq_10",JR="_showSoftly_449dq_1",QR="_TextBox_textElement_449dq_38",eA="_TextBox_textElement_start_449dq_43",tA="_TextDelayShow_449dq_1",rA="_TextBox_textElement_Settled_449dq_48",nA="_TextBox_showName_449dq_52",iA="_miniAvatarContainer_449dq_68",oA="_miniAvatarImg_449dq_76";var Yu={TextBox_EventHandler:KR,TextBox_main:ZR,showSoftly:JR,TextBox_textElement:QR,TextBox_textElement_start:eA,TextDelayShow:tA,TextBox_textElement_Settled:rA,TextBox_showName:nA,miniAvatarContainer:iA,miniAvatarImg:oA};const mc=()=>Math.random().toString().substring(0,10),ee={performList:[],timeoutList:[],isAuto:!1,isFast:!1,autoInterval:null,fastInterval:null,autoTimeout:null,currentPixi:null},_c=e=>{for(let t=0;t{pe.debug("\u5355\u6B21\u64AD\u653E\u8BED\u97F3");const t=mc();let r="";for(const i of e.args)i.key==="vocal"&&(r=i.value.toString());let n=document.getElementById("currentVocal");n!==null&&(n.currentTime=0,n.pause()),Y.dispatch(tt({key:"vocal",value:r})),setTimeout(()=>{let i=document.getElementById("currentVocal");if(i!==null){i.currentTime=0;const o={performName:t,duration:1e3*60*60,isOver:!1,isHoldOn:!0,stopFunction:()=>{i.oncanplay=()=>{},i.pause()},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0};ee.performList.push(o),i.oncanplay=()=>{i.play()},i.onended=()=>{for(const a of ee.performList)a.performName===t&&(a.isOver=!0,a.stopFunction(),_c(a.performName))}}},1)},Bs={textInitialDelay:80},CE=e=>{const t=Y.getState().stage,r=t.enableFilm===""?Tr:Yu,n=Y.getState().userData,i=Y.dispatch;let o=e.content,a=Math.random().toString(),s=!1,u=!1;e.args.forEach(v=>{v.key==="concat"&&v.value===!0&&(a=t.currentDialogKey,o=t.showText+o,s=!0),v.key==="notend"&&v.value===!0&&(u=!0)}),i(tt(s?{key:"currentConcatDialogPrev",value:t.showText}:{key:"currentConcatDialogPrev",value:""})),i(tt({key:"showText",value:o})),i(tt({key:"vocal",value:""})),i(tt({key:"currentDialogKey",value:a}));const c=(Bs.textInitialDelay-20*n.optionData.textSpeed)*e.content.length;let f=t.showName;for(const v of e.args)v.key==="speaker"&&(f=v.value),v.key==="clear"&&v.value===!0&&(f=""),v.key==="vocal"&&aA(e);i(tt({key:"showName",value:f})),setTimeout(()=>{[...document.querySelectorAll("."+r.TextBox_textElement_start)].forEach(p=>{p.className=r.TextBox_textElement})},0);const h=mc();let d=750-n.optionData.textSpeed*250;return u&&(d=0),{performName:h,duration:c+d,isOver:!1,isHoldOn:!1,stopFunction:()=>{[...document.querySelectorAll("."+r.TextBox_textElement)].forEach(p=>{p.className=r.TextBox_textElement_Settled})},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0,goNextWhenOver:u}},sA={performName:"",duration:100,isOver:!1,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0};function uA(){this.__data__=[],this.size=0}var lA=uA;function cA(e,t){return e===t||e!==e&&t!==t}var IE=cA,fA=IE;function hA(e,t){for(var r=e.length;r--;)if(fA(e[r][0],t))return r;return-1}var gc=hA,dA=gc,pA=Array.prototype,vA=pA.splice;function mA(e){var t=this.__data__,r=dA(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():vA.call(t,r,1),--this.size,!0}var _A=mA,gA=gc;function yA(e){var t=this.__data__,r=gA(t,e);return r<0?void 0:t[r][1]}var xA=yA,bA=gc;function EA(e){return bA(this.__data__,e)>-1}var TA=EA,wA=gc;function SA(e,t){var r=this.__data__,n=wA(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var CA=SA,IA=lA,NA=_A,PA=xA,RA=TA,AA=CA;function Xo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=kL}var UE=FL,UL=xc,BL=UE,ML=Ds,DL="[object Arguments]",GL="[object Array]",$L="[object Boolean]",jL="[object Date]",HL="[object Error]",VL="[object Function]",XL="[object Map]",zL="[object Number]",WL="[object Object]",qL="[object RegExp]",YL="[object Set]",KL="[object String]",ZL="[object WeakMap]",JL="[object ArrayBuffer]",QL="[object DataView]",ek="[object Float32Array]",tk="[object Float64Array]",rk="[object Int8Array]",nk="[object Int16Array]",ik="[object Int32Array]",ok="[object Uint8Array]",ak="[object Uint8ClampedArray]",sk="[object Uint16Array]",uk="[object Uint32Array]",Ve={};Ve[ek]=Ve[tk]=Ve[rk]=Ve[nk]=Ve[ik]=Ve[ok]=Ve[ak]=Ve[sk]=Ve[uk]=!0;Ve[DL]=Ve[GL]=Ve[JL]=Ve[$L]=Ve[QL]=Ve[jL]=Ve[HL]=Ve[VL]=Ve[XL]=Ve[zL]=Ve[WL]=Ve[qL]=Ve[YL]=Ve[KL]=Ve[ZL]=!1;function lk(e){return ML(e)&&BL(e.length)&&!!Ve[UL(e)]}var ck=lk;function fk(e){return function(t){return e(t)}}var Vv=fk,vs={exports:{}};(function(e,t){var r=NE,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(vs,vs.exports);var hk=ck,dk=Vv,Yg=vs.exports,Kg=Yg&&Yg.isTypedArray,pk=Kg?dk(Kg):hk,vk=pk,mk=vL,_k=CL,gk=Hv,yk=Al.exports,xk=LL,bk=vk,Ek=Object.prototype,Tk=Ek.hasOwnProperty;function wk(e,t){var r=gk(e),n=!r&&_k(e),i=!r&&!n&&yk(e),o=!r&&!n&&!i&&bk(e),a=r||n||i||o,s=a?mk(e.length,String):[],u=s.length;for(var l in e)(t||Tk.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||xk(l,u)))&&s.push(l);return s}var BE=wk,Sk=Object.prototype;function Ck(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Sk;return e===r}var Xv=Ck;function Ik(e,t){return function(r){return e(t(r))}}var ME=Ik,Nk=ME,Pk=Nk(Object.keys,Object),Rk=Pk,Ak=Xv,Ok=Rk,Lk=Object.prototype,kk=Lk.hasOwnProperty;function Fk(e){if(!Ak(e))return Ok(e);var t=[];for(var r in Object(e))kk.call(e,r)&&r!="constructor"&&t.push(r);return t}var Uk=Fk,Bk=RE,Mk=UE;function Dk(e){return e!=null&&Mk(e.length)&&!Bk(e)}var DE=Dk,Gk=BE,$k=Uk,jk=DE;function Hk(e){return jk(e)?Gk(e):$k(e)}var zv=Hk,Vk=Tc,Xk=zv;function zk(e,t){return e&&Vk(t,Xk(t),e)}var Wk=zk;function qk(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Yk=qk,Kk=Ms,Zk=Xv,Jk=Yk,Qk=Object.prototype,eF=Qk.hasOwnProperty;function tF(e){if(!Kk(e))return Jk(e);var t=Zk(e),r=[];for(var n in e)n=="constructor"&&(t||!eF.call(e,n))||r.push(n);return r}var rF=tF,nF=BE,iF=rF,oF=DE;function aF(e){return oF(e)?nF(e,!0):iF(e)}var Wv=aF,sF=Tc,uF=Wv;function lF(e,t){return e&&sF(t,uF(t),e)}var cF=lF,Ed={exports:{}};(function(e,t){var r=qr,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var f=l.length,h=s?s(f):new l.constructor(f);return l.copy(h),h}e.exports=u})(Ed,Ed.exports);function fF(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{let t=sA,r=CE;const n=new Map;if(Pw.forEach(a=>{n.set(a.scriptType,a.scriptFunction)}),n.has(e.command)&&(r=n.get(e.command)),t=r(e),t.performName==="none")return;const i=Y.getState().stage,o=_t(i);o.PerformList.push({isHoldOn:t.isHoldOn,script:e}),Y.dispatch(Vo(o)),t.stopTimeout=setTimeout(()=>{t.isOver=!0,t.isHoldOn||(_c(t.performName),t.goNextWhenOver&&ZE())},t.duration),ee.performList.push(t)};function ZE(){let e=!1;ee.performList.forEach(t=>{t.blockingAuto()&&!t.isOver&&(e=!0)}),e?setTimeout(ZE,100):jt()}const kB=e=>{Wr(e.sceneUrl).then(t=>{ie.currentScene=Yr(t,e.sceneName,e.sceneUrl),ie.currentSentenceId=e.continueLine+1,pe.debug("\u73B0\u5728\u6062\u590D\u573A\u666F\uFF0C\u6062\u590D\u540E\u573A\u666F\uFF1A",ie.currentScene),jt()})};var Zv={},Ol={document:{}},JE=Object.prototype.hasOwnProperty,QE=function(e){return wc(e)?e.toLowerCase():e},Wa=Array.isArray,FB=function(e){return wc(e)?e.replace(/[A-Z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)|32)}):e};"I".toLowerCase()!=="i"&&(QE=FB);var UB,Jv=Object.prototype.toString,eT=Object.getPrototypeOf,Xf=oT("ng");Ol.angular||(Ol.angular={});function BB(e){if(e==null||tm(e))return!1;if(Wa(e)||wc(e)||UB)return!0;var t="length"in Object(e)&&e.length;return em(t)&&(t>=0&&(t-1 in e||e instanceof Array)||typeof e.item=="function")}function et(e,t,r){var n,i;if(e)if(nT(e))for(n in e)n!=="prototype"&&n!=="length"&&n!=="name"&&e.hasOwnProperty(n)&&t.call(r,e[n],n,e);else if(Wa(e)||BB(e)){var o=typeof e!="object";for(n=0,i=e.length;n=0)return"...";t.push(n)}return n})}function hy(e){return typeof e=="function"?e.toString().replace(/ \{[\s\S]*$/,""):DB(e)?"undefined":typeof e!="string"?WB(e):e}function oT(e,t){return t=t||Error,function(){var r=2,n=arguments,i=n[0],o="["+(e?e+":":"")+i+"] ",a=n[1],s,u;for(o+=a.replace(/\{\d+\}/g,function(l){var c=+l.slice(1,-1),f=c+r;return f <= >= && || ! = |".split(" "),function(e){Zu[e]=!0});var qB={n:` +`,f:"\f",r:"\r",t:" ",v:"\v","'":"'",'"':'"'},Nd=function(t){this.options=t};Nd.prototype={constructor:Nd,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index=55296&&r<=56319&&n>=56320&&n<=57343?e+t:e},isExpOperator:function(e){return e==="-"||e==="+"||this.isNumber(e)},throwError:function(e,t,r){r=r||this.index;var n=to(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,r)+"]":" "+r;throw ro("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,n,this.text)},readNumber:function(){for(var e="",t=this.index;this.index0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:M.Program,body:e}},expressionStatement:function(){return{type:M.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!lT(e))throw ro("lval","Trying to assign a value to a non l-value");e={type:M.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e=this.logicalOR(),t,r;return this.expect("?")&&(t=this.expression(),this.consume(":"))?(r=this.expression(),{type:M.ConditionalExpression,test:e,alternate:t,consequent:r}):e},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:M.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:M.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e=this.relational(),t;t=this.expect("==","!=","===","!==");)e={type:M.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var e=this.additive(),t;t=this.expect("<",">","<=",">=");)e={type:M.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var e=this.multiplicative(),t;t=this.expect("+","-");)e={type:M.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var e=this.unary(),t;t=this.expect("*","/","%");)e={type:M.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:M.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=HB(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:M.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)t.text==="("?(e={type:M.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):t.text==="["?(e={type:M.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):t.text==="."?e={type:M.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],r={type:M.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return r},parseArguments:function(){var e=[];if(this.peekToken().text!==")")do e.push(this.filterChain());while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:M.Identifier,name:e.text}},constant:function(){return{type:M.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if(this.peekToken().text!=="]")do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:M.ArrayExpression,elements:e}},object:function(){var e=[],t;if(this.peekToken().text!=="}")do{if(this.peek("}"))break;t={type:M.Property,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.expression()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.expression(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.expression()):this.throwError("invalid key",this.peek()),e.push(t)}while(this.expect(","));return this.consume("}"),{type:M.ObjectExpression,properties:e}},throwError:function(e,t){throw ro("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(this.tokens.length===0)throw ro("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(this.tokens.length===0)throw ro("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,r,n){return this.peekAhead(0,e,t,r,n)},peekAhead:function(e,t,r,n,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===r||a===n||a===i||!t&&!r&&!n&&!i)return o}return!1},expect:function(e,t,r,n){var i=this.peek(e,t,r,n);return i?(this.tokens.shift(),i):!1},selfReferential:{this:{type:M.ThisExpression},$locals:{type:M.LocalsExpression}}};function YB(e,t){return typeof e!="undefined"?e:t}function sT(e,t){return typeof e=="undefined"?t:typeof t=="undefined"?e:e+t}function KB(e,t){var r=e(t);if(!r)throw new Error("Filter '"+t+"' is not defined");return!r.$stateful}function bt(e,t){var r,n,i;switch(e.type){case M.Program:r=!0,et(e.body,function(o){bt(o.expression,t),r=r&&o.expression.constant}),e.constant=r;break;case M.Literal:e.constant=!0,e.toWatch=[];break;case M.UnaryExpression:bt(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case M.BinaryExpression:bt(e.left,t),bt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case M.LogicalExpression:bt(e.left,t),bt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case M.ConditionalExpression:bt(e.test,t),bt(e.alternate,t),bt(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case M.Identifier:e.constant=!1,e.toWatch=[e];break;case M.MemberExpression:bt(e.object,t),e.computed&&bt(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case M.CallExpression:i=e.filter?KB(t,e.callee.name):!1,r=i,n=[],et(e.arguments,function(o){bt(o,t),r=r&&o.constant,o.constant||n.push.apply(n,o.toWatch)}),e.constant=r,e.toWatch=i?n:[e];break;case M.AssignmentExpression:bt(e.left,t),bt(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case M.ArrayExpression:r=!0,n=[],et(e.elements,function(o){bt(o,t),r=r&&o.constant,o.constant||n.push.apply(n,o.toWatch)}),e.constant=r,e.toWatch=n;break;case M.ObjectExpression:r=!0,n=[],et(e.properties,function(o){bt(o.value,t),r=r&&o.value.constant&&!o.computed,o.value.constant||n.push.apply(n,o.value.toWatch)}),e.constant=r,e.toWatch=n;break;case M.ThisExpression:e.constant=!1,e.toWatch=[];break;case M.LocalsExpression:e.constant=!1,e.toWatch=[];break}}function uT(e){if(e.length===1){var t=e[0].expression,r=t.toWatch;return r.length!==1||r[0]!==t?r:void 0}}function lT(e){return e.type===M.Identifier||e.type===M.MemberExpression}function cT(e){if(e.body.length===1&&lT(e.body[0].expression))return{type:M.AssignmentExpression,left:e.body[0].expression,right:{type:M.NGValueParameter},operator:"="}}function fT(e){return e.body.length===0||e.body.length===1&&(e.body[0].expression.type===M.Literal||e.body[0].expression.type===M.ArrayExpression||e.body[0].expression.type===M.ObjectExpression)}function hT(e){return e.constant}function dT(e,t){this.astBuilder=e,this.$filter=t}dT.prototype={compile:function(e){var t=this,r=this.astBuilder.ast(e);this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},bt(r,t.$filter);var n="",i;if(this.stage="assign",i=cT(r)){this.state.computing="assign";var o=this.nextId();this.recurse(i,o),this.return_(o),n="fn.assign="+this.generateFunction("assign","s,v,l")}var a=uT(r.body);t.stage="inputs",et(a,function(l,c){var f="fn"+c;t.state[f]={vars:[],body:[],own:{}},t.state.computing=f;var h=t.nextId();t.recurse(l,h),t.return_(h),t.state.inputs.push(f),l.watchId=c}),this.state.computing="fn",this.stage="main",this.recurse(r);var s='"'+this.USE+" "+this.STRICT+`"; +`+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+n+this.watchFns()+"return fn;",u=new Function("$filter","getStringValue","ifDefined","plus",s)(this.$filter,aT,YB,sT);return this.state=this.stage=void 0,u.ast=r,u.literal=fT(r),u.constant=hT(r),u},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,r=this;return et(t,function(n){e.push("var "+n+"="+r.generateFunction(n,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return et(this.state.filters,function(r,n){e.push(r+"=$filter("+t.escape(n)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,r,n,i,o){var a,s,u=this,l,c,f;if(n=n||Qv,!o&&to(e.watchId)){t=t||this.nextId(),this.if_("i",this.lazyAssign(t,this.unsafeComputedMember("i",e.watchId)),this.lazyRecurse(e,t,r,n,i,!0));return}switch(e.type){case M.Program:et(e.body,function(d,v){u.recurse(d.expression,void 0,void 0,function(_){s=_}),v!==e.body.length-1?u.current().body.push(s,";"):u.return_(s)});break;case M.Literal:c=this.escape(e.value),this.assign(t,c),n(t||c);break;case M.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(d){s=d}),c=e.operator+"("+this.ifDefined(s,0)+")",this.assign(t,c),n(c);break;case M.BinaryExpression:this.recurse(e.left,void 0,void 0,function(d){a=d}),this.recurse(e.right,void 0,void 0,function(d){s=d}),e.operator==="+"?c=this.plus(a,s):e.operator==="-"?c=this.ifDefined(a,0)+e.operator+this.ifDefined(s,0):c="("+a+")"+e.operator+"("+s+")",this.assign(t,c),n(c);break;case M.LogicalExpression:t=t||this.nextId(),u.recurse(e.left,t),u.if_(e.operator==="&&"?t:u.not(t),u.lazyRecurse(e.right,t)),n(t);break;case M.ConditionalExpression:t=t||this.nextId(),u.recurse(e.test,t),u.if_(t,u.lazyRecurse(e.alternate,t),u.lazyRecurse(e.consequent,t)),n(t);break;case M.Identifier:t=t||this.nextId();var h=u.current().inAssignment;r&&(h?r.context=this.assign(this.nextId(),"s"):r.context=u.stage==="inputs"?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),r.computed=!1,r.name=e.name),u.if_(u.stage==="inputs"||u.not(u.getHasOwnProperty("l",e.name)),function(){u.if_(u.stage==="inputs"||u.and_("s",u.or_(u.isNull(u.nonComputedMember("s",e.name)),u.hasOwnProperty_("s",e.name))),function(){i&&i!==1&&u.if_(u.isNull(u.nonComputedMember("s",e.name)),u.lazyAssign(u.nonComputedMember("s",e.name),"{}")),u.assign(t,u.nonComputedMember("s",e.name))})},t&&u.lazyAssign(t,u.nonComputedMember("l",e.name))),n(t);break;case M.MemberExpression:a=r&&(r.context=this.nextId())||this.nextId(),t=t||this.nextId(),u.recurse(e.object,a,void 0,function(){var d=null,v=u.current().inAssignment;e.computed?(s=u.nextId(),v||u.state.computing==="assign"?d=u.unsafeComputedMember(a,s):d=u.computedMember(a,s)):(v||u.state.computing==="assign"?d=u.unsafeNonComputedMember(a,e.property.name):d=u.nonComputedMember(a,e.property.name),s=e.property.name),e.computed&&e.property.type===M.Literal&&u.recurse(e.property,s),u.if_(u.and_(u.notNull(a),u.or_(u.isNull(d),u.hasOwnProperty_(a,s,e.computed))),function(){e.computed?(e.property.type!==M.Literal&&u.recurse(e.property,s),i&&i!==1&&u.if_(u.not(d),u.lazyAssign(d,"{}")),u.assign(t,d),r&&(r.computed=!0,r.name=s)):(i&&i!==1&&u.if_(u.isNull(d),u.lazyAssign(d,"{}")),u.assign(t,d),r&&(r.computed=!1,r.name=e.property.name))},function(){u.assign(t,"undefined")}),n(t)},!!i);break;case M.CallExpression:t=t||this.nextId(),e.filter?(s=u.filter(e.callee.name),l=[],et(e.arguments,function(d){var v=u.nextId();u.recurse(d,v),l.push(v)}),c=s+".call("+s+","+l.join(",")+")",u.assign(t,c),n(t)):(s=u.nextId(),a={},l=[],u.recurse(e.callee,s,a,function(){u.if_(u.notNull(s),function(){if(et(e.arguments,function(v){u.recurse(v,e.constant?void 0:u.nextId(),void 0,function(_){l.push(_)})}),a.name){var d=u.member(a.context,a.name,a.computed);c="("+d+" === null ? null : "+u.unsafeMember(a.context,a.name,a.computed)+".call("+[a.context].concat(l).join(",")+"))"}else c=s+"("+l.join(",")+")";u.assign(t,c)},function(){u.assign(t,"undefined")}),n(t)}));break;case M.AssignmentExpression:s=this.nextId(),a={},u.current().inAssignment=!0,this.recurse(e.left,void 0,a,function(){u.if_(u.and_(u.notNull(a.context),u.or_(u.hasOwnProperty_(a.context,a.name),u.isNull(u.member(a.context,a.name,a.computed)))),function(){u.recurse(e.right,s),c=u.member(a.context,a.name,a.computed)+e.operator+s,u.assign(t,c),n(t||c)}),u.current().inAssignment=!1,u.recurse(e.right,s),u.current().inAssignment=!0},1),u.current().inAssignment=!1;break;case M.ArrayExpression:l=[],et(e.elements,function(d){u.recurse(d,e.constant?void 0:u.nextId(),void 0,function(v){l.push(v)})}),c="["+l.join(",")+"]",this.assign(t,c),n(t||c);break;case M.ObjectExpression:l=[],f=!1,et(e.properties,function(d){d.computed&&(f=!0)}),f?(t=t||this.nextId(),this.assign(t,"{}"),et(e.properties,function(d){d.computed?(a=u.nextId(),u.recurse(d.key,a)):a=d.key.type===M.Identifier?d.key.name:""+d.key.value,s=u.nextId(),u.recurse(d.value,s),u.assign(u.unsafeMember(t,a,d.computed),s)})):(et(e.properties,function(d){u.recurse(d.value,e.constant?void 0:u.nextId(),void 0,function(v){l.push(u.escape(d.key.type===M.Identifier?d.key.name:""+d.key.value)+":"+v)})}),c="{"+l.join(",")+"}",this.assign(t,c)),n(t||c);break;case M.ThisExpression:this.assign(t,"s"),n(t||"s");break;case M.LocalsExpression:this.assign(t,"l"),n(t||"l");break;case M.NGValueParameter:this.assign(t,"v"),n(t||"v");break}},getHasOwnProperty:function(e,t){var r=e+"."+t,n=this.current().own;return n.hasOwnProperty(r)||(n[r]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),n[r]},assign:function(e,t){if(!!e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,r){if(e===!0)t();else{var n=this.current().body;n.push("if(",e,"){"),t(),n.push("}"),r&&(n.push("else{"),r(),n.push("}"))}},or_:function(e,t){return"("+e+") || ("+t+")"},hasOwnProperty_:function(e,t,r){return r?"(Object.prototype.hasOwnProperty.call("+e+","+t+"))":"(Object.prototype.hasOwnProperty.call("+e+",'"+t+"'))"},and_:function(e,t){return"("+e+") && ("+t+")"},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var r=/^[$_a-zA-Z][$_a-zA-Z0-9]*$/,n=/[^$_a-zA-Z0-9]/g,i="";return r.test(t)?i=e+"."+t:(t=t.replace(n,this.stringEscapeFn),i=e+'["'+t+'"]'),i},unsafeComputedMember:function(e,t){return e+"["+t+"]"},unsafeNonComputedMember:function(e,t){return this.nonComputedMember(e,t)},computedMember:function(e,t){return this.state.computing==="assign"?this.unsafeComputedMember(e,t):"("+e+".hasOwnProperty("+t+") ? "+e+"["+t+"] : null)"},unsafeMember:function(e,t,r){return r?this.unsafeComputedMember(e,t):this.unsafeNonComputedMember(e,t)},member:function(e,t,r){return r?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,r,n,i,o){var a=this;return function(){a.recurse(e,t,r,n,i,o)}},lazyAssign:function(e,t){var r=this;return function(){r.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(wc(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(em(e))return e.toString();if(e===!0)return"true";if(e===!1)return"false";if(e===null)return"null";if(typeof e=="undefined")return"undefined";throw ro("esc","IMPOSSIBLE")},nextId:function(e,t){var r="v"+this.state.nextId++;return e||this.current().vars.push(r+(t?"="+t:"")),r},current:function(){return this.state[this.state.computing]}};function pT(e,t){this.astBuilder=e,this.$filter=t}pT.prototype={compile:function(e){var t=this,r=this.astBuilder.ast(e);bt(r,t.$filter);var n,i;(n=cT(r))&&(i=this.recurse(n));var o=uT(r.body),a;o&&(a=[],et(o,function(l,c){var f=t.recurse(l);l.input=f,a.push(f),l.watchId=c}));var s=[];et(r.body,function(l){s.push(t.recurse(l.expression))});var u=r.body.length===0?Qv:r.body.length===1?s[0]:function(l,c){var f;return et(s,function(h){f=h(l,c)}),f};return i&&(u.assign=function(l,c,f){return i(l,f,c)}),a&&(u.inputs=a),u.ast=r,u.literal=fT(r),u.constant=hT(r),u},recurse:function(e,t,r){var n,i,o=this,a;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case M.Literal:return this.value(e.value,t);case M.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case M.BinaryExpression:return n=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](n,i,t);case M.LogicalExpression:return n=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](n,i,t);case M.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case M.Identifier:return o.identifier(e.name,t,r);case M.MemberExpression:return n=this.recurse(e.object,!1,!!r),e.computed||(i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(n,i,t,r):this.nonComputedMember(n,i,t,r);case M.CallExpression:return a=[],et(e.arguments,function(s){a.push(o.recurse(s))}),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(s,u,l,c){for(var f=[],h=0;h":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)>t(n,i,o,a);return r?{value:s}:s}},"binary<=":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)<=t(n,i,o,a);return r?{value:s}:s}},"binary>=":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)>=t(n,i,o,a);return r?{value:s}:s}},"binary&&":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)&&t(n,i,o,a);return r?{value:s}:s}},"binary||":function(e,t,r){return function(n,i,o,a){var s=e(n,i,o,a)||t(n,i,o,a);return r?{value:s}:s}},"ternary?:":function(e,t,r,n){return function(i,o,a,s){var u=e(i,o,a,s)?t(i,o,a,s):r(i,o,a,s);return n?{value:u}:u}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,r){return function(n,i,o,a){var s=i&&e in i?i:n;r&&r!==1&&s&&s[e]==null&&(s[e]={});var u=s?s[e]:void 0;return t?{context:s,name:e,value:u}:u}},computedMember:function(e,t,r,n){return function(i,o,a,s){var u=e(i,o,a,s),l,c;return u!=null&&(l=t(i,o,a,s),l=aT(l),n&&n!==1&&u&&!u[l]&&(u[l]={}),Object.prototype.hasOwnProperty.call(u,l)&&(c=u[l])),r?{context:u,name:l,value:c}:c}},nonComputedMember:function(e,t,r,n){return function(i,o,a,s){var u=e(i,o,a,s);n&&n!==1&&u&&u[t]==null&&(u[t]={});var l=void 0;return u!=null&&Object.prototype.hasOwnProperty.call(u,t)&&(l=u[t]),r?{context:u,name:t,value:l}:l}},inputs:function(e,t){return function(r,n,i,o){return o?o[t]:e(r,n,i)}}};var Pd=function(t,r,n){this.lexer=t,this.$filter=r,this.options=n,this.ast=new M(t,n),this.astCompiler=n.csp?new pT(this.ast,r):new dT(this.ast,r)};Pd.prototype={constructor:Pd,parse:function(e){return this.astCompiler.compile(e)}};Zv.Lexer=Nd;Zv.Parser=Pd;var vT=Zv,ZB={},JB=vT.Lexer,QB=vT.Parser;function qa(e,t){t=t||{};var r;if(typeof e!="string")throw new TypeError("src must be a string, instead saw '"+typeof e+"'");var n={csp:!1,expensiveChecks:!0,literals:{true:!0,false:!1,null:null,undefined:void 0}},i=new JB(t),o=new QB(i,function(s){return ZB[s]},n);return qa.cache?(r=qa.cache[e],r||(r=qa.cache[e]=o.parse(e)),r):o.parse(e)}qa.cache=Object.create(null);var mT=qa;const eM=e=>{if(e.content.match(/=/)){const t=e.content.split(/=/)[0],r=e.content.split(/=/)[1];if(r.match(/[+\-*\/()]/)){const i=r.split(/([+\-*\/()])/g).map(s=>s.match(/[a-zA-Z]/)?_T(s).toString():s).reduce((s,u)=>s+u,""),a=mT(i)();Y.dispatch(ma({key:t,value:a}))}else r.match(/true|false/)?(r.match(/true/)&&Y.dispatch(ma({key:t,value:!0})),r.match(/false/)&&Y.dispatch(ma({key:t,value:!1}))):isNaN(Number(r))?Y.dispatch(ma({key:t,value:r})):Y.dispatch(ma({key:t,value:Number(r)}));pe.debug("\u8BBE\u7F6E\u53D8\u91CF\uFF1A",{key:t,value:Y.getState().stage.GameVar[t]})}return{performName:"none",duration:0,isOver:!1,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}};function _T(e){let t=0;return Y.getState().stage.GameVar.hasOwnProperty(e)&&(t=Y.getState().stage.GameVar[e]),t}function tM(e){return mT(e)()}const gT=()=>{if(ie.currentSentenceId>ie.currentScene.sentenceList.length-1){if(ie.sceneStack.length!==0){const s=ie.sceneStack.pop();s!==void 0&&kB(s)}return}const e=ie.currentScene.sentenceList[ie.currentSentenceId];let t=!0,r=!1,n="";if(e.args.forEach(s=>{s.key==="when"&&(r=!0,n=s.value.toString())}),r){const u=n.split(/([+\-*\/()><=!]|>=|<=)/g).map(l=>l.match(/[a-zA-Z]/)?l.match(/true/)||l.match(/false/)?l:_T(l).toString():l).reduce((l,c)=>l+c,"");t=tM(u)}if(!t){pe.warn("\u4E0D\u6EE1\u8DB3\u6761\u4EF6\uFF0C\u8DF3\u8FC7\u672C\u53E5\uFF01"),ie.currentSentenceId++,jt();return}KE(e);let i=!1;e.args.forEach(s=>{s.key==="next"&&s.value&&(i=!0)});let o=e.command===Z.say;e.args.forEach(s=>{s.key==="notend"&&s.value===!0&&(o=!1)});let a;if(i){ie.currentSentenceId++,gT();return}setTimeout(()=>{if(a=Y.getState().stage,pe.debug("\u672C\u6761\u8BED\u53E5\u6267\u884C\u7ED3\u679C",a),o){const s=_t(a);s.PerformList.forEach(l=>{l.script.args.forEach(c=>{c.key==="concat"&&(c.value=!1,l.script.content=s.showText)})});const u={currentStageState:s,saveScene:{currentSentenceId:ie.currentSentenceId,sceneStack:_t(ie.sceneStack),sceneName:ie.currentScene.sceneName,sceneUrl:ie.currentScene.sceneUrl}};er.push(u)}},0),ie.currentSentenceId++},jt=()=>{if(Y.getState().GUI.showTitle)return;let t=!1;if(ee.performList.forEach(i=>{i.blockingNext()&&!i.isOver&&(t=!0)}),t){pe.warn("next \u88AB\u963B\u585E\uFF01");return}let r=!0;if(ee.performList.forEach(i=>{i.isHoldOn||(r=!1)}),r){const i=Y.getState().stage,o=_t(i);for(let a=0;a{Wr(e).then(r=>{ie.currentScene=Yr(r,t,e),ie.currentSentenceId=0,pe.debug("\u73B0\u5728\u5207\u6362\u573A\u666F\uFF0C\u5207\u6362\u540E\u7684\u7ED3\u679C\uFF1A",ie),jt()})},dy=e=>{const t=e.content.split("/"),r=t[t.length-1];return yT(e.content,r),{performName:"none",duration:0,isOver:!1,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},xT=e=>{const t=ie.currentSentenceId;let r=t;ie.currentScene.sentenceList.forEach((n,i)=>{n.command===Z.label&&n.content===e&&i>=t&&(r=i)}),ie.currentSentenceId=r,setTimeout(jt,1)},rM="_Choose_Main_1da9y_2",nM="_Choose_item_1da9y_14";var py={Choose_Main:rM,Choose_item:nM};const iM=e=>{const n=e.content.split("|").map(i=>i.split(":")).map((i,o)=>C("div",{className:py.Choose_item,onClick:()=>{i[1].match(/\./)?yT(i[1],i[0]):xT(i[1]),_c("choose")},children:i[0]},i[0]+o));return Po.render(C("div",{className:py.Choose_Main,children:n}),document.getElementById("chooseContainer")),{performName:"choose",duration:1e3*60*60*24,isOver:!1,isHoldOn:!1,stopFunction:()=>{Po.render(C("div",{}),document.getElementById("chooseContainer"))},blockingNext:()=>!0,blockingAuto:()=>!0,stopTimeout:void 0}},rm=e=>{e&&er.splice(0,er.length),ie.currentSentenceId=0,ie.sceneStack=[],ie.currentScene=uE.currentScene;for(const o of ee.performList)o.stopFunction();ee.performList=[];for(const o of ee.timeoutList)clearTimeout(o);ee.timeoutList=[],ee.isAuto=!1,ee.isFast=!1;const t=ee.autoInterval;t!==null&&clearInterval(t),ee.autoInterval=null;const r=ee.fastInterval;r!==null&&clearInterval(r),ee.fastInterval=null;const n=ee.autoTimeout;n!==null&&clearInterval(n),ee.autoTimeout=null;const i=_t(Db);Y.dispatch(Vo(i))},oM=e=>{rm(!0);const t=Y.dispatch,r=Ct("start.txt",Ye.scene);return Wr(r).then(n=>{ie.currentScene=Yr(n,"start.txt",r)}),t(nt({component:"showTitle",visibility:!0})),{performName:"none",duration:0,isOver:!1,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},aM=e=>{let t=e.content;return cc(t),{performName:"none",duration:0,isOver:!1,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},sM=e=>{const t=mc();return Po.render(C("div",{className:ps.videoContainer,children:C("video",{className:ps.fullScreen_video,id:"playVideoElement",src:e.content,autoPlay:!0})}),document.getElementById("videoContainer")),setTimeout(()=>{let r=document.getElementById("playVideoElement");if(r!==null){r.currentTime=0;const n={performName:t,duration:1e3*60*60,isOver:!1,isHoldOn:!1,stopFunction:()=>{r.oncanplay=()=>{};const i=Y.getState().userData,o=i.optionData.volumeMain,a=o*.01*i.optionData.vocalVolume*.01,s=o*.01*i.optionData.bgmVolume*.01,u=document.getElementById("currentBgm");u&&(u.volume=s.toString());const l=document.getElementById("currentVocal");u&&(l.volume=a.toString()),Po.render(C("div",{}),document.getElementById("videoContainer"))},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0,goNextWhenOver:!0};ee.performList.push(n),r.oncanplay=()=>{const a=document.getElementById("currentBgm");a&&(a.volume=0 .toString());const s=document.getElementById("currentVocal");a&&(s.volume=0 .toString()),r.play()},r.onended=()=>{for(const i of ee.performList)i.performName===t&&(i.isOver=!0,i.stopFunction(),_c(i.performName),jt())}}},1),{performName:"none",duration:0,isOver:!1,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},uM=e=>{const t=e.content;return setTimeout(()=>{const r=document.getElementById("MainStage_bg_MainContainer");r&&(r.style.animation="none",setTimeout(()=>{r.style.animation=t},1))},50),{performName:"bgAni",duration:0,isOver:!1,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},lM=e=>{const t=e.content;return e.args.forEach(r=>{if(r.key==="left"&&r.value){const n=document.getElementById("figLeftContainer");n&&(n.style.animation="none",setTimeout(()=>{n.style.animation=t},1))}if(r.key==="center"&&r.value){const n=document.getElementById("figCenterContainer");n&&(n.style.animation="none",setTimeout(()=>{n.style.animation=t},1))}if(r.key==="right"&&r.value){const n=document.getElementById("figRightContainer");n&&(n.style.animation="none",setTimeout(()=>{n.style.animation=t},1))}}),{performName:"figAni",duration:0,isOver:!1,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},cM=e=>{const r=Y.getState().stage.effects,n=_t(r);let i=!1;return n.forEach(o=>{o.target==="MainStage_bg_MainContainer"&&(i=!0,o.transform=e.content)}),i||n.push({target:"MainStage_bg_MainContainer",transform:e.content,filter:""}),Y.dispatch(tt({key:"effects",value:n})),{performName:"none",duration:0,isOver:!1,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},fM=e=>{const r=Y.getState().stage.effects,n=_t(r);let i=!1;return n.forEach(o=>{o.target==="MainStage_bg_MainContainer"&&(pe.warn("\u5DF2\u5B58\u5728\u6548\u679C\uFF0C\u6B63\u5728\u4FEE\u6539"),i=!0,o.filter=e.content)}),i||n.push({target:"MainStage_bg_MainContainer",transform:"",filter:e.content}),Y.dispatch(tt({key:"effects",value:n})),{performName:"none",duration:0,isOver:!1,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},hM=e=>{const r=Y.getState().stage.effects,n=_t(r);let i="figCenterContainer";e.args.forEach(a=>{a.key==="left"&&a.value&&(i="figLeftContainer"),a.key==="right"&&a.value&&(i="figRightContainer")});let o=!1;return n.forEach(a=>{a.target===i&&(o=!0,a.transform=e.content)}),o||n.push({target:i,transform:e.content,filter:""}),Y.dispatch(tt({key:"effects",value:n})),{performName:"none",duration:0,isOver:!1,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},dM=e=>{const r=Y.getState().stage.effects,n=_t(r);let i="figCenterContainer";e.args.forEach(a=>{a.key==="left"&&a.value&&(i="figLeftContainer"),a.key==="right"&&a.value&&(i="figRightContainer")});let o=!1;return n.forEach(a=>{a.target===i&&(pe.warn("\u5DF2\u5B58\u5728\u6548\u679C\uFF0C\u6B63\u5728\u4FEE\u6539"),o=!0,a.filter=e.content)}),o||n.push({target:i,transform:"",filter:e.content}),Y.dispatch(tt({key:"effects",value:n})),{performName:"none",duration:0,isOver:!1,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},pM=e=>(ee.performList.forEach(t=>{if(t.performName.match(/PixiPerform/)){pe.warn("pixi \u88AB\u811A\u672C\u91CD\u65B0\u521D\u59CB\u5316",t.performName);for(let i=0;i{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0});function vM(e){var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){return t.reject(r)})})}function mM(e){var t=this;return new t(function(r,n){if(!(e&&typeof e.length!="undefined"))return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i=Array.prototype.slice.call(e);if(i.length===0)return r([]);var o=i.length;function a(u,l){if(l&&(typeof l=="object"||typeof l=="function")){var c=l.then;if(typeof c=="function"){c.call(l,function(f){a(u,f)},function(f){i[u]={status:"rejected",reason:f},--o===0&&r(i)});return}}i[u]={status:"fulfilled",value:l},--o===0&&r(i)}for(var s=0;s0?1:-1});Number.isInteger||(Number.isInteger=function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t});globalThis.ArrayBuffer||(globalThis.ArrayBuffer=Array);globalThis.Float32Array||(globalThis.Float32Array=Array);globalThis.Uint32Array||(globalThis.Uint32Array=Array);globalThis.Uint16Array||(globalThis.Uint16Array=Array);globalThis.Uint8Array||(globalThis.Uint8Array=Array);globalThis.Int32Array||(globalThis.Int32Array=Array);var Yf=/iPhone/i,my=/iPod/i,_y=/iPad/i,gy=/\biOS-universal(?:.+)Mac\b/i,Kf=/\bAndroid(?:.+)Mobile\b/i,yy=/Android/i,ji=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,lu=/Silk/i,Kr=/Windows Phone/i,xy=/\bWindows(?:.+)ARM\b/i,by=/BlackBerry/i,Ey=/BB10/i,Ty=/Opera Mini/i,wy=/\b(CriOS|Chrome)(?:.+)Mobile/i,Sy=/Mobile(?:.+)Firefox\b/i,Cy=function(e){return typeof e!="undefined"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof MSStream=="undefined"};function TM(e){return function(t){return t.test(e)}}function wM(e){var t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator!="undefined"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var r=t.userAgent,n=r.split("[FBAN");typeof n[1]!="undefined"&&(r=n[0]),n=r.split("Twitter"),typeof n[1]!="undefined"&&(r=n[0]);var i=TM(r),o={apple:{phone:i(Yf)&&!i(Kr),ipod:i(my),tablet:!i(Yf)&&(i(_y)||Cy(t))&&!i(Kr),universal:i(gy),device:(i(Yf)||i(my)||i(_y)||i(gy)||Cy(t))&&!i(Kr)},amazon:{phone:i(ji),tablet:!i(ji)&&i(lu),device:i(ji)||i(lu)},android:{phone:!i(Kr)&&i(ji)||!i(Kr)&&i(Kf),tablet:!i(Kr)&&!i(ji)&&!i(Kf)&&(i(lu)||i(yy)),device:!i(Kr)&&(i(ji)||i(lu)||i(Kf)||i(yy))||i(/\bokhttp\b/i)},windows:{phone:i(Kr),tablet:i(xy),device:i(Kr)||i(xy)},other:{blackberry:i(by),blackberry10:i(Ey),opera:i(Ty),firefox:i(Sy),chrome:i(wy),device:i(by)||i(Ey)||i(Ty)||i(Sy)||i(wy)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}/*! + * @pixi/settings - v6.3.0 + * Compiled Wed, 23 Mar 2022 18:58:56 UTC + * + * @pixi/settings is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var Ur=wM(globalThis.navigator);function SM(e){var t=!0;if(Ur.tablet||Ur.phone){if(Ur.apple.device){var r=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(r){var n=parseInt(r[1],10);n<11&&(t=!1)}}if(Ur.android.device){var r=navigator.userAgent.match(/Android\s([0-9.]*)/);if(r){var n=parseInt(r[1],10);n<7&&(t=!1)}}}return t?e:4}function CM(){return!Ur.apple.device}/*! + * @pixi/constants - v6.3.0 + * Compiled Wed, 23 Mar 2022 18:58:56 UTC + * + * @pixi/constants is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var Iy;(function(e){e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2"})(Iy||(Iy={}));var Ny;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS"})(Ny||(Ny={}));var Py;(function(e){e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL"})(Py||(Py={}));var Ry;(function(e){e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR"})(Ry||(Ry={}));var Ay;(function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(Ay||(Ay={}));var Oy;(function(e){e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(Oy||(Oy={}));var Ly;(function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(Ly||(Ly={}));var ky;(function(e){e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT"})(ky||(ky={}));var Fy;(function(e){e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT"})(Fy||(Fy={}));var Od;(function(e){e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR"})(Od||(Od={}));var Ld;(function(e){e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(Ld||(Ld={}));var kd;(function(e){e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL"})(kd||(kd={}));var Uy;(function(e){e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(Uy||(Uy={}));var By;(function(e){e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT"})(By||(By={}));var Fd;(function(e){e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL"})(Fd||(Fd={}));var Ya;(function(e){e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp"})(Ya||(Ya={}));var My;(function(e){e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE"})(My||(My={}));var Ud;(function(e){e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH"})(Ud||(Ud={}));var Dy;(function(e){e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(Dy||(Dy={}));var oe={MIPMAP_TEXTURES:kd.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:Ud.NONE,SPRITE_MAX_TEXTURES:SM(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:Fd.AUTO,GC_MAX_IDLE:60*60,GC_MAX_CHECK_COUNT:60*10,WRAP_MODE:Ld.CLAMP,SCALE_MODE:Od.LINEAR,PRECISION_VERTEX:Ya.HIGH,PRECISION_FRAGMENT:Ur.apple.device?Ya.HIGH:Ya.MEDIUM,CAN_UPLOAD_SAME_BUFFER:CM(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},wT={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(u,l,c){this.fn=u,this.context=l,this.once=c||!1}function o(u,l,c,f,h){if(typeof c!="function")throw new TypeError("The listener must be a function");var d=new i(c,f||u,h),v=r?r+l:l;return u._events[v]?u._events[v].fn?u._events[v]=[u._events[v],d]:u._events[v].push(d):(u._events[v]=d,u._eventsCount++),u}function a(u,l){--u._eventsCount===0?u._events=new n:delete u._events[l]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],c,f;if(this._eventsCount===0)return l;for(f in c=this._events)t.call(c,f)&&l.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},s.prototype.listeners=function(l){var c=r?r+l:l,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,d=f.length,v=new Array(d);h80*r){s=l=e[0],u=c=e[1];for(var v=r;vl&&(l=f),h>c&&(c=h);d=Math.max(l-s,c-u),d=d!==0?1/d:0}return _s(o,a,r,s,u,d),a}function ST(e,t,r,n,i){var o,a;if(i===Dd(e,t,r,n)>0)for(o=t;o=t;o-=n)a=Gy(o,e[o],e[o+1],a);return a&&Cc(a,a.next)&&(ys(a),a=a.next),a}function Vn(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(Cc(r,r.next)||rt(r.prev,r,r.next)===0)){if(ys(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function _s(e,t,r,n,i,o,a){if(!!e){!a&&o&&UM(e,n,i,o);for(var s=e,u,l;e.prev!==e.next;){if(u=e.prev,l=e.next,o?NM(e,n,i,o):IM(e)){t.push(u.i/r),t.push(e.i/r),t.push(l.i/r),ys(e),e=l.next,s=l.next;continue}if(e=l,e===s){a?a===1?(e=PM(Vn(e),t,r),_s(e,t,r,n,i,o,2)):a===2&&RM(e,t,r,n,i,o):_s(Vn(e),t,r,n,i,o,1);break}}}}function IM(e){var t=e.prev,r=e,n=e.next;if(rt(t,r,n)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(no(t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y)&&rt(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function NM(e,t,r,n){var i=e.prev,o=e,a=e.next;if(rt(i,o,a)>=0)return!1;for(var s=i.xo.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,c=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,f=Bd(s,u,t,r,n),h=Bd(l,c,t,r,n),d=e.prevZ,v=e.nextZ;d&&d.z>=f&&v&&v.z<=h;){if(d!==e.prev&&d!==e.next&&no(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&rt(d.prev,d,d.next)>=0||(d=d.prevZ,v!==e.prev&&v!==e.next&&no(i.x,i.y,o.x,o.y,a.x,a.y,v.x,v.y)&&rt(v.prev,v,v.next)>=0))return!1;v=v.nextZ}for(;d&&d.z>=f;){if(d!==e.prev&&d!==e.next&&no(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&rt(d.prev,d,d.next)>=0)return!1;d=d.prevZ}for(;v&&v.z<=h;){if(v!==e.prev&&v!==e.next&&no(i.x,i.y,o.x,o.y,a.x,a.y,v.x,v.y)&&rt(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0}function PM(e,t,r){var n=e;do{var i=n.prev,o=n.next.next;!Cc(i,o)&&CT(i,n,n.next,o)&&gs(i,o)&&gs(o,i)&&(t.push(i.i/r),t.push(n.i/r),t.push(o.i/r),ys(n),ys(n.next),n=e=o),n=n.next}while(n!==e);return Vn(n)}function RM(e,t,r,n,i,o){var a=e;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&DM(a,s)){var u=IT(a,s);a=Vn(a,a.next),u=Vn(u,u.next),_s(a,t,r,n,i,o),_s(u,t,r,n,i,o);return}s=s.next}a=a.next}while(a!==e)}function AM(e,t,r,n){var i=[],o,a,s,u,l;for(o=0,a=t.length;o=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=n&&s>o){if(o=s,s===n){if(i===r.y)return r;if(i===r.next.y)return r.next}a=r.x=r.x&&r.x>=l&&n!==r.x&&no(ia.x||r.x===a.x&&FM(a,r)))&&(a=r,f=h)),r=r.next;while(r!==u);return a}function FM(e,t){return rt(e.prev,e,t.prev)<0&&rt(t.next,e,e.next)<0}function UM(e,t,r,n){var i=e;do i.z===null&&(i.z=Bd(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,BM(i)}function BM(e){var t,r,n,i,o,a,s,u,l=1;do{for(r=e,e=null,o=null,a=0;r;){for(a++,n=r,s=0,t=0;t0||u>0&&n;)s!==0&&(u===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,u--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;r=n}o.nextZ=null,l*=2}while(a>1);return e}function Bd(e,t,r,n,i){return e=32767*(e-r)*i,t=32767*(t-n)*i,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function MM(e){var t=e,r=e;do(t.x=0&&(e-a)*(n-s)-(r-a)*(t-s)>=0&&(r-a)*(o-s)-(i-a)*(n-s)>=0}function DM(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!GM(e,t)&&(gs(e,t)&&gs(t,e)&&$M(e,t)&&(rt(e.prev,e,t.prev)||rt(e,t.prev,t))||Cc(e,t)&&rt(e.prev,e,e.next)>0&&rt(t.prev,t,t.next)>0)}function rt(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function Cc(e,t){return e.x===t.x&&e.y===t.y}function CT(e,t,r,n){var i=fu(rt(e,t,r)),o=fu(rt(e,t,n)),a=fu(rt(r,n,e)),s=fu(rt(r,n,t));return!!(i!==o&&a!==s||i===0&&cu(e,r,t)||o===0&&cu(e,n,t)||a===0&&cu(r,e,n)||s===0&&cu(r,t,n))}function cu(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function fu(e){return e>0?1:e<0?-1:0}function GM(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&CT(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function gs(e,t){return rt(e.prev,e,e.next)<0?rt(e,t,e.next)>=0&&rt(e,e.prev,t)>=0:rt(e,t,e.prev)<0||rt(e,e.next,t)<0}function $M(e,t){var r=e,n=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do r.y>o!=r.next.y>o&&r.next.y!==r.y&&i<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function IT(e,t){var r=new Md(e.i,e.x,e.y),n=new Md(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function Gy(e,t,r,n){var i=new Md(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function ys(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Md(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}Sc.deviation=function(e,t,r,n){var i=t&&t.length,o=i?t[0]*r:e.length,a=Math.abs(Dd(e,0,o,r));if(i)for(var s=0,u=t.length;s0&&(n+=e[i-1].length,r.holes.push(n))}return r};var NT=nm.exports,Gd={exports:{}};/*! https://mths.be/punycode v1.3.2 by @mathias */(function(e,t){(function(r){var n=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,o=typeof Sr=="object"&&Sr;(o.global===o||o.window===o||o.self===o)&&(r=o);var a,s=2147483647,u=36,l=1,c=26,f=38,h=700,d=72,v=128,_="-",p=/^xn--/,m=/[^\x20-\x7E]/,g=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=u-l,T=Math.floor,b=String.fromCharCode,R;function O(U){throw RangeError(x[U])}function P(U,L){for(var G=U.length,q=[];G--;)q[G]=L(U[G]);return q}function k(U,L){var G=U.split("@"),q="";G.length>1&&(q=G[0]+"@",U=G[1]),U=U.replace(g,".");var le=U.split("."),ve=P(le,L).join(".");return q+ve}function K(U){for(var L=[],G=0,q=U.length,le,ve;G=55296&&le<=56319&&G65535&&(L-=65536,G+=b(L>>>10&1023|55296),L=56320|L&1023),G+=b(L),G}).join("")}function J(U){return U-48<10?U-22:U-65<26?U-65:U-97<26?U-97:u}function Te(U,L){return U+22+75*(U<26)-((L!=0)<<5)}function z(U,L,G){var q=0;for(U=G?T(U/h):U>>1,U+=T(U/L);U>w*c>>1;q+=u)U=T(U/w);return T(q+(w+1)*U/(U+f))}function W(U){var L=[],G=U.length,q,le=0,ve=v,ye=d,Pe,De,Ie,Ze,Ne,Be,_e,gt,Me;for(Pe=U.lastIndexOf(_),Pe<0&&(Pe=0),De=0;De=128&&O("not-basic"),L.push(U.charCodeAt(De));for(Ie=Pe>0?Pe+1:0;Ie=G&&O("invalid-input"),_e=J(U.charCodeAt(Ie++)),(_e>=u||_e>T((s-le)/Ne))&&O("overflow"),le+=_e*Ne,gt=Be<=ye?l:Be>=ye+c?c:Be-ye,!(_eT(s/Me)&&O("overflow"),Ne*=Me;q=L.length+1,ye=z(le-Ze,q,Ze==0),T(le/q)>s-ve&&O("overflow"),ve+=T(le/q),le%=q,L.splice(le++,0,ve)}return X(L)}function fe(U){var L,G,q,le,ve,ye,Pe,De,Ie,Ze,Ne,Be=[],_e,gt,Me,be;for(U=K(U),_e=U.length,L=v,G=0,ve=d,ye=0;ye<_e;++ye)Ne=U[ye],Ne<128&&Be.push(b(Ne));for(q=le=Be.length,le&&Be.push(_);q<_e;){for(Pe=s,ye=0;ye<_e;++ye)Ne=U[ye],Ne>=L&&NeT((s-G)/gt)&&O("overflow"),G+=(Pe-L)*gt,L=Pe,ye=0;ye<_e;++ye)if(Ne=U[ye],Nes&&O("overflow"),Ne==L){for(De=G,Ie=u;Ze=Ie<=ve?l:Ie>=ve+c?c:Ie-ve,!(De0&&s>a&&(s=a);for(var u=0;u=0?(f=l.substr(0,c),h=l.substr(c+1)):(f=l,h=""),d=decodeURIComponent(f),v=decodeURIComponent(h),HM(i,d)?Array.isArray(i[d])?i[d].push(v):i[d]=[i[d],v]:i[d]=v}return i},ga=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},XM=function(e,t,r,n){return t=t||"&",r=r||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(i){var o=encodeURIComponent(ga(i))+r;return Array.isArray(e[i])?e[i].map(function(a){return o+encodeURIComponent(ga(a))}).join(t):o+encodeURIComponent(ga(e[i]))}).join(t):n?encodeURIComponent(ga(n))+r+encodeURIComponent(ga(e)):""};xs.decode=xs.parse=VM;xs.encode=xs.stringify=XM;var zM=Gd.exports,Or=jM,WM=Ic,qM=oD,YM=iD;function Nr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var KM=/^([a-z0-9.+-]+:)/i,ZM=/:[0-9]*$/,JM=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,QM=["<",">",'"',"`"," ","\r",` +`," "],eD=["{","}","|","\\","^","`"].concat(QM),$d=["'"].concat(eD),$y=["%","/","?",";","#"].concat($d),jy=["/","?","#"],tD=255,Hy=/^[+a-z0-9A-Z_-]{0,63}$/,rD=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,nD={javascript:!0,"javascript:":!0},jd={javascript:!0,"javascript:":!0},bo={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Hd=xs;function Ic(e,t,r){if(e&&Or.isObject(e)&&e instanceof Nr)return e;var n=new Nr;return n.parse(e,t,r),n}Nr.prototype.parse=function(e,t,r){if(!Or.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=n!==-1&&n127?T+="x":T+=w[b];if(!T.match(Hy)){var O=g.slice(0,d),P=g.slice(d+1),k=w.match(rD);k&&(O.push(k[1]),P.unshift(k[2])),P.length&&(s="/"+P.join(".")+s),this.hostname=O.join(".");break}}}this.hostname.length>tD?this.hostname="":this.hostname=this.hostname.toLowerCase(),m||(this.hostname=zM.toASCII(this.hostname));var K=this.port?":"+this.port:"",X=this.hostname||"";this.host=X+K,this.href+=this.host,m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!nD[c])for(var d=0,x=$d.length;d0?r.host.split("@"):!1;T&&(r.auth=T.shift(),r.host=r.hostname=T.shift())}return r.search=e.search,r.query=e.query,(!Or.isNull(r.pathname)||!Or.isNull(r.search))&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!g.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var b=g.slice(-1)[0],R=(r.host||e.host||g.length>1)&&(b==="."||b==="..")||b==="",O=0,P=g.length;P>=0;P--)b=g[P],b==="."?g.splice(P,1):b===".."?(g.splice(P,1),O++):O&&(g.splice(P,1),O--);if(!p&&!m)for(;O--;O)g.unshift("..");p&&g[0]!==""&&(!g[0]||g[0].charAt(0)!=="/")&&g.unshift(""),R&&g.join("/").substr(-1)!=="/"&&g.push("");var k=g[0]===""||g[0]&&g[0].charAt(0)==="/";if(w){r.hostname=r.host=k?"":g.length?g.shift():"";var T=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;T&&(r.auth=T.shift(),r.host=r.hostname=T.shift())}return p=p||r.host&&g.length,p&&!k&&g.unshift(""),g.length?r.pathname=g.join("/"):(r.pathname=null,r.path=null),(!Or.isNull(r.pathname)||!Or.isNull(r.search))&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r};Nr.prototype.parseHost=function(){var e=this.host,t=ZM.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};/*! + * @pixi/constants - v6.3.0 + * Compiled Wed, 23 Mar 2022 18:58:56 UTC + * + * @pixi/constants is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var fn;(function(e){e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2"})(fn||(fn={}));var bs;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS"})(bs||(bs={}));var Ll;(function(e){e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL"})(Ll||(Ll={}));var se;(function(e){e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR"})(se||(se={}));var Ir;(function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(Ir||(Ir={}));var H;(function(e){e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(H||(H={}));var _i;(function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(_i||(_i={}));var ae;(function(e){e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT"})(ae||(ae={}));var kl;(function(e){e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT"})(kl||(kl={}));var an;(function(e){e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR"})(an||(an={}));var un;(function(e){e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(un||(un={}));var hn;(function(e){e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL"})(hn||(hn={}));var Rr;(function(e){e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(Rr||(Rr={}));var xn;(function(e){e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT"})(xn||(xn={}));var Vd;(function(e){e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL"})(Vd||(Vd={}));var Br;(function(e){e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp"})(Br||(Br={}));var Lt;(function(e){e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE"})(Lt||(Lt={}));var pt;(function(e){e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH"})(pt||(pt={}));var $r;(function(e){e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})($r||($r={}));/*! + * @pixi/utils - v6.3.0 + * Compiled Wed, 23 Mar 2022 18:58:56 UTC + * + * @pixi/utils is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var io={parse:WM,format:YM,resolve:qM};oe.RETINA_PREFIX=/@([0-9\.]+)x/;oe.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var Vy=!1,Xy="6.3.0";function aD(e){var t;if(!Vy){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var r=[` + %c %c %c PixiJS `+Xy+" - \u2730 "+e+` \u2730 %c %c http://www.pixijs.com/ %c %c \u2665%c\u2665%c\u2665 + +`,"background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(t=globalThis.console).log.apply(t,r)}else globalThis.console&&globalThis.console.log("PixiJS "+Xy+" - "+e+" - http://www.pixijs.com/");Vy=!0}}var Zf;function sD(){return typeof Zf=="undefined"&&(Zf=function(){var t={stencil:!0,failIfMajorPerformanceCaveat:oe.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!globalThis.WebGLRenderingContext)return!1;var r=document.createElement("canvas"),n=r.getContext("webgl",t)||r.getContext("experimental-webgl",t),i=!!(n&&n.getContextAttributes().stencil);if(n){var o=n.getExtension("WEBGL_lose_context");o&&o.loseContext()}return n=null,i}catch{return!1}}()),Zf}var uD="#f0f8ff",lD="#faebd7",cD="#00ffff",fD="#7fffd4",hD="#f0ffff",dD="#f5f5dc",pD="#ffe4c4",vD="#000000",mD="#ffebcd",_D="#0000ff",gD="#8a2be2",yD="#a52a2a",xD="#deb887",bD="#5f9ea0",ED="#7fff00",TD="#d2691e",wD="#ff7f50",SD="#6495ed",CD="#fff8dc",ID="#dc143c",ND="#00ffff",PD="#00008b",RD="#008b8b",AD="#b8860b",OD="#a9a9a9",LD="#006400",kD="#a9a9a9",FD="#bdb76b",UD="#8b008b",BD="#556b2f",MD="#ff8c00",DD="#9932cc",GD="#8b0000",$D="#e9967a",jD="#8fbc8f",HD="#483d8b",VD="#2f4f4f",XD="#2f4f4f",zD="#00ced1",WD="#9400d3",qD="#ff1493",YD="#00bfff",KD="#696969",ZD="#696969",JD="#1e90ff",QD="#b22222",e6="#fffaf0",t6="#228b22",r6="#ff00ff",n6="#dcdcdc",i6="#f8f8ff",o6="#daa520",a6="#ffd700",s6="#808080",u6="#008000",l6="#adff2f",c6="#808080",f6="#f0fff0",h6="#ff69b4",d6="#cd5c5c",p6="#4b0082",v6="#fffff0",m6="#f0e68c",_6="#fff0f5",g6="#e6e6fa",y6="#7cfc00",x6="#fffacd",b6="#add8e6",E6="#f08080",T6="#e0ffff",w6="#fafad2",S6="#d3d3d3",C6="#90ee90",I6="#d3d3d3",N6="#ffb6c1",P6="#ffa07a",R6="#20b2aa",A6="#87cefa",O6="#778899",L6="#778899",k6="#b0c4de",F6="#ffffe0",U6="#00ff00",B6="#32cd32",M6="#faf0e6",D6="#ff00ff",G6="#800000",$6="#66cdaa",j6="#0000cd",H6="#ba55d3",V6="#9370db",X6="#3cb371",z6="#7b68ee",W6="#00fa9a",q6="#48d1cc",Y6="#c71585",K6="#191970",Z6="#f5fffa",J6="#ffe4e1",Q6="#ffe4b5",e5="#ffdead",t5="#000080",r5="#fdf5e6",n5="#808000",i5="#6b8e23",o5="#ffa500",a5="#ff4500",s5="#da70d6",u5="#eee8aa",l5="#98fb98",c5="#afeeee",f5="#db7093",h5="#ffefd5",d5="#ffdab9",p5="#cd853f",v5="#ffc0cb",m5="#dda0dd",_5="#b0e0e6",g5="#800080",y5="#663399",x5="#ff0000",b5="#bc8f8f",E5="#4169e1",T5="#8b4513",w5="#fa8072",S5="#f4a460",C5="#2e8b57",I5="#fff5ee",N5="#a0522d",P5="#c0c0c0",R5="#87ceeb",A5="#6a5acd",O5="#708090",L5="#708090",k5="#fffafa",F5="#00ff7f",U5="#4682b4",B5="#d2b48c",M5="#008080",D5="#d8bfd8",G5="#ff6347",$5="#40e0d0",j5="#ee82ee",H5="#f5deb3",V5="#ffffff",X5="#f5f5f5",z5="#ffff00",W5="#9acd32",q5={aliceblue:uD,antiquewhite:lD,aqua:cD,aquamarine:fD,azure:hD,beige:dD,bisque:pD,black:vD,blanchedalmond:mD,blue:_D,blueviolet:gD,brown:yD,burlywood:xD,cadetblue:bD,chartreuse:ED,chocolate:TD,coral:wD,cornflowerblue:SD,cornsilk:CD,crimson:ID,cyan:ND,darkblue:PD,darkcyan:RD,darkgoldenrod:AD,darkgray:OD,darkgreen:LD,darkgrey:kD,darkkhaki:FD,darkmagenta:UD,darkolivegreen:BD,darkorange:MD,darkorchid:DD,darkred:GD,darksalmon:$D,darkseagreen:jD,darkslateblue:HD,darkslategray:VD,darkslategrey:XD,darkturquoise:zD,darkviolet:WD,deeppink:qD,deepskyblue:YD,dimgray:KD,dimgrey:ZD,dodgerblue:JD,firebrick:QD,floralwhite:e6,forestgreen:t6,fuchsia:r6,gainsboro:n6,ghostwhite:i6,goldenrod:o6,gold:a6,gray:s6,green:u6,greenyellow:l6,grey:c6,honeydew:f6,hotpink:h6,indianred:d6,indigo:p6,ivory:v6,khaki:m6,lavenderblush:_6,lavender:g6,lawngreen:y6,lemonchiffon:x6,lightblue:b6,lightcoral:E6,lightcyan:T6,lightgoldenrodyellow:w6,lightgray:S6,lightgreen:C6,lightgrey:I6,lightpink:N6,lightsalmon:P6,lightseagreen:R6,lightskyblue:A6,lightslategray:O6,lightslategrey:L6,lightsteelblue:k6,lightyellow:F6,lime:U6,limegreen:B6,linen:M6,magenta:D6,maroon:G6,mediumaquamarine:$6,mediumblue:j6,mediumorchid:H6,mediumpurple:V6,mediumseagreen:X6,mediumslateblue:z6,mediumspringgreen:W6,mediumturquoise:q6,mediumvioletred:Y6,midnightblue:K6,mintcream:Z6,mistyrose:J6,moccasin:Q6,navajowhite:e5,navy:t5,oldlace:r5,olive:n5,olivedrab:i5,orange:o5,orangered:a5,orchid:s5,palegoldenrod:u5,palegreen:l5,paleturquoise:c5,palevioletred:f5,papayawhip:h5,peachpuff:d5,peru:p5,pink:v5,plum:m5,powderblue:_5,purple:g5,rebeccapurple:y5,red:x5,rosybrown:b5,royalblue:E5,saddlebrown:T5,salmon:w5,sandybrown:S5,seagreen:C5,seashell:I5,sienna:N5,silver:P5,skyblue:R5,slateblue:A5,slategray:O5,slategrey:L5,snow:k5,springgreen:F5,steelblue:U5,tan:B5,teal:M5,thistle:D5,tomato:G5,turquoise:$5,violet:j5,wheat:H5,white:V5,whitesmoke:X5,yellow:z5,yellowgreen:W5};function Oo(e,t){return t===void 0&&(t=[]),t[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(e&255)/255,t}function PT(e){var t=e.toString(16);return t="000000".substring(0,6-t.length)+t,"#"+t}function RT(e){return typeof e=="string"&&(e=q5[e.toLowerCase()]||e,e[0]==="#"&&(e=e.slice(1))),parseInt(e,16)}function Y5(){for(var e=[],t=[],r=0;r<32;r++)e[r]=r,t[r]=r;e[se.NORMAL_NPM]=se.NORMAL,e[se.ADD_NPM]=se.ADD,e[se.SCREEN_NPM]=se.SCREEN,t[se.NORMAL]=se.NORMAL_NPM,t[se.ADD]=se.ADD_NPM,t[se.SCREEN]=se.SCREEN_NPM;var n=[];return n.push(t),n.push(e),n}var AT=Y5();function OT(e,t){return AT[t?1:0][e]}function K5(e,t,r,n){return r=r||new Float32Array(4),n||n===void 0?(r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t):(r[0]=e[0],r[1]=e[1],r[2]=e[2]),r[3]=t,r}function im(e,t){if(t===1)return(t*255<<24)+e;if(t===0)return 0;var r=e>>16&255,n=e>>8&255,i=e&255;return r=r*t+.5|0,n=n*t+.5|0,i=i*t+.5|0,(t*255<<24)+(r<<16)+(n<<8)+i}function LT(e,t,r,n){return r=r||new Float32Array(4),r[0]=(e>>16&255)/255,r[1]=(e>>8&255)/255,r[2]=(e&255)/255,(n||n===void 0)&&(r[0]*=t,r[1]*=t,r[2]*=t),r[3]=t,r}function Z5(e,t){t===void 0&&(t=null);var r=e*6;if(t=t||new Uint16Array(r),t.length!==r)throw new Error("Out buffer length is incorrect, got "+t.length+" and expected "+r);for(var n=0,i=0;n>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1}function zy(e){return!(e&e-1)&&!!e}function Wy(e){var t=(e>65535?1:0)<<4;e>>>=t;var r=(e>255?1:0)<<3;return e>>>=r,t|=r,r=(e>15?1:0)<<2,e>>>=r,t|=r,r=(e>3?1:0)<<1,e>>>=r,t|=r,t|e>>1}function Eo(e,t,r){var n=e.length,i;if(!(t>=n||r===0)){r=t+r>n?n-t:r;var o=n-r;for(i=t;i=this.x&&t=this.y&&rt.right?t.right:this.right;if(i<=n)return!1;var o=this.yt.bottom?t.bottom:this.bottom;return a>o}var s=this.left,u=this.right,l=this.top,c=this.bottom;if(u<=s||c<=l)return!1;var f=du[0].set(t.left,t.top),h=du[1].set(t.left,t.bottom),d=du[2].set(t.right,t.top),v=du[3].set(t.right,t.bottom);if(d.x<=f.x||h.y<=f.y)return!1;var _=Math.sign(r.a*r.d-r.b*r.c);if(_===0||(r.apply(f,f),r.apply(h,h),r.apply(d,d),r.apply(v,v),Math.max(f.x,h.x,d.x,v.x)<=s||Math.min(f.x,h.x,d.x,v.x)>=u||Math.max(f.y,h.y,d.y,v.y)<=l||Math.min(f.y,h.y,d.y,v.y)>=c))return!1;var p=_*(h.y-f.y),m=_*(f.x-h.x),g=p*s+m*l,x=p*u+m*l,w=p*s+m*c,T=p*u+m*c;if(Math.max(g,x,w,T)<=p*f.x+m*f.y||Math.min(g,x,w,T)>=p*v.x+m*v.y)return!1;var b=_*(f.y-d.y),R=_*(d.x-f.x),O=b*s+R*l,P=b*u+R*l,k=b*s+R*c,K=b*u+R*c;return!(Math.max(O,P,k,K)<=b*f.x+R*f.y||Math.min(O,P,k,K)>=b*v.x+R*v.y)},e.prototype.pad=function(t,r){return t===void 0&&(t=0),r===void 0&&(r=t),this.x-=t,this.y-=r,this.width+=t*2,this.height+=r*2,this},e.prototype.fit=function(t){var r=Math.max(this.x,t.x),n=Math.min(this.x+this.width,t.x+t.width),i=Math.max(this.y,t.y),o=Math.min(this.y+this.height,t.y+t.height);return this.x=r,this.width=Math.max(n-r,0),this.y=i,this.height=Math.max(o-i,0),this},e.prototype.ceil=function(t,r){t===void 0&&(t=1),r===void 0&&(r=.001);var n=Math.ceil((this.x+this.width-r)*t)/t,i=Math.ceil((this.y+this.height-r)*t)/t;return this.x=Math.floor((this.x+r)*t)/t,this.y=Math.floor((this.y+r)*t)/t,this.width=n-this.x,this.height=i-this.y,this},e.prototype.enlarge=function(t){var r=Math.min(this.x,t.x),n=Math.max(this.x+this.width,t.x+t.width),i=Math.min(this.y,t.y),o=Math.max(this.y+this.height,t.y+t.height);return this.x=r,this.width=n-r,this.y=i,this.height=o-i,this},e.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},e}(),n8=function(){function e(t,r,n){t===void 0&&(t=0),r===void 0&&(r=0),n===void 0&&(n=0),this.x=t,this.y=r,this.radius=n,this.type=at.CIRC}return e.prototype.clone=function(){return new e(this.x,this.y,this.radius)},e.prototype.contains=function(t,r){if(this.radius<=0)return!1;var n=this.radius*this.radius,i=this.x-t,o=this.y-r;return i*=i,o*=o,i+o<=n},e.prototype.getBounds=function(){return new Ce(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)},e.prototype.toString=function(){return"[@pixi/math:Circle x="+this.x+" y="+this.y+" radius="+this.radius+"]"},e}(),i8=function(){function e(t,r,n,i){t===void 0&&(t=0),r===void 0&&(r=0),n===void 0&&(n=0),i===void 0&&(i=0),this.x=t,this.y=r,this.width=n,this.height=i,this.type=at.ELIP}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.contains=function(t,r){if(this.width<=0||this.height<=0)return!1;var n=(t-this.x)/this.width,i=(r-this.y)/this.height;return n*=n,i*=i,n+i<=1},e.prototype.getBounds=function(){return new Ce(this.x-this.width,this.y-this.height,this.width,this.height)},e.prototype.toString=function(){return"[@pixi/math:Ellipse x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},e}(),Ju=function(){function e(){for(var t=arguments,r=[],n=0;nr!=c>r&&t<(l-s)*((r-u)/(c-u))+s;f&&(n=!n)}return n},e.prototype.toString=function(){return"[@pixi/math:Polygon"+("closeStroke="+this.closeStroke)+("points="+this.points.reduce(function(t,r){return t+", "+r},"")+"]")},e}(),o8=function(){function e(t,r,n,i,o){t===void 0&&(t=0),r===void 0&&(r=0),n===void 0&&(n=0),i===void 0&&(i=0),o===void 0&&(o=20),this.x=t,this.y=r,this.width=n,this.height=i,this.radius=o,this.type=at.RREC}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height,this.radius)},e.prototype.contains=function(t,r){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&r>=this.y&&r<=this.y+this.height){var n=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(r>=this.y+n&&r<=this.y+this.height-n||t>=this.x+n&&t<=this.x+this.width-n)return!0;var i=t-(this.x+n),o=r-(this.y+n),a=n*n;if(i*i+o*o<=a||(i=t-(this.x+this.width-n),i*i+o*o<=a)||(o=r-(this.y+this.height-n),i*i+o*o<=a)||(i=t-(this.x+n),i*i+o*o<=a))return!0}return!1},e.prototype.toString=function(){return"[@pixi/math:RoundedRectangle x="+this.x+" y="+this.y+("width="+this.width+" height="+this.height+" radius="+this.radius+"]")},e}(),ao=function(){function e(t,r,n,i){n===void 0&&(n=0),i===void 0&&(i=0),this._x=n,this._y=i,this.cb=t,this.scope=r}return e.prototype.clone=function(t,r){return t===void 0&&(t=this.cb),r===void 0&&(r=this.scope),new e(t,r,this._x,this._y)},e.prototype.set=function(t,r){return t===void 0&&(t=0),r===void 0&&(r=t),(this._x!==t||this._y!==r)&&(this._x=t,this._y=r,this.cb.call(this.scope)),this},e.prototype.copyFrom=function(t){return(this._x!==t.x||this._y!==t.y)&&(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this},e.prototype.copyTo=function(t){return t.set(this._x,this._y),t},e.prototype.equals=function(t){return t.x===this._x&&t.y===this._y},e.prototype.toString=function(){return"[@pixi/math:ObservablePoint x="+0+" y="+0+" scope="+this.scope+"]"},Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),e}(),ft=function(){function e(t,r,n,i,o,a){t===void 0&&(t=1),r===void 0&&(r=0),n===void 0&&(n=0),i===void 0&&(i=1),o===void 0&&(o=0),a===void 0&&(a=0),this.array=null,this.a=t,this.b=r,this.c=n,this.d=i,this.tx=o,this.ty=a}return e.prototype.fromArray=function(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]},e.prototype.set=function(t,r,n,i,o,a){return this.a=t,this.b=r,this.c=n,this.d=i,this.tx=o,this.ty=a,this},e.prototype.toArray=function(t,r){this.array||(this.array=new Float32Array(9));var n=r||this.array;return t?(n[0]=this.a,n[1]=this.b,n[2]=0,n[3]=this.c,n[4]=this.d,n[5]=0,n[6]=this.tx,n[7]=this.ty,n[8]=1):(n[0]=this.a,n[1]=this.c,n[2]=this.tx,n[3]=this.b,n[4]=this.d,n[5]=this.ty,n[6]=0,n[7]=0,n[8]=1),n},e.prototype.apply=function(t,r){r=r||new ze;var n=t.x,i=t.y;return r.x=this.a*n+this.c*i+this.tx,r.y=this.b*n+this.d*i+this.ty,r},e.prototype.applyInverse=function(t,r){r=r||new ze;var n=1/(this.a*this.d+this.c*-this.b),i=t.x,o=t.y;return r.x=this.d*n*i+-this.c*n*o+(this.ty*this.c-this.tx*this.d)*n,r.y=this.a*n*o+-this.b*n*i+(-this.ty*this.a+this.tx*this.b)*n,r},e.prototype.translate=function(t,r){return this.tx+=t,this.ty+=r,this},e.prototype.scale=function(t,r){return this.a*=t,this.d*=r,this.c*=t,this.b*=r,this.tx*=t,this.ty*=r,this},e.prototype.rotate=function(t){var r=Math.cos(t),n=Math.sin(t),i=this.a,o=this.c,a=this.tx;return this.a=i*r-this.b*n,this.b=i*n+this.b*r,this.c=o*r-this.d*n,this.d=o*n+this.d*r,this.tx=a*r-this.ty*n,this.ty=a*n+this.ty*r,this},e.prototype.append=function(t){var r=this.a,n=this.b,i=this.c,o=this.d;return this.a=t.a*r+t.b*i,this.b=t.a*n+t.b*o,this.c=t.c*r+t.d*i,this.d=t.c*n+t.d*o,this.tx=t.tx*r+t.ty*i+this.tx,this.ty=t.tx*n+t.ty*o+this.ty,this},e.prototype.setTransform=function(t,r,n,i,o,a,s,u,l){return this.a=Math.cos(s+l)*o,this.b=Math.sin(s+l)*o,this.c=-Math.sin(s-u)*a,this.d=Math.cos(s-u)*a,this.tx=t-(n*this.a+i*this.c),this.ty=r-(n*this.b+i*this.d),this},e.prototype.prepend=function(t){var r=this.tx;if(t.a!==1||t.b!==0||t.c!==0||t.d!==1){var n=this.a,i=this.c;this.a=n*t.a+this.b*t.c,this.b=n*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}return this.tx=r*t.a+this.ty*t.c+t.tx,this.ty=r*t.b+this.ty*t.d+t.ty,this},e.prototype.decompose=function(t){var r=this.a,n=this.b,i=this.c,o=this.d,a=t.pivot,s=-Math.atan2(-i,o),u=Math.atan2(n,r),l=Math.abs(s+u);return l<1e-5||Math.abs(Bl-l)<1e-5?(t.rotation=u,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=s,t.skew.y=u),t.scale.x=Math.sqrt(r*r+n*n),t.scale.y=Math.sqrt(i*i+o*o),t.position.x=this.tx+(a.x*r+a.y*i),t.position.y=this.ty+(a.x*n+a.y*o),t},e.prototype.invert=function(){var t=this.a,r=this.b,n=this.c,i=this.d,o=this.tx,a=t*i-r*n;return this.a=i/a,this.b=-r/a,this.c=-n/a,this.d=t/a,this.tx=(n*this.ty-i*o)/a,this.ty=-(t*this.ty-r*o)/a,this},e.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},e.prototype.clone=function(){var t=new e;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},e.prototype.copyTo=function(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},e.prototype.copyFrom=function(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this},e.prototype.toString=function(){return"[@pixi/math:Matrix a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+"]"},Object.defineProperty(e,"IDENTITY",{get:function(){return new e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"TEMP_MATRIX",{get:function(){return new e},enumerable:!1,configurable:!0}),e}(),ai=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],si=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],ui=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],li=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],Xd=[],FT=[],pu=Math.sign;function a8(){for(var e=0;e<16;e++){var t=[];Xd.push(t);for(var r=0;r<16;r++)for(var n=pu(ai[e]*ai[r]+ui[e]*si[r]),i=pu(si[e]*ai[r]+li[e]*si[r]),o=pu(ai[e]*ui[r]+ui[e]*li[r]),a=pu(si[e]*ui[r]+li[e]*li[r]),s=0;s<16;s++)if(ai[s]===n&&si[s]===i&&ui[s]===o&&li[s]===a){t.push(s);break}}for(var e=0;e<16;e++){var u=new ft;u.set(ai[e],si[e],ui[e],li[e],0,0),FT.push(u)}}a8();var Qe={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(e){return ai[e]},uY:function(e){return si[e]},vX:function(e){return ui[e]},vY:function(e){return li[e]},inv:function(e){return e&8?e&15:-e&7},add:function(e,t){return Xd[e][t]},sub:function(e,t){return Xd[e][Qe.inv(t)]},rotate180:function(e){return e^4},isVertical:function(e){return(e&3)===2},byDirection:function(e,t){return Math.abs(e)*2<=Math.abs(t)?t>=0?Qe.S:Qe.N:Math.abs(t)*2<=Math.abs(e)?e>0?Qe.E:Qe.W:t>0?e>0?Qe.SE:Qe.SW:e>0?Qe.NE:Qe.NW},matrixAppendRotationInv:function(e,t,r,n){r===void 0&&(r=0),n===void 0&&(n=0);var i=FT[Qe.inv(t)];i.tx=r,i.ty=n,e.append(i)}},UT=function(){function e(){this.worldTransform=new ft,this.localTransform=new ft,this.position=new ao(this.onChange,this,0,0),this.scale=new ao(this.onChange,this,1,1),this.pivot=new ao(this.onChange,this,0,0),this.skew=new ao(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}return e.prototype.onChange=function(){this._localID++},e.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++},e.prototype.toString=function(){return"[@pixi/math:Transform "+("position=("+this.position.x+", "+this.position.y+") ")+("rotation="+this.rotation+" ")+("scale=("+this.scale.x+", "+this.scale.y+") ")+("skew=("+this.skew.x+", "+this.skew.y+") ")+"]"},e.prototype.updateLocalTransform=function(){var t=this.localTransform;this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1)},e.prototype.updateTransform=function(t){var r=this.localTransform;if(this._localID!==this._currentLocalID&&(r.a=this._cx*this.scale.x,r.b=this._sx*this.scale.x,r.c=this._cy*this.scale.y,r.d=this._sy*this.scale.y,r.tx=this.position.x-(this.pivot.x*r.a+this.pivot.y*r.c),r.ty=this.position.y-(this.pivot.x*r.b+this.pivot.y*r.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){var n=t.worldTransform,i=this.worldTransform;i.a=r.a*n.a+r.b*n.c,i.b=r.a*n.b+r.b*n.d,i.c=r.c*n.a+r.d*n.c,i.d=r.c*n.b+r.d*n.d,i.tx=r.tx*n.a+r.ty*n.c+n.tx,i.ty=r.tx*n.b+r.ty*n.d+n.ty,this._parentID=t._worldID,this._worldID++}},e.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())},enumerable:!1,configurable:!0}),e.IDENTITY=new e,e}();/*! + * @pixi/display - v6.3.0 + * Compiled Wed, 23 Mar 2022 18:58:56 UTC + * + * @pixi/display is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */oe.SORTABLE_CHILDREN=!1;var Es=function(){function e(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}return e.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},e.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},e.prototype.getRectangle=function(t){return this.minX>this.maxX||this.minY>this.maxY?Ce.EMPTY:(t=t||new Ce(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)},e.prototype.addPoint=function(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)},e.prototype.addPointMatrix=function(t,r){var n=t.a,i=t.b,o=t.c,a=t.d,s=t.tx,u=t.ty,l=n*r.x+o*r.y+s,c=i*r.x+a*r.y+u;this.minX=Math.min(this.minX,l),this.maxX=Math.max(this.maxX,l),this.minY=Math.min(this.minY,c),this.maxY=Math.max(this.maxY,c)},e.prototype.addQuad=function(t){var r=this.minX,n=this.minY,i=this.maxX,o=this.maxY,a=t[0],s=t[1];r=ai?a:i,o=s>o?s:o,a=t[2],s=t[3],r=ai?a:i,o=s>o?s:o,a=t[4],s=t[5],r=ai?a:i,o=s>o?s:o,a=t[6],s=t[7],r=ai?a:i,o=s>o?s:o,this.minX=r,this.minY=n,this.maxX=i,this.maxY=o},e.prototype.addFrame=function(t,r,n,i,o){this.addFrameMatrix(t.worldTransform,r,n,i,o)},e.prototype.addFrameMatrix=function(t,r,n,i,o){var a=t.a,s=t.b,u=t.c,l=t.d,c=t.tx,f=t.ty,h=this.minX,d=this.minY,v=this.maxX,_=this.maxY,p=a*r+u*n+c,m=s*r+l*n+f;h=pv?p:v,_=m>_?m:_,p=a*i+u*n+c,m=s*i+l*n+f,h=pv?p:v,_=m>_?m:_,p=a*r+u*o+c,m=s*r+l*o+f,h=pv?p:v,_=m>_?m:_,p=a*i+u*o+c,m=s*i+l*o+f,h=pv?p:v,_=m>_?m:_,this.minX=h,this.minY=d,this.maxX=v,this.maxY=_},e.prototype.addVertexData=function(t,r,n){for(var i=this.minX,o=this.minY,a=this.maxX,s=this.maxY,u=r;ua?l:a,s=c>s?c:s}this.minX=i,this.minY=o,this.maxX=a,this.maxY=s},e.prototype.addVertices=function(t,r,n,i){this.addVerticesMatrix(t.worldTransform,r,n,i)},e.prototype.addVerticesMatrix=function(t,r,n,i,o,a){o===void 0&&(o=0),a===void 0&&(a=o);for(var s=t.a,u=t.b,l=t.c,c=t.d,f=t.tx,h=t.ty,d=this.minX,v=this.minY,_=this.maxX,p=this.maxY,m=n;mi?t.maxX:i,this.maxY=t.maxY>o?t.maxY:o},e.prototype.addBoundsMask=function(t,r){var n=t.minX>r.minX?t.minX:r.minX,i=t.minY>r.minY?t.minY:r.minY,o=t.maxXl?o:l,this.maxY=a>c?a:c}},e.prototype.addBoundsMatrix=function(t,r){this.addFrameMatrix(r,t.minX,t.minY,t.maxX,t.maxY)},e.prototype.addBoundsArea=function(t,r){var n=t.minX>r.x?t.minX:r.x,i=t.minY>r.y?t.minY:r.y,o=t.maxXl?o:l,this.maxY=a>c?a:c}},e.prototype.pad=function(t,r){t===void 0&&(t=0),r===void 0&&(r=t),this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=r,this.maxY+=r)},e.prototype.addFramePad=function(t,r,n,i,o,a){t-=o,r-=a,n+=o,i+=a,this.minX=this.minXn?this.maxX:n,this.minY=this.minYi?this.maxY:i},e}();/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var zd=function(e,t){return zd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},zd(e,t)};function om(e,t){zd(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ht=function(e){om(t,e);function t(){var r=e.call(this)||this;return r.tempDisplayObjectParent=null,r.transform=new UT,r.alpha=1,r.visible=!0,r.renderable=!0,r.cullable=!1,r.cullArea=null,r.parent=null,r.worldAlpha=1,r._lastSortedIndex=0,r._zIndex=0,r.filterArea=null,r.filters=null,r._enabledFilters=null,r._bounds=new Es,r._localBounds=null,r._boundsID=0,r._boundsRect=null,r._localBoundsRect=null,r._mask=null,r._maskRefCount=0,r._destroyed=!1,r.isSprite=!1,r.isMask=!1,r}return t.mixin=function(r){for(var n=Object.keys(r),i=0;i1)for(var o=0;othis.children.length)throw new Error(r+"addChildAt: The index "+n+" supplied is out of bounds "+this.children.length);return r.parent&&r.parent.removeChild(r),r.parent=this,this.sortDirty=!0,r.transform._parentID=-1,this.children.splice(n,0,r),this._boundsID++,this.onChildrenChange(n),r.emit("added",this),this.emit("childAdded",r,this,n),r},t.prototype.swapChildren=function(r,n){if(r!==n){var i=this.getChildIndex(r),o=this.getChildIndex(n);this.children[i]=n,this.children[o]=r,this.onChildrenChange(i=this.children.length)throw new Error("The index "+n+" supplied is out of bounds "+this.children.length);var i=this.getChildIndex(r);Eo(this.children,i,1),this.children.splice(n,0,r),this.onChildrenChange(n)},t.prototype.getChildAt=function(r){if(r<0||r>=this.children.length)throw new Error("getChildAt: Index ("+r+") does not exist.");return this.children[r]},t.prototype.removeChild=function(){for(var r=arguments,n=[],i=0;i1)for(var o=0;o0&&a<=o){s=this.children.splice(i,a);for(var u=0;u1&&this.children.sort(s8),this.sortDirty=!1},t.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var r=0,n=this.children.length;r0&&n.height>0){var i,o;if(this.cullArea?(i=this.cullArea,o=this.worldTransform):this._render!==t.prototype._render&&(i=this.getBounds(!0)),i&&n.intersects(i,o))this._render(r);else if(this.cullArea)return;for(var a=0,s=this.children.length;a title : "+t.title+"
tabIndex: "+t.tabIndex},e.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);var r=this.renderer,n=r.width,i=r.height;t.x+t.width>n&&(t.width=n-t.x),t.y+t.height>i&&(t.height=i-t.y)},e.prototype.addChild=function(t){var r=this.pool.pop();r||(r=document.createElement("button"),r.style.width=vu+"px",r.style.height=vu+"px",r.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",r.style.position="absolute",r.style.zIndex=v0.toString(),r.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?r.setAttribute("aria-live","off"):r.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?r.setAttribute("aria-relevant","additions"):r.setAttribute("aria-relevant","text"),r.addEventListener("click",this._onClick.bind(this)),r.addEventListener("focus",this._onFocus.bind(this)),r.addEventListener("focusout",this._onFocusOut.bind(this))),r.style.pointerEvents=t.accessiblePointerEvents,r.type=t.accessibleType,t.accessibleTitle&&t.accessibleTitle!==null?r.title=t.accessibleTitle:(!t.accessibleHint||t.accessibleHint===null)&&(r.title="displayObject "+t.tabIndex),t.accessibleHint&&t.accessibleHint!==null&&r.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(r),t._accessibleActive=!0,t._accessibleDiv=r,r.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},e.prototype._onClick=function(t){var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"click",i),r.dispatchEvent(n,"pointertap",i),r.dispatchEvent(n,"tap",i)},e.prototype._onFocus=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive");var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"mouseover",i)},e.prototype._onFocusOut=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite");var r=this.renderer.plugins.interaction,n=t.target.displayObject,i=r.eventData;r.dispatchEvent(n,"mouseout",i)},e.prototype._onKeyDown=function(t){t.keyCode===l8&&this.activate()},e.prototype._onMouseMove=function(t){t.movementX===0&&t.movementY===0||this.deactivate()},e.prototype.destroy=function(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},e}();/*! + * @pixi/ticker - v6.3.0 + * Compiled Wed, 23 Mar 2022 18:58:56 UTC + * + * @pixi/ticker is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */oe.TARGET_FPMS=.06;var dn;(function(e){e[e.INTERACTION=50]="INTERACTION",e[e.HIGH=25]="HIGH",e[e.NORMAL=0]="NORMAL",e[e.LOW=-25]="LOW",e[e.UTILITY=-50]="UTILITY"})(dn||(dn={}));var Jf=function(){function e(t,r,n,i){r===void 0&&(r=null),n===void 0&&(n=0),i===void 0&&(i=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=r,this.priority=n,this.once=i}return e.prototype.match=function(t,r){return r===void 0&&(r=null),this.fn===t&&this.context===r},e.prototype.emit=function(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));var r=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),r},e.prototype.connect=function(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this},e.prototype.destroy=function(t){t===void 0&&(t=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var r=this.next;return this.next=t?null:r,this.previous=null,r},e}(),Pt=function(){function e(){var t=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new Jf(null,null,1/0),this.deltaMS=1/oe.TARGET_FPMS,this.elapsedMS=1/oe.TARGET_FPMS,this._tick=function(r){t._requestId=null,t.started&&(t.update(r),t.started&&t._requestId===null&&t._head.next&&(t._requestId=requestAnimationFrame(t._tick)))}}return e.prototype._requestIfNeeded=function(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},e.prototype._cancelIfNeeded=function(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)},e.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},e.prototype.add=function(t,r,n){return n===void 0&&(n=dn.NORMAL),this._addListener(new Jf(t,r,n))},e.prototype.addOnce=function(t,r,n){return n===void 0&&(n=dn.NORMAL),this._addListener(new Jf(t,r,n,!0))},e.prototype._addListener=function(t){var r=this._head.next,n=this._head;if(!r)t.connect(n);else{for(;r;){if(t.priority>r.priority){t.connect(n);break}n=r,r=r.next}t.previous||t.connect(n)}return this._startIfPossible(),this},e.prototype.remove=function(t,r){for(var n=this._head.next;n;)n.match(t,r)?n=n.destroy():n=n.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(e.prototype,"count",{get:function(){if(!this._head)return 0;for(var t=0,r=this._head;r=r.next;)t++;return t},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},e.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},e.prototype.destroy=function(){if(!this._protected){this.stop();for(var t=this._head.next;t;)t=t.destroy(!0);this._head.destroy(),this._head=null}},e.prototype.update=function(t){t===void 0&&(t=performance.now());var r;if(t>this.lastTime){if(r=this.elapsedMS=t-this.lastTime,r>this._maxElapsedMS&&(r=this._maxElapsedMS),r*=this.speed,this._minElapsedMS){var n=t-this._lastFrame|0;if(n=0;f--){var h=c[f],d=this.recursiveFindHit(t,h,n,i,u);if(d){if(!h.parent)continue;u=!1,d&&(t.target&&(i=!1),s=!0)}}return o&&(i&&!t.target&&!r.hitArea&&r.containsPoint&&r.containsPoint(a)&&(s=!0),r.interactive&&(s&&!t.target&&(t.target=r),n&&n(t,r,!!s))),s},e.prototype.findHit=function(t,r,n,i){this.recursiveFindHit(t,r,n,i,!1)},e}(),x8={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return this.cursor==="pointer"},set buttonMode(e){e?this.cursor="pointer":this.cursor==="pointer"&&(this.cursor=null)},cursor:null,get trackedPointers(){return this._trackedPointers===void 0&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};ht.mixin(x8);var mu=1,_u={target:null,data:{global:null}},b8=function(e){_8(t,e);function t(r,n){var i=e.call(this)||this;return n=n||{},i.renderer=r,i.autoPreventDefault=n.autoPreventDefault!==void 0?n.autoPreventDefault:!0,i.interactionFrequency=n.interactionFrequency||10,i.mouse=new _0,i.mouse.identifier=mu,i.mouse.global.set(-999999),i.activeInteractionData={},i.activeInteractionData[mu]=i.mouse,i.interactionDataPool=[],i.eventData=new g8,i.interactionDOMElement=null,i.moveWhenInside=!1,i.eventsAdded=!1,i.tickerAdded=!1,i.mouseOverRenderer=!("PointerEvent"in globalThis),i.supportsTouchEvents="ontouchstart"in globalThis,i.supportsPointerEvents=!!globalThis.PointerEvent,i.onPointerUp=i.onPointerUp.bind(i),i.processPointerUp=i.processPointerUp.bind(i),i.onPointerCancel=i.onPointerCancel.bind(i),i.processPointerCancel=i.processPointerCancel.bind(i),i.onPointerDown=i.onPointerDown.bind(i),i.processPointerDown=i.processPointerDown.bind(i),i.onPointerMove=i.onPointerMove.bind(i),i.processPointerMove=i.processPointerMove.bind(i),i.onPointerOut=i.onPointerOut.bind(i),i.processPointerOverOut=i.processPointerOverOut.bind(i),i.onPointerOver=i.onPointerOver.bind(i),i.cursorStyles={default:"inherit",pointer:"pointer"},i.currentCursorMode=null,i.cursor=null,i.resolution=1,i.delayedEvents=[],i.search=new y8,i._tempDisplayObject=new BT,i._eventListenerOptions={capture:!0,passive:!1},i._useSystemTicker=n.useSystemTicker!==void 0?n.useSystemTicker:!0,i.setTargetElement(i.renderer.view,i.renderer.resolution),i}return Object.defineProperty(t.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(r){this._useSystemTicker=r,r?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),t.prototype.hitTest=function(r,n){return _u.target=null,_u.data.global=r,n||(n=this.lastObjectRendered),this.processInteractive(_u,n,null,!0),_u.target},t.prototype.setTargetElement=function(r,n){n===void 0&&(n=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=r,this.resolution=n,this.addEvents(),this.addTickerListener()},t.prototype.addTickerListener=function(){this.tickerAdded||!this.interactionDOMElement||!this._useSystemTicker||(Pt.system.add(this.tickerUpdate,this,dn.INTERACTION),this.tickerAdded=!0)},t.prototype.removeTickerListener=function(){!this.tickerAdded||(Pt.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},t.prototype.addEvents=function(){if(!(this.eventsAdded||!this.interactionDOMElement)){var r=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(r.msContentZooming="none",r.msTouchAction="none"):this.supportsPointerEvents&&(r.touchAction="none"),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.addEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.addEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.eventsAdded=!0}},t.prototype.removeEvents=function(){if(!(!this.eventsAdded||!this.interactionDOMElement)){var r=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(r.msContentZooming="",r.msTouchAction=""):this.supportsPointerEvents&&(r.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),globalThis.removeEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),globalThis.removeEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.interactionDOMElement=null,this.eventsAdded=!1}},t.prototype.tickerUpdate=function(r){this._deltaTime+=r,!(this._deltaTime8)throw new Error("max arguments reached");var l=this,c=l.name,f=l.items;this._aliasCount++;for(var h=0,d=f.length;h0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},e.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},e.prototype.remove=function(t){var r=this.items.indexOf(t);return r!==-1&&(this.ensureNonAliasedItems(),this.items.splice(r,1)),this},e.prototype.contains=function(t){return this.items.indexOf(t)!==-1},e.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},e.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(e.prototype,"empty",{get:function(){return this.items.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),e}();Object.defineProperties(Ft.prototype,{dispatch:{value:Ft.prototype.emit},run:{value:Ft.prototype.emit}});/*! + * @pixi/core - v6.3.0 + * Compiled Wed, 23 Mar 2022 18:58:56 UTC + * + * @pixi/core is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */oe.PREFER_ENV=Ur.any?fn.WEBGL:fn.WEBGL2;oe.STRICT_TEXTURE_CACHE=!1;var Ml=[];function am(e,t){if(!e)return null;var r="";if(typeof e=="string"){var n=/\.(\w{3,4})(?:$|\?|#)/i.exec(e);n&&(r=n[1].toLowerCase())}for(var i=Ml.length-1;i>=0;--i){var o=Ml[i];if(o.test&&o.test(e,r))return new o(e,t)}throw new Error("Unrecognized source type to auto-detect Resource")}/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var Yd=function(e,t){return Yd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Yd(e,t)};function je(e,t){Yd(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Kd=function(){return Kd=Object.assign||function(t){for(var r=arguments,n,i=1,o=arguments.length;i0&&c>0,i.textureCacheIds=[],i.destroyed=!1,i.resource=null,i._batchEnabled=0,i._batchLocation=0,i.parentTextureArray=null,i.setResource(r),i}return Object.defineProperty(t.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mipmap",{get:function(){return this._mipmap},set:function(r){this._mipmap!==r&&(this._mipmap=r,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(r){this._scaleMode!==r&&(this._scaleMode=r,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(r){this._wrapMode!==r&&(this._wrapMode=r,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),t.prototype.setStyle=function(r,n){var i;return r!==void 0&&r!==this.scaleMode&&(this.scaleMode=r,i=!0),n!==void 0&&n!==this.mipmap&&(this.mipmap=n,i=!0),i&&this.dirtyStyleId++,this},t.prototype.setSize=function(r,n,i){return i=i||this.resolution,this.setRealSize(r*i,n*i,i)},t.prototype.setRealSize=function(r,n,i){return this.resolution=i||this.resolution,this.width=Math.round(r)/this.resolution,this.height=Math.round(n)/this.resolution,this._refreshPOT(),this.update(),this},t.prototype._refreshPOT=function(){this.isPowerOfTwo=zy(this.realWidth)&&zy(this.realHeight)},t.prototype.setResolution=function(r){var n=this.resolution;return n===r?this:(this.resolution=r,this.valid&&(this.width=Math.round(this.width*n)/r,this.height=Math.round(this.height*n)/r,this.emit("update",this)),this._refreshPOT(),this)},t.prototype.setResource=function(r){if(this.resource===r)return this;if(this.resource)throw new Error("Resource can be set only once");return r.bind(this),this.resource=r,this},t.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},t.prototype.onError=function(r){this.emit("error",this,r)},t.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete Zn[this.cacheId],delete Jr[this.cacheId],this.cacheId=null),this.dispose(),t.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},t.prototype.dispose=function(){this.emit("dispose",this)},t.prototype.castToBaseTexture=function(){return this},t.from=function(r,n,i){i===void 0&&(i=oe.STRICT_TEXTURE_CACHE);var o=typeof r=="string",a=null;if(o)a=r;else{if(!r._pixiId){var s=n&&n.pixiIdPrefix||"pixiid";r._pixiId=s+"_"+Ti()}a=r._pixiId}var u=Zn[a];if(o&&i&&!u)throw new Error('The cacheId "'+a+'" does not exist in BaseTextureCache.');return u||(u=new t(r,n),u.cacheId=a,t.addToCache(u,a)),u},t.fromBuffer=function(r,n,i,o){r=r||new Float32Array(n*i*4);var a=new Ko(r,{width:n,height:i}),s=r instanceof Float32Array?ae.FLOAT:ae.UNSIGNED_BYTE;return new t(a,Object.assign(T8,o||{width:n,height:i,type:s}))},t.addToCache=function(r,n){n&&(r.textureCacheIds.indexOf(n)===-1&&r.textureCacheIds.push(n),Zn[n]&&console.warn("BaseTexture added to the cache with an id ["+n+"] that already had an entry"),Zn[n]=r)},t.removeFromCache=function(r){if(typeof r=="string"){var n=Zn[r];if(n){var i=n.textureCacheIds.indexOf(r);return i>-1&&n.textureCacheIds.splice(i,1),delete Zn[r],n}}else if(r&&r.textureCacheIds){for(var o=0;o0)if(r.resource)this.addResourceAt(r.resource,n);else throw new Error("CubeResource does not support copying of renderTexture.");else r.target=_i.TEXTURE_CUBE_MAP_POSITIVE_X+n,r.parentTextureArray=this.baseTexture,this.items[n]=r;return r.valid&&!this.valid&&this.resize(r.realWidth,r.realHeight),this.items[n]=r,this},t.prototype.upload=function(r,n,i){for(var o=this.itemDirtyIds,a=0;a)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t}(pn),$T=function(e){je(t,e);function t(r,n){var i=this;if(n=n||{},!(r instanceof HTMLVideoElement)){var o=document.createElement("video");o.setAttribute("preload","auto"),o.setAttribute("webkit-playsinline",""),o.setAttribute("playsinline",""),typeof r=="string"&&(r=[r]);var a=r[0].src||r[0];pn.crossOrigin(o,a,n.crossorigin);for(var s=0;s0&&r.paused===!1&&r.ended===!1&&r.readyState>2},t.prototype._isSourceReady=function(){var r=this.source;return r.readyState===3||r.readyState===4},t.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(Pt.shared.add(this.update,this),this._isConnectedToTicker=!0)},t.prototype._onPlayStop=function(){this._isConnectedToTicker&&(Pt.shared.remove(this.update,this),this._isConnectedToTicker=!1)},t.prototype._onCanPlay=function(){var r=this.source;r.removeEventListener("canplay",this._onCanPlay),r.removeEventListener("canplaythrough",this._onCanPlay);var n=this.valid;this.resize(r.videoWidth,r.videoHeight),!n&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&r.play()},t.prototype.dispose=function(){this._isConnectedToTicker&&(Pt.shared.remove(this.update,this),this._isConnectedToTicker=!1);var r=this.source;r&&(r.removeEventListener("error",this._onError,!0),r.pause(),r.src="",r.load()),e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(r){r!==this._autoUpdate&&(this._autoUpdate=r,!this._autoUpdate&&this._isConnectedToTicker?(Pt.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(Pt.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(r){r!==this._updateFPS&&(this._updateFPS=r)},enumerable:!1,configurable:!0}),t.test=function(r,n){return globalThis.HTMLVideoElement&&r instanceof HTMLVideoElement||t.TYPES.indexOf(n)>-1},t.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],t.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},t}(pn),jT=function(e){je(t,e);function t(r){return e.call(this,r)||this}return t.test=function(r){return!!globalThis.createImageBitmap&&r instanceof ImageBitmap},t}(pn);Ml.push(lm,jT,um,$T,GT,Ko,DT,MT);var HT={__proto__:null,Resource:Lo,BaseImageResource:pn,INSTALLED:Ml,autoDetectResource:am,AbstractMultiResource:sm,ArrayResource:MT,BufferResource:Ko,CanvasResource:um,CubeResource:DT,ImageResource:lm,SVGResource:GT,VideoResource:$T,ImageBitmapResource:jT},w8=function(e){je(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.upload=function(r,n,i){var o=r.gl;o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===Rr.UNPACK);var a=n.realWidth,s=n.realHeight;return i.width===a&&i.height===s?o.texSubImage2D(n.target,0,0,0,a,s,n.format,i.type,this.data):(i.width=a,i.height=s,o.texImage2D(n.target,0,i.internalFormat,a,s,0,n.format,i.type,this.data)),!0},t}(Ko),Zd=function(){function e(t,r){this.width=Math.round(t||100),this.height=Math.round(r||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new Ft("disposeFramebuffer"),this.multisample=pt.NONE}return Object.defineProperty(e.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),e.prototype.addColorTexture=function(t,r){return t===void 0&&(t=0),this.colorTextures[t]=r||new we(null,{scaleMode:an.NEAREST,resolution:1,mipmap:hn.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.addDepthTexture=function(t){return this.depthTexture=t||new we(new w8(null,{width:this.width,height:this.height}),{scaleMode:an.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:hn.OFF,format:H.DEPTH_COMPONENT,type:ae.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},e.prototype.resize=function(t,r){if(t=Math.round(t),r=Math.round(r),!(t===this.width&&r===this.height)){this.width=t,this.height=r,this.dirtyId++,this.dirtySize++;for(var n=0;n-1&&n.textureCacheIds.splice(i,1),delete Jr[r],n}}else if(r&&r.textureCacheIds){for(var o=0;othis.baseTexture.width,u=i+a>this.baseTexture.height;if(s||u){var l=s&&u?"and":"or",c="X: "+n+" + "+o+" = "+(n+o)+" > "+this.baseTexture.width,f="Y: "+i+" + "+a+" = "+(i+a)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(c+" "+l+" "+f))}this.valid=o&&a&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=r),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this._rotate},set:function(r){this._rotate=r,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),t.prototype.castToBaseTexture=function(){return this.baseTexture},t}(Gs);function S8(){var e=document.createElement("canvas");e.width=16,e.height=16;var t=e.getContext("2d");return t.fillStyle="white",t.fillRect(0,0,16,16),new ue(new we(new um(e)))}function Nc(e){e.destroy=function(){},e.on=function(){},e.once=function(){},e.emit=function(){}}ue.EMPTY=new ue(new we);Nc(ue.EMPTY);Nc(ue.EMPTY.baseTexture);ue.WHITE=S8();Nc(ue.WHITE);Nc(ue.WHITE.baseTexture);var Si=function(e){je(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.valid=!0,i.filterFrame=null,i.filterPoolKey=null,i.updateUvs(),i}return Object.defineProperty(t.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(r){this.framebuffer.multisample=r},enumerable:!1,configurable:!0}),t.prototype.resize=function(r,n,i){i===void 0&&(i=!0);var o=this.baseTexture.resolution,a=Math.round(r*o)/o,s=Math.round(n*o)/o;this.valid=a>0&&s>0,this._frame.width=this.orig.width=a,this._frame.height=this.orig.height=s,i&&this.baseTexture.resize(a,s),this.updateUvs()},t.prototype.setResolution=function(r){var n=this.baseTexture;n.resolution!==r&&(n.setResolution(r),this.resize(n.width,n.height,!1))},t.create=function(r){for(var n=arguments,i=[],o=1;o>>0,i>1&&(o+=i*4294967296)):o=i>1?-i:-1,this.texturePool[o]||(this.texturePool[o]=[]);var a=this.texturePool[o].pop();return a||(a=this.createTexture(t,r,i)),a.filterPoolKey=o,a.setResolution(n),a},e.prototype.getFilterTexture=function(t,r,n){var i=this.getOptimalTexture(t.width,t.height,r||t.resolution,n||pt.NONE);return i.filterFrame=t.filterFrame,i},e.prototype.returnTexture=function(t){var r=t.filterPoolKey;t.filterFrame=null,this.texturePool[r].push(t)},e.prototype.returnFilterTexture=function(t){this.returnTexture(t)},e.prototype.clear=function(t){if(t=t!==!1,t)for(var r in this.texturePool){var n=this.texturePool[r];if(n)for(var i=0;i0&&t.height>0;for(var r in this.texturePool)if(Number(r)<0){var n=this.texturePool[r];if(n)for(var i=0;i1){for(var c=0;c1&&(f=this.getOptimalFilterTexture(c.width,c.height,r.resolution),f.filterFrame=c.filterFrame),n[h].apply(this,c,f,xn.CLEAR,r);var d=c;c=f,f=d}n[h].apply(this,c,l.renderTexture,xn.BLEND,r),h>1&&r.multisample>1&&this.returnFilterTexture(r.renderTexture),this.returnFilterTexture(c),this.returnFilterTexture(f)}r.clear(),this.statePool.push(r)},e.prototype.bindAndClear=function(t,r){r===void 0&&(r=xn.CLEAR);var n=this.renderer,i=n.renderTexture,o=n.state;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame){var a=this.tempRect;a.x=0,a.y=0,a.width=t.filterFrame.width,a.height=t.filterFrame.height,i.bind(t,t.filterFrame,a)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?i.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var s=o.stateId&1||this.forceClear;(r===xn.CLEAR||r===xn.BLIT&&s)&&this.renderer.framebuffer.clear(0,0,0,0)},e.prototype.applyFilter=function(t,r,n,i){var o=this.renderer;o.state.set(t.state),this.bindAndClear(n,i),t.uniforms.uSampler=r,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(r._frame,r.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(Ir.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(Ir.TRIANGLE_STRIP))},e.prototype.calculateSpriteMatrix=function(t,r){var n=this.activeState,i=n.sourceFrame,o=n.destinationFrame,a=r._texture.orig,s=t.set(o.width,0,0,o.height,i.x,i.y),u=r.worldTransform.copyTo(ft.TEMP_MATRIX);return u.invert(),s.prepend(u),s.scale(1/a.width,1/a.height),s.translate(r.anchor.x,r.anchor.y),s},e.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},e.prototype.getOptimalFilterTexture=function(t,r,n,i){return n===void 0&&(n=1),i===void 0&&(i=pt.NONE),this.texturePool.getOptimalTexture(t,r,n,i)},e.prototype.getFilterTexture=function(t,r,n){if(typeof t=="number"){var i=t;t=r,r=i}t=t||this.activeState.renderTexture;var o=this.texturePool.getOptimalTexture(t.width,t.height,r||t.resolution,n||pt.NONE);return o.filterFrame=t.filterFrame,o},e.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},e.prototype.emptyPool=function(){this.texturePool.clear(!0)},e.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},e.prototype.transformAABB=function(t,r){var n=gu[0],i=gu[1],o=gu[2],a=gu[3];n.set(r.left,r.top),i.set(r.left,r.bottom),o.set(r.right,r.top),a.set(r.right,r.bottom),t.apply(n,n),t.apply(i,i),t.apply(o,o),t.apply(a,a);var s=Math.min(n.x,i.x,o.x,a.x),u=Math.min(n.y,i.y,o.y,a.y),l=Math.max(n.x,i.x,o.x,a.x),c=Math.max(n.y,i.y,o.y,a.y);r.x=s,r.y=u,r.width=l-s,r.height=c-u},e.prototype.roundFrame=function(t,r,n,i,o){if(!(t.width<=0||t.height<=0||n.width<=0||n.height<=0)){if(o){var a=o.a,s=o.b,u=o.c,l=o.d;if((Math.abs(s)>1e-4||Math.abs(u)>1e-4)&&(Math.abs(a)>1e-4||Math.abs(l)>1e-4))return}o=o?eh.copyFrom(o):eh.identity(),o.translate(-n.x,-n.y).scale(i.width/n.width,i.height/n.height).translate(i.x,i.y),this.transformAABB(o,t),t.ceil(r),this.transformAABB(o.invert(),t)}},e}(),Pc=function(){function e(t){this.renderer=t}return e.prototype.flush=function(){},e.prototype.destroy=function(){this.renderer=null},e.prototype.start=function(){},e.prototype.stop=function(){this.flush()},e.prototype.render=function(t){},e}(),qT=function(){function e(t){this.renderer=t,this.emptyRenderer=new Pc(t),this.currentRenderer=this.emptyRenderer}return e.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},e.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},e.prototype.copyBoundTextures=function(t,r){for(var n=this.renderer.texture.boundTextures,i=r-1;i>=0;--i)t[i]=n[i]||null,t[i]&&(t[i]._batchLocation=i)},e.prototype.boundArray=function(t,r,n,i){for(var o=t.elements,a=t.ids,s=t.count,u=0,l=0;l=0&&f=fn.WEBGL2&&(n=t.getContext("webgl2",r)),n)this.webGLVersion=2;else if(this.webGLVersion=1,n=t.getContext("webgl",r)||t.getContext("experimental-webgl",r),!n)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=n,this.getExtensions(),this.gl},e.prototype.getExtensions=function(){var t=this.gl,r={anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,r,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),loseContext:t.getExtension("WEBGL_lose_context"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,r,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},e.prototype.handleContextLost=function(t){t.preventDefault()},e.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},e.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},e.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},e.prototype.validateContext=function(t){var r=t.getContextAttributes(),n="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;n&&(this.webGLVersion=2),r.stencil||console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var i=n||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=i,i||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},e}(),F8=function(){function e(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=pt.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return e}(),U8=new Ce,KT=function(){function e(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new Zd(10,10),this.msaaSamples=null}return e.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new Ce,this.hasMRT=!0,this.writeDepthTexture=!0,this.disposeAll(!0),this.renderer.context.webGLVersion===1){var r=this.renderer.context.extensions.drawBuffers,n=this.renderer.context.extensions.depthTexture;oe.PREFER_ENV===fn.WEBGL_LEGACY&&(r=null,n=null),r?t.drawBuffers=function(i){return r.drawBuffersWEBGL(i)}:(this.hasMRT=!1,t.drawBuffers=function(){}),n||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},e.prototype.bind=function(t,r,n){n===void 0&&(n=0);var i=this.gl;if(t){var o=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,i.bindFramebuffer(i.FRAMEBUFFER,o.framebuffer)),o.mipLevel!==n&&(t.dirtyId++,t.dirtyFormat++,o.mipLevel=n),o.dirtyId!==t.dirtyId&&(o.dirtyId=t.dirtyId,o.dirtyFormat!==t.dirtyFormat?(o.dirtyFormat=t.dirtyFormat,o.dirtySize=t.dirtySize,this.updateFramebuffer(t,n)):o.dirtySize!==t.dirtySize&&(o.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var a=0;a>n,l=r.height>>n,c=u/r.width;this.setViewport(r.x*c,r.y*c,u,l)}else{var u=t.width>>n,l=t.height>>n;this.setViewport(0,0,u,l)}}else this.current&&(this.current=null,i.bindFramebuffer(i.FRAMEBUFFER,null)),r?this.setViewport(r.x,r.y,r.width,r.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},e.prototype.setViewport=function(t,r,n,i){var o=this.viewport;t=Math.round(t),r=Math.round(r),n=Math.round(n),i=Math.round(i),(o.width!==n||o.height!==i||o.x!==t||o.y!==r)&&(o.x=t,o.y=r,o.width=n,o.height=i,this.gl.viewport(t,r,n,i))},Object.defineProperty(e.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),e.prototype.clear=function(t,r,n,i,o){o===void 0&&(o=Ll.COLOR|Ll.DEPTH);var a=this.gl;a.clearColor(t,r,n,i),a.clear(o)},e.prototype.initFramebuffer=function(t){var r=this.gl,n=new F8(r.createFramebuffer());return n.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=n,this.managedFramebuffers.push(t),t.disposeRunner.add(this),n},e.prototype.resizeFramebuffer=function(t){var r=this.gl,n=t.glFramebuffers[this.CONTEXT_UID];n.msaaBuffer&&(r.bindRenderbuffer(r.RENDERBUFFER,n.msaaBuffer),r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.RGBA8,t.width,t.height)),n.stencil&&(r.bindRenderbuffer(r.RENDERBUFFER,n.stencil),n.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height));var i=t.colorTextures,o=i.length;r.drawBuffers||(o=Math.min(o,1));for(var a=0;a1&&this.canMultisampleFramebuffer(t)?(i.msaaBuffer=i.msaaBuffer||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,i.msaaBuffer),n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.RGBA8,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.RENDERBUFFER,i.msaaBuffer)):i.msaaBuffer&&(n.deleteRenderbuffer(i.msaaBuffer),i.msaaBuffer=null,i.blitFramebuffer&&(i.blitFramebuffer.dispose(),i.blitFramebuffer=null));for(var s=[],u=0;u1&&n.drawBuffers(s),t.depthTexture){var f=this.writeDepthTexture;if(f){var h=t.depthTexture;this.renderer.texture.bind(h,0),n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,h._glTextures[this.CONTEXT_UID].texture,r)}}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(i.stencil=i.stencil||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,i.stencil),i.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,i.multisample,n.DEPTH24_STENCIL8,t.width,t.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,i.stencil)):i.stencil&&(n.deleteRenderbuffer(i.stencil),i.stencil=null)},e.prototype.canMultisampleFramebuffer=function(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture},e.prototype.detectSamples=function(t){var r=this.msaaSamples,n=pt.NONE;if(t<=1||r===null)return n;for(var i=0;i=0&&this.managedFramebuffers.splice(o,1),t.disposeRunner.remove(this),r||(i.deleteFramebuffer(n.framebuffer),n.msaaBuffer&&i.deleteRenderbuffer(n.msaaBuffer),n.stencil&&i.deleteRenderbuffer(n.stencil)),n.blitFramebuffer&&n.blitFramebuffer.dispose()}},e.prototype.disposeAll=function(t){var r=this.managedFramebuffers;this.managedFramebuffers=[];for(var n=0;n=fn.WEBGL2&&(t=e.getContext("webgl2",{})),t||(t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),ya=t}return ya}var yu;function G8(){if(!yu){yu=Br.MEDIUM;var e=D8();if(e&&e.getShaderPrecisionFormat){var t=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT);yu=t.precision?Br.HIGH:Br.MEDIUM}}return yu}function w0(e,t,r){if(e.substring(0,9)!=="precision"){var n=t;return t===Br.HIGH&&r!==Br.HIGH&&(n=Br.MEDIUM),"precision "+n+` float; +`+e}else if(r!==Br.HIGH&&e.substring(0,15)==="precision highp")return e.replace("precision highp","precision mediump");return e}var $8={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function ew(e){return $8[e]}var xu=null,S0={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function tw(e,t){if(!xu){var r=Object.keys(S0);xu={};for(var n=0;n0&&(t+=` +else `),r1e-4||Math.abs(o)>1e-4)&&(Math.abs(n)>1e-4||Math.abs(a)>1e-4)},t.prototype.testScissor=function(r){var n=r.maskObject;if(!n.isFastRect||!n.isFastRect()||t.isMatrixRotated(n.worldTransform)||t.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(r);var i=r._scissorRectLocal;return i.width>0&&i.height>0},t.prototype.roundFrameToPixels=function(r,n,i,o,a){t.isMatrixRotated(a)||(a=a?I0.copyFrom(a):I0.identity(),a.translate(-i.x,-i.y).scale(o.width/i.width,o.height/i.height).translate(o.x,o.y),this.renderer.filter.transformAABB(a,r),r.fit(o),r.x=Math.round(r.x*n),r.y=Math.round(r.y*n),r.width=Math.round(r.width*n),r.height=Math.round(r.height*n))},t.prototype.push=function(r){r._scissorRectLocal||this.calcScissorRect(r);var n=this.renderer.gl;r._scissorRect||n.enable(n.SCISSOR_TEST),r._scissorCounter++,r._scissorRect=r._scissorRectLocal,this._useCurrent()},t.prototype.pop=function(){var r=this.renderer.gl;this.getStackLength()>0?this._useCurrent():r.disable(r.SCISSOR_TEST)},t.prototype._useCurrent=function(){var r=this.maskStack[this.maskStack.length-1]._scissorRect,n;this.renderer.renderTexture.current?n=r.y:n=this.renderer.height-r.height-r.y,this.renderer.gl.scissor(r.x,n,r.width,r.height)},t}(nw),ow=function(e){je(t,e);function t(r){var n=e.call(this,r)||this;return n.glConst=WebGLRenderingContext.STENCIL_TEST,n}return t.prototype.getStackLength=function(){var r=this.maskStack[this.maskStack.length-1];return r?r._stencilCounter:0},t.prototype.push=function(r){var n=r.maskObject,i=this.renderer.gl,o=r._stencilCounter;o===0&&(this.renderer.framebuffer.forceStencil(),i.clearStencil(0),i.clear(i.STENCIL_BUFFER_BIT),i.enable(i.STENCIL_TEST)),r._stencilCounter++,i.colorMask(!1,!1,!1,!1),i.stencilFunc(i.EQUAL,o,4294967295),i.stencilOp(i.KEEP,i.KEEP,i.INCR),n.renderable=!0,n.render(this.renderer),this.renderer.batch.flush(),n.renderable=!1,this._useCurrent()},t.prototype.pop=function(r){var n=this.renderer.gl;this.getStackLength()===0?n.disable(n.STENCIL_TEST):(n.colorMask(!1,!1,!1,!1),n.stencilOp(n.KEEP,n.KEEP,n.DECR),r.renderable=!0,r.render(this.renderer),this.renderer.batch.flush(),r.renderable=!1,this._useCurrent())},t.prototype._useCurrent=function(){var r=this.renderer.gl;r.colorMask(!0,!0,!0,!0),r.stencilFunc(r.EQUAL,this.getStackLength(),4294967295),r.stencilOp(r.KEEP,r.KEEP,r.KEEP)},t}(nw),aw=function(){function e(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new ft,this.transform=null}return e.prototype.update=function(t,r,n,i){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=r||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,n,i),this.transform&&this.projectionMatrix.append(this.transform);var o=this.renderer;o.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,o.globalUniforms.update(),o.shader.shader&&o.shader.syncUniformGroup(o.shader.shader.uniforms.globals)},e.prototype.calculateProjection=function(t,r,n,i){var o=this.projectionMatrix,a=i?-1:1;o.identity(),o.a=1/r.width*2,o.d=a*(1/r.height*2),o.tx=-1-r.x*o.a,o.ty=-a-r.y*o.d},e.prototype.setTransform=function(t){},e.prototype.destroy=function(){this.renderer=null},e}(),Jn=new Ce,ba=new Ce,sw=function(){function e(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Ce,this.destinationFrame=new Ce,this.viewportFrame=new Ce}return e.prototype.bind=function(t,r,n){t===void 0&&(t=null);var i=this.renderer;this.current=t;var o,a,s;t?(o=t.baseTexture,s=o.resolution,r||(Jn.width=t.frame.width,Jn.height=t.frame.height,r=Jn),n||(ba.x=t.frame.x,ba.y=t.frame.y,ba.width=r.width,ba.height=r.height,n=ba),a=o.framebuffer):(s=i.resolution,r||(Jn.width=i.screen.width,Jn.height=i.screen.height,r=Jn),n||(n=Jn,n.width=r.width,n.height=r.height));var u=this.viewportFrame;u.x=n.x*s,u.y=n.y*s,u.width=n.width*s,u.height=n.height*s,t||(u.y=i.view.height-(u.y+u.height)),u.ceil(),this.renderer.framebuffer.bind(a,u),this.renderer.projection.update(n,r,s,!a),t?this.renderer.mask.setMaskStack(o.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(r),this.destinationFrame.copyFrom(n)},e.prototype.clear=function(t,r){this.current?t=t||this.current.baseTexture.clearColor:t=t||this.clearColor;var n=this.destinationFrame,i=this.current?this.current.baseTexture:this.renderer.screen,o=n.width!==i.width||n.height!==i.height;if(o){var a=this.viewportFrame,s=a.x,u=a.y,l=a.width,c=a.height;s=Math.round(s),u=Math.round(u),l=Math.round(l),c=Math.round(c),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(s,u,l,c)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],r),o&&this.renderer.scissor.pop()},e.prototype.resize=function(){this.bind(null)},e.prototype.reset=function(){this.bind(null)},e.prototype.destroy=function(){this.renderer=null},e}();function nG(e,t,r,n,i){r.buffer.update(i)}var iG={float:` + data[offset] = v; + `,vec2:` + data[offset] = v[0]; + data[offset+1] = v[1]; + `,vec3:` + data[offset] = v[0]; + data[offset+1] = v[1]; + data[offset+2] = v[2]; + + `,vec4:` + data[offset] = v[0]; + data[offset+1] = v[1]; + data[offset+2] = v[2]; + data[offset+3] = v[3]; + `,mat2:` + data[offset] = v[0]; + data[offset+1] = v[1]; + + data[offset+4] = v[2]; + data[offset+5] = v[3]; + `,mat3:` + data[offset] = v[0]; + data[offset+1] = v[1]; + data[offset+2] = v[2]; + + data[offset + 4] = v[3]; + data[offset + 5] = v[4]; + data[offset + 6] = v[5]; + + data[offset + 8] = v[6]; + data[offset + 9] = v[7]; + data[offset + 10] = v[8]; + `,mat4:` + for(var i = 0; i < 16; i++) + { + data[offset + i] = v[i]; + } + `},uw={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function oG(e){for(var t=e.map(function(u){return{data:u,offset:0,dataLen:0,dirty:0}}),r=0,n=0,i=0,o=0;o1&&(r=Math.max(r,16)*a.data.size),a.dataLen=r,n%r!==0&&n<16){var s=n%r%16;n+=s,i+=s}n+r>16?(i=Math.ceil(i/16)*16,a.offset=i,i+=r,n=r):(a.offset=i,n+=r,i+=r)}return i=Math.ceil(i/16)*16,{uboElements:t,size:i}}function aG(e,t){var r=[];for(var n in e)t[n]&&r.push(t[n]);return r.sort(function(i,o){return i.index-o.index}),r}function sG(e,t){if(!e.autoManage)return{size:0,syncFunc:nG};for(var r=aG(e.uniforms,t),n=oG(r),i=n.uboElements,o=n.size,a=[` + var v = null; + var v2 = null; + var cv = null; + var t = 0; + var gl = renderer.gl + var index = 0; + var data = buffer.data; + `],s=0;s1){var v=ew(u.data.type),_=Math.max(uw[u.data.type]/16,1),p=v/_,m=(4-p%4)%4;a.push(` + cv = ud.`+c+`.value; + v = uv.`+c+`; + offset = `+u.offset/4+`; + + t = 0; + + for(var i=0; i < `+u.data.size*_+`; i++) + { + for(var j = 0; j < `+p+`; j++) + { + data[offset++] = v[t++]; + } + offset += `+m+`; + } + + `)}else{var g=iG[u.data.type];a.push(` + cv = ud.`+c+`.value; + v = uv.`+c+`; + offset = `+u.offset/4+`; + `+g+`; + `)}}return a.push(` + renderer.buffer.update(buffer); + `),{size:o,syncFunc:new Function("ud","uv","renderer","syncData","buffer",a.join(` +`))}}var uG=function(){function e(t,r){this.program=t,this.uniformData=r,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return e.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},e}();function lG(e,t){for(var r={},n=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),i=0;if?1:-1});for(var a=0;a>1,n++;this.stateId=t.data}for(var n=0;nthis.checkCountMax&&(this.checkCount=0,this.run())))},e.prototype.run=function(){for(var t=this.renderer.texture,r=t.managedTextures,n=!1,i=0;ithis.maxIdle&&(t.destroyTexture(o,!0),r[i]=null,n=!0)}if(n){for(var a=0,i=0;i=0;i--)this.unload(t.children[i])},e.prototype.destroy=function(){this.renderer=null},e}();function xG(e){var t,r,n,i,o,a,s,u,l,c,f,h,d,v,_,p,m,g,x,w,T,b,R;return"WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext?R=(t={},t[ae.UNSIGNED_BYTE]=(r={},r[H.RGBA]=e.RGBA8,r[H.RGB]=e.RGB8,r[H.RG]=e.RG8,r[H.RED]=e.R8,r[H.RGBA_INTEGER]=e.RGBA8UI,r[H.RGB_INTEGER]=e.RGB8UI,r[H.RG_INTEGER]=e.RG8UI,r[H.RED_INTEGER]=e.R8UI,r[H.ALPHA]=e.ALPHA,r[H.LUMINANCE]=e.LUMINANCE,r[H.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,r),t[ae.BYTE]=(n={},n[H.RGBA]=e.RGBA8_SNORM,n[H.RGB]=e.RGB8_SNORM,n[H.RG]=e.RG8_SNORM,n[H.RED]=e.R8_SNORM,n[H.RGBA_INTEGER]=e.RGBA8I,n[H.RGB_INTEGER]=e.RGB8I,n[H.RG_INTEGER]=e.RG8I,n[H.RED_INTEGER]=e.R8I,n),t[ae.UNSIGNED_SHORT]=(i={},i[H.RGBA_INTEGER]=e.RGBA16UI,i[H.RGB_INTEGER]=e.RGB16UI,i[H.RG_INTEGER]=e.RG16UI,i[H.RED_INTEGER]=e.R16UI,i[H.DEPTH_COMPONENT]=e.DEPTH_COMPONENT16,i),t[ae.SHORT]=(o={},o[H.RGBA_INTEGER]=e.RGBA16I,o[H.RGB_INTEGER]=e.RGB16I,o[H.RG_INTEGER]=e.RG16I,o[H.RED_INTEGER]=e.R16I,o),t[ae.UNSIGNED_INT]=(a={},a[H.RGBA_INTEGER]=e.RGBA32UI,a[H.RGB_INTEGER]=e.RGB32UI,a[H.RG_INTEGER]=e.RG32UI,a[H.RED_INTEGER]=e.R32UI,a[H.DEPTH_COMPONENT]=e.DEPTH_COMPONENT24,a),t[ae.INT]=(s={},s[H.RGBA_INTEGER]=e.RGBA32I,s[H.RGB_INTEGER]=e.RGB32I,s[H.RG_INTEGER]=e.RG32I,s[H.RED_INTEGER]=e.R32I,s),t[ae.FLOAT]=(u={},u[H.RGBA]=e.RGBA32F,u[H.RGB]=e.RGB32F,u[H.RG]=e.RG32F,u[H.RED]=e.R32F,u[H.DEPTH_COMPONENT]=e.DEPTH_COMPONENT32F,u),t[ae.HALF_FLOAT]=(l={},l[H.RGBA]=e.RGBA16F,l[H.RGB]=e.RGB16F,l[H.RG]=e.RG16F,l[H.RED]=e.R16F,l),t[ae.UNSIGNED_SHORT_5_6_5]=(c={},c[H.RGB]=e.RGB565,c),t[ae.UNSIGNED_SHORT_4_4_4_4]=(f={},f[H.RGBA]=e.RGBA4,f),t[ae.UNSIGNED_SHORT_5_5_5_1]=(h={},h[H.RGBA]=e.RGB5_A1,h),t[ae.UNSIGNED_INT_2_10_10_10_REV]=(d={},d[H.RGBA]=e.RGB10_A2,d[H.RGBA_INTEGER]=e.RGB10_A2UI,d),t[ae.UNSIGNED_INT_10F_11F_11F_REV]=(v={},v[H.RGB]=e.R11F_G11F_B10F,v),t[ae.UNSIGNED_INT_5_9_9_9_REV]=(_={},_[H.RGB]=e.RGB9_E5,_),t[ae.UNSIGNED_INT_24_8]=(p={},p[H.DEPTH_STENCIL]=e.DEPTH24_STENCIL8,p),t[ae.FLOAT_32_UNSIGNED_INT_24_8_REV]=(m={},m[H.DEPTH_STENCIL]=e.DEPTH32F_STENCIL8,m),t):R=(g={},g[ae.UNSIGNED_BYTE]=(x={},x[H.RGBA]=e.RGBA,x[H.RGB]=e.RGB,x[H.ALPHA]=e.ALPHA,x[H.LUMINANCE]=e.LUMINANCE,x[H.LUMINANCE_ALPHA]=e.LUMINANCE_ALPHA,x),g[ae.UNSIGNED_SHORT_5_6_5]=(w={},w[H.RGB]=e.RGB,w),g[ae.UNSIGNED_SHORT_4_4_4_4]=(T={},T[H.RGBA]=e.RGBA,T),g[ae.UNSIGNED_SHORT_5_5_5_1]=(b={},b[H.RGBA]=e.RGBA,b),g),R}var lh=function(){function e(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=ae.UNSIGNED_BYTE,this.internalFormat=H.RGBA,this.samplerType=0}return e}(),hw=function(){function e(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new we,this.hasIntegerTextures=!1}return e.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=xG(t);var r=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=r;for(var n=0;n=0;--a){var s=n[a];if(s){var u=s._glTextures[o];u.samplerType!==kl.FLOAT&&this.renderer.texture.unbind(s)}}},e.prototype.initTexture=function(t){var r=new lh(this.gl.createTexture());return r.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=r,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),r},e.prototype.initTextureType=function(t,r){var n,i;r.internalFormat=(i=(n=this.internalFormats[t.type])===null||n===void 0?void 0:n[t.format])!==null&&i!==void 0?i:t.format,this.webGLVersion===2&&t.type===ae.HALF_FLOAT?r.type=this.gl.HALF_FLOAT:r.type=t.type},e.prototype.updateTexture=function(t){var r=t._glTextures[this.CONTEXT_UID];if(!!r){var n=this.renderer;if(this.initTextureType(t,r),t.resource&&t.resource.upload(n,t,r))r.samplerType!==kl.FLOAT&&(this.hasIntegerTextures=!0);else{var i=t.realWidth,o=t.realHeight,a=n.gl;(r.width!==i||r.height!==o||r.dirtyId<0)&&(r.width=i,r.height=o,a.texImage2D(t.target,0,r.internalFormat,i,o,0,t.format,r.type,null))}t.dirtyStyleId!==r.dirtyStyleId&&this.updateTextureStyle(t),r.dirtyId=t.dirtyId}},e.prototype.destroyTexture=function(t,r){var n=this.gl;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),n.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!r)){var i=this.managedTextures.indexOf(t);i!==-1&&Eo(this.managedTextures,i,1)}},e.prototype.updateTextureStyle=function(t){var r=t._glTextures[this.CONTEXT_UID];!r||((t.mipmap===hn.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?r.mipmap=!1:r.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?r.wrapMode=un.CLAMP:r.wrapMode=t.wrapMode,t.resource&&t.resource.style(this.renderer,t,r)||this.setStyle(t,r),r.dirtyStyleId=t.dirtyStyleId)},e.prototype.setStyle=function(t,r){var n=this.gl;if(r.mipmap&&t.mipmap!==hn.ON_MANUAL&&n.generateMipmap(t.target),n.texParameteri(t.target,n.TEXTURE_WRAP_S,r.wrapMode),n.texParameteri(t.target,n.TEXTURE_WRAP_T,r.wrapMode),r.mipmap){n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===an.LINEAR?n.LINEAR_MIPMAP_LINEAR:n.NEAREST_MIPMAP_NEAREST);var i=this.renderer.context.extensions.anisotropicFiltering;if(i&&t.anisotropicLevel>0&&t.scaleMode===an.LINEAR){var o=Math.min(t.anisotropicLevel,n.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT));n.texParameterf(t.target,i.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===an.LINEAR?n.LINEAR:n.NEAREST);n.texParameteri(t.target,n.TEXTURE_MAG_FILTER,t.scaleMode===an.LINEAR?n.LINEAR:n.NEAREST)},e.prototype.destroy=function(){this.renderer=null},e}(),dw={__proto__:null,FilterSystem:WT,BatchSystem:qT,ContextSystem:YT,FramebufferSystem:KT,GeometrySystem:ZT,MaskSystem:rw,ScissorSystem:iw,StencilSystem:ow,ProjectionSystem:aw,RenderTextureSystem:sw,ShaderSystem:lw,StateSystem:cw,TextureGCSystem:fw,TextureSystem:hw},ch=new ft,bG=function(e){je(t,e);function t(r,n){r===void 0&&(r=bs.UNKNOWN);var i=e.call(this)||this;return n=Object.assign({},oe.RENDER_OPTIONS,n),i.options=n,i.type=r,i.screen=new Ce(0,0,n.width,n.height),i.view=n.view||document.createElement("canvas"),i.resolution=n.resolution||oe.RESOLUTION,i.useContextAlpha=n.useContextAlpha,i.autoDensity=!!n.autoDensity,i.preserveDrawingBuffer=n.preserveDrawingBuffer,i.clearBeforeRender=n.clearBeforeRender,i._backgroundColor=0,i._backgroundColorRgba=[0,0,0,1],i._backgroundColorString="#000000",i.backgroundColor=n.backgroundColor||i._backgroundColor,i.backgroundAlpha=n.backgroundAlpha,n.transparent!==void 0&&(wi("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),i.useContextAlpha=n.transparent,i.backgroundAlpha=n.transparent?0:1),i._lastObjectRendered=null,i.plugins={},i}return t.prototype.initPlugins=function(r){for(var n in r)this.plugins[n]=new r[n](this)},Object.defineProperty(t.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),t.prototype.resize=function(r,n){this.view.width=Math.round(r*this.resolution),this.view.height=Math.round(n*this.resolution);var i=this.view.width/this.resolution,o=this.view.height/this.resolution;this.screen.width=i,this.screen.height=o,this.autoDensity&&(this.view.style.width=i+"px",this.view.style.height=o+"px"),this.emit("resize",i,o)},t.prototype.generateTexture=function(r,n,i,o){n===void 0&&(n={}),typeof n=="number"&&(wi("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),n={scaleMode:n,resolution:i,region:o});var a=n.region,s=E8(n,["region"]);o=a||r.getLocalBounds(null,!0),o.width===0&&(o.width=1),o.height===0&&(o.height=1);var u=Si.create(Kd({width:o.width,height:o.height},s));return ch.tx=-o.x,ch.ty=-o.y,this.render(r,{renderTexture:u,clear:!1,transform:ch,skipUpdateTransform:!!r.parent}),u},t.prototype.destroy=function(r){for(var n in this.plugins)this.plugins[n].destroy(),this.plugins[n]=null;r&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var i=this;i.plugins=null,i.type=bs.UNKNOWN,i.view=null,i.screen=null,i._tempDisplayObjectParent=null,i.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(r){this._backgroundColor=r,this._backgroundColorString=PT(r),Oo(r,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(r){this._backgroundColorRgba[3]=r},enumerable:!1,configurable:!0}),t}(Gs),EG=function(){function e(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return e}(),TG=function(){function e(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}return e.prototype.destroy=function(){this.renderer=null},e.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},e.prototype.bind=function(t){var r=this,n=r.gl,i=r.CONTEXT_UID,o=t._glBuffers[i]||this.createGLBuffer(t);n.bindBuffer(t.type,o.buffer)},e.prototype.bindBufferBase=function(t,r){var n=this,i=n.gl,o=n.CONTEXT_UID;if(this.boundBufferBases[r]!==t){var a=t._glBuffers[o]||this.createGLBuffer(t);this.boundBufferBases[r]=t,i.bindBufferBase(i.UNIFORM_BUFFER,r,a.buffer)}},e.prototype.bindBufferRange=function(t,r,n){var i=this,o=i.gl,a=i.CONTEXT_UID;n=n||0;var s=t._glBuffers[a]||this.createGLBuffer(t);o.bindBufferRange(o.UNIFORM_BUFFER,r||0,s.buffer,n*256,256)},e.prototype.update=function(t){var r=this,n=r.gl,i=r.CONTEXT_UID,o=t._glBuffers[i];if(t._updateID!==o.updateID)if(o.updateID=t._updateID,n.bindBuffer(t.type,o.buffer),o.byteLength>=t.data.byteLength)n.bufferSubData(t.type,0,t.data);else{var a=t.static?n.STATIC_DRAW:n.DYNAMIC_DRAW;o.byteLength=t.data.byteLength,n.bufferData(t.type,t.data,a)}},e.prototype.dispose=function(t,r){if(!!this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var n=t._glBuffers[this.CONTEXT_UID],i=this.gl;t.disposeRunner.remove(this),n&&(r||i.deleteBuffer(n.buffer),delete t._glBuffers[this.CONTEXT_UID])}},e.prototype.disposeAll=function(t){for(var r=Object.keys(this.managedBuffers),n=0;n=pt.HIGH?this.multisample=pt.HIGH:n>=pt.MEDIUM?this.multisample=pt.MEDIUM:n>=pt.LOW?this.multisample=pt.LOW:this.multisample=pt.NONE},t.prototype.addSystem=function(r,n){var i=new r(this);if(this[n])throw new Error('Whoops! The name "'+n+'" is already in use');this[n]=i;for(var o in this.runners)this.runners[o].add(i);return this},t.prototype.render=function(r,n){var i,o,a,s;if(n&&(n instanceof Si?(wi("6.0.0","Renderer#render arguments changed, use options instead."),i=n,o=arguments[2],a=arguments[3],s=arguments[4]):(i=n.renderTexture,o=n.clear,a=n.transform,s=n.skipUpdateTransform)),this.renderingToScreen=!i,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=a,!this.context.isLost){if(i||(this._lastObjectRendered=r),!s){var u=r.enableTempParent();r.updateTransform(),r.disableTempParent(u)}this.renderTexture.bind(i),this.batch.currentRenderer.start(),(o!==void 0?o:this.clearBeforeRender)&&this.renderTexture.clear(),r.render(this),this.batch.currentRenderer.flush(),i&&i.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},t.prototype.generateTexture=function(r,n,i,o){n===void 0&&(n={});var a=e.prototype.generateTexture.call(this,r,n,i,o);return this.framebuffer.blit(),a},t.prototype.resize=function(r,n){e.prototype.resize.call(this,r,n),this.runners.resize.emit(this.screen.height,this.screen.width)},t.prototype.reset=function(){return this.runners.reset.emit(),this},t.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},t.prototype.destroy=function(r){this.runners.destroy.emit();for(var n in this.runners)this.runners[n].destroy();e.prototype.destroy.call(this,r),this.gl=null},Object.defineProperty(t.prototype,"extract",{get:function(){return wi("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),t.registerPlugin=function(r,n){t.__plugins=t.__plugins||{},t.__plugins[r]=n},t}(bG);function wG(e){return Kn.create(e)}var SG=`attribute vec2 aVertexPosition; +attribute vec2 aTextureCoord; + +uniform mat3 projectionMatrix; + +varying vec2 vTextureCoord; + +void main(void) +{ + gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); + vTextureCoord = aTextureCoord; +}`,CG=`attribute vec2 aVertexPosition; + +uniform mat3 projectionMatrix; + +varying vec2 vTextureCoord; + +uniform vec4 inputSize; +uniform vec4 outputFrame; + +vec4 filterVertexPosition( void ) +{ + vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy; + + return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0); +} + +vec2 filterTextureCoord( void ) +{ + return aVertexPosition * (outputFrame.zw * inputSize.zw); +} + +void main(void) +{ + gl_Position = filterVertexPosition(); + vTextureCoord = filterTextureCoord(); +} +`,IG=SG,pw=CG,Jd=function(){function e(){this.texArray=null,this.blend=0,this.type=Ir.TRIANGLES,this.start=0,this.size=0,this.data=null}return e}(),Qd=function(){function e(){this.elements=[],this.ids=[],this.count=0}return e.prototype.clear=function(){for(var t=0;tthis.size&&this.flush(),this._vertexCount+=r.vertexData.length/2,this._indexCount+=r.indices.length,this._bufferedTextures[this._bufferSize]=r._texture.baseTexture,this._bufferedElements[this._bufferSize++]=r)},t.prototype.buildTexturesAndDrawCalls=function(){var r=this,n=r._bufferedTextures,i=r.MAX_TEXTURES,o=t._textureArrayPool,a=this.renderer.batch,s=this._tempBoundTextures,u=this.renderer.textureGC.count,l=++we._globalBatch,c=0,f=o[0],h=0;a.copyBoundTextures(s,i);for(var d=0;d=i&&(a.boundArray(f,s,l,i),this.buildDrawCalls(f,h,d),h=d,f=o[++c],++l),v._batchEnabled=l,v.touched=u,f.elements[f.count++]=v)}f.count>0&&(a.boundArray(f,s,l,i),this.buildDrawCalls(f,h,this._bufferSize),++c,++l);for(var d=0;d0&&(r+=` +else `),n0||t.responseType===e.XHR_RESPONSE_TYPE.BUFFER)?n=L0:n===$G&&(n=GG);var i=n/100|0;if(i===jG)if(this.xhrType===e.XHR_RESPONSE_TYPE.TEXT)this.data=r,this.type=e.TYPE.TEXT;else if(this.xhrType===e.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(r),this.type=e.TYPE.JSON}catch(s){this.abort("Error trying to parse loaded json: "+s);return}else if(this.xhrType===e.XHR_RESPONSE_TYPE.DOCUMENT)try{if(globalThis.DOMParser){var o=new DOMParser;this.data=o.parseFromString(r,"text/xml")}else{var a=document.createElement("div");a.innerHTML=r,this.data=a}this.type=e.TYPE.XML}catch(s){this.abort("Error trying to parse loaded xml: "+s);return}else this.data=t.response||r;else{this.abort("["+t.status+"] "+t.statusText+": "+t.responseURL);return}this.complete()},e.prototype._determineCrossOrigin=function(t,r){if(t.indexOf("data:")===0)return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";r=r||globalThis.location,wu||(wu=document.createElement("a")),wu.href=t;var n=mw(wu.href,{strictMode:!0}),i=!n.port&&r.port===""||n.port===r.port,o=n.protocol?n.protocol+":":"";return n.host!==r.hostname||!i||o!==r.protocol?"anonymous":""},e.prototype._determineXhrType=function(){return e._xhrTypeMap[this.extension]||e.XHR_RESPONSE_TYPE.TEXT},e.prototype._determineLoadType=function(){return e._loadTypeMap[this.extension]||e.LOAD_TYPE.XHR},e.prototype._getExtension=function(t){t===void 0&&(t=this.url);var r="";if(this.isDataUrl){var n=t.indexOf("/");r=t.substring(n+1,t.indexOf(";",n))}else{var i=t.indexOf("?"),o=t.indexOf("#"),a=Math.min(i>-1?i:t.length,o>-1?o:t.length);t=t.substring(0,a),r=t.substring(t.lastIndexOf(".")+1)}return r.toLowerCase()},e.prototype._getMimeFromXhrType=function(t){switch(t){case e.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case e.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case e.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case e.XHR_RESPONSE_TYPE.JSON:return"application/json";case e.XHR_RESPONSE_TYPE.DEFAULT:case e.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},e}();(function(e){(function(t){t[t.NONE=0]="NONE",t[t.DATA_URL=1]="DATA_URL",t[t.COMPLETE=2]="COMPLETE",t[t.LOADING=4]="LOADING"})(e.STATUS_FLAGS||(e.STATUS_FLAGS={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.JSON=1]="JSON",t[t.XML=2]="XML",t[t.IMAGE=3]="IMAGE",t[t.AUDIO=4]="AUDIO",t[t.VIDEO=5]="VIDEO",t[t.TEXT=6]="TEXT"}(e.TYPE||(e.TYPE={})),function(t){t[t.XHR=1]="XHR",t[t.IMAGE=2]="IMAGE",t[t.AUDIO=3]="AUDIO",t[t.VIDEO=4]="VIDEO"}(e.LOAD_TYPE||(e.LOAD_TYPE={})),function(t){t.DEFAULT="text",t.BUFFER="arraybuffer",t.BLOB="blob",t.DOCUMENT="document",t.JSON="json",t.TEXT="text"}(e.XHR_RESPONSE_TYPE||(e.XHR_RESPONSE_TYPE={})),e._loadTypeMap={gif:e.LOAD_TYPE.IMAGE,png:e.LOAD_TYPE.IMAGE,bmp:e.LOAD_TYPE.IMAGE,jpg:e.LOAD_TYPE.IMAGE,jpeg:e.LOAD_TYPE.IMAGE,tif:e.LOAD_TYPE.IMAGE,tiff:e.LOAD_TYPE.IMAGE,webp:e.LOAD_TYPE.IMAGE,tga:e.LOAD_TYPE.IMAGE,svg:e.LOAD_TYPE.IMAGE,"svg+xml":e.LOAD_TYPE.IMAGE,mp3:e.LOAD_TYPE.AUDIO,ogg:e.LOAD_TYPE.AUDIO,wav:e.LOAD_TYPE.AUDIO,mp4:e.LOAD_TYPE.VIDEO,webm:e.LOAD_TYPE.VIDEO},e._xhrTypeMap={xhtml:e.XHR_RESPONSE_TYPE.DOCUMENT,html:e.XHR_RESPONSE_TYPE.DOCUMENT,htm:e.XHR_RESPONSE_TYPE.DOCUMENT,xml:e.XHR_RESPONSE_TYPE.DOCUMENT,tmx:e.XHR_RESPONSE_TYPE.DOCUMENT,svg:e.XHR_RESPONSE_TYPE.DOCUMENT,tsx:e.XHR_RESPONSE_TYPE.DOCUMENT,gif:e.XHR_RESPONSE_TYPE.BLOB,png:e.XHR_RESPONSE_TYPE.BLOB,bmp:e.XHR_RESPONSE_TYPE.BLOB,jpg:e.XHR_RESPONSE_TYPE.BLOB,jpeg:e.XHR_RESPONSE_TYPE.BLOB,tif:e.XHR_RESPONSE_TYPE.BLOB,tiff:e.XHR_RESPONSE_TYPE.BLOB,webp:e.XHR_RESPONSE_TYPE.BLOB,tga:e.XHR_RESPONSE_TYPE.BLOB,json:e.XHR_RESPONSE_TYPE.JSON,text:e.XHR_RESPONSE_TYPE.TEXT,txt:e.XHR_RESPONSE_TYPE.TEXT,ttf:e.XHR_RESPONSE_TYPE.BUFFER,otf:e.XHR_RESPONSE_TYPE.BUFFER},e.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="})(st||(st={}));function Qn(){}function HG(e){return function(){for(var r=arguments,n=[],i=0;i>2,i[1]=(n[0]&3)<<4|n[1]>>4,i[2]=(n[1]&15)<<2|n[2]>>6,i[3]=n[2]&63;var a=r-(e.length-1);switch(a){case 2:i[3]=64,i[2]=64;break;case 1:i[3]=64;break}for(var o=0;o0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=33776&&r<=33779)return"s3tc";if(r>=37488&&r<=37497)return"etc";if(r>=35840&&r<=35843)return"pvrtc";if(r>=36196)return"etc1";if(r>=35986&&r<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},t._createLevelBuffers=function(r,n,i,o,a,s,u){for(var l=new Array(i),c=r.byteOffset,f=s,h=u,d=f+o-1&~(o-1),v=h+a-1&~(a-1),_=d*v*Dl[n],p=0;p1?f:d,levelHeight:i>1?h:v,levelBuffer:new Uint8Array(r.buffer,c,_)},c+=_,f=f>>1||1,h=h>>1||1,d=f+o-1&~(o-1),v=h+a-1&~(a-1),_=d*v*Dl[n];return l},t}(QG),e$=function(){function e(){}return e.use=function(t,r){var n=t.data,i=this;if(t.type===st.TYPE.JSON&&n&&n.cacheID&&n.textures){for(var o=n.textures,a=void 0,s=void 0,u=0,l=o.length;u>>1,K=K>>>1}for(var W=R,X=0;X1||o!==0?O:k,levelHeight:d>1||o!==0?P:K,levelBuffer:new Uint8Array(r,z,R)},z+=R}X+=Te+4,X=X%4!==0?X+4-X%4:X,O=O>>1||1,P=P>>1||1,k=O+_-1&~(_-1),K=P+p-1&~(p-1),R=k*K*T}return o!==0?{uncompressed:x.map(function(ge){var Ue=ge[0].levelBuffer,U=!1;return o===ae.FLOAT?Ue=new Float32Array(ge[0].levelBuffer.buffer,ge[0].levelBuffer.byteOffset,ge[0].levelBuffer.byteLength/4):o===ae.UNSIGNED_INT?(U=!0,Ue=new Uint32Array(ge[0].levelBuffer.buffer,ge[0].levelBuffer.byteOffset,ge[0].levelBuffer.byteLength/4)):o===ae.INT&&(U=!0,Ue=new Int32Array(ge[0].levelBuffer.buffer,ge[0].levelBuffer.byteOffset,ge[0].levelBuffer.byteLength/4)),{resource:new Ko(Ue,{width:ge[0].levelWidth,height:ge[0].levelHeight}),type:o,format:U?e.convertFormatToInteger(a):a}})}:{compressed:x.map(function(ge){return new rp(null,{format:s,width:u,height:l,levels:d,levelBuffers:ge})})}},e.validate=function(t,r){for(var n=0;ns&&(i=s),a._properties=[!1,!0,!1,!1,!1],a._maxSize=r,a._batchSize=i,a._buffers=null,a._bufferUpdateIDs=[],a._updateID=0,a.interactiveChildren=!1,a.blendMode=se.NORMAL,a.autoResize=o,a.roundPixels=!0,a.baseTexture=null,a.setProperties(n),a._tint=0,a.tintRgb=new Float32Array(4),a.tint=16777215,a}return t.prototype.setProperties=function(r){r&&(this._properties[0]="vertices"in r||"scale"in r?!!r.vertices||!!r.scale:this._properties[0],this._properties[1]="position"in r?!!r.position:this._properties[1],this._properties[2]="rotation"in r?!!r.rotation:this._properties[2],this._properties[3]="uvs"in r?!!r.uvs:this._properties[3],this._properties[4]="tint"in r||"alpha"in r?!!r.tint||!!r.alpha:this._properties[4])},t.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(t.prototype,"tint",{get:function(){return this._tint},set:function(r){this._tint=r,Oo(r,this.tintRgb)},enumerable:!1,configurable:!0}),t.prototype.render=function(r){var n=this;!this.visible||this.worldAlpha<=0||!this.children.length||!this.renderable||(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",function(){return n.onChildrenChange(0)})),r.batch.setObjectRenderer(r.plugins.particle),r.plugins.particle.render(this))},t.prototype.onChildrenChange=function(r){for(var n=Math.floor(r/this._batchSize);this._bufferUpdateIDs.lengthi&&!r.autoResize&&(s=i);var u=r._buffers;u||(u=r._buffers=this.generateBuffers(r));var l=n[0]._texture.baseTexture;this.state.blendMode=OT(r.blendMode,l.alphaMode),a.state.set(this.state);var c=a.gl,f=r.worldTransform.copyTo(this.tempMatrix);f.prepend(a.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=f.toArray(!0),this.shader.uniforms.uColor=K5(r.tintRgb,r.worldAlpha,this.shader.uniforms.uColor,l.alphaMode),this.shader.uniforms.uSampler=l,this.renderer.shader.bind(this.shader);for(var h=!1,d=0,v=0;do&&(_=o),v>=u.length&&u.push(this._generateOneMoreBuffer(r));var p=u[v];p.uploadDynamic(n,d,_);var m=r._bufferUpdateIDs[v]||0;h=h||p._updateID0,f=l.alpha,h=f<1&&c?im(l._tintRGB,f):l._tintRGB+(f*255<<24);o[s]=h,o[s+a]=h,o[s+a*2]=h,o[s+a*3]=h,s+=a*4}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},t}(Pc);/*! + * @pixi/graphics - v6.3.0 + * Compiled Wed, 23 Mar 2022 18:58:56 UTC + * + * @pixi/graphics is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var Cn;(function(e){e.MITER="miter",e.BEVEL="bevel",e.ROUND="round"})(Cn||(Cn={}));var In;(function(e){e.BUTT="butt",e.ROUND="round",e.SQUARE="square"})(In||(In={}));var Ts={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(e,t){if(t===void 0&&(t=20),!this.adaptive||!e||isNaN(e))return t;var r=Math.ceil(e/this.maxLength);return rthis.maxSegments&&(r=this.maxSegments),r}},xw=function(){function e(){this.color=16777215,this.alpha=1,this.texture=ue.WHITE,this.matrix=null,this.visible=!1,this.reset()}return e.prototype.clone=function(){var t=new e;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t},e.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=ue.WHITE,this.matrix=null,this.visible=!1},e.prototype.destroy=function(){this.texture=null,this.matrix=null},e}();/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var op=function(e,t){return op=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},op(e,t)};function hm(e,t){op(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function $0(e,t){var r,n;t===void 0&&(t=!1);var i=e.length;if(!(i<6)){for(var o=0,a=0,s=e[i-2],u=e[i-1];a0||t&&o<=0)for(var f=i/2,a=f+f%2;a=6){$0(r,!1);for(var a=[],s=0;sf&&(f+=Math.PI*2);var h=c,d=f-c,v=Math.abs(d),_=Math.sqrt(u*u+l*l),p=(15*v*Math.sqrt(_)/Math.PI>>0)+1,m=d/p;if(h+=m,s){a.push(e,t),a.push(r,n);for(var g=1,x=h;gg?(q?(h.push(Ie,Ze),h.push(T+P*W,b+k*W),h.push(Ie,Ze),h.push(T+K*W,b+X*W)):(h.push(T-P*z,b-k*z),h.push(Ne,Be),h.push(T-K*z,b-X*z),h.push(Ne,Be)),v+=2):o.join===Cn.ROUND?q?(h.push(Ie,Ze),h.push(T+P*W,b+k*W),v+=Vi(T,b,T+P*W,b+k*W,T+K*W,b+X*W,h,!0)+4,h.push(Ie,Ze),h.push(T+K*W,b+X*W)):(h.push(T-P*z,b-k*z),h.push(Ne,Be),v+=Vi(T,b,T-P*z,b-k*z,T-K*z,b-X*z,h,!1)+4,h.push(T-K*z,b-X*z),h.push(Ne,Be)):(h.push(Ie,Ze),h.push(Ne,Be)):(h.push(T-P*z,b-k*z),h.push(T+P*W,b+k*W),o.join===Cn.BEVEL||De/m>g||(o.join===Cn.ROUND?q?v+=Vi(T,b,T+P*W,b+k*W,T+K*W,b+X*W,h,!0)+2:v+=Vi(T,b,T-P*z,b-k*z,T-K*z,b-X*z,h,!1)+2:(q?(h.push(Ne,Be),h.push(Ne,Be)):(h.push(Ie,Ze),h.push(Ie,Ze)),v+=2)),h.push(T-K*z,b-X*z),h.push(T+K*W,b+X*W),v+=2)}x=n[(d-2)*2],w=n[(d-2)*2+1],T=n[(d-1)*2],b=n[(d-1)*2+1],P=-(w-b),k=x-T,J=Math.sqrt(P*P+k*k),P/=J,k/=J,P*=p,k*=p,h.push(T-P*z,b-k*z),h.push(T+P*W,b+k*W),u||(o.cap===In.ROUND?v+=Vi(T-P*(z-W)*.5,b-k*(z-W)*.5,T-P*z,b-k*z,T+P*W,b+k*W,h,!1)+2:o.cap===In.SQUARE&&(v+=j0(T,b,P,k,z,W,!1,h)));for(var Yt=t.indices,_r=Ts.epsilon*Ts.epsilon,fe=_;feh*l}},e.arc=function(t,r,n,i,o,a,s,u,l){for(var c=s-a,f=Ts._segmentsCount(Math.abs(c)*o,Math.ceil(Math.abs(c)/Bl)*40),h=c/(f*2),d=h*2,v=Math.cos(h),_=Math.sin(h),p=f-1,m=p%1/p,g=0;g<=p;++g){var x=g+m*g,w=h+a+d*x,T=Math.cos(w),b=-Math.sin(w);l.push((v*T+_*b)*o+n,(v*-b+_*T)*o+i)}},e}(),R$=function(){function e(){}return e.curveLength=function(t,r,n,i,o,a,s,u){for(var l=10,c=0,f=0,h=0,d=0,v=0,_=0,p=0,m=0,g=0,x=0,w=0,T=t,b=r,R=1;R<=l;++R)f=R/l,h=f*f,d=h*f,v=1-f,_=v*v,p=_*v,m=p*t+3*_*f*n+3*v*h*o+d*s,g=p*r+3*_*f*i+3*v*h*a+d*u,x=T-m,w=b-g,T=m,b=g,c+=Math.sqrt(x*x+w*w);return c},e.curveTo=function(t,r,n,i,o,a,s){var u=s[s.length-2],l=s[s.length-1];s.length-=2;var c=Ts._segmentsCount(e.curveLength(u,l,t,r,n,i,o,a)),f=0,h=0,d=0,v=0,_=0;s.push(u,l);for(var p=1,m=0;p<=c;++p)m=p/c,f=1-m,h=f*f,d=h*f,v=m*m,_=v*m,s.push(d*u+3*h*m*t+3*f*v*n+_*o,d*l+3*h*m*r+3*f*v*i+_*a)},e}(),A$=function(){function e(){}return e.curveLength=function(t,r,n,i,o,a){var s=t-2*n+o,u=r-2*i+a,l=2*n-2*t,c=2*i-2*r,f=4*(s*s+u*u),h=4*(s*l+u*c),d=l*l+c*c,v=2*Math.sqrt(f+h+d),_=Math.sqrt(f),p=2*f*_,m=2*Math.sqrt(d),g=h/_;return(p*v+_*h*(v-m)+(4*d*f-h*h)*Math.log((2*_+g+v)/(g+m)))/(4*p)},e.curveTo=function(t,r,n,i,o){for(var a=o[o.length-2],s=o[o.length-1],u=Ts._segmentsCount(e.curveLength(a,s,t,r,n,i)),l=0,c=0,f=1;f<=u;++f){var h=f/u;l=a+(t-a)*h,c=s+(r-s)*h,o.push(l+(t+(n-t)*h-l)*h,c+(r+(i-r)*h-c)*h)}},e}(),O$=function(){function e(){this.reset()}return e.prototype.begin=function(t,r,n){this.reset(),this.style=t,this.start=r,this.attribStart=n},e.prototype.end=function(t,r){this.attribSize=r-this.attribStart,this.size=t-this.start},e.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},e}(),ei,vh=(ei={},ei[at.POLY]=bw,ei[at.CIRC]=Gl,ei[at.ELIP]=Gl,ei[at.RECT]=C$,ei[at.RREC]=I$,ei),X0=[],Pu=[],z0=function(){function e(t,r,n,i){r===void 0&&(r=null),n===void 0&&(n=null),i===void 0&&(i=null),this.points=[],this.holes=[],this.shape=t,this.lineStyle=n,this.fillStyle=r,this.matrix=i,this.type=t.type}return e.prototype.clone=function(){return new e(this.shape,this.fillStyle,this.lineStyle,this.matrix)},e.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},e}(),Xi=new ze,L$=new Es,k$=function(e){hm(t,e);function t(){var r=e.call(this)||this;return r.closePointEps=1e-4,r.boundsPadding=0,r.uvsFloat32=null,r.indicesUint16=null,r.batchable=!1,r.points=[],r.colors=[],r.uvs=[],r.indices=[],r.textureIds=[],r.graphicsData=[],r.drawCalls=[],r.batchDirty=-1,r.batches=[],r.dirty=0,r.cacheDirty=-1,r.clearDirty=0,r.shapeIndex=0,r._bounds=new Es,r.boundsDirty=-1,r}return Object.defineProperty(t.prototype,"bounds",{get:function(){return this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),t.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var r=0;r0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},t.prototype.drawShape=function(r,n,i,o){n===void 0&&(n=null),i===void 0&&(i=null),o===void 0&&(o=null);var a=new z0(r,n,i,o);return this.graphicsData.push(a),this.dirty++,this},t.prototype.drawHole=function(r,n){if(n===void 0&&(n=null),!this.graphicsData.length)return null;var i=new z0(r,null,null,n),o=this.graphicsData[this.graphicsData.length-1];return i.lineStyle=o.lineStyle,o.holes.push(i),this.dirty++,this},t.prototype.destroy=function(){e.prototype.destroy.call(this);for(var r=0;r0&&(o=this.batches[this.batches.length-1],a=o.style);for(var s=this.shapeIndex;s65535&&r;this.indicesUint16=w?new Uint32Array(this.indices):new Uint16Array(this.indices)}this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}},t.prototype._compareStyles=function(r,n){return!(!r||!n||r.texture.baseTexture!==n.texture.baseTexture||r.color+r.alpha!==n.color+n.alpha||!!r.native!=!!n.native)},t.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var r=0,n=this.graphicsData.length;r65535*2)return!1;for(var r=this.batches,n=0;n0&&(a=Pu.pop(),a||(a=new Jd,a.texArray=new Qd),this.drawCalls.push(a)),a.start=h,a.size=0,a.texArray.count=0,a.type=f),p.touched=1,p._batchEnabled=r,p._batchLocation=s,p.wrapMode=un.REPEAT,a.texArray.elements[a.texArray.count++]=p,s++)),a.size+=d.size,h+=d.size,l=p._batchLocation,this.addColors(i,_.color,_.alpha,d.attribSize,d.attribStart),this.addTextureIds(o,l,d.attribSize,d.attribStart)}we._globalBatch=r,this.packAttributes()},t.prototype.packAttributes=function(){for(var r=this.points,n=this.uvs,i=this.colors,o=this.textureIds,a=new ArrayBuffer(r.length*3*4),s=new Float32Array(a),u=new Uint32Array(a),l=0,c=0;c>16)+(n&65280)+((n&255)<<16),u=im(s,i);r.length=Math.max(r.length,a+o);for(var l=0;l0&&r.alpha>0;return n?(r.matrix&&(r.matrix=r.matrix.clone(),r.matrix.invert()),Object.assign(this._lineStyle,{visible:n},r)):this._lineStyle.reset(),this},t.prototype.startPoly=function(){if(this.currentPath){var r=this.currentPath.points,n=this.currentPath.points.length;n>2&&(this.drawShape(this.currentPath),this.currentPath=new Ju,this.currentPath.closeStroke=!1,this.currentPath.points.push(r[n-2],r[n-1]))}else this.currentPath=new Ju,this.currentPath.closeStroke=!1},t.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},t.prototype.moveTo=function(r,n){return this.startPoly(),this.currentPath.points[0]=r,this.currentPath.points[1]=n,this},t.prototype.lineTo=function(r,n){this.currentPath||this.moveTo(0,0);var i=this.currentPath.points,o=i[i.length-2],a=i[i.length-1];return(o!==r||a!==n)&&i.push(r,n),this},t.prototype._initCurve=function(r,n){r===void 0&&(r=0),n===void 0&&(n=0),this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[r,n]):this.moveTo(r,n)},t.prototype.quadraticCurveTo=function(r,n,i,o){this._initCurve();var a=this.currentPath.points;return a.length===0&&this.moveTo(0,0),A$.curveTo(r,n,i,o,a),this},t.prototype.bezierCurveTo=function(r,n,i,o,a,s){return this._initCurve(),R$.curveTo(r,n,i,o,a,s,this.currentPath.points),this},t.prototype.arcTo=function(r,n,i,o,a){this._initCurve(r,n);var s=this.currentPath.points,u=V0.curveTo(r,n,i,o,a,s);if(u){var l=u.cx,c=u.cy,f=u.radius,h=u.startAngle,d=u.endAngle,v=u.anticlockwise;this.arc(l,c,f,h,d,v)}return this},t.prototype.arc=function(r,n,i,o,a,s){if(s===void 0&&(s=!1),o===a)return this;!s&&a<=o?a+=Bl:s&&o<=a&&(o+=Bl);var u=a-o;if(u===0)return this;var l=r+Math.cos(o)*i,c=n+Math.sin(o)*i,f=this._geometry.closePointEps,h=this.currentPath?this.currentPath.points:null;if(h){var d=Math.abs(h[h.length-2]-l),v=Math.abs(h[h.length-1]-c);d0;return n?(r.matrix&&(r.matrix=r.matrix.clone(),r.matrix.invert()),Object.assign(this._fillStyle,{visible:n},r)):this._fillStyle.reset(),this},t.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},t.prototype.drawRect=function(r,n,i,o){return this.drawShape(new Ce(r,n,i,o))},t.prototype.drawRoundedRect=function(r,n,i,o,a){return this.drawShape(new o8(r,n,i,o,a))},t.prototype.drawCircle=function(r,n,i){return this.drawShape(new n8(r,n,i))},t.prototype.drawEllipse=function(r,n,i,o){return this.drawShape(new i8(r,n,i,o))},t.prototype.drawPolygon=function(){for(var r=arguments,n=[],i=0;i>16&255)/255*a,s.tint[1]=(o>>8&255)/255*a,s.tint[2]=(o&255)/255*a,s.tint[3]=a,r.shader.bind(n),r.geometry.bind(i,n),r.state.set(this.state);for(var l=0,c=u.length;l>16)+(l&65280)+((l&255)<<16)}}},t.prototype.calculateVertices=function(){var r=this.transform._worldID;if(this._transformID!==r){this._transformID=r;for(var n=this.transform.worldTransform,i=n.a,o=n.b,a=n.c,s=n.d,u=n.tx,l=n.ty,c=this._geometry.points,f=this.vertexData,h=0,d=0;d=o&&wa.x=a&&wa.y>16)+(r&65280)+((r&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(r){this._texture!==r&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=r||ue.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,r&&(r.baseTexture.valid?this._onTextureUpdate():r.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),t}(hr);/*! + * @pixi/text - v6.3.0 + * Compiled Wed, 23 Mar 2022 18:58:56 UTC + * + * @pixi/text is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + *//*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var sp=function(e,t){return sp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},sp(e,t)};function D$(e,t){sp(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ws;(function(e){e[e.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",e[e.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL"})(ws||(ws={}));var _h={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:ws.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100,leading:0},G$=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],ko=function(){function e(t){this.styleID=0,this.reset(),yh(this,t,t)}return e.prototype.clone=function(){var t={};return yh(t,this,_h),new e(t)},e.prototype.reset=function(){yh(this,_h,_h)},Object.defineProperty(e.prototype,"align",{get:function(){return this._align},set:function(t){this._align!==t&&(this._align=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"breakWords",{get:function(){return this._breakWords},set:function(t){this._breakWords!==t&&(this._breakWords=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadow",{get:function(){return this._dropShadow},set:function(t){this._dropShadow!==t&&(this._dropShadow=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowAlpha",{get:function(){return this._dropShadowAlpha},set:function(t){this._dropShadowAlpha!==t&&(this._dropShadowAlpha=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowAngle",{get:function(){return this._dropShadowAngle},set:function(t){this._dropShadowAngle!==t&&(this._dropShadowAngle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowBlur",{get:function(){return this._dropShadowBlur},set:function(t){this._dropShadowBlur!==t&&(this._dropShadowBlur=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowColor",{get:function(){return this._dropShadowColor},set:function(t){var r=gh(t);this._dropShadowColor!==r&&(this._dropShadowColor=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dropShadowDistance",{get:function(){return this._dropShadowDistance},set:function(t){this._dropShadowDistance!==t&&(this._dropShadowDistance=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this._fill},set:function(t){var r=gh(t);this._fill!==r&&(this._fill=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fillGradientType",{get:function(){return this._fillGradientType},set:function(t){this._fillGradientType!==t&&(this._fillGradientType=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fillGradientStops",{get:function(){return this._fillGradientStops},set:function(t){$$(this._fillGradientStops,t)||(this._fillGradientStops=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(t){this.fontFamily!==t&&(this._fontFamily=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize!==t&&(this._fontSize=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(t){this._fontStyle!==t&&(this._fontStyle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontVariant",{get:function(){return this._fontVariant},set:function(t){this._fontVariant!==t&&(this._fontVariant=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(t){this._fontWeight!==t&&(this._fontWeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(t){this._lineHeight!==t&&(this._lineHeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leading",{get:function(){return this._leading},set:function(t){this._leading!==t&&(this._leading=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(t){this._lineJoin!==t&&(this._lineJoin=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"miterLimit",{get:function(){return this._miterLimit},set:function(t){this._miterLimit!==t&&(this._miterLimit=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this._padding},set:function(t){this._padding!==t&&(this._padding=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this._stroke},set:function(t){var r=gh(t);this._stroke!==r&&(this._stroke=r,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"strokeThickness",{get:function(){return this._strokeThickness},set:function(t){this._strokeThickness!==t&&(this._strokeThickness=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(t){this._textBaseline!==t&&(this._textBaseline=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trim",{get:function(){return this._trim},set:function(t){this._trim!==t&&(this._trim=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"whiteSpace",{get:function(){return this._whiteSpace},set:function(t){this._whiteSpace!==t&&(this._whiteSpace=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(t){this._wordWrap!==t&&(this._wordWrap=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wordWrapWidth",{get:function(){return this._wordWrapWidth},set:function(t){this._wordWrapWidth!==t&&(this._wordWrapWidth=t,this.styleID++)},enumerable:!1,configurable:!0}),e.prototype.toFontString=function(){var t=typeof this.fontSize=="number"?this.fontSize+"px":this.fontSize,r=this.fontFamily;Array.isArray(this.fontFamily)||(r=this.fontFamily.split(","));for(var n=r.length-1;n>=0;n--){var i=r[n].trim();!/([\"\'])[^\'\"]+\1/.test(i)&&G$.indexOf(i)<0&&(i='"'+i+'"'),r[n]=i}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+r.join(",")},e}();function W0(e){return typeof e=="number"?PT(e):(typeof e=="string"&&e.indexOf("0x")===0&&(e=e.replace("0x","#")),e)}function gh(e){if(Array.isArray(e)){for(var t=0;tv)if(a!==""&&(s+=e.addLine(a),a="",o=0),e.canBreakWords(m,r.breakWords))for(var T=e.wordWrapSplit(m),b=0;bv&&(s+=e.addLine(a),d=!1,a="",o=0),a+=R,o+=K}else{a.length>0&&(s+=e.addLine(a),a="",o=0);var X=p===_.length-1;s+=e.addLine(m,!X),d=!1,a="",o=0}else w+o>v&&(d=!1,s+=e.addLine(a),a="",o=0),(a.length>0||!e.isBreakingSpace(m)||d)&&(a+=m,o+=w)}return s+=e.addLine(a,!1),s},e.addLine=function(t,r){return r===void 0&&(r=!0),t=e.trimRight(t),t=r?t+` +`:t,t},e.getFromCache=function(t,r,n,i){var o=n[t];if(typeof o!="number"){var a=t.length*r;o=i.measureText(t).width+a,n[t]=o}return o},e.collapseSpaces=function(t){return t==="normal"||t==="pre-line"},e.collapseNewlines=function(t){return t==="normal"},e.trimRight=function(t){if(typeof t!="string")return"";for(var r=t.length-1;r>=0;r--){var n=t[r];if(!e.isBreakingSpace(n))break;t=t.slice(0,-1)}return t},e.isNewline=function(t){return typeof t!="string"?!1:e._newlines.indexOf(t.charCodeAt(0))>=0},e.isBreakingSpace=function(t,r){return typeof t!="string"?!1:e._breakingSpaces.indexOf(t.charCodeAt(0))>=0},e.tokenize=function(t){var r=[],n="";if(typeof t!="string")return r;for(var i=0;is;--h){for(var _=0;_0&&p>m&&(g=(m+p)/2);var x=m+_,w=i.lineHeight*(v+1),T=x;v+10},e}();function X$(e,t){var r=!1;if(e&&e._textures&&e._textures.length){for(var n=0;n=0;r--)this.add(t.children[r]);return this},e.prototype.destroy=function(){this.ticking&&Pt.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},e}();function Tw(e,t){return t instanceof we?(t._glTextures[e.CONTEXT_UID]||e.texture.bind(t),!0):!1}function Q$(e,t){if(!(t instanceof $l))return!1;var r=t.geometry;t.finishPoly(),r.updateBatches();for(var n=r.batches,i=0;i=o&&Sa.x=a&&Sa.y1?Un.from(a9,s9,n):Un.from(q0,o9,n)},t.prototype.render=function(r){var n=this.renderer,i=this.quad,o=i.vertices;o[0]=o[6]=r._width*-r.anchor.x,o[1]=o[3]=r._height*-r.anchor.y,o[2]=o[4]=r._width*(1-r.anchor.x),o[5]=o[7]=r._height*(1-r.anchor.y);var a=r.uvRespectAnchor?r.anchor.x:0,s=r.uvRespectAnchor?r.anchor.y:0;o=i.uvs,o[0]=o[6]=-a,o[1]=o[3]=-s,o[2]=o[4]=1-a,o[5]=o[7]=1-s,i.invalidate();var u=r._texture,l=u.baseTexture,c=r.tileTransform.localTransform,f=r.uvMatrix,h=l.isPowerOfTwo&&u.frame.width===l.width&&u.frame.height===l.height;h&&(l._glTextures[n.CONTEXT_UID]?h=l.wrapMode!==un.CLAMP:l.wrapMode===un.CLAMP&&(l.wrapMode=un.REPEAT));var d=h?this.simpleShader:this.shader,v=u.width,_=u.height,p=r._width,m=r._height;Ru.set(c.a*v/p,c.b*v/m,c.c*_/p,c.d*_/m,c.tx/p,c.ty/m),Ru.invert(),h?Ru.prepend(f.mapCoord):(d.uniforms.uMapCoord=f.mapCoord.toArray(!0),d.uniforms.uClampFrame=f.uClampFrame,d.uniforms.uClampOffset=f.uClampOffset),d.uniforms.uTransform=Ru.toArray(!0),d.uniforms.uColor=LT(r.tint,r.worldAlpha,d.uniforms.uColor,l.alphaMode),d.uniforms.translationMatrix=r.transform.worldTransform.toArray(!0),d.uniforms.uSampler=u,n.shader.bind(d),n.geometry.bind(i),this.state.blendMode=OT(r.blendMode,l.alphaMode),n.state.set(this.state),n.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},t}(Pc);/*! + * @pixi/mesh - v6.3.0 + * Compiled Wed, 23 Mar 2022 18:58:56 UTC + * + * @pixi/mesh is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + *//*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var cp=function(e,t){return cp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},cp(e,t)};function dm(e,t){cp(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var l9=function(){function e(t,r){this.uvBuffer=t,this.uvMatrix=r,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}return e.prototype.update=function(t){if(!(!t&&this._bufferUpdateId===this.uvBuffer._updateID&&this._textureUpdateId===this.uvMatrix._updateID)){this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID;var r=this.uvBuffer.data;(!this.data||this.data.length!==r.length)&&(this.data=new Float32Array(r.length)),this.uvMatrix.multiplyUvs(r,this.data),this._updateID++}},e}(),xh=new ze,Y0=new Ju,Ss=function(e){dm(t,e);function t(r,n,i,o){o===void 0&&(o=Ir.TRIANGLES);var a=e.call(this)||this;return a.geometry=r,a.shader=n,a.state=i||Oi.for2d(),a.drawMode=o,a.start=0,a.size=0,a.uvs=null,a.indices=null,a.vertexData=new Float32Array(1),a.vertexDirty=-1,a._transformID=-1,a._roundPixels=oe.ROUND_PIXELS,a.batchUvs=null,a}return Object.defineProperty(t.prototype,"geometry",{get:function(){return this._geometry},set:function(r){this._geometry!==r&&(this._geometry&&(this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose()),this._geometry=r,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uvBuffer",{get:function(){return this.geometry.buffers[1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verticesBuffer",{get:function(){return this.geometry.buffers[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"material",{get:function(){return this.shader},set:function(r){this.shader=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(r){this.state.blendMode=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(r){this._roundPixels!==r&&(this._transformID=-1),this._roundPixels=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tint",{get:function(){return"tint"in this.shader?this.shader.tint:null},set:function(r){this.shader.tint=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return"texture"in this.shader?this.shader.texture:null},set:function(r){this.shader.texture=r},enumerable:!1,configurable:!0}),t.prototype._render=function(r){var n=this.geometry.buffers[0].data,i=this.shader;i.batchable&&this.drawMode===Ir.TRIANGLES&&n.length>16)+(r&65280)+((r&255)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),t.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var r=this.texture.baseTexture;LT(this._tint,this._alpha,this.uniforms.uColor,r.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},t}(Un),Ac=function(e){dm(t,e);function t(r,n,i){var o=e.call(this)||this,a=new vt(r),s=new vt(n,!0),u=new vt(i,!0,!0);return o.addAttribute("aVertexPosition",a,2,!1,ae.FLOAT).addAttribute("aTextureCoord",s,2,!1,ae.FLOAT).addIndex(u),o._updateId=-1,o}return Object.defineProperty(t.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),t}($s);/*! + * @pixi/text-bitmap - v6.3.0 + * Compiled Wed, 23 Mar 2022 18:58:56 UTC + * + * @pixi/text-bitmap is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + *//*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var fp=function(e,t){return fp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},fp(e,t)};function h9(e,t){fp(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Hl=function(){function e(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}return e}(),d9=function(){function e(){}return e.test=function(t){return typeof t=="string"&&t.indexOf("info face=")===0},e.parse=function(t){var r=t.match(/^[a-z]+\s+.+$/gm),n={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(var i in r){var o=r[i].match(/^[a-z]+/gm)[0],a=r[i].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),s={};for(var u in a){var l=a[u].split("="),c=l[0],f=l[1].replace(/"/gm,""),h=parseFloat(f),d=isNaN(h)?f:h;s[c]=d}n[o].push(s)}var v=new Hl;return n.info.forEach(function(_){return v.info.push({face:_.face,size:parseInt(_.size,10)})}),n.common.forEach(function(_){return v.common.push({lineHeight:parseInt(_.lineHeight,10)})}),n.page.forEach(function(_){return v.page.push({id:parseInt(_.id,10),file:_.file})}),n.char.forEach(function(_){return v.char.push({id:parseInt(_.id,10),page:parseInt(_.page,10),x:parseInt(_.x,10),y:parseInt(_.y,10),width:parseInt(_.width,10),height:parseInt(_.height,10),xoffset:parseInt(_.xoffset,10),yoffset:parseInt(_.yoffset,10),xadvance:parseInt(_.xadvance,10)})}),n.kerning.forEach(function(_){return v.kerning.push({first:parseInt(_.first,10),second:parseInt(_.second,10),amount:parseInt(_.amount,10)})}),n.distanceField.forEach(function(_){return v.distanceField.push({distanceRange:parseInt(_.distanceRange,10),fieldType:_.fieldType})}),v},e}(),hp=function(){function e(){}return e.test=function(t){return t instanceof XMLDocument&&t.getElementsByTagName("page").length&&t.getElementsByTagName("info")[0].getAttribute("face")!==null},e.parse=function(t){for(var r=new Hl,n=t.getElementsByTagName("info"),i=t.getElementsByTagName("common"),o=t.getElementsByTagName("page"),a=t.getElementsByTagName("char"),s=t.getElementsByTagName("kerning"),u=t.getElementsByTagName("distanceField"),l=0;l")>-1){var r=new globalThis.DOMParser().parseFromString(t,"text/xml");return hp.test(r)}return!1},e.parse=function(t){var r=new globalThis.DOMParser().parseFromString(t,"text/xml");return hp.parse(r)},e}(),bh=[d9,hp,p9];function Sw(e){for(var t=0;t=l-O*s){if(_===0)throw new Error("[BitmapFont] textureHeight "+l+"px is "+("too small for "+f.fontSize+"px fonts"));--T,p=null,m=null,g=null,_=0,v=0,x=0;continue}if(x=Math.max(O+b.fontProperties.descent,x),P*s+v>=h){--T,_+=x*s,_=Math.ceil(_),v=0,x=0;continue}m9(p,m,b,v,_,s,f);var k=Qu(b.text);d.char.push({id:k,page:w.length-1,x:v/s,y:_/s,width:P,height:O,xoffset:0,yoffset:0,xadvance:Math.ceil(R-(f.dropShadow?f.dropShadowDistance:0)-(f.stroke?f.strokeThickness:0))}),v+=(P+2*a)*s,v=Math.ceil(v)}for(var T=0,K=c.length;T0&&o.x>f&&(++x,Eo(a,1+m-x,1+b-m),b=m,m=-1,s.push(g),u.push(a.length>0?a[a.length-1].prevSpaces:0),_=Math.max(_,g),p++,o.x=0,o.y+=n.lineHeight,d=null,T=0)}}var K=c[c.length-1];K!=="\r"&&K!==` +`&&(/(?:\s)/.test(K)&&(v=g),s.push(v),_=Math.max(_,v),u.push(-1));for(var X=[],b=0;b<=p;b++){var J=0;this._align==="right"?J=_-s[b]:this._align==="center"?J=(_-s[b])/2:this._align==="justify"&&(J=u[b]<0?0:(_-s[b])/u[b]),X.push(J)}for(var Te=a.length,z={},W=[],fe=this._activePagesMeshData,b=0;b6*ye)||U.vertices.length=r&&(a=e-s-1),u=u.replace("%value%",t[a].toString()),i+=u,i+=` +`}return n=n.replace("%blur%",i),n=n.replace("%size%",e.toString()),n}/*! + * @pixi/constants - v6.3.0 + * Compiled Wed, 23 Mar 2022 18:58:56 UTC + * + * @pixi/constants is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var Z0;(function(e){e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2"})(Z0||(Z0={}));var J0;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS"})(J0||(J0={}));var Q0;(function(e){e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL"})(Q0||(Q0={}));var e1;(function(e){e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR"})(e1||(e1={}));var t1;(function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(t1||(t1={}));var r1;(function(e){e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(r1||(r1={}));var n1;(function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(n1||(n1={}));var i1;(function(e){e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT"})(i1||(i1={}));var o1;(function(e){e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT"})(o1||(o1={}));var a1;(function(e){e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR"})(a1||(a1={}));var s1;(function(e){e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(s1||(s1={}));var u1;(function(e){e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL"})(u1||(u1={}));var l1;(function(e){e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(l1||(l1={}));var Is;(function(e){e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT"})(Is||(Is={}));var c1;(function(e){e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL"})(c1||(c1={}));var f1;(function(e){e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp"})(f1||(f1={}));var h1;(function(e){e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE"})(h1||(h1={}));var d1;(function(e){e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH"})(d1||(d1={}));var p1;(function(e){e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(p1||(p1={}));var v1=function(e){Iw(t,e);function t(r,n,i,o,a){n===void 0&&(n=8),i===void 0&&(i=4),o===void 0&&(o=oe.FILTER_RESOLUTION),a===void 0&&(a=5);var s=this,u=C9(a,r),l=P9(a);return s=e.call(this,u,l)||this,s.horizontal=r,s.resolution=o,s._quality=0,s.quality=i,s.blur=n,s}return t.prototype.apply=function(r,n,i,o){if(i?this.horizontal?this.uniforms.strength=1/i.width*(i.width/n.width):this.uniforms.strength=1/i.height*(i.height/n.height):this.horizontal?this.uniforms.strength=1/r.renderer.width*(r.renderer.width/n.width):this.uniforms.strength=1/r.renderer.height*(r.renderer.height/n.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)r.applyFilter(this,n,i,o);else{var a=r.getFilterTexture(),s=r.renderer,u=n,l=a;this.state.blend=!1,r.applyFilter(this,u,l,Is.CLEAR);for(var c=1;c 0.0) { + c.rgb /= c.a; + } + + vec4 result; + + result.r = (m[0] * c.r); + result.r += (m[1] * c.g); + result.r += (m[2] * c.b); + result.r += (m[3] * c.a); + result.r += m[4]; + + result.g = (m[5] * c.r); + result.g += (m[6] * c.g); + result.g += (m[7] * c.b); + result.g += (m[8] * c.a); + result.g += m[9]; + + result.b = (m[10] * c.r); + result.b += (m[11] * c.g); + result.b += (m[12] * c.b); + result.b += (m[13] * c.a); + result.b += m[14]; + + result.a = (m[15] * c.r); + result.a += (m[16] * c.g); + result.a += (m[17] * c.b); + result.a += (m[18] * c.a); + result.a += m[19]; + + vec3 rgb = mix(c.rgb, result.rgb, uAlpha); + + // Premultiply alpha again. + rgb *= result.a; + + gl_FragColor = vec4(rgb, result.a); +} +`,m1=function(e){R9(t,e);function t(){var r=this,n={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};return r=e.call(this,pw,A9,n)||this,r.alpha=1,r}return t.prototype._loadMatrix=function(r,n){n===void 0&&(n=!1);var i=r;n&&(this._multiply(i,this.uniforms.m,r),i=this._colorMatrix(i)),this.uniforms.m=i},t.prototype._multiply=function(r,n,i){return r[0]=n[0]*i[0]+n[1]*i[5]+n[2]*i[10]+n[3]*i[15],r[1]=n[0]*i[1]+n[1]*i[6]+n[2]*i[11]+n[3]*i[16],r[2]=n[0]*i[2]+n[1]*i[7]+n[2]*i[12]+n[3]*i[17],r[3]=n[0]*i[3]+n[1]*i[8]+n[2]*i[13]+n[3]*i[18],r[4]=n[0]*i[4]+n[1]*i[9]+n[2]*i[14]+n[3]*i[19]+n[4],r[5]=n[5]*i[0]+n[6]*i[5]+n[7]*i[10]+n[8]*i[15],r[6]=n[5]*i[1]+n[6]*i[6]+n[7]*i[11]+n[8]*i[16],r[7]=n[5]*i[2]+n[6]*i[7]+n[7]*i[12]+n[8]*i[17],r[8]=n[5]*i[3]+n[6]*i[8]+n[7]*i[13]+n[8]*i[18],r[9]=n[5]*i[4]+n[6]*i[9]+n[7]*i[14]+n[8]*i[19]+n[9],r[10]=n[10]*i[0]+n[11]*i[5]+n[12]*i[10]+n[13]*i[15],r[11]=n[10]*i[1]+n[11]*i[6]+n[12]*i[11]+n[13]*i[16],r[12]=n[10]*i[2]+n[11]*i[7]+n[12]*i[12]+n[13]*i[17],r[13]=n[10]*i[3]+n[11]*i[8]+n[12]*i[13]+n[13]*i[18],r[14]=n[10]*i[4]+n[11]*i[9]+n[12]*i[14]+n[13]*i[19]+n[14],r[15]=n[15]*i[0]+n[16]*i[5]+n[17]*i[10]+n[18]*i[15],r[16]=n[15]*i[1]+n[16]*i[6]+n[17]*i[11]+n[18]*i[16],r[17]=n[15]*i[2]+n[16]*i[7]+n[17]*i[12]+n[18]*i[17],r[18]=n[15]*i[3]+n[16]*i[8]+n[17]*i[13]+n[18]*i[18],r[19]=n[15]*i[4]+n[16]*i[9]+n[17]*i[14]+n[18]*i[19]+n[19],r},t.prototype._colorMatrix=function(r){var n=new Float32Array(r);return n[4]/=255,n[9]/=255,n[14]/=255,n[19]/=255,n},t.prototype.brightness=function(r,n){var i=[r,0,0,0,0,0,r,0,0,0,0,0,r,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.tint=function(r,n){var i=r>>16&255,o=r>>8&255,a=r&255,s=[i/255,0,0,0,0,0,o/255,0,0,0,0,0,a/255,0,0,0,0,0,1,0];this._loadMatrix(s,n)},t.prototype.greyscale=function(r,n){var i=[r,r,r,0,0,r,r,r,0,0,r,r,r,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.blackAndWhite=function(r){var n=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.hue=function(r,n){r=(r||0)/180*Math.PI;var i=Math.cos(r),o=Math.sin(r),a=Math.sqrt,s=1/3,u=a(s),l=i+(1-i)*s,c=s*(1-i)-u*o,f=s*(1-i)+u*o,h=s*(1-i)+u*o,d=i+s*(1-i),v=s*(1-i)-u*o,_=s*(1-i)-u*o,p=s*(1-i)+u*o,m=i+s*(1-i),g=[l,c,f,0,0,h,d,v,0,0,_,p,m,0,0,0,0,0,1,0];this._loadMatrix(g,n)},t.prototype.contrast=function(r,n){var i=(r||0)+1,o=-.5*(i-1),a=[i,0,0,0,o,0,i,0,0,o,0,0,i,0,o,0,0,0,1,0];this._loadMatrix(a,n)},t.prototype.saturate=function(r,n){r===void 0&&(r=0);var i=r*2/3+1,o=(i-1)*-.5,a=[i,o,o,0,0,o,i,o,0,0,o,o,i,0,0,0,0,0,1,0];this._loadMatrix(a,n)},t.prototype.desaturate=function(){this.saturate(-1)},t.prototype.negative=function(r){var n=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.sepia=function(r){var n=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.technicolor=function(r){var n=[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];this._loadMatrix(n,r)},t.prototype.polaroid=function(r){var n=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.toBGR=function(r){var n=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.kodachrome=function(r){var n=[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];this._loadMatrix(n,r)},t.prototype.browni=function(r){var n=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.vintage=function(r){var n=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.colorTone=function(r,n,i,o,a){r=r||.2,n=n||.15,i=i||16770432,o=o||3375104;var s=(i>>16&255)/255,u=(i>>8&255)/255,l=(i&255)/255,c=(o>>16&255)/255,f=(o>>8&255)/255,h=(o&255)/255,d=[.3,.59,.11,0,0,s,u,l,r,0,c,f,h,n,0,s-c,u-f,l-h,0,0];this._loadMatrix(d,a)},t.prototype.night=function(r,n){r=r||.1;var i=[r*-2,-r,0,0,0,-r,0,r,0,0,0,r,r*2,0,0,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.predator=function(r,n){var i=[11.224130630493164*r,-4.794486999511719*r,-2.8746118545532227*r,0*r,.40342438220977783*r,-3.6330697536468506*r,9.193157196044922*r,-2.951810836791992*r,0*r,-1.316135048866272*r,-3.2184197902679443*r,-4.2375030517578125*r,7.476448059082031*r,0*r,.8044459223747253*r,0,0,0,1,0];this._loadMatrix(i,n)},t.prototype.lsd=function(r){var n=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(n,r)},t.prototype.reset=function(){var r=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(r,!1)},Object.defineProperty(t.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(r){this.uniforms.m=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(r){this.uniforms.uAlpha=r},enumerable:!1,configurable:!0}),t}(Yn);m1.prototype.grayscale=m1.prototype.greyscale;/*! + * @pixi/filter-displacement - v6.3.0 + * Compiled Wed, 23 Mar 2022 18:58:56 UTC + * + * @pixi/filter-displacement is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + *//*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var mp=function(e,t){return mp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},mp(e,t)};function O9(e,t){mp(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var L9=`varying vec2 vFilterCoord; +varying vec2 vTextureCoord; + +uniform vec2 scale; +uniform mat2 rotation; +uniform sampler2D uSampler; +uniform sampler2D mapSampler; + +uniform highp vec4 inputSize; +uniform vec4 inputClamp; + +void main(void) +{ + vec4 map = texture2D(mapSampler, vFilterCoord); + + map -= 0.5; + map.xy = scale * inputSize.zw * (rotation * map.xy); + + gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw)); +} +`,k9=`attribute vec2 aVertexPosition; + +uniform mat3 projectionMatrix; +uniform mat3 filterMatrix; + +varying vec2 vTextureCoord; +varying vec2 vFilterCoord; + +uniform vec4 inputSize; +uniform vec4 outputFrame; + +vec4 filterVertexPosition( void ) +{ + vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy; + + return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0); +} + +vec2 filterTextureCoord( void ) +{ + return aVertexPosition * (outputFrame.zw * inputSize.zw); +} + +void main(void) +{ + gl_Position = filterVertexPosition(); + vTextureCoord = filterTextureCoord(); + vFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy; +} +`;(function(e){O9(t,e);function t(r,n){var i=this,o=new ft;return r.renderable=!1,i=e.call(this,k9,L9,{mapSampler:r._texture,filterMatrix:o,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this,i.maskSprite=r,i.maskMatrix=o,n==null&&(n=20),i.scale=new ze(n,n),i}return t.prototype.apply=function(r,n,i,o){this.uniforms.filterMatrix=r.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var a=this.maskSprite.worldTransform,s=Math.sqrt(a.a*a.a+a.b*a.b),u=Math.sqrt(a.c*a.c+a.d*a.d);s!==0&&u!==0&&(this.uniforms.rotation[0]=a.a/s,this.uniforms.rotation[1]=a.b/s,this.uniforms.rotation[2]=a.c/u,this.uniforms.rotation[3]=a.d/u),r.applyFilter(this,n,i,o)},Object.defineProperty(t.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(r){this.uniforms.mapSampler=r},enumerable:!1,configurable:!0}),t})(Yn);/*! + * @pixi/filter-fxaa - v6.3.0 + * Compiled Wed, 23 Mar 2022 18:58:56 UTC + * + * @pixi/filter-fxaa is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + *//*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var _p=function(e,t){return _p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},_p(e,t)};function F9(e,t){_p(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var U9=` +attribute vec2 aVertexPosition; + +uniform mat3 projectionMatrix; + +varying vec2 v_rgbNW; +varying vec2 v_rgbNE; +varying vec2 v_rgbSW; +varying vec2 v_rgbSE; +varying vec2 v_rgbM; + +varying vec2 vFragCoord; + +uniform vec4 inputSize; +uniform vec4 outputFrame; + +vec4 filterVertexPosition( void ) +{ + vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy; + + return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0); +} + +void texcoords(vec2 fragCoord, vec2 inverseVP, + out vec2 v_rgbNW, out vec2 v_rgbNE, + out vec2 v_rgbSW, out vec2 v_rgbSE, + out vec2 v_rgbM) { + v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP; + v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP; + v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP; + v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP; + v_rgbM = vec2(fragCoord * inverseVP); +} + +void main(void) { + + gl_Position = filterVertexPosition(); + + vFragCoord = aVertexPosition * outputFrame.zw; + + texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM); +} +`,B9=`varying vec2 v_rgbNW; +varying vec2 v_rgbNE; +varying vec2 v_rgbSW; +varying vec2 v_rgbSE; +varying vec2 v_rgbM; + +varying vec2 vFragCoord; +uniform sampler2D uSampler; +uniform highp vec4 inputSize; + + +/** + Basic FXAA implementation based on the code on geeks3d.com with the + modification that the texture2DLod stuff was removed since it's + unsupported by WebGL. + + -- + + From: + https://github.com/mitsuhiko/webgl-meincraft + + Copyright (c) 2011 by Armin Ronacher. + + Some rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * The names of the contributors may not be used to endorse or + promote products derived from this software without specific + prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef FXAA_REDUCE_MIN +#define FXAA_REDUCE_MIN (1.0/ 128.0) +#endif +#ifndef FXAA_REDUCE_MUL +#define FXAA_REDUCE_MUL (1.0 / 8.0) +#endif +#ifndef FXAA_SPAN_MAX +#define FXAA_SPAN_MAX 8.0 +#endif + +//optimized version for mobile, where dependent +//texture reads can be a bottleneck +vec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 inverseVP, + vec2 v_rgbNW, vec2 v_rgbNE, + vec2 v_rgbSW, vec2 v_rgbSE, + vec2 v_rgbM) { + vec4 color; + vec3 rgbNW = texture2D(tex, v_rgbNW).xyz; + vec3 rgbNE = texture2D(tex, v_rgbNE).xyz; + vec3 rgbSW = texture2D(tex, v_rgbSW).xyz; + vec3 rgbSE = texture2D(tex, v_rgbSE).xyz; + vec4 texColor = texture2D(tex, v_rgbM); + vec3 rgbM = texColor.xyz; + vec3 luma = vec3(0.299, 0.587, 0.114); + float lumaNW = dot(rgbNW, luma); + float lumaNE = dot(rgbNE, luma); + float lumaSW = dot(rgbSW, luma); + float lumaSE = dot(rgbSE, luma); + float lumaM = dot(rgbM, luma); + float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE))); + float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE))); + + mediump vec2 dir; + dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE)); + dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE)); + + float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) * + (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN); + + float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce); + dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX), + max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX), + dir * rcpDirMin)) * inverseVP; + + vec3 rgbA = 0.5 * ( + texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz + + texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz); + vec3 rgbB = rgbA * 0.5 + 0.25 * ( + texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz + + texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz); + + float lumaB = dot(rgbB, luma); + if ((lumaB < lumaMin) || (lumaB > lumaMax)) + color = vec4(rgbA, texColor.a); + else + color = vec4(rgbB, texColor.a); + return color; +} + +void main() { + + vec4 color; + + color = fxaa(uSampler, vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM); + + gl_FragColor = color; +} +`;(function(e){F9(t,e);function t(){return e.call(this,U9,B9)||this}return t})(Yn);/*! + * @pixi/filter-noise - v6.3.0 + * Compiled Wed, 23 Mar 2022 18:58:56 UTC + * + * @pixi/filter-noise is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + *//*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var gp=function(e,t){return gp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},gp(e,t)};function M9(e,t){gp(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var D9=`precision highp float; + +varying vec2 vTextureCoord; +varying vec4 vColor; + +uniform float uNoise; +uniform float uSeed; +uniform sampler2D uSampler; + +float rand(vec2 co) +{ + return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453); +} + +void main() +{ + vec4 color = texture2D(uSampler, vTextureCoord); + float randomValue = rand(gl_FragCoord.xy * uSeed); + float diff = (randomValue - 0.5) * uNoise; + + // Un-premultiply alpha before applying the color matrix. See issue #3539. + if (color.a > 0.0) { + color.rgb /= color.a; + } + + color.r += diff; + color.g += diff; + color.b += diff; + + // Premultiply alpha again. + color.rgb *= color.a; + + gl_FragColor = color; +} +`;(function(e){M9(t,e);function t(r,n){r===void 0&&(r=.5),n===void 0&&(n=Math.random());var i=e.call(this,pw,D9,{uNoise:0,uSeed:0})||this;return i.noise=r,i.seed=n,i}return Object.defineProperty(t.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(r){this.uniforms.uNoise=r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(r){this.uniforms.uSeed=r},enumerable:!1,configurable:!0}),t})(Yn);/*! + * @pixi/mixin-cache-as-bitmap - v6.3.0 + * Compiled Wed, 23 Mar 2022 18:58:56 UTC + * + * @pixi/mixin-cache-as-bitmap is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + *//*! + * @pixi/constants - v6.3.0 + * Compiled Wed, 23 Mar 2022 18:58:56 UTC + * + * @pixi/constants is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var _1;(function(e){e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2"})(_1||(_1={}));var g1;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS"})(g1||(g1={}));var y1;(function(e){e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL"})(y1||(y1={}));var x1;(function(e){e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR"})(x1||(x1={}));var b1;(function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(b1||(b1={}));var E1;(function(e){e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(E1||(E1={}));var T1;(function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(T1||(T1={}));var w1;(function(e){e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT"})(w1||(w1={}));var S1;(function(e){e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT"})(S1||(S1={}));var C1;(function(e){e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR"})(C1||(C1={}));var I1;(function(e){e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(I1||(I1={}));var N1;(function(e){e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL"})(N1||(N1={}));var P1;(function(e){e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(P1||(P1={}));var R1;(function(e){e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT"})(R1||(R1={}));var A1;(function(e){e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL"})(A1||(A1={}));var O1;(function(e){e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp"})(O1||(O1={}));var L1;(function(e){e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE"})(L1||(L1={}));var yp;(function(e){e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH"})(yp||(yp={}));var k1;(function(e){e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(k1||(k1={}));var Nw=new ft;ht.prototype._cacheAsBitmap=!1;ht.prototype._cacheData=null;ht.prototype._cacheAsBitmapResolution=null;ht.prototype._cacheAsBitmapMultisample=yp.NONE;var G9=function(){function e(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}return e}();Object.defineProperties(ht.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(e){e!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(e){e!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=e,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(e){if(this._cacheAsBitmap!==e){this._cacheAsBitmap=e;var t;e?(this._cacheData||(this._cacheData=new G9),t=this._cacheData,t.originalRender=this.render,t.originalRenderCanvas=this.renderCanvas,t.originalUpdateTransform=this.updateTransform,t.originalCalculateBounds=this.calculateBounds,t.originalGetLocalBounds=this.getLocalBounds,t.originalDestroy=this.destroy,t.originalContainsPoint=this.containsPoint,t.originalMask=this._mask,t.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(t=this._cacheData,t.sprite&&this._destroyCachedDisplayObject(),this.render=t.originalRender,this.renderCanvas=t.originalRenderCanvas,this.calculateBounds=t.originalCalculateBounds,this.getLocalBounds=t.originalGetLocalBounds,this.destroy=t.originalDestroy,this.updateTransform=t.originalUpdateTransform,this.containsPoint=t.originalContainsPoint,this._mask=t.originalMask,this.filterArea=t.originalFilterArea)}}}});ht.prototype._renderCached=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(t))};ht.prototype._initCachedDisplayObject=function(t){var r;if(!(this._cacheData&&this._cacheData.sprite)){var n=this.alpha;this.alpha=1,t.batch.flush();var i=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var o=this.filters[0].padding;i.pad(o)}i.ceil(oe.RESOLUTION);var a=t.renderTexture.current,s=t.renderTexture.sourceFrame.clone(),u=t.renderTexture.destinationFrame.clone(),l=t.projection.transform,c=Si.create({width:i.width,height:i.height,resolution:this.cacheAsBitmapResolution||t.resolution,multisample:(r=this.cacheAsBitmapMultisample)!==null&&r!==void 0?r:t.multisample}),f="cacheAsBitmap_"+Ti();this._cacheData.textureCacheId=f,we.addToCache(c.baseTexture,f),ue.addToCache(c,f);var h=this.transform.localTransform.copyTo(Nw).invert().translate(-i.x,-i.y);this.render=this._cacheData.originalRender,t.render(this,{renderTexture:c,clear:!0,transform:h,skipUpdateTransform:!1}),t.framebuffer.blit(),t.projection.transform=l,t.renderTexture.bind(a,s,u),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var d=new Li(c);d.transform.worldTransform=this.transform.worldTransform,d.anchor.x=-(i.x/i.width),d.anchor.y=-(i.y/i.height),d.alpha=n,d._bounds=this._bounds,this._cacheData.sprite=d,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=d.containsPoint.bind(d)}};ht.prototype._renderCachedCanvas=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(t),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(t))};ht.prototype._initCachedDisplayObjectCanvas=function(t){if(!(this._cacheData&&this._cacheData.sprite)){var r=this.getLocalBounds(null,!0),n=this.alpha;this.alpha=1;var i=t.context,o=t._projTransform;r.ceil(oe.RESOLUTION);var a=Si.create({width:r.width,height:r.height}),s="cacheAsBitmap_"+Ti();this._cacheData.textureCacheId=s,we.addToCache(a.baseTexture,s),ue.addToCache(a,s);var u=Nw;this.transform.localTransform.copyTo(u),u.invert(),u.tx-=r.x,u.ty-=r.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,{renderTexture:a,clear:!0,transform:u,skipUpdateTransform:!1}),t.context=i,t._projTransform=o,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=n;var l=new Li(a);l.transform.worldTransform=this.transform.worldTransform,l.anchor.x=-(r.x/r.width),l.anchor.y=-(r.y/r.height),l.alpha=n,l._bounds=this._bounds,this._cacheData.sprite=l,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=l.containsPoint.bind(l)}};ht.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID};ht.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)};ht.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,we.removeFromCache(this._cacheData.textureCacheId),ue.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null};ht.prototype._cacheAsBitmapDestroy=function(t){this.cacheAsBitmap=!1,this.destroy(t)};/*! + * @pixi/mixin-get-child-by-name - v6.3.0 + * Compiled Wed, 23 Mar 2022 18:58:56 UTC + * + * @pixi/mixin-get-child-by-name is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */ht.prototype.name=null;hr.prototype.getChildByName=function(t,r){for(var n=0,i=this.children.length;n0){var v=l.x-r[h].x,_=l.y-r[h].y,p=Math.sqrt(v*v+_*_);l=r[h],u+=p/c}else u=h/(f-1);a[d]=u,a[d+1]=0,a[d+2]=u,a[d+3]=1}for(var m=0,h=0;h0?this.textureScale*this._width/2:this._width/2;o/=h,a/=h,o*=d,a*=d,s[f]=c.x+o,s[f+1]=c.y+a,s[f+2]=c.x-o,s[f+3]=c.y-a,n=c}this.buffers[0].update()}},t.prototype.update=function(){this.textureScale>0?this.build():this.updateVertices()},t}(Ac);(function(e){Zo(t,e);function t(r,n,i){i===void 0&&(i=0);var o=this,a=new j9(r.height,n,i),s=new Cs(r);return i>0&&(r.baseTexture.wrapMode=un.REPEAT),o=e.call(this,a,s)||this,o.autoUpdate=!0,o}return t.prototype._render=function(r){var n=this.geometry;(this.autoUpdate||n._width!==this.shader.texture.height)&&(n._width=this.shader.texture.height,n.update()),e.prototype._render.call(this,r)},t})(Ss);var H9=function(e){Zo(t,e);function t(r,n,i){var o=this,a=new $9(r.width,r.height,n,i),s=new Cs(ue.WHITE);return o=e.call(this,a,s)||this,o.texture=r,o.autoResize=!0,o}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var r=this.geometry,n=this.shader.texture,i=n.width,o=n.height;this.autoResize&&(r.width!==i||r.height!==o)&&(r.width=this.shader.texture.width,r.height=this.shader.texture.height,r.build())},Object.defineProperty(t.prototype,"texture",{get:function(){return this.shader.texture},set:function(r){this.shader.texture!==r&&(this.shader.texture=r,this._textureID=-1,r.baseTexture.valid?this.textureUpdated():r.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),t.prototype._render=function(r){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),e.prototype._render.call(this,r)},t.prototype.destroy=function(r){this.shader.texture.off("update",this.textureUpdated,this),e.prototype.destroy.call(this,r)},t}(Ss);(function(e){Zo(t,e);function t(r,n,i,o,a){r===void 0&&(r=ue.EMPTY);var s=this,u=new Ac(n,i,o);u.getBuffer("aVertexPosition").static=!1;var l=new Cs(r);return s=e.call(this,u,l,null,a)||this,s.autoUpdate=!0,s}return Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(r){this.geometry.getBuffer("aVertexPosition").data=r},enumerable:!1,configurable:!0}),t.prototype._render=function(r){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),e.prototype._render.call(this,r)},t})(Ss);var Au=10;(function(e){Zo(t,e);function t(r,n,i,o,a){n===void 0&&(n=Au),i===void 0&&(i=Au),o===void 0&&(o=Au),a===void 0&&(a=Au);var s=e.call(this,ue.WHITE,4,4)||this;return s._origWidth=r.orig.width,s._origHeight=r.orig.height,s._width=s._origWidth,s._height=s._origHeight,s._leftWidth=n,s._rightWidth=o,s._topHeight=i,s._bottomHeight=a,s.texture=r,s}return t.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(t.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(r){this.geometry.getBuffer("aVertexPosition").data=r},enumerable:!1,configurable:!0}),t.prototype.updateHorizontalVertices=function(){var r=this.vertices,n=this._getMinScale();r[9]=r[11]=r[13]=r[15]=this._topHeight*n,r[17]=r[19]=r[21]=r[23]=this._height-this._bottomHeight*n,r[25]=r[27]=r[29]=r[31]=this._height},t.prototype.updateVerticalVertices=function(){var r=this.vertices,n=this._getMinScale();r[2]=r[10]=r[18]=r[26]=this._leftWidth*n,r[4]=r[12]=r[20]=r[28]=this._width-this._rightWidth*n,r[6]=r[14]=r[22]=r[30]=this._width},t.prototype._getMinScale=function(){var r=this._leftWidth+this._rightWidth,n=this._width>r?1:this._width/r,i=this._topHeight+this._bottomHeight,o=this._height>i?1:this._height/i,a=Math.min(n,o);return a},Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(r){this._width=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(r){this._height=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(r){this._leftWidth=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(r){this._rightWidth=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topHeight",{get:function(){return this._topHeight},set:function(r){this._topHeight=r,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(r){this._bottomHeight=r,this._refresh()},enumerable:!1,configurable:!0}),t.prototype._refresh=function(){var r=this.texture,n=this.geometry.buffers[1].data;this._origWidth=r.orig.width,this._origHeight=r.orig.height;var i=1/this._origWidth,o=1/this._origHeight;n[0]=n[8]=n[16]=n[24]=0,n[1]=n[3]=n[5]=n[7]=0,n[6]=n[14]=n[22]=n[30]=1,n[25]=n[27]=n[29]=n[31]=1,n[2]=n[10]=n[18]=n[26]=i*this._leftWidth,n[4]=n[12]=n[20]=n[28]=1-i*this._rightWidth,n[9]=n[11]=n[13]=n[15]=o*this._topHeight,n[17]=n[19]=n[21]=n[23]=1-o*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()},t})(H9);/*! + * @pixi/sprite-animated - v6.3.0 + * Compiled Wed, 23 Mar 2022 18:58:56 UTC + * + * @pixi/sprite-animated is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + *//*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var bp=function(e,t){return bp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},bp(e,t)};function V9(e,t){bp(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}(function(e){V9(t,e);function t(r,n){n===void 0&&(n=!0);var i=e.call(this,r[0]instanceof ue?r[0]:r[0].texture)||this;return i._textures=null,i._durations=null,i._autoUpdate=n,i._isConnectedToTicker=!1,i.animationSpeed=1,i.loop=!0,i.updateAnchor=!1,i.onComplete=null,i.onFrameChange=null,i.onLoop=null,i._currentTime=0,i._playing=!1,i._previousFrame=null,i.textures=r,i}return t.prototype.stop=function(){!this._playing||(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(Pt.shared.remove(this.update,this),this._isConnectedToTicker=!1))},t.prototype.play=function(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(Pt.shared.add(this.update,this,dn.HIGH),this._isConnectedToTicker=!0))},t.prototype.gotoAndStop=function(r){this.stop();var n=this.currentFrame;this._currentTime=r,n!==this.currentFrame&&this.updateTexture()},t.prototype.gotoAndPlay=function(r){var n=this.currentFrame;this._currentTime=r,n!==this.currentFrame&&this.updateTexture(),this.play()},t.prototype.update=function(r){if(!!this._playing){var n=this.animationSpeed*r,i=this.currentFrame;if(this._durations!==null){var o=this._currentTime%1*this._durations[this.currentFrame];for(o+=n/60*1e3;o<0;)this._currentTime--,o+=this._durations[this.currentFrame];var a=Math.sign(this.animationSpeed*r);for(this._currentTime=Math.floor(this._currentTime);o>=this._durations[this.currentFrame];)o-=this._durations[this.currentFrame]*a,this._currentTime+=a;this._currentTime+=o/this._durations[this.currentFrame]}else this._currentTime+=n;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):i!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramei&&this.onLoop()),this.updateTexture())}},t.prototype.updateTexture=function(){var r=this.currentFrame;this._previousFrame!==r&&(this._previousFrame=r,this._texture=this._textures[r],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},t.prototype.destroy=function(r){this.stop(),e.prototype.destroy.call(this,r),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},t.fromFrames=function(r){for(var n=[],i=0;i{const n=ee.currentPixi,i=new hr;n.stage.addChild(i);const o=ue.from("./game/tex/raindrop.png");i.x=n.screen.width/2,i.y=n.screen.height/2,i.pivot.x=i.width/2,i.pivot.y=i.height/2,i.scale.x=1,i.scale.y=1;const a=[];return n.ticker.add(s=>{for(let c=0;c=.5&&(f.alpha=.5),f.alpha<=.2&&(f.alpha=.2),i.addChild(f),a.push(f)}for(const c of a)c.dropSpeed=c.acc*.01+c.dropSpeed,c.y+=s*e*c.dropSpeed*1.1+3;a.length>=2500&&(a.unshift(),i.removeChild(i.children[0]))}),i},z9=e=>{const r=ee.currentPixi,n=new hr;r.stage.addChild(n);const i=ue.from("./game/tex/snowFlake_min.png");n.x=r.screen.width/2,n.y=r.screen.height/2,n.pivot.x=n.width/2,n.pivot.y=n.height/2,n.scale.x=1,n.scale.y=1;const o=[];return r.ticker.add(a=>{const l=new Li(i);let c=Math.random();c<=.5&&(c=.5),l.scale.x=.09*c,l.scale.y=.09*c,l.anchor.set(.5),l.x=Math.random()*1600-.5*1600,l.y=0-.5*900,l.dropSpeed=Math.random()*2,l.acc=Math.random(),n.addChild(l),o.push(l);let f=0;for(const h of o){f++;const d=Math.random();h.dropSpeed=h.acc*.01+h.dropSpeed,h.y+=a*e*h.dropSpeed*.3+.7,f%2===0?(h.x+=a*d*.5,h.rotation+=a*d*.03):(h.x-=a*d*.5,h.rotation-=a*d*.03)}o.length>=500&&(o.unshift(),n.removeChild(n.children[0]))}),n},W9=e=>{const t="PixiPerform"+e.content;ee.performList.forEach(n=>{if(n.performName===t)return{performName:"none",duration:0,isOver:!1,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}});let r;switch(e.content){case"rain":r=X9(6,10);break;case"snow":r=z9(3);break}return{performName:t,duration:0,isOver:!1,isHoldOn:!0,stopFunction:()=>{pe.warn("\u73B0\u5728\u6B63\u5728\u5378\u8F7Dpixi\u6F14\u51FA"),r.destroy({texture:!0,baseTexture:!0})},blockingNext:()=>!1,blockingAuto:()=>!1,stopTimeout:void 0}},q9=e=>({performName:"none",duration:0,isOver:!1,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),Y9=e=>(xT(e.content),{performName:"none",duration:0,isOver:!1,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),K9=e=>{const t=Y.getState().stage,r=Y.getState().userData,n=Y.dispatch;n(tt({key:"showText",value:JSON.stringify(t.GameVar)})),n(tt({key:"showName",value:"\u5C55\u793A\u53D8\u91CF"})),pe.debug("\u5C55\u793A\u53D8\u91CF\uFF1A",t.GameVar),setTimeout(()=>{[...document.querySelectorAll("."+Tr.TextBox_textElement_start)].forEach(l=>{l.className=Tr.TextBox_textElement})},0);const i=mc(),o=Bs.textInitialDelay-20*r.optionData.textSpeed,a=750-r.optionData.textSpeed*250;return{performName:i,duration:e.content.length*o+a,isOver:!1,isHoldOn:!1,stopFunction:()=>{[...document.querySelectorAll("."+Tr.TextBox_textElement)].forEach(l=>{l.className=Tr.TextBox_textElement_Settled})},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},Z9=e=>{const t=e.content;let r=e.content,n="default";e.args.forEach(o=>{o.key==="name"&&(r=o.value.toString()),o.key==="series"&&(n=o.value.toString())}),pe.info(`\u89E3\u9501CG\uFF1A${r}\uFF0C\u8DEF\u5F84\uFF1A${t}\uFF0C\u6240\u5C5E\u7CFB\u5217\uFF1A${n}`),Y.dispatch(QN({name:r,url:t,series:n}));const i=Y.getState().userData;return $b.setItem(Pr.gameKey,i).then(()=>{}),{performName:"none",duration:0,isOver:!1,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},J9=e=>{const t=e.content;let r=e.content,n="default";e.args.forEach(o=>{o.key==="name"&&(r=o.value.toString()),o.key==="series"&&(n=o.value.toString())}),pe.info(`\u89E3\u9501BGM\uFF1A${r}\uFF0C\u8DEF\u5F84\uFF1A${t}\uFF0C\u6240\u5C5E\u7CFB\u5217\uFF1A${n}`),Y.dispatch(eP({name:r,url:t,series:n}));const i=Y.getState().userData;return $b.setItem(Pr.gameKey,i).then(()=>{}),{performName:"none",duration:0,isOver:!1,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},Q9=e=>(e.content!==""&&e.content!=="none"?Y.dispatch(tt({key:"enableFilm",value:e.content})):Y.dispatch(tt({key:"enableFilm",value:""})),{performName:"none",duration:0,isOver:!1,isHoldOn:!1,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}),ej=(e,t)=>{ie.sceneStack.push({sceneName:ie.currentScene.sceneName,sceneUrl:ie.currentScene.sceneUrl,continueLine:ie.currentSentenceId}),Wr(e).then(r=>{ie.currentScene=Yr(r,t,e),ie.currentSentenceId=0,pe.debug("\u73B0\u5728\u8C03\u7528\u573A\u666F\uFF0C\u8C03\u7528\u7ED3\u679C\uFF1A",ie),jt()})},tj=e=>{const t=e.content.split("/"),r=t[t.length-1];return ej(e.content,r),{performName:"none",duration:0,isOver:!1,isHoldOn:!0,stopFunction:()=>{},blockingNext:()=>!1,blockingAuto:()=>!0,stopTimeout:void 0}},Pw=[{scriptString:"intro",scriptType:Z.intro,scriptFunction:NR},{scriptString:"changeBg",scriptType:Z.changeBg,scriptFunction:BR},{scriptString:"changeFigure",scriptType:Z.changeFigure,scriptFunction:MR},{scriptString:"miniAvatar",scriptType:Z.miniAvatar,scriptFunction:DR},{scriptString:"changeScene",scriptType:Z.changeScene,scriptFunction:dy},{scriptString:"choose",scriptType:Z.choose,scriptFunction:iM},{scriptString:"end",scriptType:Z.end,scriptFunction:oM},{scriptString:"bgm",scriptType:Z.bgm,scriptFunction:aM},{scriptString:"playVideo",scriptType:Z.video,scriptFunction:sM},{scriptString:"setBgAni",scriptType:Z.perform_bgAni,scriptFunction:uM},{scriptString:"setFigAni",scriptType:Z.perform_FigAni,scriptFunction:lM},{scriptString:"setBgTransform",scriptType:Z.setBgTransform,scriptFunction:cM},{scriptString:"setBgFilter",scriptType:Z.setBgFilter,scriptFunction:fM},{scriptString:"setFigTransform",scriptType:Z.setFigTransform,scriptFunction:hM},{scriptString:"setFigFilter",scriptType:Z.setFigFilter,scriptFunction:dM},{scriptString:"pixiInit",scriptType:Z.pixiInit,scriptFunction:pM},{scriptString:"pixiPerform",scriptType:Z.pixi,scriptFunction:W9},{scriptString:"label",scriptType:Z.label,scriptFunction:q9},{scriptString:"jumpLabel",scriptType:Z.jumpLabel,scriptFunction:Y9},{scriptString:"setVar",scriptType:Z.setVar,scriptFunction:eM},{scriptString:"callScene",scriptType:Z.callScene,scriptFunction:dy},{scriptString:"showVars",scriptType:Z.showVars,scriptFunction:K9},{scriptString:"unlockCg",scriptType:Z.unlockCg,scriptFunction:Z9},{scriptString:"unlockBgm",scriptType:Z.unlockBgm,scriptFunction:J9},{scriptString:"say",scriptType:Z.say,scriptFunction:CE},{scriptString:"filmMode",scriptType:Z.filmMode,scriptFunction:Q9},{scriptString:"callScene",scriptType:Z.callScene,scriptFunction:tj}],rj=[Z.bgm,Z.pixi,Z.pixiInit,Z.label,Z.if,Z.miniAvatar,Z.setBgTransform,Z.setBgFilter,Z.setFigFilter,Z.setFigTransform,Z.perform_FigAni,Z.perform_bgAni,Z.setVar,Z.unlockBgm,Z.unlockCg,Z.filmMode],F1=e=>{let t={type:Z.say,additionalArgs:[]};const r=nj(e);return t.type=r,r===Z.say&&t.additionalArgs.push({key:"speaker",value:e}),t=ij(t,r),t};function nj(e){const t=new Map;return Pw.forEach(r=>{t.set(r.scriptString,r.scriptType)}),t.has(e)?t.get(e):Z.say}function ij(e,t){return rj.includes(t)&&e.additionalArgs.push({key:"next",value:!0}),e}const oj=e=>{const t=[];let n=e.replace(/ /g," ").split(" -");return n=n.filter(i=>i!==""),n.forEach(i=>{const o=i.split("=")[0],a=i.split("=")[1];i.match(/.ogg|.mp3|.wav/)?t.push({key:"vocal",value:Ct(i,Ye.vocal)}):a===void 0?t.push({key:o,value:!0}):a==="true"||a==="false"?t.push({key:o,value:a==="true"}):isNaN(Number(a))?t.push({key:o,value:a}):t.push({key:o,value:Number(a)})}),t},aj=(e,t)=>{if(e==="none"||e==="")return"";switch(t){case Z.changeBg:return Ct(e,Ye.background);case Z.changeFigure:return Ct(e,Ye.figure);case Z.bgm:return Ct(e,Ye.bgm);case Z.callScene:return Ct(e,Ye.scene);case Z.changeScene:return Ct(e,Ye.scene);case Z.miniAvatar:return Ct(e,Ye.figure);case Z.video:return Ct(e,Ye.video);case Z.choose:return sj(e);case Z.unlockBgm:return Ct(e,Ye.bgm);case Z.unlockCg:return Ct(e,Ye.background);default:return e}};function sj(e){const t=e.split("|"),r=[],n=[];for(const a of t)r.push(a.split(":")[0]),n.push(a.split(":")[1]);const i=n.map(a=>a.match(/\./)?Ct(a,Ye.scene):a);let o="";for(let a=0;a{const n=[];return e===Z.say&&r.forEach(i=>{i.key==="vocal"&&n.push({name:i.value,url:i.value,lineNumber:0,type:Ye.vocal})}),t==="none"||t===""||(e===Z.changeBg&&n.push({name:t,url:t,lineNumber:0,type:Ye.background}),e===Z.changeFigure&&n.push({name:t,url:t,lineNumber:0,type:Ye.figure}),e===Z.miniAvatar&&n.push({name:t,url:t,lineNumber:0,type:Ye.figure}),e===Z.video&&n.push({name:t,url:t,lineNumber:0,type:Ye.video}),e===Z.bgm&&n.push({name:t,url:t,lineNumber:0,type:Ye.bgm})),n},lj=(e,t)=>{const r=[];return(e===Z.changeScene||e===Z.callScene)&&r.push(t),e===Z.choose&&t.split("|").map(o=>o.split(":")[1]).forEach(o=>{o.match(/\./)&&r.push(o)}),r},cj=e=>{let t,r,n;const i=[];let o,a,s,u=e.split(";")[0];const l=/:/.exec(u);if(l===null){s=u,a=F1(s),t=a.type;for(const f of a.additionalArgs)t===Z.say&&f.key==="speaker"||i.push(f)}else{s=u.substring(0,l.index),u=u.substring(l.index+1,u.length),a=F1(s),t=a.type;for(const f of a.additionalArgs)i.push(f)}const c=/ -/.exec(u);if(c){const f=u.substring(c.index,e.length);u=u.substring(0,c.index);for(const h of oj(f))i.push(h)}return r=aj(u,t),o=uj(t,r,i),n=lj(t,r),{command:t,commandRaw:s,content:r,args:i,sentenceAssets:o,subScene:n}},fj=e=>{for(const t of e){let r=!0;if(gg.forEach(n=>{n===t.url&&(r=!1)}),!r)pe.warn("\u8BE5\u8D44\u6E90\u5DF2\u5728\u9884\u52A0\u8F7D\u5217\u8868\u4E2D\uFF0C\u65E0\u9700\u91CD\u590D\u52A0\u8F7D");else{const n=document.createElement("link");n.setAttribute("rel","prefetch"),n.setAttribute("href",t.url);const i=document.getElementsByTagName("head");i.length&&i[0].appendChild(n),gg.push(t.url)}}},hj=e=>{for(const t of e)jb.includes(t)?pe.warn(`\u573A\u666F${t}\u5DF2\u7ECF\u52A0\u8F7D\u8FC7\uFF0C\u65E0\u9700\u518D\u6B21\u52A0\u8F7D`):Wr(t).then(r=>{Yr(r,t,t)})};var dj="__lodash_hash_undefined__";function pj(e){return this.__data__.set(e,dj),this}var vj=pj;function mj(e){return this.__data__.has(e)}var _j=mj,gj=OE,yj=vj,xj=_j;function Vl(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new gj;++t-1}var Fj=kj;function Uj(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=eH){var l=t?null:Jj(e);if(l)return Qj(l);a=!1,i=Zj,u=new qj}else u=t?[]:s;e:for(;++n{const i=e.split(` +`).filter(l=>l.trim()!=="");let o=[],a=[];const s=i.map(l=>{const c=cj(l);return o=[...o,...c.sentenceAssets],a=[...a,...c.subScene],c});o=U1(o),fj(o),jb.push(r),a=U1(a),hj(a);const u={sceneName:t,sceneUrl:r,sentenceList:s,assetsList:o,subSceneList:a};return pe.info(`\u89E3\u6790\u573A\u666F\uFF1A${t}\uFF0C\u6570\u636E\u4E3A\uFF1A`,u),u},oH=()=>{rm(!0);const e=Ct("start.txt",Ye.scene);Wr(e).then(t=>{ie.currentScene=Yr(t,"start.txt",e),jt()}),Y.dispatch(nt({component:"showTitle",visibility:!1}))};var Aw={exports:{}},Ow={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Fo=he.exports;function aH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sH=typeof Object.is=="function"?Object.is:aH,uH=Fo.useState,lH=Fo.useEffect,cH=Fo.useLayoutEffect,fH=Fo.useDebugValue;function hH(e,t){var r=t(),n=uH({inst:{value:r,getSnapshot:t}}),i=n[0].inst,o=n[1];return cH(function(){i.value=r,i.getSnapshot=t,Th(i)&&o({inst:i})},[e,r,t]),lH(function(){return Th(i)&&o({inst:i}),e(function(){Th(i)&&o({inst:i})})},[e]),fH(r),r}function Th(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sH(e,r)}catch{return!0}}function dH(e,t){return t()}var pH=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?dH:hH;Ow.useSyncExternalStore=Fo.useSyncExternalStore!==void 0?Fo.useSyncExternalStore:pH;Aw.exports=Ow;var Lw={exports:{}},kw={};/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Oc=he.exports,vH=Aw.exports;function mH(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _H=typeof Object.is=="function"?Object.is:mH,gH=vH.useSyncExternalStore,yH=Oc.useRef,xH=Oc.useEffect,bH=Oc.useMemo,EH=Oc.useDebugValue;kw.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var o=yH(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=bH(function(){function u(d){if(!l){if(l=!0,c=d,d=n(d),i!==void 0&&a.hasValue){var v=a.value;if(i(v,d))return f=v}return f=d}if(v=f,_H(c,d))return v;var _=n(d);return i!==void 0&&i(v,_)?v:(c=d,f=_)}var l=!1,c,f,h=r===void 0?null:r;return[function(){return u(t())},h===null?void 0:function(){return u(h())}]},[t,r,n,i]);var s=gH(e,o[0],o[1]);return xH(function(){a.hasValue=!0,a.value=s},[s]),EH(s),s};Lw.exports=kw;function TH(e){e()}let Fw=TH;const wH=e=>Fw=e,SH=()=>Fw,Xn=re.createContext(null);function Uw(){return he.exports.useContext(Xn)}const CH=()=>{throw new Error("uSES not initialized!")};let Bw=CH;const IH=e=>{Bw=e},NH=(e,t)=>e===t;function PH(e=Xn){const t=e===Xn?Uw:()=>he.exports.useContext(e);return function(n,i=NH){const{store:o,subscription:a,getServerState:s}=t(),u=Bw(a.addNestedSub,o.getState,s||o.getState,n,i);return he.exports.useDebugValue(u),u}}const We=PH();var Mw={exports:{}},Oe={};/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Tt=typeof Symbol=="function"&&Symbol.for,pm=Tt?Symbol.for("react.element"):60103,vm=Tt?Symbol.for("react.portal"):60106,Lc=Tt?Symbol.for("react.fragment"):60107,kc=Tt?Symbol.for("react.strict_mode"):60108,Fc=Tt?Symbol.for("react.profiler"):60114,Uc=Tt?Symbol.for("react.provider"):60109,Bc=Tt?Symbol.for("react.context"):60110,mm=Tt?Symbol.for("react.async_mode"):60111,Mc=Tt?Symbol.for("react.concurrent_mode"):60111,Dc=Tt?Symbol.for("react.forward_ref"):60112,Gc=Tt?Symbol.for("react.suspense"):60113,RH=Tt?Symbol.for("react.suspense_list"):60120,$c=Tt?Symbol.for("react.memo"):60115,jc=Tt?Symbol.for("react.lazy"):60116,AH=Tt?Symbol.for("react.block"):60121,OH=Tt?Symbol.for("react.fundamental"):60117,LH=Tt?Symbol.for("react.responder"):60118,kH=Tt?Symbol.for("react.scope"):60119;function ir(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case pm:switch(e=e.type,e){case mm:case Mc:case Lc:case Fc:case kc:case Gc:return e;default:switch(e=e&&e.$$typeof,e){case Bc:case Dc:case jc:case $c:case Uc:return e;default:return t}}case vm:return t}}}function Dw(e){return ir(e)===Mc}Oe.AsyncMode=mm;Oe.ConcurrentMode=Mc;Oe.ContextConsumer=Bc;Oe.ContextProvider=Uc;Oe.Element=pm;Oe.ForwardRef=Dc;Oe.Fragment=Lc;Oe.Lazy=jc;Oe.Memo=$c;Oe.Portal=vm;Oe.Profiler=Fc;Oe.StrictMode=kc;Oe.Suspense=Gc;Oe.isAsyncMode=function(e){return Dw(e)||ir(e)===mm};Oe.isConcurrentMode=Dw;Oe.isContextConsumer=function(e){return ir(e)===Bc};Oe.isContextProvider=function(e){return ir(e)===Uc};Oe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===pm};Oe.isForwardRef=function(e){return ir(e)===Dc};Oe.isFragment=function(e){return ir(e)===Lc};Oe.isLazy=function(e){return ir(e)===jc};Oe.isMemo=function(e){return ir(e)===$c};Oe.isPortal=function(e){return ir(e)===vm};Oe.isProfiler=function(e){return ir(e)===Fc};Oe.isStrictMode=function(e){return ir(e)===kc};Oe.isSuspense=function(e){return ir(e)===Gc};Oe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Lc||e===Mc||e===Fc||e===kc||e===Gc||e===RH||typeof e=="object"&&e!==null&&(e.$$typeof===jc||e.$$typeof===$c||e.$$typeof===Uc||e.$$typeof===Bc||e.$$typeof===Dc||e.$$typeof===OH||e.$$typeof===LH||e.$$typeof===kH||e.$$typeof===AH)};Oe.typeOf=ir;Mw.exports=Oe;var Gw=Mw.exports,FH={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},UH={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$w={};$w[Gw.ForwardRef]=FH;$w[Gw.Memo]=UH;var Fe={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var _m=Symbol.for("react.element"),gm=Symbol.for("react.portal"),Hc=Symbol.for("react.fragment"),Vc=Symbol.for("react.strict_mode"),Xc=Symbol.for("react.profiler"),zc=Symbol.for("react.provider"),Wc=Symbol.for("react.context"),BH=Symbol.for("react.server_context"),qc=Symbol.for("react.forward_ref"),Yc=Symbol.for("react.suspense"),Kc=Symbol.for("react.suspense_list"),Zc=Symbol.for("react.memo"),Jc=Symbol.for("react.lazy"),MH=Symbol.for("react.offscreen"),jw;jw=Symbol.for("react.module.reference");function vr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case _m:switch(e=e.type,e){case Hc:case Xc:case Vc:case Yc:case Kc:return e;default:switch(e=e&&e.$$typeof,e){case BH:case Wc:case qc:case Jc:case Zc:case zc:return e;default:return t}}case gm:return t}}}Fe.ContextConsumer=Wc;Fe.ContextProvider=zc;Fe.Element=_m;Fe.ForwardRef=qc;Fe.Fragment=Hc;Fe.Lazy=Jc;Fe.Memo=Zc;Fe.Portal=gm;Fe.Profiler=Xc;Fe.StrictMode=Vc;Fe.Suspense=Yc;Fe.SuspenseList=Kc;Fe.isAsyncMode=function(){return!1};Fe.isConcurrentMode=function(){return!1};Fe.isContextConsumer=function(e){return vr(e)===Wc};Fe.isContextProvider=function(e){return vr(e)===zc};Fe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===_m};Fe.isForwardRef=function(e){return vr(e)===qc};Fe.isFragment=function(e){return vr(e)===Hc};Fe.isLazy=function(e){return vr(e)===Jc};Fe.isMemo=function(e){return vr(e)===Zc};Fe.isPortal=function(e){return vr(e)===gm};Fe.isProfiler=function(e){return vr(e)===Xc};Fe.isStrictMode=function(e){return vr(e)===Vc};Fe.isSuspense=function(e){return vr(e)===Yc};Fe.isSuspenseList=function(e){return vr(e)===Kc};Fe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Hc||e===Xc||e===Vc||e===Yc||e===Kc||e===MH||typeof e=="object"&&e!==null&&(e.$$typeof===Jc||e.$$typeof===Zc||e.$$typeof===zc||e.$$typeof===Wc||e.$$typeof===qc||e.$$typeof===jw||e.getModuleId!==void 0)};Fe.typeOf=vr;function DH(){const e=SH();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],i=t;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0,o=r={callback:n,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const B1={notify(){},get:()=>[]};function GH(e,t){let r,n=B1;function i(f){return u(),n.subscribe(f)}function o(){n.notify()}function a(){c.onStateChange&&c.onStateChange()}function s(){return Boolean(r)}function u(){r||(r=t?t.addNestedSub(a):e.subscribe(a),n=DH())}function l(){r&&(r(),r=void 0,n.clear(),n=B1)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:u,tryUnsubscribe:l,getListeners:()=>n};return c}const $H=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",jH=$H?he.exports.useLayoutEffect:he.exports.useEffect;function HH({store:e,context:t,children:r,serverState:n}){const i=he.exports.useMemo(()=>{const s=GH(e);return{store:e,subscription:s,getServerState:n?()=>n:void 0}},[e,n]),o=he.exports.useMemo(()=>e.getState(),[e]);return jH(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]),C((t||Xn).Provider,{value:i,children:r})}function Hw(e=Xn){const t=e===Xn?Uw:()=>he.exports.useContext(e);return function(){const{store:n}=t();return n}}const VH=Hw();function XH(e=Xn){const t=e===Xn?VH:Hw(e);return function(){return t().dispatch}}const mr=XH();IH(Lw.exports.useSyncExternalStoreWithSelector);wH(Pp.exports.unstable_batchedUpdates);function Hs(e){const t=We(e),r=he.exports.useRef(t);return he.exports.useEffect(()=>{r.current=t},[t]),r}function Jo(e){he.exports.useEffect(()=>{e()},[])}function Qo(e){he.exports.useEffect(()=>function(){e()},[])}function zH(e){he.exports.useEffect(()=>{e()})}const WH="_ToCenter_hf2dv_1",qH="_main_hf2dv_6",YH="_button_hf2dv_17",KH="_button_text_hf2dv_23",ZH="_button_on_hf2dv_28",JH="_singleButton_hf2dv_38";var Ee={ToCenter:WH,main:qH,button:YH,button_text:KH,button_on:ZH,singleButton:JH};const Ep=e=>{const t=document.getElementById("Button_ControlPanel_auto");t&&(e?t.className=Ee.button_on:t.className=Ee.singleButton)},Vw=()=>{ee.isAuto=!1,Ep(!1),ee.autoInterval!==null&&(clearInterval(ee.autoInterval),ee.autoInterval=null),ee.autoTimeout!==null&&(clearTimeout(ee.autoTimeout),ee.autoTimeout=null)},Xw=()=>{ee.isAuto?(ee.isAuto=!1,Ep(!1),ee.autoInterval!==null&&(clearInterval(ee.autoInterval),ee.autoInterval=null)):(ee.isAuto=!0,Ep(!0),ee.autoInterval=setInterval(e7,100))},QH=()=>{jt(),ee.autoTimeout=null},e7=()=>{const e=Y.getState().userData.optionData.autoSpeed,t=750-250*e;let r=!1;ee.performList.forEach(n=>{n.blockingAuto()&&!n.isOver&&(r=!0)}),!r&&ee.autoTimeout===null&&(ee.autoTimeout=setTimeout(QH,t))},zw=e=>{const t=document.getElementById("Button_ControlPanel_fast");t&&(e?t.className=Ee.button_on:t.className=Ee.singleButton)},wo=()=>{!qw()||(ee.isFast=!1,zw(!1),ee.fastInterval!==null&&(clearInterval(ee.fastInterval),ee.fastInterval=null))},Ww=()=>{qw()||(ee.isFast=!0,zw(!0),ee.fastInterval=setInterval(()=>{jt()},100))},qw=function(){return ee.isFast},Yw=()=>{wo(),Vw()},Kw=()=>{ee.isFast?wo():Ww()},t7=e=>{const t=Y.getState().userData,r=Zw(e);pe.debug("\u5B58\u6863\u6570\u636E\uFF1A",r);const n=_t(t.saveData);pe.debug("newSaveData:",n),n[e]=r,Y.dispatch(JN({key:"saveData",value:[...n]})),pe.debug("\u5B58\u6863\u5B8C\u6210\uFF0C\u5B58\u6863\u7ED3\u679C\uFF1A",n),nP()};function Zw(e){const t=Y.getState().stage,r=_t(er);return{nowStageState:_t(t),backlog:r,index:e,saveTime:new Date().toLocaleDateString()+" "+new Date().toLocaleTimeString("chinese",{hour12:!1}),sceneData:{currentSentenceId:ie.currentSentenceId,sceneStack:_t(ie.sceneStack),sceneName:ie.currentScene.sceneName,sceneUrl:ie.currentScene.sceneUrl}}}const ym=()=>{pe.warn("\u6E05\u9664\u6240\u6709\u6F14\u51FA");for(let e=0;e{Y.getState().stage.PerformList.forEach(t=>{KE(t.script)})},r7=e=>{const t=Y.dispatch,r=er[e];pe.debug("\u8BFB\u53D6\u7684backlog\u6570\u636E",r),Wr(r.saveScene.sceneUrl).then(i=>{ie.currentScene=Yr(i,r.saveScene.sceneName,r.saveScene.sceneUrl)}),ie.currentSentenceId=r.saveScene.currentSentenceId,ie.sceneStack=_t(r.saveScene.sceneStack),ym();for(let i=er.length-1;i>e;i--)er.pop();const n=_t(r.currentStageState);t(Vo(n)),Jw(),t(nt({component:"showBacklog",visibility:!1})),t(nt({component:"showTextBox",visibility:!0}))},n7=e=>{const r=Y.getState().userData.saveData[e];pe.debug("\u8BFB\u53D6\u7684\u5B58\u6863\u6570\u636E",r),Qw(r)};function Qw(e){const t=e;Wr(t.sceneData.sceneUrl).then(o=>{ie.currentScene=Yr(o,t.sceneData.sceneName,t.sceneData.sceneUrl)}),ie.currentSentenceId=t.sceneData.currentSentenceId,ie.sceneStack=_t(t.sceneData.sceneStack),ym();const r=t.backlog;er.splice(0,er.length);for(const o of r)er.push(o);const n=_t(t.nowStageState),i=Y.dispatch;i(Vo(n)),Jw(),i(nt({component:"showTitle",visibility:!1})),i(nt({component:"showMenuPanel",visibility:!1}))}function i7(e){o7(),a7(),u7(),s7(),l7(),m7()}function o7(){const e=Hs(a=>a.GUI),t=xm(),r=Vs(e),n=c7(e),i=f7(e),o=he.exports.useCallback(a=>(r()&&t("showTextBox",!e.current.showTextBox),n()&&(t("showBacklog",!1),t("showTextBox",!0)),i()&&t("showMenuPanel",!1),a.preventDefault(),!1),[]);Jo(()=>{document.addEventListener("contextmenu",o)}),Qo(()=>{document.removeEventListener("contextmenu",o)})}function a7(){const e=Hs(i=>i.GUI),t=xm(),r=Vs(e),n=he.exports.useCallback(i=>{const o=i.wheelDelta&&(i.wheelDelta>0?"up":"down")||i.detail&&(i.detail<0?"up":"down")||"down",a=i.ctrlKey;r()&&o==="up"&&!a&&t("showBacklog",!0)},[]);Jo(()=>{document.addEventListener("wheel",n)}),Qo(()=>{document.removeEventListener("wheel",n)})}function s7(){const e=he.exports.useCallback(a=>a.keyCode===27,[]),t=Hs(a=>a.GUI),r=Vs(t),n=he.exports.useRef(!1),i=he.exports.useCallback(a=>{setTimeout(()=>{location.replace(a)},100)},[]),o=he.exports.useCallback(a=>{e(a)&&(d7(async()=>{if(n.current=!0,r()){try{document.body.innerText="",await eS()}catch(s){pe.error("\u4FDD\u5B58\u5931\u8D25",s)}pe.info("\u4FDD\u5B58\u5B8C\u6210")}else pe.info("\u6E38\u620F\u672A\u6FC0\u6D3B \u76F4\u63A5\u9000\u51FA")}),i("https://baidu.com"))},[]);Jo(()=>{document.addEventListener("keydown",o)}),Qo(()=>{document.removeEventListener("keydown",o)})}function u7(){const e=Hs(a=>a.GUI),t=Vs(e),r=he.exports.useCallback(a=>a.keyCode===17,[]),n=he.exports.useCallback(a=>{r(a)&&t()&&Ww()},[]),i=he.exports.useCallback(a=>{r(a)&&t()&&wo()},[]),o=he.exports.useCallback(a=>{wo()},[]);Jo(()=>{document.addEventListener("keydown",n),document.addEventListener("keyup",i),window.addEventListener("blur",o)}),Qo(()=>{document.removeEventListener("keydown",n),document.removeEventListener("keyup",i),window.removeEventListener("blur",o)}),zH(()=>{t()||wo()})}function l7(){const e=h7(),t=he.exports.useCallback(async r=>{e()&&await eS()},[]);Jo(()=>{window.addEventListener("beforeunload",t)}),Qo(()=>{window.removeEventListener("beforeunload",t)})}function Vs(e){return he.exports.useCallback(()=>!e.current.showTitle&&!e.current.showMenuPanel&&!e.current.showBacklog,[e])}function c7(e){return he.exports.useCallback(()=>e.current.showBacklog,[e])}function f7(e){return he.exports.useCallback(()=>[ke.Save,ke.Load,ke.Option].includes(e.current.currentMenuTag),[e])}function h7(){return he.exports.useCallback(()=>ie.currentSentenceId!==0,[ie])}function xm(){const e=mr();return(t,r)=>{e(nt({component:t,visibility:r}))}}function d7(e){typeof Promise!="undefined"?Promise.resolve().then(e):setTimeout(e,0)}async function eS(){const e=Zw(-1),t=_t(e);Y.dispatch(tP(t)),await iP()}async function p7(){return await aE(),Y.getState().userData.quickSaveData!==null}async function v7(){await aE();const e=Y.getState().userData.quickSaveData;!e||Qw(e)}function m7(){const e=Hs(u=>u.GUI),t=Vs(e),r=xm(),n=he.exports.useRef(!1),i=he.exports.useCallback(u=>u.keyCode===32||u.keyCode===13,[]),o=he.exports.useCallback(u=>{if(i(u)&&t()&&!n.current){if(!e.current.showTextBox){r("showTextBox",!0);return}Yw(),jt(),n.current=!0}},[]),a=he.exports.useCallback(u=>{i(u)&&t()&&(n.current=!1)},[]),s=he.exports.useCallback(u=>{n.current=!1},[]);Jo(()=>{document.addEventListener("keydown",o),document.addEventListener("keyup",a),document.addEventListener("blur",s)}),Qo(()=>{document.removeEventListener("keydown",o),document.removeEventListener("keyup",a),document.removeEventListener("blur",s)})}const _7=()=>{const e=We(i=>i.GUI),t=mr(),r=e.titleBg,n=r===""?"rgba(0,0,0,1)":`url("${r}")`;return ne(jr,{children:[e.showTitle&&C("div",{className:Je.Title_backup_background}),C("div",{id:"play_title_bgm_target",onClick:()=>{cc(e.titleBgm)}}),e.showTitle&&C("div",{className:Je.Title_main,style:{backgroundImage:n,backgroundSize:"cover"},children:ne("div",{className:Je.Title_buttonList,children:[ne("div",{className:Je.Title_button,onClick:oH,children:[C("div",{className:Je.Title_button_text+" "+Je.Title_button_text_up,children:"\u5F00\u59CB\u6E38\u620F"}),C("div",{className:Je.Title_button_text,children:"START"})]}),ne("div",{className:Je.Title_button,onClick:async()=>{if(t(nt({component:"showTitle",visibility:!1})),await p7()&&ie.currentSentenceId===0){await v7();return}ie.currentSentenceId===0&&ie.currentScene.sceneName==="start.txt"&&jt()},children:[C("div",{className:Je.Title_button_text+" "+Je.Title_button_text_up,children:"\u7EE7\u7EED\u6E38\u620F"}),C("div",{className:Je.Title_button_text,children:"CONTINUE"})]}),ne("div",{className:Je.Title_button,onClick:()=>{t(nt({component:"showMenuPanel",visibility:!0})),t(mi(ke.Option))},children:[C("div",{className:Je.Title_button_text+" "+Je.Title_button_text_up,children:"\u6E38\u620F\u9009\u9879"}),C("div",{className:Je.Title_button_text,children:"OPTIONS"})]}),ne("div",{className:Je.Title_button,onClick:()=>{t(nt({component:"showMenuPanel",visibility:!0})),t(mi(ke.Load))},children:[C("div",{className:Je.Title_button_text+" "+Je.Title_button_text_up,children:"\u8BFB\u53D6\u5B58\u6863"}),C("div",{className:Je.Title_button_text,children:"LOAD"})]}),ne("div",{className:Je.Title_button,onClick:()=>{t(nt({component:"showExtra",visibility:!0}))},children:[C("div",{className:Je.Title_button_text+" "+Je.Title_button_text_up,children:"\u9274\u8D4F\u6A21\u5F0F"}),C("div",{className:Je.Title_button_text,children:"EXTRA"})]})]})})]})},g7=e=>{const t=Y.getState().GUI,r=Y.dispatch;TE.get(e).then(n=>{var a;let i=n.data.split(` +`);i=i.map(s=>s.split(";")[0]);const o=i.map(s=>s.split(":"));pe.info("\u83B7\u53D6\u5230\u6E38\u620F\u4FE1\u606F",o),t&&o.forEach(s=>{if(s[0]==="Title_img"){const u=Ct(s[1],Ye.background);r(Pg({asset:"titleBg",value:u}))}if(s[0]==="Title_bgm"){const u=Ct(s[1],Ye.bgm);r(Pg({asset:"titleBgm",value:u}))}s[0]==="Game_name"&&(Pr.gameName=s[1],document.title=s[1]),s[0]==="Game_key"&&(Pr.gameKey=s[1],Rl())}),(a=window==null?void 0:window.renderPromise)==null||a.call(window),delete window.renderPromise})},Ou=()=>{const r=window.innerHeight,n=window.innerWidth,i=r/900,o=n/1600,a=n/900,s=r/1600;let u=(900-r)/2,l=(1600-n)/2,c=1600/2-n/2,f=900/2-r/2;const h=document.getElementById("root");h&&(n>r?(l=-l,u=-u,n*(9/16)>=r&&(h.style.transform=`translate(${l}px, ${u}px) scale(${i},${i})`),n*(9/16)=n&&(h.style.transform=`rotate(90deg) translate(${f}px, ${c}px) scale(${a},${a})`),r*(9/16)r?(l=-l,u=-u,n*(9/16)>=r&&(d.style.transform=`translate(${l}px, ${u}px) scale(${i},${i})`),n*(9/16)=n&&(d.style.transform=`rotate(90deg) translate(${f}px, ${c}px) scale(${a},${a})`),r*(9/16){const e=Y.getState().userData,t=e.optionData.volumeMain,r=t*.01*e.optionData.vocalVolume*.01,n=t*.01*e.optionData.bgmVolume*.01;pe.debug(`\u8BBE\u7F6E\u80CC\u666F\u97F3\u91CF\uFF1A${n},\u8BED\u97F3\u97F3\u91CF\uFF1A${r}`);const i=document.getElementById("currentBgm");i&&(i.volume=n.toString());const o=document.getElementById("currentVocal");i&&(o.volume=r.toString())},y7=e=>{if(e){let t=new Rc({backgroundAlpha:0});const r=document.getElementById("pixiContianer");r&&(r.innerHTML="",r.appendChild(t.view)),t.renderer.view.style.position="absolute",t.renderer.view.style.display="block",t.renderer.autoResize=!0;const n=document.getElementById("root");n&&t.renderer.resize(n.clientWidth,n.clientHeight),t.renderer.view.style.zIndex="5",ee.currentPixi=t}else{const t=document.getElementById("pixiContianer");t&&(t.innerHTML="")}},x7=e=>{const t=e.split(" "),r=t[1].replace(/json/g,"txt"),n=parseInt(t[2],10);pe.warn("\u6B63\u5728\u8DF3\u8F6C\u5230"+r+":"+n);const i=Y.dispatch;i(nt({component:"showTitle",visibility:!1})),i(nt({component:"showMenuPanel",visibility:!1})),rm(!0);const o=Ct(r,Ye.scene);Wr(o).then(a=>{ie.currentScene=Yr(a,"start.txt",o);const s=ie.currentScene.sceneName;bm(n,s)})};function bm(e,t){ie.currentSentenceIdbm(e,t),2))}const b7=()=>{window.JMP=bm},E7=()=>{const e=window.location.hostname;if(window.location.protocol!=="http:")return;const r=`ws://${e}:9999`;pe.info("\u6B63\u5728\u542F\u52A8socket\u8FDE\u63A5\u4F4D\u4E8E\uFF1A"+r);const n=new WebSocket(r);n.onopen=()=>{pe.info("socket\u5DF2\u8FDE\u63A5"),n.send(" WebGAL \u5DF2\u548C Terre \u5EFA\u7ACB\u8FDE\u63A5\u3002")},n.onmessage=i=>{pe.info("\u6536\u5230\u4FE1\u606F",i.data);const o=i.data;o.match("jmp")&&x7(o)},n.onerror=i=>{pe.info("\u5F53\u524D\u6CA1\u6709\u8FDE\u63A5\u5230 Terre \u7F16\u8F91\u5668")}},T7=()=>{pe.info("WebGAL 4.2.8"),pe.info("Github: https://github.com/MakinoharaShoko/WebGAL "),pe.info("Made with \u2764 by MakinoharaShoko"),setTimeout(Ou,100),Ou(),window.onresize=Ou,document.onkeydown=function(t){const r=t;r&&r.keyCode===122&&setTimeout(()=>{Ou()},50)},w7("./game/userAnimation.css"),g7("./game/config.txt");const e=Ct("start.txt",Ye.scene);Wr(e).then(t=>{ie.currentScene=Yr(t,"start.txt",e)}),el(),y7(!0),"serviceWorker"in navigator&&navigator.serviceWorker.getRegistrations().then(t=>{for(const r of t)r.unregister().then(()=>{pe.info("\u5DF2\u5378\u8F7D Service Worker")})}),b7(),E7()};function w7(e){const t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e,document.getElementsByTagName("head")[0].appendChild(t)}const S7="_Menu_main_1a7i6_1",C7="_Menu_ShowSoftly_1a7i6_1",I7="_Menu_TagContent_1a7i6_10";var M1={Menu_main:S7,Menu_ShowSoftly:C7,Menu_TagContent:I7};const N7="_MenuPanel_main_u6o2d_1",P7="_MenuPanel_button_u6o2d_10",R7="_MenuPanel_button_icon_u6o2d_33";var so={MenuPanel_main:N7,MenuPanel_button:P7,MenuPanel_button_icon:R7},A7=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function D1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function G1(e){for(var t=1;t=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}function k7(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o=0)&&(r[i]=e[i]);return r}var F7={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function U7(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function B7(e,t,r){var n=typeof t.fill=="string"?[t.fill]:t.fill||[],i=[],o=t.theme||r.theme;switch(o){case"outline":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("none");break;case"filled":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push("#FFF"),i.push("#FFF");break;case"two-tone":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone),i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.twoTone.twoTone);break;case"multi-color":i.push(typeof n[0]=="string"?n[0]:"currentColor"),i.push(typeof n[1]=="string"?n[1]:r.colors.multiColor.outFillColor),i.push(typeof n[2]=="string"?n[2]:r.colors.multiColor.innerStrokeColor),i.push(typeof n[3]=="string"?n[3]:r.colors.multiColor.innerFillColor);break}return{size:t.size||r.size,strokeWidth:t.strokeWidth||r.strokeWidth,strokeLinecap:t.strokeLinecap||r.strokeLinecap,strokeLinejoin:t.strokeLinejoin||r.strokeLinejoin,colors:i,id:e}}var tS=he.exports.createContext(F7);tS.Provider;function Ht(e,t,r){return function(n){var i=n.size,o=n.strokeWidth,a=n.strokeLinecap,s=n.strokeLinejoin,u=n.theme,l=n.fill,c=n.className,f=n.spin,h=L7(n,A7),d=he.exports.useContext(tS),v=he.exports.useMemo(U7,[]),_=B7(v,{size:i,strokeWidth:o,strokeLinecap:a,strokeLinejoin:s,theme:u,fill:l},d),p=[d.prefix+"-icon"];return p.push(d.prefix+"-icon-"+e),t&&d.rtl&&p.push(d.prefix+"-icon-rtl"),f&&p.push(d.prefix+"-icon-spin"),c&&p.push(c),C("span",$m(Gm({},G1(G1({},h),{},{className:p.join(" ")})),{children:r(_)}))}}var M7=Ht("align-text-left-one",!0,function(e){return re.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},re.createElement("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M26 24H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M34 15H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M32 33H14",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),rS=Ht("close-small",!1,function(e){return re.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},re.createElement("path",{d:"M14 14L34 34",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M14 34L34 14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),D7=Ht("double-right",!0,function(e){return re.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},re.createElement("path",{d:"M12 12L24 24L12 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M24 12L36 24L24 36",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),nS=Ht("folder-open",!0,function(e){return re.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},re.createElement("path",{d:"M4 9V41L9 21H39.5V15C39.5 13.8954 38.6046 13 37.5 13H24L19 7H6C4.89543 7 4 7.89543 4 9Z",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M40 41L44 21H8.8125L4 41H40Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),G7=Ht("hamburger-button",!1,function(e){return re.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},re.createElement("path",{d:"M7.94977 11.9498H39.9498",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M7.94977 23.9498H39.9498",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M7.94977 35.9498H39.9498",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),iS=Ht("home",!1,function(e){return re.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},re.createElement("path",{d:"M9 18V42H39V18L24 6L9 18Z",fill:e.colors[1]}),re.createElement("path",{d:"M9 42V18L4 22L24 6L44 22L39 18V42H9Z",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M19 29V42H29V29H19Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M9 42H39",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))}),$7=Ht("logout",!0,function(e){return re.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},re.createElement("path",{d:"M23.9917 6L6 6L6 42H24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M33 33L42 24L33 15",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M16 23.9917H42",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),j7=Ht("play-one",!0,function(e){return re.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},re.createElement("path",{d:"M15 24V11.8756L25.5 17.9378L36 24L25.5 30.0622L15 36.1244V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),H7=Ht("preview-close-one",!0,function(e){return re.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},re.createElement("path",{d:"M9.85786 18C6.23858 21 4 24 4 24C4 24 12.9543 36 24 36C25.3699 36 26.7076 35.8154 28 35.4921M20.0318 12.5C21.3144 12.1816 22.6414 12 24 12C35.0457 12 44 24 44 24C44 24 41.7614 27 38.1421 30",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M20.3142 20.6213C19.4981 21.5112 19 22.6974 19 24C19 26.7614 21.2386 29 24 29C25.3627 29 26.5981 28.4548 27.5 27.5707",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M42 42L6 6",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),V7=Ht("preview-open",!1,function(e){return re.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},re.createElement("path",{d:"M24 36C35.0457 36 44 24 44 24C44 24 35.0457 12 24 12C12.9543 12 4 24 4 24C4 24 12.9543 36 24 36Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M24 29C26.7614 29 29 26.7614 29 24C29 21.2386 26.7614 19 24 19C21.2386 19 19 21.2386 19 24C19 26.7614 21.2386 29 24 29Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),X7=Ht("replay-music",!0,function(e){return re.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},re.createElement("path",{d:"M21 24V18L26 21L31 24L26 27L21 30V24Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M11.2721 36.7279C14.5294 39.9853 19.0294 42 24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C19.0294 6 14.5294 8.01472 11.2721 11.2721C9.6141 12.9301 6 17 6 17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M6 9V17H14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),z7=Ht("return",!0,function(e){return re.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},re.createElement("path",{d:"M12.9998 8L6 14L12.9998 21",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M6 14H28.9938C35.8768 14 41.7221 19.6204 41.9904 26.5C42.2739 33.7696 36.2671 40 28.9938 40H11.9984",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),oS=Ht("save",!0,function(e){return re.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},re.createElement("path",{d:"M6 9C6 7.34315 7.34315 6 9 6H34.2814L42 13.2065V39C42 40.6569 40.6569 42 39 42H9C7.34315 42 6 40.6569 6 39V9Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6",fill:e.colors[3]}),re.createElement("path",{d:"M24.0083 6L24 13.3846C24 13.7245 23.5523 14 23 14H15C14.4477 14 14 13.7245 14 13.3846L14 6H24.0083Z",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M9 6H34.2814",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M14 26H34",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M14 34H24.0083",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),aS=Ht("setting-two",!1,function(e){return re.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},re.createElement("path",{d:"M18.2838 43.1712C14.9327 42.1735 11.9498 40.3212 9.58787 37.8669C10.469 36.8226 11 35.4733 11 34C11 30.6863 8.31371 28 5 28C4.79955 28 4.60139 28.0098 4.40599 28.029C4.13979 26.7276 4 25.3801 4 24C4 21.9094 4.32077 19.8937 4.91579 17.9994C4.94381 17.9998 4.97188 18 5 18C8.31371 18 11 15.3137 11 12C11 11.0487 10.7786 10.1491 10.3846 9.34999C12.6975 7.19937 15.5205 5.5899 18.6521 4.72302C19.6444 6.66807 21.6667 8.00001 24 8.00001C26.3333 8.00001 28.3556 6.66807 29.3479 4.72302C32.4795 5.5899 35.3025 7.19937 37.6154 9.34999C37.2214 10.1491 37 11.0487 37 12C37 15.3137 39.6863 18 43 18C43.0281 18 43.0562 17.9998 43.0842 17.9994C43.6792 19.8937 44 21.9094 44 24C44 25.3801 43.8602 26.7276 43.594 28.029C43.3986 28.0098 43.2005 28 43 28C39.6863 28 37 30.6863 37 34C37 35.4733 37.531 36.8226 38.4121 37.8669C36.0502 40.3212 33.0673 42.1735 29.7162 43.1712C28.9428 40.7518 26.676 39 24 39C21.324 39 19.0572 40.7518 18.2838 43.1712Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M24 31C27.866 31 31 27.866 31 24C31 20.134 27.866 17 24 17C20.134 17 17 20.134 17 24C17 27.866 20.134 31 24 31Z",fill:e.colors[3],stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}))}),W7=Ht("volume-notice",!0,function(e){return re.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},re.createElement("path",{d:"M24 6V42C17 42 11.7985 32.8391 11.7985 32.8391H6C4.89543 32.8391 4 31.9437 4 30.8391V17.0108C4 15.9062 4.89543 15.0108 6 15.0108H11.7985C11.7985 15.0108 17 6 24 6Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M32 15L32 15C32.6232 15.5565 33.1881 16.1797 33.6841 16.8588C35.1387 18.8504 36 21.3223 36 24C36 26.6545 35.1535 29.1067 33.7218 31.0893C33.2168 31.7885 32.6391 32.4293 32 33",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),re.createElement("path",{d:"M34.2358 41.1857C40.0835 37.6953 43.9999 31.305 43.9999 24C43.9999 16.8085 40.2042 10.5035 34.507 6.97906",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap}))});const q7=e=>{let t;switch(e.iconName){case"save":t=C(oS,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"load":t=C(nS,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"option":t=C(aS,{theme:"outline",size:"1.2em",fill:e.iconColor,strokeWidth:2});break;case"title":t=C(iS,{theme:"outline",size:"1.2em",fill:"rgba(185,185,185,1)",strokeWidth:2});break;case"exit":t=C($7,{theme:"outline",size:"1.2em",fill:"rgba(185,185,185,1)",strokeWidth:2});break;default:t=C("div",{})}return t},Ca=e=>{let t=so.MenuPanel_button;return e.hasOwnProperty("buttonOnClassName")&&(t=t+e.buttonOnClassName),ne("div",{className:t,onClick:()=>{e.clickFunc()},style:{color:e.tagColor},children:[C("div",{className:so.MenuPanel_button_icon,children:C(q7,{iconName:e.iconName,iconColor:e.iconColor})}),e.tagName]})},Y7=()=>{const e=We(f=>f.GUI),t=mr(),r=e.currentMenuTag===ke.Save?` ${so.MenuPanel_button_hl}`:"",n=e.currentMenuTag===ke.Load?` ${so.MenuPanel_button_hl}`:"",i=e.currentMenuTag===ke.Option?` ${so.MenuPanel_button_hl}`:"",o=e.currentMenuTag===ke.Save?"rgba(74, 34, 93, 0.9)":"rgba(8, 8, 8, 0.3)",a=e.currentMenuTag===ke.Load?"rgba(11, 52, 110, 0.9)":"rgba(8, 8, 8, 0.3)",s=e.currentMenuTag===ke.Option?"rgba(81, 110, 65, 0.9)":"rgba(8, 8, 8, 0.3)",u=e.currentMenuTag===ke.Save?"rgba(74, 34, 93, 0.9)":"rgba(185, 185, 185, 1)",l=e.currentMenuTag===ke.Load?"rgba(11, 52, 110, 0.9)":"rgba(185, 185, 185, 1)",c=e.currentMenuTag===ke.Option?"rgba(81, 110, 65, 0.9)":"rgba(185, 185, 185, 1)";return ne("div",{className:so.MenuPanel_main,children:[C(Ca,{iconName:"save",buttonOnClassName:r,iconColor:u,tagColor:o,clickFunc:()=>{t(mi(ke.Save))},tagName:"\u5B58\u6863"},"saveButton"),C(Ca,{iconName:"load",buttonOnClassName:n,iconColor:l,tagColor:a,clickFunc:()=>{t(mi(ke.Load))},tagName:"\u8BFB\u6863"},"loadButton"),C(Ca,{iconName:"option",buttonOnClassName:i,iconColor:c,tagColor:s,clickFunc:()=>{t(mi(ke.Option))},tagName:"\u9009\u9879"},"optionButton"),C(Ca,{iconName:"title",clickFunc:()=>{t(nt({component:"showTitle",visibility:!0})),t(nt({component:"showMenuPanel",visibility:!1})),cc(e.titleBgm)},tagName:"\u6807\u9898"},"titleIcon"),C(Ca,{iconName:"exit",clickFunc:()=>{t(nt({component:"showMenuPanel",visibility:!1}))},tagName:"\u8FD4\u56DE"},"exitIcon")]})},K7="_Save_Load_main_mkiqr_2",Z7="_Save_Load_top_mkiqr_9",J7="_Elements_in_mkiqr_1",Q7="_Save_Load_title_mkiqr_17",eV="_Save_title_text_mkiqr_30",tV="_Load_title_text_mkiqr_40",rV="_Save_Load_top_buttonList_mkiqr_50",nV="_Save_Load_top_button_mkiqr_50",iV="_Save_Load_top_button_text_mkiqr_69",oV="_Save_Load_top_button_on_mkiqr_80",aV="_Load_top_button_on_mkiqr_93",sV="_Load_top_button_mkiqr_93",uV="_Save_Load_content_mkiqr_106",lV="_Save_Load_content_element_mkiqr_115",cV="_Elements_in_transform_mkiqr_1",fV="_Save_Load_content_element_top_mkiqr_131",hV="_Save_Load_content_element_top_index_mkiqr_138",dV="_Load_content_elememt_top_index_mkiqr_147",pV="_Save_Load_content_element_top_date_mkiqr_151",vV="_Load_content_element_top_date_mkiqr_160",mV="_Save_Load_content_text_mkiqr_164",_V="_Save_Load_content_text_padding_mkiqr_178",gV="_Save_Load_content_speaker_mkiqr_182",yV="_Load_content_speaker_mkiqr_191",xV="_Load_content_text_mkiqr_195",bV="_Save_Load_content_miniRen_mkiqr_199",EV="_Save_Load_content_miniRen_bg_mkiqr_205",TV="_Save_Load_content_miniRen_figure_mkiqr_212",wV="_Save_Load_content_miniRen_figLeft_mkiqr_220",SV="_Save_Load_content_miniRen_figRight_mkiqr_225";var ce={Save_Load_main:K7,Save_Load_top:Z7,Elements_in:J7,Save_Load_title:Q7,Save_title_text:eV,Load_title_text:tV,Save_Load_top_buttonList:rV,Save_Load_top_button:nV,Save_Load_top_button_text:iV,Save_Load_top_button_on:oV,Load_top_button_on:aV,Load_top_button:sV,Save_Load_content:uV,Save_Load_content_element:lV,Elements_in_transform:cV,Save_Load_content_element_top:fV,Save_Load_content_element_top_index:hV,Load_content_elememt_top_index:dV,Save_Load_content_element_top_date:pV,Load_content_element_top_date:vV,Save_Load_content_text:mV,Save_Load_content_text_padding:_V,Save_Load_content_speaker:gV,Load_content_speaker:yV,Load_content_text:xV,Save_Load_content_miniRen:bV,Save_Load_content_miniRen_bg:EV,Save_Load_content_miniRen_figure:TV,Save_Load_content_miniRen_figLeft:wV,Save_Load_content_miniRen_figRight:SV};const CV=()=>{const e=We(s=>s.userData),t=mr(),r=[];for(let s=1;s<=20;s++){let u=ce.Save_Load_top_button;s===e.optionData.slPage&&(u=u+" "+ce.Save_Load_top_button_on);const l=C("div",{onClick:()=>{t(nE(s)),Ot()},className:u,children:C("div",{className:ce.Save_Load_top_button_text,children:s})},"Save_element_page"+s);r.push(l)}const n=[],i=(e.optionData.slPage-1)*10+1,o=i+9;let a=0;for(let s=i;s<=o;s++){a++;const u=e.saveData[s];let l=C("div",{});if(u){const f=u.nowStageState.showName===""?"":`${u.nowStageState.showName}`;l=ne(jr,{children:[ne("div",{className:ce.Save_Load_content_element_top,children:[C("div",{className:ce.Save_Load_content_element_top_index,children:u.index}),C("div",{className:ce.Save_Load_content_element_top_date,children:u.saveTime})]}),ne("div",{className:ce.Save_Load_content_miniRen,children:[u.nowStageState.bgName!==""&&C("img",{className:ce.Save_Load_content_miniRen_bg,alt:"Save_img_preview",src:u.nowStageState.bgName}),u.nowStageState.bgName===""&&C("div",{style:{background:"rgba(0,0,0,0.6)",width:"100%",height:"100%"}}),u.nowStageState.figNameLeft!==""&&C("img",{className:ce.Save_Load_content_miniRen_figure+" "+ce.Save_Load_content_miniRen_figLeft,alt:"Save_img_previewLeft",src:u.nowStageState.figNameLeft}),u.nowStageState.figNameRight!==""&&C("img",{className:ce.Save_Load_content_miniRen_figure+" "+ce.Save_Load_content_miniRen_figRight,alt:"Save_img_preview",src:u.nowStageState.figNameRight}),u.nowStageState.figName!==""&&C("div",{style:{display:"flex",width:"100%",height:"100%",position:"absolute",bottom:"0",justifyContent:"center"},children:C("img",{className:ce.Save_Load_content_miniRen_figure,alt:"Save_img_preview",src:u.nowStageState.figName})})]}),ne("div",{className:ce.Save_Load_content_text,children:[C("div",{className:ce.Save_Load_content_speaker,children:f}),C("div",{className:ce.Save_Load_content_text_padding,children:u.nowStageState.showText})]})]})}const c=C("div",{onClick:()=>t7(s),className:ce.Save_Load_content_element,style:{animationDelay:`${a*30}ms`},children:l},"saveElement_"+s);n.push(c)}return ne("div",{className:ce.Save_Load_main,children:[ne("div",{className:ce.Save_Load_top,children:[C("div",{className:ce.Save_Load_title,children:C("div",{className:ce.Save_title_text,children:"\u5B58\u6863"})}),C("div",{className:ce.Save_Load_top_buttonList,children:r})]}),C("div",{className:ce.Save_Load_content,id:"Save_content_page_"+e.optionData.slPage,children:n})]})},IV=()=>{const e=We(s=>s.userData),t=mr(),r=[];for(let s=1;s<=20;s++){let u=ce.Save_Load_top_button+" "+ce.Load_top_button;s===e.optionData.slPage&&(u=u+" "+ce.Save_Load_top_button_on+" "+ce.Load_top_button_on);const l=C("div",{onClick:()=>{t(nE(s)),Ot()},className:u,children:C("div",{className:ce.Save_Load_top_button_text,children:s})},"Load_element_page"+s);r.push(l)}const n=[],i=(e.optionData.slPage-1)*10+1,o=i+9;let a=0;for(let s=i;s<=o;s++){a++;const u=e.saveData[s];let l=C("div",{});if(u){const f=u.nowStageState.showName===""?"":`${u.nowStageState.showName}`;l=ne(jr,{children:[ne("div",{className:ce.Save_Load_content_element_top,children:[C("div",{className:ce.Save_Load_content_element_top_index+" "+ce.Load_content_elememt_top_index,children:u.index}),C("div",{className:ce.Save_Load_content_element_top_date+" "+ce.Load_content_element_top_date,children:u.saveTime})]}),ne("div",{className:ce.Save_Load_content_miniRen,children:[u.nowStageState.bgName!==""&&C("img",{className:ce.Save_Load_content_miniRen_bg,alt:"Save_img_preview",src:u.nowStageState.bgName}),u.nowStageState.bgName===""&&C("div",{style:{background:"rgba(0,0,0,0.6)",width:"100%",height:"100%"}}),u.nowStageState.figNameLeft!==""&&C("img",{className:ce.Save_Load_content_miniRen_figure+" "+ce.Save_Load_content_miniRen_figLeft,alt:"Save_img_previewLeft",src:u.nowStageState.figNameLeft}),u.nowStageState.figNameRight!==""&&C("img",{className:ce.Save_Load_content_miniRen_figure+" "+ce.Save_Load_content_miniRen_figRight,alt:"Save_img_preview",src:u.nowStageState.figNameRight}),u.nowStageState.figName!==""&&C("div",{style:{display:"flex",width:"100%",height:"100%",position:"absolute",bottom:"0",justifyContent:"center"},children:C("img",{className:ce.Save_Load_content_miniRen_figure,alt:"Save_img_preview",src:u.nowStageState.figName})})]}),ne("div",{className:ce.Save_Load_content_text,children:[C("div",{className:ce.Save_Load_content_speaker+" "+ce.Load_content_speaker,children:f}),C("div",{className:ce.Save_Load_content_text_padding,children:u.nowStageState.showText})]})]})}const c=C("div",{onClick:()=>n7(s),className:ce.Save_Load_content_element,style:{animationDelay:`${a*30}ms`},children:l},"loadElement_"+s);n.push(c)}return ne("div",{className:ce.Save_Load_main,children:[ne("div",{className:ce.Save_Load_top,children:[C("div",{className:ce.Save_Load_title,children:C("div",{className:ce.Load_title_text,children:"\u8BFB\u6863"})}),C("div",{className:ce.Save_Load_top_buttonList,children:r})]}),C("div",{className:ce.Save_Load_content,id:"Load_content_page_"+e.optionData.slPage,children:n})]})},NV="_Options_main_lg9cv_2",PV="_Options_top_lg9cv_10",RV="_Options_title_lg9cv_17",AV="_Option_title_text_lg9cv_26",OV="_Elements_in_lg9cv_1",LV="_Option_title_text_shadow_lg9cv_35",kV="_Option_title_text_ts_lg9cv_42",FV="_Options_main_content_lg9cv_49",UV="_Options_main_content_half_lg9cv_54";var ti={Options_main:NV,Options_top:PV,Options_title:RV,Option_title_text:AV,Elements_in:OV,Option_title_text_shadow:LV,Option_title_text_ts:kV,Options_main_content:FV,Options_main_content_half:UV};const BV="_NormalButton_1y8da_1",MV="_NormalButtonChecked_1y8da_17";var wh={NormalButton:BV,NormalButtonChecked:MV};const Sh=e=>{const t=e.textList.length,r=[];for(let n=0;nne("div",{className:Ch.NormalOption,children:[C("div",{className:Ch.NormalOption_title,children:e.title}),C("div",{className:Ch.NormalOption_buttonList,children:e.children})]});const Ih=e=>(he.exports.useEffect(()=>{setTimeout(()=>{const t=document.getElementById(e.uniqueID);t!==null&&t.setAttribute("value",e.initValue.toString())},1)},[]),C("div",{className:"Option_WebGAL_slider",children:C("input",{id:e.uniqueID,type:"range",onChange:e.onChange})})),XV="_textPreviewMain_1dkgu_2",zV="_singleText_1dkgu_11",WV="_TextDelayShow_1dkgu_1";var $1={textPreviewMain:XV,singleText:zV,TextDelayShow:WV};const qV=e=>{const t=We(s=>s.userData),r=Bs.textInitialDelay-20*t.optionData.textSpeed,n="\u73B0\u5728\u9884\u89C8\u7684\u662F\u6587\u672C\u6846\u5B57\u4F53\u5927\u5C0F\u548C\u64AD\u653E\u901F\u5EA6\u7684\u60C5\u51B5\uFF0C\u60A8\u53EF\u4EE5\u6839\u636E\u60A8\u7684\u89C2\u611F\u8C03\u6574\u4E0A\u9762\u7684\u9009\u9879\u3002",i=t.optionData.textSize*50+200+"%";let o=$1.singleText;const a=n.split("").map((s,u)=>C("span",{id:r+"text"+u,style:{fontSize:i,animationDelay:String(u*r)+"ms"},className:o,children:s},s+u+t.optionData.textSpeed));return C("div",{className:$1.textPreviewMain,children:a})},YV=()=>{const e=We(r=>r.userData),t=mr();return he.exports.useEffect(Rl,[]),ne("div",{className:ti.Options_main,children:[C("div",{className:ti.Options_top,children:C("div",{className:ti.Options_title,children:C("div",{className:ti.Option_title_text,children:"\u9009\u9879"})})}),ne("div",{className:ti.Options_main_content,children:[ne("div",{className:ti.Options_main_content_half,children:[C(ri,{title:"\u6587\u5B57\u663E\u793A\u901F\u5EA6",children:C(Sh,{textList:["\u6162","\u4E2D","\u5FEB"],functionList:[()=>{t(ar({key:"textSpeed",value:en.slow})),Ot()},()=>{t(ar({key:"textSpeed",value:en.normal})),Ot()},()=>{t(ar({key:"textSpeed",value:en.fast})),Ot()}],currentChecked:e.optionData.textSpeed})},"option0"),C(ri,{title:"\u81EA\u52A8\u64AD\u653E\u901F\u5EA6",children:C(Sh,{textList:["\u6162","\u4E2D","\u5FEB"],functionList:[()=>{t(ar({key:"autoSpeed",value:en.slow})),Ot()},()=>{t(ar({key:"autoSpeed",value:en.normal})),Ot()},()=>{t(ar({key:"autoSpeed",value:en.fast})),Ot()}],currentChecked:e.optionData.autoSpeed})},"option1"),C(ri,{title:"\u6587\u672C\u5927\u5C0F",children:C(Sh,{textList:["\u5C0F","\u4E2D","\u5927"],functionList:[()=>{t(ar({key:"textSize",value:za.small})),Ot()},()=>{t(ar({key:"textSize",value:za.medium})),Ot()},()=>{t(ar({key:"textSize",value:za.large})),Ot()}],currentChecked:e.optionData.textSize})},"option2"),C(ri,{title:"\u6587\u672C\u663E\u793A\u9884\u89C8",children:C(qV,{})},"option3")]}),ne("div",{className:ti.Options_main_content_half,children:[C(ri,{title:"\u4E3B\u97F3\u91CF",children:C(Ih,{initValue:e.optionData.volumeMain,uniqueID:"\u4E3B\u97F3\u91CF",onChange:r=>{const n=r.target.value;t(ar({key:"volumeMain",value:Number(n)})),Ot(),el()}})},"option4"),C(ri,{title:"\u8BED\u97F3\u97F3\u91CF",children:C(Ih,{initValue:e.optionData.vocalVolume,uniqueID:"\u8BED\u97F3\u97F3\u91CF",onChange:r=>{const n=r.target.value;t(ar({key:"vocalVolume",value:Number(n)})),Ot(),el()}})},"option5"),C(ri,{title:"\u80CC\u666F\u97F3\u4E50\u97F3\u91CF",children:C(Ih,{initValue:e.optionData.bgmVolume,uniqueID:"\u80CC\u666F\u97F3\u4E50\u97F3\u91CF",onChange:r=>{const n=r.target.value;t(ar({key:"bgmVolume",value:Number(n)})),Ot(),el()}})},"option6")]})]})]})},KV=()=>{const e=We(r=>r.GUI);let t;switch(e.currentMenuTag){case ke.Save:t=C(CV,{});break;case ke.Load:t=C(IV,{});break;case ke.Option:t=C(YV,{});break}return C(jr,{children:e.showMenuPanel&&ne("div",{className:M1.Menu_main,children:[C("div",{className:M1.Menu_TagContent,children:t}),C(Y7,{})]})})},ZV=()=>{const e=We(a=>a.stage),t=We(a=>a.userData);he.exports.useEffect(()=>{});const r=Bs.textInitialDelay-20*t.optionData.textSpeed,n=t.optionData.textSize*50+200+"%",o=e.showText.split("").map((a,s)=>{let u=s*r,l=e.currentConcatDialogPrev.length;return e.currentConcatDialogPrev!==""&&s>=l&&(u=u-l*r),s{const e=We(t=>t.stage);return ne("div",{className:Ar.FigureContainer_main,children:[C("div",{className:Ar.figContainerLeft+" "+Ar.figContainer,id:"figLeftContainer",children:e.figNameLeft!==""&&C("img",{className:Ar.figurePic,src:e.figNameLeft,alt:"fig_left"})}),C("div",{className:Ar.figContainerCenter+" "+Ar.figContainer,id:"figCenterContainer",children:e.figName!==""&&C("img",{className:Ar.figurePic,src:e.figName,alt:"fig_center"})}),C("div",{className:Ar.figContainerRight+" "+Ar.figContainer,id:"figRightContainer",children:e.figNameRight!==""&&C("img",{className:Ar.figurePic,src:e.figNameRight,alt:"fig_right"})})]})},sX=()=>{const e=We(t=>t.stage);return ne("div",{children:[C("audio",{id:"currentBgm",src:e.bgm,loop:!0,autoPlay:!0}),C("audio",{id:"currentVocal",src:e.vocal})]})},uX=()=>{const e=We(i=>i.stage);let t="100%",r="100%",n="0";return e.enableFilm!==""&&(r="76%",n="12%"),ne("div",{className:ps.FullScreenPerform_main,style:{width:t,height:r,top:n},children:[C("div",{id:"videoContainer"}),C("div",{className:ps.introContainer,id:"introContainer"}),C("div",{id:"pixiContianer"}),C("div",{id:"chooseContainer"})]})},lX=()=>{const e=We(a=>a.stage),t=We(a=>a.userData);he.exports.useEffect(()=>{});const r=Bs.textInitialDelay-20*t.optionData.textSpeed,n=t.optionData.textSize*50+200+"%",o=e.showText.split("").map((a,s)=>{let u=s*r,l=e.currentConcatDialogPrev.length;return e.currentConcatDialogPrev!==""&&s>=l&&(u=u-l*r),s{const e=We(a=>a.stage),t=We(a=>a.GUI),r=mr();he.exports.useEffect(()=>{const a=e.effects;setTimeout(()=>{a.forEach(s=>{const u=document.getElementById(s.target);u&&(s.filter!==""&&(u.style.filter=s.filter),s.transform!==""&&(u.style.transform=s.transform))})},100)});let n="100%",i="100%",o="0";return e.enableFilm!==""&&(i="76%",o="12%"),i7(),ne("div",{className:La.MainStage_main,children:[ne("div",{className:La.MainStage_main_container,style:{width:n,height:i,top:o},children:[C("div",{id:"MainStage_bg_OldContainer",className:La.MainStage_oldBgContainer,style:{backgroundImage:`url("${e.oldBgName}")`,backgroundSize:"cover"}},"bgOld"+e.oldBgName),C("div",{id:"MainStage_bg_MainContainer",className:La.MainStage_bgContainer,style:{backgroundImage:`url("${e.bgName}")`,backgroundSize:"cover"}},"bgMain"+e.bgName),C(aX,{})]}),C(uX,{}),t.showTextBox&&e.enableFilm===""&&C(ZV,{}),t.showTextBox&&e.enableFilm!==""&&C(lX,{}),C(sX,{}),C("div",{onClick:()=>{if(!t.showTextBox){r(nt({component:"showTextBox",visibility:!0}));return}Yw(),jt()},id:"FullScreenClick",style:{width:"100%",height:"100%",position:"absolute",zIndex:"12",top:"0"}})]})},sS=()=>{const e=Y.getState().GUI,t=Y.dispatch;cc(e.titleBgm),ym(),Vw(),wo(),t(nt({component:"showTitle",visibility:!0}))},fX=()=>{const e=We(o=>o.GUI),t=We(o=>o.stage),r=mr(),n=(o,a)=>{r(nt({component:o,visibility:a}))},i=o=>{r(mi(o))};return C("div",{className:Ee.ToCenter,children:e.showTextBox&&t.enableFilm===""&&ne("div",{className:Ee.main,children:[e.showTextBox&&ne("span",{className:Ee.singleButton,onClick:()=>n("showTextBox",!1),children:[C(H7,{className:Ee.button,theme:"outline",size:"30",fill:"#f5f5f7",strokeWidth:3.5}),C("span",{className:Ee.button_text,children:"\u9690\u85CF"})]}),!e.showTextBox&&ne("span",{className:Ee.singleButton,onClick:()=>n("showTextBox",!0),children:[C(V7,{className:Ee.button,theme:"outline",size:"30",fill:"#f5f5f7",strokeWidth:3.5}),C("span",{className:Ee.button_text,children:"\u663E\u793A"})]}),ne("span",{className:Ee.singleButton,onClick:()=>{n("showBacklog",!0),n("showTextBox",!1)},children:[C(M7,{className:Ee.button,theme:"outline",size:"30",fill:"#f5f5f7",strokeWidth:3.5}),C("span",{className:Ee.button_text,children:"\u56DE\u60F3"})]}),ne("span",{className:Ee.singleButton,onClick:()=>{let o=document.getElementById("currentVocal");o!==null&&(o.currentTime=0,o.pause(),o.play())},children:[C(X7,{className:Ee.button,theme:"outline",size:"30",fill:"#f5f5f7",strokeWidth:3.5}),C("span",{className:Ee.button_text,children:"\u91CD\u64AD"})]}),ne("span",{id:"Button_ControlPanel_auto",className:Ee.singleButton,onClick:Xw,children:[C(j7,{className:Ee.button,theme:"outline",size:"30",fill:"#f5f5f7",strokeWidth:3.5}),C("span",{className:Ee.button_text,children:"\u81EA\u52A8"})]}),ne("span",{id:"Button_ControlPanel_fast",className:Ee.singleButton,onClick:Kw,children:[C(D7,{className:Ee.button,theme:"outline",size:"30",fill:"#f5f5f7",strokeWidth:3.5}),C("span",{className:Ee.button_text,children:"\u5FEB\u8FDB"})]}),ne("span",{className:Ee.singleButton,onClick:()=>{i(ke.Save),n("showMenuPanel",!0)},children:[C(oS,{className:Ee.button,theme:"outline",size:"30",fill:"#f5f5f7",strokeWidth:3.5}),C("span",{className:Ee.button_text,children:"\u5B58\u6863"})]}),ne("span",{className:Ee.singleButton,onClick:()=>{i(ke.Load),n("showMenuPanel",!0)},children:[C(nS,{className:Ee.button,theme:"outline",size:"30",fill:"#f5f5f7",strokeWidth:3.5}),C("span",{className:Ee.button_text,children:"\u8BFB\u6863"})]}),ne("span",{className:Ee.singleButton,onClick:()=>{i(ke.Option),n("showMenuPanel",!0)},children:[C(aS,{className:Ee.button,theme:"outline",size:"30",fill:"#f5f5f7",strokeWidth:3.5}),C("span",{className:Ee.button_text,children:"\u9009\u9879"})]}),ne("span",{className:Ee.singleButton,onClick:()=>{sS()},children:[C(iS,{className:Ee.button,theme:"outline",size:"30",fill:"#f5f5f7",strokeWidth:3.5}),C("span",{className:Ee.button_text,children:"\u6807\u9898"})]})]})})},hX="_Backlog_main_7ipkr_2",dX="_backlog_soft_in_7ipkr_1",pX="_backlog_top_7ipkr_15",vX="_backlog_top_icon_7ipkr_21",mX="_backlog_icon_softin_7ipkr_1",_X="_backlog_title_7ipkr_40",gX="_backlog_content_7ipkr_50",yX="_backlog_item_7ipkr_62",xX="_backlog_item_in_7ipkr_1",bX="_backlog_func_area_7ipkr_72",EX="_backlog_item_content_name_7ipkr_79",TX="_backlog_item_content_7ipkr_79",wX="_backlog_item_button_list_7ipkr_98",SX="_backlog_item_button_element_7ipkr_105",CX="_backlog_item_content_text_7ipkr_118";var Jt={Backlog_main:hX,backlog_soft_in:dX,backlog_top:pX,backlog_top_icon:vX,backlog_icon_softin:mX,backlog_title:_X,backlog_content:gX,backlog_item:yX,backlog_item_in:xX,backlog_func_area:bX,backlog_item_content_name:EX,backlog_item_content:TX,backlog_item_button_list:wX,backlog_item_button_element:SX,backlog_item_content_text:CX};const IX=()=>{const e=We(n=>n.GUI),t=[],r=mr();for(let n=0;n{r7(n),a.preventDefault(),a.stopPropagation()},className:Jt.backlog_item_button_element,children:C(z7,{theme:"outline",size:"23",fill:"#ffffff",strokeWidth:3})}),C("div",{onClick:()=>{const a=document.getElementById("backlog_audio_play_element_"+n);if(a){a.currentTime=0;const s=Y.getState().userData,u=s.optionData.volumeMain;a.volume=u*.01*s.optionData.vocalVolume*.01,a.play()}},className:Jt.backlog_item_button_element,children:C(W7,{theme:"outline",size:"23",fill:"#ffffff",strokeWidth:3})})]})]}),C("div",{className:Jt.backlog_item_content,children:C("span",{className:Jt.backlog_item_content_text,children:i.currentStageState.showText})}),C("audio",{id:"backlog_audio_play_element_"+n,src:i.currentStageState.vocal})]},"backlogItem"+i.currentStageState.showText+i.saveScene.currentSentenceId);t.unshift(o)}return C(jr,{children:e.showBacklog&&ne("div",{className:Jt.Backlog_main,children:[ne("div",{className:Jt.backlog_top,children:[C(rS,{className:Jt.backlog_top_icon,onClick:()=>{r(nt({component:"showBacklog",visibility:!1})),r(nt({component:"showTextBox",visibility:!0}))},theme:"outline",size:"4em",fill:"#ffffff",strokeWidth:3}),C("div",{className:Jt.backlog_title,children:"\u56DE\u60F3"})]}),C("div",{className:Jt.backlog_content,children:t})]})})},NX="_extra_1qex5_2",PX="_extra_top_1qex5_14",RX="_extra_top_icon_1qex5_20",AX="_extra_icon_softin_1qex5_1",OX="_extra_title_1qex5_39",LX="_mainContainer_1qex5_50",kX="_bgmContainer_1qex5_57",FX="_bgmElement_1qex5_65",UX="_bgmElement_In_1qex5_1",BX="_bgmElement_active_1qex5_95",MX="_cgMain_1qex5_100",DX="_cgContainer_1qex5_105",GX="_cgElement_1qex5_117",$X="_cgShowDiv_1qex5_132",jX="_cgNav_1qex5_141",HX="_cgNav_active_1qex5_153",VX="_showFullContainer_1qex5_164",XX="_showFullCgMain_1qex5_177",zX="_fullCgIn_1qex5_1";var Ut={extra:NX,extra_top:PX,extra_top_icon:RX,extra_icon_softin:AX,extra_title:OX,mainContainer:LX,bgmContainer:kX,bgmElement:FX,bgmElement_In:UX,bgmElement_active:BX,cgMain:MX,cgContainer:DX,cgElement:GX,cgShowDiv:$X,cgNav:jX,cgNav_active:HX,showFullContainer:VX,showFullCgMain:XX,fullCgIn:zX};function Qc(e){const[t,r]=he.exports.useState(e);return{value:t,set:function(n){this.value=n,r(n)}}}function WX(){const e=We(a=>a.stage.bgm),t=We(a=>a.userData.appreciationData);let r="init_bgm_find_var_WebGAL_4.2.1";t.bgm.forEach((a,s)=>{a.url===e&&(r=a.name)});const n=Qc("");r!=="init_bgm_find_var_WebGAL_4.2.1"&&r!==n.value&&n.set(r);const i=mr(),o=t.bgm.map((a,s)=>{let u=Ut.bgmElement;return a.name===n.value&&(u=u+" "+Ut.bgmElement_active),C("div",{onClick:()=>{n.set(a.name),i(tt({key:"bgm",value:a.url}))},className:u,style:{animationDelay:`${s*150}ms`},children:a.name},a.name)});return C("div",{className:Ut.bgmContainer,children:o})}function qX(e){const t=Qc(!1);return ne(jr,{children:[t.value&&C("div",{onClick:()=>t.set(!t.value),className:Ut.showFullContainer,children:C("div",{className:Ut.showFullCgMain,children:C("div",{style:{backgroundImage:`url('${e.imgUrl}')`,backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"100%"}})})}),C("div",{onClick:()=>t.set(!t.value),style:{animation:`cg_softIn_${e.transformDeg} 1.5s ease-out ${100+e.index*100}ms forwards `},className:Ut.cgElement,children:C("div",{style:{backgroundImage:`url('${e.imgUrl}')`,backgroundSize:"cover",backgroundPosition:"center",width:"100%",height:"100%"}})},e.name)]})}function YX(){const t=We(s=>s.userData.appreciationData),r=Math.ceil(t.cg.length/9),n=Qc(1),i=[],o=t.cg.length;for(let s=(n.value-1)*9;sn.set(s),className:u,children:s},"nav"+s);a.push(l)}return ne("div",{className:Ut.cgMain,children:[C("div",{className:Ut.cgContainer,children:i}),C("div",{className:Ut.cgShowDiv,children:a})]})}function KX(e,t){return Math.round(Math.random()*(t-e))+e}function ZX(){const e=We(r=>r.GUI.showExtra),t=mr();return C(jr,{children:e&&ne("div",{className:Ut.extra,children:[ne("div",{className:Ut.extra_top,children:[C(rS,{className:Ut.extra_top_icon,onClick:()=>{t(nt({component:"showExtra",visibility:!1}))},theme:"outline",size:"4em",fill:"#fff",strokeWidth:3}),C("div",{className:Ut.extra_title,children:"\u9274\u8D4F\u6A21\u5F0F"})]}),ne("div",{className:Ut.mainContainer,children:[C(WX,{}),C(YX,{})]})]})})}const JX="_tag_yghix_2",QX="_container_yghix_17",ez="_showContainer_yghix_1",tz="_singleButton_yghix_33",rz="_button_text_yghix_37";var xt={tag:JX,container:QX,showContainer:ez,singleButton:tz,button_text:rz};const nz=()=>{const e=Qc(!1),t=We(o=>o.stage),r=mr(),n=(o,a)=>{r(nt({component:o,visibility:a}))},i=o=>{r(mi(o))};return C(jr,{children:t.enableFilm!==""&&ne(jr,{children:[C("div",{className:xt.tag,onClick:()=>{e.set(!e.value)},children:C(G7,{theme:"outline",size:"32",fill:"#fff"})}),e.value&&ne("div",{className:xt.container,children:[C("span",{className:xt.singleButton,onClick:()=>{n("showBacklog",!0),n("showTextBox",!1),e.set(!e.value)},children:C("span",{className:xt.button_text,children:"\u5267\u60C5\u56DE\u60F3 / BACKLOG"})}),C("span",{className:xt.singleButton,onClick:()=>{e.set(!e.value);let o=document.getElementById("currentVocal");o!==null&&(o.currentTime=0,o.pause(),o.play())},children:C("span",{className:xt.button_text,children:"\u91CD\u64AD\u8BED\u97F3 / REPLAY VOICE"})}),C("span",{id:"Button_ControlPanel_auto",className:xt.singleButton,onClick:()=>{Xw(),e.set(!e.value)},children:C("span",{className:xt.button_text,children:"\u81EA\u52A8\u6A21\u5F0F / AUTO"})}),C("span",{id:"Button_ControlPanel_fast",className:xt.singleButton,onClick:()=>{Kw(),e.set(!e.value)},children:C("span",{className:xt.button_text,children:"\u5FEB\u8FDB / FAST"})}),C("span",{className:xt.singleButton,onClick:()=>{e.set(!e.value),i(ke.Save),n("showMenuPanel",!0)},children:C("span",{className:xt.button_text,children:"\u5B58\u6863 / SAVE"})}),C("span",{className:xt.singleButton,onClick:()=>{e.set(!e.value),i(ke.Load),n("showMenuPanel",!0)},children:C("span",{className:xt.button_text,children:"\u8BFB\u6863 / LOAD"})}),C("span",{className:xt.singleButton,onClick:()=>{e.set(!e.value),i(ke.Option),n("showMenuPanel",!0)},children:C("span",{className:xt.button_text,children:"\u9009\u9879 / OPTIONS"})}),C("span",{className:xt.singleButton,onClick:()=>{e.set(!e.value),sS()},children:C("span",{className:xt.button_text,children:"\u6807\u9898 / TITLE"})})]})]})})};function iz(){return he.exports.useEffect(()=>{T7()},[]),C("div",{className:"App",style:{height:"100%",width:"100%",background:"rgba(0, 0, 0, 1)"},children:ne(HH,{store:Y,children:[C(ZX,{}),C(_7,{}),C(KV,{}),C(cX,{}),C(fX,{}),C(nz,{}),C(IX,{})]})})}Po.render(C(re.StrictMode,{children:C(iz,{})}),document.getElementById("root")); diff --git a/index.e5290b91.css b/index.e5290b91.css new file mode 100644 index 0000000..e436749 --- /dev/null +++ b/index.e5290b91.css @@ -0,0 +1 @@ +@charset "UTF-8";@font-face{font-family:\601d\6e90\5b8b\4f53;src:url(./SourceHanSerifCN-Regular.1e60cc2e.ttf) format("truetype")}@font-face{font-family:WebgalUI;src:url(./OPPOSans-R.ea925359.ttf) format("truetype")}.StartButton{animation:StartButton_blink 4s infinite}@keyframes StartButton_blink{0%{text-shadow:0 0 15px rgba(0,0,0,.65)}50%{text-shadow:0 0 15px rgba(255,255,255,.5)}to{text-shadow:0 0 15px rgba(0,0,0,.65)}}a{transition:color 1s}a:link,a:visited,a:hover,a:active{color:#434343}body{font-size:16px;margin:0;font-family:WebgalUI,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden;user-select:none}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}#root{width:1600px;height:900px;overflow:hidden}::-webkit-scrollbar{width:12px}::-webkit-scrollbar-track{box-shadow:0 0 10px #fff3;-webkit-box-shadow:0 0 10px rgba(255,255,255,.2);background:rgba(255,255,255,.2);border-radius:10px}::-webkit-scrollbar-thumb{border-radius:10px;background:rgba(255,255,255,.5);box-shadow:0 0 10px #00000026;-webkit-box-shadow:0 0 10px rgba(0,0,0,.15)}._Title_main_1op7x_2{width:100%;height:100%;position:absolute;z-index:13}._Title_buttonList_1op7x_9{font-family:\601d\6e90\5b8b\4f53,serif;display:flex;position:absolute;bottom:0;height:12%;background:rgba(0,0,0,.4);width:100%;justify-content:space-evenly;justify-items:center;align-items:center;flex-flow:row;letter-spacing:.25em;transition:background .75s}._Title_buttonList_1op7x_9:hover{background:rgba(0,0,0,.6)}._Title_button_1op7x_9{font-weight:700;text-align:center;flex:0 1 auto;cursor:pointer;padding:.2em 1em;transition:background-color .3s,transform .3s,text-shadow .3s}._Title_button_1op7x_9:hover{text-shadow:0 0 10px rgb(255,255,255);transform:scale(1.025) translateY(-.05em)}._Title_button_text_1op7x_43{font-size:165%;color:transparent;background:linear-gradient(135deg,#fdfbfb 0%,#dcddde 100%);-webkit-background-clip:text;padding:0 .5em}._Title_button_text_up_1op7x_51{font-size:215%}._Title_backup_background_1op7x_55{width:100%;height:100%;position:absolute;z-index:13;background:linear-gradient(135deg,#fdfbfb 0%,#dcddde 100%)}._FullScreenPerform_main_14crw_2{position:absolute;width:100%;height:100%;top:0}._FullScreenPerform_element_14crw_9{position:absolute;display:none;width:100%;height:100%;z-index:11}._fullScreen_video_14crw_17{position:absolute;display:block;width:100%;height:100%;z-index:11}._introContainer_14crw_25{box-sizing:border-box;padding:3em 4em;font-size:350%;position:absolute;z-index:11;width:100%;height:100%;background:rgb(0,0,0);color:#fff;display:none}._introElement_14crw_38{opacity:0;animation:_intro_showSoftly_14crw_1 1.5s ease-out forwards;font-family:\601d\6e90\5b8b\4f53,serif}@keyframes _intro_showSoftly_14crw_1{0%{opacity:0}to{opacity:1}}._videoContainer_14crw_52{position:absolute;display:block;width:100%;height:100%;z-index:11;background:rgb(0,0,0)}._MainStage_main_fcwvo_1{width:100%;height:100%;position:absolute;z-index:1;opacity:1;overflow:hidden}._MainStage_main_container_fcwvo_10{width:100%;height:100%;position:absolute;overflow:hidden}._MainStage_bgContainer_fcwvo_17{top:0;position:absolute;background-size:cover;width:100%;height:100%;z-index:1;animation:_MainStage_showBgSoftly_fcwvo_1 1s forwards ease-in-out}._MainStage_bgContainer_Settled_fcwvo_27{top:0;position:absolute;background-size:cover;width:100%;height:100%;animation:_MainStage_showBgSoftly_fcwvo_1 1ms forwards;z-index:1}._MainStage_oldBgContainer_fcwvo_37{background-size:cover;top:0;position:absolute;width:100%;height:100%;z-index:0;animation:_MainStage_oldBgFadeout_fcwvo_1 3s forwards}._MainStage_oldBgContainer_Settled_fcwvo_47{background-size:cover;top:0;position:absolute;width:100%;height:100%;opacity:0}@keyframes _MainStage_showBgSoftly_fcwvo_1{0%{opacity:0}20%{opacity:0}to{opacity:1}}@keyframes _MainStage_oldBgFadeout_fcwvo_1{0%{opacity:1}to{opacity:0}}._TextBox_EventHandler_1295f_2{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_1295f_10{font-family:\601d\6e90\5b8b\4f53,serif;position:absolute;z-index:6;width:100%;min-height:37.5%;background:linear-gradient(transparent,rgba(0,0,0,.25) 25%,rgba(0,0,0,.35) 75%,rgba(0,0,0,.6)),linear-gradient(90deg,transparent 0,rgba(0,0,0,.35) 25%,rgba(0,0,0,.35) 75%,transparent);bottom:0;color:#fff;padding:1em 18em 2em;box-sizing:border-box;overflow:hidden;display:flex;flex-flow:column;align-items:flex-start;animation:_showSoftly_1295f_1 .7s ease-out forwards;letter-spacing:.2em}@keyframes _showSoftly_1295f_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_1295f_37{opacity:0;animation:_showSoftly_1295f_1 1s forwards}._TextBox_textElement_start_1295f_42{animation:_TextDelayShow_1295f_1 .7s ease-out forwards;opacity:0}._TextBox_textElement_Settled_1295f_47{opacity:1}._TextBox_showName_1295f_51{font-size:85%;border-bottom:2px solid rgba(255,255,255,.3);min-width:50%;padding:0 .2em .2em .3em;margin:0 0 .2em}@keyframes _TextDelayShow_1295f_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_1295f_67{position:absolute;height:80%;width:17%;bottom:0;left:.5em}._miniAvatarImg_1295f_75{max-height:100%;max-width:100%;position:absolute;bottom:0}._TextBox_EventHandler_449dq_2{position:absolute;width:100%;height:100%;z-index:6;top:0}._TextBox_main_449dq_10{font-family:\601d\6e90\5b8b\4f53,serif;font-style:italic;position:absolute;z-index:6;width:100%;height:12%;background-color:#000;bottom:0;color:#fff;box-sizing:border-box;overflow:hidden;display:flex;flex-flow:column;align-items:center;animation:_showSoftly_449dq_1 .7s ease-out forwards;letter-spacing:.2em;justify-content:center}@keyframes _showSoftly_449dq_1{0%{opacity:0}to{opacity:1}}._TextBox_textElement_449dq_38{opacity:0;animation:_showSoftly_449dq_1 1s forwards}._TextBox_textElement_start_449dq_43{animation:_TextDelayShow_449dq_1 .7s ease-out forwards;opacity:0}._TextBox_textElement_Settled_449dq_48{opacity:1}._TextBox_showName_449dq_52{font-size:85%;border-bottom:2px solid rgba(255,255,255,.3);min-width:50%;padding:0 .2em .2em .3em;margin:0 0 .2em}@keyframes _TextDelayShow_449dq_1{0%{opacity:0}to{opacity:1}}._miniAvatarContainer_449dq_68{position:absolute;height:80%;width:17%;bottom:0;left:.5em}._miniAvatarImg_449dq_76{max-height:100%;max-width:100%;position:absolute;bottom:0}._Choose_Main_1da9y_2{position:absolute;width:100%;height:100%;display:flex;flex-flow:column;justify-content:center;align-items:center;z-index:13;background:rgba(0,0,0,.05)}._Choose_item_1da9y_14{font-family:\601d\6e90\5b8b\4f53,serif;cursor:pointer;min-width:50%;padding:.25em 1em;font-size:265%;color:#8e354a;text-align:center;border-radius:4px;border:3px solid rgba(0,0,0,0);box-shadow:0 0 25px #00000040;background:rgba(255,255,255,.65);margin:.25em 0;transition:background-color .5s,border .5s,font-weight .5s,box-shadow .5s}._Choose_item_1da9y_14:hover{background:rgba(255,255,255,.9);box-shadow:0 0 25px #00000059;border:3px solid #8E354A}._ToCenter_hf2dv_1{display:flex;justify-content:center}._main_hf2dv_6{position:absolute;bottom:.3em;z-index:9;display:flex;flex-flow:row;justify-content:center;align-items:center;padding:.15em 1.75em}._button_hf2dv_17{position:relative;top:2px;padding:0 3px 0 0}._button_text_hf2dv_23{position:relative;bottom:4px}._button_on_hf2dv_28{height:100%;display:inline-block;color:#fff;font-size:150%;padding:.2em .6em 0 .45em;transition:background-color .5s;background:rgba(255,255,255,.3)}._singleButton_hf2dv_38{height:100%;display:inline-block;color:#fff;font-size:150%;padding:.2em .6em 0 .45em;transition:background-color .5s;cursor:pointer}._singleButton_hf2dv_38:hover{background-color:#ffffff4d}._Menu_main_1a7i6_1{width:100%;height:100%;position:absolute;z-index:16;animation:_Menu_ShowSoftly_1a7i6_1 .5s forwards;background-image:linear-gradient(to top,#accbee 0%,#e7f0fd 100%)}._Menu_TagContent_1a7i6_10{width:100%;height:90%}@keyframes _Menu_ShowSoftly_1a7i6_1{0%{opacity:0}to{opacity:1}}._MenuPanel_main_u6o2d_1{width:100%;height:10%;display:flex;justify-content:center;align-items:center;background-color:#fff}._MenuPanel_button_u6o2d_10{padding:.35em 0 0;display:flex;justify-content:center;font-size:200%;text-align:center;font-weight:700;width:15%;cursor:pointer;color:#0808084d;overflow:hidden;border-right:1.5px solid rgba(0,0,0,.15);transition:text-shadow .7s,backgroud .7s}._MenuPanel_button_u6o2d_10:hover{background:radial-gradient(50% 50%,rgba(180,181,182,.25) 0%,rgba(180,181,182,.1) 75%,rgba(0,0,0,0) 100%)}._MenuPanel_button_u6o2d_10:last-child{border-right:none}._MenuPanel_button_icon_u6o2d_33{transform:translateY(.05em);padding:0 .15em 0 0;margin:0 .15em 0 0}._Save_Load_main_mkiqr_2{height:90%;width:100%;position:absolute;cursor:default}._Save_Load_top_mkiqr_9{height:10%;width:100%;display:flex;background-color:#fff;animation:_Elements_in_mkiqr_1 ease-out 1s forwards}._Save_Load_title_mkiqr_17{font-family:\601d\6e90\5b8b\4f53,serif;letter-spacing:.1em;width:auto;height:100%;font-size:275%;margin:0 0 0 .8em;padding:0 .8em;box-sizing:border-box;display:flex;justify-content:center}._Save_title_text_mkiqr_30{height:100%;font-size:125%;font-weight:700;color:transparent;background:linear-gradient(135deg,#77428D 0%,#B28FCE 100%);text-shadow:2px 2px 15px rgba(255,255,255,.5);-webkit-background-clip:text}._Load_title_text_mkiqr_40{height:100%;font-size:120%;font-weight:700;color:transparent;background:linear-gradient(135deg,#005CAF 0%,#2EA9DF 100%);text-shadow:2px 2px 15px rgba(255,255,255,.5);-webkit-background-clip:text}._Save_Load_top_buttonList_mkiqr_50{height:100%;display:flex;padding:0 0 0 2em}._Save_Load_top_button_mkiqr_50{cursor:pointer;font-size:200%;width:65px;text-align:center;color:#00000080;box-sizing:border-box;display:flex;align-items:center;border-bottom:4px solid rgba(0,0,0,0);transition:background-color .7s,border-bottom-width .7s}._Save_Load_top_button_text_mkiqr_69{text-align:center;width:100%;padding:0 0 3px;border-left:2px solid rgba(0,0,0,.1)}._Save_Load_top_button_mkiqr_50:first-child>div{border-left:2px solid rgba(0,0,0,0)}._Save_Load_top_button_on_mkiqr_80{font-weight:700;border-bottom:4px solid #77428D;color:#77428d;background-color:#77428d0d}._Save_Load_top_button_mkiqr_50:hover{color:#77428d;font-weight:700;border-bottom:4px solid #77428D}._Load_top_button_on_mkiqr_93{font-weight:700;border-bottom:5px solid #005CAF;color:#005caf;background-color:#005caf1a}._Load_top_button_mkiqr_93:hover{color:#005caf;font-weight:700;border-bottom:5px solid #005CAF}._Save_Load_content_mkiqr_106{height:90%;width:100%;display:flex;flex-wrap:wrap;justify-content:space-evenly;align-items:center}._Save_Load_content_element_mkiqr_115{background:linear-gradient(-45deg,rgba(0,0,0,.05),rgba(0,0,0,.075));overflow:hidden;width:17.5%;height:45%;animation:_Elements_in_mkiqr_1 1s ease-out forwards,_Elements_in_transform_mkiqr_1 1s ease-out;opacity:0;border-radius:4px;transition:transform .25s,box-shadow .25s;cursor:pointer}._Save_Load_content_element_mkiqr_115:hover{transform:scale(1.05) translate(-.2em,-.2em)}._Save_Load_content_element_top_mkiqr_131{font-family:\601d\6e90\5b8b\4f53,serif;width:100%;height:12%;display:flex}._Save_Load_content_element_top_index_mkiqr_138{color:#fff;text-align:center;font-size:155%;height:100%;width:20%;background-color:#b28fce}._Load_content_elememt_top_index_mkiqr_147{background-color:#51a8dd}._Save_Load_content_element_top_date_mkiqr_151{padding:.1em 0 0 .5em;background-color:#77428d;color:#fff;font-size:145%;height:100%;width:80%}._Load_content_element_top_date_mkiqr_160{background-color:#005caf}._Save_Load_content_text_mkiqr_164{font-family:WebgalUI,sans-serif;letter-spacing:.05em;color:#373c38;background:linear-gradient(-45deg,rgba(255,255,255,.75) 0%,rgb(255,255,255) 100%);font-size:120%;height:40%;width:100%;display:flex;flex-flow:column;justify-content:flex-start;align-items:flex-start}._Save_Load_content_text_padding_mkiqr_178{padding:.2em .75em}._Save_Load_content_speaker_mkiqr_182{box-sizing:border-box;font-weight:700;color:#77428d;padding:.35em .8em .25em;width:100%;border-bottom:1px solid rgba(0,0,0,.1)}._Load_content_speaker_mkiqr_191{color:#005caf}._Load_content_text_mkiqr_195{background-color:#005cafbf}._Save_Load_content_miniRen_mkiqr_199{width:100%;height:48%;position:relative}._Save_Load_content_miniRen_bg_mkiqr_205{background-size:cover;height:100%;width:100%;background-position:center}._Save_Load_content_miniRen_figure_mkiqr_212{height:100%;max-height:100%;max-width:100%;position:absolute;bottom:0}._Save_Load_content_miniRen_figLeft_mkiqr_220{bottom:0;left:0}._Save_Load_content_miniRen_figRight_mkiqr_225{bottom:0;right:0}@keyframes _Elements_in_mkiqr_1{0%{opacity:0}to{opacity:1}}@keyframes _Elements_in_transform_mkiqr_1{0%{transform:scale(1.05) translate(-25px,-20px) rotateY(15deg) rotateX(-15deg)}to{transform:scale(1) translate(0)}}._Options_main_lg9cv_2{position:absolute;cursor:default;height:90%;width:100%;background:rgba(255,255,255,.65)}._Options_top_lg9cv_10{height:15%;width:100%;display:flex;align-items:flex-start}._Options_title_lg9cv_17{font-family:\601d\6e90\5b8b\4f53,serif;letter-spacing:.1em;font-size:225%;margin:.5em 0;padding:.2em 2em .2em 1.1em;box-sizing:border-box}._Option_title_text_lg9cv_26{font-size:165%;font-weight:700;color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;animation:_Elements_in_lg9cv_1 ease-out .7s forwards}._Option_title_text_shadow_lg9cv_35{position:absolute;color:#0000;-webkit-text-stroke:3px rgb(0,0,0);z-index:-1}._Option_title_text_ts_lg9cv_42{position:absolute;color:#0000;text-shadow:.04em .04em rgba(81,110,65,.9),.05em .05em rgba(81,110,65,.9),.06em .06em rgba(81,110,65,.9),.07em .07em rgba(81,110,65,.9);z-index:-1}._Options_main_content_lg9cv_49{height:85%;display:flex}._Options_main_content_half_lg9cv_54{width:50%;display:flex;flex-flow:row;align-items:flex-start;align-content:flex-start;flex-wrap:wrap;padding:1em}@keyframes _Elements_in_lg9cv_1{0%{opacity:0;transform:scale(1.03) translate(-25px,-20px)}to{opacity:1;transform:scale(1) translate(0)}}._NormalButton_1y8da_1{font-size:175%;box-sizing:border-box;padding:.2em 1em;background-color:#3232320d;margin:0 .4em 0 0;color:#a0aaa0;cursor:pointer}._NormalButton_1y8da_1:hover{border-bottom:2px solid rgba(81,110,65,.9);color:#516e41e6;font-weight:700}._NormalButtonChecked_1y8da_17{background-color:#516e4126;border-bottom:2px solid rgba(81,110,65,.9);color:#516e41e6;font-weight:700}._NormalOption_mh1vg_1{margin:.2em 1em;padding:.2em;display:flex;flex-flow:column;align-items:flex-start;animation:_Elements_in_mh1vg_1 ease-out .7s forwards}._NormalOption_title_mh1vg_10{color:transparent;background:linear-gradient(to left,#227D51,rgb(81,110,65));-webkit-background-clip:text;font-size:200%;padding:.15em .5em .15em .1em;font-weight:700}._NormalOption_title_bef_mh1vg_19{font-weight:700;font-size:200%;content:attr(data-text);position:absolute;-webkit-text-stroke:3px rgb(0,0,0);z-index:-1;padding:.15em .5em .15em .1em}._NormalOption_title_sd_mh1vg_29{font-weight:700;color:#0000;font-size:200%;position:absolute;z-index:-1;padding:.15em .5em .15em .1em;text-shadow:.04em .04em rgba(81,110,65,.9),.05em .05em rgba(81,110,65,.9),.06em .06em rgba(81,110,65,.9),.07em .07em rgba(81,110,65,.9),.08em .08em rgba(81,110,65,.9),.09em .09em rgba(81,110,65,.9),.1em .1em rgba(81,110,65,.9)}._NormalOption_buttonList_mh1vg_39{padding:1em 0;display:flex}@keyframes _Elements_in_mh1vg_1{0%{opacity:0;transform:scale(1.03) translate(-25px,-20px)}to{opacity:1;transform:scale(1) translate(0)}}input[type=range]{-webkit-appearance:none;width:500px;height:50px;background:transparent;font-size:100%}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}input[type=range]:focus{outline:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;height:375%;width:7.2%;border-radius:5em;background:#ffffff;cursor:pointer;margin-top:-14px;box-shadow:0 0 5px #00000080}input[type=range]::-webkit-slider-runnable-track{width:100%;height:20%;cursor:pointer;box-shadow:1px 1px 7px #0000004d;background:rgba(81,110,65,.9);border-radius:2em}input[type=range]:focus::-webkit-slider-runnable-track{background:rgba(81,110,65,.9)}input[type=range]::-moz-range-thumb{height:36px;width:7.2%;border-radius:5em;background:#ffffff;cursor:pointer;box-shadow:0 0 5px #00000080}input[type=range]::-moz-range-track{width:100%;height:20%;cursor:pointer;box-shadow:1px 1px 7px #0000004d;background:rgba(81,110,65,.9);border-radius:2em}._textPreviewMain_1dkgu_2{position:relative;z-index:1;padding:1em 1.5em;background:rgba(0,0,0,.35);color:#fff;min-height:170px}._singleText_1dkgu_11{font-family:\601d\6e90\5b8b\4f53,serif;animation:_TextDelayShow_1dkgu_1 1s forwards;opacity:0;transition:font-size 1s}@keyframes _TextDelayShow_1dkgu_1{0%{opacity:0}to{opacity:1}}._FigureContainer_main_3vlge_1{z-index:4;width:100%;height:100%;position:absolute;top:0;display:flex}._figurePic_3vlge_10{max-height:100%;max-width:100%;width:auto;height:auto;object-fit:cover;animation:_centerIn_3vlge_1 .5s ease-in-out forwards}._figContainer_3vlge_19{width:98%;left:1%;right:1%;position:absolute;display:flex;top:5px;bottom:0;z-index:4;animation:_fig_default_animation_3vlge_1 .3s}._figContainerLeft_3vlge_31{justify-content:left}._figContainerCenter_3vlge_35{justify-content:center}._figContainerRight_3vlge_39{justify-content:right}@keyframes _fig_default_animation_3vlge_1{0%{opacity:0}30%{opacity:0}to{opacity:1}}._Backlog_main_7ipkr_2{font-family:\601d\6e90\5b8b\4f53,serif;position:absolute;top:0;width:100%;height:100%;z-index:10;background:rgba(0,0,0,.7);padding:2em 0;animation:_backlog_soft_in_7ipkr_1 .7s ease-out forwards;box-sizing:border-box}._backlog_top_7ipkr_15{padding:0 0 0 1em;display:flex;height:10%}._backlog_top_icon_7ipkr_21{padding:10px 10px 0;border-radius:50px;transform:translateY(-11px)}._backlog_top_icon_7ipkr_21:hover{background:rgba(255,255,255,.25);animation:_backlog_icon_softin_7ipkr_1 .25s ease-out forwards}@keyframes _backlog_icon_softin_7ipkr_1{0%{background:rgba(255,255,255,0)}to{background:rgba(255,255,255,.25)}}._backlog_title_7ipkr_40{height:100%;line-height:100%;font-size:360%;font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 35%,rgb(165,212,228) 100%);-webkit-background-clip:text}._backlog_content_7ipkr_50{position:absolute;height:80%;padding:1em 5.6em;overflow:auto;display:flex;flex-flow:column-reverse;font-weight:400;width:100%;box-sizing:border-box}._backlog_item_7ipkr_62{display:flex;color:#fff;font-size:165%;opacity:0;animation:_backlog_item_in_7ipkr_1 .5s ease-out forwards;margin:1.25em 0 0;width:100%}._backlog_func_area_7ipkr_72{display:flex;flex-flow:column;align-items:flex-end;width:17.5%}._backlog_item_content_name_7ipkr_79{margin:0;overflow-wrap:break-word;box-sizing:border-box;background:rgba(255,255,255,.175);border-radius:7px;padding:.2em .5em .25em;font-size:115%;width:100%;text-align:center}._backlog_item_content_7ipkr_79{font-size:115%;width:82.5%;box-sizing:border-box;padding:.2em 0 0 1em}._backlog_item_button_list_7ipkr_98{display:flex;flex-flow:row;align-items:flex-start;margin:.35em 0 0}._backlog_item_button_element_7ipkr_105{cursor:pointer;padding:0 15px;margin:0 0 0 .5em;background:rgba(255,255,255,.075);border-radius:7px;display:flex}._backlog_item_button_element_7ipkr_105:hover{background:rgba(255,255,255,.25)}._backlog_item_content_text_7ipkr_118{box-sizing:border-box}@keyframes _backlog_soft_in_7ipkr_1{0%{opacity:0}to{opacity:1}}@keyframes _backlog_item_in_7ipkr_1{0%{opacity:0;transform:scale(1.05) translate(-15px,10px) rotateX(-5deg) rotateY(-5deg);background-color:#fff3}to{opacity:1;transform:scale(1) translate(0)}}._extra_1qex5_2{width:100%;height:100%;position:absolute;top:0;left:0;z-index:14;background-image:linear-gradient(135deg,#93a5cf 0%,#e4efe9 100%);padding:2em;box-sizing:border-box}._extra_top_1qex5_14{padding:0;display:flex;height:10%}._extra_top_icon_1qex5_20{padding:10px 10px 0;border-radius:50px;transform:translateY(-13px)}._extra_top_icon_1qex5_20:hover{background:rgba(255,255,255,.25);animation:_extra_icon_softin_1qex5_1 .25s ease-out forwards}@keyframes _extra_icon_softin_1qex5_1{0%{background:rgba(255,255,255,0)}to{background:rgba(0,0,0,.25)}}._extra_title_1qex5_39{font-family:\601d\6e90\5b8b\4f53,serif;height:100%;line-height:100%;font-size:325%;font-weight:700;color:transparent;background:linear-gradient(150deg,rgb(255,255,255) 0%,rgb(255,255,255) 75%,#51A8DD 100%);-webkit-background-clip:text}._mainContainer_1qex5_50{box-sizing:border-box;padding:0 2em;display:flex;height:92%}._bgmContainer_1qex5_57{overflow:auto;width:30%;margin:1.25em 0 2.65em;padding:0 1em 0 0;box-sizing:border-box}._bgmElement_1qex5_65{font-family:\601d\6e90\5b8b\4f53,serif;padding:.5em 1em;overflow:hidden;background-color:#0000001a;border-radius:5px;color:#fff;font-size:150%;margin:0 0 .5em;transition:background-color 1s,color 1s;opacity:0;animation:_bgmElement_In_1qex5_1 .5s forwards ease-out;cursor:pointer}@keyframes _bgmElement_In_1qex5_1{0%{opacity:0;transform:translate(-50px)}to{opacity:1}}._bgmElement_1qex5_65:hover{background-color:#ffffffa6;color:#666;transition:background-color .5s,color .5s}._bgmElement_active_1qex5_95{background-color:#ffffffd9!important;color:#666}._cgMain_1qex5_100{width:100%;height:100%}._cgContainer_1qex5_105{width:100%;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:flex-start;height:90%;box-sizing:border-box;padding:0 0 0 2em}._cgElement_1qex5_117{width:30%;height:30%;background-color:#ffffffbf;box-shadow:0 0 15px 5px #00000059;box-sizing:border-box;padding:.75em;opacity:0;margin:1em;animation-delay:.1s;z-index:1;position:relative;cursor:pointer}._cgShowDiv_1qex5_132{height:10%;width:100%;display:flex;flex-flow:row;justify-content:center;align-items:flex-end}._cgNav_1qex5_141{font-size:150%;background-color:#0003;color:#fff;padding:.25em 1em;margin:0 .5em;width:20px;text-align:center;transition:background-color 1s,color 1s;cursor:pointer}._cgNav_active_1qex5_153{background-color:#ffffffd9!important;color:#666}._cgNav_1qex5_141:hover{background-color:#ffffffa6;color:#666;transition:background-color .5s,color .5s}._showFullContainer_1qex5_164{z-index:13;position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.1);display:flex;justify-content:center;align-items:center}._showFullCgMain_1qex5_177{cursor:pointer;width:80%;height:80%;box-sizing:border-box;padding:2em;background:rgba(255,255,255,.95);animation:_fullCgIn_1qex5_1 .5s ease-out forwards;opacity:0}@keyframes _fullCgIn_1qex5_1{0%{opacity:0;transform:scale(1.05) translate(-25px,-50px) rotateX(-10deg) rotateY(10deg)}to{opacity:1;transform:scale(1) translateZ(0)}}@keyframes cg_softIn_-5{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-5deg)}}@keyframes cg_softIn_-4{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-4deg)}}@keyframes cg_softIn_-3{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-3deg)}}@keyframes cg_softIn_-2{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-2deg)}}@keyframes cg_softIn_-1{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(-1deg)}}@keyframes cg_softIn_0{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(0)}}@keyframes cg_softIn_1{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(1deg)}}@keyframes cg_softIn_2{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(2deg)}}@keyframes cg_softIn_3{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(3deg)}}@keyframes cg_softIn_4{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(4deg)}}@keyframes cg_softIn_5{0%{opacity:0;transform:scale(1.15) translate(-50px,-125px) rotateX(-25deg) rotateY(25deg)}to{opacity:1;transform:scale(1) translateZ(0)rotate(5deg)}}._tag_yghix_2{position:absolute;top:2.5%;left:2.5%;color:#fff;z-index:10;padding:10px 10px 5px;border-radius:100px;transition:background-color .33s}._tag_yghix_2:hover{background-color:#ffffff80}._container_yghix_17{color:#fff;position:absolute;top:0;width:100%;height:100%;display:flex;flex-flow:column;background-color:#000000b3;z-index:9;padding:7em 5em 5em 10em;opacity:0;animation:_showContainer_yghix_1 1s forwards;transition:background-color .33s}._singleButton_yghix_33{padding:.5em 0}._button_text_yghix_37{font-family:\601d\6e90\5b8b\4f53,serif;font-size:250%;letter-spacing:.07em;transition:text-shadow .33s}._button_text_yghix_37:hover{text-shadow:0 0 15px rgb(255,255,255)}@keyframes _showContainer_yghix_1{0%{opacity:0}to{opacity:1}}@charset "UTF-8";@keyframes centerIn{0%{opacity:0;transform:scale(1)}to{opacity:1;transform:scale(1)}}@keyframes upIn{0%{opacity:0;transform:scale(1) translateY(3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes leftIn{0%{opacity:0;transform:scale(1) translate(-3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes rightIn{0%{opacity:0;transform:scale(1) translate(3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes bg_down{0%{opacity:0;transform:scale(1.1) translateY(-3%)}to{opacity:1;transform:scale(1) translate(0)}}@keyframes bg_softIn{0%{opacity:0}to{opacity:1}}@keyframes hideBG{0%{opacity:1}to{opacity:0}}@keyframes shake{0%{transform:translate(0)}25%{transform:translate(-2%)}75%{transform:translate(2%)}to{transform:translate(0)}}@keyframes moveBaF{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}@keyframes showSoftly{0%{opacity:0}to{opacity:1}}@keyframes elementFadeIn{0%{transform:translate(-15px,-20px) scale(1.03);opacity:0}to{opacity:1}}@keyframes controlButtonHover{0%{background-color:#0000;box-shadow:none}to{background-color:#ffffff40;box-shadow:5px 5px 15px #000000a6}}@keyframes controlButtonHoverBack{}@keyframes TitleButtonOnChoose{0%{transform:scale(1)}to{transform:scale(1.1)}}@keyframes TitleButtonNoneChoose{0%{transform:scale(1.1)}}@keyframes TitleModelHover{0%{background-color:#00000059}to{background-color:#000000a6}}@keyframes TitleModelNoneHover{0%{background-color:#000000a6}to{background-color:#00000059}}@keyframes bg_focusLeft{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_focusRight{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_LtoR{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_RtoL{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_LtoC{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}@keyframes bg_RtoC{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}@keyframes bg_focus{0%{transform:scale(1) translate(0);filter:blur(0)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_LtoF{0%{transform:scale(1.15) translate(5%);filter:blur(1px)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_RtoF{0%{transform:scale(1.15) translate(-5%);filter:blur(1px)}to{transform:scale(1.15);filter:blur(1px)}}@keyframes bg_FtoL{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1.15) translate(5%);filter:blur(1px)}}@keyframes bg_FtoR{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1.15) translate(-5%);filter:blur(1px)}}@keyframes bg_FtoC{0%{transform:scale(1.15);filter:blur(1px)}to{transform:scale(1) translate(0);filter:blur(0)}}