@quick-threejs/reactive 0.1.44 → 0.1.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FontLoader-DvGzwRip.js → FontLoader-D3WA1QGd.js} +8 -8
- package/dist/{FontLoader-Dz0z8aMc.mjs → FontLoader-ejhD_xZ1.mjs} +430 -423
- package/dist/core/app/app.controller.d.ts +1 -1
- package/dist/core/app/app.module.d.ts +3 -2
- package/dist/core/app/app.service.d.ts +1 -1
- package/dist/core/app/app.worker.d.ts +1 -2
- package/dist/core/app/camera/camera.module.d.ts +1 -1
- package/dist/core/app/camera/camera.service.d.ts +2 -2
- package/dist/core/app/debug/debug.service.d.ts +1 -1
- package/dist/core/app/loader/loader.controller.d.ts +1 -1
- package/dist/core/app/loader/loader.module.d.ts +4 -4
- package/dist/core/app/loader/loader.service.d.ts +1 -1
- package/dist/core/app/renderer/renderer.controller.d.ts +1 -1
- package/dist/core/app/renderer/renderer.module.d.ts +1 -1
- package/dist/core/app/renderer/renderer.service.d.ts +1 -1
- package/dist/core/app/sizes/sizes.controller.d.ts +1 -1
- package/dist/core/app/sizes/sizes.module.d.ts +1 -2
- package/dist/core/app/sizes/sizes.service.d.ts +1 -1
- package/dist/core/app/timer/timer.controller.d.ts +2 -1
- package/dist/core/app/timer/timer.module.d.ts +3 -2
- package/dist/core/app/timer/timer.service.d.ts +4 -2
- package/dist/core/app/world/world.module.d.ts +1 -1
- package/dist/core/register/loader/loader.controller.d.ts +2 -2
- package/dist/core/register/loader/loader.module.d.ts +3 -3
- package/dist/core/register/loader/loader.service.d.ts +1 -1
- package/dist/core/register/register.controller.d.ts +1 -1
- package/dist/core/register/register.module.d.ts +1 -1
- package/dist/main.js +4 -4
- package/dist/main.mjs +1503 -1480
- package/dist/worker.js +1 -1
- package/dist/worker.mjs +241 -184
- package/package.json +8 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var vr=Object.defineProperty;var br=(e,t,r)=>t in e?vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var h=(e,t,r)=>br(e,typeof t!="symbol"?t+"":t,r);const be=require("three"),mr=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],wr=["contextmenu","resize","mousedown","mousemove","mouseup","pointerdown","pointermove","pointercancel","pointerup","touchstart","touchmove","touchend","wheel","keydown"];var $t=(e=>(e[e.PERSPECTIVE=0]="PERSPECTIVE",e[e.ORTHOGRAPHIC=1]="ORTHOGRAPHIC",e))($t||{});class Ct{constructor(){h(this,"contextmenu$$");h(this,"resize$$");h(this,"mousedown$$");h(this,"mousemove$$");h(this,"mouseup$$");h(this,"pointerdown$$");h(this,"pointermove$$");h(this,"pointercancel$$");h(this,"pointerup$$");h(this,"touchstart$$");h(this,"touchmove$$");h(this,"touchend$$");h(this,"wheel$$");h(this,"keydown$$")}}class zt extends Ct{constructor(){super(...arguments);h(this,"contextmenu$");h(this,"resize$");h(this,"mousedown$");h(this,"mousemove$");h(this,"mouseup$");h(this,"pointerdown$");h(this,"pointermove$");h(this,"pointercancel$");h(this,"pointerup$");h(this,"touchstart$");h(this,"touchmove$");h(this,"touchend$");h(this,"wheel$");h(this,"keydown$")}}class gr extends zt{constructor(){super(...arguments);h(this,"contextmenu");h(this,"resize");h(this,"mousedown");h(this,"mousemove");h(this,"mouseup");h(this,"pointerdown");h(this,"pointermove");h(this,"pointercancel");h(this,"pointerup");h(this,"touchstart");h(this,"touchmove");h(this,"touchend");h(this,"wheel");h(this,"keydown")}}class _r{constructor(){h(this,"contextmenu$");h(this,"resize$");h(this,"mousedown$");h(this,"mousemove$");h(this,"mouseup$");h(this,"pointerdown$");h(this,"pointermove$");h(this,"pointercancel$");h(this,"pointerup$");h(this,"touchstart$");h(this,"touchmove$");h(this,"touchend$");h(this,"wheel$");h(this,"keydown$");h(this,"contextmenu");h(this,"resize");h(this,"mousedown");h(this,"mousemove");h(this,"mouseup");h(this,"pointerdown");h(this,"pointermove");h(this,"pointercancel");h(this,"pointerup");h(this,"touchstart");h(this,"touchmove");h(this,"touchend");h(this,"wheel");h(this,"keydown")}}class Sr{constructor(){h(this,"contextmenu$");h(this,"resize$");h(this,"mousedown$");h(this,"mousemove$");h(this,"mouseup$");h(this,"pointerdown$");h(this,"pointermove$");h(this,"pointercancel$");h(this,"pointerup$");h(this,"touchstart$");h(this,"touchmove$");h(this,"touchend$");h(this,"wheel$");h(this,"keydown$")}}const Er="CONTAINER",Mr="LOADER_SERIALIZED_LOAD";var vt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Tr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var bt={};/*! *****************************************************************************
|
|
2
2
|
Copyright (C) Microsoft. All rights reserved.
|
|
3
3
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
4
|
this file except in compliance with the License. You may obtain a copy of the
|
|
@@ -11,7 +11,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
11
11
|
|
|
12
12
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
13
|
and limitations under the License.
|
|
14
|
-
***************************************************************************** */var mt;function Tr(){if(mt)return bt;mt=1;var e;return function(t){(function(r){var n=typeof globalThis=="object"?globalThis:typeof vt=="object"?vt:typeof self=="object"?self:typeof this=="object"?this:d(),i=o(t);typeof n.Reflect<"u"&&(i=o(n.Reflect,i)),r(i,n),typeof n.Reflect>"u"&&(n.Reflect=t);function o(f,b){return function(E,I){Object.defineProperty(f,E,{configurable:!0,writable:!0,value:I}),b&&b(E,I)}}function s(){try{return Function("return this;")()}catch{}}function c(){try{return(0,eval)("(function() { return this; })()")}catch{}}function d(){return s()||c()}})(function(r,n){var i=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",s=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",c=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",f={__proto__:[]}instanceof Array,b=!d&&!f,E={create:d?function(){return Fe(Object.create(null))}:f?function(){return Fe({__proto__:null})}:function(){return Fe({})},has:b?function(a,u){return i.call(a,u)}:function(a,u){return u in a},get:b?function(a,u){return i.call(a,u)?a[u]:void 0}:function(a,u){return a[u]}},I=Object.getPrototypeOf(Function),O=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:fr(),x=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:lr(),S=typeof WeakMap=="function"?WeakMap:dr(),R=o?Symbol.for("@reflect-metadata:registry"):void 0,N=ar(),B=ur(N);function G(a,u,l,p){if(M(l)){if(!ut(a))throw new TypeError;if(!ct(u))throw new TypeError;return X(a,u)}else{if(!ut(a))throw new TypeError;if(!D(u))throw new TypeError;if(!D(p)&&!M(p)&&!ce(p))throw new TypeError;return ce(p)&&(p=void 0),l=Y(l),L(a,u,l,p)}}r("decorate",G);function ee(a,u){function l(p,_){if(!D(p))throw new TypeError;if(!M(_)&&!or(_))throw new TypeError;Z(a,u,p,_)}return l}r("metadata",ee);function te(a,u,l,p){if(!D(l))throw new TypeError;return M(p)||(p=Y(p)),Z(a,u,l,p)}r("defineMetadata",te);function V(a,u,l){if(!D(u))throw new TypeError;return M(l)||(l=Y(l)),U(a,u,l)}r("hasMetadata",V);function Me(a,u,l){if(!D(u))throw new TypeError;return M(l)||(l=Y(l)),pe(a,u,l)}r("hasOwnMetadata",Me);function Ce(a,u,l){if(!D(u))throw new TypeError;return M(l)||(l=Y(l)),Oe(a,u,l)}r("getMetadata",Ce);function v(a,u,l){if(!D(u))throw new TypeError;return M(l)||(l=Y(l)),ae(a,u,l)}r("getOwnMetadata",v);function k(a,u){if(!D(a))throw new TypeError;return M(u)||(u=Y(u)),ue(a,u)}r("getMetadataKeys",k);function A(a,u){if(!D(a))throw new TypeError;return M(u)||(u=Y(u)),ot(a,u)}r("getOwnMetadataKeys",A);function z(a,u,l){if(!D(u))throw new TypeError;if(M(l)||(l=Y(l)),!D(u))throw new TypeError;M(l)||(l=Y(l));var p=ye(u,l,!1);return M(p)?!1:p.OrdinaryDeleteMetadata(a,u,l)}r("deleteMetadata",z);function X(a,u){for(var l=a.length-1;l>=0;--l){var p=a[l],_=p(u);if(!M(_)&&!ce(_)){if(!ct(_))throw new TypeError;u=_}}return u}function L(a,u,l,p){for(var _=a.length-1;_>=0;--_){var q=a[_],F=q(u,l,p);if(!M(F)&&!ce(F)){if(!D(F))throw new TypeError;p=F}}return p}function U(a,u,l){var p=pe(a,u,l);if(p)return!0;var _=De(u);return ce(_)?!1:U(a,_,l)}function pe(a,u,l){var p=ye(u,l,!1);return M(p)?!1:at(p.OrdinaryHasOwnMetadata(a,u,l))}function Oe(a,u,l){var p=pe(a,u,l);if(p)return ae(a,u,l);var _=De(u);if(!ce(_))return Oe(a,_,l)}function ae(a,u,l){var p=ye(u,l,!1);if(!M(p))return p.OrdinaryGetOwnMetadata(a,u,l)}function Z(a,u,l,p){var _=ye(l,p,!0);_.OrdinaryDefineOwnMetadata(a,u,l,p)}function ue(a,u){var l=ot(a,u),p=De(a);if(p===null)return l;var _=ue(p,u);if(_.length<=0)return l;if(l.length<=0)return _;for(var q=new x,F=[],T=0,y=l;T<y.length;T++){var m=y[T],w=q.has(m);w||(q.add(m),F.push(m))}for(var g=0,P=_;g<P.length;g++){var m=P[g],w=q.has(m);w||(q.add(m),F.push(m))}return F}function ot(a,u){var l=ye(a,u,!1);return l?l.OrdinaryOwnMetadataKeys(a,u):[]}function st(a){if(a===null)return 1;switch(typeof a){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return a===null?1:6;default:return 6}}function M(a){return a===void 0}function ce(a){return a===null}function tr(a){return typeof a=="symbol"}function D(a){return typeof a=="object"?a!==null:typeof a=="function"}function rr(a,u){switch(st(a)){case 0:return a;case 1:return a;case 2:return a;case 3:return a;case 4:return a;case 5:return a}var l="string",p=ft(a,s);if(p!==void 0){var _=p.call(a,l);if(D(_))throw new TypeError;return _}return nr(a)}function nr(a,u){var l,p;{var _=a.toString;if(Te(_)){var p=_.call(a);if(!D(p))return p}var l=a.valueOf;if(Te(l)){var p=l.call(a);if(!D(p))return p}}throw new TypeError}function at(a){return!!a}function ir(a){return""+a}function Y(a){var u=rr(a);return tr(u)?u:ir(u)}function ut(a){return Array.isArray?Array.isArray(a):a instanceof Object?a instanceof Array:Object.prototype.toString.call(a)==="[object Array]"}function Te(a){return typeof a=="function"}function ct(a){return typeof a=="function"}function or(a){switch(st(a)){case 3:return!0;case 4:return!0;default:return!1}}function ze(a,u){return a===u||a!==a&&u!==u}function ft(a,u){var l=a[u];if(l!=null){if(!Te(l))throw new TypeError;return l}}function lt(a){var u=ft(a,c);if(!Te(u))throw new TypeError;var l=u.call(a);if(!D(l))throw new TypeError;return l}function dt(a){return a.value}function ht(a){var u=a.next();return u.done?!1:u}function pt(a){var u=a.return;u&&u.call(a)}function De(a){var u=Object.getPrototypeOf(a);if(typeof a!="function"||a===I||u!==I)return u;var l=a.prototype,p=l&&Object.getPrototypeOf(l);if(p==null||p===Object.prototype)return u;var _=p.constructor;return typeof _!="function"||_===a?u:_}function sr(){var a;!M(R)&&typeof n.Reflect<"u"&&!(R in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(a=cr(n.Reflect));var u,l,p,_=new S,q={registerProvider:F,getProvider:y,setProvider:w};return q;function F(g){if(!Object.isExtensible(q))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case a===g:break;case M(u):u=g;break;case u===g:break;case M(l):l=g;break;case l===g:break;default:p===void 0&&(p=new x),p.add(g);break}}function T(g,P){if(!M(u)){if(u.isProviderFor(g,P))return u;if(!M(l)){if(l.isProviderFor(g,P))return u;if(!M(p))for(var j=lt(p);;){var C=ht(j);if(!C)return;var J=dt(C);if(J.isProviderFor(g,P))return pt(j),J}}}if(!M(a)&&a.isProviderFor(g,P))return a}function y(g,P){var j=_.get(g),C;return M(j)||(C=j.get(P)),M(C)&&(C=T(g,P),M(C)||(M(j)&&(j=new O,_.set(g,j)),j.set(P,C))),C}function m(g){if(M(g))throw new TypeError;return u===g||l===g||!M(p)&&p.has(g)}function w(g,P,j){if(!m(j))throw new Error("Metadata provider not registered.");var C=y(g,P);if(C!==j){if(!M(C))return!1;var J=_.get(g);M(J)&&(J=new O,_.set(g,J)),J.set(P,j)}return!0}}function ar(){var a;return!M(R)&&D(n.Reflect)&&Object.isExtensible(n.Reflect)&&(a=n.Reflect[R]),M(a)&&(a=sr()),!M(R)&&D(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,R,{enumerable:!1,configurable:!1,writable:!1,value:a}),a}function ur(a){var u=new S,l={isProviderFor:function(m,w){var g=u.get(m);return M(g)?!1:g.has(w)},OrdinaryDefineOwnMetadata:F,OrdinaryHasOwnMetadata:_,OrdinaryGetOwnMetadata:q,OrdinaryOwnMetadataKeys:T,OrdinaryDeleteMetadata:y};return N.registerProvider(l),l;function p(m,w,g){var P=u.get(m),j=!1;if(M(P)){if(!g)return;P=new O,u.set(m,P),j=!0}var C=P.get(w);if(M(C)){if(!g)return;if(C=new O,P.set(w,C),!a.setProvider(m,w,l))throw P.delete(w),j&&u.delete(m),new Error("Wrong provider for target.")}return C}function _(m,w,g){var P=p(w,g,!1);return M(P)?!1:at(P.has(m))}function q(m,w,g){var P=p(w,g,!1);if(!M(P))return P.get(m)}function F(m,w,g,P){var j=p(g,P,!0);j.set(m,w)}function T(m,w){var g=[],P=p(m,w,!1);if(M(P))return g;for(var j=P.keys(),C=lt(j),J=0;;){var yt=ht(C);if(!yt)return g.length=J,g;var hr=dt(yt);try{g[J]=hr}catch(pr){try{pt(C)}finally{throw pr}}J++}}function y(m,w,g){var P=p(w,g,!1);if(M(P)||!P.delete(m))return!1;if(P.size===0){var j=u.get(w);M(j)||(j.delete(g),j.size===0&&u.delete(j))}return!0}}function cr(a){var u=a.defineMetadata,l=a.hasOwnMetadata,p=a.getOwnMetadata,_=a.getOwnMetadataKeys,q=a.deleteMetadata,F=new S,T={isProviderFor:function(y,m){var w=F.get(y);return!M(w)&&w.has(m)?!0:_(y,m).length?(M(w)&&(w=new x,F.set(y,w)),w.add(m),!0):!1},OrdinaryDefineOwnMetadata:u,OrdinaryHasOwnMetadata:l,OrdinaryGetOwnMetadata:p,OrdinaryOwnMetadataKeys:_,OrdinaryDeleteMetadata:q};return T}function ye(a,u,l){var p=N.getProvider(a,u);if(!M(p))return p;if(l){if(N.setProvider(a,u,B))return B;throw new Error("Illegal state.")}}function fr(){var a={},u=[],l=function(){function T(y,m,w){this._index=0,this._keys=y,this._values=m,this._selector=w}return T.prototype["@@iterator"]=function(){return this},T.prototype[c]=function(){return this},T.prototype.next=function(){var y=this._index;if(y>=0&&y<this._keys.length){var m=this._selector(this._keys[y],this._values[y]);return y+1>=this._keys.length?(this._index=-1,this._keys=u,this._values=u):this._index++,{value:m,done:!1}}return{value:void 0,done:!0}},T.prototype.throw=function(y){throw this._index>=0&&(this._index=-1,this._keys=u,this._values=u),y},T.prototype.return=function(y){return this._index>=0&&(this._index=-1,this._keys=u,this._values=u),{value:y,done:!0}},T}(),p=function(){function T(){this._keys=[],this._values=[],this._cacheKey=a,this._cacheIndex=-2}return Object.defineProperty(T.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),T.prototype.has=function(y){return this._find(y,!1)>=0},T.prototype.get=function(y){var m=this._find(y,!1);return m>=0?this._values[m]:void 0},T.prototype.set=function(y,m){var w=this._find(y,!0);return this._values[w]=m,this},T.prototype.delete=function(y){var m=this._find(y,!1);if(m>=0){for(var w=this._keys.length,g=m+1;g<w;g++)this._keys[g-1]=this._keys[g],this._values[g-1]=this._values[g];return this._keys.length--,this._values.length--,ze(y,this._cacheKey)&&(this._cacheKey=a,this._cacheIndex=-2),!0}return!1},T.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=a,this._cacheIndex=-2},T.prototype.keys=function(){return new l(this._keys,this._values,_)},T.prototype.values=function(){return new l(this._keys,this._values,q)},T.prototype.entries=function(){return new l(this._keys,this._values,F)},T.prototype["@@iterator"]=function(){return this.entries()},T.prototype[c]=function(){return this.entries()},T.prototype._find=function(y,m){if(!ze(this._cacheKey,y)){this._cacheIndex=-1;for(var w=0;w<this._keys.length;w++)if(ze(this._keys[w],y)){this._cacheIndex=w;break}}return this._cacheIndex<0&&m&&(this._cacheIndex=this._keys.length,this._keys.push(y),this._values.push(void 0)),this._cacheIndex},T}();return p;function _(T,y){return T}function q(T,y){return y}function F(T,y){return[T,y]}}function lr(){var a=function(){function u(){this._map=new O}return Object.defineProperty(u.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),u.prototype.has=function(l){return this._map.has(l)},u.prototype.add=function(l){return this._map.set(l,l),this},u.prototype.delete=function(l){return this._map.delete(l)},u.prototype.clear=function(){this._map.clear()},u.prototype.keys=function(){return this._map.keys()},u.prototype.values=function(){return this._map.keys()},u.prototype.entries=function(){return this._map.entries()},u.prototype["@@iterator"]=function(){return this.keys()},u.prototype[c]=function(){return this.keys()},u}();return a}function dr(){var a=16,u=E.create(),l=p();return function(){function y(){this._key=p()}return y.prototype.has=function(m){var w=_(m,!1);return w!==void 0?E.has(w,this._key):!1},y.prototype.get=function(m){var w=_(m,!1);return w!==void 0?E.get(w,this._key):void 0},y.prototype.set=function(m,w){var g=_(m,!0);return g[this._key]=w,this},y.prototype.delete=function(m){var w=_(m,!1);return w!==void 0?delete w[this._key]:!1},y.prototype.clear=function(){this._key=p()},y}();function p(){var y;do y="@@WeakMap@@"+T();while(E.has(u,y));return u[y]=!0,y}function _(y,m){if(!i.call(y,l)){if(!m)return;Object.defineProperty(y,l,{value:E.create()})}return y[l]}function q(y,m){for(var w=0;w<m;++w)y[w]=Math.random()*255|0;return y}function F(y){if(typeof Uint8Array=="function"){var m=new Uint8Array(y);return typeof crypto<"u"?crypto.getRandomValues(m):typeof msCrypto<"u"?msCrypto.getRandomValues(m):q(m,y),m}return q(new Array(y),y)}function T(){var y=F(a);y[6]=y[6]&79|64,y[8]=y[8]&191|128;for(var m="",w=0;w<a;++w){var g=y[w];(w===4||w===6||w===8)&&(m+="-"),g<16&&(m+="0"),m+=g.toString(16).toLowerCase()}return m}}function Fe(a){return a.__=void 0,delete a.__,a}})}(e||(e={})),bt}Tr();var Rr=Object.defineProperty,Pr=(e,t,r)=>t in e?Rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ve=(e,t,r)=>Pr(e,typeof t!="symbol"?t+"":t,r);class kr extends be.EventDispatcher{constructor(){super(),ve(this,"style",{}),ve(this,"width",0),ve(this,"height",0),ve(this,"left",0),ve(this,"top",0),this.getRootNode=this.getRootNode.bind(this),this.handleEvent=this.handleEvent.bind(this)}get clientWidth(){return this.width}get clientHeight(){return this.height}setPointerCapture(){}releasePointerCapture(){}getRootNode(){return this}getBoundingClientRect(){return{left:this.left,top:this.top,width:this.width,height:this.height,right:this.left+this.width,bottom:this.top+this.height}}handleEvent(t){if(t.type==="resize"){this.left=t.left??0,this.top=t.top??0,this.width=t.width??0,this.height=t.height??0;return}t.preventDefault=()=>{},t.stopPropagation=()=>{},this.dispatchEvent(t)}focus(){}}const Ir=e=>e===void 0,xr=e=>typeof e=="boolean",Ar=e=>!!e&&typeof e=="function",jr=e=>{var t,r;const n=e.toJSON();return JSON.stringify({...n,object:{...n.object,position:["x","y","z"].map(i=>e.position[i]),rotation:["x","y","z","order"].map(i=>e.rotation[i]),children:((r=(t=n==null?void 0:n.object)==null?void 0:t.children)==null?void 0:r.map((i,o)=>({...typeof i=="object"?i:typeof i=="string"?JSON.parse(i):{},position:["x","y","z"].map(s=>{var c;return(c=e.children[o])==null?void 0:c.position[s]}),rotation:["x","y","z","order"].map(s=>{var c;return(c=e.children[o])==null?void 0:c.rotation[s]})})))??[]},isSerialized:!0})},$r=(e,t=new be.ObjectLoader)=>{const r=JSON.parse(e);if(r!=null&&r.metadata&&r.object&&r.isSerialized){const n=t.parse(r);return n.position.set(...r.object.position),n.rotation.set(...r.object.rotation),n.children.map((i,o)=>{i.position.set(...r.object.children[o].position)}),n.children.map((i,o)=>{i.rotation.set(...r.object.children[o].rotation)}),n}return r},Cr=(e,t)=>{const r={type:e==null?void 0:e.type};for(const n of t)e[n]!==void 0&&(r[n]=e[n]);return r},zr=(e,t)=>{const r={type:e==null?void 0:e.type};for(const[n,i]of Object.entries(e))t.includes(n)||(r[n]=i);return r};var Be;(function(e){e[e.Transient=0]="Transient",e[e.Singleton=1]="Singleton",e[e.ResolutionScoped=2]="ResolutionScoped",e[e.ContainerScoped=3]="ContainerScoped"})(Be||(Be={}));const W=Be;/*! *****************************************************************************
|
|
14
|
+
***************************************************************************** */var mt;function Rr(){if(mt)return bt;mt=1;var e;return function(t){(function(r){var n=typeof globalThis=="object"?globalThis:typeof vt=="object"?vt:typeof self=="object"?self:typeof this=="object"?this:d(),i=o(t);typeof n.Reflect<"u"&&(i=o(n.Reflect,i)),r(i,n),typeof n.Reflect>"u"&&(n.Reflect=t);function o(f,b){return function(E,k){Object.defineProperty(f,E,{configurable:!0,writable:!0,value:k}),b&&b(E,k)}}function s(){try{return Function("return this;")()}catch{}}function c(){try{return(0,eval)("(function() { return this; })()")}catch{}}function d(){return s()||c()}})(function(r,n){var i=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",s=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",c=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",f={__proto__:[]}instanceof Array,b=!d&&!f,E={create:d?function(){return Fe(Object.create(null))}:f?function(){return Fe({__proto__:null})}:function(){return Fe({})},has:b?function(a,u){return i.call(a,u)}:function(a,u){return u in a},get:b?function(a,u){return i.call(a,u)?a[u]:void 0}:function(a,u){return a[u]}},k=Object.getPrototypeOf(Function),O=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:lr(),I=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:dr(),S=typeof WeakMap=="function"?WeakMap:hr(),R=o?Symbol.for("@reflect-metadata:registry"):void 0,N=ur(),B=cr(N);function G(a,u,l,p){if(M(l)){if(!ut(a))throw new TypeError;if(!ct(u))throw new TypeError;return X(a,u)}else{if(!ut(a))throw new TypeError;if(!D(u))throw new TypeError;if(!D(p)&&!M(p)&&!ce(p))throw new TypeError;return ce(p)&&(p=void 0),l=Y(l),L(a,u,l,p)}}r("decorate",G);function ee(a,u){function l(p,_){if(!D(p))throw new TypeError;if(!M(_)&&!sr(_))throw new TypeError;Z(a,u,p,_)}return l}r("metadata",ee);function te(a,u,l,p){if(!D(l))throw new TypeError;return M(p)||(p=Y(p)),Z(a,u,l,p)}r("defineMetadata",te);function U(a,u,l){if(!D(u))throw new TypeError;return M(l)||(l=Y(l)),V(a,u,l)}r("hasMetadata",U);function Me(a,u,l){if(!D(u))throw new TypeError;return M(l)||(l=Y(l)),ye(a,u,l)}r("hasOwnMetadata",Me);function Ce(a,u,l){if(!D(u))throw new TypeError;return M(l)||(l=Y(l)),Oe(a,u,l)}r("getMetadata",Ce);function v(a,u,l){if(!D(u))throw new TypeError;return M(l)||(l=Y(l)),ae(a,u,l)}r("getOwnMetadata",v);function x(a,u){if(!D(a))throw new TypeError;return M(u)||(u=Y(u)),ue(a,u)}r("getMetadataKeys",x);function A(a,u){if(!D(a))throw new TypeError;return M(u)||(u=Y(u)),ot(a,u)}r("getOwnMetadataKeys",A);function z(a,u,l){if(!D(u))throw new TypeError;if(M(l)||(l=Y(l)),!D(u))throw new TypeError;M(l)||(l=Y(l));var p=ve(u,l,!1);return M(p)?!1:p.OrdinaryDeleteMetadata(a,u,l)}r("deleteMetadata",z);function X(a,u){for(var l=a.length-1;l>=0;--l){var p=a[l],_=p(u);if(!M(_)&&!ce(_)){if(!ct(_))throw new TypeError;u=_}}return u}function L(a,u,l,p){for(var _=a.length-1;_>=0;--_){var q=a[_],F=q(u,l,p);if(!M(F)&&!ce(F)){if(!D(F))throw new TypeError;p=F}}return p}function V(a,u,l){var p=ye(a,u,l);if(p)return!0;var _=De(u);return ce(_)?!1:V(a,_,l)}function ye(a,u,l){var p=ve(u,l,!1);return M(p)?!1:at(p.OrdinaryHasOwnMetadata(a,u,l))}function Oe(a,u,l){var p=ye(a,u,l);if(p)return ae(a,u,l);var _=De(u);if(!ce(_))return Oe(a,_,l)}function ae(a,u,l){var p=ve(u,l,!1);if(!M(p))return p.OrdinaryGetOwnMetadata(a,u,l)}function Z(a,u,l,p){var _=ve(l,p,!0);_.OrdinaryDefineOwnMetadata(a,u,l,p)}function ue(a,u){var l=ot(a,u),p=De(a);if(p===null)return l;var _=ue(p,u);if(_.length<=0)return l;if(l.length<=0)return _;for(var q=new I,F=[],T=0,y=l;T<y.length;T++){var m=y[T],w=q.has(m);w||(q.add(m),F.push(m))}for(var g=0,P=_;g<P.length;g++){var m=P[g],w=q.has(m);w||(q.add(m),F.push(m))}return F}function ot(a,u){var l=ve(a,u,!1);return l?l.OrdinaryOwnMetadataKeys(a,u):[]}function st(a){if(a===null)return 1;switch(typeof a){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return a===null?1:6;default:return 6}}function M(a){return a===void 0}function ce(a){return a===null}function rr(a){return typeof a=="symbol"}function D(a){return typeof a=="object"?a!==null:typeof a=="function"}function nr(a,u){switch(st(a)){case 0:return a;case 1:return a;case 2:return a;case 3:return a;case 4:return a;case 5:return a}var l="string",p=ft(a,s);if(p!==void 0){var _=p.call(a,l);if(D(_))throw new TypeError;return _}return ir(a)}function ir(a,u){var l,p;{var _=a.toString;if(Te(_)){var p=_.call(a);if(!D(p))return p}var l=a.valueOf;if(Te(l)){var p=l.call(a);if(!D(p))return p}}throw new TypeError}function at(a){return!!a}function or(a){return""+a}function Y(a){var u=nr(a);return rr(u)?u:or(u)}function ut(a){return Array.isArray?Array.isArray(a):a instanceof Object?a instanceof Array:Object.prototype.toString.call(a)==="[object Array]"}function Te(a){return typeof a=="function"}function ct(a){return typeof a=="function"}function sr(a){switch(st(a)){case 3:return!0;case 4:return!0;default:return!1}}function ze(a,u){return a===u||a!==a&&u!==u}function ft(a,u){var l=a[u];if(l!=null){if(!Te(l))throw new TypeError;return l}}function lt(a){var u=ft(a,c);if(!Te(u))throw new TypeError;var l=u.call(a);if(!D(l))throw new TypeError;return l}function dt(a){return a.value}function ht(a){var u=a.next();return u.done?!1:u}function pt(a){var u=a.return;u&&u.call(a)}function De(a){var u=Object.getPrototypeOf(a);if(typeof a!="function"||a===k||u!==k)return u;var l=a.prototype,p=l&&Object.getPrototypeOf(l);if(p==null||p===Object.prototype)return u;var _=p.constructor;return typeof _!="function"||_===a?u:_}function ar(){var a;!M(R)&&typeof n.Reflect<"u"&&!(R in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(a=fr(n.Reflect));var u,l,p,_=new S,q={registerProvider:F,getProvider:y,setProvider:w};return q;function F(g){if(!Object.isExtensible(q))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case a===g:break;case M(u):u=g;break;case u===g:break;case M(l):l=g;break;case l===g:break;default:p===void 0&&(p=new I),p.add(g);break}}function T(g,P){if(!M(u)){if(u.isProviderFor(g,P))return u;if(!M(l)){if(l.isProviderFor(g,P))return u;if(!M(p))for(var j=lt(p);;){var C=ht(j);if(!C)return;var J=dt(C);if(J.isProviderFor(g,P))return pt(j),J}}}if(!M(a)&&a.isProviderFor(g,P))return a}function y(g,P){var j=_.get(g),C;return M(j)||(C=j.get(P)),M(C)&&(C=T(g,P),M(C)||(M(j)&&(j=new O,_.set(g,j)),j.set(P,C))),C}function m(g){if(M(g))throw new TypeError;return u===g||l===g||!M(p)&&p.has(g)}function w(g,P,j){if(!m(j))throw new Error("Metadata provider not registered.");var C=y(g,P);if(C!==j){if(!M(C))return!1;var J=_.get(g);M(J)&&(J=new O,_.set(g,J)),J.set(P,j)}return!0}}function ur(){var a;return!M(R)&&D(n.Reflect)&&Object.isExtensible(n.Reflect)&&(a=n.Reflect[R]),M(a)&&(a=ar()),!M(R)&&D(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,R,{enumerable:!1,configurable:!1,writable:!1,value:a}),a}function cr(a){var u=new S,l={isProviderFor:function(m,w){var g=u.get(m);return M(g)?!1:g.has(w)},OrdinaryDefineOwnMetadata:F,OrdinaryHasOwnMetadata:_,OrdinaryGetOwnMetadata:q,OrdinaryOwnMetadataKeys:T,OrdinaryDeleteMetadata:y};return N.registerProvider(l),l;function p(m,w,g){var P=u.get(m),j=!1;if(M(P)){if(!g)return;P=new O,u.set(m,P),j=!0}var C=P.get(w);if(M(C)){if(!g)return;if(C=new O,P.set(w,C),!a.setProvider(m,w,l))throw P.delete(w),j&&u.delete(m),new Error("Wrong provider for target.")}return C}function _(m,w,g){var P=p(w,g,!1);return M(P)?!1:at(P.has(m))}function q(m,w,g){var P=p(w,g,!1);if(!M(P))return P.get(m)}function F(m,w,g,P){var j=p(g,P,!0);j.set(m,w)}function T(m,w){var g=[],P=p(m,w,!1);if(M(P))return g;for(var j=P.keys(),C=lt(j),J=0;;){var yt=ht(C);if(!yt)return g.length=J,g;var pr=dt(yt);try{g[J]=pr}catch(yr){try{pt(C)}finally{throw yr}}J++}}function y(m,w,g){var P=p(w,g,!1);if(M(P)||!P.delete(m))return!1;if(P.size===0){var j=u.get(w);M(j)||(j.delete(g),j.size===0&&u.delete(j))}return!0}}function fr(a){var u=a.defineMetadata,l=a.hasOwnMetadata,p=a.getOwnMetadata,_=a.getOwnMetadataKeys,q=a.deleteMetadata,F=new S,T={isProviderFor:function(y,m){var w=F.get(y);return!M(w)&&w.has(m)?!0:_(y,m).length?(M(w)&&(w=new I,F.set(y,w)),w.add(m),!0):!1},OrdinaryDefineOwnMetadata:u,OrdinaryHasOwnMetadata:l,OrdinaryGetOwnMetadata:p,OrdinaryOwnMetadataKeys:_,OrdinaryDeleteMetadata:q};return T}function ve(a,u,l){var p=N.getProvider(a,u);if(!M(p))return p;if(l){if(N.setProvider(a,u,B))return B;throw new Error("Illegal state.")}}function lr(){var a={},u=[],l=function(){function T(y,m,w){this._index=0,this._keys=y,this._values=m,this._selector=w}return T.prototype["@@iterator"]=function(){return this},T.prototype[c]=function(){return this},T.prototype.next=function(){var y=this._index;if(y>=0&&y<this._keys.length){var m=this._selector(this._keys[y],this._values[y]);return y+1>=this._keys.length?(this._index=-1,this._keys=u,this._values=u):this._index++,{value:m,done:!1}}return{value:void 0,done:!0}},T.prototype.throw=function(y){throw this._index>=0&&(this._index=-1,this._keys=u,this._values=u),y},T.prototype.return=function(y){return this._index>=0&&(this._index=-1,this._keys=u,this._values=u),{value:y,done:!0}},T}(),p=function(){function T(){this._keys=[],this._values=[],this._cacheKey=a,this._cacheIndex=-2}return Object.defineProperty(T.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),T.prototype.has=function(y){return this._find(y,!1)>=0},T.prototype.get=function(y){var m=this._find(y,!1);return m>=0?this._values[m]:void 0},T.prototype.set=function(y,m){var w=this._find(y,!0);return this._values[w]=m,this},T.prototype.delete=function(y){var m=this._find(y,!1);if(m>=0){for(var w=this._keys.length,g=m+1;g<w;g++)this._keys[g-1]=this._keys[g],this._values[g-1]=this._values[g];return this._keys.length--,this._values.length--,ze(y,this._cacheKey)&&(this._cacheKey=a,this._cacheIndex=-2),!0}return!1},T.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=a,this._cacheIndex=-2},T.prototype.keys=function(){return new l(this._keys,this._values,_)},T.prototype.values=function(){return new l(this._keys,this._values,q)},T.prototype.entries=function(){return new l(this._keys,this._values,F)},T.prototype["@@iterator"]=function(){return this.entries()},T.prototype[c]=function(){return this.entries()},T.prototype._find=function(y,m){if(!ze(this._cacheKey,y)){this._cacheIndex=-1;for(var w=0;w<this._keys.length;w++)if(ze(this._keys[w],y)){this._cacheIndex=w;break}}return this._cacheIndex<0&&m&&(this._cacheIndex=this._keys.length,this._keys.push(y),this._values.push(void 0)),this._cacheIndex},T}();return p;function _(T,y){return T}function q(T,y){return y}function F(T,y){return[T,y]}}function dr(){var a=function(){function u(){this._map=new O}return Object.defineProperty(u.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),u.prototype.has=function(l){return this._map.has(l)},u.prototype.add=function(l){return this._map.set(l,l),this},u.prototype.delete=function(l){return this._map.delete(l)},u.prototype.clear=function(){this._map.clear()},u.prototype.keys=function(){return this._map.keys()},u.prototype.values=function(){return this._map.keys()},u.prototype.entries=function(){return this._map.entries()},u.prototype["@@iterator"]=function(){return this.keys()},u.prototype[c]=function(){return this.keys()},u}();return a}function hr(){var a=16,u=E.create(),l=p();return function(){function y(){this._key=p()}return y.prototype.has=function(m){var w=_(m,!1);return w!==void 0?E.has(w,this._key):!1},y.prototype.get=function(m){var w=_(m,!1);return w!==void 0?E.get(w,this._key):void 0},y.prototype.set=function(m,w){var g=_(m,!0);return g[this._key]=w,this},y.prototype.delete=function(m){var w=_(m,!1);return w!==void 0?delete w[this._key]:!1},y.prototype.clear=function(){this._key=p()},y}();function p(){var y;do y="@@WeakMap@@"+T();while(E.has(u,y));return u[y]=!0,y}function _(y,m){if(!i.call(y,l)){if(!m)return;Object.defineProperty(y,l,{value:E.create()})}return y[l]}function q(y,m){for(var w=0;w<m;++w)y[w]=Math.random()*255|0;return y}function F(y){if(typeof Uint8Array=="function"){var m=new Uint8Array(y);return typeof crypto<"u"?crypto.getRandomValues(m):typeof msCrypto<"u"?msCrypto.getRandomValues(m):q(m,y),m}return q(new Array(y),y)}function T(){var y=F(a);y[6]=y[6]&79|64,y[8]=y[8]&191|128;for(var m="",w=0;w<a;++w){var g=y[w];(w===4||w===6||w===8)&&(m+="-"),g<16&&(m+="0"),m+=g.toString(16).toLowerCase()}return m}}function Fe(a){return a.__=void 0,delete a.__,a}})}(e||(e={})),bt}Rr();var Pr=Object.defineProperty,kr=(e,t,r)=>t in e?Pr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,le=(e,t,r)=>kr(e,typeof t!="symbol"?t+"":t,r);class wt extends be.EventDispatcher{constructor(){super(),le(this,"style",{}),le(this,"width",0),le(this,"height",0),le(this,"left",0),le(this,"top",0),this.getRootNode=this.getRootNode.bind(this),this.handleEvent=this.handleEvent.bind(this)}get clientWidth(){return this.width}get clientHeight(){return this.height}setPointerCapture(){}releasePointerCapture(){}getRootNode(){return this}getBoundingClientRect(){return{left:this.left,top:this.top,width:this.width,height:this.height,right:this.left+this.width,bottom:this.top+this.height}}handleEvent(t){if(t.type==="resize"){this.left=t.left??0,this.top=t.top??0,this.width=t.width??0,this.height=t.height??0;return}t.preventDefault=()=>{},t.stopPropagation=()=>{},this.dispatchEvent(t)}focus(){}}class xr extends wt{constructor(){super(...arguments),le(this,"ownerDocument",new wt)}}const Ir=e=>e===void 0,Ar=e=>typeof e=="boolean",jr=e=>!!e&&typeof e=="function",$r=e=>{var t,r;const n=e.toJSON();return JSON.stringify({...n,object:{...n.object,position:["x","y","z"].map(i=>e.position[i]),rotation:["x","y","z","order"].map(i=>e.rotation[i]),children:((r=(t=n==null?void 0:n.object)==null?void 0:t.children)==null?void 0:r.map((i,o)=>({...typeof i=="object"?i:typeof i=="string"?JSON.parse(i):{},position:["x","y","z"].map(s=>{var c;return(c=e.children[o])==null?void 0:c.position[s]}),rotation:["x","y","z","order"].map(s=>{var c;return(c=e.children[o])==null?void 0:c.rotation[s]})})))??[]},isSerialized:!0})},Cr=(e,t=new be.ObjectLoader)=>{const r=JSON.parse(e);if(r!=null&&r.metadata&&r.object&&r.isSerialized){const n=t.parse(r);return n.position.set(...r.object.position),n.rotation.set(...r.object.rotation),n.children.map((i,o)=>{i.position.set(...r.object.children[o].position)}),n.children.map((i,o)=>{i.rotation.set(...r.object.children[o].rotation)}),n}return r},zr=(e,t)=>{const r={type:e==null?void 0:e.type};for(const n of t)e[n]!==void 0&&(r[n]=e[n]);return r},Dr=(e,t)=>{const r={type:e==null?void 0:e.type};for(const[n,i]of Object.entries(e))t.includes(n)||(r[n]=i);return r};var Be;(function(e){e[e.Transient=0]="Transient",e[e.Singleton=1]="Singleton",e[e.ResolutionScoped=2]="ResolutionScoped",e[e.ContainerScoped=3]="ContainerScoped"})(Be||(Be={}));const W=Be;/*! *****************************************************************************
|
|
15
15
|
Copyright (c) Microsoft Corporation.
|
|
16
16
|
|
|
17
17
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -24,11 +24,11 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
24
24
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
25
25
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
26
26
|
PERFORMANCE OF THIS SOFTWARE.
|
|
27
|
-
***************************************************************************** */var Ge=function(e,t){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Ge(e,t)};function Ke(e,t){Ge(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function
|
|
27
|
+
***************************************************************************** */var Ge=function(e,t){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},Ge(e,t)};function Ke(e,t){Ge(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Fr(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function c(b){try{f(n.next(b))}catch(E){s(E)}}function d(b){try{f(n.throw(b))}catch(E){s(E)}}function f(b){b.done?o(b.value):i(b.value).then(c,d)}f((n=n.apply(e,[])).next())})}function Nr(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(b){return d([f,b])}}function d(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=f[0]&2?i.return:f[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,f[1])).done)return o;switch(i=0,o&&(f=[f[0]&2,o.value]),f[0]){case 0:case 1:o=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!o||f[1]>o[0]&&f[1]<o[3])){r.label=f[1];break}if(f[0]===6&&r.label<o[1]){r.label=o[1],o=f;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(f);break}o[2]&&r.ops.pop(),r.trys.pop();continue}f=t.call(e,r)}catch(b){f=[6,b],i=0}finally{n=o=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function Re(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $e(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(c){s={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function oe(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat($e(arguments[t]));return e}var Ue="injectionTokens";function qr(e){var t=Reflect.getMetadata("design:paramtypes",e)||[],r=Reflect.getOwnMetadata(Ue,e)||{};return Object.keys(r).forEach(function(n){t[+n]=r[n]}),t}function Lr(e,t){return function(r,n,i){var o=Reflect.getOwnMetadata(Ue,r)||{};o[i]=e,Reflect.defineMetadata(Ue,o,r)}}function Dt(e){return!!e.useClass}function Ve(e){return!!e.useFactory}var Ft=function(){function e(t){this.wrap=t,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct","ownKeys"]}return e.prototype.createProxy=function(t){var r=this,n={},i=!1,o,s=function(){return i||(o=t(r.wrap()),i=!0),o};return new Proxy(n,this.createHandler(s))},e.prototype.createHandler=function(t){var r={},n=function(i){r[i]=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];o[0]=t();var c=Reflect[i];return c.apply(void 0,oe(o))}};return this.reflectMethods.forEach(n),r},e}();function fe(e){return typeof e=="string"||typeof e=="symbol"}function Wr(e){return typeof e=="object"&&"token"in e&&"multiple"in e}function gt(e){return typeof e=="object"&&"token"in e&&"transform"in e}function Hr(e){return typeof e=="function"||e instanceof Ft}function Ie(e){return!!e.useToken}function Ae(e){return e.useValue!=null}function Br(e){return Dt(e)||Ae(e)||Ie(e)||Ve(e)}var et=function(){function e(){this._registryMap=new Map}return e.prototype.entries=function(){return this._registryMap.entries()},e.prototype.getAll=function(t){return this.ensure(t),this._registryMap.get(t)},e.prototype.get=function(t){this.ensure(t);var r=this._registryMap.get(t);return r[r.length-1]||null},e.prototype.set=function(t,r){this.ensure(t),this._registryMap.get(t).push(r)},e.prototype.setAll=function(t,r){this._registryMap.set(t,r)},e.prototype.has=function(t){return this.ensure(t),this._registryMap.get(t).length>0},e.prototype.clear=function(){this._registryMap.clear()},e.prototype.ensure=function(t){this._registryMap.has(t)||this._registryMap.set(t,[])},e}(),Gr=function(e){Ke(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(et),Pe=function(){function e(){this.scopedResolutions=new Map}return e}();function Ur(e,t){if(e===null)return"at position #"+t;var r=e.split(",")[t].trim();return'"'+r+'" at position #'+t}function Vr(e,t,r){return r===void 0&&(r=" "),oe([e],t.message.split(`
|
|
28
28
|
`).map(function(n){return r+n})).join(`
|
|
29
|
-
`)}function Ur(e,t,r){var n=$e(e.toString().match(/constructor\(([\w, ]+)\)/)||[],2),i=n[1],o=i===void 0?null:i,s=Gr(o,t);return Vr("Cannot inject the dependency "+s+' of "'+e.name+'" constructor. Reason:',r)}function Jr(e){if(typeof e.dispose!="function")return!1;var t=e.dispose;return!(t.length>0)}var Zr=function(e){Ke(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(et),Yr=function(e){Ke(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(et),Qr=function(){function e(){this.preResolution=new Zr,this.postResolution=new Yr}return e}(),Ft=new Map,Xr=function(){function e(t){this.parent=t,this._registry=new Br,this.interceptors=new Qr,this.disposed=!1,this.disposables=new Set}return e.prototype.register=function(t,r,n){n===void 0&&(n={lifecycle:W.Transient}),this.ensureNotDisposed();var i;if(Hr(r)?i=r:i={useClass:r},xe(i))for(var o=[t],s=i;s!=null;){var c=s.useToken;if(o.includes(c))throw new Error("Token registration cycle detected! "+oe(o,[c]).join(" -> "));o.push(c);var d=this._registry.get(c);d&&xe(d.provider)?s=d.provider:s=null}if((n.lifecycle===W.Singleton||n.lifecycle==W.ContainerScoped||n.lifecycle==W.ResolutionScoped)&&(Ae(i)||Ue(i)))throw new Error('Cannot use lifecycle "'+W[n.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(t,{provider:i,options:n}),this},e.prototype.registerType=function(t,r){return this.ensureNotDisposed(),fe(r)?this.register(t,{useToken:r}):this.register(t,{useClass:r})},e.prototype.registerInstance=function(t,r){return this.ensureNotDisposed(),this.register(t,{useValue:r})},e.prototype.registerSingleton=function(t,r){if(this.ensureNotDisposed(),fe(t)){if(fe(r))return this.register(t,{useToken:r},{lifecycle:W.Singleton});if(r)return this.register(t,{useClass:r},{lifecycle:W.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var n=t;return r&&!fe(r)&&(n=r),this.register(t,{useClass:n},{lifecycle:W.Singleton})},e.prototype.resolve=function(t,r,n){r===void 0&&(r=new Pe),n===void 0&&(n=!1),this.ensureNotDisposed();var i=this.getRegistration(t);if(!i&&fe(t)){if(n)return;throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"')}if(this.executePreResolutionInterceptor(t,"Single"),i){var o=this.resolveRegistration(i,r);return this.executePostResolutionInterceptor(t,o,"Single"),o}if(Wr(t)){var o=this.construct(t,r);return this.executePostResolutionInterceptor(t,o,"Single"),o}throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},e.prototype.executePreResolutionInterceptor=function(t,r){var n,i;if(this.interceptors.preResolution.has(t)){var o=[];try{for(var s=Re(this.interceptors.preResolution.getAll(t)),c=s.next();!c.done;c=s.next()){var d=c.value;d.options.frequency!="Once"&&o.push(d),d.callback(t,r)}}catch(f){n={error:f}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}this.interceptors.preResolution.setAll(t,o)}},e.prototype.executePostResolutionInterceptor=function(t,r,n){var i,o;if(this.interceptors.postResolution.has(t)){var s=[];try{for(var c=Re(this.interceptors.postResolution.getAll(t)),d=c.next();!d.done;d=c.next()){var f=d.value;f.options.frequency!="Once"&&s.push(f),f.callback(t,r,n)}}catch(b){i={error:b}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}this.interceptors.postResolution.setAll(t,s)}},e.prototype.resolveRegistration=function(t,r){if(this.ensureNotDisposed(),t.options.lifecycle===W.ResolutionScoped&&r.scopedResolutions.has(t))return r.scopedResolutions.get(t);var n=t.options.lifecycle===W.Singleton,i=t.options.lifecycle===W.ContainerScoped,o=n||i,s;return Ae(t.provider)?s=t.provider.useValue:xe(t.provider)?s=o?t.instance||(t.instance=this.resolve(t.provider.useToken,r)):this.resolve(t.provider.useToken,r):zt(t.provider)?s=o?t.instance||(t.instance=this.construct(t.provider.useClass,r)):this.construct(t.provider.useClass,r):Ue(t.provider)?s=t.provider.useFactory(this):s=this.construct(t.provider,r),t.options.lifecycle===W.ResolutionScoped&&r.scopedResolutions.set(t,s),s},e.prototype.resolveAll=function(t,r,n){var i=this;r===void 0&&(r=new Pe),n===void 0&&(n=!1),this.ensureNotDisposed();var o=this.getAllRegistrations(t);if(!o&&fe(t)){if(n)return[];throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"')}if(this.executePreResolutionInterceptor(t,"All"),o){var s=o.map(function(d){return i.resolveRegistration(d,r)});return this.executePostResolutionInterceptor(t,s,"All"),s}var c=[this.construct(t,r)];return this.executePostResolutionInterceptor(t,c,"All"),c},e.prototype.isRegistered=function(t,r){return r===void 0&&(r=!1),this.ensureNotDisposed(),this._registry.has(t)||r&&(this.parent||!1)&&this.parent.isRegistered(t,!0)},e.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},e.prototype.clearInstances=function(){var t,r;this.ensureNotDisposed();try{for(var n=Re(this._registry.entries()),i=n.next();!i.done;i=n.next()){var o=$e(i.value,2),s=o[0],c=o[1];this._registry.setAll(s,c.filter(function(d){return!Ae(d.provider)}).map(function(d){return d.instance=void 0,d}))}}catch(d){t={error:d}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e.prototype.createChildContainer=function(){var t,r;this.ensureNotDisposed();var n=new e(this);try{for(var i=Re(this._registry.entries()),o=i.next();!o.done;o=i.next()){var s=$e(o.value,2),c=s[0],d=s[1];d.some(function(f){var b=f.options;return b.lifecycle===W.ContainerScoped})&&n._registry.setAll(c,d.map(function(f){return f.options.lifecycle===W.ContainerScoped?{provider:f.provider,options:f.options}:f}))}}catch(f){t={error:f}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype.beforeResolution=function(t,r,n){n===void 0&&(n={frequency:"Always"}),this.interceptors.preResolution.set(t,{callback:r,options:n})},e.prototype.afterResolution=function(t,r,n){n===void 0&&(n={frequency:"Always"}),this.interceptors.postResolution.set(t,{callback:r,options:n})},e.prototype.dispose=function(){return Dr(this,void 0,void 0,function(){var t;return Fr(this,function(r){switch(r.label){case 0:return this.disposed=!0,t=[],this.disposables.forEach(function(n){var i=n.dispose();i&&t.push(i)}),[4,Promise.all(t)];case 1:return r.sent(),[2]}})})},e.prototype.getRegistration=function(t){return this.isRegistered(t)?this._registry.get(t):this.parent?this.parent.getRegistration(t):null},e.prototype.getAllRegistrations=function(t){return this.isRegistered(t)?this._registry.getAll(t):this.parent?this.parent.getAllRegistrations(t):null},e.prototype.construct=function(t,r){var n=this;if(t instanceof Dt)return t.createProxy(function(o){return n.resolve(o,r)});var i=function(){var o=Ft.get(t);if(!o||o.length===0){if(t.length===0)return new t;throw new Error('TypeInfo not known for "'+t.name+'"')}var s=o.map(n.resolveParams(r,t));return new(t.bind.apply(t,oe([void 0],s)))}();return Jr(i)&&this.disposables.add(i),i},e.prototype.resolveParams=function(t,r){var n=this;return function(i,o){var s,c,d;try{return Lr(i)?wt(i)?i.multiple?(s=n.resolve(i.transform)).transform.apply(s,oe([n.resolveAll(i.token,new Pe,i.isOptional)],i.transformArgs)):(c=n.resolve(i.transform)).transform.apply(c,oe([n.resolve(i.token,t,i.isOptional)],i.transformArgs)):i.multiple?n.resolveAll(i.token,new Pe,i.isOptional):n.resolve(i.token,t,i.isOptional):wt(i)?(d=n.resolve(i.transform,t)).transform.apply(d,oe([n.resolve(i.token,t)],i.transformArgs)):n.resolve(i,t)}catch(f){throw new Error(Ur(r,o,f))}}},e.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},e}(),Nt=new Xr;function Kr(e,t){var r={token:e,multiple:!1,isOptional:t};return qr(r)}function en(e){return function(t){Ft.set(t,Nr(t))}}function tn(e,t){return function(r){en()(r),Nt.register(r,r,{lifecycle:e})}}if(typeof Reflect>"u"||!Reflect.getMetadata)throw new Error(`tsyringe requires a reflect polyfill. Please add 'import "reflect-metadata"' to the top of your entry point.`);var K={},re={},gt;function qt(){if(gt)return re;gt=1,Object.defineProperty(re,"__esModule",{value:!0}),re.DefaultSerializer=re.extendSerializer=void 0;function e(n,i){const o=n.deserialize.bind(n),s=n.serialize.bind(n);return{deserialize(c){return i.deserialize(c,o)},serialize(c){return i.serialize(c,s)}}}re.extendSerializer=e;const t={deserialize(n){return Object.assign(Error(n.message),{name:n.name,stack:n.stack})},serialize(n){return{__error_marker:"$$error",message:n.message,name:n.name,stack:n.stack}}},r=n=>n&&typeof n=="object"&&"__error_marker"in n&&n.__error_marker==="$$error";return re.DefaultSerializer={deserialize(n){return r(n)?t.deserialize(n):n},serialize(n){return n instanceof Error?t.serialize(n):n}},re}var _t;function Je(){if(_t)return K;_t=1,Object.defineProperty(K,"__esModule",{value:!0}),K.serialize=K.deserialize=K.registerSerializer=void 0;const e=qt();let t=e.DefaultSerializer;function r(o){t=e.extendSerializer(t,o)}K.registerSerializer=r;function n(o){return t.deserialize(o)}K.deserialize=n;function i(o){return t.serialize(o)}return K.serialize=i,K}var H={},St;function Lt(){return St||(St=1,Object.defineProperty(H,"__esModule",{value:!0}),H.$worker=H.$transferable=H.$terminate=H.$events=H.$errors=void 0,H.$errors=Symbol("thread.errors"),H.$events=Symbol("thread.events"),H.$terminate=Symbol("thread.terminate"),H.$transferable=Symbol("thread.transferable"),H.$worker=Symbol("thread.worker")),H}var ne={},Et;function Ze(){if(Et)return ne;Et=1,Object.defineProperty(ne,"__esModule",{value:!0}),ne.Transfer=ne.isTransferDescriptor=void 0;const e=Lt();function t(i){return!(!i||typeof i!="object")}function r(i){return i&&typeof i=="object"&&i[e.$transferable]}ne.isTransferDescriptor=r;function n(i,o){if(!o){if(!t(i))throw Error();o=[i]}return{[e.$transferable]:!0,send:i,transferables:o}}return ne.Transfer=n,ne}var Ne={},Mt;function Wt(){return Mt||(Mt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorkerMessageType=e.MasterMessageType=void 0,function(t){t.cancel="cancel",t.run="run"}(e.MasterMessageType||(e.MasterMessageType={})),function(t){t.error="error",t.init="init",t.result="result",t.running="running",t.uncaughtError="uncaughtError"}(e.WorkerMessageType||(e.WorkerMessageType={}))}(Ne)),Ne}var ie={},qe,Ot;function rn(){return Ot||(Ot=1,qe=e=>e?typeof Symbol.observable=="symbol"&&typeof e[Symbol.observable]=="function"?e===e[Symbol.observable]():typeof e["@@observable"]=="function"?e===e["@@observable"]():!1:!1),qe}var ke={},Tt;function nn(){if(Tt)return ke;Tt=1,Object.defineProperty(ke,"__esModule",{value:!0});const e=function(){const i=typeof self<"u"&&typeof Window<"u"&&self instanceof Window;return!!(typeof self<"u"&&self.postMessage&&!i)},t=function(i,o){self.postMessage(i,o)},r=function(i){const o=c=>{i(c.data)},s=()=>{self.removeEventListener("message",o)};return self.addEventListener("message",o),s};return ke.default={isWorkerRuntime:e,postMessageToMaster:t,subscribeToMasterMessages:r},ke}var Rt;function on(){return Rt||(Rt=1,function(e){var t=ie&&ie.__awaiter||function(v,k,A,z){function X(L){return L instanceof A?L:new A(function(U){U(L)})}return new(A||(A=Promise))(function(L,U){function pe(Z){try{ae(z.next(Z))}catch(ue){U(ue)}}function Oe(Z){try{ae(z.throw(Z))}catch(ue){U(ue)}}function ae(Z){Z.done?L(Z.value):X(Z.value).then(pe,Oe)}ae((z=z.apply(v,k||[])).next())})},r=ie&&ie.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.expose=e.isWorkerRuntime=e.Transfer=e.registerSerializer=void 0;const n=r(rn()),i=Je(),o=Ze(),s=Wt(),c=r(nn());var d=Je();Object.defineProperty(e,"registerSerializer",{enumerable:!0,get:function(){return d.registerSerializer}});var f=Ze();Object.defineProperty(e,"Transfer",{enumerable:!0,get:function(){return f.Transfer}}),e.isWorkerRuntime=c.default.isWorkerRuntime;let b=!1;const E=new Map,I=v=>v&&v.type===s.MasterMessageType.cancel,O=v=>v&&v.type===s.MasterMessageType.run,x=v=>n.default(v)||S(v);function S(v){return v&&typeof v=="object"&&typeof v.subscribe=="function"}function R(v){return o.isTransferDescriptor(v)?{payload:v.send,transferables:v.transferables}:{payload:v,transferables:void 0}}function N(){const v={type:s.WorkerMessageType.init,exposed:{type:"function"}};c.default.postMessageToMaster(v)}function B(v){const k={type:s.WorkerMessageType.init,exposed:{type:"module",methods:v}};c.default.postMessageToMaster(k)}function G(v,k){const{payload:A,transferables:z}=R(k),X={type:s.WorkerMessageType.error,uid:v,error:i.serialize(A)};c.default.postMessageToMaster(X,z)}function ee(v,k,A){const{payload:z,transferables:X}=R(A),L={type:s.WorkerMessageType.result,uid:v,complete:k?!0:void 0,payload:z};c.default.postMessageToMaster(L,X)}function te(v,k){const A={type:s.WorkerMessageType.running,uid:v,resultType:k};c.default.postMessageToMaster(A)}function V(v){try{const k={type:s.WorkerMessageType.uncaughtError,error:i.serialize(v)};c.default.postMessageToMaster(k)}catch(k){console.error(`Not reporting uncaught error back to master thread as it occured while reporting an uncaught error already.
|
|
30
|
-
Latest error:`,
|
|
31
|
-
Original error:`,v)}}function Me(v,
|
|
29
|
+
`)}function Jr(e,t,r){var n=$e(e.toString().match(/constructor\(([\w, ]+)\)/)||[],2),i=n[1],o=i===void 0?null:i,s=Ur(o,t);return Vr("Cannot inject the dependency "+s+' of "'+e.name+'" constructor. Reason:',r)}function Zr(e){if(typeof e.dispose!="function")return!1;var t=e.dispose;return!(t.length>0)}var Yr=function(e){Ke(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(et),Qr=function(e){Ke(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(et),Xr=function(){function e(){this.preResolution=new Yr,this.postResolution=new Qr}return e}(),Nt=new Map,Kr=function(){function e(t){this.parent=t,this._registry=new Gr,this.interceptors=new Xr,this.disposed=!1,this.disposables=new Set}return e.prototype.register=function(t,r,n){n===void 0&&(n={lifecycle:W.Transient}),this.ensureNotDisposed();var i;if(Br(r)?i=r:i={useClass:r},Ie(i))for(var o=[t],s=i;s!=null;){var c=s.useToken;if(o.includes(c))throw new Error("Token registration cycle detected! "+oe(o,[c]).join(" -> "));o.push(c);var d=this._registry.get(c);d&&Ie(d.provider)?s=d.provider:s=null}if((n.lifecycle===W.Singleton||n.lifecycle==W.ContainerScoped||n.lifecycle==W.ResolutionScoped)&&(Ae(i)||Ve(i)))throw new Error('Cannot use lifecycle "'+W[n.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(t,{provider:i,options:n}),this},e.prototype.registerType=function(t,r){return this.ensureNotDisposed(),fe(r)?this.register(t,{useToken:r}):this.register(t,{useClass:r})},e.prototype.registerInstance=function(t,r){return this.ensureNotDisposed(),this.register(t,{useValue:r})},e.prototype.registerSingleton=function(t,r){if(this.ensureNotDisposed(),fe(t)){if(fe(r))return this.register(t,{useToken:r},{lifecycle:W.Singleton});if(r)return this.register(t,{useClass:r},{lifecycle:W.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var n=t;return r&&!fe(r)&&(n=r),this.register(t,{useClass:n},{lifecycle:W.Singleton})},e.prototype.resolve=function(t,r,n){r===void 0&&(r=new Pe),n===void 0&&(n=!1),this.ensureNotDisposed();var i=this.getRegistration(t);if(!i&&fe(t)){if(n)return;throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"')}if(this.executePreResolutionInterceptor(t,"Single"),i){var o=this.resolveRegistration(i,r);return this.executePostResolutionInterceptor(t,o,"Single"),o}if(Hr(t)){var o=this.construct(t,r);return this.executePostResolutionInterceptor(t,o,"Single"),o}throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},e.prototype.executePreResolutionInterceptor=function(t,r){var n,i;if(this.interceptors.preResolution.has(t)){var o=[];try{for(var s=Re(this.interceptors.preResolution.getAll(t)),c=s.next();!c.done;c=s.next()){var d=c.value;d.options.frequency!="Once"&&o.push(d),d.callback(t,r)}}catch(f){n={error:f}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}this.interceptors.preResolution.setAll(t,o)}},e.prototype.executePostResolutionInterceptor=function(t,r,n){var i,o;if(this.interceptors.postResolution.has(t)){var s=[];try{for(var c=Re(this.interceptors.postResolution.getAll(t)),d=c.next();!d.done;d=c.next()){var f=d.value;f.options.frequency!="Once"&&s.push(f),f.callback(t,r,n)}}catch(b){i={error:b}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}this.interceptors.postResolution.setAll(t,s)}},e.prototype.resolveRegistration=function(t,r){if(this.ensureNotDisposed(),t.options.lifecycle===W.ResolutionScoped&&r.scopedResolutions.has(t))return r.scopedResolutions.get(t);var n=t.options.lifecycle===W.Singleton,i=t.options.lifecycle===W.ContainerScoped,o=n||i,s;return Ae(t.provider)?s=t.provider.useValue:Ie(t.provider)?s=o?t.instance||(t.instance=this.resolve(t.provider.useToken,r)):this.resolve(t.provider.useToken,r):Dt(t.provider)?s=o?t.instance||(t.instance=this.construct(t.provider.useClass,r)):this.construct(t.provider.useClass,r):Ve(t.provider)?s=t.provider.useFactory(this):s=this.construct(t.provider,r),t.options.lifecycle===W.ResolutionScoped&&r.scopedResolutions.set(t,s),s},e.prototype.resolveAll=function(t,r,n){var i=this;r===void 0&&(r=new Pe),n===void 0&&(n=!1),this.ensureNotDisposed();var o=this.getAllRegistrations(t);if(!o&&fe(t)){if(n)return[];throw new Error('Attempted to resolve unregistered dependency token: "'+t.toString()+'"')}if(this.executePreResolutionInterceptor(t,"All"),o){var s=o.map(function(d){return i.resolveRegistration(d,r)});return this.executePostResolutionInterceptor(t,s,"All"),s}var c=[this.construct(t,r)];return this.executePostResolutionInterceptor(t,c,"All"),c},e.prototype.isRegistered=function(t,r){return r===void 0&&(r=!1),this.ensureNotDisposed(),this._registry.has(t)||r&&(this.parent||!1)&&this.parent.isRegistered(t,!0)},e.prototype.reset=function(){this.ensureNotDisposed(),this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},e.prototype.clearInstances=function(){var t,r;this.ensureNotDisposed();try{for(var n=Re(this._registry.entries()),i=n.next();!i.done;i=n.next()){var o=$e(i.value,2),s=o[0],c=o[1];this._registry.setAll(s,c.filter(function(d){return!Ae(d.provider)}).map(function(d){return d.instance=void 0,d}))}}catch(d){t={error:d}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e.prototype.createChildContainer=function(){var t,r;this.ensureNotDisposed();var n=new e(this);try{for(var i=Re(this._registry.entries()),o=i.next();!o.done;o=i.next()){var s=$e(o.value,2),c=s[0],d=s[1];d.some(function(f){var b=f.options;return b.lifecycle===W.ContainerScoped})&&n._registry.setAll(c,d.map(function(f){return f.options.lifecycle===W.ContainerScoped?{provider:f.provider,options:f.options}:f}))}}catch(f){t={error:f}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype.beforeResolution=function(t,r,n){n===void 0&&(n={frequency:"Always"}),this.interceptors.preResolution.set(t,{callback:r,options:n})},e.prototype.afterResolution=function(t,r,n){n===void 0&&(n={frequency:"Always"}),this.interceptors.postResolution.set(t,{callback:r,options:n})},e.prototype.dispose=function(){return Fr(this,void 0,void 0,function(){var t;return Nr(this,function(r){switch(r.label){case 0:return this.disposed=!0,t=[],this.disposables.forEach(function(n){var i=n.dispose();i&&t.push(i)}),[4,Promise.all(t)];case 1:return r.sent(),[2]}})})},e.prototype.getRegistration=function(t){return this.isRegistered(t)?this._registry.get(t):this.parent?this.parent.getRegistration(t):null},e.prototype.getAllRegistrations=function(t){return this.isRegistered(t)?this._registry.getAll(t):this.parent?this.parent.getAllRegistrations(t):null},e.prototype.construct=function(t,r){var n=this;if(t instanceof Ft)return t.createProxy(function(o){return n.resolve(o,r)});var i=function(){var o=Nt.get(t);if(!o||o.length===0){if(t.length===0)return new t;throw new Error('TypeInfo not known for "'+t.name+'"')}var s=o.map(n.resolveParams(r,t));return new(t.bind.apply(t,oe([void 0],s)))}();return Zr(i)&&this.disposables.add(i),i},e.prototype.resolveParams=function(t,r){var n=this;return function(i,o){var s,c,d;try{return Wr(i)?gt(i)?i.multiple?(s=n.resolve(i.transform)).transform.apply(s,oe([n.resolveAll(i.token,new Pe,i.isOptional)],i.transformArgs)):(c=n.resolve(i.transform)).transform.apply(c,oe([n.resolve(i.token,t,i.isOptional)],i.transformArgs)):i.multiple?n.resolveAll(i.token,new Pe,i.isOptional):n.resolve(i.token,t,i.isOptional):gt(i)?(d=n.resolve(i.transform,t)).transform.apply(d,oe([n.resolve(i.token,t)],i.transformArgs)):n.resolve(i,t)}catch(f){throw new Error(Jr(r,o,f))}}},e.prototype.ensureNotDisposed=function(){if(this.disposed)throw new Error("This container has been disposed, you cannot interact with a disposed container")},e}(),qt=new Kr;function en(e,t){var r={token:e,multiple:!1,isOptional:t};return Lr(r)}function tn(e){return function(t){Nt.set(t,qr(t))}}function rn(e,t){return function(r){tn()(r),qt.register(r,r,{lifecycle:e})}}if(typeof Reflect>"u"||!Reflect.getMetadata)throw new Error(`tsyringe requires a reflect polyfill. Please add 'import "reflect-metadata"' to the top of your entry point.`);var K={},re={},_t;function Lt(){if(_t)return re;_t=1,Object.defineProperty(re,"__esModule",{value:!0}),re.DefaultSerializer=re.extendSerializer=void 0;function e(n,i){const o=n.deserialize.bind(n),s=n.serialize.bind(n);return{deserialize(c){return i.deserialize(c,o)},serialize(c){return i.serialize(c,s)}}}re.extendSerializer=e;const t={deserialize(n){return Object.assign(Error(n.message),{name:n.name,stack:n.stack})},serialize(n){return{__error_marker:"$$error",message:n.message,name:n.name,stack:n.stack}}},r=n=>n&&typeof n=="object"&&"__error_marker"in n&&n.__error_marker==="$$error";return re.DefaultSerializer={deserialize(n){return r(n)?t.deserialize(n):n},serialize(n){return n instanceof Error?t.serialize(n):n}},re}var St;function Je(){if(St)return K;St=1,Object.defineProperty(K,"__esModule",{value:!0}),K.serialize=K.deserialize=K.registerSerializer=void 0;const e=Lt();let t=e.DefaultSerializer;function r(o){t=e.extendSerializer(t,o)}K.registerSerializer=r;function n(o){return t.deserialize(o)}K.deserialize=n;function i(o){return t.serialize(o)}return K.serialize=i,K}var H={},Et;function Wt(){return Et||(Et=1,Object.defineProperty(H,"__esModule",{value:!0}),H.$worker=H.$transferable=H.$terminate=H.$events=H.$errors=void 0,H.$errors=Symbol("thread.errors"),H.$events=Symbol("thread.events"),H.$terminate=Symbol("thread.terminate"),H.$transferable=Symbol("thread.transferable"),H.$worker=Symbol("thread.worker")),H}var ne={},Mt;function Ze(){if(Mt)return ne;Mt=1,Object.defineProperty(ne,"__esModule",{value:!0}),ne.Transfer=ne.isTransferDescriptor=void 0;const e=Wt();function t(i){return!(!i||typeof i!="object")}function r(i){return i&&typeof i=="object"&&i[e.$transferable]}ne.isTransferDescriptor=r;function n(i,o){if(!o){if(!t(i))throw Error();o=[i]}return{[e.$transferable]:!0,send:i,transferables:o}}return ne.Transfer=n,ne}var Ne={},Ot;function Ht(){return Ot||(Ot=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorkerMessageType=e.MasterMessageType=void 0,function(t){t.cancel="cancel",t.run="run"}(e.MasterMessageType||(e.MasterMessageType={})),function(t){t.error="error",t.init="init",t.result="result",t.running="running",t.uncaughtError="uncaughtError"}(e.WorkerMessageType||(e.WorkerMessageType={}))}(Ne)),Ne}var ie={},qe,Tt;function nn(){return Tt||(Tt=1,qe=e=>e?typeof Symbol.observable=="symbol"&&typeof e[Symbol.observable]=="function"?e===e[Symbol.observable]():typeof e["@@observable"]=="function"?e===e["@@observable"]():!1:!1),qe}var ke={},Rt;function on(){if(Rt)return ke;Rt=1,Object.defineProperty(ke,"__esModule",{value:!0});const e=function(){const i=typeof self<"u"&&typeof Window<"u"&&self instanceof Window;return!!(typeof self<"u"&&self.postMessage&&!i)},t=function(i,o){self.postMessage(i,o)},r=function(i){const o=c=>{i(c.data)},s=()=>{self.removeEventListener("message",o)};return self.addEventListener("message",o),s};return ke.default={isWorkerRuntime:e,postMessageToMaster:t,subscribeToMasterMessages:r},ke}var Pt;function sn(){return Pt||(Pt=1,function(e){var t=ie&&ie.__awaiter||function(v,x,A,z){function X(L){return L instanceof A?L:new A(function(V){V(L)})}return new(A||(A=Promise))(function(L,V){function ye(Z){try{ae(z.next(Z))}catch(ue){V(ue)}}function Oe(Z){try{ae(z.throw(Z))}catch(ue){V(ue)}}function ae(Z){Z.done?L(Z.value):X(Z.value).then(ye,Oe)}ae((z=z.apply(v,x||[])).next())})},r=ie&&ie.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.expose=e.isWorkerRuntime=e.Transfer=e.registerSerializer=void 0;const n=r(nn()),i=Je(),o=Ze(),s=Ht(),c=r(on());var d=Je();Object.defineProperty(e,"registerSerializer",{enumerable:!0,get:function(){return d.registerSerializer}});var f=Ze();Object.defineProperty(e,"Transfer",{enumerable:!0,get:function(){return f.Transfer}}),e.isWorkerRuntime=c.default.isWorkerRuntime;let b=!1;const E=new Map,k=v=>v&&v.type===s.MasterMessageType.cancel,O=v=>v&&v.type===s.MasterMessageType.run,I=v=>n.default(v)||S(v);function S(v){return v&&typeof v=="object"&&typeof v.subscribe=="function"}function R(v){return o.isTransferDescriptor(v)?{payload:v.send,transferables:v.transferables}:{payload:v,transferables:void 0}}function N(){const v={type:s.WorkerMessageType.init,exposed:{type:"function"}};c.default.postMessageToMaster(v)}function B(v){const x={type:s.WorkerMessageType.init,exposed:{type:"module",methods:v}};c.default.postMessageToMaster(x)}function G(v,x){const{payload:A,transferables:z}=R(x),X={type:s.WorkerMessageType.error,uid:v,error:i.serialize(A)};c.default.postMessageToMaster(X,z)}function ee(v,x,A){const{payload:z,transferables:X}=R(A),L={type:s.WorkerMessageType.result,uid:v,complete:x?!0:void 0,payload:z};c.default.postMessageToMaster(L,X)}function te(v,x){const A={type:s.WorkerMessageType.running,uid:v,resultType:x};c.default.postMessageToMaster(A)}function U(v){try{const x={type:s.WorkerMessageType.uncaughtError,error:i.serialize(v)};c.default.postMessageToMaster(x)}catch(x){console.error(`Not reporting uncaught error back to master thread as it occured while reporting an uncaught error already.
|
|
30
|
+
Latest error:`,x,`
|
|
31
|
+
Original error:`,v)}}function Me(v,x,A){return t(this,void 0,void 0,function*(){let z;try{z=x(...A)}catch(L){return G(v,L)}const X=I(z)?"observable":"promise";if(te(v,X),I(z)){const L=z.subscribe(V=>ee(v,!1,i.serialize(V)),V=>{G(v,i.serialize(V)),E.delete(v)},()=>{ee(v,!0),E.delete(v)});E.set(v,L)}else try{const L=yield z;ee(v,!0,i.serialize(L))}catch(L){G(v,i.serialize(L))}})}function Ce(v){if(!c.default.isWorkerRuntime())throw Error("expose() called in the master thread.");if(b)throw Error("expose() called more than once. This is not possible. Pass an object to expose() if you want to expose multiple functions.");if(b=!0,typeof v=="function")c.default.subscribeToMasterMessages(x=>{O(x)&&!x.method&&Me(x.uid,v,x.args.map(i.deserialize))}),N();else if(typeof v=="object"&&v){c.default.subscribeToMasterMessages(A=>{O(A)&&A.method&&Me(A.uid,v[A.method],A.args.map(i.deserialize))});const x=Object.keys(v).filter(A=>typeof v[A]=="function");B(x)}else throw Error(`Invalid argument passed to expose(). Expected a function or an object, got: ${v}`);c.default.subscribeToMasterMessages(x=>{if(k(x)){const A=x.uid,z=E.get(A);z&&(z.unsubscribe(),E.delete(A))}})}e.expose=Ce,typeof self<"u"&&typeof self.addEventListener=="function"&&c.default.isWorkerRuntime()&&(self.addEventListener("error",v=>{setTimeout(()=>U(v.error||v),250)}),self.addEventListener("unhandledrejection",v=>{const x=v.reason;x&&typeof x.message=="string"&&setTimeout(()=>U(x),250)})),typeof process<"u"&&typeof process.on=="function"&&c.default.isWorkerRuntime()&&(process.on("uncaughtException",v=>{setTimeout(()=>U(v),250)}),process.on("unhandledRejection",v=>{v&&typeof v.message=="string"&&setTimeout(()=>U(v),250)}))}(ie)),ie}var Ye=function(e,t){return Ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ye(e,t)};function ge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ye(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function an(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function c(b){try{f(n.next(b))}catch(E){s(E)}}function d(b){try{f(n.throw(b))}catch(E){s(E)}}function f(b){b.done?o(b.value):i(b.value).then(c,d)}f((n=n.apply(e,t||[])).next())})}function Bt(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=c(0),s.throw=c(1),s.return=c(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(b){return d([f,b])}}function d(f){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,f[0]&&(r=0)),r;)try{if(n=1,i&&(o=f[0]&2?i.return:f[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,f[1])).done)return o;switch(i=0,o&&(f=[f[0]&2,o.value]),f[0]){case 0:case 1:o=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!o||f[1]>o[0]&&f[1]<o[3])){r.label=f[1];break}if(f[0]===6&&r.label<o[1]){r.label=o[1],o=f;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(f);break}o[2]&&r.ops.pop(),r.trys.pop();continue}f=t.call(e,r)}catch(b){f=[6,b],i=0}finally{n=o=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function he(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function se(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(c){s={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function pe(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function de(e){return this instanceof de?(this.v=e,this):new de(e)}function un(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(O){return function(I){return Promise.resolve(I).then(O,E)}}function c(O,I){n[O]&&(i[O]=function(S){return new Promise(function(R,N){o.push([O,S,R,N])>1||d(O,S)})},I&&(i[O]=I(i[O])))}function d(O,I){try{f(n[O](I))}catch(S){k(o[0][3],S)}}function f(O){O.value instanceof de?Promise.resolve(O.value.v).then(b,E):k(o[0][2],O)}function b(O){d("next",O)}function E(O){d("throw",O)}function k(O,I){O(I),o.shift(),o.length&&d(o[0][0],o[0][1])}}function cn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof he=="function"?he(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(s){return new Promise(function(c,d){s=e[o](s),i(c,d,s.done,s.value)})}}function i(o,s,c,d){Promise.resolve(d).then(function(f){o({value:f,done:c})},s)}}function $(e){return typeof e=="function"}function Gt(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Le=Gt(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
32
32
|
`+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
|
|
33
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function Qe(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var _e=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var c=de(s),d=c.next();!d.done;d=c.next()){var f=d.value;f.remove(this)}}catch(S){t={error:S}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else s.remove(this);var b=this.initialTeardown;if($(b))try{b()}catch(S){o=S instanceof Le?S.errors:[S]}var E=this._finalizers;if(E){this._finalizers=null;try{for(var I=de(E),O=I.next();!O.done;O=I.next()){var x=O.value;try{Pt(x)}catch(S){o=o??[],S instanceof Le?o=he(he([],se(o)),se(S.errors)):o.push(S)}}}catch(S){n={error:S}}finally{try{O&&!O.done&&(i=I.return)&&i.call(I)}finally{if(n)throw n.error}}}if(o)throw new Le(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Pt(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Qe(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Qe(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Gt=_e.EMPTY;function Vt(e){return e instanceof _e||e&&"closed"in e&&$(e.remove)&&$(e.add)&&$(e.unsubscribe)}function Pt(e){$(e)?e():e.unsubscribe()}var Ut={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Jt={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,he([e,t],se(r)))},clearTimeout:function(e){var t=Jt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Zt(e){Jt.setTimeout(function(){throw e})}function kt(){}function je(e){e()}var tt=function(e){ge(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Vt(r)&&r.add(n)):n.destination=dn,n}return t.create=function(r,n,i){return new me(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(_e),cn=Function.prototype.bind;function We(e,t){return cn.call(e,t)}var fn=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){Ie(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Ie(n)}else Ie(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Ie(r)}},e}(),me=function(e){ge(t,e);function t(r,n,i){var o=e.call(this)||this,s;if($(r)||!r)s={next:r??void 0,error:n??void 0,complete:i??void 0};else{var c;o&&Ut.useDeprecatedNextContext?(c=Object.create(r),c.unsubscribe=function(){return o.unsubscribe()},s={next:r.next&&We(r.next,c),error:r.error&&We(r.error,c),complete:r.complete&&We(r.complete,c)}):s=r}return o.destination=new fn(s),o}return t}(tt);function Ie(e){Zt(e)}function ln(e){throw e}var dn={closed:!0,next:kt,error:ln,complete:kt},rt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Yt(e){return e}function hn(e){return e.length===0?Yt:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var Q=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,o=yn(t)?t:new me(t,r,n);return je(function(){var s=i,c=s.operator,d=s.source;o.add(c?c.call(o,d):d?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=It(r),new r(function(i,o){var s=new me({next:function(c){try{t(c)}catch(d){o(d),s.unsubscribe()}},error:o,complete:i});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[rt]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return hn(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=It(t),new t(function(n,i){var o;r.subscribe(function(s){return o=s},function(s){return i(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function It(e){var t;return(t=e??Ut.Promise)!==null&&t!==void 0?t:Promise}function pn(e){return e&&$(e.next)&&$(e.error)&&$(e.complete)}function yn(e){return e&&e instanceof tt||pn(e)&&Vt(e)}function vn(e){return $(e==null?void 0:e.lift)}function Se(e){return function(t){if(vn(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function we(e,t,r,n,i){return new bn(e,t,r,n,i)}var bn=function(e){ge(t,e);function t(r,n,i,o,s,c){var d=e.call(this,r)||this;return d.onFinalize=s,d.shouldUnsubscribe=c,d._next=n?function(f){try{n(f)}catch(b){r.error(b)}}:e.prototype._next,d._error=o?function(f){try{o(f)}catch(b){r.error(b)}finally{this.unsubscribe()}}:e.prototype._error,d._complete=i?function(){try{i()}catch(f){r.error(f)}finally{this.unsubscribe()}}:e.prototype._complete,d}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t}(tt),mn=Bt(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),nt=function(e){ge(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new xt(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new mn},t.prototype.next=function(r){var n=this;je(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=de(n.currentObservers),c=s.next();!c.done;c=s.next()){var d=c.value;d.next(r)}}catch(f){i={error:f}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;je(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;je(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,s=i.isStopped,c=i.observers;return o||s?Gt:(this.currentObservers=null,c.push(r),new _e(function(){n.currentObservers=null,Qe(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,s=n.isStopped;i?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new Q;return r.source=this,r},t.create=function(r,n){return new xt(r,n)},t}(Q),xt=function(e){ge(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:Gt},t}(nt),Qt=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function wn(e){return $(e==null?void 0:e.then)}function gn(e){return $(e[rt])}function _n(e){return Symbol.asyncIterator&&$(e==null?void 0:e[Symbol.asyncIterator])}function Sn(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function En(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Mn=En();function On(e){return $(e==null?void 0:e[Mn])}function Tn(e){return an(this,arguments,function(){var r,n,i,o;return Ht(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,le(r.read())];case 3:return n=s.sent(),i=n.value,o=n.done,o?[4,le(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,le(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function Rn(e){return $(e==null?void 0:e.getReader)}function Ee(e){if(e instanceof Q)return e;if(e!=null){if(gn(e))return Pn(e);if(Qt(e))return kn(e);if(wn(e))return In(e);if(_n(e))return Xt(e);if(On(e))return xn(e);if(Rn(e))return An(e)}throw Sn(e)}function Pn(e){return new Q(function(t){var r=e[rt]();if($(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function kn(e){return new Q(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function In(e){return new Q(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Zt)})}function xn(e){return new Q(function(t){var r,n;try{for(var i=de(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(c){r={error:c}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.complete()})}function Xt(e){return new Q(function(t){jn(e,t).catch(function(r){return t.error(r)})})}function An(e){return Xt(Tn(e))}function jn(e,t){var r,n,i,o;return sn(this,void 0,void 0,function(){var s,c;return Ht(this,function(d){switch(d.label){case 0:d.trys.push([0,5,6,11]),r=un(e),d.label=1;case 1:return[4,r.next()];case 2:if(n=d.sent(),!!n.done)return[3,4];if(s=n.value,t.next(s),t.closed)return[2];d.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=d.sent(),i={error:c},[3,11];case 6:return d.trys.push([6,,9,10]),n&&!n.done&&(o=r.return)?[4,o.call(r)]:[3,8];case 7:d.sent(),d.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function it(e,t){return Se(function(r,n){var i=0;r.subscribe(we(n,function(o){n.next(e.call(t,o,i++))}))})}var $n=Array.isArray;function Cn(e,t){return $n(t)?e.apply(void 0,he([],se(t))):e(t)}function zn(e){return it(function(t){return Cn(e,t)})}function Dn(e,t,r,n,i,o,s,c){var d=[],f=0,b=0,E=!1,I=function(){E&&!d.length&&!f&&t.complete()},O=function(S){return f<n?x(S):d.push(S)},x=function(S){f++;var R=!1;Ee(r(S,b++)).subscribe(we(t,function(N){t.next(N)},function(){R=!0},void 0,function(){if(R)try{f--;for(var N=function(){var B=d.shift();s||x(B)};d.length&&f<n;)N();I()}catch(B){t.error(B)}}))};return e.subscribe(we(t,O,function(){E=!0,I()})),function(){}}function Kt(e,t,r){return r===void 0&&(r=1/0),$(t)?Kt(function(n,i){return it(function(o,s){return t(n,o,i,s)})(Ee(e(n,i)))},r):(typeof t=="number"&&(r=t),Se(function(n,i){return Dn(n,i,e,r)}))}var Fn=["addListener","removeListener"],Nn=["addEventListener","removeEventListener"],qn=["on","off"];function Xe(e,t,r,n){if($(r)&&(n=r,r=void 0),n)return Xe(e,t,r).pipe(zn(n));var i=se(Hn(e)?Nn.map(function(c){return function(d){return e[c](t,d,r)}}):Ln(e)?Fn.map(At(e,t)):Wn(e)?qn.map(At(e,t)):[],2),o=i[0],s=i[1];if(!o&&Qt(e))return Kt(function(c){return Xe(c,t,r)})(Ee(e));if(!o)throw new TypeError("Invalid event target");return new Q(function(c){var d=function(){for(var f=[],b=0;b<arguments.length;b++)f[b]=arguments[b];return c.next(1<f.length?f:f[0])};return o(d),function(){return s(d)}})}function At(e,t){return function(r){return function(n){return e[r](t,n)}}}function Ln(e){return $(e.addListener)&&$(e.removeListener)}function Wn(e){return $(e.on)&&$(e.off)}function Hn(e){return $(e.addEventListener)&&$(e.removeEventListener)}function Bn(e,t){return Se(function(r,n){var i=0;r.subscribe(we(n,function(o){return e.call(t,o,i++)&&n.next(o)}))})}function Gn(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new nt}:t,n=e.resetOnError,i=n===void 0?!0:n,o=e.resetOnComplete,s=o===void 0?!0:o,c=e.resetOnRefCountZero,d=c===void 0?!0:c;return function(f){var b,E,I,O=0,x=!1,S=!1,R=function(){E==null||E.unsubscribe(),E=void 0},N=function(){R(),b=I=void 0,x=S=!1},B=function(){var G=b;N(),G==null||G.unsubscribe()};return Se(function(G,ee){O++,!S&&!x&&R();var te=I=I??r();ee.add(function(){O--,O===0&&!S&&!x&&(E=He(B,d))}),te.subscribe(ee),!b&&O>0&&(b=new me({next:function(V){return te.next(V)},error:function(V){S=!0,R(),E=He(N,i,V),te.error(V)},complete:function(){x=!0,R(),E=He(N,s),te.complete()}}),Ee(G).subscribe(b))})(f)}}function He(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(t===!0){e();return}if(t!==!1){var i=new me({next:function(){i.unsubscribe(),e()}});return Ee(t.apply(void 0,he([],se(r)))).subscribe(i)}}class Vn extends be.Loader{constructor(t){super(t)}load(t,r,n,i){const o=this,s=new be.FileLoader(this.manager);s.setPath(this.path),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(t,function(c){const d=o.parse(JSON.parse(c));r&&r(d)},n,i)}parse(t){return new er(t)}}class er{constructor(t){this.isFont=!0,this.type="Font",this.data=t}generateShapes(t,r=100){const n=[],i=Un(t,r,this.data);for(let o=0,s=i.length;o<s;o++)n.push(...i[o].toShapes());return n}}function Un(e,t,r){const n=Array.from(e),i=t/r.resolution,o=(r.boundingBox.yMax-r.boundingBox.yMin+r.underlineThickness)*i,s=[];let c=0,d=0;for(let f=0;f<n.length;f++){const b=n[f];if(b===`
|
|
34
|
-
`)
|
|
33
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function Qe(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var _e=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var c=he(s),d=c.next();!d.done;d=c.next()){var f=d.value;f.remove(this)}}catch(S){t={error:S}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else s.remove(this);var b=this.initialTeardown;if($(b))try{b()}catch(S){o=S instanceof Le?S.errors:[S]}var E=this._finalizers;if(E){this._finalizers=null;try{for(var k=he(E),O=k.next();!O.done;O=k.next()){var I=O.value;try{kt(I)}catch(S){o=o??[],S instanceof Le?o=pe(pe([],se(o)),se(S.errors)):o.push(S)}}}catch(S){n={error:S}}finally{try{O&&!O.done&&(i=k.return)&&i.call(k)}finally{if(n)throw n.error}}}if(o)throw new Le(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)kt(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Qe(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Qe(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Ut=_e.EMPTY;function Vt(e){return e instanceof _e||e&&"closed"in e&&$(e.remove)&&$(e.add)&&$(e.unsubscribe)}function kt(e){$(e)?e():e.unsubscribe()}var Jt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Zt={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,pe([e,t],se(r)))},clearTimeout:function(e){var t=Zt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Yt(e){Zt.setTimeout(function(){throw e})}function xt(){}function je(e){e()}var tt=function(e){ge(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Vt(r)&&r.add(n)):n.destination=hn,n}return t.create=function(r,n,i){return new me(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(_e),fn=Function.prototype.bind;function We(e,t){return fn.call(e,t)}var ln=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){xe(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){xe(n)}else xe(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){xe(r)}},e}(),me=function(e){ge(t,e);function t(r,n,i){var o=e.call(this)||this,s;if($(r)||!r)s={next:r??void 0,error:n??void 0,complete:i??void 0};else{var c;o&&Jt.useDeprecatedNextContext?(c=Object.create(r),c.unsubscribe=function(){return o.unsubscribe()},s={next:r.next&&We(r.next,c),error:r.error&&We(r.error,c),complete:r.complete&&We(r.complete,c)}):s=r}return o.destination=new ln(s),o}return t}(tt);function xe(e){Yt(e)}function dn(e){throw e}var hn={closed:!0,next:xt,error:dn,complete:xt},rt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Qt(e){return e}function pn(e){return e.length===0?Qt:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var Q=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,o=vn(t)?t:new me(t,r,n);return je(function(){var s=i,c=s.operator,d=s.source;o.add(c?c.call(o,d):d?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=It(r),new r(function(i,o){var s=new me({next:function(c){try{t(c)}catch(d){o(d),s.unsubscribe()}},error:o,complete:i});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[rt]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return pn(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=It(t),new t(function(n,i){var o;r.subscribe(function(s){return o=s},function(s){return i(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function It(e){var t;return(t=e??Jt.Promise)!==null&&t!==void 0?t:Promise}function yn(e){return e&&$(e.next)&&$(e.error)&&$(e.complete)}function vn(e){return e&&e instanceof tt||yn(e)&&Vt(e)}function bn(e){return $(e==null?void 0:e.lift)}function Se(e){return function(t){if(bn(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function we(e,t,r,n,i){return new mn(e,t,r,n,i)}var mn=function(e){ge(t,e);function t(r,n,i,o,s,c){var d=e.call(this,r)||this;return d.onFinalize=s,d.shouldUnsubscribe=c,d._next=n?function(f){try{n(f)}catch(b){r.error(b)}}:e.prototype._next,d._error=o?function(f){try{o(f)}catch(b){r.error(b)}finally{this.unsubscribe()}}:e.prototype._error,d._complete=i?function(){try{i()}catch(f){r.error(f)}finally{this.unsubscribe()}}:e.prototype._complete,d}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t}(tt),wn=Gt(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),nt=function(e){ge(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new At(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new wn},t.prototype.next=function(r){var n=this;je(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=he(n.currentObservers),c=s.next();!c.done;c=s.next()){var d=c.value;d.next(r)}}catch(f){i={error:f}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;je(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;je(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,o=i.hasError,s=i.isStopped,c=i.observers;return o||s?Ut:(this.currentObservers=null,c.push(r),new _e(function(){n.currentObservers=null,Qe(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,s=n.isStopped;i?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new Q;return r.source=this,r},t.create=function(r,n){return new At(r,n)},t}(Q),At=function(e){ge(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:Ut},t}(nt),Xt=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function gn(e){return $(e==null?void 0:e.then)}function _n(e){return $(e[rt])}function Sn(e){return Symbol.asyncIterator&&$(e==null?void 0:e[Symbol.asyncIterator])}function En(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Mn(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var On=Mn();function Tn(e){return $(e==null?void 0:e[On])}function Rn(e){return un(this,arguments,function(){var r,n,i,o;return Bt(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,de(r.read())];case 3:return n=s.sent(),i=n.value,o=n.done,o?[4,de(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,de(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function Pn(e){return $(e==null?void 0:e.getReader)}function Ee(e){if(e instanceof Q)return e;if(e!=null){if(_n(e))return kn(e);if(Xt(e))return xn(e);if(gn(e))return In(e);if(Sn(e))return Kt(e);if(Tn(e))return An(e);if(Pn(e))return jn(e)}throw En(e)}function kn(e){return new Q(function(t){var r=e[rt]();if($(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function xn(e){return new Q(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function In(e){return new Q(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Yt)})}function An(e){return new Q(function(t){var r,n;try{for(var i=he(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(c){r={error:c}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.complete()})}function Kt(e){return new Q(function(t){$n(e,t).catch(function(r){return t.error(r)})})}function jn(e){return Kt(Rn(e))}function $n(e,t){var r,n,i,o;return an(this,void 0,void 0,function(){var s,c;return Bt(this,function(d){switch(d.label){case 0:d.trys.push([0,5,6,11]),r=cn(e),d.label=1;case 1:return[4,r.next()];case 2:if(n=d.sent(),!!n.done)return[3,4];if(s=n.value,t.next(s),t.closed)return[2];d.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=d.sent(),i={error:c},[3,11];case 6:return d.trys.push([6,,9,10]),n&&!n.done&&(o=r.return)?[4,o.call(r)]:[3,8];case 7:d.sent(),d.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function it(e,t){return Se(function(r,n){var i=0;r.subscribe(we(n,function(o){n.next(e.call(t,o,i++))}))})}var Cn=Array.isArray;function zn(e,t){return Cn(t)?e.apply(void 0,pe([],se(t))):e(t)}function Dn(e){return it(function(t){return zn(e,t)})}function Fn(e,t,r,n,i,o,s,c){var d=[],f=0,b=0,E=!1,k=function(){E&&!d.length&&!f&&t.complete()},O=function(S){return f<n?I(S):d.push(S)},I=function(S){f++;var R=!1;Ee(r(S,b++)).subscribe(we(t,function(N){t.next(N)},function(){R=!0},void 0,function(){if(R)try{f--;for(var N=function(){var B=d.shift();s||I(B)};d.length&&f<n;)N();k()}catch(B){t.error(B)}}))};return e.subscribe(we(t,O,function(){E=!0,k()})),function(){}}function er(e,t,r){return r===void 0&&(r=1/0),$(t)?er(function(n,i){return it(function(o,s){return t(n,o,i,s)})(Ee(e(n,i)))},r):(typeof t=="number"&&(r=t),Se(function(n,i){return Fn(n,i,e,r)}))}var Nn=["addListener","removeListener"],qn=["addEventListener","removeEventListener"],Ln=["on","off"];function Xe(e,t,r,n){if($(r)&&(n=r,r=void 0),n)return Xe(e,t,r).pipe(Dn(n));var i=se(Bn(e)?qn.map(function(c){return function(d){return e[c](t,d,r)}}):Wn(e)?Nn.map(jt(e,t)):Hn(e)?Ln.map(jt(e,t)):[],2),o=i[0],s=i[1];if(!o&&Xt(e))return er(function(c){return Xe(c,t,r)})(Ee(e));if(!o)throw new TypeError("Invalid event target");return new Q(function(c){var d=function(){for(var f=[],b=0;b<arguments.length;b++)f[b]=arguments[b];return c.next(1<f.length?f:f[0])};return o(d),function(){return s(d)}})}function jt(e,t){return function(r){return function(n){return e[r](t,n)}}}function Wn(e){return $(e.addListener)&&$(e.removeListener)}function Hn(e){return $(e.on)&&$(e.off)}function Bn(e){return $(e.addEventListener)&&$(e.removeEventListener)}function Gn(e,t){return Se(function(r,n){var i=0;r.subscribe(we(n,function(o){return e.call(t,o,i++)&&n.next(o)}))})}function Un(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new nt}:t,n=e.resetOnError,i=n===void 0?!0:n,o=e.resetOnComplete,s=o===void 0?!0:o,c=e.resetOnRefCountZero,d=c===void 0?!0:c;return function(f){var b,E,k,O=0,I=!1,S=!1,R=function(){E==null||E.unsubscribe(),E=void 0},N=function(){R(),b=k=void 0,I=S=!1},B=function(){var G=b;N(),G==null||G.unsubscribe()};return Se(function(G,ee){O++,!S&&!I&&R();var te=k=k??r();ee.add(function(){O--,O===0&&!S&&!I&&(E=He(B,d))}),te.subscribe(ee),!b&&O>0&&(b=new me({next:function(U){return te.next(U)},error:function(U){S=!0,R(),E=He(N,i,U),te.error(U)},complete:function(){I=!0,R(),E=He(N,s),te.complete()}}),Ee(G).subscribe(b))})(f)}}function He(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(t===!0){e();return}if(t!==!1){var i=new me({next:function(){i.unsubscribe(),e()}});return Ee(t.apply(void 0,pe([],se(r)))).subscribe(i)}}class Vn extends be.Loader{constructor(t){super(t)}load(t,r,n,i){const o=this,s=new be.FileLoader(this.manager);s.setPath(this.path),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(t,function(c){const d=o.parse(JSON.parse(c));r&&r(d)},n,i)}parse(t){return new tr(t)}}class tr{constructor(t){this.isFont=!0,this.type="Font",this.data=t}generateShapes(t,r=100,n="ltr"){const i=[],o=Jn(t,r,this.data,n);for(let s=0,c=o.length;s<c;s++)i.push(...o[s].toShapes());return i}}function Jn(e,t,r,n){const i=Array.from(e),o=t/r.resolution,s=(r.boundingBox.yMax-r.boundingBox.yMin+r.underlineThickness)*o,c=[];let d=0,f=0;(n=="rtl"||n=="tb")&&i.reverse();for(let b=0;b<i.length;b++){const E=i[b];if(E===`
|
|
34
|
+
`)d=0,f-=s;else{const k=Zn(E,o,d,f,r);n=="tb"?(d=0,f+=r.ascender*o):d+=k.offsetX,c.push(k.path)}}return c}function Zn(e,t,r,n,i){const o=i.glyphs[e]||i.glyphs["?"];if(!o){console.error('THREE.Font: character "'+e+'" does not exists in font family '+i.familyName+".");return}const s=new be.ShapePath;let c,d,f,b,E,k,O,I;if(o.o){const S=o._cachedOutline||(o._cachedOutline=o.o.split(" "));for(let R=0,N=S.length;R<N;)switch(S[R++]){case"m":c=S[R++]*t+r,d=S[R++]*t+n,s.moveTo(c,d);break;case"l":c=S[R++]*t+r,d=S[R++]*t+n,s.lineTo(c,d);break;case"q":f=S[R++]*t+r,b=S[R++]*t+n,E=S[R++]*t+r,k=S[R++]*t+n,s.quadraticCurveTo(E,k,f,b);break;case"b":f=S[R++]*t+r,b=S[R++]*t+n,E=S[R++]*t+r,k=S[R++]*t+n,O=S[R++]*t+r,I=S[R++]*t+n,s.bezierCurveTo(E,k,O,I,f,b);break}}return{offsetX:o.ha*t,path:s}}exports.AppProxyEventHandlersBlueprint=_r;exports.CONTAINER_TOKEN=Er;exports.DefaultCameraType=$t;exports.E=zr;exports.Font=tr;exports.FontLoader=Vn;exports.KEYBOARD_EVENT_CODES=mr;exports.LOADER_SERIALIZED_LOAD_TOKEN=Mr;exports.Lifecycle=W;exports.N=Ar;exports.Observable=Q;exports.PROXY_EVENT_LISTENERS=wr;exports.ProxyEventHandlersBlueprint=gr;exports.ProxyEventObservablesBlueprint=zt;exports.ProxyEventSubjectsBlueprint=Ct;exports.R=jr;exports.RegisterProxyEventHandlersBlueprint=Sr;exports.Subject=nt;exports.Subscription=_e;exports.U=Dr;exports.__read=se;exports.__spreadArray=pe;exports.b=$r;exports.createOperatorSubscriber=we;exports.filter=Gn;exports.fromEvent=Xe;exports.getAugmentedNamespace=Tr;exports.getDefaultExportFromCjs=Or;exports.identity=Qt;exports.inject=en;exports.instance=qt;exports.isFunction=$;exports.map=it;exports.operate=Se;exports.requireCommon=Je;exports.requireMessages=Ht;exports.requireSerializers=Lt;exports.requireSymbols=Wt;exports.requireTransferable=Ze;exports.requireWorker=sn;exports.scoped=rn;exports.share=Un;exports.w=Cr;exports.x=xr;exports.z=Ir;
|