Files
lovely/docs/js/chunk-vendors.4680bb81.js
2022-04-02 13:58:29 -05:00

217 lines
546 KiB
JavaScript

(self["webpackChunklovely"]=self["webpackChunklovely"]||[]).push([[998],{9662:function(t,e,r){var n=r(7854),i=r(614),o=r(6330),s=n.TypeError;t.exports=function(t){if(i(t))return t;throw s(o(t)+" is not a function")}},6077:function(t,e,r){var n=r(7854),i=r(614),o=n.String,s=n.TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw s("Can't set "+o(t)+" as a prototype")}},5787:function(t,e,r){var n=r(7854),i=r(7976),o=n.TypeError;t.exports=function(t,e){if(i(e,t))return t;throw o("Incorrect invocation")}},9670:function(t,e,r){var n=r(7854),i=r(111),o=n.String,s=n.TypeError;t.exports=function(t){if(i(t))return t;throw s(o(t)+" is not an object")}},4019:function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},260:function(t,e,r){"use strict";var n,i,o,s=r(4019),a=r(9781),u=r(7854),h=r(614),l=r(111),c=r(2597),f=r(648),d=r(6330),p=r(8880),_=r(1320),v=r(3070).f,m=r(7976),y=r(9518),g=r(7674),E=r(5112),T=r(9711),b=u.Int8Array,x=b&&b.prototype,R=u.Uint8ClampedArray,A=R&&R.prototype,I=b&&y(b),S=x&&y(x),O=Object.prototype,P=u.TypeError,N=E("toStringTag"),M=T("TYPED_ARRAY_TAG"),w=T("TYPED_ARRAY_CONSTRUCTOR"),D=s&&!!g&&"Opera"!==f(u.opera),C=!1,L={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},U=function(t){if(!l(t))return!1;var e=f(t);return"DataView"===e||c(L,e)||c(F,e)},G=function(t){if(!l(t))return!1;var e=f(t);return c(L,e)||c(F,e)},B=function(t){if(G(t))return t;throw P("Target is not a typed array")},X=function(t){if(h(t)&&(!g||m(I,t)))return t;throw P(d(t)+" is not a typed array constructor")},k=function(t,e,r,n){if(a){if(r)for(var i in L){var o=u[i];if(o&&c(o.prototype,t))try{delete o.prototype[t]}catch(s){try{o.prototype[t]=e}catch(h){}}}S[t]&&!r||_(S,t,r?e:D&&x[t]||e,n)}},H=function(t,e,r){var n,i;if(a){if(g){if(r)for(n in L)if(i=u[n],i&&c(i,t))try{delete i[t]}catch(o){}if(I[t]&&!r)return;try{return _(I,t,r?e:D&&I[t]||e)}catch(o){}}for(n in L)i=u[n],!i||i[t]&&!r||_(i,t,e)}};for(n in L)i=u[n],o=i&&i.prototype,o?p(o,w,i):D=!1;for(n in F)i=u[n],o=i&&i.prototype,o&&p(o,w,i);if((!D||!h(I)||I===Function.prototype)&&(I=function(){throw P("Incorrect invocation")},D))for(n in L)u[n]&&g(u[n],I);if((!D||!S||S===O)&&(S=I.prototype,D))for(n in L)u[n]&&g(u[n].prototype,S);if(D&&y(A)!==S&&g(A,S),a&&!c(S,N))for(n in C=!0,v(S,N,{get:function(){return l(this)?this[M]:void 0}}),L)u[n]&&p(u[n],M,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_CONSTRUCTOR:w,TYPED_ARRAY_TAG:C&&M,aTypedArray:B,aTypedArrayConstructor:X,exportTypedArrayMethod:k,exportTypedArrayStaticMethod:H,isView:U,isTypedArray:G,TypedArray:I,TypedArrayPrototype:S}},1318:function(t,e,r){var n=r(5656),i=r(1400),o=r(6244),s=function(t){return function(e,r,s){var a,u=n(e),h=o(u),l=i(s,h);if(t&&r!=r){while(h>l)if(a=u[l++],a!=a)return!0}else for(;h>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},4326:function(t,e,r){var n=r(1702),i=n({}.toString),o=n("".slice);t.exports=function(t){return o(i(t),8,-1)}},648:function(t,e,r){var n=r(7854),i=r(1694),o=r(614),s=r(4326),a=r(5112),u=a("toStringTag"),h=n.Object,l="Arguments"==s(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(r){}};t.exports=i?s:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=c(e=h(t),u))?r:l?s(e):"Object"==(n=s(e))&&o(e.callee)?"Arguments":n}},7741:function(t,e,r){var n=r(1702),i=n("".replace),o=function(t){return String(Error(t).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,a=s.test(o);t.exports=function(t,e){if(a&&"string"==typeof t)while(e--)t=i(t,s,"");return t}},9920:function(t,e,r){var n=r(2597),i=r(3887),o=r(1236),s=r(3070);t.exports=function(t,e,r){for(var a=i(e),u=s.f,h=o.f,l=0;l<a.length;l++){var c=a[l];n(t,c)||r&&n(r,c)||u(t,c,h(e,c))}}},8544:function(t,e,r){var n=r(7293);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},8880:function(t,e,r){var n=r(9781),i=r(3070),o=r(9114);t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},9781:function(t,e,r){var n=r(7293);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,r){var n=r(7854),i=r(111),o=n.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},3678:function(t){t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},8113:function(t,e,r){var n=r(5005);t.exports=n("navigator","userAgent")||""},7392:function(t,e,r){var n,i,o=r(7854),s=r(8113),a=o.process,u=o.Deno,h=a&&a.versions||u&&u.version,l=h&&h.v8;l&&(n=l.split("."),i=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(i=+n[1]))),t.exports=i},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(t,e,r){var n=r(7293),i=r(9114);t.exports=!n((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},2109:function(t,e,r){var n=r(7854),i=r(1236).f,o=r(8880),s=r(1320),a=r(3505),u=r(9920),h=r(4705);t.exports=function(t,e){var r,l,c,f,d,p,_=t.target,v=t.global,m=t.stat;if(l=v?n:m?n[_]||a(_,{}):(n[_]||{}).prototype,l)for(c in e){if(d=e[c],t.noTargetGet?(p=i(l,c),f=p&&p.value):f=l[c],r=h(v?c:_+(m?".":"#")+c,t.forced),!r&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(t.sham||f&&f.sham)&&o(d,"sham",!0),s(l,c,d,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},2104:function(t,e,r){var n=r(4374),i=Function.prototype,o=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},4374:function(t,e,r){var n=r(7293);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,r){var n=r(4374),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(t,e,r){var n=r(9781),i=r(2597),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=i(o,"name"),u=a&&"something"===function(){}.name,h=a&&(!n||n&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:h}},1702:function(t,e,r){var n=r(4374),i=Function.prototype,o=i.bind,s=i.call,a=n&&o.bind(s,s);t.exports=n?function(t){return t&&a(t)}:function(t){return t&&function(){return s.apply(t,arguments)}}},5005:function(t,e,r){var n=r(7854),i=r(614),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t]):n[t]&&n[t][e]}},8173:function(t,e,r){var n=r(9662);t.exports=function(t,e){var r=t[e];return null==r?void 0:n(r)}},7854:function(t,e,r){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},2597:function(t,e,r){var n=r(1702),i=r(7908),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},3501:function(t){t.exports={}},4664:function(t,e,r){var n=r(9781),i=r(7293),o=r(317);t.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,r){var n=r(7854),i=r(1702),o=r(7293),s=r(4326),a=n.Object,u=i("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==s(t)?u(t,""):a(t)}:a},9587:function(t,e,r){var n=r(614),i=r(111),o=r(7674);t.exports=function(t,e,r){var s,a;return o&&n(s=e.constructor)&&s!==r&&i(a=s.prototype)&&a!==r.prototype&&o(t,a),t}},2788:function(t,e,r){var n=r(1702),i=r(614),o=r(5465),s=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},8340:function(t,e,r){var n=r(111),i=r(8880);t.exports=function(t,e){n(e)&&"cause"in e&&i(t,"cause",e.cause)}},9909:function(t,e,r){var n,i,o,s=r(8536),a=r(7854),u=r(1702),h=r(111),l=r(8880),c=r(2597),f=r(5465),d=r(6200),p=r(3501),_="Object already initialized",v=a.TypeError,m=a.WeakMap,y=function(t){return o(t)?i(t):n(t,{})},g=function(t){return function(e){var r;if(!h(e)||(r=i(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return r}};if(s||f.state){var E=f.state||(f.state=new m),T=u(E.get),b=u(E.has),x=u(E.set);n=function(t,e){if(b(E,t))throw new v(_);return e.facade=t,x(E,t,e),e},i=function(t){return T(E,t)||{}},o=function(t){return b(E,t)}}else{var R=d("state");p[R]=!0,n=function(t,e){if(c(t,R))throw new v(_);return e.facade=t,l(t,R,e),e},i=function(t){return c(t,R)?t[R]:{}},o=function(t){return c(t,R)}}t.exports={set:n,get:i,has:o,enforce:y,getterFor:g}},614:function(t){t.exports=function(t){return"function"==typeof t}},4705:function(t,e,r){var n=r(7293),i=r(614),o=/#|\.prototype\./,s=function(t,e){var r=u[a(t)];return r==l||r!=h&&(i(e)?n(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=s.data={},h=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},111:function(t,e,r){var n=r(614);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},1913:function(t){t.exports=!1},2190:function(t,e,r){var n=r(7854),i=r(5005),o=r(614),s=r(7976),a=r(3307),u=n.Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return o(e)&&s(e.prototype,u(t))}},6244:function(t,e,r){var n=r(7466);t.exports=function(t){return n(t.length)}},133:function(t,e,r){var n=r(7392),i=r(7293);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},8536:function(t,e,r){var n=r(7854),i=r(614),o=r(2788),s=n.WeakMap;t.exports=i(s)&&/native code/.test(o(s))},6277:function(t,e,r){var n=r(1340);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},3070:function(t,e,r){var n=r(7854),i=r(9781),o=r(4664),s=r(3353),a=r(9670),u=r(4948),h=n.TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";e.f=i?s?function(t,e,r){if(a(t),e=u(e),a(r),"function"===typeof t&&"prototype"===e&&"value"in r&&p in r&&!r[p]){var n=c(t,e);n&&n[p]&&(t[e]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:f in r?r[f]:n[f],writable:!1})}return l(t,e,r)}:l:function(t,e,r){if(a(t),e=u(e),a(r),o)try{return l(t,e,r)}catch(n){}if("get"in r||"set"in r)throw h("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},1236:function(t,e,r){var n=r(9781),i=r(6916),o=r(5296),s=r(9114),a=r(5656),u=r(4948),h=r(2597),l=r(4664),c=Object.getOwnPropertyDescriptor;e.f=n?c:function(t,e){if(t=a(t),e=u(e),l)try{return c(t,e)}catch(r){}if(h(t,e))return s(!i(o.f,t,e),t[e])}},8006:function(t,e,r){var n=r(6324),i=r(748),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,r){var n=r(7854),i=r(2597),o=r(614),s=r(7908),a=r(6200),u=r(8544),h=a("IE_PROTO"),l=n.Object,c=l.prototype;t.exports=u?l.getPrototypeOf:function(t){var e=s(t);if(i(e,h))return e[h];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof l?c:null}},7976:function(t,e,r){var n=r(1702);t.exports=n({}.isPrototypeOf)},6324:function(t,e,r){var n=r(1702),i=r(2597),o=r(5656),s=r(1318).indexOf,a=r(3501),u=n([].push);t.exports=function(t,e){var r,n=o(t),h=0,l=[];for(r in n)!i(a,r)&&i(n,r)&&u(l,r);while(e.length>h)i(n,r=e[h++])&&(~s(l,r)||u(l,r));return l}},5296:function(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);e.f=i?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},7674:function(t,e,r){var n=r(1702),i=r(9670),o=r(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(r,[]),e=r instanceof Array}catch(s){}return function(r,n){return i(r),o(n),e?t(r,n):r.__proto__=n,r}}():void 0)},2140:function(t,e,r){var n=r(7854),i=r(6916),o=r(614),s=r(111),a=n.TypeError;t.exports=function(t,e){var r,n;if("string"===e&&o(r=t.toString)&&!s(n=i(r,t)))return n;if(o(r=t.valueOf)&&!s(n=i(r,t)))return n;if("string"!==e&&o(r=t.toString)&&!s(n=i(r,t)))return n;throw a("Can't convert object to primitive value")}},3887:function(t,e,r){var n=r(5005),i=r(1702),o=r(8006),s=r(5181),a=r(9670),u=i([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(a(t)),r=s.f;return r?u(e,r(t)):e}},1320:function(t,e,r){var n=r(7854),i=r(614),o=r(2597),s=r(8880),a=r(3505),u=r(2788),h=r(9909),l=r(6530).CONFIGURABLE,c=h.get,f=h.enforce,d=String(String).split("String");(t.exports=function(t,e,r,u){var h,c=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,_=!!u&&!!u.noTargetGet,v=u&&void 0!==u.name?u.name:e;i(r)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(r,"name")||l&&r.name!==v)&&s(r,"name",v),h=f(r),h.source||(h.source=d.join("string"==typeof v?v:""))),t!==n?(c?!_&&t[e]&&(p=!0):delete t[e],p?t[e]=r:s(t,e,r)):p?t[e]=r:a(e,r)})(Function.prototype,"toString",(function(){return i(this)&&c(this).source||u(this)}))},4488:function(t,e,r){var n=r(7854),i=n.TypeError;t.exports=function(t){if(void 0==t)throw i("Can't call method on "+t);return t}},3505:function(t,e,r){var n=r(7854),i=Object.defineProperty;t.exports=function(t,e){try{i(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},6200:function(t,e,r){var n=r(2309),i=r(9711),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5465:function(t,e,r){var n=r(7854),i=r(3505),o="__core-js_shared__",s=n[o]||i(o,{});t.exports=s},2309:function(t,e,r){var n=r(1913),i=r(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},1400:function(t,e,r){var n=r(9303),i=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):o(r,e)}},5656:function(t,e,r){var n=r(8361),i=r(4488);t.exports=function(t){return n(i(t))}},9303:function(t){var e=Math.ceil,r=Math.floor;t.exports=function(t){var n=+t;return n!==n||0===n?0:(n>0?r:e)(n)}},7466:function(t,e,r){var n=r(9303),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},7908:function(t,e,r){var n=r(7854),i=r(4488),o=n.Object;t.exports=function(t){return o(i(t))}},4590:function(t,e,r){var n=r(7854),i=r(3002),o=n.RangeError;t.exports=function(t,e){var r=i(t);if(r%e)throw o("Wrong offset");return r}},3002:function(t,e,r){var n=r(7854),i=r(9303),o=n.RangeError;t.exports=function(t){var e=i(t);if(e<0)throw o("The argument can't be less than 0");return e}},7593:function(t,e,r){var n=r(7854),i=r(6916),o=r(111),s=r(2190),a=r(8173),u=r(2140),h=r(5112),l=n.TypeError,c=h("toPrimitive");t.exports=function(t,e){if(!o(t)||s(t))return t;var r,n=a(t,c);if(n){if(void 0===e&&(e="default"),r=i(n,t,e),!o(r)||s(r))return r;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},4948:function(t,e,r){var n=r(7593),i=r(2190);t.exports=function(t){var e=n(t,"string");return i(e)?e:e+""}},1694:function(t,e,r){var n=r(5112),i=n("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},1340:function(t,e,r){var n=r(7854),i=r(648),o=n.String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},6330:function(t,e,r){var n=r(7854),i=n.String;t.exports=function(t){try{return i(t)}catch(e){return"Object"}}},9711:function(t,e,r){var n=r(1702),i=0,o=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},3307:function(t,e,r){var n=r(133);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,r){var n=r(9781),i=r(7293);t.exports=n&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5112:function(t,e,r){var n=r(7854),i=r(2309),o=r(2597),s=r(9711),a=r(133),u=r(3307),h=i("wks"),l=n.Symbol,c=l&&l["for"],f=u?l:l&&l.withoutSetter||s;t.exports=function(t){if(!o(h,t)||!a&&"string"!=typeof h[t]){var e="Symbol."+t;a&&o(l,t)?h[t]=l[t]:h[t]=u&&c?c(e):f(e)}return h[t]}},9191:function(t,e,r){"use strict";var n=r(5005),i=r(2597),o=r(8880),s=r(7976),a=r(7674),u=r(9920),h=r(9587),l=r(6277),c=r(8340),f=r(7741),d=r(2914),p=r(1913);t.exports=function(t,e,r,_){var v=_?2:1,m=t.split("."),y=m[m.length-1],g=n.apply(null,m);if(g){var E=g.prototype;if(!p&&i(E,"cause")&&delete E.cause,!r)return g;var T=n("Error"),b=e((function(t,e){var r=l(_?e:t,void 0),n=_?new g(t):new g;return void 0!==r&&o(n,"message",r),d&&o(n,"stack",f(n.stack,2)),this&&s(E,this)&&h(n,this,b),arguments.length>v&&c(n,arguments[v]),n}));if(b.prototype=E,"Error"!==y&&(a?a(b,T):u(b,T,{name:!0})),u(b,g),!p)try{E.name!==y&&o(E,"name",y),E.constructor=b}catch(x){}return b}}},1703:function(t,e,r){var n=r(2109),i=r(7854),o=r(2104),s=r(9191),a="WebAssembly",u=i[a],h=7!==Error("e",{cause:7}).cause,l=function(t,e){var r={};r[t]=s(t,e,h),n({global:!0,forced:h},r)},c=function(t,e){if(u&&u[t]){var r={};r[t]=s(a+"."+t,e,h),n({target:a,stat:!0,forced:h},r)}};l("Error",(function(t){return function(e){return o(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),l("URIError",(function(t){return function(e){return o(t,this,arguments)}})),c("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),c("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),c("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},8675:function(t,e,r){"use strict";var n=r(260),i=r(6244),o=r(9303),s=n.aTypedArray,a=n.exportTypedArrayMethod;a("at",(function(t){var e=s(this),r=i(e),n=o(t),a=n>=0?n:r+n;return a<0||a>=r?void 0:e[a]}))},3462:function(t,e,r){"use strict";var n=r(7854),i=r(6916),o=r(260),s=r(6244),a=r(4590),u=r(7908),h=r(7293),l=n.RangeError,c=n.Int8Array,f=c&&c.prototype,d=f&&f.set,p=o.aTypedArray,_=o.exportTypedArrayMethod,v=!h((function(){var t=new Uint8ClampedArray(2);return i(d,t,{length:1,0:3},1),3!==t[1]})),m=v&&o.NATIVE_ARRAY_BUFFER_VIEWS&&h((function(){var t=new c(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));_("set",(function(t){p(this);var e=a(arguments.length>1?arguments[1]:void 0,1),r=u(t);if(v)return i(d,this,r,e);var n=this.length,o=s(r),h=0;if(o+e>n)throw l("Wrong length");while(h<o)this[e+h]=r[h++]}),!v||m)},2801:function(t,e,r){"use strict";var n=r(2109),i=r(5005),o=r(9114),s=r(3070).f,a=r(2597),u=r(5787),h=r(9587),l=r(6277),c=r(3678),f=r(7741),d=r(1913),p="DOMException",_=i("Error"),v=i(p),m=function(){u(this,y);var t=arguments.length,e=l(t<1?void 0:arguments[0]),r=l(t<2?void 0:arguments[1],"Error"),n=new v(e,r),i=_(e);return i.name=p,s(n,"stack",o(1,f(i.stack,1))),h(n,this,m),n},y=m.prototype=v.prototype,g="stack"in _(p),E="stack"in new v(1,2),T=g&&!E;n({global:!0,forced:d||T},{DOMException:T?m:v});var b=i(p),x=b.prototype;if(x.constructor!==b)for(var R in d||s(x,"constructor",o(1,b)),c)if(a(c,R)){var A=c[R],I=A.s;a(b,I)||s(b,I,o(6,A.c))}},942:function(t,e,r){"use strict";
/*!
* @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 n,i,o,s,a,u,h,l,c,f,d,p,_,v,m,y,g,E,T;r.d(e,{A7:function(){return g},G5:function(){return E},I2:function(){return u},N3:function(){return i},Nt:function(){return d},T$:function(){return s},UN:function(){return m},V0:function(){return o},Vi:function(){return n},WB:function(){return p},aH:function(){return f},cB:function(){return y},iw:function(){return _},lg:function(){return a},mr:function(){return T},oT:function(){return c},sp:function(){return h},vK:function(){return l},yl:function(){return v}}),function(t){t[t["WEBGL_LEGACY"]=0]="WEBGL_LEGACY",t[t["WEBGL"]=1]="WEBGL",t[t["WEBGL2"]=2]="WEBGL2"}(n||(n={})),function(t){t[t["UNKNOWN"]=0]="UNKNOWN",t[t["WEBGL"]=1]="WEBGL",t[t["CANVAS"]=2]="CANVAS"}(i||(i={})),function(t){t[t["COLOR"]=16384]="COLOR",t[t["DEPTH"]=256]="DEPTH",t[t["STENCIL"]=1024]="STENCIL"}(o||(o={})),function(t){t[t["NORMAL"]=0]="NORMAL",t[t["ADD"]=1]="ADD",t[t["MULTIPLY"]=2]="MULTIPLY",t[t["SCREEN"]=3]="SCREEN",t[t["OVERLAY"]=4]="OVERLAY",t[t["DARKEN"]=5]="DARKEN",t[t["LIGHTEN"]=6]="LIGHTEN",t[t["COLOR_DODGE"]=7]="COLOR_DODGE",t[t["COLOR_BURN"]=8]="COLOR_BURN",t[t["HARD_LIGHT"]=9]="HARD_LIGHT",t[t["SOFT_LIGHT"]=10]="SOFT_LIGHT",t[t["DIFFERENCE"]=11]="DIFFERENCE",t[t["EXCLUSION"]=12]="EXCLUSION",t[t["HUE"]=13]="HUE",t[t["SATURATION"]=14]="SATURATION",t[t["COLOR"]=15]="COLOR",t[t["LUMINOSITY"]=16]="LUMINOSITY",t[t["NORMAL_NPM"]=17]="NORMAL_NPM",t[t["ADD_NPM"]=18]="ADD_NPM",t[t["SCREEN_NPM"]=19]="SCREEN_NPM",t[t["NONE"]=20]="NONE",t[t["SRC_OVER"]=0]="SRC_OVER",t[t["SRC_IN"]=21]="SRC_IN",t[t["SRC_OUT"]=22]="SRC_OUT",t[t["SRC_ATOP"]=23]="SRC_ATOP",t[t["DST_OVER"]=24]="DST_OVER",t[t["DST_IN"]=25]="DST_IN",t[t["DST_OUT"]=26]="DST_OUT",t[t["DST_ATOP"]=27]="DST_ATOP",t[t["ERASE"]=26]="ERASE",t[t["SUBTRACT"]=28]="SUBTRACT",t[t["XOR"]=29]="XOR"}(s||(s={})),function(t){t[t["POINTS"]=0]="POINTS",t[t["LINES"]=1]="LINES",t[t["LINE_LOOP"]=2]="LINE_LOOP",t[t["LINE_STRIP"]=3]="LINE_STRIP",t[t["TRIANGLES"]=4]="TRIANGLES",t[t["TRIANGLE_STRIP"]=5]="TRIANGLE_STRIP",t[t["TRIANGLE_FAN"]=6]="TRIANGLE_FAN"}(a||(a={})),function(t){t[t["RGBA"]=6408]="RGBA",t[t["RGB"]=6407]="RGB",t[t["RG"]=33319]="RG",t[t["RED"]=6403]="RED",t[t["RGBA_INTEGER"]=36249]="RGBA_INTEGER",t[t["RGB_INTEGER"]=36248]="RGB_INTEGER",t[t["RG_INTEGER"]=33320]="RG_INTEGER",t[t["RED_INTEGER"]=36244]="RED_INTEGER",t[t["ALPHA"]=6406]="ALPHA",t[t["LUMINANCE"]=6409]="LUMINANCE",t[t["LUMINANCE_ALPHA"]=6410]="LUMINANCE_ALPHA",t[t["DEPTH_COMPONENT"]=6402]="DEPTH_COMPONENT",t[t["DEPTH_STENCIL"]=34041]="DEPTH_STENCIL"}(u||(u={})),function(t){t[t["TEXTURE_2D"]=3553]="TEXTURE_2D",t[t["TEXTURE_CUBE_MAP"]=34067]="TEXTURE_CUBE_MAP",t[t["TEXTURE_2D_ARRAY"]=35866]="TEXTURE_2D_ARRAY",t[t["TEXTURE_CUBE_MAP_POSITIVE_X"]=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t["TEXTURE_CUBE_MAP_NEGATIVE_X"]=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t["TEXTURE_CUBE_MAP_POSITIVE_Y"]=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t["TEXTURE_CUBE_MAP_NEGATIVE_Y"]=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t["TEXTURE_CUBE_MAP_POSITIVE_Z"]=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t["TEXTURE_CUBE_MAP_NEGATIVE_Z"]=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(h||(h={})),function(t){t[t["UNSIGNED_BYTE"]=5121]="UNSIGNED_BYTE",t[t["UNSIGNED_SHORT"]=5123]="UNSIGNED_SHORT",t[t["UNSIGNED_SHORT_5_6_5"]=33635]="UNSIGNED_SHORT_5_6_5",t[t["UNSIGNED_SHORT_4_4_4_4"]=32819]="UNSIGNED_SHORT_4_4_4_4",t[t["UNSIGNED_SHORT_5_5_5_1"]=32820]="UNSIGNED_SHORT_5_5_5_1",t[t["UNSIGNED_INT"]=5125]="UNSIGNED_INT",t[t["UNSIGNED_INT_10F_11F_11F_REV"]=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t["UNSIGNED_INT_2_10_10_10_REV"]=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t["UNSIGNED_INT_24_8"]=34042]="UNSIGNED_INT_24_8",t[t["UNSIGNED_INT_5_9_9_9_REV"]=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t["BYTE"]=5120]="BYTE",t[t["SHORT"]=5122]="SHORT",t[t["INT"]=5124]="INT",t[t["FLOAT"]=5126]="FLOAT",t[t["FLOAT_32_UNSIGNED_INT_24_8_REV"]=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t["HALF_FLOAT"]=36193]="HALF_FLOAT"}(l||(l={})),function(t){t[t["FLOAT"]=0]="FLOAT",t[t["INT"]=1]="INT",t[t["UINT"]=2]="UINT"}(c||(c={})),function(t){t[t["NEAREST"]=0]="NEAREST",t[t["LINEAR"]=1]="LINEAR"}(f||(f={})),function(t){t[t["CLAMP"]=33071]="CLAMP",t[t["REPEAT"]=10497]="REPEAT",t[t["MIRRORED_REPEAT"]=33648]="MIRRORED_REPEAT"}(d||(d={})),function(t){t[t["OFF"]=0]="OFF",t[t["POW2"]=1]="POW2",t[t["ON"]=2]="ON",t[t["ON_MANUAL"]=3]="ON_MANUAL"}(p||(p={})),function(t){t[t["NPM"]=0]="NPM",t[t["UNPACK"]=1]="UNPACK",t[t["PMA"]=2]="PMA",t[t["NO_PREMULTIPLIED_ALPHA"]=0]="NO_PREMULTIPLIED_ALPHA",t[t["PREMULTIPLY_ON_UPLOAD"]=1]="PREMULTIPLY_ON_UPLOAD",t[t["PREMULTIPLY_ALPHA"]=2]="PREMULTIPLY_ALPHA",t[t["PREMULTIPLIED_ALPHA"]=2]="PREMULTIPLIED_ALPHA"}(_||(_={})),function(t){t[t["NO"]=0]="NO",t[t["YES"]=1]="YES",t[t["AUTO"]=2]="AUTO",t[t["BLEND"]=0]="BLEND",t[t["CLEAR"]=1]="CLEAR",t[t["BLIT"]=2]="BLIT"}(v||(v={})),function(t){t[t["AUTO"]=0]="AUTO",t[t["MANUAL"]=1]="MANUAL"}(m||(m={})),function(t){t["LOW"]="lowp",t["MEDIUM"]="mediump",t["HIGH"]="highp"}(y||(y={})),function(t){t[t["NONE"]=0]="NONE",t[t["SCISSOR"]=1]="SCISSOR",t[t["STENCIL"]=2]="STENCIL",t[t["SPRITE"]=3]="SPRITE"}(g||(g={})),function(t){t[t["NONE"]=0]="NONE",t[t["LOW"]=2]="LOW",t[t["MEDIUM"]=4]="MEDIUM",t[t["HIGH"]=8]="HIGH"}(E||(E={})),function(t){t[t["ELEMENT_ARRAY_BUFFER"]=34963]="ELEMENT_ARRAY_BUFFER",t[t["ARRAY_BUFFER"]=34962]="ARRAY_BUFFER",t[t["UNIFORM_BUFFER"]=35345]="UNIFORM_BUFFER"}(T||(T={}))},4457:function(t,e,r){"use strict";r.d(e,{$r:function(){return kt},Bv:function(){return ir},Ie:function(){return $e},JZ:function(){return tr},Rv:function(){return Ze},TI:function(){return U},Th:function(){return je},UX:function(){return re},VL:function(){return y},Y9:function(){return qe},ZM:function(){return Kt},ZX:function(){return z},a$:function(){return Ke},bO:function(){return rt},e6:function(){return Ve},ex:function(){return Ht},kP:function(){return ze},lW:function(){return k},oo:function(){return Z},qm:function(){return v},ud:function(){return K},wn:function(){return Jt},xE:function(){return C}});r(1703),r(8675),r(3462),r(2801);var n=r(2307),i=r(942),o=r(6908),s=r(8658),a=r(8466),u=r(1188);
/*!
* @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
*/
n.X.PREFER_ENV=o.tq.any?i.Vi.WEBGL:i.Vi.WEBGL2,n.X.STRICT_TEXTURE_CACHE=!1;var h=[];function l(t,e){if(!t)return null;var r="";if("string"===typeof t){var n=/\.(\w{3,4})(?:$|\?|#)/i.exec(t);n&&(r=n[1].toLowerCase())}for(var i=h.length-1;i>=0;--i){var o=h[i];if(o.test&&o.test(t,r))return new o(t,e)}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 c=function(t,e){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},c(t,e)};function f(t,e){function r(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var d=function(){return d=Object.assign||function(t){for(var e,r=arguments,n=1,i=arguments.length;n<i;n++)for(var o in e=r[n],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},d.apply(this,arguments)};function p(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&(r[n[i]]=t[n[i]])}return r}var _=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this._width=t,this._height=e,this.destroyed=!1,this.internal=!1,this.onResize=new s.R("setRealSize"),this.onUpdate=new s.R("update"),this.onError=new s.R("onError")}return t.prototype.bind=function(t){this.onResize.add(t),this.onUpdate.add(t),this.onError.add(t),(this._width||this._height)&&this.onResize.emit(this._width,this._height)},t.prototype.unbind=function(t){this.onResize.remove(t),this.onUpdate.remove(t),this.onError.remove(t)},t.prototype.resize=function(t,e){t===this._width&&e===this._height||(this._width=t,this._height=e,this.onResize.emit(t,e))},Object.defineProperty(t.prototype,"valid",{get:function(){return!!this._width&&!!this._height},enumerable:!1,configurable:!0}),t.prototype.update=function(){this.destroyed||this.onUpdate.emit()},t.prototype.load=function(){return Promise.resolve(this)},Object.defineProperty(t.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},enumerable:!1,configurable:!0}),t.prototype.style=function(t,e,r){return!1},t.prototype.dispose=function(){},t.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)},t.test=function(t,e){return!1},t}(),v=function(t){function e(e,r){var n=this,i=r||{},o=i.width,s=i.height;if(!o||!s)throw new Error("BufferResource width or height invalid");return n=t.call(this,o,s)||this,n.data=e,n}return f(e,t),e.prototype.upload=function(t,e,r){var n=t.gl;n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.alphaMode===i.iw.UNPACK);var o=e.realWidth,s=e.realHeight;return r.width===o&&r.height===s?n.texSubImage2D(e.target,0,0,0,o,s,e.format,r.type,this.data):(r.width=o,r.height=s,n.texImage2D(e.target,0,r.internalFormat,o,s,0,e.format,r.type,this.data)),!0},e.prototype.dispose=function(){this.data=null},e.test=function(t){return t instanceof Float32Array||t instanceof Uint8Array||t instanceof Uint32Array},e}(_),m={scaleMode:i.aH.NEAREST,format:i.I2.RGBA,alphaMode:i.iw.NPM},y=function(t){function e(e,r){void 0===e&&(e=null),void 0===r&&(r=null);var s=t.call(this)||this;r=r||{};var a=r.alphaMode,u=r.mipmap,h=r.anisotropicLevel,c=r.scaleMode,f=r.width,d=r.height,p=r.wrapMode,v=r.format,m=r.type,y=r.target,g=r.resolution,E=r.resourceOptions;return!e||e instanceof _||(e=l(e,E),e.internal=!0),s.resolution=g||n.X.RESOLUTION,s.width=Math.round((f||0)*s.resolution)/s.resolution,s.height=Math.round((d||0)*s.resolution)/s.resolution,s._mipmap=void 0!==u?u:n.X.MIPMAP_TEXTURES,s.anisotropicLevel=void 0!==h?h:n.X.ANISOTROPIC_LEVEL,s._wrapMode=p||n.X.WRAP_MODE,s._scaleMode=void 0!==c?c:n.X.SCALE_MODE,s.format=v||i.I2.RGBA,s.type=m||i.vK.UNSIGNED_BYTE,s.target=y||i.sp.TEXTURE_2D,s.alphaMode=void 0!==a?a:i.iw.UNPACK,s.uid=(0,o.hQ)(),s.touched=0,s.isPowerOfTwo=!1,s._refreshPOT(),s._glTextures={},s.dirtyId=0,s.dirtyStyleId=0,s.cacheId=null,s.valid=f>0&&d>0,s.textureCacheIds=[],s.destroyed=!1,s.resource=null,s._batchEnabled=0,s._batchLocation=0,s.parentTextureArray=null,s.setResource(e),s}return f(e,t),Object.defineProperty(e.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mipmap",{get:function(){return this._mipmap},set:function(t){this._mipmap!==t&&(this._mipmap=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(t){this._scaleMode!==t&&(this._scaleMode=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(t){this._wrapMode!==t&&(this._wrapMode=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),e.prototype.setStyle=function(t,e){var r;return void 0!==t&&t!==this.scaleMode&&(this.scaleMode=t,r=!0),void 0!==e&&e!==this.mipmap&&(this.mipmap=e,r=!0),r&&this.dirtyStyleId++,this},e.prototype.setSize=function(t,e,r){return r=r||this.resolution,this.setRealSize(t*r,e*r,r)},e.prototype.setRealSize=function(t,e,r){return this.resolution=r||this.resolution,this.width=Math.round(t)/this.resolution,this.height=Math.round(e)/this.resolution,this._refreshPOT(),this.update(),this},e.prototype._refreshPOT=function(){this.isPowerOfTwo=(0,o.wv)(this.realWidth)&&(0,o.wv)(this.realHeight)},e.prototype.setResolution=function(t){var e=this.resolution;return e===t||(this.resolution=t,this.valid&&(this.width=Math.round(this.width*e)/t,this.height=Math.round(this.height*e)/t,this.emit("update",this)),this._refreshPOT()),this},e.prototype.setResource=function(t){if(this.resource===t)return this;if(this.resource)throw new Error("Resource can be set only once");return t.bind(this),this.resource=t,this},e.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))},e.prototype.onError=function(t){this.emit("error",this,t)},e.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete o.V8[this.cacheId],delete o.kN[this.cacheId],this.cacheId=null),this.dispose(),e.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},e.prototype.dispose=function(){this.emit("dispose",this)},e.prototype.castToBaseTexture=function(){return this},e.from=function(t,r,i){void 0===i&&(i=n.X.STRICT_TEXTURE_CACHE);var s="string"===typeof t,a=null;if(s)a=t;else{if(!t._pixiId){var u=r&&r.pixiIdPrefix||"pixiid";t._pixiId=u+"_"+(0,o.hQ)()}a=t._pixiId}var h=o.V8[a];if(s&&i&&!h)throw new Error('The cacheId "'+a+'" does not exist in BaseTextureCache.');return h||(h=new e(t,r),h.cacheId=a,e.addToCache(h,a)),h},e.fromBuffer=function(t,r,n,o){t=t||new Float32Array(r*n*4);var s=new v(t,{width:r,height:n}),a=t instanceof Float32Array?i.vK.FLOAT:i.vK.UNSIGNED_BYTE;return new e(s,Object.assign(m,o||{width:r,height:n,type:a}))},e.addToCache=function(t,e){e&&(-1===t.textureCacheIds.indexOf(e)&&t.textureCacheIds.push(e),o.V8[e]&&console.warn("BaseTexture added to the cache with an id ["+e+"] that already had an entry"),o.V8[e]=t)},e.removeFromCache=function(t){if("string"===typeof t){var e=o.V8[t];if(e){var r=e.textureCacheIds.indexOf(t);return r>-1&&e.textureCacheIds.splice(r,1),delete o.V8[t],e}}else if(t&&t.textureCacheIds){for(var n=0;n<t.textureCacheIds.length;++n)delete o.V8[t.textureCacheIds[n]];return t.textureCacheIds.length=0,t}return null},e._globalBatch=0,e}(o.vp),g=function(t){function e(e,r){var n=this,i=r||{},o=i.width,s=i.height;n=t.call(this,o,s)||this,n.items=[],n.itemDirtyIds=[];for(var a=0;a<e;a++){var u=new y;n.items.push(u),n.itemDirtyIds.push(-2)}return n.length=e,n._load=null,n.baseTexture=null,n}return f(e,t),e.prototype.initFromArray=function(t,e){for(var r=0;r<this.length;r++)t[r]&&(t[r].castToBaseTexture?this.addBaseTextureAt(t[r].castToBaseTexture(),r):t[r]instanceof _?this.addResourceAt(t[r],r):this.addResourceAt(l(t[r],e),r))},e.prototype.dispose=function(){for(var t=0,e=this.length;t<e;t++)this.items[t].destroy();this.items=null,this.itemDirtyIds=null,this._load=null},e.prototype.addResourceAt=function(t,e){if(!this.items[e])throw new Error("Index "+e+" is out of bounds");return t.valid&&!this.valid&&this.resize(t.width,t.height),this.items[e].setResource(t),this},e.prototype.bind=function(e){if(null!==this.baseTexture)throw new Error("Only one base texture per TextureArray is allowed");t.prototype.bind.call(this,e);for(var r=0;r<this.length;r++)this.items[r].parentTextureArray=e,this.items[r].on("update",e.update,e)},e.prototype.unbind=function(e){t.prototype.unbind.call(this,e);for(var r=0;r<this.length;r++)this.items[r].parentTextureArray=null,this.items[r].off("update",e.update,e)},e.prototype.load=function(){var t=this;if(this._load)return this._load;var e=this.items.map((function(t){return t.resource})).filter((function(t){return t})),r=e.map((function(t){return t.load()}));return this._load=Promise.all(r).then((function(){var e=t.items[0],r=e.realWidth,n=e.realHeight;return t.resize(r,n),Promise.resolve(t)})),this._load},e}(_),E=function(t){function e(e,r){var n,i,o=this,s=r||{},a=s.width,u=s.height;return Array.isArray(e)?(n=e,i=e.length):i=e,o=t.call(this,i,{width:a,height:u})||this,n&&o.initFromArray(n,r),o}return f(e,t),e.prototype.addBaseTextureAt=function(t,e){if(!t.resource)throw new Error("ArrayResource does not support RenderTexture");return this.addResourceAt(t.resource,e),this},e.prototype.bind=function(e){t.prototype.bind.call(this,e),e.target=i.sp.TEXTURE_2D_ARRAY},e.prototype.upload=function(t,e,r){var n=this,i=n.length,o=n.itemDirtyIds,s=n.items,a=t.gl;r.dirtyId<0&&a.texImage3D(a.TEXTURE_2D_ARRAY,0,r.internalFormat,this._width,this._height,i,0,e.format,r.type,null);for(var u=0;u<i;u++){var h=s[u];o[u]<h.dirtyId&&(o[u]=h.dirtyId,h.valid&&a.texSubImage3D(a.TEXTURE_2D_ARRAY,0,0,0,u,h.resource.width,h.resource.height,1,e.format,r.type,h.resource.source))}return!0},e}(g),T=function(t){function e(e){var r=this,n=e,i=n.naturalWidth||n.videoWidth||n.width,o=n.naturalHeight||n.videoHeight||n.height;return r=t.call(this,i,o)||this,r.source=e,r.noSubImage=!1,r}return f(e,t),e.crossOrigin=function(t,e,r){void 0===r&&0!==e.indexOf("data:")?t.crossOrigin=(0,o.Qq)(e):!1!==r&&(t.crossOrigin="string"===typeof r?r:"anonymous")},e.prototype.upload=function(t,e,r,n){var o=t.gl,s=e.realWidth,a=e.realHeight;if(n=n||this.source,n instanceof HTMLImageElement){if(!n.complete||0===n.naturalWidth)return!1}else if(n instanceof HTMLVideoElement&&n.readyState<=1)return!1;return o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.alphaMode===i.iw.UNPACK),this.noSubImage||e.target!==o.TEXTURE_2D||r.width!==s||r.height!==a?(r.width=s,r.height=a,o.texImage2D(e.target,0,r.internalFormat,e.format,r.type,n)):o.texSubImage2D(o.TEXTURE_2D,0,0,0,e.format,r.type,n),!0},e.prototype.update=function(){if(!this.destroyed){var e=this.source,r=e.naturalWidth||e.videoWidth||e.width,n=e.naturalHeight||e.videoHeight||e.height;this.resize(r,n),t.prototype.update.call(this)}},e.prototype.dispose=function(){this.source=null},e}(_),b=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.test=function(t){var e=globalThis.OffscreenCanvas;return!!(e&&t instanceof e)||globalThis.HTMLCanvasElement&&t instanceof HTMLCanvasElement},e}(T),x=function(t){function e(r,n){var o=this,s=n||{},a=s.width,u=s.height,h=s.autoLoad,l=s.linkBaseTexture;if(r&&r.length!==e.SIDES)throw new Error("Invalid length. Got "+r.length+", expected 6");o=t.call(this,6,{width:a,height:u})||this;for(var c=0;c<e.SIDES;c++)o.items[c].target=i.sp.TEXTURE_CUBE_MAP_POSITIVE_X+c;return o.linkBaseTexture=!1!==l,r&&o.initFromArray(r,n),!1!==h&&o.load(),o}return f(e,t),e.prototype.bind=function(e){t.prototype.bind.call(this,e),e.target=i.sp.TEXTURE_CUBE_MAP},e.prototype.addBaseTextureAt=function(t,e,r){if(void 0===r&&(r=this.linkBaseTexture),!this.items[e])throw new Error("Index "+e+" is out of bounds");if(!this.linkBaseTexture||t.parentTextureArray||Object.keys(t._glTextures).length>0){if(!t.resource)throw new Error("CubeResource does not support copying of renderTexture.");this.addResourceAt(t.resource,e)}else t.target=i.sp.TEXTURE_CUBE_MAP_POSITIVE_X+e,t.parentTextureArray=this.baseTexture,this.items[e]=t;return t.valid&&!this.valid&&this.resize(t.realWidth,t.realHeight),this.items[e]=t,this},e.prototype.upload=function(t,r,n){for(var i=this.itemDirtyIds,o=0;o<e.SIDES;o++){var s=this.items[o];i[o]<s.dirtyId&&(s.valid&&s.resource?(s.resource.upload(t,s,n),i[o]=s.dirtyId):i[o]<-1&&(t.gl.texImage2D(s.target,0,n.internalFormat,r.realWidth,r.realHeight,0,r.format,n.type,null),i[o]=-1))}return!0},e.test=function(t){return Array.isArray(t)&&t.length===e.SIDES},e.SIDES=6,e}(g),R=function(t){function e(e,r){var i=this;if(r=r||{},!(e instanceof HTMLImageElement)){var o=new Image;T.crossOrigin(o,e,r.crossorigin),o.src=e,e=o}return i=t.call(this,e)||this,!e.complete&&i._width&&i._height&&(i._width=0,i._height=0),i.url=e.src,i._process=null,i.preserveBitmap=!1,i.createBitmap=(void 0!==r.createBitmap?r.createBitmap:n.X.CREATE_IMAGE_BITMAP)&&!!globalThis.createImageBitmap,i.alphaMode="number"===typeof r.alphaMode?r.alphaMode:null,i.bitmap=null,i._load=null,!1!==r.autoLoad&&i.load(),i}return f(e,t),e.prototype.load=function(t){var e=this;return this._load||(void 0!==t&&(this.createBitmap=t),this._load=new Promise((function(t,r){var n=e.source;e.url=n.src;var i=function(){e.destroyed||(n.onload=null,n.onerror=null,e.resize(n.width,n.height),e._load=null,e.createBitmap?t(e.process()):t(e))};n.complete&&n.src?i():(n.onload=i,n.onerror=function(t){r(t),e.onError.emit(t)})}))),this._load},e.prototype.process=function(){var t=this,e=this.source;if(null!==this._process)return this._process;if(null!==this.bitmap||!globalThis.createImageBitmap)return Promise.resolve(this);var r=globalThis.createImageBitmap,n=!e.crossOrigin||"anonymous"===e.crossOrigin;return this._process=fetch(e.src,{mode:n?"cors":"no-cors"}).then((function(t){return t.blob()})).then((function(n){return r(n,0,0,e.width,e.height,{premultiplyAlpha:t.alphaMode===i.iw.UNPACK?"premultiply":"none"})})).then((function(e){return t.destroyed?Promise.reject():(t.bitmap=e,t.update(),t._process=null,Promise.resolve(t))})),this._process},e.prototype.upload=function(e,r,n){if("number"===typeof this.alphaMode&&(r.alphaMode=this.alphaMode),!this.createBitmap)return t.prototype.upload.call(this,e,r,n);if(!this.bitmap&&(this.process(),!this.bitmap))return!1;if(t.prototype.upload.call(this,e,r,n,this.bitmap),!this.preserveBitmap){var i=!0,o=r._glTextures;for(var s in o){var a=o[s];if(a!==n&&a.dirtyId!==r.dirtyId){i=!1;break}}i&&(this.bitmap.close&&this.bitmap.close(),this.bitmap=null)}return!0},e.prototype.dispose=function(){this.source.onload=null,this.source.onerror=null,t.prototype.dispose.call(this),this.bitmap&&(this.bitmap.close(),this.bitmap=null),this._process=null,this._load=null},e.test=function(t){return"string"===typeof t||t instanceof HTMLImageElement},e}(T),A=function(t){function e(e,r){var n=this;return r=r||{},n=t.call(this,document.createElement("canvas"))||this,n._width=0,n._height=0,n.svg=e,n.scale=r.scale||1,n._overrideWidth=r.width,n._overrideHeight=r.height,n._resolve=null,n._crossorigin=r.crossorigin,n._load=null,!1!==r.autoLoad&&n.load(),n}return f(e,t),e.prototype.load=function(){var t=this;return this._load||(this._load=new Promise((function(r){if(t._resolve=function(){t.resize(t.source.width,t.source.height),r(t)},e.SVG_XML.test(t.svg.trim())){if(!btoa)throw new Error("Your browser doesn't support base64 conversions.");t.svg="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(t.svg)))}t._loadSvg()}))),this._load},e.prototype._loadSvg=function(){var t=this,e=new Image;T.crossOrigin(e,this.svg,this._crossorigin),e.src=this.svg,e.onerror=function(r){t._resolve&&(e.onerror=null,t.onError.emit(r))},e.onload=function(){if(t._resolve){var r=e.width,n=e.height;if(!r||!n)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");var i=r*t.scale,s=n*t.scale;(t._overrideWidth||t._overrideHeight)&&(i=t._overrideWidth||t._overrideHeight/n*r,s=t._overrideHeight||t._overrideWidth/r*n),i=Math.round(i),s=Math.round(s);var a=t.source;a.width=i,a.height=s,a._pixiId="canvas_"+(0,o.hQ)(),a.getContext("2d").drawImage(e,0,0,r,n,0,0,i,s),t._resolve(),t._resolve=null}}},e.getSize=function(t){var r=e.SVG_SIZE.exec(t),n={};return r&&(n[r[1]]=Math.round(parseFloat(r[3])),n[r[5]]=Math.round(parseFloat(r[7]))),n},e.prototype.dispose=function(){t.prototype.dispose.call(this),this._resolve=null,this._crossorigin=null},e.test=function(t,r){return"svg"===r||"string"===typeof t&&/^data:image\/svg\+xml(;(charset=utf8|utf8))?;base64/.test(t)||"string"===typeof t&&e.SVG_XML.test(t)},e.SVG_XML=/^(<\?xml[^?]+\?>)?\s*(<!--[^(-->)]*-->)?\s*\<svg/m,e.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,e}(T),I=function(t){function e(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",""),"string"===typeof r&&(r=[r]);var s=r[0].src||r[0];T.crossOrigin(o,s,n.crossorigin);for(var a=0;a<r.length;++a){var u=document.createElement("source"),h=r[a],l=h.src,c=h.mime;l=l||r[a];var f=l.split("?").shift().toLowerCase(),d=f.slice(f.lastIndexOf(".")+1);c=c||e.MIME_TYPES[d]||"video/"+d,u.src=l,u.type=c,o.appendChild(u)}r=o}return i=t.call(this,r)||this,i.noSubImage=!0,i._autoUpdate=!0,i._isConnectedToTicker=!1,i._updateFPS=n.updateFPS||0,i._msToNextUpdate=0,i.autoPlay=!1!==n.autoPlay,i._load=null,i._resolve=null,i._onCanPlay=i._onCanPlay.bind(i),i._onError=i._onError.bind(i),!1!==n.autoLoad&&i.load(),i}return f(e,t),e.prototype.update=function(e){if(!this.destroyed){var r=a.vB.shared.elapsedMS*this.source.playbackRate;this._msToNextUpdate=Math.floor(this._msToNextUpdate-r),(!this._updateFPS||this._msToNextUpdate<=0)&&(t.prototype.update.call(this),this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0)}},e.prototype.load=function(){var t=this;if(this._load)return this._load;var e=this.source;return(e.readyState===e.HAVE_ENOUGH_DATA||e.readyState===e.HAVE_FUTURE_DATA)&&e.width&&e.height&&(e.complete=!0),e.addEventListener("play",this._onPlayStart.bind(this)),e.addEventListener("pause",this._onPlayStop.bind(this)),this._isSourceReady()?this._onCanPlay():(e.addEventListener("canplay",this._onCanPlay),e.addEventListener("canplaythrough",this._onCanPlay),e.addEventListener("error",this._onError,!0)),this._load=new Promise((function(r){t.valid?r(t):(t._resolve=r,e.load())})),this._load},e.prototype._onError=function(t){this.source.removeEventListener("error",this._onError,!0),this.onError.emit(t)},e.prototype._isSourcePlaying=function(){var t=this.source;return t.currentTime>0&&!1===t.paused&&!1===t.ended&&t.readyState>2},e.prototype._isSourceReady=function(){var t=this.source;return 3===t.readyState||4===t.readyState},e.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(a.vB.shared.add(this.update,this),this._isConnectedToTicker=!0)},e.prototype._onPlayStop=function(){this._isConnectedToTicker&&(a.vB.shared.remove(this.update,this),this._isConnectedToTicker=!1)},e.prototype._onCanPlay=function(){var t=this.source;t.removeEventListener("canplay",this._onCanPlay),t.removeEventListener("canplaythrough",this._onCanPlay);var e=this.valid;this.resize(t.videoWidth,t.videoHeight),!e&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&t.play()},e.prototype.dispose=function(){this._isConnectedToTicker&&(a.vB.shared.remove(this.update,this),this._isConnectedToTicker=!1);var e=this.source;e&&(e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isConnectedToTicker?(a.vB.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(a.vB.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(t){t!==this._updateFPS&&(this._updateFPS=t)},enumerable:!1,configurable:!0}),e.test=function(t,r){return globalThis.HTMLVideoElement&&t instanceof HTMLVideoElement||e.TYPES.indexOf(r)>-1},e.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],e.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},e}(T),S=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.test=function(t){return!!globalThis.createImageBitmap&&t instanceof ImageBitmap},e}(T);h.push(R,S,b,I,A,v,x,E);var O={__proto__:null,Resource:_,BaseImageResource:T,INSTALLED:h,autoDetectResource:l,AbstractMultiResource:g,ArrayResource:E,BufferResource:v,CanvasResource:b,CubeResource:x,ImageResource:R,SVGResource:A,VideoResource:I,ImageBitmapResource:S},P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.upload=function(t,e,r){var n=t.gl;n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.alphaMode===i.iw.UNPACK);var o=e.realWidth,s=e.realHeight;return r.width===o&&r.height===s?n.texSubImage2D(e.target,0,0,0,o,s,e.format,r.type,this.data):(r.width=o,r.height=s,n.texImage2D(e.target,0,r.internalFormat,o,s,0,e.format,r.type,this.data)),!0},e}(v),N=function(){function t(t,e){this.width=Math.round(t||100),this.height=Math.round(e||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 s.R("disposeFramebuffer"),this.multisample=i.G5.NONE}return Object.defineProperty(t.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),t.prototype.addColorTexture=function(t,e){return void 0===t&&(t=0),this.colorTextures[t]=e||new y(null,{scaleMode:i.aH.NEAREST,resolution:1,mipmap:i.WB.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},t.prototype.addDepthTexture=function(t){return this.depthTexture=t||new y(new P(null,{width:this.width,height:this.height}),{scaleMode:i.aH.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:i.WB.OFF,format:i.I2.DEPTH_COMPONENT,type:i.vK.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},t.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},t.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},t.prototype.resize=function(t,e){if(t=Math.round(t),e=Math.round(e),t!==this.width||e!==this.height){this.width=t,this.height=e,this.dirtyId++,this.dirtySize++;for(var r=0;r<this.colorTextures.length;r++){var n=this.colorTextures[r],i=n.resolution;n.setSize(t/i,e/i)}if(this.depthTexture){i=this.depthTexture.resolution;this.depthTexture.setSize(t/i,e/i)}}},t.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},t.prototype.destroyDepthTexture=function(){this.depthTexture&&(this.depthTexture.destroy(),this.depthTexture=null,++this.dirtyId,++this.dirtyFormat)},t}(),M=function(t){function e(e){void 0===e&&(e={});var r=this;if("number"===typeof e){var n=arguments[0],o=arguments[1],s=arguments[2],a=arguments[3];e={width:n,height:o,scaleMode:s,resolution:a}}return e.width=e.width||100,e.height=e.height||100,e.multisample=void 0!==e.multisample?e.multisample:i.G5.NONE,r=t.call(this,null,e)||this,r.mipmap=i.WB.OFF,r.valid=!0,r.clearColor=[0,0,0,0],r.framebuffer=new N(r.realWidth,r.realHeight).addColorTexture(0,r),r.framebuffer.multisample=e.multisample,r.maskStack=[],r.filterStack=[{}],r}return f(e,t),e.prototype.resize=function(t,e){this.framebuffer.resize(t*this.resolution,e*this.resolution),this.setRealSize(this.framebuffer.width,this.framebuffer.height)},e.prototype.dispose=function(){this.framebuffer.dispose(),t.prototype.dispose.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.framebuffer.destroyDepthTexture(),this.framebuffer=null},e}(y),w=function(){function t(){this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsFloat32=new Float32Array(8)}return t.prototype.set=function(t,e,r){var n=e.width,i=e.height;if(r){var o=t.width/2/n,s=t.height/2/i,a=t.x/n+o,h=t.y/i+s;r=u.Lv.add(r,u.Lv.NW),this.x0=a+o*u.Lv.uX(r),this.y0=h+s*u.Lv.uY(r),r=u.Lv.add(r,2),this.x1=a+o*u.Lv.uX(r),this.y1=h+s*u.Lv.uY(r),r=u.Lv.add(r,2),this.x2=a+o*u.Lv.uX(r),this.y2=h+s*u.Lv.uY(r),r=u.Lv.add(r,2),this.x3=a+o*u.Lv.uX(r),this.y3=h+s*u.Lv.uY(r)}else this.x0=t.x/n,this.y0=t.y/i,this.x1=(t.x+t.width)/n,this.y1=t.y/i,this.x2=(t.x+t.width)/n,this.y2=(t.y+t.height)/i,this.x3=t.x/n,this.y3=(t.y+t.height)/i;this.uvsFloat32[0]=this.x0,this.uvsFloat32[1]=this.y0,this.uvsFloat32[2]=this.x1,this.uvsFloat32[3]=this.y1,this.uvsFloat32[4]=this.x2,this.uvsFloat32[5]=this.y2,this.uvsFloat32[6]=this.x3,this.uvsFloat32[7]=this.y3},t.prototype.toString=function(){return"[@pixi/core:TextureUvs x0="+this.x0+" y0="+this.y0+" x1="+this.x1+" y1="+this.y1+" x2="+this.x2+" y2="+this.y2+" x3="+this.x3+" y3="+this.y3+"]"},t}(),D=new w,C=function(t){function e(r,n,i,o,s,a){var h=t.call(this)||this;if(h.noFrame=!1,n||(h.noFrame=!0,n=new u.Ae(0,0,1,1)),r instanceof e&&(r=r.baseTexture),h.baseTexture=r,h._frame=n,h.trim=o,h.valid=!1,h._uvs=D,h.uvMatrix=null,h.orig=i||n,h._rotate=Number(s||0),!0===s)h._rotate=2;else if(h._rotate%2!==0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");return h.defaultAnchor=a?new u.E9(a.x,a.y):new u.E9(0,0),h._updateID=0,h.textureCacheIds=[],r.valid?h.noFrame?r.valid&&h.onBaseTextureUpdated(r):h.frame=n:r.once("loaded",h.onBaseTextureUpdated,h),h.noFrame&&r.on("update",h.onBaseTextureUpdated,h),h}return f(e,t),e.prototype.update=function(){this.baseTexture.resource&&this.baseTexture.resource.update()},e.prototype.onBaseTextureUpdated=function(t){if(this.noFrame){if(!this.baseTexture.valid)return;this._frame.width=t.width,this._frame.height=t.height,this.valid=!0,this.updateUvs()}else this.frame=this._frame;this.emit("update",this)},e.prototype.destroy=function(t){if(this.baseTexture){if(t){var r=this.baseTexture.resource;r&&r.url&&o.kN[r.url]&&e.removeFromCache(r.url),this.baseTexture.destroy()}this.baseTexture.off("loaded",this.onBaseTextureUpdated,this),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture=null}this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,e.removeFromCache(this),this.textureCacheIds=null},e.prototype.clone=function(){var t=this._frame.clone(),r=this._frame===this.orig?t:this.orig.clone(),n=new e(this.baseTexture,!this.noFrame&&t,r,this.trim&&this.trim.clone(),this.rotate,this.defaultAnchor);return this.noFrame&&(n._frame=t),n},e.prototype.updateUvs=function(){this._uvs===D&&(this._uvs=new w),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++},e.from=function(t,r,i){void 0===r&&(r={}),void 0===i&&(i=n.X.STRICT_TEXTURE_CACHE);var s="string"===typeof t,a=null;if(s)a=t;else if(t instanceof y){if(!t.cacheId){var u=r&&r.pixiIdPrefix||"pixiid";t.cacheId=u+"-"+(0,o.hQ)(),y.addToCache(t,t.cacheId)}a=t.cacheId}else{if(!t._pixiId){u=r&&r.pixiIdPrefix||"pixiid";t._pixiId=u+"_"+(0,o.hQ)()}a=t._pixiId}var h=o.kN[a];if(s&&i&&!h)throw new Error('The cacheId "'+a+'" does not exist in TextureCache.');return h||t instanceof y?!h&&t instanceof y&&(h=new e(t),e.addToCache(h,a)):(r.resolution||(r.resolution=(0,o.fL)(t)),h=new e(new y(t,r)),h.baseTexture.cacheId=a,y.addToCache(h.baseTexture,a),e.addToCache(h,a)),h},e.fromURL=function(t,r){var n=Object.assign({autoLoad:!1},null===r||void 0===r?void 0:r.resourceOptions),i=e.from(t,Object.assign({resourceOptions:n},r),!1),o=i.baseTexture.resource;return i.baseTexture.valid?Promise.resolve(i):o.load().then((function(){return Promise.resolve(i)}))},e.fromBuffer=function(t,r,n,i){return new e(y.fromBuffer(t,r,n,i))},e.fromLoader=function(t,r,i,s){var a=new y(t,Object.assign({scaleMode:n.X.SCALE_MODE,resolution:(0,o.fL)(r)},s)),u=a.resource;u instanceof R&&(u.url=r);var h=new e(a);return i||(i=r),y.addToCache(h.baseTexture,i),e.addToCache(h,i),i!==r&&(y.addToCache(h.baseTexture,r),e.addToCache(h,r)),h.baseTexture.valid?Promise.resolve(h):new Promise((function(t){h.baseTexture.once("loaded",(function(){return t(h)}))}))},e.addToCache=function(t,e){e&&(-1===t.textureCacheIds.indexOf(e)&&t.textureCacheIds.push(e),o.kN[e]&&console.warn("Texture added to the cache with an id ["+e+"] that already had an entry"),o.kN[e]=t)},e.removeFromCache=function(t){if("string"===typeof t){var e=o.kN[t];if(e){var r=e.textureCacheIds.indexOf(t);return r>-1&&e.textureCacheIds.splice(r,1),delete o.kN[t],e}}else if(t&&t.textureCacheIds){for(var n=0;n<t.textureCacheIds.length;++n)o.kN[t.textureCacheIds[n]]===t&&delete o.kN[t.textureCacheIds[n]];return t.textureCacheIds.length=0,t}return null},Object.defineProperty(e.prototype,"resolution",{get:function(){return this.baseTexture.resolution},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"frame",{get:function(){return this._frame},set:function(t){this._frame=t,this.noFrame=!1;var e=t.x,r=t.y,n=t.width,i=t.height,o=e+n>this.baseTexture.width,s=r+i>this.baseTexture.height;if(o||s){var a=o&&s?"and":"or",u="X: "+e+" + "+n+" = "+(e+n)+" > "+this.baseTexture.width,h="Y: "+r+" + "+i+" = "+(r+i)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+u+" "+a+" "+h)}this.valid=n&&i&&this.baseTexture.valid,this.trim||this.rotate||(this.orig=t),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotate",{get:function(){return this._rotate},set:function(t){this._rotate=t,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),e.prototype.castToBaseTexture=function(){return this.baseTexture},e}(o.vp);function L(){var t=document.createElement("canvas");t.width=16,t.height=16;var e=t.getContext("2d");return e.fillStyle="white",e.fillRect(0,0,16,16),new C(new y(new b(t)))}function F(t){t.destroy=function(){},t.on=function(){},t.once=function(){},t.emit=function(){}}C.EMPTY=new C(new y),F(C.EMPTY),F(C.EMPTY.baseTexture),C.WHITE=L(),F(C.WHITE),F(C.WHITE.baseTexture);var U=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.valid=!0,n.filterFrame=null,n.filterPoolKey=null,n.updateUvs(),n}return f(e,t),Object.defineProperty(e.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(t){this.framebuffer.multisample=t},enumerable:!1,configurable:!0}),e.prototype.resize=function(t,e,r){void 0===r&&(r=!0);var n=this.baseTexture.resolution,i=Math.round(t*n)/n,o=Math.round(e*n)/n;this.valid=i>0&&o>0,this._frame.width=this.orig.width=i,this._frame.height=this.orig.height=o,r&&this.baseTexture.resize(i,o),this.updateUvs()},e.prototype.setResolution=function(t){var e=this.baseTexture;e.resolution!==t&&(e.setResolution(t),this.resize(e.width,e.height,!1))},e.create=function(t){for(var r=arguments,n=[],i=1;i<arguments.length;i++)n[i-1]=r[i];return"number"===typeof t&&((0,o.a1)("6.0.0","Arguments (width, height, scaleMode, resolution) have been deprecated."),t={width:t,height:n[0],scaleMode:n[1],resolution:n[2]}),new e(new M(t))},e}(C),G=function(){function t(t){this.texturePool={},this.textureOptions=t||{},this.enableFullScreen=!1,this._pixelsWidth=0,this._pixelsHeight=0}return t.prototype.createTexture=function(t,e,r){void 0===r&&(r=i.G5.NONE);var n=new M(Object.assign({width:t,height:e,resolution:1,multisample:r},this.textureOptions));return new U(n)},t.prototype.getOptimalTexture=function(t,e,r,n){var s;void 0===r&&(r=1),void 0===n&&(n=i.G5.NONE),t=Math.ceil(t*r-1e-6),e=Math.ceil(e*r-1e-6),this.enableFullScreen&&t===this._pixelsWidth&&e===this._pixelsHeight?s=n>1?-n:-1:(t=(0,o.a9)(t),e=(0,o.a9)(e),s=((65535&t)<<16|65535&e)>>>0,n>1&&(s+=4294967296*n)),this.texturePool[s]||(this.texturePool[s]=[]);var a=this.texturePool[s].pop();return a||(a=this.createTexture(t,e,n)),a.filterPoolKey=s,a.setResolution(r),a},t.prototype.getFilterTexture=function(t,e,r){var n=this.getOptimalTexture(t.width,t.height,e||t.resolution,r||i.G5.NONE);return n.filterFrame=t.filterFrame,n},t.prototype.returnTexture=function(t){var e=t.filterPoolKey;t.filterFrame=null,this.texturePool[e].push(t)},t.prototype.returnFilterTexture=function(t){this.returnTexture(t)},t.prototype.clear=function(t){if(t=!1!==t,t)for(var e in this.texturePool){var r=this.texturePool[e];if(r)for(var n=0;n<r.length;n++)r[n].destroy(!0)}this.texturePool={}},t.prototype.setScreenSize=function(t){if(t.width!==this._pixelsWidth||t.height!==this._pixelsHeight){for(var e in this.enableFullScreen=t.width>0&&t.height>0,this.texturePool)if(Number(e)<0){var r=this.texturePool[e];if(r)for(var n=0;n<r.length;n++)r[n].destroy(!0);this.texturePool[e]=[]}this._pixelsWidth=t.width,this._pixelsHeight=t.height}},t.SCREEN_KEY=-1,t}(),B=function(){function t(t,e,r,n,o,s,a){void 0===e&&(e=0),void 0===r&&(r=!1),void 0===n&&(n=i.vK.FLOAT),this.buffer=t,this.size=e,this.normalized=r,this.type=n,this.stride=o,this.start=s,this.instance=a}return t.prototype.destroy=function(){this.buffer=null},t.from=function(e,r,n,i,o){return new t(e,r,n,i,o)},t}(),X=0,k=function(){function t(t,e,r){void 0===e&&(e=!0),void 0===r&&(r=!1),this.data=t||new Float32Array(1),this._glBuffers={},this._updateID=0,this.index=r,this.static=e,this.id=X++,this.disposeRunner=new s.R("disposeBuffer")}return t.prototype.update=function(t){t instanceof Array&&(t=new Float32Array(t)),this.data=t||this.data,this._updateID++},t.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},t.prototype.destroy=function(){this.dispose(),this.data=null},Object.defineProperty(t.prototype,"index",{get:function(){return this.type===i.mr.ELEMENT_ARRAY_BUFFER},set:function(t){this.type=t?i.mr.ELEMENT_ARRAY_BUFFER:i.mr.ARRAY_BUFFER},enumerable:!1,configurable:!0}),t.from=function(e){return e instanceof Array&&(e=new Float32Array(e)),new t(e)},t}(),H={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};function j(t,e){for(var r=0,n=0,i={},s=0;s<t.length;s++)n+=e[s],r+=t[s].length;var a=new ArrayBuffer(4*r),u=null,h=0;for(s=0;s<t.length;s++){var l=e[s],c=t[s],f=(0,o.u7)(c);i[f]||(i[f]=new H[f](a)),u=i[f];for(var d=0;d<c.length;d++){var p=(d/l|0)*n+h,_=d%l;u[p+_]=c[d]}h+=l}return new Float32Array(a)}var V={5126:4,5123:2,5121:1},Y=0,W={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array},z=function(){function t(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this.buffers=t,this.indexBuffer=null,this.attributes=e,this.glVertexArrayObjects={},this.id=Y++,this.instanced=!1,this.instanceCount=1,this.disposeRunner=new s.R("disposeGeometry"),this.refCount=0}return t.prototype.addAttribute=function(t,e,r,n,i,o,s,a){if(void 0===r&&(r=0),void 0===n&&(n=!1),void 0===a&&(a=!1),!e)throw new Error("You must pass a buffer when creating an attribute");e instanceof k||(e instanceof Array&&(e=new Float32Array(e)),e=new k(e));var u=t.split("|");if(u.length>1){for(var h=0;h<u.length;h++)this.addAttribute(u[h],e,r,n,i);return this}var l=this.buffers.indexOf(e);return-1===l&&(this.buffers.push(e),l=this.buffers.length-1),this.attributes[t]=new B(l,r,n,i,o,s,a),this.instanced=this.instanced||a,this},t.prototype.getAttribute=function(t){return this.attributes[t]},t.prototype.getBuffer=function(t){return this.buffers[this.getAttribute(t).buffer]},t.prototype.addIndex=function(t){return t instanceof k||(t instanceof Array&&(t=new Uint16Array(t)),t=new k(t)),t.type=i.mr.ELEMENT_ARRAY_BUFFER,this.indexBuffer=t,-1===this.buffers.indexOf(t)&&this.buffers.push(t),this},t.prototype.getIndex=function(){return this.indexBuffer},t.prototype.interleave=function(){if(1===this.buffers.length||2===this.buffers.length&&this.indexBuffer)return this;var t,e=[],r=[],n=new k;for(t in this.attributes){var i=this.attributes[t],o=this.buffers[i.buffer];e.push(o.data),r.push(i.size*V[i.type]/4),i.buffer=0}for(n.data=j(e,r),t=0;t<this.buffers.length;t++)this.buffers[t]!==this.indexBuffer&&this.buffers[t].destroy();return this.buffers=[n],this.indexBuffer&&this.buffers.push(this.indexBuffer),this},t.prototype.getSize=function(){for(var t in this.attributes){var e=this.attributes[t],r=this.buffers[e.buffer];return r.data.length/(e.stride/4||e.size)}return 0},t.prototype.dispose=function(){this.disposeRunner.emit(this,!1)},t.prototype.destroy=function(){this.dispose(),this.buffers=null,this.indexBuffer=null,this.attributes=null},t.prototype.clone=function(){for(var e=new t,r=0;r<this.buffers.length;r++)e.buffers[r]=new k(this.buffers[r].data.slice(0));for(var r in this.attributes){var n=this.attributes[r];e.attributes[r]=new B(n.buffer,n.size,n.normalized,n.type,n.stride,n.start,n.instance)}return this.indexBuffer&&(e.indexBuffer=e.buffers[this.buffers.indexOf(this.indexBuffer)],e.indexBuffer.type=i.mr.ELEMENT_ARRAY_BUFFER),e},t.merge=function(e){for(var r,n=new t,s=[],a=[],u=[],h=0;h<e.length;h++){r=e[h];for(var l=0;l<r.buffers.length;l++)a[l]=a[l]||0,a[l]+=r.buffers[l].data.length,u[l]=0}for(h=0;h<r.buffers.length;h++)s[h]=new(W[(0,o.u7)(r.buffers[h].data)])(a[h]),n.buffers[h]=new k(s[h]);for(h=0;h<e.length;h++){r=e[h];for(l=0;l<r.buffers.length;l++)s[l].set(r.buffers[l].data,u[l]),u[l]+=r.buffers[l].data.length}if(n.attributes=r.attributes,r.indexBuffer){n.indexBuffer=n.buffers[r.buffers.indexOf(r.indexBuffer)],n.indexBuffer.type=i.mr.ELEMENT_ARRAY_BUFFER;var c=0,f=0,d=0,p=0;for(h=0;h<r.buffers.length;h++)if(r.buffers[h]!==r.indexBuffer){p=h;break}for(var h in r.attributes){var _=r.attributes[h];(0|_.buffer)===p&&(f+=_.size*V[_.type]/4)}for(h=0;h<e.length;h++){var v=e[h].indexBuffer.data;for(l=0;l<v.length;l++)n.indexBuffer.data[l+d]+=c;c+=e[h].buffers[p].data.length/f,d+=v.length}}return n},t}(),q=function(t){function e(){var e=t.call(this)||this;return e.addAttribute("aVertexPosition",new Float32Array([0,0,1,0,1,1,0,1])).addIndex([0,1,3,2]),e}return f(e,t),e}(z),K=function(t){function e(){var e=t.call(this)||this;return e.vertices=new Float32Array([-1,-1,1,-1,1,1,-1,1]),e.uvs=new Float32Array([0,0,1,0,1,1,0,1]),e.vertexBuffer=new k(e.vertices),e.uvBuffer=new k(e.uvs),e.addAttribute("aVertexPosition",e.vertexBuffer).addAttribute("aTextureCoord",e.uvBuffer).addIndex([0,1,2,0,2,3]),e}return f(e,t),e.prototype.map=function(t,e){var r=0,n=0;return this.uvs[0]=r,this.uvs[1]=n,this.uvs[2]=r+e.width/t.width,this.uvs[3]=n,this.uvs[4]=r+e.width/t.width,this.uvs[5]=n+e.height/t.height,this.uvs[6]=r,this.uvs[7]=n+e.height/t.height,r=e.x,n=e.y,this.vertices[0]=r,this.vertices[1]=n,this.vertices[2]=r+e.width,this.vertices[3]=n,this.vertices[4]=r+e.width,this.vertices[5]=n+e.height,this.vertices[6]=r,this.vertices[7]=n+e.height,this.invalidate(),this},e.prototype.invalidate=function(){return this.vertexBuffer._updateID++,this.uvBuffer._updateID++,this},e}(z),$=0,Z=function(){function t(t,e,r){this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=$++,this.static=!!e,this.ubo=!!r,t instanceof k?(this.buffer=t,this.buffer.type=i.mr.UNIFORM_BUFFER,this.autoManage=!1,this.ubo=!0):(this.uniforms=t,this.ubo&&(this.buffer=new k(new Float32Array(1)),this.buffer.type=i.mr.UNIFORM_BUFFER,this.autoManage=!0))}return t.prototype.update=function(){this.dirtyId++,!this.autoManage&&this.buffer&&this.buffer.update()},t.prototype.add=function(e,r,n){if(this.ubo)throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them");this.uniforms[e]=new t(r,n)},t.from=function(e,r,n){return new t(e,r,n)},t.uboFrom=function(e,r){return new t(e,null===r||void 0===r||r,!0)},t}(),J=function(){function t(){this.renderTexture=null,this.target=null,this.legacy=!1,this.resolution=1,this.multisample=i.G5.NONE,this.sourceFrame=new u.Ae,this.destinationFrame=new u.Ae,this.bindingSourceFrame=new u.Ae,this.bindingDestinationFrame=new u.Ae,this.filters=[],this.transform=null}return t.prototype.clear=function(){this.target=null,this.filters=null,this.renderTexture=null},t}(),Q=[new u.E9,new u.E9,new u.E9,new u.E9],tt=new u.y3,et=function(){function t(t){this.renderer=t,this.defaultFilterStack=[{}],this.texturePool=new G,this.texturePool.setScreenSize(t.view),this.statePool=[],this.quad=new q,this.quadUv=new K,this.tempRect=new u.Ae,this.activeState={},this.globalUniforms=new Z({outputFrame:new u.Ae,inputSize:new Float32Array(4),inputPixel:new Float32Array(4),inputClamp:new Float32Array(4),resolution:1,filterArea:new Float32Array(4),filterClamp:new Float32Array(4)},!0),this.forceClear=!1,this.useMaxPadding=!1}return t.prototype.push=function(t,e){for(var r,n,i=this.renderer,o=this.defaultFilterStack,s=this.statePool.pop()||new J,a=this.renderer.renderTexture,u=e[0].resolution,h=e[0].multisample,l=e[0].padding,c=e[0].autoFit,f=null===(r=e[0].legacy)||void 0===r||r,d=1;d<e.length;d++){var p=e[d];u=Math.min(u,p.resolution),h=Math.min(h,p.multisample),l=this.useMaxPadding?Math.max(l,p.padding):l+p.padding,c=c&&p.autoFit,f=f||null===(n=p.legacy)||void 0===n||n}if(1===o.length&&(this.defaultFilterStack[0].renderTexture=a.current),o.push(s),s.resolution=u,s.multisample=h,s.legacy=f,s.target=t,s.sourceFrame.copyFrom(t.filterArea||t.getBounds(!0)),s.sourceFrame.pad(l),c){var _=this.tempRect.copyFrom(a.sourceFrame);i.projection.transform&&this.transformAABB(tt.copyFrom(i.projection.transform).invert(),_),s.sourceFrame.fit(_)}this.roundFrame(s.sourceFrame,a.current?a.current.resolution:i.resolution,a.sourceFrame,a.destinationFrame,i.projection.transform),s.renderTexture=this.getOptimalFilterTexture(s.sourceFrame.width,s.sourceFrame.height,u,h),s.filters=e,s.destinationFrame.width=s.renderTexture.width,s.destinationFrame.height=s.renderTexture.height;var v=this.tempRect;v.x=0,v.y=0,v.width=s.sourceFrame.width,v.height=s.sourceFrame.height,s.renderTexture.filterFrame=s.sourceFrame,s.bindingSourceFrame.copyFrom(a.sourceFrame),s.bindingDestinationFrame.copyFrom(a.destinationFrame),s.transform=i.projection.transform,i.projection.transform=null,a.bind(s.renderTexture,s.sourceFrame,v),i.framebuffer.clear(0,0,0,0)},t.prototype.pop=function(){var t=this.defaultFilterStack,e=t.pop(),r=e.filters;this.activeState=e;var n=this.globalUniforms.uniforms;n.outputFrame=e.sourceFrame,n.resolution=e.resolution;var o=n.inputSize,s=n.inputPixel,a=n.inputClamp;if(o[0]=e.destinationFrame.width,o[1]=e.destinationFrame.height,o[2]=1/o[0],o[3]=1/o[1],s[0]=Math.round(o[0]*e.resolution),s[1]=Math.round(o[1]*e.resolution),s[2]=1/s[0],s[3]=1/s[1],a[0]=.5*s[2],a[1]=.5*s[3],a[2]=e.sourceFrame.width*o[2]-.5*s[2],a[3]=e.sourceFrame.height*o[3]-.5*s[3],e.legacy){var u=n.filterArea;u[0]=e.destinationFrame.width,u[1]=e.destinationFrame.height,u[2]=e.sourceFrame.x,u[3]=e.sourceFrame.y,n.filterClamp=n.inputClamp}this.globalUniforms.update();var h=t[t.length-1];if(this.renderer.framebuffer.blit(),1===r.length)r[0].apply(this,e.renderTexture,h.renderTexture,i.yl.BLEND,e),this.returnFilterTexture(e.renderTexture);else{var l=e.renderTexture,c=this.getOptimalFilterTexture(l.width,l.height,e.resolution);c.filterFrame=l.filterFrame;var f=0;for(f=0;f<r.length-1;++f){1===f&&e.multisample>1&&(c=this.getOptimalFilterTexture(l.width,l.height,e.resolution),c.filterFrame=l.filterFrame),r[f].apply(this,l,c,i.yl.CLEAR,e);var d=l;l=c,c=d}r[f].apply(this,l,h.renderTexture,i.yl.BLEND,e),f>1&&e.multisample>1&&this.returnFilterTexture(e.renderTexture),this.returnFilterTexture(l),this.returnFilterTexture(c)}e.clear(),this.statePool.push(e)},t.prototype.bindAndClear=function(t,e){void 0===e&&(e=i.yl.CLEAR);var r=this.renderer,n=r.renderTexture,o=r.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 s=this.tempRect;s.x=0,s.y=0,s.width=t.filterFrame.width,s.height=t.filterFrame.height,n.bind(t,t.filterFrame,s)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?n.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var a=1&o.stateId||this.forceClear;(e===i.yl.CLEAR||e===i.yl.BLIT&&a)&&this.renderer.framebuffer.clear(0,0,0,0)},t.prototype.applyFilter=function(t,e,r,n){var o=this.renderer;o.state.set(t.state),this.bindAndClear(r,n),t.uniforms.uSampler=e,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(e._frame,e.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(i.lg.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(i.lg.TRIANGLE_STRIP))},t.prototype.calculateSpriteMatrix=function(t,e){var r=this.activeState,n=r.sourceFrame,i=r.destinationFrame,o=e._texture.orig,s=t.set(i.width,0,0,i.height,n.x,n.y),a=e.worldTransform.copyTo(u.y3.TEMP_MATRIX);return a.invert(),s.prepend(a),s.scale(1/o.width,1/o.height),s.translate(e.anchor.x,e.anchor.y),s},t.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},t.prototype.getOptimalFilterTexture=function(t,e,r,n){return void 0===r&&(r=1),void 0===n&&(n=i.G5.NONE),this.texturePool.getOptimalTexture(t,e,r,n)},t.prototype.getFilterTexture=function(t,e,r){if("number"===typeof t){var n=t;t=e,e=n}t=t||this.activeState.renderTexture;var o=this.texturePool.getOptimalTexture(t.width,t.height,e||t.resolution,r||i.G5.NONE);return o.filterFrame=t.filterFrame,o},t.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},t.prototype.emptyPool=function(){this.texturePool.clear(!0)},t.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},t.prototype.transformAABB=function(t,e){var r=Q[0],n=Q[1],i=Q[2],o=Q[3];r.set(e.left,e.top),n.set(e.left,e.bottom),i.set(e.right,e.top),o.set(e.right,e.bottom),t.apply(r,r),t.apply(n,n),t.apply(i,i),t.apply(o,o);var s=Math.min(r.x,n.x,i.x,o.x),a=Math.min(r.y,n.y,i.y,o.y),u=Math.max(r.x,n.x,i.x,o.x),h=Math.max(r.y,n.y,i.y,o.y);e.x=s,e.y=a,e.width=u-s,e.height=h-a},t.prototype.roundFrame=function(t,e,r,n,i){if(!(t.width<=0||t.height<=0||r.width<=0||r.height<=0)){if(i){var o=i.a,s=i.b,a=i.c,u=i.d;if((Math.abs(s)>1e-4||Math.abs(a)>1e-4)&&(Math.abs(o)>1e-4||Math.abs(u)>1e-4))return}i=i?tt.copyFrom(i):tt.identity(),i.translate(-r.x,-r.y).scale(n.width/r.width,n.height/r.height).translate(n.x,n.y),this.transformAABB(i,t),t.ceil(e),this.transformAABB(i.invert(),t)}},t}(),rt=function(){function t(t){this.renderer=t}return t.prototype.flush=function(){},t.prototype.destroy=function(){this.renderer=null},t.prototype.start=function(){},t.prototype.stop=function(){this.flush()},t.prototype.render=function(t){},t}(),nt=function(){function t(t){this.renderer=t,this.emptyRenderer=new rt(t),this.currentRenderer=this.emptyRenderer}return t.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},t.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},t.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},t.prototype.copyBoundTextures=function(t,e){for(var r=this.renderer.texture.boundTextures,n=e-1;n>=0;--n)t[n]=r[n]||null,t[n]&&(t[n]._batchLocation=n)},t.prototype.boundArray=function(t,e,r,n){for(var i=t.elements,o=t.ids,s=t.count,a=0,u=0;u<s;u++){var h=i[u],l=h._batchLocation;if(l>=0&&l<n&&e[l]===h)o[u]=l;else while(a<n){var c=e[a];if(!c||c._batchEnabled!==r||c._batchLocation!==a){o[u]=a,h._batchLocation=a,e[a]=h;break}a++}}},t.prototype.destroy=function(){this.renderer=null},t}(),it=0,ot=function(){function t(t){this.renderer=t,this.webGLVersion=1,this.extensions={},this.supports={uint32Indices:!1},this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this),t.view.addEventListener("webglcontextlost",this.handleContextLost,!1),t.view.addEventListener("webglcontextrestored",this.handleContextRestored,!1)}return Object.defineProperty(t.prototype,"isLost",{get:function(){return!this.gl||this.gl.isContextLost()},enumerable:!1,configurable:!0}),t.prototype.contextChange=function(t){this.gl=t,this.renderer.gl=t,this.renderer.CONTEXT_UID=it++,t.isContextLost()&&t.getExtension("WEBGL_lose_context")&&t.getExtension("WEBGL_lose_context").restoreContext()},t.prototype.initFromContext=function(t){this.gl=t,this.validateContext(t),this.renderer.gl=t,this.renderer.CONTEXT_UID=it++,this.renderer.runners.contextChange.emit(t)},t.prototype.initFromOptions=function(t){var e=this.createContext(this.renderer.view,t);this.initFromContext(e)},t.prototype.createContext=function(t,e){var r;if(n.X.PREFER_ENV>=i.Vi.WEBGL2&&(r=t.getContext("webgl2",e)),r)this.webGLVersion=2;else if(this.webGLVersion=1,r=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),!r)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=r,this.getExtensions(),this.gl},t.prototype.getExtensions=function(){var t=this.gl,e={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")};1===this.webGLVersion?Object.assign(this.extensions,e,{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")}):2===this.webGLVersion&&Object.assign(this.extensions,e,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},t.prototype.handleContextLost=function(t){t.preventDefault()},t.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},t.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()},t.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},t.prototype.validateContext=function(t){var e=t.getContextAttributes(),r="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;r&&(this.webGLVersion=2),e.stencil||console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var n=r||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=n,n||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},t}(),st=function(){function t(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=i.G5.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return t}(),at=new u.Ae,ut=function(){function t(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new N(10,10),this.msaaSamples=null}return t.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 u.Ae,this.hasMRT=!0,this.writeDepthTexture=!0,this.disposeAll(!0),1===this.renderer.context.webGLVersion){var e=this.renderer.context.extensions.drawBuffers,r=this.renderer.context.extensions.depthTexture;n.X.PREFER_ENV===i.Vi.WEBGL_LEGACY&&(e=null,r=null),e?t.drawBuffers=function(t){return e.drawBuffersWEBGL(t)}:(this.hasMRT=!1,t.drawBuffers=function(){}),r||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},t.prototype.bind=function(t,e,r){void 0===r&&(r=0);var n=this.gl;if(t){var i=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,n.bindFramebuffer(n.FRAMEBUFFER,i.framebuffer)),i.mipLevel!==r&&(t.dirtyId++,t.dirtyFormat++,i.mipLevel=r),i.dirtyId!==t.dirtyId&&(i.dirtyId=t.dirtyId,i.dirtyFormat!==t.dirtyFormat?(i.dirtyFormat=t.dirtyFormat,i.dirtySize=t.dirtySize,this.updateFramebuffer(t,r)):i.dirtySize!==t.dirtySize&&(i.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var o=0;o<t.colorTextures.length;o++){var s=t.colorTextures[o];this.renderer.texture.unbind(s.parentTextureArray||s)}if(t.depthTexture&&this.renderer.texture.unbind(t.depthTexture),e){var a=e.width>>r,u=e.height>>r,h=a/e.width;this.setViewport(e.x*h,e.y*h,a,u)}else{a=t.width>>r,u=t.height>>r;this.setViewport(0,0,a,u)}}else this.current&&(this.current=null,n.bindFramebuffer(n.FRAMEBUFFER,null)),e?this.setViewport(e.x,e.y,e.width,e.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},t.prototype.setViewport=function(t,e,r,n){var i=this.viewport;t=Math.round(t),e=Math.round(e),r=Math.round(r),n=Math.round(n),i.width===r&&i.height===n&&i.x===t&&i.y===e||(i.x=t,i.y=e,i.width=r,i.height=n,this.gl.viewport(t,e,r,n))},Object.defineProperty(t.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}),t.prototype.clear=function(t,e,r,n,o){void 0===o&&(o=i.V0.COLOR|i.V0.DEPTH);var s=this.gl;s.clearColor(t,e,r,n),s.clear(o)},t.prototype.initFramebuffer=function(t){var e=this.gl,r=new st(e.createFramebuffer());return r.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=r,this.managedFramebuffers.push(t),t.disposeRunner.add(this),r},t.prototype.resizeFramebuffer=function(t){var e=this.gl,r=t.glFramebuffers[this.CONTEXT_UID];r.msaaBuffer&&(e.bindRenderbuffer(e.RENDERBUFFER,r.msaaBuffer),e.renderbufferStorageMultisample(e.RENDERBUFFER,r.multisample,e.RGBA8,t.width,t.height)),r.stencil&&(e.bindRenderbuffer(e.RENDERBUFFER,r.stencil),r.msaaBuffer?e.renderbufferStorageMultisample(e.RENDERBUFFER,r.multisample,e.DEPTH24_STENCIL8,t.width,t.height):e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,t.width,t.height));var n=t.colorTextures,i=n.length;e.drawBuffers||(i=Math.min(i,1));for(var o=0;o<i;o++){var s=n[o],a=s.parentTextureArray||s;this.renderer.texture.bind(a,0)}t.depthTexture&&this.writeDepthTexture&&this.renderer.texture.bind(t.depthTexture,0)},t.prototype.updateFramebuffer=function(t,e){var r=this.gl,n=t.glFramebuffers[this.CONTEXT_UID],i=t.colorTextures,o=i.length;r.drawBuffers||(o=Math.min(o,1)),n.multisample>1&&this.canMultisampleFramebuffer(t)?(n.msaaBuffer=n.msaaBuffer||r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,n.msaaBuffer),r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.RGBA8,t.width,t.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.RENDERBUFFER,n.msaaBuffer)):n.msaaBuffer&&(r.deleteRenderbuffer(n.msaaBuffer),n.msaaBuffer=null,n.blitFramebuffer&&(n.blitFramebuffer.dispose(),n.blitFramebuffer=null));for(var s=[],a=0;a<o;a++){var u=i[a],h=u.parentTextureArray||u;this.renderer.texture.bind(h,0),0===a&&n.msaaBuffer||(r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0+a,u.target,h._glTextures[this.CONTEXT_UID].texture,e),s.push(r.COLOR_ATTACHMENT0+a))}if(s.length>1&&r.drawBuffers(s),t.depthTexture){var l=this.writeDepthTexture;if(l){var c=t.depthTexture;this.renderer.texture.bind(c,0),r.framebufferTexture2D(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.TEXTURE_2D,c._glTextures[this.CONTEXT_UID].texture,e)}}!t.stencil&&!t.depth||t.depthTexture&&this.writeDepthTexture?n.stencil&&(r.deleteRenderbuffer(n.stencil),n.stencil=null):(n.stencil=n.stencil||r.createRenderbuffer(),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),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,n.stencil))},t.prototype.canMultisampleFramebuffer=function(t){return 1!==this.renderer.context.webGLVersion&&t.colorTextures.length<=1&&!t.depthTexture},t.prototype.detectSamples=function(t){var e=this.msaaSamples,r=i.G5.NONE;if(t<=1||null===e)return r;for(var n=0;n<e.length;n++)if(e[n]<=t){r=e[n];break}return 1===r&&(r=i.G5.NONE),r},t.prototype.blit=function(t,e,r){var n=this,i=n.current,o=n.renderer,s=n.gl,a=n.CONTEXT_UID;if(2===o.context.webGLVersion&&i){var u=i.glFramebuffers[a];if(u){if(!t){if(!u.msaaBuffer)return;var h=i.colorTextures[0];if(!h)return;u.blitFramebuffer||(u.blitFramebuffer=new N(i.width,i.height),u.blitFramebuffer.addColorTexture(0,h)),t=u.blitFramebuffer,t.colorTextures[0]!==h&&(t.colorTextures[0]=h,t.dirtyId++,t.dirtyFormat++),t.width===i.width&&t.height===i.height||(t.width=i.width,t.height=i.height,t.dirtyId++,t.dirtySize++)}e||(e=at,e.width=i.width,e.height=i.height),r||(r=e);var l=e.width===r.width&&e.height===r.height;this.bind(t),s.bindFramebuffer(s.READ_FRAMEBUFFER,u.framebuffer),s.blitFramebuffer(e.left,e.top,e.right,e.bottom,r.left,r.top,r.right,r.bottom,s.COLOR_BUFFER_BIT,l?s.NEAREST:s.LINEAR)}}},t.prototype.disposeFramebuffer=function(t,e){var r=t.glFramebuffers[this.CONTEXT_UID],n=this.gl;if(r){delete t.glFramebuffers[this.CONTEXT_UID];var i=this.managedFramebuffers.indexOf(t);i>=0&&this.managedFramebuffers.splice(i,1),t.disposeRunner.remove(this),e||(n.deleteFramebuffer(r.framebuffer),r.msaaBuffer&&n.deleteRenderbuffer(r.msaaBuffer),r.stencil&&n.deleteRenderbuffer(r.stencil)),r.blitFramebuffer&&r.blitFramebuffer.dispose()}},t.prototype.disposeAll=function(t){var e=this.managedFramebuffers;this.managedFramebuffers=[];for(var r=0;r<e.length;r++)this.disposeFramebuffer(e[r],t)},t.prototype.forceStencil=function(){var t=this.current;if(t){var e=t.glFramebuffers[this.CONTEXT_UID];if(e&&!e.stencil){t.stencil=!0;var r=t.width,n=t.height,i=this.gl,o=i.createRenderbuffer();i.bindRenderbuffer(i.RENDERBUFFER,o),e.msaaBuffer?i.renderbufferStorageMultisample(i.RENDERBUFFER,e.multisample,i.DEPTH24_STENCIL8,r,n):i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,r,n),e.stencil=o,i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_STENCIL_ATTACHMENT,i.RENDERBUFFER,o)}}},t.prototype.reset=function(){this.current=this.unknownFramebuffer,this.viewport=new u.Ae},t.prototype.destroy=function(){this.renderer=null},t}(),ht={5126:4,5123:2,5121:1},lt=function(){function t(t){this.renderer=t,this._activeGeometry=null,this._activeVao=null,this.hasVao=!0,this.hasInstance=!0,this.canUseUInt32ElementIndex=!1,this.managedGeometries={}}return t.prototype.contextChange=function(){this.disposeAll(!0);var t=this.gl=this.renderer.gl,e=this.renderer.context;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,2!==e.webGLVersion){var r=this.renderer.context.extensions.vertexArrayObject;n.X.PREFER_ENV===i.Vi.WEBGL_LEGACY&&(r=null),r?(t.createVertexArray=function(){return r.createVertexArrayOES()},t.bindVertexArray=function(t){return r.bindVertexArrayOES(t)},t.deleteVertexArray=function(t){return r.deleteVertexArrayOES(t)}):(this.hasVao=!1,t.createVertexArray=function(){return null},t.bindVertexArray=function(){return null},t.deleteVertexArray=function(){return null})}if(2!==e.webGLVersion){var o=t.getExtension("ANGLE_instanced_arrays");o?(t.vertexAttribDivisor=function(t,e){return o.vertexAttribDivisorANGLE(t,e)},t.drawElementsInstanced=function(t,e,r,n,i){return o.drawElementsInstancedANGLE(t,e,r,n,i)},t.drawArraysInstanced=function(t,e,r,n){return o.drawArraysInstancedANGLE(t,e,r,n)}):this.hasInstance=!1}this.canUseUInt32ElementIndex=2===e.webGLVersion||!!e.extensions.uint32ElementIndex},t.prototype.bind=function(t,e){e=e||this.renderer.shader.shader;var r=this.gl,n=t.glVertexArrayObjects[this.CONTEXT_UID],i=!1;n||(this.managedGeometries[t.id]=t,t.disposeRunner.add(this),t.glVertexArrayObjects[this.CONTEXT_UID]=n={},i=!0);var o=n[e.program.id]||this.initGeometryVao(t,e,i);this._activeGeometry=t,this._activeVao!==o&&(this._activeVao=o,this.hasVao?r.bindVertexArray(o):this.activateVao(t,e.program)),this.updateBuffers()},t.prototype.reset=function(){this.unbind()},t.prototype.updateBuffers=function(){for(var t=this._activeGeometry,e=this.renderer.buffer,r=0;r<t.buffers.length;r++){var n=t.buffers[r];e.update(n)}},t.prototype.checkCompatibility=function(t,e){var r=t.attributes,n=e.attributeData;for(var i in n)if(!r[i])throw new Error('shader and geometry incompatible, geometry missing the "'+i+'" attribute')},t.prototype.getSignature=function(t,e){var r=t.attributes,n=e.attributeData,i=["g",t.id];for(var o in r)n[o]&&i.push(o,n[o].location);return i.join("-")},t.prototype.initGeometryVao=function(t,e,r){void 0===r&&(r=!0);var n=this.gl,i=this.CONTEXT_UID,o=this.renderer.buffer,s=e.program;s.glPrograms[i]||this.renderer.shader.generateProgram(e),this.checkCompatibility(t,s);var a=this.getSignature(t,s),u=t.glVertexArrayObjects[this.CONTEXT_UID],h=u[a];if(h)return u[s.id]=h,h;var l=t.buffers,c=t.attributes,f={},d={};for(var p in l)f[p]=0,d[p]=0;for(var p in c)!c[p].size&&s.attributeData[p]?c[p].size=s.attributeData[p].size:c[p].size||console.warn("PIXI Geometry attribute '"+p+"' size cannot be determined (likely the bound shader does not have the attribute)"),f[c[p].buffer]+=c[p].size*ht[c[p].type];for(var p in c){var _=c[p],v=_.size;void 0===_.stride&&(f[_.buffer]===v*ht[_.type]?_.stride=0:_.stride=f[_.buffer]),void 0===_.start&&(_.start=d[_.buffer],d[_.buffer]+=v*ht[_.type])}h=n.createVertexArray(),n.bindVertexArray(h);for(var m=0;m<l.length;m++){var y=l[m];o.bind(y),r&&y._glBuffers[i].refCount++}return this.activateVao(t,s),this._activeVao=h,u[s.id]=h,u[a]=h,h},t.prototype.disposeGeometry=function(t,e){var r;if(this.managedGeometries[t.id]){delete this.managedGeometries[t.id];var n=t.glVertexArrayObjects[this.CONTEXT_UID],i=this.gl,o=t.buffers,s=null===(r=this.renderer)||void 0===r?void 0:r.buffer;if(t.disposeRunner.remove(this),n){if(s)for(var a=0;a<o.length;a++){var u=o[a]._glBuffers[this.CONTEXT_UID];u&&(u.refCount--,0!==u.refCount||e||s.dispose(o[a],e))}if(!e)for(var h in n)if("g"===h[0]){var l=n[h];this._activeVao===l&&this.unbind(),i.deleteVertexArray(l)}delete t.glVertexArrayObjects[this.CONTEXT_UID]}}},t.prototype.disposeAll=function(t){for(var e=Object.keys(this.managedGeometries),r=0;r<e.length;r++)this.disposeGeometry(this.managedGeometries[e[r]],t)},t.prototype.activateVao=function(t,e){var r=this.gl,n=this.CONTEXT_UID,i=this.renderer.buffer,o=t.buffers,s=t.attributes;t.indexBuffer&&i.bind(t.indexBuffer);var a=null;for(var u in s){var h=s[u],l=o[h.buffer],c=l._glBuffers[n];if(e.attributeData[u]){a!==c&&(i.bind(l),a=c);var f=e.attributeData[u].location;if(r.enableVertexAttribArray(f),r.vertexAttribPointer(f,h.size,h.type||r.FLOAT,h.normalized,h.stride,h.start),h.instance){if(!this.hasInstance)throw new Error("geometry error, GPU Instancing is not supported on this device");r.vertexAttribDivisor(f,1)}}}},t.prototype.draw=function(t,e,r,n){var i=this.gl,o=this._activeGeometry;if(o.indexBuffer){var s=o.indexBuffer.data.BYTES_PER_ELEMENT,a=2===s?i.UNSIGNED_SHORT:i.UNSIGNED_INT;2===s||4===s&&this.canUseUInt32ElementIndex?o.instanced?i.drawElementsInstanced(t,e||o.indexBuffer.data.length,a,(r||0)*s,n||1):i.drawElements(t,e||o.indexBuffer.data.length,a,(r||0)*s):console.warn("unsupported index buffer type: uint32")}else o.instanced?i.drawArraysInstanced(t,r,e||o.getSize(),n||1):i.drawArrays(t,r,e||o.getSize());return this},t.prototype.unbind=function(){this.gl.bindVertexArray(null),this._activeVao=null,this._activeGeometry=null},t.prototype.destroy=function(){this.renderer=null},t}(),ct=function(){function t(t){void 0===t&&(t=null),this.type=i.A7.NONE,this.autoDetect=!0,this.maskObject=t||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=n.X.FILTER_MULTISAMPLE,this.enabled=!0,this._filters=null,this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null,this._scissorRectLocal=null,this._target=null}return Object.defineProperty(t.prototype,"filter",{get:function(){return this._filters?this._filters[0]:null},set:function(t){t?this._filters?this._filters[0]=t:this._filters=[t]:this._filters=null},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this.pooled&&(this.maskObject=null,this.type=i.A7.NONE,this.autoDetect=!0),this._target=null,this._scissorRectLocal=null},t.prototype.copyCountersOrReset=function(t){t?(this._stencilCounter=t._stencilCounter,this._scissorCounter=t._scissorCounter,this._scissorRect=t._scissorRect):(this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null)},t}();function ft(t,e,r){var n=t.createShader(e);return t.shaderSource(n,r),t.compileShader(n),n}function dt(t,e){var r=t.getShaderSource(e).split("\n").map((function(t,e){return e+": "+t})),n=t.getShaderInfoLog(e),i=n.split("\n"),o={},s=i.map((function(t){return parseFloat(t.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))})).filter((function(t){return!(!t||o[t])&&(o[t]=!0,!0)})),a=[""];s.forEach((function(t){r[t-1]="%c"+r[t-1]+"%c",a.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")}));var u=r.join("\n");a[0]=u,console.error(n),console.groupCollapsed("click to view full shader code"),console.warn.apply(console,a),console.groupEnd()}function pt(t,e,r,n){t.getProgramParameter(e,t.LINK_STATUS)||(t.getShaderParameter(r,t.COMPILE_STATUS)||dt(t,r),t.getShaderParameter(n,t.COMPILE_STATUS)||dt(t,n),console.error("PixiJS Error: Could not initialize shader."),""!==t.getProgramInfoLog(e)&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",t.getProgramInfoLog(e)))}function _t(t){for(var e=new Array(t),r=0;r<e.length;r++)e[r]=!1;return e}function vt(t,e){switch(t){case"float":return 0;case"vec2":return new Float32Array(2*e);case"vec3":return new Float32Array(3*e);case"vec4":return new Float32Array(4*e);case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"ivec2":return new Int32Array(2*e);case"ivec3":return new Int32Array(3*e);case"ivec4":return new Int32Array(4*e);case"uvec2":return new Uint32Array(2*e);case"uvec3":return new Uint32Array(3*e);case"uvec4":return new Uint32Array(4*e);case"bool":return!1;case"bvec2":return _t(2*e);case"bvec3":return _t(3*e);case"bvec4":return _t(4*e);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}var mt,yt={},gt=yt;function Et(){if(gt===yt||gt&&gt.isContextLost()){var t=document.createElement("canvas"),e=void 0;n.X.PREFER_ENV>=i.Vi.WEBGL2&&(e=t.getContext("webgl2",{})),e||(e=t.getContext("webgl",{})||t.getContext("experimental-webgl",{}),e?e.getExtension("WEBGL_draw_buffers"):e=null),gt=e}return gt}function Tt(){if(!mt){mt=i.cB.MEDIUM;var t=Et();if(t&&t.getShaderPrecisionFormat){var e=t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT);mt=e.precision?i.cB.HIGH:i.cB.MEDIUM}}return mt}function bt(t,e,r){if("precision"!==t.substring(0,9)){var n=e;return e===i.cB.HIGH&&r!==i.cB.HIGH&&(n=i.cB.MEDIUM),"precision "+n+" float;\n"+t}return r!==i.cB.HIGH&&"precision highp"===t.substring(0,15)?t.replace("precision highp","precision mediump"):t}var xt={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 Rt(t){return xt[t]}var At=null,It={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 St(t,e){if(!At){var r=Object.keys(It);At={};for(var n=0;n<r.length;++n){var i=r[n];At[t[i]]=It[i]}}return At[e]}var Ot=[{test:function(t){return"float"===t.type&&1===t.size},code:function(t){return'\n if(uv["'+t+'"] !== ud["'+t+'"].value)\n {\n ud["'+t+'"].value = uv["'+t+'"]\n gl.uniform1f(ud["'+t+'"].location, uv["'+t+'"])\n }\n '}},{test:function(t){return("sampler2D"===t.type||"samplerCube"===t.type||"sampler2DArray"===t.type)&&1===t.size&&!t.isArray},code:function(t){return't = syncData.textureCount++;\n\n renderer.texture.bind(uv["'+t+'"], t);\n\n if(ud["'+t+'"].value !== t)\n {\n ud["'+t+'"].value = t;\n gl.uniform1i(ud["'+t+'"].location, t);\n; // eslint-disable-line max-len\n }'}},{test:function(t,e){return"mat3"===t.type&&1===t.size&&void 0!==e.a},code:function(t){return'\n gl.uniformMatrix3fv(ud["'+t+'"].location, false, uv["'+t+'"].toArray(true));\n '},codeUbo:function(t){return"\n var "+t+"_matrix = uv."+t+".toArray(true);\n\n data[offset] = "+t+"_matrix[0];\n data[offset+1] = "+t+"_matrix[1];\n data[offset+2] = "+t+"_matrix[2];\n \n data[offset + 4] = "+t+"_matrix[3];\n data[offset + 5] = "+t+"_matrix[4];\n data[offset + 6] = "+t+"_matrix[5];\n \n data[offset + 8] = "+t+"_matrix[6];\n data[offset + 9] = "+t+"_matrix[7];\n data[offset + 10] = "+t+"_matrix[8];\n "}},{test:function(t,e){return"vec2"===t.type&&1===t.size&&void 0!==e.x},code:function(t){return'\n cv = ud["'+t+'"].value;\n v = uv["'+t+'"];\n\n if(cv[0] !== v.x || cv[1] !== v.y)\n {\n cv[0] = v.x;\n cv[1] = v.y;\n gl.uniform2f(ud["'+t+'"].location, v.x, v.y);\n }'},codeUbo:function(t){return"\n v = uv."+t+";\n\n data[offset] = v.x;\n data[offset+1] = v.y;\n "}},{test:function(t){return"vec2"===t.type&&1===t.size},code:function(t){return'\n cv = ud["'+t+'"].value;\n v = uv["'+t+'"];\n\n if(cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n gl.uniform2f(ud["'+t+'"].location, v[0], v[1]);\n }\n '}},{test:function(t,e){return"vec4"===t.type&&1===t.size&&void 0!==e.width},code:function(t){return'\n cv = ud["'+t+'"].value;\n v = uv["'+t+'"];\n\n if(cv[0] !== v.x || cv[1] !== v.y || cv[2] !== v.width || cv[3] !== v.height)\n {\n cv[0] = v.x;\n cv[1] = v.y;\n cv[2] = v.width;\n cv[3] = v.height;\n gl.uniform4f(ud["'+t+'"].location, v.x, v.y, v.width, v.height)\n }'},codeUbo:function(t){return"\n v = uv."+t+";\n\n data[offset] = v.x;\n data[offset+1] = v.y;\n data[offset+2] = v.width;\n data[offset+3] = v.height;\n "}},{test:function(t){return"vec4"===t.type&&1===t.size},code:function(t){return'\n cv = ud["'+t+'"].value;\n v = uv["'+t+'"];\n\n if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4f(ud["'+t+'"].location, v[0], v[1], v[2], v[3])\n }'}}],Pt={float:"\n if (cv !== v)\n {\n cu.value = v;\n gl.uniform1f(location, v);\n }",vec2:"\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2f(location, v[0], v[1])\n }",vec3:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3f(location, v[0], v[1], v[2])\n }",vec4:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4f(location, v[0], v[1], v[2], v[3]);\n }",int:"\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1i(location, v);\n }",ivec2:"\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2i(location, v[0], v[1]);\n }",ivec3:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3i(location, v[0], v[1], v[2]);\n }",ivec4:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4i(location, v[0], v[1], v[2], v[3]);\n }",uint:"\n if (cv !== v)\n {\n cu.value = v;\n\n gl.uniform1ui(location, v);\n }",uvec2:"\n if (cv[0] !== v[0] || cv[1] !== v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2ui(location, v[0], v[1]);\n }",uvec3:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3ui(location, v[0], v[1], v[2]);\n }",uvec4:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4ui(location, v[0], v[1], v[2], v[3]);\n }",bool:"\n if (cv !== v)\n {\n cu.value = v;\n gl.uniform1i(location, v);\n }",bvec2:"\n if (cv[0] != v[0] || cv[1] != v[1])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n\n gl.uniform2i(location, v[0], v[1]);\n }",bvec3:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n\n gl.uniform3i(location, v[0], v[1], v[2]);\n }",bvec4:"\n if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n {\n cv[0] = v[0];\n cv[1] = v[1];\n cv[2] = v[2];\n cv[3] = v[3];\n\n gl.uniform4i(location, v[0], v[1], v[2], v[3]);\n }",mat2:"gl.uniformMatrix2fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",sampler2D:"gl.uniform1i(location, v)",samplerCube:"gl.uniform1i(location, v)",sampler2DArray:"gl.uniform1i(location, v)"},Nt={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};function Mt(t,e){var r,n=["\n var v = null;\n var cv = null;\n var cu = null;\n var t = 0;\n var gl = renderer.gl;\n "];for(var i in t.uniforms){var o=e[i];if(o){for(var s=t.uniforms[i],a=!1,u=0;u<Ot.length;u++)if(Ot[u].test(o,s)){n.push(Ot[u].code(i,s)),a=!0;break}if(!a){var h=1===o.size?Pt:Nt,l=h[o.type].replace("location",'ud["'+i+'"].location');n.push('\n cu = ud["'+i+'"];\n cv = cu.value;\n v = uv["'+i+'"];\n '+l+";")}}else(null===(r=t.uniforms[i])||void 0===r?void 0:r.group)&&(t.uniforms[i].ubo?n.push("\n renderer.shader.syncUniformBufferGroup(uv."+i+", '"+i+"');\n "):n.push("\n renderer.shader.syncUniformGroup(uv."+i+", syncData);\n "))}return new Function("ud","uv","renderer","syncData",n.join("\n"))}var wt,Dt=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join("\n");function Ct(t){for(var e="",r=0;r<t;++r)r>0&&(e+="\nelse "),r<t-1&&(e+="if(test == "+r+".0){}");return e}function Lt(t,e){if(0===t)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");var r=e.createShader(e.FRAGMENT_SHADER);while(1){var n=Dt.replace(/%forloop%/gi,Ct(t));if(e.shaderSource(r,n),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS))break;t=t/2|0}return t}function Ft(){if("boolean"===typeof wt)return wt;try{var t=new Function("param1","param2","param3","return param1[param2] === param3;");wt=!0===t({a:"b"},"a","b")}catch(e){wt=!1}return wt}var Ut="varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n gl_FragColor *= texture2D(uSampler, vTextureCoord);\n}",Gt="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}\n",Bt=0,Xt={},kt=function(){function t(e,r,o){void 0===o&&(o="pixi-shader"),this.id=Bt++,this.vertexSrc=e||t.defaultVertexSrc,this.fragmentSrc=r||t.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),"#version"!==this.vertexSrc.substring(0,8)&&(o=o.replace(/\s+/g,"-"),Xt[o]?(Xt[o]++,o+="-"+Xt[o]):Xt[o]=1,this.vertexSrc="#define SHADER_NAME "+o+"\n"+this.vertexSrc,this.fragmentSrc="#define SHADER_NAME "+o+"\n"+this.fragmentSrc,this.vertexSrc=bt(this.vertexSrc,n.X.PRECISION_VERTEX,i.cB.HIGH),this.fragmentSrc=bt(this.fragmentSrc,n.X.PRECISION_FRAGMENT,Tt())),this.glPrograms={},this.syncUniforms=null}return Object.defineProperty(t,"defaultVertexSrc",{get:function(){return Gt},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultFragmentSrc",{get:function(){return Ut},enumerable:!1,configurable:!0}),t.from=function(e,r,n){var i=e+r,s=o.GG[i];return s||(o.GG[i]=s=new t(e,r,n)),s},t}(),Ht=function(){function t(t,e){this.uniformBindCount=0,this.program=t,this.uniformGroup=e?e instanceof Z?e:new Z(e):new Z({})}return t.prototype.checkUniformExists=function(t,e){if(e.uniforms[t])return!0;for(var r in e.uniforms){var n=e.uniforms[r];if(n.group&&this.checkUniformExists(t,n))return!0}return!1},t.prototype.destroy=function(){this.uniformGroup=null},Object.defineProperty(t.prototype,"uniforms",{get:function(){return this.uniformGroup.uniforms},enumerable:!1,configurable:!0}),t.from=function(e,r,n){var i=kt.from(e,r);return new t(i,n)},t}(),jt=0,Vt=1,Yt=2,Wt=3,zt=4,qt=5,Kt=function(){function t(){this.data=0,this.blendMode=i.T$.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}return Object.defineProperty(t.prototype,"blend",{get:function(){return!!(this.data&1<<jt)},set:function(t){!!(this.data&1<<jt)!==t&&(this.data^=1<<jt)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"offsets",{get:function(){return!!(this.data&1<<Vt)},set:function(t){!!(this.data&1<<Vt)!==t&&(this.data^=1<<Vt)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"culling",{get:function(){return!!(this.data&1<<Yt)},set:function(t){!!(this.data&1<<Yt)!==t&&(this.data^=1<<Yt)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depthTest",{get:function(){return!!(this.data&1<<Wt)},set:function(t){!!(this.data&1<<Wt)!==t&&(this.data^=1<<Wt)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depthMask",{get:function(){return!!(this.data&1<<qt)},set:function(t){!!(this.data&1<<qt)!==t&&(this.data^=1<<qt)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clockwiseFrontFace",{get:function(){return!!(this.data&1<<zt)},set:function(t){!!(this.data&1<<zt)!==t&&(this.data^=1<<zt)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blendMode",{get:function(){return this._blendMode},set:function(t){this.blend=t!==i.T$.NONE,this._blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"polygonOffset",{get:function(){return this._polygonOffset},set:function(t){this.offsets=!!t,this._polygonOffset=t},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[@pixi/core:State blendMode="+this.blendMode+" clockwiseFrontFace="+this.clockwiseFrontFace+" culling="+this.culling+" depthMask="+this.depthMask+" polygonOffset="+this.polygonOffset+"]"},t.for2d=function(){var e=new t;return e.depthTest=!1,e.blend=!0,e},t}(),$t="attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n}\n",Zt="varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n}\n",Jt=function(t){function e(r,i,o){var s=this,a=kt.from(r||e.defaultVertexSrc,i||e.defaultFragmentSrc);return s=t.call(this,a,o)||this,s.padding=0,s.resolution=n.X.FILTER_RESOLUTION,s.multisample=n.X.FILTER_MULTISAMPLE,s.enabled=!0,s.autoFit=!0,s.state=new Kt,s}return f(e,t),e.prototype.apply=function(t,e,r,n,i){t.applyFilter(this,e,r,n)},Object.defineProperty(e.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(t){this.state.blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resolution",{get:function(){return this._resolution},set:function(t){this._resolution=t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultVertexSrc",{get:function(){return $t},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultFragmentSrc",{get:function(){return Zt},enumerable:!1,configurable:!0}),e}(Ht),Qt="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;\n}\n",te="varying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform sampler2D mask;\nuniform float alpha;\nuniform float npmAlpha;\nuniform vec4 maskClamp;\n\nvoid main(void)\n{\n float clip = step(3.5,\n step(maskClamp.x, vMaskCoord.x) +\n step(maskClamp.y, vMaskCoord.y) +\n step(vMaskCoord.x, maskClamp.z) +\n step(vMaskCoord.y, maskClamp.w));\n\n vec4 original = texture2D(uSampler, vTextureCoord);\n vec4 masky = texture2D(mask, vMaskCoord);\n float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);\n\n original *= (alphaMul * masky.r * alpha * clip);\n\n gl_FragColor = original;\n}\n",ee=new u.y3,re=function(){function t(t,e){this._texture=t,this.mapCoord=new u.y3,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin="undefined"===typeof e?.5:e,this.isSimple=!1}return Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture=t,this._textureID=-1},enumerable:!1,configurable:!0}),t.prototype.multiplyUvs=function(t,e){void 0===e&&(e=t);for(var r=this.mapCoord,n=0;n<t.length;n+=2){var i=t[n],o=t[n+1];e[n]=i*r.a+o*r.c+r.tx,e[n+1]=i*r.b+o*r.d+r.ty}return e},t.prototype.update=function(t){var e=this._texture;if(!e||!e.valid)return!1;if(!t&&this._textureID===e._updateID)return!1;this._textureID=e._updateID,this._updateID++;var r=e._uvs;this.mapCoord.set(r.x1-r.x0,r.y1-r.y0,r.x3-r.x0,r.y3-r.y0,r.x0,r.y0);var n=e.orig,i=e.trim;i&&(ee.set(n.width/i.width,0,0,n.height/i.height,-i.x/i.width,-i.y/i.height),this.mapCoord.append(ee));var o=e.baseTexture,s=this.uClampFrame,a=this.clampMargin/o.resolution,u=this.clampOffset;return s[0]=(e._frame.x+a+u)/o.width,s[1]=(e._frame.y+a+u)/o.height,s[2]=(e._frame.x+e._frame.width-a+u)/o.width,s[3]=(e._frame.y+e._frame.height-a+u)/o.height,this.uClampOffset[0]=u/o.realWidth,this.uClampOffset[1]=u/o.realHeight,this.isSimple=e._frame.width===o.width&&e._frame.height===o.height&&0===e.rotate,!0},t}(),ne=function(t){function e(e,r,n){var i=this,o=null;return"string"!==typeof e&&void 0===r&&void 0===n&&(o=e,e=void 0,r=void 0,n=void 0),i=t.call(this,e||Qt,r||te,n)||this,i.maskSprite=o,i.maskMatrix=new u.y3,i}return f(e,t),Object.defineProperty(e.prototype,"maskSprite",{get:function(){return this._maskSprite},set:function(t){this._maskSprite=t,this._maskSprite&&(this._maskSprite.renderable=!1)},enumerable:!1,configurable:!0}),e.prototype.apply=function(t,e,r,n){var i=this._maskSprite,o=i._texture;o.valid&&(o.uvMatrix||(o.uvMatrix=new re(o,0)),o.uvMatrix.update(),this.uniforms.npmAlpha=o.baseTexture.alphaMode?0:1,this.uniforms.mask=o,this.uniforms.otherMatrix=t.calculateSpriteMatrix(this.maskMatrix,i).prepend(o.uvMatrix.mapCoord),this.uniforms.alpha=i.worldAlpha,this.uniforms.maskClamp=o.uvMatrix.uClampFrame,t.applyFilter(this,e,r,n))},e}(Jt),ie=function(){function t(t){this.renderer=t,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}return t.prototype.setMaskStack=function(t){this.maskStack=t,this.renderer.scissor.setMaskStack(t),this.renderer.stencil.setMaskStack(t)},t.prototype.push=function(t,e){var r=e;if(!r.isMaskData){var n=this.maskDataPool.pop()||new ct;n.pooled=!0,n.maskObject=e,r=n}var o=0!==this.maskStack.length?this.maskStack[this.maskStack.length-1]:null;if(r.copyCountersOrReset(o),r.autoDetect&&this.detect(r),r._target=t,r.type!==i.A7.SPRITE&&this.maskStack.push(r),r.enabled)switch(r.type){case i.A7.SCISSOR:this.renderer.scissor.push(r);break;case i.A7.STENCIL:this.renderer.stencil.push(r);break;case i.A7.SPRITE:r.copyCountersOrReset(null),this.pushSpriteMask(r);break}r.type===i.A7.SPRITE&&this.maskStack.push(r)},t.prototype.pop=function(t){var e=this.maskStack.pop();if(e&&e._target===t){if(e.enabled)switch(e.type){case i.A7.SCISSOR:this.renderer.scissor.pop();break;case i.A7.STENCIL:this.renderer.stencil.pop(e.maskObject);break;case i.A7.SPRITE:this.popSpriteMask(e);break}if(e.reset(),e.pooled&&this.maskDataPool.push(e),0!==this.maskStack.length){var r=this.maskStack[this.maskStack.length-1];r.type===i.A7.SPRITE&&r._filters&&(r._filters[0].maskSprite=r.maskObject)}}},t.prototype.detect=function(t){var e=t.maskObject;e.isSprite?t.type=i.A7.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(t)?t.type=i.A7.SCISSOR:t.type=i.A7.STENCIL},t.prototype.pushSpriteMask=function(t){var e,r,n=t.maskObject,i=t._target,o=t._filters;o||(o=this.alphaMaskPool[this.alphaMaskIndex],o||(o=this.alphaMaskPool[this.alphaMaskIndex]=[new ne]));var s,a,u=this.renderer,h=u.renderTexture;if(h.current){var l=h.current;s=t.resolution||l.resolution,a=null!==(e=t.multisample)&&void 0!==e?e:l.multisample}else s=t.resolution||u.resolution,a=null!==(r=t.multisample)&&void 0!==r?r:u.multisample;o[0].resolution=s,o[0].multisample=a,o[0].maskSprite=n;var c=i.filterArea;i.filterArea=n.getBounds(!0),u.filter.push(i,o),i.filterArea=c,t._filters||this.alphaMaskIndex++},t.prototype.popSpriteMask=function(t){this.renderer.filter.pop(),t._filters?t._filters[0].maskSprite=null:(this.alphaMaskIndex--,this.alphaMaskPool[this.alphaMaskIndex][0].maskSprite=null)},t.prototype.destroy=function(){this.renderer=null},t}(),oe=function(){function t(t){this.renderer=t,this.maskStack=[],this.glConst=0}return t.prototype.getStackLength=function(){return this.maskStack.length},t.prototype.setMaskStack=function(t){var e=this.renderer.gl,r=this.getStackLength();this.maskStack=t;var n=this.getStackLength();n!==r&&(0===n?e.disable(this.glConst):(e.enable(this.glConst),this._useCurrent()))},t.prototype._useCurrent=function(){},t.prototype.destroy=function(){this.renderer=null,this.maskStack=null},t}(),se=new u.y3,ae=function(t){function e(e){var r=t.call(this,e)||this;return r.glConst=WebGLRenderingContext.SCISSOR_TEST,r}return f(e,t),e.prototype.getStackLength=function(){var t=this.maskStack[this.maskStack.length-1];return t?t._scissorCounter:0},e.prototype.calcScissorRect=function(t){if(!t._scissorRectLocal){var e=t._scissorRect,r=t.maskObject,n=this.renderer,i=n.renderTexture;r.renderable=!0;var o=r.getBounds();this.roundFrameToPixels(o,i.current?i.current.resolution:n.resolution,i.sourceFrame,i.destinationFrame,n.projection.transform),r.renderable=!1,e&&o.fit(e),t._scissorRectLocal=o}},e.isMatrixRotated=function(t){if(!t)return!1;var e=t.a,r=t.b,n=t.c,i=t.d;return(Math.abs(r)>1e-4||Math.abs(n)>1e-4)&&(Math.abs(e)>1e-4||Math.abs(i)>1e-4)},e.prototype.testScissor=function(t){var r=t.maskObject;if(!r.isFastRect||!r.isFastRect())return!1;if(e.isMatrixRotated(r.worldTransform))return!1;if(e.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(t);var n=t._scissorRectLocal;return n.width>0&&n.height>0},e.prototype.roundFrameToPixels=function(t,r,n,i,o){e.isMatrixRotated(o)||(o=o?se.copyFrom(o):se.identity(),o.translate(-n.x,-n.y).scale(i.width/n.width,i.height/n.height).translate(i.x,i.y),this.renderer.filter.transformAABB(o,t),t.fit(i),t.x=Math.round(t.x*r),t.y=Math.round(t.y*r),t.width=Math.round(t.width*r),t.height=Math.round(t.height*r))},e.prototype.push=function(t){t._scissorRectLocal||this.calcScissorRect(t);var e=this.renderer.gl;t._scissorRect||e.enable(e.SCISSOR_TEST),t._scissorCounter++,t._scissorRect=t._scissorRectLocal,this._useCurrent()},e.prototype.pop=function(){var t=this.renderer.gl;this.getStackLength()>0?this._useCurrent():t.disable(t.SCISSOR_TEST)},e.prototype._useCurrent=function(){var t,e=this.maskStack[this.maskStack.length-1]._scissorRect;t=this.renderer.renderTexture.current?e.y:this.renderer.height-e.height-e.y,this.renderer.gl.scissor(e.x,t,e.width,e.height)},e}(oe),ue=function(t){function e(e){var r=t.call(this,e)||this;return r.glConst=WebGLRenderingContext.STENCIL_TEST,r}return f(e,t),e.prototype.getStackLength=function(){var t=this.maskStack[this.maskStack.length-1];return t?t._stencilCounter:0},e.prototype.push=function(t){var e=t.maskObject,r=this.renderer.gl,n=t._stencilCounter;0===n&&(this.renderer.framebuffer.forceStencil(),r.clearStencil(0),r.clear(r.STENCIL_BUFFER_BIT),r.enable(r.STENCIL_TEST)),t._stencilCounter++,r.colorMask(!1,!1,!1,!1),r.stencilFunc(r.EQUAL,n,4294967295),r.stencilOp(r.KEEP,r.KEEP,r.INCR),e.renderable=!0,e.render(this.renderer),this.renderer.batch.flush(),e.renderable=!1,this._useCurrent()},e.prototype.pop=function(t){var e=this.renderer.gl;0===this.getStackLength()?e.disable(e.STENCIL_TEST):(e.colorMask(!1,!1,!1,!1),e.stencilOp(e.KEEP,e.KEEP,e.DECR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,this._useCurrent())},e.prototype._useCurrent=function(){var t=this.renderer.gl;t.colorMask(!0,!0,!0,!0),t.stencilFunc(t.EQUAL,this.getStackLength(),4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP)},e}(oe),he=function(){function t(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new u.y3,this.transform=null}return t.prototype.update=function(t,e,r,n){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=e||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,r,n),this.transform&&this.projectionMatrix.append(this.transform);var i=this.renderer;i.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,i.globalUniforms.update(),i.shader.shader&&i.shader.syncUniformGroup(i.shader.shader.uniforms.globals)},t.prototype.calculateProjection=function(t,e,r,n){var i=this.projectionMatrix,o=n?-1:1;i.identity(),i.a=1/e.width*2,i.d=o*(1/e.height*2),i.tx=-1-e.x*i.a,i.ty=-o-e.y*i.d},t.prototype.setTransform=function(t){},t.prototype.destroy=function(){this.renderer=null},t}(),le=new u.Ae,ce=new u.Ae,fe=function(){function t(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new u.Ae,this.destinationFrame=new u.Ae,this.viewportFrame=new u.Ae}return t.prototype.bind=function(t,e,r){void 0===t&&(t=null);var n,i,o,s=this.renderer;this.current=t,t?(n=t.baseTexture,o=n.resolution,e||(le.width=t.frame.width,le.height=t.frame.height,e=le),r||(ce.x=t.frame.x,ce.y=t.frame.y,ce.width=e.width,ce.height=e.height,r=ce),i=n.framebuffer):(o=s.resolution,e||(le.width=s.screen.width,le.height=s.screen.height,e=le),r||(r=le,r.width=e.width,r.height=e.height));var a=this.viewportFrame;a.x=r.x*o,a.y=r.y*o,a.width=r.width*o,a.height=r.height*o,t||(a.y=s.view.height-(a.y+a.height)),a.ceil(),this.renderer.framebuffer.bind(i,a),this.renderer.projection.update(r,e,o,!i),t?this.renderer.mask.setMaskStack(n.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(e),this.destinationFrame.copyFrom(r)},t.prototype.clear=function(t,e){t=this.current?t||this.current.baseTexture.clearColor:t||this.clearColor;var r=this.destinationFrame,n=this.current?this.current.baseTexture:this.renderer.screen,i=r.width!==n.width||r.height!==n.height;if(i){var o=this.viewportFrame,s=o.x,a=o.y,u=o.width,h=o.height;s=Math.round(s),a=Math.round(a),u=Math.round(u),h=Math.round(h),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(s,a,u,h)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],e),i&&this.renderer.scissor.pop()},t.prototype.resize=function(){this.bind(null)},t.prototype.reset=function(){this.bind(null)},t.prototype.destroy=function(){this.renderer=null},t}();function de(t,e,r,n,i){r.buffer.update(i)}var pe={float:"\n data[offset] = v;\n ",vec2:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n ",vec3:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n\n ",vec4:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n data[offset+3] = v[3];\n ",mat2:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n\n data[offset+4] = v[2];\n data[offset+5] = v[3];\n ",mat3:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n\n data[offset + 4] = v[3];\n data[offset + 5] = v[4];\n data[offset + 6] = v[5];\n\n data[offset + 8] = v[6];\n data[offset + 9] = v[7];\n data[offset + 10] = v[8];\n ",mat4:"\n for(var i = 0; i < 16; i++)\n {\n data[offset + i] = v[i];\n }\n "},_e={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:32,mat3:48,mat4:64};function ve(t){for(var e=t.map((function(t){return{data:t,offset:0,dataLen:0,dirty:0}})),r=0,n=0,i=0,o=0;o<e.length;o++){var s=e[o];if(r=_e[s.data.type],s.data.size>1&&(r=Math.max(r,16)*s.data.size),s.dataLen=r,n%r!==0&&n<16){var a=n%r%16;n+=a,i+=a}n+r>16?(i=16*Math.ceil(i/16),s.offset=i,i+=r,n=r):(s.offset=i,n+=r,i+=r)}return i=16*Math.ceil(i/16),{uboElements:e,size:i}}function me(t,e){var r=[];for(var n in t)e[n]&&r.push(e[n]);return r.sort((function(t,e){return t.index-e.index})),r}function ye(t,e){if(!t.autoManage)return{size:0,syncFunc:de};for(var r=me(t.uniforms,e),n=ve(r),i=n.uboElements,o=n.size,s=["\n var v = null;\n var v2 = null;\n var cv = null;\n var t = 0;\n var gl = renderer.gl\n var index = 0;\n var data = buffer.data;\n "],a=0;a<i.length;a++){for(var u=i[a],h=t.uniforms[u.data.name],l=u.data.name,c=!1,f=0;f<Ot.length;f++){var d=Ot[f];if(d.codeUbo&&d.test(u.data,h)){s.push("offset = "+u.offset/4+";",Ot[f].codeUbo(u.data.name,h)),c=!0;break}}if(!c)if(u.data.size>1){var p=Rt(u.data.type),_=Math.max(_e[u.data.type]/16,1),v=p/_,m=(4-v%4)%4;s.push("\n cv = ud."+l+".value;\n v = uv."+l+";\n offset = "+u.offset/4+";\n\n t = 0;\n\n for(var i=0; i < "+u.data.size*_+"; i++)\n {\n for(var j = 0; j < "+v+"; j++)\n {\n data[offset++] = v[t++];\n }\n offset += "+m+";\n }\n\n ")}else{var y=pe[u.data.type];s.push("\n cv = ud."+l+".value;\n v = uv."+l+";\n offset = "+u.offset/4+";\n "+y+";\n ")}}return s.push("\n renderer.buffer.update(buffer);\n "),{size:o,syncFunc:new Function("ud","uv","renderer","syncData","buffer",s.join("\n"))}}(function(){function t(){}})();var ge=function(){function t(t,e){this.program=t,this.uniformData=e,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return t.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},t}();function Ee(t,e){for(var r={},n=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),i=0;i<n;i++){var o=e.getActiveAttrib(t,i);if(0!==o.name.indexOf("gl_")){var s=St(e,o.type),a={type:s,name:o.name,size:Rt(s),location:e.getAttribLocation(t,o.name)};r[o.name]=a}}return r}function Te(t,e){for(var r={},n=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),i=0;i<n;i++){var o=e.getActiveUniform(t,i),s=o.name.replace(/\[.*?\]$/,""),a=!!o.name.match(/\[.*?\]$/),u=St(e,o.type);r[s]={name:s,index:i,type:u,size:o.size,isArray:a,value:vt(u,o.size)}}return r}function be(t,e){var r=ft(t,t.VERTEX_SHADER,e.vertexSrc),n=ft(t,t.FRAGMENT_SHADER,e.fragmentSrc),i=t.createProgram();if(t.attachShader(i,r),t.attachShader(i,n),t.linkProgram(i),t.getProgramParameter(i,t.LINK_STATUS)||pt(t,i,r,n),e.attributeData=Ee(i,t),e.uniformData=Te(i,t),!/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(e.vertexSrc)){var o=Object.keys(e.attributeData);o.sort((function(t,e){return t>e?1:-1}));for(var s=0;s<o.length;s++)e.attributeData[o[s]].location=s,t.bindAttribLocation(i,s,o[s]);t.linkProgram(i)}t.deleteShader(r),t.deleteShader(n);var a={};for(var s in e.uniformData){var u=e.uniformData[s];a[s]={location:t.getUniformLocation(i,s),value:vt(u.type,u.size)}}var h=new ge(i,a);return h}var xe=0,Re={textureCount:0,uboCount:0},Ae=function(){function t(t){this.destroyed=!1,this.renderer=t,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=xe++}return t.prototype.systemCheck=function(){if(!Ft())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")},t.prototype.contextChange=function(t){this.gl=t,this.reset()},t.prototype.bind=function(t,e){t.uniforms.globals=this.renderer.globalUniforms;var r=t.program,n=r.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(t);return this.shader=t,this.program!==r&&(this.program=r,this.gl.useProgram(n.program)),e||(Re.textureCount=0,Re.uboCount=0,this.syncUniformGroup(t.uniformGroup,Re)),n},t.prototype.setUniforms=function(t){var e=this.shader.program,r=e.glPrograms[this.renderer.CONTEXT_UID];e.syncUniforms(r.uniformData,t,this.renderer)},t.prototype.syncUniformGroup=function(t,e){var r=this.getGlProgram();t.static&&t.dirtyId===r.uniformDirtyGroups[t.id]||(r.uniformDirtyGroups[t.id]=t.dirtyId,this.syncUniforms(t,r,e))},t.prototype.syncUniforms=function(t,e,r){var n=t.syncUniforms[this.shader.program.id]||this.createSyncGroups(t);n(e.uniformData,t.uniforms,this.renderer,r)},t.prototype.createSyncGroups=function(t){var e=this.getSignature(t,this.shader.program.uniformData,"u");return this.cache[e]||(this.cache[e]=Mt(t,this.shader.program.uniformData)),t.syncUniforms[this.shader.program.id]=this.cache[e],t.syncUniforms[this.shader.program.id]},t.prototype.syncUniformBufferGroup=function(t,e){var r=this.getGlProgram();if(!t.static||0!==t.dirtyId||!r.uniformGroups[t.id]){t.dirtyId=0;var n=r.uniformGroups[t.id]||this.createSyncBufferGroup(t,r,e);t.buffer.update(),n(r.uniformData,t.uniforms,this.renderer,Re,t.buffer)}this.renderer.buffer.bindBufferBase(t.buffer,r.uniformBufferBindings[e])},t.prototype.createSyncBufferGroup=function(t,e,r){var n=this.renderer.gl;this.renderer.buffer.bind(t.buffer);var i=this.gl.getUniformBlockIndex(e.program,r);e.uniformBufferBindings[r]=this.shader.uniformBindCount,n.uniformBlockBinding(e.program,i,this.shader.uniformBindCount),this.shader.uniformBindCount++;var o=this.getSignature(t,this.shader.program.uniformData,"ubo"),s=this._uboCache[o];if(s||(s=this._uboCache[o]=ye(t,this.shader.program.uniformData)),t.autoManage){var a=new Float32Array(s.size/4);t.buffer.update(a)}return e.uniformGroups[t.id]=s.syncFunc,e.uniformGroups[t.id]},t.prototype.getSignature=function(t,e,r){var n=t.uniforms,i=[r+"-"];for(var o in n)i.push(o),e[o]&&i.push(e[o].type);return i.join("-")},t.prototype.getGlProgram=function(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null},t.prototype.generateProgram=function(t){var e=this.gl,r=t.program,n=be(e,r);return r.glPrograms[this.renderer.CONTEXT_UID]=n,n},t.prototype.reset=function(){this.program=null,this.shader=null},t.prototype.destroy=function(){this.renderer=null,this.destroyed=!0},t}();function Ie(t,e){return void 0===e&&(e=[]),e[i.T$.NORMAL]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[i.T$.ADD]=[t.ONE,t.ONE],e[i.T$.MULTIPLY]=[t.DST_COLOR,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA],e[i.T$.SCREEN]=[t.ONE,t.ONE_MINUS_SRC_COLOR,t.ONE,t.ONE_MINUS_SRC_ALPHA],e[i.T$.OVERLAY]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[i.T$.DARKEN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[i.T$.LIGHTEN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[i.T$.COLOR_DODGE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[i.T$.COLOR_BURN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[i.T$.HARD_LIGHT]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[i.T$.SOFT_LIGHT]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[i.T$.DIFFERENCE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[i.T$.EXCLUSION]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[i.T$.HUE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[i.T$.SATURATION]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[i.T$.COLOR]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[i.T$.LUMINOSITY]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[i.T$.NONE]=[0,0],e[i.T$.NORMAL_NPM]=[t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA],e[i.T$.ADD_NPM]=[t.SRC_ALPHA,t.ONE,t.ONE,t.ONE],e[i.T$.SCREEN_NPM]=[t.SRC_ALPHA,t.ONE_MINUS_SRC_COLOR,t.ONE,t.ONE_MINUS_SRC_ALPHA],e[i.T$.SRC_IN]=[t.DST_ALPHA,t.ZERO],e[i.T$.SRC_OUT]=[t.ONE_MINUS_DST_ALPHA,t.ZERO],e[i.T$.SRC_ATOP]=[t.DST_ALPHA,t.ONE_MINUS_SRC_ALPHA],e[i.T$.DST_OVER]=[t.ONE_MINUS_DST_ALPHA,t.ONE],e[i.T$.DST_IN]=[t.ZERO,t.SRC_ALPHA],e[i.T$.DST_OUT]=[t.ZERO,t.ONE_MINUS_SRC_ALPHA],e[i.T$.DST_ATOP]=[t.ONE_MINUS_DST_ALPHA,t.SRC_ALPHA],e[i.T$.XOR]=[t.ONE_MINUS_DST_ALPHA,t.ONE_MINUS_SRC_ALPHA],e[i.T$.SUBTRACT]=[t.ONE,t.ONE,t.ONE,t.ONE,t.FUNC_REVERSE_SUBTRACT,t.FUNC_ADD],e}var Se=0,Oe=1,Pe=2,Ne=3,Me=4,we=5,De=function(){function t(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=i.T$.NONE,this._blendEq=!1,this.map=[],this.map[Se]=this.setBlend,this.map[Oe]=this.setOffset,this.map[Pe]=this.setCullFace,this.map[Ne]=this.setDepthTest,this.map[Me]=this.setFrontFace,this.map[we]=this.setDepthMask,this.checks=[],this.defaultState=new Kt,this.defaultState.blend=!0}return t.prototype.contextChange=function(t){this.gl=t,this.blendModes=Ie(t),this.set(this.defaultState),this.reset()},t.prototype.set=function(t){if(t=t||this.defaultState,this.stateId!==t.data){var e=this.stateId^t.data,r=0;while(e)1&e&&this.map[r].call(this,!!(t.data&1<<r)),e>>=1,r++;this.stateId=t.data}for(r=0;r<this.checks.length;r++)this.checks[r](this,t)},t.prototype.forceState=function(t){t=t||this.defaultState;for(var e=0;e<this.map.length;e++)this.map[e].call(this,!!(t.data&1<<e));for(e=0;e<this.checks.length;e++)this.checks[e](this,t);this.stateId=t.data},t.prototype.setBlend=function(e){this.updateCheck(t.checkBlendMode,e),this.gl[e?"enable":"disable"](this.gl.BLEND)},t.prototype.setOffset=function(e){this.updateCheck(t.checkPolygonOffset,e),this.gl[e?"enable":"disable"](this.gl.POLYGON_OFFSET_FILL)},t.prototype.setDepthTest=function(t){this.gl[t?"enable":"disable"](this.gl.DEPTH_TEST)},t.prototype.setDepthMask=function(t){this.gl.depthMask(t)},t.prototype.setCullFace=function(t){this.gl[t?"enable":"disable"](this.gl.CULL_FACE)},t.prototype.setFrontFace=function(t){this.gl.frontFace(this.gl[t?"CW":"CCW"])},t.prototype.setBlendMode=function(t){if(t!==this.blendMode){this.blendMode=t;var e=this.blendModes[t],r=this.gl;2===e.length?r.blendFunc(e[0],e[1]):r.blendFuncSeparate(e[0],e[1],e[2],e[3]),6===e.length?(this._blendEq=!0,r.blendEquationSeparate(e[4],e[5])):this._blendEq&&(this._blendEq=!1,r.blendEquationSeparate(r.FUNC_ADD,r.FUNC_ADD))}},t.prototype.setPolygonOffset=function(t,e){this.gl.polygonOffset(t,e)},t.prototype.reset=function(){this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1),this.forceState(this.defaultState),this._blendEq=!0,this.blendMode=-1,this.setBlendMode(0)},t.prototype.updateCheck=function(t,e){var r=this.checks.indexOf(t);e&&-1===r?this.checks.push(t):e||-1===r||this.checks.splice(r,1)},t.checkBlendMode=function(t,e){t.setBlendMode(e.blendMode)},t.checkPolygonOffset=function(t,e){t.setPolygonOffset(1,e.polygonOffset)},t.prototype.destroy=function(){this.gl=null},t}(),Ce=function(){function t(t){this.renderer=t,this.count=0,this.checkCount=0,this.maxIdle=n.X.GC_MAX_IDLE,this.checkCountMax=n.X.GC_MAX_CHECK_COUNT,this.mode=n.X.GC_MODE}return t.prototype.postrender=function(){this.renderer.renderingToScreen&&(this.count++,this.mode!==i.UN.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())))},t.prototype.run=function(){for(var t=this.renderer.texture,e=t.managedTextures,r=!1,n=0;n<e.length;n++){var i=e[n];!i.framebuffer&&this.count-i.touched>this.maxIdle&&(t.destroyTexture(i,!0),e[n]=null,r=!0)}if(r){var o=0;for(n=0;n<e.length;n++)null!==e[n]&&(e[o++]=e[n]);e.length=o}},t.prototype.unload=function(t){var e=this.renderer.texture,r=t._texture;r&&!r.framebuffer&&e.destroyTexture(r);for(var n=t.children.length-1;n>=0;n--)this.unload(t.children[n])},t.prototype.destroy=function(){this.renderer=null},t}();function Le(t){var e,r,n,o,s,a,u,h,l,c,f,d,p,_,v,m,y,g,E,T,b,x,R;return"WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext?(e={},e[i.vK.UNSIGNED_BYTE]=(r={},r[i.I2.RGBA]=t.RGBA8,r[i.I2.RGB]=t.RGB8,r[i.I2.RG]=t.RG8,r[i.I2.RED]=t.R8,r[i.I2.RGBA_INTEGER]=t.RGBA8UI,r[i.I2.RGB_INTEGER]=t.RGB8UI,r[i.I2.RG_INTEGER]=t.RG8UI,r[i.I2.RED_INTEGER]=t.R8UI,r[i.I2.ALPHA]=t.ALPHA,r[i.I2.LUMINANCE]=t.LUMINANCE,r[i.I2.LUMINANCE_ALPHA]=t.LUMINANCE_ALPHA,r),e[i.vK.BYTE]=(n={},n[i.I2.RGBA]=t.RGBA8_SNORM,n[i.I2.RGB]=t.RGB8_SNORM,n[i.I2.RG]=t.RG8_SNORM,n[i.I2.RED]=t.R8_SNORM,n[i.I2.RGBA_INTEGER]=t.RGBA8I,n[i.I2.RGB_INTEGER]=t.RGB8I,n[i.I2.RG_INTEGER]=t.RG8I,n[i.I2.RED_INTEGER]=t.R8I,n),e[i.vK.UNSIGNED_SHORT]=(o={},o[i.I2.RGBA_INTEGER]=t.RGBA16UI,o[i.I2.RGB_INTEGER]=t.RGB16UI,o[i.I2.RG_INTEGER]=t.RG16UI,o[i.I2.RED_INTEGER]=t.R16UI,o[i.I2.DEPTH_COMPONENT]=t.DEPTH_COMPONENT16,o),e[i.vK.SHORT]=(s={},s[i.I2.RGBA_INTEGER]=t.RGBA16I,s[i.I2.RGB_INTEGER]=t.RGB16I,s[i.I2.RG_INTEGER]=t.RG16I,s[i.I2.RED_INTEGER]=t.R16I,s),e[i.vK.UNSIGNED_INT]=(a={},a[i.I2.RGBA_INTEGER]=t.RGBA32UI,a[i.I2.RGB_INTEGER]=t.RGB32UI,a[i.I2.RG_INTEGER]=t.RG32UI,a[i.I2.RED_INTEGER]=t.R32UI,a[i.I2.DEPTH_COMPONENT]=t.DEPTH_COMPONENT24,a),e[i.vK.INT]=(u={},u[i.I2.RGBA_INTEGER]=t.RGBA32I,u[i.I2.RGB_INTEGER]=t.RGB32I,u[i.I2.RG_INTEGER]=t.RG32I,u[i.I2.RED_INTEGER]=t.R32I,u),e[i.vK.FLOAT]=(h={},h[i.I2.RGBA]=t.RGBA32F,h[i.I2.RGB]=t.RGB32F,h[i.I2.RG]=t.RG32F,h[i.I2.RED]=t.R32F,h[i.I2.DEPTH_COMPONENT]=t.DEPTH_COMPONENT32F,h),e[i.vK.HALF_FLOAT]=(l={},l[i.I2.RGBA]=t.RGBA16F,l[i.I2.RGB]=t.RGB16F,l[i.I2.RG]=t.RG16F,l[i.I2.RED]=t.R16F,l),e[i.vK.UNSIGNED_SHORT_5_6_5]=(c={},c[i.I2.RGB]=t.RGB565,c),e[i.vK.UNSIGNED_SHORT_4_4_4_4]=(f={},f[i.I2.RGBA]=t.RGBA4,f),e[i.vK.UNSIGNED_SHORT_5_5_5_1]=(d={},d[i.I2.RGBA]=t.RGB5_A1,d),e[i.vK.UNSIGNED_INT_2_10_10_10_REV]=(p={},p[i.I2.RGBA]=t.RGB10_A2,p[i.I2.RGBA_INTEGER]=t.RGB10_A2UI,p),e[i.vK.UNSIGNED_INT_10F_11F_11F_REV]=(_={},_[i.I2.RGB]=t.R11F_G11F_B10F,_),e[i.vK.UNSIGNED_INT_5_9_9_9_REV]=(v={},v[i.I2.RGB]=t.RGB9_E5,v),e[i.vK.UNSIGNED_INT_24_8]=(m={},m[i.I2.DEPTH_STENCIL]=t.DEPTH24_STENCIL8,m),e[i.vK.FLOAT_32_UNSIGNED_INT_24_8_REV]=(y={},y[i.I2.DEPTH_STENCIL]=t.DEPTH32F_STENCIL8,y),R=e):(g={},g[i.vK.UNSIGNED_BYTE]=(E={},E[i.I2.RGBA]=t.RGBA,E[i.I2.RGB]=t.RGB,E[i.I2.ALPHA]=t.ALPHA,E[i.I2.LUMINANCE]=t.LUMINANCE,E[i.I2.LUMINANCE_ALPHA]=t.LUMINANCE_ALPHA,E),g[i.vK.UNSIGNED_SHORT_5_6_5]=(T={},T[i.I2.RGB]=t.RGB,T),g[i.vK.UNSIGNED_SHORT_4_4_4_4]=(b={},b[i.I2.RGBA]=t.RGBA,b),g[i.vK.UNSIGNED_SHORT_5_5_5_1]=(x={},x[i.I2.RGBA]=t.RGBA,x),R=g),R}var Fe=function(){function t(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=i.vK.UNSIGNED_BYTE,this.internalFormat=i.I2.RGBA,this.samplerType=0}return t}(),Ue=function(){function t(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new y,this.hasIntegerTextures=!1}return t.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=Le(t);var e=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=e;for(var r=0;r<e;r++)this.boundTextures[r]=null;this.emptyTextures={};var n=new Fe(t.createTexture());t.bindTexture(t.TEXTURE_2D,n.texture),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,new Uint8Array(4)),this.emptyTextures[t.TEXTURE_2D]=n,this.emptyTextures[t.TEXTURE_CUBE_MAP]=new Fe(t.createTexture()),t.bindTexture(t.TEXTURE_CUBE_MAP,this.emptyTextures[t.TEXTURE_CUBE_MAP].texture);for(r=0;r<6;r++)t.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+r,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,null);t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MIN_FILTER,t.LINEAR);for(r=0;r<this.boundTextures.length;r++)this.bind(null,r)},t.prototype.bind=function(t,e){void 0===e&&(e=0);var r=this.gl;if(t=null===t||void 0===t?void 0:t.castToBaseTexture(),t&&t.valid&&!t.parentTextureArray){t.touched=this.renderer.textureGC.count;var n=t._glTextures[this.CONTEXT_UID]||this.initTexture(t);this.boundTextures[e]!==t&&(this.currentLocation!==e&&(this.currentLocation=e,r.activeTexture(r.TEXTURE0+e)),r.bindTexture(t.target,n.texture)),n.dirtyId!==t.dirtyId&&(this.currentLocation!==e&&(this.currentLocation=e,r.activeTexture(r.TEXTURE0+e)),this.updateTexture(t)),this.boundTextures[e]=t}else this.currentLocation!==e&&(this.currentLocation=e,r.activeTexture(r.TEXTURE0+e)),r.bindTexture(r.TEXTURE_2D,this.emptyTextures[r.TEXTURE_2D].texture),this.boundTextures[e]=null},t.prototype.reset=function(){this._unknownBoundTextures=!0,this.hasIntegerTextures=!1,this.currentLocation=-1;for(var t=0;t<this.boundTextures.length;t++)this.boundTextures[t]=this.unknownTexture},t.prototype.unbind=function(t){var e=this,r=e.gl,n=e.boundTextures;if(this._unknownBoundTextures){this._unknownBoundTextures=!1;for(var i=0;i<n.length;i++)n[i]===this.unknownTexture&&this.bind(null,i)}for(i=0;i<n.length;i++)n[i]===t&&(this.currentLocation!==i&&(r.activeTexture(r.TEXTURE0+i),this.currentLocation=i),r.bindTexture(t.target,this.emptyTextures[t.target].texture),n[i]=null)},t.prototype.ensureSamplerType=function(t){var e=this,r=e.boundTextures,n=e.hasIntegerTextures,o=e.CONTEXT_UID;if(n)for(var s=t-1;s>=0;--s){var a=r[s];if(a){var u=a._glTextures[o];u.samplerType!==i.oT.FLOAT&&this.renderer.texture.unbind(a)}}},t.prototype.initTexture=function(t){var e=new Fe(this.gl.createTexture());return e.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=e,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),e},t.prototype.initTextureType=function(t,e){var r,n;e.internalFormat=null!==(n=null===(r=this.internalFormats[t.type])||void 0===r?void 0:r[t.format])&&void 0!==n?n:t.format,2===this.webGLVersion&&t.type===i.vK.HALF_FLOAT?e.type=this.gl.HALF_FLOAT:e.type=t.type},t.prototype.updateTexture=function(t){var e=t._glTextures[this.CONTEXT_UID];if(e){var r=this.renderer;if(this.initTextureType(t,e),t.resource&&t.resource.upload(r,t,e))e.samplerType!==i.oT.FLOAT&&(this.hasIntegerTextures=!0);else{var n=t.realWidth,o=t.realHeight,s=r.gl;(e.width!==n||e.height!==o||e.dirtyId<0)&&(e.width=n,e.height=o,s.texImage2D(t.target,0,e.internalFormat,n,o,0,t.format,e.type,null))}t.dirtyStyleId!==e.dirtyStyleId&&this.updateTextureStyle(t),e.dirtyId=t.dirtyId}},t.prototype.destroyTexture=function(t,e){var r=this.gl;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),r.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!e)){var n=this.managedTextures.indexOf(t);-1!==n&&(0,o.Er)(this.managedTextures,n,1)}},t.prototype.updateTextureStyle=function(t){var e=t._glTextures[this.CONTEXT_UID];e&&(t.mipmap!==i.WB.POW2&&2===this.webGLVersion||t.isPowerOfTwo?e.mipmap=t.mipmap>=1:e.mipmap=!1,2===this.webGLVersion||t.isPowerOfTwo?e.wrapMode=t.wrapMode:e.wrapMode=i.Nt.CLAMP,t.resource&&t.resource.style(this.renderer,t,e)||this.setStyle(t,e),e.dirtyStyleId=t.dirtyStyleId)},t.prototype.setStyle=function(t,e){var r=this.gl;if(e.mipmap&&t.mipmap!==i.WB.ON_MANUAL&&r.generateMipmap(t.target),r.texParameteri(t.target,r.TEXTURE_WRAP_S,e.wrapMode),r.texParameteri(t.target,r.TEXTURE_WRAP_T,e.wrapMode),e.mipmap){r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===i.aH.LINEAR?r.LINEAR_MIPMAP_LINEAR:r.NEAREST_MIPMAP_NEAREST);var n=this.renderer.context.extensions.anisotropicFiltering;if(n&&t.anisotropicLevel>0&&t.scaleMode===i.aH.LINEAR){var o=Math.min(t.anisotropicLevel,r.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT));r.texParameterf(t.target,n.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===i.aH.LINEAR?r.LINEAR:r.NEAREST);r.texParameteri(t.target,r.TEXTURE_MAG_FILTER,t.scaleMode===i.aH.LINEAR?r.LINEAR:r.NEAREST)},t.prototype.destroy=function(){this.renderer=null},t}(),Ge={__proto__:null,FilterSystem:et,BatchSystem:nt,ContextSystem:ot,FramebufferSystem:ut,GeometrySystem:lt,MaskSystem:ie,ScissorSystem:ae,StencilSystem:ue,ProjectionSystem:he,RenderTextureSystem:fe,ShaderSystem:Ae,StateSystem:De,TextureGCSystem:Ce,TextureSystem:Ue},Be=new u.y3,Xe=function(t){function e(e,r){void 0===e&&(e=i.N3.UNKNOWN);var s=t.call(this)||this;return r=Object.assign({},n.X.RENDER_OPTIONS,r),s.options=r,s.type=e,s.screen=new u.Ae(0,0,r.width,r.height),s.view=r.view||document.createElement("canvas"),s.resolution=r.resolution||n.X.RESOLUTION,s.useContextAlpha=r.useContextAlpha,s.autoDensity=!!r.autoDensity,s.preserveDrawingBuffer=r.preserveDrawingBuffer,s.clearBeforeRender=r.clearBeforeRender,s._backgroundColor=0,s._backgroundColorRgba=[0,0,0,1],s._backgroundColorString="#000000",s.backgroundColor=r.backgroundColor||s._backgroundColor,s.backgroundAlpha=r.backgroundAlpha,void 0!==r.transparent&&((0,o.a1)("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),s.useContextAlpha=r.transparent,s.backgroundAlpha=r.transparent?0:1),s._lastObjectRendered=null,s.plugins={},s}return f(e,t),e.prototype.initPlugins=function(t){for(var e in t)this.plugins[e]=new t[e](this)},Object.defineProperty(e.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),e.prototype.resize=function(t,e){this.view.width=Math.round(t*this.resolution),this.view.height=Math.round(e*this.resolution);var r=this.view.width/this.resolution,n=this.view.height/this.resolution;this.screen.width=r,this.screen.height=n,this.autoDensity&&(this.view.style.width=r+"px",this.view.style.height=n+"px"),this.emit("resize",r,n)},e.prototype.generateTexture=function(t,e,r,n){void 0===e&&(e={}),"number"===typeof e&&((0,o.a1)("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),e={scaleMode:e,resolution:r,region:n});var i=e.region,s=p(e,["region"]);n=i||t.getLocalBounds(null,!0),0===n.width&&(n.width=1),0===n.height&&(n.height=1);var a=U.create(d({width:n.width,height:n.height},s));return Be.tx=-n.x,Be.ty=-n.y,this.render(t,{renderTexture:a,clear:!1,transform:Be,skipUpdateTransform:!!t.parent}),a},e.prototype.destroy=function(t){for(var e in this.plugins)this.plugins[e].destroy(),this.plugins[e]=null;t&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var r=this;r.plugins=null,r.type=i.N3.UNKNOWN,r.view=null,r.screen=null,r._tempDisplayObjectParent=null,r.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(t){this._backgroundColor=t,this._backgroundColorString=(0,o.XN)(t),(0,o.wK)(t,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(t){this._backgroundColorRgba[3]=t},enumerable:!1,configurable:!0}),e}(o.vp),ke=function(){function t(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return t}(),He=function(){function t(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}return t.prototype.destroy=function(){this.renderer=null},t.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},t.prototype.bind=function(t){var e=this,r=e.gl,n=e.CONTEXT_UID,i=t._glBuffers[n]||this.createGLBuffer(t);r.bindBuffer(t.type,i.buffer)},t.prototype.bindBufferBase=function(t,e){var r=this,n=r.gl,i=r.CONTEXT_UID;if(this.boundBufferBases[e]!==t){var o=t._glBuffers[i]||this.createGLBuffer(t);this.boundBufferBases[e]=t,n.bindBufferBase(n.UNIFORM_BUFFER,e,o.buffer)}},t.prototype.bindBufferRange=function(t,e,r){var n=this,i=n.gl,o=n.CONTEXT_UID;r=r||0;var s=t._glBuffers[o]||this.createGLBuffer(t);i.bindBufferRange(i.UNIFORM_BUFFER,e||0,s.buffer,256*r,256)},t.prototype.update=function(t){var e=this,r=e.gl,n=e.CONTEXT_UID,i=t._glBuffers[n];if(t._updateID!==i.updateID)if(i.updateID=t._updateID,r.bindBuffer(t.type,i.buffer),i.byteLength>=t.data.byteLength)r.bufferSubData(t.type,0,t.data);else{var o=t.static?r.STATIC_DRAW:r.DYNAMIC_DRAW;i.byteLength=t.data.byteLength,r.bufferData(t.type,t.data,o)}},t.prototype.dispose=function(t,e){if(this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var r=t._glBuffers[this.CONTEXT_UID],n=this.gl;t.disposeRunner.remove(this),r&&(e||n.deleteBuffer(r.buffer),delete t._glBuffers[this.CONTEXT_UID])}},t.prototype.disposeAll=function(t){for(var e=Object.keys(this.managedBuffers),r=0;r<e.length;r++)this.dispose(this.managedBuffers[e[r]],t)},t.prototype.createGLBuffer=function(t){var e=this,r=e.CONTEXT_UID,n=e.gl;return t._glBuffers[r]=new ke(n.createBuffer()),this.managedBuffers[t.id]=t,t.disposeRunner.add(this),t._glBuffers[r]},t}(),je=function(t){function e(r){var n=t.call(this,i.N3.WEBGL,r)||this;return r=n.options,n.gl=null,n.CONTEXT_UID=0,n.runners={destroy:new s.R("destroy"),contextChange:new s.R("contextChange"),reset:new s.R("reset"),update:new s.R("update"),postrender:new s.R("postrender"),prerender:new s.R("prerender"),resize:new s.R("resize")},n.runners.contextChange.add(n),n.globalUniforms=new Z({projectionMatrix:new u.y3},!0),n.addSystem(ie,"mask").addSystem(ot,"context").addSystem(De,"state").addSystem(Ae,"shader").addSystem(Ue,"texture").addSystem(He,"buffer").addSystem(lt,"geometry").addSystem(ut,"framebuffer").addSystem(ae,"scissor").addSystem(ue,"stencil").addSystem(he,"projection").addSystem(Ce,"textureGC").addSystem(et,"filter").addSystem(fe,"renderTexture").addSystem(nt,"batch"),n.initPlugins(e.__plugins),n.multisample=void 0,r.context?n.context.initFromContext(r.context):n.context.initFromOptions({alpha:!!n.useContextAlpha,antialias:r.antialias,premultipliedAlpha:n.useContextAlpha&&"notMultiplied"!==n.useContextAlpha,stencil:!0,preserveDrawingBuffer:r.preserveDrawingBuffer,powerPreference:n.options.powerPreference}),n.renderingToScreen=!0,(0,o.DE)(2===n.context.webGLVersion?"WebGL 2":"WebGL 1"),n.resize(n.options.width,n.options.height),n}return f(e,t),e.create=function(t){if((0,o.HR)())return new e(t);throw new Error('WebGL unsupported in this browser, use "pixi.js-legacy" for fallback canvas2d support.')},e.prototype.contextChange=function(){var t,e=this.gl;if(1===this.context.webGLVersion){var r=e.getParameter(e.FRAMEBUFFER_BINDING);e.bindFramebuffer(e.FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.FRAMEBUFFER,r)}else{r=e.getParameter(e.DRAW_FRAMEBUFFER_BINDING);e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,r)}t>=i.G5.HIGH?this.multisample=i.G5.HIGH:t>=i.G5.MEDIUM?this.multisample=i.G5.MEDIUM:t>=i.G5.LOW?this.multisample=i.G5.LOW:this.multisample=i.G5.NONE},e.prototype.addSystem=function(t,e){var r=new t(this);if(this[e])throw new Error('Whoops! The name "'+e+'" is already in use');for(var n in this[e]=r,this.runners)this.runners[n].add(r);return this},e.prototype.render=function(t,e){var r,n,i,s;if(e&&(e instanceof U?((0,o.a1)("6.0.0","Renderer#render arguments changed, use options instead."),r=e,n=arguments[2],i=arguments[3],s=arguments[4]):(r=e.renderTexture,n=e.clear,i=e.transform,s=e.skipUpdateTransform)),this.renderingToScreen=!r,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=i,!this.context.isLost){if(r||(this._lastObjectRendered=t),!s){var a=t.enableTempParent();t.updateTransform(),t.disableTempParent(a)}this.renderTexture.bind(r),this.batch.currentRenderer.start(),(void 0!==n?n:this.clearBeforeRender)&&this.renderTexture.clear(),t.render(this),this.batch.currentRenderer.flush(),r&&r.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},e.prototype.generateTexture=function(e,r,n,i){void 0===r&&(r={});var o=t.prototype.generateTexture.call(this,e,r,n,i);return this.framebuffer.blit(),o},e.prototype.resize=function(e,r){t.prototype.resize.call(this,e,r),this.runners.resize.emit(this.screen.height,this.screen.width)},e.prototype.reset=function(){return this.runners.reset.emit(),this},e.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},e.prototype.destroy=function(e){for(var r in this.runners.destroy.emit(),this.runners)this.runners[r].destroy();t.prototype.destroy.call(this,e),this.gl=null},Object.defineProperty(e.prototype,"extract",{get:function(){return(0,o.a1)("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),e.registerPlugin=function(t,r){e.__plugins=e.__plugins||{},e.__plugins[t]=r},e}(Xe);function Ve(t){return je.create(t)}var Ye="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}",We="attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n}\n",ze=Ye,qe=We,Ke=(function(){function t(t){(0,o.a1)("6.1.0","System class is deprecated, implemement ISystem interface instead."),this.renderer=t}t.prototype.destroy=function(){this.renderer=null}}(),function(){function t(){this.texArray=null,this.blend=0,this.type=i.lg.TRIANGLES,this.start=0,this.size=0,this.data=null}return t}()),$e=function(){function t(){this.elements=[],this.ids=[],this.count=0}return t.prototype.clear=function(){for(var t=0;t<this.count;t++)this.elements[t]=null;this.count=0},t}(),Ze=function(){function t(t){"number"===typeof t?this.rawBinaryData=new ArrayBuffer(t):t instanceof Uint8Array?this.rawBinaryData=t.buffer:this.rawBinaryData=t,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}return Object.defineProperty(t.prototype,"int8View",{get:function(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uint8View",{get:function(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"int16View",{get:function(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uint16View",{get:function(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"int32View",{get:function(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View},enumerable:!1,configurable:!0}),t.prototype.view=function(t){return this[t+"View"]},t.prototype.destroy=function(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null},t.sizeOf=function(t){switch(t){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(t+" isn't a valid view type")}},t}(),Je=function(t){function e(e){var r=t.call(this,e)||this;return r.shaderGenerator=null,r.geometryClass=null,r.vertexSize=null,r.state=Kt.for2d(),r.size=4*n.X.SPRITE_BATCH_SIZE,r._vertexCount=0,r._indexCount=0,r._bufferedElements=[],r._bufferedTextures=[],r._bufferSize=0,r._shader=null,r._packedGeometries=[],r._packedGeometryPoolSize=2,r._flushId=0,r._aBuffers={},r._iBuffers={},r.MAX_TEXTURES=1,r.renderer.on("prerender",r.onPrerender,r),e.runners.contextChange.add(r),r._dcIndex=0,r._aIndex=0,r._iIndex=0,r._attributeBuffer=null,r._indexBuffer=null,r._tempBoundTextures=[],r}return f(e,t),e.prototype.contextChange=function(){var t=this.renderer.gl;n.X.PREFER_ENV===i.Vi.WEBGL_LEGACY?this.MAX_TEXTURES=1:(this.MAX_TEXTURES=Math.min(t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),n.X.SPRITE_MAX_TEXTURES),this.MAX_TEXTURES=Lt(this.MAX_TEXTURES,t)),this._shader=this.shaderGenerator.generateShader(this.MAX_TEXTURES);for(var e=0;e<this._packedGeometryPoolSize;e++)this._packedGeometries[e]=new this.geometryClass;this.initFlushBuffers()},e.prototype.initFlushBuffers=function(){var t=e._drawCallPool,r=e._textureArrayPool,n=this.size/4,i=Math.floor(n/this.MAX_TEXTURES)+1;while(t.length<n)t.push(new Ke);while(r.length<i)r.push(new $e);for(var o=0;o<this.MAX_TEXTURES;o++)this._tempBoundTextures[o]=null},e.prototype.onPrerender=function(){this._flushId=0},e.prototype.render=function(t){t._texture.valid&&(this._vertexCount+t.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=t.vertexData.length/2,this._indexCount+=t.indices.length,this._bufferedTextures[this._bufferSize]=t._texture.baseTexture,this._bufferedElements[this._bufferSize++]=t)},e.prototype.buildTexturesAndDrawCalls=function(){var t=this,r=t._bufferedTextures,n=t.MAX_TEXTURES,i=e._textureArrayPool,o=this.renderer.batch,s=this._tempBoundTextures,a=this.renderer.textureGC.count,u=++y._globalBatch,h=0,l=i[0],c=0;o.copyBoundTextures(s,n);for(var f=0;f<this._bufferSize;++f){var d=r[f];r[f]=null,d._batchEnabled!==u&&(l.count>=n&&(o.boundArray(l,s,u,n),this.buildDrawCalls(l,c,f),c=f,l=i[++h],++u),d._batchEnabled=u,d.touched=a,l.elements[l.count++]=d)}l.count>0&&(o.boundArray(l,s,u,n),this.buildDrawCalls(l,c,this._bufferSize),++h,++u);for(f=0;f<s.length;f++)s[f]=null;y._globalBatch=u},e.prototype.buildDrawCalls=function(t,r,n){var i=this,s=i._bufferedElements,a=i._attributeBuffer,u=i._indexBuffer,h=i.vertexSize,l=e._drawCallPool,c=this._dcIndex,f=this._aIndex,d=this._iIndex,p=l[c];p.start=this._iIndex,p.texArray=t;for(var _=r;_<n;++_){var v=s[_],m=v._texture.baseTexture,y=o.YA[m.alphaMode?1:0][v.blendMode];s[_]=null,r<_&&p.blend!==y&&(p.size=d-p.start,r=_,p=l[++c],p.texArray=t,p.start=d),this.packInterleavedGeometry(v,a,u,f,d),f+=v.vertexData.length/2*h,d+=v.indices.length,p.blend=y}r<n&&(p.size=d-p.start,++c),this._dcIndex=c,this._aIndex=f,this._iIndex=d},e.prototype.bindAndClearTexArray=function(t){for(var e=this.renderer.texture,r=0;r<t.count;r++)e.bind(t.elements[r],t.ids[r]),t.elements[r]=null;t.count=0},e.prototype.updateGeometry=function(){var t=this,e=t._packedGeometries,r=t._attributeBuffer,i=t._indexBuffer;n.X.CAN_UPLOAD_SAME_BUFFER?(e[this._flushId]._buffer.update(r.rawBinaryData),e[this._flushId]._indexBuffer.update(i),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,e[this._flushId]=new this.geometryClass),e[this._flushId]._buffer.update(r.rawBinaryData),e[this._flushId]._indexBuffer.update(i),this.renderer.geometry.bind(e[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++)},e.prototype.drawBatches=function(){for(var t=this._dcIndex,r=this.renderer,n=r.gl,i=r.state,o=e._drawCallPool,s=null,a=0;a<t;a++){var u=o[a],h=u.texArray,l=u.type,c=u.size,f=u.start,d=u.blend;s!==h&&(s=h,this.bindAndClearTexArray(h)),this.state.blendMode=d,i.set(this.state),n.drawElements(l,c,n.UNSIGNED_SHORT,2*f)}},e.prototype.flush=function(){0!==this._vertexCount&&(this._attributeBuffer=this.getAttributeBuffer(this._vertexCount),this._indexBuffer=this.getIndexBuffer(this._indexCount),this._aIndex=0,this._iIndex=0,this._dcIndex=0,this.buildTexturesAndDrawCalls(),this.updateGeometry(),this.drawBatches(),this._bufferSize=0,this._vertexCount=0,this._indexCount=0)},e.prototype.start=function(){this.renderer.state.set(this.state),this.renderer.texture.ensureSamplerType(this.MAX_TEXTURES),this.renderer.shader.bind(this._shader),n.X.CAN_UPLOAD_SAME_BUFFER&&this.renderer.geometry.bind(this._packedGeometries[this._flushId])},e.prototype.stop=function(){this.flush()},e.prototype.destroy=function(){for(var e=0;e<this._packedGeometryPoolSize;e++)this._packedGeometries[e]&&this._packedGeometries[e].destroy();this.renderer.off("prerender",this.onPrerender,this),this._aBuffers=null,this._iBuffers=null,this._packedGeometries=null,this._attributeBuffer=null,this._indexBuffer=null,this._shader&&(this._shader.destroy(),this._shader=null),t.prototype.destroy.call(this)},e.prototype.getAttributeBuffer=function(t){var e=(0,o.a9)(Math.ceil(t/8)),r=(0,o.k3)(e),n=8*e;this._aBuffers.length<=r&&(this._iBuffers.length=r+1);var i=this._aBuffers[n];return i||(this._aBuffers[n]=i=new Ze(n*this.vertexSize*4)),i},e.prototype.getIndexBuffer=function(t){var e=(0,o.a9)(Math.ceil(t/12)),r=(0,o.k3)(e),n=12*e;this._iBuffers.length<=r&&(this._iBuffers.length=r+1);var i=this._iBuffers[r];return i||(this._iBuffers[r]=i=new Uint16Array(n)),i},e.prototype.packInterleavedGeometry=function(t,e,r,n,i){for(var s=e.uint32View,a=e.float32View,u=n/this.vertexSize,h=t.uvs,l=t.indices,c=t.vertexData,f=t._texture.baseTexture._batchLocation,d=Math.min(t.worldAlpha,1),p=d<1&&t._texture.baseTexture.alphaMode?(0,o.rA)(t._tintRGB,d):t._tintRGB+(255*d<<24),_=0;_<c.length;_+=2)a[n++]=c[_],a[n++]=c[_+1],a[n++]=h[_],a[n++]=h[_+1],s[n++]=p,a[n++]=f;for(_=0;_<l.length;_++)r[i++]=u+l[_]},e._drawCallPool=[],e._textureArrayPool=[],e}(rt),Qe=function(){function t(t,e){if(this.vertexSrc=t,this.fragTemplate=e,this.programCache={},this.defaultGroupCache={},e.indexOf("%count%")<0)throw new Error('Fragment template must contain "%count%".');if(e.indexOf("%forloop%")<0)throw new Error('Fragment template must contain "%forloop%".')}return t.prototype.generateShader=function(t){if(!this.programCache[t]){for(var e=new Int32Array(t),r=0;r<t;r++)e[r]=r;this.defaultGroupCache[t]=Z.from({uSamplers:e},!0);var n=this.fragTemplate;n=n.replace(/%count%/gi,""+t),n=n.replace(/%forloop%/gi,this.generateSampleSrc(t)),this.programCache[t]=new kt(this.vertexSrc,n)}var i={tint:new Float32Array([1,1,1,1]),translationMatrix:new u.y3,default:this.defaultGroupCache[t]};return new Ht(this.programCache[t],i)},t.prototype.generateSampleSrc=function(t){var e="";e+="\n",e+="\n";for(var r=0;r<t;r++)r>0&&(e+="\nelse "),r<t-1&&(e+="if(vTextureId < "+r+".5)"),e+="\n{",e+="\n\tcolor = texture2D(uSamplers["+r+"], vTextureCoord);",e+="\n}";return e+="\n",e+="\n",e},t}(),tr=function(t){function e(e){void 0===e&&(e=!1);var r=t.call(this)||this;return r._buffer=new k(null,e,!1),r._indexBuffer=new k(null,e,!0),r.addAttribute("aVertexPosition",r._buffer,2,!1,i.vK.FLOAT).addAttribute("aTextureCoord",r._buffer,2,!1,i.vK.FLOAT).addAttribute("aColor",r._buffer,4,!0,i.vK.UNSIGNED_BYTE).addAttribute("aTextureId",r._buffer,1,!0,i.vK.FLOAT).addIndex(r._indexBuffer),r}return f(e,t),e}(z),er="precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform vec4 tint;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vTextureId = aTextureId;\n vColor = aColor * tint;\n}\n",rr="varying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\nuniform sampler2D uSamplers[%count%];\n\nvoid main(void){\n vec4 color;\n %forloop%\n gl_FragColor = color * vColor;\n}\n",nr=function(){function t(){}return t.create=function(t){var e=Object.assign({vertex:er,fragment:rr,geometryClass:tr,vertexSize:6},t),r=e.vertex,n=e.fragment,i=e.vertexSize,o=e.geometryClass;return function(t){function e(e){var s=t.call(this,e)||this;return s.shaderGenerator=new Qe(r,n),s.geometryClass=o,s.vertexSize=i,s}return f(e,t),e}(Je)},Object.defineProperty(t,"defaultVertexSrc",{get:function(){return er},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultFragmentTemplate",{get:function(){return rr},enumerable:!1,configurable:!0}),t}(),ir=nr.create(),or={},sr=function(t){Object.defineProperty(or,t,{get:function(){return(0,o.a1)("6.0.0","PIXI.systems."+t+" has moved to PIXI."+t),O[t]}})};for(var ar in O)sr(ar);var ur={},hr=function(t){Object.defineProperty(ur,t,{get:function(){return(0,o.a1)("6.0.0","PIXI.resources."+t+" has moved to PIXI."+t),Ge[t]}})};for(var ar in Ge)hr(ar)},5464:function(t,e,r){"use strict";r(8675),r(3462);var n=r(4457),i=r(1188),o=function(t,e){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},o(t,e)};function s(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var a="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}",u="varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\nuniform vec2 uVelocity;\nuniform int uKernelSize;\nuniform float uOffset;\n\nconst int MAX_KERNEL_SIZE = 2048;\n\n// Notice:\n// the perfect way:\n// int kernelSize = min(uKernelSize, MAX_KERNELSIZE);\n// BUT in real use-case , uKernelSize < MAX_KERNELSIZE almost always.\n// So use uKernelSize directly.\n\nvoid main(void)\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n\n if (uKernelSize == 0)\n {\n gl_FragColor = color;\n return;\n }\n\n vec2 velocity = uVelocity / filterArea.xy;\n float offset = -uOffset / length(uVelocity) - 0.5;\n int k = uKernelSize - 1;\n\n for(int i = 0; i < MAX_KERNEL_SIZE - 1; i++) {\n if (i == k) {\n break;\n }\n vec2 bias = velocity * (float(i) / float(k) + offset);\n color += texture2D(uSampler, vTextureCoord + bias);\n }\n gl_FragColor = color / float(uKernelSize);\n}\n";(function(t){function e(e,r,n){void 0===e&&(e=[0,0]),void 0===r&&(r=5),void 0===n&&(n=0);var o=t.call(this,a,u)||this;return o.kernelSize=5,o.uniforms.uVelocity=new Float32Array(2),o._velocity=new i.AB(o.velocityChanged,o),o.setVelocity(e),o.kernelSize=r,o.offset=n,o}s(e,t),e.prototype.apply=function(t,e,r,n){var i=this.velocity,o=i.x,s=i.y;this.uniforms.uKernelSize=0!==o||0!==s?this.kernelSize:0,t.applyFilter(this,e,r,n)},Object.defineProperty(e.prototype,"velocity",{get:function(){return this._velocity},set:function(t){this.setVelocity(t)},enumerable:!1,configurable:!0}),e.prototype.setVelocity=function(t){if(Array.isArray(t)){var e=t[0],r=t[1];this._velocity.set(e,r)}else this._velocity.copyFrom(t)},e.prototype.velocityChanged=function(){this.uniforms.uVelocity[0]=this._velocity.x,this.uniforms.uVelocity[1]=this._velocity.y,this.padding=1+(Math.max(Math.abs(this._velocity.x),Math.abs(this._velocity.y))>>0)},Object.defineProperty(e.prototype,"offset",{get:function(){return this.uniforms.uOffset},set:function(t){this.uniforms.uOffset=t},enumerable:!1,configurable:!0})})(n.wn)},1188:function(t,e,r){"use strict";r.d(e,{AB:function(){return p},Ae:function(){return h},Cd:function(){return l},E9:function(){return a},HS:function(){return n},Lv:function(){return R},Pj:function(){return c},ZX:function(){return s},_b:function(){return i},c9:function(){return d},jl:function(){return o},mg:function(){return f},wx:function(){return A},y3:function(){return _}});r(8675),r(3462);var n,i=2*Math.PI,o=180/Math.PI,s=Math.PI/180;(function(t){t[t["POLY"]=0]="POLY",t[t["RECT"]=1]="RECT",t[t["CIRC"]=2]="CIRC",t[t["ELIP"]=3]="ELIP",t[t["RREC"]=4]="RREC"})(n||(n={}));var a=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=0,this.y=0,this.x=t,this.y=e}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(t){return this.set(t.x,t.y),this},t.prototype.copyTo=function(t){return t.set(this.x,this.y),t},t.prototype.equals=function(t){return t.x===this.x&&t.y===this.y},t.prototype.set=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this},t.prototype.toString=function(){return"[@pixi/math:Point x="+this.x+" y="+this.y+"]"},t}(),u=[new a,new a,new a,new a],h=function(){function t(t,e,r,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),void 0===i&&(i=0),this.x=Number(t),this.y=Number(e),this.width=Number(r),this.height=Number(i),this.type=n.RECT}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t,"EMPTY",{get:function(){return new t(0,0,0,0)},enumerable:!1,configurable:!0}),t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copyFrom=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},t.prototype.copyTo=function(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t},t.prototype.contains=function(t,e){return!(this.width<=0||this.height<=0)&&(t>=this.x&&t<this.x+this.width&&e>=this.y&&e<this.y+this.height)},t.prototype.intersects=function(t,e){if(!e){var r=this.x<t.x?t.x:this.x,n=this.right>t.right?t.right:this.right;if(n<=r)return!1;var i=this.y<t.y?t.y:this.y,o=this.bottom>t.bottom?t.bottom:this.bottom;return o>i}var s=this.left,a=this.right,h=this.top,l=this.bottom;if(a<=s||l<=h)return!1;var c=u[0].set(t.left,t.top),f=u[1].set(t.left,t.bottom),d=u[2].set(t.right,t.top),p=u[3].set(t.right,t.bottom);if(d.x<=c.x||f.y<=c.y)return!1;var _=Math.sign(e.a*e.d-e.b*e.c);if(0===_)return!1;if(e.apply(c,c),e.apply(f,f),e.apply(d,d),e.apply(p,p),Math.max(c.x,f.x,d.x,p.x)<=s||Math.min(c.x,f.x,d.x,p.x)>=a||Math.max(c.y,f.y,d.y,p.y)<=h||Math.min(c.y,f.y,d.y,p.y)>=l)return!1;var v=_*(f.y-c.y),m=_*(c.x-f.x),y=v*s+m*h,g=v*a+m*h,E=v*s+m*l,T=v*a+m*l;if(Math.max(y,g,E,T)<=v*c.x+m*c.y||Math.min(y,g,E,T)>=v*p.x+m*p.y)return!1;var b=_*(c.y-d.y),x=_*(d.x-c.x),R=b*s+x*h,A=b*a+x*h,I=b*s+x*l,S=b*a+x*l;return!(Math.max(R,A,I,S)<=b*c.x+x*c.y||Math.min(R,A,I,S)>=b*p.x+x*p.y)},t.prototype.pad=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e,this},t.prototype.fit=function(t){var e=Math.max(this.x,t.x),r=Math.min(this.x+this.width,t.x+t.width),n=Math.max(this.y,t.y),i=Math.min(this.y+this.height,t.y+t.height);return this.x=e,this.width=Math.max(r-e,0),this.y=n,this.height=Math.max(i-n,0),this},t.prototype.ceil=function(t,e){void 0===t&&(t=1),void 0===e&&(e=.001);var r=Math.ceil((this.x+this.width-e)*t)/t,n=Math.ceil((this.y+this.height-e)*t)/t;return this.x=Math.floor((this.x+e)*t)/t,this.y=Math.floor((this.y+e)*t)/t,this.width=r-this.x,this.height=n-this.y,this},t.prototype.enlarge=function(t){var e=Math.min(this.x,t.x),r=Math.max(this.x+this.width,t.x+t.width),n=Math.min(this.y,t.y),i=Math.max(this.y+this.height,t.y+t.height);return this.x=e,this.width=r-e,this.y=n,this.height=i-n,this},t.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},t}(),l=function(){function t(t,e,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),this.x=t,this.y=e,this.radius=r,this.type=n.CIRC}return t.prototype.clone=function(){return new t(this.x,this.y,this.radius)},t.prototype.contains=function(t,e){if(this.radius<=0)return!1;var r=this.radius*this.radius,n=this.x-t,i=this.y-e;return n*=n,i*=i,n+i<=r},t.prototype.getBounds=function(){return new h(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)},t.prototype.toString=function(){return"[@pixi/math:Circle x="+this.x+" y="+this.y+" radius="+this.radius+"]"},t}(),c=function(){function t(t,e,r,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),void 0===i&&(i=0),this.x=t,this.y=e,this.width=r,this.height=i,this.type=n.ELIP}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.contains=function(t,e){if(this.width<=0||this.height<=0)return!1;var r=(t-this.x)/this.width,n=(e-this.y)/this.height;return r*=r,n*=n,r+n<=1},t.prototype.getBounds=function(){return new h(this.x-this.width,this.y-this.height,this.width,this.height)},t.prototype.toString=function(){return"[@pixi/math:Ellipse x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},t}(),f=function(){function t(){for(var t=arguments,e=[],r=0;r<arguments.length;r++)e[r]=t[r];var i=Array.isArray(e[0])?e[0]:e;if("number"!==typeof i[0]){for(var o=[],s=0,a=i.length;s<a;s++)o.push(i[s].x,i[s].y);i=o}this.points=i,this.type=n.POLY,this.closeStroke=!0}return t.prototype.clone=function(){var e=this.points.slice(),r=new t(e);return r.closeStroke=this.closeStroke,r},t.prototype.contains=function(t,e){for(var r=!1,n=this.points.length/2,i=0,o=n-1;i<n;o=i++){var s=this.points[2*i],a=this.points[2*i+1],u=this.points[2*o],h=this.points[2*o+1],l=a>e!==h>e&&t<(e-a)/(h-a)*(u-s)+s;l&&(r=!r)}return r},t.prototype.toString=function(){return"[@pixi/math:PolygoncloseStroke="+this.closeStroke+"points="+this.points.reduce((function(t,e){return t+", "+e}),"")+"]"},t}(),d=function(){function t(t,e,r,i,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=20),this.x=t,this.y=e,this.width=r,this.height=i,this.radius=o,this.type=n.RREC}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height,this.radius)},t.prototype.contains=function(t,e){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height){var r=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(e>=this.y+r&&e<=this.y+this.height-r||t>=this.x+r&&t<=this.x+this.width-r)return!0;var n=t-(this.x+r),i=e-(this.y+r),o=r*r;if(n*n+i*i<=o)return!0;if(n=t-(this.x+this.width-r),n*n+i*i<=o)return!0;if(i=e-(this.y+this.height-r),n*n+i*i<=o)return!0;if(n=t-(this.x+r),n*n+i*i<=o)return!0}return!1},t.prototype.toString=function(){return"[@pixi/math:RoundedRectangle x="+this.x+" y="+this.y+"width="+this.width+" height="+this.height+" radius="+this.radius+"]"},t}(),p=function(){function t(t,e,r,n){void 0===r&&(r=0),void 0===n&&(n=0),this._x=r,this._y=n,this.cb=t,this.scope=e}return t.prototype.clone=function(e,r){return void 0===e&&(e=this.cb),void 0===r&&(r=this.scope),new t(e,r,this._x,this._y)},t.prototype.set=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this._x===t&&this._y===e||(this._x=t,this._y=e,this.cb.call(this.scope)),this},t.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},t.prototype.copyTo=function(t){return t.set(this._x,this._y),t},t.prototype.equals=function(t){return t.x===this._x&&t.y===this._y},t.prototype.toString=function(){return"[@pixi/math:ObservablePoint x=0 y=0 scope="+this.scope+"]"},Object.defineProperty(t.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(t.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}),t}(),_=function(){function t(t,e,r,n,i,o){void 0===t&&(t=1),void 0===e&&(e=0),void 0===r&&(r=0),void 0===n&&(n=1),void 0===i&&(i=0),void 0===o&&(o=0),this.array=null,this.a=t,this.b=e,this.c=r,this.d=n,this.tx=i,this.ty=o}return t.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]},t.prototype.set=function(t,e,r,n,i,o){return this.a=t,this.b=e,this.c=r,this.d=n,this.tx=i,this.ty=o,this},t.prototype.toArray=function(t,e){this.array||(this.array=new Float32Array(9));var r=e||this.array;return t?(r[0]=this.a,r[1]=this.b,r[2]=0,r[3]=this.c,r[4]=this.d,r[5]=0,r[6]=this.tx,r[7]=this.ty,r[8]=1):(r[0]=this.a,r[1]=this.c,r[2]=this.tx,r[3]=this.b,r[4]=this.d,r[5]=this.ty,r[6]=0,r[7]=0,r[8]=1),r},t.prototype.apply=function(t,e){e=e||new a;var r=t.x,n=t.y;return e.x=this.a*r+this.c*n+this.tx,e.y=this.b*r+this.d*n+this.ty,e},t.prototype.applyInverse=function(t,e){e=e||new a;var r=1/(this.a*this.d+this.c*-this.b),n=t.x,i=t.y;return e.x=this.d*r*n+-this.c*r*i+(this.ty*this.c-this.tx*this.d)*r,e.y=this.a*r*i+-this.b*r*n+(-this.ty*this.a+this.tx*this.b)*r,e},t.prototype.translate=function(t,e){return this.tx+=t,this.ty+=e,this},t.prototype.scale=function(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this},t.prototype.rotate=function(t){var e=Math.cos(t),r=Math.sin(t),n=this.a,i=this.c,o=this.tx;return this.a=n*e-this.b*r,this.b=n*r+this.b*e,this.c=i*e-this.d*r,this.d=i*r+this.d*e,this.tx=o*e-this.ty*r,this.ty=o*r+this.ty*e,this},t.prototype.append=function(t){var e=this.a,r=this.b,n=this.c,i=this.d;return this.a=t.a*e+t.b*n,this.b=t.a*r+t.b*i,this.c=t.c*e+t.d*n,this.d=t.c*r+t.d*i,this.tx=t.tx*e+t.ty*n+this.tx,this.ty=t.tx*r+t.ty*i+this.ty,this},t.prototype.setTransform=function(t,e,r,n,i,o,s,a,u){return this.a=Math.cos(s+u)*i,this.b=Math.sin(s+u)*i,this.c=-Math.sin(s-a)*o,this.d=Math.cos(s-a)*o,this.tx=t-(r*this.a+n*this.c),this.ty=e-(r*this.b+n*this.d),this},t.prototype.prepend=function(t){var e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){var r=this.a,n=this.c;this.a=r*t.a+this.b*t.c,this.b=r*t.b+this.b*t.d,this.c=n*t.a+this.d*t.c,this.d=n*t.b+this.d*t.d}return this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty,this},t.prototype.decompose=function(t){var e=this.a,r=this.b,n=this.c,o=this.d,s=t.pivot,a=-Math.atan2(-n,o),u=Math.atan2(r,e),h=Math.abs(a+u);return h<1e-5||Math.abs(i-h)<1e-5?(t.rotation=u,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=a,t.skew.y=u),t.scale.x=Math.sqrt(e*e+r*r),t.scale.y=Math.sqrt(n*n+o*o),t.position.x=this.tx+(s.x*e+s.y*n),t.position.y=this.ty+(s.x*r+s.y*o),t},t.prototype.invert=function(){var t=this.a,e=this.b,r=this.c,n=this.d,i=this.tx,o=t*n-e*r;return this.a=n/o,this.b=-e/o,this.c=-r/o,this.d=t/o,this.tx=(r*this.ty-n*i)/o,this.ty=-(t*this.ty-e*i)/o,this},t.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},t.prototype.clone=function(){var e=new t;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},t.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},t.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},t.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(t,"IDENTITY",{get:function(){return new t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"TEMP_MATRIX",{get:function(){return new t},enumerable:!1,configurable:!0}),t}(),v=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],m=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],y=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],g=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],E=[],T=[],b=Math.sign;function x(){for(var t=0;t<16;t++){var e=[];E.push(e);for(var r=0;r<16;r++)for(var n=b(v[t]*v[r]+y[t]*m[r]),i=b(m[t]*v[r]+g[t]*m[r]),o=b(v[t]*y[r]+y[t]*g[r]),s=b(m[t]*y[r]+g[t]*g[r]),a=0;a<16;a++)if(v[a]===n&&m[a]===i&&y[a]===o&&g[a]===s){e.push(a);break}}for(t=0;t<16;t++){var u=new _;u.set(v[t],m[t],y[t],g[t],0,0),T.push(u)}}x();var R={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(t){return v[t]},uY:function(t){return m[t]},vX:function(t){return y[t]},vY:function(t){return g[t]},inv:function(t){return 8&t?15&t:7&-t},add:function(t,e){return E[t][e]},sub:function(t,e){return E[t][R.inv(e)]},rotate180:function(t){return 4^t},isVertical:function(t){return 2===(3&t)},byDirection:function(t,e){return 2*Math.abs(t)<=Math.abs(e)?e>=0?R.S:R.N:2*Math.abs(e)<=Math.abs(t)?t>0?R.E:R.W:e>0?t>0?R.SE:R.SW:t>0?R.NE:R.NW},matrixAppendRotationInv:function(t,e,r,n){void 0===r&&(r=0),void 0===n&&(n=0);var i=T[R.inv(e)];i.tx=r,i.ty=n,t.append(i)}},A=function(){function t(){this.worldTransform=new _,this.localTransform=new _,this.position=new p(this.onChange,this,0,0),this.scale=new p(this.onChange,this,1,1),this.pivot=new p(this.onChange,this,0,0),this.skew=new p(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 t.prototype.onChange=function(){this._localID++},t.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++},t.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+") ]"},t.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)},t.prototype.updateTransform=function(t){var e=this.localTransform;if(this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){var r=t.worldTransform,n=this.worldTransform;n.a=e.a*r.a+e.b*r.c,n.b=e.a*r.b+e.b*r.d,n.c=e.c*r.a+e.d*r.c,n.d=e.c*r.b+e.d*r.d,n.tx=e.tx*r.a+e.ty*r.c+r.tx,n.ty=e.tx*r.b+e.ty*r.d+r.ty,this._parentID=t._worldID,this._worldID++}},t.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())},enumerable:!1,configurable:!0}),t.IDENTITY=new t,t}()},8658:function(t,e,r){"use strict";r.d(e,{R:function(){return n}});r(1703);var n=function(){function t(t){this.items=[],this._name=t,this._aliasCount=0}return t.prototype.emit=function(t,e,r,n,i,o,s,a){if(arguments.length>8)throw new Error("max arguments reached");var u=this,h=u.name,l=u.items;this._aliasCount++;for(var c=0,f=l.length;c<f;c++)l[c][h](t,e,r,n,i,o,s,a);return l===this.items&&this._aliasCount--,this},t.prototype.ensureNonAliasedItems=function(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},t.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},t.prototype.remove=function(t){var e=this.items.indexOf(t);return-1!==e&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this},t.prototype.contains=function(t){return-1!==this.items.indexOf(t)},t.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},t.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(t.prototype,"empty",{get:function(){return 0===this.items.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),t}();Object.defineProperties(n.prototype,{dispatch:{value:n.prototype.emit},run:{value:n.prototype.emit}})},2307:function(t,e,r){"use strict";r.d(e,{t:function(){return X},X:function(){return j}});var n=/iPhone/i,i=/iPod/i,o=/iPad/i,s=/\biOS-universal(?:.+)Mac\b/i,a=/\bAndroid(?:.+)Mobile\b/i,u=/Android/i,h=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,l=/Silk/i,c=/Windows Phone/i,f=/\bWindows(?:.+)ARM\b/i,d=/BlackBerry/i,p=/BB10/i,_=/Opera Mini/i,v=/\b(CriOS|Chrome)(?:.+)Mobile/i,m=/Mobile(?:.+)Firefox\b/i,y=function(t){return"undefined"!==typeof t&&"MacIntel"===t.platform&&"number"===typeof t.maxTouchPoints&&t.maxTouchPoints>1&&"undefined"===typeof MSStream};function g(t){return function(e){return e.test(t)}}function E(t){var e={userAgent:"",platform:"",maxTouchPoints:0};t||"undefined"===typeof navigator?"string"===typeof t?e.userAgent=t:t&&t.userAgent&&(e={userAgent:t.userAgent,platform:t.platform,maxTouchPoints:t.maxTouchPoints||0}):e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var r=e.userAgent,E=r.split("[FBAN");"undefined"!==typeof E[1]&&(r=E[0]),E=r.split("Twitter"),"undefined"!==typeof E[1]&&(r=E[0]);var T=g(r),b={apple:{phone:T(n)&&!T(c),ipod:T(i),tablet:!T(n)&&(T(o)||y(e))&&!T(c),universal:T(s),device:(T(n)||T(i)||T(o)||T(s)||y(e))&&!T(c)},amazon:{phone:T(h),tablet:!T(h)&&T(l),device:T(h)||T(l)},android:{phone:!T(c)&&T(h)||!T(c)&&T(a),tablet:!T(c)&&!T(h)&&!T(a)&&(T(l)||T(u)),device:!T(c)&&(T(h)||T(l)||T(a)||T(u))||T(/\bokhttp\b/i)},windows:{phone:T(c),tablet:T(f),device:T(c)||T(f)},other:{blackberry:T(d),blackberry10:T(p),opera:T(_),firefox:T(m),chrome:T(v),device:T(d)||T(p)||T(_)||T(m)||T(v)},any:!1,phone:!1,tablet:!1};return b.any=b.apple.device||b.android.device||b.windows.device||b.other.device,b.phone=b.apple.phone||b.android.phone||b.windows.phone,b.tablet=b.apple.tablet||b.android.tablet||b.windows.tablet,b}
/*!
* @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 T,b,x,R,A,I,S,O,P,N,M,w,D,C,L,F,U,G,B,X=E(globalThis.navigator);function k(t){var e=!0;if(X.tablet||X.phone){if(X.apple.device){var r=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(r){var n=parseInt(r[1],10);n<11&&(e=!1)}}if(X.android.device){r=navigator.userAgent.match(/Android\s([0-9.]*)/);if(r){n=parseInt(r[1],10);n<7&&(e=!1)}}}return e?t:4}function H(){return!X.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
*/(function(t){t[t["WEBGL_LEGACY"]=0]="WEBGL_LEGACY",t[t["WEBGL"]=1]="WEBGL",t[t["WEBGL2"]=2]="WEBGL2"})(T||(T={})),function(t){t[t["UNKNOWN"]=0]="UNKNOWN",t[t["WEBGL"]=1]="WEBGL",t[t["CANVAS"]=2]="CANVAS"}(b||(b={})),function(t){t[t["COLOR"]=16384]="COLOR",t[t["DEPTH"]=256]="DEPTH",t[t["STENCIL"]=1024]="STENCIL"}(x||(x={})),function(t){t[t["NORMAL"]=0]="NORMAL",t[t["ADD"]=1]="ADD",t[t["MULTIPLY"]=2]="MULTIPLY",t[t["SCREEN"]=3]="SCREEN",t[t["OVERLAY"]=4]="OVERLAY",t[t["DARKEN"]=5]="DARKEN",t[t["LIGHTEN"]=6]="LIGHTEN",t[t["COLOR_DODGE"]=7]="COLOR_DODGE",t[t["COLOR_BURN"]=8]="COLOR_BURN",t[t["HARD_LIGHT"]=9]="HARD_LIGHT",t[t["SOFT_LIGHT"]=10]="SOFT_LIGHT",t[t["DIFFERENCE"]=11]="DIFFERENCE",t[t["EXCLUSION"]=12]="EXCLUSION",t[t["HUE"]=13]="HUE",t[t["SATURATION"]=14]="SATURATION",t[t["COLOR"]=15]="COLOR",t[t["LUMINOSITY"]=16]="LUMINOSITY",t[t["NORMAL_NPM"]=17]="NORMAL_NPM",t[t["ADD_NPM"]=18]="ADD_NPM",t[t["SCREEN_NPM"]=19]="SCREEN_NPM",t[t["NONE"]=20]="NONE",t[t["SRC_OVER"]=0]="SRC_OVER",t[t["SRC_IN"]=21]="SRC_IN",t[t["SRC_OUT"]=22]="SRC_OUT",t[t["SRC_ATOP"]=23]="SRC_ATOP",t[t["DST_OVER"]=24]="DST_OVER",t[t["DST_IN"]=25]="DST_IN",t[t["DST_OUT"]=26]="DST_OUT",t[t["DST_ATOP"]=27]="DST_ATOP",t[t["ERASE"]=26]="ERASE",t[t["SUBTRACT"]=28]="SUBTRACT",t[t["XOR"]=29]="XOR"}(R||(R={})),function(t){t[t["POINTS"]=0]="POINTS",t[t["LINES"]=1]="LINES",t[t["LINE_LOOP"]=2]="LINE_LOOP",t[t["LINE_STRIP"]=3]="LINE_STRIP",t[t["TRIANGLES"]=4]="TRIANGLES",t[t["TRIANGLE_STRIP"]=5]="TRIANGLE_STRIP",t[t["TRIANGLE_FAN"]=6]="TRIANGLE_FAN"}(A||(A={})),function(t){t[t["RGBA"]=6408]="RGBA",t[t["RGB"]=6407]="RGB",t[t["RG"]=33319]="RG",t[t["RED"]=6403]="RED",t[t["RGBA_INTEGER"]=36249]="RGBA_INTEGER",t[t["RGB_INTEGER"]=36248]="RGB_INTEGER",t[t["RG_INTEGER"]=33320]="RG_INTEGER",t[t["RED_INTEGER"]=36244]="RED_INTEGER",t[t["ALPHA"]=6406]="ALPHA",t[t["LUMINANCE"]=6409]="LUMINANCE",t[t["LUMINANCE_ALPHA"]=6410]="LUMINANCE_ALPHA",t[t["DEPTH_COMPONENT"]=6402]="DEPTH_COMPONENT",t[t["DEPTH_STENCIL"]=34041]="DEPTH_STENCIL"}(I||(I={})),function(t){t[t["TEXTURE_2D"]=3553]="TEXTURE_2D",t[t["TEXTURE_CUBE_MAP"]=34067]="TEXTURE_CUBE_MAP",t[t["TEXTURE_2D_ARRAY"]=35866]="TEXTURE_2D_ARRAY",t[t["TEXTURE_CUBE_MAP_POSITIVE_X"]=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t["TEXTURE_CUBE_MAP_NEGATIVE_X"]=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t["TEXTURE_CUBE_MAP_POSITIVE_Y"]=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t["TEXTURE_CUBE_MAP_NEGATIVE_Y"]=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t["TEXTURE_CUBE_MAP_POSITIVE_Z"]=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t["TEXTURE_CUBE_MAP_NEGATIVE_Z"]=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(S||(S={})),function(t){t[t["UNSIGNED_BYTE"]=5121]="UNSIGNED_BYTE",t[t["UNSIGNED_SHORT"]=5123]="UNSIGNED_SHORT",t[t["UNSIGNED_SHORT_5_6_5"]=33635]="UNSIGNED_SHORT_5_6_5",t[t["UNSIGNED_SHORT_4_4_4_4"]=32819]="UNSIGNED_SHORT_4_4_4_4",t[t["UNSIGNED_SHORT_5_5_5_1"]=32820]="UNSIGNED_SHORT_5_5_5_1",t[t["UNSIGNED_INT"]=5125]="UNSIGNED_INT",t[t["UNSIGNED_INT_10F_11F_11F_REV"]=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t["UNSIGNED_INT_2_10_10_10_REV"]=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t["UNSIGNED_INT_24_8"]=34042]="UNSIGNED_INT_24_8",t[t["UNSIGNED_INT_5_9_9_9_REV"]=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t["BYTE"]=5120]="BYTE",t[t["SHORT"]=5122]="SHORT",t[t["INT"]=5124]="INT",t[t["FLOAT"]=5126]="FLOAT",t[t["FLOAT_32_UNSIGNED_INT_24_8_REV"]=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t["HALF_FLOAT"]=36193]="HALF_FLOAT"}(O||(O={})),function(t){t[t["FLOAT"]=0]="FLOAT",t[t["INT"]=1]="INT",t[t["UINT"]=2]="UINT"}(P||(P={})),function(t){t[t["NEAREST"]=0]="NEAREST",t[t["LINEAR"]=1]="LINEAR"}(N||(N={})),function(t){t[t["CLAMP"]=33071]="CLAMP",t[t["REPEAT"]=10497]="REPEAT",t[t["MIRRORED_REPEAT"]=33648]="MIRRORED_REPEAT"}(M||(M={})),function(t){t[t["OFF"]=0]="OFF",t[t["POW2"]=1]="POW2",t[t["ON"]=2]="ON",t[t["ON_MANUAL"]=3]="ON_MANUAL"}(w||(w={})),function(t){t[t["NPM"]=0]="NPM",t[t["UNPACK"]=1]="UNPACK",t[t["PMA"]=2]="PMA",t[t["NO_PREMULTIPLIED_ALPHA"]=0]="NO_PREMULTIPLIED_ALPHA",t[t["PREMULTIPLY_ON_UPLOAD"]=1]="PREMULTIPLY_ON_UPLOAD",t[t["PREMULTIPLY_ALPHA"]=2]="PREMULTIPLY_ALPHA",t[t["PREMULTIPLIED_ALPHA"]=2]="PREMULTIPLIED_ALPHA"}(D||(D={})),function(t){t[t["NO"]=0]="NO",t[t["YES"]=1]="YES",t[t["AUTO"]=2]="AUTO",t[t["BLEND"]=0]="BLEND",t[t["CLEAR"]=1]="CLEAR",t[t["BLIT"]=2]="BLIT"}(C||(C={})),function(t){t[t["AUTO"]=0]="AUTO",t[t["MANUAL"]=1]="MANUAL"}(L||(L={})),function(t){t["LOW"]="lowp",t["MEDIUM"]="mediump",t["HIGH"]="highp"}(F||(F={})),function(t){t[t["NONE"]=0]="NONE",t[t["SCISSOR"]=1]="SCISSOR",t[t["STENCIL"]=2]="STENCIL",t[t["SPRITE"]=3]="SPRITE"}(U||(U={})),function(t){t[t["NONE"]=0]="NONE",t[t["LOW"]=2]="LOW",t[t["MEDIUM"]=4]="MEDIUM",t[t["HIGH"]=8]="HIGH"}(G||(G={})),function(t){t[t["ELEMENT_ARRAY_BUFFER"]=34963]="ELEMENT_ARRAY_BUFFER",t[t["ARRAY_BUFFER"]=34962]="ARRAY_BUFFER",t[t["UNIFORM_BUFFER"]=35345]="UNIFORM_BUFFER"}(B||(B={}));var j={MIPMAP_TEXTURES:w.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:G.NONE,SPRITE_MAX_TEXTURES:k(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:L.AUTO,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:M.CLAMP,SCALE_MODE:N.LINEAR,PRECISION_VERTEX:F.HIGH,PRECISION_FRAGMENT:X.apple.device?F.HIGH:F.MEDIUM,CAN_UPLOAD_SAME_BUFFER:H(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1}},8466:function(t,e,r){"use strict";r.d(e,{Sb:function(){return a},uF:function(){return n},vB:function(){return s}});var n,i=r(2307);
/*!
* @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
*/i.X.TARGET_FPMS=.06,function(t){t[t["INTERACTION"]=50]="INTERACTION",t[t["HIGH"]=25]="HIGH",t[t["NORMAL"]=0]="NORMAL",t[t["LOW"]=-25]="LOW",t[t["UTILITY"]=-50]="UTILITY"}(n||(n={}));var o=function(){function t(t,e,r,n){void 0===e&&(e=null),void 0===r&&(r=0),void 0===n&&(n=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=e,this.priority=r,this.once=n}return t.prototype.match=function(t,e){return void 0===e&&(e=null),this.fn===t&&this.context===e},t.prototype.emit=function(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));var e=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),e},t.prototype.connect=function(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this},t.prototype.destroy=function(t){void 0===t&&(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 e=this.next;return this.next=t?null:e,this.previous=null,e},t}(),s=function(){function t(){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 o(null,null,1/0),this.deltaMS=1/i.X.TARGET_FPMS,this.elapsedMS=1/i.X.TARGET_FPMS,this._tick=function(e){t._requestId=null,t.started&&(t.update(e),t.started&&null===t._requestId&&t._head.next&&(t._requestId=requestAnimationFrame(t._tick)))}}return t.prototype._requestIfNeeded=function(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},t.prototype._cancelIfNeeded=function(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)},t.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},t.prototype.add=function(t,e,r){return void 0===r&&(r=n.NORMAL),this._addListener(new o(t,e,r))},t.prototype.addOnce=function(t,e,r){return void 0===r&&(r=n.NORMAL),this._addListener(new o(t,e,r,!0))},t.prototype._addListener=function(t){var e=this._head.next,r=this._head;if(e){while(e){if(t.priority>e.priority){t.connect(r);break}r=e,e=e.next}t.previous||t.connect(r)}else t.connect(r);return this._startIfPossible(),this},t.prototype.remove=function(t,e){var r=this._head.next;while(r)r=r.match(t,e)?r.destroy():r.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(t.prototype,"count",{get:function(){if(!this._head)return 0;var t=0,e=this._head;while(e=e.next)t++;return t},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},t.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},t.prototype.destroy=function(){if(!this._protected){this.stop();var t=this._head.next;while(t)t=t.destroy(!0);this._head.destroy(),this._head=null}},t.prototype.update=function(t){var e;if(void 0===t&&(t=performance.now()),t>this.lastTime){if(e=this.elapsedMS=t-this.lastTime,e>this._maxElapsedMS&&(e=this._maxElapsedMS),e*=this.speed,this._minElapsedMS){var r=t-this._lastFrame|0;if(r<this._minElapsedMS)return;this._lastFrame=t-r%this._minElapsedMS}this.deltaMS=e,this.deltaTime=this.deltaMS*i.X.TARGET_FPMS;var n=this._head,o=n.next;while(o)o=o.emit(this.deltaTime);n.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=t},Object.defineProperty(t.prototype,"FPS",{get:function(){return 1e3/this.elapsedMS},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minFPS",{get:function(){return 1e3/this._maxElapsedMS},set:function(t){var e=Math.min(this.maxFPS,t),r=Math.min(Math.max(0,e)/1e3,i.X.TARGET_FPMS);this._maxElapsedMS=1/r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxFPS",{get:function(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0},set:function(t){if(0===t)this._minElapsedMS=0;else{var e=Math.max(this.minFPS,t);this._minElapsedMS=1/(e/1e3)}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"shared",{get:function(){if(!t._shared){var e=t._shared=new t;e.autoStart=!0,e._protected=!0}return t._shared},enumerable:!1,configurable:!0}),Object.defineProperty(t,"system",{get:function(){if(!t._system){var e=t._system=new t;e.autoStart=!0,e._protected=!0}return t._system},enumerable:!1,configurable:!0}),t}(),a=function(){function t(){}return t.init=function(t){var e=this;t=Object.assign({autoStart:!0,sharedTicker:!1},t),Object.defineProperty(this,"ticker",{set:function(t){this._ticker&&this._ticker.remove(this.render,this),this._ticker=t,t&&t.add(this.render,this,n.LOW)},get:function(){return this._ticker}}),this.stop=function(){e._ticker.stop()},this.start=function(){e._ticker.start()},this._ticker=null,this.ticker=t.sharedTicker?s.shared:new s,t.autoStart&&this.start()},t.destroy=function(){if(this._ticker){var t=this._ticker;this.ticker=null,t.destroy()}},t}()},6908:function(t,e,r){"use strict";r.d(e,{D:function(){return ur},DE:function(){return p},Er:function(){return mr},GG:function(){return xr},GT:function(){return cr},HQ:function(){return l},HR:function(){return _},OT:function(){return a.a},Qq:function(){return Pr},Qt:function(){return hr},V8:function(){return Ar},XN:function(){return ir},Xx:function(){return yr},YA:function(){return ar},a1:function(){return br},a9:function(){return pr},fL:function(){return Nr},fl:function(){return fr},hQ:function(){return Er},k3:function(){return vr},kN:function(){return Rr},qU:function(){return Ir},qm:function(){return or},rA:function(){return lr},tq:function(){return n.t},u7:function(){return dr},vp:function(){return o.a},wK:function(){return nr},wv:function(){return _r},yA:function(){return Sr}});r(8675),r(3462),r(1703);var n=r(2307),i=r(1907),o=r.n(i),s=r(8745),a=r.n(s),u=r(4030),h=r(942),l={parse:u.Qc,format:u.WU,resolve:u.DB};n.X.RETINA_PREFIX=/@([0-9\.]+)x/,n.X.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var c,f=!1,d="6.3.0";function p(t){var e;if(!f){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var r=["\n %c %c %c PixiJS "+d+" - ✰ "+t+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","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;"];(e=globalThis.console).log.apply(e,r)}else globalThis.console&&globalThis.console.log("PixiJS "+d+" - "+t+" - http://www.pixijs.com/");f=!0}}function _(){return"undefined"===typeof c&&(c=function(){var t={stencil:!0,failIfMajorPerformanceCaveat:n.X.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!globalThis.WebGLRenderingContext)return!1;var e=document.createElement("canvas"),r=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),i=!(!r||!r.getContextAttributes().stencil);if(r){var o=r.getExtension("WEBGL_lose_context");o&&o.loseContext()}return r=null,i}catch(s){return!1}}()),c}var v="#f0f8ff",m="#faebd7",y="#00ffff",g="#7fffd4",E="#f0ffff",T="#f5f5dc",b="#ffe4c4",x="#000000",R="#ffebcd",A="#0000ff",I="#8a2be2",S="#a52a2a",O="#deb887",P="#5f9ea0",N="#7fff00",M="#d2691e",w="#ff7f50",D="#6495ed",C="#fff8dc",L="#dc143c",F="#00ffff",U="#00008b",G="#008b8b",B="#b8860b",X="#a9a9a9",k="#006400",H="#a9a9a9",j="#bdb76b",V="#8b008b",Y="#556b2f",W="#ff8c00",z="#9932cc",q="#8b0000",K="#e9967a",$="#8fbc8f",Z="#483d8b",J="#2f4f4f",Q="#2f4f4f",tt="#00ced1",et="#9400d3",rt="#ff1493",nt="#00bfff",it="#696969",ot="#696969",st="#1e90ff",at="#b22222",ut="#fffaf0",ht="#228b22",lt="#ff00ff",ct="#dcdcdc",ft="#f8f8ff",dt="#daa520",pt="#ffd700",_t="#808080",vt="#008000",mt="#adff2f",yt="#808080",gt="#f0fff0",Et="#ff69b4",Tt="#cd5c5c",bt="#4b0082",xt="#fffff0",Rt="#f0e68c",At="#fff0f5",It="#e6e6fa",St="#7cfc00",Ot="#fffacd",Pt="#add8e6",Nt="#f08080",Mt="#e0ffff",wt="#fafad2",Dt="#d3d3d3",Ct="#90ee90",Lt="#d3d3d3",Ft="#ffb6c1",Ut="#ffa07a",Gt="#20b2aa",Bt="#87cefa",Xt="#778899",kt="#778899",Ht="#b0c4de",jt="#ffffe0",Vt="#00ff00",Yt="#32cd32",Wt="#faf0e6",zt="#ff00ff",qt="#800000",Kt="#66cdaa",$t="#0000cd",Zt="#ba55d3",Jt="#9370db",Qt="#3cb371",te="#7b68ee",ee="#00fa9a",re="#48d1cc",ne="#c71585",ie="#191970",oe="#f5fffa",se="#ffe4e1",ae="#ffe4b5",ue="#ffdead",he="#000080",le="#fdf5e6",ce="#808000",fe="#6b8e23",de="#ffa500",pe="#ff4500",_e="#da70d6",ve="#eee8aa",me="#98fb98",ye="#afeeee",ge="#db7093",Ee="#ffefd5",Te="#ffdab9",be="#cd853f",xe="#ffc0cb",Re="#dda0dd",Ae="#b0e0e6",Ie="#800080",Se="#663399",Oe="#ff0000",Pe="#bc8f8f",Ne="#4169e1",Me="#8b4513",we="#fa8072",De="#f4a460",Ce="#2e8b57",Le="#fff5ee",Fe="#a0522d",Ue="#c0c0c0",Ge="#87ceeb",Be="#6a5acd",Xe="#708090",ke="#708090",He="#fffafa",je="#00ff7f",Ve="#4682b4",Ye="#d2b48c",We="#008080",ze="#d8bfd8",qe="#ff6347",Ke="#40e0d0",$e="#ee82ee",Ze="#f5deb3",Je="#ffffff",Qe="#f5f5f5",tr="#ffff00",er="#9acd32",rr={aliceblue:v,antiquewhite:m,aqua:y,aquamarine:g,azure:E,beige:T,bisque:b,black:x,blanchedalmond:R,blue:A,blueviolet:I,brown:S,burlywood:O,cadetblue:P,chartreuse:N,chocolate:M,coral:w,cornflowerblue:D,cornsilk:C,crimson:L,cyan:F,darkblue:U,darkcyan:G,darkgoldenrod:B,darkgray:X,darkgreen:k,darkgrey:H,darkkhaki:j,darkmagenta:V,darkolivegreen:Y,darkorange:W,darkorchid:z,darkred:q,darksalmon:K,darkseagreen:$,darkslateblue:Z,darkslategray:J,darkslategrey:Q,darkturquoise:tt,darkviolet:et,deeppink:rt,deepskyblue:nt,dimgray:it,dimgrey:ot,dodgerblue:st,firebrick:at,floralwhite:ut,forestgreen:ht,fuchsia:lt,gainsboro:ct,ghostwhite:ft,goldenrod:dt,gold:pt,gray:_t,green:vt,greenyellow:mt,grey:yt,honeydew:gt,hotpink:Et,indianred:Tt,indigo:bt,ivory:xt,khaki:Rt,lavenderblush:At,lavender:It,lawngreen:St,lemonchiffon:Ot,lightblue:Pt,lightcoral:Nt,lightcyan:Mt,lightgoldenrodyellow:wt,lightgray:Dt,lightgreen:Ct,lightgrey:Lt,lightpink:Ft,lightsalmon:Ut,lightseagreen:Gt,lightskyblue:Bt,lightslategray:Xt,lightslategrey:kt,lightsteelblue:Ht,lightyellow:jt,lime:Vt,limegreen:Yt,linen:Wt,magenta:zt,maroon:qt,mediumaquamarine:Kt,mediumblue:$t,mediumorchid:Zt,mediumpurple:Jt,mediumseagreen:Qt,mediumslateblue:te,mediumspringgreen:ee,mediumturquoise:re,mediumvioletred:ne,midnightblue:ie,mintcream:oe,mistyrose:se,moccasin:ae,navajowhite:ue,navy:he,oldlace:le,olive:ce,olivedrab:fe,orange:de,orangered:pe,orchid:_e,palegoldenrod:ve,palegreen:me,paleturquoise:ye,palevioletred:ge,papayawhip:Ee,peachpuff:Te,peru:be,pink:xe,plum:Re,powderblue:Ae,purple:Ie,rebeccapurple:Se,red:Oe,rosybrown:Pe,royalblue:Ne,saddlebrown:Me,salmon:we,sandybrown:De,seagreen:Ce,seashell:Le,sienna:Fe,silver:Ue,skyblue:Ge,slateblue:Be,slategray:Xe,slategrey:ke,snow:He,springgreen:je,steelblue:Ve,tan:Ye,teal:We,thistle:ze,tomato:qe,turquoise:Ke,violet:$e,wheat:Ze,white:Je,whitesmoke:Qe,yellow:tr,yellowgreen:er};function nr(t,e){return void 0===e&&(e=[]),e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255,e}function ir(t){var e=t.toString(16);return e="000000".substring(0,6-e.length)+e,"#"+e}function or(t){return"string"===typeof t&&(t=rr[t.toLowerCase()]||t,"#"===t[0]&&(t=t.slice(1))),parseInt(t,16)}function sr(){for(var t=[],e=[],r=0;r<32;r++)t[r]=r,e[r]=r;t[h.T$.NORMAL_NPM]=h.T$.NORMAL,t[h.T$.ADD_NPM]=h.T$.ADD,t[h.T$.SCREEN_NPM]=h.T$.SCREEN,e[h.T$.NORMAL]=h.T$.NORMAL_NPM,e[h.T$.ADD]=h.T$.ADD_NPM,e[h.T$.SCREEN]=h.T$.SCREEN_NPM;var n=[];return n.push(e),n.push(t),n}var ar=sr();function ur(t,e){return ar[e?1:0][t]}function hr(t,e,r,n){return r=r||new Float32Array(4),n||void 0===n?(r[0]=t[0]*e,r[1]=t[1]*e,r[2]=t[2]*e):(r[0]=t[0],r[1]=t[1],r[2]=t[2]),r[3]=e,r}function lr(t,e){if(1===e)return(255*e<<24)+t;if(0===e)return 0;var r=t>>16&255,n=t>>8&255,i=255&t;return r=r*e+.5|0,n=n*e+.5|0,i=i*e+.5|0,(255*e<<24)+(r<<16)+(n<<8)+i}function cr(t,e,r,n){return r=r||new Float32Array(4),r[0]=(t>>16&255)/255,r[1]=(t>>8&255)/255,r[2]=(255&t)/255,(n||void 0===n)&&(r[0]*=e,r[1]*=e,r[2]*=e),r[3]=e,r}function fr(t,e){void 0===e&&(e=null);var r=6*t;if(e=e||new Uint16Array(r),e.length!==r)throw new Error("Out buffer length is incorrect, got "+e.length+" and expected "+r);for(var n=0,i=0;n<r;n+=6,i+=4)e[n+0]=i+0,e[n+1]=i+1,e[n+2]=i+2,e[n+3]=i+0,e[n+4]=i+2,e[n+5]=i+3;return e}function dr(t){if(4===t.BYTES_PER_ELEMENT)return t instanceof Float32Array?"Float32Array":t instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===t.BYTES_PER_ELEMENT){if(t instanceof Uint16Array)return"Uint16Array"}else if(1===t.BYTES_PER_ELEMENT&&t instanceof Uint8Array)return"Uint8Array";return null}Float32Array,Uint32Array,Int32Array,Uint8Array;function pr(t){return t+=0===t?1:0,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t+1}function _r(t){return!(t&t-1)&&!!t}function vr(t){var e=(t>65535?1:0)<<4;t>>>=e;var r=(t>255?1:0)<<3;return t>>>=r,e|=r,r=(t>15?1:0)<<2,t>>>=r,e|=r,r=(t>3?1:0)<<1,t>>>=r,e|=r,e|t>>1}function mr(t,e,r){var n,i=t.length;if(!(e>=i||0===r)){r=e+r>i?i-e:r;var o=i-r;for(n=e;n<o;++n)t[n]=t[n+r];t.length=o}}function yr(t){return 0===t?0:t<0?-1:1}var gr=0;function Er(){return++gr}var Tr={};function br(t,e,r){if(void 0===r&&(r=3),!Tr[e]){var n=(new Error).stack;"undefined"===typeof n?console.warn("PixiJS Deprecation Warning: ",e+"\nDeprecated since v"+t):(n=n.split("\n").splice(r).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",e+"\nDeprecated since v"+t),console.warn(n),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",e+"\nDeprecated since v"+t),console.warn(n))),Tr[e]=!0}}var xr={},Rr=Object.create(null),Ar=Object.create(null);var Ir=function(){function t(t,e,r){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=r||n.X.RESOLUTION,this.resize(t,e)}return t.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},t.prototype.resize=function(t,e){this.canvas.width=Math.round(t*this.resolution),this.canvas.height=Math.round(e*this.resolution)},t.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(t.prototype,"width",{get:function(){return this.canvas.width},set:function(t){this.canvas.width=Math.round(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.canvas.height},set:function(t){this.canvas.height=Math.round(t)},enumerable:!1,configurable:!0}),t}();function Sr(t){var e,r,n,i=t.width,o=t.height,s=t.getContext("2d"),a=s.getImageData(0,0,i,o),u=a.data,h=u.length,l={top:null,left:null,right:null,bottom:null},c=null;for(e=0;e<h;e+=4)0!==u[e+3]&&(r=e/4%i,n=~~(e/4/i),null===l.top&&(l.top=n),(null===l.left||r<l.left)&&(l.left=r),(null===l.right||l.right<r)&&(l.right=r+1),(null===l.bottom||l.bottom<n)&&(l.bottom=n));return null!==l.top&&(i=l.right-l.left,o=l.bottom-l.top+1,c=s.getImageData(l.left,l.top,i,o)),{height:o,width:i,data:c}}var Or;function Pr(t,e){if(void 0===e&&(e=globalThis.location),0===t.indexOf("data:"))return"";e=e||globalThis.location,Or||(Or=document.createElement("a")),Or.href=t;var r=l.parse(Or.href),n=!r.port&&""===e.port||r.port===e.port;return r.hostname===e.hostname&&n&&r.protocol===e.protocol?"":"anonymous"}function Nr(t,e){var r=n.X.RETINA_PREFIX.exec(t);return r?parseFloat(r[1]):void 0!==e?e:1}},1907:function(t,e,r){"use strict";r(1703);var n=Object.prototype.hasOwnProperty,i="~";function o(){}function s(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function a(t,e,r,n,o){if("function"!==typeof r)throw new TypeError("The listener must be a function");var a=new s(r,n||t,o),u=i?i+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],a]:t._events[u].push(a):(t._events[u]=a,t._eventsCount++),t}function u(t,e){0===--t._eventsCount?t._events=new o:delete t._events[e]}function h(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),h.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},h.prototype.listeners=function(t){var e=i?i+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,o=r.length,s=new Array(o);n<o;n++)s[n]=r[n].fn;return s},h.prototype.listenerCount=function(t){var e=i?i+t:t,r=this._events[e];return r?r.fn?1:r.length:0},h.prototype.emit=function(t,e,r,n,o,s){var a=i?i+t:t;if(!this._events[a])return!1;var u,h,l=this._events[a],c=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,r),!0;case 4:return l.fn.call(l.context,e,r,n),!0;case 5:return l.fn.call(l.context,e,r,n,o),!0;case 6:return l.fn.call(l.context,e,r,n,o,s),!0}for(h=1,u=new Array(c-1);h<c;h++)u[h-1]=arguments[h];l.fn.apply(l.context,u)}else{var f,d=l.length;for(h=0;h<d;h++)switch(l[h].once&&this.removeListener(t,l[h].fn,void 0,!0),c){case 1:l[h].fn.call(l[h].context);break;case 2:l[h].fn.call(l[h].context,e);break;case 3:l[h].fn.call(l[h].context,e,r);break;case 4:l[h].fn.call(l[h].context,e,r,n);break;default:if(!u)for(f=1,u=new Array(c-1);f<c;f++)u[f-1]=arguments[f];l[h].fn.apply(l[h].context,u)}}return!0},h.prototype.on=function(t,e,r){return a(this,t,e,r,!1)},h.prototype.once=function(t,e,r){return a(this,t,e,r,!0)},h.prototype.removeListener=function(t,e,r,n){var o=i?i+t:t;if(!this._events[o])return this;if(!e)return u(this,o),this;var s=this._events[o];if(s.fn)s.fn!==e||n&&!s.once||r&&s.context!==r||u(this,o);else{for(var a=0,h=[],l=s.length;a<l;a++)(s[a].fn!==e||n&&!s[a].once||r&&s[a].context!==r)&&h.push(s[a]);h.length?this._events[o]=1===h.length?h[0]:h:u(this,o)}return this},h.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&u(this,e)):(this._events=new o,this._eventsCount=0),this},h.prototype.off=h.prototype.removeListener,h.prototype.addListener=h.prototype.on,h.prefixed=i,h.EventEmitter=h,t.exports=h},4870:function(t,e,r){"use strict";r.d(e,{Bj:function(){return o},Fl:function(){return Gt},IU:function(){return St},Jd:function(){return x},PG:function(){return xt},Um:function(){return Et},WL:function(){return Ft},X$:function(){return S},X3:function(){return It},Xl:function(){return Ot},dq:function(){return Dt},j:function(){return A},lk:function(){return R},qj:function(){return gt},qq:function(){return g},yT:function(){return At}});var n=r(7139);let i;class o{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&i&&(this.parent=i,this.index=(i.scopes||(i.scopes=[])).push(this)-1)}run(t){if(this.active)try{return i=this,t()}finally{i=this.parent}else 0}on(){i=this}off(){i=this.parent}stop(t){if(this.active){let e,r;for(e=0,r=this.effects.length;e<r;e++)this.effects[e].stop();for(e=0,r=this.cleanups.length;e<r;e++)this.cleanups[e]();if(this.scopes)for(e=0,r=this.scopes.length;e<r;e++)this.scopes[e].stop(!0);if(this.parent&&!t){const t=this.parent.scopes.pop();t&&t!==this&&(this.parent.scopes[this.index]=t,t.index=this.index)}this.active=!1}}}function s(t,e=i){e&&e.active&&e.effects.push(t)}const a=t=>{const e=new Set(t);return e.w=0,e.n=0,e},u=t=>(t.w&p)>0,h=t=>(t.n&p)>0,l=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=p},c=t=>{const{deps:e}=t;if(e.length){let r=0;for(let n=0;n<e.length;n++){const i=e[n];u(i)&&!h(i)?i.delete(t):e[r++]=i,i.w&=~p,i.n&=~p}e.length=r}},f=new WeakMap;let d=0,p=1;const _=30;let v;const m=Symbol(""),y=Symbol("");class g{constructor(t,e=null,r){this.fn=t,this.scheduler=e,this.active=!0,this.deps=[],this.parent=void 0,s(this,r)}run(){if(!this.active)return this.fn();let t=v,e=T;while(t){if(t===this)return;t=t.parent}try{return this.parent=v,v=this,T=!0,p=1<<++d,d<=_?l(this):E(this),this.fn()}finally{d<=_&&c(this),p=1<<--d,v=this.parent,T=e,this.parent=void 0}}stop(){this.active&&(E(this),this.onStop&&this.onStop(),this.active=!1)}}function E(t){const{deps:e}=t;if(e.length){for(let r=0;r<e.length;r++)e[r].delete(t);e.length=0}}let T=!0;const b=[];function x(){b.push(T),T=!1}function R(){const t=b.pop();T=void 0===t||t}function A(t,e,r){if(T&&v){let e=f.get(t);e||f.set(t,e=new Map);let n=e.get(r);n||e.set(r,n=a());const i=void 0;I(n,i)}}function I(t,e){let r=!1;d<=_?h(t)||(t.n|=p,r=!u(t)):r=!t.has(v),r&&(t.add(v),v.deps.push(t))}function S(t,e,r,i,o,s){const u=f.get(t);if(!u)return;let h=[];if("clear"===e)h=[...u.values()];else if("length"===r&&(0,n.kJ)(t))u.forEach(((t,e)=>{("length"===e||e>=i)&&h.push(t)}));else switch(void 0!==r&&h.push(u.get(r)),e){case"add":(0,n.kJ)(t)?(0,n.S0)(r)&&h.push(u.get("length")):(h.push(u.get(m)),(0,n._N)(t)&&h.push(u.get(y)));break;case"delete":(0,n.kJ)(t)||(h.push(u.get(m)),(0,n._N)(t)&&h.push(u.get(y)));break;case"set":(0,n._N)(t)&&h.push(u.get(m));break}if(1===h.length)h[0]&&O(h[0]);else{const t=[];for(const e of h)e&&t.push(...e);O(a(t))}}function O(t,e){for(const r of(0,n.kJ)(t)?t:[...t])(r!==v||r.allowRecurse)&&(r.scheduler?r.scheduler():r.run())}const P=(0,n.fY)("__proto__,__v_isRef,__isVue"),N=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(n.yk)),M=F(),w=F(!1,!0),D=F(!0),C=L();function L(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const r=St(this);for(let e=0,i=this.length;e<i;e++)A(r,"get",e+"");const n=r[e](...t);return-1===n||!1===n?r[e](...t.map(St)):n}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){x();const r=St(this)[e].apply(this,t);return R(),r}})),t}function F(t=!1,e=!1){return function(r,i,o){if("__v_isReactive"===i)return!t;if("__v_isReadonly"===i)return t;if("__v_isShallow"===i)return e;if("__v_raw"===i&&o===(t?e?vt:_t:e?pt:dt).get(r))return r;const s=(0,n.kJ)(r);if(!t&&s&&(0,n.RI)(C,i))return Reflect.get(C,i,o);const a=Reflect.get(r,i,o);if((0,n.yk)(i)?N.has(i):P(i))return a;if(t||A(r,"get",i),e)return a;if(Dt(a)){const t=!s||!(0,n.S0)(i);return t?a.value:a}return(0,n.Kn)(a)?t?Tt(a):gt(a):a}}const U=B(),G=B(!0);function B(t=!1){return function(e,r,i,o){let s=e[r];if(Rt(s)&&Dt(s)&&!Dt(i))return!1;if(!t&&!Rt(i)&&(At(i)||(i=St(i),s=St(s)),!(0,n.kJ)(e)&&Dt(s)&&!Dt(i)))return s.value=i,!0;const a=(0,n.kJ)(e)&&(0,n.S0)(r)?Number(r)<e.length:(0,n.RI)(e,r),u=Reflect.set(e,r,i,o);return e===St(o)&&(a?(0,n.aU)(i,s)&&S(e,"set",r,i,s):S(e,"add",r,i)),u}}function X(t,e){const r=(0,n.RI)(t,e),i=t[e],o=Reflect.deleteProperty(t,e);return o&&r&&S(t,"delete",e,void 0,i),o}function k(t,e){const r=Reflect.has(t,e);return(0,n.yk)(e)&&N.has(e)||A(t,"has",e),r}function H(t){return A(t,"iterate",(0,n.kJ)(t)?"length":m),Reflect.ownKeys(t)}const j={get:M,set:U,deleteProperty:X,has:k,ownKeys:H},V={get:D,set(t,e){return!0},deleteProperty(t,e){return!0}},Y=(0,n.l7)({},j,{get:w,set:G}),W=t=>t,z=t=>Reflect.getPrototypeOf(t);function q(t,e,r=!1,n=!1){t=t["__v_raw"];const i=St(t),o=St(e);e!==o&&!r&&A(i,"get",e),!r&&A(i,"get",o);const{has:s}=z(i),a=n?W:r?Nt:Pt;return s.call(i,e)?a(t.get(e)):s.call(i,o)?a(t.get(o)):void(t!==i&&t.get(e))}function K(t,e=!1){const r=this["__v_raw"],n=St(r),i=St(t);return t!==i&&!e&&A(n,"has",t),!e&&A(n,"has",i),t===i?r.has(t):r.has(t)||r.has(i)}function $(t,e=!1){return t=t["__v_raw"],!e&&A(St(t),"iterate",m),Reflect.get(t,"size",t)}function Z(t){t=St(t);const e=St(this),r=z(e),n=r.has.call(e,t);return n||(e.add(t),S(e,"add",t,t)),this}function J(t,e){e=St(e);const r=St(this),{has:i,get:o}=z(r);let s=i.call(r,t);s||(t=St(t),s=i.call(r,t));const a=o.call(r,t);return r.set(t,e),s?(0,n.aU)(e,a)&&S(r,"set",t,e,a):S(r,"add",t,e),this}function Q(t){const e=St(this),{has:r,get:n}=z(e);let i=r.call(e,t);i||(t=St(t),i=r.call(e,t));const o=n?n.call(e,t):void 0,s=e.delete(t);return i&&S(e,"delete",t,void 0,o),s}function tt(){const t=St(this),e=0!==t.size,r=void 0,n=t.clear();return e&&S(t,"clear",void 0,void 0,r),n}function et(t,e){return function(r,n){const i=this,o=i["__v_raw"],s=St(o),a=e?W:t?Nt:Pt;return!t&&A(s,"iterate",m),o.forEach(((t,e)=>r.call(n,a(t),a(e),i)))}}function rt(t,e,r){return function(...i){const o=this["__v_raw"],s=St(o),a=(0,n._N)(s),u="entries"===t||t===Symbol.iterator&&a,h="keys"===t&&a,l=o[t](...i),c=r?W:e?Nt:Pt;return!e&&A(s,"iterate",h?y:m),{next(){const{value:t,done:e}=l.next();return e?{value:t,done:e}:{value:u?[c(t[0]),c(t[1])]:c(t),done:e}},[Symbol.iterator](){return this}}}}function nt(t){return function(...e){return"delete"!==t&&this}}function it(){const t={get(t){return q(this,t)},get size(){return $(this)},has:K,add:Z,set:J,delete:Q,clear:tt,forEach:et(!1,!1)},e={get(t){return q(this,t,!1,!0)},get size(){return $(this)},has:K,add:Z,set:J,delete:Q,clear:tt,forEach:et(!1,!0)},r={get(t){return q(this,t,!0)},get size(){return $(this,!0)},has(t){return K.call(this,t,!0)},add:nt("add"),set:nt("set"),delete:nt("delete"),clear:nt("clear"),forEach:et(!0,!1)},n={get(t){return q(this,t,!0,!0)},get size(){return $(this,!0)},has(t){return K.call(this,t,!0)},add:nt("add"),set:nt("set"),delete:nt("delete"),clear:nt("clear"),forEach:et(!0,!0)},i=["keys","values","entries",Symbol.iterator];return i.forEach((i=>{t[i]=rt(i,!1,!1),r[i]=rt(i,!0,!1),e[i]=rt(i,!1,!0),n[i]=rt(i,!0,!0)})),[t,r,e,n]}const[ot,st,at,ut]=it();function ht(t,e){const r=e?t?ut:at:t?st:ot;return(e,i,o)=>"__v_isReactive"===i?!t:"__v_isReadonly"===i?t:"__v_raw"===i?e:Reflect.get((0,n.RI)(r,i)&&i in e?r:e,i,o)}const lt={get:ht(!1,!1)},ct={get:ht(!1,!0)},ft={get:ht(!0,!1)};const dt=new WeakMap,pt=new WeakMap,_t=new WeakMap,vt=new WeakMap;function mt(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function yt(t){return t["__v_skip"]||!Object.isExtensible(t)?0:mt((0,n.W7)(t))}function gt(t){return Rt(t)?t:bt(t,!1,j,lt,dt)}function Et(t){return bt(t,!1,Y,ct,pt)}function Tt(t){return bt(t,!0,V,ft,_t)}function bt(t,e,r,i,o){if(!(0,n.Kn)(t))return t;if(t["__v_raw"]&&(!e||!t["__v_isReactive"]))return t;const s=o.get(t);if(s)return s;const a=yt(t);if(0===a)return t;const u=new Proxy(t,2===a?i:r);return o.set(t,u),u}function xt(t){return Rt(t)?xt(t["__v_raw"]):!(!t||!t["__v_isReactive"])}function Rt(t){return!(!t||!t["__v_isReadonly"])}function At(t){return!(!t||!t["__v_isShallow"])}function It(t){return xt(t)||Rt(t)}function St(t){const e=t&&t["__v_raw"];return e?St(e):t}function Ot(t){return(0,n.Nj)(t,"__v_skip",!0),t}const Pt=t=>(0,n.Kn)(t)?gt(t):t,Nt=t=>(0,n.Kn)(t)?Tt(t):t;function Mt(t){T&&v&&(t=St(t),I(t.dep||(t.dep=a())))}function wt(t,e){t=St(t),t.dep&&O(t.dep)}function Dt(t){return!(!t||!0!==t.__v_isRef)}function Ct(t){return Dt(t)?t.value:t}const Lt={get:(t,e,r)=>Ct(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const i=t[e];return Dt(i)&&!Dt(r)?(i.value=r,!0):Reflect.set(t,e,r,n)}};function Ft(t){return xt(t)?t:new Proxy(t,Lt)}class Ut{constructor(t,e,r,n){this._setter=e,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new g(t,(()=>{this._dirty||(this._dirty=!0,wt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!n,this["__v_isReadonly"]=r}get value(){const t=St(this);return Mt(t),!t._dirty&&t._cacheable||(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Gt(t,e,r=!1){let i,o;const s=(0,n.mf)(t);s?(i=t,o=n.dG):(i=t.get,o=t.set);const a=new Ut(i,o,s||!o,r);return a}Promise.resolve()},3396:function(t,e,r){"use strict";r.d(e,{$d:function(){return s},FN:function(){return or},HY:function(){return Re},P$:function(){return st},Q6:function(){return ft},U2:function(){return ut},Us:function(){return me},Wm:function(){return He},Y8:function(){return nt},h:function(){return br},iD:function(){return Le},ic:function(){return St},nK:function(){return ct},wg:function(){return Ne}});r(1703);var n=r(4870),i=r(7139);function o(t,e,r,n){let i;try{i=n?t(...n):t()}catch(o){a(o,e,r)}return i}function s(t,e,r,n){if((0,i.mf)(t)){const s=o(t,e,r,n);return s&&(0,i.tI)(s)&&s.catch((t=>{a(t,e,r)})),s}const u=[];for(let i=0;i<t.length;i++)u.push(s(t[i],e,r,n));return u}function a(t,e,r,n=!0){const i=e?e.vnode:null;if(e){let n=e.parent;const i=e.proxy,s=r;while(n){const e=n.ec;if(e)for(let r=0;r<e.length;r++)if(!1===e[r](t,i,s))return;n=n.parent}const a=e.appContext.config.errorHandler;if(a)return void o(a,null,10,[t,i,s])}u(t,r,i,n)}function u(t,e,r,n=!0){console.error(t)}let h=!1,l=!1;const c=[];let f=0;const d=[];let p=null,_=0;const v=[];let m=null,y=0;const g=Promise.resolve();let E=null,T=null;function b(t){const e=E||g;return t?e.then(this?t.bind(this):t):e}function x(t){let e=f+1,r=c.length;while(e<r){const n=e+r>>>1,i=w(c[n]);i<t?e=n+1:r=n}return e}function R(t){c.length&&c.includes(t,h&&t.allowRecurse?f+1:f)||t===T||(null==t.id?c.push(t):c.splice(x(t.id),0,t),A())}function A(){h||l||(l=!0,E=g.then(D))}function I(t){const e=c.indexOf(t);e>f&&c.splice(e,1)}function S(t,e,r,n){(0,i.kJ)(t)?r.push(...t):e&&e.includes(t,t.allowRecurse?n+1:n)||r.push(t),A()}function O(t){S(t,p,d,_)}function P(t){S(t,m,v,y)}function N(t,e=null){if(d.length){for(T=e,p=[...new Set(d)],d.length=0,_=0;_<p.length;_++)p[_]();p=null,_=0,T=null,N(t,e)}}function M(t){if(v.length){const t=[...new Set(v)];if(v.length=0,m)return void m.push(...t);for(m=t,m.sort(((t,e)=>w(t)-w(e))),y=0;y<m.length;y++)m[y]();m=null,y=0}}const w=t=>null==t.id?1/0:t.id;function D(t){l=!1,h=!0,N(t),c.sort(((t,e)=>w(t)-w(e)));i.dG;try{for(f=0;f<c.length;f++){const t=c[f];t&&!1!==t.active&&o(t,null,14)}}finally{f=0,c.length=0,M(t),h=!1,E=null,(c.length||d.length||v.length)&&D(t)}}new Set;new Map;function C(t,e,...r){const n=t.vnode.props||i.kT;let o=r;const a=e.startsWith("update:"),u=a&&e.slice(7);if(u&&u in n){const t=`${"modelValue"===u?"model":u}Modifiers`,{number:e,trim:s}=n[t]||i.kT;s?o=r.map((t=>t.trim())):e&&(o=r.map(i.He))}let h;let l=n[h=(0,i.hR)(e)]||n[h=(0,i.hR)((0,i._A)(e))];!l&&a&&(l=n[h=(0,i.hR)((0,i.rs)(e))]),l&&s(l,t,6,o);const c=n[h+"Once"];if(c){if(t.emitted){if(t.emitted[h])return}else t.emitted={};t.emitted[h]=!0,s(c,t,6,o)}}function L(t,e,r=!1){const n=e.emitsCache,o=n.get(t);if(void 0!==o)return o;const s=t.emits;let a={},u=!1;if(!(0,i.mf)(t)){const n=t=>{const r=L(t,e,!0);r&&(u=!0,(0,i.l7)(a,r))};!r&&e.mixins.length&&e.mixins.forEach(n),t.extends&&n(t.extends),t.mixins&&t.mixins.forEach(n)}return s||u?((0,i.kJ)(s)?s.forEach((t=>a[t]=null)):(0,i.l7)(a,s),n.set(t,a),a):(n.set(t,null),null)}function F(t,e){return!(!t||!(0,i.F7)(e))&&(e=e.slice(2).replace(/Once$/,""),(0,i.RI)(t,e[0].toLowerCase()+e.slice(1))||(0,i.RI)(t,(0,i.rs)(e))||(0,i.RI)(t,e))}let U=null,G=null;function B(t){const e=U;return U=t,G=t&&t.type.__scopeId||null,e}function X(t,e=U,r){if(!e)return t;if(t._n)return t;const n=(...r)=>{n._d&&De(-1);const i=B(e),o=t(...r);return B(i),n._d&&De(1),o};return n._n=!0,n._c=!0,n._d=!0,n}function k(t){const{type:e,vnode:r,proxy:n,withProxy:o,props:s,propsOptions:[u],slots:h,attrs:l,emit:c,render:f,renderCache:d,data:p,setupState:_,ctx:v,inheritAttrs:m}=t;let y,g;const E=B(t);try{if(4&r.shapeFlag){const t=o||n;y=ze(f.call(t,t,d,s,_,p,v)),g=l}else{const t=e;0,y=ze(t.length>1?t(s,{attrs:l,slots:h,emit:c}):t(s,null)),g=e.props?l:H(l)}}catch(b){Oe.length=0,a(b,t,1),y=He(Ie)}let T=y;if(g&&!1!==m){const t=Object.keys(g),{shapeFlag:e}=T;t.length&&7&e&&(u&&t.some(i.tR)&&(g=j(g,u)),T=Ye(T,g))}return r.dirs&&(T.dirs=T.dirs?T.dirs.concat(r.dirs):r.dirs),r.transition&&(T.transition=r.transition),y=T,B(E),y}const H=t=>{let e;for(const r in t)("class"===r||"style"===r||(0,i.F7)(r))&&((e||(e={}))[r]=t[r]);return e},j=(t,e)=>{const r={};for(const n in t)(0,i.tR)(n)&&n.slice(9)in e||(r[n]=t[n]);return r};function V(t,e,r){const{props:n,children:i,component:o}=t,{props:s,children:a,patchFlag:u}=e,h=o.emitsOptions;if(e.dirs||e.transition)return!0;if(!(r&&u>=0))return!(!i&&!a||a&&a.$stable)||n!==s&&(n?!s||Y(n,s,h):!!s);if(1024&u)return!0;if(16&u)return n?Y(n,s,h):!!s;if(8&u){const t=e.dynamicProps;for(let e=0;e<t.length;e++){const r=t[e];if(s[r]!==n[r]&&!F(h,r))return!0}}return!1}function Y(t,e,r){const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(let i=0;i<n.length;i++){const o=n[i];if(e[o]!==t[o]&&!F(r,o))return!0}return!1}function W({vnode:t,parent:e},r){while(e&&e.subTree===t)(t=e.vnode).el=r,e=e.parent}const z=t=>t.__isSuspense;function q(t,e){e&&e.pendingBranch?(0,i.kJ)(t)?e.effects.push(...t):e.effects.push(t):P(t)}function K(t,e){if(ir){let r=ir.provides;const n=ir.parent&&ir.parent.provides;n===r&&(r=ir.provides=Object.create(n)),r[t]=e}else 0}function $(t,e,r=!1){const n=ir||U;if(n){const o=null==n.parent?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(o&&t in o)return o[t];if(arguments.length>1)return r&&(0,i.mf)(e)?e.call(n.proxy):e}else 0}const Z={};function J(t,e,r){return Q(t,e,r)}function Q(t,e,{immediate:r,deep:a,flush:u,onTrack:h,onTrigger:l}=i.kT){const c=ir;let f,d,p=!1,_=!1;if((0,n.dq)(t)?(f=()=>t.value,p=(0,n.yT)(t)):(0,n.PG)(t)?(f=()=>t,a=!0):(0,i.kJ)(t)?(_=!0,p=t.some(n.PG),f=()=>t.map((t=>(0,n.dq)(t)?t.value:(0,n.PG)(t)?rt(t):(0,i.mf)(t)?o(t,c,2):void 0))):f=(0,i.mf)(t)?e?()=>o(t,c,2):()=>{if(!c||!c.isUnmounted)return d&&d(),s(t,c,3,[v])}:i.dG,e&&a){const t=f;f=()=>rt(t())}let v=t=>{d=E.onStop=()=>{o(t,c,4)}};if(cr)return v=i.dG,e?r&&s(e,c,3,[f(),_?[]:void 0,v]):f(),i.dG;let m=_?[]:Z;const y=()=>{if(E.active)if(e){const t=E.run();(a||p||(_?t.some(((t,e)=>(0,i.aU)(t,m[e]))):(0,i.aU)(t,m)))&&(d&&d(),s(e,c,3,[t,m===Z?void 0:m,v]),m=t)}else E.run()};let g;y.allowRecurse=!!e,g="sync"===u?y:"post"===u?()=>ve(y,c&&c.suspense):()=>{!c||c.isMounted?O(y):y()};const E=new n.qq(f,g);return e?r?y():m=E.run():"post"===u?ve(E.run.bind(E),c&&c.suspense):E.run(),()=>{E.stop(),c&&c.scope&&(0,i.Od)(c.scope.effects,E)}}function tt(t,e,r){const n=this.proxy,o=(0,i.HD)(t)?t.includes(".")?et(n,t):()=>n[t]:t.bind(n,n);let s;(0,i.mf)(e)?s=e:(s=e.handler,r=e);const a=ir;sr(this);const u=Q(o,s.bind(n),r);return a?sr(a):ar(),u}function et(t,e){const r=e.split(".");return()=>{let e=t;for(let t=0;t<r.length&&e;t++)e=e[r[t]];return e}}function rt(t,e){if(!(0,i.Kn)(t)||t["__v_skip"])return t;if(e=e||new Set,e.has(t))return t;if(e.add(t),(0,n.dq)(t))rt(t.value,e);else if((0,i.kJ)(t))for(let r=0;r<t.length;r++)rt(t[r],e);else if((0,i.DM)(t)||(0,i._N)(t))t.forEach((t=>{rt(t,e)}));else if((0,i.PO)(t))for(const r in t)rt(t[r],e);return t}function nt(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return At((()=>{t.isMounted=!0})),Ot((()=>{t.isUnmounting=!0})),t}const it=[Function,Array],ot={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:it,onEnter:it,onAfterEnter:it,onEnterCancelled:it,onBeforeLeave:it,onLeave:it,onAfterLeave:it,onLeaveCancelled:it,onBeforeAppear:it,onAppear:it,onAfterAppear:it,onAppearCancelled:it},setup(t,{slots:e}){const r=or(),i=nt();let o;return()=>{const s=e.default&&ft(e.default(),!0);if(!s||!s.length)return;const a=(0,n.IU)(t),{mode:u}=a;const h=s[0];if(i.isLeaving)return ht(h);const l=lt(h);if(!l)return ht(h);const c=ut(l,a,i,r);ct(l,c);const f=r.subTree,d=f&&lt(f);let p=!1;const{getTransitionKey:_}=l.type;if(_){const t=_();void 0===o?o=t:t!==o&&(o=t,p=!0)}if(d&&d.type!==Ie&&(!Ue(l,d)||p)){const t=ut(d,a,i,r);if(ct(d,t),"out-in"===u)return i.isLeaving=!0,t.afterLeave=()=>{i.isLeaving=!1,r.update()},ht(h);"in-out"===u&&l.type!==Ie&&(t.delayLeave=(t,e,r)=>{const n=at(i,d);n[String(d.key)]=d,t._leaveCb=()=>{e(),t._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=r})}return h}}},st=ot;function at(t,e){const{leavingVNodes:r}=t;let n=r.get(e.type);return n||(n=Object.create(null),r.set(e.type,n)),n}function ut(t,e,r,n){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:u,onEnter:h,onAfterEnter:l,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:p,onLeaveCancelled:_,onBeforeAppear:v,onAppear:m,onAfterAppear:y,onAppearCancelled:g}=e,E=String(t.key),T=at(r,t),b=(t,e)=>{t&&s(t,n,9,e)},x={mode:o,persisted:a,beforeEnter(e){let n=u;if(!r.isMounted){if(!i)return;n=v||u}e._leaveCb&&e._leaveCb(!0);const o=T[E];o&&Ue(t,o)&&o.el._leaveCb&&o.el._leaveCb(),b(n,[e])},enter(t){let e=h,n=l,o=c;if(!r.isMounted){if(!i)return;e=m||h,n=y||l,o=g||c}let s=!1;const a=t._enterCb=e=>{s||(s=!0,b(e?o:n,[t]),x.delayedLeave&&x.delayedLeave(),t._enterCb=void 0)};e?(e(t,a),e.length<=1&&a()):a()},leave(e,n){const i=String(t.key);if(e._enterCb&&e._enterCb(!0),r.isUnmounting)return n();b(f,[e]);let o=!1;const s=e._leaveCb=r=>{o||(o=!0,n(),b(r?_:p,[e]),e._leaveCb=void 0,T[i]===t&&delete T[i])};T[i]=t,d?(d(e,s),d.length<=1&&s()):s()},clone(t){return ut(t,e,r,n)}};return x}function ht(t){if(pt(t))return t=Ye(t),t.children=null,t}function lt(t){return pt(t)?t.children?t.children[0]:void 0:t}function ct(t,e){6&t.shapeFlag&&t.component?ct(t.component.subTree,e):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function ft(t,e=!1){let r=[],n=0;for(let i=0;i<t.length;i++){const o=t[i];o.type===Re?(128&o.patchFlag&&n++,r=r.concat(ft(o.children,e))):(e||o.type!==Ie)&&r.push(o)}if(n>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}const dt=t=>!!t.type.__asyncLoader;const pt=t=>t.type.__isKeepAlive;RegExp,RegExp;function _t(t,e){return(0,i.kJ)(t)?t.some((t=>_t(t,e))):(0,i.HD)(t)?t.split(",").includes(e):!!t.test&&t.test(e)}function vt(t,e){yt(t,"a",e)}function mt(t,e){yt(t,"da",e)}function yt(t,e,r=ir){const n=t.__wdc||(t.__wdc=()=>{let e=r;while(e){if(e.isDeactivated)return;e=e.parent}return t()});if(bt(e,n,r),r){let t=r.parent;while(t&&t.parent)pt(t.parent.vnode)&&gt(n,e,r,t),t=t.parent}}function gt(t,e,r,n){const o=bt(e,t,n,!0);Pt((()=>{(0,i.Od)(n[e],o)}),r)}function Et(t){let e=t.shapeFlag;256&e&&(e-=256),512&e&&(e-=512),t.shapeFlag=e}function Tt(t){return 128&t.shapeFlag?t.ssContent:t}function bt(t,e,r=ir,i=!1){if(r){const o=r[t]||(r[t]=[]),a=e.__weh||(e.__weh=(...i)=>{if(r.isUnmounted)return;(0,n.Jd)(),sr(r);const o=s(e,r,t,i);return ar(),(0,n.lk)(),o});return i?o.unshift(a):o.push(a),a}}const xt=t=>(e,r=ir)=>(!cr||"sp"===t)&&bt(t,e,r),Rt=xt("bm"),At=xt("m"),It=xt("bu"),St=xt("u"),Ot=xt("bum"),Pt=xt("um"),Nt=xt("sp"),Mt=xt("rtg"),wt=xt("rtc");function Dt(t,e=ir){bt("ec",t,e)}let Ct=!0;function Lt(t){const e=Bt(t),r=t.proxy,o=t.ctx;Ct=!1,e.beforeCreate&&Ut(e.beforeCreate,t,"bc");const{data:s,computed:a,methods:u,watch:h,provide:l,inject:c,created:f,beforeMount:d,mounted:p,beforeUpdate:_,updated:v,activated:m,deactivated:y,beforeDestroy:g,beforeUnmount:E,destroyed:T,unmounted:b,render:x,renderTracked:R,renderTriggered:A,errorCaptured:I,serverPrefetch:S,expose:O,inheritAttrs:P,components:N,directives:M,filters:w}=e,D=null;if(c&&Ft(c,o,D,t.appContext.config.unwrapInjectedRef),u)for(const n in u){const t=u[n];(0,i.mf)(t)&&(o[n]=t.bind(r))}if(s){0;const e=s.call(r,r);0,(0,i.Kn)(e)&&(t.data=(0,n.qj)(e))}if(Ct=!0,a)for(const n in a){const t=a[n],e=(0,i.mf)(t)?t.bind(r,r):(0,i.mf)(t.get)?t.get.bind(r,r):i.dG;0;const s=!(0,i.mf)(t)&&(0,i.mf)(t.set)?t.set.bind(r):i.dG,u=Tr({get:e,set:s});Object.defineProperty(o,n,{enumerable:!0,configurable:!0,get:()=>u.value,set:t=>u.value=t})}if(h)for(const n in h)Gt(h[n],o,r,n);if(l){const t=(0,i.mf)(l)?l.call(r):l;Reflect.ownKeys(t).forEach((e=>{K(e,t[e])}))}function C(t,e){(0,i.kJ)(e)?e.forEach((e=>t(e.bind(r)))):e&&t(e.bind(r))}if(f&&Ut(f,t,"c"),C(Rt,d),C(At,p),C(It,_),C(St,v),C(vt,m),C(mt,y),C(Dt,I),C(wt,R),C(Mt,A),C(Ot,E),C(Pt,b),C(Nt,S),(0,i.kJ)(O))if(O.length){const e=t.exposed||(t.exposed={});O.forEach((t=>{Object.defineProperty(e,t,{get:()=>r[t],set:e=>r[t]=e})}))}else t.exposed||(t.exposed={});x&&t.render===i.dG&&(t.render=x),null!=P&&(t.inheritAttrs=P),N&&(t.components=N),M&&(t.directives=M)}function Ft(t,e,r=i.dG,o=!1){(0,i.kJ)(t)&&(t=Vt(t));for(const s in t){const r=t[s];let a;a=(0,i.Kn)(r)?"default"in r?$(r.from||s,r.default,!0):$(r.from||s):$(r),(0,n.dq)(a)&&o?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>a.value,set:t=>a.value=t}):e[s]=a}}function Ut(t,e,r){s((0,i.kJ)(t)?t.map((t=>t.bind(e.proxy))):t.bind(e.proxy),e,r)}function Gt(t,e,r,n){const o=n.includes(".")?et(r,n):()=>r[n];if((0,i.HD)(t)){const r=e[t];(0,i.mf)(r)&&J(o,r)}else if((0,i.mf)(t))J(o,t.bind(r));else if((0,i.Kn)(t))if((0,i.kJ)(t))t.forEach((t=>Gt(t,e,r,n)));else{const n=(0,i.mf)(t.handler)?t.handler.bind(r):e[t.handler];(0,i.mf)(n)&&J(o,n,t)}else 0}function Bt(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=t.appContext,a=o.get(e);let u;return a?u=a:i.length||r||n?(u={},i.length&&i.forEach((t=>Xt(u,t,s,!0))),Xt(u,e,s)):u=e,o.set(e,u),u}function Xt(t,e,r,n=!1){const{mixins:i,extends:o}=e;o&&Xt(t,o,r,!0),i&&i.forEach((e=>Xt(t,e,r,!0)));for(const s in e)if(n&&"expose"===s);else{const n=kt[s]||r&&r[s];t[s]=n?n(t[s],e[s]):e[s]}return t}const kt={data:Ht,props:Wt,emits:Wt,methods:Wt,computed:Wt,beforeCreate:Yt,created:Yt,beforeMount:Yt,mounted:Yt,beforeUpdate:Yt,updated:Yt,beforeDestroy:Yt,beforeUnmount:Yt,destroyed:Yt,unmounted:Yt,activated:Yt,deactivated:Yt,errorCaptured:Yt,serverPrefetch:Yt,components:Wt,directives:Wt,watch:zt,provide:Ht,inject:jt};function Ht(t,e){return e?t?function(){return(0,i.l7)((0,i.mf)(t)?t.call(this,this):t,(0,i.mf)(e)?e.call(this,this):e)}:e:t}function jt(t,e){return Wt(Vt(t),Vt(e))}function Vt(t){if((0,i.kJ)(t)){const e={};for(let r=0;r<t.length;r++)e[t[r]]=t[r];return e}return t}function Yt(t,e){return t?[...new Set([].concat(t,e))]:e}function Wt(t,e){return t?(0,i.l7)((0,i.l7)(Object.create(null),t),e):e}function zt(t,e){if(!t)return e;if(!e)return t;const r=(0,i.l7)(Object.create(null),t);for(const n in e)r[n]=Yt(t[n],e[n]);return r}function qt(t,e,r,o=!1){const s={},a={};(0,i.Nj)(a,Ge,1),t.propsDefaults=Object.create(null),$t(t,e,s,a);for(const n in t.propsOptions[0])n in s||(s[n]=void 0);r?t.props=o?s:(0,n.Um)(s):t.type.props?t.props=s:t.props=a,t.attrs=a}function Kt(t,e,r,o){const{props:s,attrs:a,vnode:{patchFlag:u}}=t,h=(0,n.IU)(s),[l]=t.propsOptions;let c=!1;if(!(o||u>0)||16&u){let n;$t(t,e,s,a)&&(c=!0);for(const o in h)e&&((0,i.RI)(e,o)||(n=(0,i.rs)(o))!==o&&(0,i.RI)(e,n))||(l?!r||void 0===r[o]&&void 0===r[n]||(s[o]=Zt(l,h,o,void 0,t,!0)):delete s[o]);if(a!==h)for(const t in a)e&&(0,i.RI)(e,t)||(delete a[t],c=!0)}else if(8&u){const r=t.vnode.dynamicProps;for(let n=0;n<r.length;n++){let o=r[n];const u=e[o];if(l)if((0,i.RI)(a,o))u!==a[o]&&(a[o]=u,c=!0);else{const e=(0,i._A)(o);s[e]=Zt(l,h,e,u,t,!1)}else u!==a[o]&&(a[o]=u,c=!0)}}c&&(0,n.X$)(t,"set","$attrs")}function $t(t,e,r,o){const[s,a]=t.propsOptions;let u,h=!1;if(e)for(let n in e){if((0,i.Gg)(n))continue;const l=e[n];let c;s&&(0,i.RI)(s,c=(0,i._A)(n))?a&&a.includes(c)?(u||(u={}))[c]=l:r[c]=l:F(t.emitsOptions,n)||n in o&&l===o[n]||(o[n]=l,h=!0)}if(a){const e=(0,n.IU)(r),o=u||i.kT;for(let n=0;n<a.length;n++){const u=a[n];r[u]=Zt(s,e,u,o[u],t,!(0,i.RI)(o,u))}}return h}function Zt(t,e,r,n,o,s){const a=t[r];if(null!=a){const t=(0,i.RI)(a,"default");if(t&&void 0===n){const t=a.default;if(a.type!==Function&&(0,i.mf)(t)){const{propsDefaults:i}=o;r in i?n=i[r]:(sr(o),n=i[r]=t.call(null,e),ar())}else n=t}a[0]&&(s&&!t?n=!1:!a[1]||""!==n&&n!==(0,i.rs)(r)||(n=!0))}return n}function Jt(t,e,r=!1){const n=e.propsCache,o=n.get(t);if(o)return o;const s=t.props,a={},u=[];let h=!1;if(!(0,i.mf)(t)){const n=t=>{h=!0;const[r,n]=Jt(t,e,!0);(0,i.l7)(a,r),n&&u.push(...n)};!r&&e.mixins.length&&e.mixins.forEach(n),t.extends&&n(t.extends),t.mixins&&t.mixins.forEach(n)}if(!s&&!h)return n.set(t,i.Z6),i.Z6;if((0,i.kJ)(s))for(let c=0;c<s.length;c++){0;const t=(0,i._A)(s[c]);Qt(t)&&(a[t]=i.kT)}else if(s){0;for(const t in s){const e=(0,i._A)(t);if(Qt(e)){const r=s[t],n=a[e]=(0,i.kJ)(r)||(0,i.mf)(r)?{type:r}:r;if(n){const t=re(Boolean,n.type),r=re(String,n.type);n[0]=t>-1,n[1]=r<0||t<r,(t>-1||(0,i.RI)(n,"default"))&&u.push(e)}}}}const l=[a,u];return n.set(t,l),l}function Qt(t){return"$"!==t[0]}function te(t){const e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:null===t?"null":""}function ee(t,e){return te(t)===te(e)}function re(t,e){return(0,i.kJ)(e)?e.findIndex((e=>ee(e,t))):(0,i.mf)(e)&&ee(e,t)?0:-1}const ne=t=>"_"===t[0]||"$stable"===t,ie=t=>(0,i.kJ)(t)?t.map(ze):[ze(t)],oe=(t,e,r)=>{const n=X(((...t)=>ie(e(...t))),r);return n._c=!1,n},se=(t,e,r)=>{const n=t._ctx;for(const o in t){if(ne(o))continue;const r=t[o];if((0,i.mf)(r))e[o]=oe(o,r,n);else if(null!=r){0;const t=ie(r);e[o]=()=>t}}},ae=(t,e)=>{const r=ie(e);t.slots.default=()=>r},ue=(t,e)=>{if(32&t.vnode.shapeFlag){const r=e._;r?(t.slots=(0,n.IU)(e),(0,i.Nj)(e,"_",r)):se(e,t.slots={})}else t.slots={},e&&ae(t,e);(0,i.Nj)(t.slots,Ge,1)},he=(t,e,r)=>{const{vnode:n,slots:o}=t;let s=!0,a=i.kT;if(32&n.shapeFlag){const t=e._;t?r&&1===t?s=!1:((0,i.l7)(o,e),r||1!==t||delete o._):(s=!e.$stable,se(e,o)),a=e}else e&&(ae(t,e),a={default:1});if(s)for(const i in o)ne(i)||i in a||delete o[i]};function le(t,e,r,i){const o=t.dirs,a=e&&e.dirs;for(let u=0;u<o.length;u++){const h=o[u];a&&(h.oldValue=a[u].value);let l=h.dir[i];l&&((0,n.Jd)(),s(l,r,8,[t.el,h,t,e]),(0,n.lk)())}}function ce(){return{app:null,config:{isNativeTag:i.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let fe=0;function de(t,e){return function(r,n=null){null==n||(0,i.Kn)(n)||(n=null);const o=ce(),s=new Set;let a=!1;const u=o.app={_uid:fe++,_component:r,_props:n,_container:null,_context:o,_instance:null,version:xr,get config(){return o.config},set config(t){0},use(t,...e){return s.has(t)||(t&&(0,i.mf)(t.install)?(s.add(t),t.install(u,...e)):(0,i.mf)(t)&&(s.add(t),t(u,...e))),u},mixin(t){return o.mixins.includes(t)||o.mixins.push(t),u},component(t,e){return e?(o.components[t]=e,u):o.components[t]},directive(t,e){return e?(o.directives[t]=e,u):o.directives[t]},mount(i,s,h){if(!a){const l=He(r,n);return l.appContext=o,s&&e?e(l,i):t(l,i,h),a=!0,u._container=i,i.__vue_app__=u,yr(l.component)||l.component.proxy}},unmount(){a&&(t(null,u._container),delete u._container.__vue_app__)},provide(t,e){return o.provides[t]=e,u}};return u}}function pe(t,e,r,s,a=!1){if((0,i.kJ)(t))return void t.forEach(((t,n)=>pe(t,e&&((0,i.kJ)(e)?e[n]:e),r,s,a)));if(dt(s)&&!a)return;const u=4&s.shapeFlag?yr(s.component)||s.component.proxy:s.el,h=a?null:u,{i:l,r:c}=t;const f=e&&e.r,d=l.refs===i.kT?l.refs={}:l.refs,p=l.setupState;if(null!=f&&f!==c&&((0,i.HD)(f)?(d[f]=null,(0,i.RI)(p,f)&&(p[f]=null)):(0,n.dq)(f)&&(f.value=null)),(0,i.mf)(c))o(c,l,12,[h,d]);else{const e=(0,i.HD)(c),o=(0,n.dq)(c);if(e||o){const o=()=>{if(t.f){const r=e?d[c]:c.value;a?(0,i.kJ)(r)&&(0,i.Od)(r,u):(0,i.kJ)(r)?r.includes(u)||r.push(u):e?d[c]=[u]:(c.value=[u],t.k&&(d[t.k]=c.value))}else e?(d[c]=h,(0,i.RI)(p,c)&&(p[c]=h)):(0,n.dq)(c)&&(c.value=h,t.k&&(d[t.k]=h))};h?(o.id=-1,ve(o,r)):o()}else 0}}function _e(){}const ve=q;function me(t){return ye(t)}function ye(t,e){_e();const r=(0,i.E9)();r.__VUE__=!0;const{insert:o,remove:s,patchProp:a,createElement:u,createText:h,createComment:l,setText:c,setElementText:f,parentNode:d,nextSibling:p,setScopeId:_=i.dG,cloneNode:v,insertStaticContent:m}=t,y=(t,e,r,n=null,i=null,o=null,s=!1,a=null,u=!!e.dynamicChildren)=>{if(t===e)return;t&&!Ue(t,e)&&(n=Q(t),q(t,i,o,!0),t=null),-2===e.patchFlag&&(u=!1,e.dynamicChildren=null);const{type:h,ref:l,shapeFlag:c}=e;switch(h){case Ae:g(t,e,r,n);break;case Ie:E(t,e,r,n);break;case Se:null==t&&T(e,r,n,s);break;case Re:L(t,e,r,n,i,o,s,a,u);break;default:1&c?A(t,e,r,n,i,o,s,a,u):6&c?F(t,e,r,n,i,o,s,a,u):(64&c||128&c)&&h.process(t,e,r,n,i,o,s,a,u,et)}null!=l&&i&&pe(l,t&&t.ref,o,e||t,!e)},g=(t,e,r,n)=>{if(null==t)o(e.el=h(e.children),r,n);else{const r=e.el=t.el;e.children!==t.children&&c(r,e.children)}},E=(t,e,r,n)=>{null==t?o(e.el=l(e.children||""),r,n):e.el=t.el},T=(t,e,r,n)=>{[t.el,t.anchor]=m(t.children,e,r,n,t.el,t.anchor)},b=({el:t,anchor:e},r,n)=>{let i;while(t&&t!==e)i=p(t),o(t,r,n),t=i;o(e,r,n)},x=({el:t,anchor:e})=>{let r;while(t&&t!==e)r=p(t),s(t),t=r;s(e)},A=(t,e,r,n,i,o,s,a,u)=>{s=s||"svg"===e.type,null==t?S(e,r,n,i,o,s,a,u):w(t,e,i,o,s,a,u)},S=(t,e,r,n,s,h,l,c)=>{let d,p;const{type:_,props:m,shapeFlag:y,transition:g,patchFlag:E,dirs:T}=t;if(t.el&&void 0!==v&&-1===E)d=t.el=v(t.el);else{if(d=t.el=u(t.type,h,m&&m.is,m),8&y?f(d,t.children):16&y&&P(t.children,d,null,n,s,h&&"foreignObject"!==_,l,c),T&&le(t,null,n,"created"),m){for(const e in m)"value"===e||(0,i.Gg)(e)||a(d,e,null,m[e],h,t.children,n,s,J);"value"in m&&a(d,"value",null,m.value),(p=m.onVnodeBeforeMount)&&Ze(p,n,t)}O(d,t,t.scopeId,l,n)}T&&le(t,null,n,"beforeMount");const b=(!s||s&&!s.pendingBranch)&&g&&!g.persisted;b&&g.beforeEnter(d),o(d,e,r),((p=m&&m.onVnodeMounted)||b||T)&&ve((()=>{p&&Ze(p,n,t),b&&g.enter(d),T&&le(t,null,n,"mounted")}),s)},O=(t,e,r,n,i)=>{if(r&&_(t,r),n)for(let o=0;o<n.length;o++)_(t,n[o]);if(i){let r=i.subTree;if(e===r){const e=i.vnode;O(t,e,e.scopeId,e.slotScopeIds,i.parent)}}},P=(t,e,r,n,i,o,s,a,u=0)=>{for(let h=u;h<t.length;h++){const u=t[h]=a?qe(t[h]):ze(t[h]);y(null,u,e,r,n,i,o,s,a)}},w=(t,e,r,n,o,s,u)=>{const h=e.el=t.el;let{patchFlag:l,dynamicChildren:c,dirs:d}=e;l|=16&t.patchFlag;const p=t.props||i.kT,_=e.props||i.kT;let v;r&&ge(r,!1),(v=_.onVnodeBeforeUpdate)&&Ze(v,r,e,t),d&&le(e,t,r,"beforeUpdate"),r&&ge(r,!0);const m=o&&"foreignObject"!==e.type;if(c?D(t.dynamicChildren,c,h,r,n,m,s):u||H(t,e,h,null,r,n,m,s,!1),l>0){if(16&l)C(h,e,p,_,r,n,o);else if(2&l&&p.class!==_.class&&a(h,"class",null,_.class,o),4&l&&a(h,"style",p.style,_.style,o),8&l){const i=e.dynamicProps;for(let e=0;e<i.length;e++){const s=i[e],u=p[s],l=_[s];l===u&&"value"!==s||a(h,s,u,l,o,t.children,r,n,J)}}1&l&&t.children!==e.children&&f(h,e.children)}else u||null!=c||C(h,e,p,_,r,n,o);((v=_.onVnodeUpdated)||d)&&ve((()=>{v&&Ze(v,r,e,t),d&&le(e,t,r,"updated")}),n)},D=(t,e,r,n,i,o,s)=>{for(let a=0;a<e.length;a++){const u=t[a],h=e[a],l=u.el&&(u.type===Re||!Ue(u,h)||70&u.shapeFlag)?d(u.el):r;y(u,h,l,null,n,i,o,s,!0)}},C=(t,e,r,n,o,s,u)=>{if(r!==n){for(const h in n){if((0,i.Gg)(h))continue;const l=n[h],c=r[h];l!==c&&"value"!==h&&a(t,h,c,l,u,e.children,o,s,J)}if(r!==i.kT)for(const h in r)(0,i.Gg)(h)||h in n||a(t,h,r[h],null,u,e.children,o,s,J);"value"in n&&a(t,"value",r.value,n.value)}},L=(t,e,r,n,i,s,a,u,l)=>{const c=e.el=t?t.el:h(""),f=e.anchor=t?t.anchor:h("");let{patchFlag:d,dynamicChildren:p,slotScopeIds:_}=e;_&&(u=u?u.concat(_):_),null==t?(o(c,r,n),o(f,r,n),P(e.children,r,f,i,s,a,u,l)):d>0&&64&d&&p&&t.dynamicChildren?(D(t.dynamicChildren,p,r,i,s,a,u),(null!=e.key||i&&e===i.subTree)&&Ee(t,e,!0)):H(t,e,r,f,i,s,a,u,l)},F=(t,e,r,n,i,o,s,a,u)=>{e.slotScopeIds=a,null==t?512&e.shapeFlag?i.ctx.activate(e,r,n,s,u):U(e,r,n,i,o,s,u):G(t,e,u)},U=(t,e,r,n,i,o,s)=>{const a=t.component=nr(t,n,i);if(pt(t)&&(a.ctx.renderer=et),fr(a),a.asyncDep){if(i&&i.registerDep(a,B),!t.el){const t=a.subTree=He(Ie);E(null,t,e,r)}}else B(a,t,e,r,i,o,s)},G=(t,e,r)=>{const n=e.component=t.component;if(V(t,e,r)){if(n.asyncDep&&!n.asyncResolved)return void X(n,e,r);n.next=e,I(n.update),n.update()}else e.component=t.component,e.el=t.el,n.vnode=e},B=(t,e,r,o,s,a,u)=>{const h=()=>{if(t.isMounted){let e,{next:r,bu:n,u:o,parent:h,vnode:l}=t,c=r;0,ge(t,!1),r?(r.el=l.el,X(t,r,u)):r=l,n&&(0,i.ir)(n),(e=r.props&&r.props.onVnodeBeforeUpdate)&&Ze(e,h,r,l),ge(t,!0);const f=k(t);0;const p=t.subTree;t.subTree=f,y(p,f,d(p.el),Q(p),t,s,a),r.el=f.el,null===c&&W(t,f.el),o&&ve(o,s),(e=r.props&&r.props.onVnodeUpdated)&&ve((()=>Ze(e,h,r,l)),s)}else{let n;const{el:u,props:h}=e,{bm:l,m:c,parent:f}=t,d=dt(e);if(ge(t,!1),l&&(0,i.ir)(l),!d&&(n=h&&h.onVnodeBeforeMount)&&Ze(n,f,e),ge(t,!0),u&&nt){const r=()=>{t.subTree=k(t),nt(u,t.subTree,t,s,null)};d?e.type.__asyncLoader().then((()=>!t.isUnmounted&&r())):r()}else{0;const n=t.subTree=k(t);0,y(null,n,r,o,t,s,a),e.el=n.el}if(c&&ve(c,s),!d&&(n=h&&h.onVnodeMounted)){const t=e;ve((()=>Ze(n,f,t)),s)}256&e.shapeFlag&&t.a&&ve(t.a,s),t.isMounted=!0,e=r=o=null}},l=t.effect=new n.qq(h,(()=>R(t.update)),t.scope),c=t.update=l.run.bind(l);c.id=t.uid,ge(t,!0),c()},X=(t,e,r)=>{e.component=t;const i=t.vnode.props;t.vnode=e,t.next=null,Kt(t,e.props,i,r),he(t,e.children,r),(0,n.Jd)(),N(void 0,t.update),(0,n.lk)()},H=(t,e,r,n,i,o,s,a,u=!1)=>{const h=t&&t.children,l=t?t.shapeFlag:0,c=e.children,{patchFlag:d,shapeFlag:p}=e;if(d>0){if(128&d)return void Y(h,c,r,n,i,o,s,a,u);if(256&d)return void j(h,c,r,n,i,o,s,a,u)}8&p?(16&l&&J(h,i,o),c!==h&&f(r,c)):16&l?16&p?Y(h,c,r,n,i,o,s,a,u):J(h,i,o,!0):(8&l&&f(r,""),16&p&&P(c,r,n,i,o,s,a,u))},j=(t,e,r,n,o,s,a,u,h)=>{t=t||i.Z6,e=e||i.Z6;const l=t.length,c=e.length,f=Math.min(l,c);let d;for(d=0;d<f;d++){const n=e[d]=h?qe(e[d]):ze(e[d]);y(t[d],n,r,null,o,s,a,u,h)}l>c?J(t,o,s,!0,!1,f):P(e,r,n,o,s,a,u,h,f)},Y=(t,e,r,n,o,s,a,u,h)=>{let l=0;const c=e.length;let f=t.length-1,d=c-1;while(l<=f&&l<=d){const n=t[l],i=e[l]=h?qe(e[l]):ze(e[l]);if(!Ue(n,i))break;y(n,i,r,null,o,s,a,u,h),l++}while(l<=f&&l<=d){const n=t[f],i=e[d]=h?qe(e[d]):ze(e[d]);if(!Ue(n,i))break;y(n,i,r,null,o,s,a,u,h),f--,d--}if(l>f){if(l<=d){const t=d+1,i=t<c?e[t].el:n;while(l<=d)y(null,e[l]=h?qe(e[l]):ze(e[l]),r,i,o,s,a,u,h),l++}}else if(l>d)while(l<=f)q(t[l],o,s,!0),l++;else{const p=l,_=l,v=new Map;for(l=_;l<=d;l++){const t=e[l]=h?qe(e[l]):ze(e[l]);null!=t.key&&v.set(t.key,l)}let m,g=0;const E=d-_+1;let T=!1,b=0;const x=new Array(E);for(l=0;l<E;l++)x[l]=0;for(l=p;l<=f;l++){const n=t[l];if(g>=E){q(n,o,s,!0);continue}let i;if(null!=n.key)i=v.get(n.key);else for(m=_;m<=d;m++)if(0===x[m-_]&&Ue(n,e[m])){i=m;break}void 0===i?q(n,o,s,!0):(x[i-_]=l+1,i>=b?b=i:T=!0,y(n,e[i],r,null,o,s,a,u,h),g++)}const R=T?Te(x):i.Z6;for(m=R.length-1,l=E-1;l>=0;l--){const t=_+l,i=e[t],f=t+1<c?e[t+1].el:n;0===x[l]?y(null,i,r,f,o,s,a,u,h):T&&(m<0||l!==R[m]?z(i,r,f,2):m--)}}},z=(t,e,r,n,i=null)=>{const{el:s,type:a,transition:u,children:h,shapeFlag:l}=t;if(6&l)return void z(t.component.subTree,e,r,n);if(128&l)return void t.suspense.move(e,r,n);if(64&l)return void a.move(t,e,r,et);if(a===Re){o(s,e,r);for(let t=0;t<h.length;t++)z(h[t],e,r,n);return void o(t.anchor,e,r)}if(a===Se)return void b(t,e,r);const c=2!==n&&1&l&&u;if(c)if(0===n)u.beforeEnter(s),o(s,e,r),ve((()=>u.enter(s)),i);else{const{leave:t,delayLeave:n,afterLeave:i}=u,a=()=>o(s,e,r),h=()=>{t(s,(()=>{a(),i&&i()}))};n?n(s,a,h):h()}else o(s,e,r)},q=(t,e,r,n=!1,i=!1)=>{const{type:o,props:s,ref:a,children:u,dynamicChildren:h,shapeFlag:l,patchFlag:c,dirs:f}=t;if(null!=a&&pe(a,null,r,t,!0),256&l)return void e.ctx.deactivate(t);const d=1&l&&f,p=!dt(t);let _;if(p&&(_=s&&s.onVnodeBeforeUnmount)&&Ze(_,e,t),6&l)Z(t.component,r,n);else{if(128&l)return void t.suspense.unmount(r,n);d&&le(t,null,e,"beforeUnmount"),64&l?t.type.remove(t,e,r,i,et,n):h&&(o!==Re||c>0&&64&c)?J(h,e,r,!1,!0):(o===Re&&384&c||!i&&16&l)&&J(u,e,r),n&&K(t)}(p&&(_=s&&s.onVnodeUnmounted)||d)&&ve((()=>{_&&Ze(_,e,t),d&&le(t,null,e,"unmounted")}),r)},K=t=>{const{type:e,el:r,anchor:n,transition:i}=t;if(e===Re)return void $(r,n);if(e===Se)return void x(t);const o=()=>{s(r),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&t.shapeFlag&&i&&!i.persisted){const{leave:e,delayLeave:n}=i,s=()=>e(r,o);n?n(t.el,o,s):s()}else o()},$=(t,e)=>{let r;while(t!==e)r=p(t),s(t),t=r;s(e)},Z=(t,e,r)=>{const{bum:n,scope:o,update:s,subTree:a,um:u}=t;n&&(0,i.ir)(n),o.stop(),s&&(s.active=!1,q(a,t,e,r)),u&&ve(u,e),ve((()=>{t.isUnmounted=!0}),e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve())},J=(t,e,r,n=!1,i=!1,o=0)=>{for(let s=o;s<t.length;s++)q(t[s],e,r,n,i)},Q=t=>6&t.shapeFlag?Q(t.component.subTree):128&t.shapeFlag?t.suspense.next():p(t.anchor||t.el),tt=(t,e,r)=>{null==t?e._vnode&&q(e._vnode,null,null,!0):y(e._vnode||null,t,e,null,null,null,r),M(),e._vnode=t},et={p:y,um:q,m:z,r:K,mt:U,mc:P,pc:H,pbc:D,n:Q,o:t};let rt,nt;return e&&([rt,nt]=e(et)),{render:tt,hydrate:rt,createApp:de(tt,rt)}}function ge({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function Ee(t,e,r=!1){const n=t.children,o=e.children;if((0,i.kJ)(n)&&(0,i.kJ)(o))for(let i=0;i<n.length;i++){const t=n[i];let e=o[i];1&e.shapeFlag&&!e.dynamicChildren&&((e.patchFlag<=0||32===e.patchFlag)&&(e=o[i]=qe(o[i]),e.el=t.el),r||Ee(t,e))}}function Te(t){const e=t.slice(),r=[0];let n,i,o,s,a;const u=t.length;for(n=0;n<u;n++){const u=t[n];if(0!==u){if(i=r[r.length-1],t[i]<u){e[n]=i,r.push(n);continue}o=0,s=r.length-1;while(o<s)a=o+s>>1,t[r[a]]<u?o=a+1:s=a;u<t[r[o]]&&(o>0&&(e[n]=r[o-1]),r[o]=n)}}o=r.length,s=r[o-1];while(o-- >0)r[o]=s,s=e[s];return r}const be=t=>t.__isTeleport;const xe=Symbol();const Re=Symbol(void 0),Ae=Symbol(void 0),Ie=Symbol(void 0),Se=Symbol(void 0),Oe=[];let Pe=null;function Ne(t=!1){Oe.push(Pe=t?null:[])}function Me(){Oe.pop(),Pe=Oe[Oe.length-1]||null}let we=1;function De(t){we+=t}function Ce(t){return t.dynamicChildren=we>0?Pe||i.Z6:null,Me(),we>0&&Pe&&Pe.push(t),t}function Le(t,e,r,n,i,o){return Ce(ke(t,e,r,n,i,o,!0))}function Fe(t){return!!t&&!0===t.__v_isVNode}function Ue(t,e){return t.type===e.type&&t.key===e.key}const Ge="__vInternal",Be=({key:t})=>null!=t?t:null,Xe=({ref:t,ref_key:e,ref_for:r})=>null!=t?(0,i.HD)(t)||(0,n.dq)(t)||(0,i.mf)(t)?{i:U,r:t,k:e,f:!!r}:t:null;function ke(t,e=null,r=null,n=0,o=null,s=(t===Re?0:1),a=!1,u=!1){const h={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Be(e),ref:e&&Xe(e),scopeId:G,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null};return u?(Ke(h,r),128&s&&t.normalize(h)):r&&(h.shapeFlag|=(0,i.HD)(r)?8:16),we>0&&!a&&Pe&&(h.patchFlag>0||6&s)&&32!==h.patchFlag&&Pe.push(h),h}const He=je;function je(t,e=null,r=null,o=0,s=null,a=!1){if(t&&t!==xe||(t=Ie),Fe(t)){const n=Ye(t,e,!0);return r&&Ke(n,r),n}if(Er(t)&&(t=t.__vccOpts),e){e=Ve(e);let{class:t,style:r}=e;t&&!(0,i.HD)(t)&&(e.class=(0,i.C_)(t)),(0,i.Kn)(r)&&((0,n.X3)(r)&&!(0,i.kJ)(r)&&(r=(0,i.l7)({},r)),e.style=(0,i.j5)(r))}const u=(0,i.HD)(t)?1:z(t)?128:be(t)?64:(0,i.Kn)(t)?4:(0,i.mf)(t)?2:0;return ke(t,e,r,o,s,u,a,!0)}function Ve(t){return t?(0,n.X3)(t)||Ge in t?(0,i.l7)({},t):t:null}function Ye(t,e,r=!1){const{props:n,ref:o,patchFlag:s,children:a}=t,u=e?$e(n||{},e):n,h={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&Be(u),ref:e&&e.ref?r&&o?(0,i.kJ)(o)?o.concat(Xe(e)):[o,Xe(e)]:Xe(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Re?-1===s?16:16|s:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ye(t.ssContent),ssFallback:t.ssFallback&&Ye(t.ssFallback),el:t.el,anchor:t.anchor};return h}function We(t=" ",e=0){return He(Ae,null,t,e)}function ze(t){return null==t||"boolean"===typeof t?He(Ie):(0,i.kJ)(t)?He(Re,null,t.slice()):"object"===typeof t?qe(t):He(Ae,null,String(t))}function qe(t){return null===t.el||t.memo?t:Ye(t)}function Ke(t,e){let r=0;const{shapeFlag:n}=t;if(null==e)e=null;else if((0,i.kJ)(e))r=16;else if("object"===typeof e){if(65&n){const r=e.default;return void(r&&(r._c&&(r._d=!1),Ke(t,r()),r._c&&(r._d=!0)))}{r=32;const n=e._;n||Ge in e?3===n&&U&&(1===U.slots._?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=U}}else(0,i.mf)(e)?(e={default:e,_ctx:U},r=32):(e=String(e),64&n?(r=16,e=[We(e)]):r=8);t.children=e,t.shapeFlag|=r}function $e(...t){const e={};for(let r=0;r<t.length;r++){const n=t[r];for(const t in n)if("class"===t)e.class!==n.class&&(e.class=(0,i.C_)([e.class,n.class]));else if("style"===t)e.style=(0,i.j5)([e.style,n.style]);else if((0,i.F7)(t)){const r=e[t],o=n[t];!o||r===o||(0,i.kJ)(r)&&r.includes(o)||(e[t]=r?[].concat(r,o):o)}else""!==t&&(e[t]=n[t])}return e}function Ze(t,e,r,n=null){s(t,e,7,[r,n])}const Je=t=>t?ur(t)?yr(t)||t.proxy:Je(t.parent):null,Qe=(0,i.l7)(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Je(t.parent),$root:t=>Je(t.root),$emit:t=>t.emit,$options:t=>Bt(t),$forceUpdate:t=>()=>R(t.update),$nextTick:t=>b.bind(t.proxy),$watch:t=>tt.bind(t)}),tr={get({_:t},e){const{ctx:r,setupState:o,data:s,props:a,accessCache:u,type:h,appContext:l}=t;let c;if("$"!==e[0]){const n=u[e];if(void 0!==n)switch(n){case 1:return o[e];case 2:return s[e];case 4:return r[e];case 3:return a[e]}else{if(o!==i.kT&&(0,i.RI)(o,e))return u[e]=1,o[e];if(s!==i.kT&&(0,i.RI)(s,e))return u[e]=2,s[e];if((c=t.propsOptions[0])&&(0,i.RI)(c,e))return u[e]=3,a[e];if(r!==i.kT&&(0,i.RI)(r,e))return u[e]=4,r[e];Ct&&(u[e]=0)}}const f=Qe[e];let d,p;return f?("$attrs"===e&&(0,n.j)(t,"get",e),f(t)):(d=h.__cssModules)&&(d=d[e])?d:r!==i.kT&&(0,i.RI)(r,e)?(u[e]=4,r[e]):(p=l.config.globalProperties,(0,i.RI)(p,e)?p[e]:void 0)},set({_:t},e,r){const{data:n,setupState:o,ctx:s}=t;return o!==i.kT&&(0,i.RI)(o,e)?(o[e]=r,!0):n!==i.kT&&(0,i.RI)(n,e)?(n[e]=r,!0):!(0,i.RI)(t.props,e)&&(("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=r,!0))},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:o,propsOptions:s}},a){let u;return!!r[a]||t!==i.kT&&(0,i.RI)(t,a)||e!==i.kT&&(0,i.RI)(e,a)||(u=s[0])&&(0,i.RI)(u,a)||(0,i.RI)(n,a)||(0,i.RI)(Qe,a)||(0,i.RI)(o.config.globalProperties,a)},defineProperty(t,e,r){return null!=r.get?this.set(t,e,r.get(),null):null!=r.value&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};const er=ce();let rr=0;function nr(t,e,r){const o=t.type,s=(e?e.appContext:t.appContext)||er,a={uid:rr++,vnode:t,type:o,parent:e,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new n.Bj(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Jt(o,s),emitsOptions:L(o,s),emit:null,emitted:null,propsDefaults:i.kT,inheritAttrs:o.inheritAttrs,ctx:i.kT,data:i.kT,props:i.kT,attrs:i.kT,slots:i.kT,refs:i.kT,setupState:i.kT,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=e?e.root:a,a.emit=C.bind(null,a),t.ce&&t.ce(a),a}let ir=null;const or=()=>ir||U,sr=t=>{ir=t,t.scope.on()},ar=()=>{ir&&ir.scope.off(),ir=null};function ur(t){return 4&t.vnode.shapeFlag}let hr,lr,cr=!1;function fr(t,e=!1){cr=e;const{props:r,children:n}=t.vnode,i=ur(t);qt(t,r,i,e),ue(t,n);const o=i?dr(t,e):void 0;return cr=!1,o}function dr(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=(0,n.Xl)(new Proxy(t.ctx,tr));const{setup:s}=r;if(s){const r=t.setupContext=s.length>1?mr(t):null;sr(t),(0,n.Jd)();const u=o(s,t,0,[t.props,r]);if((0,n.lk)(),ar(),(0,i.tI)(u)){if(u.then(ar,ar),e)return u.then((r=>{pr(t,r,e)})).catch((e=>{a(e,t,0)}));t.asyncDep=u}else pr(t,u,e)}else _r(t,e)}function pr(t,e,r){(0,i.mf)(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:(0,i.Kn)(e)&&(t.setupState=(0,n.WL)(e)),_r(t,r)}function _r(t,e,r){const o=t.type;if(!t.render){if(!e&&hr&&!o.render){const e=o.template;if(e){0;const{isCustomElement:r,compilerOptions:n}=t.appContext.config,{delimiters:s,compilerOptions:a}=o,u=(0,i.l7)((0,i.l7)({isCustomElement:r,delimiters:s},n),a);o.render=hr(e,u)}}t.render=o.render||i.dG,lr&&lr(t)}sr(t),(0,n.Jd)(),Lt(t),(0,n.lk)(),ar()}function vr(t){return new Proxy(t.attrs,{get(e,r){return(0,n.j)(t,"get","$attrs"),e[r]}})}function mr(t){const e=e=>{t.exposed=e||{}};let r;return{get attrs(){return r||(r=vr(t))},slots:t.slots,emit:t.emit,expose:e}}function yr(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy((0,n.WL)((0,n.Xl)(t.exposed)),{get(e,r){return r in e?e[r]:r in Qe?Qe[r](t):void 0}}))}function gr(t){return(0,i.mf)(t)&&t.displayName||t.name}function Er(t){return(0,i.mf)(t)&&"__vccOpts"in t}const Tr=(t,e)=>(0,n.Fl)(t,e,cr);function br(t,e,r){const n=arguments.length;return 2===n?(0,i.Kn)(e)&&!(0,i.kJ)(e)?Fe(e)?He(t,null,[e]):He(t,e):He(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):3===n&&Fe(r)&&(r=[r]),He(t,e,r))}Symbol("");const xr="3.2.31"},9242:function(t,e,r){"use strict";r.d(e,{ri:function(){return rt}});var n=r(7139),i=r(3396);r(4870);const o="http://www.w3.org/2000/svg",s="undefined"!==typeof document?document:null,a=s&&s.createElement("template"),u={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const i=e?s.createElementNS(o,t):s.createElement(t,r?{is:r}:void 0);return"select"===t&&n&&null!=n.multiple&&i.setAttribute("multiple",n.multiple),i},createText:t=>s.createTextNode(t),createComment:t=>s.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>s.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},cloneNode(t){const e=t.cloneNode(!0);return"_value"in t&&(e._value=t._value),e},insertStaticContent(t,e,r,n,i,o){const s=r?r.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling)){while(1)if(e.insertBefore(i.cloneNode(!0),r),i===o||!(i=i.nextSibling))break}else{a.innerHTML=n?`<svg>${t}</svg>`:t;const i=a.content;if(n){const t=i.firstChild;while(t.firstChild)i.appendChild(t.firstChild);i.removeChild(t)}e.insertBefore(i,r)}return[s?s.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}};function h(t,e,r){const n=t._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),null==e?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}function l(t,e,r){const i=t.style,o=(0,n.HD)(r);if(r&&!o){for(const t in r)f(i,t,r[t]);if(e&&!(0,n.HD)(e))for(const t in e)null==r[t]&&f(i,t,"")}else{const n=i.display;o?e!==r&&(i.cssText=r):e&&t.removeAttribute("style"),"_vod"in t&&(i.display=n)}}const c=/\s*!important$/;function f(t,e,r){if((0,n.kJ)(r))r.forEach((r=>f(t,e,r)));else if(e.startsWith("--"))t.setProperty(e,r);else{const i=_(t,e);c.test(r)?t.setProperty((0,n.rs)(i),r.replace(c,""),"important"):t[i]=r}}const d=["Webkit","Moz","ms"],p={};function _(t,e){const r=p[e];if(r)return r;let i=(0,n._A)(e);if("filter"!==i&&i in t)return p[e]=i;i=(0,n.kC)(i);for(let n=0;n<d.length;n++){const r=d[n]+i;if(r in t)return p[e]=r}return e}const v="http://www.w3.org/1999/xlink";function m(t,e,r,i,o){if(i&&e.startsWith("xlink:"))null==r?t.removeAttributeNS(v,e.slice(6,e.length)):t.setAttributeNS(v,e,r);else{const i=(0,n.Pq)(e);null==r||i&&!(0,n.yA)(r)?t.removeAttribute(e):t.setAttribute(e,i?"":r)}}function y(t,e,r,i,o,s,a){if("innerHTML"===e||"textContent"===e)return i&&a(i,o,s),void(t[e]=null==r?"":r);if("value"===e&&"PROGRESS"!==t.tagName&&!t.tagName.includes("-")){t._value=r;const n=null==r?"":r;return t.value===n&&"OPTION"!==t.tagName||(t.value=n),void(null==r&&t.removeAttribute(e))}if(""===r||null==r){const i=typeof t[e];if("boolean"===i)return void(t[e]=(0,n.yA)(r));if(null==r&&"string"===i)return t[e]="",void t.removeAttribute(e);if("number"===i){try{t[e]=0}catch(u){}return void t.removeAttribute(e)}}try{t[e]=r}catch(h){0}}let g=Date.now,E=!1;if("undefined"!==typeof window){g()>document.createEvent("Event").timeStamp&&(g=()=>performance.now());const t=navigator.userAgent.match(/firefox\/(\d+)/i);E=!!(t&&Number(t[1])<=53)}let T=0;const b=Promise.resolve(),x=()=>{T=0},R=()=>T||(b.then(x),T=g());function A(t,e,r,n){t.addEventListener(e,r,n)}function I(t,e,r,n){t.removeEventListener(e,r,n)}function S(t,e,r,n,i=null){const o=t._vei||(t._vei={}),s=o[e];if(n&&s)s.value=n;else{const[r,a]=P(e);if(n){const s=o[e]=N(n,i);A(t,r,s,a)}else s&&(I(t,r,s,a),o[e]=void 0)}}const O=/(?:Once|Passive|Capture)$/;function P(t){let e;if(O.test(t)){let r;e={};while(r=t.match(O))t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[(0,n.rs)(t.slice(2)),e]}function N(t,e){const r=t=>{const n=t.timeStamp||g();(E||n>=r.attached-1)&&(0,i.$d)(M(t,r.value),e,5,[t])};return r.value=t,r.attached=R(),r}function M(t,e){if((0,n.kJ)(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map((t=>e=>!e._stopped&&t&&t(e)))}return e}const w=/^on[a-z]/,D=(t,e,r,i,o=!1,s,a,u,c)=>{"class"===e?h(t,i,o):"style"===e?l(t,r,i):(0,n.F7)(e)?(0,n.tR)(e)||S(t,e,r,i,a):("."===e[0]?(e=e.slice(1),1):"^"===e[0]?(e=e.slice(1),0):C(t,e,i,o))?y(t,e,i,s,a,u,c):("true-value"===e?t._trueValue=i:"false-value"===e&&(t._falseValue=i),m(t,e,i,o))};function C(t,e,r,i){return i?"innerHTML"===e||"textContent"===e||!!(e in t&&w.test(e)&&(0,n.mf)(r)):"spellcheck"!==e&&"draggable"!==e&&("form"!==e&&(("list"!==e||"INPUT"!==t.tagName)&&(("type"!==e||"TEXTAREA"!==t.tagName)&&((!w.test(e)||!(0,n.HD)(r))&&e in t))))}"undefined"!==typeof HTMLElement&&HTMLElement;const L="transition",F="animation",U=(t,{slots:e})=>(0,i.h)(i.P$,k(t),e);U.displayName="Transition";const G={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},B=(U.props=(0,n.l7)({},i.P$.props,G),(t,e=[])=>{(0,n.kJ)(t)?t.forEach((t=>t(...e))):t&&t(...e)}),X=t=>!!t&&((0,n.kJ)(t)?t.some((t=>t.length>1)):t.length>1);function k(t){const e={};for(const n in t)n in G||(e[n]=t[n]);if(!1===t.css)return e;const{name:r="v",type:i,duration:o,enterFromClass:s=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:u=`${r}-enter-to`,appearFromClass:h=s,appearActiveClass:l=a,appearToClass:c=u,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:p=`${r}-leave-to`}=t,_=H(o),v=_&&_[0],m=_&&_[1],{onBeforeEnter:y,onEnter:g,onEnterCancelled:E,onLeave:T,onLeaveCancelled:b,onBeforeAppear:x=y,onAppear:R=g,onAppearCancelled:A=E}=e,I=(t,e,r)=>{Y(t,e?c:u),Y(t,e?l:a),r&&r()},S=(t,e)=>{Y(t,p),Y(t,d),e&&e()},O=t=>(e,r)=>{const n=t?R:g,o=()=>I(e,t,r);B(n,[e,o]),W((()=>{Y(e,t?h:s),V(e,t?c:u),X(n)||q(e,i,v,o)}))};return(0,n.l7)(e,{onBeforeEnter(t){B(y,[t]),V(t,s),V(t,a)},onBeforeAppear(t){B(x,[t]),V(t,h),V(t,l)},onEnter:O(!1),onAppear:O(!0),onLeave(t,e){const r=()=>S(t,e);V(t,f),J(),V(t,d),W((()=>{Y(t,f),V(t,p),X(T)||q(t,i,m,r)})),B(T,[t,r])},onEnterCancelled(t){I(t,!1),B(E,[t])},onAppearCancelled(t){I(t,!0),B(A,[t])},onLeaveCancelled(t){S(t),B(b,[t])}})}function H(t){if(null==t)return null;if((0,n.Kn)(t))return[j(t.enter),j(t.leave)];{const e=j(t);return[e,e]}}function j(t){const e=(0,n.He)(t);return e}function V(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.add(e))),(t._vtc||(t._vtc=new Set)).add(e)}function Y(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.remove(e)));const{_vtc:r}=t;r&&(r.delete(e),r.size||(t._vtc=void 0))}function W(t){requestAnimationFrame((()=>{requestAnimationFrame(t)}))}let z=0;function q(t,e,r,n){const i=t._endId=++z,o=()=>{i===t._endId&&n()};if(r)return setTimeout(o,r);const{type:s,timeout:a,propCount:u}=K(t,e);if(!s)return n();const h=s+"end";let l=0;const c=()=>{t.removeEventListener(h,f),o()},f=e=>{e.target===t&&++l>=u&&c()};setTimeout((()=>{l<u&&c()}),a+1),t.addEventListener(h,f)}function K(t,e){const r=window.getComputedStyle(t),n=t=>(r[t]||"").split(", "),i=n(L+"Delay"),o=n(L+"Duration"),s=$(i,o),a=n(F+"Delay"),u=n(F+"Duration"),h=$(a,u);let l=null,c=0,f=0;e===L?s>0&&(l=L,c=s,f=o.length):e===F?h>0&&(l=F,c=h,f=u.length):(c=Math.max(s,h),l=c>0?s>h?L:F:null,f=l?l===L?o.length:u.length:0);const d=l===L&&/\b(transform|all)(,|$)/.test(r[L+"Property"]);return{type:l,timeout:c,propCount:f,hasTransform:d}}function $(t,e){while(t.length<e.length)t=t.concat(t);return Math.max(...e.map(((e,r)=>Z(e)+Z(t[r]))))}function Z(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function J(){return document.body.offsetHeight}new WeakMap,new WeakMap;const Q=(0,n.l7)({patchProp:D},u);let tt;function et(){return tt||(tt=(0,i.Us)(Q))}const rt=(...t)=>{const e=et().createApp(...t);const{mount:r}=e;return e.mount=t=>{const i=nt(t);if(!i)return;const o=e._component;(0,n.mf)(o)||o.render||o.template||(o.template=i.innerHTML),i.innerHTML="";const s=r(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},e};function nt(t){if((0,n.HD)(t)){const e=document.querySelector(t);return e}return t}},7139:function(t,e,r){"use strict";function n(t,e){const r=Object.create(null),n=t.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return e?t=>!!r[t.toLowerCase()]:t=>!!r[t]}r.d(e,{C_:function(){return d},DM:function(){return N},E9:function(){return et},F7:function(){return b},Gg:function(){return H},HD:function(){return D},He:function(){return Q},Kn:function(){return L},NO:function(){return E},Nj:function(){return J},Od:function(){return A},PO:function(){return X},Pq:function(){return a},RI:function(){return S},S0:function(){return k},W7:function(){return B},WV:function(){return _},Z6:function(){return y},_A:function(){return Y},_N:function(){return P},aU:function(){return $},dG:function(){return g},e1:function(){return o},fY:function(){return n},hR:function(){return K},hq:function(){return v},ir:function(){return Z},j5:function(){return h},kC:function(){return q},kJ:function(){return O},kT:function(){return m},l7:function(){return R},mf:function(){return w},rs:function(){return z},tI:function(){return F},tR:function(){return x},yA:function(){return u},yk:function(){return C}});const i="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",o=n(i);const s="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",a=n(s);function u(t){return!!t||""===t}function h(t){if(O(t)){const e={};for(let r=0;r<t.length;r++){const n=t[r],i=D(n)?f(n):h(n);if(i)for(const t in i)e[t]=i[t]}return e}return D(t)||L(t)?t:void 0}const l=/;(?![^(]*\))/g,c=/:(.+)/;function f(t){const e={};return t.split(l).forEach((t=>{if(t){const r=t.split(c);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}function d(t){let e="";if(D(t))e=t;else if(O(t))for(let r=0;r<t.length;r++){const n=d(t[r]);n&&(e+=n+" ")}else if(L(t))for(const r in t)t[r]&&(e+=r+" ");return e.trim()}function p(t,e){if(t.length!==e.length)return!1;let r=!0;for(let n=0;r&&n<t.length;n++)r=_(t[n],e[n]);return r}function _(t,e){if(t===e)return!0;let r=M(t),n=M(e);if(r||n)return!(!r||!n)&&t.getTime()===e.getTime();if(r=O(t),n=O(e),r||n)return!(!r||!n)&&p(t,e);if(r=L(t),n=L(e),r||n){if(!r||!n)return!1;const i=Object.keys(t).length,o=Object.keys(e).length;if(i!==o)return!1;for(const r in t){const n=t.hasOwnProperty(r),i=e.hasOwnProperty(r);if(n&&!i||!n&&i||!_(t[r],e[r]))return!1}}return String(t)===String(e)}function v(t,e){return t.findIndex((t=>_(t,e)))}const m={},y=[],g=()=>{},E=()=>!1,T=/^on[^a-z]/,b=t=>T.test(t),x=t=>t.startsWith("onUpdate:"),R=Object.assign,A=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},I=Object.prototype.hasOwnProperty,S=(t,e)=>I.call(t,e),O=Array.isArray,P=t=>"[object Map]"===G(t),N=t=>"[object Set]"===G(t),M=t=>t instanceof Date,w=t=>"function"===typeof t,D=t=>"string"===typeof t,C=t=>"symbol"===typeof t,L=t=>null!==t&&"object"===typeof t,F=t=>L(t)&&w(t.then)&&w(t.catch),U=Object.prototype.toString,G=t=>U.call(t),B=t=>G(t).slice(8,-1),X=t=>"[object Object]"===G(t),k=t=>D(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,H=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),j=t=>{const e=Object.create(null);return r=>{const n=e[r];return n||(e[r]=t(r))}},V=/-(\w)/g,Y=j((t=>t.replace(V,((t,e)=>e?e.toUpperCase():"")))),W=/\B([A-Z])/g,z=j((t=>t.replace(W,"-$1").toLowerCase())),q=j((t=>t.charAt(0).toUpperCase()+t.slice(1))),K=j((t=>t?`on${q(t)}`:"")),$=(t,e)=>!Object.is(t,e),Z=(t,e)=>{for(let r=0;r<t.length;r++)t[r](e)},J=(t,e,r)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},Q=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let tt;const et=()=>tt||(tt="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:{})},8745:function(t){"use strict";function e(t,e,n){n=n||2;var o,s,a,u,l,c,f,d=e&&e.length,p=d?e[0]*n:t.length,_=r(t,0,p,n,!0),v=[];if(!_||_.next===_.prev)return v;if(d&&(_=h(t,e,_,n)),t.length>80*n){o=a=t[0],s=u=t[1];for(var m=n;m<p;m+=n)l=t[m],c=t[m+1],l<o&&(o=l),c<s&&(s=c),l>a&&(a=l),c>u&&(u=c);f=Math.max(a-o,u-s),f=0!==f?1/f:0}return i(_,v,n,o,s,f),v}function r(t,e,r,n,i){var o,s;if(i===w(t,e,r,n)>0)for(o=e;o<r;o+=n)s=P(o,t[o],t[o+1],s);else for(o=r-n;o>=e;o-=n)s=P(o,t[o],t[o+1],s);return s&&T(s,s.next)&&(N(s),s=s.next),s}function n(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!T(n,n.next)&&0!==E(n.prev,n,n.next))n=n.next;else{if(N(n),n=e=n.prev,n===n.next)break;r=!0}}while(r||n!==e);return e}function i(t,e,r,h,l,c,f){if(t){!f&&c&&p(t,h,l,c);var d,_,v=t;while(t.prev!==t.next)if(d=t.prev,_=t.next,c?s(t,h,l,c):o(t))e.push(d.i/r),e.push(t.i/r),e.push(_.i/r),N(t),t=_.next,v=_.next;else if(t=_,t===v){f?1===f?(t=a(n(t),e,r),i(t,e,r,h,l,c,2)):2===f&&u(t,e,r,h,l,c):i(n(t),e,r,h,l,c,1);break}}}function o(t){var e=t.prev,r=t,n=t.next;if(E(e,r,n)>=0)return!1;var i=t.next.next;while(i!==t.prev){if(y(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&&E(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function s(t,e,r,n){var i=t.prev,o=t,s=t.next;if(E(i,o,s)>=0)return!1;var a=i.x<o.x?i.x<s.x?i.x:s.x:o.x<s.x?o.x:s.x,u=i.y<o.y?i.y<s.y?i.y:s.y:o.y<s.y?o.y:s.y,h=i.x>o.x?i.x>s.x?i.x:s.x:o.x>s.x?o.x:s.x,l=i.y>o.y?i.y>s.y?i.y:s.y:o.y>s.y?o.y:s.y,c=v(a,u,e,r,n),f=v(h,l,e,r,n),d=t.prevZ,p=t.nextZ;while(d&&d.z>=c&&p&&p.z<=f){if(d!==t.prev&&d!==t.next&&y(i.x,i.y,o.x,o.y,s.x,s.y,d.x,d.y)&&E(d.prev,d,d.next)>=0)return!1;if(d=d.prevZ,p!==t.prev&&p!==t.next&&y(i.x,i.y,o.x,o.y,s.x,s.y,p.x,p.y)&&E(p.prev,p,p.next)>=0)return!1;p=p.nextZ}while(d&&d.z>=c){if(d!==t.prev&&d!==t.next&&y(i.x,i.y,o.x,o.y,s.x,s.y,d.x,d.y)&&E(d.prev,d,d.next)>=0)return!1;d=d.prevZ}while(p&&p.z<=f){if(p!==t.prev&&p!==t.next&&y(i.x,i.y,o.x,o.y,s.x,s.y,p.x,p.y)&&E(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function a(t,e,r){var i=t;do{var o=i.prev,s=i.next.next;!T(o,s)&&b(o,i,i.next,s)&&I(o,s)&&I(s,o)&&(e.push(o.i/r),e.push(i.i/r),e.push(s.i/r),N(i),N(i.next),i=t=s),i=i.next}while(i!==t);return n(i)}function u(t,e,r,o,s,a){var u=t;do{var h=u.next.next;while(h!==u.prev){if(u.i!==h.i&&g(u,h)){var l=O(u,h);return u=n(u,u.next),l=n(l,l.next),i(u,e,r,o,s,a),void i(l,e,r,o,s,a)}h=h.next}u=u.next}while(u!==t)}function h(t,e,i,o){var s,a,u,h,f,d=[];for(s=0,a=e.length;s<a;s++)u=e[s]*o,h=s<a-1?e[s+1]*o:t.length,f=r(t,u,h,o,!1),f===f.next&&(f.steiner=!0),d.push(m(f));for(d.sort(l),s=0;s<d.length;s++)i=c(d[s],i),i=n(i,i.next);return i}function l(t,e){return t.x-e.x}function c(t,e){var r=f(t,e);if(!r)return e;var i=O(r,t),o=n(r,r.next);return n(i,i.next),e===r?o:e}function f(t,e){var r,n=e,i=t.x,o=t.y,s=-1/0;do{if(o<=n.y&&o>=n.next.y&&n.next.y!==n.y){var a=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=i&&a>s){if(s=a,a===i){if(o===n.y)return n;if(o===n.next.y)return n.next}r=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===s)return r;var u,h=r,l=r.x,c=r.y,f=1/0;n=r;do{i>=n.x&&n.x>=l&&i!==n.x&&y(o<c?i:s,o,l,c,o<c?s:i,o,n.x,n.y)&&(u=Math.abs(o-n.y)/(i-n.x),I(n,t)&&(u<f||u===f&&(n.x>r.x||n.x===r.x&&d(r,n)))&&(r=n,f=u)),n=n.next}while(n!==h);return r}function d(t,e){return E(t.prev,t,e.prev)<0&&E(e.next,t,t.next)<0}function p(t,e,r,n){var i=t;do{null===i.z&&(i.z=v(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,_(i)}function _(t){var e,r,n,i,o,s,a,u,h=1;do{r=t,t=null,o=null,s=0;while(r){for(s++,n=r,a=0,e=0;e<h;e++)if(a++,n=n.nextZ,!n)break;u=h;while(a>0||u>0&&n)0!==a&&(0===u||!n||r.z<=n.z)?(i=r,r=r.nextZ,a--):(i=n,n=n.nextZ,u--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;r=n}o.nextZ=null,h*=2}while(s>1);return t}function v(t,e,r,n,i){return t=32767*(t-r)*i,e=32767*(e-n)*i,t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t|e<<1}function m(t){var e=t,r=t;do{(e.x<r.x||e.x===r.x&&e.y<r.y)&&(r=e),e=e.next}while(e!==t);return r}function y(t,e,r,n,i,o,s,a){return(i-s)*(e-a)-(t-s)*(o-a)>=0&&(t-s)*(n-a)-(r-s)*(e-a)>=0&&(r-s)*(o-a)-(i-s)*(n-a)>=0}function g(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!A(t,e)&&(I(t,e)&&I(e,t)&&S(t,e)&&(E(t.prev,t,e.prev)||E(t,e.prev,e))||T(t,e)&&E(t.prev,t,t.next)>0&&E(e.prev,e,e.next)>0)}function E(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function T(t,e){return t.x===e.x&&t.y===e.y}function b(t,e,r,n){var i=R(E(t,e,r)),o=R(E(t,e,n)),s=R(E(r,n,t)),a=R(E(r,n,e));return i!==o&&s!==a||(!(0!==i||!x(t,r,e))||(!(0!==o||!x(t,n,e))||(!(0!==s||!x(r,t,n))||!(0!==a||!x(r,e,n)))))}function x(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function R(t){return t>0?1:t<0?-1:0}function A(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&b(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}function I(t,e){return E(t.prev,t,t.next)<0?E(t,e,t.next)>=0&&E(t,t.prev,e)>=0:E(t,e,t.prev)<0||E(t,t.next,e)<0}function S(t,e){var r=t,n=!1,i=(t.x+e.x)/2,o=(t.y+e.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!==t);return n}function O(t,e){var r=new M(t.i,t.x,t.y),n=new M(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function P(t,e,r,n){var i=new M(t,e,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 N(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function M(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function w(t,e,r,n){for(var i=0,o=e,s=r-n;o<r;o+=n)i+=(t[s]-t[o])*(t[o+1]+t[s+1]),s=o;return i}t.exports=e,t.exports["default"]=e,e.deviation=function(t,e,r,n){var i=e&&e.length,o=i?e[0]*r:t.length,s=Math.abs(w(t,0,o,r));if(i)for(var a=0,u=e.length;a<u;a++){var h=e[a]*r,l=a<u-1?e[a+1]*r:t.length;s-=Math.abs(w(t,h,l,r))}var c=0;for(a=0;a<n.length;a+=3){var f=n[a]*r,d=n[a+1]*r,p=n[a+2]*r;c+=Math.abs((t[f]-t[p])*(t[d+1]-t[f+1])-(t[f]-t[d])*(t[p+1]-t[f+1]))}return 0===s&&0===c?0:Math.abs((c-s)/s)},e.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var s=0;s<e;s++)r.vertices.push(t[i][o][s]);i>0&&(n+=t[i-1].length,r.holes.push(n))}return r}},7167:function(t,e,r){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/r(1703);var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function s(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function a(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==n.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(t){i[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(o){return!1}}t.exports=a()?Object.assign:function(t,e){for(var r,a,u=s(t),h=1;h<arguments.length;h++){for(var l in r=Object(arguments[h]),r)i.call(r,l)&&(u[l]=r[l]);if(n){a=n(r);for(var c=0;c<a.length;c++)o.call(r,a[c])&&(u[a[c]]=r[a[c]])}}return u}},1767:function(t,e,r){"use strict";r.d(e,{MxU:function(){return At},E9j:function(){return P.E9},jyi:function(){return Vr},xvT:function(){return nn},pn8:function(){return Kr},xEZ:function(){return Rt.xE}});r(1703),r(8675),r(3462);function n(t){var e=this.constructor;return this.then((function(r){return e.resolve(t()).then((function(){return r}))}),(function(r){return e.resolve(t()).then((function(){return e.reject(r)}))}))}var i=n;function o(t){var e=this;return new e((function(e,r){if(!t||"undefined"===typeof t.length)return r(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var n=Array.prototype.slice.call(t);if(0===n.length)return e([]);var i=n.length;function o(t,r){if(r&&("object"===typeof r||"function"===typeof r)){var s=r.then;if("function"===typeof s)return void s.call(r,(function(e){o(t,e)}),(function(r){n[t]={status:"rejected",reason:r},0===--i&&e(n)}))}n[t]={status:"fulfilled",value:r},0===--i&&e(n)}for(var s=0;s<n.length;s++)o(s,n[s])}))}var s=o,a=setTimeout;function u(t){return Boolean(t&&"undefined"!==typeof t.length)}function h(){}function l(t,e){return function(){t.apply(e,arguments)}}function c(t){if(!(this instanceof c))throw new TypeError("Promises must be constructed via new");if("function"!==typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],m(t,this)}function f(t,e){while(3===t._state)t=t._value;0!==t._state?(t._handled=!0,c._immediateFn((function(){var r=1===t._state?e.onFulfilled:e.onRejected;if(null!==r){var n;try{n=r(t._value)}catch(i){return void p(e.promise,i)}d(e.promise,n)}else(1===t._state?d:p)(e.promise,t._value)}))):t._deferreds.push(e)}function d(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===typeof e||"function"===typeof e)){var r=e.then;if(e instanceof c)return t._state=3,t._value=e,void _(t);if("function"===typeof r)return void m(l(r,e),t)}t._state=1,t._value=e,_(t)}catch(n){p(t,n)}}function p(t,e){t._state=2,t._value=e,_(t)}function _(t){2===t._state&&0===t._deferreds.length&&c._immediateFn((function(){t._handled||c._unhandledRejectionFn(t._value)}));for(var e=0,r=t._deferreds.length;e<r;e++)f(t,t._deferreds[e]);t._deferreds=null}function v(t,e,r){this.onFulfilled="function"===typeof t?t:null,this.onRejected="function"===typeof e?e:null,this.promise=r}function m(t,e){var r=!1;try{t((function(t){r||(r=!0,d(e,t))}),(function(t){r||(r=!0,p(e,t))}))}catch(n){if(r)return;r=!0,p(e,n)}}c.prototype["catch"]=function(t){return this.then(null,t)},c.prototype.then=function(t,e){var r=new this.constructor(h);return f(this,new v(t,e,r)),r},c.prototype["finally"]=i,c.all=function(t){return new c((function(e,r){if(!u(t))return r(new TypeError("Promise.all accepts an array"));var n=Array.prototype.slice.call(t);if(0===n.length)return e([]);var i=n.length;function o(t,s){try{if(s&&("object"===typeof s||"function"===typeof s)){var a=s.then;if("function"===typeof a)return void a.call(s,(function(e){o(t,e)}),r)}n[t]=s,0===--i&&e(n)}catch(u){r(u)}}for(var s=0;s<n.length;s++)o(s,n[s])}))},c.allSettled=s,c.resolve=function(t){return t&&"object"===typeof t&&t.constructor===c?t:new c((function(e){e(t)}))},c.reject=function(t){return new c((function(e,r){r(t)}))},c.race=function(t){return new c((function(e,r){if(!u(t))return r(new TypeError("Promise.race accepts an array"));for(var n=0,i=t.length;n<i;n++)c.resolve(t[n]).then(e,r)}))},c._immediateFn="function"===typeof setImmediate&&function(t){setImmediate(t)}||function(t){a(t,0)},c._unhandledRejectionFn=function(t){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var y=c,g=r(7167),E=r.n(g);
/*!
* @pixi/polyfill - v6.3.0
* Compiled Wed, 23 Mar 2022 18:58:56 UTC
*
* @pixi/polyfill is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/
"undefined"===typeof globalThis&&("undefined"!==typeof self?self.globalThis=self:"undefined"!==typeof r.g&&(r.g.globalThis=r.g)),globalThis.Promise||(globalThis.Promise=y),Object.assign||(Object.assign=E());var T=16;if(Date.now&&Date.prototype.getTime||(Date.now=function(){return(new Date).getTime()}),!globalThis.performance||!globalThis.performance.now){var b=Date.now();globalThis.performance||(globalThis.performance={}),globalThis.performance.now=function(){return Date.now()-b}}for(var x=Date.now(),R=["ms","moz","webkit","o"],A=0;A<R.length&&!globalThis.requestAnimationFrame;++A){var I=R[A];globalThis.requestAnimationFrame=globalThis[I+"RequestAnimationFrame"],globalThis.cancelAnimationFrame=globalThis[I+"CancelAnimationFrame"]||globalThis[I+"CancelRequestAnimationFrame"]}globalThis.requestAnimationFrame||(globalThis.requestAnimationFrame=function(t){if("function"!==typeof t)throw new TypeError(t+"is not a function");var e=Date.now(),r=T+x-e;return r<0&&(r=0),x=e,globalThis.self.setTimeout((function(){x=Date.now(),t(performance.now())}),r)}),globalThis.cancelAnimationFrame||(globalThis.cancelAnimationFrame=function(t){return clearTimeout(t)}),Math.sign||(Math.sign=function(t){return t=Number(t),0===t||isNaN(t)?t:t>0?1:-1}),Number.isInteger||(Number.isInteger=function(t){return"number"===typeof t&&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 S=r(6908),O=r(2307),P=r(1188);
/*!
* @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
*/
O.X.SORTABLE_CHILDREN=!1;var N=function(){function t(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}return t.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},t.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},t.prototype.getRectangle=function(t){return this.minX>this.maxX||this.minY>this.maxY?P.Ae.EMPTY:(t=t||new P.Ae(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)},t.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)},t.prototype.addPointMatrix=function(t,e){var r=t.a,n=t.b,i=t.c,o=t.d,s=t.tx,a=t.ty,u=r*e.x+i*e.y+s,h=n*e.x+o*e.y+a;this.minX=Math.min(this.minX,u),this.maxX=Math.max(this.maxX,u),this.minY=Math.min(this.minY,h),this.maxY=Math.max(this.maxY,h)},t.prototype.addQuad=function(t){var e=this.minX,r=this.minY,n=this.maxX,i=this.maxY,o=t[0],s=t[1];e=o<e?o:e,r=s<r?s:r,n=o>n?o:n,i=s>i?s:i,o=t[2],s=t[3],e=o<e?o:e,r=s<r?s:r,n=o>n?o:n,i=s>i?s:i,o=t[4],s=t[5],e=o<e?o:e,r=s<r?s:r,n=o>n?o:n,i=s>i?s:i,o=t[6],s=t[7],e=o<e?o:e,r=s<r?s:r,n=o>n?o:n,i=s>i?s:i,this.minX=e,this.minY=r,this.maxX=n,this.maxY=i},t.prototype.addFrame=function(t,e,r,n,i){this.addFrameMatrix(t.worldTransform,e,r,n,i)},t.prototype.addFrameMatrix=function(t,e,r,n,i){var o=t.a,s=t.b,a=t.c,u=t.d,h=t.tx,l=t.ty,c=this.minX,f=this.minY,d=this.maxX,p=this.maxY,_=o*e+a*r+h,v=s*e+u*r+l;c=_<c?_:c,f=v<f?v:f,d=_>d?_:d,p=v>p?v:p,_=o*n+a*r+h,v=s*n+u*r+l,c=_<c?_:c,f=v<f?v:f,d=_>d?_:d,p=v>p?v:p,_=o*e+a*i+h,v=s*e+u*i+l,c=_<c?_:c,f=v<f?v:f,d=_>d?_:d,p=v>p?v:p,_=o*n+a*i+h,v=s*n+u*i+l,c=_<c?_:c,f=v<f?v:f,d=_>d?_:d,p=v>p?v:p,this.minX=c,this.minY=f,this.maxX=d,this.maxY=p},t.prototype.addVertexData=function(t,e,r){for(var n=this.minX,i=this.minY,o=this.maxX,s=this.maxY,a=e;a<r;a+=2){var u=t[a],h=t[a+1];n=u<n?u:n,i=h<i?h:i,o=u>o?u:o,s=h>s?h:s}this.minX=n,this.minY=i,this.maxX=o,this.maxY=s},t.prototype.addVertices=function(t,e,r,n){this.addVerticesMatrix(t.worldTransform,e,r,n)},t.prototype.addVerticesMatrix=function(t,e,r,n,i,o){void 0===i&&(i=0),void 0===o&&(o=i);for(var s=t.a,a=t.b,u=t.c,h=t.d,l=t.tx,c=t.ty,f=this.minX,d=this.minY,p=this.maxX,_=this.maxY,v=r;v<n;v+=2){var m=e[v],y=e[v+1],g=s*m+u*y+l,E=h*y+a*m+c;f=Math.min(f,g-i),p=Math.max(p,g+i),d=Math.min(d,E-o),_=Math.max(_,E+o)}this.minX=f,this.minY=d,this.maxX=p,this.maxY=_},t.prototype.addBounds=function(t){var e=this.minX,r=this.minY,n=this.maxX,i=this.maxY;this.minX=t.minX<e?t.minX:e,this.minY=t.minY<r?t.minY:r,this.maxX=t.maxX>n?t.maxX:n,this.maxY=t.maxY>i?t.maxY:i},t.prototype.addBoundsMask=function(t,e){var r=t.minX>e.minX?t.minX:e.minX,n=t.minY>e.minY?t.minY:e.minY,i=t.maxX<e.maxX?t.maxX:e.maxX,o=t.maxY<e.maxY?t.maxY:e.maxY;if(r<=i&&n<=o){var s=this.minX,a=this.minY,u=this.maxX,h=this.maxY;this.minX=r<s?r:s,this.minY=n<a?n:a,this.maxX=i>u?i:u,this.maxY=o>h?o:h}},t.prototype.addBoundsMatrix=function(t,e){this.addFrameMatrix(e,t.minX,t.minY,t.maxX,t.maxY)},t.prototype.addBoundsArea=function(t,e){var r=t.minX>e.x?t.minX:e.x,n=t.minY>e.y?t.minY:e.y,i=t.maxX<e.x+e.width?t.maxX:e.x+e.width,o=t.maxY<e.y+e.height?t.maxY:e.y+e.height;if(r<=i&&n<=o){var s=this.minX,a=this.minY,u=this.maxX,h=this.maxY;this.minX=r<s?r:s,this.minY=n<a?n:a,this.maxX=i>u?i:u,this.maxY=o>h?o:h}},t.prototype.pad=function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=e,this.maxY+=e)},t.prototype.addFramePad=function(t,e,r,n,i,o){t-=i,e-=o,r+=i,n+=o,this.minX=this.minX<t?this.minX:t,this.maxX=this.maxX>r?this.maxX:r,this.minY=this.minY<e?this.minY:e,this.maxY=this.maxY>n?this.maxY:n},t}(),M=function(t,e){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},M(t,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.
***************************************************************************** */function w(t,e){function r(){this.constructor=t}M(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var D,C,L,F,U,G,B,X,k,H,j,V,Y,W,z,q,K,$,Z,J=function(t){function e(){var e=t.call(this)||this;return e.tempDisplayObjectParent=null,e.transform=new P.wx,e.alpha=1,e.visible=!0,e.renderable=!0,e.cullable=!1,e.cullArea=null,e.parent=null,e.worldAlpha=1,e._lastSortedIndex=0,e._zIndex=0,e.filterArea=null,e.filters=null,e._enabledFilters=null,e._bounds=new N,e._localBounds=null,e._boundsID=0,e._boundsRect=null,e._localBoundsRect=null,e._mask=null,e._maskRefCount=0,e._destroyed=!1,e.isSprite=!1,e.isMask=!1,e}return w(e,t),e.mixin=function(t){for(var r=Object.keys(t),n=0;n<r.length;++n){var i=r[n];Object.defineProperty(e.prototype,i,Object.getOwnPropertyDescriptor(t,i))}},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!1,configurable:!0}),e.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},e.prototype.updateTransform=function(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha},e.prototype.getBounds=function(t,e){return t||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),e||(this._boundsRect||(this._boundsRect=new P.Ae),e=this._boundsRect),this._bounds.getRectangle(e)},e.prototype.getLocalBounds=function(t){t||(this._localBoundsRect||(this._localBoundsRect=new P.Ae),t=this._localBoundsRect),this._localBounds||(this._localBounds=new N);var e=this.transform,r=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;var n=this._bounds,i=this._boundsID;this._bounds=this._localBounds;var o=this.getBounds(!1,t);return this.parent=r,this.transform=e,this._bounds=n,this._bounds.updateID+=this._boundsID-i,o},e.prototype.toGlobal=function(t,e,r){return void 0===r&&(r=!1),r||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(t,e)},e.prototype.toLocal=function(t,e,r,n){return e&&(t=e.toGlobal(t,r,n)),n||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(t,r)},e.prototype.setParent=function(t){if(!t||!t.addChild)throw new Error("setParent: Argument must be a Container");return t.addChild(this),t},e.prototype.setTransform=function(t,e,r,n,i,o,s,a,u){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=1),void 0===n&&(n=1),void 0===i&&(i=0),void 0===o&&(o=0),void 0===s&&(s=0),void 0===a&&(a=0),void 0===u&&(u=0),this.position.x=t,this.position.y=e,this.scale.x=r||1,this.scale.y=n||1,this.rotation=i,this.skew.x=o,this.skew.y=s,this.pivot.x=a,this.pivot.y=u,this},e.prototype.destroy=function(t){this.parent&&this.parent.removeChild(this),this.emit("destroyed"),this.removeAllListeners(),this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.interactive=!1,this.interactiveChildren=!1,this._destroyed=!0},Object.defineProperty(e.prototype,"_tempDisplayObjectParent",{get:function(){return null===this.tempDisplayObjectParent&&(this.tempDisplayObjectParent=new Q),this.tempDisplayObjectParent},enumerable:!1,configurable:!0}),e.prototype.enableTempParent=function(){var t=this.parent;return this.parent=this._tempDisplayObjectParent,t},e.prototype.disableTempParent=function(t){this.parent=t},Object.defineProperty(e.prototype,"x",{get:function(){return this.position.x},set:function(t){this.transform.position.x=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.position.y},set:function(t){this.transform.position.y=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.transform.worldTransform},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localTransform",{get:function(){return this.transform.localTransform},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.transform.position},set:function(t){this.transform.position.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this.transform.scale},set:function(t){this.transform.scale.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pivot",{get:function(){return this.transform.pivot},set:function(t){this.transform.pivot.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"skew",{get:function(){return this.transform.skew},set:function(t){this.transform.skew.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this.transform.rotation},set:function(t){this.transform.rotation=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.transform.rotation*P.jl},set:function(t){this.transform.rotation=t*P.ZX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zIndex",{get:function(){return this._zIndex},set:function(t){this._zIndex=t,this.parent&&(this.parent.sortDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"worldVisible",{get:function(){var t=this;do{if(!t.visible)return!1;t=t.parent}while(t);return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mask",{get:function(){return this._mask},set:function(t){if(this._mask!==t){if(this._mask){var e=this._mask.maskObject||this._mask;e._maskRefCount--,0===e._maskRefCount&&(e.renderable=!0,e.isMask=!1)}if(this._mask=t,this._mask){e=this._mask.maskObject||this._mask;0===e._maskRefCount&&(e.renderable=!1,e.isMask=!0),e._maskRefCount++}}},enumerable:!1,configurable:!0}),e}(S.vp),Q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.sortDirty=null,e}return w(e,t),e}(J);function tt(t,e){return t.zIndex===e.zIndex?t._lastSortedIndex-e._lastSortedIndex:t.zIndex-e.zIndex}J.prototype.displayObjectUpdateTransform=J.prototype.updateTransform,function(t){t[t["WEBGL_LEGACY"]=0]="WEBGL_LEGACY",t[t["WEBGL"]=1]="WEBGL",t[t["WEBGL2"]=2]="WEBGL2"}(D||(D={})),function(t){t[t["UNKNOWN"]=0]="UNKNOWN",t[t["WEBGL"]=1]="WEBGL",t[t["CANVAS"]=2]="CANVAS"}(C||(C={})),function(t){t[t["COLOR"]=16384]="COLOR",t[t["DEPTH"]=256]="DEPTH",t[t["STENCIL"]=1024]="STENCIL"}(L||(L={})),function(t){t[t["NORMAL"]=0]="NORMAL",t[t["ADD"]=1]="ADD",t[t["MULTIPLY"]=2]="MULTIPLY",t[t["SCREEN"]=3]="SCREEN",t[t["OVERLAY"]=4]="OVERLAY",t[t["DARKEN"]=5]="DARKEN",t[t["LIGHTEN"]=6]="LIGHTEN",t[t["COLOR_DODGE"]=7]="COLOR_DODGE",t[t["COLOR_BURN"]=8]="COLOR_BURN",t[t["HARD_LIGHT"]=9]="HARD_LIGHT",t[t["SOFT_LIGHT"]=10]="SOFT_LIGHT",t[t["DIFFERENCE"]=11]="DIFFERENCE",t[t["EXCLUSION"]=12]="EXCLUSION",t[t["HUE"]=13]="HUE",t[t["SATURATION"]=14]="SATURATION",t[t["COLOR"]=15]="COLOR",t[t["LUMINOSITY"]=16]="LUMINOSITY",t[t["NORMAL_NPM"]=17]="NORMAL_NPM",t[t["ADD_NPM"]=18]="ADD_NPM",t[t["SCREEN_NPM"]=19]="SCREEN_NPM",t[t["NONE"]=20]="NONE",t[t["SRC_OVER"]=0]="SRC_OVER",t[t["SRC_IN"]=21]="SRC_IN",t[t["SRC_OUT"]=22]="SRC_OUT",t[t["SRC_ATOP"]=23]="SRC_ATOP",t[t["DST_OVER"]=24]="DST_OVER",t[t["DST_IN"]=25]="DST_IN",t[t["DST_OUT"]=26]="DST_OUT",t[t["DST_ATOP"]=27]="DST_ATOP",t[t["ERASE"]=26]="ERASE",t[t["SUBTRACT"]=28]="SUBTRACT",t[t["XOR"]=29]="XOR"}(F||(F={})),function(t){t[t["POINTS"]=0]="POINTS",t[t["LINES"]=1]="LINES",t[t["LINE_LOOP"]=2]="LINE_LOOP",t[t["LINE_STRIP"]=3]="LINE_STRIP",t[t["TRIANGLES"]=4]="TRIANGLES",t[t["TRIANGLE_STRIP"]=5]="TRIANGLE_STRIP",t[t["TRIANGLE_FAN"]=6]="TRIANGLE_FAN"}(U||(U={})),function(t){t[t["RGBA"]=6408]="RGBA",t[t["RGB"]=6407]="RGB",t[t["RG"]=33319]="RG",t[t["RED"]=6403]="RED",t[t["RGBA_INTEGER"]=36249]="RGBA_INTEGER",t[t["RGB_INTEGER"]=36248]="RGB_INTEGER",t[t["RG_INTEGER"]=33320]="RG_INTEGER",t[t["RED_INTEGER"]=36244]="RED_INTEGER",t[t["ALPHA"]=6406]="ALPHA",t[t["LUMINANCE"]=6409]="LUMINANCE",t[t["LUMINANCE_ALPHA"]=6410]="LUMINANCE_ALPHA",t[t["DEPTH_COMPONENT"]=6402]="DEPTH_COMPONENT",t[t["DEPTH_STENCIL"]=34041]="DEPTH_STENCIL"}(G||(G={})),function(t){t[t["TEXTURE_2D"]=3553]="TEXTURE_2D",t[t["TEXTURE_CUBE_MAP"]=34067]="TEXTURE_CUBE_MAP",t[t["TEXTURE_2D_ARRAY"]=35866]="TEXTURE_2D_ARRAY",t[t["TEXTURE_CUBE_MAP_POSITIVE_X"]=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t["TEXTURE_CUBE_MAP_NEGATIVE_X"]=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t["TEXTURE_CUBE_MAP_POSITIVE_Y"]=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t["TEXTURE_CUBE_MAP_NEGATIVE_Y"]=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t["TEXTURE_CUBE_MAP_POSITIVE_Z"]=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t["TEXTURE_CUBE_MAP_NEGATIVE_Z"]=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(B||(B={})),function(t){t[t["UNSIGNED_BYTE"]=5121]="UNSIGNED_BYTE",t[t["UNSIGNED_SHORT"]=5123]="UNSIGNED_SHORT",t[t["UNSIGNED_SHORT_5_6_5"]=33635]="UNSIGNED_SHORT_5_6_5",t[t["UNSIGNED_SHORT_4_4_4_4"]=32819]="UNSIGNED_SHORT_4_4_4_4",t[t["UNSIGNED_SHORT_5_5_5_1"]=32820]="UNSIGNED_SHORT_5_5_5_1",t[t["UNSIGNED_INT"]=5125]="UNSIGNED_INT",t[t["UNSIGNED_INT_10F_11F_11F_REV"]=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t["UNSIGNED_INT_2_10_10_10_REV"]=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t["UNSIGNED_INT_24_8"]=34042]="UNSIGNED_INT_24_8",t[t["UNSIGNED_INT_5_9_9_9_REV"]=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t["BYTE"]=5120]="BYTE",t[t["SHORT"]=5122]="SHORT",t[t["INT"]=5124]="INT",t[t["FLOAT"]=5126]="FLOAT",t[t["FLOAT_32_UNSIGNED_INT_24_8_REV"]=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t["HALF_FLOAT"]=36193]="HALF_FLOAT"}(X||(X={})),function(t){t[t["FLOAT"]=0]="FLOAT",t[t["INT"]=1]="INT",t[t["UINT"]=2]="UINT"}(k||(k={})),function(t){t[t["NEAREST"]=0]="NEAREST",t[t["LINEAR"]=1]="LINEAR"}(H||(H={})),function(t){t[t["CLAMP"]=33071]="CLAMP",t[t["REPEAT"]=10497]="REPEAT",t[t["MIRRORED_REPEAT"]=33648]="MIRRORED_REPEAT"}(j||(j={})),function(t){t[t["OFF"]=0]="OFF",t[t["POW2"]=1]="POW2",t[t["ON"]=2]="ON",t[t["ON_MANUAL"]=3]="ON_MANUAL"}(V||(V={})),function(t){t[t["NPM"]=0]="NPM",t[t["UNPACK"]=1]="UNPACK",t[t["PMA"]=2]="PMA",t[t["NO_PREMULTIPLIED_ALPHA"]=0]="NO_PREMULTIPLIED_ALPHA",t[t["PREMULTIPLY_ON_UPLOAD"]=1]="PREMULTIPLY_ON_UPLOAD",t[t["PREMULTIPLY_ALPHA"]=2]="PREMULTIPLY_ALPHA",t[t["PREMULTIPLIED_ALPHA"]=2]="PREMULTIPLIED_ALPHA"}(Y||(Y={})),function(t){t[t["NO"]=0]="NO",t[t["YES"]=1]="YES",t[t["AUTO"]=2]="AUTO",t[t["BLEND"]=0]="BLEND",t[t["CLEAR"]=1]="CLEAR",t[t["BLIT"]=2]="BLIT"}(W||(W={})),function(t){t[t["AUTO"]=0]="AUTO",t[t["MANUAL"]=1]="MANUAL"}(z||(z={})),function(t){t["LOW"]="lowp",t["MEDIUM"]="mediump",t["HIGH"]="highp"}(q||(q={})),function(t){t[t["NONE"]=0]="NONE",t[t["SCISSOR"]=1]="SCISSOR",t[t["STENCIL"]=2]="STENCIL",t[t["SPRITE"]=3]="SPRITE"}(K||(K={})),function(t){t[t["NONE"]=0]="NONE",t[t["LOW"]=2]="LOW",t[t["MEDIUM"]=4]="MEDIUM",t[t["HIGH"]=8]="HIGH"}($||($={})),function(t){t[t["ELEMENT_ARRAY_BUFFER"]=34963]="ELEMENT_ARRAY_BUFFER",t[t["ARRAY_BUFFER"]=34962]="ARRAY_BUFFER",t[t["UNIFORM_BUFFER"]=35345]="UNIFORM_BUFFER"}(Z||(Z={}));var et=function(t){function e(){var e=t.call(this)||this;return e.children=[],e.sortableChildren=O.X.SORTABLE_CHILDREN,e.sortDirty=!1,e}return w(e,t),e.prototype.onChildrenChange=function(t){},e.prototype.addChild=function(){for(var t=arguments,e=[],r=0;r<arguments.length;r++)e[r]=t[r];if(e.length>1)for(var n=0;n<e.length;n++)this.addChild(e[n]);else{var i=e[0];i.parent&&i.parent.removeChild(i),i.parent=this,this.sortDirty=!0,i.transform._parentID=-1,this.children.push(i),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",i,this,this.children.length-1),i.emit("added",this)}return e[0]},e.prototype.addChildAt=function(t,e){if(e<0||e>this.children.length)throw new Error(t+"addChildAt: The index "+e+" supplied is out of bounds "+this.children.length);return t.parent&&t.parent.removeChild(t),t.parent=this,this.sortDirty=!0,t.transform._parentID=-1,this.children.splice(e,0,t),this._boundsID++,this.onChildrenChange(e),t.emit("added",this),this.emit("childAdded",t,this,e),t},e.prototype.swapChildren=function(t,e){if(t!==e){var r=this.getChildIndex(t),n=this.getChildIndex(e);this.children[r]=e,this.children[n]=t,this.onChildrenChange(r<n?r:n)}},e.prototype.getChildIndex=function(t){var e=this.children.indexOf(t);if(-1===e)throw new Error("The supplied DisplayObject must be a child of the caller");return e},e.prototype.setChildIndex=function(t,e){if(e<0||e>=this.children.length)throw new Error("The index "+e+" supplied is out of bounds "+this.children.length);var r=this.getChildIndex(t);(0,S.Er)(this.children,r,1),this.children.splice(e,0,t),this.onChildrenChange(e)},e.prototype.getChildAt=function(t){if(t<0||t>=this.children.length)throw new Error("getChildAt: Index ("+t+") does not exist.");return this.children[t]},e.prototype.removeChild=function(){for(var t=arguments,e=[],r=0;r<arguments.length;r++)e[r]=t[r];if(e.length>1)for(var n=0;n<e.length;n++)this.removeChild(e[n]);else{var i=e[0],o=this.children.indexOf(i);if(-1===o)return null;i.parent=null,i.transform._parentID=-1,(0,S.Er)(this.children,o,1),this._boundsID++,this.onChildrenChange(o),i.emit("removed",this),this.emit("childRemoved",i,this,o)}return e[0]},e.prototype.removeChildAt=function(t){var e=this.getChildAt(t);return e.parent=null,e.transform._parentID=-1,(0,S.Er)(this.children,t,1),this._boundsID++,this.onChildrenChange(t),e.emit("removed",this),this.emit("childRemoved",e,this,t),e},e.prototype.removeChildren=function(t,e){void 0===t&&(t=0),void 0===e&&(e=this.children.length);var r,n=t,i=e,o=i-n;if(o>0&&o<=i){r=this.children.splice(n,o);for(var s=0;s<r.length;++s)r[s].parent=null,r[s].transform&&(r[s].transform._parentID=-1);this._boundsID++,this.onChildrenChange(t);for(s=0;s<r.length;++s)r[s].emit("removed",this),this.emit("childRemoved",r[s],this,s);return r}if(0===o&&0===this.children.length)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},e.prototype.sortChildren=function(){for(var t=!1,e=0,r=this.children.length;e<r;++e){var n=this.children[e];n._lastSortedIndex=e,t||0===n.zIndex||(t=!0)}t&&this.children.length>1&&this.children.sort(tt),this.sortDirty=!1},e.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 t=0,e=this.children.length;t<e;++t){var r=this.children[t];r.visible&&r.updateTransform()}},e.prototype.calculateBounds=function(){this._bounds.clear(),this._calculateBounds();for(var t=0;t<this.children.length;t++){var e=this.children[t];if(e.visible&&e.renderable)if(e.calculateBounds(),e._mask){var r=e._mask.maskObject||e._mask;r.calculateBounds(),this._bounds.addBoundsMask(e._bounds,r._bounds)}else e.filterArea?this._bounds.addBoundsArea(e._bounds,e.filterArea):this._bounds.addBounds(e._bounds)}this._bounds.updateID=this._boundsID},e.prototype.getLocalBounds=function(e,r){void 0===r&&(r=!1);var n=t.prototype.getLocalBounds.call(this,e);if(!r)for(var i=0,o=this.children.length;i<o;++i){var s=this.children[i];s.visible&&s.updateTransform()}return n},e.prototype._calculateBounds=function(){},e.prototype._renderWithCulling=function(t){var r=t.renderTexture.sourceFrame;if(r.width>0&&r.height>0){var n,i;if(this.cullArea?(n=this.cullArea,i=this.worldTransform):this._render!==e.prototype._render&&(n=this.getBounds(!0)),n&&r.intersects(n,i))this._render(t);else if(this.cullArea)return;for(var o=0,s=this.children.length;o<s;++o){var a=this.children[o],u=a.cullable;a.cullable=u||!this.cullArea,a.render(t),a.cullable=u}}},e.prototype.render=function(t){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this.filters&&this.filters.length)this.renderAdvanced(t);else if(this.cullable)this._renderWithCulling(t);else{this._render(t);for(var e=0,r=this.children.length;e<r;++e)this.children[e].render(t)}},e.prototype.renderAdvanced=function(t){var e=this.filters,r=this._mask;if(e){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(var n=0;n<e.length;n++)e[n].enabled&&this._enabledFilters.push(e[n])}var i=e&&this._enabledFilters&&this._enabledFilters.length||r&&(!r.isMaskData||r.enabled&&(r.autoDetect||r.type!==K.NONE));if(i&&t.batch.flush(),e&&this._enabledFilters&&this._enabledFilters.length&&t.filter.push(this,this._enabledFilters),r&&t.mask.push(this,this._mask),this.cullable)this._renderWithCulling(t);else{this._render(t);n=0;for(var o=this.children.length;n<o;++n)this.children[n].render(t)}i&&t.batch.flush(),r&&t.mask.pop(this),e&&this._enabledFilters&&this._enabledFilters.length&&t.filter.pop()},e.prototype._render=function(t){},e.prototype.destroy=function(e){t.prototype.destroy.call(this),this.sortDirty=!1;var r="boolean"===typeof e?e:e&&e.children,n=this.removeChildren(0,this.children.length);if(r)for(var i=0;i<n.length;++i)n[i].destroy(e)},Object.defineProperty(e.prototype,"width",{get:function(){return this.scale.x*this.getLocalBounds().width},set:function(t){var e=this.getLocalBounds().width;this.scale.x=0!==e?t/e:1,this._width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.scale.y*this.getLocalBounds().height},set:function(t){var e=this.getLocalBounds().height;this.scale.y=0!==e?t/e:1,this._height=t},enumerable:!1,configurable:!0}),e}(J);et.prototype.containerUpdateTransform=et.prototype.updateTransform;
/*!
* @pixi/accessibility - v6.3.0
* Compiled Wed, 23 Mar 2022 18:58:56 UTC
*
* @pixi/accessibility is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/
var rt={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1};J.mixin(rt);var nt=9,it=100,ot=0,st=0,at=2,ut=1,ht=-1e3,lt=-1e3,ct=2,ft=function(){function t(t){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(S.tq.tablet||S.tq.phone)&&this.createTouchHook();var e=document.createElement("div");e.style.width=it+"px",e.style.height=it+"px",e.style.position="absolute",e.style.top=ot+"px",e.style.left=st+"px",e.style.zIndex=at.toString(),this.div=e,this.renderer=t,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this._isActive},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMobileAccessibility",{get:function(){return this._isMobileAccessibility},enumerable:!1,configurable:!0}),t.prototype.createTouchHook=function(){var t=this,e=document.createElement("button");e.style.width=ut+"px",e.style.height=ut+"px",e.style.position="absolute",e.style.top=ht+"px",e.style.left=lt+"px",e.style.zIndex=ct.toString(),e.style.backgroundColor="#FF0000",e.title="select to enable accessibility for this content",e.addEventListener("focus",(function(){t._isMobileAccessibility=!0,t.activate(),t.destroyTouchHook()})),document.body.appendChild(e),this._hookDiv=e},t.prototype.destroyTouchHook=function(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)},t.prototype.activate=function(){var t;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),null===(t=this.renderer.view.parentNode)||void 0===t||t.appendChild(this.div))},t.prototype.deactivate=function(){var t;this._isActive&&!this._isMobileAccessibility&&(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),null===(t=this.div.parentNode)||void 0===t||t.removeChild(this.div))},t.prototype.updateAccessibleObjects=function(t){if(t.visible&&t.accessibleChildren){t.accessible&&t.interactive&&(t._accessibleActive||this.addChild(t),t.renderId=this.renderId);var e=t.children;if(e)for(var r=0;r<e.length;r++)this.updateAccessibleObjects(e[r])}},t.prototype.update=function(){var t=performance.now();if(!(S.tq.android.device&&t<this.androidUpdateCount)&&(this.androidUpdateCount=t+this.androidUpdateFrequency,this.renderer.renderingToScreen)){this.renderer._lastObjectRendered&&this.updateAccessibleObjects(this.renderer._lastObjectRendered);var e=this.renderer.view.getBoundingClientRect(),r=e.left,n=e.top,i=e.width,o=e.height,s=this.renderer,a=s.width,u=s.height,h=s.resolution,l=i/a*h,c=o/u*h,f=this.div;f.style.left=r+"px",f.style.top=n+"px",f.style.width=a+"px",f.style.height=u+"px";for(var d=0;d<this.children.length;d++){var p=this.children[d];if(p.renderId!==this.renderId)p._accessibleActive=!1,(0,S.Er)(this.children,d,1),this.div.removeChild(p._accessibleDiv),this.pool.push(p._accessibleDiv),p._accessibleDiv=null,d--;else{f=p._accessibleDiv;var _=p.hitArea,v=p.worldTransform;p.hitArea?(f.style.left=(v.tx+_.x*v.a)*l+"px",f.style.top=(v.ty+_.y*v.d)*c+"px",f.style.width=_.width*v.a*l+"px",f.style.height=_.height*v.d*c+"px"):(_=p.getBounds(),this.capHitArea(_),f.style.left=_.x*l+"px",f.style.top=_.y*c+"px",f.style.width=_.width*l+"px",f.style.height=_.height*c+"px",f.title!==p.accessibleTitle&&null!==p.accessibleTitle&&(f.title=p.accessibleTitle),f.getAttribute("aria-label")!==p.accessibleHint&&null!==p.accessibleHint&&f.setAttribute("aria-label",p.accessibleHint)),p.accessibleTitle===f.title&&p.tabIndex===f.tabIndex||(f.title=p.accessibleTitle,f.tabIndex=p.tabIndex,this.debug&&this.updateDebugHTML(f))}}this.renderId++}},t.prototype.updateDebugHTML=function(t){t.innerHTML="type: "+t.type+"</br> title : "+t.title+"</br> tabIndex: "+t.tabIndex},t.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 e=this.renderer,r=e.width,n=e.height;t.x+t.width>r&&(t.width=r-t.x),t.y+t.height>n&&(t.height=n-t.y)},t.prototype.addChild=function(t){var e=this.pool.pop();e||(e=document.createElement("button"),e.style.width=it+"px",e.style.height=it+"px",e.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",e.style.position="absolute",e.style.zIndex=at.toString(),e.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?e.setAttribute("aria-live","off"):e.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?e.setAttribute("aria-relevant","additions"):e.setAttribute("aria-relevant","text"),e.addEventListener("click",this._onClick.bind(this)),e.addEventListener("focus",this._onFocus.bind(this)),e.addEventListener("focusout",this._onFocusOut.bind(this))),e.style.pointerEvents=t.accessiblePointerEvents,e.type=t.accessibleType,t.accessibleTitle&&null!==t.accessibleTitle?e.title=t.accessibleTitle:t.accessibleHint&&null!==t.accessibleHint||(e.title="displayObject "+t.tabIndex),t.accessibleHint&&null!==t.accessibleHint&&e.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(e),t._accessibleActive=!0,t._accessibleDiv=e,e.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},t.prototype._onClick=function(t){var e=this.renderer.plugins.interaction,r=t.target.displayObject,n=e.eventData;e.dispatchEvent(r,"click",n),e.dispatchEvent(r,"pointertap",n),e.dispatchEvent(r,"tap",n)},t.prototype._onFocus=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive");var e=this.renderer.plugins.interaction,r=t.target.displayObject,n=e.eventData;e.dispatchEvent(r,"mouseover",n)},t.prototype._onFocusOut=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite");var e=this.renderer.plugins.interaction,r=t.target.displayObject,n=e.eventData;e.dispatchEvent(r,"mouseout",n)},t.prototype._onKeyDown=function(t){t.keyCode===nt&&this.activate()},t.prototype._onMouseMove=function(t){0===t.movementX&&0===t.movementY||this.deactivate()},t.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},t}(),dt=r(8466),pt=function(){function t(){this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0,this.global=new P.E9,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return Object.defineProperty(t.prototype,"pointerId",{get:function(){return this.identifier},enumerable:!1,configurable:!0}),t.prototype.getLocalPosition=function(t,e,r){return t.worldTransform.applyInverse(r||this.global,e)},t.prototype.copyEvent=function(t){"isPrimary"in t&&t.isPrimary&&(this.isPrimary=!0),this.button="button"in t&&t.button;var e="buttons"in t&&t.buttons;this.buttons=Number.isInteger(e)?e:"which"in t&&t.which,this.width="width"in t&&t.width,this.height="height"in t&&t.height,this.tiltX="tiltX"in t&&t.tiltX,this.tiltY="tiltY"in t&&t.tiltY,this.pointerType="pointerType"in t&&t.pointerType,this.pressure="pressure"in t&&t.pressure,this.rotationAngle="rotationAngle"in t&&t.rotationAngle,this.twist="twist"in t&&t.twist||0,this.tangentialPressure="tangentialPressure"in t&&t.tangentialPressure||0},t.prototype.reset=function(){this.isPrimary=!1},t}(),_t=function(t,e){return _t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},_t(t,e)};function vt(t,e){function r(){this.constructor=t}_t(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var mt=function(){function t(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return t.prototype.stopPropagation=function(){this.stopped=!0,this.stopPropagationHint=!0,this.stopsPropagatingAt=this.currentTarget},t.prototype.reset=function(){this.stopped=!1,this.stopsPropagatingAt=null,this.stopPropagationHint=!1,this.currentTarget=null,this.target=null},t}(),yt=function(){function t(e){this._pointerId=e,this._flags=t.FLAGS.NONE}return t.prototype._doSet=function(t,e){this._flags=e?this._flags|t:this._flags&~t},Object.defineProperty(t.prototype,"pointerId",{get:function(){return this._pointerId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"flags",{get:function(){return this._flags},set:function(t){this._flags=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"none",{get:function(){return this._flags===t.FLAGS.NONE},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"over",{get:function(){return 0!==(this._flags&t.FLAGS.OVER)},set:function(e){this._doSet(t.FLAGS.OVER,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightDown",{get:function(){return 0!==(this._flags&t.FLAGS.RIGHT_DOWN)},set:function(e){this._doSet(t.FLAGS.RIGHT_DOWN,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftDown",{get:function(){return 0!==(this._flags&t.FLAGS.LEFT_DOWN)},set:function(e){this._doSet(t.FLAGS.LEFT_DOWN,e)},enumerable:!1,configurable:!0}),t.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4}),t}(),gt=function(){function t(){this._tempPoint=new P.E9}return t.prototype.recursiveFindHit=function(t,e,r,n,i){if(!e||!e.visible)return!1;var o=t.data.global;i=e.interactive||i;var s=!1,a=i,u=!0;if(e.hitArea?(n&&(e.worldTransform.applyInverse(o,this._tempPoint),e.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?s=!0:(n=!1,u=!1)),a=!1):e._mask&&n&&(e._mask.containsPoint&&e._mask.containsPoint(o)||(n=!1)),u&&e.interactiveChildren&&e.children)for(var h=e.children,l=h.length-1;l>=0;l--){var c=h[l],f=this.recursiveFindHit(t,c,r,n,a);if(f){if(!c.parent)continue;a=!1,f&&(t.target&&(n=!1),s=!0)}}return i&&(n&&!t.target&&!e.hitArea&&e.containsPoint&&e.containsPoint(o)&&(s=!0),e.interactive&&(s&&!t.target&&(t.target=e),r&&r(t,e,!!s))),s},t.prototype.findHit=function(t,e,r,n){this.recursiveFindHit(t,e,r,n,!1)},t}(),Et={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return"pointer"===this.cursor},set buttonMode(t){t?this.cursor="pointer":"pointer"===this.cursor&&(this.cursor=null)},cursor:null,get trackedPointers(){return void 0===this._trackedPointers&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};J.mixin(Et);var Tt=1,bt={target:null,data:{global:null}},xt=function(t){function e(e,r){var n=t.call(this)||this;return r=r||{},n.renderer=e,n.autoPreventDefault=void 0===r.autoPreventDefault||r.autoPreventDefault,n.interactionFrequency=r.interactionFrequency||10,n.mouse=new pt,n.mouse.identifier=Tt,n.mouse.global.set(-999999),n.activeInteractionData={},n.activeInteractionData[Tt]=n.mouse,n.interactionDataPool=[],n.eventData=new mt,n.interactionDOMElement=null,n.moveWhenInside=!1,n.eventsAdded=!1,n.tickerAdded=!1,n.mouseOverRenderer=!("PointerEvent"in globalThis),n.supportsTouchEvents="ontouchstart"in globalThis,n.supportsPointerEvents=!!globalThis.PointerEvent,n.onPointerUp=n.onPointerUp.bind(n),n.processPointerUp=n.processPointerUp.bind(n),n.onPointerCancel=n.onPointerCancel.bind(n),n.processPointerCancel=n.processPointerCancel.bind(n),n.onPointerDown=n.onPointerDown.bind(n),n.processPointerDown=n.processPointerDown.bind(n),n.onPointerMove=n.onPointerMove.bind(n),n.processPointerMove=n.processPointerMove.bind(n),n.onPointerOut=n.onPointerOut.bind(n),n.processPointerOverOut=n.processPointerOverOut.bind(n),n.onPointerOver=n.onPointerOver.bind(n),n.cursorStyles={default:"inherit",pointer:"pointer"},n.currentCursorMode=null,n.cursor=null,n.resolution=1,n.delayedEvents=[],n.search=new gt,n._tempDisplayObject=new Q,n._eventListenerOptions={capture:!0,passive:!1},n._useSystemTicker=void 0===r.useSystemTicker||r.useSystemTicker,n.setTargetElement(n.renderer.view,n.renderer.resolution),n}return vt(e,t),Object.defineProperty(e.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(t){this._useSystemTicker=t,t?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),e.prototype.hitTest=function(t,e){return bt.target=null,bt.data.global=t,e||(e=this.lastObjectRendered),this.processInteractive(bt,e,null,!0),bt.target},e.prototype.setTargetElement=function(t,e){void 0===e&&(e=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=t,this.resolution=e,this.addEvents(),this.addTickerListener()},e.prototype.addTickerListener=function(){!this.tickerAdded&&this.interactionDOMElement&&this._useSystemTicker&&(dt.vB.system.add(this.tickerUpdate,this,dt.uF.INTERACTION),this.tickerAdded=!0)},e.prototype.removeTickerListener=function(){this.tickerAdded&&(dt.vB.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},e.prototype.addEvents=function(){if(!this.eventsAdded&&this.interactionDOMElement){var t=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(t.msContentZooming="none",t.msTouchAction="none"):this.supportsPointerEvents&&(t.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}},e.prototype.removeEvents=function(){if(this.eventsAdded&&this.interactionDOMElement){var t=this.interactionDOMElement.style;globalThis.navigator.msPointerEnabled?(t.msContentZooming="",t.msTouchAction=""):this.supportsPointerEvents&&(t.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}},e.prototype.tickerUpdate=function(t){this._deltaTime+=t,this._deltaTime<this.interactionFrequency||(this._deltaTime=0,this.update())},e.prototype.update=function(){if(this.interactionDOMElement)if(this._didMove)this._didMove=!1;else{for(var t in this.cursor=null,this.activeInteractionData)if(this.activeInteractionData.hasOwnProperty(t)){var e=this.activeInteractionData[t];if(e.originalEvent&&"touch"!==e.pointerType){var r=this.configureInteractionEventForDOMEvent(this.eventData,e.originalEvent,e);this.processInteractive(r,this.lastObjectRendered,this.processPointerOverOut,!0)}}this.setCursorMode(this.cursor)}},e.prototype.setCursorMode=function(t){t=t||"default";var e=!0;if(globalThis.OffscreenCanvas&&this.interactionDOMElement instanceof OffscreenCanvas&&(e=!1),this.currentCursorMode!==t){this.currentCursorMode=t;var r=this.cursorStyles[t];if(r)switch(typeof r){case"string":e&&(this.interactionDOMElement.style.cursor=r);break;case"function":r(t);break;case"object":e&&Object.assign(this.interactionDOMElement.style,r);break}else e&&"string"===typeof t&&!Object.prototype.hasOwnProperty.call(this.cursorStyles,t)&&(this.interactionDOMElement.style.cursor=t)}},e.prototype.dispatchEvent=function(t,e,r){r.stopPropagationHint&&t!==r.stopsPropagatingAt||(r.currentTarget=t,r.type=e,t.emit(e,r),t[e]&&t[e](r))},e.prototype.delayDispatchEvent=function(t,e,r){this.delayedEvents.push({displayObject:t,eventString:e,eventData:r})},e.prototype.mapPositionToPoint=function(t,e,r){var n;n=this.interactionDOMElement.parentElement?this.interactionDOMElement.getBoundingClientRect():{x:0,y:0,width:this.interactionDOMElement.width,height:this.interactionDOMElement.height,left:0,top:0};var i=1/this.resolution;t.x=(e-n.left)*(this.interactionDOMElement.width/n.width)*i,t.y=(r-n.top)*(this.interactionDOMElement.height/n.height)*i},e.prototype.processInteractive=function(t,e,r,n){var i=this.search.findHit(t,e,r,n),o=this.delayedEvents;if(!o.length)return i;t.stopPropagationHint=!1;var s=o.length;this.delayedEvents=[];for(var a=0;a<s;a++){var u=o[a],h=u.displayObject,l=u.eventString,c=u.eventData;c.stopsPropagatingAt===h&&(c.stopPropagationHint=!0),this.dispatchEvent(h,l,c)}return i},e.prototype.onPointerDown=function(t){if(!this.supportsTouchEvents||"touch"!==t.pointerType){var e=this.normalizeToPointerData(t);if(this.autoPreventDefault&&e[0].isNormalized){var r=t.cancelable||!("cancelable"in t);r&&t.preventDefault()}for(var n=e.length,i=0;i<n;i++){var o=e[i],s=this.getInteractionDataForPointerId(o),a=this.configureInteractionEventForDOMEvent(this.eventData,o,s);if(a.data.originalEvent=t,this.processInteractive(a,this.lastObjectRendered,this.processPointerDown,!0),this.emit("pointerdown",a),"touch"===o.pointerType)this.emit("touchstart",a);else if("mouse"===o.pointerType||"pen"===o.pointerType){var u=2===o.button;this.emit(u?"rightdown":"mousedown",this.eventData)}}}},e.prototype.processPointerDown=function(t,e,r){var n=t.data,i=t.data.identifier;if(r)if(e.trackedPointers[i]||(e.trackedPointers[i]=new yt(i)),this.dispatchEvent(e,"pointerdown",t),"touch"===n.pointerType)this.dispatchEvent(e,"touchstart",t);else if("mouse"===n.pointerType||"pen"===n.pointerType){var o=2===n.button;o?e.trackedPointers[i].rightDown=!0:e.trackedPointers[i].leftDown=!0,this.dispatchEvent(e,o?"rightdown":"mousedown",t)}},e.prototype.onPointerComplete=function(t,e,r){for(var n=this.normalizeToPointerData(t),i=n.length,o=t.target!==this.interactionDOMElement?"outside":"",s=0;s<i;s++){var a=n[s],u=this.getInteractionDataForPointerId(a),h=this.configureInteractionEventForDOMEvent(this.eventData,a,u);if(h.data.originalEvent=t,this.processInteractive(h,this.lastObjectRendered,r,e||!o),this.emit(e?"pointercancel":"pointerup"+o,h),"mouse"===a.pointerType||"pen"===a.pointerType){var l=2===a.button;this.emit(l?"rightup"+o:"mouseup"+o,h)}else"touch"===a.pointerType&&(this.emit(e?"touchcancel":"touchend"+o,h),this.releaseInteractionDataForPointerId(a.pointerId))}},e.prototype.onPointerCancel=function(t){this.supportsTouchEvents&&"touch"===t.pointerType||this.onPointerComplete(t,!0,this.processPointerCancel)},e.prototype.processPointerCancel=function(t,e){var r=t.data,n=t.data.identifier;void 0!==e.trackedPointers[n]&&(delete e.trackedPointers[n],this.dispatchEvent(e,"pointercancel",t),"touch"===r.pointerType&&this.dispatchEvent(e,"touchcancel",t))},e.prototype.onPointerUp=function(t){this.supportsTouchEvents&&"touch"===t.pointerType||this.onPointerComplete(t,!1,this.processPointerUp)},e.prototype.processPointerUp=function(t,e,r){var n=t.data,i=t.data.identifier,o=e.trackedPointers[i],s="touch"===n.pointerType,a="mouse"===n.pointerType||"pen"===n.pointerType,u=!1;if(a){var h=2===n.button,l=yt.FLAGS,c=h?l.RIGHT_DOWN:l.LEFT_DOWN,f=void 0!==o&&o.flags&c;r?(this.dispatchEvent(e,h?"rightup":"mouseup",t),f&&(this.dispatchEvent(e,h?"rightclick":"click",t),u=!0)):f&&this.dispatchEvent(e,h?"rightupoutside":"mouseupoutside",t),o&&(h?o.rightDown=!1:o.leftDown=!1)}r?(this.dispatchEvent(e,"pointerup",t),s&&this.dispatchEvent(e,"touchend",t),o&&(a&&!u||this.dispatchEvent(e,"pointertap",t),s&&(this.dispatchEvent(e,"tap",t),o.over=!1))):o&&(this.dispatchEvent(e,"pointerupoutside",t),s&&this.dispatchEvent(e,"touchendoutside",t)),o&&o.none&&delete e.trackedPointers[i]},e.prototype.onPointerMove=function(t){if(!this.supportsTouchEvents||"touch"!==t.pointerType){var e=this.normalizeToPointerData(t);"mouse"!==e[0].pointerType&&"pen"!==e[0].pointerType||(this._didMove=!0,this.cursor=null);for(var r=e.length,n=0;n<r;n++){var i=e[n],o=this.getInteractionDataForPointerId(i),s=this.configureInteractionEventForDOMEvent(this.eventData,i,o);s.data.originalEvent=t,this.processInteractive(s,this.lastObjectRendered,this.processPointerMove,!0),this.emit("pointermove",s),"touch"===i.pointerType&&this.emit("touchmove",s),"mouse"!==i.pointerType&&"pen"!==i.pointerType||this.emit("mousemove",s)}"mouse"===e[0].pointerType&&this.setCursorMode(this.cursor)}},e.prototype.processPointerMove=function(t,e,r){var n=t.data,i="touch"===n.pointerType,o="mouse"===n.pointerType||"pen"===n.pointerType;o&&this.processPointerOverOut(t,e,r),this.moveWhenInside&&!r||(this.dispatchEvent(e,"pointermove",t),i&&this.dispatchEvent(e,"touchmove",t),o&&this.dispatchEvent(e,"mousemove",t))},e.prototype.onPointerOut=function(t){if(!this.supportsTouchEvents||"touch"!==t.pointerType){var e=this.normalizeToPointerData(t),r=e[0];"mouse"===r.pointerType&&(this.mouseOverRenderer=!1,this.setCursorMode(null));var n=this.getInteractionDataForPointerId(r),i=this.configureInteractionEventForDOMEvent(this.eventData,r,n);i.data.originalEvent=r,this.processInteractive(i,this.lastObjectRendered,this.processPointerOverOut,!1),this.emit("pointerout",i),"mouse"===r.pointerType||"pen"===r.pointerType?this.emit("mouseout",i):this.releaseInteractionDataForPointerId(n.identifier)}},e.prototype.processPointerOverOut=function(t,e,r){var n=t.data,i=t.data.identifier,o="mouse"===n.pointerType||"pen"===n.pointerType,s=e.trackedPointers[i];r&&!s&&(s=e.trackedPointers[i]=new yt(i)),void 0!==s&&(r&&this.mouseOverRenderer?(s.over||(s.over=!0,this.delayDispatchEvent(e,"pointerover",t),o&&this.delayDispatchEvent(e,"mouseover",t)),o&&null===this.cursor&&(this.cursor=e.cursor)):s.over&&(s.over=!1,this.dispatchEvent(e,"pointerout",this.eventData),o&&this.dispatchEvent(e,"mouseout",t),s.none&&delete e.trackedPointers[i]))},e.prototype.onPointerOver=function(t){var e=this.normalizeToPointerData(t),r=e[0],n=this.getInteractionDataForPointerId(r),i=this.configureInteractionEventForDOMEvent(this.eventData,r,n);i.data.originalEvent=r,"mouse"===r.pointerType&&(this.mouseOverRenderer=!0),this.emit("pointerover",i),"mouse"!==r.pointerType&&"pen"!==r.pointerType||this.emit("mouseover",i)},e.prototype.getInteractionDataForPointerId=function(t){var e,r=t.pointerId;return r===Tt||"mouse"===t.pointerType?e=this.mouse:this.activeInteractionData[r]?e=this.activeInteractionData[r]:(e=this.interactionDataPool.pop()||new pt,e.identifier=r,this.activeInteractionData[r]=e),e.copyEvent(t),e},e.prototype.releaseInteractionDataForPointerId=function(t){var e=this.activeInteractionData[t];e&&(delete this.activeInteractionData[t],e.reset(),this.interactionDataPool.push(e))},e.prototype.configureInteractionEventForDOMEvent=function(t,e,r){return t.data=r,this.mapPositionToPoint(r.global,e.clientX,e.clientY),"touch"===e.pointerType&&(e.globalX=r.global.x,e.globalY=r.global.y),r.originalEvent=e,t.reset(),t},e.prototype.normalizeToPointerData=function(t){var e=[];if(this.supportsTouchEvents&&t instanceof TouchEvent)for(var r=0,n=t.changedTouches.length;r<n;r++){var i=t.changedTouches[r];"undefined"===typeof i.button&&(i.button=t.touches.length?1:0),"undefined"===typeof i.buttons&&(i.buttons=t.touches.length?1:0),"undefined"===typeof i.isPrimary&&(i.isPrimary=1===t.touches.length&&"touchstart"===t.type),"undefined"===typeof i.width&&(i.width=i.radiusX||1),"undefined"===typeof i.height&&(i.height=i.radiusY||1),"undefined"===typeof i.tiltX&&(i.tiltX=0),"undefined"===typeof i.tiltY&&(i.tiltY=0),"undefined"===typeof i.pointerType&&(i.pointerType="touch"),"undefined"===typeof i.pointerId&&(i.pointerId=i.identifier||0),"undefined"===typeof i.pressure&&(i.pressure=i.force||.5),"undefined"===typeof i.twist&&(i.twist=0),"undefined"===typeof i.tangentialPressure&&(i.tangentialPressure=0),"undefined"===typeof i.layerX&&(i.layerX=i.offsetX=i.clientX),"undefined"===typeof i.layerY&&(i.layerY=i.offsetY=i.clientY),i.isNormalized=!0,e.push(i)}else if(globalThis.MouseEvent&&(!(t instanceof MouseEvent)||this.supportsPointerEvents&&t instanceof globalThis.PointerEvent))e.push(t);else{var o=t;"undefined"===typeof o.isPrimary&&(o.isPrimary=!0),"undefined"===typeof o.width&&(o.width=1),"undefined"===typeof o.height&&(o.height=1),"undefined"===typeof o.tiltX&&(o.tiltX=0),"undefined"===typeof o.tiltY&&(o.tiltY=0),"undefined"===typeof o.pointerType&&(o.pointerType="mouse"),"undefined"===typeof o.pointerId&&(o.pointerId=Tt),"undefined"===typeof o.pressure&&(o.pressure=.5),"undefined"===typeof o.twist&&(o.twist=0),"undefined"===typeof o.tangentialPressure&&(o.tangentialPressure=0),o.isNormalized=!0,e.push(o)}return e},e.prototype.destroy=function(){this.removeEvents(),this.removeTickerListener(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactionDOMElement=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerCancel=null,this.processPointerCancel=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this.search=null},e}(S.vp),Rt=r(4457),At=function(){function t(e){var r=this;this.stage=new et,e=Object.assign({forceCanvas:!1},e),this.renderer=(0,Rt.e6)(e),t._plugins.forEach((function(t){t.init.call(r,e)}))}return t.registerPlugin=function(e){t._plugins.push(e)},t.prototype.render=function(){this.renderer.render(this.stage)},Object.defineProperty(t.prototype,"view",{get:function(){return this.renderer.view},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"screen",{get:function(){return this.renderer.screen},enumerable:!1,configurable:!0}),t.prototype.destroy=function(e,r){var n=this,i=t._plugins.slice(0);i.reverse(),i.forEach((function(t){t.destroy.call(n)})),this.stage.destroy(r),this.stage=null,this.renderer.destroy(e),this.renderer=null},t._plugins=[],t}(),It=function(){function t(){}return t.init=function(t){var e=this;Object.defineProperty(this,"resizeTo",{set:function(t){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=t,t&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get:function(){return this._resizeTo}}),this.queueResize=function(){e._resizeTo&&(e.cancelResize(),e._resizeId=requestAnimationFrame((function(){return e.resize()})))},this.cancelResize=function(){e._resizeId&&(cancelAnimationFrame(e._resizeId),e._resizeId=null)},this.resize=function(){if(e._resizeTo){var t,r;if(e.cancelResize(),e._resizeTo===globalThis.window)t=globalThis.innerWidth,r=globalThis.innerHeight;else{var n=e._resizeTo,i=n.clientWidth,o=n.clientHeight;t=i,r=o}e.renderer.resize(t,r)}},this._resizeId=null,this._resizeTo=null,this.resizeTo=t.resizeTo||null},t.destroy=function(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null},t}();At.registerPlugin(It);
/*!
* @pixi/extract - v6.3.0
* Compiled Wed, 23 Mar 2022 18:58:56 UTC
*
* @pixi/extract is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/
var St=new P.Ae,Ot=4,Pt=function(){function t(t){this.renderer=t}return t.prototype.image=function(t,e,r){var n=new Image;return n.src=this.base64(t,e,r),n},t.prototype.base64=function(t,e,r){return this.canvas(t).toDataURL(e,r)},t.prototype.canvas=function(e){var r,n,i,o=this.renderer,s=!1,a=!1;e&&(e instanceof Rt.TI?i=e:(i=this.renderer.generateTexture(e),a=!0)),i?(r=i.baseTexture.resolution,n=i.frame,s=!1,o.renderTexture.bind(i)):(r=this.renderer.resolution,s=!0,n=St,n.width=this.renderer.width,n.height=this.renderer.height,o.renderTexture.bind(null));var u=Math.floor(n.width*r+1e-4),h=Math.floor(n.height*r+1e-4),l=new S.qU(u,h,1),c=new Uint8Array(Ot*u*h),f=o.gl;f.readPixels(n.x*r,n.y*r,u,h,f.RGBA,f.UNSIGNED_BYTE,c);var d=l.context.getImageData(0,0,u,h);if(t.arrayPostDivide(c,d.data),l.context.putImageData(d,0,0),s){var p=new S.qU(l.width,l.height,1);p.context.scale(1,-1),p.context.drawImage(l.canvas,0,-h),l.destroy(),l=p}return a&&i.destroy(!0),l.canvas},t.prototype.pixels=function(e){var r,n,i,o=this.renderer,s=!1;e&&(e instanceof Rt.TI?i=e:(i=this.renderer.generateTexture(e),s=!0)),i?(r=i.baseTexture.resolution,n=i.frame,o.renderTexture.bind(i)):(r=o.resolution,n=St,n.width=o.width,n.height=o.height,o.renderTexture.bind(null));var a=n.width*r,u=n.height*r,h=new Uint8Array(Ot*a*u),l=o.gl;return l.readPixels(n.x*r,n.y*r,a,u,l.RGBA,l.UNSIGNED_BYTE,h),s&&i.destroy(!0),t.arrayPostDivide(h,h),h},t.prototype.destroy=function(){this.renderer=null},t.arrayPostDivide=function(t,e){for(var r=0;r<t.length;r+=4){var n=e[r+3]=t[r+3];0!==n?(e[r]=Math.round(Math.min(255*t[r]/n,255)),e[r+1]=Math.round(Math.min(255*t[r+1]/n,255)),e[r+2]=Math.round(Math.min(255*t[r+2]/n,255))):(e[r]=t[r],e[r+1]=t[r+1],e[r+2]=t[r+2])}},t}(),Nt=function(){function t(t,e,r){void 0===e&&(e=!1),this._fn=t,this._once=e,this._thisArg=r,this._next=this._prev=this._owner=null}return t.prototype.detach=function(){return null!==this._owner&&(this._owner.detach(this),!0)},t}();function Mt(t,e){return t._head?(t._tail._next=e,e._prev=t._tail,t._tail=e):(t._head=e,t._tail=e),e._owner=t,e}var wt=function(){function t(){this._head=this._tail=void 0}return t.prototype.handlers=function(t){void 0===t&&(t=!1);var e=this._head;if(t)return!!e;var r=[];while(e)r.push(e),e=e._next;return r},t.prototype.has=function(t){if(!(t instanceof Nt))throw new Error("MiniSignal#has(): First arg must be a SignalBinding object.");return t._owner===this},t.prototype.dispatch=function(){for(var t=arguments,e=[],r=0;r<arguments.length;r++)e[r]=t[r];var n=this._head;if(!n)return!1;while(n)n._once&&this.detach(n),n._fn.apply(n._thisArg,e),n=n._next;return!0},t.prototype.add=function(t,e){if(void 0===e&&(e=null),"function"!==typeof t)throw new Error("MiniSignal#add(): First arg must be a Function.");return Mt(this,new Nt(t,!1,e))},t.prototype.once=function(t,e){if(void 0===e&&(e=null),"function"!==typeof t)throw new Error("MiniSignal#once(): First arg must be a Function.");return Mt(this,new Nt(t,!0,e))},t.prototype.detach=function(t){if(!(t instanceof Nt))throw new Error("MiniSignal#detach(): First arg must be a SignalBinding object.");return t._owner!==this||(t._prev&&(t._prev._next=t._next),t._next&&(t._next._prev=t._prev),t===this._head?(this._head=t._next,null===t._next&&(this._tail=null)):t===this._tail&&(this._tail=t._prev,this._tail._next=null),t._owner=null),this},t.prototype.detachAll=function(){var t=this._head;if(!t)return this;this._head=this._tail=null;while(t)t._owner=null,t=t._next;return this},t}();function Dt(t,e){e=e||{};var r={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},n=r.parser[e.strictMode?"strict":"loose"].exec(t),i={},o=14;while(o--)i[r.key[o]]=n[o]||"";return i[r.q.name]={},i[r.key[12]].replace(r.q.parser,(function(t,e,n){e&&(i[r.q.name][e]=n)})),i}var Ct=!(!globalThis.XDomainRequest||"withCredentials"in new XMLHttpRequest),Lt=null,Ft=0,Ut=200,Gt=204,Bt=1223,Xt=2;function kt(){}function Ht(t,e,r){e&&0===e.indexOf(".")&&(e=e.substring(1)),e&&(t[e]=r)}function jt(t){return t.toString().replace("object ","")}var Vt=function(){function t(e,r,n){if(this._dequeue=kt,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=null,this._boundOnError=null,this._boundOnProgress=null,this._boundOnTimeout=null,this._boundXhrOnError=null,this._boundXhrOnTimeout=null,this._boundXhrOnAbort=null,this._boundXhrOnLoad=null,"string"!==typeof e||"string"!==typeof r)throw new Error("Both name and url are required for constructing a resource.");n=n||{},this._flags=0,this._setFlag(t.STATUS_FLAGS.DATA_URL,0===r.indexOf("data:")),this.name=e,this.url=r,this.extension=this._getExtension(),this.data=null,this.crossOrigin=!0===n.crossOrigin?"anonymous":n.crossOrigin,this.timeout=n.timeout||0,this.loadType=n.loadType||this._determineLoadType(),this.xhrType=n.xhrType,this.metadata=n.metadata||{},this.error=null,this.xhr=null,this.children=[],this.type=t.TYPE.UNKNOWN,this.progressChunk=0,this._dequeue=kt,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=this.complete.bind(this),this._boundOnError=this._onError.bind(this),this._boundOnProgress=this._onProgress.bind(this),this._boundOnTimeout=this._onTimeout.bind(this),this._boundXhrOnError=this._xhrOnError.bind(this),this._boundXhrOnTimeout=this._xhrOnTimeout.bind(this),this._boundXhrOnAbort=this._xhrOnAbort.bind(this),this._boundXhrOnLoad=this._xhrOnLoad.bind(this),this.onStart=new wt,this.onProgress=new wt,this.onComplete=new wt,this.onAfterMiddleware=new wt}return t.setExtensionLoadType=function(e,r){Ht(t._loadTypeMap,e,r)},t.setExtensionXhrType=function(e,r){Ht(t._xhrTypeMap,e,r)},Object.defineProperty(t.prototype,"isDataUrl",{get:function(){return this._hasFlag(t.STATUS_FLAGS.DATA_URL)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isComplete",{get:function(){return this._hasFlag(t.STATUS_FLAGS.COMPLETE)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this._hasFlag(t.STATUS_FLAGS.LOADING)},enumerable:!1,configurable:!0}),t.prototype.complete=function(){this._clearEvents(),this._finish()},t.prototype.abort=function(e){if(!this.error){if(this.error=new Error(e),this._clearEvents(),this.xhr)this.xhr.abort();else if(this.xdr)this.xdr.abort();else if(this.data)if(this.data.src)this.data.src=t.EMPTY_GIF;else while(this.data.firstChild)this.data.removeChild(this.data.firstChild);this._finish()}},t.prototype.load=function(e){var r=this;if(!this.isLoading)if(this.isComplete)e&&setTimeout((function(){return e(r)}),1);else switch(e&&this.onComplete.once(e),this._setFlag(t.STATUS_FLAGS.LOADING,!0),this.onStart.dispatch(this),!1!==this.crossOrigin&&"string"===typeof this.crossOrigin||(this.crossOrigin=this._determineCrossOrigin(this.url)),this.loadType){case t.LOAD_TYPE.IMAGE:this.type=t.TYPE.IMAGE,this._loadElement("image");break;case t.LOAD_TYPE.AUDIO:this.type=t.TYPE.AUDIO,this._loadSourceElement("audio");break;case t.LOAD_TYPE.VIDEO:this.type=t.TYPE.VIDEO,this._loadSourceElement("video");break;case t.LOAD_TYPE.XHR:default:Ct&&this.crossOrigin?this._loadXdr():this._loadXhr();break}},t.prototype._hasFlag=function(t){return 0!==(this._flags&t)},t.prototype._setFlag=function(t,e){this._flags=e?this._flags|t:this._flags&~t},t.prototype._clearEvents=function(){clearTimeout(this._elementTimer),this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("timeout",this._boundXhrOnTimeout,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null))},t.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(t.STATUS_FLAGS.COMPLETE,!0),this._setFlag(t.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},t.prototype._loadElement=function(t){this.metadata.loadElement?this.data=this.metadata.loadElement:"image"===t&&"undefined"!==typeof globalThis.Image?this.data=new Image:this.data=document.createElement(t),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},t.prototype._loadSourceElement=function(t){if(this.metadata.loadElement?this.data=this.metadata.loadElement:"audio"===t&&"undefined"!==typeof globalThis.Audio?this.data=new Audio:this.data=document.createElement(t),null!==this.data){if(this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var e=this.metadata.mimeType,r=0;r<this.url.length;++r)this.data.appendChild(this._createSource(t,this.url[r],Array.isArray(e)?e[r]:e));else{e=this.metadata.mimeType;this.data.appendChild(this._createSource(t,this.url,Array.isArray(e)?e[0]:e))}this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.data.addEventListener("canplaythrough",this._boundComplete,!1),this.data.load(),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))}else this.abort("Unsupported element: "+t)},t.prototype._loadXhr=function(){"string"!==typeof this.xhrType&&(this.xhrType=this._determineXhrType());var e=this.xhr=new XMLHttpRequest;"use-credentials"===this.crossOrigin&&(e.withCredentials=!0),e.open("GET",this.url,!0),e.timeout=this.timeout,this.xhrType===t.XHR_RESPONSE_TYPE.JSON||this.xhrType===t.XHR_RESPONSE_TYPE.DOCUMENT?e.responseType=t.XHR_RESPONSE_TYPE.TEXT:e.responseType=this.xhrType,e.addEventListener("error",this._boundXhrOnError,!1),e.addEventListener("timeout",this._boundXhrOnTimeout,!1),e.addEventListener("abort",this._boundXhrOnAbort,!1),e.addEventListener("progress",this._boundOnProgress,!1),e.addEventListener("load",this._boundXhrOnLoad,!1),e.send()},t.prototype._loadXdr=function(){"string"!==typeof this.xhrType&&(this.xhrType=this._determineXhrType());var t=this.xhr=new globalThis.XDomainRequest;t.timeout=this.timeout||5e3,t.onerror=this._boundXhrOnError,t.ontimeout=this._boundXhrOnTimeout,t.onprogress=this._boundOnProgress,t.onload=this._boundXhrOnLoad,t.open("GET",this.url,!0),setTimeout((function(){return t.send()}),1)},t.prototype._createSource=function(t,e,r){r||(r=t+"/"+this._getExtension(e));var n=document.createElement("source");return n.src=e,n.type=r,n},t.prototype._onError=function(t){this.abort("Failed to load element using: "+t.target.nodeName)},t.prototype._onProgress=function(t){t&&t.lengthComputable&&this.onProgress.dispatch(this,t.loaded/t.total)},t.prototype._onTimeout=function(){this.abort("Load timed out.")},t.prototype._xhrOnError=function(){var t=this.xhr;this.abort(jt(t)+" Request failed. Status: "+t.status+', text: "'+t.statusText+'"')},t.prototype._xhrOnTimeout=function(){var t=this.xhr;this.abort(jt(t)+" Request timed out.")},t.prototype._xhrOnAbort=function(){var t=this.xhr;this.abort(jt(t)+" Request was aborted by the user.")},t.prototype._xhrOnLoad=function(){var e=this.xhr,r="",n="undefined"===typeof e.status?Ut:e.status;""!==e.responseType&&"text"!==e.responseType&&"undefined"!==typeof e.responseType||(r=e.responseText),n===Ft&&(r.length>0||e.responseType===t.XHR_RESPONSE_TYPE.BUFFER)?n=Ut:n===Bt&&(n=Gt);var i=n/100|0;if(i===Xt){if(this.xhrType===t.XHR_RESPONSE_TYPE.TEXT)this.data=r,this.type=t.TYPE.TEXT;else if(this.xhrType===t.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(r),this.type=t.TYPE.JSON}catch(a){return void this.abort("Error trying to parse loaded json: "+a)}else if(this.xhrType===t.XHR_RESPONSE_TYPE.DOCUMENT)try{if(globalThis.DOMParser){var o=new DOMParser;this.data=o.parseFromString(r,"text/xml")}else{var s=document.createElement("div");s.innerHTML=r,this.data=s}this.type=t.TYPE.XML}catch(u){return void this.abort("Error trying to parse loaded xml: "+u)}else this.data=e.response||r;this.complete()}else this.abort("["+e.status+"] "+e.statusText+": "+e.responseURL)},t.prototype._determineCrossOrigin=function(t,e){if(0===t.indexOf("data:"))return"";if(globalThis.origin!==globalThis.location.origin)return"anonymous";e=e||globalThis.location,Lt||(Lt=document.createElement("a")),Lt.href=t;var r=Dt(Lt.href,{strictMode:!0}),n=!r.port&&""===e.port||r.port===e.port,i=r.protocol?r.protocol+":":"";return r.host===e.hostname&&n&&i===e.protocol?"":"anonymous"},t.prototype._determineXhrType=function(){return t._xhrTypeMap[this.extension]||t.XHR_RESPONSE_TYPE.TEXT},t.prototype._determineLoadType=function(){return t._loadTypeMap[this.extension]||t.LOAD_TYPE.XHR},t.prototype._getExtension=function(t){void 0===t&&(t=this.url);var e="";if(this.isDataUrl){var r=t.indexOf("/");e=t.substring(r+1,t.indexOf(";",r))}else{var n=t.indexOf("?"),i=t.indexOf("#"),o=Math.min(n>-1?n:t.length,i>-1?i:t.length);t=t.substring(0,o),e=t.substring(t.lastIndexOf(".")+1)}return e.toLowerCase()},t.prototype._getMimeFromXhrType=function(e){switch(e){case t.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case t.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case t.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case t.XHR_RESPONSE_TYPE.JSON:return"application/json";case t.XHR_RESPONSE_TYPE.DEFAULT:case t.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},t}();function Yt(){}function Wt(t){return function(){for(var e=arguments,r=[],n=0;n<arguments.length;n++)r[n]=e[n];if(null===t)throw new Error("Callback was already called.");var i=t;t=null,i.apply(this,r)}}(function(t){(function(t){t[t["NONE"]=0]="NONE",t[t["DATA_URL"]=1]="DATA_URL",t[t["COMPLETE"]=2]="COMPLETE",t[t["LOADING"]=4]="LOADING"})(t.STATUS_FLAGS||(t.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"}(t.TYPE||(t.TYPE={})),function(t){t[t["XHR"]=1]="XHR",t[t["IMAGE"]=2]="IMAGE",t[t["AUDIO"]=3]="AUDIO",t[t["VIDEO"]=4]="VIDEO"}(t.LOAD_TYPE||(t.LOAD_TYPE={})),function(t){t["DEFAULT"]="text",t["BUFFER"]="arraybuffer",t["BLOB"]="blob",t["DOCUMENT"]="document",t["JSON"]="json",t["TEXT"]="text"}(t.XHR_RESPONSE_TYPE||(t.XHR_RESPONSE_TYPE={})),t._loadTypeMap={gif:t.LOAD_TYPE.IMAGE,png:t.LOAD_TYPE.IMAGE,bmp:t.LOAD_TYPE.IMAGE,jpg:t.LOAD_TYPE.IMAGE,jpeg:t.LOAD_TYPE.IMAGE,tif:t.LOAD_TYPE.IMAGE,tiff:t.LOAD_TYPE.IMAGE,webp:t.LOAD_TYPE.IMAGE,tga:t.LOAD_TYPE.IMAGE,svg:t.LOAD_TYPE.IMAGE,"svg+xml":t.LOAD_TYPE.IMAGE,mp3:t.LOAD_TYPE.AUDIO,ogg:t.LOAD_TYPE.AUDIO,wav:t.LOAD_TYPE.AUDIO,mp4:t.LOAD_TYPE.VIDEO,webm:t.LOAD_TYPE.VIDEO},t._xhrTypeMap={xhtml:t.XHR_RESPONSE_TYPE.DOCUMENT,html:t.XHR_RESPONSE_TYPE.DOCUMENT,htm:t.XHR_RESPONSE_TYPE.DOCUMENT,xml:t.XHR_RESPONSE_TYPE.DOCUMENT,tmx:t.XHR_RESPONSE_TYPE.DOCUMENT,svg:t.XHR_RESPONSE_TYPE.DOCUMENT,tsx:t.XHR_RESPONSE_TYPE.DOCUMENT,gif:t.XHR_RESPONSE_TYPE.BLOB,png:t.XHR_RESPONSE_TYPE.BLOB,bmp:t.XHR_RESPONSE_TYPE.BLOB,jpg:t.XHR_RESPONSE_TYPE.BLOB,jpeg:t.XHR_RESPONSE_TYPE.BLOB,tif:t.XHR_RESPONSE_TYPE.BLOB,tiff:t.XHR_RESPONSE_TYPE.BLOB,webp:t.XHR_RESPONSE_TYPE.BLOB,tga:t.XHR_RESPONSE_TYPE.BLOB,json:t.XHR_RESPONSE_TYPE.JSON,text:t.XHR_RESPONSE_TYPE.TEXT,txt:t.XHR_RESPONSE_TYPE.TEXT,ttf:t.XHR_RESPONSE_TYPE.BUFFER,otf:t.XHR_RESPONSE_TYPE.BUFFER},t.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="})(Vt||(Vt={}));var zt=function(){function t(t,e){this.data=t,this.callback=e}return t}(),qt=function(){function t(t,e){var r=this;if(void 0===e&&(e=1),this.workers=0,this.saturated=Yt,this.unsaturated=Yt,this.empty=Yt,this.drain=Yt,this.error=Yt,this.started=!1,this.paused=!1,this._tasks=[],this._insert=function(t,e,n){if(n&&"function"!==typeof n)throw new Error("task callback must be a function");if(r.started=!0,null==t&&r.idle())setTimeout((function(){return r.drain()}),1);else{var i=new zt(t,"function"===typeof n?n:Yt);e?r._tasks.unshift(i):r._tasks.push(i),setTimeout(r.process,1)}},this.process=function(){while(!r.paused&&r.workers<r.concurrency&&r._tasks.length){var t=r._tasks.shift();0===r._tasks.length&&r.empty(),r.workers+=1,r.workers===r.concurrency&&r.saturated(),r._worker(t.data,Wt(r._next(t)))}},this._worker=t,0===e)throw new Error("Concurrency must not be zero");this.concurrency=e,this.buffer=e/4}return t.prototype._next=function(t){var e=this;return function(){for(var r=arguments,n=[],i=0;i<arguments.length;i++)n[i]=r[i];e.workers-=1,t.callback.apply(t,n),null!=n[0]&&e.error(n[0],t.data),e.workers<=e.concurrency-e.buffer&&e.unsaturated(),e.idle()&&e.drain(),e.process()}},t.prototype.push=function(t,e){this._insert(t,!1,e)},t.prototype.kill=function(){this.workers=0,this.drain=Yt,this.started=!1,this._tasks=[]},t.prototype.unshift=function(t,e){this._insert(t,!0,e)},t.prototype.length=function(){return this._tasks.length},t.prototype.running=function(){return this.workers},t.prototype.idle=function(){return this._tasks.length+this.workers===0},t.prototype.pause=function(){!0!==this.paused&&(this.paused=!0)},t.prototype.resume=function(){if(!1!==this.paused){this.paused=!1;for(var t=1;t<=this.concurrency;t++)this.process()}},t.eachSeries=function(t,e,r,n){var i=0,o=t.length;function s(a){a||i===o?r&&r(a):n?setTimeout((function(){e(t[i++],s)}),1):e(t[i++],s)}s()},t.queue=function(e,r){return new t(e,r)},t}(),Kt=100,$t=/(#[\w-]+)?$/,Zt=function(){function t(e,r){var n=this;void 0===e&&(e=""),void 0===r&&(r=10),this.progress=0,this.loading=!1,this.defaultQueryString="",this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(t,e){return n._loadResource(t,e)},this.resources={},this.baseUrl=e,this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(t,e){return n._loadResource(t,e)},this._queue=qt.queue(this._boundLoadResource,r),this._queue.pause(),this.resources={},this.onProgress=new wt,this.onError=new wt,this.onLoad=new wt,this.onStart=new wt,this.onComplete=new wt;for(var i=0;i<t._plugins.length;++i){var o=t._plugins[i],s=o.pre,a=o.use;s&&this.pre(s),a&&this.use(a)}this._protected=!1}return t.prototype._add=function(t,e,r,n){if(this.loading&&(!r||!r.parentResource))throw new Error("Cannot add resources while the loader is running.");if(this.resources[t])throw new Error('Resource named "'+t+'" already exists.');if(e=this._prepareUrl(e),this.resources[t]=new Vt(t,e,r),"function"===typeof n&&this.resources[t].onAfterMiddleware.once(n),this.loading){for(var i=r.parentResource,o=[],s=0;s<i.children.length;++s)i.children[s].isComplete||o.push(i.children[s]);var a=i.progressChunk*(o.length+1),u=a/(o.length+2);i.children.push(this.resources[t]),i.progressChunk=u;for(s=0;s<o.length;++s)o[s].progressChunk=u;this.resources[t].progressChunk=u}return this._queue.push(this.resources[t]),this},t.prototype.pre=function(t){return this._beforeMiddleware.push(t),this},t.prototype.use=function(t){return this._afterMiddleware.push(t),this},t.prototype.reset=function(){for(var t in this.progress=0,this.loading=!1,this._queue.kill(),this._queue.pause(),this.resources){var e=this.resources[t];e._onLoadBinding&&e._onLoadBinding.detach(),e.isLoading&&e.abort("loader reset")}return this.resources={},this},t.prototype.load=function(t){if("function"===typeof t&&this.onComplete.once(t),this.loading)return this;if(this._queue.idle())this._onStart(),this._onComplete();else{for(var e=this._queue._tasks.length,r=Kt/e,n=0;n<this._queue._tasks.length;++n)this._queue._tasks[n].data.progressChunk=r;this._onStart(),this._queue.resume()}return this},Object.defineProperty(t.prototype,"concurrency",{get:function(){return this._queue.concurrency},set:function(t){this._queue.concurrency=t},enumerable:!1,configurable:!0}),t.prototype._prepareUrl=function(t){var e,r=Dt(t,{strictMode:!0});if(e=r.protocol||!r.path||0===t.indexOf("//")?t:this.baseUrl.length&&this.baseUrl.lastIndexOf("/")!==this.baseUrl.length-1&&"/"!==t.charAt(0)?this.baseUrl+"/"+t:this.baseUrl+t,this.defaultQueryString){var n=$t.exec(e)[0];e=e.slice(0,e.length-n.length),-1!==e.indexOf("?")?e+="&"+this.defaultQueryString:e+="?"+this.defaultQueryString,e+=n}return e},t.prototype._loadResource=function(t,e){var r=this;t._dequeue=e,qt.eachSeries(this._beforeMiddleware,(function(e,n){e.call(r,t,(function(){n(t.isComplete?{}:null)}))}),(function(){t.isComplete?r._onLoad(t):(t._onLoadBinding=t.onComplete.once(r._onLoad,r),t.load())}),!0)},t.prototype._onStart=function(){this.progress=0,this.loading=!0,this.onStart.dispatch(this)},t.prototype._onComplete=function(){this.progress=Kt,this.loading=!1,this.onComplete.dispatch(this,this.resources)},t.prototype._onLoad=function(t){var e=this;t._onLoadBinding=null,this._resourcesParsing.push(t),t._dequeue(),qt.eachSeries(this._afterMiddleware,(function(r,n){r.call(e,t,n)}),(function(){t.onAfterMiddleware.dispatch(t),e.progress=Math.min(Kt,e.progress+t.progressChunk),e.onProgress.dispatch(e,t),t.error?e.onError.dispatch(t.error,e,t):e.onLoad.dispatch(e,t),e._resourcesParsing.splice(e._resourcesParsing.indexOf(t),1),e._queue.idle()&&0===e._resourcesParsing.length&&e._onComplete()}),!0)},t.prototype.destroy=function(){this._protected||this.reset()},Object.defineProperty(t,"shared",{get:function(){var e=t._shared;return e||(e=new t,e._protected=!0,t._shared=e),e},enumerable:!1,configurable:!0}),t.registerPlugin=function(e){return t._plugins.push(e),e.add&&e.add(),t},t._plugins=[],t}();Zt.prototype.add=function(t,e,r,n){if(Array.isArray(t)){for(var i=0;i<t.length;++i)this.add(t[i]);return this}if("object"===typeof t&&(r=t,n=e||r.callback||r.onComplete,e=r.url,t=r.name||r.key||r.url),"string"!==typeof e&&(n=r,r=e,e=t),"string"!==typeof e)throw new Error("No url passed to add resource to loader.");return"function"===typeof r&&(n=r,r=null),this._add(t,e,r,n)};var Jt=function(){function t(){}return t.init=function(t){t=Object.assign({sharedLoader:!1},t),this.loader=t.sharedLoader?Zt.shared:new Zt},t.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},t}(),Qt=function(){function t(){}return t.add=function(){Vt.setExtensionLoadType("svg",Vt.LOAD_TYPE.XHR),Vt.setExtensionXhrType("svg",Vt.XHR_RESPONSE_TYPE.TEXT)},t.use=function(t,e){if(!t.data||t.type!==Vt.TYPE.IMAGE&&"svg"!==t.extension)e();else{var r=t.data,n=t.url,i=t.name,o=t.metadata;Rt.xE.fromLoader(r,n,i,o).then((function(r){t.texture=r,e()})).catch(e)}},t}(),te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ee(t){var e="",r=0;while(r<t.length){for(var n=[0,0,0],i=[0,0,0,0],o=0;o<n.length;++o)r<t.length?n[o]=255&t.charCodeAt(r++):n[o]=0;i[0]=n[0]>>2,i[1]=(3&n[0])<<4|n[1]>>4,i[2]=(15&n[1])<<2|n[2]>>6,i[3]=63&n[2];var s=r-(t.length-1);switch(s){case 2:i[3]=64,i[2]=64;break;case 1:i[3]=64;break}for(o=0;o<i.length;++o)e+=te.charAt(i[o])}return e}var re=self.URL||self.webkitURL;function ne(t,e){if(t.data){if(t.xhr&&t.xhrType===Vt.XHR_RESPONSE_TYPE.BLOB)if(self.Blob&&"string"!==typeof t.data){if(0===t.data.type.indexOf("image")){var r=re.createObjectURL(t.data);return t.blob=t.data,t.data=new Image,t.data.src=r,t.type=Vt.TYPE.IMAGE,void(t.data.onload=function(){re.revokeObjectURL(r),t.data.onload=null,e()})}}else{var n=t.xhr.getResponseHeader("content-type");if(n&&0===n.indexOf("image"))return t.data=new Image,t.data.src="data:"+n+";base64,"+ee(t.xhr.responseText),t.type=Vt.TYPE.IMAGE,void(t.data.onload=function(){t.data.onload=null,e()})}e()}else e()}Zt.registerPlugin({use:ne}),Zt.registerPlugin(Qt);var ie,oe,se=r(942);(function(t){t[t["COMPRESSED_RGB_S3TC_DXT1_EXT"]=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",t[t["COMPRESSED_RGBA_S3TC_DXT1_EXT"]=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",t[t["COMPRESSED_RGBA_S3TC_DXT3_EXT"]=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",t[t["COMPRESSED_RGBA_S3TC_DXT5_EXT"]=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",t[t["COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT"]=35917]="COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT",t[t["COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT"]=35918]="COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT",t[t["COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT"]=35919]="COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT",t[t["COMPRESSED_SRGB_S3TC_DXT1_EXT"]=35916]="COMPRESSED_SRGB_S3TC_DXT1_EXT",t[t["COMPRESSED_R11_EAC"]=37488]="COMPRESSED_R11_EAC",t[t["COMPRESSED_SIGNED_R11_EAC"]=37489]="COMPRESSED_SIGNED_R11_EAC",t[t["COMPRESSED_RG11_EAC"]=37490]="COMPRESSED_RG11_EAC",t[t["COMPRESSED_SIGNED_RG11_EAC"]=37491]="COMPRESSED_SIGNED_RG11_EAC",t[t["COMPRESSED_RGB8_ETC2"]=37492]="COMPRESSED_RGB8_ETC2",t[t["COMPRESSED_RGBA8_ETC2_EAC"]=37496]="COMPRESSED_RGBA8_ETC2_EAC",t[t["COMPRESSED_SRGB8_ETC2"]=37493]="COMPRESSED_SRGB8_ETC2",t[t["COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"]=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",t[t["COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2"]=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t["COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2"]=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t["COMPRESSED_RGB_PVRTC_4BPPV1_IMG"]=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",t[t["COMPRESSED_RGBA_PVRTC_4BPPV1_IMG"]=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",t[t["COMPRESSED_RGB_PVRTC_2BPPV1_IMG"]=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",t[t["COMPRESSED_RGBA_PVRTC_2BPPV1_IMG"]=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",t[t["COMPRESSED_RGB_ETC1_WEBGL"]=36196]="COMPRESSED_RGB_ETC1_WEBGL",t[t["COMPRESSED_RGB_ATC_WEBGL"]=35986]="COMPRESSED_RGB_ATC_WEBGL",t[t["COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL"]=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",t[t["COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL"]=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL"})(oe||(oe={}));var ae=(ie={},ie[oe.COMPRESSED_RGB_S3TC_DXT1_EXT]=.5,ie[oe.COMPRESSED_RGBA_S3TC_DXT1_EXT]=.5,ie[oe.COMPRESSED_RGBA_S3TC_DXT3_EXT]=1,ie[oe.COMPRESSED_RGBA_S3TC_DXT5_EXT]=1,ie[oe.COMPRESSED_SRGB_S3TC_DXT1_EXT]=.5,ie[oe.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT]=.5,ie[oe.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT]=1,ie[oe.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT]=1,ie[oe.COMPRESSED_R11_EAC]=.5,ie[oe.COMPRESSED_SIGNED_R11_EAC]=.5,ie[oe.COMPRESSED_RG11_EAC]=1,ie[oe.COMPRESSED_SIGNED_RG11_EAC]=1,ie[oe.COMPRESSED_RGB8_ETC2]=.5,ie[oe.COMPRESSED_RGBA8_ETC2_EAC]=1,ie[oe.COMPRESSED_SRGB8_ETC2]=.5,ie[oe.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC]=1,ie[oe.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2]=.5,ie[oe.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2]=.5,ie[oe.COMPRESSED_RGB_PVRTC_4BPPV1_IMG]=.5,ie[oe.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG]=.5,ie[oe.COMPRESSED_RGB_PVRTC_2BPPV1_IMG]=.25,ie[oe.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG]=.25,ie[oe.COMPRESSED_RGB_ETC1_WEBGL]=.5,ie[oe.COMPRESSED_RGB_ATC_WEBGL]=.5,ie[oe.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL]=1,ie[oe.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL]=1,ie),ue=function(t,e){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},ue(t,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.
***************************************************************************** */function he(t,e){function r(){this.constructor=t}ue(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function le(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n["throw"](t))}catch(e){o(e)}}function u(t){t.done?i(t.value):new r((function(e){e(t.value)})).then(s,a)}u((n=n.apply(t,e||[])).next())}))}function ce(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(s)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}var fe,de,pe=function(t){function e(e,r){void 0===r&&(r={width:1,height:1,autoLoad:!0});var n,i,o=this;return"string"===typeof e?(n=e,i=new Uint8Array):(n=null,i=e),o=t.call(this,i,r)||this,o.origin=n,o.buffer=i?new Rt.Rv(i):null,o.origin&&!1!==r.autoLoad&&o.load(),i&&i.length&&(o.loaded=!0,o.onBlobLoaded(o.buffer.rawBinaryData)),o}return he(e,t),e.prototype.onBlobLoaded=function(t){},e.prototype.load=function(){return le(this,void 0,Promise,(function(){var t,e,r;return ce(this,(function(n){switch(n.label){case 0:return[4,fetch(this.origin)];case 1:return t=n.sent(),[4,t.blob()];case 2:return e=n.sent(),[4,e.arrayBuffer()];case 3:return r=n.sent(),this.data=new Uint32Array(r),this.buffer=new Rt.Rv(r),this.loaded=!0,this.onBlobLoaded(r),this.update(),[2,this]}}))}))},e}(Rt.qm),_e=function(t){function e(r,n){var i=t.call(this,r,n)||this;return i.format=n.format,i.levels=n.levels||1,i._width=n.width,i._height=n.height,i._extension=e._formatToExtension(i.format),(n.levelBuffers||i.buffer)&&(i._levelBuffers=n.levelBuffers||e._createLevelBuffers(r instanceof Uint8Array?r:i.buffer.uint8View,i.format,i.levels,4,4,i.width,i.height)),i}return he(e,t),e.prototype.upload=function(t,e,r){var n=t.gl,i=t.context.extensions[this._extension];if(!i)throw new Error(this._extension+" textures are not supported on the current machine");if(!this._levelBuffers)return!1;for(var o=0,s=this.levels;o<s;o++){var a=this._levelBuffers[o],u=a.levelID,h=a.levelWidth,l=a.levelHeight,c=a.levelBuffer;n.compressedTexImage2D(n.TEXTURE_2D,u,this.format,h,l,0,c)}return!0},e.prototype.onBlobLoaded=function(){this._levelBuffers=e._createLevelBuffers(this.buffer.uint8View,this.format,this.levels,4,4,this.width,this.height)},e._formatToExtension=function(t){if(t>=33776&&t<=33779)return"s3tc";if(t>=37488&&t<=37497)return"etc";if(t>=35840&&t<=35843)return"pvrtc";if(t>=36196)return"etc1";if(t>=35986&&t<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},e._createLevelBuffers=function(t,e,r,n,i,o,s){for(var a=new Array(r),u=t.byteOffset,h=o,l=s,c=h+n-1&~(n-1),f=l+i-1&~(i-1),d=c*f*ae[e],p=0;p<r;p++)a[p]={levelID:p,levelWidth:r>1?h:c,levelHeight:r>1?l:f,levelBuffer:new Uint8Array(t.buffer,u,d)},u+=d,h=h>>1||1,l=l>>1||1,c=h+n-1&~(n-1),f=l+i-1&~(i-1),d=c*f*ae[e];return a},e}(pe),ve=function(){function t(){}return t.use=function(e,r){var n=e.data,i=this;if(e.type===Vt.TYPE.JSON&&n&&n.cacheID&&n.textures){for(var o=n.textures,s=void 0,a=void 0,u=0,h=o.length;u<h;u++){var l=o[u],c=l.src,f=l.format;if(f||(a=c),t.textureFormats[f]){s=c;break}}if(s=s||a,!s)return void r(new Error("Cannot load compressed-textures in "+e.url+", make sure you provide a fallback"));if(s===e.url)return void r(new Error("URL of compressed texture cannot be the same as the manifest's URL"));var d={crossOrigin:e.crossOrigin,metadata:e.metadata.imageMetadata,parentResource:e},p=S.HQ.resolve(e.url.replace(i.baseUrl,""),s),_=n.cacheID;i.add(_,p,d,(function(t){if(t.error)r(t.error);else{var n=t.texture,i=void 0===n?null:n,o=t.textures,s=void 0===o?{}:o;Object.assign(e,{texture:i,textures:s}),r()}}))}else r()},t.add=function(){var e=document.createElement("canvas"),r=e.getContext("webgl");if(r){var n={s3tc:r.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:r.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:r.getExtension("WEBGL_compressed_texture_etc"),etc1:r.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:r.getExtension("WEBGL_compressed_texture_pvrtc")||r.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:r.getExtension("WEBGL_compressed_texture_atc"),astc:r.getExtension("WEBGL_compressed_texture_astc")};for(var i in t.textureExtensions=n,t.textureFormats={},n){var o=n[i];o&&Object.assign(t.textureFormats,Object.getPrototypeOf(o))}}else console.warn("WebGL not available for compressed textures. Silently failing.")},t}();function me(t,e,r){var n={textures:{},texture:null};if(!e)return n;var i=e.map((function(t){return new Rt.xE(new Rt.VL(t,Object.assign({mipmap:se.WB.OFF,alphaMode:se.iw.NO_PREMULTIPLIED_ALPHA},r)))}));return i.forEach((function(e,r){var i=e.baseTexture,o=t+"-"+(r+1);Rt.VL.addToCache(i,o),Rt.xE.addToCache(e,o),0===r&&(Rt.VL.addToCache(i,t),Rt.xE.addToCache(e,t),n.texture=e),n.textures[o]=e})),n}Vt.setExtensionXhrType("dds",Vt.XHR_RESPONSE_TYPE.BUFFER);var ye,ge,Ee=4,Te=124,be=32,xe=20,Re=542327876,Ae={SIZE:1,FLAGS:2,HEIGHT:3,WIDTH:4,MIPMAP_COUNT:7,PIXEL_FORMAT:19},Ie={SIZE:0,FLAGS:1,FOURCC:2,RGB_BITCOUNT:3,R_BIT_MASK:4,G_BIT_MASK:5,B_BIT_MASK:6,A_BIT_MASK:7},Se={DXGI_FORMAT:0,RESOURCE_DIMENSION:1,MISC_FLAG:2,ARRAY_SIZE:3,MISC_FLAGS2:4};(function(t){t[t["DXGI_FORMAT_UNKNOWN"]=0]="DXGI_FORMAT_UNKNOWN",t[t["DXGI_FORMAT_R32G32B32A32_TYPELESS"]=1]="DXGI_FORMAT_R32G32B32A32_TYPELESS",t[t["DXGI_FORMAT_R32G32B32A32_FLOAT"]=2]="DXGI_FORMAT_R32G32B32A32_FLOAT",t[t["DXGI_FORMAT_R32G32B32A32_UINT"]=3]="DXGI_FORMAT_R32G32B32A32_UINT",t[t["DXGI_FORMAT_R32G32B32A32_SINT"]=4]="DXGI_FORMAT_R32G32B32A32_SINT",t[t["DXGI_FORMAT_R32G32B32_TYPELESS"]=5]="DXGI_FORMAT_R32G32B32_TYPELESS",t[t["DXGI_FORMAT_R32G32B32_FLOAT"]=6]="DXGI_FORMAT_R32G32B32_FLOAT",t[t["DXGI_FORMAT_R32G32B32_UINT"]=7]="DXGI_FORMAT_R32G32B32_UINT",t[t["DXGI_FORMAT_R32G32B32_SINT"]=8]="DXGI_FORMAT_R32G32B32_SINT",t[t["DXGI_FORMAT_R16G16B16A16_TYPELESS"]=9]="DXGI_FORMAT_R16G16B16A16_TYPELESS",t[t["DXGI_FORMAT_R16G16B16A16_FLOAT"]=10]="DXGI_FORMAT_R16G16B16A16_FLOAT",t[t["DXGI_FORMAT_R16G16B16A16_UNORM"]=11]="DXGI_FORMAT_R16G16B16A16_UNORM",t[t["DXGI_FORMAT_R16G16B16A16_UINT"]=12]="DXGI_FORMAT_R16G16B16A16_UINT",t[t["DXGI_FORMAT_R16G16B16A16_SNORM"]=13]="DXGI_FORMAT_R16G16B16A16_SNORM",t[t["DXGI_FORMAT_R16G16B16A16_SINT"]=14]="DXGI_FORMAT_R16G16B16A16_SINT",t[t["DXGI_FORMAT_R32G32_TYPELESS"]=15]="DXGI_FORMAT_R32G32_TYPELESS",t[t["DXGI_FORMAT_R32G32_FLOAT"]=16]="DXGI_FORMAT_R32G32_FLOAT",t[t["DXGI_FORMAT_R32G32_UINT"]=17]="DXGI_FORMAT_R32G32_UINT",t[t["DXGI_FORMAT_R32G32_SINT"]=18]="DXGI_FORMAT_R32G32_SINT",t[t["DXGI_FORMAT_R32G8X24_TYPELESS"]=19]="DXGI_FORMAT_R32G8X24_TYPELESS",t[t["DXGI_FORMAT_D32_FLOAT_S8X24_UINT"]=20]="DXGI_FORMAT_D32_FLOAT_S8X24_UINT",t[t["DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS"]=21]="DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS",t[t["DXGI_FORMAT_X32_TYPELESS_G8X24_UINT"]=22]="DXGI_FORMAT_X32_TYPELESS_G8X24_UINT",t[t["DXGI_FORMAT_R10G10B10A2_TYPELESS"]=23]="DXGI_FORMAT_R10G10B10A2_TYPELESS",t[t["DXGI_FORMAT_R10G10B10A2_UNORM"]=24]="DXGI_FORMAT_R10G10B10A2_UNORM",t[t["DXGI_FORMAT_R10G10B10A2_UINT"]=25]="DXGI_FORMAT_R10G10B10A2_UINT",t[t["DXGI_FORMAT_R11G11B10_FLOAT"]=26]="DXGI_FORMAT_R11G11B10_FLOAT",t[t["DXGI_FORMAT_R8G8B8A8_TYPELESS"]=27]="DXGI_FORMAT_R8G8B8A8_TYPELESS",t[t["DXGI_FORMAT_R8G8B8A8_UNORM"]=28]="DXGI_FORMAT_R8G8B8A8_UNORM",t[t["DXGI_FORMAT_R8G8B8A8_UNORM_SRGB"]=29]="DXGI_FORMAT_R8G8B8A8_UNORM_SRGB",t[t["DXGI_FORMAT_R8G8B8A8_UINT"]=30]="DXGI_FORMAT_R8G8B8A8_UINT",t[t["DXGI_FORMAT_R8G8B8A8_SNORM"]=31]="DXGI_FORMAT_R8G8B8A8_SNORM",t[t["DXGI_FORMAT_R8G8B8A8_SINT"]=32]="DXGI_FORMAT_R8G8B8A8_SINT",t[t["DXGI_FORMAT_R16G16_TYPELESS"]=33]="DXGI_FORMAT_R16G16_TYPELESS",t[t["DXGI_FORMAT_R16G16_FLOAT"]=34]="DXGI_FORMAT_R16G16_FLOAT",t[t["DXGI_FORMAT_R16G16_UNORM"]=35]="DXGI_FORMAT_R16G16_UNORM",t[t["DXGI_FORMAT_R16G16_UINT"]=36]="DXGI_FORMAT_R16G16_UINT",t[t["DXGI_FORMAT_R16G16_SNORM"]=37]="DXGI_FORMAT_R16G16_SNORM",t[t["DXGI_FORMAT_R16G16_SINT"]=38]="DXGI_FORMAT_R16G16_SINT",t[t["DXGI_FORMAT_R32_TYPELESS"]=39]="DXGI_FORMAT_R32_TYPELESS",t[t["DXGI_FORMAT_D32_FLOAT"]=40]="DXGI_FORMAT_D32_FLOAT",t[t["DXGI_FORMAT_R32_FLOAT"]=41]="DXGI_FORMAT_R32_FLOAT",t[t["DXGI_FORMAT_R32_UINT"]=42]="DXGI_FORMAT_R32_UINT",t[t["DXGI_FORMAT_R32_SINT"]=43]="DXGI_FORMAT_R32_SINT",t[t["DXGI_FORMAT_R24G8_TYPELESS"]=44]="DXGI_FORMAT_R24G8_TYPELESS",t[t["DXGI_FORMAT_D24_UNORM_S8_UINT"]=45]="DXGI_FORMAT_D24_UNORM_S8_UINT",t[t["DXGI_FORMAT_R24_UNORM_X8_TYPELESS"]=46]="DXGI_FORMAT_R24_UNORM_X8_TYPELESS",t[t["DXGI_FORMAT_X24_TYPELESS_G8_UINT"]=47]="DXGI_FORMAT_X24_TYPELESS_G8_UINT",t[t["DXGI_FORMAT_R8G8_TYPELESS"]=48]="DXGI_FORMAT_R8G8_TYPELESS",t[t["DXGI_FORMAT_R8G8_UNORM"]=49]="DXGI_FORMAT_R8G8_UNORM",t[t["DXGI_FORMAT_R8G8_UINT"]=50]="DXGI_FORMAT_R8G8_UINT",t[t["DXGI_FORMAT_R8G8_SNORM"]=51]="DXGI_FORMAT_R8G8_SNORM",t[t["DXGI_FORMAT_R8G8_SINT"]=52]="DXGI_FORMAT_R8G8_SINT",t[t["DXGI_FORMAT_R16_TYPELESS"]=53]="DXGI_FORMAT_R16_TYPELESS",t[t["DXGI_FORMAT_R16_FLOAT"]=54]="DXGI_FORMAT_R16_FLOAT",t[t["DXGI_FORMAT_D16_UNORM"]=55]="DXGI_FORMAT_D16_UNORM",t[t["DXGI_FORMAT_R16_UNORM"]=56]="DXGI_FORMAT_R16_UNORM",t[t["DXGI_FORMAT_R16_UINT"]=57]="DXGI_FORMAT_R16_UINT",t[t["DXGI_FORMAT_R16_SNORM"]=58]="DXGI_FORMAT_R16_SNORM",t[t["DXGI_FORMAT_R16_SINT"]=59]="DXGI_FORMAT_R16_SINT",t[t["DXGI_FORMAT_R8_TYPELESS"]=60]="DXGI_FORMAT_R8_TYPELESS",t[t["DXGI_FORMAT_R8_UNORM"]=61]="DXGI_FORMAT_R8_UNORM",t[t["DXGI_FORMAT_R8_UINT"]=62]="DXGI_FORMAT_R8_UINT",t[t["DXGI_FORMAT_R8_SNORM"]=63]="DXGI_FORMAT_R8_SNORM",t[t["DXGI_FORMAT_R8_SINT"]=64]="DXGI_FORMAT_R8_SINT",t[t["DXGI_FORMAT_A8_UNORM"]=65]="DXGI_FORMAT_A8_UNORM",t[t["DXGI_FORMAT_R1_UNORM"]=66]="DXGI_FORMAT_R1_UNORM",t[t["DXGI_FORMAT_R9G9B9E5_SHAREDEXP"]=67]="DXGI_FORMAT_R9G9B9E5_SHAREDEXP",t[t["DXGI_FORMAT_R8G8_B8G8_UNORM"]=68]="DXGI_FORMAT_R8G8_B8G8_UNORM",t[t["DXGI_FORMAT_G8R8_G8B8_UNORM"]=69]="DXGI_FORMAT_G8R8_G8B8_UNORM",t[t["DXGI_FORMAT_BC1_TYPELESS"]=70]="DXGI_FORMAT_BC1_TYPELESS",t[t["DXGI_FORMAT_BC1_UNORM"]=71]="DXGI_FORMAT_BC1_UNORM",t[t["DXGI_FORMAT_BC1_UNORM_SRGB"]=72]="DXGI_FORMAT_BC1_UNORM_SRGB",t[t["DXGI_FORMAT_BC2_TYPELESS"]=73]="DXGI_FORMAT_BC2_TYPELESS",t[t["DXGI_FORMAT_BC2_UNORM"]=74]="DXGI_FORMAT_BC2_UNORM",t[t["DXGI_FORMAT_BC2_UNORM_SRGB"]=75]="DXGI_FORMAT_BC2_UNORM_SRGB",t[t["DXGI_FORMAT_BC3_TYPELESS"]=76]="DXGI_FORMAT_BC3_TYPELESS",t[t["DXGI_FORMAT_BC3_UNORM"]=77]="DXGI_FORMAT_BC3_UNORM",t[t["DXGI_FORMAT_BC3_UNORM_SRGB"]=78]="DXGI_FORMAT_BC3_UNORM_SRGB",t[t["DXGI_FORMAT_BC4_TYPELESS"]=79]="DXGI_FORMAT_BC4_TYPELESS",t[t["DXGI_FORMAT_BC4_UNORM"]=80]="DXGI_FORMAT_BC4_UNORM",t[t["DXGI_FORMAT_BC4_SNORM"]=81]="DXGI_FORMAT_BC4_SNORM",t[t["DXGI_FORMAT_BC5_TYPELESS"]=82]="DXGI_FORMAT_BC5_TYPELESS",t[t["DXGI_FORMAT_BC5_UNORM"]=83]="DXGI_FORMAT_BC5_UNORM",t[t["DXGI_FORMAT_BC5_SNORM"]=84]="DXGI_FORMAT_BC5_SNORM",t[t["DXGI_FORMAT_B5G6R5_UNORM"]=85]="DXGI_FORMAT_B5G6R5_UNORM",t[t["DXGI_FORMAT_B5G5R5A1_UNORM"]=86]="DXGI_FORMAT_B5G5R5A1_UNORM",t[t["DXGI_FORMAT_B8G8R8A8_UNORM"]=87]="DXGI_FORMAT_B8G8R8A8_UNORM",t[t["DXGI_FORMAT_B8G8R8X8_UNORM"]=88]="DXGI_FORMAT_B8G8R8X8_UNORM",t[t["DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM"]=89]="DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM",t[t["DXGI_FORMAT_B8G8R8A8_TYPELESS"]=90]="DXGI_FORMAT_B8G8R8A8_TYPELESS",t[t["DXGI_FORMAT_B8G8R8A8_UNORM_SRGB"]=91]="DXGI_FORMAT_B8G8R8A8_UNORM_SRGB",t[t["DXGI_FORMAT_B8G8R8X8_TYPELESS"]=92]="DXGI_FORMAT_B8G8R8X8_TYPELESS",t[t["DXGI_FORMAT_B8G8R8X8_UNORM_SRGB"]=93]="DXGI_FORMAT_B8G8R8X8_UNORM_SRGB",t[t["DXGI_FORMAT_BC6H_TYPELESS"]=94]="DXGI_FORMAT_BC6H_TYPELESS",t[t["DXGI_FORMAT_BC6H_UF16"]=95]="DXGI_FORMAT_BC6H_UF16",t[t["DXGI_FORMAT_BC6H_SF16"]=96]="DXGI_FORMAT_BC6H_SF16",t[t["DXGI_FORMAT_BC7_TYPELESS"]=97]="DXGI_FORMAT_BC7_TYPELESS",t[t["DXGI_FORMAT_BC7_UNORM"]=98]="DXGI_FORMAT_BC7_UNORM",t[t["DXGI_FORMAT_BC7_UNORM_SRGB"]=99]="DXGI_FORMAT_BC7_UNORM_SRGB",t[t["DXGI_FORMAT_AYUV"]=100]="DXGI_FORMAT_AYUV",t[t["DXGI_FORMAT_Y410"]=101]="DXGI_FORMAT_Y410",t[t["DXGI_FORMAT_Y416"]=102]="DXGI_FORMAT_Y416",t[t["DXGI_FORMAT_NV12"]=103]="DXGI_FORMAT_NV12",t[t["DXGI_FORMAT_P010"]=104]="DXGI_FORMAT_P010",t[t["DXGI_FORMAT_P016"]=105]="DXGI_FORMAT_P016",t[t["DXGI_FORMAT_420_OPAQUE"]=106]="DXGI_FORMAT_420_OPAQUE",t[t["DXGI_FORMAT_YUY2"]=107]="DXGI_FORMAT_YUY2",t[t["DXGI_FORMAT_Y210"]=108]="DXGI_FORMAT_Y210",t[t["DXGI_FORMAT_Y216"]=109]="DXGI_FORMAT_Y216",t[t["DXGI_FORMAT_NV11"]=110]="DXGI_FORMAT_NV11",t[t["DXGI_FORMAT_AI44"]=111]="DXGI_FORMAT_AI44",t[t["DXGI_FORMAT_IA44"]=112]="DXGI_FORMAT_IA44",t[t["DXGI_FORMAT_P8"]=113]="DXGI_FORMAT_P8",t[t["DXGI_FORMAT_A8P8"]=114]="DXGI_FORMAT_A8P8",t[t["DXGI_FORMAT_B4G4R4A4_UNORM"]=115]="DXGI_FORMAT_B4G4R4A4_UNORM",t[t["DXGI_FORMAT_P208"]=116]="DXGI_FORMAT_P208",t[t["DXGI_FORMAT_V208"]=117]="DXGI_FORMAT_V208",t[t["DXGI_FORMAT_V408"]=118]="DXGI_FORMAT_V408",t[t["DXGI_FORMAT_SAMPLER_FEEDBACK_MIN_MIP_OPAQUE"]=119]="DXGI_FORMAT_SAMPLER_FEEDBACK_MIN_MIP_OPAQUE",t[t["DXGI_FORMAT_SAMPLER_FEEDBACK_MIP_REGION_USED_OPAQUE"]=120]="DXGI_FORMAT_SAMPLER_FEEDBACK_MIP_REGION_USED_OPAQUE",t[t["DXGI_FORMAT_FORCE_UINT"]=121]="DXGI_FORMAT_FORCE_UINT"})(ye||(ye={})),function(t){t[t["DDS_DIMENSION_TEXTURE1D"]=2]="DDS_DIMENSION_TEXTURE1D",t[t["DDS_DIMENSION_TEXTURE2D"]=3]="DDS_DIMENSION_TEXTURE2D",t[t["DDS_DIMENSION_TEXTURE3D"]=6]="DDS_DIMENSION_TEXTURE3D"}(ge||(ge={}));var Oe,Pe,Ne,Me=1,we=2,De=4,Ce=64,Le=512,Fe=131072,Ue=827611204,Ge=861165636,Be=894720068,Xe=808540228,ke=4,He=(fe={},fe[Ue]=oe.COMPRESSED_RGBA_S3TC_DXT1_EXT,fe[Ge]=oe.COMPRESSED_RGBA_S3TC_DXT3_EXT,fe[Be]=oe.COMPRESSED_RGBA_S3TC_DXT5_EXT,fe),je=(de={},de[ye.DXGI_FORMAT_BC1_TYPELESS]=oe.COMPRESSED_RGBA_S3TC_DXT1_EXT,de[ye.DXGI_FORMAT_BC1_UNORM]=oe.COMPRESSED_RGBA_S3TC_DXT1_EXT,de[ye.DXGI_FORMAT_BC2_TYPELESS]=oe.COMPRESSED_RGBA_S3TC_DXT3_EXT,de[ye.DXGI_FORMAT_BC2_UNORM]=oe.COMPRESSED_RGBA_S3TC_DXT3_EXT,de[ye.DXGI_FORMAT_BC3_TYPELESS]=oe.COMPRESSED_RGBA_S3TC_DXT5_EXT,de[ye.DXGI_FORMAT_BC3_UNORM]=oe.COMPRESSED_RGBA_S3TC_DXT5_EXT,de[ye.DXGI_FORMAT_BC1_UNORM_SRGB]=oe.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT,de[ye.DXGI_FORMAT_BC2_UNORM_SRGB]=oe.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT,de[ye.DXGI_FORMAT_BC3_UNORM_SRGB]=oe.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT,de),Ve=function(){function t(){}return t.use=function(e,r){if("dds"===e.extension&&e.data)try{Object.assign(e,me(e.name||e.url,t.parse(e.data),e.metadata))}catch(n){return void r(n)}r()},t.parse=function(t){var e=new Uint32Array(t),r=e[0];if(r!==Re)throw new Error("Invalid DDS file magic word");var n=new Uint32Array(t,0,Te/Uint32Array.BYTES_PER_ELEMENT),i=n[Ae.HEIGHT],o=n[Ae.WIDTH],s=n[Ae.MIPMAP_COUNT],a=new Uint32Array(t,Ae.PIXEL_FORMAT*Uint32Array.BYTES_PER_ELEMENT,be/Uint32Array.BYTES_PER_ELEMENT),u=a[Me];if(u&De){var h=a[Ie.FOURCC];if(h!==Xe){var l=He[h],c=Ee+Te,f=new Uint8Array(t,c),d=new _e(f,{format:l,width:o,height:i,levels:s});return[d]}var p=Ee+Te,_=new Uint32Array(e.buffer,p,xe/Uint32Array.BYTES_PER_ELEMENT),v=_[Se.DXGI_FORMAT],m=_[Se.RESOURCE_DIMENSION],y=_[Se.MISC_FLAG],g=_[Se.ARRAY_SIZE],E=je[v];if(void 0===E)throw new Error("DDSLoader cannot parse texture data with DXGI format "+v);if(y===ke)throw new Error("DDSLoader does not support cubemap textures");if(m===ge.DDS_DIMENSION_TEXTURE3D)throw new Error("DDSLoader does not supported 3D texture data");var T=new Array,b=Ee+Te+xe;if(1===g)T.push(new Uint8Array(t,b));else{for(var x=ae[E],R=0,A=o,I=i,S=0;S<s;S++){var O=Math.max(1,A+3&-4),P=Math.max(1,I+3&-4),N=O*P*x;R+=N,A>>>=1,I>>>=1}var M=b;for(S=0;S<g;S++)T.push(new Uint8Array(t,M,R)),M+=R}return T.map((function(t){return new _e(t,{format:E,width:o,height:i,levels:s})}))}if(u&Ce)throw new Error("DDSLoader does not support uncompressed texture data.");if(u&Le)throw new Error("DDSLoader does not supported YUV uncompressed texture data.");if(u&Fe)throw new Error("DDSLoader does not support single-channel (lumninance) texture data!");if(u&we)throw new Error("DDSLoader does not support single-channel (alpha) texture data!");throw new Error("DDSLoader failed to load a texture file due to an unknown reason!")},t}();Vt.setExtensionXhrType("ktx",Vt.XHR_RESPONSE_TYPE.BUFFER);var Ye=[171,75,84,88,32,49,49,187,13,10,26,10],We=67305985,ze={FILE_IDENTIFIER:0,ENDIANNESS:12,GL_TYPE:16,GL_TYPE_SIZE:20,GL_FORMAT:24,GL_INTERNAL_FORMAT:28,GL_BASE_INTERNAL_FORMAT:32,PIXEL_WIDTH:36,PIXEL_HEIGHT:40,PIXEL_DEPTH:44,NUMBER_OF_ARRAY_ELEMENTS:48,NUMBER_OF_FACES:52,NUMBER_OF_MIPMAP_LEVELS:56,BYTES_OF_KEY_VALUE_DATA:60},qe=64,Ke=(Oe={},Oe[se.vK.UNSIGNED_BYTE]=1,Oe[se.vK.UNSIGNED_SHORT]=2,Oe[se.vK.INT]=4,Oe[se.vK.UNSIGNED_INT]=4,Oe[se.vK.FLOAT]=4,Oe[se.vK.HALF_FLOAT]=8,Oe),$e=(Pe={},Pe[se.I2.RGBA]=4,Pe[se.I2.RGB]=3,Pe[se.I2.RG]=2,Pe[se.I2.RED]=1,Pe[se.I2.LUMINANCE]=1,Pe[se.I2.LUMINANCE_ALPHA]=2,Pe[se.I2.ALPHA]=1,Pe),Ze=(Ne={},Ne[se.vK.UNSIGNED_SHORT_4_4_4_4]=2,Ne[se.vK.UNSIGNED_SHORT_5_5_5_1]=2,Ne[se.vK.UNSIGNED_SHORT_5_6_5]=2,Ne),Je=function(){function t(){}return t.use=function(e,r){if("ktx"===e.extension&&e.data)try{var n=e.name||e.url,i=t.parse(n,e.data),o=i.compressed,s=i.uncompressed;if(o)Object.assign(e,me(n,o,e.metadata));else if(s){var a={};s.forEach((function(t,e){var r=new Rt.xE(new Rt.VL(t.resource,{mipmap:se.WB.OFF,alphaMode:se.iw.NO_PREMULTIPLIED_ALPHA,type:t.type,format:t.format})),i=n+"-"+(e+1);Rt.VL.addToCache(r.baseTexture,i),Rt.xE.addToCache(r,i),0===e&&(a[n]=r,Rt.VL.addToCache(r.baseTexture,n),Rt.xE.addToCache(r,n)),a[i]=r})),Object.assign(e,{textures:a})}}catch(u){return void r(u)}r()},t.parse=function(e,r){var n=new DataView(r);if(!t.validate(e,n))return null;var i=n.getUint32(ze.ENDIANNESS,!0)===We,o=n.getUint32(ze.GL_TYPE,i),s=n.getUint32(ze.GL_FORMAT,i),a=n.getUint32(ze.GL_INTERNAL_FORMAT,i),u=n.getUint32(ze.PIXEL_WIDTH,i),h=n.getUint32(ze.PIXEL_HEIGHT,i)||1,l=n.getUint32(ze.PIXEL_DEPTH,i)||1,c=n.getUint32(ze.NUMBER_OF_ARRAY_ELEMENTS,i)||1,f=n.getUint32(ze.NUMBER_OF_FACES,i),d=n.getUint32(ze.NUMBER_OF_MIPMAP_LEVELS,i),p=n.getUint32(ze.BYTES_OF_KEY_VALUE_DATA,i);if(0===h||1!==l)throw new Error("Only 2D textures are supported");if(1!==f)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(1!==c)throw new Error("WebGL does not support array textures");var _,v=4,m=4,y=u+3&-4,g=h+3&-4,E=new Array(c),T=u*h;if(0===o&&(T=y*g),_=0!==o?Ke[o]?Ke[o]*$e[s]:Ze[o]:ae[a],void 0===_)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");for(var b=T*_,x=b,R=u,A=h,I=y,S=g,O=qe+p,P=0;P<d;P++){for(var N=n.getUint32(O,i),M=O+4,w=0;w<c;w++){var D=E[w];D||(D=E[w]=new Array(d)),D[P]={levelID:P,levelWidth:d>1||0!==o?R:I,levelHeight:d>1||0!==o?A:S,levelBuffer:new Uint8Array(r,M,x)},M+=x}O+=N+4,O=O%4!==0?O+4-O%4:O,R=R>>1||1,A=A>>1||1,I=R+v-1&~(v-1),S=A+m-1&~(m-1),x=I*S*_}return 0!==o?{uncompressed:E.map((function(e){var r=e[0].levelBuffer,n=!1;return o===se.vK.FLOAT?r=new Float32Array(e[0].levelBuffer.buffer,e[0].levelBuffer.byteOffset,e[0].levelBuffer.byteLength/4):o===se.vK.UNSIGNED_INT?(n=!0,r=new Uint32Array(e[0].levelBuffer.buffer,e[0].levelBuffer.byteOffset,e[0].levelBuffer.byteLength/4)):o===se.vK.INT&&(n=!0,r=new Int32Array(e[0].levelBuffer.buffer,e[0].levelBuffer.byteOffset,e[0].levelBuffer.byteLength/4)),{resource:new Rt.qm(r,{width:e[0].levelWidth,height:e[0].levelHeight}),type:o,format:n?t.convertFormatToInteger(s):s}}))}:{compressed:E.map((function(t){return new _e(null,{format:a,width:u,height:h,levels:d,levelBuffers:t})}))}},t.validate=function(t,e){for(var r=0;r<Ye.length;r++)if(e.getUint8(r)!==Ye[r])return console.error(t+" is not a valid *.ktx file!"),!1;return!0},t.convertFormatToInteger=function(t){switch(t){case se.I2.RGBA:return se.I2.RGBA_INTEGER;case se.I2.RGB:return se.I2.RGB_INTEGER;case se.I2.RG:return se.I2.RG_INTEGER;case se.I2.RED:return se.I2.RED_INTEGER;default:return t}},t}(),Qe=function(t,e){return Qe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Qe(t,e)};function tr(t,e){function r(){this.constructor=t}Qe(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(function(t){function e(e,r,n,i){void 0===e&&(e=1500),void 0===n&&(n=16384),void 0===i&&(i=!1);var o=t.call(this)||this,s=16384;return n>s&&(n=s),o._properties=[!1,!0,!1,!1,!1],o._maxSize=e,o._batchSize=n,o._buffers=null,o._bufferUpdateIDs=[],o._updateID=0,o.interactiveChildren=!1,o.blendMode=se.T$.NORMAL,o.autoResize=i,o.roundPixels=!0,o.baseTexture=null,o.setProperties(r),o._tint=0,o.tintRgb=new Float32Array(4),o.tint=16777215,o}tr(e,t),e.prototype.setProperties=function(t){t&&(this._properties[0]="vertices"in t||"scale"in t?!!t.vertices||!!t.scale:this._properties[0],this._properties[1]="position"in t?!!t.position:this._properties[1],this._properties[2]="rotation"in t?!!t.rotation:this._properties[2],this._properties[3]="uvs"in t?!!t.uvs:this._properties[3],this._properties[4]="tint"in t||"alpha"in t?!!t.tint||!!t.alpha:this._properties[4])},e.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(e.prototype,"tint",{get:function(){return this._tint},set:function(t){this._tint=t,(0,S.wK)(t,this.tintRgb)},enumerable:!1,configurable:!0}),e.prototype.render=function(t){var e=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 e.onChildrenChange(0)}))),t.batch.setObjectRenderer(t.plugins.particle),t.plugins.particle.render(this))},e.prototype.onChildrenChange=function(t){var e=Math.floor(t/this._batchSize);while(this._bufferUpdateIDs.length<e)this._bufferUpdateIDs.push(0);this._bufferUpdateIDs[e]=++this._updateID},e.prototype.dispose=function(){if(this._buffers){for(var t=0;t<this._buffers.length;++t)this._buffers[t].destroy();this._buffers=null}},e.prototype.destroy=function(e){t.prototype.destroy.call(this,e),this.dispose(),this._properties=null,this._buffers=null,this._bufferUpdateIDs=null}})(et);var er,rr,nr=function(){function t(t,e,r){this.geometry=new Rt.ZX,this.indexBuffer=null,this.size=r,this.dynamicProperties=[],this.staticProperties=[];for(var n=0;n<t.length;++n){var i=t[n];i={attributeName:i.attributeName,size:i.size,uploadFunction:i.uploadFunction,type:i.type||se.vK.FLOAT,offset:i.offset},e[n]?this.dynamicProperties.push(i):this.staticProperties.push(i)}this.staticStride=0,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.dynamicStride=0,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this._updateID=0,this.initBuffers()}return t.prototype.initBuffers=function(){var t=this.geometry,e=0;this.indexBuffer=new Rt.lW((0,S.fl)(this.size),!0,!0),t.addIndex(this.indexBuffer),this.dynamicStride=0;for(var r=0;r<this.dynamicProperties.length;++r){var n=this.dynamicProperties[r];n.offset=e,e+=n.size,this.dynamicStride+=n.size}var i=new ArrayBuffer(this.size*this.dynamicStride*4*4);this.dynamicData=new Float32Array(i),this.dynamicDataUint32=new Uint32Array(i),this.dynamicBuffer=new Rt.lW(this.dynamicData,!1,!1);var o=0;this.staticStride=0;for(r=0;r<this.staticProperties.length;++r){n=this.staticProperties[r];n.offset=o,o+=n.size,this.staticStride+=n.size}var s=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(s),this.staticDataUint32=new Uint32Array(s),this.staticBuffer=new Rt.lW(this.staticData,!0,!1);for(r=0;r<this.dynamicProperties.length;++r){n=this.dynamicProperties[r];t.addAttribute(n.attributeName,this.dynamicBuffer,0,n.type===se.vK.UNSIGNED_BYTE,n.type,4*this.dynamicStride,4*n.offset)}for(r=0;r<this.staticProperties.length;++r){n=this.staticProperties[r];t.addAttribute(n.attributeName,this.staticBuffer,0,n.type===se.vK.UNSIGNED_BYTE,n.type,4*this.staticStride,4*n.offset)}},t.prototype.uploadDynamic=function(t,e,r){for(var n=0;n<this.dynamicProperties.length;n++){var i=this.dynamicProperties[n];i.uploadFunction(t,e,r,i.type===se.vK.UNSIGNED_BYTE?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,i.offset)}this.dynamicBuffer._updateID++},t.prototype.uploadStatic=function(t,e,r){for(var n=0;n<this.staticProperties.length;n++){var i=this.staticProperties[n];i.uploadFunction(t,e,r,i.type===se.vK.UNSIGNED_BYTE?this.staticDataUint32:this.staticData,this.staticStride,i.offset)}this.staticBuffer._updateID++},t.prototype.destroy=function(){this.indexBuffer=null,this.dynamicProperties=null,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this.staticProperties=null,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.geometry.destroy()},t}(),ir="varying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n vec4 color = texture2D(uSampler, vTextureCoord) * vColor;\n gl_FragColor = color;\n}",or="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nattribute vec2 aPositionCoord;\nattribute float aRotation;\n\nuniform mat3 translationMatrix;\nuniform vec4 uColor;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nvoid main(void){\n float x = (aVertexPosition.x) * cos(aRotation) - (aVertexPosition.y) * sin(aRotation);\n float y = (aVertexPosition.x) * sin(aRotation) + (aVertexPosition.y) * cos(aRotation);\n\n vec2 v = vec2(x, y);\n v = v + aPositionCoord;\n\n gl_Position = vec4((translationMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vColor = aColor * uColor;\n}\n",sr=function(t){function e(e){var r=t.call(this,e)||this;return r.shader=null,r.properties=null,r.tempMatrix=new P.y3,r.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:r.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:r.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:r.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:r.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:se.vK.UNSIGNED_BYTE,uploadFunction:r.uploadTint,offset:0}],r.shader=Rt.ex.from(or,ir,{}),r.state=Rt.ZM.for2d(),r}return tr(e,t),e.prototype.render=function(t){var e=t.children,r=t._maxSize,n=t._batchSize,i=this.renderer,o=e.length;if(0!==o){o>r&&!t.autoResize&&(o=r);var s=t._buffers;s||(s=t._buffers=this.generateBuffers(t));var a=e[0]._texture.baseTexture;this.state.blendMode=(0,S.D)(t.blendMode,a.alphaMode),i.state.set(this.state);var u=i.gl,h=t.worldTransform.copyTo(this.tempMatrix);h.prepend(i.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=h.toArray(!0),this.shader.uniforms.uColor=(0,S.Qt)(t.tintRgb,t.worldAlpha,this.shader.uniforms.uColor,a.alphaMode),this.shader.uniforms.uSampler=a,this.renderer.shader.bind(this.shader);for(var l=!1,c=0,f=0;c<o;c+=n,f+=1){var d=o-c;d>n&&(d=n),f>=s.length&&s.push(this._generateOneMoreBuffer(t));var p=s[f];p.uploadDynamic(e,c,d);var _=t._bufferUpdateIDs[f]||0;l=l||p._updateID<_,l&&(p._updateID=t._updateID,p.uploadStatic(e,c,d)),i.geometry.bind(p.geometry),u.drawElements(u.TRIANGLES,6*d,u.UNSIGNED_SHORT,0)}}},e.prototype.generateBuffers=function(t){for(var e=[],r=t._maxSize,n=t._batchSize,i=t._properties,o=0;o<r;o+=n)e.push(new nr(this.properties,i,n));return e},e.prototype._generateOneMoreBuffer=function(t){var e=t._batchSize,r=t._properties;return new nr(this.properties,r,e)},e.prototype.uploadVertices=function(t,e,r,n,i,o){for(var s=0,a=0,u=0,h=0,l=0;l<r;++l){var c=t[e+l],f=c._texture,d=c.scale.x,p=c.scale.y,_=f.trim,v=f.orig;_?(a=_.x-c.anchor.x*v.width,s=a+_.width,h=_.y-c.anchor.y*v.height,u=h+_.height):(s=v.width*(1-c.anchor.x),a=v.width*-c.anchor.x,u=v.height*(1-c.anchor.y),h=v.height*-c.anchor.y),n[o]=a*d,n[o+1]=h*p,n[o+i]=s*d,n[o+i+1]=h*p,n[o+2*i]=s*d,n[o+2*i+1]=u*p,n[o+3*i]=a*d,n[o+3*i+1]=u*p,o+=4*i}},e.prototype.uploadPosition=function(t,e,r,n,i,o){for(var s=0;s<r;s++){var a=t[e+s].position;n[o]=a.x,n[o+1]=a.y,n[o+i]=a.x,n[o+i+1]=a.y,n[o+2*i]=a.x,n[o+2*i+1]=a.y,n[o+3*i]=a.x,n[o+3*i+1]=a.y,o+=4*i}},e.prototype.uploadRotation=function(t,e,r,n,i,o){for(var s=0;s<r;s++){var a=t[e+s].rotation;n[o]=a,n[o+i]=a,n[o+2*i]=a,n[o+3*i]=a,o+=4*i}},e.prototype.uploadUvs=function(t,e,r,n,i,o){for(var s=0;s<r;++s){var a=t[e+s]._texture._uvs;a?(n[o]=a.x0,n[o+1]=a.y0,n[o+i]=a.x1,n[o+i+1]=a.y1,n[o+2*i]=a.x2,n[o+2*i+1]=a.y2,n[o+3*i]=a.x3,n[o+3*i+1]=a.y3,o+=4*i):(n[o]=0,n[o+1]=0,n[o+i]=0,n[o+i+1]=0,n[o+2*i]=0,n[o+2*i+1]=0,n[o+3*i]=0,n[o+3*i+1]=0,o+=4*i)}},e.prototype.uploadTint=function(t,e,r,n,i,o){for(var s=0;s<r;++s){var a=t[e+s],u=a._texture.baseTexture.alphaMode>0,h=a.alpha,l=h<1&&u?(0,S.rA)(a._tintRGB,h):a._tintRGB+(255*h<<24);n[o]=l,n[o+i]=l,n[o+2*i]=l,n[o+3*i]=l,o+=4*i}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},e}(Rt.bO);(function(t){t["MITER"]="miter",t["BEVEL"]="bevel",t["ROUND"]="round"})(er||(er={})),function(t){t["BUTT"]="butt",t["ROUND"]="round",t["SQUARE"]="square"}(rr||(rr={}));var ar={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(t,e){if(void 0===e&&(e=20),!this.adaptive||!t||isNaN(t))return e;var r=Math.ceil(t/this.maxLength);return r<this.minSegments?r=this.minSegments:r>this.maxSegments&&(r=this.maxSegments),r}},ur=function(){function t(){this.color=16777215,this.alpha=1,this.texture=Rt.xE.WHITE,this.matrix=null,this.visible=!1,this.reset()}return t.prototype.clone=function(){var e=new t;return e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.matrix=this.matrix,e.visible=this.visible,e},t.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=Rt.xE.WHITE,this.matrix=null,this.visible=!1},t.prototype.destroy=function(){this.texture=null,this.matrix=null},t}(),hr=function(t,e){return hr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},hr(t,e)};function lr(t,e){function r(){this.constructor=t}hr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function cr(t,e){var r,n;void 0===e&&(e=!1);var i=t.length;if(!(i<6)){for(var o=0,s=0,a=t[i-2],u=t[i-1];s<i;s+=2){var h=t[s],l=t[s+1];o+=(h-a)*(l+u),a=h,u=l}if(!e&&o>0||e&&o<=0){var c=i/2;for(s=c+c%2;s<i;s+=2){var f=i-s-2,d=i-s-1,p=s,_=s+1;r=[t[p],t[f]],t[f]=r[0],t[p]=r[1],n=[t[_],t[d]],t[d]=n[0],t[_]=n[1]}}}}var fr={build:function(t){t.points=t.shape.points.slice()},triangulate:function(t,e){var r=t.points,n=t.holes,i=e.points,o=e.indices;if(r.length>=6){cr(r,!1);for(var s=[],a=0;a<n.length;a++){var u=n[a];cr(u.points,!0),s.push(r.length/2),r=r.concat(u.points)}var h=(0,S.OT)(r,s,2);if(!h)return;var l=i.length/2;for(a=0;a<h.length;a+=3)o.push(h[a]+l),o.push(h[a+1]+l),o.push(h[a+2]+l);for(a=0;a<r.length;a++)i.push(r[a])}}},dr={build:function(t){var e,r,n,i,o,s,a=t.points;if(t.type===P.HS.CIRC){var u=t.shape;e=u.x,r=u.y,o=s=u.radius,n=i=0}else if(t.type===P.HS.ELIP){var h=t.shape;e=h.x,r=h.y,o=h.width,s=h.height,n=i=0}else{var l=t.shape,c=l.width/2,f=l.height/2;e=l.x+c,r=l.y+f,o=s=Math.max(0,Math.min(l.radius,Math.min(c,f))),n=c-o,i=f-s}var d=Math.ceil(2.3*Math.sqrt(o+s)),p=8*d+(n?4:0)+(i?4:0);if(a.length=p,0!==p){if(0===d)return a.length=8,a[0]=a[6]=e+n,a[1]=a[3]=r+i,a[2]=a[4]=e-n,void(a[5]=a[7]=r-i);var _=0,v=4*d+(n?2:0)+2,m=v,y=p,g=n+o,E=i,T=e+g,b=e-g,x=r+E;if(a[_++]=T,a[_++]=x,a[--v]=x,a[--v]=b,i){var R=r-E;a[m++]=b,a[m++]=R,a[--y]=R,a[--y]=T}for(var A=1;A<d;A++){var I=Math.PI/2*(A/d);g=n+Math.cos(I)*o,E=i+Math.sin(I)*s,T=e+g,b=e-g,x=r+E,R=r-E;a[_++]=T,a[_++]=x,a[--v]=x,a[--v]=b,a[m++]=b,a[m++]=R,a[--y]=R,a[--y]=T}g=n,E=i+s,T=e+g,b=e-g,x=r+E,R=r-E;a[_++]=T,a[_++]=x,a[--y]=R,a[--y]=T,n&&(a[_++]=b,a[_++]=x,a[--y]=R,a[--y]=b)}},triangulate:function(t,e){var r,n,i=t.points,o=e.points,s=e.indices,a=o.length/2,u=a;if(t.type!==P.HS.RREC){var h=t.shape;r=h.x,n=h.y}else{var l=t.shape;r=l.x+l.width/2,n=l.y+l.height/2}var c=t.matrix;o.push(t.matrix?c.a*r+c.c*n+c.tx:r,t.matrix?c.b*r+c.d*n+c.ty:n),a++,o.push(i[0],i[1]);for(var f=2;f<i.length;f+=2)o.push(i[f],i[f+1]),s.push(a++,u,a);s.push(u+1,u,a)}},pr={build:function(t){var e=t.shape,r=e.x,n=e.y,i=e.width,o=e.height,s=t.points;s.length=0,s.push(r,n,r+i,n,r+i,n+o,r,n+o)},triangulate:function(t,e){var r=t.points,n=e.points,i=n.length/2;n.push(r[0],r[1],r[2],r[3],r[6],r[7],r[4],r[5]),e.indices.push(i,i+1,i+2,i+1,i+2,i+3)}};function _r(t,e,r){var n=e-t;return t+n*r}function vr(t,e,r,n,i,o,s){void 0===s&&(s=[]);for(var a=20,u=s,h=0,l=0,c=0,f=0,d=0,p=0,_=0,v=0;_<=a;++_)v=_/a,h=_r(t,r,v),l=_r(e,n,v),c=_r(r,i,v),f=_r(n,o,v),d=_r(h,c,v),p=_r(l,f,v),0===_&&u[u.length-2]===d&&u[u.length-1]===p||u.push(d,p);return u}var mr={build:function(t){if(Gr.nextRoundedRectBehavior)dr.build(t);else{var e=t.shape,r=t.points,n=e.x,i=e.y,o=e.width,s=e.height,a=Math.max(0,Math.min(e.radius,Math.min(o,s)/2));r.length=0,a?(vr(n,i+a,n,i,n+a,i,r),vr(n+o-a,i,n+o,i,n+o,i+a,r),vr(n+o,i+s-a,n+o,i+s,n+o-a,i+s,r),vr(n+a,i+s,n,i+s,n,i+s-a,r)):r.push(n,i,n+o,i,n+o,i+s,n,i+s)}},triangulate:function(t,e){if(Gr.nextRoundedRectBehavior)dr.triangulate(t,e);else{for(var r=t.points,n=e.points,i=e.indices,o=n.length/2,s=(0,S.OT)(r,null,2),a=0,u=s.length;a<u;a+=3)i.push(s[a]+o),i.push(s[a+1]+o),i.push(s[a+2]+o);for(a=0,u=r.length;a<u;a++)n.push(r[a],r[++a])}}};function yr(t,e,r,n,i,o,s,a){var u,h,l=t-r*i,c=e-n*i,f=t+r*o,d=e+n*o;s?(u=n,h=-r):(u=-n,h=r);var p=l+u,_=c+h,v=f+u,m=d+h;return a.push(p,_),a.push(v,m),2}function gr(t,e,r,n,i,o,s,a){var u=r-t,h=n-e,l=Math.atan2(u,h),c=Math.atan2(i-t,o-e);a&&l<c?l+=2*Math.PI:!a&&l>c&&(c+=2*Math.PI);var f=l,d=c-l,p=Math.abs(d),_=Math.sqrt(u*u+h*h),v=1+(15*p*Math.sqrt(_)/Math.PI>>0),m=d/v;if(f+=m,a){s.push(t,e),s.push(r,n);for(var y=1,g=f;y<v;y++,g+=m)s.push(t,e),s.push(t+Math.sin(g)*_,e+Math.cos(g)*_);s.push(t,e),s.push(i,o)}else{s.push(r,n),s.push(t,e);for(y=1,g=f;y<v;y++,g+=m)s.push(t+Math.sin(g)*_,e+Math.cos(g)*_),s.push(t,e);s.push(i,o),s.push(t,e)}return 2*v}function Er(t,e){var r=t.shape,n=t.points||r.points.slice(),i=e.closePointEps;if(0!==n.length){var o=t.lineStyle,s=new P.E9(n[0],n[1]),a=new P.E9(n[n.length-2],n[n.length-1]),u=r.type!==P.HS.POLY||r.closeStroke,h=Math.abs(s.x-a.x)<i&&Math.abs(s.y-a.y)<i;if(u){n=n.slice(),h&&(n.pop(),n.pop(),a.set(n[n.length-2],n[n.length-1]));var l=.5*(s.x+a.x),c=.5*(a.y+s.y);n.unshift(l,c),n.push(l,c)}var f=e.points,d=n.length/2,p=n.length,_=f.length/2,v=o.width/2,m=v*v,y=o.miterLimit*o.miterLimit,g=n[0],E=n[1],T=n[2],b=n[3],x=0,R=0,A=-(E-b),I=g-T,S=0,O=0,N=Math.sqrt(A*A+I*I);A/=N,I/=N,A*=v,I*=v;var M=o.alignment,w=2*(1-M),D=2*M;u||(o.cap===rr.ROUND?p+=gr(g-A*(w-D)*.5,E-I*(w-D)*.5,g-A*w,E-I*w,g+A*D,E+I*D,f,!0)+2:o.cap===rr.SQUARE&&(p+=yr(g,E,A,I,w,D,!0,f))),f.push(g-A*w,E-I*w),f.push(g+A*D,E+I*D);for(var C=1;C<d-1;++C){g=n[2*(C-1)],E=n[2*(C-1)+1],T=n[2*C],b=n[2*C+1],x=n[2*(C+1)],R=n[2*(C+1)+1],A=-(E-b),I=g-T,N=Math.sqrt(A*A+I*I),A/=N,I/=N,A*=v,I*=v,S=-(b-R),O=T-x,N=Math.sqrt(S*S+O*O),S/=N,O/=N,S*=v,O*=v;var L=T-g,F=E-b,U=T-x,G=R-b,B=F*U-G*L,X=B<0;if(Math.abs(B)<.1)f.push(T-A*w,b-I*w),f.push(T+A*D,b+I*D);else{var k=(-A+g)*(-I+b)-(-A+T)*(-I+E),H=(-S+x)*(-O+b)-(-S+T)*(-O+R),j=(L*H-U*k)/B,V=(G*k-F*H)/B,Y=(j-T)*(j-T)+(V-b)*(V-b),W=T+(j-T)*w,z=b+(V-b)*w,q=T-(j-T)*D,K=b-(V-b)*D,$=Math.min(L*L+F*F,U*U+G*G),Z=X?w:D,J=$+Z*Z*m,Q=Y<=J;Q?o.join===er.BEVEL||Y/m>y?(X?(f.push(W,z),f.push(T+A*D,b+I*D),f.push(W,z),f.push(T+S*D,b+O*D)):(f.push(T-A*w,b-I*w),f.push(q,K),f.push(T-S*w,b-O*w),f.push(q,K)),p+=2):o.join===er.ROUND?X?(f.push(W,z),f.push(T+A*D,b+I*D),p+=gr(T,b,T+A*D,b+I*D,T+S*D,b+O*D,f,!0)+4,f.push(W,z),f.push(T+S*D,b+O*D)):(f.push(T-A*w,b-I*w),f.push(q,K),p+=gr(T,b,T-A*w,b-I*w,T-S*w,b-O*w,f,!1)+4,f.push(T-S*w,b-O*w),f.push(q,K)):(f.push(W,z),f.push(q,K)):(f.push(T-A*w,b-I*w),f.push(T+A*D,b+I*D),o.join===er.BEVEL||Y/m>y||(o.join===er.ROUND?p+=X?gr(T,b,T+A*D,b+I*D,T+S*D,b+O*D,f,!0)+2:gr(T,b,T-A*w,b-I*w,T-S*w,b-O*w,f,!1)+2:(X?(f.push(q,K),f.push(q,K)):(f.push(W,z),f.push(W,z)),p+=2)),f.push(T-S*w,b-O*w),f.push(T+S*D,b+O*D),p+=2)}}g=n[2*(d-2)],E=n[2*(d-2)+1],T=n[2*(d-1)],b=n[2*(d-1)+1],A=-(E-b),I=g-T,N=Math.sqrt(A*A+I*I),A/=N,I/=N,A*=v,I*=v,f.push(T-A*w,b-I*w),f.push(T+A*D,b+I*D),u||(o.cap===rr.ROUND?p+=gr(T-A*(w-D)*.5,b-I*(w-D)*.5,T-A*w,b-I*w,T+A*D,b+I*D,f,!1)+2:o.cap===rr.SQUARE&&(p+=yr(T,b,A,I,w,D,!1,f)));var tt=e.indices,et=ar.epsilon*ar.epsilon;for(C=_;C<p+_-2;++C)g=f[2*C],E=f[2*C+1],T=f[2*(C+1)],b=f[2*(C+1)+1],x=f[2*(C+2)],R=f[2*(C+2)+1],Math.abs(g*(b-R)+T*(R-E)+x*(E-b))<et||tt.push(C,C+1,C+2)}}function Tr(t,e){var r=0,n=t.shape,i=t.points||n.points,o=n.type!==P.HS.POLY||n.closeStroke;if(0!==i.length){var s=e.points,a=e.indices,u=i.length/2,h=s.length/2,l=h;for(s.push(i[0],i[1]),r=1;r<u;r++)s.push(i[2*r],i[2*r+1]),a.push(l,l+1),l++;o&&a.push(l,h)}}function br(t,e){t.lineStyle.native?Tr(t,e):Er(t,e)}var xr,Rr=function(){function t(){}return t.curveTo=function(t,e,r,n,i,o){var s=o[o.length-2],a=o[o.length-1],u=a-e,h=s-t,l=n-e,c=r-t,f=Math.abs(u*c-h*l);if(f<1e-8||0===i)return o[o.length-2]===t&&o[o.length-1]===e||o.push(t,e),null;var d=u*u+h*h,p=l*l+c*c,_=u*l+h*c,v=i*Math.sqrt(d)/f,m=i*Math.sqrt(p)/f,y=v*_/d,g=m*_/p,E=v*c+m*h,T=v*l+m*u,b=h*(m+y),x=u*(m+y),R=c*(v+g),A=l*(v+g),I=Math.atan2(x-T,b-E),S=Math.atan2(A-T,R-E);return{cx:E+t,cy:T+e,radius:i,startAngle:I,endAngle:S,anticlockwise:h*l>c*u}},t.arc=function(t,e,r,n,i,o,s,a,u){for(var h=s-o,l=ar._segmentsCount(Math.abs(h)*i,40*Math.ceil(Math.abs(h)/P._b)),c=h/(2*l),f=2*c,d=Math.cos(c),p=Math.sin(c),_=l-1,v=_%1/_,m=0;m<=_;++m){var y=m+v*m,g=c+o+f*y,E=Math.cos(g),T=-Math.sin(g);u.push((d*E+p*T)*i+r,(d*-T+p*E)*i+n)}},t}(),Ar=function(){function t(){}return t.curveLength=function(t,e,r,n,i,o,s,a){for(var u=10,h=0,l=0,c=0,f=0,d=0,p=0,_=0,v=0,m=0,y=0,g=0,E=t,T=e,b=1;b<=u;++b)l=b/u,c=l*l,f=c*l,d=1-l,p=d*d,_=p*d,v=_*t+3*p*l*r+3*d*c*i+f*s,m=_*e+3*p*l*n+3*d*c*o+f*a,y=E-v,g=T-m,E=v,T=m,h+=Math.sqrt(y*y+g*g);return h},t.curveTo=function(e,r,n,i,o,s,a){var u=a[a.length-2],h=a[a.length-1];a.length-=2;var l=ar._segmentsCount(t.curveLength(u,h,e,r,n,i,o,s)),c=0,f=0,d=0,p=0,_=0;a.push(u,h);for(var v=1,m=0;v<=l;++v)m=v/l,c=1-m,f=c*c,d=f*c,p=m*m,_=p*m,a.push(d*u+3*f*m*e+3*c*p*n+_*o,d*h+3*f*m*r+3*c*p*i+_*s)},t}(),Ir=function(){function t(){}return t.curveLength=function(t,e,r,n,i,o){var s=t-2*r+i,a=e-2*n+o,u=2*r-2*t,h=2*n-2*e,l=4*(s*s+a*a),c=4*(s*u+a*h),f=u*u+h*h,d=2*Math.sqrt(l+c+f),p=Math.sqrt(l),_=2*l*p,v=2*Math.sqrt(f),m=c/p;return(_*d+p*c*(d-v)+(4*f*l-c*c)*Math.log((2*p+m+d)/(m+v)))/(4*_)},t.curveTo=function(e,r,n,i,o){for(var s=o[o.length-2],a=o[o.length-1],u=ar._segmentsCount(t.curveLength(s,a,e,r,n,i)),h=0,l=0,c=1;c<=u;++c){var f=c/u;h=s+(e-s)*f,l=a+(r-a)*f,o.push(h+(e+(n-e)*f-h)*f,l+(r+(i-r)*f-l)*f)}},t}(),Sr=function(){function t(){this.reset()}return t.prototype.begin=function(t,e,r){this.reset(),this.style=t,this.start=e,this.attribStart=r},t.prototype.end=function(t,e){this.attribSize=e-this.attribStart,this.size=t-this.start},t.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},t}(),Or=(xr={},xr[P.HS.POLY]=fr,xr[P.HS.CIRC]=dr,xr[P.HS.ELIP]=dr,xr[P.HS.RECT]=pr,xr[P.HS.RREC]=mr,xr),Pr=[],Nr=[],Mr=function(){function t(t,e,r,n){void 0===e&&(e=null),void 0===r&&(r=null),void 0===n&&(n=null),this.points=[],this.holes=[],this.shape=t,this.lineStyle=r,this.fillStyle=e,this.matrix=n,this.type=t.type}return t.prototype.clone=function(){return new t(this.shape,this.fillStyle,this.lineStyle,this.matrix)},t.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},t}(),wr=new P.E9,Dr=new N,Cr=function(t){function e(){var e=t.call(this)||this;return e.closePointEps=1e-4,e.boundsPadding=0,e.uvsFloat32=null,e.indicesUint16=null,e.batchable=!1,e.points=[],e.colors=[],e.uvs=[],e.indices=[],e.textureIds=[],e.graphicsData=[],e.drawCalls=[],e.batchDirty=-1,e.batches=[],e.dirty=0,e.cacheDirty=-1,e.clearDirty=0,e.shapeIndex=0,e._bounds=new N,e.boundsDirty=-1,e}return lr(e,t),Object.defineProperty(e.prototype,"bounds",{get:function(){return this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),e.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 t=0;t<this.drawCalls.length;t++)this.drawCalls[t].texArray.clear(),Nr.push(this.drawCalls[t]);this.drawCalls.length=0;for(t=0;t<this.batches.length;t++){var e=this.batches[t];e.reset(),Pr.push(e)}this.batches.length=0},e.prototype.clear=function(){return this.graphicsData.length>0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},e.prototype.drawShape=function(t,e,r,n){void 0===e&&(e=null),void 0===r&&(r=null),void 0===n&&(n=null);var i=new Mr(t,e,r,n);return this.graphicsData.push(i),this.dirty++,this},e.prototype.drawHole=function(t,e){if(void 0===e&&(e=null),!this.graphicsData.length)return null;var r=new Mr(t,null,null,e),n=this.graphicsData[this.graphicsData.length-1];return r.lineStyle=n.lineStyle,n.holes.push(r),this.dirty++,this},e.prototype.destroy=function(){t.prototype.destroy.call(this);for(var e=0;e<this.graphicsData.length;++e)this.graphicsData[e].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null},e.prototype.containsPoint=function(t){for(var e=this.graphicsData,r=0;r<e.length;++r){var n=e[r];if(n.fillStyle.visible&&(n.shape&&(n.matrix?n.matrix.applyInverse(t,wr):wr.copyFrom(t),n.shape.contains(wr.x,wr.y)))){var i=!1;if(n.holes)for(var o=0;o<n.holes.length;o++){var s=n.holes[o];if(s.shape.contains(wr.x,wr.y)){i=!0;break}}if(!i)return!0}}return!1},e.prototype.updateBatches=function(t){if(this.graphicsData.length){if(this.validateBatching()){this.cacheDirty=this.dirty;var e=this.uvs,r=this.graphicsData,n=null,i=null;this.batches.length>0&&(n=this.batches[this.batches.length-1],i=n.style);for(var o=this.shapeIndex;o<r.length;o++){this.shapeIndex++;var s=r[o],a=s.fillStyle,u=s.lineStyle,h=Or[s.type];h.build(s),s.matrix&&this.transformPoints(s.points,s.matrix),(a.visible||u.visible)&&this.processHoles(s.holes);for(var l=0;l<2;l++){var c=0===l?a:u;if(c.visible){var f=c.texture.baseTexture,d=this.indices.length,p=this.points.length/2;f.wrapMode=se.Nt.REPEAT,0===l?this.processFill(s):this.processLine(s);var _=this.points.length/2-p;0!==_&&(n&&!this._compareStyles(i,c)&&(n.end(d,p),n=null),n||(n=Pr.pop()||new Sr,n.begin(c,d,p),this.batches.push(n),i=c),this.addUvs(this.points,e,c.texture,p,_,c.matrix))}}}var v=this.indices.length,m=this.points.length/2;if(n&&n.end(v,m),0!==this.batches.length){if(this.indicesUint16&&this.indices.length===this.indicesUint16.length)this.indicesUint16.set(this.indices);else{var y=m>65535&&t;this.indicesUint16=y?new Uint32Array(this.indices):new Uint16Array(this.indices)}this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}else this.batchable=!0}}else this.batchable=!0},e.prototype._compareStyles=function(t,e){return!(!t||!e)&&(t.texture.baseTexture===e.texture.baseTexture&&(t.color+t.alpha===e.color+e.alpha&&!!t.native===!!e.native))},e.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var t=0,e=this.graphicsData.length;t<e;t++){var r=this.graphicsData[t],n=r.fillStyle,i=r.lineStyle;if(n&&!n.texture.baseTexture.valid)return!1;if(i&&!i.texture.baseTexture.valid)return!1}return!0},e.prototype.packBatches=function(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);for(var t=this.batches,e=0,r=t.length;e<r;e++)for(var n=t[e],i=0;i<n.size;i++){var o=n.start+i;this.indicesUint16[o]=this.indicesUint16[o]-n.attribStart}},e.prototype.isBatchable=function(){if(this.points.length>131070)return!1;for(var t=this.batches,r=0;r<t.length;r++)if(t[r].style.native)return!1;return this.points.length<2*e.BATCHABLE_SIZE},e.prototype.buildDrawCalls=function(){for(var t=++Rt.VL._globalBatch,e=0;e<this.drawCalls.length;e++)this.drawCalls[e].texArray.clear(),Nr.push(this.drawCalls[e]);this.drawCalls.length=0;var r=this.colors,n=this.textureIds,i=Nr.pop();i||(i=new Rt.a$,i.texArray=new Rt.Ie),i.texArray.count=0,i.start=0,i.size=0,i.type=se.lg.TRIANGLES;var o=0,s=null,a=0,u=!1,h=se.lg.TRIANGLES,l=0;this.drawCalls.push(i);for(e=0;e<this.batches.length;e++){var c=this.batches[e],f=8,d=c.style,p=d.texture.baseTexture;u!==!!d.native&&(u=!!d.native,h=u?se.lg.LINES:se.lg.TRIANGLES,s=null,o=f,t++),s!==p&&(s=p,p._batchEnabled!==t&&(o===f&&(t++,o=0,i.size>0&&(i=Nr.pop(),i||(i=new Rt.a$,i.texArray=new Rt.Ie),this.drawCalls.push(i)),i.start=l,i.size=0,i.texArray.count=0,i.type=h),p.touched=1,p._batchEnabled=t,p._batchLocation=o,p.wrapMode=se.Nt.REPEAT,i.texArray.elements[i.texArray.count++]=p,o++)),i.size+=c.size,l+=c.size,a=p._batchLocation,this.addColors(r,d.color,d.alpha,c.attribSize,c.attribStart),this.addTextureIds(n,a,c.attribSize,c.attribStart)}Rt.VL._globalBatch=t,this.packAttributes()},e.prototype.packAttributes=function(){for(var t=this.points,e=this.uvs,r=this.colors,n=this.textureIds,i=new ArrayBuffer(3*t.length*4),o=new Float32Array(i),s=new Uint32Array(i),a=0,u=0;u<t.length/2;u++)o[a++]=t[2*u],o[a++]=t[2*u+1],o[a++]=e[2*u],o[a++]=e[2*u+1],s[a++]=r[u],o[a++]=n[u];this._buffer.update(i),this._indexBuffer.update(this.indicesUint16)},e.prototype.processFill=function(t){if(t.holes.length)fr.triangulate(t,this);else{var e=Or[t.type];e.triangulate(t,this)}},e.prototype.processLine=function(t){br(t,this);for(var e=0;e<t.holes.length;e++)br(t.holes[e],this)},e.prototype.processHoles=function(t){for(var e=0;e<t.length;e++){var r=t[e],n=Or[r.type];n.build(r),r.matrix&&this.transformPoints(r.points,r.matrix)}},e.prototype.calculateBounds=function(){var t=this._bounds,e=Dr,r=P.y3.IDENTITY;this._bounds.clear(),e.clear();for(var n=0;n<this.graphicsData.length;n++){var i=this.graphicsData[n],o=i.shape,s=i.type,a=i.lineStyle,u=i.matrix||P.y3.IDENTITY,h=0;if(a&&a.visible&&(h=a.width*Math.max(0,a.alignment)),r!==u&&(e.isEmpty()||(t.addBoundsMatrix(e,r),e.clear()),r=u),s===P.HS.RECT||s===P.HS.RREC){var l=o;e.addFramePad(l.x,l.y,l.x+l.width,l.y+l.height,h,h)}else if(s===P.HS.CIRC){var c=o;e.addFramePad(c.x,c.y,c.x,c.y,c.radius+h,c.radius+h)}else if(s===P.HS.ELIP){var f=o;e.addFramePad(f.x,f.y,f.x,f.y,f.width+h,f.height+h)}else{var d=o;t.addVerticesMatrix(r,d.points,0,d.points.length,h,h)}}e.isEmpty()||t.addBoundsMatrix(e,r),t.pad(this.boundsPadding,this.boundsPadding)},e.prototype.transformPoints=function(t,e){for(var r=0;r<t.length/2;r++){var n=t[2*r],i=t[2*r+1];t[2*r]=e.a*n+e.c*i+e.tx,t[2*r+1]=e.b*n+e.d*i+e.ty}},e.prototype.addColors=function(t,e,r,n,i){void 0===i&&(i=0);var o=(e>>16)+(65280&e)+((255&e)<<16),s=(0,S.rA)(o,r);t.length=Math.max(t.length,i+n);for(var a=0;a<n;a++)t[i+a]=s},e.prototype.addTextureIds=function(t,e,r,n){void 0===n&&(n=0),t.length=Math.max(t.length,n+r);for(var i=0;i<r;i++)t[n+i]=e},e.prototype.addUvs=function(t,e,r,n,i,o){void 0===o&&(o=null);var s=0,a=e.length,u=r.frame;while(s<i){var h=t[2*(n+s)],l=t[2*(n+s)+1];if(o){var c=o.a*h+o.c*l+o.tx;l=o.b*h+o.d*l+o.ty,h=c}s++,e.push(h/u.width,l/u.height)}var f=r.baseTexture;(u.width<f.width||u.height<f.height)&&this.adjustUvs(e,r,a,i)},e.prototype.adjustUvs=function(t,e,r,n){for(var i=e.baseTexture,o=1e-6,s=r+2*n,a=e.frame,u=a.width/i.width,h=a.height/i.height,l=a.x/a.width,c=a.y/a.height,f=Math.floor(t[r]+o),d=Math.floor(t[r+1]+o),p=r+2;p<s;p+=2)f=Math.min(f,Math.floor(t[p]+o)),d=Math.min(d,Math.floor(t[p+1]+o));l-=f,c-=d;for(p=r;p<s;p+=2)t[p]=(t[p]+l)*u,t[p+1]=(t[p+1]+c)*h},e.BATCHABLE_SIZE=100,e}(Rt.JZ),Lr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.width=0,e.alignment=.5,e.native=!1,e.cap=rr.BUTT,e.join=er.MITER,e.miterLimit=10,e}return lr(e,t),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.width=this.width,t.alignment=this.alignment,t.native=this.native,t.cap=this.cap,t.join=this.join,t.miterLimit=this.miterLimit,t},e.prototype.reset=function(){t.prototype.reset.call(this),this.color=0,this.alignment=.5,this.width=0,this.native=!1},e}(ur),Fr=new Float32Array(3),Ur={},Gr=function(t){function e(e){void 0===e&&(e=null);var r=t.call(this)||this;return r.shader=null,r.pluginName="batch",r.currentPath=null,r.batches=[],r.batchTint=-1,r.batchDirty=-1,r.vertexData=null,r._fillStyle=new ur,r._lineStyle=new Lr,r._matrix=null,r._holeMode=!1,r.state=Rt.ZM.for2d(),r._geometry=e||new Cr,r._geometry.refCount++,r._transformID=-1,r.tint=16777215,r.blendMode=se.T$.NORMAL,r}return lr(e,t),Object.defineProperty(e.prototype,"geometry",{get:function(){return this._geometry},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return this.finishPoly(),new e(this._geometry)},Object.defineProperty(e.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(t){this.state.blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tint",{get:function(){return this._tint},set:function(t){this._tint=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fill",{get:function(){return this._fillStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"line",{get:function(){return this._lineStyle},enumerable:!1,configurable:!0}),e.prototype.lineStyle=function(t,e,r,n,i){return void 0===t&&(t=null),void 0===e&&(e=0),void 0===r&&(r=1),void 0===n&&(n=.5),void 0===i&&(i=!1),"number"===typeof t&&(t={width:t,color:e,alpha:r,alignment:n,native:i}),this.lineTextureStyle(t)},e.prototype.lineTextureStyle=function(t){t=Object.assign({width:0,texture:Rt.xE.WHITE,color:t&&t.texture?16777215:0,alpha:1,matrix:null,alignment:.5,native:!1,cap:rr.BUTT,join:er.MITER,miterLimit:10},t),this.currentPath&&this.startPoly();var e=t.width>0&&t.alpha>0;return e?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._lineStyle,{visible:e},t)):this._lineStyle.reset(),this},e.prototype.startPoly=function(){if(this.currentPath){var t=this.currentPath.points,e=this.currentPath.points.length;e>2&&(this.drawShape(this.currentPath),this.currentPath=new P.mg,this.currentPath.closeStroke=!1,this.currentPath.points.push(t[e-2],t[e-1]))}else this.currentPath=new P.mg,this.currentPath.closeStroke=!1},e.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},e.prototype.moveTo=function(t,e){return this.startPoly(),this.currentPath.points[0]=t,this.currentPath.points[1]=e,this},e.prototype.lineTo=function(t,e){this.currentPath||this.moveTo(0,0);var r=this.currentPath.points,n=r[r.length-2],i=r[r.length-1];return n===t&&i===e||r.push(t,e),this},e.prototype._initCurve=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.currentPath?0===this.currentPath.points.length&&(this.currentPath.points=[t,e]):this.moveTo(t,e)},e.prototype.quadraticCurveTo=function(t,e,r,n){this._initCurve();var i=this.currentPath.points;return 0===i.length&&this.moveTo(0,0),Ir.curveTo(t,e,r,n,i),this},e.prototype.bezierCurveTo=function(t,e,r,n,i,o){return this._initCurve(),Ar.curveTo(t,e,r,n,i,o,this.currentPath.points),this},e.prototype.arcTo=function(t,e,r,n,i){this._initCurve(t,e);var o=this.currentPath.points,s=Rr.curveTo(t,e,r,n,i,o);if(s){var a=s.cx,u=s.cy,h=s.radius,l=s.startAngle,c=s.endAngle,f=s.anticlockwise;this.arc(a,u,h,l,c,f)}return this},e.prototype.arc=function(t,e,r,n,i,o){if(void 0===o&&(o=!1),n===i)return this;!o&&i<=n?i+=P._b:o&&n<=i&&(n+=P._b);var s=i-n;if(0===s)return this;var a=t+Math.cos(n)*r,u=e+Math.sin(n)*r,h=this._geometry.closePointEps,l=this.currentPath?this.currentPath.points:null;if(l){var c=Math.abs(l[l.length-2]-a),f=Math.abs(l[l.length-1]-u);c<h&&f<h||l.push(a,u)}else this.moveTo(a,u),l=this.currentPath.points;return Rr.arc(a,u,t,e,r,n,i,o,l),this},e.prototype.beginFill=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=1),this.beginTextureFill({texture:Rt.xE.WHITE,color:t,alpha:e})},e.prototype.beginTextureFill=function(t){t=Object.assign({texture:Rt.xE.WHITE,color:16777215,alpha:1,matrix:null},t),this.currentPath&&this.startPoly();var e=t.alpha>0;return e?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._fillStyle,{visible:e},t)):this._fillStyle.reset(),this},e.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},e.prototype.drawRect=function(t,e,r,n){return this.drawShape(new P.Ae(t,e,r,n))},e.prototype.drawRoundedRect=function(t,e,r,n,i){return this.drawShape(new P.c9(t,e,r,n,i))},e.prototype.drawCircle=function(t,e,r){return this.drawShape(new P.Cd(t,e,r))},e.prototype.drawEllipse=function(t,e,r,n){return this.drawShape(new P.Pj(t,e,r,n))},e.prototype.drawPolygon=function(){for(var t,e=arguments,r=[],n=0;n<arguments.length;n++)r[n]=e[n];var i=!0,o=r[0];o.points?(i=o.closeStroke,t=o.points):t=Array.isArray(r[0])?r[0]:r;var s=new P.mg(t);return s.closeStroke=i,this.drawShape(s),this},e.prototype.drawShape=function(t){return this._holeMode?this._geometry.drawHole(t,this._matrix):this._geometry.drawShape(t,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this},e.prototype.clear=function(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this},e.prototype.isFastRect=function(){var t=this._geometry.graphicsData;return 1===t.length&&t[0].shape.type===P.HS.RECT&&!t[0].matrix&&!t[0].holes.length&&!(t[0].lineStyle.visible&&t[0].lineStyle.width)},e.prototype._render=function(t){this.finishPoly();var e=this._geometry,r=t.context.supports.uint32Indices;e.updateBatches(r),e.batchable?(this.batchDirty!==e.batchDirty&&this._populateBatches(),this._renderBatched(t)):(t.batch.flush(),this._renderDirect(t))},e.prototype._populateBatches=function(){var t=this._geometry,e=this.blendMode,r=t.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=t.batchDirty,this.batches.length=r,this.vertexData=new Float32Array(t.points);for(var n=0;n<r;n++){var i=t.batches[n],o=i.style.color,s=new Float32Array(this.vertexData.buffer,4*i.attribStart*2,2*i.attribSize),a=new Float32Array(t.uvsFloat32.buffer,4*i.attribStart*2,2*i.attribSize),u=new Uint16Array(t.indicesUint16.buffer,2*i.start,i.size),h={vertexData:s,blendMode:e,indices:u,uvs:a,_batchRGB:(0,S.wK)(o),_tintRGB:o,_texture:i.style.texture,alpha:i.style.alpha,worldAlpha:1};this.batches[n]=h}},e.prototype._renderBatched=function(t){if(this.batches.length){t.batch.setObjectRenderer(t.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(var e=0,r=this.batches.length;e<r;e++){var n=this.batches[e];n.worldAlpha=this.worldAlpha*n.alpha,t.plugins[this.pluginName].render(n)}}},e.prototype._renderDirect=function(t){var e=this._resolveDirectShader(t),r=this._geometry,n=this.tint,i=this.worldAlpha,o=e.uniforms,s=r.drawCalls;o.translationMatrix=this.transform.worldTransform,o.tint[0]=(n>>16&255)/255*i,o.tint[1]=(n>>8&255)/255*i,o.tint[2]=(255&n)/255*i,o.tint[3]=i,t.shader.bind(e),t.geometry.bind(r,e),t.state.set(this.state);for(var a=0,u=s.length;a<u;a++)this._renderDrawCallDirect(t,r.drawCalls[a])},e.prototype._renderDrawCallDirect=function(t,e){for(var r=e.texArray,n=e.type,i=e.size,o=e.start,s=r.count,a=0;a<s;a++)t.texture.bind(r.elements[a],a);t.geometry.draw(n,i,o)},e.prototype._resolveDirectShader=function(t){var e=this.shader,r=this.pluginName;if(!e){if(!Ur[r]){for(var n=t.plugins.batch.MAX_TEXTURES,i=new Int32Array(n),o=0;o<n;o++)i[o]=o;var s={tint:new Float32Array([1,1,1,1]),translationMatrix:new P.y3,default:Rt.oo.from({uSamplers:i},!0)},a=t.plugins[r]._shader.program;Ur[r]=new Rt.ex(a,s)}e=Ur[r]}return e},e.prototype._calculateBounds=function(){this.finishPoly();var t=this._geometry;if(t.graphicsData.length){var e=t.bounds,r=e.minX,n=e.minY,i=e.maxX,o=e.maxY;this._bounds.addFrame(this.transform,r,n,i,o)}},e.prototype.containsPoint=function(t){return this.worldTransform.applyInverse(t,e._TEMP_POINT),this._geometry.containsPoint(e._TEMP_POINT)},e.prototype.calculateTints=function(){if(this.batchTint!==this.tint){this.batchTint=this.tint;for(var t=(0,S.wK)(this.tint,Fr),e=0;e<this.batches.length;e++){var r=this.batches[e],n=r._batchRGB,i=t[0]*n[0]*255,o=t[1]*n[1]*255,s=t[2]*n[2]*255,a=(i<<16)+(o<<8)+(0|s);r._tintRGB=(a>>16)+(65280&a)+((255&a)<<16)}}},e.prototype.calculateVertices=function(){var t=this.transform._worldID;if(this._transformID!==t){this._transformID=t;for(var e=this.transform.worldTransform,r=e.a,n=e.b,i=e.c,o=e.d,s=e.tx,a=e.ty,u=this._geometry.points,h=this.vertexData,l=0,c=0;c<u.length;c+=2){var f=u[c],d=u[c+1];h[l++]=r*f+i*d+s,h[l++]=o*d+n*f+a}}},e.prototype.closePath=function(){var t=this.currentPath;return t&&(t.closeStroke=!0,this.finishPoly()),this},e.prototype.setMatrix=function(t){return this._matrix=t,this},e.prototype.beginHole=function(){return this.finishPoly(),this._holeMode=!0,this},e.prototype.endHole=function(){return this.finishPoly(),this._holeMode=!1,this},e.prototype.destroy=function(e){this._geometry.refCount--,0===this._geometry.refCount&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,t.prototype.destroy.call(this,e)},e.nextRoundedRectBehavior=!1,e._TEMP_POINT=new P.E9,e}(et),Br=function(t,e){return Br=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Br(t,e)};function Xr(t,e){function r(){this.constructor=t}Br(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var kr,Hr=new P.E9,jr=new Uint16Array([0,1,2,0,2,3]),Vr=function(t){function e(e){var r=t.call(this)||this;return r._anchor=new P.AB(r._onAnchorUpdate,r,e?e.defaultAnchor.x:0,e?e.defaultAnchor.y:0),r._texture=null,r._width=0,r._height=0,r._tint=null,r._tintRGB=null,r.tint=16777215,r.blendMode=se.T$.NORMAL,r._cachedTint=16777215,r.uvs=null,r.texture=e||Rt.xE.EMPTY,r.vertexData=new Float32Array(8),r.vertexTrimmedData=null,r._transformID=-1,r._textureID=-1,r._transformTrimmedID=-1,r._textureTrimmedID=-1,r.indices=jr,r.pluginName="batch",r.isSprite=!0,r._roundPixels=O.X.ROUND_PIXELS,r}return Xr(e,t),e.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=(0,S.Xx)(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=(0,S.Xx)(this.scale.y)*this._height/this._texture.orig.height)},e.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},e.prototype.calculateVertices=function(){var t=this._texture;if(this._transformID!==this.transform._worldID||this._textureID!==t._updateID){this._textureID!==t._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=t._updateID;var e=this.transform.worldTransform,r=e.a,n=e.b,i=e.c,o=e.d,s=e.tx,a=e.ty,u=this.vertexData,h=t.trim,l=t.orig,c=this._anchor,f=0,d=0,p=0,_=0;if(h?(d=h.x-c._x*l.width,f=d+h.width,_=h.y-c._y*l.height,p=_+h.height):(d=-c._x*l.width,f=d+l.width,_=-c._y*l.height,p=_+l.height),u[0]=r*d+i*_+s,u[1]=o*_+n*d+a,u[2]=r*f+i*_+s,u[3]=o*_+n*f+a,u[4]=r*f+i*p+s,u[5]=o*p+n*f+a,u[6]=r*d+i*p+s,u[7]=o*p+n*d+a,this._roundPixels)for(var v=O.X.RESOLUTION,m=0;m<u.length;++m)u[m]=Math.round((u[m]*v|0)/v)}},e.prototype.calculateTrimmedVertices=function(){if(this.vertexTrimmedData){if(this._transformTrimmedID===this.transform._worldID&&this._textureTrimmedID===this._texture._updateID)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=this.transform._worldID,this._textureTrimmedID=this._texture._updateID;var t=this._texture,e=this.vertexTrimmedData,r=t.orig,n=this._anchor,i=this.transform.worldTransform,o=i.a,s=i.b,a=i.c,u=i.d,h=i.tx,l=i.ty,c=-n._x*r.width,f=c+r.width,d=-n._y*r.height,p=d+r.height;e[0]=o*c+a*d+h,e[1]=u*d+s*c+l,e[2]=o*f+a*d+h,e[3]=u*d+s*f+l,e[4]=o*f+a*p+h,e[5]=u*p+s*f+l,e[6]=o*c+a*p+h,e[7]=u*p+s*c+l},e.prototype._render=function(t){this.calculateVertices(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this)},e.prototype._calculateBounds=function(){var t=this._texture.trim,e=this._texture.orig;!t||t.width===e.width&&t.height===e.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))},e.prototype.getLocalBounds=function(e){return 0===this.children.length?(this._localBounds||(this._localBounds=new N),this._localBounds.minX=this._texture.orig.width*-this._anchor._x,this._localBounds.minY=this._texture.orig.height*-this._anchor._y,this._localBounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._localBounds.maxY=this._texture.orig.height*(1-this._anchor._y),e||(this._localBoundsRect||(this._localBoundsRect=new P.Ae),e=this._localBoundsRect),this._localBounds.getRectangle(e)):t.prototype.getLocalBounds.call(this,e)},e.prototype.containsPoint=function(t){this.worldTransform.applyInverse(t,Hr);var e=this._texture.orig.width,r=this._texture.orig.height,n=-e*this.anchor.x,i=0;return Hr.x>=n&&Hr.x<n+e&&(i=-r*this.anchor.y,Hr.y>=i&&Hr.y<i+r)},e.prototype.destroy=function(e){t.prototype.destroy.call(this,e),this._texture.off("update",this._onTextureUpdate,this),this._anchor=null;var r="boolean"===typeof e?e:e&&e.texture;if(r){var n="boolean"===typeof e?e:e&&e.baseTexture;this._texture.destroy(!!n)}this._texture=null},e.from=function(t,r){var n=t instanceof Rt.xE?t:Rt.xE.from(t,r);return new e(n)},Object.defineProperty(e.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(t){this._roundPixels!==t&&(this._transformID=-1),this._roundPixels=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return Math.abs(this.scale.x)*this._texture.orig.width},set:function(t){var e=(0,S.Xx)(this.scale.x)||1;this.scale.x=e*t/this._texture.orig.width,this._width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return Math.abs(this.scale.y)*this._texture.orig.height},set:function(t){var e=(0,S.Xx)(this.scale.y)||1;this.scale.y=e*t/this._texture.orig.height,this._height=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"anchor",{get:function(){return this._anchor},set:function(t){this._anchor.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tint",{get:function(){return this._tint},set:function(t){this._tint=t,this._tintRGB=(t>>16)+(65280&t)+((255&t)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture!==t&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=t||Rt.xE.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,t&&(t.baseTexture.valid?this._onTextureUpdate():t.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),e}(et),Yr=function(t,e){return Yr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Yr(t,e)};function Wr(t,e){function r(){this.constructor=t}Yr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(function(t){t[t["LINEAR_VERTICAL"]=0]="LINEAR_VERTICAL",t[t["LINEAR_HORIZONTAL"]=1]="LINEAR_HORIZONTAL"})(kr||(kr={}));var zr={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:kr.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},qr=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],Kr=function(){function t(t){this.styleID=0,this.reset(),Qr(this,t,t)}return t.prototype.clone=function(){var e={};return Qr(e,this,zr),new t(e)},t.prototype.reset=function(){Qr(this,zr,zr)},Object.defineProperty(t.prototype,"align",{get:function(){return this._align},set:function(t){this._align!==t&&(this._align=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"breakWords",{get:function(){return this._breakWords},set:function(t){this._breakWords!==t&&(this._breakWords=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadow",{get:function(){return this._dropShadow},set:function(t){this._dropShadow!==t&&(this._dropShadow=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowAlpha",{get:function(){return this._dropShadowAlpha},set:function(t){this._dropShadowAlpha!==t&&(this._dropShadowAlpha=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowAngle",{get:function(){return this._dropShadowAngle},set:function(t){this._dropShadowAngle!==t&&(this._dropShadowAngle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowBlur",{get:function(){return this._dropShadowBlur},set:function(t){this._dropShadowBlur!==t&&(this._dropShadowBlur=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowColor",{get:function(){return this._dropShadowColor},set:function(t){var e=Zr(t);this._dropShadowColor!==e&&(this._dropShadowColor=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowDistance",{get:function(){return this._dropShadowDistance},set:function(t){this._dropShadowDistance!==t&&(this._dropShadowDistance=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fill",{get:function(){return this._fill},set:function(t){var e=Zr(t);this._fill!==e&&(this._fill=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fillGradientType",{get:function(){return this._fillGradientType},set:function(t){this._fillGradientType!==t&&(this._fillGradientType=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fillGradientStops",{get:function(){return this._fillGradientStops},set:function(t){Jr(this._fillGradientStops,t)||(this._fillGradientStops=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(t){this.fontFamily!==t&&(this._fontFamily=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize!==t&&(this._fontSize=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(t){this._fontStyle!==t&&(this._fontStyle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontVariant",{get:function(){return this._fontVariant},set:function(t){this._fontVariant!==t&&(this._fontVariant=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(t){this._fontWeight!==t&&(this._fontWeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(t){this._lineHeight!==t&&(this._lineHeight=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leading",{get:function(){return this._leading},set:function(t){this._leading!==t&&(this._leading=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(t){this._lineJoin!==t&&(this._lineJoin=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"miterLimit",{get:function(){return this._miterLimit},set:function(t){this._miterLimit!==t&&(this._miterLimit=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"padding",{get:function(){return this._padding},set:function(t){this._padding!==t&&(this._padding=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stroke",{get:function(){return this._stroke},set:function(t){var e=Zr(t);this._stroke!==e&&(this._stroke=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"strokeThickness",{get:function(){return this._strokeThickness},set:function(t){this._strokeThickness!==t&&(this._strokeThickness=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textBaseline",{get:function(){return this._textBaseline},set:function(t){this._textBaseline!==t&&(this._textBaseline=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trim",{get:function(){return this._trim},set:function(t){this._trim!==t&&(this._trim=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"whiteSpace",{get:function(){return this._whiteSpace},set:function(t){this._whiteSpace!==t&&(this._whiteSpace=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wordWrap",{get:function(){return this._wordWrap},set:function(t){this._wordWrap!==t&&(this._wordWrap=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wordWrapWidth",{get:function(){return this._wordWrapWidth},set:function(t){this._wordWrapWidth!==t&&(this._wordWrapWidth=t,this.styleID++)},enumerable:!1,configurable:!0}),t.prototype.toFontString=function(){var t="number"===typeof this.fontSize?this.fontSize+"px":this.fontSize,e=this.fontFamily;Array.isArray(this.fontFamily)||(e=this.fontFamily.split(","));for(var r=e.length-1;r>=0;r--){var n=e[r].trim();!/([\"\'])[^\'\"]+\1/.test(n)&&qr.indexOf(n)<0&&(n='"'+n+'"'),e[r]=n}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+e.join(",")},t}();function $r(t){return"number"===typeof t?(0,S.XN)(t):("string"===typeof t&&0===t.indexOf("0x")&&(t=t.replace("0x","#")),t)}function Zr(t){if(Array.isArray(t)){for(var e=0;e<t.length;++e)t[e]=$r(t[e]);return t}return $r(t)}function Jr(t,e){if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(t[r]!==e[r])return!1;return!0}function Qr(t,e,r){for(var n in r)Array.isArray(e[n])?t[n]=e[n].slice():t[n]=e[n]}var tn=function(){function t(t,e,r,n,i,o,s,a,u){this.text=t,this.style=e,this.width=r,this.height=n,this.lines=i,this.lineWidths=o,this.lineHeight=s,this.maxLineWidth=a,this.fontProperties=u}return t.measureText=function(e,r,n,i){void 0===i&&(i=t._canvas),n=void 0===n||null===n?r.wordWrap:n;var o=r.toFontString(),s=t.measureFont(o);0===s.fontSize&&(s.fontSize=r.fontSize,s.ascent=r.fontSize);var a=i.getContext("2d");a.font=o;for(var u=n?t.wordWrap(e,r,i):e,h=u.split(/(?:\r\n|\r|\n)/),l=new Array(h.length),c=0,f=0;f<h.length;f++){var d=a.measureText(h[f]).width+(h[f].length-1)*r.letterSpacing;l[f]=d,c=Math.max(c,d)}var p=c+r.strokeThickness;r.dropShadow&&(p+=r.dropShadowDistance);var _=r.lineHeight||s.fontSize+r.strokeThickness,v=Math.max(_,s.fontSize+r.strokeThickness)+(h.length-1)*(_+r.leading);return r.dropShadow&&(v+=r.dropShadowDistance),new t(e,r,p,v,h,l,_+r.leading,c,s)},t.wordWrap=function(e,r,n){void 0===n&&(n=t._canvas);for(var i=n.getContext("2d"),o=0,s="",a="",u=Object.create(null),h=r.letterSpacing,l=r.whiteSpace,c=t.collapseSpaces(l),f=t.collapseNewlines(l),d=!c,p=r.wordWrapWidth+h,_=t.tokenize(e),v=0;v<_.length;v++){var m=_[v];if(t.isNewline(m)){if(!f){a+=t.addLine(s),d=!c,s="",o=0;continue}m=" "}if(c){var y=t.isBreakingSpace(m),g=t.isBreakingSpace(s[s.length-1]);if(y&&g)continue}var E=t.getFromCache(m,h,u,i);if(E>p)if(""!==s&&(a+=t.addLine(s),s="",o=0),t.canBreakWords(m,r.breakWords))for(var T=t.wordWrapSplit(m),b=0;b<T.length;b++){var x=T[b],R=1;while(T[b+R]){var A=T[b+R],I=x[x.length-1];if(t.canBreakChars(I,A,m,b,r.breakWords))break;x+=A,R++}b+=x.length-1;var S=t.getFromCache(x,h,u,i);S+o>p&&(a+=t.addLine(s),d=!1,s="",o=0),s+=x,o+=S}else{s.length>0&&(a+=t.addLine(s),s="",o=0);var O=v===_.length-1;a+=t.addLine(m,!O),d=!1,s="",o=0}else E+o>p&&(d=!1,a+=t.addLine(s),s="",o=0),(s.length>0||!t.isBreakingSpace(m)||d)&&(s+=m,o+=E)}return a+=t.addLine(s,!1),a},t.addLine=function(e,r){return void 0===r&&(r=!0),e=t.trimRight(e),e=r?e+"\n":e,e},t.getFromCache=function(t,e,r,n){var i=r[t];if("number"!==typeof i){var o=t.length*e;i=n.measureText(t).width+o,r[t]=i}return i},t.collapseSpaces=function(t){return"normal"===t||"pre-line"===t},t.collapseNewlines=function(t){return"normal"===t},t.trimRight=function(e){if("string"!==typeof e)return"";for(var r=e.length-1;r>=0;r--){var n=e[r];if(!t.isBreakingSpace(n))break;e=e.slice(0,-1)}return e},t.isNewline=function(e){return"string"===typeof e&&t._newlines.indexOf(e.charCodeAt(0))>=0},t.isBreakingSpace=function(e,r){return"string"===typeof e&&t._breakingSpaces.indexOf(e.charCodeAt(0))>=0},t.tokenize=function(e){var r=[],n="";if("string"!==typeof e)return r;for(var i=0;i<e.length;i++){var o=e[i],s=e[i+1];t.isBreakingSpace(o,s)||t.isNewline(o)?(""!==n&&(r.push(n),n=""),r.push(o)):n+=o}return""!==n&&r.push(n),r},t.canBreakWords=function(t,e){return e},t.canBreakChars=function(t,e,r,n,i){return!0},t.wordWrapSplit=function(t){return t.split("")},t.measureFont=function(e){if(t._fonts[e])return t._fonts[e];var r={ascent:0,descent:0,fontSize:0},n=t._canvas,i=t._context;i.font=e;var o=t.METRICS_STRING+t.BASELINE_SYMBOL,s=Math.ceil(i.measureText(o).width),a=Math.ceil(i.measureText(t.BASELINE_SYMBOL).width),u=Math.ceil(t.HEIGHT_MULTIPLIER*a);a=a*t.BASELINE_MULTIPLIER|0,n.width=s,n.height=u,i.fillStyle="#f00",i.fillRect(0,0,s,u),i.font=e,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(o,0,a);var h=i.getImageData(0,0,s,u).data,l=h.length,c=4*s,f=0,d=0,p=!1;for(f=0;f<a;++f){for(var _=0;_<c;_+=4)if(255!==h[d+_]){p=!0;break}if(p)break;d+=c}for(r.ascent=a-f,d=l-c,p=!1,f=u;f>a;--f){for(_=0;_<c;_+=4)if(255!==h[d+_]){p=!0;break}if(p)break;d-=c}return r.descent=f-a,r.fontSize=r.ascent+r.descent,t._fonts[e]=r,r},t.clearMetrics=function(e){void 0===e&&(e=""),e?delete t._fonts[e]:t._fonts={}},t}(),en=function(){try{var t=new OffscreenCanvas(0,0),e=t.getContext("2d");return e&&e.measureText?t:document.createElement("canvas")}catch(r){return document.createElement("canvas")}}();en.width=en.height=10,tn._canvas=en,tn._context=en.getContext("2d"),tn._fonts={},tn.METRICS_STRING="|ÉqÅ",tn.BASELINE_SYMBOL="M",tn.BASELINE_MULTIPLIER=1.4,tn.HEIGHT_MULTIPLIER=2,tn._newlines=[10,13],tn._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];var rn={texture:!0,children:!1,baseTexture:!0},nn=function(t){function e(e,r,n){var i=this,o=!1;n||(n=document.createElement("canvas"),o=!0),n.width=3,n.height=3;var s=Rt.xE.from(n);return s.orig=new P.Ae,s.trim=new P.Ae,i=t.call(this,s)||this,i._ownCanvas=o,i.canvas=n,i.context=i.canvas.getContext("2d"),i._resolution=O.X.RESOLUTION,i._autoResolution=!0,i._text=null,i._style=null,i._styleListener=null,i._font="",i.text=e,i.style=r,i.localStyleID=-1,i}return Wr(e,t),e.prototype.updateText=function(t){var r=this._style;if(this.localStyleID!==r.styleID&&(this.dirty=!0,this.localStyleID=r.styleID),this.dirty||!t){this._font=this._style.toFontString();var n,i,o=this.context,s=tn.measureText(this._text||" ",this._style,this._style.wordWrap,this.canvas),a=s.width,u=s.height,h=s.lines,l=s.lineHeight,c=s.lineWidths,f=s.maxLineWidth,d=s.fontProperties;this.canvas.width=Math.ceil(Math.ceil(Math.max(1,a)+2*r.padding)*this._resolution),this.canvas.height=Math.ceil(Math.ceil(Math.max(1,u)+2*r.padding)*this._resolution),o.scale(this._resolution,this._resolution),o.clearRect(0,0,this.canvas.width,this.canvas.height),o.font=this._font,o.lineWidth=r.strokeThickness,o.textBaseline=r.textBaseline,o.lineJoin=r.lineJoin,o.miterLimit=r.miterLimit;for(var p=r.dropShadow?2:1,_=0;_<p;++_){var v=r.dropShadow&&0===_,m=v?Math.ceil(Math.max(1,u)+2*r.padding):0,y=m*this._resolution;if(v){o.fillStyle="black",o.strokeStyle="black";var g=r.dropShadowColor,E=(0,S.wK)("number"===typeof g?g:(0,S.qm)(g)),T=r.dropShadowBlur*this._resolution,b=r.dropShadowDistance*this._resolution;o.shadowColor="rgba("+255*E[0]+","+255*E[1]+","+255*E[2]+","+r.dropShadowAlpha+")",o.shadowBlur=T,o.shadowOffsetX=Math.cos(r.dropShadowAngle)*b,o.shadowOffsetY=Math.sin(r.dropShadowAngle)*b+y}else o.fillStyle=this._generateFillStyle(r,h,s),o.strokeStyle=r.stroke,o.shadowColor="black",o.shadowBlur=0,o.shadowOffsetX=0,o.shadowOffsetY=0;var x=(l-d.fontSize)/2;(!e.nextLineHeightBehavior||l-d.fontSize<0)&&(x=0);for(var R=0;R<h.length;R++)n=r.strokeThickness/2,i=r.strokeThickness/2+R*l+d.ascent+x,"right"===r.align?n+=f-c[R]:"center"===r.align&&(n+=(f-c[R])/2),r.stroke&&r.strokeThickness&&this.drawLetterSpacing(h[R],n+r.padding,i+r.padding-m,!0),r.fill&&this.drawLetterSpacing(h[R],n+r.padding,i+r.padding-m)}this.updateTexture()}},e.prototype.drawLetterSpacing=function(t,r,n,i){void 0===i&&(i=!1);var o=this._style,s=o.letterSpacing,a=e.experimentalLetterSpacing&&("letterSpacing"in CanvasRenderingContext2D.prototype||"textLetterSpacing"in CanvasRenderingContext2D.prototype);if(0===s||a)return a&&(this.context.letterSpacing=s,this.context.textLetterSpacing=s),void(i?this.context.strokeText(t,r,n):this.context.fillText(t,r,n));for(var u=r,h=Array.from?Array.from(t):t.split(""),l=this.context.measureText(t).width,c=0,f=0;f<h.length;++f){var d=h[f];i?this.context.strokeText(d,u,n):this.context.fillText(d,u,n);for(var p="",_=f+1;_<h.length;++_)p+=h[_];c=this.context.measureText(p).width,u+=l-c+s,l=c}},e.prototype.updateTexture=function(){var t=this.canvas;if(this._style.trim){var e=(0,S.yA)(t);e.data&&(t.width=e.width,t.height=e.height,this.context.putImageData(e.data,0,0))}var r=this._texture,n=this._style,i=n.trim?0:n.padding,o=r.baseTexture;r.trim.width=r._frame.width=t.width/this._resolution,r.trim.height=r._frame.height=t.height/this._resolution,r.trim.x=-i,r.trim.y=-i,r.orig.width=r._frame.width-2*i,r.orig.height=r._frame.height-2*i,this._onTextureUpdate(),o.setRealSize(t.width,t.height,this._resolution),r.updateUvs(),this._recursivePostUpdateTransform(),this.dirty=!1},e.prototype._render=function(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0),this.updateText(!0),t.prototype._render.call(this,e)},e.prototype.getLocalBounds=function(e){return this.updateText(!0),t.prototype.getLocalBounds.call(this,e)},e.prototype._calculateBounds=function(){this.updateText(!0),this.calculateVertices(),this._bounds.addQuad(this.vertexData)},e.prototype._generateFillStyle=function(t,e,r){var n,i=t.fill;if(!Array.isArray(i))return i;if(1===i.length)return i[0];var o=t.dropShadow?t.dropShadowDistance:0,s=t.padding||0,a=this.canvas.width/this._resolution-o-2*s,u=this.canvas.height/this._resolution-o-2*s,h=i.slice(),l=t.fillGradientStops.slice();if(!l.length)for(var c=h.length+1,f=1;f<c;++f)l.push(f/c);if(h.unshift(i[0]),l.unshift(0),h.push(i[i.length-1]),l.push(1),t.fillGradientType===kr.LINEAR_VERTICAL){n=this.context.createLinearGradient(a/2,s,a/2,u+s);var d=r.fontProperties.fontSize+t.strokeThickness;for(f=0;f<e.length;f++){var p=r.lineHeight*(f-1)+d,_=r.lineHeight*f,v=_;f>0&&p>_&&(v=(_+p)/2);var m=_+d,y=r.lineHeight*(f+1),g=m;f+1<e.length&&y<m&&(g=(m+y)/2);for(var E=(g-v)/u,T=0;T<h.length;T++){var b=0;b="number"===typeof l[T]?l[T]:T/h.length;var x=Math.min(1,Math.max(0,v/u+b*E));x=Number(x.toFixed(5)),n.addColorStop(x,h[T])}}}else{n=this.context.createLinearGradient(s,u/2,a+s,u/2);var R=h.length+1,A=1;for(f=0;f<h.length;f++){var I=void 0;I="number"===typeof l[f]?l[f]:A/R,n.addColorStop(I,h[f]),A++}}return n},e.prototype.destroy=function(e){"boolean"===typeof e&&(e={children:e}),e=Object.assign({},rn,e),t.prototype.destroy.call(this,e),this._ownCanvas&&(this.canvas.height=this.canvas.width=0),this.context=null,this.canvas=null,this._style=null},Object.defineProperty(e.prototype,"width",{get:function(){return this.updateText(!0),Math.abs(this.scale.x)*this._texture.orig.width},set:function(t){this.updateText(!0);var e=(0,S.Xx)(this.scale.x)||1;this.scale.x=e*t/this._texture.orig.width,this._width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.updateText(!0),Math.abs(this.scale.y)*this._texture.orig.height},set:function(t){this.updateText(!0);var e=(0,S.Xx)(this.scale.y)||1;this.scale.y=e*t/this._texture.orig.height,this._height=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this._style},set:function(t){t=t||{},this._style=t instanceof Kr?t:new Kr(t),this.localStyleID=-1,this.dirty=!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){t=String(null===t||void 0===t?"":t),this._text!==t&&(this._text=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resolution",{get:function(){return this._resolution},set:function(t){this._autoResolution=!1,this._resolution!==t&&(this._resolution=t,this.dirty=!0)},enumerable:!1,configurable:!0}),e.nextLineHeightBehavior=!1,e.experimentalLetterSpacing=!1,e}(Vr);
/*!
* @pixi/prepare - v6.3.0
* Compiled Wed, 23 Mar 2022 18:58:56 UTC
*
* @pixi/prepare is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/
O.X.UPLOADS_PER_FRAME=4;
/*! *****************************************************************************
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 on=function(t,e){return on=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},on(t,e)};function sn(t,e){function r(){this.constructor=t}on(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var an=function(){function t(t){this.maxItemsPerFrame=t,this.itemsLeft=0}return t.prototype.beginFrame=function(){this.itemsLeft=this.maxItemsPerFrame},t.prototype.allowedToUpload=function(){return this.itemsLeft-- >0},t}();function un(t,e){var r=!1;if(t&&t._textures&&t._textures.length)for(var n=0;n<t._textures.length;n++)if(t._textures[n]instanceof Rt.xE){var i=t._textures[n].baseTexture;-1===e.indexOf(i)&&(e.push(i),r=!0)}return r}function hn(t,e){if(t.baseTexture instanceof Rt.VL){var r=t.baseTexture;return-1===e.indexOf(r)&&e.push(r),!0}return!1}function ln(t,e){if(t._texture&&t._texture instanceof Rt.xE){var r=t._texture.baseTexture;return-1===e.indexOf(r)&&e.push(r),!0}return!1}function cn(t,e){return e instanceof nn&&(e.updateText(!0),!0)}function fn(t,e){if(e instanceof Kr){var r=e.toFontString();return tn.measureFont(r),!0}return!1}function dn(t,e){if(t instanceof nn){-1===e.indexOf(t.style)&&e.push(t.style),-1===e.indexOf(t)&&e.push(t);var r=t._texture.baseTexture;return-1===e.indexOf(r)&&e.push(r),!0}return!1}function pn(t,e){return t instanceof Kr&&(-1===e.indexOf(t)&&e.push(t),!0)}var _n=function(){function t(t){var e=this;this.limiter=new an(O.X.UPLOADS_PER_FRAME),this.renderer=t,this.uploadHookHelper=null,this.queue=[],this.addHooks=[],this.uploadHooks=[],this.completes=[],this.ticking=!1,this.delayedTick=function(){e.queue&&e.prepareItems()},this.registerFindHook(dn),this.registerFindHook(pn),this.registerFindHook(un),this.registerFindHook(hn),this.registerFindHook(ln),this.registerUploadHook(cn),this.registerUploadHook(fn)}return t.prototype.upload=function(t,e){"function"===typeof t&&(e=t,t=null),t&&this.add(t),this.queue.length?(e&&this.completes.push(e),this.ticking||(this.ticking=!0,dt.vB.system.addOnce(this.tick,this,dt.uF.UTILITY))):e&&e()},t.prototype.tick=function(){setTimeout(this.delayedTick,0)},t.prototype.prepareItems=function(){this.limiter.beginFrame();while(this.queue.length&&this.limiter.allowedToUpload()){var t=this.queue[0],e=!1;if(t&&!t._destroyed)for(var r=0,n=this.uploadHooks.length;r<n;r++)if(this.uploadHooks[r](this.uploadHookHelper,t)){this.queue.shift(),e=!0;break}e||this.queue.shift()}if(this.queue.length)dt.vB.system.addOnce(this.tick,this,dt.uF.UTILITY);else{this.ticking=!1;var i=this.completes.slice(0);this.completes.length=0;for(r=0,n=i.length;r<n;r++)i[r]()}},t.prototype.registerFindHook=function(t){return t&&this.addHooks.push(t),this},t.prototype.registerUploadHook=function(t){return t&&this.uploadHooks.push(t),this},t.prototype.add=function(t){for(var e=0,r=this.addHooks.length;e<r;e++)if(this.addHooks[e](t,this.queue))break;if(t instanceof et)for(e=t.children.length-1;e>=0;e--)this.add(t.children[e]);return this},t.prototype.destroy=function(){this.ticking&&dt.vB.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},t}();function vn(t,e){return e instanceof Rt.VL&&(e._glTextures[t.CONTEXT_UID]||t.texture.bind(e),!0)}function mn(t,e){if(!(e instanceof Gr))return!1;var r=e.geometry;e.finishPoly(),r.updateBatches();for(var n=r.batches,i=0;i<n.length;i++){var o=n[i].style.texture;o&&vn(t,o.baseTexture)}return r.batchable||t.geometry.bind(r,e._resolveDirectShader(t)),!0}function yn(t,e){return t instanceof Gr&&(e.push(t),!0)}var gn=function(t){function e(e){var r=t.call(this,e)||this;return r.uploadHookHelper=r.renderer,r.registerFindHook(yn),r.registerUploadHook(vn),r.registerUploadHook(mn),r}return sn(e,t),e}(_n),En=(function(){function t(t){this.maxMilliseconds=t,this.frameStart=0}t.prototype.beginFrame=function(){this.frameStart=Date.now()},t.prototype.allowedToUpload=function(){return Date.now()-this.frameStart<this.maxMilliseconds}}(),function(){function t(t,e,r){void 0===r&&(r=null),this._texture=t instanceof Rt.xE?t:null,this.baseTexture=t instanceof Rt.VL?t:this._texture.baseTexture,this.textures={},this.animations={},this.data=e;var n=this.baseTexture.resource;this.resolution=this._updateResolution(r||(n?n.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}return t.prototype._updateResolution=function(t){void 0===t&&(t=null);var e=this.data.meta.scale,r=(0,S.fL)(t,null);return null===r&&(r=void 0!==e?parseFloat(e):1),1!==r&&this.baseTexture.setResolution(r),r},t.prototype.parse=function(e){this._batchIndex=0,this._callback=e,this._frameKeys.length<=t.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()},t.prototype._processFrames=function(e){var r=e,n=t.BATCH_SIZE;while(r-e<n&&r<this._frameKeys.length){var i=this._frameKeys[r],o=this._frames[i],s=o.frame;if(s){var a=null,u=null,h=!1!==o.trimmed&&o.sourceSize?o.sourceSize:o.frame,l=new P.Ae(0,0,Math.floor(h.w)/this.resolution,Math.floor(h.h)/this.resolution);a=o.rotated?new P.Ae(Math.floor(s.x)/this.resolution,Math.floor(s.y)/this.resolution,Math.floor(s.h)/this.resolution,Math.floor(s.w)/this.resolution):new P.Ae(Math.floor(s.x)/this.resolution,Math.floor(s.y)/this.resolution,Math.floor(s.w)/this.resolution,Math.floor(s.h)/this.resolution),!1!==o.trimmed&&o.spriteSourceSize&&(u=new P.Ae(Math.floor(o.spriteSourceSize.x)/this.resolution,Math.floor(o.spriteSourceSize.y)/this.resolution,Math.floor(s.w)/this.resolution,Math.floor(s.h)/this.resolution)),this.textures[i]=new Rt.xE(this.baseTexture,a,l,u,o.rotated?2:0,o.anchor),Rt.xE.addToCache(this.textures[i],i)}r++}},t.prototype._processAnimations=function(){var t=this.data.animations||{};for(var e in t){this.animations[e]=[];for(var r=0;r<t[e].length;r++){var n=t[e][r];this.animations[e].push(this.textures[n])}}},t.prototype._parseComplete=function(){var t=this._callback;this._callback=null,this._batchIndex=0,t.call(this,this.textures)},t.prototype._nextBatch=function(){var e=this;this._processFrames(this._batchIndex*t.BATCH_SIZE),this._batchIndex++,setTimeout((function(){e._batchIndex*t.BATCH_SIZE<e._frameKeys.length?e._nextBatch():(e._processAnimations(),e._parseComplete())}),0)},t.prototype.destroy=function(t){var e;for(var r in void 0===t&&(t=!1),this.textures)this.textures[r].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,t&&(null===(e=this._texture)||void 0===e||e.destroy(),this.baseTexture.destroy()),this._texture=null,this.baseTexture=null},t.BATCH_SIZE=1e3,t}()),Tn=function(){function t(){}return t.use=function(e,r){var n,i,o=this,s=e.name+"_image";if(e.data&&e.type===Vt.TYPE.JSON&&e.data.frames&&!o.resources[s]){var a=null===(i=null===(n=e.data)||void 0===n?void 0:n.meta)||void 0===i?void 0:i.related_multi_packs;if(Array.isArray(a))for(var u=function(t){if("string"!==typeof t)return"continue";var r=t.replace(".json",""),n=S.HQ.resolve(e.url.replace(o.baseUrl,""),t);if(o.resources[r]||Object.values(o.resources).some((function(t){return S.HQ.format(S.HQ.parse(t.url))===n})))return"continue";var i={crossOrigin:e.crossOrigin,loadType:Vt.LOAD_TYPE.XHR,xhrType:Vt.XHR_RESPONSE_TYPE.JSON,parentResource:e,metadata:e.metadata};o.add(r,n,i)},h=0,l=a;h<l.length;h++){var c=l[h];u(c)}var f={crossOrigin:e.crossOrigin,metadata:e.metadata.imageMetadata,parentResource:e},d=t.getResourcePath(e,o.baseUrl);o.add(s,d,f,(function(t){if(t.error)r(t.error);else{var n=new En(t.texture,e.data,e.url);n.parse((function(){e.spritesheet=n,e.textures=n.textures,r()}))}}))}else r()},t.getResourcePath=function(t,e){return t.isDataUrl?t.data.meta.image:S.HQ.resolve(t.url.replace(e,""),t.data.meta.image)},t}(),bn=function(t,e){return bn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},bn(t,e)};function xn(t,e){function r(){this.constructor=t}bn(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Rn=new P.E9,An=(function(t){function e(e,r,n){void 0===r&&(r=100),void 0===n&&(n=100);var i=t.call(this,e)||this;return i.tileTransform=new P.wx,i._width=r,i._height=n,i.uvMatrix=i.texture.uvMatrix||new Rt.UX(e),i.pluginName="tilingSprite",i.uvRespectAnchor=!1,i}xn(e,t),Object.defineProperty(e.prototype,"clampMargin",{get:function(){return this.uvMatrix.clampMargin},set:function(t){this.uvMatrix.clampMargin=t,this.uvMatrix.update(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tileScale",{get:function(){return this.tileTransform.scale},set:function(t){this.tileTransform.scale.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tilePosition",{get:function(){return this.tileTransform.position},set:function(t){this.tileTransform.position.copyFrom(t)},enumerable:!1,configurable:!0}),e.prototype._onTextureUpdate=function(){this.uvMatrix&&(this.uvMatrix.texture=this._texture),this._cachedTint=16777215},e.prototype._render=function(t){var e=this._texture;e&&e.valid&&(this.tileTransform.updateLocalTransform(),this.uvMatrix.update(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this))},e.prototype._calculateBounds=function(){var t=this._width*-this._anchor._x,e=this._height*-this._anchor._y,r=this._width*(1-this._anchor._x),n=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,t,e,r,n)},e.prototype.getLocalBounds=function(e){return 0===this.children.length?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._y),e||(this._localBoundsRect||(this._localBoundsRect=new P.Ae),e=this._localBoundsRect),this._bounds.getRectangle(e)):t.prototype.getLocalBounds.call(this,e)},e.prototype.containsPoint=function(t){this.worldTransform.applyInverse(t,Rn);var e=this._width,r=this._height,n=-e*this.anchor._x;if(Rn.x>=n&&Rn.x<n+e){var i=-r*this.anchor._y;if(Rn.y>=i&&Rn.y<i+r)return!0}return!1},e.prototype.destroy=function(e){t.prototype.destroy.call(this,e),this.tileTransform=null,this.uvMatrix=null},e.from=function(t,r){var n=t instanceof Rt.xE?t:Rt.xE.from(t,r);return new e(n,r.width,r.height)},Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t},enumerable:!1,configurable:!0})}(Vr),"#version 100\n#define SHADER_NAME Tiling-Sprite-Simple-100\n\nprecision lowp float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\n vec4 texSample = texture2D(uSampler, vTextureCoord);\n gl_FragColor = texSample * uColor;\n}\n"),In="#version 100\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n",Sn="#version 100\n#ifdef GL_EXT_shader_texture_lod\n #extension GL_EXT_shader_texture_lod : enable\n#endif\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n vec2 unclamped = coord;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n #ifdef GL_EXT_shader_texture_lod\n vec4 texSample = unclamped == coord\n ? texture2D(uSampler, coord) \n : texture2DLodEXT(uSampler, coord, 0);\n #else\n vec4 texSample = texture2D(uSampler, coord);\n #endif\n\n gl_FragColor = texSample * uColor;\n}\n",On="#version 300 es\n#define SHADER_NAME Tiling-Sprite-300\n\nprecision lowp float;\n\nin vec2 aVertexPosition;\nin vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nout vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n",Pn="#version 300 es\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\nin vec2 vTextureCoord;\n\nout vec4 fragmentColor;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n vec2 unclamped = coord;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n vec4 texSample = texture(uSampler, coord, unclamped == coord ? 0.0f : -32.0f);// lod-bias very negative to force lod 0\n\n fragmentColor = texSample * uColor;\n}\n",Nn=new P.y3,Mn=function(t){function e(e){var r=t.call(this,e)||this;return e.runners.contextChange.add(r),r.quad=new Rt.ud,r.state=Rt.ZM.for2d(),r}return xn(e,t),e.prototype.contextChange=function(){var t=this.renderer,e={globals:t.globalUniforms};this.simpleShader=Rt.ex.from(In,An,e),this.shader=t.context.webGLVersion>1?Rt.ex.from(On,Pn,e):Rt.ex.from(In,Sn,e)},e.prototype.render=function(t){var e=this.renderer,r=this.quad,n=r.vertices;n[0]=n[6]=t._width*-t.anchor.x,n[1]=n[3]=t._height*-t.anchor.y,n[2]=n[4]=t._width*(1-t.anchor.x),n[5]=n[7]=t._height*(1-t.anchor.y);var i=t.uvRespectAnchor?t.anchor.x:0,o=t.uvRespectAnchor?t.anchor.y:0;n=r.uvs,n[0]=n[6]=-i,n[1]=n[3]=-o,n[2]=n[4]=1-i,n[5]=n[7]=1-o,r.invalidate();var s=t._texture,a=s.baseTexture,u=t.tileTransform.localTransform,h=t.uvMatrix,l=a.isPowerOfTwo&&s.frame.width===a.width&&s.frame.height===a.height;l&&(a._glTextures[e.CONTEXT_UID]?l=a.wrapMode!==se.Nt.CLAMP:a.wrapMode===se.Nt.CLAMP&&(a.wrapMode=se.Nt.REPEAT));var c=l?this.simpleShader:this.shader,f=s.width,d=s.height,p=t._width,_=t._height;Nn.set(u.a*f/p,u.b*f/_,u.c*d/p,u.d*d/_,u.tx/p,u.ty/_),Nn.invert(),l?Nn.prepend(h.mapCoord):(c.uniforms.uMapCoord=h.mapCoord.toArray(!0),c.uniforms.uClampFrame=h.uClampFrame,c.uniforms.uClampOffset=h.uClampOffset),c.uniforms.uTransform=Nn.toArray(!0),c.uniforms.uColor=(0,S.GT)(t.tint,t.worldAlpha,c.uniforms.uColor,a.alphaMode),c.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),c.uniforms.uSampler=s,e.shader.bind(c),e.geometry.bind(r),this.state.blendMode=(0,S.D)(t.blendMode,a.alphaMode),e.state.set(this.state),e.geometry.draw(this.renderer.gl.TRIANGLES,6,0)},e}(Rt.bO),wn=function(t,e){return wn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},wn(t,e)};function Dn(t,e){function r(){this.constructor=t}wn(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Cn=function(){function t(t,e){this.uvBuffer=t,this.uvMatrix=e,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}return t.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 e=this.uvBuffer.data;this.data&&this.data.length===e.length||(this.data=new Float32Array(e.length)),this.uvMatrix.multiplyUvs(e,this.data),this._updateID++}},t}(),Ln=new P.E9,Fn=new P.mg,Un=function(t){function e(e,r,n,i){void 0===i&&(i=se.lg.TRIANGLES);var o=t.call(this)||this;return o.geometry=e,o.shader=r,o.state=n||Rt.ZM.for2d(),o.drawMode=i,o.start=0,o.size=0,o.uvs=null,o.indices=null,o.vertexData=new Float32Array(1),o.vertexDirty=-1,o._transformID=-1,o._roundPixels=O.X.ROUND_PIXELS,o.batchUvs=null,o}return Dn(e,t),Object.defineProperty(e.prototype,"geometry",{get:function(){return this._geometry},set:function(t){this._geometry!==t&&(this._geometry&&(this._geometry.refCount--,0===this._geometry.refCount&&this._geometry.dispose()),this._geometry=t,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uvBuffer",{get:function(){return this.geometry.buffers[1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"verticesBuffer",{get:function(){return this.geometry.buffers[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"material",{get:function(){return this.shader},set:function(t){this.shader=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(t){this.state.blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(t){this._roundPixels!==t&&(this._transformID=-1),this._roundPixels=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tint",{get:function(){return"tint"in this.shader?this.shader.tint:null},set:function(t){this.shader.tint=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"texture",{get:function(){return"texture"in this.shader?this.shader.texture:null},set:function(t){this.shader.texture=t},enumerable:!1,configurable:!0}),e.prototype._render=function(t){var r=this.geometry.buffers[0].data,n=this.shader;n.batchable&&this.drawMode===se.lg.TRIANGLES&&r.length<2*e.BATCHABLE_SIZE?this._renderToBatch(t):this._renderDefault(t)},e.prototype._renderDefault=function(t){var e=this.shader;e.alpha=this.worldAlpha,e.update&&e.update(),t.batch.flush(),e.uniforms.translationMatrix=this.transform.worldTransform.toArray(!0),t.shader.bind(e),t.state.set(this.state),t.geometry.bind(this.geometry,e),t.geometry.draw(this.drawMode,this.size,this.start,this.geometry.instanceCount)},e.prototype._renderToBatch=function(t){var e=this.geometry,r=this.shader;r.uvMatrix&&(r.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=e.indexBuffer.data,this._tintRGB=r._tintRGB,this._texture=r.texture;var n=this.material.pluginName;t.batch.setObjectRenderer(t.plugins[n]),t.plugins[n].render(this)},e.prototype.calculateVertices=function(){var t=this.geometry,e=t.buffers[0],r=e.data,n=e._updateID;if(n!==this.vertexDirty||this._transformID!==this.transform._worldID){this._transformID=this.transform._worldID,this.vertexData.length!==r.length&&(this.vertexData=new Float32Array(r.length));for(var i=this.transform.worldTransform,o=i.a,s=i.b,a=i.c,u=i.d,h=i.tx,l=i.ty,c=this.vertexData,f=0;f<c.length/2;f++){var d=r[2*f],p=r[2*f+1];c[2*f]=o*d+a*p+h,c[2*f+1]=s*d+u*p+l}if(this._roundPixels){var _=O.X.RESOLUTION;for(f=0;f<c.length;++f)c[f]=Math.round((c[f]*_|0)/_)}this.vertexDirty=n}},e.prototype.calculateUvs=function(){var t=this.geometry.buffers[1],e=this.shader;e.uvMatrix.isSimple?this.uvs=t.data:(this.batchUvs||(this.batchUvs=new Cn(t,e.uvMatrix)),this.batchUvs.update(),this.uvs=this.batchUvs.data)},e.prototype._calculateBounds=function(){this.calculateVertices(),this._bounds.addVertexData(this.vertexData,0,this.vertexData.length)},e.prototype.containsPoint=function(t){if(!this.getBounds().contains(t.x,t.y))return!1;this.worldTransform.applyInverse(t,Ln);for(var e=this.geometry.getBuffer("aVertexPosition").data,r=Fn.points,n=this.geometry.getIndex().data,i=n.length,o=4===this.drawMode?3:1,s=0;s+2<i;s+=o){var a=2*n[s],u=2*n[s+1],h=2*n[s+2];if(r[0]=e[a],r[1]=e[a+1],r[2]=e[u],r[3]=e[u+1],r[4]=e[h],r[5]=e[h+1],Fn.contains(Ln.x,Ln.y))return!0}return!1},e.prototype.destroy=function(e){t.prototype.destroy.call(this,e),this._cachedTexture&&(this._cachedTexture.destroy(),this._cachedTexture=null),this.geometry=null,this.shader=null,this.state=null,this.uvs=null,this.indices=null,this.vertexData=null},e.BATCHABLE_SIZE=100,e}(et),Gn="varying vec2 vTextureCoord;\nuniform vec4 uColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;\n}\n",Bn="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTextureMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\n}\n",Xn=function(t){function e(e,r){var n=this,i={uSampler:e,alpha:1,uTextureMatrix:P.y3.IDENTITY,uColor:new Float32Array([1,1,1,1])};return r=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},r),r.uniforms&&Object.assign(i,r.uniforms),n=t.call(this,r.program||Rt.$r.from(Bn,Gn),i)||this,n._colorDirty=!1,n.uvMatrix=new Rt.UX(e),n.batchable=void 0===r.program,n.pluginName=r.pluginName,n.tint=r.tint,n.alpha=r.alpha,n}return Dn(e,t),Object.defineProperty(e.prototype,"texture",{get:function(){return this.uniforms.uSampler},set:function(t){this.uniforms.uSampler!==t&&(this.uniforms.uSampler=t,this.uvMatrix.texture=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this._alpha},set:function(t){t!==this._alpha&&(this._alpha=t,this._colorDirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tint",{get:function(){return this._tint},set:function(t){t!==this._tint&&(this._tint=t,this._tintRGB=(t>>16)+(65280&t)+((255&t)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),e.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var t=this.texture.baseTexture;(0,S.GT)(this._tint,this._alpha,this.uniforms.uColor,t.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},e}(Rt.ex),kn=function(t){function e(e,r,n){var i=t.call(this)||this,o=new Rt.lW(e),s=new Rt.lW(r,!0),a=new Rt.lW(n,!0,!0);return i.addAttribute("aVertexPosition",o,2,!1,se.vK.FLOAT).addAttribute("aTextureCoord",s,2,!1,se.vK.FLOAT).addIndex(a),i._updateId=-1,i}return Dn(e,t),Object.defineProperty(e.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),e}(Rt.ZX),Hn=function(t,e){return Hn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Hn(t,e)};function jn(t,e){function r(){this.constructor=t}Hn(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Vn=function(){function t(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}return t}(),Yn=function(){function t(){}return t.test=function(t){return"string"===typeof t&&0===t.indexOf("info face=")},t.parse=function(t){var e=t.match(/^[a-z]+\s+.+$/gm),r={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(var n in e){var i=e[n].match(/^[a-z]+/gm)[0],o=e[n].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),s={};for(var a in o){var u=o[a].split("="),h=u[0],l=u[1].replace(/"/gm,""),c=parseFloat(l),f=isNaN(c)?l:c;s[h]=f}r[i].push(s)}var d=new Vn;return r.info.forEach((function(t){return d.info.push({face:t.face,size:parseInt(t.size,10)})})),r.common.forEach((function(t){return d.common.push({lineHeight:parseInt(t.lineHeight,10)})})),r.page.forEach((function(t){return d.page.push({id:parseInt(t.id,10),file:t.file})})),r.char.forEach((function(t){return d.char.push({id:parseInt(t.id,10),page:parseInt(t.page,10),x:parseInt(t.x,10),y:parseInt(t.y,10),width:parseInt(t.width,10),height:parseInt(t.height,10),xoffset:parseInt(t.xoffset,10),yoffset:parseInt(t.yoffset,10),xadvance:parseInt(t.xadvance,10)})})),r.kerning.forEach((function(t){return d.kerning.push({first:parseInt(t.first,10),second:parseInt(t.second,10),amount:parseInt(t.amount,10)})})),r.distanceField.forEach((function(t){return d.distanceField.push({distanceRange:parseInt(t.distanceRange,10),fieldType:t.fieldType})})),d},t}(),Wn=function(){function t(){}return t.test=function(t){return t instanceof XMLDocument&&t.getElementsByTagName("page").length&&null!==t.getElementsByTagName("info")[0].getAttribute("face")},t.parse=function(t){for(var e=new Vn,r=t.getElementsByTagName("info"),n=t.getElementsByTagName("common"),i=t.getElementsByTagName("page"),o=t.getElementsByTagName("char"),s=t.getElementsByTagName("kerning"),a=t.getElementsByTagName("distanceField"),u=0;u<r.length;u++)e.info.push({face:r[u].getAttribute("face"),size:parseInt(r[u].getAttribute("size"),10)});for(u=0;u<n.length;u++)e.common.push({lineHeight:parseInt(n[u].getAttribute("lineHeight"),10)});for(u=0;u<i.length;u++)e.page.push({id:parseInt(i[u].getAttribute("id"),10)||0,file:i[u].getAttribute("file")});for(u=0;u<o.length;u++){var h=o[u];e.char.push({id:parseInt(h.getAttribute("id"),10),page:parseInt(h.getAttribute("page"),10)||0,x:parseInt(h.getAttribute("x"),10),y:parseInt(h.getAttribute("y"),10),width:parseInt(h.getAttribute("width"),10),height:parseInt(h.getAttribute("height"),10),xoffset:parseInt(h.getAttribute("xoffset"),10),yoffset:parseInt(h.getAttribute("yoffset"),10),xadvance:parseInt(h.getAttribute("xadvance"),10)})}for(u=0;u<s.length;u++)e.kerning.push({first:parseInt(s[u].getAttribute("first"),10),second:parseInt(s[u].getAttribute("second"),10),amount:parseInt(s[u].getAttribute("amount"),10)});for(u=0;u<a.length;u++)e.distanceField.push({fieldType:a[u].getAttribute("fieldType"),distanceRange:parseInt(a[u].getAttribute("distanceRange"),10)});return e},t}(),zn=function(){function t(){}return t.test=function(t){if("string"===typeof t&&t.indexOf("<font>")>-1){var e=(new globalThis.DOMParser).parseFromString(t,"text/xml");return Wn.test(e)}return!1},t.parse=function(t){var e=(new globalThis.DOMParser).parseFromString(t,"text/xml");return Wn.parse(e)},t}(),qn=[Yn,Wn,zn];function Kn(t){for(var e=0;e<qn.length;e++)if(qn[e].test(t))return qn[e];return null}function $n(t,e,r,n,i,o){var s,a=r.fill;if(!Array.isArray(a))return a;if(1===a.length)return a[0];var u=r.dropShadow?r.dropShadowDistance:0,h=r.padding||0,l=t.width/n-u-2*h,c=t.height/n-u-2*h,f=a.slice(),d=r.fillGradientStops.slice();if(!d.length)for(var p=f.length+1,_=1;_<p;++_)d.push(_/p);if(f.unshift(a[0]),d.unshift(0),f.push(a[a.length-1]),d.push(1),r.fillGradientType===kr.LINEAR_VERTICAL){s=e.createLinearGradient(l/2,h,l/2,c+h);var v=0,m=o.fontProperties.fontSize+r.strokeThickness,y=m/c;for(_=0;_<i.length;_++)for(var g=o.lineHeight*_,E=0;E<f.length;E++){var T=0;T="number"===typeof d[E]?d[E]:E/f.length;var b=g/c+T*y,x=Math.max(v,b);x=Math.min(x,1),s.addColorStop(x,f[E]),v=x}}else{s=e.createLinearGradient(h,c/2,l+h,c/2);var R=f.length+1,A=1;for(_=0;_<f.length;_++){var I=void 0;I="number"===typeof d[_]?d[_]:A/R,s.addColorStop(I,f[_]),A++}}return s}function Zn(t,e,r,n,i,o,s){var a=r.text,u=r.fontProperties;e.translate(n,i),e.scale(o,o);var h=s.strokeThickness/2,l=-s.strokeThickness/2;if(e.font=s.toFontString(),e.lineWidth=s.strokeThickness,e.textBaseline=s.textBaseline,e.lineJoin=s.lineJoin,e.miterLimit=s.miterLimit,e.fillStyle=$n(t,e,s,o,[a],r),e.strokeStyle=s.stroke,s.dropShadow){var c=s.dropShadowColor,f=(0,S.wK)("number"===typeof c?c:(0,S.qm)(c)),d=s.dropShadowBlur*o,p=s.dropShadowDistance*o;e.shadowColor="rgba("+255*f[0]+","+255*f[1]+","+255*f[2]+","+s.dropShadowAlpha+")",e.shadowBlur=d,e.shadowOffsetX=Math.cos(s.dropShadowAngle)*p,e.shadowOffsetY=Math.sin(s.dropShadowAngle)*p}else e.shadowColor="black",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0;s.stroke&&s.strokeThickness&&e.strokeText(a,h,l+r.lineHeight-u.descent),s.fill&&e.fillText(a,h,l+r.lineHeight-u.descent),e.setTransform(1,0,0,1,0,0),e.fillStyle="rgba(0, 0, 0, 0)"}function Jn(t){return Array.from?Array.from(t):t.split("")}function Qn(t){"string"===typeof t&&(t=[t]);for(var e=[],r=0,n=t.length;r<n;r++){var i=t[r];if(Array.isArray(i)){if(2!==i.length)throw new Error("[BitmapFont]: Invalid character range length, expecting 2 got "+i.length+".");var o=i[0].charCodeAt(0),s=i[1].charCodeAt(0);if(s<o)throw new Error("[BitmapFont]: Invalid character range.");for(var a=o,u=s;a<=u;a++)e.push(String.fromCharCode(a))}else e.push.apply(e,Jn(i))}if(0===e.length)throw new Error("[BitmapFont]: Empty set when resolving characters.");return e}function ti(t){return t.codePointAt?t.codePointAt(0):t.charCodeAt(0)}var ei=function(){function t(t,e,r){var n,i,o=t.info[0],s=t.common[0],a=t.page[0],u=t.distanceField[0],h=(0,S.fL)(a.file),l={};this._ownsTextures=r,this.font=o.face,this.size=o.size,this.lineHeight=s.lineHeight/h,this.chars={},this.pageTextures=l;for(var c=0;c<t.page.length;c++){var f=t.page[c],d=f.id,p=f.file;l[d]=e instanceof Array?e[c]:e[p],(null===u||void 0===u?void 0:u.fieldType)&&"none"!==u.fieldType&&(l[d].baseTexture.alphaMode=se.iw.NO_PREMULTIPLIED_ALPHA)}for(c=0;c<t.char.length;c++){var _=t.char[c],v=(d=_.id,_.page),m=t.char[c],y=m.x,g=m.y,E=m.width,T=m.height,b=m.xoffset,x=m.yoffset,R=m.xadvance;y/=h,g/=h,E/=h,T/=h,b/=h,x/=h,R/=h;var A=new P.Ae(y+l[v].frame.x/h,g+l[v].frame.y/h,E,T);this.chars[d]={xOffset:b,yOffset:x,xAdvance:R,kerning:{},texture:new Rt.xE(l[v].baseTexture,A),page:v}}for(c=0;c<t.kerning.length;c++){var I=t.kerning[c],O=I.first,N=I.second,M=I.amount;O/=h,N/=h,M/=h,this.chars[N]&&(this.chars[N].kerning[O]=M)}this.distanceFieldRange=null===u||void 0===u?void 0:u.distanceRange,this.distanceFieldType=null!==(i=null===(n=null===u||void 0===u?void 0:u.fieldType)||void 0===n?void 0:n.toLowerCase())&&void 0!==i?i:"none"}return t.prototype.destroy=function(){for(var t in this.chars)this.chars[t].texture.destroy(),this.chars[t].texture=null;for(var t in this.pageTextures)this._ownsTextures&&this.pageTextures[t].destroy(!0),this.pageTextures[t]=null;this.chars=null,this.pageTextures=null},t.install=function(e,r,n){var i;if(e instanceof Vn)i=e;else{var o=Kn(e);if(!o)throw new Error("Unrecognized data format for font.");i=o.parse(e)}r instanceof Rt.xE&&(r=[r]);var s=new t(i,r,n);return t.available[s.font]=s,s},t.uninstall=function(e){var r=t.available[e];if(!r)throw new Error("No font found named '"+e+"'");r.destroy(),delete t.available[e]},t.from=function(e,r,n){if(!e)throw new Error("[BitmapFont] Property `name` is required.");var i=Object.assign({},t.defaultOptions,n),o=i.chars,s=i.padding,a=i.resolution,u=i.textureWidth,h=i.textureHeight,l=Qn(o),c=r instanceof Kr?r:new Kr(r),f=u,d=new Vn;d.info[0]={face:c.fontFamily,size:c.fontSize},d.common[0]={lineHeight:c.fontSize};for(var p,_,v,m=0,y=0,g=0,E=[],T=0;T<l.length;T++){p||(p=document.createElement("canvas"),p.width=u,p.height=h,_=p.getContext("2d"),v=new Rt.VL(p,{resolution:a}),E.push(new Rt.xE(v)),d.page.push({id:E.length-1,file:""}));var b=tn.measureText(l[T],c,!1,p),x=b.width,R=Math.ceil(b.height),A=Math.ceil(("italic"===c.fontStyle?2:1)*x);if(y>=h-R*a){if(0===y)throw new Error("[BitmapFont] textureHeight "+h+"px is too small for "+c.fontSize+"px fonts");--T,p=null,_=null,v=null,y=0,m=0,g=0}else if(g=Math.max(R+b.fontProperties.descent,g),A*a+m>=f)--T,y+=g*a,y=Math.ceil(y),m=0,g=0;else{Zn(p,_,b,m,y,a,c);var I=ti(b.text);d.char.push({id:I,page:E.length-1,x:m/a,y:y/a,width:A,height:R,xoffset:0,yoffset:0,xadvance:Math.ceil(x-(c.dropShadow?c.dropShadowDistance:0)-(c.stroke?c.strokeThickness:0))}),m+=(A+2*s)*a,m=Math.ceil(m)}}T=0;for(var S=l.length;T<S;T++)for(var O=l[T],P=0;P<S;P++){var N=l[P],M=_.measureText(O).width,w=_.measureText(N).width,D=_.measureText(O+N).width,C=D-(M+w);C&&d.kerning.push({first:ti(O),second:ti(N),amount:C})}var L=new t(d,E,!0);return void 0!==t.available[e]&&t.uninstall(e),t.available[e]=L,L},t.ALPHA=[["a","z"],["A","Z"]," "],t.NUMERIC=[["0","9"]],t.ALPHANUMERIC=[["a","z"],["A","Z"],["0","9"]," "],t.ASCII=[[" ","~"]],t.defaultOptions={resolution:1,textureWidth:512,textureHeight:512,padding:4,chars:t.ALPHANUMERIC},t.available={},t}(),ri="// Pixi texture info\r\nvarying vec2 vTextureCoord;\r\nuniform sampler2D uSampler;\r\n\r\n// Tint\r\nuniform vec4 uColor;\r\n\r\n// on 2D applications fwidth is screenScale / glyphAtlasScale * distanceFieldRange\r\nuniform float uFWidth;\r\n\r\nvoid main(void) {\r\n\r\n // To stack MSDF and SDF we need a non-pre-multiplied-alpha texture.\r\n vec4 texColor = texture2D(uSampler, vTextureCoord);\r\n\r\n // MSDF\r\n float median = texColor.r + texColor.g + texColor.b -\r\n min(texColor.r, min(texColor.g, texColor.b)) -\r\n max(texColor.r, max(texColor.g, texColor.b));\r\n // SDF\r\n median = min(median, texColor.a);\r\n\r\n float screenPxDistance = uFWidth * (median - 0.5);\r\n float alpha = clamp(screenPxDistance + 0.5, 0.0, 1.0);\r\n\r\n // NPM Textures, NPM outputs\r\n gl_FragColor = vec4(uColor.rgb, uColor.a * alpha);\r\n\r\n}\r\n",ni="// Mesh material default fragment\r\nattribute vec2 aVertexPosition;\r\nattribute vec2 aTextureCoord;\r\n\r\nuniform mat3 projectionMatrix;\r\nuniform mat3 translationMatrix;\r\nuniform mat3 uTextureMatrix;\r\n\r\nvarying vec2 vTextureCoord;\r\n\r\nvoid main(void)\r\n{\r\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\r\n\r\n vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\r\n}\r\n",ii=[],oi=[],si=[],ai=(function(t){function e(r,n){void 0===n&&(n={});var i=t.call(this)||this;i._tint=16777215;var o=Object.assign({},e.styleDefaults,n),s=o.align,a=o.tint,u=o.maxWidth,h=o.letterSpacing,l=o.fontName,c=o.fontSize;if(!ei.available[l])throw new Error('Missing BitmapFont "'+l+'"');return i._activePagesMeshData=[],i._textWidth=0,i._textHeight=0,i._align=s,i._tint=a,i._fontName=l,i._fontSize=c||ei.available[l].size,i._text=r,i._maxWidth=u,i._maxLineHeight=0,i._letterSpacing=h,i._anchor=new P.AB((function(){i.dirty=!0}),i,0,0),i._roundPixels=O.X.ROUND_PIXELS,i.dirty=!0,i._textureCache={},i}jn(e,t),e.prototype.updateText=function(){for(var t,e=ei.available[this._fontName],r=this._fontSize/e.size,n=new P.E9,i=[],o=[],s=[],a=this._text.replace(/(?:\r\n|\r)/g,"\n")||" ",u=Jn(a),h=this._maxWidth*e.size/this._fontSize,l="none"===e.distanceFieldType?ii:oi,c=null,f=0,d=0,p=0,_=-1,v=0,m=0,y=0,g=0,E=0;E<u.length;E++){var T=u[E],b=ti(T);if(/(?:\s)/.test(T)&&(_=E,v=f,g++),"\r"!==T&&"\n"!==T){var x=e.chars[b];if(x){c&&x.kerning[c]&&(n.x+=x.kerning[c]);var R=si.pop()||{texture:Rt.xE.EMPTY,line:0,charCode:0,prevSpaces:0,position:new P.E9};R.texture=x.texture,R.line=p,R.charCode=b,R.position.x=n.x+x.xOffset+this._letterSpacing/2,R.position.y=n.y+x.yOffset,R.prevSpaces=g,i.push(R),f=R.position.x+Math.max(x.xAdvance,x.texture.orig.width),n.x+=x.xAdvance+this._letterSpacing,y=Math.max(y,x.yOffset+x.texture.height),c=b,-1!==_&&h>0&&n.x>h&&(++m,(0,S.Er)(i,1+_-m,1+E-_),E=_,_=-1,o.push(v),s.push(i.length>0?i[i.length-1].prevSpaces:0),d=Math.max(d,v),p++,n.x=0,n.y+=e.lineHeight,c=null,g=0)}}else o.push(f),s.push(-1),d=Math.max(d,f),++p,++m,n.x=0,n.y+=e.lineHeight,c=null,g=0}var A=u[u.length-1];"\r"!==A&&"\n"!==A&&(/(?:\s)/.test(A)&&(f=v),o.push(f),d=Math.max(d,f),s.push(-1));var I=[];for(E=0;E<=p;E++){var O=0;"right"===this._align?O=d-o[E]:"center"===this._align?O=(d-o[E])/2:"justify"===this._align&&(O=s[E]<0?0:(d-o[E])/s[E]),I.push(O)}var N=i.length,M={},w=[],D=this._activePagesMeshData;for(E=0;E<D.length;E++)l.push(D[E]);for(E=0;E<N;E++){var C=i[E].texture,L=C.baseTexture.uid;if(!M[L]){var F=l.pop();if(!F){var U=new kn,G=void 0,B=void 0;"none"===e.distanceFieldType?(G=new Xn(Rt.xE.EMPTY),B=se.T$.NORMAL):(G=new Xn(Rt.xE.EMPTY,{program:Rt.$r.from(ni,ri),uniforms:{uFWidth:0}}),B=se.T$.NORMAL_NPM);var X=new Un(U,G);X.blendMode=B,F={index:0,indexCount:0,vertexCount:0,uvsCount:0,total:0,mesh:X,vertices:null,uvs:null,indices:null}}F.index=0,F.indexCount=0,F.vertexCount=0,F.uvsCount=0,F.total=0;var k=this._textureCache;k[L]=k[L]||new Rt.xE(C.baseTexture),F.mesh.texture=k[L],F.mesh.tint=this._tint,w.push(F),M[L]=F}M[L].total++}for(E=0;E<D.length;E++)-1===w.indexOf(D[E])&&this.removeChild(D[E].mesh);for(E=0;E<w.length;E++)w[E].mesh.parent!==this&&this.addChild(w[E].mesh);for(var E in this._activePagesMeshData=w,M){F=M[E];var H=F.total;if(!((null===(t=F.indices)||void 0===t?void 0:t.length)>6*H)||F.vertices.length<2*Un.BATCHABLE_SIZE)F.vertices=new Float32Array(8*H),F.uvs=new Float32Array(8*H),F.indices=new Uint16Array(6*H);else for(var j=F.total,V=F.vertices,Y=4*j*2;Y<V.length;Y++)V[Y]=0;F.mesh.size=6*H}for(E=0;E<N;E++){T=i[E];var W=T.position.x+I[T.line]*("justify"===this._align?T.prevSpaces:1);this._roundPixels&&(W=Math.round(W));var z=W*r,q=T.position.y*r,K=(C=T.texture,M[C.baseTexture.uid]),$=C.frame,Z=C._uvs,J=K.index++;K.indices[6*J+0]=0+4*J,K.indices[6*J+1]=1+4*J,K.indices[6*J+2]=2+4*J,K.indices[6*J+3]=0+4*J,K.indices[6*J+4]=2+4*J,K.indices[6*J+5]=3+4*J,K.vertices[8*J+0]=z,K.vertices[8*J+1]=q,K.vertices[8*J+2]=z+$.width*r,K.vertices[8*J+3]=q,K.vertices[8*J+4]=z+$.width*r,K.vertices[8*J+5]=q+$.height*r,K.vertices[8*J+6]=z,K.vertices[8*J+7]=q+$.height*r,K.uvs[8*J+0]=Z.x0,K.uvs[8*J+1]=Z.y0,K.uvs[8*J+2]=Z.x1,K.uvs[8*J+3]=Z.y1,K.uvs[8*J+4]=Z.x2,K.uvs[8*J+5]=Z.y2,K.uvs[8*J+6]=Z.x3,K.uvs[8*J+7]=Z.y3}for(var E in this._textWidth=d*r,this._textHeight=(n.y+e.lineHeight)*r,M){F=M[E];if(0!==this.anchor.x||0!==this.anchor.y)for(var Q=0,tt=this._textWidth*this.anchor.x,et=this._textHeight*this.anchor.y,rt=0;rt<F.total;rt++)F.vertices[Q++]-=tt,F.vertices[Q++]-=et,F.vertices[Q++]-=tt,F.vertices[Q++]-=et,F.vertices[Q++]-=tt,F.vertices[Q++]-=et,F.vertices[Q++]-=tt,F.vertices[Q++]-=et;this._maxLineHeight=y*r;var nt=F.mesh.geometry.getBuffer("aVertexPosition"),it=F.mesh.geometry.getBuffer("aTextureCoord"),ot=F.mesh.geometry.getIndex();nt.data=F.vertices,it.data=F.uvs,ot.data=F.indices,nt.update(),it.update(),ot.update()}for(E=0;E<i.length;E++)si.push(i[E])},e.prototype.updateTransform=function(){this.validate(),this.containerUpdateTransform()},e.prototype._render=function(e){var r=ei.available[this._fontName],n=r.distanceFieldRange,i=r.distanceFieldType,o=r.size;if("none"!==i)for(var s=this.worldTransform,a=s.a,u=s.b,h=s.c,l=s.d,c=Math.sqrt(a*a+u*u),f=Math.sqrt(h*h+l*l),d=(Math.abs(c)+Math.abs(f))/2,p=this._fontSize/o,_=0,v=this._activePagesMeshData;_<v.length;_++){var m=v[_];m.mesh.shader.uniforms.uFWidth=d*n*p*e.resolution}t.prototype._render.call(this,e)},e.prototype.getLocalBounds=function(){return this.validate(),t.prototype.getLocalBounds.call(this)},e.prototype.validate=function(){this.dirty&&(this.updateText(),this.dirty=!1)},Object.defineProperty(e.prototype,"tint",{get:function(){return this._tint},set:function(t){if(this._tint!==t){this._tint=t;for(var e=0;e<this._activePagesMeshData.length;e++)this._activePagesMeshData[e].mesh.tint=t}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this._align},set:function(t){this._align!==t&&(this._align=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontName",{get:function(){return this._fontName},set:function(t){if(!ei.available[t])throw new Error('Missing BitmapFont "'+t+'"');this._fontName!==t&&(this._fontName=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize!==t&&(this._fontSize=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"anchor",{get:function(){return this._anchor},set:function(t){"number"===typeof t?this._anchor.set(t):this._anchor.copyFrom(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){t=String(null===t||void 0===t?"":t),this._text!==t&&(this._text=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxWidth",{get:function(){return this._maxWidth},set:function(t){this._maxWidth!==t&&(this._maxWidth=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxLineHeight",{get:function(){return this.validate(),this._maxLineHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textWidth",{get:function(){return this.validate(),this._textWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"letterSpacing",{get:function(){return this._letterSpacing},set:function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(t){t!==this._roundPixels&&(this._roundPixels=t,this.dirty=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textHeight",{get:function(){return this.validate(),this._textHeight},enumerable:!1,configurable:!0}),e.prototype.destroy=function(e){var r=this._textureCache;for(var n in r){var i=r[n];i.destroy(),delete r[n]}this._textureCache=null,t.prototype.destroy.call(this,e)},e.styleDefaults={align:"left",tint:16777215,maxWidth:0,letterSpacing:0}}(et),function(){function t(){}return t.add=function(){Vt.setExtensionXhrType("fnt",Vt.XHR_RESPONSE_TYPE.TEXT)},t.use=function(e,r){var n=Kn(e.data);if(n)for(var i=t.getBaseUrl(this,e),o=n.parse(e.data),s={},a=function(t){s[t.metadata.pageFile]=t.texture,Object.keys(s).length===o.page.length&&(e.bitmapFont=ei.install(o,s,!0),r())},u=0;u<o.page.length;++u){var h=o.page[u].file,l=i+h,c=!1;for(var f in this.resources){var d=this.resources[f];if(d.url===l){d.metadata.pageFile=h,d.texture?a(d):d.onAfterMiddleware.add(a),c=!0;break}}if(!c){var p={crossOrigin:e.crossOrigin,loadType:Vt.LOAD_TYPE.IMAGE,metadata:Object.assign({pageFile:h},e.metadata.imageMetadata),parentResource:e};this.add(l,p,a)}}else r()},t.getBaseUrl=function(e,r){var n=r.isDataUrl?"":t.dirname(r.url);return r.isDataUrl&&("."===n&&(n=""),e.baseUrl&&n&&"/"===e.baseUrl.charAt(e.baseUrl.length-1)&&(n+="/")),n=n.replace(e.baseUrl,""),n&&"/"!==n.charAt(n.length-1)&&(n+="/"),n},t.dirname=function(t){var e=t.replace(/\\/g,"/").replace(/\/$/,"").replace(/\/[^\/]*$/,"");return e===t?".":""===e?"/":e},t}()),ui=function(t,e){return ui=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},ui(t,e)};function hi(t,e){function r(){this.constructor=t}ui(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var li="varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float uAlpha;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;\n}\n",ci=(function(t){function e(e){void 0===e&&(e=1);var r=t.call(this,Rt.kP,li,{uAlpha:1})||this;return r.alpha=e,r}hi(e,t),Object.defineProperty(e.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(t){this.uniforms.uAlpha=t},enumerable:!1,configurable:!0})}(Rt.wn),function(t,e){return ci=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},ci(t,e)});function fi(t,e){function r(){this.constructor=t}ci(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var di="\n attribute vec2 aVertexPosition;\n\n uniform mat3 projectionMatrix;\n\n uniform float strength;\n\n varying vec2 vBlurTexCoords[%size%];\n\n uniform vec4 inputSize;\n uniform vec4 outputFrame;\n\n vec4 filterVertexPosition( void )\n {\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n }\n\n vec2 filterTextureCoord( void )\n {\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n }\n\n void main(void)\n {\n gl_Position = filterVertexPosition();\n\n vec2 textureCoord = filterTextureCoord();\n %blur%\n }";function pi(t,e){var r,n=Math.ceil(t/2),i=di,o="";r=e?"vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);":"vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";for(var s=0;s<t;s++){var a=r.replace("%index%",s.toString());a=a.replace("%sampleIndex%",s-(n-1)+".0"),o+=a,o+="\n"}return i=i.replace("%blur%",o),i=i.replace("%size%",t.toString()),i}var _i,vi,mi,yi,gi,Ei,Ti,bi,xi,Ri,Ai,Ii,Si,Oi,Pi,Ni,Mi,wi,Di,Ci={5:[.153388,.221461,.250301],7:[.071303,.131514,.189879,.214607],9:[.028532,.067234,.124009,.179044,.20236],11:[.0093,.028002,.065984,.121703,.175713,.198596],13:[.002406,.009255,.027867,.065666,.121117,.174868,.197641],15:[489e-6,.002403,.009246,.02784,.065602,.120999,.174697,.197448]},Li=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{"," gl_FragColor = vec4(0.0);"," %blur%","}"].join("\n");function Fi(t){for(var e,r=Ci[t],n=r.length,i=Li,o="",s="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;",a=0;a<t;a++){var u=s.replace("%index%",a.toString());e=a,a>=n&&(e=t-a-1),u=u.replace("%value%",r[e].toString()),o+=u,o+="\n"}return i=i.replace("%blur%",o),i=i.replace("%size%",t.toString()),i}
/*!
* @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
*/(function(t){t[t["WEBGL_LEGACY"]=0]="WEBGL_LEGACY",t[t["WEBGL"]=1]="WEBGL",t[t["WEBGL2"]=2]="WEBGL2"})(_i||(_i={})),function(t){t[t["UNKNOWN"]=0]="UNKNOWN",t[t["WEBGL"]=1]="WEBGL",t[t["CANVAS"]=2]="CANVAS"}(vi||(vi={})),function(t){t[t["COLOR"]=16384]="COLOR",t[t["DEPTH"]=256]="DEPTH",t[t["STENCIL"]=1024]="STENCIL"}(mi||(mi={})),function(t){t[t["NORMAL"]=0]="NORMAL",t[t["ADD"]=1]="ADD",t[t["MULTIPLY"]=2]="MULTIPLY",t[t["SCREEN"]=3]="SCREEN",t[t["OVERLAY"]=4]="OVERLAY",t[t["DARKEN"]=5]="DARKEN",t[t["LIGHTEN"]=6]="LIGHTEN",t[t["COLOR_DODGE"]=7]="COLOR_DODGE",t[t["COLOR_BURN"]=8]="COLOR_BURN",t[t["HARD_LIGHT"]=9]="HARD_LIGHT",t[t["SOFT_LIGHT"]=10]="SOFT_LIGHT",t[t["DIFFERENCE"]=11]="DIFFERENCE",t[t["EXCLUSION"]=12]="EXCLUSION",t[t["HUE"]=13]="HUE",t[t["SATURATION"]=14]="SATURATION",t[t["COLOR"]=15]="COLOR",t[t["LUMINOSITY"]=16]="LUMINOSITY",t[t["NORMAL_NPM"]=17]="NORMAL_NPM",t[t["ADD_NPM"]=18]="ADD_NPM",t[t["SCREEN_NPM"]=19]="SCREEN_NPM",t[t["NONE"]=20]="NONE",t[t["SRC_OVER"]=0]="SRC_OVER",t[t["SRC_IN"]=21]="SRC_IN",t[t["SRC_OUT"]=22]="SRC_OUT",t[t["SRC_ATOP"]=23]="SRC_ATOP",t[t["DST_OVER"]=24]="DST_OVER",t[t["DST_IN"]=25]="DST_IN",t[t["DST_OUT"]=26]="DST_OUT",t[t["DST_ATOP"]=27]="DST_ATOP",t[t["ERASE"]=26]="ERASE",t[t["SUBTRACT"]=28]="SUBTRACT",t[t["XOR"]=29]="XOR"}(yi||(yi={})),function(t){t[t["POINTS"]=0]="POINTS",t[t["LINES"]=1]="LINES",t[t["LINE_LOOP"]=2]="LINE_LOOP",t[t["LINE_STRIP"]=3]="LINE_STRIP",t[t["TRIANGLES"]=4]="TRIANGLES",t[t["TRIANGLE_STRIP"]=5]="TRIANGLE_STRIP",t[t["TRIANGLE_FAN"]=6]="TRIANGLE_FAN"}(gi||(gi={})),function(t){t[t["RGBA"]=6408]="RGBA",t[t["RGB"]=6407]="RGB",t[t["RG"]=33319]="RG",t[t["RED"]=6403]="RED",t[t["RGBA_INTEGER"]=36249]="RGBA_INTEGER",t[t["RGB_INTEGER"]=36248]="RGB_INTEGER",t[t["RG_INTEGER"]=33320]="RG_INTEGER",t[t["RED_INTEGER"]=36244]="RED_INTEGER",t[t["ALPHA"]=6406]="ALPHA",t[t["LUMINANCE"]=6409]="LUMINANCE",t[t["LUMINANCE_ALPHA"]=6410]="LUMINANCE_ALPHA",t[t["DEPTH_COMPONENT"]=6402]="DEPTH_COMPONENT",t[t["DEPTH_STENCIL"]=34041]="DEPTH_STENCIL"}(Ei||(Ei={})),function(t){t[t["TEXTURE_2D"]=3553]="TEXTURE_2D",t[t["TEXTURE_CUBE_MAP"]=34067]="TEXTURE_CUBE_MAP",t[t["TEXTURE_2D_ARRAY"]=35866]="TEXTURE_2D_ARRAY",t[t["TEXTURE_CUBE_MAP_POSITIVE_X"]=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t["TEXTURE_CUBE_MAP_NEGATIVE_X"]=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t["TEXTURE_CUBE_MAP_POSITIVE_Y"]=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t["TEXTURE_CUBE_MAP_NEGATIVE_Y"]=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t["TEXTURE_CUBE_MAP_POSITIVE_Z"]=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t["TEXTURE_CUBE_MAP_NEGATIVE_Z"]=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(Ti||(Ti={})),function(t){t[t["UNSIGNED_BYTE"]=5121]="UNSIGNED_BYTE",t[t["UNSIGNED_SHORT"]=5123]="UNSIGNED_SHORT",t[t["UNSIGNED_SHORT_5_6_5"]=33635]="UNSIGNED_SHORT_5_6_5",t[t["UNSIGNED_SHORT_4_4_4_4"]=32819]="UNSIGNED_SHORT_4_4_4_4",t[t["UNSIGNED_SHORT_5_5_5_1"]=32820]="UNSIGNED_SHORT_5_5_5_1",t[t["UNSIGNED_INT"]=5125]="UNSIGNED_INT",t[t["UNSIGNED_INT_10F_11F_11F_REV"]=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t["UNSIGNED_INT_2_10_10_10_REV"]=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t["UNSIGNED_INT_24_8"]=34042]="UNSIGNED_INT_24_8",t[t["UNSIGNED_INT_5_9_9_9_REV"]=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t["BYTE"]=5120]="BYTE",t[t["SHORT"]=5122]="SHORT",t[t["INT"]=5124]="INT",t[t["FLOAT"]=5126]="FLOAT",t[t["FLOAT_32_UNSIGNED_INT_24_8_REV"]=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t["HALF_FLOAT"]=36193]="HALF_FLOAT"}(bi||(bi={})),function(t){t[t["FLOAT"]=0]="FLOAT",t[t["INT"]=1]="INT",t[t["UINT"]=2]="UINT"}(xi||(xi={})),function(t){t[t["NEAREST"]=0]="NEAREST",t[t["LINEAR"]=1]="LINEAR"}(Ri||(Ri={})),function(t){t[t["CLAMP"]=33071]="CLAMP",t[t["REPEAT"]=10497]="REPEAT",t[t["MIRRORED_REPEAT"]=33648]="MIRRORED_REPEAT"}(Ai||(Ai={})),function(t){t[t["OFF"]=0]="OFF",t[t["POW2"]=1]="POW2",t[t["ON"]=2]="ON",t[t["ON_MANUAL"]=3]="ON_MANUAL"}(Ii||(Ii={})),function(t){t[t["NPM"]=0]="NPM",t[t["UNPACK"]=1]="UNPACK",t[t["PMA"]=2]="PMA",t[t["NO_PREMULTIPLIED_ALPHA"]=0]="NO_PREMULTIPLIED_ALPHA",t[t["PREMULTIPLY_ON_UPLOAD"]=1]="PREMULTIPLY_ON_UPLOAD",t[t["PREMULTIPLY_ALPHA"]=2]="PREMULTIPLY_ALPHA",t[t["PREMULTIPLIED_ALPHA"]=2]="PREMULTIPLIED_ALPHA"}(Si||(Si={})),function(t){t[t["NO"]=0]="NO",t[t["YES"]=1]="YES",t[t["AUTO"]=2]="AUTO",t[t["BLEND"]=0]="BLEND",t[t["CLEAR"]=1]="CLEAR",t[t["BLIT"]=2]="BLIT"}(Oi||(Oi={})),function(t){t[t["AUTO"]=0]="AUTO",t[t["MANUAL"]=1]="MANUAL"}(Pi||(Pi={})),function(t){t["LOW"]="lowp",t["MEDIUM"]="mediump",t["HIGH"]="highp"}(Ni||(Ni={})),function(t){t[t["NONE"]=0]="NONE",t[t["SCISSOR"]=1]="SCISSOR",t[t["STENCIL"]=2]="STENCIL",t[t["SPRITE"]=3]="SPRITE"}(Mi||(Mi={})),function(t){t[t["NONE"]=0]="NONE",t[t["LOW"]=2]="LOW",t[t["MEDIUM"]=4]="MEDIUM",t[t["HIGH"]=8]="HIGH"}(wi||(wi={})),function(t){t[t["ELEMENT_ARRAY_BUFFER"]=34963]="ELEMENT_ARRAY_BUFFER",t[t["ARRAY_BUFFER"]=34962]="ARRAY_BUFFER",t[t["UNIFORM_BUFFER"]=35345]="UNIFORM_BUFFER"}(Di||(Di={}));var Ui=function(t){function e(e,r,n,i,o){void 0===r&&(r=8),void 0===n&&(n=4),void 0===i&&(i=O.X.FILTER_RESOLUTION),void 0===o&&(o=5);var s=this,a=pi(o,e),u=Fi(o);return s=t.call(this,a,u)||this,s.horizontal=e,s.resolution=i,s._quality=0,s.quality=n,s.blur=r,s}return fi(e,t),e.prototype.apply=function(t,e,r,n){if(r?this.horizontal?this.uniforms.strength=1/r.width*(r.width/e.width):this.uniforms.strength=1/r.height*(r.height/e.height):this.horizontal?this.uniforms.strength=1/t.renderer.width*(t.renderer.width/e.width):this.uniforms.strength=1/t.renderer.height*(t.renderer.height/e.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)t.applyFilter(this,e,r,n);else{var i=t.getFilterTexture(),o=t.renderer,s=e,a=i;this.state.blend=!1,t.applyFilter(this,s,a,Oi.CLEAR);for(var u=1;u<this.passes-1;u++){t.bindAndClear(s,Oi.BLIT),this.uniforms.uSampler=a;var h=a;a=s,s=h,o.shader.bind(this),o.geometry.draw(5)}this.state.blend=!0,t.applyFilter(this,a,r,n),t.returnFilterTexture(i)}},Object.defineProperty(e.prototype,"blur",{get:function(){return this.strength},set:function(t){this.padding=1+2*Math.abs(t),this.strength=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return this._quality},set:function(t){this._quality=t,this.passes=t},enumerable:!1,configurable:!0}),e}(Rt.wn),Gi=(function(t){function e(e,r,n,i){void 0===e&&(e=8),void 0===r&&(r=4),void 0===n&&(n=O.X.FILTER_RESOLUTION),void 0===i&&(i=5);var o=t.call(this)||this;return o.blurXFilter=new Ui(!0,e,r,n,i),o.blurYFilter=new Ui(!1,e,r,n,i),o.resolution=n,o.quality=r,o.blur=e,o.repeatEdgePixels=!1,o}fi(e,t),e.prototype.apply=function(t,e,r,n){var i=Math.abs(this.blurXFilter.strength),o=Math.abs(this.blurYFilter.strength);if(i&&o){var s=t.getFilterTexture();this.blurXFilter.apply(t,e,s,Oi.CLEAR),this.blurYFilter.apply(t,s,r,n),t.returnFilterTexture(s)}else o?this.blurYFilter.apply(t,e,r,n):this.blurXFilter.apply(t,e,r,n)},e.prototype.updatePadding=function(){this._repeatEdgePixels?this.padding=0:this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))},Object.defineProperty(e.prototype,"blur",{get:function(){return this.blurXFilter.blur},set:function(t){this.blurXFilter.blur=this.blurYFilter.blur=t,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quality",{get:function(){return this.blurXFilter.quality},set:function(t){this.blurXFilter.quality=this.blurYFilter.quality=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurX",{get:function(){return this.blurXFilter.blur},set:function(t){this.blurXFilter.blur=t,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blurY",{get:function(){return this.blurYFilter.blur},set:function(t){this.blurYFilter.blur=t,this.updatePadding()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blendMode",{get:function(){return this.blurYFilter.blendMode},set:function(t){this.blurYFilter.blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"repeatEdgePixels",{get:function(){return this._repeatEdgePixels},set:function(t){this._repeatEdgePixels=t,this.updatePadding()},enumerable:!1,configurable:!0})}(Rt.wn),function(t,e){return Gi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Gi(t,e)});function Bi(t,e){function r(){this.constructor=t}Gi(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Xi="varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform float m[20];\nuniform float uAlpha;\n\nvoid main(void)\n{\n vec4 c = texture2D(uSampler, vTextureCoord);\n\n if (uAlpha == 0.0) {\n gl_FragColor = c;\n return;\n }\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (c.a > 0.0) {\n c.rgb /= c.a;\n }\n\n vec4 result;\n\n result.r = (m[0] * c.r);\n result.r += (m[1] * c.g);\n result.r += (m[2] * c.b);\n result.r += (m[3] * c.a);\n result.r += m[4];\n\n result.g = (m[5] * c.r);\n result.g += (m[6] * c.g);\n result.g += (m[7] * c.b);\n result.g += (m[8] * c.a);\n result.g += m[9];\n\n result.b = (m[10] * c.r);\n result.b += (m[11] * c.g);\n result.b += (m[12] * c.b);\n result.b += (m[13] * c.a);\n result.b += m[14];\n\n result.a = (m[15] * c.r);\n result.a += (m[16] * c.g);\n result.a += (m[17] * c.b);\n result.a += (m[18] * c.a);\n result.a += m[19];\n\n vec3 rgb = mix(c.rgb, result.rgb, uAlpha);\n\n // Premultiply alpha again.\n rgb *= result.a;\n\n gl_FragColor = vec4(rgb, result.a);\n}\n",ki=function(t){function e(){var e=this,r={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 e=t.call(this,Rt.Y9,Xi,r)||this,e.alpha=1,e}return Bi(e,t),e.prototype._loadMatrix=function(t,e){void 0===e&&(e=!1);var r=t;e&&(this._multiply(r,this.uniforms.m,t),r=this._colorMatrix(r)),this.uniforms.m=r},e.prototype._multiply=function(t,e,r){return t[0]=e[0]*r[0]+e[1]*r[5]+e[2]*r[10]+e[3]*r[15],t[1]=e[0]*r[1]+e[1]*r[6]+e[2]*r[11]+e[3]*r[16],t[2]=e[0]*r[2]+e[1]*r[7]+e[2]*r[12]+e[3]*r[17],t[3]=e[0]*r[3]+e[1]*r[8]+e[2]*r[13]+e[3]*r[18],t[4]=e[0]*r[4]+e[1]*r[9]+e[2]*r[14]+e[3]*r[19]+e[4],t[5]=e[5]*r[0]+e[6]*r[5]+e[7]*r[10]+e[8]*r[15],t[6]=e[5]*r[1]+e[6]*r[6]+e[7]*r[11]+e[8]*r[16],t[7]=e[5]*r[2]+e[6]*r[7]+e[7]*r[12]+e[8]*r[17],t[8]=e[5]*r[3]+e[6]*r[8]+e[7]*r[13]+e[8]*r[18],t[9]=e[5]*r[4]+e[6]*r[9]+e[7]*r[14]+e[8]*r[19]+e[9],t[10]=e[10]*r[0]+e[11]*r[5]+e[12]*r[10]+e[13]*r[15],t[11]=e[10]*r[1]+e[11]*r[6]+e[12]*r[11]+e[13]*r[16],t[12]=e[10]*r[2]+e[11]*r[7]+e[12]*r[12]+e[13]*r[17],t[13]=e[10]*r[3]+e[11]*r[8]+e[12]*r[13]+e[13]*r[18],t[14]=e[10]*r[4]+e[11]*r[9]+e[12]*r[14]+e[13]*r[19]+e[14],t[15]=e[15]*r[0]+e[16]*r[5]+e[17]*r[10]+e[18]*r[15],t[16]=e[15]*r[1]+e[16]*r[6]+e[17]*r[11]+e[18]*r[16],t[17]=e[15]*r[2]+e[16]*r[7]+e[17]*r[12]+e[18]*r[17],t[18]=e[15]*r[3]+e[16]*r[8]+e[17]*r[13]+e[18]*r[18],t[19]=e[15]*r[4]+e[16]*r[9]+e[17]*r[14]+e[18]*r[19]+e[19],t},e.prototype._colorMatrix=function(t){var e=new Float32Array(t);return e[4]/=255,e[9]/=255,e[14]/=255,e[19]/=255,e},e.prototype.brightness=function(t,e){var r=[t,0,0,0,0,0,t,0,0,0,0,0,t,0,0,0,0,0,1,0];this._loadMatrix(r,e)},e.prototype.tint=function(t,e){var r=t>>16&255,n=t>>8&255,i=255&t,o=[r/255,0,0,0,0,0,n/255,0,0,0,0,0,i/255,0,0,0,0,0,1,0];this._loadMatrix(o,e)},e.prototype.greyscale=function(t,e){var r=[t,t,t,0,0,t,t,t,0,0,t,t,t,0,0,0,0,0,1,0];this._loadMatrix(r,e)},e.prototype.blackAndWhite=function(t){var e=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.hue=function(t,e){t=(t||0)/180*Math.PI;var r=Math.cos(t),n=Math.sin(t),i=Math.sqrt,o=1/3,s=i(o),a=r+(1-r)*o,u=o*(1-r)-s*n,h=o*(1-r)+s*n,l=o*(1-r)+s*n,c=r+o*(1-r),f=o*(1-r)-s*n,d=o*(1-r)-s*n,p=o*(1-r)+s*n,_=r+o*(1-r),v=[a,u,h,0,0,l,c,f,0,0,d,p,_,0,0,0,0,0,1,0];this._loadMatrix(v,e)},e.prototype.contrast=function(t,e){var r=(t||0)+1,n=-.5*(r-1),i=[r,0,0,0,n,0,r,0,0,n,0,0,r,0,n,0,0,0,1,0];this._loadMatrix(i,e)},e.prototype.saturate=function(t,e){void 0===t&&(t=0);var r=2*t/3+1,n=-.5*(r-1),i=[r,n,n,0,0,n,r,n,0,0,n,n,r,0,0,0,0,0,1,0];this._loadMatrix(i,e)},e.prototype.desaturate=function(){this.saturate(-1)},e.prototype.negative=function(t){var e=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.sepia=function(t){var e=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.technicolor=function(t){var e=[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(e,t)},e.prototype.polaroid=function(t){var e=[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(e,t)},e.prototype.toBGR=function(t){var e=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.kodachrome=function(t){var e=[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(e,t)},e.prototype.browni=function(t){var e=[.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(e,t)},e.prototype.vintage=function(t){var e=[.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(e,t)},e.prototype.colorTone=function(t,e,r,n,i){t=t||.2,e=e||.15,r=r||16770432,n=n||3375104;var o=(r>>16&255)/255,s=(r>>8&255)/255,a=(255&r)/255,u=(n>>16&255)/255,h=(n>>8&255)/255,l=(255&n)/255,c=[.3,.59,.11,0,0,o,s,a,t,0,u,h,l,e,0,o-u,s-h,a-l,0,0];this._loadMatrix(c,i)},e.prototype.night=function(t,e){t=t||.1;var r=[-2*t,-t,0,0,0,-t,0,t,0,0,0,t,2*t,0,0,0,0,0,1,0];this._loadMatrix(r,e)},e.prototype.predator=function(t,e){var r=[11.224130630493164*t,-4.794486999511719*t,-2.8746118545532227*t,0*t,.40342438220977783*t,-3.6330697536468506*t,9.193157196044922*t,-2.951810836791992*t,0*t,-1.316135048866272*t,-3.2184197902679443*t,-4.2375030517578125*t,7.476448059082031*t,0*t,.8044459223747253*t,0,0,0,1,0];this._loadMatrix(r,e)},e.prototype.lsd=function(t){var e=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(e,t)},e.prototype.reset=function(){var t=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(t,!1)},Object.defineProperty(e.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(t){this.uniforms.m=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(t){this.uniforms.uAlpha=t},enumerable:!1,configurable:!0}),e}(Rt.wn);ki.prototype.grayscale=ki.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 Hi=function(t,e){return Hi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Hi(t,e)};function ji(t,e){function r(){this.constructor=t}Hi(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Vi="varying vec2 vFilterCoord;\nvarying vec2 vTextureCoord;\n\nuniform vec2 scale;\nuniform mat2 rotation;\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nuniform highp vec4 inputSize;\nuniform vec4 inputClamp;\n\nvoid main(void)\n{\n vec4 map = texture2D(mapSampler, vFilterCoord);\n\n map -= 0.5;\n map.xy = scale * inputSize.zw * (rotation * map.xy);\n\n gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));\n}\n",Yi="attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\nuniform mat3 filterMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vFilterCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n\tgl_Position = filterVertexPosition();\n\tvTextureCoord = filterTextureCoord();\n\tvFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy;\n}\n",Wi=(function(t){function e(e,r){var n=this,i=new P.y3;return e.renderable=!1,n=t.call(this,Yi,Vi,{mapSampler:e._texture,filterMatrix:i,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this,n.maskSprite=e,n.maskMatrix=i,null!==r&&void 0!==r||(r=20),n.scale=new P.E9(r,r),n}ji(e,t),e.prototype.apply=function(t,e,r,n){this.uniforms.filterMatrix=t.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var i=this.maskSprite.worldTransform,o=Math.sqrt(i.a*i.a+i.b*i.b),s=Math.sqrt(i.c*i.c+i.d*i.d);0!==o&&0!==s&&(this.uniforms.rotation[0]=i.a/o,this.uniforms.rotation[1]=i.b/o,this.uniforms.rotation[2]=i.c/s,this.uniforms.rotation[3]=i.d/s),t.applyFilter(this,e,r,n)},Object.defineProperty(e.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(t){this.uniforms.mapSampler=t},enumerable:!1,configurable:!0})}(Rt.wn),function(t,e){return Wi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},Wi(t,e)});function zi(t,e){function r(){this.constructor=t}Wi(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var qi="\nattribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vFragCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvoid texcoords(vec2 fragCoord, vec2 inverseVP,\n out vec2 v_rgbNW, out vec2 v_rgbNE,\n out vec2 v_rgbSW, out vec2 v_rgbSE,\n out vec2 v_rgbM) {\n v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;\n v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;\n v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;\n v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;\n v_rgbM = vec2(fragCoord * inverseVP);\n}\n\nvoid main(void) {\n\n gl_Position = filterVertexPosition();\n\n vFragCoord = aVertexPosition * outputFrame.zw;\n\n texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n}\n",Ki='varying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vFragCoord;\nuniform sampler2D uSampler;\nuniform highp vec4 inputSize;\n\n\n/**\n Basic FXAA implementation based on the code on geeks3d.com with the\n modification that the texture2DLod stuff was removed since it\'s\n unsupported by WebGL.\n\n --\n\n From:\n https://github.com/mitsuhiko/webgl-meincraft\n\n Copyright (c) 2011 by Armin Ronacher.\n\n Some rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials provided\n with the distribution.\n\n * The names of the contributors may not be used to endorse or\n promote products derived from this software without specific\n prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#ifndef FXAA_REDUCE_MIN\n#define FXAA_REDUCE_MIN (1.0/ 128.0)\n#endif\n#ifndef FXAA_REDUCE_MUL\n#define FXAA_REDUCE_MUL (1.0 / 8.0)\n#endif\n#ifndef FXAA_SPAN_MAX\n#define FXAA_SPAN_MAX 8.0\n#endif\n\n//optimized version for mobile, where dependent\n//texture reads can be a bottleneck\nvec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 inverseVP,\n vec2 v_rgbNW, vec2 v_rgbNE,\n vec2 v_rgbSW, vec2 v_rgbSE,\n vec2 v_rgbM) {\n vec4 color;\n vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;\n vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;\n vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;\n vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;\n vec4 texColor = texture2D(tex, v_rgbM);\n vec3 rgbM = texColor.xyz;\n vec3 luma = vec3(0.299, 0.587, 0.114);\n float lumaNW = dot(rgbNW, luma);\n float lumaNE = dot(rgbNE, luma);\n float lumaSW = dot(rgbSW, luma);\n float lumaSE = dot(rgbSE, luma);\n float lumaM = dot(rgbM, luma);\n float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));\n float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));\n\n mediump vec2 dir;\n dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n\n float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *\n (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);\n\n float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);\n dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n dir * rcpDirMin)) * inverseVP;\n\n vec3 rgbA = 0.5 * (\n texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);\n vec3 rgbB = rgbA * 0.5 + 0.25 * (\n texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);\n\n float lumaB = dot(rgbB, luma);\n if ((lumaB < lumaMin) || (lumaB > lumaMax))\n color = vec4(rgbA, texColor.a);\n else\n color = vec4(rgbB, texColor.a);\n return color;\n}\n\nvoid main() {\n\n vec4 color;\n\n color = fxaa(uSampler, vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n\n gl_FragColor = color;\n}\n',$i=(function(t){function e(){return t.call(this,qi,Ki)||this}zi(e,t)}(Rt.wn),function(t,e){return $i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},$i(t,e)});function Zi(t,e){function r(){this.constructor=t}$i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Ji,Qi,to,eo,ro,no,io,oo,so,ao,uo,ho,lo,co,fo,po,_o,vo,mo,yo="precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform float uNoise;\nuniform float uSeed;\nuniform sampler2D uSampler;\n\nfloat rand(vec2 co)\n{\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main()\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n float randomValue = rand(gl_FragCoord.xy * uSeed);\n float diff = (randomValue - 0.5) * uNoise;\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (color.a > 0.0) {\n color.rgb /= color.a;\n }\n\n color.r += diff;\n color.g += diff;\n color.b += diff;\n\n // Premultiply alpha again.\n color.rgb *= color.a;\n\n gl_FragColor = color;\n}\n";(function(t){function e(e,r){void 0===e&&(e=.5),void 0===r&&(r=Math.random());var n=t.call(this,Rt.Y9,yo,{uNoise:0,uSeed:0})||this;return n.noise=e,n.seed=r,n}Zi(e,t),Object.defineProperty(e.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(t){this.uniforms.uNoise=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(t){this.uniforms.uSeed=t},enumerable:!1,configurable:!0})})(Rt.wn);(function(t){t[t["WEBGL_LEGACY"]=0]="WEBGL_LEGACY",t[t["WEBGL"]=1]="WEBGL",t[t["WEBGL2"]=2]="WEBGL2"})(Ji||(Ji={})),function(t){t[t["UNKNOWN"]=0]="UNKNOWN",t[t["WEBGL"]=1]="WEBGL",t[t["CANVAS"]=2]="CANVAS"}(Qi||(Qi={})),function(t){t[t["COLOR"]=16384]="COLOR",t[t["DEPTH"]=256]="DEPTH",t[t["STENCIL"]=1024]="STENCIL"}(to||(to={})),function(t){t[t["NORMAL"]=0]="NORMAL",t[t["ADD"]=1]="ADD",t[t["MULTIPLY"]=2]="MULTIPLY",t[t["SCREEN"]=3]="SCREEN",t[t["OVERLAY"]=4]="OVERLAY",t[t["DARKEN"]=5]="DARKEN",t[t["LIGHTEN"]=6]="LIGHTEN",t[t["COLOR_DODGE"]=7]="COLOR_DODGE",t[t["COLOR_BURN"]=8]="COLOR_BURN",t[t["HARD_LIGHT"]=9]="HARD_LIGHT",t[t["SOFT_LIGHT"]=10]="SOFT_LIGHT",t[t["DIFFERENCE"]=11]="DIFFERENCE",t[t["EXCLUSION"]=12]="EXCLUSION",t[t["HUE"]=13]="HUE",t[t["SATURATION"]=14]="SATURATION",t[t["COLOR"]=15]="COLOR",t[t["LUMINOSITY"]=16]="LUMINOSITY",t[t["NORMAL_NPM"]=17]="NORMAL_NPM",t[t["ADD_NPM"]=18]="ADD_NPM",t[t["SCREEN_NPM"]=19]="SCREEN_NPM",t[t["NONE"]=20]="NONE",t[t["SRC_OVER"]=0]="SRC_OVER",t[t["SRC_IN"]=21]="SRC_IN",t[t["SRC_OUT"]=22]="SRC_OUT",t[t["SRC_ATOP"]=23]="SRC_ATOP",t[t["DST_OVER"]=24]="DST_OVER",t[t["DST_IN"]=25]="DST_IN",t[t["DST_OUT"]=26]="DST_OUT",t[t["DST_ATOP"]=27]="DST_ATOP",t[t["ERASE"]=26]="ERASE",t[t["SUBTRACT"]=28]="SUBTRACT",t[t["XOR"]=29]="XOR"}(eo||(eo={})),function(t){t[t["POINTS"]=0]="POINTS",t[t["LINES"]=1]="LINES",t[t["LINE_LOOP"]=2]="LINE_LOOP",t[t["LINE_STRIP"]=3]="LINE_STRIP",t[t["TRIANGLES"]=4]="TRIANGLES",t[t["TRIANGLE_STRIP"]=5]="TRIANGLE_STRIP",t[t["TRIANGLE_FAN"]=6]="TRIANGLE_FAN"}(ro||(ro={})),function(t){t[t["RGBA"]=6408]="RGBA",t[t["RGB"]=6407]="RGB",t[t["RG"]=33319]="RG",t[t["RED"]=6403]="RED",t[t["RGBA_INTEGER"]=36249]="RGBA_INTEGER",t[t["RGB_INTEGER"]=36248]="RGB_INTEGER",t[t["RG_INTEGER"]=33320]="RG_INTEGER",t[t["RED_INTEGER"]=36244]="RED_INTEGER",t[t["ALPHA"]=6406]="ALPHA",t[t["LUMINANCE"]=6409]="LUMINANCE",t[t["LUMINANCE_ALPHA"]=6410]="LUMINANCE_ALPHA",t[t["DEPTH_COMPONENT"]=6402]="DEPTH_COMPONENT",t[t["DEPTH_STENCIL"]=34041]="DEPTH_STENCIL"}(no||(no={})),function(t){t[t["TEXTURE_2D"]=3553]="TEXTURE_2D",t[t["TEXTURE_CUBE_MAP"]=34067]="TEXTURE_CUBE_MAP",t[t["TEXTURE_2D_ARRAY"]=35866]="TEXTURE_2D_ARRAY",t[t["TEXTURE_CUBE_MAP_POSITIVE_X"]=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t["TEXTURE_CUBE_MAP_NEGATIVE_X"]=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t["TEXTURE_CUBE_MAP_POSITIVE_Y"]=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t["TEXTURE_CUBE_MAP_NEGATIVE_Y"]=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t["TEXTURE_CUBE_MAP_POSITIVE_Z"]=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t["TEXTURE_CUBE_MAP_NEGATIVE_Z"]=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(io||(io={})),function(t){t[t["UNSIGNED_BYTE"]=5121]="UNSIGNED_BYTE",t[t["UNSIGNED_SHORT"]=5123]="UNSIGNED_SHORT",t[t["UNSIGNED_SHORT_5_6_5"]=33635]="UNSIGNED_SHORT_5_6_5",t[t["UNSIGNED_SHORT_4_4_4_4"]=32819]="UNSIGNED_SHORT_4_4_4_4",t[t["UNSIGNED_SHORT_5_5_5_1"]=32820]="UNSIGNED_SHORT_5_5_5_1",t[t["UNSIGNED_INT"]=5125]="UNSIGNED_INT",t[t["UNSIGNED_INT_10F_11F_11F_REV"]=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t["UNSIGNED_INT_2_10_10_10_REV"]=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t["UNSIGNED_INT_24_8"]=34042]="UNSIGNED_INT_24_8",t[t["UNSIGNED_INT_5_9_9_9_REV"]=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t["BYTE"]=5120]="BYTE",t[t["SHORT"]=5122]="SHORT",t[t["INT"]=5124]="INT",t[t["FLOAT"]=5126]="FLOAT",t[t["FLOAT_32_UNSIGNED_INT_24_8_REV"]=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t["HALF_FLOAT"]=36193]="HALF_FLOAT"}(oo||(oo={})),function(t){t[t["FLOAT"]=0]="FLOAT",t[t["INT"]=1]="INT",t[t["UINT"]=2]="UINT"}(so||(so={})),function(t){t[t["NEAREST"]=0]="NEAREST",t[t["LINEAR"]=1]="LINEAR"}(ao||(ao={})),function(t){t[t["CLAMP"]=33071]="CLAMP",t[t["REPEAT"]=10497]="REPEAT",t[t["MIRRORED_REPEAT"]=33648]="MIRRORED_REPEAT"}(uo||(uo={})),function(t){t[t["OFF"]=0]="OFF",t[t["POW2"]=1]="POW2",t[t["ON"]=2]="ON",t[t["ON_MANUAL"]=3]="ON_MANUAL"}(ho||(ho={})),function(t){t[t["NPM"]=0]="NPM",t[t["UNPACK"]=1]="UNPACK",t[t["PMA"]=2]="PMA",t[t["NO_PREMULTIPLIED_ALPHA"]=0]="NO_PREMULTIPLIED_ALPHA",t[t["PREMULTIPLY_ON_UPLOAD"]=1]="PREMULTIPLY_ON_UPLOAD",t[t["PREMULTIPLY_ALPHA"]=2]="PREMULTIPLY_ALPHA",t[t["PREMULTIPLIED_ALPHA"]=2]="PREMULTIPLIED_ALPHA"}(lo||(lo={})),function(t){t[t["NO"]=0]="NO",t[t["YES"]=1]="YES",t[t["AUTO"]=2]="AUTO",t[t["BLEND"]=0]="BLEND",t[t["CLEAR"]=1]="CLEAR",t[t["BLIT"]=2]="BLIT"}(co||(co={})),function(t){t[t["AUTO"]=0]="AUTO",t[t["MANUAL"]=1]="MANUAL"}(fo||(fo={})),function(t){t["LOW"]="lowp",t["MEDIUM"]="mediump",t["HIGH"]="highp"}(po||(po={})),function(t){t[t["NONE"]=0]="NONE",t[t["SCISSOR"]=1]="SCISSOR",t[t["STENCIL"]=2]="STENCIL",t[t["SPRITE"]=3]="SPRITE"}(_o||(_o={})),function(t){t[t["NONE"]=0]="NONE",t[t["LOW"]=2]="LOW",t[t["MEDIUM"]=4]="MEDIUM",t[t["HIGH"]=8]="HIGH"}(vo||(vo={})),function(t){t[t["ELEMENT_ARRAY_BUFFER"]=34963]="ELEMENT_ARRAY_BUFFER",t[t["ARRAY_BUFFER"]=34962]="ARRAY_BUFFER",t[t["UNIFORM_BUFFER"]=35345]="UNIFORM_BUFFER"}(mo||(mo={}));var go=new P.y3;J.prototype._cacheAsBitmap=!1,J.prototype._cacheData=null,J.prototype._cacheAsBitmapResolution=null,J.prototype._cacheAsBitmapMultisample=vo.NONE;var Eo=function(){function t(){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 t}();Object.defineProperties(J.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(t){t!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(t){t!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(t){var e;this._cacheAsBitmap!==t&&(this._cacheAsBitmap=t,t?(this._cacheData||(this._cacheData=new Eo),e=this._cacheData,e.originalRender=this.render,e.originalRenderCanvas=this.renderCanvas,e.originalUpdateTransform=this.updateTransform,e.originalCalculateBounds=this.calculateBounds,e.originalGetLocalBounds=this.getLocalBounds,e.originalDestroy=this.destroy,e.originalContainsPoint=this.containsPoint,e.originalMask=this._mask,e.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(e=this._cacheData,e.sprite&&this._destroyCachedDisplayObject(),this.render=e.originalRender,this.renderCanvas=e.originalRenderCanvas,this.calculateBounds=e.originalCalculateBounds,this.getLocalBounds=e.originalGetLocalBounds,this.destroy=e.originalDestroy,this.updateTransform=e.originalUpdateTransform,this.containsPoint=e.originalContainsPoint,this._mask=e.originalMask,this.filterArea=e.originalFilterArea))}}}),J.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))},J.prototype._initCachedDisplayObject=function(t){var e;if(!this._cacheData||!this._cacheData.sprite){var r=this.alpha;this.alpha=1,t.batch.flush();var n=this.getLocalBounds(null,!0).clone();if(this.filters&&this.filters.length){var i=this.filters[0].padding;n.pad(i)}n.ceil(O.X.RESOLUTION);var o=t.renderTexture.current,s=t.renderTexture.sourceFrame.clone(),a=t.renderTexture.destinationFrame.clone(),u=t.projection.transform,h=Rt.TI.create({width:n.width,height:n.height,resolution:this.cacheAsBitmapResolution||t.resolution,multisample:null!==(e=this.cacheAsBitmapMultisample)&&void 0!==e?e:t.multisample}),l="cacheAsBitmap_"+(0,S.hQ)();this._cacheData.textureCacheId=l,Rt.VL.addToCache(h.baseTexture,l),Rt.xE.addToCache(h,l);var c=this.transform.localTransform.copyTo(go).invert().translate(-n.x,-n.y);this.render=this._cacheData.originalRender,t.render(this,{renderTexture:h,clear:!0,transform:c,skipUpdateTransform:!1}),t.framebuffer.blit(),t.projection.transform=u,t.renderTexture.bind(o,s,a),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=r;var f=new Vr(h);f.transform.worldTransform=this.transform.worldTransform,f.anchor.x=-n.x/n.width,f.anchor.y=-n.y/n.height,f.alpha=r,f._bounds=this._bounds,this._cacheData.sprite=f,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=f.containsPoint.bind(f)}},J.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))},J.prototype._initCachedDisplayObjectCanvas=function(t){if(!this._cacheData||!this._cacheData.sprite){var e=this.getLocalBounds(null,!0),r=this.alpha;this.alpha=1;var n=t.context,i=t._projTransform;e.ceil(O.X.RESOLUTION);var o=Rt.TI.create({width:e.width,height:e.height}),s="cacheAsBitmap_"+(0,S.hQ)();this._cacheData.textureCacheId=s,Rt.VL.addToCache(o.baseTexture,s),Rt.xE.addToCache(o,s);var a=go;this.transform.localTransform.copyTo(a),a.invert(),a.tx-=e.x,a.ty-=e.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,{renderTexture:o,clear:!0,transform:a,skipUpdateTransform:!1}),t.context=n,t._projTransform=i,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=r;var u=new Vr(o);u.transform.worldTransform=this.transform.worldTransform,u.anchor.x=-e.x/e.width,u.anchor.y=-e.y/e.height,u.alpha=r,u._bounds=this._bounds,this._cacheData.sprite=u,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=u.containsPoint.bind(u)}},J.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID},J.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)},J.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,Rt.VL.removeFromCache(this._cacheData.textureCacheId),Rt.xE.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null},J.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
*/
J.prototype.name=null,et.prototype.getChildByName=function(t,e){for(var r=0,n=this.children.length;r<n;r++)if(this.children[r].name===t)return this.children[r];if(e)for(r=0,n=this.children.length;r<n;r++){var i=this.children[r];if(i.getChildByName){var o=this.children[r].getChildByName(t,!0);if(o)return o}}return null},
/*!
* @pixi/mixin-get-global-position - v6.3.0
* Compiled Wed, 23 Mar 2022 18:58:56 UTC
*
* @pixi/mixin-get-global-position is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/
J.prototype.getGlobalPosition=function(t,e){return void 0===t&&(t=new P.E9),void 0===e&&(e=!1),this.parent?this.parent.toGlobal(this.position,t,e):(t.x=this.position.x,t.y=this.position.y),t};
/*!
* @pixi/mesh-extras - v6.3.0
* Compiled Wed, 23 Mar 2022 18:58:56 UTC
*
* @pixi/mesh-extras 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 To=function(t,e){return To=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},To(t,e)};function bo(t,e){function r(){this.constructor=t}To(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var xo=function(t){function e(e,r,n,i){void 0===e&&(e=100),void 0===r&&(r=100),void 0===n&&(n=10),void 0===i&&(i=10);var o=t.call(this)||this;return o.segWidth=n,o.segHeight=i,o.width=e,o.height=r,o.build(),o}return bo(e,t),e.prototype.build=function(){for(var t=this.segWidth*this.segHeight,e=[],r=[],n=[],i=this.segWidth-1,o=this.segHeight-1,s=this.width/i,a=this.height/o,u=0;u<t;u++){var h=u%this.segWidth,l=u/this.segWidth|0;e.push(h*s,l*a),r.push(h/i,l/o)}var c=i*o;for(u=0;u<c;u++){var f=u%i,d=u/i|0,p=d*this.segWidth+f,_=d*this.segWidth+f+1,v=(d+1)*this.segWidth+f,m=(d+1)*this.segWidth+f+1;n.push(p,_,v,_,m,v)}this.buffers[0].data=new Float32Array(e),this.buffers[1].data=new Float32Array(r),this.indexBuffer.data=new Uint16Array(n),this.buffers[0].update(),this.buffers[1].update(),this.indexBuffer.update()},e}(kn),Ro=function(t){function e(e,r,n){void 0===e&&(e=200),void 0===n&&(n=0);var i=t.call(this,new Float32Array(4*r.length),new Float32Array(4*r.length),new Uint16Array(6*(r.length-1)))||this;return i.points=r,i._width=e,i.textureScale=n,i.build(),i}return bo(e,t),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},enumerable:!1,configurable:!0}),e.prototype.build=function(){var t=this.points;if(t){var e=this.getBuffer("aVertexPosition"),r=this.getBuffer("aTextureCoord"),n=this.getIndex();if(!(t.length<1)){e.data.length/4!==t.length&&(e.data=new Float32Array(4*t.length),r.data=new Float32Array(4*t.length),n.data=new Uint16Array(6*(t.length-1)));var i=r.data,o=n.data;i[0]=0,i[1]=0,i[2]=0,i[3]=1;for(var s=0,a=t[0],u=this._width*this.textureScale,h=t.length,l=0;l<h;l++){var c=4*l;if(this.textureScale>0){var f=a.x-t[l].x,d=a.y-t[l].y,p=Math.sqrt(f*f+d*d);a=t[l],s+=p/u}else s=l/(h-1);i[c]=s,i[c+1]=0,i[c+2]=s,i[c+3]=1}var _=0;for(l=0;l<h-1;l++){c=2*l;o[_++]=c,o[_++]=c+1,o[_++]=c+2,o[_++]=c+2,o[_++]=c+1,o[_++]=c+3}r.update(),n.update(),this.updateVertices()}}},e.prototype.updateVertices=function(){var t=this.points;if(!(t.length<1)){for(var e,r=t[0],n=0,i=0,o=this.buffers[0].data,s=t.length,a=0;a<s;a++){var u=t[a],h=4*a;e=a<t.length-1?t[a+1]:u,i=-(e.x-r.x),n=e.y-r.y;var l=Math.sqrt(n*n+i*i),c=this.textureScale>0?this.textureScale*this._width/2:this._width/2;n/=l,i/=l,n*=c,i*=c,o[h]=u.x+n,o[h+1]=u.y+i,o[h+2]=u.x-n,o[h+3]=u.y-i,r=u}this.buffers[0].update()}},e.prototype.update=function(){this.textureScale>0?this.build():this.updateVertices()},e}(kn),Ao=(function(t){function e(e,r,n){void 0===n&&(n=0);var i=this,o=new Ro(e.height,r,n),s=new Xn(e);return n>0&&(e.baseTexture.wrapMode=se.Nt.REPEAT),i=t.call(this,o,s)||this,i.autoUpdate=!0,i}bo(e,t),e.prototype._render=function(e){var r=this.geometry;(this.autoUpdate||r._width!==this.shader.texture.height)&&(r._width=this.shader.texture.height,r.update()),t.prototype._render.call(this,e)}}(Un),function(t){function e(e,r,n){var i=this,o=new xo(e.width,e.height,r,n),s=new Xn(Rt.xE.WHITE);return i=t.call(this,o,s)||this,i.texture=e,i.autoResize=!0,i}return bo(e,t),e.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var t=this.geometry,e=this.shader.texture,r=e.width,n=e.height;!this.autoResize||t.width===r&&t.height===n||(t.width=this.shader.texture.width,t.height=this.shader.texture.height,t.build())},Object.defineProperty(e.prototype,"texture",{get:function(){return this.shader.texture},set:function(t){this.shader.texture!==t&&(this.shader.texture=t,this._textureID=-1,t.baseTexture.valid?this.textureUpdated():t.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),e.prototype._render=function(e){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),t.prototype._render.call(this,e)},e.prototype.destroy=function(e){this.shader.texture.off("update",this.textureUpdated,this),t.prototype.destroy.call(this,e)},e}(Un)),Io=(function(t){function e(e,r,n,i,o){void 0===e&&(e=Rt.xE.EMPTY);var s=this,a=new kn(r,n,i);a.getBuffer("aVertexPosition").static=!1;var u=new Xn(e);return s=t.call(this,a,u,null,o)||this,s.autoUpdate=!0,s}bo(e,t),Object.defineProperty(e.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(t){this.geometry.getBuffer("aVertexPosition").data=t},enumerable:!1,configurable:!0}),e.prototype._render=function(e){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),t.prototype._render.call(this,e)}}(Un),10),So=(function(t){function e(e,r,n,i,o){void 0===r&&(r=Io),void 0===n&&(n=Io),void 0===i&&(i=Io),void 0===o&&(o=Io);var s=t.call(this,Rt.xE.WHITE,4,4)||this;return s._origWidth=e.orig.width,s._origHeight=e.orig.height,s._width=s._origWidth,s._height=s._origHeight,s._leftWidth=r,s._rightWidth=i,s._topHeight=n,s._bottomHeight=o,s.texture=e,s}bo(e,t),e.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(e.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(t){this.geometry.getBuffer("aVertexPosition").data=t},enumerable:!1,configurable:!0}),e.prototype.updateHorizontalVertices=function(){var t=this.vertices,e=this._getMinScale();t[9]=t[11]=t[13]=t[15]=this._topHeight*e,t[17]=t[19]=t[21]=t[23]=this._height-this._bottomHeight*e,t[25]=t[27]=t[29]=t[31]=this._height},e.prototype.updateVerticalVertices=function(){var t=this.vertices,e=this._getMinScale();t[2]=t[10]=t[18]=t[26]=this._leftWidth*e,t[4]=t[12]=t[20]=t[28]=this._width-this._rightWidth*e,t[6]=t[14]=t[22]=t[30]=this._width},e.prototype._getMinScale=function(){var t=this._leftWidth+this._rightWidth,e=this._width>t?1:this._width/t,r=this._topHeight+this._bottomHeight,n=this._height>r?1:this._height/r,i=Math.min(e,n);return i},Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(t){this._leftWidth=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(t){this._rightWidth=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"topHeight",{get:function(){return this._topHeight},set:function(t){this._topHeight=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(t){this._bottomHeight=t,this._refresh()},enumerable:!1,configurable:!0}),e.prototype._refresh=function(){var t=this.texture,e=this.geometry.buffers[1].data;this._origWidth=t.orig.width,this._origHeight=t.orig.height;var r=1/this._origWidth,n=1/this._origHeight;e[0]=e[8]=e[16]=e[24]=0,e[1]=e[3]=e[5]=e[7]=0,e[6]=e[14]=e[22]=e[30]=1,e[25]=e[27]=e[29]=e[31]=1,e[2]=e[10]=e[18]=e[26]=r*this._leftWidth,e[4]=e[12]=e[20]=e[28]=1-r*this._rightWidth,e[9]=e[11]=e[13]=e[15]=n*this._topHeight,e[17]=e[19]=e[21]=e[23]=1-n*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()}}(Ao),r(8658),function(t,e){return So=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},So(t,e)});function Oo(t,e){function r(){this.constructor=t}So(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(function(t){function e(e,r){void 0===r&&(r=!0);var n=t.call(this,e[0]instanceof Rt.xE?e[0]:e[0].texture)||this;return n._textures=null,n._durations=null,n._autoUpdate=r,n._isConnectedToTicker=!1,n.animationSpeed=1,n.loop=!0,n.updateAnchor=!1,n.onComplete=null,n.onFrameChange=null,n.onLoop=null,n._currentTime=0,n._playing=!1,n._previousFrame=null,n.textures=e,n}Oo(e,t),e.prototype.stop=function(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(dt.vB.shared.remove(this.update,this),this._isConnectedToTicker=!1))},e.prototype.play=function(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(dt.vB.shared.add(this.update,this,dt.uF.HIGH),this._isConnectedToTicker=!0))},e.prototype.gotoAndStop=function(t){this.stop();var e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture()},e.prototype.gotoAndPlay=function(t){var e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture(),this.play()},e.prototype.update=function(t){if(this._playing){var e=this.animationSpeed*t,r=this.currentFrame;if(null!==this._durations){var n=this._currentTime%1*this._durations[this.currentFrame];n+=e/60*1e3;while(n<0)this._currentTime--,n+=this._durations[this.currentFrame];var i=Math.sign(this.animationSpeed*t);this._currentTime=Math.floor(this._currentTime);while(n>=this._durations[this.currentFrame])n-=this._durations[this.currentFrame]*i,this._currentTime+=i;this._currentTime+=n/this._durations[this.currentFrame]}else this._currentTime+=e;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()):r!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFrame<r||this.animationSpeed<0&&this.currentFrame>r)&&this.onLoop(),this.updateTexture())}},e.prototype.updateTexture=function(){var t=this.currentFrame;this._previousFrame!==t&&(this._previousFrame=t,this._texture=this._textures[t],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))},e.prototype.destroy=function(e){this.stop(),t.prototype.destroy.call(this,e),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},e.fromFrames=function(t){for(var r=[],n=0;n<t.length;++n)r.push(Rt.xE.from(t[n]));return new e(r)},e.fromImages=function(t){for(var r=[],n=0;n<t.length;++n)r.push(Rt.xE.from(t[n]));return new e(r)},Object.defineProperty(e.prototype,"totalFrames",{get:function(){return this._textures.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textures",{get:function(){return this._textures},set:function(t){if(t[0]instanceof Rt.xE)this._textures=t,this._durations=null;else{this._textures=[],this._durations=[];for(var e=0;e<t.length;e++)this._textures.push(t[e].texture),this._durations.push(t[e].time)}this._previousFrame=null,this.gotoAndStop(0),this.updateTexture()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentFrame",{get:function(){var t=Math.floor(this._currentTime)%this._textures.length;return t<0&&(t+=this._textures.length),t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"playing",{get:function(){return this._playing},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isConnectedToTicker?(dt.vB.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._playing&&(dt.vB.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0})})(Vr);
/*!
* pixi.js - v6.3.0
* Compiled Wed, 23 Mar 2022 18:58:56 UTC
*
* pixi.js is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/
Rt.Th.registerPlugin("accessibility",ft),Rt.Th.registerPlugin("extract",Pt),Rt.Th.registerPlugin("interaction",xt),Rt.Th.registerPlugin("particle",sr),Rt.Th.registerPlugin("prepare",gn),Rt.Th.registerPlugin("batch",Rt.Bv),Rt.Th.registerPlugin("tilingSprite",Mn),Zt.registerPlugin(ai),Zt.registerPlugin(ve),Zt.registerPlugin(Ve),Zt.registerPlugin(Je),Zt.registerPlugin(Tn),At.registerPlugin(dt.Sb),At.registerPlugin(Jt)},1538:function(t){"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,r,n,i){r=r||"&",n=n||"=";var o={};if("string"!==typeof t||0===t.length)return o;var s=/\+/g;t=t.split(r);var a=1e3;i&&"number"===typeof i.maxKeys&&(a=i.maxKeys);var u=t.length;a>0&&u>a&&(u=a);for(var h=0;h<u;++h){var l,c,f,d,p=t[h].replace(s,"%20"),_=p.indexOf(n);_>=0?(l=p.substr(0,_),c=p.substr(_+1)):(l=p,c=""),f=decodeURIComponent(l),d=decodeURIComponent(c),e(o,f)?Array.isArray(o[f])?o[f].push(d):o[f]=[o[f],d]:o[f]=d}return o}},8292:function(t){"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,r,n,i){return r=r||"&",n=n||"=",null===t&&(t=void 0),"object"===typeof t?Object.keys(t).map((function(i){var o=encodeURIComponent(e(i))+n;return Array.isArray(t[i])?t[i].map((function(t){return o+encodeURIComponent(e(t))})).join(r):o+encodeURIComponent(e(t[i]))})).join(r):i?encodeURIComponent(e(i))+n+encodeURIComponent(e(t)):""}},8736:function(t,e,r){"use strict";e.decode=e.parse=r(1538),e.encode=e.stringify=r(8292)},9127:function(t,e,r){var n;t=r.nmd(t),r(1703),function(i){e&&e.nodeType,t&&t.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var s,a=2147483647,u=36,h=1,l=26,c=38,f=700,d=72,p=128,_="-",v=/^xn--/,m=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,g={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=u-h,T=Math.floor,b=String.fromCharCode;function x(t){throw RangeError(g[t])}function R(t,e){var r=t.length,n=[];while(r--)n[r]=e(t[r]);return n}function A(t,e){var r=t.split("@"),n="";r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace(y,".");var i=t.split("."),o=R(i,e).join(".");return n+o}function I(t){var e,r,n=[],i=0,o=t.length;while(i<o)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<o?(r=t.charCodeAt(i++),56320==(64512&r)?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--)):n.push(e);return n}function S(t){return R(t,(function(t){var e="";return t>65535&&(t-=65536,e+=b(t>>>10&1023|55296),t=56320|1023&t),e+=b(t),e})).join("")}function O(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:u}function P(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function N(t,e,r){var n=0;for(t=r?T(t/f):t>>1,t+=T(t/e);t>E*l>>1;n+=u)t=T(t/E);return T(n+(E+1)*t/(t+c))}function M(t){var e,r,n,i,o,s,c,f,v,m,y=[],g=t.length,E=0,b=p,R=d;for(r=t.lastIndexOf(_),r<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&x("not-basic"),y.push(t.charCodeAt(n));for(i=r>0?r+1:0;i<g;){for(o=E,s=1,c=u;;c+=u){if(i>=g&&x("invalid-input"),f=O(t.charCodeAt(i++)),(f>=u||f>T((a-E)/s))&&x("overflow"),E+=f*s,v=c<=R?h:c>=R+l?l:c-R,f<v)break;m=u-v,s>T(a/m)&&x("overflow"),s*=m}e=y.length+1,R=N(E-o,e,0==o),T(E/e)>a-b&&x("overflow"),b+=T(E/e),E%=e,y.splice(E++,0,b)}return S(y)}function w(t){var e,r,n,i,o,s,c,f,v,m,y,g,E,R,A,S=[];for(t=I(t),g=t.length,e=p,r=0,o=d,s=0;s<g;++s)y=t[s],y<128&&S.push(b(y));n=i=S.length,i&&S.push(_);while(n<g){for(c=a,s=0;s<g;++s)y=t[s],y>=e&&y<c&&(c=y);for(E=n+1,c-e>T((a-r)/E)&&x("overflow"),r+=(c-e)*E,e=c,s=0;s<g;++s)if(y=t[s],y<e&&++r>a&&x("overflow"),y==e){for(f=r,v=u;;v+=u){if(m=v<=o?h:v>=o+l?l:v-o,f<m)break;A=f-m,R=u-m,S.push(b(P(m+A%R,0))),f=T(A/R)}S.push(b(P(f,0))),o=N(r,E,n==i),r=0,++n}++r,++e}return S.join("")}function D(t){return A(t,(function(t){return v.test(t)?M(t.slice(4).toLowerCase()):t}))}function C(t){return A(t,(function(t){return m.test(t)?"xn--"+w(t):t}))}s={version:"1.3.2",ucs2:{decode:I,encode:S},decode:M,encode:w,toASCII:C,toUnicode:D},n=function(){return s}.call(e,r,e,t),void 0===n||(t.exports=n)}()},4030:function(t,e,r){"use strict";r(1703);var n=r(9127),i=r(7497);function o(){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}e.Qc=T,e.DB=x,e.WU=b;var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["<",">",'"',"`"," ","\r","\n","\t"],l=["{","}","|","\\","^","`"].concat(h),c=["'"].concat(l),f=["%","/","?",";","#"].concat(c),d=["/","?","#"],p=255,_=/^[+a-z0-9A-Z_-]{0,63}$/,v=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},E=r(8736);function T(t,e,r){if(t&&i.isObject(t)&&t instanceof o)return t;var n=new o;return n.parse(t,e,r),n}function b(t){return i.isString(t)&&(t=T(t)),t instanceof o?t.format():o.prototype.format.call(t)}function x(t,e){return T(t,!1,!0).resolve(e)}function R(t,e){return t?T(t,!1,!0).resolveObject(e):e}o.prototype.parse=function(t,e,r){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),a=-1!==o&&o<t.indexOf("#")?"?":"#",h=t.split(a),l=/\\/g;h[0]=h[0].replace(l,"/"),t=h.join(a);var T=t;if(T=T.trim(),!r&&1===t.split("#").length){var b=u.exec(T);if(b)return this.path=T,this.href=T,this.pathname=b[1],b[2]?(this.search=b[2],this.query=e?E.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var x=s.exec(T);if(x){x=x[0];var R=x.toLowerCase();this.protocol=R,T=T.substr(x.length)}if(r||x||T.match(/^\/\/[^@\/]+@[^@\/]+/)){var A="//"===T.substr(0,2);!A||x&&y[x]||(T=T.substr(2),this.slashes=!0)}if(!y[x]&&(A||x&&!g[x])){for(var I,S,O=-1,P=0;P<d.length;P++){var N=T.indexOf(d[P]);-1!==N&&(-1===O||N<O)&&(O=N)}S=-1===O?T.lastIndexOf("@"):T.lastIndexOf("@",O),-1!==S&&(I=T.slice(0,S),T=T.slice(S+1),this.auth=decodeURIComponent(I)),O=-1;for(P=0;P<f.length;P++){N=T.indexOf(f[P]);-1!==N&&(-1===O||N<O)&&(O=N)}-1===O&&(O=T.length),this.host=T.slice(0,O),T=T.slice(O),this.parseHost(),this.hostname=this.hostname||"";var M="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!M)for(var w=this.hostname.split(/\./),D=(P=0,w.length);P<D;P++){var C=w[P];if(C&&!C.match(_)){for(var L="",F=0,U=C.length;F<U;F++)C.charCodeAt(F)>127?L+="x":L+=C[F];if(!L.match(_)){var G=w.slice(0,P),B=w.slice(P+1),X=C.match(v);X&&(G.push(X[1]),B.unshift(X[2])),B.length&&(T="/"+B.join(".")+T),this.hostname=G.join(".");break}}}this.hostname.length>p?this.hostname="":this.hostname=this.hostname.toLowerCase(),M||(this.hostname=n.toASCII(this.hostname));var k=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+k,this.href+=this.host,M&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==T[0]&&(T="/"+T))}if(!m[R])for(P=0,D=c.length;P<D;P++){var j=c[P];if(-1!==T.indexOf(j)){var V=encodeURIComponent(j);V===j&&(V=escape(j)),T=T.split(j).join(V)}}var Y=T.indexOf("#");-1!==Y&&(this.hash=T.substr(Y),T=T.slice(0,Y));var W=T.indexOf("?");if(-1!==W?(this.search=T.substr(W),this.query=T.substr(W+1),e&&(this.query=E.parse(this.query)),T=T.slice(0,W)):e&&(this.search="",this.query={}),T&&(this.pathname=T),g[R]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){k=this.pathname||"";var z=this.search||"";this.path=k+z}return this.href=this.format(),this},o.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,s="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(s=E.stringify(this.query));var a=this.search||s&&"?"+s||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||g[e])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})),a=a.replace("#","%23"),e+o+r+a+n},o.prototype.resolve=function(t){return this.resolveObject(T(t,!1,!0)).format()},o.prototype.resolveObject=function(t){if(i.isString(t)){var e=new o;e.parse(t,!1,!0),t=e}for(var r=new o,n=Object.keys(this),s=0;s<n.length;s++){var a=n[s];r[a]=this[a]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),h=0;h<u.length;h++){var l=u[h];"protocol"!==l&&(r[l]=t[l])}return g[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!g[t.protocol]){for(var c=Object.keys(t),f=0;f<c.length;f++){var d=c[f];r[d]=t[d]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||y[t.protocol])r.pathname=t.pathname;else{var p=(t.pathname||"").split("/");while(p.length&&!(t.host=p.shift()));t.host||(t.host=""),t.hostname||(t.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var _=r.pathname||"",v=r.search||"";r.path=_+v}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var m=r.pathname&&"/"===r.pathname.charAt(0),E=t.host||t.pathname&&"/"===t.pathname.charAt(0),T=E||m||r.host&&t.pathname,b=T,x=r.pathname&&r.pathname.split("/")||[],R=(p=t.pathname&&t.pathname.split("/")||[],r.protocol&&!g[r.protocol]);if(R&&(r.hostname="",r.port=null,r.host&&(""===x[0]?x[0]=r.host:x.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===p[0]?p[0]=t.host:p.unshift(t.host)),t.host=null),T=T&&(""===p[0]||""===x[0])),E)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,x=p;else if(p.length)x||(x=[]),x.pop(),x=x.concat(p),r.search=t.search,r.query=t.query;else if(!i.isNullOrUndefined(t.search)){if(R){r.hostname=r.host=x.shift();var A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");A&&(r.auth=A.shift(),r.host=r.hostname=A.shift())}return r.search=t.search,r.query=t.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var I=x.slice(-1)[0],S=(r.host||t.host||x.length>1)&&("."===I||".."===I)||""===I,O=0,P=x.length;P>=0;P--)I=x[P],"."===I?x.splice(P,1):".."===I?(x.splice(P,1),O++):O&&(x.splice(P,1),O--);if(!T&&!b)for(;O--;O)x.unshift("..");!T||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),S&&"/"!==x.join("/").substr(-1)&&x.push("");var N=""===x[0]||x[0]&&"/"===x[0].charAt(0);if(R){r.hostname=r.host=N?"":x.length?x.shift():"";A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");A&&(r.auth=A.shift(),r.host=r.hostname=A.shift())}return T=T||r.host&&x.length,T&&!N&&x.unshift(""),x.length?r.pathname=x.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},7497:function(t){"use strict";t.exports={isString:function(t){return"string"===typeof t},isObject:function(t){return"object"===typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},89:function(t,e){"use strict";e.Z=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r}}}]);
//# sourceMappingURL=chunk-vendors.4680bb81.js.map