earthsdk3-ue 3.0.8-beta.2 → 3.0.8-beta.3
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/earthsdk3-ue.iife.js +53 -280
- package/dist/earthsdk3-ue.js +364 -362
- package/dist/earthsdk3-ue.umd.cjs +2 -2
- package/dist/types/ESUeViewer/ESUeViewer.d.ts +5 -0
- package/dist/types/ESUeViewer/ESUeViewer.d.ts.map +1 -1
- package/dist/types/ESUeViewer/inner/ReactProps.d.ts +3 -0
- package/dist/types/ESUeViewer/inner/ReactProps.d.ts.map +1 -1
- package/dist/types/UeObjects/general/UeESImageryLayer/index.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,283 +1,56 @@
|
|
|
1
|
-
var EarthSDK3_UE=function(J,j){"use strict";var My=Object.defineProperty;var Hy=(J,j,rt)=>j in J?My(J,j,{enumerable:!0,configurable:!0,writable:!0,value:rt}):J[j]=rt;var z=(J,j,rt)=>Hy(J,typeof j!="symbol"?j+"":j,rt);var rt={exports:{}};/*! For license information please see xbsj-base.js.LICENSE.txt */var ku=rt.exports,Qs;function Ku(){return Qs||(Qs=1,function(v,e){(function(t,o){v.exports=o()})(ku,()=>(()=>{var t={109:function(B,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function n(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)}),w=this&&this.__read||function(c,a){var n=typeof Symbol=="function"&&c[Symbol.iterator];if(!n)return c;var s,r,i=n.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=i.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return l};Object.defineProperty(A,"__esModule",{value:!0}),A.DebouncingDeprecated=void 0;var p=h(6891),u=h(1662),f=function(c){function a(n){n===void 0&&(n=300);var s=c.call(this,function(r){var i=r.progressFunc,l=(r.completeFunc,r.errorFunc,w((0,u.debounce)(function(){if(!s._lastDebounceValue)throw new Error("!this._lastDebounceValue");i([s._lastDebounceValue,s._debouncTimes]),s._debouncTimes=0},s._delayTime),2)),d=l[0],C=l[1];return s._d=d,function(){C()}})||this;return s._delayTime=n,s._debouncTimes=0,s}return g(a,c),Object.defineProperty(a.prototype,"delayTime",{get:function(){return this._delayTime},enumerable:!1,configurable:!0}),a.prototype.debounce=function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];this.isRunning?(++this._debouncTimes,this._lastDebounceValue=n,this._d&&this._d()):console.warn("Debouncing is not running!")},a}(p.ProcessingDeprecated);A.DebouncingDeprecated=f},146:function(B,A,h){var m,g=this&&this.__extends||(m=function(l,d){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,_){C.__proto__=_}||function(C,_){for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(C[b]=_[b])},m(l,d)},function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function C(){this.constructor=l}m(l,d),l.prototype=d===null?Object.create(d):(C.prototype=d.prototype,new C)}),w=this&&this.__read||function(l,d){var C=typeof Symbol=="function"&&l[Symbol.iterator];if(!C)return l;var _,b,E=C.call(l),F=[];try{for(;(d===void 0||d-- >0)&&!(_=E.next()).done;)F.push(_.value)}catch(Q){b={error:Q}}finally{try{_&&!_.done&&(C=E.return)&&C.call(E)}finally{if(b)throw b.error}}return F};Object.defineProperty(A,"__esModule",{value:!0}),A.SceneObjectWithId=A.SceneObjectIdWatching=A.getSceneObjectReactFromId=A.SceneObjectFromId=void 0;var p=h(1662),u=h(2220),f=h(7372),c=h(3815),a=function(l){function d(C){var _=l.call(this)||this;_._id=C,_._sceneObject=_.disposeVar((0,f.react)(void 0)),_.dispose(function(){_._sceneObject.value=void 0});var b=u.SceneObject.getSceneObjById(_._id);return b&&(_._sceneObject.value=b),_.dispose(u.SceneObject.context.sceneObjCreatedEvent.disposableOn(function(E){E.id===_._id&&(_._sceneObject.value=E)})),_.dispose(u.SceneObject.context.sceneObjToDestroyEvent.disposableOn(function(E){E.id===_._id&&(_._sceneObject.value=void 0)})),_}return g(d,l),Object.defineProperty(d.prototype,"sceneObject",{get:function(){return this._sceneObject.value},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"sceneObjectChanged",{get:function(){return this._sceneObject.changed},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),d}(f.Destroyable);function n(l){var d=w((0,p.getReactFuncs)(l),3),C=d[0],_=(d[1],d[2]),b=(0,f.react)(void 0);return b.disposeVar(new c.ObjResettingWithEvent(_,function(){var E=C();if(E){var F=new a(E),Q=function(){b.value=F.sceneObject};return Q(),F.dispose(F.sceneObjectChanged.disposableOn(Q)),F}b.value=void 0})),b}A.SceneObjectFromId=a,A.getSceneObjectReactFromId=n;var s=function(l){function d(C,_){var b=l.call(this)||this,E=b.disposeVar(n(C));return b.disposeVar(new c.ObjResettingWithEvent(E.changed,function(){var F=E.value;if(F)return _(F)})),b}return g(d,l),d}(f.Destroyable);A.SceneObjectIdWatching=s;var r=function(l){function d(C,_){var b=l.call(this)||this;b._id=C,b._sofi=b.disposeVar(new a(b._id));var E=function(){_.sceneObject=b._sofi.sceneObject};return E(),b.dispose(b._sofi.sceneObjectChanged.disposableOn(E)),b}return g(d,l),d}(f.Destroyable),i=function(l){function d(){var C=l.call(this)||this;return C._id=C.disposeVar((0,f.react)(void 0)),C._sceneObject=C.disposeVar((0,f.react)(void 0)),C._resetting=C.disposeVar(new c.ObjResettingWithEvent(C.idChanged,function(){var _=C.id;if(_!==void 0&&_!=="")return new r(_,C);C.sceneObject=void 0})),C}return g(d,l),Object.defineProperty(d.prototype,"id",{get:function(){return this._id.value},set:function(C){this._id.value=C},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"idChanged",{get:function(){return this._id.changed},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"sceneObject",{get:function(){return this._sceneObject.value},set:function(C){this._sceneObject.value=C},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"sceneObjectChanged",{get:function(){return this._sceneObject.changed},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"resetting",{get:function(){return this._resetting},enumerable:!1,configurable:!0}),d}(f.Destroyable);A.SceneObjectWithId=i},172:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(6928),A),g(h(7445),A)},200:function(B,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function n(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(A,"__esModule",{value:!0}),A.DivPoi=void 0;var w=h(7372),p=h(7372),u=h(7324),f=function(c){function a(n,s){var r=c.call(this)||this;return r._customDivClass=n,r._divContainer=s,r._show=!1,r.dispose(function(){r.show=!1}),r}return g(a,c),a.prototype._updateDivPoi=function(){if(this._show){var n=this.floatDiv;n.element.parentElement||this._divContainer.appendChild(n.element)}else{var s=this._floatDiv;s&&s.element.parentElement&&this._divContainer.removeChild(s.element)}},Object.defineProperty(a.prototype,"show",{get:function(){return this._show},set:function(n){this._show!==n&&(this._show=n,this._updateDivPoi(),this._showChanged&&this._showChanged.emit(n))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"floatDiv",{get:function(){var n=this;if(!this._floatDiv){var s=(0,u.getFloatDivPool)(this._customDivClass).create();this.dispose(function(){(0,u.getFloatDivPool)(n._customDivClass).destroy(s)}),this._floatDiv=s}return this._floatDiv},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"showChanged",{get:function(){return this._showChanged||(this._showChanged=new w.Event),this._showChanged},enumerable:!1,configurable:!0}),a}(p.Destroyable);A.DivPoi=f},312:(B,A)=>{var h;Object.defineProperty(A,"__esModule",{value:!0}),A.Intersect=void 0,(h=A.Intersect||(A.Intersect={})).OUTSIDE=-1,h.INTERSECTING=0,h.INSIDE=1},345:(B,A)=>{function h(m){var g=0|+m;if(g.toString()===m)return g}Object.defineProperty(A,"__esModule",{value:!0}),A.observeArray=void 0,A.observeArray=function(m,g){if(!Array.isArray(m))throw new Error("!Array.isArray(array)");return new Proxy(m,{set:function(w,p,u,f){var c=w;if(typeof p!="string")throw new Error("typeof key !== string");var a=h(p);if(a===void 0)return Reflect.set(c,p,u,f);if(a<0)throw new Error("n < 0 || n >= array.length");return!!g({type:c[a]===void 0?"insert":"update",index:a,oldValue:c[a],value:u})&&Reflect.set(w,p,u,f)},deleteProperty:function(w,p){var u=w;if(typeof p!="string")throw new Error("typeof key !== string");var f=h(p);if(f===void 0)return Reflect.deleteProperty(w,p);if(f<0||f>=u.length)throw new Error("n < 0 || n >= array.length");return!!g({type:"delete",index:f,oldValue:u[f],value:void 0})&&Reflect.deleteProperty(w,p)}})}},433:function(B,A){var h=this&&this.__read||function(g,w){var p=typeof Symbol=="function"&&g[Symbol.iterator];if(!p)return g;var u,f,c=p.call(g),a=[];try{for(;(w===void 0||w-- >0)&&!(u=c.next()).done;)a.push(u.value)}catch(n){f={error:n}}finally{try{u&&!u.done&&(p=c.return)&&p.call(c)}finally{if(f)throw f.error}}return a},m=this&&this.__spreadArray||function(g,w,p){if(p||arguments.length===2)for(var u,f=0,c=w.length;f<c;f++)!u&&f in w||(u||(u=Array.prototype.slice.call(w,0,f)),u[f]=w[f]);return g.concat(u||Array.prototype.slice.call(w))};Object.defineProperty(A,"__esModule",{value:!0}),A.magicStrToUint32=void 0,A.magicStrToUint32=function(g){if(g.length>4)throw new Error("getMagic error! str.length > 4");return function(w){return m([],h(w),!1).reverse().reduce(function(p,u){return(p<<=8)+u.codePointAt(0)},0)}(g)}},476:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.some=void 0;var m=h(6301);A.some=function(g,w){return(0,m.forEachWithBreak)(g,function(p,u){return w(p,u)})}},507:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C};Object.defineProperty(A,"__esModule",{value:!0}),A.PointerClickDeprecated=void 0;var p=h(109),u=h(7372),f=h(2299),c=h(7372),a=function(n){function s(r){var i=n.call(this)||this;i._clickEvent=new c.Event,i._dbclickEvent=new c.Event,i._downEvent=new c.Event,i._upEvent=new c.Event,i._moveEvent=new c.Event,i._debouncing=new p.DebouncingDeprecated(300),i.dispose(function(){i._clickEvent.destroy(),i._dbclickEvent.destroy(),i._downEvent.destroy(),i._upEvent.destroy(),i._moveEvent.destroy(),i._debouncing.destroy()});var l=!1,d=[0,0],C=!1;i._debouncing.progressFunc=function(Q){var U=w(Q,2),T=w(U[0],3),S=T[0],P=T[1],I=T[2],M=U[1];M===1?i._clickEvent.emit(S,P,I):M>=2?i._dbclickEvent.emit(S,P,I):console.error("point click should not be here!")},i._debouncing.start(),i.dispose(function(){i._debouncing.isRunning&&i._debouncing.cancel(),i._debouncing.destroy()});var _=function(Q){l=!0;var U=w((0,f.getDomEventCurrentTargetPos)(Q),2),T=U[0],S=U[1];d[0]=T,d[1]=S,i._downEvent.emit(T,S,Q)},b=function(Q){var U=w((0,f.getDomEventCurrentTargetPos)(Q),2),T=U[0],S=U[1];l&&!C&&i._debouncing.debounce(T,S,Q),l=!1,C=!1,i._upEvent.emit(T,S,Q)},E=function(Q){var U=w((0,f.getDomEventCurrentTargetPos)(Q),2),T=U[0],S=U[1];if(l&&!C){var P=w(d,2),I=P[0],M=P[1];(Math.abs(T-I)>3||Math.abs(S-M)>3)&&(C=!0)}i._moveEvent.emit(T,S,Q)},F=function(){l=!1,C=!1};return r.addEventListener("pointerdown",_),r.addEventListener("pointerup",b),r.addEventListener("pointermove",E),r.addEventListener("pointerout",F),i.dispose(function(){r.removeEventListener("pointerdown",_),r.removeEventListener("pointerup",b),r.removeEventListener("pointermove",E),r.removeEventListener("pointerout",F)}),i}return g(s,n),Object.defineProperty(s.prototype,"clickEvent",{get:function(){return this._clickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dbclickEvent",{get:function(){return this._dbclickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"downEvent",{get:function(){return this._downEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"upEvent",{get:function(){return this._upEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"moveEvent",{get:function(){return this._moveEvent},enumerable:!1,configurable:!0}),s}(u.Destroyable);A.PointerClickDeprecated=a},602:(B,A)=>{var h,m,g,w,p,u,f,c,a;Object.defineProperty(A,"__esModule",{value:!0}),A.Tween=void 0,(h=A.Tween||(A.Tween={})).Linear=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r*n/i+s},(a=h.Quad||(h.Quad={})).easeIn=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r*(n/=i)*n+s},a.easeOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),-r*(n/=i)*(n-2)+s},a.easeInOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),(n/=i/2)<1?r/2*n*n+s:-r/2*(--n*(n-2)-1)+s},(c=h.Cubic||(h.Cubic={})).easeIn=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r*(n/=i)*n*n+s},c.easeOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r*((n=n/i-1)*n*n+1)+s},c.easeInOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),(n/=i/2)<1?r/2*n*n*n+s:r/2*((n-=2)*n*n+2)+s},(f=h.Quart||(h.Quart={})).easeIn=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r*(n/=i)*n*n*n+s},f.easeOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),-r*((n=n/i-1)*n*n*n-1)+s},f.easeInOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),(n/=i/2)<1?r/2*n*n*n*n+s:-r/2*((n-=2)*n*n*n-2)+s},(u=h.Quint||(h.Quint={})).easeIn=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r*(n/=i)*n*n*n*n+s},u.easeOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r*((n=n/i-1)*n*n*n*n+1)+s},u.easeInOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),(n/=i/2)<1?r/2*n*n*n*n*n+s:r/2*((n-=2)*n*n*n*n+2)+s},(p=h.Sine||(h.Sine={})).easeIn=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),-r*Math.cos(n/i*(Math.PI/2))+r+s},p.easeOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r*Math.sin(n/i*(Math.PI/2))+s},p.easeInOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),-r/2*(Math.cos(Math.PI*n/i)-1)+s},(w=h.Expo||(h.Expo={})).easeIn=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),n==0?s:r*Math.pow(2,10*(n/i-1))+s},w.easeOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),n==i?s+r:r*(1-Math.pow(2,-10*n/i))+s},w.easeInOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),n==0?s:n==i?s+r:(n/=i/2)<1?r/2*Math.pow(2,10*(n-1))+s:r/2*(2-Math.pow(2,-10*--n))+s},(g=h.Circ||(h.Circ={})).easeIn=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),-r*(Math.sqrt(1-(n/=i)*n)-1)+s},g.easeOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r*Math.sqrt(1-(n=n/i-1)*n)+s},g.easeInOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),(n/=i/2)<1?-r/2*(Math.sqrt(1-n*n)-1)+s:r/2*(Math.sqrt(1-(n-=2)*n)+1)+s},(m=h.Bounce||(h.Bounce={})).easeIn=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r-h.Bounce.easeOut(i-n,0,r,i)+s},m.easeOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),(n/=i)<.36363636363636365?r*(7.5625*n*n)+s:n<.7272727272727273?r*(7.5625*(n-=.5454545454545454)*n+.75)+s:n<.9090909090909091?r*(7.5625*(n-=.8181818181818182)*n+.9375)+s:r*(7.5625*(n-=.9545454545454546)*n+.984375)+s},m.easeInOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),n<i/2?.5*h.Bounce.easeIn(2*n,0,r,i)+s:.5*h.Bounce.easeOut(2*n-i,0,r,i)+.5*r+s}},643:function(B,A,h){var m=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,n,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(i){n={error:i}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(n)throw n.error}}return r},g=this&&this.__spreadArray||function(u,f,c){if(c||arguments.length===2)for(var a,n=0,s=f.length;n<s;n++)!a&&n in f||(a||(a=Array.prototype.slice.call(f,0,n)),a[n]=f[n]);return u.concat(a||Array.prototype.slice.call(f))};Object.defineProperty(A,"__esModule",{value:!0}),A.cancelableFetchDeprecated=void 0;var w=h(5726);function p(u,f){for(var c=[],a=2;a<arguments.length;a++)c[a-2]=arguments[a];var n=new AbortController,s=n.signal,r=m(c,2),i=r[0],l=r[1];if(l!=null&&l.signal)throw console.error("init?.signal"),new Error("init?.signal");(l=l||{}).signal=s;var d=!1;(0,w._executeSetCancelFuncOrCancelResult)(u,function(){d=!0,n.abort()});var C=fetch(i,l);return f&&(C=C.then(function(_){if(!_.ok)return _;if(!_.body)throw Error("ReadableStream not yet supported in this browser.");var b=_.headers.get("content-length"),E=b?parseInt(b,10):0,F=0;return new Response(new ReadableStream({start:function(Q){if(!_.body)throw new Error("!response.body");var U=_.body.getReader();(function T(){U.read().then(function(S){var P=S.done,I=S.value;if(P)Q.close();else{if(!I)throw new Error("!value");if(!f)throw new Error("!progressFunc");F+=I.byteLength,f(F,E),Q.enqueue(I),T()}}).catch(function(S){Q.error(S)})})()}}),{status:_.status,statusText:_.statusText,headers:_.headers})}).catch(function(_){throw d?(_ instanceof Error&&_.code!==20&&console.error("error.code !== 20"),console.log("fetching cancelled!"),new w.CancelError("fetching cancelled!")):(_ instanceof Error&&_.code===20&&console.error("error.code === 20"),_)})),C}A.cancelableFetchDeprecated=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];if(u.length>=1){if(typeof u[0]=="function"||u[0]===void 0){var c={},a=p.apply(void 0,g([c],m(u),!1)),n=c.cancelFunc;if(!n)throw new Error("!cancelResult.cancelFunc");return[n,a]}return p.apply(void 0,g([],m(u),!1))}throw new Error("cancelableFetch args error!")}},709:(B,A,h)=>{h.r(A),h.d(A,{Observable:()=>W});const m="insert",g="update",w="delete",p="reverse",u="shuffle",f=Symbol("observable-meta-key"),c={async:1},a={path:1,pathsOf:1,pathsFrom:1},n={[f]:{value:null},observe:{value:function(L,O){if(typeof L!="function")throw new Error(`observer MUST be a function, got '${L}'`);const H=this[f].observers;if(H.some(k=>k[0]===L))console.warn("observer may be bound to an observable only once; will NOT rebind");else{let k;k=O?function(G){const D={};if(G.path!==void 0){if(typeof G.path!="string"||G.path==="")throw new Error('"path" option, if/when provided, MUST be a non-empty string');D.path=G.path}if(G.pathsOf!==void 0){if(G.path)throw new Error('"pathsOf" option MAY NOT be specified together with "path" option');if(typeof G.pathsOf!="string")throw new Error('"pathsOf" option, if/when provided, MUST be a string (MAY be empty)');D.pathsOf=G.pathsOf.split(".").filter(N=>N)}if(G.pathsFrom!==void 0){if(G.path||G.pathsOf)throw new Error('"pathsFrom" option MAY NOT be specified together with "path"/"pathsOf" option/s');if(typeof G.pathsFrom!="string"||G.pathsFrom==="")throw new Error('"pathsFrom" option, if/when provided, MUST be a non-empty string');D.pathsFrom=G.pathsFrom}const R=Object.keys(G).filter(N=>!a.hasOwnProperty(N));if(R.length)throw new Error(`'${R.join(", ")}' is/are not a valid observer option/s`);return D}(O):{},H.push([L,k])}}},unobserve:{value:function(){const L=this[f].observers;let O=L.length;if(O){let H=arguments.length;if(H)for(;H--;){let k=O;for(;k--;)L[k][0]===arguments[H]&&(L.splice(k,1),O--)}else L.splice(0)}}}},s=function(L,O){n[f].value=O;const H=Object.defineProperties({},n);for(const k of Object.keys(L))H[k]=b(L[k],k,O);return H},r=function(L,O){let H=0,k=L.length;n[f].value=O;const G=Object.defineProperties(new Array(k),n);for(;H<k;H++)G[H]=b(L[H],H,O);return G},i=function(L,O){return n[f].value=O,Object.defineProperties(L,n),L},l=function(L,O){let H=O;if(L.path){const k=L.path;H=O.filter(G=>G.path.join(".")===k)}else if(L.pathsOf){const k=L.pathsOf;H=O.filter(G=>G.path.length===k.length+1||G.path.length===k.length&&(G.type===p||G.type===u))}else if(L.pathsFrom){const k=L.pathsFrom;H=O.filter(G=>G.path.join(".").startsWith(k))}return H},d=function(L,O){try{L(O)}catch(H){console.error(`failed to notify listener ${L} with ${O}`,H)}},C=function(){const L=this.batches;this.batches=null;for(const[O,H]of L)d(O,H)},_=function(L,O){let H,k,G,D,R,N,X,Y=L;const Z=O.length;do{for(H=Y.observers,R=H.length;R--;)if([k,G]=H[R],D=l(G,O),D.length)if(Y.options.async){Y.batches||(Y.batches=[],queueMicrotask(C.bind(Y)));let ae=Y.batches.find(me=>me[0]===k);ae||(ae=[k,[]],Y.batches.push(ae)),Array.prototype.push.apply(ae[1],D)}else d(k,D);let ie;if(Y.parent){ie=new Array(Z);for(let ae=0;ae<Z;ae++)X=O[ae],N=[Y.ownKey,...X.path],ie[ae]={type:X.type,path:N,value:X.value,oldValue:X.oldValue,object:X.object};O=ie,Y=Y.parent}else Y=null}while(Y)},b=function(L,O,H){return L&&typeof L=="object"?Array.isArray(L)?new M({target:L,ownKey:O,parent:H}).proxy:ArrayBuffer.isView(L)?new K({target:L,ownKey:O,parent:H}).proxy:L instanceof Date||L instanceof Blob||L instanceof Error?L:new I({target:L,ownKey:O,parent:H}).proxy:L},E=function(){const L=this[f],O=L.target;let H,k,G;for(O.reverse(),H=0,k=O.length;H<k;H++)if(G=O[H],G&&typeof G=="object"){const D=G[f];D&&(D.ownKey=H)}return _(L,[{type:p,path:[],object:this}]),this},F=function(L){const O=this[f],H=O.target;let k,G,D;for(H.sort(L),k=0,G=H.length;k<G;k++)if(D=H[k],D&&typeof D=="object"){const R=D[f];R&&(R.ownKey=k)}return _(O,[{type:u,path:[],object:this}]),this},Q=function(L,O,H){const k=this[f],G=k.target,D=[],R=G.length,N=G.slice(0);if(O=O===void 0?0:O<0?Math.max(R+O,0):Math.min(O,R),H=H===void 0?R:H<0?Math.max(R+H,0):Math.min(H,R),O<R&&H>O){let X;G.fill(L,O,H);for(let Y,Z,ie=O;ie<H;ie++)Y=G[ie],G[ie]=b(Y,ie,k),N.hasOwnProperty(ie)?(Z=N[ie],Z&&typeof Z=="object"&&(X=Z[f],X&&(Z=X.detach())),D.push({type:g,path:[ie],value:G[ie],oldValue:Z,object:this})):D.push({type:m,path:[ie],value:G[ie],object:this});_(k,D)}return this},U=function(L,O,H){const k=this[f],G=k.target,D=G.length;L=L<0?Math.max(D+L,0):L,O=O===void 0?0:O<0?Math.max(D+O,0):Math.min(O,D),H=H===void 0?D:H<0?Math.max(D+H,0):Math.min(H,D);const R=Math.min(H-O,D-L);if(L<D&&L!==O&&R>0){const N=G.slice(0),X=[];G.copyWithin(L,O,H);for(let Y,Z,ie,ae=L;ae<L+R;ae++)Y=G[ae],Y&&typeof Y=="object"&&(Y=b(Y,ae,k),G[ae]=Y),Z=N[ae],Z&&typeof Z=="object"&&(ie=Z[f],ie&&(Z=ie.detach())),typeof Y!="object"&&Y===Z||X.push({type:g,path:[ae],value:Y,oldValue:Z,object:this});_(k,X)}return this},T={pop:function(){const L=this[f],O=L.target,H=O.length-1;let k=O.pop();if(k&&typeof k=="object"){const G=k[f];G&&(k=G.detach())}return _(L,[{type:w,path:[H],oldValue:k,object:this}]),k},push:function(){const L=this[f],O=L.target,H=arguments.length,k=new Array(H),G=O.length;for(let N=0;N<H;N++)k[N]=b(arguments[N],G+N,L);const D=Reflect.apply(O.push,O,k),R=[];for(let N=G,X=O.length;N<X;N++)R[N-G]={type:m,path:[N],value:O[N],object:this};return _(L,R),D},shift:function(){const L=this[f],O=L.target;let H,k,G,D,R;for(H=O.shift(),H&&typeof H=="object"&&(R=H[f],R&&(H=R.detach())),k=0,G=O.length;k<G;k++)D=O[k],D&&typeof D=="object"&&(R=D[f],R&&(R.ownKey=k));return _(L,[{type:w,path:[0],oldValue:H,object:this}]),H},unshift:function(){const L=this[f],O=L.target,H=arguments.length,k=new Array(H);for(let N=0;N<H;N++)k[N]=b(arguments[N],N,L);const G=Reflect.apply(O.unshift,O,k);for(let N,X=0,Y=O.length;X<Y;X++)if(N=O[X],N&&typeof N=="object"){const Z=N[f];Z&&(Z.ownKey=X)}const D=k.length,R=new Array(D);for(let N=0;N<D;N++)R[N]={type:m,path:[N],value:O[N],object:this};return _(L,R),G},reverse:E,sort:F,fill:Q,copyWithin:U,splice:function(){const L=this[f],O=L.target,H=arguments.length,k=new Array(H),G=O.length;for(let se=0;se<H;se++)k[se]=b(arguments[se],se,L);const D=H===0?0:k[0]<0?G+k[0]:k[0],R=H<2?G-D:k[1],N=Math.max(H-2,0),X=Reflect.apply(O.splice,O,k),Y=O.length;let Z,ie,ae,me;for(let se,ye=0;ye<Y;ye++)se=O[ye],se&&typeof se=="object"&&(Z=se[f],Z&&(Z.ownKey=ye));for(ie=0,ae=X.length;ie<ae;ie++)me=X[ie],me&&typeof me=="object"&&(Z=me[f],Z&&(X[ie]=Z.detach()));const we=[];let re;for(re=0;re<R;re++)re<N?we.push({type:g,path:[D+re],value:O[D+re],oldValue:X[re],object:this}):we.push({type:w,path:[D+re],oldValue:X[re],object:this});for(;re<N;re++)we.push({type:m,path:[D+re],value:O[D+re],object:this});return _(L,we),X}},S={reverse:E,sort:F,fill:Q,copyWithin:U,set:function(L,O){const H=this[f],k=H.target,G=L.length,D=k.slice(0);O=O||0,k.set(L,O);const R=new Array(G);for(let N=O;N<G+O;N++)R[N-O]={type:g,path:[N],value:k[N],oldValue:D[N],object:this};_(H,R)}};class P{constructor(O,H){const{target:k,parent:G,ownKey:D}=O;G&&D!==void 0?(this.parent=G,this.ownKey=D):(this.parent=null,this.ownKey=null);const R=H(k,this);this.observers=[],this.revocable=Proxy.revocable(R,this),this.proxy=this.revocable.proxy,this.target=R,this.options=this.processOptions(O.options)}processOptions(O){if(O){if(typeof O!="object")throw new Error(`Observable options if/when provided, MAY only be an object, got '${O}'`);const H=Object.keys(O).filter(k=>!c.hasOwnProperty(k));if(H.length)throw new Error(`'${H.join(", ")}' is/are not a valid Observable option/s`);return Object.assign({},O)}return{}}detach(){return this.parent=null,this.target}set(O,H,k){let G=O[H];if(k!==G){const D=b(k,H,this);if(O[H]=D,G&&typeof G=="object"){const N=G[f];N&&(G=N.detach())}const R=G===void 0?[{type:m,path:[H],value:D,object:this.proxy}]:[{type:g,path:[H],value:D,oldValue:G,object:this.proxy}];_(this,R)}return!0}deleteProperty(O,H){let k=O[H];if(delete O[H],k&&typeof k=="object"){const D=k[f];D&&(k=D.detach())}const G=[{type:w,path:[H],oldValue:k,object:this.proxy}];return _(this,G),!0}}class I extends P{constructor(O){super(O,s)}}class M extends P{constructor(O){super(O,r)}get(O,H){return T.hasOwnProperty(H)?T[H]:O[H]}}class K extends P{constructor(O){super(O,i)}get(O,H){return S.hasOwnProperty(H)?S[H]:O[H]}}class W{constructor(){throw new Error('Observable MAY NOT be created via constructor, see "Observable.from" API')}static from(O,H){if(O&&typeof O=="object"){if(O[f])return O;if(Array.isArray(O))return new M({target:O,ownKey:null,parent:null,options:H}).proxy;if(ArrayBuffer.isView(O))return new K({target:O,ownKey:null,parent:null,options:H}).proxy;if(O instanceof Date||O instanceof Blob||O instanceof Error)throw new Error(`${O} found to be one of a on-observable types`);return new I({target:O,ownKey:null,parent:null,options:H}).proxy}throw new Error("observable MAY ONLY be created from a non-null object")}static isObservable(O){return!(!O||!O[f])}}Object.freeze(W)},723:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A._inverseTransformation=void 0;var m=h(2731);A._inverseTransformation=function(g,w){var p=g[0],u=g[1],f=g[2],c=g[4],a=g[5],n=g[6],s=g[8],r=g[9],i=g[10],l=g[12],d=g[13],C=g[14],_=-p*l-u*d-f*C,b=-c*l-a*d-n*C,E=-s*l-r*d-i*C;return(w=w||(0,m.createNumbers)(16))[0]=p,w[1]=c,w[2]=s,w[3]=0,w[4]=u,w[5]=a,w[6]=r,w[7]=0,w[8]=f,w[9]=n,w[10]=i,w[11]=0,w[12]=_,w[13]=b,w[14]=E,w[15]=1,w}},733:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.readBits=A.readArray=A.readUnsigned=A.readString=A.peekBytes=A.readBytes=A.peekByte=A.readByte=A.buildStream=void 0,A.buildStream=function(m){return{data:m,pos:0}},A.readByte=function(){return function(m){return m.data[m.pos++]}},A.peekByte=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(g){return g.data[g.pos+m]}};var h=function(m){return function(g){return g.data.subarray(g.pos,g.pos+=m)}};A.readBytes=h,A.peekBytes=function(m){return function(g){return g.data.subarray(g.pos,g.pos+m)}},A.readString=function(m){return function(g){return Array.from(h(m)(g)).map(function(w){return String.fromCharCode(w)}).join("")}},A.readUnsigned=function(m){return function(g){var w=h(2)(g);return m?(w[1]<<8)+w[0]:(w[0]<<8)+w[1]}},A.readArray=function(m,g){return function(w,p,u){for(var f=typeof g=="function"?g(w,p,u):g,c=h(m),a=new Array(f),n=0;n<f;n++)a[n]=c(w);return a}},A.readBits=function(m){return function(g){for(var w=function(f){return f.data[f.pos++]}(g),p=new Array(8),u=0;u<8;u++)p[7-u]=!!(w&1<<u);return Object.keys(m).reduce(function(f,c){var a=m[c];return a.length?f[c]=function(n,s,r){for(var i=0,l=0;l<r;l++)i+=n[s+l]&&Math.pow(2,r-l-1);return i}(p,a.index,a.length):f[c]=p[a.index],f},{})}}},773:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.defaultStartUpdateFunc=A.requestAnimationFrameTimeStampTest=void 0,A.requestAnimationFrameTimeStampTest=function(){return new Promise(function(h,m){var g=performance.now();requestAnimationFrame(function(w){return h(w>g)})})},A.defaultStartUpdateFunc=function(h){var m,g;return g=function(w){w=performance.now(),m=requestAnimationFrame(g),h(w)},m=requestAnimationFrame(g),function(){cancelAnimationFrame(m)}}},921:function(B,A,h){var m=this&&this.__read||function(f,c){var a=typeof Symbol=="function"&&f[Symbol.iterator];if(!a)return f;var n,s,r=a.call(f),i=[];try{for(;(c===void 0||c-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(l){s={error:l}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}}return i},g=this&&this.__spreadArray||function(f,c,a){if(a||arguments.length===2)for(var n,s=0,r=c.length;s<r;s++)!n&&s in c||(n||(n=Array.prototype.slice.call(c,0,s)),n[s]=c[s]);return f.concat(n||Array.prototype.slice.call(c))};Object.defineProperty(A,"__esModule",{value:!0}),A.createProcessingFromAsyncFuncWithStartValues=A.createProcessingFromAsyncFunc=A.asyncFuncToCancelablePromise=A.cancelFuncToCancelablePromise=A.createProcessingFromPromiseCreateFuncWithStartValues=A.createProcessingFromPromiseCreateFunc=void 0;var w=h(1101),p=h(1148),u=h(9651);A.createProcessingFromPromiseCreateFunc=function(f){return c=function(){for(var a=[],n=0;n<arguments.length;n++)a[n]=arguments[n];var s=f.apply(void 0,g([],m(a),!1));return(0,u.isPromiseCancelable)(s)?s:(0,u.createCancelablePromise)(s)},new p.Processing((0,p.createStartFuncFromAsyncFunc)(function(a){for(var n=[],s=1;s<arguments.length;s++)n[s-1]=arguments[s];return a.promise(c.apply(void 0,g([],m(n),!1)))}));var c},A.createProcessingFromPromiseCreateFuncWithStartValues=function(f){for(var c=[],a=1;a<arguments.length;a++)c[a-1]=arguments[a];return function(n){for(var s=[],r=1;r<arguments.length;r++)s[r-1]=arguments[r];return new p.Processing((0,p.createStartFuncFromAsyncFunc)(function(i){return i.promise(n.apply(void 0,g([],m(s),!1)))}))}(function(){var n=f.apply(void 0,g([],m(c),!1));return(0,u.isPromiseCancelable)(n)?n:(0,u.createCancelablePromise)(n)})},A.cancelFuncToCancelablePromise=function(f){var c,a=new Promise(function(n,s){c=function(){f(),s()}});return(0,u.setPromiseCancel)(a,c),a},A.asyncFuncToCancelablePromise=function(f){for(var c=[],a=1;a<arguments.length;a++)c[a-1]=arguments[a];var n=new w.CancelsManager,s=f.apply(void 0,g([n],m(c),!1)).finally(function(){return n.destroy()});return(0,u.setPromiseCancel)(s,n.cancel.bind(n)),s},A.createProcessingFromAsyncFunc=function(f){return new p.Processing((0,p.createStartFuncFromAsyncFunc)(f))},A.createProcessingFromAsyncFuncWithStartValues=function(f){for(var c=[],a=1;a<arguments.length;a++)c[a-1]=arguments[a];return new p.Processing((0,p.createStartFuncFromAsyncFunc)(function(n){return f.apply(void 0,g([n],m(c),!1))}))}},985:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(8466),A),g(h(3983),A),g(h(6424),A)},1023:function(B,A,h){var m,g=this&&this.__extends||(m=function(r,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var C in d)Object.prototype.hasOwnProperty.call(d,C)&&(l[C]=d[C])},m(r,i)},function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function l(){this.constructor=r}m(r,i),r.prototype=i===null?Object.create(i):(l.prototype=i.prototype,new l)}),w=this&&this.__read||function(r,i){var l=typeof Symbol=="function"&&r[Symbol.iterator];if(!l)return r;var d,C,_=l.call(r),b=[];try{for(;(i===void 0||i-- >0)&&!(d=_.next()).done;)b.push(d.value)}catch(E){C={error:E}}finally{try{d&&!d.done&&(l=_.return)&&l.call(_)}finally{if(C)throw C.error}}return b};Object.defineProperty(A,"__esModule",{value:!0}),A.PickColorMananger=A.uint8sToUint32=A.uint32ToUint8s=void 0;var p=h(7372),u=new ArrayBuffer(4),f=new Uint32Array(u),c=new Uint8Array(u);function a(r){if(r>=16777215)throw new Error("uint32 > 0xFFFFFF");return f[0]=r,[c[0],c[1],c[2]]}function n(r,i,l){return c[0]=r,c[1]=i,c[2]=l,c[3]=0,f[0]}A.uint32ToUint8s=a,A.uint8sToUint32=n;var s=function(r){function i(){var l=r!==null&&r.apply(this,arguments)||this;return l._pickColors=new Array(16777215),l._pickColorIndex=0,l}return g(i,r),i.prototype.reset=function(){for(var l=0;l<this._pickColorIndex;++l){var d=this._pickColors[l];if(!d)throw console.error("this._pickColors[i] should not be undefined!"),new Error("this._pickColors[i] should not be undefined!");d.poi=null,d.tag=""}this._pickColorIndex=0},i.prototype.createPickColor=function(l,d){var C=this._pickColorIndex;++this._pickColorIndex;var _=this._pickColors[C];_?(_.poi=l,_.tag=d):this._pickColors[C]={poi:l,tag:d};var b=w(a(C),3);return[b[0],b[1],b[2]]},i.prototype.getPickInfoFromColor=function(l,d,C){var _=n(l,d,C);if(_>=this._pickColorIndex)console.error("index >= this._pickColorIndex");else{var b=this._pickColors[_];if(b)return b;console.error("!this._pickColors[index]")}},i.prototype.destroyImp=function(){this.reset()},i}(p.Destroyable);A.PickColorMananger=s},1047:function(B,A,h){var m=this&&this.__values||function(u){var f=typeof Symbol=="function"&&Symbol.iterator,c=f&&u[f],a=0;if(c)return c.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&a>=u.length&&(u=void 0),{value:u&&u[a++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")},g=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,n,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(i){n={error:i}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(n)throw n.error}}return r};Object.defineProperty(A,"__esModule",{value:!0}),A.createProps=void 0;var w=h(9359),p=h(3915);A.createProps=function(u){var f,c,a=new w.Destroyable,n=function(l,d){var C,_=a.disposeVar(d instanceof p.ReactiveVariable?d:(0,p.react)(d));Object.defineProperties(a,((C={})[l]={get:function(){return _.value},set:function(b){_.value=b}},C["".concat(l,"Changed")]={get:function(){return _.changed}},C))};try{for(var s=m(Object.entries(u)),r=s.next();!r.done;r=s.next()){var i=g(r.value,2);n(i[0],i[1])}}catch(l){f={error:l}}finally{try{r&&!r.done&&(c=s.return)&&c.call(s)}finally{if(f)throw f.error}}return a}},1085:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.ObjPool=void 0;var h=function(){function m(g,w,p){p===void 0&&(p=!1),this._createDefaultFunc=g,this._destroyFunc=w,this._freeElements=[],this._usedElementsCount=0,this._nextCreateID=1,this._scratchObjs=[],p&&(this._usedElements=[])}return Object.defineProperty(m.prototype,"usedElementsCount",{get:function(){return this._usedElementsCount},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"freeElementsCount",{get:function(){return this._freeElements.length},enumerable:!1,configurable:!0}),m.prototype._getCreateID=function(){return this._nextCreateID++},m.prototype._create=function(){var g;return(g=this._freeElements.length>0?this._freeElements.pop():this._createDefaultFunc&&this._createDefaultFunc()||{})._cid=this._getCreateID(),g},m.prototype.create=function(){return this._create()},m.prototype.multiCreate=function(g){this._scratchObjs.length=0;for(var w=0;w<g;++w)this._scratchObjs.push(this._create());return this._scratchObjs},m.prototype._destroy=function(g){this._destroyFunc&&this._destroyFunc(g),g._cid=void 0},m.prototype.destroy=function(){for(var g=[],w=0;w<arguments.length;w++)g[w]=arguments[w];for(var p=g.length,u=0;u<p;++u)this._destroy(g[u])},m}();A.ObjPool=h},1101:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__values||function(n){var s=typeof Symbol=="function"&&Symbol.iterator,r=s&&n[s],i=0;if(r)return r.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.CancelsManager=void 0;var p=h(7372),u=h(1662),f=h(4206),c=h(9651),a=function(n){function s(){var r=n.call(this)||this;return r._cancelled=!1,r._promiseSet=new Set,r}return g(s,n),Object.defineProperty(s.prototype,"disposer",{get:function(){return this._disposer=this._disposer||new p.Destroyable,this._disposer},enumerable:!1,configurable:!0}),s.prototype.destroyImp=function(){this.finally()},s.prototype.cancel=function(r){var i,l,d;if(!this._cancelled){this._cancelled=!0,(d=this._disposer)===null||d===void 0||d.destroy(),this._cancelError=r;try{for(var C=w(this._promiseSet),_=C.next();!_.done;_=C.next()){var b=_.value;(0,c.cancelPromise)(b)}}catch(E){i={error:E}}finally{try{_&&!_.done&&(l=C.return)&&l.call(C)}finally{if(i)throw i.error}}this._promiseSet.clear()}},Object.defineProperty(s.prototype,"cancelFuncsNum",{get:function(){return(0,u.reduce)(this._promiseSet,function(r){return r+1},0)},enumerable:!1,configurable:!0}),s.prototype.finally=function(){this._disposer&&!this._disposer.isDestroyed()&&this._disposer.destroy(),this._promiseSet.clear()},s.prototype.check=function(){var r;if(this._cancelled)throw(r=this._cancelError)!==null&&r!==void 0?r:new f.CancelError("cancel from CancelManager!")},s.prototype.promise=function(r){var i=this;return this._promiseSet.add(r),r.finally(function(){return i._promiseSet.delete(r),i.check()})},s.prototype.promiseAny=function(r){var i=this,l=[],d=r.map(function(C){return i._promiseSet.add(C),(0,c.isPromiseCancelable)(C)&&l.push((0,c.getPromiseCancel)(C)),C.finally(function(){return i._promiseSet.delete(C)})});return Promise.any(d).finally(function(){return l.forEach(function(C){return C(new f.CancelError("cancel from promiseAny!"))}),l.length=0})},s.prototype.promiseAll=function(r){var i=this,l=[],d=r.map(function(C){return i._promiseSet.add(C),(0,c.isPromiseCancelable)(C)&&l.push((0,c.getPromiseCancel)(C)),C.finally(function(){return i._promiseSet.delete(C)})});return Promise.all(d).finally(function(){return l.forEach(function(C){return C(new f.CancelError("cancel from promiseAll!"))}),l.length=0})},s.prototype.promiseRace=function(r){var i=this,l=[],d=r.map(function(C){return i._promiseSet.add(C),(0,c.isPromiseCancelable)(C)&&l.push((0,c.getPromiseCancel)(C)),C.finally(function(){return i._promiseSet.delete(C)})});return Promise.race(d).finally(function(){return l.forEach(function(C){return C(new f.CancelError("cancel from promiseRace!"))}),l.length=0})},s}(p.Destroyable);A.CancelsManager=a},1148:function(B,A,h){var m,g=this&&this.__extends||(m=function(r,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var C in d)Object.prototype.hasOwnProperty.call(d,C)&&(l[C]=d[C])},m(r,i)},function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function l(){this.constructor=r}m(r,i),r.prototype=i===null?Object.create(i):(l.prototype=i.prototype,new l)}),w=this&&this.__read||function(r,i){var l=typeof Symbol=="function"&&r[Symbol.iterator];if(!l)return r;var d,C,_=l.call(r),b=[];try{for(;(i===void 0||i-- >0)&&!(d=_.next()).done;)b.push(d.value)}catch(E){C={error:E}}finally{try{d&&!d.done&&(l=_.return)&&l.call(_)}finally{if(C)throw C.error}}return b},p=this&&this.__spreadArray||function(r,i,l){if(l||arguments.length===2)for(var d,C=0,_=i.length;C<_;C++)!d&&C in i||(d||(d=Array.prototype.slice.call(i,0,C)),d[C]=i[C]);return r.concat(d||Array.prototype.slice.call(i))};Object.defineProperty(A,"__esModule",{value:!0}),A.createStartFuncFromAsyncFunc=A.Processing=void 0;var u=h(7372),f=h(7372),c=h(4206),a=h(1101),n=h(9651),s=function(r){function i(l){var d=r.call(this)||this;return d._startFunc=l,d._status="Initial",d._runningId=-1,d.dispose(function(){return d.isRunning&&d.cancel()}),d}return g(i,r),Object.defineProperty(i.prototype,"errorEvent",{get:function(){return this._errorEvent||(this._errorEvent=new f.Event),this._errorEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"completeEvent",{get:function(){return this._completeEvent||(this._completeEvent=new f.Event),this._completeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"errorFunc",{get:function(){return this._errorFunc},set:function(l){this._errorFunc!==l&&(this._errorFunc=l)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"completeFunc",{get:function(){return this._completeFunc},set:function(l){this._completeFunc!==l&&(this._completeFunc=l)},enumerable:!1,configurable:!0}),i.prototype.start=function(){for(var l=this,d=[],C=0;C<arguments.length;C++)d[C]=arguments[C];if(this._status==="Initial"){var _=++this._runningId;this._status="Running",this._cancelFunc=this._startFunc.apply(this,p([{completeFunc:function(b){var E;_===l._runningId&&l._status==="Running"&&(l._status="Completed",l._completeFunc&&l._completeFunc(b),(E=l._completeEvent)===null||E===void 0||E.emit(b))},errorFunc:function(b){var E;_===l._runningId&&l._status==="Running"&&(l._status="Error",l._errorFunc&&l._errorFunc(b),(E=l._errorEvent)===null||E===void 0||E.emit(b))},runningingID:_}],w(d),!1))}},i.prototype.cancel=function(l){var d;if(l===void 0&&(l=new c.CancelError("")),this._status==="Running"){if(!this._cancelFunc)throw new Error("!this._cancelFunc");this._status="Error",this._errorFunc&&this._errorFunc(l),(d=this._errorEvent)===null||d===void 0||d.emit(l),this._cancelFunc(l),this._cancelFunc=void 0}},i.prototype.reset=function(){this._status==="Running"&&console.error("processing cannot reset while running. you can first cancel it!"),this._status!=="Completed"&&this._status!=="Error"||(this._status="Initial")},Object.defineProperty(i.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isInitial",{get:function(){return this._status==="Initial"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isRunning",{get:function(){return this._status==="Running"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isCompleted",{get:function(){return this._status==="Completed"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isError",{get:function(){return this._status==="Error"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"runningId",{get:function(){return this._runningId},enumerable:!1,configurable:!0}),i.prototype.restart=function(l){l===void 0&&(l=new c.CancelError(""));for(var d=[],C=1;C<arguments.length;C++)d[C-1]=arguments[C];this.isRunning&&this.cancel(l),this.reset(),this.start.apply(this,p([],w(d),!1))},i.prototype.restartIfNotRunning=function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];this.isRunning||(this.reset(),this.start.apply(this,p([],w(l),!1)))},i}(u.Destroyable);A.Processing=s,A.createStartFuncFromAsyncFunc=function(r){return function(i){for(var l=[],d=1;d<arguments.length;d++)l[d-1]=arguments[d];var C=new a.CancelsManager,_=i.completeFunc,b=i.errorFunc,E=r.apply(void 0,p([C],w(l),!1)).then(_).catch(b).finally(function(){return C.destroy()});return(0,n.setPromiseCancel)(E,C.cancel.bind(C)),function(F){return(0,n.cancelPromise)(E,F)}}}},1233:(B,A,h)=>{h.r(A),h.d(A,{LRUMap:()=>w});const m=Symbol("newer"),g=Symbol("older");function w(a,n){typeof a!="number"&&(n=a,a=0),this.size=0,this.limit=a,this.oldest=this.newest=void 0,this._keymap=new Map,n&&(this.assign(n),a<1&&(this.limit=this.size))}function p(a,n){this.key=a,this.value=n,this[m]=void 0,this[g]=void 0}function u(a){this.entry=a}function f(a){this.entry=a}function c(a){this.entry=a}w.prototype._markEntryAsUsed=function(a){a!==this.newest&&(a[m]&&(a===this.oldest&&(this.oldest=a[m]),a[m][g]=a[g]),a[g]&&(a[g][m]=a[m]),a[m]=void 0,a[g]=this.newest,this.newest&&(this.newest[m]=a),this.newest=a)},w.prototype.assign=function(a){let n,s=this.limit||Number.MAX_VALUE;this._keymap.clear();let r=a[Symbol.iterator]();for(let i=r.next();!i.done;i=r.next()){let l=new p(i.value[0],i.value[1]);if(this._keymap.set(l.key,l),n?(n[m]=l,l[g]=n):this.oldest=l,n=l,s--==0)throw new Error("overflow")}this.newest=n,this.size=this._keymap.size},w.prototype.get=function(a){var n=this._keymap.get(a);if(n)return this._markEntryAsUsed(n),n.value},w.prototype.set=function(a,n){var s=this._keymap.get(a);return s?(s.value=n,this._markEntryAsUsed(s),this):(this._keymap.set(a,s=new p(a,n)),this.newest?(this.newest[m]=s,s[g]=this.newest):this.oldest=s,this.newest=s,++this.size,this.size>this.limit&&this.shift(),this)},w.prototype.shift=function(){var a=this.oldest;if(a)return this.oldest[m]?(this.oldest=this.oldest[m],this.oldest[g]=void 0):(this.oldest=void 0,this.newest=void 0),a[m]=a[g]=void 0,this._keymap.delete(a.key),--this.size,[a.key,a.value]},w.prototype.find=function(a){let n=this._keymap.get(a);return n?n.value:void 0},w.prototype.has=function(a){return this._keymap.has(a)},w.prototype.delete=function(a){var n=this._keymap.get(a);if(n)return this._keymap.delete(n.key),n[m]&&n[g]?(n[g][m]=n[m],n[m][g]=n[g]):n[m]?(n[m][g]=void 0,this.oldest=n[m]):n[g]?(n[g][m]=void 0,this.newest=n[g]):this.oldest=this.newest=void 0,this.size--,n.value},w.prototype.clear=function(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()},u.prototype[Symbol.iterator]=function(){return this},u.prototype.next=function(){let a=this.entry;return a?(this.entry=a[m],{done:!1,value:[a.key,a.value]}):{done:!0,value:void 0}},f.prototype[Symbol.iterator]=function(){return this},f.prototype.next=function(){let a=this.entry;return a?(this.entry=a[m],{done:!1,value:a.key}):{done:!0,value:void 0}},c.prototype[Symbol.iterator]=function(){return this},c.prototype.next=function(){let a=this.entry;return a?(this.entry=a[m],{done:!1,value:a.value}):{done:!0,value:void 0}},w.prototype.keys=function(){return new f(this.oldest)},w.prototype.values=function(){return new c(this.oldest)},w.prototype.entries=function(){return this},w.prototype[Symbol.iterator]=function(){return new u(this.oldest)},w.prototype.forEach=function(a,n){typeof n!="object"&&(n=this);let s=this.oldest;for(;s;)a.call(n,s.value,s.key,this),s=s[m]},w.prototype.toJSON=function(){for(var a=new Array(this.size),n=0,s=this.oldest;s;)a[n++]={key:s.key,value:s.value},s=s[m];return a},w.prototype.toString=function(){for(var a="",n=this.oldest;n;)a+=String(n.key)+":"+n.value,(n=n[m])&&(a+=" < ");return a}},1291:function(B,A,h){var m,g=this&&this.__extends||(m=function(l,d){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,_){C.__proto__=_}||function(C,_){for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(C[b]=_[b])},m(l,d)},function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function C(){this.constructor=l}m(l,d),l.prototype=d===null?Object.create(d):(C.prototype=d.prototype,new C)}),w=this&&this.__awaiter||function(l,d,C,_){return new(C||(C=Promise))(function(b,E){function F(T){try{U(_.next(T))}catch(S){E(S)}}function Q(T){try{U(_.throw(T))}catch(S){E(S)}}function U(T){var S;T.done?b(T.value):(S=T.value,S instanceof C?S:new C(function(P){P(S)})).then(F,Q)}U((_=_.apply(l,d||[])).next())})},p=this&&this.__generator||function(l,d){var C,_,b,E,F={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return E={next:Q(0),throw:Q(1),return:Q(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function Q(U){return function(T){return function(S){if(C)throw new TypeError("Generator is already executing.");for(;E&&(E=0,S[0]&&(F=0)),F;)try{if(C=1,_&&(b=2&S[0]?_.return:S[0]?_.throw||((b=_.return)&&b.call(_),0):_.next)&&!(b=b.call(_,S[1])).done)return b;switch(_=0,b&&(S=[2&S[0],b.value]),S[0]){case 0:case 1:b=S;break;case 4:return F.label++,{value:S[1],done:!1};case 5:F.label++,_=S[1],S=[0];continue;case 7:S=F.ops.pop(),F.trys.pop();continue;default:if(!((b=(b=F.trys).length>0&&b[b.length-1])||S[0]!==6&&S[0]!==2)){F=0;continue}if(S[0]===3&&(!b||S[1]>b[0]&&S[1]<b[3])){F.label=S[1];break}if(S[0]===6&&F.label<b[1]){F.label=b[1],b=S;break}if(b&&F.label<b[2]){F.label=b[2],F.ops.push(S);break}b[2]&&F.ops.pop(),F.trys.pop();continue}S=d.call(l,F)}catch(P){S=[6,P],_=0}finally{C=b=0}if(5&S[0])throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}([U,T])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.FlvProcessing=A.FlvJsLoading=void 0;var u=h(1662),f=h(8106),c=h(2220),a=h(5819),n=function(l){function d(){var C=l.call(this)||this;return C._loading=!1,C._loadedEvent=C.disposeVar(new u.Event),C._loaded=!1,C._loadedPromise=new Promise(function(_){C._loadedPromiseResolve=_}),C._processing=C.disposeVar((0,a.createProcessingFromAsyncFunc)(function(_){return w(C,void 0,void 0,function(){var b;return p(this,function(E){switch(E.label){case 0:return this._loading=!0,window.flvjs?(console.info("可能系统已经加载flvjs,此处不再加载!"),[3,3]):[3,1];case 1:return b=c.SceneObject.context.getStrFromEnv(d.path),[4,_.promise((0,u.loadJs)(b))];case 2:E.sent(),E.label=3;case 3:return this._loading=!1,this._loaded=!0,this._loadedEvent.emit(),this._loadedPromiseResolve(),[2]}})})})),C._processingStart=C._processing.start(),C}return g(d,l),Object.defineProperty(d.prototype,"loading",{get:function(){return this._loading},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"loadedEvent",{get:function(){return this._loadedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"loaded",{get:function(){return this._loaded},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"loadedPromise",{get:function(){return this._loadedPromise},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),d.instance=function(){return d._instance=d._instance||new d,d._instance},d.path="${xr-utils-script-dir}/xr-static/xr-utils/flvjs/1.6.2/flv.min.js",d}(u.Destroyable);A.FlvJsLoading=n;var s=function(l){function d(C,_){var b=l.call(this)||this;b._complexImage=C,b._videoSrc=_;var E,F=document.createElement("video");return F.src=b._videoSrc,F.style.position="absolute",F.style.top="0px",F.style.left="0px",F.style.zIndex="-100",F.style.visibility="hidden",(E=function(){F.crossOrigin=b._complexImage.crossOrigin})(),b.dispose(b._complexImage.crossOriginChanged.disposableOn(E)),(E=function(){F.autoplay=b._complexImage.autoplay})(),b.dispose(b._complexImage.autoplayChanged.disposableOn(E)),(E=function(){F.loop=b._complexImage.loop})(),b.dispose(b._complexImage.loopChanged.disposableOn(E)),F.muted=!0,document.body.appendChild(F),b._element=F,b.dispose(function(){return document.body.removeChild(F)}),b}return g(d,l),Object.defineProperty(d.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),d}(u.Destroyable),r=function(l){function d(C,_){var b=l.call(this)||this;return b._complexImage=C,b._videoSrc=_,b._videoDom=b.disposeVar(new s(b._complexImage,"")),b._processing=b.disposeVar((0,a.createProcessingFromAsyncFunc)(function(E){return w(b,void 0,void 0,function(){var F,Q,U,T;return p(this,function(S){switch(S.label){case 0:return F=this.videoSrc,Q=n.instance(),[4,E.promise(Q.loadedPromise)];case 1:return S.sent(),U=window.flvjs,T=this.element,[4,(0,f.step)(E,function(){return new Promise(function(P,I){if(U.isSupported()){var M=U.createPlayer({type:"flv",url:F});M.attachMediaElement(T),M.load(),M.play(),T.xbsjFlvPlayer=M}else I("flvjs不支持!")})})];case 2:return S.sent(),[2]}})})})),b._processingStartup=b._processing.start(),b}return g(d,l),Object.defineProperty(d.prototype,"videoSrc",{get:function(){return this._videoSrc},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"element",{get:function(){return this.videoDom.element},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),d}(u.Destroyable),i=function(l){function d(C,_){var b=l.call(this)||this;return b._complexImage=C,b._imageUri=_,b._videoDom=b.disposeVar(new r(b._complexImage,b._imageUri)),b._update=b.disposeVar((0,f.createAnimateFrameWithStartValues)(function(){return b.update()})),b._updateStart=b._update.start(),b}return g(d,l),Object.defineProperty(d.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"videoElement",{get:function(){return this._videoDom.element},enumerable:!1,configurable:!0}),d.prototype.update=function(){if(!(this.videoElement.readyState<2)){var C=this._complexImage,_=this.videoElement,b=_.videoWidth,E=_.videoHeight;C.size=[b,E],C.pixelFormat="RGBA",C.copyTexture({source:this.videoElement})}},d}(u.Destroyable);A.FlvProcessing=i},1354:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.forEach=void 0;var m=h(8144);A.forEach=function(g,w){for(var p=(0,m.getIterator)(g),u=0;;){var f=p.next(),c=f.done,a=f.value;if(c)break;w(a,u++)}}},1378:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)});Object.defineProperty(A,"__esModule",{value:!0}),A.DivBoxPicker=A.BoxPicker=void 0;var w=h(7372),p=h(7372),u=h(507),f=h(7372),c=function(n){function s(){var r=n.call(this)||this;r._pickRectEvent=r.disposeVar(new p.Event),r._updateRectEvent=r.disposeVar(new p.Event),r._pointerActionEvent=r.disposeVar(new p.Event),r._active=r.disposeVar((0,f.react)(!1)),r._pickRect={left0:0,top0:0,left1:0,top1:0};var i=0,l=0,d=0,C=0;return r.dispose(r._pointerActionEvent.disposableOn(function(_){var b=_.type,E=_.left,F=_.top;b==="PointerDown"?(r._active.value=!0,i=E,l=F,d=E,C=F,r._setPickRect({left0:i,top0:l,left1:d,top1:C}),r._updateRectEvent.emit(r._pickRect)):b==="PointerMove"?r._active.value&&(d=E,C=F,r._setPickRect({left0:i,top0:l,left1:d,top1:C}),r._updateRectEvent.emit(r._pickRect)):b==="PointerUp"&&r._active.value&&(r._active.value=!1,d=E,C=F,r._setPickRect({left0:i,top0:l,left1:d,top1:C}),r._updateRectEvent.emit(r._pickRect),r._pickRectEvent.emit(r._pickRect))})),r}return g(s,n),s.prototype._setPickRect=function(r){var i=r.left0,l=r.left1,d=r.top0,C=r.top1;this._pickRect.left0=i,this._pickRect.left1=l,this._pickRect.top0=d,this._pickRect.top1=C},s.prototype.pointerDown=function(r,i){this._pointerActionEvent.emit({type:"PointerDown",left:r,top:i})},s.prototype.pointerMove=function(r,i){this._pointerActionEvent.emit({type:"PointerMove",left:r,top:i})},s.prototype.pointerUp=function(r,i){this._pointerActionEvent.emit({type:"PointerUp",left:r,top:i})},s.prototype.reset=function(){this._setPickRect({left0:0,top0:0,left1:0,top1:0}),this._updateRectEvent.emit(this._pickRect),this._pickRectEvent.emit(this._pickRect)},Object.defineProperty(s.prototype,"activeEvent",{get:function(){return this._active.changed},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"updateRectEvent",{get:function(){return this._updateRectEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"pickRectEvent",{get:function(){return this._pickRectEvent},enumerable:!1,configurable:!0}),s.getLeftTopAndSize=function(r,i){i=i||{left:0,top:0,width:0,height:0,forward:!0};var l=r.left0,d=r.top0,C=r.left1,_=r.top1;return i.width=Math.abs(l-C),i.height=Math.abs(d-_),i.left=Math.min(l,C),i.top=Math.min(d,_),i.forward=C>l,i},s.contains=function(r,i,l){var d=l.left,C=l.top,_=l.width,b=l.height;return r>d&&r<=d+_&&i>=C&&i<=C+b},s}(w.Destroyable);A.BoxPicker=c;var a=function(n){function s(r){var i=n.call(this)||this,l=i.disposeVar(new u.PointerClickDeprecated(r));i.dispose(l.downEvent.disposableOn(function(b,E,F){return F.altKey&&i.pointerDown(b,E)})),i.dispose(l.moveEvent.disposableOn(function(b,E){return i.pointerMove(b,E)})),i.dispose(l.upEvent.disposableOn(function(b,E){return i.pointerUp(b,E)}));var d=document.createElement("div");d.style.backgroundColor="rgba(0, 0, 0, 0)",d.style.border="2px dashed red",d.style.position="absolute",d.style.boxSizing="border-box",d.style.pointerEvents="none",d.style.height="0px",d.style.width="0px",d.style.left="0px",d.style.top="0px",d.style.display="none",r.appendChild(d),i.dispose(function(){return r.removeChild(d)}),i.dispose(i.activeEvent.disposableOn(function(b){d.style.display=b?"block":"none"}));var C=function(){i.reset()};r.addEventListener("contextmenu",C),i.dispose(function(){return r.removeEventListener("contextmenu",C)});var _={left:0,top:0,width:0,height:0,forward:!1};return i.dispose(i.updateRectEvent.disposableOn(function(b){if(c.getLeftTopAndSize(b,_)){var E=_.left,F=_.top,Q=_.width,U=_.height;d.style.height="".concat(0|U,"px"),d.style.width="".concat(0|Q,"px"),d.style.left="".concat(0|E,"px"),d.style.top="".concat(0|F,"px")}})),i}return g(s,n),s}(c);A.DivBoxPicker=a},1412:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(7963),A),g(h(1851),A),g(h(9409),A),g(h(3022),A),g(h(7014),A),g(h(3096),A),g(h(5925),A),g(h(5210),A),g(h(1291),A)},1545:function(B,A,h){var m,g=this&&this.__extends||(m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(c[n]=a[n])},m(u,f)},function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function c(){this.constructor=u}m(u,f),u.prototype=f===null?Object.create(f):(c.prototype=f.prototype,new c)});Object.defineProperty(A,"__esModule",{value:!0}),A.RefsManager=void 0;var w=h(1662),p=function(u){function f(c){var a=u.call(this)||this;a._sceneObjRefs=new Map,a._refs={},a._refsChagned=a.disposeVar(new w.Event);var n=function(s,r,i){if(i){var l=a.getLastSceneObject(i);if(_=a._sceneObjRefs.get(i)){var d=_.indexOf(s);d===-1?console.warn("this._sceneObjRefs中不存在当前对象(id: ".concat(s.id," type: ").concat(s.typeName,")!可能系统存在逻辑问题")):(_.splice(d,1),_.length===0&&a._sceneObjRefs.delete(i))}else console.warn("this._sceneObjRefs中不存在ref(".concat(i,"), 可能系统存在逻辑问题"));var C=a.getLastSceneObject(i);a._refs[i]=C,a._refsChagned.emit(C,l)}var _;r&&(l=a.getLastSceneObject(r),(_=a._sceneObjRefs.get(r))?(_.push(s),_.length>0&&console.warn("同时存在多个ref".concat(r,`相同的场景对象!
|
|
2
|
-
`).
|
|
3
|
-
`)}).join(" ")))):a._sceneObjRefs.set(r,[s]),C=a.getLastSceneObject(r),a._refs[r]=C,a._refsChagned.emit(C,l))};return a.dispose(c.sceneObjCreatedEvent.disposableOn(function(s){var r=function(i,l){return n(s,i,l)};s.ref&&r(s.ref,void 0),s.refChanged.disposableOn(r)})),a.dispose(c.sceneObjToDestroyEvent.disposableOn(function(s){s.ref&&n(s,void 0,s.ref)})),a}return g(f,u),Object.defineProperty(f.prototype,"sceneObjRefs",{get:function(){return this._sceneObjRefs},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"refs",{get:function(){return this._refs},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"refsChanged",{get:function(){return this._refsChagned},enumerable:!1,configurable:!0}),f.prototype.getLastSceneObject=function(c){var a=this.getSceneObjects(c);if(a)return a[a.length-1]},f.prototype.getSceneObjects=function(c){var a=this._sceneObjRefs.get(c);if(a&&a.length!==0)return a},f}(w.Destroyable);A.RefsManager=p},1662:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(9359),A),g(h(5600),A),g(h(6555),A),g(h(7941),A),g(h(1085),A),g(h(709),A),g(h(2520),A),g(h(3915),A),g(h(9910),A),g(h(5745),A),g(h(773),A),g(h(7132),A),g(h(8835),A),g(h(7793),A),g(h(1047),A),g(h(4775),A),g(h(2967),A),g(h(5785),A),g(h(5505),A),g(h(5986),A),g(h(9631),A),g(h(6469),A),g(h(5236),A),g(h(6301),A),g(h(2267),A),g(h(5015),A),g(h(3457),A),g(h(2968),A),g(h(8144),A),g(h(3735),A),g(h(6655),A),g(h(2168),A),g(h(7418),A),g(h(1662),A),g(h(7427),A),g(h(1354),A),g(h(4969),A),g(h(3280),A),g(h(9131),A),g(h(1233),A),g(h(433),A),g(h(7008),A),g(h(6362),A),g(h(3009),A),g(h(9970),A),g(h(3804),A),g(h(345),A),g(h(6583),A),g(h(4899),A),g(h(2882),A),g(h(3249),A),g(h(1803),A),g(h(9528),A),g(h(6138),A),g(h(9038),A),g(h(476),A),g(h(8992),A),g(h(6558),A),g(h(6432),A),g(h(2999),A),h(3428)},1801:function(B,A,h){var m=this&&this.__read||function(c,a){var n=typeof Symbol=="function"&&c[Symbol.iterator];if(!n)return c;var s,r,i=n.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=i.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return l},g=this&&this.__spreadArray||function(c,a,n){if(n||arguments.length===2)for(var s,r=0,i=a.length;r<i;r++)!s&&r in a||(s||(s=Array.prototype.slice.call(a,0,r)),s[r]=a[r]);return c.concat(s||Array.prototype.slice.call(a))};Object.defineProperty(A,"__esModule",{value:!0}),A.createSleepingWithStartValues=A.createSleeping=A.sleep=void 0;var w=h(5726),p=h(921),u=h(9651);function f(c){for(var a,n=[],s=1;s<arguments.length;s++)n[s-1]=arguments[s];var r=void 0,i=new Promise(function(l,d){r=d,a=globalThis.setTimeout(function(){a=void 0,l(n)},c)});return(0,u.setPromiseCancel)(i,function(l){a&&(clearTimeout(a),a=void 0),r&&r(l??new w.CancelError("sleep cancel error!"))}),i}A.sleep=f,A.createSleeping=function(){return(0,p.createProcessingFromPromiseCreateFunc)(f)},A.createSleepingWithStartValues=function(c){for(var a=[],n=1;n<arguments.length;n++)a[n-1]=arguments[n];return p.createProcessingFromPromiseCreateFuncWithStartValues.apply(void 0,g([f,c],m(a),!1))}},1803:function(B,A){var h=this&&this.__values||function(m){var g=typeof Symbol=="function"&&Symbol.iterator,w=g&&m[g],p=0;if(w)return w.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&p>=m.length&&(m=void 0),{value:m&&m[p++],done:!m}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.setValueFromProps=A.getValueFromProps=void 0,A.getValueFromProps=function(m,g){var w,p,u=m;try{for(var f=h(g),c=f.next();!c.done;c=f.next())u=u[c.value]}catch(a){w={error:a}}finally{try{c&&!c.done&&(p=f.return)&&p.call(f)}finally{if(w)throw w.error}}return u},A.setValueFromProps=function(m,g,w){if(g.length===0)throw new Error("props的数量必须大于0");for(var p=g.length-1,u=g[p],f=m,c=0;c<p;++c){var a=g[c];f[a]===void 0&&(f[a]={}),f=f[a]}f[u]=w}},1851:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.complexImageTypes=void 0,A.complexImageTypes=["img","gif","video","flv","hls"]},1895:function(B,A,h){var m=this&&this.__generator||function(c,a){var n,s,r,i,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function d(C){return function(_){return function(b){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,b[0]&&(l=0)),l;)try{if(n=1,s&&(r=2&b[0]?s.return:b[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,b[1])).done)return r;switch(s=0,r&&(b=[2&b[0],r.value]),b[0]){case 0:case 1:r=b;break;case 4:return l.label++,{value:b[1],done:!1};case 5:l.label++,s=b[1],b=[0];continue;case 7:b=l.ops.pop(),l.trys.pop();continue;default:if(!((r=(r=l.trys).length>0&&r[r.length-1])||b[0]!==6&&b[0]!==2)){l=0;continue}if(b[0]===3&&(!r||b[1]>r[0]&&b[1]<r[3])){l.label=b[1];break}if(b[0]===6&&l.label<r[1]){l.label=r[1],r=b;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(b);break}r[2]&&l.ops.pop(),l.trys.pop();continue}b=a.call(c,l)}catch(E){b=[6,E],s=0}finally{n=r=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([C,_])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.DoublyLinkedList=void 0;var g=new(h(1085)).ObjPool(function(){return{item:void 0,previous:void 0,next:void 0}},function(c){c.item=void 0,c.previous=void 0,c.next=void 0},!0);function w(c,a,n){var s=g.create();return s.item=c,s.previous=a,s.next=n,s}function p(c){if(!c)throw new Error("node is undefined!");g.destroy(c)}function u(c,a){a.previous&&a.next?(a.previous.next=a.next,a.next.previous=a.previous):a.previous?(a.previous.next=void 0,c.tail=a.previous):a.next?(a.next.previous=void 0,c.head=a.next):(c.head=void 0,c.tail=void 0),a.next=void 0,a.previous=void 0}var f=function(){function c(a){var n=(a||{needLength:!0}).needLength;this.head=void 0,this.tail=void 0,n&&(this._length=0)}return c.prototype._incrementLength=function(){typeof this._length=="number"&&++this._length},c.prototype._decrementLength=function(){typeof this._length=="number"&&--this._length},c.prototype._setLength=function(a){typeof this._length=="number"&&(this._length=a)},Object.defineProperty(c.prototype,"length",{get:function(){return this._length},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"empty",{get:function(){return!this.head},enumerable:!1,configurable:!0}),c.prototype[Symbol.iterator]=function(){var a;return m(this,function(n){switch(n.label){case 0:a=this.head,n.label=1;case 1:return a?[4,a]:[3,3];case 2:return n.sent(),a=a.next,[3,1];case 3:return[2]}})},c.prototype.remove=function(a){if(!a)throw new Error("node is undefined!");u(this,a),this._decrementLength(),p(a)},c.prototype.getNode=function(a){for(var n=this.head;n!==null;){if(!n)throw new Error("current is undefined!");if(n.item===a)return n;n=n.next}},c.prototype.moveAfter=function(a,n){if(a!==n){u(this,n);var s=a.next;a.next=n,this.tail===a?this.tail=n:s&&(s.previous=n),n.next=s,n.previous=a}},c.prototype.moveBefore=function(a,n){if(a!==n){u(this,n);var s=a.previous;a.previous=n,this.head===a?this.head=n:s&&(s.next=n),n.previous=s,n.next=a}},c.prototype.insertBefore=function(a,n){var s=w(n,a.previous,a);return a.previous&&(a.previous.next=s),a.previous=s,this.head===a&&(this.head=s),this._incrementLength(),s},c.prototype.insertAfter=function(a,n){var s=w(n,a,a.next);return a.next&&(a.next.previous=s),a.next=s,this.tail===a&&(this.tail=s),this._incrementLength(),s},c.prototype._setFirstNode=function(a){if(this.head||this.tail)throw new Error("_setFirstNode error!");var n=w(a,void 0,void 0);if(this.head=n,this.tail=n,this._incrementLength(),this._length!==1)throw new Error("_setFirstNode error! this._length !== 1");return n},c.prototype.push=function(a){return this.tail?this.insertAfter(this.tail,a):this._setFirstNode(a)},c.prototype.pop=function(){if(!this.tail)throw new Error("DoublyLinkedList is empty!");var a=this.tail.item;return this.remove(this.tail),a},c.prototype.shift=function(){if(!this.head)throw new Error("DoublyLinkedList is empty!");var a=this.head.item;return this.remove(this.head),a},c.prototype.unshift=function(a){return this.head?this.insertBefore(this.head,a):this._setFirstNode(a)},c.prototype.removeAll=function(){for(var a=this.head;a;){var n=a.next;p(a),a=n}this.head=void 0,this.tail=void 0,this._setLength(0)},c}();A.DoublyLinkedList=f},1943:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C},p=this&&this.__spreadArray||function(n,s,r){if(r||arguments.length===2)for(var i,l=0,d=s.length;l<d;l++)!i&&l in s||(i||(i=Array.prototype.slice.call(s,0,l)),i[l]=s[l]);return n.concat(i||Array.prototype.slice.call(s))};Object.defineProperty(A,"__esModule",{value:!0}),A.ThrottlingWithStartValues=A.Throttling=void 0;var u=h(1662),f=h(1148),c=function(n){function s(){var r=n.call(this,function(i,l,d){var C=i.errorFunc;try{var _=w((0,u.throttle)(l,d),2),b=_[0],E=_[1];return r._doFunc=b,E}catch(F){return C(F),function(){}}})||this;return r}return g(s,n),s.prototype.do=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._doFunc&&this._doFunc.apply(this,p([],w(r),!1))},s}(f.Processing);A.Throttling=c;var a=function(n){function s(r,i){var l=n.call(this,function(d){var C=d.errorFunc;try{var _=w((0,u.throttle)(r,i),2),b=_[0],E=_[1];return l._doFunc=b,E}catch(F){return C(F),function(){}}})||this;return l}return g(s,n),s.prototype.do=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._doFunc&&this._doFunc.apply(this,p([],w(r),!1))},s}(f.Processing);A.ThrottlingWithStartValues=a},1968:function(B,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function n(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(A,"__esModule",{value:!0}),A.PointerHover=void 0;var w=h(7372),p=h(7372),u=h(8106),f=function(c){function a(){var n=c.call(this)||this;n._hoverEvent=n.disposeVar(new p.Event),n._hoverOutEvent=n.disposeVar(new p.Event),n._pointerdownEvent=n.disposeVar(new p.Event),n._pointerupEvent=n.disposeVar(new p.Event),n._pointermoveEvent=n.disposeVar(new p.Event),n._pointeroutEvent=n.disposeVar(new p.Event),n.delayTime=800;var s,r=n.disposeVar((0,u.createTimeout)()),i=function(){s?n._hoverEvent.emit(s):console.warn("!lastPointerEvent")};return n.dispose(n._pointerdownEvent.disposableOn(function(l){n._hoverOutEvent.emit()})),n.dispose(n._pointerupEvent.disposableOn(function(l){n._hoverOutEvent.emit()})),n.dispose(n._pointermoveEvent.disposableOn(function(l){s=l,r.restart(void 0,i,n.delayTime),n._hoverOutEvent.emit()})),n.dispose(n._pointeroutEvent.disposableOn(function(l){r.cancel(),n._hoverOutEvent.emit()})),n}return g(a,c),Object.defineProperty(a.prototype,"hoverEvent",{get:function(){return this._hoverEvent},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"hoverOutEvent",{get:function(){return this._hoverOutEvent},enumerable:!1,configurable:!0}),a.prototype.pointerDown=function(n){this._pointerdownEvent.emit(n)},a.prototype.pointerUp=function(n){this._pointerupEvent.emit(n)},a.prototype.pointerMove=function(n){this._pointermoveEvent.emit(n)},a.prototype.pointerOut=function(n){this._pointeroutEvent.emit(n)},a}(w.Destroyable);A.PointerHover=f},2002:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.sleepDeprecated=void 0;var m=h(5726);A.sleepDeprecated=function(g,w){var p,u=void 0,f=new Promise(function(a,n){u=n,p=globalThis.setTimeout(function(){p=void 0,a()},g)}),c=function(a){p&&(clearTimeout(p),p=void 0),u&&u(a??new m.CancelError("sleep cancel error!"))};return typeof w=="boolean"&&w?[c,f]:w?((0,m._executeSetCancelFuncOrCancelResult)(w,c),f):void 0}},2051:function(B,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function n(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(A,"__esModule",{value:!0}),A.Transition=void 0;var w=h(7372),p=h(7372),u=h(2127),f=function(c){function a(n){var s=c.call(this)||this;return s._stop=s.disposeVar((0,p.react)(0)),s._current=s.disposeVar((0,p.react)(0)),s._start=s.disposeVar((0,p.react)(0)),s._player=s.disposeVar(new u.Player(200)),s.dispose(s._player.currentTimeChangedEvent.disposableOn(function(r){var i=r/s._player.duration;i=i>1?1:i<0?0:i;var l=s._start.value,d=s._stop.value;s._current.value=l+(d-l)*i})),s.duration=n,s}return g(a,c),Object.defineProperty(a.prototype,"current",{get:function(){return this._current.value},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"currentChanged",{get:function(){return this._current.changed},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"source",{get:function(){return this._start.value},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"sourceChanged",{get:function(){return this._start.changed},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"target",{get:function(){return this._stop.value},set:function(n){this._start.value=this._current.value,this._stop.value=n,this._player.currentTime=0,this._player.playing=!0},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"targetChanged",{get:function(){return this._stop.changed},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"duration",{get:function(){return this._player.duration},set:function(n){this._player.duration=n},enumerable:!1,configurable:!0}),a.prototype.reset=function(n){this._start.value=n,this._current.value=n,this._stop.value=n,this._player.playing=!1},a}(w.Destroyable);A.Transition=f},2075:(B,A,h)=>{h.r(A),h.d(A,{TaskProcessor:()=>r});var m=h(1662),g=h(2243);function w(l,d){return l??d}const p=Error,u=Error;function f(){if(!(0,g.defined)(r._canTransferArrayBuffer)){var l=new Worker(a("transferTypedArrayTest.js"));l.postMessage=w(l.webkitPostMessage,l.postMessage);var d=new Int8Array([99]);try{l.postMessage({array:d},[d.buffer])}catch{return r._canTransferArrayBuffer=!1,r._canTransferArrayBuffer}var C=g.when.defer();l.onmessage=function(_){var b=_.data.array,E=(0,g.defined)(b)&&b[0]===99;C.resolve(E),l.terminate(),r._canTransferArrayBuffer=E},r._canTransferArrayBuffer=C.promise}return r._canTransferArrayBuffer}function c(l,d){--l._activeTasks;var C=d.id;if((0,g.defined)(C)){var _=l._deferreds,b=_[C];if((0,g.defined)(d.error)){var E=d.error;E.name==="RuntimeError"?(E=new u(d.error.message)).stack=d.error.stack:E.name==="DeveloperError"&&((E=new p(d.error.message)).stack=d.error.stack),b.reject(E)}else b.resolve(d.result);delete _[C]}}function a(l){var d=function(E){return E=E.endsWith(".js")?E:E+".js",(0,m.getFinalUri)(E,r.workerBaseAbsoluteUri)}(l);if((0,m.isCrossOriginUrl)(d)){var C,_='importScripts("'+d+'");';try{C=new Blob([_],{type:"application/javascript"})}catch{var b=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);b.append(_),C=b.getBlob("application/javascript")}d=(window.URL||window.webkitURL).createObjectURL(C)}return d}var n;function s(l){var d=new Worker(((0,g.defined)(n)||(n=a("cesiumWorkerBootstrapper.js")),n));d.postMessage=w(d.webkitPostMessage,d.postMessage);const C=(0,m.isAbsoluteUri)(r.workerBaseAbsoluteUri)?r.workerBaseAbsoluteUri:"";var _={loaderConfig:{paths:{Workers:C},baseUrl:C},workerModule:l._workerName};return d.postMessage(_),d.onmessage=function(b){c(l,b.data)},d}function r(l,d){this._workerName=l,this._maximumActiveTasks=w(d,5),this._activeTasks=0,this._deferreds={},this._nextID=0}var i=[];r.prototype.scheduleTask=function(l,d){if((0,g.defined)(this._worker)||(this._worker=s(this)),!(this._activeTasks>=this._maximumActiveTasks)){++this._activeTasks;var C=this;return(0,g.when)(f(),function(_){(0,g.defined)(d)?_||(d.length=0):d=i;var b=C._nextID++,E=g.when.defer();return C._deferreds[b]=E,C._worker.postMessage({id:b,parameters:l,canTransferArrayBuffer:_},d),E.promise})}},r.prototype.initWebAssemblyModule=function(l){(0,g.defined)(this._worker)||(this._worker=s(this));var d=g.when.defer(),C=this,_=this._worker;return getWebAssemblyLoaderConfig(this,l).then(function(b){return(0,g.when)(f(),function(E){var F,Q=b.wasmBinary;(0,g.defined)(Q)&&E&&(F=[Q]),_.onmessage=function(U){_.onmessage=function(T){c(C,T.data)},d.resolve(U.data)},_.postMessage({webAssemblyConfig:b},F)})}),d},r.prototype.isDestroyed=function(){return!1},r.prototype.destroy=function(){return(0,g.defined)(this._worker)&&this._worker.terminate(),(0,m.destroyObject)(this)},r._defaultWorkerModulePrefix="Workers/",r._workerModulePrefix=r._defaultWorkerModulePrefix,r._canTransferArrayBuffer=void 0,r.workerBaseAbsoluteUri="xr-static/workers/core"},2082:(B,A)=>{function h(){return!0}function m(){throw new Error("throwOnDestroyed")}Object.defineProperty(A,"__esModule",{value:!0}),A.destroyObject=void 0,A.destroyObject=function(g){for(var w in g)typeof g[w]=="function"&&(g[w]=m);g.isDestroyed=h}},2127:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)});Object.defineProperty(A,"__esModule",{value:!0}),A.Player=void 0;var w=h(7372),p=h(7372),u=h(7372),f=h(1662),c=function(a){function n(s,r){s===void 0&&(s=1e3),r===void 0&&(r=f.defaultStartUpdateFunc);var i=a.call(this)||this;return i._currentTime=i.disposeVar((0,u.react)(0)),i._speed=1,i._duration=s,i._loop=!1,i.startUpdateFunc=r,i._updateBindThis=i._update.bind(i),i.dispose(function(){i._cancelStartUpdateFunc&&(i._cancelStartUpdateFunc(),i._cancelStartUpdateFunc=void 0)}),i._startTimeStamp=Number.NaN,i.dispose(function(){i._startPlayingEvent&&i._startPlayingEvent.reset(),i._stopPlayingEvent&&i._stopPlayingEvent.reset()}),i}return g(n,a),Object.defineProperty(n.prototype,"startPlayingEvent",{get:function(){return this._startPlayingEvent=this._startPlayingEvent||new p.Event,this._startPlayingEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"stopPlayingEvent",{get:function(){return this._stopPlayingEvent=this._stopPlayingEvent||new p.Event,this._stopPlayingEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"currentTimeChangedEvent",{get:function(){return this._currentTime.changed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"loopChangedEvent",{get:function(){return this._loopChangedEvent=this._loopChangedEvent||new p.Event,this._loopChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"loop",{get:function(){return this._loop},set:function(s){this._loop!==s&&(this._loop=s,this._loopChangedEvent&&this._loopChangedEvent.emit(this._loop))},enumerable:!1,configurable:!0}),n.prototype._update=function(s){if(Number.isNaN(this._startTimeStamp))console.warn("Number.isNaN(this._startTimeStamp)");else{var r=(s-this._startTimeStamp)*this._speed;this._setCurrentTimeInner(r)}},Object.defineProperty(n.prototype,"currentTime",{get:function(){return this._currentTime.value},set:function(s){this._setCurrentTimeInner(s),this._resetStartTime()},enumerable:!1,configurable:!0}),n.prototype._setCurrentTimeInner=function(s){this._currentTime.value!==s&&(this._duration<=0?this._currentTime.value=0:s<0?this.loop?this._currentTime.value=this._duration+s%this._duration:(this._currentTime.value=0,this.playing&&this._stopPlaying()):s>this._duration?this.loop?this._currentTime.value=s%this._duration:(this._currentTime.value=this._duration,this.playing&&this._stopPlaying()):this._currentTime.value=s)},Object.defineProperty(n.prototype,"durationChangedEvent",{get:function(){return this._durationChangedEvent||(this._durationChangedEvent=new p.Event),this._durationChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"duration",{get:function(){return this._duration},set:function(s){var r;if(s<0)console.warn("duration sholud greater than 0!");else if(this._duration!==s){var i=this._duration;this._duration=s,this._currentTime.value>this._duration&&(this._currentTime.value=this._duration),(r=this._durationChangedEvent)===null||r===void 0||r.emit(this._duration,i)}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"speedChangedEvent",{get:function(){return this._speedChangedEvent||(this._speedChangedEvent=new p.Event),this._speedChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"speed",{get:function(){return this._speed},set:function(s){var r;if(this._speed!==s&&s!==0){var i=this._speed;this._speed=s,this._resetStartTime(),(r=this._speedChangedEvent)===null||r===void 0||r.emit(this._speed,i)}},enumerable:!1,configurable:!0}),n.prototype._resetStartTime=function(){this._startTimeStamp=performance.now()-this._currentTime.value/this._speed},n.prototype._startPlaying=function(){var s,r;this._resetStartTime(),this._cancelStartUpdateFunc=this.startUpdateFunc(this._updateBindThis),(s=this._startPlayingEvent)===null||s===void 0||s.emit(this._currentTime.value),(r=this._playingChangedEvent)===null||r===void 0||r.emit(!0)},n.prototype._stopPlaying=function(){var s,r;if(!this._cancelStartUpdateFunc)throw new Error("this._cancelStartUpdateFunc is undefined!");this._cancelStartUpdateFunc(),this._cancelStartUpdateFunc=void 0,(s=this._stopPlayingEvent)===null||s===void 0||s.emit(this._currentTime.value),(r=this._playingChangedEvent)===null||r===void 0||r.emit(!1)},Object.defineProperty(n.prototype,"playingChangedEvent",{get:function(){return this._playingChangedEvent||(this._playingChangedEvent=new p.Event),this._playingChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"playing",{get:function(){return!!this._cancelStartUpdateFunc},set:function(s){!!this._cancelStartUpdateFunc!==s&&(s?this._startPlaying():this._stopPlaying())},enumerable:!1,configurable:!0}),n}(w.Destroyable);A.Player=c},2168:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getReactFuncs=void 0;var m=h(8835),g=h(6583);A.getReactFuncs=function(w){var p=(0,m.getCompleteReactParams)(w);return[function(){return p[0][p[1]]},function(u){try{p[0][p[1]]=u}catch(f){(0,g.oneTimeWarning)("setValue error, obj(".concat(p[0].constructor.name,") prop(").concat(p[1],") error(").concat(f,")"))}},p[0][p[2]]]}},2217:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C};Object.defineProperty(A,"__esModule",{value:!0}),A.PointerHoverDeprecated=void 0;var p=h(7372),u=h(7372),f=h(109),c=h(2299),a=function(n){function s(r,i){i===void 0&&(i=1500);var l=n.call(this)||this;l._hoverEvent=new u.Event,l._hoverOutEvent=new u.Event;var d=new f.DebouncingDeprecated(i);l.dispose(function(){return d.destroy()});var C,_=0,b=0;d.progressFunc=function(){return l._hoverEvent.emit(_,b,C)};var E=function(T){var S;!d.isRunning&&d.restart(),C=T,S=w((0,c.getDomEventCurrentTargetPos)(T),2),_=S[0],b=S[1],d.debounce(),l._hoverOutEvent.emit()},F=function(T){var S;!d.isRunning&&d.restart(),C=T,S=w((0,c.getDomEventCurrentTargetPos)(C),2),_=S[0],b=S[1],d.debounce(),l._hoverOutEvent.emit()},Q=function(T){var S;!d.isRunning&&d.restart(),C=T,S=w((0,c.getDomEventCurrentTargetPos)(C),2),_=S[0],b=S[1],d.debounce(),l._hoverOutEvent.emit()},U=function(T){d.isRunning&&d.cancel(),l._hoverOutEvent.emit()};return r.addEventListener("pointerdown",E),r.addEventListener("pointerup",F),r.addEventListener("pointermove",Q),r.addEventListener("pointerout",U),l.dispose(function(){r.removeEventListener("pointerdown",E),r.removeEventListener("pointerup",F),r.removeEventListener("pointermove",Q),r.removeEventListener("pointerout",U)}),l}return g(s,n),Object.defineProperty(s.prototype,"hoverEvent",{get:function(){return this._hoverEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"hoverOutEvent",{get:function(){return this._hoverOutEvent},enumerable:!1,configurable:!0}),s}(p.Destroyable);A.PointerHoverDeprecated=a},2220:function(B,A,h){var m,g=this&&this.__extends||(m=function(i,l){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,C){d.__proto__=C}||function(d,C){for(var _ in C)Object.prototype.hasOwnProperty.call(C,_)&&(d[_]=C[_])},m(i,l)},function(i,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function d(){this.constructor=i}m(i,l),i.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}),w=this&&this.__createBinding||(Object.create?function(i,l,d,C){C===void 0&&(C=d);var _=Object.getOwnPropertyDescriptor(l,d);_&&!("get"in _?!l.__esModule:_.writable||_.configurable)||(_={enumerable:!0,get:function(){return l[d]}}),Object.defineProperty(i,C,_)}:function(i,l,d,C){C===void 0&&(C=d),i[C]=l[d]}),p=this&&this.__exportStar||function(i,l){for(var d in i)d==="default"||Object.prototype.hasOwnProperty.call(l,d)||w(l,i,d)},u=this&&this.__values||function(i){var l=typeof Symbol=="function"&&Symbol.iterator,d=l&&i[l],C=0;if(d)return d.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&C>=i.length&&(i=void 0),{value:i&&i[C++],done:!i}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")},f=this&&this.__read||function(i,l){var d=typeof Symbol=="function"&&i[Symbol.iterator];if(!d)return i;var C,_,b=d.call(i),E=[];try{for(;(l===void 0||l-- >0)&&!(C=b.next()).done;)E.push(C.value)}catch(F){_={error:F}}finally{try{C&&!C.done&&(d=b.return)&&d.call(b)}finally{if(_)throw _.error}}return E},c=this&&this.__spreadArray||function(i,l,d){if(d||arguments.length===2)for(var C,_=0,b=l.length;_<b;_++)!C&&_ in l||(C||(C=Array.prototype.slice.call(l,0,_)),C[_]=l[_]);return i.concat(C||Array.prototype.slice.call(l))};Object.defineProperty(A,"__esModule",{value:!0}),A.SceneObject=void 0;var a=h(1662),n=h(3815),s=h(2723),r=function(i){function l(d){var C=i.call(this)||this;return C._components=C.disposeVar(new n.ObservableSet),d!==void 0&&(typeof d!="string"?console.warn("场景对象创建时的ID必须是字符串类型,而这里是id的类型是".concat(typeof d,",值为").concat(d)):d.trim()===""?console.warn("场景对象创建时的ID不能是空字符串!"):d.trim()!==d&&console.warn("id前后有空字符串!id: ".concat(d))),C._id=d??(0,a.createGuid)(),C._setDefaultName(),C}return g(l,i),Object.defineProperty(l,"sceneObjs",{get:function(){return l.context.sceneObjs},enumerable:!1,configurable:!0}),l.getSceneObjById=function(d){return l.context.getSceneObjectById(d)},l.getSceneObjsByDevTags=function(d){return l.context.getSceneObjectsByDevTags(d)},Object.defineProperty(l,"$refs",{get:function(){return l.context.refsManager.refs},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"defaultProps",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"id",{get:function(){return this._id},set:function(d){console.error("当前正在试图修改场景对象(".concat(this.name,"/").concat(this.typeName,")的ID,只有在创建时才可以设置ID!后期修改无效!!!"))},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"components",{get:function(){return this._components},enumerable:!1,configurable:!0}),l.prototype._setDefaultName=function(){this.name="".concat(this.typeName,"_").concat((""+this.id).slice(-4))},l.prototype._innerGetJson=function(d){var C,_;d===void 0&&(d=!0);var b={id:this.id,type:this.typeName};try{for(var E=u(Object.keys(this.defaultProps)),F=E.next();!F.done;F=E.next()){var Q=F.value;if(d){var U=this.defaultProps[Q];(U instanceof a.ReactiveVariable?U.equals(this[Q]):U===this[Q])||(b[Q]=this[Q])}else b[Q]=this[Q]}}catch(T){C={error:T}}finally{try{F&&!F.done&&(_=E.return)&&_.call(E)}finally{if(C)throw C.error}}return b},l.prototype._innerSetJson=function(d,C,_){var b,E;if(d instanceof Object&&(!d.type||d.type===this.typeName)){d.id&&d.id!==this.id&&console.warn("value.id === undefined || value.id".concat(d.id," !== this.id(").concat(this.id,")"));var F=C||[];F.push("id","type");var Q=Object.keys(this.defaultProps).filter(function(I){return!F.includes(I)});try{for(var U=u(Q),T=U.next();!T.done;T=U.next()){var S=T.value;if(S in d)this[S]=d[S]===null?void 0:d[S];else if(_==null||!_){var P=this.defaultProps[S];P instanceof a.ReactiveVariable&&(P=P.value),this[S]=P}}}catch(I){b={error:I}}finally{try{T&&!T.done&&(E=U.return)&&E.call(U)}finally{if(b)throw b.error}}}else console.error("value.type && value.type".concat(d.type," !== this.typeName").concat(this.typeName))},l.prototype.setJsonWithoutDefaults=function(d){this._innerSetJson(d,void 0,!0)},l.prototype.setJsonWithDefaults=function(d){this._innerSetJson(d,void 0,!1)},l.prototype.getJsonWithDefaults=function(){return this._innerGetJson(!1)},l.prototype.getJsonWithoutDefaults=function(){return this._innerGetJson(!0)},Object.defineProperty(l.prototype,"jsonStr",{get:function(){return JSON.stringify(this.json,void 0," ")},set:function(d){try{this.json=d&&JSON.parse(d)||{}}catch(C){console.error("SceneObject解析json数据时发生错误!error: ".concat(C))}},enumerable:!1,configurable:!0}),l.prototype.addDevTag=function(){for(var d=this,C=[],_=0;_<arguments.length;_++)C[_]=arguments[_];if(this.devTags){var b=C.filter(function(E){return!d.devTags.includes(E)});b.length>0&&(this.devTags=c(c([],f(this.devTags),!1),f(b),!1))}else this.devTags=C},l.prototype.deleteDevTag=function(){for(var d=[],C=0;C<arguments.length;C++)d[C]=arguments[C];if(this.devTags){var _=this.devTags.filter(function(b){return!d.includes(b)});this.devTags=_}},Object.defineProperty(l.prototype,"selfCreatedEvent",{get:function(){var d=this;return this._selfCreatedEvent||(this._selfCreatedEvent=this.disposeVar(new a.Event),this.dispose(l.context.sceneObjCreatedEvent.disposableOn(function(C){if(!d._selfCreatedEvent)throw new Error("!this._createdEvent");C===d&&d._selfCreatedEvent.emit()}))),this._selfCreatedEvent},enumerable:!1,configurable:!0}),l.context=new s.SceneObjectsContext,l.register=l.context.register.bind(l.context),l.create=l.context.createSceneObject.bind(l.context),l.createFromClass=l.context.createSceneObjectFromClass.bind(l.context),l.createFromJson=l.context.createSceneObjectFromJson.bind(l.context),l}(a.Destroyable);A.SceneObject=r,function(i){i.createDefaultProps=function(){return{name:"未命名场景对象",ref:void 0,devTags:(0,a.reactArrayWithUndefined)(void 0),extras:(0,a.reactJson)(void 0)}}}(r=A.SceneObject||(A.SceneObject={})),A.SceneObject=r,(0,a.extendClassProps)(r.prototype,r.createDefaultProps),p(h(146),A)},2228:(B,A)=>{function h(E,F){return F===void 0&&(F=[0,0]),F[0]=-E[1],F[1]=E[0],F}function m(E,F,Q){return Q===void 0&&(Q=[0,0]),Q[0]=E[0]-F[0],Q[1]=E[1]-F[1],Q}function g(E,F){F===void 0&&(F=[0,0]);var Q=function(U){return Math.sqrt(function(T){return T[0]*T[0]+T[1]*T[1]}(U))}(E);return F[0]=E[0]/Q,F[1]=E[1]/Q,F}function w(E,F){return F===void 0&&(F=[0,0]),F[0]=-E[0],F[1]=-E[1],F}function p(E,F,Q){return Q===void 0&&(Q=[0,0]),Q[0]=E[0]*F,Q[1]=E[1]*F,Q}function u(E,F,Q){return Q===void 0&&(Q=[0,0]),Q[0]=E[0]+F[0],Q[1]=E[1]+F[1],Q}function f(E,F){var Q,U,T=(U=F,(Q=E)[0]*U[0]+Q[1]*U[1]),S=Math.acos(T);return 1/Math.cos(S/2)}function c(E,F,Q){return Q===void 0&&(Q=[0,0]),Q[0]=E,Q[1]=F,Q}Object.defineProperty(A,"__esModule",{value:!0}),A.extrudePolyline=void 0;var a=[0,0],n=[0,0],s=[0,0],r=[0,0],i=[0,0],l=[0,0],d=[0,0],C=[0,0];function _(E,F,Q,U,T,S){var P=m(E,F,C),I=h(g(P,P),r),M=m(Q,E,C),K=h(g(M,M),l),W=w(I,i),L=w(K,d),O=u(I,K);g(O,O);var H,k,G=(k=K,(H=I)[0]*k[1]-H[1]*k[0]);if(Math.abs(G)<.1)u(N=p(O,U,C),E,N),S.push(N[0],N[1]),T.push(S.length/2),S.push(E[0],E[1]),T.push(S.length/2),p(X=w(O,C),U,X),u(X,E,X),S.push(X[0],X[1]),T.push(S.length/2);else if(G<0){u(N=p(I,U,C),E,N),S.push(N[0],N[1]);var D=p(O,U,C);u(D,E,D),S.push(D[0],D[1]),u(X=p(K,U,C),E,X),S.push(X[0],X[1]),T.push(S.length/2),S.push(E[0],E[1]),T.push(S.length/2),R=(R=f(L,W))>3?3:R,p(Y=w(O,C),R*U,Y),u(Y,E,Y),S.push(Y[0],Y[1]),T.push(S.length/2)}else{var R,N,X;u(N=p(O,(R=(R=f(I,K))>3?3:R)*U,C),E,N),S.push(N[0],N[1]),T.push(S.length/2),S.push(E[0],E[1]),T.push(S.length/2),u(X=p(W,U,C),E,X),S.push(X[0],X[1]);var Y,Z=w(O,C);p(Z,U,Z),u(Z,E,Z),S.push(Z[0],Z[1]),u(Y=p(L,U,C),E,Y),S.push(Y[0],Y[1]),T.push(S.length/2)}}var b=[];A.extrudePolyline=function(E,F,Q,U,T,S){Q===void 0&&(Q=!1),U=U??[],T=T??[],S=S??[];var P=b;P.length=0,function(I,M,K,W,L){if(K===void 0&&(K=!1),I.length%2!=0)throw new Error("positions.length % 2 !== 0");W=W??[],L=L??[];var O=I,H=O.length/2;if(!(H<2)){if(K){if(!(H>=3))throw new Error("loop should have >= 3 vertex!");var k=c(O[0],O[1],a),G=c(O[2],O[3],s);_(k,c(O[2*(H-1)+0],O[2*(H-1)+1],n),G,M,L,W)}else{k=c(O[0],O[1],a);var D=m(G=c(O[2],O[3],s),k,C),R=h(g(D,D),l);u(X=p(R,M,C),k,X),W.push(X[0],X[1]),L.push(W.length/2),W.push(k[0],k[1]),L.push(W.length/2),p(Y=w(R,C),M,Y),u(Y,k,Y),W.push(Y[0],Y[1]),L.push(W.length/2)}if(H>=3)for(var N=1;N<H-1;++N)k=c(O[2*N+0],O[2*N+1],a),G=c(O[2*(N+1)+0],O[2*(N+1)+1],s),_(k,c(O[2*(N-1)+0],O[2*(N-1)+1],n),G,M,L,W);if(K){if(!(H>=3))throw new Error("loop should have >= 3 vertex!");k=c(O[2*(H-1)+0],O[2*(H-1)+1],a),G=c(O[0],O[1],s),_(k,c(O[2*(H-2)+0],O[2*(H-2)*1],n),G,M,L,W)}else{var X,Y,Z=m(k=c(O[2*(H-1)+0],O[2*(H-1)+1],a),c(O[2*(H-2)+0],O[2*(H-2)+1],n),C),ie=h(g(Z,Z),r);u(X=p(ie,M,C),k,X),W.push(X[0],X[1]),L.push(W.length/2),W.push(k[0],k[1]),L.push(W.length/2),p(Y=w(ie,C),M,Y),u(Y,k,Y),W.push(Y[0],Y[1]),L.push(W.length/2)}}}(E,.5*F,Q,U,P),function(I,M,K,W,L){if(W=W||[],L=L||[],I.length%2!=0)throw new Error("extrudedPositions.length % 2 !== 0");if(K.length%3!=0)throw new Error("extrudesSegments.length % 3 !== 0");for(var O=K.length/3,H=0,k=0;k<O;++k){for(var G=K[3*k+0],D=K[3*k+1],R=K[3*k+2],N=H;N<G;++N)W.push(0,0);if(G-H>=2)for(var X=H+1;X<G;++X)L.push(G,X,X-1);W.push(0,.5);for(var Y=D;Y<R;++Y)W.push(0,1);if(R-D>=2)for(var Z=D+1;Z<R;++Z)L.push(G,Z-1,Z);H=R}for(H=0,k=0;k<O-1;++k){var ie=K[3*k+0]-1,ae=K[3*k+1]-1,me=K[3*k+2]-1,we=K[3*k+2],re=K[3*(k+1)+0],se=K[3*(k+1)+1];L.push(ie,ae,re),L.push(ie,re,we),L.push(ae,me,se),L.push(ae,se,re)}M&&(ie=K[3*(O-1)+0]-1,ae=K[3*(O-1)+1]-1,me=K[3*(O-1)+2]-1,we=0,re=K[0],se=K[1],L.push(ie,ae,re),L.push(ie,re,we),L.push(ae,me,se),L.push(ae,se,re))}(U,Q,P,T,S)}},2243:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(5486),A),g(h(3631),A)},2267:(B,A)=>{function h(m,g){return(new Array(g).join("0")+m).slice(-g)}Object.defineProperty(A,"__esModule",{value:!0}),A.getDateTime=A.formatInterger=void 0,A.formatInterger=h,A.getDateTime=function(){var m=function(n){return h(n,2)},g=new Date,w=g.getFullYear(),p=g.getMonth()+1,u=g.getDate(),f=g.getHours(),c=g.getMinutes(),a=g.getSeconds();return"".concat(w,"-").concat(m(p),"-").concat(m(u)," ").concat(m(f),":").concat(m(c),":").concat(m(a))}},2277:function(B,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function n(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(A,"__esModule",{value:!0}),A.CanvasPrimitive=void 0;var w=h(1662),p=h(7372),u=h(7372),f=function(c){function a(n,s){s===void 0&&(s={});var r=c.call(this)||this;r._canvasPrimitivesContext=n,r._id=(0,w.createGuid)(),r._actived=!1,r._hovered=!1,r._selected=!1,r._opacity=1,r._show=!0;var i=s.needRedraw,l=i===void 0||i,d=s.needPickRedraw,C=d===void 0||d;return l&&(r._needRedrawEvent=new u.Event),C&&(r._needPickRedrawEvent=new u.Event),r._canvasPrimitivesContext.addPoi(r),r.dispose(function(){return r._canvasPrimitivesContext.removePoi(r)}),r.dispose(r.showChanged.disposableOn(function(){r.needRedraw(),r.needPickRedraw()})),r.dispose(r.opacityChanged.disposableOn(function(){return r.needRedraw()})),r}return g(a,c),Object.defineProperty(a.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"context",{get:function(){return this._canvasPrimitivesContext},enumerable:!1,configurable:!0}),a.prototype.needRedraw=function(){this._needRedrawEvent?this._needRedrawEvent.emit():console.warn("no needRedrawEvent!")},a.prototype.needPickRedraw=function(){this._needPickRedrawEvent?this._needPickRedrawEvent.emit():console.warn("no needPickRedrawEvent!")},a.prototype.hasClickEvent=function(){return!!this._clickEvent},Object.defineProperty(a.prototype,"clickEvent",{get:function(){return this._clickEvent=this._clickEvent||new u.Event,this._clickEvent},enumerable:!1,configurable:!0}),a.prototype.hasClickOutEvent=function(){return!!this._clickOutEvent},Object.defineProperty(a.prototype,"clickOutEvent",{get:function(){return this._clickOutEvent=this._clickOutEvent||new u.Event,this._clickOutEvent},enumerable:!1,configurable:!0}),a.prototype.hasDbclickEvent=function(){return!!this._dbclickEvent},Object.defineProperty(a.prototype,"dbclickEvent",{get:function(){return this._dbclickEvent=this._dbclickEvent||new u.Event,this._dbclickEvent},enumerable:!1,configurable:!0}),a.prototype.hasDbclickOutEvent=function(){return!!this._dbclickOutEvent},Object.defineProperty(a.prototype,"dbclickOutEvent",{get:function(){return this._dbclickOutEvent=this._dbclickOutEvent||new u.Event,this._dbclickOutEvent},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"actived",{get:function(){return this._actived},set:function(n){this._actived!==n&&(this._actived=n,this._activedChanged&&this._activedChanged.emit(n,this))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"activedChanged",{get:function(){return this._activedChanged=this._activedChanged||new u.Event,this._activedChanged},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"hovered",{get:function(){return this._hovered},set:function(n){this._hovered!==n&&(this._hovered=n,this._hoveredChanged&&this._hoveredChanged.emit(n,this))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"hoveredChanged",{get:function(){return this._hoveredChanged=this._hoveredChanged||new u.Event,this._hoveredChanged},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"selected",{get:function(){return this._selected},set:function(n){this._selected!==n&&(this._selected=n,this._selectedChanged&&this._selectedChanged.emit(n,this))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"selectedChanged",{get:function(){return this._selectedChanged=this._selectedChanged||new u.Event,this._selectedChanged},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"opacity",{get:function(){return this._opacity},set:function(n){this._opacity!==n&&(this._opacity=n,this._opacityChanged&&this._opacityChanged.emit(n,this))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"opacityChanged",{get:function(){return this._opacityChanged=this._opacityChanged||new u.Event,this._opacityChanged},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"show",{get:function(){return this._show},set:function(n){this._show!==n&&(this._show=n,this._showChanged&&this._showChanged.emit(n,this))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"showChanged",{get:function(){return this._showChanged=this._showChanged||new u.Event,this._showChanged},enumerable:!1,configurable:!0}),a}(p.Destroyable);A.CanvasPrimitive=f},2299:(B,A)=>{function h(g,w){w=w||[];var p=g.parentNode;return p?h(p,w.concat(p)):w}function m(g){var w=g.composedPath&&g.composedPath()||g.path,p=g.target;if(w!=null)return w.indexOf(window)<0?w.concat(window):w;if(p===window)return[window];if(p===null)throw new Error("target === null");return[p].concat(h(p),window)}Object.defineProperty(A,"__esModule",{value:!0}),A.getDomEventCurrentTargetPos=void 0,A.getDomEventCurrentTargetPos=function(g,w){w===void 0&&(w=!1);for(var p=g.offsetX,u=g.offsetY,f=m(g),c=0;c<f.length;++c){var a=f[c];if(!(a!==g.currentTarget&&a instanceof HTMLElement))break;p+=a.clientLeft,u+=a.clientTop,p+=a.offsetLeft,u+=a.offsetTop}return w?[p*window.devicePixelRatio,u*window.devicePixelRatio]:[p,u]}},2429:function(B,A,h){var m,g=this&&this.__extends||(m=function(s,r){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(i[d]=l[d])},m(s,r)},function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=s}m(s,r),s.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}),w=this&&this.__values||function(s){var r=typeof Symbol=="function"&&Symbol.iterator,i=r&&s[r],l=0;if(i)return i.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&l>=s.length&&(s=void 0),{value:s&&s[l++],done:!s}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.destroyAnimationWithChildren=A.Animation=A.Channel=void 0;var p=h(7372),u=h(1662),f=h(7372),c=0,a=function(s){function r(i,l){i===void 0&&(i=0),l===void 0&&(l=1e3);var d=s.call(this)||this;return d._startTime=Number.NaN,d._enabled=!0,d._animation=new n(l),d.dispose(function(){return d._animation.destroy()}),d.dispose(function(){d._changedEvent&&(d._changedEvent.reset(),d._changedEvent=void 0)}),d.startTime=i,d.dispose(d._animation.changedEvent.disposableOn(function(){d.changedEvent&&d.changedEvent.emit(d)})),d}return g(r,s),Object.defineProperty(r.prototype,"changedEvent",{get:function(){return this._changedEvent||(this._changedEvent=new f.Event),this._changedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"animation",{get:function(){return this._animation},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"startTime",{get:function(){return this._startTime},set:function(i){this._startTime!==i&&(this._startTime=i,this.changedEvent&&this.changedEvent.emit(this))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"enabled",{get:function(){return this._enabled},set:function(i){this._enabled!==i&&(this._enabled=i,this.changedEvent&&this.changedEvent.emit(this))},enumerable:!1,configurable:!0}),r}(p.Destroyable);A.Channel=a;var n=function(s){function r(i){i===void 0&&(i=0);var l=s.call(this)||this;return l._duration=i,l._currentTime=Number.NaN,l.dispose(function(){l._channels&&(l._channels.destroy(),l._channels=void 0),l.enterFunc=void 0,l.leaveFunc=void 0,l.progressFunc=void 0,l._changedEvent&&(l._changedEvent.reset(),l._changedEvent=void 0)}),l}return g(r,s),Object.defineProperty(r.prototype,"changedEvent",{get:function(){return this._changedEvent||(this._changedEvent=new f.Event),this._changedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this._name||(this._name="Unknown".concat(++c)),this._name},set:function(i){this._name!==i&&(this._name=i,this._changedEvent&&this._changedEvent.emit(this))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hasChannels",{get:function(){return!(!this._channels||this._channels.length===0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"channels",{get:function(){var i=this;if(!this._channels){var l=new WeakMap,d=new u.ObservableArray;this.dispose(d.toChangeEvent.disposableOn(function(C,_){for(var b=C.length,E=0;E<b;++E){var F=C[E];if(F.deleteCount>0)for(var Q=F.start;Q<F.deleteCount;++Q){var U=_.get(Q);if(!(M=l.get(U)))throw console.error("!disposeFunc"),new Error("!disposeFunc");M(),l.delete(U)}if(F.items.length>0)for(var T=F.items,S=T.length,P=0;P<S;++P){var I=T[P],M=I.changedEvent.disposableOn(function(K){i.recomputeDurationFromChildren(!1),i._changedEvent&&i._changedEvent.emit(i)});l.set(I,M)}}return!0})),this.dispose(d.changedEvent.disposableOn(function(){i.recomputeDurationFromChildren(!1),i._changedEvent&&i._changedEvent.emit(i)})),this._channels=d}return this._channels},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"duration",{get:function(){return this._duration},set:function(i){this._duration!==i&&(this._duration,this._duration=i,this._changedEvent&&this._changedEvent.emit(this))},enumerable:!1,configurable:!0}),r.prototype.recomputeDurationFromChildren=function(i){i===void 0&&(i=!1);var l=this._channels;if(l&&l.length>0){for(var d=0,C=l.length,_=0;_<C;++_){var b=l.get(_),E=b.animation,F=b.startTime;i&&E.recomputeDurationFromChildren();var Q=F+E.duration;d<Q&&(d=Q)}this.duration=d}},r.prototype.valid=function(i){return(i=i??this._currentTime)>=0&&i<=this.duration},Object.defineProperty(r.prototype,"currentTime",{get:function(){return this._currentTime},set:function(i){if(this.valid(i)||(i=Number.NaN),!(Number.isNaN(i)&&Number.isNaN(this._currentTime))){if(this._currentTime!==i){var l=this._currentTime;if(Number.isNaN(i)?this.leaveFunc&&this.leaveFunc(l):Number.isNaN(this._currentTime)&&this.enterFunc&&this.enterFunc(i),this._currentTime=i,Number.isNaN(i)||this.progressFunc&&this.progressFunc(i,l),this._channels)for(var d=this._channels.length,C=0;C<d;++C){var _=this._channels.get(C),b=_.animation,E=_.startTime;if(_.enabled)if(Number.isNaN(i))b.currentTime=Number.NaN;else if(Number.isNaN(l)){var F=i-E;b.currentTime=F}else{var Q=E+b.duration;F=i-E,i>l?(i<=E&&(b.currentTime=F),E>l&&E<=i&&(b.currentTime=0),i>E&&i<=Q&&(b.currentTime=F),Q>l&&Q<=i&&(b.currentTime=b.duration),i>Q&&(b.currentTime=F)):i<l&&(i>Q&&(b.currentTime=F),Q>l&&Q<=i&&(b.currentTime=b.duration),i>E&&i<=Q&&(b.currentTime=F),E>l&&E<=i&&(b.currentTime=0),i<=E&&(b.currentTime=F))}}}}},enumerable:!1,configurable:!0}),r}(p.Destroyable);A.Animation=n,A.destroyAnimationWithChildren=function s(r){var i,l;if(r.hasChannels)try{for(var d=w(r.channels),C=d.next();!C.done;C=d.next())s(C.value.animation)}catch(_){i={error:_}}finally{try{C&&!C.done&&(l=d.return)&&l.call(d)}finally{if(i)throw i.error}}r.destroy()}},2452:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.SmartListenerHandler=void 0;var h=function(){function m(){}return m.prototype._reset=function(g,w){this._listenerHandler=g,this._cid=w},m.prototype.clone=function(g){return(g=g??new m)._reset(this._listenerHandler,this._cid),g},Object.defineProperty(m.prototype,"valid",{get:function(){if(this._listenerHandler!==void 0&&typeof this._cid=="number"){var g=this._listenerHandler._cid;if(g!==void 0&&this._cid===g)return!0}return!1},enumerable:!1,configurable:!0}),m}();A.SmartListenerHandler=h},2520:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}),w=this&&this.__read||function(a,n){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,i,l=s.call(a),d=[];try{for(;(n===void 0||n-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(C){i={error:C}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return d},p=this&&this.__spreadArray||function(a,n,s){if(s||arguments.length===2)for(var r,i=0,l=n.length;i<l;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return a.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(A,"__esModule",{value:!0}),A.ObservableArray=void 0;var u=h(9359),f=h(4899),c=function(a){function n(){var s=a.call(this)||this;return s._innerObj=[],s.dispose(function(){if(s.length=0,s._innerObj.length>0)throw new Error("this._innerObj.length > 0");s._toChangeEvent&&s._toChangeEvent.reset(),s._innerObj=void 0}),s}return g(n,a),Object.defineProperty(n.prototype,"toChangeEvent",{get:function(){return this._toChangeEvent||(this._toChangeEvent=new f.Event),this._toChangeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"changedEvent",{get:function(){return this._changedEvent||(this._changedEvent=new f.Event),this._changedEvent},enumerable:!1,configurable:!0}),n.prototype._resetArray=function(s){this._toChangeEvent&&this._toChangeEvent.emit([{start:0,deleteCount:this._innerObj.length,items:s}],this);var r=s.length;this._innerObj.length=r;for(var i=0;i<r;++i)this._innerObj[i]=s[i];this._changedEvent&&this._changedEvent.emit(this)},n.prototype.splice=function(s,r){for(var i,l=[],d=2;d<arguments.length;d++)l[d-2]=arguments[d];var C=this._innerObj.length;(s=s>this._innerObj.length?this._innerObj.length:s)>C?s=C:s<0&&(s+=C)<0&&(s=0);var _=this._innerObj.length-s;if(r>_?r=_:r<0&&(r=0),arguments.length===1){this._toChangeEvent&&this._toChangeEvent.emit([{start:s,deleteCount:this._innerObj.length-s,items:[]}],this);var b=this._innerObj.splice(s);return this._changedEvent&&this._changedEvent.emit(this),b}return arguments.length===2?(this._toChangeEvent&&this._toChangeEvent.emit([{start:s,deleteCount:r,items:[]}],this),b=this._innerObj.splice(s,r),this._changedEvent&&this._changedEvent.emit(this),b):(this._toChangeEvent&&this._toChangeEvent.emit([{start:s,deleteCount:r,items:l}],this),b=(i=this._innerObj).splice.apply(i,p([s,r],w(l),!1)),this._changedEvent&&this._changedEvent.emit(this),b)},n.prototype.pop=function(){if(this._innerObj.length!==0){if(this._toChangeEvent){var s=this._innerObj.length-1;this._toChangeEvent.emit([{start:s,deleteCount:1,items:[]}],this)}var r=this._innerObj.pop();return this._changedEvent&&this._changedEvent.emit(this),r}},n.prototype.push=function(){for(var s,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(this._toChangeEvent){var l=this._innerObj.length;this._toChangeEvent.emit([{start:l,deleteCount:0,items:r}],this)}var d=(s=this._innerObj).push.apply(s,p([],w(r),!1));return this._changedEvent&&this._changedEvent.emit(this),d},Object.defineProperty(n.prototype,"length",{get:function(){return this._innerObj.length},set:function(s){if(s<0)throw new Error("value < 0");var r=this._innerObj.length;if(r!==s){if(this._toChangeEvent){var i=void 0,l=void 0,d=void 0;r>s?(i=s,l=r-s,d=[]):(i=r,l=0,d=new Array(s-r)),this._toChangeEvent.emit([{start:i,deleteCount:l,items:d}],this)}this._innerObj.length=s,this._changedEvent&&this._changedEvent.emit(this)}},enumerable:!1,configurable:!0}),n.prototype.get=function(s){return this._innerObj[s]},n.prototype.set=function(s,r){var i=this._innerObj.length;if(s<0||s>=i)throw new Error("index < 0 || index >= length");this._toChangeEvent&&this._toChangeEvent.emit([{start:s,deleteCount:1,items:[r]}],this),this._innerObj[s]=r,this._changedEvent&&this._changedEvent.emit(this)},n.prototype.indexOf=function(s){return this._innerObj.indexOf(s)},n.prototype[Symbol.iterator]=function(){return this._innerObj[Symbol.iterator]()},n}(u.Destroyable);A.ObservableArray=c},2601:function(B,A,h){var m=this&&this.__read||function(c,a){var n=typeof Symbol=="function"&&c[Symbol.iterator];if(!n)return c;var s,r,i=n.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=i.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return l},g=this&&this.__spreadArray||function(c,a,n){if(n||arguments.length===2)for(var s,r=0,i=a.length;r<i;r++)!s&&r in a||(s||(s=Array.prototype.slice.call(a,0,r)),s[r]=a[r]);return c.concat(s||Array.prototype.slice.call(a))};Object.defineProperty(A,"__esModule",{value:!0}),A.wrapAsyncFuncToCancelablePromise=A.cancelablePromise=A._executeSetCancelFuncOrCancelResult=void 0;var w=h(8055);function p(c,a){typeof c=="function"?c(a):c.cancelFunc=a}function u(c,a){return a instanceof Promise?function(n,s){var r=void 0,i=s.then(function(l){if(r)throw r;return l});return p(n,function(l){r=l??new w.CancelError("_revocablePromise_forPromise cancel error!")}),i}(c,a):function(n,s){return new Promise(function(r,i){p(n,function(l){i(l??new w.CancelError("_revocablePromise_forExecutor cancel error!"))});try{s(r,i)}catch(l){i(l)}})}(c,a)}function f(c,a){for(var n=[],s=2;s<arguments.length;s++)n[s-2]=arguments[s];var r,i=void 0,l=a.apply(void 0,g([{cancelCheck:function(){if(i)throw i},registerCancelFunc:function(d){(r=r||[]).push(d)}}],m(n),!1));return p(c,function(d){if(i=d??new w.CancelError("wrapAsyncFuncToRevocablePromise cancel error!"),r)for(var C=r.length-1;C>=0;--C)(0,r[C])(d)}),l}A._executeSetCancelFuncOrCancelResult=p,A.cancelablePromise=function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];if(c.length===1){if(c[0]instanceof Promise){var n=u(r={},c[0]),s=r.cancelFunc;if(!s)throw new Error("!cancelResult.cancelFunc");return[s,n]}}else if(c.length===2){var r;if(c[0]instanceof Object)return u(r=c[0],c[1])}throw new Error("args wrong!")},A.wrapAsyncFuncToCancelablePromise=function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];if(c.length>=1){if(typeof c[0]=="function"){var n={},s=f.apply(void 0,g([n],m(c),!1)),r=n.cancelFunc;if(!r)throw new Error("!cancelResult.cancelFunc");return[r,s]}return f.apply(void 0,g([],m(c),!1))}throw new Error("wrapAsyncFuncToCancelablePromise args error!")}},2723:function(B,A,h){var m,g=this&&this.__extends||(m=function(s,r){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(i[d]=l[d])},m(s,r)},function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=s}m(s,r),s.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}),w=this&&this.__values||function(s){var r=typeof Symbol=="function"&&Symbol.iterator,i=r&&s[r],l=0;if(i)return i.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&l>=s.length&&(s=void 0),{value:s&&s[l++],done:!s}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__read||function(s,r){var i=typeof Symbol=="function"&&s[Symbol.iterator];if(!i)return s;var l,d,C=i.call(s),_=[];try{for(;(r===void 0||r-- >0)&&!(l=C.next()).done;)_.push(l.value)}catch(b){d={error:b}}finally{try{l&&!l.done&&(i=C.return)&&i.call(C)}finally{if(d)throw d.error}}return _};Object.defineProperty(A,"__esModule",{value:!0}),A.SceneObjectsContext=void 0;var u=h(1662),f=h(9367),c=h(9026),a=h(1545),n=function(s){function r(){var i=s.call(this)||this;return i._sceneObjConstructorsMap=new Map,i._sceneObjs=new Map,i._sceneObjCreatedEvent=new u.Event,i._sceneObjToDestroyEvent=new u.Event,i._refsManager=i.disposeVar(new a.RefsManager(i)),i._environmentVariables={"xr-static":"xr-static"},i._environmentVariablesChanged=i.disposeVar(new u.Event),i}return g(r,s),Object.defineProperty(r.prototype,"typeNames",{get:function(){return this._sceneObjConstructorsMap.keys()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sceneObjs",{get:function(){return this._sceneObjs.values()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sceneObjCreatedEvent",{get:function(){return this._sceneObjCreatedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sceneObjToDestroyEvent",{get:function(){return this._sceneObjToDestroyEvent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"refsManager",{get:function(){return this._refsManager},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"$refs",{get:function(){return this._refsManager.refs},enumerable:!1,configurable:!0}),r.prototype.register=function(i,l,d){return this._sceneObjConstructorsMap.has(i)&&(console.warn("register warn: ".concat(i," has registered, object is: ")),console.warn(this._sceneObjConstructorsMap.get(i))),this._sceneObjConstructorsMap.set(i,l),d&&this.setProps(i,d),i},r.prototype._getSceneObjConstructor=function(i){return this._sceneObjConstructorsMap.get(i)||void 0},r.prototype.getProps=function(i){var l=this._getSceneObjConstructor(i);if(l)return(0,u.getExtProp)(l,"__sceneObjExtraInfo");console.warn("cannot get constructor from type: ".concat(i))},r.prototype.setProps=function(i,l){var d=this._getSceneObjConstructor(i);if(d){var C=(0,u.getExtProp)(d,"__sceneObjExtraInfo");C||(C={},(0,u.setExtProp)(d,"__sceneObjExtraInfo",C)),Object.assign(C,l)}else console.warn("cannot get constructor from type: ".concat(i))},r.prototype.getProp=function(i,l){var d=this.getProps(i);return d&&d[l]},r.prototype.setProp=function(i,l,d){var C;this.setProps(i,((C={})[l]=d,C))},r.prototype._addSceneObject=function(i){var l=this;this._sceneObjs.set(i.id,i),this._sceneObjCreatedEvent.emit(i),i.dispose(function(){return l._deleteSceneObject(i)})},r.prototype._deleteSceneObject=function(i){this._sceneObjToDestroyEvent.emit(i),this._sceneObjs.delete(i.id)},r.prototype.createSceneObjectFromClass=function(i,l){if(!l||this._sceneObjs.has(l)){var d=(0,u.createGuid)();l&&console.warn("已存在相同id的对象!id自动变更!".concat(l," -> ").concat(d," 请注意:id变更可能导致引用失效!")),l=d}if(!l)throw new Error("id不能为空!");var C=new i(l);return C.id!==l&&(console.warn("sceneObj.id(".concat(C.id,") !== id(").concat(l,") sceneObjectType: ").concat(C.typeName)),console.warn("出现这种问题有可能是自定义的场景对象,没有在构造函数中传递id参数!示例如下:"),console.warn("class MySceneObj extends ESSceneObject { constructor(id) { super(id); } }")),this._addSceneObject(C),C},r.prototype.createSceneObject=function(i,l){if(typeof i=="string"){var d=this._getSceneObjConstructor(i);return d?this.createSceneObjectFromClass(d,l):void console.warn("Cannot find SceneObjectType: ".concat(i))}return this.createSceneObjectFromClass(i,l)},r.prototype.createSceneObjectFromJson=function(i){var l=this.createSceneObject(i.type,i.id);return l&&(l.json=i),l},r.prototype.getSceneObjectById=function(i){return this._sceneObjs.get(i)},r.prototype.getSceneObjectsByDevTags=function(i){var l,d,C=[],_=function(F){i.some(function(Q){return F.devTags&&F.devTags.includes(Q)})&&C.push(F)};try{for(var b=w(this.sceneObjs),E=b.next();!E.done;E=b.next())_(E.value)}catch(F){l={error:F}}finally{try{E&&!E.done&&(d=b.return)&&d.call(b)}finally{if(l)throw l.error}}return C},Object.defineProperty(r.prototype,"environmentVariables",{get:function(){return this._environmentVariables},set:function(i){var l,d;try{for(var C=w(Object.entries(i)),_=C.next();!_.done;_=C.next()){var b=p(_.value,2),E=b[0],F=b[1];this.setEnv(E,F)}}catch(Q){l={error:Q}}finally{try{_&&!_.done&&(d=C.return)&&d.call(C)}finally{if(l)throw l.error}}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"environmentVariablesChanged",{get:function(){return this._environmentVariablesChanged},enumerable:!1,configurable:!0}),r.prototype.setEnv=function(i,l){if(this._environmentVariables[i]!==l){var d=this._environmentVariables[i];this._environmentVariables[i]=l,this._environmentVariablesChanged.emit(i,l,d)}},r.prototype.getEnv=function(i){return this._environmentVariables[i]},r.prototype.getStrFromEnv=function(i){return(0,c.replaceStrWithEnv)(i)},r.prototype.createEnvStrReact=function(i,l){return(0,f.createEnvEvalStrReact)(i,l)},r.prototype.createEvnStrReact=function(i,l){return(0,f.createEnvEvalStrReact)(i,l)},r}(u.Destroyable);A.SceneObjectsContext=n},2731:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.ary2Ns=A.xyzw2N4=A.xyz2N3=A.xyz2N2=A.Xyzw2Ns=A.createNumbers=void 0,A.createNumbers=function(g){for(var w,p=[],u=1;u<arguments.length;u++)p[u-1]=arguments[u];if(g>16)throw new Error("length > 16");for(var f=new Array(g),c=0;c<g;++c)f[c]=(w=p[c])!==null&&w!==void 0?w:0;return f};var h=function(){function g(w,p){this._xyzw=w,this._length=p}return Object.defineProperty(g.prototype,0,{get:function(){var w;return(w=this._xyzw.x)!==null&&w!==void 0?w:0},set:function(w){this._xyzw.x=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,1,{get:function(){var w;return(w=this._xyzw.y)!==null&&w!==void 0?w:0},set:function(w){this._xyzw.y=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,2,{get:function(){var w;return(w=this._xyzw.z)!==null&&w!==void 0?w:0},set:function(w){this._xyzw.z=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,3,{get:function(){var w;return(w=this._xyzw.w)!==null&&w!==void 0?w:0},set:function(w){this._xyzw.w=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"length",{get:function(){return this._length},enumerable:!1,configurable:!0}),g}();A.Xyzw2Ns=h,A.xyz2N2=function(g){return new h(g,2)},A.xyz2N3=function(g){return new h(g,3)},A.xyzw2N4=function(g){return new h(g,4)};var m=function(){function g(w,p,u,f){this._array=w,this._length=p,this._start=u,this._stride=f}return Object.defineProperty(g.prototype,"length",{get:function(){return this._length},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,0,{get:function(){return this._array[this._start+0*this._stride]},set:function(w){this._array[this._start+0*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,1,{get:function(){return this._array[this._start+1*this._stride]},set:function(w){this._array[this._start+1*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,2,{get:function(){return this._array[this._start+2*this._stride]},set:function(w){this._array[this._start+2*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,3,{get:function(){return this._array[this._start+3*this._stride]},set:function(w){this._array[this._start+3*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,4,{get:function(){return this._array[this._start+4*this._stride]},set:function(w){this._array[this._start+4*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,5,{get:function(){return this._array[this._start+5*this._stride]},set:function(w){this._array[this._start+5*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,6,{get:function(){return this._array[this._start+6*this._stride]},set:function(w){this._array[this._start+6*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,7,{get:function(){return this._array[this._start+7*this._stride]},set:function(w){this._array[this._start+7*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,8,{get:function(){return this._array[this._start+8*this._stride]},set:function(w){this._array[this._start+8*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,9,{get:function(){return this._array[this._start+9*this._stride]},set:function(w){this._array[this._start+9*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,10,{get:function(){return this._array[this._start+10*this._stride]},set:function(w){this._array[this._start+10*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,11,{get:function(){return this._array[this._start+11*this._stride]},set:function(w){this._array[this._start+11*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,12,{get:function(){return this._array[this._start+12*this._stride]},set:function(w){this._array[this._start+12*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,13,{get:function(){return this._array[this._start+13*this._stride]},set:function(w){this._array[this._start+13*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,14,{get:function(){return this._array[this._start+14*this._stride]},set:function(w){this._array[this._start+14*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,15,{get:function(){return this._array[this._start+15*this._stride]},set:function(w){this._array[this._start+15*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,16,{get:function(){return this._array[this._start+16*this._stride]},set:function(w){this._array[this._start+16*this._stride]=w},enumerable:!1,configurable:!0}),g}();A.ary2Ns=function(g,w,p,u){return p===void 0&&(p=0),u===void 0&&(u=1),new m(g,w,p,u)}},2789:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(2228),A)},2811:function(B,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function n(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(A,"__esModule",{value:!0}),A.TimingDeprecated=void 0;var w=h(5726),p=h(1662),u=function(){function c(a,n,s,r,i){a===void 0&&(a=0),n===void 0&&(n=0),s===void 0&&(s=0),this.startTime=a,this.duration=n,this.delay=s,this.proccessFunc=r,this.completeFunc=i,this._lastUpdateTimeStamp=0,this._processData={ratio:0,timeStamp:0,timeStampFromStart:0,timeStampFromLastUpdate:0}}return c.prototype.update=function(a){var n=(a-this.startTime)/this.duration;n>=0&&(this._processData.ratio=n,this._processData.timeStamp=a,this._processData.timeStampFromStart=a-this.startTime,this._processData.timeStampFromLastUpdate=a-this._lastUpdateTimeStamp,this._lastUpdateTimeStamp=a,this.proccessFunc&&this.proccessFunc(this._processData),n>=1&&this.completeFunc&&this.completeFunc())},c.prototype.start=function(){this.startTime=performance.now()+this.delay,this._lastUpdateTimeStamp=this.startTime},c}(),f=function(c){function a(n,s,r){n===void 0&&(n=1e3),s===void 0&&(s=0),r===void 0&&(r=p.defaultStartUpdateFunc);var i,l=this;function d(){i&&i()}return(l=c.call(this,function(C){var _=C.progressFunc,b=C.completeFunc,E=(C.errorFunc,l.startUpdateFunc&&l.startUpdateFunc(l._base.update.bind(l._base))||void 0);return l._base.startTime=performance.now(),l._base.duration=l.duration,l._base.delay=l.delay,l._base.proccessFunc=_,l._base.completeFunc=function(){E&&E(),b()},l._base.start(),i=E,d})||this)._base=new u,l.duration=n,l.delay=s,l.startUpdateFunc=r,l}return g(a,c),Object.defineProperty(a.prototype,"startTime",{get:function(){return this._base.startTime},enumerable:!1,configurable:!0}),a}(w.ProcessingDeprecated);A.TimingDeprecated=f},2830:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A._setTranslation=A._getTranslation=void 0;var m=h(2731);A._getTranslation=function(g,w){return(w=w||(0,m.createNumbers)(3))[0]=g[12],w[1]=g[13],w[2]=g[14],w},A._setTranslation=function(g,w,p){return g!==(p=p||(0,m.createNumbers)(16))&&(p[0]=g[0],p[1]=g[1],p[2]=g[2],p[3]=g[3],p[4]=g[4],p[5]=g[5],p[6]=g[6],p[7]=g[7],p[8]=g[8],p[9]=g[9],p[10]=g[10],p[11]=g[11],p[15]=g[15]),p[12]=w[0],p[13]=w[1],p[14]=w[2],p}},2882:function(B,A){var h=this&&this.__values||function(m){var g=typeof Symbol=="function"&&Symbol.iterator,w=g&&m[g],p=0;if(w)return w.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&p>=m.length&&(m=void 0),{value:m&&m[p++],done:!m}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.pluckProperty=void 0,A.pluckProperty=function(m,g){for(var w,p,u=[],f=2;f<arguments.length;f++)u[f-2]=arguments[f];var c=m;try{for(var a=h(u),n=a.next();!n.done;n=a.next()){var s=n.value;if(!c[s]){if(!g)return;c[s]={}}c=c[s]}}catch(r){w={error:r}}finally{try{n&&!n.done&&(p=a.return)&&p.call(a)}finally{if(w)throw w.error}}return c}},2921:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}),w=this&&this.__read||function(a,n){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,i,l=s.call(a),d=[];try{for(;(n===void 0||n-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(C){i={error:C}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return d},p=this&&this.__spreadArray||function(a,n,s){if(s||arguments.length===2)for(var r,i=0,l=n.length;i<l;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return a.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(A,"__esModule",{value:!0}),A.Fetching=void 0;var u=h(643),f=h(5726),c=function(a){function n(s){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var l=a.call(this,function(d){for(var C=d.progressFunc,_=d.completeFunc,b=d.errorFunc,E=[],F=1;F<arguments.length;F++)E[F-1]=arguments[F];var Q={},U={loaded:0,total:0},T=l._fetchArgs||E;if(T.length===0)throw new Error("fetchArgs.length === 0");if(u.cancelableFetchDeprecated.apply(void 0,p([Q,function(S,P){U.loaded=S,U.total=P,C(U)}],w(T),!1)).then(s).then(_).catch(function(S){S instanceof f.CancelError||b(S)}),!Q.cancelFunc)throw new Error("!cancelResult.cancelFunc");return Q.cancelFunc})||this;return r.length>0&&(l._fetchArgs=r),l}return g(n,a),Object.defineProperty(n.prototype,"fetchArgs",{get:function(){return this._fetchArgs},enumerable:!1,configurable:!0}),n}(h(6891).ProcessingDeprecated);A.Fetching=c},2967:(B,A)=>{var h,m;Object.defineProperty(A,"__esModule",{value:!0}),A.encodeString=void 0,A.encodeString=function(g,w){var p,u=h=h||new TextEncoder,f=0;if(u.encodeInto){var c=void 0;w?c=w:(p=3*g.length,(!m||m.byteLength<p)&&(m=new Uint8Array(2*p)),c=new Uint8Array(m.buffer,0,p));var a=u.encodeInto(g,c);if(a.written===void 0)throw new Error("encodedResults.written === 'undefined'");f=a.written}else{var n=u.encode(g);w&&w.set(n),f=n.byteLength}return f}},2968:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getFinalUri=void 0;var m=h(6432);A.getFinalUri=function(g,w){var p=(0,m.isAbsoluteUri)(g),u=g;return(0,m.isBase64Uri)(g)||p||w&&(u=w+"/"+g),u}},2999:function(B,A,h){var m=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,n,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(i){n={error:i}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(n)throw n.error}}return r};Object.defineProperty(A,"__esModule",{value:!0}),A.withoutUndefinedArray=A.withoutUndefined=void 0;var g=h(2168),w=h(3915);function p(u,f,c,a){var n=m((0,g.getReactFuncs)(u),3),s=n[0],r=n[1],i=n[2],l=(0,w.react)(f,c,a);return l.dispose(l.changed.dwon(function(){l.value!==f?r(l.value):r(void 0)})),s()!==void 0&&(l.value=s()),l.dispose(i.don(function(d){l.value=d!==void 0?d:f})),l}A.withoutUndefined=p,A.withoutUndefinedArray=function(u,f,c,a){return p(u,f,function(n,s){return n.length===s.length&&n.every(function(r,i){return c&&c(r,s[i])||r===s[i]})},function(n,s){for(var r=s||new Array(n.length),i=0;i<n.length;++i)r[i]=a?a(n[i]):n[i];return r.length=n.length,r})}},3009:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.nextPow2=void 0,A.nextPow2=function(h){return h|=0,h--,h|=h>>1,h|=h>>2,h|=h>>4,h|=h>>8,h|=h>>16,++h}},3022:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0})},3096:function(B,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function n(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(A,"__esModule",{value:!0}),A.VideoProcessing=void 0;var w=h(1662),p=h(8106),u=function(c){function a(n,s){var r=c.call(this)||this;r._complexImage=n,r._videoSrc=s;var i,l=document.createElement("video");return l.src=r._videoSrc,l.style.position="absolute",l.style.top="0px",l.style.left="0px",l.style.zIndex="-100",l.style.visibility="hidden",l.style.width="0px",l.style.height="0px",(i=function(){l.crossOrigin=r._complexImage.crossOrigin})(),r.dispose(r._complexImage.crossOriginChanged.disposableOn(i)),(i=function(){l.autoplay=r._complexImage.autoplay})(),r.dispose(r._complexImage.autoplayChanged.disposableOn(i)),(i=function(){l.loop=r._complexImage.loop})(),r.dispose(r._complexImage.loopChanged.disposableOn(i)),l.muted=!0,document.body.appendChild(l),r._element=l,r.dispose(function(){return document.body.removeChild(l)}),r}return g(a,c),Object.defineProperty(a.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),a}(w.Destroyable),f=function(c){function a(n,s){var r=c.call(this)||this;return r._complexImage=n,r._imageUri=s,r._videoDom=r.disposeVar(new u(r._complexImage,r._imageUri)),r._update=r.disposeVar((0,p.createAnimateFrameWithStartValues)(function(){return r.update()})),r._updateStart=r._update.start(),r}return g(a,c),Object.defineProperty(a.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"videoElement",{get:function(){return this._videoDom.element},enumerable:!1,configurable:!0}),a.prototype.update=function(){if(!(this.videoElement.readyState<2)){var n=this._complexImage,s=this.videoElement,r=s.videoWidth,i=s.videoHeight;n.size=[r,i],n.pixelFormat="RGBA",n.copyTexture({source:this.videoElement})}},a}(w.Destroyable);A.VideoProcessing=f},3207:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.defineReactiveProp=void 0;var m=h(7372);A.defineReactiveProp=function(g,w,p,u){var f,c="_"+w,a="_"+w+"Changed",n=w+"Changed";Object.defineProperties(g.prototype,((f={})[w]={get:function(){return this[c]===void 0&&p!==void 0&&(this[c]=p),this[c]},set:function(s){if(this[c]===void 0&&p!==void 0&&(this[c]=p),u?!u(this[c],s):this[c]!==s){var r=this[c];this[c]=s,this[a]&&this[a].emit(s,r)}}},f[n]={get:function(){var s=this;return this[a]===void 0&&(this[a]=new m.Event,this.dispose!==void 0&&this.dispose(function(){return s[a].destroy()})),this[a]}},f))}},3249:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.prevPow2=void 0,A.prevPow2=function(h){return h|=0,h|=h>>1,h|=h>>2,h|=h>>4,h|=h>>8,h|=h>>16,++h>>1}},3280:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.length=void 0;var m=h(6138),g=function(w){return++w};A.length=function(w){return(0,m.reduce)(w,g,0)}},3281:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(4416),A),g(h(9122),A),g(h(9812),A),g(h(312),A),g(h(4833),A),g(h(5590),A),g(h(4915),A),g(h(8089),A),g(h(2731),A),g(h(6172),A),g(h(7215),A),g(h(7665),A),g(h(9549),A),g(h(5873),A),g(h(602),A),g(h(9898),A),g(h(5985),A),g(h(7500),A),g(h(7413),A)},3300:function(B,A,h){var m=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C},g=this&&this.__spreadArray||function(n,s,r){if(r||arguments.length===2)for(var i,l=0,d=s.length;l<d;l++)!i&&l in s||(i||(i=Array.prototype.slice.call(s,0,l)),i[l]=s[l]);return n.concat(i||Array.prototype.slice.call(s))};Object.defineProperty(A,"__esModule",{value:!0}),A._getMaximumScale=A._setScale=A._getScale=void 0;var w=h(2731),p=h(9898),u=h(6021);function f(n,s){return(s=s||(0,w.createNumbers)(3))[0]=p.Vector.magnitude([n[0],n[1],n[2]]),s[1]=p.Vector.magnitude([n[4],n[5],n[6]]),s[2]=p.Vector.magnitude([n[8],n[9],n[10]]),s}A._getScale=f;var c=(0,w.createNumbers)(3);A._setScale=function(n,s,r){var i=f(n,c),l=p.Vector.divide(s,i,c);return(0,u._multiplyByScale)(n,l,r)};var a=(0,w.createNumbers)(3);A._getMaximumScale=function(n){var s=f(n,a);return Math.max.apply(Math,g([],m(p.Vector.itr(s)),!1))}},3315:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}),w=this&&this.__generator||function(a,n){var s,r,i,l,d={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return l={next:C(0),throw:C(1),return:C(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function C(_){return function(b){return function(E){if(s)throw new TypeError("Generator is already executing.");for(;l&&(l=0,E[0]&&(d=0)),d;)try{if(s=1,r&&(i=2&E[0]?r.return:E[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,E[1])).done)return i;switch(r=0,i&&(E=[2&E[0],i.value]),E[0]){case 0:case 1:i=E;break;case 4:return d.label++,{value:E[1],done:!1};case 5:d.label++,r=E[1],E=[0];continue;case 7:E=d.ops.pop(),d.trys.pop();continue;default:if(!((i=(i=d.trys).length>0&&i[i.length-1])||E[0]!==6&&E[0]!==2)){d=0;continue}if(E[0]===3&&(!i||E[1]>i[0]&&E[1]<i[3])){d.label=E[1];break}if(E[0]===6&&d.label<i[1]){d.label=i[1],i=E;break}if(i&&d.label<i[2]){d.label=i[2],d.ops.push(E);break}i[2]&&d.ops.pop(),d.trys.pop();continue}E=n.call(a,d)}catch(F){E=[6,F],r=0}finally{s=i=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([_,b])}}},p=this&&this.__values||function(a){var n=typeof Symbol=="function"&&Symbol.iterator,s=n&&a[n],r=0;if(s)return s.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&r>=a.length&&(a=void 0),{value:a&&a[r++],done:!a}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.UiTree=void 0;var u=h(1662),f=h(8106),c=function(a){function n(s){var r=a.call(this)||this;r._tree=s,r._redrawEvent=r.disposeVar(new u.Event),r._containerScrollTop=r.disposeVar((0,u.react)(0)),r._containerClientHeight=r.disposeVar((0,u.react)(-1)),r._container=r.disposeVar((0,u.react)(void 0)),r._redrawInfo={topFreeSpaceHeight:0,topUnvisibleItemNum:0,middleTreeItems:[],bottomFreeSpaceHeight:0,bottomUnvisibleItemNum:0};var i,l=r._containerClientHeight,d=r._containerScrollTop,C=r._tree._forceRedrawEvent,_=r.disposeVar((0,u.createNextAnimateFrameEvent)(r._tree.itemDivHeightChanged,r._tree.itemChildrenChanged,r._tree.itemsChanged,l.changed,d.changed,C)),b=r.redrawInfo,E=function(F){var Q=F.uiTreeObject;return!(!F.children||Q&&Q.collapsed)};return r.dispose(_.disposableOn(function(){var F,Q,U,T;if(b.topFreeSpaceHeight=0,b.topUnvisibleItemNum=0,b.middleTreeItems.length=0,b.bottomFreeSpaceHeight=0,b.bottomUnvisibleItemNum=0,r._containerClientHeight.value>=0){var S=(0,u.length)(r._tree.getDescendants(E)),P=r._tree.itemDivHeight,I=P*S,M=(0,u.max)([(0,u.min)([(0,u.max)([I-l.value,0]),d.value]),0]),K=M/P|0,W=0|Math.ceil((M-K*P+l.value)/P);K>0&&(b.topUnvisibleItemNum=K,b.topFreeSpaceHeight=K*r._tree.itemDivHeight);var L=K+W,O=0;try{for(var H=p(r._tree.getDescendants(E)),k=H.next();!k.done;k=H.next()){var G=k.value;if(O>=L)break;O>=K&&b.middleTreeItems.push(G),++O}}catch(X){F={error:X}}finally{try{k&&!k.done&&(Q=H.return)&&Q.call(H)}finally{if(F)throw F.error}}var D=S-K-W;D>0&&(b.bottomUnvisibleItemNum=D,b.bottomFreeSpaceHeight=D*r._tree.itemDivHeight)}else try{for(var R=p(r._tree.getDescendants(E)),N=R.next();!N.done;N=R.next())G=N.value,b.middleTreeItems.push(G)}catch(X){U={error:X}}finally{try{N&&!N.done&&(T=R.return)&&T.call(R)}finally{if(U)throw U.error}}r._redrawEvent.emit(b)})),r.dispose(function(){return i&&(i.destroy(),i=void 0)}),r.dispose(r.containerChanged.disposableOn(function(F){i&&(i.destroy(),i=void 0),F&&(i=(0,f.createAnimateFrame)()).start(function(){var Q=F,U=Q.scrollTop,T=Q.clientHeight;U===void 0||T===void 0?(0,u.oneTimeWarning)("createUiTreeWithContainer error: conainter has no scrollTop or clientHeight property!"):(r.containerScrollTop=U,r.containerClientHeight=T)})})),r}return g(n,a),Object.defineProperty(n.prototype,"container",{get:function(){return this._container.value},set:function(s){this._container.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"containerChanged",{get:function(){return this._container.changed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"redrawInfo",{get:function(){return this._redrawInfo},enumerable:!1,configurable:!0}),n.prototype.getTreeItemPos=function(s){var r,i,l=0,d=!1;try{for(var C=p(this._tree.getDescendants(function(b){var E=b.uiTreeObject;return!(!b.children||E&&E.collapsed)})),_=C.next();!_.done;_=C.next()){if(_.value===s){d=!0;break}++l}}catch(b){r={error:b}}finally{try{_&&!_.done&&(i=C.return)&&i.call(C)}finally{if(r)throw r.error}}return d?[l,l*this._tree.itemDivHeight]:void 0},n.prototype.collapseAll=function(){var s,r;console.log("collapseAll");try{for(var i=p(this.tree.root.getDescendants()),l=i.next();!l.done;l=i.next())l.value.uiTreeObject.collapsed=!0}catch(d){s={error:d}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}},Object.defineProperty(n.prototype,"tree",{get:function(){return this._tree},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"redrawEvent",{get:function(){return this._redrawEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"containerScrollTop",{get:function(){return this._containerScrollTop.value},set:function(s){this._containerScrollTop.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"containerScrollTopChanged",{get:function(){return this._containerScrollTop.changed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"containerClientHeight",{get:function(){return this._containerClientHeight.value},set:function(s){this._containerClientHeight.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"containerClientHeightChanged",{get:function(){return this._containerClientHeight.changed},enumerable:!1,configurable:!0}),n.prototype.getAllItems=function(s){var r,i,l,d,C,_;return w(this,function(b){switch(b.label){case 0:b.trys.push([0,5,6,7]),r=p(this._tree.getDescendants()),i=r.next(),b.label=1;case 1:return i.done?[3,4]:(l=i.value,s&&!s(l)?[3,3]:[4,l]);case 2:b.sent(),b.label=3;case 3:return i=r.next(),[3,1];case 4:return[3,7];case 5:return d=b.sent(),C={error:d},[3,7];case 6:try{i&&!i.done&&(_=r.return)&&_.call(r)}finally{if(C)throw C.error}return[7];case 7:return[2]}})},n.prototype.getAllSelectedItems=function(){return this.getAllItems(function(s){return s.uiTreeObject.selected})},n.prototype.getAllCheckedLeafItems=function(){return this.getAllItems(function(s){return!s.children&&s.uiTreeObject.checkedStatus==="checked"})},n.prototype.clearAllSelectedItems=function(s){var r,i;try{for(var l=p(this.getAllSelectedItems()),d=l.next();!d.done;d=l.next()){var C=d.value;s&&s.includes(C)||(C.uiTreeObject.selected=!1)}}catch(_){r={error:_}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}},n}(u.Destroyable);A.UiTree=c},3428:()=>{ArrayBuffer.transfer||(ArrayBuffer.transfer=function(B,A){B=Object(B);var h=new ArrayBuffer(A);if(!(B instanceof ArrayBuffer&&h instanceof ArrayBuffer))throw new TypeError("Source and destination must be ArrayBuffer instances");if(h.byteLength>=B.byteLength){var m=0,g=B.byteLength;[8,4,2,1].forEach(function(w){if(g>=w){var p=function(u,f,c,a,n){var s=Uint8Array;switch(u){case 8:s=Float64Array;break;case 4:s=Float32Array;break;case 2:s=Uint16Array;break;default:s=Uint8Array}for(var r=new s(f,a,Math.trunc(n/u)),i=new s(c,a,Math.trunc(n/u)),l=0;l<i.length;l++)i[l]=r[l];return{nextOffset:r.byteOffset+r.byteLength,leftBytes:f.byteLength-(r.byteOffset+r.byteLength)}}(w,B,h,m,g);m=p.nextOffset,g=p.leftBytes}})}return h})},3457:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getBaseUri=void 0,A.getBaseUri=function(h){return h.substr(0,h.lastIndexOf("/"))}},3526:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0})},3631:(B,A)=>{function h(m,g){return m instanceof Promise?m.then(g):Promise.resolve(m).then(g)}Object.defineProperty(A,"__esModule",{value:!0}),A.when=void 0,A.when=h,h.defer=function(){var m={},g=new Promise(function(w,p){m.resolve=w,m.reject=p});return m.promise=g,m},h.resolve=function(m){return Promise.resolve(m)}},3639:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__values||function(n){var s=typeof Symbol=="function"&&Symbol.iterator,r=s&&n[s],i=0;if(r)return r.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.AnimationPlayer=void 0;var p=h(2429),u=h(7372),f=h(7372),c=h(2127),a=function(n){function s(r){r===void 0&&(r=5e3);var i=n.call(this)||this;return i._animation=new p.Animation(r),i.dispose(function(){i.destroyAllChannels(),i._animation.destroy()}),i._player=new c.Player(r),i.dispose(function(){return i._player.destroy()}),i._initAnimation(),i._selectedChannelChanged=new f.Event,i}return g(s,n),Object.defineProperty(s.prototype,"animation",{get:function(){return this._animation},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"player",{get:function(){return this._player},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"selectedChannelChanged",{get:function(){return this._selectedChannelChanged||(this._selectedChannelChanged=new f.Event),this._selectedChannelChanged},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"selectedChannel",{get:function(){return this._selectedChannel},set:function(r){if(this._selectedChannel!==r){var i=this._selectedChannel;this._selectedChannel=r,this._selectedChannelChanged&&this._selectedChannelChanged.emit(r,i)}},enumerable:!1,configurable:!0}),s.prototype._initAnimation=function(){var r=this,i=this._animation,l=this._player;i.progressFunc=function(d){},this.dispose(function(){i.progressFunc=void 0,i.enterFunc=void 0,i.leaveFunc=void 0}),this.dispose(l.currentTimeChangedEvent.disposableOn(function(d,C){l.playing?i.currentTime=d:(i.currentTime=d,i.currentTime=Number.NaN)})),this.dispose(l.startPlayingEvent.disposableOn(function(d){i.currentTime=d})),this.dispose(l.stopPlayingEvent.disposableOn(function(d){i.currentTime=Number.NaN})),this.dispose(this._animation.changedEvent.disposableOn(function(d){r._player.duration=d.duration}))},s.prototype.addChannel=function(){var r=new p.Channel(1e3,2e3);if(this._selectedChannel){var i=this._animation.channels.indexOf(this._selectedChannel);this._animation.channels.splice(i+1,0,r)}else this._animation.channels.push(r);return r},s.prototype.removeChannel=function(){if(this._selectedChannel){var r=this._animation.channels.indexOf(this._selectedChannel);r!==-1&&(this._animation.channels.splice(r,1),this._selectedChannel.destroy()),this._selectedChannel=void 0}else console.warn("请先选择需要删除的Channel.")},s.prototype.raiseChannel=function(r){var i=this._animation.channels.indexOf(r);if(i===-1)console.warn("-1 === index");else if(i===0)console.warn("cannot raise current channel!");else{if(!(i>0))throw new Error("should not be here!");this._animation.channels.splice(i,1),this._animation.channels.splice(i-1,0,r)}},s.prototype.lowerChannel=function(r){var i=this._animation.channels.indexOf(r);if(i===-1)console.warn("-1 === index");else if(i===this._animation.channels.length-1)console.warn("cannot lower current channel!");else{if(!(i>=0))throw new Error("should not be here!");this._animation.channels.splice(i,1),this._animation.channels.splice(i+1,0,r)}},s.prototype.destroyAllChannels=function(){var r,i,l=this._animation;if(l.hasChannels){try{for(var d=w(l.channels),C=d.next();!C.done;C=d.next()){var _=C.value;(0,p.destroyAnimationWithChildren)(_.animation)}}catch(b){r={error:b}}finally{try{C&&!C.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}l.channels.length=0,this._selectedChannel=void 0}},s}(u.Destroyable);A.AnimationPlayer=a},3735:function(B,A,h){var m=this&&this.__generator||function(w,p){var u,f,c,a,n={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(r){return function(i){return function(l){if(u)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(n=0)),n;)try{if(u=1,f&&(c=2&l[0]?f.return:l[0]?f.throw||((c=f.return)&&c.call(f),0):f.next)&&!(c=c.call(f,l[1])).done)return c;switch(f=0,c&&(l=[2&l[0],c.value]),l[0]){case 0:case 1:c=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,f=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(!((c=(c=n.trys).length>0&&c[c.length-1])||l[0]!==6&&l[0]!==2)){n=0;continue}if(l[0]===3&&(!c||l[1]>c[0]&&l[1]<c[3])){n.label=l[1];break}if(l[0]===6&&n.label<c[1]){n.label=c[1],c=l;break}if(c&&n.label<c[2]){n.label=c[2],n.ops.push(l);break}c[2]&&n.ops.pop(),n.trys.pop();continue}l=p.call(w,n)}catch(d){l=[6,d],f=0}finally{u=c=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([r,i])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.getMinMaxPosition=void 0;var g=h(6362);A.getMinMaxPosition=function(w,p){var u,f,c,a,n,s,r,i;if(w.length%3!=0)throw new Error("positions.length % 3 !== 0");var l=w.length/3;function d(b){var E;return m(this,function(F){switch(F.label){case 0:E=0,F.label=1;case 1:return E<l?[4,w[3*E+b]]:[3,4];case 2:F.sent(),F.label=3;case 3:return++E,[3,1];case 4:return[2]}})}var C=(u=p==null?void 0:p.min)!==null&&u!==void 0?u:[NaN,NaN,NaN],_=(f=p==null?void 0:p.max)!==null&&f!==void 0?f:[NaN,NaN,NaN];return C[0]=(c=(0,g.min)(d(0)))!==null&&c!==void 0?c:NaN,C[1]=(a=(0,g.min)(d(1)))!==null&&a!==void 0?a:NaN,C[2]=(n=(0,g.min)(d(2)))!==null&&n!==void 0?n:NaN,_[0]=(s=(0,g.max)(d(0)))!==null&&s!==void 0?s:NaN,_[1]=(r=(0,g.max)(d(1)))!==null&&r!==void 0?r:NaN,_[2]=(i=(0,g.max)(d(2)))!==null&&i!==void 0?i:NaN,{min:C,max:_}}},3804:function(B,A,h){var m=this&&this.__generator||function(p,u){var f,c,a,n,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return n={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(n[Symbol.iterator]=function(){return this}),n;function r(i){return function(l){return function(d){if(f)throw new TypeError("Generator is already executing.");for(;n&&(n=0,d[0]&&(s=0)),s;)try{if(f=1,c&&(a=2&d[0]?c.return:d[0]?c.throw||((a=c.return)&&a.call(c),0):c.next)&&!(a=a.call(c,d[1])).done)return a;switch(c=0,a&&(d=[2&d[0],a.value]),d[0]){case 0:case 1:a=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,c=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(!((a=(a=s.trys).length>0&&a[a.length-1])||d[0]!==6&&d[0]!==2)){s=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){s.label=d[1];break}if(d[0]===6&&s.label<a[1]){s.label=a[1],a=d;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(d);break}a[2]&&s.ops.pop(),s.trys.pop();continue}d=u.call(p,s)}catch(C){d=[6,C],c=0}finally{f=a=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([i,l])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.objsIterator=void 0;var g=h(1803),w=h(8144);A.objsIterator=function(p,u){var f,c,a,n;return m(this,function(s){switch(s.label){case 0:f=(0,w.getIterator)(p),s.label=1;case 1:return c=f.next(),a=c.done,n=c.value,a?[3,3]:[4,(0,g.getValueFromProps)(n,u)];case 2:return s.sent(),[3,1];case 3:return[2]}})}},3815:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(9355),A),g(h(4344),A)},3915:function(B,A,h){var m,g=this&&this.__extends||(m=function(l,d){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,_){C.__proto__=_}||function(C,_){for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(C[b]=_[b])},m(l,d)},function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function C(){this.constructor=l}m(l,d),l.prototype=d===null?Object.create(d):(C.prototype=d.prototype,new C)}),w=this&&this.__assign||function(){return w=Object.assign||function(l){for(var d,C=1,_=arguments.length;C<_;C++)for(var b in d=arguments[C])Object.prototype.hasOwnProperty.call(d,b)&&(l[b]=d[b]);return l},w.apply(this,arguments)},p=this&&this.__read||function(l,d){var C=typeof Symbol=="function"&&l[Symbol.iterator];if(!C)return l;var _,b,E=C.call(l),F=[];try{for(;(d===void 0||d-- >0)&&!(_=E.next()).done;)F.push(_.value)}catch(Q){b={error:Q}}finally{try{_&&!_.done&&(C=E.return)&&C.call(E)}finally{if(b)throw b.error}}return F},u=this&&this.__spreadArray||function(l,d,C){if(C||arguments.length===2)for(var _,b=0,E=d.length;b<E;b++)!_&&b in d||(_||(_=Array.prototype.slice.call(d,0,b)),_[b]=d[b]);return l.concat(_||Array.prototype.slice.call(d))};Object.defineProperty(A,"__esModule",{value:!0}),A.reactPosition2DsSet=A.reactPositionsSet=A.reactPositions=A.reactJsonCollectionWithUndefined=A.reactJsonCollection=A.reactArrayCollectionWithUndefined=A.reactArrayCollection=A.reactPlainObjectWithUndefined=A.reactPlainObject=A.reactJsonWithUndefined=A.reactJson=A.reactDeepArrayWithUndefined=A.reactDeepArray=A.reactArrayWithUndefined=A.reactArray=A.react=A.ReactiveVariable=void 0;var f=h(9359),c=h(4899),a=function(l){function d(C,_,b){var E=l.call(this)||this;return E._equalsFunc=_,E._assignFunc=b,E._value=E._assignFunc&&E._assignFunc(C,void 0)||C,E}return g(d,l),Object.defineProperty(d.prototype,"assignFunc",{get:function(){return this._assignFunc},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"equalsFunc",{get:function(){return this._equalsFunc},enumerable:!1,configurable:!0}),d.prototype.equals=function(C){return this._equalsFunc?this._equalsFunc(this._value,C):this._value===C},Object.defineProperty(d.prototype,"value",{get:function(){return this._value},set:function(C){if(this._equalsFunc?!this._equalsFunc(this._value,C):this._value!==C){if(this.toChangeFunc&&!this.toChangeFunc(C,this._value))return;this._assignFunc?(this._oldValue=this._assignFunc(this._value,this._oldValue),this._value=this._assignFunc(C,this._value)):(this._oldValue=this._value,this._value=C),this._changed&&this._changed.emit(C,this._oldValue)}},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"changed",{get:function(){return this._changed||(this._changed=this.disposeVar(new c.Event)),this._changed},enumerable:!1,configurable:!0}),d.prototype.forceChange=function(){this._changed&&this._changed.emit(this._value,this._value)},d}(f.Destroyable);function n(l,d,C){return new a(l,d,C)}function s(l,d,C){return n(l,function(_,b){return _.length===b.length&&_.every(function(E,F){return d&&d(E,b[F])||E===b[F]})},function(_,b){var E=b||new Array(_.length);return E.length=_.length,_.forEach(function(F,Q){E[Q]=C?C(F):F}),E})}function r(l,d,C){return n(l,function(_,b){return _===void 0||b===void 0?_===void 0&&b===void 0:_.length===b.length&&_.every(function(E,F){return d&&d(E,b[F])||E===b[F]})},function(_,b){if(_){var E=b||new Array(_.length);return E.length=_.length,_.forEach(function(F,Q){E[Q]=C?C(F):F}),E}})}function i(l){return r(l,function(d,C){return d.every(function(_,b){return _===C[b]})},function(d){return u([],p(d),!1)})}A.ReactiveVariable=a,A.react=n,A.reactArray=function(l){return new a(l,function(d,C){return d.length===C.length&&d.every(function(_,b){return _===C[b]})},function(d,C){var _=C||new Array(d.length);return _.length=d.length,d.forEach(function(b,E){return _[E]=b}),_})},A.reactArrayWithUndefined=function(l){return n(l,function(d,C){return d===void 0||C===void 0?d===void 0&&C===void 0:d.length===C.length&&d.every(function(_,b){return _===C[b]})},function(d,C){if(d){var _=C||new Array(d.length);return _.length=d.length,d.forEach(function(b,E){return _[E]=b}),_}})},A.reactDeepArray=s,A.reactDeepArrayWithUndefined=r,A.reactJson=function(l){return new a(l,function(d,C){return d===C||d!==void 0&&C!==void 0&&JSON.stringify(d)===JSON.stringify(C)},function(d,C){if(d!==void 0)return JSON.parse(JSON.stringify(d))})},A.reactJsonWithUndefined=function(l){return new a(l,function(d,C){return d===C||d!==void 0&&C!==void 0&&JSON.stringify(d)===JSON.stringify(C)},function(d,C){if(d!==void 0)return JSON.parse(JSON.stringify(d))})},A.reactPlainObject=function(l){return new a(l,function(d,C){if(d===C)return!0;if(d===void 0||C===void 0)return!1;var _=Object.keys(d),b=Object.keys(C);return _.length===b.length&&_.every(function(E,F){return E===b[F]&&d[E]===C[E]})},function(d,C){return d&&w({},d)})},A.reactPlainObjectWithUndefined=function(l){return new a(l,function(d,C){if(d===C)return!0;if(d===void 0||C===void 0)return!1;var _=Object.keys(d),b=Object.keys(C);return _.length===b.length&&_.every(function(E,F){return E===b[F]&&d[E]===C[E]})},function(d,C){return d&&w({},d)})},A.reactArrayCollection=function(l){return s(l,function(d,C){return d.every(function(_,b){return _===C[b]})},function(d){return u([],p(d),!1)})},A.reactArrayCollectionWithUndefined=i,A.reactJsonCollection=function(l){return s(l,function(d,C){return JSON.stringify(d)===JSON.stringify(C)},function(d){return JSON.parse(JSON.stringify(d))})},A.reactJsonCollectionWithUndefined=function(l){return r(l,function(d,C){return JSON.stringify(d)===JSON.stringify(C)},function(d){return JSON.parse(JSON.stringify(d))})},A.reactPositions=function(l){return i(l)},A.reactPositionsSet=function(l){return r(l,function(d,C){return d.length===C.length&&d.every(function(_,b){return _.every(function(E,F){return E===C[b][F]})})},function(d){return d.map(function(C){return u([],p(C),!1)})})},A.reactPosition2DsSet=function(l){return r(l,function(d,C){return d.length===C.length&&d.every(function(_,b){return _.every(function(E,F){return E===C[b][F]})})},function(d){return d.map(function(C){return u([],p(C),!1)})})}},3951:function(B,A,h){var m,g=this&&this.__extends||(m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(c[n]=a[n])},m(u,f)},function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function c(){this.constructor=u}m(u,f),u.prototype=f===null?Object.create(f):(c.prototype=f.prototype,new c)});Object.defineProperty(A,"__esModule",{value:!0}),A.IFrameBorderedPosFloatDiv=void 0;var w=h(7372),p=function(u){function f(){var c=u.call(this)||this,a=document.createElement("iframe");a.style.cssText="width: 100%; height: 100%; border-width: 0px; border-radius: 5px; display: block;",a.src="http://www.weather.com.cn/live/index.shtml",c._iframe=a,c.innerContentDiv.appendChild(a);var n=function(s){s.source===c._iframe.contentWindow&&(c._iframeMessageEvent?c._iframeMessageEvent.emit(s):console.warn("iframe消息接收到未处理!data: ".concat(s.data)))};return window.addEventListener("message",n),c.dispose(function(){window.removeEventListener("message",n)}),c}return g(f,u),f.prototype.reset=function(){u.prototype.reset.call(this),this.src=""},Object.defineProperty(f.prototype,"src",{get:function(){return this._iframe.src},set:function(c){this._iframe.src!==c&&(this._iframe.src=c)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"iframe",{get:function(){return this._iframe},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"iframeMessageEvent",{get:function(){return this._iframeMessageEvent=this._iframeMessageEvent||new w.Event,this._iframeMessageEvent},enumerable:!1,configurable:!0}),f}(h(4143).BorderedPosFloatDiv);A.IFrameBorderedPosFloatDiv=p},3983:(B,A)=>{function h(m,g,w){for(var p=0;p<w;++p)if(m[p]!==g[p])return!1;return!0}Object.defineProperty(A,"__esModule",{value:!0}),A.equalsPenSplineVertexType=void 0,A.equalsPenSplineVertexType=function(m,g,w){return h(m.position,g.position,w)&&(m.leftPosition===g.leftPosition===void 0||m.leftPosition&&g.leftPosition&&h(m.leftPosition,g.leftPosition,w)||!1)&&(m.rightPosition===g.rightPosition===void 0||m.rightPosition&&g.rightPosition&&h(m.rightPosition,g.rightPosition,w)||!1)}},4123:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C};Object.defineProperty(A,"__esModule",{value:!0}),A.CursorInfo=A.CursorFloatDiv=void 0;var p=h(7372),u=h(4621),f=h(7445),c=function(n){function s(){var r=n.call(this)||this;return r.contentDiv.style.backgroundColor="rgba(0, 0, 0, 0.8)",r.contentDiv.style.borderRadius="3px",r.contentDiv.style.color="rgb(255, 255, 255)",r.contentDiv.style.padding="1px 5px 1px 5px",r.contentDiv.style.fontSize="12px",r.contentDiv.style.whiteSpace="nowrap",r.contentDiv.innerText="未定义光标信息!",r.originRatioX=0,r.originRatioY=0,r.originOffsetX=-16,r}return g(s,n),s}(f.PosFloatDiv);A.CursorFloatDiv=c;var a=function(n){function s(r,i){var l=n.call(this)||this;l._pointerOut=l.disposeVar((0,p.react)(!1)),l._show=l.disposeVar((0,p.react)(!0)),l._cursorDiv=new f.DivPoi(i,r),l.dispose(function(){return l._cursorDiv.destroy()});var d=function(_){var b=w((0,u.getDomEventCurrentTargetPos)(_),2),E=b[0],F=b[1];l._cursorDiv.floatDiv.winPos=[E,F]};r.addEventListener("pointermove",d),l.dispose(function(){return r.removeEventListener("pointermove",d)});var C=function(){l._cursorDiv.show=l.show&&l._pointerOut.value};return C(),l.dispose(l.showChanged.disposableOn(C)),l.dispose(l._pointerOut.changed.disposableOn(C)),l}return g(s,n),Object.defineProperty(s.prototype,"show",{get:function(){return this._show.value},set:function(r){this._show.value=r},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"showChanged",{get:function(){return this._show.changed},enumerable:!1,configurable:!0}),s.prototype.reset=function(){this._pointerOut.value=!1},Object.defineProperty(s.prototype,"cursorDiv",{get:function(){return this._cursorDiv},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"text",{get:function(){return this._cursorDiv.floatDiv.contentDiv.innerText},set:function(r){this._cursorDiv.floatDiv.contentDiv.innerText=r},enumerable:!1,configurable:!0}),s}(p.Destroyable);A.CursorInfo=a},4143:function(B,A,h){var m,g=this&&this.__extends||(m=function(s,r){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(i[d]=l[d])},m(s,r)},function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=s}m(s,r),s.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}),w=this&&this.__read||function(s,r){var i=typeof Symbol=="function"&&s[Symbol.iterator];if(!i)return s;var l,d,C=i.call(s),_=[];try{for(;(r===void 0||r-- >0)&&!(l=C.next()).done;)_.push(l.value)}catch(b){d={error:b}}finally{try{l&&!l.done&&(i=C.return)&&i.call(C)}finally{if(d)throw d.error}}return _};Object.defineProperty(A,"__esModule",{value:!0}),A.BorderedPosFloatDiv=A.createBottomTriangleElement=A.createCloseDiv=void 0;var p=h(7372),u=h(9986),f=["top","bottom","left","right"];function c(s,r,i){var l,d=document.createElement("div");return d.style.cssText="position: absolute; ".concat((l=i,Object.entries(l).map(function(C){var _=w(C,2),b=_[0],E=_[1];return f.includes(b)?"".concat(b,": ").concat(E,"px; "):""}).join(""))," background-color: ").concat(s,"; border-radius: ").concat(r,"px;"),d.innerHTML='<svg viewBox="0 0 1024 1024" style="display: block;" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2420" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M512 128C300.8 128 128 300.8 128 512s172.8 384 384 384 384-172.8 384-384S723.2 128 512 128zM512 832c-179.2 0-320-140.8-320-320s140.8-320 320-320 320 140.8 320 320S691.2 832 512 832z" p-id="2421" fill="#ffffff"></path><path d="M672 352c-12.8-12.8-32-12.8-44.8 0L512 467.2 396.8 352C384 339.2 364.8 339.2 352 352S339.2 384 352 396.8L467.2 512 352 627.2c-12.8 12.8-12.8 32 0 44.8s32 12.8 44.8 0L512 556.8l115.2 115.2c12.8 12.8 32 12.8 44.8 0s12.8-32 0-44.8L556.8 512l115.2-115.2C684.8 384 684.8 364.8 672 352z" p-id="2422" fill="#ffffff"></path></svg>',d}function a(s,r,i){i===void 0&&(i="rgba(0,0,0,0.7)");var l=document.createElement("div");l.style.cssText="margin: 0 auto; width: ".concat(s,"px; height: ").concat(r,"px; position: relative; pointer-events: none;");var d=document.createElement("div");return d.style.cssText="position: absolute; left: 0px; top: 0px; width: 0; height: 0; border-left: ".concat(.5*s,"px solid transparent; border-right: ").concat(.5*s,"px solid transparent; border-top: ").concat(r,"px solid ").concat(i,";"),l.appendChild(d),[l,d]}A.createCloseDiv=c,A.createBottomTriangleElement=a;var n=function(s){function r(){var i=s.call(this)||this;i._colorStr="rgba(0, 0, 0, 0.7)",i._divColorChanged=new p.Event,i._borderRadius=10;var l=document.createElement("div");l.style.cssText="position: relative; background-color: ".concat(i._colorStr,"; border-radius: ").concat(i._borderRadius,"px; padding: 5px; pointer-events: all;"),i._borderDiv=l;var d=c(i._colorStr,10,{top:3,right:3}),C=w(a(2*i._borderRadius,2*i._borderRadius,i._colorStr),2),_=C[0],b=C[1],E=document.createElement("div");i._innerContentDiv=E,l.appendChild(E),l.appendChild(d),i.contentDiv.appendChild(l),i.contentDiv.appendChild(_),d.style.opacity="0.1",d.onmouseenter=function(){d.style.opacity="1.0"},d.onmouseleave=function(){d.style.opacity="0.1"},d.onclick=function(){i._closeEvent&&i._closeEvent.emit()},i._closeDiv=d,i.dispose(i._divColorChanged.disposableOn(function(){b.style.borderTopColor=i._colorStr,l.style.backgroundColor=i._colorStr,_.style.width="".concat(2*i._borderRadius,"px"),_.style.height="".concat(2*i._borderRadius,"px"),b.style.borderLeft="".concat(i._borderRadius,"px"),b.style.borderRight="".concat(i._borderRadius,"px"),b.style.borderTop="".concat(2*i._borderRadius,"px")}));var F=function(Q){Q.key==="Escape"&&i._closeEvent&&i._closeEvent.emit()};return document.body.addEventListener("keydown",F,!0),i.dispose(function(){document.removeEventListener("keydown",F,!0)}),i}return g(r,s),Object.defineProperty(r.prototype,"borderDiv",{get:function(){return this._borderDiv},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"innerContentDiv",{get:function(){return this._innerContentDiv},enumerable:!1,configurable:!0}),r.prototype.reset=function(){this.show=!1,this.opacity=0,this._closeDiv.style.opacity="0.1",s.prototype.reset.call(this)},Object.defineProperty(r.prototype,"colorStr",{get:function(){return this._colorStr},set:function(i){this._colorStr!==i&&(this._colorStr=i,this._divColorChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"borderRadius",{get:function(){return this._borderRadius},set:function(i){this._borderRadius!==i&&(this._borderRadius=i,this._divColorChanged.emit())},enumerable:!1,configurable:!0}),r}(u.PosFloatDiv);A.BorderedPosFloatDiv=n},4206:function(B,A){var h,m=this&&this.__extends||(h=function(w,p){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var c in f)Object.prototype.hasOwnProperty.call(f,c)&&(u[c]=f[c])},h(w,p)},function(w,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function u(){this.constructor=w}h(w,p),w.prototype=p===null?Object.create(p):(u.prototype=p.prototype,new u)});Object.defineProperty(A,"__esModule",{value:!0}),A.CancelError=void 0;var g=function(w){function p(){return w!==null&&w.apply(this,arguments)||this}return m(p,w),p}(Error);A.CancelError=g},4209:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.inverse=void 0;var m=h(8089),g=h(2731),w=h(9898),p=(0,g.createNumbers)(9),u=(0,g.createNumbers)(9),f=(0,g.createNumbers)(4),c=(0,g.createNumbers)(4,0,0,0,1);A.inverse=function(a,n){var s=a[0],r=a[4],i=a[8],l=a[12],d=a[1],C=a[5],_=a[9],b=a[13],E=a[2],F=a[6],Q=a[10],U=a[14],T=a[3],S=a[7],P=a[11],I=a[15],M=Q*I,K=U*P,W=F*I,L=U*S,O=F*P,H=Q*S,k=E*I,G=U*T,D=E*P,R=Q*T,N=E*S,X=F*T,Y=M*C+L*_+O*b-(K*C+W*_+H*b),Z=K*d+k*_+R*b-(M*d+G*_+D*b),ie=W*d+G*C+N*b-(L*d+k*C+X*b),ae=H*d+D*C+X*_-(O*d+R*C+N*_),me=K*r+W*i+H*l-(M*r+L*i+O*l),we=M*s+G*i+D*l-(K*s+k*i+R*l),re=L*s+k*r+X*l-(W*s+G*r+N*l),se=O*s+R*r+N*i-(H*s+D*r+X*i),ye=(M=i*b)*S+(L=l*C)*P+(O=r*_)*I-((K=l*_)*S+(W=r*b)*P+(H=i*C)*I),be=K*T+(k=s*b)*P+(R=i*d)*I-(M*T+(G=l*d)*P+(D=s*_)*I),ue=W*T+G*S+(N=s*C)*I-(L*T+k*S+(X=r*d)*I),ne=H*T+D*S+X*P-(O*T+R*S+N*P),Me=W*Q+H*U+K*F-(O*U+M*F+L*Q),tt=D*U+M*E+G*Q-(k*Q+R*U+K*E),LA=k*F+X*U+L*E-(N*U+W*E+G*F),Ke=N*Q+O*E+R*F-(D*F+X*Q+H*E),he=s*Y+r*Z+i*ie+l*ae;if(n=n||(0,g.createNumbers)(16),Math.abs(he)<1e-21){if(w.Vector.equalsEpsilon(m.Matrix4.getMatrix3(a,p),u,1e-7)&&w.Vector.equals(m.Matrix4.getRow(a,3,f),c))return n[0]=0,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=0,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=0,n[11]=0,n[12]=-a[12],n[13]=-a[13],n[14]=-a[14],n[15]=1,n;throw new Error("matrix is not invertible because its determinate is zero.")}return he=1/he,n[0]=Y*he,n[1]=Z*he,n[2]=ie*he,n[3]=ae*he,n[4]=me*he,n[5]=we*he,n[6]=re*he,n[7]=se*he,n[8]=ye*he,n[9]=be*he,n[10]=ue*he,n[11]=ne*he,n[12]=Me*he,n[13]=tt*he,n[14]=LA*he,n[15]=Ke*he,n}},4221:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(4292),A),g(h(1662),A),g(h(3281),A),g(h(6356),A)},4235:(B,A,h)=>{A.A=void 0;var m=h(4638),g=h(733),w={blocks:function(s){for(var r=[],i=s.data.length,l=0,d=(0,g.readByte)()(s);d!==0&&d;d=(0,g.readByte)()(s)){if(s.pos+d>=i){var C=i-s.pos;r.push((0,g.readBytes)(C)(s)),l+=C;break}r.push((0,g.readBytes)(d)(s)),l+=d}for(var _=new Uint8Array(l),b=0,E=0;E<r.length;E++)_.set(r[E],b),b+=r[E].length;return _}},p=(0,m.conditional)({gce:[{codes:(0,g.readBytes)(2)},{byteSize:(0,g.readByte)()},{extras:(0,g.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,g.readUnsigned)(!0)},{transparentColorIndex:(0,g.readByte)()},{terminator:(0,g.readByte)()}]},function(s){var r=(0,g.peekBytes)(2)(s);return r[0]===33&&r[1]===249}),u=(0,m.conditional)({image:[{code:(0,g.readByte)()},{descriptor:[{left:(0,g.readUnsigned)(!0)},{top:(0,g.readUnsigned)(!0)},{width:(0,g.readUnsigned)(!0)},{height:(0,g.readUnsigned)(!0)},{lct:(0,g.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,m.conditional)({lct:(0,g.readArray)(3,function(s,r,i){return Math.pow(2,i.descriptor.lct.size+1)})},function(s,r,i){return i.descriptor.lct.exists}),{data:[{minCodeSize:(0,g.readByte)()},w]}]},function(s){return(0,g.peekByte)()(s)===44}),f=(0,m.conditional)({text:[{codes:(0,g.readBytes)(2)},{blockSize:(0,g.readByte)()},{preData:function(s,r,i){return(0,g.readBytes)(i.text.blockSize)(s)}},w]},function(s){var r=(0,g.peekBytes)(2)(s);return r[0]===33&&r[1]===1}),c=(0,m.conditional)({application:[{codes:(0,g.readBytes)(2)},{blockSize:(0,g.readByte)()},{id:function(s,r,i){return(0,g.readString)(i.blockSize)(s)}},w]},function(s){var r=(0,g.peekBytes)(2)(s);return r[0]===33&&r[1]===255}),a=(0,m.conditional)({comment:[{codes:(0,g.readBytes)(2)},w]},function(s){var r=(0,g.peekBytes)(2)(s);return r[0]===33&&r[1]===254}),n=[{header:[{signature:(0,g.readString)(3)},{version:(0,g.readString)(3)}]},{lsd:[{width:(0,g.readUnsigned)(!0)},{height:(0,g.readUnsigned)(!0)},{gct:(0,g.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,g.readByte)()},{pixelAspectRatio:(0,g.readByte)()}]},(0,m.conditional)({gct:(0,g.readArray)(3,function(s,r){return Math.pow(2,r.lsd.gct.size+1)})},function(s,r){return r.lsd.gct.exists}),{frames:(0,m.loop)([p,c,a,u,f],function(s){var r=(0,g.peekByte)()(s);return r===33||r===44})}];A.A=n},4292:(B,A)=>{var h;Object.defineProperty(A,"__esModule",{value:!0}),A.copyright=void 0;var m=(h="".concat("xbsj-base"))!==null&&h!==void 0?h:"-",g="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",w=((Date.now()-1743502596e3)/36e5).toFixed(1),p="%c🌏 ".concat(m,"%c ").concat("1.0.1"," ").concat("6a6f3869f41c8db67af383a267b45147c29ee2b5".slice(0,8)," ").concat("2025-04-01T10:16:36.000Z"," (距今").concat(w,`个小时)
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
`)}})},4344:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}),w=this&&this.__values||function(a){var n=typeof Symbol=="function"&&Symbol.iterator,s=n&&a[n],r=0;if(s)return s.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&r>=a.length&&(a=void 0),{value:a&&a[r++],done:!a}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__read||function(a,n){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,i,l=s.call(a),d=[];try{for(;(n===void 0||n-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(C){i={error:C}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return d},u=this&&this.__spreadArray||function(a,n,s){if(s||arguments.length===2)for(var r,i=0,l=n.length;i<l;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return a.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(A,"__esModule",{value:!0}),A.ObservableSet=void 0;var f=h(1662),c=function(a){function n(){var s=a.call(this)||this;return s._set=new Set,s._toChangeEvent=s.disposeVar(new f.Event),s._changedEvent=s.disposeVar(new f.Event),s.dispose(function(){s._set.size!==0&&(n.warnOnDestroying&&console.warn("this._set.size > 0"),s.clear())}),s}return g(n,a),Object.defineProperty(n.prototype,"toChange",{get:function(){return this._toChangeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"changed",{get:function(){return this._changedEvent},enumerable:!1,configurable:!0}),n.prototype.add=function(){for(var s,r,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];try{for(var d=w(i),C=d.next();!C.done;C=d.next()){var _=C.value;this._toChangeEvent.emit([],[_]),this._set.add(_),this._changedEvent.emit([],[_])}}catch(b){s={error:b}}finally{try{C&&!C.done&&(r=d.return)&&r.call(d)}finally{if(s)throw s.error}}},n.prototype.delete=function(){for(var s,r,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];try{for(var d=w(i),C=d.next();!C.done;C=d.next()){var _=C.value;this._toChangeEvent.emit([_],[]),this._set.delete(_),this._changedEvent.emit([_],[])}}catch(b){s={error:b}}finally{try{C&&!C.done&&(r=d.return)&&r.call(d)}finally{if(s)throw s.error}}},n.prototype.disposableAdd=function(){for(var s=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return this.add.apply(this,u([],p(r),!1)),function(){return s.delete.apply(s,u([],p(r),!1))}},Object.defineProperty(n.prototype,"size",{get:function(){return this._set.size},enumerable:!1,configurable:!0}),n.prototype.clear=function(){var s=u([],p(this._set),!1);this._toChangeEvent.emit([],s),this._set.clear(),this._changedEvent.emit([],s)},n.prototype.values=function(){return this._set.values()},n.warnOnDestroying=!0,n}(f.Destroyable);A.ObservableSet=c},4416:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.BoundingSphere=void 0;var m=h(312),g=h(8089),w=h(2731),p=h(7215),u=h(9898);(function(f){function c(F,Q){return Q=Q||(0,w.createNumbers)(3),u.Vector.set(Q,F[0],F[1],F[2]),Q}function a(F){return F[3]}function n(F,Q){return F[0]=Q[0],F[1]=Q[1],F[2]=Q[2],F}function s(F,Q){F[3]=Q}f.getCenter=c,f.getRadius=a,f.setCenter=n,f.setRadius=s,f.fromCenterRadius=function(F,Q,U){return u.Vector.set(U,F[0],F[1],F[2],Q)};var r=(0,w.createNumbers)(3),i=(0,w.createNumbers)(3);f.intersectPlane=function(F,Q){var U=c(F,r),T=a(F),S=p.Plane.getNormal(Q,i),P=u.Vector.dot(S,U)+p.Plane.getDistance(Q);return P<-T?m.Intersect.OUTSIDE:P<T?m.Intersect.INTERSECTING:m.Intersect.INSIDE};var l=(0,w.createNumbers)(3);f.transform=function(F,Q,U){U=U||(0,w.createNumbers)(4);var T=c(F,l),S=a(F);return g.Matrix4.affineMultiplyByPoint(Q,T,T),S*=g.Matrix4.getMaximumScale(Q),n(U,T),s(U,S),U};var d=(0,w.createNumbers)(3),C=(0,w.createNumbers)(3),_=(0,w.createNumbers)(3),b=(0,w.createNumbers)(3);f.union=function(F,Q,U){U=U||(0,w.createNumbers)(4);var T=u.Vector.set(d,F[0],F[1],F[2]),S=F[3],P=u.Vector.set(C,Q[0],Q[1],Q[2]),I=Q[3],M=u.Vector.subtract(P,T,_),K=u.Vector.magnitude(M);if(S>=K+I)return u.Vector.clone(F,U),U;if(I>=K+S)return u.Vector.clone(Q,U),U;var W=.5*(S+K+I),L=u.Vector.multiplyByScalar(M,(-S+W)/K,b);return u.Vector.add(L,T,L),u.Vector.set(U,L[0],L[1],L[2],W),U};var E=(0,w.createNumbers)(3);f.fromCornerPoints=function(F,Q,U){var T=u.Vector.lerp(F,Q,.5,E),S=u.Vector.distance(T,Q);return u.Vector.set(U,T[0],T[1],T[2],S)}})(A.BoundingSphere||(A.BoundingSphere={}))},4471:function(B,A,h){var m=this&&this.__read||function(f,c){var a=typeof Symbol=="function"&&f[Symbol.iterator];if(!a)return f;var n,s,r=a.call(f),i=[];try{for(;(c===void 0||c-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(l){s={error:l}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}}return i},g=this&&this.__spreadArray||function(f,c,a){if(a||arguments.length===2)for(var n,s=0,r=c.length;s<r;s++)!n&&s in c||(n||(n=Array.prototype.slice.call(c,0,s)),n[s]=c[s]);return f.concat(n||Array.prototype.slice.call(c))};Object.defineProperty(A,"__esModule",{value:!0}),A.ListenerPipe=void 0;var w=h(1895),p=new(h(1085)).ObjPool(function(){return{func:void 0,scope:void 0,_hasRemoved:!1,_once:!1}},function(f){f.func=void 0,f.scope=void 0,f._hasRemoved=!1,f._once=!1},!0),u=function(){function f(){}return Object.defineProperty(f.prototype,"_dll",{get:function(){var c;return this.__dll=(c=this.__dll)!==null&&c!==void 0?c:new w.DoublyLinkedList({needLength:!0}),this.__dll},enumerable:!1,configurable:!0}),f.prototype._pushCurrentListener=function(c){this.__currentListenerStack?Array.isArray(this.__currentListenerStack)?this.__currentListenerStack.push(c):this.__currentListenerStack=[this.__currentListenerStack,c]:this.__currentListenerStack=c},f.prototype._popCurrentListener=function(){if(!this.__currentListenerStack)throw new Error("cannot pop!");Array.isArray(this.__currentListenerStack)?this.__currentListenerStack.pop():this.__currentListenerStack=void 0},f.prototype._hasCurrentListener=function(c){return!!this.__currentListenerStack&&(Array.isArray(this.__currentListenerStack)?this.__currentListenerStack.indexOf(c)!==-1:this.__currentListenerStack===c)},f.prototype.do=function(){for(var c,a=[],n=0;n<arguments.length;n++)a[n]=arguments[n];if(this.__dll&&!this._dll.empty)for(var s=this._dll.head;s;){var r=s.item;r._hasRemoved||(this._pushCurrentListener(r),(c=r.func).call.apply(c,g([r.scope],m(a),!1)),this._popCurrentListener());var i=s.next;r._once&&!r._hasRemoved&&(this.remove(s),s=void 0),s&&this._clearHasRemoved(s),s=i}},Object.defineProperty(f.prototype,"empty",{get:function(){if(!this.__dll||this._dll.empty)return!0;for(var c=!0,a=this._dll.head;a;){if(!a.item._hasRemoved){c=!1;break}a=a.next}return c},enumerable:!1,configurable:!0}),f.prototype.isHandlerValid=function(c){return!c.item._hasRemoved},f.prototype.nextHandler=function(c){if(!c.item._hasRemoved)throw new Error("handler has removed!");for(var a=c.next;a&&a.item._hasRemoved;)a=a.next;return a},f.prototype.prevHandler=function(c){if(!c.item._hasRemoved)throw new Error("handler has removed!");for(var a=c.previous;a&&a.item._hasRemoved;)a=a.previous;return a},f.prototype.moveAfter=function(c,a){if(c.item._hasRemoved||a.item._hasRemoved)throw new Error("handler or nextHandler has removed!");return this._dll.moveAfter(c,a)},f.prototype.moveBefore=function(c,a){if(c.item._hasRemoved||a.item._hasRemoved)throw new Error("handler or prevHandler has removed!");return this._dll.moveBefore(c,a)},f.prototype.insertBefore=function(c,a,n,s){if(s===void 0&&(s=!1),c.item._hasRemoved)throw new Error("handler has removed!");var r=p.create();return r.func=a,r.scope=n,r._once=s,this._dll.insertBefore(c,r)},f.prototype.insertAfter=function(c,a,n,s){if(s===void 0&&(s=!1),c.item._hasRemoved)throw new Error("handler has removed!");var r=p.create();return r.func=a,r.scope=n,r._once=s,this._dll.insertAfter(c,r)},f.prototype._clearHasRemoved=function(c){c.item._hasRemoved&&!this._hasCurrentListener(c.item)&&(p.destroy(c.item),this._dll.remove(c))},f.prototype.remove=function(c){if(!c.item||c.item._hasRemoved)throw new Error("handler has removed!");this._hasCurrentListener(c.item)?c.item._hasRemoved=!0:(p.destroy(c.item),this._dll.remove(c))},f.prototype.removeAll=function(){if(this.__dll&&!this._dll.empty)for(var c=this._dll.head;c;){var a=c.next;c.item._hasRemoved||this.remove(c),c=a}},f.prototype.destroy=function(){if(this.__dll){for(var c=this._dll.head;c;){var a=c.next,n=c;this._hasCurrentListener(n.item)||(console.warn("Event has remove item that on current stack!"),console.warn("".concat(n.item.func.toString()))),p.destroy(n.item),this._dll.remove(n),c=a}this.__dll=void 0,this.__currentListenerStack=void 0}},f.prototype.push=function(c,a,n){n===void 0&&(n=!1);var s=p.create();return s.func=c,s.scope=a,s._once=n,this._dll.push(s)},f.prototype.pop=function(){var c=this.tail;if(!c)throw new Error("pop error!");this.remove(c)},f.prototype.shift=function(){var c=this.head;if(!c)throw new Error("shift error!");this.remove(c)},f.prototype.unshift=function(c,a,n){n===void 0&&(n=!1);var s=p.create();return s.func=c,s.scope=a,s._once=n,this._dll.unshift(s)},Object.defineProperty(f.prototype,"tail",{get:function(){for(var c=this._dll.tail;c&&c.item._hasRemoved;)c=c.previous;return c},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"head",{get:function(){for(var c=this._dll.head;c&&c.item._hasRemoved;)c=c.previous;return c},enumerable:!1,configurable:!0}),f}();A.ListenerPipe=u},4499:function(B,A){var h=this&&this.__read||function(p,u){var f=typeof Symbol=="function"&&p[Symbol.iterator];if(!f)return p;var c,a,n=f.call(p),s=[];try{for(;(u===void 0||u-- >0)&&!(c=n.next()).done;)s.push(c.value)}catch(r){a={error:r}}finally{try{c&&!c.done&&(f=n.return)&&f.call(n)}finally{if(a)throw a.error}}return s};function m(p,u,f,c){var a=h(p,2),n=a[0],s=a[1],r=h(c,4),i=r[0],l=r[1],d=r[2],C=r[3],_=u[0]*f[0],b=u[1]*f[1],E=n-(_*i+d),F=s-(b*l+C);return{left:E,top:F,right:E+_,bottom:F+b}}function g(p,u,f,c,a,n){p.beginPath(),p.moveTo(u+n,f),p.lineTo(u+c-n,f),p.arcTo(u+c,f,u+c,f+n,n),p.lineTo(u+c,f+a-n),p.arcTo(u+c,f+a,u+c-n,f+a,n),p.lineTo(u+n,f+a),p.arcTo(u,f+a,u,f+a-n,n),p.lineTo(u,f+n),p.arcTo(u,f,u+n,f,n)}function w(p){return("00"+p.toString(16).toUpperCase()).substr(-2)}Object.defineProperty(A,"__esModule",{value:!0}),A.getColorHexStr=A.uint8ToHexStr=A.drawTextBlock=A.setCanvasUniformColor=A.imageToCanvas=A.drawText=A.drawRoundRectPath=A.drawPoint=A.getDrawRect=void 0,A.getDrawRect=m,A.drawPoint=function(p,u,f,c,a){p.beginPath(),p.moveTo(u,f),p.lineTo(u-.5*c,f-.5*c),p.arc(u,f-c,.7071067811865475*c,.75*Math.PI,.25*Math.PI),p.lineTo(u,f),p.fillStyle=a,p.fill()},A.drawRoundRectPath=g,A.drawText=function(p,u,f,c,a,n){p.font=a;var s=p.measureText(c),r=s.actualBoundingBoxLeft+s.actualBoundingBoxRight,i=Number.isFinite(s.fontBoundingBoxAscent)?s.fontBoundingBoxAscent:s.actualBoundingBoxAscent,l=Number.isFinite(s.fontBoundingBoxDescent)?s.fontBoundingBoxDescent:s.actualBoundingBoxDescent,d=i+l;p.fillStyle=n,p.fillText(c,u-.5*r,f+.5*d-l)},A.imageToCanvas=function(p){var u=p.width,f=p.height,c=u instanceof SVGAnimatedLength?u.baseVal.SVG_LENGTHTYPE_PX:u,a=f instanceof SVGAnimatedLength?f.baseVal.SVG_LENGTHTYPE_PX:f,n=document.createElement("canvas");n.width=c,n.height=a;var s=n.getContext("2d");if(!s)throw new Error("!cavnasCtx");return s.drawImage(p,0,0,c,a),n},A.setCanvasUniformColor=function(p,u){var f=p.width,c=p.height,a=p.getContext("2d");if(!a)throw new Error("!cavnasCtx");for(var n=h(u.map(function(_){return 255*_|0}),3),s=n[0],r=n[1],i=n[2],l=a.getImageData(0,0,f,c),d=l.data,C=0;C<d.length;C+=4)d[C]=s,d[C+1]=r,d[C+2]=i;a.putImageData(l,0,0)},A.drawTextBlock=function(p,u,f,c,a,n,s,r,i){c===void 0&&(c=[.5,1,0,0]),n===void 0&&(n="12px Arial"),s===void 0&&(s=2),r===void 0&&(r="#FFF"),i===void 0&&(i="#000A"),p.font=n;var l=p.measureText(a),d=l.actualBoundingBoxLeft+l.actualBoundingBoxRight+2*s,C=l.fontBoundingBoxAscent+l.fontBoundingBoxDescent+2*s,_=m([u,f],[d,C],[1,1],c),b=_.left,E=_.top,F=_.bottom;p.fillStyle=i,g(p,b,E,d,C,s),p.fill(),p.fillStyle=r,p.fillText(a,b+s,F-s-l.fontBoundingBoxDescent)},A.uint8ToHexStr=w,A.getColorHexStr=function(p){var u=h(p.map(function(s){return 255*s|0}),4),f=u[0],c=u[1],a=u[2],n=u[3];return"#".concat(w(f)).concat(w(c)).concat(w(a)).concat(w(n))}},4601:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A._setRow=A._getRow=void 0;var m=h(2731),g=h(9898);A._getRow=function(w,p,u){if(p<0||p>3)throw new Error("index < 0 || index > 3");u=u||(0,m.createNumbers)(4);var f=w[p],c=w[p+4],a=w[p+8],n=w[p+12];return u[0]=f,u[1]=c,u[2]=a,u[3]=n,u},A._setRow=function(w,p,u,f){if(p<0||p>3)throw new Error("index < 0 || index > 3");return(f=g.Vector.clone(w,f))[p]=u[0],f[p+4]=u[1],f[p+8]=u[2],f[p+12]=u[3],f}},4621:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(1378),A),g(h(9369),A),g(h(9597),A),g(h(5010),A),g(h(507),A),g(h(1968),A),g(h(2217),A),g(h(2299),A)},4638:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.loop=A.conditional=A.parse=void 0,A.parse=function h(m,g){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:w;if(Array.isArray(g))g.forEach(function(f){return h(m,f,w,p)});else if(typeof g=="function")g(m,w,p,h);else{var u=Object.keys(g)[0];Array.isArray(g[u])?(p[u]={},h(m,g[u],w,p[u])):p[u]=g[u](m,w,p,h)}return w},A.conditional=function(h,m){return function(g,w,p,u){m(g,w,p)&&u(g,h,w,p)}},A.loop=function(h,m){return function(g,w,p,u){for(var f=[],c=g.pos;m(g,w,p);){var a={};if(u(g,h,w,a),g.pos===c)break;c=g.pos,f.push(a)}return f}}},4661:function(B,A,h){var m=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,n,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(i){n={error:i}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(n)throw n.error}}return r},g=this&&this.__spreadArray||function(u,f,c){if(c||arguments.length===2)for(var a,n=0,s=f.length;n<s;n++)!a&&n in f||(a||(a=Array.prototype.slice.call(f,0,n)),a[n]=f[n]);return u.concat(a||Array.prototype.slice.call(f))};Object.defineProperty(A,"__esModule",{value:!0}),A.stepProcessing=void 0;var w=h(5819),p=h(9374);A.stepProcessing=function(u,f){for(var c=[],a=2;a<arguments.length;a++)c[a-2]=arguments[a];return u.promise((0,w.pairToPromise)(p.getPromiseFromProcessing.apply(void 0,g([f],m(c),!1))))}},4775:function(B,A){var h=this&&this.__read||function(g,w){var p=typeof Symbol=="function"&&g[Symbol.iterator];if(!p)return g;var u,f,c=p.call(g),a=[];try{for(;(w===void 0||w-- >0)&&!(u=c.next()).done;)a.push(u.value)}catch(n){f={error:n}}finally{try{u&&!u.done&&(p=c.return)&&p.call(c)}finally{if(f)throw f.error}}return a},m=this&&this.__spreadArray||function(g,w,p){if(p||arguments.length===2)for(var u,f=0,c=w.length;f<c;f++)!u&&f in w||(u||(u=Array.prototype.slice.call(w,0,f)),u[f]=w[f]);return g.concat(u||Array.prototype.slice.call(w))};Object.defineProperty(A,"__esModule",{value:!0}),A.debounce=void 0,A.debounce=function(g,w){if(!window||!window.setTimeout||!window.clearTimeout)throw new Error("目前只适合在浏览器中使用!");var p=0;function u(){p>0&&(window.clearTimeout(p),p=0)}return[function(){for(var f=[],c=0;c<arguments.length;c++)f[c]=arguments[c];u(),p=window.setTimeout.apply(window,m([g,w],h(f),!1))},u]}},4833:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.InverseViewMatrix=void 0;var m=h(9898),g=function(){function w(){}return w.getDirection=function(p,u){return m.Vector.set(u,-p[8],-p[9],-p[10])},w.getRight=function(p,u){return m.Vector.set(u,p[0],p[1],p[2])},w.getUp=function(p,u){return m.Vector.set(u,p[4],p[5],p[6])},w.getEye=function(p,u){return m.Vector.set(u,p[12],p[13],p[14])},w}();A.InverseViewMatrix=g},4899:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(1895),A),g(h(9067),A),g(h(4471),A),g(h(2452),A),g(h(5774),A)},4915:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.Matrix3=void 0;var m,g=h(2731),w=h(9898);(m=A.Matrix3||(A.Matrix3={})).multiply=function(p,u,f){var c=p[0]*u[0]+p[3]*u[1]+p[6]*u[2],a=p[1]*u[0]+p[4]*u[1]+p[7]*u[2],n=p[2]*u[0]+p[5]*u[1]+p[8]*u[2],s=p[0]*u[3]+p[3]*u[4]+p[6]*u[5],r=p[1]*u[3]+p[4]*u[4]+p[7]*u[5],i=p[2]*u[3]+p[5]*u[4]+p[8]*u[5],l=p[0]*u[6]+p[3]*u[7]+p[6]*u[8],d=p[1]*u[6]+p[4]*u[7]+p[7]*u[8],C=p[2]*u[6]+p[5]*u[7]+p[8]*u[8];return(f=f||(0,g.createNumbers)(9))[0]=c,f[1]=a,f[2]=n,f[3]=s,f[4]=r,f[5]=i,f[6]=l,f[7]=d,f[8]=C,f},m.multiplyByVector=function(p,u,f){var c=u[0],a=u[1],n=u[2],s=p[0]*c+p[3]*a+p[6]*n,r=p[1]*c+p[4]*a+p[7]*n,i=p[2]*c+p[5]*a+p[8]*n;return w.Vector.set(f,s,r,i)},m.fromQuaternion=function(p,u){var f=p[0]*p[0],c=p[0]*p[1],a=p[0]*p[2],n=p[0]*p[3],s=p[1]*p[1],r=p[1]*p[2],i=p[1]*p[3],l=p[2]*p[2],d=p[2]*p[3],C=p[3]*p[3],_=f-s-l+C,b=2*(c-d),E=2*(a+i),F=2*(c+d),Q=-f+s-l+C,U=2*(r-n),T=2*(a-i),S=2*(r+n),P=-f-s+l+C;return u=u||(0,g.createNumbers)(9),w.Vector.set(u,_,F,T,b,Q,S,E,U,P),u},m.getScale=function(p,u){return(u=u||(0,g.createNumbers)(3))[0]=w.Vector.magnitude([p[0],p[1],p[2]]),u[1]=w.Vector.magnitude([p[3],p[4],p[5]]),u[2]=w.Vector.magnitude([p[6],p[7],p[8]]),u},m.getElementIndex=function(p,u){return 3*p+u},m.IDENTITY=Object.freeze([1,0,0,0,1,0,0,0,1]),m.COLUMN0ROW0=0,m.COLUMN0ROW1=1,m.COLUMN0ROW2=2,m.COLUMN1ROW0=3,m.COLUMN1ROW1=4,m.COLUMN1ROW2=5,m.COLUMN2ROW0=6,m.COLUMN2ROW1=7,m.COLUMN2ROW2=8},4969:(B,A)=>{function h(m){return JSON.stringify(m,void 0," ")}Object.defineProperty(A,"__esModule",{value:!0}),A.printJson=A.toJsonStr=void 0,A.toJsonStr=h,A.printJson=function(m){console.log(h(m))}},4990:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.loadCRN=void 0;var m=h(9928),g=h(2075),w=h(3631),p=h(5486),u=h(1662),f=Error,c=new g.TaskProcessor("transcodeCRNToDXT",Number.POSITIVE_INFINITY);A.loadCRN=function(a){if(!(0,p.defined)(a))throw new f("resourceOrUrlOrBuffer is required.");var n;if(n=a instanceof ArrayBuffer||ArrayBuffer.isView(a)?w.when.resolve(a):(0,u.fetchArrayBuffer)(a),(0,p.defined)(n))return n.then(function(s){if((0,p.defined)(s)){var r=[];return s instanceof ArrayBuffer?r.push(s):(s.byteOffset===0&&s.byteLength===s.buffer.byteLength||(s=s.slice(0,s.length)),r.push(s.buffer)),c.scheduleTask(s,r)}}).then(function(s){return s||console.error("compressedTextureBuffer is undefined!"),m.CompressedTextureBuffer.clone(s)})}},5010:function(B,A,h){var m,g=this&&this.__extends||(m=function(d,C){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,b){_.__proto__=b}||function(_,b){for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(_[E]=b[E])},m(d,C)},function(d,C){if(typeof C!="function"&&C!==null)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");function _(){this.constructor=d}m(d,C),d.prototype=C===null?Object.create(C):(_.prototype=C.prototype,new _)}),w=this&&this.__awaiter||function(d,C,_,b){return new(_||(_=Promise))(function(E,F){function Q(S){try{T(b.next(S))}catch(P){F(P)}}function U(S){try{T(b.throw(S))}catch(P){F(P)}}function T(S){var P;S.done?E(S.value):(P=S.value,P instanceof _?P:new _(function(I){I(P)})).then(Q,U)}T((b=b.apply(d,C||[])).next())})},p=this&&this.__generator||function(d,C){var _,b,E,F,Q={label:0,sent:function(){if(1&E[0])throw E[1];return E[1]},trys:[],ops:[]};return F={next:U(0),throw:U(1),return:U(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function U(T){return function(S){return function(P){if(_)throw new TypeError("Generator is already executing.");for(;F&&(F=0,P[0]&&(Q=0)),Q;)try{if(_=1,b&&(E=2&P[0]?b.return:P[0]?b.throw||((E=b.return)&&E.call(b),0):b.next)&&!(E=E.call(b,P[1])).done)return E;switch(b=0,E&&(P=[2&P[0],E.value]),P[0]){case 0:case 1:E=P;break;case 4:return Q.label++,{value:P[1],done:!1};case 5:Q.label++,b=P[1],P=[0];continue;case 7:P=Q.ops.pop(),Q.trys.pop();continue;default:if(!((E=(E=Q.trys).length>0&&E[E.length-1])||P[0]!==6&&P[0]!==2)){Q=0;continue}if(P[0]===3&&(!E||P[1]>E[0]&&P[1]<E[3])){Q.label=P[1];break}if(P[0]===6&&Q.label<E[1]){Q.label=E[1],E=P;break}if(E&&Q.label<E[2]){Q.label=E[2],Q.ops.push(P);break}E[2]&&Q.ops.pop(),Q.trys.pop();continue}P=C.call(d,Q)}catch(I){P=[6,I],b=0}finally{_=E=0}if(5&P[0])throw P[1];return{value:P[0]?P[1]:void 0,done:!0}}([T,S])}}},u=this&&this.__read||function(d,C){var _=typeof Symbol=="function"&&d[Symbol.iterator];if(!_)return d;var b,E,F=_.call(d),Q=[];try{for(;(C===void 0||C-- >0)&&!(b=F.next()).done;)Q.push(b.value)}catch(U){E={error:U}}finally{try{b&&!b.done&&(_=F.return)&&_.call(F)}finally{if(E)throw E.error}}return Q};Object.defineProperty(A,"__esModule",{value:!0}),A.PointerClick=void 0;var f=h(7372),c=h(7372),a=h(7372),n=h(8106),s=h(5819),r=h(9597),i=h(2299),l=function(d){function C(){var _=d.call(this)||this;_._clickEvent=_.disposeVar(new c.Event),_._dbclickEvent=_.disposeVar(new c.Event),_._pointerdownEvent=_.disposeVar(new c.Event),_._pointerupEvent=_.disposeVar(new c.Event),_._pointermoveEvent=_.disposeVar(new c.Event),_._pointeroutEvent=_.disposeVar(new c.Event),_.dbClickDelayTime=300,_.nativeClickDelayTime=500,_.clickMovementTolerantPixelSize=3,_.debugging=!1,_._enabled=_.disposeVar((0,a.react)(!0));var b=_.disposeVar((0,s.createProcessingFromAsyncFunc)(function(F){return w(_,void 0,void 0,function(){var Q,U,T=this;return p(this,function(S){switch(S.label){case 0:Q=function(){var P,I,M;return p(this,function(K){switch(K.label){case 0:return[4,(0,n.step)(F,function(W){return new Promise(function(L,O){W.disposer.dispose(O),W.disposer.dispose(r.DomElementEvent.on(T._pointerdownEvent,L))})})];case 1:return P=K.sent(),I=(0,i.getDomEventCurrentTargetPos)(P),U.debugging&&console.log("鼠标按下 ".concat(I.toString())),[4,(0,n.step)(F,function(W){return new Promise(function(L,O){W.disposer.dispose(O);var H=setTimeout(function(){return L(!0)},T.nativeClickDelayTime);W.disposer.dispose(function(){return clearTimeout(H)}),W.disposer.dispose(r.DomElementEvent.on(T._pointermoveEvent,function(k){var G=u((0,i.getDomEventCurrentTargetPos)(k),2),D=G[0],R=G[1],N=u(I,2),X=N[0],Y=N[1];(Math.abs(D-X)>3||Math.abs(R-Y)>3)&&L(!1)})),W.disposer.dispose(r.DomElementEvent.on(T._pointeroutEvent,function(){return L(!1)})),W.disposer.dispose(r.DomElementEvent.on(T._pointerupEvent,function(){return L(!0)}))})})];case 2:return K.sent()?[4,(0,n.step)(F,function(W){return new Promise(function(L,O){W.disposer.dispose(O);var H=setTimeout(function(){return L("timeout")},T.dbClickDelayTime);W.disposer.dispose(function(){return clearTimeout(H)}),W.disposer.dispose(r.DomElementEvent.on(T._pointermoveEvent,function(k){var G=u((0,i.getDomEventCurrentTargetPos)(k),2),D=G[0],R=G[1],N=u(I,2),X=N[0],Y=N[1];(Math.abs(D-X)>3||Math.abs(R-Y)>3)&&L("moved")})),W.disposer.dispose(r.DomElementEvent.on(T._pointerdownEvent,L)),W.disposer.dispose(r.DomElementEvent.on(T._pointeroutEvent,function(){return L("pointouted")})),W.disposer.dispose(r.DomElementEvent.on(T._pointerupEvent,function(){return L("pointuped")}))})})]:(U.debugging&&console.log("取消1"),[2,"continue"]);case 3:return typeof(M=K.sent())=="string"?(U.debugging&&console.log("触发单击事件!取消双击监听!error: ".concat(M)),U._clickEvent.emit(P),[2,"continue"]):[4,(0,n.step)(F,function(W){return new Promise(function(L,O){W.disposer.dispose(O);var H=setTimeout(function(){return L(!1)},T.nativeClickDelayTime);W.disposer.dispose(function(){return clearTimeout(H)}),W.disposer.dispose(r.DomElementEvent.on(T._pointermoveEvent,function(k){var G=u((0,i.getDomEventCurrentTargetPos)(k),2),D=G[0],R=G[1],N=u(I,2),X=N[0],Y=N[1];(Math.abs(D-X)>3||Math.abs(R-Y)>3)&&L(!1)})),W.disposer.dispose(r.DomElementEvent.on(T._pointeroutEvent,function(){return L(!1)})),W.disposer.dispose(r.DomElementEvent.on(T._pointerupEvent,function(){return L(!0)}))})})];case 4:return K.sent()?(U.debugging&&console.log("触发双击事件!"),U._dbclickEvent.emit(M),[2]):(U.debugging&&console.log("取消2"),[2,"continue"])}})},U=this,S.label=1;case 1:return[5,Q()];case 2:S.sent(),S.label=3;case 3:return[3,1];case 4:return[2]}})})})),E=function(F){F?b.restart():b.isRunning&&b.cancel()};return E(_.enabled),_.dispose(_.enabledChanged.disposableOn(E)),_}return g(C,d),Object.defineProperty(C.prototype,"clickEvent",{get:function(){return this._clickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"dbclickEvent",{get:function(){return this._dbclickEvent},enumerable:!1,configurable:!0}),C.prototype.pointerDown=function(_){this._pointerdownEvent.emit(_)},C.prototype.pointerUp=function(_){this._pointerupEvent.emit(_)},C.prototype.pointerMove=function(_){this._pointermoveEvent.emit(_)},C.prototype.pointerOut=function(_){this._pointeroutEvent.emit(_)},Object.defineProperty(C.prototype,"enabled",{get:function(){return this._enabled.value},set:function(_){this._enabled.value=_},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"enabledChanged",{get:function(){return this._enabled.changed},enumerable:!1,configurable:!0}),C}(f.Destroyable);A.PointerClick=l},5015:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getBase64UriData=void 0;var h=/^data:(.*?)(;base64)?,(.*)$/;function m(p,u){var f=decodeURIComponent(u);return p?atob(f):f}function g(p,u){for(var f=m(p,u),c=new ArrayBuffer(f.length),a=new Uint8Array(c),n=0;n<f.length;n++)a[n]=f.charCodeAt(n);return c}function w(p,u){u===void 0&&(u="text");var f=p[1],c=!!p[2],a=p[3];switch(u){case"text":return[m(c,a),f];case"arraybuffer":return[g(c,a),f];case"blob":var n=g(c,a);return[new Blob([n],{type:f}),f];case"document":return[new DOMParser().parseFromString(m(c,a),f),f];case"json":return[JSON.parse(m(c,a)),f];default:throw new Error("Unhandled responseType: "+u)}}A.getBase64UriData=function(p,u){u===void 0&&(u="text");var f=h.exec(p);if(f!==null){if(u==="document"||u==="blob"||u==="arraybuffer"||u==="text"||u==="json")return w(f,u);throw new Error("responseType error!")}}},5210:function(B,A,h){var m,g=this&&this.__extends||(m=function(l,d){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,_){C.__proto__=_}||function(C,_){for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(C[b]=_[b])},m(l,d)},function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function C(){this.constructor=l}m(l,d),l.prototype=d===null?Object.create(d):(C.prototype=d.prototype,new C)}),w=this&&this.__awaiter||function(l,d,C,_){return new(C||(C=Promise))(function(b,E){function F(T){try{U(_.next(T))}catch(S){E(S)}}function Q(T){try{U(_.throw(T))}catch(S){E(S)}}function U(T){var S;T.done?b(T.value):(S=T.value,S instanceof C?S:new C(function(P){P(S)})).then(F,Q)}U((_=_.apply(l,d||[])).next())})},p=this&&this.__generator||function(l,d){var C,_,b,E,F={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return E={next:Q(0),throw:Q(1),return:Q(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function Q(U){return function(T){return function(S){if(C)throw new TypeError("Generator is already executing.");for(;E&&(E=0,S[0]&&(F=0)),F;)try{if(C=1,_&&(b=2&S[0]?_.return:S[0]?_.throw||((b=_.return)&&b.call(_),0):_.next)&&!(b=b.call(_,S[1])).done)return b;switch(_=0,b&&(S=[2&S[0],b.value]),S[0]){case 0:case 1:b=S;break;case 4:return F.label++,{value:S[1],done:!1};case 5:F.label++,_=S[1],S=[0];continue;case 7:S=F.ops.pop(),F.trys.pop();continue;default:if(!((b=(b=F.trys).length>0&&b[b.length-1])||S[0]!==6&&S[0]!==2)){F=0;continue}if(S[0]===3&&(!b||S[1]>b[0]&&S[1]<b[3])){F.label=S[1];break}if(S[0]===6&&F.label<b[1]){F.label=b[1],b=S;break}if(b&&F.label<b[2]){F.label=b[2],F.ops.push(S);break}b[2]&&F.ops.pop(),F.trys.pop();continue}S=d.call(l,F)}catch(P){S=[6,P],_=0}finally{C=b=0}if(5&S[0])throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}([U,T])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.HlsProcessing=A.HlsJsLoading=void 0;var u=h(1662),f=h(8106),c=h(2220),a=h(5819),n=function(l){function d(){var C=l.call(this)||this;return C._loading=!1,C._loadedEvent=C.disposeVar(new u.Event),C._loaded=!1,C._loadedPromise=new Promise(function(_){C._loadedPromiseResolve=_}),C._processing=C.disposeVar((0,a.createProcessingFromAsyncFunc)(function(_){return w(C,void 0,void 0,function(){var b;return p(this,function(E){switch(E.label){case 0:return this._loading=!0,window.Hls?(console.info("可能系统已经加载hlsjs,此处不再加载!"),[3,3]):[3,1];case 1:return b=c.SceneObject.context.getStrFromEnv(d.path),[4,_.promise((0,u.loadJs)(b))];case 2:E.sent(),E.label=3;case 3:return this._loading=!1,this._loaded=!0,this._loadedEvent.emit(),this._loadedPromiseResolve(),[2]}})})})),C._processingStart=C._processing.start(),C}return g(d,l),Object.defineProperty(d.prototype,"loading",{get:function(){return this._loading},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"loadedEvent",{get:function(){return this._loadedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"loaded",{get:function(){return this._loaded},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"loadedPromise",{get:function(){return this._loadedPromise},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),d.instance=function(){return d._instance=d._instance||new d,d._instance},d.path="${xr-utils-script-dir}/xr-static/xr-utils/hlsjs/1.4.12/hls.min.js",d}(u.Destroyable);A.HlsJsLoading=n;var s=function(l){function d(C,_){var b=l.call(this)||this;b._complexImage=C,b._videoSrc=_;var E,F=document.createElement("video");return F.src=b._videoSrc,F.style.position="absolute",F.style.top="0px",F.style.left="0px",F.style.zIndex="-100",F.style.visibility="hidden",(E=function(){F.crossOrigin=b._complexImage.crossOrigin})(),b.dispose(b._complexImage.crossOriginChanged.disposableOn(E)),(E=function(){F.autoplay=b._complexImage.autoplay})(),b.dispose(b._complexImage.autoplayChanged.disposableOn(E)),(E=function(){F.loop=b._complexImage.loop})(),b.dispose(b._complexImage.loopChanged.disposableOn(E)),F.muted=!0,document.body.appendChild(F),b._element=F,b.dispose(function(){return document.body.removeChild(F)}),b}return g(d,l),Object.defineProperty(d.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),d}(u.Destroyable),r=function(l){function d(C,_){var b=l.call(this)||this;return b._complexImage=C,b._videoSrc=_,b._videoDom=b.disposeVar(new s(b._complexImage,"")),b._processing=b.disposeVar((0,a.createProcessingFromAsyncFunc)(function(E){return w(b,void 0,void 0,function(){var F,Q,U,T,S;return p(this,function(P){switch(P.label){case 0:return F=this.videoSrc,Q=n.instance(),[4,E.promise(Q.loadedPromise)];case 1:return P.sent(),U=window.Hls,T=new U,S=this.element,[4,(0,f.step)(E,function(){return new Promise(function(I,M){S.xbsjHLS=T,T.attachMedia(S),T.on(U.Events.MEDIA_ATTACHED,function(){T.loadSource(F),T.on(U.Events.MANIFEST_PARSED,function(K,W){S.play(),I()})}),T.on(U.Events.ERROR,function(K,W){W.type;var L=W.details;W.fatal&&(T.destroy(),M(L))})})})];case 2:return P.sent(),[2]}})})})),b._processingStartup=b._processing.start(),b}return g(d,l),Object.defineProperty(d.prototype,"videoSrc",{get:function(){return this._videoSrc},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"element",{get:function(){return this.videoDom.element},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),d}(u.Destroyable),i=function(l){function d(C,_){var b=l.call(this)||this;return b._complexImage=C,b._imageUri=_,b._videoDom=b.disposeVar(new r(b._complexImage,b._imageUri)),b._update=b.disposeVar((0,f.createAnimateFrameWithStartValues)(function(){return b.update()})),b._updateStart=b._update.start(),b}return g(d,l),Object.defineProperty(d.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"videoElement",{get:function(){return this._videoDom.element},enumerable:!1,configurable:!0}),d.prototype.update=function(){if(!(this.videoElement.readyState<2)){var C=this._complexImage,_=this.videoElement,b=_.videoWidth,E=_.videoHeight;C.size=[b,E],C.pixelFormat="RGBA",C.copyTexture({source:this.videoElement})}},d}(u.Destroyable);A.HlsProcessing=i},5236:function(B,A){var h=this&&this.__awaiter||function(g,w,p,u){return new(p||(p=Promise))(function(f,c){function a(r){try{s(u.next(r))}catch(i){c(i)}}function n(r){try{s(u.throw(r))}catch(i){c(i)}}function s(r){var i;r.done?f(r.value):(i=r.value,i instanceof p?i:new p(function(l){l(i)})).then(a,n)}s((u=u.apply(g,w||[])).next())})},m=this&&this.__generator||function(g,w){var p,u,f,c,a={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return c={next:n(0),throw:n(1),return:n(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function n(s){return function(r){return function(i){if(p)throw new TypeError("Generator is already executing.");for(;c&&(c=0,i[0]&&(a=0)),a;)try{if(p=1,u&&(f=2&i[0]?u.return:i[0]?u.throw||((f=u.return)&&f.call(u),0):u.next)&&!(f=f.call(u,i[1])).done)return f;switch(u=0,f&&(i=[2&i[0],f.value]),i[0]){case 0:case 1:f=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,u=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((f=(f=a.trys).length>0&&f[f.length-1])||i[0]!==6&&i[0]!==2)){a=0;continue}if(i[0]===3&&(!f||i[1]>f[0]&&i[1]<f[3])){a.label=i[1];break}if(i[0]===6&&a.label<f[1]){a.label=f[1],f=i;break}if(f&&a.label<f[2]){a.label=f[2],a.ops.push(i);break}f[2]&&a.ops.pop(),a.trys.pop();continue}i=w.call(g,a)}catch(l){i=[6,l],u=0}finally{p=f=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([s,r])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.fetchJson=void 0,A.fetchJson=function(g,w){return w===void 0&&(w=fetch),h(this,void 0,void 0,function(){var p;return m(this,function(u){switch(u.label){case 0:return[4,w(g)];case 1:return(p=u.sent()).ok?[4,p.json()]:[2,void 0];case 2:return[2,u.sent()]}})})}},5252:function(B,A,h){var m,g=this&&this.__extends||(m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(c[n]=a[n])},m(u,f)},function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function c(){this.constructor=u}m(u,f),u.prototype=f===null?Object.create(f):(c.prototype=f.prototype,new c)});Object.defineProperty(A,"__esModule",{value:!0}),A.CanvasPoi=void 0;var w=h(7372),p=function(u){function f(c,a,n){a===void 0&&(a=[0,0]),n===void 0&&(n=0);var s=u.call(this,c)||this;return s._winPos=a,s._depth=n,s.dispose(s.winPosAndDepthChanged.disposableOn(function(){s.needRedraw(),s.needPickRedraw()})),s}return g(f,u),Object.defineProperty(f.prototype,"winPos",{get:function(){return this._winPos},set:function(c){this._winPos[0]===c[0]&&this._winPos[1]===c[1]||(this._winPos[0]=c[0],this._winPos[1]=c[1],this._winPosAndDepthChanged&&this._winPosAndDepthChanged.emit(this._winPos,this._depth))},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"depth",{get:function(){return this._depth},set:function(c){this._depth!==c&&(this._depth=c,this._winPosAndDepthChanged&&this._winPosAndDepthChanged.emit(this._winPos,this._depth))},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"winPosAndDepthChanged",{get:function(){return this._winPosAndDepthChanged||(this._winPosAndDepthChanged=new w.Event),this._winPosAndDepthChanged},enumerable:!1,configurable:!0}),f}(h(2277).CanvasPrimitive);A.CanvasPoi=p},5260:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C};Object.defineProperty(A,"__esModule",{value:!0}),A.CanvasPointPoi=void 0;var p=h(8106),u=h(7372),f=h(5252),c=h(4499),a=function(n){function s(r){var i=n.call(this,r)||this;i._width=16,i._text="",i._fillStyle="#0F0",i._scale=1,i.dispose(i.scaleChanged.disposableOn(function(_){i.needRedraw(),i.needPickRedraw()}));var l=i.disposeVar(new p.Transition(100)),d=i.disposeVar(new p.Transition(100)),C=function(){i._clickEvent&&!i._clickEvent.empty&&(i.scale=(1+.1*d.current)*(1+.2*l.current))};return i.dispose(d.currentChanged.disposableOn(C)),i.dispose(l.currentChanged.disposableOn(C)),i.dispose(i.activedChanged.disposableOn(function(_){d.target=_?1:0,i.needRedraw()})),i.dispose(i.hoveredChanged.disposableOn(function(_){l.target=_?1:0,i.needRedraw()})),i.dispose(i.selectedChanged.disposableOn(function(_){i.needRedraw()})),i}return g(s,n),Object.defineProperty(s.prototype,"scale",{get:function(){return this._scale},set:function(r){this._scale!==r&&(this._scale=r,this._scaleChanged&&this._scaleChanged.emit(r,this))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"scaleChanged",{get:function(){return this._scaleChanged||(this._scaleChanged=new u.Event),this._scaleChanged},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"width",{get:function(){return this._width},set:function(r){this._width!==r&&(this._width=r,this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"text",{get:function(){return this._text},set:function(r){this._text!==r&&(this._text=r,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"fillStyle",{get:function(){return this._fillStyle},set:function(r){this._fillStyle!==r&&(this._fillStyle=r,this.needRedraw())},enumerable:!1,configurable:!0}),s.prototype.draw=function(r){if(this._show){var i=w(this._winPos,2),l=i[0],d=i[1],C=r.globalAlpha;r.globalAlpha=this.opacity;var _=this._width*this._scale;this.selected&&(0,c.drawPoint)(r,l,d+3,_+3,"#F00"),this.actived&&this._clickEvent&&!this._clickEvent.empty&&(0,c.drawPoint)(r,l,d+5,_+5,"#FFF"),this.hovered?(0,c.drawPoint)(r,l,d+3,_+3,"#000A"):(0,c.drawPoint)(r,l,d+1,_+1,"#000A"),(0,c.drawPoint)(r,l,d,_,this._fillStyle);var b=this._scale>1.2?"bold 14px Arial":"bold 10px Arial";(0,c.drawText)(r,l,d-_,this._text,b,"#000"),r.globalAlpha=C}},s.prototype.drawForPick=function(r,i){if(this._show){var l=w(this._winPos,2),d=l[0],C=l[1],_=this._width*this._scale,b=i("default");(0,c.drawPoint)(r,d,C,_,b)}},s}(f.CanvasPoi);A.CanvasPointPoi=a},5281:function(B,A,h){var m=this&&this.__awaiter||function(p,u,f,c){return new(f||(f=Promise))(function(a,n){function s(l){try{i(c.next(l))}catch(d){n(d)}}function r(l){try{i(c.throw(l))}catch(d){n(d)}}function i(l){var d;l.done?a(l.value):(d=l.value,d instanceof f?d:new f(function(C){C(d)})).then(s,r)}i((c=c.apply(p,u||[])).next())})},g=this&&this.__generator||function(p,u){var f,c,a,n,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return n={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(n[Symbol.iterator]=function(){return this}),n;function r(i){return function(l){return function(d){if(f)throw new TypeError("Generator is already executing.");for(;n&&(n=0,d[0]&&(s=0)),s;)try{if(f=1,c&&(a=2&d[0]?c.return:d[0]?c.throw||((a=c.return)&&a.call(c),0):c.next)&&!(a=a.call(c,d[1])).done)return a;switch(c=0,a&&(d=[2&d[0],a.value]),d[0]){case 0:case 1:a=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,c=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(!((a=(a=s.trys).length>0&&a[a.length-1])||d[0]!==6&&d[0]!==2)){s=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){s.label=d[1];break}if(d[0]===6&&s.label<a[1]){s.label=a[1],a=d;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(d);break}a[2]&&s.ops.pop(),s.trys.pop();continue}d=u.call(p,s)}catch(C){d=[6,C],c=0}finally{f=a=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([i,l])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.loadGifFrames=void 0;var w=h(9704);A.loadGifFrames=function(p){return m(this,void 0,void 0,function(){var u,f,c;return g(this,function(a){switch(a.label){case 0:return[4,fetch(p)];case 1:return[4,a.sent().arrayBuffer()];case 2:return u=a.sent(),f=(0,w.parseGIF)(u),c=(0,w.decompressFrames)(f,!0),[2,{gif:f,gifFrames:c,arrayBuffer:u}]}})})}},5486:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.defined=void 0,A.defined=function(h){return h!=null}},5505:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.every=void 0;var m=h(6301);A.every=function(g,w){return!(0,m.forEachWithBreak)(g,function(p,u){return!w(p,u)})}},5544:function(B,A,h){var m,g=this&&this.__extends||(m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(c[n]=a[n])},m(u,f)},function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function c(){this.constructor=u}m(u,f),u.prototype=f===null?Object.create(f):(c.prototype=f.prototype,new c)});Object.defineProperty(A,"__esModule",{value:!0}),A.IntervalDeprecated=void 0;var w=h(3207),p=function(u){function f(c,a){a===void 0&&(a=!0);var n=u.call(this,function(s){var r=s.progressFunc;return s.completeFunc,s.errorFunc,n._intervalFunc=r,n._intervalID&&console.error("this._intervalID should be undefined!"),n.leading&&r(),n._intervalID=setInterval(r,n.intervalTime),function(){if(!n._intervalID)throw console.error("this._intervalID should not be undefined!"),new Error("this._intervalID should not be undefined!");clearInterval(n._intervalID),n._intervalID=void 0}})||this;return n.intervalTime=c,n.leading=a,n.dispose(n.intervalTimeChanged.disposableOn(function(){n._intervalID&&n._intervalFunc&&(clearInterval(n._intervalID),n._intervalID=setInterval(n._intervalFunc,n.intervalTime))})),n}return g(f,u),f}(h(6891).ProcessingDeprecated);A.IntervalDeprecated=p,(0,w.defineReactiveProp)(p,"leading",!0),(0,w.defineReactiveProp)(p,"intervalTime",500)},5582:function(B,A,h){var m=this&&this.__awaiter||function(c,a,n,s){return new(n||(n=Promise))(function(r,i){function l(_){try{C(s.next(_))}catch(b){i(b)}}function d(_){try{C(s.throw(_))}catch(b){i(b)}}function C(_){var b;_.done?r(_.value):(b=_.value,b instanceof n?b:new n(function(E){E(b)})).then(l,d)}C((s=s.apply(c,a||[])).next())})},g=this&&this.__generator||function(c,a){var n,s,r,i,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function d(C){return function(_){return function(b){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,b[0]&&(l=0)),l;)try{if(n=1,s&&(r=2&b[0]?s.return:b[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,b[1])).done)return r;switch(s=0,r&&(b=[2&b[0],r.value]),b[0]){case 0:case 1:r=b;break;case 4:return l.label++,{value:b[1],done:!1};case 5:l.label++,s=b[1],b=[0];continue;case 7:b=l.ops.pop(),l.trys.pop();continue;default:if(!((r=(r=l.trys).length>0&&r[r.length-1])||b[0]!==6&&b[0]!==2)){l=0;continue}if(b[0]===3&&(!r||b[1]>r[0]&&b[1]<r[3])){l.label=b[1];break}if(b[0]===6&&l.label<r[1]){l.label=r[1],r=b;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(b);break}r[2]&&l.ops.pop(),l.trys.pop();continue}b=a.call(c,l)}catch(E){b=[6,E],s=0}finally{n=r=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([C,_])}}},w=this&&this.__read||function(c,a){var n=typeof Symbol=="function"&&c[Symbol.iterator];if(!n)return c;var s,r,i=n.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=i.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return l},p=this&&this.__spreadArray||function(c,a,n){if(n||arguments.length===2)for(var s,r=0,i=a.length;r<i;r++)!s&&r in a||(s||(s=Array.prototype.slice.call(a,0,r)),s[r]=a[r]);return c.concat(s||Array.prototype.slice.call(a))};Object.defineProperty(A,"__esModule",{value:!0}),A.step=void 0;var u=h(5819),f=h(9374);A.step=function(c,a){for(var n=this,s=[],r=2;r<arguments.length;r++)s[r-2]=arguments[r];return c.promise((0,u.pairToPromise)(f.getPromiseFromProcessing.apply(void 0,p([(0,u.createProcessingFromAsyncFunc)(function(i){for(var l=[],d=1;d<arguments.length;d++)l[d-1]=arguments[d];return m(n,void 0,void 0,function(){return g(this,function(C){switch(C.label){case 0:return c.disposer.dispose(function(){i.isDestroyed()||i.cancel()}),[4,a.apply(void 0,p([i],w(l),!1))];case 1:return[2,C.sent()]}})})})],w(s),!1))))}},5590:function(B,A,h){this&&this.__read,this&&this.__spreadArray,Object.defineProperty(A,"__esModule",{value:!0}),A.Kriging=void 0;var m=h(1662);function g(E,F){return E.resize(8*F),new Float64Array(E.arrayBuffer,0,F)}function w(E,F,Q){var U=Q;if(U.length!==F*F)throw new Error("Z.length !== n * n");U.fill(0);for(var T=0;T<F;T++)U[T*F+T]=E;return U}function p(E,F,Q,U,T){var S,P,I=T;if(I.length!==Q*U)throw new Error("Z.length !== n * m");for(S=0;S<Q;S++)for(P=0;P<U;P++)I[S*U+P]=E[S*U+P]+F[S*U+P];return I}function u(E,F,Q,U,T,S){var P,I,M,K=S;if(K.length!==Q*T)throw new Error("Z.length !== n * p");for(P=0;P<Q;P++)for(I=0;I<T;I++)for(K[P*T+I]=0,M=0;M<U;M++)K[P*T+I]+=E[P*U+M]*F[M*T+I];return K}var f=new m.ScalableBuffer;function c(E,F){var Q,U,T,S=g(f,F);for(Q=0;Q<F;Q++)S[Q]=E[Q*F+Q];for(Q=0;Q<F;Q++){for(U=0;U<Q;U++)S[Q]-=E[Q*F+U]*E[Q*F+U];if(S[Q]<=0)return!1;for(S[Q]=Math.sqrt(S[Q]),U=Q+1;U<F;U++){for(T=0;T<Q;T++)E[U*F+Q]-=E[U*F+T]*E[Q*F+T];E[U*F+Q]/=S[Q]}}for(Q=0;Q<F;Q++)E[Q*F+Q]=S[Q];return!0}function a(E,F){var Q,U,T,S;for(Q=0;Q<F;Q++)for(E[Q*F+Q]=1/E[Q*F+Q],U=Q+1;U<F;U++){for(S=0,T=Q;T<U;T++)S-=E[U*F+T]*E[T*F+Q];E[U*F+Q]=S/E[U*F+U]}for(Q=0;Q<F;Q++)for(U=Q+1;U<F;U++)E[Q*F+U]=0;for(Q=0;Q<F;Q++){for(E[Q*F+Q]*=E[Q*F+Q],T=Q+1;T<F;T++)E[Q*F+Q]+=E[T*F+Q]*E[T*F+Q];for(U=Q+1;U<F;U++)for(T=U;T<F;T++)E[Q*F+U]+=E[T*F+Q]*E[T*F+U]}for(Q=0;Q<F;Q++)for(U=0;U<Q;U++)E[Q*F+U]=E[U*F+Q]}var n=new m.ScalableBuffer,s=new m.ScalableBuffer,r=new m.ScalableBuffer,i=new m.ScalableBuffer;function l(E,F){var Q,U,T,S,P,I,M,K,W,L=F,O=g(n,F*F),H=g(s,F),k=g(r,F),G=g(i,F),D=0,R=0;for(Q=0;Q<F;Q++)for(U=0;U<F;U++)O[Q*F+U]=Q==U?1:0;for(U=0;U<F;U++)G[U]=0;for(Q=0;Q<F;Q++){for(I=0,U=0;U<F;U++)if(G[U]!=1)for(T=0;T<F;T++)G[T]==0&&Math.abs(E[U*F+T])>=I&&(I=Math.abs(E[U*F+T]),R=U,D=T);if(++G[D],R!=D){for(S=0;S<F;S++)W=E[R*F+S],E[R*F+S]=E[D*F+S],E[D*F+S]=W;for(S=0;S<L;S++)W=O[R*F+S],O[R*F+S]=O[D*F+S],O[D*F+S]=W}if(k[Q]=R,H[Q]=D,E[D*F+D]==0)return!1;for(K=1/E[D*F+D],E[D*F+D]=1,S=0;S<F;S++)E[D*F+S]*=K;for(S=0;S<L;S++)O[D*F+S]*=K;for(P=0;P<F;P++)if(P!=D){for(M=E[P*F+D],E[P*F+D]=0,S=0;S<F;S++)E[P*F+S]-=E[D*F+S]*M;for(S=0;S<L;S++)O[P*F+S]-=O[D*F+S]*M}}for(S=F-1;S>=0;S--)if(k[S]!=H[S])for(T=0;T<F;T++)W=E[T*F+k[S]],E[T*F+k[S]]=E[T*F+H[S]],E[T*F+H[S]]=W;return!0}function d(E,F,Q,U,T){return F+(U-F)/Q*(1-Math.exp(-1/T*Math.pow(E/Q,2)))}function C(E,F,Q,U,T){return F+(U-F)/Q*(1-Math.exp(-1/T*(E/Q)))}function _(E,F,Q,U,T){return E>Q?F+(U-F)/Q:F+(U-F)/Q*(E/Q*1.5-.5*Math.pow(E/Q,3))}function b(E,F){var Q=E[0]-F[0],U=E[1]-F[1],T=E[2]-F[2];return Math.sqrt(Q*Q+U*U+T*T)}(function(E){var F=new m.ScalableBuffer,Q=new m.ScalableBuffer,U=new m.ScalableBuffer,T=new m.ScalableBuffer,S=new m.ScalableBuffer,P=new m.ScalableBuffer,I=new m.ScalableBuffer,M=new m.ScalableBuffer,K=new m.ScalableBuffer,W=new m.ScalableBuffer,L=new m.ScalableBuffer,O=new m.ScalableBuffer,H=new m.ScalableBuffer,k=[];E.train=function(R,N,X,Y,Z,ie,ae,me){var we;switch(Z){case"gaussian":we=d;break;case"exponential":we=C;break;case"spherical":we=_}var re,se,ye,be,ue={t:R,x:N,y:X,z:Y,nugget:0,range:0,sill:0,A:1/3,n:0,model:we},ne=R.length,Me=k;for(Me.length=(ne*ne-ne)/2,re=0,ye=0;re<ne;re++)for(se=0;se<re;se++,ye++)Me[ye]=Me[ye]||[0,0],Me[ye][0]=b([N[re],X[re],Y[re]],[N[se],X[se],Y[se]]),Me[ye][1]=Math.abs(R[re]-R[se]);Me.sort(function(Es,kA){return Es[0]-kA[0]}),ue.range=Me[(ne*ne-ne)/2-1][0];var tt=(ne*ne-ne)/2>30?30:(ne*ne-ne)/2,LA=ue.range/tt,Ke=g(O,tt);Ke.fill(0);var he=g(H,tt);if(he.fill(0),tt<30)for(be=0;be<tt;be++)Ke[be]=Me[be][0],he[be]=Me[be][1];else{for(re=0,se=0,ye=0,be=0;re<tt&&se<(ne*ne-ne)/2;re++,ye=0){for(;Me[se][0]<=(re+1)*LA&&(Ke[be]+=Me[se][0],he[be]+=Me[se][1],ye++,!(++se>=(ne*ne-ne)/2)););ye>0&&(Ke[be]/=ye,he[be]/=ye,be++)}if(be<2)return ue}ne=be,ue.range=Ke[ne-1]-Ke[0];var wt=g(F,2*ne);wt.fill(1);var Xn=g(Q,ne),Yn=ue.A;for(re=0;re<ne;re++){switch(Z){case"gaussian":wt[2*re+1]=1-Math.exp(-1/Yn*Math.pow(Ke[re]/ue.range,2));break;case"exponential":wt[2*re+1]=1-Math.exp(-1/Yn*Ke[re]/ue.range);break;case"spherical":wt[2*re+1]=Ke[re]/ue.range*1.5-.5*Math.pow(Ke[re]/ue.range,3)}Xn[re]=he[re]}var $n=function(Es,kA,Ly,Oy){var KA,NA,Fs=Oy;if(Fs.length!==2*kA)throw new Error("Z.length !== m * n");for(KA=0;KA<kA;KA++)for(NA=0;NA<2;NA++)Fs[NA*kA+KA]=Es[2*KA+NA];return Fs}(wt,ne,0,g(U,2*ne)),Bt=u($n,wt,2,ne,2,g(T,4)),Lu=(Bt=p(Bt,w(1/ae,2,g(I,4)),2,2,g(S,4))).slice(0);c(Bt,2)?a(Bt,2):(l(Lu,2),Bt=Lu);var Du=u(u(Bt,$n,2,2,ne,g(K,2*ne)),Xn,2,ne,1,g(M,2));ue.nugget=Du[0],ue.sill=Du[1]*ue.range+ue.nugget,ue.n=N.length,ne=N.length;var DA=g(P,ne*ne);for(re=0;re<ne;re++){for(se=0;se<re;se++)DA[re*ne+se]=ue.model(Math.pow(Math.pow(N[re]-N[se],2)+Math.pow(X[re]-X[se],2),.5),ue.nugget,ue.range,ue.sill,ue.A),DA[se*ne+re]=DA[re*ne+se];DA[re*ne+re]=ue.model(0,ue.nugget,ue.range,ue.sill,ue.A)}var RA=p(DA,w(ie,ne,g(L,ne*ne)),ne,ne,g(W,ne*ne)),Ru=RA.slice(0);if(c(RA,ne)?a(RA,ne):(l(Ru,ne),RA=Ru),me.length!==ne)throw new Error("mResult.length !== n");return ue.M=u(RA,R,ne,ne,1,me),ue};var G=new m.ScalableBuffer,D=new m.ScalableBuffer;E.predict=function(R,N,X,Y){var Z,ie=g(G,Y.n);for(Z=0;Z<Y.n;Z++){var ae=b([R,N,X],[Y.x[Z],Y.y[Z],Y.z[Z]]);ie[Z]=Y.model(ae,Y.nugget,Y.range,Y.sill,Y.A)}if(!Y.M)throw new Error("!variogram.M");return u(ie,Y.M,1,Y.n,1,g(D,1))[0]}})(A.Kriging||(A.Kriging={}))},5600:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getExtProp=A.setExtProp=void 0;var h=new WeakMap;A.setExtProp=function(m,g,w){h.has(m)||h.set(m,{}),h.get(m)[g]=w},A.getExtProp=function(m,g){if(h.has(m))return h.get(m)[g]}},5675:function(B,A,h){var m=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,n,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(i){n={error:i}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(n)throw n.error}}return r},g=this&&this.__spreadArray||function(u,f,c){if(c||arguments.length===2)for(var a,n=0,s=f.length;n<s;n++)!a&&n in f||(a||(a=Array.prototype.slice.call(f,0,n)),a[n]=f[n]);return u.concat(a||Array.prototype.slice.call(f))};Object.defineProperty(A,"__esModule",{value:!0}),A.createProcessing=void 0;var w=h(6891),p=h(8196);A.createProcessing=function(u){return new w.ProcessingDeprecated(function(f){for(var c=[],a=1;a<arguments.length;a++)c[a-1]=arguments[a];var n=new p.ProcessingStarter(f);return u.apply(void 0,g([n],m(c),!1)).then(n.complete.bind(n)).catch(n.error.bind(n)),n.cancel.bind(n)})}},5726:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(5675),A),g(h(6891),A),g(h(8196),A),g(h(8055),A),g(h(8995),A),g(h(2601),A)},5745:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.scalableBufferPool=A.ScalableBuffer=void 0;var m=h(3009),g=h(1085);h(3428);var w=function(){function p(){this._arrayBuffer=new ArrayBuffer(1024)}return Object.defineProperty(p.prototype,"byteLength",{get:function(){return this._arrayBuffer.byteLength},enumerable:!1,configurable:!0}),p.prototype.resize=function(u){if(this._arrayBuffer.byteLength<u){var f=(0,m.nextPow2)(u);this._arrayBuffer=ArrayBuffer.transfer(this._arrayBuffer,f)}},Object.defineProperty(p.prototype,"arrayBuffer",{get:function(){return this._arrayBuffer},enumerable:!1,configurable:!0}),p}();A.ScalableBuffer=w,A.scalableBufferPool=new g.ObjPool(function(){return new w})},5774:function(B,A,h){var m=this&&this.__read||function(c,a){var n=typeof Symbol=="function"&&c[Symbol.iterator];if(!n)return c;var s,r,i=n.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=i.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return l},g=this&&this.__spreadArray||function(c,a,n){if(n||arguments.length===2)for(var s,r=0,i=a.length;r<i;r++)!s&&r in a||(s||(s=Array.prototype.slice.call(a,0,r)),s[r]=a[r]);return c.concat(s||Array.prototype.slice.call(a))};Object.defineProperty(A,"__esModule",{value:!0}),A.SmartListenerPipe=void 0;var w=h(4471),p=h(2452);function u(c,a){return(a=a??new p.SmartListenerHandler)._reset(c,c._cid),a}var f=function(){function c(){}return Object.defineProperty(c.prototype,"_pipe",{get:function(){var a;return this.__pipe=(a=this.__pipe)!==null&&a!==void 0?a:new w.ListenerPipe,this.__pipe},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"empty",{get:function(){return!this.__pipe||this._pipe.empty},enumerable:!1,configurable:!0}),c.prototype.do=function(){for(var a,n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];return(a=this._pipe).do.apply(a,g([],m(n),!1))},c.prototype.isHandlerValid=function(a){return!!a.valid&&this._pipe.isHandlerValid(a._listenerHandler)},c.prototype.moveAfter=function(a,n){if(!a.valid||!n.valid)throw new Error("handler or nextHander is not valid!");return this._pipe.moveAfter(a._listenerHandler,n._listenerHandler)},c.prototype.moveBefore=function(a,n){if(!a.valid||!n.valid)throw new Error("handler or nextHander is not valid!");return this._pipe.moveAfter(a._listenerHandler,n._listenerHandler)},c.prototype.insertBefore=function(a,n,s,r,i){if(r===void 0&&(r=!1),!a.valid)throw new Error("handler is not valid!");return u(this._pipe.insertBefore(a._listenerHandler,n,s,r),i)},c.prototype.insertAfter=function(a,n,s,r,i){if(r===void 0&&(r=!1),!a.valid)throw new Error("handler is not valid!");return u(this._pipe.insertAfter(a._listenerHandler,n,s,r),i)},c.prototype.remove=function(a){if(!a.valid)throw new Error("handler is not valid!");return this._pipe.remove(a._listenerHandler)},c.prototype.removeAll=function(){return this._pipe.removeAll()},c.prototype.push=function(a,n,s,r){return s===void 0&&(s=!1),u(this._pipe.push(a,n,s),r)},c.prototype.pop=function(){return this._pipe.pop()},c.prototype.shift=function(){return this._pipe.shift()},c.prototype.unshift=function(a,n,s,r){return s===void 0&&(s=!1),u(this._pipe.unshift(a,n,s),r)},c.prototype.getTail=function(a){var n=this._pipe.tail;return n?u(n,a):void 0},c.prototype.getHead=function(a){var n=this._pipe.head;return n?u(n,a):void 0},c}();A.SmartListenerPipe=f},5785:function(B,A,h){var m,g=this&&this.__extends||(m=function(i,l){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,C){d.__proto__=C}||function(d,C){for(var _ in C)Object.prototype.hasOwnProperty.call(C,_)&&(d[_]=C[_])},m(i,l)},function(i,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function d(){this.constructor=i}m(i,l),i.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}),w=this&&this.__read||function(i,l){var d=typeof Symbol=="function"&&i[Symbol.iterator];if(!d)return i;var C,_,b=d.call(i),E=[];try{for(;(l===void 0||l-- >0)&&!(C=b.next()).done;)E.push(C.value)}catch(F){_={error:F}}finally{try{C&&!C.done&&(d=b.return)&&d.call(b)}finally{if(_)throw _.error}}return E},p=this&&this.__spreadArray||function(i,l,d){if(d||arguments.length===2)for(var C,_=0,b=l.length;_<b;_++)!C&&_ in l||(C||(C=Array.prototype.slice.call(l,0,_)),C[_]=l[_]);return i.concat(C||Array.prototype.slice.call(l))};Object.defineProperty(A,"__esModule",{value:!0}),A.createNextAnimateFrameWeakEvent=A.NextAnimateFrameWeakEvent=A.createNextAnimateFrameEvent=A.NextAnimateFrameEvent=A.createNextMicroTaskWeakEvent=A.NextMicroTaskWeakEvent=A.createNextMicroTaskEvent=A.NextMicroTaskEvent=void 0;var u=h(4899),f=h(6558),c=function(i){function l(d,C){for(var _=[],b=2;b<arguments.length;b++)_[b-2]=arguments[b];var E=i.call(this)||this;return E._nextFunc=d,E.dispose(function(){E._cancellFunc&&(E._cancellFunc(),E._cancellFunc=void 0)}),_.forEach(function(F){return E.dispose(F[C?"dwon":"don"](function(){E.next()}))}),E}return g(l,i),l.prototype.next=function(){var d=this;this._cancellFunc||(this._cancellFunc=this._nextFunc(function(){return d._cancellFunc=void 0,d.emit()}))},l.prototype.flush=function(){this._cancellFunc&&(this._cancellFunc(),this._cancellFunc=void 0,this.emit())},l}(u.Event),a=function(i){function l(){for(var d=[],C=0;C<arguments.length;C++)d[C]=arguments[C];return i.apply(this,p([f.nextMicroTask,!1],w(d),!1))||this}return g(l,i),l}(c);A.NextMicroTaskEvent=a,A.createNextMicroTaskEvent=function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new(a.bind.apply(a,p([void 0],w(i),!1)))};var n=function(i){function l(){for(var d=[],C=0;C<arguments.length;C++)d[C]=arguments[C];return i.apply(this,p([f.nextMicroTask,!0],w(d),!1))||this}return g(l,i),l}(c);A.NextMicroTaskWeakEvent=n,A.createNextMicroTaskWeakEvent=function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new(a.bind.apply(a,p([void 0],w(i),!1)))};var s=function(i){function l(){for(var d=[],C=0;C<arguments.length;C++)d[C]=arguments[C];return i.apply(this,p([f.nextAnimateFrame,!1],w(d),!1))||this}return g(l,i),l}(c);A.NextAnimateFrameEvent=s,A.createNextAnimateFrameEvent=function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new(s.bind.apply(s,p([void 0],w(i),!1)))};var r=function(i){function l(){for(var d=[],C=0;C<arguments.length;C++)d[C]=arguments[C];return i.apply(this,p([f.nextAnimateFrame,!0],w(d),!1))||this}return g(l,i),l}(c);A.NextAnimateFrameWeakEvent=r,A.createNextAnimateFrameWeakEvent=function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new(r.bind.apply(r,p([void 0],w(i),!1)))}},5819:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(9651),A),g(h(921),A),g(h(1148),A),g(h(1101),A),g(h(4206),A)},5873:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.Ray=void 0;var m,g=h(9898);(m=A.Ray||(A.Ray={})).getOrigin=function(w,p){return g.Vector.set(p,w[0],w[1],w[2])},m.getDirection=function(w,p){return g.Vector.set(p,w[3],w[4],w[5])}},5925:function(B,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function n(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(A,"__esModule",{value:!0}),A.GifProcessing=void 0;var w=h(7029),p=h(7372),u=h(8106),f=function(c){function a(n,s){var r=c.call(this)||this;return r._complexImage=n,r._imageUri=s,r._gif=r.disposeVar(new w.Gif),r._update=r.disposeVar((0,u.createAnimateFrameWithStartValues)(function(){return r.update()})),r._updateStart=r._update.start(),r._gif.url=r._imageUri,r}return g(a,c),Object.defineProperty(a.prototype,"gif",{get:function(){return this._gif},enumerable:!1,configurable:!0}),a.prototype.update=function(){var n=this,s=this._gif.player;if(s.gifFrames){var r,i=this._complexImage,l=s.gifCanvas,d=l.width,C=l.height;i.size=[d,C],i.pixelFormat="RGBA",i.copyTexture({source:s.gifCanvas}),(r=function(){s.autoPlayOnLoad=n._complexImage.autoplay})(),this.dispose(this._complexImage.autoplayChanged.disposableOn(r)),(r=function(){s.loop=n._complexImage.loop})(),this.dispose(this._complexImage.loopChanged.disposableOn(r))}},a}(p.Destroyable);A.GifProcessing=f},5985:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.Vector3=void 0;var m,g=h(2731),w=h(9898);(m=A.Vector3||(A.Vector3={})).cross=function(p,u,f){var c=p[0],a=p[1],n=p[2],s=u[0],r=u[1],i=u[2],l=a*i-n*r,d=n*s-c*i,C=c*r-a*s;return w.Vector.set(f,l,d,C)},m.getOrthogonalityVector=function(p,u,f,c){if(!w.Vector.isNormalized(p))throw new Error("!Vector.isNormalized(constVector)");if(!(f=w.Vector.isNormalized(u)?w.Vector.clone(u,f):w.Vector.normalize(u,f)))throw new Error("vectorToFix is [0, 0, 0]!");return f=m.cross(p,f,f),w.Vector.normalize(f,f),c&&w.Vector.clone(f,c),m.cross(f,p,f),w.Vector.normalize(f,f)},m.UNIT_X=Object.freeze([1,0,0]),m.UNIT_Y=Object.freeze([0,1,0]),m.UNIT_Z=Object.freeze([0,0,1]),m.ZERO=Object.freeze([0,0,0]),m.ONE=Object.freeze([1,1,1]),m.SCRATCH0=(0,g.createNumbers)(3),m.SCRATCH1=(0,g.createNumbers)(3),m.SCRATCH2=(0,g.createNumbers)(3),m.SCRATCH3=(0,g.createNumbers)(3),m.SCRATCH4=(0,g.createNumbers)(3),m.SCRATCH5=(0,g.createNumbers)(3),m.SCRATCH6=(0,g.createNumbers)(3),m.SCRATCH7=(0,g.createNumbers)(3),m.SCRATCH8=(0,g.createNumbers)(3),m.SCRATCH9=(0,g.createNumbers)(3)},5986:function(B,A,h){var m=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,n,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(i){n={error:i}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(n)throw n.error}}return r},g=this&&this.__values||function(u){var f=typeof Symbol=="function"&&Symbol.iterator,c=f&&u[f],a=0;if(c)return c.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&a>=u.length&&(u=void 0),{value:u&&u[a++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.extendClassProps=void 0;var w=h(3915);function p(u,f,c,a){var n=u;if(!n[f]){var s=a(),r=Object.fromEntries(Object.entries(s).filter(function(i){var l=m(i,2),d=l[0],C=l[1],_=d in Object.getPrototypeOf(c);if(_){var b=C instanceof w.ReactiveVariable?C.value:C;u[d]=b}return!_}).map(function(i){var l=m(i,2),d=l[0],C=l[1];return C instanceof w.ReactiveVariable?[d,C]:[d,Array.isArray(C)?(0,w.reactArrayWithUndefined)(C):(0,w.react)(C)]}));n[f]=r}return n[f]}A.extendClassProps=function(u,f){var c,a,n,s=Symbol("".concat((n=u==null?void 0:u.constructor)===null||n===void 0?void 0:n.name,"-createDefaultProps"));u.constructor.__xbsj_dpSymbol=s,u.constructor.__xbsj_createDefaultProps=f;var r=function(_,b){var E;if(!Reflect.has(u,_)){var F=function(Q){var U,T;if(!Q[s]){for(var S=[],P=Object.getPrototypeOf(Q);P;)S.push(P),P=Object.getPrototypeOf(P);S.reverse();try{for(var I=g(S),M=I.next();!M.done;M=I.next()){var K=M.value,W=K.constructor.__xbsj_dpSymbol;if(W){var L=K.constructor.__xbsj_createDefaultProps;L&&p(Q,W,K,L)}}}catch(O){U={error:O}}finally{try{M&&!M.done&&(T=I.return)&&T.call(I)}finally{if(U)throw U.error}}}};Object.defineProperties(u,((E={})[_]={get:function(){return F(this),p(this,s,u,f)[_].value},set:function(Q){F(this);var U=p(this,s,u,f)[_];U||console.error("!propObj"),U.value=Q}},E["".concat(_,"Changed")]={get:function(){return F(this),p(this,s,u,f)[_].changed}},E["".concat(_,"React")]={get:function(){return F(this),p(this,s,u,f)[_]}},E))}};try{for(var i=g(Object.entries(f())),l=i.next();!l.done;l=i.next()){var d=m(l.value,2),C=d[0];d[1],r(C)}}catch(_){c={error:_}}finally{try{l&&!l.done&&(a=i.return)&&a.call(i)}finally{if(c)throw c.error}}}},6021:function(B,A,h){var m=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C};Object.defineProperty(A,"__esModule",{value:!0}),A._continuousMultiply=A._multiplyByPoint=A._affineMultiplyByPoint=A._multiplyByPointAsVector=A._multiplyByVector=A._multiplyByScale=A._multiplyByUniformScale=A._multiplyByTranslation=A._multiplyByMatrix3=A._multiplyTransformation=A._multiply=void 0;var g=h(2731),w=h(9898);function p(n,s,r){var i=n[0],l=n[1],d=n[2],C=n[3],_=n[4],b=n[5],E=n[6],F=n[7],Q=n[8],U=n[9],T=n[10],S=n[11],P=n[12],I=n[13],M=n[14],K=n[15],W=s[0],L=s[1],O=s[2],H=s[3],k=s[4],G=s[5],D=s[6],R=s[7],N=s[8],X=s[9],Y=s[10],Z=s[11],ie=s[12],ae=s[13],me=s[14],we=s[15],re=i*W+_*L+Q*O+P*H,se=l*W+b*L+U*O+I*H,ye=d*W+E*L+T*O+M*H,be=C*W+F*L+S*O+K*H,ue=i*k+_*G+Q*D+P*R,ne=l*k+b*G+U*D+I*R,Me=d*k+E*G+T*D+M*R,tt=C*k+F*G+S*D+K*R,LA=i*N+_*X+Q*Y+P*Z,Ke=l*N+b*X+U*Y+I*Z,he=d*N+E*X+T*Y+M*Z,wt=C*N+F*X+S*Y+K*Z,Xn=i*ie+_*ae+Q*me+P*we,Yn=l*ie+b*ae+U*me+I*we,$n=d*ie+E*ae+T*me+M*we,Bt=C*ie+F*ae+S*me+K*we;return(r=r||(0,g.createNumbers)(16))[0]=re,r[1]=se,r[2]=ye,r[3]=be,r[4]=ue,r[5]=ne,r[6]=Me,r[7]=tt,r[8]=LA,r[9]=Ke,r[10]=he,r[11]=wt,r[12]=Xn,r[13]=Yn,r[14]=$n,r[15]=Bt,r}A._multiply=p,A._multiplyTransformation=function(n,s,r){var i=n[0],l=n[1],d=n[2],C=n[4],_=n[5],b=n[6],E=n[8],F=n[9],Q=n[10],U=n[12],T=n[13],S=n[14],P=s[0],I=s[1],M=s[2],K=s[4],W=s[5],L=s[6],O=s[8],H=s[9],k=s[10],G=s[12],D=s[13],R=s[14],N=i*P+C*I+E*M,X=l*P+_*I+F*M,Y=d*P+b*I+Q*M,Z=i*K+C*W+E*L,ie=l*K+_*W+F*L,ae=d*K+b*W+Q*L,me=i*O+C*H+E*k,we=l*O+_*H+F*k,re=d*O+b*H+Q*k,se=i*G+C*D+E*R+U,ye=l*G+_*D+F*R+T,be=d*G+b*D+Q*R+S;return(r=r||(0,g.createNumbers)(16))[0]=N,r[1]=X,r[2]=Y,r[3]=0,r[4]=Z,r[5]=ie,r[6]=ae,r[7]=0,r[8]=me,r[9]=we,r[10]=re,r[11]=0,r[12]=se,r[13]=ye,r[14]=be,r[15]=1,r},A._multiplyByMatrix3=function(n,s,r){var i=n[0],l=n[1],d=n[2],C=n[4],_=n[5],b=n[6],E=n[8],F=n[9],Q=n[10],U=s[0],T=s[1],S=s[2],P=s[3],I=s[4],M=s[5],K=s[6],W=s[7],L=s[8],O=i*U+C*T+E*S,H=l*U+_*T+F*S,k=d*U+b*T+Q*S,G=i*P+C*I+E*M,D=l*P+_*I+F*M,R=d*P+b*I+Q*M,N=i*K+C*W+E*L,X=l*K+_*W+F*L,Y=d*K+b*W+Q*L;return(r=r||(0,g.createNumbers)(16))[0]=O,r[1]=H,r[2]=k,r[3]=0,r[4]=G,r[5]=D,r[6]=R,r[7]=0,r[8]=N,r[9]=X,r[10]=Y,r[11]=0,r[12]=n[12],r[13]=n[13],r[14]=n[14],r[15]=n[15],r},A._multiplyByTranslation=function(n,s,r){var i=s[0],l=s[1],d=s[2],C=i*n[0]+l*n[4]+d*n[8]+n[12],_=i*n[1]+l*n[5]+d*n[9]+n[13],b=i*n[2]+l*n[6]+d*n[10]+n[14];return(r=r||(0,g.createNumbers)(16))[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],r[4]=n[4],r[5]=n[5],r[6]=n[6],r[7]=n[7],r[8]=n[8],r[9]=n[9],r[10]=n[10],r[11]=n[11],r[12]=C,r[13]=_,r[14]=b,r[15]=n[15],r};var u=(0,g.createNumbers)(3);function f(n,s,r){if(n[15]!==1)throw new Error("_multiplyByScale error: it should be affine matrix!");var i=s[0],l=s[1],d=s[2];return r=r||(0,g.createNumbers)(16),i===1&&l===1&&d===1?n!==r?w.Vector.clone(n,r):n:(r[0]=i*n[0],r[1]=i*n[1],r[2]=i*n[2],r[3]=0,r[4]=l*n[4],r[5]=l*n[5],r[6]=l*n[6],r[7]=0,r[8]=d*n[8],r[9]=d*n[9],r[10]=d*n[10],r[11]=0,r[12]=n[12],r[13]=n[13],r[14]=n[14],r[15]=1,r)}function c(n,s,r){var i=s[0],l=s[1],d=s[2],C=s[3],_=n[0]*i+n[4]*l+n[8]*d+n[12]*C,b=n[1]*i+n[5]*l+n[9]*d+n[13]*C,E=n[2]*i+n[6]*l+n[10]*d+n[14]*C,F=n[3]*i+n[7]*l+n[11]*d+n[15]*C;return(r=r||(0,g.createNumbers)(4))[0]=_,r[1]=b,r[2]=E,r[3]=F,r}A._multiplyByUniformScale=function(n,s,r){return u[0]=s,u[1]=s,u[2]=s,f(n,u,r)},A._multiplyByScale=f,A._multiplyByVector=c,A._multiplyByPointAsVector=function(n,s,r){var i=s[0],l=s[1],d=s[2],C=n[0]*i+n[4]*l+n[8]*d,_=n[1]*i+n[5]*l+n[9]*d,b=n[2]*i+n[6]*l+n[10]*d;return(r=r||(0,g.createNumbers)(3))[0]=C,r[1]=_,r[2]=b,r},A._affineMultiplyByPoint=function(n,s,r){if(n[15]!==1)throw new Error("matrix[15] !== 1");var i=s[0],l=s[1],d=s[2],C=n[0]*i+n[4]*l+n[8]*d+n[12],_=n[1]*i+n[5]*l+n[9]*d+n[13],b=n[2]*i+n[6]*l+n[10]*d+n[14];return(r=r||(0,g.createNumbers)(3))[0]=C,r[1]=_,r[2]=b,r};var a=(0,g.createNumbers)(4);A._multiplyByPoint=function(n,s,r){w.Vector.set(a,s[0],s[1],s[2],1),c(n,a,a),r=r||(0,g.createNumbers)(3);var i=m(w.Vector.itr(a),4),l=i[0],d=i[1],C=i[2],_=i[3];return w.Vector.set(r,l/_,d/_,C/_),r},A._continuousMultiply=function(n,s){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var l=r.length;n!==s&&w.Vector.clone(s,n);for(var d=0;d<l;++d)Array.isArray(r[d])&&typeof r[d][0]=="function"?(0,r[d][0])(n,r[d][1],n):r[d].length===16&&p(n,r[d],n);return n}},6138:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.reduce=void 0;var m=h(8144);A.reduce=function(g,w,p){for(var u=(0,m.getIterator)(g),f=p,c=0;;){var a=u.next(),n=a.done,s=a.value;if(n)break;f=w(f,s,c++)}return f}},6148:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C},p=this&&this.__spreadArray||function(n,s,r){if(r||arguments.length===2)for(var i,l=0,d=s.length;l<d;l++)!i&&l in s||(i||(i=Array.prototype.slice.call(s,0,l)),i[l]=s[l]);return n.concat(i||Array.prototype.slice.call(s))};Object.defineProperty(A,"__esModule",{value:!0}),A.DebouncingWithStartValues=A.Debouncing=void 0;var u=h(1662),f=h(1148),c=function(n){function s(){var r=n.call(this,function(i,l,d){var C=i.errorFunc;try{var _=w((0,u.debounce)(l,d),2),b=_[0],E=_[1];return r._doFunc=b,E}catch(F){return C(F),function(){}}})||this;return r}return g(s,n),s.prototype.do=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._doFunc&&this._doFunc.apply(this,p([],w(r),!1))},s}(f.Processing);A.Debouncing=c;var a=function(n){function s(r,i){var l=n.call(this,function(d){var C=d.errorFunc;try{var _=w((0,u.debounce)(r,i),2),b=_[0],E=_[1];return l._doFunc=b,E}catch(F){return C(F),function(){}}})||this;return l}return g(s,n),s.prototype.do=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._doFunc&&this._doFunc.apply(this,p([],w(r),!1))},s}(f.Processing);A.DebouncingWithStartValues=a},6172:function(B,A,h){var m=this&&this.__read||function(a,n){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,i,l=s.call(a),d=[];try{for(;(n===void 0||n-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(C){i={error:C}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return d},g=this&&this.__spreadArray||function(a,n,s){if(s||arguments.length===2)for(var r,i=0,l=n.length;i<l;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return a.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(A,"__esModule",{value:!0}),A.OrientedBoundingBox=void 0;var w=h(2731),p=h(9898),u=h(7215),f=h(312),c=h(4915);(function(a){function n(b,E){return E=E||(0,w.createNumbers)(3),p.Vector.set(E,b[0],b[1],b[2]),E}function s(b,E){E=E||(0,w.createNumbers)(9);var F=b;return p.Vector.set(E,F[3],F[4],F[5],F[6],F[7],F[8],F[9],F[10],F[11]),E}a.getCenter=n,a.getHalfAxes=s,a.setCenter=function(b,E){for(var F=0;F<3;++F)b[F]=E[F];return b},a.setHalfAxes=function(b,E){for(var F=0;F<9;++F)b[F+3]=E[F];return b};var r=(0,w.createNumbers)(3),i=(0,w.createNumbers)(9);a.getModelMatrix=function(b,E){var F=s(b,i),Q=n(b,r);return p.Vector.set(E,F[0],F[1],F[2],0,F[3],F[4],F[5],0,F[6],F[7],F[8],0,Q[0],Q[1],Q[2],1)};var l=(0,w.createNumbers)(3),d=(0,w.createNumbers)(3),C=(0,w.createNumbers)(9);a.intersectPlane=function(b,E){var F=n(b,l),Q=u.Plane.getNormal(E,d),U=u.Plane.getDistance(E),T=s(b,C),S=Q[0],P=Q[1],I=Q[2],M=Math.abs(S*T[0]+P*T[1]+I*T[2])+Math.abs(S*T[3]+P*T[4]+I*T[5])+Math.abs(S*T[6]+P*T[7]+I*T[8]),K=p.Vector.dot(Q,F)+U;return K<=-M?f.Intersect.OUTSIDE:K>=M?f.Intersect.INSIDE:f.Intersect.INTERSECTING};var _=(0,w.createNumbers)(3);a.getBoundingSphere=function(b,E){E=E||(0,w.createNumbers)(4);var F=s(b,C),Q=c.Matrix3.getScale(F,_),U=Math.max.apply(Math,g([],m(p.Vector.itr(Q)),!1));return E[0]=b[0],E[1]=b[1],E[2]=b[2],E[3]=U,E}})(A.OrientedBoundingBox||(A.OrientedBoundingBox={}))},6270:function(B,A,h){var m=this&&this.__read||function(c,a){var n=typeof Symbol=="function"&&c[Symbol.iterator];if(!n)return c;var s,r,i=n.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=i.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return l},g=this&&this.__spreadArray||function(c,a,n){if(n||arguments.length===2)for(var s,r=0,i=a.length;r<i;r++)!s&&r in a||(s||(s=Array.prototype.slice.call(a,0,r)),s[r]=a[r]);return c.concat(s||Array.prototype.slice.call(a))};Object.defineProperty(A,"__esModule",{value:!0}),A.ColorStops=void 0;var w=h(3281),p=h(7372),u=[0,0,0,0],f=function(){function c(){this._value=[],this._valueStr="[]",this.value=[{ratio:0,rgba:[0,0,1,1]},{ratio:.2,rgba:[0,1,0,1]},{ratio:.8,rgba:[1,1,0,1]},{ratio:1,rgba:[1,0,0,1]}]}return Object.defineProperty(c.prototype,"valueChanged",{get:function(){return this._valueChanged||(this._valueChanged=new p.Event),this._valueChanged},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"value",{get:function(){return JSON.parse(JSON.stringify(this._value))},set:function(a){if(a.length!==0){var n;if(this._value.length===a.length){var s=g([],m(a),!1).sort(function(i,l){return i.ratio-l.ratio});if(n=JSON.stringify(s),this._valueStr===n)return}n=n||JSON.stringify(g([],m(a),!1).sort(function(i,l){return i.ratio-l.ratio}));var r=this._value;if(this._value=JSON.parse(n),this._value.length===0)throw console.error("this._colorStops.length === 0"),new Error("this._colorStops.length === 0");this._valueChanged&&this._valueChanged.emit(this._value,r)}else console.error("value.length === 0")},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"valueStr",{get:function(){return this._valueStr},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"minRatio",{get:function(){return this._value[0].ratio},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"maxRatio",{get:function(){return this._value[this._value.length-1].ratio},enumerable:!1,configurable:!0}),c.prototype._getRatioIndex=function(a){if(a<this._value[0].ratio||a>this._value[this._value.length-1].ratio)throw console.error("ratio <= this._colorStops[0].ratio || ratio >= this._colorStops[this._colorStops.length - 1].ratio"),new Error("ratio <= this._colorStops[0].ratio || ratio >= this._colorStops[this._colorStops.length - 1].ratio");for(var n=this._value.length,s=0;s<n-1;++s)if(a>=this._value[s].ratio&&a<=this._value[s+1].ratio)return s;throw console.error("shoud not be here!"),new Error("shoud not be here!")},c.prototype.getRatioColor=function(a,n){a=(0,w.clamp)(a,this.minRatio,this.maxRatio);for(var s=this._getRatioIndex(a),r=this._value[s],i=this._value[s+1],l=(a-r.ratio)/(i.ratio-r.ratio),d=0;d<4;++d)n[d]=r.rgba[d]*(1-l)+i.rgba[d]*l;if(!n.some(Number.isNaN))return n;console.error("result NaN")},c.prototype.getColorsInUint8=function(a){if(a.length%4!=0)throw console.error("result.length % 4 !== 0"),new Error("result.length % 4 !== 0");for(var n=a.length/4,s=1/n,r=0;r<n;++r){var i=u;this.getRatioColor((r+.5)*s,i)||i.splice(0,4,0,0,0,0);for(var l=0;l<4;++l)a[4*r+l]=255*i[l]|0}return a},c}();A.ColorStops=f},6301:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.forEachWithBreak=void 0;var m=h(8144);A.forEachWithBreak=function(g,w){for(var p=!1,u=(0,m.getIterator)(g),f=-1;;){var c=u.next(),a=c.done,n=c.value;if(a)break;if(w(n,++f)){p=!0;break}}return p}},6356:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(2429),A),g(h(3639),A),g(h(6613),A),g(h(6270),A),g(h(2127),A),g(h(4621),A),g(h(8106),A),g(h(6405),A),g(h(5819),A),g(h(1148),A),g(h(2220),A),g(h(3815),A),g(h(2243),A),g(h(8576),A),g(h(8453),A),g(h(4990),A),g(h(172),A),g(h(2075),A),g(h(7529),A),g(h(1412),A),g(h(8997),A),g(h(8421),A),g(h(2789),A),g(h(985),A),g(h(9412),A),g(h(7029),A)},6362:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.min=A.max=void 0;var m=h(6138);A.max=function(g){return(0,m.reduce)(g,function(w,p){return w>p?w:p},Number.NEGATIVE_INFINITY)},A.min=function(g){return(0,m.reduce)(g,function(w,p){return w<p?w:p},Number.POSITIVE_INFINITY)}},6405:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(109),A),g(h(2921),A),g(h(5544),A),g(h(2002),A),g(h(2811),A),g(h(6946),A),g(h(643),A)},6424:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.vertexArrayToBezierSpline3Positions=void 0;var m=h(8466),g=(0,m.computBezierSpline3BaseFactors)(20);A.vertexArrayToBezierSpline3Positions=function(w,p,u,f){var c,a,n=w.length;if(n<=1)return w.map(function(T){return T.position});for(var s=f===20?g:(0,m.computBezierSpline3BaseFactors)(f),r=u?n:n-1,i=new Array(r*f+1),l=0;l<r;++l){var d=w[l],C=w[l+1===n?0:l+1],_=d.position,b=(c=d.rightPosition)!==null&&c!==void 0?c:d.position,E=(a=C.leftPosition)!==null&&a!==void 0?a:C.position,F=C.position,Q=l*f;i[Q]=_;for(var U=1;U<f;++U)i[Q+U]=(0,m.bezierSpline3WithBaseFactor)(s[U],p,_,b,E,F)}return i[r*f]=w[u?0:n-1].position,i}},6432:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.isBase64Uri=A.isAbsoluteUri=void 0,A.isAbsoluteUri=function(h){return h.startsWith("http:")||h.startsWith("https:")},A.isBase64Uri=function(h){return h.startsWith("data:")}},6469:function(B,A){var h=this&&this.__awaiter||function(g,w,p,u){return new(p||(p=Promise))(function(f,c){function a(r){try{s(u.next(r))}catch(i){c(i)}}function n(r){try{s(u.throw(r))}catch(i){c(i)}}function s(r){var i;r.done?f(r.value):(i=r.value,i instanceof p?i:new p(function(l){l(i)})).then(a,n)}s((u=u.apply(g,w||[])).next())})},m=this&&this.__generator||function(g,w){var p,u,f,c,a={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return c={next:n(0),throw:n(1),return:n(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function n(s){return function(r){return function(i){if(p)throw new TypeError("Generator is already executing.");for(;c&&(c=0,i[0]&&(a=0)),a;)try{if(p=1,u&&(f=2&i[0]?u.return:i[0]?u.throw||((f=u.return)&&f.call(u),0):u.next)&&!(f=f.call(u,i[1])).done)return f;switch(u=0,f&&(i=[2&i[0],f.value]),i[0]){case 0:case 1:f=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,u=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((f=(f=a.trys).length>0&&f[f.length-1])||i[0]!==6&&i[0]!==2)){a=0;continue}if(i[0]===3&&(!f||i[1]>f[0]&&i[1]<f[3])){a.label=i[1];break}if(i[0]===6&&a.label<f[1]){a.label=f[1],f=i;break}if(f&&a.label<f[2]){a.label=f[2],a.ops.push(i);break}f[2]&&a.ops.pop(),a.trys.pop();continue}i=w.call(g,a)}catch(l){i=[6,l],u=0}finally{p=f=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([s,r])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.fetchImage=void 0,A.fetchImage=function(g,w){return w===void 0&&(w=""),h(this,void 0,void 0,function(){return m(this,function(p){return[2,new Promise(function(u,f){var c=new Image;c.crossOrigin=w,c.src=g,c.onload=function(){return u(c)},c.onerror=function(a){return f(a)}})]})})}},6555:function(B,A,h){var m,g=this&&this.__extends||(m=function(p,u){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,c){f.__proto__=c}||function(f,c){for(var a in c)Object.prototype.hasOwnProperty.call(c,a)&&(f[a]=c[a])},m(p,u)},function(p,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");function f(){this.constructor=p}m(p,u),p.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)});Object.defineProperty(A,"__esModule",{value:!0}),A.HasOwner=void 0;var w=function(p){function u(f){var c=p.call(this)||this;return c._owner=f,c}return g(u,p),Object.defineProperty(u.prototype,"owner",{get:function(){return this._owner},enumerable:!1,configurable:!0}),u}(h(9359).Destroyable);A.HasOwner=w},6558:function(B,A){var h=this&&this.__read||function(g,w){var p=typeof Symbol=="function"&&g[Symbol.iterator];if(!p)return g;var u,f,c=p.call(g),a=[];try{for(;(w===void 0||w-- >0)&&!(u=c.next()).done;)a.push(u.value)}catch(n){f={error:n}}finally{try{u&&!u.done&&(p=c.return)&&p.call(c)}finally{if(f)throw f.error}}return a},m=this&&this.__spreadArray||function(g,w,p){if(p||arguments.length===2)for(var u,f=0,c=w.length;f<c;f++)!u&&f in w||(u||(u=Array.prototype.slice.call(w,0,f)),u[f]=w[f]);return g.concat(u||Array.prototype.slice.call(w))};Object.defineProperty(A,"__esModule",{value:!0}),A.nextMicroTask=A.nextAnimateFrame=A.animateFrame=A.timeout=A.interval=void 0,A.interval=function(g,w){for(var p=[],u=2;u<arguments.length;u++)p[u-2]=arguments[u];var f=setInterval.apply(void 0,m([g,w],h(p),!1));return function(){return clearInterval(f)}},A.timeout=function(g,w){for(var p=[],u=2;u<arguments.length;u++)p[u-2]=arguments[u];var f=setTimeout.apply(void 0,m([g,w],h(p),!1));return function(){return clearTimeout(f)}},A.animateFrame=function(g){for(var w,p=[],u=1;u<arguments.length;u++)p[u-1]=arguments[u];var f=function(){var c=performance.now();g.apply(void 0,m([c],h(p),!1)),w=requestAnimationFrame(f)};return f(),function(){return w!==void 0&&(cancelAnimationFrame(w),w=void 0)}},A.nextAnimateFrame=function(g){for(var w,p=[],u=1;u<arguments.length;u++)p[u-1]=arguments[u];return w=requestAnimationFrame(function(){var f=performance.now();g.apply(void 0,m([f],h(p),!1))}),function(){return w!==void 0&&(cancelAnimationFrame(w),w=void 0)}},A.nextMicroTask=function(g){for(var w=[],p=1;p<arguments.length;p++)w[p-1]=arguments[p];var u,f=!1;return new Promise(function(c,a){u=a,c()}).then(function(){!f&&g.apply(void 0,m([],h(w),!1))}).catch(function(c){console.error(c)}),function(){return(f=!0)&&u&&(u("nextMicroTask cancelled!"),u=void 0)}}},6583:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.oneTimeWarning=void 0;var h=new Set;A.oneTimeWarning=function(m,g){g===void 0&&(g=m),h.has(g)||(h.add(g),console.warn(m))}},6613:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0})},6655:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getPaddingByteLength=void 0,A.getPaddingByteLength=function(h,m){return m!==1&&m!==2&&m!==4&&m!==8&&console.warn("getPaddingByteLength boundaryByteLength(".concat(m,") is not 2^")),(m-h%m)%m}},6680:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A._fromDirectionUpRightAndTranslation=A._fromMatrix3AndTranslation=A._fromTranslation=void 0;var m=h(2731),g=h(9898),w=h(5985);A._fromTranslation=function(p,u){return(u=u||(0,m.createNumbers)(16))[0]=1,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=1,u[6]=0,u[7]=0,u[8]=0,u[9]=0,u[10]=1,u[11]=0,u[12]=p[0],u[13]=p[1],u[14]=p[2],u[15]=1,u},A._fromMatrix3AndTranslation=function(p,u,f){return u=u||w.Vector3.ZERO,(f=f||(0,m.createNumbers)(16))[0]=p[0],f[1]=p[1],f[2]=p[2],f[3]=0,f[4]=p[3],f[5]=p[4],f[6]=p[5],f[7]=0,f[8]=p[6],f[9]=p[7],f[10]=p[8],f[11]=0,f[12]=u[0],f[13]=u[1],f[14]=u[2],f[15]=1,f},A._fromDirectionUpRightAndTranslation=function(p,u,f,c,a){var n=c??w.Vector3.ZERO;return g.Vector.set(a,f[0],f[1],f[2],0,u[0],u[1],u[2],0,-p[0],-p[1],-p[2],0,n[0],n[1],n[2],1)}},6888:function(B,A,h){var m=this&&this.__read||function(f,c){var a=typeof Symbol=="function"&&f[Symbol.iterator];if(!a)return f;var n,s,r=a.call(f),i=[];try{for(;(c===void 0||c-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(l){s={error:l}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}}return i},g=this&&this.__spreadArray||function(f,c,a){if(a||arguments.length===2)for(var n,s=0,r=c.length;s<r;s++)!n&&s in c||(n||(n=Array.prototype.slice.call(c,0,s)),n[s]=c[s]);return f.concat(n||Array.prototype.slice.call(c))};Object.defineProperty(A,"__esModule",{value:!0}),A.createAnimateFrameWithStartValues=A.createAnimateFrame=A.createIntervalWithStartValues=A.createInterval=A.createTimeoutWithStartValues=A.createTimeout=A.createNextMicroTaskWithStartValues=A.createNextMicroTask=A.createNextAnimateFrameWithStartValues=A.createNextAnimateFrame=void 0;var w=h(1662),p=h(5819);function u(f,c){for(var a=[],n=2;n<arguments.length;n++)a[n-2]=arguments[n];try{return c.apply(void 0,g([],m(a),!1))}catch(s){f(s)}}A.createNextAnimateFrame=function(){return new p.Processing(function(f,c){var a=f.completeFunc,n=f.errorFunc;return(0,w.nextAnimateFrame)(function(){return u(n,function(){c&&c(),a()})})})},A.createNextAnimateFrameWithStartValues=function(f){return new p.Processing(function(c){var a=c.completeFunc,n=c.errorFunc;return(0,w.nextAnimateFrame)(function(){return u(n,function(){f&&f(),a()})})})},A.createNextMicroTask=function(){return new p.Processing(function(f,c){var a=f.completeFunc,n=f.errorFunc;return(0,w.nextMicroTask)(function(){u(n,function(){c&&c(),a()})})})},A.createNextMicroTaskWithStartValues=function(f){return new p.Processing(function(c){var a=c.completeFunc,n=c.errorFunc;return(0,w.nextMicroTask)(function(){u(n,function(){f&&f(),a()})})})},A.createTimeout=function(){return new p.Processing(function(f,c,a){var n=f.completeFunc,s=f.errorFunc;return(0,w.timeout)(function(){u(s,function(){c&&c(),n()})},a??1e3)})},A.createTimeoutWithStartValues=function(f,c){return new p.Processing(function(a){var n=a.completeFunc,s=a.errorFunc;return(0,w.timeout)(function(){u(s,function(){f&&f(),n()})},c??1e3)})},A.createInterval=function(){return new p.Processing(function(f,c,a){var n=f.errorFunc;return a===void 0&&(a=1e3),(0,w.interval)(function(){return u(n,c)},a)})},A.createIntervalWithStartValues=function(f,c){return c===void 0&&(c=1e3),new p.Processing(function(a){var n=a.errorFunc;return(0,w.interval)(function(){return u(n,f)},c)})},A.createAnimateFrame=function(){return new p.Processing(function(f,c){var a=f.errorFunc;return(0,w.animateFrame)(function(n){return u(a,c,n)})})},A.createAnimateFrameWithStartValues=function(f){return new p.Processing(function(c){var a=c.errorFunc;return(0,w.animateFrame)(function(n){return u(a,f,n)})})}},6891:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}),w=this&&this.__read||function(a,n){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,i,l=s.call(a),d=[];try{for(;(n===void 0||n-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(C){i={error:C}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return d},p=this&&this.__spreadArray||function(a,n,s){if(s||arguments.length===2)for(var r,i=0,l=n.length;i<l;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return a.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(A,"__esModule",{value:!0}),A.ProcessingDeprecated=void 0;var u=h(7372),f=h(7372),c=function(a){function n(s,r,i,l,d,C,_,b){var E=a.call(this)||this;return E._startProcessingFunc=s,E.startFunc=r,E.progressFunc=i,E.completeFunc=l,E.cancelFunc=d,E.cancelledFunc=C,E.errorFunc=_,E.finishedFunc=b,E._processingID=-1,E._status="Initial",E.dispose(function(){var F;return(F=E._statusChangedEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._startEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._progressEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._completeEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._cancelEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._cancelledEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._errorEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._finishedEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){return E.reset()}),E}return g(n,a),Object.defineProperty(n.prototype,"startEvent",{get:function(){return this._startEvent=this._startEvent||new f.Event,this._startEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"progressEvent",{get:function(){return this._progressEvent=this._progressEvent||new f.Event,this._progressEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"completeEvent",{get:function(){return this._completeEvent=this._completeEvent||new f.Event,this._completeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"cancelEvent",{get:function(){return this._cancelEvent=this._cancelEvent||new f.Event,this._cancelEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"cancelledEvent",{get:function(){return this._cancelledEvent=this._cancelledEvent||new f.Event,this._cancelledEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"errorEvent",{get:function(){return this._errorEvent=this._errorEvent||new f.Event,this._errorEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"finishedEvent",{get:function(){return this._finishedEvent=this._finishedEvent||new f.Event,this._finishedEvent},enumerable:!1,configurable:!0}),n.prototype._completeFunc=function(s,r){this.processingID===s&&this._status==="Running"&&(this._status="Completed",this.completeFunc&&this.completeFunc(r),this._completeEvent&&this._completeEvent.emit(r),this.finishedFunc&&this.finishedFunc({status:"Completed",value:r}),this._finishedEvent&&this._finishedEvent.emit({status:"Completed",value:r}))},n.prototype._cancelFunc=function(s){this._status==="Running"&&(this._status="Cancelling",this.cancelFunc&&this.cancelFunc(s),this._cancelEvent&&this._cancelEvent.emit(s))},n.prototype._cancelledFunc=function(s){this._status==="Cancelling"&&(this._status="Cancelled",this.cancelledFunc&&this.cancelledFunc(s),this._cancelledEvent&&this._cancelledEvent.emit(s),this.finishedFunc&&this.finishedFunc({status:"Cancelled",cancelError:s}),this._finishedEvent&&this._finishedEvent.emit({status:"Cancelled",cancelError:s}))},n.prototype._errorFunc=function(s,r){this.processingID===s&&this._status==="Running"&&(this._status="Error",this.errorFunc&&this.errorFunc(r),this._errorEvent&&this._errorEvent.emit(r),this.finishedFunc&&this.finishedFunc({status:"Error",error:r}),this._finishedEvent&&this._finishedEvent.emit({status:"Error",error:r}))},n.prototype._progressFunc=function(s,r){this.processingID===s&&this._status==="Running"&&(this.progressFunc&&this.progressFunc(r),this._progressEvent&&this._progressEvent.emit(r))},n.prototype._startFunc=function(){for(var s,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(this._status==="Initial"){this._status="Running";var l=++this._processingID,d={completeFunc:this._completeFunc.bind(this,l),errorFunc:this._errorFunc.bind(this,l),progressFunc:this._progressFunc.bind(this,l),cancelFunc:this._cancel.bind(this,l),processingID:l},C=this._startProcessingFunc.apply(this,p([d],w(r),!1));return this._forceCancelFunc=C,this.startFunc&&this.startFunc.apply(this,p([],w(r),!1)),this._startEvent&&(s=this._startEvent).emit.apply(s,p([],w(r),!1)),l}return console.warn("this._status !== 'Initial' but start again!"),-1},Object.defineProperty(n.prototype,"_status",{get:function(){return this.__status},set:function(s){if(this.__status!==s){var r=this.__status;this.__status=s,this._statusChangedEvent&&this._statusChangedEvent.emit(s,r)}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"processingID",{get:function(){return this._processingID},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"statusChangedEvent",{get:function(){return this._statusChangedEvent||(this._statusChangedEvent=new f.Event),this._statusChangedEvent},enumerable:!1,configurable:!0}),n.prototype.reset=function(s){this._status==="Running"&&this.cancel(s),this._status==="Cancelled"||this._status==="Error"||this._status==="Completed"?this._status="Initial":this._status==="Cancelling"&&console.warn("Cannot reset! (this._status === 'Cancelling')")},Object.defineProperty(n.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),n.prototype.cancel=function(s,r){return r===void 0&&(r=this.processingID),this._cancel(r,s)},n.prototype._cancel=function(s,r){var i=this;if(this.processingID===s)if(this._status==="Running"){if(!this._forceCancelFunc)throw new Error("this._forceCancelFunc is undefined!");this._cancelFunc(r);var l=this._forceCancelFunc(r);if(this._forceCancelFunc=void 0,l&&l instanceof Promise)return l.then(function(){i._cancelledFunc(r)});this._cancelledFunc(r)}else console.warn("this._status !== 'Running' but cancel")},n.prototype.start=function(){for(var s=[],r=0;r<arguments.length;r++)s[r]=arguments[r];try{return this._startFunc.apply(this,p([],w(s),!1))}catch(i){console.error("processing start error: ".concat(i))}},n.prototype.restart=function(s){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];try{return this.isRunning&&this.cancel(s),this.isFinished&&this.reset(s),this.isInitial?this._startFunc.apply(this,p([],w(r),!1)):(console.warn("restart failed!"),-1)}catch(l){console.error("processing restart error: ".concat(l))}},Object.defineProperty(n.prototype,"isCompleted",{get:function(){return this._status==="Completed"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isCancelled",{get:function(){return this._status==="Cancelled"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isCancelling",{get:function(){return this._status==="Cancelling"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isError",{get:function(){return this._status==="Error"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isInitial",{get:function(){return this._status==="Initial"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isRunning",{get:function(){return this._status==="Running"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isFinished",{get:function(){return this.isCancelled||this.isCompleted||this.isError},enumerable:!1,configurable:!0}),n}(u.Destroyable);A.ProcessingDeprecated=c},6928:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(7521),A),g(h(5252),A),g(h(5260),A),g(h(2277),A),g(h(9181),A),g(h(4499),A),g(h(1023),A)},6946:function(B,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function n(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(A,"__esModule",{value:!0}),A.TransitionDeprecated=void 0;var w=h(7372),p=h(7372),u=h(2811),f=function(c){function a(n){var s=c.call(this)||this;return s._duration=n,s._target=0,s._current=0,s._start=0,s._timing=new u.TimingDeprecated(Number.POSITIVE_INFINITY),s._timing.progressFunc=function(r){var i=r.ratio;i=i<0?0:i>1?1:i;var l=s._start*(1-i)+s._target*i;s._current=l,s._currentChanged&&s._currentChanged.emit(s._target,s._current)},s.dispose(function(){s._timing.isRunning&&s._timing.cancel(),s._timing.destroy()}),s}return g(a,c),a.prototype.reset=function(n,s){s===void 0&&(s=n),this._timing.isRunning&&this._timing.cancel(),this._target=n,this._current=s,this._start=n},Object.defineProperty(a.prototype,"target",{get:function(){return this._target},set:function(n){if(this._target!==n){this._target=n,this._timing.isRunning&&this._timing.cancel(),this._timing.reset(),this._start=this._current;var s=Math.abs(this._target-this._start);this._timing.duration=s*this._duration,this._timing.start()}},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"current",{get:function(){return this._current},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"currentChanged",{get:function(){return this._currentChanged||(this._currentChanged=new p.Event),this._currentChanged},enumerable:!1,configurable:!0}),a}(w.Destroyable);A.TransitionDeprecated=f},7008:(B,A,h)=>{function m(C,_){var b=(65535&C)+(65535&_);return(C>>16)+(_>>16)+(b>>16)<<16|65535&b}function g(C,_,b,E,F,Q){return m((U=m(m(_,C),m(E,Q)))<<(T=F)|U>>>32-T,b);var U,T}function w(C,_,b,E,F,Q,U){return g(_&b|~_&E,C,_,F,Q,U)}function p(C,_,b,E,F,Q,U){return g(_&E|b&~E,C,_,F,Q,U)}function u(C,_,b,E,F,Q,U){return g(_^b^E,C,_,F,Q,U)}function f(C,_,b,E,F,Q,U){return g(b^(_|~E),C,_,F,Q,U)}function c(C,_){var b,E,F,Q,U;C[_>>5]|=128<<_%32,C[14+(_+64>>>9<<4)]=_;var T=1732584193,S=-271733879,P=-1732584194,I=271733878;for(b=0;b<C.length;b+=16)E=T,F=S,Q=P,U=I,T=w(T,S,P,I,C[b],7,-680876936),I=w(I,T,S,P,C[b+1],12,-389564586),P=w(P,I,T,S,C[b+2],17,606105819),S=w(S,P,I,T,C[b+3],22,-1044525330),T=w(T,S,P,I,C[b+4],7,-176418897),I=w(I,T,S,P,C[b+5],12,1200080426),P=w(P,I,T,S,C[b+6],17,-1473231341),S=w(S,P,I,T,C[b+7],22,-45705983),T=w(T,S,P,I,C[b+8],7,1770035416),I=w(I,T,S,P,C[b+9],12,-1958414417),P=w(P,I,T,S,C[b+10],17,-42063),S=w(S,P,I,T,C[b+11],22,-1990404162),T=w(T,S,P,I,C[b+12],7,1804603682),I=w(I,T,S,P,C[b+13],12,-40341101),P=w(P,I,T,S,C[b+14],17,-1502002290),T=p(T,S=w(S,P,I,T,C[b+15],22,1236535329),P,I,C[b+1],5,-165796510),I=p(I,T,S,P,C[b+6],9,-1069501632),P=p(P,I,T,S,C[b+11],14,643717713),S=p(S,P,I,T,C[b],20,-373897302),T=p(T,S,P,I,C[b+5],5,-701558691),I=p(I,T,S,P,C[b+10],9,38016083),P=p(P,I,T,S,C[b+15],14,-660478335),S=p(S,P,I,T,C[b+4],20,-405537848),T=p(T,S,P,I,C[b+9],5,568446438),I=p(I,T,S,P,C[b+14],9,-1019803690),P=p(P,I,T,S,C[b+3],14,-187363961),S=p(S,P,I,T,C[b+8],20,1163531501),T=p(T,S,P,I,C[b+13],5,-1444681467),I=p(I,T,S,P,C[b+2],9,-51403784),P=p(P,I,T,S,C[b+7],14,1735328473),T=u(T,S=p(S,P,I,T,C[b+12],20,-1926607734),P,I,C[b+5],4,-378558),I=u(I,T,S,P,C[b+8],11,-2022574463),P=u(P,I,T,S,C[b+11],16,1839030562),S=u(S,P,I,T,C[b+14],23,-35309556),T=u(T,S,P,I,C[b+1],4,-1530992060),I=u(I,T,S,P,C[b+4],11,1272893353),P=u(P,I,T,S,C[b+7],16,-155497632),S=u(S,P,I,T,C[b+10],23,-1094730640),T=u(T,S,P,I,C[b+13],4,681279174),I=u(I,T,S,P,C[b],11,-358537222),P=u(P,I,T,S,C[b+3],16,-722521979),S=u(S,P,I,T,C[b+6],23,76029189),T=u(T,S,P,I,C[b+9],4,-640364487),I=u(I,T,S,P,C[b+12],11,-421815835),P=u(P,I,T,S,C[b+15],16,530742520),T=f(T,S=u(S,P,I,T,C[b+2],23,-995338651),P,I,C[b],6,-198630844),I=f(I,T,S,P,C[b+7],10,1126891415),P=f(P,I,T,S,C[b+14],15,-1416354905),S=f(S,P,I,T,C[b+5],21,-57434055),T=f(T,S,P,I,C[b+12],6,1700485571),I=f(I,T,S,P,C[b+3],10,-1894986606),P=f(P,I,T,S,C[b+10],15,-1051523),S=f(S,P,I,T,C[b+1],21,-2054922799),T=f(T,S,P,I,C[b+8],6,1873313359),I=f(I,T,S,P,C[b+15],10,-30611744),P=f(P,I,T,S,C[b+6],15,-1560198380),S=f(S,P,I,T,C[b+13],21,1309151649),T=f(T,S,P,I,C[b+4],6,-145523070),I=f(I,T,S,P,C[b+11],10,-1120210379),P=f(P,I,T,S,C[b+2],15,718787259),S=f(S,P,I,T,C[b+9],21,-343485551),T=m(T,E),S=m(S,F),P=m(P,Q),I=m(I,U);return[T,S,P,I]}function a(C){var _,b="",E=32*C.length;for(_=0;_<E;_+=8)b+=String.fromCharCode(C[_>>5]>>>_%32&255);return b}function n(C){var _,b=[];for(b[(C.length>>2)-1]=void 0,_=0;_<b.length;_+=1)b[_]=0;var E=8*C.length;for(_=0;_<E;_+=8)b[_>>5]|=(255&C.charCodeAt(_/8))<<_%32;return b}function s(C){var _,b,E="0123456789abcdef",F="";for(b=0;b<C.length;b+=1)_=C.charCodeAt(b),F+=E.charAt(_>>>4&15)+E.charAt(15&_);return F}function r(C){return unescape(encodeURIComponent(C))}function i(C){return function(_){return a(c(n(_),8*_.length))}(r(C))}function l(C,_){return function(b,E){var F,Q,U=n(b),T=[],S=[];for(T[15]=S[15]=void 0,U.length>16&&(U=c(U,8*b.length)),F=0;F<16;F+=1)T[F]=909522486^U[F],S[F]=1549556828^U[F];return Q=c(T.concat(n(E)),512+8*E.length),a(c(S.concat(Q),640))}(r(C),r(_))}function d(C,_,b){return _?b?l(_,C):s(l(_,C)):b?i(C):s(i(C))}h.r(A),h.d(A,{md5:()=>d})},7014:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}),w=this&&this.__awaiter||function(a,n,s,r){return new(s||(s=Promise))(function(i,l){function d(b){try{_(r.next(b))}catch(E){l(E)}}function C(b){try{_(r.throw(b))}catch(E){l(E)}}function _(b){var E;b.done?i(b.value):(E=b.value,E instanceof s?E:new s(function(F){F(E)})).then(d,C)}_((r=r.apply(a,n||[])).next())})},p=this&&this.__generator||function(a,n){var s,r,i,l,d={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return l={next:C(0),throw:C(1),return:C(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function C(_){return function(b){return function(E){if(s)throw new TypeError("Generator is already executing.");for(;l&&(l=0,E[0]&&(d=0)),d;)try{if(s=1,r&&(i=2&E[0]?r.return:E[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,E[1])).done)return i;switch(r=0,i&&(E=[2&E[0],i.value]),E[0]){case 0:case 1:i=E;break;case 4:return d.label++,{value:E[1],done:!1};case 5:d.label++,r=E[1],E=[0];continue;case 7:E=d.ops.pop(),d.trys.pop();continue;default:if(!((i=(i=d.trys).length>0&&i[i.length-1])||E[0]!==6&&E[0]!==2)){d=0;continue}if(E[0]===3&&(!i||E[1]>i[0]&&E[1]<i[3])){d.label=E[1];break}if(E[0]===6&&d.label<i[1]){d.label=i[1],i=E;break}if(i&&d.label<i[2]){d.label=i[2],d.ops.push(E);break}i[2]&&d.ops.pop(),d.trys.pop();continue}E=n.call(a,d)}catch(F){E=[6,F],r=0}finally{s=i=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([_,b])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.ImageProcessing=void 0;var u=h(1662),f=h(5819),c=function(a){function n(s,r){var i=a.call(this)||this;return i._complexImage=s,i._imageUri=r,i._processing=i.disposeVar((0,f.createProcessingFromAsyncFunc)(function(l){return w(i,void 0,void 0,function(){var d,C;return p(this,function(_){switch(_.label){case 0:return d=this._complexImage,[4,l.promise((0,u.fetchImage)(this._imageUri,this._complexImage.crossOrigin))];case 1:return(C=_.sent())?(C instanceof HTMLImageElement&&(d.size=[C.naturalWidth,C.naturalHeight],d.pixelFormat="RGBA",d.copyTexture({source:C})),[2]):[2]}})})})),i._processingStart=i._processing.start(),i}return g(n,a),Object.defineProperty(n.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),n}(u.Destroyable);A.ImageProcessing=c},7029:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(5281),A),g(h(7118),A),g(h(9815),A)},7118:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}),w=this&&this.__read||function(a,n){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,i,l=s.call(a),d=[];try{for(;(n===void 0||n-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(C){i={error:C}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return d},p=this&&this.__spreadArray||function(a,n,s){if(s||arguments.length===2)for(var r,i=0,l=n.length;i<l;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return a.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(A,"__esModule",{value:!0}),A.GifPlayer=void 0;var u=h(1662);function f(a,n,s){return a<n?n:a>s?s:a}var c=function(a){function n(s,r,i){r===void 0&&(r=!0);var l=a.call(this)||this;l._container=s,l._gifFrames=l.disposeVar((0,u.react)(void 0)),l._gifDurations=[],l._gifDuration=l.disposeVar((0,u.react)(0)),l._gifSize=l.disposeVar((0,u.react)([0,0],function(E,F){return E.every(function(Q,U){return Q===F[U]})},function(E){return p([],w(E),!1)})),l._autoPlayOnLoad=l.disposeVar((0,u.react)(!0)),l.loop=!0;var d=document.createElement("canvas");l._gifCanvas=d,d.style.width="100%",d.style.height="100%";var C,_=d.getContext("2d");l._container&&l._container.appendChild(d),l.dispose(function(){return l._container&&l._container.removeChild(d)}),l.dispose(l._gifFrames.changed.disposableOn(function(E){if(!E||E.length===0)return d.width=0,void(d.height=0);var F=E[0].dims,Q=F.width,U=F.height;l._gifSize.value=[Q,U];var T=E.length,S=0;l._gifDurations.length=0;for(var P=0;P<T;++P)S+=E[P].delay,l._gifDurations.push(S);l._gifDuration.value=l._gifDurations[l._gifDurations.length-1],d.width=Q,d.height=U,C=_.createImageData(Q,U),l.currentTimeChangedEvent.emit(l.currentTime,l.currentTime),l._autoPlayOnLoad.value&&(l.currentTime=0,l.playing=!0)}));var b=-1;return l.dispose(l.currentTimeChangedEvent.disposableOn(function(E){var F=f(E/l.duration,0,1),Q=l.gifDuration*F,U=l._gifFrames.value;if(U&&U.length>0){var T=l._getFrame(Q);if(T===b)return;b=T;var S=U[T];if(S.disposalType!==0&&S.disposalType!==1&&S.disposalType!==2&&(0,u.oneTimeWarning)("gif parsed get disposalType ".concat(S.disposalType,"... frame: ").concat(T," size: ").concat(JSON.stringify(S.dims)),"gif parsed get disposalType ".concat(S.disposalType,"...")),!C||T!==0&&S.disposalType!==2||C.data.fill(0),C){var P=w(l._gifSize.value,2),I=P[0],M=P[1],K=S.dims,W=K.width,L=K.height,O=K.left,H=K.top;if(L>M)throw new Error("height > canvasHeight");for(var k=0;k<L;++k)for(var G=0;G<W;++G){var D=k*W+G,R=(H+k)*I+(O+G),N=C.data,X=S.patch,Y=X[4*D+3]/255;N[4*R+0]=N[4*R+0]*(1-Y)+X[4*D+0]*Y|0,N[4*R+1]=N[4*R+1]*(1-Y)+X[4*D+1]*Y|0,N[4*R+2]=N[4*R+2]*(1-Y)+X[4*D+2]*Y|0,N[4*R+3]=0|f(N[4*R+3]+X[4*D+3],0,255)}_.putImageData(C,0,0)}}else(0,u.oneTimeWarning)("gif资源未加载!无法播放!")})),l.dispose(l._gifDuration.changed.disposableOn(function(){l.duration=l.gifDuration})),l._autoPlayOnLoad.value=r,l._gifFrames.value=i,l}return g(n,a),Object.defineProperty(n.prototype,"gifCanvas",{get:function(){return this._gifCanvas},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gifFrames",{get:function(){return this._gifFrames.value},set:function(s){this._gifFrames.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gifFramesChanged",{get:function(){return this._gifFrames.changed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gifSize",{get:function(){return this._gifSize.value},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gifSizeChanged",{get:function(){return this._gifSize.changed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gifDuration",{get:function(){return this._gifDuration.value},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gifDurationChanged",{get:function(){return this._gifDuration.changed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"autoPlayOnLoad",{get:function(){return this._autoPlayOnLoad.value},set:function(s){this._autoPlayOnLoad.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"autoPlayOnLoadChanged",{get:function(){return this._autoPlayOnLoad.changed},enumerable:!1,configurable:!0}),n.prototype._getFrame=function(s){for(var r=this._gifDurations.length,i=0;i<r;++i)if(s<=this._gifDurations[i])return i;throw new Error("should not be here")},n}(h(2127).Player);A.GifPlayer=c},7132:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.addClassStyle=void 0,A.addClassStyle=function(h){var m=document.createElement("style");return m.innerText=h,document.head.appendChild(m)}},7215:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.Plane=void 0;var m=h(2731),g=h(9898),w=h(5873),p=h(8089);(function(u){var f=(0,m.createNumbers)(3);function c(d,C){g.Vector.set(f,d[0],d[1],d[2]);var _=g.Vector.magnitudeSquared(f);if(Math.abs(_-1)>1e-9)throw new Error("plane必须是单位向量!");return g.Vector.dot(f,C)+d[3]}function a(d,C){return C=C||(0,m.createNumbers)(3),g.Vector.set(C,d[0],d[1],d[2]),C}u.distancePlaneToPoint=c,u.projectPointOntoPlane=function(d,C,_){_=_||(0,m.createNumbers)(3);var b=c(C,d);return g.Vector.set(f,C[0],C[1],C[2]),g.Vector.multiplyByScalar(f,-b,_),g.Vector.add(_,d,_),_},u.getNormal=a,u.getDistance=function(d){return d[3]},u.setNormal=function(d,C){for(var _=0;_<3;++_)d[_]=C[_];return d},u.setDistance=function(d,C){return d[3]=C,d};var n=(0,m.createNumbers)(3),s=(0,m.createNumbers)(3);u.distanceRayToPlane=function(d,C,_){_===void 0&&(_=1e-5);var b=w.Ray.getDirection(d,n),E=a(C,s),F=-g.Vector.dot(b,E);if(!(Math.abs(F)<_))return c(C,w.Ray.getOrigin(d,n))/F};var r=(0,m.createNumbers)(16),i=(0,m.createNumbers)(4),l=(0,m.createNumbers)(3);u.transform=function(d,C,_){_=_||(0,m.createNumbers)(4);var b=p.Matrix4.inverse(p.Matrix4.transpose(C,r),r),E=p.Matrix4.multiplyByVector(b,d,i),F=a(d,l);return g.Vector.multiplyByScalar(E,1/g.Vector.magnitude(F),_),_},u.fromPointNormal=function(d,C,_){if(Math.abs(1-g.Vector.magnitude(C))>1e-6)throw new Error("Math.abs(1 - Vector.magnitude(normal)) > 0.000001");var b=-g.Vector.dot(C,d);return _=_||(0,m.createNumbers)(4),g.Vector.set(_,C[0],C[1],C[2],b)},u.UNIT_X=(0,m.createNumbers)(4,1,0,0,0),u.UNIT_Y=(0,m.createNumbers)(4,0,1,0,0),u.UNIT_Z=(0,m.createNumbers)(4,0,0,1,0)})(A.Plane||(A.Plane={}))},7324:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C};Object.defineProperty(A,"__esModule",{value:!0}),A.getFloatDivPool=A.FloatDiv=void 0;var p=h(7372),u=h(7372),f=h(7372),c=function(n){function s(){var r=n!==null&&n.apply(this,arguments)||this;return r._show=!0,r._opacity=1,r._winPos=[0,0],r}return g(s,n),Object.defineProperty(s.prototype,"winPos",{get:function(){return this._winPos},set:function(r){var i=w(r,2),l=i[0],d=i[1],C=w(this._winPos,2),_=C[0],b=C[1];l===_&&d===b||(this._winPos[0]=l,this._winPos[1]=d,this._winPosChanged&&this._winPosChanged.emit(this._winPos))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"winPosChanged",{get:function(){return this._winPosChanged=this._winPosChanged||new p.Event,this._winPosChanged},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"opacity",{get:function(){return this._opacity},set:function(r){this._opacity!==r&&(this._opacity=r,this._opacityChanged&&this._opacityChanged.emit(this._opacity))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"opacityChanged",{get:function(){return this._opacityChanged=this._opacityChanged||new p.Event,this._opacityChanged},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"show",{get:function(){return this._show},set:function(r){this._show!==r&&(this._show=r,this._showChanged&&this._showChanged.emit(this._show))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"showChanged",{get:function(){return this._showChanged=this._showChanged||new p.Event,this._showChanged},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"closeEvent",{get:function(){return this._closeEvent||(this._closeEvent=new p.Event),this._closeEvent},enumerable:!1,configurable:!0}),s}(u.Destroyable);A.FloatDiv=c;var a=new WeakMap;A.getFloatDivPool=function(n){if(!a.has(n)){var s=new f.ObjPool(function(){return new n},function(r){return r.reset()});a.set(n,s)}return a.get(n)}},7372:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.SmartListenerPipe=A.SmartListenerHandler=A.ListenerPipe=A.Event=A.EventListenerHandler=A.DoublyLinkedList=A.react=A.ReactiveVariable=A.ObjPool=A.Destroyable=void 0;var m=h(1662);Object.defineProperty(A,"Destroyable",{enumerable:!0,get:function(){return m.Destroyable}});var g=h(1662);Object.defineProperty(A,"ObjPool",{enumerable:!0,get:function(){return g.ObjPool}});var w=h(1662);Object.defineProperty(A,"ReactiveVariable",{enumerable:!0,get:function(){return w.ReactiveVariable}}),Object.defineProperty(A,"react",{enumerable:!0,get:function(){return w.react}});var p=h(1662);Object.defineProperty(A,"DoublyLinkedList",{enumerable:!0,get:function(){return p.DoublyLinkedList}}),Object.defineProperty(A,"EventListenerHandler",{enumerable:!0,get:function(){return p.EventListenerHandler}}),Object.defineProperty(A,"Event",{enumerable:!0,get:function(){return p.Event}}),Object.defineProperty(A,"ListenerPipe",{enumerable:!0,get:function(){return p.ListenerPipe}}),Object.defineProperty(A,"SmartListenerHandler",{enumerable:!0,get:function(){return p.SmartListenerHandler}}),Object.defineProperty(A,"SmartListenerPipe",{enumerable:!0,get:function(){return p.SmartListenerPipe}})},7413:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.ViewMatrix=void 0;var m=h(4915),g=h(8089),w=h(2731),p=h(9549),u=h(9898),f=h(5985),c=(0,w.createNumbers)(3),a=(0,w.createNumbers)(3),n=(0,w.createNumbers)(3);(function(s){function r(I,M,K,W,L){return(L=L||(0,w.createNumbers)(16))[0]=W[0],L[1]=K[0],L[2]=-M[0],L[3]=0,L[4]=W[1],L[5]=K[1],L[6]=-M[1],L[7]=0,L[8]=W[2],L[9]=K[2],L[10]=-M[2],L[11]=0,L[12]=-u.Vector.dot(W,I),L[13]=-u.Vector.dot(K,I),L[14]=u.Vector.dot(M,I),L[15]=1,L}s.computeView=r;var i=(0,w.createNumbers)(3),l=(0,w.createNumbers)(3),d=(0,w.createNumbers)(3);function C(I,M,K){var W=i,L=l,O=d,H=M;return u.Vector.set(W,-H[6],-H[7],-H[8]),u.Vector.set(L,H[3],H[4],H[5]),u.Vector.set(O,H[0],H[1],H[2]),r(I,W,L,O,K)}s.fromRotationMatrix3AndPosition=C;var _=(0,w.createNumbers)(9);s.fromRotationQuatAndPosition=function(I,M,K){return m.Matrix3.fromQuaternion(M,_),C(I,_,K)},s.lookAt=function(I,M,K,W){var L=u.Vector.subtract(M,I,c);if(!u.Vector.normalize(L,L))throw new Error("direction is undefined!");return f.Vector3.getOrthogonalityVector(L,K,n,a),s.computeView(I,L,n,a,W)},s.lookAtWithDirection=function(I,M,K,W){if(Math.abs(u.Vector.magnitudeSquared(M)-1)>1e-5)throw new Error("direction is not normalized!");return f.Vector3.getOrthogonalityVector(M,K,n,a),s.computeView(I,M,n,a,W)},s.getDirection=function(I,M){return u.Vector.set(M,-I[2],-I[6],-I[10])},s.getRight=function(I,M){return u.Vector.set(M,I[0],I[4],I[8])},s.getUp=function(I,M){return u.Vector.set(M,I[1],I[5],I[9])};var b=(0,w.createNumbers)(9);function E(I,M){(M=M||(0,w.createNumbers)(9))[0]=I[0],M[1]=I[4],M[2]=I[8],M[3]=I[1],M[4]=I[5],M[5]=I[9],M[6]=I[2],M[7]=I[6],M[8]=I[10]}s.getRotationQuat=function(I,M){return E(I,b),p.Quaternion.fromRotationMatrix3(b,M)},s.getRotationMatrix=E,s.getEye=function(I,M){var K=I,W=-K[0]*K[12]-K[1]*K[13]-K[2]*K[14],L=-K[4]*K[12]-K[5]*K[13]-K[6]*K[14],O=-K[8]*K[12]-K[9]*K[13]-K[10]*K[14];return u.Vector.set(M,W,L,O)};var F=(0,w.createNumbers)(3);s.distanceFromEye=function(I,M){return-g.Matrix4.affineMultiplyByPoint(I,M,F)[2]},s.ratioScreenToWorldSpace=function(I,M,K){return M[3]*I[5]*.5/K};var Q=(0,w.createNumbers)(4),U=(0,w.createNumbers)(3),T=(0,w.createNumbers)(16),S=(0,w.createNumbers)(16),P=(0,w.createNumbers)(16);s.rotateWithAxis=function(I,M,K,W,L){return L=L||(0,w.createNumbers)(16),g.Matrix4.fromTranslation(M,T),u.Vector.negate(M,U),g.Matrix4.fromTranslation(U,S),p.Quaternion.fromAxisAngle(K,-W,Q),g.Matrix4.fromRotateQuatAndTranslation(Q,void 0,P),g.Matrix4.continuousMultiply(L,I,T,P,S)},s.computeOrthographicOffCenter=function(I,M,K,W,L,O,H){var k=1/(M-I),G=1/(W-K),D=1/(O-L),R=-(M+I)*k,N=-(W+K)*G,X=-(O+L)*D;return k*=2,G*=2,D*=-2,(H=H||(0,w.createNumbers)(16))[0]=k,H[1]=0,H[2]=0,H[3]=0,H[4]=0,H[5]=G,H[6]=0,H[7]=0,H[8]=0,H[9]=0,H[10]=D,H[11]=0,H[12]=R,H[13]=N,H[14]=X,H[15]=1,H}})(A.ViewMatrix||(A.ViewMatrix={}))},7418:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getValueFromRatio=A.defaultLerpFunc=void 0;var m=h(8144);A.defaultLerpFunc=function(g,w,p){return g*(1-p)+w*p},A.getValueFromRatio=function(g,w,p,u,f){for(var c,a,n,s,r=(0,m.getIterator)(w);;){var i=r.next(),l=i.done,d=i.value;if(l)break;if(d===void 0)throw new Error("typeof value === 'undefined'");var C=d.ratio,_=d.value;if(c=n,a=s&&u?u(s,f??a):s,n=C,s=_,(c===void 0||g>=c)&&(n===void 0||g<=n)){if(c===void 0)return s&&u?u(s,f):s;if(n===void 0||s===void 0)throw new Error("typeof rightRatio === 'undefined'");return p(a,s,(g-c)/(n-c),f)}s=s&&u?u(s,f):s}if(n===void 0)throw new Error("typeof rightRatio === 'undefined'");if(g>n)return s;throw new Error("!(ratio > rightRatio)")}},7427:(B,A)=>{var h;Object.defineProperty(A,"__esModule",{value:!0}),A.isCrossOriginUrl=void 0,A.isCrossOriginUrl=function(m){(h=h??document.createElement("a")).href=window.location.href;var g=h.host,w=h.protocol;return h.href=m,h.href=h.href,w!==h.protocol||g!==h.host}},7445:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(9986),A),g(h(200),A),g(h(7324),A),g(h(4143),A),g(h(3951),A),g(h(8193),A),g(h(4123),A)},7500:function(B,A,h){var m=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C},g=this&&this.__spreadArray||function(n,s,r){if(r||arguments.length===2)for(var i,l=0,d=s.length;l<d;l++)!i&&l in s||(i||(i=Array.prototype.slice.call(s,0,l)),i[l]=s[l]);return n.concat(i||Array.prototype.slice.call(s))};Object.defineProperty(A,"__esModule",{value:!0}),A.Vector4=void 0;var w=h(2731),p=h(9898),u=(0,w.createNumbers)(4,1,255,65025,16581375),f=(0,w.createNumbers)(4,1/255,1/255,1/255,0),c=(0,w.createNumbers)(4,1,1/255,1/65025,1/16581375),a=(0,w.createNumbers)(4);(function(n){n.packDepth=function(i,l){if(i<0||i>1)throw new Error("depth < 0 || depth > 1");if(i===1)return p.Vector.set(l,1,0,0,0);l=p.Vector.multiplyByScalar(u,i,l),p.Vector.fract(l,l);var d=p.Vector.set(a,l[1],l[2],l[3],l[3]);return p.Vector.multiply(d,f,d),p.Vector.subtract(l,d,l)},n.unpackDepth=function(i){return p.Vector.dot(i,c)};var s=new Uint32Array(1),r=new Uint8Array(s.buffer);n.uint32ToFourUint8s=function(i,l){if(i>4294967295)throw new Error("uint32Number(".concat(i,") > 0xFFFFFFFF"));return s[0]=i,p.Vector.set.apply(p.Vector,g([l],m(r),!1))},n.fourUint8sToUint32=function(i){return p.Vector.clone(i,r),s[0]},n.ONE=(0,w.createNumbers)(4,1,1,1,1),n.ZERO=(0,w.createNumbers)(4,0,0,0,0)})(A.Vector4||(A.Vector4={}))},7521:function(B,A,h){var m,g=this&&this.__extends||(m=function(s,r){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(i[d]=l[d])},m(s,r)},function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=s}m(s,r),s.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}),w=this&&this.__read||function(s,r){var i=typeof Symbol=="function"&&s[Symbol.iterator];if(!i)return s;var l,d,C=i.call(s),_=[];try{for(;(r===void 0||r-- >0)&&!(l=C.next()).done;)_.push(l.value)}catch(b){d={error:b}}finally{try{l&&!l.done&&(i=C.return)&&i.call(C)}finally{if(d)throw d.error}}return _};Object.defineProperty(A,"__esModule",{value:!0}),A.CanvasImagePoi=void 0;var p=h(1662),u=h(8106),f=h(5252),c=h(4499);function a(s,r){var i=w(r,3),l=i[0],d=i[1],C=i[2],_="".concat(l,"-").concat(d,"-").concat(C),b=(0,p.getExtProp)(s,_);return b||(b=(0,c.imageToCanvas)(s),(0,c.setCanvasUniformColor)(b,r),(0,p.setExtProp)(s,_,b)),b}var n=function(s){function r(i,l,d,C,_){d===void 0&&(d=[32,32]),C===void 0&&(C=[.5,1,0,0]),_===void 0&&(_="#F00F");var b=s.call(this,i)||this;b._image=l,b._size=d,b._originRatioAndOffset=C,b._defaultColorStr=_,b._tooltip="",b._title="",b.__scale=[1,1],b._tooltipAlpha=0,b._bgColor=[.3,.3,.3,.8],b._bgColorHexStr=(0,c.getColorHexStr)(b._bgColor),b._fgColor=[1,1,1,1],b._fgColorHexStr=(0,c.getColorHexStr)(b._fgColor);var E=new u.Transition(100),F=new u.Transition(100);b.dispose(function(){E.destroy(),F.destroy()});var Q=function(){if(b._clickEvent&&!b._clickEvent.empty){var U=(1+.08*F.current)*(1+.08*E.current);b._scale=[U,U],b._tooltipAlpha=E.current}};return b.dispose(b.activedChanged.disposableOn(function(U){F.target=U?1:0,b.needRedraw()})),b.dispose(b.hoveredChanged.disposableOn(function(U){E.target=U?1:0,b.needRedraw()})),b.dispose(b.selectedChanged.disposableOn(function(){b.needRedraw()})),b.dispose(F.currentChanged.disposableOn(Q)),b.dispose(E.currentChanged.disposableOn(Q)),b}return g(r,s),Object.defineProperty(r.prototype,"size",{get:function(){return this._size},set:function(i){var l=w(i,2),d=l[0],C=l[1],_=w(this._size,2),b=_[0],E=_[1];b===d&&E===C||(this._size[0]=d,this._size[1]=C,this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"_scale",{get:function(){return this.__scale},set:function(i){var l=w(i,2),d=l[0],C=l[1],_=w(this.__scale,2),b=_[0],E=_[1];b===d&&E===C||(this.__scale[0]=d,this.__scale[1]=C,this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"fgColor",{get:function(){return this._fgColor},set:function(i){if(!this._fgColor.every(function(E,F){return i[F]===E})){var l=w(i,4),d=l[0],C=l[1],_=l[2],b=l[3];this._fgColor.splice(0,4,d,C,_,b),this._fgColorHexStr=(0,c.getColorHexStr)(this._fgColor),this.needRedraw()}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"bgColor",{get:function(){return this._bgColor},set:function(i){if(!this._bgColor.every(function(E,F){return i[F]===E})){var l=w(i,4),d=l[0],C=l[1],_=l[2],b=l[3];this._bgColor.splice(0,4,d,C,_,b),this._bgColorHexStr=(0,c.getColorHexStr)(this._bgColor),this.needRedraw()}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"originRatioAndOffset",{get:function(){return this._originRatioAndOffset},set:function(i){var l=w(this._originRatioAndOffset,4),d=l[0],C=l[1],_=l[2],b=l[3],E=w(i,4),F=E[0],Q=E[1],U=E[2],T=E[3];d===F&&C===Q&&_===U&&b===T||(this._originRatioAndOffset.splice(0,4,F,Q,U,T),this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"image",{get:function(){return this._image},set:function(i){this._image!==i&&(this._image=i,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"defaultColorStr",{get:function(){return this._defaultColorStr},set:function(i){this._defaultColorStr!==i&&(this._defaultColorStr=i,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tooltip",{get:function(){return this._tooltip},set:function(i){this._tooltip!==i&&(this._tooltip=i,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"title",{get:function(){return this._title},set:function(i){this._title!==i&&(this._title=i,this.needRedraw())},enumerable:!1,configurable:!0}),r.prototype.draw=function(i){if(this._show){var l=w(this._winPos,2),d=l[0],C=l[1],_=this._size[0]*this.__scale[0],b=this._size[1]*this.__scale[1],E=(0,c.getDrawRect)([d,C],this._size,this.__scale,this._originRatioAndOffset),F=E.left,Q=E.top,U=i.globalAlpha;if(i.globalAlpha=this.opacity,this._image){if(this.selected){var T=a(this._image,[1,0,0]),S=(0,c.getDrawRect)([d,C+3],[_+6,b+6],[1,1],this._originRatioAndOffset),P=S.left,I=S.top;i.drawImage(T,P,I,_+6,b+6)}if(this.actived){var M=w(this._fgColor,4),K=M[0],W=M[1],L=M[2],O=(M[3],T=a(this._image,[K,W,L]),(0,c.getDrawRect)([d,C+4],[_+8,b+8],[1,1],this._originRatioAndOffset)),H=O.left,k=O.top;i.drawImage(T,H,k,_+8,b+8)}if(this.hovered){var G=w(this._bgColor,4),D=(K=G[0],W=G[1],L=G[2],G[3],a(this._image,[K,W,L])),R=(0,c.getDrawRect)([d,C+2],[_+4,b+4],[1,1],this._originRatioAndOffset),N=R.left,X=R.top;i.drawImage(D,N,X,_+4,b+4)}i.drawImage(this._image,F,Q,_,b)}else i.fillStyle=this._fgColorHexStr,i.fillRect(F,Q,_,b);if(this._title!==""&&(0,c.drawTextBlock)(i,d+20,C-16,[0,.5,0,0],this._title,"14px Arial",4,this._fgColorHexStr,this._bgColorHexStr),i.globalAlpha=U,this._hovered&&this._tooltip!==""){var Y=i.globalAlpha;i.globalAlpha=this._tooltipAlpha,(0,c.drawTextBlock)(i,d,C-42,[.5,1,0,0],this._tooltip,"12px Arial",4,this._fgColorHexStr,this._bgColorHexStr),i.globalAlpha=Y}}},r.prototype.drawForPick=function(i,l){if(this._show){var d=w(this._winPos,2),C=d[0],_=d[1],b=l("default"),E=this._size[0]*this.__scale[0],F=this._size[1]*this.__scale[1],Q=(0,c.getDrawRect)([C,_],this._size,this.__scale,this._originRatioAndOffset),U=Q.left,T=Q.top;i.fillStyle=b,i.fillRect(U,T,E,F)}},r}(f.CanvasPoi);A.CanvasImagePoi=n},7529:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(3526),A),g(h(8368),A),g(h(8614),A),g(h(8301),A),g(h(9082),A),g(h(3315),A),g(h(7720),A)},7665:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.ProjectionMatrix=void 0;var m,g,w=h(2731);m=A.ProjectionMatrix||(A.ProjectionMatrix={}),(g=m.Perspective||(m.Perspective={})).compute=function(p,u,f,c,a){if(f<=0||c<=0||p<=0||p>=Math.PI)throw new Error("near <= 0 || far <= 0 || fovY <= 0 || fovY >= Math.PI");var n=1/Math.tan(.5*p),s=n/u,r=(c+f)/(f-c),i=2*c*f/(f-c);return(a=a||(0,w.createNumbers)(16))[0]=s,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=n,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=r,a[11]=-1,a[12]=0,a[13]=0,a[14]=i,a[15]=0,a},g.getSseDenominator=function(p){return 2/p[5]},g.getPerspectiveParams=function(p){var u=p,f=u[10],c=(f-1)/(f+1),a=u[14]*(c-1)/(-2*c),n=c*a,s=2*a/u[0],r=(s+u[8]*s)/2,i=r-s,l=2*a/u[5],d=(l+u[9]*l)/2;return{n:a,f:n,r,l:i,t:d,b:d-l}},g.resetNearFar=function(p,u,f,c,a,n,s,r){var i=p/s;return{l:f*=i,r:c*=i,b:a*=i,t:n*=i,n:s=p,f:u}},g.getFovAndAspectRatio=function(p,u,f,c,a,n){var s=(p+u)/2,r=(f+c)/2,i=u-s,l=c-r,d=2*Math.atan(i/a),C=2*Math.atan(l/a);return{xOffset:s,yOffset:r,fov:d>C?d:C,hFov:d,vFov:C,aspectRatio:i/l}}},7720:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}),w=this&&this.__values||function(a){var n=typeof Symbol=="function"&&Symbol.iterator,s=n&&a[n],r=0;if(s)return s.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&r>=a.length&&(a=void 0),{value:a&&a[r++],done:!a}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.UiTreeObject=void 0;var p=h(1662),u={checked:1,unchecked:2,indeterminate:3},f=["checked","unchecked","indeterminate"],c=function(a){function n(s){var r=a.call(this)||this;r._treeItem=s,r._collapsed=r.disposeVar((0,p.react)(!1)),r._checkedStatus=r.disposeVar((0,p.react)("unchecked")),r._selected=r.disposeVar((0,p.react)(!1)),r._moveToPositionMode=r.disposeVar((0,p.react)("none")),r._updateCheckedStatusFromChildrenEvent=r.disposeVar(new p.Event);var i=function(){return r._treeItem.tree&&r._treeItem.tree.itemsChanged.emit([r._treeItem])};r.dispose(r._collapsed.changed.disposableOn(i)),r.dispose(r._checkedStatus.changed.disposableOn(i)),r.dispose(r._selected.changed.disposableOn(i)),r.dispose(r._moveToPositionMode.changed.disposableOn(i)),r.dispose(r._checkedStatus.changed.disposableOn(function(){return r._treeItem.parent&&r._treeItem.parent.uiTreeObject.updateCheckedStatusFromChildren()})),r.dispose(r._treeItem.childrenChangedEvent.disposableOn(function(){r.updateCheckedStatusFromChildren()}));var l=r.disposeVar((0,p.createNextAnimateFrameEvent)(r._updateCheckedStatusFromChildrenEvent));return r.dispose(l.disposableOn(function(){if(r._treeItem.children){var d=0;(0,p.forEachWithBreak)(r._treeItem.children,function(C){return(d|=u[C.uiTreeObject.checkedStatus])==3}),d>0&&(r._checkedStatus.value=f[d-1])}})),r.dispose(r._treeItem.childrenResetedEvent.disposableOn(function(d){d||r.checkedStatus!=="indeterminate"||(r._checkedStatus.value="unchecked")})),r.dispose(r._selected.changed.disposableOn(function(d){var C=r._treeItem.tree;C&&function(_,b,E){if(E===void 0&&(E=!0),b)_.selectedItems.push(r._treeItem);else{var F=_.selectedItems.indexOf(r._treeItem);F===-1?E&&console.error("selectedItems index -1"):_.selectedItems.splice(F,1)}}(C,d)})),r.dispose(function(){return r.selected=!1}),r}return g(n,a),Object.defineProperty(n.prototype,"treeItem",{get:function(){return this._treeItem},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"collapsed",{get:function(){return this._collapsed.value},set:function(s){this._collapsed.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"collapsedChanged",{get:function(){return this._collapsed.changed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"checkedStatus",{get:function(){return this._checkedStatus.value},enumerable:!1,configurable:!0}),n.prototype.check=function(s){var r,i,l=s?"checked":"unchecked";if(this._checkedStatus.value!==l&&(this._checkedStatus.value=l,this._treeItem.children))try{for(var d=w(this._treeItem.children),C=d.next();!C.done;C=d.next())C.value.uiTreeObject.check(s)}catch(_){r={error:_}}finally{try{C&&!C.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}},n.prototype.updateCheckedStatusFromChildren=function(){this._updateCheckedStatusFromChildrenEvent.emit()},Object.defineProperty(n.prototype,"checkedStatusChanged",{get:function(){return this._checkedStatus.changed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selected",{get:function(){return this._selected.value},set:function(s){this._selected.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectedChanged",{get:function(){return this._selected.changed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"moveToPositionMode",{get:function(){return this._moveToPositionMode.value},set:function(s){this._moveToPositionMode.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"moveToPositionModeChanged",{get:function(){return this._moveToPositionMode.changed},enumerable:!1,configurable:!0}),n}(p.Destroyable);A.UiTreeObject=c},7793:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.createGuid=void 0,A.createGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(h){var m=16*Math.random()|0;return(h==="x"?m:3&m|8).toString(16)})}},7941:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0})},7963:function(B,A,h){var m,g=this&&this.__extends||(m=function(C,_){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,E){b.__proto__=E}||function(b,E){for(var F in E)Object.prototype.hasOwnProperty.call(E,F)&&(b[F]=E[F])},m(C,_)},function(C,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function b(){this.constructor=C}m(C,_),C.prototype=_===null?Object.create(_):(b.prototype=_.prototype,new b)});Object.defineProperty(A,"__esModule",{value:!0}),A.ComplexImage=A.getTypeFromImageUri=void 0;var w=h(1662),p=h(1662),u=h(3815),f=h(7014),c=h(9409),a=h(1851),n=h(3096),s=h(5925),r=h(5210),i=h(1291);function l(C){var _=C.substring(C.lastIndexOf(".")+1);return d.suffixTypes[_]}A.getTypeFromImageUri=l;var d=function(C){function _(){var b=C.call(this)||this;return b._enabled=b.disposeVar((0,p.react)(!1)),b._uri=b.disposeVar((0,p.react)("")),b._type=b.disposeVar((0,p.react)(void 0)),b._size=b.disposeVar((0,p.reactArrayWithUndefined)(void 0)),b._pixelFormat=b.disposeVar((0,p.react)("RGBA")),b._flipY=b.disposeVar((0,p.react)(!0)),b._crossOriginReact=b.disposeVar((0,p.react)("")),b._autoplayReact=b.disposeVar((0,p.react)(!0)),b._loopReact=b.disposeVar((0,p.react)(!0)),b._copyTextureEvent=b.disposeVar(new w.Event),b._imageProcessingResettingEvent=b.disposeVar((0,w.createNextAnimateFrameEvent)(b.enabledChanged,b.uriChanged,b.typeChanged)),b._imageProcessingResetting=b.disposeVar(new u.ObjResettingWithEvent(b._imageProcessingResettingEvent,function(){do{if(!b.enabled||!b.uri)break;var E=b.type;if(E||(E=l(b.uri)),!E)break;if(E==="img")return new f.ImageProcessing(b,b.uri);if(E==="video")return new n.VideoProcessing(b,b.uri);if(E==="gif")return new s.GifProcessing(b,b.uri);if(E==="hls")return new r.HlsProcessing(b,b.uri);if(E==="flv")return new i.FlvProcessing(b,b.uri)}while(!1)})),b._createNativeTextureEvent=b.disposeVar((0,w.createNextAnimateFrameEvent)(b.enabledChanged,b.sizeChanged,b.pixelFormatChanged,b.flipYChanged)),b}return g(_,C),Object.defineProperty(_.prototype,"enabled",{get:function(){return this._enabled.value},set:function(b){this._enabled.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"enabledChanged",{get:function(){return this._enabled.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"uri",{get:function(){return this._uri.value},set:function(b){this._uri.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"uriChanged",{get:function(){return this._uri.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"type",{get:function(){return this._type.value},set:function(b){this._type.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"typeChanged",{get:function(){return this._type.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"size",{get:function(){return this._size.value},set:function(b){this._size.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"sizeChanged",{get:function(){return this._size.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"pixelFormat",{get:function(){return this._pixelFormat.value},set:function(b){this._pixelFormat.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"pixelFormatChanged",{get:function(){return this._pixelFormat.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"flipY",{get:function(){return this._flipY.value},set:function(b){this._flipY.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"flipYChanged",{get:function(){return this._flipY.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"crossOrigin",{get:function(){return this._crossOriginReact.value},set:function(b){this._crossOriginReact.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"crossOriginChanged",{get:function(){return this._crossOriginReact.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"autoplay",{get:function(){return this._autoplayReact.value},set:function(b){this._autoplayReact.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"autoplayChanged",{get:function(){return this._autoplayReact.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"loop",{get:function(){return this._loopReact.value},set:function(b){this._loopReact.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"loopChanged",{get:function(){return this._loopReact.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"copyTextureEvent",{get:function(){return this._copyTextureEvent},enumerable:!1,configurable:!0}),_.prototype.copyTexture=function(b){this._createNativeTextureEvent.flush(),this._copyTextureEvent.emit(b)},Object.defineProperty(_.prototype,"imageProcessingResetting",{get:function(){return this._imageProcessingResetting},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"createNativeTextureEvent",{get:function(){return this._createNativeTextureEvent},enumerable:!1,configurable:!0}),_.prototype.copyFromCanvas=function(b){b.width<=0||b.height<=0?console.warn("canvas.width <= 0 || canvas.height <= 0"):(this.size=[b.width,b.height],this.pixelFormat="RGBA",this.copyTexture({source:b}))},_.types=a.complexImageTypes,_.czmPixelFormats=c.czmPixelFormats,_.suffixTypes={png:"img",jpg:"img",svg:"img",webp:"img",gif:"gif",mp4:"video",mov:"video",webm:"video",flv:"flv",m3u8:"hls"},_}(w.Destroyable);A.ComplexImage=d},8042:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A._transpose=void 0;var m=h(2731);A._transpose=function(g,w){var p=g[1],u=g[2],f=g[3],c=g[6],a=g[7],n=g[11];return(w=w||(0,m.createNumbers)(16))[0]=g[0],w[1]=g[4],w[2]=g[8],w[3]=g[12],w[4]=p,w[5]=g[5],w[6]=g[9],w[7]=g[13],w[8]=u,w[9]=c,w[10]=g[10],w[11]=g[14],w[12]=f,w[13]=a,w[14]=n,w[15]=g[15],w}},8055:function(B,A){var h,m=this&&this.__extends||(h=function(w,p){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var c in f)Object.prototype.hasOwnProperty.call(f,c)&&(u[c]=f[c])},h(w,p)},function(w,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function u(){this.constructor=w}h(w,p),w.prototype=p===null?Object.create(p):(u.prototype=p.prototype,new u)});Object.defineProperty(A,"__esModule",{value:!0}),A.CancelError=void 0;var g=function(w){function p(){return w!==null&&w.apply(this,arguments)||this}return m(p,w),p}(Error);A.CancelError=g},8089:function(B,A,h){var m=this&&this.__read||function(b,E){var F=typeof Symbol=="function"&&b[Symbol.iterator];if(!F)return b;var Q,U,T=F.call(b),S=[];try{for(;(E===void 0||E-- >0)&&!(Q=T.next()).done;)S.push(Q.value)}catch(P){U={error:P}}finally{try{Q&&!Q.done&&(F=T.return)&&F.call(T)}finally{if(U)throw U.error}}return S},g=this&&this.__spreadArray||function(b,E,F){if(F||arguments.length===2)for(var Q,U=0,T=E.length;U<T;U++)!Q&&U in E||(Q||(Q=Array.prototype.slice.call(E,0,U)),Q[U]=E[U]);return b.concat(Q||Array.prototype.slice.call(E))};Object.defineProperty(A,"__esModule",{value:!0}),A.Matrix4=void 0;var w=h(4915),p=h(2731),u=h(9549),f=h(9898),c=h(5985),a=h(8533),n=h(4209),s=h(6021),r=h(4601),i=h(2830),l=h(8042),d=h(6680),C=h(723),_=h(3300);(function(b){function E(P,I,M){return(0,d._fromMatrix3AndTranslation)(P,I,M)}b.getElementIndex=function(P,I){if(P<0||P>3||I<0||I>3)throw new Error("column < 0 || column > 3 || row < 0 || row > 3");return 4*P+I},b.getColumn=function(P,I,M){return(0,a._getColumn)(P,I,M)},b.setColumn=function(P,I,M,K){return(0,a._setColumn)(P,I,M,K)},b.getRow=function(P,I,M){return(0,r._getRow)(P,I,M)},b.setRow=function(P,I,M,K){(0,r._setRow)(P,I,M,K)},b.getTranslation=function(P,I){return(0,i._getTranslation)(P,I)},b.setTranslation=function(P,I,M){return(0,i._setTranslation)(P,I,M)},b.getScale=function(P,I){return(0,_._getScale)(P,I)},b.setScale=function(P,I,M){return(0,_._setScale)(P,I,M)},b.getMaximumScale=function(P){return(0,_._getMaximumScale)(P)},b.multiply=function(P,I,M){return(0,s._multiply)(P,I,M)},b.multiplyTransformation=function(P,I,M){return(0,s._multiplyTransformation)(P,I,M)},b.multiplyByMatrix3=function(P,I,M){return(0,s._multiplyByMatrix3)(P,I,M)},b.multiplyByTranslation=function(P,I,M){return(0,s._multiplyByTranslation)(P,I,M)},b.multiplyByUniformScale=function(P,I,M){(0,s._multiplyByUniformScale)(P,I,M)},b.multiplyByScale=function(P,I,M){return(0,s._multiplyByScale)(P,I,M)},b.multiplyByVector=function(P,I,M){return(0,s._multiplyByVector)(P,I,M)},b.multiplyByPointAsVector=function(P,I,M){return(0,s._multiplyByPointAsVector)(P,I,M)},b.affineMultiplyByPoint=function(P,I,M){return(0,s._affineMultiplyByPoint)(P,I,M)},b.multiplyByPoint=function(P,I,M){return(0,s._multiplyByPoint)(P,I,M)},b.continuousMultiply=function(P,I){for(var M=[],K=2;K<arguments.length;K++)M[K-2]=arguments[K];return s._continuousMultiply.apply(void 0,g([P,I],m(M),!1))},b.transpose=function(P,I){return(0,l._transpose)(P,I)},b.getMatrix3=function(P,I){return(I=I||(0,p.createNumbers)(9))[0]=P[0],I[1]=P[1],I[2]=P[2],I[3]=P[4],I[4]=P[5],I[5]=P[6],I[6]=P[8],I[7]=P[9],I[8]=P[10],I},b.setMatrix3=function(P,I){(I=I||f.Vector.clone(b.IDENTITY))[0]=P[0],I[1]=P[1],I[2]=P[2],I[4]=P[3],I[5]=P[4],I[6]=P[5],I[8]=P[6],I[9]=P[7],I[10]=P[8]},b.inverse=function(P,I){return(0,n.inverse)(P,I)},b.inverseTransformation=function(P,I){return(0,C._inverseTransformation)(P,I)},b.IDENTITY=Object.freeze([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),b.ZERO=Object.freeze([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),b.fromTranslation=function(P,I){return(0,d._fromTranslation)(P,I)},b.fromMatrix3AndTranslation=E;var F=(0,p.createNumbers)(9);b.fromRotateQuatAndTranslation=function(P,I,M){return w.Matrix3.fromQuaternion(P,F),E(F,I,M)},b.fromDirectionUpRightAndTranslation=function(P,I,M,K,W){return(0,d._fromDirectionUpRightAndTranslation)(P,I,M,K,W)},b.fromScale=function(P,I){return f.Vector.set(I,P[0],0,0,0,0,P[1],0,0,0,0,P[2],0,0,0,0,1)};var Q=u.Quaternion.fromAxisAngle([1,0,0],.5*Math.PI),U=w.Matrix3.fromQuaternion(Q);b.Z2NY=b.fromMatrix3AndTranslation(U);var T=(0,p.createNumbers)(4),S=(0,p.createNumbers)(9);b.fromAxisAngle=function(P,I,M){return u.Quaternion.fromAxisAngle(P,I,T),w.Matrix3.fromQuaternion(T,S),b.fromMatrix3AndTranslation(S,c.Vector3.ZERO,M)}})(A.Matrix4||(A.Matrix4={}))},8106:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(6148),A),g(h(9972),A),g(h(9374),A),g(h(6888),A),g(h(1801),A),g(h(5582),A),g(h(4661),A),g(h(1943),A),g(h(2051),A)},8144:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getIterator=void 0,A.getIterator=function(h){var m;if(typeof h.next=="function")m=h;else{if(typeof h[Symbol.iterator]!="function")throw new Error("iteratorOrIterable error!");m=h[Symbol.iterator]()}return m}},8193:function(B,A,h){var m,g=this&&this.__extends||(m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(c[n]=a[n])},m(u,f)},function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function c(){this.constructor=u}m(u,f),u.prototype=f===null?Object.create(f):(c.prototype=f.prototype,new c)}),w=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,n,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(i){n={error:i}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(n)throw n.error}}return r};Object.defineProperty(A,"__esModule",{value:!0}),A.ToolTipDiv=void 0;var p=function(u){function f(){var c=u.call(this)||this;c._text="";var a=document.createElement("div");c._div=a,a.style.cssText="width: 0px; height: 0px; position: absolute; opacity: 1.0; visibility: visible; transition: opacity 0.5s;";var n=document.createElement("div");n.style.cssText="position: absolute; left: 0px; bottom: 0px; transform: translateX(-50%); margin: 0; padding: 0; pointer-events: none;";var s=document.createElement("div");return s.style.cssText="position: relative; background-color: rgba(0, 0, 0, 0.7); border-radius: 5px; padding: 3px; pointer-events: all; color: white; white-space: nowrap;",s.innerText=c._text,c._div.appendChild(n),n.appendChild(s),c._contentContainer=s,c._div=a,c.dispose(c.winPosChanged.disposableOn(function(r){var i=w(r,2),l=i[0],d=i[1];c._div.style.left="".concat(l,"px"),c._div.style.top="".concat(d-50,"px")})),c.dispose(c.opacityChanged.disposableOn(function(r){c._div.style.opacity="".concat(r)})),c.dispose(c.showChanged.disposableOn(function(r){c._div.style.visibility=r?"visible":"hidden"})),c}return g(f,u),Object.defineProperty(f.prototype,"element",{get:function(){return this._div},enumerable:!1,configurable:!0}),f.prototype.reset=function(){this.opacity=1,this.show=!0},Object.defineProperty(f.prototype,"text",{get:function(){return this._text},set:function(c){this._text!==c&&(this._text=c,this._contentContainer.innerText=c)},enumerable:!1,configurable:!0}),f}(h(7324).FloatDiv);A.ToolTipDiv=p},8196:function(B,A,h){var m=this&&this.__values||function(c){var a=typeof Symbol=="function"&&Symbol.iterator,n=a&&c[a],s=0;if(n)return n.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&s>=c.length&&(c=void 0),{value:c&&c[s++],done:!c}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},g=this&&this.__read||function(c,a){var n=typeof Symbol=="function"&&c[Symbol.iterator];if(!n)return c;var s,r,i=n.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=i.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return l};Object.defineProperty(A,"__esModule",{value:!0}),A.ProcessingStarter=void 0;var w=h(7372),p=h(1662),u=h(8055),f=function(){function c(a){this._startParams=a,this._cancelled=!1,this._cancelsMap=new Map}return Object.defineProperty(c.prototype,"disposer",{get:function(){var a=this;return this._disposer||(this._disposer=new w.Destroyable,this._disposer.dispose(function(){return a._disposer=void 0})),this._disposer},enumerable:!1,configurable:!0}),c.prototype.cancel=function(a){var n,s,r;if(!this._cancelled){this._cancelled=!0,(r=this._disposer)===null||r===void 0||r.destroy(),this._cancelError=a;try{for(var i=m(this._cancelsMap.values()),l=i.next();!l.done;l=i.next())(0,l.value)(a)}catch(d){n={error:d}}finally{try{l&&!l.done&&(s=i.return)&&s.call(i)}finally{if(n)throw n.error}}this._cancelsMap.clear()}},c.prototype.check=function(){var a;if(this._cancelled)throw(a=this._cancelError)!==null&&a!==void 0?a:new u.CancelError("cancel from CancelManager!")},Object.defineProperty(c.prototype,"cancelFuncsNum",{get:function(){return(0,p.reduce)(this._cancelsMap.keys(),function(a){return a+1},0)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"processingID",{get:function(){return this._startParams.processingID},enumerable:!1,configurable:!0}),c.prototype.promises=function(){for(var a=this,n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];return n.map(function(r){var i=g(r,2),l=i[0],d=i[1];return a._cancelsMap.set(d,l),d.finally(function(){return a._cancelsMap.delete(d)})})},c.prototype.promise=function(a){var n=this,s=g(a,2),r=s[0],i=s[1];return this._cancelsMap.set(i,r),i.finally(function(){return n._cancelsMap.delete(i)})},c.prototype.promiseAny=function(a){var n=this,s=[],r=a.map(function(i){var l=g(i,2),d=l[0],C=l[1];return n._cancelsMap.set(C,d),s.push(d),C.finally(function(){return n._cancelsMap.delete(C)})});return Promise.any(r).finally(function(){return s.forEach(function(i){return i(new u.CancelError("cancel from promiseAny!"))})})},c.prototype.promiseAll=function(a){var n=this,s=[],r=a.map(function(i){var l=g(i,2),d=l[0],C=l[1];return n._cancelsMap.set(C,d),s.push(d),C.finally(function(){return n._cancelsMap.delete(C)})});return Promise.all(r).finally(function(){return s.forEach(function(i){return i(new u.CancelError("cancel from promiseAll!"))})})},c.prototype.promiseRace=function(a){var n=this,s=[],r=a.map(function(i){var l=g(i,2),d=l[0],C=l[1];return n._cancelsMap.set(C,d),s.push(d),C.finally(function(){return n._cancelsMap.delete(C)})});return Promise.race(r).finally(function(){return s.forEach(function(i){return i(new u.CancelError("cancel from promiseRace!"))})})},c.prototype.checkAndPromises=function(){for(var a=this,n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];return n.map(function(r){var i=g(r,2),l=i[0],d=i[1];return a._cancelsMap.set(d,l),d.finally(function(){return a._cancelsMap.delete(d),a.check()})})},c.prototype.checkAndPromise=function(a){var n=this;return a instanceof Promise?a.finally(function(){return n.check()}):this.promise(a).finally(function(){return n.check()})},c.prototype.complete=function(a){var n;this.cancelFuncsNum!==0&&console.warn("complete: this.cancelFuncsNum(".concat(this.cancelFuncsNum,")不为0!")),(n=this._disposer)===null||n===void 0||n.destroy(),this._cancelsMap.clear(),this._startParams.completeFunc(a)},c.prototype.error=function(a){var n;(n=this._disposer)===null||n===void 0||n.destroy(),this._cancelsMap.clear(),this._startParams.errorFunc(a)},c.prototype.progressFunc=function(a){this._startParams.progressFunc(a)},c.prototype.forceCancel=function(a){return this._startParams.cancelFunc(a)},c}();A.ProcessingStarter=f},8301:function(B,A,h){var m,g=this&&this.__extends||(m=function(r,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var C in d)Object.prototype.hasOwnProperty.call(d,C)&&(l[C]=d[C])},m(r,i)},function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function l(){this.constructor=r}m(r,i),r.prototype=i===null?Object.create(i):(l.prototype=i.prototype,new l)}),w=this&&this.__values||function(r){var i=typeof Symbol=="function"&&Symbol.iterator,l=i&&r[i],d=0;if(l)return l.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&d>=r.length&&(r=void 0),{value:r&&r[d++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__read||function(r,i){var l=typeof Symbol=="function"&&r[Symbol.iterator];if(!l)return r;var d,C,_=l.call(r),b=[];try{for(;(i===void 0||i-- >0)&&!(d=_.next()).done;)b.push(d.value)}catch(E){C={error:E}}finally{try{d&&!d.done&&(l=_.return)&&l.call(_)}finally{if(C)throw C.error}}return b},u=this&&this.__spreadArray||function(r,i,l){if(l||arguments.length===2)for(var d,C=0,_=i.length;C<_;C++)!d&&C in i||(d||(d=Array.prototype.slice.call(i,0,C)),d[C]=i[C]);return r.concat(d||Array.prototype.slice.call(i))};Object.defineProperty(A,"__esModule",{value:!0}),A.Tree=void 0;var f=h(1662),c=h(9082),a=h(3315),n=h(8368),s=function(r){function i(l){var d=r.call(this)||this;return d._root=d.disposeVar(new c.TreeItem(d,!0,"_ROOT")),d._itemChildrenChanged=d.disposeVar(new f.Event),d._itemChildrenToChange=d.disposeVar(new f.Event),d._itemsAdded=d.disposeVar(new f.Event),d._itemsDeleted=d.disposeVar(new f.Event),d._itemsChanged=d.disposeVar(new f.Event),d._transactionStack=0,d._addedItems=new Set,d._deletedItems=new Set,d._selectedItems=d.disposeVar(new f.ObservableArray),d._itemDivHeight=d.disposeVar((0,f.react)(i.defaultItemDivHeight)),d._forceRedrawEvent=d.disposeVar(new f.Event),d._uiTree=d.disposeVar(new a.UiTree(d)),d._root._tree.value=d,d.dispose(d._itemChildrenToChange.disposableOn(function(C,_){var b,E,F,Q;if(C.children){try{for(var U=w(_),T=U.next();!T.done;T=U.next()){for(var S=T.value,P=S.start,I=S.deleteCount,M=S.items,K=P;K<P+I;++K){var W=C.children.get(K);d._deletedItems.has(W)?console.error("this._deletedItems.has(currentItem(".concat(W.id,"))")):d._deletedItems.add(W)}try{for(var L=(F=void 0,w(M)),O=L.next();!O.done;O=L.next())W=O.value,d._deletedItems.has(W)?d._deletedItems.delete(W):d._addedItems.add(W)}catch(H){F={error:H}}finally{try{O&&!O.done&&(Q=L.return)&&Q.call(L)}finally{if(F)throw F.error}}}}catch(H){b={error:H}}finally{try{T&&!T.done&&(E=U.return)&&E.call(U)}finally{if(b)throw b.error}}d._execTransaction()}else console.error("!item.children")})),l!==void 0&&(d.itemDivHeight=l),d}return g(i,r),Object.defineProperty(i.prototype,"selectedItems",{get:function(){return this._selectedItems},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"lastSelectedItem",{get:function(){return this._selectedItems.length>0?this._selectedItems.get(this._selectedItems.length-1):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"itemDivHeight",{get:function(){return this._itemDivHeight.value},set:function(l){this._itemDivHeight.value=l},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"itemDivHeightChanged",{get:function(){return this._itemDivHeight.changed},enumerable:!1,configurable:!0}),i.prototype.forceRedraw=function(){this._forceRedrawEvent.emit()},Object.defineProperty(i.prototype,"uiTree",{get:function(){return this._uiTree},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"root",{get:function(){return this._root},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"children",{get:function(){return this._root.children},enumerable:!1,configurable:!0}),i.prototype.getDescendants=function(l){return this._root.getDescendants(l)},i.prototype.getTreeItemFromId=function(l){var d,C,_=void 0;try{for(var b=w(this.getDescendants()),E=b.next();!E.done;E=b.next()){var F=E.value;if(F.id===l){_=F;break}}}catch(Q){d={error:Q}}finally{try{E&&!E.done&&(C=b.return)&&C.call(b)}finally{if(d)throw d.error}}return _},i.prototype._startTransaction=function(){this._transactionStack===0&&(this._deletedItems.size>0&&(console.warn("this._deletedItems.size > 0"),this._deletedItems.clear()),this._addedItems.size>0&&(console.warn("this._addedItems.size > 0"),this._addedItems.clear())),++this._transactionStack},i.prototype._stopTransaction=function(){--this._transactionStack,this._execTransaction()},i.prototype._execTransaction=function(){this._transactionStack===0&&(this._deletedItems.size>0&&(this._itemsDeleted.emit(u([],p(this._deletedItems),!1)),this._deletedItems.clear()),this._addedItems.size>0&&(this._itemsAdded.emit(u([],p(this._addedItems),!1)),this._addedItems.clear()))},Object.defineProperty(i.prototype,"itemChildrenChanged",{get:function(){return this._itemChildrenChanged},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"itemChildrenToChange",{get:function(){return this._itemChildrenToChange},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"itemsChanged",{get:function(){return this._itemsChanged},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"itemsAdded",{get:function(){return this._itemsAdded},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"itemsDeleted",{get:function(){return this._itemsDeleted},enumerable:!1,configurable:!0}),i.defaultItemDivHeight=24,i.canMoveToTreeItem=n.canMoveToTreeItem,i.moveToTreeItem=n.moveToTreeItem,i.canMoveToTreeItems=n.canMoveToTreeItems,i.moveToTreeItems=n.moveToTreeItems,i}(f.Destroyable);A.Tree=s},8368:function(B,A,h){var m=this&&this.__values||function(u){var f=typeof Symbol=="function"&&Symbol.iterator,c=f&&u[f],a=0;if(c)return c.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&a>=u.length&&(u=void 0),{value:u&&u[a++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.moveToTreeItems=A.canMoveToTreeItems=A.moveToTreeItem=A.canMoveToTreeItem=void 0;var g=h(1662);function w(u,f,c){if(u.tree!==f.tree||u===f||u.isAncestorOf(f)||u.tree!==f.tree||!u.parent)return!1;if(!u.parent.children)throw console.error("当前节点的父节点没有子节点?这是不可能的!"),new Error("当前节点的父节点没有子节点?这是不可能的!");return!(f===u||u.isAncestorOf(f)||c!=="inner"&&!f.parent||c==="inner"&&!f.children)}function p(u,f,c){if(u.tree&&f.tree&&u.tree===f.tree)if(u.parent){if(!u.parent.children)throw console.error("当前节点的父节点没有子节点?这是不可能的!"),new Error("当前节点的父节点没有子节点?这是不可能的!");if(f!==u)if(u.isAncestorOf(f))console.warn("当前节点不能拖放到它自身的后代节点之上!");else if(c==="inner"||f.parent)if(c!=="inner"||f.children){u.tree._startTransaction();var a=u.parent.children.indexOf(u);if(u.parent.children.splice(a,1),c!=="inner"){var n=f.parent;if(!n||!n.children)throw new Error("!parent");var s=n.children.indexOf(f);c==="before"?n.children.splice(s,0,u):c==="after"&&n.children.splice(s+1,0,u)}else f.children.push(u);u.tree._stopTransaction()}else console.warn("无法移动到目标节点的子节点中,因为目标节点不是组节点!");else console.warn("目标节点没有父节点,无法拖放!");else console.warn("自身不能拖放到自身!")}else console.warn("当前节点没有父节点,那么该节点无法被移动!")}A.canMoveToTreeItem=w,A.moveToTreeItem=p,A.canMoveToTreeItems=function(u,f,c){return(0,g.every)(u,function(a){return w(a,f,c)})},A.moveToTreeItems=function(u,f,c){var a,n;try{for(var s=m(u),r=s.next();!r.done;r=s.next()){var i=r.value;w(i,f,c)?p(i,f,c):console.warn("treeItem(id: ".concat(i.id,") cannot move..."))}}catch(l){a={error:l}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}}},8421:function(B,A,h){var m,g=this&&this.__extends||(m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(c[n]=a[n])},m(u,f)},function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function c(){this.constructor=u}m(u,f),u.prototype=f===null?Object.create(f):(c.prototype=f.prototype,new c)});Object.defineProperty(A,"__esModule",{value:!0}),A.unLoading=A.UnLoading=void 0;var w=h(1662),p=function(u){function f(){var c=u.call(this)||this;return c._unloadEvent=c.disposeVar(new w.Event),window.addEventListener("beforeunload",function(){c._unloadEvent.emit(),c.destroy()}),c}return g(f,u),f.prototype.unload=function(c){this.dispose(this._unloadEvent.disposableOn(c,unescape,!0))},f}(w.Destroyable);A.UnLoading=p,A.unLoading=new p},8453:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.loadBASIS=A.CompressedTextureBuffer=void 0;var m=h(9928);Object.defineProperty(A,"CompressedTextureBuffer",{enumerable:!0,get:function(){return m.CompressedTextureBuffer}});var g=h(2075),w=h(3631),p=h(5486),u=h(1662),f=Error,c=new g.TaskProcessor("transcodeBASISToTexture",Number.POSITIVE_INFINITY);A.loadBASIS=function(a,n){if(!a)throw new f("resourceOrUrlOrBuffer is required.");var s;if(s=a instanceof ArrayBuffer||ArrayBuffer.isView(a)?w.when.resolve(a):(0,u.fetchArrayBuffer)(a),(0,p.defined)(s))return s.then(function(r){if((0,p.defined)(r)){var i=[];r instanceof ArrayBuffer?i.push(r):(r.byteOffset===0&&r.byteLength===r.buffer.byteLength||(r=r.slice(0,r.length)),i.push(r.buffer));var l={data:r,textureFormat:n};return c.scheduleTask(l,i)}}).then(function(r){return r||console.error("compressedTextureBuffer is undefined!"),m.CompressedTextureBuffer.clone(r)})}},8466:(B,A)=>{function h(m,g){var w=m*m,p=w*m,u=m+m+m,f=w+w+w,c=p+p+p,a=1-u+f-p,n=u-(f+f)+c,s=f-c,r=p;return g?(g[0]=a,g[1]=n,g[2]=s,g[3]=r,g):[a,n,s,r]}Object.defineProperty(A,"__esModule",{value:!0}),A.computBezierSpline3BaseFactors=A.bezierSpline3=A.bezierSpline3WithBaseFactor=A.getBezierSpline3BaseFactor=void 0,A.getBezierSpline3BaseFactor=h,A.bezierSpline3WithBaseFactor=function(m,g,w,p,u,f,c){for(var a=c??new Array(g),n=0;n<g;++n)a[n]=m[0]*w[n]+m[1]*p[n]+m[2]*u[n]+m[3]*f[n];return a},A.bezierSpline3=function(m,g,w,p,u,f,c){for(var a=h(m),n=c??new Array(g),s=0;s<g;++s)n[s]=a[0]*w[s]+a[1]*p[s]+a[2]*u[s]+a[3]*f[s];return n},A.computBezierSpline3BaseFactors=function(m){for(var g=new Array(m+1),w=1/m,p=0,u=0;u<m;++u)g[u]=h(p),p+=w;return g}},8533:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A._setColumn=A._getColumn=void 0;var m=h(2731),g=h(9898);A._getColumn=function(w,p,u){if(p<0||p>3)throw new Error("index < 0 || index > 3");var f=4*p,c=w[f],a=w[f+1],n=w[f+2],s=w[f+3];return(u=u||(0,m.createNumbers)(4))[0]=c,u[1]=a,u[2]=n,u[3]=s,u},A._setColumn=function(w,p,u,f){if(p<0||p>3)throw new Error("index < 0 || index > 3");var c=4*p;return(f=g.Vector.clone(w,f))[c]=u[0],f[c+1]=u[1],f[c+2]=u[2],f[c+3]=u[3],f}},8576:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(3207),A)},8584:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.downloadLink=void 0,A.downloadLink=function(h,m){var g=document.createElement("a"),w=new MouseEvent("click");g.download=m||"下载",g.href=h,g.dispatchEvent(w)}},8614:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0})},8703:function(B,A,h){var m=this&&this.__values||function(c){var a=typeof Symbol=="function"&&Symbol.iterator,n=a&&c[a],s=0;if(n)return n.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&s>=c.length&&(c=void 0),{value:c&&c[s++],done:!c}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},g=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(A,"__esModule",{value:!0}),A._getCullingVolumeFromProjectionMatrix=void 0;var w=g(h(9812)),p=h(2731),u=h(9898);function f(c,a,n){return c[4*(n-1)+(a-1)]}A._getCullingVolumeFromProjectionMatrix=function(c,a){var n,s,r=c;if((a=a||new w.default([(0,p.createNumbers)(4),(0,p.createNumbers)(4),(0,p.createNumbers)(4),(0,p.createNumbers)(4),(0,p.createNumbers)(4),(0,p.createNumbers)(4)])).planes.length!==6)throw new Error("!target.planes || target.planes.length !== 6");u.Vector.set(a.planes[0],f(r,4,1)+f(r,1,1),f(r,4,2)+f(r,1,2),f(r,4,3)+f(r,1,3),f(r,4,4)+f(r,1,4)),u.Vector.set(a.planes[1],f(r,4,1)-f(r,1,1),f(r,4,2)-f(r,1,2),f(r,4,3)-f(r,1,3),f(r,4,4)-f(r,1,4)),u.Vector.set(a.planes[2],f(r,4,1)+f(r,2,1),f(r,4,2)+f(r,2,2),f(r,4,3)+f(r,2,3),f(r,4,4)+f(r,2,4)),u.Vector.set(a.planes[3],f(r,4,1)-f(r,2,1),f(r,4,2)-f(r,2,2),f(r,4,3)-f(r,2,3),f(r,4,4)-f(r,2,4)),u.Vector.set(a.planes[4],f(r,4,1)+f(r,3,1),f(r,4,2)+f(r,3,2),f(r,4,3)+f(r,3,3),f(r,4,4)+f(r,3,4)),u.Vector.set(a.planes[5],f(r,4,1)-f(r,3,1),f(r,4,2)-f(r,3,2),f(r,4,3)-f(r,3,3),f(r,4,4)-f(r,3,4));try{for(var i=m(a.planes),l=i.next();!l.done;l=i.next()){var d=l.value;u.Vector.normalize(d,d)}}catch(C){n={error:C}}finally{try{l&&!l.done&&(s=i.return)&&s.call(i)}finally{if(n)throw n.error}}return a}},8835:function(B,A,h){var m=this&&this.__read||function(a,n){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,i,l=s.call(a),d=[];try{for(;(n===void 0||n-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(C){i={error:C}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return d},g=this&&this.__spreadArray||function(a,n,s){if(s||arguments.length===2)for(var r,i=0,l=n.length;i<l;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return a.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(A,"__esModule",{value:!0}),A.bindu=A.bind=A.track=A.getCompleteReactParams=void 0;var w=h(2168),p=h(3915);function u(a){var n=a instanceof p.ReactiveVariable?[a,"value","changed"]:g([],m(a),!1);return n[2]=n[2]||n[1]+"Changed",n}function f(a,n,s,r){r===void 0&&(r=!1),n[2]=n[2]||n[1]+"Changed";var i=function(){var l=n[0][n[1]];a[0][a[1]]=s?s(l):l};return i(),r?n[0][n[2]].disposableWeakOn(i):n[0][n[2]].disposableOn(i)}function c(a,n,s,r,i){return i===void 0&&(i=!1),function(l,d,C,_,b){b===void 0&&(b=!1);var E=f(l,d,C,b),F=f(d,l,_,b);return function(){return E(),F()}}(u(a),u(n),s,r,i)}A.getCompleteReactParams=u,A.track=function(a,n,s,r){return r===void 0&&(r=!1),f(a instanceof p.ReactiveVariable?[a,"value","changed"]:a,n instanceof p.ReactiveVariable?[n,"value","changed"]:n,s,r)},A.bind=c,A.bindu=function(a,n,s,r){r===void 0&&(r=!1);var i=m((0,w.getReactFuncs)(n),1)[0];return c(a,n,function(l){return l??s},function(l){return l===s&&i()===void 0?void 0:l},r)}},8992:function(B,A,h){var m=this&&this.__read||function(p,u){var f=typeof Symbol=="function"&&p[Symbol.iterator];if(!f)return p;var c,a,n=f.call(p),s=[];try{for(;(u===void 0||u-- >0)&&!(c=n.next()).done;)s.push(c.value)}catch(r){a={error:r}}finally{try{c&&!c.done&&(f=n.return)&&f.call(n)}finally{if(a)throw a.error}}return s},g=this&&this.__spreadArray||function(p,u,f){if(f||arguments.length===2)for(var c,a=0,n=u.length;a<n;a++)!c&&a in u||(c||(c=Array.prototype.slice.call(u,0,a)),c[a]=u[a]);return p.concat(c||Array.prototype.slice.call(u))};Object.defineProperty(A,"__esModule",{value:!0}),A.throttle=void 0;var w=h(773);A.throttle=function(p,u,f){f===void 0&&(f=w.defaultStartUpdateFunc);var c=Number.NEGATIVE_INFINITY,a=void 0;return[function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];a=n},f&&f(function(n){n-c>u&&a&&(p.apply(void 0,g([],m(a),!1)),a=void 0,c=n)})||void 0]}},8995:function(B,A,h){var m,g=this&&this.__extends||(m=function(d,C){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,b){_.__proto__=b}||function(_,b){for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(_[E]=b[E])},m(d,C)},function(d,C){if(typeof C!="function"&&C!==null)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");function _(){this.constructor=d}m(d,C),d.prototype=C===null?Object.create(C):(_.prototype=C.prototype,new _)}),w=this&&this.__read||function(d,C){var _=typeof Symbol=="function"&&d[Symbol.iterator];if(!_)return d;var b,E,F=_.call(d),Q=[];try{for(;(C===void 0||C-- >0)&&!(b=F.next()).done;)Q.push(b.value)}catch(U){E={error:U}}finally{try{b&&!b.done&&(_=F.return)&&_.call(F)}finally{if(E)throw E.error}}return Q},p=this&&this.__spreadArray||function(d,C,_){if(_||arguments.length===2)for(var b,E=0,F=C.length;E<F;E++)!b&&E in C||(b||(b=Array.prototype.slice.call(C,0,E)),b[E]=C[E]);return d.concat(b||Array.prototype.slice.call(C))},u=this&&this.__values||function(d){var C=typeof Symbol=="function"&&Symbol.iterator,_=C&&d[C],b=0;if(_)return _.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&b>=d.length&&(d=void 0),{value:d&&d[b++],done:!d}}};throw new TypeError(C?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.NextMicroTaskEvent=A.NextMicroTask=A.NextAnimationFrame=A.getPromiseFromAsyncFunc=A.getPromiseFromProcessing=A.getProcessingFromPromise=void 0;var f=h(7372),c=h(7372),a=h(5675),n=h(6891);function s(d){for(var C=[],_=1;_<arguments.length;_++)C[_-1]=arguments[_];var b=-1;return[function(E){return b===d.processingID&&d.isRunning&&d.cancel(E)},new Promise(function(E,F){d.isRunning&&d.cancel(),d.reset();var Q=d.finishedEvent.disposableOn(function(U){U.status==="Error"?F(U.error):U.status==="Cancelled"?F(U.cancelError):U.status==="Completed"&&E(U.value),Q()});d.start.apply(d,p([],w(C),!1)),b=d.processingID})]}A.getProcessingFromPromise=function(d){return new n.ProcessingDeprecated(function(C){var _=C.completeFunc,b=C.errorFunc,E=!1;return d.then(function(F){E||_(F)}).catch(function(F){E||b(F)}),function(){E=!0}})},A.getPromiseFromProcessing=s,A.getPromiseFromAsyncFunc=function(d){for(var C=[],_=1;_<arguments.length;_++)C[_-1]=arguments[_];var b=(0,a.createProcessing)(d),E=w(s.apply(void 0,p([b],w(C),!1)),2);return[E[0],E[1].finally(function(){return b.destroy()})]};var r=function(d){function C(_){return d.call(this,function(b){for(var E=b.completeFunc,F=b.errorFunc,Q=[],U=1;U<arguments.length;U++)Q[U-1]=arguments[U];var T=requestAnimationFrame(function(S){try{var P=_.apply(void 0,p([],w(Q),!1));E(P)}catch(I){F(I)}});return function(){return cancelAnimationFrame(T)}})||this}return g(C,d),C}(n.ProcessingDeprecated);A.NextAnimationFrame=r;var i=function(d){function C(_){return d.call(this,function(b){for(var E,F=b.completeFunc,Q=b.errorFunc,U=[],T=1;T<arguments.length;T++)U[T-1]=arguments[T];return new Promise(function(S,P){E=P,S()}).then(function(){F(_.apply(void 0,p([],w(U),!1)))}).catch(Q),function(){E&&E()}})||this}return g(C,d),C}(n.ProcessingDeprecated);A.NextMicroTask=i;var l=function(d){function C(){for(var _,b,E=[],F=0;F<arguments.length;F++)E[F]=arguments[F];var Q=d.call(this)||this;Q._event=new c.Event;try{for(var U=u(E),T=U.next();!T.done;T=U.next()){var S=T.value;Q.dispose(S.disposableOn(function(){!P.isRunning&&P.restart()}))}}catch(I){_={error:I}}finally{try{T&&!T.done&&(b=U.return)&&b.call(U)}finally{if(_)throw _.error}}var P=new i(function(){Q._event.emit()});return Q.dispose(function(){return P.destroy()}),Q}return g(C,d),Object.defineProperty(C.prototype,"event",{get:function(){return this._event},enumerable:!1,configurable:!0}),C}(f.Destroyable);A.NextMicroTaskEvent=l},8997:function(B,A,h){var m,g=this&&this.__extends||(m=function(C,_){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,E){b.__proto__=E}||function(b,E){for(var F in E)Object.prototype.hasOwnProperty.call(E,F)&&(b[F]=E[F])},m(C,_)},function(C,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function b(){this.constructor=C}m(C,_),C.prototype=_===null?Object.create(_):(b.prototype=_.prototype,new b)}),w=this&&this.__awaiter||function(C,_,b,E){return new(b||(b=Promise))(function(F,Q){function U(P){try{S(E.next(P))}catch(I){Q(I)}}function T(P){try{S(E.throw(P))}catch(I){Q(I)}}function S(P){var I;P.done?F(P.value):(I=P.value,I instanceof b?I:new b(function(M){M(I)})).then(U,T)}S((E=E.apply(C,_||[])).next())})},p=this&&this.__generator||function(C,_){var b,E,F,Q,U={label:0,sent:function(){if(1&F[0])throw F[1];return F[1]},trys:[],ops:[]};return Q={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(Q[Symbol.iterator]=function(){return this}),Q;function T(S){return function(P){return function(I){if(b)throw new TypeError("Generator is already executing.");for(;Q&&(Q=0,I[0]&&(U=0)),U;)try{if(b=1,E&&(F=2&I[0]?E.return:I[0]?E.throw||((F=E.return)&&F.call(E),0):E.next)&&!(F=F.call(E,I[1])).done)return F;switch(E=0,F&&(I=[2&I[0],F.value]),I[0]){case 0:case 1:F=I;break;case 4:return U.label++,{value:I[1],done:!1};case 5:U.label++,E=I[1],I=[0];continue;case 7:I=U.ops.pop(),U.trys.pop();continue;default:if(!((F=(F=U.trys).length>0&&F[F.length-1])||I[0]!==6&&I[0]!==2)){U=0;continue}if(I[0]===3&&(!F||I[1]>F[0]&&I[1]<F[3])){U.label=I[1];break}if(I[0]===6&&U.label<F[1]){U.label=F[1],F=I;break}if(F&&U.label<F[2]){U.label=F[2],U.ops.push(I);break}F[2]&&U.ops.pop(),U.trys.pop();continue}I=_.call(C,U)}catch(M){I=[6,M],E=0}finally{b=F=0}if(5&I[0])throw I[1];return{value:I[0]?I[1]:void 0,done:!0}}([S,P])}}},u=this&&this.__asyncValues||function(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _,b=C[Symbol.asyncIterator];return b?b.call(C):(C=typeof c=="function"?c(C):C[Symbol.iterator](),_={},E("next"),E("throw"),E("return"),_[Symbol.asyncIterator]=function(){return this},_);function E(F){_[F]=C[F]&&function(Q){return new Promise(function(U,T){(function(S,P,I,M){Promise.resolve(M).then(function(K){S({value:K,done:I})},P)})(U,T,(Q=C[F](Q)).done,Q.value)})}}},f=this&&this.__read||function(C,_){var b=typeof Symbol=="function"&&C[Symbol.iterator];if(!b)return C;var E,F,Q=b.call(C),U=[];try{for(;(_===void 0||_-- >0)&&!(E=Q.next()).done;)U.push(E.value)}catch(T){F={error:T}}finally{try{E&&!E.done&&(b=Q.return)&&b.call(Q)}finally{if(F)throw F.error}}return U},c=this&&this.__values||function(C){var _=typeof Symbol=="function"&&Symbol.iterator,b=_&&C[_],E=0;if(b)return b.call(C);if(C&&typeof C.length=="number")return{next:function(){return C&&E>=C.length&&(C=void 0),{value:C&&C[E++],done:!C}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.defaultGetLocalFilePath=A.defaultLocalFileServer=A.LocalFileServer=A.LocalRootDir=A.getFileArrayBuffer=A.getFileJson=A.getFileText=A.getSubEntriesFromDir=void 0;var a=h(7372);function n(C){var _,b,E,F;return w(this,void 0,void 0,function(){var Q,U,T,S,P,I,M,K,W,L,O;return p(this,function(H){switch(H.label){case 0:Q=[],U=[],T=C.entries(),H.label=1;case 1:H.trys.push([1,6,7,12]),S=!0,P=u(T),H.label=2;case 2:return[4,P.next()];case 3:if(I=H.sent(),_=I.done)return[3,5];F=I.value,S=!1;try{M=f(F,2),K=M[0],W=M[1],(L=W).kind==="file"?Q.push(K):L.kind==="directory"&&U.push(K)}finally{S=!0}H.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return O=H.sent(),b={error:O},[3,12];case 7:return H.trys.push([7,,10,11]),S||_||!(E=P.return)?[3,9]:[4,E.call(P)];case 8:H.sent(),H.label=9;case 9:return[3,11];case 10:if(b)throw b.error;return[7];case 11:return[7];case 12:return[2,{files:Q,dirs:U}]}})})}function s(C){return w(this,void 0,void 0,function(){return p(this,function(_){switch(_.label){case 0:return[4,C.getFile()];case 1:return[4,_.sent().text()];case 2:return[2,_.sent()]}})})}function r(C){return w(this,void 0,void 0,function(){var _;return p(this,function(b){switch(b.label){case 0:return[4,s(C)];case 1:_=b.sent();try{return[2,JSON.parse(_)]}catch{return[2,void 0]}return[2]}})})}function i(C){return w(this,void 0,void 0,function(){return p(this,function(_){switch(_.label){case 0:return[4,C.getFile()];case 1:return[4,_.sent().arrayBuffer()];case 2:return[2,_.sent()]}})})}A.getSubEntriesFromDir=n,A.getFileText=s,A.getFileJson=r,A.getFileArrayBuffer=i;var l=function(C){function _(b){var E=C.call(this)||this;return E._rootDirHandle=b,E}return g(_,C),Object.defineProperty(_.prototype,"rootDirHandle",{get:function(){return this._rootDirHandle},enumerable:!1,configurable:!0}),_.prototype.getSubFilesAndDirs=function(){return w(this,void 0,void 0,function(){return p(this,function(b){switch(b.label){case 0:return[4,n(this._rootDirHandle)];case 1:return[2,b.sent()]}})})},_.prototype.getDir=function(b){return w(this,void 0,void 0,function(){var E,F,Q,U,T,S,P;return p(this,function(I){switch(I.label){case 0:E=this._rootDirHandle,I.label=1;case 1:I.trys.push([1,6,7,8]),F=c(b),Q=F.next(),I.label=2;case 2:return Q.done?[3,5]:(U=Q.value,[4,E==null?void 0:E.getDirectoryHandle(U)]);case 3:if(!(E=I.sent()))return console.log("getDirectoryHandle ".concat(U," failed")),[2,void 0];I.label=4;case 4:return Q=F.next(),[3,2];case 5:return[3,8];case 6:return T=I.sent(),S={error:T},[3,8];case 7:try{Q&&!Q.done&&(P=F.return)&&P.call(F)}finally{if(S)throw S.error}return[7];case 8:return[2,E]}})})},_.prototype.getFile=function(b,E){return w(this,void 0,void 0,function(){var F,Q;return p(this,function(U){switch(U.label){case 0:return[4,this.getDir(b)];case 1:if(!(F=U.sent()))return[2,void 0];U.label=2;case 2:return U.trys.push([2,4,,5]),[4,F.getFileHandle(E)];case 3:return[2,U.sent()];case 4:return Q=U.sent(),console.error("未能获取当前文件 ".concat(b.join("/"),"/").concat(E," error: ").concat(Q),Q),[2,void 0];case 5:return[2]}})})},_}(a.Destroyable);A.LocalRootDir=l;var d=function(C){function _(b){var E=C.call(this)||this;return E._prefix=b,E._startRootDirId=0,E._dirMap=new Map,E}return g(_,C),Object.defineProperty(_.prototype,"prefix",{get:function(){return this._prefix},enumerable:!1,configurable:!0}),_.prototype.getRootDirId=function(b){return w(this,void 0,void 0,function(){var E,F,Q,U;return p(this,function(T){switch(T.label){case 0:return T.trys.push([0,2,,3]),console.log("window.showDirectoryPicker begin"),[4,window.showDirectoryPicker({id:b,mode:"read"})];case 1:return E=T.sent(),console.log("window.showDirectoryPicker end",E),[3,3];case 2:return F=T.sent(),console.error("LocalFileServer getRootDirId failed: ".concat(F),F),[2,void 0];case 3:return E?(Q=++this._startRootDirId,U="".concat(this._prefix).concat(Q),this._dirMap.set(U,new l(E)),[2,U]):[2]}})})},_.prototype.getRootDir=function(b){return this._dirMap.get(b)},_.prototype.getFile=function(b){return w(this,void 0,void 0,function(){var E,F,Q,U,T,S;return p(this,function(P){switch(P.label){case 0:return(E=b.split("/")).length<2?(console.warn("LocalFileServer getFile failed: ".concat(b)),[2,void 0]):(F=E[0],(Q=this._dirMap.get(F))?(U=E.slice(1,E.length-1),T=E[E.length-1],[4,Q.getFile(U,T)]):(console.warn("LocalFileServer getFile failed: ".concat(b)),[2,void 0]));case 1:return(S=P.sent())?[2,S]:(console.warn("LocalFileServer getFile failed: ".concat(b)),[2,void 0])}})})},_.prototype.getText=function(b){return w(this,void 0,void 0,function(){var E;return p(this,function(F){switch(F.label){case 0:return[4,this.getFile(b)];case 1:return(E=F.sent())?[4,s(E)]:[2,void 0];case 2:return[2,F.sent()]}})})},_.prototype.getArrayBuffer=function(b){return w(this,void 0,void 0,function(){var E;return p(this,function(F){switch(F.label){case 0:return[4,this.getFile(b)];case 1:return(E=F.sent())?[4,i(E)]:[2,void 0];case 2:return[2,F.sent()]}})})},_.prototype.getJson=function(b){return w(this,void 0,void 0,function(){var E;return p(this,function(F){switch(F.label){case 0:return[4,this.getFile(b)];case 1:return(E=F.sent())?[4,r(E)]:[2,void 0];case 2:return[2,F.sent()]}})})},_.prototype.getLocalFilePath=function(b,E,F){return w(this,void 0,void 0,function(){var Q,U,T,S;return p(this,function(P){switch(P.label){case 0:return[4,this.getRootDirId(E)];case 1:return(Q=P.sent())?(U=this.getRootDir(Q))?[4,U.getSubFilesAndDirs()]:(console.warn("getRootDir error!"),[2,void 0]):(console.warn("getRootDirId error!"),[2,void 0]);case 2:return(T=P.sent()).files?(S=b?T.files.filter(function(I){return b.some(function(M){return I.endsWith(M)})}):T.files).length===0?(console.warn("找不到符合要求的文件!"),[2,void 0]):[2,"https://".concat(Q,"/").concat(S[0])]:(console.warn("getSubFilesAndDirs error! 找不到符合要求的文件!"),[2,void 0])}})})},_}(a.Destroyable);A.LocalFileServer=d,A.defaultLocalFileServer=new d("xe2_local"),A.defaultGetLocalFilePath=function(C,_,b){return w(this,void 0,void 0,function(){return p(this,function(E){switch(E.label){case 0:return[4,A.defaultLocalFileServer.getLocalFilePath(C,_,b)];case 1:return[2,E.sent()]}})})}},9026:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.replaceStrWithEnv=void 0;var m=h(2220);A.replaceStrWithEnv=function(g){for(;;){var w=g.replace(/\${(.*?)\}/,function(p,u){var f=m.SceneObject.context.getEnv(u);return f===void 0?(console.warn("环境变量(".concat(u,")不存在,无法进行转换")),"{env-error}"):f});if(w===g)break;g=w}return g}},9038:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(9486),A),g(h(8584),A)},9067:function(B,A,h){var m,g=this&&this.__extends||(m=function(s,r){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(i[d]=l[d])},m(s,r)},function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=s}m(s,r),s.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}),w=this&&this.__read||function(s,r){var i=typeof Symbol=="function"&&s[Symbol.iterator];if(!i)return s;var l,d,C=i.call(s),_=[];try{for(;(r===void 0||r-- >0)&&!(l=C.next()).done;)_.push(l.value)}catch(b){d={error:b}}finally{try{l&&!l.done&&(i=C.return)&&i.call(C)}finally{if(d)throw d.error}}return _},p=this&&this.__spreadArray||function(s,r,i){if(i||arguments.length===2)for(var l,d=0,C=r.length;d<C;d++)!l&&d in r||(l||(l=Array.prototype.slice.call(r,0,d)),l[d]=r[d]);return s.concat(l||Array.prototype.slice.call(r))};Object.defineProperty(A,"__esModule",{value:!0}),A.Event=A.EventListenerHandler=void 0;var u=h(9359),f=h(6583),c=h(4471),a=function(s){function r(){return s!==null&&s.apply(this,arguments)||this}return g(r,s),r}(h(2452).SmartListenerHandler);A.EventListenerHandler=a;var n=function(s){function r(){return s!==null&&s.apply(this,arguments)||this}return g(r,s),Object.defineProperty(r.prototype,"_pipe",{get:function(){var i;return this.__pipe=(i=this.__pipe)!==null&&i!==void 0?i:new c.ListenerPipe,this.__pipe},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"empty",{get:function(){return!this.__pipe||this._pipe.empty},enumerable:!1,configurable:!0}),r.prototype.emit=function(){for(var i,l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];!this.isDestroyed()&&this.beforeCallback&&this.beforeCallback.apply(this,p([],w(l),!1)),!this.isDestroyed()&&(i=this._pipe).do.apply(i,p([],w(l),!1)),!this.isDestroyed()&&this.afterCallback&&this.afterCallback.apply(this,p([],w(l),!1))},r.prototype.on=function(i,l,d,C){d===void 0&&(d=!1);var _=d?this._pipe.unshift(i,l,!1):this._pipe.push(i,l,!1);return(C=C??new a)._reset(_,_._cid),C},r.prototype.disposableOn=function(i,l,d,C){var _=this;d===void 0&&(d=!1);var b=this.on(i,l,d,C);return function(){b.valid&&_.off(b)}},r.prototype.don=function(i,l,d,C){return d===void 0&&(d=!1),this.disposableOn(i,l,d,C)},r.prototype.disposableWeakOn=function(i,l,d,C){d===void 0&&(d=!1);var _=new u.Destroyable,b=function(){!_.isDestroyed()&&_.destroy()};return _.dispose(this.disposableOn(i,l,d,C)),_.dispose(this.toDestroyEvent.disposableOn(b)),b},r.prototype.dwon=function(i,l,d,C){return d===void 0&&(d=!1),this.disposableWeakOn(i,l,d,C)},r.prototype.once=function(i,l,d,C){d===void 0&&(d=!1);var _=d?this._pipe.unshift(i,l,!0):this._pipe.push(i,l,!0);return(C=C??new a)._reset(_,_._cid),C},r.prototype.disposableOnce=function(i,l,d,C){var _=this;d===void 0&&(d=!1);var b=this.once(i,l,d,C);return function(){return b.valid&&_.off(b)}},r.prototype.donce=function(i,l,d,C){var _=this;d===void 0&&(d=!1);var b=this.once(i,l,d,C);return function(){return b.valid&&_.off(b)}},r.prototype.off=function(i){if(!i.valid)throw new Error("handler is not valid!");this._pipe.remove(i._listenerHandler),i._reset()},r.prototype.reset=function(){this._pipe.removeAll()},r.prototype.destroyImp=function(){this.empty||((0,f.oneTimeWarning)("The event is destroying with listeners!"),this._pipe.removeAll())},r}(u.Destroyable);A.Event=n},9082:function(B,A,h){var m,g=this&&this.__extends||(m=function(r,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var C in d)Object.prototype.hasOwnProperty.call(d,C)&&(l[C]=d[C])},m(r,i)},function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function l(){this.constructor=r}m(r,i),r.prototype=i===null?Object.create(i):(l.prototype=i.prototype,new l)}),w=this&&this.__generator||function(r,i){var l,d,C,_,b={label:0,sent:function(){if(1&C[0])throw C[1];return C[1]},trys:[],ops:[]};return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(F){return function(Q){return function(U){if(l)throw new TypeError("Generator is already executing.");for(;_&&(_=0,U[0]&&(b=0)),b;)try{if(l=1,d&&(C=2&U[0]?d.return:U[0]?d.throw||((C=d.return)&&C.call(d),0):d.next)&&!(C=C.call(d,U[1])).done)return C;switch(d=0,C&&(U=[2&U[0],C.value]),U[0]){case 0:case 1:C=U;break;case 4:return b.label++,{value:U[1],done:!1};case 5:b.label++,d=U[1],U=[0];continue;case 7:U=b.ops.pop(),b.trys.pop();continue;default:if(!((C=(C=b.trys).length>0&&C[C.length-1])||U[0]!==6&&U[0]!==2)){b=0;continue}if(U[0]===3&&(!C||U[1]>C[0]&&U[1]<C[3])){b.label=U[1];break}if(U[0]===6&&b.label<C[1]){b.label=C[1],C=U;break}if(C&&b.label<C[2]){b.label=C[2],b.ops.push(U);break}C[2]&&b.ops.pop(),b.trys.pop();continue}U=i.call(r,b)}catch(T){U=[6,T],d=0}finally{l=C=0}if(5&U[0])throw U[1];return{value:U[0]?U[1]:void 0,done:!0}}([F,Q])}}},p=this&&this.__values||function(r){var i=typeof Symbol=="function"&&Symbol.iterator,l=i&&r[i],d=0;if(l)return l.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&d>=r.length&&(r=void 0),{value:r&&r[d++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(r,i){var l=typeof Symbol=="function"&&r[Symbol.iterator];if(!l)return r;var d,C,_=l.call(r),b=[];try{for(;(i===void 0||i-- >0)&&!(d=_.next()).done;)b.push(d.value)}catch(E){C={error:E}}finally{try{d&&!d.done&&(l=_.return)&&l.call(_)}finally{if(C)throw C.error}}return b},f=this&&this.__spreadArray||function(r,i,l){if(l||arguments.length===2)for(var d,C=0,_=i.length;C<_;C++)!d&&C in i||(d||(d=Array.prototype.slice.call(i,0,C)),d[C]=i[C]);return r.concat(d||Array.prototype.slice.call(i))};Object.defineProperty(A,"__esModule",{value:!0}),A.TreeItem=void 0;var c=h(1662),a=h(8368),n=h(7720),s=function(r){function i(l,d,C){d===void 0&&(d=!1);var _=r.call(this)||this;return _._tree=l,_._hasChildren=d,_._parent=_.disposeVar((0,c.react)(void 0)),_._level=_.disposeVar((0,c.react)(0)),_._uiTreeObject=_.disposeVar(new n.UiTreeObject(_)),_._id=C??(0,c.createGuid)(),_._id!=="_ROOT"&&i.wm.has(_._id)&&console.warn("创建了id(".concat(_._id,")相同的树节点,会导致之前的树节点无法索引!")),i.wm.set(_._id,_),_.dispose(function(){_._id==="_ROOT"||i.wm.has(_._id)?i.wm.delete(_._id):console.warn("树节点(".concat(_._id,")不在wm树上!"))}),_.dispose(_._parent.changed.disposableOn(function(){_._updateLevel()})),_.dispose(_._level.changed.disposableOn(function(){var b,E;if(_.children)try{for(var F=p(_.children),Q=F.next();!Q.done;Q=F.next())Q.value._updateLevel()}catch(U){b={error:U}}finally{try{Q&&!Q.done&&(E=F.return)&&E.call(F)}finally{if(b)throw b.error}}})),i.allTreeItems.set(_._id,_),_.dispose(function(){i.allTreeItems.delete(_._id)}),_}return g(i,r),i.getFromId=function(l){return i.wm.get(l)},Object.defineProperty(i.prototype,"uiTreeObject",{get:function(){return this._uiTreeObject},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),i.prototype._updateLevel=function(){this.parent&&(this._level.value=this.parent.level+1)},Object.defineProperty(i.prototype,"parent",{get:function(){return this._parent.value},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"parentChanged",{get:function(){return this._parent.changed},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"children",{get:function(){var l=this;if(this._hasChildren){if(!this._children){var d=this.disposeVar(new c.ObservableArray);this._children=d,this.dispose(d.toChangeEvent.disposableOn(function(b,E){var F,Q,U,T;try{for(var S=p(b),P=S.next();!P.done;P=S.next()){for(var I=P.value,M=I.start,K=I.deleteCount,W=I.items,L=M;L<M+K;++L)E.get(L)._parent.value=void 0;try{for(var O=(U=void 0,p(W)),H=O.next();!H.done;H=O.next()){var k=H.value;if(k.parent)throw console.error("请检查新增的treeItem是否正在使用!"),new Error("item.parent should not exist!");k._parent.value=l}}catch(G){U={error:G}}finally{try{H&&!H.done&&(T=O.return)&&T.call(O)}finally{if(U)throw U.error}}}}catch(G){F={error:G}}finally{try{P&&!P.done&&(Q=S.return)&&Q.call(S)}finally{if(F)throw F.error}}}));var C=new Set,_=new Set;this.dispose(d.toChangeEvent.disposableOn(function(b,E){var F,Q,U,T,S,P,I;if(l.tree){C.clear(),_.clear();try{for(var M=p(b),K=M.next();!K.done;K=M.next()){for(var W=K.value,L=W.start,O=W.deleteCount,H=W.items,k=L;k<L+O;++k)C.add(E.get(k));try{for(var G=(U=void 0,p(H)),D=G.next();!D.done;D=G.next()){var R=D.value;_.add(R)}}catch(Y){U={error:Y}}finally{try{D&&!D.done&&(T=G.return)&&T.call(G)}finally{if(U)throw U.error}}}}catch(Y){F={error:Y}}finally{try{K&&!K.done&&(Q=M.return)&&Q.call(M)}finally{if(F)throw F.error}}try{for(var N=p(C),X=N.next();!X.done;X=N.next())R=X.value,_.has(R)&&(C.delete(R),_.delete(R))}catch(Y){S={error:Y}}finally{try{X&&!X.done&&(P=N.return)&&P.call(N)}finally{if(S)throw S.error}}(I=l.tree)===null||I===void 0||I.itemChildrenToChange.emit(l,b,C,_)}})),this.dispose(d.changedEvent.disposableOn(function(){var b;(b=l.tree)===null||b===void 0||b.itemChildrenChanged.emit(l)})),this.dispose(d.toChangeEvent.disposableOn(function(){for(var b,E=[],F=0;F<arguments.length;F++)E[F]=arguments[F];return l._childrenToChangeEvent&&(b=l._childrenToChangeEvent).emit.apply(b,f([],u(E),!1))})),this.dispose(d.changedEvent.disposableOn(function(){for(var b,E=[],F=0;F<arguments.length;F++)E[F]=arguments[F];return l._childrenChangedEvent&&(b=l._childrenChangedEvent).emit.apply(b,f([],u(E),!1))}))}return this._children}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"childrenResetedEvent",{get:function(){return this._childrenResetedEvent||(this._childrenResetedEvent=new c.Event),this._childrenResetedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"childrenToChangeEvent",{get:function(){return this._childrenToChangeEvent||(this._childrenToChangeEvent=new c.Event),this._childrenToChangeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"childrenChangedEvent",{get:function(){return this._childrenChangedEvent||(this._childrenChangedEvent=new c.Event),this._childrenChangedEvent},enumerable:!1,configurable:!0}),i.prototype.resetChildren=function(l){l===void 0&&(l=!1),this._children&&(this._children.length=0),this._hasChildren=l,this._childrenResetedEvent&&this._childrenResetedEvent.emit(l)},i.prototype.getDescendants=function(l){var d,C,_,b,E,F;return w(this,function(Q){switch(Q.label){case 0:C=[],_=[],(d=this).children&&d.children.length>0&&(!l||l(d))&&(C.push(0),_.push(d.children)),Q.label=1;case 1:return C.length>0?(b=C[C.length-1],E=_[_.length-1],[4,F=E.get(b)]):[3,3];case 2:return Q.sent(),b<E.length-1?++C[C.length-1]:(_.pop(),C.pop()),F.children&&F.children.length>0&&(!l||l(F))&&(C.push(0),_.push(F.children)),[3,1];case 3:return[2]}})},i.prototype.getAncestors=function(l){var d;return w(this,function(C){switch(C.label){case 0:d=this.parent,C.label=1;case 1:return d?[4,d]:[3,3];case 2:return C.sent(),l&&!l(d)?[3,3]:(d=d.parent,[3,1]);case 3:return[2]}})},i.prototype.isDescendantOf=function(l){var d,C;try{for(var _=p(this.getAncestors()),b=_.next();!b.done;b=_.next())if(b.value===l)return!0}catch(E){d={error:E}}finally{try{b&&!b.done&&(C=_.return)&&C.call(_)}finally{if(d)throw d.error}}return!1},i.prototype.isAncestorOf=function(l){return l.isDescendantOf(this)},Object.defineProperty(i.prototype,"level",{get:function(){return this._level.value},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"levelChanged",{get:function(){return this._level.changed},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"tree",{get:function(){return this._tree},enumerable:!1,configurable:!0}),i.prototype.canMoveTo=function(l,d){return(0,a.canMoveToTreeItem)(this,l,d)},i.prototype.moveTo=function(l,d){(0,a.moveToTreeItem)(this,l,d)},i.prototype.detachFromParent=function(){if(this.parent&&this.parent.children){var l=this.parent.children.indexOf(this);this.parent.children.splice(l,1)}},i.prototype.insertNewTreeItem=function(l,d){if(d&&d.tree!==this.tree)return console.warn("newTreeItem.tree !== this.tree"),!1;if(this.children&&l.startsWith("Inner"))return d&&this.children.push(d),!0;if(l==="Inner")return!1;var C=this.parent;if(!C||!C.children)return!1;var _=C.children.indexOf(this);return l.endsWith("Before")?d&&C.children.splice(_,0,d):l.endsWith("After")&&d&&C.children.splice(_+1,0,d),!0},i.wm=new Map,i.allTreeItems=new Map,i}(c.Destroyable);A.TreeItem=s},9122:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.clamp=void 0,A.clamp=function(h,m,g){return m===void 0&&(m=0),g===void 0&&(g=1),h<m?m:h>g?g:h}},9131:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.loadJs=void 0;var h=[];function m(g,w,p){if(h.includes(g))return console.warn("_loadJs ".concat(g," has loaded before!")),void(w&&w());var u=document.getElementsByTagName("head")[0],f=document.createElement("script");f.setAttribute("type","text/javascript"),f.setAttribute("src",g),f.onload=f.onreadystatechange=function(){this.readyState&&this.readyState!=="complete"||(h.push(g),w&&w(),f.onload=f.onreadystatechange=null)},f.onerror=function(c,a,n,s,r){p(r)},u.appendChild(f)}A.loadJs=function(g,w){if(w===void 0&&(w=!0),w){var p=window.L;window.L&&(window.L=void 0);var u=window.define;return window.define&&(window.define=void 0),new Promise(function(f,c){m(g,f,c)}).then(function(){return window.define=u,window.L=p,Promise.resolve()})}return new Promise(function(f,c){m(g,f,c)})}},9181:function(B,A,h){var m,g=this&&this.__extends||(m=function(s,r){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(i[d]=l[d])},m(s,r)},function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=s}m(s,r),s.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}),w=this&&this.__read||function(s,r){var i=typeof Symbol=="function"&&s[Symbol.iterator];if(!i)return s;var l,d,C=i.call(s),_=[];try{for(;(r===void 0||r-- >0)&&!(l=C.next()).done;)_.push(l.value)}catch(b){d={error:b}}finally{try{l&&!l.done&&(i=C.return)&&i.call(C)}finally{if(d)throw d.error}}return _};Object.defineProperty(A,"__esModule",{value:!0}),A.CanvasPrimitivesContext=void 0;var p=h(1662),u=h(8106),f=h(7372),c=h(1023),a=function(s,r){return r.depth-s.depth},n=function(s){function r(){var i=s.call(this)||this;i._pois=[],i._size=[0,0],i._needRedraw=!1,i._needPickRedraw=!1,i._pickColorManager=new c.PickColorMananger;var l=document.createElement("canvas");l.style.width="100%",l.style.height="100%",i._canvasElement=l;var d=l.getContext("2d");if(d===null)throw new Error("cannot get context 2d!");return i._ctx=d,i._offscreenCanvasElement=document.createElement("canvas"),i._offscreenCtx=i._offscreenCanvasElement.getContext("2d"),i._offscreenCtx.imageSmoothingEnabled=!1,i._offscreenCanvasElement2=document.createElement("canvas"),i._offscreenCtx2=i._offscreenCanvasElement2.getContext("2d"),i._offscreenCtx2.imageSmoothingEnabled=!1,i.disposeVar((0,u.createAnimateFrameWithStartValues)(function(){var C=w(i._size,2),_=C[0],b=C[1],E=i._canvasElement,F=E.clientWidth,Q=E.clientHeight;_===F&&b===Q||(i._size[0]=F,i._size[1]=Q,i._canvasElement.width=F,i._canvasElement.height=Q,i._offscreenCanvasElement.width=F,i._offscreenCanvasElement.height=Q,i._offscreenCanvasElement2.width=F,i._offscreenCanvasElement2.height=Q,i._dirty()),i._needRedraw&&(i._needRedraw=!1,i._draw())})).start(),i}return g(r,s),Object.defineProperty(r.prototype,"element",{get:function(){return this._canvasElement},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"pois",{get:function(){return this._pois},enumerable:!1,configurable:!0}),r.prototype._dirty=function(){this._needRedraw=!0,this._needPickRedraw=!0},Object.defineProperty(r.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),r.prototype.addPoi=function(i){var l=this;if((0,p.getExtProp)(i,"listenHandler")===void 0)if(this._pois.indexOf(i)===-1){this._pois.push(i),this._dirty();var d=i._needRedrawEvent;if(d){var C=d.on(function(){l._needRedraw=!0});(0,p.setExtProp)(i,"needRedrawEventHandler",C)}var _=i._needPickRedrawEvent;if(_){var b=_.on(function(){l._needPickRedraw=!0});(0,p.setExtProp)(i,"needPickRedrawEventHandler",b)}}else console.error("同一个poi加了多次!");else console.error("可能有poi重复加载poiManager中!")},r.prototype.removePoi=function(i){var l=this._pois.indexOf(i);if(l!==-1){this._pois.splice(l,1),this._dirty();var d=i._needRedrawEvent;if(d){var C=(0,p.getExtProp)(i,"needRedrawEventHandler");C?d.off(C):console.error("poi没有listenHandler!")}var _=i._needPickRedrawEvent;if(_){var b=(0,p.getExtProp)(i,"needPickRedrawEventHandler");b?_.off(b):console.error("poi没有listenHandler!")}}else console.error("删除一个不存在的poi!")},r.prototype._draw=function(){var i=this;this._pois.sort(a);var l=w(this._size,2),d=l[0],C=l[1];this._ctx.clearRect(0,0,d,C),this._pois.forEach(function(_){return _.draw(i._ctx)})},r.prototype.pick=function(i,l,d,C){return this._needPickRedraw&&(this._needPickRedraw=!1,this._pickDraw()),this._getPickInfo(i,l,d,C)},r.prototype._pickDraw=function(){var i=this;this._pickColorManager.reset(),this._pois.sort(a);var l=w(this._size,2),d=l[0],C=l[1];this._offscreenCtx.clearRect(0,0,d,C),this._pois.forEach(function(_){_.drawForPick(i._offscreenCtx,function(b){var E=w(i._pickColorManager.createPickColor(_,b),3),F=E[0],Q=E[1],U=E[2];return"rgb(".concat(F,", ").concat(Q,", ").concat(U,")")})})},r.prototype._getPickInfo=function(i,l,d,C){for(var _=this._offscreenCtx.getImageData(i,l,d,C),b=[],E=_.data.length/4,F=0;F<E;++F){var Q=_.data[4*F+0],U=_.data[4*F+1],T=_.data[4*F+2];if(_.data[4*F+3]===255){var S=this._pickColorManager.getPickInfoFromColor(Q,U,T);if(S&&S.poi&&!b.includes(S)){var P=!0,I=w(this._size,2),M=I[0],K=I[1];this._offscreenCtx2.clearRect(0,0,M,K),S.poi.drawForPick(this._offscreenCtx2,function(k){return"rgb(255, 255, 255)"});var W=this._offscreenCtx2.getImageData(i,l,d,C),L=W.data[4*F+0],O=W.data[4*F+1],H=W.data[4*F+2];W.data[4*F+3],L===255&&O===255&&H===255||(P=!1),P&&b.push(S)}}}return b},r}(f.Destroyable);A.CanvasPrimitivesContext=n},9355:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}),w=this&&this.__read||function(a,n){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,i,l=s.call(a),d=[];try{for(;(n===void 0||n-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(C){i={error:C}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return d},p=this&&this.__spreadArray||function(a,n,s){if(s||arguments.length===2)for(var r,i=0,l=n.length;i<l;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return a.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(A,"__esModule",{value:!0}),A.ObjResetting=A.ObjResettingWithEvent=void 0;var u=h(1662),f=function(a){function n(s,r,i,l){i===void 0&&(i=!0);var d=a.call(this)||this;d._resetEvent=s,d._createFunc=r,d._obj=d.disposeVar((0,u.react)(void 0));var C=d._resetEvent,_=d._createFunc,b=function(){d._obj.value&&(d._obj.value.destroy(),d._obj.value=void 0)};return d.dispose(b),i&&(d._obj.value=l?_.apply(void 0,p([],w(l),!1)):_()),d.dispose(C.disposableOn(function(){for(var E=[],F=0;F<arguments.length;F++)E[F]=arguments[F];b(),d._obj.value=_.apply(void 0,p([],w(E),!1))})),d}return g(n,a),Object.defineProperty(n.prototype,"obj",{get:function(){return this._obj.value},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"objChanged",{get:function(){return this._obj.changed},enumerable:!1,configurable:!0}),n}(u.Destroyable);A.ObjResettingWithEvent=f;var c=function(a){function n(s,r,i){r===void 0&&(r=!0);var l=a.call(this)||this;return l._createFunc=s,l._execOnInit=r,l._initParams=i,l._event=l.disposeVar(new u.Event),l._objResettingWithEvent=l.disposeVar(new f(l._event,l._createFunc,l._execOnInit,l._initParams)),l}return g(n,a),Object.defineProperty(n.prototype,"obj",{get:function(){return this._objResettingWithEvent.obj},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"objChanged",{get:function(){return this._objResettingWithEvent.objChanged},enumerable:!1,configurable:!0}),n.prototype.reset=function(){for(var s,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];(s=this._event).emit.apply(s,p([],w(r),!1))},n}(u.Destroyable);A.ObjResetting=c},9359:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.Destroyable=A.destroyObject=void 0;var m=h(2082);Object.defineProperty(A,"destroyObject",{enumerable:!0,get:function(){return m.destroyObject}});var g=function(){function p(){this._memId=++p._lastMemId}return Object.defineProperty(p.prototype,"__v_skip",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"memId",{get:function(){return this._memId},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"disposers",{get:function(){return this._disposers||(this._disposers=[]),this._disposers},enumerable:!1,configurable:!0}),p.prototype.dispose=function(u){return this.disposers.push(u),u},p.prototype.d=function(u){return this.dispose(u)},p.prototype.disposeVar=function(u){return this.disposers.push(function(){return u.destroy()}),u},p.prototype.dv=function(u){return this.disposeVar(u)},p.prototype.tryDisposeVar=function(u){return this.disposers.push(function(){return u.tryDestroy()}),u},p.prototype.tdv=function(u){return this.tryDisposeVar(u)},p.prototype.autoDispose=function(u){return typeof u=="function"?this.dispose(u):this.disposeVar(u)},p.prototype.ad=function(u){return typeof u=="function"?this.dispose(u):this.disposeVar(u)},p.prototype.isDestroyed=function(){return!1},p.prototype.destroyImp=function(){},p.prototype.destroy=function(){if(this._toDestroyEvent&&this._toDestroyEvent.emit(),this.destroyImp(),this._disposers)try{for(var u=this._disposers,f=u.length-1;f>=0;--f)u[f]();u.length=0,this._disposers=void 0}catch(c){console.error("destroy get error! ".concat(c))}return(0,m.destroyObject)(this)},p.prototype.tryDestory=function(){if(!this.isDestroyed())return this.destroy()},p._lastMemId=-1,p}();A.Destroyable=g;var w=h(4899);Object.defineProperties(g.prototype,{toDestroyEvent:{get:function(){return this._toDestroyEvent===void 0&&(this._toDestroyEvent=this.disposeVar(new w.Event)),this._toDestroyEvent}}})},9367:function(B,A,h){var m=this&&this.__read||function(p,u){var f=typeof Symbol=="function"&&p[Symbol.iterator];if(!f)return p;var c,a,n=f.call(p),s=[];try{for(;(u===void 0||u-- >0)&&!(c=n.next()).done;)s.push(c.value)}catch(r){a={error:r}}finally{try{c&&!c.done&&(f=n.return)&&f.call(n)}finally{if(a)throw a.error}}return s};Object.defineProperty(A,"__esModule",{value:!0}),A.createEnvEvalStrReact=void 0;var g=h(1662),w=h(2220);A.createEnvEvalStrReact=function(p,u){var f=m((0,g.getReactFuncs)(p),3),c=f[0],a=(f[1],f[2]),n=(0,g.react)(void 0),s=function(){var r,i=(r=c())!==null&&r!==void 0?r:u;n.value=i&&w.SceneObject.context.getStrFromEnv(i)};return s(),a&&n.dispose(a.disposableOn(s)),n.dispose(w.SceneObject.context.environmentVariablesChanged.disposableOn(s)),n}},9369:function(B,A,h){var m,g=this&&this.__extends||(m=function(f,c){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])},m(f,c)},function(f,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function a(){this.constructor=f}m(f,c),f.prototype=c===null?Object.create(c):(a.prototype=c.prototype,new a)});Object.defineProperty(A,"__esModule",{value:!0}),A.DivPointerClick=void 0;var w=h(7372),p=h(5010),u=function(f){function c(a,n){var s=f.call(this)||this;s._div=a,s._pointerClick=s.disposeVar(new p.PointerClick);var r=s,i=r.div,l=r.pointerClick,d=function(E){return l.pointerDown(E)},C=function(E){return l.pointerMove(E)},_=function(E){return l.pointerOut(E)},b=function(E){return l.pointerUp(E)};return i.addEventListener("pointerdown",d,n),i.addEventListener("pointermove",C,n),i.addEventListener("pointerout",_,n),i.addEventListener("pointerup",b,n),s.dispose(function(){i.removeEventListener("pointerdown",d,n),i.removeEventListener("pointermove",C,n),i.removeEventListener("pointerout",_,n),i.removeEventListener("pointerup",b,n)}),s}return g(c,f),Object.defineProperty(c.prototype,"div",{get:function(){return this._div},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"pointerClick",{get:function(){return this._pointerClick},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"clickEvent",{get:function(){return this.pointerClick.clickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"dbclickEvent",{get:function(){return this.pointerClick.dbclickEvent},enumerable:!1,configurable:!0}),c}(w.Destroyable);A.DivPointerClick=u},9374:function(B,A,h){var m=this&&this.__read||function(p,u){var f=typeof Symbol=="function"&&p[Symbol.iterator];if(!f)return p;var c,a,n=f.call(p),s=[];try{for(;(u===void 0||u-- >0)&&!(c=n.next()).done;)s.push(c.value)}catch(r){a={error:r}}finally{try{c&&!c.done&&(f=n.return)&&f.call(n)}finally{if(a)throw a.error}}return s},g=this&&this.__spreadArray||function(p,u,f){if(f||arguments.length===2)for(var c,a=0,n=u.length;a<n;a++)!c&&a in u||(c||(c=Array.prototype.slice.call(u,0,a)),c[a]=u[a]);return p.concat(c||Array.prototype.slice.call(u))};Object.defineProperty(A,"__esModule",{value:!0}),A.getPromiseFromProcessing=void 0;var w=h(7372);A.getPromiseFromProcessing=function(p){for(var u=[],f=1;f<arguments.length;f++)u[f-1]=arguments[f];var c=-1;return[function(a){return c===p.runningId&&p.isRunning&&p.cancel(a)},new Promise(function(a,n){p.isRunning&&p.cancel(),p.reset();var s=new w.Destroyable;s.dispose(p.completeEvent.disposableOn(function(r){a(r),s.isDestroyed()?console.error("disposer is destroyed! ".concat(s)):s.destroy()})),s.dispose(p.errorEvent.disposableOn(function(r){n(r),s.isDestroyed()?console.error("disposer is destroyed! ".concat(s)):s.destroy()})),p.start.apply(p,g([],m(u),!1)),c=p.runningId})]}},9409:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.czmPixelFormats=void 0,A.czmPixelFormats=["DEPTH_COMPONENT","DEPTH_STENCIL","ALPHA","RED","RG","RGB","RGBA","LUMINANCE","LUMINANCE_ALPHA","RGB_DXT1","RGBA_DXT1","RGBA_DXT3","RGBA_DXT5","RGB_PVRTC_4BPPV1","RGB_PVRTC_2BPPV1","RGBA_PVRTC_4BPPV1","RGBA_PVRTC_2BPPV1","RGBA_ASTC","RGB_ETC1","RGB8_ETC2","RGBA8_ETC2_EAC","RGBA_BC7"]},9412:function(B,A,h){var m,g=this&&this.__extends||(m=function(r,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var C in d)Object.prototype.hasOwnProperty.call(d,C)&&(l[C]=d[C])},m(r,i)},function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function l(){this.constructor=r}m(r,i),r.prototype=i===null?Object.create(i):(l.prototype=i.prototype,new l)}),w=this&&this.__values||function(r){var i=typeof Symbol=="function"&&Symbol.iterator,l=i&&r[i],d=0;if(l)return l.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&d>=r.length&&(r=void 0),{value:r&&r[d++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__read||function(r,i){var l=typeof Symbol=="function"&&r[Symbol.iterator];if(!l)return r;var d,C,_=l.call(r),b=[];try{for(;(i===void 0||i-- >0)&&!(d=_.next()).done;)b.push(d.value)}catch(E){C={error:E}}finally{try{d&&!d.done&&(l=_.return)&&l.call(_)}finally{if(C)throw C.error}}return b},u=this&&this.__spreadArray||function(r,i,l){if(l||arguments.length===2)for(var d,C=0,_=i.length;C<_;C++)!d&&C in i||(d||(d=Array.prototype.slice.call(i,0,C)),d[C]=i[C]);return r.concat(d||Array.prototype.slice.call(i))};Object.defineProperty(A,"__esModule",{value:!0}),A.SmartWorker=A.findTransferableObjectsFromArgs=void 0;var f=h(1662),c=h(7372);function a(r,i){var l,d,C,_,b,E,F,Q;if(!(typeof r=="number"||typeof r=="string"||typeof r=="boolean"||r===void 0)){if(!(r instanceof String||r instanceof Boolean||r instanceof Date||r instanceof RegExp||r instanceof Blob||r instanceof File||r instanceof FileList)){if(r instanceof ArrayBuffer)i.indexOf(r)===-1&&i.push(r);else if(ArrayBuffer.isView(r))i.indexOf(r.buffer)===-1&&i.push(r.buffer);else if(r instanceof ImageBitmap)i.indexOf(r)===-1&&i.push(r);else if(!(r instanceof ImageData))if(r instanceof Map)try{for(var U=w(r),T=U.next();!T.done;T=U.next())a(T.value,i)}catch(O){l={error:O}}finally{try{T&&!T.done&&(d=U.return)&&d.call(U)}finally{if(l)throw l.error}}else if(r instanceof Set)try{for(var S=w(r),P=S.next();!P.done;P=S.next())a(P.value,i)}catch(O){C={error:O}}finally{try{P&&!P.done&&(_=S.return)&&_.call(S)}finally{if(C)throw C.error}}else if(Array.isArray(r))try{for(var I=w(r),M=I.next();!M.done;M=I.next())a(M.value,i)}catch(O){b={error:O}}finally{try{M&&!M.done&&(E=I.return)&&E.call(I)}finally{if(b)throw b.error}}else{if(!(r instanceof Object))throw console.error("有不可使用的传递的类型!"),new Error("有不可使用的传递的类型!");try{for(var K=w(Object.entries(r)),W=K.next();!W.done;W=K.next()){var L=p(W.value,2);L[0],a(L[1],i)}}catch(O){F={error:O}}finally{try{W&&!W.done&&(Q=K.return)&&Q.call(K)}finally{if(F)throw F.error}}}}}}function n(){for(var r,i,l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];try{var C=[];try{for(var _=w(l),b=_.next();!b.done;b=_.next())a(b.value,C)}catch(E){r={error:E}}finally{try{b&&!b.done&&(i=_.return)&&i.call(_)}finally{if(r)throw r.error}}return C}catch{return}}A.findTransferableObjectsFromArgs=n;var s=function(r){function i(){var l=r.call(this)||this;l._resultEvent=new f.Event,l._lastExecId=-1;var d=URL.createObjectURL(new Blob([`
|
|
23
|
-
|
|
24
|
-
function _findTransferableObjectsFromArg(arg, transferableObjects) {
|
|
25
|
-
if (typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'boolean' || typeof arg === 'undefined') {
|
|
26
|
-
}
|
|
27
|
-
else if (arg instanceof String ||
|
|
28
|
-
arg instanceof Boolean ||
|
|
29
|
-
arg instanceof Date ||
|
|
30
|
-
arg instanceof RegExp ||
|
|
31
|
-
arg instanceof Blob ||
|
|
32
|
-
arg instanceof File ||
|
|
33
|
-
arg instanceof FileList) {
|
|
34
|
-
}
|
|
35
|
-
else if (arg instanceof ArrayBuffer) {
|
|
36
|
-
if (-1 === transferableObjects.indexOf(arg)) {
|
|
37
|
-
transferableObjects.push(arg);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
else if (ArrayBuffer.isView(arg)) {
|
|
41
|
-
if (-1 === transferableObjects.indexOf(arg.buffer)) {
|
|
42
|
-
transferableObjects.push(arg.buffer);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
else if (arg instanceof ImageBitmap) {
|
|
46
|
-
if (-1 === transferableObjects.indexOf(arg)) {
|
|
47
|
-
transferableObjects.push(arg);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
else if (arg instanceof ImageData) {
|
|
51
|
-
}
|
|
52
|
-
else if (arg instanceof Map) {
|
|
53
|
-
for (let a of arg) {
|
|
54
|
-
_findTransferableObjectsFromArg(a, transferableObjects);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
else if (arg instanceof Set) {
|
|
58
|
-
for (let a of arg) {
|
|
59
|
-
_findTransferableObjectsFromArg(a, transferableObjects);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
else if (Array.isArray(arg)) {
|
|
63
|
-
for (let a of arg) {
|
|
64
|
-
_findTransferableObjectsFromArg(a, transferableObjects);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
else if (arg instanceof Object) {
|
|
68
|
-
for (let [k, v] of Object.entries(arg)) {
|
|
69
|
-
_findTransferableObjectsFromArg(v, transferableObjects);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
console.error(\`有不可使用的传递的类型!\`);
|
|
74
|
-
throw new Error(\`有不可使用的传递的类型!\`);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function findTransferableObjectsFromArgs(...args) {
|
|
79
|
-
try {
|
|
80
|
-
const transferableObjects = [];
|
|
81
|
-
for (let arg of args) {
|
|
82
|
-
_findTransferableObjectsFromArg(arg, transferableObjects);
|
|
83
|
-
}
|
|
84
|
-
return transferableObjects;
|
|
85
|
-
}
|
|
86
|
-
catch (error) {
|
|
87
|
-
return undefined;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
function progressFunc(execId, value) {
|
|
92
|
-
// @ts-ignore
|
|
93
|
-
const workerGlobal = globalThis;
|
|
94
|
-
const transferableObjects = findTransferableObjectsFromArgs(value);
|
|
95
|
-
const finalResult = {
|
|
96
|
-
type: 'function_progress',
|
|
97
|
-
execId,
|
|
98
|
-
progress: value,
|
|
99
|
-
};
|
|
100
|
-
if (transferableObjects) {
|
|
101
|
-
workerGlobal.postMessage(finalResult, transferableObjects);
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
workerGlobal.postMessage(finalResult);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
onmessage = function onmessageFunc(messageEvent) {
|
|
109
|
-
// DedicatedWorkerGlobalScope
|
|
110
|
-
// @ts-ignore
|
|
111
|
-
const workerGlobal = globalThis;
|
|
112
|
-
const { execId, type, name, args } = messageEvent.data;
|
|
113
|
-
if (type === 'function' || type === 'progressFunc') {
|
|
114
|
-
try {
|
|
115
|
-
// @ts-ignore
|
|
116
|
-
const func = workerGlobal[name];
|
|
117
|
-
if (typeof func !== 'function') {
|
|
118
|
-
console.error(\`typeof func !== 'function'\`);
|
|
119
|
-
throw new Error(\`typeof func !== 'function'\`);
|
|
120
|
-
}
|
|
121
|
-
let resultOrResultPromise;
|
|
122
|
-
if (type === 'progressFunc') {
|
|
123
|
-
// @ts-ignore
|
|
124
|
-
workerGlobal._cancelFuncsMap = workerGlobal._cancelFuncsMap || new Map();
|
|
125
|
-
// @ts-ignore
|
|
126
|
-
const cancelFuncsMap = workerGlobal._cancelFuncsMap;
|
|
127
|
-
const localProgressFunc = (value) => {
|
|
128
|
-
progressFunc(execId, value);
|
|
129
|
-
};
|
|
130
|
-
let resolve_;
|
|
131
|
-
let reject_;
|
|
132
|
-
resultOrResultPromise = new Promise((resolve, reject) => {
|
|
133
|
-
resolve_ = resolve;
|
|
134
|
-
reject_ = reject;
|
|
135
|
-
});
|
|
136
|
-
let finished = false;
|
|
137
|
-
const completeFunc = (value) => {
|
|
138
|
-
finished = true;
|
|
139
|
-
if (cancelFuncsMap.has(execId)) {
|
|
140
|
-
cancelFuncsMap.delete(execId);
|
|
141
|
-
}
|
|
142
|
-
resolve_(value);
|
|
143
|
-
};
|
|
144
|
-
const errorFunc = (error) => {
|
|
145
|
-
finished = true;
|
|
146
|
-
if (cancelFuncsMap.has(execId)) {
|
|
147
|
-
cancelFuncsMap.delete(execId);
|
|
148
|
-
}
|
|
149
|
-
reject_(error);
|
|
150
|
-
};
|
|
151
|
-
const cancelFunc = func(localProgressFunc, completeFunc, errorFunc, ...args);
|
|
152
|
-
if (typeof cancelFunc === 'function') {
|
|
153
|
-
if (!finished) {
|
|
154
|
-
cancelFuncsMap.set(execId, cancelFunc);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
console.warn(\`typeof cancelFunc !== 'function'\`);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
else if (type === 'function') {
|
|
162
|
-
resultOrResultPromise = func(...args);
|
|
163
|
-
}
|
|
164
|
-
if (resultOrResultPromise instanceof Promise) {
|
|
165
|
-
resultOrResultPromise.then(result => {
|
|
166
|
-
const transferableObjects = findTransferableObjectsFromArgs(result);
|
|
167
|
-
const finalResult = {
|
|
168
|
-
type: 'function_result',
|
|
169
|
-
execId,
|
|
170
|
-
result,
|
|
171
|
-
};
|
|
172
|
-
transferableObjects && workerGlobal.postMessage(finalResult, transferableObjects) || workerGlobal.postMessage(finalResult);
|
|
173
|
-
}).catch(error => {
|
|
174
|
-
const finalResult = {
|
|
175
|
-
type: 'function_result',
|
|
176
|
-
execId,
|
|
177
|
-
error,
|
|
178
|
-
};
|
|
179
|
-
workerGlobal.postMessage(finalResult);
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
const result = resultOrResultPromise;
|
|
184
|
-
const finalResult = {
|
|
185
|
-
type: 'function_result',
|
|
186
|
-
execId,
|
|
187
|
-
result,
|
|
188
|
-
};
|
|
189
|
-
const transferableObjects = findTransferableObjectsFromArgs(result);
|
|
190
|
-
transferableObjects && workerGlobal.postMessage(finalResult, transferableObjects) || workerGlobal.postMessage(finalResult);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
catch (error) {
|
|
194
|
-
const finalResult = {
|
|
195
|
-
type: 'function_result',
|
|
196
|
-
execId,
|
|
197
|
-
error,
|
|
198
|
-
};
|
|
199
|
-
workerGlobal.postMessage(finalResult);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
else if (type === 'progressFunc_cancel') {
|
|
203
|
-
// @ts-ignore
|
|
204
|
-
workerGlobal._cancelFuncsMap = workerGlobal._cancelFuncsMap || new Map();
|
|
205
|
-
// @ts-ignore
|
|
206
|
-
const cancelFuncsMap = workerGlobal._cancelFuncsMap;
|
|
207
|
-
// const execId = args[0];
|
|
208
|
-
if (typeof execId !== 'number') {
|
|
209
|
-
console.error(\`typeof execId !== 'number'\`);
|
|
210
|
-
}
|
|
211
|
-
else {
|
|
212
|
-
const cancelFunc = cancelFuncsMap.get(execId);
|
|
213
|
-
if (cancelFunc) {
|
|
214
|
-
cancelFunc(\`progressFunc cancel execId: \${execId}\`);
|
|
215
|
-
}
|
|
216
|
-
else {
|
|
217
|
-
// 找不到的原因可能是:
|
|
218
|
-
// 1 进度函数的返回值不对,不是一个取消函数!
|
|
219
|
-
// 2 进度函数已经被取消,再次执行取消时,就会警告!
|
|
220
|
-
console.warn(\`cancelFuncsMap cannot find execId: \${execId}\`);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
else {
|
|
225
|
-
console.error('未知type!');
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
`]));return l.dispose(function(){return URL.revokeObjectURL(d)}),l._worker=new Worker(d),l.dispose(function(){return l._worker.terminate()}),l._worker.onmessage=function(C){l._resultEvent.emit(C)},l}return g(i,r),i.prototype.execWorkerFunc=function(l){for(var d=[],C=1;C<arguments.length;C++)d[C-1]=arguments[C];var _=n(d);if(_)return this.execWorkerFuncWithTransferableObjects.apply(this,u([l,_],p(d),!1));throw console.error("存在无法传递的数据,请检查参数!"),new Error("存在无法传递的数据,请检查参数!")},i.prototype.execWorkerFuncWithTransferableObjects=function(l,d){var C=this;d===void 0&&(d=[]);for(var _=[],b=2;b<arguments.length;b++)_[b-2]=arguments[b];if(d)return new Promise(function(E,F){C._execWorkerFuncWithTransferableObjects.apply(C,u([l,E,F,d],p(_),!1))});throw console.error("存在无法传递的数据,请检查参数!"),new Error("存在无法传递的数据,请检查参数!")},i.prototype._execWorkerFuncWithTransferableObjects=function(l,d,C,_){_===void 0&&(_=[]);for(var b=[],E=4;E<arguments.length;E++)b[E-4]=arguments[E];var F=++this._lastExecId,Q={execId:F,type:"function",name:l,args:b};this._worker.postMessage(Q,_);var U=this._resultEvent.disposableOn(function(T){var S=T.data;S.execId===F&&(S.type==="function_result"?(U(),"error"in S?C(S.error):d(S.result)):S.type==="function_progress"&&console.error("messageData.type === 'function_progress'"))})},i.prototype.execWorkerProgressFunc=function(l,d,C,_){for(var b=[],E=4;E<arguments.length;E++)b[E-4]=arguments[E];var F=n(b);if(F)return this.execWorkerProgressFuncWithTransferableObjects.apply(this,u([l,d,C,_,F],p(b),!1));throw console.error("存在无法传递的数据,请检查参数!"),new Error("存在无法传递的数据,请检查参数!")},i.prototype.execWorkerProgressFuncWithTransferableObjects=function(l,d,C,_,b){b===void 0&&(b=[]);for(var E=[],F=5;F<arguments.length;F++)E[F-5]=arguments[F];return this._execWorkerProgressFuncWithTransferableObjects.apply(this,u([l,d,C,_,b],p(E),!1))},i.prototype._execWorkerProgressFuncWithTransferableObjects=function(l,d,C,_,b){var E=this;b===void 0&&(b=[]);for(var F=[],Q=5;Q<arguments.length;Q++)F[Q-5]=arguments[Q];var U=++this._lastExecId,T={execId:U,type:"progressFunc",name:l,args:F};this._worker.postMessage(T,b);var S=this._resultEvent.disposableOn(function(P){var I=P.data;I.execId===U&&(I.type==="function_result"?(S&&(S(),S=void 0),"error"in I?_(I.error):C(I.result)):I.type==="function_progress"&&d&&d(I.progress))});return function(){S&&(S(),S=void 0),E._worker.postMessage({execId:U,type:"progressFunc_cancel",name:"funcName",args:[]})}},i.prototype.eval=function(l){return this.execWorkerFuncWithTransferableObjects("eval",[],l)},i.prototype.importScripts=function(l){return this.execWorkerFuncWithTransferableObjects("importScripts",[],l)},i.prototype.createGlobalFunc=function(l,d){return this.execWorkerFuncWithTransferableObjects("eval",[],"globalThis['".concat(d??l.name,"'] = ").concat(l.toString(),";undefined;"))},i}(c.Destroyable);A.SmartWorker=s},9486:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.saveOnBrowser=void 0,A.saveOnBrowser=function(h,m,g){g===void 0&&(m.endsWith(".gltf")?g="model/gltf+json":m.endsWith(".bin")?g="application/octet-stream":m.endsWith(".glb")?g="model/gltf-binary":m.endsWith(".jpg")||m.endsWith(".jpeg")?g="image/jpeg":m.endsWith(".png")?g="image/png":m.endsWith(".glsl")?g="text/plain":m.endsWith(".json")?g="application/json":m.endsWith(".b3dm")||m.endsWith(".i3dm")?g="application/octet-stream":console.warn("save ".concat(m,": MimeType无法确定!")));var w=new Blob([h],{type:g||""}),p=URL.createObjectURL(w),u=document.createElement("a"),f=new MouseEvent("click");u.download=m,u.href=p,u.dispatchEvent(f),URL.revokeObjectURL(p)}},9528:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.readFileFromBrowser=void 0,A.readFileFromBrowser=function(){return new Promise(function(h,m){var g=document.createElement("input");g.type="file",g.style.display="none";var w=new MouseEvent("click",{bubbles:!1,cancelable:!0,view:window});g.dispatchEvent(w),g.addEventListener("change",function(p){var u=g.files;u&&u.length>0?u[0].text().then(function(f){h(f)}):m()})})}},9549:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.Quaternion=void 0;var m=h(2731),g=h(9898),w=h(5985),p=h(4915),u=h(8089);(function(f){var c=(0,m.createNumbers)(3);function a(E,F,Q){var U=F/2,T=Math.sin(U);g.Vector.normalize(E,c);var S=c[0]*T,P=c[1]*T,I=c[2]*T,M=Math.cos(U);return Q=Q||(0,m.createNumbers)(4),g.Vector.clone([S,P,I,M],Q),Q}f.fromAxisAngle=a;var n=(0,m.createNumbers)(3,1,2,0),s=(0,m.createNumbers)(3);function r(E,F){var Q,U,T,S,P,I=E[p.Matrix3.COLUMN0ROW0],M=E[p.Matrix3.COLUMN1ROW1],K=E[p.Matrix3.COLUMN2ROW2],W=I+M+K;if(W>0)P=.5*(Q=Math.sqrt(W+1)),Q=.5/Q,U=(E[p.Matrix3.COLUMN1ROW2]-E[p.Matrix3.COLUMN2ROW1])*Q,T=(E[p.Matrix3.COLUMN2ROW0]-E[p.Matrix3.COLUMN0ROW2])*Q,S=(E[p.Matrix3.COLUMN0ROW1]-E[p.Matrix3.COLUMN1ROW0])*Q;else{var L=n,O=0;M>I&&(O=1),K>I&&K>M&&(O=2);var H=L[O],k=L[H];Q=Math.sqrt(E[p.Matrix3.getElementIndex(O,O)]-E[p.Matrix3.getElementIndex(H,H)]-E[p.Matrix3.getElementIndex(k,k)]+1);var G=s;G[O]=.5*Q,Q=.5/Q,P=(E[p.Matrix3.getElementIndex(k,H)]-E[p.Matrix3.getElementIndex(H,k)])*Q,G[H]=(E[p.Matrix3.getElementIndex(H,O)]+E[p.Matrix3.getElementIndex(O,H)])*Q,G[k]=(E[p.Matrix3.getElementIndex(k,O)]+E[p.Matrix3.getElementIndex(O,k)])*Q,U=-G[0],T=-G[1],S=-G[2]}return F?(F[0]=U,F[1]=T,F[2]=S,F[3]=P,F):(0,m.createNumbers)(4,U,T,S,P)}f.fromRotationMatrix3=r;var i=(0,m.createNumbers)(9);f.fromRotationMatrix4=function(E,F){return r(u.Matrix4.getMatrix3(E,i),F)},f.multiply=function(E,F,Q){var U=E[0],T=E[1],S=E[2],P=E[3],I=F[0],M=F[1],K=F[2],W=F[3],L=P*I+U*W+T*K-S*M,O=P*M-U*K+T*W+S*I,H=P*K+U*M-T*I+S*W,k=P*W-U*I-T*M-S*K;return g.Vector.set(Q,L,O,H,k)};var l=(0,m.createNumbers)(3);f.rotationTo=function(E,F,Q){var U=g.Vector.dot(E,F);return U<-.999999?(w.Vector3.cross(w.Vector3.UNIT_X,E,l),g.Vector.magnitudeSquared(l)<.001&&w.Vector3.cross(w.Vector3.UNIT_Y,E,l),g.Vector.normalize(l,l),a(l,Math.PI,Q)):U>.999999?g.Vector.set(Q,0,0,0,1):(w.Vector3.cross(E,F,l),Q=g.Vector.set(Q,l[0],l[1],l[2],1+U),g.Vector.normalize(Q,Q))};var d=(0,m.createNumbers)(4);f.lerp=function(E,F,Q,U){return g.Vector.multiplyByScalar(F,Q,d),U=g.Vector.multiplyByScalar(E,1-Q,U),g.Vector.add(d,U,U)};var C=(0,m.createNumbers)(4),_=(0,m.createNumbers)(4),b=(0,m.createNumbers)(4);f.slerp=function(E,F,Q,U){var T=g.Vector.dot(E,F),S=F;if(T<0&&(T=-T,S=g.Vector.negate(F,C)),1-T<1e-6)return g.Vector.lerp(E,S,Q,U);var P=Math.acos(T);return g.Vector.multiplyByScalar(E,Math.sin((1-Q)*P),_),g.Vector.multiplyByScalar(S,Math.sin(Q*P),b),U=g.Vector.add(_,b,U),g.Vector.multiplyByScalar(U,1/Math.sin(P),U)}})(A.Quaternion||(A.Quaternion={}))},9597:function(B,A,h){var m,g=this&&this.__extends||(m=function(f,c){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])},m(f,c)},function(f,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function a(){this.constructor=f}m(f,c),f.prototype=c===null?Object.create(c):(a.prototype=c.prototype,new a)});Object.defineProperty(A,"__esModule",{value:!0}),A.DomElementEvent=void 0;var w=h(7372),p=-1,u=function(f){function c(a,n,s,r){var i=f.call(this)||this;i._domElement=a,i._type=n,i.callback=r;var l=function(d){return d.__xbsj_listenerNo__=++p,d.__xbsj_listenerTime__=Date.now(),d.__xbsj_lastCurrentTarget__=d.currentTarget,i.emit(d),i.callback&&i.callback(d)};return i._domElement.addEventListener(i._type,l,s),i.dispose(function(){return i._domElement.removeEventListener(i._type,l,s)}),i}return g(c,f),c.getLastLisenNo=function(){return p},c.getCurrentTarget=function(a){return a.__xbsj_lastCurrentTarget__},c.getListenerNo=function(a){return a.__xbsj_listenerNo__},c.getListenerTime=function(a){return a.__xbsj_listenerTime__},c.on=function(a,n){var s=c.getLastLisenNo();return a.disposableOn(function(r){var i=c.getListenerNo(r);(i===void 0||i>s)&&n(r)})},Object.defineProperty(c.prototype,"element",{get:function(){return this._domElement},enumerable:!1,configurable:!0}),c.create=function(a,n,s){return new c(a,n,s)},c}(w.Event);A.DomElementEvent=u},9631:function(B,A){var h=this&&this.__awaiter||function(g,w,p,u){return new(p||(p=Promise))(function(f,c){function a(r){try{s(u.next(r))}catch(i){c(i)}}function n(r){try{s(u.throw(r))}catch(i){c(i)}}function s(r){var i;r.done?f(r.value):(i=r.value,i instanceof p?i:new p(function(l){l(i)})).then(a,n)}s((u=u.apply(g,w||[])).next())})},m=this&&this.__generator||function(g,w){var p,u,f,c,a={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return c={next:n(0),throw:n(1),return:n(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function n(s){return function(r){return function(i){if(p)throw new TypeError("Generator is already executing.");for(;c&&(c=0,i[0]&&(a=0)),a;)try{if(p=1,u&&(f=2&i[0]?u.return:i[0]?u.throw||((f=u.return)&&f.call(u),0):u.next)&&!(f=f.call(u,i[1])).done)return f;switch(u=0,f&&(i=[2&i[0],f.value]),i[0]){case 0:case 1:f=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,u=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((f=(f=a.trys).length>0&&f[f.length-1])||i[0]!==6&&i[0]!==2)){a=0;continue}if(i[0]===3&&(!f||i[1]>f[0]&&i[1]<f[3])){a.label=i[1];break}if(i[0]===6&&a.label<f[1]){a.label=f[1],f=i;break}if(f&&a.label<f[2]){a.label=f[2],a.ops.push(i);break}f[2]&&a.ops.pop(),a.trys.pop();continue}i=w.call(g,a)}catch(l){i=[6,l],u=0}finally{p=f=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([s,r])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.fetchArrayBuffer=void 0,A.fetchArrayBuffer=function(g,w){return w===void 0&&(w=fetch),h(this,void 0,void 0,function(){var p;return m(this,function(u){switch(u.label){case 0:return[4,w(g)];case 1:return(p=u.sent()).ok?[4,p.arrayBuffer()]:[2,void 0];case 2:return[2,u.sent()]}})})}},9651:function(B,A,h){var m=this&&this.__read||function(f,c){var a=typeof Symbol=="function"&&f[Symbol.iterator];if(!a)return f;var n,s,r=a.call(f),i=[];try{for(;(c===void 0||c-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(l){s={error:l}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}}return i};Object.defineProperty(A,"__esModule",{value:!0}),A.getEventFromPromise=A.getPromiseFromEvent=A.createCancelablePromise=A.pairToPromise=A.cancelPromise=A.isPromiseCancelable=A.getPromiseCancel=A.setPromiseCancel=void 0;var g=h(1662),w=h(7372);function p(f,c){(0,g.getExtProp)(f,"_promise_cancel")&&console.warn("setPromiseCancel warn: promise has cancelFunc!"),(0,g.setExtProp)(f,"_promise_cancel",c)}function u(f){return(0,g.getExtProp)(f,"_promise_cancel")}A.setPromiseCancel=p,A.getPromiseCancel=u,A.isPromiseCancelable=function(f){return!!u(f)},A.cancelPromise=function(f,c){var a=u(f);return!!a&&(a(c),!0)},A.pairToPromise=function(f){var c=m(f,2),a=c[0],n=c[1];return p(n,a),n},A.createCancelablePromise=function(f){var c,a=new Promise(function(n,s){c=s,f.then(n).catch(s)});return p(a,c),a},A.getPromiseFromEvent=function(f){var c,a,n=new Promise(function(s,r){a=f.disposableOn(function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];a&&a(),s(i)}),c=function(i){a&&a(),r(i)}});return[c,n]},A.getEventFromPromise=function(f){var c=new w.Event,a=new w.Event;return f.then(function(n){c.isDestroyed()||c.emit(n)}).catch(function(n){a.isDestroyed()||a.emit(n)}),[c,a]}},9704:(B,A,h)=>{h.r(A),h.d(A,{decompressFrame:()=>u,decompressFrames:()=>f,parseGIF:()=>p});var m=h(4235),g=h(4638),w=h(733);const p=c=>{const a=new Uint8Array(c);return(0,g.parse)((0,w.buildStream)(a),m.A)},u=(c,a,n)=>{if(!c.image)return void console.warn("gif frame does not have associated image.");const{image:s}=c,r=s.descriptor.width*s.descriptor.height;var i=((d,C,_)=>{const E=_;var F,Q,U,T,S,P,I,M,K,W;const L=new Array(_),O=new Array(4096),H=new Array(4096),k=new Array(4097);for(S=1+(Q=1<<(W=d)),F=Q+2,I=-1,U=(1<<(T=W+1))-1,M=0;M<Q;M++)O[M]=0,H[M]=M;var G,D,R,N,X,Y;for(G=D=R=N=X=Y=0,K=0;K<E;){if(N===0){if(D<T){G+=C[Y]<<D,D+=8,Y++;continue}if(M=G&U,G>>=T,D-=T,M>F||M==S)break;if(M==Q){U=(1<<(T=W+1))-1,F=Q+2,I=-1;continue}if(I==-1){k[N++]=H[M],I=M,R=M;continue}for(P=M,M==F&&(k[N++]=R,M=I);M>Q;)k[N++]=H[M],M=O[M];R=255&H[M],k[N++]=R,F<4096&&(O[F]=I,H[F]=R,!(++F&U)&&F<4096&&(T++,U+=F)),I=P}N--,L[X++]=k[N],K++}for(K=X;K<E;K++)L[K]=0;return L})(s.data.minCodeSize,s.data.blocks,r);s.descriptor.lct.interlaced&&(i=((d,C)=>{const _=new Array(d.length),b=d.length/C,E=function(P,I){const M=d.slice(I*C,(I+1)*C);_.splice.apply(_,[P*C,C].concat(M))},F=[0,4,2,1],Q=[8,8,4,2];for(var U=0,T=0;T<4;T++)for(var S=F[T];S<b;S+=Q[T])E(S,U),U++;return _})(i,s.descriptor.width));const l={pixels:i,dims:{top:c.image.descriptor.top,left:c.image.descriptor.left,width:c.image.descriptor.width,height:c.image.descriptor.height}};return s.descriptor.lct&&s.descriptor.lct.exists?l.colorTable=s.lct:l.colorTable=a,c.gce&&(l.delay=10*(c.gce.delay||10),l.disposalType=c.gce.extras.disposal,c.gce.extras.transparentColorGiven&&(l.transparentIndex=c.gce.transparentColorIndex)),n&&(l.patch=(d=>{const C=d.pixels.length,_=new Uint8ClampedArray(4*C);for(var b=0;b<C;b++){const E=4*b,F=d.pixels[b],Q=d.colorTable[F]||[0,0,0];_[E]=Q[0],_[E+1]=Q[1],_[E+2]=Q[2],_[E+3]=F!==d.transparentIndex?255:0}return _})(l)),l},f=(c,a)=>c.frames.filter(n=>n.image).map(n=>u(n,c.gct,a))},9812:function(B,A,h){var m=this&&this.__values||function(a){var n=typeof Symbol=="function"&&Symbol.iterator,s=n&&a[n],r=0;if(s)return s.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&r>=a.length&&(a=void 0),{value:a&&a[r++],done:!a}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.CullingVolume=void 0;var g=h(4416),w=h(312),p=h(6172),u=h(7215),f=h(8703),c=function(){function a(n){n===void 0&&(n=[]),this.planes=n}return a.fromProjectionMatrix=function(n,s){return(0,f._getCullingVolumeFromProjectionMatrix)(n,s)},a.prototype.computeVisibilityWithPlaneMask=function(n,s,r){if(r===a.MASK_OUTSIDE||r===a.MASK_INSIDE)return r;var i=a.MASK_INSIDE,l=this.planes;if(l)for(var d=0,C=l.length;d<C;++d){var _=d<31?1<<d:0;if(!(d<31)||r&_){var b=void 0;if(n==="box"?b=p.OrientedBoundingBox.intersectPlane(s,l[d]):n==="sphere"&&(b=g.BoundingSphere.intersectPlane(s,l[d])),b===w.Intersect.OUTSIDE)return a.MASK_OUTSIDE;b===w.Intersect.INTERSECTING&&(i|=_)}}return i},a.prototype.transform=function(n){var s,r;try{for(var i=m(this.planes),l=i.next();!l.done;l=i.next()){var d=l.value;u.Plane.transform(d,n,d)}}catch(C){s={error:C}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}},a.MASK_OUTSIDE=4294967295,a.MASK_INSIDE=0,a.MASK_INDETERMINATE=2147483647,a}();A.CullingVolume=c,A.default=c},9815:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)});Object.defineProperty(A,"__esModule",{value:!0}),A.Gif=void 0;var w=h(1662),p=h(5819),u=h(5819),f=h(7118),c=h(5281),a=function(n){function s(r){var i=n.call(this)||this;return i._url=i.disposeVar((0,w.react)("")),i._loadGifFramesProcessing=i.disposeVar((0,u.createProcessingFromPromiseCreateFunc)(function(l){return(0,p.createCancelablePromise)((0,c.loadGifFrames)(l))})),i._player=i.disposeVar(new f.GifPlayer(r)),i._player.autoPlayOnLoad=!0,i._loadGifFramesProcessing.completeFunc=function(l){var d=l.gifFrames;return i._player.gifFrames=d},i.dispose(i._url.changed.disposableOn(function(l){i._player.gifFrames=void 0,i._loadGifFramesProcessing.restart(new p.CancelError("reload gif(".concat(l,")")),l)})),i}return g(s,n),Object.defineProperty(s.prototype,"player",{get:function(){return this._player},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"url",{get:function(){return this._url.value},set:function(r){this._url.value=r},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"loadedEvent",{get:function(){return this._loadGifFramesProcessing.completeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"size",{get:function(){return this._player.gifSize},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"sizeChanged",{get:function(){return this._player.gifSizeChanged},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"duration",{get:function(){return this._player.gifDuration},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"durationChanged",{get:function(){return this._player.gifDurationChanged},enumerable:!1,configurable:!0}),s}(w.Destroyable);A.Gif=a},9898:function(B,A,h){var m=this&&this.__generator||function(w,p){var u,f,c,a,n={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(r){return function(i){return function(l){if(u)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(n=0)),n;)try{if(u=1,f&&(c=2&l[0]?f.return:l[0]?f.throw||((c=f.return)&&c.call(f),0):f.next)&&!(c=c.call(f,l[1])).done)return c;switch(f=0,c&&(l=[2&l[0],c.value]),l[0]){case 0:case 1:c=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,f=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(!((c=(c=n.trys).length>0&&c[c.length-1])||l[0]!==6&&l[0]!==2)){n=0;continue}if(l[0]===3&&(!c||l[1]>c[0]&&l[1]<c[3])){n.label=l[1];break}if(l[0]===6&&n.label<c[1]){n.label=c[1],c=l;break}if(c&&n.label<c[2]){n.label=c[2],n.ops.push(l);break}c[2]&&n.ops.pop(),n.trys.pop();continue}l=p.call(w,n)}catch(d){l=[6,d],f=0}finally{u=c=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([r,i])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.Vector=void 0;var g=h(2731);(function(w){function p(D,R){for(var N=D.length,X=0;X<N;++X)if(!R(D[X],X))return!1;return!0}function u(D,R,N){for(var X=D.length,Y=N,Z=0;Z<X;++Z)Y=R(Y,D[Z],Z);return Y}w.set=function(D){for(var R=[],N=1;N<arguments.length;N++)R[N-1]=arguments[N];if(D=D||(0,g.createNumbers)(R.length),R.length>D.length)throw new Error("args.length > target.length");return D instanceof Float64Array?D.set(R):T(R,D),D},w.every=p,w.reduce=u,w.itr=function(D){var R;return m(this,function(N){switch(N.label){case 0:R=0,N.label=1;case 1:return R<D.length?[4,D[R]]:[3,4];case 2:N.sent(),N.label=3;case 3:return++R,[3,1];case 4:return[2]}})};var f,c=function(D,R){return D+R*R};function a(D){return u(D,c,0)}w.magnitudeSquared=a,w.magnitude=function(D){var R=a(D);return Math.sqrt(R)},w.isNormalized=function(D,R){R===void 0&&(R=1e-5);var N=a(D);return Math.abs(N-1)<R};var n,s=function(D,R,N){return D+R*f[N]};w.dot=function(D,R){return E(D,R),f=R,u(D,s,0)};var r,i=function(D,R,N){return D+(R-n[N])*(R-n[N])};function l(D,R){return E(D,R),n=R,u(D,i,0)}w.distanceSquared=l,w.distance=function(D,R){return Math.sqrt(l(D,R))};var d,C,_=function(D,R){return D===r[R]};w.equals=function(D,R){return E(D,R),r=R,p(D,_)};var b=function(D,R){return Math.abs(D-d[R])<C};function E(D,R){if(D.length!==R.length)throw new Error("left.length !== right.length")}function F(D,R,N){var X=D.length;E(D,N=N||(0,g.createNumbers)(X));for(var Y=0;Y<X;++Y)N[Y]=R(D[Y],Y);return N}function Q(D,R,N,X){E(D,R),X&&E(D,X);var Y=D.length;X=X||(0,g.createNumbers)(Y);for(var Z=0;Z<Y;++Z)X[Z]=N(D[Z],R[Z]);return X}w.equalsEpsilon=function(D,R,N){return N===void 0&&(N=0),E(D,R),d=R,C=N,p(D,b)},w.op1=F,w.op2=Q;var U=function(D){return D};function T(D,R){return F(D,U,R)}w.clone=T;var S=0,P=function(D,R){return D*S};function I(D,R,N){return S=R,F(D,P,N)}w.multiplyByScalar=I,w.normalize=function(D,R,N){N===void 0&&(N=0);var X=a(D);if(!(X<=N))return I(D,1/Math.sqrt(X),R)},w.negate=function(D,R){return I(D,-1,R)};var M=function(D){return Math.abs(D)};w.abs=function(D,R){return F(D,M,R)};var K=function(D){return D-Math.floor(D)};w.fract=function(D,R){return F(D,K,R)};var W=function(D,R){return D-R};w.subtract=function(D,R,N){return Q(D,R,W,N)};var L=function(D,R){return D+R};w.add=function(D,R,N){return Q(D,R,L,N)};var O=function(D,R){return D*R};w.multiply=function(D,R,N){return Q(D,R,O,N)};var H,k=function(D,R){return D/R};w.divide=function(D,R,N){return Q(D,R,k,N)};var G=function(D,R){return D*(1-H)+R*H};w.lerp=function(D,R,N,X){return H=N,Q(D,R,G,X)}})(A.Vector||(A.Vector={}))},9910:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.destroyScalableArray=A.createScalableArray=void 0;var m=h(1085),g=function(){function u(){this._array=[]}return Object.defineProperty(u.prototype,"array",{get:function(){return this._array},enumerable:!1,configurable:!0}),u}(),w=new m.ObjPool(function(){return new g}),p=new WeakMap;A.createScalableArray=function(){var u=w.create();return p.set(u.array,u),u.array},A.destroyScalableArray=function(u){var f=p.get(u);if(!f)throw console.warn("!obj"),new Error("!obj");w.destroy(f)}},9928:(B,A,h)=>{function m(g,w,p,u,f){this._format=g,this._width=w,this._height=p,this._buffer=u,this._mipLevels=f}h.r(A),h.d(A,{CompressedTextureBuffer:()=>m}),Object.defineProperties(m.prototype,{internalFormat:{get:function(){return this._format}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},bufferView:{get:function(){return this._buffer}},mipLevels:{get:function(){return this._mipLevels}}}),m.clone=function(g){if(g)return new m(g._format,g._width,g._height,g._buffer,g._mipLevels)},m.prototype.clone=function(){return m.clone(this)}},9970:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.nodeBufferToUint8Array=void 0,A.nodeBufferToUint8Array=function(h){return new Uint8Array(h.buffer,h.byteOffset,h.byteLength)}},9972:function(B,A,h){var m=this&&this.__read||function(a,n){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,i,l=s.call(a),d=[];try{for(;(n===void 0||n-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(C){i={error:C}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return d},g=this&&this.__spreadArray||function(a,n,s){if(s||arguments.length===2)for(var r,i=0,l=n.length;i<l;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return a.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(A,"__esModule",{value:!0}),A.createFetchingWithStartValues=A.createFetching=A.cancelableFetch=A.cancelableFetchWithProgress=void 0;var w=h(5726),p=h(9651),u=h(921);function f(a){for(var n=[],s=1;s<arguments.length;s++)n[s-1]=arguments[s];var r=new AbortController,i=r.signal,l=m(n,2),d=l[0],C=l[1];if(C!=null&&C.signal)throw console.error("init?.signal"),new Error("init?.signal");(C=C||{}).signal&&console.warn("revocableFetch error: init.signal would be override!"),C.signal=i;var _=!1,b=fetch(d,C);return a&&(b=b.then(function(E){if(!E.ok)return E;if(!E.body)throw Error("ReadableStream not yet supported in this browser.");var F=E.headers.get("content-length");F||console.warn("response.headers.get('content-length') is undefined... cannot get contentLength!");var Q=F?parseInt(F,10):0,U=0;return new Response(new ReadableStream({start:function(T){if(!E.body)throw new Error("!response.body");var S=E.body.getReader();(function P(){S.read().then(function(I){var M=I.done,K=I.value;if(M)T.close();else{if(!K)throw new Error("!value");if(!a)throw new Error("!progressFunc");U+=K.byteLength,a(U,Q),T.enqueue(K),P()}}).catch(function(I){T.error(I)})})()}}),{status:E.status,statusText:E.statusText,headers:E.headers})}).catch(function(E){throw _?(E instanceof Error&&E.code!==20&&console.error("error.code !== 20"),console.log("fetching cancelled!"),new w.CancelError("fetching cancelled! error: ".concat(E))):(E instanceof Error&&E.code===20&&console.error("error.code === 20"),E)})),(0,p.setPromiseCancel)(b,function(){_=!0,r.abort()}),b}function c(){for(var a=[],n=0;n<arguments.length;n++)a[n]=arguments[n];return f.apply(void 0,g([void 0],m(a),!1))}A.cancelableFetchWithProgress=function(a){for(var n=[],s=1;s<arguments.length;s++)n[s-1]=arguments[s];return f.apply(void 0,g([a],m(n),!1))},A.cancelableFetch=c,A.createFetching=function(){return(0,u.createProcessingFromPromiseCreateFunc)(c)},A.createFetchingWithStartValues=function(){for(var a=[],n=0;n<arguments.length;n++)a[n]=arguments[n];return u.createProcessingFromPromiseCreateFuncWithStartValues.apply(void 0,g([c],m(a),!1))}},9986:function(B,A,h){var m,g=this&&this.__extends||(m=function(f,c){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])},m(f,c)},function(f,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function a(){this.constructor=f}m(f,c),f.prototype=c===null?Object.create(c):(a.prototype=c.prototype,new a)}),w=this&&this.__read||function(f,c){var a=typeof Symbol=="function"&&f[Symbol.iterator];if(!a)return f;var n,s,r=a.call(f),i=[];try{for(;(c===void 0||c-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(l){s={error:l}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}}return i};Object.defineProperty(A,"__esModule",{value:!0}),A.PosFloatDiv=void 0;var p=h(7372),u=function(f){function c(){var a=f.call(this)||this;a._originOffsetX=0,a._originOffsetY=0,a._originRatioX=.5,a._originRatioY=1,a._divChanged=new p.Event;var n=document.createElement("div");n.style.cssText="width: 0px; height: 0px; position: absolute; opacity: 1.0; visibility: visible;";var s=document.createElement("div");s.style.cssText="position: absolute; left: ".concat(-a._originOffsetX,"px; top: ").concat(-a._originOffsetY,"px; transform: translateX(-").concat(100*a._originRatioX,"%) translateY(-").concat(100*a._originRatioY,"%); margin: 0; padding: 0; pointer-events: none;");var r=document.createElement("div");a._contentDiv=r,s.appendChild(r),n.appendChild(s);var i=function(l){l.stopPropagation()};return n.addEventListener("pointermove",i),n.addEventListener("pointerdown",i),n.addEventListener("pointerup",i),a.dispose(function(){n.removeEventListener("pointermove",i),n.removeEventListener("pointerdown",i),n.removeEventListener("pointerup",i)}),a._div=n,a.dispose(a._divChanged.disposableOn(function(){s.style.left="".concat(-a._originOffsetX,"px"),s.style.top="".concat(-a._originOffsetY,"px"),s.style.transform="translateX(-".concat(100*a._originRatioX,"%) translateY(-").concat(100*a._originRatioY,"%)")})),a.dispose(a.winPosChanged.disposableOn(function(l){var d=w(l,2),C=d[0],_=d[1];a._div.style.left="".concat(C,"px"),a._div.style.top="".concat(_,"px")})),a.dispose(a.opacityChanged.disposableOn(function(l){a._div.style.opacity="".concat(l)})),a.dispose(a.showChanged.disposableOn(function(l){a._div.style.visibility=l?"visible":"hidden"})),a}return g(c,f),Object.defineProperty(c.prototype,"contentDiv",{get:function(){return this._contentDiv},enumerable:!1,configurable:!0}),c.prototype.reset=function(){},Object.defineProperty(c.prototype,"originOffsetX",{get:function(){return this._originOffsetX},set:function(a){this._originOffsetX!==a&&(this._originOffsetX=a,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"originOffsetY",{get:function(){return this._originOffsetY},set:function(a){this._originOffsetY!==a&&(this._originOffsetY=a,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"originRatioX",{get:function(){return this._originRatioX},set:function(a){this._originRatioX!==a&&(this._originRatioX=a,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"originRatioY",{get:function(){return this._originRatioY},set:function(a){this._originRatioY!==a&&(this._originRatioY=a,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"element",{get:function(){return this._div},enumerable:!1,configurable:!0}),c}(h(7324).FloatDiv);A.PosFloatDiv=u}},o={};function y(B){var A=o[B];if(A!==void 0)return A.exports;var h=o[B]={exports:{}};return t[B].call(h.exports,h,h.exports,y),h.exports}return y.n=B=>{var A=B&&B.__esModule?()=>B.default:()=>B;return y.d(A,{a:A}),A},y.d=(B,A)=>{for(var h in A)y.o(A,h)&&!y.o(B,h)&&Object.defineProperty(B,h,{enumerable:!0,get:A[h]})},y.o=(B,A)=>Object.prototype.hasOwnProperty.call(B,A),y.r=B=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(B,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(B,"__esModule",{value:!0})},y(4221)})())}(rt)),rt.exports}var V=Ku();const Nu={...j.ESViewer.defaults,geoReferenceOrigin:void 0,keepWorldOriginNearCamera:!1,useCache:!0,widgetInteractionDistance:200,memReportInterval:10,sceneControlled:!0,brightness:0,emissiveIntensity:1,statusUpdateInterval:.5,baseUrl:window.location.href??""},Ss=()=>({...j.ESViewer.createCommonProps(),apiKey:"",apiUrl:"",secretKey:"",speechVoiceMode:"",geoReferenceOrigin:V.reactArrayWithUndefined(void 0),keepWorldOriginNearCamera:void 0,useCache:void 0,widgetInteractionDistance:void 0,memReportInterval:void 0,sceneControlled:void 0,brightness:void 0,emissiveIntensity:void 0,statusUpdateInterval:void 0,baseUrl:void 0});function VA(){const v=Ss(),e=[];return Object.keys(v).forEach(t=>{e.push(t)}),e}function Zn(v){const{defaults:e}=it,t=VA(),o={};return t.forEach(y=>{o[y]=v[y]??e[y]}),o}const Ht=async(v,e,t,o,y,B="default")=>{const A=await v.callUeFunc({f:"flyTo",p:{id:e,duration:t,flyToParam:o,position:y,flyMode:B}});if(A.error){console.error(A.error);return}return A.re},qn=async(v,e)=>{const t=await v.callUeFunc({f:"destroy",p:{id:e}});return t.error&&console.error(t.error),t},Lt=(v,e)=>{v.callUeFunc({f:"calcFlyToParam",p:{id:e}}).then(t=>{t.error&&console.error("calcFlyToParam:",t.error)}).catch(t=>{console.error("calcFlyToParam:",t)})},Us=(v,e)=>{v.callUeFunc({f:"refreshTileset",p:{id:e}}).then(t=>{t.error&&console.error("refreshTileset:",t.error)}).catch(t=>{console.error("refreshTileset:",t)})},tr=async(v,e,t,o,y,B="default")=>{const A=await v.callUeFunc({f:"flyIn",p:{id:e,position:t,rotation:o,duration:y,flyMode:B}});if(A.error){console.error(A.error);return}return A.re},Ts=async(v,e)=>{if(!v){console.warn("DefaultCameraFlyIn: viewer is undefined");return}const t=await v.callUeFunc({f:"DefaultCameraFlyIn",p:{Duration:e??1}});if(t.error){console.error("DefaultCameraFlyIn:",t.error);return}return t},Is=async v=>{if(!v){console.warn("StartVoice:viewer is undefined");return}const e=await v.callUeFunc({f:"StartVoice",p:{}});if(e.error){console.error("StartVoice:",e.error);return}return e},Ps=async v=>{if(!v){console.warn("StopVoice:viewer is undefined");return}const e=await v.callUeFunc({f:"StopVoice",p:{}});if(e.error){console.error("StopVoice:",e.error);return}return e},xs=async(v,e)=>{if(!v){console.warn("mountPakFiles:viewer is undefined");return}const t=await v.callUeFunc({f:"MountPakFiles",p:{json:e}});if(t.error){console.error("mountPakFiles:",t.error);return}return t},Os=async v=>{if(!v){console.warn("generateMemReport:viewer is undefined");return}const e=await v.callUeFunc({f:"GenerateMemReport",p:{}});if(e.error){console.error("generateMemReport:",e.error);return}return e},ei=async(v,e)=>{const t=await v.callUeFunc({f:"resetWithCurrentCamera",p:{id:e}});return t.error&&console.error("resetWithCurrentCamera:",t.error),t},GA=(v,e,t,o,y)=>{v.callUeFunc({f:"smoothMoveWithRotation",p:{id:e,Destination:t,NewRotation:o,Time:y}}).then(B=>{B.error&&console.error("smoothMoveWithRotation:",B.error)}).catch(B=>{console.error("smoothMoveWithRotation:",B)})},jA=(v,e,t,o,y,B)=>{v.callUeFunc({f:"smoothMoveOnGround",p:{id:e,Lon:t,Lat:o,Ground:y,Time:B}}).then(A=>{A.error&&console.error("smoothMoveOnGround:",A.error)}).catch(A=>{console.error("smoothMoveOnGround:",A)})},WA=(v,e,t,o,y,B,A)=>{v.callUeFunc({f:"smoothMoveWithRotationOnGround",p:{id:e,NewRotation:t,Lon:o,Lat:y,Time:B,Ground:A}}).then(h=>{h.error&&console.error("smoothMoveWithRotationOnGround:",h.error)}).catch(h=>{console.error("smoothMoveWithRotationOnGround:",h)})},Ms=(v,e,t)=>{v.callUeFunc({f:"HighlightFeature",p:{id:e,HlId:t}}).then(o=>{o.error&&console.error("HighlightFeature:",o.error)}).catch(o=>{console.error("HighlightFeature:",o)})},Hs=(v,e,t,o)=>{v.callUeFunc({f:"HighlightFeatureAndFlyTo",p:{id:e,HlId:t,Duration:o}}).then(y=>{y.error&&console.error("HighlightFeatureAndFlyTo:",y.error)}).catch(y=>{console.error("HighlightFeatureAndFlyTo:",y)})},Ls=(v,e,t)=>{v.callUeFunc({f:"SetLayerVisible",p:{id:e,LayerJson:t}}).then(o=>{o.error&&console.error("SetLayerVisible:",o.error)}).catch(o=>{console.error("SetLayerVisible:",o)})},Ds=(v,e,t)=>{v.callUeFunc({f:"SetLayerColor",p:{id:e,LayerJson:t}}).then(o=>{o.error&&console.error("SetLayerColor:",o.error)}).catch(o=>{console.error("SetLayerColor:",o)})},zA=(v,e,t,o)=>{v.callUeFunc({f:"smoothMove",p:{id:e,Destination:t,Time:o}}).then(y=>{y.error&&console.error("smoothMove:",y.error)}).catch(y=>{console.error("smoothMove:",y)})},ti=async(v,e,t,o)=>{const y=await v.callUeFunc({f:"callFunction",p:{id:e,fn:t,p:o}});return y.error&&(console.error("callFunction:",y.error),console.error(`id: ${e} fn: ${t} param: ${o}`)),y.re??void 0},Rs=(v,e,t,o)=>{v.callUeFunc({f:"SetNodePosition",p:{id:e,NodeName:t,NodePosition:o}}).then(y=>{y.error&&console.error("SetNodePosition:",y.error)}).catch(y=>{console.error("SetNodePosition:",y)})},ks=(v,e,t,o)=>{v.callUeFunc({f:"SetNodeRotation",p:{id:e,NodeName:t,NodeRotation:o}}).then(y=>{y.error&&console.error("SetNodeRotation:",y.error)}).catch(y=>{console.error("SetNodeRotation:",y)})},Ks=(v,e,t,o)=>{v.callUeFunc({f:"SetNodeScale",p:{id:e,NodeName:t,NodeScale:o}}).then(y=>{y.error&&console.error("SetNodeScale:",y.error)}).catch(y=>{console.error("SetNodeScale:",y)})},At=async(v,e)=>{const t=await v.callUeFunc({f:"ChangeNavigationMode",p:e});if(t.error){console.error("ChangeNavigationMode:",t.error);return}return t},Ns=async(v,e)=>{const t=await v.callUeFunc({f:"setGlobalProperty",p:e});if(t.error){console.error("setGlobalProperty:",t.error);return}return t},Vs=async v=>{const e=await v.callUeFunc({f:"Quit",p:void 0});if(e.error){console.error("Quit:",e.error);return}return e},Gs=async(v,e,t,o)=>{console.log("pickCallFunc",e,t,o);const y=await v.callUeFunc({f:"pick",p:{screenPosition:e,parentInfo:o}});if(!y.re&&(y.error||y.error=="")){console.error("pick:",y.error==""?"未获取到结果":y.error);return}let B=y.re.id,A;const h=B?j.ESSceneObject.getSceneObject(B):void 0;return A=new j.ESJPickedResult(y.re,h,y.re.features,y.re.add,t,e),h&&Reflect.has(h,"allowPicking")&&Reflect.has(h,"pickedEvent")&&(h.allowPicking??!1)&&h.pickedEvent.emit(A),h&&Reflect.has(h,"allowPicking")&&!h.allowPicking?new j.ESJPickedResult:A},js=async(v,e)=>{const t=await v.callUeFunc({f:"pickPosition",p:{screenPosition:e}});if(!t.re&&(t.error||t.error=="")){console.error("pickPosition",t.error==""?"未获取到结果":t.error);return}const{position:o}=t.re;return o},Ws=async(v,e,t,o="ECC_Visibility")=>{const y=await v.callUeFunc({f:"GetHeightByLonLat",p:{Lon:e,Lat:t,Channel:o}});if(y.error){console.warn(`GetHeightByLonLat:${y.error}`);return}return y.re},zs=async(v,e,t="ECC_Visibility")=>{const o=await v.callUeFunc({f:"GetHeightsByLonLats",p:{LonLats:e,Channel:t}});if(o.error){console.warn(`GetHeightsByLonLats:${o.error}`);return}o.re.heights.includes(null)&&console.warn("注意! GetHeightsByLonLats: 存在高度为null的点. there are points with a height of null");try{return o.re.heights}catch{return}},Js=async(v,e=64,t=64)=>{const o=await v.callUeFunc({f:"capture",p:{resx:e,resy:t}});if(o.error){console.warn(o.error);return}return o.re.image},Xs=async(v,e,t=[64,64])=>{const o=await v.callUeFunc({f:"partialCapture",p:{startPos:e,size:t}});if(o.error){console.warn(o.error);return}return o.re.image},Ys=async(v,e)=>{const t=await v.callUeFunc({f:"LonLatAltToScreenPosition",p:{LonLatAlt:e}});return t.error&&console.warn(t.error),t.re},$s=async(v,e)=>{const t=await v.callUeFunc({f:"UEPositionToLonLatAlt",p:{UEPosition:e}});if(t.error){console.warn(t.error);return}return[...t.re.LonLatAlt]},Zs=async(v,e)=>{const t=await v.callUeFunc({f:"GetAllSocketNamesByActorTag",p:{ActorTag:e}});if(t.error){console.warn(t.error);return}return[...t.re.socketNames]},qs=async v=>{const e=await v.callUeFunc({f:"GetVersion",p:void 0});if(e.error){console.warn("GetVersion:",e.error);return}return e.re.version},ea=async(v,e)=>{const t=await v.callUeFunc({f:"GetBoundSphere",p:{id:e}});if(t.error){console.warn(t.error);return}return t.re},ta=async(v,e)=>{const t=await v.callUeFunc({f:"GetBoundSphereWithChildren",p:{id:e}});if(t.error){console.warn(`GetBoundSphereWithChildren:${t.error}`);return}return t.re},ra=async(v,e)=>{const t=await v.callUeFunc({f:"GetStrokeMaterialParamInfo",p:{id:e}});if(t.error){console.warn(`GetStrokeMaterialParamInfo:${t.error}`);return}return t.re},Aa=async(v,e)=>{const t=await v.callUeFunc({f:"GetFillMaterialParamInfo",p:{id:e}});if(t.error){console.warn(`GetFillMaterialParamInfo:${t.error}`);return}return t.re},na=async(v,e)=>{const t=await v.callUeFunc({f:"getGlobalProperty",p:{props:e}});if(t.error){console.warn(`getGlobalProperty:${t.error}`);return}return t.re},ia=async(v,e)=>{const t=await v.callUeFunc({f:"GetObjectByInfo",p:{info:e}});if(t.error){console.warn(`GetObjectByInfo:${t.error}`);return}return t.re},oa=async(v,e,t)=>await v.callUeFunc({f:"BindActorByTag",p:{ID:e,ActorTag:t}}),sa=async v=>await v.callUeFunc({f:"RestoreOriginalScene",p:void 0}),aa=async(v,e)=>await v.callUeFunc({f:"UnBindActorByID",p:{ID:e}}),ca=async(v,e)=>await v.callUeFunc({f:"UnBindActorByTag",p:{ActorTag:e}}),la=async(v,e,t)=>await v.callUeFunc({f:"CreateActorByClass",p:{ID:e,ActorClass:t}}),ua=async function(v,e,t){return await v.callUeFunc({f:"Bind3DTilesetByTag",p:{ID:e,ActorTag:t}})},da=async function(v,e){return await v.callUeFunc({f:"UnBind3DTilesetByTag",p:{ActorTag:e}})},fa=async function(v,e){return await v.callUeFunc({f:"UnBind3DTilesetById",p:{ID:e}})},ha=async function(v,e,t,o){return await v.callUeFunc({f:"BindImageryByTag",p:{ID:e,ActorTag:t,ComponentTag:o}})},pa=async function(v,e,t){return await v.callUeFunc({f:"UnBindImageryByTag",p:{ActorTag:e,ComponentTag:t}})},ga=async function(v,e){return await v.callUeFunc({f:"UnBindImageryById",p:{ID:e}})},va=async function(v,e,t,o){return await v.callUeFunc({f:"GetIdByComponentNameAndHitItem",p:{id:e,ComponentName:t,HitItem:o}})},ya=async function(v,e="ECC_Visibility"){return await v.callUeFunc({f:"GetCameraRelativeHeight",p:{Channel:e}})},ma=async function(v,e,t,o){const y=await v.callUeFunc({f:"SaveStringToFile",p:{String:e,Path:t??"undefine",File:o??"data.txt"}});return y.error!==""&&console.warn("SaveStringToFile: ",y.error),y},wa=async function(v,e,t=!0){const o=await v.callUeFunc({f:"HighlightActorByTag",p:{ActorTag:e,Highlight:t}});return o.error!==""&&console.warn("HighlightActorByTag: ",o.error),o},Ba=async function(v,e){const t=await v.callUeFunc({f:"SendCustomMessage",p:{Message:e}});return t.error!==""&&console.warn("SendCustomMessage: ",t.error),t},Ca=async function(v){const e=await v.callUeFunc({f:"GetStatus",p:void 0});if(e.error){console.warn(`GetStatus:${e.error}`);return}return e.re},ba=async(v,e,t,o,y=!0)=>{const B=await v.callUeFunc({f:"startEditing",p:{sceneObjectID:e,editingID:t,modes:o,useKeyToSwitch:y}});if(B.error){console.error("startEditing:",B.error);return}return B},_a=async v=>{const e=await v.callUeFunc({f:"stopEditing",p:void 0});if(e.error){console.error("stopEditing:",e.error);return}return e},Ea=async(v,e,t)=>{const o=await v.callUeFunc({f:"moveObjects",p:{sceneObjectIDs:e,editingID:t}});if(o.error){console.error("moveObjects:",o.error);return}return o},Fa=async v=>{const e=await v.callUeFunc({f:"GetTilesetMaterialIDList",p:void 0});if(e.error){console.error("GetTilesetMaterialIDList:",e.error);return}return e.re.materialIDList};class rr extends V.Destroyable{}var ri={exports:{}},Qa;function Vu(){return Qa||(Qa=1,function(v){const e={};e.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},e.localCName=e.generateIdentifier(),e.splitLines=function(t){return t.trim().split(`
|
|
229
|
-
`).map(o=>o.trim())},e.splitSections=function(t){return t.split(`
|
|
230
|
-
m=`).map((y,B)=>(B>0?"m="+y:y).trim()+`\r
|
|
231
|
-
`)},e.getDescription=function(t){const o=e.splitSections(t);return o&&o[0]},e.getMediaSections=function(t){const o=e.splitSections(t);return o.shift(),o},e.matchPrefix=function(t,o){return e.splitLines(t).filter(y=>y.indexOf(o)===0)},e.parseCandidate=function(t){let o;t.indexOf("a=candidate:")===0?o=t.substring(12).split(" "):o=t.substring(10).split(" ");const y={foundation:o[0],component:{1:"rtp",2:"rtcp"}[o[1]]||o[1],protocol:o[2].toLowerCase(),priority:parseInt(o[3],10),ip:o[4],address:o[4],port:parseInt(o[5],10),type:o[7]};for(let B=8;B<o.length;B+=2)switch(o[B]){case"raddr":y.relatedAddress=o[B+1];break;case"rport":y.relatedPort=parseInt(o[B+1],10);break;case"tcptype":y.tcpType=o[B+1];break;case"ufrag":y.ufrag=o[B+1],y.usernameFragment=o[B+1];break;default:y[o[B]]===void 0&&(y[o[B]]=o[B+1]);break}return y},e.writeCandidate=function(t){const o=[];o.push(t.foundation);const y=t.component;y==="rtp"?o.push(1):y==="rtcp"?o.push(2):o.push(y),o.push(t.protocol.toUpperCase()),o.push(t.priority),o.push(t.address||t.ip),o.push(t.port);const B=t.type;return o.push("typ"),o.push(B),B!=="host"&&t.relatedAddress&&t.relatedPort&&(o.push("raddr"),o.push(t.relatedAddress),o.push("rport"),o.push(t.relatedPort)),t.tcpType&&t.protocol.toLowerCase()==="tcp"&&(o.push("tcptype"),o.push(t.tcpType)),(t.usernameFragment||t.ufrag)&&(o.push("ufrag"),o.push(t.usernameFragment||t.ufrag)),"candidate:"+o.join(" ")},e.parseIceOptions=function(t){return t.substring(14).split(" ")},e.parseRtpMap=function(t){let o=t.substring(9).split(" ");const y={payloadType:parseInt(o.shift(),10)};return o=o[0].split("/"),y.name=o[0],y.clockRate=parseInt(o[1],10),y.channels=o.length===3?parseInt(o[2],10):1,y.numChannels=y.channels,y},e.writeRtpMap=function(t){let o=t.payloadType;t.preferredPayloadType!==void 0&&(o=t.preferredPayloadType);const y=t.channels||t.numChannels||1;return"a=rtpmap:"+o+" "+t.name+"/"+t.clockRate+(y!==1?"/"+y:"")+`\r
|
|
232
|
-
`},e.parseExtmap=function(t){const o=t.substring(9).split(" ");return{id:parseInt(o[0],10),direction:o[0].indexOf("/")>0?o[0].split("/")[1]:"sendrecv",uri:o[1],attributes:o.slice(2).join(" ")}},e.writeExtmap=function(t){return"a=extmap:"+(t.id||t.preferredId)+(t.direction&&t.direction!=="sendrecv"?"/"+t.direction:"")+" "+t.uri+(t.attributes?" "+t.attributes:"")+`\r
|
|
233
|
-
`},e.parseFmtp=function(t){const o={};let y;const B=t.substring(t.indexOf(" ")+1).split(";");for(let A=0;A<B.length;A++)y=B[A].trim().split("="),o[y[0].trim()]=y[1];return o},e.writeFmtp=function(t){let o="",y=t.payloadType;if(t.preferredPayloadType!==void 0&&(y=t.preferredPayloadType),t.parameters&&Object.keys(t.parameters).length){const B=[];Object.keys(t.parameters).forEach(A=>{t.parameters[A]!==void 0?B.push(A+"="+t.parameters[A]):B.push(A)}),o+="a=fmtp:"+y+" "+B.join(";")+`\r
|
|
234
|
-
`}return o},e.parseRtcpFb=function(t){const o=t.substring(t.indexOf(" ")+1).split(" ");return{type:o.shift(),parameter:o.join(" ")}},e.writeRtcpFb=function(t){let o="",y=t.payloadType;return t.preferredPayloadType!==void 0&&(y=t.preferredPayloadType),t.rtcpFeedback&&t.rtcpFeedback.length&&t.rtcpFeedback.forEach(B=>{o+="a=rtcp-fb:"+y+" "+B.type+(B.parameter&&B.parameter.length?" "+B.parameter:"")+`\r
|
|
235
|
-
`}),o},e.parseSsrcMedia=function(t){const o=t.indexOf(" "),y={ssrc:parseInt(t.substring(7,o),10)},B=t.indexOf(":",o);return B>-1?(y.attribute=t.substring(o+1,B),y.value=t.substring(B+1)):y.attribute=t.substring(o+1),y},e.parseSsrcGroup=function(t){const o=t.substring(13).split(" ");return{semantics:o.shift(),ssrcs:o.map(y=>parseInt(y,10))}},e.getMid=function(t){const o=e.matchPrefix(t,"a=mid:")[0];if(o)return o.substring(6)},e.parseFingerprint=function(t){const o=t.substring(14).split(" ");return{algorithm:o[0].toLowerCase(),value:o[1].toUpperCase()}},e.getDtlsParameters=function(t,o){return{role:"auto",fingerprints:e.matchPrefix(t+o,"a=fingerprint:").map(e.parseFingerprint)}},e.writeDtlsParameters=function(t,o){let y="a=setup:"+o+`\r
|
|
236
|
-
`;return t.fingerprints.forEach(B=>{y+="a=fingerprint:"+B.algorithm+" "+B.value+`\r
|
|
237
|
-
`}),y},e.parseCryptoLine=function(t){const o=t.substring(9).split(" ");return{tag:parseInt(o[0],10),cryptoSuite:o[1],keyParams:o[2],sessionParams:o.slice(3)}},e.writeCryptoLine=function(t){return"a=crypto:"+t.tag+" "+t.cryptoSuite+" "+(typeof t.keyParams=="object"?e.writeCryptoKeyParams(t.keyParams):t.keyParams)+(t.sessionParams?" "+t.sessionParams.join(" "):"")+`\r
|
|
238
|
-
`},e.parseCryptoKeyParams=function(t){if(t.indexOf("inline:")!==0)return null;const o=t.substring(7).split("|");return{keyMethod:"inline",keySalt:o[0],lifeTime:o[1],mkiValue:o[2]?o[2].split(":")[0]:void 0,mkiLength:o[2]?o[2].split(":")[1]:void 0}},e.writeCryptoKeyParams=function(t){return t.keyMethod+":"+t.keySalt+(t.lifeTime?"|"+t.lifeTime:"")+(t.mkiValue&&t.mkiLength?"|"+t.mkiValue+":"+t.mkiLength:"")},e.getCryptoParameters=function(t,o){return e.matchPrefix(t+o,"a=crypto:").map(e.parseCryptoLine)},e.getIceParameters=function(t,o){const y=e.matchPrefix(t+o,"a=ice-ufrag:")[0],B=e.matchPrefix(t+o,"a=ice-pwd:")[0];return y&&B?{usernameFragment:y.substring(12),password:B.substring(10)}:null},e.writeIceParameters=function(t){let o="a=ice-ufrag:"+t.usernameFragment+`\r
|
|
239
|
-
a=ice-pwd:`+t.password+`\r
|
|
240
|
-
`;return t.iceLite&&(o+=`a=ice-lite\r
|
|
241
|
-
`),o},e.parseRtpParameters=function(t){const o={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},B=e.splitLines(t)[0].split(" ");o.profile=B[2];for(let h=3;h<B.length;h++){const m=B[h],g=e.matchPrefix(t,"a=rtpmap:"+m+" ")[0];if(g){const w=e.parseRtpMap(g),p=e.matchPrefix(t,"a=fmtp:"+m+" ");switch(w.parameters=p.length?e.parseFmtp(p[0]):{},w.rtcpFeedback=e.matchPrefix(t,"a=rtcp-fb:"+m+" ").map(e.parseRtcpFb),o.codecs.push(w),w.name.toUpperCase()){case"RED":case"ULPFEC":o.fecMechanisms.push(w.name.toUpperCase());break}}}e.matchPrefix(t,"a=extmap:").forEach(h=>{o.headerExtensions.push(e.parseExtmap(h))});const A=e.matchPrefix(t,"a=rtcp-fb:* ").map(e.parseRtcpFb);return o.codecs.forEach(h=>{A.forEach(m=>{h.rtcpFeedback.find(w=>w.type===m.type&&w.parameter===m.parameter)||h.rtcpFeedback.push(m)})}),o},e.writeRtpDescription=function(t,o){let y="";y+="m="+t+" ",y+=o.codecs.length>0?"9":"0",y+=" "+(o.profile||"UDP/TLS/RTP/SAVPF")+" ",y+=o.codecs.map(A=>A.preferredPayloadType!==void 0?A.preferredPayloadType:A.payloadType).join(" ")+`\r
|
|
242
|
-
`,y+=`c=IN IP4 0.0.0.0\r
|
|
243
|
-
`,y+=`a=rtcp:9 IN IP4 0.0.0.0\r
|
|
244
|
-
`,o.codecs.forEach(A=>{y+=e.writeRtpMap(A),y+=e.writeFmtp(A),y+=e.writeRtcpFb(A)});let B=0;return o.codecs.forEach(A=>{A.maxptime>B&&(B=A.maxptime)}),B>0&&(y+="a=maxptime:"+B+`\r
|
|
245
|
-
`),o.headerExtensions&&o.headerExtensions.forEach(A=>{y+=e.writeExtmap(A)}),y},e.parseRtpEncodingParameters=function(t){const o=[],y=e.parseRtpParameters(t),B=y.fecMechanisms.indexOf("RED")!==-1,A=y.fecMechanisms.indexOf("ULPFEC")!==-1,h=e.matchPrefix(t,"a=ssrc:").map(u=>e.parseSsrcMedia(u)).filter(u=>u.attribute==="cname"),m=h.length>0&&h[0].ssrc;let g;const w=e.matchPrefix(t,"a=ssrc-group:FID").map(u=>u.substring(17).split(" ").map(c=>parseInt(c,10)));w.length>0&&w[0].length>1&&w[0][0]===m&&(g=w[0][1]),y.codecs.forEach(u=>{if(u.name.toUpperCase()==="RTX"&&u.parameters.apt){let f={ssrc:m,codecPayloadType:parseInt(u.parameters.apt,10)};m&&g&&(f.rtx={ssrc:g}),o.push(f),B&&(f=JSON.parse(JSON.stringify(f)),f.fec={ssrc:m,mechanism:A?"red+ulpfec":"red"},o.push(f))}}),o.length===0&&m&&o.push({ssrc:m});let p=e.matchPrefix(t,"b=");return p.length&&(p[0].indexOf("b=TIAS:")===0?p=parseInt(p[0].substring(7),10):p[0].indexOf("b=AS:")===0?p=parseInt(p[0].substring(5),10)*1e3*.95-16e3:p=void 0,o.forEach(u=>{u.maxBitrate=p})),o},e.parseRtcpParameters=function(t){const o={},y=e.matchPrefix(t,"a=ssrc:").map(h=>e.parseSsrcMedia(h)).filter(h=>h.attribute==="cname")[0];y&&(o.cname=y.value,o.ssrc=y.ssrc);const B=e.matchPrefix(t,"a=rtcp-rsize");o.reducedSize=B.length>0,o.compound=B.length===0;const A=e.matchPrefix(t,"a=rtcp-mux");return o.mux=A.length>0,o},e.writeRtcpParameters=function(t){let o="";return t.reducedSize&&(o+=`a=rtcp-rsize\r
|
|
246
|
-
`),t.mux&&(o+=`a=rtcp-mux\r
|
|
247
|
-
`),t.ssrc!==void 0&&t.cname&&(o+="a=ssrc:"+t.ssrc+" cname:"+t.cname+`\r
|
|
248
|
-
`),o},e.parseMsid=function(t){let o;const y=e.matchPrefix(t,"a=msid:");if(y.length===1)return o=y[0].substring(7).split(" "),{stream:o[0],track:o[1]};const B=e.matchPrefix(t,"a=ssrc:").map(A=>e.parseSsrcMedia(A)).filter(A=>A.attribute==="msid");if(B.length>0)return o=B[0].value.split(" "),{stream:o[0],track:o[1]}},e.parseSctpDescription=function(t){const o=e.parseMLine(t),y=e.matchPrefix(t,"a=max-message-size:");let B;y.length>0&&(B=parseInt(y[0].substring(19),10)),isNaN(B)&&(B=65536);const A=e.matchPrefix(t,"a=sctp-port:");if(A.length>0)return{port:parseInt(A[0].substring(12),10),protocol:o.fmt,maxMessageSize:B};const h=e.matchPrefix(t,"a=sctpmap:");if(h.length>0){const m=h[0].substring(10).split(" ");return{port:parseInt(m[0],10),protocol:m[1],maxMessageSize:B}}},e.writeSctpDescription=function(t,o){let y=[];return t.protocol!=="DTLS/SCTP"?y=["m="+t.kind+" 9 "+t.protocol+" "+o.protocol+`\r
|
|
1
|
+
var EarthSDK3_UE=function(v,p,w){"use strict";var Zw=Object.defineProperty;var qw=(v,p,w)=>p in v?Zw(v,p,{enumerable:!0,configurable:!0,writable:!0,value:w}):v[p]=w;var C=(v,p,w)=>qw(v,typeof p!="symbol"?p+"":p,w);const sd={...p.ESViewer.defaults,geoReferenceOrigin:void 0,keepWorldOriginNearCamera:!1,useCache:!0,widgetInteractionDistance:200,memReportInterval:10,sceneControlled:!0,brightness:0,emissiveIntensity:1,statusUpdateInterval:.5,baseUrl:window.location.href??""},Yi=()=>({...p.ESViewer.createCommonProps(),apiKey:"",apiUrl:"",secretKey:"",speechVoiceMode:"",geoReferenceOrigin:w.reactArrayWithUndefined(void 0),keepWorldOriginNearCamera:void 0,useCache:void 0,widgetInteractionDistance:void 0,memReportInterval:void 0,sceneControlled:void 0,brightness:void 0,emissiveIntensity:void 0,statusUpdateInterval:void 0,baseUrl:void 0});function wr(){const r=Yi(),A=[];return Object.keys(r).forEach(e=>{A.push(e)}),A}function Qn(r){const{defaults:A}=LA,e=wr(),t={};return e.forEach(n=>{t[n]=r[n]??A[n]}),t}const ge=async(r,A,e,t,n,s="default")=>{const i=await r.callUeFunc({f:"flyTo",p:{id:A,duration:e,flyToParam:t,position:n,flyMode:s}});if(i.error){console.error(i.error);return}return i.re},Un=async(r,A)=>{const e=await r.callUeFunc({f:"destroy",p:{id:A}});return e.error&&console.error(e.error),e},Be=(r,A)=>{r.callUeFunc({f:"calcFlyToParam",p:{id:A}}).then(e=>{e.error&&console.error("calcFlyToParam:",e.error)}).catch(e=>{console.error("calcFlyToParam:",e)})},$i=(r,A)=>{r.callUeFunc({f:"refreshTileset",p:{id:A}}).then(e=>{e.error&&console.error("refreshTileset:",e.error)}).catch(e=>{console.error("refreshTileset:",e)})},De=async(r,A,e,t,n,s="default")=>{const i=await r.callUeFunc({f:"flyIn",p:{id:A,position:e,rotation:t,duration:n,flyMode:s}});if(i.error){console.error(i.error);return}return i.re},Zi=async(r,A)=>{if(!r){console.warn("DefaultCameraFlyIn: viewer is undefined");return}const e=await r.callUeFunc({f:"DefaultCameraFlyIn",p:{Duration:A??1}});if(e.error){console.error("DefaultCameraFlyIn:",e.error);return}return e},qi=async r=>{if(!r){console.warn("StartVoice:viewer is undefined");return}const A=await r.callUeFunc({f:"StartVoice",p:{}});if(A.error){console.error("StartVoice:",A.error);return}return A},ji=async r=>{if(!r){console.warn("StopVoice:viewer is undefined");return}const A=await r.callUeFunc({f:"StopVoice",p:{}});if(A.error){console.error("StopVoice:",A.error);return}return A},Ao=async(r,A)=>{if(!r){console.warn("mountPakFiles:viewer is undefined");return}const e=await r.callUeFunc({f:"MountPakFiles",p:{json:A}});if(e.error){console.error("mountPakFiles:",e.error);return}return e},eo=async r=>{if(!r){console.warn("generateMemReport:viewer is undefined");return}const A=await r.callUeFunc({f:"GenerateMemReport",p:{}});if(A.error){console.error("generateMemReport:",A.error);return}return A},En=async(r,A)=>{const e=await r.callUeFunc({f:"resetWithCurrentCamera",p:{id:A}});return e.error&&console.error("resetWithCurrentCamera:",e.error),e},pr=(r,A,e,t,n)=>{r.callUeFunc({f:"smoothMoveWithRotation",p:{id:A,Destination:e,NewRotation:t,Time:n}}).then(s=>{s.error&&console.error("smoothMoveWithRotation:",s.error)}).catch(s=>{console.error("smoothMoveWithRotation:",s)})},Cr=(r,A,e,t,n,s)=>{r.callUeFunc({f:"smoothMoveOnGround",p:{id:A,Lon:e,Lat:t,Ground:n,Time:s}}).then(i=>{i.error&&console.error("smoothMoveOnGround:",i.error)}).catch(i=>{console.error("smoothMoveOnGround:",i)})},vr=(r,A,e,t,n,s,i)=>{r.callUeFunc({f:"smoothMoveWithRotationOnGround",p:{id:A,NewRotation:e,Lon:t,Lat:n,Time:s,Ground:i}}).then(o=>{o.error&&console.error("smoothMoveWithRotationOnGround:",o.error)}).catch(o=>{console.error("smoothMoveWithRotationOnGround:",o)})},to=(r,A,e)=>{r.callUeFunc({f:"HighlightFeature",p:{id:A,HlId:e}}).then(t=>{t.error&&console.error("HighlightFeature:",t.error)}).catch(t=>{console.error("HighlightFeature:",t)})},ro=(r,A,e,t)=>{r.callUeFunc({f:"HighlightFeatureAndFlyTo",p:{id:A,HlId:e,Duration:t}}).then(n=>{n.error&&console.error("HighlightFeatureAndFlyTo:",n.error)}).catch(n=>{console.error("HighlightFeatureAndFlyTo:",n)})},no=(r,A,e)=>{r.callUeFunc({f:"SetLayerVisible",p:{id:A,LayerJson:e}}).then(t=>{t.error&&console.error("SetLayerVisible:",t.error)}).catch(t=>{console.error("SetLayerVisible:",t)})},so=(r,A,e)=>{r.callUeFunc({f:"SetLayerColor",p:{id:A,LayerJson:e}}).then(t=>{t.error&&console.error("SetLayerColor:",t.error)}).catch(t=>{console.error("SetLayerColor:",t)})},mr=(r,A,e,t)=>{r.callUeFunc({f:"smoothMove",p:{id:A,Destination:e,Time:t}}).then(n=>{n.error&&console.error("smoothMove:",n.error)}).catch(n=>{console.error("smoothMove:",n)})},yn=async(r,A,e,t)=>{const n=await r.callUeFunc({f:"callFunction",p:{id:A,fn:e,p:t}});return n.error&&(console.error("callFunction:",n.error),console.error(`id: ${A} fn: ${e} param: ${t}`)),n.re??void 0},io=(r,A,e,t)=>{r.callUeFunc({f:"SetNodePosition",p:{id:A,NodeName:e,NodePosition:t}}).then(n=>{n.error&&console.error("SetNodePosition:",n.error)}).catch(n=>{console.error("SetNodePosition:",n)})},oo=(r,A,e,t)=>{r.callUeFunc({f:"SetNodeRotation",p:{id:A,NodeName:e,NodeRotation:t}}).then(n=>{n.error&&console.error("SetNodeRotation:",n.error)}).catch(n=>{console.error("SetNodeRotation:",n)})},ao=(r,A,e,t)=>{r.callUeFunc({f:"SetNodeScale",p:{id:A,NodeName:e,NodeScale:t}}).then(n=>{n.error&&console.error("SetNodeScale:",n.error)}).catch(n=>{console.error("SetNodeScale:",n)})},TA=async(r,A)=>{const e=await r.callUeFunc({f:"ChangeNavigationMode",p:A});if(e.error){console.error("ChangeNavigationMode:",e.error);return}return e},lo=async(r,A)=>{const e=await r.callUeFunc({f:"setGlobalProperty",p:A});if(e.error){console.error("setGlobalProperty:",e.error);return}return e},co=async r=>{const A=await r.callUeFunc({f:"Quit",p:void 0});if(A.error){console.error("Quit:",A.error);return}return A},uo=async(r,A,e,t)=>{console.log("pickCallFunc",A,e,t);const n=await r.callUeFunc({f:"pick",p:{screenPosition:A,parentInfo:t}});if(!n.re&&(n.error||n.error=="")){console.error("pick:",n.error==""?"未获取到结果":n.error);return}let s=n.re.id,i;const o=s?p.ESSceneObject.getSceneObject(s):void 0;return i=new p.ESJPickedResult(n.re,o,n.re.features,n.re.add,e,A),o&&Reflect.has(o,"allowPicking")&&Reflect.has(o,"pickedEvent")&&(o.allowPicking??!1)&&o.pickedEvent.emit(i),o&&Reflect.has(o,"allowPicking")&&!o.allowPicking?new p.ESJPickedResult:i},ho=async(r,A)=>{const e=await r.callUeFunc({f:"pickPosition",p:{screenPosition:A}});if(!e.re&&(e.error||e.error=="")){console.error("pickPosition",e.error==""?"未获取到结果":e.error);return}const{position:t}=e.re;return t},go=async(r,A,e,t="ECC_Visibility")=>{const n=await r.callUeFunc({f:"GetHeightByLonLat",p:{Lon:A,Lat:e,Channel:t}});if(n.error){console.warn(`GetHeightByLonLat:${n.error}`);return}return n.re},Bo=async(r,A,e="ECC_Visibility")=>{const t=await r.callUeFunc({f:"GetHeightsByLonLats",p:{LonLats:A,Channel:e}});if(t.error){console.warn(`GetHeightsByLonLats:${t.error}`);return}t.re.heights.includes(null)&&console.warn("注意! GetHeightsByLonLats: 存在高度为null的点. there are points with a height of null");try{return t.re.heights}catch{return}},fo=async(r,A=64,e=64)=>{const t=await r.callUeFunc({f:"capture",p:{resx:A,resy:e}});if(t.error){console.warn(t.error);return}return t.re.image},wo=async(r,A,e=[64,64])=>{const t=await r.callUeFunc({f:"partialCapture",p:{startPos:A,size:e}});if(t.error){console.warn(t.error);return}return t.re.image},po=async(r,A)=>{const e=await r.callUeFunc({f:"LonLatAltToScreenPosition",p:{LonLatAlt:A}});return e.error&&console.warn(e.error),e.re},Co=async(r,A)=>{const e=await r.callUeFunc({f:"UEPositionToLonLatAlt",p:{UEPosition:A}});if(e.error){console.warn(e.error);return}return[...e.re.LonLatAlt]},vo=async(r,A)=>{const e=await r.callUeFunc({f:"GetAllSocketNamesByActorTag",p:{ActorTag:A}});if(e.error){console.warn(e.error);return}return[...e.re.socketNames]},mo=async r=>{const A=await r.callUeFunc({f:"GetVersion",p:void 0});if(A.error){console.warn("GetVersion:",A.error);return}return A.re.version},Fo=async(r,A)=>{const e=await r.callUeFunc({f:"GetBoundSphere",p:{id:A}});if(e.error){console.warn(e.error);return}return e.re},Qo=async(r,A)=>{const e=await r.callUeFunc({f:"GetBoundSphereWithChildren",p:{id:A}});if(e.error){console.warn(`GetBoundSphereWithChildren:${e.error}`);return}return e.re},Uo=async(r,A)=>{const e=await r.callUeFunc({f:"GetStrokeMaterialParamInfo",p:{id:A}});if(e.error){console.warn(`GetStrokeMaterialParamInfo:${e.error}`);return}return e.re},Eo=async(r,A)=>{const e=await r.callUeFunc({f:"GetFillMaterialParamInfo",p:{id:A}});if(e.error){console.warn(`GetFillMaterialParamInfo:${e.error}`);return}return e.re},yo=async(r,A)=>{const e=await r.callUeFunc({f:"getGlobalProperty",p:{props:A}});if(e.error){console.warn(`getGlobalProperty:${e.error}`);return}return e.re},So=async(r,A)=>{const e=await r.callUeFunc({f:"GetObjectByInfo",p:{info:A}});if(e.error){console.warn(`GetObjectByInfo:${e.error}`);return}return e.re},Io=async(r,A,e)=>await r.callUeFunc({f:"BindActorByTag",p:{ID:A,ActorTag:e}}),To=async r=>await r.callUeFunc({f:"RestoreOriginalScene",p:void 0}),Ho=async(r,A)=>await r.callUeFunc({f:"UnBindActorByID",p:{ID:A}}),Lo=async(r,A)=>await r.callUeFunc({f:"UnBindActorByTag",p:{ActorTag:A}}),bo=async(r,A,e)=>await r.callUeFunc({f:"CreateActorByClass",p:{ID:A,ActorClass:e}}),Mo=async function(r,A,e){return await r.callUeFunc({f:"Bind3DTilesetByTag",p:{ID:A,ActorTag:e}})},Do=async function(r,A){return await r.callUeFunc({f:"UnBind3DTilesetByTag",p:{ActorTag:A}})},Ro=async function(r,A){return await r.callUeFunc({f:"UnBind3DTilesetById",p:{ID:A}})},Ko=async function(r,A,e,t){return await r.callUeFunc({f:"BindImageryByTag",p:{ID:A,ActorTag:e,ComponentTag:t}})},xo=async function(r,A,e){return await r.callUeFunc({f:"UnBindImageryByTag",p:{ActorTag:A,ComponentTag:e}})},Po=async function(r,A){return await r.callUeFunc({f:"UnBindImageryById",p:{ID:A}})},ko=async function(r,A,e,t){return await r.callUeFunc({f:"GetIdByComponentNameAndHitItem",p:{id:A,ComponentName:e,HitItem:t}})},Go=async function(r,A="ECC_Visibility"){return await r.callUeFunc({f:"GetCameraRelativeHeight",p:{Channel:A}})},No=async function(r,A,e,t){const n=await r.callUeFunc({f:"SaveStringToFile",p:{String:A,Path:e??"undefine",File:t??"data.txt"}});return n.error!==""&&console.warn("SaveStringToFile: ",n.error),n},_o=async function(r,A,e=!0){const t=await r.callUeFunc({f:"HighlightActorByTag",p:{ActorTag:A,Highlight:e}});return t.error!==""&&console.warn("HighlightActorByTag: ",t.error),t},Vo=async function(r,A){const e=await r.callUeFunc({f:"SendCustomMessage",p:{Message:A}});return e.error!==""&&console.warn("SendCustomMessage: ",e.error),e},Oo=async function(r){const A=await r.callUeFunc({f:"GetStatus",p:void 0});if(A.error){console.warn(`GetStatus:${A.error}`);return}return A.re},Wo=async(r,A,e,t,n=!0)=>{const s=await r.callUeFunc({f:"startEditing",p:{sceneObjectID:A,editingID:e,modes:t,useKeyToSwitch:n}});if(s.error){console.error("startEditing:",s.error);return}return s},Xo=async r=>{const A=await r.callUeFunc({f:"stopEditing",p:void 0});if(A.error){console.error("stopEditing:",A.error);return}return A},Jo=async(r,A,e)=>{const t=await r.callUeFunc({f:"moveObjects",p:{sceneObjectIDs:A,editingID:e}});if(t.error){console.error("moveObjects:",t.error);return}return t},zo=async r=>{const A=await r.callUeFunc({f:"GetTilesetMaterialIDList",p:void 0});if(A.error){console.error("GetTilesetMaterialIDList:",A.error);return}return A.re.materialIDList};class Re extends w.Destroyable{}var Sn={exports:{}},Yo;function id(){return Yo||(Yo=1,function(r){const A={};A.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},A.localCName=A.generateIdentifier(),A.splitLines=function(e){return e.trim().split(`
|
|
2
|
+
`).map(t=>t.trim())},A.splitSections=function(e){return e.split(`
|
|
3
|
+
m=`).map((n,s)=>(s>0?"m="+n:n).trim()+`\r
|
|
4
|
+
`)},A.getDescription=function(e){const t=A.splitSections(e);return t&&t[0]},A.getMediaSections=function(e){const t=A.splitSections(e);return t.shift(),t},A.matchPrefix=function(e,t){return A.splitLines(e).filter(n=>n.indexOf(t)===0)},A.parseCandidate=function(e){let t;e.indexOf("a=candidate:")===0?t=e.substring(12).split(" "):t=e.substring(10).split(" ");const n={foundation:t[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]};for(let s=8;s<t.length;s+=2)switch(t[s]){case"raddr":n.relatedAddress=t[s+1];break;case"rport":n.relatedPort=parseInt(t[s+1],10);break;case"tcptype":n.tcpType=t[s+1];break;case"ufrag":n.ufrag=t[s+1],n.usernameFragment=t[s+1];break;default:n[t[s]]===void 0&&(n[t[s]]=t[s+1]);break}return n},A.writeCandidate=function(e){const t=[];t.push(e.foundation);const n=e.component;n==="rtp"?t.push(1):n==="rtcp"?t.push(2):t.push(n),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);const s=e.type;return t.push("typ"),t.push(s),s!=="host"&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&e.protocol.toLowerCase()==="tcp"&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},A.parseIceOptions=function(e){return e.substring(14).split(" ")},A.parseRtpMap=function(e){let t=e.substring(9).split(" ");const n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.channels=t.length===3?parseInt(t[2],10):1,n.numChannels=n.channels,n},A.writeRtpMap=function(e){let t=e.payloadType;e.preferredPayloadType!==void 0&&(t=e.preferredPayloadType);const n=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(n!==1?"/"+n:"")+`\r
|
|
5
|
+
`},A.parseExtmap=function(e){const t=e.substring(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1],attributes:t.slice(2).join(" ")}},A.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&e.direction!=="sendrecv"?"/"+e.direction:"")+" "+e.uri+(e.attributes?" "+e.attributes:"")+`\r
|
|
6
|
+
`},A.parseFmtp=function(e){const t={};let n;const s=e.substring(e.indexOf(" ")+1).split(";");for(let i=0;i<s.length;i++)n=s[i].trim().split("="),t[n[0].trim()]=n[1];return t},A.writeFmtp=function(e){let t="",n=e.payloadType;if(e.preferredPayloadType!==void 0&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){const s=[];Object.keys(e.parameters).forEach(i=>{e.parameters[i]!==void 0?s.push(i+"="+e.parameters[i]):s.push(i)}),t+="a=fmtp:"+n+" "+s.join(";")+`\r
|
|
7
|
+
`}return t},A.parseRtcpFb=function(e){const t=e.substring(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},A.writeRtcpFb=function(e){let t="",n=e.payloadType;return e.preferredPayloadType!==void 0&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(s=>{t+="a=rtcp-fb:"+n+" "+s.type+(s.parameter&&s.parameter.length?" "+s.parameter:"")+`\r
|
|
8
|
+
`}),t},A.parseSsrcMedia=function(e){const t=e.indexOf(" "),n={ssrc:parseInt(e.substring(7,t),10)},s=e.indexOf(":",t);return s>-1?(n.attribute=e.substring(t+1,s),n.value=e.substring(s+1)):n.attribute=e.substring(t+1),n},A.parseSsrcGroup=function(e){const t=e.substring(13).split(" ");return{semantics:t.shift(),ssrcs:t.map(n=>parseInt(n,10))}},A.getMid=function(e){const t=A.matchPrefix(e,"a=mid:")[0];if(t)return t.substring(6)},A.parseFingerprint=function(e){const t=e.substring(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},A.getDtlsParameters=function(e,t){return{role:"auto",fingerprints:A.matchPrefix(e+t,"a=fingerprint:").map(A.parseFingerprint)}},A.writeDtlsParameters=function(e,t){let n="a=setup:"+t+`\r
|
|
9
|
+
`;return e.fingerprints.forEach(s=>{n+="a=fingerprint:"+s.algorithm+" "+s.value+`\r
|
|
10
|
+
`}),n},A.parseCryptoLine=function(e){const t=e.substring(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},A.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+(typeof e.keyParams=="object"?A.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+`\r
|
|
11
|
+
`},A.parseCryptoKeyParams=function(e){if(e.indexOf("inline:")!==0)return null;const t=e.substring(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},A.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},A.getCryptoParameters=function(e,t){return A.matchPrefix(e+t,"a=crypto:").map(A.parseCryptoLine)},A.getIceParameters=function(e,t){const n=A.matchPrefix(e+t,"a=ice-ufrag:")[0],s=A.matchPrefix(e+t,"a=ice-pwd:")[0];return n&&s?{usernameFragment:n.substring(12),password:s.substring(10)}:null},A.writeIceParameters=function(e){let t="a=ice-ufrag:"+e.usernameFragment+`\r
|
|
12
|
+
a=ice-pwd:`+e.password+`\r
|
|
13
|
+
`;return e.iceLite&&(t+=`a=ice-lite\r
|
|
14
|
+
`),t},A.parseRtpParameters=function(e){const t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},s=A.splitLines(e)[0].split(" ");t.profile=s[2];for(let o=3;o<s.length;o++){const a=s[o],l=A.matchPrefix(e,"a=rtpmap:"+a+" ")[0];if(l){const c=A.parseRtpMap(l),h=A.matchPrefix(e,"a=fmtp:"+a+" ");switch(c.parameters=h.length?A.parseFmtp(h[0]):{},c.rtcpFeedback=A.matchPrefix(e,"a=rtcp-fb:"+a+" ").map(A.parseRtcpFb),t.codecs.push(c),c.name.toUpperCase()){case"RED":case"ULPFEC":t.fecMechanisms.push(c.name.toUpperCase());break}}}A.matchPrefix(e,"a=extmap:").forEach(o=>{t.headerExtensions.push(A.parseExtmap(o))});const i=A.matchPrefix(e,"a=rtcp-fb:* ").map(A.parseRtcpFb);return t.codecs.forEach(o=>{i.forEach(a=>{o.rtcpFeedback.find(c=>c.type===a.type&&c.parameter===a.parameter)||o.rtcpFeedback.push(a)})}),t},A.writeRtpDescription=function(e,t){let n="";n+="m="+e+" ",n+=t.codecs.length>0?"9":"0",n+=" "+(t.profile||"UDP/TLS/RTP/SAVPF")+" ",n+=t.codecs.map(i=>i.preferredPayloadType!==void 0?i.preferredPayloadType:i.payloadType).join(" ")+`\r
|
|
15
|
+
`,n+=`c=IN IP4 0.0.0.0\r
|
|
16
|
+
`,n+=`a=rtcp:9 IN IP4 0.0.0.0\r
|
|
17
|
+
`,t.codecs.forEach(i=>{n+=A.writeRtpMap(i),n+=A.writeFmtp(i),n+=A.writeRtcpFb(i)});let s=0;return t.codecs.forEach(i=>{i.maxptime>s&&(s=i.maxptime)}),s>0&&(n+="a=maxptime:"+s+`\r
|
|
18
|
+
`),t.headerExtensions&&t.headerExtensions.forEach(i=>{n+=A.writeExtmap(i)}),n},A.parseRtpEncodingParameters=function(e){const t=[],n=A.parseRtpParameters(e),s=n.fecMechanisms.indexOf("RED")!==-1,i=n.fecMechanisms.indexOf("ULPFEC")!==-1,o=A.matchPrefix(e,"a=ssrc:").map(d=>A.parseSsrcMedia(d)).filter(d=>d.attribute==="cname"),a=o.length>0&&o[0].ssrc;let l;const c=A.matchPrefix(e,"a=ssrc-group:FID").map(d=>d.substring(17).split(" ").map(g=>parseInt(g,10)));c.length>0&&c[0].length>1&&c[0][0]===a&&(l=c[0][1]),n.codecs.forEach(d=>{if(d.name.toUpperCase()==="RTX"&&d.parameters.apt){let B={ssrc:a,codecPayloadType:parseInt(d.parameters.apt,10)};a&&l&&(B.rtx={ssrc:l}),t.push(B),s&&(B=JSON.parse(JSON.stringify(B)),B.fec={ssrc:a,mechanism:i?"red+ulpfec":"red"},t.push(B))}}),t.length===0&&a&&t.push({ssrc:a});let h=A.matchPrefix(e,"b=");return h.length&&(h[0].indexOf("b=TIAS:")===0?h=parseInt(h[0].substring(7),10):h[0].indexOf("b=AS:")===0?h=parseInt(h[0].substring(5),10)*1e3*.95-16e3:h=void 0,t.forEach(d=>{d.maxBitrate=h})),t},A.parseRtcpParameters=function(e){const t={},n=A.matchPrefix(e,"a=ssrc:").map(o=>A.parseSsrcMedia(o)).filter(o=>o.attribute==="cname")[0];n&&(t.cname=n.value,t.ssrc=n.ssrc);const s=A.matchPrefix(e,"a=rtcp-rsize");t.reducedSize=s.length>0,t.compound=s.length===0;const i=A.matchPrefix(e,"a=rtcp-mux");return t.mux=i.length>0,t},A.writeRtcpParameters=function(e){let t="";return e.reducedSize&&(t+=`a=rtcp-rsize\r
|
|
19
|
+
`),e.mux&&(t+=`a=rtcp-mux\r
|
|
20
|
+
`),e.ssrc!==void 0&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+`\r
|
|
21
|
+
`),t},A.parseMsid=function(e){let t;const n=A.matchPrefix(e,"a=msid:");if(n.length===1)return t=n[0].substring(7).split(" "),{stream:t[0],track:t[1]};const s=A.matchPrefix(e,"a=ssrc:").map(i=>A.parseSsrcMedia(i)).filter(i=>i.attribute==="msid");if(s.length>0)return t=s[0].value.split(" "),{stream:t[0],track:t[1]}},A.parseSctpDescription=function(e){const t=A.parseMLine(e),n=A.matchPrefix(e,"a=max-message-size:");let s;n.length>0&&(s=parseInt(n[0].substring(19),10)),isNaN(s)&&(s=65536);const i=A.matchPrefix(e,"a=sctp-port:");if(i.length>0)return{port:parseInt(i[0].substring(12),10),protocol:t.fmt,maxMessageSize:s};const o=A.matchPrefix(e,"a=sctpmap:");if(o.length>0){const a=o[0].substring(10).split(" ");return{port:parseInt(a[0],10),protocol:a[1],maxMessageSize:s}}},A.writeSctpDescription=function(e,t){let n=[];return e.protocol!=="DTLS/SCTP"?n=["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+`\r
|
|
249
22
|
`,`c=IN IP4 0.0.0.0\r
|
|
250
|
-
`,"a=sctp-port:"+
|
|
251
|
-
`]:
|
|
23
|
+
`,"a=sctp-port:"+t.port+`\r
|
|
24
|
+
`]:n=["m="+e.kind+" 9 "+e.protocol+" "+t.port+`\r
|
|
252
25
|
`,`c=IN IP4 0.0.0.0\r
|
|
253
|
-
`,"a=sctpmap:"+
|
|
254
|
-
`],
|
|
255
|
-
`),
|
|
256
|
-
o=`+(
|
|
26
|
+
`,"a=sctpmap:"+t.port+" "+t.protocol+` 65535\r
|
|
27
|
+
`],t.maxMessageSize!==void 0&&n.push("a=max-message-size:"+t.maxMessageSize+`\r
|
|
28
|
+
`),n.join("")},A.generateSessionId=function(){return Math.random().toString().substr(2,22)},A.writeSessionBoilerplate=function(e,t,n){let s;const i=t!==void 0?t:2;return e?s=e:s=A.generateSessionId(),`v=0\r
|
|
29
|
+
o=`+(n||"thisisadapterortc")+" "+s+" "+i+` IN IP4 127.0.0.1\r
|
|
257
30
|
s=-\r
|
|
258
31
|
t=0 0\r
|
|
259
|
-
`},
|
|
260
|
-
Msg: ${
|
|
261
|
-
Caller: ${
|
|
262
|
-
Msg: ${
|
|
263
|
-
Msg: ${
|
|
264
|
-
Caller: ${
|
|
265
|
-
Caller: ${
|
|
266
|
-
Msg: ${
|
|
267
|
-
`+JSON.stringify(this,void 0,4),6),JSON.stringify(this)}}let
|
|
268
|
-
`+JSON.stringify(this,void 0,4),6),JSON.stringify(this)}}(function(
|
|
269
|
-
`+JSON.stringify(JSON.parse(e.data),void 0,4),6),this.signallingProtocol.handleMessage(t.type,e.data)}handleOnOpen(e){x.Log(x.GetStackTrace(),"Connected to the signalling server via WebSocket",6),this.onOpen.dispatchEvent(new Event("open"))}handleOnError(){x.Error(x.GetStackTrace(),"WebSocket error")}handleOnClose(e){this.onWebSocketOncloseOverlayMessage(e),x.Log(x.GetStackTrace(),"Disconnected to the signalling server via WebSocket: "+JSON.stringify(e.code)+" - "+e.reason),this.onClose.dispatchEvent(new Event("close"))}requestStreamerList(){const e=new Gu;this.webSocket.send(e.payload())}sendSubscribe(e){const t=new ju(e);this.webSocket.send(t.payload())}sendUnsubscribe(){const e=new Wu;this.webSocket.send(e.payload())}sendWebRtcOffer(e){const t=new Ju(e);this.webSocket.send(t.payload())}sendWebRtcAnswer(e){const t=new Xu(e);this.webSocket.send(t.payload())}sendWebRtcDatachannelRequest(){const e=new Yu;this.webSocket.send(e.payload())}sendSFURecvDataChannelReady(){const e=new $u;this.webSocket.send(e.payload())}sendIceCandidate(e){if(x.Log(x.GetStackTrace(),"Sending Ice Candidate"),this.webSocket&&this.webSocket.readyState===this.WS_OPEN_STATE){const t=new Zu(e);this.webSocket.send(t.payload())}}close(){var e;(e=this.webSocket)===null||e===void 0||e.close()}onWebSocketOncloseOverlayMessage(e){}onConfig(e){}onStreamerList(e){}onIceCandidate(e){}onWebRtcAnswer(e){}onWebRtcOffer(e){}onWebRtcPeerDataChannels(e){}onPlayerCount(e){}},ed=class{constructor(e){this.videoElementProvider=e,this.audioElement=document.createElement("Audio"),this.videoElementProvider.setAudioElement(this.audioElement)}handleOnTrack(e){if(x.Log(x.GetStackTrace(),"handleOnTrack "+JSON.stringify(e.streams),6),e.track.id=="probator")return;const t=this.videoElementProvider.getVideoElement();if(e.track&&x.Log(x.GetStackTrace(),"Got track - "+e.track.kind+" id="+e.track.id+" readyState="+e.track.readyState,6),e.track.kind!="audio")return e.track.kind=="video"&&t.srcObject!==e.streams[0]?(t.srcObject=e.streams[0],void x.Log(x.GetStackTrace(),"Set video source from video track ontrack.")):void 0;this.CreateAudioTrack(e.streams[0])}CreateAudioTrack(e){const t=this.videoElementProvider.getVideoElement();t.srcObject!=e&&t.srcObject&&t.srcObject!==e&&(this.audioElement.srcObject=e,x.Log(x.GetStackTrace(),"Created new audio element to play separate audio stream."))}},td=class{constructor(e){this.freezeFrameHeight=0,this.freezeFrameWidth=0,this.rootDiv=e,this.rootElement=document.createElement("div"),this.rootElement.id="freezeFrame",this.rootElement.style.display="none",this.rootElement.style.pointerEvents="none",this.rootElement.style.position="absolute",this.rootElement.style.zIndex="20",this.imageElement=document.createElement("img"),this.imageElement.style.position="absolute",this.rootElement.appendChild(this.imageElement),this.rootDiv.appendChild(this.rootElement)}setElementForShow(){this.rootElement.style.display="block"}setElementForHide(){this.rootElement.style.display="none"}updateImageElementSource(e){const t=btoa(e.reduce((o,y)=>o+String.fromCharCode(y),""));this.imageElement.src="data:image/jpeg;base64,"+t}setDimensionsFromElementAndResize(){this.freezeFrameHeight=this.imageElement.naturalHeight,this.freezeFrameWidth=this.imageElement.naturalWidth,this.resize()}resize(){if(this.freezeFrameWidth!==0&&this.freezeFrameHeight!==0){let e=0,t=0,o=0,y=0;const B=this.rootDiv.clientWidth/this.rootDiv.clientHeight,A=this.freezeFrameWidth/this.freezeFrameHeight;B<A?(e=this.rootDiv.clientWidth,t=Math.floor(this.rootDiv.clientWidth/A),o=Math.floor(.5*(this.rootDiv.clientHeight-t)),y=0):(e=Math.floor(this.rootDiv.clientHeight*A),t=this.rootDiv.clientHeight,o=0,y=Math.floor(.5*(this.rootDiv.clientWidth-e))),this.rootElement.style.width=this.rootDiv.offsetWidth+"px",this.rootElement.style.height=this.rootDiv.offsetHeight+"px",this.rootElement.style.left="0px",this.rootElement.style.top="0px",this.imageElement.style.width=e+"px",this.imageElement.style.height=t+"px",this.imageElement.style.left=y+"px",this.imageElement.style.top=o+"px"}}};class rd{constructor(e){this.receiving=!1,this.size=0,this.jpeg=void 0,this.valid=!1,this.freezeFrameDelay=50,this.freezeFrame=new td(e)}showFreezeFrame(){this.valid&&this.freezeFrame.setElementForShow()}hideFreezeFrame(){this.valid=!1,this.freezeFrame.setElementForHide()}updateFreezeFrameAndShow(e,t){this.freezeFrame.updateImageElementSource(e),this.freezeFrame.imageElement.onload=()=>{this.freezeFrame.setDimensionsFromElementAndResize(),t()}}processFreezeFrameMessage(e,t){this.receiving||(this.receiving=!0,this.valid=!1,this.size=0,this.jpeg=void 0),this.size=new DataView(e.slice(1,5).buffer).getInt32(0,!0);const o=e.slice(5);if(this.jpeg){const y=new Uint8Array(this.jpeg.length+o.length);y.set(this.jpeg,0),y.set(o,this.jpeg.length),this.jpeg=y}else this.jpeg=o,this.receiving=!0,x.Log(x.GetStackTrace(),`received first chunk of freeze frame: ${this.jpeg.length}/${this.size}`,6);this.jpeg.length===this.size?(this.receiving=!1,this.valid=!0,x.Log(x.GetStackTrace(),`received complete freeze frame ${this.size}`,6),this.updateFreezeFrameAndShow(this.jpeg,t)):this.jpeg.length>this.size&&(x.Error(x.GetStackTrace(),`received bigger freeze frame than advertised: ${this.jpeg.length}/${this.size}`),this.jpeg=void 0,this.receiving=!1)}}class Ar{constructor(e,t,o,y,B=()=>{}){this.onChange=B,this.onChangeEmit=()=>{},this.id=e,this.description=o,this.label=t,this.value=y}set label(e){this._label=e,this.onChangeEmit(this._value)}get label(){return this._label}get value(){return this._value}set value(e){this._value=e,this.onChange(this._value,this),this.onChangeEmit(this._value)}}class _e extends Ar{constructor(e,t,o,y,B,A=()=>{}){super(e,t,o,y,A);const h=new URLSearchParams(window.location.search);if(B&&h.has(this.id)){const m=this.getUrlParamFlag();this.flag=m}else this.flag=y;this.useUrlParams=B}getUrlParamFlag(){const e=new URLSearchParams(window.location.search);return!!e.has(this.id)&&e.get(this.id)!=="false"&&e.get(this.id)!=="False"}updateURLParams(){if(this.useUrlParams){const e=new URLSearchParams(window.location.search);this.flag===!0?e.set(this.id,"true"):e.set(this.id,"false"),window.history.replaceState({},"",e.toString()!==""?`${location.pathname}?${e}`:`${location.pathname}`)}}enable(){this.flag=!0}get flag(){return!!this.value}set flag(e){this.value=e}}class lt extends Ar{constructor(e,t,o,y,B,A,h,m=()=>{}){super(e,t,o,A,m),this._min=y,this._max=B;const g=new URLSearchParams(window.location.search);if(h&&g.has(this.id)){const w=Number.parseInt(g.get(this.id));this.number=Number.isNaN(w)?A:w}else this.number=A;this.useUrlParams=h}updateURLParams(){if(this.useUrlParams){const e=new URLSearchParams(window.location.search);e.set(this.id,this.number.toString()),window.history.replaceState({},"",e.toString()!==""?`${location.pathname}?${e}`:`${location.pathname}`)}}set number(e){this.value=this.clamp(e)}get number(){return this.value}clamp(e){return this._min==null&&this._max==null?e:this._min==null?Math.min(this._max,e):this._max==null?Math.max(this._min,e):Math.max(Math.min(this._max,e),this._min)}get min(){return this._min}get max(){return this._max}addOnChangedListener(e){this.onChange=e}}class Ia extends Ar{constructor(e,t,o,y,B,A=()=>{}){super(e,t,o,y,A);const h=new URLSearchParams(window.location.search);if(B&&h.has(this.id)){const m=this.getUrlParamText();this.text=m}else this.text=y;this.useUrlParams=B}getUrlParamText(){var e;const t=new URLSearchParams(window.location.search);return t.has(this.id)&&(e=t.get(this.id))!==null&&e!==void 0?e:""}updateURLParams(){if(this.useUrlParams){const e=new URLSearchParams(window.location.search);e.set(this.id,this.text),window.history.replaceState({},"",e.toString()!==""?`${location.pathname}?${e}`:`${location.pathname}`)}}get text(){return this.value}set text(e){this.value=e}}class ni extends Ar{constructor(e,t,o,y,B,A,h=()=>{}){super(e,t,o,[y,y],h),this.options=B;const m=new URLSearchParams(window.location.search),g=A&&m.has(this.id)?this.getUrlParamText():y;this.selected=g,this.useUrlParams=A}getUrlParamText(){var e;const t=new URLSearchParams(window.location.search);return t.has(this.id)&&(e=t.get(this.id))!==null&&e!==void 0?e:""}updateURLParams(){if(this.useUrlParams){const e=new URLSearchParams(window.location.search);e.set(this.id,this.selected),window.history.replaceState({},"",e.toString()!==""?`${location.pathname}?${e}`:`${location.pathname}`)}}addOnChangedListener(e){this.onChange=e}get options(){return this._options}set options(e){this._options=e,this.onChangeEmit(this.selected)}get selected(){return this.value}set selected(e){let t=this.options.filter(o=>o.indexOf(e)!==-1);t.length?this.value=t[0]:(t=this.options.filter(o=>o.indexOf(e.split(" ")[0])!==-1),t.length&&(this.value=t[0]))}}class Pa extends Event{constructor(e){super("afkWarningActivate"),this.data=e}}let ii=class extends Event{constructor(e){super("afkWarningUpdate"),this.data=e}};class xa extends Event{constructor(){super("afkWarningDeactivate")}}let Oa=class extends Event{constructor(){super("afkTimedOut")}},Ma=class extends Event{constructor(e){super("videoEncoderAvgQP"),this.data=e}};class Ha extends Event{constructor(){super("webRtcSdp")}}class La extends Event{constructor(){super("webRtcAutoConnect")}}let Da=class extends Event{constructor(){super("webRtcConnecting")}};class Ra extends Event{constructor(){super("webRtcConnected")}}class ka extends Event{constructor(){super("webRtcFailed")}}let Ka=class extends Event{constructor(e){super("webRtcDisconnected"),this.data=e}};class Na extends Event{constructor(e){super("dataChannelOpen"),this.data=e}}class Va extends Event{constructor(e){super("dataChannelClose"),this.data=e}}class Ga extends Event{constructor(e){super("dataChannelError"),this.data=e}}class ja extends Event{constructor(){super("videoInitialized")}}let Wa=class extends Event{constructor(){super("streamLoading")}};class za extends Event{constructor(){super("streamConnect")}}class Ja extends Event{constructor(){super("streamDisconnect")}}class Xa extends Event{constructor(){super("streamReconnect")}}class Ya extends Event{constructor(e){super("playStreamError"),this.data=e}}class $a extends Event{constructor(){super("playStream")}}class oi extends Event{constructor(e){super("playStreamRejected"),this.data=e}}class Za extends Event{constructor(e){super("loadFreezeFrame"),this.data=e}}class qa extends Event{constructor(){super("hideFreezeFrame")}}class ec extends Event{constructor(e){super("statsReceived"),this.data=e}}let tc=class extends Event{constructor(e){super("streamerListMessage"),this.data=e}};class rc extends Event{constructor(e){super("latencyTestResult"),this.data=e}}class Ac extends Event{constructor(e){super("initialSettings"),this.data=e}}class nr extends Event{constructor(e){super("settingsChanged"),this.data=e}}class Ad extends Event{constructor(){super("xrSessionStarted")}}class nd extends Event{constructor(){super("xrSessionEnded")}}class nc extends Event{constructor(e){super("xrFrame"),this.data=e}}class ic extends Event{constructor(e){super("playerCount"),this.data=e}}class oc extends EventTarget{dispatchEvent(e){return super.dispatchEvent(e)}addEventListener(e,t){super.addEventListener(e,t)}removeEventListener(e,t){super.removeEventListener(e,t)}}class ${}$.AutoConnect="AutoConnect",$.AutoPlayVideo="AutoPlayVideo",$.AFKDetection="TimeoutIfIdle",$.BrowserSendOffer="OfferToReceive",$.HoveringMouseMode="HoveringMouse",$.ForceMonoAudio="ForceMonoAudio",$.ForceTURN="ForceTURN",$.FakeMouseWithTouches="FakeMouseWithTouches",$.IsQualityController="ControlsQuality",$.MatchViewportResolution="MatchViewportRes",$.PreferSFU="preferSFU",$.StartVideoMuted="StartVideoMuted",$.SuppressBrowserKeys="SuppressBrowserKeys",$.UseMic="UseMic",$.KeyboardInput="KeyboardInput",$.MouseInput="MouseInput",$.TouchInput="TouchInput",$.GamepadInput="GamepadInput",$.XRControllerInput="XRControllerInput";const id=v=>Object.getOwnPropertyNames($).some(e=>$[e]===v);class oe{}oe.AFKTimeoutSecs="AFKTimeout",oe.MinQP="MinQP",oe.MaxQP="MaxQP",oe.WebRTCFPS="WebRTCFPS",oe.WebRTCMinBitrate="WebRTCMinBitrate",oe.WebRTCMaxBitrate="WebRTCMaxBitrate",oe.MaxReconnectAttempts="MaxReconnectAttempts";const od=v=>Object.getOwnPropertyNames(oe).some(e=>oe[e]===v);class Ct{}Ct.SignallingServerUrl="ss";const sd=v=>Object.getOwnPropertyNames(Ct).some(e=>Ct[e]===v);class ge{}ge.PreferredCodec="PreferredCodec",ge.StreamerId="StreamerId";const ad=v=>Object.getOwnPropertyNames(ge).some(e=>ge[e]===v);class cd{constructor(e={}){this.flags=new Map,this.numericParameters=new Map,this.textParameters=new Map,this.optionParameters=new Map;const{initialSettings:t,useUrlParams:o}=e;this._useUrlParams=!!o,this.populateDefaultSettings(this._useUrlParams),t&&this.setSettings(t)}get useUrlParams(){return this._useUrlParams}populateDefaultSettings(e){this.textParameters.set(Ct.SignallingServerUrl,new Ia(Ct.SignallingServerUrl,"Signalling url","Url of the signalling server",(location.protocol==="https:"?"wss://":"ws://")+window.location.hostname+(window.location.port==="80"||window.location.port===""?"":`:${window.location.port}`),e)),this.optionParameters.set(ge.StreamerId,new ni(ge.StreamerId,"Streamer ID","The ID of the streamer to stream.","",[],e)),this.optionParameters.set(ge.PreferredCodec,new ni(ge.PreferredCodec,"Preferred Codec","The preferred codec to be used during codec negotiation","H264 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f",function(){const t=[];if(!RTCRtpReceiver.getCapabilities)return t.push("Only available on Chrome"),t;const o=/(VP\d|H26\d|AV1).*/;return RTCRtpReceiver.getCapabilities("video").codecs.forEach(y=>{const B=y.mimeType.split("/")[1]+" "+(y.sdpFmtpLine||"");o.exec(B)!==null&&t.push(B)}),t}(),e)),this.flags.set($.AutoConnect,new _e($.AutoConnect,"Auto connect to stream","Whether we should attempt to auto connect to the signalling server or show a click to start prompt.",!1,e)),this.flags.set($.AutoPlayVideo,new _e($.AutoPlayVideo,"Auto play video","When video is ready automatically start playing it as opposed to showing a play button.",!0,e)),this.flags.set($.BrowserSendOffer,new _e($.BrowserSendOffer,"Browser send offer","Browser will initiate the WebRTC handshake by sending the offer to the streamer",!1,e)),this.flags.set($.UseMic,new _e($.UseMic,"Use microphone","Make browser request microphone access and open an input audio track.",!1,e)),this.flags.set($.StartVideoMuted,new _e($.StartVideoMuted,"Start video muted","Video will start muted if true.",!1,e)),this.flags.set($.SuppressBrowserKeys,new _e($.SuppressBrowserKeys,"Suppress browser keys","Suppress certain browser keys that we use in UE, for example F5 to show shader complexity instead of refresh the page.",!0,e)),this.flags.set($.PreferSFU,new _e($.PreferSFU,"Prefer SFU","Try to connect to the SFU instead of P2P.",!1,e)),this.flags.set($.IsQualityController,new _e($.IsQualityController,"Is quality controller?","True if this peer controls stream quality",!0,e)),this.flags.set($.ForceMonoAudio,new _e($.ForceMonoAudio,"Force mono audio","Force browser to request mono audio in the SDP",!1,e)),this.flags.set($.ForceTURN,new _e($.ForceTURN,"Force TURN","Only generate TURN/Relayed ICE candidates.",!1,e)),this.flags.set($.AFKDetection,new _e($.AFKDetection,"AFK if idle","Timeout the experience if user is AFK for a period.",!1,e)),this.flags.set($.MatchViewportResolution,new _e($.MatchViewportResolution,"Match viewport resolution","Pixel Streaming will be instructed to dynamically resize the video stream to match the size of the video element.",!1,e)),this.flags.set($.HoveringMouseMode,new _e($.HoveringMouseMode,"Control Scheme: Locked Mouse","Either locked mouse, where the pointer is consumed by the video and locked to it, or hovering mouse, where the mouse is not consumed.",!1,e,(t,o)=>{o.label=`Control Scheme: ${t?"Hovering":"Locked"} Mouse`})),this.flags.set($.FakeMouseWithTouches,new _e($.FakeMouseWithTouches,"Fake mouse with touches","A single finger touch is converted into a mouse event. This allows a non-touch application to be controlled partially via a touch device.",!1,e)),this.flags.set($.KeyboardInput,new _e($.KeyboardInput,"Keyboard input","If enabled, send keyboard events to streamer",!0,e)),this.flags.set($.MouseInput,new _e($.MouseInput,"Mouse input","If enabled, send mouse events to streamer",!0,e)),this.flags.set($.TouchInput,new _e($.TouchInput,"Touch input","If enabled, send touch events to streamer",!0,e)),this.flags.set($.GamepadInput,new _e($.GamepadInput,"Gamepad input","If enabled, send gamepad events to streamer",!0,e)),this.flags.set($.XRControllerInput,new _e($.XRControllerInput,"XR controller input","If enabled, send XR controller events to streamer",!0,e)),this.numericParameters.set(oe.AFKTimeoutSecs,new lt(oe.AFKTimeoutSecs,"AFK timeout","The time (in seconds) it takes for the application to time out if AFK timeout is enabled.",0,null,120,e)),this.numericParameters.set(oe.MaxReconnectAttempts,new lt(oe.MaxReconnectAttempts,"Max Reconnects","Maximum number of reconnects the application will attempt when a streamer disconnects.",0,999,3,e)),this.numericParameters.set(oe.MinQP,new lt(oe.MinQP,"Min QP","The lower bound for the quantization parameter (QP) of the encoder. 0 = Best quality, 51 = worst quality.",0,51,0,e)),this.numericParameters.set(oe.MaxQP,new lt(oe.MaxQP,"Max QP","The upper bound for the quantization parameter (QP) of the encoder. 0 = Best quality, 51 = worst quality.",0,51,51,e)),this.numericParameters.set(oe.WebRTCFPS,new lt(oe.WebRTCFPS,"Max FPS","The maximum FPS that WebRTC will try to transmit frames at.",1,999,60,e)),this.numericParameters.set(oe.WebRTCMinBitrate,new lt(oe.WebRTCMinBitrate,"Min Bitrate (kbps)","The minimum bitrate that WebRTC should use.",0,5e5,0,e)),this.numericParameters.set(oe.WebRTCMaxBitrate,new lt(oe.WebRTCMaxBitrate,"Max Bitrate (kbps)","The maximum bitrate that WebRTC should use.",0,5e5,0,e))}_addOnNumericSettingChangedListener(e,t){this.numericParameters.has(e)&&this.numericParameters.get(e).addOnChangedListener(t)}_addOnOptionSettingChangedListener(e,t){this.optionParameters.has(e)&&this.optionParameters.get(e).addOnChangedListener(t)}getNumericSettingValue(e){if(this.numericParameters.has(e))return this.numericParameters.get(e).number;throw new Error(`There is no numeric setting with the id of ${e}`)}getTextSettingValue(e){if(this.textParameters.has(e))return this.textParameters.get(e).value;throw new Error(`There is no numeric setting with the id of ${e}`)}setNumericSetting(e,t){if(!this.numericParameters.has(e))throw new Error(`There is no numeric setting with the id of ${e}`);this.numericParameters.get(e).number=t}_addOnSettingChangedListener(e,t){this.flags.has(e)&&(this.flags.get(e).onChange=t)}_addOnTextSettingChangedListener(e,t){this.textParameters.has(e)&&(this.textParameters.get(e).onChange=t)}getSettingOption(e){return this.optionParameters.get(e)}isFlagEnabled(e){return this.flags.get(e).flag}setFlagEnabled(e,t){this.flags.has(e)?this.flags.get(e).flag=t:x.Warning(x.GetStackTrace(),`Cannot toggle flag called ${e} - it does not exist in the Config.flags map.`)}setTextSetting(e,t){this.textParameters.has(e)?this.textParameters.get(e).text=t:x.Warning(x.GetStackTrace(),`Cannot set text setting called ${e} - it does not exist in the Config.textParameters map.`)}setOptionSettingOptions(e,t){this.optionParameters.has(e)?this.optionParameters.get(e).options=t:x.Warning(x.GetStackTrace(),`Cannot set text setting called ${e} - it does not exist in the Config.optionParameters map.`)}setOptionSettingValue(e,t){this.optionParameters.has(e)?this.optionParameters.get(e).selected=t:x.Warning(x.GetStackTrace(),`Cannot set text setting called ${e} - it does not exist in the Config.enumParameters map.`)}setFlagLabel(e,t){this.flags.has(e)?this.flags.get(e).label=t:x.Warning(x.GetStackTrace(),`Cannot set label for flag called ${e} - it does not exist in the Config.flags map.`)}setSettings(e){for(const t of Object.keys(e))id(t)?this.setFlagEnabled(t,e[t]):od(t)?this.setNumericSetting(t,e[t]):sd(t)?this.setTextSetting(t,e[t]):ad(t)&&this.setOptionSettingValue(t,e[t])}getSettings(){const e={};for(const[t,o]of this.flags.entries())e[t]=o.flag;for(const[t,o]of this.numericParameters.entries())e[t]=o.number;for(const[t,o]of this.textParameters.entries())e[t]=o.text;for(const[t,o]of this.optionParameters.entries())e[t]=o.selected;return e}getFlags(){return Array.from(this.flags.values())}getTextSettings(){return Array.from(this.textParameters.values())}getNumericSettings(){return Array.from(this.numericParameters.values())}getOptionSettings(){return Array.from(this.optionParameters.values())}_registerOnChangeEvents(e){for(const t of this.flags.keys()){const o=this.flags.get(t);o&&(o.onChangeEmit=y=>e.dispatchEvent(new nr({id:o.id,type:"flag",value:y,target:o})))}for(const t of this.numericParameters.keys()){const o=this.numericParameters.get(t);o&&(o.onChangeEmit=y=>e.dispatchEvent(new nr({id:o.id,type:"number",value:y,target:o})))}for(const t of this.textParameters.keys()){const o=this.textParameters.get(t);o&&(o.onChangeEmit=y=>e.dispatchEvent(new nr({id:o.id,type:"text",value:y,target:o})))}for(const t of this.optionParameters.keys()){const o=this.optionParameters.get(t);o&&(o.onChangeEmit=y=>e.dispatchEvent(new nr({id:o.id,type:"option",value:y,target:o})))}}}var bt;(function(v){v[v.LockedMouse=0]="LockedMouse",v[v.HoveringMouse=1]="HoveringMouse"})(bt||(bt={}));class sc{constructor(e,t,o){this.closeTimeout=10,this.active=!1,this.countdownActive=!1,this.warnTimer=void 0,this.countDown=0,this.countDownTimer=void 0,this.config=e,this.pixelStreaming=t,this.onDismissAfk=o,this.onAFKTimedOutCallback=()=>{console.log("AFK timed out, did you want to override this callback?")}}onAfkClick(){clearInterval(this.countDownTimer),(this.active||this.countdownActive)&&(this.startAfkWarningTimer(),this.pixelStreaming.dispatchEvent(new xa))}startAfkWarningTimer(){this.config.getNumericSettingValue(oe.AFKTimeoutSecs)>0&&this.config.isFlagEnabled($.AFKDetection)?this.active=!0:this.active=!1,this.resetAfkWarningTimer()}stopAfkWarningTimer(){this.active=!1,this.countdownActive=!1,clearTimeout(this.warnTimer),clearInterval(this.countDownTimer)}pauseAfkWarningTimer(){this.active=!1}resetAfkWarningTimer(){this.active&&this.config.isFlagEnabled($.AFKDetection)&&(clearTimeout(this.warnTimer),this.warnTimer=setTimeout(()=>this.activateAfkEvent(),1e3*this.config.getNumericSettingValue(oe.AFKTimeoutSecs)))}activateAfkEvent(){this.pauseAfkWarningTimer(),this.pixelStreaming.dispatchEvent(new Pa({countDown:this.countDown,dismissAfk:this.onDismissAfk})),this.countDown=this.closeTimeout,this.countdownActive=!0,this.pixelStreaming.dispatchEvent(new ii({countDown:this.countDown})),this.config.isFlagEnabled($.HoveringMouseMode)||document.exitPointerLock&&document.exitPointerLock(),this.countDownTimer=setInterval(()=>{this.countDown--,this.countDown==0?(this.pixelStreaming.dispatchEvent(new Oa),this.onAFKTimedOutCallback(),x.Log(x.GetStackTrace(),"You have been disconnected due to inactivity"),this.stopAfkWarningTimer()):this.pixelStreaming.dispatchEvent(new ii({countDown:this.countDown}))},1e3)}}class ac{constructor(){this.isReceivingFreezeFrame=!1}getDataChannelInstance(){return this}createDataChannel(e,t,o){this.peerConnection=e,this.label=t,this.datachannelOptions=o,o==null&&(this.datachannelOptions={},this.datachannelOptions.ordered=!0),this.dataChannel=this.peerConnection.createDataChannel(this.label,this.datachannelOptions),this.setupDataChannel()}setupDataChannel(){this.dataChannel.binaryType="arraybuffer",this.dataChannel.onopen=e=>this.handleOnOpen(e),this.dataChannel.onclose=e=>this.handleOnClose(e),this.dataChannel.onmessage=e=>this.handleOnMessage(e),this.dataChannel.onerror=e=>this.handleOnError(e)}handleOnOpen(e){var t;x.Log(x.GetStackTrace(),`Data Channel (${this.label}) opened.`,7),this.onOpen((t=this.dataChannel)===null||t===void 0?void 0:t.label,e)}handleOnClose(e){var t;x.Log(x.GetStackTrace(),`Data Channel (${this.label}) closed.`,7),this.onClose((t=this.dataChannel)===null||t===void 0?void 0:t.label,e)}handleOnMessage(e){x.Log(x.GetStackTrace(),`Data Channel (${this.label}) message: ${e}`,8)}handleOnError(e){var t;x.Log(x.GetStackTrace(),`Data Channel (${this.label}) error: ${e}`,7),this.onError((t=this.dataChannel)===null||t===void 0?void 0:t.label,e)}onOpen(e,t){}onClose(e,t){}onError(e,t){}}class cc{}class lc{}class uc{}class si{}class dc{}class fc{}class ld{}class ud{}class hc{constructor(){this.inboundVideoStats=new lc,this.inboundAudioStats=new cc,this.candidatePair=new dc,this.DataChannelStats=new uc,this.outBoundVideoStats=new fc,this.sessionStats=new ld,this.streamStats=new ud,this.codecs=new Map}processStats(e){this.localCandidates=new Array,this.remoteCandidates=new Array,e.forEach(t=>{switch(t.type){case"candidate-pair":this.handleCandidatePair(t);break;case"certificate":case"media-source":case"media-playout":case"outbound-rtp":case"peer-connection":case"remote-inbound-rtp":case"transport":break;case"codec":this.handleCodec(t);break;case"data-channel":this.handleDataChannel(t);break;case"inbound-rtp":this.handleInBoundRTP(t);break;case"local-candidate":this.handleLocalCandidate(t);break;case"remote-candidate":this.handleRemoteCandidate(t);break;case"remote-outbound-rtp":this.handleRemoteOutBound(t);break;case"track":this.handleTrack(t);break;case"stream":this.handleStream(t);break;default:x.Error(x.GetStackTrace(),"unhandled Stat Type"),x.Log(x.GetStackTrace(),t)}})}handleStream(e){this.streamStats=e}handleCandidatePair(e){this.candidatePair.bytesReceived=e.bytesReceived,this.candidatePair.bytesSent=e.bytesSent,this.candidatePair.localCandidateId=e.localCandidateId,this.candidatePair.remoteCandidateId=e.remoteCandidateId,this.candidatePair.nominated=e.nominated,this.candidatePair.readable=e.readable,this.candidatePair.selected=e.selected,this.candidatePair.writable=e.writable,this.candidatePair.state=e.state,this.candidatePair.currentRoundTripTime=e.currentRoundTripTime}handleDataChannel(e){this.DataChannelStats.bytesReceived=e.bytesReceived,this.DataChannelStats.bytesSent=e.bytesSent,this.DataChannelStats.dataChannelIdentifier=e.dataChannelIdentifier,this.DataChannelStats.id=e.id,this.DataChannelStats.label=e.label,this.DataChannelStats.messagesReceived=e.messagesReceived,this.DataChannelStats.messagesSent=e.messagesSent,this.DataChannelStats.protocol=e.protocol,this.DataChannelStats.state=e.state,this.DataChannelStats.timestamp=e.timestamp}handleLocalCandidate(e){const t=new si;t.label="local-candidate",t.address=e.address,t.port=e.port,t.protocol=e.protocol,t.candidateType=e.candidateType,t.id=e.id,this.localCandidates.push(t)}handleRemoteCandidate(e){const t=new si;t.label="local-candidate",t.address=e.address,t.port=e.port,t.protocol=e.protocol,t.id=e.id,t.candidateType=e.candidateType,this.remoteCandidates.push(t)}handleInBoundRTP(e){switch(e.kind){case"video":this.inboundVideoStats=e,this.lastVideoStats!=null&&(this.inboundVideoStats.bitrate=8*(this.inboundVideoStats.bytesReceived-this.lastVideoStats.bytesReceived)/(this.inboundVideoStats.timestamp-this.lastVideoStats.timestamp),this.inboundVideoStats.bitrate=Math.floor(this.inboundVideoStats.bitrate)),this.lastVideoStats=Object.assign({},this.inboundVideoStats);break;case"audio":this.inboundAudioStats=e,this.lastAudioStats!=null&&(this.inboundAudioStats.bitrate=8*(this.inboundAudioStats.bytesReceived-this.lastAudioStats.bytesReceived)/(this.inboundAudioStats.timestamp-this.lastAudioStats.timestamp),this.inboundAudioStats.bitrate=Math.floor(this.inboundAudioStats.bitrate)),this.lastAudioStats=Object.assign({},this.inboundAudioStats);break;default:x.Log(x.GetStackTrace(),"Kind is not handled")}}handleRemoteOutBound(e){e.kind==="video"&&(this.outBoundVideoStats.bytesSent=e.bytesSent,this.outBoundVideoStats.id=e.id,this.outBoundVideoStats.localId=e.localId,this.outBoundVideoStats.packetsSent=e.packetsSent,this.outBoundVideoStats.remoteTimestamp=e.remoteTimestamp,this.outBoundVideoStats.timestamp=e.timestamp)}handleTrack(e){e.type!=="track"||e.trackIdentifier!=="video_label"&&e.kind!=="video"||(this.inboundVideoStats.framesDropped=e.framesDropped,this.inboundVideoStats.framesReceived=e.framesReceived,this.inboundVideoStats.frameHeight=e.frameHeight,this.inboundVideoStats.frameWidth=e.frameWidth)}handleCodec(e){const t=e.id,o=`${e.mimeType.replace("video/","").replace("audio/","")}${e.sdpFmtpLine?` ${e.sdpFmtpLine}`:""}`;this.codecs.set(t,o)}handleSessionStatistics(e,t,o){const y=Date.now()-e;this.sessionStats.runTime=new Date(y).toISOString().substr(11,8).toString();const B=t===null?"Not sent yet":t?"true":"false";this.sessionStats.controlsStreamInput=B,this.sessionStats.videoEncoderAvgQP=o}isNumber(e){return typeof e=="number"&&isFinite(e)}}const pc=(gc={parseRtpParameters:()=>Sa.parseRtpParameters,splitSections:()=>Sa.splitSections},ai={},JA.d(ai,gc),ai);var gc,ai,Dt,Ae,ci=function(v,e,t,o){return new(t||(t=Promise))(function(y,B){function A(g){try{m(o.next(g))}catch(w){B(w)}}function h(g){try{m(o.throw(g))}catch(w){B(w)}}function m(g){var w;g.done?y(g.value):(w=g.value,w instanceof t?w:new t(function(p){p(w)})).then(A,h)}m((o=o.apply(v,[])).next())})};class dd{constructor(e,t,o){this.config=t,this.createPeerConnection(e,o)}createPeerConnection(e,t){this.config.isFlagEnabled($.ForceTURN)&&(e.iceTransportPolicy="relay",x.Log(x.GetStackTrace(),"Forcing TURN usage by setting ICE Transport Policy in peer connection config.")),this.peerConnection=new RTCPeerConnection(e),this.peerConnection.onsignalingstatechange=o=>this.handleSignalStateChange(o),this.peerConnection.oniceconnectionstatechange=o=>this.handleIceConnectionStateChange(o),this.peerConnection.onicegatheringstatechange=o=>this.handleIceGatheringStateChange(o),this.peerConnection.ontrack=o=>this.handleOnTrack(o),this.peerConnection.onicecandidate=o=>this.handleIceCandidate(o),this.peerConnection.ondatachannel=o=>this.handleDataChannel(o),this.aggregatedStats=new hc,this.preferredCodec=t,this.updateCodecSelection=!0}createOffer(e,t){return ci(this,void 0,void 0,function*(){x.Log(x.GetStackTrace(),"Create Offer",6);const o=location.hostname==="localhost"||location.hostname==="127.0.0.1",y=location.protocol==="https:";let B=t.isFlagEnabled($.UseMic);!B||o||y||(B=!1,x.Error(x.GetStackTrace(),"Microphone access in the browser will not work if you are not on HTTPS or localhost. Disabling mic access."),x.Error(x.GetStackTrace(),"For testing you can enable HTTP microphone access Chrome by visiting chrome://flags/ and enabling 'unsafely-treat-insecure-origin-as-secure'")),this.setupTransceiversAsync(B).finally(()=>{var A;(A=this.peerConnection)===null||A===void 0||A.createOffer(e).then(h=>{var m;this.showTextOverlayConnecting(),h.sdp=this.mungeSDP(h.sdp,B),(m=this.peerConnection)===null||m===void 0||m.setLocalDescription(h),this.onSendWebRTCOffer(h)}).catch(()=>{this.showTextOverlaySetupFailure()})})})}receiveOffer(e,t){var o;return ci(this,void 0,void 0,function*(){x.Log(x.GetStackTrace(),"Receive Offer",6),(o=this.peerConnection)===null||o===void 0||o.setRemoteDescription(e).then(()=>{const y=location.hostname==="localhost"||location.hostname==="127.0.0.1",B=location.protocol==="https:";let A=t.isFlagEnabled($.UseMic);!A||y||B||(A=!1,x.Error(x.GetStackTrace(),"Microphone access in the browser will not work if you are not on HTTPS or localhost. Disabling mic access."),x.Error(x.GetStackTrace(),"For testing you can enable HTTP microphone access Chrome by visiting chrome://flags/ and enabling 'unsafely-treat-insecure-origin-as-secure'")),this.config.setOptionSettingOptions(ge.PreferredCodec,this.fuzzyIntersectUEAndBrowserCodecs(e)),this.setupTransceiversAsync(A).finally(()=>{var h;(h=this.peerConnection)===null||h===void 0||h.createAnswer().then(m=>{var g;return m.sdp=this.mungeSDP(m.sdp,A),(g=this.peerConnection)===null||g===void 0?void 0:g.setLocalDescription(m)}).then(()=>{var m;this.onSendWebRTCAnswer((m=this.peerConnection)===null||m===void 0?void 0:m.currentLocalDescription)}).catch(()=>{x.Error(x.GetStackTrace(),"createAnswer() failed")})})})})}receiveAnswer(e){var t;(t=this.peerConnection)===null||t===void 0||t.setRemoteDescription(e),this.config.setOptionSettingOptions(ge.PreferredCodec,this.fuzzyIntersectUEAndBrowserCodecs(e))}generateStats(){var e;(e=this.peerConnection)===null||e===void 0||e.getStats(null).then(t=>{this.aggregatedStats.processStats(t),this.onVideoStats(this.aggregatedStats),this.updateCodecSelection&&this.config.setOptionSettingValue(ge.PreferredCodec,this.aggregatedStats.codecs.get(this.aggregatedStats.inboundVideoStats.codecId))})}close(){this.peerConnection&&(this.peerConnection.close(),this.peerConnection=null)}mungeSDP(e,t){let o=e.replace(/(a=fmtp:\d+ .*level-asymmetry-allowed=.*)\r\n/gm,`$1;x-google-start-bitrate=10000;x-google-max-bitrate=100000\r
|
|
270
|
-
`),
|
|
32
|
+
`},A.getDirection=function(e,t){const n=A.splitLines(e);for(let s=0;s<n.length;s++)switch(n[s]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return n[s].substring(2)}return t?A.getDirection(t):"sendrecv"},A.getKind=function(e){return A.splitLines(e)[0].split(" ")[0].substring(2)},A.isRejected=function(e){return e.split(" ",2)[1]==="0"},A.parseMLine=function(e){const n=A.splitLines(e)[0].substring(2).split(" ");return{kind:n[0],port:parseInt(n[1],10),protocol:n[2],fmt:n.slice(3).join(" ")}},A.parseOLine=function(e){const n=A.matchPrefix(e,"o=")[0].substring(2).split(" ");return{username:n[0],sessionId:n[1],sessionVersion:parseInt(n[2],10),netType:n[3],addressType:n[4],address:n[5]}},A.isValidSDP=function(e){if(typeof e!="string"||e.length===0)return!1;const t=A.splitLines(e);for(let n=0;n<t.length;n++)if(t[n].length<2||t[n].charAt(1)!=="=")return!1;return!0},r.exports=A}(Sn)),Sn.exports}var $o=id(),mA,$,Fr={d:(r,A)=>{for(var e in A)Fr.o(A,e)&&!Fr.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:A[e]})},o:(r,A)=>Object.prototype.hasOwnProperty.call(r,A)},H={};Fr.d(H,{Dz:()=>Ta,g$:()=>ta,Lt:()=>Aa,Q9:()=>ea,qf:()=>Hn,hV:()=>Ka,z$:()=>Da,J0:()=>bn,De:()=>yd,$C:()=>ZA,al:()=>da,_W:()=>ua,tz:()=>ca,Nu:()=>Ma,zg:()=>Ga,vp:()=>Ia,vU:()=>U,wF:()=>ma,rv:()=>La,Nh:()=>ba,ss:()=>ka,qW:()=>Ea,QL:()=>Ua,cf:()=>_a,eM:()=>va,Yd:()=>u,iM:()=>Zo,qy:()=>HA,ce:()=>fd,sK:()=>D,Ok:()=>V,q5:()=>Ra,g:()=>qd,xl:()=>pa,I:()=>Ca,bx:()=>Ln,dD:()=>Sa,Ib:()=>Ke,Az:()=>z,Iw:()=>PA,qY:()=>Tn,db:()=>jo,mR:()=>xe,Tn:()=>In,rV:()=>Fa,gh:()=>ga,Mi:()=>Ba,j:()=>fa,YB:()=>wa,i5:()=>Qa,x_:()=>$A,Am:()=>Kn,eR:()=>ra,r8:()=>ha,u3:()=>Na,vd:()=>sa,iV:()=>oa,jZ:()=>ia,SW:()=>la,ZH:()=>aa,Ni:()=>Wa,lh:()=>na,bq:()=>qo,$f:()=>za,eu:()=>ya,Ax:()=>md,Mc:()=>vd});let u=class{static GetStackTrace(){const A=new Error;let e="No Stack Available for this browser";return A.stack&&(e=A.stack.toString().replace(/Error/g,"")),e}static SetLoggerVerbosity(A){this.verboseLogLevel!=null&&(this.verboseLogLevel=A)}static Log(A,e,t){if(t>this.verboseLogLevel)return;const n=`Level: Log
|
|
33
|
+
Msg: ${e}
|
|
34
|
+
Caller: ${A}`;console.log(n)}static Info(A,e,t){if(t>this.verboseLogLevel)return;const n=`Level: Info
|
|
35
|
+
Msg: ${e}`;console.info(n)}static Error(A,e){const t=`Level: Error
|
|
36
|
+
Msg: ${e}
|
|
37
|
+
Caller: ${A}`;console.error(t)}static Warning(A,e){const t=`Level: Warning
|
|
38
|
+
Caller: ${A}
|
|
39
|
+
Msg: ${e}`;console.warn(t)}};u.verboseLogLevel=5,function(r){r.LIST_STREAMERS="listStreamers",r.SUBSCRIBE="subscribe",r.UNSUBSCRIBE="unsubscribe",r.ICE_CANDIDATE="iceCandidate",r.OFFER="offer",r.ANSWER="answer",r.DATACHANNELREQUEST="dataChannelRequest",r.SFURECVDATACHANNELREADY="peerDataChannelsReady",r.PONG="pong"}(mA||(mA={}));class HA{payload(){return u.Log(u.GetStackTrace(),`Sending =>
|
|
40
|
+
`+JSON.stringify(this,void 0,4),6),JSON.stringify(this)}}let od=class extends HA{constructor(){super(),this.type=mA.LIST_STREAMERS}};class ad extends HA{constructor(A){super(),this.type=mA.SUBSCRIBE,this.streamerId=A}}class ld extends HA{constructor(){super(),this.type=mA.UNSUBSCRIBE}}class cd extends HA{constructor(A){super(),this.type=mA.PONG,this.time=A}}class dd extends HA{constructor(A){super(),this.type=mA.OFFER,A&&(this.type=A.type,this.sdp=A.sdp)}}class ud extends HA{constructor(A){super(),this.type=mA.ANSWER,A&&(this.type=A.type,this.sdp=A.sdp)}}let hd=class extends HA{constructor(){super(),this.type=mA.DATACHANNELREQUEST}};class gd extends HA{constructor(){super(),this.type=mA.SFURECVDATACHANNELREADY}}class Bd{constructor(A){this.type=mA.ICE_CANDIDATE,this.candidate=A}payload(){return u.Log(u.GetStackTrace(),`Sending =>
|
|
41
|
+
`+JSON.stringify(this,void 0,4),6),JSON.stringify(this)}}(function(r){r.CONFIG="config",r.STREAMER_LIST="streamerList",r.PLAYER_COUNT="playerCount",r.OFFER="offer",r.ANSWER="answer",r.ICE_CANDIDATE="iceCandidate",r.PEER_DATA_CHANNELS="peerDataChannels",r.PING="ping",r.WARNING="warning"})($||($={}));class Zo{}class fd extends Zo{}class In{constructor(){this.FromUEMessageHandlers=new Map}addMessageHandler(A,e){this.FromUEMessageHandlers.set(A,e)}handleMessage(A,e){this.FromUEMessageHandlers.has(A)?this.FromUEMessageHandlers.get(A)(e):u.Error(u.GetStackTrace(),`Message type of ${A} does not have a message handler registered on the frontend - ignoring message.`)}static setupDefaultHandlers(A){A.signallingProtocol.addMessageHandler($.PING,e=>{const t=new cd(new Date().getTime()).payload();u.Log(u.GetStackTrace(),$.PING+": "+e,6),A.webSocket.send(t)}),A.signallingProtocol.addMessageHandler($.CONFIG,e=>{u.Log(u.GetStackTrace(),$.CONFIG,6);const t=JSON.parse(e);A.onConfig(t)}),A.signallingProtocol.addMessageHandler($.STREAMER_LIST,e=>{u.Log(u.GetStackTrace(),$.STREAMER_LIST,6);const t=JSON.parse(e);A.onStreamerList(t)}),A.signallingProtocol.addMessageHandler($.PLAYER_COUNT,e=>{u.Log(u.GetStackTrace(),$.PLAYER_COUNT,6);const t=JSON.parse(e);u.Log(u.GetStackTrace(),"Player Count: "+t.count,6),A.onPlayerCount(t)}),A.signallingProtocol.addMessageHandler($.ANSWER,e=>{u.Log(u.GetStackTrace(),$.ANSWER,6);const t=JSON.parse(e);A.onWebRtcAnswer(t)}),A.signallingProtocol.addMessageHandler($.OFFER,e=>{u.Log(u.GetStackTrace(),$.OFFER,6);const t=JSON.parse(e);A.onWebRtcOffer(t)}),A.signallingProtocol.addMessageHandler($.ICE_CANDIDATE,e=>{u.Log(u.GetStackTrace(),$.ICE_CANDIDATE,6);const t=JSON.parse(e);A.onIceCandidate(t.candidate)}),A.signallingProtocol.addMessageHandler($.WARNING,e=>{u.Warning(u.GetStackTrace(),`Warning received: ${e}`)}),A.signallingProtocol.addMessageHandler($.PEER_DATA_CHANNELS,e=>{u.Log(u.GetStackTrace(),$.PEER_DATA_CHANNELS,6);const t=JSON.parse(e);A.onWebRtcPeerDataChannels(t)})}}let qo=class{constructor(){this.WS_OPEN_STATE=1,this.onOpen=new EventTarget,this.onClose=new EventTarget,this.signallingProtocol=new In,In.setupDefaultHandlers(this)}connect(A){u.Log(u.GetStackTrace(),A,6);try{return this.webSocket=new WebSocket(A),this.webSocket.onopen=e=>this.handleOnOpen(e),this.webSocket.onerror=()=>this.handleOnError(),this.webSocket.onclose=e=>this.handleOnClose(e),this.webSocket.onmessage=e=>this.handleOnMessage(e),this.webSocket.onmessagebinary=e=>this.handleOnMessageBinary(e),!0}catch(e){return u.Error(e,e),!1}}handleOnMessageBinary(A){A&&A.data&&A.data.text().then(e=>{const t=new MessageEvent("messageFromBinary",{data:e});this.handleOnMessage(t)}).catch(e=>{u.Error(u.GetStackTrace(),`Failed to parse binary blob from websocket, reason: ${e}`)})}handleOnMessage(A){if(A.data&&A.data instanceof Blob)return void this.handleOnMessageBinary(A);const e=JSON.parse(A.data);u.Log(u.GetStackTrace(),`received =>
|
|
42
|
+
`+JSON.stringify(JSON.parse(A.data),void 0,4),6),this.signallingProtocol.handleMessage(e.type,A.data)}handleOnOpen(A){u.Log(u.GetStackTrace(),"Connected to the signalling server via WebSocket",6),this.onOpen.dispatchEvent(new Event("open"))}handleOnError(){u.Error(u.GetStackTrace(),"WebSocket error")}handleOnClose(A){this.onWebSocketOncloseOverlayMessage(A),u.Log(u.GetStackTrace(),"Disconnected to the signalling server via WebSocket: "+JSON.stringify(A.code)+" - "+A.reason),this.onClose.dispatchEvent(new Event("close"))}requestStreamerList(){const A=new od;this.webSocket.send(A.payload())}sendSubscribe(A){const e=new ad(A);this.webSocket.send(e.payload())}sendUnsubscribe(){const A=new ld;this.webSocket.send(A.payload())}sendWebRtcOffer(A){const e=new dd(A);this.webSocket.send(e.payload())}sendWebRtcAnswer(A){const e=new ud(A);this.webSocket.send(e.payload())}sendWebRtcDatachannelRequest(){const A=new hd;this.webSocket.send(A.payload())}sendSFURecvDataChannelReady(){const A=new gd;this.webSocket.send(A.payload())}sendIceCandidate(A){if(u.Log(u.GetStackTrace(),"Sending Ice Candidate"),this.webSocket&&this.webSocket.readyState===this.WS_OPEN_STATE){const e=new Bd(A);this.webSocket.send(e.payload())}}close(){var A;(A=this.webSocket)===null||A===void 0||A.close()}onWebSocketOncloseOverlayMessage(A){}onConfig(A){}onStreamerList(A){}onIceCandidate(A){}onWebRtcAnswer(A){}onWebRtcOffer(A){}onWebRtcPeerDataChannels(A){}onPlayerCount(A){}},wd=class{constructor(A){this.videoElementProvider=A,this.audioElement=document.createElement("Audio"),this.videoElementProvider.setAudioElement(this.audioElement)}handleOnTrack(A){if(u.Log(u.GetStackTrace(),"handleOnTrack "+JSON.stringify(A.streams),6),A.track.id=="probator")return;const e=this.videoElementProvider.getVideoElement();if(A.track&&u.Log(u.GetStackTrace(),"Got track - "+A.track.kind+" id="+A.track.id+" readyState="+A.track.readyState,6),A.track.kind!="audio")return A.track.kind=="video"&&e.srcObject!==A.streams[0]?(e.srcObject=A.streams[0],void u.Log(u.GetStackTrace(),"Set video source from video track ontrack.")):void 0;this.CreateAudioTrack(A.streams[0])}CreateAudioTrack(A){const e=this.videoElementProvider.getVideoElement();e.srcObject!=A&&e.srcObject&&e.srcObject!==A&&(this.audioElement.srcObject=A,u.Log(u.GetStackTrace(),"Created new audio element to play separate audio stream."))}},pd=class{constructor(A){this.freezeFrameHeight=0,this.freezeFrameWidth=0,this.rootDiv=A,this.rootElement=document.createElement("div"),this.rootElement.id="freezeFrame",this.rootElement.style.display="none",this.rootElement.style.pointerEvents="none",this.rootElement.style.position="absolute",this.rootElement.style.zIndex="20",this.imageElement=document.createElement("img"),this.imageElement.style.position="absolute",this.rootElement.appendChild(this.imageElement),this.rootDiv.appendChild(this.rootElement)}setElementForShow(){this.rootElement.style.display="block"}setElementForHide(){this.rootElement.style.display="none"}updateImageElementSource(A){const e=btoa(A.reduce((t,n)=>t+String.fromCharCode(n),""));this.imageElement.src="data:image/jpeg;base64,"+e}setDimensionsFromElementAndResize(){this.freezeFrameHeight=this.imageElement.naturalHeight,this.freezeFrameWidth=this.imageElement.naturalWidth,this.resize()}resize(){if(this.freezeFrameWidth!==0&&this.freezeFrameHeight!==0){let A=0,e=0,t=0,n=0;const s=this.rootDiv.clientWidth/this.rootDiv.clientHeight,i=this.freezeFrameWidth/this.freezeFrameHeight;s<i?(A=this.rootDiv.clientWidth,e=Math.floor(this.rootDiv.clientWidth/i),t=Math.floor(.5*(this.rootDiv.clientHeight-e)),n=0):(A=Math.floor(this.rootDiv.clientHeight*i),e=this.rootDiv.clientHeight,t=0,n=Math.floor(.5*(this.rootDiv.clientWidth-A))),this.rootElement.style.width=this.rootDiv.offsetWidth+"px",this.rootElement.style.height=this.rootDiv.offsetHeight+"px",this.rootElement.style.left="0px",this.rootElement.style.top="0px",this.imageElement.style.width=A+"px",this.imageElement.style.height=e+"px",this.imageElement.style.left=n+"px",this.imageElement.style.top=t+"px"}}};class Cd{constructor(A){this.receiving=!1,this.size=0,this.jpeg=void 0,this.valid=!1,this.freezeFrameDelay=50,this.freezeFrame=new pd(A)}showFreezeFrame(){this.valid&&this.freezeFrame.setElementForShow()}hideFreezeFrame(){this.valid=!1,this.freezeFrame.setElementForHide()}updateFreezeFrameAndShow(A,e){this.freezeFrame.updateImageElementSource(A),this.freezeFrame.imageElement.onload=()=>{this.freezeFrame.setDimensionsFromElementAndResize(),e()}}processFreezeFrameMessage(A,e){this.receiving||(this.receiving=!0,this.valid=!1,this.size=0,this.jpeg=void 0),this.size=new DataView(A.slice(1,5).buffer).getInt32(0,!0);const t=A.slice(5);if(this.jpeg){const n=new Uint8Array(this.jpeg.length+t.length);n.set(this.jpeg,0),n.set(t,this.jpeg.length),this.jpeg=n}else this.jpeg=t,this.receiving=!0,u.Log(u.GetStackTrace(),`received first chunk of freeze frame: ${this.jpeg.length}/${this.size}`,6);this.jpeg.length===this.size?(this.receiving=!1,this.valid=!0,u.Log(u.GetStackTrace(),`received complete freeze frame ${this.size}`,6),this.updateFreezeFrameAndShow(this.jpeg,e)):this.jpeg.length>this.size&&(u.Error(u.GetStackTrace(),`received bigger freeze frame than advertised: ${this.jpeg.length}/${this.size}`),this.jpeg=void 0,this.receiving=!1)}}class Ke{constructor(A,e,t,n,s=()=>{}){this.onChange=s,this.onChangeEmit=()=>{},this.id=A,this.description=t,this.label=e,this.value=n}set label(A){this._label=A,this.onChangeEmit(this._value)}get label(){return this._label}get value(){return this._value}set value(A){this._value=A,this.onChange(this._value,this),this.onChangeEmit(this._value)}}class z extends Ke{constructor(A,e,t,n,s,i=()=>{}){super(A,e,t,n,i);const o=new URLSearchParams(window.location.search);if(s&&o.has(this.id)){const a=this.getUrlParamFlag();this.flag=a}else this.flag=n;this.useUrlParams=s}getUrlParamFlag(){const A=new URLSearchParams(window.location.search);return!!A.has(this.id)&&A.get(this.id)!=="false"&&A.get(this.id)!=="False"}updateURLParams(){if(this.useUrlParams){const A=new URLSearchParams(window.location.search);this.flag===!0?A.set(this.id,"true"):A.set(this.id,"false"),window.history.replaceState({},"",A.toString()!==""?`${location.pathname}?${A}`:`${location.pathname}`)}}enable(){this.flag=!0}get flag(){return!!this.value}set flag(A){this.value=A}}class PA extends Ke{constructor(A,e,t,n,s,i,o,a=()=>{}){super(A,e,t,i,a),this._min=n,this._max=s;const l=new URLSearchParams(window.location.search);if(o&&l.has(this.id)){const c=Number.parseInt(l.get(this.id));this.number=Number.isNaN(c)?i:c}else this.number=i;this.useUrlParams=o}updateURLParams(){if(this.useUrlParams){const A=new URLSearchParams(window.location.search);A.set(this.id,this.number.toString()),window.history.replaceState({},"",A.toString()!==""?`${location.pathname}?${A}`:`${location.pathname}`)}}set number(A){this.value=this.clamp(A)}get number(){return this.value}clamp(A){return this._min==null&&this._max==null?A:this._min==null?Math.min(this._max,A):this._max==null?Math.max(this._min,A):Math.max(Math.min(this._max,A),this._min)}get min(){return this._min}get max(){return this._max}addOnChangedListener(A){this.onChange=A}}class jo extends Ke{constructor(A,e,t,n,s,i=()=>{}){super(A,e,t,n,i);const o=new URLSearchParams(window.location.search);if(s&&o.has(this.id)){const a=this.getUrlParamText();this.text=a}else this.text=n;this.useUrlParams=s}getUrlParamText(){var A;const e=new URLSearchParams(window.location.search);return e.has(this.id)&&(A=e.get(this.id))!==null&&A!==void 0?A:""}updateURLParams(){if(this.useUrlParams){const A=new URLSearchParams(window.location.search);A.set(this.id,this.text),window.history.replaceState({},"",A.toString()!==""?`${location.pathname}?${A}`:`${location.pathname}`)}}get text(){return this.value}set text(A){this.value=A}}class Tn extends Ke{constructor(A,e,t,n,s,i,o=()=>{}){super(A,e,t,[n,n],o),this.options=s;const a=new URLSearchParams(window.location.search),l=i&&a.has(this.id)?this.getUrlParamText():n;this.selected=l,this.useUrlParams=i}getUrlParamText(){var A;const e=new URLSearchParams(window.location.search);return e.has(this.id)&&(A=e.get(this.id))!==null&&A!==void 0?A:""}updateURLParams(){if(this.useUrlParams){const A=new URLSearchParams(window.location.search);A.set(this.id,this.selected),window.history.replaceState({},"",A.toString()!==""?`${location.pathname}?${A}`:`${location.pathname}`)}}addOnChangedListener(A){this.onChange=A}get options(){return this._options}set options(A){this._options=A,this.onChangeEmit(this.selected)}get selected(){return this.value}set selected(A){let e=this.options.filter(t=>t.indexOf(A)!==-1);e.length?this.value=e[0]:(e=this.options.filter(t=>t.indexOf(A.split(" ")[0])!==-1),e.length&&(this.value=e[0]))}}class Aa extends Event{constructor(A){super("afkWarningActivate"),this.data=A}}let Hn=class extends Event{constructor(A){super("afkWarningUpdate"),this.data=A}};class ea extends Event{constructor(){super("afkWarningDeactivate")}}let ta=class extends Event{constructor(){super("afkTimedOut")}},ra=class extends Event{constructor(A){super("videoEncoderAvgQP"),this.data=A}};class na extends Event{constructor(){super("webRtcSdp")}}class sa extends Event{constructor(){super("webRtcAutoConnect")}}let ia=class extends Event{constructor(){super("webRtcConnecting")}};class oa extends Event{constructor(){super("webRtcConnected")}}class aa extends Event{constructor(){super("webRtcFailed")}}let la=class extends Event{constructor(A){super("webRtcDisconnected"),this.data=A}};class ca extends Event{constructor(A){super("dataChannelOpen"),this.data=A}}class da extends Event{constructor(A){super("dataChannelClose"),this.data=A}}class ua extends Event{constructor(A){super("dataChannelError"),this.data=A}}class ha extends Event{constructor(){super("videoInitialized")}}let ga=class extends Event{constructor(){super("streamLoading")}};class Ba extends Event{constructor(){super("streamConnect")}}class fa extends Event{constructor(){super("streamDisconnect")}}class wa extends Event{constructor(){super("streamReconnect")}}class pa extends Event{constructor(A){super("playStreamError"),this.data=A}}class Ca extends Event{constructor(){super("playStream")}}class Ln extends Event{constructor(A){super("playStreamRejected"),this.data=A}}class va extends Event{constructor(A){super("loadFreezeFrame"),this.data=A}}class ma extends Event{constructor(){super("hideFreezeFrame")}}class Fa extends Event{constructor(A){super("statsReceived"),this.data=A}}let Qa=class extends Event{constructor(A){super("streamerListMessage"),this.data=A}};class Ua extends Event{constructor(A){super("latencyTestResult"),this.data=A}}class Ea extends Event{constructor(A){super("initialSettings"),this.data=A}}class xe extends Event{constructor(A){super("settingsChanged"),this.data=A}}class vd extends Event{constructor(){super("xrSessionStarted")}}class md extends Event{constructor(){super("xrSessionEnded")}}class ya extends Event{constructor(A){super("xrFrame"),this.data=A}}class Sa extends Event{constructor(A){super("playerCount"),this.data=A}}class Ia extends EventTarget{dispatchEvent(A){return super.dispatchEvent(A)}addEventListener(A,e){super.addEventListener(A,e)}removeEventListener(A,e){super.removeEventListener(A,e)}}class U{}U.AutoConnect="AutoConnect",U.AutoPlayVideo="AutoPlayVideo",U.AFKDetection="TimeoutIfIdle",U.BrowserSendOffer="OfferToReceive",U.HoveringMouseMode="HoveringMouse",U.ForceMonoAudio="ForceMonoAudio",U.ForceTURN="ForceTURN",U.FakeMouseWithTouches="FakeMouseWithTouches",U.IsQualityController="ControlsQuality",U.MatchViewportResolution="MatchViewportRes",U.PreferSFU="preferSFU",U.StartVideoMuted="StartVideoMuted",U.SuppressBrowserKeys="SuppressBrowserKeys",U.UseMic="UseMic",U.KeyboardInput="KeyboardInput",U.MouseInput="MouseInput",U.TouchInput="TouchInput",U.GamepadInput="GamepadInput",U.XRControllerInput="XRControllerInput";const Fd=r=>Object.getOwnPropertyNames(U).some(A=>U[A]===r);class D{}D.AFKTimeoutSecs="AFKTimeout",D.MinQP="MinQP",D.MaxQP="MaxQP",D.WebRTCFPS="WebRTCFPS",D.WebRTCMinBitrate="WebRTCMinBitrate",D.WebRTCMaxBitrate="WebRTCMaxBitrate",D.MaxReconnectAttempts="MaxReconnectAttempts";const Qd=r=>Object.getOwnPropertyNames(D).some(A=>D[A]===r);class $A{}$A.SignallingServerUrl="ss";const Ud=r=>Object.getOwnPropertyNames($A).some(A=>$A[A]===r);class V{}V.PreferredCodec="PreferredCodec",V.StreamerId="StreamerId";const Ed=r=>Object.getOwnPropertyNames(V).some(A=>V[A]===r);class yd{constructor(A={}){this.flags=new Map,this.numericParameters=new Map,this.textParameters=new Map,this.optionParameters=new Map;const{initialSettings:e,useUrlParams:t}=A;this._useUrlParams=!!t,this.populateDefaultSettings(this._useUrlParams),e&&this.setSettings(e)}get useUrlParams(){return this._useUrlParams}populateDefaultSettings(A){this.textParameters.set($A.SignallingServerUrl,new jo($A.SignallingServerUrl,"Signalling url","Url of the signalling server",(location.protocol==="https:"?"wss://":"ws://")+window.location.hostname+(window.location.port==="80"||window.location.port===""?"":`:${window.location.port}`),A)),this.optionParameters.set(V.StreamerId,new Tn(V.StreamerId,"Streamer ID","The ID of the streamer to stream.","",[],A)),this.optionParameters.set(V.PreferredCodec,new Tn(V.PreferredCodec,"Preferred Codec","The preferred codec to be used during codec negotiation","H264 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f",function(){const e=[];if(!RTCRtpReceiver.getCapabilities)return e.push("Only available on Chrome"),e;const t=/(VP\d|H26\d|AV1).*/;return RTCRtpReceiver.getCapabilities("video").codecs.forEach(n=>{const s=n.mimeType.split("/")[1]+" "+(n.sdpFmtpLine||"");t.exec(s)!==null&&e.push(s)}),e}(),A)),this.flags.set(U.AutoConnect,new z(U.AutoConnect,"Auto connect to stream","Whether we should attempt to auto connect to the signalling server or show a click to start prompt.",!1,A)),this.flags.set(U.AutoPlayVideo,new z(U.AutoPlayVideo,"Auto play video","When video is ready automatically start playing it as opposed to showing a play button.",!0,A)),this.flags.set(U.BrowserSendOffer,new z(U.BrowserSendOffer,"Browser send offer","Browser will initiate the WebRTC handshake by sending the offer to the streamer",!1,A)),this.flags.set(U.UseMic,new z(U.UseMic,"Use microphone","Make browser request microphone access and open an input audio track.",!1,A)),this.flags.set(U.StartVideoMuted,new z(U.StartVideoMuted,"Start video muted","Video will start muted if true.",!1,A)),this.flags.set(U.SuppressBrowserKeys,new z(U.SuppressBrowserKeys,"Suppress browser keys","Suppress certain browser keys that we use in UE, for example F5 to show shader complexity instead of refresh the page.",!0,A)),this.flags.set(U.PreferSFU,new z(U.PreferSFU,"Prefer SFU","Try to connect to the SFU instead of P2P.",!1,A)),this.flags.set(U.IsQualityController,new z(U.IsQualityController,"Is quality controller?","True if this peer controls stream quality",!0,A)),this.flags.set(U.ForceMonoAudio,new z(U.ForceMonoAudio,"Force mono audio","Force browser to request mono audio in the SDP",!1,A)),this.flags.set(U.ForceTURN,new z(U.ForceTURN,"Force TURN","Only generate TURN/Relayed ICE candidates.",!1,A)),this.flags.set(U.AFKDetection,new z(U.AFKDetection,"AFK if idle","Timeout the experience if user is AFK for a period.",!1,A)),this.flags.set(U.MatchViewportResolution,new z(U.MatchViewportResolution,"Match viewport resolution","Pixel Streaming will be instructed to dynamically resize the video stream to match the size of the video element.",!1,A)),this.flags.set(U.HoveringMouseMode,new z(U.HoveringMouseMode,"Control Scheme: Locked Mouse","Either locked mouse, where the pointer is consumed by the video and locked to it, or hovering mouse, where the mouse is not consumed.",!1,A,(e,t)=>{t.label=`Control Scheme: ${e?"Hovering":"Locked"} Mouse`})),this.flags.set(U.FakeMouseWithTouches,new z(U.FakeMouseWithTouches,"Fake mouse with touches","A single finger touch is converted into a mouse event. This allows a non-touch application to be controlled partially via a touch device.",!1,A)),this.flags.set(U.KeyboardInput,new z(U.KeyboardInput,"Keyboard input","If enabled, send keyboard events to streamer",!0,A)),this.flags.set(U.MouseInput,new z(U.MouseInput,"Mouse input","If enabled, send mouse events to streamer",!0,A)),this.flags.set(U.TouchInput,new z(U.TouchInput,"Touch input","If enabled, send touch events to streamer",!0,A)),this.flags.set(U.GamepadInput,new z(U.GamepadInput,"Gamepad input","If enabled, send gamepad events to streamer",!0,A)),this.flags.set(U.XRControllerInput,new z(U.XRControllerInput,"XR controller input","If enabled, send XR controller events to streamer",!0,A)),this.numericParameters.set(D.AFKTimeoutSecs,new PA(D.AFKTimeoutSecs,"AFK timeout","The time (in seconds) it takes for the application to time out if AFK timeout is enabled.",0,null,120,A)),this.numericParameters.set(D.MaxReconnectAttempts,new PA(D.MaxReconnectAttempts,"Max Reconnects","Maximum number of reconnects the application will attempt when a streamer disconnects.",0,999,3,A)),this.numericParameters.set(D.MinQP,new PA(D.MinQP,"Min QP","The lower bound for the quantization parameter (QP) of the encoder. 0 = Best quality, 51 = worst quality.",0,51,0,A)),this.numericParameters.set(D.MaxQP,new PA(D.MaxQP,"Max QP","The upper bound for the quantization parameter (QP) of the encoder. 0 = Best quality, 51 = worst quality.",0,51,51,A)),this.numericParameters.set(D.WebRTCFPS,new PA(D.WebRTCFPS,"Max FPS","The maximum FPS that WebRTC will try to transmit frames at.",1,999,60,A)),this.numericParameters.set(D.WebRTCMinBitrate,new PA(D.WebRTCMinBitrate,"Min Bitrate (kbps)","The minimum bitrate that WebRTC should use.",0,5e5,0,A)),this.numericParameters.set(D.WebRTCMaxBitrate,new PA(D.WebRTCMaxBitrate,"Max Bitrate (kbps)","The maximum bitrate that WebRTC should use.",0,5e5,0,A))}_addOnNumericSettingChangedListener(A,e){this.numericParameters.has(A)&&this.numericParameters.get(A).addOnChangedListener(e)}_addOnOptionSettingChangedListener(A,e){this.optionParameters.has(A)&&this.optionParameters.get(A).addOnChangedListener(e)}getNumericSettingValue(A){if(this.numericParameters.has(A))return this.numericParameters.get(A).number;throw new Error(`There is no numeric setting with the id of ${A}`)}getTextSettingValue(A){if(this.textParameters.has(A))return this.textParameters.get(A).value;throw new Error(`There is no numeric setting with the id of ${A}`)}setNumericSetting(A,e){if(!this.numericParameters.has(A))throw new Error(`There is no numeric setting with the id of ${A}`);this.numericParameters.get(A).number=e}_addOnSettingChangedListener(A,e){this.flags.has(A)&&(this.flags.get(A).onChange=e)}_addOnTextSettingChangedListener(A,e){this.textParameters.has(A)&&(this.textParameters.get(A).onChange=e)}getSettingOption(A){return this.optionParameters.get(A)}isFlagEnabled(A){return this.flags.get(A).flag}setFlagEnabled(A,e){this.flags.has(A)?this.flags.get(A).flag=e:u.Warning(u.GetStackTrace(),`Cannot toggle flag called ${A} - it does not exist in the Config.flags map.`)}setTextSetting(A,e){this.textParameters.has(A)?this.textParameters.get(A).text=e:u.Warning(u.GetStackTrace(),`Cannot set text setting called ${A} - it does not exist in the Config.textParameters map.`)}setOptionSettingOptions(A,e){this.optionParameters.has(A)?this.optionParameters.get(A).options=e:u.Warning(u.GetStackTrace(),`Cannot set text setting called ${A} - it does not exist in the Config.optionParameters map.`)}setOptionSettingValue(A,e){this.optionParameters.has(A)?this.optionParameters.get(A).selected=e:u.Warning(u.GetStackTrace(),`Cannot set text setting called ${A} - it does not exist in the Config.enumParameters map.`)}setFlagLabel(A,e){this.flags.has(A)?this.flags.get(A).label=e:u.Warning(u.GetStackTrace(),`Cannot set label for flag called ${A} - it does not exist in the Config.flags map.`)}setSettings(A){for(const e of Object.keys(A))Fd(e)?this.setFlagEnabled(e,A[e]):Qd(e)?this.setNumericSetting(e,A[e]):Ud(e)?this.setTextSetting(e,A[e]):Ed(e)&&this.setOptionSettingValue(e,A[e])}getSettings(){const A={};for(const[e,t]of this.flags.entries())A[e]=t.flag;for(const[e,t]of this.numericParameters.entries())A[e]=t.number;for(const[e,t]of this.textParameters.entries())A[e]=t.text;for(const[e,t]of this.optionParameters.entries())A[e]=t.selected;return A}getFlags(){return Array.from(this.flags.values())}getTextSettings(){return Array.from(this.textParameters.values())}getNumericSettings(){return Array.from(this.numericParameters.values())}getOptionSettings(){return Array.from(this.optionParameters.values())}_registerOnChangeEvents(A){for(const e of this.flags.keys()){const t=this.flags.get(e);t&&(t.onChangeEmit=n=>A.dispatchEvent(new xe({id:t.id,type:"flag",value:n,target:t})))}for(const e of this.numericParameters.keys()){const t=this.numericParameters.get(e);t&&(t.onChangeEmit=n=>A.dispatchEvent(new xe({id:t.id,type:"number",value:n,target:t})))}for(const e of this.textParameters.keys()){const t=this.textParameters.get(e);t&&(t.onChangeEmit=n=>A.dispatchEvent(new xe({id:t.id,type:"text",value:n,target:t})))}for(const e of this.optionParameters.keys()){const t=this.optionParameters.get(e);t&&(t.onChangeEmit=n=>A.dispatchEvent(new xe({id:t.id,type:"option",value:n,target:t})))}}}var ZA;(function(r){r[r.LockedMouse=0]="LockedMouse",r[r.HoveringMouse=1]="HoveringMouse"})(ZA||(ZA={}));class Ta{constructor(A,e,t){this.closeTimeout=10,this.active=!1,this.countdownActive=!1,this.warnTimer=void 0,this.countDown=0,this.countDownTimer=void 0,this.config=A,this.pixelStreaming=e,this.onDismissAfk=t,this.onAFKTimedOutCallback=()=>{console.log("AFK timed out, did you want to override this callback?")}}onAfkClick(){clearInterval(this.countDownTimer),(this.active||this.countdownActive)&&(this.startAfkWarningTimer(),this.pixelStreaming.dispatchEvent(new ea))}startAfkWarningTimer(){this.config.getNumericSettingValue(D.AFKTimeoutSecs)>0&&this.config.isFlagEnabled(U.AFKDetection)?this.active=!0:this.active=!1,this.resetAfkWarningTimer()}stopAfkWarningTimer(){this.active=!1,this.countdownActive=!1,clearTimeout(this.warnTimer),clearInterval(this.countDownTimer)}pauseAfkWarningTimer(){this.active=!1}resetAfkWarningTimer(){this.active&&this.config.isFlagEnabled(U.AFKDetection)&&(clearTimeout(this.warnTimer),this.warnTimer=setTimeout(()=>this.activateAfkEvent(),1e3*this.config.getNumericSettingValue(D.AFKTimeoutSecs)))}activateAfkEvent(){this.pauseAfkWarningTimer(),this.pixelStreaming.dispatchEvent(new Aa({countDown:this.countDown,dismissAfk:this.onDismissAfk})),this.countDown=this.closeTimeout,this.countdownActive=!0,this.pixelStreaming.dispatchEvent(new Hn({countDown:this.countDown})),this.config.isFlagEnabled(U.HoveringMouseMode)||document.exitPointerLock&&document.exitPointerLock(),this.countDownTimer=setInterval(()=>{this.countDown--,this.countDown==0?(this.pixelStreaming.dispatchEvent(new ta),this.onAFKTimedOutCallback(),u.Log(u.GetStackTrace(),"You have been disconnected due to inactivity"),this.stopAfkWarningTimer()):this.pixelStreaming.dispatchEvent(new Hn({countDown:this.countDown}))},1e3)}}class Ha{constructor(){this.isReceivingFreezeFrame=!1}getDataChannelInstance(){return this}createDataChannel(A,e,t){this.peerConnection=A,this.label=e,this.datachannelOptions=t,t==null&&(this.datachannelOptions={},this.datachannelOptions.ordered=!0),this.dataChannel=this.peerConnection.createDataChannel(this.label,this.datachannelOptions),this.setupDataChannel()}setupDataChannel(){this.dataChannel.binaryType="arraybuffer",this.dataChannel.onopen=A=>this.handleOnOpen(A),this.dataChannel.onclose=A=>this.handleOnClose(A),this.dataChannel.onmessage=A=>this.handleOnMessage(A),this.dataChannel.onerror=A=>this.handleOnError(A)}handleOnOpen(A){var e;u.Log(u.GetStackTrace(),`Data Channel (${this.label}) opened.`,7),this.onOpen((e=this.dataChannel)===null||e===void 0?void 0:e.label,A)}handleOnClose(A){var e;u.Log(u.GetStackTrace(),`Data Channel (${this.label}) closed.`,7),this.onClose((e=this.dataChannel)===null||e===void 0?void 0:e.label,A)}handleOnMessage(A){u.Log(u.GetStackTrace(),`Data Channel (${this.label}) message: ${A}`,8)}handleOnError(A){var e;u.Log(u.GetStackTrace(),`Data Channel (${this.label}) error: ${A}`,7),this.onError((e=this.dataChannel)===null||e===void 0?void 0:e.label,A)}onOpen(A,e){}onClose(A,e){}onError(A,e){}}class La{}class ba{}class Ma{}class bn{}class Da{}class Ra{}class Sd{}class Id{}class Ka{constructor(){this.inboundVideoStats=new ba,this.inboundAudioStats=new La,this.candidatePair=new Da,this.DataChannelStats=new Ma,this.outBoundVideoStats=new Ra,this.sessionStats=new Sd,this.streamStats=new Id,this.codecs=new Map}processStats(A){this.localCandidates=new Array,this.remoteCandidates=new Array,A.forEach(e=>{switch(e.type){case"candidate-pair":this.handleCandidatePair(e);break;case"certificate":case"media-source":case"media-playout":case"outbound-rtp":case"peer-connection":case"remote-inbound-rtp":case"transport":break;case"codec":this.handleCodec(e);break;case"data-channel":this.handleDataChannel(e);break;case"inbound-rtp":this.handleInBoundRTP(e);break;case"local-candidate":this.handleLocalCandidate(e);break;case"remote-candidate":this.handleRemoteCandidate(e);break;case"remote-outbound-rtp":this.handleRemoteOutBound(e);break;case"track":this.handleTrack(e);break;case"stream":this.handleStream(e);break;default:u.Error(u.GetStackTrace(),"unhandled Stat Type"),u.Log(u.GetStackTrace(),e)}})}handleStream(A){this.streamStats=A}handleCandidatePair(A){this.candidatePair.bytesReceived=A.bytesReceived,this.candidatePair.bytesSent=A.bytesSent,this.candidatePair.localCandidateId=A.localCandidateId,this.candidatePair.remoteCandidateId=A.remoteCandidateId,this.candidatePair.nominated=A.nominated,this.candidatePair.readable=A.readable,this.candidatePair.selected=A.selected,this.candidatePair.writable=A.writable,this.candidatePair.state=A.state,this.candidatePair.currentRoundTripTime=A.currentRoundTripTime}handleDataChannel(A){this.DataChannelStats.bytesReceived=A.bytesReceived,this.DataChannelStats.bytesSent=A.bytesSent,this.DataChannelStats.dataChannelIdentifier=A.dataChannelIdentifier,this.DataChannelStats.id=A.id,this.DataChannelStats.label=A.label,this.DataChannelStats.messagesReceived=A.messagesReceived,this.DataChannelStats.messagesSent=A.messagesSent,this.DataChannelStats.protocol=A.protocol,this.DataChannelStats.state=A.state,this.DataChannelStats.timestamp=A.timestamp}handleLocalCandidate(A){const e=new bn;e.label="local-candidate",e.address=A.address,e.port=A.port,e.protocol=A.protocol,e.candidateType=A.candidateType,e.id=A.id,this.localCandidates.push(e)}handleRemoteCandidate(A){const e=new bn;e.label="local-candidate",e.address=A.address,e.port=A.port,e.protocol=A.protocol,e.id=A.id,e.candidateType=A.candidateType,this.remoteCandidates.push(e)}handleInBoundRTP(A){switch(A.kind){case"video":this.inboundVideoStats=A,this.lastVideoStats!=null&&(this.inboundVideoStats.bitrate=8*(this.inboundVideoStats.bytesReceived-this.lastVideoStats.bytesReceived)/(this.inboundVideoStats.timestamp-this.lastVideoStats.timestamp),this.inboundVideoStats.bitrate=Math.floor(this.inboundVideoStats.bitrate)),this.lastVideoStats=Object.assign({},this.inboundVideoStats);break;case"audio":this.inboundAudioStats=A,this.lastAudioStats!=null&&(this.inboundAudioStats.bitrate=8*(this.inboundAudioStats.bytesReceived-this.lastAudioStats.bytesReceived)/(this.inboundAudioStats.timestamp-this.lastAudioStats.timestamp),this.inboundAudioStats.bitrate=Math.floor(this.inboundAudioStats.bitrate)),this.lastAudioStats=Object.assign({},this.inboundAudioStats);break;default:u.Log(u.GetStackTrace(),"Kind is not handled")}}handleRemoteOutBound(A){A.kind==="video"&&(this.outBoundVideoStats.bytesSent=A.bytesSent,this.outBoundVideoStats.id=A.id,this.outBoundVideoStats.localId=A.localId,this.outBoundVideoStats.packetsSent=A.packetsSent,this.outBoundVideoStats.remoteTimestamp=A.remoteTimestamp,this.outBoundVideoStats.timestamp=A.timestamp)}handleTrack(A){A.type!=="track"||A.trackIdentifier!=="video_label"&&A.kind!=="video"||(this.inboundVideoStats.framesDropped=A.framesDropped,this.inboundVideoStats.framesReceived=A.framesReceived,this.inboundVideoStats.frameHeight=A.frameHeight,this.inboundVideoStats.frameWidth=A.frameWidth)}handleCodec(A){const e=A.id,t=`${A.mimeType.replace("video/","").replace("audio/","")}${A.sdpFmtpLine?` ${A.sdpFmtpLine}`:""}`;this.codecs.set(e,t)}handleSessionStatistics(A,e,t){const n=Date.now()-A;this.sessionStats.runTime=new Date(n).toISOString().substr(11,8).toString();const s=e===null?"Not sent yet":e?"true":"false";this.sessionStats.controlsStreamInput=s,this.sessionStats.videoEncoderAvgQP=t}isNumber(A){return typeof A=="number"&&isFinite(A)}}const xa=(Pa={parseRtpParameters:()=>$o.parseRtpParameters,splitSections:()=>$o.splitSections},Mn={},Fr.d(Mn,Pa),Mn);var Pa,Mn,fe,b,Dn=function(r,A,e,t){return new(e||(e=Promise))(function(n,s){function i(l){try{a(t.next(l))}catch(c){s(c)}}function o(l){try{a(t.throw(l))}catch(c){s(c)}}function a(l){var c;l.done?n(l.value):(c=l.value,c instanceof e?c:new e(function(h){h(c)})).then(i,o)}a((t=t.apply(r,[])).next())})};class Td{constructor(A,e,t){this.config=e,this.createPeerConnection(A,t)}createPeerConnection(A,e){this.config.isFlagEnabled(U.ForceTURN)&&(A.iceTransportPolicy="relay",u.Log(u.GetStackTrace(),"Forcing TURN usage by setting ICE Transport Policy in peer connection config.")),this.peerConnection=new RTCPeerConnection(A),this.peerConnection.onsignalingstatechange=t=>this.handleSignalStateChange(t),this.peerConnection.oniceconnectionstatechange=t=>this.handleIceConnectionStateChange(t),this.peerConnection.onicegatheringstatechange=t=>this.handleIceGatheringStateChange(t),this.peerConnection.ontrack=t=>this.handleOnTrack(t),this.peerConnection.onicecandidate=t=>this.handleIceCandidate(t),this.peerConnection.ondatachannel=t=>this.handleDataChannel(t),this.aggregatedStats=new Ka,this.preferredCodec=e,this.updateCodecSelection=!0}createOffer(A,e){return Dn(this,void 0,void 0,function*(){u.Log(u.GetStackTrace(),"Create Offer",6);const t=location.hostname==="localhost"||location.hostname==="127.0.0.1",n=location.protocol==="https:";let s=e.isFlagEnabled(U.UseMic);!s||t||n||(s=!1,u.Error(u.GetStackTrace(),"Microphone access in the browser will not work if you are not on HTTPS or localhost. Disabling mic access."),u.Error(u.GetStackTrace(),"For testing you can enable HTTP microphone access Chrome by visiting chrome://flags/ and enabling 'unsafely-treat-insecure-origin-as-secure'")),this.setupTransceiversAsync(s).finally(()=>{var i;(i=this.peerConnection)===null||i===void 0||i.createOffer(A).then(o=>{var a;this.showTextOverlayConnecting(),o.sdp=this.mungeSDP(o.sdp,s),(a=this.peerConnection)===null||a===void 0||a.setLocalDescription(o),this.onSendWebRTCOffer(o)}).catch(()=>{this.showTextOverlaySetupFailure()})})})}receiveOffer(A,e){var t;return Dn(this,void 0,void 0,function*(){u.Log(u.GetStackTrace(),"Receive Offer",6),(t=this.peerConnection)===null||t===void 0||t.setRemoteDescription(A).then(()=>{const n=location.hostname==="localhost"||location.hostname==="127.0.0.1",s=location.protocol==="https:";let i=e.isFlagEnabled(U.UseMic);!i||n||s||(i=!1,u.Error(u.GetStackTrace(),"Microphone access in the browser will not work if you are not on HTTPS or localhost. Disabling mic access."),u.Error(u.GetStackTrace(),"For testing you can enable HTTP microphone access Chrome by visiting chrome://flags/ and enabling 'unsafely-treat-insecure-origin-as-secure'")),this.config.setOptionSettingOptions(V.PreferredCodec,this.fuzzyIntersectUEAndBrowserCodecs(A)),this.setupTransceiversAsync(i).finally(()=>{var o;(o=this.peerConnection)===null||o===void 0||o.createAnswer().then(a=>{var l;return a.sdp=this.mungeSDP(a.sdp,i),(l=this.peerConnection)===null||l===void 0?void 0:l.setLocalDescription(a)}).then(()=>{var a;this.onSendWebRTCAnswer((a=this.peerConnection)===null||a===void 0?void 0:a.currentLocalDescription)}).catch(()=>{u.Error(u.GetStackTrace(),"createAnswer() failed")})})})})}receiveAnswer(A){var e;(e=this.peerConnection)===null||e===void 0||e.setRemoteDescription(A),this.config.setOptionSettingOptions(V.PreferredCodec,this.fuzzyIntersectUEAndBrowserCodecs(A))}generateStats(){var A;(A=this.peerConnection)===null||A===void 0||A.getStats(null).then(e=>{this.aggregatedStats.processStats(e),this.onVideoStats(this.aggregatedStats),this.updateCodecSelection&&this.config.setOptionSettingValue(V.PreferredCodec,this.aggregatedStats.codecs.get(this.aggregatedStats.inboundVideoStats.codecId))})}close(){this.peerConnection&&(this.peerConnection.close(),this.peerConnection=null)}mungeSDP(A,e){let t=A.replace(/(a=fmtp:\d+ .*level-asymmetry-allowed=.*)\r\n/gm,`$1;x-google-start-bitrate=10000;x-google-max-bitrate=100000\r
|
|
43
|
+
`),n="maxaveragebitrate=510000;";return e&&(n+="sprop-maxcapturerate=48000;"),n+=this.config.isFlagEnabled(U.ForceMonoAudio)?"stereo=0;":"stereo=1;",n+="useinbandfec=1",t=t.replace("useinbandfec=1",n),t}handleOnIce(A){var e;u.Log(u.GetStackTrace(),"peerconnection handleOnIce",6),this.config.isFlagEnabled(U.ForceTURN)&&A.candidate.indexOf("relay")<0?u.Info(u.GetStackTrace(),`Dropping candidate because it was not TURN relay. | Type= ${A.type} | Protocol= ${A.protocol} | Address=${A.address} | Port=${A.port} |`,6):(e=this.peerConnection)===null||e===void 0||e.addIceCandidate(A)}handleSignalStateChange(A){u.Log(u.GetStackTrace(),"signaling state change: "+A,6)}handleIceConnectionStateChange(A){u.Log(u.GetStackTrace(),"ice connection state change: "+A,6),this.onIceConnectionStateChange(A)}handleIceGatheringStateChange(A){u.Log(u.GetStackTrace(),"ice gathering state change: "+JSON.stringify(A),6)}handleOnTrack(A){this.onTrack(A)}handleIceCandidate(A){this.onPeerIceCandidate(A)}handleDataChannel(A){this.onDataChannel(A)}onTrack(A){}onIceConnectionStateChange(A){}onPeerIceCandidate(A){}onDataChannel(A){}fuzzyIntersectUEAndBrowserCodecs(A){const e=new Array,t=this.parseAvailableCodecs(A),n=this.config.getSettingOption(V.PreferredCodec).options;for(const s of t)if(n.includes(s))e.push(s);else{const i=s.split(" ")[0];for(const o of n)if(o.includes(i)){e.push(o);break}}return e}setupTransceiversAsync(A){var e,t,n,s,i,o,a,l,c,h,d,B;return Dn(this,void 0,void 0,function*(){let g=!1;for(const m of(t=(e=this.peerConnection)===null||e===void 0?void 0:e.getTransceivers())!==null&&t!==void 0?t:[])if(m&&m.receiver&&m.receiver.track&&m.receiver.track.kind==="video"){g=!0;break}if(g||(n=this.peerConnection)===null||n===void 0||n.addTransceiver("video",{direction:"recvonly"}),RTCRtpReceiver.getCapabilities&&this.preferredCodec!=""){for(const m of(i=(s=this.peerConnection)===null||s===void 0?void 0:s.getTransceivers())!==null&&i!==void 0?i:[])if(m&&m.receiver&&m.receiver.track&&m.receiver.track.kind==="video"&&m.setCodecPreferences){const F=this.preferredCodec.split(" "),Q=[{mimeType:"video/"+F[0],clockRate:9e4,sdpFmtpLine:F[1]?F[1]:""}];this.config.getSettingOption(V.PreferredCodec).options.filter(y=>y!=this.preferredCodec).forEach(y=>{const L=y.split(" ");Q.push({mimeType:"video/"+L[0],clockRate:9e4,sdpFmtpLine:L[1]?L[1]:""})});for(const y of Q)y.sdpFmtpLine===""&&delete y.sdpFmtpLine;m.setCodecPreferences(Q)}}let f=!1;for(const m of(a=(o=this.peerConnection)===null||o===void 0?void 0:o.getTransceivers())!==null&&a!==void 0?a:[])if(m&&m.receiver&&m.receiver.track&&m.receiver.track.kind==="audio"){f=!0;break}if(A){const m={video:!1,audio:!!A&&{autoGainControl:!1,channelCount:1,echoCancellation:!1,latency:0,noiseSuppression:!1,sampleRate:48e3,sampleSize:16,volume:1}},F=yield navigator.mediaDevices.getUserMedia(m);if(F)if(f){for(const Q of(h=(c=this.peerConnection)===null||c===void 0?void 0:c.getTransceivers())!==null&&h!==void 0?h:[])if(Q&&Q.receiver&&Q.receiver.track&&Q.receiver.track.kind==="audio")for(const y of F.getTracks())y.kind&&y.kind=="audio"&&(Q.sender.replaceTrack(y),Q.direction="sendrecv")}else for(const Q of F.getTracks())Q.kind&&Q.kind=="audio"&&((d=this.peerConnection)===null||d===void 0||d.addTransceiver(Q,{direction:"sendrecv"}));else f||(B=this.peerConnection)===null||B===void 0||B.addTransceiver("audio",{direction:"recvonly"})}else f||(l=this.peerConnection)===null||l===void 0||l.addTransceiver("audio",{direction:"recvonly"})})}onVideoStats(A){}onSendWebRTCOffer(A){}onSendWebRTCAnswer(A){}showTextOverlayConnecting(){}showTextOverlaySetupFailure(){}parseAvailableCodecs(A){if(!RTCRtpReceiver.getCapabilities)return["Only available on Chrome"];const e=[],t=(0,xa.splitSections)(A.sdp);return t.shift(),t.forEach(n=>{const{codecs:s}=(0,xa.parseRtpParameters)(n),i=/(VP\d|H26\d|AV1).*/;s.forEach(o=>{const a=o.name+" "+Object.keys(o.parameters||{}).map(l=>l+"="+o.parameters[l]).join(";");if(i.exec(a)!==null){o.name=="VP9"&&(o.parameters={"profile-id":"0"});const l=o.name+" "+Object.keys(o.parameters||{}).map(c=>c+"="+o.parameters[c]).join(";");e.push(l)}})}),e}}class ka{constructor(){this.PixelStreamingSettings=new Hd,this.EncoderSettings=new Ga,this.WebRTCSettings=new Na}ueCompatible(){this.WebRTCSettings.MaxFPS!=null&&(this.WebRTCSettings.FPS=this.WebRTCSettings.MaxFPS)}}class Hd{}class Ga{}class Na{}class _a{constructor(){this.ReceiptTimeMs=null,this.TransmissionTimeMs=null,this.PreCaptureTimeMs=null,this.PostCaptureTimeMs=null,this.PreEncodeTimeMs=null,this.PostEncodeTimeMs=null,this.EncodeMs=null,this.CaptureToSendMs=null,this.testStartTimeMs=0,this.browserReceiptTimeMs=0,this.latencyExcludingDecode=0,this.testDuration=0,this.networkLatency=0,this.browserSendLatency=0,this.frameDisplayDeltaTimeMs=0,this.endToEndLatency=0,this.encodeLatency=0}setFrameDisplayDeltaTime(A){this.frameDisplayDeltaTimeMs==0&&(this.frameDisplayDeltaTimeMs=Math.round(A))}processFields(){this.EncodeMs!=null||this.PreEncodeTimeMs==null&&this.PostEncodeTimeMs==null||(u.Log(u.GetStackTrace(),`Setting Encode Ms
|
|
271
44
|
${this.PostEncodeTimeMs}
|
|
272
|
-
${this.PreEncodeTimeMs}`,6),this.EncodeMs=this.PostEncodeTimeMs-this.PreEncodeTimeMs),this.CaptureToSendMs!=null||this.PreCaptureTimeMs==null&&this.PostCaptureTimeMs==null||(
|
|
45
|
+
${this.PreEncodeTimeMs}`,6),this.EncodeMs=this.PostEncodeTimeMs-this.PreEncodeTimeMs),this.CaptureToSendMs!=null||this.PreCaptureTimeMs==null&&this.PostCaptureTimeMs==null||(u.Log(u.GetStackTrace(),`Setting CaptureToSendMs Ms
|
|
273
46
|
${this.PostCaptureTimeMs}
|
|
274
|
-
${this.PreCaptureTimeMs}`,6),this.CaptureToSendMs=this.PostCaptureTimeMs-this.PreCaptureTimeMs)}}class li{static setExtensionFromBytes(e,t){t.receiving||(t.mimetype="",t.extension="",t.receiving=!0,t.valid=!1,t.size=0,t.data=[],t.timestampStart=new Date().getTime(),x.Log(x.GetStackTrace(),"Received first chunk of file",6));const o=new TextDecoder("utf-16").decode(e.slice(1));x.Log(x.GetStackTrace(),o,6),t.extension=o}static setMimeTypeFromBytes(e,t){t.receiving||(t.mimetype="",t.extension="",t.receiving=!0,t.valid=!1,t.size=0,t.data=[],t.timestampStart=new Date().getTime(),x.Log(x.GetStackTrace(),"Received first chunk of file",6));const o=new TextDecoder("utf-16").decode(e.slice(1));x.Log(x.GetStackTrace(),o,6),t.mimetype=o}static setContentsFromBytes(e,t){if(!t.receiving)return;t.size=Math.ceil(new DataView(e.slice(1,5).buffer).getInt32(0,!0)/16379);const o=e.slice(5);if(t.data.push(o),x.Log(x.GetStackTrace(),`Received file chunk: ${t.data.length}/${t.size}`,6),t.data.length===t.size){t.receiving=!1,t.valid=!0,x.Log(x.GetStackTrace(),"Received complete file",6);const y=new Date().getTime()-t.timestampStart,B=Math.round(16*t.size*1024/y);x.Log(x.GetStackTrace(),`Average transfer bitrate: ${B}kb/s over ${y/1e3} seconds`,6);const A=new Blob(t.data,{type:t.mimetype}),h=document.createElement("a");h.setAttribute("href",URL.createObjectURL(A)),h.setAttribute("download",`transfer.${t.extension}`),document.body.append(h),h.remove()}else t.data.length>t.size&&(t.receiving=!1,x.Error(x.GetStackTrace(),`Received bigger file than advertised: ${t.data.length}/${t.size}`))}}class hd{constructor(){this.mimetype="",this.extension="",this.receiving=!1,this.size=0,this.data=[],this.valid=!1}}class Ue{}Ue.mainButton=0,Ue.auxiliaryButton=1,Ue.secondaryButton=2,Ue.fourthButton=3,Ue.fifthButton=4;class He{}He.primaryButton=1,He.secondaryButton=2,He.auxiliaryButton=4,He.fourthButton=8,He.fifthButton=16;class Rt{constructor(){this.unregisterCallbacks=[]}addUnregisterCallback(e){this.unregisterCallbacks.push(e)}unregisterAll(){for(const e of this.unregisterCallbacks)e();this.unregisterCallbacks=[]}}class pd{constructor(e,t,o){this.touchEventListenerTracker=new Rt,this.toStreamerMessagesProvider=e,this.videoElementProvider=t,this.coordinateConverter=o;const y=h=>this.onTouchStart(h),B=h=>this.onTouchEnd(h),A=h=>this.onTouchMove(h);document.addEventListener("touchstart",y,{passive:!1}),document.addEventListener("touchend",B,{passive:!1}),document.addEventListener("touchmove",A,{passive:!1}),this.touchEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("touchstart",y)),this.touchEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("touchend",B)),this.touchEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("touchmove",A))}unregisterTouchEvents(){this.touchEventListenerTracker.unregisterAll()}setVideoElementParentClientRect(e){this.videoElementParentClientRect=e}onTouchStart(e){if(this.videoElementProvider.isVideoReady()){if(this.fakeTouchFinger==null){const t=e.changedTouches[0];this.fakeTouchFinger=new gd(t.identifier,t.clientX-this.videoElementParentClientRect.left,t.clientY-this.videoElementParentClientRect.top);const o=this.videoElementProvider.getVideoParentElement(),y=new MouseEvent("mouseenter",t);o.dispatchEvent(y);const B=this.coordinateConverter.normalizeAndQuantizeUnsigned(this.fakeTouchFinger.x,this.fakeTouchFinger.y);this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDown")([Ue.mainButton,B.x,B.y])}e.preventDefault()}}onTouchEnd(e){if(!this.videoElementProvider.isVideoReady())return;const t=this.videoElementProvider.getVideoParentElement(),o=this.toStreamerMessagesProvider.toStreamerHandlers;for(let y=0;y<e.changedTouches.length;y++){const B=e.changedTouches[y];if(B.identifier===this.fakeTouchFinger.id){const A=B.clientX-this.videoElementParentClientRect.left,h=B.clientY-this.videoElementParentClientRect.top,m=this.coordinateConverter.normalizeAndQuantizeUnsigned(A,h);o.get("MouseUp")([Ue.mainButton,m.x,m.y]);const g=new MouseEvent("mouseleave",B);t.dispatchEvent(g),this.fakeTouchFinger=null;break}}e.preventDefault()}onTouchMove(e){if(!this.videoElementProvider.isVideoReady())return;const t=this.toStreamerMessagesProvider.toStreamerHandlers;for(let o=0;o<e.touches.length;o++){const y=e.touches[o];if(y.identifier===this.fakeTouchFinger.id){const B=y.clientX-this.videoElementParentClientRect.left,A=y.clientY-this.videoElementParentClientRect.top,h=this.coordinateConverter.normalizeAndQuantizeUnsigned(B,A),m=this.coordinateConverter.normalizeAndQuantizeSigned(B-this.fakeTouchFinger.x,A-this.fakeTouchFinger.y);t.get("MouseMove")([h.x,h.y,m.x,m.y]),this.fakeTouchFinger.x=B,this.fakeTouchFinger.y=A;break}}e.preventDefault()}}class gd{constructor(e,t,o){this.id=e,this.x=t,this.y=o}}class Le{}Le.backSpace=8,Le.shift=16,Le.control=17,Le.alt=18,Le.rightShift=253,Le.rightControl=254,Le.rightAlt=255;class vd{constructor(e,t,o){this.keyboardEventListenerTracker=new Rt,this.CodeToKeyCode={Escape:27,Digit0:48,Digit1:49,Digit2:50,Digit3:51,Digit4:52,Digit5:53,Digit6:54,Digit7:55,Digit8:56,Digit9:57,Minus:173,Equal:187,Backspace:8,Tab:9,KeyQ:81,KeyW:87,KeyE:69,KeyR:82,KeyT:84,KeyY:89,KeyU:85,KeyI:73,KeyO:79,KeyP:80,BracketLeft:219,BracketRight:221,Enter:13,ControlLeft:17,KeyA:65,KeyS:83,KeyD:68,KeyF:70,KeyG:71,KeyH:72,KeyJ:74,KeyK:75,KeyL:76,Semicolon:186,Quote:222,Backquote:192,ShiftLeft:16,Backslash:220,KeyZ:90,KeyX:88,KeyC:67,KeyV:86,KeyB:66,KeyN:78,KeyM:77,Comma:188,Period:190,Slash:191,ShiftRight:253,AltLeft:18,Space:32,CapsLock:20,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,Pause:19,ScrollLock:145,NumpadDivide:111,NumpadMultiply:106,NumpadSubtract:109,NumpadAdd:107,NumpadDecimal:110,Numpad9:105,Numpad8:104,Numpad7:103,Numpad6:102,Numpad5:101,Numpad4:100,Numpad3:99,Numpad2:98,Numpad1:97,Numpad0:96,NumLock:144,ControlRight:254,AltRight:255,Home:36,End:35,ArrowUp:38,ArrowLeft:37,ArrowRight:39,ArrowDown:40,PageUp:33,PageDown:34,Insert:45,Delete:46,ContextMenu:93},this.toStreamerMessagesProvider=e,this.config=t,this.activeKeysProvider=o}registerKeyBoardEvents(){const e=y=>this.handleOnKeyDown(y),t=y=>this.handleOnKeyUp(y),o=y=>this.handleOnKeyPress(y);document.addEventListener("keydown",e),document.addEventListener("keyup",t),document.addEventListener("keypress",o),this.keyboardEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("keydown",e)),this.keyboardEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("keyup",t)),this.keyboardEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("keypress",o))}unregisterKeyBoardEvents(){this.keyboardEventListenerTracker.unregisterAll()}handleOnKeyDown(e){const t=this.getKeycode(e);t&&(x.Log(x.GetStackTrace(),`key down ${t}, repeat = ${e.repeat}`,6),this.toStreamerMessagesProvider.toStreamerHandlers.get("KeyDown")([this.getKeycode(e),e.repeat?1:0]),this.activeKeysProvider.getActiveKeys().push(t),t===Le.backSpace&&document.dispatchEvent(new KeyboardEvent("keypress",{charCode:Le.backSpace})),this.config.isFlagEnabled($.SuppressBrowserKeys)&&this.isKeyCodeBrowserKey(t)&&e.preventDefault())}handleOnKeyUp(e){const t=this.getKeycode(e);t&&(x.Log(x.GetStackTrace(),`key up ${t}`,6),this.toStreamerMessagesProvider.toStreamerHandlers.get("KeyUp")([t,e.repeat?1:0]),this.config.isFlagEnabled($.SuppressBrowserKeys)&&this.isKeyCodeBrowserKey(t)&&e.preventDefault())}handleOnKeyPress(e){if(!("charCode"in e))return void x.Warning(x.GetStackTrace(),"KeyboardEvent.charCode is deprecated in this browser, cannot send key press.");const t=e.charCode;x.Log(x.GetStackTrace(),`key press ${t}`,6),this.toStreamerMessagesProvider.toStreamerHandlers.get("KeyPress")([t])}getKeycode(e){if(!("keyCode"in e)){const t=e;return t.code in this.CodeToKeyCode?this.CodeToKeyCode[t.code]:(x.Warning(x.GetStackTrace(),`Keyboard code of ${t.code} is not supported in our mapping, ignoring this key.`),null)}return e.keyCode===Le.shift&&e.code==="ShiftRight"?Le.rightShift:e.keyCode===Le.control&&e.code==="ControlRight"?Le.rightControl:e.keyCode===Le.alt&&e.code==="AltRight"?Le.rightAlt:e.keyCode}isKeyCodeBrowserKey(e){return e>=112&&e<=123||e===9}}class yd{constructor(e,t,o){this.x=0,this.y=0,this.updateMouseMovePositionEvent=B=>{this.updateMouseMovePosition(B)},this.mouseEventListenerTracker=new Rt,this.videoElementProvider=e,this.mouseController=t,this.activeKeysProvider=o;const y=this.videoElementProvider.getVideoParentElement();this.x=y.getBoundingClientRect().width/2,this.y=y.getBoundingClientRect().height/2,this.coord=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(this.x,this.y)}unregisterMouseEvents(){this.mouseEventListenerTracker.unregisterAll()}lockStateChange(){const e=this.videoElementProvider.getVideoParentElement(),t=this.mouseController.toStreamerMessagesProvider.toStreamerHandlers;if(document.pointerLockElement===e||document.mozPointerLockElement===e)x.Log(x.GetStackTrace(),"Pointer locked",6),document.addEventListener("mousemove",this.updateMouseMovePositionEvent,!1),this.mouseEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("mousemove",this.updateMouseMovePositionEvent,!1));else{x.Log(x.GetStackTrace(),"The pointer lock status is now unlocked",6),document.removeEventListener("mousemove",this.updateMouseMovePositionEvent,!1);let o=this.activeKeysProvider.getActiveKeys();const y=new Set(o),B=[];y.forEach(A=>{}),B.forEach(A=>{t.get("KeyUp")([A])}),o=[]}}updateMouseMovePosition(e){if(!this.videoElementProvider.isVideoReady())return;const t=this.mouseController.toStreamerMessagesProvider.toStreamerHandlers,o=this.videoElementProvider.getVideoParentElement().clientWidth,y=this.videoElementProvider.getVideoParentElement().clientHeight;this.x+=e.movementX,this.y+=e.movementY,this.x>o&&(this.x-=o),this.y>y&&(this.y-=y),this.x<0&&(this.x=o+this.x),this.y<0&&(this.y=y-this.y),this.coord=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(this.x,this.y);const B=this.mouseController.coordinateConverter.normalizeAndQuantizeSigned(e.movementX,e.movementY);t.get("MouseMove")([this.coord.x,this.coord.y,B.x,B.y])}handleMouseDown(e){this.videoElementProvider.isVideoReady()&&this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDown")([e.button,this.coord.x,this.coord.y])}handleMouseUp(e){this.videoElementProvider.isVideoReady()&&this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp")([e.button,this.coord.x,this.coord.y])}handleMouseWheel(e){this.videoElementProvider.isVideoReady()&&this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseWheel")([e.wheelDelta,this.coord.x,this.coord.y])}handleMouseDouble(e){this.videoElementProvider.isVideoReady()&&this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDouble")([e.button,this.coord.x,this.coord.y])}handlePressMouseButtons(e){this.videoElementProvider.isVideoReady()&&this.mouseController.pressMouseButtons(e.buttons,this.x,this.y)}handleReleaseMouseButtons(e){this.videoElementProvider.isVideoReady()&&this.mouseController.releaseMouseButtons(e.buttons,this.x,this.y)}}class md{constructor(e){this.mouseController=e}unregisterMouseEvents(){}updateMouseMovePosition(e){if(!this.mouseController.videoElementProvider.isVideoReady())return;x.Log(x.GetStackTrace(),"MouseMove",6);const t=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(e.offsetX,e.offsetY),o=this.mouseController.coordinateConverter.normalizeAndQuantizeSigned(e.movementX,e.movementY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseMove")([t.x,t.y,o.x,o.y]),e.preventDefault()}handleMouseDown(e){if(!this.mouseController.videoElementProvider.isVideoReady())return;x.Log(x.GetStackTrace(),"onMouse Down",6);const t=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(e.offsetX,e.offsetY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDown")([e.button,t.x,t.y]),e.preventDefault()}handleMouseUp(e){if(!this.mouseController.videoElementProvider.isVideoReady())return;x.Log(x.GetStackTrace(),"onMouse Up",6);const t=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(e.offsetX,e.offsetY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp")([e.button,t.x,t.y]),e.preventDefault()}handleContextMenu(e){this.mouseController.videoElementProvider.isVideoReady()&&e.preventDefault()}handleMouseWheel(e){if(!this.mouseController.videoElementProvider.isVideoReady())return;const t=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(e.offsetX,e.offsetY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseWheel")([e.wheelDelta,t.x,t.y]),e.preventDefault()}handleMouseDouble(e){if(!this.mouseController.videoElementProvider.isVideoReady())return;const t=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(e.offsetX,e.offsetY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDouble")([e.button,t.x,t.y])}handlePressMouseButtons(e){this.mouseController.videoElementProvider.isVideoReady()&&(x.Log(x.GetStackTrace(),"onMouse press",6),this.mouseController.pressMouseButtons(e.buttons,e.offsetX,e.offsetY))}handleReleaseMouseButtons(e){this.mouseController.videoElementProvider.isVideoReady()&&(x.Log(x.GetStackTrace(),"onMouse release",6),this.mouseController.releaseMouseButtons(e.buttons,e.offsetX,e.offsetY))}}class wd{constructor(e,t,o,y){this.mouseEventListenerTracker=new Rt,this.toStreamerMessagesProvider=e,this.coordinateConverter=o,this.videoElementProvider=t,this.activeKeysProvider=y,this.registerMouseEnterAndLeaveEvents()}unregisterMouseEvents(){this.mouseEventListenerTracker.unregisterAll()}registerLockedMouseEvents(e){const t=this.videoElementProvider.getVideoParentElement(),o=new yd(this.videoElementProvider,e,this.activeKeysProvider);if(t.requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock,document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock,t.requestPointerLock){const g=()=>{t.requestPointerLock()};t.addEventListener("click",g),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("click",g))}const y=()=>o.lockStateChange();document.addEventListener("pointerlockchange",y,!1),document.addEventListener("mozpointerlockchange",y,!1),this.mouseEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("pointerlockchange",y,!1)),this.mouseEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("mozpointerlockchange",y,!1));const B=g=>o.handleMouseDown(g),A=g=>o.handleMouseUp(g),h=g=>o.handleMouseWheel(g),m=g=>o.handleMouseDouble(g);t.addEventListener("mousedown",B),t.addEventListener("mouseup",A),t.addEventListener("wheel",h),t.addEventListener("dblclick",m),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("mousedown",B)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("mouseup",A)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("wheel",h)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("dblclick",m)),this.mouseEventListenerTracker.addUnregisterCallback(()=>o.unregisterMouseEvents()),this.mouseEventListenerTracker.addUnregisterCallback(()=>{!document.exitPointerLock||document.pointerLockElement!==t&&document.mozPointerLockElement!==t||document.exitPointerLock()})}registerHoveringMouseEvents(e){const t=this.videoElementProvider.getVideoParentElement(),o=new md(e),y=w=>o.updateMouseMovePosition(w),B=w=>o.handleMouseDown(w),A=w=>o.handleMouseUp(w),h=w=>o.handleContextMenu(w),m=w=>o.handleMouseWheel(w),g=w=>o.handleMouseDouble(w);t.addEventListener("mousemove",y),t.addEventListener("mousedown",B),t.addEventListener("mouseup",A),t.addEventListener("contextmenu",h),t.addEventListener("wheel",m),t.addEventListener("dblclick",g),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("mousemove",y)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("mousedown",B)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("mouseup",A)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("contextmenu",h)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("wheel",m)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("dblclick",g)),this.mouseEventListenerTracker.addUnregisterCallback(()=>o.unregisterMouseEvents())}registerMouseEnterAndLeaveEvents(){const e=this.videoElementProvider.getVideoParentElement(),t=y=>{this.videoElementProvider.isVideoReady()&&(x.Log(x.GetStackTrace(),"Mouse Entered",6),this.sendMouseEnter(),this.pressMouseButtons(y.buttons,y.x,y.y))},o=y=>{this.videoElementProvider.isVideoReady()&&(x.Log(x.GetStackTrace(),"Mouse Left",6),this.sendMouseLeave(),this.releaseMouseButtons(y.buttons,y.x,y.y))};e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",o),this.mouseEventListenerTracker.addUnregisterCallback(()=>e.removeEventListener("mouseenter",t)),this.mouseEventListenerTracker.addUnregisterCallback(()=>e.removeEventListener("mouseleave",o))}releaseMouseButtons(e,t,o){const y=this.coordinateConverter.normalizeAndQuantizeUnsigned(t,o);e&He.primaryButton&&this.sendMouseUp(Ue.mainButton,y.x,y.y),e&He.secondaryButton&&this.sendMouseUp(Ue.secondaryButton,y.x,y.y),e&He.auxiliaryButton&&this.sendMouseUp(Ue.auxiliaryButton,y.x,y.y),e&He.fourthButton&&this.sendMouseUp(Ue.fourthButton,y.x,y.y),e&He.fifthButton&&this.sendMouseUp(Ue.fifthButton,y.x,y.y)}pressMouseButtons(e,t,o){if(!this.videoElementProvider.isVideoReady())return;const y=this.coordinateConverter.normalizeAndQuantizeUnsigned(t,o);e&He.primaryButton&&this.sendMouseDown(Ue.mainButton,y.x,y.y),e&He.secondaryButton&&this.sendMouseDown(Ue.secondaryButton,y.x,y.y),e&He.auxiliaryButton&&this.sendMouseDown(Ue.auxiliaryButton,y.x,y.y),e&He.fourthButton&&this.sendMouseDown(Ue.fourthButton,y.x,y.y),e&He.fifthButton&&this.sendMouseDown(Ue.fifthButton,y.x,y.y)}sendMouseEnter(){this.videoElementProvider.isVideoReady()&&this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseEnter")()}sendMouseLeave(){this.videoElementProvider.isVideoReady()&&this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseLeave")()}sendMouseDown(e,t,o){this.videoElementProvider.isVideoReady()&&(x.Log(x.GetStackTrace(),`mouse button ${e} down at (${t}, ${o})`,6),this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDown")([e,t,o]))}sendMouseUp(e,t,o){if(!this.videoElementProvider.isVideoReady())return;x.Log(x.GetStackTrace(),`mouse button ${e} up at (${t}, ${o})`,6);const y=this.coordinateConverter.normalizeAndQuantizeUnsigned(t,o);this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp")([e,y.x,y.y])}}class Bd{constructor(e,t,o){this.fingers=[9,8,7,6,5,4,3,2,1,0],this.fingerIds=new Map,this.maxByteValue=255,this.touchEventListenerTracker=new Rt,this.toStreamerMessagesProvider=e,this.videoElementProvider=t,this.coordinateConverter=o,this.videoElementParent=t.getVideoElement();const y=m=>this.onTouchStart(m),B=m=>this.onTouchEnd(m),A=m=>this.onTouchMove(m);this.videoElementParent.addEventListener("touchstart",y,{passive:!1}),this.videoElementParent.addEventListener("touchend",B,{passive:!1}),this.videoElementParent.addEventListener("touchmove",A,{passive:!1}),this.touchEventListenerTracker.addUnregisterCallback(()=>this.videoElementParent.removeEventListener("touchstart",y)),this.touchEventListenerTracker.addUnregisterCallback(()=>this.videoElementParent.removeEventListener("touchend",B)),this.touchEventListenerTracker.addUnregisterCallback(()=>this.videoElementParent.removeEventListener("touchmove",A)),x.Log(x.GetStackTrace(),"Touch Events Registered",6);const h=m=>{m.preventDefault()};document.addEventListener("touchmove",h,{passive:!1}),this.touchEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("touchmove",h))}unregisterTouchEvents(){this.touchEventListenerTracker.unregisterAll()}rememberTouch(e){const t=this.fingers.pop();t===void 0&&x.Log(x.GetStackTrace(),"exhausted touch identifiers",6),this.fingerIds.set(e.identifier,t)}forgetTouch(e){this.fingers.push(this.fingerIds.get(e.identifier)),this.fingers.sort(function(t,o){return o-t}),this.fingerIds.delete(e.identifier)}onTouchStart(e){if(this.videoElementProvider.isVideoReady()){for(let t=0;t<e.changedTouches.length;t++)this.rememberTouch(e.changedTouches[t]);x.Log(x.GetStackTrace(),"touch start",6),this.emitTouchData("TouchStart",e.changedTouches),e.preventDefault()}}onTouchEnd(e){if(this.videoElementProvider.isVideoReady()){x.Log(x.GetStackTrace(),"touch end",6),this.emitTouchData("TouchEnd",e.changedTouches);for(let t=0;t<e.changedTouches.length;t++)this.forgetTouch(e.changedTouches[t]);e.preventDefault()}}onTouchMove(e){this.videoElementProvider.isVideoReady()&&(x.Log(x.GetStackTrace(),"touch move",6),this.emitTouchData("TouchMove",e.touches),e.preventDefault())}emitTouchData(e,t){if(!this.videoElementProvider.isVideoReady())return;const o=this.videoElementProvider.getVideoParentElement().getBoundingClientRect(),y=this.toStreamerMessagesProvider.toStreamerHandlers;for(let B=0;B<t.length;B++){const h=t[B],m=h.clientX-o.left,g=h.clientY-o.top;x.Log(x.GetStackTrace(),`F${this.fingerIds.get(h.identifier)}=(${m}, ${g})`,6);const w=this.coordinateConverter.normalizeAndQuantizeUnsigned(m,g);switch(e){case"TouchStart":y.get("TouchStart")([1,w.x,w.y,this.fingerIds.get(h.identifier),this.maxByteValue*h.force,w.inRange?1:0]);break;case"TouchEnd":y.get("TouchEnd")([1,w.x,w.y,this.fingerIds.get(h.identifier),this.maxByteValue*h.force,w.inRange?1:0]);break;case"TouchMove":y.get("TouchMove")([1,w.x,w.y,this.fingerIds.get(h.identifier),this.maxByteValue*h.force,w.inRange?1:0])}}}}class Cd{constructor(e){this.gamePadEventListenerTracker=new Rt,this.toStreamerMessagesProvider=e,this.requestAnimationFrame=(window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.requestAnimationFrame).bind(window);const t=window;if("GamepadEvent"in t){const o=B=>this.gamePadConnectHandler(B),y=B=>this.gamePadDisconnectHandler(B);window.addEventListener("gamepadconnected",o),window.addEventListener("gamepaddisconnected",y),this.gamePadEventListenerTracker.addUnregisterCallback(()=>window.removeEventListener("gamepadconnected",o)),this.gamePadEventListenerTracker.addUnregisterCallback(()=>window.removeEventListener("gamepaddisconnected",y))}else if("WebKitGamepadEvent"in t){const o=B=>this.gamePadConnectHandler(B),y=B=>this.gamePadDisconnectHandler(B);window.addEventListener("webkitgamepadconnected",o),window.addEventListener("webkitgamepaddisconnected",y),this.gamePadEventListenerTracker.addUnregisterCallback(()=>window.removeEventListener("webkitgamepadconnected",o)),this.gamePadEventListenerTracker.addUnregisterCallback(()=>window.removeEventListener("webkitgamepaddisconnected",y))}if(this.controllers=[],navigator.getGamepads)for(const o of navigator.getGamepads())o&&this.gamePadConnectHandler(new GamepadEvent("gamepadconnected",{gamepad:o}))}unregisterGamePadEvents(){this.gamePadEventListenerTracker.unregisterAll();for(const e of this.controllers)e.id!==void 0&&this.onGamepadDisconnected(e.id);this.controllers=[],this.onGamepadConnected=()=>{},this.onGamepadDisconnected=()=>{}}gamePadConnectHandler(e){x.Log(x.GetStackTrace(),"Gamepad connect handler",6);const t=e.gamepad,o={currentState:t,prevState:t,id:void 0};this.controllers.push(o),this.controllers[t.index].currentState=t,this.controllers[t.index].prevState=t,x.Log(x.GetStackTrace(),"gamepad: "+t.id+" connected",6),window.requestAnimationFrame(()=>this.updateStatus()),this.onGamepadConnected()}gamePadDisconnectHandler(e){x.Log(x.GetStackTrace(),"Gamepad disconnect handler",6),x.Log(x.GetStackTrace(),"gamepad: "+e.gamepad.id+" disconnected",6);const t=this.controllers[e.gamepad.index];delete this.controllers[e.gamepad.index],this.controllers=this.controllers.filter(o=>o!==void 0),this.onGamepadDisconnected(t.id)}scanGamePads(){const e=navigator.getGamepads?navigator.getGamepads():navigator.webkitGetGamepads?navigator.webkitGetGamepads():[];for(let t=0;t<e.length;t++)e[t]&&e[t].index in this.controllers&&(this.controllers[e[t].index].currentState=e[t])}updateStatus(){this.scanGamePads();const e=this.toStreamerMessagesProvider.toStreamerHandlers;for(const t of this.controllers){const o=t.id===void 0?this.controllers.indexOf(t):t.id,y=t.currentState;for(let B=0;B<t.currentState.buttons.length;B++){const A=t.currentState.buttons[B],h=t.prevState.buttons[B];A.pressed?B==Dt.LeftTrigger?e.get("GamepadAnalog")([o,5,A.value]):B==Dt.RightTrigger?e.get("GamepadAnalog")([o,6,A.value]):e.get("GamepadButtonPressed")([o,B,h.pressed?1:0]):!A.pressed&&h.pressed&&(B==Dt.LeftTrigger?e.get("GamepadAnalog")([o,5,0]):B==Dt.RightTrigger?e.get("GamepadAnalog")([o,6,0]):e.get("GamepadButtonReleased")([o,B]))}for(let B=0;B<y.axes.length;B+=2){const A=parseFloat(y.axes[B].toFixed(4)),h=-parseFloat(y.axes[B+1].toFixed(4));e.get("GamepadAnalog")([o,B+1,A]),e.get("GamepadAnalog")([o,B+2,h])}this.controllers[o].prevState=y}this.controllers.length>0&&this.requestAnimationFrame(()=>this.updateStatus())}onGamepadResponseReceived(e){for(const t of this.controllers)if(t.id===void 0){t.id=e;break}}onGamepadConnected(){}onGamepadDisconnected(e){}}(function(v){v[v.RightClusterBottomButton=0]="RightClusterBottomButton",v[v.RightClusterRightButton=1]="RightClusterRightButton",v[v.RightClusterLeftButton=2]="RightClusterLeftButton",v[v.RightClusterTopButton=3]="RightClusterTopButton",v[v.LeftShoulder=4]="LeftShoulder",v[v.RightShoulder=5]="RightShoulder",v[v.LeftTrigger=6]="LeftTrigger",v[v.RightTrigger=7]="RightTrigger",v[v.SelectOrBack=8]="SelectOrBack",v[v.StartOrForward=9]="StartOrForward",v[v.LeftAnalogPress=10]="LeftAnalogPress",v[v.RightAnalogPress=11]="RightAnalogPress",v[v.LeftClusterTopButton=12]="LeftClusterTopButton",v[v.LeftClusterBottomButton=13]="LeftClusterBottomButton",v[v.LeftClusterLeftButton=14]="LeftClusterLeftButton",v[v.LeftClusterRightButton=15]="LeftClusterRightButton",v[v.CentreButton=16]="CentreButton",v[v.LeftStickHorizontal=0]="LeftStickHorizontal",v[v.LeftStickVertical=1]="LeftStickVertical",v[v.RightStickHorizontal=2]="RightStickHorizontal",v[v.RightStickVertical=3]="RightStickVertical"})(Dt||(Dt={}));class bd{constructor(e,t,o){this.activeKeys=new _d,this.toStreamerMessagesProvider=e,this.videoElementProvider=t,this.coordinateConverter=o}registerKeyBoard(e){x.Log(x.GetStackTrace(),"Register Keyboard Events",7);const t=new vd(this.toStreamerMessagesProvider,e,this.activeKeys);return t.registerKeyBoardEvents(),t}registerMouse(e){x.Log(x.GetStackTrace(),"Register Mouse Events",7);const t=new wd(this.toStreamerMessagesProvider,this.videoElementProvider,this.coordinateConverter,this.activeKeys);switch(e){case bt.LockedMouse:t.registerLockedMouseEvents(t);break;case bt.HoveringMouse:t.registerHoveringMouseEvents(t);break;default:x.Info(x.GetStackTrace(),"unknown Control Scheme Type Defaulting to Locked Mouse Events"),t.registerLockedMouseEvents(t)}return t}registerTouch(e,t){if(x.Log(x.GetStackTrace(),"Registering Touch",6),e){const o=new pd(this.toStreamerMessagesProvider,this.videoElementProvider,this.coordinateConverter);return o.setVideoElementParentClientRect(t),o}return new Bd(this.toStreamerMessagesProvider,this.videoElementProvider,this.coordinateConverter)}registerGamePad(){return x.Log(x.GetStackTrace(),"Register Game Pad",7),new Cd(this.toStreamerMessagesProvider)}}class _d{constructor(){this.activeKeys=[],this.activeKeys=[]}getActiveKeys(){return this.activeKeys}}class Ed{constructor(e,t){this.lastTimeResized=new Date().getTime(),this.videoElement=document.createElement("video"),this.config=t,this.videoElement.id="streamingVideo",this.videoElement.disablePictureInPicture=!0,this.videoElement.playsInline=!0,this.videoElement.style.width="100%",this.videoElement.style.height="100%",this.videoElement.style.position="absolute",this.videoElement.style.pointerEvents="all",e.appendChild(this.videoElement),this.onResizePlayerCallback=()=>{console.log("Resolution changed, restyling player, did you forget to override this function?")},this.onMatchViewportResolutionCallback=()=>{console.log("Resolution changed and match viewport resolution is turned on, did you forget to override this function?")},this.videoElement.onclick=()=>{this.audioElement!=null&&this.audioElement.paused&&this.audioElement.play(),this.videoElement.paused&&this.videoElement.play()},this.videoElement.onloadedmetadata=()=>{this.onVideoInitialized()},window.addEventListener("resize",()=>this.resizePlayerStyle(),!0),window.addEventListener("orientationchange",()=>this.onOrientationChange())}setAudioElement(e){this.audioElement=e}play(){return this.videoElement.muted=this.config.isFlagEnabled($.StartVideoMuted),this.videoElement.autoplay=this.config.isFlagEnabled($.AutoPlayVideo),this.videoElement.play()}isPaused(){return this.videoElement.paused}isVideoReady(){return this.videoElement.readyState!==void 0&&this.videoElement.readyState>0}hasVideoSource(){return this.videoElement.srcObject!==void 0&&this.videoElement.srcObject!==null}getVideoElement(){return this.videoElement}getVideoParentElement(){return this.videoElement.parentElement}setVideoEnabled(e){this.videoElement.srcObject.getTracks().forEach(t=>t.enabled=e)}onVideoInitialized(){}onOrientationChange(){clearTimeout(this.orientationChangeTimeout),this.orientationChangeTimeout=window.setTimeout(()=>{this.resizePlayerStyle()},500)}resizePlayerStyle(){const e=this.getVideoParentElement();e&&(this.updateVideoStreamSize(),e.classList.contains("fixed-size")||this.resizePlayerStyleToFillParentElement(),this.onResizePlayerCallback())}resizePlayerStyleToFillParentElement(){this.getVideoParentElement().setAttribute("style","top: 0px; left: 0px; width: 100%; height: 100%; cursor: default;")}updateVideoStreamSize(){if(this.config.isFlagEnabled($.MatchViewportResolution))if(new Date().getTime()-this.lastTimeResized>300){const e=this.getVideoParentElement();if(!e)return;this.onMatchViewportResolutionCallback(e.clientWidth,e.clientHeight),this.lastTimeResized=new Date().getTime()}else x.Log(x.GetStackTrace(),"Resizing too often - skipping",6),clearTimeout(this.resizeTimeoutHandle),this.resizeTimeoutHandle=window.setTimeout(()=>this.updateVideoStreamSize(),100)}}class Bc{constructor(){this.map=new Map,this.reverseMap=new Map}getFromKey(e){return this.map.get(e)}getFromValue(e){return this.reverseMap.get(e)}add(e,t){this.map.set(e,t),this.reverseMap.set(t,e)}remove(e,t){this.map.delete(e),this.reverseMap.delete(t)}}class Fd{constructor(){this.toStreamerHandlers=new Map,this.fromStreamerHandlers=new Map,this.toStreamerMessages=new Bc,this.fromStreamerMessages=new Bc}populateDefaultProtocol(){this.toStreamerMessages.add("IFrameRequest",{id:0,byteLength:0,structure:[]}),this.toStreamerMessages.add("RequestQualityControl",{id:1,byteLength:0,structure:[]}),this.toStreamerMessages.add("FpsRequest",{id:2,byteLength:0,structure:[]}),this.toStreamerMessages.add("AverageBitrateRequest",{id:3,byteLength:0,structure:[]}),this.toStreamerMessages.add("StartStreaming",{id:4,byteLength:0,structure:[]}),this.toStreamerMessages.add("StopStreaming",{id:5,byteLength:0,structure:[]}),this.toStreamerMessages.add("LatencyTest",{id:6,byteLength:0,structure:[]}),this.toStreamerMessages.add("RequestInitialSettings",{id:7,byteLength:0,structure:[]}),this.toStreamerMessages.add("TestEcho",{id:8,byteLength:0,structure:[]}),this.toStreamerMessages.add("UIInteraction",{id:50,byteLength:0,structure:[]}),this.toStreamerMessages.add("Command",{id:51,byteLength:0,structure:[]}),this.toStreamerMessages.add("KeyDown",{id:60,byteLength:2,structure:["uint8","uint8"]}),this.toStreamerMessages.add("KeyUp",{id:61,byteLength:1,structure:["uint8"]}),this.toStreamerMessages.add("KeyPress",{id:62,byteLength:2,structure:["uint16"]}),this.toStreamerMessages.add("MouseEnter",{id:70,byteLength:0,structure:[]}),this.toStreamerMessages.add("MouseLeave",{id:71,byteLength:0,structure:[]}),this.toStreamerMessages.add("MouseDown",{id:72,byteLength:5,structure:["uint8","uint16","uint16"]}),this.toStreamerMessages.add("MouseUp",{id:73,byteLength:5,structure:["uint8","uint16","uint16"]}),this.toStreamerMessages.add("MouseMove",{id:74,byteLength:8,structure:["uint16","uint16","int16","int16"]}),this.toStreamerMessages.add("MouseWheel",{id:75,byteLength:6,structure:["int16","uint16","uint16"]}),this.toStreamerMessages.add("MouseDouble",{id:76,byteLength:5,structure:["uint8","uint16","uint16"]}),this.toStreamerMessages.add("TouchStart",{id:80,byteLength:8,structure:["uint8","uint16","uint16","uint8","uint8","uint8"]}),this.toStreamerMessages.add("TouchEnd",{id:81,byteLength:8,structure:["uint8","uint16","uint16","uint8","uint8","uint8"]}),this.toStreamerMessages.add("TouchMove",{id:82,byteLength:8,structure:["uint8","uint16","uint16","uint8","uint8","uint8"]}),this.toStreamerMessages.add("GamepadConnected",{id:93,byteLength:0,structure:[]}),this.toStreamerMessages.add("GamepadButtonPressed",{id:90,byteLength:3,structure:["uint8","uint8","uint8"]}),this.toStreamerMessages.add("GamepadButtonReleased",{id:91,byteLength:3,structure:["uint8","uint8","uint8"]}),this.toStreamerMessages.add("GamepadAnalog",{id:92,byteLength:10,structure:["uint8","uint8","double"]}),this.toStreamerMessages.add("GamepadDisconnected",{id:94,byteLength:1,structure:["uint8"]}),this.fromStreamerMessages.add("QualityControlOwnership",0),this.fromStreamerMessages.add("Response",1),this.fromStreamerMessages.add("Command",2),this.fromStreamerMessages.add("FreezeFrame",3),this.fromStreamerMessages.add("UnfreezeFrame",4),this.fromStreamerMessages.add("VideoEncoderAvgQP",5),this.fromStreamerMessages.add("LatencyTest",6),this.fromStreamerMessages.add("InitialSettings",7),this.fromStreamerMessages.add("FileExtension",8),this.fromStreamerMessages.add("FileMimeType",9),this.fromStreamerMessages.add("FileContents",10),this.fromStreamerMessages.add("TestEcho",11),this.fromStreamerMessages.add("InputControlOwnership",12),this.fromStreamerMessages.add("GamepadResponse",13),this.fromStreamerMessages.add("Protocol",255)}registerMessageHandler(e,t,o){switch(e){case Ae.ToStreamer:this.toStreamerHandlers.set(t,o);break;case Ae.FromStreamer:this.fromStreamerHandlers.set(t,o);break;default:x.Log(x.GetStackTrace(),`Unknown message direction ${e}`)}}}(function(v){v[v.ToStreamer=0]="ToStreamer",v[v.FromStreamer=1]="FromStreamer"})(Ae||(Ae={}));class Qd{constructor(){this.responseEventListeners=new Map}addResponseEventListener(e,t){this.responseEventListeners.set(e,t)}removeResponseEventListener(e){this.responseEventListeners.delete(e)}onResponse(e){x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.Response",6);const t=new TextDecoder("utf-16").decode(e.slice(1));x.Log(x.GetStackTrace(),t,6),this.responseEventListeners.forEach(o=>{o(t)})}}class Sd{constructor(e,t){this.dataChannelSender=e,this.toStreamerMessagesMapProvider=t}sendLatencyTest(e){this.sendDescriptor("LatencyTest",e)}emitCommand(e){this.sendDescriptor("Command",e)}emitUIInteraction(e){this.sendDescriptor("UIInteraction",e)}sendDescriptor(e,t){const o=JSON.stringify(t),y=this.toStreamerMessagesMapProvider.toStreamerMessages.getFromKey(e);y===void 0&&x.Error(x.GetStackTrace(),`Attempted to emit descriptor with message type: ${e}, but the frontend hasn't been configured to send such a message. Check you've added the message type in your cpp`),x.Log(x.GetStackTrace(),"Sending: "+t,6);const B=new DataView(new ArrayBuffer(3+2*o.length));let A=0;B.setUint8(A,y.id),A++,B.setUint16(A,o.length,!0),A+=2;for(let h=0;h<o.length;h++)B.setUint16(A,o.charCodeAt(h),!0),A+=2;this.dataChannelSender.canSend()?this.dataChannelSender.sendData(B.buffer):x.Info(x.GetStackTrace(),`Data channel cannot send yet, skipping sending descriptor message: ${e} - ${o}`)}}class Ud{constructor(e,t){this.dataChannelSender=e,this.toStreamerMessagesMapProvider=t}sendMessageToStreamer(e,t){t===void 0&&(t=[]);const o=this.toStreamerMessagesMapProvider.toStreamerMessages.getFromKey(e);if(o===void 0)return void x.Error(x.GetStackTrace(),`Attempted to send a message to the streamer with message type: ${e}, but the frontend hasn't been configured to send such a message. Check you've added the message type in your cpp`);const y=new DataView(new ArrayBuffer(o.byteLength+1));y.setUint8(0,o.id);let B=1;t.forEach((A,h)=>{switch(o.structure[h]){case"uint8":y.setUint8(B,A),B+=1;break;case"uint16":y.setUint16(B,A,!0),B+=2;break;case"int16":y.setInt16(B,A,!0),B+=2;break;case"float":y.setFloat32(B,A,!0),B+=4;break;case"double":y.setFloat64(B,A,!0),B+=8}}),this.dataChannelSender.canSend()?this.dataChannelSender.sendData(y.buffer):x.Info(x.GetStackTrace(),`Data channel cannot send yet, skipping sending message: ${e} - ${new Uint8Array(y.buffer)}`)}}class Td{constructor(e){this.sendMessageController=e}SendRequestQualityControl(){this.sendMessageController.sendMessageToStreamer("RequestQualityControl")}SendMaxFpsRequest(){this.sendMessageController.sendMessageToStreamer("FpsRequest")}SendAverageBitrateRequest(){this.sendMessageController.sendMessageToStreamer("AverageBitrateRequest")}SendStartStreaming(){this.sendMessageController.sendMessageToStreamer("StartStreaming")}SendStopStreaming(){this.sendMessageController.sendMessageToStreamer("StopStreaming")}SendRequestInitialSettings(){this.sendMessageController.sendMessageToStreamer("RequestInitialSettings")}}class Id{constructor(e){this.dataChannelProvider=e}canSend(){return this.dataChannelProvider.getDataChannelInstance().dataChannel!==void 0&&this.dataChannelProvider.getDataChannelInstance().dataChannel.readyState=="open"}sendData(e){const t=this.dataChannelProvider.getDataChannelInstance();t.dataChannel.readyState=="open"?(t.dataChannel.send(e),x.Log(x.GetStackTrace(),`Message Sent: ${new Uint8Array(e)}`,6),this.resetAfkWarningTimerOnDataSend()):x.Error(x.GetStackTrace(),`Message Failed: ${new Uint8Array(e)}`)}resetAfkWarningTimerOnDataSend(){}}class Pd{constructor(e){this.videoElementProvider=e,this.normalizeAndQuantizeUnsignedFunc=()=>{throw new Error("Normalize and quantize unsigned, method not implemented.")},this.normalizeAndQuantizeSignedFunc=()=>{throw new Error("Normalize and unquantize signed, method not implemented.")},this.denormalizeAndUnquantizeUnsignedFunc=()=>{throw new Error("Denormalize and unquantize unsigned, method not implemented.")}}normalizeAndQuantizeUnsigned(e,t){return this.normalizeAndQuantizeUnsignedFunc(e,t)}unquantizeAndDenormalizeUnsigned(e,t){return this.denormalizeAndUnquantizeUnsignedFunc(e,t)}normalizeAndQuantizeSigned(e,t){return this.normalizeAndQuantizeSignedFunc(e,t)}setupNormalizeAndQuantize(){if(this.videoElementParent=this.videoElementProvider.getVideoParentElement(),this.videoElement=this.videoElementProvider.getVideoElement(),this.videoElementParent&&this.videoElement){const e=this.videoElementParent.clientWidth||1,t=this.videoElementParent.clientHeight||1,o=this.videoElement.videoWidth||1,y=t/e,B=(this.videoElement.videoHeight||1)/o;y>B?(x.Log(x.GetStackTrace(),"Setup Normalize and Quantize for playerAspectRatio > videoAspectRatio",6),this.ratio=y/B,this.normalizeAndQuantizeUnsignedFunc=(A,h)=>this.normalizeAndQuantizeUnsignedPlayerBigger(A,h),this.normalizeAndQuantizeSignedFunc=(A,h)=>this.normalizeAndQuantizeSignedPlayerBigger(A,h),this.denormalizeAndUnquantizeUnsignedFunc=(A,h)=>this.denormalizeAndUnquantizeUnsignedPlayerBigger(A,h)):(x.Log(x.GetStackTrace(),"Setup Normalize and Quantize for playerAspectRatio <= videoAspectRatio",6),this.ratio=B/y,this.normalizeAndQuantizeUnsignedFunc=(A,h)=>this.normalizeAndQuantizeUnsignedPlayerSmaller(A,h),this.normalizeAndQuantizeSignedFunc=(A,h)=>this.normalizeAndQuantizeSignedPlayerSmaller(A,h),this.denormalizeAndUnquantizeUnsignedFunc=(A,h)=>this.denormalizeAndUnquantizeUnsignedPlayerSmaller(A,h))}}normalizeAndQuantizeUnsignedPlayerBigger(e,t){const o=e/this.videoElementParent.clientWidth,y=this.ratio*(t/this.videoElementParent.clientHeight-.5)+.5;return o<0||o>1||y<0||y>1?new XA(!1,65535,65535):new XA(!0,65536*o,65536*y)}denormalizeAndUnquantizeUnsignedPlayerBigger(e,t){const o=e/65536,y=(t/65536-.5)/this.ratio+.5;return new ui(o*this.videoElementParent.clientWidth,y*this.videoElementParent.clientHeight)}normalizeAndQuantizeSignedPlayerBigger(e,t){const o=e/(.5*this.videoElementParent.clientWidth),y=this.ratio*t/(.5*this.videoElementParent.clientHeight);return new Cc(32767*o,32767*y)}normalizeAndQuantizeUnsignedPlayerSmaller(e,t){const o=this.ratio*(e/this.videoElementParent.clientWidth-.5)+.5,y=t/this.videoElementParent.clientHeight;return o<0||o>1||y<0||y>1?new XA(!1,65535,65535):new XA(!0,65536*o,65536*y)}denormalizeAndUnquantizeUnsignedPlayerSmaller(e,t){const o=(e/65536-.5)/this.ratio+.5,y=t/65536;return new ui(o*this.videoElementParent.clientWidth,y*this.videoElementParent.clientHeight)}normalizeAndQuantizeSignedPlayerSmaller(e,t){const o=this.ratio*e/(.5*this.videoElementParent.clientWidth),y=t/(.5*this.videoElementParent.clientHeight);return new Cc(32767*o,32767*y)}}class XA{constructor(e,t,o){this.inRange=e,this.x=t,this.y=o}}class ui{constructor(e,t){this.x=e,this.y=t}}class Cc{constructor(e,t){this.x=e,this.y=t}}class bc{constructor(e,t){this.shouldShowPlayOverlay=!0,this.config=e,this.pixelStreaming=t,this.responseController=new Qd,this.file=new hd,this.sdpConstraints={offerToReceiveAudio:!0,offerToReceiveVideo:!0},this.afkController=new sc(this.config,this.pixelStreaming,this.onAfkTriggered.bind(this)),this.afkController.onAFKTimedOutCallback=()=>{this.setDisconnectMessageOverride("You have been disconnected due to inactivity"),this.closeSignalingServer()},this.freezeFrameController=new rd(this.pixelStreaming.videoElementParent),this.videoPlayer=new Ed(this.pixelStreaming.videoElementParent,this.config),this.videoPlayer.onVideoInitialized=()=>this.handleVideoInitialized(),this.videoPlayer.onMatchViewportResolutionCallback=(o,y)=>{const B={"Resolution.Width":o,"Resolution.Height":y};this.sendDescriptorController.emitCommand(B)},this.videoPlayer.onResizePlayerCallback=()=>{this.setUpMouseAndFreezeFrame()},this.streamController=new ed(this.videoPlayer),this.coordinateConverter=new Pd(this.videoPlayer),this.sendrecvDataChannelController=new ac,this.recvDataChannelController=new ac,this.registerDataChannelEventEmitters(this.sendrecvDataChannelController),this.registerDataChannelEventEmitters(this.recvDataChannelController),this.dataChannelSender=new Id(this.sendrecvDataChannelController),this.dataChannelSender.resetAfkWarningTimerOnDataSend=()=>this.afkController.resetAfkWarningTimer(),this.streamMessageController=new Fd,this.webSocketController=new Ta,this.webSocketController.onConfig=o=>this.handleOnConfigMessage(o),this.webSocketController.onStreamerList=o=>this.handleStreamerListMessage(o),this.webSocketController.onWebSocketOncloseOverlayMessage=o=>{this.pixelStreaming._onDisconnect(`Websocket disconnect (${o.code}) ${o.reason!=""?"- "+o.reason:""}`),this.setVideoEncoderAvgQP(0)},this.webSocketController.onPlayerCount=o=>{this.pixelStreaming._onPlayerCount(o.count)},this.webSocketController.onOpen.addEventListener("open",()=>{this.config.isFlagEnabled($.BrowserSendOffer)||this.webSocketController.requestStreamerList()}),this.webSocketController.onClose.addEventListener("close",()=>{this.afkController.stopAfkWarningTimer(),this.statsTimerHandle&&this.statsTimerHandle!==void 0&&window.clearInterval(this.statsTimerHandle),this.setTouchInputEnabled(!1),this.setMouseInputEnabled(!1),this.setKeyboardInputEnabled(!1),this.setGamePadInputEnabled(!1),this.shouldReconnect&&this.config.getNumericSettingValue(oe.MaxReconnectAttempts)>0&&(this.isReconnecting=!0,this.reconnectAttempt++,this.restartStreamAutomatically())}),this.sendDescriptorController=new Sd(this.dataChannelSender,this.streamMessageController),this.sendMessageController=new Ud(this.dataChannelSender,this.streamMessageController),this.toStreamerMessagesController=new Td(this.sendMessageController),this.registerMessageHandlers(),this.streamMessageController.populateDefaultProtocol(),this.inputClassesFactory=new bd(this.streamMessageController,this.videoPlayer,this.coordinateConverter),this.isUsingSFU=!1,this.isQualityController=!1,this.preferredCodec="",this.shouldReconnect=!0,this.isReconnecting=!1,this.reconnectAttempt=0,this.config._addOnOptionSettingChangedListener(ge.StreamerId,o=>{o!==""&&(this.peerConnectionController.peerConnection.close(),this.peerConnectionController.createPeerConnection(this.peerConfig,this.preferredCodec),this.subscribedStream=o,this.webSocketController.sendSubscribe(o))}),this.setVideoEncoderAvgQP(-1),this.signallingUrlBuilder=()=>{let o=this.config.getTextSettingValue(Ct.SignallingServerUrl);return this.config.isFlagEnabled($.BrowserSendOffer)&&(o+="?"+$.BrowserSendOffer+"=true"),o}}requestUnquantizedAndDenormalizeUnsigned(e,t){return this.coordinateConverter.unquantizeAndDenormalizeUnsigned(e,t)}handleOnMessage(e){const t=new Uint8Array(e.data);x.Log(x.GetStackTrace(),"Message incoming:"+t,6);const o=this.streamMessageController.fromStreamerMessages.getFromValue(t[0]);this.streamMessageController.fromStreamerHandlers.get(o)(e.data)}registerMessageHandlers(){this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"QualityControlOwnership",e=>this.onQualityControlOwnership(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"Response",e=>this.responseController.onResponse(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"Command",e=>{this.onCommand(e)}),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"FreezeFrame",e=>this.onFreezeFrameMessage(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"UnfreezeFrame",()=>this.invalidateFreezeFrameAndEnableVideo()),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"VideoEncoderAvgQP",e=>this.handleVideoEncoderAvgQP(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"LatencyTest",e=>this.handleLatencyTestResult(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"InitialSettings",e=>this.handleInitialSettings(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"FileExtension",e=>this.onFileExtension(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"FileMimeType",e=>this.onFileMimeType(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"FileContents",e=>this.onFileContents(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"TestEcho",()=>{}),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"InputControlOwnership",e=>this.onInputControlOwnership(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"GamepadResponse",e=>this.onGamepadResponse(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"Protocol",e=>this.onProtocolMessage(e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"IFrameRequest",()=>this.sendMessageController.sendMessageToStreamer("IFrameRequest")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"RequestQualityControl",()=>this.sendMessageController.sendMessageToStreamer("RequestQualityControl")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"FpsRequest",()=>this.sendMessageController.sendMessageToStreamer("FpsRequest")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"AverageBitrateRequest",()=>this.sendMessageController.sendMessageToStreamer("AverageBitrateRequest")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"StartStreaming",()=>this.sendMessageController.sendMessageToStreamer("StartStreaming")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"StopStreaming",()=>this.sendMessageController.sendMessageToStreamer("StopStreaming")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"LatencyTest",()=>this.sendMessageController.sendMessageToStreamer("LatencyTest")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"RequestInitialSettings",()=>this.sendMessageController.sendMessageToStreamer("RequestInitialSettings")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"TestEcho",()=>{}),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"UIInteraction",e=>this.sendDescriptorController.emitUIInteraction(e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"Command",e=>this.sendDescriptorController.emitCommand(e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"KeyDown",e=>this.sendMessageController.sendMessageToStreamer("KeyDown",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"KeyUp",e=>this.sendMessageController.sendMessageToStreamer("KeyUp",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"KeyPress",e=>this.sendMessageController.sendMessageToStreamer("KeyPress",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseEnter",e=>this.sendMessageController.sendMessageToStreamer("MouseEnter",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseLeave",e=>this.sendMessageController.sendMessageToStreamer("MouseLeave",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseDown",e=>this.sendMessageController.sendMessageToStreamer("MouseDown",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseUp",e=>this.sendMessageController.sendMessageToStreamer("MouseUp",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseMove",e=>this.sendMessageController.sendMessageToStreamer("MouseMove",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseWheel",e=>this.sendMessageController.sendMessageToStreamer("MouseWheel",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseDouble",e=>this.sendMessageController.sendMessageToStreamer("MouseDouble",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"TouchStart",e=>this.sendMessageController.sendMessageToStreamer("TouchStart",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"TouchEnd",e=>this.sendMessageController.sendMessageToStreamer("TouchEnd",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"TouchMove",e=>this.sendMessageController.sendMessageToStreamer("TouchMove",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"GamepadConnected",()=>this.sendMessageController.sendMessageToStreamer("GamepadConnected")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"GamepadButtonPressed",e=>this.sendMessageController.sendMessageToStreamer("GamepadButtonPressed",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"GamepadButtonReleased",e=>this.sendMessageController.sendMessageToStreamer("GamepadButtonReleased",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"GamepadAnalog",e=>this.sendMessageController.sendMessageToStreamer("GamepadAnalog",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"GamepadDisconnected",e=>this.sendMessageController.sendMessageToStreamer("GamepadDisconnected",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRHMDTransform",e=>this.sendMessageController.sendMessageToStreamer("XRHMDTransform",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRControllerTransform",e=>this.sendMessageController.sendMessageToStreamer("XRControllerTransform",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRSystem",e=>this.sendMessageController.sendMessageToStreamer("XRSystem",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRButtonTouched",e=>this.sendMessageController.sendMessageToStreamer("XRButtonTouched",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRButtonPressed",e=>this.sendMessageController.sendMessageToStreamer("XRButtonPressed",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRButtonReleased",e=>this.sendMessageController.sendMessageToStreamer("XRButtonReleased",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRAnalog",e=>this.sendMessageController.sendMessageToStreamer("XRAnalog",e))}onCommand(e){x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.Command",6);const t=new TextDecoder("utf-16").decode(e.slice(1));x.Log(x.GetStackTrace(),"Data Channel Command: "+t,6);const o=JSON.parse(t);o.command==="onScreenKeyboard"&&this.pixelStreaming._activateOnScreenKeyboard(o)}onProtocolMessage(e){try{const t=new TextDecoder("utf-16").decode(e.slice(1)),o=JSON.parse(t);Object.prototype.hasOwnProperty.call(o,"Direction")||x.Error(x.GetStackTrace(),"Malformed protocol received. Ensure the protocol message contains a direction");const y=o.Direction;delete o.Direction,x.Log(x.GetStackTrace(),`Received new ${y==Ae.FromStreamer?"FromStreamer":"ToStreamer"} protocol. Updating existing protocol...`),Object.keys(o).forEach(B=>{const A=o[B];switch(y){case Ae.ToStreamer:if(!Object.prototype.hasOwnProperty.call(A,"id")||!Object.prototype.hasOwnProperty.call(A,"byteLength"))return void x.Error(x.GetStackTrace(),`ToStreamer->${B} protocol definition was malformed as it didn't contain at least an id and a byteLength
|
|
47
|
+
${this.PreCaptureTimeMs}`,6),this.CaptureToSendMs=this.PostCaptureTimeMs-this.PreCaptureTimeMs)}}class Rn{static setExtensionFromBytes(A,e){e.receiving||(e.mimetype="",e.extension="",e.receiving=!0,e.valid=!1,e.size=0,e.data=[],e.timestampStart=new Date().getTime(),u.Log(u.GetStackTrace(),"Received first chunk of file",6));const t=new TextDecoder("utf-16").decode(A.slice(1));u.Log(u.GetStackTrace(),t,6),e.extension=t}static setMimeTypeFromBytes(A,e){e.receiving||(e.mimetype="",e.extension="",e.receiving=!0,e.valid=!1,e.size=0,e.data=[],e.timestampStart=new Date().getTime(),u.Log(u.GetStackTrace(),"Received first chunk of file",6));const t=new TextDecoder("utf-16").decode(A.slice(1));u.Log(u.GetStackTrace(),t,6),e.mimetype=t}static setContentsFromBytes(A,e){if(!e.receiving)return;e.size=Math.ceil(new DataView(A.slice(1,5).buffer).getInt32(0,!0)/16379);const t=A.slice(5);if(e.data.push(t),u.Log(u.GetStackTrace(),`Received file chunk: ${e.data.length}/${e.size}`,6),e.data.length===e.size){e.receiving=!1,e.valid=!0,u.Log(u.GetStackTrace(),"Received complete file",6);const n=new Date().getTime()-e.timestampStart,s=Math.round(16*e.size*1024/n);u.Log(u.GetStackTrace(),`Average transfer bitrate: ${s}kb/s over ${n/1e3} seconds`,6);const i=new Blob(e.data,{type:e.mimetype}),o=document.createElement("a");o.setAttribute("href",URL.createObjectURL(i)),o.setAttribute("download",`transfer.${e.extension}`),document.body.append(o),o.remove()}else e.data.length>e.size&&(e.receiving=!1,u.Error(u.GetStackTrace(),`Received bigger file than advertised: ${e.data.length}/${e.size}`))}}class Ld{constructor(){this.mimetype="",this.extension="",this.receiving=!1,this.size=0,this.data=[],this.valid=!1}}class j{}j.mainButton=0,j.auxiliaryButton=1,j.secondaryButton=2,j.fourthButton=3,j.fifthButton=4;class oA{}oA.primaryButton=1,oA.secondaryButton=2,oA.auxiliaryButton=4,oA.fourthButton=8,oA.fifthButton=16;class we{constructor(){this.unregisterCallbacks=[]}addUnregisterCallback(A){this.unregisterCallbacks.push(A)}unregisterAll(){for(const A of this.unregisterCallbacks)A();this.unregisterCallbacks=[]}}class bd{constructor(A,e,t){this.touchEventListenerTracker=new we,this.toStreamerMessagesProvider=A,this.videoElementProvider=e,this.coordinateConverter=t;const n=o=>this.onTouchStart(o),s=o=>this.onTouchEnd(o),i=o=>this.onTouchMove(o);document.addEventListener("touchstart",n,{passive:!1}),document.addEventListener("touchend",s,{passive:!1}),document.addEventListener("touchmove",i,{passive:!1}),this.touchEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("touchstart",n)),this.touchEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("touchend",s)),this.touchEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("touchmove",i))}unregisterTouchEvents(){this.touchEventListenerTracker.unregisterAll()}setVideoElementParentClientRect(A){this.videoElementParentClientRect=A}onTouchStart(A){if(this.videoElementProvider.isVideoReady()){if(this.fakeTouchFinger==null){const e=A.changedTouches[0];this.fakeTouchFinger=new Md(e.identifier,e.clientX-this.videoElementParentClientRect.left,e.clientY-this.videoElementParentClientRect.top);const t=this.videoElementProvider.getVideoParentElement(),n=new MouseEvent("mouseenter",e);t.dispatchEvent(n);const s=this.coordinateConverter.normalizeAndQuantizeUnsigned(this.fakeTouchFinger.x,this.fakeTouchFinger.y);this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDown")([j.mainButton,s.x,s.y])}A.preventDefault()}}onTouchEnd(A){if(!this.videoElementProvider.isVideoReady())return;const e=this.videoElementProvider.getVideoParentElement(),t=this.toStreamerMessagesProvider.toStreamerHandlers;for(let n=0;n<A.changedTouches.length;n++){const s=A.changedTouches[n];if(s.identifier===this.fakeTouchFinger.id){const i=s.clientX-this.videoElementParentClientRect.left,o=s.clientY-this.videoElementParentClientRect.top,a=this.coordinateConverter.normalizeAndQuantizeUnsigned(i,o);t.get("MouseUp")([j.mainButton,a.x,a.y]);const l=new MouseEvent("mouseleave",s);e.dispatchEvent(l),this.fakeTouchFinger=null;break}}A.preventDefault()}onTouchMove(A){if(!this.videoElementProvider.isVideoReady())return;const e=this.toStreamerMessagesProvider.toStreamerHandlers;for(let t=0;t<A.touches.length;t++){const n=A.touches[t];if(n.identifier===this.fakeTouchFinger.id){const s=n.clientX-this.videoElementParentClientRect.left,i=n.clientY-this.videoElementParentClientRect.top,o=this.coordinateConverter.normalizeAndQuantizeUnsigned(s,i),a=this.coordinateConverter.normalizeAndQuantizeSigned(s-this.fakeTouchFinger.x,i-this.fakeTouchFinger.y);e.get("MouseMove")([o.x,o.y,a.x,a.y]),this.fakeTouchFinger.x=s,this.fakeTouchFinger.y=i;break}}A.preventDefault()}}class Md{constructor(A,e,t){this.id=A,this.x=e,this.y=t}}class aA{}aA.backSpace=8,aA.shift=16,aA.control=17,aA.alt=18,aA.rightShift=253,aA.rightControl=254,aA.rightAlt=255;class Dd{constructor(A,e,t){this.keyboardEventListenerTracker=new we,this.CodeToKeyCode={Escape:27,Digit0:48,Digit1:49,Digit2:50,Digit3:51,Digit4:52,Digit5:53,Digit6:54,Digit7:55,Digit8:56,Digit9:57,Minus:173,Equal:187,Backspace:8,Tab:9,KeyQ:81,KeyW:87,KeyE:69,KeyR:82,KeyT:84,KeyY:89,KeyU:85,KeyI:73,KeyO:79,KeyP:80,BracketLeft:219,BracketRight:221,Enter:13,ControlLeft:17,KeyA:65,KeyS:83,KeyD:68,KeyF:70,KeyG:71,KeyH:72,KeyJ:74,KeyK:75,KeyL:76,Semicolon:186,Quote:222,Backquote:192,ShiftLeft:16,Backslash:220,KeyZ:90,KeyX:88,KeyC:67,KeyV:86,KeyB:66,KeyN:78,KeyM:77,Comma:188,Period:190,Slash:191,ShiftRight:253,AltLeft:18,Space:32,CapsLock:20,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,Pause:19,ScrollLock:145,NumpadDivide:111,NumpadMultiply:106,NumpadSubtract:109,NumpadAdd:107,NumpadDecimal:110,Numpad9:105,Numpad8:104,Numpad7:103,Numpad6:102,Numpad5:101,Numpad4:100,Numpad3:99,Numpad2:98,Numpad1:97,Numpad0:96,NumLock:144,ControlRight:254,AltRight:255,Home:36,End:35,ArrowUp:38,ArrowLeft:37,ArrowRight:39,ArrowDown:40,PageUp:33,PageDown:34,Insert:45,Delete:46,ContextMenu:93},this.toStreamerMessagesProvider=A,this.config=e,this.activeKeysProvider=t}registerKeyBoardEvents(){const A=n=>this.handleOnKeyDown(n),e=n=>this.handleOnKeyUp(n),t=n=>this.handleOnKeyPress(n);document.addEventListener("keydown",A),document.addEventListener("keyup",e),document.addEventListener("keypress",t),this.keyboardEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("keydown",A)),this.keyboardEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("keyup",e)),this.keyboardEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("keypress",t))}unregisterKeyBoardEvents(){this.keyboardEventListenerTracker.unregisterAll()}handleOnKeyDown(A){const e=this.getKeycode(A);e&&(u.Log(u.GetStackTrace(),`key down ${e}, repeat = ${A.repeat}`,6),this.toStreamerMessagesProvider.toStreamerHandlers.get("KeyDown")([this.getKeycode(A),A.repeat?1:0]),this.activeKeysProvider.getActiveKeys().push(e),e===aA.backSpace&&document.dispatchEvent(new KeyboardEvent("keypress",{charCode:aA.backSpace})),this.config.isFlagEnabled(U.SuppressBrowserKeys)&&this.isKeyCodeBrowserKey(e)&&A.preventDefault())}handleOnKeyUp(A){const e=this.getKeycode(A);e&&(u.Log(u.GetStackTrace(),`key up ${e}`,6),this.toStreamerMessagesProvider.toStreamerHandlers.get("KeyUp")([e,A.repeat?1:0]),this.config.isFlagEnabled(U.SuppressBrowserKeys)&&this.isKeyCodeBrowserKey(e)&&A.preventDefault())}handleOnKeyPress(A){if(!("charCode"in A))return void u.Warning(u.GetStackTrace(),"KeyboardEvent.charCode is deprecated in this browser, cannot send key press.");const e=A.charCode;u.Log(u.GetStackTrace(),`key press ${e}`,6),this.toStreamerMessagesProvider.toStreamerHandlers.get("KeyPress")([e])}getKeycode(A){if(!("keyCode"in A)){const e=A;return e.code in this.CodeToKeyCode?this.CodeToKeyCode[e.code]:(u.Warning(u.GetStackTrace(),`Keyboard code of ${e.code} is not supported in our mapping, ignoring this key.`),null)}return A.keyCode===aA.shift&&A.code==="ShiftRight"?aA.rightShift:A.keyCode===aA.control&&A.code==="ControlRight"?aA.rightControl:A.keyCode===aA.alt&&A.code==="AltRight"?aA.rightAlt:A.keyCode}isKeyCodeBrowserKey(A){return A>=112&&A<=123||A===9}}class Rd{constructor(A,e,t){this.x=0,this.y=0,this.updateMouseMovePositionEvent=s=>{this.updateMouseMovePosition(s)},this.mouseEventListenerTracker=new we,this.videoElementProvider=A,this.mouseController=e,this.activeKeysProvider=t;const n=this.videoElementProvider.getVideoParentElement();this.x=n.getBoundingClientRect().width/2,this.y=n.getBoundingClientRect().height/2,this.coord=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(this.x,this.y)}unregisterMouseEvents(){this.mouseEventListenerTracker.unregisterAll()}lockStateChange(){const A=this.videoElementProvider.getVideoParentElement(),e=this.mouseController.toStreamerMessagesProvider.toStreamerHandlers;if(document.pointerLockElement===A||document.mozPointerLockElement===A)u.Log(u.GetStackTrace(),"Pointer locked",6),document.addEventListener("mousemove",this.updateMouseMovePositionEvent,!1),this.mouseEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("mousemove",this.updateMouseMovePositionEvent,!1));else{u.Log(u.GetStackTrace(),"The pointer lock status is now unlocked",6),document.removeEventListener("mousemove",this.updateMouseMovePositionEvent,!1);let t=this.activeKeysProvider.getActiveKeys();const n=new Set(t),s=[];n.forEach(i=>{}),s.forEach(i=>{e.get("KeyUp")([i])}),t=[]}}updateMouseMovePosition(A){if(!this.videoElementProvider.isVideoReady())return;const e=this.mouseController.toStreamerMessagesProvider.toStreamerHandlers,t=this.videoElementProvider.getVideoParentElement().clientWidth,n=this.videoElementProvider.getVideoParentElement().clientHeight;this.x+=A.movementX,this.y+=A.movementY,this.x>t&&(this.x-=t),this.y>n&&(this.y-=n),this.x<0&&(this.x=t+this.x),this.y<0&&(this.y=n-this.y),this.coord=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(this.x,this.y);const s=this.mouseController.coordinateConverter.normalizeAndQuantizeSigned(A.movementX,A.movementY);e.get("MouseMove")([this.coord.x,this.coord.y,s.x,s.y])}handleMouseDown(A){this.videoElementProvider.isVideoReady()&&this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDown")([A.button,this.coord.x,this.coord.y])}handleMouseUp(A){this.videoElementProvider.isVideoReady()&&this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp")([A.button,this.coord.x,this.coord.y])}handleMouseWheel(A){this.videoElementProvider.isVideoReady()&&this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseWheel")([A.wheelDelta,this.coord.x,this.coord.y])}handleMouseDouble(A){this.videoElementProvider.isVideoReady()&&this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDouble")([A.button,this.coord.x,this.coord.y])}handlePressMouseButtons(A){this.videoElementProvider.isVideoReady()&&this.mouseController.pressMouseButtons(A.buttons,this.x,this.y)}handleReleaseMouseButtons(A){this.videoElementProvider.isVideoReady()&&this.mouseController.releaseMouseButtons(A.buttons,this.x,this.y)}}class Kd{constructor(A){this.mouseController=A}unregisterMouseEvents(){}updateMouseMovePosition(A){if(!this.mouseController.videoElementProvider.isVideoReady())return;u.Log(u.GetStackTrace(),"MouseMove",6);const e=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(A.offsetX,A.offsetY),t=this.mouseController.coordinateConverter.normalizeAndQuantizeSigned(A.movementX,A.movementY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseMove")([e.x,e.y,t.x,t.y]),A.preventDefault()}handleMouseDown(A){if(!this.mouseController.videoElementProvider.isVideoReady())return;u.Log(u.GetStackTrace(),"onMouse Down",6);const e=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(A.offsetX,A.offsetY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDown")([A.button,e.x,e.y]),A.preventDefault()}handleMouseUp(A){if(!this.mouseController.videoElementProvider.isVideoReady())return;u.Log(u.GetStackTrace(),"onMouse Up",6);const e=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(A.offsetX,A.offsetY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp")([A.button,e.x,e.y]),A.preventDefault()}handleContextMenu(A){this.mouseController.videoElementProvider.isVideoReady()&&A.preventDefault()}handleMouseWheel(A){if(!this.mouseController.videoElementProvider.isVideoReady())return;const e=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(A.offsetX,A.offsetY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseWheel")([A.wheelDelta,e.x,e.y]),A.preventDefault()}handleMouseDouble(A){if(!this.mouseController.videoElementProvider.isVideoReady())return;const e=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(A.offsetX,A.offsetY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDouble")([A.button,e.x,e.y])}handlePressMouseButtons(A){this.mouseController.videoElementProvider.isVideoReady()&&(u.Log(u.GetStackTrace(),"onMouse press",6),this.mouseController.pressMouseButtons(A.buttons,A.offsetX,A.offsetY))}handleReleaseMouseButtons(A){this.mouseController.videoElementProvider.isVideoReady()&&(u.Log(u.GetStackTrace(),"onMouse release",6),this.mouseController.releaseMouseButtons(A.buttons,A.offsetX,A.offsetY))}}class xd{constructor(A,e,t,n){this.mouseEventListenerTracker=new we,this.toStreamerMessagesProvider=A,this.coordinateConverter=t,this.videoElementProvider=e,this.activeKeysProvider=n,this.registerMouseEnterAndLeaveEvents()}unregisterMouseEvents(){this.mouseEventListenerTracker.unregisterAll()}registerLockedMouseEvents(A){const e=this.videoElementProvider.getVideoParentElement(),t=new Rd(this.videoElementProvider,A,this.activeKeysProvider);if(e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock,document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock,e.requestPointerLock){const l=()=>{e.requestPointerLock()};e.addEventListener("click",l),this.mouseEventListenerTracker.addUnregisterCallback(()=>e.removeEventListener("click",l))}const n=()=>t.lockStateChange();document.addEventListener("pointerlockchange",n,!1),document.addEventListener("mozpointerlockchange",n,!1),this.mouseEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("pointerlockchange",n,!1)),this.mouseEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("mozpointerlockchange",n,!1));const s=l=>t.handleMouseDown(l),i=l=>t.handleMouseUp(l),o=l=>t.handleMouseWheel(l),a=l=>t.handleMouseDouble(l);e.addEventListener("mousedown",s),e.addEventListener("mouseup",i),e.addEventListener("wheel",o),e.addEventListener("dblclick",a),this.mouseEventListenerTracker.addUnregisterCallback(()=>e.removeEventListener("mousedown",s)),this.mouseEventListenerTracker.addUnregisterCallback(()=>e.removeEventListener("mouseup",i)),this.mouseEventListenerTracker.addUnregisterCallback(()=>e.removeEventListener("wheel",o)),this.mouseEventListenerTracker.addUnregisterCallback(()=>e.removeEventListener("dblclick",a)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.unregisterMouseEvents()),this.mouseEventListenerTracker.addUnregisterCallback(()=>{!document.exitPointerLock||document.pointerLockElement!==e&&document.mozPointerLockElement!==e||document.exitPointerLock()})}registerHoveringMouseEvents(A){const e=this.videoElementProvider.getVideoParentElement(),t=new Kd(A),n=c=>t.updateMouseMovePosition(c),s=c=>t.handleMouseDown(c),i=c=>t.handleMouseUp(c),o=c=>t.handleContextMenu(c),a=c=>t.handleMouseWheel(c),l=c=>t.handleMouseDouble(c);e.addEventListener("mousemove",n),e.addEventListener("mousedown",s),e.addEventListener("mouseup",i),e.addEventListener("contextmenu",o),e.addEventListener("wheel",a),e.addEventListener("dblclick",l),this.mouseEventListenerTracker.addUnregisterCallback(()=>e.removeEventListener("mousemove",n)),this.mouseEventListenerTracker.addUnregisterCallback(()=>e.removeEventListener("mousedown",s)),this.mouseEventListenerTracker.addUnregisterCallback(()=>e.removeEventListener("mouseup",i)),this.mouseEventListenerTracker.addUnregisterCallback(()=>e.removeEventListener("contextmenu",o)),this.mouseEventListenerTracker.addUnregisterCallback(()=>e.removeEventListener("wheel",a)),this.mouseEventListenerTracker.addUnregisterCallback(()=>e.removeEventListener("dblclick",l)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.unregisterMouseEvents())}registerMouseEnterAndLeaveEvents(){const A=this.videoElementProvider.getVideoParentElement(),e=n=>{this.videoElementProvider.isVideoReady()&&(u.Log(u.GetStackTrace(),"Mouse Entered",6),this.sendMouseEnter(),this.pressMouseButtons(n.buttons,n.x,n.y))},t=n=>{this.videoElementProvider.isVideoReady()&&(u.Log(u.GetStackTrace(),"Mouse Left",6),this.sendMouseLeave(),this.releaseMouseButtons(n.buttons,n.x,n.y))};A.addEventListener("mouseenter",e),A.addEventListener("mouseleave",t),this.mouseEventListenerTracker.addUnregisterCallback(()=>A.removeEventListener("mouseenter",e)),this.mouseEventListenerTracker.addUnregisterCallback(()=>A.removeEventListener("mouseleave",t))}releaseMouseButtons(A,e,t){const n=this.coordinateConverter.normalizeAndQuantizeUnsigned(e,t);A&oA.primaryButton&&this.sendMouseUp(j.mainButton,n.x,n.y),A&oA.secondaryButton&&this.sendMouseUp(j.secondaryButton,n.x,n.y),A&oA.auxiliaryButton&&this.sendMouseUp(j.auxiliaryButton,n.x,n.y),A&oA.fourthButton&&this.sendMouseUp(j.fourthButton,n.x,n.y),A&oA.fifthButton&&this.sendMouseUp(j.fifthButton,n.x,n.y)}pressMouseButtons(A,e,t){if(!this.videoElementProvider.isVideoReady())return;const n=this.coordinateConverter.normalizeAndQuantizeUnsigned(e,t);A&oA.primaryButton&&this.sendMouseDown(j.mainButton,n.x,n.y),A&oA.secondaryButton&&this.sendMouseDown(j.secondaryButton,n.x,n.y),A&oA.auxiliaryButton&&this.sendMouseDown(j.auxiliaryButton,n.x,n.y),A&oA.fourthButton&&this.sendMouseDown(j.fourthButton,n.x,n.y),A&oA.fifthButton&&this.sendMouseDown(j.fifthButton,n.x,n.y)}sendMouseEnter(){this.videoElementProvider.isVideoReady()&&this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseEnter")()}sendMouseLeave(){this.videoElementProvider.isVideoReady()&&this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseLeave")()}sendMouseDown(A,e,t){this.videoElementProvider.isVideoReady()&&(u.Log(u.GetStackTrace(),`mouse button ${A} down at (${e}, ${t})`,6),this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDown")([A,e,t]))}sendMouseUp(A,e,t){if(!this.videoElementProvider.isVideoReady())return;u.Log(u.GetStackTrace(),`mouse button ${A} up at (${e}, ${t})`,6);const n=this.coordinateConverter.normalizeAndQuantizeUnsigned(e,t);this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp")([A,n.x,n.y])}}class Pd{constructor(A,e,t){this.fingers=[9,8,7,6,5,4,3,2,1,0],this.fingerIds=new Map,this.maxByteValue=255,this.touchEventListenerTracker=new we,this.toStreamerMessagesProvider=A,this.videoElementProvider=e,this.coordinateConverter=t,this.videoElementParent=e.getVideoElement();const n=a=>this.onTouchStart(a),s=a=>this.onTouchEnd(a),i=a=>this.onTouchMove(a);this.videoElementParent.addEventListener("touchstart",n,{passive:!1}),this.videoElementParent.addEventListener("touchend",s,{passive:!1}),this.videoElementParent.addEventListener("touchmove",i,{passive:!1}),this.touchEventListenerTracker.addUnregisterCallback(()=>this.videoElementParent.removeEventListener("touchstart",n)),this.touchEventListenerTracker.addUnregisterCallback(()=>this.videoElementParent.removeEventListener("touchend",s)),this.touchEventListenerTracker.addUnregisterCallback(()=>this.videoElementParent.removeEventListener("touchmove",i)),u.Log(u.GetStackTrace(),"Touch Events Registered",6);const o=a=>{a.preventDefault()};document.addEventListener("touchmove",o,{passive:!1}),this.touchEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("touchmove",o))}unregisterTouchEvents(){this.touchEventListenerTracker.unregisterAll()}rememberTouch(A){const e=this.fingers.pop();e===void 0&&u.Log(u.GetStackTrace(),"exhausted touch identifiers",6),this.fingerIds.set(A.identifier,e)}forgetTouch(A){this.fingers.push(this.fingerIds.get(A.identifier)),this.fingers.sort(function(e,t){return t-e}),this.fingerIds.delete(A.identifier)}onTouchStart(A){if(this.videoElementProvider.isVideoReady()){for(let e=0;e<A.changedTouches.length;e++)this.rememberTouch(A.changedTouches[e]);u.Log(u.GetStackTrace(),"touch start",6),this.emitTouchData("TouchStart",A.changedTouches),A.preventDefault()}}onTouchEnd(A){if(this.videoElementProvider.isVideoReady()){u.Log(u.GetStackTrace(),"touch end",6),this.emitTouchData("TouchEnd",A.changedTouches);for(let e=0;e<A.changedTouches.length;e++)this.forgetTouch(A.changedTouches[e]);A.preventDefault()}}onTouchMove(A){this.videoElementProvider.isVideoReady()&&(u.Log(u.GetStackTrace(),"touch move",6),this.emitTouchData("TouchMove",A.touches),A.preventDefault())}emitTouchData(A,e){if(!this.videoElementProvider.isVideoReady())return;const t=this.videoElementProvider.getVideoParentElement().getBoundingClientRect(),n=this.toStreamerMessagesProvider.toStreamerHandlers;for(let s=0;s<e.length;s++){const o=e[s],a=o.clientX-t.left,l=o.clientY-t.top;u.Log(u.GetStackTrace(),`F${this.fingerIds.get(o.identifier)}=(${a}, ${l})`,6);const c=this.coordinateConverter.normalizeAndQuantizeUnsigned(a,l);switch(A){case"TouchStart":n.get("TouchStart")([1,c.x,c.y,this.fingerIds.get(o.identifier),this.maxByteValue*o.force,c.inRange?1:0]);break;case"TouchEnd":n.get("TouchEnd")([1,c.x,c.y,this.fingerIds.get(o.identifier),this.maxByteValue*o.force,c.inRange?1:0]);break;case"TouchMove":n.get("TouchMove")([1,c.x,c.y,this.fingerIds.get(o.identifier),this.maxByteValue*o.force,c.inRange?1:0])}}}}class kd{constructor(A){this.gamePadEventListenerTracker=new we,this.toStreamerMessagesProvider=A,this.requestAnimationFrame=(window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.requestAnimationFrame).bind(window);const e=window;if("GamepadEvent"in e){const t=s=>this.gamePadConnectHandler(s),n=s=>this.gamePadDisconnectHandler(s);window.addEventListener("gamepadconnected",t),window.addEventListener("gamepaddisconnected",n),this.gamePadEventListenerTracker.addUnregisterCallback(()=>window.removeEventListener("gamepadconnected",t)),this.gamePadEventListenerTracker.addUnregisterCallback(()=>window.removeEventListener("gamepaddisconnected",n))}else if("WebKitGamepadEvent"in e){const t=s=>this.gamePadConnectHandler(s),n=s=>this.gamePadDisconnectHandler(s);window.addEventListener("webkitgamepadconnected",t),window.addEventListener("webkitgamepaddisconnected",n),this.gamePadEventListenerTracker.addUnregisterCallback(()=>window.removeEventListener("webkitgamepadconnected",t)),this.gamePadEventListenerTracker.addUnregisterCallback(()=>window.removeEventListener("webkitgamepaddisconnected",n))}if(this.controllers=[],navigator.getGamepads)for(const t of navigator.getGamepads())t&&this.gamePadConnectHandler(new GamepadEvent("gamepadconnected",{gamepad:t}))}unregisterGamePadEvents(){this.gamePadEventListenerTracker.unregisterAll();for(const A of this.controllers)A.id!==void 0&&this.onGamepadDisconnected(A.id);this.controllers=[],this.onGamepadConnected=()=>{},this.onGamepadDisconnected=()=>{}}gamePadConnectHandler(A){u.Log(u.GetStackTrace(),"Gamepad connect handler",6);const e=A.gamepad,t={currentState:e,prevState:e,id:void 0};this.controllers.push(t),this.controllers[e.index].currentState=e,this.controllers[e.index].prevState=e,u.Log(u.GetStackTrace(),"gamepad: "+e.id+" connected",6),window.requestAnimationFrame(()=>this.updateStatus()),this.onGamepadConnected()}gamePadDisconnectHandler(A){u.Log(u.GetStackTrace(),"Gamepad disconnect handler",6),u.Log(u.GetStackTrace(),"gamepad: "+A.gamepad.id+" disconnected",6);const e=this.controllers[A.gamepad.index];delete this.controllers[A.gamepad.index],this.controllers=this.controllers.filter(t=>t!==void 0),this.onGamepadDisconnected(e.id)}scanGamePads(){const A=navigator.getGamepads?navigator.getGamepads():navigator.webkitGetGamepads?navigator.webkitGetGamepads():[];for(let e=0;e<A.length;e++)A[e]&&A[e].index in this.controllers&&(this.controllers[A[e].index].currentState=A[e])}updateStatus(){this.scanGamePads();const A=this.toStreamerMessagesProvider.toStreamerHandlers;for(const e of this.controllers){const t=e.id===void 0?this.controllers.indexOf(e):e.id,n=e.currentState;for(let s=0;s<e.currentState.buttons.length;s++){const i=e.currentState.buttons[s],o=e.prevState.buttons[s];i.pressed?s==fe.LeftTrigger?A.get("GamepadAnalog")([t,5,i.value]):s==fe.RightTrigger?A.get("GamepadAnalog")([t,6,i.value]):A.get("GamepadButtonPressed")([t,s,o.pressed?1:0]):!i.pressed&&o.pressed&&(s==fe.LeftTrigger?A.get("GamepadAnalog")([t,5,0]):s==fe.RightTrigger?A.get("GamepadAnalog")([t,6,0]):A.get("GamepadButtonReleased")([t,s]))}for(let s=0;s<n.axes.length;s+=2){const i=parseFloat(n.axes[s].toFixed(4)),o=-parseFloat(n.axes[s+1].toFixed(4));A.get("GamepadAnalog")([t,s+1,i]),A.get("GamepadAnalog")([t,s+2,o])}this.controllers[t].prevState=n}this.controllers.length>0&&this.requestAnimationFrame(()=>this.updateStatus())}onGamepadResponseReceived(A){for(const e of this.controllers)if(e.id===void 0){e.id=A;break}}onGamepadConnected(){}onGamepadDisconnected(A){}}(function(r){r[r.RightClusterBottomButton=0]="RightClusterBottomButton",r[r.RightClusterRightButton=1]="RightClusterRightButton",r[r.RightClusterLeftButton=2]="RightClusterLeftButton",r[r.RightClusterTopButton=3]="RightClusterTopButton",r[r.LeftShoulder=4]="LeftShoulder",r[r.RightShoulder=5]="RightShoulder",r[r.LeftTrigger=6]="LeftTrigger",r[r.RightTrigger=7]="RightTrigger",r[r.SelectOrBack=8]="SelectOrBack",r[r.StartOrForward=9]="StartOrForward",r[r.LeftAnalogPress=10]="LeftAnalogPress",r[r.RightAnalogPress=11]="RightAnalogPress",r[r.LeftClusterTopButton=12]="LeftClusterTopButton",r[r.LeftClusterBottomButton=13]="LeftClusterBottomButton",r[r.LeftClusterLeftButton=14]="LeftClusterLeftButton",r[r.LeftClusterRightButton=15]="LeftClusterRightButton",r[r.CentreButton=16]="CentreButton",r[r.LeftStickHorizontal=0]="LeftStickHorizontal",r[r.LeftStickVertical=1]="LeftStickVertical",r[r.RightStickHorizontal=2]="RightStickHorizontal",r[r.RightStickVertical=3]="RightStickVertical"})(fe||(fe={}));class Gd{constructor(A,e,t){this.activeKeys=new Nd,this.toStreamerMessagesProvider=A,this.videoElementProvider=e,this.coordinateConverter=t}registerKeyBoard(A){u.Log(u.GetStackTrace(),"Register Keyboard Events",7);const e=new Dd(this.toStreamerMessagesProvider,A,this.activeKeys);return e.registerKeyBoardEvents(),e}registerMouse(A){u.Log(u.GetStackTrace(),"Register Mouse Events",7);const e=new xd(this.toStreamerMessagesProvider,this.videoElementProvider,this.coordinateConverter,this.activeKeys);switch(A){case ZA.LockedMouse:e.registerLockedMouseEvents(e);break;case ZA.HoveringMouse:e.registerHoveringMouseEvents(e);break;default:u.Info(u.GetStackTrace(),"unknown Control Scheme Type Defaulting to Locked Mouse Events"),e.registerLockedMouseEvents(e)}return e}registerTouch(A,e){if(u.Log(u.GetStackTrace(),"Registering Touch",6),A){const t=new bd(this.toStreamerMessagesProvider,this.videoElementProvider,this.coordinateConverter);return t.setVideoElementParentClientRect(e),t}return new Pd(this.toStreamerMessagesProvider,this.videoElementProvider,this.coordinateConverter)}registerGamePad(){return u.Log(u.GetStackTrace(),"Register Game Pad",7),new kd(this.toStreamerMessagesProvider)}}class Nd{constructor(){this.activeKeys=[],this.activeKeys=[]}getActiveKeys(){return this.activeKeys}}class _d{constructor(A,e){this.lastTimeResized=new Date().getTime(),this.videoElement=document.createElement("video"),this.config=e,this.videoElement.id="streamingVideo",this.videoElement.disablePictureInPicture=!0,this.videoElement.playsInline=!0,this.videoElement.style.width="100%",this.videoElement.style.height="100%",this.videoElement.style.position="absolute",this.videoElement.style.pointerEvents="all",A.appendChild(this.videoElement),this.onResizePlayerCallback=()=>{console.log("Resolution changed, restyling player, did you forget to override this function?")},this.onMatchViewportResolutionCallback=()=>{console.log("Resolution changed and match viewport resolution is turned on, did you forget to override this function?")},this.videoElement.onclick=()=>{this.audioElement!=null&&this.audioElement.paused&&this.audioElement.play(),this.videoElement.paused&&this.videoElement.play()},this.videoElement.onloadedmetadata=()=>{this.onVideoInitialized()},window.addEventListener("resize",()=>this.resizePlayerStyle(),!0),window.addEventListener("orientationchange",()=>this.onOrientationChange())}setAudioElement(A){this.audioElement=A}play(){return this.videoElement.muted=this.config.isFlagEnabled(U.StartVideoMuted),this.videoElement.autoplay=this.config.isFlagEnabled(U.AutoPlayVideo),this.videoElement.play()}isPaused(){return this.videoElement.paused}isVideoReady(){return this.videoElement.readyState!==void 0&&this.videoElement.readyState>0}hasVideoSource(){return this.videoElement.srcObject!==void 0&&this.videoElement.srcObject!==null}getVideoElement(){return this.videoElement}getVideoParentElement(){return this.videoElement.parentElement}setVideoEnabled(A){this.videoElement.srcObject.getTracks().forEach(e=>e.enabled=A)}onVideoInitialized(){}onOrientationChange(){clearTimeout(this.orientationChangeTimeout),this.orientationChangeTimeout=window.setTimeout(()=>{this.resizePlayerStyle()},500)}resizePlayerStyle(){const A=this.getVideoParentElement();A&&(this.updateVideoStreamSize(),A.classList.contains("fixed-size")||this.resizePlayerStyleToFillParentElement(),this.onResizePlayerCallback())}resizePlayerStyleToFillParentElement(){this.getVideoParentElement().setAttribute("style","top: 0px; left: 0px; width: 100%; height: 100%; cursor: default;")}updateVideoStreamSize(){if(this.config.isFlagEnabled(U.MatchViewportResolution))if(new Date().getTime()-this.lastTimeResized>300){const A=this.getVideoParentElement();if(!A)return;this.onMatchViewportResolutionCallback(A.clientWidth,A.clientHeight),this.lastTimeResized=new Date().getTime()}else u.Log(u.GetStackTrace(),"Resizing too often - skipping",6),clearTimeout(this.resizeTimeoutHandle),this.resizeTimeoutHandle=window.setTimeout(()=>this.updateVideoStreamSize(),100)}}class Va{constructor(){this.map=new Map,this.reverseMap=new Map}getFromKey(A){return this.map.get(A)}getFromValue(A){return this.reverseMap.get(A)}add(A,e){this.map.set(A,e),this.reverseMap.set(e,A)}remove(A,e){this.map.delete(A),this.reverseMap.delete(e)}}class Vd{constructor(){this.toStreamerHandlers=new Map,this.fromStreamerHandlers=new Map,this.toStreamerMessages=new Va,this.fromStreamerMessages=new Va}populateDefaultProtocol(){this.toStreamerMessages.add("IFrameRequest",{id:0,byteLength:0,structure:[]}),this.toStreamerMessages.add("RequestQualityControl",{id:1,byteLength:0,structure:[]}),this.toStreamerMessages.add("FpsRequest",{id:2,byteLength:0,structure:[]}),this.toStreamerMessages.add("AverageBitrateRequest",{id:3,byteLength:0,structure:[]}),this.toStreamerMessages.add("StartStreaming",{id:4,byteLength:0,structure:[]}),this.toStreamerMessages.add("StopStreaming",{id:5,byteLength:0,structure:[]}),this.toStreamerMessages.add("LatencyTest",{id:6,byteLength:0,structure:[]}),this.toStreamerMessages.add("RequestInitialSettings",{id:7,byteLength:0,structure:[]}),this.toStreamerMessages.add("TestEcho",{id:8,byteLength:0,structure:[]}),this.toStreamerMessages.add("UIInteraction",{id:50,byteLength:0,structure:[]}),this.toStreamerMessages.add("Command",{id:51,byteLength:0,structure:[]}),this.toStreamerMessages.add("KeyDown",{id:60,byteLength:2,structure:["uint8","uint8"]}),this.toStreamerMessages.add("KeyUp",{id:61,byteLength:1,structure:["uint8"]}),this.toStreamerMessages.add("KeyPress",{id:62,byteLength:2,structure:["uint16"]}),this.toStreamerMessages.add("MouseEnter",{id:70,byteLength:0,structure:[]}),this.toStreamerMessages.add("MouseLeave",{id:71,byteLength:0,structure:[]}),this.toStreamerMessages.add("MouseDown",{id:72,byteLength:5,structure:["uint8","uint16","uint16"]}),this.toStreamerMessages.add("MouseUp",{id:73,byteLength:5,structure:["uint8","uint16","uint16"]}),this.toStreamerMessages.add("MouseMove",{id:74,byteLength:8,structure:["uint16","uint16","int16","int16"]}),this.toStreamerMessages.add("MouseWheel",{id:75,byteLength:6,structure:["int16","uint16","uint16"]}),this.toStreamerMessages.add("MouseDouble",{id:76,byteLength:5,structure:["uint8","uint16","uint16"]}),this.toStreamerMessages.add("TouchStart",{id:80,byteLength:8,structure:["uint8","uint16","uint16","uint8","uint8","uint8"]}),this.toStreamerMessages.add("TouchEnd",{id:81,byteLength:8,structure:["uint8","uint16","uint16","uint8","uint8","uint8"]}),this.toStreamerMessages.add("TouchMove",{id:82,byteLength:8,structure:["uint8","uint16","uint16","uint8","uint8","uint8"]}),this.toStreamerMessages.add("GamepadConnected",{id:93,byteLength:0,structure:[]}),this.toStreamerMessages.add("GamepadButtonPressed",{id:90,byteLength:3,structure:["uint8","uint8","uint8"]}),this.toStreamerMessages.add("GamepadButtonReleased",{id:91,byteLength:3,structure:["uint8","uint8","uint8"]}),this.toStreamerMessages.add("GamepadAnalog",{id:92,byteLength:10,structure:["uint8","uint8","double"]}),this.toStreamerMessages.add("GamepadDisconnected",{id:94,byteLength:1,structure:["uint8"]}),this.fromStreamerMessages.add("QualityControlOwnership",0),this.fromStreamerMessages.add("Response",1),this.fromStreamerMessages.add("Command",2),this.fromStreamerMessages.add("FreezeFrame",3),this.fromStreamerMessages.add("UnfreezeFrame",4),this.fromStreamerMessages.add("VideoEncoderAvgQP",5),this.fromStreamerMessages.add("LatencyTest",6),this.fromStreamerMessages.add("InitialSettings",7),this.fromStreamerMessages.add("FileExtension",8),this.fromStreamerMessages.add("FileMimeType",9),this.fromStreamerMessages.add("FileContents",10),this.fromStreamerMessages.add("TestEcho",11),this.fromStreamerMessages.add("InputControlOwnership",12),this.fromStreamerMessages.add("GamepadResponse",13),this.fromStreamerMessages.add("Protocol",255)}registerMessageHandler(A,e,t){switch(A){case b.ToStreamer:this.toStreamerHandlers.set(e,t);break;case b.FromStreamer:this.fromStreamerHandlers.set(e,t);break;default:u.Log(u.GetStackTrace(),`Unknown message direction ${A}`)}}}(function(r){r[r.ToStreamer=0]="ToStreamer",r[r.FromStreamer=1]="FromStreamer"})(b||(b={}));class Od{constructor(){this.responseEventListeners=new Map}addResponseEventListener(A,e){this.responseEventListeners.set(A,e)}removeResponseEventListener(A){this.responseEventListeners.delete(A)}onResponse(A){u.Log(u.GetStackTrace(),"DataChannelReceiveMessageType.Response",6);const e=new TextDecoder("utf-16").decode(A.slice(1));u.Log(u.GetStackTrace(),e,6),this.responseEventListeners.forEach(t=>{t(e)})}}class Wd{constructor(A,e){this.dataChannelSender=A,this.toStreamerMessagesMapProvider=e}sendLatencyTest(A){this.sendDescriptor("LatencyTest",A)}emitCommand(A){this.sendDescriptor("Command",A)}emitUIInteraction(A){this.sendDescriptor("UIInteraction",A)}sendDescriptor(A,e){const t=JSON.stringify(e),n=this.toStreamerMessagesMapProvider.toStreamerMessages.getFromKey(A);n===void 0&&u.Error(u.GetStackTrace(),`Attempted to emit descriptor with message type: ${A}, but the frontend hasn't been configured to send such a message. Check you've added the message type in your cpp`),u.Log(u.GetStackTrace(),"Sending: "+e,6);const s=new DataView(new ArrayBuffer(3+2*t.length));let i=0;s.setUint8(i,n.id),i++,s.setUint16(i,t.length,!0),i+=2;for(let o=0;o<t.length;o++)s.setUint16(i,t.charCodeAt(o),!0),i+=2;this.dataChannelSender.canSend()?this.dataChannelSender.sendData(s.buffer):u.Info(u.GetStackTrace(),`Data channel cannot send yet, skipping sending descriptor message: ${A} - ${t}`)}}class Xd{constructor(A,e){this.dataChannelSender=A,this.toStreamerMessagesMapProvider=e}sendMessageToStreamer(A,e){e===void 0&&(e=[]);const t=this.toStreamerMessagesMapProvider.toStreamerMessages.getFromKey(A);if(t===void 0)return void u.Error(u.GetStackTrace(),`Attempted to send a message to the streamer with message type: ${A}, but the frontend hasn't been configured to send such a message. Check you've added the message type in your cpp`);const n=new DataView(new ArrayBuffer(t.byteLength+1));n.setUint8(0,t.id);let s=1;e.forEach((i,o)=>{switch(t.structure[o]){case"uint8":n.setUint8(s,i),s+=1;break;case"uint16":n.setUint16(s,i,!0),s+=2;break;case"int16":n.setInt16(s,i,!0),s+=2;break;case"float":n.setFloat32(s,i,!0),s+=4;break;case"double":n.setFloat64(s,i,!0),s+=8}}),this.dataChannelSender.canSend()?this.dataChannelSender.sendData(n.buffer):u.Info(u.GetStackTrace(),`Data channel cannot send yet, skipping sending message: ${A} - ${new Uint8Array(n.buffer)}`)}}class Jd{constructor(A){this.sendMessageController=A}SendRequestQualityControl(){this.sendMessageController.sendMessageToStreamer("RequestQualityControl")}SendMaxFpsRequest(){this.sendMessageController.sendMessageToStreamer("FpsRequest")}SendAverageBitrateRequest(){this.sendMessageController.sendMessageToStreamer("AverageBitrateRequest")}SendStartStreaming(){this.sendMessageController.sendMessageToStreamer("StartStreaming")}SendStopStreaming(){this.sendMessageController.sendMessageToStreamer("StopStreaming")}SendRequestInitialSettings(){this.sendMessageController.sendMessageToStreamer("RequestInitialSettings")}}class zd{constructor(A){this.dataChannelProvider=A}canSend(){return this.dataChannelProvider.getDataChannelInstance().dataChannel!==void 0&&this.dataChannelProvider.getDataChannelInstance().dataChannel.readyState=="open"}sendData(A){const e=this.dataChannelProvider.getDataChannelInstance();e.dataChannel.readyState=="open"?(e.dataChannel.send(A),u.Log(u.GetStackTrace(),`Message Sent: ${new Uint8Array(A)}`,6),this.resetAfkWarningTimerOnDataSend()):u.Error(u.GetStackTrace(),`Message Failed: ${new Uint8Array(A)}`)}resetAfkWarningTimerOnDataSend(){}}class Yd{constructor(A){this.videoElementProvider=A,this.normalizeAndQuantizeUnsignedFunc=()=>{throw new Error("Normalize and quantize unsigned, method not implemented.")},this.normalizeAndQuantizeSignedFunc=()=>{throw new Error("Normalize and unquantize signed, method not implemented.")},this.denormalizeAndUnquantizeUnsignedFunc=()=>{throw new Error("Denormalize and unquantize unsigned, method not implemented.")}}normalizeAndQuantizeUnsigned(A,e){return this.normalizeAndQuantizeUnsignedFunc(A,e)}unquantizeAndDenormalizeUnsigned(A,e){return this.denormalizeAndUnquantizeUnsignedFunc(A,e)}normalizeAndQuantizeSigned(A,e){return this.normalizeAndQuantizeSignedFunc(A,e)}setupNormalizeAndQuantize(){if(this.videoElementParent=this.videoElementProvider.getVideoParentElement(),this.videoElement=this.videoElementProvider.getVideoElement(),this.videoElementParent&&this.videoElement){const A=this.videoElementParent.clientWidth||1,e=this.videoElementParent.clientHeight||1,t=this.videoElement.videoWidth||1,n=e/A,s=(this.videoElement.videoHeight||1)/t;n>s?(u.Log(u.GetStackTrace(),"Setup Normalize and Quantize for playerAspectRatio > videoAspectRatio",6),this.ratio=n/s,this.normalizeAndQuantizeUnsignedFunc=(i,o)=>this.normalizeAndQuantizeUnsignedPlayerBigger(i,o),this.normalizeAndQuantizeSignedFunc=(i,o)=>this.normalizeAndQuantizeSignedPlayerBigger(i,o),this.denormalizeAndUnquantizeUnsignedFunc=(i,o)=>this.denormalizeAndUnquantizeUnsignedPlayerBigger(i,o)):(u.Log(u.GetStackTrace(),"Setup Normalize and Quantize for playerAspectRatio <= videoAspectRatio",6),this.ratio=s/n,this.normalizeAndQuantizeUnsignedFunc=(i,o)=>this.normalizeAndQuantizeUnsignedPlayerSmaller(i,o),this.normalizeAndQuantizeSignedFunc=(i,o)=>this.normalizeAndQuantizeSignedPlayerSmaller(i,o),this.denormalizeAndUnquantizeUnsignedFunc=(i,o)=>this.denormalizeAndUnquantizeUnsignedPlayerSmaller(i,o))}}normalizeAndQuantizeUnsignedPlayerBigger(A,e){const t=A/this.videoElementParent.clientWidth,n=this.ratio*(e/this.videoElementParent.clientHeight-.5)+.5;return t<0||t>1||n<0||n>1?new Qr(!1,65535,65535):new Qr(!0,65536*t,65536*n)}denormalizeAndUnquantizeUnsignedPlayerBigger(A,e){const t=A/65536,n=(e/65536-.5)/this.ratio+.5;return new Kn(t*this.videoElementParent.clientWidth,n*this.videoElementParent.clientHeight)}normalizeAndQuantizeSignedPlayerBigger(A,e){const t=A/(.5*this.videoElementParent.clientWidth),n=this.ratio*e/(.5*this.videoElementParent.clientHeight);return new Oa(32767*t,32767*n)}normalizeAndQuantizeUnsignedPlayerSmaller(A,e){const t=this.ratio*(A/this.videoElementParent.clientWidth-.5)+.5,n=e/this.videoElementParent.clientHeight;return t<0||t>1||n<0||n>1?new Qr(!1,65535,65535):new Qr(!0,65536*t,65536*n)}denormalizeAndUnquantizeUnsignedPlayerSmaller(A,e){const t=(A/65536-.5)/this.ratio+.5,n=e/65536;return new Kn(t*this.videoElementParent.clientWidth,n*this.videoElementParent.clientHeight)}normalizeAndQuantizeSignedPlayerSmaller(A,e){const t=this.ratio*A/(.5*this.videoElementParent.clientWidth),n=e/(.5*this.videoElementParent.clientHeight);return new Oa(32767*t,32767*n)}}class Qr{constructor(A,e,t){this.inRange=A,this.x=e,this.y=t}}class Kn{constructor(A,e){this.x=A,this.y=e}}class Oa{constructor(A,e){this.x=A,this.y=e}}class Wa{constructor(A,e){this.shouldShowPlayOverlay=!0,this.config=A,this.pixelStreaming=e,this.responseController=new Od,this.file=new Ld,this.sdpConstraints={offerToReceiveAudio:!0,offerToReceiveVideo:!0},this.afkController=new Ta(this.config,this.pixelStreaming,this.onAfkTriggered.bind(this)),this.afkController.onAFKTimedOutCallback=()=>{this.setDisconnectMessageOverride("You have been disconnected due to inactivity"),this.closeSignalingServer()},this.freezeFrameController=new Cd(this.pixelStreaming.videoElementParent),this.videoPlayer=new _d(this.pixelStreaming.videoElementParent,this.config),this.videoPlayer.onVideoInitialized=()=>this.handleVideoInitialized(),this.videoPlayer.onMatchViewportResolutionCallback=(t,n)=>{const s={"Resolution.Width":t,"Resolution.Height":n};this.sendDescriptorController.emitCommand(s)},this.videoPlayer.onResizePlayerCallback=()=>{this.setUpMouseAndFreezeFrame()},this.streamController=new wd(this.videoPlayer),this.coordinateConverter=new Yd(this.videoPlayer),this.sendrecvDataChannelController=new Ha,this.recvDataChannelController=new Ha,this.registerDataChannelEventEmitters(this.sendrecvDataChannelController),this.registerDataChannelEventEmitters(this.recvDataChannelController),this.dataChannelSender=new zd(this.sendrecvDataChannelController),this.dataChannelSender.resetAfkWarningTimerOnDataSend=()=>this.afkController.resetAfkWarningTimer(),this.streamMessageController=new Vd,this.webSocketController=new qo,this.webSocketController.onConfig=t=>this.handleOnConfigMessage(t),this.webSocketController.onStreamerList=t=>this.handleStreamerListMessage(t),this.webSocketController.onWebSocketOncloseOverlayMessage=t=>{this.pixelStreaming._onDisconnect(`Websocket disconnect (${t.code}) ${t.reason!=""?"- "+t.reason:""}`),this.setVideoEncoderAvgQP(0)},this.webSocketController.onPlayerCount=t=>{this.pixelStreaming._onPlayerCount(t.count)},this.webSocketController.onOpen.addEventListener("open",()=>{this.config.isFlagEnabled(U.BrowserSendOffer)||this.webSocketController.requestStreamerList()}),this.webSocketController.onClose.addEventListener("close",()=>{this.afkController.stopAfkWarningTimer(),this.statsTimerHandle&&this.statsTimerHandle!==void 0&&window.clearInterval(this.statsTimerHandle),this.setTouchInputEnabled(!1),this.setMouseInputEnabled(!1),this.setKeyboardInputEnabled(!1),this.setGamePadInputEnabled(!1),this.shouldReconnect&&this.config.getNumericSettingValue(D.MaxReconnectAttempts)>0&&(this.isReconnecting=!0,this.reconnectAttempt++,this.restartStreamAutomatically())}),this.sendDescriptorController=new Wd(this.dataChannelSender,this.streamMessageController),this.sendMessageController=new Xd(this.dataChannelSender,this.streamMessageController),this.toStreamerMessagesController=new Jd(this.sendMessageController),this.registerMessageHandlers(),this.streamMessageController.populateDefaultProtocol(),this.inputClassesFactory=new Gd(this.streamMessageController,this.videoPlayer,this.coordinateConverter),this.isUsingSFU=!1,this.isQualityController=!1,this.preferredCodec="",this.shouldReconnect=!0,this.isReconnecting=!1,this.reconnectAttempt=0,this.config._addOnOptionSettingChangedListener(V.StreamerId,t=>{t!==""&&(this.peerConnectionController.peerConnection.close(),this.peerConnectionController.createPeerConnection(this.peerConfig,this.preferredCodec),this.subscribedStream=t,this.webSocketController.sendSubscribe(t))}),this.setVideoEncoderAvgQP(-1),this.signallingUrlBuilder=()=>{let t=this.config.getTextSettingValue($A.SignallingServerUrl);return this.config.isFlagEnabled(U.BrowserSendOffer)&&(t+="?"+U.BrowserSendOffer+"=true"),t}}requestUnquantizedAndDenormalizeUnsigned(A,e){return this.coordinateConverter.unquantizeAndDenormalizeUnsigned(A,e)}handleOnMessage(A){const e=new Uint8Array(A.data);u.Log(u.GetStackTrace(),"Message incoming:"+e,6);const t=this.streamMessageController.fromStreamerMessages.getFromValue(e[0]);this.streamMessageController.fromStreamerHandlers.get(t)(A.data)}registerMessageHandlers(){this.streamMessageController.registerMessageHandler(b.FromStreamer,"QualityControlOwnership",A=>this.onQualityControlOwnership(A)),this.streamMessageController.registerMessageHandler(b.FromStreamer,"Response",A=>this.responseController.onResponse(A)),this.streamMessageController.registerMessageHandler(b.FromStreamer,"Command",A=>{this.onCommand(A)}),this.streamMessageController.registerMessageHandler(b.FromStreamer,"FreezeFrame",A=>this.onFreezeFrameMessage(A)),this.streamMessageController.registerMessageHandler(b.FromStreamer,"UnfreezeFrame",()=>this.invalidateFreezeFrameAndEnableVideo()),this.streamMessageController.registerMessageHandler(b.FromStreamer,"VideoEncoderAvgQP",A=>this.handleVideoEncoderAvgQP(A)),this.streamMessageController.registerMessageHandler(b.FromStreamer,"LatencyTest",A=>this.handleLatencyTestResult(A)),this.streamMessageController.registerMessageHandler(b.FromStreamer,"InitialSettings",A=>this.handleInitialSettings(A)),this.streamMessageController.registerMessageHandler(b.FromStreamer,"FileExtension",A=>this.onFileExtension(A)),this.streamMessageController.registerMessageHandler(b.FromStreamer,"FileMimeType",A=>this.onFileMimeType(A)),this.streamMessageController.registerMessageHandler(b.FromStreamer,"FileContents",A=>this.onFileContents(A)),this.streamMessageController.registerMessageHandler(b.FromStreamer,"TestEcho",()=>{}),this.streamMessageController.registerMessageHandler(b.FromStreamer,"InputControlOwnership",A=>this.onInputControlOwnership(A)),this.streamMessageController.registerMessageHandler(b.FromStreamer,"GamepadResponse",A=>this.onGamepadResponse(A)),this.streamMessageController.registerMessageHandler(b.FromStreamer,"Protocol",A=>this.onProtocolMessage(A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"IFrameRequest",()=>this.sendMessageController.sendMessageToStreamer("IFrameRequest")),this.streamMessageController.registerMessageHandler(b.ToStreamer,"RequestQualityControl",()=>this.sendMessageController.sendMessageToStreamer("RequestQualityControl")),this.streamMessageController.registerMessageHandler(b.ToStreamer,"FpsRequest",()=>this.sendMessageController.sendMessageToStreamer("FpsRequest")),this.streamMessageController.registerMessageHandler(b.ToStreamer,"AverageBitrateRequest",()=>this.sendMessageController.sendMessageToStreamer("AverageBitrateRequest")),this.streamMessageController.registerMessageHandler(b.ToStreamer,"StartStreaming",()=>this.sendMessageController.sendMessageToStreamer("StartStreaming")),this.streamMessageController.registerMessageHandler(b.ToStreamer,"StopStreaming",()=>this.sendMessageController.sendMessageToStreamer("StopStreaming")),this.streamMessageController.registerMessageHandler(b.ToStreamer,"LatencyTest",()=>this.sendMessageController.sendMessageToStreamer("LatencyTest")),this.streamMessageController.registerMessageHandler(b.ToStreamer,"RequestInitialSettings",()=>this.sendMessageController.sendMessageToStreamer("RequestInitialSettings")),this.streamMessageController.registerMessageHandler(b.ToStreamer,"TestEcho",()=>{}),this.streamMessageController.registerMessageHandler(b.ToStreamer,"UIInteraction",A=>this.sendDescriptorController.emitUIInteraction(A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"Command",A=>this.sendDescriptorController.emitCommand(A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"KeyDown",A=>this.sendMessageController.sendMessageToStreamer("KeyDown",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"KeyUp",A=>this.sendMessageController.sendMessageToStreamer("KeyUp",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"KeyPress",A=>this.sendMessageController.sendMessageToStreamer("KeyPress",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"MouseEnter",A=>this.sendMessageController.sendMessageToStreamer("MouseEnter",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"MouseLeave",A=>this.sendMessageController.sendMessageToStreamer("MouseLeave",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"MouseDown",A=>this.sendMessageController.sendMessageToStreamer("MouseDown",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"MouseUp",A=>this.sendMessageController.sendMessageToStreamer("MouseUp",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"MouseMove",A=>this.sendMessageController.sendMessageToStreamer("MouseMove",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"MouseWheel",A=>this.sendMessageController.sendMessageToStreamer("MouseWheel",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"MouseDouble",A=>this.sendMessageController.sendMessageToStreamer("MouseDouble",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"TouchStart",A=>this.sendMessageController.sendMessageToStreamer("TouchStart",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"TouchEnd",A=>this.sendMessageController.sendMessageToStreamer("TouchEnd",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"TouchMove",A=>this.sendMessageController.sendMessageToStreamer("TouchMove",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"GamepadConnected",()=>this.sendMessageController.sendMessageToStreamer("GamepadConnected")),this.streamMessageController.registerMessageHandler(b.ToStreamer,"GamepadButtonPressed",A=>this.sendMessageController.sendMessageToStreamer("GamepadButtonPressed",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"GamepadButtonReleased",A=>this.sendMessageController.sendMessageToStreamer("GamepadButtonReleased",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"GamepadAnalog",A=>this.sendMessageController.sendMessageToStreamer("GamepadAnalog",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"GamepadDisconnected",A=>this.sendMessageController.sendMessageToStreamer("GamepadDisconnected",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"XRHMDTransform",A=>this.sendMessageController.sendMessageToStreamer("XRHMDTransform",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"XRControllerTransform",A=>this.sendMessageController.sendMessageToStreamer("XRControllerTransform",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"XRSystem",A=>this.sendMessageController.sendMessageToStreamer("XRSystem",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"XRButtonTouched",A=>this.sendMessageController.sendMessageToStreamer("XRButtonTouched",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"XRButtonPressed",A=>this.sendMessageController.sendMessageToStreamer("XRButtonPressed",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"XRButtonReleased",A=>this.sendMessageController.sendMessageToStreamer("XRButtonReleased",A)),this.streamMessageController.registerMessageHandler(b.ToStreamer,"XRAnalog",A=>this.sendMessageController.sendMessageToStreamer("XRAnalog",A))}onCommand(A){u.Log(u.GetStackTrace(),"DataChannelReceiveMessageType.Command",6);const e=new TextDecoder("utf-16").decode(A.slice(1));u.Log(u.GetStackTrace(),"Data Channel Command: "+e,6);const t=JSON.parse(e);t.command==="onScreenKeyboard"&&this.pixelStreaming._activateOnScreenKeyboard(t)}onProtocolMessage(A){try{const e=new TextDecoder("utf-16").decode(A.slice(1)),t=JSON.parse(e);Object.prototype.hasOwnProperty.call(t,"Direction")||u.Error(u.GetStackTrace(),"Malformed protocol received. Ensure the protocol message contains a direction");const n=t.Direction;delete t.Direction,u.Log(u.GetStackTrace(),`Received new ${n==b.FromStreamer?"FromStreamer":"ToStreamer"} protocol. Updating existing protocol...`),Object.keys(t).forEach(s=>{const i=t[s];switch(n){case b.ToStreamer:if(!Object.prototype.hasOwnProperty.call(i,"id")||!Object.prototype.hasOwnProperty.call(i,"byteLength"))return void u.Error(u.GetStackTrace(),`ToStreamer->${s} protocol definition was malformed as it didn't contain at least an id and a byteLength
|
|
275
48
|
|
|
276
|
-
Definition was: ${JSON.stringify(
|
|
49
|
+
Definition was: ${JSON.stringify(i,null,2)}`);if(i.byteLength>0&&!Object.prototype.hasOwnProperty.call(i,"structure"))return void u.Error(u.GetStackTrace(),`ToStreamer->${s} protocol definition was malformed as it specified a byteLength but no accompanying structure`);this.streamMessageController.toStreamerHandlers.get(s)?this.streamMessageController.toStreamerMessages.add(s,i):u.Error(u.GetStackTrace(),`There was no registered handler for "${s}" - try adding one using registerMessageHandler(MessageDirection.ToStreamer, "${s}", myHandler)`);break;case b.FromStreamer:if(!Object.prototype.hasOwnProperty.call(i,"id"))return void u.Error(u.GetStackTrace(),`FromStreamer->${s} protocol definition was malformed as it didn't contain at least an id
|
|
277
50
|
|
|
278
|
-
Definition was: ${JSON.stringify(A,null,2)}`);this.streamMessageController.fromStreamerHandlers.get(B)?this.streamMessageController.fromStreamerMessages.add(B,A.id):x.Error(x.GetStackTrace(),`There was no registered handler for "${A}" - try adding one using registerMessageHandler(MessageDirection.FromStreamer, "${B}", myHandler)`);break;default:x.Error(x.GetStackTrace(),`Unknown direction: ${y}`)}}),this.toStreamerMessagesController.SendRequestInitialSettings(),this.toStreamerMessagesController.SendRequestQualityControl()}catch(t){x.Log(x.GetStackTrace(),t)}}onInputControlOwnership(e){const t=new Uint8Array(e);x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.InputControlOwnership",6);const o=new Boolean(t[1]).valueOf();x.Log(x.GetStackTrace(),`Received input controller message - will your input control the stream: ${o}`),this.pixelStreaming._onInputControlOwnership(o)}onGamepadResponse(e){const t=new TextDecoder("utf-16").decode(e.slice(1)),o=JSON.parse(t);this.gamePadController.onGamepadResponseReceived(o.controllerId)}onAfkTriggered(){this.afkController.onAfkClick(),this.videoPlayer.isPaused()&&this.videoPlayer.hasVideoSource()&&this.playStream()}setAfkEnabled(e){e?this.onAfkTriggered():this.afkController.stopAfkWarningTimer()}restartStreamAutomatically(){if(this.webSocketController)if(this.webSocketController.webSocket&&this.webSocketController.webSocket.readyState!==WebSocket.CLOSED){this.pixelStreaming._showActionOrErrorOnDisconnect=!1,this.setDisconnectMessageOverride("Restarting stream..."),this.closeSignalingServer();const e=setTimeout(()=>{this.pixelStreaming._onWebRtcAutoConnect(),this.connectToSignallingServer(),clearTimeout(e)},3e3)}else x.Log(x.GetStackTrace(),"A websocket connection has not been made yet so we will start the stream"),this.pixelStreaming._onWebRtcAutoConnect(),this.connectToSignallingServer();else x.Log(x.GetStackTrace(),"The Web Socket Controller does not exist so this will not work right now.")}loadFreezeFrameOrShowPlayOverlay(){this.pixelStreaming.dispatchEvent(new Za({shouldShowPlayOverlay:this.shouldShowPlayOverlay,isValid:this.freezeFrameController.valid,jpegData:this.freezeFrameController.jpeg})),this.shouldShowPlayOverlay===!0?(x.Log(x.GetStackTrace(),"showing play overlay"),this.resizePlayerStyle()):(x.Log(x.GetStackTrace(),"showing freeze frame"),this.freezeFrameController.showFreezeFrame()),setTimeout(()=>{this.videoPlayer.setVideoEnabled(!1)},this.freezeFrameController.freezeFrameDelay)}onFreezeFrameMessage(e){x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.FreezeFrame",6);const t=new Uint8Array(e);this.freezeFrameController.processFreezeFrameMessage(t,()=>this.loadFreezeFrameOrShowPlayOverlay())}invalidateFreezeFrameAndEnableVideo(){x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.FreezeFrame",6),setTimeout(()=>{this.pixelStreaming.dispatchEvent(new qa),this.freezeFrameController.hideFreezeFrame()},this.freezeFrameController.freezeFrameDelay),this.videoPlayer.getVideoElement()&&this.videoPlayer.setVideoEnabled(!0)}onFileExtension(e){const t=new Uint8Array(e);li.setExtensionFromBytes(t,this.file)}onFileMimeType(e){const t=new Uint8Array(e);li.setMimeTypeFromBytes(t,this.file)}onFileContents(e){const t=new Uint8Array(e);li.setContentsFromBytes(t,this.file)}playStream(){if(!this.videoPlayer.getVideoElement()){const e="Could not play video stream because the video player was not initialized correctly.";return this.pixelStreaming.dispatchEvent(new Ya({message:e})),x.Error(x.GetStackTrace(),e),this.setDisconnectMessageOverride("Stream not initialized correctly"),void this.closeSignalingServer()}if(this.videoPlayer.hasVideoSource()){if(this.setTouchInputEnabled(this.config.isFlagEnabled($.TouchInput)),this.pixelStreaming.dispatchEvent(new $a),this.streamController.audioElement.srcObject){const e=this.config.isFlagEnabled($.StartVideoMuted);this.streamController.audioElement.muted=e,e?this.playVideo():this.streamController.audioElement.play().then(()=>{this.playVideo()}).catch(t=>{x.Log(x.GetStackTrace(),t),x.Log(x.GetStackTrace(),"Browser does not support autoplaying video without interaction - to resolve this we are going to show the play button overlay."),this.pixelStreaming.dispatchEvent(new oi({reason:t}))})}else this.playVideo();this.shouldShowPlayOverlay=!1,this.freezeFrameController.showFreezeFrame()}else x.Warning(x.GetStackTrace(),"Cannot play stream, the video element has no srcObject to play.")}playVideo(){this.videoPlayer.play().catch(e=>{this.streamController.audioElement.srcObject&&this.streamController.audioElement.pause(),x.Log(x.GetStackTrace(),e),x.Log(x.GetStackTrace(),"Browser does not support autoplaying video without interaction - to resolve this we are going to show the play button overlay."),this.pixelStreaming.dispatchEvent(new oi({reason:e}))})}autoPlayVideoOrSetUpPlayOverlay(){this.config.isFlagEnabled($.AutoPlayVideo)&&this.playStream(),this.resizePlayerStyle()}connectToSignallingServer(){const e=this.signallingUrlBuilder();this.webSocketController.connect(e)}startSession(e){if(this.peerConfig=e,this.config.isFlagEnabled($.ForceTURN)&&!this.checkTurnServerAvailability(e))return x.Info(x.GetStackTrace(),"No turn server was found in the Peer Connection Options. TURN cannot be forced, closing connection. Please use STUN instead"),this.setDisconnectMessageOverride("TURN cannot be forced, closing connection. Please use STUN instead."),void this.closeSignalingServer();this.peerConnectionController=new dd(this.peerConfig,this.config,this.preferredCodec),this.peerConnectionController.onVideoStats=o=>this.handleVideoStats(o),this.peerConnectionController.onSendWebRTCOffer=o=>this.handleSendWebRTCOffer(o),this.peerConnectionController.onSendWebRTCAnswer=o=>this.handleSendWebRTCAnswer(o),this.peerConnectionController.onPeerIceCandidate=o=>this.handleSendIceCandidate(o),this.peerConnectionController.onDataChannel=o=>this.handleDataChannel(o),this.peerConnectionController.showTextOverlayConnecting=()=>this.pixelStreaming._onWebRtcConnecting(),this.peerConnectionController.showTextOverlaySetupFailure=()=>this.pixelStreaming._onWebRtcFailed();let t=!1;this.peerConnectionController.onIceConnectionStateChange=()=>{!t&&["connected","completed"].includes(this.peerConnectionController.peerConnection.iceConnectionState)&&(this.pixelStreaming._onWebRtcConnected(),t=!0)},this.peerConnectionController.onTrack=o=>this.streamController.handleOnTrack(o),this.config.isFlagEnabled($.BrowserSendOffer)&&(this.sendrecvDataChannelController.createDataChannel(this.peerConnectionController.peerConnection,"cirrus",this.datachannelOptions),this.sendrecvDataChannelController.handleOnMessage=o=>this.handleOnMessage(o),this.peerConnectionController.createOffer(this.sdpConstraints,this.config))}checkTurnServerAvailability(e){if(!e.iceServers)return x.Info(x.GetStackTrace(),"A turn sever was not found"),!1;for(const t of e.iceServers)for(const o of t.urls)if(o.includes("turn"))return x.Log(x.GetStackTrace(),`A turn sever was found at ${o}`),!0;return x.Info(x.GetStackTrace(),"A turn sever was not found"),!1}handleOnConfigMessage(e){this.resizePlayerStyle(),this.startSession(e.peerConnectionOptions),this.webSocketController.onWebRtcAnswer=t=>this.handleWebRtcAnswer(t),this.webSocketController.onWebRtcOffer=t=>this.handleWebRtcOffer(t),this.webSocketController.onWebRtcPeerDataChannels=t=>this.handleWebRtcSFUPeerDatachannels(t),this.webSocketController.onIceCandidate=t=>this.handleIceCandidate(t)}handleStreamerListMessage(e){if(x.Log(x.GetStackTrace(),`Got streamer list ${e.ids}`,6),this.isReconnecting)e.ids.includes(this.subscribedStream)?(this.isReconnecting=!1,this.reconnectAttempt=0,this.webSocketController.sendSubscribe(this.subscribedStream)):this.reconnectAttempt<this.config.getNumericSettingValue(oe.MaxReconnectAttempts)?(this.reconnectAttempt++,setTimeout(()=>{this.webSocketController.requestStreamerList()},2e3)):(this.reconnectAttempt=0,this.isReconnecting=!1,this.shouldReconnect=!1,this.webSocketController.close(),this.config.setOptionSettingValue(ge.StreamerId,""),this.config.setOptionSettingOptions(ge.StreamerId,[]));else{const t=[...e.ids];t.unshift(""),this.config.setOptionSettingOptions(ge.StreamerId,t);const o=new URLSearchParams(window.location.search);let y=null;e.ids.length==1?y=e.ids[0]:this.config.isFlagEnabled($.PreferSFU)&&e.ids.includes("SFU")?y="SFU":o.has(ge.StreamerId)&&e.ids.includes(o.get(ge.StreamerId))&&(y=o.get(ge.StreamerId)),y!==null&&this.config.setOptionSettingValue(ge.StreamerId,y),this.pixelStreaming.dispatchEvent(new tc({messageStreamerList:e,autoSelectedStreamerId:y}))}}handleWebRtcAnswer(e){x.Log(x.GetStackTrace(),`Got answer sdp ${e.sdp}`,6);const t={sdp:e.sdp,type:"answer"};this.peerConnectionController.receiveAnswer(t),this.handlePostWebrtcNegotiation()}handleWebRtcOffer(e){x.Log(x.GetStackTrace(),`Got offer sdp ${e.sdp}`,6),this.isUsingSFU=!!e.sfu&&e.sfu,this.isUsingSFU&&(this.peerConnectionController.preferredCodec="");const t={sdp:e.sdp,type:"offer"};this.peerConnectionController.receiveOffer(t,this.config),this.handlePostWebrtcNegotiation()}handleWebRtcSFUPeerDatachannels(e){const t={ordered:!0,negotiated:!0,id:e.sendStreamId},o=e.sendStreamId!=e.recvStreamId;if(this.sendrecvDataChannelController.createDataChannel(this.peerConnectionController.peerConnection,o?"send-datachannel":"datachannel",t),o){const y={ordered:!0,negotiated:!0,id:e.recvStreamId};this.recvDataChannelController.createDataChannel(this.peerConnectionController.peerConnection,"recv-datachannel",y),this.recvDataChannelController.handleOnOpen=()=>this.webSocketController.sendSFURecvDataChannelReady(),this.recvDataChannelController.handleOnMessage=B=>this.handleOnMessage(B)}else this.sendrecvDataChannelController.handleOnMessage=y=>this.handleOnMessage(y)}handlePostWebrtcNegotiation(){this.afkController.startAfkWarningTimer(),this.pixelStreaming._onWebRtcSdp(),this.statsTimerHandle&&this.statsTimerHandle!==void 0&&window.clearInterval(this.statsTimerHandle),this.statsTimerHandle=window.setInterval(()=>this.getStats(),1e3),this.setMouseInputEnabled(this.config.isFlagEnabled($.MouseInput)),this.setKeyboardInputEnabled(this.config.isFlagEnabled($.KeyboardInput)),this.setGamePadInputEnabled(this.config.isFlagEnabled($.GamepadInput))}handleIceCandidate(e){x.Log(x.GetStackTrace(),"Web RTC Controller: onWebRtcIce",6);const t=new RTCIceCandidate(e);this.peerConnectionController.handleOnIce(t)}handleSendIceCandidate(e){x.Log(x.GetStackTrace(),"OnIceCandidate",6),e.candidate&&e.candidate.candidate&&this.webSocketController.sendIceCandidate(e.candidate)}handleDataChannel(e){x.Log(x.GetStackTrace(),"Data channel created for us by browser as we are a receiving peer.",6),this.sendrecvDataChannelController.dataChannel=e.channel,this.sendrecvDataChannelController.setupDataChannel(),this.sendrecvDataChannelController.handleOnMessage=t=>this.handleOnMessage(t)}handleSendWebRTCOffer(e){x.Log(x.GetStackTrace(),"Sending the offer to the Server",6),this.webSocketController.sendWebRtcOffer(e)}handleSendWebRTCAnswer(e){x.Log(x.GetStackTrace(),"Sending the answer to the Server",6),this.webSocketController.sendWebRtcAnswer(e),this.isUsingSFU&&this.webSocketController.sendWebRtcDatachannelRequest()}setUpMouseAndFreezeFrame(){this.videoElementParentClientRect=this.videoPlayer.getVideoParentElement().getBoundingClientRect(),this.coordinateConverter.setupNormalizeAndQuantize(),this.freezeFrameController.freezeFrame.resize()}closeSignalingServer(){var e;this.shouldReconnect=!1,(e=this.webSocketController)===null||e===void 0||e.close()}closePeerConnection(){var e;(e=this.peerConnectionController)===null||e===void 0||e.close()}close(){this.closeSignalingServer(),this.closePeerConnection()}getStats(){this.peerConnectionController.generateStats()}sendLatencyTest(){this.latencyStartTime=Date.now(),this.sendDescriptorController.sendLatencyTest({StartTime:this.latencyStartTime})}sendEncoderMinQP(e){x.Log(x.GetStackTrace(),`MinQP=${e}
|
|
279
|
-
`,6),
|
|
280
|
-
`,6),
|
|
51
|
+
Definition was: ${JSON.stringify(i,null,2)}`);this.streamMessageController.fromStreamerHandlers.get(s)?this.streamMessageController.fromStreamerMessages.add(s,i.id):u.Error(u.GetStackTrace(),`There was no registered handler for "${i}" - try adding one using registerMessageHandler(MessageDirection.FromStreamer, "${s}", myHandler)`);break;default:u.Error(u.GetStackTrace(),`Unknown direction: ${n}`)}}),this.toStreamerMessagesController.SendRequestInitialSettings(),this.toStreamerMessagesController.SendRequestQualityControl()}catch(e){u.Log(u.GetStackTrace(),e)}}onInputControlOwnership(A){const e=new Uint8Array(A);u.Log(u.GetStackTrace(),"DataChannelReceiveMessageType.InputControlOwnership",6);const t=new Boolean(e[1]).valueOf();u.Log(u.GetStackTrace(),`Received input controller message - will your input control the stream: ${t}`),this.pixelStreaming._onInputControlOwnership(t)}onGamepadResponse(A){const e=new TextDecoder("utf-16").decode(A.slice(1)),t=JSON.parse(e);this.gamePadController.onGamepadResponseReceived(t.controllerId)}onAfkTriggered(){this.afkController.onAfkClick(),this.videoPlayer.isPaused()&&this.videoPlayer.hasVideoSource()&&this.playStream()}setAfkEnabled(A){A?this.onAfkTriggered():this.afkController.stopAfkWarningTimer()}restartStreamAutomatically(){if(this.webSocketController)if(this.webSocketController.webSocket&&this.webSocketController.webSocket.readyState!==WebSocket.CLOSED){this.pixelStreaming._showActionOrErrorOnDisconnect=!1,this.setDisconnectMessageOverride("Restarting stream..."),this.closeSignalingServer();const A=setTimeout(()=>{this.pixelStreaming._onWebRtcAutoConnect(),this.connectToSignallingServer(),clearTimeout(A)},3e3)}else u.Log(u.GetStackTrace(),"A websocket connection has not been made yet so we will start the stream"),this.pixelStreaming._onWebRtcAutoConnect(),this.connectToSignallingServer();else u.Log(u.GetStackTrace(),"The Web Socket Controller does not exist so this will not work right now.")}loadFreezeFrameOrShowPlayOverlay(){this.pixelStreaming.dispatchEvent(new va({shouldShowPlayOverlay:this.shouldShowPlayOverlay,isValid:this.freezeFrameController.valid,jpegData:this.freezeFrameController.jpeg})),this.shouldShowPlayOverlay===!0?(u.Log(u.GetStackTrace(),"showing play overlay"),this.resizePlayerStyle()):(u.Log(u.GetStackTrace(),"showing freeze frame"),this.freezeFrameController.showFreezeFrame()),setTimeout(()=>{this.videoPlayer.setVideoEnabled(!1)},this.freezeFrameController.freezeFrameDelay)}onFreezeFrameMessage(A){u.Log(u.GetStackTrace(),"DataChannelReceiveMessageType.FreezeFrame",6);const e=new Uint8Array(A);this.freezeFrameController.processFreezeFrameMessage(e,()=>this.loadFreezeFrameOrShowPlayOverlay())}invalidateFreezeFrameAndEnableVideo(){u.Log(u.GetStackTrace(),"DataChannelReceiveMessageType.FreezeFrame",6),setTimeout(()=>{this.pixelStreaming.dispatchEvent(new ma),this.freezeFrameController.hideFreezeFrame()},this.freezeFrameController.freezeFrameDelay),this.videoPlayer.getVideoElement()&&this.videoPlayer.setVideoEnabled(!0)}onFileExtension(A){const e=new Uint8Array(A);Rn.setExtensionFromBytes(e,this.file)}onFileMimeType(A){const e=new Uint8Array(A);Rn.setMimeTypeFromBytes(e,this.file)}onFileContents(A){const e=new Uint8Array(A);Rn.setContentsFromBytes(e,this.file)}playStream(){if(!this.videoPlayer.getVideoElement()){const A="Could not play video stream because the video player was not initialized correctly.";return this.pixelStreaming.dispatchEvent(new pa({message:A})),u.Error(u.GetStackTrace(),A),this.setDisconnectMessageOverride("Stream not initialized correctly"),void this.closeSignalingServer()}if(this.videoPlayer.hasVideoSource()){if(this.setTouchInputEnabled(this.config.isFlagEnabled(U.TouchInput)),this.pixelStreaming.dispatchEvent(new Ca),this.streamController.audioElement.srcObject){const A=this.config.isFlagEnabled(U.StartVideoMuted);this.streamController.audioElement.muted=A,A?this.playVideo():this.streamController.audioElement.play().then(()=>{this.playVideo()}).catch(e=>{u.Log(u.GetStackTrace(),e),u.Log(u.GetStackTrace(),"Browser does not support autoplaying video without interaction - to resolve this we are going to show the play button overlay."),this.pixelStreaming.dispatchEvent(new Ln({reason:e}))})}else this.playVideo();this.shouldShowPlayOverlay=!1,this.freezeFrameController.showFreezeFrame()}else u.Warning(u.GetStackTrace(),"Cannot play stream, the video element has no srcObject to play.")}playVideo(){this.videoPlayer.play().catch(A=>{this.streamController.audioElement.srcObject&&this.streamController.audioElement.pause(),u.Log(u.GetStackTrace(),A),u.Log(u.GetStackTrace(),"Browser does not support autoplaying video without interaction - to resolve this we are going to show the play button overlay."),this.pixelStreaming.dispatchEvent(new Ln({reason:A}))})}autoPlayVideoOrSetUpPlayOverlay(){this.config.isFlagEnabled(U.AutoPlayVideo)&&this.playStream(),this.resizePlayerStyle()}connectToSignallingServer(){const A=this.signallingUrlBuilder();this.webSocketController.connect(A)}startSession(A){if(this.peerConfig=A,this.config.isFlagEnabled(U.ForceTURN)&&!this.checkTurnServerAvailability(A))return u.Info(u.GetStackTrace(),"No turn server was found in the Peer Connection Options. TURN cannot be forced, closing connection. Please use STUN instead"),this.setDisconnectMessageOverride("TURN cannot be forced, closing connection. Please use STUN instead."),void this.closeSignalingServer();this.peerConnectionController=new Td(this.peerConfig,this.config,this.preferredCodec),this.peerConnectionController.onVideoStats=t=>this.handleVideoStats(t),this.peerConnectionController.onSendWebRTCOffer=t=>this.handleSendWebRTCOffer(t),this.peerConnectionController.onSendWebRTCAnswer=t=>this.handleSendWebRTCAnswer(t),this.peerConnectionController.onPeerIceCandidate=t=>this.handleSendIceCandidate(t),this.peerConnectionController.onDataChannel=t=>this.handleDataChannel(t),this.peerConnectionController.showTextOverlayConnecting=()=>this.pixelStreaming._onWebRtcConnecting(),this.peerConnectionController.showTextOverlaySetupFailure=()=>this.pixelStreaming._onWebRtcFailed();let e=!1;this.peerConnectionController.onIceConnectionStateChange=()=>{!e&&["connected","completed"].includes(this.peerConnectionController.peerConnection.iceConnectionState)&&(this.pixelStreaming._onWebRtcConnected(),e=!0)},this.peerConnectionController.onTrack=t=>this.streamController.handleOnTrack(t),this.config.isFlagEnabled(U.BrowserSendOffer)&&(this.sendrecvDataChannelController.createDataChannel(this.peerConnectionController.peerConnection,"cirrus",this.datachannelOptions),this.sendrecvDataChannelController.handleOnMessage=t=>this.handleOnMessage(t),this.peerConnectionController.createOffer(this.sdpConstraints,this.config))}checkTurnServerAvailability(A){if(!A.iceServers)return u.Info(u.GetStackTrace(),"A turn sever was not found"),!1;for(const e of A.iceServers)for(const t of e.urls)if(t.includes("turn"))return u.Log(u.GetStackTrace(),`A turn sever was found at ${t}`),!0;return u.Info(u.GetStackTrace(),"A turn sever was not found"),!1}handleOnConfigMessage(A){this.resizePlayerStyle(),this.startSession(A.peerConnectionOptions),this.webSocketController.onWebRtcAnswer=e=>this.handleWebRtcAnswer(e),this.webSocketController.onWebRtcOffer=e=>this.handleWebRtcOffer(e),this.webSocketController.onWebRtcPeerDataChannels=e=>this.handleWebRtcSFUPeerDatachannels(e),this.webSocketController.onIceCandidate=e=>this.handleIceCandidate(e)}handleStreamerListMessage(A){if(u.Log(u.GetStackTrace(),`Got streamer list ${A.ids}`,6),this.isReconnecting)A.ids.includes(this.subscribedStream)?(this.isReconnecting=!1,this.reconnectAttempt=0,this.webSocketController.sendSubscribe(this.subscribedStream)):this.reconnectAttempt<this.config.getNumericSettingValue(D.MaxReconnectAttempts)?(this.reconnectAttempt++,setTimeout(()=>{this.webSocketController.requestStreamerList()},2e3)):(this.reconnectAttempt=0,this.isReconnecting=!1,this.shouldReconnect=!1,this.webSocketController.close(),this.config.setOptionSettingValue(V.StreamerId,""),this.config.setOptionSettingOptions(V.StreamerId,[]));else{const e=[...A.ids];e.unshift(""),this.config.setOptionSettingOptions(V.StreamerId,e);const t=new URLSearchParams(window.location.search);let n=null;A.ids.length==1?n=A.ids[0]:this.config.isFlagEnabled(U.PreferSFU)&&A.ids.includes("SFU")?n="SFU":t.has(V.StreamerId)&&A.ids.includes(t.get(V.StreamerId))&&(n=t.get(V.StreamerId)),n!==null&&this.config.setOptionSettingValue(V.StreamerId,n),this.pixelStreaming.dispatchEvent(new Qa({messageStreamerList:A,autoSelectedStreamerId:n}))}}handleWebRtcAnswer(A){u.Log(u.GetStackTrace(),`Got answer sdp ${A.sdp}`,6);const e={sdp:A.sdp,type:"answer"};this.peerConnectionController.receiveAnswer(e),this.handlePostWebrtcNegotiation()}handleWebRtcOffer(A){u.Log(u.GetStackTrace(),`Got offer sdp ${A.sdp}`,6),this.isUsingSFU=!!A.sfu&&A.sfu,this.isUsingSFU&&(this.peerConnectionController.preferredCodec="");const e={sdp:A.sdp,type:"offer"};this.peerConnectionController.receiveOffer(e,this.config),this.handlePostWebrtcNegotiation()}handleWebRtcSFUPeerDatachannels(A){const e={ordered:!0,negotiated:!0,id:A.sendStreamId},t=A.sendStreamId!=A.recvStreamId;if(this.sendrecvDataChannelController.createDataChannel(this.peerConnectionController.peerConnection,t?"send-datachannel":"datachannel",e),t){const n={ordered:!0,negotiated:!0,id:A.recvStreamId};this.recvDataChannelController.createDataChannel(this.peerConnectionController.peerConnection,"recv-datachannel",n),this.recvDataChannelController.handleOnOpen=()=>this.webSocketController.sendSFURecvDataChannelReady(),this.recvDataChannelController.handleOnMessage=s=>this.handleOnMessage(s)}else this.sendrecvDataChannelController.handleOnMessage=n=>this.handleOnMessage(n)}handlePostWebrtcNegotiation(){this.afkController.startAfkWarningTimer(),this.pixelStreaming._onWebRtcSdp(),this.statsTimerHandle&&this.statsTimerHandle!==void 0&&window.clearInterval(this.statsTimerHandle),this.statsTimerHandle=window.setInterval(()=>this.getStats(),1e3),this.setMouseInputEnabled(this.config.isFlagEnabled(U.MouseInput)),this.setKeyboardInputEnabled(this.config.isFlagEnabled(U.KeyboardInput)),this.setGamePadInputEnabled(this.config.isFlagEnabled(U.GamepadInput))}handleIceCandidate(A){u.Log(u.GetStackTrace(),"Web RTC Controller: onWebRtcIce",6);const e=new RTCIceCandidate(A);this.peerConnectionController.handleOnIce(e)}handleSendIceCandidate(A){u.Log(u.GetStackTrace(),"OnIceCandidate",6),A.candidate&&A.candidate.candidate&&this.webSocketController.sendIceCandidate(A.candidate)}handleDataChannel(A){u.Log(u.GetStackTrace(),"Data channel created for us by browser as we are a receiving peer.",6),this.sendrecvDataChannelController.dataChannel=A.channel,this.sendrecvDataChannelController.setupDataChannel(),this.sendrecvDataChannelController.handleOnMessage=e=>this.handleOnMessage(e)}handleSendWebRTCOffer(A){u.Log(u.GetStackTrace(),"Sending the offer to the Server",6),this.webSocketController.sendWebRtcOffer(A)}handleSendWebRTCAnswer(A){u.Log(u.GetStackTrace(),"Sending the answer to the Server",6),this.webSocketController.sendWebRtcAnswer(A),this.isUsingSFU&&this.webSocketController.sendWebRtcDatachannelRequest()}setUpMouseAndFreezeFrame(){this.videoElementParentClientRect=this.videoPlayer.getVideoParentElement().getBoundingClientRect(),this.coordinateConverter.setupNormalizeAndQuantize(),this.freezeFrameController.freezeFrame.resize()}closeSignalingServer(){var A;this.shouldReconnect=!1,(A=this.webSocketController)===null||A===void 0||A.close()}closePeerConnection(){var A;(A=this.peerConnectionController)===null||A===void 0||A.close()}close(){this.closeSignalingServer(),this.closePeerConnection()}getStats(){this.peerConnectionController.generateStats()}sendLatencyTest(){this.latencyStartTime=Date.now(),this.sendDescriptorController.sendLatencyTest({StartTime:this.latencyStartTime})}sendEncoderMinQP(A){u.Log(u.GetStackTrace(),`MinQP=${A}
|
|
52
|
+
`,6),A!=null&&this.sendDescriptorController.emitCommand({"Encoder.MinQP":A})}sendEncoderMaxQP(A){u.Log(u.GetStackTrace(),`MaxQP=${A}
|
|
53
|
+
`,6),A!=null&&this.sendDescriptorController.emitCommand({"Encoder.MaxQP":A})}sendWebRTCMinBitrate(A){u.Log(u.GetStackTrace(),`WebRTC Min Bitrate=${A}`,6),A!=null&&this.sendDescriptorController.emitCommand({"WebRTC.MinBitrate":A})}sendWebRTCMaxBitrate(A){u.Log(u.GetStackTrace(),`WebRTC Max Bitrate=${A}`,6),A!=null&&this.sendDescriptorController.emitCommand({"WebRTC.MaxBitrate":A})}sendWebRTCFps(A){u.Log(u.GetStackTrace(),`WebRTC FPS=${A}`,6),A!=null&&(this.sendDescriptorController.emitCommand({"WebRTC.Fps":A}),this.sendDescriptorController.emitCommand({"WebRTC.MaxFps":A}))}sendShowFps(){u.Log(u.GetStackTrace(),"---- Sending show stat to UE ----",6),this.sendDescriptorController.emitCommand({"stat.fps":""})}sendIframeRequest(){u.Log(u.GetStackTrace(),"---- Sending Request for an IFrame ----",6),this.streamMessageController.toStreamerHandlers.get("IFrameRequest")()}emitUIInteraction(A){u.Log(u.GetStackTrace(),"---- Sending custom UIInteraction message ----",6),this.sendDescriptorController.emitUIInteraction(A)}emitCommand(A){u.Log(u.GetStackTrace(),"---- Sending custom Command message ----",6),this.sendDescriptorController.emitCommand(A)}emitConsoleCommand(A){u.Log(u.GetStackTrace(),"---- Sending custom Command:ConsoleCommand message ----",6),this.sendDescriptorController.emitCommand({ConsoleCommand:A})}sendRequestQualityControlOwnership(){u.Log(u.GetStackTrace(),"---- Sending Request to Control Quality ----",6),this.toStreamerMessagesController.SendRequestQualityControl()}handleLatencyTestResult(A){u.Log(u.GetStackTrace(),"DataChannelReceiveMessageType.latencyTest",6);const e=new TextDecoder("utf-16").decode(A.slice(1)),t=new _a;Object.assign(t,JSON.parse(e)),t.processFields(),t.testStartTimeMs=this.latencyStartTime,t.browserReceiptTimeMs=Date.now(),t.latencyExcludingDecode=~~(t.browserReceiptTimeMs-t.testStartTimeMs),t.testDuration=~~(t.TransmissionTimeMs-t.ReceiptTimeMs),t.networkLatency=~~(t.latencyExcludingDecode-t.testDuration),t.frameDisplayDeltaTimeMs&&t.browserReceiptTimeMs&&(t.endToEndLatency=(t.frameDisplayDeltaTimeMs,t.networkLatency,~~+t.CaptureToSendMs)),this.pixelStreaming._onLatencyTestResult(t)}handleInitialSettings(A){u.Log(u.GetStackTrace(),"DataChannelReceiveMessageType.InitialSettings",6);const e=new TextDecoder("utf-16").decode(A.slice(1)),t=JSON.parse(e),n=new ka;t.Encoder&&(n.EncoderSettings=t.Encoder),t.WebRTC&&(n.WebRTCSettings=t.WebRTC),t.PixelStreaming&&(n.PixelStreamingSettings=t.PixelStreaming),t.ConfigOptions&&t.ConfigOptions.DefaultToHover!==void 0&&this.config.setFlagEnabled(U.HoveringMouseMode,!!t.ConfigOptions.DefaultToHover),n.ueCompatible(),u.Log(u.GetStackTrace(),e,6),this.pixelStreaming._onInitialSettings(n)}handleVideoEncoderAvgQP(A){u.Log(u.GetStackTrace(),"DataChannelReceiveMessageType.VideoEncoderAvgQP",6);const e=Number(new TextDecoder("utf-16").decode(A.slice(1)));this.setVideoEncoderAvgQP(e)}handleVideoInitialized(){this.pixelStreaming._onVideoInitialized(),this.autoPlayVideoOrSetUpPlayOverlay(),this.resizePlayerStyle(),this.videoPlayer.updateVideoStreamSize()}onQualityControlOwnership(A){const e=new Uint8Array(A);u.Log(u.GetStackTrace(),"DataChannelReceiveMessageType.QualityControlOwnership",6),this.isQualityController=new Boolean(e[1]).valueOf(),u.Log(u.GetStackTrace(),`Received quality controller message, will control quality: ${this.isQualityController}`),this.pixelStreaming._onQualityControlOwnership(this.isQualityController)}handleVideoStats(A){this.pixelStreaming._onVideoStats(A)}resizePlayerStyle(){this.videoPlayer.resizePlayerStyle()}getDisconnectMessageOverride(){return this.disconnectMessageOverride}setDisconnectMessageOverride(A){this.disconnectMessageOverride=A}setPreferredCodec(A){this.preferredCodec=A,this.peerConnectionController&&(this.peerConnectionController.preferredCodec=A,this.peerConnectionController.updateCodecSelection=!1)}setVideoEncoderAvgQP(A){this.videoAvgQp=A,this.pixelStreaming._onVideoEncoderAvgQP(this.videoAvgQp)}setKeyboardInputEnabled(A){var e;(e=this.keyboardController)===null||e===void 0||e.unregisterKeyBoardEvents(),A&&(this.keyboardController=this.inputClassesFactory.registerKeyBoard(this.config))}setMouseInputEnabled(A){var e;if((e=this.mouseController)===null||e===void 0||e.unregisterMouseEvents(),A){const t=this.config.isFlagEnabled(U.HoveringMouseMode)?ZA.HoveringMouse:ZA.LockedMouse;this.mouseController=this.inputClassesFactory.registerMouse(t)}}setTouchInputEnabled(A){var e;(e=this.touchController)===null||e===void 0||e.unregisterTouchEvents(),A&&(this.touchController=this.inputClassesFactory.registerTouch(this.config.isFlagEnabled(U.FakeMouseWithTouches),this.videoElementParentClientRect))}setGamePadInputEnabled(A){var e;(e=this.gamePadController)===null||e===void 0||e.unregisterGamePadEvents(),A&&(this.gamePadController=this.inputClassesFactory.registerGamePad(),this.gamePadController.onGamepadConnected=()=>{this.streamMessageController.toStreamerHandlers.get("GamepadConnected")()},this.gamePadController.onGamepadDisconnected=t=>{this.streamMessageController.toStreamerHandlers.get("GamepadDisconnected")([t])})}registerDataChannelEventEmitters(A){A.onOpen=(e,t)=>this.pixelStreaming.dispatchEvent(new ca({label:e,event:t})),A.onClose=(e,t)=>this.pixelStreaming.dispatchEvent(new da({label:e,event:t})),A.onError=(e,t)=>this.pixelStreaming.dispatchEvent(new ua({label:e,event:t}))}}class Xa{static vertexShader(){return`
|
|
281
54
|
attribute vec2 a_position;
|
|
282
55
|
attribute vec2 a_texCoord;
|
|
283
56
|
|
|
@@ -315,7 +88,7 @@ Msg: ${t}`;console.warn(o)}};x.verboseLogLevel=5,function(v){v.LIST_STREAMERS="l
|
|
|
315
88
|
void main() {
|
|
316
89
|
gl_FragColor = texture2D(u_image, v_texCoord);
|
|
317
90
|
}
|
|
318
|
-
`}}class Ec{static deepCopyGamepad(e){return JSON.parse(JSON.stringify({buttons:e.buttons.map(t=>JSON.parse(JSON.stringify({pressed:t.pressed,touched:t.touched}))),axes:e.axes}))}}class xd{constructor(e){this.toStreamerMessagesProvider=e,this.controllers=[]}updateStatus(e,t,o){if(e.gamepad){const y=t.getPose(e.gripSpace,o);if(!y)return;let B=0;e.profiles.includes("htc-vive")?B=1:e.profiles.includes("oculus-touch")&&(B=2),this.toStreamerMessagesProvider.toStreamerHandlers.get("XRSystem")([B]);let A=2;switch(e.handedness){case"left":A=0;break;case"right":A=1}const h=y.transform.matrix,m=[];for(let u=0;u<16;u++)m[u]=new Float32Array([h[u]])[0];this.toStreamerMessagesProvider.toStreamerHandlers.get("XRControllerTransform")([m[0],m[4],m[8],m[12],m[1],m[5],m[9],m[13],m[2],m[6],m[10],m[14],m[3],m[7],m[11],m[15],A]),this.controllers[A]===void 0&&(this.controllers[A]={prevState:void 0,currentState:void 0,id:void 0},this.controllers[A].prevState=Ec.deepCopyGamepad(e.gamepad)),this.controllers[A].currentState=Ec.deepCopyGamepad(e.gamepad);const g=this.controllers[A],w=g.currentState,p=g.prevState;for(let u=0;u<w.buttons.length;u++){const f=w.buttons[u],c=p.buttons[u];f.pressed?this.toStreamerMessagesProvider.toStreamerHandlers.get("XRButtonPressed")([A,u,c.pressed?1:0]):!f.pressed&&c.pressed&&this.toStreamerMessagesProvider.toStreamerHandlers.get("XRButtonReleased")([A,u,0]),f.touched&&!f.pressed?this.toStreamerMessagesProvider.toStreamerHandlers.get("XRButtonPressed")([A,3,c.touched?1:0]):!f.touched&&c.touched&&this.toStreamerMessagesProvider.toStreamerHandlers.get("XRButtonReleased")([A,3,0])}for(let u=0;u<w.axes.length;u++)this.toStreamerMessagesProvider.toStreamerHandlers.get("XRAnalog")([A,u,w.axes[u]]);this.controllers[A].prevState=w}}}class Fc{constructor(e){this.xrSession=null,this.webRtcController=e,this.xrControllers=[],this.xrGamepadController=new xd(this.webRtcController.streamMessageController),this.onSessionEnded=new EventTarget,this.onSessionStarted=new EventTarget,this.onFrame=new EventTarget}xrClicked(){this.xrSession?this.xrSession.end():navigator.xr.requestSession("immersive-vr").then(e=>{this.onXrSessionStarted(e)})}onXrSessionEnded(){x.Log(x.GetStackTrace(),"XR Session ended"),this.xrSession=null,this.onSessionEnded.dispatchEvent(new Event("xrSessionEnded"))}onXrSessionStarted(e){x.Log(x.GetStackTrace(),"XR Session started"),this.xrSession=e,this.xrSession.addEventListener("end",()=>{this.onXrSessionEnded()});const t=document.createElement("canvas");this.gl=t.getContext("webgl2",{xrCompatible:!0}),this.xrSession.updateRenderState({baseLayer:new XRWebGLLayer(this.xrSession,this.gl)});const o=this.gl.createShader(this.gl.VERTEX_SHADER);this.gl.shaderSource(o,_c.vertexShader()),this.gl.compileShader(o);const y=this.gl.createShader(this.gl.FRAGMENT_SHADER);this.gl.shaderSource(y,_c.fragmentShader()),this.gl.compileShader(y);const B=this.gl.createProgram();this.gl.attachShader(B,o),this.gl.attachShader(B,y),this.gl.linkProgram(B),this.gl.useProgram(B),this.positionLocation=this.gl.getAttribLocation(B,"a_position"),this.texcoordLocation=this.gl.getAttribLocation(B,"a_texCoord"),this.positionBuffer=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.positionBuffer),this.gl.enableVertexAttribArray(this.positionLocation);const A=this.gl.createTexture();this.gl.bindTexture(this.gl.TEXTURE_2D,A),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.NEAREST),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.NEAREST),this.texcoordBuffer=this.gl.createBuffer(),this.resolutionLocation=this.gl.getUniformLocation(B,"u_resolution"),this.offsetLocation=this.gl.getUniformLocation(B,"u_offset"),e.requestReferenceSpace("local").then(h=>{this.xrRefSpace=h,this.xrSession.requestAnimationFrame((m,g)=>this.onXrFrame(m,g))}),this.onSessionStarted.dispatchEvent(new Event("xrSessionStarted"))}onXrFrame(e,t){const o=t.getViewerPose(this.xrRefSpace);if(o){const y=o.transform.matrix,B=[];for(let h=0;h<16;h++)B[h]=new Float32Array([y[h]])[0];this.webRtcController.streamMessageController.toStreamerHandlers.get("XRHMDTransform")([B[0],B[4],B[8],B[12],B[1],B[5],B[9],B[13],B[2],B[6],B[10],B[14],B[3],B[7],B[11],B[15]]);const A=this.xrSession.renderState.baseLayer;this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,A.framebuffer),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.webRtcController.videoPlayer.getVideoElement()),this.render(this.webRtcController.videoPlayer.getVideoElement())}this.webRtcController.config.isFlagEnabled($.XRControllerInput)&&this.xrSession.inputSources.forEach((y,B,A)=>{this.xrGamepadController.updateStatus(y,t,this.xrRefSpace)},this),this.xrSession.requestAnimationFrame((y,B)=>this.onXrFrame(y,B)),this.onFrame.dispatchEvent(new nc({time:e,frame:t}))}render(e){if(!this.gl)return;const t=this.xrSession.renderState.baseLayer;let o,y,B,A,h;this.gl.viewport(0,0,t.framebufferWidth,t.framebufferHeight),this.gl.uniform4f(this.offsetLocation,1,1,0,0),this.gl.bufferData(this.gl.ARRAY_BUFFER,new Float32Array([0,0,e.videoWidth,0,0,e.videoHeight,0,e.videoHeight,e.videoWidth,0,e.videoWidth,e.videoHeight]),this.gl.STATIC_DRAW),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.texcoordBuffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),this.gl.STATIC_DRAW),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.positionBuffer),o=2,y=this.gl.FLOAT,B=!1,A=0,h=0,this.gl.vertexAttribPointer(this.positionLocation,o,y,B,A,h),this.gl.enableVertexAttribArray(this.texcoordLocation),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.texcoordBuffer),o=2,y=this.gl.FLOAT,B=!1,A=0,h=0,this.gl.vertexAttribPointer(this.texcoordLocation,o,y,B,A,h),this.gl.uniform2f(this.resolutionLocation,e.videoWidth,e.videoHeight);const m=this.gl.TRIANGLES;h=0,this.gl.drawArrays(m,h,6)}static isSessionSupported(e){return navigator.xr?navigator.xr.isSessionSupported(e):new Promise(()=>!1)}}class Od{constructor(e){this.editTextButton=null,this.hiddenInput=null,"ontouchstart"in document.documentElement&&this.createOnScreenKeyboardHelpers(e)}unquantizeAndDenormalizeUnsigned(e,t){return null}createOnScreenKeyboardHelpers(e){this.hiddenInput||(this.hiddenInput=document.createElement("input"),this.hiddenInput.id="hiddenInput",this.hiddenInput.maxLength=0,e.appendChild(this.hiddenInput)),this.editTextButton||(this.editTextButton=document.createElement("button"),this.editTextButton.id="editTextButton",this.editTextButton.innerHTML="edit text",e.appendChild(this.editTextButton),this.editTextButton.classList.add("hiddenState"),this.editTextButton.addEventListener("touchend",t=>{this.hiddenInput.focus(),t.preventDefault()}))}showOnScreenKeyboard(e){if(e.showOnScreenKeyboard){this.editTextButton.classList.remove("hiddenState");const t=this.unquantizeAndDenormalizeUnsigned(e.x,e.y);this.editTextButton.style.top=t.y.toString()+"px",this.editTextButton.style.left=(t.x-40).toString()+"px"}else this.editTextButton.classList.add("hiddenState"),this.hiddenInput.blur()}}class Md{constructor(e,t){this._showActionOrErrorOnDisconnect=!0,this.allowConsoleCommands=!1,this.config=e,t!=null&&t.videoElementParent&&(this._videoElementParent=t.videoElementParent),this._eventEmitter=new oc,this.configureSettings(),this.setWebRtcPlayerController(new bc(this.config,this)),this.onScreenKeyboardHelper=new Od(this.videoElementParent),this.onScreenKeyboardHelper.unquantizeAndDenormalizeUnsigned=(o,y)=>this._webRtcController.requestUnquantizedAndDenormalizeUnsigned(o,y),this._activateOnScreenKeyboard=o=>this.onScreenKeyboardHelper.showOnScreenKeyboard(o),this._webXrController=new Fc(this._webRtcController)}get videoElementParent(){return this._videoElementParent||(this._videoElementParent=document.createElement("div"),this._videoElementParent.id="videoElementParent"),this._videoElementParent}configureSettings(){this.config._addOnSettingChangedListener($.IsQualityController,e=>{e!==!0||this._webRtcController.isQualityController||this._webRtcController.sendRequestQualityControlOwnership()}),this.config._addOnSettingChangedListener($.AFKDetection,e=>{this._webRtcController.setAfkEnabled(e)}),this.config._addOnSettingChangedListener($.MatchViewportResolution,()=>{this._webRtcController.videoPlayer.updateVideoStreamSize()}),this.config._addOnSettingChangedListener($.HoveringMouseMode,e=>{this.config.setFlagLabel($.HoveringMouseMode,`Control Scheme: ${e?"Hovering":"Locked"} Mouse`),this._webRtcController.setMouseInputEnabled(this.config.isFlagEnabled($.MouseInput))}),this.config._addOnSettingChangedListener($.KeyboardInput,e=>{this._webRtcController.setKeyboardInputEnabled(e)}),this.config._addOnSettingChangedListener($.MouseInput,e=>{this._webRtcController.setMouseInputEnabled(e)}),this.config._addOnSettingChangedListener($.TouchInput,e=>{this._webRtcController.setTouchInputEnabled(e)}),this.config._addOnSettingChangedListener($.GamepadInput,e=>{this._webRtcController.setGamePadInputEnabled(e)}),this.config._addOnNumericSettingChangedListener(oe.MinQP,e=>{x.Log(x.GetStackTrace(),"-------- Sending MinQP --------",7),this._webRtcController.sendEncoderMinQP(e),x.Log(x.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnNumericSettingChangedListener(oe.MaxQP,e=>{x.Log(x.GetStackTrace(),"-------- Sending encoder settings --------",7),this._webRtcController.sendEncoderMaxQP(e),x.Log(x.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnNumericSettingChangedListener(oe.WebRTCMinBitrate,e=>{x.Log(x.GetStackTrace(),"-------- Sending web rtc settings --------",7),this._webRtcController.sendWebRTCMinBitrate(1e3*e),x.Log(x.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnNumericSettingChangedListener(oe.WebRTCMaxBitrate,e=>{x.Log(x.GetStackTrace(),"-------- Sending web rtc settings --------",7),this._webRtcController.sendWebRTCMaxBitrate(1e3*e),x.Log(x.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnNumericSettingChangedListener(oe.WebRTCFPS,e=>{x.Log(x.GetStackTrace(),"-------- Sending web rtc settings --------",7),this._webRtcController.sendWebRTCFps(e),x.Log(x.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnOptionSettingChangedListener(ge.PreferredCodec,e=>{this._webRtcController&&this._webRtcController.setPreferredCodec(e)}),this.config._registerOnChangeEvents(this._eventEmitter)}_activateOnScreenKeyboard(e){throw new Error("Method not implemented.")}_onInputControlOwnership(e){this._inputController=e}setWebRtcPlayerController(e){this._webRtcController=e,this._webRtcController.setPreferredCodec(this.config.getSettingOption(ge.PreferredCodec).selected),this._webRtcController.resizePlayerStyle(),this.checkForAutoConnect()}connect(){this._eventEmitter.dispatchEvent(new za),this._webRtcController.connectToSignallingServer()}reconnect(){this._eventEmitter.dispatchEvent(new Xa),this._webRtcController.restartStreamAutomatically()}disconnect(){this._eventEmitter.dispatchEvent(new Ja),this._webRtcController.close()}play(){this._onStreamLoading(),this._webRtcController.playStream()}checkForAutoConnect(){this.config.isFlagEnabled($.AutoConnect)&&(this._onWebRtcAutoConnect(),this._webRtcController.connectToSignallingServer())}_onWebRtcAutoConnect(){this._eventEmitter.dispatchEvent(new La),this._showActionOrErrorOnDisconnect=!0}_onWebRtcSdp(){this._eventEmitter.dispatchEvent(new Ha)}_onStreamLoading(){this._eventEmitter.dispatchEvent(new Wa)}_onDisconnect(e){this._webRtcController.getDisconnectMessageOverride()!=""&&this._webRtcController.getDisconnectMessageOverride()!==void 0&&this._webRtcController.getDisconnectMessageOverride()!=null&&(e=this._webRtcController.getDisconnectMessageOverride(),this._webRtcController.setDisconnectMessageOverride("")),this._eventEmitter.dispatchEvent(new Ka({eventString:e,showActionOrErrorOnDisconnect:this._showActionOrErrorOnDisconnect})),this._showActionOrErrorOnDisconnect==0&&(this._showActionOrErrorOnDisconnect=!0)}_onWebRtcConnecting(){this._eventEmitter.dispatchEvent(new Da)}_onWebRtcConnected(){this._eventEmitter.dispatchEvent(new Ra)}_onWebRtcFailed(){this._eventEmitter.dispatchEvent(new ka)}_onVideoInitialized(){this._eventEmitter.dispatchEvent(new ja),this._videoStartTime=Date.now()}_onLatencyTestResult(e){this._eventEmitter.dispatchEvent(new rc({latencyTimings:e}))}_onVideoStats(e){this._videoStartTime&&this._videoStartTime!==void 0||(this._videoStartTime=Date.now()),e.handleSessionStatistics(this._videoStartTime,this._inputController,this._webRtcController.videoAvgQp),this._eventEmitter.dispatchEvent(new ec({aggregatedStats:e}))}_onVideoEncoderAvgQP(e){this._eventEmitter.dispatchEvent(new Ma({avgQP:e}))}_onInitialSettings(e){var t;this._eventEmitter.dispatchEvent(new Ac({settings:e})),e.PixelStreamingSettings&&(this.allowConsoleCommands=(t=e.PixelStreamingSettings.AllowPixelStreamingCommands)!==null&&t!==void 0&&t,this.allowConsoleCommands===!1&&x.Info(x.GetStackTrace(),"-AllowPixelStreamingCommands=false, sending arbitrary console commands from browser to UE is disabled."));const o=this.config.useUrlParams,y=new URLSearchParams(window.location.search);e.EncoderSettings&&(this.config.setNumericSetting(oe.MinQP,o&&y.has(oe.MinQP)?Number.parseInt(y.get(oe.MinQP)):e.EncoderSettings.MinQP),this.config.setNumericSetting(oe.MaxQP,o&&y.has(oe.MaxQP)?Number.parseInt(y.get(oe.MaxQP)):e.EncoderSettings.MaxQP)),e.WebRTCSettings&&(this.config.setNumericSetting(oe.WebRTCMinBitrate,o&&y.has(oe.WebRTCMinBitrate)?Number.parseInt(y.get(oe.WebRTCMinBitrate)):e.WebRTCSettings.MinBitrate/1e3),this.config.setNumericSetting(oe.WebRTCMaxBitrate,o&&y.has(oe.WebRTCMaxBitrate)?Number.parseInt(y.get(oe.WebRTCMaxBitrate)):e.WebRTCSettings.MaxBitrate/1e3),this.config.setNumericSetting(oe.WebRTCFPS,o&&y.has(oe.WebRTCFPS)?Number.parseInt(y.get(oe.WebRTCFPS)):e.WebRTCSettings.FPS))}_onQualityControlOwnership(e){this.config.setFlagEnabled($.IsQualityController,e)}_onPlayerCount(e){this._eventEmitter.dispatchEvent(new ic({count:e}))}requestLatencyTest(){return!!this._webRtcController.videoPlayer.isVideoReady()&&(this._webRtcController.sendLatencyTest(),!0)}requestShowFps(){return!!this._webRtcController.videoPlayer.isVideoReady()&&(this._webRtcController.sendShowFps(),!0)}requestIframe(){return!!this._webRtcController.videoPlayer.isVideoReady()&&(this._webRtcController.sendIframeRequest(),!0)}emitUIInteraction(e){return!!this._webRtcController.videoPlayer.isVideoReady()&&(this._webRtcController.emitUIInteraction(e),!0)}emitCommand(e){return!(!this._webRtcController.videoPlayer.isVideoReady()||!this.allowConsoleCommands&&"ConsoleCommand"in e||(this._webRtcController.emitCommand(e),0))}emitConsoleCommand(e){return!(!this.allowConsoleCommands||!this._webRtcController.videoPlayer.isVideoReady()||(this._webRtcController.emitConsoleCommand(e),0))}addResponseEventListener(e,t){this._webRtcController.responseController.addResponseEventListener(e,t)}removeResponseEventListener(e){this._webRtcController.responseController.removeResponseEventListener(e)}dispatchEvent(e){return this._eventEmitter.dispatchEvent(e)}addEventListener(e,t){this._eventEmitter.addEventListener(e,t)}removeEventListener(e,t){this._eventEmitter.removeEventListener(e,t)}toggleXR(){this.webXrController.xrClicked()}setSignallingUrlBuilder(e){this._webRtcController.signallingUrlBuilder=e}get webSocketController(){return this._webRtcController.webSocketController}get webXrController(){return this._webXrController}}te.Dz,te.g$,te.Lt,te.Q9,te.qf,te.hV,te.z$,te.J0;var Qc=te.De;te.$C,te.al,te._W,te.tz,te.Nu,te.zg,te.vp;var kt=te.vU;te.wF,te.rv,te.Nh,te.ss,te.qW,te.QL,te.cf,te.eM;var Sc=te.Yd;te.iM,te.qy,te.ce;var Uc=te.sK;te.Ok,te.q5;var Tc=te.g;te.xl,te.I,te.bx,te.dD,te.Ib,te.Az,te.Iw,te.qY,te.db,te.mR,te.Tn,te.rV,te.gh,te.Mi,te.j,te.YB,te.i5;var Hd=te.x_;te.Am,te.eR,te.r8,te.u3,te.vd,te.iV,te.jZ,te.SW,te.ZH,te.Ni,te.lh,te.bq,te.$f,te.eu,te.Ax,te.Mc;const Ld={Response:1},YA={UIInteraction:50,MouseWheel:75};class Dd extends V.HasOwner{constructor(t,o){super(t);z(this,"_processResponseFn",t=>this.esUeViewer.processResponse(t));z(this,"_inner");this._uri=o,this._inner=new WebSocket(this._uri),this.d(()=>{this._inner.close()}),this._innerInit()}get esUeViewer(){return this.owner}get uri(){return this._uri}get inner(){return this._inner}_innerInit(){this.inner.onmessage=t=>{if(this.isDestroyed())return;let o=new FileReader;o.onload=y=>{if(this.isDestroyed())return;let B=y.target.result,A=new Uint32Array(B),h=0;if(A[0]===Ld.Response){h+=4;let m=A[h/4];h+=4;for(let g=0;g<m;g++){let w=A[h/4];h+=4;let p=new TextDecoder("utf-8").decode(B.slice(h,h+w));h+=w,this._processResponseFn(p)}}},o.readAsArrayBuffer(t.data)},this.inner.onopen=()=>{this.isDestroyed()||(console.warn("earthsdk message websocket server connected:",this.uri),console.log("%c[EarthSDK websocket open]","background: #a6ec99; color: black","open"),this.owner.dispatchEvent(new CustomEvent("esmsgwsopen",{detail:"websocket open"})))},this._inner.onclose=t=>{this.isDestroyed()||(console.log("%c[EarthSDK websocket close ]","background: red; color: black","error"),this.owner.dispatchEvent(new CustomEvent("error",{detail:"websocket close"})))},this._inner.onerror=t=>{this.isDestroyed()||(console.log("%c[EarthSDK websocket error ]","background: red; color: black","error"),this.owner.dispatchEvent(new CustomEvent("error",{detail:"websocket error"})))}}sendInputData(t){const o=this.inner;if(o.readyState!==WebSocket.OPEN)return;const B=new Uint8Array(t)[0];if(B>=YA.UIInteraction&&B<=YA.MouseWheel){const A=new ArrayBuffer(t.byteLength+4);return new DataView(A).setUint32(0,t.byteLength,!0),new Uint8Array(A,4).set(new Uint8Array(t)),o.send(new DataView(A)),!0}else return!1}emitDescriptorWithString(t,o){let y=new TextEncoder().encode(o),B=new DataView(new ArrayBuffer(3+y.length)),A=0;B.setUint8(A,t),A++,B.setUint16(A,y.length,!0),A+=2;for(let h=0;h<y.length;h++)B.setUint8(A,y[h]),A+=1;try{this.sendInputData(B.buffer)}catch(h){console.error(`data.buffer.size: ${B.buffer.byteLength} 独立通道 sendInputData error: ${h}`,h)}}destroyImpl(){this._inner&&this._inner.close()}}window.g_emitDescriptor_maxBytes=3e4;let Rd=-1;Sc.SetLoggerVerbosity(1);class kd extends V.Destroyable{constructor(t,o){super();z(this,"_eventTarget",new EventTarget);z(this,"debug",!1);z(this,"uiInteractionCallbacks",new Map);z(this,"_pixelStream");z(this,"_esMsgWsWrapper");this._domOrDomId=t,this._options=o;const y=typeof this._domOrDomId=="string"?document.getElementById(this._domOrDomId):this._domOrDomId;if(!y)throw new Error(`ESUEViewer container${this._domOrDomId} error!`);console.log(`PSUEViewer init _options ${this._options}`);const{url:B,esmsgWsUri:A}=this._options;this._pixelStream=this._initPixelStream(y,B),this.d(()=>{this._pixelStream.disconnect()}),this._handerPixelStreamEvent(),this._esMsgWsWrapper=this._initEsMsgWsWrapper(A);const h=this;if(h.esMsgWsWrapper){const m=h.webRtcController.sendMessageController.dataChannelSender.sendData;h.webRtcController.sendMessageController.dataChannelSender.constructor.prototype.sendData=function(g){h.esMsgWsWrapper?h.esMsgWsWrapper.sendInputData(g):m.call(this,g)}}}get eventTarget(){return this._eventTarget}addEventListener(t,o,y){return this.eventTarget.addEventListener(t,o,y)}removeEventListener(t,o,y){return this.eventTarget.removeEventListener(t,o,y)}dispatchEvent(t){return this.eventTarget.dispatchEvent(t)}_initPixelStream(t,o){const y=new Qc({initialSettings:{AutoPlayVideo:!0,AutoConnect:!0,StartVideoMuted:!0,SuppressBrowserKeys:!1,[Hd.SignallingServerUrl]:o}});return y.setFlagEnabled(kt.BrowserSendOffer,!1),y.setFlagEnabled(kt.HoveringMouseMode,!0),y.setFlagEnabled(kt.MatchViewportResolution,!0),y.setNumericSetting(Uc.MaxReconnectAttempts,0),new Tc(y,{videoElementParent:t})}get pixelStream(){return this._pixelStream}_initEsMsgWsWrapper(t){return t?this.dv(new Dd(this,t)):void 0}get esMsgWsWrapper(){return this._esMsgWsWrapper}get esWebSocketReady(){var t;return((t=this.esMsgWsWrapper)==null?void 0:t.inner.readyState)===1}_handerPixelStreamEvent(){this.pixelStream.addEventListener("videoInitialized",()=>{console.log("%c[EarthSDK webrtc videoInitialized]","background: #a6ec99; color: black","videoInitialized"),this.dispatchEvent(new CustomEvent("videoinited",{detail:"videoinited"}))}),this.pixelStream.addEventListener("webRtcFailed",()=>{this.isDestroyed()||(console.log("%c[EarthSDK webRtc webRtcFailed]","background: red; color: black","webRtcFailed"),this.dispatchEvent(new CustomEvent("error",{detail:"webRtcFailed"})),this.pixelStream.disconnect())}),this.pixelStream.addEventListener("webRtcDisconnected",()=>{this.isDestroyed()||(console.log("%c[EarthSDK webRtc webRtcDisconnected]","background: red; color: black","webRtcDisconnected"),this.dispatchEvent(new CustomEvent("error",{detail:"webRtcDisconnected"})),this.pixelStream.disconnect())}),this.pixelStream.addEventListener("webRtcConnected",()=>{this.isDestroyed()||(console.log("%c[EarthSDK webrtc webRtcConnected]","background: #a6ec99; color: black","webRtcConnected"),this.dispatchEvent(new CustomEvent("webRtcConnected",{detail:"webRtcConnected"})))}),this.pixelStream.addResponseEventListener("esueviewer",t=>{this.processResponse(t)})}resolveCallback(t){let o={};try{o=JSON.parse(t)}catch{return!1}let y=o.callid;if(typeof y!="string"||!this.uiInteractionCallbacks.has(y))return!1;let B=this.uiInteractionCallbacks.get(y);return typeof B!="function"?!1:(B(o),this.uiInteractionCallbacks.delete(y),!0)}processResponse(t){if(this.debug??!1)try{const o=JSON.parse(t);if(o.ers=o.ers&&o.ers.filter(y=>y.et!=="mouseMoveEvent"),!(o.ers&&o.ers.length>0||o.frs&&o.frs.length>0))return;console.group("%cUE => JS"," background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(o,void 0,"")}`," border:1px dashed #006EFF;border-radius:5px;padding:10px;line-height:25px;color:#006EFF;"),console.groupEnd()}catch(o){console.error(`processResponse(${t}) error: ${o}`,o)}this.resolveCallback(t)||this.dispatchEvent(new CustomEvent("ueevent",{detail:t}))}emitUIInteraction(t,o){typeof o=="function"&&(t.callid=V.createGuid(),this.uiInteractionCallbacks.set(t.callid,o)),this.pixelStream.emitUIInteraction(t)}get webRtcController(){return this.pixelStream._webRtcController}emitUIInteractionForBigData(t,o){typeof o=="function"&&(t.callid=V.createGuid(),this.uiInteractionCallbacks.set(t.callid,o));const y=JSON.stringify(t),B=window.g_emitDescriptor_maxBytes,A=y.length,h=++Rd;if(this.esMsgWsWrapper){if(A<B){this.esMsgWsWrapper.emitDescriptorWithString(YA.UIInteraction,`${h}-0/1-`+y);return}const m=Math.ceil(A/B)|0;[...new Array(m).keys()].map(w=>y.slice(w*B,(w+1)*B)).forEach((w,p)=>{this.esMsgWsWrapper&&this.esMsgWsWrapper.emitDescriptorWithString(YA.UIInteraction,`${h}-${p}/${m}-`+w)})}}emitCommand(t){this.pixelStream.emitCommand(t)}getVideoSize(){const t=this.webRtcController.videoPlayer.getVideoElement();return{width:t.videoWidth,height:t.videoHeight}}resizeUEVideo(t,o){let y={Resolution:{Width:t,Height:o}};console.log(`resizeUEVideo emitCommand ${t} ${o} begin`),this.emitCommand(y)}}class Kd extends V.Destroyable{constructor(t,o,y){super();z(this,"_instance");z(this,"_event",this.dv(new V.Event));this._container=t,this._wsuri=o,this._esmsgWsUri=y,this._instance=this.dv(new kd(this._container,{url:this._wsuri,esmsgWsUri:this._esmsgWsUri})),this.instanceInit()}get webSocketReady(){return this._instance.esWebSocketReady}get event(){return this._event}get debug(){return this._instance.debug}set debug(t){this._instance.debug=t}instanceInit(){if("addEventListener"in this._instance){["esmsgwsopen","error","videoinited","ueevent","webRtcConnected"].forEach(o=>{const y=B=>{this._event.emit(o,B.detail)};this._instance.addEventListener(o,y),this.dispose(()=>this._instance.removeEventListener(o,y))});return}this.dispose(this._instance.errorEvent.disposableOn(t=>{this._event.emit("error",t.detail)})),this.dispose(this._instance.webRtcConnectedEvent.disposableOn(t=>{this._event.emit("webRtcConnected",t.detail)})),this.dispose(this._instance.videoinitedEvent.disposableOn(t=>{this._event.emit("videoinited",t.detail)})),this.dispose(this._instance.ueevent.disposableOn(t=>{this._event.emit("ueevent",t.detail)}))}emitUIInteractionForBigData(t,o){return new Promise((y,B)=>{const A=(...h)=>{y(h),o&&o(...h)};try{this._instance.emitUIInteractionForBigData(t,A)}catch(h){console.warn(`emitUIInteraction发生错误:${h}`),B(h)}})}getVideoSize(){return this._instance.getVideoSize()}resize(t,o){this._instance.resizeUEVideo(t,o)}}class Nd extends rr{constructor(t,o,y,B){super();z(this,"_esueViewerWrapper");z(this,"_ueFuncResultWithIdsEvent",this.dv(new V.Event));z(this,"_ueFuncWithIdAndResultCallbacks",[]);z(this,"_waitingUeFuncIdAndResultCallbacks",new Map);z(this,"_waitingUeCalls",new Set);z(this,"_ueEvent",this.dv(new V.Event));z(this,"_errorEvent",this.dv(new V.Event));z(this,"_readyEvent",this.dv(new V.Event));z(this,"_esmsgwsopen",this.dv(V.react(!1)));z(this,"_videoinited",this.dv(V.react(!1)));z(this,"_webRtcConnected",this.dv(V.react(!1)));this._ueViewer=B,console.log("CSTMPSViewer init ! 以官方像素流 + 独立通信的模式启动!");const A=this._ueViewer;this._esueViewerWrapper=this.dv(new Kd(t,o,y));const h=this._esueViewerWrapper;{const f=()=>h.debug=A.debug??!1;f(),this.d(A.debugChanged.don(f))}let m=!1;{const f=()=>{if(m)return;const c=h.webSocketReady;if(this.videoinited&&this.webRtcConnected&&c){console.log("%c[EarthSDK: esmsgWebSocket && videoinited && webRtcConnected]","background: #a6ec99; color: black");const a={eventType:"init",params:{}};h.emitUIInteractionForBigData(a),this._readyEvent.emit(),m=!0}};this.d(this.videoinitedChanged.don(()=>{f()})),this.d(this.webRtcConnectedChanged.don(()=>{f()})),this.d(this.esmsgwsopenChanged.don(()=>{f()}))}this.d(h.event.don((f,c)=>{if(f==="error")this._errorEvent.emit(c);else if(f==="ueevent"){const a=JSON.parse(c);if(a.t==="cr"){const n=a;if(n.frs&&this._ueFuncResultWithIdsEvent.emit(n.frs),n.ers)for(let s of n.ers)this._ueEvent.emit(s)}}else f==="webRtcConnected"?this.webRtcConnected=!0:f==="videoinited"?this.videoinited=!0:f==="esmsgwsopen"&&(this.esmsgwsopen=!0)}));{const f=this.dv(V.createAnimateFrame());let c,a;f.start(()=>{if(c!==t.offsetWidth||a!==t.offsetHeight){if(c=t.offsetWidth,a=t.offsetHeight,c===void 0||a===void 0||!Number.isFinite(c)||!Number.isFinite(a)||c<0||a<0){console.warn(`lastWidth === undefined || lastHeight === undefined || !Number.isFinite(lastWidth) || !Number.isFinite(lastHeight) || lastWidth < 0 || lastHeight < 0 ${c} ${a}`);return}h.resize(c,a),console.log(`resize: ${c} ${a}`)}})}this.d(this._ueFuncResultWithIdsEvent.don(f=>{for(const c of f){const a=this._waitingUeFuncIdAndResultCallbacks.get(c.fid);a&&(this._waitingUeFuncIdAndResultCallbacks.delete(c.fid),a.resultCallback(c.r))}}));let g=0;const w=f=>{const c={n:g++,tt:Date.now(),t:"c",fs:f};this._waitingUeCalls.add(c),A.debug&&(console.group("%cxe2 => ue"," background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(c,void 0,"")}`," border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"),console.groupEnd()),this._esueViewerWrapper.emitUIInteractionForBigData(c,()=>{this._waitingUeCalls.delete(c)})},p=()=>{if(!m||this._ueFuncWithIdAndResultCallbacks.length===0)return;const f=this._ueFuncWithIdAndResultCallbacks.map(([c])=>c);for(const[c,a]of this._ueFuncWithIdAndResultCallbacks)this._waitingUeFuncIdAndResultCallbacks.set(c.fid,a);this._ueFuncWithIdAndResultCallbacks.length=0;{const c=window.g_emitDescriptor_maxBytes,a=f.map(l=>({f:l,s:JSON.stringify(l).length}));let n=a.length,s=0,r=0,i=[];do{do{const{f:l,s:d}=a[s];if(i.push(l),++s,r+d>c||i.length>=20)break}while(s<n);i.length>0&&(A.debug&&console.log(`传送${i.length}条消息...`),w([...i]),i.length=0,r=0)}while(s<n)}};this.dv(V.createInterval()).start(p,50),this.d(()=>console.log("UeCloudViewer正在销毁..."))}get esueViewerWrapper(){return this._esueViewerWrapper}get errorEvent(){return this._errorEvent}get readyEvent(){return this._readyEvent}get esmsgwsopen(){return this._esmsgwsopen.value}set esmsgwsopen(t){this._esmsgwsopen.value=t}get esmsgwsopenChanged(){return this._esmsgwsopen.changed}get videoinited(){return this._videoinited.value}set videoinited(t){this._videoinited.value=t}get videoinitedChanged(){return this._videoinited.changed}get webRtcConnected(){return this._webRtcConnected.value}set webRtcConnected(t){this._webRtcConnected.value=t}get webRtcConnectedChanged(){return this._webRtcConnected.changed}resize(t,o){this.esueViewerWrapper.resize(t,o)}callUeFunc(t){return new Promise(o=>{const B={fid:V.createGuid(),...t};this._ueFuncWithIdAndResultCallbacks.push([B,{timeStamp:Date.now(),ueFunc:t,resultCallback:o}])})}disposableOnUeEvent(t,o){(this._ueViewer.debug??!1)&&console.log(`disposableOnUeEvent from UeCloudViewer, type:${t}`);const y=V.createGuid();this.callUeFunc({f:"addEventListener",p:{et:t,eid:y}});const B=()=>{this.callUeFunc({f:"removeEventListener",p:{eid:y}})},A=this._ueEvent.don(h=>{h.et===t&&h.eid===y&&o(h)});return()=>{A(),B()}}}function Vd(v){let e="";const t=new Uint8Array(v),o=t.length;for(let y=0;y<o;y++)e+=String.fromCharCode(t[y]);return btoa(e)}const Gd=v=>{const e={type:"input",inputdata:Vd(v)};return JSON.stringify(e)};function jd(v){return typeof v=="string"?document.getElementById(v):v}window.g_emitDescriptor_maxBytes=3e4,console.log("全局可设置消息体最大字节, window.g_emitDescriptor_maxBytes 默认 30000 。");let Wd=-1;Sc.SetLoggerVerbosity(1);class zd extends V.Destroyable{constructor(t,o){super();z(this,"debug",!1);z(this,"_error",this.dv(new V.Event));z(this,"_connected",this.dv(new V.Event));z(this,"_ueevent",this.dv(new V.Event));z(this,"_pixelStream");z(this,"uiInteractionCallbacks",new Map);this._container=t,this._option=o;const y=new Qc({initialSettings:{HoveringMouse:!0,AutoPlayVideo:!0,AutoConnect:!0,StartVideoMuted:!1,SuppressBrowserKeys:!1,ss:this._option.ws},useUrlParams:!0});y.setFlagEnabled(kt.BrowserSendOffer,!1),y.setFlagEnabled(kt.HoveringMouseMode,!0),y.setFlagEnabled(kt.MatchViewportResolution,!0),y.setNumericSetting(Uc.MaxReconnectAttempts,0),this._pixelStream=new Tc(y,{videoElementParent:this.container}),this.d(()=>{this._pixelStream.disconnect()});{const B=this.pixelStream.webSocketController.webSocket,A=this._pixelStream._webRtcController.sendMessageController.dataChannelSender.sendData;this._pixelStream._webRtcController.sendMessageController.dataChannelSender.constructor.prototype.sendData=function(h){B?B.send(Gd(h)):A.call(this,h)}}{const B=A=>{const h=this._pixelStream._webRtcController.mouseController;setTimeout(()=>{const m=h.coordinateConverter.normalizeAndQuantizeUnsigned(A.offsetX,A.offsetY),w=h.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp");w&&w([A.button,m.x,m.y]),A.preventDefault()})};this.container.addEventListener("dblclick",B),this.d(()=>{this.container.removeEventListener("dblclick",B)})}["error","close","open"].forEach(A=>{const h=()=>{this.isDestroyed()||(A==="open"?this.connected.emit("webSocketOpen"):A==="close"?this.error.emit("webSocketClose"):A==="error"&&this.error.emit("webSocketError"))};this.pixelStream.webSocketController.webSocket.addEventListener(A,h),this.d(()=>{this.pixelStream.webSocketController.webSocket.removeEventListener(A,h)})}),["videoInitialized","webRtcConnected","webRtcDisconnected","webRtcFailed"].forEach(A=>{const h=()=>{this.isDestroyed()||(A==="webRtcConnected"||A==="videoInitialized"?this.connected.emit(A):(A==="webRtcDisconnected"||A==="webRtcFailed")&&(this.error.emit(A),this.pixelStream.disconnect()))};this.pixelStream.addEventListener(A,h),this.d(()=>{this.pixelStream.removeEventListener(A,h)})}),this.pixelStream.addResponseEventListener("handle_responses",B=>{this.processResponse(B)}),this.d(()=>{this.pixelStream.removeResponseEventListener("handle_responses")})}get error(){return this._error}get connected(){return this._connected}get ueevent(){return this._ueevent}get container(){return jd(this._container)}get pixelStream(){return this._pixelStream}get webSocketReady(){return this.pixelStream.webSocketController.webSocket.readyState===1}processResponse(t){if(this.debug??!1)try{const o=JSON.parse(t);console.group("%cUE => JS"," background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(o,void 0,"")}`," border:1px dashed #006EFF;border-radius:5px;padding:10px;line-height:25px;color:#006EFF;"),console.groupEnd()}catch(o){console.error(`processResponse(${t}) error: ${o}`,o)}this.resolveCallback(t)||this.ueevent.emit(t)}emitUIInteractionForBigData(t,o){typeof o=="function"&&(t.callid=V.createGuid(),this.uiInteractionCallbacks.set(t.callid,o));const y=JSON.stringify(t),B=window.g_emitDescriptor_maxBytes??3e4,A=y.length,h=++Wd;if(A<B){const w={type:"earthsdk",time:new Date().getTime(),params:`${h}-0/1-`+y};this.sendData(JSON.stringify(w));return}const m=Math.ceil(A/B)|0;[...new Array(m).keys()].map(w=>y.slice(w*B,(w+1)*B)).forEach((w,p)=>{const u={type:"earthsdk",time:new Date().getTime(),params:`${h}-${p}/${m}-`+w};this.sendData(JSON.stringify(u))})}sendData(t){this.pixelStream.webSocketController.webSocket.send(t)}resolveCallback(t){let o={};try{o=JSON.parse(t)}catch{return!1}let y=o.callid;if(typeof y!="string"||!this.uiInteractionCallbacks.has(y))return!1;let B=this.uiInteractionCallbacks.get(y);return typeof B!="function"?!1:(B(o),this.uiInteractionCallbacks.delete(y),!0)}getVideoSize(){const t=this._pixelStream._webRtcController.videoPlayer.getVideoElement();return{width:t.videoWidth,height:t.videoHeight}}emitCommand(t){this.pixelStream.emitCommand(t)}emitUIInteraction(){console.log("emitUIInteraction 像素流初始化"),this.pixelStream.emitUIInteraction("像素流初始化")}resizeUEVideo(t,o){const y={Resolution:{Width:t,Height:o}};console.log(`resizeUEVideo emitCommand ${t} ${o} begin`),this.emitCommand(y)}}class Jd extends V.Destroyable{constructor(t,o,y){super();z(this,"_instance");z(this,"_event",this.dv(new V.Event));this._container=t,this._wsuri=o,this._esmsgWsUri=y,this._instance=this.dv(new zd(this._container,{ws:this._wsuri})),this.d(this._instance.connected.don(B=>{this._event.emit(B,B),console.log(`%c[EarthSDK] ${B}`,"background: #a6ec99; color: black")})),this.d(this._instance.error.don(B=>{this._event.emit("errorEvent",B),console.log(`%c[EarthSDK] ${B}`,"background: red; color: black")})),this.d(this._instance.ueevent.don(B=>{this._event.emit("ueevent",B)}))}get instance(){return this._instance}get event(){return this._event}get debug(){return this._instance.debug}set debug(t){this._instance.debug=t}emitUIInteractionForBigData(t,o){return new Promise((y,B)=>{const A=(...h)=>{y(h),o&&o(...h)};try{this._instance.emitUIInteractionForBigData(t,A)}catch(h){console.warn(`emitUIInteraction发生错误:${h}`),B(h)}})}getVideoSize(){return this._instance.getVideoSize()}resize(t,o){this._instance.resizeUEVideo(t,o)}}class Xd extends rr{constructor(t,o,y,B){super();z(this,"_videoInitialized",this.dv(V.react(!1)));z(this,"_webRtcConnected",this.dv(V.react(!1)));z(this,"_webSocketOpen",this.dv(V.react(!1)));z(this,"_ue5ViewerWrapper");z(this,"_ueFuncResultWithIdsEvent",this.dv(new V.Event));z(this,"_ueFuncWithIdAndResultCallbacks",[]);z(this,"_waitingUeFuncIdAndResultCallbacks",new Map);z(this,"_waitingUeCalls",new Set);z(this,"_ueEvent",this.dv(new V.Event));z(this,"_errorEvent",this.dv(new V.Event));z(this,"_readyEvent",this.dv(new V.Event));this._ueViewer=B,console.log("INNPSViewer init ! 以内置信令服务器模式启动!");const A=this._ueViewer,h=this.dv(new Jd(t,o,y));this._ue5ViewerWrapper=h;{const u=()=>h.debug=A.debug??!1;u(),this.d(A.debugChanged.don(u))}{let u=!1;const f=this.dv(V.createNextAnimateFrameEvent(this._videoInitialized.changed,this._webRtcConnected.changed,this._webSocketOpen.changed));this.d(f.don(()=>{if(u)return;const c=this._ue5ViewerWrapper.instance.webSocketReady;if(this.videoInitialized&&this.webRtcConnected&&c){this._ue5ViewerWrapper.instance.emitUIInteraction(),this._readyEvent.emit(),u=!0,console.log("%c[EarthSDK videoInitialized && webRtcConnected && webSocketReady]","background: #a6ec99; color: black");const a={eventType:"init",params:{}};this._ue5ViewerWrapper.emitUIInteractionForBigData(a)}else console.warn("webSocketReady",c),u=!1}))}this.d(h.event.don((u,f)=>{if(u==="errorEvent")this._errorEvent.emit(f);else if(u==="videoInitialized")this._videoInitialized.value=!0;else if(u==="webRtcConnected")this._webRtcConnected.value=!0;else if(u==="webSocketOpen")this._webSocketOpen.value=!0;else if(u==="ueevent"){const c=JSON.parse(f);if(c.t==="cr"){const a=c;if(a.frs&&this._ueFuncResultWithIdsEvent.emit(a.frs),a.ers)for(let n of a.ers)this._ueEvent.emit(n)}}}));{const u=this.dv(V.createAnimateFrame());let f,c,a;u.start(()=>{if(f!==t.offsetWidth||c!==t.offsetHeight||a!==A.resolutionScale){if(f=t.offsetWidth,c=t.offsetHeight,f===void 0||c===void 0||!Number.isFinite(f)||!Number.isFinite(c)||f<0||c<0){console.warn(`lastWidth === undefined || lastHeight === undefined || !Number.isFinite(lastWidth) || !Number.isFinite(lastHeight) || lastWidth < 0 || lastHeight < 0 ${f} ${c}`);return}a=A.resolutionScale,h.resize(f/a,c/a)}})}this.d(this._ueFuncResultWithIdsEvent.don(u=>{for(const f of u){const c=this._waitingUeFuncIdAndResultCallbacks.get(f.fid);c&&(this._waitingUeFuncIdAndResultCallbacks.delete(f.fid),c.resultCallback(f.r))}}));let m=0;const g=u=>{const f={n:m++,tt:Date.now(),t:"c",fs:u};this._waitingUeCalls.add(f),A.debug&&(console.group("%cxe2 => ue"," background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(f,void 0,"")}`," border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"),console.groupEnd()),this._ue5ViewerWrapper.emitUIInteractionForBigData(f,()=>{this._waitingUeCalls.delete(f)})},w=()=>{if(!this._ue5ViewerWrapper.instance.webSocketReady||this._ueFuncWithIdAndResultCallbacks.length===0)return;const f=this._ueFuncWithIdAndResultCallbacks.map(([c])=>c);for(const[c,a]of this._ueFuncWithIdAndResultCallbacks)this._waitingUeFuncIdAndResultCallbacks.set(c.fid,a);this._ueFuncWithIdAndResultCallbacks.length=0;{const c=window.g_emitDescriptor_maxBytes,a=f.map(l=>({f:l,s:JSON.stringify(l).length}));let n=a.length,s=0,r=0,i=[];do{do{const{f:l,s:d}=a[s];if(i.push(l),++s,r+d>c||i.length>=20)break}while(s<n);i.length>0&&(A.debug&&console.log(`传送${i.length}条消息...`),g([...i]),i.length=0,r=0)}while(s<n)}};this.dv(V.createInterval()).start(w,50),this.d(()=>console.log("UeCloudViewer正在销毁..."))}get videoInitialized(){return this._videoInitialized.value}get webRtcConnected(){return this._webRtcConnected.value}get webSocketOpen(){return this._webSocketOpen.value}get ue5ViewerWrapper(){return this._ue5ViewerWrapper}get errorEvent(){return this._errorEvent}get readyEvent(){return this._readyEvent}resize(t,o){this.ue5ViewerWrapper.resize(t,o)}callUeFunc(t){return new Promise(o=>{const B={fid:V.createGuid(),...t};this._ueFuncWithIdAndResultCallbacks.push([B,{timeStamp:Date.now(),ueFunc:t,resultCallback:o}])})}disposableOnUeEvent(t,o){const y=V.createGuid();this.callUeFunc({f:"addEventListener",p:{et:t,eid:y}});const B=()=>{this.callUeFunc({f:"removeEventListener",p:{eid:y}})},A=this._ueEvent.don(h=>{h.et===t&&h.eid===y&&o(h)});return()=>{A(),B()}}}class Yd extends V.Destroyable{constructor(t,o,y,B){super();z(this,"_onRuntimeInitialized",this.dv(new V.Event));z(this,"_vIframe",null);this._ueViewer=B;const A=this._ueViewer;{const h=document.createElement("iframe");this._vIframe=h,h.style.cssText="width: 100%; height: 100%; margin: 0; padding: 0; border: none; outline: none;",t.appendChild(h),this.d(()=>{h&&t.removeChild(h)});const m=j.ESSceneObject.getStrFromEnv(y+`/web/${o}.html`);h.src=m,h.onload=()=>{const g=h.contentWindow;if(!g){console.error("iframeWindow is null");return}console.log("iwindow.Module",g.Module),g.Module.onRuntimeInitialized=()=>{this._onRuntimeInitialized.emit(),A.setStatus("Created"),A.setStatusLog("创建成功"),g.Module.UE4_resizeCanvas(),g.console.log("创建成功__________________________________________")}}}}get onRuntimeInitialized(){return this._onRuntimeInitialized}get vIframe(){return this._vIframe}}const Ic=typeof TextDecoder<"u"?new TextDecoder:void 0,$d=(v,e=0,t=NaN)=>{const o=e+t;let y=e;for(;v[y]&&!(y>=o);)++y;if(y-e>16&&v.buffer&&Ic)return Ic.decode(v.subarray(e,y));let B="";for(;e<y;){var A=v[e++];if(!(A&128)){B+=String.fromCharCode(A);continue}var h=v[e++]&63;if((A&224)==192){B+=String.fromCharCode((A&31)<<6|h);continue}var m=v[e++]&63;if((A&240)==224?A=(A&15)<<12|h<<6|m:((A&248)!=240&&console.warn("Invalid UTF-8 leading byte encountered when deserializing a UTF-8 string in wasm memory to a JS string!"),A=(A&7)<<18|h<<12|m<<6|v[e++]&63),A<65536)B+=String.fromCharCode(A);else{var g=A-65536;B+=String.fromCharCode(55296|g>>10,56320|g&1023)}}return B};class Zd extends V.Destroyable{constructor(e,t,o){super();{const y=()=>{const m=Zn(t);t.setGlobalProperty(m)};y();const B=VA(),A=[];B.forEach(m=>{const g=t[m+"Changed"];A.push(g)});const h=this.dv(V.createNextAnimateFrameEvent(...A));this.d(h.don(y))}this.d(t.propChanged.don(y=>{if(y.objId==="")try{Object.keys(y.props).forEach(B=>{const A=y.props[B]===null?void 0:y.props[B];t[B]=A})}catch(B){console.error("ueViewer propChanged:"+B)}})),t.useCustomInteraction=!1,this.dv(new j.ViewerCustomInteraction(t,e)),this.dv(new V.ObjResettingWithEvent(t.statusUpdateIntervalChanged,y=>{if((t.statusUpdateInterval??.5)===0)return;const A=new V.Destroyable;return A.d(o.disposableOnUeEvent("statusUpdate",h=>{t.statusUpdateEvent.emit(h)})),A})),this.dv(new V.ObjResettingWithEvent(t.propChangedListeningChanged,()=>{if(!(t.propChangedListening??!0))return;const B=new V.Destroyable;return B.d(o.disposableOnUeEvent("propChanged",A=>{t.propChanged.emit(A)})),B})),this.dv(new V.ObjResettingWithEvent(t.objectEventListeningChanged,()=>{if(!(t.objectEventListening??!0))return;const B=new V.Destroyable;return B.d(o.disposableOnUeEvent("objectEvent",A=>{t.objectEvent.emit(A)})),B})),this.dv(new V.ObjResettingWithEvent(t.widgetEventListeningChanged,()=>{if(!(t.widgetEventListening??!0))return;const B=new V.Destroyable;return B.d(o.disposableOnUeEvent("widgetEvent",A=>{t.widgetEvent.emit(A)})),B})),this.dv(new V.ObjResettingWithEvent(t.speechRecognitionListeningChanged,()=>{if(!(t.speechRecognitionListening??!0))return;const B=new V.Destroyable;return B.d(o.disposableOnUeEvent("speechRecognition",A=>{t.speechRecognition.emit(A)})),B})),this.dv(new V.ObjResettingWithEvent(t.customMessageListeningChanged,()=>{if(!(t.customMessageListening??!0))return;const B=new V.Destroyable;return B.d(o.disposableOnUeEvent("customMessage",A=>{t.customMessage.emit(A)})),B})),this.dv(new V.ObjResettingWithEvent(t.editingEventListeningChanged,()=>{if(!(t.editingEventListening??!0))return;const B=new V.Destroyable;return B.d(o.disposableOnUeEvent("editingEvent",A=>{A.objectIDs=A.objectIDs.map(h=>h.split("_")[0]),t.editingEvent.emit(A)})),B}))}}let qd=-1;class ef extends rr{constructor(t,o,y="${earthsdk3-ue-h5-assets-script-dir}",B){super();z(this,"_ueFuncResultWithIdsEvent",this.dv(new V.Event));z(this,"_ueFuncWithIdAndResultCallbacks",[]);z(this,"_waitingUeFuncIdAndResultCallbacks",new Map);z(this,"_waitingUeCalls",new Map);z(this,"_ueEvent",this.dv(new V.Event));this._ueViewer=B;const A=this._ueViewer,h=this.dv(new Yd(t,o,y,A));let m=!1,g=null;this.d(h.onRuntimeInitialized.don(()=>{var f;if(m=!0,(f=h==null?void 0:h.vIframe)!=null&&f.contentWindow){g=h.vIframe.contentWindow;const c=h.vIframe.contentWindow.document.getElementById("mainarea");c?this.dv(new Zd(c,A,this)):console.error("h5Container is null")}else{console.error("iframeWindow is null");return}g.UE_JSHTML5Communication?g.UE_JSHTML5Communication.UESendMessageToJS=c=>{try{const a=$d(g.HEAPU8,c),n=JSON.parse(a);if(A.debug&&(console.group("%cUE => JS"," background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(n,void 0,"")}`," border:1px dashed #006EFF;border-radius:5px;padding:10px;line-height:25px;color:#006EFF;"),console.groupEnd()),n.t==="cr"){const s=n;if(s.frs&&this._ueFuncResultWithIdsEvent.emit(s.frs),s.ers)for(let r of s.ers)this._ueEvent.emit(r)}n.callid&&this._waitingUeCalls.has(n.callid)&&(this._waitingUeCalls.delete(n.callid),console.log(`waitingUeCalls.delete:${n.callid} end`))}catch(a){console.error("UE_JSHTML5Communication.UESendMessageToJS error:",a)}}:console.error("UE_JSHTML5Communication UESendMessageToJS not found")})),this.dispose(this._ueFuncResultWithIdsEvent.disposableOn(f=>{for(const c of f){const a=this._waitingUeFuncIdAndResultCallbacks.get(c.fid);a&&(this._waitingUeFuncIdAndResultCallbacks.delete(c.fid),a(c.r))}}));let w=0;const p=()=>{if(!m||!g||!g.UE_JSHTML5Communication||!g.UE_JSHTML5Communication.JSSendMessageToUE||this._ueFuncWithIdAndResultCallbacks.length===0)return;const f=this._ueFuncWithIdAndResultCallbacks.map(([d])=>d),c={n:w++,tt:Date.now(),t:"c",fs:f,callid:V.createGuid()};for(const[d,C]of this._ueFuncWithIdAndResultCallbacks)this._waitingUeFuncIdAndResultCallbacks.set(d.fid,C);this._ueFuncWithIdAndResultCallbacks.length=0,this._waitingUeCalls.set(c.callid,c),A.debug&&(console.group("%cxe2 => ue"," background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(c,void 0,"")}`," border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"),console.groupEnd());const a=JSON.stringify(c),n=window.g_emitDescriptor_maxBytes??3e4,s=a.length,r=++qd;if(s<n){const d=`${r}-0/1-`+a;g.UE_JSHTML5Communication.JSSendMessageToUE(d);return}const i=Math.ceil(s/n)|0;[...new Array(i).keys()].map(d=>a.slice(d*n,(d+1)*n)).forEach((d,C)=>{const _=`${r}-${C}/${i}-`+d;g.UE_JSHTML5Communication.JSSendMessageToUE(_)})};this.dv(V.createInterval()).start(p,50)}processResponse(t){if(this._ueViewer.debug??!1)try{const o=JSON.parse(t);console.group("%cUE => JS"," background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(o,void 0,"")}`," border:1px dashed #006EFF;border-radius:5px;padding:10px;line-height:25px;color:#006EFF;"),console.groupEnd()}catch(o){console.error(`processResponse(${t}) error: ${o}`,o)}}callUeFunc(t){return new Promise(o=>{const B={fid:V.createGuid(),...t};this._ueFuncWithIdAndResultCallbacks.push([B,o])})}disposableOnUeEvent(t,o){const y=V.createGuid();this.callUeFunc({f:"addEventListener",p:{et:t,eid:y}});const B=()=>{this.callUeFunc({f:"removeEventListener",p:{eid:y}})},A=this._ueEvent.disposableOn(h=>{h.et===t&&h.eid===y&&((this._ueViewer.debug??!1)&&console.log(`callback, type:${t} eid:${y} ueEvent:${JSON.stringify(h)}`),o(h))});return()=>{A(),B()}}}let tf=-1;class rf extends rr{constructor(t,o){super();z(this,"_ueFuncResultWithIdsEvent",this.dv(new V.Event));z(this,"_ueFuncWithIdAndResultCallbacks",[]);z(this,"_waitingUeFuncIdAndResultCallbacks",new Map);z(this,"_waitingUeCalls",new Set);z(this,"_ueEvent",this.dv(new V.Event));this._ueViewer=o;const y=this._ueViewer;let B=!1;const A={eventType:"init",params:{}};window.ue.es.oncommand(JSON.stringify(A)),B=!0,window.calljs=(w,p)=>{if(y.debug&&console.log(`calljs eventName:${w} eventDetailStr:${p}`),w==="ueevent"||w==="commanFinish")try{const u=JSON.parse(p);if(u.t==="cr"){const f=u;if(f.frs&&this._ueFuncResultWithIdsEvent.emit(f.frs),f.ers)for(let c of f.ers)this._ueEvent.emit(c)}}catch(u){console.error(u)}},this.dispose(this._ueFuncResultWithIdsEvent.disposableOn(w=>{for(const p of w){const u=this._waitingUeFuncIdAndResultCallbacks.get(p.fid);u&&(this._waitingUeFuncIdAndResultCallbacks.delete(p.fid),u(p.r))}}));let h=0;const m=()=>{if(!B||this._ueFuncWithIdAndResultCallbacks.length===0)return;const w=this._ueFuncWithIdAndResultCallbacks.map(([f])=>f),p={n:h++,tt:Date.now(),t:"c",fs:w};for(const[f,c]of this._ueFuncWithIdAndResultCallbacks)this._waitingUeFuncIdAndResultCallbacks.set(f.fid,c);this._ueFuncWithIdAndResultCallbacks.length=0,this._waitingUeCalls.add(p),y.debug&&(console.group("%cxe2 => ue"," background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(p,void 0,"")}`," border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"),console.groupEnd());const u=++tf;window.ue.es.oncommand(`${u}-0/1-`+JSON.stringify(p)).then(()=>{this._waitingUeCalls.delete(p)})};this.dv(V.createInterval()).start(m,50)}callUeFunc(t){return new Promise(o=>{const B={fid:V.createGuid(),...t};this._ueFuncWithIdAndResultCallbacks.push([B,o])})}disposableOnUeEvent(t,o){const y=V.createGuid();this.callUeFunc({f:"addEventListener",p:{et:t,eid:y}});const B=()=>{this.callUeFunc({f:"removeEventListener",p:{eid:y}})},A=this._ueEvent.disposableOn(h=>{h.et===t&&h.eid===y&&((this._ueViewer.debug??!1)&&console.log(`callback, type:${t} eid:${y} ueEvent:${JSON.stringify(h)}`),o(h))});return()=>{A(),B()}}}class Af extends V.Destroyable{constructor(e,t){super();{const o=()=>{const h=Zn(e);e.setGlobalProperty(h)};o();const y=VA(),B=[];y.forEach(h=>{const m=e[h+"Changed"];B.push(m)});const A=this.dv(V.createNextAnimateFrameEvent(...B));this.d(A.don(o))}this.d(e.propChanged.don(o=>{if(o.objId==="")try{Object.keys(o.props).forEach(y=>{const B=o.props[y]===null?void 0:o.props[y];e[y]=B})}catch(y){console.error("ueViewer propChanged:"+y)}})),this.dv(new V.ObjResettingWithEvent(e.statusUpdateIntervalChanged,o=>{if((e.statusUpdateInterval??.5)===0)return;const B=new V.Destroyable;return B.d(t.disposableOnUeEvent("statusUpdate",A=>{e.statusUpdateEvent.emit(A)})),B})),this.dv(new V.ObjResettingWithEvent(e.propChangedListeningChanged,()=>{if(!(e.propChangedListening??!0))return;const y=new V.Destroyable;return y.d(t.disposableOnUeEvent("propChanged",B=>{e.propChanged.emit(B)})),y})),this.dv(new V.ObjResettingWithEvent(e.objectEventListeningChanged,()=>{if(!(e.objectEventListening??!0))return;const y=new V.Destroyable;return y.d(t.disposableOnUeEvent("objectEvent",B=>{e.objectEvent.emit(B)})),y})),this.dv(new V.ObjResettingWithEvent(e.widgetEventListeningChanged,()=>{if(!(e.widgetEventListening??!0))return;const y=new V.Destroyable;return y.d(t.disposableOnUeEvent("widgetEvent",B=>{e.widgetEvent.emit(B)})),y})),this.dv(new V.ObjResettingWithEvent(e.speechRecognitionListeningChanged,()=>{if(!(e.speechRecognitionListening??!0))return;const y=new V.Destroyable;return y.d(t.disposableOnUeEvent("speechRecognition",B=>{e.speechRecognition.emit(B)})),y})),this.dv(new V.ObjResettingWithEvent(e.customMessageListeningChanged,()=>{if(!(e.customMessageListening??!0))return;const y=new V.Destroyable;return y.d(t.disposableOnUeEvent("customMessage",B=>{e.customMessage.emit(B)})),y})),this.dv(new V.ObjResettingWithEvent(e.editingEventListeningChanged,()=>{if(!(e.editingEventListening??!0))return;const y=new V.Destroyable;return y.d(t.disposableOnUeEvent("editingEvent",B=>{B.objectIDs=B.objectIDs.map(A=>A.split("_")[0]),e.editingEvent.emit(B)})),y}))}}class nf extends V.Destroyable{constructor(e,t,o){super();{const B=()=>{const g=Zn(t);t.setGlobalProperty(g)};B();const A=VA(),h=[];A.forEach(g=>{const w=t[g+"Changed"];h.push(w)});const m=this.dv(V.createNextAnimateFrameEvent(...h));this.d(m.don(B))}this.d(t.propChanged.don(B=>{if(B.objId==="")try{Object.keys(B.props).forEach(A=>{const h=B.props[A]===null?void 0:B.props[A];t[A]=h})}catch(A){console.error("ueViewer propChanged:"+A)}}));const y=document.createElement("div");y.style.width="100%",y.style.height="100%",y.style.position="absolute",y.style.overflow="hidden",y.style.top="0",y.style.left="0",y.style.zIndex="0",y.style.backgroundColor="rgba(255,0,0,0)",y.setAttribute("masker","大屏顶层div,用于模拟鼠标事件和控制UE鼠标事件是否生效"),e.appendChild(y),this.d(()=>{y&&e&&e.removeChild(y)});{const B=(g,w)=>{window.ue.esinput.setinterceptevent(w),g.preventDefault()},A=g=>{B(g,!1)},h=g=>{B(g,!0)},m=g=>{B(g,!1)};y.addEventListener("mouseenter",A),y.addEventListener("mouseleave",h),y.addEventListener("mousemove",m),this.d(()=>{y.removeEventListener("mouseenter",A),y.removeEventListener("mouseleave",h),y.removeEventListener("mousemove",m)})}t.useCustomInteraction=!1,this.dv(new j.ViewerCustomInteraction(t,y)),this.dv(new V.ObjResettingWithEvent(t.statusUpdateIntervalChanged,B=>{if((t.statusUpdateInterval??.5)===0)return;const h=new V.Destroyable;return h.d(o.disposableOnUeEvent("statusUpdate",m=>{t.statusUpdateEvent.emit(m)})),h})),this.dv(new V.ObjResettingWithEvent(t.propChangedListeningChanged,()=>{if(!(t.propChangedListening??!0))return;const A=new V.Destroyable;return A.d(o.disposableOnUeEvent("propChanged",h=>{t.propChanged.emit(h)})),A})),this.dv(new V.ObjResettingWithEvent(t.objectEventListeningChanged,()=>{if(!(t.objectEventListening??!0))return;const A=new V.Destroyable;return A.d(o.disposableOnUeEvent("objectEvent",h=>{t.objectEvent.emit(h)})),A})),this.dv(new V.ObjResettingWithEvent(t.widgetEventListeningChanged,()=>{if(!(t.widgetEventListening??!0))return;const A=new V.Destroyable;return A.d(o.disposableOnUeEvent("widgetEvent",h=>{t.widgetEvent.emit(h)})),A})),this.dv(new V.ObjResettingWithEvent(t.speechRecognitionListeningChanged,()=>{if(!(t.speechRecognitionListening??!0))return;const A=new V.Destroyable;return A.d(o.disposableOnUeEvent("speechRecognition",h=>{t.speechRecognition.emit(h)})),A})),this.dv(new V.ObjResettingWithEvent(t.customMessageListeningChanged,()=>{if(!(t.customMessageListening??!0))return;const A=new V.Destroyable;return A.d(o.disposableOnUeEvent("customMessage",h=>{t.customMessage.emit(h)})),A})),this.dv(new V.ObjResettingWithEvent(t.editingEventListeningChanged,()=>{if(!(t.editingEventListening??!0))return;const A=new V.Destroyable;return A.d(o.disposableOnUeEvent("editingEvent",h=>{h.objectIDs=h.objectIDs.map(m=>m.split("_")[0]),t.editingEvent.emit(h)})),A}))}}class of extends V.Destroyable{constructor(t,o,y){super();z(this,"_reconnectEvent",this.dv(new V.Event));const B=(m,g)=>m.hasOwnProperty(g);let A=0,h;if(this.d(()=>{h&&clearTimeout(h)}),window.ue&&window.ue.es)if(window.ue.esinput){y.setStatus("Creating"),console.log("存在(window.ue && window.ue.es && window.ue.esinput 需要适配新版ESWebView 鼠标穿透), 开始创建UeFalseCloudViewer..."),y.setStatusLog("开始创建本地视口...");const m=this.dv(new rf(t,y));this.d(()=>y.viewer=void 0),y.viewer=m,y.setStatus("Created"),y.setStatusLog("本地视口创建成功!"),this.dv(new nf(t,y,m))}else y.setStatus("Error"),y.setStatusLog("请升级 ESWebView !");else if(B(o.options,"ws")||B(o.options,"uri")&&B(o.options,"app")){y.setStatus("Creating"),y.setStatusLog("开始创建云渲染视口...");let m;this.d(()=>{y.setStatus("Raw"),y.setStatusLog(""),t&&m&&t.removeChild(m)&&(m=void 0)});const g=this.dv(V.createProcessingFromAsyncFunc(async w=>{y.viewer&&!y.viewer.isDestroyed()&&y.viewer.destroy(),y.viewer=void 0,m&&t.removeChild(m)&&(m=void 0),m=document.createElement("div"),m.setAttribute("earthsdk3-ue","earthsdk3-ue-videoContainer"),m.style.cssText="position:relative; height: 100%;width:100%;",t.appendChild(m);let p,u,f;if(B(o.options,"ws")){const{ws:s,esmsg:r,uselnternalSignallingServer:i}=o.options;p=s,u=r,f=i??!1}if(B(o.options,"uri")&&B(o.options,"app")){const{offsetWidth:s,offsetHeight:r}=m;let{uri:i,app:l,token:d}=o.options;i.endsWith("/")||(i+="/");const C=d?`?essstoken=${d}`:"",_=`/${l}/${s??1920}/${r??1080}`+C;console.log(`请求信令服务器: ${i}instance${_}`);const b=await w.promise(fetch(`${i}instance${_}`,{method:"GET"})),E=await w.promise(b.json());if(E&&E.status!=="ok"){y.setStatus("Error"),y.setStatusLog(`信令服务器请求失败 ${E.status}`),this._reconnectEvent.emit(void 0);return}else{console.log(`信令服务器请求成功! ${JSON.stringify(E,void 0," ")}`),await V.sleep(2e3);const{server:F,esmsg:Q,instanceId:U,useInternalSignallingServer:T}=E;if(!U){y.setStatus("Error"),y.setStatusLog("检查信令服务器版本,返回数据错误! "),console.log("信令服务器返回数据错误!不包含instanceId!请升级到 ESSS V3.0+ 版本!"),this._reconnectEvent.emit(void 0);return}p=F,u=Q,f=T??!1,y.esssResponse=E}}const c=this.dv(f?new Xd(m,p,u,y):new Nd(m,p,u,y));this.d(()=>y.viewer=void 0),this.d(c.errorEvent.don(s=>{const r=`[${s}]:像素流连接错误!`;y.setStatus("Error"),y.setStatusLog(r),this._reconnectEvent.emit(c)})),await w.promise(new Promise(s=>this.d(c.readyEvent.donce(s)))),y.setStatus("Created"),y.setStatusLog("云渲染视口创建成功!"),A=0,h&&clearTimeout(h),h=void 0;const{offsetWidth:a,offsetHeight:n}=m;c.resize(a*window.devicePixelRatio,n*window.devicePixelRatio),y.viewer=c,this.d(()=>y.viewer=void 0),this.dv(new Af(y,c))}));g.start(),this.d(this._reconnectEvent.don(w=>{h===void 0&&(w&&!w.isDestroyed()&&w.destroy(),y.viewer&&!y.viewer.isDestroyed()&&y.viewer.destroy(),y.viewer=void 0,y.autoReconnect&&(y.setStatus("Reconnecting"),y.setStatusLog("正在尝试重新连接..."),A=A+5e3>3e4?3e4:A+5e3,console.warn(`间隔:${A/1e3}s,正在尝试重新连接...`),h=window.setTimeout(()=>{g.restart()},A)))})),this.d(g.errorEvent.don(w=>{y.setStatus("Error"),y.setStatusLog("云渲染视口创建失败!"),console.warn("云渲染视口创建失败!",w),this._reconnectEvent.emit(void 0)}))}else if(B(o.options,"project")){const m=o,g=m.options.project,w=m.options.baseUrl;y.setStatus("Creating"),y.setStatusLog("下载编译中...");const p=this.dv(new ef(t,g,w,y));y.viewer=p,this.d(()=>y.viewer=void 0)}else y.setStatus("Error"),y.setStatusLog("视口创建失败!"),console.warn("视口创建失败: 参数错误!")}}const Tt=class Tt extends j.ESViewer{constructor(t){super(t);z(this,"_viewer",this.dv(V.react(void 0)));z(this,"_esssResponse");z(this,"_speechRecognition",this.dv(new V.Event));z(this,"_propChanged",this.dv(new V.Event));z(this,"_objectEvent",this.dv(new V.Event));z(this,"_widgetEvent",this.dv(new V.Event));z(this,"_customMessage",this.dv(new V.Event));z(this,"_statusUpdateEvent",this.dv(new V.Event));z(this,"_statusUpdateEventdon",(()=>{this.d(this.statusUpdateEvent.don(t=>{this._statusInfo.fps=t.FPS??0,this._statusInfo.length=t.length??0,this._statusInfo.position=t.position??[0,0,0],this._statusInfo.rotation=t.rotation??[0,0,0]}))})());if(t.type!=="ESUeViewer")throw new Error("option.type must be ESUeViewer");const o=t;this.d(this._viewer.changed.don(()=>{this.viewerChanged.emit(this.viewer)})),this.dv(new V.ObjResettingWithEvent(this.subContainerChanged,()=>{if(this.setStatus("Raw"),this.setStatusLog(""),!!this.subContainer)return new of(this.subContainer,o,this)}))}get defaultProps(){return Tt.createDefaultProps()}set viewer(t){this._viewer.value=t}get viewer(){return this._viewer.value}get esssResponse(){return this._esssResponse}set esssResponse(t){this._esssResponse=t}get speechRecognition(){return this._speechRecognition}get propChanged(){return this._propChanged}get objectEvent(){return this._objectEvent}get widgetEvent(){return this._widgetEvent}get customMessage(){return this._customMessage}get statusUpdateEvent(){return this._statusUpdateEvent}async uePositionToLonLatAlt(t){if(!this.viewer){console.warn("UEPositionToLonLatAlt: viewer is undefined");return}return await $s(this.viewer,t)}async changeNavigationMode(t){if(!this.viewer){console.warn("ChangeNavigationMode: viewer is undefined");return}const o=await At(this.viewer,t);return o&&!o.error&&(this._navigationMode.value=t.mode),o}async resetWithCurrentCamera(t){if(!this.viewer){console.warn("resetWithCurrentCamera: viewer is undefined");return}return await ei(this.viewer,t)}async getAllSocketNamesByActorTag(t){if(!this.viewer){console.warn("GetAllSocketNamesByActorTag: viewer is undefined");return}return await Zs(this.viewer,t)}async getBoundSphere(t){if(!this.viewer){console.warn("getBoundSphere: viewer is undefined");return}return await ea(this.viewer,t)}async getBoundSphereWithChildren(t){if(!this.viewer){console.warn("getBoundSphereWithChildren: viewer is undefined");return}return await ta(this.viewer,t)}async getStrokeMaterialParamInfo(t){if(!this.viewer){console.warn("GetStrokeMaterialParamInfo: viewer is undefined");return}return await ra(this.viewer,t)}async getFillMaterialParamInfo(t){if(!this.viewer){console.warn("getFillMaterialParamInfo: viewer is undefined");return}return await Aa(this.viewer,t)}async getGlobalProperty(t){if(!this.viewer){console.warn("getGlobalProperty: viewer is undefined");return}return await na(this.viewer,t)}async getObjectByInfo(t){if(!this.viewer){console.warn("GetObjectByInfo: viewer is undefined");return}return await ia(this.viewer,t)}async defaultCameraFlyIn(t=1){if(!this.viewer){console.warn("DefaultCameraFlyIn: viewer is undefined");return}return await Ts(this.viewer,t)}async startVoice(){if(!this.viewer){console.warn("startVoice:viewer is undefined");return}return await Is(this.viewer)}async stopVoice(){if(!this.viewer){console.warn("startVoice:viewer is undefined");return}return await Ps(this.viewer)}async mountPakFiles(t){if(!this.viewer){console.warn("mountPakFiles:viewer is undefined");return}return await xs(this.viewer,t)}async generateMemReport(){if(!this.viewer){console.warn("generateMemReport:viewer is undefined");return}return await Os(this.viewer)}async quit(){if(!this.viewer){console.warn("Quit: viewer is undefined");return}return await Vs(this.viewer)}async bindActorByTag(t,o){if(!this.viewer){console.warn("BindActorByTag: viewer is undefined");return}return await oa(this.viewer,t,o)}async restoreOriginalScene(){if(!this.viewer){console.warn("RestoreOriginalScene: viewer is undefined");return}return await sa(this.viewer)}async unBindActorByID(t){if(!this.viewer){console.warn("UnBindActorByID: viewer is undefined");return}return await aa(this.viewer,t)}async unBindActorByTag(t){if(!this.viewer){console.warn("UnBindActorByTag: viewer is undefined");return}return await ca(this.viewer,t)}async createActorByClass(t,o){if(!this.viewer){console.warn("CreateActorByClass: viewer is undefined");return}return await la(this.viewer,t,o)}async bind3DTilesetByTag(t,o){if(!this.viewer){console.warn("Bind3DTilesetByTag: viewer is undefined");return}return await ua(this.viewer,t,o)}async unBind3DTilesetByTag(t){if(!this.viewer){console.warn("UnBind3DTilesetByTag: viewer is undefined");return}return await da(this.viewer,t)}async unBind3DTilesetById(t){if(!this.viewer){console.warn("UnBind3DTilesetById: viewer is undefined");return}return await fa(this.viewer,t)}async bindImageryByTag(t,o,y){if(!this.viewer){console.warn("BindImageryByTag: viewer is undefined");return}return await ha(this.viewer,t,o,y)}async unBindImageryByTag(t,o){if(!this.viewer){console.warn("UnBindImageryByTag: viewer is undefined");return}return await pa(this.viewer,t,o)}async unBindImageryById(t){if(!this.viewer){console.warn("UnBindImageryById: viewer is undefined");return}return await ga(this.viewer,t)}async getIdByComponentNameAndHitItem(t,o,y){if(!this.viewer){console.warn("GetIdByComponentNameAndHitItem: viewer is undefined");return}return await va(this.viewer,t,o,y)}async getCameraRelativeHeight(t="ECC_Visibility"){if(!this.viewer){console.warn("GetCameraRelativeHeight: viewer is undefined");return}return await ya(this.viewer,t)}async saveStringToFile(t,o,y){if(!this.viewer){console.warn("SaveStringToFile: viewer is undefined");return}return await ma(this.viewer,t,o,y)}async highlightActorByTag(t,o=!0){if(!this.viewer){console.warn("HighlightActorByTag: viewer is undefined");return}return await wa(this.viewer,t,o)}async sendCustomMessage(t){if(!this.viewer){console.warn("SendCustomMessage: viewer is undefined");return}return await Ba(this.viewer,t)}async getStatus(){if(!this.viewer){console.warn("GetStatus:viewer is undefined");return}return await Ca(this.viewer)}async getTilesetMaterialIDList(){if(!this.viewer){console.warn("GetTilesetMaterialIDList:viewer is undefined");return}return await Fa(this.viewer)}async pick(t,o,y){if(!this.viewer)return;let B=t;if(t&&window.ue&&this.container){const[A,h]=t,{x:m,y:g}=this.container.getBoundingClientRect();B=[m+A,g+h]}return await Gs(this.viewer,B,o,y)}async pickPosition(t){if(!this.viewer)return;let o=t;if(t&&window.ue&&this.container){const[y,B]=t,{x:A,y:h}=this.container.getBoundingClientRect();o=[A+y,h+B]}return await js(this.viewer,o)}async flyIn(t,o=[0,0,0],y=1,B="default"){if(!this.viewer)return;const A=await tr(this.viewer,void 0,t,o,y,B);if(A)return A.endType===0&&console.warn(`flyTo:flyTo is end! endType:${A.endType}`),A.endType===1&&console.warn(`flyTo:飞行中断! endType:${A.endType}`),A}async flyTo(t,o,y="default"){if(!this.viewer)return;const B=await Ht(this.viewer,void 0,void 0,t,o,y);if(B)return B.endType===0&&console.warn(`flyTo:flyTo is end! endType:${B.endType}`),B.endType===1&&console.warn(`flyTo:飞行中断! endType:${B.endType}`),B}flyToBoundingSphere(t,o,y=1){const B=[[t[0],t[1],0],[t[0],t[3],0],[t[2],t[3],0],[t[2],t[1],0]],A=j.getGeoBoundingSphereFromPositions(B);if(!A)return;const{center:h,radius:m}=A,g={distance:o??m,heading:0,pitch:-90,flyDuration:y,hDelta:0,pDelta:0};this.flyTo(g,h)}getCurrentCameraInfo(){const{position:t,rotation:o}=this._statusInfo;return{position:t,rotation:o}}getLengthInPixel(){return this._statusInfo.length}async changeToWalk(t,o=4.2){if(!this.viewer)return;const y={mode:"Walk",position:t,jumpZVelocity:o},B=await At(this.viewer,y);return B&&!B.error&&(this._navigationMode.value=y.mode),B}async changeToMap(){if(!this.viewer)return;const t={mode:"Map"},o=await At(this.viewer,t);return o&&!o.error&&(this._navigationMode.value=t.mode),o}async changeToRotateGlobe(t=38,o=1e7,y=60){if(!this.viewer)return;const B={mode:"RotateGlobe",latitude:t,height:o,cycleTime:y},A=await At(this.viewer,B);return A&&!A.error&&(this._navigationMode.value=B.mode),A}async changeToLine(t,o=10,y=10,B=!0,A=10,h="auto"){if(!this.viewer)return;const m={mode:"Line",geoLineStringId:t,speed:o,heightOffset:y,loop:B,turnRateDPS:A,lineMode:h},g=await At(this.viewer,m);return g&&!g.error&&(this._navigationMode.value=m.mode),g}async changeToUserDefined(t){if(!this.viewer)return;const o={mode:"UserDefined",userDefinedPawn:t},y=await At(this.viewer,o);return y&&!y.error&&(this._navigationMode.value=o.mode),y}async changeToRotatePoint(t,o=5e4,y=60,B=0,A=-30){if(!this.viewer)return;const h={mode:"RotatePoint",position:t,distance:o,orbitPeriod:y,heading:B,pitch:A},m=await At(this.viewer,h);return m&&!m.error&&(this._navigationMode.value=h.mode),m}async changeToFollow(t,o=0,y=0,B=-30,A=!0){if(!this.viewer)return;const h={mode:"Follow",objectId:t,distance:o,heading:y,pitch:B,relativeRotation:A},m=await At(this.viewer,h);return m&&!m.error&&(this._navigationMode.value=h.mode),m}getFPS(){return this._statusInfo.fps}async getVersion(){const t=window.g_XE3CopyRights??{};if(!this.viewer)return t;const o=await qs(this.viewer);return t.esforue=o,t}async getHeightByLonLat(t,o,y="ECC_Visibility"){if(!this.viewer)return null;const B=await Ws(this.viewer,t,o,y);return B&&B.height!==void 0?B.height:null}async getHeightsByLonLats(t,o="ECC_Visibility"){return this.viewer?await zs(this.viewer,t,o):void 0}async capture(t=64,o=64){return this.viewer?await Js(this.viewer,t,o):void 0}async partialCapture(t,o=[64,64]){if(!this.viewer){console.warn("partialCapture:viewer is undefined");return}return await Xs(this.viewer,t,o)}async lonLatAltToScreenPosition(t){if(!this.viewer)return;const o=await Ys(this.viewer,t);return o&&[o.X,o.Y]}async setGlobalProperty(t){if(this.viewer)return await Ns(this.viewer,t)}async startEditing(t,o,y){y=Object.assign({useKeyToSwitch:!0,callSource:"outer"},y);const B=t.combinationClass?t.getMainClass():t;if(!B||!this.viewer||o==null)return;const A=Array.isArray(o)?[...o]:[o];return B.editingID=`${y.callSource}_${V.createGuid()}`,await ba(this.viewer,B.id,B.editingID,A,y.useKeyToSwitch)}async stopEditing(){if(this.viewer)return await _a(this.viewer)}async moveObjects(t){if(!this.viewer)return;const o=[],y=V.createGuid();for(let B=0;B<t.length;B++){const A=t[B],h=A.combinationClass?A.getMainClass():A;h.editingID=y,h&&o.push(h.id)}if(o.length!==0)return await Ea(this.viewer,o,y)}getProperties(){return[...super.getProperties()]}};z(Tt,"type",Tt.register("ESUeViewer",Tt)),z(Tt,"defaults",{...Nu});let it=Tt;(v=>{v.createDefaultProps=()=>({...j.ESViewer.createDefaultProps(),...Ss(),resolutionScale:1,autoReconnect:!1,propChangedListening:void 0,objectEventListening:void 0,widgetEventListening:void 0,speechRecognitionListening:void 0,customMessageListening:void 0})})(it||(it={})),V.extendClassProps(it.prototype,it.createDefaultProps);class _t extends j.EngineObject{constructor(e,t){super(e,t);const o=t.viewer;if(o&&(e.combinationClass||this.d(this.createdEvent.don(()=>{const y=this.constructor.propValFuncs,B=e.defaultProps,A=Object.keys(B).filter(u=>y[u]!==null);A.push(...this.constructor.forceUeUpdateProps);const h=e.constructor.defaults,m={val:{}},g=[];for(let u of A){const f=u+"Changed",c=e[f];g.push(c);const a=y[u];if(a===null)throw console.error("vf === null error"),new Error("vf === null error");const n=()=>{const s=e[u]??h[u];let r=a?a(s,this,t,e):s;if(r===void 0){console.warn(`UE自动更新的属性,不应该为undefined! 属性名:${u} 对象名:${e.name} 对象id: ${e.id}`);return}m.val[u]=r};n(),this.d(c.don(n))}const w=()=>{o.callUeFunc({f:"update",p:{id:e.id,...m.val}}),m.val={}},p=this.dv(V.createNextAnimateFrameEvent(...g));this.d(p.don(w)),this.d(e.createdEvent.don(w)),this.d(e.flushEvent.don(()=>p.flush()))})),!e.combinationClass)){let y=!1;this.d(()=>{y&&qn(o,e.id)}),o.callUeFunc({f:"create",p:{type:e.typeName,id:e.id}}).then(()=>{y=!0,e.createdEvent.emit()}).catch(B=>console.error(B))}}}z(_t,"propValFuncs",{ref:null,devTags:null,extras:null,execOnceFuncStr:null,updateFuncStr:null,toDestroyFuncStr:null}),z(_t,"forceUeUpdateProps",[]);class De extends _t{constructor(e,t){super(e,t);const o=t.viewer;o&&(this.d(e.flyToEvent.don(y=>{Ht(o,e.id,y)})),this.d(e.flyInEvent.don(y=>{var B,A;tr(o,e.id,(B=e.flyInParam)==null?void 0:B.position,(A=e.flyInParam)==null?void 0:A.rotation,y??1)})),this.d(e.calcFlyToParamEvent.don(()=>{Lt(o,e.id)})),this.d(e.calcFlyInParamEvent.don(()=>{const y=t.getCurrentCameraInfo();if(!y)return;const{position:B,rotation:A}=y;e.flyInParam={position:B,rotation:A,flyDuration:1}})),this.d(t.propChanged.don(y=>{y.objId===e.id&&Object.keys(y.props).forEach(B=>{const A=y.props[B]===null?void 0:y.props[B];e[B]=A})})))}}class de extends De{constructor(e,t){super(e,t);const o=t.viewer;if(!o)return;const y=()=>{e.editing||o.callUeFunc({f:"update",p:{id:e.id,position:e.position,rotation:e.rotation}})},B=this.dv(V.createNextAnimateFrameEvent(e.positionChanged,e.rotationChanged,e.editingChanged));this.d(B.don(()=>{setTimeout(y,0)})),this.d(e.smoothMoveEvent.don((m,g)=>{zA(o,e.id,m,g)})),this.d(e.smoothMoveWithRotationEvent.don((m,g,w)=>{GA(o,e.id,m,g,w)})),this.d(e.smoothMoveOnGroundEvent.don((m,g,w,p)=>{jA(o,e.id,m,g,p,w)})),this.d(e.smoothMoveWithRotationOnGroundEvent.don((m,g,w,p,u)=>{WA(o,e.id,m,g,w,p,u)})),this.d(e.smoothMoveKeepPitchEvent.don(async(m,g)=>{const w=await o.callUeFunc({f:"SmoothMoveKeepPitch",p:{id:e.id,Destination:m,Time:g}});w.error&&console.error("SmoothMoveKeepPitch:",w.error)})),this.d(e.automaticLandingEvent.don(m=>{const g=[e.position[0],e.position[1]];t.getHeightByLonLat(e.position[0],e.position[1],"Visibility").then(w=>{w!==null&&(e.position=[...g,w],e.collision=m)})}));const A=async(m,g,w,p)=>{const{viewer:u}=m;if(!u){console.error("SmoothMoveRelatively: ueViewer.viewer is undefined");return}const f=await u.callUeFunc({f:"SmoothMoveRelatively",p:{id:g,RelativePosition:w,Time:p}});return f.error&&console.error("SmoothMoveRelatively:",f.error),f};this.d(e.smoothMoveRelativelyEvent.don((m,g)=>{A(t,e.id,m,g)}));const h=async(m,g,w,p,u)=>{const{viewer:f}=m;if(!f){console.error("SmoothMoveRelativelyWithRotation: ueViewer.viewer is undefined");return}const c=await f.callUeFunc({f:"SmoothMoveRelativelyWithRotation",p:{id:g,RelativePosition:w,NewRotation:p,Time:u}});return c.error&&console.error("SmoothMoveRelativelyWithRotation:",c.error),c};this.d(e.smoothMoveRelativelyWithRotationEvent.don((m,g,w)=>{h(t,e.id,m,g,w)}))}}class Pe extends De{constructor(e,t){super(e,t);const o=t.viewer;if(!o)return;const y=()=>{e.editing||o.callUeFunc({f:"update",p:{id:e.id,points:e.points}})},B=this.dv(V.createNextAnimateFrameEvent(e.pointsChanged,e.editingChanged));this.d(B.don(()=>{setTimeout(y,0)}))}}z(Pe,"propValFuncs",{...De.propValFuncs,pointStyle:e=>({...e,materialParams:JSON.stringify(e.materialParams??{})}),strokeStyle:e=>({...e,materialParams:JSON.stringify(e.materialParams??{})}),fillStyle:e=>({...e,materialParams:JSON.stringify(e.materialParams??{})})});class $e extends de{constructor(e,t){super(e,t),t.viewer&&this.d(t.widgetEvent.don(y=>{if(y.objId!==e.id)return;const{type:B,add:A}=y;e.widgetEvent.emit({type:B,add:A})}))}}class di extends de{constructor(e,t){super(e,t),t.viewer}}z(di,"propValFuncs",{...de.propValFuncs,pointStyle:e=>({...e,materialParams:JSON.stringify(e.materialParams??{})}),strokeStyle:e=>({...e,materialParams:JSON.stringify(e.materialParams??{})}),fillStyle:e=>({...e,materialParams:JSON.stringify(e.materialParams??{})})});class $A extends di{constructor(e,t){super(e,t),t.viewer}}const Pc=v=>{switch(v){case 0:return"成功绑定";case 1:return"解绑之前的内容,成功绑定";case 2:return"没搜索到ActorTag,无法绑定";case 3:return"搜索到ActorTag但对应的Actor不是3dTileset,无法绑定";default:return"未知错误"}},Fr=class Fr extends j.EngineObject{constructor(t,o){super(t,o);z(this,"_styleColor",this.dv(V.react([])));z(this,"_styleVisable",this.dv(V.react([])));const y=o.viewer;if(!y){console.warn("UeES3DTileset: viewer is undefined!");return}let B,A;const h=async()=>{!B&&!A||await y.callUeFunc({f:"update",p:{id:t.id,url:t.url,show:t.show,collision:t.collision,allowPicking:t.allowPicking,flyToParam:t.flyToParam??j.ESVisualObject.defaults.flyToParam,flyInParam:t.flyInParam??j.ESVisualObject.defaults.flyInParam,highlightID:t.highlightID,highlightColor:t.highlightColor,highlight:t.highlight,materialMode:t.materialMode,maximumScreenSpaceError:t.maximumScreenSpaceError,colorMode:Reflect.has(t,"colorMode")?t.colorMode:void 0,offset:t.offset,rotation:t.rotation,cacheBytes:t.cacheBytes,colorBlendMode:t.colorBlendMode,materialOverrideMap:t.materialOverrideMap}})},m=this.dv(V.createNextAnimateFrameEvent(t.urlChanged,t.showChanged,t.flyToParamChanged,t.flyInParamChanged,t.collisionChanged,t.allowPickingChanged,t.highlightIDChanged,t.highlightColorChanged,t.highlightChanged,t.materialModeChanged,t.maximumScreenSpaceErrorChanged,t.offsetChanged,t.rotationChanged,t.cacheBytesChanged,t.colorBlendModeChanged,t.materialOverrideMapChanged));h(),this.d(m.don(h)),Reflect.has(t,"colorMode")&&this.d(t.colorModeChanged.don(()=>h()));const g=this.dv(V.react(void 0));{const p=this.dv(V.createNextAnimateFrameEvent(t.actorTagChanged,t.urlChanged)),u=()=>{t.actorTag?g.value={type:"ActorTag",actorTag:t.actorTag}:t.url?g.value={type:"CreatedUrl",url:t.url}:g.value=void 0,t.editing=!1};u(),this.d(p.don(u))}const w=async()=>{const{id:p}=t;if(B!==void 0){B=void 0;try{const u=await o.unBind3DTilesetById(p);if(!u)return;if(u.error!==""){console.warn(`UeES3DTileset UnBind3DTilesetById: ${u.error}`);return}}catch(u){console.warn(`UeES3DTileset UnBind3DTilesetById: ${u}`);return}}if(A!==void 0){A=void 0;try{const u=await y.callUeFunc({f:"destroy",p:{id:p}});if(!u)return;if(u.error!==""){console.warn(`UeES3DTileset Destroy: ${u.error}`);return}}catch(u){console.warn(`UeES3DTileset Destroy: ${u}`);return}}};this.d(()=>{w()});{const p=this.dv(V.createProcessingFromAsyncFunc(async f=>{if(g.value===void 0){await f.promise(w());return}if(g.value.type==="ActorTag"){const{actorTag:c}=g.value;if(B!==c&&await f.promise(w()),B!==void 0||c===void 0)return;try{B=c;const a=await f.promise(o.bind3DTilesetByTag(t.id,c));if(!a)return;if(a.error!==""){console.warn(`UeES3DTileset Bind3DTilesetByTag: ${a.error}`);return}if(a.re.type!==0)if(a.re.type===1)console.warn(`UeES3DTileset Bind3DTilesetByTag: ${Pc(a.re.type)}`);else{console.warn(`UeES3DTileset Bind3DTilesetByTag: ${Pc(a.re.type)}`);return}}catch(a){console.warn(`UeES3DTileset Bind3DTilesetByTag: ${a}`);return}}else if(g.value.type==="CreatedUrl"){const{url:c}=g.value;if(c!==A&&await w(),A!==void 0||c===void 0)return;try{A=c;const a=await f.promise(y.callUeFunc({f:"create",p:{type:t.typeName,id:t.id}}));if(!a)return;if(a.error!==""){console.warn(`UeES3DTileset create: ${a.error}`);return}}catch(a){console.warn(`UeES3DTileset create: ${a}`);return}}await f.promise(h())})),u=async()=>{p.restart()};u(),this.d(g.changed.don(u))}this.d(t.refreshTilesetEvent.don(()=>{Us(y,t.id)})),this.d(t.flyToEvent.don(async(p,u)=>{if(!B&&!A)return;const f=await Ht(y,t.id,p);let c="over";f===void 0?c="error":f.endType===0?c="over":f.endType===1&&(c="cancelled"),t.flyOverEvent.emit(u,c,o)})),this.d(t.calcFlyToParamEvent.don(()=>{!B&&!A||Lt(y,t.id)})),this.d(t.calcFlyInParamEvent.don(async()=>{if(!B&&!A||!o.actived)return;const p=await o.getCurrentCameraInfo();if(!p)return;const{position:u,rotation:f}=p;t.flyInParam={position:u,rotation:f,flyDuration:1}})),this.d(o.propChanged.don(p=>{!B&&!A||p.objId===t.id&&Object.keys(p.props).forEach(u=>{const f=p.props[u]===null?void 0:p.props[u];t[u]=f})})),this.d(o.objectEvent.don(p=>{!B&&!A||p.id!==t.id||p.type!=="3DTilesetReady"||t.tilesetReady.emit(p.p)}));{const p=async(a,n)=>{if(!B&&!A)return;const s=await y.callUeFunc({f:"SetFeatureColor",p:{id:t.id,featureName:a,json:n}});if(s&&s.error!==""){console.warn(`UeES3DTileset SetFeatureColor: ${s.error}`);return}},u=async(a,n)=>{if(!B&&!A)return;const s=await y.callUeFunc({f:"SetFeatureVisable",p:{id:t.id,featureName:a,json:n}});if(s&&s.error!==""){console.warn(`UeES3DTileset SetFeatureVisable: ${s.error}`);return}},f=async()=>{if(!B&&!A)return;const a=await y.callUeFunc({f:"ResetFeatureStyle",p:{id:t.id}});if(a&&a.error!==""){console.warn(`UeES3DTileset ResetFeatureStyle: ${a.error}`);return}},c=async a=>{if(!B&&!A)return;const n=await y.callUeFunc({f:"SetFeatureStyle",p:{id:t.id,json:a}});if(n&&n.error!==""){console.warn(`UeES3DTileset SetFeatureStyle: ${n.error}`);return}};this.d(t.setFeatureColorEvent.don((a,n)=>{const s=[...this.styleColor,...n];this.styleColor=[...s],p(a,s)})),this.d(t.setFeatureVisableEvent.don((a,n)=>{const s=[...this.styleVisable,...n];this.styleVisable=[...s],u(a,s)})),this.d(t.resetFeatureStyleEvent.don(()=>{f(),this.styleColor=[],this.styleVisable=[]})),this.d(t.setFeatureStyleEvent.don(a=>{c(a)}))}{const p=async()=>{if(!B&&!A){t._featureTableResultEvent.emit(void 0);return}try{const u=await y.callUeFunc({f:"GetFeatureTable",p:{id:t.id}});u.error!==""&&console.warn(`UeES3DTileset GetFeatureTable: ${u.error}`),t._featureTableResultEvent.emit(u.re.table)}catch(u){console.warn(`UeES3DTileset GetFeatureTable: ${u}`),t._featureTableResultEvent.emit(void 0)}};this.d(t.getFeatureTableEvent.don(()=>{p()}))}{const p=async()=>{if(!B&&!A){t.getMaterialNameListEvent.emit(void 0);return}try{const u=await y.callUeFunc({f:"GetMaterialNameList",p:{id:t.id}});u.error!==""&&console.warn(`UeES3DTileset GetMaterialNameList: ${u.error}`),t.getMaterialNameListEvent.emit(u.re.materialNameList)}catch(u){console.warn(`UeES3DTileset GetMaterialNameList: ${u}`),t.getMaterialNameListEvent.emit(void 0)}};this.ad(t.getMaterialNameListEvent.don(u=>{u=="start"&&p()}))}}get styleColor(){return this._styleColor.value}set styleColor(t){this._styleColor.value=t}get styleVisable(){return this._styleVisable.value}set styleVisable(t){this._styleVisable.value=t}};z(Fr,"type",Fr.register("ESUeViewer",j.ES3DTileset.type,Fr));let ZA=Fr;const xc=v=>{switch(v){case 0:return"成功绑定";case 1:return"解绑之前的内容,成功绑定";case 2:return"没搜索到ActorTag,无法绑定";case 3:return"搜索到ActorTag对应的Actor是地形,无法绑定";case 4:return"没搜索到ComponentTag,无法绑定";default:return"未知错误"}},Qr=class Qr extends j.EngineObject{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}let y,B;const A=this.dv(V.react(void 0)),h=this.ad(V.reactJson(""));{const p=()=>{if(typeof e.url=="string")h.value=j.ESSceneObject.context.getStrFromEnv(e.url);else{const u=e.url;u.url=j.ESSceneObject.context.getStrFromEnv(u.url),h.value=u}};p(),this.ad(e.urlChanged.don(p))}const m=async()=>{!y&&!B||await o.callUeFunc({f:"update",p:{id:e.id,show:e.show??!0,rectangle:e.rectangle??[-180,-90,180,90],collision:e.collision??!0,allowPicking:e.allowPicking??!1,flyToParam:e.flyToParam??j.ESVisualObject.defaults.flyToParam,flyInParam:e.flyInParam??j.ESVisualObject.defaults.flyInParam,url:h.value??"",zIndex:e.zIndex??0,maximumLevel:e.maximumLevel??j.ESImageryLayer.defaults.maximumLevel,minimumLevel:e.minimumLevel??j.ESImageryLayer.defaults.minimumLevel,options:e.options??j.ESImageryLayer.defaults.options,targetID:e.targetID??j.ESImageryLayer.defaults.targetID,opacity:e.opacity??j.ESImageryLayer.defaults.opacity}})},g=this.dv(V.createNextAnimateFrameEvent(e.showChanged,h.changed,e.flyToParamChanged,e.flyInParamChanged,e.zIndexChanged,e.collisionChanged,e.allowPickingChanged,e.maximumLevelChanged,e.minimumLevelChanged,e.rectangleChanged,e.optionsChanged,e.targetIDChanged,e.opacityChanged));this.d(g.don(m));const w=async()=>{const{id:p}=e;if(y!==void 0){y=void 0;try{const u=await t.unBindImageryById(p);if(!u)return;if(u.error!==""){console.warn(`UeESImageryLayer UnImageryByID: ${u.error}`);return}}catch(u){console.warn(`UeESImageryLayer UnImageryByID promise: ${u}`);return}}if(B!==void 0){B=void 0;try{const u=await o.callUeFunc({f:"destroy",p:{id:p,test:"UeESImageryLayer"}});if(!u)return;if(u.error!==""){console.warn(`UeESImageryLayer Destroy: ${u.error}`);return}}catch(u){console.warn(`UeESImageryLayer Destroy promise: ${u}`);return}}};this.d(()=>{w()});{const p=this.dv(V.createProcessingFromAsyncFunc(async f=>{if(A.value===void 0){await f.promise(w());return}if(A.value.type==="ActorTag"){const{actorTag:c,componentTag:a}=A.value;if(y!==c&&await f.promise(w()),y!==void 0||c===void 0)return;try{y=c;const n=await f.promise(t.bindImageryByTag(e.id,c,a));if(!n)return;if(n.error!==""){console.warn(`ESImageryLayer BindImageryByTag: ${n.error}`);return}if(n.re.type!==0)if(n.re.type===1)console.warn(`ESImageryLayer BindImageryByTag: ${xc(n.re.type)}`);else{console.warn(`ESImageryLayer BindImageryByTag: ${xc(n.re.type)}`);return}}catch(n){console.warn(`ESImageryLayer BindImageryByTag promise: ${n}`);return}}else if(A.value.type==="CreatedUrl"){const{url:c}=A.value;if(c!==B&&await f.promise(w()),B!==void 0||c===void 0)return;try{B=c;const a=await f.promise(o.callUeFunc({f:"create",p:{type:"ESImageryLayer",id:e.id}}));if(!a)return;if(a.error!==""){console.warn(`ESImageryLayer create: ${a.error}`);return}}catch{console.warn("ESImageryLayer create: create promise error");return}}await f.promise(m())})),u=async()=>{p.restart()};u(),this.d(A.changed.don(u))}{const p=this.dv(V.createNextAnimateFrameEvent(e.actorTagChanged,h.changed,e.componentTagChanged)),u=()=>{e.actorTag&&e.componentTag?A.value={type:"ActorTag",actorTag:e.actorTag,componentTag:e.componentTag}:h.value?A.value={type:"CreatedUrl",url:h.value}:A.value=void 0};u(),this.d(p.don(u))}this.d(e.flyToEvent.don(async(p,u)=>{if(!y&&!B)return;const f=await Ht(o,e.id,p);let c="over";f===void 0?c="error":f.endType===0?c="over":f.endType===1&&(c="cancelled"),e.flyOverEvent.emit(u,c,t)})),this.d(e.flyInEvent.don(async(p,u)=>{var a,n;if(!y&&!B)return;const f=await tr(o,e.id,(a=e.flyInParam)==null?void 0:a.position,(n=e.flyInParam)==null?void 0:n.rotation,p??1);let c="over";f===void 0?c="error":f.endType===0?c="over":f.endType===1&&(c="cancelled"),e.flyOverEvent.emit(u,c,t)})),this.d(e.calcFlyToParamEvent.don(()=>{!y&&!B||Lt(o,e.id)})),this.d(e.calcFlyInParamEvent.don(async()=>{if(!t.actived)return;const p=await t.getCurrentCameraInfo();if(!p)return;const{position:u,rotation:f}=p;e.flyInParam={position:u,rotation:f,flyDuration:1}})),this.d(t.propChanged.don(p=>{!y&&!B||p.objId===e.id&&Object.keys(p.props).forEach(u=>{const f=p.props[u]===null?void 0:p.props[u];e[u]=f})}))}};z(Qr,"type",Qr.register("ESUeViewer",j.ESImageryLayer.type,Qr));let fi=Qr;const It=class It extends De{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(It,"type",It.register("ESUeViewer",j.ESTerrainLayer.type,It)),z(It,"forceUeUpdateProps",[...De.forceUeUpdateProps,"url"]),z(It,"propValFuncs",{...De.propValFuncs,url:e=>typeof e=="string"?j.ESSceneObject.context.getStrFromEnv(e):(e.url=j.ESSceneObject.context.getStrFromEnv(e.url),e),czmMaxzoom:null,czmMinzoom:null});let hi=It;const Sr=class Sr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Sr,"type",Sr.register("ESUeViewer",j.ESAlarm.type,Sr));let pi=Sr;const Ur=class Ur extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Ur,"type",Ur.register("ESUeViewer",j.ESApertureEffect.type,Ur));let gi=Ur;const Tr=class Tr extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Tr,"type",Tr.register("ESUeViewer",j.ESGeoPolygon.type,Tr));let Ne=Tr;const Ir=class Ir extends Ne{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}const y=()=>{let A=j.ESAreaMeasurement.defaults.fillStyle;try{A={...e.fillStyle??j.ESAreaMeasurement.defaults.fillStyle}}catch(h){console.error("ESAreaMeasurement fillStyle 属性类型错误!",h),A={...j.ESAreaMeasurement.defaults.fillStyle}}A.materialParams=JSON.stringify(A.materialParams),o.callUeFunc({f:"update",p:{id:e.id,stroked:e.stroked??j.ESAreaMeasurement.defaults.stroked,fillStyle:A,filled:e.filled??j.ESAreaMeasurement.defaults.filled}}),console.log(A)},B=this.dv(V.createNextAnimateFrameEvent(e.fillStyleChanged,e.strokedChanged,e.filledChanged));this.d(B.don(y)),this.d(e.createdEvent.don(y))}};z(Ir,"type",Ir.register("ESUeViewer",j.ESAreaMeasurement.type,Ir));let vi=Ir;const Pr=class Pr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Pr,"type",Pr.register("ESUeViewer",j.ESBlastParticleSystem.type,Pr));let yi=Pr;const xr=class xr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is underfined!");return}}};z(xr,"type",xr.register("ESUeViewer",j.ESBoxClipping.type,xr));let mi=xr;const Or=class Or extends de{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.dispose(e.flyInEvent.don((y,B,A="default")=>{const{id:h,duration:m,position:g,rotation:w}=e;tr(o,h,g,w,m??y,A)})),this.dispose(e.resetWithCurrentCameraEvent.don(()=>{ei(o,e.id)})),this.dispose(e.captureEvent.don((y,B)=>{t.capture(y,B).then(h=>{h&&(e.thumbnail=h)})}))}};z(Or,"type",Or.register("ESUeViewer",j.ESCameraView.type,Or));let wi=Or;const Mr=class Mr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Mr,"type",Mr.register("ESUeViewer",j.ESCameraVisibleRange.type,Mr));let Bi=Mr;const Hr=class Hr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Hr,"type",Hr.register("ESUeViewer",j.ESCar.type,Hr));let Ci=Hr;const Lr=class Lr extends Pe{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}const y=()=>{let A=j.ESClassification.defaults.fillStyle;try{A={...e.fillStyle??j.ESClassification.defaults.fillStyle}}catch(h){console.error("ESClassification fillStyle 属性类型错误!",h),A={...j.ESClassification.defaults.fillStyle}}A.materialParams=JSON.stringify(A.materialParams),o.callUeFunc({f:"update",p:{id:e.id,filled:e.filled??j.ESClassification.defaults.filled,fillStyle:A}})},B=this.dv(V.createNextAnimateFrameEvent(e.fillStyleChanged,e.filledChanged));this.d(B.don(y)),this.d(e.createdEvent.don(y))}};z(Lr,"type",Lr.register("ESUeViewer",j.ESClassification.type,Lr));let bi=Lr;const Dr=class Dr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is underfined!");return}}};z(Dr,"type",Dr.register("ESUeViewer",j.ESClippingPlane.type,Dr));let _i=Dr;const Rr=class Rr extends de{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}const y=this.ad(V.reactJson(""));{const h=()=>{if(typeof e.url=="string")y.value=j.ESSceneObject.context.getStrFromEnv(e.url??j.ESDataMesh.defaults.url);else{const m=e.url;m.url=j.ESSceneObject.context.getStrFromEnv(m.url??j.ESDataMesh.defaults.url),y.value=m}};h(),this.ad(e.urlChanged.don(h))}const B=()=>{const h=e.colorStops??j.ESDataMesh.defaults.colorStops;o.callUeFunc({f:"update",p:{id:e.id,url:y.value??j.ESDataMesh.defaults.url,currentTime:e.currentTime??j.ESDataMesh.defaults.currentTime,minPropValue:e.minPropValue??j.ESDataMesh.defaults.minPropValue,maxPropValue:e.maxPropValue??j.ESDataMesh.defaults.maxPropValue,colorStops:JSON.stringify(h)}})},A=this.dv(V.createNextAnimateFrameEvent(y.changed,e.currentTimeChanged,e.minPropValueChanged,e.maxPropValueChanged,e.colorStopsChanged));this.d(A.don(B)),this.d(e.createdEvent.don(B))}};z(Rr,"type",Rr.register("ESUeViewer",j.ESDataMesh.type,Rr));let Ei=Rr;const kr=class kr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(kr,"type",kr.register("ESUeViewer",j.ESDatasmithRuntimeModel.type,kr));let Fi=kr;const Kr=class Kr extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Kr,"type",Kr.register("ESUeViewer",j.ESDirectionMeasurement.type,Kr));let Qi=Kr;const Nr=class Nr extends Pe{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}const y=()=>{let A;try{A={...e.strokeStyle??j.ESDistanceMeasurement.defaults.strokeStyle}}catch(h){console.error("ESDistanceMeasurement strokeStyle 属性类型错误!",h),A={...j.ESDistanceMeasurement.defaults.strokeStyle}}o.callUeFunc({f:"update",p:{id:e.id,strokeStyle:A}})},B=this.dv(V.createNextAnimateFrameEvent(e.strokeStyleChanged));this.d(B.don(y)),this.d(e.createdEvent.don(y))}};z(Nr,"type",Nr.register("ESUeViewer",j.ESDistanceMeasurement.type,Nr));let Si=Nr;const Vr=class Vr extends $A{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Vr,"type",Vr.register("ESUeViewer",j.ESLocalPolygon.type,Vr));let qA=Vr;const Gr=class Gr extends qA{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Gr,"type",Gr.register("ESUeViewer",j.ESDynamicWater.type,Gr));let Ui=Gr;const jr=class jr extends De{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}this.d(t.widgetEvent.don(y=>{if(y.objId!==e.id)return;const{type:B,properties:A}=y;e.widgetEvent.emit({type:B,properties:A})}))}};z(jr,"type",jr.register("ESUeViewer",j.ESEntityCluster.type,jr));let Ti=jr;const Wr=class Wr extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Wr,"type",Wr.register("ESUeViewer",j.ESExcavate.type,Wr));let Ii=Wr;const zr=class zr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(zr,"type",zr.register("ESUeViewer",j.ESFireParticleSystem.type,zr));let Pi=zr;const Jr=class Jr extends De{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}const y=this.ad(V.reactJson(""));{const h=()=>{if(typeof e.url=="string")y.value=j.ESSceneObject.context.getStrFromEnv(e.url);else{const m=e.url;m.url=j.ESSceneObject.context.getStrFromEnv(m.url),y.value=m}};h(),this.ad(e.urlChanged.don(h))}const B=()=>{o.callUeFunc({f:"update",p:{id:e.id,url:y.value??j.ESForestTileset.defaults.url,treeTypes:e.treeTypes??j.ESForestTileset.defaults.treeTypes,xiaoBanWidget:e.xiaoBanWidget??j.ESForestTileset.defaults.xiaoBanWidgetDefault,youShiSZ:e.youShiSZ??j.ESForestTileset.defaults.youShiSZ,diLei:e.diLei??j.ESForestTileset.defaults.diLei,senLinLB:e.senLinLB??j.ESForestTileset.defaults.senLinLB,labelMaterial:e.labelMaterial??j.ESForestTileset.defaults.labelMaterial,heightOffset:e.heightOffset??j.ESForestTileset.defaults.heightOffset}})},A=this.dv(V.createNextAnimateFrameEvent(y.changed,e.treeTypesChanged,e.xiaoBanWidgetChanged,e.youShiSZChanged,e.diLeiChanged,e.senLinLBChanged,e.labelMaterialChanged,e.heightOffsetChanged));this.d(A.don(B)),this.d(e.createdEvent.don(B))}};z(Jr,"type",Jr.register("ESUeViewer",j.ESForestTileset.type,Jr));let xi=Jr;/*!
|
|
91
|
+
`}}class Ja{static deepCopyGamepad(A){return JSON.parse(JSON.stringify({buttons:A.buttons.map(e=>JSON.parse(JSON.stringify({pressed:e.pressed,touched:e.touched}))),axes:A.axes}))}}class $d{constructor(A){this.toStreamerMessagesProvider=A,this.controllers=[]}updateStatus(A,e,t){if(A.gamepad){const n=e.getPose(A.gripSpace,t);if(!n)return;let s=0;A.profiles.includes("htc-vive")?s=1:A.profiles.includes("oculus-touch")&&(s=2),this.toStreamerMessagesProvider.toStreamerHandlers.get("XRSystem")([s]);let i=2;switch(A.handedness){case"left":i=0;break;case"right":i=1}const o=n.transform.matrix,a=[];for(let d=0;d<16;d++)a[d]=new Float32Array([o[d]])[0];this.toStreamerMessagesProvider.toStreamerHandlers.get("XRControllerTransform")([a[0],a[4],a[8],a[12],a[1],a[5],a[9],a[13],a[2],a[6],a[10],a[14],a[3],a[7],a[11],a[15],i]),this.controllers[i]===void 0&&(this.controllers[i]={prevState:void 0,currentState:void 0,id:void 0},this.controllers[i].prevState=Ja.deepCopyGamepad(A.gamepad)),this.controllers[i].currentState=Ja.deepCopyGamepad(A.gamepad);const l=this.controllers[i],c=l.currentState,h=l.prevState;for(let d=0;d<c.buttons.length;d++){const B=c.buttons[d],g=h.buttons[d];B.pressed?this.toStreamerMessagesProvider.toStreamerHandlers.get("XRButtonPressed")([i,d,g.pressed?1:0]):!B.pressed&&g.pressed&&this.toStreamerMessagesProvider.toStreamerHandlers.get("XRButtonReleased")([i,d,0]),B.touched&&!B.pressed?this.toStreamerMessagesProvider.toStreamerHandlers.get("XRButtonPressed")([i,3,g.touched?1:0]):!B.touched&&g.touched&&this.toStreamerMessagesProvider.toStreamerHandlers.get("XRButtonReleased")([i,3,0])}for(let d=0;d<c.axes.length;d++)this.toStreamerMessagesProvider.toStreamerHandlers.get("XRAnalog")([i,d,c.axes[d]]);this.controllers[i].prevState=c}}}class za{constructor(A){this.xrSession=null,this.webRtcController=A,this.xrControllers=[],this.xrGamepadController=new $d(this.webRtcController.streamMessageController),this.onSessionEnded=new EventTarget,this.onSessionStarted=new EventTarget,this.onFrame=new EventTarget}xrClicked(){this.xrSession?this.xrSession.end():navigator.xr.requestSession("immersive-vr").then(A=>{this.onXrSessionStarted(A)})}onXrSessionEnded(){u.Log(u.GetStackTrace(),"XR Session ended"),this.xrSession=null,this.onSessionEnded.dispatchEvent(new Event("xrSessionEnded"))}onXrSessionStarted(A){u.Log(u.GetStackTrace(),"XR Session started"),this.xrSession=A,this.xrSession.addEventListener("end",()=>{this.onXrSessionEnded()});const e=document.createElement("canvas");this.gl=e.getContext("webgl2",{xrCompatible:!0}),this.xrSession.updateRenderState({baseLayer:new XRWebGLLayer(this.xrSession,this.gl)});const t=this.gl.createShader(this.gl.VERTEX_SHADER);this.gl.shaderSource(t,Xa.vertexShader()),this.gl.compileShader(t);const n=this.gl.createShader(this.gl.FRAGMENT_SHADER);this.gl.shaderSource(n,Xa.fragmentShader()),this.gl.compileShader(n);const s=this.gl.createProgram();this.gl.attachShader(s,t),this.gl.attachShader(s,n),this.gl.linkProgram(s),this.gl.useProgram(s),this.positionLocation=this.gl.getAttribLocation(s,"a_position"),this.texcoordLocation=this.gl.getAttribLocation(s,"a_texCoord"),this.positionBuffer=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.positionBuffer),this.gl.enableVertexAttribArray(this.positionLocation);const i=this.gl.createTexture();this.gl.bindTexture(this.gl.TEXTURE_2D,i),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.NEAREST),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.NEAREST),this.texcoordBuffer=this.gl.createBuffer(),this.resolutionLocation=this.gl.getUniformLocation(s,"u_resolution"),this.offsetLocation=this.gl.getUniformLocation(s,"u_offset"),A.requestReferenceSpace("local").then(o=>{this.xrRefSpace=o,this.xrSession.requestAnimationFrame((a,l)=>this.onXrFrame(a,l))}),this.onSessionStarted.dispatchEvent(new Event("xrSessionStarted"))}onXrFrame(A,e){const t=e.getViewerPose(this.xrRefSpace);if(t){const n=t.transform.matrix,s=[];for(let o=0;o<16;o++)s[o]=new Float32Array([n[o]])[0];this.webRtcController.streamMessageController.toStreamerHandlers.get("XRHMDTransform")([s[0],s[4],s[8],s[12],s[1],s[5],s[9],s[13],s[2],s[6],s[10],s[14],s[3],s[7],s[11],s[15]]);const i=this.xrSession.renderState.baseLayer;this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,i.framebuffer),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.webRtcController.videoPlayer.getVideoElement()),this.render(this.webRtcController.videoPlayer.getVideoElement())}this.webRtcController.config.isFlagEnabled(U.XRControllerInput)&&this.xrSession.inputSources.forEach((n,s,i)=>{this.xrGamepadController.updateStatus(n,e,this.xrRefSpace)},this),this.xrSession.requestAnimationFrame((n,s)=>this.onXrFrame(n,s)),this.onFrame.dispatchEvent(new ya({time:A,frame:e}))}render(A){if(!this.gl)return;const e=this.xrSession.renderState.baseLayer;let t,n,s,i,o;this.gl.viewport(0,0,e.framebufferWidth,e.framebufferHeight),this.gl.uniform4f(this.offsetLocation,1,1,0,0),this.gl.bufferData(this.gl.ARRAY_BUFFER,new Float32Array([0,0,A.videoWidth,0,0,A.videoHeight,0,A.videoHeight,A.videoWidth,0,A.videoWidth,A.videoHeight]),this.gl.STATIC_DRAW),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.texcoordBuffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),this.gl.STATIC_DRAW),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.positionBuffer),t=2,n=this.gl.FLOAT,s=!1,i=0,o=0,this.gl.vertexAttribPointer(this.positionLocation,t,n,s,i,o),this.gl.enableVertexAttribArray(this.texcoordLocation),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.texcoordBuffer),t=2,n=this.gl.FLOAT,s=!1,i=0,o=0,this.gl.vertexAttribPointer(this.texcoordLocation,t,n,s,i,o),this.gl.uniform2f(this.resolutionLocation,A.videoWidth,A.videoHeight);const a=this.gl.TRIANGLES;o=0,this.gl.drawArrays(a,o,6)}static isSessionSupported(A){return navigator.xr?navigator.xr.isSessionSupported(A):new Promise(()=>!1)}}class Zd{constructor(A){this.editTextButton=null,this.hiddenInput=null,"ontouchstart"in document.documentElement&&this.createOnScreenKeyboardHelpers(A)}unquantizeAndDenormalizeUnsigned(A,e){return null}createOnScreenKeyboardHelpers(A){this.hiddenInput||(this.hiddenInput=document.createElement("input"),this.hiddenInput.id="hiddenInput",this.hiddenInput.maxLength=0,A.appendChild(this.hiddenInput)),this.editTextButton||(this.editTextButton=document.createElement("button"),this.editTextButton.id="editTextButton",this.editTextButton.innerHTML="edit text",A.appendChild(this.editTextButton),this.editTextButton.classList.add("hiddenState"),this.editTextButton.addEventListener("touchend",e=>{this.hiddenInput.focus(),e.preventDefault()}))}showOnScreenKeyboard(A){if(A.showOnScreenKeyboard){this.editTextButton.classList.remove("hiddenState");const e=this.unquantizeAndDenormalizeUnsigned(A.x,A.y);this.editTextButton.style.top=e.y.toString()+"px",this.editTextButton.style.left=(e.x-40).toString()+"px"}else this.editTextButton.classList.add("hiddenState"),this.hiddenInput.blur()}}class qd{constructor(A,e){this._showActionOrErrorOnDisconnect=!0,this.allowConsoleCommands=!1,this.config=A,e!=null&&e.videoElementParent&&(this._videoElementParent=e.videoElementParent),this._eventEmitter=new Ia,this.configureSettings(),this.setWebRtcPlayerController(new Wa(this.config,this)),this.onScreenKeyboardHelper=new Zd(this.videoElementParent),this.onScreenKeyboardHelper.unquantizeAndDenormalizeUnsigned=(t,n)=>this._webRtcController.requestUnquantizedAndDenormalizeUnsigned(t,n),this._activateOnScreenKeyboard=t=>this.onScreenKeyboardHelper.showOnScreenKeyboard(t),this._webXrController=new za(this._webRtcController)}get videoElementParent(){return this._videoElementParent||(this._videoElementParent=document.createElement("div"),this._videoElementParent.id="videoElementParent"),this._videoElementParent}configureSettings(){this.config._addOnSettingChangedListener(U.IsQualityController,A=>{A!==!0||this._webRtcController.isQualityController||this._webRtcController.sendRequestQualityControlOwnership()}),this.config._addOnSettingChangedListener(U.AFKDetection,A=>{this._webRtcController.setAfkEnabled(A)}),this.config._addOnSettingChangedListener(U.MatchViewportResolution,()=>{this._webRtcController.videoPlayer.updateVideoStreamSize()}),this.config._addOnSettingChangedListener(U.HoveringMouseMode,A=>{this.config.setFlagLabel(U.HoveringMouseMode,`Control Scheme: ${A?"Hovering":"Locked"} Mouse`),this._webRtcController.setMouseInputEnabled(this.config.isFlagEnabled(U.MouseInput))}),this.config._addOnSettingChangedListener(U.KeyboardInput,A=>{this._webRtcController.setKeyboardInputEnabled(A)}),this.config._addOnSettingChangedListener(U.MouseInput,A=>{this._webRtcController.setMouseInputEnabled(A)}),this.config._addOnSettingChangedListener(U.TouchInput,A=>{this._webRtcController.setTouchInputEnabled(A)}),this.config._addOnSettingChangedListener(U.GamepadInput,A=>{this._webRtcController.setGamePadInputEnabled(A)}),this.config._addOnNumericSettingChangedListener(D.MinQP,A=>{u.Log(u.GetStackTrace(),"-------- Sending MinQP --------",7),this._webRtcController.sendEncoderMinQP(A),u.Log(u.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnNumericSettingChangedListener(D.MaxQP,A=>{u.Log(u.GetStackTrace(),"-------- Sending encoder settings --------",7),this._webRtcController.sendEncoderMaxQP(A),u.Log(u.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnNumericSettingChangedListener(D.WebRTCMinBitrate,A=>{u.Log(u.GetStackTrace(),"-------- Sending web rtc settings --------",7),this._webRtcController.sendWebRTCMinBitrate(1e3*A),u.Log(u.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnNumericSettingChangedListener(D.WebRTCMaxBitrate,A=>{u.Log(u.GetStackTrace(),"-------- Sending web rtc settings --------",7),this._webRtcController.sendWebRTCMaxBitrate(1e3*A),u.Log(u.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnNumericSettingChangedListener(D.WebRTCFPS,A=>{u.Log(u.GetStackTrace(),"-------- Sending web rtc settings --------",7),this._webRtcController.sendWebRTCFps(A),u.Log(u.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnOptionSettingChangedListener(V.PreferredCodec,A=>{this._webRtcController&&this._webRtcController.setPreferredCodec(A)}),this.config._registerOnChangeEvents(this._eventEmitter)}_activateOnScreenKeyboard(A){throw new Error("Method not implemented.")}_onInputControlOwnership(A){this._inputController=A}setWebRtcPlayerController(A){this._webRtcController=A,this._webRtcController.setPreferredCodec(this.config.getSettingOption(V.PreferredCodec).selected),this._webRtcController.resizePlayerStyle(),this.checkForAutoConnect()}connect(){this._eventEmitter.dispatchEvent(new Ba),this._webRtcController.connectToSignallingServer()}reconnect(){this._eventEmitter.dispatchEvent(new wa),this._webRtcController.restartStreamAutomatically()}disconnect(){this._eventEmitter.dispatchEvent(new fa),this._webRtcController.close()}play(){this._onStreamLoading(),this._webRtcController.playStream()}checkForAutoConnect(){this.config.isFlagEnabled(U.AutoConnect)&&(this._onWebRtcAutoConnect(),this._webRtcController.connectToSignallingServer())}_onWebRtcAutoConnect(){this._eventEmitter.dispatchEvent(new sa),this._showActionOrErrorOnDisconnect=!0}_onWebRtcSdp(){this._eventEmitter.dispatchEvent(new na)}_onStreamLoading(){this._eventEmitter.dispatchEvent(new ga)}_onDisconnect(A){this._webRtcController.getDisconnectMessageOverride()!=""&&this._webRtcController.getDisconnectMessageOverride()!==void 0&&this._webRtcController.getDisconnectMessageOverride()!=null&&(A=this._webRtcController.getDisconnectMessageOverride(),this._webRtcController.setDisconnectMessageOverride("")),this._eventEmitter.dispatchEvent(new la({eventString:A,showActionOrErrorOnDisconnect:this._showActionOrErrorOnDisconnect})),this._showActionOrErrorOnDisconnect==0&&(this._showActionOrErrorOnDisconnect=!0)}_onWebRtcConnecting(){this._eventEmitter.dispatchEvent(new ia)}_onWebRtcConnected(){this._eventEmitter.dispatchEvent(new oa)}_onWebRtcFailed(){this._eventEmitter.dispatchEvent(new aa)}_onVideoInitialized(){this._eventEmitter.dispatchEvent(new ha),this._videoStartTime=Date.now()}_onLatencyTestResult(A){this._eventEmitter.dispatchEvent(new Ua({latencyTimings:A}))}_onVideoStats(A){this._videoStartTime&&this._videoStartTime!==void 0||(this._videoStartTime=Date.now()),A.handleSessionStatistics(this._videoStartTime,this._inputController,this._webRtcController.videoAvgQp),this._eventEmitter.dispatchEvent(new Fa({aggregatedStats:A}))}_onVideoEncoderAvgQP(A){this._eventEmitter.dispatchEvent(new ra({avgQP:A}))}_onInitialSettings(A){var e;this._eventEmitter.dispatchEvent(new Ea({settings:A})),A.PixelStreamingSettings&&(this.allowConsoleCommands=(e=A.PixelStreamingSettings.AllowPixelStreamingCommands)!==null&&e!==void 0&&e,this.allowConsoleCommands===!1&&u.Info(u.GetStackTrace(),"-AllowPixelStreamingCommands=false, sending arbitrary console commands from browser to UE is disabled."));const t=this.config.useUrlParams,n=new URLSearchParams(window.location.search);A.EncoderSettings&&(this.config.setNumericSetting(D.MinQP,t&&n.has(D.MinQP)?Number.parseInt(n.get(D.MinQP)):A.EncoderSettings.MinQP),this.config.setNumericSetting(D.MaxQP,t&&n.has(D.MaxQP)?Number.parseInt(n.get(D.MaxQP)):A.EncoderSettings.MaxQP)),A.WebRTCSettings&&(this.config.setNumericSetting(D.WebRTCMinBitrate,t&&n.has(D.WebRTCMinBitrate)?Number.parseInt(n.get(D.WebRTCMinBitrate)):A.WebRTCSettings.MinBitrate/1e3),this.config.setNumericSetting(D.WebRTCMaxBitrate,t&&n.has(D.WebRTCMaxBitrate)?Number.parseInt(n.get(D.WebRTCMaxBitrate)):A.WebRTCSettings.MaxBitrate/1e3),this.config.setNumericSetting(D.WebRTCFPS,t&&n.has(D.WebRTCFPS)?Number.parseInt(n.get(D.WebRTCFPS)):A.WebRTCSettings.FPS))}_onQualityControlOwnership(A){this.config.setFlagEnabled(U.IsQualityController,A)}_onPlayerCount(A){this._eventEmitter.dispatchEvent(new Sa({count:A}))}requestLatencyTest(){return!!this._webRtcController.videoPlayer.isVideoReady()&&(this._webRtcController.sendLatencyTest(),!0)}requestShowFps(){return!!this._webRtcController.videoPlayer.isVideoReady()&&(this._webRtcController.sendShowFps(),!0)}requestIframe(){return!!this._webRtcController.videoPlayer.isVideoReady()&&(this._webRtcController.sendIframeRequest(),!0)}emitUIInteraction(A){return!!this._webRtcController.videoPlayer.isVideoReady()&&(this._webRtcController.emitUIInteraction(A),!0)}emitCommand(A){return!(!this._webRtcController.videoPlayer.isVideoReady()||!this.allowConsoleCommands&&"ConsoleCommand"in A||(this._webRtcController.emitCommand(A),0))}emitConsoleCommand(A){return!(!this.allowConsoleCommands||!this._webRtcController.videoPlayer.isVideoReady()||(this._webRtcController.emitConsoleCommand(A),0))}addResponseEventListener(A,e){this._webRtcController.responseController.addResponseEventListener(A,e)}removeResponseEventListener(A){this._webRtcController.responseController.removeResponseEventListener(A)}dispatchEvent(A){return this._eventEmitter.dispatchEvent(A)}addEventListener(A,e){this._eventEmitter.addEventListener(A,e)}removeEventListener(A,e){this._eventEmitter.removeEventListener(A,e)}toggleXR(){this.webXrController.xrClicked()}setSignallingUrlBuilder(A){this._webRtcController.signallingUrlBuilder=A}get webSocketController(){return this._webRtcController.webSocketController}get webXrController(){return this._webXrController}}H.Dz,H.g$,H.Lt,H.Q9,H.qf,H.hV,H.z$,H.J0;var Ya=H.De;H.$C,H.al,H._W,H.tz,H.Nu,H.zg,H.vp;var pe=H.vU;H.wF,H.rv,H.Nh,H.ss,H.qW,H.QL,H.cf,H.eM;var $a=H.Yd;H.iM,H.qy,H.ce;var Za=H.sK;H.Ok,H.q5;var qa=H.g;H.xl,H.I,H.bx,H.dD,H.Ib,H.Az,H.Iw,H.qY,H.db,H.mR,H.Tn,H.rV,H.gh,H.Mi,H.j,H.YB,H.i5;var jd=H.x_;H.Am,H.eR,H.r8,H.u3,H.vd,H.iV,H.jZ,H.SW,H.ZH,H.Ni,H.lh,H.bq,H.$f,H.eu,H.Ax,H.Mc;const Au={Response:1},Ur={UIInteraction:50,MouseWheel:75};class eu extends w.HasOwner{constructor(e,t){super(e);C(this,"_processResponseFn",e=>this.esUeViewer.processResponse(e));C(this,"_inner");this._uri=t,this._inner=new WebSocket(this._uri),this.d(()=>{this._inner.close()}),this._innerInit()}get esUeViewer(){return this.owner}get uri(){return this._uri}get inner(){return this._inner}_innerInit(){this.inner.onmessage=e=>{if(this.isDestroyed())return;let t=new FileReader;t.onload=n=>{if(this.isDestroyed())return;let s=n.target.result,i=new Uint32Array(s),o=0;if(i[0]===Au.Response){o+=4;let a=i[o/4];o+=4;for(let l=0;l<a;l++){let c=i[o/4];o+=4;let h=new TextDecoder("utf-8").decode(s.slice(o,o+c));o+=c,this._processResponseFn(h)}}},t.readAsArrayBuffer(e.data)},this.inner.onopen=()=>{this.isDestroyed()||(console.warn("earthsdk message websocket server connected:",this.uri),console.log("%c[EarthSDK websocket open]","background: #a6ec99; color: black","open"),this.owner.dispatchEvent(new CustomEvent("esmsgwsopen",{detail:"websocket open"})))},this._inner.onclose=e=>{this.isDestroyed()||(console.log("%c[EarthSDK websocket close ]","background: red; color: black","error"),this.owner.dispatchEvent(new CustomEvent("error",{detail:"websocket close"})))},this._inner.onerror=e=>{this.isDestroyed()||(console.log("%c[EarthSDK websocket error ]","background: red; color: black","error"),this.owner.dispatchEvent(new CustomEvent("error",{detail:"websocket error"})))}}sendInputData(e){const t=this.inner;if(t.readyState!==WebSocket.OPEN)return;const s=new Uint8Array(e)[0];if(s>=Ur.UIInteraction&&s<=Ur.MouseWheel){const i=new ArrayBuffer(e.byteLength+4);return new DataView(i).setUint32(0,e.byteLength,!0),new Uint8Array(i,4).set(new Uint8Array(e)),t.send(new DataView(i)),!0}else return!1}emitDescriptorWithString(e,t){let n=new TextEncoder().encode(t),s=new DataView(new ArrayBuffer(3+n.length)),i=0;s.setUint8(i,e),i++,s.setUint16(i,n.length,!0),i+=2;for(let o=0;o<n.length;o++)s.setUint8(i,n[o]),i+=1;try{this.sendInputData(s.buffer)}catch(o){console.error(`data.buffer.size: ${s.buffer.byteLength} 独立通道 sendInputData error: ${o}`,o)}}destroyImpl(){this._inner&&this._inner.close()}}window.g_emitDescriptor_maxBytes=3e4;let tu=-1;$a.SetLoggerVerbosity(1);class ru extends w.Destroyable{constructor(e,t){super();C(this,"_eventTarget",new EventTarget);C(this,"debug",!1);C(this,"uiInteractionCallbacks",new Map);C(this,"_pixelStream");C(this,"_esMsgWsWrapper");this._domOrDomId=e,this._options=t;const n=typeof this._domOrDomId=="string"?document.getElementById(this._domOrDomId):this._domOrDomId;if(!n)throw new Error(`ESUEViewer container${this._domOrDomId} error!`);console.log(`PSUEViewer init _options ${this._options}`);const{url:s,esmsgWsUri:i}=this._options;this._pixelStream=this._initPixelStream(n,s),this.d(()=>{this._pixelStream.disconnect()}),this._handerPixelStreamEvent(),this._esMsgWsWrapper=this._initEsMsgWsWrapper(i);const o=this;if(o.esMsgWsWrapper){const a=o.webRtcController.sendMessageController.dataChannelSender.sendData;o.webRtcController.sendMessageController.dataChannelSender.constructor.prototype.sendData=function(l){o.esMsgWsWrapper?o.esMsgWsWrapper.sendInputData(l):a.call(this,l)}}}get eventTarget(){return this._eventTarget}addEventListener(e,t,n){return this.eventTarget.addEventListener(e,t,n)}removeEventListener(e,t,n){return this.eventTarget.removeEventListener(e,t,n)}dispatchEvent(e){return this.eventTarget.dispatchEvent(e)}_initPixelStream(e,t){const n=new Ya({initialSettings:{AutoPlayVideo:!0,AutoConnect:!0,StartVideoMuted:!0,SuppressBrowserKeys:!1,[jd.SignallingServerUrl]:t}});return n.setFlagEnabled(pe.BrowserSendOffer,!1),n.setFlagEnabled(pe.HoveringMouseMode,!0),n.setFlagEnabled(pe.MatchViewportResolution,!0),n.setNumericSetting(Za.MaxReconnectAttempts,0),new qa(n,{videoElementParent:e})}get pixelStream(){return this._pixelStream}_initEsMsgWsWrapper(e){return e?this.dv(new eu(this,e)):void 0}get esMsgWsWrapper(){return this._esMsgWsWrapper}get esWebSocketReady(){var e;return((e=this.esMsgWsWrapper)==null?void 0:e.inner.readyState)===1}_handerPixelStreamEvent(){this.pixelStream.addEventListener("videoInitialized",()=>{console.log("%c[EarthSDK webrtc videoInitialized]","background: #a6ec99; color: black","videoInitialized"),this.dispatchEvent(new CustomEvent("videoinited",{detail:"videoinited"}))}),this.pixelStream.addEventListener("webRtcFailed",()=>{this.isDestroyed()||(console.log("%c[EarthSDK webRtc webRtcFailed]","background: red; color: black","webRtcFailed"),this.dispatchEvent(new CustomEvent("error",{detail:"webRtcFailed"})),this.pixelStream.disconnect())}),this.pixelStream.addEventListener("webRtcDisconnected",()=>{this.isDestroyed()||(console.log("%c[EarthSDK webRtc webRtcDisconnected]","background: red; color: black","webRtcDisconnected"),this.dispatchEvent(new CustomEvent("error",{detail:"webRtcDisconnected"})),this.pixelStream.disconnect())}),this.pixelStream.addEventListener("webRtcConnected",()=>{this.isDestroyed()||(console.log("%c[EarthSDK webrtc webRtcConnected]","background: #a6ec99; color: black","webRtcConnected"),this.dispatchEvent(new CustomEvent("webRtcConnected",{detail:"webRtcConnected"})))}),this.pixelStream.addResponseEventListener("esueviewer",e=>{this.processResponse(e)})}resolveCallback(e){let t={};try{t=JSON.parse(e)}catch{return!1}let n=t.callid;if(typeof n!="string"||!this.uiInteractionCallbacks.has(n))return!1;let s=this.uiInteractionCallbacks.get(n);return typeof s!="function"?!1:(s(t),this.uiInteractionCallbacks.delete(n),!0)}processResponse(e){if(this.debug??!1)try{const t=JSON.parse(e);if(t.ers=t.ers&&t.ers.filter(n=>n.et!=="mouseMoveEvent"),!(t.ers&&t.ers.length>0||t.frs&&t.frs.length>0))return;console.group("%cUE => JS"," background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(t,void 0,"")}`," border:1px dashed #006EFF;border-radius:5px;padding:10px;line-height:25px;color:#006EFF;"),console.groupEnd()}catch(t){console.error(`processResponse(${e}) error: ${t}`,t)}this.resolveCallback(e)||this.dispatchEvent(new CustomEvent("ueevent",{detail:e}))}emitUIInteraction(e,t){typeof t=="function"&&(e.callid=w.createGuid(),this.uiInteractionCallbacks.set(e.callid,t)),this.pixelStream.emitUIInteraction(e)}get webRtcController(){return this.pixelStream._webRtcController}emitUIInteractionForBigData(e,t){typeof t=="function"&&(e.callid=w.createGuid(),this.uiInteractionCallbacks.set(e.callid,t));const n=JSON.stringify(e),s=window.g_emitDescriptor_maxBytes,i=n.length,o=++tu;if(this.esMsgWsWrapper){if(i<s){this.esMsgWsWrapper.emitDescriptorWithString(Ur.UIInteraction,`${o}-0/1-`+n);return}const a=Math.ceil(i/s)|0;[...new Array(a).keys()].map(c=>n.slice(c*s,(c+1)*s)).forEach((c,h)=>{this.esMsgWsWrapper&&this.esMsgWsWrapper.emitDescriptorWithString(Ur.UIInteraction,`${o}-${h}/${a}-`+c)})}}emitCommand(e){this.pixelStream.emitCommand(e)}getVideoSize(){const e=this.webRtcController.videoPlayer.getVideoElement();return{width:e.videoWidth,height:e.videoHeight}}resizeUEVideo(e,t){let n={Resolution:{Width:e,Height:t}};console.log(`resizeUEVideo emitCommand ${e} ${t} begin`),this.emitCommand(n)}}class nu extends w.Destroyable{constructor(e,t,n){super();C(this,"_instance");C(this,"_event",this.dv(new w.Event));this._container=e,this._wsuri=t,this._esmsgWsUri=n,this._instance=this.dv(new ru(this._container,{url:this._wsuri,esmsgWsUri:this._esmsgWsUri})),this.instanceInit()}get webSocketReady(){return this._instance.esWebSocketReady}get event(){return this._event}get debug(){return this._instance.debug}set debug(e){this._instance.debug=e}instanceInit(){if("addEventListener"in this._instance){["esmsgwsopen","error","videoinited","ueevent","webRtcConnected"].forEach(t=>{const n=s=>{this._event.emit(t,s.detail)};this._instance.addEventListener(t,n),this.dispose(()=>this._instance.removeEventListener(t,n))});return}this.dispose(this._instance.errorEvent.disposableOn(e=>{this._event.emit("error",e.detail)})),this.dispose(this._instance.webRtcConnectedEvent.disposableOn(e=>{this._event.emit("webRtcConnected",e.detail)})),this.dispose(this._instance.videoinitedEvent.disposableOn(e=>{this._event.emit("videoinited",e.detail)})),this.dispose(this._instance.ueevent.disposableOn(e=>{this._event.emit("ueevent",e.detail)}))}emitUIInteractionForBigData(e,t){return new Promise((n,s)=>{const i=(...o)=>{n(o),t&&t(...o)};try{this._instance.emitUIInteractionForBigData(e,i)}catch(o){console.warn(`emitUIInteraction发生错误:${o}`),s(o)}})}getVideoSize(){return this._instance.getVideoSize()}resize(e,t){this._instance.resizeUEVideo(e,t)}}class su extends Re{constructor(e,t,n,s){super();C(this,"_esueViewerWrapper");C(this,"_ueFuncResultWithIdsEvent",this.dv(new w.Event));C(this,"_ueFuncWithIdAndResultCallbacks",[]);C(this,"_waitingUeFuncIdAndResultCallbacks",new Map);C(this,"_waitingUeCalls",new Set);C(this,"_ueEvent",this.dv(new w.Event));C(this,"_errorEvent",this.dv(new w.Event));C(this,"_readyEvent",this.dv(new w.Event));C(this,"_esmsgwsopen",this.dv(w.react(!1)));C(this,"_videoinited",this.dv(w.react(!1)));C(this,"_webRtcConnected",this.dv(w.react(!1)));this._ueViewer=s,console.log("CSTMPSViewer init ! 以官方像素流 + 独立通信的模式启动!");const i=this._ueViewer;this._esueViewerWrapper=this.dv(new nu(e,t,n));const o=this._esueViewerWrapper;{const B=()=>o.debug=i.debug??!1;B(),this.d(i.debugChanged.don(B))}let a=!1;{const B=()=>{if(a)return;const g=o.webSocketReady;if(this.videoinited&&this.webRtcConnected&&g){console.log("%c[EarthSDK: esmsgWebSocket && videoinited && webRtcConnected]","background: #a6ec99; color: black");const f={eventType:"init",params:{}};o.emitUIInteractionForBigData(f),this._readyEvent.emit(),a=!0}};this.d(this.videoinitedChanged.don(()=>{B()})),this.d(this.webRtcConnectedChanged.don(()=>{B()})),this.d(this.esmsgwsopenChanged.don(()=>{B()}))}this.d(o.event.don((B,g)=>{if(B==="error")this._errorEvent.emit(g);else if(B==="ueevent"){const f=JSON.parse(g);if(f.t==="cr"){const m=f;if(m.frs&&this._ueFuncResultWithIdsEvent.emit(m.frs),m.ers)for(let F of m.ers)this._ueEvent.emit(F)}}else B==="webRtcConnected"?this.webRtcConnected=!0:B==="videoinited"?this.videoinited=!0:B==="esmsgwsopen"&&(this.esmsgwsopen=!0)}));{const B=this.dv(w.createAnimateFrame());let g,f;B.start(()=>{if(g!==e.offsetWidth||f!==e.offsetHeight){if(g=e.offsetWidth,f=e.offsetHeight,g===void 0||f===void 0||!Number.isFinite(g)||!Number.isFinite(f)||g<0||f<0){console.warn(`lastWidth === undefined || lastHeight === undefined || !Number.isFinite(lastWidth) || !Number.isFinite(lastHeight) || lastWidth < 0 || lastHeight < 0 ${g} ${f}`);return}o.resize(g,f),console.log(`resize: ${g} ${f}`)}})}this.d(this._ueFuncResultWithIdsEvent.don(B=>{for(const g of B){const f=this._waitingUeFuncIdAndResultCallbacks.get(g.fid);f&&(this._waitingUeFuncIdAndResultCallbacks.delete(g.fid),f.resultCallback(g.r))}}));let l=0;const c=B=>{const g={n:l++,tt:Date.now(),t:"c",fs:B};this._waitingUeCalls.add(g),i.debug&&(console.group("%cxe2 => ue"," background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(g,void 0,"")}`," border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"),console.groupEnd()),this._esueViewerWrapper.emitUIInteractionForBigData(g,()=>{this._waitingUeCalls.delete(g)})},h=()=>{if(!a||this._ueFuncWithIdAndResultCallbacks.length===0)return;const B=this._ueFuncWithIdAndResultCallbacks.map(([g])=>g);for(const[g,f]of this._ueFuncWithIdAndResultCallbacks)this._waitingUeFuncIdAndResultCallbacks.set(g.fid,f);this._ueFuncWithIdAndResultCallbacks.length=0;{const g=window.g_emitDescriptor_maxBytes,f=B.map(L=>({f:L,s:JSON.stringify(L).length}));let m=f.length,F=0,Q=0,y=[];do{do{const{f:L,s:T}=f[F];if(y.push(L),++F,Q+T>g||y.length>=20)break}while(F<m);y.length>0&&(i.debug&&console.log(`传送${y.length}条消息...`),c([...y]),y.length=0,Q=0)}while(F<m)}};this.dv(w.createInterval()).start(h,50),this.d(()=>console.log("UeCloudViewer正在销毁..."))}get esueViewerWrapper(){return this._esueViewerWrapper}get errorEvent(){return this._errorEvent}get readyEvent(){return this._readyEvent}get esmsgwsopen(){return this._esmsgwsopen.value}set esmsgwsopen(e){this._esmsgwsopen.value=e}get esmsgwsopenChanged(){return this._esmsgwsopen.changed}get videoinited(){return this._videoinited.value}set videoinited(e){this._videoinited.value=e}get videoinitedChanged(){return this._videoinited.changed}get webRtcConnected(){return this._webRtcConnected.value}set webRtcConnected(e){this._webRtcConnected.value=e}get webRtcConnectedChanged(){return this._webRtcConnected.changed}resize(e,t){this.esueViewerWrapper.resize(e,t)}callUeFunc(e){return new Promise(t=>{const s={fid:w.createGuid(),...e};this._ueFuncWithIdAndResultCallbacks.push([s,{timeStamp:Date.now(),ueFunc:e,resultCallback:t}])})}disposableOnUeEvent(e,t){(this._ueViewer.debug??!1)&&console.log(`disposableOnUeEvent from UeCloudViewer, type:${e}`);const n=w.createGuid();this.callUeFunc({f:"addEventListener",p:{et:e,eid:n}});const s=()=>{this.callUeFunc({f:"removeEventListener",p:{eid:n}})},i=this._ueEvent.don(o=>{o.et===e&&o.eid===n&&t(o)});return()=>{i(),s()}}}function iu(r){let A="";const e=new Uint8Array(r),t=e.length;for(let n=0;n<t;n++)A+=String.fromCharCode(e[n]);return btoa(A)}const ou=r=>{const A={type:"input",inputdata:iu(r)};return JSON.stringify(A)};function au(r){return typeof r=="string"?document.getElementById(r):r}window.g_emitDescriptor_maxBytes=3e4,console.log("全局可设置消息体最大字节, window.g_emitDescriptor_maxBytes 默认 30000 。");let lu=-1;$a.SetLoggerVerbosity(1);class cu extends w.Destroyable{constructor(e,t){super();C(this,"debug",!1);C(this,"_error",this.dv(new w.Event));C(this,"_connected",this.dv(new w.Event));C(this,"_ueevent",this.dv(new w.Event));C(this,"_pixelStream");C(this,"uiInteractionCallbacks",new Map);this._container=e,this._option=t;const n=new Ya({initialSettings:{HoveringMouse:!0,AutoPlayVideo:!0,AutoConnect:!0,StartVideoMuted:!1,SuppressBrowserKeys:!1,ss:this._option.ws},useUrlParams:!0});n.setFlagEnabled(pe.BrowserSendOffer,!1),n.setFlagEnabled(pe.HoveringMouseMode,!0),n.setFlagEnabled(pe.MatchViewportResolution,!0),n.setNumericSetting(Za.MaxReconnectAttempts,0),this._pixelStream=new qa(n,{videoElementParent:this.container}),this.d(()=>{this._pixelStream.disconnect()});{const s=this.pixelStream.webSocketController.webSocket,i=this._pixelStream._webRtcController.sendMessageController.dataChannelSender.sendData;this._pixelStream._webRtcController.sendMessageController.dataChannelSender.constructor.prototype.sendData=function(o){s?s.send(ou(o)):i.call(this,o)}}{const s=i=>{const o=this._pixelStream._webRtcController.mouseController;setTimeout(()=>{const a=o.coordinateConverter.normalizeAndQuantizeUnsigned(i.offsetX,i.offsetY),c=o.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp");c&&c([i.button,a.x,a.y]),i.preventDefault()})};this.container.addEventListener("dblclick",s),this.d(()=>{this.container.removeEventListener("dblclick",s)})}["error","close","open"].forEach(i=>{const o=()=>{this.isDestroyed()||(i==="open"?this.connected.emit("webSocketOpen"):i==="close"?this.error.emit("webSocketClose"):i==="error"&&this.error.emit("webSocketError"))};this.pixelStream.webSocketController.webSocket.addEventListener(i,o),this.d(()=>{this.pixelStream.webSocketController.webSocket.removeEventListener(i,o)})}),["videoInitialized","webRtcConnected","webRtcDisconnected","webRtcFailed"].forEach(i=>{const o=()=>{this.isDestroyed()||(i==="webRtcConnected"||i==="videoInitialized"?this.connected.emit(i):(i==="webRtcDisconnected"||i==="webRtcFailed")&&(this.error.emit(i),this.pixelStream.disconnect()))};this.pixelStream.addEventListener(i,o),this.d(()=>{this.pixelStream.removeEventListener(i,o)})}),this.pixelStream.addResponseEventListener("handle_responses",s=>{this.processResponse(s)}),this.d(()=>{this.pixelStream.removeResponseEventListener("handle_responses")})}get error(){return this._error}get connected(){return this._connected}get ueevent(){return this._ueevent}get container(){return au(this._container)}get pixelStream(){return this._pixelStream}get webSocketReady(){return this.pixelStream.webSocketController.webSocket.readyState===1}processResponse(e){if(this.debug??!1)try{const t=JSON.parse(e);console.group("%cUE => JS"," background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(t,void 0,"")}`," border:1px dashed #006EFF;border-radius:5px;padding:10px;line-height:25px;color:#006EFF;"),console.groupEnd()}catch(t){console.error(`processResponse(${e}) error: ${t}`,t)}this.resolveCallback(e)||this.ueevent.emit(e)}emitUIInteractionForBigData(e,t){typeof t=="function"&&(e.callid=w.createGuid(),this.uiInteractionCallbacks.set(e.callid,t));const n=JSON.stringify(e),s=window.g_emitDescriptor_maxBytes??3e4,i=n.length,o=++lu;if(i<s){const c={type:"earthsdk",time:new Date().getTime(),params:`${o}-0/1-`+n};this.sendData(JSON.stringify(c));return}const a=Math.ceil(i/s)|0;[...new Array(a).keys()].map(c=>n.slice(c*s,(c+1)*s)).forEach((c,h)=>{const d={type:"earthsdk",time:new Date().getTime(),params:`${o}-${h}/${a}-`+c};this.sendData(JSON.stringify(d))})}sendData(e){this.pixelStream.webSocketController.webSocket.send(e)}resolveCallback(e){let t={};try{t=JSON.parse(e)}catch{return!1}let n=t.callid;if(typeof n!="string"||!this.uiInteractionCallbacks.has(n))return!1;let s=this.uiInteractionCallbacks.get(n);return typeof s!="function"?!1:(s(t),this.uiInteractionCallbacks.delete(n),!0)}getVideoSize(){const e=this._pixelStream._webRtcController.videoPlayer.getVideoElement();return{width:e.videoWidth,height:e.videoHeight}}emitCommand(e){this.pixelStream.emitCommand(e)}emitUIInteraction(){console.log("emitUIInteraction 像素流初始化"),this.pixelStream.emitUIInteraction("像素流初始化")}resizeUEVideo(e,t){const n={Resolution:{Width:e,Height:t}};console.log(`resizeUEVideo emitCommand ${e} ${t} begin`),this.emitCommand(n)}}class du extends w.Destroyable{constructor(e,t,n){super();C(this,"_instance");C(this,"_event",this.dv(new w.Event));this._container=e,this._wsuri=t,this._esmsgWsUri=n,this._instance=this.dv(new cu(this._container,{ws:this._wsuri})),this.d(this._instance.connected.don(s=>{this._event.emit(s,s),console.log(`%c[EarthSDK] ${s}`,"background: #a6ec99; color: black")})),this.d(this._instance.error.don(s=>{this._event.emit("errorEvent",s),console.log(`%c[EarthSDK] ${s}`,"background: red; color: black")})),this.d(this._instance.ueevent.don(s=>{this._event.emit("ueevent",s)}))}get instance(){return this._instance}get event(){return this._event}get debug(){return this._instance.debug}set debug(e){this._instance.debug=e}emitUIInteractionForBigData(e,t){return new Promise((n,s)=>{const i=(...o)=>{n(o),t&&t(...o)};try{this._instance.emitUIInteractionForBigData(e,i)}catch(o){console.warn(`emitUIInteraction发生错误:${o}`),s(o)}})}getVideoSize(){return this._instance.getVideoSize()}resize(e,t){this._instance.resizeUEVideo(e,t)}}class uu extends Re{constructor(e,t,n,s){super();C(this,"_videoInitialized",this.dv(w.react(!1)));C(this,"_webRtcConnected",this.dv(w.react(!1)));C(this,"_webSocketOpen",this.dv(w.react(!1)));C(this,"_ue5ViewerWrapper");C(this,"_ueFuncResultWithIdsEvent",this.dv(new w.Event));C(this,"_ueFuncWithIdAndResultCallbacks",[]);C(this,"_waitingUeFuncIdAndResultCallbacks",new Map);C(this,"_waitingUeCalls",new Set);C(this,"_ueEvent",this.dv(new w.Event));C(this,"_errorEvent",this.dv(new w.Event));C(this,"_readyEvent",this.dv(new w.Event));this._ueViewer=s,console.log("INNPSViewer init ! 以内置信令服务器模式启动!");const i=this._ueViewer,o=this.dv(new du(e,t,n));this._ue5ViewerWrapper=o;{const d=()=>o.debug=i.debug??!1;d(),this.d(i.debugChanged.don(d))}{let d=!1;const B=this.dv(w.createNextAnimateFrameEvent(this._videoInitialized.changed,this._webRtcConnected.changed,this._webSocketOpen.changed));this.d(B.don(()=>{if(d)return;const g=this._ue5ViewerWrapper.instance.webSocketReady;if(this.videoInitialized&&this.webRtcConnected&&g){this._ue5ViewerWrapper.instance.emitUIInteraction(),this._readyEvent.emit(),d=!0,console.log("%c[EarthSDK videoInitialized && webRtcConnected && webSocketReady]","background: #a6ec99; color: black");const f={eventType:"init",params:{}};this._ue5ViewerWrapper.emitUIInteractionForBigData(f)}else console.warn("webSocketReady",g),d=!1}))}this.d(o.event.don((d,B)=>{if(d==="errorEvent")this._errorEvent.emit(B);else if(d==="videoInitialized")this._videoInitialized.value=!0;else if(d==="webRtcConnected")this._webRtcConnected.value=!0;else if(d==="webSocketOpen")this._webSocketOpen.value=!0;else if(d==="ueevent"){const g=JSON.parse(B);if(g.t==="cr"){const f=g;if(f.frs&&this._ueFuncResultWithIdsEvent.emit(f.frs),f.ers)for(let m of f.ers)this._ueEvent.emit(m)}}}));{const d=this.dv(w.createAnimateFrame());let B,g,f;d.start(()=>{if(B!==e.offsetWidth||g!==e.offsetHeight||f!==i.resolutionScale){if(B=e.offsetWidth,g=e.offsetHeight,B===void 0||g===void 0||!Number.isFinite(B)||!Number.isFinite(g)||B<0||g<0){console.warn(`lastWidth === undefined || lastHeight === undefined || !Number.isFinite(lastWidth) || !Number.isFinite(lastHeight) || lastWidth < 0 || lastHeight < 0 ${B} ${g}`);return}f=i.resolutionScale,o.resize(B/f,g/f)}})}this.d(this._ueFuncResultWithIdsEvent.don(d=>{for(const B of d){const g=this._waitingUeFuncIdAndResultCallbacks.get(B.fid);g&&(this._waitingUeFuncIdAndResultCallbacks.delete(B.fid),g.resultCallback(B.r))}}));let a=0;const l=d=>{const B={n:a++,tt:Date.now(),t:"c",fs:d};this._waitingUeCalls.add(B),i.debug&&(console.group("%cxe2 => ue"," background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(B,void 0,"")}`," border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"),console.groupEnd()),this._ue5ViewerWrapper.emitUIInteractionForBigData(B,()=>{this._waitingUeCalls.delete(B)})},c=()=>{if(!this._ue5ViewerWrapper.instance.webSocketReady||this._ueFuncWithIdAndResultCallbacks.length===0)return;const B=this._ueFuncWithIdAndResultCallbacks.map(([g])=>g);for(const[g,f]of this._ueFuncWithIdAndResultCallbacks)this._waitingUeFuncIdAndResultCallbacks.set(g.fid,f);this._ueFuncWithIdAndResultCallbacks.length=0;{const g=window.g_emitDescriptor_maxBytes,f=B.map(L=>({f:L,s:JSON.stringify(L).length}));let m=f.length,F=0,Q=0,y=[];do{do{const{f:L,s:T}=f[F];if(y.push(L),++F,Q+T>g||y.length>=20)break}while(F<m);y.length>0&&(i.debug&&console.log(`传送${y.length}条消息...`),l([...y]),y.length=0,Q=0)}while(F<m)}};this.dv(w.createInterval()).start(c,50),this.d(()=>console.log("UeCloudViewer正在销毁..."))}get videoInitialized(){return this._videoInitialized.value}get webRtcConnected(){return this._webRtcConnected.value}get webSocketOpen(){return this._webSocketOpen.value}get ue5ViewerWrapper(){return this._ue5ViewerWrapper}get errorEvent(){return this._errorEvent}get readyEvent(){return this._readyEvent}resize(e,t){this.ue5ViewerWrapper.resize(e,t)}callUeFunc(e){return new Promise(t=>{const s={fid:w.createGuid(),...e};this._ueFuncWithIdAndResultCallbacks.push([s,{timeStamp:Date.now(),ueFunc:e,resultCallback:t}])})}disposableOnUeEvent(e,t){const n=w.createGuid();this.callUeFunc({f:"addEventListener",p:{et:e,eid:n}});const s=()=>{this.callUeFunc({f:"removeEventListener",p:{eid:n}})},i=this._ueEvent.don(o=>{o.et===e&&o.eid===n&&t(o)});return()=>{i(),s()}}}class hu extends w.Destroyable{constructor(e,t,n,s){super();C(this,"_onRuntimeInitialized",this.dv(new w.Event));C(this,"_vIframe",null);this._ueViewer=s;const i=this._ueViewer;{const o=document.createElement("iframe");this._vIframe=o,o.style.cssText="width: 100%; height: 100%; margin: 0; padding: 0; border: none; outline: none;",e.appendChild(o),this.d(()=>{o&&e.removeChild(o)});const a=p.ESSceneObject.getStrFromEnv(n+`/web/${t}.html`);o.src=a,o.onload=()=>{const l=o.contentWindow;if(!l){console.error("iframeWindow is null");return}console.log("iwindow.Module",l.Module),l.Module.onRuntimeInitialized=()=>{this._onRuntimeInitialized.emit(),i.setStatus("Created"),i.setStatusLog("创建成功"),l.Module.UE4_resizeCanvas(),l.console.log("创建成功__________________________________________")}}}}get onRuntimeInitialized(){return this._onRuntimeInitialized}get vIframe(){return this._vIframe}}const ja=typeof TextDecoder<"u"?new TextDecoder:void 0,gu=(r,A=0,e=NaN)=>{const t=A+e;let n=A;for(;r[n]&&!(n>=t);)++n;if(n-A>16&&r.buffer&&ja)return ja.decode(r.subarray(A,n));let s="";for(;A<n;){var i=r[A++];if(!(i&128)){s+=String.fromCharCode(i);continue}var o=r[A++]&63;if((i&224)==192){s+=String.fromCharCode((i&31)<<6|o);continue}var a=r[A++]&63;if((i&240)==224?i=(i&15)<<12|o<<6|a:((i&248)!=240&&console.warn("Invalid UTF-8 leading byte encountered when deserializing a UTF-8 string in wasm memory to a JS string!"),i=(i&7)<<18|o<<12|a<<6|r[A++]&63),i<65536)s+=String.fromCharCode(i);else{var l=i-65536;s+=String.fromCharCode(55296|l>>10,56320|l&1023)}}return s};class Bu extends w.Destroyable{constructor(A,e,t){super();{const n=()=>{const a=Qn(e);e.setGlobalProperty(a)};n();const s=wr(),i=[];s.forEach(a=>{const l=e[a+"Changed"];i.push(l)});const o=this.dv(w.createNextAnimateFrameEvent(...i));this.d(o.don(n))}this.d(e.propChanged.don(n=>{if(n.objId==="")try{Object.keys(n.props).forEach(s=>{const i=n.props[s]===null?void 0:n.props[s];e[s]=i})}catch(s){console.error("ueViewer propChanged:"+s)}})),e.useCustomInteraction=!1,this.dv(new p.ViewerCustomInteraction(e,A)),this.dv(new w.ObjResettingWithEvent(e.statusUpdateIntervalChanged,n=>{if((e.statusUpdateInterval??.5)===0)return;const i=new w.Destroyable;return i.d(t.disposableOnUeEvent("statusUpdate",o=>{e.statusUpdateEvent.emit(o)})),i})),this.dv(new w.ObjResettingWithEvent(e.propChangedListeningChanged,()=>{if(!(e.propChangedListening??!0))return;const s=new w.Destroyable;return s.d(t.disposableOnUeEvent("propChanged",i=>{e.propChanged.emit(i)})),s})),this.dv(new w.ObjResettingWithEvent(e.objectEventListeningChanged,()=>{if(!(e.objectEventListening??!0))return;const s=new w.Destroyable;return s.d(t.disposableOnUeEvent("objectEvent",i=>{e.objectEvent.emit(i)})),s})),this.dv(new w.ObjResettingWithEvent(e.widgetEventListeningChanged,()=>{if(!(e.widgetEventListening??!0))return;const s=new w.Destroyable;return s.d(t.disposableOnUeEvent("widgetEvent",i=>{e.widgetEvent.emit(i)})),s})),this.dv(new w.ObjResettingWithEvent(e.speechRecognitionListeningChanged,()=>{if(!(e.speechRecognitionListening??!0))return;const s=new w.Destroyable;return s.d(t.disposableOnUeEvent("speechRecognition",i=>{e.speechRecognition.emit(i)})),s})),this.dv(new w.ObjResettingWithEvent(e.customMessageListeningChanged,()=>{if(!(e.customMessageListening??!0))return;const s=new w.Destroyable;return s.d(t.disposableOnUeEvent("customMessage",i=>{e.customMessage.emit(i)})),s})),this.dv(new w.ObjResettingWithEvent(e.editingEventListeningChanged,()=>{if(!(e.editingEventListening??!0))return;const s=new w.Destroyable;return s.d(t.disposableOnUeEvent("editingEvent",i=>{i.objectIDs=i.objectIDs.map(o=>o.split("_")[0]),e.editingEvent.emit(i)})),s}))}}let fu=-1;class wu extends Re{constructor(e,t,n="${earthsdk3-ue-h5-assets-script-dir}",s){super();C(this,"_ueFuncResultWithIdsEvent",this.dv(new w.Event));C(this,"_ueFuncWithIdAndResultCallbacks",[]);C(this,"_waitingUeFuncIdAndResultCallbacks",new Map);C(this,"_waitingUeCalls",new Map);C(this,"_ueEvent",this.dv(new w.Event));this._ueViewer=s;const i=this._ueViewer,o=this.dv(new hu(e,t,n,i));let a=!1,l=null;this.d(o.onRuntimeInitialized.don(()=>{var B;if(a=!0,(B=o==null?void 0:o.vIframe)!=null&&B.contentWindow){l=o.vIframe.contentWindow;const g=o.vIframe.contentWindow.document.getElementById("mainarea");g?this.dv(new Bu(g,i,this)):console.error("h5Container is null")}else{console.error("iframeWindow is null");return}l.UE_JSHTML5Communication?l.UE_JSHTML5Communication.UESendMessageToJS=g=>{try{const f=gu(l.HEAPU8,g),m=JSON.parse(f);if(i.debug&&(console.group("%cUE => JS"," background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(m,void 0,"")}`," border:1px dashed #006EFF;border-radius:5px;padding:10px;line-height:25px;color:#006EFF;"),console.groupEnd()),m.t==="cr"){const F=m;if(F.frs&&this._ueFuncResultWithIdsEvent.emit(F.frs),F.ers)for(let Q of F.ers)this._ueEvent.emit(Q)}m.callid&&this._waitingUeCalls.has(m.callid)&&(this._waitingUeCalls.delete(m.callid),console.log(`waitingUeCalls.delete:${m.callid} end`))}catch(f){console.error("UE_JSHTML5Communication.UESendMessageToJS error:",f)}}:console.error("UE_JSHTML5Communication UESendMessageToJS not found")})),this.dispose(this._ueFuncResultWithIdsEvent.disposableOn(B=>{for(const g of B){const f=this._waitingUeFuncIdAndResultCallbacks.get(g.fid);f&&(this._waitingUeFuncIdAndResultCallbacks.delete(g.fid),f(g.r))}}));let c=0;const h=()=>{if(!a||!l||!l.UE_JSHTML5Communication||!l.UE_JSHTML5Communication.JSSendMessageToUE||this._ueFuncWithIdAndResultCallbacks.length===0)return;const B=this._ueFuncWithIdAndResultCallbacks.map(([T])=>T),g={n:c++,tt:Date.now(),t:"c",fs:B,callid:w.createGuid()};for(const[T,E]of this._ueFuncWithIdAndResultCallbacks)this._waitingUeFuncIdAndResultCallbacks.set(T.fid,E);this._ueFuncWithIdAndResultCallbacks.length=0,this._waitingUeCalls.set(g.callid,g),i.debug&&(console.group("%cxe2 => ue"," background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(g,void 0,"")}`," border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"),console.groupEnd());const f=JSON.stringify(g),m=window.g_emitDescriptor_maxBytes??3e4,F=f.length,Q=++fu;if(F<m){const T=`${Q}-0/1-`+f;l.UE_JSHTML5Communication.JSSendMessageToUE(T);return}const y=Math.ceil(F/m)|0;[...new Array(y).keys()].map(T=>f.slice(T*m,(T+1)*m)).forEach((T,E)=>{const R=`${Q}-${E}/${y}-`+T;l.UE_JSHTML5Communication.JSSendMessageToUE(R)})};this.dv(w.createInterval()).start(h,50)}processResponse(e){if(this._ueViewer.debug??!1)try{const t=JSON.parse(e);console.group("%cUE => JS"," background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(t,void 0,"")}`," border:1px dashed #006EFF;border-radius:5px;padding:10px;line-height:25px;color:#006EFF;"),console.groupEnd()}catch(t){console.error(`processResponse(${e}) error: ${t}`,t)}}callUeFunc(e){return new Promise(t=>{const s={fid:w.createGuid(),...e};this._ueFuncWithIdAndResultCallbacks.push([s,t])})}disposableOnUeEvent(e,t){const n=w.createGuid();this.callUeFunc({f:"addEventListener",p:{et:e,eid:n}});const s=()=>{this.callUeFunc({f:"removeEventListener",p:{eid:n}})},i=this._ueEvent.disposableOn(o=>{o.et===e&&o.eid===n&&((this._ueViewer.debug??!1)&&console.log(`callback, type:${e} eid:${n} ueEvent:${JSON.stringify(o)}`),t(o))});return()=>{i(),s()}}}let pu=-1;class Cu extends Re{constructor(e,t){super();C(this,"_ueFuncResultWithIdsEvent",this.dv(new w.Event));C(this,"_ueFuncWithIdAndResultCallbacks",[]);C(this,"_waitingUeFuncIdAndResultCallbacks",new Map);C(this,"_waitingUeCalls",new Set);C(this,"_ueEvent",this.dv(new w.Event));this._ueViewer=t;const n=this._ueViewer;let s=!1;const i={eventType:"init",params:{}};window.ue.es.oncommand(JSON.stringify(i)),s=!0,window.calljs=(c,h)=>{if(n.debug&&console.log(`calljs eventName:${c} eventDetailStr:${h}`),c==="ueevent"||c==="commanFinish")try{const d=JSON.parse(h);if(d.t==="cr"){const B=d;if(B.frs&&this._ueFuncResultWithIdsEvent.emit(B.frs),B.ers)for(let g of B.ers)this._ueEvent.emit(g)}}catch(d){console.error(d)}},this.dispose(this._ueFuncResultWithIdsEvent.disposableOn(c=>{for(const h of c){const d=this._waitingUeFuncIdAndResultCallbacks.get(h.fid);d&&(this._waitingUeFuncIdAndResultCallbacks.delete(h.fid),d(h.r))}}));let o=0;const a=()=>{if(!s||this._ueFuncWithIdAndResultCallbacks.length===0)return;const c=this._ueFuncWithIdAndResultCallbacks.map(([B])=>B),h={n:o++,tt:Date.now(),t:"c",fs:c};for(const[B,g]of this._ueFuncWithIdAndResultCallbacks)this._waitingUeFuncIdAndResultCallbacks.set(B.fid,g);this._ueFuncWithIdAndResultCallbacks.length=0,this._waitingUeCalls.add(h),n.debug&&(console.group("%cxe2 => ue"," background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(h,void 0,"")}`," border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"),console.groupEnd());const d=++pu;window.ue.es.oncommand(`${d}-0/1-`+JSON.stringify(h)).then(()=>{this._waitingUeCalls.delete(h)})};this.dv(w.createInterval()).start(a,50)}callUeFunc(e){return new Promise(t=>{const s={fid:w.createGuid(),...e};this._ueFuncWithIdAndResultCallbacks.push([s,t])})}disposableOnUeEvent(e,t){const n=w.createGuid();this.callUeFunc({f:"addEventListener",p:{et:e,eid:n}});const s=()=>{this.callUeFunc({f:"removeEventListener",p:{eid:n}})},i=this._ueEvent.disposableOn(o=>{o.et===e&&o.eid===n&&((this._ueViewer.debug??!1)&&console.log(`callback, type:${e} eid:${n} ueEvent:${JSON.stringify(o)}`),t(o))});return()=>{i(),s()}}}class vu extends w.Destroyable{constructor(A,e){super();{const t=()=>{const o=Qn(A);A.setGlobalProperty(o)};t();const n=wr(),s=[];n.forEach(o=>{const a=A[o+"Changed"];s.push(a)});const i=this.dv(w.createNextAnimateFrameEvent(...s));this.d(i.don(t))}this.d(A.propChanged.don(t=>{if(t.objId==="")try{Object.keys(t.props).forEach(n=>{const s=t.props[n]===null?void 0:t.props[n];A[n]=s})}catch(n){console.error("ueViewer propChanged:"+n)}})),this.dv(new w.ObjResettingWithEvent(A.statusUpdateIntervalChanged,t=>{if((A.statusUpdateInterval??.5)===0)return;const s=new w.Destroyable;return s.d(e.disposableOnUeEvent("statusUpdate",i=>{A.statusUpdateEvent.emit(i)})),s})),this.dv(new w.ObjResettingWithEvent(A.propChangedListeningChanged,()=>{if(!(A.propChangedListening??!0))return;const n=new w.Destroyable;return n.d(e.disposableOnUeEvent("propChanged",s=>{A.propChanged.emit(s)})),n})),this.dv(new w.ObjResettingWithEvent(A.objectEventListeningChanged,()=>{if(!(A.objectEventListening??!0))return;const n=new w.Destroyable;return n.d(e.disposableOnUeEvent("objectEvent",s=>{A.objectEvent.emit(s)})),n})),this.dv(new w.ObjResettingWithEvent(A.widgetEventListeningChanged,()=>{if(!(A.widgetEventListening??!0))return;const n=new w.Destroyable;return n.d(e.disposableOnUeEvent("widgetEvent",s=>{A.widgetEvent.emit(s)})),n})),this.dv(new w.ObjResettingWithEvent(A.speechRecognitionListeningChanged,()=>{if(!(A.speechRecognitionListening??!0))return;const n=new w.Destroyable;return n.d(e.disposableOnUeEvent("speechRecognition",s=>{A.speechRecognition.emit(s)})),n})),this.dv(new w.ObjResettingWithEvent(A.customMessageListeningChanged,()=>{if(!(A.customMessageListening??!0))return;const n=new w.Destroyable;return n.d(e.disposableOnUeEvent("customMessage",s=>{A.customMessage.emit(s)})),n})),this.dv(new w.ObjResettingWithEvent(A.editingEventListeningChanged,()=>{if(!(A.editingEventListening??!0))return;const n=new w.Destroyable;return n.d(e.disposableOnUeEvent("editingEvent",s=>{s.objectIDs=s.objectIDs.map(i=>i.split("_")[0]),A.editingEvent.emit(s)})),n}))}}class mu extends w.Destroyable{constructor(A,e,t){super();{const s=()=>{const l=Qn(e);e.setGlobalProperty(l)};s();const i=wr(),o=[];i.forEach(l=>{const c=e[l+"Changed"];o.push(c)});const a=this.dv(w.createNextAnimateFrameEvent(...o));this.d(a.don(s))}this.d(e.propChanged.don(s=>{if(s.objId==="")try{Object.keys(s.props).forEach(i=>{const o=s.props[i]===null?void 0:s.props[i];e[i]=o})}catch(i){console.error("ueViewer propChanged:"+i)}}));const n=document.createElement("div");n.style.width="100%",n.style.height="100%",n.style.position="absolute",n.style.overflow="hidden",n.style.top="0",n.style.left="0",n.style.zIndex="0",n.style.backgroundColor="rgba(255,0,0,0)",n.setAttribute("masker","大屏顶层div,用于模拟鼠标事件和控制UE鼠标事件是否生效"),A.appendChild(n),this.d(()=>{n&&A&&A.removeChild(n)});{const s=(l,c)=>{window.ue.esinput.setinterceptevent(c),l.preventDefault()},i=l=>{s(l,!1)},o=l=>{s(l,!0)},a=l=>{s(l,!1)};n.addEventListener("mouseenter",i),n.addEventListener("mouseleave",o),n.addEventListener("mousemove",a),this.d(()=>{n.removeEventListener("mouseenter",i),n.removeEventListener("mouseleave",o),n.removeEventListener("mousemove",a)})}e.useCustomInteraction=!1,this.dv(new p.ViewerCustomInteraction(e,n)),this.dv(new w.ObjResettingWithEvent(e.statusUpdateIntervalChanged,s=>{if((e.statusUpdateInterval??.5)===0)return;const o=new w.Destroyable;return o.d(t.disposableOnUeEvent("statusUpdate",a=>{e.statusUpdateEvent.emit(a)})),o})),this.dv(new w.ObjResettingWithEvent(e.propChangedListeningChanged,()=>{if(!(e.propChangedListening??!0))return;const i=new w.Destroyable;return i.d(t.disposableOnUeEvent("propChanged",o=>{e.propChanged.emit(o)})),i})),this.dv(new w.ObjResettingWithEvent(e.objectEventListeningChanged,()=>{if(!(e.objectEventListening??!0))return;const i=new w.Destroyable;return i.d(t.disposableOnUeEvent("objectEvent",o=>{e.objectEvent.emit(o)})),i})),this.dv(new w.ObjResettingWithEvent(e.widgetEventListeningChanged,()=>{if(!(e.widgetEventListening??!0))return;const i=new w.Destroyable;return i.d(t.disposableOnUeEvent("widgetEvent",o=>{e.widgetEvent.emit(o)})),i})),this.dv(new w.ObjResettingWithEvent(e.speechRecognitionListeningChanged,()=>{if(!(e.speechRecognitionListening??!0))return;const i=new w.Destroyable;return i.d(t.disposableOnUeEvent("speechRecognition",o=>{e.speechRecognition.emit(o)})),i})),this.dv(new w.ObjResettingWithEvent(e.customMessageListeningChanged,()=>{if(!(e.customMessageListening??!0))return;const i=new w.Destroyable;return i.d(t.disposableOnUeEvent("customMessage",o=>{e.customMessage.emit(o)})),i})),this.dv(new w.ObjResettingWithEvent(e.editingEventListeningChanged,()=>{if(!(e.editingEventListening??!0))return;const i=new w.Destroyable;return i.d(t.disposableOnUeEvent("editingEvent",o=>{o.objectIDs=o.objectIDs.map(a=>a.split("_")[0]),e.editingEvent.emit(o)})),i}))}}class Fu extends w.Destroyable{constructor(e,t,n){super();C(this,"_reconnectEvent",this.dv(new w.Event));const s=(a,l)=>a.hasOwnProperty(l);let i=0,o;if(this.d(()=>{o&&clearTimeout(o)}),window.ue&&window.ue.es)if(window.ue.esinput){n.setStatus("Creating"),console.log("存在(window.ue && window.ue.es && window.ue.esinput 需要适配新版ESWebView 鼠标穿透), 开始创建UeFalseCloudViewer..."),n.setStatusLog("开始创建本地视口...");const a=this.dv(new Cu(e,n));this.d(()=>n.viewer=void 0),n.viewer=a,n.setStatus("Created"),n.setStatusLog("本地视口创建成功!"),this.dv(new mu(e,n,a))}else n.setStatus("Error"),n.setStatusLog("请升级 ESWebView !");else if(s(t.options,"ws")||s(t.options,"uri")&&s(t.options,"app")){n.setStatus("Creating"),n.setStatusLog("开始创建云渲染视口...");let a;this.d(()=>{n.setStatus("Raw"),n.setStatusLog(""),e&&a&&e.removeChild(a)&&(a=void 0)});const l=this.dv(w.createProcessingFromAsyncFunc(async c=>{n.viewer&&!n.viewer.isDestroyed()&&n.viewer.destroy(),n.viewer=void 0,a&&e.removeChild(a)&&(a=void 0),a=document.createElement("div"),a.setAttribute("earthsdk3-ue","earthsdk3-ue-videoContainer"),a.style.cssText="position:relative; height: 100%;width:100%;",e.appendChild(a);let h,d,B;if(s(t.options,"ws")){const{ws:F,esmsg:Q,uselnternalSignallingServer:y}=t.options;h=F,d=Q,B=y??!1}if(s(t.options,"uri")&&s(t.options,"app")){const{offsetWidth:F,offsetHeight:Q}=a;let{uri:y,app:L,token:T}=t.options;y.endsWith("/")||(y+="/");const E=T?`?essstoken=${T}`:"",R=`/${L}/${F??1920}/${Q??1080}`+E;console.log(`请求信令服务器: ${y}instance${R}`);const x=await c.promise(fetch(`${y}instance${R}`,{method:"GET"})),M=await c.promise(x.json());if(M&&M.status!=="ok"){n.setStatus("Error"),n.setStatusLog(`信令服务器请求失败 ${M.status}`),this._reconnectEvent.emit(void 0);return}else{console.log(`信令服务器请求成功! ${JSON.stringify(M,void 0," ")}`),await w.sleep(2e3);const{server:W,esmsg:iA,instanceId:dA,useInternalSignallingServer:k}=M;if(!dA){n.setStatus("Error"),n.setStatusLog("检查信令服务器版本,返回数据错误! "),console.log("信令服务器返回数据错误!不包含instanceId!请升级到 ESSS V3.0+ 版本!"),this._reconnectEvent.emit(void 0);return}h=W,d=iA,B=k??!1,n.esssResponse=M}}const g=this.dv(B?new uu(a,h,d,n):new su(a,h,d,n));this.d(()=>n.viewer=void 0),this.d(g.errorEvent.don(F=>{const Q=`[${F}]:像素流连接错误!`;n.setStatus("Error"),n.setStatusLog(Q),this._reconnectEvent.emit(g)})),await c.promise(new Promise(F=>this.d(g.readyEvent.donce(F)))),n.setStatus("Created"),n.setStatusLog("云渲染视口创建成功!"),i=0,o&&clearTimeout(o),o=void 0;const{offsetWidth:f,offsetHeight:m}=a;g.resize(f*window.devicePixelRatio,m*window.devicePixelRatio),n.viewer=g,this.d(()=>n.viewer=void 0),this.dv(new vu(n,g))}));l.start(),this.d(this._reconnectEvent.don(c=>{o===void 0&&(c&&!c.isDestroyed()&&c.destroy(),n.viewer&&!n.viewer.isDestroyed()&&n.viewer.destroy(),n.viewer=void 0,n.autoReconnect&&(n.setStatus("Reconnecting"),n.setStatusLog("正在尝试重新连接..."),i=i+5e3>3e4?3e4:i+5e3,console.warn(`间隔:${i/1e3}s,正在尝试重新连接...`),o=window.setTimeout(()=>{l.restart()},i)))})),this.d(l.errorEvent.don(c=>{n.setStatus("Error"),n.setStatusLog("云渲染视口创建失败!"),console.warn("云渲染视口创建失败!",c),this._reconnectEvent.emit(void 0)}))}else if(s(t.options,"project")){const a=t,l=a.options.project,c=a.options.baseUrl;n.setStatus("Creating"),n.setStatusLog("下载编译中...");const h=this.dv(new wu(e,l,c,n));n.viewer=h,this.d(()=>n.viewer=void 0)}else n.setStatus("Error"),n.setStatusLog("视口创建失败!"),console.warn("视口创建失败: 参数错误!")}}const ne=class ne extends p.ESViewer{constructor(e){super(e);C(this,"_viewer",this.dv(w.react(void 0)));C(this,"_esssResponse");C(this,"_speechRecognition",this.dv(new w.Event));C(this,"_propChanged",this.dv(new w.Event));C(this,"_objectEvent",this.dv(new w.Event));C(this,"_widgetEvent",this.dv(new w.Event));C(this,"_customMessage",this.dv(new w.Event));C(this,"_statusUpdateEvent",this.dv(new w.Event));C(this,"_statusUpdateEventdon",(()=>{this.d(this.statusUpdateEvent.don(e=>{this._statusInfo.fps=e.FPS??0,this._statusInfo.length=e.length??0,this._statusInfo.position=e.position??[0,0,0],this._statusInfo.rotation=e.rotation??[0,0,0]}))})());if(e.type!=="ESUeViewer")throw new Error("option.type must be ESUeViewer");const t=e;this.d(this._viewer.changed.don(()=>{this.viewerChanged.emit(this.viewer)})),this.dv(new w.ObjResettingWithEvent(this.subContainerChanged,()=>{if(this.setStatus("Raw"),this.setStatusLog(""),!!this.subContainer)return new Fu(this.subContainer,t,this)}))}get defaultProps(){return ne.createDefaultProps()}set viewer(e){this._viewer.value=e}get viewer(){return this._viewer.value}get esssResponse(){return this._esssResponse}set esssResponse(e){this._esssResponse=e}get speechRecognition(){return this._speechRecognition}get propChanged(){return this._propChanged}get objectEvent(){return this._objectEvent}get widgetEvent(){return this._widgetEvent}get customMessage(){return this._customMessage}get statusUpdateEvent(){return this._statusUpdateEvent}async uePositionToLonLatAlt(e){if(!this.viewer){console.warn("UEPositionToLonLatAlt: viewer is undefined");return}return await Co(this.viewer,e)}async changeNavigationMode(e){if(!this.viewer){console.warn("ChangeNavigationMode: viewer is undefined");return}const t=await TA(this.viewer,e);return t&&!t.error&&(this._navigationMode.value=e.mode),t}async resetWithCurrentCamera(e){if(!this.viewer){console.warn("resetWithCurrentCamera: viewer is undefined");return}return await En(this.viewer,e)}async getAllSocketNamesByActorTag(e){if(!this.viewer){console.warn("GetAllSocketNamesByActorTag: viewer is undefined");return}return await vo(this.viewer,e)}async getBoundSphere(e){if(!this.viewer){console.warn("getBoundSphere: viewer is undefined");return}return await Fo(this.viewer,e)}async getBoundSphereWithChildren(e){if(!this.viewer){console.warn("getBoundSphereWithChildren: viewer is undefined");return}return await Qo(this.viewer,e)}async getStrokeMaterialParamInfo(e){if(!this.viewer){console.warn("GetStrokeMaterialParamInfo: viewer is undefined");return}return await Uo(this.viewer,e)}async getFillMaterialParamInfo(e){if(!this.viewer){console.warn("getFillMaterialParamInfo: viewer is undefined");return}return await Eo(this.viewer,e)}async getGlobalProperty(e){if(!this.viewer){console.warn("getGlobalProperty: viewer is undefined");return}return await yo(this.viewer,e)}async getObjectByInfo(e){if(!this.viewer){console.warn("GetObjectByInfo: viewer is undefined");return}return await So(this.viewer,e)}async defaultCameraFlyIn(e=1){if(!this.viewer){console.warn("DefaultCameraFlyIn: viewer is undefined");return}return await Zi(this.viewer,e)}async startVoice(){if(!this.viewer){console.warn("startVoice:viewer is undefined");return}return await qi(this.viewer)}async stopVoice(){if(!this.viewer){console.warn("startVoice:viewer is undefined");return}return await ji(this.viewer)}async mountPakFiles(e){if(!this.viewer){console.warn("mountPakFiles:viewer is undefined");return}return await Ao(this.viewer,e)}async generateMemReport(){if(!this.viewer){console.warn("generateMemReport:viewer is undefined");return}return await eo(this.viewer)}async quit(){if(!this.viewer){console.warn("Quit: viewer is undefined");return}return await co(this.viewer)}async bindActorByTag(e,t){if(!this.viewer){console.warn("BindActorByTag: viewer is undefined");return}return await Io(this.viewer,e,t)}async restoreOriginalScene(){if(!this.viewer){console.warn("RestoreOriginalScene: viewer is undefined");return}return await To(this.viewer)}async unBindActorByID(e){if(!this.viewer){console.warn("UnBindActorByID: viewer is undefined");return}return await Ho(this.viewer,e)}async unBindActorByTag(e){if(!this.viewer){console.warn("UnBindActorByTag: viewer is undefined");return}return await Lo(this.viewer,e)}async createActorByClass(e,t){if(!this.viewer){console.warn("CreateActorByClass: viewer is undefined");return}return await bo(this.viewer,e,t)}async bind3DTilesetByTag(e,t){if(!this.viewer){console.warn("Bind3DTilesetByTag: viewer is undefined");return}return await Mo(this.viewer,e,t)}async unBind3DTilesetByTag(e){if(!this.viewer){console.warn("UnBind3DTilesetByTag: viewer is undefined");return}return await Do(this.viewer,e)}async unBind3DTilesetById(e){if(!this.viewer){console.warn("UnBind3DTilesetById: viewer is undefined");return}return await Ro(this.viewer,e)}async bindImageryByTag(e,t,n){if(!this.viewer){console.warn("BindImageryByTag: viewer is undefined");return}return await Ko(this.viewer,e,t,n)}async unBindImageryByTag(e,t){if(!this.viewer){console.warn("UnBindImageryByTag: viewer is undefined");return}return await xo(this.viewer,e,t)}async unBindImageryById(e){if(!this.viewer){console.warn("UnBindImageryById: viewer is undefined");return}return await Po(this.viewer,e)}async getIdByComponentNameAndHitItem(e,t,n){if(!this.viewer){console.warn("GetIdByComponentNameAndHitItem: viewer is undefined");return}return await ko(this.viewer,e,t,n)}async getCameraRelativeHeight(e="ECC_Visibility"){if(!this.viewer){console.warn("GetCameraRelativeHeight: viewer is undefined");return}return await Go(this.viewer,e)}async saveStringToFile(e,t,n){if(!this.viewer){console.warn("SaveStringToFile: viewer is undefined");return}return await No(this.viewer,e,t,n)}async highlightActorByTag(e,t=!0){if(!this.viewer){console.warn("HighlightActorByTag: viewer is undefined");return}return await _o(this.viewer,e,t)}async sendCustomMessage(e){if(!this.viewer){console.warn("SendCustomMessage: viewer is undefined");return}return await Vo(this.viewer,e)}async getStatus(){if(!this.viewer){console.warn("GetStatus:viewer is undefined");return}return await Oo(this.viewer)}async getTilesetMaterialIDList(){if(!this.viewer){console.warn("GetTilesetMaterialIDList:viewer is undefined");return}return await zo(this.viewer)}async pick(e,t,n){if(!this.viewer)return;let s=e;if(e&&window.ue&&this.container){const[i,o]=e,{x:a,y:l}=this.container.getBoundingClientRect();s=[a+i,l+o]}return await uo(this.viewer,s,t,n)}async pickPosition(e){if(!this.viewer)return;let t=e;if(e&&window.ue&&this.container){const[n,s]=e,{x:i,y:o}=this.container.getBoundingClientRect();t=[i+n,o+s]}return await ho(this.viewer,t)}async flyIn(e,t=[0,0,0],n=1,s="default"){if(!this.viewer)return;const i=await De(this.viewer,void 0,e,t,n,s);if(i)return i.endType===0&&console.warn(`flyTo:flyTo is end! endType:${i.endType}`),i.endType===1&&console.warn(`flyTo:飞行中断! endType:${i.endType}`),i}async flyTo(e,t,n="default"){if(!this.viewer)return;const s=await ge(this.viewer,void 0,void 0,e,t,n);if(s)return s.endType===0&&console.warn(`flyTo:flyTo is end! endType:${s.endType}`),s.endType===1&&console.warn(`flyTo:飞行中断! endType:${s.endType}`),s}flyToBoundingSphere(e,t,n=1){const s=[[e[0],e[1],0],[e[0],e[3],0],[e[2],e[3],0],[e[2],e[1],0]],i=p.getGeoBoundingSphereFromPositions(s);if(!i)return;const{center:o,radius:a}=i,l={distance:t??a,heading:0,pitch:-90,flyDuration:n,hDelta:0,pDelta:0};this.flyTo(l,o)}getCurrentCameraInfo(){const{position:e,rotation:t}=this._statusInfo;return{position:e,rotation:t}}getLengthInPixel(){return this._statusInfo.length}async changeToWalk(e,t=4.2){if(!this.viewer)return;const n={mode:"Walk",position:e,jumpZVelocity:t},s=await TA(this.viewer,n);return s&&!s.error&&(this._navigationMode.value=n.mode),s}async changeToMap(){if(!this.viewer)return;const e={mode:"Map"},t=await TA(this.viewer,e);return t&&!t.error&&(this._navigationMode.value=e.mode),t}async changeToRotateGlobe(e=38,t=1e7,n=60){if(!this.viewer)return;const s={mode:"RotateGlobe",latitude:e,height:t,cycleTime:n},i=await TA(this.viewer,s);return i&&!i.error&&(this._navigationMode.value=s.mode),i}async changeToLine(e,t=10,n=10,s=!0,i=10,o="auto"){if(!this.viewer)return;const a={mode:"Line",geoLineStringId:e,speed:t,heightOffset:n,loop:s,turnRateDPS:i,lineMode:o},l=await TA(this.viewer,a);return l&&!l.error&&(this._navigationMode.value=a.mode),l}async changeToUserDefined(e){if(!this.viewer)return;const t={mode:"UserDefined",userDefinedPawn:e},n=await TA(this.viewer,t);return n&&!n.error&&(this._navigationMode.value=t.mode),n}async changeToRotatePoint(e,t=5e4,n=60,s=0,i=-30){if(!this.viewer)return;const o={mode:"RotatePoint",position:e,distance:t,orbitPeriod:n,heading:s,pitch:i},a=await TA(this.viewer,o);return a&&!a.error&&(this._navigationMode.value=o.mode),a}async changeToFollow(e,t=0,n=0,s=-30,i=!0){if(!this.viewer)return;const o={mode:"Follow",objectId:e,distance:t,heading:n,pitch:s,relativeRotation:i},a=await TA(this.viewer,o);return a&&!a.error&&(this._navigationMode.value=o.mode),a}getFPS(){return this._statusInfo.fps}async getVersion(){const e=window.g_XE3CopyRights??{};if(!this.viewer)return e;const t=await mo(this.viewer);return e.esforue=t,e}async getHeightByLonLat(e,t,n="ECC_Visibility"){if(!this.viewer)return null;const s=await go(this.viewer,e,t,n);return s&&s.height!==void 0?s.height:null}async getHeightsByLonLats(e,t="ECC_Visibility"){return this.viewer?await Bo(this.viewer,e,t):void 0}async capture(e=64,t=64){return this.viewer?await fo(this.viewer,e,t):void 0}async partialCapture(e,t=[64,64]){if(!this.viewer){console.warn("partialCapture:viewer is undefined");return}return await wo(this.viewer,e,t)}async lonLatAltToScreenPosition(e){if(!this.viewer)return;const t=await po(this.viewer,e);return t&&[t.X,t.Y]}async setGlobalProperty(e){if(this.viewer)return await lo(this.viewer,e)}async startEditing(e,t,n){n=Object.assign({useKeyToSwitch:!0,callSource:"outer"},n);const s=e.combinationClass?e.getMainClass():e;if(!s||!this.viewer||t==null)return;const i=Array.isArray(t)?[...t]:[t];return s.editingID=`${n.callSource}_${w.createGuid()}`,await Wo(this.viewer,s.id,s.editingID,i,n.useKeyToSwitch)}async stopEditing(){if(this.viewer)return await Xo(this.viewer)}async moveObjects(e){if(!this.viewer)return;const t=[],n=w.createGuid();for(let s=0;s<e.length;s++){const i=e[s],o=i.combinationClass?i.getMainClass():i;o.editingID=n,o&&t.push(o.id)}if(t.length!==0)return await Jo(this.viewer,t,n)}getProperties(){return[...super.getProperties()]}};C(ne,"type",ne.register("ESUeViewer",ne)),C(ne,"defaults",{...sd});let LA=ne;(r=>{r.createDefaultProps=()=>({...p.ESViewer.createDefaultProps(),...Yi(),resolutionScale:1,autoReconnect:!1,propChangedListening:void 0,objectEventListening:void 0,widgetEventListening:void 0,speechRecognitionListening:void 0,customMessageListening:void 0})})(LA||(LA={})),w.extendClassProps(LA.prototype,LA.createDefaultProps);class qA extends p.EngineObject{constructor(A,e){super(A,e);const t=e.viewer;if(t&&(A.combinationClass||this.d(this.createdEvent.don(()=>{const n=this.constructor.propValFuncs,s=A.defaultProps,i=Object.keys(s).filter(d=>n[d]!==null);i.push(...this.constructor.forceUeUpdateProps);const o=A.constructor.defaults,a={val:{}},l=[];for(let d of i){const B=d+"Changed",g=A[B];l.push(g);const f=n[d];if(f===null)throw console.error("vf === null error"),new Error("vf === null error");const m=()=>{const F=A[d]??o[d];let Q=f?f(F,this,e,A):F;if(Q===void 0){console.warn(`UE自动更新的属性,不应该为undefined! 属性名:${d} 对象名:${A.name} 对象id: ${A.id}`);return}a.val[d]=Q};m(),this.d(g.don(m))}const c=()=>{t.callUeFunc({f:"update",p:{id:A.id,...a.val}}),a.val={}},h=this.dv(w.createNextAnimateFrameEvent(...l));this.d(h.don(c)),this.d(A.createdEvent.don(c)),this.d(A.flushEvent.don(()=>h.flush()))})),!A.combinationClass)){let n=!1;this.d(()=>{n&&Un(t,A.id)}),t.callUeFunc({f:"create",p:{type:A.typeName,id:A.id}}).then(()=>{n=!0,A.createdEvent.emit()}).catch(s=>console.error(s))}}}C(qA,"propValFuncs",{ref:null,devTags:null,extras:null,execOnceFuncStr:null,updateFuncStr:null,toDestroyFuncStr:null}),C(qA,"forceUeUpdateProps",[]);class lA extends qA{constructor(A,e){super(A,e);const t=e.viewer;t&&(this.d(A.flyToEvent.don(n=>{ge(t,A.id,n)})),this.d(A.flyInEvent.don(n=>{var s,i;De(t,A.id,(s=A.flyInParam)==null?void 0:s.position,(i=A.flyInParam)==null?void 0:i.rotation,n??1)})),this.d(A.calcFlyToParamEvent.don(()=>{Be(t,A.id)})),this.d(A.calcFlyInParamEvent.don(()=>{const n=e.getCurrentCameraInfo();if(!n)return;const{position:s,rotation:i}=n;A.flyInParam={position:s,rotation:i,flyDuration:1}})),this.d(e.propChanged.don(n=>{n.objId===A.id&&Object.keys(n.props).forEach(s=>{const i=n.props[s]===null?void 0:n.props[s];A[s]=i})})))}}class G extends lA{constructor(A,e){super(A,e);const t=e.viewer;if(!t)return;const n=()=>{A.editing||t.callUeFunc({f:"update",p:{id:A.id,position:A.position,rotation:A.rotation}})},s=this.dv(w.createNextAnimateFrameEvent(A.positionChanged,A.rotationChanged,A.editingChanged));this.d(s.don(()=>{setTimeout(n,0)})),this.d(A.smoothMoveEvent.don((a,l)=>{mr(t,A.id,a,l)})),this.d(A.smoothMoveWithRotationEvent.don((a,l,c)=>{pr(t,A.id,a,l,c)})),this.d(A.smoothMoveOnGroundEvent.don((a,l,c,h)=>{Cr(t,A.id,a,l,h,c)})),this.d(A.smoothMoveWithRotationOnGroundEvent.don((a,l,c,h,d)=>{vr(t,A.id,a,l,c,h,d)})),this.d(A.smoothMoveKeepPitchEvent.don(async(a,l)=>{const c=await t.callUeFunc({f:"SmoothMoveKeepPitch",p:{id:A.id,Destination:a,Time:l}});c.error&&console.error("SmoothMoveKeepPitch:",c.error)})),this.d(A.automaticLandingEvent.don(a=>{const l=[A.position[0],A.position[1]];e.getHeightByLonLat(A.position[0],A.position[1],"Visibility").then(c=>{c!==null&&(A.position=[...l,c],A.collision=a)})}));const i=async(a,l,c,h)=>{const{viewer:d}=a;if(!d){console.error("SmoothMoveRelatively: ueViewer.viewer is undefined");return}const B=await d.callUeFunc({f:"SmoothMoveRelatively",p:{id:l,RelativePosition:c,Time:h}});return B.error&&console.error("SmoothMoveRelatively:",B.error),B};this.d(A.smoothMoveRelativelyEvent.don((a,l)=>{i(e,A.id,a,l)}));const o=async(a,l,c,h,d)=>{const{viewer:B}=a;if(!B){console.error("SmoothMoveRelativelyWithRotation: ueViewer.viewer is undefined");return}const g=await B.callUeFunc({f:"SmoothMoveRelativelyWithRotation",p:{id:l,RelativePosition:c,NewRotation:h,Time:d}});return g.error&&console.error("SmoothMoveRelativelyWithRotation:",g.error),g};this.d(A.smoothMoveRelativelyWithRotationEvent.don((a,l,c)=>{o(e,A.id,a,l,c)}))}}class rA extends lA{constructor(A,e){super(A,e);const t=e.viewer;if(!t)return;const n=()=>{A.editing||t.callUeFunc({f:"update",p:{id:A.id,points:A.points}})},s=this.dv(w.createNextAnimateFrameEvent(A.pointsChanged,A.editingChanged));this.d(s.don(()=>{setTimeout(n,0)}))}}C(rA,"propValFuncs",{...lA.propValFuncs,pointStyle:A=>({...A,materialParams:JSON.stringify(A.materialParams??{})}),strokeStyle:A=>({...A,materialParams:JSON.stringify(A.materialParams??{})}),fillStyle:A=>({...A,materialParams:JSON.stringify(A.materialParams??{})})});class UA extends G{constructor(A,e){super(A,e),e.viewer&&this.d(e.widgetEvent.don(n=>{if(n.objId!==A.id)return;const{type:s,add:i}=n;A.widgetEvent.emit({type:s,add:i})}))}}class xn extends G{constructor(A,e){super(A,e),e.viewer}}C(xn,"propValFuncs",{...G.propValFuncs,pointStyle:A=>({...A,materialParams:JSON.stringify(A.materialParams??{})}),strokeStyle:A=>({...A,materialParams:JSON.stringify(A.materialParams??{})}),fillStyle:A=>({...A,materialParams:JSON.stringify(A.materialParams??{})})});class Er extends xn{constructor(A,e){super(A,e),e.viewer}}const Al=r=>{switch(r){case 0:return"成功绑定";case 1:return"解绑之前的内容,成功绑定";case 2:return"没搜索到ActorTag,无法绑定";case 3:return"搜索到ActorTag但对应的Actor不是3dTileset,无法绑定";default:return"未知错误"}},st=class st extends p.EngineObject{constructor(e,t){super(e,t);C(this,"_styleColor",this.dv(w.react([])));C(this,"_styleVisable",this.dv(w.react([])));const n=t.viewer;if(!n){console.warn("UeES3DTileset: viewer is undefined!");return}let s,i;const o=async()=>{!s&&!i||await n.callUeFunc({f:"update",p:{id:e.id,url:e.url,show:e.show,collision:e.collision,allowPicking:e.allowPicking,flyToParam:e.flyToParam??p.ESVisualObject.defaults.flyToParam,flyInParam:e.flyInParam??p.ESVisualObject.defaults.flyInParam,highlightID:e.highlightID,highlightColor:e.highlightColor,highlight:e.highlight,materialMode:e.materialMode,maximumScreenSpaceError:e.maximumScreenSpaceError,colorMode:Reflect.has(e,"colorMode")?e.colorMode:void 0,offset:e.offset,rotation:e.rotation,cacheBytes:e.cacheBytes,colorBlendMode:e.colorBlendMode,materialOverrideMap:e.materialOverrideMap}})},a=this.dv(w.createNextAnimateFrameEvent(e.urlChanged,e.showChanged,e.flyToParamChanged,e.flyInParamChanged,e.collisionChanged,e.allowPickingChanged,e.highlightIDChanged,e.highlightColorChanged,e.highlightChanged,e.materialModeChanged,e.maximumScreenSpaceErrorChanged,e.offsetChanged,e.rotationChanged,e.cacheBytesChanged,e.colorBlendModeChanged,e.materialOverrideMapChanged));o(),this.d(a.don(o)),Reflect.has(e,"colorMode")&&this.d(e.colorModeChanged.don(()=>o()));const l=this.dv(w.react(void 0));{const h=this.dv(w.createNextAnimateFrameEvent(e.actorTagChanged,e.urlChanged)),d=()=>{e.actorTag?l.value={type:"ActorTag",actorTag:e.actorTag}:e.url?l.value={type:"CreatedUrl",url:e.url}:l.value=void 0,e.editing=!1};d(),this.d(h.don(d))}const c=async()=>{const{id:h}=e;if(s!==void 0){s=void 0;try{const d=await t.unBind3DTilesetById(h);if(!d)return;if(d.error!==""){console.warn(`UeES3DTileset UnBind3DTilesetById: ${d.error}`);return}}catch(d){console.warn(`UeES3DTileset UnBind3DTilesetById: ${d}`);return}}if(i!==void 0){i=void 0;try{const d=await n.callUeFunc({f:"destroy",p:{id:h}});if(!d)return;if(d.error!==""){console.warn(`UeES3DTileset Destroy: ${d.error}`);return}}catch(d){console.warn(`UeES3DTileset Destroy: ${d}`);return}}};this.d(()=>{c()});{const h=this.dv(w.createProcessingFromAsyncFunc(async B=>{if(l.value===void 0){await B.promise(c());return}if(l.value.type==="ActorTag"){const{actorTag:g}=l.value;if(s!==g&&await B.promise(c()),s!==void 0||g===void 0)return;try{s=g;const f=await B.promise(t.bind3DTilesetByTag(e.id,g));if(!f)return;if(f.error!==""){console.warn(`UeES3DTileset Bind3DTilesetByTag: ${f.error}`);return}if(f.re.type!==0)if(f.re.type===1)console.warn(`UeES3DTileset Bind3DTilesetByTag: ${Al(f.re.type)}`);else{console.warn(`UeES3DTileset Bind3DTilesetByTag: ${Al(f.re.type)}`);return}}catch(f){console.warn(`UeES3DTileset Bind3DTilesetByTag: ${f}`);return}}else if(l.value.type==="CreatedUrl"){const{url:g}=l.value;if(g!==i&&await c(),i!==void 0||g===void 0)return;try{i=g;const f=await B.promise(n.callUeFunc({f:"create",p:{type:e.typeName,id:e.id}}));if(!f)return;if(f.error!==""){console.warn(`UeES3DTileset create: ${f.error}`);return}}catch(f){console.warn(`UeES3DTileset create: ${f}`);return}}await B.promise(o())})),d=async()=>{h.restart()};d(),this.d(l.changed.don(d))}this.d(e.refreshTilesetEvent.don(()=>{$i(n,e.id)})),this.d(e.flyToEvent.don(async(h,d)=>{if(!s&&!i)return;const B=await ge(n,e.id,h);let g="over";B===void 0?g="error":B.endType===0?g="over":B.endType===1&&(g="cancelled"),e.flyOverEvent.emit(d,g,t)})),this.d(e.calcFlyToParamEvent.don(()=>{!s&&!i||Be(n,e.id)})),this.d(e.calcFlyInParamEvent.don(async()=>{if(!s&&!i||!t.actived)return;const h=await t.getCurrentCameraInfo();if(!h)return;const{position:d,rotation:B}=h;e.flyInParam={position:d,rotation:B,flyDuration:1}})),this.d(t.propChanged.don(h=>{!s&&!i||h.objId===e.id&&Object.keys(h.props).forEach(d=>{const B=h.props[d]===null?void 0:h.props[d];e[d]=B})})),this.d(t.objectEvent.don(h=>{!s&&!i||h.id!==e.id||h.type!=="3DTilesetReady"||e.tilesetReady.emit(h.p)}));{const h=async(f,m)=>{if(!s&&!i)return;const F=await n.callUeFunc({f:"SetFeatureColor",p:{id:e.id,featureName:f,json:m}});if(F&&F.error!==""){console.warn(`UeES3DTileset SetFeatureColor: ${F.error}`);return}},d=async(f,m)=>{if(!s&&!i)return;const F=await n.callUeFunc({f:"SetFeatureVisable",p:{id:e.id,featureName:f,json:m}});if(F&&F.error!==""){console.warn(`UeES3DTileset SetFeatureVisable: ${F.error}`);return}},B=async()=>{if(!s&&!i)return;const f=await n.callUeFunc({f:"ResetFeatureStyle",p:{id:e.id}});if(f&&f.error!==""){console.warn(`UeES3DTileset ResetFeatureStyle: ${f.error}`);return}},g=async f=>{if(!s&&!i)return;const m=await n.callUeFunc({f:"SetFeatureStyle",p:{id:e.id,json:f}});if(m&&m.error!==""){console.warn(`UeES3DTileset SetFeatureStyle: ${m.error}`);return}};this.d(e.setFeatureColorEvent.don((f,m)=>{const F=[...this.styleColor,...m];this.styleColor=[...F],h(f,F)})),this.d(e.setFeatureVisableEvent.don((f,m)=>{const F=[...this.styleVisable,...m];this.styleVisable=[...F],d(f,F)})),this.d(e.resetFeatureStyleEvent.don(()=>{B(),this.styleColor=[],this.styleVisable=[]})),this.d(e.setFeatureStyleEvent.don(f=>{g(f)}))}{const h=async()=>{if(!s&&!i){e._featureTableResultEvent.emit(void 0);return}try{const d=await n.callUeFunc({f:"GetFeatureTable",p:{id:e.id}});d.error!==""&&console.warn(`UeES3DTileset GetFeatureTable: ${d.error}`),e._featureTableResultEvent.emit(d.re.table)}catch(d){console.warn(`UeES3DTileset GetFeatureTable: ${d}`),e._featureTableResultEvent.emit(void 0)}};this.d(e.getFeatureTableEvent.don(()=>{h()}))}{const h=async()=>{if(!s&&!i){e.getMaterialNameListEvent.emit(void 0);return}try{const d=await n.callUeFunc({f:"GetMaterialNameList",p:{id:e.id}});d.error!==""&&console.warn(`UeES3DTileset GetMaterialNameList: ${d.error}`),e.getMaterialNameListEvent.emit(d.re.materialNameList)}catch(d){console.warn(`UeES3DTileset GetMaterialNameList: ${d}`),e.getMaterialNameListEvent.emit(void 0)}};this.ad(e.getMaterialNameListEvent.don(d=>{d=="start"&&h()}))}}get styleColor(){return this._styleColor.value}set styleColor(e){this._styleColor.value=e}get styleVisable(){return this._styleVisable.value}set styleVisable(e){this._styleVisable.value=e}};C(st,"type",st.register("ESUeViewer",p.ES3DTileset.type,st));let yr=st;const el=r=>{switch(r){case 0:return"成功绑定";case 1:return"解绑之前的内容,成功绑定";case 2:return"没搜索到ActorTag,无法绑定";case 3:return"搜索到ActorTag对应的Actor是地形,无法绑定";case 4:return"没搜索到ComponentTag,无法绑定";default:return"未知错误"}},it=class it extends p.EngineObject{constructor(A,e){super(A,e);const t=e.viewer;if(!t){console.warn("viewer is undefined!");return}let n,s;const i=this.dv(w.react(void 0)),o=this.ad(w.reactJson(""));{const h=()=>{if(typeof A.url=="string")o.value=p.ESSceneObject.context.getStrFromEnv(A.url);else{const d=A.url;d.url=p.ESSceneObject.context.getStrFromEnv(d.url),o.value=d}};h(),this.ad(A.urlChanged.don(h))}const a=async()=>{!n&&!s||await t.callUeFunc({f:"update",p:{id:A.id,show:A.show??!0,rectangle:A.rectangle??[-180,-90,180,90],collision:A.collision??!0,allowPicking:A.allowPicking??!1,flyToParam:A.flyToParam??p.ESVisualObject.defaults.flyToParam,flyInParam:A.flyInParam??p.ESVisualObject.defaults.flyInParam,url:o.value??"",zIndex:A.zIndex??0,maximumLevel:A.maximumLevel??p.ESImageryLayer.defaults.maximumLevel,minimumLevel:A.minimumLevel??p.ESImageryLayer.defaults.minimumLevel,options:A.options??p.ESImageryLayer.defaults.options,targetID:A.targetID??p.ESImageryLayer.defaults.targetID,opacity:A.opacity??p.ESImageryLayer.defaults.opacity,splitDirection:A.splitDirection??p.ESImageryLayer.defaults.splitDirection}})},l=this.dv(w.createNextAnimateFrameEvent(A.showChanged,o.changed,A.flyToParamChanged,A.flyInParamChanged,A.zIndexChanged,A.collisionChanged,A.allowPickingChanged,A.maximumLevelChanged,A.minimumLevelChanged,A.rectangleChanged,A.optionsChanged,A.targetIDChanged,A.opacityChanged,A.splitDirectionChanged));this.d(l.don(a));const c=async()=>{const{id:h}=A;if(n!==void 0){n=void 0;try{const d=await e.unBindImageryById(h);if(!d)return;if(d.error!==""){console.warn(`UeESImageryLayer UnImageryByID: ${d.error}`);return}}catch(d){console.warn(`UeESImageryLayer UnImageryByID promise: ${d}`);return}}if(s!==void 0){s=void 0;try{const d=await t.callUeFunc({f:"destroy",p:{id:h,test:"UeESImageryLayer"}});if(!d)return;if(d.error!==""){console.warn(`UeESImageryLayer Destroy: ${d.error}`);return}}catch(d){console.warn(`UeESImageryLayer Destroy promise: ${d}`);return}}};this.d(()=>{c()});{const h=this.dv(w.createProcessingFromAsyncFunc(async B=>{if(i.value===void 0){await B.promise(c());return}if(i.value.type==="ActorTag"){const{actorTag:g,componentTag:f}=i.value;if(n!==g&&await B.promise(c()),n!==void 0||g===void 0)return;try{n=g;const m=await B.promise(e.bindImageryByTag(A.id,g,f));if(!m)return;if(m.error!==""){console.warn(`ESImageryLayer BindImageryByTag: ${m.error}`);return}if(m.re.type!==0)if(m.re.type===1)console.warn(`ESImageryLayer BindImageryByTag: ${el(m.re.type)}`);else{console.warn(`ESImageryLayer BindImageryByTag: ${el(m.re.type)}`);return}}catch(m){console.warn(`ESImageryLayer BindImageryByTag promise: ${m}`);return}}else if(i.value.type==="CreatedUrl"){const{url:g}=i.value;if(g!==s&&await B.promise(c()),s!==void 0||g===void 0)return;try{s=g;const f=await B.promise(t.callUeFunc({f:"create",p:{type:"ESImageryLayer",id:A.id}}));if(!f)return;if(f.error!==""){console.warn(`ESImageryLayer create: ${f.error}`);return}}catch{console.warn("ESImageryLayer create: create promise error");return}}await B.promise(a())})),d=async()=>{h.restart()};d(),this.d(i.changed.don(d))}{const h=this.dv(w.createNextAnimateFrameEvent(A.actorTagChanged,o.changed,A.componentTagChanged)),d=()=>{A.actorTag&&A.componentTag?i.value={type:"ActorTag",actorTag:A.actorTag,componentTag:A.componentTag}:o.value?i.value={type:"CreatedUrl",url:o.value}:i.value=void 0};d(),this.d(h.don(d))}this.d(A.flyToEvent.don(async(h,d)=>{if(!n&&!s)return;const B=await ge(t,A.id,h);let g="over";B===void 0?g="error":B.endType===0?g="over":B.endType===1&&(g="cancelled"),A.flyOverEvent.emit(d,g,e)})),this.d(A.flyInEvent.don(async(h,d)=>{var f,m;if(!n&&!s)return;const B=await De(t,A.id,(f=A.flyInParam)==null?void 0:f.position,(m=A.flyInParam)==null?void 0:m.rotation,h??1);let g="over";B===void 0?g="error":B.endType===0?g="over":B.endType===1&&(g="cancelled"),A.flyOverEvent.emit(d,g,e)})),this.d(A.calcFlyToParamEvent.don(()=>{!n&&!s||Be(t,A.id)})),this.d(A.calcFlyInParamEvent.don(async()=>{if(!e.actived)return;const h=await e.getCurrentCameraInfo();if(!h)return;const{position:d,rotation:B}=h;A.flyInParam={position:d,rotation:B,flyDuration:1}})),this.d(e.propChanged.don(h=>{!n&&!s||h.objId===A.id&&Object.keys(h.props).forEach(d=>{const B=h.props[d]===null?void 0:h.props[d];A[d]=B})}))}};C(it,"type",it.register("ESUeViewer",p.ESImageryLayer.type,it));let Pn=it;const se=class se extends lA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(se,"type",se.register("ESUeViewer",p.ESTerrainLayer.type,se)),C(se,"forceUeUpdateProps",[...lA.forceUeUpdateProps,"url"]),C(se,"propValFuncs",{...lA.propValFuncs,url:A=>typeof A=="string"?p.ESSceneObject.context.getStrFromEnv(A):(A.url=p.ESSceneObject.context.getStrFromEnv(A.url),A),czmMaxzoom:null,czmMinzoom:null});let kn=se;const ot=class ot extends G{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(ot,"type",ot.register("ESUeViewer",p.ESAlarm.type,ot));let Gn=ot;const at=class at extends G{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(at,"type",at.register("ESUeViewer",p.ESApertureEffect.type,at));let Nn=at;const lt=class lt extends rA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(lt,"type",lt.register("ESUeViewer",p.ESGeoPolygon.type,lt));let BA=lt;const ct=class ct extends BA{constructor(A,e){super(A,e);const t=e.viewer;if(!t){console.warn("viewer is undefined!");return}const n=()=>{let i=p.ESAreaMeasurement.defaults.fillStyle;try{i={...A.fillStyle??p.ESAreaMeasurement.defaults.fillStyle}}catch(o){console.error("ESAreaMeasurement fillStyle 属性类型错误!",o),i={...p.ESAreaMeasurement.defaults.fillStyle}}i.materialParams=JSON.stringify(i.materialParams),t.callUeFunc({f:"update",p:{id:A.id,stroked:A.stroked??p.ESAreaMeasurement.defaults.stroked,fillStyle:i,filled:A.filled??p.ESAreaMeasurement.defaults.filled}}),console.log(i)},s=this.dv(w.createNextAnimateFrameEvent(A.fillStyleChanged,A.strokedChanged,A.filledChanged));this.d(s.don(n)),this.d(A.createdEvent.don(n))}};C(ct,"type",ct.register("ESUeViewer",p.ESAreaMeasurement.type,ct));let _n=ct;const dt=class dt extends G{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(dt,"type",dt.register("ESUeViewer",p.ESBlastParticleSystem.type,dt));let Vn=dt;const ut=class ut extends G{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is underfined!");return}}};C(ut,"type",ut.register("ESUeViewer",p.ESBoxClipping.type,ut));let On=ut;const ht=class ht extends G{constructor(A,e){super(A,e);const t=e.viewer;if(!t){console.warn("viewer is undefined!");return}this.dispose(A.flyInEvent.don((n,s,i="default")=>{const{id:o,duration:a,position:l,rotation:c}=A;De(t,o,l,c,a??n,i)})),this.dispose(A.resetWithCurrentCameraEvent.don(()=>{En(t,A.id)})),this.dispose(A.captureEvent.don((n,s)=>{e.capture(n,s).then(o=>{o&&(A.thumbnail=o)})}))}};C(ht,"type",ht.register("ESUeViewer",p.ESCameraView.type,ht));let Wn=ht;const gt=class gt extends G{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(gt,"type",gt.register("ESUeViewer",p.ESCameraVisibleRange.type,gt));let Xn=gt;const Bt=class Bt extends G{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(Bt,"type",Bt.register("ESUeViewer",p.ESCar.type,Bt));let Jn=Bt;const ft=class ft extends rA{constructor(A,e){super(A,e);const t=e.viewer;if(!t){console.warn("viewer is undefined!");return}const n=()=>{let i=p.ESClassification.defaults.fillStyle;try{i={...A.fillStyle??p.ESClassification.defaults.fillStyle}}catch(o){console.error("ESClassification fillStyle 属性类型错误!",o),i={...p.ESClassification.defaults.fillStyle}}i.materialParams=JSON.stringify(i.materialParams),t.callUeFunc({f:"update",p:{id:A.id,filled:A.filled??p.ESClassification.defaults.filled,fillStyle:i}})},s=this.dv(w.createNextAnimateFrameEvent(A.fillStyleChanged,A.filledChanged));this.d(s.don(n)),this.d(A.createdEvent.don(n))}};C(ft,"type",ft.register("ESUeViewer",p.ESClassification.type,ft));let zn=ft;const wt=class wt extends G{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is underfined!");return}}};C(wt,"type",wt.register("ESUeViewer",p.ESClippingPlane.type,wt));let Yn=wt;const pt=class pt extends G{constructor(A,e){super(A,e);const t=e.viewer;if(!t){console.warn("viewer is undefined!");return}const n=this.ad(w.reactJson(""));{const o=()=>{if(typeof A.url=="string")n.value=p.ESSceneObject.context.getStrFromEnv(A.url??p.ESDataMesh.defaults.url);else{const a=A.url;a.url=p.ESSceneObject.context.getStrFromEnv(a.url??p.ESDataMesh.defaults.url),n.value=a}};o(),this.ad(A.urlChanged.don(o))}const s=()=>{const o=A.colorStops??p.ESDataMesh.defaults.colorStops;t.callUeFunc({f:"update",p:{id:A.id,url:n.value??p.ESDataMesh.defaults.url,currentTime:A.currentTime??p.ESDataMesh.defaults.currentTime,minPropValue:A.minPropValue??p.ESDataMesh.defaults.minPropValue,maxPropValue:A.maxPropValue??p.ESDataMesh.defaults.maxPropValue,colorStops:JSON.stringify(o)}})},i=this.dv(w.createNextAnimateFrameEvent(n.changed,A.currentTimeChanged,A.minPropValueChanged,A.maxPropValueChanged,A.colorStopsChanged));this.d(i.don(s)),this.d(A.createdEvent.don(s))}};C(pt,"type",pt.register("ESUeViewer",p.ESDataMesh.type,pt));let $n=pt;const Ct=class Ct extends G{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(Ct,"type",Ct.register("ESUeViewer",p.ESDatasmithRuntimeModel.type,Ct));let Zn=Ct;const vt=class vt extends rA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(vt,"type",vt.register("ESUeViewer",p.ESDirectionMeasurement.type,vt));let qn=vt;const mt=class mt extends rA{constructor(A,e){super(A,e);const t=e.viewer;if(!t){console.warn("viewer is undefined!");return}const n=()=>{let i;try{i={...A.strokeStyle??p.ESDistanceMeasurement.defaults.strokeStyle}}catch(o){console.error("ESDistanceMeasurement strokeStyle 属性类型错误!",o),i={...p.ESDistanceMeasurement.defaults.strokeStyle}}t.callUeFunc({f:"update",p:{id:A.id,strokeStyle:i}})},s=this.dv(w.createNextAnimateFrameEvent(A.strokeStyleChanged));this.d(s.don(n)),this.d(A.createdEvent.don(n))}};C(mt,"type",mt.register("ESUeViewer",p.ESDistanceMeasurement.type,mt));let jn=mt;const Ft=class Ft extends Er{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(Ft,"type",Ft.register("ESUeViewer",p.ESLocalPolygon.type,Ft));let Sr=Ft;const Qt=class Qt extends Sr{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(Qt,"type",Qt.register("ESUeViewer",p.ESDynamicWater.type,Qt));let As=Qt;const Ut=class Ut extends lA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}this.d(e.widgetEvent.don(n=>{if(n.objId!==A.id)return;const{type:s,properties:i}=n;A.widgetEvent.emit({type:s,properties:i})}))}};C(Ut,"type",Ut.register("ESUeViewer",p.ESEntityCluster.type,Ut));let es=Ut;const Et=class Et extends BA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(Et,"type",Et.register("ESUeViewer",p.ESExcavate.type,Et));let ts=Et;const yt=class yt extends G{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(yt,"type",yt.register("ESUeViewer",p.ESFireParticleSystem.type,yt));let rs=yt;const St=class St extends lA{constructor(A,e){super(A,e);const t=e.viewer;if(!t){console.warn("viewer is undefined!");return}const n=this.ad(w.reactJson(""));{const o=()=>{if(typeof A.url=="string")n.value=p.ESSceneObject.context.getStrFromEnv(A.url);else{const a=A.url;a.url=p.ESSceneObject.context.getStrFromEnv(a.url),n.value=a}};o(),this.ad(A.urlChanged.don(o))}const s=()=>{t.callUeFunc({f:"update",p:{id:A.id,url:n.value??p.ESForestTileset.defaults.url,treeTypes:A.treeTypes??p.ESForestTileset.defaults.treeTypes,xiaoBanWidget:A.xiaoBanWidget??p.ESForestTileset.defaults.xiaoBanWidgetDefault,youShiSZ:A.youShiSZ??p.ESForestTileset.defaults.youShiSZ,diLei:A.diLei??p.ESForestTileset.defaults.diLei,senLinLB:A.senLinLB??p.ESForestTileset.defaults.senLinLB,labelMaterial:A.labelMaterial??p.ESForestTileset.defaults.labelMaterial,heightOffset:A.heightOffset??p.ESForestTileset.defaults.heightOffset}})},i=this.dv(w.createNextAnimateFrameEvent(n.changed,A.treeTypesChanged,A.xiaoBanWidgetChanged,A.youShiSZChanged,A.diLeiChanged,A.senLinLBChanged,A.labelMaterialChanged,A.heightOffsetChanged));this.d(i.don(s)),this.d(A.createdEvent.don(s))}};C(St,"type",St.register("ESUeViewer",p.ESForestTileset.type,St));let ns=St;/*!
|
|
319
92
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
320
93
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
321
94
|
* Released under MIT License
|
|
@@ -332,14 +105,14 @@ Msg: ${t}`;console.warn(o)}};x.verboseLogLevel=5,function(v){v.LIST_STREAMERS="l
|
|
|
332
105
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
333
106
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
334
107
|
PERFORMANCE OF THIS SOFTWARE.
|
|
335
|
-
***************************************************************************** */var Oi=function(v,e){return Oi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var y in o)Object.prototype.hasOwnProperty.call(o,y)&&(t[y]=o[y])},Oi(v,e)};function Xe(v,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Oi(v,e);function t(){this.constructor=v}v.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Mi=function(){return Mi=Object.assign||function(e){for(var t,o=1,y=arguments.length;o<y;o++){t=arguments[o];for(var B in t)Object.prototype.hasOwnProperty.call(t,B)&&(e[B]=t[B])}return e},Mi.apply(this,arguments)};function Re(v,e,t,o){function y(B){return B instanceof t?B:new t(function(A){A(B)})}return new(t||(t=Promise))(function(B,A){function h(w){try{g(o.next(w))}catch(p){A(p)}}function m(w){try{g(o.throw(w))}catch(p){A(p)}}function g(w){w.done?B(w.value):y(w.value).then(h,m)}g((o=o.apply(v,[])).next())})}function xe(v,e){var t={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]},o,y,B,A;return A={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function h(g){return function(w){return m([g,w])}}function m(g){if(o)throw new TypeError("Generator is already executing.");for(;t;)try{if(o=1,y&&(B=g[0]&2?y.return:g[0]?y.throw||((B=y.return)&&B.call(y),0):y.next)&&!(B=B.call(y,g[1])).done)return B;switch(y=0,B&&(g=[g[0]&2,B.value]),g[0]){case 0:case 1:B=g;break;case 4:return t.label++,{value:g[1],done:!1};case 5:t.label++,y=g[1],g=[0];continue;case 7:g=t.ops.pop(),t.trys.pop();continue;default:if(B=t.trys,!(B=B.length>0&&B[B.length-1])&&(g[0]===6||g[0]===2)){t=0;continue}if(g[0]===3&&(!B||g[1]>B[0]&&g[1]<B[3])){t.label=g[1];break}if(g[0]===6&&t.label<B[1]){t.label=B[1],B=g;break}if(B&&t.label<B[2]){t.label=B[2],t.ops.push(g);break}B[2]&&t.ops.pop(),t.trys.pop();continue}g=e.call(v,t)}catch(w){g=[6,w],y=0}finally{o=B=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}}function en(v,e,t){if(arguments.length===2)for(var o=0,y=e.length,B;o<y;o++)(B||!(o in e))&&(B||(B=Array.prototype.slice.call(e,0,o)),B[o]=e[o]);return v.concat(B||e)}for(var ot=function(){function v(e,t,o,y){this.left=e,this.top=t,this.width=o,this.height=y}return v.prototype.add=function(e,t,o,y){return new v(this.left+e,this.top+t,this.width+o,this.height+y)},v.fromClientRect=function(e,t){return new v(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},v.fromDOMRectList=function(e,t){var o=Array.from(t).find(function(y){return y.width!==0});return o?new v(o.left+e.windowBounds.left,o.top+e.windowBounds.top,o.width,o.height):v.EMPTY},v.EMPTY=new v(0,0,0,0),v}(),tn=function(v,e){return ot.fromClientRect(v,e.getBoundingClientRect())},sf=function(v){var e=v.body,t=v.documentElement;if(!e||!t)throw new Error("Unable to get document size");var o=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),y=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new ot(0,0,o,y)},rn=function(v){for(var e=[],t=0,o=v.length;t<o;){var y=v.charCodeAt(t++);if(y>=55296&&y<=56319&&t<o){var B=v.charCodeAt(t++);(B&64512)===56320?e.push(((y&1023)<<10)+(B&1023)+65536):(e.push(y),t--)}else e.push(y)}return e},Be=function(){for(var v=[],e=0;e<arguments.length;e++)v[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,v);var t=v.length;if(!t)return"";for(var o=[],y=-1,B="";++y<t;){var A=v[y];A<=65535?o.push(A):(A-=65536,o.push((A>>10)+55296,A%1024+56320)),(y+1===t||o.length>16384)&&(B+=String.fromCharCode.apply(String,o),o.length=0)}return B},Oc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",af=typeof Uint8Array>"u"?[]:new Uint8Array(256),An=0;An<Oc.length;An++)af[Oc.charCodeAt(An)]=An;for(var Mc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ir=typeof Uint8Array>"u"?[]:new Uint8Array(256),nn=0;nn<Mc.length;nn++)ir[Mc.charCodeAt(nn)]=nn;for(var cf=function(v){var e=v.length*.75,t=v.length,o,y=0,B,A,h,m;v[v.length-1]==="="&&(e--,v[v.length-2]==="="&&e--);var g=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),w=Array.isArray(g)?g:new Uint8Array(g);for(o=0;o<t;o+=4)B=ir[v.charCodeAt(o)],A=ir[v.charCodeAt(o+1)],h=ir[v.charCodeAt(o+2)],m=ir[v.charCodeAt(o+3)],w[y++]=B<<2|A>>4,w[y++]=(A&15)<<4|h>>2,w[y++]=(h&3)<<6|m&63;return g},lf=function(v){for(var e=v.length,t=[],o=0;o<e;o+=2)t.push(v[o+1]<<8|v[o]);return t},uf=function(v){for(var e=v.length,t=[],o=0;o<e;o+=4)t.push(v[o+3]<<24|v[o+2]<<16|v[o+1]<<8|v[o]);return t},Et=5,Hi=11,Li=2,df=Hi-Et,Hc=65536>>Et,ff=1<<Et,Di=ff-1,hf=1024>>Et,pf=Hc+hf,gf=pf,vf=32,yf=gf+vf,mf=65536>>Hi,wf=1<<df,Bf=wf-1,Lc=function(v,e,t){return v.slice?v.slice(e,t):new Uint16Array(Array.prototype.slice.call(v,e,t))},Cf=function(v,e,t){return v.slice?v.slice(e,t):new Uint32Array(Array.prototype.slice.call(v,e,t))},bf=function(v,e){var t=cf(v),o=Array.isArray(t)?uf(t):new Uint32Array(t),y=Array.isArray(t)?lf(t):new Uint16Array(t),B=24,A=Lc(y,B/2,o[4]/2),h=o[5]===2?Lc(y,(B+o[4])/2):Cf(o,Math.ceil((B+o[4])/4));return new _f(o[0],o[1],o[2],o[3],A,h)},_f=function(){function v(e,t,o,y,B,A){this.initialValue=e,this.errorValue=t,this.highStart=o,this.highValueIndex=y,this.index=B,this.data=A}return v.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Et],t=(t<<Li)+(e&Di),this.data[t];if(e<=65535)return t=this.index[Hc+(e-55296>>Et)],t=(t<<Li)+(e&Di),this.data[t];if(e<this.highStart)return t=yf-mf+(e>>Hi),t=this.index[t],t+=e>>Et&Bf,t=this.index[t],t=(t<<Li)+(e&Di),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},v}(),Dc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ef=typeof Uint8Array>"u"?[]:new Uint8Array(256),on=0;on<Dc.length;on++)Ef[Dc.charCodeAt(on)]=on;var Ff="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Rc=50,Qf=1,kc=2,Kc=3,Sf=4,Uf=5,Nc=7,Vc=8,Gc=9,ut=10,Ri=11,jc=12,ki=13,Tf=14,or=15,Ki=16,sn=17,sr=18,If=19,Wc=20,Ni=21,ar=22,Vi=23,Kt=24,Ve=25,cr=26,lr=27,Nt=28,Pf=29,Ft=30,xf=31,an=32,cn=33,Gi=34,ji=35,Wi=36,ur=37,zi=38,ln=39,un=40,Ji=41,zc=42,Of=43,Mf=[9001,65288],Jc="!",ce="×",dn="÷",Xi=bf(Ff),st=[Ft,Wi],Yi=[Qf,kc,Kc,Uf],Xc=[ut,Vc],Yc=[lr,cr],Hf=Yi.concat(Xc),$c=[zi,ln,un,Gi,ji],Lf=[or,ki],Df=function(v,e){e===void 0&&(e="strict");var t=[],o=[],y=[];return v.forEach(function(B,A){var h=Xi.get(B);if(h>Rc?(y.push(!0),h-=Rc):y.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(B)!==-1)return o.push(A),t.push(Ki);if(h===Sf||h===Ri){if(A===0)return o.push(A),t.push(Ft);var m=t[A-1];return Hf.indexOf(m)===-1?(o.push(o[A-1]),t.push(m)):(o.push(A),t.push(Ft))}if(o.push(A),h===xf)return t.push(e==="strict"?Ni:ur);if(h===zc||h===Pf)return t.push(Ft);if(h===Of)return B>=131072&&B<=196605||B>=196608&&B<=262141?t.push(ur):t.push(Ft);t.push(h)}),[o,t,y]},$i=function(v,e,t,o){var y=o[t];if(Array.isArray(v)?v.indexOf(y)!==-1:v===y)for(var B=t;B<=o.length;){B++;var A=o[B];if(A===e)return!0;if(A!==ut)break}if(y===ut)for(var B=t;B>0;){B--;var h=o[B];if(Array.isArray(v)?v.indexOf(h)!==-1:v===h)for(var m=t;m<=o.length;){m++;var A=o[m];if(A===e)return!0;if(A!==ut)break}if(h!==ut)break}return!1},Zc=function(v,e){for(var t=v;t>=0;){var o=e[t];if(o===ut)t--;else return o}return 0},Rf=function(v,e,t,o,y){if(t[o]===0)return ce;var B=o-1;if(Array.isArray(y)&&y[B]===!0)return ce;var A=B-1,h=B+1,m=e[B],g=A>=0?e[A]:0,w=e[h];if(m===kc&&w===Kc)return ce;if(Yi.indexOf(m)!==-1)return Jc;if(Yi.indexOf(w)!==-1||Xc.indexOf(w)!==-1)return ce;if(Zc(B,e)===Vc)return dn;if(Xi.get(v[B])===Ri||(m===an||m===cn)&&Xi.get(v[h])===Ri||m===Nc||w===Nc||m===Gc||[ut,ki,or].indexOf(m)===-1&&w===Gc||[sn,sr,If,Kt,Nt].indexOf(w)!==-1||Zc(B,e)===ar||$i(Vi,ar,B,e)||$i([sn,sr],Ni,B,e)||$i(jc,jc,B,e))return ce;if(m===ut)return dn;if(m===Vi||w===Vi)return ce;if(w===Ki||m===Ki)return dn;if([ki,or,Ni].indexOf(w)!==-1||m===Tf||g===Wi&&Lf.indexOf(m)!==-1||m===Nt&&w===Wi||w===Wc||st.indexOf(w)!==-1&&m===Ve||st.indexOf(m)!==-1&&w===Ve||m===lr&&[ur,an,cn].indexOf(w)!==-1||[ur,an,cn].indexOf(m)!==-1&&w===cr||st.indexOf(m)!==-1&&Yc.indexOf(w)!==-1||Yc.indexOf(m)!==-1&&st.indexOf(w)!==-1||[lr,cr].indexOf(m)!==-1&&(w===Ve||[ar,or].indexOf(w)!==-1&&e[h+1]===Ve)||[ar,or].indexOf(m)!==-1&&w===Ve||m===Ve&&[Ve,Nt,Kt].indexOf(w)!==-1)return ce;if([Ve,Nt,Kt,sn,sr].indexOf(w)!==-1)for(var p=B;p>=0;){var u=e[p];if(u===Ve)return ce;if([Nt,Kt].indexOf(u)!==-1)p--;else break}if([lr,cr].indexOf(w)!==-1)for(var p=[sn,sr].indexOf(m)!==-1?A:B;p>=0;){var u=e[p];if(u===Ve)return ce;if([Nt,Kt].indexOf(u)!==-1)p--;else break}if(zi===m&&[zi,ln,Gi,ji].indexOf(w)!==-1||[ln,Gi].indexOf(m)!==-1&&[ln,un].indexOf(w)!==-1||[un,ji].indexOf(m)!==-1&&w===un||$c.indexOf(m)!==-1&&[Wc,cr].indexOf(w)!==-1||$c.indexOf(w)!==-1&&m===lr||st.indexOf(m)!==-1&&st.indexOf(w)!==-1||m===Kt&&st.indexOf(w)!==-1||st.concat(Ve).indexOf(m)!==-1&&w===ar&&Mf.indexOf(v[h])===-1||st.concat(Ve).indexOf(w)!==-1&&m===sr)return ce;if(m===Ji&&w===Ji){for(var f=t[B],c=1;f>0&&(f--,e[f]===Ji);)c++;if(c%2!==0)return ce}return m===an&&w===cn?ce:dn},kf=function(v,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=Df(v,e.lineBreak),o=t[0],y=t[1],B=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(y=y.map(function(h){return[Ve,Ft,zc].indexOf(h)!==-1?ur:h}));var A=e.wordBreak==="keep-all"?B.map(function(h,m){return h&&v[m]>=19968&&v[m]<=40959}):void 0;return[o,y,A]},Kf=function(){function v(e,t,o,y){this.codePoints=e,this.required=t===Jc,this.start=o,this.end=y}return v.prototype.slice=function(){return Be.apply(void 0,this.codePoints.slice(this.start,this.end))},v}(),Nf=function(v,e){var t=rn(v),o=kf(t,e),y=o[0],B=o[1],A=o[2],h=t.length,m=0,g=0;return{next:function(){if(g>=h)return{done:!0,value:null};for(var w=ce;g<h&&(w=Rf(t,B,y,++g,A))===ce;);if(w!==ce||g===h){var p=new Kf(t,w,m,g);return m=g,{value:p,done:!1}}return{done:!0,value:null}}}},Vf=1,Gf=2,dr=4,qc=8,fn=10,el=47,fr=92,jf=9,Wf=32,hn=34,hr=61,zf=35,Jf=36,Xf=37,pn=39,gn=40,pr=41,Yf=95,ke=45,$f=33,Zf=60,qf=62,eh=64,th=91,rh=93,Ah=61,nh=123,vn=63,ih=125,tl=124,oh=126,sh=128,rl=65533,Zi=42,Qt=43,ah=44,ch=58,lh=59,gr=46,uh=0,dh=8,fh=11,hh=14,ph=31,gh=127,Ze=-1,Al=48,nl=97,il=101,vh=102,yh=117,mh=122,ol=65,sl=69,al=70,wh=85,Bh=90,Oe=function(v){return v>=Al&&v<=57},Ch=function(v){return v>=55296&&v<=57343},Vt=function(v){return Oe(v)||v>=ol&&v<=al||v>=nl&&v<=vh},bh=function(v){return v>=nl&&v<=mh},_h=function(v){return v>=ol&&v<=Bh},Eh=function(v){return bh(v)||_h(v)},Fh=function(v){return v>=sh},yn=function(v){return v===fn||v===jf||v===Wf},mn=function(v){return Eh(v)||Fh(v)||v===Yf},cl=function(v){return mn(v)||Oe(v)||v===ke},Qh=function(v){return v>=uh&&v<=dh||v===fh||v>=hh&&v<=ph||v===gh},dt=function(v,e){return v!==fr?!1:e!==fn},wn=function(v,e,t){return v===ke?mn(e)||dt(e,t):mn(v)?!0:!!(v===fr&&dt(v,e))},qi=function(v,e,t){return v===Qt||v===ke?Oe(e)?!0:e===gr&&Oe(t):Oe(v===gr?e:v)},Sh=function(v){var e=0,t=1;(v[e]===Qt||v[e]===ke)&&(v[e]===ke&&(t=-1),e++);for(var o=[];Oe(v[e]);)o.push(v[e++]);var y=o.length?parseInt(Be.apply(void 0,o),10):0;v[e]===gr&&e++;for(var B=[];Oe(v[e]);)B.push(v[e++]);var A=B.length,h=A?parseInt(Be.apply(void 0,B),10):0;(v[e]===sl||v[e]===il)&&e++;var m=1;(v[e]===Qt||v[e]===ke)&&(v[e]===ke&&(m=-1),e++);for(var g=[];Oe(v[e]);)g.push(v[e++]);var w=g.length?parseInt(Be.apply(void 0,g),10):0;return t*(y+h*Math.pow(10,-A))*Math.pow(10,m*w)},Uh={type:2},Th={type:3},Ih={type:4},Ph={type:13},xh={type:8},Oh={type:21},Mh={type:9},Hh={type:10},Lh={type:11},Dh={type:12},Rh={type:14},Bn={type:23},kh={type:1},Kh={type:25},Nh={type:24},Vh={type:26},Gh={type:27},jh={type:28},Wh={type:29},zh={type:31},eo={type:32},ll=function(){function v(){this._value=[]}return v.prototype.write=function(e){this._value=this._value.concat(rn(e))},v.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==eo;)e.push(t),t=this.consumeToken();return e},v.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case hn:return this.consumeStringToken(hn);case zf:var t=this.peekCodePoint(0),o=this.peekCodePoint(1),y=this.peekCodePoint(2);if(cl(t)||dt(o,y)){var B=wn(t,o,y)?Gf:Vf,A=this.consumeName();return{type:5,value:A,flags:B}}break;case Jf:if(this.peekCodePoint(0)===hr)return this.consumeCodePoint(),Ph;break;case pn:return this.consumeStringToken(pn);case gn:return Uh;case pr:return Th;case Zi:if(this.peekCodePoint(0)===hr)return this.consumeCodePoint(),Rh;break;case Qt:if(qi(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case ah:return Ih;case ke:var h=e,m=this.peekCodePoint(0),g=this.peekCodePoint(1);if(qi(h,m,g))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(wn(h,m,g))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(m===ke&&g===qf)return this.consumeCodePoint(),this.consumeCodePoint(),Nh;break;case gr:if(qi(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case el:if(this.peekCodePoint(0)===Zi)for(this.consumeCodePoint();;){var w=this.consumeCodePoint();if(w===Zi&&(w=this.consumeCodePoint(),w===el))return this.consumeToken();if(w===Ze)return this.consumeToken()}break;case ch:return Vh;case lh:return Gh;case Zf:if(this.peekCodePoint(0)===$f&&this.peekCodePoint(1)===ke&&this.peekCodePoint(2)===ke)return this.consumeCodePoint(),this.consumeCodePoint(),Kh;break;case eh:var p=this.peekCodePoint(0),u=this.peekCodePoint(1),f=this.peekCodePoint(2);if(wn(p,u,f)){var A=this.consumeName();return{type:7,value:A}}break;case th:return jh;case fr:if(dt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case rh:return Wh;case Ah:if(this.peekCodePoint(0)===hr)return this.consumeCodePoint(),xh;break;case nh:return Lh;case ih:return Dh;case yh:case wh:var c=this.peekCodePoint(0),a=this.peekCodePoint(1);return c===Qt&&(Vt(a)||a===vn)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case tl:if(this.peekCodePoint(0)===hr)return this.consumeCodePoint(),Mh;if(this.peekCodePoint(0)===tl)return this.consumeCodePoint(),Oh;break;case oh:if(this.peekCodePoint(0)===hr)return this.consumeCodePoint(),Hh;break;case Ze:return eo}return yn(e)?(this.consumeWhiteSpace(),zh):Oe(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):mn(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:Be(e)}},v.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},v.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},v.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},v.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Vt(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var o=!1;t===vn&&e.length<6;)e.push(t),t=this.consumeCodePoint(),o=!0;if(o){var y=parseInt(Be.apply(void 0,e.map(function(m){return m===vn?Al:m})),16),B=parseInt(Be.apply(void 0,e.map(function(m){return m===vn?al:m})),16);return{type:30,start:y,end:B}}var A=parseInt(Be.apply(void 0,e),16);if(this.peekCodePoint(0)===ke&&Vt(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var h=[];Vt(t)&&h.length<6;)h.push(t),t=this.consumeCodePoint();var B=parseInt(Be.apply(void 0,h),16);return{type:30,start:A,end:B}}else return{type:30,start:A,end:A}},v.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===gn?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===gn?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},v.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ze)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===pn||t===hn){var o=this.consumeStringToken(this.consumeCodePoint());return o.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ze||this.peekCodePoint(0)===pr)?(this.consumeCodePoint(),{type:22,value:o.value}):(this.consumeBadUrlRemnants(),Bn)}for(;;){var y=this.consumeCodePoint();if(y===Ze||y===pr)return{type:22,value:Be.apply(void 0,e)};if(yn(y))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ze||this.peekCodePoint(0)===pr?(this.consumeCodePoint(),{type:22,value:Be.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Bn);if(y===hn||y===pn||y===gn||Qh(y))return this.consumeBadUrlRemnants(),Bn;if(y===fr)if(dt(y,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Bn;else e.push(y)}},v.prototype.consumeWhiteSpace=function(){for(;yn(this.peekCodePoint(0));)this.consumeCodePoint()},v.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===pr||e===Ze)return;dt(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},v.prototype.consumeStringSlice=function(e){for(var t=5e4,o="";e>0;){var y=Math.min(t,e);o+=Be.apply(void 0,this._value.splice(0,y)),e-=y}return this._value.shift(),o},v.prototype.consumeStringToken=function(e){var t="",o=0;do{var y=this._value[o];if(y===Ze||y===void 0||y===e)return t+=this.consumeStringSlice(o),{type:0,value:t};if(y===fn)return this._value.splice(0,o),kh;if(y===fr){var B=this._value[o+1];B!==Ze&&B!==void 0&&(B===fn?(t+=this.consumeStringSlice(o),o=-1,this._value.shift()):dt(y,B)&&(t+=this.consumeStringSlice(o),t+=Be(this.consumeEscapedCodePoint()),o=-1))}o++}while(!0)},v.prototype.consumeNumber=function(){var e=[],t=dr,o=this.peekCodePoint(0);for((o===Qt||o===ke)&&e.push(this.consumeCodePoint());Oe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());o=this.peekCodePoint(0);var y=this.peekCodePoint(1);if(o===gr&&Oe(y))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=qc;Oe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());o=this.peekCodePoint(0),y=this.peekCodePoint(1);var B=this.peekCodePoint(2);if((o===sl||o===il)&&((y===Qt||y===ke)&&Oe(B)||Oe(y)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=qc;Oe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[Sh(e),t]},v.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],o=e[1],y=this.peekCodePoint(0),B=this.peekCodePoint(1),A=this.peekCodePoint(2);if(wn(y,B,A)){var h=this.consumeName();return{type:15,number:t,flags:o,unit:h}}return y===Xf?(this.consumeCodePoint(),{type:16,number:t,flags:o}):{type:17,number:t,flags:o}},v.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Vt(e)){for(var t=Be(e);Vt(this.peekCodePoint(0))&&t.length<6;)t+=Be(this.consumeCodePoint());yn(this.peekCodePoint(0))&&this.consumeCodePoint();var o=parseInt(t,16);return o===0||Ch(o)||o>1114111?rl:o}return e===Ze?rl:e},v.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(cl(t))e+=Be(t);else if(dt(t,this.peekCodePoint(0)))e+=Be(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},v}(),ul=function(){function v(e){this._tokens=e}return v.create=function(e){var t=new ll;return t.write(e),new v(t.read())},v.parseValue=function(e){return v.create(e).parseComponentValue()},v.parseValues=function(e){return v.create(e).parseComponentValues()},v.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},v.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===32)return e;e.push(t),e.push()}},v.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},v.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},o=this.consumeToken();;){if(o.type===32||Xh(o,e))return t;this.reconsumeToken(o),t.values.push(this.consumeComponentValue()),o=this.consumeToken()}},v.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var o=this.consumeToken();if(o.type===32||o.type===3)return t;this.reconsumeToken(o),t.values.push(this.consumeComponentValue())}},v.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?eo:e},v.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},v}(),vr=function(v){return v.type===15},Gt=function(v){return v.type===17},fe=function(v){return v.type===20},Jh=function(v){return v.type===0},to=function(v,e){return fe(v)&&v.value===e},dl=function(v){return v.type!==31},jt=function(v){return v.type!==31&&v.type!==4},qe=function(v){var e=[],t=[];return v.forEach(function(o){if(o.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(t),t=[];return}o.type!==31&&t.push(o)}),t.length&&e.push(t),e},Xh=function(v,e){return e===11&&v.type===12||e===28&&v.type===29?!0:e===2&&v.type===3},ft=function(v){return v.type===17||v.type===15},Ee=function(v){return v.type===16||ft(v)},fl=function(v){return v.length>1?[v[0],v[1]]:[v[0]]},Te={type:17,number:0,flags:dr},ro={type:16,number:50,flags:dr},ht={type:16,number:100,flags:dr},yr=function(v,e,t){var o=v[0],y=v[1];return[pe(o,e),pe(typeof y<"u"?y:o,t)]},pe=function(v,e){if(v.type===16)return v.number/100*e;if(vr(v))switch(v.unit){case"rem":case"em":return 16*v.number;case"px":default:return v.number}return v.number},hl="deg",pl="grad",gl="rad",vl="turn",Cn={name:"angle",parse:function(v,e){if(e.type===15)switch(e.unit){case hl:return Math.PI*e.number/180;case pl:return Math.PI/200*e.number;case gl:return e.number;case vl:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},yl=function(v){return v.type===15&&(v.unit===hl||v.unit===pl||v.unit===gl||v.unit===vl)},ml=function(v){var e=v.filter(fe).map(function(t){return t.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Te,Te];case"to top":case"bottom":return Ge(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Te,ht];case"to right":case"left":return Ge(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ht,ht];case"to bottom":case"top":return Ge(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ht,Te];case"to left":case"right":return Ge(270)}return 0},Ge=function(v){return Math.PI*v/180},pt={name:"color",parse:function(v,e){if(e.type===18){var t=Yh[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(v,e.values)}if(e.type===5){if(e.value.length===3){var o=e.value.substring(0,1),y=e.value.substring(1,2),B=e.value.substring(2,3);return vt(parseInt(o+o,16),parseInt(y+y,16),parseInt(B+B,16),1)}if(e.value.length===4){var o=e.value.substring(0,1),y=e.value.substring(1,2),B=e.value.substring(2,3),A=e.value.substring(3,4);return vt(parseInt(o+o,16),parseInt(y+y,16),parseInt(B+B,16),parseInt(A+A,16)/255)}if(e.value.length===6){var o=e.value.substring(0,2),y=e.value.substring(2,4),B=e.value.substring(4,6);return vt(parseInt(o,16),parseInt(y,16),parseInt(B,16),1)}if(e.value.length===8){var o=e.value.substring(0,2),y=e.value.substring(2,4),B=e.value.substring(4,6),A=e.value.substring(6,8);return vt(parseInt(o,16),parseInt(y,16),parseInt(B,16),parseInt(A,16)/255)}}if(e.type===20){var h=at[e.value.toUpperCase()];if(typeof h<"u")return h}return at.TRANSPARENT}},gt=function(v){return(255&v)===0},Se=function(v){var e=255&v,t=255&v>>8,o=255&v>>16,y=255&v>>24;return e<255?"rgba("+y+","+o+","+t+","+e/255+")":"rgb("+y+","+o+","+t+")"},vt=function(v,e,t,o){return(v<<24|e<<16|t<<8|Math.round(o*255)<<0)>>>0},wl=function(v,e){if(v.type===17)return v.number;if(v.type===16){var t=e===3?1:255;return e===3?v.number/100*t:Math.round(v.number/100*t)}return 0},Bl=function(v,e){var t=e.filter(jt);if(t.length===3){var o=t.map(wl),y=o[0],B=o[1],A=o[2];return vt(y,B,A,1)}if(t.length===4){var h=t.map(wl),y=h[0],B=h[1],A=h[2],m=h[3];return vt(y,B,A,m)}return 0};function Ao(v,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<.16666666666666666?(e-v)*t*6+v:t<.5?e:t<.6666666666666666?(e-v)*6*(.6666666666666666-t)+v:v}var Cl=function(v,e){var t=e.filter(jt),o=t[0],y=t[1],B=t[2],A=t[3],h=(o.type===17?Ge(o.number):Cn.parse(v,o))/(Math.PI*2),m=Ee(y)?y.number/100:0,g=Ee(B)?B.number/100:0,w=typeof A<"u"&&Ee(A)?pe(A,1):1;if(m===0)return vt(g*255,g*255,g*255,1);var p=g<=.5?g*(m+1):g+m-g*m,u=g*2-p,f=Ao(u,p,h+1/3),c=Ao(u,p,h),a=Ao(u,p,h-1/3);return vt(f*255,c*255,a*255,w)},Yh={hsl:Cl,hsla:Cl,rgb:Bl,rgba:Bl},mr=function(v,e){return pt.parse(v,ul.create(e).parseComponentValue())},at={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},$h={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(v,e){return e.map(function(t){if(fe(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Zh={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},bn=function(v,e){var t=pt.parse(v,e[0]),o=e[1];return o&&Ee(o)?{color:t,stop:o}:{color:t,stop:null}},bl=function(v,e){var t=v[0],o=v[v.length-1];t.stop===null&&(t.stop=Te),o.stop===null&&(o.stop=ht);for(var y=[],B=0,A=0;A<v.length;A++){var h=v[A].stop;if(h!==null){var m=pe(h,e);m>B?y.push(m):y.push(B),B=m}else y.push(null)}for(var g=null,A=0;A<y.length;A++){var w=y[A];if(w===null)g===null&&(g=A);else if(g!==null){for(var p=A-g,u=y[g-1],f=(w-u)/(p+1),c=1;c<=p;c++)y[g+c-1]=f*c;g=null}}return v.map(function(a,n){var s=a.color;return{color:s,stop:Math.max(Math.min(1,y[n]/e),0)}})},qh=function(v,e,t){var o=e/2,y=t/2,B=pe(v[0],e)-o,A=y-pe(v[1],t);return(Math.atan2(A,B)+Math.PI*2)%(Math.PI*2)},ep=function(v,e,t){var o=typeof v=="number"?v:qh(v,e,t),y=Math.abs(e*Math.sin(o))+Math.abs(t*Math.cos(o)),B=e/2,A=t/2,h=y/2,m=Math.sin(o-Math.PI/2)*h,g=Math.cos(o-Math.PI/2)*h;return[y,B-g,B+g,A-m,A+m]},Ye=function(v,e){return Math.sqrt(v*v+e*e)},_l=function(v,e,t,o,y){var B=[[0,0],[0,e],[v,0],[v,e]];return B.reduce(function(A,h){var m=h[0],g=h[1],w=Ye(t-m,o-g);return(y?w<A.optimumDistance:w>A.optimumDistance)?{optimumCorner:h,optimumDistance:w}:A},{optimumDistance:y?1/0:-1/0,optimumCorner:null}).optimumCorner},tp=function(v,e,t,o,y){var B=0,A=0;switch(v.size){case 0:v.shape===0?B=A=Math.min(Math.abs(e),Math.abs(e-o),Math.abs(t),Math.abs(t-y)):v.shape===1&&(B=Math.min(Math.abs(e),Math.abs(e-o)),A=Math.min(Math.abs(t),Math.abs(t-y)));break;case 2:if(v.shape===0)B=A=Math.min(Ye(e,t),Ye(e,t-y),Ye(e-o,t),Ye(e-o,t-y));else if(v.shape===1){var h=Math.min(Math.abs(t),Math.abs(t-y))/Math.min(Math.abs(e),Math.abs(e-o)),m=_l(o,y,e,t,!0),g=m[0],w=m[1];B=Ye(g-e,(w-t)/h),A=h*B}break;case 1:v.shape===0?B=A=Math.max(Math.abs(e),Math.abs(e-o),Math.abs(t),Math.abs(t-y)):v.shape===1&&(B=Math.max(Math.abs(e),Math.abs(e-o)),A=Math.max(Math.abs(t),Math.abs(t-y)));break;case 3:if(v.shape===0)B=A=Math.max(Ye(e,t),Ye(e,t-y),Ye(e-o,t),Ye(e-o,t-y));else if(v.shape===1){var h=Math.max(Math.abs(t),Math.abs(t-y))/Math.max(Math.abs(e),Math.abs(e-o)),p=_l(o,y,e,t,!1),g=p[0],w=p[1];B=Ye(g-e,(w-t)/h),A=h*B}break}return Array.isArray(v.size)&&(B=pe(v.size[0],o),A=v.size.length===2?pe(v.size[1],y):B),[B,A]},rp=function(v,e){var t=Ge(180),o=[];return qe(e).forEach(function(y,B){if(B===0){var A=y[0];if(A.type===20&&A.value==="to"){t=ml(y);return}else if(yl(A)){t=Cn.parse(v,A);return}}var h=bn(v,y);o.push(h)}),{angle:t,stops:o,type:1}},_n=function(v,e){var t=Ge(180),o=[];return qe(e).forEach(function(y,B){if(B===0){var A=y[0];if(A.type===20&&["top","left","right","bottom"].indexOf(A.value)!==-1){t=ml(y);return}else if(yl(A)){t=(Cn.parse(v,A)+Ge(270))%Ge(360);return}}var h=bn(v,y);o.push(h)}),{angle:t,stops:o,type:1}},Ap=function(v,e){var t=Ge(180),o=[],y=1,B=0,A=3,h=[];return qe(e).forEach(function(m,g){var w=m[0];if(g===0){if(fe(w)&&w.value==="linear"){y=1;return}else if(fe(w)&&w.value==="radial"){y=2;return}}if(w.type===18){if(w.name==="from"){var p=pt.parse(v,w.values[0]);o.push({stop:Te,color:p})}else if(w.name==="to"){var p=pt.parse(v,w.values[0]);o.push({stop:ht,color:p})}else if(w.name==="color-stop"){var u=w.values.filter(jt);if(u.length===2){var p=pt.parse(v,u[1]),f=u[0];Gt(f)&&o.push({stop:{type:16,number:f.number*100,flags:f.flags},color:p})}}}}),y===1?{angle:(t+Ge(180))%Ge(360),stops:o,type:y}:{size:A,shape:B,stops:o,position:h,type:y}},El="closest-side",Fl="farthest-side",Ql="closest-corner",Sl="farthest-corner",Ul="circle",Tl="ellipse",Il="cover",Pl="contain",np=function(v,e){var t=0,o=3,y=[],B=[];return qe(e).forEach(function(A,h){var m=!0;if(h===0){var g=!1;m=A.reduce(function(p,u){if(g)if(fe(u))switch(u.value){case"center":return B.push(ro),p;case"top":case"left":return B.push(Te),p;case"right":case"bottom":return B.push(ht),p}else(Ee(u)||ft(u))&&B.push(u);else if(fe(u))switch(u.value){case Ul:return t=0,!1;case Tl:return t=1,!1;case"at":return g=!0,!1;case El:return o=0,!1;case Il:case Fl:return o=1,!1;case Pl:case Ql:return o=2,!1;case Sl:return o=3,!1}else if(ft(u)||Ee(u))return Array.isArray(o)||(o=[]),o.push(u),!1;return p},m)}if(m){var w=bn(v,A);y.push(w)}}),{size:o,shape:t,stops:y,position:B,type:2}},En=function(v,e){var t=0,o=3,y=[],B=[];return qe(e).forEach(function(A,h){var m=!0;if(h===0?m=A.reduce(function(w,p){if(fe(p))switch(p.value){case"center":return B.push(ro),!1;case"top":case"left":return B.push(Te),!1;case"right":case"bottom":return B.push(ht),!1}else if(Ee(p)||ft(p))return B.push(p),!1;return w},m):h===1&&(m=A.reduce(function(w,p){if(fe(p))switch(p.value){case Ul:return t=0,!1;case Tl:return t=1,!1;case Pl:case El:return o=0,!1;case Fl:return o=1,!1;case Ql:return o=2,!1;case Il:case Sl:return o=3,!1}else if(ft(p)||Ee(p))return Array.isArray(o)||(o=[]),o.push(p),!1;return w},m)),m){var g=bn(v,A);y.push(g)}}),{size:o,shape:t,stops:y,position:B,type:2}},ip=function(v){return v.type===1},op=function(v){return v.type===2},no={name:"image",parse:function(v,e){if(e.type===22){var t={url:e.value,type:0};return v.cache.addImage(e.value),t}if(e.type===18){var o=xl[e.name];if(typeof o>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return o(v,e.values)}throw new Error("Unsupported image type "+e.type)}};function sp(v){return!(v.type===20&&v.value==="none")&&(v.type!==18||!!xl[v.name])}var xl={"linear-gradient":rp,"-moz-linear-gradient":_n,"-ms-linear-gradient":_n,"-o-linear-gradient":_n,"-webkit-linear-gradient":_n,"radial-gradient":np,"-moz-radial-gradient":En,"-ms-radial-gradient":En,"-o-radial-gradient":En,"-webkit-radial-gradient":En,"-webkit-gradient":Ap},ap={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(v,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(function(o){return jt(o)&&sp(o)}).map(function(o){return no.parse(v,o)})}},cp={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(v,e){return e.map(function(t){if(fe(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},lp={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(v,e){return qe(e).map(function(t){return t.filter(Ee)}).map(fl)}},up={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(v,e){return qe(e).map(function(t){return t.filter(fe).map(function(o){return o.value}).join(" ")}).map(dp)}},dp=function(v){switch(v){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Wt;(function(v){v.AUTO="auto",v.CONTAIN="contain",v.COVER="cover"})(Wt||(Wt={}));var fp={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(v,e){return qe(e).map(function(t){return t.filter(hp)})}},hp=function(v){return fe(v)||Ee(v)},Fn=function(v){return{name:"border-"+v+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},pp=Fn("top"),gp=Fn("right"),vp=Fn("bottom"),yp=Fn("left"),Qn=function(v){return{name:"border-radius-"+v,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return fl(t.filter(Ee))}}},mp=Qn("top-left"),wp=Qn("top-right"),Bp=Qn("bottom-right"),Cp=Qn("bottom-left"),Sn=function(v){return{name:"border-"+v+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},bp=Sn("top"),_p=Sn("right"),Ep=Sn("bottom"),Fp=Sn("left"),Un=function(v){return{name:"border-"+v+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return vr(t)?t.number:0}}},Qp=Un("top"),Sp=Un("right"),Up=Un("bottom"),Tp=Un("left"),Ip={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Pp={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(v,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},xp={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(v,e){return e.filter(fe).reduce(function(t,o){return t|Op(o.value)},0)}},Op=function(v){switch(v){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Mp={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(v,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Hp={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(v,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},Tn;(function(v){v.NORMAL="normal",v.STRICT="strict"})(Tn||(Tn={}));var Lp={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(v,e){switch(e){case"strict":return Tn.STRICT;case"normal":default:return Tn.NORMAL}}},Dp={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ol=function(v,e){return fe(v)&&v.value==="normal"?1.2*e:v.type===17?e*v.number:Ee(v)?pe(v,e):e},Rp={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(v,e){return e.type===20&&e.value==="none"?null:no.parse(v,e)}},kp={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(v,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},io={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(v,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},In=function(v){return{name:"margin-"+v,initialValue:"0",prefix:!1,type:4}},Kp=In("top"),Np=In("right"),Vp=In("bottom"),Gp=In("left"),jp={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(v,e){return e.filter(fe).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Wp={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(v,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Pn=function(v){return{name:"padding-"+v,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},zp=Pn("top"),Jp=Pn("right"),Xp=Pn("bottom"),Yp=Pn("left"),$p={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(v,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Zp={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(v,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},qp={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(v,e){return e.length===1&&to(e[0],"none")?[]:qe(e).map(function(t){for(var o={color:at.TRANSPARENT,offsetX:Te,offsetY:Te,blur:Te},y=0,B=0;B<t.length;B++){var A=t[B];ft(A)?(y===0?o.offsetX=A:y===1?o.offsetY=A:o.blur=A,y++):o.color=pt.parse(v,A)}return o})}},eg={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(v,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},tg={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(v,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var t=ng[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},rg=function(v){var e=v.filter(function(t){return t.type===17}).map(function(t){return t.number});return e.length===6?e:null},Ag=function(v){var e=v.filter(function(m){return m.type===17}).map(function(m){return m.number}),t=e[0],o=e[1];e[2],e[3];var y=e[4],B=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var A=e[12],h=e[13];return e[14],e[15],e.length===16?[t,o,y,B,A,h]:null},ng={matrix:rg,matrix3d:Ag},Ml={type:16,number:50,flags:dr},ig=[Ml,Ml],og={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(v,e){var t=e.filter(Ee);return t.length!==2?ig:[t[0],t[1]]}},sg={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(v,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},wr;(function(v){v.NORMAL="normal",v.BREAK_ALL="break-all",v.KEEP_ALL="keep-all"})(wr||(wr={}));for(var ag={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(v,e){switch(e){case"break-all":return wr.BREAK_ALL;case"keep-all":return wr.KEEP_ALL;case"normal":default:return wr.NORMAL}}},cg={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(v,e){if(e.type===20)return{auto:!0,order:0};if(Gt(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Hl={name:"time",parse:function(v,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},lg={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(v,e){return Gt(e)?e.number:1}},ug={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},dg={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(v,e){return e.filter(fe).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},fg={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(v,e){var t=[],o=[];return e.forEach(function(y){switch(y.type){case 20:case 0:t.push(y.value);break;case 17:t.push(y.number.toString());break;case 4:o.push(t.join(" ")),t.length=0;break}}),t.length&&o.push(t.join(" ")),o.map(function(y){return y.indexOf(" ")===-1?y:"'"+y+"'"})}},hg={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},pg={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(v,e){if(Gt(e))return e.number;if(fe(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},gg={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(v,e){return e.filter(fe).map(function(t){return t.value})}},vg={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(v,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Qe=function(v,e){return(v&e)!==0},yg={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(v,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e}},mg={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(v,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;for(var o=[],y=e.filter(dl),B=0;B<y.length;B++){var A=y[B],h=y[B+1];if(A.type===20){var m=h&&Gt(h)?h.number:1;o.push({counter:A.value,increment:m})}}return o}},wg={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(v,e){if(e.length===0)return[];for(var t=[],o=e.filter(dl),y=0;y<o.length;y++){var B=o[y],A=o[y+1];if(fe(B)&&B.value!=="none"){var h=A&&Gt(A)?A.number:0;t.push({counter:B.value,reset:h})}}return t}},Bg={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(v,e){return e.filter(vr).map(function(t){return Hl.parse(v,t)})}},Cg={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(v,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;var o=[],y=e.filter(Jh);if(y.length%2!==0)return null;for(var B=0;B<y.length;B+=2){var A=y[B].value,h=y[B+1].value;o.push({open:A,close:h})}return o}},Ll=function(v,e,t){if(!v)return"";var o=v[Math.min(e,v.length-1)];return o?t?o.open:o.close:""},bg={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(v,e){return e.length===1&&to(e[0],"none")?[]:qe(e).map(function(t){for(var o={color:255,offsetX:Te,offsetY:Te,blur:Te,spread:Te,inset:!1},y=0,B=0;B<t.length;B++){var A=t[B];to(A,"inset")?o.inset=!0:ft(A)?(y===0?o.offsetX=A:y===1?o.offsetY=A:y===2?o.blur=A:o.spread=A,y++):o.color=pt.parse(v,A)}return o})}},_g={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(v,e){var t=[0,1,2],o=[];return e.filter(fe).forEach(function(y){switch(y.value){case"stroke":o.push(1);break;case"fill":o.push(0);break;case"markers":o.push(2);break}}),t.forEach(function(y){o.indexOf(y)===-1&&o.push(y)}),o}},Eg={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Fg={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(v,e){return vr(e)?e.number:0}},Qg=function(){function v(e,t){var o,y;this.animationDuration=ee(e,Bg,t.animationDuration),this.backgroundClip=ee(e,$h,t.backgroundClip),this.backgroundColor=ee(e,Zh,t.backgroundColor),this.backgroundImage=ee(e,ap,t.backgroundImage),this.backgroundOrigin=ee(e,cp,t.backgroundOrigin),this.backgroundPosition=ee(e,lp,t.backgroundPosition),this.backgroundRepeat=ee(e,up,t.backgroundRepeat),this.backgroundSize=ee(e,fp,t.backgroundSize),this.borderTopColor=ee(e,pp,t.borderTopColor),this.borderRightColor=ee(e,gp,t.borderRightColor),this.borderBottomColor=ee(e,vp,t.borderBottomColor),this.borderLeftColor=ee(e,yp,t.borderLeftColor),this.borderTopLeftRadius=ee(e,mp,t.borderTopLeftRadius),this.borderTopRightRadius=ee(e,wp,t.borderTopRightRadius),this.borderBottomRightRadius=ee(e,Bp,t.borderBottomRightRadius),this.borderBottomLeftRadius=ee(e,Cp,t.borderBottomLeftRadius),this.borderTopStyle=ee(e,bp,t.borderTopStyle),this.borderRightStyle=ee(e,_p,t.borderRightStyle),this.borderBottomStyle=ee(e,Ep,t.borderBottomStyle),this.borderLeftStyle=ee(e,Fp,t.borderLeftStyle),this.borderTopWidth=ee(e,Qp,t.borderTopWidth),this.borderRightWidth=ee(e,Sp,t.borderRightWidth),this.borderBottomWidth=ee(e,Up,t.borderBottomWidth),this.borderLeftWidth=ee(e,Tp,t.borderLeftWidth),this.boxShadow=ee(e,bg,t.boxShadow),this.color=ee(e,Ip,t.color),this.direction=ee(e,Pp,t.direction),this.display=ee(e,xp,t.display),this.float=ee(e,Mp,t.cssFloat),this.fontFamily=ee(e,fg,t.fontFamily),this.fontSize=ee(e,hg,t.fontSize),this.fontStyle=ee(e,vg,t.fontStyle),this.fontVariant=ee(e,gg,t.fontVariant),this.fontWeight=ee(e,pg,t.fontWeight),this.letterSpacing=ee(e,Hp,t.letterSpacing),this.lineBreak=ee(e,Lp,t.lineBreak),this.lineHeight=ee(e,Dp,t.lineHeight),this.listStyleImage=ee(e,Rp,t.listStyleImage),this.listStylePosition=ee(e,kp,t.listStylePosition),this.listStyleType=ee(e,io,t.listStyleType),this.marginTop=ee(e,Kp,t.marginTop),this.marginRight=ee(e,Np,t.marginRight),this.marginBottom=ee(e,Vp,t.marginBottom),this.marginLeft=ee(e,Gp,t.marginLeft),this.opacity=ee(e,lg,t.opacity);var B=ee(e,jp,t.overflow);this.overflowX=B[0],this.overflowY=B[B.length>1?1:0],this.overflowWrap=ee(e,Wp,t.overflowWrap),this.paddingTop=ee(e,zp,t.paddingTop),this.paddingRight=ee(e,Jp,t.paddingRight),this.paddingBottom=ee(e,Xp,t.paddingBottom),this.paddingLeft=ee(e,Yp,t.paddingLeft),this.paintOrder=ee(e,_g,t.paintOrder),this.position=ee(e,Zp,t.position),this.textAlign=ee(e,$p,t.textAlign),this.textDecorationColor=ee(e,ug,(o=t.textDecorationColor)!==null&&o!==void 0?o:t.color),this.textDecorationLine=ee(e,dg,(y=t.textDecorationLine)!==null&&y!==void 0?y:t.textDecoration),this.textShadow=ee(e,qp,t.textShadow),this.textTransform=ee(e,eg,t.textTransform),this.transform=ee(e,tg,t.transform),this.transformOrigin=ee(e,og,t.transformOrigin),this.visibility=ee(e,sg,t.visibility),this.webkitTextStrokeColor=ee(e,Eg,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=ee(e,Fg,t.webkitTextStrokeWidth),this.wordBreak=ee(e,ag,t.wordBreak),this.zIndex=ee(e,cg,t.zIndex)}return v.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},v.prototype.isTransparent=function(){return gt(this.backgroundColor)},v.prototype.isTransformed=function(){return this.transform!==null},v.prototype.isPositioned=function(){return this.position!==0},v.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},v.prototype.isFloating=function(){return this.float!==0},v.prototype.isInlineLevel=function(){return Qe(this.display,4)||Qe(this.display,33554432)||Qe(this.display,268435456)||Qe(this.display,536870912)||Qe(this.display,67108864)||Qe(this.display,134217728)},v}(),Sg=function(){function v(e,t){this.content=ee(e,yg,t.content),this.quotes=ee(e,Cg,t.quotes)}return v}(),Dl=function(){function v(e,t){this.counterIncrement=ee(e,mg,t.counterIncrement),this.counterReset=ee(e,wg,t.counterReset)}return v}(),ee=function(v,e,t){var o=new ll,y=t!==null&&typeof t<"u"?t.toString():e.initialValue;o.write(y);var B=new ul(o.read());switch(e.type){case 2:var A=B.parseComponentValue();return e.parse(v,fe(A)?A.value:e.initialValue);case 0:return e.parse(v,B.parseComponentValue());case 1:return e.parse(v,B.parseComponentValues());case 4:return B.parseComponentValue();case 3:switch(e.format){case"angle":return Cn.parse(v,B.parseComponentValue());case"color":return pt.parse(v,B.parseComponentValue());case"image":return no.parse(v,B.parseComponentValue());case"length":var h=B.parseComponentValue();return ft(h)?h:Te;case"length-percentage":var m=B.parseComponentValue();return Ee(m)?m:Te;case"time":return Hl.parse(v,B.parseComponentValue())}break}},Ug="data-html2canvas-debug",Tg=function(v){var e=v.getAttribute(Ug);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},oo=function(v,e){var t=Tg(v);return t===1||e===t},et=function(){function v(e,t){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,oo(t,3))debugger;this.styles=new Qg(e,window.getComputedStyle(t,null)),Bo(t)&&(this.styles.animationDuration.some(function(o){return o>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=tn(this.context,t),oo(t,4)&&(this.flags|=16)}return v}(),Ig="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Rl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Br=typeof Uint8Array>"u"?[]:new Uint8Array(256),xn=0;xn<Rl.length;xn++)Br[Rl.charCodeAt(xn)]=xn;for(var Pg=function(v){var e=v.length*.75,t=v.length,o,y=0,B,A,h,m;v[v.length-1]==="="&&(e--,v[v.length-2]==="="&&e--);var g=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),w=Array.isArray(g)?g:new Uint8Array(g);for(o=0;o<t;o+=4)B=Br[v.charCodeAt(o)],A=Br[v.charCodeAt(o+1)],h=Br[v.charCodeAt(o+2)],m=Br[v.charCodeAt(o+3)],w[y++]=B<<2|A>>4,w[y++]=(A&15)<<4|h>>2,w[y++]=(h&3)<<6|m&63;return g},xg=function(v){for(var e=v.length,t=[],o=0;o<e;o+=2)t.push(v[o+1]<<8|v[o]);return t},Og=function(v){for(var e=v.length,t=[],o=0;o<e;o+=4)t.push(v[o+3]<<24|v[o+2]<<16|v[o+1]<<8|v[o]);return t},St=5,so=11,ao=2,Mg=so-St,kl=65536>>St,Hg=1<<St,co=Hg-1,Lg=1024>>St,Dg=kl+Lg,Rg=Dg,kg=32,Kg=Rg+kg,Ng=65536>>so,Vg=1<<Mg,Gg=Vg-1,Kl=function(v,e,t){return v.slice?v.slice(e,t):new Uint16Array(Array.prototype.slice.call(v,e,t))},jg=function(v,e,t){return v.slice?v.slice(e,t):new Uint32Array(Array.prototype.slice.call(v,e,t))},Wg=function(v,e){var t=Pg(v),o=Array.isArray(t)?Og(t):new Uint32Array(t),y=Array.isArray(t)?xg(t):new Uint16Array(t),B=24,A=Kl(y,B/2,o[4]/2),h=o[5]===2?Kl(y,(B+o[4])/2):jg(o,Math.ceil((B+o[4])/4));return new zg(o[0],o[1],o[2],o[3],A,h)},zg=function(){function v(e,t,o,y,B,A){this.initialValue=e,this.errorValue=t,this.highStart=o,this.highValueIndex=y,this.index=B,this.data=A}return v.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>St],t=(t<<ao)+(e&co),this.data[t];if(e<=65535)return t=this.index[kl+(e-55296>>St)],t=(t<<ao)+(e&co),this.data[t];if(e<this.highStart)return t=Kg-Ng+(e>>so),t=this.index[t],t+=e>>St&Gg,t=this.index[t],t=(t<<ao)+(e&co),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},v}(),Nl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jg=typeof Uint8Array>"u"?[]:new Uint8Array(256),On=0;On<Nl.length;On++)Jg[Nl.charCodeAt(On)]=On;var Xg=1,lo=2,uo=3,Vl=4,Gl=5,Yg=7,jl=8,fo=9,ho=10,Wl=11,zl=12,Jl=13,Xl=14,po=15,$g=function(v){for(var e=[],t=0,o=v.length;t<o;){var y=v.charCodeAt(t++);if(y>=55296&&y<=56319&&t<o){var B=v.charCodeAt(t++);(B&64512)===56320?e.push(((y&1023)<<10)+(B&1023)+65536):(e.push(y),t--)}else e.push(y)}return e},Zg=function(){for(var v=[],e=0;e<arguments.length;e++)v[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,v);var t=v.length;if(!t)return"";for(var o=[],y=-1,B="";++y<t;){var A=v[y];A<=65535?o.push(A):(A-=65536,o.push((A>>10)+55296,A%1024+56320)),(y+1===t||o.length>16384)&&(B+=String.fromCharCode.apply(String,o),o.length=0)}return B},qg=Wg(Ig),je="×",go="÷",ev=function(v){return qg.get(v)},tv=function(v,e,t){var o=t-2,y=e[o],B=e[t-1],A=e[t];if(B===lo&&A===uo)return je;if(B===lo||B===uo||B===Vl||A===lo||A===uo||A===Vl)return go;if(B===jl&&[jl,fo,Wl,zl].indexOf(A)!==-1||(B===Wl||B===fo)&&(A===fo||A===ho)||(B===zl||B===ho)&&A===ho||A===Jl||A===Gl||A===Yg||B===Xg)return je;if(B===Jl&&A===Xl){for(;y===Gl;)y=e[--o];if(y===Xl)return je}if(B===po&&A===po){for(var h=0;y===po;)h++,y=e[--o];if(h%2===0)return je}return go},rv=function(v){var e=$g(v),t=e.length,o=0,y=0,B=e.map(ev);return{next:function(){if(o>=t)return{done:!0,value:null};for(var A=je;o<t&&(A=tv(e,B,++o))===je;);if(A!==je||o===t){var h=Zg.apply(null,e.slice(y,o));return y=o,{value:h,done:!1}}return{done:!0,value:null}}}},Av=function(v){for(var e=rv(v),t=[],o;!(o=e.next()).done;)o.value&&t.push(o.value.slice());return t},nv=function(v){var e=123;if(v.createRange){var t=v.createRange();if(t.getBoundingClientRect){var o=v.createElement("boundtest");o.style.height=e+"px",o.style.display="block",v.body.appendChild(o),t.selectNode(o);var y=t.getBoundingClientRect(),B=Math.round(y.height);if(v.body.removeChild(o),B===e)return!0}}return!1},iv=function(v){var e=v.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",v.body.appendChild(e);var t=v.createRange();e.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var o=e.firstChild,y=rn(o.data).map(function(m){return Be(m)}),B=0,A={},h=y.every(function(m,g){t.setStart(o,B),t.setEnd(o,B+m.length);var w=t.getBoundingClientRect();B+=m.length;var p=w.x>A.x||w.y>A.y;return A=w,g===0?!0:p});return v.body.removeChild(e),h},ov=function(){return typeof new Image().crossOrigin<"u"},sv=function(){return typeof new XMLHttpRequest().responseType=="string"},av=function(v){var e=new Image,t=v.createElement("canvas"),o=t.getContext("2d");if(!o)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{o.drawImage(e,0,0),t.toDataURL()}catch{return!1}return!0},Yl=function(v){return v[0]===0&&v[1]===255&&v[2]===0&&v[3]===255},cv=function(v){var e=v.createElement("canvas"),t=100;e.width=t,e.height=t;var o=e.getContext("2d");if(!o)return Promise.reject(!1);o.fillStyle="rgb(0, 255, 0)",o.fillRect(0,0,t,t);var y=new Image,B=e.toDataURL();y.src=B;var A=vo(t,t,0,0,y);return o.fillStyle="red",o.fillRect(0,0,t,t),$l(A).then(function(h){o.drawImage(h,0,0);var m=o.getImageData(0,0,t,t).data;o.fillStyle="red",o.fillRect(0,0,t,t);var g=v.createElement("div");return g.style.backgroundImage="url("+B+")",g.style.height=t+"px",Yl(m)?$l(vo(t,t,0,0,g)):Promise.reject(!1)}).then(function(h){return o.drawImage(h,0,0),Yl(o.getImageData(0,0,t,t).data)}).catch(function(){return!1})},vo=function(v,e,t,o,y){var B="http://www.w3.org/2000/svg",A=document.createElementNS(B,"svg"),h=document.createElementNS(B,"foreignObject");return A.setAttributeNS(null,"width",v.toString()),A.setAttributeNS(null,"height",e.toString()),h.setAttributeNS(null,"width","100%"),h.setAttributeNS(null,"height","100%"),h.setAttributeNS(null,"x",t.toString()),h.setAttributeNS(null,"y",o.toString()),h.setAttributeNS(null,"externalResourcesRequired","true"),A.appendChild(h),h.appendChild(y),A},$l=function(v){return new Promise(function(e,t){var o=new Image;o.onload=function(){return e(o)},o.onerror=t,o.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(v))})},Ie={get SUPPORT_RANGE_BOUNDS(){var v=nv(document);return Object.defineProperty(Ie,"SUPPORT_RANGE_BOUNDS",{value:v}),v},get SUPPORT_WORD_BREAKING(){var v=Ie.SUPPORT_RANGE_BOUNDS&&iv(document);return Object.defineProperty(Ie,"SUPPORT_WORD_BREAKING",{value:v}),v},get SUPPORT_SVG_DRAWING(){var v=av(document);return Object.defineProperty(Ie,"SUPPORT_SVG_DRAWING",{value:v}),v},get SUPPORT_FOREIGNOBJECT_DRAWING(){var v=typeof Array.from=="function"&&typeof window.fetch=="function"?cv(document):Promise.resolve(!1);return Object.defineProperty(Ie,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:v}),v},get SUPPORT_CORS_IMAGES(){var v=ov();return Object.defineProperty(Ie,"SUPPORT_CORS_IMAGES",{value:v}),v},get SUPPORT_RESPONSE_TYPE(){var v=sv();return Object.defineProperty(Ie,"SUPPORT_RESPONSE_TYPE",{value:v}),v},get SUPPORT_CORS_XHR(){var v="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ie,"SUPPORT_CORS_XHR",{value:v}),v},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var v=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Ie,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:v}),v}},Cr=function(){function v(e,t){this.text=e,this.bounds=t}return v}(),lv=function(v,e,t,o){var y=fv(e,t),B=[],A=0;return y.forEach(function(h){if(t.textDecorationLine.length||h.trim().length>0)if(Ie.SUPPORT_RANGE_BOUNDS){var m=Zl(o,A,h.length).getClientRects();if(m.length>1){var g=yo(h),w=0;g.forEach(function(u){B.push(new Cr(u,ot.fromDOMRectList(v,Zl(o,w+A,u.length).getClientRects()))),w+=u.length})}else B.push(new Cr(h,ot.fromDOMRectList(v,m)))}else{var p=o.splitText(h.length);B.push(new Cr(h,uv(v,o))),o=p}else Ie.SUPPORT_RANGE_BOUNDS||(o=o.splitText(h.length));A+=h.length}),B},uv=function(v,e){var t=e.ownerDocument;if(t){var o=t.createElement("html2canvaswrapper");o.appendChild(e.cloneNode(!0));var y=e.parentNode;if(y){y.replaceChild(o,e);var B=tn(v,o);return o.firstChild&&y.replaceChild(o.firstChild,o),B}}return ot.EMPTY},Zl=function(v,e,t){var o=v.ownerDocument;if(!o)throw new Error("Node has no owner document");var y=o.createRange();return y.setStart(v,e),y.setEnd(v,e+t),y},yo=function(v){if(Ie.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(v)).map(function(t){return t.segment})}return Av(v)},dv=function(v,e){if(Ie.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(v)).map(function(o){return o.segment})}return pv(v,e)},fv=function(v,e){return e.letterSpacing!==0?yo(v):dv(v,e)},hv=[32,160,4961,65792,65793,4153,4241],pv=function(v,e){for(var t=Nf(v,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),o=[],y,B=function(){if(y.value){var A=y.value.slice(),h=rn(A),m="";h.forEach(function(g){hv.indexOf(g)===-1?m+=Be(g):(m.length&&o.push(m),o.push(Be(g)),m="")}),m.length&&o.push(m)}};!(y=t.next()).done;)B();return o},gv=function(){function v(e,t,o){this.text=vv(t.data,o.textTransform),this.textBounds=lv(e,this.text,o,t)}return v}(),vv=function(v,e){switch(e){case 1:return v.toLowerCase();case 3:return v.replace(yv,mv);case 2:return v.toUpperCase();default:return v}},yv=/(^|\s|:|-|\(|\))([a-z])/g,mv=function(v,e,t){return v.length>0?e+t.toUpperCase():v},ql=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;return y.src=o.currentSrc||o.src,y.intrinsicWidth=o.naturalWidth,y.intrinsicHeight=o.naturalHeight,y.context.cache.addImage(y.src),y}return e}(et),eu=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;return y.canvas=o,y.intrinsicWidth=o.width,y.intrinsicHeight=o.height,y}return e}(et),tu=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this,B=new XMLSerializer,A=tn(t,o);return o.setAttribute("width",A.width+"px"),o.setAttribute("height",A.height+"px"),y.svg="data:image/svg+xml,"+encodeURIComponent(B.serializeToString(o)),y.intrinsicWidth=o.width.baseVal.value,y.intrinsicHeight=o.height.baseVal.value,y.context.cache.addImage(y.svg),y}return e}(et),ru=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;return y.value=o.value,y}return e}(et),mo=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;return y.start=o.start,y.reversed=typeof o.reversed=="boolean"&&o.reversed===!0,y}return e}(et),wv=[{type:15,flags:0,unit:"px",number:3}],Bv=[{type:16,flags:0,number:50}],Cv=function(v){return v.width>v.height?new ot(v.left+(v.width-v.height)/2,v.top,v.height,v.height):v.width<v.height?new ot(v.left,v.top+(v.height-v.width)/2,v.width,v.width):v},bv=function(v){var e=v.type===_v?new Array(v.value.length+1).join("•"):v.value;return e.length===0?v.placeholder||"":e},Mn="checkbox",Hn="radio",_v="password",Au=707406591,wo=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;switch(y.type=o.type.toLowerCase(),y.checked=o.checked,y.value=bv(o),(y.type===Mn||y.type===Hn)&&(y.styles.backgroundColor=3739148031,y.styles.borderTopColor=y.styles.borderRightColor=y.styles.borderBottomColor=y.styles.borderLeftColor=2779096575,y.styles.borderTopWidth=y.styles.borderRightWidth=y.styles.borderBottomWidth=y.styles.borderLeftWidth=1,y.styles.borderTopStyle=y.styles.borderRightStyle=y.styles.borderBottomStyle=y.styles.borderLeftStyle=1,y.styles.backgroundClip=[0],y.styles.backgroundOrigin=[0],y.bounds=Cv(y.bounds)),y.type){case Mn:y.styles.borderTopRightRadius=y.styles.borderTopLeftRadius=y.styles.borderBottomRightRadius=y.styles.borderBottomLeftRadius=wv;break;case Hn:y.styles.borderTopRightRadius=y.styles.borderTopLeftRadius=y.styles.borderBottomRightRadius=y.styles.borderBottomLeftRadius=Bv;break}return y}return e}(et),nu=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this,B=o.options[o.selectedIndex||0];return y.value=B&&B.text||"",y}return e}(et),iu=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;return y.value=o.value,y}return e}(et),ou=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;y.src=o.src,y.width=parseInt(o.width,10)||0,y.height=parseInt(o.height,10)||0,y.backgroundColor=y.styles.backgroundColor;try{if(o.contentWindow&&o.contentWindow.document&&o.contentWindow.document.documentElement){y.tree=au(t,o.contentWindow.document.documentElement);var B=o.contentWindow.document.documentElement?mr(t,getComputedStyle(o.contentWindow.document.documentElement).backgroundColor):at.TRANSPARENT,A=o.contentWindow.document.body?mr(t,getComputedStyle(o.contentWindow.document.body).backgroundColor):at.TRANSPARENT;y.backgroundColor=gt(B)?gt(A)?y.styles.backgroundColor:A:B}}catch{}return y}return e}(et),Ev=["OL","UL","MENU"],Ln=function(v,e,t,o){for(var y=e.firstChild,B=void 0;y;y=B)if(B=y.nextSibling,cu(y)&&y.data.trim().length>0)t.textNodes.push(new gv(v,y,t.styles));else if(zt(y))if(pu(y)&&y.assignedNodes)y.assignedNodes().forEach(function(h){return Ln(v,h,t,o)});else{var A=su(v,y);A.styles.isVisible()&&(Fv(y,A,o)?A.flags|=4:Qv(A.styles)&&(A.flags|=2),Ev.indexOf(y.tagName)!==-1&&(A.flags|=8),t.elements.push(A),y.slot,y.shadowRoot?Ln(v,y.shadowRoot,A,o):!Rn(y)&&!lu(y)&&!kn(y)&&Ln(v,y,A,o))}},su=function(v,e){return bo(e)?new ql(v,e):uu(e)?new eu(v,e):lu(e)?new tu(v,e):Sv(e)?new ru(v,e):Uv(e)?new mo(v,e):Tv(e)?new wo(v,e):kn(e)?new nu(v,e):Rn(e)?new iu(v,e):fu(e)?new ou(v,e):new et(v,e)},au=function(v,e){var t=su(v,e);return t.flags|=4,Ln(v,e,t,t),t},Fv=function(v,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Co(v)&&t.styles.isTransparent()},Qv=function(v){return v.isPositioned()||v.isFloating()},cu=function(v){return v.nodeType===Node.TEXT_NODE},zt=function(v){return v.nodeType===Node.ELEMENT_NODE},Bo=function(v){return zt(v)&&typeof v.style<"u"&&!Dn(v)},Dn=function(v){return typeof v.className=="object"},Sv=function(v){return v.tagName==="LI"},Uv=function(v){return v.tagName==="OL"},Tv=function(v){return v.tagName==="INPUT"},Iv=function(v){return v.tagName==="HTML"},lu=function(v){return v.tagName==="svg"},Co=function(v){return v.tagName==="BODY"},uu=function(v){return v.tagName==="CANVAS"},du=function(v){return v.tagName==="VIDEO"},bo=function(v){return v.tagName==="IMG"},fu=function(v){return v.tagName==="IFRAME"},hu=function(v){return v.tagName==="STYLE"},Pv=function(v){return v.tagName==="SCRIPT"},Rn=function(v){return v.tagName==="TEXTAREA"},kn=function(v){return v.tagName==="SELECT"},pu=function(v){return v.tagName==="SLOT"},gu=function(v){return v.tagName.indexOf("-")>0},xv=function(){function v(){this.counters={}}return v.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},v.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},v.prototype.pop=function(e){var t=this;e.forEach(function(o){return t.counters[o].pop()})},v.prototype.parse=function(e){var t=this,o=e.counterIncrement,y=e.counterReset,B=!0;o!==null&&o.forEach(function(h){var m=t.counters[h.counter];m&&h.increment!==0&&(B=!1,m.length||m.push(1),m[Math.max(0,m.length-1)]+=h.increment)});var A=[];return B&&y.forEach(function(h){var m=t.counters[h.counter];A.push(h.counter),m||(m=t.counters[h.counter]=[]),m.push(h.reset)}),A},v}(),vu={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},yu={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Ov={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Mv={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Jt=function(v,e,t,o,y,B){return v<e||v>t?_r(v,y,B.length>0):o.integers.reduce(function(A,h,m){for(;v>=h;)v-=h,A+=o.values[m];return A},"")+B},mu=function(v,e,t,o){var y="";do t||v--,y=o(v)+y,v/=e;while(v*e>=e);return y},Ce=function(v,e,t,o,y){var B=t-e+1;return(v<0?"-":"")+(mu(Math.abs(v),B,o,function(A){return Be(Math.floor(A%B)+e)})+y)},Ut=function(v,e,t){t===void 0&&(t=". ");var o=e.length;return mu(Math.abs(v),o,!1,function(y){return e[Math.floor(y%o)]})+t},Xt=1,yt=2,mt=4,br=8,ct=function(v,e,t,o,y,B){if(v<-9999||v>9999)return _r(v,4,y.length>0);var A=Math.abs(v),h=y;if(A===0)return e[0]+h;for(var m=0;A>0&&m<=4;m++){var g=A%10;g===0&&Qe(B,Xt)&&h!==""?h=e[g]+h:g>1||g===1&&m===0||g===1&&m===1&&Qe(B,yt)||g===1&&m===1&&Qe(B,mt)&&v>100||g===1&&m>1&&Qe(B,br)?h=e[g]+(m>0?t[m-1]:"")+h:g===1&&m>0&&(h=t[m-1]+h),A=Math.floor(A/10)}return(v<0?o:"")+h},wu="十百千萬",Bu="拾佰仟萬",Cu="マイナス",_o="마이너스",_r=function(v,e,t){var o=t?". ":"",y=t?"、":"",B=t?", ":"",A=t?" ":"";switch(e){case 0:return"•"+A;case 1:return"◦"+A;case 2:return"◾"+A;case 5:var h=Ce(v,48,57,!0,o);return h.length<4?"0"+h:h;case 4:return Ut(v,"〇一二三四五六七八九",y);case 6:return Jt(v,1,3999,vu,3,o).toLowerCase();case 7:return Jt(v,1,3999,vu,3,o);case 8:return Ce(v,945,969,!1,o);case 9:return Ce(v,97,122,!1,o);case 10:return Ce(v,65,90,!1,o);case 11:return Ce(v,1632,1641,!0,o);case 12:case 49:return Jt(v,1,9999,yu,3,o);case 35:return Jt(v,1,9999,yu,3,o).toLowerCase();case 13:return Ce(v,2534,2543,!0,o);case 14:case 30:return Ce(v,6112,6121,!0,o);case 15:return Ut(v,"子丑寅卯辰巳午未申酉戌亥",y);case 16:return Ut(v,"甲乙丙丁戊己庚辛壬癸",y);case 17:case 48:return ct(v,"零一二三四五六七八九",wu,"負",y,yt|mt|br);case 47:return ct(v,"零壹貳參肆伍陸柒捌玖",Bu,"負",y,Xt|yt|mt|br);case 42:return ct(v,"零一二三四五六七八九",wu,"负",y,yt|mt|br);case 41:return ct(v,"零壹贰叁肆伍陆柒捌玖",Bu,"负",y,Xt|yt|mt|br);case 26:return ct(v,"〇一二三四五六七八九","十百千万",Cu,y,0);case 25:return ct(v,"零壱弐参四伍六七八九","拾百千万",Cu,y,Xt|yt|mt);case 31:return ct(v,"영일이삼사오육칠팔구","십백천만",_o,B,Xt|yt|mt);case 33:return ct(v,"零一二三四五六七八九","十百千萬",_o,B,0);case 32:return ct(v,"零壹貳參四五六七八九","拾百千",_o,B,Xt|yt|mt);case 18:return Ce(v,2406,2415,!0,o);case 20:return Jt(v,1,19999,Mv,3,o);case 21:return Ce(v,2790,2799,!0,o);case 22:return Ce(v,2662,2671,!0,o);case 22:return Jt(v,1,10999,Ov,3,o);case 23:return Ut(v,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ut(v,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Ce(v,3302,3311,!0,o);case 28:return Ut(v,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",y);case 29:return Ut(v,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",y);case 34:return Ce(v,3792,3801,!0,o);case 37:return Ce(v,6160,6169,!0,o);case 38:return Ce(v,4160,4169,!0,o);case 39:return Ce(v,2918,2927,!0,o);case 40:return Ce(v,1776,1785,!0,o);case 43:return Ce(v,3046,3055,!0,o);case 44:return Ce(v,3174,3183,!0,o);case 45:return Ce(v,3664,3673,!0,o);case 46:return Ce(v,3872,3881,!0,o);case 3:default:return Ce(v,48,57,!0,o)}},bu="data-html2canvas-ignore",_u=function(){function v(e,t,o){if(this.context=e,this.options=o,this.scrolledElements=[],this.referenceElement=t,this.counters=new xv,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return v.prototype.toIFrame=function(e,t){var o=this,y=Hv(e,t);if(!y.contentWindow)return Promise.reject("Unable to find iframe window");var B=e.defaultView.pageXOffset,A=e.defaultView.pageYOffset,h=y.contentWindow,m=h.document,g=Rv(y).then(function(){return Re(o,void 0,void 0,function(){var w,p;return xe(this,function(u){switch(u.label){case 0:return this.scrolledElements.forEach(Vv),h&&(h.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(h.scrollY!==t.top||h.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(h.scrollX-t.left,h.scrollY-t.top,0,0))),w=this.options.onclone,p=this.clonedReferenceElement,typeof p>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:m.fonts&&m.fonts.ready?[4,m.fonts.ready]:[3,2];case 1:u.sent(),u.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Dv(m)]:[3,4];case 3:u.sent(),u.label=4;case 4:return typeof w=="function"?[2,Promise.resolve().then(function(){return w(m,p)}).then(function(){return y})]:[2,y]}})})});return m.open(),m.write(Kv(document.doctype)+"<html></html>"),Nv(this.referenceElement.ownerDocument,B,A),m.replaceChild(m.adoptNode(this.documentElement),m.documentElement),m.close(),g},v.prototype.createElementClone=function(e){if(oo(e,2))debugger;if(uu(e))return this.createCanvasClone(e);if(du(e))return this.createVideoClone(e);if(hu(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return bo(t)&&(bo(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),gu(t)?this.createCustomElementClone(t):t},v.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return Eo(e.style,t),t},v.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var o=[].slice.call(t.cssRules,0).reduce(function(B,A){return A&&typeof A.cssText=="string"?B+A.cssText:B},""),y=e.cloneNode(!1);return y.textContent=o,y}}catch(B){if(this.context.logger.error("Unable to access cssRules property",B),B.name!=="SecurityError")throw B}return e.cloneNode(!1)},v.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var o=e.ownerDocument.createElement("img");try{return o.src=e.toDataURL(),o}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var y=e.cloneNode(!1);try{y.width=e.width,y.height=e.height;var B=e.getContext("2d"),A=y.getContext("2d");if(A)if(!this.options.allowTaint&&B)A.putImageData(B.getImageData(0,0,e.width,e.height),0,0);else{var h=(t=e.getContext("webgl2"))!==null&&t!==void 0?t:e.getContext("webgl");if(h){var m=h.getContextAttributes();(m==null?void 0:m.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}A.drawImage(e,0,0)}return y}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return y},v.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var o=t.getContext("2d");try{return o&&(o.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||o.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var y=e.ownerDocument.createElement("canvas");return y.width=e.offsetWidth,y.height=e.offsetHeight,y},v.prototype.appendChildNode=function(e,t,o){(!zt(t)||!Pv(t)&&!t.hasAttribute(bu)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!zt(t)||!hu(t))&&e.appendChild(this.cloneNode(t,o))},v.prototype.cloneChildNodes=function(e,t,o){for(var y=this,B=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;B;B=B.nextSibling)if(zt(B)&&pu(B)&&typeof B.assignedNodes=="function"){var A=B.assignedNodes();A.length&&A.forEach(function(h){return y.appendChildNode(t,h,o)})}else this.appendChildNode(t,B,o)},v.prototype.cloneNode=function(e,t){if(cu(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var o=e.ownerDocument.defaultView;if(o&&zt(e)&&(Bo(e)||Dn(e))){var y=this.createElementClone(e);y.style.transitionProperty="none";var B=o.getComputedStyle(e),A=o.getComputedStyle(e,":before"),h=o.getComputedStyle(e,":after");this.referenceElement===e&&Bo(y)&&(this.clonedReferenceElement=y),Co(y)&&Wv(y);var m=this.counters.parse(new Dl(this.context,B)),g=this.resolvePseudoContent(e,y,A,Er.BEFORE);gu(e)&&(t=!0),du(e)||this.cloneChildNodes(e,y,t),g&&y.insertBefore(g,y.firstChild);var w=this.resolvePseudoContent(e,y,h,Er.AFTER);return w&&y.appendChild(w),this.counters.pop(m),(B&&(this.options.copyStyles||Dn(e))&&!fu(e)||t)&&Eo(B,y),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([y,e.scrollLeft,e.scrollTop]),(Rn(e)||kn(e))&&(Rn(y)||kn(y))&&(y.value=e.value),y}return e.cloneNode(!1)},v.prototype.resolvePseudoContent=function(e,t,o,y){var B=this;if(o){var A=o.content,h=t.ownerDocument;if(!(!h||!A||A==="none"||A==="-moz-alt-content"||o.display==="none")){this.counters.parse(new Dl(this.context,o));var m=new Sg(this.context,o),g=h.createElement("html2canvaspseudoelement");Eo(o,g),m.content.forEach(function(p){if(p.type===0)g.appendChild(h.createTextNode(p.value));else if(p.type===22){var u=h.createElement("img");u.src=p.value,u.style.opacity="1",g.appendChild(u)}else if(p.type===18){if(p.name==="attr"){var f=p.values.filter(fe);f.length&&g.appendChild(h.createTextNode(e.getAttribute(f[0].value)||""))}else if(p.name==="counter"){var c=p.values.filter(jt),a=c[0],n=c[1];if(a&&fe(a)){var s=B.counters.getCounterValue(a.value),r=n&&fe(n)?io.parse(B.context,n.value):3;g.appendChild(h.createTextNode(_r(s,r,!1)))}}else if(p.name==="counters"){var i=p.values.filter(jt),a=i[0],l=i[1],n=i[2];if(a&&fe(a)){var d=B.counters.getCounterValues(a.value),C=n&&fe(n)?io.parse(B.context,n.value):3,_=l&&l.type===0?l.value:"",b=d.map(function(Q){return _r(Q,C,!1)}).join(_);g.appendChild(h.createTextNode(b))}}}else if(p.type===20)switch(p.value){case"open-quote":g.appendChild(h.createTextNode(Ll(m.quotes,B.quoteDepth++,!0)));break;case"close-quote":g.appendChild(h.createTextNode(Ll(m.quotes,--B.quoteDepth,!1)));break;default:g.appendChild(h.createTextNode(p.value))}}),g.className=Fo+" "+Qo;var w=y===Er.BEFORE?" "+Fo:" "+Qo;return Dn(t)?t.className.baseValue+=w:t.className+=w,g}}},v.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},v}(),Er;(function(v){v[v.BEFORE=0]="BEFORE",v[v.AFTER=1]="AFTER"})(Er||(Er={}));var Hv=function(v,e){var t=v.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(bu,"true"),v.body.appendChild(t),t},Lv=function(v){return new Promise(function(e){if(v.complete){e();return}if(!v.src){e();return}v.onload=e,v.onerror=e})},Dv=function(v){return Promise.all([].slice.call(v.images,0).map(Lv))},Rv=function(v){return new Promise(function(e,t){var o=v.contentWindow;if(!o)return t("No window assigned for iframe");var y=o.document;o.onload=v.onload=function(){o.onload=v.onload=null;var B=setInterval(function(){y.body.childNodes.length>0&&y.readyState==="complete"&&(clearInterval(B),e(v))},50)}})},kv=["all","d","content"],Eo=function(v,e){for(var t=v.length-1;t>=0;t--){var o=v.item(t);kv.indexOf(o)===-1&&e.style.setProperty(o,v.getPropertyValue(o))}return e},Kv=function(v){var e="";return v&&(e+="<!DOCTYPE ",v.name&&(e+=v.name),v.internalSubset&&(e+=v.internalSubset),v.publicId&&(e+='"'+v.publicId+'"'),v.systemId&&(e+='"'+v.systemId+'"'),e+=">"),e},Nv=function(v,e,t){v&&v.defaultView&&(e!==v.defaultView.pageXOffset||t!==v.defaultView.pageYOffset)&&v.defaultView.scrollTo(e,t)},Vv=function(v){var e=v[0],t=v[1],o=v[2];e.scrollLeft=t,e.scrollTop=o},Gv=":before",jv=":after",Fo="___html2canvas___pseudoelement_before",Qo="___html2canvas___pseudoelement_after",Eu=`{
|
|
108
|
+
***************************************************************************** */var ss=function(r,A){return ss=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ss(r,A)};function FA(r,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");ss(r,A);function e(){this.constructor=r}r.prototype=A===null?Object.create(A):(e.prototype=A.prototype,new e)}var is=function(){return is=Object.assign||function(A){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(A[s]=e[s])}return A},is.apply(this,arguments)};function cA(r,A,e,t){function n(s){return s instanceof e?s:new e(function(i){i(s)})}return new(e||(e=Promise))(function(s,i){function o(c){try{l(t.next(c))}catch(h){i(h)}}function a(c){try{l(t.throw(c))}catch(h){i(h)}}function l(c){c.done?s(c.value):n(c.value).then(o,a)}l((t=t.apply(r,[])).next())})}function nA(r,A){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},t,n,s,i;return i={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function o(l){return function(c){return a([l,c])}}function a(l){if(t)throw new TypeError("Generator is already executing.");for(;e;)try{if(t=1,n&&(s=l[0]&2?n.return:l[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,l[1])).done)return s;switch(n=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,n=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(s=e.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){e.label=l[1];break}if(l[0]===6&&e.label<s[1]){e.label=s[1],s=l;break}if(s&&e.label<s[2]){e.label=s[2],e.ops.push(l);break}s[2]&&e.ops.pop(),e.trys.pop();continue}l=A.call(r,e)}catch(c){l=[6,c],n=0}finally{t=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Ir(r,A,e){if(arguments.length===2)for(var t=0,n=A.length,s;t<n;t++)(s||!(t in A))&&(s||(s=Array.prototype.slice.call(A,0,t)),s[t]=A[t]);return r.concat(s||A)}for(var bA=function(){function r(A,e,t,n){this.left=A,this.top=e,this.width=t,this.height=n}return r.prototype.add=function(A,e,t,n){return new r(this.left+A,this.top+e,this.width+t,this.height+n)},r.fromClientRect=function(A,e){return new r(e.left+A.windowBounds.left,e.top+A.windowBounds.top,e.width,e.height)},r.fromDOMRectList=function(A,e){var t=Array.from(e).find(function(n){return n.width!==0});return t?new r(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height):r.EMPTY},r.EMPTY=new r(0,0,0,0),r}(),Tr=function(r,A){return bA.fromClientRect(r,A.getBoundingClientRect())},Qu=function(r){var A=r.body,e=r.documentElement;if(!A||!e)throw new Error("Unable to get document size");var t=Math.max(Math.max(A.scrollWidth,e.scrollWidth),Math.max(A.offsetWidth,e.offsetWidth),Math.max(A.clientWidth,e.clientWidth)),n=Math.max(Math.max(A.scrollHeight,e.scrollHeight),Math.max(A.offsetHeight,e.offsetHeight),Math.max(A.clientHeight,e.clientHeight));return new bA(0,0,t,n)},Hr=function(r){for(var A=[],e=0,t=r.length;e<t;){var n=r.charCodeAt(e++);if(n>=55296&&n<=56319&&e<t){var s=r.charCodeAt(e++);(s&64512)===56320?A.push(((n&1023)<<10)+(s&1023)+65536):(A.push(n),e--)}else A.push(n)}return A},X=function(){for(var r=[],A=0;A<arguments.length;A++)r[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,r);var e=r.length;if(!e)return"";for(var t=[],n=-1,s="";++n<e;){var i=r[n];i<=65535?t.push(i):(i-=65536,t.push((i>>10)+55296,i%1024+56320)),(n+1===e||t.length>16384)&&(s+=String.fromCharCode.apply(String,t),t.length=0)}return s},tl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Uu=typeof Uint8Array>"u"?[]:new Uint8Array(256),Lr=0;Lr<tl.length;Lr++)Uu[tl.charCodeAt(Lr)]=Lr;for(var rl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pe=typeof Uint8Array>"u"?[]:new Uint8Array(256),br=0;br<rl.length;br++)Pe[rl.charCodeAt(br)]=br;for(var Eu=function(r){var A=r.length*.75,e=r.length,t,n=0,s,i,o,a;r[r.length-1]==="="&&(A--,r[r.length-2]==="="&&A--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<e;t+=4)s=Pe[r.charCodeAt(t)],i=Pe[r.charCodeAt(t+1)],o=Pe[r.charCodeAt(t+2)],a=Pe[r.charCodeAt(t+3)],c[n++]=s<<2|i>>4,c[n++]=(i&15)<<4|o>>2,c[n++]=(o&3)<<6|a&63;return l},yu=function(r){for(var A=r.length,e=[],t=0;t<A;t+=2)e.push(r[t+1]<<8|r[t]);return e},Su=function(r){for(var A=r.length,e=[],t=0;t<A;t+=4)e.push(r[t+3]<<24|r[t+2]<<16|r[t+1]<<8|r[t]);return e},jA=5,os=11,as=2,Iu=os-jA,nl=65536>>jA,Tu=1<<jA,ls=Tu-1,Hu=1024>>jA,Lu=nl+Hu,bu=Lu,Mu=32,Du=bu+Mu,Ru=65536>>os,Ku=1<<Iu,xu=Ku-1,sl=function(r,A,e){return r.slice?r.slice(A,e):new Uint16Array(Array.prototype.slice.call(r,A,e))},Pu=function(r,A,e){return r.slice?r.slice(A,e):new Uint32Array(Array.prototype.slice.call(r,A,e))},ku=function(r,A){var e=Eu(r),t=Array.isArray(e)?Su(e):new Uint32Array(e),n=Array.isArray(e)?yu(e):new Uint16Array(e),s=24,i=sl(n,s/2,t[4]/2),o=t[5]===2?sl(n,(s+t[4])/2):Pu(t,Math.ceil((s+t[4])/4));return new Gu(t[0],t[1],t[2],t[3],i,o)},Gu=function(){function r(A,e,t,n,s,i){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=n,this.index=s,this.data=i}return r.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>jA],e=(e<<as)+(A&ls),this.data[e];if(A<=65535)return e=this.index[nl+(A-55296>>jA)],e=(e<<as)+(A&ls),this.data[e];if(A<this.highStart)return e=Du-Ru+(A>>os),e=this.index[e],e+=A>>jA&xu,e=this.index[e],e=(e<<as)+(A&ls),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},r}(),il="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Nu=typeof Uint8Array>"u"?[]:new Uint8Array(256),Mr=0;Mr<il.length;Mr++)Nu[il.charCodeAt(Mr)]=Mr;var _u="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",ol=50,Vu=1,al=2,ll=3,Ou=4,Wu=5,cl=7,dl=8,ul=9,kA=10,cs=11,hl=12,ds=13,Xu=14,ke=15,us=16,Dr=17,Ge=18,Ju=19,gl=20,hs=21,Ne=22,gs=23,Ce=24,fA=25,_e=26,Ve=27,ve=28,zu=29,Ae=30,Yu=31,Rr=32,Kr=33,Bs=34,fs=35,ws=36,Oe=37,ps=38,xr=39,Pr=40,Cs=41,Bl=42,$u=43,Zu=[9001,65288],fl="!",K="×",kr="÷",vs=ku(_u),MA=[Ae,ws],ms=[Vu,al,ll,Wu],wl=[kA,dl],pl=[Ve,_e],qu=ms.concat(wl),Cl=[ps,xr,Pr,Bs,fs],ju=[ke,ds],Ah=function(r,A){A===void 0&&(A="strict");var e=[],t=[],n=[];return r.forEach(function(s,i){var o=vs.get(s);if(o>ol?(n.push(!0),o-=ol):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(s)!==-1)return t.push(i),e.push(us);if(o===Ou||o===cs){if(i===0)return t.push(i),e.push(Ae);var a=e[i-1];return qu.indexOf(a)===-1?(t.push(t[i-1]),e.push(a)):(t.push(i),e.push(Ae))}if(t.push(i),o===Yu)return e.push(A==="strict"?hs:Oe);if(o===Bl||o===zu)return e.push(Ae);if(o===$u)return s>=131072&&s<=196605||s>=196608&&s<=262141?e.push(Oe):e.push(Ae);e.push(o)}),[t,e,n]},Fs=function(r,A,e,t){var n=t[e];if(Array.isArray(r)?r.indexOf(n)!==-1:r===n)for(var s=e;s<=t.length;){s++;var i=t[s];if(i===A)return!0;if(i!==kA)break}if(n===kA)for(var s=e;s>0;){s--;var o=t[s];if(Array.isArray(r)?r.indexOf(o)!==-1:r===o)for(var a=e;a<=t.length;){a++;var i=t[a];if(i===A)return!0;if(i!==kA)break}if(o!==kA)break}return!1},vl=function(r,A){for(var e=r;e>=0;){var t=A[e];if(t===kA)e--;else return t}return 0},eh=function(r,A,e,t,n){if(e[t]===0)return K;var s=t-1;if(Array.isArray(n)&&n[s]===!0)return K;var i=s-1,o=s+1,a=A[s],l=i>=0?A[i]:0,c=A[o];if(a===al&&c===ll)return K;if(ms.indexOf(a)!==-1)return fl;if(ms.indexOf(c)!==-1||wl.indexOf(c)!==-1)return K;if(vl(s,A)===dl)return kr;if(vs.get(r[s])===cs||(a===Rr||a===Kr)&&vs.get(r[o])===cs||a===cl||c===cl||a===ul||[kA,ds,ke].indexOf(a)===-1&&c===ul||[Dr,Ge,Ju,Ce,ve].indexOf(c)!==-1||vl(s,A)===Ne||Fs(gs,Ne,s,A)||Fs([Dr,Ge],hs,s,A)||Fs(hl,hl,s,A))return K;if(a===kA)return kr;if(a===gs||c===gs)return K;if(c===us||a===us)return kr;if([ds,ke,hs].indexOf(c)!==-1||a===Xu||l===ws&&ju.indexOf(a)!==-1||a===ve&&c===ws||c===gl||MA.indexOf(c)!==-1&&a===fA||MA.indexOf(a)!==-1&&c===fA||a===Ve&&[Oe,Rr,Kr].indexOf(c)!==-1||[Oe,Rr,Kr].indexOf(a)!==-1&&c===_e||MA.indexOf(a)!==-1&&pl.indexOf(c)!==-1||pl.indexOf(a)!==-1&&MA.indexOf(c)!==-1||[Ve,_e].indexOf(a)!==-1&&(c===fA||[Ne,ke].indexOf(c)!==-1&&A[o+1]===fA)||[Ne,ke].indexOf(a)!==-1&&c===fA||a===fA&&[fA,ve,Ce].indexOf(c)!==-1)return K;if([fA,ve,Ce,Dr,Ge].indexOf(c)!==-1)for(var h=s;h>=0;){var d=A[h];if(d===fA)return K;if([ve,Ce].indexOf(d)!==-1)h--;else break}if([Ve,_e].indexOf(c)!==-1)for(var h=[Dr,Ge].indexOf(a)!==-1?i:s;h>=0;){var d=A[h];if(d===fA)return K;if([ve,Ce].indexOf(d)!==-1)h--;else break}if(ps===a&&[ps,xr,Bs,fs].indexOf(c)!==-1||[xr,Bs].indexOf(a)!==-1&&[xr,Pr].indexOf(c)!==-1||[Pr,fs].indexOf(a)!==-1&&c===Pr||Cl.indexOf(a)!==-1&&[gl,_e].indexOf(c)!==-1||Cl.indexOf(c)!==-1&&a===Ve||MA.indexOf(a)!==-1&&MA.indexOf(c)!==-1||a===Ce&&MA.indexOf(c)!==-1||MA.concat(fA).indexOf(a)!==-1&&c===Ne&&Zu.indexOf(r[o])===-1||MA.concat(fA).indexOf(c)!==-1&&a===Ge)return K;if(a===Cs&&c===Cs){for(var B=e[s],g=1;B>0&&(B--,A[B]===Cs);)g++;if(g%2!==0)return K}return a===Rr&&c===Kr?K:kr},th=function(r,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var e=Ah(r,A.lineBreak),t=e[0],n=e[1],s=e[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(n=n.map(function(o){return[fA,Ae,Bl].indexOf(o)!==-1?Oe:o}));var i=A.wordBreak==="keep-all"?s.map(function(o,a){return o&&r[a]>=19968&&r[a]<=40959}):void 0;return[t,n,i]},rh=function(){function r(A,e,t,n){this.codePoints=A,this.required=e===fl,this.start=t,this.end=n}return r.prototype.slice=function(){return X.apply(void 0,this.codePoints.slice(this.start,this.end))},r}(),nh=function(r,A){var e=Hr(r),t=th(e,A),n=t[0],s=t[1],i=t[2],o=e.length,a=0,l=0;return{next:function(){if(l>=o)return{done:!0,value:null};for(var c=K;l<o&&(c=eh(e,s,n,++l,i))===K;);if(c!==K||l===o){var h=new rh(e,c,a,l);return a=l,{value:h,done:!1}}return{done:!0,value:null}}}},sh=1,ih=2,We=4,ml=8,Gr=10,Fl=47,Xe=92,oh=9,ah=32,Nr=34,Je=61,lh=35,ch=36,dh=37,_r=39,Vr=40,ze=41,uh=95,uA=45,hh=33,gh=60,Bh=62,fh=64,wh=91,ph=93,Ch=61,vh=123,Or=63,mh=125,Ql=124,Fh=126,Qh=128,Ul=65533,Qs=42,ee=43,Uh=44,Eh=58,yh=59,Ye=46,Sh=0,Ih=8,Th=11,Hh=14,Lh=31,bh=127,EA=-1,El=48,yl=97,Sl=101,Mh=102,Dh=117,Rh=122,Il=65,Tl=69,Hl=70,Kh=85,xh=90,sA=function(r){return r>=El&&r<=57},Ph=function(r){return r>=55296&&r<=57343},me=function(r){return sA(r)||r>=Il&&r<=Hl||r>=yl&&r<=Mh},kh=function(r){return r>=yl&&r<=Rh},Gh=function(r){return r>=Il&&r<=xh},Nh=function(r){return kh(r)||Gh(r)},_h=function(r){return r>=Qh},Wr=function(r){return r===Gr||r===oh||r===ah},Xr=function(r){return Nh(r)||_h(r)||r===uh},Ll=function(r){return Xr(r)||sA(r)||r===uA},Vh=function(r){return r>=Sh&&r<=Ih||r===Th||r>=Hh&&r<=Lh||r===bh},GA=function(r,A){return r!==Xe?!1:A!==Gr},Jr=function(r,A,e){return r===uA?Xr(A)||GA(A,e):Xr(r)?!0:!!(r===Xe&&GA(r,A))},Us=function(r,A,e){return r===ee||r===uA?sA(A)?!0:A===Ye&&sA(e):sA(r===Ye?A:r)},Oh=function(r){var A=0,e=1;(r[A]===ee||r[A]===uA)&&(r[A]===uA&&(e=-1),A++);for(var t=[];sA(r[A]);)t.push(r[A++]);var n=t.length?parseInt(X.apply(void 0,t),10):0;r[A]===Ye&&A++;for(var s=[];sA(r[A]);)s.push(r[A++]);var i=s.length,o=i?parseInt(X.apply(void 0,s),10):0;(r[A]===Tl||r[A]===Sl)&&A++;var a=1;(r[A]===ee||r[A]===uA)&&(r[A]===uA&&(a=-1),A++);for(var l=[];sA(r[A]);)l.push(r[A++]);var c=l.length?parseInt(X.apply(void 0,l),10):0;return e*(n+o*Math.pow(10,-i))*Math.pow(10,a*c)},Wh={type:2},Xh={type:3},Jh={type:4},zh={type:13},Yh={type:8},$h={type:21},Zh={type:9},qh={type:10},jh={type:11},Ag={type:12},eg={type:14},zr={type:23},tg={type:1},rg={type:25},ng={type:24},sg={type:26},ig={type:27},og={type:28},ag={type:29},lg={type:31},Es={type:32},bl=function(){function r(){this._value=[]}return r.prototype.write=function(A){this._value=this._value.concat(Hr(A))},r.prototype.read=function(){for(var A=[],e=this.consumeToken();e!==Es;)A.push(e),e=this.consumeToken();return A},r.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Nr:return this.consumeStringToken(Nr);case lh:var e=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Ll(e)||GA(t,n)){var s=Jr(e,t,n)?ih:sh,i=this.consumeName();return{type:5,value:i,flags:s}}break;case ch:if(this.peekCodePoint(0)===Je)return this.consumeCodePoint(),zh;break;case _r:return this.consumeStringToken(_r);case Vr:return Wh;case ze:return Xh;case Qs:if(this.peekCodePoint(0)===Je)return this.consumeCodePoint(),eg;break;case ee:if(Us(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Uh:return Jh;case uA:var o=A,a=this.peekCodePoint(0),l=this.peekCodePoint(1);if(Us(o,a,l))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Jr(o,a,l))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(a===uA&&l===Bh)return this.consumeCodePoint(),this.consumeCodePoint(),ng;break;case Ye:if(Us(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Fl:if(this.peekCodePoint(0)===Qs)for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(c===Qs&&(c=this.consumeCodePoint(),c===Fl))return this.consumeToken();if(c===EA)return this.consumeToken()}break;case Eh:return sg;case yh:return ig;case gh:if(this.peekCodePoint(0)===hh&&this.peekCodePoint(1)===uA&&this.peekCodePoint(2)===uA)return this.consumeCodePoint(),this.consumeCodePoint(),rg;break;case fh:var h=this.peekCodePoint(0),d=this.peekCodePoint(1),B=this.peekCodePoint(2);if(Jr(h,d,B)){var i=this.consumeName();return{type:7,value:i}}break;case wh:return og;case Xe:if(GA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case ph:return ag;case Ch:if(this.peekCodePoint(0)===Je)return this.consumeCodePoint(),Yh;break;case vh:return jh;case mh:return Ag;case Dh:case Kh:var g=this.peekCodePoint(0),f=this.peekCodePoint(1);return g===ee&&(me(f)||f===Or)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Ql:if(this.peekCodePoint(0)===Je)return this.consumeCodePoint(),Zh;if(this.peekCodePoint(0)===Ql)return this.consumeCodePoint(),$h;break;case Fh:if(this.peekCodePoint(0)===Je)return this.consumeCodePoint(),qh;break;case EA:return Es}return Wr(A)?(this.consumeWhiteSpace(),lg):sA(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):Xr(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:X(A)}},r.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},r.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},r.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},r.prototype.consumeUnicodeRangeToken=function(){for(var A=[],e=this.consumeCodePoint();me(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();for(var t=!1;e===Or&&A.length<6;)A.push(e),e=this.consumeCodePoint(),t=!0;if(t){var n=parseInt(X.apply(void 0,A.map(function(a){return a===Or?El:a})),16),s=parseInt(X.apply(void 0,A.map(function(a){return a===Or?Hl:a})),16);return{type:30,start:n,end:s}}var i=parseInt(X.apply(void 0,A),16);if(this.peekCodePoint(0)===uA&&me(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var o=[];me(e)&&o.length<6;)o.push(e),e=this.consumeCodePoint();var s=parseInt(X.apply(void 0,o),16);return{type:30,start:i,end:s}}else return{type:30,start:i,end:i}},r.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Vr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Vr?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},r.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===EA)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===_r||e===Nr){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===EA||this.peekCodePoint(0)===ze)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),zr)}for(;;){var n=this.consumeCodePoint();if(n===EA||n===ze)return{type:22,value:X.apply(void 0,A)};if(Wr(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===EA||this.peekCodePoint(0)===ze?(this.consumeCodePoint(),{type:22,value:X.apply(void 0,A)}):(this.consumeBadUrlRemnants(),zr);if(n===Nr||n===_r||n===Vr||Vh(n))return this.consumeBadUrlRemnants(),zr;if(n===Xe)if(GA(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),zr;else A.push(n)}},r.prototype.consumeWhiteSpace=function(){for(;Wr(this.peekCodePoint(0));)this.consumeCodePoint()},r.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===ze||A===EA)return;GA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},r.prototype.consumeStringSlice=function(A){for(var e=5e4,t="";A>0;){var n=Math.min(e,A);t+=X.apply(void 0,this._value.splice(0,n)),A-=n}return this._value.shift(),t},r.prototype.consumeStringToken=function(A){var e="",t=0;do{var n=this._value[t];if(n===EA||n===void 0||n===A)return e+=this.consumeStringSlice(t),{type:0,value:e};if(n===Gr)return this._value.splice(0,t),tg;if(n===Xe){var s=this._value[t+1];s!==EA&&s!==void 0&&(s===Gr?(e+=this.consumeStringSlice(t),t=-1,this._value.shift()):GA(n,s)&&(e+=this.consumeStringSlice(t),e+=X(this.consumeEscapedCodePoint()),t=-1))}t++}while(!0)},r.prototype.consumeNumber=function(){var A=[],e=We,t=this.peekCodePoint(0);for((t===ee||t===uA)&&A.push(this.consumeCodePoint());sA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(t===Ye&&sA(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=ml;sA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var s=this.peekCodePoint(2);if((t===Tl||t===Sl)&&((n===ee||n===uA)&&sA(s)||sA(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),e=ml;sA(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[Oh(A),e]},r.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),e=A[0],t=A[1],n=this.peekCodePoint(0),s=this.peekCodePoint(1),i=this.peekCodePoint(2);if(Jr(n,s,i)){var o=this.consumeName();return{type:15,number:e,flags:t,unit:o}}return n===dh?(this.consumeCodePoint(),{type:16,number:e,flags:t}):{type:17,number:e,flags:t}},r.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(me(A)){for(var e=X(A);me(this.peekCodePoint(0))&&e.length<6;)e+=X(this.consumeCodePoint());Wr(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(e,16);return t===0||Ph(t)||t>1114111?Ul:t}return A===EA?Ul:A},r.prototype.consumeName=function(){for(var A="";;){var e=this.consumeCodePoint();if(Ll(e))A+=X(e);else if(GA(e,this.peekCodePoint(0)))A+=X(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),A}},r}(),Ml=function(){function r(A){this._tokens=A}return r.create=function(A){var e=new bl;return e.write(A),new r(e.read())},r.parseValue=function(A){return r.create(A).parseComponentValue()},r.parseValues=function(A){return r.create(A).parseComponentValues()},r.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var e=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},r.prototype.parseComponentValues=function(){for(var A=[];;){var e=this.consumeComponentValue();if(e.type===32)return A;A.push(e),A.push()}},r.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},r.prototype.consumeSimpleBlock=function(A){for(var e={type:A,values:[]},t=this.consumeToken();;){if(t.type===32||dg(t,A))return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue()),t=this.consumeToken()}},r.prototype.consumeFunction=function(A){for(var e={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(t.type===32||t.type===3)return e;this.reconsumeToken(t),e.values.push(this.consumeComponentValue())}},r.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?Es:A},r.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},r}(),$e=function(r){return r.type===15},Fe=function(r){return r.type===17},N=function(r){return r.type===20},cg=function(r){return r.type===0},ys=function(r,A){return N(r)&&r.value===A},Dl=function(r){return r.type!==31},Qe=function(r){return r.type!==31&&r.type!==4},yA=function(r){var A=[],e=[];return r.forEach(function(t){if(t.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(e),e=[];return}t.type!==31&&e.push(t)}),e.length&&A.push(e),A},dg=function(r,A){return A===11&&r.type===12||A===28&&r.type===29?!0:A===2&&r.type===3},NA=function(r){return r.type===17||r.type===15},Y=function(r){return r.type===16||NA(r)},Rl=function(r){return r.length>1?[r[0],r[1]]:[r[0]]},AA={type:17,number:0,flags:We},Ss={type:16,number:50,flags:We},_A={type:16,number:100,flags:We},Ze=function(r,A,e){var t=r[0],n=r[1];return[_(t,A),_(typeof n<"u"?n:t,e)]},_=function(r,A){if(r.type===16)return r.number/100*A;if($e(r))switch(r.unit){case"rem":case"em":return 16*r.number;case"px":default:return r.number}return r.number},Kl="deg",xl="grad",Pl="rad",kl="turn",Yr={name:"angle",parse:function(r,A){if(A.type===15)switch(A.unit){case Kl:return Math.PI*A.number/180;case xl:return Math.PI/200*A.number;case Pl:return A.number;case kl:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},Gl=function(r){return r.type===15&&(r.unit===Kl||r.unit===xl||r.unit===Pl||r.unit===kl)},Nl=function(r){var A=r.filter(N).map(function(e){return e.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[AA,AA];case"to top":case"bottom":return wA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[AA,_A];case"to right":case"left":return wA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[_A,_A];case"to bottom":case"top":return wA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[_A,AA];case"to left":case"right":return wA(270)}return 0},wA=function(r){return Math.PI*r/180},VA={name:"color",parse:function(r,A){if(A.type===18){var e=ug[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return e(r,A.values)}if(A.type===5){if(A.value.length===3){var t=A.value.substring(0,1),n=A.value.substring(1,2),s=A.value.substring(2,3);return WA(parseInt(t+t,16),parseInt(n+n,16),parseInt(s+s,16),1)}if(A.value.length===4){var t=A.value.substring(0,1),n=A.value.substring(1,2),s=A.value.substring(2,3),i=A.value.substring(3,4);return WA(parseInt(t+t,16),parseInt(n+n,16),parseInt(s+s,16),parseInt(i+i,16)/255)}if(A.value.length===6){var t=A.value.substring(0,2),n=A.value.substring(2,4),s=A.value.substring(4,6);return WA(parseInt(t,16),parseInt(n,16),parseInt(s,16),1)}if(A.value.length===8){var t=A.value.substring(0,2),n=A.value.substring(2,4),s=A.value.substring(4,6),i=A.value.substring(6,8);return WA(parseInt(t,16),parseInt(n,16),parseInt(s,16),parseInt(i,16)/255)}}if(A.type===20){var o=DA[A.value.toUpperCase()];if(typeof o<"u")return o}return DA.TRANSPARENT}},OA=function(r){return(255&r)===0},q=function(r){var A=255&r,e=255&r>>8,t=255&r>>16,n=255&r>>24;return A<255?"rgba("+n+","+t+","+e+","+A/255+")":"rgb("+n+","+t+","+e+")"},WA=function(r,A,e,t){return(r<<24|A<<16|e<<8|Math.round(t*255)<<0)>>>0},_l=function(r,A){if(r.type===17)return r.number;if(r.type===16){var e=A===3?1:255;return A===3?r.number/100*e:Math.round(r.number/100*e)}return 0},Vl=function(r,A){var e=A.filter(Qe);if(e.length===3){var t=e.map(_l),n=t[0],s=t[1],i=t[2];return WA(n,s,i,1)}if(e.length===4){var o=e.map(_l),n=o[0],s=o[1],i=o[2],a=o[3];return WA(n,s,i,a)}return 0};function Is(r,A,e){return e<0&&(e+=1),e>=1&&(e-=1),e<.16666666666666666?(A-r)*e*6+r:e<.5?A:e<.6666666666666666?(A-r)*6*(.6666666666666666-e)+r:r}var Ol=function(r,A){var e=A.filter(Qe),t=e[0],n=e[1],s=e[2],i=e[3],o=(t.type===17?wA(t.number):Yr.parse(r,t))/(Math.PI*2),a=Y(n)?n.number/100:0,l=Y(s)?s.number/100:0,c=typeof i<"u"&&Y(i)?_(i,1):1;if(a===0)return WA(l*255,l*255,l*255,1);var h=l<=.5?l*(a+1):l+a-l*a,d=l*2-h,B=Is(d,h,o+1/3),g=Is(d,h,o),f=Is(d,h,o-1/3);return WA(B*255,g*255,f*255,c)},ug={hsl:Ol,hsla:Ol,rgb:Vl,rgba:Vl},qe=function(r,A){return VA.parse(r,Ml.create(A).parseComponentValue())},DA={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},hg={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(r,A){return A.map(function(e){if(N(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},gg={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$r=function(r,A){var e=VA.parse(r,A[0]),t=A[1];return t&&Y(t)?{color:e,stop:t}:{color:e,stop:null}},Wl=function(r,A){var e=r[0],t=r[r.length-1];e.stop===null&&(e.stop=AA),t.stop===null&&(t.stop=_A);for(var n=[],s=0,i=0;i<r.length;i++){var o=r[i].stop;if(o!==null){var a=_(o,A);a>s?n.push(a):n.push(s),s=a}else n.push(null)}for(var l=null,i=0;i<n.length;i++){var c=n[i];if(c===null)l===null&&(l=i);else if(l!==null){for(var h=i-l,d=n[l-1],B=(c-d)/(h+1),g=1;g<=h;g++)n[l+g-1]=B*g;l=null}}return r.map(function(f,m){var F=f.color;return{color:F,stop:Math.max(Math.min(1,n[m]/A),0)}})},Bg=function(r,A,e){var t=A/2,n=e/2,s=_(r[0],A)-t,i=n-_(r[1],e);return(Math.atan2(i,s)+Math.PI*2)%(Math.PI*2)},fg=function(r,A,e){var t=typeof r=="number"?r:Bg(r,A,e),n=Math.abs(A*Math.sin(t))+Math.abs(e*Math.cos(t)),s=A/2,i=e/2,o=n/2,a=Math.sin(t-Math.PI/2)*o,l=Math.cos(t-Math.PI/2)*o;return[n,s-l,s+l,i-a,i+a]},QA=function(r,A){return Math.sqrt(r*r+A*A)},Xl=function(r,A,e,t,n){var s=[[0,0],[0,A],[r,0],[r,A]];return s.reduce(function(i,o){var a=o[0],l=o[1],c=QA(e-a,t-l);return(n?c<i.optimumDistance:c>i.optimumDistance)?{optimumCorner:o,optimumDistance:c}:i},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},wg=function(r,A,e,t,n){var s=0,i=0;switch(r.size){case 0:r.shape===0?s=i=Math.min(Math.abs(A),Math.abs(A-t),Math.abs(e),Math.abs(e-n)):r.shape===1&&(s=Math.min(Math.abs(A),Math.abs(A-t)),i=Math.min(Math.abs(e),Math.abs(e-n)));break;case 2:if(r.shape===0)s=i=Math.min(QA(A,e),QA(A,e-n),QA(A-t,e),QA(A-t,e-n));else if(r.shape===1){var o=Math.min(Math.abs(e),Math.abs(e-n))/Math.min(Math.abs(A),Math.abs(A-t)),a=Xl(t,n,A,e,!0),l=a[0],c=a[1];s=QA(l-A,(c-e)/o),i=o*s}break;case 1:r.shape===0?s=i=Math.max(Math.abs(A),Math.abs(A-t),Math.abs(e),Math.abs(e-n)):r.shape===1&&(s=Math.max(Math.abs(A),Math.abs(A-t)),i=Math.max(Math.abs(e),Math.abs(e-n)));break;case 3:if(r.shape===0)s=i=Math.max(QA(A,e),QA(A,e-n),QA(A-t,e),QA(A-t,e-n));else if(r.shape===1){var o=Math.max(Math.abs(e),Math.abs(e-n))/Math.max(Math.abs(A),Math.abs(A-t)),h=Xl(t,n,A,e,!1),l=h[0],c=h[1];s=QA(l-A,(c-e)/o),i=o*s}break}return Array.isArray(r.size)&&(s=_(r.size[0],t),i=r.size.length===2?_(r.size[1],n):s),[s,i]},pg=function(r,A){var e=wA(180),t=[];return yA(A).forEach(function(n,s){if(s===0){var i=n[0];if(i.type===20&&i.value==="to"){e=Nl(n);return}else if(Gl(i)){e=Yr.parse(r,i);return}}var o=$r(r,n);t.push(o)}),{angle:e,stops:t,type:1}},Zr=function(r,A){var e=wA(180),t=[];return yA(A).forEach(function(n,s){if(s===0){var i=n[0];if(i.type===20&&["top","left","right","bottom"].indexOf(i.value)!==-1){e=Nl(n);return}else if(Gl(i)){e=(Yr.parse(r,i)+wA(270))%wA(360);return}}var o=$r(r,n);t.push(o)}),{angle:e,stops:t,type:1}},Cg=function(r,A){var e=wA(180),t=[],n=1,s=0,i=3,o=[];return yA(A).forEach(function(a,l){var c=a[0];if(l===0){if(N(c)&&c.value==="linear"){n=1;return}else if(N(c)&&c.value==="radial"){n=2;return}}if(c.type===18){if(c.name==="from"){var h=VA.parse(r,c.values[0]);t.push({stop:AA,color:h})}else if(c.name==="to"){var h=VA.parse(r,c.values[0]);t.push({stop:_A,color:h})}else if(c.name==="color-stop"){var d=c.values.filter(Qe);if(d.length===2){var h=VA.parse(r,d[1]),B=d[0];Fe(B)&&t.push({stop:{type:16,number:B.number*100,flags:B.flags},color:h})}}}}),n===1?{angle:(e+wA(180))%wA(360),stops:t,type:n}:{size:i,shape:s,stops:t,position:o,type:n}},Jl="closest-side",zl="farthest-side",Yl="closest-corner",$l="farthest-corner",Zl="circle",ql="ellipse",jl="cover",Ac="contain",vg=function(r,A){var e=0,t=3,n=[],s=[];return yA(A).forEach(function(i,o){var a=!0;if(o===0){var l=!1;a=i.reduce(function(h,d){if(l)if(N(d))switch(d.value){case"center":return s.push(Ss),h;case"top":case"left":return s.push(AA),h;case"right":case"bottom":return s.push(_A),h}else(Y(d)||NA(d))&&s.push(d);else if(N(d))switch(d.value){case Zl:return e=0,!1;case ql:return e=1,!1;case"at":return l=!0,!1;case Jl:return t=0,!1;case jl:case zl:return t=1,!1;case Ac:case Yl:return t=2,!1;case $l:return t=3,!1}else if(NA(d)||Y(d))return Array.isArray(t)||(t=[]),t.push(d),!1;return h},a)}if(a){var c=$r(r,i);n.push(c)}}),{size:t,shape:e,stops:n,position:s,type:2}},qr=function(r,A){var e=0,t=3,n=[],s=[];return yA(A).forEach(function(i,o){var a=!0;if(o===0?a=i.reduce(function(c,h){if(N(h))switch(h.value){case"center":return s.push(Ss),!1;case"top":case"left":return s.push(AA),!1;case"right":case"bottom":return s.push(_A),!1}else if(Y(h)||NA(h))return s.push(h),!1;return c},a):o===1&&(a=i.reduce(function(c,h){if(N(h))switch(h.value){case Zl:return e=0,!1;case ql:return e=1,!1;case Ac:case Jl:return t=0,!1;case zl:return t=1,!1;case Yl:return t=2,!1;case jl:case $l:return t=3,!1}else if(NA(h)||Y(h))return Array.isArray(t)||(t=[]),t.push(h),!1;return c},a)),a){var l=$r(r,i);n.push(l)}}),{size:t,shape:e,stops:n,position:s,type:2}},mg=function(r){return r.type===1},Fg=function(r){return r.type===2},Ts={name:"image",parse:function(r,A){if(A.type===22){var e={url:A.value,type:0};return r.cache.addImage(A.value),e}if(A.type===18){var t=ec[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return t(r,A.values)}throw new Error("Unsupported image type "+A.type)}};function Qg(r){return!(r.type===20&&r.value==="none")&&(r.type!==18||!!ec[r.name])}var ec={"linear-gradient":pg,"-moz-linear-gradient":Zr,"-ms-linear-gradient":Zr,"-o-linear-gradient":Zr,"-webkit-linear-gradient":Zr,"radial-gradient":vg,"-moz-radial-gradient":qr,"-ms-radial-gradient":qr,"-o-radial-gradient":qr,"-webkit-radial-gradient":qr,"-webkit-gradient":Cg},Ug={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(r,A){if(A.length===0)return[];var e=A[0];return e.type===20&&e.value==="none"?[]:A.filter(function(t){return Qe(t)&&Qg(t)}).map(function(t){return Ts.parse(r,t)})}},Eg={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(r,A){return A.map(function(e){if(N(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},yg={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(r,A){return yA(A).map(function(e){return e.filter(Y)}).map(Rl)}},Sg={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(r,A){return yA(A).map(function(e){return e.filter(N).map(function(t){return t.value}).join(" ")}).map(Ig)}},Ig=function(r){switch(r){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Ue;(function(r){r.AUTO="auto",r.CONTAIN="contain",r.COVER="cover"})(Ue||(Ue={}));var Tg={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(r,A){return yA(A).map(function(e){return e.filter(Hg)})}},Hg=function(r){return N(r)||Y(r)},jr=function(r){return{name:"border-"+r+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Lg=jr("top"),bg=jr("right"),Mg=jr("bottom"),Dg=jr("left"),An=function(r){return{name:"border-radius-"+r,initialValue:"0 0",prefix:!1,type:1,parse:function(A,e){return Rl(e.filter(Y))}}},Rg=An("top-left"),Kg=An("top-right"),xg=An("bottom-right"),Pg=An("bottom-left"),en=function(r){return{name:"border-"+r+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},kg=en("top"),Gg=en("right"),Ng=en("bottom"),_g=en("left"),tn=function(r){return{name:"border-"+r+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,e){return $e(e)?e.number:0}}},Vg=tn("top"),Og=tn("right"),Wg=tn("bottom"),Xg=tn("left"),Jg={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},zg={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(r,A){switch(A){case"rtl":return 1;case"ltr":default:return 0}}},Yg={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(r,A){return A.filter(N).reduce(function(e,t){return e|$g(t.value)},0)}},$g=function(r){switch(r){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Zg={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(r,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},qg={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(r,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},rn;(function(r){r.NORMAL="normal",r.STRICT="strict"})(rn||(rn={}));var jg={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,A){switch(A){case"strict":return rn.STRICT;case"normal":default:return rn.NORMAL}}},AB={name:"line-height",initialValue:"normal",prefix:!1,type:4},tc=function(r,A){return N(r)&&r.value==="normal"?1.2*A:r.type===17?A*r.number:Y(r)?_(r,A):A},eB={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(r,A){return A.type===20&&A.value==="none"?null:Ts.parse(r,A)}},tB={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(r,A){switch(A){case"inside":return 0;case"outside":default:return 1}}},Hs={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(r,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},nn=function(r){return{name:"margin-"+r,initialValue:"0",prefix:!1,type:4}},rB=nn("top"),nB=nn("right"),sB=nn("bottom"),iB=nn("left"),oB={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(r,A){return A.filter(N).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},aB={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(r,A){switch(A){case"break-word":return"break-word";case"normal":default:return"normal"}}},sn=function(r){return{name:"padding-"+r,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},lB=sn("top"),cB=sn("right"),dB=sn("bottom"),uB=sn("left"),hB={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(r,A){switch(A){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},gB={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(r,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},BB={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,A){return A.length===1&&ys(A[0],"none")?[]:yA(A).map(function(e){for(var t={color:DA.TRANSPARENT,offsetX:AA,offsetY:AA,blur:AA},n=0,s=0;s<e.length;s++){var i=e[s];NA(i)?(n===0?t.offsetX=i:n===1?t.offsetY=i:t.blur=i,n++):t.color=VA.parse(r,i)}return t})}},fB={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(r,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},wB={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(r,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var e=vB[A.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return e(A.values)}return null}},pB=function(r){var A=r.filter(function(e){return e.type===17}).map(function(e){return e.number});return A.length===6?A:null},CB=function(r){var A=r.filter(function(a){return a.type===17}).map(function(a){return a.number}),e=A[0],t=A[1];A[2],A[3];var n=A[4],s=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var i=A[12],o=A[13];return A[14],A[15],A.length===16?[e,t,n,s,i,o]:null},vB={matrix:pB,matrix3d:CB},rc={type:16,number:50,flags:We},mB=[rc,rc],FB={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(r,A){var e=A.filter(Y);return e.length!==2?mB:[e[0],e[1]]}},QB={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(r,A){switch(A){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},je;(function(r){r.NORMAL="normal",r.BREAK_ALL="break-all",r.KEEP_ALL="keep-all"})(je||(je={}));for(var UB={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,A){switch(A){case"break-all":return je.BREAK_ALL;case"keep-all":return je.KEEP_ALL;case"normal":default:return je.NORMAL}}},EB={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(r,A){if(A.type===20)return{auto:!0,order:0};if(Fe(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},nc={name:"time",parse:function(r,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},yB={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(r,A){return Fe(A)?A.number:1}},SB={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},IB={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(r,A){return A.filter(N).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return e!==0})}},TB={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(r,A){var e=[],t=[];return A.forEach(function(n){switch(n.type){case 20:case 0:e.push(n.value);break;case 17:e.push(n.number.toString());break;case 4:t.push(e.join(" ")),e.length=0;break}}),e.length&&t.push(e.join(" ")),t.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},HB={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},LB={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(r,A){if(Fe(A))return A.number;if(N(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},bB={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(r,A){return A.filter(N).map(function(e){return e.value})}},MB={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(r,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Z=function(r,A){return(r&A)!==0},DB={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(r,A){if(A.length===0)return[];var e=A[0];return e.type===20&&e.value==="none"?[]:A}},RB={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(r,A){if(A.length===0)return null;var e=A[0];if(e.type===20&&e.value==="none")return null;for(var t=[],n=A.filter(Dl),s=0;s<n.length;s++){var i=n[s],o=n[s+1];if(i.type===20){var a=o&&Fe(o)?o.number:1;t.push({counter:i.value,increment:a})}}return t}},KB={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(r,A){if(A.length===0)return[];for(var e=[],t=A.filter(Dl),n=0;n<t.length;n++){var s=t[n],i=t[n+1];if(N(s)&&s.value!=="none"){var o=i&&Fe(i)?i.number:0;e.push({counter:s.value,reset:o})}}return e}},xB={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(r,A){return A.filter($e).map(function(e){return nc.parse(r,e)})}},PB={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(r,A){if(A.length===0)return null;var e=A[0];if(e.type===20&&e.value==="none")return null;var t=[],n=A.filter(cg);if(n.length%2!==0)return null;for(var s=0;s<n.length;s+=2){var i=n[s].value,o=n[s+1].value;t.push({open:i,close:o})}return t}},sc=function(r,A,e){if(!r)return"";var t=r[Math.min(A,r.length-1)];return t?e?t.open:t.close:""},kB={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,A){return A.length===1&&ys(A[0],"none")?[]:yA(A).map(function(e){for(var t={color:255,offsetX:AA,offsetY:AA,blur:AA,spread:AA,inset:!1},n=0,s=0;s<e.length;s++){var i=e[s];ys(i,"inset")?t.inset=!0:NA(i)?(n===0?t.offsetX=i:n===1?t.offsetY=i:n===2?t.blur=i:t.spread=i,n++):t.color=VA.parse(r,i)}return t})}},GB={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(r,A){var e=[0,1,2],t=[];return A.filter(N).forEach(function(n){switch(n.value){case"stroke":t.push(1);break;case"fill":t.push(0);break;case"markers":t.push(2);break}}),e.forEach(function(n){t.indexOf(n)===-1&&t.push(n)}),t}},NB={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},_B={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(r,A){return $e(A)?A.number:0}},VB=function(){function r(A,e){var t,n;this.animationDuration=I(A,xB,e.animationDuration),this.backgroundClip=I(A,hg,e.backgroundClip),this.backgroundColor=I(A,gg,e.backgroundColor),this.backgroundImage=I(A,Ug,e.backgroundImage),this.backgroundOrigin=I(A,Eg,e.backgroundOrigin),this.backgroundPosition=I(A,yg,e.backgroundPosition),this.backgroundRepeat=I(A,Sg,e.backgroundRepeat),this.backgroundSize=I(A,Tg,e.backgroundSize),this.borderTopColor=I(A,Lg,e.borderTopColor),this.borderRightColor=I(A,bg,e.borderRightColor),this.borderBottomColor=I(A,Mg,e.borderBottomColor),this.borderLeftColor=I(A,Dg,e.borderLeftColor),this.borderTopLeftRadius=I(A,Rg,e.borderTopLeftRadius),this.borderTopRightRadius=I(A,Kg,e.borderTopRightRadius),this.borderBottomRightRadius=I(A,xg,e.borderBottomRightRadius),this.borderBottomLeftRadius=I(A,Pg,e.borderBottomLeftRadius),this.borderTopStyle=I(A,kg,e.borderTopStyle),this.borderRightStyle=I(A,Gg,e.borderRightStyle),this.borderBottomStyle=I(A,Ng,e.borderBottomStyle),this.borderLeftStyle=I(A,_g,e.borderLeftStyle),this.borderTopWidth=I(A,Vg,e.borderTopWidth),this.borderRightWidth=I(A,Og,e.borderRightWidth),this.borderBottomWidth=I(A,Wg,e.borderBottomWidth),this.borderLeftWidth=I(A,Xg,e.borderLeftWidth),this.boxShadow=I(A,kB,e.boxShadow),this.color=I(A,Jg,e.color),this.direction=I(A,zg,e.direction),this.display=I(A,Yg,e.display),this.float=I(A,Zg,e.cssFloat),this.fontFamily=I(A,TB,e.fontFamily),this.fontSize=I(A,HB,e.fontSize),this.fontStyle=I(A,MB,e.fontStyle),this.fontVariant=I(A,bB,e.fontVariant),this.fontWeight=I(A,LB,e.fontWeight),this.letterSpacing=I(A,qg,e.letterSpacing),this.lineBreak=I(A,jg,e.lineBreak),this.lineHeight=I(A,AB,e.lineHeight),this.listStyleImage=I(A,eB,e.listStyleImage),this.listStylePosition=I(A,tB,e.listStylePosition),this.listStyleType=I(A,Hs,e.listStyleType),this.marginTop=I(A,rB,e.marginTop),this.marginRight=I(A,nB,e.marginRight),this.marginBottom=I(A,sB,e.marginBottom),this.marginLeft=I(A,iB,e.marginLeft),this.opacity=I(A,yB,e.opacity);var s=I(A,oB,e.overflow);this.overflowX=s[0],this.overflowY=s[s.length>1?1:0],this.overflowWrap=I(A,aB,e.overflowWrap),this.paddingTop=I(A,lB,e.paddingTop),this.paddingRight=I(A,cB,e.paddingRight),this.paddingBottom=I(A,dB,e.paddingBottom),this.paddingLeft=I(A,uB,e.paddingLeft),this.paintOrder=I(A,GB,e.paintOrder),this.position=I(A,gB,e.position),this.textAlign=I(A,hB,e.textAlign),this.textDecorationColor=I(A,SB,(t=e.textDecorationColor)!==null&&t!==void 0?t:e.color),this.textDecorationLine=I(A,IB,(n=e.textDecorationLine)!==null&&n!==void 0?n:e.textDecoration),this.textShadow=I(A,BB,e.textShadow),this.textTransform=I(A,fB,e.textTransform),this.transform=I(A,wB,e.transform),this.transformOrigin=I(A,FB,e.transformOrigin),this.visibility=I(A,QB,e.visibility),this.webkitTextStrokeColor=I(A,NB,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=I(A,_B,e.webkitTextStrokeWidth),this.wordBreak=I(A,UB,e.wordBreak),this.zIndex=I(A,EB,e.zIndex)}return r.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},r.prototype.isTransparent=function(){return OA(this.backgroundColor)},r.prototype.isTransformed=function(){return this.transform!==null},r.prototype.isPositioned=function(){return this.position!==0},r.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},r.prototype.isFloating=function(){return this.float!==0},r.prototype.isInlineLevel=function(){return Z(this.display,4)||Z(this.display,33554432)||Z(this.display,268435456)||Z(this.display,536870912)||Z(this.display,67108864)||Z(this.display,134217728)},r}(),OB=function(){function r(A,e){this.content=I(A,DB,e.content),this.quotes=I(A,PB,e.quotes)}return r}(),ic=function(){function r(A,e){this.counterIncrement=I(A,RB,e.counterIncrement),this.counterReset=I(A,KB,e.counterReset)}return r}(),I=function(r,A,e){var t=new bl,n=e!==null&&typeof e<"u"?e.toString():A.initialValue;t.write(n);var s=new Ml(t.read());switch(A.type){case 2:var i=s.parseComponentValue();return A.parse(r,N(i)?i.value:A.initialValue);case 0:return A.parse(r,s.parseComponentValue());case 1:return A.parse(r,s.parseComponentValues());case 4:return s.parseComponentValue();case 3:switch(A.format){case"angle":return Yr.parse(r,s.parseComponentValue());case"color":return VA.parse(r,s.parseComponentValue());case"image":return Ts.parse(r,s.parseComponentValue());case"length":var o=s.parseComponentValue();return NA(o)?o:AA;case"length-percentage":var a=s.parseComponentValue();return Y(a)?a:AA;case"time":return nc.parse(r,s.parseComponentValue())}break}},WB="data-html2canvas-debug",XB=function(r){var A=r.getAttribute(WB);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Ls=function(r,A){var e=XB(r);return e===1||A===e},SA=function(){function r(A,e){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Ls(e,3))debugger;this.styles=new VB(A,window.getComputedStyle(e,null)),Ws(e)&&(this.styles.animationDuration.some(function(t){return t>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=Tr(this.context,e),Ls(e,4)&&(this.flags|=16)}return r}(),JB="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",oc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",At=typeof Uint8Array>"u"?[]:new Uint8Array(256),on=0;on<oc.length;on++)At[oc.charCodeAt(on)]=on;for(var zB=function(r){var A=r.length*.75,e=r.length,t,n=0,s,i,o,a;r[r.length-1]==="="&&(A--,r[r.length-2]==="="&&A--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<e;t+=4)s=At[r.charCodeAt(t)],i=At[r.charCodeAt(t+1)],o=At[r.charCodeAt(t+2)],a=At[r.charCodeAt(t+3)],c[n++]=s<<2|i>>4,c[n++]=(i&15)<<4|o>>2,c[n++]=(o&3)<<6|a&63;return l},YB=function(r){for(var A=r.length,e=[],t=0;t<A;t+=2)e.push(r[t+1]<<8|r[t]);return e},$B=function(r){for(var A=r.length,e=[],t=0;t<A;t+=4)e.push(r[t+3]<<24|r[t+2]<<16|r[t+1]<<8|r[t]);return e},te=5,bs=11,Ms=2,ZB=bs-te,ac=65536>>te,qB=1<<te,Ds=qB-1,jB=1024>>te,Af=ac+jB,ef=Af,tf=32,rf=ef+tf,nf=65536>>bs,sf=1<<ZB,of=sf-1,lc=function(r,A,e){return r.slice?r.slice(A,e):new Uint16Array(Array.prototype.slice.call(r,A,e))},af=function(r,A,e){return r.slice?r.slice(A,e):new Uint32Array(Array.prototype.slice.call(r,A,e))},lf=function(r,A){var e=zB(r),t=Array.isArray(e)?$B(e):new Uint32Array(e),n=Array.isArray(e)?YB(e):new Uint16Array(e),s=24,i=lc(n,s/2,t[4]/2),o=t[5]===2?lc(n,(s+t[4])/2):af(t,Math.ceil((s+t[4])/4));return new cf(t[0],t[1],t[2],t[3],i,o)},cf=function(){function r(A,e,t,n,s,i){this.initialValue=A,this.errorValue=e,this.highStart=t,this.highValueIndex=n,this.index=s,this.data=i}return r.prototype.get=function(A){var e;if(A>=0){if(A<55296||A>56319&&A<=65535)return e=this.index[A>>te],e=(e<<Ms)+(A&Ds),this.data[e];if(A<=65535)return e=this.index[ac+(A-55296>>te)],e=(e<<Ms)+(A&Ds),this.data[e];if(A<this.highStart)return e=rf-nf+(A>>bs),e=this.index[e],e+=A>>te&of,e=this.index[e],e=(e<<Ms)+(A&Ds),this.data[e];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},r}(),cc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",df=typeof Uint8Array>"u"?[]:new Uint8Array(256),an=0;an<cc.length;an++)df[cc.charCodeAt(an)]=an;var uf=1,Rs=2,Ks=3,dc=4,uc=5,hf=7,hc=8,xs=9,Ps=10,gc=11,Bc=12,fc=13,wc=14,ks=15,gf=function(r){for(var A=[],e=0,t=r.length;e<t;){var n=r.charCodeAt(e++);if(n>=55296&&n<=56319&&e<t){var s=r.charCodeAt(e++);(s&64512)===56320?A.push(((n&1023)<<10)+(s&1023)+65536):(A.push(n),e--)}else A.push(n)}return A},Bf=function(){for(var r=[],A=0;A<arguments.length;A++)r[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,r);var e=r.length;if(!e)return"";for(var t=[],n=-1,s="";++n<e;){var i=r[n];i<=65535?t.push(i):(i-=65536,t.push((i>>10)+55296,i%1024+56320)),(n+1===e||t.length>16384)&&(s+=String.fromCharCode.apply(String,t),t.length=0)}return s},ff=lf(JB),pA="×",Gs="÷",wf=function(r){return ff.get(r)},pf=function(r,A,e){var t=e-2,n=A[t],s=A[e-1],i=A[e];if(s===Rs&&i===Ks)return pA;if(s===Rs||s===Ks||s===dc||i===Rs||i===Ks||i===dc)return Gs;if(s===hc&&[hc,xs,gc,Bc].indexOf(i)!==-1||(s===gc||s===xs)&&(i===xs||i===Ps)||(s===Bc||s===Ps)&&i===Ps||i===fc||i===uc||i===hf||s===uf)return pA;if(s===fc&&i===wc){for(;n===uc;)n=A[--t];if(n===wc)return pA}if(s===ks&&i===ks){for(var o=0;n===ks;)o++,n=A[--t];if(o%2===0)return pA}return Gs},Cf=function(r){var A=gf(r),e=A.length,t=0,n=0,s=A.map(wf);return{next:function(){if(t>=e)return{done:!0,value:null};for(var i=pA;t<e&&(i=pf(A,s,++t))===pA;);if(i!==pA||t===e){var o=Bf.apply(null,A.slice(n,t));return n=t,{value:o,done:!1}}return{done:!0,value:null}}}},vf=function(r){for(var A=Cf(r),e=[],t;!(t=A.next()).done;)t.value&&e.push(t.value.slice());return e},mf=function(r){var A=123;if(r.createRange){var e=r.createRange();if(e.getBoundingClientRect){var t=r.createElement("boundtest");t.style.height=A+"px",t.style.display="block",r.body.appendChild(t),e.selectNode(t);var n=e.getBoundingClientRect(),s=Math.round(n.height);if(r.body.removeChild(t),s===A)return!0}}return!1},Ff=function(r){var A=r.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",r.body.appendChild(A);var e=r.createRange();A.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var t=A.firstChild,n=Hr(t.data).map(function(a){return X(a)}),s=0,i={},o=n.every(function(a,l){e.setStart(t,s),e.setEnd(t,s+a.length);var c=e.getBoundingClientRect();s+=a.length;var h=c.x>i.x||c.y>i.y;return i=c,l===0?!0:h});return r.body.removeChild(A),o},Qf=function(){return typeof new Image().crossOrigin<"u"},Uf=function(){return typeof new XMLHttpRequest().responseType=="string"},Ef=function(r){var A=new Image,e=r.createElement("canvas"),t=e.getContext("2d");if(!t)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{t.drawImage(A,0,0),e.toDataURL()}catch{return!1}return!0},pc=function(r){return r[0]===0&&r[1]===255&&r[2]===0&&r[3]===255},yf=function(r){var A=r.createElement("canvas"),e=100;A.width=e,A.height=e;var t=A.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,e,e);var n=new Image,s=A.toDataURL();n.src=s;var i=Ns(e,e,0,0,n);return t.fillStyle="red",t.fillRect(0,0,e,e),Cc(i).then(function(o){t.drawImage(o,0,0);var a=t.getImageData(0,0,e,e).data;t.fillStyle="red",t.fillRect(0,0,e,e);var l=r.createElement("div");return l.style.backgroundImage="url("+s+")",l.style.height=e+"px",pc(a)?Cc(Ns(e,e,0,0,l)):Promise.reject(!1)}).then(function(o){return t.drawImage(o,0,0),pc(t.getImageData(0,0,e,e).data)}).catch(function(){return!1})},Ns=function(r,A,e,t,n){var s="http://www.w3.org/2000/svg",i=document.createElementNS(s,"svg"),o=document.createElementNS(s,"foreignObject");return i.setAttributeNS(null,"width",r.toString()),i.setAttributeNS(null,"height",A.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",e.toString()),o.setAttributeNS(null,"y",t.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),i.appendChild(o),o.appendChild(n),i},Cc=function(r){return new Promise(function(A,e){var t=new Image;t.onload=function(){return A(t)},t.onerror=e,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},eA={get SUPPORT_RANGE_BOUNDS(){var r=mf(document);return Object.defineProperty(eA,"SUPPORT_RANGE_BOUNDS",{value:r}),r},get SUPPORT_WORD_BREAKING(){var r=eA.SUPPORT_RANGE_BOUNDS&&Ff(document);return Object.defineProperty(eA,"SUPPORT_WORD_BREAKING",{value:r}),r},get SUPPORT_SVG_DRAWING(){var r=Ef(document);return Object.defineProperty(eA,"SUPPORT_SVG_DRAWING",{value:r}),r},get SUPPORT_FOREIGNOBJECT_DRAWING(){var r=typeof Array.from=="function"&&typeof window.fetch=="function"?yf(document):Promise.resolve(!1);return Object.defineProperty(eA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:r}),r},get SUPPORT_CORS_IMAGES(){var r=Qf();return Object.defineProperty(eA,"SUPPORT_CORS_IMAGES",{value:r}),r},get SUPPORT_RESPONSE_TYPE(){var r=Uf();return Object.defineProperty(eA,"SUPPORT_RESPONSE_TYPE",{value:r}),r},get SUPPORT_CORS_XHR(){var r="withCredentials"in new XMLHttpRequest;return Object.defineProperty(eA,"SUPPORT_CORS_XHR",{value:r}),r},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var r=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(eA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:r}),r}},et=function(){function r(A,e){this.text=A,this.bounds=e}return r}(),Sf=function(r,A,e,t){var n=Hf(A,e),s=[],i=0;return n.forEach(function(o){if(e.textDecorationLine.length||o.trim().length>0)if(eA.SUPPORT_RANGE_BOUNDS){var a=vc(t,i,o.length).getClientRects();if(a.length>1){var l=_s(o),c=0;l.forEach(function(d){s.push(new et(d,bA.fromDOMRectList(r,vc(t,c+i,d.length).getClientRects()))),c+=d.length})}else s.push(new et(o,bA.fromDOMRectList(r,a)))}else{var h=t.splitText(o.length);s.push(new et(o,If(r,t))),t=h}else eA.SUPPORT_RANGE_BOUNDS||(t=t.splitText(o.length));i+=o.length}),s},If=function(r,A){var e=A.ownerDocument;if(e){var t=e.createElement("html2canvaswrapper");t.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(t,A);var s=Tr(r,t);return t.firstChild&&n.replaceChild(t.firstChild,t),s}}return bA.EMPTY},vc=function(r,A,e){var t=r.ownerDocument;if(!t)throw new Error("Node has no owner document");var n=t.createRange();return n.setStart(r,A),n.setEnd(r,A+e),n},_s=function(r){if(eA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(r)).map(function(e){return e.segment})}return vf(r)},Tf=function(r,A){if(eA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(r)).map(function(t){return t.segment})}return bf(r,A)},Hf=function(r,A){return A.letterSpacing!==0?_s(r):Tf(r,A)},Lf=[32,160,4961,65792,65793,4153,4241],bf=function(r,A){for(var e=nh(r,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),t=[],n,s=function(){if(n.value){var i=n.value.slice(),o=Hr(i),a="";o.forEach(function(l){Lf.indexOf(l)===-1?a+=X(l):(a.length&&t.push(a),t.push(X(l)),a="")}),a.length&&t.push(a)}};!(n=e.next()).done;)s();return t},Mf=function(){function r(A,e,t){this.text=Df(e.data,t.textTransform),this.textBounds=Sf(A,this.text,t,e)}return r}(),Df=function(r,A){switch(A){case 1:return r.toLowerCase();case 3:return r.replace(Rf,Kf);case 2:return r.toUpperCase();default:return r}},Rf=/(^|\s|:|-|\(|\))([a-z])/g,Kf=function(r,A,e){return r.length>0?A+e.toUpperCase():r},mc=function(r){FA(A,r);function A(e,t){var n=r.call(this,e,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,n.context.cache.addImage(n.src),n}return A}(SA),Fc=function(r){FA(A,r);function A(e,t){var n=r.call(this,e,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return A}(SA),Qc=function(r){FA(A,r);function A(e,t){var n=r.call(this,e,t)||this,s=new XMLSerializer,i=Tr(e,t);return t.setAttribute("width",i.width+"px"),t.setAttribute("height",i.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(s.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,n.context.cache.addImage(n.svg),n}return A}(SA),Uc=function(r){FA(A,r);function A(e,t){var n=r.call(this,e,t)||this;return n.value=t.value,n}return A}(SA),Vs=function(r){FA(A,r);function A(e,t){var n=r.call(this,e,t)||this;return n.start=t.start,n.reversed=typeof t.reversed=="boolean"&&t.reversed===!0,n}return A}(SA),xf=[{type:15,flags:0,unit:"px",number:3}],Pf=[{type:16,flags:0,number:50}],kf=function(r){return r.width>r.height?new bA(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width<r.height?new bA(r.left,r.top+(r.height-r.width)/2,r.width,r.width):r},Gf=function(r){var A=r.type===Nf?new Array(r.value.length+1).join("•"):r.value;return A.length===0?r.placeholder||"":A},ln="checkbox",cn="radio",Nf="password",Ec=707406591,Os=function(r){FA(A,r);function A(e,t){var n=r.call(this,e,t)||this;switch(n.type=t.type.toLowerCase(),n.checked=t.checked,n.value=Gf(t),(n.type===ln||n.type===cn)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=kf(n.bounds)),n.type){case ln:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=xf;break;case cn:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=Pf;break}return n}return A}(SA),yc=function(r){FA(A,r);function A(e,t){var n=r.call(this,e,t)||this,s=t.options[t.selectedIndex||0];return n.value=s&&s.text||"",n}return A}(SA),Sc=function(r){FA(A,r);function A(e,t){var n=r.call(this,e,t)||this;return n.value=t.value,n}return A}(SA),Ic=function(r){FA(A,r);function A(e,t){var n=r.call(this,e,t)||this;n.src=t.src,n.width=parseInt(t.width,10)||0,n.height=parseInt(t.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){n.tree=Hc(e,t.contentWindow.document.documentElement);var s=t.contentWindow.document.documentElement?qe(e,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):DA.TRANSPARENT,i=t.contentWindow.document.body?qe(e,getComputedStyle(t.contentWindow.document.body).backgroundColor):DA.TRANSPARENT;n.backgroundColor=OA(s)?OA(i)?n.styles.backgroundColor:i:s}}catch{}return n}return A}(SA),_f=["OL","UL","MENU"],dn=function(r,A,e,t){for(var n=A.firstChild,s=void 0;n;n=s)if(s=n.nextSibling,Lc(n)&&n.data.trim().length>0)e.textNodes.push(new Mf(r,n,e.styles));else if(Ee(n))if(xc(n)&&n.assignedNodes)n.assignedNodes().forEach(function(o){return dn(r,o,e,t)});else{var i=Tc(r,n);i.styles.isVisible()&&(Vf(n,i,t)?i.flags|=4:Of(i.styles)&&(i.flags|=2),_f.indexOf(n.tagName)!==-1&&(i.flags|=8),e.elements.push(i),n.slot,n.shadowRoot?dn(r,n.shadowRoot,i,t):!hn(n)&&!bc(n)&&!gn(n)&&dn(r,n,i,t))}},Tc=function(r,A){return Js(A)?new mc(r,A):Mc(A)?new Fc(r,A):bc(A)?new Qc(r,A):Wf(A)?new Uc(r,A):Xf(A)?new Vs(r,A):Jf(A)?new Os(r,A):gn(A)?new yc(r,A):hn(A)?new Sc(r,A):Rc(A)?new Ic(r,A):new SA(r,A)},Hc=function(r,A){var e=Tc(r,A);return e.flags|=4,dn(r,A,e,e),e},Vf=function(r,A,e){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Xs(r)&&e.styles.isTransparent()},Of=function(r){return r.isPositioned()||r.isFloating()},Lc=function(r){return r.nodeType===Node.TEXT_NODE},Ee=function(r){return r.nodeType===Node.ELEMENT_NODE},Ws=function(r){return Ee(r)&&typeof r.style<"u"&&!un(r)},un=function(r){return typeof r.className=="object"},Wf=function(r){return r.tagName==="LI"},Xf=function(r){return r.tagName==="OL"},Jf=function(r){return r.tagName==="INPUT"},zf=function(r){return r.tagName==="HTML"},bc=function(r){return r.tagName==="svg"},Xs=function(r){return r.tagName==="BODY"},Mc=function(r){return r.tagName==="CANVAS"},Dc=function(r){return r.tagName==="VIDEO"},Js=function(r){return r.tagName==="IMG"},Rc=function(r){return r.tagName==="IFRAME"},Kc=function(r){return r.tagName==="STYLE"},Yf=function(r){return r.tagName==="SCRIPT"},hn=function(r){return r.tagName==="TEXTAREA"},gn=function(r){return r.tagName==="SELECT"},xc=function(r){return r.tagName==="SLOT"},Pc=function(r){return r.tagName.indexOf("-")>0},$f=function(){function r(){this.counters={}}return r.prototype.getCounterValue=function(A){var e=this.counters[A];return e&&e.length?e[e.length-1]:1},r.prototype.getCounterValues=function(A){var e=this.counters[A];return e||[]},r.prototype.pop=function(A){var e=this;A.forEach(function(t){return e.counters[t].pop()})},r.prototype.parse=function(A){var e=this,t=A.counterIncrement,n=A.counterReset,s=!0;t!==null&&t.forEach(function(o){var a=e.counters[o.counter];a&&o.increment!==0&&(s=!1,a.length||a.push(1),a[Math.max(0,a.length-1)]+=o.increment)});var i=[];return s&&n.forEach(function(o){var a=e.counters[o.counter];i.push(o.counter),a||(a=e.counters[o.counter]=[]),a.push(o.reset)}),i},r}(),kc={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Gc={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Zf={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},qf={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ye=function(r,A,e,t,n,s){return r<A||r>e?rt(r,n,s.length>0):t.integers.reduce(function(i,o,a){for(;r>=o;)r-=o,i+=t.values[a];return i},"")+s},Nc=function(r,A,e,t){var n="";do e||r--,n=t(r)+n,r/=A;while(r*A>=A);return n},J=function(r,A,e,t,n){var s=e-A+1;return(r<0?"-":"")+(Nc(Math.abs(r),s,t,function(i){return X(Math.floor(i%s)+A)})+n)},re=function(r,A,e){e===void 0&&(e=". ");var t=A.length;return Nc(Math.abs(r),t,!1,function(n){return A[Math.floor(n%t)]})+e},Se=1,XA=2,JA=4,tt=8,RA=function(r,A,e,t,n,s){if(r<-9999||r>9999)return rt(r,4,n.length>0);var i=Math.abs(r),o=n;if(i===0)return A[0]+o;for(var a=0;i>0&&a<=4;a++){var l=i%10;l===0&&Z(s,Se)&&o!==""?o=A[l]+o:l>1||l===1&&a===0||l===1&&a===1&&Z(s,XA)||l===1&&a===1&&Z(s,JA)&&r>100||l===1&&a>1&&Z(s,tt)?o=A[l]+(a>0?e[a-1]:"")+o:l===1&&a>0&&(o=e[a-1]+o),i=Math.floor(i/10)}return(r<0?t:"")+o},_c="十百千萬",Vc="拾佰仟萬",Oc="マイナス",zs="마이너스",rt=function(r,A,e){var t=e?". ":"",n=e?"、":"",s=e?", ":"",i=e?" ":"";switch(A){case 0:return"•"+i;case 1:return"◦"+i;case 2:return"◾"+i;case 5:var o=J(r,48,57,!0,t);return o.length<4?"0"+o:o;case 4:return re(r,"〇一二三四五六七八九",n);case 6:return ye(r,1,3999,kc,3,t).toLowerCase();case 7:return ye(r,1,3999,kc,3,t);case 8:return J(r,945,969,!1,t);case 9:return J(r,97,122,!1,t);case 10:return J(r,65,90,!1,t);case 11:return J(r,1632,1641,!0,t);case 12:case 49:return ye(r,1,9999,Gc,3,t);case 35:return ye(r,1,9999,Gc,3,t).toLowerCase();case 13:return J(r,2534,2543,!0,t);case 14:case 30:return J(r,6112,6121,!0,t);case 15:return re(r,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return re(r,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return RA(r,"零一二三四五六七八九",_c,"負",n,XA|JA|tt);case 47:return RA(r,"零壹貳參肆伍陸柒捌玖",Vc,"負",n,Se|XA|JA|tt);case 42:return RA(r,"零一二三四五六七八九",_c,"负",n,XA|JA|tt);case 41:return RA(r,"零壹贰叁肆伍陆柒捌玖",Vc,"负",n,Se|XA|JA|tt);case 26:return RA(r,"〇一二三四五六七八九","十百千万",Oc,n,0);case 25:return RA(r,"零壱弐参四伍六七八九","拾百千万",Oc,n,Se|XA|JA);case 31:return RA(r,"영일이삼사오육칠팔구","십백천만",zs,s,Se|XA|JA);case 33:return RA(r,"零一二三四五六七八九","十百千萬",zs,s,0);case 32:return RA(r,"零壹貳參四五六七八九","拾百千",zs,s,Se|XA|JA);case 18:return J(r,2406,2415,!0,t);case 20:return ye(r,1,19999,qf,3,t);case 21:return J(r,2790,2799,!0,t);case 22:return J(r,2662,2671,!0,t);case 22:return ye(r,1,10999,Zf,3,t);case 23:return re(r,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return re(r,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return J(r,3302,3311,!0,t);case 28:return re(r,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return re(r,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return J(r,3792,3801,!0,t);case 37:return J(r,6160,6169,!0,t);case 38:return J(r,4160,4169,!0,t);case 39:return J(r,2918,2927,!0,t);case 40:return J(r,1776,1785,!0,t);case 43:return J(r,3046,3055,!0,t);case 44:return J(r,3174,3183,!0,t);case 45:return J(r,3664,3673,!0,t);case 46:return J(r,3872,3881,!0,t);case 3:default:return J(r,48,57,!0,t)}},Wc="data-html2canvas-ignore",Xc=function(){function r(A,e,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new $f,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return r.prototype.toIFrame=function(A,e){var t=this,n=jf(A,e);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var s=A.defaultView.pageXOffset,i=A.defaultView.pageYOffset,o=n.contentWindow,a=o.document,l=tw(n).then(function(){return cA(t,void 0,void 0,function(){var c,h;return nA(this,function(d){switch(d.label){case 0:return this.scrolledElements.forEach(iw),o&&(o.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==e.top||o.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-e.left,o.scrollY-e.top,0,0))),c=this.options.onclone,h=this.clonedReferenceElement,typeof h>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:a.fonts&&a.fonts.ready?[4,a.fonts.ready]:[3,2];case 1:d.sent(),d.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,ew(a)]:[3,4];case 3:d.sent(),d.label=4;case 4:return typeof c=="function"?[2,Promise.resolve().then(function(){return c(a,h)}).then(function(){return n})]:[2,n]}})})});return a.open(),a.write(nw(document.doctype)+"<html></html>"),sw(this.referenceElement.ownerDocument,s,i),a.replaceChild(a.adoptNode(this.documentElement),a.documentElement),a.close(),l},r.prototype.createElementClone=function(A){if(Ls(A,2))debugger;if(Mc(A))return this.createCanvasClone(A);if(Dc(A))return this.createVideoClone(A);if(Kc(A))return this.createStyleClone(A);var e=A.cloneNode(!1);return Js(e)&&(Js(A)&&A.currentSrc&&A.currentSrc!==A.src&&(e.src=A.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),Pc(e)?this.createCustomElementClone(e):e},r.prototype.createCustomElementClone=function(A){var e=document.createElement("html2canvascustomelement");return Ys(A.style,e),e},r.prototype.createStyleClone=function(A){try{var e=A.sheet;if(e&&e.cssRules){var t=[].slice.call(e.cssRules,0).reduce(function(s,i){return i&&typeof i.cssText=="string"?s+i.cssText:s},""),n=A.cloneNode(!1);return n.textContent=t,n}}catch(s){if(this.context.logger.error("Unable to access cssRules property",s),s.name!=="SecurityError")throw s}return A.cloneNode(!1)},r.prototype.createCanvasClone=function(A){var e;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var n=A.cloneNode(!1);try{n.width=A.width,n.height=A.height;var s=A.getContext("2d"),i=n.getContext("2d");if(i)if(!this.options.allowTaint&&s)i.putImageData(s.getImageData(0,0,A.width,A.height),0,0);else{var o=(e=A.getContext("webgl2"))!==null&&e!==void 0?e:A.getContext("webgl");if(o){var a=o.getContextAttributes();(a==null?void 0:a.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}i.drawImage(A,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return n},r.prototype.createVideoClone=function(A){var e=A.ownerDocument.createElement("canvas");e.width=A.offsetWidth,e.height=A.offsetHeight;var t=e.getContext("2d");try{return t&&(t.drawImage(A,0,0,e.width,e.height),this.options.allowTaint||t.getImageData(0,0,e.width,e.height)),e}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n},r.prototype.appendChildNode=function(A,e,t){(!Ee(e)||!Yf(e)&&!e.hasAttribute(Wc)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!Ee(e)||!Kc(e))&&A.appendChild(this.cloneNode(e,t))},r.prototype.cloneChildNodes=function(A,e,t){for(var n=this,s=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;s;s=s.nextSibling)if(Ee(s)&&xc(s)&&typeof s.assignedNodes=="function"){var i=s.assignedNodes();i.length&&i.forEach(function(o){return n.appendChildNode(e,o,t)})}else this.appendChildNode(e,s,t)},r.prototype.cloneNode=function(A,e){if(Lc(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&Ee(A)&&(Ws(A)||un(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var s=t.getComputedStyle(A),i=t.getComputedStyle(A,":before"),o=t.getComputedStyle(A,":after");this.referenceElement===A&&Ws(n)&&(this.clonedReferenceElement=n),Xs(n)&&lw(n);var a=this.counters.parse(new ic(this.context,s)),l=this.resolvePseudoContent(A,n,i,nt.BEFORE);Pc(A)&&(e=!0),Dc(A)||this.cloneChildNodes(A,n,e),l&&n.insertBefore(l,n.firstChild);var c=this.resolvePseudoContent(A,n,o,nt.AFTER);return c&&n.appendChild(c),this.counters.pop(a),(s&&(this.options.copyStyles||un(A))&&!Rc(A)||e)&&Ys(s,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(hn(A)||gn(A))&&(hn(n)||gn(n))&&(n.value=A.value),n}return A.cloneNode(!1)},r.prototype.resolvePseudoContent=function(A,e,t,n){var s=this;if(t){var i=t.content,o=e.ownerDocument;if(!(!o||!i||i==="none"||i==="-moz-alt-content"||t.display==="none")){this.counters.parse(new ic(this.context,t));var a=new OB(this.context,t),l=o.createElement("html2canvaspseudoelement");Ys(t,l),a.content.forEach(function(h){if(h.type===0)l.appendChild(o.createTextNode(h.value));else if(h.type===22){var d=o.createElement("img");d.src=h.value,d.style.opacity="1",l.appendChild(d)}else if(h.type===18){if(h.name==="attr"){var B=h.values.filter(N);B.length&&l.appendChild(o.createTextNode(A.getAttribute(B[0].value)||""))}else if(h.name==="counter"){var g=h.values.filter(Qe),f=g[0],m=g[1];if(f&&N(f)){var F=s.counters.getCounterValue(f.value),Q=m&&N(m)?Hs.parse(s.context,m.value):3;l.appendChild(o.createTextNode(rt(F,Q,!1)))}}else if(h.name==="counters"){var y=h.values.filter(Qe),f=y[0],L=y[1],m=y[2];if(f&&N(f)){var T=s.counters.getCounterValues(f.value),E=m&&N(m)?Hs.parse(s.context,m.value):3,R=L&&L.type===0?L.value:"",x=T.map(function(iA){return rt(iA,E,!1)}).join(R);l.appendChild(o.createTextNode(x))}}}else if(h.type===20)switch(h.value){case"open-quote":l.appendChild(o.createTextNode(sc(a.quotes,s.quoteDepth++,!0)));break;case"close-quote":l.appendChild(o.createTextNode(sc(a.quotes,--s.quoteDepth,!1)));break;default:l.appendChild(o.createTextNode(h.value))}}),l.className=$s+" "+Zs;var c=n===nt.BEFORE?" "+$s:" "+Zs;return un(e)?e.className.baseValue+=c:e.className+=c,l}}},r.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},r}(),nt;(function(r){r[r.BEFORE=0]="BEFORE",r[r.AFTER=1]="AFTER"})(nt||(nt={}));var jf=function(r,A){var e=r.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=A.width.toString(),e.height=A.height.toString(),e.scrolling="no",e.setAttribute(Wc,"true"),r.body.appendChild(e),e},Aw=function(r){return new Promise(function(A){if(r.complete){A();return}if(!r.src){A();return}r.onload=A,r.onerror=A})},ew=function(r){return Promise.all([].slice.call(r.images,0).map(Aw))},tw=function(r){return new Promise(function(A,e){var t=r.contentWindow;if(!t)return e("No window assigned for iframe");var n=t.document;t.onload=r.onload=function(){t.onload=r.onload=null;var s=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(s),A(r))},50)}})},rw=["all","d","content"],Ys=function(r,A){for(var e=r.length-1;e>=0;e--){var t=r.item(e);rw.indexOf(t)===-1&&A.style.setProperty(t,r.getPropertyValue(t))}return A},nw=function(r){var A="";return r&&(A+="<!DOCTYPE ",r.name&&(A+=r.name),r.internalSubset&&(A+=r.internalSubset),r.publicId&&(A+='"'+r.publicId+'"'),r.systemId&&(A+='"'+r.systemId+'"'),A+=">"),A},sw=function(r,A,e){r&&r.defaultView&&(A!==r.defaultView.pageXOffset||e!==r.defaultView.pageYOffset)&&r.defaultView.scrollTo(A,e)},iw=function(r){var A=r[0],e=r[1],t=r[2];A.scrollLeft=e,A.scrollTop=t},ow=":before",aw=":after",$s="___html2canvas___pseudoelement_before",Zs="___html2canvas___pseudoelement_after",Jc=`{
|
|
336
109
|
content: "" !important;
|
|
337
110
|
display: none !important;
|
|
338
|
-
}`,
|
|
339
|
-
.`+Qo+jv+Eu)},zv=function(v,e){var t=v.ownerDocument;if(t){var o=t.createElement("style");o.textContent=e,v.appendChild(o)}},Fu=function(){function v(){}return v.getOrigin=function(e){var t=v._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},v.isSameOrigin=function(e){return v.getOrigin(e)===v._origin},v.setContext=function(e){v._link=e.document.createElement("a"),v._origin=v.getOrigin(e.location.href)},v._origin="about:blank",v}(),Jv=function(){function v(e,t){this.context=e,this._options=t,this._cache={}}return v.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(Uo(e)||Zv(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},v.prototype.match=function(e){return this._cache[e]},v.prototype.loadImage=function(e){return Re(this,void 0,void 0,function(){var t,o,y,B,A=this;return xe(this,function(h){switch(h.label){case 0:return t=Fu.isSameOrigin(e),o=!So(e)&&this._options.useCORS===!0&&Ie.SUPPORT_CORS_IMAGES&&!t,y=!So(e)&&!t&&!Uo(e)&&typeof this._options.proxy=="string"&&Ie.SUPPORT_CORS_XHR&&!o,!t&&this._options.allowTaint===!1&&!So(e)&&!Uo(e)&&!y&&!o?[2]:(B=e,y?[4,this.proxy(B)]:[3,2]);case 1:B=h.sent(),h.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(m,g){var w=new Image;w.onload=function(){return m(w)},w.onerror=g,(qv(B)||o)&&(w.crossOrigin="anonymous"),w.src=B,w.complete===!0&&setTimeout(function(){return m(w)},500),A._options.imageTimeout>0&&setTimeout(function(){return g("Timed out ("+A._options.imageTimeout+"ms) loading image")},A._options.imageTimeout)})];case 3:return[2,h.sent()]}})})},v.prototype.has=function(e){return typeof this._cache[e]<"u"},v.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},v.prototype.proxy=function(e){var t=this,o=this._options.proxy;if(!o)throw new Error("No proxy defined");var y=e.substring(0,256);return new Promise(function(B,A){var h=Ie.SUPPORT_RESPONSE_TYPE?"blob":"text",m=new XMLHttpRequest;m.onload=function(){if(m.status===200)if(h==="text")B(m.response);else{var p=new FileReader;p.addEventListener("load",function(){return B(p.result)},!1),p.addEventListener("error",function(u){return A(u)},!1),p.readAsDataURL(m.response)}else A("Failed to proxy resource "+y+" with status code "+m.status)},m.onerror=A;var g=o.indexOf("?")>-1?"&":"?";if(m.open("GET",""+o+g+"url="+encodeURIComponent(e)+"&responseType="+h),h!=="text"&&m instanceof XMLHttpRequest&&(m.responseType=h),t._options.imageTimeout){var w=t._options.imageTimeout;m.timeout=w,m.ontimeout=function(){return A("Timed out ("+w+"ms) proxying "+y)}}m.send()})},v}(),Xv=/^data:image\/svg\+xml/i,Yv=/^data:image\/.*;base64,/i,$v=/^data:image\/.*/i,Zv=function(v){return Ie.SUPPORT_SVG_DRAWING||!ey(v)},So=function(v){return $v.test(v)},qv=function(v){return Yv.test(v)},Uo=function(v){return v.substr(0,4)==="blob"},ey=function(v){return v.substr(-3).toLowerCase()==="svg"||Xv.test(v)},q=function(){function v(e,t){this.type=0,this.x=e,this.y=t}return v.prototype.add=function(e,t){return new v(this.x+e,this.y+t)},v}(),Yt=function(v,e,t){return new q(v.x+(e.x-v.x)*t,v.y+(e.y-v.y)*t)},Kn=function(){function v(e,t,o,y){this.type=1,this.start=e,this.startControl=t,this.endControl=o,this.end=y}return v.prototype.subdivide=function(e,t){var o=Yt(this.start,this.startControl,e),y=Yt(this.startControl,this.endControl,e),B=Yt(this.endControl,this.end,e),A=Yt(o,y,e),h=Yt(y,B,e),m=Yt(A,h,e);return t?new v(this.start,o,A,m):new v(m,h,B,this.end)},v.prototype.add=function(e,t){return new v(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},v.prototype.reverse=function(){return new v(this.end,this.endControl,this.startControl,this.start)},v}(),We=function(v){return v.type===1},ty=function(){function v(e){var t=e.styles,o=e.bounds,y=yr(t.borderTopLeftRadius,o.width,o.height),B=y[0],A=y[1],h=yr(t.borderTopRightRadius,o.width,o.height),m=h[0],g=h[1],w=yr(t.borderBottomRightRadius,o.width,o.height),p=w[0],u=w[1],f=yr(t.borderBottomLeftRadius,o.width,o.height),c=f[0],a=f[1],n=[];n.push((B+m)/o.width),n.push((c+p)/o.width),n.push((A+a)/o.height),n.push((g+u)/o.height);var s=Math.max.apply(Math,n);s>1&&(B/=s,A/=s,m/=s,g/=s,p/=s,u/=s,c/=s,a/=s);var r=o.width-m,i=o.height-u,l=o.width-p,d=o.height-a,C=t.borderTopWidth,_=t.borderRightWidth,b=t.borderBottomWidth,E=t.borderLeftWidth,F=pe(t.paddingTop,e.bounds.width),Q=pe(t.paddingRight,e.bounds.width),U=pe(t.paddingBottom,e.bounds.width),T=pe(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=B>0||A>0?ve(o.left+E/3,o.top+C/3,B-E/3,A-C/3,le.TOP_LEFT):new q(o.left+E/3,o.top+C/3),this.topRightBorderDoubleOuterBox=B>0||A>0?ve(o.left+r,o.top+C/3,m-_/3,g-C/3,le.TOP_RIGHT):new q(o.left+o.width-_/3,o.top+C/3),this.bottomRightBorderDoubleOuterBox=p>0||u>0?ve(o.left+l,o.top+i,p-_/3,u-b/3,le.BOTTOM_RIGHT):new q(o.left+o.width-_/3,o.top+o.height-b/3),this.bottomLeftBorderDoubleOuterBox=c>0||a>0?ve(o.left+E/3,o.top+d,c-E/3,a-b/3,le.BOTTOM_LEFT):new q(o.left+E/3,o.top+o.height-b/3),this.topLeftBorderDoubleInnerBox=B>0||A>0?ve(o.left+E*2/3,o.top+C*2/3,B-E*2/3,A-C*2/3,le.TOP_LEFT):new q(o.left+E*2/3,o.top+C*2/3),this.topRightBorderDoubleInnerBox=B>0||A>0?ve(o.left+r,o.top+C*2/3,m-_*2/3,g-C*2/3,le.TOP_RIGHT):new q(o.left+o.width-_*2/3,o.top+C*2/3),this.bottomRightBorderDoubleInnerBox=p>0||u>0?ve(o.left+l,o.top+i,p-_*2/3,u-b*2/3,le.BOTTOM_RIGHT):new q(o.left+o.width-_*2/3,o.top+o.height-b*2/3),this.bottomLeftBorderDoubleInnerBox=c>0||a>0?ve(o.left+E*2/3,o.top+d,c-E*2/3,a-b*2/3,le.BOTTOM_LEFT):new q(o.left+E*2/3,o.top+o.height-b*2/3),this.topLeftBorderStroke=B>0||A>0?ve(o.left+E/2,o.top+C/2,B-E/2,A-C/2,le.TOP_LEFT):new q(o.left+E/2,o.top+C/2),this.topRightBorderStroke=B>0||A>0?ve(o.left+r,o.top+C/2,m-_/2,g-C/2,le.TOP_RIGHT):new q(o.left+o.width-_/2,o.top+C/2),this.bottomRightBorderStroke=p>0||u>0?ve(o.left+l,o.top+i,p-_/2,u-b/2,le.BOTTOM_RIGHT):new q(o.left+o.width-_/2,o.top+o.height-b/2),this.bottomLeftBorderStroke=c>0||a>0?ve(o.left+E/2,o.top+d,c-E/2,a-b/2,le.BOTTOM_LEFT):new q(o.left+E/2,o.top+o.height-b/2),this.topLeftBorderBox=B>0||A>0?ve(o.left,o.top,B,A,le.TOP_LEFT):new q(o.left,o.top),this.topRightBorderBox=m>0||g>0?ve(o.left+r,o.top,m,g,le.TOP_RIGHT):new q(o.left+o.width,o.top),this.bottomRightBorderBox=p>0||u>0?ve(o.left+l,o.top+i,p,u,le.BOTTOM_RIGHT):new q(o.left+o.width,o.top+o.height),this.bottomLeftBorderBox=c>0||a>0?ve(o.left,o.top+d,c,a,le.BOTTOM_LEFT):new q(o.left,o.top+o.height),this.topLeftPaddingBox=B>0||A>0?ve(o.left+E,o.top+C,Math.max(0,B-E),Math.max(0,A-C),le.TOP_LEFT):new q(o.left+E,o.top+C),this.topRightPaddingBox=m>0||g>0?ve(o.left+Math.min(r,o.width-_),o.top+C,r>o.width+_?0:Math.max(0,m-_),Math.max(0,g-C),le.TOP_RIGHT):new q(o.left+o.width-_,o.top+C),this.bottomRightPaddingBox=p>0||u>0?ve(o.left+Math.min(l,o.width-E),o.top+Math.min(i,o.height-b),Math.max(0,p-_),Math.max(0,u-b),le.BOTTOM_RIGHT):new q(o.left+o.width-_,o.top+o.height-b),this.bottomLeftPaddingBox=c>0||a>0?ve(o.left+E,o.top+Math.min(d,o.height-b),Math.max(0,c-E),Math.max(0,a-b),le.BOTTOM_LEFT):new q(o.left+E,o.top+o.height-b),this.topLeftContentBox=B>0||A>0?ve(o.left+E+T,o.top+C+F,Math.max(0,B-(E+T)),Math.max(0,A-(C+F)),le.TOP_LEFT):new q(o.left+E+T,o.top+C+F),this.topRightContentBox=m>0||g>0?ve(o.left+Math.min(r,o.width+E+T),o.top+C+F,r>o.width+E+T?0:m-E+T,g-(C+F),le.TOP_RIGHT):new q(o.left+o.width-(_+Q),o.top+C+F),this.bottomRightContentBox=p>0||u>0?ve(o.left+Math.min(l,o.width-(E+T)),o.top+Math.min(i,o.height+C+F),Math.max(0,p-(_+Q)),u-(b+U),le.BOTTOM_RIGHT):new q(o.left+o.width-(_+Q),o.top+o.height-(b+U)),this.bottomLeftContentBox=c>0||a>0?ve(o.left+E+T,o.top+d,Math.max(0,c-(E+T)),a-(b+U),le.BOTTOM_LEFT):new q(o.left+E+T,o.top+o.height-(b+U))}return v}(),le;(function(v){v[v.TOP_LEFT=0]="TOP_LEFT",v[v.TOP_RIGHT=1]="TOP_RIGHT",v[v.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",v[v.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(le||(le={}));var ve=function(v,e,t,o,y){var B=4*((Math.sqrt(2)-1)/3),A=t*B,h=o*B,m=v+t,g=e+o;switch(y){case le.TOP_LEFT:return new Kn(new q(v,g),new q(v,g-h),new q(m-A,e),new q(m,e));case le.TOP_RIGHT:return new Kn(new q(v,e),new q(v+A,e),new q(m,g-h),new q(m,g));case le.BOTTOM_RIGHT:return new Kn(new q(m,e),new q(m,e+h),new q(v+A,g),new q(v,g));case le.BOTTOM_LEFT:default:return new Kn(new q(m,g),new q(m-A,g),new q(v,e+h),new q(v,e))}},Nn=function(v){return[v.topLeftBorderBox,v.topRightBorderBox,v.bottomRightBorderBox,v.bottomLeftBorderBox]},ry=function(v){return[v.topLeftContentBox,v.topRightContentBox,v.bottomRightContentBox,v.bottomLeftContentBox]},Vn=function(v){return[v.topLeftPaddingBox,v.topRightPaddingBox,v.bottomRightPaddingBox,v.bottomLeftPaddingBox]},Ay=function(){function v(e,t,o){this.offsetX=e,this.offsetY=t,this.matrix=o,this.type=0,this.target=6}return v}(),Gn=function(){function v(e,t){this.path=e,this.target=t,this.type=1}return v}(),ny=function(){function v(e){this.opacity=e,this.type=2,this.target=6}return v}(),iy=function(v){return v.type===0},Qu=function(v){return v.type===1},oy=function(v){return v.type===2},Su=function(v,e){return v.length===e.length?v.some(function(t,o){return t===e[o]}):!1},sy=function(v,e,t,o,y){return v.map(function(B,A){switch(A){case 0:return B.add(e,t);case 1:return B.add(e+o,t);case 2:return B.add(e+o,t+y);case 3:return B.add(e,t+y)}return B})},Uu=function(){function v(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return v}(),Tu=function(){function v(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new ty(this.container),this.container.styles.opacity<1&&this.effects.push(new ny(this.container.styles.opacity)),this.container.styles.transform!==null){var o=this.container.bounds.left+this.container.styles.transformOrigin[0].number,y=this.container.bounds.top+this.container.styles.transformOrigin[1].number,B=this.container.styles.transform;this.effects.push(new Ay(o,y,B))}if(this.container.styles.overflowX!==0){var A=Nn(this.curves),h=Vn(this.curves);Su(A,h)?this.effects.push(new Gn(A,6)):(this.effects.push(new Gn(A,2)),this.effects.push(new Gn(h,4)))}}return v.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,o=this.parent,y=this.effects.slice(0);o;){var B=o.effects.filter(function(m){return!Qu(m)});if(t||o.container.styles.position!==0||!o.parent){if(y.unshift.apply(y,B),t=[2,3].indexOf(o.container.styles.position)===-1,o.container.styles.overflowX!==0){var A=Nn(o.curves),h=Vn(o.curves);Su(A,h)||y.unshift(new Gn(h,6))}}else y.unshift.apply(y,B);o=o.parent}return y.filter(function(m){return Qe(m.target,e)})},v}(),To=function(v,e,t,o){v.container.elements.forEach(function(y){var B=Qe(y.flags,4),A=Qe(y.flags,2),h=new Tu(y,v);Qe(y.styles.display,2048)&&o.push(h);var m=Qe(y.flags,8)?[]:o;if(B||A){var g=B||y.styles.isPositioned()?t:e,w=new Uu(h);if(y.styles.isPositioned()||y.styles.opacity<1||y.styles.isTransformed()){var p=y.styles.zIndex.order;if(p<0){var u=0;g.negativeZIndex.some(function(c,a){return p>c.element.container.styles.zIndex.order?(u=a,!1):u>0}),g.negativeZIndex.splice(u,0,w)}else if(p>0){var f=0;g.positiveZIndex.some(function(c,a){return p>=c.element.container.styles.zIndex.order?(f=a+1,!1):f>0}),g.positiveZIndex.splice(f,0,w)}else g.zeroOrAutoZIndexOrTransformedOrOpacity.push(w)}else y.styles.isFloating()?g.nonPositionedFloats.push(w):g.nonPositionedInlineLevel.push(w);To(h,w,B?w:t,m)}else y.styles.isInlineLevel()?e.inlineLevel.push(h):e.nonInlineLevel.push(h),To(h,e,t,m);Qe(y.flags,8)&&Iu(y,m)})},Iu=function(v,e){for(var t=v instanceof mo?v.start:1,o=v instanceof mo?v.reversed:!1,y=0;y<e.length;y++){var B=e[y];B.container instanceof ru&&typeof B.container.value=="number"&&B.container.value!==0&&(t=B.container.value),B.listValue=_r(t,B.container.styles.listStyleType,!0),t+=o?-1:1}},ay=function(v){var e=new Tu(v,null),t=new Uu(e),o=[];return To(e,t,t,o),Iu(e.container,o),t},Pu=function(v,e){switch(e){case 0:return ze(v.topLeftBorderBox,v.topLeftPaddingBox,v.topRightBorderBox,v.topRightPaddingBox);case 1:return ze(v.topRightBorderBox,v.topRightPaddingBox,v.bottomRightBorderBox,v.bottomRightPaddingBox);case 2:return ze(v.bottomRightBorderBox,v.bottomRightPaddingBox,v.bottomLeftBorderBox,v.bottomLeftPaddingBox);case 3:default:return ze(v.bottomLeftBorderBox,v.bottomLeftPaddingBox,v.topLeftBorderBox,v.topLeftPaddingBox)}},cy=function(v,e){switch(e){case 0:return ze(v.topLeftBorderBox,v.topLeftBorderDoubleOuterBox,v.topRightBorderBox,v.topRightBorderDoubleOuterBox);case 1:return ze(v.topRightBorderBox,v.topRightBorderDoubleOuterBox,v.bottomRightBorderBox,v.bottomRightBorderDoubleOuterBox);case 2:return ze(v.bottomRightBorderBox,v.bottomRightBorderDoubleOuterBox,v.bottomLeftBorderBox,v.bottomLeftBorderDoubleOuterBox);case 3:default:return ze(v.bottomLeftBorderBox,v.bottomLeftBorderDoubleOuterBox,v.topLeftBorderBox,v.topLeftBorderDoubleOuterBox)}},ly=function(v,e){switch(e){case 0:return ze(v.topLeftBorderDoubleInnerBox,v.topLeftPaddingBox,v.topRightBorderDoubleInnerBox,v.topRightPaddingBox);case 1:return ze(v.topRightBorderDoubleInnerBox,v.topRightPaddingBox,v.bottomRightBorderDoubleInnerBox,v.bottomRightPaddingBox);case 2:return ze(v.bottomRightBorderDoubleInnerBox,v.bottomRightPaddingBox,v.bottomLeftBorderDoubleInnerBox,v.bottomLeftPaddingBox);case 3:default:return ze(v.bottomLeftBorderDoubleInnerBox,v.bottomLeftPaddingBox,v.topLeftBorderDoubleInnerBox,v.topLeftPaddingBox)}},uy=function(v,e){switch(e){case 0:return jn(v.topLeftBorderStroke,v.topRightBorderStroke);case 1:return jn(v.topRightBorderStroke,v.bottomRightBorderStroke);case 2:return jn(v.bottomRightBorderStroke,v.bottomLeftBorderStroke);case 3:default:return jn(v.bottomLeftBorderStroke,v.topLeftBorderStroke)}},jn=function(v,e){var t=[];return We(v)?t.push(v.subdivide(.5,!1)):t.push(v),We(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},ze=function(v,e,t,o){var y=[];return We(v)?y.push(v.subdivide(.5,!1)):y.push(v),We(t)?y.push(t.subdivide(.5,!0)):y.push(t),We(o)?y.push(o.subdivide(.5,!0).reverse()):y.push(o),We(e)?y.push(e.subdivide(.5,!1).reverse()):y.push(e),y},xu=function(v){var e=v.bounds,t=v.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Wn=function(v){var e=v.styles,t=v.bounds,o=pe(e.paddingLeft,t.width),y=pe(e.paddingRight,t.width),B=pe(e.paddingTop,t.width),A=pe(e.paddingBottom,t.width);return t.add(o+e.borderLeftWidth,B+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+o+y),-(e.borderTopWidth+e.borderBottomWidth+B+A))},dy=function(v,e){return v===0?e.bounds:v===2?Wn(e):xu(e)},fy=function(v,e){return v===0?e.bounds:v===2?Wn(e):xu(e)},Io=function(v,e,t){var o=dy(Zt(v.styles.backgroundOrigin,e),v),y=fy(Zt(v.styles.backgroundClip,e),v),B=hy(Zt(v.styles.backgroundSize,e),t,o),A=B[0],h=B[1],m=yr(Zt(v.styles.backgroundPosition,e),o.width-A,o.height-h),g=py(Zt(v.styles.backgroundRepeat,e),m,B,o,y),w=Math.round(o.left+m[0]),p=Math.round(o.top+m[1]);return[g,w,p,A,h]},$t=function(v){return fe(v)&&v.value===Wt.AUTO},zn=function(v){return typeof v=="number"},hy=function(v,e,t){var o=e[0],y=e[1],B=e[2],A=v[0],h=v[1];if(!A)return[0,0];if(Ee(A)&&h&&Ee(h))return[pe(A,t.width),pe(h,t.height)];var m=zn(B);if(fe(A)&&(A.value===Wt.CONTAIN||A.value===Wt.COVER)){if(zn(B)){var g=t.width/t.height;return g<B!=(A.value===Wt.COVER)?[t.width,t.width/B]:[t.height*B,t.height]}return[t.width,t.height]}var w=zn(o),p=zn(y),u=w||p;if($t(A)&&(!h||$t(h))){if(w&&p)return[o,y];if(!m&&!u)return[t.width,t.height];if(u&&m){var f=w?o:y*B,c=p?y:o/B;return[f,c]}var a=w?o:t.width,n=p?y:t.height;return[a,n]}if(m){var s=0,r=0;return Ee(A)?s=pe(A,t.width):Ee(h)&&(r=pe(h,t.height)),$t(A)?s=r*B:(!h||$t(h))&&(r=s/B),[s,r]}var i=null,l=null;if(Ee(A)?i=pe(A,t.width):h&&Ee(h)&&(l=pe(h,t.height)),i!==null&&(!h||$t(h))&&(l=w&&p?i/o*y:t.height),l!==null&&$t(A)&&(i=w&&p?l/y*o:t.width),i!==null&&l!==null)return[i,l];throw new Error("Unable to calculate background-size for element")},Zt=function(v,e){var t=v[e];return typeof t>"u"?v[0]:t},py=function(v,e,t,o,y){var B=e[0],A=e[1],h=t[0],m=t[1];switch(v){case 2:return[new q(Math.round(o.left),Math.round(o.top+A)),new q(Math.round(o.left+o.width),Math.round(o.top+A)),new q(Math.round(o.left+o.width),Math.round(m+o.top+A)),new q(Math.round(o.left),Math.round(m+o.top+A))];case 3:return[new q(Math.round(o.left+B),Math.round(o.top)),new q(Math.round(o.left+B+h),Math.round(o.top)),new q(Math.round(o.left+B+h),Math.round(o.height+o.top)),new q(Math.round(o.left+B),Math.round(o.height+o.top))];case 1:return[new q(Math.round(o.left+B),Math.round(o.top+A)),new q(Math.round(o.left+B+h),Math.round(o.top+A)),new q(Math.round(o.left+B+h),Math.round(o.top+A+m)),new q(Math.round(o.left+B),Math.round(o.top+A+m))];default:return[new q(Math.round(y.left),Math.round(y.top)),new q(Math.round(y.left+y.width),Math.round(y.top)),new q(Math.round(y.left+y.width),Math.round(y.height+y.top)),new q(Math.round(y.left),Math.round(y.height+y.top))]}},gy="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Ou="Hidden Text",vy=function(){function v(e){this._data={},this._document=e}return v.prototype.parseMetrics=function(e,t){var o=this._document.createElement("div"),y=this._document.createElement("img"),B=this._document.createElement("span"),A=this._document.body;o.style.visibility="hidden",o.style.fontFamily=e,o.style.fontSize=t,o.style.margin="0",o.style.padding="0",o.style.whiteSpace="nowrap",A.appendChild(o),y.src=gy,y.width=1,y.height=1,y.style.margin="0",y.style.padding="0",y.style.verticalAlign="baseline",B.style.fontFamily=e,B.style.fontSize=t,B.style.margin="0",B.style.padding="0",B.appendChild(this._document.createTextNode(Ou)),o.appendChild(B),o.appendChild(y);var h=y.offsetTop-B.offsetTop+2;o.removeChild(B),o.appendChild(this._document.createTextNode(Ou)),o.style.lineHeight="normal",y.style.verticalAlign="super";var m=y.offsetTop-o.offsetTop+2;return A.removeChild(o),{baseline:h,middle:m}},v.prototype.getMetrics=function(e,t){var o=e+" "+t;return typeof this._data[o]>"u"&&(this._data[o]=this.parseMetrics(e,t)),this._data[o]},v}(),Mu=function(){function v(e,t){this.context=e,this.options=t}return v}(),yy=1e4,my=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;return y._activeEffects=[],y.canvas=o.canvas?o.canvas:document.createElement("canvas"),y.ctx=y.canvas.getContext("2d"),o.canvas||(y.canvas.width=Math.floor(o.width*o.scale),y.canvas.height=Math.floor(o.height*o.scale),y.canvas.style.width=o.width+"px",y.canvas.style.height=o.height+"px"),y.fontMetrics=new vy(document),y.ctx.scale(y.options.scale,y.options.scale),y.ctx.translate(-o.x,-o.y),y.ctx.textBaseline="bottom",y._activeEffects=[],y.context.logger.debug("Canvas renderer initialized ("+o.width+"x"+o.height+") with scale "+o.scale),y}return e.prototype.applyEffects=function(t){for(var o=this;this._activeEffects.length;)this.popEffect();t.forEach(function(y){return o.applyEffect(y)})},e.prototype.applyEffect=function(t){this.ctx.save(),oy(t)&&(this.ctx.globalAlpha=t.opacity),iy(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),Qu(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return Re(this,void 0,void 0,function(){var o;return xe(this,function(y){switch(y.label){case 0:return o=t.element.container.styles,o.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:y.sent(),y.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return Re(this,void 0,void 0,function(){return xe(this,function(o){switch(o.label){case 0:if(Qe(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return o.sent(),[4,this.renderNodeContent(t)];case 2:o.sent(),o.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,o,y){var B=this;if(o===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+y);else{var A=yo(t.text);A.reduce(function(h,m){return B.ctx.fillText(m,h,t.bounds.top+y),h+B.ctx.measureText(m).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var o=t.fontVariant.filter(function(A){return A==="normal"||A==="small-caps"}).join(""),y=_y(t.fontFamily).join(", "),B=vr(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,o,t.fontWeight,B,y].join(" "),y,B]},e.prototype.renderTextNode=function(t,o){return Re(this,void 0,void 0,function(){var y,B,A,h,m,g,w,p,u=this;return xe(this,function(f){return y=this.createFontStyle(o),B=y[0],A=y[1],h=y[2],this.ctx.font=B,this.ctx.direction=o.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",m=this.fontMetrics.getMetrics(A,h),g=m.baseline,w=m.middle,p=o.paintOrder,t.textBounds.forEach(function(c){p.forEach(function(a){switch(a){case 0:u.ctx.fillStyle=Se(o.color),u.renderTextWithLetterSpacing(c,o.letterSpacing,g);var n=o.textShadow;n.length&&c.text.trim().length&&(n.slice(0).reverse().forEach(function(s){u.ctx.shadowColor=Se(s.color),u.ctx.shadowOffsetX=s.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=s.offsetY.number*u.options.scale,u.ctx.shadowBlur=s.blur.number,u.renderTextWithLetterSpacing(c,o.letterSpacing,g)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),o.textDecorationLine.length&&(u.ctx.fillStyle=Se(o.textDecorationColor||o.color),o.textDecorationLine.forEach(function(s){switch(s){case 1:u.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top+g),c.bounds.width,1);break;case 2:u.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top),c.bounds.width,1);break;case 3:u.ctx.fillRect(c.bounds.left,Math.ceil(c.bounds.top+w),c.bounds.width,1);break}}));break;case 1:o.webkitTextStrokeWidth&&c.text.trim().length&&(u.ctx.strokeStyle=Se(o.webkitTextStrokeColor),u.ctx.lineWidth=o.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(c.text,c.bounds.left,c.bounds.top+g)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,o,y){if(y&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var B=Wn(t),A=Vn(o);this.path(A),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(y,0,0,t.intrinsicWidth,t.intrinsicHeight,B.left,B.top,B.width,B.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return Re(this,void 0,void 0,function(){var o,y,B,A,h,m,r,r,g,w,p,u,l,f,c,d,a,n,s,r,i,l,d;return xe(this,function(C){switch(C.label){case 0:this.applyEffects(t.getEffects(4)),o=t.container,y=t.curves,B=o.styles,A=0,h=o.textNodes,C.label=1;case 1:return A<h.length?(m=h[A],[4,this.renderTextNode(m,B)]):[3,4];case 2:C.sent(),C.label=3;case 3:return A++,[3,1];case 4:if(!(o instanceof ql))return[3,8];C.label=5;case 5:return C.trys.push([5,7,,8]),[4,this.context.cache.match(o.src)];case 6:return r=C.sent(),this.renderReplacedElement(o,y,r),[3,8];case 7:return C.sent(),this.context.logger.error("Error loading image "+o.src),[3,8];case 8:if(o instanceof eu&&this.renderReplacedElement(o,y,o.canvas),!(o instanceof tu))return[3,12];C.label=9;case 9:return C.trys.push([9,11,,12]),[4,this.context.cache.match(o.svg)];case 10:return r=C.sent(),this.renderReplacedElement(o,y,r),[3,12];case 11:return C.sent(),this.context.logger.error("Error loading svg "+o.svg.substring(0,255)),[3,12];case 12:return o instanceof ou&&o.tree?(g=new e(this.context,{scale:this.options.scale,backgroundColor:o.backgroundColor,x:0,y:0,width:o.width,height:o.height}),[4,g.render(o.tree)]):[3,14];case 13:w=C.sent(),o.width&&o.height&&this.ctx.drawImage(w,0,0,o.width,o.height,o.bounds.left,o.bounds.top,o.bounds.width,o.bounds.height),C.label=14;case 14:if(o instanceof wo&&(p=Math.min(o.bounds.width,o.bounds.height),o.type===Mn?o.checked&&(this.ctx.save(),this.path([new q(o.bounds.left+p*.39363,o.bounds.top+p*.79),new q(o.bounds.left+p*.16,o.bounds.top+p*.5549),new q(o.bounds.left+p*.27347,o.bounds.top+p*.44071),new q(o.bounds.left+p*.39694,o.bounds.top+p*.5649),new q(o.bounds.left+p*.72983,o.bounds.top+p*.23),new q(o.bounds.left+p*.84,o.bounds.top+p*.34085),new q(o.bounds.left+p*.39363,o.bounds.top+p*.79)]),this.ctx.fillStyle=Se(Au),this.ctx.fill(),this.ctx.restore()):o.type===Hn&&o.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(o.bounds.left+p/2,o.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=Se(Au),this.ctx.fill(),this.ctx.restore())),wy(o)&&o.value.length){switch(u=this.createFontStyle(B),l=u[0],f=u[1],c=this.fontMetrics.getMetrics(l,f).baseline,this.ctx.font=l,this.ctx.fillStyle=Se(B.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Cy(o.styles.textAlign),d=Wn(o),a=0,o.styles.textAlign){case 1:a+=d.width/2;break;case 2:a+=d.width;break}n=d.add(a,0,0,-d.height/2+1),this.ctx.save(),this.path([new q(d.left,d.top),new q(d.left+d.width,d.top),new q(d.left+d.width,d.top+d.height),new q(d.left,d.top+d.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Cr(o.value,n),B.letterSpacing,c),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Qe(o.styles.display,2048))return[3,20];if(o.styles.listStyleImage===null)return[3,19];if(s=o.styles.listStyleImage,s.type!==0)return[3,18];r=void 0,i=s.url,C.label=15;case 15:return C.trys.push([15,17,,18]),[4,this.context.cache.match(i)];case 16:return r=C.sent(),this.ctx.drawImage(r,o.bounds.left-(r.width+10),o.bounds.top),[3,18];case 17:return C.sent(),this.context.logger.error("Error loading list-style-image "+i),[3,18];case 18:return[3,20];case 19:t.listValue&&o.styles.listStyleType!==-1&&(l=this.createFontStyle(B)[0],this.ctx.font=l,this.ctx.fillStyle=Se(B.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",d=new ot(o.bounds.left,o.bounds.top+pe(o.styles.paddingTop,o.bounds.width),o.bounds.width,Ol(B.lineHeight,B.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Cr(t.listValue,d),B.letterSpacing,Ol(B.lineHeight,B.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),C.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return Re(this,void 0,void 0,function(){var o,y,s,B,A,s,h,m,s,g,w,s,p,u,s,f,c,s,a,n,s;return xe(this,function(r){switch(r.label){case 0:if(Qe(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:r.sent(),o=0,y=t.negativeZIndex,r.label=2;case 2:return o<y.length?(s=y[o],[4,this.renderStack(s)]):[3,5];case 3:r.sent(),r.label=4;case 4:return o++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:r.sent(),B=0,A=t.nonInlineLevel,r.label=7;case 7:return B<A.length?(s=A[B],[4,this.renderNode(s)]):[3,10];case 8:r.sent(),r.label=9;case 9:return B++,[3,7];case 10:h=0,m=t.nonPositionedFloats,r.label=11;case 11:return h<m.length?(s=m[h],[4,this.renderStack(s)]):[3,14];case 12:r.sent(),r.label=13;case 13:return h++,[3,11];case 14:g=0,w=t.nonPositionedInlineLevel,r.label=15;case 15:return g<w.length?(s=w[g],[4,this.renderStack(s)]):[3,18];case 16:r.sent(),r.label=17;case 17:return g++,[3,15];case 18:p=0,u=t.inlineLevel,r.label=19;case 19:return p<u.length?(s=u[p],[4,this.renderNode(s)]):[3,22];case 20:r.sent(),r.label=21;case 21:return p++,[3,19];case 22:f=0,c=t.zeroOrAutoZIndexOrTransformedOrOpacity,r.label=23;case 23:return f<c.length?(s=c[f],[4,this.renderStack(s)]):[3,26];case 24:r.sent(),r.label=25;case 25:return f++,[3,23];case 26:a=0,n=t.positiveZIndex,r.label=27;case 27:return a<n.length?(s=n[a],[4,this.renderStack(s)]):[3,30];case 28:r.sent(),r.label=29;case 29:return a++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var o=this;t.forEach(function(y,B){var A=We(y)?y.start:y;B===0?o.ctx.moveTo(A.x,A.y):o.ctx.lineTo(A.x,A.y),We(y)&&o.ctx.bezierCurveTo(y.startControl.x,y.startControl.y,y.endControl.x,y.endControl.y,y.end.x,y.end.y)})},e.prototype.renderRepeat=function(t,o,y,B){this.path(t),this.ctx.fillStyle=o,this.ctx.translate(y,B),this.ctx.fill(),this.ctx.translate(-y,-B)},e.prototype.resizeImage=function(t,o,y){var B;if(t.width===o&&t.height===y)return t;var A=(B=this.canvas.ownerDocument)!==null&&B!==void 0?B:document,h=A.createElement("canvas");h.width=Math.max(1,o),h.height=Math.max(1,y);var m=h.getContext("2d");return m.drawImage(t,0,0,t.width,t.height,0,0,o,y),h},e.prototype.renderBackgroundImage=function(t){return Re(this,void 0,void 0,function(){var o,y,B,A,h,m;return xe(this,function(g){switch(g.label){case 0:o=t.styles.backgroundImage.length-1,y=function(w){var p,u,f,F,I,M,T,S,b,c,F,I,M,T,S,a,n,s,r,i,l,d,C,_,b,E,F,Q,U,T,S,P,I,M,K,W,L,O,H,k,G,D;return xe(this,function(R){switch(R.label){case 0:if(w.type!==0)return[3,5];p=void 0,u=w.url,R.label=1;case 1:return R.trys.push([1,3,,4]),[4,B.context.cache.match(u)];case 2:return p=R.sent(),[3,4];case 3:return R.sent(),B.context.logger.error("Error loading background-image "+u),[3,4];case 4:return p&&(f=Io(t,o,[p.width,p.height,p.width/p.height]),F=f[0],I=f[1],M=f[2],T=f[3],S=f[4],b=B.ctx.createPattern(B.resizeImage(p,T,S),"repeat"),B.renderRepeat(F,b,I,M)),[3,6];case 5:ip(w)?(c=Io(t,o,[null,null,null]),F=c[0],I=c[1],M=c[2],T=c[3],S=c[4],a=ep(w.angle,T,S),n=a[0],s=a[1],r=a[2],i=a[3],l=a[4],d=document.createElement("canvas"),d.width=T,d.height=S,C=d.getContext("2d"),_=C.createLinearGradient(s,i,r,l),bl(w.stops,n).forEach(function(N){return _.addColorStop(N.stop,Se(N.color))}),C.fillStyle=_,C.fillRect(0,0,T,S),T>0&&S>0&&(b=B.ctx.createPattern(d,"repeat"),B.renderRepeat(F,b,I,M))):op(w)&&(E=Io(t,o,[null,null,null]),F=E[0],Q=E[1],U=E[2],T=E[3],S=E[4],P=w.position.length===0?[ro]:w.position,I=pe(P[0],T),M=pe(P[P.length-1],S),K=tp(w,I,M,T,S),W=K[0],L=K[1],W>0&&L>0&&(O=B.ctx.createRadialGradient(Q+I,U+M,0,Q+I,U+M,W),bl(w.stops,W*2).forEach(function(N){return O.addColorStop(N.stop,Se(N.color))}),B.path(F),B.ctx.fillStyle=O,W!==L?(H=t.bounds.left+.5*t.bounds.width,k=t.bounds.top+.5*t.bounds.height,G=L/W,D=1/G,B.ctx.save(),B.ctx.translate(H,k),B.ctx.transform(1,0,0,G,0,0),B.ctx.translate(-H,-k),B.ctx.fillRect(Q,D*(U-k)+k,T,S*D),B.ctx.restore()):B.ctx.fill())),R.label=6;case 6:return o--,[2]}})},B=this,A=0,h=t.styles.backgroundImage.slice(0).reverse(),g.label=1;case 1:return A<h.length?(m=h[A],[5,y(m)]):[3,4];case 2:g.sent(),g.label=3;case 3:return A++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(t,o,y){return Re(this,void 0,void 0,function(){return xe(this,function(B){return this.path(Pu(y,o)),this.ctx.fillStyle=Se(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,o,y,B){return Re(this,void 0,void 0,function(){var A,h;return xe(this,function(m){switch(m.label){case 0:return o<3?[4,this.renderSolidBorder(t,y,B)]:[3,2];case 1:return m.sent(),[2];case 2:return A=cy(B,y),this.path(A),this.ctx.fillStyle=Se(t),this.ctx.fill(),h=ly(B,y),this.path(h),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return Re(this,void 0,void 0,function(){var o,y,B,A,h,m,g,w,p=this;return xe(this,function(u){switch(u.label){case 0:return this.applyEffects(t.getEffects(2)),o=t.container.styles,y=!gt(o.backgroundColor)||o.backgroundImage.length,B=[{style:o.borderTopStyle,color:o.borderTopColor,width:o.borderTopWidth},{style:o.borderRightStyle,color:o.borderRightColor,width:o.borderRightWidth},{style:o.borderBottomStyle,color:o.borderBottomColor,width:o.borderBottomWidth},{style:o.borderLeftStyle,color:o.borderLeftColor,width:o.borderLeftWidth}],A=By(Zt(o.backgroundClip,0),t.curves),y||o.boxShadow.length?(this.ctx.save(),this.path(A),this.ctx.clip(),gt(o.backgroundColor)||(this.ctx.fillStyle=Se(o.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),o.boxShadow.slice(0).reverse().forEach(function(f){p.ctx.save();var c=Nn(t.curves),a=f.inset?0:yy,n=sy(c,-a+(f.inset?1:-1)*f.spread.number,(f.inset?1:-1)*f.spread.number,f.spread.number*(f.inset?-2:2),f.spread.number*(f.inset?-2:2));f.inset?(p.path(c),p.ctx.clip(),p.mask(n)):(p.mask(c),p.ctx.clip(),p.path(n)),p.ctx.shadowOffsetX=f.offsetX.number+a,p.ctx.shadowOffsetY=f.offsetY.number,p.ctx.shadowColor=Se(f.color),p.ctx.shadowBlur=f.blur.number,p.ctx.fillStyle=f.inset?Se(f.color):"rgba(0,0,0,1)",p.ctx.fill(),p.ctx.restore()}),u.label=2;case 2:h=0,m=0,g=B,u.label=3;case 3:return m<g.length?(w=g[m],w.style!==0&&!gt(w.color)&&w.width>0?w.style!==2?[3,5]:[4,this.renderDashedDottedBorder(w.color,w.width,h,t.curves,2)]:[3,11]):[3,13];case 4:return u.sent(),[3,11];case 5:return w.style!==3?[3,7]:[4,this.renderDashedDottedBorder(w.color,w.width,h,t.curves,3)];case 6:return u.sent(),[3,11];case 7:return w.style!==4?[3,9]:[4,this.renderDoubleBorder(w.color,w.width,h,t.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(w.color,h,t.curves)];case 10:u.sent(),u.label=11;case 11:h++,u.label=12;case 12:return m++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,o,y,B,A){return Re(this,void 0,void 0,function(){var h,m,g,w,p,u,f,c,a,n,s,r,i,l,d,C,d,C;return xe(this,function(_){return this.ctx.save(),h=uy(B,y),m=Pu(B,y),A===2&&(this.path(m),this.ctx.clip()),We(m[0])?(g=m[0].start.x,w=m[0].start.y):(g=m[0].x,w=m[0].y),We(m[1])?(p=m[1].end.x,u=m[1].end.y):(p=m[1].x,u=m[1].y),y===0||y===2?f=Math.abs(g-p):f=Math.abs(w-u),this.ctx.beginPath(),A===3?this.formatPath(h):this.formatPath(m.slice(0,2)),c=o<3?o*3:o*2,a=o<3?o*2:o,A===3&&(c=o,a=o),n=!0,f<=c*2?n=!1:f<=c*2+a?(s=f/(2*c+a),c*=s,a*=s):(r=Math.floor((f+a)/(c+a)),i=(f-r*c)/(r-1),l=(f-(r+1)*c)/r,a=l<=0||Math.abs(a-i)<Math.abs(a-l)?i:l),n&&(A===3?this.ctx.setLineDash([0,c+a]):this.ctx.setLineDash([c,a])),A===3?(this.ctx.lineCap="round",this.ctx.lineWidth=o):this.ctx.lineWidth=o*2+1.1,this.ctx.strokeStyle=Se(t),this.ctx.stroke(),this.ctx.setLineDash([]),A===2&&(We(m[0])&&(d=m[3],C=m[0],this.ctx.beginPath(),this.formatPath([new q(d.end.x,d.end.y),new q(C.start.x,C.start.y)]),this.ctx.stroke()),We(m[1])&&(d=m[1],C=m[2],this.ctx.beginPath(),this.formatPath([new q(d.end.x,d.end.y),new q(C.start.x,C.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return Re(this,void 0,void 0,function(){var o;return xe(this,function(y){switch(y.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Se(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),o=ay(t),[4,this.renderStack(o)];case 1:return y.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(Mu),wy=function(v){return v instanceof iu||v instanceof nu?!0:v instanceof wo&&v.type!==Hn&&v.type!==Mn},By=function(v,e){switch(v){case 0:return Nn(e);case 2:return ry(e);case 1:default:return Vn(e)}},Cy=function(v){switch(v){case 1:return"center";case 2:return"right";case 0:default:return"left"}},by=["-apple-system","system-ui"],_y=function(v){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?v.filter(function(e){return by.indexOf(e)===-1}):v},Ey=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;return y.canvas=o.canvas?o.canvas:document.createElement("canvas"),y.ctx=y.canvas.getContext("2d"),y.options=o,y.canvas.width=Math.floor(o.width*o.scale),y.canvas.height=Math.floor(o.height*o.scale),y.canvas.style.width=o.width+"px",y.canvas.style.height=o.height+"px",y.ctx.scale(y.options.scale,y.options.scale),y.ctx.translate(-o.x,-o.y),y.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+o.width+"x"+o.height+" at "+o.x+","+o.y+") with scale "+o.scale),y}return e.prototype.render=function(t){return Re(this,void 0,void 0,function(){var o,y;return xe(this,function(B){switch(B.label){case 0:return o=vo(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,Fy(o)];case 1:return y=B.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Se(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(y,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(Mu),Fy=function(v){return new Promise(function(e,t){var o=new Image;o.onload=function(){e(o)},o.onerror=t,o.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(v))})},Qy=function(){function v(e){var t=e.id,o=e.enabled;this.id=t,this.enabled=o,this.start=Date.now()}return v.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,en([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},v.prototype.getTime=function(){return Date.now()-this.start},v.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,en([this.id,this.getTime()+"ms"],e))},v.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,en([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},v.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,en([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},v.instances={},v}(),Sy=function(){function v(e,t){var o;this.windowBounds=t,this.instanceName="#"+v.instanceCount++,this.logger=new Qy({id:this.instanceName,enabled:e.logging}),this.cache=(o=e.cache)!==null&&o!==void 0?o:new Jv(this,e)}return v.instanceCount=1,v}(),Uy=function(v,e){return e===void 0&&(e={}),Ty(v,e)};typeof window<"u"&&Fu.setContext(window);var Ty=function(v,e){return Re(void 0,void 0,void 0,function(){var t,o,y,B,A,h,m,g,w,p,u,f,c,a,n,s,r,i,l,d,_,C,_,b,E,F,Q,U,T,S,P,I,M,K,W,L,O,H,k,G;return xe(this,function(D){switch(D.label){case 0:if(!v||typeof v!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=v.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(o=t.defaultView,!o)throw new Error("Document is not attached to a Window");return y={allowTaint:(b=e.allowTaint)!==null&&b!==void 0?b:!1,imageTimeout:(E=e.imageTimeout)!==null&&E!==void 0?E:15e3,proxy:e.proxy,useCORS:(F=e.useCORS)!==null&&F!==void 0?F:!1},B=Mi({logging:(Q=e.logging)!==null&&Q!==void 0?Q:!0,cache:e.cache},y),A={windowWidth:(U=e.windowWidth)!==null&&U!==void 0?U:o.innerWidth,windowHeight:(T=e.windowHeight)!==null&&T!==void 0?T:o.innerHeight,scrollX:(S=e.scrollX)!==null&&S!==void 0?S:o.pageXOffset,scrollY:(P=e.scrollY)!==null&&P!==void 0?P:o.pageYOffset},h=new ot(A.scrollX,A.scrollY,A.windowWidth,A.windowHeight),m=new Sy(B,h),g=(I=e.foreignObjectRendering)!==null&&I!==void 0?I:!1,w={allowTaint:(M=e.allowTaint)!==null&&M!==void 0?M:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:g,copyStyles:g},m.logger.debug("Starting document clone with size "+h.width+"x"+h.height+" scrolled to "+-h.left+","+-h.top),p=new _u(m,v,w),u=p.clonedReferenceElement,u?[4,p.toIFrame(t,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return f=D.sent(),c=Co(u)||Iv(u)?sf(u.ownerDocument):tn(m,u),a=c.width,n=c.height,s=c.left,r=c.top,i=Iy(m,u,e.backgroundColor),l={canvas:e.canvas,backgroundColor:i,scale:(W=(K=e.scale)!==null&&K!==void 0?K:o.devicePixelRatio)!==null&&W!==void 0?W:1,x:((L=e.x)!==null&&L!==void 0?L:0)+s,y:((O=e.y)!==null&&O!==void 0?O:0)+r,width:(H=e.width)!==null&&H!==void 0?H:Math.ceil(a),height:(k=e.height)!==null&&k!==void 0?k:Math.ceil(n)},g?(m.logger.debug("Document cloned, using foreign object rendering"),_=new Ey(m,l),[4,_.render(u)]):[3,3];case 2:return d=D.sent(),[3,5];case 3:return m.logger.debug("Document cloned, element located at "+s+","+r+" with size "+a+"x"+n+" using computed rendering"),m.logger.debug("Starting DOM parsing"),C=au(m,u),i===C.styles.backgroundColor&&(C.styles.backgroundColor=at.TRANSPARENT),m.logger.debug("Starting renderer for element at "+l.x+","+l.y+" with size "+l.width+"x"+l.height),_=new my(m,l),[4,_.render(C)];case 4:d=D.sent(),D.label=5;case 5:return(!((G=e.removeContainer)!==null&&G!==void 0)||G)&&(_u.destroy(f)||m.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),m.logger.debug("Finished rendering"),[2,d]}})})},Iy=function(v,e,t){var o=e.ownerDocument,y=o.documentElement?mr(v,getComputedStyle(o.documentElement).backgroundColor):at.TRANSPARENT,B=o.body?mr(v,getComputedStyle(o.body).backgroundColor):at.TRANSPARENT,A=typeof t=="string"?mr(v,t):t===null?at.TRANSPARENT:4294967295;return e===o.documentElement?gt(y)?gt(B)?A:B:y:A};const Xr=class Xr extends j.EngineObject{constructor(t,o){super(t,o);z(this,"_imageLabel",this.dv(new j.ESImageLabel(`${this.sceneObject.id}_ESImageLabel`)));z(this,"_hasClassDivAndPos",{});const y=o.viewer;if(!y){console.warn("viewer is undefined!");return}t.mainClass=this._imageLabel;const B=this._imageLabel;o.add(B),this.d(()=>o.delete(B));{const A=()=>{if(!y)return;if(!t.instanceClass)throw new Error("!sceneObject.instanceClass");const g=document.createElement("div"),w=this.dv(new t.instanceClass(g,t,o))._container;if(w.style.opacity=t.opacity.toString()??j.ESGeoDiv.defaults.opacity,w.style.position="fixed",w.style.zIndex="-1",w.style.top="0px",!document.body.contains(w)){document.body.appendChild(w);let u=w?w.querySelectorAll("*[class]"):[];for(let f=0;f<u.length;f++){const c=u[f];var p=c.getBoundingClientRect();this._hasClassDivAndPos[c.className]=[c.offsetLeft,c.offsetTop,c.offsetLeft+p.width,c.offsetTop+p.height]}}Uy(w,{backgroundColor:null,allowTaint:!0,useCORS:!0,width:w.offsetWidth,height:w.offsetHeight,scale:1}).then(u=>{document.body.contains(w)&&document.body.removeChild(w),B.url=u.toDataURL(),B.show=t.show}).catch(()=>{document.body.contains(w)&&document.body.removeChild(w)})},h=()=>{try{t.instanceClass?A():(B.url="",B.show=!1)}catch(g){console.error(g)}};h();const m=this.dv(V.createNextAnimateFrameEvent(t.instanceClassChanged,t.opacityChanged));this.d(m.don(h))}{const A=()=>{B.show=t.show};B.show=!1,this.ad(t.showChanged.don(A))}this.d(V.track([B,"anchor"],[t,"anchor"])),this.d(V.bind([B,"position"],[t,"position"])),this.d(V.bind([B,"rotation"],[t,"rotation"])),this.d(V.bind([B,"flyToParam"],[t,"flyToParam"])),this.d(V.bind([B,"flyInParam"],[t,"flyInParam"])),this.d(V.bind([B,"allowPicking"],[t,"allowPicking"])),this.d(V.bind([B,"scale"],[t,"scale"])),this.d(V.track([B,"minVisibleDistance"],[t,"minVisibleDistance"])),this.d(V.track([B,"maxVisibleDistance"],[t,"maxVisibleDistance"])),this.ad(t.automaticLandingEvent.don(()=>{B.automaticLanding()})),this.d(B.pickedEvent.don(A=>{(t.allowPicking??!1)&&t.pickedEvent.emit(A)})),this.d(o.widgetEvent.don(A=>{if(A.objId!==this._imageLabel.id)return;const{type:h,add:m}=A;if(h==="leftClick"&&m){const g=(m==null?void 0:m.classNames)??[],w=Object.keys(this._hasClassDivAndPos);for(let p=0;p<w.length;p++){const u=w[p];let f=this._hasClassDivAndPos[u];m&&m.mouseRelativePos&&m.mouseRelativePos[0]>=f[0]&&m.mouseRelativePos[0]<=f[2]&&m.mouseRelativePos[1]>=f[1]&&m.mouseRelativePos[1]<=f[3]&&g.push(u)}m.classNames=g}t.widgetEvent.emit({type:h,add:m})})),this.d(t.calcFlyToParamEvent.don(()=>{Lt(y,B.id)})),this.d(t.calcFlyInParamEvent.don(()=>{const A=o.getCurrentCameraInfo();if(!A)return;const{position:h,rotation:m}=A;t.flyInParam={position:h,rotation:m,flyDuration:1}})),this.d(t.smoothMoveEvent.don((A,h)=>{zA(y,B.id,A,h)})),this.d(t.smoothMoveWithRotationEvent.don((A,h,m)=>{GA(y,B.id,A,h,m)})),this.d(t.smoothMoveOnGroundEvent.don((A,h,m,g)=>{jA(y,B.id,A,h,g,m)})),this.d(t.smoothMoveWithRotationOnGroundEvent.don((A,h,m,g,w)=>{WA(y,B.id,A,h,m,g,w)})),this.d(t.flyToEvent.don((A,h)=>{B.flyTo(A)})),this.d(t.flyInEvent.don(A=>{B.flyIn(A)}))}};z(Xr,"type",Xr.register("ESUeViewer",j.ESGeoDiv.type,Xr));let Po=Xr;const Yr=class Yr extends De{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.flyToFeatureIndexEvent.don((y,B)=>{o.callUeFunc({f:"flyToFeatureIndex",p:{id:e.id,index:y,duration:B}})})),this.d(e.flyToFeatureEvent.don((y,B,A)=>{o.callUeFunc({f:"flyToFeature",p:{id:e.id,key:y,value:B,duration:A}})}))}};z(Yr,"type",Yr.register("ESUeViewer",j.ESGeoJson.type,Yr));let xo=Yr;const $r=class $r extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z($r,"type",$r.register("ESUeViewer",j.ESGeoLineString.type,$r));let Jn=$r;const Zr=class Zr extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Zr,"type",Zr.register("ESUeViewer",j.ESGeoRectangle.type,Zr));let Oo=Zr;const qr=class qr extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(qr,"type",qr.register("ESUeViewer",j.ESGeoWater.type,qr));let Mo=qr;const Pt=class Pt extends de{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.setNodePositionEvent.don((y,B)=>{Rs(o,e.id,y,B)})),this.d(e.setNodeRotationEvent.don((y,B)=>{ks(o,e.id,y,B)})),this.d(e.setNodeScaleEvent.don((y,B)=>{Ks(o,e.id,y,B)}))}};z(Pt,"forceUeUpdateProps",[...de.forceUeUpdateProps,"url"]),z(Pt,"propValFuncs",{...de.propValFuncs,url:e=>typeof e=="string"?j.ESSceneObject.context.getStrFromEnv(j.rpToap(e)):(e.url=j.ESSceneObject.context.getStrFromEnv(j.rpToap(e.url)),e),czmMaximumScale:null,czmMinimumPixelSize:null,czmNativeScale:null,czmColor:null}),z(Pt,"type",Pt.register("ESUeViewer",j.ESGltfModel.type,Pt));let Ho=Pt;const eA=class eA extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(eA,"type",eA.register("ESUeViewer",j.ESHeightMeasurement.type,eA));let Lo=eA;const tA=class tA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}const y=async(A,h,m,g)=>{const{viewer:w}=A;if(!w){console.error("AIMoveTo: ueViewer.viewer is undefined");return}const p=await w.callUeFunc({f:"AIMoveTo",p:{id:h,Destination:m,Time:g}});return p.error&&console.error("AIMoveTo:",p.error),p};this.d(e.aiMoveToEvent.don((A,h)=>{y(t,e.id,A,h)}));const B=async(A,h)=>{const{viewer:m}=A;if(!m){console.error("StopAIMove: ueViewer.viewer is undefined");return}const g=await m.callUeFunc({f:"StopAIMove",p:{id:h}});return g.error&&console.error("StopAIMove:",g.error),g};this.d(e.stopAIMoveEvent.don(()=>{B(t,e.id)}))}};z(tA,"type",tA.register("ESUeViewer",j.ESHuman.type,tA));let Do=tA;const xt=class xt extends $e{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}e.anchor=[.5,1]}};z(xt,"type",xt.register("ESUeViewer",j.ESImageLabel.type,xt)),z(xt,"forceUeUpdateProps",[...$e.forceUeUpdateProps,"url"]),z(xt,"propValFuncs",{...$e.propValFuncs,url:e=>typeof e=="string"?j.ESSceneObject.context.getStrFromEnv(j.rpToap(e)):(e.url=j.ESSceneObject.context.getStrFromEnv(j.rpToap(e.url)),e)});let Ro=xt;const rA=class rA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(rA,"type",rA.register("ESUeViewer",j.ESLevelRuntimeModel.type,rA));let ko=rA;const AA=class AA extends $A{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(AA,"type",AA.register("ESUeViewer",j.ESLocalCircle.type,AA));let Ko=AA;const nA=class nA extends De{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(nA,"type",nA.register("ESUeViewer",j.ESLocalPolygonZ.type,nA));let No=nA;const iA=class iA extends $A{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(iA,"type",iA.register("ESUeViewer",j.ESLocalRectangle.type,iA));let Vo=iA;const oA=class oA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(oA,"type",oA.register("ESUeViewer",j.ESLocalSkyBox.type,oA));let Go=oA;const sA=class sA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(sA,"type",sA.register("ESUeViewer",j.ESLocationMeasurement.type,sA));let jo=sA;const aA=class aA extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(aA,"type",aA.register("ESUeViewer",j.ESPipeFence.type,aA));let Wo=aA;const cA=class cA extends Jn{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(cA,"type",cA.register("ESUeViewer",j.ESPipeline.type,cA));let zo=cA;const lA=class lA extends ZA{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.highlightFeatureEvent.don(y=>{const B=typeof y=="number"?y.toString():y;Ms(o,e.id,B)})),this.d(e.highlightFeatureAndFlyToEvent.don((y,B,A,h)=>{const m=typeof y=="number"?y.toString():y;Hs(o,e.id,m,h??1)})),this.d(e.setLayerVisibleEvent.don((y,B)=>{let A="";typeof B!="string"?A=JSON.stringify(B):A=B,Ls(o,e.id,A)})),this.d(e.setLayerColorEvent.don((y,B)=>{let A="";typeof B!="string"?A=JSON.stringify(B):A=B,Ds(o,e.id,A)}))}};z(lA,"type",lA.register("ESUeViewer",j.ESPipeserTileset.type,lA));let Jo=lA;const uA=class uA extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(uA,"type",uA.register("ESUeViewer",j.ESPit.type,uA));let Xo=uA;const dA=class dA extends $e{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.ad(e.getInitialStyleEvent.don(async()=>{try{const y=await o.callUeFunc({f:"GetInitialStyle",p:{id:e.id}});y.error!=""&&console.error("getInitialStyleEvent:",y.error),e.initialStyle.value=structuredClone(y.re)}catch(y){console.error("getInitialStyleEvent:",y),e.initialStyle.value=void 0}}))}};z(dA,"type",dA.register("ESUeViewer",j.ESPoi2D.type,dA));let Yo=dA;const fA=class fA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(fA,"type",fA.register("ESUeViewer",j.ESPoi3D.type,fA));let $o=fA;const Ot=class Ot extends De{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(Ot,"type",Ot.register("ESUeViewer",j.ESPoiTileset.type,Ot)),z(Ot,"forceUeUpdateProps",[...De.forceUeUpdateProps,"url"]),z(Ot,"propValFuncs",{...De.propValFuncs,url:e=>typeof e=="string"?j.ESSceneObject.context.getStrFromEnv(e):(e.url=j.ESSceneObject.context.getStrFromEnv(e.url),e)});let Zo=Ot;const hA=class hA extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(hA,"type",hA.register("ESUeViewer",j.ESPolygonFence.type,hA));let qo=hA;const pA=class pA extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(pA,"type",pA.register("ESUeViewer",j.ESPolygonFlattenedPlane.type,pA));let es=pA;const gA=class gA extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(gA,"type",gA.register("ESUeViewer",j.ESPolygonWithHole.type,gA));let ts=gA;const vA=class vA extends _t{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}this.d(()=>{e.ids=[]}),this.d(e.highlightInner3DtilesetEvent.don(y=>{y.highlight=!0})),this.d(e.removeHighlightInner3DtilesetEvent.don(y=>{y.highlight=!1}));{const y=h=>{h=h.toLocaleLowerCase();let m=[255,255,255,1];if(h.startsWith("#")){if(h.length===4){let g=parseInt(h[1]+h[1],16),w=parseInt(h[2]+h[2],16),p=parseInt(h[3]+h[3],16);m=[g,w,p,1]}else if(h.length===7){let g=parseInt(h.substring(1,3),16),w=parseInt(h.substring(3,5),16),p=parseInt(h.substring(5,7),16);m=[g,w,p,1]}}else if(h.startsWith("rgba")){let g=h.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)$/);if(g){let w=parseInt(g[1]),p=parseInt(g[2]),u=parseInt(g[3]),f=parseFloat(g[4]);m=[w,p,u,f]}}else if(h.startsWith("rgb")){let g=h.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);if(g){let w=parseInt(g[1]),p=parseInt(g[2]),u=parseInt(g[3]);m=[w,p,u,1]}}else console.error("color类型只能为#rrggbb、#rgb、rgba(r,g,b,a)、rgb(r,g,b)");return[m[0]/255,m[1]/255,m[2]/255,m[3]]},B=()=>{const h=e.layerConfig;if(!h)return;const m=[];h.forEach(g=>{m.push({condition:[{field:"layer",op:"==",value:g.layer},{field:"dataset",op:"==",value:g.dataset}],color:y(g.value.color??"rgb(255,255,255)"),show:g.value.visible})}),e.setFeatureStyle(m)};B();const A=this.dv(V.createNextAnimateFrameEvent(e.layerConfigChanged));this.d(A.don(()=>{B()}))}}};z(vA,"type",vA.register("ESUeViewer",j.ESRtsTileset.type,vA));let rs=vA;const yA=class yA extends De{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}this.d(e.addTreesEvent.don(y=>{j.addTreesCallFunc(t,e.id,y)})),this.d(e.removeAllTreesEvent.don(()=>{j.removeAllTreesCallFunc(t,e.id)})),this.d(e.updateTreeParamsEvent.don(y=>{j.updateTreeParamsCallFunc(t,e.id,y)})),this.d(e.cutDownTreesEvent.don((y,B)=>{j.cutDownTreesCallFunc(t,e.id,y,B)})),this.d(e.growthSimulationEvent.don((y,B,A)=>{j.growthSimulationCallFunc(t,e.id,y,B,A)}))}};z(yA,"type",yA.register("ESUeViewer",j.ESSeparateFoliage.type,yA));let As=yA;const mA=class mA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(mA,"type",mA.register("ESUeViewer",j.ESSubmergingAnalysis.type,mA));let ns=mA;const wA=class wA extends Ne{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.startEvent.don(()=>{o.callUeFunc({f:"Start",p:{id:e.id}})})),this.d(e.stopEvent.don(()=>{o.callUeFunc({f:"Stop",p:{id:e.id}})}))}};z(wA,"type",wA.register("ESUeViewer",j.ESSunshineAnalysis.type,wA));let is=wA;const BA=class BA extends Ne{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.startEvent.don(()=>{o.callUeFunc({f:"Start",p:{id:e.id}})}))}};z(BA,"type",BA.register("ESUeViewer",j.ESSurfaceAreaMeasurement.type,BA));let os=BA;const CA=class CA extends $e{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(CA,"type",CA.register("ESUeViewer",j.ESTextLabel.type,CA));let ss=CA;const qt=class qt extends $e{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.callFunctionEvent.don(async(y,B)=>{const A=await ti(o,e.id,y,B);e.__callFunctionResultEvent.emit(A)}))}};z(qt,"type",qt.register("ESUeViewer",j.ESUEWidget.type,qt)),z(qt,"propValFuncs",{...$e.propValFuncs,info:e=>JSON.stringify(e??{})});let as=qt;const Hu=v=>{switch(v){case 0:return"成功绑定";case 1:return"解绑之前的内容,成功绑定";case 2:return"未搜索到ActorTag,无法绑定";case 3:return"搜索到ActorTag但对应的Actor不是场景原有的,而是新建的,无法绑定";case 4:return"搜索到ActorTag对应的Actor是地形或3DTileset,无法绑定";default:return"未知错误"}},Py=v=>{switch(v){case 0:return"创建成功";case 1:return"未找到对应的资源,无法创建";case 2:return"Id与场景中现有的ActorTag重复,创建后可能出现问题,创建失败";default:return"未知错误"}},bA=class bA extends j.EngineObject{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn(`${e.id} UeESUnrealActor viewer is undefined!`);return}this.d(()=>{qn(o,e.id)});const y=async()=>{g()||await o.callUeFunc({f:"update",p:{id:e.id,name:e.name,show:e.show,rotation:e.rotation,flyToParam:e.flyToParam??j.ESVisualObject.defaults.flyToParam,flyInParam:e.flyInParam??j.ESVisualObject.defaults.flyInParam,highlight:e.highlight,collision:e.collision,scale:e.scale,minVisibleDistance:e.minVisibleDistance,maxVisibleDistance:e.maxVisibleDistance}})},B=this.dv(V.createNextAnimateFrameEvent(e.showChanged,e.nameChanged,e.rotationChanged,e.flyToParamChanged,e.flyInParamChanged,e.highlightChanged,e.collisionChanged,e.scaleChanged,e.minVisibleDistanceChanged,e.maxVisibleDistanceChanged));this.d(B.don(y)),this.d(e.flushEvent.don(()=>B.flush()));let A,h;const m=async()=>{g()||(await o.callUeFunc({f:"update",p:{id:e.id,position:e.position}}),(t.debug??!1)&&console.log(`updatePostion:${e.position},actorTag:${e.actorTag},actorClass:${e.actorClass}`))},g=()=>!A&&!h?(console.warn(`${e.id} 未绑定ActorTag或未创建ActorClass!`),!0):!1,w=async()=>{const{id:u}=e,f=await t.unBindActorByID(u);f&&f.error!==""&&console.warn(`${e.id} UeESUnrealActor UnBindActorByID: ${f.error}`),A=void 0;const c=await o.callUeFunc({f:"destroy",p:{id:u}});if(c&&c.error!==""){console.warn(`${e.id} UeESUnrealActor DestroyActorByID: ${c.error}`);return}h=void 0},p=this.dv(V.react({type:"ActorClass",actorClass:"default"}));{const u=this.dv(V.createNextAnimateFrameEvent(e.actorClassChanged,e.actorTagChanged)),f=async()=>{e.actorTag!==""?p.value={type:"ActorTag",actorTag:e.actorTag}:p.value={type:"ActorClass",actorClass:e.actorClass===""?"default":e.actorClass}};f(),this.d(u.don(f)),this.d(e.flushEvent.don(()=>u.flush()))}{const u=this.dv(V.createProcessingFromAsyncFunc(async c=>{if(await c.promise(w()),p.value.type==="ActorTag"){const{actorTag:a}=p.value;await c.promise(w());try{e.lastActorStatus="null";const n=await c.promise(t.bindActorByTag(e.id,a));if(!n)return;if(n.error!==""){console.warn(`${e.id} UeESUnrealActor BindActorByTag:${a},${n.error}`);return}if(n.re.type===0)e.lastActorStatus="bound",A=a;else if(n.re.type===1)e.lastActorStatus="bound",A=a,console.warn(`${e.id} UeESUnrealActor BindActorByTag:${a},${Hu(n.re.type)}`);else{A=void 0,console.warn(`${e.id} UeESUnrealActor BindActorByTag error:${a}, ${Hu(n.re.type)}`);return}}catch(n){console.warn(`${e.id} UeESUnrealActor BindActorByTag catch error:${a}, ${n}`);return}}else if(p.value.type==="ActorClass"){const{actorClass:a}=p.value;try{const n=await c.promise(t.createActorByClass(e.id,a));if(!n)return;if(n.error!==""){console.warn(`${e.id} UeESUnrealActor CreateActorByClass error :${a}, ${n.error}`);return}if(n.re.type===0)e.lastActorStatus="created",h=a;else{console.warn(`${e.id} UeESUnrealActor CreateActorByClass error type :${a},${Py(n.re.type)}`);return}}catch(n){console.warn(`${e.id} UeESUnrealActor CreateActorByClass error catch :${a}, ${JSON.stringify(n)}`);return}}await c.promise(y()),await c.promise(m())})),f=async()=>{u.restart()};f(),this.d(p.changed.don(f))}this.d(e.positionChanged.don(m)),this.d(e.callFunctionEvent.don(async(u,f)=>{if(g()){e.__callFunctionResultEvent.emit(void 0);return}const c=await ti(o,e.id,u,f);e.__callFunctionResultEvent.emit(c)})),this.d(e.smoothMoveEvent.don((u,f)=>{g()||zA(o,e.id,u,f)})),this.d(e.smoothMoveWithRotationEvent.don((u,f,c)=>{g()||GA(o,e.id,u,f,c)})),this.d(e.smoothMoveOnGroundEvent.don((u,f,c,a)=>{g()||jA(o,e.id,u,f,a,c)})),this.d(e.smoothMoveWithRotationOnGroundEvent.don((u,f,c,a,n)=>{g()||WA(o,e.id,u,f,c,a,n)})),this.d(e.automaticLandingEvent.don(u=>{if(g())return;const f=[e.position[0],e.position[1]];t.getHeightByLonLat(e.position[0],e.position[1],"Visibility").then(c=>{c!==null&&(e.position=[...f,c],e.collision=u)})})),this.d(e.flyToEvent.don(async(u,f)=>{if(g())return;const c=await Ht(o,e.id,u);let a="over";c===void 0?a="error":c.endType===0?a="over":c.endType===1&&(a="cancelled"),e.flyOverEvent.emit(f,a,t)})),this.d(e.calcFlyToParamEvent.don(()=>{g()||Lt(o,e.id)})),this.d(e.calcFlyInParamEvent.don(async()=>{if(!t.actived)return;const u=await t.getCurrentCameraInfo();if(!u)return;const{position:f,rotation:c}=u;e.flyInParam={position:f,rotation:c,flyDuration:1}})),this.d(t.propChanged.don(u=>{g()||u.objId===e.id&&Object.keys(u.props).forEach(f=>{const c=u.props[f]===null?void 0:u.props[f];e[f]=c})}))}};z(bA,"type",bA.register("ESUeViewer",j.ESUnrealActor.type,bA));let cs=bA;const _A=class _A extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(_A,"type",_A.register("ESUeViewer",j.ESVideoFusion.type,_A));let ls=_A;const EA=class EA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(EA,"type",EA.register("ESUeViewer",j.ESViewShed.type,EA));let us=EA;const FA=class FA extends Pe{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is underfined!");return}}};z(FA,"type",FA.register("ESUeViewer",j.ESVisibilityAnalysis.type,FA));let ds=FA;const QA=class QA extends Ne{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.ad(V.track([e,"volume"],[e,"cutAndFillVolume"])),this.d(e.startEvent.don(()=>{o.callUeFunc({f:"Start",p:{id:e.id}})})),this.d(e.clearEvent.don(()=>{o.callUeFunc({f:"Clear",p:{id:e.id}})}))}};z(QA,"type",QA.register("ESUeViewer",j.ESVolumeMeasurement.type,QA));let fs=QA;const er=class er extends $e{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(er,"type",er.register("ESUeViewer",j.ESWidget.type,er)),z(er,"propValFuncs",{...$e.propValFuncs,info:e=>JSON.stringify(e??{})});let hs=er;const SA=class SA extends j.EngineObject{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}e.poi.actorTag=e.human.id,e.poi.positionOffset=[0,0,e.poiOffsetHeight-.8],this.d(e.poiOffsetHeightChanged.don(()=>{e.poi.positionOffset=[0,0,e.poiOffsetHeight-.8]})),this.d(()=>{e.poi.actorTag=""})}};z(SA,"type",SA.register("ESUeViewer",j.ESHumanPoi.type,SA));let ps=SA;j.ESSceneObject.context.getStrFromEnv(j.ESNavigator.defaults.imgUrl);const UA=class UA extends j.EngineObject{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}const y=this.disposeVar(new j.ESCustomDiv);t.add(y),this.dispose(()=>t.delete(y)),this.dispose(V.track([y,"show"],[e,"show"])),y.instanceClass=class extends V.Destroyable{constructor(A,h,m){super(),this._subContainer=A;const g=document.createElement("div");this._subContainer.appendChild(g),this.dispose(()=>this._subContainer.removeChild(g));{const u=async()=>{const f=await t.getCurrentCameraInfo(),c=f==null?void 0:f.position,n=[...f==null?void 0:f.rotation];n[0]=360,t.flyIn(c,n)};g.addEventListener("click",u),g.style.cursor="pointer",this.dispose(()=>g.removeEventListener("click",u))}{const u=()=>{g.style.width=`${e.cssSize?e.cssSize:j.ESNavigator.defaults.cssSize}px`,g.style.height=`${e.cssSize?e.cssSize:j.ESNavigator.defaults.cssSize}px`};u(),e.dispose(e.cssSizeChanged.disposableOn(u))}g.style.position="fixed";{const u=()=>{g.style.top=`${e.cssPosition?e.cssPosition[0]:j.ESNavigator.defaults.cssPosition[0]}px`,g.style.right=`${e.cssPosition?e.cssPosition[1]:j.ESNavigator.defaults.cssPosition[1]}px`};u(),e.dispose(e.cssPositionChanged.disposableOn(u))}g.style.transition=" right 0.4s linear",g.style.cursor="pointer";const w=document.createElement("div");g.appendChild(w),this.dispose(()=>g.removeChild(w)),w.style.width="100%",w.style.height="100%",w.style.position="relative";const p=document.createElement("img");w.appendChild(p),this.dispose(()=>w.removeChild(p)),p.style.width="100%",p.style.height="100%",p.style.border="none";{const u=()=>p.src=e.imgUrl;u(),e.dispose(e.imgUrlChanged.disposableOn(u))}{const u=()=>{const n=-t.getCurrentCameraInfo().rotation[0];p.style.transform=`rotate(${n}deg)`};let f;const c=async()=>{u(),e.show?(g.style.display="block",f=setInterval(()=>{u()},1e3)):(g.style.display="none",clearInterval(f))};this.dispose(e.showChanged.disposableOn(c)),c(),this.dispose(()=>clearInterval(f))}p.style.transformOrigin="50% 50%"}}}};z(UA,"type",UA.register("ESUeViewer",j.ESNavigator.type,UA));let gs=UA;const Mt=class Mt extends Pe{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}{const y=()=>{let B=e.materialMode==="blue"?"multipleArrows":e.materialMode==="purple"?"singleArrow":e.materialMode;o.callUeFunc({f:"update",p:{id:e.id,materialMode:B}})};this.dispose(e.materialModeChanged.disposableOn(y)),this.dispose(e.createdEvent.disposableOn(y))}}};z(Mt,"type",Mt.register("ESUeViewer",j.ESPath.type,Mt)),z(Mt,"forceUeUpdateProps",[...Pe.forceUeUpdateProps]),z(Mt,"propValFuncs",{...Pe.propValFuncs,materialMode:null});let vs=Mt;async function xy(v){navigator.clipboard.writeText(v).then(function(){console.log("复制成功")},function(e){console.log("复制失败")})}const TA=class TA extends j.EngineObject{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}const y=this.disposeVar(new j.ESCustomDiv);t.add(y),this.dispose(()=>t.delete(y)),y.instanceClass=class extends V.Destroyable{constructor(A,h,m){if(super(),this._subContainer=A,!m||!(m instanceof it))return;const g=document.createElement("div");this._subContainer.appendChild(g),this.dispose(()=>this._subContainer.removeChild(g)),g.style.width="100%",g.style.position="absolute",g.style.height=`${j.ESViewerStatusBar.defaults.height}px`,g.style.left="0",g.style.bottom="0",g.style.color="#fff",g.style.padding="0 20px 0 0",g.style.boxSizing="border-box",g.style.lineHeight=`${j.ESViewerStatusBar.defaults.height}px`,g.style.zIndex="100",g.style.alignContent="center",g.style.justifyContent="space-between";const w=document.createElement("span");g.appendChild(w),this.dispose(()=>g.removeChild(w));const p=document.createElement("span");w.appendChild(p),this.dispose(()=>w.removeChild(p));const u=document.createElement("span");w.appendChild(u),u.addEventListener("dblclick",function(){let c=u.innerHTML;c.startsWith("鼠标位置")&&(c=c.slice(5)),xy(c)}),u.style.cursor="pointer",this.dispose(()=>w.removeChild(u));const f=document.createElement("span");g.appendChild(f),this.dispose(()=>g.removeChild(f));{const c=()=>{g.style.height=(e.height??j.ESViewerStatusBar.defaults.height)+"px",g.style.lineHeight=(e.height??j.ESViewerStatusBar.defaults.height)+"px"};this.dispose(e.heightChanged.disposableOn(c)),c()}{const c=()=>{g.style.fontSize=(e.fontSize??j.ESViewerStatusBar.defaults.fontSize)+"px"};this.dispose(e.fontSizeChanged.disposableOn(c)),c()}{const c=()=>{e.bgColor?g.style.background=`rgba(${e.bgColor[0]*255},${e.bgColor[1]*255},${e.bgColor[2]*255},${e.bgColor[3]})`:g.style.background=`rgba(${j.ESViewerStatusBar.defaults.bgColor[0]},${j.ESViewerStatusBar.defaults.bgColor[1]},${j.ESViewerStatusBar.defaults.bgColor[2]},${j.ESViewerStatusBar.defaults.bgColor[3]})`};this.dispose(e.bgColorChanged.disposableOn(c)),c()}m.getVersion().then(c=>{c&&(f.innerText=`Ue 版本 : ${c[0]} `)}).catch(c=>{console.log(c)});{const c=()=>{let s="",r="";s+=`帧率:${m.getFPS().toFixed(0)}FPS`,p.innerText=s;const i=t.getCurrentCameraInfo();s+=` 经度: ${i.position[0].toFixed(5)}° 纬度: ${i.position[1].toFixed(5)}° 高度: ${i.position[2].toFixed(2)}米 偏航角: ${i.rotation[0].toFixed(2)}° 俯仰角: ${i.rotation[1].toFixed(2)}° 翻滚角:${i.rotation[2].toFixed(2)}° `,p.innerText=s,t.pick().then(l=>{if(l){const{pickResult:d}=l;if(d&&d.position){const{position:C}=d;r+=`鼠标位置:${C[0].toFixed(5)}° ${C[1].toFixed(5)}° ${C[2].toFixed(2)}m`}else r+="暂时无法获取鼠标位置...";u.innerText=r}}).catch(l=>{console.log(l)})};let a;const n=async()=>{c(),e.show?(g.style.display="flex",a=setInterval(()=>{c()},1e3)):(g.style.display="none",clearInterval(a))};this.dispose(e.showChanged.disposableOn(n)),n(),this.dispose(()=>clearInterval(a))}}}}};z(TA,"type",TA.register("ESUeViewer",j.ESViewerStatusBar.type,TA));let ys=TA;const IA=class IA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(IA,"type",IA.register("ESUeViewer",j.ESGaussianSplatting.type,IA));let ms=IA;const PA=class PA extends _t{constructor(t,o){super(t,o);z(this,"_es3DTileset",this.dv(new j.ES3DTileset(`${this.sceneObject.id}_ES3DTileset`)));if(!o.viewer){console.warn("viewer is undefined!");return}t.mainClass=this._es3DTileset;{const B=this._es3DTileset;o.add(B),this.dispose(()=>o.delete(B)),this.d(V.track([B,"allowPicking"],[t,"allowPicking"])),this.d(V.track([B,"collision"],[t,"collision"])),this.d(V.bind([B,"flyToParam"],[t,"flyToParam"])),this.d(V.bind([B,"flyToParam"],[t,"flyToParam"])),this.d(V.track([B,"url"],[t,"url"])),this.d(V.track([B,"actorTag"],[t,"actorTag"])),this.d(V.track([B,"materialMode"],[t,"materialMode"])),this.d(V.track([B,"highlight"],[t,"highlight"])),this.d(V.track([B,"maximumScreenSpaceError"],[t,"maximumScreenSpaceError"])),this.d(V.track([B,"highlightID"],[t,"highlightID"])),this.d(V.track([B,"highlightColor"],[t,"highlightColor"])),this.d(V.bind([B,"offset"],[t,"offset"])),this.d(V.bind([B,"rotation"],[t,"rotation"])),this.d(V.track([B,"czmImageBasedLightingFactor"],[t,"czmImageBasedLightingFactor"])),this.d(V.track([B,"czmLuminanceAtZenith"],[t,"czmLuminanceAtZenith"])),this.d(V.track([B,"czmMaximumMemoryUsage"],[t,"czmMaximumMemoryUsage"])),this.d(V.track([B,"czmClassificationType"],[t,"czmClassificationType"])),this.d(V.track([B,"czmStyleJson"],[t,"czmStyleJson"])),this.d(V.track([B,"czmBackFaceCulling"],[t,"czmBackFaceCulling"])),this.d(V.track([B,"czmDebugShowBoundingVolume"],[t,"czmDebugShowBoundingVolume"])),this.d(V.track([B,"czmDebugShowContentBoundingVolume"],[t,"czmDebugShowContentBoundingVolume"])),this.d(V.track([B,"colorBlendMode"],[t,"colorBlendMode"])),this.d(V.track([B,"cacheBytes"],[t,"cacheBytes"])),this.d(V.track([B,"clippingPlaneEnabled"],[t,"clippingPlaneEnabled"])),this.d(V.track([B,"unionClippingRegions"],[t,"unionClippingRegions"])),this.d(V.track([B,"clippingPlaneEdgeColor"],[t,"clippingPlaneEdgeColor"])),this.d(V.track([B,"clippingPlaneEdgeWidth"],[t,"clippingPlaneEdgeWidth"])),this.d(V.track([B,"materialParams"],[t,"materialParams"])),this.d(V.bind([B,"supportEdit"],[t,"supportEdit"])),this.d(V.bind([B,"clippingPlanesId"],[t,"clippingPlanesId"])),this.d(V.bind([B,"clippingPlaneIds"],[t,"clippingPlaneIds"])),this.d(V.bind([B,"flattenedPlaneId"],[t,"flattenedPlaneId"])),this.d(V.bind([B,"flattenedPlaneEnabled"],[t,"flattenedPlaneEnabled"])),this.d(V.bind([B,"clippingPlaneId"],[t,"clippingPlaneId"])),this.d(V.bind([B,"excavateId"],[t,"excavateId"]))}{const B=this._es3DTileset;this.d(t.refreshTilesetEvent.don(()=>{B.refreshTileset()})),this.d(t.highlightFeatureEvent.don((...A)=>{B.highlightFeature(...A)})),this.d(t.highlightFeatureAndFlyToEvent.don((...A)=>{B.highlightFeatureAndFlyTo(...A)})),this.d(t.setFeatureColorEvent.don((...A)=>{B.setFeatureColor(...A)})),this.d(t.setFeatureVisableEvent.don((...A)=>{B.setFeatureVisable(...A)})),this.d(t.resetFeatureStyleEvent.don((...A)=>{B.resetFeatureStyle(...A)})),this.d(t.flyInEvent.don((...A)=>{B.flyIn(A[0])})),this.d(t.flyToEvent.don((...A)=>{B.flyTo(A[0])})),this.d(t.calcFlyToParamEvent.don((...A)=>{B.calcFlyToParam(...A)})),this.d(t.calcFlyInParamEvent.don((...A)=>{B.calcFlyInParam(...A)}))}{const B=this._es3DTileset;this.d(B.tilesetReady.don(A=>{t.tilesetReady.emit(A)})),this.d(B.pickedEvent.don(A=>{A.assign({sceneObject:t}),t.pickedEvent.emit(A)}))}{const B=()=>{this.es3DTileset.show=t.show};B(),this.d(t.showChanged.don(()=>{B()}))}}get es3DTileset(){return this._es3DTileset}};z(PA,"type",PA.register("ESUeViewer",j.ESRtsFeatureEditing.type,PA));let ws=PA;const xA=class xA extends _t{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(xA,"type",xA.register("ESUeViewer",j.ESMsTileset.type,xA));let Bs=xA;const OA=class OA extends Ne{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}const y=()=>{o.callUeFunc({f:"update",p:{id:e.id,height:e.height??j.ESGeoExtrudedPolygon.defaults.height,extrudedHeight:e.extrudedHeight??j.ESGeoExtrudedPolygon.defaults.extrudedHeight,perPositionHeight:e.perPositionHeight??j.ESGeoExtrudedPolygon.defaults.perPositionHeight}})},B=this.disposeVar(V.createNextAnimateFrameEvent(e.heightChanged,e.extrudedHeightChanged,e.perPositionHeightChanged));this.dispose(B.disposableOn(y)),this.dispose(e.createdEvent.disposableOn(y))}};z(OA,"type",OA.register("ESUeViewer",j.ESGeoExtrudedPolygon.type,OA));let Cs=OA;const MA=class MA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};z(MA,"type",MA.register("ESUeViewer",j.ESStaticMesh.type,MA));let bs=MA;const HA=class HA extends Pe{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.startEvent.don(()=>{o.callUeFunc({f:"Start",p:{id:e.id}})})),this.d(e.clearEvent.don(()=>{o.callUeFunc({f:"Clear",p:{id:e.id}})}))}};z(HA,"type",HA.register("ESUeViewer",j.ESSkylineAnalysis.type,HA));let _s=HA;J.copyright=void 0;try{const v="earthsdk3-ue",e="3.0.8-beta.2",t="2025-06-16T01:35:09.000Z",o="北京西部世界科技有限公司",y="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",B="bb8010020199b408171f0ba5e38ed63dd6584fbc",h=((Date.now()-1750037709e3)/36e5).toFixed(1),m=`%c🌏 ${v}%c ${e}.${B.slice(0,8)}.${t} (距今${h}个小时)
|
|
340
|
-
%c${
|
|
341
|
-
`:""}当前网站正在使用${
|
|
342
|
-
`;
|
|
111
|
+
}`,lw=function(r){cw(r,"."+$s+ow+Jc+`
|
|
112
|
+
.`+Zs+aw+Jc)},cw=function(r,A){var e=r.ownerDocument;if(e){var t=e.createElement("style");t.textContent=A,r.appendChild(t)}},zc=function(){function r(){}return r.getOrigin=function(A){var e=r._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},r.isSameOrigin=function(A){return r.getOrigin(A)===r._origin},r.setContext=function(A){r._link=A.document.createElement("a"),r._origin=r.getOrigin(A.location.href)},r._origin="about:blank",r}(),dw=function(){function r(A,e){this.context=A,this._options=e,this._cache={}}return r.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(js(A)||Bw(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},r.prototype.match=function(A){return this._cache[A]},r.prototype.loadImage=function(A){return cA(this,void 0,void 0,function(){var e,t,n,s,i=this;return nA(this,function(o){switch(o.label){case 0:return e=zc.isSameOrigin(A),t=!qs(A)&&this._options.useCORS===!0&&eA.SUPPORT_CORS_IMAGES&&!e,n=!qs(A)&&!e&&!js(A)&&typeof this._options.proxy=="string"&&eA.SUPPORT_CORS_XHR&&!t,!e&&this._options.allowTaint===!1&&!qs(A)&&!js(A)&&!n&&!t?[2]:(s=A,n?[4,this.proxy(s)]:[3,2]);case 1:s=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(a,l){var c=new Image;c.onload=function(){return a(c)},c.onerror=l,(fw(s)||t)&&(c.crossOrigin="anonymous"),c.src=s,c.complete===!0&&setTimeout(function(){return a(c)},500),i._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},r.prototype.has=function(A){return typeof this._cache[A]<"u"},r.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},r.prototype.proxy=function(A){var e=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(s,i){var o=eA.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(a.status===200)if(o==="text")s(a.response);else{var h=new FileReader;h.addEventListener("load",function(){return s(h.result)},!1),h.addEventListener("error",function(d){return i(d)},!1),h.readAsDataURL(a.response)}else i("Failed to proxy resource "+n+" with status code "+a.status)},a.onerror=i;var l=t.indexOf("?")>-1?"&":"?";if(a.open("GET",""+t+l+"url="+encodeURIComponent(A)+"&responseType="+o),o!=="text"&&a instanceof XMLHttpRequest&&(a.responseType=o),e._options.imageTimeout){var c=e._options.imageTimeout;a.timeout=c,a.ontimeout=function(){return i("Timed out ("+c+"ms) proxying "+n)}}a.send()})},r}(),uw=/^data:image\/svg\+xml/i,hw=/^data:image\/.*;base64,/i,gw=/^data:image\/.*/i,Bw=function(r){return eA.SUPPORT_SVG_DRAWING||!ww(r)},qs=function(r){return gw.test(r)},fw=function(r){return hw.test(r)},js=function(r){return r.substr(0,4)==="blob"},ww=function(r){return r.substr(-3).toLowerCase()==="svg"||uw.test(r)},S=function(){function r(A,e){this.type=0,this.x=A,this.y=e}return r.prototype.add=function(A,e){return new r(this.x+A,this.y+e)},r}(),Ie=function(r,A,e){return new S(r.x+(A.x-r.x)*e,r.y+(A.y-r.y)*e)},Bn=function(){function r(A,e,t,n){this.type=1,this.start=A,this.startControl=e,this.endControl=t,this.end=n}return r.prototype.subdivide=function(A,e){var t=Ie(this.start,this.startControl,A),n=Ie(this.startControl,this.endControl,A),s=Ie(this.endControl,this.end,A),i=Ie(t,n,A),o=Ie(n,s,A),a=Ie(i,o,A);return e?new r(this.start,t,i,a):new r(a,o,s,this.end)},r.prototype.add=function(A,e){return new r(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},r.prototype.reverse=function(){return new r(this.end,this.endControl,this.startControl,this.start)},r}(),CA=function(r){return r.type===1},pw=function(){function r(A){var e=A.styles,t=A.bounds,n=Ze(e.borderTopLeftRadius,t.width,t.height),s=n[0],i=n[1],o=Ze(e.borderTopRightRadius,t.width,t.height),a=o[0],l=o[1],c=Ze(e.borderBottomRightRadius,t.width,t.height),h=c[0],d=c[1],B=Ze(e.borderBottomLeftRadius,t.width,t.height),g=B[0],f=B[1],m=[];m.push((s+a)/t.width),m.push((g+h)/t.width),m.push((i+f)/t.height),m.push((l+d)/t.height);var F=Math.max.apply(Math,m);F>1&&(s/=F,i/=F,a/=F,l/=F,h/=F,d/=F,g/=F,f/=F);var Q=t.width-a,y=t.height-d,L=t.width-h,T=t.height-f,E=e.borderTopWidth,R=e.borderRightWidth,x=e.borderBottomWidth,M=e.borderLeftWidth,W=_(e.paddingTop,A.bounds.width),iA=_(e.paddingRight,A.bounds.width),dA=_(e.paddingBottom,A.bounds.width),k=_(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=s>0||i>0?O(t.left+M/3,t.top+E/3,s-M/3,i-E/3,P.TOP_LEFT):new S(t.left+M/3,t.top+E/3),this.topRightBorderDoubleOuterBox=s>0||i>0?O(t.left+Q,t.top+E/3,a-R/3,l-E/3,P.TOP_RIGHT):new S(t.left+t.width-R/3,t.top+E/3),this.bottomRightBorderDoubleOuterBox=h>0||d>0?O(t.left+L,t.top+y,h-R/3,d-x/3,P.BOTTOM_RIGHT):new S(t.left+t.width-R/3,t.top+t.height-x/3),this.bottomLeftBorderDoubleOuterBox=g>0||f>0?O(t.left+M/3,t.top+T,g-M/3,f-x/3,P.BOTTOM_LEFT):new S(t.left+M/3,t.top+t.height-x/3),this.topLeftBorderDoubleInnerBox=s>0||i>0?O(t.left+M*2/3,t.top+E*2/3,s-M*2/3,i-E*2/3,P.TOP_LEFT):new S(t.left+M*2/3,t.top+E*2/3),this.topRightBorderDoubleInnerBox=s>0||i>0?O(t.left+Q,t.top+E*2/3,a-R*2/3,l-E*2/3,P.TOP_RIGHT):new S(t.left+t.width-R*2/3,t.top+E*2/3),this.bottomRightBorderDoubleInnerBox=h>0||d>0?O(t.left+L,t.top+y,h-R*2/3,d-x*2/3,P.BOTTOM_RIGHT):new S(t.left+t.width-R*2/3,t.top+t.height-x*2/3),this.bottomLeftBorderDoubleInnerBox=g>0||f>0?O(t.left+M*2/3,t.top+T,g-M*2/3,f-x*2/3,P.BOTTOM_LEFT):new S(t.left+M*2/3,t.top+t.height-x*2/3),this.topLeftBorderStroke=s>0||i>0?O(t.left+M/2,t.top+E/2,s-M/2,i-E/2,P.TOP_LEFT):new S(t.left+M/2,t.top+E/2),this.topRightBorderStroke=s>0||i>0?O(t.left+Q,t.top+E/2,a-R/2,l-E/2,P.TOP_RIGHT):new S(t.left+t.width-R/2,t.top+E/2),this.bottomRightBorderStroke=h>0||d>0?O(t.left+L,t.top+y,h-R/2,d-x/2,P.BOTTOM_RIGHT):new S(t.left+t.width-R/2,t.top+t.height-x/2),this.bottomLeftBorderStroke=g>0||f>0?O(t.left+M/2,t.top+T,g-M/2,f-x/2,P.BOTTOM_LEFT):new S(t.left+M/2,t.top+t.height-x/2),this.topLeftBorderBox=s>0||i>0?O(t.left,t.top,s,i,P.TOP_LEFT):new S(t.left,t.top),this.topRightBorderBox=a>0||l>0?O(t.left+Q,t.top,a,l,P.TOP_RIGHT):new S(t.left+t.width,t.top),this.bottomRightBorderBox=h>0||d>0?O(t.left+L,t.top+y,h,d,P.BOTTOM_RIGHT):new S(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=g>0||f>0?O(t.left,t.top+T,g,f,P.BOTTOM_LEFT):new S(t.left,t.top+t.height),this.topLeftPaddingBox=s>0||i>0?O(t.left+M,t.top+E,Math.max(0,s-M),Math.max(0,i-E),P.TOP_LEFT):new S(t.left+M,t.top+E),this.topRightPaddingBox=a>0||l>0?O(t.left+Math.min(Q,t.width-R),t.top+E,Q>t.width+R?0:Math.max(0,a-R),Math.max(0,l-E),P.TOP_RIGHT):new S(t.left+t.width-R,t.top+E),this.bottomRightPaddingBox=h>0||d>0?O(t.left+Math.min(L,t.width-M),t.top+Math.min(y,t.height-x),Math.max(0,h-R),Math.max(0,d-x),P.BOTTOM_RIGHT):new S(t.left+t.width-R,t.top+t.height-x),this.bottomLeftPaddingBox=g>0||f>0?O(t.left+M,t.top+Math.min(T,t.height-x),Math.max(0,g-M),Math.max(0,f-x),P.BOTTOM_LEFT):new S(t.left+M,t.top+t.height-x),this.topLeftContentBox=s>0||i>0?O(t.left+M+k,t.top+E+W,Math.max(0,s-(M+k)),Math.max(0,i-(E+W)),P.TOP_LEFT):new S(t.left+M+k,t.top+E+W),this.topRightContentBox=a>0||l>0?O(t.left+Math.min(Q,t.width+M+k),t.top+E+W,Q>t.width+M+k?0:a-M+k,l-(E+W),P.TOP_RIGHT):new S(t.left+t.width-(R+iA),t.top+E+W),this.bottomRightContentBox=h>0||d>0?O(t.left+Math.min(L,t.width-(M+k)),t.top+Math.min(y,t.height+E+W),Math.max(0,h-(R+iA)),d-(x+dA),P.BOTTOM_RIGHT):new S(t.left+t.width-(R+iA),t.top+t.height-(x+dA)),this.bottomLeftContentBox=g>0||f>0?O(t.left+M+k,t.top+T,Math.max(0,g-(M+k)),f-(x+dA),P.BOTTOM_LEFT):new S(t.left+M+k,t.top+t.height-(x+dA))}return r}(),P;(function(r){r[r.TOP_LEFT=0]="TOP_LEFT",r[r.TOP_RIGHT=1]="TOP_RIGHT",r[r.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",r[r.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(P||(P={}));var O=function(r,A,e,t,n){var s=4*((Math.sqrt(2)-1)/3),i=e*s,o=t*s,a=r+e,l=A+t;switch(n){case P.TOP_LEFT:return new Bn(new S(r,l),new S(r,l-o),new S(a-i,A),new S(a,A));case P.TOP_RIGHT:return new Bn(new S(r,A),new S(r+i,A),new S(a,l-o),new S(a,l));case P.BOTTOM_RIGHT:return new Bn(new S(a,A),new S(a,A+o),new S(r+i,l),new S(r,l));case P.BOTTOM_LEFT:default:return new Bn(new S(a,l),new S(a-i,l),new S(r,A+o),new S(r,A))}},fn=function(r){return[r.topLeftBorderBox,r.topRightBorderBox,r.bottomRightBorderBox,r.bottomLeftBorderBox]},Cw=function(r){return[r.topLeftContentBox,r.topRightContentBox,r.bottomRightContentBox,r.bottomLeftContentBox]},wn=function(r){return[r.topLeftPaddingBox,r.topRightPaddingBox,r.bottomRightPaddingBox,r.bottomLeftPaddingBox]},vw=function(){function r(A,e,t){this.offsetX=A,this.offsetY=e,this.matrix=t,this.type=0,this.target=6}return r}(),pn=function(){function r(A,e){this.path=A,this.target=e,this.type=1}return r}(),mw=function(){function r(A){this.opacity=A,this.type=2,this.target=6}return r}(),Fw=function(r){return r.type===0},Yc=function(r){return r.type===1},Qw=function(r){return r.type===2},$c=function(r,A){return r.length===A.length?r.some(function(e,t){return e===A[t]}):!1},Uw=function(r,A,e,t,n){return r.map(function(s,i){switch(i){case 0:return s.add(A,e);case 1:return s.add(A+t,e);case 2:return s.add(A+t,e+n);case 3:return s.add(A,e+n)}return s})},Zc=function(){function r(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return r}(),qc=function(){function r(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new pw(this.container),this.container.styles.opacity<1&&this.effects.push(new mw(this.container.styles.opacity)),this.container.styles.transform!==null){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,s=this.container.styles.transform;this.effects.push(new vw(t,n,s))}if(this.container.styles.overflowX!==0){var i=fn(this.curves),o=wn(this.curves);$c(i,o)?this.effects.push(new pn(i,6)):(this.effects.push(new pn(i,2)),this.effects.push(new pn(o,4)))}}return r.prototype.getEffects=function(A){for(var e=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent,n=this.effects.slice(0);t;){var s=t.effects.filter(function(a){return!Yc(a)});if(e||t.container.styles.position!==0||!t.parent){if(n.unshift.apply(n,s),e=[2,3].indexOf(t.container.styles.position)===-1,t.container.styles.overflowX!==0){var i=fn(t.curves),o=wn(t.curves);$c(i,o)||n.unshift(new pn(o,6))}}else n.unshift.apply(n,s);t=t.parent}return n.filter(function(a){return Z(a.target,A)})},r}(),Ai=function(r,A,e,t){r.container.elements.forEach(function(n){var s=Z(n.flags,4),i=Z(n.flags,2),o=new qc(n,r);Z(n.styles.display,2048)&&t.push(o);var a=Z(n.flags,8)?[]:t;if(s||i){var l=s||n.styles.isPositioned()?e:A,c=new Zc(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var h=n.styles.zIndex.order;if(h<0){var d=0;l.negativeZIndex.some(function(g,f){return h>g.element.container.styles.zIndex.order?(d=f,!1):d>0}),l.negativeZIndex.splice(d,0,c)}else if(h>0){var B=0;l.positiveZIndex.some(function(g,f){return h>=g.element.container.styles.zIndex.order?(B=f+1,!1):B>0}),l.positiveZIndex.splice(B,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else n.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);Ai(o,c,s?c:e,a)}else n.styles.isInlineLevel()?A.inlineLevel.push(o):A.nonInlineLevel.push(o),Ai(o,A,e,a);Z(n.flags,8)&&jc(n,a)})},jc=function(r,A){for(var e=r instanceof Vs?r.start:1,t=r instanceof Vs?r.reversed:!1,n=0;n<A.length;n++){var s=A[n];s.container instanceof Uc&&typeof s.container.value=="number"&&s.container.value!==0&&(e=s.container.value),s.listValue=rt(e,s.container.styles.listStyleType,!0),e+=t?-1:1}},Ew=function(r){var A=new qc(r,null),e=new Zc(A),t=[];return Ai(A,e,e,t),jc(A.container,t),e},Ad=function(r,A){switch(A){case 0:return vA(r.topLeftBorderBox,r.topLeftPaddingBox,r.topRightBorderBox,r.topRightPaddingBox);case 1:return vA(r.topRightBorderBox,r.topRightPaddingBox,r.bottomRightBorderBox,r.bottomRightPaddingBox);case 2:return vA(r.bottomRightBorderBox,r.bottomRightPaddingBox,r.bottomLeftBorderBox,r.bottomLeftPaddingBox);case 3:default:return vA(r.bottomLeftBorderBox,r.bottomLeftPaddingBox,r.topLeftBorderBox,r.topLeftPaddingBox)}},yw=function(r,A){switch(A){case 0:return vA(r.topLeftBorderBox,r.topLeftBorderDoubleOuterBox,r.topRightBorderBox,r.topRightBorderDoubleOuterBox);case 1:return vA(r.topRightBorderBox,r.topRightBorderDoubleOuterBox,r.bottomRightBorderBox,r.bottomRightBorderDoubleOuterBox);case 2:return vA(r.bottomRightBorderBox,r.bottomRightBorderDoubleOuterBox,r.bottomLeftBorderBox,r.bottomLeftBorderDoubleOuterBox);case 3:default:return vA(r.bottomLeftBorderBox,r.bottomLeftBorderDoubleOuterBox,r.topLeftBorderBox,r.topLeftBorderDoubleOuterBox)}},Sw=function(r,A){switch(A){case 0:return vA(r.topLeftBorderDoubleInnerBox,r.topLeftPaddingBox,r.topRightBorderDoubleInnerBox,r.topRightPaddingBox);case 1:return vA(r.topRightBorderDoubleInnerBox,r.topRightPaddingBox,r.bottomRightBorderDoubleInnerBox,r.bottomRightPaddingBox);case 2:return vA(r.bottomRightBorderDoubleInnerBox,r.bottomRightPaddingBox,r.bottomLeftBorderDoubleInnerBox,r.bottomLeftPaddingBox);case 3:default:return vA(r.bottomLeftBorderDoubleInnerBox,r.bottomLeftPaddingBox,r.topLeftBorderDoubleInnerBox,r.topLeftPaddingBox)}},Iw=function(r,A){switch(A){case 0:return Cn(r.topLeftBorderStroke,r.topRightBorderStroke);case 1:return Cn(r.topRightBorderStroke,r.bottomRightBorderStroke);case 2:return Cn(r.bottomRightBorderStroke,r.bottomLeftBorderStroke);case 3:default:return Cn(r.bottomLeftBorderStroke,r.topLeftBorderStroke)}},Cn=function(r,A){var e=[];return CA(r)?e.push(r.subdivide(.5,!1)):e.push(r),CA(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},vA=function(r,A,e,t){var n=[];return CA(r)?n.push(r.subdivide(.5,!1)):n.push(r),CA(e)?n.push(e.subdivide(.5,!0)):n.push(e),CA(t)?n.push(t.subdivide(.5,!0).reverse()):n.push(t),CA(A)?n.push(A.subdivide(.5,!1).reverse()):n.push(A),n},ed=function(r){var A=r.bounds,e=r.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},vn=function(r){var A=r.styles,e=r.bounds,t=_(A.paddingLeft,e.width),n=_(A.paddingRight,e.width),s=_(A.paddingTop,e.width),i=_(A.paddingBottom,e.width);return e.add(t+A.borderLeftWidth,s+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+t+n),-(A.borderTopWidth+A.borderBottomWidth+s+i))},Tw=function(r,A){return r===0?A.bounds:r===2?vn(A):ed(A)},Hw=function(r,A){return r===0?A.bounds:r===2?vn(A):ed(A)},ei=function(r,A,e){var t=Tw(He(r.styles.backgroundOrigin,A),r),n=Hw(He(r.styles.backgroundClip,A),r),s=Lw(He(r.styles.backgroundSize,A),e,t),i=s[0],o=s[1],a=Ze(He(r.styles.backgroundPosition,A),t.width-i,t.height-o),l=bw(He(r.styles.backgroundRepeat,A),a,s,t,n),c=Math.round(t.left+a[0]),h=Math.round(t.top+a[1]);return[l,c,h,i,o]},Te=function(r){return N(r)&&r.value===Ue.AUTO},mn=function(r){return typeof r=="number"},Lw=function(r,A,e){var t=A[0],n=A[1],s=A[2],i=r[0],o=r[1];if(!i)return[0,0];if(Y(i)&&o&&Y(o))return[_(i,e.width),_(o,e.height)];var a=mn(s);if(N(i)&&(i.value===Ue.CONTAIN||i.value===Ue.COVER)){if(mn(s)){var l=e.width/e.height;return l<s!=(i.value===Ue.COVER)?[e.width,e.width/s]:[e.height*s,e.height]}return[e.width,e.height]}var c=mn(t),h=mn(n),d=c||h;if(Te(i)&&(!o||Te(o))){if(c&&h)return[t,n];if(!a&&!d)return[e.width,e.height];if(d&&a){var B=c?t:n*s,g=h?n:t/s;return[B,g]}var f=c?t:e.width,m=h?n:e.height;return[f,m]}if(a){var F=0,Q=0;return Y(i)?F=_(i,e.width):Y(o)&&(Q=_(o,e.height)),Te(i)?F=Q*s:(!o||Te(o))&&(Q=F/s),[F,Q]}var y=null,L=null;if(Y(i)?y=_(i,e.width):o&&Y(o)&&(L=_(o,e.height)),y!==null&&(!o||Te(o))&&(L=c&&h?y/t*n:e.height),L!==null&&Te(i)&&(y=c&&h?L/n*t:e.width),y!==null&&L!==null)return[y,L];throw new Error("Unable to calculate background-size for element")},He=function(r,A){var e=r[A];return typeof e>"u"?r[0]:e},bw=function(r,A,e,t,n){var s=A[0],i=A[1],o=e[0],a=e[1];switch(r){case 2:return[new S(Math.round(t.left),Math.round(t.top+i)),new S(Math.round(t.left+t.width),Math.round(t.top+i)),new S(Math.round(t.left+t.width),Math.round(a+t.top+i)),new S(Math.round(t.left),Math.round(a+t.top+i))];case 3:return[new S(Math.round(t.left+s),Math.round(t.top)),new S(Math.round(t.left+s+o),Math.round(t.top)),new S(Math.round(t.left+s+o),Math.round(t.height+t.top)),new S(Math.round(t.left+s),Math.round(t.height+t.top))];case 1:return[new S(Math.round(t.left+s),Math.round(t.top+i)),new S(Math.round(t.left+s+o),Math.round(t.top+i)),new S(Math.round(t.left+s+o),Math.round(t.top+i+a)),new S(Math.round(t.left+s),Math.round(t.top+i+a))];default:return[new S(Math.round(n.left),Math.round(n.top)),new S(Math.round(n.left+n.width),Math.round(n.top)),new S(Math.round(n.left+n.width),Math.round(n.height+n.top)),new S(Math.round(n.left),Math.round(n.height+n.top))]}},Mw="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",td="Hidden Text",Dw=function(){function r(A){this._data={},this._document=A}return r.prototype.parseMetrics=function(A,e){var t=this._document.createElement("div"),n=this._document.createElement("img"),s=this._document.createElement("span"),i=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=e,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",i.appendChild(t),n.src=Mw,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",s.style.fontFamily=A,s.style.fontSize=e,s.style.margin="0",s.style.padding="0",s.appendChild(this._document.createTextNode(td)),t.appendChild(s),t.appendChild(n);var o=n.offsetTop-s.offsetTop+2;t.removeChild(s),t.appendChild(this._document.createTextNode(td)),t.style.lineHeight="normal",n.style.verticalAlign="super";var a=n.offsetTop-t.offsetTop+2;return i.removeChild(t),{baseline:o,middle:a}},r.prototype.getMetrics=function(A,e){var t=A+" "+e;return typeof this._data[t]>"u"&&(this._data[t]=this.parseMetrics(A,e)),this._data[t]},r}(),rd=function(){function r(A,e){this.context=A,this.options=e}return r}(),Rw=1e4,Kw=function(r){FA(A,r);function A(e,t){var n=r.call(this,e,t)||this;return n._activeEffects=[],n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),t.canvas||(n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px"),n.fontMetrics=new Dw(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),n}return A.prototype.applyEffects=function(e){for(var t=this;this._activeEffects.length;)this.popEffect();e.forEach(function(n){return t.applyEffect(n)})},A.prototype.applyEffect=function(e){this.ctx.save(),Qw(e)&&(this.ctx.globalAlpha=e.opacity),Fw(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),Yc(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return cA(this,void 0,void 0,function(){var t;return nA(this,function(n){switch(n.label){case 0:return t=e.element.container.styles,t.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(e){return cA(this,void 0,void 0,function(){return nA(this,function(t){switch(t.label){case 0:if(Z(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(e,t,n){var s=this;if(t===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n);else{var i=_s(e.text);i.reduce(function(o,a){return s.ctx.fillText(a,o,e.bounds.top+n),o+s.ctx.measureText(a).width},e.bounds.left)}},A.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(i){return i==="normal"||i==="small-caps"}).join(""),n=Nw(e.fontFamily).join(", "),s=$e(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,s,n].join(" "),n,s]},A.prototype.renderTextNode=function(e,t){return cA(this,void 0,void 0,function(){var n,s,i,o,a,l,c,h,d=this;return nA(this,function(B){return n=this.createFontStyle(t),s=n[0],i=n[1],o=n[2],this.ctx.font=s,this.ctx.direction=t.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(i,o),l=a.baseline,c=a.middle,h=t.paintOrder,e.textBounds.forEach(function(g){h.forEach(function(f){switch(f){case 0:d.ctx.fillStyle=q(t.color),d.renderTextWithLetterSpacing(g,t.letterSpacing,l);var m=t.textShadow;m.length&&g.text.trim().length&&(m.slice(0).reverse().forEach(function(F){d.ctx.shadowColor=q(F.color),d.ctx.shadowOffsetX=F.offsetX.number*d.options.scale,d.ctx.shadowOffsetY=F.offsetY.number*d.options.scale,d.ctx.shadowBlur=F.blur.number,d.renderTextWithLetterSpacing(g,t.letterSpacing,l)}),d.ctx.shadowColor="",d.ctx.shadowOffsetX=0,d.ctx.shadowOffsetY=0,d.ctx.shadowBlur=0),t.textDecorationLine.length&&(d.ctx.fillStyle=q(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(F){switch(F){case 1:d.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top+l),g.bounds.width,1);break;case 2:d.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top),g.bounds.width,1);break;case 3:d.ctx.fillRect(g.bounds.left,Math.ceil(g.bounds.top+c),g.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&g.text.trim().length&&(d.ctx.strokeStyle=q(t.webkitTextStrokeColor),d.ctx.lineWidth=t.webkitTextStrokeWidth,d.ctx.lineJoin=window.chrome?"miter":"round",d.ctx.strokeText(g.text,g.bounds.left,g.bounds.top+l)),d.ctx.strokeStyle="",d.ctx.lineWidth=0,d.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var s=vn(e),i=wn(t);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,s.left,s.top,s.width,s.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return cA(this,void 0,void 0,function(){var t,n,s,i,o,a,Q,Q,l,c,h,d,L,B,g,T,f,m,F,Q,y,L,T;return nA(this,function(E){switch(E.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,n=e.curves,s=t.styles,i=0,o=t.textNodes,E.label=1;case 1:return i<o.length?(a=o[i],[4,this.renderTextNode(a,s)]):[3,4];case 2:E.sent(),E.label=3;case 3:return i++,[3,1];case 4:if(!(t instanceof mc))return[3,8];E.label=5;case 5:return E.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return Q=E.sent(),this.renderReplacedElement(t,n,Q),[3,8];case 7:return E.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof Fc&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof Qc))return[3,12];E.label=9;case 9:return E.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return Q=E.sent(),this.renderReplacedElement(t,n,Q),[3,12];case 11:return E.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof Ic&&t.tree?(l=new A(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,l.render(t.tree)]):[3,14];case 13:c=E.sent(),t.width&&t.height&&this.ctx.drawImage(c,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),E.label=14;case 14:if(t instanceof Os&&(h=Math.min(t.bounds.width,t.bounds.height),t.type===ln?t.checked&&(this.ctx.save(),this.path([new S(t.bounds.left+h*.39363,t.bounds.top+h*.79),new S(t.bounds.left+h*.16,t.bounds.top+h*.5549),new S(t.bounds.left+h*.27347,t.bounds.top+h*.44071),new S(t.bounds.left+h*.39694,t.bounds.top+h*.5649),new S(t.bounds.left+h*.72983,t.bounds.top+h*.23),new S(t.bounds.left+h*.84,t.bounds.top+h*.34085),new S(t.bounds.left+h*.39363,t.bounds.top+h*.79)]),this.ctx.fillStyle=q(Ec),this.ctx.fill(),this.ctx.restore()):t.type===cn&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+h/2,t.bounds.top+h/2,h/4,0,Math.PI*2,!0),this.ctx.fillStyle=q(Ec),this.ctx.fill(),this.ctx.restore())),xw(t)&&t.value.length){switch(d=this.createFontStyle(s),L=d[0],B=d[1],g=this.fontMetrics.getMetrics(L,B).baseline,this.ctx.font=L,this.ctx.fillStyle=q(s.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=kw(t.styles.textAlign),T=vn(t),f=0,t.styles.textAlign){case 1:f+=T.width/2;break;case 2:f+=T.width;break}m=T.add(f,0,0,-T.height/2+1),this.ctx.save(),this.path([new S(T.left,T.top),new S(T.left+T.width,T.top),new S(T.left+T.width,T.top+T.height),new S(T.left,T.top+T.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new et(t.value,m),s.letterSpacing,g),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Z(t.styles.display,2048))return[3,20];if(t.styles.listStyleImage===null)return[3,19];if(F=t.styles.listStyleImage,F.type!==0)return[3,18];Q=void 0,y=F.url,E.label=15;case 15:return E.trys.push([15,17,,18]),[4,this.context.cache.match(y)];case 16:return Q=E.sent(),this.ctx.drawImage(Q,t.bounds.left-(Q.width+10),t.bounds.top),[3,18];case 17:return E.sent(),this.context.logger.error("Error loading list-style-image "+y),[3,18];case 18:return[3,20];case 19:e.listValue&&t.styles.listStyleType!==-1&&(L=this.createFontStyle(s)[0],this.ctx.font=L,this.ctx.fillStyle=q(s.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",T=new bA(t.bounds.left,t.bounds.top+_(t.styles.paddingTop,t.bounds.width),t.bounds.width,tc(s.lineHeight,s.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new et(e.listValue,T),s.letterSpacing,tc(s.lineHeight,s.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),E.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return cA(this,void 0,void 0,function(){var t,n,F,s,i,F,o,a,F,l,c,F,h,d,F,B,g,F,f,m,F;return nA(this,function(Q){switch(Q.label){case 0:if(Z(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:Q.sent(),t=0,n=e.negativeZIndex,Q.label=2;case 2:return t<n.length?(F=n[t],[4,this.renderStack(F)]):[3,5];case 3:Q.sent(),Q.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:Q.sent(),s=0,i=e.nonInlineLevel,Q.label=7;case 7:return s<i.length?(F=i[s],[4,this.renderNode(F)]):[3,10];case 8:Q.sent(),Q.label=9;case 9:return s++,[3,7];case 10:o=0,a=e.nonPositionedFloats,Q.label=11;case 11:return o<a.length?(F=a[o],[4,this.renderStack(F)]):[3,14];case 12:Q.sent(),Q.label=13;case 13:return o++,[3,11];case 14:l=0,c=e.nonPositionedInlineLevel,Q.label=15;case 15:return l<c.length?(F=c[l],[4,this.renderStack(F)]):[3,18];case 16:Q.sent(),Q.label=17;case 17:return l++,[3,15];case 18:h=0,d=e.inlineLevel,Q.label=19;case 19:return h<d.length?(F=d[h],[4,this.renderNode(F)]):[3,22];case 20:Q.sent(),Q.label=21;case 21:return h++,[3,19];case 22:B=0,g=e.zeroOrAutoZIndexOrTransformedOrOpacity,Q.label=23;case 23:return B<g.length?(F=g[B],[4,this.renderStack(F)]):[3,26];case 24:Q.sent(),Q.label=25;case 25:return B++,[3,23];case 26:f=0,m=e.positiveZIndex,Q.label=27;case 27:return f<m.length?(F=m[f],[4,this.renderStack(F)]):[3,30];case 28:Q.sent(),Q.label=29;case 29:return f++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var t=this;e.forEach(function(n,s){var i=CA(n)?n.start:n;s===0?t.ctx.moveTo(i.x,i.y):t.ctx.lineTo(i.x,i.y),CA(n)&&t.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},A.prototype.renderRepeat=function(e,t,n,s){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,s),this.ctx.fill(),this.ctx.translate(-n,-s)},A.prototype.resizeImage=function(e,t,n){var s;if(e.width===t&&e.height===n)return e;var i=(s=this.canvas.ownerDocument)!==null&&s!==void 0?s:document,o=i.createElement("canvas");o.width=Math.max(1,t),o.height=Math.max(1,n);var a=o.getContext("2d");return a.drawImage(e,0,0,e.width,e.height,0,0,t,n),o},A.prototype.renderBackgroundImage=function(e){return cA(this,void 0,void 0,function(){var t,n,s,i,o,a;return nA(this,function(l){switch(l.label){case 0:t=e.styles.backgroundImage.length-1,n=function(c){var h,d,B,W,hA,gA,k,tA,x,g,W,hA,gA,k,tA,f,m,F,Q,y,L,T,E,R,x,M,W,iA,dA,k,tA,zA,hA,gA,ce,IA,YA,de,ue,KA,he,xA;return nA(this,function(Me){switch(Me.label){case 0:if(c.type!==0)return[3,5];h=void 0,d=c.url,Me.label=1;case 1:return Me.trys.push([1,3,,4]),[4,s.context.cache.match(d)];case 2:return h=Me.sent(),[3,4];case 3:return Me.sent(),s.context.logger.error("Error loading background-image "+d),[3,4];case 4:return h&&(B=ei(e,t,[h.width,h.height,h.width/h.height]),W=B[0],hA=B[1],gA=B[2],k=B[3],tA=B[4],x=s.ctx.createPattern(s.resizeImage(h,k,tA),"repeat"),s.renderRepeat(W,x,hA,gA)),[3,6];case 5:mg(c)?(g=ei(e,t,[null,null,null]),W=g[0],hA=g[1],gA=g[2],k=g[3],tA=g[4],f=fg(c.angle,k,tA),m=f[0],F=f[1],Q=f[2],y=f[3],L=f[4],T=document.createElement("canvas"),T.width=k,T.height=tA,E=T.getContext("2d"),R=E.createLinearGradient(F,y,Q,L),Wl(c.stops,m).forEach(function(fr){return R.addColorStop(fr.stop,q(fr.color))}),E.fillStyle=R,E.fillRect(0,0,k,tA),k>0&&tA>0&&(x=s.ctx.createPattern(T,"repeat"),s.renderRepeat(W,x,hA,gA))):Fg(c)&&(M=ei(e,t,[null,null,null]),W=M[0],iA=M[1],dA=M[2],k=M[3],tA=M[4],zA=c.position.length===0?[Ss]:c.position,hA=_(zA[0],k),gA=_(zA[zA.length-1],tA),ce=wg(c,hA,gA,k,tA),IA=ce[0],YA=ce[1],IA>0&&YA>0&&(de=s.ctx.createRadialGradient(iA+hA,dA+gA,0,iA+hA,dA+gA,IA),Wl(c.stops,IA*2).forEach(function(fr){return de.addColorStop(fr.stop,q(fr.color))}),s.path(W),s.ctx.fillStyle=de,IA!==YA?(ue=e.bounds.left+.5*e.bounds.width,KA=e.bounds.top+.5*e.bounds.height,he=YA/IA,xA=1/he,s.ctx.save(),s.ctx.translate(ue,KA),s.ctx.transform(1,0,0,he,0,0),s.ctx.translate(-ue,-KA),s.ctx.fillRect(iA,xA*(dA-KA)+KA,k,tA*xA),s.ctx.restore()):s.ctx.fill())),Me.label=6;case 6:return t--,[2]}})},s=this,i=0,o=e.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return i<o.length?(a=o[i],[5,n(a)]):[3,4];case 2:l.sent(),l.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(e,t,n){return cA(this,void 0,void 0,function(){return nA(this,function(s){return this.path(Ad(n,t)),this.ctx.fillStyle=q(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,t,n,s){return cA(this,void 0,void 0,function(){var i,o;return nA(this,function(a){switch(a.label){case 0:return t<3?[4,this.renderSolidBorder(e,n,s)]:[3,2];case 1:return a.sent(),[2];case 2:return i=yw(s,n),this.path(i),this.ctx.fillStyle=q(e),this.ctx.fill(),o=Sw(s,n),this.path(o),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return cA(this,void 0,void 0,function(){var t,n,s,i,o,a,l,c,h=this;return nA(this,function(d){switch(d.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,n=!OA(t.backgroundColor)||t.backgroundImage.length,s=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],i=Pw(He(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),OA(t.backgroundColor)||(this.ctx.fillStyle=q(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:d.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(B){h.ctx.save();var g=fn(e.curves),f=B.inset?0:Rw,m=Uw(g,-f+(B.inset?1:-1)*B.spread.number,(B.inset?1:-1)*B.spread.number,B.spread.number*(B.inset?-2:2),B.spread.number*(B.inset?-2:2));B.inset?(h.path(g),h.ctx.clip(),h.mask(m)):(h.mask(g),h.ctx.clip(),h.path(m)),h.ctx.shadowOffsetX=B.offsetX.number+f,h.ctx.shadowOffsetY=B.offsetY.number,h.ctx.shadowColor=q(B.color),h.ctx.shadowBlur=B.blur.number,h.ctx.fillStyle=B.inset?q(B.color):"rgba(0,0,0,1)",h.ctx.fill(),h.ctx.restore()}),d.label=2;case 2:o=0,a=0,l=s,d.label=3;case 3:return a<l.length?(c=l[a],c.style!==0&&!OA(c.color)&&c.width>0?c.style!==2?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,o,e.curves,2)]:[3,11]):[3,13];case 4:return d.sent(),[3,11];case 5:return c.style!==3?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,o,e.curves,3)];case 6:return d.sent(),[3,11];case 7:return c.style!==4?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,o,e.curves)];case 8:return d.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,o,e.curves)];case 10:d.sent(),d.label=11;case 11:o++,d.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,t,n,s,i){return cA(this,void 0,void 0,function(){var o,a,l,c,h,d,B,g,f,m,F,Q,y,L,T,E,T,E;return nA(this,function(R){return this.ctx.save(),o=Iw(s,n),a=Ad(s,n),i===2&&(this.path(a),this.ctx.clip()),CA(a[0])?(l=a[0].start.x,c=a[0].start.y):(l=a[0].x,c=a[0].y),CA(a[1])?(h=a[1].end.x,d=a[1].end.y):(h=a[1].x,d=a[1].y),n===0||n===2?B=Math.abs(l-h):B=Math.abs(c-d),this.ctx.beginPath(),i===3?this.formatPath(o):this.formatPath(a.slice(0,2)),g=t<3?t*3:t*2,f=t<3?t*2:t,i===3&&(g=t,f=t),m=!0,B<=g*2?m=!1:B<=g*2+f?(F=B/(2*g+f),g*=F,f*=F):(Q=Math.floor((B+f)/(g+f)),y=(B-Q*g)/(Q-1),L=(B-(Q+1)*g)/Q,f=L<=0||Math.abs(f-y)<Math.abs(f-L)?y:L),m&&(i===3?this.ctx.setLineDash([0,g+f]):this.ctx.setLineDash([g,f])),i===3?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=t*2+1.1,this.ctx.strokeStyle=q(e),this.ctx.stroke(),this.ctx.setLineDash([]),i===2&&(CA(a[0])&&(T=a[3],E=a[0],this.ctx.beginPath(),this.formatPath([new S(T.end.x,T.end.y),new S(E.start.x,E.start.y)]),this.ctx.stroke()),CA(a[1])&&(T=a[1],E=a[2],this.ctx.beginPath(),this.formatPath([new S(T.end.x,T.end.y),new S(E.start.x,E.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return cA(this,void 0,void 0,function(){var t;return nA(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=q(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=Ew(e),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(rd),xw=function(r){return r instanceof Sc||r instanceof yc?!0:r instanceof Os&&r.type!==cn&&r.type!==ln},Pw=function(r,A){switch(r){case 0:return fn(A);case 2:return Cw(A);case 1:default:return wn(A)}},kw=function(r){switch(r){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Gw=["-apple-system","system-ui"],Nw=function(r){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?r.filter(function(A){return Gw.indexOf(A)===-1}):r},_w=function(r){FA(A,r);function A(e,t){var n=r.call(this,e,t)||this;return n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=t,n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),n}return A.prototype.render=function(e){return cA(this,void 0,void 0,function(){var t,n;return nA(this,function(s){switch(s.label){case 0:return t=Ns(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,Vw(t)];case 1:return n=s.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=q(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(rd),Vw=function(r){return new Promise(function(A,e){var t=new Image;t.onload=function(){A(t)},t.onerror=e,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},Ow=function(){function r(A){var e=A.id,t=A.enabled;this.id=e,this.enabled=t,this.start=Date.now()}return r.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Ir([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},r.prototype.getTime=function(){return Date.now()-this.start},r.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Ir([this.id,this.getTime()+"ms"],A))},r.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Ir([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},r.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Ir([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},r.instances={},r}(),Ww=function(){function r(A,e){var t;this.windowBounds=e,this.instanceName="#"+r.instanceCount++,this.logger=new Ow({id:this.instanceName,enabled:A.logging}),this.cache=(t=A.cache)!==null&&t!==void 0?t:new dw(this,A)}return r.instanceCount=1,r}(),Xw=function(r,A){return A===void 0&&(A={}),Jw(r,A)};typeof window<"u"&&zc.setContext(window);var Jw=function(r,A){return cA(void 0,void 0,void 0,function(){var e,t,n,s,i,o,a,l,c,h,d,B,g,f,m,F,Q,y,L,T,R,E,R,x,M,W,iA,dA,k,tA,zA,hA,gA,ce,IA,YA,de,ue,KA,he;return nA(this,function(xA){switch(xA.label){case 0:if(!r||typeof r!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=r.ownerDocument,!e)throw new Error("Element is not attached to a Document");if(t=e.defaultView,!t)throw new Error("Document is not attached to a Window");return n={allowTaint:(x=A.allowTaint)!==null&&x!==void 0?x:!1,imageTimeout:(M=A.imageTimeout)!==null&&M!==void 0?M:15e3,proxy:A.proxy,useCORS:(W=A.useCORS)!==null&&W!==void 0?W:!1},s=is({logging:(iA=A.logging)!==null&&iA!==void 0?iA:!0,cache:A.cache},n),i={windowWidth:(dA=A.windowWidth)!==null&&dA!==void 0?dA:t.innerWidth,windowHeight:(k=A.windowHeight)!==null&&k!==void 0?k:t.innerHeight,scrollX:(tA=A.scrollX)!==null&&tA!==void 0?tA:t.pageXOffset,scrollY:(zA=A.scrollY)!==null&&zA!==void 0?zA:t.pageYOffset},o=new bA(i.scrollX,i.scrollY,i.windowWidth,i.windowHeight),a=new Ww(s,o),l=(hA=A.foreignObjectRendering)!==null&&hA!==void 0?hA:!1,c={allowTaint:(gA=A.allowTaint)!==null&&gA!==void 0?gA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:l,copyStyles:l},a.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),h=new Xc(a,r,c),d=h.clonedReferenceElement,d?[4,h.toIFrame(e,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return B=xA.sent(),g=Xs(d)||zf(d)?Qu(d.ownerDocument):Tr(a,d),f=g.width,m=g.height,F=g.left,Q=g.top,y=zw(a,d,A.backgroundColor),L={canvas:A.canvas,backgroundColor:y,scale:(IA=(ce=A.scale)!==null&&ce!==void 0?ce:t.devicePixelRatio)!==null&&IA!==void 0?IA:1,x:((YA=A.x)!==null&&YA!==void 0?YA:0)+F,y:((de=A.y)!==null&&de!==void 0?de:0)+Q,width:(ue=A.width)!==null&&ue!==void 0?ue:Math.ceil(f),height:(KA=A.height)!==null&&KA!==void 0?KA:Math.ceil(m)},l?(a.logger.debug("Document cloned, using foreign object rendering"),R=new _w(a,L),[4,R.render(d)]):[3,3];case 2:return T=xA.sent(),[3,5];case 3:return a.logger.debug("Document cloned, element located at "+F+","+Q+" with size "+f+"x"+m+" using computed rendering"),a.logger.debug("Starting DOM parsing"),E=Hc(a,d),y===E.styles.backgroundColor&&(E.styles.backgroundColor=DA.TRANSPARENT),a.logger.debug("Starting renderer for element at "+L.x+","+L.y+" with size "+L.width+"x"+L.height),R=new Kw(a,L),[4,R.render(E)];case 4:T=xA.sent(),xA.label=5;case 5:return(!((he=A.removeContainer)!==null&&he!==void 0)||he)&&(Xc.destroy(B)||a.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),a.logger.debug("Finished rendering"),[2,T]}})})},zw=function(r,A,e){var t=A.ownerDocument,n=t.documentElement?qe(r,getComputedStyle(t.documentElement).backgroundColor):DA.TRANSPARENT,s=t.body?qe(r,getComputedStyle(t.body).backgroundColor):DA.TRANSPARENT,i=typeof e=="string"?qe(r,e):e===null?DA.TRANSPARENT:4294967295;return A===t.documentElement?OA(n)?OA(s)?i:s:n:i};const It=class It extends p.EngineObject{constructor(e,t){super(e,t);C(this,"_imageLabel",this.dv(new p.ESImageLabel(`${this.sceneObject.id}_ESImageLabel`)));C(this,"_hasClassDivAndPos",{});const n=t.viewer;if(!n){console.warn("viewer is undefined!");return}e.mainClass=this._imageLabel;const s=this._imageLabel;t.add(s),this.d(()=>t.delete(s));{const i=()=>{if(!n)return;if(!e.instanceClass)throw new Error("!sceneObject.instanceClass");const l=document.createElement("div"),c=this.dv(new e.instanceClass(l,e,t))._container;if(c.style.opacity=e.opacity.toString()??p.ESGeoDiv.defaults.opacity,c.style.position="fixed",c.style.zIndex="-1",c.style.top="0px",!document.body.contains(c)){document.body.appendChild(c);let d=c?c.querySelectorAll("*[class]"):[];for(let B=0;B<d.length;B++){const g=d[B];var h=g.getBoundingClientRect();this._hasClassDivAndPos[g.className]=[g.offsetLeft,g.offsetTop,g.offsetLeft+h.width,g.offsetTop+h.height]}}Xw(c,{backgroundColor:null,allowTaint:!0,useCORS:!0,width:c.offsetWidth,height:c.offsetHeight,scale:1}).then(d=>{document.body.contains(c)&&document.body.removeChild(c),s.url=d.toDataURL(),s.show=e.show}).catch(()=>{document.body.contains(c)&&document.body.removeChild(c)})},o=()=>{try{e.instanceClass?i():(s.url="",s.show=!1)}catch(l){console.error(l)}};o();const a=this.dv(w.createNextAnimateFrameEvent(e.instanceClassChanged,e.opacityChanged));this.d(a.don(o))}{const i=()=>{s.show=e.show};s.show=!1,this.ad(e.showChanged.don(i))}this.d(w.track([s,"anchor"],[e,"anchor"])),this.d(w.bind([s,"position"],[e,"position"])),this.d(w.bind([s,"rotation"],[e,"rotation"])),this.d(w.bind([s,"flyToParam"],[e,"flyToParam"])),this.d(w.bind([s,"flyInParam"],[e,"flyInParam"])),this.d(w.bind([s,"allowPicking"],[e,"allowPicking"])),this.d(w.bind([s,"scale"],[e,"scale"])),this.d(w.track([s,"minVisibleDistance"],[e,"minVisibleDistance"])),this.d(w.track([s,"maxVisibleDistance"],[e,"maxVisibleDistance"])),this.ad(e.automaticLandingEvent.don(()=>{s.automaticLanding()})),this.d(s.pickedEvent.don(i=>{(e.allowPicking??!1)&&e.pickedEvent.emit(i)})),this.d(t.widgetEvent.don(i=>{if(i.objId!==this._imageLabel.id)return;const{type:o,add:a}=i;if(o==="leftClick"&&a){const l=(a==null?void 0:a.classNames)??[],c=Object.keys(this._hasClassDivAndPos);for(let h=0;h<c.length;h++){const d=c[h];let B=this._hasClassDivAndPos[d];a&&a.mouseRelativePos&&a.mouseRelativePos[0]>=B[0]&&a.mouseRelativePos[0]<=B[2]&&a.mouseRelativePos[1]>=B[1]&&a.mouseRelativePos[1]<=B[3]&&l.push(d)}a.classNames=l}e.widgetEvent.emit({type:o,add:a})})),this.d(e.calcFlyToParamEvent.don(()=>{Be(n,s.id)})),this.d(e.calcFlyInParamEvent.don(()=>{const i=t.getCurrentCameraInfo();if(!i)return;const{position:o,rotation:a}=i;e.flyInParam={position:o,rotation:a,flyDuration:1}})),this.d(e.smoothMoveEvent.don((i,o)=>{mr(n,s.id,i,o)})),this.d(e.smoothMoveWithRotationEvent.don((i,o,a)=>{pr(n,s.id,i,o,a)})),this.d(e.smoothMoveOnGroundEvent.don((i,o,a,l)=>{Cr(n,s.id,i,o,l,a)})),this.d(e.smoothMoveWithRotationOnGroundEvent.don((i,o,a,l,c)=>{vr(n,s.id,i,o,a,l,c)})),this.d(e.flyToEvent.don((i,o)=>{s.flyTo(i)})),this.d(e.flyInEvent.don(i=>{s.flyIn(i)}))}};C(It,"type",It.register("ESUeViewer",p.ESGeoDiv.type,It));let ti=It;const Tt=class Tt extends lA{constructor(A,e){super(A,e);const t=e.viewer;if(!t){console.warn("viewer is undefined!");return}this.d(A.flyToFeatureIndexEvent.don((n,s)=>{t.callUeFunc({f:"flyToFeatureIndex",p:{id:A.id,index:n,duration:s}})})),this.d(A.flyToFeatureEvent.don((n,s,i)=>{t.callUeFunc({f:"flyToFeature",p:{id:A.id,key:n,value:s,duration:i}})}))}};C(Tt,"type",Tt.register("ESUeViewer",p.ESGeoJson.type,Tt));let ri=Tt;const Ht=class Ht extends rA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(Ht,"type",Ht.register("ESUeViewer",p.ESGeoLineString.type,Ht));let Fn=Ht;const Lt=class Lt extends rA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(Lt,"type",Lt.register("ESUeViewer",p.ESGeoRectangle.type,Lt));let ni=Lt;const bt=class bt extends BA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(bt,"type",bt.register("ESUeViewer",p.ESGeoWater.type,bt));let si=bt;const ie=class ie extends G{constructor(A,e){super(A,e);const t=e.viewer;if(!t){console.warn("viewer is undefined!");return}this.d(A.setNodePositionEvent.don((n,s)=>{io(t,A.id,n,s)})),this.d(A.setNodeRotationEvent.don((n,s)=>{oo(t,A.id,n,s)})),this.d(A.setNodeScaleEvent.don((n,s)=>{ao(t,A.id,n,s)}))}};C(ie,"forceUeUpdateProps",[...G.forceUeUpdateProps,"url"]),C(ie,"propValFuncs",{...G.propValFuncs,url:A=>typeof A=="string"?p.ESSceneObject.context.getStrFromEnv(p.rpToap(A)):(A.url=p.ESSceneObject.context.getStrFromEnv(p.rpToap(A.url)),A),czmMaximumScale:null,czmMinimumPixelSize:null,czmNativeScale:null,czmColor:null}),C(ie,"type",ie.register("ESUeViewer",p.ESGltfModel.type,ie));let ii=ie;const Mt=class Mt extends rA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(Mt,"type",Mt.register("ESUeViewer",p.ESHeightMeasurement.type,Mt));let oi=Mt;const Dt=class Dt extends G{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}const n=async(i,o,a,l)=>{const{viewer:c}=i;if(!c){console.error("AIMoveTo: ueViewer.viewer is undefined");return}const h=await c.callUeFunc({f:"AIMoveTo",p:{id:o,Destination:a,Time:l}});return h.error&&console.error("AIMoveTo:",h.error),h};this.d(A.aiMoveToEvent.don((i,o)=>{n(e,A.id,i,o)}));const s=async(i,o)=>{const{viewer:a}=i;if(!a){console.error("StopAIMove: ueViewer.viewer is undefined");return}const l=await a.callUeFunc({f:"StopAIMove",p:{id:o}});return l.error&&console.error("StopAIMove:",l.error),l};this.d(A.stopAIMoveEvent.don(()=>{s(e,A.id)}))}};C(Dt,"type",Dt.register("ESUeViewer",p.ESHuman.type,Dt));let ai=Dt;const oe=class oe extends UA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}A.anchor=[.5,1]}};C(oe,"type",oe.register("ESUeViewer",p.ESImageLabel.type,oe)),C(oe,"forceUeUpdateProps",[...UA.forceUeUpdateProps,"url"]),C(oe,"propValFuncs",{...UA.propValFuncs,url:A=>typeof A=="string"?p.ESSceneObject.context.getStrFromEnv(p.rpToap(A)):(A.url=p.ESSceneObject.context.getStrFromEnv(p.rpToap(A.url)),A)});let li=oe;const Rt=class Rt extends G{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(Rt,"type",Rt.register("ESUeViewer",p.ESLevelRuntimeModel.type,Rt));let ci=Rt;const Kt=class Kt extends Er{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(Kt,"type",Kt.register("ESUeViewer",p.ESLocalCircle.type,Kt));let di=Kt;const xt=class xt extends lA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(xt,"type",xt.register("ESUeViewer",p.ESLocalPolygonZ.type,xt));let ui=xt;const Pt=class Pt extends Er{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(Pt,"type",Pt.register("ESUeViewer",p.ESLocalRectangle.type,Pt));let hi=Pt;const kt=class kt extends G{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(kt,"type",kt.register("ESUeViewer",p.ESLocalSkyBox.type,kt));let gi=kt;const Gt=class Gt extends G{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(Gt,"type",Gt.register("ESUeViewer",p.ESLocationMeasurement.type,Gt));let Bi=Gt;const Nt=class Nt extends rA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(Nt,"type",Nt.register("ESUeViewer",p.ESPipeFence.type,Nt));let fi=Nt;const _t=class _t extends Fn{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(_t,"type",_t.register("ESUeViewer",p.ESPipeline.type,_t));let wi=_t;const Vt=class Vt extends yr{constructor(A,e){super(A,e);const t=e.viewer;if(!t){console.warn("viewer is undefined!");return}this.d(A.highlightFeatureEvent.don(n=>{const s=typeof n=="number"?n.toString():n;to(t,A.id,s)})),this.d(A.highlightFeatureAndFlyToEvent.don((n,s,i,o)=>{const a=typeof n=="number"?n.toString():n;ro(t,A.id,a,o??1)})),this.d(A.setLayerVisibleEvent.don((n,s)=>{let i="";typeof s!="string"?i=JSON.stringify(s):i=s,no(t,A.id,i)})),this.d(A.setLayerColorEvent.don((n,s)=>{let i="";typeof s!="string"?i=JSON.stringify(s):i=s,so(t,A.id,i)}))}};C(Vt,"type",Vt.register("ESUeViewer",p.ESPipeserTileset.type,Vt));let pi=Vt;const Ot=class Ot extends BA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(Ot,"type",Ot.register("ESUeViewer",p.ESPit.type,Ot));let Ci=Ot;const Wt=class Wt extends UA{constructor(A,e){super(A,e);const t=e.viewer;if(!t){console.warn("viewer is undefined!");return}this.ad(A.getInitialStyleEvent.don(async()=>{try{const n=await t.callUeFunc({f:"GetInitialStyle",p:{id:A.id}});n.error!=""&&console.error("getInitialStyleEvent:",n.error),A.initialStyle.value=structuredClone(n.re)}catch(n){console.error("getInitialStyleEvent:",n),A.initialStyle.value=void 0}}))}};C(Wt,"type",Wt.register("ESUeViewer",p.ESPoi2D.type,Wt));let vi=Wt;const Xt=class Xt extends G{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(Xt,"type",Xt.register("ESUeViewer",p.ESPoi3D.type,Xt));let mi=Xt;const ae=class ae extends lA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(ae,"type",ae.register("ESUeViewer",p.ESPoiTileset.type,ae)),C(ae,"forceUeUpdateProps",[...lA.forceUeUpdateProps,"url"]),C(ae,"propValFuncs",{...lA.propValFuncs,url:A=>typeof A=="string"?p.ESSceneObject.context.getStrFromEnv(A):(A.url=p.ESSceneObject.context.getStrFromEnv(A.url),A)});let Fi=ae;const Jt=class Jt extends rA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(Jt,"type",Jt.register("ESUeViewer",p.ESPolygonFence.type,Jt));let Qi=Jt;const zt=class zt extends BA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(zt,"type",zt.register("ESUeViewer",p.ESPolygonFlattenedPlane.type,zt));let Ui=zt;const Yt=class Yt extends BA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(Yt,"type",Yt.register("ESUeViewer",p.ESPolygonWithHole.type,Yt));let Ei=Yt;const $t=class $t extends qA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}this.d(()=>{A.ids=[]}),this.d(A.highlightInner3DtilesetEvent.don(n=>{n.highlight=!0})),this.d(A.removeHighlightInner3DtilesetEvent.don(n=>{n.highlight=!1}));{const n=o=>{o=o.toLocaleLowerCase();let a=[255,255,255,1];if(o.startsWith("#")){if(o.length===4){let l=parseInt(o[1]+o[1],16),c=parseInt(o[2]+o[2],16),h=parseInt(o[3]+o[3],16);a=[l,c,h,1]}else if(o.length===7){let l=parseInt(o.substring(1,3),16),c=parseInt(o.substring(3,5),16),h=parseInt(o.substring(5,7),16);a=[l,c,h,1]}}else if(o.startsWith("rgba")){let l=o.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)$/);if(l){let c=parseInt(l[1]),h=parseInt(l[2]),d=parseInt(l[3]),B=parseFloat(l[4]);a=[c,h,d,B]}}else if(o.startsWith("rgb")){let l=o.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);if(l){let c=parseInt(l[1]),h=parseInt(l[2]),d=parseInt(l[3]);a=[c,h,d,1]}}else console.error("color类型只能为#rrggbb、#rgb、rgba(r,g,b,a)、rgb(r,g,b)");return[a[0]/255,a[1]/255,a[2]/255,a[3]]},s=()=>{const o=A.layerConfig;if(!o)return;const a=[];o.forEach(l=>{a.push({condition:[{field:"layer",op:"==",value:l.layer},{field:"dataset",op:"==",value:l.dataset}],color:n(l.value.color??"rgb(255,255,255)"),show:l.value.visible})}),A.setFeatureStyle(a)};s();const i=this.dv(w.createNextAnimateFrameEvent(A.layerConfigChanged));this.d(i.don(()=>{s()}))}}};C($t,"type",$t.register("ESUeViewer",p.ESRtsTileset.type,$t));let yi=$t;const Zt=class Zt extends lA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}this.d(A.addTreesEvent.don(n=>{p.addTreesCallFunc(e,A.id,n)})),this.d(A.removeAllTreesEvent.don(()=>{p.removeAllTreesCallFunc(e,A.id)})),this.d(A.updateTreeParamsEvent.don(n=>{p.updateTreeParamsCallFunc(e,A.id,n)})),this.d(A.cutDownTreesEvent.don((n,s)=>{p.cutDownTreesCallFunc(e,A.id,n,s)})),this.d(A.growthSimulationEvent.don((n,s,i)=>{p.growthSimulationCallFunc(e,A.id,n,s,i)}))}};C(Zt,"type",Zt.register("ESUeViewer",p.ESSeparateFoliage.type,Zt));let Si=Zt;const qt=class qt extends G{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(qt,"type",qt.register("ESUeViewer",p.ESSubmergingAnalysis.type,qt));let Ii=qt;const jt=class jt extends BA{constructor(A,e){super(A,e);const t=e.viewer;if(!t){console.warn("viewer is undefined!");return}this.d(A.startEvent.don(()=>{t.callUeFunc({f:"Start",p:{id:A.id}})})),this.d(A.stopEvent.don(()=>{t.callUeFunc({f:"Stop",p:{id:A.id}})}))}};C(jt,"type",jt.register("ESUeViewer",p.ESSunshineAnalysis.type,jt));let Ti=jt;const Ar=class Ar extends BA{constructor(A,e){super(A,e);const t=e.viewer;if(!t){console.warn("viewer is undefined!");return}this.d(A.startEvent.don(()=>{t.callUeFunc({f:"Start",p:{id:A.id}})}))}};C(Ar,"type",Ar.register("ESUeViewer",p.ESSurfaceAreaMeasurement.type,Ar));let Hi=Ar;const er=class er extends UA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(er,"type",er.register("ESUeViewer",p.ESTextLabel.type,er));let Li=er;const Le=class Le extends UA{constructor(A,e){super(A,e);const t=e.viewer;if(!t){console.warn("viewer is undefined!");return}this.d(A.callFunctionEvent.don(async(n,s)=>{const i=await yn(t,A.id,n,s);A.__callFunctionResultEvent.emit(i)}))}};C(Le,"type",Le.register("ESUeViewer",p.ESUEWidget.type,Le)),C(Le,"propValFuncs",{...UA.propValFuncs,info:A=>JSON.stringify(A??{})});let bi=Le;const nd=r=>{switch(r){case 0:return"成功绑定";case 1:return"解绑之前的内容,成功绑定";case 2:return"未搜索到ActorTag,无法绑定";case 3:return"搜索到ActorTag但对应的Actor不是场景原有的,而是新建的,无法绑定";case 4:return"搜索到ActorTag对应的Actor是地形或3DTileset,无法绑定";default:return"未知错误"}},Yw=r=>{switch(r){case 0:return"创建成功";case 1:return"未找到对应的资源,无法创建";case 2:return"Id与场景中现有的ActorTag重复,创建后可能出现问题,创建失败";default:return"未知错误"}},tr=class tr extends p.EngineObject{constructor(A,e){super(A,e);const t=e.viewer;if(!t){console.warn(`${A.id} UeESUnrealActor viewer is undefined!`);return}this.d(()=>{Un(t,A.id)});const n=async()=>{l()||await t.callUeFunc({f:"update",p:{id:A.id,name:A.name,show:A.show,rotation:A.rotation,flyToParam:A.flyToParam??p.ESVisualObject.defaults.flyToParam,flyInParam:A.flyInParam??p.ESVisualObject.defaults.flyInParam,highlight:A.highlight,collision:A.collision,scale:A.scale,minVisibleDistance:A.minVisibleDistance,maxVisibleDistance:A.maxVisibleDistance}})},s=this.dv(w.createNextAnimateFrameEvent(A.showChanged,A.nameChanged,A.rotationChanged,A.flyToParamChanged,A.flyInParamChanged,A.highlightChanged,A.collisionChanged,A.scaleChanged,A.minVisibleDistanceChanged,A.maxVisibleDistanceChanged));this.d(s.don(n)),this.d(A.flushEvent.don(()=>s.flush()));let i,o;const a=async()=>{l()||(await t.callUeFunc({f:"update",p:{id:A.id,position:A.position}}),(e.debug??!1)&&console.log(`updatePostion:${A.position},actorTag:${A.actorTag},actorClass:${A.actorClass}`))},l=()=>!i&&!o?(console.warn(`${A.id} 未绑定ActorTag或未创建ActorClass!`),!0):!1,c=async()=>{const{id:d}=A,B=await e.unBindActorByID(d);B&&B.error!==""&&console.warn(`${A.id} UeESUnrealActor UnBindActorByID: ${B.error}`),i=void 0;const g=await t.callUeFunc({f:"destroy",p:{id:d}});if(g&&g.error!==""){console.warn(`${A.id} UeESUnrealActor DestroyActorByID: ${g.error}`);return}o=void 0},h=this.dv(w.react({type:"ActorClass",actorClass:"default"}));{const d=this.dv(w.createNextAnimateFrameEvent(A.actorClassChanged,A.actorTagChanged)),B=async()=>{A.actorTag!==""?h.value={type:"ActorTag",actorTag:A.actorTag}:h.value={type:"ActorClass",actorClass:A.actorClass===""?"default":A.actorClass}};B(),this.d(d.don(B)),this.d(A.flushEvent.don(()=>d.flush()))}{const d=this.dv(w.createProcessingFromAsyncFunc(async g=>{if(await g.promise(c()),h.value.type==="ActorTag"){const{actorTag:f}=h.value;await g.promise(c());try{A.lastActorStatus="null";const m=await g.promise(e.bindActorByTag(A.id,f));if(!m)return;if(m.error!==""){console.warn(`${A.id} UeESUnrealActor BindActorByTag:${f},${m.error}`);return}if(m.re.type===0)A.lastActorStatus="bound",i=f;else if(m.re.type===1)A.lastActorStatus="bound",i=f,console.warn(`${A.id} UeESUnrealActor BindActorByTag:${f},${nd(m.re.type)}`);else{i=void 0,console.warn(`${A.id} UeESUnrealActor BindActorByTag error:${f}, ${nd(m.re.type)}`);return}}catch(m){console.warn(`${A.id} UeESUnrealActor BindActorByTag catch error:${f}, ${m}`);return}}else if(h.value.type==="ActorClass"){const{actorClass:f}=h.value;try{const m=await g.promise(e.createActorByClass(A.id,f));if(!m)return;if(m.error!==""){console.warn(`${A.id} UeESUnrealActor CreateActorByClass error :${f}, ${m.error}`);return}if(m.re.type===0)A.lastActorStatus="created",o=f;else{console.warn(`${A.id} UeESUnrealActor CreateActorByClass error type :${f},${Yw(m.re.type)}`);return}}catch(m){console.warn(`${A.id} UeESUnrealActor CreateActorByClass error catch :${f}, ${JSON.stringify(m)}`);return}}await g.promise(n()),await g.promise(a())})),B=async()=>{d.restart()};B(),this.d(h.changed.don(B))}this.d(A.positionChanged.don(a)),this.d(A.callFunctionEvent.don(async(d,B)=>{if(l()){A.__callFunctionResultEvent.emit(void 0);return}const g=await yn(t,A.id,d,B);A.__callFunctionResultEvent.emit(g)})),this.d(A.smoothMoveEvent.don((d,B)=>{l()||mr(t,A.id,d,B)})),this.d(A.smoothMoveWithRotationEvent.don((d,B,g)=>{l()||pr(t,A.id,d,B,g)})),this.d(A.smoothMoveOnGroundEvent.don((d,B,g,f)=>{l()||Cr(t,A.id,d,B,f,g)})),this.d(A.smoothMoveWithRotationOnGroundEvent.don((d,B,g,f,m)=>{l()||vr(t,A.id,d,B,g,f,m)})),this.d(A.automaticLandingEvent.don(d=>{if(l())return;const B=[A.position[0],A.position[1]];e.getHeightByLonLat(A.position[0],A.position[1],"Visibility").then(g=>{g!==null&&(A.position=[...B,g],A.collision=d)})})),this.d(A.flyToEvent.don(async(d,B)=>{if(l())return;const g=await ge(t,A.id,d);let f="over";g===void 0?f="error":g.endType===0?f="over":g.endType===1&&(f="cancelled"),A.flyOverEvent.emit(B,f,e)})),this.d(A.calcFlyToParamEvent.don(()=>{l()||Be(t,A.id)})),this.d(A.calcFlyInParamEvent.don(async()=>{if(!e.actived)return;const d=await e.getCurrentCameraInfo();if(!d)return;const{position:B,rotation:g}=d;A.flyInParam={position:B,rotation:g,flyDuration:1}})),this.d(e.propChanged.don(d=>{l()||d.objId===A.id&&Object.keys(d.props).forEach(B=>{const g=d.props[B]===null?void 0:d.props[B];A[B]=g})}))}};C(tr,"type",tr.register("ESUeViewer",p.ESUnrealActor.type,tr));let Mi=tr;const rr=class rr extends G{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(rr,"type",rr.register("ESUeViewer",p.ESVideoFusion.type,rr));let Di=rr;const nr=class nr extends G{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(nr,"type",nr.register("ESUeViewer",p.ESViewShed.type,nr));let Ri=nr;const sr=class sr extends rA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is underfined!");return}}};C(sr,"type",sr.register("ESUeViewer",p.ESVisibilityAnalysis.type,sr));let Ki=sr;const ir=class ir extends BA{constructor(A,e){super(A,e);const t=e.viewer;if(!t){console.warn("viewer is undefined!");return}this.ad(w.track([A,"volume"],[A,"cutAndFillVolume"])),this.d(A.startEvent.don(()=>{t.callUeFunc({f:"Start",p:{id:A.id}})})),this.d(A.clearEvent.don(()=>{t.callUeFunc({f:"Clear",p:{id:A.id}})}))}};C(ir,"type",ir.register("ESUeViewer",p.ESVolumeMeasurement.type,ir));let xi=ir;const be=class be extends UA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(be,"type",be.register("ESUeViewer",p.ESWidget.type,be)),C(be,"propValFuncs",{...UA.propValFuncs,info:A=>JSON.stringify(A??{})});let Pi=be;const or=class or extends p.EngineObject{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}A.poi.actorTag=A.human.id,A.poi.positionOffset=[0,0,A.poiOffsetHeight-.8],this.d(A.poiOffsetHeightChanged.don(()=>{A.poi.positionOffset=[0,0,A.poiOffsetHeight-.8]})),this.d(()=>{A.poi.actorTag=""})}};C(or,"type",or.register("ESUeViewer",p.ESHumanPoi.type,or));let ki=or;p.ESSceneObject.context.getStrFromEnv(p.ESNavigator.defaults.imgUrl);const ar=class ar extends p.EngineObject{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}const n=this.disposeVar(new p.ESCustomDiv);e.add(n),this.dispose(()=>e.delete(n)),this.dispose(w.track([n,"show"],[A,"show"])),n.instanceClass=class extends w.Destroyable{constructor(i,o,a){super(),this._subContainer=i;const l=document.createElement("div");this._subContainer.appendChild(l),this.dispose(()=>this._subContainer.removeChild(l));{const d=async()=>{const B=await e.getCurrentCameraInfo(),g=B==null?void 0:B.position,m=[...B==null?void 0:B.rotation];m[0]=360,e.flyIn(g,m)};l.addEventListener("click",d),l.style.cursor="pointer",this.dispose(()=>l.removeEventListener("click",d))}{const d=()=>{l.style.width=`${A.cssSize?A.cssSize:p.ESNavigator.defaults.cssSize}px`,l.style.height=`${A.cssSize?A.cssSize:p.ESNavigator.defaults.cssSize}px`};d(),A.dispose(A.cssSizeChanged.disposableOn(d))}l.style.position="fixed";{const d=()=>{l.style.top=`${A.cssPosition?A.cssPosition[0]:p.ESNavigator.defaults.cssPosition[0]}px`,l.style.right=`${A.cssPosition?A.cssPosition[1]:p.ESNavigator.defaults.cssPosition[1]}px`};d(),A.dispose(A.cssPositionChanged.disposableOn(d))}l.style.transition=" right 0.4s linear",l.style.cursor="pointer";const c=document.createElement("div");l.appendChild(c),this.dispose(()=>l.removeChild(c)),c.style.width="100%",c.style.height="100%",c.style.position="relative";const h=document.createElement("img");c.appendChild(h),this.dispose(()=>c.removeChild(h)),h.style.width="100%",h.style.height="100%",h.style.border="none";{const d=()=>h.src=A.imgUrl;d(),A.dispose(A.imgUrlChanged.disposableOn(d))}{const d=()=>{const m=-e.getCurrentCameraInfo().rotation[0];h.style.transform=`rotate(${m}deg)`};let B;const g=async()=>{d(),A.show?(l.style.display="block",B=setInterval(()=>{d()},1e3)):(l.style.display="none",clearInterval(B))};this.dispose(A.showChanged.disposableOn(g)),g(),this.dispose(()=>clearInterval(B))}h.style.transformOrigin="50% 50%"}}}};C(ar,"type",ar.register("ESUeViewer",p.ESNavigator.type,ar));let Gi=ar;const le=class le extends rA{constructor(A,e){super(A,e);const t=e.viewer;if(!t){console.warn("viewer is undefined!");return}{const n=()=>{let s=A.materialMode==="blue"?"multipleArrows":A.materialMode==="purple"?"singleArrow":A.materialMode;t.callUeFunc({f:"update",p:{id:A.id,materialMode:s}})};this.dispose(A.materialModeChanged.disposableOn(n)),this.dispose(A.createdEvent.disposableOn(n))}}};C(le,"type",le.register("ESUeViewer",p.ESPath.type,le)),C(le,"forceUeUpdateProps",[...rA.forceUeUpdateProps]),C(le,"propValFuncs",{...rA.propValFuncs,materialMode:null});let Ni=le;async function $w(r){navigator.clipboard.writeText(r).then(function(){console.log("复制成功")},function(A){console.log("复制失败")})}const lr=class lr extends p.EngineObject{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}const n=this.disposeVar(new p.ESCustomDiv);e.add(n),this.dispose(()=>e.delete(n)),n.instanceClass=class extends w.Destroyable{constructor(i,o,a){if(super(),this._subContainer=i,!a||!(a instanceof LA))return;const l=document.createElement("div");this._subContainer.appendChild(l),this.dispose(()=>this._subContainer.removeChild(l)),l.style.width="100%",l.style.position="absolute",l.style.height=`${p.ESViewerStatusBar.defaults.height}px`,l.style.left="0",l.style.bottom="0",l.style.color="#fff",l.style.padding="0 20px 0 0",l.style.boxSizing="border-box",l.style.lineHeight=`${p.ESViewerStatusBar.defaults.height}px`,l.style.zIndex="100",l.style.alignContent="center",l.style.justifyContent="space-between";const c=document.createElement("span");l.appendChild(c),this.dispose(()=>l.removeChild(c));const h=document.createElement("span");c.appendChild(h),this.dispose(()=>c.removeChild(h));const d=document.createElement("span");c.appendChild(d),d.addEventListener("dblclick",function(){let g=d.innerHTML;g.startsWith("鼠标位置")&&(g=g.slice(5)),$w(g)}),d.style.cursor="pointer",this.dispose(()=>c.removeChild(d));const B=document.createElement("span");l.appendChild(B),this.dispose(()=>l.removeChild(B));{const g=()=>{l.style.height=(A.height??p.ESViewerStatusBar.defaults.height)+"px",l.style.lineHeight=(A.height??p.ESViewerStatusBar.defaults.height)+"px"};this.dispose(A.heightChanged.disposableOn(g)),g()}{const g=()=>{l.style.fontSize=(A.fontSize??p.ESViewerStatusBar.defaults.fontSize)+"px"};this.dispose(A.fontSizeChanged.disposableOn(g)),g()}{const g=()=>{A.bgColor?l.style.background=`rgba(${A.bgColor[0]*255},${A.bgColor[1]*255},${A.bgColor[2]*255},${A.bgColor[3]})`:l.style.background=`rgba(${p.ESViewerStatusBar.defaults.bgColor[0]},${p.ESViewerStatusBar.defaults.bgColor[1]},${p.ESViewerStatusBar.defaults.bgColor[2]},${p.ESViewerStatusBar.defaults.bgColor[3]})`};this.dispose(A.bgColorChanged.disposableOn(g)),g()}a.getVersion().then(g=>{g&&(B.innerText=`Ue 版本 : ${g[0]} `)}).catch(g=>{console.log(g)});{const g=()=>{let F="",Q="";F+=`帧率:${a.getFPS().toFixed(0)}FPS`,h.innerText=F;const y=e.getCurrentCameraInfo();F+=` 经度: ${y.position[0].toFixed(5)}° 纬度: ${y.position[1].toFixed(5)}° 高度: ${y.position[2].toFixed(2)}米 偏航角: ${y.rotation[0].toFixed(2)}° 俯仰角: ${y.rotation[1].toFixed(2)}° 翻滚角:${y.rotation[2].toFixed(2)}° `,h.innerText=F,e.pick().then(L=>{if(L){const{pickResult:T}=L;if(T&&T.position){const{position:E}=T;Q+=`鼠标位置:${E[0].toFixed(5)}° ${E[1].toFixed(5)}° ${E[2].toFixed(2)}m`}else Q+="暂时无法获取鼠标位置...";d.innerText=Q}}).catch(L=>{console.log(L)})};let f;const m=async()=>{g(),A.show?(l.style.display="flex",f=setInterval(()=>{g()},1e3)):(l.style.display="none",clearInterval(f))};this.dispose(A.showChanged.disposableOn(m)),m(),this.dispose(()=>clearInterval(f))}}}}};C(lr,"type",lr.register("ESUeViewer",p.ESViewerStatusBar.type,lr));let _i=lr;const cr=class cr extends G{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(cr,"type",cr.register("ESUeViewer",p.ESGaussianSplatting.type,cr));let Vi=cr;const dr=class dr extends qA{constructor(e,t){super(e,t);C(this,"_es3DTileset",this.dv(new p.ES3DTileset(`${this.sceneObject.id}_ES3DTileset`)));if(!t.viewer){console.warn("viewer is undefined!");return}e.mainClass=this._es3DTileset;{const s=this._es3DTileset;t.add(s),this.dispose(()=>t.delete(s)),this.d(w.track([s,"allowPicking"],[e,"allowPicking"])),this.d(w.track([s,"collision"],[e,"collision"])),this.d(w.bind([s,"flyToParam"],[e,"flyToParam"])),this.d(w.bind([s,"flyToParam"],[e,"flyToParam"])),this.d(w.track([s,"url"],[e,"url"])),this.d(w.track([s,"actorTag"],[e,"actorTag"])),this.d(w.track([s,"materialMode"],[e,"materialMode"])),this.d(w.track([s,"highlight"],[e,"highlight"])),this.d(w.track([s,"maximumScreenSpaceError"],[e,"maximumScreenSpaceError"])),this.d(w.track([s,"highlightID"],[e,"highlightID"])),this.d(w.track([s,"highlightColor"],[e,"highlightColor"])),this.d(w.bind([s,"offset"],[e,"offset"])),this.d(w.bind([s,"rotation"],[e,"rotation"])),this.d(w.track([s,"czmImageBasedLightingFactor"],[e,"czmImageBasedLightingFactor"])),this.d(w.track([s,"czmLuminanceAtZenith"],[e,"czmLuminanceAtZenith"])),this.d(w.track([s,"czmMaximumMemoryUsage"],[e,"czmMaximumMemoryUsage"])),this.d(w.track([s,"czmClassificationType"],[e,"czmClassificationType"])),this.d(w.track([s,"czmStyleJson"],[e,"czmStyleJson"])),this.d(w.track([s,"czmBackFaceCulling"],[e,"czmBackFaceCulling"])),this.d(w.track([s,"czmDebugShowBoundingVolume"],[e,"czmDebugShowBoundingVolume"])),this.d(w.track([s,"czmDebugShowContentBoundingVolume"],[e,"czmDebugShowContentBoundingVolume"])),this.d(w.track([s,"colorBlendMode"],[e,"colorBlendMode"])),this.d(w.track([s,"cacheBytes"],[e,"cacheBytes"])),this.d(w.track([s,"clippingPlaneEnabled"],[e,"clippingPlaneEnabled"])),this.d(w.track([s,"unionClippingRegions"],[e,"unionClippingRegions"])),this.d(w.track([s,"clippingPlaneEdgeColor"],[e,"clippingPlaneEdgeColor"])),this.d(w.track([s,"clippingPlaneEdgeWidth"],[e,"clippingPlaneEdgeWidth"])),this.d(w.track([s,"materialParams"],[e,"materialParams"])),this.d(w.bind([s,"supportEdit"],[e,"supportEdit"])),this.d(w.bind([s,"clippingPlanesId"],[e,"clippingPlanesId"])),this.d(w.bind([s,"clippingPlaneIds"],[e,"clippingPlaneIds"])),this.d(w.bind([s,"flattenedPlaneId"],[e,"flattenedPlaneId"])),this.d(w.bind([s,"flattenedPlaneEnabled"],[e,"flattenedPlaneEnabled"])),this.d(w.bind([s,"clippingPlaneId"],[e,"clippingPlaneId"])),this.d(w.bind([s,"excavateId"],[e,"excavateId"]))}{const s=this._es3DTileset;this.d(e.refreshTilesetEvent.don(()=>{s.refreshTileset()})),this.d(e.highlightFeatureEvent.don((...i)=>{s.highlightFeature(...i)})),this.d(e.highlightFeatureAndFlyToEvent.don((...i)=>{s.highlightFeatureAndFlyTo(...i)})),this.d(e.setFeatureColorEvent.don((...i)=>{s.setFeatureColor(...i)})),this.d(e.setFeatureVisableEvent.don((...i)=>{s.setFeatureVisable(...i)})),this.d(e.resetFeatureStyleEvent.don((...i)=>{s.resetFeatureStyle(...i)})),this.d(e.flyInEvent.don((...i)=>{s.flyIn(i[0])})),this.d(e.flyToEvent.don((...i)=>{s.flyTo(i[0])})),this.d(e.calcFlyToParamEvent.don((...i)=>{s.calcFlyToParam(...i)})),this.d(e.calcFlyInParamEvent.don((...i)=>{s.calcFlyInParam(...i)}))}{const s=this._es3DTileset;this.d(s.tilesetReady.don(i=>{e.tilesetReady.emit(i)})),this.d(s.pickedEvent.don(i=>{i.assign({sceneObject:e}),e.pickedEvent.emit(i)}))}{const s=()=>{this.es3DTileset.show=e.show};s(),this.d(e.showChanged.don(()=>{s()}))}}get es3DTileset(){return this._es3DTileset}};C(dr,"type",dr.register("ESUeViewer",p.ESRtsFeatureEditing.type,dr));let Oi=dr;const ur=class ur extends qA{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(ur,"type",ur.register("ESUeViewer",p.ESMsTileset.type,ur));let Wi=ur;const hr=class hr extends BA{constructor(A,e){super(A,e);const t=e.viewer;if(!t){console.warn("viewer is undefined!");return}const n=()=>{t.callUeFunc({f:"update",p:{id:A.id,height:A.height??p.ESGeoExtrudedPolygon.defaults.height,extrudedHeight:A.extrudedHeight??p.ESGeoExtrudedPolygon.defaults.extrudedHeight,perPositionHeight:A.perPositionHeight??p.ESGeoExtrudedPolygon.defaults.perPositionHeight}})},s=this.disposeVar(w.createNextAnimateFrameEvent(A.heightChanged,A.extrudedHeightChanged,A.perPositionHeightChanged));this.dispose(s.disposableOn(n)),this.dispose(A.createdEvent.disposableOn(n))}};C(hr,"type",hr.register("ESUeViewer",p.ESGeoExtrudedPolygon.type,hr));let Xi=hr;const gr=class gr extends G{constructor(A,e){if(super(A,e),!e.viewer){console.warn("viewer is undefined!");return}}};C(gr,"type",gr.register("ESUeViewer",p.ESStaticMesh.type,gr));let Ji=gr;const Br=class Br extends rA{constructor(A,e){super(A,e);const t=e.viewer;if(!t){console.warn("viewer is undefined!");return}this.d(A.startEvent.don(()=>{t.callUeFunc({f:"Start",p:{id:A.id}})})),this.d(A.clearEvent.don(()=>{t.callUeFunc({f:"Clear",p:{id:A.id}})}))}};C(Br,"type",Br.register("ESUeViewer",p.ESSkylineAnalysis.type,Br));let zi=Br;v.copyright=void 0;try{const r="earthsdk3-ue",A="3.0.8-beta.3",e="2025-06-19T00:47:05.000Z",t="北京西部世界科技有限公司",n="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",s="468c6a33b6cf9a394b5cc013cf77153920efc031",o=((Date.now()-1750294025e3)/36e5).toFixed(1),a=`%c🌏 ${r}%c ${A}.${s.slice(0,8)}.${e} (距今${o}个小时)
|
|
113
|
+
%c${n?n+`
|
|
114
|
+
`:""}当前网站正在使用${r},此软件版权归${t}所有
|
|
115
|
+
`;v.copyright=Object.freeze({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){return OWNERLINK_},get gituri(){return GITURI_&&GITURI_.replace("${commitId}","468c6a33b6cf9a394b5cc013cf77153920efc031")},get info(){return a},get date(){return"2025-06-19T00:47:05.000Z"},get author(){return"suplyang"},get version(){return"3.0.8-beta.3"},get name(){return"earthsdk3-ue"},get commitId(){return"468c6a33b6cf9a394b5cc013cf77153920efc031"},print(l=!1){!l&&window._xe2_no_copy_print||console.info(this.info,`
|
|
343
116
|
font-size: 18px;
|
|
344
117
|
font-weight: 1000;
|
|
345
118
|
line-height: 1;
|
|
@@ -356,4 +129,4 @@ Msg: ${t}`;console.warn(o)}};x.verboseLogLevel=5,function(v){v.LIST_STREAMERS="l
|
|
|
356
129
|
color: rgb(0, 120, 215);
|
|
357
130
|
padding-bottom: 2px;
|
|
358
131
|
padding-left: 35px;
|
|
359
|
-
`)}}),window.g_XE3CopyRights=window.g_XE3CopyRights||{},window.g_XE3CopyRights[
|
|
132
|
+
`)}}),window.g_XE3CopyRights=window.g_XE3CopyRights||{},window.g_XE3CopyRights[r]=v.copyright,window.g_earthsdk_copyright_print=window.g_earthsdk_copyright_print??!0,window.g_earthsdk_copyright_print&&v.copyright.print()}catch{}return v.ESUeViewer=LA,v.HighlightFeatureAndFlyToCallFunc=ro,v.HighlightFeatureCallFunc=to,v.SetLayerColorCallFunc=so,v.SetLayerVisibleCallFunc=no,v.UeCloudViewerBase=Re,v.UeES3DTileset=yr,v.UeESAlarm=Gn,v.UeESApertureEffect=Nn,v.UeESAreaMeasurement=_n,v.UeESBlastParticleSystem=Vn,v.UeESBoxClipping=On,v.UeESCameraView=Wn,v.UeESCameraVisibleRange=Xn,v.UeESCar=Jn,v.UeESClassification=zn,v.UeESClippingPlane=Yn,v.UeESDataMesh=$n,v.UeESDatasmithRuntimeModel=Zn,v.UeESDirectionMeasurement=qn,v.UeESDistanceMeasurement=jn,v.UeESDynamicWater=As,v.UeESEntityCluster=es,v.UeESExcavate=ts,v.UeESFireParticleSystem=rs,v.UeESForestTileset=ns,v.UeESGaussianSplatting=Vi,v.UeESGeoDiv=ti,v.UeESGeoExtrudedPolygon=Xi,v.UeESGeoJson=ri,v.UeESGeoLineString=Fn,v.UeESGeoPolygon=BA,v.UeESGeoRectangle=ni,v.UeESGeoVector=rA,v.UeESGeoWater=si,v.UeESGltfModel=ii,v.UeESHeightMeasurement=oi,v.UeESHuman=ai,v.UeESHumanPoi=ki,v.UeESImageLabel=li,v.UeESImageryLayer=Pn,v.UeESLabel=UA,v.UeESLevelRuntimeModel=ci,v.UeESLocalCircle=di,v.UeESLocalPolygon=Sr,v.UeESLocalPolygonZ=ui,v.UeESLocalRectangle=hi,v.UeESLocalSkyBox=gi,v.UeESLocalVector=xn,v.UeESLocalVector2D=Er,v.UeESLocationMeasurement=Bi,v.UeESMsTileset=Wi,v.UeESNavigator=Gi,v.UeESObjectWithLocation=G,v.UeESPath=Ni,v.UeESPipeFence=fi,v.UeESPipeline=wi,v.UeESPipeserTileset=pi,v.UeESPit=Ci,v.UeESPoi2D=vi,v.UeESPoi3D=mi,v.UeESPoiTileset=Fi,v.UeESPolygonFence=Qi,v.UeESPolygonFlattenedPlane=Ui,v.UeESPolygonWithHole=Ei,v.UeESRtsFeatureEditing=Oi,v.UeESRtsTileset=yi,v.UeESSceneObject=qA,v.UeESSeparateFoliage=Si,v.UeESSkylineAnalysis=zi,v.UeESStaticMesh=Ji,v.UeESSubmergingAnalysis=Ii,v.UeESSunshineAnalysis=Ti,v.UeESSurfaceAreaMeasurement=Hi,v.UeESTerrainLayer=kn,v.UeESTextLabel=Li,v.UeESUEWidget=bi,v.UeESUnrealActor=Mi,v.UeESVideoFusion=Di,v.UeESViewShed=Ri,v.UeESViewerStatusBar=_i,v.UeESVisibilityAnalysis=Ki,v.UeESVisualObject=lA,v.UeESVolumeMeasurement=xi,v.UeESWidget=Pi,v.bind3DTilesetByTagCallFunc=Mo,v.bindActorByTagCallFunc=Io,v.bindImageryByTagCallFunc=Ko,v.calcFlyToParamCallFunc=Be,v.callFunctionCallFunc=yn,v.captureCallFunc=fo,v.changeNavigationModeCallFunc=TA,v.createActorByClassCallFunc=bo,v.destroyCallFunc=Un,v.flyInCallFunc=De,v.flyInDefaultCameraCallFunc=Zi,v.flyToCallFunc=ge,v.generateMemReportCallFunc=eo,v.getAllSocketNamesByActorTagCallFunc=vo,v.getBoundSphereCallFunc=Fo,v.getBoundSphereWithChildrenCallFunc=Qo,v.getCameraRelativeHeightCallFunc=Go,v.getFillMaterialParamInfoCallFunc=Eo,v.getGlobalPropertyCallFunc=yo,v.getHeightByLonLatCallFunc=go,v.getHeightByLonLatsCallFunc=Bo,v.getIdByComponentNameAndHitItemCallFunc=ko,v.getLonLatAltToScreenPositionCallFunc=po,v.getObjectByInfoCallFunc=So,v.getStatusCallFunc=Oo,v.getStrokeMaterialParamInfoCallFunc=Uo,v.getTilesetMaterialIDListCallFunc=zo,v.getVersionCallFunc=mo,v.highlightActorByTagCallFunc=_o,v.mountPakFiles=Ao,v.moveObjectsCallFunc=Jo,v.partialCaptureCallFunc=wo,v.pickCallFunc=uo,v.pickPositionCallFunc=ho,v.quitCallFunc=co,v.refreshTilesetCallFunc=$i,v.resetWithCurrentCameraCallFunc=En,v.restoreOriginalSceneCallFunc=To,v.saveStringToFileCallFunc=No,v.sendCustomMessageCallFunc=Vo,v.setGlobalPropertyCallFunc=lo,v.setNodePositionCallFunc=io,v.setNodeRotationCallFunc=oo,v.setNodeScaleCallFunc=ao,v.smoothMoveCallFunc=mr,v.smoothMoveOnGroundCallFunc=Cr,v.smoothMoveWithRotationCallFunc=pr,v.smoothMoveWithRotationOnGroundCallFunc=vr,v.startEditingCallFunc=Wo,v.startVoiceCallFunc=qi,v.stopEditingCallFunc=Xo,v.stopVoiceCallFunc=ji,v.uePositionToLonLatAltCallFunc=Co,v.unBind3DTilesetByIdCallFunc=Ro,v.unBind3DTilesetByTagCallFunc=Do,v.unBindActorByIDCallFunc=Ho,v.unBindActorByTagCallFunc=Lo,v.unBindImageryByIdCallFunc=Po,v.unBindImageryByTagCallFunc=xo,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),v}({},EarthSDK3,xbsj-base);
|