@quick-threejs/reactive 0.1.46 → 0.1.47
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-D3WA1QGd.js → FontLoader-76d20F_i.js} +6 -6
- package/dist/{FontLoader-ejhD_xZ1.mjs → FontLoader-YhZm0TOQ.mjs} +31 -30
- package/dist/common/blueprints/props.blueprint.d.ts +72 -43
- package/dist/common/interfaces/core.interface.d.ts +19 -1
- package/dist/common/interfaces/proxy-event.interface.d.ts +2 -0
- package/dist/core/app/app.module.d.ts +2 -2
- package/dist/core/app/app.service.d.ts +2 -1
- package/dist/core/app/app.worker.d.ts +1 -1
- package/dist/core/app/camera/camera.module.d.ts +2 -4
- package/dist/core/app/camera/camera.service.d.ts +3 -2
- package/dist/core/app/debug/debug.module.d.ts +1 -1
- package/dist/core/app/debug/debug.service.d.ts +2 -2
- package/dist/core/app/loader/loader.module.d.ts +1 -1
- package/dist/core/app/renderer/renderer.module.d.ts +4 -4
- package/dist/core/app/renderer/renderer.service.d.ts +5 -5
- package/dist/core/app/sizes/sizes.module.d.ts +13 -4
- package/dist/core/app/sizes/sizes.service.d.ts +13 -2
- package/dist/core/register/register.module.d.ts +4 -7
- package/dist/core/register/register.service.d.ts +18 -7
- package/dist/main.js +4 -4
- package/dist/main.mjs +836 -846
- package/dist/worker.js +1 -1
- package/dist/worker.mjs +551 -510
- package/package.json +3 -3
|
@@ -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 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;/*! *****************************************************************************
|
|
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=>typeof e=="number",$r=e=>!!e&&typeof e=="function",Cr=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})},zr=(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},Dr=(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},Fr=(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 Nr(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 qr(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 Lr(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 Wr(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 Hr(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 Br(e){return typeof e=="function"||e instanceof Ft}function Ie(e){return!!e.useToken}function Ae(e){return e.useValue!=null}function Gr(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}(),Ur=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 Vr(e,t){if(e===null)return"at position #"+t;var r=e.split(",")[t].trim();return'"'+r+'" at position #'+t}function Jr(e,t,r){return r===void 0&&(r=" "),oe([e],t.message.split(`
|
|
28
28
|
`).map(function(n){return r+n})).join(`
|
|
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.
|
|
29
|
+
`)}function Zr(e,t,r){var n=$e(e.toString().match(/constructor\(([\w, ]+)\)/)||[],2),i=n[1],o=i===void 0?null:i,s=Vr(o,t);return Jr("Cannot inject the dependency "+s+' of "'+e.name+'" constructor. Reason:',r)}function Yr(e){if(typeof e.dispose!="function")return!1;var t=e.dispose;return!(t.length>0)}var Qr=function(e){Ke(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(et),Xr=function(e){Ke(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(et),Kr=function(){function e(){this.preResolution=new Qr,this.postResolution=new Xr}return e}(),Nt=new Map,en=function(){function e(t){this.parent=t,this._registry=new Ur,this.interceptors=new Kr,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(Gr(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(Br(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 Nr(this,void 0,void 0,function(){var t;return qr(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 Yr(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 Hr(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(Zr(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 en;function tn(e,t){var r={token:e,multiple:!1,isOptional:t};return Wr(r)}function rn(e){return function(t){Nt.set(t,Lr(t))}}function nn(e,t){return function(r){rn()(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 on(){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 sn(){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 an(){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(on()),i=Je(),o=Ze(),s=Ht(),c=r(sn());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
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
|
|
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 un(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 cn(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 fn(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=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=
|
|
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=pn,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),ln=Function.prototype.bind;function We(e,t){return ln.call(e,t)}var dn=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 dn(s),o}return t}(tt);function xe(e){Yt(e)}function hn(e){throw e}var pn={closed:!0,next:xt,error:hn,complete:xt},rt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Qt(e){return e}function yn(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=bn(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 yn(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 vn(e){return e&&$(e.next)&&$(e.error)&&$(e.complete)}function bn(e){return e&&e instanceof tt||vn(e)&&Vt(e)}function mn(e){return $(e==null?void 0:e.lift)}function Se(e){return function(t){if(mn(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 wn(e,t,r,n,i)}var wn=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),gn=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 gn},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 _n(e){return $(e==null?void 0:e.then)}function Sn(e){return $(e[rt])}function En(e){return Symbol.asyncIterator&&$(e==null?void 0:e[Symbol.asyncIterator])}function Mn(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 On(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Tn=On();function Rn(e){return $(e==null?void 0:e[Tn])}function Pn(e){return cn(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 kn(e){return $(e==null?void 0:e.getReader)}function Ee(e){if(e instanceof Q)return e;if(e!=null){if(Sn(e))return xn(e);if(Xt(e))return In(e);if(_n(e))return An(e);if(En(e))return Kt(e);if(Rn(e))return jn(e);if(kn(e))return $n(e)}throw Mn(e)}function xn(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 In(e){return new Q(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function An(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 jn(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){Cn(e,t).catch(function(r){return t.error(r)})})}function $n(e){return Kt(Pn(e))}function Cn(e,t){var r,n,i,o;return un(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=fn(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 zn=Array.isArray;function Dn(e,t){return zn(t)?e.apply(void 0,pe([],se(t))):e(t)}function Fn(e){return it(function(t){return Dn(e,t)})}function Nn(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 Nn(n,i,e,r)}))}var qn=["addListener","removeListener"],Ln=["addEventListener","removeEventListener"],Wn=["on","off"];function Xe(e,t,r,n){if($(r)&&(n=r,r=void 0),n)return Xe(e,t,r).pipe(Fn(n));var i=se(Gn(e)?Ln.map(function(c){return function(d){return e[c](t,d,r)}}):Hn(e)?qn.map(jt(e,t)):Bn(e)?Wn.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 Hn(e){return $(e.addListener)&&$(e.removeListener)}function Bn(e){return $(e.on)&&$(e.off)}function Gn(e){return $(e.addEventListener)&&$(e.removeEventListener)}function Un(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 Vn(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 Jn 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=Zn(t,r,this.data,n);for(let s=0,c=o.length;s<c;s++)i.push(...o[s].toShapes());return i}}function Zn(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=Yn(E,o,d,f,r);n=="tb"?(d=0,f+=r.ascender*o):d+=k.offsetX,c.push(k.path)}}return c}function Yn(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.D=Ar;exports.DefaultCameraType=$t;exports.E=$r;exports.Font=tr;exports.FontLoader=Jn;exports.J=Fr;exports.KEYBOARD_EVENT_CODES=mr;exports.LOADER_SERIALIZED_LOAD_TOKEN=Mr;exports.Lifecycle=W;exports.N=Ir;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.createOperatorSubscriber=we;exports.filter=Un;exports.fromEvent=Xe;exports.g=Cr;exports.getAugmentedNamespace=Tr;exports.getDefaultExportFromCjs=Or;exports.identity=Qt;exports.inject=tn;exports.instance=qt;exports.isFunction=$;exports.m=zr;exports.map=it;exports.operate=Se;exports.requireCommon=Je;exports.requireMessages=Ht;exports.requireSerializers=Lt;exports.requireSymbols=Wt;exports.requireTransferable=Ze;exports.requireWorker=an;exports.scoped=nn;exports.share=Vn;exports.x=xr;
|
|
@@ -1017,7 +1017,7 @@ class Wn extends ht {
|
|
|
1017
1017
|
super(...arguments), fe(this, "ownerDocument", new ht());
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
|
-
const Hn = (e) => e === void 0, Gn = (e) => typeof e == "boolean", Bn = (e) => !!e && typeof e == "function",
|
|
1020
|
+
const Hn = (e) => e === void 0, Gn = (e) => typeof e == "boolean", Bn = (e) => typeof e == "number", Un = (e) => !!e && typeof e == "function", Vn = (e) => {
|
|
1021
1021
|
var t, r;
|
|
1022
1022
|
const n = e.toJSON();
|
|
1023
1023
|
return JSON.stringify({
|
|
@@ -1048,7 +1048,7 @@ const Hn = (e) => e === void 0, Gn = (e) => typeof e == "boolean", Bn = (e) => !
|
|
|
1048
1048
|
},
|
|
1049
1049
|
isSerialized: !0
|
|
1050
1050
|
});
|
|
1051
|
-
},
|
|
1051
|
+
}, Jn = (e, t = new cr()) => {
|
|
1052
1052
|
const r = JSON.parse(e);
|
|
1053
1053
|
if (r != null && r.metadata && r.object && r.isSerialized) {
|
|
1054
1054
|
const n = t.parse(r);
|
|
@@ -1067,14 +1067,14 @@ const Hn = (e) => e === void 0, Gn = (e) => typeof e == "boolean", Bn = (e) => !
|
|
|
1067
1067
|
}), n;
|
|
1068
1068
|
}
|
|
1069
1069
|
return r;
|
|
1070
|
-
},
|
|
1070
|
+
}, Zn = (e, t) => {
|
|
1071
1071
|
const r = {
|
|
1072
1072
|
type: e == null ? void 0 : e.type
|
|
1073
1073
|
};
|
|
1074
1074
|
for (const n of t)
|
|
1075
1075
|
e[n] !== void 0 && (r[n] = e[n]);
|
|
1076
1076
|
return r;
|
|
1077
|
-
},
|
|
1077
|
+
}, Yn = (e, t) => {
|
|
1078
1078
|
const r = {
|
|
1079
1079
|
type: e == null ? void 0 : e.type
|
|
1080
1080
|
};
|
|
@@ -1620,7 +1620,7 @@ var xr = function(e) {
|
|
|
1620
1620
|
throw new Error("This container has been disposed, you cannot interact with a disposed container");
|
|
1621
1621
|
}, e;
|
|
1622
1622
|
}(), Cr = new Ar();
|
|
1623
|
-
function
|
|
1623
|
+
function Qn(e, t) {
|
|
1624
1624
|
var r = {
|
|
1625
1625
|
token: e,
|
|
1626
1626
|
multiple: !1,
|
|
@@ -1633,7 +1633,7 @@ function zr(e) {
|
|
|
1633
1633
|
jt.set(t, _r(t));
|
|
1634
1634
|
};
|
|
1635
1635
|
}
|
|
1636
|
-
function
|
|
1636
|
+
function Xn(e, t) {
|
|
1637
1637
|
return function(r) {
|
|
1638
1638
|
zr()(r), Cr.register(r, r, {
|
|
1639
1639
|
lifecycle: e
|
|
@@ -1770,7 +1770,7 @@ function Nr() {
|
|
|
1770
1770
|
}, Oe;
|
|
1771
1771
|
}
|
|
1772
1772
|
var Et;
|
|
1773
|
-
function
|
|
1773
|
+
function Kn() {
|
|
1774
1774
|
return Et || (Et = 1, function(e) {
|
|
1775
1775
|
var t = ie && ie.__awaiter || function(y, I, $, z) {
|
|
1776
1776
|
function Q(N) {
|
|
@@ -2887,7 +2887,7 @@ function Rn(e) {
|
|
|
2887
2887
|
function Tn(e) {
|
|
2888
2888
|
return A(e.addEventListener) && A(e.removeEventListener);
|
|
2889
2889
|
}
|
|
2890
|
-
function
|
|
2890
|
+
function ei(e, t) {
|
|
2891
2891
|
return je(function(r, n) {
|
|
2892
2892
|
var i = 0;
|
|
2893
2893
|
r.subscribe(xe(n, function(o) {
|
|
@@ -2895,7 +2895,7 @@ function Kn(e, t) {
|
|
|
2895
2895
|
}));
|
|
2896
2896
|
});
|
|
2897
2897
|
}
|
|
2898
|
-
function
|
|
2898
|
+
function ti(e) {
|
|
2899
2899
|
e === void 0 && (e = {});
|
|
2900
2900
|
var t = e.connector, r = t === void 0 ? function() {
|
|
2901
2901
|
return new Nt();
|
|
@@ -2944,7 +2944,7 @@ function We(e, t) {
|
|
|
2944
2944
|
return we(t.apply(void 0, ye([], he(r)))).subscribe(i);
|
|
2945
2945
|
}
|
|
2946
2946
|
}
|
|
2947
|
-
class
|
|
2947
|
+
class ri extends fr {
|
|
2948
2948
|
/**
|
|
2949
2949
|
* Constructs a new font loader.
|
|
2950
2950
|
*
|
|
@@ -3052,16 +3052,17 @@ export {
|
|
|
3052
3052
|
zn as A,
|
|
3053
3053
|
Zr as B,
|
|
3054
3054
|
Fn as C,
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3055
|
+
Gn as D,
|
|
3056
|
+
Un as E,
|
|
3057
|
+
ri as F,
|
|
3058
3058
|
A as G,
|
|
3059
3059
|
Wn as H,
|
|
3060
|
-
|
|
3061
|
-
|
|
3060
|
+
Jn as I,
|
|
3061
|
+
Yn as J,
|
|
3062
3062
|
jn as K,
|
|
3063
3063
|
W as L,
|
|
3064
|
-
|
|
3064
|
+
Pn as M,
|
|
3065
|
+
Hn as N,
|
|
3065
3066
|
K as O,
|
|
3066
3067
|
Cn as P,
|
|
3067
3068
|
Dn as R,
|
|
@@ -3071,27 +3072,27 @@ export {
|
|
|
3071
3072
|
qr as a,
|
|
3072
3073
|
bt as b,
|
|
3073
3074
|
gt as c,
|
|
3074
|
-
|
|
3075
|
+
Kn as d,
|
|
3075
3076
|
Dr as e,
|
|
3076
3077
|
Ln as f,
|
|
3077
3078
|
Nn as g,
|
|
3078
3079
|
Cr as h,
|
|
3079
|
-
|
|
3080
|
+
Qn as i,
|
|
3080
3081
|
An as j,
|
|
3081
3082
|
kt as k,
|
|
3082
|
-
|
|
3083
|
+
ei as l,
|
|
3083
3084
|
Gt as m,
|
|
3084
|
-
|
|
3085
|
-
|
|
3085
|
+
ti as n,
|
|
3086
|
+
Vn as o,
|
|
3086
3087
|
qn as p,
|
|
3087
|
-
|
|
3088
|
+
hr as q,
|
|
3088
3089
|
Fr as r,
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3090
|
+
Xn as s,
|
|
3091
|
+
Bn as t,
|
|
3092
|
+
pr as u,
|
|
3093
|
+
vr as v,
|
|
3094
|
+
$e as w,
|
|
3095
|
+
he as x,
|
|
3096
|
+
je as y,
|
|
3097
|
+
xe as z
|
|
3097
3098
|
};
|
|
@@ -26,15 +26,33 @@ export declare class RegisterPropsBlueprint {
|
|
|
26
26
|
/**
|
|
27
27
|
* @description App `canvas` element reference.
|
|
28
28
|
*
|
|
29
|
+
* @note If not provided, the canvas will be created automatically.
|
|
30
|
+
*
|
|
29
31
|
* @default undefined
|
|
30
32
|
*/
|
|
31
33
|
canvas?: HTMLCanvasElement;
|
|
32
34
|
/**
|
|
33
|
-
* @description
|
|
35
|
+
* @description Wrapper element for the canvas used to set the canvas size.
|
|
36
|
+
*
|
|
37
|
+
* @note If the `fullScreen` property is `true`, the element won't be used to set the canvas size.
|
|
38
|
+
*
|
|
39
|
+
* @default undefined
|
|
40
|
+
*/
|
|
41
|
+
canvasWrapper?: HTMLElement;
|
|
42
|
+
/**
|
|
43
|
+
* @description Use the window size to render the canvas in fullscreen and auto-resize it.
|
|
34
44
|
*
|
|
35
45
|
* @default true
|
|
36
46
|
*/
|
|
37
47
|
fullScreen?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* @description Auto-resize the renderer when the canvas size changes.
|
|
50
|
+
*
|
|
51
|
+
* @note Will have no effect if either {@link LaunchAppProps.fullScreen} or {@link RegisterPropsBlueprint.canvasWrapper} are not provided.
|
|
52
|
+
*
|
|
53
|
+
* @default true
|
|
54
|
+
*/
|
|
55
|
+
autoRenderResize?: boolean;
|
|
38
56
|
/**
|
|
39
57
|
* Default used camera.
|
|
40
58
|
*
|
|
@@ -44,7 +62,7 @@ export declare class RegisterPropsBlueprint {
|
|
|
44
62
|
*/
|
|
45
63
|
defaultCamera?: DefaultCameraType;
|
|
46
64
|
/**
|
|
47
|
-
* @description
|
|
65
|
+
* @description Stepping the timer animation loop on launch.
|
|
48
66
|
*
|
|
49
67
|
* @default true
|
|
50
68
|
*/
|
|
@@ -70,49 +88,56 @@ export declare class RegisterPropsBlueprint {
|
|
|
70
88
|
*/
|
|
71
89
|
loadResourcesOnInit?: boolean;
|
|
72
90
|
/**
|
|
73
|
-
* @description
|
|
74
|
-
*
|
|
75
|
-
* @remark __Deactivated if the value is `false` or `undefined`__
|
|
76
|
-
*
|
|
77
|
-
* @default undefined
|
|
78
|
-
*/
|
|
79
|
-
enableDebug?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Will enable orbit controls for the cameras.
|
|
82
|
-
*
|
|
83
|
-
* @remark __Deactivated if the value is `false` or `undefined`__
|
|
84
|
-
* @remark __This property depends on {@link RegisterPropsBlueprint.enableDebug enableDebug}__
|
|
85
|
-
*
|
|
86
|
-
* @default undefined
|
|
87
|
-
*/
|
|
88
|
-
enableControls?: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* Define the {@link THREE.AxesHelper} sizes.
|
|
91
|
-
*
|
|
92
|
-
* @remark __Deactivated if the value is `0` or `undefined`__
|
|
93
|
-
* @remark __This property depends on {@link RegisterPropsBlueprint.enableDebug enableDebug}__
|
|
94
|
-
*
|
|
95
|
-
* @default undefined
|
|
96
|
-
*/
|
|
97
|
-
axesSizes?: number;
|
|
98
|
-
/**
|
|
99
|
-
* Define the {@link THREE.GridHelper} sizes.
|
|
100
|
-
*
|
|
101
|
-
* @remark __Deactivated if the value is `0` or `undefined`__
|
|
102
|
-
* @remark __This property depends on {@link RegisterPropsBlueprint.enableDebug enableDebug}__
|
|
103
|
-
*
|
|
104
|
-
* @default undefined
|
|
105
|
-
*/
|
|
106
|
-
gridSizes?: number;
|
|
107
|
-
/**
|
|
108
|
-
* Display a mini perfective camera at the top right corner of the screen.
|
|
109
|
-
*
|
|
110
|
-
* @remark __Deactivated if the value is `false` or `undefined`__
|
|
111
|
-
* @remark __This property depends on {@link RegisterPropsBlueprint.enableDebug enableDebug}__
|
|
91
|
+
* @description Debug properties.
|
|
112
92
|
*
|
|
113
93
|
* @default undefined
|
|
114
94
|
*/
|
|
115
|
-
|
|
95
|
+
debug?: {
|
|
96
|
+
/**
|
|
97
|
+
* @description Enable the debug mode
|
|
98
|
+
*
|
|
99
|
+
* @remark __Deactivated if the value is `false` or `undefined`__
|
|
100
|
+
*
|
|
101
|
+
* @default undefined
|
|
102
|
+
*/
|
|
103
|
+
enabled?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Will enable orbit controls for the cameras.
|
|
106
|
+
*
|
|
107
|
+
* @remark __Deactivated if the value is `false` or `undefined`__
|
|
108
|
+
* @remark __This property depends on {@link RegisterPropsBlueprint.enableDebug enableDebug}__
|
|
109
|
+
*
|
|
110
|
+
* @default undefined
|
|
111
|
+
*/
|
|
112
|
+
enableControls?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Define the {@link THREE.AxesHelper} sizes.
|
|
115
|
+
*
|
|
116
|
+
* @remark __Deactivated if the value is `0` or `undefined`__
|
|
117
|
+
* @remark __This property depends on {@link RegisterPropsBlueprint.enableDebug enableDebug}__
|
|
118
|
+
*
|
|
119
|
+
* @default undefined
|
|
120
|
+
*/
|
|
121
|
+
axesSizes?: number;
|
|
122
|
+
/**
|
|
123
|
+
* Define the {@link THREE.GridHelper} sizes.
|
|
124
|
+
*
|
|
125
|
+
* @remark __Deactivated if the value is `0` or `undefined`__
|
|
126
|
+
* @remark __This property depends on {@link RegisterPropsBlueprint.enableDebug enableDebug}__
|
|
127
|
+
*
|
|
128
|
+
* @default undefined
|
|
129
|
+
*/
|
|
130
|
+
gridSizes?: number;
|
|
131
|
+
/**
|
|
132
|
+
* Display a mini perfective camera at the top right corner of the screen.
|
|
133
|
+
*
|
|
134
|
+
* @remark __Deactivated if the value is `false` or `undefined`__
|
|
135
|
+
* @remark __This property depends on {@link RegisterPropsBlueprint.enableDebug enableDebug}__
|
|
136
|
+
*
|
|
137
|
+
* @default undefined
|
|
138
|
+
*/
|
|
139
|
+
withMiniCamera?: boolean;
|
|
140
|
+
};
|
|
116
141
|
/**
|
|
117
142
|
* @description Handler called when the app is ready.
|
|
118
143
|
*
|
|
@@ -124,7 +149,11 @@ export declare class RegisterPropsBlueprint {
|
|
|
124
149
|
* @description {@link AppModule} initialization properties.
|
|
125
150
|
*/
|
|
126
151
|
export declare class LaunchAppProps<M extends Module> {
|
|
127
|
-
/**
|
|
152
|
+
/**
|
|
153
|
+
* @description App `canvas` element reference.
|
|
154
|
+
*
|
|
155
|
+
* @note Will be used on main-thread strategy only.
|
|
156
|
+
*/
|
|
128
157
|
canvas?: OffscreenCanvasStb | HTMLCanvasElement;
|
|
129
158
|
/** @description Handler triggered when the app is ready. */
|
|
130
159
|
onReady?: (workerApp: ContainerizedApp<M>) => unknown;
|
|
@@ -1,11 +1,29 @@
|
|
|
1
1
|
import { OffscreenCanvasStb } from 'main';
|
|
2
2
|
import { RegisterPropsBlueprint } from '../blueprints/props.blueprint';
|
|
3
|
-
export interface AppModulePropsMessageEvent extends MessageEvent<Omit<RegisterPropsBlueprint, "canvas" | "location" | "loaderDataSources"> & {
|
|
3
|
+
export interface AppModulePropsMessageEvent extends MessageEvent<Omit<RegisterPropsBlueprint, "canvas" | "canvasWrapper" | "location" | "loaderDataSources"> & {
|
|
4
4
|
/**
|
|
5
5
|
* The canvas element based on.
|
|
6
6
|
*
|
|
7
7
|
* @default `undefined`
|
|
8
8
|
*/
|
|
9
9
|
canvas?: OffscreenCanvasStb | HTMLCanvasElement;
|
|
10
|
+
/**
|
|
11
|
+
* Whether the canvas has a wrapper element.
|
|
12
|
+
*
|
|
13
|
+
* @default `undefined`
|
|
14
|
+
*/
|
|
15
|
+
hasCanvasWrapper?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The pixel ratio to use for the renderer.
|
|
18
|
+
*
|
|
19
|
+
* @default `1`
|
|
20
|
+
*/
|
|
21
|
+
pixelRatio?: number;
|
|
22
|
+
/**
|
|
23
|
+
* The app is initialized.
|
|
24
|
+
*
|
|
25
|
+
* @default `true`
|
|
26
|
+
*/
|
|
27
|
+
initApp: true;
|
|
10
28
|
}> {
|
|
11
29
|
}
|