earthsdk3 3.0.8-beta.4 → 3.0.8-beta.5

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.
Files changed (32) hide show
  1. package/dist/earthsdk3.iife.js +6 -6
  2. package/dist/earthsdk3.js +1156 -531
  3. package/dist/earthsdk3.umd.cjs +7 -7
  4. package/dist/types/ESObjects/general/ESGeoExtrudedPolygon.d.ts +62 -2
  5. package/dist/types/ESObjects/general/ESGeoExtrudedPolygon.d.ts.map +1 -1
  6. package/dist/types/ESObjects/general/ESGeoLineString.d.ts +74 -2
  7. package/dist/types/ESObjects/general/ESGeoLineString.d.ts.map +1 -1
  8. package/dist/types/ESObjects/general/ESGeoPolygon.d.ts +66 -1
  9. package/dist/types/ESObjects/general/ESGeoPolygon.d.ts.map +1 -1
  10. package/dist/types/ESObjects/general/ESGeoRectangle.d.ts +94 -1
  11. package/dist/types/ESObjects/general/ESGeoRectangle.d.ts.map +1 -1
  12. package/dist/types/ESObjects/general/ESGeoWater.d.ts +76 -6
  13. package/dist/types/ESObjects/general/ESGeoWater.d.ts.map +1 -1
  14. package/dist/types/ESObjects/general/ESGltfModel.d.ts +284 -7
  15. package/dist/types/ESObjects/general/ESGltfModel.d.ts.map +1 -1
  16. package/dist/types/ESObjects/general/ESHeightLimitAnalysis.d.ts +85 -7
  17. package/dist/types/ESObjects/general/ESHeightLimitAnalysis.d.ts.map +1 -1
  18. package/dist/types/ESObjects/general/ESHeightMeasurement.d.ts +72 -2
  19. package/dist/types/ESObjects/general/ESHeightMeasurement.d.ts.map +1 -1
  20. package/dist/types/ESObjects/general/ESHole.d.ts +68 -2
  21. package/dist/types/ESObjects/general/ESHole.d.ts.map +1 -1
  22. package/dist/types/ESObjects/general/ESHuman.d.ts +97 -2
  23. package/dist/types/ESObjects/general/ESHuman.d.ts.map +1 -1
  24. package/dist/types/ESObjects/general/ESImageryLayer/index.d.ts +10 -2
  25. package/dist/types/ESObjects/general/ESImageryLayer/index.d.ts.map +1 -1
  26. package/dist/types/ESViewer/ESViewer.d.ts +25 -0
  27. package/dist/types/ESViewer/ESViewer.d.ts.map +1 -1
  28. package/dist/types/ESViewer/GeneralAnalysis/RollerShutterAnalysis.d.ts +8 -0
  29. package/dist/types/ESViewer/GeneralAnalysis/RollerShutterAnalysis.d.ts.map +1 -0
  30. package/dist/types/ESViewer/GeneralAnalysis/index.d.ts +8 -0
  31. package/dist/types/ESViewer/GeneralAnalysis/index.d.ts.map +1 -0
  32. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- var EarthSDK3=function(X){"use strict";var VC=Object.defineProperty;var BC=(X,Gi,$u)=>Gi in X?VC(X,Gi,{enumerable:!0,configurable:!0,writable:!0,value:$u}):X[Gi]=$u;var D=(X,Gi,$u)=>BC(X,typeof Gi!="symbol"?Gi+"":Gi,$u);function Gi(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function $u(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var Yc={exports:{}};/*! For license information please see xbsj-base.js.LICENSE.txt */var c0=Yc.exports,tp;function h0(){return tp||(tp=1,function(r,e){(function(t,n){r.exports=n()})(c0,()=>(()=>{var t={109:function(o,s,a){var c,f=this&&this.__extends||(c=function(_,y){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(h[u]=d[u])},c(_,y)},function(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function h(){this.constructor=_}c(_,y),_.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}),m=this&&this.__read||function(_,y){var h=typeof Symbol=="function"&&_[Symbol.iterator];if(!h)return _;var d,u,l=h.call(_),v=[];try{for(;(y===void 0||y-- >0)&&!(d=l.next()).done;)v.push(d.value)}catch(b){u={error:b}}finally{try{d&&!d.done&&(h=l.return)&&h.call(l)}finally{if(u)throw u.error}}return v};Object.defineProperty(s,"__esModule",{value:!0}),s.DebouncingDeprecated=void 0;var p=a(6891),g=a(1662),w=function(_){function y(h){h===void 0&&(h=300);var d=_.call(this,function(u){var l=u.progressFunc,v=(u.completeFunc,u.errorFunc,m((0,g.debounce)(function(){if(!d._lastDebounceValue)throw new Error("!this._lastDebounceValue");l([d._lastDebounceValue,d._debouncTimes]),d._debouncTimes=0},d._delayTime),2)),b=v[0],E=v[1];return d._d=b,function(){E()}})||this;return d._delayTime=h,d._debouncTimes=0,d}return f(y,_),Object.defineProperty(y.prototype,"delayTime",{get:function(){return this._delayTime},enumerable:!1,configurable:!0}),y.prototype.debounce=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];this.isRunning?(++this._debouncTimes,this._lastDebounceValue=h,this._d&&this._d()):console.warn("Debouncing is not running!")},y}(p.ProcessingDeprecated);s.DebouncingDeprecated=w},146:function(o,s,a){var c,f=this&&this.__extends||(c=function(v,b){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,S){E.__proto__=S}||function(E,S){for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&(E[P]=S[P])},c(v,b)},function(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function E(){this.constructor=v}c(v,b),v.prototype=b===null?Object.create(b):(E.prototype=b.prototype,new E)}),m=this&&this.__read||function(v,b){var E=typeof Symbol=="function"&&v[Symbol.iterator];if(!E)return v;var S,P,C=E.call(v),x=[];try{for(;(b===void 0||b-- >0)&&!(S=C.next()).done;)x.push(S.value)}catch(O){P={error:O}}finally{try{S&&!S.done&&(E=C.return)&&E.call(C)}finally{if(P)throw P.error}}return x};Object.defineProperty(s,"__esModule",{value:!0}),s.SceneObjectWithId=s.SceneObjectIdWatching=s.getSceneObjectReactFromId=s.SceneObjectFromId=void 0;var p=a(1662),g=a(2220),w=a(7372),_=a(3815),y=function(v){function b(E){var S=v.call(this)||this;S._id=E,S._sceneObject=S.disposeVar((0,w.react)(void 0)),S.dispose(function(){S._sceneObject.value=void 0});var P=g.SceneObject.getSceneObjById(S._id);return P&&(S._sceneObject.value=P),S.dispose(g.SceneObject.context.sceneObjCreatedEvent.disposableOn(function(C){C.id===S._id&&(S._sceneObject.value=C)})),S.dispose(g.SceneObject.context.sceneObjToDestroyEvent.disposableOn(function(C){C.id===S._id&&(S._sceneObject.value=void 0)})),S}return f(b,v),Object.defineProperty(b.prototype,"sceneObject",{get:function(){return this._sceneObject.value},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"sceneObjectChanged",{get:function(){return this._sceneObject.changed},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),b}(w.Destroyable);function h(v){var b=m((0,p.getReactFuncs)(v),3),E=b[0],S=(b[1],b[2]),P=(0,w.react)(void 0);return P.disposeVar(new _.ObjResettingWithEvent(S,function(){var C=E();if(C){var x=new y(C),O=function(){P.value=x.sceneObject};return O(),x.dispose(x.sceneObjectChanged.disposableOn(O)),x}P.value=void 0})),P}s.SceneObjectFromId=y,s.getSceneObjectReactFromId=h;var d=function(v){function b(E,S){var P=v.call(this)||this,C=P.disposeVar(h(E));return P.disposeVar(new _.ObjResettingWithEvent(C.changed,function(){var x=C.value;if(x)return S(x)})),P}return f(b,v),b}(w.Destroyable);s.SceneObjectIdWatching=d;var u=function(v){function b(E,S){var P=v.call(this)||this;P._id=E,P._sofi=P.disposeVar(new y(P._id));var C=function(){S.sceneObject=P._sofi.sceneObject};return C(),P.dispose(P._sofi.sceneObjectChanged.disposableOn(C)),P}return f(b,v),b}(w.Destroyable),l=function(v){function b(){var E=v.call(this)||this;return E._id=E.disposeVar((0,w.react)(void 0)),E._sceneObject=E.disposeVar((0,w.react)(void 0)),E._resetting=E.disposeVar(new _.ObjResettingWithEvent(E.idChanged,function(){var S=E.id;if(S!==void 0&&S!=="")return new u(S,E);E.sceneObject=void 0})),E}return f(b,v),Object.defineProperty(b.prototype,"id",{get:function(){return this._id.value},set:function(E){this._id.value=E},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"idChanged",{get:function(){return this._id.changed},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"sceneObject",{get:function(){return this._sceneObject.value},set:function(E){this._sceneObject.value=E},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"sceneObjectChanged",{get:function(){return this._sceneObject.changed},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"resetting",{get:function(){return this._resetting},enumerable:!1,configurable:!0}),b}(w.Destroyable);s.SceneObjectWithId=l},172:function(o,s,a){var c=this&&this.__createBinding||(Object.create?function(m,p,g,w){w===void 0&&(w=g);var _=Object.getOwnPropertyDescriptor(p,g);_&&!("get"in _?!p.__esModule:_.writable||_.configurable)||(_={enumerable:!0,get:function(){return p[g]}}),Object.defineProperty(m,w,_)}:function(m,p,g,w){w===void 0&&(w=g),m[w]=p[g]}),f=this&&this.__exportStar||function(m,p){for(var g in m)g==="default"||Object.prototype.hasOwnProperty.call(p,g)||c(p,m,g)};Object.defineProperty(s,"__esModule",{value:!0}),f(a(6928),s),f(a(7445),s)},200:function(o,s,a){var c,f=this&&this.__extends||(c=function(_,y){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(h[u]=d[u])},c(_,y)},function(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function h(){this.constructor=_}c(_,y),_.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)});Object.defineProperty(s,"__esModule",{value:!0}),s.DivPoi=void 0;var m=a(7372),p=a(7372),g=a(7324),w=function(_){function y(h,d){var u=_.call(this)||this;return u._customDivClass=h,u._divContainer=d,u._show=!1,u.dispose(function(){u.show=!1}),u}return f(y,_),y.prototype._updateDivPoi=function(){if(this._show){var h=this.floatDiv;h.element.parentElement||this._divContainer.appendChild(h.element)}else{var d=this._floatDiv;d&&d.element.parentElement&&this._divContainer.removeChild(d.element)}},Object.defineProperty(y.prototype,"show",{get:function(){return this._show},set:function(h){this._show!==h&&(this._show=h,this._updateDivPoi(),this._showChanged&&this._showChanged.emit(h))},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"floatDiv",{get:function(){var h=this;if(!this._floatDiv){var d=(0,g.getFloatDivPool)(this._customDivClass).create();this.dispose(function(){(0,g.getFloatDivPool)(h._customDivClass).destroy(d)}),this._floatDiv=d}return this._floatDiv},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"showChanged",{get:function(){return this._showChanged||(this._showChanged=new m.Event),this._showChanged},enumerable:!1,configurable:!0}),y}(p.Destroyable);s.DivPoi=w},312:(o,s)=>{var a;Object.defineProperty(s,"__esModule",{value:!0}),s.Intersect=void 0,(a=s.Intersect||(s.Intersect={})).OUTSIDE=-1,a.INTERSECTING=0,a.INSIDE=1},345:(o,s)=>{function a(c){var f=0|+c;if(f.toString()===c)return f}Object.defineProperty(s,"__esModule",{value:!0}),s.observeArray=void 0,s.observeArray=function(c,f){if(!Array.isArray(c))throw new Error("!Array.isArray(array)");return new Proxy(c,{set:function(m,p,g,w){var _=m;if(typeof p!="string")throw new Error("typeof key !== string");var y=a(p);if(y===void 0)return Reflect.set(_,p,g,w);if(y<0)throw new Error("n < 0 || n >= array.length");return!!f({type:_[y]===void 0?"insert":"update",index:y,oldValue:_[y],value:g})&&Reflect.set(m,p,g,w)},deleteProperty:function(m,p){var g=m;if(typeof p!="string")throw new Error("typeof key !== string");var w=a(p);if(w===void 0)return Reflect.deleteProperty(m,p);if(w<0||w>=g.length)throw new Error("n < 0 || n >= array.length");return!!f({type:"delete",index:w,oldValue:g[w],value:void 0})&&Reflect.deleteProperty(m,p)}})}},433:function(o,s){var a=this&&this.__read||function(f,m){var p=typeof Symbol=="function"&&f[Symbol.iterator];if(!p)return f;var g,w,_=p.call(f),y=[];try{for(;(m===void 0||m-- >0)&&!(g=_.next()).done;)y.push(g.value)}catch(h){w={error:h}}finally{try{g&&!g.done&&(p=_.return)&&p.call(_)}finally{if(w)throw w.error}}return y},c=this&&this.__spreadArray||function(f,m,p){if(p||arguments.length===2)for(var g,w=0,_=m.length;w<_;w++)!g&&w in m||(g||(g=Array.prototype.slice.call(m,0,w)),g[w]=m[w]);return f.concat(g||Array.prototype.slice.call(m))};Object.defineProperty(s,"__esModule",{value:!0}),s.magicStrToUint32=void 0,s.magicStrToUint32=function(f){if(f.length>4)throw new Error("getMagic error! str.length > 4");return function(m){return c([],a(m),!1).reverse().reduce(function(p,g){return(p<<=8)+g.codePointAt(0)},0)}(f)}},476:(o,s,a)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.some=void 0;var c=a(6301);s.some=function(f,m){return(0,c.forEachWithBreak)(f,function(p,g){return m(p,g)})}},507:function(o,s,a){var c,f=this&&this.__extends||(c=function(h,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&(u[v]=l[v])},c(h,d)},function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function u(){this.constructor=h}c(h,d),h.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)}),m=this&&this.__read||function(h,d){var u=typeof Symbol=="function"&&h[Symbol.iterator];if(!u)return h;var l,v,b=u.call(h),E=[];try{for(;(d===void 0||d-- >0)&&!(l=b.next()).done;)E.push(l.value)}catch(S){v={error:S}}finally{try{l&&!l.done&&(u=b.return)&&u.call(b)}finally{if(v)throw v.error}}return E};Object.defineProperty(s,"__esModule",{value:!0}),s.PointerClickDeprecated=void 0;var p=a(109),g=a(7372),w=a(2299),_=a(7372),y=function(h){function d(u){var l=h.call(this)||this;l._clickEvent=new _.Event,l._dbclickEvent=new _.Event,l._downEvent=new _.Event,l._upEvent=new _.Event,l._moveEvent=new _.Event,l._debouncing=new p.DebouncingDeprecated(300),l.dispose(function(){l._clickEvent.destroy(),l._dbclickEvent.destroy(),l._downEvent.destroy(),l._upEvent.destroy(),l._moveEvent.destroy(),l._debouncing.destroy()});var v=!1,b=[0,0],E=!1;l._debouncing.progressFunc=function(O){var I=m(O,2),N=m(I[0],3),T=N[0],R=N[1],A=N[2],B=I[1];B===1?l._clickEvent.emit(T,R,A):B>=2?l._dbclickEvent.emit(T,R,A):console.error("point click should not be here!")},l._debouncing.start(),l.dispose(function(){l._debouncing.isRunning&&l._debouncing.cancel(),l._debouncing.destroy()});var S=function(O){v=!0;var I=m((0,w.getDomEventCurrentTargetPos)(O),2),N=I[0],T=I[1];b[0]=N,b[1]=T,l._downEvent.emit(N,T,O)},P=function(O){var I=m((0,w.getDomEventCurrentTargetPos)(O),2),N=I[0],T=I[1];v&&!E&&l._debouncing.debounce(N,T,O),v=!1,E=!1,l._upEvent.emit(N,T,O)},C=function(O){var I=m((0,w.getDomEventCurrentTargetPos)(O),2),N=I[0],T=I[1];if(v&&!E){var R=m(b,2),A=R[0],B=R[1];(Math.abs(N-A)>3||Math.abs(T-B)>3)&&(E=!0)}l._moveEvent.emit(N,T,O)},x=function(){v=!1,E=!1};return u.addEventListener("pointerdown",S),u.addEventListener("pointerup",P),u.addEventListener("pointermove",C),u.addEventListener("pointerout",x),l.dispose(function(){u.removeEventListener("pointerdown",S),u.removeEventListener("pointerup",P),u.removeEventListener("pointermove",C),u.removeEventListener("pointerout",x)}),l}return f(d,h),Object.defineProperty(d.prototype,"clickEvent",{get:function(){return this._clickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"dbclickEvent",{get:function(){return this._dbclickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"downEvent",{get:function(){return this._downEvent},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"upEvent",{get:function(){return this._upEvent},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"moveEvent",{get:function(){return this._moveEvent},enumerable:!1,configurable:!0}),d}(g.Destroyable);s.PointerClickDeprecated=y},602:(o,s)=>{var a,c,f,m,p,g,w,_,y;Object.defineProperty(s,"__esModule",{value:!0}),s.Tween=void 0,(a=s.Tween||(s.Tween={})).Linear=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u*h/l+d},(y=a.Quad||(a.Quad={})).easeIn=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u*(h/=l)*h+d},y.easeOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),-u*(h/=l)*(h-2)+d},y.easeInOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),(h/=l/2)<1?u/2*h*h+d:-u/2*(--h*(h-2)-1)+d},(_=a.Cubic||(a.Cubic={})).easeIn=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u*(h/=l)*h*h+d},_.easeOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u*((h=h/l-1)*h*h+1)+d},_.easeInOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),(h/=l/2)<1?u/2*h*h*h+d:u/2*((h-=2)*h*h+2)+d},(w=a.Quart||(a.Quart={})).easeIn=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u*(h/=l)*h*h*h+d},w.easeOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),-u*((h=h/l-1)*h*h*h-1)+d},w.easeInOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),(h/=l/2)<1?u/2*h*h*h*h+d:-u/2*((h-=2)*h*h*h-2)+d},(g=a.Quint||(a.Quint={})).easeIn=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u*(h/=l)*h*h*h*h+d},g.easeOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u*((h=h/l-1)*h*h*h*h+1)+d},g.easeInOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),(h/=l/2)<1?u/2*h*h*h*h*h+d:u/2*((h-=2)*h*h*h*h+2)+d},(p=a.Sine||(a.Sine={})).easeIn=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),-u*Math.cos(h/l*(Math.PI/2))+u+d},p.easeOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u*Math.sin(h/l*(Math.PI/2))+d},p.easeInOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),-u/2*(Math.cos(Math.PI*h/l)-1)+d},(m=a.Expo||(a.Expo={})).easeIn=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),h==0?d:u*Math.pow(2,10*(h/l-1))+d},m.easeOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),h==l?d+u:u*(1-Math.pow(2,-10*h/l))+d},m.easeInOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),h==0?d:h==l?d+u:(h/=l/2)<1?u/2*Math.pow(2,10*(h-1))+d:u/2*(2-Math.pow(2,-10*--h))+d},(f=a.Circ||(a.Circ={})).easeIn=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),-u*(Math.sqrt(1-(h/=l)*h)-1)+d},f.easeOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u*Math.sqrt(1-(h=h/l-1)*h)+d},f.easeInOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),(h/=l/2)<1?-u/2*(Math.sqrt(1-h*h)-1)+d:u/2*(Math.sqrt(1-(h-=2)*h)+1)+d},(c=a.Bounce||(a.Bounce={})).easeIn=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u-a.Bounce.easeOut(l-h,0,u,l)+d},c.easeOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),(h/=l)<.36363636363636365?u*(7.5625*h*h)+d:h<.7272727272727273?u*(7.5625*(h-=.5454545454545454)*h+.75)+d:h<.9090909090909091?u*(7.5625*(h-=.8181818181818182)*h+.9375)+d:u*(7.5625*(h-=.9545454545454546)*h+.984375)+d},c.easeInOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),h<l/2?.5*a.Bounce.easeIn(2*h,0,u,l)+d:.5*a.Bounce.easeOut(2*h-l,0,u,l)+.5*u+d}},643:function(o,s,a){var c=this&&this.__read||function(g,w){var _=typeof Symbol=="function"&&g[Symbol.iterator];if(!_)return g;var y,h,d=_.call(g),u=[];try{for(;(w===void 0||w-- >0)&&!(y=d.next()).done;)u.push(y.value)}catch(l){h={error:l}}finally{try{y&&!y.done&&(_=d.return)&&_.call(d)}finally{if(h)throw h.error}}return u},f=this&&this.__spreadArray||function(g,w,_){if(_||arguments.length===2)for(var y,h=0,d=w.length;h<d;h++)!y&&h in w||(y||(y=Array.prototype.slice.call(w,0,h)),y[h]=w[h]);return g.concat(y||Array.prototype.slice.call(w))};Object.defineProperty(s,"__esModule",{value:!0}),s.cancelableFetchDeprecated=void 0;var m=a(5726);function p(g,w){for(var _=[],y=2;y<arguments.length;y++)_[y-2]=arguments[y];var h=new AbortController,d=h.signal,u=c(_,2),l=u[0],v=u[1];if(v!=null&&v.signal)throw console.error("init?.signal"),new Error("init?.signal");(v=v||{}).signal=d;var b=!1;(0,m._executeSetCancelFuncOrCancelResult)(g,function(){b=!0,h.abort()});var E=fetch(l,v);return w&&(E=E.then(function(S){if(!S.ok)return S;if(!S.body)throw Error("ReadableStream not yet supported in this browser.");var P=S.headers.get("content-length"),C=P?parseInt(P,10):0,x=0;return new Response(new ReadableStream({start:function(O){if(!S.body)throw new Error("!response.body");var I=S.body.getReader();(function N(){I.read().then(function(T){var R=T.done,A=T.value;if(R)O.close();else{if(!A)throw new Error("!value");if(!w)throw new Error("!progressFunc");x+=A.byteLength,w(x,C),O.enqueue(A),N()}}).catch(function(T){O.error(T)})})()}}),{status:S.status,statusText:S.statusText,headers:S.headers})}).catch(function(S){throw b?(S instanceof Error&&S.code!==20&&console.error("error.code !== 20"),console.log("fetching cancelled!"),new m.CancelError("fetching cancelled!")):(S instanceof Error&&S.code===20&&console.error("error.code === 20"),S)})),E}s.cancelableFetchDeprecated=function(){for(var g=[],w=0;w<arguments.length;w++)g[w]=arguments[w];if(g.length>=1){if(typeof g[0]=="function"||g[0]===void 0){var _={},y=p.apply(void 0,f([_],c(g),!1)),h=_.cancelFunc;if(!h)throw new Error("!cancelResult.cancelFunc");return[h,y]}return p.apply(void 0,f([],c(g),!1))}throw new Error("cancelableFetch args error!")}},709:(o,s,a)=>{a.r(s),a.d(s,{Observable:()=>z});const c="insert",f="update",m="delete",p="reverse",g="shuffle",w=Symbol("observable-meta-key"),_={async:1},y={path:1,pathsOf:1,pathsFrom:1},h={[w]:{value:null},observe:{value:function(j,L){if(typeof j!="function")throw new Error(`observer MUST be a function, got '${j}'`);const F=this[w].observers;if(F.some(G=>G[0]===j))console.warn("observer may be bound to an observable only once; will NOT rebind");else{let G;G=L?function(W){const V={};if(W.path!==void 0){if(typeof W.path!="string"||W.path==="")throw new Error('"path" option, if/when provided, MUST be a non-empty string');V.path=W.path}if(W.pathsOf!==void 0){if(W.path)throw new Error('"pathsOf" option MAY NOT be specified together with "path" option');if(typeof W.pathsOf!="string")throw new Error('"pathsOf" option, if/when provided, MUST be a string (MAY be empty)');V.pathsOf=W.pathsOf.split(".").filter(H=>H)}if(W.pathsFrom!==void 0){if(W.path||W.pathsOf)throw new Error('"pathsFrom" option MAY NOT be specified together with "path"/"pathsOf" option/s');if(typeof W.pathsFrom!="string"||W.pathsFrom==="")throw new Error('"pathsFrom" option, if/when provided, MUST be a non-empty string');V.pathsFrom=W.pathsFrom}const U=Object.keys(W).filter(H=>!y.hasOwnProperty(H));if(U.length)throw new Error(`'${U.join(", ")}' is/are not a valid observer option/s`);return V}(L):{},F.push([j,G])}}},unobserve:{value:function(){const j=this[w].observers;let L=j.length;if(L){let F=arguments.length;if(F)for(;F--;){let G=L;for(;G--;)j[G][0]===arguments[F]&&(j.splice(G,1),L--)}else j.splice(0)}}}},d=function(j,L){h[w].value=L;const F=Object.defineProperties({},h);for(const G of Object.keys(j))F[G]=P(j[G],G,L);return F},u=function(j,L){let F=0,G=j.length;h[w].value=L;const W=Object.defineProperties(new Array(G),h);for(;F<G;F++)W[F]=P(j[F],F,L);return W},l=function(j,L){return h[w].value=L,Object.defineProperties(j,h),j},v=function(j,L){let F=L;if(j.path){const G=j.path;F=L.filter(W=>W.path.join(".")===G)}else if(j.pathsOf){const G=j.pathsOf;F=L.filter(W=>W.path.length===G.length+1||W.path.length===G.length&&(W.type===p||W.type===g))}else if(j.pathsFrom){const G=j.pathsFrom;F=L.filter(W=>W.path.join(".").startsWith(G))}return F},b=function(j,L){try{j(L)}catch(F){console.error(`failed to notify listener ${j} with ${L}`,F)}},E=function(){const j=this.batches;this.batches=null;for(const[L,F]of j)b(L,F)},S=function(j,L){let F,G,W,V,U,H,J,Y=j;const re=L.length;do{for(F=Y.observers,U=F.length;U--;)if([G,W]=F[U],V=v(W,L),V.length)if(Y.options.async){Y.batches||(Y.batches=[],queueMicrotask(E.bind(Y)));let te=Y.batches.find(me=>me[0]===G);te||(te=[G,[]],Y.batches.push(te)),Array.prototype.push.apply(te[1],V)}else b(G,V);let ae;if(Y.parent){ae=new Array(re);for(let te=0;te<re;te++)J=L[te],H=[Y.ownKey,...J.path],ae[te]={type:J.type,path:H,value:J.value,oldValue:J.oldValue,object:J.object};L=ae,Y=Y.parent}else Y=null}while(Y)},P=function(j,L,F){return j&&typeof j=="object"?Array.isArray(j)?new B({target:j,ownKey:L,parent:F}).proxy:ArrayBuffer.isView(j)?new k({target:j,ownKey:L,parent:F}).proxy:j instanceof Date||j instanceof Blob||j instanceof Error?j:new A({target:j,ownKey:L,parent:F}).proxy:j},C=function(){const j=this[w],L=j.target;let F,G,W;for(L.reverse(),F=0,G=L.length;F<G;F++)if(W=L[F],W&&typeof W=="object"){const V=W[w];V&&(V.ownKey=F)}return S(j,[{type:p,path:[],object:this}]),this},x=function(j){const L=this[w],F=L.target;let G,W,V;for(F.sort(j),G=0,W=F.length;G<W;G++)if(V=F[G],V&&typeof V=="object"){const U=V[w];U&&(U.ownKey=G)}return S(L,[{type:g,path:[],object:this}]),this},O=function(j,L,F){const G=this[w],W=G.target,V=[],U=W.length,H=W.slice(0);if(L=L===void 0?0:L<0?Math.max(U+L,0):Math.min(L,U),F=F===void 0?U:F<0?Math.max(U+F,0):Math.min(F,U),L<U&&F>L){let J;W.fill(j,L,F);for(let Y,re,ae=L;ae<F;ae++)Y=W[ae],W[ae]=P(Y,ae,G),H.hasOwnProperty(ae)?(re=H[ae],re&&typeof re=="object"&&(J=re[w],J&&(re=J.detach())),V.push({type:f,path:[ae],value:W[ae],oldValue:re,object:this})):V.push({type:c,path:[ae],value:W[ae],object:this});S(G,V)}return this},I=function(j,L,F){const G=this[w],W=G.target,V=W.length;j=j<0?Math.max(V+j,0):j,L=L===void 0?0:L<0?Math.max(V+L,0):Math.min(L,V),F=F===void 0?V:F<0?Math.max(V+F,0):Math.min(F,V);const U=Math.min(F-L,V-j);if(j<V&&j!==L&&U>0){const H=W.slice(0),J=[];W.copyWithin(j,L,F);for(let Y,re,ae,te=j;te<j+U;te++)Y=W[te],Y&&typeof Y=="object"&&(Y=P(Y,te,G),W[te]=Y),re=H[te],re&&typeof re=="object"&&(ae=re[w],ae&&(re=ae.detach())),typeof Y!="object"&&Y===re||J.push({type:f,path:[te],value:Y,oldValue:re,object:this});S(G,J)}return this},N={pop:function(){const j=this[w],L=j.target,F=L.length-1;let G=L.pop();if(G&&typeof G=="object"){const W=G[w];W&&(G=W.detach())}return S(j,[{type:m,path:[F],oldValue:G,object:this}]),G},push:function(){const j=this[w],L=j.target,F=arguments.length,G=new Array(F),W=L.length;for(let H=0;H<F;H++)G[H]=P(arguments[H],W+H,j);const V=Reflect.apply(L.push,L,G),U=[];for(let H=W,J=L.length;H<J;H++)U[H-W]={type:c,path:[H],value:L[H],object:this};return S(j,U),V},shift:function(){const j=this[w],L=j.target;let F,G,W,V,U;for(F=L.shift(),F&&typeof F=="object"&&(U=F[w],U&&(F=U.detach())),G=0,W=L.length;G<W;G++)V=L[G],V&&typeof V=="object"&&(U=V[w],U&&(U.ownKey=G));return S(j,[{type:m,path:[0],oldValue:F,object:this}]),F},unshift:function(){const j=this[w],L=j.target,F=arguments.length,G=new Array(F);for(let H=0;H<F;H++)G[H]=P(arguments[H],H,j);const W=Reflect.apply(L.unshift,L,G);for(let H,J=0,Y=L.length;J<Y;J++)if(H=L[J],H&&typeof H=="object"){const re=H[w];re&&(re.ownKey=J)}const V=G.length,U=new Array(V);for(let H=0;H<V;H++)U[H]={type:c,path:[H],value:L[H],object:this};return S(j,U),W},reverse:C,sort:x,fill:O,copyWithin:I,splice:function(){const j=this[w],L=j.target,F=arguments.length,G=new Array(F),W=L.length;for(let fe=0;fe<F;fe++)G[fe]=P(arguments[fe],fe,j);const V=F===0?0:G[0]<0?W+G[0]:G[0],U=F<2?W-V:G[1],H=Math.max(F-2,0),J=Reflect.apply(L.splice,L,G),Y=L.length;let re,ae,te,me;for(let fe,Ce=0;Ce<Y;Ce++)fe=L[Ce],fe&&typeof fe=="object"&&(re=fe[w],re&&(re.ownKey=Ce));for(ae=0,te=J.length;ae<te;ae++)me=J[ae],me&&typeof me=="object"&&(re=me[w],re&&(J[ae]=re.detach()));const be=[];let ie;for(ie=0;ie<U;ie++)ie<H?be.push({type:f,path:[V+ie],value:L[V+ie],oldValue:J[ie],object:this}):be.push({type:m,path:[V+ie],oldValue:J[ie],object:this});for(;ie<H;ie++)be.push({type:c,path:[V+ie],value:L[V+ie],object:this});return S(j,be),J}},T={reverse:C,sort:x,fill:O,copyWithin:I,set:function(j,L){const F=this[w],G=F.target,W=j.length,V=G.slice(0);L=L||0,G.set(j,L);const U=new Array(W);for(let H=L;H<W+L;H++)U[H-L]={type:f,path:[H],value:G[H],oldValue:V[H],object:this};S(F,U)}};class R{constructor(L,F){const{target:G,parent:W,ownKey:V}=L;W&&V!==void 0?(this.parent=W,this.ownKey=V):(this.parent=null,this.ownKey=null);const U=F(G,this);this.observers=[],this.revocable=Proxy.revocable(U,this),this.proxy=this.revocable.proxy,this.target=U,this.options=this.processOptions(L.options)}processOptions(L){if(L){if(typeof L!="object")throw new Error(`Observable options if/when provided, MAY only be an object, got '${L}'`);const F=Object.keys(L).filter(G=>!_.hasOwnProperty(G));if(F.length)throw new Error(`'${F.join(", ")}' is/are not a valid Observable option/s`);return Object.assign({},L)}return{}}detach(){return this.parent=null,this.target}set(L,F,G){let W=L[F];if(G!==W){const V=P(G,F,this);if(L[F]=V,W&&typeof W=="object"){const H=W[w];H&&(W=H.detach())}const U=W===void 0?[{type:c,path:[F],value:V,object:this.proxy}]:[{type:f,path:[F],value:V,oldValue:W,object:this.proxy}];S(this,U)}return!0}deleteProperty(L,F){let G=L[F];if(delete L[F],G&&typeof G=="object"){const V=G[w];V&&(G=V.detach())}const W=[{type:m,path:[F],oldValue:G,object:this.proxy}];return S(this,W),!0}}class A extends R{constructor(L){super(L,d)}}class B extends R{constructor(L){super(L,u)}get(L,F){return N.hasOwnProperty(F)?N[F]:L[F]}}class k extends R{constructor(L){super(L,l)}get(L,F){return T.hasOwnProperty(F)?T[F]:L[F]}}class z{constructor(){throw new Error('Observable MAY NOT be created via constructor, see "Observable.from" API')}static from(L,F){if(L&&typeof L=="object"){if(L[w])return L;if(Array.isArray(L))return new B({target:L,ownKey:null,parent:null,options:F}).proxy;if(ArrayBuffer.isView(L))return new k({target:L,ownKey:null,parent:null,options:F}).proxy;if(L instanceof Date||L instanceof Blob||L instanceof Error)throw new Error(`${L} found to be one of a on-observable types`);return new A({target:L,ownKey:null,parent:null,options:F}).proxy}throw new Error("observable MAY ONLY be created from a non-null object")}static isObservable(L){return!(!L||!L[w])}}Object.freeze(z)},723:(o,s,a)=>{Object.defineProperty(s,"__esModule",{value:!0}),s._inverseTransformation=void 0;var c=a(2731);s._inverseTransformation=function(f,m){var p=f[0],g=f[1],w=f[2],_=f[4],y=f[5],h=f[6],d=f[8],u=f[9],l=f[10],v=f[12],b=f[13],E=f[14],S=-p*v-g*b-w*E,P=-_*v-y*b-h*E,C=-d*v-u*b-l*E;return(m=m||(0,c.createNumbers)(16))[0]=p,m[1]=_,m[2]=d,m[3]=0,m[4]=g,m[5]=y,m[6]=u,m[7]=0,m[8]=w,m[9]=h,m[10]=l,m[11]=0,m[12]=S,m[13]=P,m[14]=C,m[15]=1,m}},733:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.readBits=s.readArray=s.readUnsigned=s.readString=s.peekBytes=s.readBytes=s.peekByte=s.readByte=s.buildStream=void 0,s.buildStream=function(c){return{data:c,pos:0}},s.readByte=function(){return function(c){return c.data[c.pos++]}},s.peekByte=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(f){return f.data[f.pos+c]}};var a=function(c){return function(f){return f.data.subarray(f.pos,f.pos+=c)}};s.readBytes=a,s.peekBytes=function(c){return function(f){return f.data.subarray(f.pos,f.pos+c)}},s.readString=function(c){return function(f){return Array.from(a(c)(f)).map(function(m){return String.fromCharCode(m)}).join("")}},s.readUnsigned=function(c){return function(f){var m=a(2)(f);return c?(m[1]<<8)+m[0]:(m[0]<<8)+m[1]}},s.readArray=function(c,f){return function(m,p,g){for(var w=typeof f=="function"?f(m,p,g):f,_=a(c),y=new Array(w),h=0;h<w;h++)y[h]=_(m);return y}},s.readBits=function(c){return function(f){for(var m=function(w){return w.data[w.pos++]}(f),p=new Array(8),g=0;g<8;g++)p[7-g]=!!(m&1<<g);return Object.keys(c).reduce(function(w,_){var y=c[_];return y.length?w[_]=function(h,d,u){for(var l=0,v=0;v<u;v++)l+=h[d+v]&&Math.pow(2,u-v-1);return l}(p,y.index,y.length):w[_]=p[y.index],w},{})}}},773:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.defaultStartUpdateFunc=s.requestAnimationFrameTimeStampTest=void 0,s.requestAnimationFrameTimeStampTest=function(){return new Promise(function(a,c){var f=performance.now();requestAnimationFrame(function(m){return a(m>f)})})},s.defaultStartUpdateFunc=function(a){var c,f;return f=function(m){m=performance.now(),c=requestAnimationFrame(f),a(m)},c=requestAnimationFrame(f),function(){cancelAnimationFrame(c)}}},921:function(o,s,a){var c=this&&this.__read||function(w,_){var y=typeof Symbol=="function"&&w[Symbol.iterator];if(!y)return w;var h,d,u=y.call(w),l=[];try{for(;(_===void 0||_-- >0)&&!(h=u.next()).done;)l.push(h.value)}catch(v){d={error:v}}finally{try{h&&!h.done&&(y=u.return)&&y.call(u)}finally{if(d)throw d.error}}return l},f=this&&this.__spreadArray||function(w,_,y){if(y||arguments.length===2)for(var h,d=0,u=_.length;d<u;d++)!h&&d in _||(h||(h=Array.prototype.slice.call(_,0,d)),h[d]=_[d]);return w.concat(h||Array.prototype.slice.call(_))};Object.defineProperty(s,"__esModule",{value:!0}),s.createProcessingFromAsyncFuncWithStartValues=s.createProcessingFromAsyncFunc=s.asyncFuncToCancelablePromise=s.cancelFuncToCancelablePromise=s.createProcessingFromPromiseCreateFuncWithStartValues=s.createProcessingFromPromiseCreateFunc=void 0;var m=a(1101),p=a(1148),g=a(9651);s.createProcessingFromPromiseCreateFunc=function(w){return _=function(){for(var y=[],h=0;h<arguments.length;h++)y[h]=arguments[h];var d=w.apply(void 0,f([],c(y),!1));return(0,g.isPromiseCancelable)(d)?d:(0,g.createCancelablePromise)(d)},new p.Processing((0,p.createStartFuncFromAsyncFunc)(function(y){for(var h=[],d=1;d<arguments.length;d++)h[d-1]=arguments[d];return y.promise(_.apply(void 0,f([],c(h),!1)))}));var _},s.createProcessingFromPromiseCreateFuncWithStartValues=function(w){for(var _=[],y=1;y<arguments.length;y++)_[y-1]=arguments[y];return function(h){for(var d=[],u=1;u<arguments.length;u++)d[u-1]=arguments[u];return new p.Processing((0,p.createStartFuncFromAsyncFunc)(function(l){return l.promise(h.apply(void 0,f([],c(d),!1)))}))}(function(){var h=w.apply(void 0,f([],c(_),!1));return(0,g.isPromiseCancelable)(h)?h:(0,g.createCancelablePromise)(h)})},s.cancelFuncToCancelablePromise=function(w){var _,y=new Promise(function(h,d){_=function(){w(),d()}});return(0,g.setPromiseCancel)(y,_),y},s.asyncFuncToCancelablePromise=function(w){for(var _=[],y=1;y<arguments.length;y++)_[y-1]=arguments[y];var h=new m.CancelsManager,d=w.apply(void 0,f([h],c(_),!1)).finally(function(){return h.destroy()});return(0,g.setPromiseCancel)(d,h.cancel.bind(h)),d},s.createProcessingFromAsyncFunc=function(w){return new p.Processing((0,p.createStartFuncFromAsyncFunc)(w))},s.createProcessingFromAsyncFuncWithStartValues=function(w){for(var _=[],y=1;y<arguments.length;y++)_[y-1]=arguments[y];return new p.Processing((0,p.createStartFuncFromAsyncFunc)(function(h){return w.apply(void 0,f([h],c(_),!1))}))}},985:function(o,s,a){var c=this&&this.__createBinding||(Object.create?function(m,p,g,w){w===void 0&&(w=g);var _=Object.getOwnPropertyDescriptor(p,g);_&&!("get"in _?!p.__esModule:_.writable||_.configurable)||(_={enumerable:!0,get:function(){return p[g]}}),Object.defineProperty(m,w,_)}:function(m,p,g,w){w===void 0&&(w=g),m[w]=p[g]}),f=this&&this.__exportStar||function(m,p){for(var g in m)g==="default"||Object.prototype.hasOwnProperty.call(p,g)||c(p,m,g)};Object.defineProperty(s,"__esModule",{value:!0}),f(a(8466),s),f(a(3983),s),f(a(6424),s)},1023:function(o,s,a){var c,f=this&&this.__extends||(c=function(u,l){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(v[E]=b[E])},c(u,l)},function(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function v(){this.constructor=u}c(u,l),u.prototype=l===null?Object.create(l):(v.prototype=l.prototype,new v)}),m=this&&this.__read||function(u,l){var v=typeof Symbol=="function"&&u[Symbol.iterator];if(!v)return u;var b,E,S=v.call(u),P=[];try{for(;(l===void 0||l-- >0)&&!(b=S.next()).done;)P.push(b.value)}catch(C){E={error:C}}finally{try{b&&!b.done&&(v=S.return)&&v.call(S)}finally{if(E)throw E.error}}return P};Object.defineProperty(s,"__esModule",{value:!0}),s.PickColorMananger=s.uint8sToUint32=s.uint32ToUint8s=void 0;var p=a(7372),g=new ArrayBuffer(4),w=new Uint32Array(g),_=new Uint8Array(g);function y(u){if(u>=16777215)throw new Error("uint32 > 0xFFFFFF");return w[0]=u,[_[0],_[1],_[2]]}function h(u,l,v){return _[0]=u,_[1]=l,_[2]=v,_[3]=0,w[0]}s.uint32ToUint8s=y,s.uint8sToUint32=h;var d=function(u){function l(){var v=u!==null&&u.apply(this,arguments)||this;return v._pickColors=new Array(16777215),v._pickColorIndex=0,v}return f(l,u),l.prototype.reset=function(){for(var v=0;v<this._pickColorIndex;++v){var b=this._pickColors[v];if(!b)throw console.error("this._pickColors[i] should not be undefined!"),new Error("this._pickColors[i] should not be undefined!");b.poi=null,b.tag=""}this._pickColorIndex=0},l.prototype.createPickColor=function(v,b){var E=this._pickColorIndex;++this._pickColorIndex;var S=this._pickColors[E];S?(S.poi=v,S.tag=b):this._pickColors[E]={poi:v,tag:b};var P=m(y(E),3);return[P[0],P[1],P[2]]},l.prototype.getPickInfoFromColor=function(v,b,E){var S=h(v,b,E);if(S>=this._pickColorIndex)console.error("index >= this._pickColorIndex");else{var P=this._pickColors[S];if(P)return P;console.error("!this._pickColors[index]")}},l.prototype.destroyImp=function(){this.reset()},l}(p.Destroyable);s.PickColorMananger=d},1047:function(o,s,a){var c=this&&this.__values||function(g){var w=typeof Symbol=="function"&&Symbol.iterator,_=w&&g[w],y=0;if(_)return _.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&y>=g.length&&(g=void 0),{value:g&&g[y++],done:!g}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},f=this&&this.__read||function(g,w){var _=typeof Symbol=="function"&&g[Symbol.iterator];if(!_)return g;var y,h,d=_.call(g),u=[];try{for(;(w===void 0||w-- >0)&&!(y=d.next()).done;)u.push(y.value)}catch(l){h={error:l}}finally{try{y&&!y.done&&(_=d.return)&&_.call(d)}finally{if(h)throw h.error}}return u};Object.defineProperty(s,"__esModule",{value:!0}),s.createProps=void 0;var m=a(9359),p=a(3915);s.createProps=function(g){var w,_,y=new m.Destroyable,h=function(v,b){var E,S=y.disposeVar(b instanceof p.ReactiveVariable?b:(0,p.react)(b));Object.defineProperties(y,((E={})[v]={get:function(){return S.value},set:function(P){S.value=P}},E["".concat(v,"Changed")]={get:function(){return S.changed}},E))};try{for(var d=c(Object.entries(g)),u=d.next();!u.done;u=d.next()){var l=f(u.value,2);h(l[0],l[1])}}catch(v){w={error:v}}finally{try{u&&!u.done&&(_=d.return)&&_.call(d)}finally{if(w)throw w.error}}return y}},1085:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ObjPool=void 0;var a=function(){function c(f,m,p){p===void 0&&(p=!1),this._createDefaultFunc=f,this._destroyFunc=m,this._freeElements=[],this._usedElementsCount=0,this._nextCreateID=1,this._scratchObjs=[],p&&(this._usedElements=[])}return Object.defineProperty(c.prototype,"usedElementsCount",{get:function(){return this._usedElementsCount},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"freeElementsCount",{get:function(){return this._freeElements.length},enumerable:!1,configurable:!0}),c.prototype._getCreateID=function(){return this._nextCreateID++},c.prototype._create=function(){var f;return(f=this._freeElements.length>0?this._freeElements.pop():this._createDefaultFunc&&this._createDefaultFunc()||{})._cid=this._getCreateID(),f},c.prototype.create=function(){return this._create()},c.prototype.multiCreate=function(f){this._scratchObjs.length=0;for(var m=0;m<f;++m)this._scratchObjs.push(this._create());return this._scratchObjs},c.prototype._destroy=function(f){this._destroyFunc&&this._destroyFunc(f),f._cid=void 0},c.prototype.destroy=function(){for(var f=[],m=0;m<arguments.length;m++)f[m]=arguments[m];for(var p=f.length,g=0;g<p;++g)this._destroy(f[g])},c}();s.ObjPool=a},1101:function(o,s,a){var c,f=this&&this.__extends||(c=function(h,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&(u[v]=l[v])},c(h,d)},function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function u(){this.constructor=h}c(h,d),h.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)}),m=this&&this.__values||function(h){var d=typeof Symbol=="function"&&Symbol.iterator,u=d&&h[d],l=0;if(u)return u.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&l>=h.length&&(h=void 0),{value:h&&h[l++],done:!h}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(s,"__esModule",{value:!0}),s.CancelsManager=void 0;var p=a(7372),g=a(1662),w=a(4206),_=a(9651),y=function(h){function d(){var u=h.call(this)||this;return u._cancelled=!1,u._promiseSet=new Set,u}return f(d,h),Object.defineProperty(d.prototype,"disposer",{get:function(){return this._disposer=this._disposer||new p.Destroyable,this._disposer},enumerable:!1,configurable:!0}),d.prototype.destroyImp=function(){this.finally()},d.prototype.cancel=function(u){var l,v,b;if(!this._cancelled){this._cancelled=!0,(b=this._disposer)===null||b===void 0||b.destroy(),this._cancelError=u;try{for(var E=m(this._promiseSet),S=E.next();!S.done;S=E.next()){var P=S.value;(0,_.cancelPromise)(P)}}catch(C){l={error:C}}finally{try{S&&!S.done&&(v=E.return)&&v.call(E)}finally{if(l)throw l.error}}this._promiseSet.clear()}},Object.defineProperty(d.prototype,"cancelFuncsNum",{get:function(){return(0,g.reduce)(this._promiseSet,function(u){return u+1},0)},enumerable:!1,configurable:!0}),d.prototype.finally=function(){this._disposer&&!this._disposer.isDestroyed()&&this._disposer.destroy(),this._promiseSet.clear()},d.prototype.check=function(){var u;if(this._cancelled)throw(u=this._cancelError)!==null&&u!==void 0?u:new w.CancelError("cancel from CancelManager!")},d.prototype.promise=function(u){var l=this;return this._promiseSet.add(u),u.finally(function(){return l._promiseSet.delete(u),l.check()})},d.prototype.promiseAny=function(u){var l=this,v=[],b=u.map(function(E){return l._promiseSet.add(E),(0,_.isPromiseCancelable)(E)&&v.push((0,_.getPromiseCancel)(E)),E.finally(function(){return l._promiseSet.delete(E)})});return Promise.any(b).finally(function(){return v.forEach(function(E){return E(new w.CancelError("cancel from promiseAny!"))}),v.length=0})},d.prototype.promiseAll=function(u){var l=this,v=[],b=u.map(function(E){return l._promiseSet.add(E),(0,_.isPromiseCancelable)(E)&&v.push((0,_.getPromiseCancel)(E)),E.finally(function(){return l._promiseSet.delete(E)})});return Promise.all(b).finally(function(){return v.forEach(function(E){return E(new w.CancelError("cancel from promiseAll!"))}),v.length=0})},d.prototype.promiseRace=function(u){var l=this,v=[],b=u.map(function(E){return l._promiseSet.add(E),(0,_.isPromiseCancelable)(E)&&v.push((0,_.getPromiseCancel)(E)),E.finally(function(){return l._promiseSet.delete(E)})});return Promise.race(b).finally(function(){return v.forEach(function(E){return E(new w.CancelError("cancel from promiseRace!"))}),v.length=0})},d}(p.Destroyable);s.CancelsManager=y},1148:function(o,s,a){var c,f=this&&this.__extends||(c=function(u,l){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(v[E]=b[E])},c(u,l)},function(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function v(){this.constructor=u}c(u,l),u.prototype=l===null?Object.create(l):(v.prototype=l.prototype,new v)}),m=this&&this.__read||function(u,l){var v=typeof Symbol=="function"&&u[Symbol.iterator];if(!v)return u;var b,E,S=v.call(u),P=[];try{for(;(l===void 0||l-- >0)&&!(b=S.next()).done;)P.push(b.value)}catch(C){E={error:C}}finally{try{b&&!b.done&&(v=S.return)&&v.call(S)}finally{if(E)throw E.error}}return P},p=this&&this.__spreadArray||function(u,l,v){if(v||arguments.length===2)for(var b,E=0,S=l.length;E<S;E++)!b&&E in l||(b||(b=Array.prototype.slice.call(l,0,E)),b[E]=l[E]);return u.concat(b||Array.prototype.slice.call(l))};Object.defineProperty(s,"__esModule",{value:!0}),s.createStartFuncFromAsyncFunc=s.Processing=void 0;var g=a(7372),w=a(7372),_=a(4206),y=a(1101),h=a(9651),d=function(u){function l(v){var b=u.call(this)||this;return b._startFunc=v,b._status="Initial",b._runningId=-1,b.dispose(function(){return b.isRunning&&b.cancel()}),b}return f(l,u),Object.defineProperty(l.prototype,"errorEvent",{get:function(){return this._errorEvent||(this._errorEvent=new w.Event),this._errorEvent},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"completeEvent",{get:function(){return this._completeEvent||(this._completeEvent=new w.Event),this._completeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"errorFunc",{get:function(){return this._errorFunc},set:function(v){this._errorFunc!==v&&(this._errorFunc=v)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"completeFunc",{get:function(){return this._completeFunc},set:function(v){this._completeFunc!==v&&(this._completeFunc=v)},enumerable:!1,configurable:!0}),l.prototype.start=function(){for(var v=this,b=[],E=0;E<arguments.length;E++)b[E]=arguments[E];if(this._status==="Initial"){var S=++this._runningId;this._status="Running",this._cancelFunc=this._startFunc.apply(this,p([{completeFunc:function(P){var C;S===v._runningId&&v._status==="Running"&&(v._status="Completed",v._completeFunc&&v._completeFunc(P),(C=v._completeEvent)===null||C===void 0||C.emit(P))},errorFunc:function(P){var C;S===v._runningId&&v._status==="Running"&&(v._status="Error",v._errorFunc&&v._errorFunc(P),(C=v._errorEvent)===null||C===void 0||C.emit(P))},runningingID:S}],m(b),!1))}},l.prototype.cancel=function(v){var b;if(v===void 0&&(v=new _.CancelError("")),this._status==="Running"){if(!this._cancelFunc)throw new Error("!this._cancelFunc");this._status="Error",this._errorFunc&&this._errorFunc(v),(b=this._errorEvent)===null||b===void 0||b.emit(v),this._cancelFunc(v),this._cancelFunc=void 0}},l.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(l.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isInitial",{get:function(){return this._status==="Initial"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isRunning",{get:function(){return this._status==="Running"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isCompleted",{get:function(){return this._status==="Completed"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isError",{get:function(){return this._status==="Error"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"runningId",{get:function(){return this._runningId},enumerable:!1,configurable:!0}),l.prototype.restart=function(v){v===void 0&&(v=new _.CancelError(""));for(var b=[],E=1;E<arguments.length;E++)b[E-1]=arguments[E];this.isRunning&&this.cancel(v),this.reset(),this.start.apply(this,p([],m(b),!1))},l.prototype.restartIfNotRunning=function(){for(var v=[],b=0;b<arguments.length;b++)v[b]=arguments[b];this.isRunning||(this.reset(),this.start.apply(this,p([],m(v),!1)))},l}(g.Destroyable);s.Processing=d,s.createStartFuncFromAsyncFunc=function(u){return function(l){for(var v=[],b=1;b<arguments.length;b++)v[b-1]=arguments[b];var E=new y.CancelsManager,S=l.completeFunc,P=l.errorFunc,C=u.apply(void 0,p([E],m(v),!1)).then(S).catch(P).finally(function(){return E.destroy()});return(0,h.setPromiseCancel)(C,E.cancel.bind(E)),function(x){return(0,h.cancelPromise)(C,x)}}}},1233:(o,s,a)=>{a.r(s),a.d(s,{LRUMap:()=>m});const c=Symbol("newer"),f=Symbol("older");function m(y,h){typeof y!="number"&&(h=y,y=0),this.size=0,this.limit=y,this.oldest=this.newest=void 0,this._keymap=new Map,h&&(this.assign(h),y<1&&(this.limit=this.size))}function p(y,h){this.key=y,this.value=h,this[c]=void 0,this[f]=void 0}function g(y){this.entry=y}function w(y){this.entry=y}function _(y){this.entry=y}m.prototype._markEntryAsUsed=function(y){y!==this.newest&&(y[c]&&(y===this.oldest&&(this.oldest=y[c]),y[c][f]=y[f]),y[f]&&(y[f][c]=y[c]),y[c]=void 0,y[f]=this.newest,this.newest&&(this.newest[c]=y),this.newest=y)},m.prototype.assign=function(y){let h,d=this.limit||Number.MAX_VALUE;this._keymap.clear();let u=y[Symbol.iterator]();for(let l=u.next();!l.done;l=u.next()){let v=new p(l.value[0],l.value[1]);if(this._keymap.set(v.key,v),h?(h[c]=v,v[f]=h):this.oldest=v,h=v,d--==0)throw new Error("overflow")}this.newest=h,this.size=this._keymap.size},m.prototype.get=function(y){var h=this._keymap.get(y);if(h)return this._markEntryAsUsed(h),h.value},m.prototype.set=function(y,h){var d=this._keymap.get(y);return d?(d.value=h,this._markEntryAsUsed(d),this):(this._keymap.set(y,d=new p(y,h)),this.newest?(this.newest[c]=d,d[f]=this.newest):this.oldest=d,this.newest=d,++this.size,this.size>this.limit&&this.shift(),this)},m.prototype.shift=function(){var y=this.oldest;if(y)return this.oldest[c]?(this.oldest=this.oldest[c],this.oldest[f]=void 0):(this.oldest=void 0,this.newest=void 0),y[c]=y[f]=void 0,this._keymap.delete(y.key),--this.size,[y.key,y.value]},m.prototype.find=function(y){let h=this._keymap.get(y);return h?h.value:void 0},m.prototype.has=function(y){return this._keymap.has(y)},m.prototype.delete=function(y){var h=this._keymap.get(y);if(h)return this._keymap.delete(h.key),h[c]&&h[f]?(h[f][c]=h[c],h[c][f]=h[f]):h[c]?(h[c][f]=void 0,this.oldest=h[c]):h[f]?(h[f][c]=void 0,this.newest=h[f]):this.oldest=this.newest=void 0,this.size--,h.value},m.prototype.clear=function(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()},g.prototype[Symbol.iterator]=function(){return this},g.prototype.next=function(){let y=this.entry;return y?(this.entry=y[c],{done:!1,value:[y.key,y.value]}):{done:!0,value:void 0}},w.prototype[Symbol.iterator]=function(){return this},w.prototype.next=function(){let y=this.entry;return y?(this.entry=y[c],{done:!1,value:y.key}):{done:!0,value:void 0}},_.prototype[Symbol.iterator]=function(){return this},_.prototype.next=function(){let y=this.entry;return y?(this.entry=y[c],{done:!1,value:y.value}):{done:!0,value:void 0}},m.prototype.keys=function(){return new w(this.oldest)},m.prototype.values=function(){return new _(this.oldest)},m.prototype.entries=function(){return this},m.prototype[Symbol.iterator]=function(){return new g(this.oldest)},m.prototype.forEach=function(y,h){typeof h!="object"&&(h=this);let d=this.oldest;for(;d;)y.call(h,d.value,d.key,this),d=d[c]},m.prototype.toJSON=function(){for(var y=new Array(this.size),h=0,d=this.oldest;d;)y[h++]={key:d.key,value:d.value},d=d[c];return y},m.prototype.toString=function(){for(var y="",h=this.oldest;h;)y+=String(h.key)+":"+h.value,(h=h[c])&&(y+=" < ");return y}},1291:function(o,s,a){var c,f=this&&this.__extends||(c=function(v,b){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,S){E.__proto__=S}||function(E,S){for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&(E[P]=S[P])},c(v,b)},function(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function E(){this.constructor=v}c(v,b),v.prototype=b===null?Object.create(b):(E.prototype=b.prototype,new E)}),m=this&&this.__awaiter||function(v,b,E,S){return new(E||(E=Promise))(function(P,C){function x(N){try{I(S.next(N))}catch(T){C(T)}}function O(N){try{I(S.throw(N))}catch(T){C(T)}}function I(N){var T;N.done?P(N.value):(T=N.value,T instanceof E?T:new E(function(R){R(T)})).then(x,O)}I((S=S.apply(v,b||[])).next())})},p=this&&this.__generator||function(v,b){var E,S,P,C,x={label:0,sent:function(){if(1&P[0])throw P[1];return P[1]},trys:[],ops:[]};return C={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function O(I){return function(N){return function(T){if(E)throw new TypeError("Generator is already executing.");for(;C&&(C=0,T[0]&&(x=0)),x;)try{if(E=1,S&&(P=2&T[0]?S.return:T[0]?S.throw||((P=S.return)&&P.call(S),0):S.next)&&!(P=P.call(S,T[1])).done)return P;switch(S=0,P&&(T=[2&T[0],P.value]),T[0]){case 0:case 1:P=T;break;case 4:return x.label++,{value:T[1],done:!1};case 5:x.label++,S=T[1],T=[0];continue;case 7:T=x.ops.pop(),x.trys.pop();continue;default:if(!((P=(P=x.trys).length>0&&P[P.length-1])||T[0]!==6&&T[0]!==2)){x=0;continue}if(T[0]===3&&(!P||T[1]>P[0]&&T[1]<P[3])){x.label=T[1];break}if(T[0]===6&&x.label<P[1]){x.label=P[1],P=T;break}if(P&&x.label<P[2]){x.label=P[2],x.ops.push(T);break}P[2]&&x.ops.pop(),x.trys.pop();continue}T=b.call(v,x)}catch(R){T=[6,R],S=0}finally{E=P=0}if(5&T[0])throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}([I,N])}}};Object.defineProperty(s,"__esModule",{value:!0}),s.FlvProcessing=s.FlvJsLoading=void 0;var g=a(1662),w=a(8106),_=a(2220),y=a(5819),h=function(v){function b(){var E=v.call(this)||this;return E._loading=!1,E._loadedEvent=E.disposeVar(new g.Event),E._loaded=!1,E._loadedPromise=new Promise(function(S){E._loadedPromiseResolve=S}),E._processing=E.disposeVar((0,y.createProcessingFromAsyncFunc)(function(S){return m(E,void 0,void 0,function(){var P;return p(this,function(C){switch(C.label){case 0:return this._loading=!0,window.flvjs?(console.info("可能系统已经加载flvjs,此处不再加载!"),[3,3]):[3,1];case 1:return P=_.SceneObject.context.getStrFromEnv(b.path),[4,S.promise((0,g.loadJs)(P))];case 2:C.sent(),C.label=3;case 3:return this._loading=!1,this._loaded=!0,this._loadedEvent.emit(),this._loadedPromiseResolve(),[2]}})})})),E._processingStart=E._processing.start(),E}return f(b,v),Object.defineProperty(b.prototype,"loading",{get:function(){return this._loading},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"loadedEvent",{get:function(){return this._loadedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"loaded",{get:function(){return this._loaded},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"loadedPromise",{get:function(){return this._loadedPromise},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),b.instance=function(){return b._instance=b._instance||new b,b._instance},b.path="${xr-utils-script-dir}/xr-static/xr-utils/flvjs/1.6.2/flv.min.js",b}(g.Destroyable);s.FlvJsLoading=h;var d=function(v){function b(E,S){var P=v.call(this)||this;P._complexImage=E,P._videoSrc=S;var C,x=document.createElement("video");return x.src=P._videoSrc,x.style.position="absolute",x.style.top="0px",x.style.left="0px",x.style.zIndex="-100",x.style.visibility="hidden",(C=function(){x.crossOrigin=P._complexImage.crossOrigin})(),P.dispose(P._complexImage.crossOriginChanged.disposableOn(C)),(C=function(){x.autoplay=P._complexImage.autoplay})(),P.dispose(P._complexImage.autoplayChanged.disposableOn(C)),(C=function(){x.loop=P._complexImage.loop})(),P.dispose(P._complexImage.loopChanged.disposableOn(C)),x.muted=!0,document.body.appendChild(x),P._element=x,P.dispose(function(){return document.body.removeChild(x)}),P}return f(b,v),Object.defineProperty(b.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),b}(g.Destroyable),u=function(v){function b(E,S){var P=v.call(this)||this;return P._complexImage=E,P._videoSrc=S,P._videoDom=P.disposeVar(new d(P._complexImage,"")),P._processing=P.disposeVar((0,y.createProcessingFromAsyncFunc)(function(C){return m(P,void 0,void 0,function(){var x,O,I,N;return p(this,function(T){switch(T.label){case 0:return x=this.videoSrc,O=h.instance(),[4,C.promise(O.loadedPromise)];case 1:return T.sent(),I=window.flvjs,N=this.element,[4,(0,w.step)(C,function(){return new Promise(function(R,A){if(I.isSupported()){var B=I.createPlayer({type:"flv",url:x});B.attachMediaElement(N),B.load(),B.play(),N.xbsjFlvPlayer=B}else A("flvjs不支持!")})})];case 2:return T.sent(),[2]}})})})),P._processingStartup=P._processing.start(),P}return f(b,v),Object.defineProperty(b.prototype,"videoSrc",{get:function(){return this._videoSrc},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"element",{get:function(){return this.videoDom.element},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),b}(g.Destroyable),l=function(v){function b(E,S){var P=v.call(this)||this;return P._complexImage=E,P._imageUri=S,P._videoDom=P.disposeVar(new u(P._complexImage,P._imageUri)),P._update=P.disposeVar((0,w.createAnimateFrameWithStartValues)(function(){return P.update()})),P._updateStart=P._update.start(),P}return f(b,v),Object.defineProperty(b.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"videoElement",{get:function(){return this._videoDom.element},enumerable:!1,configurable:!0}),b.prototype.update=function(){if(!(this.videoElement.readyState<2)){var E=this._complexImage,S=this.videoElement,P=S.videoWidth,C=S.videoHeight;E.size=[P,C],E.pixelFormat="RGBA",E.copyTexture({source:this.videoElement})}},b}(g.Destroyable);s.FlvProcessing=l},1354:(o,s,a)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.forEach=void 0;var c=a(8144);s.forEach=function(f,m){for(var p=(0,c.getIterator)(f),g=0;;){var w=p.next(),_=w.done,y=w.value;if(_)break;m(y,g++)}}},1378:function(o,s,a){var c,f=this&&this.__extends||(c=function(h,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&(u[v]=l[v])},c(h,d)},function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function u(){this.constructor=h}c(h,d),h.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)});Object.defineProperty(s,"__esModule",{value:!0}),s.DivBoxPicker=s.BoxPicker=void 0;var m=a(7372),p=a(7372),g=a(507),w=a(7372),_=function(h){function d(){var u=h.call(this)||this;u._pickRectEvent=u.disposeVar(new p.Event),u._updateRectEvent=u.disposeVar(new p.Event),u._pointerActionEvent=u.disposeVar(new p.Event),u._active=u.disposeVar((0,w.react)(!1)),u._pickRect={left0:0,top0:0,left1:0,top1:0};var l=0,v=0,b=0,E=0;return u.dispose(u._pointerActionEvent.disposableOn(function(S){var P=S.type,C=S.left,x=S.top;P==="PointerDown"?(u._active.value=!0,l=C,v=x,b=C,E=x,u._setPickRect({left0:l,top0:v,left1:b,top1:E}),u._updateRectEvent.emit(u._pickRect)):P==="PointerMove"?u._active.value&&(b=C,E=x,u._setPickRect({left0:l,top0:v,left1:b,top1:E}),u._updateRectEvent.emit(u._pickRect)):P==="PointerUp"&&u._active.value&&(u._active.value=!1,b=C,E=x,u._setPickRect({left0:l,top0:v,left1:b,top1:E}),u._updateRectEvent.emit(u._pickRect),u._pickRectEvent.emit(u._pickRect))})),u}return f(d,h),d.prototype._setPickRect=function(u){var l=u.left0,v=u.left1,b=u.top0,E=u.top1;this._pickRect.left0=l,this._pickRect.left1=v,this._pickRect.top0=b,this._pickRect.top1=E},d.prototype.pointerDown=function(u,l){this._pointerActionEvent.emit({type:"PointerDown",left:u,top:l})},d.prototype.pointerMove=function(u,l){this._pointerActionEvent.emit({type:"PointerMove",left:u,top:l})},d.prototype.pointerUp=function(u,l){this._pointerActionEvent.emit({type:"PointerUp",left:u,top:l})},d.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(d.prototype,"activeEvent",{get:function(){return this._active.changed},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"updateRectEvent",{get:function(){return this._updateRectEvent},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"pickRectEvent",{get:function(){return this._pickRectEvent},enumerable:!1,configurable:!0}),d.getLeftTopAndSize=function(u,l){l=l||{left:0,top:0,width:0,height:0,forward:!0};var v=u.left0,b=u.top0,E=u.left1,S=u.top1;return l.width=Math.abs(v-E),l.height=Math.abs(b-S),l.left=Math.min(v,E),l.top=Math.min(b,S),l.forward=E>v,l},d.contains=function(u,l,v){var b=v.left,E=v.top,S=v.width,P=v.height;return u>b&&u<=b+S&&l>=E&&l<=E+P},d}(m.Destroyable);s.BoxPicker=_;var y=function(h){function d(u){var l=h.call(this)||this,v=l.disposeVar(new g.PointerClickDeprecated(u));l.dispose(v.downEvent.disposableOn(function(P,C,x){return x.altKey&&l.pointerDown(P,C)})),l.dispose(v.moveEvent.disposableOn(function(P,C){return l.pointerMove(P,C)})),l.dispose(v.upEvent.disposableOn(function(P,C){return l.pointerUp(P,C)}));var b=document.createElement("div");b.style.backgroundColor="rgba(0, 0, 0, 0)",b.style.border="2px dashed red",b.style.position="absolute",b.style.boxSizing="border-box",b.style.pointerEvents="none",b.style.height="0px",b.style.width="0px",b.style.left="0px",b.style.top="0px",b.style.display="none",u.appendChild(b),l.dispose(function(){return u.removeChild(b)}),l.dispose(l.activeEvent.disposableOn(function(P){b.style.display=P?"block":"none"}));var E=function(){l.reset()};u.addEventListener("contextmenu",E),l.dispose(function(){return u.removeEventListener("contextmenu",E)});var S={left:0,top:0,width:0,height:0,forward:!1};return l.dispose(l.updateRectEvent.disposableOn(function(P){if(_.getLeftTopAndSize(P,S)){var C=S.left,x=S.top,O=S.width,I=S.height;b.style.height="".concat(0|I,"px"),b.style.width="".concat(0|O,"px"),b.style.left="".concat(0|C,"px"),b.style.top="".concat(0|x,"px")}})),l}return f(d,h),d}(_);s.DivBoxPicker=y},1412:function(o,s,a){var c=this&&this.__createBinding||(Object.create?function(m,p,g,w){w===void 0&&(w=g);var _=Object.getOwnPropertyDescriptor(p,g);_&&!("get"in _?!p.__esModule:_.writable||_.configurable)||(_={enumerable:!0,get:function(){return p[g]}}),Object.defineProperty(m,w,_)}:function(m,p,g,w){w===void 0&&(w=g),m[w]=p[g]}),f=this&&this.__exportStar||function(m,p){for(var g in m)g==="default"||Object.prototype.hasOwnProperty.call(p,g)||c(p,m,g)};Object.defineProperty(s,"__esModule",{value:!0}),f(a(7963),s),f(a(1851),s),f(a(9409),s),f(a(3022),s),f(a(7014),s),f(a(3096),s),f(a(5925),s),f(a(5210),s),f(a(1291),s)},1545:function(o,s,a){var c,f=this&&this.__extends||(c=function(g,w){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,y){_.__proto__=y}||function(_,y){for(var h in y)Object.prototype.hasOwnProperty.call(y,h)&&(_[h]=y[h])},c(g,w)},function(g,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");function _(){this.constructor=g}c(g,w),g.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)});Object.defineProperty(s,"__esModule",{value:!0}),s.RefsManager=void 0;var m=a(1662),p=function(g){function w(_){var y=g.call(this)||this;y._sceneObjRefs=new Map,y._refs={},y._refsChagned=y.disposeVar(new m.Event);var h=function(d,u,l){if(l){var v=y.getLastSceneObject(l);if(S=y._sceneObjRefs.get(l)){var b=S.indexOf(d);b===-1?console.warn("this._sceneObjRefs中不存在当前对象(id: ".concat(d.id," type: ").concat(d.typeName,")!可能系统存在逻辑问题")):(S.splice(b,1),S.length===0&&y._sceneObjRefs.delete(l))}else console.warn("this._sceneObjRefs中不存在ref(".concat(l,"), 可能系统存在逻辑问题"));var E=y.getLastSceneObject(l);y._refs[l]=E,y._refsChagned.emit(E,v)}var S;u&&(v=y.getLastSceneObject(u),(S=y._sceneObjRefs.get(u))?(S.push(d),S.length>0&&console.warn("同时存在多个ref".concat(u,`相同的场景对象!
1
+ var EarthSDK3=function(X){"use strict";var zC=Object.defineProperty;var UC=(X,Gi,$u)=>Gi in X?zC(X,Gi,{enumerable:!0,configurable:!0,writable:!0,value:$u}):X[Gi]=$u;var D=(X,Gi,$u)=>UC(X,typeof Gi!="symbol"?Gi+"":Gi,$u);function Gi(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function $u(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var Yc={exports:{}};/*! For license information please see xbsj-base.js.LICENSE.txt */var c0=Yc.exports,tp;function h0(){return tp||(tp=1,function(r,e){(function(t,n){r.exports=n()})(c0,()=>(()=>{var t={109:function(o,s,a){var c,f=this&&this.__extends||(c=function(_,y){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(h[u]=d[u])},c(_,y)},function(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function h(){this.constructor=_}c(_,y),_.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)}),m=this&&this.__read||function(_,y){var h=typeof Symbol=="function"&&_[Symbol.iterator];if(!h)return _;var d,u,l=h.call(_),v=[];try{for(;(y===void 0||y-- >0)&&!(d=l.next()).done;)v.push(d.value)}catch(b){u={error:b}}finally{try{d&&!d.done&&(h=l.return)&&h.call(l)}finally{if(u)throw u.error}}return v};Object.defineProperty(s,"__esModule",{value:!0}),s.DebouncingDeprecated=void 0;var p=a(6891),g=a(1662),w=function(_){function y(h){h===void 0&&(h=300);var d=_.call(this,function(u){var l=u.progressFunc,v=(u.completeFunc,u.errorFunc,m((0,g.debounce)(function(){if(!d._lastDebounceValue)throw new Error("!this._lastDebounceValue");l([d._lastDebounceValue,d._debouncTimes]),d._debouncTimes=0},d._delayTime),2)),b=v[0],E=v[1];return d._d=b,function(){E()}})||this;return d._delayTime=h,d._debouncTimes=0,d}return f(y,_),Object.defineProperty(y.prototype,"delayTime",{get:function(){return this._delayTime},enumerable:!1,configurable:!0}),y.prototype.debounce=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];this.isRunning?(++this._debouncTimes,this._lastDebounceValue=h,this._d&&this._d()):console.warn("Debouncing is not running!")},y}(p.ProcessingDeprecated);s.DebouncingDeprecated=w},146:function(o,s,a){var c,f=this&&this.__extends||(c=function(v,b){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,S){E.__proto__=S}||function(E,S){for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&(E[P]=S[P])},c(v,b)},function(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function E(){this.constructor=v}c(v,b),v.prototype=b===null?Object.create(b):(E.prototype=b.prototype,new E)}),m=this&&this.__read||function(v,b){var E=typeof Symbol=="function"&&v[Symbol.iterator];if(!E)return v;var S,P,C=E.call(v),x=[];try{for(;(b===void 0||b-- >0)&&!(S=C.next()).done;)x.push(S.value)}catch(O){P={error:O}}finally{try{S&&!S.done&&(E=C.return)&&E.call(C)}finally{if(P)throw P.error}}return x};Object.defineProperty(s,"__esModule",{value:!0}),s.SceneObjectWithId=s.SceneObjectIdWatching=s.getSceneObjectReactFromId=s.SceneObjectFromId=void 0;var p=a(1662),g=a(2220),w=a(7372),_=a(3815),y=function(v){function b(E){var S=v.call(this)||this;S._id=E,S._sceneObject=S.disposeVar((0,w.react)(void 0)),S.dispose(function(){S._sceneObject.value=void 0});var P=g.SceneObject.getSceneObjById(S._id);return P&&(S._sceneObject.value=P),S.dispose(g.SceneObject.context.sceneObjCreatedEvent.disposableOn(function(C){C.id===S._id&&(S._sceneObject.value=C)})),S.dispose(g.SceneObject.context.sceneObjToDestroyEvent.disposableOn(function(C){C.id===S._id&&(S._sceneObject.value=void 0)})),S}return f(b,v),Object.defineProperty(b.prototype,"sceneObject",{get:function(){return this._sceneObject.value},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"sceneObjectChanged",{get:function(){return this._sceneObject.changed},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),b}(w.Destroyable);function h(v){var b=m((0,p.getReactFuncs)(v),3),E=b[0],S=(b[1],b[2]),P=(0,w.react)(void 0);return P.disposeVar(new _.ObjResettingWithEvent(S,function(){var C=E();if(C){var x=new y(C),O=function(){P.value=x.sceneObject};return O(),x.dispose(x.sceneObjectChanged.disposableOn(O)),x}P.value=void 0})),P}s.SceneObjectFromId=y,s.getSceneObjectReactFromId=h;var d=function(v){function b(E,S){var P=v.call(this)||this,C=P.disposeVar(h(E));return P.disposeVar(new _.ObjResettingWithEvent(C.changed,function(){var x=C.value;if(x)return S(x)})),P}return f(b,v),b}(w.Destroyable);s.SceneObjectIdWatching=d;var u=function(v){function b(E,S){var P=v.call(this)||this;P._id=E,P._sofi=P.disposeVar(new y(P._id));var C=function(){S.sceneObject=P._sofi.sceneObject};return C(),P.dispose(P._sofi.sceneObjectChanged.disposableOn(C)),P}return f(b,v),b}(w.Destroyable),l=function(v){function b(){var E=v.call(this)||this;return E._id=E.disposeVar((0,w.react)(void 0)),E._sceneObject=E.disposeVar((0,w.react)(void 0)),E._resetting=E.disposeVar(new _.ObjResettingWithEvent(E.idChanged,function(){var S=E.id;if(S!==void 0&&S!=="")return new u(S,E);E.sceneObject=void 0})),E}return f(b,v),Object.defineProperty(b.prototype,"id",{get:function(){return this._id.value},set:function(E){this._id.value=E},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"idChanged",{get:function(){return this._id.changed},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"sceneObject",{get:function(){return this._sceneObject.value},set:function(E){this._sceneObject.value=E},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"sceneObjectChanged",{get:function(){return this._sceneObject.changed},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"resetting",{get:function(){return this._resetting},enumerable:!1,configurable:!0}),b}(w.Destroyable);s.SceneObjectWithId=l},172:function(o,s,a){var c=this&&this.__createBinding||(Object.create?function(m,p,g,w){w===void 0&&(w=g);var _=Object.getOwnPropertyDescriptor(p,g);_&&!("get"in _?!p.__esModule:_.writable||_.configurable)||(_={enumerable:!0,get:function(){return p[g]}}),Object.defineProperty(m,w,_)}:function(m,p,g,w){w===void 0&&(w=g),m[w]=p[g]}),f=this&&this.__exportStar||function(m,p){for(var g in m)g==="default"||Object.prototype.hasOwnProperty.call(p,g)||c(p,m,g)};Object.defineProperty(s,"__esModule",{value:!0}),f(a(6928),s),f(a(7445),s)},200:function(o,s,a){var c,f=this&&this.__extends||(c=function(_,y){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(h[u]=d[u])},c(_,y)},function(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function h(){this.constructor=_}c(_,y),_.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)});Object.defineProperty(s,"__esModule",{value:!0}),s.DivPoi=void 0;var m=a(7372),p=a(7372),g=a(7324),w=function(_){function y(h,d){var u=_.call(this)||this;return u._customDivClass=h,u._divContainer=d,u._show=!1,u.dispose(function(){u.show=!1}),u}return f(y,_),y.prototype._updateDivPoi=function(){if(this._show){var h=this.floatDiv;h.element.parentElement||this._divContainer.appendChild(h.element)}else{var d=this._floatDiv;d&&d.element.parentElement&&this._divContainer.removeChild(d.element)}},Object.defineProperty(y.prototype,"show",{get:function(){return this._show},set:function(h){this._show!==h&&(this._show=h,this._updateDivPoi(),this._showChanged&&this._showChanged.emit(h))},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"floatDiv",{get:function(){var h=this;if(!this._floatDiv){var d=(0,g.getFloatDivPool)(this._customDivClass).create();this.dispose(function(){(0,g.getFloatDivPool)(h._customDivClass).destroy(d)}),this._floatDiv=d}return this._floatDiv},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"showChanged",{get:function(){return this._showChanged||(this._showChanged=new m.Event),this._showChanged},enumerable:!1,configurable:!0}),y}(p.Destroyable);s.DivPoi=w},312:(o,s)=>{var a;Object.defineProperty(s,"__esModule",{value:!0}),s.Intersect=void 0,(a=s.Intersect||(s.Intersect={})).OUTSIDE=-1,a.INTERSECTING=0,a.INSIDE=1},345:(o,s)=>{function a(c){var f=0|+c;if(f.toString()===c)return f}Object.defineProperty(s,"__esModule",{value:!0}),s.observeArray=void 0,s.observeArray=function(c,f){if(!Array.isArray(c))throw new Error("!Array.isArray(array)");return new Proxy(c,{set:function(m,p,g,w){var _=m;if(typeof p!="string")throw new Error("typeof key !== string");var y=a(p);if(y===void 0)return Reflect.set(_,p,g,w);if(y<0)throw new Error("n < 0 || n >= array.length");return!!f({type:_[y]===void 0?"insert":"update",index:y,oldValue:_[y],value:g})&&Reflect.set(m,p,g,w)},deleteProperty:function(m,p){var g=m;if(typeof p!="string")throw new Error("typeof key !== string");var w=a(p);if(w===void 0)return Reflect.deleteProperty(m,p);if(w<0||w>=g.length)throw new Error("n < 0 || n >= array.length");return!!f({type:"delete",index:w,oldValue:g[w],value:void 0})&&Reflect.deleteProperty(m,p)}})}},433:function(o,s){var a=this&&this.__read||function(f,m){var p=typeof Symbol=="function"&&f[Symbol.iterator];if(!p)return f;var g,w,_=p.call(f),y=[];try{for(;(m===void 0||m-- >0)&&!(g=_.next()).done;)y.push(g.value)}catch(h){w={error:h}}finally{try{g&&!g.done&&(p=_.return)&&p.call(_)}finally{if(w)throw w.error}}return y},c=this&&this.__spreadArray||function(f,m,p){if(p||arguments.length===2)for(var g,w=0,_=m.length;w<_;w++)!g&&w in m||(g||(g=Array.prototype.slice.call(m,0,w)),g[w]=m[w]);return f.concat(g||Array.prototype.slice.call(m))};Object.defineProperty(s,"__esModule",{value:!0}),s.magicStrToUint32=void 0,s.magicStrToUint32=function(f){if(f.length>4)throw new Error("getMagic error! str.length > 4");return function(m){return c([],a(m),!1).reverse().reduce(function(p,g){return(p<<=8)+g.codePointAt(0)},0)}(f)}},476:(o,s,a)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.some=void 0;var c=a(6301);s.some=function(f,m){return(0,c.forEachWithBreak)(f,function(p,g){return m(p,g)})}},507:function(o,s,a){var c,f=this&&this.__extends||(c=function(h,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&(u[v]=l[v])},c(h,d)},function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function u(){this.constructor=h}c(h,d),h.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)}),m=this&&this.__read||function(h,d){var u=typeof Symbol=="function"&&h[Symbol.iterator];if(!u)return h;var l,v,b=u.call(h),E=[];try{for(;(d===void 0||d-- >0)&&!(l=b.next()).done;)E.push(l.value)}catch(S){v={error:S}}finally{try{l&&!l.done&&(u=b.return)&&u.call(b)}finally{if(v)throw v.error}}return E};Object.defineProperty(s,"__esModule",{value:!0}),s.PointerClickDeprecated=void 0;var p=a(109),g=a(7372),w=a(2299),_=a(7372),y=function(h){function d(u){var l=h.call(this)||this;l._clickEvent=new _.Event,l._dbclickEvent=new _.Event,l._downEvent=new _.Event,l._upEvent=new _.Event,l._moveEvent=new _.Event,l._debouncing=new p.DebouncingDeprecated(300),l.dispose(function(){l._clickEvent.destroy(),l._dbclickEvent.destroy(),l._downEvent.destroy(),l._upEvent.destroy(),l._moveEvent.destroy(),l._debouncing.destroy()});var v=!1,b=[0,0],E=!1;l._debouncing.progressFunc=function(O){var I=m(O,2),N=m(I[0],3),T=N[0],R=N[1],A=N[2],B=I[1];B===1?l._clickEvent.emit(T,R,A):B>=2?l._dbclickEvent.emit(T,R,A):console.error("point click should not be here!")},l._debouncing.start(),l.dispose(function(){l._debouncing.isRunning&&l._debouncing.cancel(),l._debouncing.destroy()});var S=function(O){v=!0;var I=m((0,w.getDomEventCurrentTargetPos)(O),2),N=I[0],T=I[1];b[0]=N,b[1]=T,l._downEvent.emit(N,T,O)},P=function(O){var I=m((0,w.getDomEventCurrentTargetPos)(O),2),N=I[0],T=I[1];v&&!E&&l._debouncing.debounce(N,T,O),v=!1,E=!1,l._upEvent.emit(N,T,O)},C=function(O){var I=m((0,w.getDomEventCurrentTargetPos)(O),2),N=I[0],T=I[1];if(v&&!E){var R=m(b,2),A=R[0],B=R[1];(Math.abs(N-A)>3||Math.abs(T-B)>3)&&(E=!0)}l._moveEvent.emit(N,T,O)},x=function(){v=!1,E=!1};return u.addEventListener("pointerdown",S),u.addEventListener("pointerup",P),u.addEventListener("pointermove",C),u.addEventListener("pointerout",x),l.dispose(function(){u.removeEventListener("pointerdown",S),u.removeEventListener("pointerup",P),u.removeEventListener("pointermove",C),u.removeEventListener("pointerout",x)}),l}return f(d,h),Object.defineProperty(d.prototype,"clickEvent",{get:function(){return this._clickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"dbclickEvent",{get:function(){return this._dbclickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"downEvent",{get:function(){return this._downEvent},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"upEvent",{get:function(){return this._upEvent},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"moveEvent",{get:function(){return this._moveEvent},enumerable:!1,configurable:!0}),d}(g.Destroyable);s.PointerClickDeprecated=y},602:(o,s)=>{var a,c,f,m,p,g,w,_,y;Object.defineProperty(s,"__esModule",{value:!0}),s.Tween=void 0,(a=s.Tween||(s.Tween={})).Linear=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u*h/l+d},(y=a.Quad||(a.Quad={})).easeIn=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u*(h/=l)*h+d},y.easeOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),-u*(h/=l)*(h-2)+d},y.easeInOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),(h/=l/2)<1?u/2*h*h+d:-u/2*(--h*(h-2)-1)+d},(_=a.Cubic||(a.Cubic={})).easeIn=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u*(h/=l)*h*h+d},_.easeOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u*((h=h/l-1)*h*h+1)+d},_.easeInOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),(h/=l/2)<1?u/2*h*h*h+d:u/2*((h-=2)*h*h+2)+d},(w=a.Quart||(a.Quart={})).easeIn=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u*(h/=l)*h*h*h+d},w.easeOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),-u*((h=h/l-1)*h*h*h-1)+d},w.easeInOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),(h/=l/2)<1?u/2*h*h*h*h+d:-u/2*((h-=2)*h*h*h-2)+d},(g=a.Quint||(a.Quint={})).easeIn=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u*(h/=l)*h*h*h*h+d},g.easeOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u*((h=h/l-1)*h*h*h*h+1)+d},g.easeInOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),(h/=l/2)<1?u/2*h*h*h*h*h+d:u/2*((h-=2)*h*h*h*h+2)+d},(p=a.Sine||(a.Sine={})).easeIn=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),-u*Math.cos(h/l*(Math.PI/2))+u+d},p.easeOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u*Math.sin(h/l*(Math.PI/2))+d},p.easeInOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),-u/2*(Math.cos(Math.PI*h/l)-1)+d},(m=a.Expo||(a.Expo={})).easeIn=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),h==0?d:u*Math.pow(2,10*(h/l-1))+d},m.easeOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),h==l?d+u:u*(1-Math.pow(2,-10*h/l))+d},m.easeInOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),h==0?d:h==l?d+u:(h/=l/2)<1?u/2*Math.pow(2,10*(h-1))+d:u/2*(2-Math.pow(2,-10*--h))+d},(f=a.Circ||(a.Circ={})).easeIn=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),-u*(Math.sqrt(1-(h/=l)*h)-1)+d},f.easeOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u*Math.sqrt(1-(h=h/l-1)*h)+d},f.easeInOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),(h/=l/2)<1?-u/2*(Math.sqrt(1-h*h)-1)+d:u/2*(Math.sqrt(1-(h-=2)*h)+1)+d},(c=a.Bounce||(a.Bounce={})).easeIn=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),u-a.Bounce.easeOut(l-h,0,u,l)+d},c.easeOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),(h/=l)<.36363636363636365?u*(7.5625*h*h)+d:h<.7272727272727273?u*(7.5625*(h-=.5454545454545454)*h+.75)+d:h<.9090909090909091?u*(7.5625*(h-=.8181818181818182)*h+.9375)+d:u*(7.5625*(h-=.9545454545454546)*h+.984375)+d},c.easeInOut=function(h,d,u,l){return d===void 0&&(d=0),u===void 0&&(u=1),l===void 0&&(l=1),h<l/2?.5*a.Bounce.easeIn(2*h,0,u,l)+d:.5*a.Bounce.easeOut(2*h-l,0,u,l)+.5*u+d}},643:function(o,s,a){var c=this&&this.__read||function(g,w){var _=typeof Symbol=="function"&&g[Symbol.iterator];if(!_)return g;var y,h,d=_.call(g),u=[];try{for(;(w===void 0||w-- >0)&&!(y=d.next()).done;)u.push(y.value)}catch(l){h={error:l}}finally{try{y&&!y.done&&(_=d.return)&&_.call(d)}finally{if(h)throw h.error}}return u},f=this&&this.__spreadArray||function(g,w,_){if(_||arguments.length===2)for(var y,h=0,d=w.length;h<d;h++)!y&&h in w||(y||(y=Array.prototype.slice.call(w,0,h)),y[h]=w[h]);return g.concat(y||Array.prototype.slice.call(w))};Object.defineProperty(s,"__esModule",{value:!0}),s.cancelableFetchDeprecated=void 0;var m=a(5726);function p(g,w){for(var _=[],y=2;y<arguments.length;y++)_[y-2]=arguments[y];var h=new AbortController,d=h.signal,u=c(_,2),l=u[0],v=u[1];if(v!=null&&v.signal)throw console.error("init?.signal"),new Error("init?.signal");(v=v||{}).signal=d;var b=!1;(0,m._executeSetCancelFuncOrCancelResult)(g,function(){b=!0,h.abort()});var E=fetch(l,v);return w&&(E=E.then(function(S){if(!S.ok)return S;if(!S.body)throw Error("ReadableStream not yet supported in this browser.");var P=S.headers.get("content-length"),C=P?parseInt(P,10):0,x=0;return new Response(new ReadableStream({start:function(O){if(!S.body)throw new Error("!response.body");var I=S.body.getReader();(function N(){I.read().then(function(T){var R=T.done,A=T.value;if(R)O.close();else{if(!A)throw new Error("!value");if(!w)throw new Error("!progressFunc");x+=A.byteLength,w(x,C),O.enqueue(A),N()}}).catch(function(T){O.error(T)})})()}}),{status:S.status,statusText:S.statusText,headers:S.headers})}).catch(function(S){throw b?(S instanceof Error&&S.code!==20&&console.error("error.code !== 20"),console.log("fetching cancelled!"),new m.CancelError("fetching cancelled!")):(S instanceof Error&&S.code===20&&console.error("error.code === 20"),S)})),E}s.cancelableFetchDeprecated=function(){for(var g=[],w=0;w<arguments.length;w++)g[w]=arguments[w];if(g.length>=1){if(typeof g[0]=="function"||g[0]===void 0){var _={},y=p.apply(void 0,f([_],c(g),!1)),h=_.cancelFunc;if(!h)throw new Error("!cancelResult.cancelFunc");return[h,y]}return p.apply(void 0,f([],c(g),!1))}throw new Error("cancelableFetch args error!")}},709:(o,s,a)=>{a.r(s),a.d(s,{Observable:()=>z});const c="insert",f="update",m="delete",p="reverse",g="shuffle",w=Symbol("observable-meta-key"),_={async:1},y={path:1,pathsOf:1,pathsFrom:1},h={[w]:{value:null},observe:{value:function(j,L){if(typeof j!="function")throw new Error(`observer MUST be a function, got '${j}'`);const F=this[w].observers;if(F.some(G=>G[0]===j))console.warn("observer may be bound to an observable only once; will NOT rebind");else{let G;G=L?function(W){const V={};if(W.path!==void 0){if(typeof W.path!="string"||W.path==="")throw new Error('"path" option, if/when provided, MUST be a non-empty string');V.path=W.path}if(W.pathsOf!==void 0){if(W.path)throw new Error('"pathsOf" option MAY NOT be specified together with "path" option');if(typeof W.pathsOf!="string")throw new Error('"pathsOf" option, if/when provided, MUST be a string (MAY be empty)');V.pathsOf=W.pathsOf.split(".").filter(H=>H)}if(W.pathsFrom!==void 0){if(W.path||W.pathsOf)throw new Error('"pathsFrom" option MAY NOT be specified together with "path"/"pathsOf" option/s');if(typeof W.pathsFrom!="string"||W.pathsFrom==="")throw new Error('"pathsFrom" option, if/when provided, MUST be a non-empty string');V.pathsFrom=W.pathsFrom}const U=Object.keys(W).filter(H=>!y.hasOwnProperty(H));if(U.length)throw new Error(`'${U.join(", ")}' is/are not a valid observer option/s`);return V}(L):{},F.push([j,G])}}},unobserve:{value:function(){const j=this[w].observers;let L=j.length;if(L){let F=arguments.length;if(F)for(;F--;){let G=L;for(;G--;)j[G][0]===arguments[F]&&(j.splice(G,1),L--)}else j.splice(0)}}}},d=function(j,L){h[w].value=L;const F=Object.defineProperties({},h);for(const G of Object.keys(j))F[G]=P(j[G],G,L);return F},u=function(j,L){let F=0,G=j.length;h[w].value=L;const W=Object.defineProperties(new Array(G),h);for(;F<G;F++)W[F]=P(j[F],F,L);return W},l=function(j,L){return h[w].value=L,Object.defineProperties(j,h),j},v=function(j,L){let F=L;if(j.path){const G=j.path;F=L.filter(W=>W.path.join(".")===G)}else if(j.pathsOf){const G=j.pathsOf;F=L.filter(W=>W.path.length===G.length+1||W.path.length===G.length&&(W.type===p||W.type===g))}else if(j.pathsFrom){const G=j.pathsFrom;F=L.filter(W=>W.path.join(".").startsWith(G))}return F},b=function(j,L){try{j(L)}catch(F){console.error(`failed to notify listener ${j} with ${L}`,F)}},E=function(){const j=this.batches;this.batches=null;for(const[L,F]of j)b(L,F)},S=function(j,L){let F,G,W,V,U,H,J,Y=j;const re=L.length;do{for(F=Y.observers,U=F.length;U--;)if([G,W]=F[U],V=v(W,L),V.length)if(Y.options.async){Y.batches||(Y.batches=[],queueMicrotask(E.bind(Y)));let te=Y.batches.find(me=>me[0]===G);te||(te=[G,[]],Y.batches.push(te)),Array.prototype.push.apply(te[1],V)}else b(G,V);let ae;if(Y.parent){ae=new Array(re);for(let te=0;te<re;te++)J=L[te],H=[Y.ownKey,...J.path],ae[te]={type:J.type,path:H,value:J.value,oldValue:J.oldValue,object:J.object};L=ae,Y=Y.parent}else Y=null}while(Y)},P=function(j,L,F){return j&&typeof j=="object"?Array.isArray(j)?new B({target:j,ownKey:L,parent:F}).proxy:ArrayBuffer.isView(j)?new k({target:j,ownKey:L,parent:F}).proxy:j instanceof Date||j instanceof Blob||j instanceof Error?j:new A({target:j,ownKey:L,parent:F}).proxy:j},C=function(){const j=this[w],L=j.target;let F,G,W;for(L.reverse(),F=0,G=L.length;F<G;F++)if(W=L[F],W&&typeof W=="object"){const V=W[w];V&&(V.ownKey=F)}return S(j,[{type:p,path:[],object:this}]),this},x=function(j){const L=this[w],F=L.target;let G,W,V;for(F.sort(j),G=0,W=F.length;G<W;G++)if(V=F[G],V&&typeof V=="object"){const U=V[w];U&&(U.ownKey=G)}return S(L,[{type:g,path:[],object:this}]),this},O=function(j,L,F){const G=this[w],W=G.target,V=[],U=W.length,H=W.slice(0);if(L=L===void 0?0:L<0?Math.max(U+L,0):Math.min(L,U),F=F===void 0?U:F<0?Math.max(U+F,0):Math.min(F,U),L<U&&F>L){let J;W.fill(j,L,F);for(let Y,re,ae=L;ae<F;ae++)Y=W[ae],W[ae]=P(Y,ae,G),H.hasOwnProperty(ae)?(re=H[ae],re&&typeof re=="object"&&(J=re[w],J&&(re=J.detach())),V.push({type:f,path:[ae],value:W[ae],oldValue:re,object:this})):V.push({type:c,path:[ae],value:W[ae],object:this});S(G,V)}return this},I=function(j,L,F){const G=this[w],W=G.target,V=W.length;j=j<0?Math.max(V+j,0):j,L=L===void 0?0:L<0?Math.max(V+L,0):Math.min(L,V),F=F===void 0?V:F<0?Math.max(V+F,0):Math.min(F,V);const U=Math.min(F-L,V-j);if(j<V&&j!==L&&U>0){const H=W.slice(0),J=[];W.copyWithin(j,L,F);for(let Y,re,ae,te=j;te<j+U;te++)Y=W[te],Y&&typeof Y=="object"&&(Y=P(Y,te,G),W[te]=Y),re=H[te],re&&typeof re=="object"&&(ae=re[w],ae&&(re=ae.detach())),typeof Y!="object"&&Y===re||J.push({type:f,path:[te],value:Y,oldValue:re,object:this});S(G,J)}return this},N={pop:function(){const j=this[w],L=j.target,F=L.length-1;let G=L.pop();if(G&&typeof G=="object"){const W=G[w];W&&(G=W.detach())}return S(j,[{type:m,path:[F],oldValue:G,object:this}]),G},push:function(){const j=this[w],L=j.target,F=arguments.length,G=new Array(F),W=L.length;for(let H=0;H<F;H++)G[H]=P(arguments[H],W+H,j);const V=Reflect.apply(L.push,L,G),U=[];for(let H=W,J=L.length;H<J;H++)U[H-W]={type:c,path:[H],value:L[H],object:this};return S(j,U),V},shift:function(){const j=this[w],L=j.target;let F,G,W,V,U;for(F=L.shift(),F&&typeof F=="object"&&(U=F[w],U&&(F=U.detach())),G=0,W=L.length;G<W;G++)V=L[G],V&&typeof V=="object"&&(U=V[w],U&&(U.ownKey=G));return S(j,[{type:m,path:[0],oldValue:F,object:this}]),F},unshift:function(){const j=this[w],L=j.target,F=arguments.length,G=new Array(F);for(let H=0;H<F;H++)G[H]=P(arguments[H],H,j);const W=Reflect.apply(L.unshift,L,G);for(let H,J=0,Y=L.length;J<Y;J++)if(H=L[J],H&&typeof H=="object"){const re=H[w];re&&(re.ownKey=J)}const V=G.length,U=new Array(V);for(let H=0;H<V;H++)U[H]={type:c,path:[H],value:L[H],object:this};return S(j,U),W},reverse:C,sort:x,fill:O,copyWithin:I,splice:function(){const j=this[w],L=j.target,F=arguments.length,G=new Array(F),W=L.length;for(let fe=0;fe<F;fe++)G[fe]=P(arguments[fe],fe,j);const V=F===0?0:G[0]<0?W+G[0]:G[0],U=F<2?W-V:G[1],H=Math.max(F-2,0),J=Reflect.apply(L.splice,L,G),Y=L.length;let re,ae,te,me;for(let fe,Ce=0;Ce<Y;Ce++)fe=L[Ce],fe&&typeof fe=="object"&&(re=fe[w],re&&(re.ownKey=Ce));for(ae=0,te=J.length;ae<te;ae++)me=J[ae],me&&typeof me=="object"&&(re=me[w],re&&(J[ae]=re.detach()));const be=[];let ie;for(ie=0;ie<U;ie++)ie<H?be.push({type:f,path:[V+ie],value:L[V+ie],oldValue:J[ie],object:this}):be.push({type:m,path:[V+ie],oldValue:J[ie],object:this});for(;ie<H;ie++)be.push({type:c,path:[V+ie],value:L[V+ie],object:this});return S(j,be),J}},T={reverse:C,sort:x,fill:O,copyWithin:I,set:function(j,L){const F=this[w],G=F.target,W=j.length,V=G.slice(0);L=L||0,G.set(j,L);const U=new Array(W);for(let H=L;H<W+L;H++)U[H-L]={type:f,path:[H],value:G[H],oldValue:V[H],object:this};S(F,U)}};class R{constructor(L,F){const{target:G,parent:W,ownKey:V}=L;W&&V!==void 0?(this.parent=W,this.ownKey=V):(this.parent=null,this.ownKey=null);const U=F(G,this);this.observers=[],this.revocable=Proxy.revocable(U,this),this.proxy=this.revocable.proxy,this.target=U,this.options=this.processOptions(L.options)}processOptions(L){if(L){if(typeof L!="object")throw new Error(`Observable options if/when provided, MAY only be an object, got '${L}'`);const F=Object.keys(L).filter(G=>!_.hasOwnProperty(G));if(F.length)throw new Error(`'${F.join(", ")}' is/are not a valid Observable option/s`);return Object.assign({},L)}return{}}detach(){return this.parent=null,this.target}set(L,F,G){let W=L[F];if(G!==W){const V=P(G,F,this);if(L[F]=V,W&&typeof W=="object"){const H=W[w];H&&(W=H.detach())}const U=W===void 0?[{type:c,path:[F],value:V,object:this.proxy}]:[{type:f,path:[F],value:V,oldValue:W,object:this.proxy}];S(this,U)}return!0}deleteProperty(L,F){let G=L[F];if(delete L[F],G&&typeof G=="object"){const V=G[w];V&&(G=V.detach())}const W=[{type:m,path:[F],oldValue:G,object:this.proxy}];return S(this,W),!0}}class A extends R{constructor(L){super(L,d)}}class B extends R{constructor(L){super(L,u)}get(L,F){return N.hasOwnProperty(F)?N[F]:L[F]}}class k extends R{constructor(L){super(L,l)}get(L,F){return T.hasOwnProperty(F)?T[F]:L[F]}}class z{constructor(){throw new Error('Observable MAY NOT be created via constructor, see "Observable.from" API')}static from(L,F){if(L&&typeof L=="object"){if(L[w])return L;if(Array.isArray(L))return new B({target:L,ownKey:null,parent:null,options:F}).proxy;if(ArrayBuffer.isView(L))return new k({target:L,ownKey:null,parent:null,options:F}).proxy;if(L instanceof Date||L instanceof Blob||L instanceof Error)throw new Error(`${L} found to be one of a on-observable types`);return new A({target:L,ownKey:null,parent:null,options:F}).proxy}throw new Error("observable MAY ONLY be created from a non-null object")}static isObservable(L){return!(!L||!L[w])}}Object.freeze(z)},723:(o,s,a)=>{Object.defineProperty(s,"__esModule",{value:!0}),s._inverseTransformation=void 0;var c=a(2731);s._inverseTransformation=function(f,m){var p=f[0],g=f[1],w=f[2],_=f[4],y=f[5],h=f[6],d=f[8],u=f[9],l=f[10],v=f[12],b=f[13],E=f[14],S=-p*v-g*b-w*E,P=-_*v-y*b-h*E,C=-d*v-u*b-l*E;return(m=m||(0,c.createNumbers)(16))[0]=p,m[1]=_,m[2]=d,m[3]=0,m[4]=g,m[5]=y,m[6]=u,m[7]=0,m[8]=w,m[9]=h,m[10]=l,m[11]=0,m[12]=S,m[13]=P,m[14]=C,m[15]=1,m}},733:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.readBits=s.readArray=s.readUnsigned=s.readString=s.peekBytes=s.readBytes=s.peekByte=s.readByte=s.buildStream=void 0,s.buildStream=function(c){return{data:c,pos:0}},s.readByte=function(){return function(c){return c.data[c.pos++]}},s.peekByte=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(f){return f.data[f.pos+c]}};var a=function(c){return function(f){return f.data.subarray(f.pos,f.pos+=c)}};s.readBytes=a,s.peekBytes=function(c){return function(f){return f.data.subarray(f.pos,f.pos+c)}},s.readString=function(c){return function(f){return Array.from(a(c)(f)).map(function(m){return String.fromCharCode(m)}).join("")}},s.readUnsigned=function(c){return function(f){var m=a(2)(f);return c?(m[1]<<8)+m[0]:(m[0]<<8)+m[1]}},s.readArray=function(c,f){return function(m,p,g){for(var w=typeof f=="function"?f(m,p,g):f,_=a(c),y=new Array(w),h=0;h<w;h++)y[h]=_(m);return y}},s.readBits=function(c){return function(f){for(var m=function(w){return w.data[w.pos++]}(f),p=new Array(8),g=0;g<8;g++)p[7-g]=!!(m&1<<g);return Object.keys(c).reduce(function(w,_){var y=c[_];return y.length?w[_]=function(h,d,u){for(var l=0,v=0;v<u;v++)l+=h[d+v]&&Math.pow(2,u-v-1);return l}(p,y.index,y.length):w[_]=p[y.index],w},{})}}},773:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.defaultStartUpdateFunc=s.requestAnimationFrameTimeStampTest=void 0,s.requestAnimationFrameTimeStampTest=function(){return new Promise(function(a,c){var f=performance.now();requestAnimationFrame(function(m){return a(m>f)})})},s.defaultStartUpdateFunc=function(a){var c,f;return f=function(m){m=performance.now(),c=requestAnimationFrame(f),a(m)},c=requestAnimationFrame(f),function(){cancelAnimationFrame(c)}}},921:function(o,s,a){var c=this&&this.__read||function(w,_){var y=typeof Symbol=="function"&&w[Symbol.iterator];if(!y)return w;var h,d,u=y.call(w),l=[];try{for(;(_===void 0||_-- >0)&&!(h=u.next()).done;)l.push(h.value)}catch(v){d={error:v}}finally{try{h&&!h.done&&(y=u.return)&&y.call(u)}finally{if(d)throw d.error}}return l},f=this&&this.__spreadArray||function(w,_,y){if(y||arguments.length===2)for(var h,d=0,u=_.length;d<u;d++)!h&&d in _||(h||(h=Array.prototype.slice.call(_,0,d)),h[d]=_[d]);return w.concat(h||Array.prototype.slice.call(_))};Object.defineProperty(s,"__esModule",{value:!0}),s.createProcessingFromAsyncFuncWithStartValues=s.createProcessingFromAsyncFunc=s.asyncFuncToCancelablePromise=s.cancelFuncToCancelablePromise=s.createProcessingFromPromiseCreateFuncWithStartValues=s.createProcessingFromPromiseCreateFunc=void 0;var m=a(1101),p=a(1148),g=a(9651);s.createProcessingFromPromiseCreateFunc=function(w){return _=function(){for(var y=[],h=0;h<arguments.length;h++)y[h]=arguments[h];var d=w.apply(void 0,f([],c(y),!1));return(0,g.isPromiseCancelable)(d)?d:(0,g.createCancelablePromise)(d)},new p.Processing((0,p.createStartFuncFromAsyncFunc)(function(y){for(var h=[],d=1;d<arguments.length;d++)h[d-1]=arguments[d];return y.promise(_.apply(void 0,f([],c(h),!1)))}));var _},s.createProcessingFromPromiseCreateFuncWithStartValues=function(w){for(var _=[],y=1;y<arguments.length;y++)_[y-1]=arguments[y];return function(h){for(var d=[],u=1;u<arguments.length;u++)d[u-1]=arguments[u];return new p.Processing((0,p.createStartFuncFromAsyncFunc)(function(l){return l.promise(h.apply(void 0,f([],c(d),!1)))}))}(function(){var h=w.apply(void 0,f([],c(_),!1));return(0,g.isPromiseCancelable)(h)?h:(0,g.createCancelablePromise)(h)})},s.cancelFuncToCancelablePromise=function(w){var _,y=new Promise(function(h,d){_=function(){w(),d()}});return(0,g.setPromiseCancel)(y,_),y},s.asyncFuncToCancelablePromise=function(w){for(var _=[],y=1;y<arguments.length;y++)_[y-1]=arguments[y];var h=new m.CancelsManager,d=w.apply(void 0,f([h],c(_),!1)).finally(function(){return h.destroy()});return(0,g.setPromiseCancel)(d,h.cancel.bind(h)),d},s.createProcessingFromAsyncFunc=function(w){return new p.Processing((0,p.createStartFuncFromAsyncFunc)(w))},s.createProcessingFromAsyncFuncWithStartValues=function(w){for(var _=[],y=1;y<arguments.length;y++)_[y-1]=arguments[y];return new p.Processing((0,p.createStartFuncFromAsyncFunc)(function(h){return w.apply(void 0,f([h],c(_),!1))}))}},985:function(o,s,a){var c=this&&this.__createBinding||(Object.create?function(m,p,g,w){w===void 0&&(w=g);var _=Object.getOwnPropertyDescriptor(p,g);_&&!("get"in _?!p.__esModule:_.writable||_.configurable)||(_={enumerable:!0,get:function(){return p[g]}}),Object.defineProperty(m,w,_)}:function(m,p,g,w){w===void 0&&(w=g),m[w]=p[g]}),f=this&&this.__exportStar||function(m,p){for(var g in m)g==="default"||Object.prototype.hasOwnProperty.call(p,g)||c(p,m,g)};Object.defineProperty(s,"__esModule",{value:!0}),f(a(8466),s),f(a(3983),s),f(a(6424),s)},1023:function(o,s,a){var c,f=this&&this.__extends||(c=function(u,l){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(v[E]=b[E])},c(u,l)},function(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function v(){this.constructor=u}c(u,l),u.prototype=l===null?Object.create(l):(v.prototype=l.prototype,new v)}),m=this&&this.__read||function(u,l){var v=typeof Symbol=="function"&&u[Symbol.iterator];if(!v)return u;var b,E,S=v.call(u),P=[];try{for(;(l===void 0||l-- >0)&&!(b=S.next()).done;)P.push(b.value)}catch(C){E={error:C}}finally{try{b&&!b.done&&(v=S.return)&&v.call(S)}finally{if(E)throw E.error}}return P};Object.defineProperty(s,"__esModule",{value:!0}),s.PickColorMananger=s.uint8sToUint32=s.uint32ToUint8s=void 0;var p=a(7372),g=new ArrayBuffer(4),w=new Uint32Array(g),_=new Uint8Array(g);function y(u){if(u>=16777215)throw new Error("uint32 > 0xFFFFFF");return w[0]=u,[_[0],_[1],_[2]]}function h(u,l,v){return _[0]=u,_[1]=l,_[2]=v,_[3]=0,w[0]}s.uint32ToUint8s=y,s.uint8sToUint32=h;var d=function(u){function l(){var v=u!==null&&u.apply(this,arguments)||this;return v._pickColors=new Array(16777215),v._pickColorIndex=0,v}return f(l,u),l.prototype.reset=function(){for(var v=0;v<this._pickColorIndex;++v){var b=this._pickColors[v];if(!b)throw console.error("this._pickColors[i] should not be undefined!"),new Error("this._pickColors[i] should not be undefined!");b.poi=null,b.tag=""}this._pickColorIndex=0},l.prototype.createPickColor=function(v,b){var E=this._pickColorIndex;++this._pickColorIndex;var S=this._pickColors[E];S?(S.poi=v,S.tag=b):this._pickColors[E]={poi:v,tag:b};var P=m(y(E),3);return[P[0],P[1],P[2]]},l.prototype.getPickInfoFromColor=function(v,b,E){var S=h(v,b,E);if(S>=this._pickColorIndex)console.error("index >= this._pickColorIndex");else{var P=this._pickColors[S];if(P)return P;console.error("!this._pickColors[index]")}},l.prototype.destroyImp=function(){this.reset()},l}(p.Destroyable);s.PickColorMananger=d},1047:function(o,s,a){var c=this&&this.__values||function(g){var w=typeof Symbol=="function"&&Symbol.iterator,_=w&&g[w],y=0;if(_)return _.call(g);if(g&&typeof g.length=="number")return{next:function(){return g&&y>=g.length&&(g=void 0),{value:g&&g[y++],done:!g}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},f=this&&this.__read||function(g,w){var _=typeof Symbol=="function"&&g[Symbol.iterator];if(!_)return g;var y,h,d=_.call(g),u=[];try{for(;(w===void 0||w-- >0)&&!(y=d.next()).done;)u.push(y.value)}catch(l){h={error:l}}finally{try{y&&!y.done&&(_=d.return)&&_.call(d)}finally{if(h)throw h.error}}return u};Object.defineProperty(s,"__esModule",{value:!0}),s.createProps=void 0;var m=a(9359),p=a(3915);s.createProps=function(g){var w,_,y=new m.Destroyable,h=function(v,b){var E,S=y.disposeVar(b instanceof p.ReactiveVariable?b:(0,p.react)(b));Object.defineProperties(y,((E={})[v]={get:function(){return S.value},set:function(P){S.value=P}},E["".concat(v,"Changed")]={get:function(){return S.changed}},E))};try{for(var d=c(Object.entries(g)),u=d.next();!u.done;u=d.next()){var l=f(u.value,2);h(l[0],l[1])}}catch(v){w={error:v}}finally{try{u&&!u.done&&(_=d.return)&&_.call(d)}finally{if(w)throw w.error}}return y}},1085:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ObjPool=void 0;var a=function(){function c(f,m,p){p===void 0&&(p=!1),this._createDefaultFunc=f,this._destroyFunc=m,this._freeElements=[],this._usedElementsCount=0,this._nextCreateID=1,this._scratchObjs=[],p&&(this._usedElements=[])}return Object.defineProperty(c.prototype,"usedElementsCount",{get:function(){return this._usedElementsCount},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"freeElementsCount",{get:function(){return this._freeElements.length},enumerable:!1,configurable:!0}),c.prototype._getCreateID=function(){return this._nextCreateID++},c.prototype._create=function(){var f;return(f=this._freeElements.length>0?this._freeElements.pop():this._createDefaultFunc&&this._createDefaultFunc()||{})._cid=this._getCreateID(),f},c.prototype.create=function(){return this._create()},c.prototype.multiCreate=function(f){this._scratchObjs.length=0;for(var m=0;m<f;++m)this._scratchObjs.push(this._create());return this._scratchObjs},c.prototype._destroy=function(f){this._destroyFunc&&this._destroyFunc(f),f._cid=void 0},c.prototype.destroy=function(){for(var f=[],m=0;m<arguments.length;m++)f[m]=arguments[m];for(var p=f.length,g=0;g<p;++g)this._destroy(f[g])},c}();s.ObjPool=a},1101:function(o,s,a){var c,f=this&&this.__extends||(c=function(h,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&(u[v]=l[v])},c(h,d)},function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function u(){this.constructor=h}c(h,d),h.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)}),m=this&&this.__values||function(h){var d=typeof Symbol=="function"&&Symbol.iterator,u=d&&h[d],l=0;if(u)return u.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&l>=h.length&&(h=void 0),{value:h&&h[l++],done:!h}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(s,"__esModule",{value:!0}),s.CancelsManager=void 0;var p=a(7372),g=a(1662),w=a(4206),_=a(9651),y=function(h){function d(){var u=h.call(this)||this;return u._cancelled=!1,u._promiseSet=new Set,u}return f(d,h),Object.defineProperty(d.prototype,"disposer",{get:function(){return this._disposer=this._disposer||new p.Destroyable,this._disposer},enumerable:!1,configurable:!0}),d.prototype.destroyImp=function(){this.finally()},d.prototype.cancel=function(u){var l,v,b;if(!this._cancelled){this._cancelled=!0,(b=this._disposer)===null||b===void 0||b.destroy(),this._cancelError=u;try{for(var E=m(this._promiseSet),S=E.next();!S.done;S=E.next()){var P=S.value;(0,_.cancelPromise)(P)}}catch(C){l={error:C}}finally{try{S&&!S.done&&(v=E.return)&&v.call(E)}finally{if(l)throw l.error}}this._promiseSet.clear()}},Object.defineProperty(d.prototype,"cancelFuncsNum",{get:function(){return(0,g.reduce)(this._promiseSet,function(u){return u+1},0)},enumerable:!1,configurable:!0}),d.prototype.finally=function(){this._disposer&&!this._disposer.isDestroyed()&&this._disposer.destroy(),this._promiseSet.clear()},d.prototype.check=function(){var u;if(this._cancelled)throw(u=this._cancelError)!==null&&u!==void 0?u:new w.CancelError("cancel from CancelManager!")},d.prototype.promise=function(u){var l=this;return this._promiseSet.add(u),u.finally(function(){return l._promiseSet.delete(u),l.check()})},d.prototype.promiseAny=function(u){var l=this,v=[],b=u.map(function(E){return l._promiseSet.add(E),(0,_.isPromiseCancelable)(E)&&v.push((0,_.getPromiseCancel)(E)),E.finally(function(){return l._promiseSet.delete(E)})});return Promise.any(b).finally(function(){return v.forEach(function(E){return E(new w.CancelError("cancel from promiseAny!"))}),v.length=0})},d.prototype.promiseAll=function(u){var l=this,v=[],b=u.map(function(E){return l._promiseSet.add(E),(0,_.isPromiseCancelable)(E)&&v.push((0,_.getPromiseCancel)(E)),E.finally(function(){return l._promiseSet.delete(E)})});return Promise.all(b).finally(function(){return v.forEach(function(E){return E(new w.CancelError("cancel from promiseAll!"))}),v.length=0})},d.prototype.promiseRace=function(u){var l=this,v=[],b=u.map(function(E){return l._promiseSet.add(E),(0,_.isPromiseCancelable)(E)&&v.push((0,_.getPromiseCancel)(E)),E.finally(function(){return l._promiseSet.delete(E)})});return Promise.race(b).finally(function(){return v.forEach(function(E){return E(new w.CancelError("cancel from promiseRace!"))}),v.length=0})},d}(p.Destroyable);s.CancelsManager=y},1148:function(o,s,a){var c,f=this&&this.__extends||(c=function(u,l){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(v[E]=b[E])},c(u,l)},function(u,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function v(){this.constructor=u}c(u,l),u.prototype=l===null?Object.create(l):(v.prototype=l.prototype,new v)}),m=this&&this.__read||function(u,l){var v=typeof Symbol=="function"&&u[Symbol.iterator];if(!v)return u;var b,E,S=v.call(u),P=[];try{for(;(l===void 0||l-- >0)&&!(b=S.next()).done;)P.push(b.value)}catch(C){E={error:C}}finally{try{b&&!b.done&&(v=S.return)&&v.call(S)}finally{if(E)throw E.error}}return P},p=this&&this.__spreadArray||function(u,l,v){if(v||arguments.length===2)for(var b,E=0,S=l.length;E<S;E++)!b&&E in l||(b||(b=Array.prototype.slice.call(l,0,E)),b[E]=l[E]);return u.concat(b||Array.prototype.slice.call(l))};Object.defineProperty(s,"__esModule",{value:!0}),s.createStartFuncFromAsyncFunc=s.Processing=void 0;var g=a(7372),w=a(7372),_=a(4206),y=a(1101),h=a(9651),d=function(u){function l(v){var b=u.call(this)||this;return b._startFunc=v,b._status="Initial",b._runningId=-1,b.dispose(function(){return b.isRunning&&b.cancel()}),b}return f(l,u),Object.defineProperty(l.prototype,"errorEvent",{get:function(){return this._errorEvent||(this._errorEvent=new w.Event),this._errorEvent},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"completeEvent",{get:function(){return this._completeEvent||(this._completeEvent=new w.Event),this._completeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"errorFunc",{get:function(){return this._errorFunc},set:function(v){this._errorFunc!==v&&(this._errorFunc=v)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"completeFunc",{get:function(){return this._completeFunc},set:function(v){this._completeFunc!==v&&(this._completeFunc=v)},enumerable:!1,configurable:!0}),l.prototype.start=function(){for(var v=this,b=[],E=0;E<arguments.length;E++)b[E]=arguments[E];if(this._status==="Initial"){var S=++this._runningId;this._status="Running",this._cancelFunc=this._startFunc.apply(this,p([{completeFunc:function(P){var C;S===v._runningId&&v._status==="Running"&&(v._status="Completed",v._completeFunc&&v._completeFunc(P),(C=v._completeEvent)===null||C===void 0||C.emit(P))},errorFunc:function(P){var C;S===v._runningId&&v._status==="Running"&&(v._status="Error",v._errorFunc&&v._errorFunc(P),(C=v._errorEvent)===null||C===void 0||C.emit(P))},runningingID:S}],m(b),!1))}},l.prototype.cancel=function(v){var b;if(v===void 0&&(v=new _.CancelError("")),this._status==="Running"){if(!this._cancelFunc)throw new Error("!this._cancelFunc");this._status="Error",this._errorFunc&&this._errorFunc(v),(b=this._errorEvent)===null||b===void 0||b.emit(v),this._cancelFunc(v),this._cancelFunc=void 0}},l.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(l.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isInitial",{get:function(){return this._status==="Initial"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isRunning",{get:function(){return this._status==="Running"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isCompleted",{get:function(){return this._status==="Completed"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isError",{get:function(){return this._status==="Error"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"runningId",{get:function(){return this._runningId},enumerable:!1,configurable:!0}),l.prototype.restart=function(v){v===void 0&&(v=new _.CancelError(""));for(var b=[],E=1;E<arguments.length;E++)b[E-1]=arguments[E];this.isRunning&&this.cancel(v),this.reset(),this.start.apply(this,p([],m(b),!1))},l.prototype.restartIfNotRunning=function(){for(var v=[],b=0;b<arguments.length;b++)v[b]=arguments[b];this.isRunning||(this.reset(),this.start.apply(this,p([],m(v),!1)))},l}(g.Destroyable);s.Processing=d,s.createStartFuncFromAsyncFunc=function(u){return function(l){for(var v=[],b=1;b<arguments.length;b++)v[b-1]=arguments[b];var E=new y.CancelsManager,S=l.completeFunc,P=l.errorFunc,C=u.apply(void 0,p([E],m(v),!1)).then(S).catch(P).finally(function(){return E.destroy()});return(0,h.setPromiseCancel)(C,E.cancel.bind(E)),function(x){return(0,h.cancelPromise)(C,x)}}}},1233:(o,s,a)=>{a.r(s),a.d(s,{LRUMap:()=>m});const c=Symbol("newer"),f=Symbol("older");function m(y,h){typeof y!="number"&&(h=y,y=0),this.size=0,this.limit=y,this.oldest=this.newest=void 0,this._keymap=new Map,h&&(this.assign(h),y<1&&(this.limit=this.size))}function p(y,h){this.key=y,this.value=h,this[c]=void 0,this[f]=void 0}function g(y){this.entry=y}function w(y){this.entry=y}function _(y){this.entry=y}m.prototype._markEntryAsUsed=function(y){y!==this.newest&&(y[c]&&(y===this.oldest&&(this.oldest=y[c]),y[c][f]=y[f]),y[f]&&(y[f][c]=y[c]),y[c]=void 0,y[f]=this.newest,this.newest&&(this.newest[c]=y),this.newest=y)},m.prototype.assign=function(y){let h,d=this.limit||Number.MAX_VALUE;this._keymap.clear();let u=y[Symbol.iterator]();for(let l=u.next();!l.done;l=u.next()){let v=new p(l.value[0],l.value[1]);if(this._keymap.set(v.key,v),h?(h[c]=v,v[f]=h):this.oldest=v,h=v,d--==0)throw new Error("overflow")}this.newest=h,this.size=this._keymap.size},m.prototype.get=function(y){var h=this._keymap.get(y);if(h)return this._markEntryAsUsed(h),h.value},m.prototype.set=function(y,h){var d=this._keymap.get(y);return d?(d.value=h,this._markEntryAsUsed(d),this):(this._keymap.set(y,d=new p(y,h)),this.newest?(this.newest[c]=d,d[f]=this.newest):this.oldest=d,this.newest=d,++this.size,this.size>this.limit&&this.shift(),this)},m.prototype.shift=function(){var y=this.oldest;if(y)return this.oldest[c]?(this.oldest=this.oldest[c],this.oldest[f]=void 0):(this.oldest=void 0,this.newest=void 0),y[c]=y[f]=void 0,this._keymap.delete(y.key),--this.size,[y.key,y.value]},m.prototype.find=function(y){let h=this._keymap.get(y);return h?h.value:void 0},m.prototype.has=function(y){return this._keymap.has(y)},m.prototype.delete=function(y){var h=this._keymap.get(y);if(h)return this._keymap.delete(h.key),h[c]&&h[f]?(h[f][c]=h[c],h[c][f]=h[f]):h[c]?(h[c][f]=void 0,this.oldest=h[c]):h[f]?(h[f][c]=void 0,this.newest=h[f]):this.oldest=this.newest=void 0,this.size--,h.value},m.prototype.clear=function(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()},g.prototype[Symbol.iterator]=function(){return this},g.prototype.next=function(){let y=this.entry;return y?(this.entry=y[c],{done:!1,value:[y.key,y.value]}):{done:!0,value:void 0}},w.prototype[Symbol.iterator]=function(){return this},w.prototype.next=function(){let y=this.entry;return y?(this.entry=y[c],{done:!1,value:y.key}):{done:!0,value:void 0}},_.prototype[Symbol.iterator]=function(){return this},_.prototype.next=function(){let y=this.entry;return y?(this.entry=y[c],{done:!1,value:y.value}):{done:!0,value:void 0}},m.prototype.keys=function(){return new w(this.oldest)},m.prototype.values=function(){return new _(this.oldest)},m.prototype.entries=function(){return this},m.prototype[Symbol.iterator]=function(){return new g(this.oldest)},m.prototype.forEach=function(y,h){typeof h!="object"&&(h=this);let d=this.oldest;for(;d;)y.call(h,d.value,d.key,this),d=d[c]},m.prototype.toJSON=function(){for(var y=new Array(this.size),h=0,d=this.oldest;d;)y[h++]={key:d.key,value:d.value},d=d[c];return y},m.prototype.toString=function(){for(var y="",h=this.oldest;h;)y+=String(h.key)+":"+h.value,(h=h[c])&&(y+=" < ");return y}},1291:function(o,s,a){var c,f=this&&this.__extends||(c=function(v,b){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,S){E.__proto__=S}||function(E,S){for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&(E[P]=S[P])},c(v,b)},function(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function E(){this.constructor=v}c(v,b),v.prototype=b===null?Object.create(b):(E.prototype=b.prototype,new E)}),m=this&&this.__awaiter||function(v,b,E,S){return new(E||(E=Promise))(function(P,C){function x(N){try{I(S.next(N))}catch(T){C(T)}}function O(N){try{I(S.throw(N))}catch(T){C(T)}}function I(N){var T;N.done?P(N.value):(T=N.value,T instanceof E?T:new E(function(R){R(T)})).then(x,O)}I((S=S.apply(v,b||[])).next())})},p=this&&this.__generator||function(v,b){var E,S,P,C,x={label:0,sent:function(){if(1&P[0])throw P[1];return P[1]},trys:[],ops:[]};return C={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function O(I){return function(N){return function(T){if(E)throw new TypeError("Generator is already executing.");for(;C&&(C=0,T[0]&&(x=0)),x;)try{if(E=1,S&&(P=2&T[0]?S.return:T[0]?S.throw||((P=S.return)&&P.call(S),0):S.next)&&!(P=P.call(S,T[1])).done)return P;switch(S=0,P&&(T=[2&T[0],P.value]),T[0]){case 0:case 1:P=T;break;case 4:return x.label++,{value:T[1],done:!1};case 5:x.label++,S=T[1],T=[0];continue;case 7:T=x.ops.pop(),x.trys.pop();continue;default:if(!((P=(P=x.trys).length>0&&P[P.length-1])||T[0]!==6&&T[0]!==2)){x=0;continue}if(T[0]===3&&(!P||T[1]>P[0]&&T[1]<P[3])){x.label=T[1];break}if(T[0]===6&&x.label<P[1]){x.label=P[1],P=T;break}if(P&&x.label<P[2]){x.label=P[2],x.ops.push(T);break}P[2]&&x.ops.pop(),x.trys.pop();continue}T=b.call(v,x)}catch(R){T=[6,R],S=0}finally{E=P=0}if(5&T[0])throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}([I,N])}}};Object.defineProperty(s,"__esModule",{value:!0}),s.FlvProcessing=s.FlvJsLoading=void 0;var g=a(1662),w=a(8106),_=a(2220),y=a(5819),h=function(v){function b(){var E=v.call(this)||this;return E._loading=!1,E._loadedEvent=E.disposeVar(new g.Event),E._loaded=!1,E._loadedPromise=new Promise(function(S){E._loadedPromiseResolve=S}),E._processing=E.disposeVar((0,y.createProcessingFromAsyncFunc)(function(S){return m(E,void 0,void 0,function(){var P;return p(this,function(C){switch(C.label){case 0:return this._loading=!0,window.flvjs?(console.info("可能系统已经加载flvjs,此处不再加载!"),[3,3]):[3,1];case 1:return P=_.SceneObject.context.getStrFromEnv(b.path),[4,S.promise((0,g.loadJs)(P))];case 2:C.sent(),C.label=3;case 3:return this._loading=!1,this._loaded=!0,this._loadedEvent.emit(),this._loadedPromiseResolve(),[2]}})})})),E._processingStart=E._processing.start(),E}return f(b,v),Object.defineProperty(b.prototype,"loading",{get:function(){return this._loading},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"loadedEvent",{get:function(){return this._loadedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"loaded",{get:function(){return this._loaded},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"loadedPromise",{get:function(){return this._loadedPromise},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),b.instance=function(){return b._instance=b._instance||new b,b._instance},b.path="${xr-utils-script-dir}/xr-static/xr-utils/flvjs/1.6.2/flv.min.js",b}(g.Destroyable);s.FlvJsLoading=h;var d=function(v){function b(E,S){var P=v.call(this)||this;P._complexImage=E,P._videoSrc=S;var C,x=document.createElement("video");return x.src=P._videoSrc,x.style.position="absolute",x.style.top="0px",x.style.left="0px",x.style.zIndex="-100",x.style.visibility="hidden",(C=function(){x.crossOrigin=P._complexImage.crossOrigin})(),P.dispose(P._complexImage.crossOriginChanged.disposableOn(C)),(C=function(){x.autoplay=P._complexImage.autoplay})(),P.dispose(P._complexImage.autoplayChanged.disposableOn(C)),(C=function(){x.loop=P._complexImage.loop})(),P.dispose(P._complexImage.loopChanged.disposableOn(C)),x.muted=!0,document.body.appendChild(x),P._element=x,P.dispose(function(){return document.body.removeChild(x)}),P}return f(b,v),Object.defineProperty(b.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),b}(g.Destroyable),u=function(v){function b(E,S){var P=v.call(this)||this;return P._complexImage=E,P._videoSrc=S,P._videoDom=P.disposeVar(new d(P._complexImage,"")),P._processing=P.disposeVar((0,y.createProcessingFromAsyncFunc)(function(C){return m(P,void 0,void 0,function(){var x,O,I,N;return p(this,function(T){switch(T.label){case 0:return x=this.videoSrc,O=h.instance(),[4,C.promise(O.loadedPromise)];case 1:return T.sent(),I=window.flvjs,N=this.element,[4,(0,w.step)(C,function(){return new Promise(function(R,A){if(I.isSupported()){var B=I.createPlayer({type:"flv",url:x});B.attachMediaElement(N),B.load(),B.play(),N.xbsjFlvPlayer=B}else A("flvjs不支持!")})})];case 2:return T.sent(),[2]}})})})),P._processingStartup=P._processing.start(),P}return f(b,v),Object.defineProperty(b.prototype,"videoSrc",{get:function(){return this._videoSrc},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"element",{get:function(){return this.videoDom.element},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),b}(g.Destroyable),l=function(v){function b(E,S){var P=v.call(this)||this;return P._complexImage=E,P._imageUri=S,P._videoDom=P.disposeVar(new u(P._complexImage,P._imageUri)),P._update=P.disposeVar((0,w.createAnimateFrameWithStartValues)(function(){return P.update()})),P._updateStart=P._update.start(),P}return f(b,v),Object.defineProperty(b.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"videoElement",{get:function(){return this._videoDom.element},enumerable:!1,configurable:!0}),b.prototype.update=function(){if(!(this.videoElement.readyState<2)){var E=this._complexImage,S=this.videoElement,P=S.videoWidth,C=S.videoHeight;E.size=[P,C],E.pixelFormat="RGBA",E.copyTexture({source:this.videoElement})}},b}(g.Destroyable);s.FlvProcessing=l},1354:(o,s,a)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.forEach=void 0;var c=a(8144);s.forEach=function(f,m){for(var p=(0,c.getIterator)(f),g=0;;){var w=p.next(),_=w.done,y=w.value;if(_)break;m(y,g++)}}},1378:function(o,s,a){var c,f=this&&this.__extends||(c=function(h,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&(u[v]=l[v])},c(h,d)},function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function u(){this.constructor=h}c(h,d),h.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)});Object.defineProperty(s,"__esModule",{value:!0}),s.DivBoxPicker=s.BoxPicker=void 0;var m=a(7372),p=a(7372),g=a(507),w=a(7372),_=function(h){function d(){var u=h.call(this)||this;u._pickRectEvent=u.disposeVar(new p.Event),u._updateRectEvent=u.disposeVar(new p.Event),u._pointerActionEvent=u.disposeVar(new p.Event),u._active=u.disposeVar((0,w.react)(!1)),u._pickRect={left0:0,top0:0,left1:0,top1:0};var l=0,v=0,b=0,E=0;return u.dispose(u._pointerActionEvent.disposableOn(function(S){var P=S.type,C=S.left,x=S.top;P==="PointerDown"?(u._active.value=!0,l=C,v=x,b=C,E=x,u._setPickRect({left0:l,top0:v,left1:b,top1:E}),u._updateRectEvent.emit(u._pickRect)):P==="PointerMove"?u._active.value&&(b=C,E=x,u._setPickRect({left0:l,top0:v,left1:b,top1:E}),u._updateRectEvent.emit(u._pickRect)):P==="PointerUp"&&u._active.value&&(u._active.value=!1,b=C,E=x,u._setPickRect({left0:l,top0:v,left1:b,top1:E}),u._updateRectEvent.emit(u._pickRect),u._pickRectEvent.emit(u._pickRect))})),u}return f(d,h),d.prototype._setPickRect=function(u){var l=u.left0,v=u.left1,b=u.top0,E=u.top1;this._pickRect.left0=l,this._pickRect.left1=v,this._pickRect.top0=b,this._pickRect.top1=E},d.prototype.pointerDown=function(u,l){this._pointerActionEvent.emit({type:"PointerDown",left:u,top:l})},d.prototype.pointerMove=function(u,l){this._pointerActionEvent.emit({type:"PointerMove",left:u,top:l})},d.prototype.pointerUp=function(u,l){this._pointerActionEvent.emit({type:"PointerUp",left:u,top:l})},d.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(d.prototype,"activeEvent",{get:function(){return this._active.changed},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"updateRectEvent",{get:function(){return this._updateRectEvent},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"pickRectEvent",{get:function(){return this._pickRectEvent},enumerable:!1,configurable:!0}),d.getLeftTopAndSize=function(u,l){l=l||{left:0,top:0,width:0,height:0,forward:!0};var v=u.left0,b=u.top0,E=u.left1,S=u.top1;return l.width=Math.abs(v-E),l.height=Math.abs(b-S),l.left=Math.min(v,E),l.top=Math.min(b,S),l.forward=E>v,l},d.contains=function(u,l,v){var b=v.left,E=v.top,S=v.width,P=v.height;return u>b&&u<=b+S&&l>=E&&l<=E+P},d}(m.Destroyable);s.BoxPicker=_;var y=function(h){function d(u){var l=h.call(this)||this,v=l.disposeVar(new g.PointerClickDeprecated(u));l.dispose(v.downEvent.disposableOn(function(P,C,x){return x.altKey&&l.pointerDown(P,C)})),l.dispose(v.moveEvent.disposableOn(function(P,C){return l.pointerMove(P,C)})),l.dispose(v.upEvent.disposableOn(function(P,C){return l.pointerUp(P,C)}));var b=document.createElement("div");b.style.backgroundColor="rgba(0, 0, 0, 0)",b.style.border="2px dashed red",b.style.position="absolute",b.style.boxSizing="border-box",b.style.pointerEvents="none",b.style.height="0px",b.style.width="0px",b.style.left="0px",b.style.top="0px",b.style.display="none",u.appendChild(b),l.dispose(function(){return u.removeChild(b)}),l.dispose(l.activeEvent.disposableOn(function(P){b.style.display=P?"block":"none"}));var E=function(){l.reset()};u.addEventListener("contextmenu",E),l.dispose(function(){return u.removeEventListener("contextmenu",E)});var S={left:0,top:0,width:0,height:0,forward:!1};return l.dispose(l.updateRectEvent.disposableOn(function(P){if(_.getLeftTopAndSize(P,S)){var C=S.left,x=S.top,O=S.width,I=S.height;b.style.height="".concat(0|I,"px"),b.style.width="".concat(0|O,"px"),b.style.left="".concat(0|C,"px"),b.style.top="".concat(0|x,"px")}})),l}return f(d,h),d}(_);s.DivBoxPicker=y},1412:function(o,s,a){var c=this&&this.__createBinding||(Object.create?function(m,p,g,w){w===void 0&&(w=g);var _=Object.getOwnPropertyDescriptor(p,g);_&&!("get"in _?!p.__esModule:_.writable||_.configurable)||(_={enumerable:!0,get:function(){return p[g]}}),Object.defineProperty(m,w,_)}:function(m,p,g,w){w===void 0&&(w=g),m[w]=p[g]}),f=this&&this.__exportStar||function(m,p){for(var g in m)g==="default"||Object.prototype.hasOwnProperty.call(p,g)||c(p,m,g)};Object.defineProperty(s,"__esModule",{value:!0}),f(a(7963),s),f(a(1851),s),f(a(9409),s),f(a(3022),s),f(a(7014),s),f(a(3096),s),f(a(5925),s),f(a(5210),s),f(a(1291),s)},1545:function(o,s,a){var c,f=this&&this.__extends||(c=function(g,w){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,y){_.__proto__=y}||function(_,y){for(var h in y)Object.prototype.hasOwnProperty.call(y,h)&&(_[h]=y[h])},c(g,w)},function(g,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");function _(){this.constructor=g}c(g,w),g.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)});Object.defineProperty(s,"__esModule",{value:!0}),s.RefsManager=void 0;var m=a(1662),p=function(g){function w(_){var y=g.call(this)||this;y._sceneObjRefs=new Map,y._refs={},y._refsChagned=y.disposeVar(new m.Event);var h=function(d,u,l){if(l){var v=y.getLastSceneObject(l);if(S=y._sceneObjRefs.get(l)){var b=S.indexOf(d);b===-1?console.warn("this._sceneObjRefs中不存在当前对象(id: ".concat(d.id," type: ").concat(d.typeName,")!可能系统存在逻辑问题")):(S.splice(b,1),S.length===0&&y._sceneObjRefs.delete(l))}else console.warn("this._sceneObjRefs中不存在ref(".concat(l,"), 可能系统存在逻辑问题"));var E=y.getLastSceneObject(l);y._refs[l]=E,y._refsChagned.emit(E,v)}var S;u&&(v=y.getLastSceneObject(u),(S=y._sceneObjRefs.get(u))?(S.push(d),S.length>0&&console.warn("同时存在多个ref".concat(u,`相同的场景对象!
2
2
  `).concat(S.map(function(P){return"".concat(P.id," ").concat(P.typeName,`
3
3
  `)}).join(" ")))):y._sceneObjRefs.set(u,[d]),E=y.getLastSceneObject(u),y._refs[u]=E,y._refsChagned.emit(E,v))};return y.dispose(_.sceneObjCreatedEvent.disposableOn(function(d){var u=function(l,v){return h(d,l,v)};d.ref&&u(d.ref,void 0),d.refChanged.disposableOn(u)})),y.dispose(_.sceneObjToDestroyEvent.disposableOn(function(d){d.ref&&h(d,void 0,d.ref)})),y}return f(w,g),Object.defineProperty(w.prototype,"sceneObjRefs",{get:function(){return this._sceneObjRefs},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"refs",{get:function(){return this._refs},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"refsChanged",{get:function(){return this._refsChagned},enumerable:!1,configurable:!0}),w.prototype.getLastSceneObject=function(_){var y=this.getSceneObjects(_);if(y)return y[y.length-1]},w.prototype.getSceneObjects=function(_){var y=this._sceneObjRefs.get(_);if(y&&y.length!==0)return y},w}(m.Destroyable);s.RefsManager=p},1662:function(o,s,a){var c=this&&this.__createBinding||(Object.create?function(m,p,g,w){w===void 0&&(w=g);var _=Object.getOwnPropertyDescriptor(p,g);_&&!("get"in _?!p.__esModule:_.writable||_.configurable)||(_={enumerable:!0,get:function(){return p[g]}}),Object.defineProperty(m,w,_)}:function(m,p,g,w){w===void 0&&(w=g),m[w]=p[g]}),f=this&&this.__exportStar||function(m,p){for(var g in m)g==="default"||Object.prototype.hasOwnProperty.call(p,g)||c(p,m,g)};Object.defineProperty(s,"__esModule",{value:!0}),f(a(9359),s),f(a(5600),s),f(a(6555),s),f(a(7941),s),f(a(1085),s),f(a(709),s),f(a(2520),s),f(a(3915),s),f(a(9910),s),f(a(5745),s),f(a(773),s),f(a(7132),s),f(a(8835),s),f(a(7793),s),f(a(1047),s),f(a(4775),s),f(a(2967),s),f(a(5785),s),f(a(5505),s),f(a(5986),s),f(a(9631),s),f(a(6469),s),f(a(5236),s),f(a(6301),s),f(a(2267),s),f(a(5015),s),f(a(3457),s),f(a(2968),s),f(a(8144),s),f(a(3735),s),f(a(6655),s),f(a(2168),s),f(a(7418),s),f(a(1662),s),f(a(7427),s),f(a(1354),s),f(a(4969),s),f(a(3280),s),f(a(9131),s),f(a(1233),s),f(a(433),s),f(a(7008),s),f(a(6362),s),f(a(3009),s),f(a(9970),s),f(a(3804),s),f(a(345),s),f(a(6583),s),f(a(4899),s),f(a(2882),s),f(a(3249),s),f(a(1803),s),f(a(9528),s),f(a(6138),s),f(a(9038),s),f(a(476),s),f(a(8992),s),f(a(6558),s),f(a(6432),s),f(a(2999),s),a(3428)},1801:function(o,s,a){var c=this&&this.__read||function(_,y){var h=typeof Symbol=="function"&&_[Symbol.iterator];if(!h)return _;var d,u,l=h.call(_),v=[];try{for(;(y===void 0||y-- >0)&&!(d=l.next()).done;)v.push(d.value)}catch(b){u={error:b}}finally{try{d&&!d.done&&(h=l.return)&&h.call(l)}finally{if(u)throw u.error}}return v},f=this&&this.__spreadArray||function(_,y,h){if(h||arguments.length===2)for(var d,u=0,l=y.length;u<l;u++)!d&&u in y||(d||(d=Array.prototype.slice.call(y,0,u)),d[u]=y[u]);return _.concat(d||Array.prototype.slice.call(y))};Object.defineProperty(s,"__esModule",{value:!0}),s.createSleepingWithStartValues=s.createSleeping=s.sleep=void 0;var m=a(5726),p=a(921),g=a(9651);function w(_){for(var y,h=[],d=1;d<arguments.length;d++)h[d-1]=arguments[d];var u=void 0,l=new Promise(function(v,b){u=b,y=globalThis.setTimeout(function(){y=void 0,v(h)},_)});return(0,g.setPromiseCancel)(l,function(v){y&&(clearTimeout(y),y=void 0),u&&u(v??new m.CancelError("sleep cancel error!"))}),l}s.sleep=w,s.createSleeping=function(){return(0,p.createProcessingFromPromiseCreateFunc)(w)},s.createSleepingWithStartValues=function(_){for(var y=[],h=1;h<arguments.length;h++)y[h-1]=arguments[h];return p.createProcessingFromPromiseCreateFuncWithStartValues.apply(void 0,f([w,_],c(y),!1))}},1803:function(o,s){var a=this&&this.__values||function(c){var f=typeof Symbol=="function"&&Symbol.iterator,m=f&&c[f],p=0;if(m)return m.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&p>=c.length&&(c=void 0),{value:c&&c[p++],done:!c}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(s,"__esModule",{value:!0}),s.setValueFromProps=s.getValueFromProps=void 0,s.getValueFromProps=function(c,f){var m,p,g=c;try{for(var w=a(f),_=w.next();!_.done;_=w.next())g=g[_.value]}catch(y){m={error:y}}finally{try{_&&!_.done&&(p=w.return)&&p.call(w)}finally{if(m)throw m.error}}return g},s.setValueFromProps=function(c,f,m){if(f.length===0)throw new Error("props的数量必须大于0");for(var p=f.length-1,g=f[p],w=c,_=0;_<p;++_){var y=f[_];w[y]===void 0&&(w[y]={}),w=w[y]}w[g]=m}},1851:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.complexImageTypes=void 0,s.complexImageTypes=["img","gif","video","flv","hls"]},1895:function(o,s,a){var c=this&&this.__generator||function(_,y){var h,d,u,l,v={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return l={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function b(E){return function(S){return function(P){if(h)throw new TypeError("Generator is already executing.");for(;l&&(l=0,P[0]&&(v=0)),v;)try{if(h=1,d&&(u=2&P[0]?d.return:P[0]?d.throw||((u=d.return)&&u.call(d),0):d.next)&&!(u=u.call(d,P[1])).done)return u;switch(d=0,u&&(P=[2&P[0],u.value]),P[0]){case 0:case 1:u=P;break;case 4:return v.label++,{value:P[1],done:!1};case 5:v.label++,d=P[1],P=[0];continue;case 7:P=v.ops.pop(),v.trys.pop();continue;default:if(!((u=(u=v.trys).length>0&&u[u.length-1])||P[0]!==6&&P[0]!==2)){v=0;continue}if(P[0]===3&&(!u||P[1]>u[0]&&P[1]<u[3])){v.label=P[1];break}if(P[0]===6&&v.label<u[1]){v.label=u[1],u=P;break}if(u&&v.label<u[2]){v.label=u[2],v.ops.push(P);break}u[2]&&v.ops.pop(),v.trys.pop();continue}P=y.call(_,v)}catch(C){P=[6,C],d=0}finally{h=u=0}if(5&P[0])throw P[1];return{value:P[0]?P[1]:void 0,done:!0}}([E,S])}}};Object.defineProperty(s,"__esModule",{value:!0}),s.DoublyLinkedList=void 0;var f=new(a(1085)).ObjPool(function(){return{item:void 0,previous:void 0,next:void 0}},function(_){_.item=void 0,_.previous=void 0,_.next=void 0},!0);function m(_,y,h){var d=f.create();return d.item=_,d.previous=y,d.next=h,d}function p(_){if(!_)throw new Error("node is undefined!");f.destroy(_)}function g(_,y){y.previous&&y.next?(y.previous.next=y.next,y.next.previous=y.previous):y.previous?(y.previous.next=void 0,_.tail=y.previous):y.next?(y.next.previous=void 0,_.head=y.next):(_.head=void 0,_.tail=void 0),y.next=void 0,y.previous=void 0}var w=function(){function _(y){var h=(y||{needLength:!0}).needLength;this.head=void 0,this.tail=void 0,h&&(this._length=0)}return _.prototype._incrementLength=function(){typeof this._length=="number"&&++this._length},_.prototype._decrementLength=function(){typeof this._length=="number"&&--this._length},_.prototype._setLength=function(y){typeof this._length=="number"&&(this._length=y)},Object.defineProperty(_.prototype,"length",{get:function(){return this._length},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"empty",{get:function(){return!this.head},enumerable:!1,configurable:!0}),_.prototype[Symbol.iterator]=function(){var y;return c(this,function(h){switch(h.label){case 0:y=this.head,h.label=1;case 1:return y?[4,y]:[3,3];case 2:return h.sent(),y=y.next,[3,1];case 3:return[2]}})},_.prototype.remove=function(y){if(!y)throw new Error("node is undefined!");g(this,y),this._decrementLength(),p(y)},_.prototype.getNode=function(y){for(var h=this.head;h!==null;){if(!h)throw new Error("current is undefined!");if(h.item===y)return h;h=h.next}},_.prototype.moveAfter=function(y,h){if(y!==h){g(this,h);var d=y.next;y.next=h,this.tail===y?this.tail=h:d&&(d.previous=h),h.next=d,h.previous=y}},_.prototype.moveBefore=function(y,h){if(y!==h){g(this,h);var d=y.previous;y.previous=h,this.head===y?this.head=h:d&&(d.next=h),h.previous=d,h.next=y}},_.prototype.insertBefore=function(y,h){var d=m(h,y.previous,y);return y.previous&&(y.previous.next=d),y.previous=d,this.head===y&&(this.head=d),this._incrementLength(),d},_.prototype.insertAfter=function(y,h){var d=m(h,y,y.next);return y.next&&(y.next.previous=d),y.next=d,this.tail===y&&(this.tail=d),this._incrementLength(),d},_.prototype._setFirstNode=function(y){if(this.head||this.tail)throw new Error("_setFirstNode error!");var h=m(y,void 0,void 0);if(this.head=h,this.tail=h,this._incrementLength(),this._length!==1)throw new Error("_setFirstNode error! this._length !== 1");return h},_.prototype.push=function(y){return this.tail?this.insertAfter(this.tail,y):this._setFirstNode(y)},_.prototype.pop=function(){if(!this.tail)throw new Error("DoublyLinkedList is empty!");var y=this.tail.item;return this.remove(this.tail),y},_.prototype.shift=function(){if(!this.head)throw new Error("DoublyLinkedList is empty!");var y=this.head.item;return this.remove(this.head),y},_.prototype.unshift=function(y){return this.head?this.insertBefore(this.head,y):this._setFirstNode(y)},_.prototype.removeAll=function(){for(var y=this.head;y;){var h=y.next;p(y),y=h}this.head=void 0,this.tail=void 0,this._setLength(0)},_}();s.DoublyLinkedList=w},1943:function(o,s,a){var c,f=this&&this.__extends||(c=function(h,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&(u[v]=l[v])},c(h,d)},function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function u(){this.constructor=h}c(h,d),h.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)}),m=this&&this.__read||function(h,d){var u=typeof Symbol=="function"&&h[Symbol.iterator];if(!u)return h;var l,v,b=u.call(h),E=[];try{for(;(d===void 0||d-- >0)&&!(l=b.next()).done;)E.push(l.value)}catch(S){v={error:S}}finally{try{l&&!l.done&&(u=b.return)&&u.call(b)}finally{if(v)throw v.error}}return E},p=this&&this.__spreadArray||function(h,d,u){if(u||arguments.length===2)for(var l,v=0,b=d.length;v<b;v++)!l&&v in d||(l||(l=Array.prototype.slice.call(d,0,v)),l[v]=d[v]);return h.concat(l||Array.prototype.slice.call(d))};Object.defineProperty(s,"__esModule",{value:!0}),s.ThrottlingWithStartValues=s.Throttling=void 0;var g=a(1662),w=a(1148),_=function(h){function d(){var u=h.call(this,function(l,v,b){var E=l.errorFunc;try{var S=m((0,g.throttle)(v,b),2),P=S[0],C=S[1];return u._doFunc=P,C}catch(x){return E(x),function(){}}})||this;return u}return f(d,h),d.prototype.do=function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];this._doFunc&&this._doFunc.apply(this,p([],m(u),!1))},d}(w.Processing);s.Throttling=_;var y=function(h){function d(u,l){var v=h.call(this,function(b){var E=b.errorFunc;try{var S=m((0,g.throttle)(u,l),2),P=S[0],C=S[1];return v._doFunc=P,C}catch(x){return E(x),function(){}}})||this;return v}return f(d,h),d.prototype.do=function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];this._doFunc&&this._doFunc.apply(this,p([],m(u),!1))},d}(w.Processing);s.ThrottlingWithStartValues=y},1968:function(o,s,a){var c,f=this&&this.__extends||(c=function(_,y){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(h[u]=d[u])},c(_,y)},function(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function h(){this.constructor=_}c(_,y),_.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)});Object.defineProperty(s,"__esModule",{value:!0}),s.PointerHover=void 0;var m=a(7372),p=a(7372),g=a(8106),w=function(_){function y(){var h=_.call(this)||this;h._hoverEvent=h.disposeVar(new p.Event),h._hoverOutEvent=h.disposeVar(new p.Event),h._pointerdownEvent=h.disposeVar(new p.Event),h._pointerupEvent=h.disposeVar(new p.Event),h._pointermoveEvent=h.disposeVar(new p.Event),h._pointeroutEvent=h.disposeVar(new p.Event),h.delayTime=800;var d,u=h.disposeVar((0,g.createTimeout)()),l=function(){d?h._hoverEvent.emit(d):console.warn("!lastPointerEvent")};return h.dispose(h._pointerdownEvent.disposableOn(function(v){h._hoverOutEvent.emit()})),h.dispose(h._pointerupEvent.disposableOn(function(v){h._hoverOutEvent.emit()})),h.dispose(h._pointermoveEvent.disposableOn(function(v){d=v,u.restart(void 0,l,h.delayTime),h._hoverOutEvent.emit()})),h.dispose(h._pointeroutEvent.disposableOn(function(v){u.cancel(),h._hoverOutEvent.emit()})),h}return f(y,_),Object.defineProperty(y.prototype,"hoverEvent",{get:function(){return this._hoverEvent},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"hoverOutEvent",{get:function(){return this._hoverOutEvent},enumerable:!1,configurable:!0}),y.prototype.pointerDown=function(h){this._pointerdownEvent.emit(h)},y.prototype.pointerUp=function(h){this._pointerupEvent.emit(h)},y.prototype.pointerMove=function(h){this._pointermoveEvent.emit(h)},y.prototype.pointerOut=function(h){this._pointeroutEvent.emit(h)},y}(m.Destroyable);s.PointerHover=w},2002:(o,s,a)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.sleepDeprecated=void 0;var c=a(5726);s.sleepDeprecated=function(f,m){var p,g=void 0,w=new Promise(function(y,h){g=h,p=globalThis.setTimeout(function(){p=void 0,y()},f)}),_=function(y){p&&(clearTimeout(p),p=void 0),g&&g(y??new c.CancelError("sleep cancel error!"))};return typeof m=="boolean"&&m?[_,w]:m?((0,c._executeSetCancelFuncOrCancelResult)(m,_),w):void 0}},2051:function(o,s,a){var c,f=this&&this.__extends||(c=function(_,y){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(h[u]=d[u])},c(_,y)},function(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function h(){this.constructor=_}c(_,y),_.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)});Object.defineProperty(s,"__esModule",{value:!0}),s.Transition=void 0;var m=a(7372),p=a(7372),g=a(2127),w=function(_){function y(h){var d=_.call(this)||this;return d._stop=d.disposeVar((0,p.react)(0)),d._current=d.disposeVar((0,p.react)(0)),d._start=d.disposeVar((0,p.react)(0)),d._player=d.disposeVar(new g.Player(200)),d.dispose(d._player.currentTimeChangedEvent.disposableOn(function(u){var l=u/d._player.duration;l=l>1?1:l<0?0:l;var v=d._start.value,b=d._stop.value;d._current.value=v+(b-v)*l})),d.duration=h,d}return f(y,_),Object.defineProperty(y.prototype,"current",{get:function(){return this._current.value},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"currentChanged",{get:function(){return this._current.changed},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"source",{get:function(){return this._start.value},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"sourceChanged",{get:function(){return this._start.changed},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"target",{get:function(){return this._stop.value},set:function(h){this._start.value=this._current.value,this._stop.value=h,this._player.currentTime=0,this._player.playing=!0},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"targetChanged",{get:function(){return this._stop.changed},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"duration",{get:function(){return this._player.duration},set:function(h){this._player.duration=h},enumerable:!1,configurable:!0}),y.prototype.reset=function(h){this._start.value=h,this._current.value=h,this._stop.value=h,this._player.playing=!1},y}(m.Destroyable);s.Transition=w},2075:(o,s,a)=>{a.r(s),a.d(s,{TaskProcessor:()=>u});var c=a(1662),f=a(2243);function m(v,b){return v??b}const p=Error,g=Error;function w(){if(!(0,f.defined)(u._canTransferArrayBuffer)){var v=new Worker(y("transferTypedArrayTest.js"));v.postMessage=m(v.webkitPostMessage,v.postMessage);var b=new Int8Array([99]);try{v.postMessage({array:b},[b.buffer])}catch{return u._canTransferArrayBuffer=!1,u._canTransferArrayBuffer}var E=f.when.defer();v.onmessage=function(S){var P=S.data.array,C=(0,f.defined)(P)&&P[0]===99;E.resolve(C),v.terminate(),u._canTransferArrayBuffer=C},u._canTransferArrayBuffer=E.promise}return u._canTransferArrayBuffer}function _(v,b){--v._activeTasks;var E=b.id;if((0,f.defined)(E)){var S=v._deferreds,P=S[E];if((0,f.defined)(b.error)){var C=b.error;C.name==="RuntimeError"?(C=new g(b.error.message)).stack=b.error.stack:C.name==="DeveloperError"&&((C=new p(b.error.message)).stack=b.error.stack),P.reject(C)}else P.resolve(b.result);delete S[E]}}function y(v){var b=function(C){return C=C.endsWith(".js")?C:C+".js",(0,c.getFinalUri)(C,u.workerBaseAbsoluteUri)}(v);if((0,c.isCrossOriginUrl)(b)){var E,S='importScripts("'+b+'");';try{E=new Blob([S],{type:"application/javascript"})}catch{var P=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);P.append(S),E=P.getBlob("application/javascript")}b=(window.URL||window.webkitURL).createObjectURL(E)}return b}var h;function d(v){var b=new Worker(((0,f.defined)(h)||(h=y("cesiumWorkerBootstrapper.js")),h));b.postMessage=m(b.webkitPostMessage,b.postMessage);const E=(0,c.isAbsoluteUri)(u.workerBaseAbsoluteUri)?u.workerBaseAbsoluteUri:"";var S={loaderConfig:{paths:{Workers:E},baseUrl:E},workerModule:v._workerName};return b.postMessage(S),b.onmessage=function(P){_(v,P.data)},b}function u(v,b){this._workerName=v,this._maximumActiveTasks=m(b,5),this._activeTasks=0,this._deferreds={},this._nextID=0}var l=[];u.prototype.scheduleTask=function(v,b){if((0,f.defined)(this._worker)||(this._worker=d(this)),!(this._activeTasks>=this._maximumActiveTasks)){++this._activeTasks;var E=this;return(0,f.when)(w(),function(S){(0,f.defined)(b)?S||(b.length=0):b=l;var P=E._nextID++,C=f.when.defer();return E._deferreds[P]=C,E._worker.postMessage({id:P,parameters:v,canTransferArrayBuffer:S},b),C.promise})}},u.prototype.initWebAssemblyModule=function(v){(0,f.defined)(this._worker)||(this._worker=d(this));var b=f.when.defer(),E=this,S=this._worker;return getWebAssemblyLoaderConfig(this,v).then(function(P){return(0,f.when)(w(),function(C){var x,O=P.wasmBinary;(0,f.defined)(O)&&C&&(x=[O]),S.onmessage=function(I){S.onmessage=function(N){_(E,N.data)},b.resolve(I.data)},S.postMessage({webAssemblyConfig:P},x)})}),b},u.prototype.isDestroyed=function(){return!1},u.prototype.destroy=function(){return(0,f.defined)(this._worker)&&this._worker.terminate(),(0,c.destroyObject)(this)},u._defaultWorkerModulePrefix="Workers/",u._workerModulePrefix=u._defaultWorkerModulePrefix,u._canTransferArrayBuffer=void 0,u.workerBaseAbsoluteUri="xr-static/workers/core"},2082:(o,s)=>{function a(){return!0}function c(){throw new Error("throwOnDestroyed")}Object.defineProperty(s,"__esModule",{value:!0}),s.destroyObject=void 0,s.destroyObject=function(f){for(var m in f)typeof f[m]=="function"&&(f[m]=c);f.isDestroyed=a}},2127:function(o,s,a){var c,f=this&&this.__extends||(c=function(y,h){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(d[l]=u[l])},c(y,h)},function(y,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function d(){this.constructor=y}c(y,h),y.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)});Object.defineProperty(s,"__esModule",{value:!0}),s.Player=void 0;var m=a(7372),p=a(7372),g=a(7372),w=a(1662),_=function(y){function h(d,u){d===void 0&&(d=1e3),u===void 0&&(u=w.defaultStartUpdateFunc);var l=y.call(this)||this;return l._currentTime=l.disposeVar((0,g.react)(0)),l._speed=1,l._duration=d,l._loop=!1,l.startUpdateFunc=u,l._updateBindThis=l._update.bind(l),l.dispose(function(){l._cancelStartUpdateFunc&&(l._cancelStartUpdateFunc(),l._cancelStartUpdateFunc=void 0)}),l._startTimeStamp=Number.NaN,l.dispose(function(){l._startPlayingEvent&&l._startPlayingEvent.reset(),l._stopPlayingEvent&&l._stopPlayingEvent.reset()}),l}return f(h,y),Object.defineProperty(h.prototype,"startPlayingEvent",{get:function(){return this._startPlayingEvent=this._startPlayingEvent||new p.Event,this._startPlayingEvent},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"stopPlayingEvent",{get:function(){return this._stopPlayingEvent=this._stopPlayingEvent||new p.Event,this._stopPlayingEvent},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"currentTimeChangedEvent",{get:function(){return this._currentTime.changed},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"loopChangedEvent",{get:function(){return this._loopChangedEvent=this._loopChangedEvent||new p.Event,this._loopChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"loop",{get:function(){return this._loop},set:function(d){this._loop!==d&&(this._loop=d,this._loopChangedEvent&&this._loopChangedEvent.emit(this._loop))},enumerable:!1,configurable:!0}),h.prototype._update=function(d){if(Number.isNaN(this._startTimeStamp))console.warn("Number.isNaN(this._startTimeStamp)");else{var u=(d-this._startTimeStamp)*this._speed;this._setCurrentTimeInner(u)}},Object.defineProperty(h.prototype,"currentTime",{get:function(){return this._currentTime.value},set:function(d){this._setCurrentTimeInner(d),this._resetStartTime()},enumerable:!1,configurable:!0}),h.prototype._setCurrentTimeInner=function(d){this._currentTime.value!==d&&(this._duration<=0?this._currentTime.value=0:d<0?this.loop?this._currentTime.value=this._duration+d%this._duration:(this._currentTime.value=0,this.playing&&this._stopPlaying()):d>this._duration?this.loop?this._currentTime.value=d%this._duration:(this._currentTime.value=this._duration,this.playing&&this._stopPlaying()):this._currentTime.value=d)},Object.defineProperty(h.prototype,"durationChangedEvent",{get:function(){return this._durationChangedEvent||(this._durationChangedEvent=new p.Event),this._durationChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"duration",{get:function(){return this._duration},set:function(d){var u;if(d<0)console.warn("duration sholud greater than 0!");else if(this._duration!==d){var l=this._duration;this._duration=d,this._currentTime.value>this._duration&&(this._currentTime.value=this._duration),(u=this._durationChangedEvent)===null||u===void 0||u.emit(this._duration,l)}},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"speedChangedEvent",{get:function(){return this._speedChangedEvent||(this._speedChangedEvent=new p.Event),this._speedChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"speed",{get:function(){return this._speed},set:function(d){var u;if(this._speed!==d&&d!==0){var l=this._speed;this._speed=d,this._resetStartTime(),(u=this._speedChangedEvent)===null||u===void 0||u.emit(this._speed,l)}},enumerable:!1,configurable:!0}),h.prototype._resetStartTime=function(){this._startTimeStamp=performance.now()-this._currentTime.value/this._speed},h.prototype._startPlaying=function(){var d,u;this._resetStartTime(),this._cancelStartUpdateFunc=this.startUpdateFunc(this._updateBindThis),(d=this._startPlayingEvent)===null||d===void 0||d.emit(this._currentTime.value),(u=this._playingChangedEvent)===null||u===void 0||u.emit(!0)},h.prototype._stopPlaying=function(){var d,u;if(!this._cancelStartUpdateFunc)throw new Error("this._cancelStartUpdateFunc is undefined!");this._cancelStartUpdateFunc(),this._cancelStartUpdateFunc=void 0,(d=this._stopPlayingEvent)===null||d===void 0||d.emit(this._currentTime.value),(u=this._playingChangedEvent)===null||u===void 0||u.emit(!1)},Object.defineProperty(h.prototype,"playingChangedEvent",{get:function(){return this._playingChangedEvent||(this._playingChangedEvent=new p.Event),this._playingChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"playing",{get:function(){return!!this._cancelStartUpdateFunc},set:function(d){!!this._cancelStartUpdateFunc!==d&&(d?this._startPlaying():this._stopPlaying())},enumerable:!1,configurable:!0}),h}(m.Destroyable);s.Player=_},2168:(o,s,a)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.getReactFuncs=void 0;var c=a(8835),f=a(6583);s.getReactFuncs=function(m){var p=(0,c.getCompleteReactParams)(m);return[function(){return p[0][p[1]]},function(g){try{p[0][p[1]]=g}catch(w){(0,f.oneTimeWarning)("setValue error, obj(".concat(p[0].constructor.name,") prop(").concat(p[1],") error(").concat(w,")"))}},p[0][p[2]]]}},2217:function(o,s,a){var c,f=this&&this.__extends||(c=function(h,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&(u[v]=l[v])},c(h,d)},function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function u(){this.constructor=h}c(h,d),h.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)}),m=this&&this.__read||function(h,d){var u=typeof Symbol=="function"&&h[Symbol.iterator];if(!u)return h;var l,v,b=u.call(h),E=[];try{for(;(d===void 0||d-- >0)&&!(l=b.next()).done;)E.push(l.value)}catch(S){v={error:S}}finally{try{l&&!l.done&&(u=b.return)&&u.call(b)}finally{if(v)throw v.error}}return E};Object.defineProperty(s,"__esModule",{value:!0}),s.PointerHoverDeprecated=void 0;var p=a(7372),g=a(7372),w=a(109),_=a(2299),y=function(h){function d(u,l){l===void 0&&(l=1500);var v=h.call(this)||this;v._hoverEvent=new g.Event,v._hoverOutEvent=new g.Event;var b=new w.DebouncingDeprecated(l);v.dispose(function(){return b.destroy()});var E,S=0,P=0;b.progressFunc=function(){return v._hoverEvent.emit(S,P,E)};var C=function(N){var T;!b.isRunning&&b.restart(),E=N,T=m((0,_.getDomEventCurrentTargetPos)(N),2),S=T[0],P=T[1],b.debounce(),v._hoverOutEvent.emit()},x=function(N){var T;!b.isRunning&&b.restart(),E=N,T=m((0,_.getDomEventCurrentTargetPos)(E),2),S=T[0],P=T[1],b.debounce(),v._hoverOutEvent.emit()},O=function(N){var T;!b.isRunning&&b.restart(),E=N,T=m((0,_.getDomEventCurrentTargetPos)(E),2),S=T[0],P=T[1],b.debounce(),v._hoverOutEvent.emit()},I=function(N){b.isRunning&&b.cancel(),v._hoverOutEvent.emit()};return u.addEventListener("pointerdown",C),u.addEventListener("pointerup",x),u.addEventListener("pointermove",O),u.addEventListener("pointerout",I),v.dispose(function(){u.removeEventListener("pointerdown",C),u.removeEventListener("pointerup",x),u.removeEventListener("pointermove",O),u.removeEventListener("pointerout",I)}),v}return f(d,h),Object.defineProperty(d.prototype,"hoverEvent",{get:function(){return this._hoverEvent},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"hoverOutEvent",{get:function(){return this._hoverOutEvent},enumerable:!1,configurable:!0}),d}(p.Destroyable);s.PointerHoverDeprecated=y},2220:function(o,s,a){var c,f=this&&this.__extends||(c=function(l,v){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,E){b.__proto__=E}||function(b,E){for(var S in E)Object.prototype.hasOwnProperty.call(E,S)&&(b[S]=E[S])},c(l,v)},function(l,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function b(){this.constructor=l}c(l,v),l.prototype=v===null?Object.create(v):(b.prototype=v.prototype,new b)}),m=this&&this.__createBinding||(Object.create?function(l,v,b,E){E===void 0&&(E=b);var S=Object.getOwnPropertyDescriptor(v,b);S&&!("get"in S?!v.__esModule:S.writable||S.configurable)||(S={enumerable:!0,get:function(){return v[b]}}),Object.defineProperty(l,E,S)}:function(l,v,b,E){E===void 0&&(E=b),l[E]=v[b]}),p=this&&this.__exportStar||function(l,v){for(var b in l)b==="default"||Object.prototype.hasOwnProperty.call(v,b)||m(v,l,b)},g=this&&this.__values||function(l){var v=typeof Symbol=="function"&&Symbol.iterator,b=v&&l[v],E=0;if(b)return b.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&E>=l.length&&(l=void 0),{value:l&&l[E++],done:!l}}};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")},w=this&&this.__read||function(l,v){var b=typeof Symbol=="function"&&l[Symbol.iterator];if(!b)return l;var E,S,P=b.call(l),C=[];try{for(;(v===void 0||v-- >0)&&!(E=P.next()).done;)C.push(E.value)}catch(x){S={error:x}}finally{try{E&&!E.done&&(b=P.return)&&b.call(P)}finally{if(S)throw S.error}}return C},_=this&&this.__spreadArray||function(l,v,b){if(b||arguments.length===2)for(var E,S=0,P=v.length;S<P;S++)!E&&S in v||(E||(E=Array.prototype.slice.call(v,0,S)),E[S]=v[S]);return l.concat(E||Array.prototype.slice.call(v))};Object.defineProperty(s,"__esModule",{value:!0}),s.SceneObject=void 0;var y=a(1662),h=a(3815),d=a(2723),u=function(l){function v(b){var E=l.call(this)||this;return E._components=E.disposeVar(new h.ObservableSet),b!==void 0&&(typeof b!="string"?console.warn("场景对象创建时的ID必须是字符串类型,而这里是id的类型是".concat(typeof b,",值为").concat(b)):b.trim()===""?console.warn("场景对象创建时的ID不能是空字符串!"):b.trim()!==b&&console.warn("id前后有空字符串!id: ".concat(b))),E._id=b??(0,y.createGuid)(),E._setDefaultName(),E}return f(v,l),Object.defineProperty(v,"sceneObjs",{get:function(){return v.context.sceneObjs},enumerable:!1,configurable:!0}),v.getSceneObjById=function(b){return v.context.getSceneObjectById(b)},v.getSceneObjsByDevTags=function(b){return v.context.getSceneObjectsByDevTags(b)},Object.defineProperty(v,"$refs",{get:function(){return v.context.refsManager.refs},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"defaultProps",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"id",{get:function(){return this._id},set:function(b){console.error("当前正在试图修改场景对象(".concat(this.name,"/").concat(this.typeName,")的ID,只有在创建时才可以设置ID!后期修改无效!!!"))},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"components",{get:function(){return this._components},enumerable:!1,configurable:!0}),v.prototype._setDefaultName=function(){this.name="".concat(this.typeName,"_").concat((""+this.id).slice(-4))},v.prototype._innerGetJson=function(b){var E,S;b===void 0&&(b=!0);var P={id:this.id,type:this.typeName};try{for(var C=g(Object.keys(this.defaultProps)),x=C.next();!x.done;x=C.next()){var O=x.value;if(b){var I=this.defaultProps[O];(I instanceof y.ReactiveVariable?I.equals(this[O]):I===this[O])||(P[O]=this[O])}else P[O]=this[O]}}catch(N){E={error:N}}finally{try{x&&!x.done&&(S=C.return)&&S.call(C)}finally{if(E)throw E.error}}return P},v.prototype._innerSetJson=function(b,E,S){var P,C;if(b instanceof Object&&(!b.type||b.type===this.typeName)){b.id&&b.id!==this.id&&console.warn("value.id === undefined || value.id".concat(b.id," !== this.id(").concat(this.id,")"));var x=E||[];x.push("id","type");var O=Object.keys(this.defaultProps).filter(function(A){return!x.includes(A)});try{for(var I=g(O),N=I.next();!N.done;N=I.next()){var T=N.value;if(T in b)this[T]=b[T]===null?void 0:b[T];else if(S==null||!S){var R=this.defaultProps[T];R instanceof y.ReactiveVariable&&(R=R.value),this[T]=R}}}catch(A){P={error:A}}finally{try{N&&!N.done&&(C=I.return)&&C.call(I)}finally{if(P)throw P.error}}}else console.error("value.type && value.type".concat(b.type," !== this.typeName").concat(this.typeName))},v.prototype.setJsonWithoutDefaults=function(b){this._innerSetJson(b,void 0,!0)},v.prototype.setJsonWithDefaults=function(b){this._innerSetJson(b,void 0,!1)},v.prototype.getJsonWithDefaults=function(){return this._innerGetJson(!1)},v.prototype.getJsonWithoutDefaults=function(){return this._innerGetJson(!0)},Object.defineProperty(v.prototype,"jsonStr",{get:function(){return JSON.stringify(this.json,void 0," ")},set:function(b){try{this.json=b&&JSON.parse(b)||{}}catch(E){console.error("SceneObject解析json数据时发生错误!error: ".concat(E))}},enumerable:!1,configurable:!0}),v.prototype.addDevTag=function(){for(var b=this,E=[],S=0;S<arguments.length;S++)E[S]=arguments[S];if(this.devTags){var P=E.filter(function(C){return!b.devTags.includes(C)});P.length>0&&(this.devTags=_(_([],w(this.devTags),!1),w(P),!1))}else this.devTags=E},v.prototype.deleteDevTag=function(){for(var b=[],E=0;E<arguments.length;E++)b[E]=arguments[E];if(this.devTags){var S=this.devTags.filter(function(P){return!b.includes(P)});this.devTags=S}},Object.defineProperty(v.prototype,"selfCreatedEvent",{get:function(){var b=this;return this._selfCreatedEvent||(this._selfCreatedEvent=this.disposeVar(new y.Event),this.dispose(v.context.sceneObjCreatedEvent.disposableOn(function(E){if(!b._selfCreatedEvent)throw new Error("!this._createdEvent");E===b&&b._selfCreatedEvent.emit()}))),this._selfCreatedEvent},enumerable:!1,configurable:!0}),v.context=new d.SceneObjectsContext,v.register=v.context.register.bind(v.context),v.create=v.context.createSceneObject.bind(v.context),v.createFromClass=v.context.createSceneObjectFromClass.bind(v.context),v.createFromJson=v.context.createSceneObjectFromJson.bind(v.context),v}(y.Destroyable);s.SceneObject=u,function(l){l.createDefaultProps=function(){return{name:"未命名场景对象",ref:void 0,devTags:(0,y.reactArrayWithUndefined)(void 0),extras:(0,y.reactJson)(void 0)}}}(u=s.SceneObject||(s.SceneObject={})),s.SceneObject=u,(0,y.extendClassProps)(u.prototype,u.createDefaultProps),p(a(146),s)},2228:(o,s)=>{function a(C,x){return x===void 0&&(x=[0,0]),x[0]=-C[1],x[1]=C[0],x}function c(C,x,O){return O===void 0&&(O=[0,0]),O[0]=C[0]-x[0],O[1]=C[1]-x[1],O}function f(C,x){x===void 0&&(x=[0,0]);var O=function(I){return Math.sqrt(function(N){return N[0]*N[0]+N[1]*N[1]}(I))}(C);return x[0]=C[0]/O,x[1]=C[1]/O,x}function m(C,x){return x===void 0&&(x=[0,0]),x[0]=-C[0],x[1]=-C[1],x}function p(C,x,O){return O===void 0&&(O=[0,0]),O[0]=C[0]*x,O[1]=C[1]*x,O}function g(C,x,O){return O===void 0&&(O=[0,0]),O[0]=C[0]+x[0],O[1]=C[1]+x[1],O}function w(C,x){var O,I,N=(I=x,(O=C)[0]*I[0]+O[1]*I[1]),T=Math.acos(N);return 1/Math.cos(T/2)}function _(C,x,O){return O===void 0&&(O=[0,0]),O[0]=C,O[1]=x,O}Object.defineProperty(s,"__esModule",{value:!0}),s.extrudePolyline=void 0;var y=[0,0],h=[0,0],d=[0,0],u=[0,0],l=[0,0],v=[0,0],b=[0,0],E=[0,0];function S(C,x,O,I,N,T){var R=c(C,x,E),A=a(f(R,R),u),B=c(O,C,E),k=a(f(B,B),v),z=m(A,l),j=m(k,b),L=g(A,k);f(L,L);var F,G,W=(G=k,(F=A)[0]*G[1]-F[1]*G[0]);if(Math.abs(W)<.1)g(H=p(L,I,E),C,H),T.push(H[0],H[1]),N.push(T.length/2),T.push(C[0],C[1]),N.push(T.length/2),p(J=m(L,E),I,J),g(J,C,J),T.push(J[0],J[1]),N.push(T.length/2);else if(W<0){g(H=p(A,I,E),C,H),T.push(H[0],H[1]);var V=p(L,I,E);g(V,C,V),T.push(V[0],V[1]),g(J=p(k,I,E),C,J),T.push(J[0],J[1]),N.push(T.length/2),T.push(C[0],C[1]),N.push(T.length/2),U=(U=w(j,z))>3?3:U,p(Y=m(L,E),U*I,Y),g(Y,C,Y),T.push(Y[0],Y[1]),N.push(T.length/2)}else{var U,H,J;g(H=p(L,(U=(U=w(A,k))>3?3:U)*I,E),C,H),T.push(H[0],H[1]),N.push(T.length/2),T.push(C[0],C[1]),N.push(T.length/2),g(J=p(z,I,E),C,J),T.push(J[0],J[1]);var Y,re=m(L,E);p(re,I,re),g(re,C,re),T.push(re[0],re[1]),g(Y=p(j,I,E),C,Y),T.push(Y[0],Y[1]),N.push(T.length/2)}}var P=[];s.extrudePolyline=function(C,x,O,I,N,T){O===void 0&&(O=!1),I=I??[],N=N??[],T=T??[];var R=P;R.length=0,function(A,B,k,z,j){if(k===void 0&&(k=!1),A.length%2!=0)throw new Error("positions.length % 2 !== 0");z=z??[],j=j??[];var L=A,F=L.length/2;if(!(F<2)){if(k){if(!(F>=3))throw new Error("loop should have >= 3 vertex!");var G=_(L[0],L[1],y),W=_(L[2],L[3],d);S(G,_(L[2*(F-1)+0],L[2*(F-1)+1],h),W,B,j,z)}else{G=_(L[0],L[1],y);var V=c(W=_(L[2],L[3],d),G,E),U=a(f(V,V),v);g(J=p(U,B,E),G,J),z.push(J[0],J[1]),j.push(z.length/2),z.push(G[0],G[1]),j.push(z.length/2),p(Y=m(U,E),B,Y),g(Y,G,Y),z.push(Y[0],Y[1]),j.push(z.length/2)}if(F>=3)for(var H=1;H<F-1;++H)G=_(L[2*H+0],L[2*H+1],y),W=_(L[2*(H+1)+0],L[2*(H+1)+1],d),S(G,_(L[2*(H-1)+0],L[2*(H-1)+1],h),W,B,j,z);if(k){if(!(F>=3))throw new Error("loop should have >= 3 vertex!");G=_(L[2*(F-1)+0],L[2*(F-1)+1],y),W=_(L[0],L[1],d),S(G,_(L[2*(F-2)+0],L[2*(F-2)*1],h),W,B,j,z)}else{var J,Y,re=c(G=_(L[2*(F-1)+0],L[2*(F-1)+1],y),_(L[2*(F-2)+0],L[2*(F-2)+1],h),E),ae=a(f(re,re),u);g(J=p(ae,B,E),G,J),z.push(J[0],J[1]),j.push(z.length/2),z.push(G[0],G[1]),j.push(z.length/2),p(Y=m(ae,E),B,Y),g(Y,G,Y),z.push(Y[0],Y[1]),j.push(z.length/2)}}}(C,.5*x,O,I,R),function(A,B,k,z,j){if(z=z||[],j=j||[],A.length%2!=0)throw new Error("extrudedPositions.length % 2 !== 0");if(k.length%3!=0)throw new Error("extrudesSegments.length % 3 !== 0");for(var L=k.length/3,F=0,G=0;G<L;++G){for(var W=k[3*G+0],V=k[3*G+1],U=k[3*G+2],H=F;H<W;++H)z.push(0,0);if(W-F>=2)for(var J=F+1;J<W;++J)j.push(W,J,J-1);z.push(0,.5);for(var Y=V;Y<U;++Y)z.push(0,1);if(U-V>=2)for(var re=V+1;re<U;++re)j.push(W,re-1,re);F=U}for(F=0,G=0;G<L-1;++G){var ae=k[3*G+0]-1,te=k[3*G+1]-1,me=k[3*G+2]-1,be=k[3*G+2],ie=k[3*(G+1)+0],fe=k[3*(G+1)+1];j.push(ae,te,ie),j.push(ae,ie,be),j.push(te,me,fe),j.push(te,fe,ie)}B&&(ae=k[3*(L-1)+0]-1,te=k[3*(L-1)+1]-1,me=k[3*(L-1)+2]-1,be=0,ie=k[0],fe=k[1],j.push(ae,te,ie),j.push(ae,ie,be),j.push(te,me,fe),j.push(te,fe,ie))}(I,O,R,N,T)}},2243:function(o,s,a){var c=this&&this.__createBinding||(Object.create?function(m,p,g,w){w===void 0&&(w=g);var _=Object.getOwnPropertyDescriptor(p,g);_&&!("get"in _?!p.__esModule:_.writable||_.configurable)||(_={enumerable:!0,get:function(){return p[g]}}),Object.defineProperty(m,w,_)}:function(m,p,g,w){w===void 0&&(w=g),m[w]=p[g]}),f=this&&this.__exportStar||function(m,p){for(var g in m)g==="default"||Object.prototype.hasOwnProperty.call(p,g)||c(p,m,g)};Object.defineProperty(s,"__esModule",{value:!0}),f(a(5486),s),f(a(3631),s)},2267:(o,s)=>{function a(c,f){return(new Array(f).join("0")+c).slice(-f)}Object.defineProperty(s,"__esModule",{value:!0}),s.getDateTime=s.formatInterger=void 0,s.formatInterger=a,s.getDateTime=function(){var c=function(h){return a(h,2)},f=new Date,m=f.getFullYear(),p=f.getMonth()+1,g=f.getDate(),w=f.getHours(),_=f.getMinutes(),y=f.getSeconds();return"".concat(m,"-").concat(c(p),"-").concat(c(g)," ").concat(c(w),":").concat(c(_),":").concat(c(y))}},2277:function(o,s,a){var c,f=this&&this.__extends||(c=function(_,y){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(h[u]=d[u])},c(_,y)},function(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function h(){this.constructor=_}c(_,y),_.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)});Object.defineProperty(s,"__esModule",{value:!0}),s.CanvasPrimitive=void 0;var m=a(1662),p=a(7372),g=a(7372),w=function(_){function y(h,d){d===void 0&&(d={});var u=_.call(this)||this;u._canvasPrimitivesContext=h,u._id=(0,m.createGuid)(),u._actived=!1,u._hovered=!1,u._selected=!1,u._opacity=1,u._show=!0;var l=d.needRedraw,v=l===void 0||l,b=d.needPickRedraw,E=b===void 0||b;return v&&(u._needRedrawEvent=new g.Event),E&&(u._needPickRedrawEvent=new g.Event),u._canvasPrimitivesContext.addPoi(u),u.dispose(function(){return u._canvasPrimitivesContext.removePoi(u)}),u.dispose(u.showChanged.disposableOn(function(){u.needRedraw(),u.needPickRedraw()})),u.dispose(u.opacityChanged.disposableOn(function(){return u.needRedraw()})),u}return f(y,_),Object.defineProperty(y.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"context",{get:function(){return this._canvasPrimitivesContext},enumerable:!1,configurable:!0}),y.prototype.needRedraw=function(){this._needRedrawEvent?this._needRedrawEvent.emit():console.warn("no needRedrawEvent!")},y.prototype.needPickRedraw=function(){this._needPickRedrawEvent?this._needPickRedrawEvent.emit():console.warn("no needPickRedrawEvent!")},y.prototype.hasClickEvent=function(){return!!this._clickEvent},Object.defineProperty(y.prototype,"clickEvent",{get:function(){return this._clickEvent=this._clickEvent||new g.Event,this._clickEvent},enumerable:!1,configurable:!0}),y.prototype.hasClickOutEvent=function(){return!!this._clickOutEvent},Object.defineProperty(y.prototype,"clickOutEvent",{get:function(){return this._clickOutEvent=this._clickOutEvent||new g.Event,this._clickOutEvent},enumerable:!1,configurable:!0}),y.prototype.hasDbclickEvent=function(){return!!this._dbclickEvent},Object.defineProperty(y.prototype,"dbclickEvent",{get:function(){return this._dbclickEvent=this._dbclickEvent||new g.Event,this._dbclickEvent},enumerable:!1,configurable:!0}),y.prototype.hasDbclickOutEvent=function(){return!!this._dbclickOutEvent},Object.defineProperty(y.prototype,"dbclickOutEvent",{get:function(){return this._dbclickOutEvent=this._dbclickOutEvent||new g.Event,this._dbclickOutEvent},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"actived",{get:function(){return this._actived},set:function(h){this._actived!==h&&(this._actived=h,this._activedChanged&&this._activedChanged.emit(h,this))},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"activedChanged",{get:function(){return this._activedChanged=this._activedChanged||new g.Event,this._activedChanged},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"hovered",{get:function(){return this._hovered},set:function(h){this._hovered!==h&&(this._hovered=h,this._hoveredChanged&&this._hoveredChanged.emit(h,this))},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"hoveredChanged",{get:function(){return this._hoveredChanged=this._hoveredChanged||new g.Event,this._hoveredChanged},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"selected",{get:function(){return this._selected},set:function(h){this._selected!==h&&(this._selected=h,this._selectedChanged&&this._selectedChanged.emit(h,this))},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"selectedChanged",{get:function(){return this._selectedChanged=this._selectedChanged||new g.Event,this._selectedChanged},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"opacity",{get:function(){return this._opacity},set:function(h){this._opacity!==h&&(this._opacity=h,this._opacityChanged&&this._opacityChanged.emit(h,this))},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"opacityChanged",{get:function(){return this._opacityChanged=this._opacityChanged||new g.Event,this._opacityChanged},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"show",{get:function(){return this._show},set:function(h){this._show!==h&&(this._show=h,this._showChanged&&this._showChanged.emit(h,this))},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"showChanged",{get:function(){return this._showChanged=this._showChanged||new g.Event,this._showChanged},enumerable:!1,configurable:!0}),y}(p.Destroyable);s.CanvasPrimitive=w},2299:(o,s)=>{function a(f,m){m=m||[];var p=f.parentNode;return p?a(p,m.concat(p)):m}function c(f){var m=f.composedPath&&f.composedPath()||f.path,p=f.target;if(m!=null)return m.indexOf(window)<0?m.concat(window):m;if(p===window)return[window];if(p===null)throw new Error("target === null");return[p].concat(a(p),window)}Object.defineProperty(s,"__esModule",{value:!0}),s.getDomEventCurrentTargetPos=void 0,s.getDomEventCurrentTargetPos=function(f,m){m===void 0&&(m=!1);for(var p=f.offsetX,g=f.offsetY,w=c(f),_=0;_<w.length;++_){var y=w[_];if(!(y!==f.currentTarget&&y instanceof HTMLElement))break;p+=y.clientLeft,g+=y.clientTop,p+=y.offsetLeft,g+=y.offsetTop}return m?[p*window.devicePixelRatio,g*window.devicePixelRatio]:[p,g]}},2429:function(o,s,a){var c,f=this&&this.__extends||(c=function(d,u){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,v){l.__proto__=v}||function(l,v){for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&(l[b]=v[b])},c(d,u)},function(d,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");function l(){this.constructor=d}c(d,u),d.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}),m=this&&this.__values||function(d){var u=typeof Symbol=="function"&&Symbol.iterator,l=u&&d[u],v=0;if(l)return l.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&v>=d.length&&(d=void 0),{value:d&&d[v++],done:!d}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(s,"__esModule",{value:!0}),s.destroyAnimationWithChildren=s.Animation=s.Channel=void 0;var p=a(7372),g=a(1662),w=a(7372),_=0,y=function(d){function u(l,v){l===void 0&&(l=0),v===void 0&&(v=1e3);var b=d.call(this)||this;return b._startTime=Number.NaN,b._enabled=!0,b._animation=new h(v),b.dispose(function(){return b._animation.destroy()}),b.dispose(function(){b._changedEvent&&(b._changedEvent.reset(),b._changedEvent=void 0)}),b.startTime=l,b.dispose(b._animation.changedEvent.disposableOn(function(){b.changedEvent&&b.changedEvent.emit(b)})),b}return f(u,d),Object.defineProperty(u.prototype,"changedEvent",{get:function(){return this._changedEvent||(this._changedEvent=new w.Event),this._changedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"animation",{get:function(){return this._animation},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"startTime",{get:function(){return this._startTime},set:function(l){this._startTime!==l&&(this._startTime=l,this.changedEvent&&this.changedEvent.emit(this))},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"enabled",{get:function(){return this._enabled},set:function(l){this._enabled!==l&&(this._enabled=l,this.changedEvent&&this.changedEvent.emit(this))},enumerable:!1,configurable:!0}),u}(p.Destroyable);s.Channel=y;var h=function(d){function u(l){l===void 0&&(l=0);var v=d.call(this)||this;return v._duration=l,v._currentTime=Number.NaN,v.dispose(function(){v._channels&&(v._channels.destroy(),v._channels=void 0),v.enterFunc=void 0,v.leaveFunc=void 0,v.progressFunc=void 0,v._changedEvent&&(v._changedEvent.reset(),v._changedEvent=void 0)}),v}return f(u,d),Object.defineProperty(u.prototype,"changedEvent",{get:function(){return this._changedEvent||(this._changedEvent=new w.Event),this._changedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"name",{get:function(){return this._name||(this._name="Unknown".concat(++_)),this._name},set:function(l){this._name!==l&&(this._name=l,this._changedEvent&&this._changedEvent.emit(this))},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"hasChannels",{get:function(){return!(!this._channels||this._channels.length===0)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"channels",{get:function(){var l=this;if(!this._channels){var v=new WeakMap,b=new g.ObservableArray;this.dispose(b.toChangeEvent.disposableOn(function(E,S){for(var P=E.length,C=0;C<P;++C){var x=E[C];if(x.deleteCount>0)for(var O=x.start;O<x.deleteCount;++O){var I=S.get(O);if(!(B=v.get(I)))throw console.error("!disposeFunc"),new Error("!disposeFunc");B(),v.delete(I)}if(x.items.length>0)for(var N=x.items,T=N.length,R=0;R<T;++R){var A=N[R],B=A.changedEvent.disposableOn(function(k){l.recomputeDurationFromChildren(!1),l._changedEvent&&l._changedEvent.emit(l)});v.set(A,B)}}return!0})),this.dispose(b.changedEvent.disposableOn(function(){l.recomputeDurationFromChildren(!1),l._changedEvent&&l._changedEvent.emit(l)})),this._channels=b}return this._channels},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"duration",{get:function(){return this._duration},set:function(l){this._duration!==l&&(this._duration,this._duration=l,this._changedEvent&&this._changedEvent.emit(this))},enumerable:!1,configurable:!0}),u.prototype.recomputeDurationFromChildren=function(l){l===void 0&&(l=!1);var v=this._channels;if(v&&v.length>0){for(var b=0,E=v.length,S=0;S<E;++S){var P=v.get(S),C=P.animation,x=P.startTime;l&&C.recomputeDurationFromChildren();var O=x+C.duration;b<O&&(b=O)}this.duration=b}},u.prototype.valid=function(l){return(l=l??this._currentTime)>=0&&l<=this.duration},Object.defineProperty(u.prototype,"currentTime",{get:function(){return this._currentTime},set:function(l){if(this.valid(l)||(l=Number.NaN),!(Number.isNaN(l)&&Number.isNaN(this._currentTime))){if(this._currentTime!==l){var v=this._currentTime;if(Number.isNaN(l)?this.leaveFunc&&this.leaveFunc(v):Number.isNaN(this._currentTime)&&this.enterFunc&&this.enterFunc(l),this._currentTime=l,Number.isNaN(l)||this.progressFunc&&this.progressFunc(l,v),this._channels)for(var b=this._channels.length,E=0;E<b;++E){var S=this._channels.get(E),P=S.animation,C=S.startTime;if(S.enabled)if(Number.isNaN(l))P.currentTime=Number.NaN;else if(Number.isNaN(v)){var x=l-C;P.currentTime=x}else{var O=C+P.duration;x=l-C,l>v?(l<=C&&(P.currentTime=x),C>v&&C<=l&&(P.currentTime=0),l>C&&l<=O&&(P.currentTime=x),O>v&&O<=l&&(P.currentTime=P.duration),l>O&&(P.currentTime=x)):l<v&&(l>O&&(P.currentTime=x),O>v&&O<=l&&(P.currentTime=P.duration),l>C&&l<=O&&(P.currentTime=x),C>v&&C<=l&&(P.currentTime=0),l<=C&&(P.currentTime=x))}}}}},enumerable:!1,configurable:!0}),u}(p.Destroyable);s.Animation=h,s.destroyAnimationWithChildren=function d(u){var l,v;if(u.hasChannels)try{for(var b=m(u.channels),E=b.next();!E.done;E=b.next())d(E.value.animation)}catch(S){l={error:S}}finally{try{E&&!E.done&&(v=b.return)&&v.call(b)}finally{if(l)throw l.error}}u.destroy()}},2452:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.SmartListenerHandler=void 0;var a=function(){function c(){}return c.prototype._reset=function(f,m){this._listenerHandler=f,this._cid=m},c.prototype.clone=function(f){return(f=f??new c)._reset(this._listenerHandler,this._cid),f},Object.defineProperty(c.prototype,"valid",{get:function(){if(this._listenerHandler!==void 0&&typeof this._cid=="number"){var f=this._listenerHandler._cid;if(f!==void 0&&this._cid===f)return!0}return!1},enumerable:!1,configurable:!0}),c}();s.SmartListenerHandler=a},2520:function(o,s,a){var c,f=this&&this.__extends||(c=function(y,h){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(d[l]=u[l])},c(y,h)},function(y,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function d(){this.constructor=y}c(y,h),y.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)}),m=this&&this.__read||function(y,h){var d=typeof Symbol=="function"&&y[Symbol.iterator];if(!d)return y;var u,l,v=d.call(y),b=[];try{for(;(h===void 0||h-- >0)&&!(u=v.next()).done;)b.push(u.value)}catch(E){l={error:E}}finally{try{u&&!u.done&&(d=v.return)&&d.call(v)}finally{if(l)throw l.error}}return b},p=this&&this.__spreadArray||function(y,h,d){if(d||arguments.length===2)for(var u,l=0,v=h.length;l<v;l++)!u&&l in h||(u||(u=Array.prototype.slice.call(h,0,l)),u[l]=h[l]);return y.concat(u||Array.prototype.slice.call(h))};Object.defineProperty(s,"__esModule",{value:!0}),s.ObservableArray=void 0;var g=a(9359),w=a(4899),_=function(y){function h(){var d=y.call(this)||this;return d._innerObj=[],d.dispose(function(){if(d.length=0,d._innerObj.length>0)throw new Error("this._innerObj.length > 0");d._toChangeEvent&&d._toChangeEvent.reset(),d._innerObj=void 0}),d}return f(h,y),Object.defineProperty(h.prototype,"toChangeEvent",{get:function(){return this._toChangeEvent||(this._toChangeEvent=new w.Event),this._toChangeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"changedEvent",{get:function(){return this._changedEvent||(this._changedEvent=new w.Event),this._changedEvent},enumerable:!1,configurable:!0}),h.prototype._resetArray=function(d){this._toChangeEvent&&this._toChangeEvent.emit([{start:0,deleteCount:this._innerObj.length,items:d}],this);var u=d.length;this._innerObj.length=u;for(var l=0;l<u;++l)this._innerObj[l]=d[l];this._changedEvent&&this._changedEvent.emit(this)},h.prototype.splice=function(d,u){for(var l,v=[],b=2;b<arguments.length;b++)v[b-2]=arguments[b];var E=this._innerObj.length;(d=d>this._innerObj.length?this._innerObj.length:d)>E?d=E:d<0&&(d+=E)<0&&(d=0);var S=this._innerObj.length-d;if(u>S?u=S:u<0&&(u=0),arguments.length===1){this._toChangeEvent&&this._toChangeEvent.emit([{start:d,deleteCount:this._innerObj.length-d,items:[]}],this);var P=this._innerObj.splice(d);return this._changedEvent&&this._changedEvent.emit(this),P}return arguments.length===2?(this._toChangeEvent&&this._toChangeEvent.emit([{start:d,deleteCount:u,items:[]}],this),P=this._innerObj.splice(d,u),this._changedEvent&&this._changedEvent.emit(this),P):(this._toChangeEvent&&this._toChangeEvent.emit([{start:d,deleteCount:u,items:v}],this),P=(l=this._innerObj).splice.apply(l,p([d,u],m(v),!1)),this._changedEvent&&this._changedEvent.emit(this),P)},h.prototype.pop=function(){if(this._innerObj.length!==0){if(this._toChangeEvent){var d=this._innerObj.length-1;this._toChangeEvent.emit([{start:d,deleteCount:1,items:[]}],this)}var u=this._innerObj.pop();return this._changedEvent&&this._changedEvent.emit(this),u}},h.prototype.push=function(){for(var d,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];if(this._toChangeEvent){var v=this._innerObj.length;this._toChangeEvent.emit([{start:v,deleteCount:0,items:u}],this)}var b=(d=this._innerObj).push.apply(d,p([],m(u),!1));return this._changedEvent&&this._changedEvent.emit(this),b},Object.defineProperty(h.prototype,"length",{get:function(){return this._innerObj.length},set:function(d){if(d<0)throw new Error("value < 0");var u=this._innerObj.length;if(u!==d){if(this._toChangeEvent){var l=void 0,v=void 0,b=void 0;u>d?(l=d,v=u-d,b=[]):(l=u,v=0,b=new Array(d-u)),this._toChangeEvent.emit([{start:l,deleteCount:v,items:b}],this)}this._innerObj.length=d,this._changedEvent&&this._changedEvent.emit(this)}},enumerable:!1,configurable:!0}),h.prototype.get=function(d){return this._innerObj[d]},h.prototype.set=function(d,u){var l=this._innerObj.length;if(d<0||d>=l)throw new Error("index < 0 || index >= length");this._toChangeEvent&&this._toChangeEvent.emit([{start:d,deleteCount:1,items:[u]}],this),this._innerObj[d]=u,this._changedEvent&&this._changedEvent.emit(this)},h.prototype.indexOf=function(d){return this._innerObj.indexOf(d)},h.prototype[Symbol.iterator]=function(){return this._innerObj[Symbol.iterator]()},h}(g.Destroyable);s.ObservableArray=_},2601:function(o,s,a){var c=this&&this.__read||function(_,y){var h=typeof Symbol=="function"&&_[Symbol.iterator];if(!h)return _;var d,u,l=h.call(_),v=[];try{for(;(y===void 0||y-- >0)&&!(d=l.next()).done;)v.push(d.value)}catch(b){u={error:b}}finally{try{d&&!d.done&&(h=l.return)&&h.call(l)}finally{if(u)throw u.error}}return v},f=this&&this.__spreadArray||function(_,y,h){if(h||arguments.length===2)for(var d,u=0,l=y.length;u<l;u++)!d&&u in y||(d||(d=Array.prototype.slice.call(y,0,u)),d[u]=y[u]);return _.concat(d||Array.prototype.slice.call(y))};Object.defineProperty(s,"__esModule",{value:!0}),s.wrapAsyncFuncToCancelablePromise=s.cancelablePromise=s._executeSetCancelFuncOrCancelResult=void 0;var m=a(8055);function p(_,y){typeof _=="function"?_(y):_.cancelFunc=y}function g(_,y){return y instanceof Promise?function(h,d){var u=void 0,l=d.then(function(v){if(u)throw u;return v});return p(h,function(v){u=v??new m.CancelError("_revocablePromise_forPromise cancel error!")}),l}(_,y):function(h,d){return new Promise(function(u,l){p(h,function(v){l(v??new m.CancelError("_revocablePromise_forExecutor cancel error!"))});try{d(u,l)}catch(v){l(v)}})}(_,y)}function w(_,y){for(var h=[],d=2;d<arguments.length;d++)h[d-2]=arguments[d];var u,l=void 0,v=y.apply(void 0,f([{cancelCheck:function(){if(l)throw l},registerCancelFunc:function(b){(u=u||[]).push(b)}}],c(h),!1));return p(_,function(b){if(l=b??new m.CancelError("wrapAsyncFuncToRevocablePromise cancel error!"),u)for(var E=u.length-1;E>=0;--E)(0,u[E])(b)}),v}s._executeSetCancelFuncOrCancelResult=p,s.cancelablePromise=function(){for(var _=[],y=0;y<arguments.length;y++)_[y]=arguments[y];if(_.length===1){if(_[0]instanceof Promise){var h=g(u={},_[0]),d=u.cancelFunc;if(!d)throw new Error("!cancelResult.cancelFunc");return[d,h]}}else if(_.length===2){var u;if(_[0]instanceof Object)return g(u=_[0],_[1])}throw new Error("args wrong!")},s.wrapAsyncFuncToCancelablePromise=function(){for(var _=[],y=0;y<arguments.length;y++)_[y]=arguments[y];if(_.length>=1){if(typeof _[0]=="function"){var h={},d=w.apply(void 0,f([h],c(_),!1)),u=h.cancelFunc;if(!u)throw new Error("!cancelResult.cancelFunc");return[u,d]}return w.apply(void 0,f([],c(_),!1))}throw new Error("wrapAsyncFuncToCancelablePromise args error!")}},2723:function(o,s,a){var c,f=this&&this.__extends||(c=function(d,u){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,v){l.__proto__=v}||function(l,v){for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&(l[b]=v[b])},c(d,u)},function(d,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");function l(){this.constructor=d}c(d,u),d.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}),m=this&&this.__values||function(d){var u=typeof Symbol=="function"&&Symbol.iterator,l=u&&d[u],v=0;if(l)return l.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&v>=d.length&&(d=void 0),{value:d&&d[v++],done:!d}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__read||function(d,u){var l=typeof Symbol=="function"&&d[Symbol.iterator];if(!l)return d;var v,b,E=l.call(d),S=[];try{for(;(u===void 0||u-- >0)&&!(v=E.next()).done;)S.push(v.value)}catch(P){b={error:P}}finally{try{v&&!v.done&&(l=E.return)&&l.call(E)}finally{if(b)throw b.error}}return S};Object.defineProperty(s,"__esModule",{value:!0}),s.SceneObjectsContext=void 0;var g=a(1662),w=a(9367),_=a(9026),y=a(1545),h=function(d){function u(){var l=d.call(this)||this;return l._sceneObjConstructorsMap=new Map,l._sceneObjs=new Map,l._sceneObjCreatedEvent=new g.Event,l._sceneObjToDestroyEvent=new g.Event,l._refsManager=l.disposeVar(new y.RefsManager(l)),l._environmentVariables={"xr-static":"xr-static"},l._environmentVariablesChanged=l.disposeVar(new g.Event),l}return f(u,d),Object.defineProperty(u.prototype,"typeNames",{get:function(){return this._sceneObjConstructorsMap.keys()},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"sceneObjs",{get:function(){return this._sceneObjs.values()},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"sceneObjCreatedEvent",{get:function(){return this._sceneObjCreatedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"sceneObjToDestroyEvent",{get:function(){return this._sceneObjToDestroyEvent},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"refsManager",{get:function(){return this._refsManager},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"$refs",{get:function(){return this._refsManager.refs},enumerable:!1,configurable:!0}),u.prototype.register=function(l,v,b){return this._sceneObjConstructorsMap.has(l)&&(console.warn("register warn: ".concat(l," has registered, object is: ")),console.warn(this._sceneObjConstructorsMap.get(l))),this._sceneObjConstructorsMap.set(l,v),b&&this.setProps(l,b),l},u.prototype._getSceneObjConstructor=function(l){return this._sceneObjConstructorsMap.get(l)||void 0},u.prototype.getProps=function(l){var v=this._getSceneObjConstructor(l);if(v)return(0,g.getExtProp)(v,"__sceneObjExtraInfo");console.warn("cannot get constructor from type: ".concat(l))},u.prototype.setProps=function(l,v){var b=this._getSceneObjConstructor(l);if(b){var E=(0,g.getExtProp)(b,"__sceneObjExtraInfo");E||(E={},(0,g.setExtProp)(b,"__sceneObjExtraInfo",E)),Object.assign(E,v)}else console.warn("cannot get constructor from type: ".concat(l))},u.prototype.getProp=function(l,v){var b=this.getProps(l);return b&&b[v]},u.prototype.setProp=function(l,v,b){var E;this.setProps(l,((E={})[v]=b,E))},u.prototype._addSceneObject=function(l){var v=this;this._sceneObjs.set(l.id,l),this._sceneObjCreatedEvent.emit(l),l.dispose(function(){return v._deleteSceneObject(l)})},u.prototype._deleteSceneObject=function(l){this._sceneObjToDestroyEvent.emit(l),this._sceneObjs.delete(l.id)},u.prototype.createSceneObjectFromClass=function(l,v){if(!v||this._sceneObjs.has(v)){var b=(0,g.createGuid)();v&&console.warn("已存在相同id的对象!id自动变更!".concat(v," -> ").concat(b," 请注意:id变更可能导致引用失效!")),v=b}if(!v)throw new Error("id不能为空!");var E=new l(v);return E.id!==v&&(console.warn("sceneObj.id(".concat(E.id,") !== id(").concat(v,") sceneObjectType: ").concat(E.typeName)),console.warn("出现这种问题有可能是自定义的场景对象,没有在构造函数中传递id参数!示例如下:"),console.warn("class MySceneObj extends ESSceneObject { constructor(id) { super(id); } }")),this._addSceneObject(E),E},u.prototype.createSceneObject=function(l,v){if(typeof l=="string"){var b=this._getSceneObjConstructor(l);return b?this.createSceneObjectFromClass(b,v):void console.warn("Cannot find SceneObjectType: ".concat(l))}return this.createSceneObjectFromClass(l,v)},u.prototype.createSceneObjectFromJson=function(l){var v=this.createSceneObject(l.type,l.id);return v&&(v.json=l),v},u.prototype.getSceneObjectById=function(l){return this._sceneObjs.get(l)},u.prototype.getSceneObjectsByDevTags=function(l){var v,b,E=[],S=function(x){l.some(function(O){return x.devTags&&x.devTags.includes(O)})&&E.push(x)};try{for(var P=m(this.sceneObjs),C=P.next();!C.done;C=P.next())S(C.value)}catch(x){v={error:x}}finally{try{C&&!C.done&&(b=P.return)&&b.call(P)}finally{if(v)throw v.error}}return E},Object.defineProperty(u.prototype,"environmentVariables",{get:function(){return this._environmentVariables},set:function(l){var v,b;try{for(var E=m(Object.entries(l)),S=E.next();!S.done;S=E.next()){var P=p(S.value,2),C=P[0],x=P[1];this.setEnv(C,x)}}catch(O){v={error:O}}finally{try{S&&!S.done&&(b=E.return)&&b.call(E)}finally{if(v)throw v.error}}},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"environmentVariablesChanged",{get:function(){return this._environmentVariablesChanged},enumerable:!1,configurable:!0}),u.prototype.setEnv=function(l,v){if(this._environmentVariables[l]!==v){var b=this._environmentVariables[l];this._environmentVariables[l]=v,this._environmentVariablesChanged.emit(l,v,b)}},u.prototype.getEnv=function(l){return this._environmentVariables[l]},u.prototype.getStrFromEnv=function(l){return(0,_.replaceStrWithEnv)(l)},u.prototype.createEnvStrReact=function(l,v){return(0,w.createEnvEvalStrReact)(l,v)},u.prototype.createEvnStrReact=function(l,v){return(0,w.createEnvEvalStrReact)(l,v)},u}(g.Destroyable);s.SceneObjectsContext=h},2731:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ary2Ns=s.xyzw2N4=s.xyz2N3=s.xyz2N2=s.Xyzw2Ns=s.createNumbers=void 0,s.createNumbers=function(f){for(var m,p=[],g=1;g<arguments.length;g++)p[g-1]=arguments[g];if(f>16)throw new Error("length > 16");for(var w=new Array(f),_=0;_<f;++_)w[_]=(m=p[_])!==null&&m!==void 0?m:0;return w};var a=function(){function f(m,p){this._xyzw=m,this._length=p}return Object.defineProperty(f.prototype,0,{get:function(){var m;return(m=this._xyzw.x)!==null&&m!==void 0?m:0},set:function(m){this._xyzw.x=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,1,{get:function(){var m;return(m=this._xyzw.y)!==null&&m!==void 0?m:0},set:function(m){this._xyzw.y=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,2,{get:function(){var m;return(m=this._xyzw.z)!==null&&m!==void 0?m:0},set:function(m){this._xyzw.z=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,3,{get:function(){var m;return(m=this._xyzw.w)!==null&&m!==void 0?m:0},set:function(m){this._xyzw.w=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"length",{get:function(){return this._length},enumerable:!1,configurable:!0}),f}();s.Xyzw2Ns=a,s.xyz2N2=function(f){return new a(f,2)},s.xyz2N3=function(f){return new a(f,3)},s.xyzw2N4=function(f){return new a(f,4)};var c=function(){function f(m,p,g,w){this._array=m,this._length=p,this._start=g,this._stride=w}return Object.defineProperty(f.prototype,"length",{get:function(){return this._length},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,0,{get:function(){return this._array[this._start+0*this._stride]},set:function(m){this._array[this._start+0*this._stride]=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,1,{get:function(){return this._array[this._start+1*this._stride]},set:function(m){this._array[this._start+1*this._stride]=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,2,{get:function(){return this._array[this._start+2*this._stride]},set:function(m){this._array[this._start+2*this._stride]=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,3,{get:function(){return this._array[this._start+3*this._stride]},set:function(m){this._array[this._start+3*this._stride]=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,4,{get:function(){return this._array[this._start+4*this._stride]},set:function(m){this._array[this._start+4*this._stride]=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,5,{get:function(){return this._array[this._start+5*this._stride]},set:function(m){this._array[this._start+5*this._stride]=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,6,{get:function(){return this._array[this._start+6*this._stride]},set:function(m){this._array[this._start+6*this._stride]=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,7,{get:function(){return this._array[this._start+7*this._stride]},set:function(m){this._array[this._start+7*this._stride]=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,8,{get:function(){return this._array[this._start+8*this._stride]},set:function(m){this._array[this._start+8*this._stride]=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,9,{get:function(){return this._array[this._start+9*this._stride]},set:function(m){this._array[this._start+9*this._stride]=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,10,{get:function(){return this._array[this._start+10*this._stride]},set:function(m){this._array[this._start+10*this._stride]=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,11,{get:function(){return this._array[this._start+11*this._stride]},set:function(m){this._array[this._start+11*this._stride]=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,12,{get:function(){return this._array[this._start+12*this._stride]},set:function(m){this._array[this._start+12*this._stride]=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,13,{get:function(){return this._array[this._start+13*this._stride]},set:function(m){this._array[this._start+13*this._stride]=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,14,{get:function(){return this._array[this._start+14*this._stride]},set:function(m){this._array[this._start+14*this._stride]=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,15,{get:function(){return this._array[this._start+15*this._stride]},set:function(m){this._array[this._start+15*this._stride]=m},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,16,{get:function(){return this._array[this._start+16*this._stride]},set:function(m){this._array[this._start+16*this._stride]=m},enumerable:!1,configurable:!0}),f}();s.ary2Ns=function(f,m,p,g){return p===void 0&&(p=0),g===void 0&&(g=1),new c(f,m,p,g)}},2789:function(o,s,a){var c=this&&this.__createBinding||(Object.create?function(m,p,g,w){w===void 0&&(w=g);var _=Object.getOwnPropertyDescriptor(p,g);_&&!("get"in _?!p.__esModule:_.writable||_.configurable)||(_={enumerable:!0,get:function(){return p[g]}}),Object.defineProperty(m,w,_)}:function(m,p,g,w){w===void 0&&(w=g),m[w]=p[g]}),f=this&&this.__exportStar||function(m,p){for(var g in m)g==="default"||Object.prototype.hasOwnProperty.call(p,g)||c(p,m,g)};Object.defineProperty(s,"__esModule",{value:!0}),f(a(2228),s)},2811:function(o,s,a){var c,f=this&&this.__extends||(c=function(_,y){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(h[u]=d[u])},c(_,y)},function(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function h(){this.constructor=_}c(_,y),_.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)});Object.defineProperty(s,"__esModule",{value:!0}),s.TimingDeprecated=void 0;var m=a(5726),p=a(1662),g=function(){function _(y,h,d,u,l){y===void 0&&(y=0),h===void 0&&(h=0),d===void 0&&(d=0),this.startTime=y,this.duration=h,this.delay=d,this.proccessFunc=u,this.completeFunc=l,this._lastUpdateTimeStamp=0,this._processData={ratio:0,timeStamp:0,timeStampFromStart:0,timeStampFromLastUpdate:0}}return _.prototype.update=function(y){var h=(y-this.startTime)/this.duration;h>=0&&(this._processData.ratio=h,this._processData.timeStamp=y,this._processData.timeStampFromStart=y-this.startTime,this._processData.timeStampFromLastUpdate=y-this._lastUpdateTimeStamp,this._lastUpdateTimeStamp=y,this.proccessFunc&&this.proccessFunc(this._processData),h>=1&&this.completeFunc&&this.completeFunc())},_.prototype.start=function(){this.startTime=performance.now()+this.delay,this._lastUpdateTimeStamp=this.startTime},_}(),w=function(_){function y(h,d,u){h===void 0&&(h=1e3),d===void 0&&(d=0),u===void 0&&(u=p.defaultStartUpdateFunc);var l,v=this;function b(){l&&l()}return(v=_.call(this,function(E){var S=E.progressFunc,P=E.completeFunc,C=(E.errorFunc,v.startUpdateFunc&&v.startUpdateFunc(v._base.update.bind(v._base))||void 0);return v._base.startTime=performance.now(),v._base.duration=v.duration,v._base.delay=v.delay,v._base.proccessFunc=S,v._base.completeFunc=function(){C&&C(),P()},v._base.start(),l=C,b})||this)._base=new g,v.duration=h,v.delay=d,v.startUpdateFunc=u,v}return f(y,_),Object.defineProperty(y.prototype,"startTime",{get:function(){return this._base.startTime},enumerable:!1,configurable:!0}),y}(m.ProcessingDeprecated);s.TimingDeprecated=w},2830:(o,s,a)=>{Object.defineProperty(s,"__esModule",{value:!0}),s._setTranslation=s._getTranslation=void 0;var c=a(2731);s._getTranslation=function(f,m){return(m=m||(0,c.createNumbers)(3))[0]=f[12],m[1]=f[13],m[2]=f[14],m},s._setTranslation=function(f,m,p){return f!==(p=p||(0,c.createNumbers)(16))&&(p[0]=f[0],p[1]=f[1],p[2]=f[2],p[3]=f[3],p[4]=f[4],p[5]=f[5],p[6]=f[6],p[7]=f[7],p[8]=f[8],p[9]=f[9],p[10]=f[10],p[11]=f[11],p[15]=f[15]),p[12]=m[0],p[13]=m[1],p[14]=m[2],p}},2882:function(o,s){var a=this&&this.__values||function(c){var f=typeof Symbol=="function"&&Symbol.iterator,m=f&&c[f],p=0;if(m)return m.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&p>=c.length&&(c=void 0),{value:c&&c[p++],done:!c}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(s,"__esModule",{value:!0}),s.pluckProperty=void 0,s.pluckProperty=function(c,f){for(var m,p,g=[],w=2;w<arguments.length;w++)g[w-2]=arguments[w];var _=c;try{for(var y=a(g),h=y.next();!h.done;h=y.next()){var d=h.value;if(!_[d]){if(!f)return;_[d]={}}_=_[d]}}catch(u){m={error:u}}finally{try{h&&!h.done&&(p=y.return)&&p.call(y)}finally{if(m)throw m.error}}return _}},2921:function(o,s,a){var c,f=this&&this.__extends||(c=function(y,h){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(d[l]=u[l])},c(y,h)},function(y,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function d(){this.constructor=y}c(y,h),y.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)}),m=this&&this.__read||function(y,h){var d=typeof Symbol=="function"&&y[Symbol.iterator];if(!d)return y;var u,l,v=d.call(y),b=[];try{for(;(h===void 0||h-- >0)&&!(u=v.next()).done;)b.push(u.value)}catch(E){l={error:E}}finally{try{u&&!u.done&&(d=v.return)&&d.call(v)}finally{if(l)throw l.error}}return b},p=this&&this.__spreadArray||function(y,h,d){if(d||arguments.length===2)for(var u,l=0,v=h.length;l<v;l++)!u&&l in h||(u||(u=Array.prototype.slice.call(h,0,l)),u[l]=h[l]);return y.concat(u||Array.prototype.slice.call(h))};Object.defineProperty(s,"__esModule",{value:!0}),s.Fetching=void 0;var g=a(643),w=a(5726),_=function(y){function h(d){for(var u=[],l=1;l<arguments.length;l++)u[l-1]=arguments[l];var v=y.call(this,function(b){for(var E=b.progressFunc,S=b.completeFunc,P=b.errorFunc,C=[],x=1;x<arguments.length;x++)C[x-1]=arguments[x];var O={},I={loaded:0,total:0},N=v._fetchArgs||C;if(N.length===0)throw new Error("fetchArgs.length === 0");if(g.cancelableFetchDeprecated.apply(void 0,p([O,function(T,R){I.loaded=T,I.total=R,E(I)}],m(N),!1)).then(d).then(S).catch(function(T){T instanceof w.CancelError||P(T)}),!O.cancelFunc)throw new Error("!cancelResult.cancelFunc");return O.cancelFunc})||this;return u.length>0&&(v._fetchArgs=u),v}return f(h,y),Object.defineProperty(h.prototype,"fetchArgs",{get:function(){return this._fetchArgs},enumerable:!1,configurable:!0}),h}(a(6891).ProcessingDeprecated);s.Fetching=_},2967:(o,s)=>{var a,c;Object.defineProperty(s,"__esModule",{value:!0}),s.encodeString=void 0,s.encodeString=function(f,m){var p,g=a=a||new TextEncoder,w=0;if(g.encodeInto){var _=void 0;m?_=m:(p=3*f.length,(!c||c.byteLength<p)&&(c=new Uint8Array(2*p)),_=new Uint8Array(c.buffer,0,p));var y=g.encodeInto(f,_);if(y.written===void 0)throw new Error("encodedResults.written === 'undefined'");w=y.written}else{var h=g.encode(f);m&&m.set(h),w=h.byteLength}return w}},2968:(o,s,a)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.getFinalUri=void 0;var c=a(6432);s.getFinalUri=function(f,m){var p=(0,c.isAbsoluteUri)(f),g=f;return(0,c.isBase64Uri)(f)||p||m&&(g=m+"/"+f),g}},2999:function(o,s,a){var c=this&&this.__read||function(g,w){var _=typeof Symbol=="function"&&g[Symbol.iterator];if(!_)return g;var y,h,d=_.call(g),u=[];try{for(;(w===void 0||w-- >0)&&!(y=d.next()).done;)u.push(y.value)}catch(l){h={error:l}}finally{try{y&&!y.done&&(_=d.return)&&_.call(d)}finally{if(h)throw h.error}}return u};Object.defineProperty(s,"__esModule",{value:!0}),s.withoutUndefinedArray=s.withoutUndefined=void 0;var f=a(2168),m=a(3915);function p(g,w,_,y){var h=c((0,f.getReactFuncs)(g),3),d=h[0],u=h[1],l=h[2],v=(0,m.react)(w,_,y);return v.dispose(v.changed.dwon(function(){v.value!==w?u(v.value):u(void 0)})),d()!==void 0&&(v.value=d()),v.dispose(l.don(function(b){v.value=b!==void 0?b:w})),v}s.withoutUndefined=p,s.withoutUndefinedArray=function(g,w,_,y){return p(g,w,function(h,d){return h.length===d.length&&h.every(function(u,l){return _&&_(u,d[l])||u===d[l]})},function(h,d){for(var u=d||new Array(h.length),l=0;l<h.length;++l)u[l]=y?y(h[l]):h[l];return u.length=h.length,u})}},3009:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.nextPow2=void 0,s.nextPow2=function(a){return a|=0,a--,a|=a>>1,a|=a>>2,a|=a>>4,a|=a>>8,a|=a>>16,++a}},3022:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0})},3096:function(o,s,a){var c,f=this&&this.__extends||(c=function(_,y){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(h[u]=d[u])},c(_,y)},function(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function h(){this.constructor=_}c(_,y),_.prototype=y===null?Object.create(y):(h.prototype=y.prototype,new h)});Object.defineProperty(s,"__esModule",{value:!0}),s.VideoProcessing=void 0;var m=a(1662),p=a(8106),g=function(_){function y(h,d){var u=_.call(this)||this;u._complexImage=h,u._videoSrc=d;var l,v=document.createElement("video");return v.src=u._videoSrc,v.style.position="absolute",v.style.top="0px",v.style.left="0px",v.style.zIndex="-100",v.style.visibility="hidden",v.style.width="0px",v.style.height="0px",(l=function(){v.crossOrigin=u._complexImage.crossOrigin})(),u.dispose(u._complexImage.crossOriginChanged.disposableOn(l)),(l=function(){v.autoplay=u._complexImage.autoplay})(),u.dispose(u._complexImage.autoplayChanged.disposableOn(l)),(l=function(){v.loop=u._complexImage.loop})(),u.dispose(u._complexImage.loopChanged.disposableOn(l)),v.muted=!0,document.body.appendChild(v),u._element=v,u.dispose(function(){return document.body.removeChild(v)}),u}return f(y,_),Object.defineProperty(y.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),y}(m.Destroyable),w=function(_){function y(h,d){var u=_.call(this)||this;return u._complexImage=h,u._imageUri=d,u._videoDom=u.disposeVar(new g(u._complexImage,u._imageUri)),u._update=u.disposeVar((0,p.createAnimateFrameWithStartValues)(function(){return u.update()})),u._updateStart=u._update.start(),u}return f(y,_),Object.defineProperty(y.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"videoElement",{get:function(){return this._videoDom.element},enumerable:!1,configurable:!0}),y.prototype.update=function(){if(!(this.videoElement.readyState<2)){var h=this._complexImage,d=this.videoElement,u=d.videoWidth,l=d.videoHeight;h.size=[u,l],h.pixelFormat="RGBA",h.copyTexture({source:this.videoElement})}},y}(m.Destroyable);s.VideoProcessing=w},3207:(o,s,a)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.defineReactiveProp=void 0;var c=a(7372);s.defineReactiveProp=function(f,m,p,g){var w,_="_"+m,y="_"+m+"Changed",h=m+"Changed";Object.defineProperties(f.prototype,((w={})[m]={get:function(){return this[_]===void 0&&p!==void 0&&(this[_]=p),this[_]},set:function(d){if(this[_]===void 0&&p!==void 0&&(this[_]=p),g?!g(this[_],d):this[_]!==d){var u=this[_];this[_]=d,this[y]&&this[y].emit(d,u)}}},w[h]={get:function(){var d=this;return this[y]===void 0&&(this[y]=new c.Event,this.dispose!==void 0&&this.dispose(function(){return d[y].destroy()})),this[y]}},w))}},3249:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.prevPow2=void 0,s.prevPow2=function(a){return a|=0,a|=a>>1,a|=a>>2,a|=a>>4,a|=a>>8,a|=a>>16,++a>>1}},3280:(o,s,a)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.length=void 0;var c=a(6138),f=function(m){return++m};s.length=function(m){return(0,c.reduce)(m,f,0)}},3281:function(o,s,a){var c=this&&this.__createBinding||(Object.create?function(m,p,g,w){w===void 0&&(w=g);var _=Object.getOwnPropertyDescriptor(p,g);_&&!("get"in _?!p.__esModule:_.writable||_.configurable)||(_={enumerable:!0,get:function(){return p[g]}}),Object.defineProperty(m,w,_)}:function(m,p,g,w){w===void 0&&(w=g),m[w]=p[g]}),f=this&&this.__exportStar||function(m,p){for(var g in m)g==="default"||Object.prototype.hasOwnProperty.call(p,g)||c(p,m,g)};Object.defineProperty(s,"__esModule",{value:!0}),f(a(4416),s),f(a(9122),s),f(a(9812),s),f(a(312),s),f(a(4833),s),f(a(5590),s),f(a(4915),s),f(a(8089),s),f(a(2731),s),f(a(6172),s),f(a(7215),s),f(a(7665),s),f(a(9549),s),f(a(5873),s),f(a(602),s),f(a(9898),s),f(a(5985),s),f(a(7500),s),f(a(7413),s)},3300:function(o,s,a){var c=this&&this.__read||function(h,d){var u=typeof Symbol=="function"&&h[Symbol.iterator];if(!u)return h;var l,v,b=u.call(h),E=[];try{for(;(d===void 0||d-- >0)&&!(l=b.next()).done;)E.push(l.value)}catch(S){v={error:S}}finally{try{l&&!l.done&&(u=b.return)&&u.call(b)}finally{if(v)throw v.error}}return E},f=this&&this.__spreadArray||function(h,d,u){if(u||arguments.length===2)for(var l,v=0,b=d.length;v<b;v++)!l&&v in d||(l||(l=Array.prototype.slice.call(d,0,v)),l[v]=d[v]);return h.concat(l||Array.prototype.slice.call(d))};Object.defineProperty(s,"__esModule",{value:!0}),s._getMaximumScale=s._setScale=s._getScale=void 0;var m=a(2731),p=a(9898),g=a(6021);function w(h,d){return(d=d||(0,m.createNumbers)(3))[0]=p.Vector.magnitude([h[0],h[1],h[2]]),d[1]=p.Vector.magnitude([h[4],h[5],h[6]]),d[2]=p.Vector.magnitude([h[8],h[9],h[10]]),d}s._getScale=w;var _=(0,m.createNumbers)(3);s._setScale=function(h,d,u){var l=w(h,_),v=p.Vector.divide(d,l,_);return(0,g._multiplyByScale)(h,v,u)};var y=(0,m.createNumbers)(3);s._getMaximumScale=function(h){var d=w(h,y);return Math.max.apply(Math,f([],c(p.Vector.itr(d)),!1))}},3315:function(o,s,a){var c,f=this&&this.__extends||(c=function(y,h){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(d[l]=u[l])},c(y,h)},function(y,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function d(){this.constructor=y}c(y,h),y.prototype=h===null?Object.create(h):(d.prototype=h.prototype,new d)}),m=this&&this.__generator||function(y,h){var d,u,l,v,b={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return v={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function E(S){return function(P){return function(C){if(d)throw new TypeError("Generator is already executing.");for(;v&&(v=0,C[0]&&(b=0)),b;)try{if(d=1,u&&(l=2&C[0]?u.return:C[0]?u.throw||((l=u.return)&&l.call(u),0):u.next)&&!(l=l.call(u,C[1])).done)return l;switch(u=0,l&&(C=[2&C[0],l.value]),C[0]){case 0:case 1:l=C;break;case 4:return b.label++,{value:C[1],done:!1};case 5:b.label++,u=C[1],C=[0];continue;case 7:C=b.ops.pop(),b.trys.pop();continue;default:if(!((l=(l=b.trys).length>0&&l[l.length-1])||C[0]!==6&&C[0]!==2)){b=0;continue}if(C[0]===3&&(!l||C[1]>l[0]&&C[1]<l[3])){b.label=C[1];break}if(C[0]===6&&b.label<l[1]){b.label=l[1],l=C;break}if(l&&b.label<l[2]){b.label=l[2],b.ops.push(C);break}l[2]&&b.ops.pop(),b.trys.pop();continue}C=h.call(y,b)}catch(x){C=[6,x],u=0}finally{d=l=0}if(5&C[0])throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}([S,P])}}},p=this&&this.__values||function(y){var h=typeof Symbol=="function"&&Symbol.iterator,d=h&&y[h],u=0;if(d)return d.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&u>=y.length&&(y=void 0),{value:y&&y[u++],done:!y}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(s,"__esModule",{value:!0}),s.UiTree=void 0;var g=a(1662),w=a(8106),_=function(y){function h(d){var u=y.call(this)||this;u._tree=d,u._redrawEvent=u.disposeVar(new g.Event),u._containerScrollTop=u.disposeVar((0,g.react)(0)),u._containerClientHeight=u.disposeVar((0,g.react)(-1)),u._container=u.disposeVar((0,g.react)(void 0)),u._redrawInfo={topFreeSpaceHeight:0,topUnvisibleItemNum:0,middleTreeItems:[],bottomFreeSpaceHeight:0,bottomUnvisibleItemNum:0};var l,v=u._containerClientHeight,b=u._containerScrollTop,E=u._tree._forceRedrawEvent,S=u.disposeVar((0,g.createNextAnimateFrameEvent)(u._tree.itemDivHeightChanged,u._tree.itemChildrenChanged,u._tree.itemsChanged,v.changed,b.changed,E)),P=u.redrawInfo,C=function(x){var O=x.uiTreeObject;return!(!x.children||O&&O.collapsed)};return u.dispose(S.disposableOn(function(){var x,O,I,N;if(P.topFreeSpaceHeight=0,P.topUnvisibleItemNum=0,P.middleTreeItems.length=0,P.bottomFreeSpaceHeight=0,P.bottomUnvisibleItemNum=0,u._containerClientHeight.value>=0){var T=(0,g.length)(u._tree.getDescendants(C)),R=u._tree.itemDivHeight,A=R*T,B=(0,g.max)([(0,g.min)([(0,g.max)([A-v.value,0]),b.value]),0]),k=B/R|0,z=0|Math.ceil((B-k*R+v.value)/R);k>0&&(P.topUnvisibleItemNum=k,P.topFreeSpaceHeight=k*u._tree.itemDivHeight);var j=k+z,L=0;try{for(var F=p(u._tree.getDescendants(C)),G=F.next();!G.done;G=F.next()){var W=G.value;if(L>=j)break;L>=k&&P.middleTreeItems.push(W),++L}}catch(J){x={error:J}}finally{try{G&&!G.done&&(O=F.return)&&O.call(F)}finally{if(x)throw x.error}}var V=T-k-z;V>0&&(P.bottomUnvisibleItemNum=V,P.bottomFreeSpaceHeight=V*u._tree.itemDivHeight)}else try{for(var U=p(u._tree.getDescendants(C)),H=U.next();!H.done;H=U.next())W=H.value,P.middleTreeItems.push(W)}catch(J){I={error:J}}finally{try{H&&!H.done&&(N=U.return)&&N.call(U)}finally{if(I)throw I.error}}u._redrawEvent.emit(P)})),u.dispose(function(){return l&&(l.destroy(),l=void 0)}),u.dispose(u.containerChanged.disposableOn(function(x){l&&(l.destroy(),l=void 0),x&&(l=(0,w.createAnimateFrame)()).start(function(){var O=x,I=O.scrollTop,N=O.clientHeight;I===void 0||N===void 0?(0,g.oneTimeWarning)("createUiTreeWithContainer error: conainter has no scrollTop or clientHeight property!"):(u.containerScrollTop=I,u.containerClientHeight=N)})})),u}return f(h,y),Object.defineProperty(h.prototype,"container",{get:function(){return this._container.value},set:function(d){this._container.value=d},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"containerChanged",{get:function(){return this._container.changed},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"redrawInfo",{get:function(){return this._redrawInfo},enumerable:!1,configurable:!0}),h.prototype.getTreeItemPos=function(d){var u,l,v=0,b=!1;try{for(var E=p(this._tree.getDescendants(function(P){var C=P.uiTreeObject;return!(!P.children||C&&C.collapsed)})),S=E.next();!S.done;S=E.next()){if(S.value===d){b=!0;break}++v}}catch(P){u={error:P}}finally{try{S&&!S.done&&(l=E.return)&&l.call(E)}finally{if(u)throw u.error}}return b?[v,v*this._tree.itemDivHeight]:void 0},h.prototype.collapseAll=function(){var d,u;console.log("collapseAll");try{for(var l=p(this.tree.root.getDescendants()),v=l.next();!v.done;v=l.next())v.value.uiTreeObject.collapsed=!0}catch(b){d={error:b}}finally{try{v&&!v.done&&(u=l.return)&&u.call(l)}finally{if(d)throw d.error}}},Object.defineProperty(h.prototype,"tree",{get:function(){return this._tree},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"redrawEvent",{get:function(){return this._redrawEvent},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"containerScrollTop",{get:function(){return this._containerScrollTop.value},set:function(d){this._containerScrollTop.value=d},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"containerScrollTopChanged",{get:function(){return this._containerScrollTop.changed},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"containerClientHeight",{get:function(){return this._containerClientHeight.value},set:function(d){this._containerClientHeight.value=d},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"containerClientHeightChanged",{get:function(){return this._containerClientHeight.changed},enumerable:!1,configurable:!0}),h.prototype.getAllItems=function(d){var u,l,v,b,E,S;return m(this,function(P){switch(P.label){case 0:P.trys.push([0,5,6,7]),u=p(this._tree.getDescendants()),l=u.next(),P.label=1;case 1:return l.done?[3,4]:(v=l.value,d&&!d(v)?[3,3]:[4,v]);case 2:P.sent(),P.label=3;case 3:return l=u.next(),[3,1];case 4:return[3,7];case 5:return b=P.sent(),E={error:b},[3,7];case 6:try{l&&!l.done&&(S=u.return)&&S.call(u)}finally{if(E)throw E.error}return[7];case 7:return[2]}})},h.prototype.getAllSelectedItems=function(){return this.getAllItems(function(d){return d.uiTreeObject.selected})},h.prototype.getAllCheckedLeafItems=function(){return this.getAllItems(function(d){return!d.children&&d.uiTreeObject.checkedStatus==="checked"})},h.prototype.clearAllSelectedItems=function(d){var u,l;try{for(var v=p(this.getAllSelectedItems()),b=v.next();!b.done;b=v.next()){var E=b.value;d&&d.includes(E)||(E.uiTreeObject.selected=!1)}}catch(S){u={error:S}}finally{try{b&&!b.done&&(l=v.return)&&l.call(v)}finally{if(u)throw u.error}}},h}(g.Destroyable);s.UiTree=_},3428:()=>{ArrayBuffer.transfer||(ArrayBuffer.transfer=function(o,s){o=Object(o);var a=new ArrayBuffer(s);if(!(o instanceof ArrayBuffer&&a instanceof ArrayBuffer))throw new TypeError("Source and destination must be ArrayBuffer instances");if(a.byteLength>=o.byteLength){var c=0,f=o.byteLength;[8,4,2,1].forEach(function(m){if(f>=m){var p=function(g,w,_,y,h){var d=Uint8Array;switch(g){case 8:d=Float64Array;break;case 4:d=Float32Array;break;case 2:d=Uint16Array;break;default:d=Uint8Array}for(var u=new d(w,y,Math.trunc(h/g)),l=new d(_,y,Math.trunc(h/g)),v=0;v<l.length;v++)l[v]=u[v];return{nextOffset:u.byteOffset+u.byteLength,leftBytes:w.byteLength-(u.byteOffset+u.byteLength)}}(m,o,a,c,f);c=p.nextOffset,f=p.leftBytes}})}return a})},3457:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.getBaseUri=void 0,s.getBaseUri=function(a){return a.substr(0,a.lastIndexOf("/"))}},3526:(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0})},3631:(o,s)=>{function a(c,f){return c instanceof Promise?c.then(f):Promise.resolve(c).then(f)}Object.defineProperty(s,"__esModule",{value:!0}),s.when=void 0,s.when=a,a.defer=function(){var c={},f=new Promise(function(m,p){c.resolve=m,c.reject=p});return c.promise=f,c},a.resolve=function(c){return Promise.resolve(c)}},3639:function(o,s,a){var c,f=this&&this.__extends||(c=function(h,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&(u[v]=l[v])},c(h,d)},function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function u(){this.constructor=h}c(h,d),h.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)}),m=this&&this.__values||function(h){var d=typeof Symbol=="function"&&Symbol.iterator,u=d&&h[d],l=0;if(u)return u.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&l>=h.length&&(h=void 0),{value:h&&h[l++],done:!h}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(s,"__esModule",{value:!0}),s.AnimationPlayer=void 0;var p=a(2429),g=a(7372),w=a(7372),_=a(2127),y=function(h){function d(u){u===void 0&&(u=5e3);var l=h.call(this)||this;return l._animation=new p.Animation(u),l.dispose(function(){l.destroyAllChannels(),l._animation.destroy()}),l._player=new _.Player(u),l.dispose(function(){return l._player.destroy()}),l._initAnimation(),l._selectedChannelChanged=new w.Event,l}return f(d,h),Object.defineProperty(d.prototype,"animation",{get:function(){return this._animation},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"player",{get:function(){return this._player},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"selectedChannelChanged",{get:function(){return this._selectedChannelChanged||(this._selectedChannelChanged=new w.Event),this._selectedChannelChanged},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"selectedChannel",{get:function(){return this._selectedChannel},set:function(u){if(this._selectedChannel!==u){var l=this._selectedChannel;this._selectedChannel=u,this._selectedChannelChanged&&this._selectedChannelChanged.emit(u,l)}},enumerable:!1,configurable:!0}),d.prototype._initAnimation=function(){var u=this,l=this._animation,v=this._player;l.progressFunc=function(b){},this.dispose(function(){l.progressFunc=void 0,l.enterFunc=void 0,l.leaveFunc=void 0}),this.dispose(v.currentTimeChangedEvent.disposableOn(function(b,E){v.playing?l.currentTime=b:(l.currentTime=b,l.currentTime=Number.NaN)})),this.dispose(v.startPlayingEvent.disposableOn(function(b){l.currentTime=b})),this.dispose(v.stopPlayingEvent.disposableOn(function(b){l.currentTime=Number.NaN})),this.dispose(this._animation.changedEvent.disposableOn(function(b){u._player.duration=b.duration}))},d.prototype.addChannel=function(){var u=new p.Channel(1e3,2e3);if(this._selectedChannel){var l=this._animation.channels.indexOf(this._selectedChannel);this._animation.channels.splice(l+1,0,u)}else this._animation.channels.push(u);return u},d.prototype.removeChannel=function(){if(this._selectedChannel){var u=this._animation.channels.indexOf(this._selectedChannel);u!==-1&&(this._animation.channels.splice(u,1),this._selectedChannel.destroy()),this._selectedChannel=void 0}else console.warn("请先选择需要删除的Channel.")},d.prototype.raiseChannel=function(u){var l=this._animation.channels.indexOf(u);if(l===-1)console.warn("-1 === index");else if(l===0)console.warn("cannot raise current channel!");else{if(!(l>0))throw new Error("should not be here!");this._animation.channels.splice(l,1),this._animation.channels.splice(l-1,0,u)}},d.prototype.lowerChannel=function(u){var l=this._animation.channels.indexOf(u);if(l===-1)console.warn("-1 === index");else if(l===this._animation.channels.length-1)console.warn("cannot lower current channel!");else{if(!(l>=0))throw new Error("should not be here!");this._animation.channels.splice(l,1),this._animation.channels.splice(l+1,0,u)}},d.prototype.destroyAllChannels=function(){var u,l,v=this._animation;if(v.hasChannels){try{for(var b=m(v.channels),E=b.next();!E.done;E=b.next()){var S=E.value;(0,p.destroyAnimationWithChildren)(S.animation)}}catch(P){u={error:P}}finally{try{E&&!E.done&&(l=b.return)&&l.call(b)}finally{if(u)throw u.error}}v.channels.length=0,this._selectedChannel=void 0}},d}(g.Destroyable);s.AnimationPlayer=y},3735:function(o,s,a){var c=this&&this.__generator||function(m,p){var g,w,_,y,h={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return y={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(y[Symbol.iterator]=function(){return this}),y;function d(u){return function(l){return function(v){if(g)throw new TypeError("Generator is already executing.");for(;y&&(y=0,v[0]&&(h=0)),h;)try{if(g=1,w&&(_=2&v[0]?w.return:v[0]?w.throw||((_=w.return)&&_.call(w),0):w.next)&&!(_=_.call(w,v[1])).done)return _;switch(w=0,_&&(v=[2&v[0],_.value]),v[0]){case 0:case 1:_=v;break;case 4:return h.label++,{value:v[1],done:!1};case 5:h.label++,w=v[1],v=[0];continue;case 7:v=h.ops.pop(),h.trys.pop();continue;default:if(!((_=(_=h.trys).length>0&&_[_.length-1])||v[0]!==6&&v[0]!==2)){h=0;continue}if(v[0]===3&&(!_||v[1]>_[0]&&v[1]<_[3])){h.label=v[1];break}if(v[0]===6&&h.label<_[1]){h.label=_[1],_=v;break}if(_&&h.label<_[2]){h.label=_[2],h.ops.push(v);break}_[2]&&h.ops.pop(),h.trys.pop();continue}v=p.call(m,h)}catch(b){v=[6,b],w=0}finally{g=_=0}if(5&v[0])throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}([u,l])}}};Object.defineProperty(s,"__esModule",{value:!0}),s.getMinMaxPosition=void 0;var f=a(6362);s.getMinMaxPosition=function(m,p){var g,w,_,y,h,d,u,l;if(m.length%3!=0)throw new Error("positions.length % 3 !== 0");var v=m.length/3;function b(P){var C;return c(this,function(x){switch(x.label){case 0:C=0,x.label=1;case 1:return C<v?[4,m[3*C+P]]:[3,4];case 2:x.sent(),x.label=3;case 3:return++C,[3,1];case 4:return[2]}})}var E=(g=p==null?void 0:p.min)!==null&&g!==void 0?g:[NaN,NaN,NaN],S=(w=p==null?void 0:p.max)!==null&&w!==void 0?w:[NaN,NaN,NaN];return E[0]=(_=(0,f.min)(b(0)))!==null&&_!==void 0?_:NaN,E[1]=(y=(0,f.min)(b(1)))!==null&&y!==void 0?y:NaN,E[2]=(h=(0,f.min)(b(2)))!==null&&h!==void 0?h:NaN,S[0]=(d=(0,f.max)(b(0)))!==null&&d!==void 0?d:NaN,S[1]=(u=(0,f.max)(b(1)))!==null&&u!==void 0?u:NaN,S[2]=(l=(0,f.max)(b(2)))!==null&&l!==void 0?l:NaN,{min:E,max:S}}},3804:function(o,s,a){var c=this&&this.__generator||function(p,g){var w,_,y,h,d={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return h={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function u(l){return function(v){return function(b){if(w)throw new TypeError("Generator is already executing.");for(;h&&(h=0,b[0]&&(d=0)),d;)try{if(w=1,_&&(y=2&b[0]?_.return:b[0]?_.throw||((y=_.return)&&y.call(_),0):_.next)&&!(y=y.call(_,b[1])).done)return y;switch(_=0,y&&(b=[2&b[0],y.value]),b[0]){case 0:case 1:y=b;break;case 4:return d.label++,{value:b[1],done:!1};case 5:d.label++,_=b[1],b=[0];continue;case 7:b=d.ops.pop(),d.trys.pop();continue;default:if(!((y=(y=d.trys).length>0&&y[y.length-1])||b[0]!==6&&b[0]!==2)){d=0;continue}if(b[0]===3&&(!y||b[1]>y[0]&&b[1]<y[3])){d.label=b[1];break}if(b[0]===6&&d.label<y[1]){d.label=y[1],y=b;break}if(y&&d.label<y[2]){d.label=y[2],d.ops.push(b);break}y[2]&&d.ops.pop(),d.trys.pop();continue}b=g.call(p,d)}catch(E){b=[6,E],_=0}finally{w=y=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([l,v])}}};Object.defineProperty(s,"__esModule",{value:!0}),s.objsIterator=void 0;var f=a(1803),m=a(8144);s.objsIterator=function(p,g){var w,_,y,h;return c(this,function(d){switch(d.label){case 0:w=(0,m.getIterator)(p),d.label=1;case 1:return _=w.next(),y=_.done,h=_.value,y?[3,3]:[4,(0,f.getValueFromProps)(h,g)];case 2:return d.sent(),[3,1];case 3:return[2]}})}},3815:function(o,s,a){var c=this&&this.__createBinding||(Object.create?function(m,p,g,w){w===void 0&&(w=g);var _=Object.getOwnPropertyDescriptor(p,g);_&&!("get"in _?!p.__esModule:_.writable||_.configurable)||(_={enumerable:!0,get:function(){return p[g]}}),Object.defineProperty(m,w,_)}:function(m,p,g,w){w===void 0&&(w=g),m[w]=p[g]}),f=this&&this.__exportStar||function(m,p){for(var g in m)g==="default"||Object.prototype.hasOwnProperty.call(p,g)||c(p,m,g)};Object.defineProperty(s,"__esModule",{value:!0}),f(a(9355),s),f(a(4344),s)},3915:function(o,s,a){var c,f=this&&this.__extends||(c=function(v,b){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,S){E.__proto__=S}||function(E,S){for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&(E[P]=S[P])},c(v,b)},function(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function E(){this.constructor=v}c(v,b),v.prototype=b===null?Object.create(b):(E.prototype=b.prototype,new E)}),m=this&&this.__assign||function(){return m=Object.assign||function(v){for(var b,E=1,S=arguments.length;E<S;E++)for(var P in b=arguments[E])Object.prototype.hasOwnProperty.call(b,P)&&(v[P]=b[P]);return v},m.apply(this,arguments)},p=this&&this.__read||function(v,b){var E=typeof Symbol=="function"&&v[Symbol.iterator];if(!E)return v;var S,P,C=E.call(v),x=[];try{for(;(b===void 0||b-- >0)&&!(S=C.next()).done;)x.push(S.value)}catch(O){P={error:O}}finally{try{S&&!S.done&&(E=C.return)&&E.call(C)}finally{if(P)throw P.error}}return x},g=this&&this.__spreadArray||function(v,b,E){if(E||arguments.length===2)for(var S,P=0,C=b.length;P<C;P++)!S&&P in b||(S||(S=Array.prototype.slice.call(b,0,P)),S[P]=b[P]);return v.concat(S||Array.prototype.slice.call(b))};Object.defineProperty(s,"__esModule",{value:!0}),s.reactPosition2DsSet=s.reactPositionsSet=s.reactPositions=s.reactJsonCollectionWithUndefined=s.reactJsonCollection=s.reactArrayCollectionWithUndefined=s.reactArrayCollection=s.reactPlainObjectWithUndefined=s.reactPlainObject=s.reactJsonWithUndefined=s.reactJson=s.reactDeepArrayWithUndefined=s.reactDeepArray=s.reactArrayWithUndefined=s.reactArray=s.react=s.ReactiveVariable=void 0;var w=a(9359),_=a(4899),y=function(v){function b(E,S,P){var C=v.call(this)||this;return C._equalsFunc=S,C._assignFunc=P,C._value=C._assignFunc&&C._assignFunc(E,void 0)||E,C}return f(b,v),Object.defineProperty(b.prototype,"assignFunc",{get:function(){return this._assignFunc},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"equalsFunc",{get:function(){return this._equalsFunc},enumerable:!1,configurable:!0}),b.prototype.equals=function(E){return this._equalsFunc?this._equalsFunc(this._value,E):this._value===E},Object.defineProperty(b.prototype,"value",{get:function(){return this._value},set:function(E){if(this._equalsFunc?!this._equalsFunc(this._value,E):this._value!==E){if(this.toChangeFunc&&!this.toChangeFunc(E,this._value))return;this._assignFunc?(this._oldValue=this._assignFunc(this._value,this._oldValue),this._value=this._assignFunc(E,this._value)):(this._oldValue=this._value,this._value=E),this._changed&&this._changed.emit(E,this._oldValue)}},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"changed",{get:function(){return this._changed||(this._changed=this.disposeVar(new _.Event)),this._changed},enumerable:!1,configurable:!0}),b.prototype.forceChange=function(){this._changed&&this._changed.emit(this._value,this._value)},b}(w.Destroyable);function h(v,b,E){return new y(v,b,E)}function d(v,b,E){return h(v,function(S,P){return S.length===P.length&&S.every(function(C,x){return b&&b(C,P[x])||C===P[x]})},function(S,P){var C=P||new Array(S.length);return C.length=S.length,S.forEach(function(x,O){C[O]=E?E(x):x}),C})}function u(v,b,E){return h(v,function(S,P){return S===void 0||P===void 0?S===void 0&&P===void 0:S.length===P.length&&S.every(function(C,x){return b&&b(C,P[x])||C===P[x]})},function(S,P){if(S){var C=P||new Array(S.length);return C.length=S.length,S.forEach(function(x,O){C[O]=E?E(x):x}),C}})}function l(v){return u(v,function(b,E){return b.every(function(S,P){return S===E[P]})},function(b){return g([],p(b),!1)})}s.ReactiveVariable=y,s.react=h,s.reactArray=function(v){return new y(v,function(b,E){return b.length===E.length&&b.every(function(S,P){return S===E[P]})},function(b,E){var S=E||new Array(b.length);return S.length=b.length,b.forEach(function(P,C){return S[C]=P}),S})},s.reactArrayWithUndefined=function(v){return h(v,function(b,E){return b===void 0||E===void 0?b===void 0&&E===void 0:b.length===E.length&&b.every(function(S,P){return S===E[P]})},function(b,E){if(b){var S=E||new Array(b.length);return S.length=b.length,b.forEach(function(P,C){return S[C]=P}),S}})},s.reactDeepArray=d,s.reactDeepArrayWithUndefined=u,s.reactJson=function(v){return new y(v,function(b,E){return b===E||b!==void 0&&E!==void 0&&JSON.stringify(b)===JSON.stringify(E)},function(b,E){if(b!==void 0)return JSON.parse(JSON.stringify(b))})},s.reactJsonWithUndefined=function(v){return new y(v,function(b,E){return b===E||b!==void 0&&E!==void 0&&JSON.stringify(b)===JSON.stringify(E)},function(b,E){if(b!==void 0)return JSON.parse(JSON.stringify(b))})},s.reactPlainObject=function(v){return new y(v,function(b,E){if(b===E)return!0;if(b===void 0||E===void 0)return!1;var S=Object.keys(b),P=Object.keys(E);return S.length===P.length&&S.every(function(C,x){return C===P[x]&&b[C]===E[C]})},function(b,E){return b&&m({},b)})},s.reactPlainObjectWithUndefined=function(v){return new y(v,function(b,E){if(b===E)return!0;if(b===void 0||E===void 0)return!1;var S=Object.keys(b),P=Object.keys(E);return S.length===P.length&&S.every(function(C,x){return C===P[x]&&b[C]===E[C]})},function(b,E){return b&&m({},b)})},s.reactArrayCollection=function(v){return d(v,function(b,E){return b.every(function(S,P){return S===E[P]})},function(b){return g([],p(b),!1)})},s.reactArrayCollectionWithUndefined=l,s.reactJsonCollection=function(v){return d(v,function(b,E){return JSON.stringify(b)===JSON.stringify(E)},function(b){return JSON.parse(JSON.stringify(b))})},s.reactJsonCollectionWithUndefined=function(v){return u(v,function(b,E){return JSON.stringify(b)===JSON.stringify(E)},function(b){return JSON.parse(JSON.stringify(b))})},s.reactPositions=function(v){return l(v)},s.reactPositionsSet=function(v){return u(v,function(b,E){return b.length===E.length&&b.every(function(S,P){return S.every(function(C,x){return C===E[P][x]})})},function(b){return b.map(function(E){return g([],p(E),!1)})})},s.reactPosition2DsSet=function(v){return u(v,function(b,E){return b.length===E.length&&b.every(function(S,P){return S.every(function(C,x){return C===E[P][x]})})},function(b){return b.map(function(E){return g([],p(E),!1)})})}},3951:function(o,s,a){var c,f=this&&this.__extends||(c=function(g,w){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,y){_.__proto__=y}||function(_,y){for(var h in y)Object.prototype.hasOwnProperty.call(y,h)&&(_[h]=y[h])},c(g,w)},function(g,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");function _(){this.constructor=g}c(g,w),g.prototype=w===null?Object.create(w):(_.prototype=w.prototype,new _)});Object.defineProperty(s,"__esModule",{value:!0}),s.IFrameBorderedPosFloatDiv=void 0;var m=a(7372),p=function(g){function w(){var _=g.call(this)||this,y=document.createElement("iframe");y.style.cssText="width: 100%; height: 100%; border-width: 0px; border-radius: 5px; display: block;",y.src="http://www.weather.com.cn/live/index.shtml",_._iframe=y,_.innerContentDiv.appendChild(y);var h=function(d){d.source===_._iframe.contentWindow&&(_._iframeMessageEvent?_._iframeMessageEvent.emit(d):console.warn("iframe消息接收到未处理!data: ".concat(d.data)))};return window.addEventListener("message",h),_.dispose(function(){window.removeEventListener("message",h)}),_}return f(w,g),w.prototype.reset=function(){g.prototype.reset.call(this),this.src=""},Object.defineProperty(w.prototype,"src",{get:function(){return this._iframe.src},set:function(_){this._iframe.src!==_&&(this._iframe.src=_)},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"iframe",{get:function(){return this._iframe},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"iframeMessageEvent",{get:function(){return this._iframeMessageEvent=this._iframeMessageEvent||new m.Event,this._iframeMessageEvent},enumerable:!1,configurable:!0}),w}(a(4143).BorderedPosFloatDiv);s.IFrameBorderedPosFloatDiv=p},3983:(o,s)=>{function a(c,f,m){for(var p=0;p<m;++p)if(c[p]!==f[p])return!1;return!0}Object.defineProperty(s,"__esModule",{value:!0}),s.equalsPenSplineVertexType=void 0,s.equalsPenSplineVertexType=function(c,f,m){return a(c.position,f.position,m)&&(c.leftPosition===f.leftPosition===void 0||c.leftPosition&&f.leftPosition&&a(c.leftPosition,f.leftPosition,m)||!1)&&(c.rightPosition===f.rightPosition===void 0||c.rightPosition&&f.rightPosition&&a(c.rightPosition,f.rightPosition,m)||!1)}},4123:function(o,s,a){var c,f=this&&this.__extends||(c=function(h,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&(u[v]=l[v])},c(h,d)},function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function u(){this.constructor=h}c(h,d),h.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)}),m=this&&this.__read||function(h,d){var u=typeof Symbol=="function"&&h[Symbol.iterator];if(!u)return h;var l,v,b=u.call(h),E=[];try{for(;(d===void 0||d-- >0)&&!(l=b.next()).done;)E.push(l.value)}catch(S){v={error:S}}finally{try{l&&!l.done&&(u=b.return)&&u.call(b)}finally{if(v)throw v.error}}return E};Object.defineProperty(s,"__esModule",{value:!0}),s.CursorInfo=s.CursorFloatDiv=void 0;var p=a(7372),g=a(4621),w=a(7445),_=function(h){function d(){var u=h.call(this)||this;return u.contentDiv.style.backgroundColor="rgba(0, 0, 0, 0.8)",u.contentDiv.style.borderRadius="3px",u.contentDiv.style.color="rgb(255, 255, 255)",u.contentDiv.style.padding="1px 5px 1px 5px",u.contentDiv.style.fontSize="12px",u.contentDiv.style.whiteSpace="nowrap",u.contentDiv.innerText="未定义光标信息!",u.originRatioX=0,u.originRatioY=0,u.originOffsetX=-16,u}return f(d,h),d}(w.PosFloatDiv);s.CursorFloatDiv=_;var y=function(h){function d(u,l){var v=h.call(this)||this;v._pointerOut=v.disposeVar((0,p.react)(!1)),v._show=v.disposeVar((0,p.react)(!0)),v._cursorDiv=new w.DivPoi(l,u),v.dispose(function(){return v._cursorDiv.destroy()});var b=function(S){var P=m((0,g.getDomEventCurrentTargetPos)(S),2),C=P[0],x=P[1];v._cursorDiv.floatDiv.winPos=[C,x]};u.addEventListener("pointermove",b),v.dispose(function(){return u.removeEventListener("pointermove",b)});var E=function(){v._cursorDiv.show=v.show&&v._pointerOut.value};return E(),v.dispose(v.showChanged.disposableOn(E)),v.dispose(v._pointerOut.changed.disposableOn(E)),v}return f(d,h),Object.defineProperty(d.prototype,"show",{get:function(){return this._show.value},set:function(u){this._show.value=u},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"showChanged",{get:function(){return this._show.changed},enumerable:!1,configurable:!0}),d.prototype.reset=function(){this._pointerOut.value=!1},Object.defineProperty(d.prototype,"cursorDiv",{get:function(){return this._cursorDiv},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"text",{get:function(){return this._cursorDiv.floatDiv.contentDiv.innerText},set:function(u){this._cursorDiv.floatDiv.contentDiv.innerText=u},enumerable:!1,configurable:!0}),d}(p.Destroyable);s.CursorInfo=y},4143:function(o,s,a){var c,f=this&&this.__extends||(c=function(d,u){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,v){l.__proto__=v}||function(l,v){for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&(l[b]=v[b])},c(d,u)},function(d,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");function l(){this.constructor=d}c(d,u),d.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}),m=this&&this.__read||function(d,u){var l=typeof Symbol=="function"&&d[Symbol.iterator];if(!l)return d;var v,b,E=l.call(d),S=[];try{for(;(u===void 0||u-- >0)&&!(v=E.next()).done;)S.push(v.value)}catch(P){b={error:P}}finally{try{v&&!v.done&&(l=E.return)&&l.call(E)}finally{if(b)throw b.error}}return S};Object.defineProperty(s,"__esModule",{value:!0}),s.BorderedPosFloatDiv=s.createBottomTriangleElement=s.createCloseDiv=void 0;var p=a(7372),g=a(9986),w=["top","bottom","left","right"];function _(d,u,l){var v,b=document.createElement("div");return b.style.cssText="position: absolute; ".concat((v=l,Object.entries(v).map(function(E){var S=m(E,2),P=S[0],C=S[1];return w.includes(P)?"".concat(P,": ").concat(C,"px; "):""}).join(""))," background-color: ").concat(d,"; border-radius: ").concat(u,"px;"),b.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>',b}function y(d,u,l){l===void 0&&(l="rgba(0,0,0,0.7)");var v=document.createElement("div");v.style.cssText="margin: 0 auto; width: ".concat(d,"px; height: ").concat(u,"px; position: relative; pointer-events: none;");var b=document.createElement("div");return b.style.cssText="position: absolute; left: 0px; top: 0px; width: 0; height: 0; border-left: ".concat(.5*d,"px solid transparent; border-right: ").concat(.5*d,"px solid transparent; border-top: ").concat(u,"px solid ").concat(l,";"),v.appendChild(b),[v,b]}s.createCloseDiv=_,s.createBottomTriangleElement=y;var h=function(d){function u(){var l=d.call(this)||this;l._colorStr="rgba(0, 0, 0, 0.7)",l._divColorChanged=new p.Event,l._borderRadius=10;var v=document.createElement("div");v.style.cssText="position: relative; background-color: ".concat(l._colorStr,"; border-radius: ").concat(l._borderRadius,"px; padding: 5px; pointer-events: all;"),l._borderDiv=v;var b=_(l._colorStr,10,{top:3,right:3}),E=m(y(2*l._borderRadius,2*l._borderRadius,l._colorStr),2),S=E[0],P=E[1],C=document.createElement("div");l._innerContentDiv=C,v.appendChild(C),v.appendChild(b),l.contentDiv.appendChild(v),l.contentDiv.appendChild(S),b.style.opacity="0.1",b.onmouseenter=function(){b.style.opacity="1.0"},b.onmouseleave=function(){b.style.opacity="0.1"},b.onclick=function(){l._closeEvent&&l._closeEvent.emit()},l._closeDiv=b,l.dispose(l._divColorChanged.disposableOn(function(){P.style.borderTopColor=l._colorStr,v.style.backgroundColor=l._colorStr,S.style.width="".concat(2*l._borderRadius,"px"),S.style.height="".concat(2*l._borderRadius,"px"),P.style.borderLeft="".concat(l._borderRadius,"px"),P.style.borderRight="".concat(l._borderRadius,"px"),P.style.borderTop="".concat(2*l._borderRadius,"px")}));var x=function(O){O.key==="Escape"&&l._closeEvent&&l._closeEvent.emit()};return document.body.addEventListener("keydown",x,!0),l.dispose(function(){document.removeEventListener("keydown",x,!0)}),l}return f(u,d),Object.defineProperty(u.prototype,"borderDiv",{get:function(){return this._borderDiv},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"innerContentDiv",{get:function(){return this._innerContentDiv},enumerable:!1,configurable:!0}),u.prototype.reset=function(){this.show=!1,this.opacity=0,this._closeDiv.style.opacity="0.1",d.prototype.reset.call(this)},Object.defineProperty(u.prototype,"colorStr",{get:function(){return this._colorStr},set:function(l){this._colorStr!==l&&(this._colorStr=l,this._divColorChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"borderRadius",{get:function(){return this._borderRadius},set:function(l){this._borderRadius!==l&&(this._borderRadius=l,this._divColorChanged.emit())},enumerable:!1,configurable:!0}),u}(g.PosFloatDiv);s.BorderedPosFloatDiv=h},4206:function(o,s){var a,c=this&&this.__extends||(a=function(m,p){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,w){g.__proto__=w}||function(g,w){for(var _ in w)Object.prototype.hasOwnProperty.call(w,_)&&(g[_]=w[_])},a(m,p)},function(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function g(){this.constructor=m}a(m,p),m.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)});Object.defineProperty(s,"__esModule",{value:!0}),s.CancelError=void 0;var f=function(m){function p(){return m!==null&&m.apply(this,arguments)||this}return c(p,m),p}(Error);s.CancelError=f},4209:(o,s,a)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.inverse=void 0;var c=a(8089),f=a(2731),m=a(9898),p=(0,f.createNumbers)(9),g=(0,f.createNumbers)(9),w=(0,f.createNumbers)(4),_=(0,f.createNumbers)(4,0,0,0,1);s.inverse=function(y,h){var d=y[0],u=y[4],l=y[8],v=y[12],b=y[1],E=y[5],S=y[9],P=y[13],C=y[2],x=y[6],O=y[10],I=y[14],N=y[3],T=y[7],R=y[11],A=y[15],B=O*A,k=I*R,z=x*A,j=I*T,L=x*R,F=O*T,G=C*A,W=I*N,V=C*R,U=O*N,H=C*T,J=x*N,Y=B*E+j*S+L*P-(k*E+z*S+F*P),re=k*b+G*S+U*P-(B*b+W*S+V*P),ae=z*b+W*E+H*P-(j*b+G*E+J*P),te=F*b+V*E+J*S-(L*b+U*E+H*S),me=k*u+z*l+F*v-(B*u+j*l+L*v),be=B*d+W*l+V*v-(k*d+G*l+U*v),ie=j*d+G*u+J*v-(z*d+W*u+H*v),fe=L*d+U*u+H*l-(F*d+V*u+J*l),Ce=(B=l*P)*T+(j=v*E)*R+(L=u*S)*A-((k=v*S)*T+(z=u*P)*R+(F=l*E)*A),Te=k*N+(G=d*P)*R+(U=l*b)*A-(B*N+(W=v*b)*R+(V=d*S)*A),Ie=z*N+W*T+(H=d*E)*A-(j*N+G*T+(J=u*b)*A),ve=F*N+V*T+J*R-(L*N+U*T+H*R),Ne=z*O+F*I+k*x-(L*I+B*x+j*O),Le=V*I+B*C+W*O-(G*O+U*I+k*C),Ve=G*x+J*I+j*C-(H*I+z*C+W*x),Ye=H*O+L*C+U*x-(V*x+J*O+F*C),je=d*Y+u*re+l*ae+v*te;if(h=h||(0,f.createNumbers)(16),Math.abs(je)<1e-21){if(m.Vector.equalsEpsilon(c.Matrix4.getMatrix3(y,p),g,1e-7)&&m.Vector.equals(c.Matrix4.getRow(y,3,w),_))return h[0]=0,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=0,h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[10]=0,h[11]=0,h[12]=-y[12],h[13]=-y[13],h[14]=-y[14],h[15]=1,h;throw new Error("matrix is not invertible because its determinate is zero.")}return je=1/je,h[0]=Y*je,h[1]=re*je,h[2]=ae*je,h[3]=te*je,h[4]=me*je,h[5]=be*je,h[6]=ie*je,h[7]=fe*je,h[8]=Ce*je,h[9]=Te*je,h[10]=Ie*je,h[11]=ve*je,h[12]=Ne*je,h[13]=Le*je,h[14]=Ve*je,h[15]=Ye*je,h}},4221:function(o,s,a){var c=this&&this.__createBinding||(Object.create?function(m,p,g,w){w===void 0&&(w=g);var _=Object.getOwnPropertyDescriptor(p,g);_&&!("get"in _?!p.__esModule:_.writable||_.configurable)||(_={enumerable:!0,get:function(){return p[g]}}),Object.defineProperty(m,w,_)}:function(m,p,g,w){w===void 0&&(w=g),m[w]=p[g]}),f=this&&this.__exportStar||function(m,p){for(var g in m)g==="default"||Object.prototype.hasOwnProperty.call(p,g)||c(p,m,g)};Object.defineProperty(s,"__esModule",{value:!0}),f(a(4292),s),f(a(1662),s),f(a(3281),s),f(a(6356),s)},4235:(o,s,a)=>{s.A=void 0;var c=a(4638),f=a(733),m={blocks:function(d){for(var u=[],l=d.data.length,v=0,b=(0,f.readByte)()(d);b!==0&&b;b=(0,f.readByte)()(d)){if(d.pos+b>=l){var E=l-d.pos;u.push((0,f.readBytes)(E)(d)),v+=E;break}u.push((0,f.readBytes)(b)(d)),v+=b}for(var S=new Uint8Array(v),P=0,C=0;C<u.length;C++)S.set(u[C],P),P+=u[C].length;return S}},p=(0,c.conditional)({gce:[{codes:(0,f.readBytes)(2)},{byteSize:(0,f.readByte)()},{extras:(0,f.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,f.readUnsigned)(!0)},{transparentColorIndex:(0,f.readByte)()},{terminator:(0,f.readByte)()}]},function(d){var u=(0,f.peekBytes)(2)(d);return u[0]===33&&u[1]===249}),g=(0,c.conditional)({image:[{code:(0,f.readByte)()},{descriptor:[{left:(0,f.readUnsigned)(!0)},{top:(0,f.readUnsigned)(!0)},{width:(0,f.readUnsigned)(!0)},{height:(0,f.readUnsigned)(!0)},{lct:(0,f.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,c.conditional)({lct:(0,f.readArray)(3,function(d,u,l){return Math.pow(2,l.descriptor.lct.size+1)})},function(d,u,l){return l.descriptor.lct.exists}),{data:[{minCodeSize:(0,f.readByte)()},m]}]},function(d){return(0,f.peekByte)()(d)===44}),w=(0,c.conditional)({text:[{codes:(0,f.readBytes)(2)},{blockSize:(0,f.readByte)()},{preData:function(d,u,l){return(0,f.readBytes)(l.text.blockSize)(d)}},m]},function(d){var u=(0,f.peekBytes)(2)(d);return u[0]===33&&u[1]===1}),_=(0,c.conditional)({application:[{codes:(0,f.readBytes)(2)},{blockSize:(0,f.readByte)()},{id:function(d,u,l){return(0,f.readString)(l.blockSize)(d)}},m]},function(d){var u=(0,f.peekBytes)(2)(d);return u[0]===33&&u[1]===255}),y=(0,c.conditional)({comment:[{codes:(0,f.readBytes)(2)},m]},function(d){var u=(0,f.peekBytes)(2)(d);return u[0]===33&&u[1]===254}),h=[{header:[{signature:(0,f.readString)(3)},{version:(0,f.readString)(3)}]},{lsd:[{width:(0,f.readUnsigned)(!0)},{height:(0,f.readUnsigned)(!0)},{gct:(0,f.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,f.readByte)()},{pixelAspectRatio:(0,f.readByte)()}]},(0,c.conditional)({gct:(0,f.readArray)(3,function(d,u){return Math.pow(2,u.lsd.gct.size+1)})},function(d,u){return u.lsd.gct.exists}),{frames:(0,c.loop)([p,_,y,g,w],function(d){var u=(0,f.peekByte)()(d);return u===33||u===44})}];s.A=h},4292:(o,s)=>{var a;Object.defineProperty(s,"__esModule",{value:!0}),s.copyright=void 0;var c=(a="".concat("xbsj-base"))!==null&&a!==void 0?a:"-",f="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",m=((Date.now()-1743502596e3)/36e5).toFixed(1),p="%c🌏 ".concat(c,"%c ").concat("1.0.1"," ").concat("6a6f3869f41c8db67af383a267b45147c29ee2b5".slice(0,8)," ").concat("2025-04-01T10:16:36.000Z"," (距今").concat(m,`个小时)
4
4
  %c`).concat(f+`
@@ -535,7 +535,7 @@ export type ESJTimeIntervalCollectionJsonType = {
535
535
  };
536
536
 
537
537
  \`\`\`
538
- `,jn=class jn extends Be{get typeName(){return"ESImageryLayer"}get defaultProps(){return jn.createDefaultProps()}constructor(e){super(e)}getESProperties(){const e={...super.getESProperties()};return{...e,defaultMenu:"dataSource",basic:[...e.basic,new q("层级序号","层级序号",!1,!1,[this,"zIndex"],jn.defaults.zIndex)],dataSource:[...e.dataSource,new ne("影像服务地址","影像服务地址",!1,!1,[this,"url"]),new kr("矩形范围","西南东北",!0,!1,[this,"rectangle"],jn.defaults.rectangle),new et("最大级别","最大级别.",!0,!1,[this,"maximumLevel"],1,[1,24],jn.defaults.maximumLevel),new ne("options","options",!0,!1,[this,"options"],jn.defaults.options),new de("targetID","targetID",!1,!1,[this,"targetID"],""),new et("opacity","opacity",!1,!1,[this,"opacity"],.01,[0,1],1)]}}getProperties(e){return[...super.getProperties(e),new ee("ESImageryLayer","ESImageryLayer",[new ne("影像服务地址","影像服务地址",!1,!1,[this,"url"]),new ee("通用","通用",[new kr("矩形范围","西南东北",!0,!1,[this,"rectangle"],jn.defaults.rectangle),new q("高度","A numeric Property specifying the height.",!1,!1,[this,"height"]),new q("zIndex","层级",!1,!1,[this,"zIndex"]),new de("actorTag","actorTag",!1,!1,[this,"actorTag"]),new de("componentTag","componentTag",!1,!1,[this,"componentTag"]),new q("minimumLevel","minimumLevel",!1,!1,[this,"minimumLevel"]),new q("maximumLevel","maximumLevel",!1,!1,[this,"maximumLevel"]),new ne("options","options",!0,!1,[this,"options"],{},Dy),new de("targetID","targetID",!1,!1,[this,"targetID"]),new et("opacity","opacity",!1,!1,[this,"opacity"],.01,[0,1],1)]),new ee("czm","czm",[new ce("czmSplitDirection","The ImagerySplitDirection split to apply to this layer.",!1,!1,[this,"czmSplitDirection"],jn.defaults.czmSplitDirectionEnum),new q("透明度","透明度,The alpha blending value of this layer, from 0.0 to 1.0.",!1,!1,[this,"czmAlpha"]),new q("亮度","亮度,The brightness of this layer. 1.0 uses the unmodified imagery color.",!1,!1,[this,"czmBrightness"]),new q("对比度","对比度,The contrast of this layer. 1.0 uses the unmodified imagery color.",!1,!1,[this,"czmContrast"]),new q("色相","色相,The hue of this layer. 0.0 uses the unmodified imagery color. ",!1,!1,[this,"czmHue"]),new q("饱和度","饱和度,The saturation of this layer. 1.0 uses the unmodified imagery color. ",!1,!1,[this,"czmSaturation"]),new q("伽马值","伽马,The gamma correction to apply to this layer. 1.0 uses the unmodified imagery color.",!1,!1,[this,"czmGamma"])])])]}};D(jn,"type",jn.register("ESImageryLayer",jn,{chsName:"影像图层",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"影像图层"})),D(jn,"defaults",{...Be.defaults,url:"",rectangle:[-180,-90,180,90],options:{},zIndex:0,actorTag:"",componentTag:"",minimumLevel:0,maximumLevel:22,targetID:"",opacity:1,czmSplitDirection:"NONE",czmSplitDirectionEnum:[["LEFT","LEFT"],["NONE","NONE"],["RIGHT","RIGHT"]],czmAlpha:1,czmBrightness:1,czmContrast:1,czmHue:0,czmSaturation:1,czmGamma:1,czmSubdomains:[]});let Ca=jn;(r=>{r.createDefaultProps=()=>({...Be.createDefaultProps(),url:"",rectangle:M.reactJsonWithUndefined(void 0),options:M.reactJsonWithUndefined(void 0),zIndex:0,actorTag:"",componentTag:"",maximumLevel:22,minimumLevel:0,targetID:"",opacity:1,czmSplitDirection:"NONE",czmAlpha:1,czmBrightness:1,czmContrast:1,czmHue:0,czmSaturation:1,czmGamma:1})})(Ca||(Ca={})),M.extendClassProps(Ca.prototype,Ca.createDefaultProps);const yn=class yn extends le{get typeName(){return"ESLocalSkyBox"}get defaultProps(){return yn.createDefaultProps()}constructor(e){super(e),this.collision=!1,this.allowPicking=!1}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new q("尺寸","圆直径或包围盒边长",!1,!1,[this,"size"],yn.defaults.size),new $("自动跟随","是否跟随相机",!1,!1,[this,"autoFollow"],yn.defaults.autoFollow),new ce("mode","模式",!1,!1,[this,"mode"],yn.defaults.modes,"blueSky")]}}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new q("size","圆直径或包围盒边长",!1,!1,[this,"size"],yn.defaults.size),new $("autoFollow","是否跟随相机(自动跟随效果为渐变,会在5000米左右消失)",!1,!1,[this,"autoFollow"],yn.defaults.autoFollow),new q("autoOpacityFactor","自动消失系数",!1,!1,[this,"autoOpacityFactor"],yn.defaults.autoOpacityFactor),new ce("mode","模式",!1,!1,[this,"mode"],yn.defaults.modes)])]}};D(yn,"type",yn.register("ESLocalSkyBox",yn,{chsName:"局部天空盒",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"效果类"})),D(yn,"defaults",{...le.defaults,size:1e4,autoFollow:!0,autoOpacityFactor:2,modes:[["baiyun","baiyun"],["blueSky","blueSky"],["clearSky","clearSky"],["dream","dream"],["starrySky","starrySky"],["sunnySky","sunnySky"],["sunSets","sunSets"]]});let xa=yn;(r=>{r.createDefaultProps=()=>({...le.createDefaultProps(),size:1e4,autoFollow:!0,autoOpacityFactor:2,mode:"blueSky"})})(xa||(xa={})),M.extendClassProps(xa.prototype,xa.createDefaultProps);const Nu=class Nu extends le{constructor(t){super(t);D(this,"_location",this.disposeVar(M.react(void 0)));{const n=()=>{this.location=this.position};n(),this.ad(this.positionChanged.don(n))}}get typeName(){return"ESLocationMeasurement"}get defaultProps(){return Nu.createDefaultProps()}get location(){return this._location.value}set location(t){this._location.value=t}get locationChanged(){return this._location.changed}getProperties(t){return[...super.getProperties(t)]}};D(Nu,"type",Nu.register("ESLocationMeasurement",Nu,{chsName:"位置测量点",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"位置测量点"})),D(Nu,"defaults",{...le.defaults});let Oa=Nu;(r=>{r.createDefaultProps=()=>({...le.createDefaultProps()})})(Oa||(Oa={})),M.extendClassProps(Oa.prototype,Oa.createDefaultProps);const rr=class rr extends le{constructor(t){super(t);D(this,"_player",this.dv(new Ni));{const n=rr.defaults;this.d(M.bind([this._player,"loop"],[this,"playingLoop"],i=>i??n.playingLoop,i=>i??n.playingLoop)),this.d(M.bind([this._player,"currentTime"],[this,"currentTime"],i=>i??n.currentTime,i=>i??n.currentTime)),this.d(M.bind([this._player,"duration"],[this,"duration"],i=>i??n.duration,i=>i??n.duration)),this.d(M.bind([this._player,"playing"],[this,"playing"],i=>i??n.playing,i=>i??n.playing)),this.d(M.bind([this._player,"speed"],[this,"playingSpeed"],i=>i??n.playingSpeed,i=>i??n.playingSpeed))}}get typeName(){return"ESParticleSystemPrimitive"}get defaultProps(){return rr.createDefaultProps()}get player(){return this._player}get ratio(){return this._player.ratio}set ratio(t){this._player.ratio=t}get ratioChanged(){return this._player.ratioChanged}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new Se("飞入","飞入",["number"],n=>this.flyTo(n),[1e3]),new Vi("更新回调函数","The callback function to be called each frame to update a particle.",!0,!1,[this,"updateCallback"]),new q("发射率","emissionRate,The number of particles to emit per second.",!0,!1,[this,"emissionRate"],5),new $("是否循环","loop,Whether the particle system should loop its bursts when it is complete.",!0,!1,[this,"loop"],!0),new q("等级","scale,Sets the scale to apply to the image of the particle for the duration of its particleLife.",!0,!1,[this,"particleScale"],1),new q("初始等级","startScale,The initial scale to apply to the image of the particle at the beginning of its life.",!0,!1,[this,"startScale"]),new q("结束等级","endScale,The final scale to apply to the image of the particle at the end of its life.",!0,!1,[this,"endScale"],rr.defaults.endScale),new pe("颜色","Sets the color of a particle for the duration of its particleLife.",!0,!1,[this,"color"]),new pe("初始颜色","The color of the particle at the beginning of its life.",!0,!1,[this,"startColor"]),new pe("结束颜色","The color of the particle at the end of its life.",!0,!1,[this,"endColor"]),new $("尺寸单位为米","Sets if the size of particles is in meters or pixels. true to size the particles in meters; otherwise, the size is in pixels.",!0,!1,[this,"sizeInMeters"]),new q("速度","speed,If set, overrides the minimumSpeed and maximumSpeed inputs with this value.",!0,!1,[this,"speed"],1),new q("最小速度","minimumSpeed,Sets the minimum bound in meters per second above which a particles actual speed will be randomly chosen.",!0,!1,[this,"minimumSpeed"]),new q("最大速度","maximumSpeed,Sets the maximum bound in meters per second below which a particles actual speed will be randomly chosen.",!0,!1,[this,"maximumSpeed"]),new q("生命周期","lifetime,How long the particle system will emit particles, in seconds.",!0,!1,[this,"lifetime"],Number.MAX_VALUE),new q("粒子生命周期","particleLife,If set, overrides the minimumParticleLife and maximumParticleLife inputs with this value.",!0,!1,[this,"particleLife"],rr.defaults.particleLife),new q("最小粒子生命周期","minimumParticleLife,Sets the minimum bound in seconds for the possible duration of a particles life above which a particles actual life will be randomly chosen.",!0,!1,[this,"minimumParticleLife"]),new q("最大粒子生命周期","maximumParticleLife,Sets the maximum bound in seconds for the possible duration of a particles life below which a particles actual life will be randomly chosen.",!0,!1,[this,"maximumParticleLife"]),new q("块数量","mass,Sets the minimum and maximum mass of particles in kilograms.",!0,!1,[this,"mass"],1),new q("最小块数量","minimumMass,Sets the minimum bound for the mass of a particle in kilograms. A particles actual mass will be chosen as a random amount above this value.",!0,!1,[this,"minimumMass"]),new q("最大块数量","maximumMass,Sets the maximum mass of particles in kilograms. A particles actual mass will be chosen as a random amount below this value.",!0,!1,[this,"maximumMass"]),new lt("图片尺寸","imageSize",!0,!1,[this,"imageSize"],rr.defaults.imageSize),new lt("最小图片尺寸","minimumImageSize",!0,!1,[this,"minimumImageSize"]),new lt("最大图片尺寸","maximumImageSize",!0,!1,[this,"maximumImageSize"]),new Xl("图片","The URI, HTMLImageElement, or HTMLCanvasElement to use for the billboard.",!0,!1,[this,"image"],rr.defaults.image),new Kt("偏移","translation",!0,!1,[this,"translation"],[0,0,0]),new gf("bursts","bursts",!0,!1,[this,"bursts"]),new ne("emitter","emitter",!1,!1,[this,"emitter"],rr.defaults.emitter)]),new ee("播放器","播放器",[new q("播放比率","播放比率(0-1)",!0,!1,[this,"ratio"],rr.defaults.ratio),new Kc("播放器","播放器",[this,"playing"],[this,"ratio"],[this,"playingLoop"]),new $("是否循环","是否循环.",!0,!1,[this,"playingLoop"],rr.defaults.playingLoop),new q("当前时间","当前时间",!0,!1,[this,"currentTime"],rr.defaults.currentTime),new q("过渡时间","过渡时间",!0,!1,[this,"duration"],rr.defaults.duration),new $("是否播放","是否播放.",!0,!1,[this,"playing"],rr.defaults.playing),new q("播放速度","播放速度.",!0,!1,[this,"playingSpeed"],rr.defaults.playingSpeed)])]}};D(rr,"type",rr.register("ESParticleSystemPrimitive",rr,{chsName:"粒子",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"通过Cesium的Primitive API 实现的粒子特效。"})),D(rr,"defaults",{...le.defaults,playingLoop:!0,currentTime:0,playerCurrentTime:0,duration:6e3,playingSpeed:1,playing:!0,ratio:0,particleLife:.5,endScale:4,imageSize:[20,20],image:"${earthsdk3-assets-script-dir}/assets/img/smoke.png",emitter:{type:"CircleEmitter",radius:.5}});let Ma=rr;(r=>{r.createDefaultProps=()=>({...le.createDefaultProps(),emitter:M.reactJsonWithUndefined(void 0),bursts:M.reactArrayCollectionWithUndefined(void 0),translation:M.reactArrayWithUndefined(void 0),positionEditing:void 0,image:void 0,imageSize:M.reactArrayWithUndefined(void 0),minimumImageSize:M.reactArrayWithUndefined(void 0),maximumImageSize:M.reactArrayWithUndefined(void 0),updateCallback:void 0,emissionRate:void 0,loop:void 0,particleScale:void 0,startScale:void 0,endScale:void 0,color:M.reactArrayWithUndefined(void 0),startColor:M.reactArrayWithUndefined(void 0),endColor:M.reactArrayWithUndefined(void 0),sizeInMeters:void 0,speed:void 0,minimumSpeed:void 0,maximumSpeed:void 0,lifetime:void 0,particleLife:void 0,minimumParticleLife:void 0,maximumParticleLife:void 0,mass:void 0,minimumMass:void 0,maximumMass:void 0,playingLoop:void 0,currentTime:void 0,duration:void 0,playingSpeed:void 0,playing:void 0})})(Ma||(Ma={})),M.extendClassProps(Ma.prototype,Ma.createDefaultProps);const mn=class mn extends jt{constructor(t){super(t);D(this,"initialStyle",this.ad(M.reactJsonWithUndefined(void 0)));D(this,"_getInitialStyleEvent",this.disposeVar(new M.Event))}get typeName(){return"ESPoi2D"}get defaultProps(){return mn.createDefaultProps()}get getInitialStyleEvent(){return this._getInitialStyleEvent}getInitialStyle(){return Promise.race([new Promise(t=>{const n=this.d(this.initialStyle.changed.disposableOnce(t));this.getInitialStyleEvent.emit(),setTimeout(()=>{n(),t(void 0)},2e3)})])}getESProperties(){const t={...super.getESProperties()};return{...t,basic:[...t.basic,new ce("模式","mode",!1,!1,[this,"mode"],mn.defaults.modes,mn.defaults.mode),new ne("样式","style",!1,!1,[this,"style"],mn.defaults.style),new $("自动锚点对齐","autoAnchor",!1,!1,[this,"autoAnchor"],mn.defaults.autoAnchor)]}}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new ce("模式","mode",!1,!1,[this,"mode"],mn.defaults.modes),new ne("样式","style",!1,!1,[this,"style"],mn.defaults.style),new $("自动锚点对齐","autoAnchor",!1,!1,[this,"autoAnchor"],mn.defaults.autoAnchor)])]}};D(mn,"type",mn.register("ESPoi2D",mn,{chsName:"ESPoi2D",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"三角形,菱形"})),D(mn,"defaults",{...jt.defaults,modes:[["自定义","Custom"],["SquareH01","SquareH01"],["SquareH02","SquareH02"],["SquareV01","SquareV01"],["SquareV02","SquareV02"],["SquareV03","SquareV03"],["SquareV04","SquareV04"],["Flag01","Flag01"],["Flag02","Flag02"],["Linear01","Linear01"],["Linear02","Linear02"],["Linear03","Linear03"],["CircularH01","CircularH01"],["CircularH02","CircularH02"],["CircularV01","CircularV01"],["CircularV02","CircularV02"],["CircularV03","CircularV03"],["CircularV04","CircularV04"],["CircularV05","CircularV05"],["P3D01","P3D01"],["P3D02","P3D02"],["P3D03","P3D03"],["P3D04","P3D04"],["P3D05","P3D05"],["P3D06","P3D06"],["P3D07","P3D07"],["Diamond01","Diamond01"],["Diamond02","Diamond02"],["Stranger","Stranger"],["ManNormal","ManNormal"],["ManAbnormal","ManAbnormal"],["WomanNormal","WomanNormal"],["WomanAbnormal","WomanAbnormal"],["Camera","Camera"]],mode:"SquareH01",style:{fontSize:16,imageSize:[60,60],textBackgroundColor:[1,1,1,0],textBackgroundSize:[120,30],textColor:[1,1,1,1],textOffset:[10,2],textBoxOffset:[40,0],textBoxAlign:"start",textBoxShow:!0,textBoxMode:"default"},autoAnchor:!0});let as=mn;(r=>{r.createDefaultProps=()=>({...jt.createDefaultProps(),mode:"SquareH01",style:M.reactJson({}),autoAnchor:!0})})(as||(as={})),M.extendClassProps(as.prototype,as.createDefaultProps);const Ri=class Ri extends le{get typeName(){return"ESPoi3D"}get defaultProps(){return Ri.createDefaultProps()}constructor(e){super(e)}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new ce("模式","mode",!1,!1,[this,"mode"],Ri.defaults.modes),new ne("样式","style",!1,!1,[this,"style"],Ri.defaults.style)]}}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new ce("模式","mode",!1,!1,[this,"mode"],Ri.defaults.modes),new ne("样式","style",!1,!1,[this,"style"],Ri.defaults.style)])]}};D(Ri,"type",Ri.register("ESPoi3D",Ri,{chsName:"ESPoi3D",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"三角形,菱形"})),D(Ri,"defaults",{...le.defaults,modes:[["三角形","triangle"],["菱形","diamond"]],mode:"triangle",style:{UI_Color:[.09803921568627451,.40784313725490196,.8,1],FX_Color:[.09803921568627451,.40784313725490196,.8,1]}});let Ia=Ri;(r=>{r.createDefaultProps=()=>({...le.createDefaultProps(),mode:"triangle",style:M.reactJson(r.defaults.style)})})(Ia||(Ia={})),M.extendClassProps(Ia.prototype,Ia.createDefaultProps);const Du=class Du extends Ue{constructor(t){super(t);D(this,"_czmFlattenedPlaneId",this.disposeVar(M.react("")));this.filled=!1}get typeName(){return"ESPolygonFlattenedPlane"}get defaultProps(){return Du.createDefaultProps()}get czmFlattenedPlaneId(){return this._czmFlattenedPlaneId.value}set czmFlattenedPlaneId(t){this._czmFlattenedPlaneId.value=t}get czmFlattenedPlaneIdChanged(){return this._czmFlattenedPlaneId.changed}getESProperties(){const t={...super.getESProperties()};return{...t,basic:[...t.basic,new de("瓦片图层","targetID",!1,!1,[this,"targetID"],"")]}}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new de("瓦片图层","targetID",!1,!1,[this,"targetID"])])]}};D(Du,"type",Du.register("ESPolygonFlattenedPlane",Du,{chsName:"压平",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESPolygonFlattenedPlane"})),D(Du,"defaults",{...Ue.defaults});let Ta=Du;(r=>{r.createDefaultProps=()=>({...Ue.createDefaultProps(),targetID:""})})(Ta||(Ta={})),M.extendClassProps(Ta.prototype,Ta.createDefaultProps);const Ay=async(r,e,t)=>{const{viewer:n}=r;if(!n){console.error("AddTrees: ueViewer.viewer is undefined");return}const i=await n.callUeFunc({f:"AddTrees",p:{id:e,TreeParams:t}});return i.error&&console.error("AddTrees:",i.error),i},Ry=async(r,e)=>{const{viewer:t}=r;if(!t){console.error("RemoveAllTrees: ueViewer.viewer is undefined");return}const n=await t.callUeFunc({f:"RemoveAllTrees",p:{id:e}});return n.error&&console.error("RemoveAllTrees:",n.error),n},Ly=async(r,e,t)=>{const{viewer:n}=r;if(!n){console.error("UpdateTreeParams: ueViewer.viewer is undefined");return}const i=await n.callUeFunc({f:"UpdateTreeParams",p:{id:e,TreeParams:t}});return i.error&&console.error("UpdateTreeParams:",i.error),i},Fy=async(r,e,t,n)=>{const{viewer:i}=r;if(!i){console.error("CutDownTrees: ueViewer.viewer is undefined");return}const o=await i.callUeFunc({f:"CutDownTrees",p:{id:e,TreeIds:t,TimeLength:n}});return o.error&&console.error("CutDownTrees:",o.error),o},jy=async(r,e,t,n,i)=>{const{viewer:o}=r;if(!o){console.error("GrowthSimulation: ueViewer.viewer is undefined");return}const s=await o.callUeFunc({f:"GrowthSimulation",p:{id:e,ToParams:t,SwitchTime:i,TimeLength:n}});return s.error&&console.error("GrowthSimulation:",s.error),s},Au=class Au extends Be{constructor(t){super(t);D(this,"_addTreesEvent",this.dv(new M.Event));D(this,"_removeAllTreesEvent",this.dv(new M.Event));D(this,"_updateTreeParamsEvent",this.dv(new M.Event));D(this,"_cutDownTreesEvent",this.dv(new M.Event));D(this,"_growthSimulationEvent",this.dv(new M.Event))}get typeName(){return"ESSeparateFoliage"}get defaultProps(){return Au.createDefaultProps()}async addTreesCallFunc(t,n){return await Ay(t,this.id,n)}async updateTreeParamsCallFunc(t,n){return await Ly(t,this.id,n)}async cutDownTreesCallFunc(t,n,i){return await Fy(t,this.id,n,i)}async removeAllTreesCallFunc(t){return await Ry(t,this.id)}async growthSimulationCallFunc(t,n,i,o){return await jy(t,this.id,n,i,o)}async getIdByComponentNameAndHitItem(t,n,i){return await t.getIdByComponentNameAndHitItem(this.id,n,i)}get addTreesEvent(){return this._addTreesEvent}addTrees(t){this._addTreesEvent.emit(t)}get removeAllTreesEvent(){return this._removeAllTreesEvent}removeAllTrees(){this._removeAllTreesEvent.emit()}get updateTreeParamsEvent(){return this._updateTreeParamsEvent}updateTreeParams(t){this._updateTreeParamsEvent.emit(t)}get cutDownTreesEvent(){return this._cutDownTreesEvent}cutDownTrees(t,n){this._cutDownTreesEvent.emit(t,n)}get growthSimulationEvent(){return this._growthSimulationEvent}growthSimulation(t,n,i){this._growthSimulationEvent.emit(t,n,i)}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new ne("treeTypes","类型为 { name: string, meshPath: string }[]",!0,!1,[this,"treeTypes"],[],"{ name: string, meshPath: string }[]"),new q("树桩id","树桩id",!1,!1,[this,"stumpId"]),new q("动画间隔时间","动画间隔时间",!1,!1,[this,"intervalTime"]),new q("切换间隔时间","切换间隔时间",!1,!1,[this,"switchIntervalTime"])])]}};D(Au,"type",Au.register("ESSeparateFoliage",Au,{chsName:"单体控制森林",tags:["ESObjects","_ES_Impl_UE"],description:"ESSeparateFoliage"})),D(Au,"defaults",{...Be.defaults,treeTypes:[],stumpId:-1,intervalTime:.1,switchIntervalTime:.5});let Na=Au;(r=>{r.createDefaultProps=()=>({...Be.createDefaultProps(),treeTypes:M.reactJsonWithUndefined(void 0),stumpId:-1,intervalTime:.1,switchIntervalTime:.5})})(Na||(Na={})),M.extendClassProps(Na.prototype,Na.createDefaultProps);function ef(r,e,t){const n="buffer"in r,i=n?r.buffer:r;n&&(e+=r.byteOffset);const o=new Array(t),s=new DataView(i);for(let a=0;a<t;++a){const c=s.getUint8(e+a);o[a]=String.fromCharCode(c)}return o.join("")}function tf(r,e){const t="buffer"in r,n=t?r.buffer:r;return t&&(e+=r.byteOffset),new DataView(n).getUint32(e,!0)}function ky(r,e,t){const n="buffer"in r,i=n?r.buffer:r;if(n&&(e+=r.byteOffset),e+t>i.byteLength){console.error("byteOffset + length > buffer.byteLength");return}return new Uint8Array(i,e,t)}function $S(r,e,t){const n="buffer"in r,i=n?r.buffer:r;if(n&&(e+=r.byteOffset),e+t*2>i.byteLength){console.error("byteOffset + length * 4 > buffer.byteLength");return}return new Uint16Array(i,e,t)}function ZS(r,e,t){const n="buffer"in r,i=n?r.buffer:r;if(n&&(e+=r.byteOffset),e+t*4>i.byteLength){console.error("byteOffset + length * 4 > buffer.byteLength");return}return new Uint32Array(i,e,t)}function eC(r,e,t){const n="buffer"in r,i=n?r.buffer:r;if(n&&(e+=r.byteOffset),e+t*4>i.byteLength){console.error("byteOffset + length * 4 > buffer.byteLength");return}return new Float32Array(i,e,t)}function Gy(r){if(ef(r,0,4)!=="glTF"){console.error("Not a glTF file");return}const t=tf(r,4);if(t!==2){console.error("Unsupported glTF version");return}const n=tf(r,8);if(n!==r.byteLength){console.error("Invalid glTF length");return}const i=tf(r,12);if(i+12+4>n){console.error("Invalid glTF chunk length");return}if(ef(r,16,4)!=="JSON"){console.error("Invalid glTF chunk type");return}const s=ef(r,20,i),a={version:t,length:n,gltfJson:s};do{if(20+i>=r.byteLength)break;const c=tf(r,20+i);if(ef(r,20+i+4,4)!=="BIN\0"){console.error("Invalid glTF chunk type");return}const m=ky(r,20+i+8,c);a.gltfBinary=m}while(!1);return a}window.parseGlb=Gy;function Vy(r){const e=Gy(r);if(e===void 0||!e.gltfBinary)return;const t=JSON.parse(e.gltfJson);return t.nodes.map(n=>{var i=t.meshes[n.mesh],o=i.primitives[0].attributes.POSITION,s=i.primitives[0].indices,a=t.accessors[o],c=t.bufferViews[a.bufferView];if(!e.gltfBinary)throw new Error("!glbParseResult.gltfBinary");const f=eC(e.gltfBinary,c.byteOffset??0,c.byteLength/4);var m=t.accessors[s],p=t.bufferViews[m.bufferView];if(!e.gltfBinary)throw new Error("!glbParseResult.gltfBinary");let g;return m.componentType===5121?g=ky(e.gltfBinary,p.byteOffset??0,p.byteLength/1):m.componentType===5123?g=$S(e.gltfBinary,p.byteOffset??0,p.byteLength/2):m.componentType===5125&&(g=ZS(e.gltfBinary,p.byteOffset??0,p.byteLength/4)),{name:n.name,posBuffer:f,indicesBuffer:g}})}window.parseWaterGlb=Vy;const ut=class ut extends le{constructor(t){super(t);D(this,"_submergingData");D(this,"_allMoments",[]);D(this,"readyEvent",this.dv(new M.Event));{const n=()=>{this.url!=""&&fetch(this.url).then(i=>{i.status==200&&i.ok&&i.arrayBuffer().then(o=>{this._submergingData=Vy(o);const s=this._submergingData.map(a=>Date.parse(a.name)).sort();this._allMoments=s,this.currentTime==0&&(this.currentTime=s[0]),this.readyEvent.emit()})}).catch(i=>{console.log(i)})};n(),this.d(this.urlChanged.don(()=>{n()}))}}get typeName(){return"ESSubmergingAnalysis"}get defaultProps(){return ut.createDefaultProps()}get getSubmergingData(){return this._submergingData}getAllMoments(){return this._allMoments}getESProperties(){const t={...super.getESProperties()};return{...t,basic:[...t.basic,new de("Url地址","url",!1,!1,[this,"url"],ut.defaults.url),new et("振幅","控制水波振幅的数值",!1,!1,[this,"amplitude"],.01,[0,1],ut.defaults.amplitude),new q("频率","控制波数的数值(次/千米)",!1,!1,[this,"frequency"],ut.defaults.frequency),new q("当前时间","currentTime",!1,!1,[this,"currentTime"],ut.defaults.currentTime),new ne("材质参数","materialParams",!1,!1,[this,"materialParams"],ut.defaults.materialParams),new ce("水域类型","当为custom是其他控制效果的参数生效,否则不生效,使用对应水域类型的预定效果",!1,!1,[this,"waterType"],ut.defaults.waterTypes,"river"),new pe("水的底色","waterColor",!1,!1,[this,"waterColor"],ut.defaults.waterColor),new et("波动频率","控制水波纹扰动的速率",!1,!1,[this,"waveVelocity"],.01,[0,1],ut.defaults.waveVelocity),new q("水流速度","控制水流速度,单位 米/秒",!1,!1,[this,"flowSpeed"],ut.defaults.flowSpeed),new et("镜面反射强度","控制镜面反射强度的数值",!1,!1,[this,"specularIntensity"],.01,[0,1],ut.defaults.specularIntensity),new et("水体浑浊度","控制水体的浑浊程度,数值越大,浑浊程度越大,取值范围0-10。",!1,!1,[this,"murkiness"],.01,[0,10],ut.defaults.murkiness)]}}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new de("模型Url地址","url",!1,!1,[this,"url"],ut.defaults.url),new q("当前时间","currentTime",!1,!1,[this,"currentTime"],ut.defaults.currentTime),new ne("材质参数","materialParams",!1,!1,[this,"materialParams"],ut.defaults.materialParams),new ce("水域类型","当为custom是其他控制效果的参数生效,否则不生效,使用对应水域类型的预定效果",!1,!1,[this,"waterType"],ut.defaults.waterTypes),new pe("水的底色","waterColor",!1,!1,[this,"waterColor"],ut.defaults.waterColor),new q("频率","控制波数的数值(次/千米)",!1,!1,[this,"frequency"],ut.defaults.frequency),new et("波动频率","控制水波纹扰动的速率",!1,!1,[this,"waveVelocity"],.01,[0,1],ut.defaults.waveVelocity),new et("振幅","控制水波振幅的数值",!1,!1,[this,"amplitude"],.01,[0,1],ut.defaults.amplitude),new et("镜面反射强度","控制镜面反射强度的数值",!1,!1,[this,"specularIntensity"],.01,[0,1],ut.defaults.specularIntensity),new et("水体浑浊度","控制水体的浑浊程度,数值越大,浑浊程度越大,取值范围0-10。",!1,!1,[this,"murkiness"],.01,[0,10],ut.defaults.murkiness),new q("水流速度","控制水流速度,单位 米/秒",!1,!1,[this,"flowSpeed"],ut.defaults.flowSpeed)])]}};D(ut,"type",ut.register("ESSubmergingAnalysis",ut,{chsName:"淹没分析",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESSubmergingAnalysis"})),D(ut,"defaults",{...le.defaults,url:"",currentTime:0,materialParams:{},waterColor:[.1497,.165,.0031,1],frequency:1e3,waveVelocity:.5,amplitude:.1,specularIntensity:.8,waterTypes:[["river","river"],["ocean","ocean"],["lake","lake"],["custom","custom"]],waterType:"river",flowSpeed:0,murkiness:5});let Da=ut;(r=>{r.createDefaultProps=()=>({...le.createDefaultProps(),allowPicking:!0,url:"",currentTime:0,materialParams:M.reactJson({}),waterColor:[.1497,.165,.0031,1],frequency:1e3,waveVelocity:.5,amplitude:.1,specularIntensity:.8,waterType:"river",flowSpeed:0,murkiness:5})})(Da||(Da={})),M.extendClassProps(Da.prototype,Da.createDefaultProps);const Ao=class Ao extends Ue{constructor(t){super(t);D(this,"_startEvent",this.dv(new M.Event));D(this,"_stopEvent",this.dv(new M.Event));this.filled=!1,this.stroked=!1}get typeName(){return"ESSunshineAnalysis"}get defaultProps(){return Ao.createDefaultProps()}get startEvent(){return this._startEvent}start(){this._startEvent.emit()}get stopEvent(){return this._stopEvent}stop(){this._stopEvent.emit()}getProperties(t){return[...super.getProperties(t),new pe("起始颜色","起始颜色",!1,!1,[this,"startColor"]),new pe("结束颜色","结束颜色",!1,!1,[this,"endColor"]),new q("计算进度","计算进度",!0,!0,[this,"progress"]),new q("高度","高度m",!1,!1,[this,"extrudedHeight"]),new q("底面高度","底面高度",!1,!1,[this,"height"]),new q("采样间距","采样间距m",!1,!1,[this,"sampleDistance"]),new q("起始时间","startTime,时间戳",!1,!1,[this,"startTime"]),new q("结束时间","endTime,时间戳",!1,!1,[this,"endTime"]),new q("时间跨度","时间跨度,默认1小时时间戳",!1,!1,[this,"spanTime"]),new Se("开始分析","开始分析",[],()=>this.start(),[]),new Se("结束分析","结束分析",[],()=>this.stop(),[])]}};D(Ao,"type",Ao.register("ESSunshineAnalysis",Ao,{chsName:"日照分析",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"日照分析"})),D(Ao,"supportEditingModes",[...Ue.supportEditingModes,xe.HeightModify]),D(Ao,"defaults",{...Ue.defaults});let Aa=Ao;(r=>{r.createDefaultProps=()=>({...Ue.createDefaultProps(),extrudedHeight:30,height:0,sampleDistance:10,startColor:M.reactArray([1,1,0,1]),endColor:M.reactArray([1,0,0,1]),startTime:0,endTime:36e6,spanTime:1,progress:0})})(Aa||(Aa={})),M.extendClassProps(Aa.prototype,Aa.createDefaultProps);const Zr=class Zr extends Be{constructor(t){super(t);D(this,"_activateEvent",this.disposeVar(new M.Event));D(this,"activate",!1)}get typeName(){return"ESTerrainLayer"}get defaultProps(){return Zr.createDefaultProps()}get activateEvent(){return this._activateEvent}getESProperties(){const t={...super.getESProperties()},n=[new q("层级序号","层级序号",!1,!1,[this,"zIndex"],Zr.defaults.zIndex),new ce("渲染模式","renderMode",!1,!1,[this,"renderMode"],Zr.defaults.renderModes,"default"),new q("透明度","opacity",!1,!1,[this,"opacity"],Zr.defaults.opacity)],i=[new ne("地形服务地址","地形服务地址",!1,!1,[this,"url"],Zr.defaults.url),new kr("矩形范围","西南东北",!1,!1,[this,"rectangle"],Zr.defaults.rectangle)];return t.basic.push(...n),t.dataSource.push(...i),t.defaultMenu="dataSource",t}getProperties(t){return[...super.getProperties(t),new ee("ESTerrainLayer","ESTerrainLayer",[new ne("地形服务地址","地形服务地址",!1,!1,[this,"url"]),new kr("矩形范围","西南东北",!1,!1,[this,"rectangle"]),new q("层级","zIndex",!1,!1,[this,"zIndex"]),new ce("渲染模式","renderMode",!1,!1,[this,"renderMode"],Zr.defaults.renderModes,Zr.defaults.renderMode),new q("透明度","opacity",!1,!1,[this,"opacity"],Zr.defaults.opacity),new ee("czm","czm",[new q("czmMinzoom","czmMinzoom",!0,!1,[this,"czmMinzoom"]),new q("czmMaxzoom","czmMaxzoom",!0,!1,[this,"czmMaxzoom"])])])]}};D(Zr,"type",Zr.register("ESTerrainLayer",Zr,{chsName:"地形图层",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"地形图层"})),D(Zr,"defaults",{...Be.defaults,show:!0,url:"http://inner.earthsdk.com/layer.json",rectangle:[-180,-90,180,90],zIndex:0,renderMode:"default",renderModes:[["使用深度检测","default"],["不使用深度检测","disableDepthTest"],["透明","transparent"]],opacity:1});let Ra=Zr;(r=>{r.createDefaultProps=()=>({...Be.createDefaultProps(),url:"http://inner.earthsdk.com/layer.json",rectangle:M.reactArray([-180,-90,180,90]),zIndex:0,czmMaxzoom:void 0,czmMinzoom:void 0,renderMode:"default",opacity:1})})(Ra||(Ra={})),M.extendClassProps(Ra.prototype,Ra.createDefaultProps);const li=class li extends jt{get typeName(){return"ESTextLabel"}get defaultProps(){return li.createDefaultProps()}constructor(e){super(e)}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new pe("文本颜色","指定文本标签的字体颜色.",!1,!1,[this,"color"],[1,1,1,1]),new q("文字大小","fontSize",!1,!1,[this,"fontSize"],14),new Jc("内容","内容",!0,!1,[this,"text"],li.defaults.text),new pe("背景颜色"," 指定文本标签的背景颜色.",!1,!1,[this,"backgroundColor"],li.defaults.backgroundColor),new kr("内边距","上,右,下,左顺序.",!1,!1,[this,"padding"],li.defaults.padding),new pe("边界颜色"," 边界色.",!1,!1,[this,"borderColor"]),new kr("边界圆角","左上,右上,右下,左下.",!1,!1,[this,"borderRadius"]),new q("边界宽度","边界宽度",!1,!1,[this,"borderWidth"])]}}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new Jc("内容","内容",!0,!1,[this,"text"],li.defaults.text),new pe("文本颜色","指定文本标签的字体颜色.",!1,!1,[this,"color"]),new q("文字大小","fontSize",!1,!1,[this,"fontSize"]),new pe("背景颜色"," 指定文本标签的背景颜色.",!1,!1,[this,"backgroundColor"]),new kr("内边距","上,右,下,左顺序.",!1,!1,[this,"padding"]),new pe("边界颜色"," 边界色.",!1,!1,[this,"borderColor"]),new kr("边界圆角","左上,右上,右下,左下.",!1,!1,[this,"borderRadius"]),new q("边界宽度","边界宽度",!1,!1,[this,"borderWidth"])]),new ee("czm","czm",[new $("文本编辑交互","文本编辑交互.",!1,!1,[this,"textEditingInteraction"]),new $("文本编辑","文本编辑.",!1,!1,[this,"textEditing"]),new q("宽度","宽度",!0,!1,[this,"width"],li.defaults.width),new q("透明度","透明度",!1,!1,[this,"opacity"]),new ce("文字位置","文字位置",!1,!1,[this,"textAlign"],[["center","center"],["left","left"],["right","right"]]),new ce("边框类型","边框类型",!1,!1,[this,"borderStyle"],[["none","none"],["hidden","hidden"],["dotted","dotted"],["dashed","dashed"],["solid","solid"],["double","double"],["groove","groove"],["ridge","ridge"],["inset","inset"],["outset","outset"]])])]}};D(li,"type",li.register("ESTextLabel",li,{chsName:"文本标签",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"文本标签。"})),D(li,"defaults",{...jt.defaults,allowTextEditing:!0,width:80,text:"请输入文字",opacity:1,backgroundColor:[0,0,0,.8],padding:[5,5,5,5],borderRadius:[6,6,6,6],borderColor:[1,1,1,1],borderWidth:0,textAlign:"left",borderStyle:"solid"});let La=li;(r=>{r.createDefaultProps=()=>({...jt.createDefaultProps(),text:void 0,width:void 0,textEditing:!1,textEditingInteraction:!1,opacity:1,fontSize:14,textAlign:"left",color:M.reactArray([1,1,1,1]),backgroundColor:M.reactArray([0,0,0,.8]),padding:M.reactArray([5,5,5,5]),borderRadius:M.reactArray([6,6,6,6]),borderWidth:0,borderColor:M.reactArray([1,1,1,1]),borderStyle:"solid"})})(La||(La={})),M.extendClassProps(La.prototype,La.createDefaultProps);const By=`
538
+ `,jn=class jn extends Be{get typeName(){return"ESImageryLayer"}get defaultProps(){return jn.createDefaultProps()}constructor(e){super(e),this.ad(M.bind([this,"splitDirection"],[this,"czmSplitDirection"]))}getESProperties(){const e={...super.getESProperties()};return{...e,defaultMenu:"dataSource",basic:[...e.basic,new q("层级序号","层级序号",!1,!1,[this,"zIndex"],jn.defaults.zIndex)],dataSource:[...e.dataSource,new ne("影像服务地址","影像服务地址",!1,!1,[this,"url"]),new kr("矩形范围","西南东北",!0,!1,[this,"rectangle"],jn.defaults.rectangle),new et("最大级别","最大级别.",!0,!1,[this,"maximumLevel"],1,[1,24],jn.defaults.maximumLevel),new ne("options","options",!0,!1,[this,"options"],jn.defaults.options),new de("targetID","targetID",!1,!1,[this,"targetID"],""),new et("opacity","opacity",!1,!1,[this,"opacity"],.01,[0,1],1)]}}getProperties(e){return[...super.getProperties(e),new ee("ESImageryLayer","ESImageryLayer",[new ne("影像服务地址","影像服务地址",!1,!1,[this,"url"]),new ee("通用","通用",[new kr("矩形范围","西南东北",!0,!1,[this,"rectangle"],jn.defaults.rectangle),new q("高度","A numeric Property specifying the height.",!1,!1,[this,"height"]),new q("zIndex","层级",!1,!1,[this,"zIndex"]),new de("actorTag","actorTag",!1,!1,[this,"actorTag"]),new de("componentTag","componentTag",!1,!1,[this,"componentTag"]),new q("minimumLevel","minimumLevel",!1,!1,[this,"minimumLevel"]),new q("maximumLevel","maximumLevel",!1,!1,[this,"maximumLevel"]),new ne("options","options",!0,!1,[this,"options"],{},Dy),new de("targetID","targetID",!1,!1,[this,"targetID"]),new et("opacity","opacity",!1,!1,[this,"opacity"],.01,[0,1],1),new ce("splitDirection","The ImagerySplitDirection split to apply to this layer.",!1,!1,[this,"splitDirection"],jn.defaults.splitDirectionEnum)]),new ee("czm","czm",[new q("透明度","透明度,The alpha blending value of this layer, from 0.0 to 1.0.",!1,!1,[this,"czmAlpha"]),new q("亮度","亮度,The brightness of this layer. 1.0 uses the unmodified imagery color.",!1,!1,[this,"czmBrightness"]),new q("对比度","对比度,The contrast of this layer. 1.0 uses the unmodified imagery color.",!1,!1,[this,"czmContrast"]),new q("色相","色相,The hue of this layer. 0.0 uses the unmodified imagery color. ",!1,!1,[this,"czmHue"]),new q("饱和度","饱和度,The saturation of this layer. 1.0 uses the unmodified imagery color. ",!1,!1,[this,"czmSaturation"]),new q("伽马值","伽马,The gamma correction to apply to this layer. 1.0 uses the unmodified imagery color.",!1,!1,[this,"czmGamma"])])])]}};D(jn,"type",jn.register("ESImageryLayer",jn,{chsName:"影像图层",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"影像图层"})),D(jn,"defaults",{...Be.defaults,url:"",rectangle:[-180,-90,180,90],options:{},zIndex:0,actorTag:"",componentTag:"",minimumLevel:0,maximumLevel:22,targetID:"",opacity:1,splitDirection:"NONE",splitDirectionEnum:[["LEFT","LEFT"],["NONE","NONE"],["RIGHT","RIGHT"]],czmAlpha:1,czmBrightness:1,czmContrast:1,czmHue:0,czmSaturation:1,czmGamma:1,czmSubdomains:[]});let Ca=jn;(r=>{r.createDefaultProps=()=>({...Be.createDefaultProps(),url:"",rectangle:M.reactJsonWithUndefined(void 0),options:M.reactJsonWithUndefined(void 0),zIndex:0,actorTag:"",componentTag:"",maximumLevel:22,minimumLevel:0,targetID:"",opacity:1,splitDirection:"NONE",czmSplitDirection:"NONE",czmAlpha:1,czmBrightness:1,czmContrast:1,czmHue:0,czmSaturation:1,czmGamma:1})})(Ca||(Ca={})),M.extendClassProps(Ca.prototype,Ca.createDefaultProps);const yn=class yn extends le{get typeName(){return"ESLocalSkyBox"}get defaultProps(){return yn.createDefaultProps()}constructor(e){super(e),this.collision=!1,this.allowPicking=!1}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new q("尺寸","圆直径或包围盒边长",!1,!1,[this,"size"],yn.defaults.size),new $("自动跟随","是否跟随相机",!1,!1,[this,"autoFollow"],yn.defaults.autoFollow),new ce("mode","模式",!1,!1,[this,"mode"],yn.defaults.modes,"blueSky")]}}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new q("size","圆直径或包围盒边长",!1,!1,[this,"size"],yn.defaults.size),new $("autoFollow","是否跟随相机(自动跟随效果为渐变,会在5000米左右消失)",!1,!1,[this,"autoFollow"],yn.defaults.autoFollow),new q("autoOpacityFactor","自动消失系数",!1,!1,[this,"autoOpacityFactor"],yn.defaults.autoOpacityFactor),new ce("mode","模式",!1,!1,[this,"mode"],yn.defaults.modes)])]}};D(yn,"type",yn.register("ESLocalSkyBox",yn,{chsName:"局部天空盒",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"效果类"})),D(yn,"defaults",{...le.defaults,size:1e4,autoFollow:!0,autoOpacityFactor:2,modes:[["baiyun","baiyun"],["blueSky","blueSky"],["clearSky","clearSky"],["dream","dream"],["starrySky","starrySky"],["sunnySky","sunnySky"],["sunSets","sunSets"]]});let xa=yn;(r=>{r.createDefaultProps=()=>({...le.createDefaultProps(),size:1e4,autoFollow:!0,autoOpacityFactor:2,mode:"blueSky"})})(xa||(xa={})),M.extendClassProps(xa.prototype,xa.createDefaultProps);const Nu=class Nu extends le{constructor(t){super(t);D(this,"_location",this.disposeVar(M.react(void 0)));{const n=()=>{this.location=this.position};n(),this.ad(this.positionChanged.don(n))}}get typeName(){return"ESLocationMeasurement"}get defaultProps(){return Nu.createDefaultProps()}get location(){return this._location.value}set location(t){this._location.value=t}get locationChanged(){return this._location.changed}getProperties(t){return[...super.getProperties(t)]}};D(Nu,"type",Nu.register("ESLocationMeasurement",Nu,{chsName:"位置测量点",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"位置测量点"})),D(Nu,"defaults",{...le.defaults});let Oa=Nu;(r=>{r.createDefaultProps=()=>({...le.createDefaultProps()})})(Oa||(Oa={})),M.extendClassProps(Oa.prototype,Oa.createDefaultProps);const rr=class rr extends le{constructor(t){super(t);D(this,"_player",this.dv(new Ni));{const n=rr.defaults;this.d(M.bind([this._player,"loop"],[this,"playingLoop"],i=>i??n.playingLoop,i=>i??n.playingLoop)),this.d(M.bind([this._player,"currentTime"],[this,"currentTime"],i=>i??n.currentTime,i=>i??n.currentTime)),this.d(M.bind([this._player,"duration"],[this,"duration"],i=>i??n.duration,i=>i??n.duration)),this.d(M.bind([this._player,"playing"],[this,"playing"],i=>i??n.playing,i=>i??n.playing)),this.d(M.bind([this._player,"speed"],[this,"playingSpeed"],i=>i??n.playingSpeed,i=>i??n.playingSpeed))}}get typeName(){return"ESParticleSystemPrimitive"}get defaultProps(){return rr.createDefaultProps()}get player(){return this._player}get ratio(){return this._player.ratio}set ratio(t){this._player.ratio=t}get ratioChanged(){return this._player.ratioChanged}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new Se("飞入","飞入",["number"],n=>this.flyTo(n),[1e3]),new Vi("更新回调函数","The callback function to be called each frame to update a particle.",!0,!1,[this,"updateCallback"]),new q("发射率","emissionRate,The number of particles to emit per second.",!0,!1,[this,"emissionRate"],5),new $("是否循环","loop,Whether the particle system should loop its bursts when it is complete.",!0,!1,[this,"loop"],!0),new q("等级","scale,Sets the scale to apply to the image of the particle for the duration of its particleLife.",!0,!1,[this,"particleScale"],1),new q("初始等级","startScale,The initial scale to apply to the image of the particle at the beginning of its life.",!0,!1,[this,"startScale"]),new q("结束等级","endScale,The final scale to apply to the image of the particle at the end of its life.",!0,!1,[this,"endScale"],rr.defaults.endScale),new pe("颜色","Sets the color of a particle for the duration of its particleLife.",!0,!1,[this,"color"]),new pe("初始颜色","The color of the particle at the beginning of its life.",!0,!1,[this,"startColor"]),new pe("结束颜色","The color of the particle at the end of its life.",!0,!1,[this,"endColor"]),new $("尺寸单位为米","Sets if the size of particles is in meters or pixels. true to size the particles in meters; otherwise, the size is in pixels.",!0,!1,[this,"sizeInMeters"]),new q("速度","speed,If set, overrides the minimumSpeed and maximumSpeed inputs with this value.",!0,!1,[this,"speed"],1),new q("最小速度","minimumSpeed,Sets the minimum bound in meters per second above which a particles actual speed will be randomly chosen.",!0,!1,[this,"minimumSpeed"]),new q("最大速度","maximumSpeed,Sets the maximum bound in meters per second below which a particles actual speed will be randomly chosen.",!0,!1,[this,"maximumSpeed"]),new q("生命周期","lifetime,How long the particle system will emit particles, in seconds.",!0,!1,[this,"lifetime"],Number.MAX_VALUE),new q("粒子生命周期","particleLife,If set, overrides the minimumParticleLife and maximumParticleLife inputs with this value.",!0,!1,[this,"particleLife"],rr.defaults.particleLife),new q("最小粒子生命周期","minimumParticleLife,Sets the minimum bound in seconds for the possible duration of a particles life above which a particles actual life will be randomly chosen.",!0,!1,[this,"minimumParticleLife"]),new q("最大粒子生命周期","maximumParticleLife,Sets the maximum bound in seconds for the possible duration of a particles life below which a particles actual life will be randomly chosen.",!0,!1,[this,"maximumParticleLife"]),new q("块数量","mass,Sets the minimum and maximum mass of particles in kilograms.",!0,!1,[this,"mass"],1),new q("最小块数量","minimumMass,Sets the minimum bound for the mass of a particle in kilograms. A particles actual mass will be chosen as a random amount above this value.",!0,!1,[this,"minimumMass"]),new q("最大块数量","maximumMass,Sets the maximum mass of particles in kilograms. A particles actual mass will be chosen as a random amount below this value.",!0,!1,[this,"maximumMass"]),new lt("图片尺寸","imageSize",!0,!1,[this,"imageSize"],rr.defaults.imageSize),new lt("最小图片尺寸","minimumImageSize",!0,!1,[this,"minimumImageSize"]),new lt("最大图片尺寸","maximumImageSize",!0,!1,[this,"maximumImageSize"]),new Xl("图片","The URI, HTMLImageElement, or HTMLCanvasElement to use for the billboard.",!0,!1,[this,"image"],rr.defaults.image),new Kt("偏移","translation",!0,!1,[this,"translation"],[0,0,0]),new gf("bursts","bursts",!0,!1,[this,"bursts"]),new ne("emitter","emitter",!1,!1,[this,"emitter"],rr.defaults.emitter)]),new ee("播放器","播放器",[new q("播放比率","播放比率(0-1)",!0,!1,[this,"ratio"],rr.defaults.ratio),new Kc("播放器","播放器",[this,"playing"],[this,"ratio"],[this,"playingLoop"]),new $("是否循环","是否循环.",!0,!1,[this,"playingLoop"],rr.defaults.playingLoop),new q("当前时间","当前时间",!0,!1,[this,"currentTime"],rr.defaults.currentTime),new q("过渡时间","过渡时间",!0,!1,[this,"duration"],rr.defaults.duration),new $("是否播放","是否播放.",!0,!1,[this,"playing"],rr.defaults.playing),new q("播放速度","播放速度.",!0,!1,[this,"playingSpeed"],rr.defaults.playingSpeed)])]}};D(rr,"type",rr.register("ESParticleSystemPrimitive",rr,{chsName:"粒子",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"通过Cesium的Primitive API 实现的粒子特效。"})),D(rr,"defaults",{...le.defaults,playingLoop:!0,currentTime:0,playerCurrentTime:0,duration:6e3,playingSpeed:1,playing:!0,ratio:0,particleLife:.5,endScale:4,imageSize:[20,20],image:"${earthsdk3-assets-script-dir}/assets/img/smoke.png",emitter:{type:"CircleEmitter",radius:.5}});let Ma=rr;(r=>{r.createDefaultProps=()=>({...le.createDefaultProps(),emitter:M.reactJsonWithUndefined(void 0),bursts:M.reactArrayCollectionWithUndefined(void 0),translation:M.reactArrayWithUndefined(void 0),positionEditing:void 0,image:void 0,imageSize:M.reactArrayWithUndefined(void 0),minimumImageSize:M.reactArrayWithUndefined(void 0),maximumImageSize:M.reactArrayWithUndefined(void 0),updateCallback:void 0,emissionRate:void 0,loop:void 0,particleScale:void 0,startScale:void 0,endScale:void 0,color:M.reactArrayWithUndefined(void 0),startColor:M.reactArrayWithUndefined(void 0),endColor:M.reactArrayWithUndefined(void 0),sizeInMeters:void 0,speed:void 0,minimumSpeed:void 0,maximumSpeed:void 0,lifetime:void 0,particleLife:void 0,minimumParticleLife:void 0,maximumParticleLife:void 0,mass:void 0,minimumMass:void 0,maximumMass:void 0,playingLoop:void 0,currentTime:void 0,duration:void 0,playingSpeed:void 0,playing:void 0})})(Ma||(Ma={})),M.extendClassProps(Ma.prototype,Ma.createDefaultProps);const mn=class mn extends jt{constructor(t){super(t);D(this,"initialStyle",this.ad(M.reactJsonWithUndefined(void 0)));D(this,"_getInitialStyleEvent",this.disposeVar(new M.Event))}get typeName(){return"ESPoi2D"}get defaultProps(){return mn.createDefaultProps()}get getInitialStyleEvent(){return this._getInitialStyleEvent}getInitialStyle(){return Promise.race([new Promise(t=>{const n=this.d(this.initialStyle.changed.disposableOnce(t));this.getInitialStyleEvent.emit(),setTimeout(()=>{n(),t(void 0)},2e3)})])}getESProperties(){const t={...super.getESProperties()};return{...t,basic:[...t.basic,new ce("模式","mode",!1,!1,[this,"mode"],mn.defaults.modes,mn.defaults.mode),new ne("样式","style",!1,!1,[this,"style"],mn.defaults.style),new $("自动锚点对齐","autoAnchor",!1,!1,[this,"autoAnchor"],mn.defaults.autoAnchor)]}}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new ce("模式","mode",!1,!1,[this,"mode"],mn.defaults.modes),new ne("样式","style",!1,!1,[this,"style"],mn.defaults.style),new $("自动锚点对齐","autoAnchor",!1,!1,[this,"autoAnchor"],mn.defaults.autoAnchor)])]}};D(mn,"type",mn.register("ESPoi2D",mn,{chsName:"ESPoi2D",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"三角形,菱形"})),D(mn,"defaults",{...jt.defaults,modes:[["自定义","Custom"],["SquareH01","SquareH01"],["SquareH02","SquareH02"],["SquareV01","SquareV01"],["SquareV02","SquareV02"],["SquareV03","SquareV03"],["SquareV04","SquareV04"],["Flag01","Flag01"],["Flag02","Flag02"],["Linear01","Linear01"],["Linear02","Linear02"],["Linear03","Linear03"],["CircularH01","CircularH01"],["CircularH02","CircularH02"],["CircularV01","CircularV01"],["CircularV02","CircularV02"],["CircularV03","CircularV03"],["CircularV04","CircularV04"],["CircularV05","CircularV05"],["P3D01","P3D01"],["P3D02","P3D02"],["P3D03","P3D03"],["P3D04","P3D04"],["P3D05","P3D05"],["P3D06","P3D06"],["P3D07","P3D07"],["Diamond01","Diamond01"],["Diamond02","Diamond02"],["Stranger","Stranger"],["ManNormal","ManNormal"],["ManAbnormal","ManAbnormal"],["WomanNormal","WomanNormal"],["WomanAbnormal","WomanAbnormal"],["Camera","Camera"]],mode:"SquareH01",style:{fontSize:16,imageSize:[60,60],textBackgroundColor:[1,1,1,0],textBackgroundSize:[120,30],textColor:[1,1,1,1],textOffset:[10,2],textBoxOffset:[40,0],textBoxAlign:"start",textBoxShow:!0,textBoxMode:"default"},autoAnchor:!0});let as=mn;(r=>{r.createDefaultProps=()=>({...jt.createDefaultProps(),mode:"SquareH01",style:M.reactJson({}),autoAnchor:!0})})(as||(as={})),M.extendClassProps(as.prototype,as.createDefaultProps);const Ri=class Ri extends le{get typeName(){return"ESPoi3D"}get defaultProps(){return Ri.createDefaultProps()}constructor(e){super(e)}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new ce("模式","mode",!1,!1,[this,"mode"],Ri.defaults.modes),new ne("样式","style",!1,!1,[this,"style"],Ri.defaults.style)]}}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new ce("模式","mode",!1,!1,[this,"mode"],Ri.defaults.modes),new ne("样式","style",!1,!1,[this,"style"],Ri.defaults.style)])]}};D(Ri,"type",Ri.register("ESPoi3D",Ri,{chsName:"ESPoi3D",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"三角形,菱形"})),D(Ri,"defaults",{...le.defaults,modes:[["三角形","triangle"],["菱形","diamond"]],mode:"triangle",style:{UI_Color:[.09803921568627451,.40784313725490196,.8,1],FX_Color:[.09803921568627451,.40784313725490196,.8,1]}});let Ia=Ri;(r=>{r.createDefaultProps=()=>({...le.createDefaultProps(),mode:"triangle",style:M.reactJson(r.defaults.style)})})(Ia||(Ia={})),M.extendClassProps(Ia.prototype,Ia.createDefaultProps);const Du=class Du extends Ue{constructor(t){super(t);D(this,"_czmFlattenedPlaneId",this.disposeVar(M.react("")));this.filled=!1}get typeName(){return"ESPolygonFlattenedPlane"}get defaultProps(){return Du.createDefaultProps()}get czmFlattenedPlaneId(){return this._czmFlattenedPlaneId.value}set czmFlattenedPlaneId(t){this._czmFlattenedPlaneId.value=t}get czmFlattenedPlaneIdChanged(){return this._czmFlattenedPlaneId.changed}getESProperties(){const t={...super.getESProperties()};return{...t,basic:[...t.basic,new de("瓦片图层","targetID",!1,!1,[this,"targetID"],"")]}}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new de("瓦片图层","targetID",!1,!1,[this,"targetID"])])]}};D(Du,"type",Du.register("ESPolygonFlattenedPlane",Du,{chsName:"压平",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESPolygonFlattenedPlane"})),D(Du,"defaults",{...Ue.defaults});let Ta=Du;(r=>{r.createDefaultProps=()=>({...Ue.createDefaultProps(),targetID:""})})(Ta||(Ta={})),M.extendClassProps(Ta.prototype,Ta.createDefaultProps);const Ay=async(r,e,t)=>{const{viewer:n}=r;if(!n){console.error("AddTrees: ueViewer.viewer is undefined");return}const i=await n.callUeFunc({f:"AddTrees",p:{id:e,TreeParams:t}});return i.error&&console.error("AddTrees:",i.error),i},Ry=async(r,e)=>{const{viewer:t}=r;if(!t){console.error("RemoveAllTrees: ueViewer.viewer is undefined");return}const n=await t.callUeFunc({f:"RemoveAllTrees",p:{id:e}});return n.error&&console.error("RemoveAllTrees:",n.error),n},Ly=async(r,e,t)=>{const{viewer:n}=r;if(!n){console.error("UpdateTreeParams: ueViewer.viewer is undefined");return}const i=await n.callUeFunc({f:"UpdateTreeParams",p:{id:e,TreeParams:t}});return i.error&&console.error("UpdateTreeParams:",i.error),i},Fy=async(r,e,t,n)=>{const{viewer:i}=r;if(!i){console.error("CutDownTrees: ueViewer.viewer is undefined");return}const o=await i.callUeFunc({f:"CutDownTrees",p:{id:e,TreeIds:t,TimeLength:n}});return o.error&&console.error("CutDownTrees:",o.error),o},jy=async(r,e,t,n,i)=>{const{viewer:o}=r;if(!o){console.error("GrowthSimulation: ueViewer.viewer is undefined");return}const s=await o.callUeFunc({f:"GrowthSimulation",p:{id:e,ToParams:t,SwitchTime:i,TimeLength:n}});return s.error&&console.error("GrowthSimulation:",s.error),s},Au=class Au extends Be{constructor(t){super(t);D(this,"_addTreesEvent",this.dv(new M.Event));D(this,"_removeAllTreesEvent",this.dv(new M.Event));D(this,"_updateTreeParamsEvent",this.dv(new M.Event));D(this,"_cutDownTreesEvent",this.dv(new M.Event));D(this,"_growthSimulationEvent",this.dv(new M.Event))}get typeName(){return"ESSeparateFoliage"}get defaultProps(){return Au.createDefaultProps()}async addTreesCallFunc(t,n){return await Ay(t,this.id,n)}async updateTreeParamsCallFunc(t,n){return await Ly(t,this.id,n)}async cutDownTreesCallFunc(t,n,i){return await Fy(t,this.id,n,i)}async removeAllTreesCallFunc(t){return await Ry(t,this.id)}async growthSimulationCallFunc(t,n,i,o){return await jy(t,this.id,n,i,o)}async getIdByComponentNameAndHitItem(t,n,i){return await t.getIdByComponentNameAndHitItem(this.id,n,i)}get addTreesEvent(){return this._addTreesEvent}addTrees(t){this._addTreesEvent.emit(t)}get removeAllTreesEvent(){return this._removeAllTreesEvent}removeAllTrees(){this._removeAllTreesEvent.emit()}get updateTreeParamsEvent(){return this._updateTreeParamsEvent}updateTreeParams(t){this._updateTreeParamsEvent.emit(t)}get cutDownTreesEvent(){return this._cutDownTreesEvent}cutDownTrees(t,n){this._cutDownTreesEvent.emit(t,n)}get growthSimulationEvent(){return this._growthSimulationEvent}growthSimulation(t,n,i){this._growthSimulationEvent.emit(t,n,i)}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new ne("treeTypes","类型为 { name: string, meshPath: string }[]",!0,!1,[this,"treeTypes"],[],"{ name: string, meshPath: string }[]"),new q("树桩id","树桩id",!1,!1,[this,"stumpId"]),new q("动画间隔时间","动画间隔时间",!1,!1,[this,"intervalTime"]),new q("切换间隔时间","切换间隔时间",!1,!1,[this,"switchIntervalTime"])])]}};D(Au,"type",Au.register("ESSeparateFoliage",Au,{chsName:"单体控制森林",tags:["ESObjects","_ES_Impl_UE"],description:"ESSeparateFoliage"})),D(Au,"defaults",{...Be.defaults,treeTypes:[],stumpId:-1,intervalTime:.1,switchIntervalTime:.5});let Na=Au;(r=>{r.createDefaultProps=()=>({...Be.createDefaultProps(),treeTypes:M.reactJsonWithUndefined(void 0),stumpId:-1,intervalTime:.1,switchIntervalTime:.5})})(Na||(Na={})),M.extendClassProps(Na.prototype,Na.createDefaultProps);function ef(r,e,t){const n="buffer"in r,i=n?r.buffer:r;n&&(e+=r.byteOffset);const o=new Array(t),s=new DataView(i);for(let a=0;a<t;++a){const c=s.getUint8(e+a);o[a]=String.fromCharCode(c)}return o.join("")}function tf(r,e){const t="buffer"in r,n=t?r.buffer:r;return t&&(e+=r.byteOffset),new DataView(n).getUint32(e,!0)}function ky(r,e,t){const n="buffer"in r,i=n?r.buffer:r;if(n&&(e+=r.byteOffset),e+t>i.byteLength){console.error("byteOffset + length > buffer.byteLength");return}return new Uint8Array(i,e,t)}function $S(r,e,t){const n="buffer"in r,i=n?r.buffer:r;if(n&&(e+=r.byteOffset),e+t*2>i.byteLength){console.error("byteOffset + length * 4 > buffer.byteLength");return}return new Uint16Array(i,e,t)}function ZS(r,e,t){const n="buffer"in r,i=n?r.buffer:r;if(n&&(e+=r.byteOffset),e+t*4>i.byteLength){console.error("byteOffset + length * 4 > buffer.byteLength");return}return new Uint32Array(i,e,t)}function eC(r,e,t){const n="buffer"in r,i=n?r.buffer:r;if(n&&(e+=r.byteOffset),e+t*4>i.byteLength){console.error("byteOffset + length * 4 > buffer.byteLength");return}return new Float32Array(i,e,t)}function Gy(r){if(ef(r,0,4)!=="glTF"){console.error("Not a glTF file");return}const t=tf(r,4);if(t!==2){console.error("Unsupported glTF version");return}const n=tf(r,8);if(n!==r.byteLength){console.error("Invalid glTF length");return}const i=tf(r,12);if(i+12+4>n){console.error("Invalid glTF chunk length");return}if(ef(r,16,4)!=="JSON"){console.error("Invalid glTF chunk type");return}const s=ef(r,20,i),a={version:t,length:n,gltfJson:s};do{if(20+i>=r.byteLength)break;const c=tf(r,20+i);if(ef(r,20+i+4,4)!=="BIN\0"){console.error("Invalid glTF chunk type");return}const m=ky(r,20+i+8,c);a.gltfBinary=m}while(!1);return a}window.parseGlb=Gy;function Vy(r){const e=Gy(r);if(e===void 0||!e.gltfBinary)return;const t=JSON.parse(e.gltfJson);return t.nodes.map(n=>{var i=t.meshes[n.mesh],o=i.primitives[0].attributes.POSITION,s=i.primitives[0].indices,a=t.accessors[o],c=t.bufferViews[a.bufferView];if(!e.gltfBinary)throw new Error("!glbParseResult.gltfBinary");const f=eC(e.gltfBinary,c.byteOffset??0,c.byteLength/4);var m=t.accessors[s],p=t.bufferViews[m.bufferView];if(!e.gltfBinary)throw new Error("!glbParseResult.gltfBinary");let g;return m.componentType===5121?g=ky(e.gltfBinary,p.byteOffset??0,p.byteLength/1):m.componentType===5123?g=$S(e.gltfBinary,p.byteOffset??0,p.byteLength/2):m.componentType===5125&&(g=ZS(e.gltfBinary,p.byteOffset??0,p.byteLength/4)),{name:n.name,posBuffer:f,indicesBuffer:g}})}window.parseWaterGlb=Vy;const ut=class ut extends le{constructor(t){super(t);D(this,"_submergingData");D(this,"_allMoments",[]);D(this,"readyEvent",this.dv(new M.Event));{const n=()=>{this.url!=""&&fetch(this.url).then(i=>{i.status==200&&i.ok&&i.arrayBuffer().then(o=>{this._submergingData=Vy(o);const s=this._submergingData.map(a=>Date.parse(a.name)).sort();this._allMoments=s,this.currentTime==0&&(this.currentTime=s[0]),this.readyEvent.emit()})}).catch(i=>{console.log(i)})};n(),this.d(this.urlChanged.don(()=>{n()}))}}get typeName(){return"ESSubmergingAnalysis"}get defaultProps(){return ut.createDefaultProps()}get getSubmergingData(){return this._submergingData}getAllMoments(){return this._allMoments}getESProperties(){const t={...super.getESProperties()};return{...t,basic:[...t.basic,new de("Url地址","url",!1,!1,[this,"url"],ut.defaults.url),new et("振幅","控制水波振幅的数值",!1,!1,[this,"amplitude"],.01,[0,1],ut.defaults.amplitude),new q("频率","控制波数的数值(次/千米)",!1,!1,[this,"frequency"],ut.defaults.frequency),new q("当前时间","currentTime",!1,!1,[this,"currentTime"],ut.defaults.currentTime),new ne("材质参数","materialParams",!1,!1,[this,"materialParams"],ut.defaults.materialParams),new ce("水域类型","当为custom是其他控制效果的参数生效,否则不生效,使用对应水域类型的预定效果",!1,!1,[this,"waterType"],ut.defaults.waterTypes,"river"),new pe("水的底色","waterColor",!1,!1,[this,"waterColor"],ut.defaults.waterColor),new et("波动频率","控制水波纹扰动的速率",!1,!1,[this,"waveVelocity"],.01,[0,1],ut.defaults.waveVelocity),new q("水流速度","控制水流速度,单位 米/秒",!1,!1,[this,"flowSpeed"],ut.defaults.flowSpeed),new et("镜面反射强度","控制镜面反射强度的数值",!1,!1,[this,"specularIntensity"],.01,[0,1],ut.defaults.specularIntensity),new et("水体浑浊度","控制水体的浑浊程度,数值越大,浑浊程度越大,取值范围0-10。",!1,!1,[this,"murkiness"],.01,[0,10],ut.defaults.murkiness)]}}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new de("模型Url地址","url",!1,!1,[this,"url"],ut.defaults.url),new q("当前时间","currentTime",!1,!1,[this,"currentTime"],ut.defaults.currentTime),new ne("材质参数","materialParams",!1,!1,[this,"materialParams"],ut.defaults.materialParams),new ce("水域类型","当为custom是其他控制效果的参数生效,否则不生效,使用对应水域类型的预定效果",!1,!1,[this,"waterType"],ut.defaults.waterTypes),new pe("水的底色","waterColor",!1,!1,[this,"waterColor"],ut.defaults.waterColor),new q("频率","控制波数的数值(次/千米)",!1,!1,[this,"frequency"],ut.defaults.frequency),new et("波动频率","控制水波纹扰动的速率",!1,!1,[this,"waveVelocity"],.01,[0,1],ut.defaults.waveVelocity),new et("振幅","控制水波振幅的数值",!1,!1,[this,"amplitude"],.01,[0,1],ut.defaults.amplitude),new et("镜面反射强度","控制镜面反射强度的数值",!1,!1,[this,"specularIntensity"],.01,[0,1],ut.defaults.specularIntensity),new et("水体浑浊度","控制水体的浑浊程度,数值越大,浑浊程度越大,取值范围0-10。",!1,!1,[this,"murkiness"],.01,[0,10],ut.defaults.murkiness),new q("水流速度","控制水流速度,单位 米/秒",!1,!1,[this,"flowSpeed"],ut.defaults.flowSpeed)])]}};D(ut,"type",ut.register("ESSubmergingAnalysis",ut,{chsName:"淹没分析",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESSubmergingAnalysis"})),D(ut,"defaults",{...le.defaults,url:"",currentTime:0,materialParams:{},waterColor:[.1497,.165,.0031,1],frequency:1e3,waveVelocity:.5,amplitude:.1,specularIntensity:.8,waterTypes:[["river","river"],["ocean","ocean"],["lake","lake"],["custom","custom"]],waterType:"river",flowSpeed:0,murkiness:5});let Da=ut;(r=>{r.createDefaultProps=()=>({...le.createDefaultProps(),allowPicking:!0,url:"",currentTime:0,materialParams:M.reactJson({}),waterColor:[.1497,.165,.0031,1],frequency:1e3,waveVelocity:.5,amplitude:.1,specularIntensity:.8,waterType:"river",flowSpeed:0,murkiness:5})})(Da||(Da={})),M.extendClassProps(Da.prototype,Da.createDefaultProps);const Ao=class Ao extends Ue{constructor(t){super(t);D(this,"_startEvent",this.dv(new M.Event));D(this,"_stopEvent",this.dv(new M.Event));this.filled=!1,this.stroked=!1}get typeName(){return"ESSunshineAnalysis"}get defaultProps(){return Ao.createDefaultProps()}get startEvent(){return this._startEvent}start(){this._startEvent.emit()}get stopEvent(){return this._stopEvent}stop(){this._stopEvent.emit()}getProperties(t){return[...super.getProperties(t),new pe("起始颜色","起始颜色",!1,!1,[this,"startColor"]),new pe("结束颜色","结束颜色",!1,!1,[this,"endColor"]),new q("计算进度","计算进度",!0,!0,[this,"progress"]),new q("高度","高度m",!1,!1,[this,"extrudedHeight"]),new q("底面高度","底面高度",!1,!1,[this,"height"]),new q("采样间距","采样间距m",!1,!1,[this,"sampleDistance"]),new q("起始时间","startTime,时间戳",!1,!1,[this,"startTime"]),new q("结束时间","endTime,时间戳",!1,!1,[this,"endTime"]),new q("时间跨度","时间跨度,默认1小时时间戳",!1,!1,[this,"spanTime"]),new Se("开始分析","开始分析",[],()=>this.start(),[]),new Se("结束分析","结束分析",[],()=>this.stop(),[])]}};D(Ao,"type",Ao.register("ESSunshineAnalysis",Ao,{chsName:"日照分析",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"日照分析"})),D(Ao,"supportEditingModes",[...Ue.supportEditingModes,xe.HeightModify]),D(Ao,"defaults",{...Ue.defaults});let Aa=Ao;(r=>{r.createDefaultProps=()=>({...Ue.createDefaultProps(),extrudedHeight:30,height:0,sampleDistance:10,startColor:M.reactArray([1,1,0,1]),endColor:M.reactArray([1,0,0,1]),startTime:0,endTime:36e6,spanTime:1,progress:0})})(Aa||(Aa={})),M.extendClassProps(Aa.prototype,Aa.createDefaultProps);const Zr=class Zr extends Be{constructor(t){super(t);D(this,"_activateEvent",this.disposeVar(new M.Event));D(this,"activate",!1)}get typeName(){return"ESTerrainLayer"}get defaultProps(){return Zr.createDefaultProps()}get activateEvent(){return this._activateEvent}getESProperties(){const t={...super.getESProperties()},n=[new q("层级序号","层级序号",!1,!1,[this,"zIndex"],Zr.defaults.zIndex),new ce("渲染模式","renderMode",!1,!1,[this,"renderMode"],Zr.defaults.renderModes,"default"),new q("透明度","opacity",!1,!1,[this,"opacity"],Zr.defaults.opacity)],i=[new ne("地形服务地址","地形服务地址",!1,!1,[this,"url"],Zr.defaults.url),new kr("矩形范围","西南东北",!1,!1,[this,"rectangle"],Zr.defaults.rectangle)];return t.basic.push(...n),t.dataSource.push(...i),t.defaultMenu="dataSource",t}getProperties(t){return[...super.getProperties(t),new ee("ESTerrainLayer","ESTerrainLayer",[new ne("地形服务地址","地形服务地址",!1,!1,[this,"url"]),new kr("矩形范围","西南东北",!1,!1,[this,"rectangle"]),new q("层级","zIndex",!1,!1,[this,"zIndex"]),new ce("渲染模式","renderMode",!1,!1,[this,"renderMode"],Zr.defaults.renderModes,Zr.defaults.renderMode),new q("透明度","opacity",!1,!1,[this,"opacity"],Zr.defaults.opacity),new ee("czm","czm",[new q("czmMinzoom","czmMinzoom",!0,!1,[this,"czmMinzoom"]),new q("czmMaxzoom","czmMaxzoom",!0,!1,[this,"czmMaxzoom"])])])]}};D(Zr,"type",Zr.register("ESTerrainLayer",Zr,{chsName:"地形图层",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"地形图层"})),D(Zr,"defaults",{...Be.defaults,show:!0,url:"http://inner.earthsdk.com/layer.json",rectangle:[-180,-90,180,90],zIndex:0,renderMode:"default",renderModes:[["使用深度检测","default"],["不使用深度检测","disableDepthTest"],["透明","transparent"]],opacity:1});let Ra=Zr;(r=>{r.createDefaultProps=()=>({...Be.createDefaultProps(),url:"http://inner.earthsdk.com/layer.json",rectangle:M.reactArray([-180,-90,180,90]),zIndex:0,czmMaxzoom:void 0,czmMinzoom:void 0,renderMode:"default",opacity:1})})(Ra||(Ra={})),M.extendClassProps(Ra.prototype,Ra.createDefaultProps);const li=class li extends jt{get typeName(){return"ESTextLabel"}get defaultProps(){return li.createDefaultProps()}constructor(e){super(e)}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new pe("文本颜色","指定文本标签的字体颜色.",!1,!1,[this,"color"],[1,1,1,1]),new q("文字大小","fontSize",!1,!1,[this,"fontSize"],14),new Jc("内容","内容",!0,!1,[this,"text"],li.defaults.text),new pe("背景颜色"," 指定文本标签的背景颜色.",!1,!1,[this,"backgroundColor"],li.defaults.backgroundColor),new kr("内边距","上,右,下,左顺序.",!1,!1,[this,"padding"],li.defaults.padding),new pe("边界颜色"," 边界色.",!1,!1,[this,"borderColor"]),new kr("边界圆角","左上,右上,右下,左下.",!1,!1,[this,"borderRadius"]),new q("边界宽度","边界宽度",!1,!1,[this,"borderWidth"])]}}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new Jc("内容","内容",!0,!1,[this,"text"],li.defaults.text),new pe("文本颜色","指定文本标签的字体颜色.",!1,!1,[this,"color"]),new q("文字大小","fontSize",!1,!1,[this,"fontSize"]),new pe("背景颜色"," 指定文本标签的背景颜色.",!1,!1,[this,"backgroundColor"]),new kr("内边距","上,右,下,左顺序.",!1,!1,[this,"padding"]),new pe("边界颜色"," 边界色.",!1,!1,[this,"borderColor"]),new kr("边界圆角","左上,右上,右下,左下.",!1,!1,[this,"borderRadius"]),new q("边界宽度","边界宽度",!1,!1,[this,"borderWidth"])]),new ee("czm","czm",[new $("文本编辑交互","文本编辑交互.",!1,!1,[this,"textEditingInteraction"]),new $("文本编辑","文本编辑.",!1,!1,[this,"textEditing"]),new q("宽度","宽度",!0,!1,[this,"width"],li.defaults.width),new q("透明度","透明度",!1,!1,[this,"opacity"]),new ce("文字位置","文字位置",!1,!1,[this,"textAlign"],[["center","center"],["left","left"],["right","right"]]),new ce("边框类型","边框类型",!1,!1,[this,"borderStyle"],[["none","none"],["hidden","hidden"],["dotted","dotted"],["dashed","dashed"],["solid","solid"],["double","double"],["groove","groove"],["ridge","ridge"],["inset","inset"],["outset","outset"]])])]}};D(li,"type",li.register("ESTextLabel",li,{chsName:"文本标签",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"文本标签。"})),D(li,"defaults",{...jt.defaults,allowTextEditing:!0,width:80,text:"请输入文字",opacity:1,backgroundColor:[0,0,0,.8],padding:[5,5,5,5],borderRadius:[6,6,6,6],borderColor:[1,1,1,1],borderWidth:0,textAlign:"left",borderStyle:"solid"});let La=li;(r=>{r.createDefaultProps=()=>({...jt.createDefaultProps(),text:void 0,width:void 0,textEditing:!1,textEditingInteraction:!1,opacity:1,fontSize:14,textAlign:"left",color:M.reactArray([1,1,1,1]),backgroundColor:M.reactArray([0,0,0,.8]),padding:M.reactArray([5,5,5,5]),borderRadius:M.reactArray([6,6,6,6]),borderWidth:0,borderColor:M.reactArray([1,1,1,1]),borderStyle:"solid"})})(La||(La={})),M.extendClassProps(La.prototype,La.createDefaultProps);const By=`
539
539
  #### 默认值如下
540
540
  \`\`\`js
541
541
  {
@@ -633,7 +633,7 @@ export type ESJTimeIntervalCollectionJsonType = {
633
633
  \`\`\`
634
634
  ${Uy}
635
635
  \`\`\`
636
- `;function Wy(r){try{return JSON.parse(r),!0}catch{return!1}}const iC="${earthsdk3-assets-script-dir}/assets/misc/2.geojson",ye=class ye extends Be{constructor(t){super(t);D(this,"_flyToFeatureEvent",this.dv(new M.Event));D(this,"_flyToFeatureIndexEvent",this.dv(new M.Event));D(this,"_features",this.disposeVar(M.reactJsonWithUndefined(void 0)));D(this,"pickedInfoType","FeatureCollection");this.ad(this.urlChanged.don(async()=>{var n;if(!this.url){this.features=void 0;return}do{if(typeof this.url=="object"){this.features=this.url;break}if(Wy(this.url)){this.features=JSON.parse(this.url);break}await fetch(we.context.getStrFromEnv(this.url)).then(i=>i.json()).then(i=>{this.features=i}).catch(i=>{console.warn("ESEntityCluster数据加载失败",i)})}while(!1);this.pickedInfoType=((n=this.features)==null?void 0:n.type)??"FeatureCollection"})),this.ad(this.editingChanged.don(()=>{console.warn("ESGeoJson暂不支持编辑!")}))}get typeName(){return"ESGeoJson"}get defaultProps(){return ye.createDefaultProps()}get flyToFeatureEvent(){return this._flyToFeatureEvent}flyToFeature(t,n,i){this._flyToFeatureEvent.emit(t,n,i)}get flyToFeatureIndexEvent(){return this._flyToFeatureIndexEvent}flyToFeatureIndex(t,n){this._flyToFeatureIndexEvent.emit(t,n)}get features(){return this._features.value}set features(t){this._features.value=t}get featuresChanged(){return this._features.changed}getFeatures(){if(this.features)return this.features;console.log("数据未加载完成,请稍后调用此方法getFeatures()")}getESProperties(){return{defaultMenu:"style",basic:[],general:[new de("名称","name",!0,!1,[this,"name"]),new de("唯一标识","id",!1,!0,[this,"id"]),new $("是否显示","show",!1,!1,[this,"show"],!0),new $("开启碰撞","collision",!1,!1,[this,"collision"],!1),new $("允许拾取","allowPicking",!1,!1,[this,"allowPicking"],!1),new Se("保存观察视角","保存当前视角",[],()=>this.calcFlyInParam(),[])],dataSource:[new ne("服务地址","服务地址",!0,!1,[this,"url"],ye.defaults.url),new q("要素最小可视距离","要素最小可视距离",!1,!1,[this,"minFeatureVisibleDistance"],ye.defaults.minFeatureVisibleDistance),new q("要素最大可视距离","要素最大可视距离",!1,!1,[this,"maxFeatureVisibleDistance"],ye.defaults.maxFeatureVisibleDistance),new ce("高度参考","高度参考",!1,!1,[this,"heightReference"],ye.defaults.heightReferences)],location:[],coordinate:[],style:[new ee("点文字样式","点样式集合",[]),new $("是否显示","是否显示",!1,!1,[this,"textShow"],ye.defaults.textShow),new lt("锚点","锚点",!1,!1,[this,"textAnchor"],ye.defaults.textAnchor),new de("标注显示属性","要用于显示的文本属性",!1,!1,[this,"textProperty"],ye.defaults.textProperty),new de("默认文本","默认统一显示的文本",!1,!1,[this,"textDefaultText"],ye.defaults.textDefaultText),new pe("文本颜色","文本颜色",!1,!1,[this,"textColor"],ye.defaults.textColor),new pe("背景颜色","背景颜色",!0,!1,[this,"textBackgroundColor"],ye.defaults.textBackgroundColor),new de("字体样式","字体样式",!1,!1,[this,"textFontStyle"],ye.defaults.textFontStyle),new de("字体粗细","字体粗细",!1,!1,[this,"textFontWeight"],ye.defaults.textFontWeight),new q("字体大小","字体大小",!1,!1,[this,"textFontSize"],ye.defaults.textFontSize),new lt("像素偏移","像素偏移",!1,!1,[this,"textOffset"],ye.defaults.textOffset),new ee("点图片样式","图片样式集合",[]),new $("是否显示","是否显示",!1,!1,[this,"imageShow"],ye.defaults.imageShow),new lt("锚点","锚点",!1,!1,[this,"imageAnchor"],ye.defaults.imageAnchor),new ne("图片地址","图片地址",!1,!1,[this,"imageUrl"],ye.defaults.imageUrl),new lt("图片大小","图片大小",!1,!1,[this,"imageSize"],ye.defaults.imageSize),new lt("像素偏移","像素偏移",!1,!1,[this,"imageOffset"],ye.defaults.imageOffset),new ee("线样式","线样式集合",[]),new $("是否显示","是否显示",!1,!1,[this,"stroked"],ye.defaults.stroked),new $("贴地","贴地(线)",!1,!1,[this,"strokeGround"],ye.defaults.strokeGround),new q("线宽","线宽",!1,!1,[this,"strokeWidth"],ye.defaults.strokeWidth),new ce("线宽类型","线宽类型",!1,!1,[this,"strokeWidthType"],ye.defaults.strokeWidthTypes),new pe("线颜色","线颜色",!1,!1,[this,"strokeColor"],ye.defaults.strokeColor),new de("线材质","线材质",!1,!1,[this,"strokeMaterial"],ye.defaults.strokeMaterial),new ne("线材质参数","线材质参数",!1,!1,[this,"strokeMaterialParams"],ye.defaults.strokeMaterialParams),new ee("面样式","面样式集合",[]),new $("是否显示","是否显示",!1,!1,[this,"filled"],ye.defaults.filled),new $("贴地","贴地(面)",!1,!1,[this,"fillGround"],ye.defaults.fillGround),new pe("填充颜色","填充颜色",!1,!1,[this,"fillColor"],ye.defaults.fillColor),new de("填充材质","填充材质",!1,!1,[this,"fillMaterial"],ye.defaults.fillMaterial),new ne("填充材质参数","填充材质参数",!1,!1,[this,"fillMaterialParams"],ye.defaults.fillMaterialParams)]}}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new $("是否显示","A boolean Property specifying the visibility .",!1,!1,[this,"show"],ye.defaults.show),new $("允许拾取","是否允许拾取",!1,!1,[this,"allowPicking"],ye.defaults.allowPicking),new Se("飞入","飞入",["number"],n=>this.flyTo(n),[1]),new Se("清空飞入参数","清空飞入参数",[],()=>this.emptyFlyInParam(),[]),new Se("保存飞入参数","保存飞入参数flyInParam",[],()=>this.calcFlyInParam(),[]),new ne("flyInParam","flyInParam",!0,!1,[this,"flyInParam"],ye.defaults.flyInParam)]),new ee("标注文本样式","标注文本样式",[new $("是否显示","是否显示",!1,!1,[this,"textShow"],ye.defaults.textShow),new de("标注显示属性","要用于显示的文本属性",!1,!1,[this,"textProperty"],ye.defaults.textProperty),new de("默认文本","默认统一显示的文本",!1,!1,[this,"textDefaultText"],ye.defaults.textDefaultText),new pe("文本颜色","文本颜色",!1,!1,[this,"textColor"],ye.defaults.textColor),new pe("背景颜色","背景颜色",!0,!1,[this,"textBackgroundColor"],ye.defaults.textBackgroundColor),new de("字体","字体",!1,!1,[this,"textFontFamily"],ye.defaults.textFontFamily),new de("字体样式","字体样式",!1,!1,[this,"textFontStyle"],ye.defaults.textFontStyle),new de("字体粗细","字体粗细",!1,!1,[this,"textFontWeight"],ye.defaults.textFontWeight),new q("字体大小","字体大小",!1,!1,[this,"textFontSize"],ye.defaults.textFontSize),new lt("锚点","锚点",!1,!1,[this,"textAnchor"],ye.defaults.textAnchor),new lt("像素偏移","像素偏移",!1,!1,[this,"textOffset"],ye.defaults.textOffset)]),new ee("标注图标样式","标注图标样式",[new $("是否显示","是否显示",!1,!1,[this,"imageShow"],ye.defaults.imageShow),new ne("图片地址","图片地址",!1,!1,[this,"imageUrl"],ye.defaults.imageUrl),new lt("图片大小","图片大小",!1,!1,[this,"imageSize"],ye.defaults.imageSize),new lt("锚点","锚点",!1,!1,[this,"imageAnchor"],ye.defaults.imageAnchor),new lt("像素偏移","像素偏移",!1,!1,[this,"imageOffset"],ye.defaults.imageOffset)]),new ee("线样式","线样式",[new $("是否显示","是否显示",!1,!1,[this,"stroked"],ye.defaults.stroked),new q("线宽","线宽",!1,!1,[this,"strokeWidth"],ye.defaults.strokeWidth),new ce("线宽类型","线宽类型",!1,!1,[this,"strokeWidthType"],ye.defaults.strokeWidthTypes),new pe("线颜色","线颜色",!1,!1,[this,"strokeColor"],ye.defaults.strokeColor),new de("线材质","线材质",!1,!1,[this,"strokeMaterial"],ye.defaults.strokeMaterial),new ne("线材质参数","线材质参数",!1,!1,[this,"strokeMaterialParams"],ye.defaults.strokeMaterialParams),new $("贴地(线)","贴地(线)",!1,!1,[this,"strokeGround"],ye.defaults.strokeGround)]),new ee("填充样式","填充样式",[new $("是否显示","是否显示",!1,!1,[this,"filled"],ye.defaults.filled),new pe("填充颜色","填充颜色",!1,!1,[this,"fillColor"],ye.defaults.fillColor),new de("填充材质","填充材质",!1,!1,[this,"fillMaterial"],ye.defaults.fillMaterial),new ne("填充材质参数","填充材质参数",!1,!1,[this,"fillMaterialParams"],ye.defaults.fillMaterialParams),new $("贴地(面)","贴地(面)",!1,!1,[this,"fillGround"],ye.defaults.fillGround)]),new ee("通用","通用",[new ne("服务地址","服务地址",!0,!1,[this,"url"],ye.defaults.url),new Vi("loadFnStr","loadFnStr",!0,!1,[this,"loadFuncStr"],ye.defaults.defaultLoadFuncStr,ye.defaults.defaultLoadFuncDocStr),new q("要素最小可视距离","要素最小可视距离",!1,!1,[this,"minFeatureVisibleDistance"],ye.defaults.minFeatureVisibleDistance),new q("要素最大可视距离","要素最大可视距离",!1,!1,[this,"maxFeatureVisibleDistance"],ye.defaults.maxFeatureVisibleDistance),new ce("高度参考","高度参考",!1,!1,[this,"heightReference"],ye.defaults.heightReferences)])]}get strokeWidth(){return this.strokeStyle.width}set strokeWidth(t){this.strokeStyle={...this.strokeStyle,width:t}}get strokeWidthChanged(){return this.strokeStyleChanged}get strokeWidthType(){return this.strokeStyle.widthType}set strokeWidthType(t){this.strokeStyle={...this.strokeStyle,widthType:t}}get strokeWidthTypeChanged(){return this.strokeStyleChanged}get strokeColor(){return this.strokeStyle.color}set strokeColor(t){this.strokeStyle={...this.strokeStyle,color:[...t]}}get strokeColorChanged(){return this.strokeStyleChanged}get strokeMaterial(){return this.strokeStyle.material}set strokeMaterial(t){this.strokeStyle={...this.strokeStyle,material:t}}get strokeMaterialChanged(){return this.strokeStyleChanged}get strokeMaterialParams(){return this.strokeStyle.materialParams}set strokeMaterialParams(t){this.strokeStyle={...this.strokeStyle,materialParams:t}}get strokeMaterialParamsChanged(){return this.strokeStyleChanged}get strokeGround(){return this.strokeStyle.ground}set strokeGround(t){this.strokeStyle={...this.strokeStyle,ground:t}}get strokeGroundChanged(){return this.strokeStyleChanged}get fillColor(){return this.fillStyle.color}set fillColor(t){this.fillStyle={...this.fillStyle,color:[...t]}}get fillColorChanged(){return this.fillStyleChanged}get fillMaterial(){return this.fillStyle.material}set fillMaterial(t){this.fillStyle={...this.fillStyle,material:t}}get fillMaterialChanged(){return this.fillStyleChanged}get fillMaterialParams(){return this.fillStyle.materialParams}set fillMaterialParams(t){this.fillStyle={...this.fillStyle,materialParams:t}}get fillMaterialParamsChanged(){return this.fillStyleChanged}get fillGround(){return this.fillStyle.ground}set fillGround(t){this.fillStyle={...this.fillStyle,ground:t}}get fillGroundChanged(){return this.fillStyleChanged}get textProperty(){return this.textStyle.textProperty}set textProperty(t){this.textStyle={...this.textStyle,textProperty:t}}get textPropertyChanged(){return this.textStyleChanged}get textDefaultText(){return this.textStyle.defaultText}set textDefaultText(t){this.textStyle={...this.textStyle,defaultText:t}}get textDefaultTextChanged(){return this.textStyleChanged}get textColor(){return this.textStyle.color}set textColor(t){this.textStyle={...this.textStyle,color:t}}get textColorChanged(){return this.textStyleChanged}get textBackgroundColor(){return this.textStyle.backgroundColor}set textBackgroundColor(t){this.textStyle={...this.textStyle,backgroundColor:t}}get textBackgroundColorChanged(){return this.textStyleChanged}get textFontFamily(){return this.textStyle.fontFamily}set textFontFamily(t){this.textStyle={...this.textStyle,fontFamily:t}}get textFontFamilyChanged(){return this.textStyleChanged}get textFontStyle(){return this.textStyle.fontStyle}set textFontStyle(t){this.textStyle={...this.textStyle,fontStyle:t}}get textFontStyleChanged(){return this.textStyleChanged}get textFontWeight(){return this.textStyle.fontWeight}set textFontWeight(t){this.textStyle={...this.textStyle,fontWeight:t}}get textFontWeightChanged(){return this.textStyleChanged}get textFontSize(){return this.textStyle.fontSize}set textFontSize(t){this.textStyle={...this.textStyle,fontSize:t}}get textFontSizeChanged(){return this.textStyleChanged}get textAnchor(){return this.textStyle.anchor}set textAnchor(t){this.textStyle={...this.textStyle,anchor:t}}get textAnchorChanged(){return this.textStyleChanged}get textOffset(){return this.textStyle.offset}set textOffset(t){this.textStyle={...this.textStyle,offset:t}}get textOffsetChanged(){return this.textStyleChanged}get imageUrl(){return this.imageStyle.url}set imageUrl(t){this.imageStyle={...this.imageStyle,url:t}}get imageUrlChanged(){return this.imageStyleChanged}get imageSize(){return this.imageStyle.size}set imageSize(t){this.imageStyle={...this.imageStyle,size:t}}get imageSizeChanged(){return this.imageStyleChanged}get imageAnchor(){return this.imageStyle.anchor}set imageAnchor(t){this.imageStyle={...this.imageStyle,anchor:t}}get imageAnchorChanged(){return this.imageStyleChanged}get imageOffset(){return this.imageStyle.offset}set imageOffset(t){this.imageStyle={...this.imageStyle,offset:t}}get imageOffsetChanged(){return this.imageStyleChanged}};D(ye,"type",ye.register("ESGeoJson",ye,{chsName:"ESGeoJson",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"GeoJson数据加载"})),D(ye,"defaults",{...Be.defaults,show:!0,allowPicking:!0,url:iC,defaultLoadFuncStr:Uy,defaultLoadFuncDocStr:nC,data:tC,dataMd:rC,stroked:!0,strokeWidth:1,strokeWidthType:"world",strokeColor:[.79,.91,.06,1],strokeMaterial:"",strokeMaterialParams:{},strokeGround:!1,filled:!0,fillColor:[.79,.91,.06,.2],fillMaterial:"",fillMaterialParams:{},fillGround:!1,imageShow:!0,imageUrl:"${earthsdk3-assets-script-dir}/assets/img/location.png",imageSize:[32,32],imageAnchor:[.5,1],imageOffset:[0,0],textShow:!0,textProperty:"",textDefaultText:"默认标注",textColor:[1,1,1,1],textBackgroundColor:void 0,textFontFamily:"Arial",textFontStyle:"normal",textFontSize:16,textFontWeight:"normal",textAnchor:[0,1],textOffset:[-16,8],strokeWidthTypes:[["screen","screen"],["world","world"]],flyInParam:{position:[0,0,0],rotation:[0,0,0],flyDuration:1},minFeatureVisibleDistance:0,maxFeatureVisibleDistance:0,heightReferences:[["NONE","NONE"],["CLAMP_TO_GROUND","CLAMP_TO_GROUND"],["RELATIVE_TO_GROUND","RELATIVE_TO_GROUND"]]});let za=ye;(r=>{r.createDefaultProps=()=>({...Be.createDefaultProps(),show:!0,allowPicking:!0,loadFuncStr:void 0,url:void 0,stroked:!0,strokeStyle:M.reactJson({width:1,widthType:"world",color:[.79,.91,.06,1],material:"",materialParams:{},ground:!1}),filled:!0,fillStyle:M.reactJson({color:[.79,.91,.06,.2],material:"",materialParams:{},ground:!1}),imageShow:!0,imageStyle:M.reactJson({url:"${earthsdk3-assets-script-dir}/assets/img/location.png",size:[32,32],anchor:[.5,1],offset:[0,0]}),textShow:!0,textStyle:M.reactJson({textProperty:"",defaultText:"默认标注",color:[1,1,1,1],backgroundColor:void 0,fontFamily:"Arial",fontSize:16,fontStyle:"normal",fontWeight:"normal",anchor:[0,1],offset:[16,-8]}),minFeatureVisibleDistance:0,maxFeatureVisibleDistance:0,flyInParam:M.reactJsonWithUndefined(void 0),heightReference:"NONE"})})(za||(za={})),M.extendClassProps(za.prototype,za.createDefaultProps);const Lo=class Lo extends Ae{constructor(t){super(t);D(this,"editingBindMode","doublePoints");D(this,"_height",this.disposeVar(M.react(0)));{const n=()=>{this.height=this.points&&this.points.length>=2?this.points[1][2]-this.points[0][2]:0};n(),this.ad(this.pointsChanged.don(n))}this.stroked=!0,this.strokeStyle.width=2}get typeName(){return"ESHeightMeasurement"}get defaultProps(){return Lo.createDefaultProps()}get height(){return this._height.value}set height(t){this._height.value=t}get heightChanged(){return this._height.changed}getProperties(t){return[...super.getProperties(t)]}};D(Lo,"type",Lo.register("ESHeightMeasurement",Lo,{chsName:"高度测量",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"高度测量"})),D(Lo,"supportEditingModes",[...Ae.supportEditingModes,xe.DoublePointsAppend,xe.DoublePointsModify]),D(Lo,"defaults",{...Ae.defaults});let Ua=Lo;(r=>{r.createDefaultProps=()=>({...Ae.createDefaultProps()})})(Ua||(Ua={})),M.extendClassProps(Ua.prototype,Ua.createDefaultProps);const Ru=class Ru extends Kr{constructor(t){super(t);D(this,"_area",this.dv(M.react(0)));D(this,"_perimeter",this.dv(M.react(0)));D(this,"editingBindMode","doublePoints");this.radius=1,this.filled=!0,this.stroked=!1,this.collision=!1,this.strokeColor=[1,1,1,1],this.fillColor=[1,1,1,.5];const n=()=>{this._area.value=Math.PI*this.radius*this.radius,this._perimeter.value=2*Math.PI*this.radius};n(),this.d(this.radiusChanged.don(n))}get typeName(){return"ESLocalCircle"}get defaultProps(){return{...Ru.createDefaultProps()}}get area(){return this._area.value}get areaChanged(){return this._area.changed}get perimeter(){return this._perimeter.value}get perimeterChanged(){return this._perimeter.changed}toPolygon(t=10,n){return vv([...this.position],this.radius,t,n)[0].map(o=>[...o,this.position?this.position[2]:0])}getESProperties(){const t={...super.getESProperties()};return{...t,defaultMenu:"style",basic:[...t.basic,new q("圆半径","圆半径",!0,!1,[this,"radius"],1)],general:[...t.general],dataSource:[...t.dataSource],location:[],coordinate:[new $("是否编辑","是否编辑",!1,!1,[this,"editing"]),new q("面积","面积",!1,!0,[this,"area"]),new q("周长","周长",!1,!0,[this,"perimeter"]),new hi("三维坐标","三维坐标",!0,!1,[this,"position"],[0,0,0])],style:[...t.style]}}getProperties(t){return[...super.getProperties(t),new ee("ESLocalCircle","ESLocalCircle",[new q("圆半径","圆半径",!1,!1,[this,"radius"]),new q("面积","面积",!1,!0,[this,"area"]),new q("周长","周长",!1,!0,[this,"perimeter"])])]}};D(Ru,"type",Ru.register("ESLocalCircle",Ru,{chsName:"局部坐标圆形",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESLocalCircle"})),D(Ru,"defaults",{...Kr.defaults,fillStyle:{color:[1,1,1,.5],material:"",materialParams:{}}});let Wa=Ru;(r=>{r.createDefaultProps=()=>({...Kr.createDefaultProps(),radius:1})})(Wa||(Wa={})),M.extendClassProps(Wa.prototype,Wa.createDefaultProps);const Lu=class Lu extends Kr{get typeName(){return"ESLocalPolygon"}get defaultProps(){return{...Lu.createDefaultProps()}}constructor(e){super(e),this.filled=!0}getESProperties(){const e={...super.getESProperties()};return{...e,coordinate:[...e.coordinate,new ip("坐标","偏移量[x,y],单位米,不含高度",!1,!1,[this,"points"],[])]}}getProperties(e){return[...super.getProperties(e),new ee("ESLocalPolygon","ESLocalPolygon",[new ne("位置偏移数组","偏移量[x,y],单位米,不含高度",!1,!1,[this,"points"])])]}};D(Lu,"type",Lu.register("ESLocalPolygon",Lu,{chsName:"局部2D坐标多边形",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESLocalPolygon"})),D(Lu,"defaults",{...Kr.defaults,points:[],filled:!0});let us=Lu;(r=>{r.createDefaultProps=()=>({...Kr.createDefaultProps(),points:yf(void 0)})})(us||(us={})),M.extendClassProps(us.prototype,us.createDefaultProps);const zl=class zl extends Di{get typeName(){return"ESLocalPolygonZ"}get defaultProps(){return{...zl.createDefaultProps()}}constructor(e){super(e),this.filled=!0}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new gf("本地位置数组","本地位置数组",!0,!1,[this,"points"])])]}};D(zl,"type",zl.register("ESLocalPolygonZ",zl,{chsName:"局部坐标多边形",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESLocalPolygonZ"}));let qa=zl;(r=>{r.createDefaultProps=()=>({...Di.createDefaultProps(),points:M.reactPositions(void 0)})})(qa||(qa={})),M.extendClassProps(qa.prototype,qa.createDefaultProps);const Fu=class Fu extends Kr{get typeName(){return"ESLocalRectangle"}get defaultProps(){return{...Fu.createDefaultProps()}}constructor(e){super(e),this.filled=!0}getProperties(e){return[...super.getProperties(e),new ee("ESLocalRectangle","ESLocalRectangle",[new q("宽度","宽度",!1,!1,[this,"width"]),new q("高度","高度",!1,!1,[this,"height"])])]}};D(Fu,"type",Fu.register("ESLocalRectangle",Fu,{chsName:"局部坐标四边形",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESLocalRectangle"})),D(Fu,"defaults",{...Kr.defaults,width:5e5,height:3e5});let Ha=Fu;(r=>{r.createDefaultProps=()=>({...Kr.createDefaultProps(),width:5e5,height:3e5})})(Ha||(Ha={})),M.extendClassProps(Ha.prototype,Ha.createDefaultProps);const gs=class gs extends Ae{constructor(t){super(t);D(this,"editingBindMode","lineString");D(this,"_distance",this.dv(M.react(0)));D(this,"_deprecated",[{materialMode:{blue:"multipleArrows",purple:"singleArrow"}},"show"]);D(this,"_deprecatedWarningFunc",(()=>{this._deprecatedWarning()})());this.fillColor=[1,0,.73,1];const n=()=>{if(this.points&&this.points.length>=2){const i=Bc(this.points,"GEODESIC"),o=i[i.length-1];this._distance.value=o}else this._distance.value=0};n(),this.d(this.pointsChanged.don(n))}get typeName(){return"ESPipeFence"}get defaultProps(){return gs.createDefaultProps()}get distance(){return this._distance.value}get distanceChanged(){return this._distance.changed}getESProperties(){const t={...super.getESProperties()};return{...t,defaultMenu:"basic",basic:[...t.basic,new q("高度","height",!1,!1,[this,"height"],10),new q("宽度","width",!1,!1,[this,"width"],10),new ce("模式","materialMode",!1,!1,[this,"materialMode"],gs.defaults.materialModes,"purple")],coordinate:[...t.coordinate,new q("长度","距离",!1,!0,[this,"distance"])]}}getProperties(t){return[...super.getProperties(t),new ee("ESPipeFence","ESPipeFence",[new q("高度","height",!1,!1,[this,"height"]),new q("宽度","width",!1,!1,[this,"width"]),new ce("materialMode","materialMode",!1,!1,[this,"materialMode"],gs.defaults.materialModes)])]}};D(gs,"type",gs.register("ESPipeFence",gs,{chsName:"管道电子围栏",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"管道电子围栏"})),D(gs,"supportEditingModes",[...Ae.supportEditingModes,xe.LineStringAppend,xe.LineStringInsert]),D(gs,"defaults",{...Ae.defaults,strokeStyle:{width:1,widthType:"screen",color:[1,1,1,1],material:"",materialParams:{}},fillStyle:{color:[1,1,1,1],material:"",materialParams:{}},filled:!0,stroked:!0,materialModes:[["单箭头","singleArrow"],["多箭头","multipleArrows"]]});let Xa=gs;(r=>{r.createDefaultProps=()=>({...Ae.createDefaultProps(),height:10,width:10,materialMode:"singleArrow",filled:!0})})(Xa||(Xa={})),M.extendClassProps(Xa.prototype,Xa.createDefaultProps);const Fo=class Fo extends Yt{constructor(t){super(t);D(this,"_setLayerVisibleEvent",this.dv(new M.Event));D(this,"_setLayerColorEvent",this.dv(new M.Event))}get typeName(){return"ESPipeserTileset"}get defaultProps(){return Fo.createDefaultProps()}get setLayerVisibleEvent(){return this._setLayerVisibleEvent}setLayerVisible(t,n){this._setLayerVisibleEvent.emit(t,n)}get setLayerColorEvent(){return this._setLayerColorEvent}setLayerColor(t,n){this._setLayerColorEvent.emit(t,n)}getProperties(t){return[...super.getProperties(t),new ee("ESPipeserTileset","ESPipeserTileset",[new Se("setLayerVisible","setLayerVisible",["string","string"],(n,i)=>this.setLayerVisible(n,i),["",""]),new Se("setLayerColor","setLayerColor",["string","string"],(n,i)=>this.setLayerColor(n,i),["",""]),new ce("colorMode","colorMode",!0,!1,[this,"colorMode"],Fo.description.colorMode,"default")])]}};D(Fo,"type",Fo.register("ESPipeserTileset",Fo,{chsName:"PipeSer图层",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"PipeSer图层"})),D(Fo,"description",{colorMode:[["default","default"],["color","color"],["blend","blend"]]});let Ya=Fo;(r=>{r.createDefaultProps=()=>({colorMode:"default",...Yt.createDefaultProps()})})(Ya||(Ya={})),M.extendClassProps(Ya.prototype,Ya.createDefaultProps);const vs=class vs extends Ae{constructor(t){super(t);D(this,"editingBindMode","circular");this.filled=!0,this.collision=!1}get typeName(){return"ESPolygonFence"}get defaultProps(){return vs.createDefaultProps()}getESProperties(){const t={...super.getESProperties()};return{...t,defaultMenu:"basic",coordinate:[...t.coordinate,new q("面积","面积",!1,!0,[this,"area"]),new q("周长","周长",!1,!0,[this,"perimeter"])],basic:[...t.basic,new q("高度","height",!1,!1,[this,"height"],10),new ce("模式","materialMode",!1,!1,[this,"materialMode"],vs.defaults.materialModes,"danger")]}}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new q("高度","height",!1,!1,[this,"height"]),new ce("materialMode","materialMode",!1,!1,[this,"materialMode"],vs.defaults.materialModes)]),new ee("计算","计算",[new q("面积","面积",!1,!0,[this,"area"]),new q("周长","周长",!1,!0,[this,"perimeter"])])]}};D(vs,"type",vs.register("ESPolygonFence",vs,{chsName:"多边形电子围栏",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"多边形电子围栏"})),D(vs,"supportEditingModes",[...Ae.supportEditingModes,xe.CircularAppend,xe.CircularInsert,xe.HeightModify]),D(vs,"defaults",{...Ae.defaults,fillStyle:{color:[1,1,1,1],material:"",materialParams:{}},filled:!0,materialModes:[["模式一","danger"],["模式二","checkerboard"],["模式三","warning"],["模式四","cord"],["模式五","scanline"],["模式六","honeycomb"],["模式七","gradientColor"]]});let Ja=vs;(r=>{r.createDefaultProps=()=>({height:10,materialMode:"danger",...Ae.createDefaultProps()})})(Ja||(Ja={})),M.extendClassProps(Ja.prototype,Ja.createDefaultProps);const qs=class qs extends Ae{constructor(t){super(t);D(this,"_deprecated",["ground"]);D(this,"_deprecatedWarningFunc",(()=>{this._deprecatedWarning()})());D(this,"editingBindMode","doublePoints")}get typeName(){return"ESRectangle"}get defaultProps(){return qs.createDefaultProps()}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new $("是否贴地","A boolean Property specifying the visibility.",!1,!1,[this,"ground"]),new $("轮廓线半透明","轮廓线半透明.",!1,!1,[this,"outlineTranslucent"]),new q("高度","高度",!1,!1,[this,"height"]),new q("拉伸高度","拉伸高度",!1,!1,[this,"extrudedHeight"]),new kr("范围","西南东北",!0,!1,[this,"rectangle"],qs.defaults.rectangle),new q("纹理旋转角度","纹理旋转角度.",!1,!1,[this,"stRotation"]),new q("旋转角度","rotation",!1,!1,[this,"rotation"]),new $("是否单点编辑","是否单点编辑.",!1,!1,[this,"pointEditing"])])]}};D(qs,"type",qs.register("ESRectangle",qs,{chsName:"矩形",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"矩形"})),D(qs,"supportEditingModes",[...Ae.supportEditingModes,xe.DoublePointsAppend,xe.DoublePointsModify]),D(qs,"defaults",{...Ae.defaults,ground:!1,outlineTranslucent:!0,height:0,extrudedHeight:0,rectangle:void 0,stRotation:0,rotation:0,pointEditing:!1,allowPicking:!1});let Ka=qs;(r=>{r.createDefaultProps=()=>({...Ae.createDefaultProps(),ground:!1,outlineTranslucent:!0,height:0,extrudedHeight:0,rectangle:M.reactArrayWithUndefined(void 0),rotation:0,stRotation:0,pointEditing:!1,filled:!0})})(Ka||(Ka={})),M.extendClassProps(Ka.prototype,Ka.createDefaultProps);const ju=class ju extends Ue{get typeName(){return"ESPolygonWithHole"}get defaultProps(){return ju.createDefaultProps()}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new ne("裁切多边形数组","必须在内部,且没有相交,裁切的多边形数组",!0,!1,[this,"innerRings"],[])]}}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new ne("裁切多边形数组","必须在内部,且没有相交,裁切的多边形数组",!0,!1,[this,"innerRings"],[])])]}};D(ju,"type",ju.register("ESPolygonWithHole",ju,{chsName:"内部裁切多边形",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"带洞多边形"})),D(ju,"defaults",{...Ue.defaults,innerRings:[]});let Qa=ju;(r=>{r.createDefaultProps=()=>({...Ue.createDefaultProps(),innerRings:M.reactPositionsSet(void 0)})})(Qa||(Qa={})),M.extendClassProps(Qa.prototype,Qa.createDefaultProps);const Hs=class Hs extends Ue{constructor(t){super(t);D(this,"_startEvent",this.disposeVar(new M.Event));D(this,"_surfaceArea",this.disposeVar(M.react(0)));this.fillStyle.ground=!0}get typeName(){return"ESSurfaceAreaMeasurement"}get defaultProps(){return Hs.createDefaultProps()}get startEvent(){return this._startEvent}start(){this._startEvent.emit()}get surfaceArea(){return this._surfaceArea.value}set surfaceArea(t){this._surfaceArea.value=t}get surfaceChanged(){return this._surfaceArea.changed}getProperties(t){return[...super.getProperties(t),new ee("ESSurfaceAreaMeasurement","表面积测量",[new Se("开始计算","开始计算",[],()=>this.start(),[]),new q("插值距离","插值距离,单位米,为0时不插值",!1,!1,[this,"interpolation"],Hs.defaults.interpolation),new q("偏移高度","三角面整体偏移高度,单位米",!1,!1,[this,"offsetHeight"],Hs.defaults.offsetHeight)])]}};D(Hs,"type",Hs.register("ESSurfaceAreaMeasurement",Hs,{chsName:"表面积测量",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"表面积测量"})),D(Hs,"defaults",{...Ue.defaults,interpolation:.5,offsetHeight:0});let $a=Hs;(r=>{r.createDefaultProps=()=>({...Ue.createDefaultProps(),interpolation:void 0,offsetHeight:void 0})})($a||($a={})),M.extendClassProps($a.prototype,$a.createDefaultProps);const Xs=class Xs extends le{get typeName(){return"ESDatasmithRuntimeModel"}get defaultProps(){return Xs.createDefaultProps()}constructor(e){super(e)}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new q("下载进度","下载进度",!0,!0,[this,"downloadProgress"]),new ne("importOptions","导入参数",!0,!1,[this,"importOptions"],Xs.defaults.importOptions)],dataSource:[...e.dataSource,new ne("路径","url",!1,!1,[this,"url"])]}}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new ne("url","url",!1,!1,[this,"url"]),new q("下载进度","下载进度",!0,!0,[this,"downloadProgress"]),new ne("importOptions","导入参数",!0,!1,[this,"importOptions"],Xs.defaults.importOptions)])]}};D(Xs,"type",Xs.register("ESDatasmithRuntimeModel",Xs,{chsName:"Datasmith Model",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"Datasmith Model"})),D(Xs,"defaults",{...le.defaults,url:"",importOptions:{buildCollisions:"QueryAndPhysics",buildHierarchy:"Simplified",collisionType:"CTF_UseComplexAsSimple",bImportMetaData:!0}});let Za=Xs;(r=>{r.createDefaultProps=()=>({...le.createDefaultProps(),url:"",importOptions:M.reactJsonWithUndefined(void 0),downloadProgress:0})})(Za||(Za={})),M.extendClassProps(Za.prototype,Za.createDefaultProps);const dt=class dt extends us{get typeName(){return"ESDynamicWater"}get defaultProps(){return{...dt.createDefaultProps()}}constructor(e){super(e),this.stroked=!1,this.filled=!0}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new ce("水域类型","当为 custom 时其他控制效果的参数生效,否则不生效,使用对应水域类型的预定效果",!1,!1,[this,"waterType"],dt.defaults.waterTypes,dt.defaults.waterType),new q("频率","控制波数的数值(次/千米)",!1,!1,[this,"frequency"],dt.defaults.frequency),new et("振幅","控制水波振幅的数值",!1,!1,[this,"amplitude"],.01,[0,1],dt.defaults.amplitude),new et("流向","控制水流方向,局部坐标方向",!1,!1,[this,"flowDirection"],1,[0,360],dt.defaults.flowDirection),new et("波动频率","控制水波纹扰动的速率",!1,!1,[this,"waveVelocity"],.01,[0,1],dt.defaults.waveVelocity),new et("镜面反射强度","控制镜面反射强度的数值",!1,!1,[this,"specularIntensity"],.01,[0,1],dt.defaults.specularIntensity),new et("水体浑浊度","控制水体的浑浊程度,数值越大,浑浊程度越大,取值范围 0 - 10。",!1,!1,[this,"murkiness"],.1,[0,10],dt.defaults.murkiness),new q("水流速度","控制水流速度,单位 米/秒",!1,!1,[this,"flowSpeed"],dt.defaults.flowSpeed),new pe("水的底色","waterColor",!1,!1,[this,"waterColor"],dt.defaults.waterColor),new ne("水的图片","waterImage",!1,!1,[this,"waterImage"],dt.defaults.waterImage)]}}getProperties(e){return[...super.getProperties(e),new ce("水域类型","当为 custom 时其他控制效果的参数生效,否则不生效,使用对应水域类型的预定效果",!1,!1,[this,"waterType"],dt.defaults.waterTypes),new ne("水的图片","waterImage",!1,!1,[this,"waterImage"],dt.defaults.waterImage),new pe("水的底色","waterColor",!1,!1,[this,"waterColor"],dt.defaults.waterColor),new q("频率","控制波数的数值(次/千米)",!1,!1,[this,"frequency"],dt.defaults.frequency),new et("波动频率","控制水波纹扰动的速率",!1,!1,[this,"waveVelocity"],.01,[0,1],dt.defaults.waveVelocity),new et("振幅","控制水波振幅的数值",!1,!1,[this,"amplitude"],.01,[0,1],dt.defaults.amplitude),new et("镜面反射强度","控制镜面反射强度的数值",!1,!1,[this,"specularIntensity"],.01,[0,1],dt.defaults.specularIntensity),new et("流向","控制水流方向,局部坐标方向",!1,!1,[this,"flowDirection"],1,[0,360],dt.defaults.flowDirection),new et("水体浑浊度","控制水体的浑浊程度,数值越大,浑浊程度越大,取值范围 0 - 10。",!1,!1,[this,"murkiness"],.1,[0,10],dt.defaults.murkiness),new q("水流速度","控制水流速度,单位 米/秒",!1,!1,[this,"flowSpeed"],dt.defaults.flowSpeed)]}};D(dt,"type",dt.register("ESDynamicWater",dt,{chsName:"动态水面",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"局部多边形水面"})),D(dt,"defaults",{...us.defaults,waterColor:[.1497,.165,.0031,1],frequency:1e3,waveVelocity:.5,amplitude:.1,specularIntensity:.8,waterTypes:[["river","river"],["ocean","ocean"],["lake","lake"],["custom","custom"]],waterType:"river",flowDirection:0,flowSpeed:0,waterImage:void 0,murkiness:5});let eu=dt;(r=>{r.createDefaultProps=()=>({...us.createDefaultProps(),allowPicking:!0,waterImage:M.reactJsonWithUndefined(void 0),waterColor:[.1497,.165,.0031,1],frequency:1e3,waveVelocity:.5,amplitude:.1,specularIntensity:.8,waterType:"river",flowDirection:0,flowSpeed:0,murkiness:5})})(eu||(eu={})),M.extendClassProps(eu.prototype,eu.createDefaultProps);const pt=class pt extends Ue{get typeName(){return"ESGeoWater"}get defaultProps(){return pt.createDefaultProps()}constructor(e){super(e)}getESProperties(){const e={...super.getESProperties()};return{...e,defaultMenu:"basic",basic:[...e.basic,new ce("水域类型","当为custom是其他控制效果的参数生效,否则不生效,使用对应水域类型的预定效果",!1,!1,[this,"waterType"],pt.defaults.waterTypes,pt.defaults.waterType),new q("频率","控制波数的数值(次/千米)",!1,!1,[this,"frequency"],pt.defaults.frequency),new et("振幅","控制水波振幅的数值",!1,!1,[this,"amplitude"],.01,[0,1],pt.defaults.amplitude),new et("流向","控制水流方向,局部坐标方向",!1,!1,[this,"flowDirection"],1,[0,360],pt.defaults.flowDirection),new et("波动频率","控制水波纹扰动的速率",!1,!1,[this,"waveVelocity"],.01,[0,1],pt.defaults.waveVelocity),new et("镜面反射强度","控制镜面反射强度的数值",!1,!1,[this,"specularIntensity"],.01,[0,1],pt.defaults.specularIntensity),new et("水体浑浊度","控制水体的浑浊程度,数值越大,浑浊程度越大,取值范围0-10。",!1,!1,[this,"murkiness"],.1,[0,10],pt.defaults.murkiness),new q("水流速度","控制水流速度,单位 米/秒",!1,!1,[this,"flowSpeed"],pt.defaults.flowSpeed),new pe("水的底色","waterColor",!1,!1,[this,"waterColor"],pt.defaults.waterColor),new ne("水的图片","waterImage",!1,!1,[this,"waterImage"],pt.defaults.waterImage)]}}getProperties(e){return[...super.getProperties(e),new ee("ESGeoWater","ESGeoWater",[new ce("水域类型","当为custom是其他控制效果的参数生效,否则不生效,使用对应水域类型的预定效果",!1,!1,[this,"waterType"],pt.defaults.waterTypes),new ne("水的图片","waterImage",!1,!1,[this,"waterImage"],pt.defaults.waterImage),new pe("水的底色","waterColor",!1,!1,[this,"waterColor"],pt.defaults.waterColor),new q("频率","控制波数的数值(次/千米)",!1,!1,[this,"frequency"],pt.defaults.frequency),new et("波动频率","控制水波纹扰动的速率",!1,!1,[this,"waveVelocity"],.01,[0,1],pt.defaults.waveVelocity),new et("振幅","控制水波振幅的数值",!1,!1,[this,"amplitude"],.01,[0,1],pt.defaults.amplitude),new et("镜面反射强度","控制镜面反射强度的数值",!1,!1,[this,"specularIntensity"],.01,[0,1],pt.defaults.specularIntensity),new et("流向","控制水流方向,局部坐标方向",!1,!1,[this,"flowDirection"],1,[0,360],pt.defaults.flowDirection),new et("水体浑浊度","控制水体的浑浊程度,数值越大,浑浊程度越大,取值范围0-10。",!1,!1,[this,"murkiness"],.1,[0,10],pt.defaults.murkiness),new q("水流速度","控制水流速度,单位 米/秒",!1,!1,[this,"flowSpeed"],pt.defaults.flowSpeed)])]}};D(pt,"type",pt.register("ESGeoWater",pt,{chsName:"地理水面",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"地理动态水面"})),D(pt,"defaults",{...Ue.defaults,waterColor:[.1497,.165,.0031,.8],frequency:1e3,waveVelocity:.5,amplitude:.1,specularIntensity:.8,waterTypes:[["river","river"],["ocean","ocean"],["lake","lake"],["custom","custom"]],waterType:"river",flowDirection:0,flowSpeed:0,waterImage:{},murkiness:5});let tu=pt;(r=>{r.createDefaultProps=()=>({...Ue.createDefaultProps(),allowPicking:!0,waterImage:M.reactJsonWithUndefined(void 0),waterColor:[.1497,.165,.0031,.8],frequency:1e3,waveVelocity:.5,amplitude:.1,specularIntensity:.8,waterType:"river",flowDirection:0,flowSpeed:0,murkiness:5})})(tu||(tu={})),M.extendClassProps(tu.prototype,tu.createDefaultProps);const ku=class ku extends le{get typeName(){return"ESLevelRuntimeModel"}get defaultProps(){return ku.createDefaultProps()}constructor(e){super(e)}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new q("下载进度","下载进度",!0,!0,[this,"downloadProgress"]),new de("levelName","levelName",!1,!1,[this,"levelName"],""),new q("levelLoadDistance","levelLoadDistance",!1,!1,[this,"levelLoadDistance"],1e3),new Kt("levelOffset","levelOffset",!1,!1,[this,"levelOffset"],[0,0,0])],dataSource:[...e.dataSource,new ne("url","url",!1,!1,[this,"url"],"")]}}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new ne("url","url",!1,!1,[this,"url"]),new de("levelName","levelName",!1,!1,[this,"levelName"]),new q("下载进度","下载进度",!0,!0,[this,"downloadProgress"]),new q("levelLoadDistance","levelLoadDistance",!1,!1,[this,"levelLoadDistance"]),new Kt("levelOffset","levelOffset",!1,!1,[this,"levelOffset"])])]}};D(ku,"type",ku.register("ESLevelRuntimeModel",ku,{chsName:"关卡包模型",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"关卡包模型"})),D(ku,"defaults",{...le.defaults,url:""});let ru=ku;(r=>{r.createDefaultProps=()=>({...le.createDefaultProps(),url:"",downloadProgress:0,levelName:"",levelOffset:M.reactArray([0,0,0]),levelLoadDistance:1e3})})(ru||(ru={})),M.extendClassProps(ru.prototype,ru.createDefaultProps);const Sr=class Sr extends gn{constructor(t){super(t);D(this,"_deprecated",[{materialMode:{blue:"multipleArrows",purple:"singleArrow"}},"show"]);D(this,"_deprecatedWarningFunc",(()=>{this._deprecatedWarning()})());this.filled=!0,this.stroked=!1,this.fillColor=[1,0,.73,1]}get typeName(){return"ESPipeline"}get defaultProps(){return Sr.createDefaultProps()}getESProperties(){const t={...super.getESProperties()};return{...t,defaultMenu:"basic",basic:[...t.basic,new q("半径","radius(米)",!1,!1,[this,"radius"],Sr.defaults.radius),new q("圆边数","sides(圆细分边)",!1,!1,[this,"sides"],Sr.defaults.sides),new q("材质速度","speed",!1,!1,[this,"speed"],Sr.defaults.speed),new ce("材质模式","materialMode",!1,!1,[this,"materialMode"],Sr.defaults.materialModes),new ne("材质图片和重复度","materialImage",!1,!1,[this,"materialImage"],Sr.defaults.materialImage)],style:[new ee("点样式","点样式集合",[]),new $("开启","开启点样式",!1,!1,[this,"pointed"],!1),new q("点大小","点大小(pointSize)",!1,!1,[this,"pointSize"],1),new ce("点类型","点类型(pointSizeType)",!1,!1,[this,"pointSizeType"],[["screen","screen"],["world","world"]],"screen"),new pe("点颜色","点颜色(pointColor)",!1,!1,[this,"pointColor"],[1,1,1,1]),new ee("线样式","线样式集合",[]),new $("开启线样式","开启线样式",!1,!1,[this,"stroked"],!0),new q("线宽","线宽(strokeWidth)",!1,!1,[this,"strokeWidth"],1),new ce("线类型","线类型(strokeWidthType)",!1,!1,[this,"strokeWidthType"],[["screen","screen"],["world","world"]],"screen"),new pe("线颜色","线颜色(strokeColor)",!1,!1,[this,"strokeColor"],[1,1,1,1]),new $("是否贴地","是否贴地(线)",!1,!1,[this,"strokeGround"],!1),new ee("面样式","面样式集合",[]),new $("开启","开启填充样式",!1,!1,[this,"filled"],!1),new pe("填充颜色","填充颜色(fillColor)",!1,!1,[this,"fillColor"],[1,1,1,1]),new $("是否贴地","是否贴地",!1,!1,[this,"fillGround"],!1)]}}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new q("半径","radius(米)",!1,!1,[this,"radius"],Sr.defaults.radius),new q("圆边数","sides(圆细分边)",!1,!1,[this,"sides"],Sr.defaults.sides),new ne("材质图片和重复度","materialImage",!1,!1,[this,"materialImage"],Sr.defaults.materialImage),new q("材质速度","speed",!1,!1,[this,"speed"],Sr.defaults.speed),new ce("材质模式","materialMode",!1,!1,[this,"materialMode"],Sr.defaults.materialModes)])]}};D(Sr,"type",Sr.register("ESPipeline",Sr,{chsName:"管线",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESPipeline"})),D(Sr,"defaults",{...gn.defaults,radius:10,sides:10,materialImage:{url:"",uDis:50,vDis:10},speed:1,materialModes:[["单箭头","singleArrow"],["多箭头","multipleArrows"]]});let nu=Sr;(r=>{r.createDefaultProps=()=>({...gn.createDefaultProps(),radius:10,sides:10,materialMode:"singleArrow",materialImage:M.reactJson(r.defaults.materialImage),speed:1})})(nu||(nu={})),M.extendClassProps(nu.prototype,nu.createDefaultProps);const bn=class bn extends Ae{constructor(t){super(t);D(this,"editingBindMode","visibility")}get typeName(){return"ESVisibilityAnalysis"}get defaultProps(){return bn.createDefaultProps()}getESProperties(){const t={...super.getESProperties()};return{...t,basic:[...t.basic,new pe("可视区域颜色","可视区域颜色.",!1,!1,[this,"visibleColor"],bn.defaults.visibleColor),new pe("遮挡区域颜色","遮挡区域颜色.",!1,!1,[this,"invisibleColor"],bn.defaults.invisibleColor),new q("视点高度偏移","heightOffset",!1,!1,[this,"heightOffset"],bn.defaults.heightOffset)]}}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new pe("可视区域颜色","可视区域颜色.",!1,!1,[this,"visibleColor"],bn.defaults.visibleColor),new pe("遮挡区域颜色","遮挡区域颜色.",!1,!1,[this,"invisibleColor"],bn.defaults.invisibleColor),new q("视点高度偏移","heightOffset",!1,!1,[this,"heightOffset"],bn.defaults.heightOffset)])]}};D(bn,"type",bn.register("ESVisibilityAnalysis",bn,{chsName:"通视分析,视线分析",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"通视分析,视线分析"})),D(bn,"supportEditingModes",[...Ae.supportEditingModes,xe.VisibilityAppend,xe.VisibilityModify]),D(bn,"defaults",{...Ae.defaults,visibleColor:[0,1,0,1],invisibleColor:[1,0,0,1],heightOffset:0});let iu=bn;(r=>{r.createDefaultProps=()=>({...Ae.createDefaultProps(),visibleColor:M.reactArray([0,1,0,1]),invisibleColor:M.reactArray([1,0,0,1]),heightOffset:0})})(iu||(iu={})),M.extendClassProps(iu.prototype,iu.createDefaultProps);const Gu=class Gu extends Ue{constructor(t){super(t);D(this,"_startEvent",this.dv(new M.Event));D(this,"_clearEvent",this.dv(new M.Event));D(this,"_volume",this.disposeVar(M.react(0)));this.filled=!1,this.stroked=!0,this.strokeStyle.width=2}get typeName(){return"ESVolumeMeasurement"}get defaultProps(){return Gu.createDefaultProps()}get startEvent(){return this._startEvent}start(){this._startEvent.emit()}get clearEvent(){return this._clearEvent}clear(){this._clearEvent.emit()}get volume(){return this._volume.value}set volume(t){this._volume.value=t}get volumeChanged(){return this._volume.changed}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new q("基准面高程","基准面高程",!0,!1,[this,"planeHeight"]),new q("采样间距 m","采样间距 m",!1,!1,[this,"gridWidth"]),new q("挖方","挖方 m³",!1,!0,[this,"cutVolume"]),new q("填方","填方 m³",!1,!0,[this,"fillVolume"]),new q("挖填方","挖填方 m³",!1,!0,[this,"cutAndFillVolume"]),new q("计算进度","计算进度",!1,!0,[this,"progress"]),new Se("开始分析","开始分析",[],()=>this.start(),[]),new Se("清空分析结果","清空分析结果",[],()=>this.clear(),[]),new $("是否开启深度检测","A boolean Property specifying the visibility.",!1,!1,[this,"depthTest"])])]}};D(Gu,"type",Gu.register("ESVolumeMeasurement",Gu,{chsName:"体积测量",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"体积测量"})),D(Gu,"defaults",{...Ue.defaults});let su=Gu;(r=>{r.createDefaultProps=()=>({...Ue.createDefaultProps(),planeHeight:M.react(void 0),gridWidth:1,cutVolume:0,fillVolume:0,cutAndFillVolume:0,progress:0,depthTest:!1})})(su||(su={})),M.extendClassProps(su.prototype,su.createDefaultProps);const Ul=class Ul extends os{constructor(t){super(t);D(this,"_human",this.dv(new os(`${this.id}_ESHuman`)));D(this,"_poi",this.dv(new as(`${this.id}_ESPoi2D`)));D(this,"combinationClass",!0);this.mainClass=this._human,this.d(this.components.disposableAdd(this._human)),this.d(this.components.disposableAdd(this._poi));{const{_human:n,_poi:i}=this;this.d(M.track([n,"show"],[this,"show"])),this.d(M.track([i,"show"],[this,"show"])),this.d(M.track([n,"allowPicking"],[this,"allowPicking"])),this.d(M.track([i,"allowPicking"],[this,"allowPicking"])),this.d(M.bind([n,"scale"],[this,"scale"])),this.d(M.bind([i,"scale"],[this,"scale"])),this.d(M.track([n,"collision"],[this,"collision"])),this.d(M.track([i,"collision"],[this,"collision"])),this.d(M.bind([n,"flyInParam"],[this,"flyInParam"])),this.d(M.bind([n,"flyToParam"],[this,"flyToParam"])),this.d(M.track([n,"animation"],[this,"animation"])),this.d(M.track([n,"mode"],[this,"mode"])),this.d(M.track([n,"minVisibleDistance"],[this,"minVisibleDistance"])),this.d(M.track([n,"maxVisibleDistance"],[this,"maxVisibleDistance"])),this.d(M.track([i,"name"],[this,"name"])),this.d(M.track([i,"mode"],[this,"poiMode"])),this.d(M.track([i,"autoAnchor"],[this,"autoAnchor"])),this.d(M.track([i,"screenRender"],[this,"screenRender"])),this.d(M.track([i,"size"],[this,"size"])),this.d(M.track([i,"anchor"],[this,"anchor"])),this.d(M.track([i,"sizeByContent"],[this,"sizeByContent"])),this.d(M.track([i,"renderMode"],[this,"renderMode"])),this.d(M.track([i,"rotationType"],[this,"rotationType"])),this.d(M.track([i,"zOrder"],[this,"zOrder"])),this.d(M.track([i,"minVisibleDistance"],[this,"minVisibleDistance"])),this.d(M.track([i,"maxVisibleDistance"],[this,"maxVisibleDistance"])),this.d(M.bind([n,"position"],[this,"position"])),this.d(M.bind([n,"rotation"],[this,"rotation"])),this.d(this.flyInEvent.don(o=>{n.flyIn(o)})),this.d(this.flyToEvent.don(o=>{n.flyTo(o)})),this.d(this.calcFlyToParamEvent.don(()=>{n.calcFlyToParam()})),this.d(this.calcFlyInParamEvent.don(()=>{n.calcFlyInParam()})),this.d(this.smoothMoveEvent.don((o,s)=>{n.smoothMove(o,s)})),this.d(this.smoothMoveWithRotationEvent.don((o,s,a)=>{n.smoothMoveWithRotation(o,s,a)})),this.d(this.smoothMoveOnGroundEvent.don((o,s,a,c)=>{n.smoothMoveOnGround(o,s,a,c)})),this.d(this.smoothMoveWithRotationOnGroundEvent.don((o,s,a,c,f)=>{n.smoothMoveWithRotationOnGround(o,s,a,c,f)})),this.d(this.automaticLandingEvent.don(()=>{n.automaticLanding()}))}}get typeName(){return"ESHumanPoi"}get defaultProps(){return Ul.createDefaultProps()}get human(){return this._human}get poi(){return this._poi}getESProperties(){const t={...super.getESProperties()};return{...t,basic:[...t.basic,new ce("poi模式","poiMode",!1,!1,[this,"poiMode"],as.defaults.modes,"SquareH01"),new q("poi高度偏移","poi高度偏移",!1,!1,[this,"poiOffsetHeight"],1.8)]}}getProperties(t){return[...super.getProperties(t),new ce("poi模式","poiMode",!1,!1,[this,"poiMode"],as.defaults.modes),new q("poi高度偏移","poi高度偏移",!1,!1,[this,"poiOffsetHeight"],1.8)]}};D(Ul,"type",Ul.register("ESHumanPoi",Ul,{chsName:"人员poi",tags:["ESObjects"],description:"ESHuman + ESPoi2D组合对象"}));let ou=Ul;(r=>{r.createDefaultProps=()=>({poiOffsetHeight:1.8,poiMode:"SquareH01",style:M.reactJson({}),autoAnchor:!0,screenRender:!0,size:M.reactArray([100,100]),anchor:M.reactArray([.5,1]),sizeByContent:!0,renderMode:0,rotationType:1,zOrder:0,...os.createDefaultProps()})})(ou||(ou={})),M.extendClassProps(ou.prototype,ou.createDefaultProps);const Cr=class Cr extends Ue{get typeName(){return"ESPit"}get defaultProps(){return Cr.createDefaultProps()}constructor(e){super(e),this.collision=!1,this.allowPicking=!1,this.filled=!0}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new q("深度","坑深度(米)",!1,!1,[this,"depth"],Cr.defaults.depth),new q("插值","插值距离(米)",!1,!1,[this,"interpolation"],Cr.defaults.interpolation),new q("透明度","透明度",!1,!1,[this,"opacity"],Cr.defaults.opacity),new ne("侧面图片","侧面图片",!1,!1,[this,"sideImage"],Cr.defaults.sideImage),new ne("底面图片","底面图片",!1,!1,[this,"bottomImage"],Cr.defaults.bottomImage)],style:[new ee("点样式","点样式集合",[]),new $("开启","开启点样式",!1,!1,[this,"pointed"],!1),new q("点大小","点大小(pointSize)",!1,!1,[this,"pointSize"],1),new ce("点类型","点类型(pointSizeType)",!1,!1,[this,"pointSizeType"],[["screen","screen"],["world","world"]],"screen"),new pe("点颜色","点颜色(pointColor)",!1,!1,[this,"pointColor"],[1,1,1,1]),new ee("线样式","线样式集合",[]),new $("开启","开启线样式",!1,!1,[this,"stroked"],!0),new q("线宽","线宽(strokeWidth)",!1,!1,[this,"strokeWidth"],1),new ce("线类型","线类型(strokeWidthType)",!1,!1,[this,"strokeWidthType"],[["screen","screen"],["world","world"]],"screen"),new pe("线颜色","线颜色(strokeColor)",!1,!1,[this,"strokeColor"],[1,1,1,1]),new $("是否贴地","是否贴地(线)",!1,!1,[this,"strokeGround"],!1),new ee("面样式","面样式集合",[]),new $("开启","开启填充样式",!1,!1,[this,"filled"],!0),new pe("填充颜色","填充颜色(fillColor)",!1,!1,[this,"fillColor"],[1,1,1,1]),new $("是否贴地","是否贴地",!1,!1,[this,"fillGround"],!1)]}}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new q("深度","坑深度(米)",!1,!1,[this,"depth"],Cr.defaults.depth),new q("插值","插值距离(米)",!1,!1,[this,"interpolation"],Cr.defaults.interpolation),new ne("侧面图片","侧面图片",!1,!1,[this,"sideImage"],Cr.defaults.sideImage),new ne("底面图片","底面图片",!1,!1,[this,"bottomImage"],Cr.defaults.bottomImage),new q("opacity","透明度",!1,!1,[this,"opacity"],Cr.defaults.opacity)])]}};D(Cr,"type",Cr.register("ESPit",Cr,{chsName:"坑",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"坑"})),D(Cr,"defaults",{...Ue.defaults,depth:100,sideImage:{url:we.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/ESPit/side.jpg"),uDis:50,vDis:50},bottomImage:{url:we.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/ESPit/bottom.jpg"),uDis:50,vDis:50},opacity:1,interpolation:50});let ls=Cr;(r=>{r.createDefaultProps=()=>({...Ue.createDefaultProps(),depth:100,sideImage:M.reactJson(r.defaults.sideImage),bottomImage:M.reactJson(r.defaults.bottomImage),opacity:1,interpolation:50})})(ls||(ls={})),M.extendClassProps(ls.prototype,ls.createDefaultProps);const Wl=class Wl extends ls{constructor(t){super(t);D(this,"_excavate",this.dv(new Fs(`${this.id}_ESExcavate`)));D(this,"_pit",this.dv(new ls(`${this.id}_ESPit`)));D(this,"combinationClass",!0);this.mainClass=this._pit,this.d(this.components.disposableAdd(this._excavate)),this.d(this.components.disposableAdd(this._pit));{const{_excavate:n,_pit:i}=this;this.d(M.track([n,"show"],[this,"show"])),this.d(M.track([i,"show"],[this,"show"])),this.d(M.track([n,"allowPicking"],[this,"allowPicking"])),this.d(M.track([i,"allowPicking"],[this,"allowPicking"])),this.d(M.track([n,"collision"],[this,"collision"])),this.d(M.track([i,"collision"],[this,"collision"])),this.d(M.bind([i,"points"],[this,"points"])),this.d(M.track([n,"points"],[this,"points"])),this.d(M.track([i,"pointed"],[this,"pointed"])),this.d(M.track([n,"pointed"],[this,"pointed"])),this.d(M.track([i,"pointStyle"],[this,"pointStyle"])),this.d(M.track([n,"pointStyle"],[this,"pointStyle"])),this.d(M.track([i,"stroked"],[this,"stroked"])),this.d(M.track([n,"stroked"],[this,"stroked"])),this.d(M.track([i,"strokeStyle"],[this,"strokeStyle"])),this.d(M.track([n,"strokeStyle"],[this,"strokeStyle"])),this.d(M.track([i,"filled"],[this,"filled"])),this.d(M.track([i,"fillStyle"],[this,"fillStyle"])),this.d(M.track([n,"fillStyle"],[this,"fillStyle"])),this.d(M.track([n,"mode"],[this,"mode"])),this.d(M.track([n,"targetID"],[this,"targetID"])),this.d(M.track([i,"depth"],[this,"depth"])),this.d(M.track([i,"sideImage"],[this,"sideImage"])),this.d(M.track([i,"bottomImage"],[this,"bottomImage"])),this.d(M.track([i,"opacity"],[this,"opacity"])),this.d(M.track([i,"interpolation"],[this,"interpolation"])),this.d(M.bind([i,"flyInParam"],[this,"flyInParam"])),this.d(M.bind([i,"flyToParam"],[this,"flyToParam"])),this.d(this.flyInEvent.don(o=>{i.flyIn(o)})),this.d(this.flyToEvent.don(o=>{i.flyTo(o)})),this.d(this.calcFlyToParamEvent.don(()=>{i.calcFlyToParam()})),this.d(this.calcFlyInParamEvent.don(()=>{i.calcFlyInParam()}))}}get typeName(){return"ESHole"}get defaultProps(){return Wl.createDefaultProps()}get excavate(){return this._excavate}getESProperties(){const t={...super.getESProperties()};return{...t,basic:[...t.basic,new ce("模式","mode",!1,!1,[this,"mode"],Fs.defaults.modes,"in"),new de("瓦片图层","targetID",!1,!1,[this,"targetID"],"")]}}};D(Wl,"type",Wl.register("ESHole",Wl,{chsName:"挖坑(带材质+深度)",tags:["ESObjects"],description:"挖坑"}));let au=Wl;(r=>{r.createDefaultProps=()=>({mode:"in",targetID:"",...ls.createDefaultProps()})})(au||(au={})),M.extendClassProps(au.prototype,au.createDefaultProps);const Bd={layerconfigfind:"/ts/layer/config/get",layerconfigsave:"/ts/layer/config/put",featureproperty:"/ts/editor/property",featureeditormuti:"/ts/editor/update",getts:"/ts/info"},sC=async(r,e)=>{try{const t=window.localStorage.getItem("Authorization"),n={headers:{...t?{Authorization:t}:{}},mode:"cors"},o=await(await fetch(r+`${Bd.layerconfigfind}?tileServiceName=${e}`,n)).text();return JSON.parse(o)}catch(t){console.error(t)}},oC=async(r,e,t)=>{try{const n=window.localStorage.getItem("Authorization"),i=t??{},o={method:"POST",headers:{"Content-Type":"application/json",...n?{Authorization:n}:{}},mode:"cors",body:JSON.stringify({tileServiceName:e,layerConfig:JSON.stringify(i)})},a=await(await fetch(r+Bd.layerconfigsave,o)).text();return JSON.parse(a)}catch(n){console.error(n)}},aC=async r=>{try{const e=window.localStorage.getItem("Authorization"),t={headers:{...e?{Authorization:e}:{}},mode:"cors"},i=await(await fetch(r,t)).text(),o=JSON.parse(i);if(o.status=="ok")return o.data.port;console.error(o.status);return}catch(e){console.error(e)}},uC=async(r,e,t)=>{try{const n={tileServiceName:e,featureId:t},i=window.localStorage.getItem("Authorization"),s=await(await fetch(r+Bd.featureproperty,{method:"post",headers:{"Content-Type":"application/json",...i?{Authorization:i}:{}},body:JSON.stringify(n),mode:"cors"})).text(),a=JSON.parse(s);if(a.status=="ok")return a.data;console.error(a.data.status);return}catch(n){console.error(n)}},Vu=class Vu extends Yt{constructor(t){super(t);D(this,"_es3DTileset",this.dv(new Yt(`${this.id}_ES3DTileset`)));D(this,"_ids",this.dv(M.reactJson([])));D(this,"combinationClass",!0);D(this,"_highlightInner3DtilesetEvent",this.dv(new M.Event));D(this,"_removeHighlightInner3DtilesetEvent",this.dv(new M.Event));D(this,"_tilesetServePort",this.dv(M.react("")));this.mainClass=this._es3DTileset;{const n=async()=>{if(typeof this.url!="string"){console.error("服务地址不合法, Init Error! 示例: http://localhost:9009/ts/info/ts01");return}this.url?this.refresh():this._es3DTileset.url=""};this.d(this.urlChanged.don(()=>{n()}))}{this.d(this.components.disposableAdd(this._es3DTileset));const n=this._es3DTileset;this.d(M.track([n,"allowPicking"],[this,"allowPicking"])),this.d(M.track([n,"collision"],[this,"collision"])),this.d(M.bind([n,"flyToParam"],[this,"flyToParam"])),this.d(M.bind([n,"flyToParam"],[this,"flyToParam"])),this.d(M.track([n,"actorTag"],[this,"actorTag"])),this.d(M.track([n,"materialMode"],[this,"materialMode"])),this.d(M.track([n,"highlight"],[this,"highlight"])),this.d(M.track([n,"maximumScreenSpaceError"],[this,"maximumScreenSpaceError"])),this.d(M.track([n,"highlightID"],[this,"highlightID"])),this.d(M.track([n,"highlightColor"],[this,"highlightColor"])),this.d(M.bind([n,"offset"],[this,"offset"])),this.d(M.bind([n,"rotation"],[this,"rotation"])),this.d(M.track([n,"czmImageBasedLightingFactor"],[this,"czmImageBasedLightingFactor"])),this.d(M.track([n,"czmLuminanceAtZenith"],[this,"czmLuminanceAtZenith"])),this.d(M.track([n,"czmMaximumMemoryUsage"],[this,"czmMaximumMemoryUsage"])),this.d(M.track([n,"czmClassificationType"],[this,"czmClassificationType"])),this.d(M.track([n,"czmStyleJson"],[this,"czmStyleJson"])),this.d(M.track([n,"czmBackFaceCulling"],[this,"czmBackFaceCulling"])),this.d(M.track([n,"czmDebugShowBoundingVolume"],[this,"czmDebugShowBoundingVolume"])),this.d(M.track([n,"czmDebugShowContentBoundingVolume"],[this,"czmDebugShowContentBoundingVolume"])),this.d(M.track([n,"czmSkipLevelOfDetail"],[this,"czmSkipLevelOfDetail"])),this.d(M.track([n,"colorBlendMode"],[this,"colorBlendMode"])),this.d(M.track([n,"cacheBytes"],[this,"cacheBytes"])),this.d(M.track([n,"clippingPlaneEnabled"],[this,"clippingPlaneEnabled"])),this.d(M.track([n,"unionClippingRegions"],[this,"unionClippingRegions"])),this.d(M.track([n,"clippingPlaneEdgeColor"],[this,"clippingPlaneEdgeColor"])),this.d(M.track([n,"clippingPlaneEdgeWidth"],[this,"clippingPlaneEdgeWidth"])),this.d(M.track([n,"materialParams"],[this,"materialParams"])),this.d(M.bind([n,"supportEdit"],[this,"supportEdit"])),this.d(M.bind([n,"clippingPlanesId"],[this,"clippingPlanesId"])),this.d(M.bind([n,"clippingPlaneIds"],[this,"clippingPlaneIds"])),this.d(M.bind([n,"flattenedPlaneId"],[this,"flattenedPlaneId"])),this.d(M.bind([n,"flattenedPlaneEnabled"],[this,"flattenedPlaneEnabled"])),this.d(M.bind([n,"clippingPlaneId"],[this,"clippingPlaneId"])),this.d(M.bind([n,"excavateId"],[this,"excavateId"]))}{const n=this._es3DTileset;this.d(this.refreshTilesetEvent.don(()=>{n.refreshTileset()})),this.d(this.highlightFeatureEvent.don((...i)=>{n.highlightFeature(...i)})),this.d(this.highlightFeatureAndFlyToEvent.don((...i)=>{n.highlightFeatureAndFlyTo(...i)})),this.d(this.setFeatureColorEvent.don((...i)=>{n.setFeatureColor(...i)})),this.d(this.setFeatureVisableEvent.don((...i)=>{n.setFeatureVisable(...i)})),this.d(this.resetFeatureStyleEvent.don((...i)=>{n.resetFeatureStyle(...i)})),this.d(this.setFeatureStyleEvent.don((...i)=>{n.setFeatureStyle(...i)})),this.d(this.flyInEvent.don((...i)=>{n.flyIn(i[0])})),this.d(this.flyToEvent.don((...i)=>{n.flyTo(i[0])})),this.d(this.calcFlyToParamEvent.don((...i)=>{n.calcFlyToParam(...i)})),this.d(this.calcFlyInParamEvent.don((...i)=>{n.calcFlyInParam(...i)}))}{const n=this._es3DTileset;this.d(n.tilesetReady.don(i=>{this.tilesetReady.emit(i)})),this.d(n.pickedEvent.don(i=>{i.assign({sceneObject:this}),this.pickedEvent.emit(i)}))}{const n=()=>{this.es3DTileset.show=this.show};n(),this.d(this.showChanged.don(()=>{n()}))}}get typeName(){return"ESRtsTileset"}get defaultProps(){return Vu.createDefaultProps()}get json(){return this._innerGetJson()}set json(t){this._innerSetJson(t)}get es3DTileset(){return this._es3DTileset}get ids(){return this._ids.value}get idsChanged(){return this._ids.changed}set ids(t){this._ids.value=t}async getFeatureProperty(t){return await uC(this.baseUrl,this.tileServiceName,t)}async getLayerConfig(){const t=await sC(this.baseUrl,this.tileServiceName);return!t||!Array.isArray(t)?this.layerConfig=[]:this.layerConfig=t,this.layerConfig}async saveLayerConfig(){const t=this.layerConfig;return await oC(this.baseUrl,this.tileServiceName,t)}get highlightInner3DtilesetEvent(){return this._highlightInner3DtilesetEvent}_highlightInner3Dtileset(t){this._highlightInner3DtilesetEvent.emit(t)}async highlightDSFeature(t){this._highlightInner3Dtileset(t)}get removeHighlightInner3DtilesetEvent(){return this._removeHighlightInner3DtilesetEvent}_removeHighlightInner3Dtileset(t){this._removeHighlightInner3DtilesetEvent.emit(t)}async removeHighlightDSFeature(t){this._removeHighlightInner3Dtileset(t)}async pickFeature(t,n){var a,c,f;const i=await t.pick(n),o=i.sceneObject;return!o||o.id!==this.id&&o.typeName!="ESRtsFeatureEditing"?void 0:o.typeName!="ESRtsFeatureEditing"?(this.ids=[...this.ids,(a=i==null?void 0:i.tilesetPickInfo)==null?void 0:a.id],{featureId:(c=i==null?void 0:i.tilesetPickInfo)==null?void 0:c.id,pickInnerFields:i==null?void 0:i.tilesetPickInfo}):{featureId:(f=i==null?void 0:i.sceneObject)==null?void 0:f.id,pickInnerFields:i==null?void 0:i.tilesetPickInfo}}get tilesetServePort(){return this._tilesetServePort.value}get tilesetServePortChanged(){return this._tilesetServePort.changed}set tilesetServePort(t){this._tilesetServePort.value=t}async getport(){const t=await aC(this.url);if(t)return this.tilesetServePort=t,t;throw new Error("服务地址port获取失败!")}async refresh(){var i;if(!this.url||typeof this.url!="string")return;const t=(i=this.url.match(/\/ts\/info\/(.*)/))==null?void 0:i[1],n=+new Date;if(t){const o=this.tileServiceIp,s=await this.getport();await this.getLayerConfig(),this._es3DTileset.url=`${o}:${s}/tiles/tileset.json?t=${n}`}console.log("3dtileset url:",this._es3DTileset.url)}get baseUrl(){var t;if(this.url&&typeof this.url=="string"){const n=(t=this.url.match(/^(https?:\/\/[^\/]+)/))==null?void 0:t[1];if(!n)throw new Error("服务地址不合法,baseUrl is not found! 示例: http://localhost:9009/ts/info/ts01");return n}else throw new Error("服务地址不合法,baseUrl is not found! 示例: http://localhost:9009/ts/info/ts01")}get tileServiceName(){var t;if(this.url&&typeof this.url=="string"){const n=(t=this.url.match(/\/ts\/info\/(.*)/))==null?void 0:t[1];if(!n)throw console.log(this.url),new Error("服务地址不合法,tileServiceName is not found! 示例: http://localhost:9009/ts/info/ms01,");return n}else throw new Error("服务地址不合法,tileServiceName is not found! 示例: http://localhost:9009/ts/info/ms01")}get tileServiceIp(){var t;if(this.url&&typeof this.url=="string"){const n=(t=this.url.match(/^(https?:\/\/[^:]+)/))==null?void 0:t[1];if(!n)throw new Error("服务地址不合法,ip is not found! 示例: http://localhost:9009/ts/info/ts01");return n}else throw new Error("服务地址不合法,ip is not found! 示例: http://localhost:9009/ts/info/ts01")}getProperties(t){return[...super.getProperties(t),new ee("ESRtsTileset","ESRtsTileset",[new ne("图层配置","图层配置(layerConfig)",!0,!1,[this,"layerConfig"],[])])]}};D(Vu,"type",Vu.register("ESRtsTileset",Vu,{chsName:"CIMRTS实时3DTileset图层",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"实时3DTileset图层"})),D(Vu,"defaults",{...Yt.defaults,layerConfig:[]});let uu=Vu;(r=>{r.createDefaultProps=()=>({layerConfig:M.reactJsonWithUndefined(void 0),...Yt.createDefaultProps()})})(uu||(uu={})),M.extendClassProps(uu.prototype,uu.createDefaultProps);function lC(r){return typeof r=="number"&&!isNaN(r)}const Bu=class Bu extends Yt{constructor(t){super(t);D(this,"combinationClass",!0)}get typeName(){return"ESRtsFeatureEditing"}get defaultProps(){return Bu.createDefaultProps()}get json(){return{...this._innerGetJson(),show:this.show,materials:this.materials,changeMaterial:this.changeMaterial,props:this.props,rotation:this.rotation}}set json(t){this._innerSetJson(t)}async init(t,n){this.featureId=n;const i=await t.getFeatureProperty(n);this.uiShowprops=i.allFields.map(a=>({featureClassName:a.featureClassName,fields:a.fields.map(c=>({key:c.name,type:c.type,value:c.type!="Double"?c.value:lC(c.value)?Number(c.value.toFixed(3)):""}))})),this.datasetName=i.datasetName,t.setFeatureVisable("id",[{value:this.featureId,visable:!1}]),this.d(()=>{t.setFeatureVisable("id",[{value:this.featureId,visable:!0}])});const o=t.tileServiceIp,s=t.tilesetServePort;if(!s)throw new Error("ESRtsFeatureEditing: port is not defined");this.url=`${o}:${s}/featuretiles/${this.featureId}/tileset.json`,this.allowPicking=!0,this.d(this.pickedEvent.don(a=>{a.assign({sceneObject:t}),t.pickedEvent.emit(a)})),this.d(()=>{this.editing=!1,t.removeHighlightDSFeature(this)})}getProperties(t){return[...super.getProperties(t)]}};D(Bu,"type",Bu.register("ESRtsFeatureEditing",Bu,{chsName:"ESRtsFeatureEditing",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"实时3DTileset图层"})),D(Bu,"defaults",{...Yt.defaults,layerConfig:{}});let lu=Bu;(r=>{r.createDefaultProps=()=>({...Yt.createDefaultProps(),datasetName:void 0,featureId:void 0,materials:M.reactJson({}),changeMaterial:M.reactJsonWithUndefined(void 0),uiShowprops:M.reactJson({}),props:M.reactJson({})})})(lu||(lu={})),M.extendClassProps(lu.prototype,lu.createDefaultProps);const cC=async r=>{try{const e=window.localStorage.getItem("Authorization"),t={headers:{...e?{Authorization:e}:{}},mode:"cors"},i=await(await fetch(r,t)).text(),o=JSON.parse(i);if(o.status=="ok")return o.data.port;console.error(o.status);return}catch(e){console.error(e)}},zu=class zu extends Yt{constructor(t){super(t);D(this,"_es3DTileset",this.dv(new Yt(`${this.id}_ES3DTileset`)));D(this,"combinationClass",!0);D(this,"_tilesetServePort",this.dv(M.react("")));this.mainClass=this._es3DTileset;{const n=async()=>{if(typeof this.url!="string"){console.error("服务地址不合法, Init Error! 示例: http://localhost:9009/ts/info/ms01");return}this.url?this.refresh():this._es3DTileset.url=""};this.d(this.urlChanged.don(()=>{n()}))}{this.d(this.components.disposableAdd(this._es3DTileset));const n=this._es3DTileset;this.d(M.track([n,"allowPicking"],[this,"allowPicking"])),this.d(M.track([n,"collision"],[this,"collision"])),this.d(M.bind([n,"flyToParam"],[this,"flyToParam"])),this.d(M.bind([n,"flyToParam"],[this,"flyToParam"])),this.d(M.track([n,"actorTag"],[this,"actorTag"])),this.d(M.track([n,"materialMode"],[this,"materialMode"])),this.d(M.track([n,"highlight"],[this,"highlight"])),this.d(M.track([n,"maximumScreenSpaceError"],[this,"maximumScreenSpaceError"])),this.d(M.track([n,"highlightID"],[this,"highlightID"])),this.d(M.track([n,"highlightColor"],[this,"highlightColor"])),this.d(M.bind([n,"offset"],[this,"offset"])),this.d(M.bind([n,"rotation"],[this,"rotation"])),this.d(M.track([n,"czmImageBasedLightingFactor"],[this,"czmImageBasedLightingFactor"])),this.d(M.track([n,"czmLuminanceAtZenith"],[this,"czmLuminanceAtZenith"])),this.d(M.track([n,"czmMaximumMemoryUsage"],[this,"czmMaximumMemoryUsage"])),this.d(M.track([n,"czmClassificationType"],[this,"czmClassificationType"])),this.d(M.track([n,"czmStyleJson"],[this,"czmStyleJson"])),this.d(M.track([n,"czmBackFaceCulling"],[this,"czmBackFaceCulling"])),this.d(M.track([n,"czmDebugShowBoundingVolume"],[this,"czmDebugShowBoundingVolume"])),this.d(M.track([n,"czmDebugShowContentBoundingVolume"],[this,"czmDebugShowContentBoundingVolume"])),this.d(M.track([n,"czmSkipLevelOfDetail"],[this,"czmSkipLevelOfDetail"])),this.d(M.track([n,"colorBlendMode"],[this,"colorBlendMode"])),this.d(M.track([n,"cacheBytes"],[this,"cacheBytes"])),this.d(M.track([n,"clippingPlaneEnabled"],[this,"clippingPlaneEnabled"])),this.d(M.track([n,"unionClippingRegions"],[this,"unionClippingRegions"])),this.d(M.track([n,"clippingPlaneEdgeColor"],[this,"clippingPlaneEdgeColor"])),this.d(M.track([n,"clippingPlaneEdgeWidth"],[this,"clippingPlaneEdgeWidth"])),this.d(M.track([n,"materialParams"],[this,"materialParams"])),this.d(M.bind([n,"supportEdit"],[this,"supportEdit"])),this.d(M.bind([n,"clippingPlanesId"],[this,"clippingPlanesId"])),this.d(M.bind([n,"clippingPlaneIds"],[this,"clippingPlaneIds"])),this.d(M.bind([n,"flattenedPlaneId"],[this,"flattenedPlaneId"])),this.d(M.bind([n,"flattenedPlaneEnabled"],[this,"flattenedPlaneEnabled"])),this.d(M.bind([n,"clippingPlaneId"],[this,"clippingPlaneId"])),this.d(M.bind([n,"excavateId"],[this,"excavateId"]))}{const n=this._es3DTileset;this.d(this.refreshTilesetEvent.don(()=>{n.refreshTileset()})),this.d(this.highlightFeatureEvent.don((...i)=>{n.highlightFeature(...i)})),this.d(this.highlightFeatureAndFlyToEvent.don((...i)=>{n.highlightFeatureAndFlyTo(...i)})),this.d(this.setFeatureColorEvent.don((...i)=>{n.setFeatureColor(...i)})),this.d(this.setFeatureVisableEvent.don((...i)=>{n.setFeatureVisable(...i)})),this.d(this.resetFeatureStyleEvent.don((...i)=>{n.resetFeatureStyle(...i)})),this.d(this.flyInEvent.don((...i)=>{n.flyIn(i[0])})),this.d(this.flyToEvent.don((...i)=>{n.flyTo(i[0])})),this.d(this.calcFlyToParamEvent.don((...i)=>{n.calcFlyToParam(...i)})),this.d(this.calcFlyInParamEvent.don((...i)=>{n.calcFlyInParam(...i)}))}{const n=this._es3DTileset;this.d(n.tilesetReady.don(i=>{this.tilesetReady.emit(i)})),this.d(n.pickedEvent.don(i=>{i.assign({sceneObject:this}),this.pickedEvent.emit(i)}))}{const n=()=>{this.es3DTileset.show=this.show};n(),this.d(this.showChanged.don(()=>{n()}))}}get typeName(){return"ESMsTileset"}get defaultProps(){return zu.createDefaultProps()}get json(){return this._innerGetJson()}set json(t){this._innerSetJson(t)}get es3DTileset(){return this._es3DTileset}get tilesetServePort(){return this._tilesetServePort.value}get tilesetServePortChanged(){return this._tilesetServePort.changed}set tilesetServePort(t){this._tilesetServePort.value=t}async getport(){const t=await cC(this.url);if(t)return this.tilesetServePort=t,t;throw new Error("服务地址port获取失败!")}async refresh(){var i;if(!this.url||typeof this.url!="string")return;const t=(i=this.url.match(/\/ts\/info\/(.*)/))==null?void 0:i[1],n=+new Date;if(t){const o=this.tileServiceIp,s=await this.getport();this._es3DTileset.url=`${o}:${s}/tiles/tileset.json?t=${n}`}console.log("3dtileset url:",this._es3DTileset.url)}get baseUrl(){var t;if(this.url&&typeof this.url=="string"){const n=(t=this.url.match(/^(https?:\/\/[^\/]+)/))==null?void 0:t[1];if(!n)throw new Error("服务地址不合法,baseUrl is not found! 示例: http://localhost:9009/ts/info/ms01");return n}else throw new Error("服务地址不合法,baseUrl is not found! 示例: http://localhost:9009/ts/info/ms01")}get tileServiceIp(){var t;if(this.url&&typeof this.url=="string"){const n=(t=this.url.match(/^(https?:\/\/[^:]+)/))==null?void 0:t[1];if(!n)throw new Error("服务地址不合法,ip is not found! 示例: http://localhost:9009/ts/info/ms01");return n}else throw new Error("服务地址不合法,ip is not found! 示例: http://localhost:9009/ts/info/ms01")}get tileServiceName(){var t;if(this.url&&typeof this.url=="string"){const n=(t=this.url.match(/\/ts\/info\/(.*)/))==null?void 0:t[1];if(!n)throw console.log(this.url),new Error("服务地址不合法,tileServiceName is not found! 示例: http://localhost:9009/ts/info/ms01,");return n}else throw new Error("服务地址不合法,tileServiceName is not found! 示例: http://localhost:9009/ts/info/ms01")}getProperties(t){return[...super.getProperties(t)]}};D(zu,"type",zu.register("ESMsTileset",zu,{chsName:"Modelser实时3DTileset图层",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"实时3DTileset图层"})),D(zu,"defaults",{...Yt.defaults,layerConfig:{}});let cu=zu;(r=>{r.createDefaultProps=()=>({...Yt.createDefaultProps()})})(cu||(cu={})),M.extendClassProps(cu.prototype,cu.createDefaultProps);const qy={defaultValue:[{type:"2",widget:"WidgetBlueprint'/ESFoliage/PoiSheng.PoiSheng'",povit:[.5,1],worldScale:.1,hiddenDistance:40},{type:"3",widget:"WidgetBlueprint'/ESFoliage/PoiShi.PoiShi'",povit:[.5,1],worldScale:.1,hiddenDistance:40},{type:"4",widget:"WidgetBlueprint'/ESFoliage/PoiShi.PoiShi'",povit:[.5,1],worldScale:.1,hiddenDistance:40},{type:"5",widget:"WidgetBlueprint'/ESFoliage/PoiXiang.PoiXiang'",povit:[.5,1],worldScale:.1,hiddenDistance:40},{type:"6",widget:"WidgetBlueprint'/ESFoliage/PoiCun.PoiCun'",povit:[.5,1],worldScale:.1,hiddenDistance:40}],sampleValue:`
636
+ `;function Wy(r){try{return JSON.parse(r),!0}catch{return!1}}const iC="${earthsdk3-assets-script-dir}/assets/misc/2.geojson",ye=class ye extends Be{constructor(t){super(t);D(this,"_flyToFeatureEvent",this.dv(new M.Event));D(this,"_flyToFeatureIndexEvent",this.dv(new M.Event));D(this,"_features",this.disposeVar(M.reactJsonWithUndefined(void 0)));D(this,"pickedInfoType","FeatureCollection");this.ad(this.urlChanged.don(async()=>{var n;if(!this.url){this.features=void 0;return}do{if(typeof this.url=="object"){this.features=this.url;break}if(Wy(this.url)){this.features=JSON.parse(this.url);break}await fetch(we.context.getStrFromEnv(this.url)).then(i=>i.json()).then(i=>{this.features=i}).catch(i=>{console.warn("ESEntityCluster数据加载失败",i)})}while(!1);this.pickedInfoType=((n=this.features)==null?void 0:n.type)??"FeatureCollection"})),this.ad(this.editingChanged.don(()=>{console.warn("ESGeoJson暂不支持编辑!")}))}get typeName(){return"ESGeoJson"}get defaultProps(){return ye.createDefaultProps()}get flyToFeatureEvent(){return this._flyToFeatureEvent}flyToFeature(t,n,i){this._flyToFeatureEvent.emit(t,n,i)}get flyToFeatureIndexEvent(){return this._flyToFeatureIndexEvent}flyToFeatureIndex(t,n){this._flyToFeatureIndexEvent.emit(t,n)}get features(){return this._features.value}set features(t){this._features.value=t}get featuresChanged(){return this._features.changed}getFeatures(){if(this.features)return this.features;console.log("数据未加载完成,请稍后调用此方法getFeatures()")}getESProperties(){return{defaultMenu:"style",basic:[],general:[new de("名称","name",!0,!1,[this,"name"]),new de("唯一标识","id",!1,!0,[this,"id"]),new $("是否显示","show",!1,!1,[this,"show"],!0),new $("开启碰撞","collision",!1,!1,[this,"collision"],!1),new $("允许拾取","allowPicking",!1,!1,[this,"allowPicking"],!1),new Se("保存观察视角","保存当前视角",[],()=>this.calcFlyInParam(),[])],dataSource:[new ne("服务地址","服务地址",!0,!1,[this,"url"],ye.defaults.url),new q("要素最小可视距离","要素最小可视距离",!1,!1,[this,"minFeatureVisibleDistance"],ye.defaults.minFeatureVisibleDistance),new q("要素最大可视距离","要素最大可视距离",!1,!1,[this,"maxFeatureVisibleDistance"],ye.defaults.maxFeatureVisibleDistance),new ce("高度参考","高度参考",!1,!1,[this,"heightReference"],ye.defaults.heightReferences)],location:[],coordinate:[],style:[new ee("点文字样式","点样式集合",[]),new $("是否显示","是否显示",!1,!1,[this,"textShow"],ye.defaults.textShow),new lt("锚点","锚点",!1,!1,[this,"textAnchor"],ye.defaults.textAnchor),new de("标注显示属性","要用于显示的文本属性",!1,!1,[this,"textProperty"],ye.defaults.textProperty),new de("默认文本","默认统一显示的文本",!1,!1,[this,"textDefaultText"],ye.defaults.textDefaultText),new pe("文本颜色","文本颜色",!1,!1,[this,"textColor"],ye.defaults.textColor),new pe("背景颜色","背景颜色",!0,!1,[this,"textBackgroundColor"],ye.defaults.textBackgroundColor),new de("字体样式","字体样式",!1,!1,[this,"textFontStyle"],ye.defaults.textFontStyle),new de("字体粗细","字体粗细",!1,!1,[this,"textFontWeight"],ye.defaults.textFontWeight),new q("字体大小","字体大小",!1,!1,[this,"textFontSize"],ye.defaults.textFontSize),new lt("像素偏移","像素偏移",!1,!1,[this,"textOffset"],ye.defaults.textOffset),new ee("点图片样式","图片样式集合",[]),new $("是否显示","是否显示",!1,!1,[this,"imageShow"],ye.defaults.imageShow),new lt("锚点","锚点",!1,!1,[this,"imageAnchor"],ye.defaults.imageAnchor),new ne("图片地址","图片地址",!1,!1,[this,"imageUrl"],ye.defaults.imageUrl),new lt("图片大小","图片大小",!1,!1,[this,"imageSize"],ye.defaults.imageSize),new lt("像素偏移","像素偏移",!1,!1,[this,"imageOffset"],ye.defaults.imageOffset),new ee("线样式","线样式集合",[]),new $("是否显示","是否显示",!1,!1,[this,"stroked"],ye.defaults.stroked),new $("贴地","贴地(线)",!1,!1,[this,"strokeGround"],ye.defaults.strokeGround),new q("线宽","线宽",!1,!1,[this,"strokeWidth"],ye.defaults.strokeWidth),new ce("线宽类型","线宽类型",!1,!1,[this,"strokeWidthType"],ye.defaults.strokeWidthTypes),new pe("线颜色","线颜色",!1,!1,[this,"strokeColor"],ye.defaults.strokeColor),new de("线材质","线材质",!1,!1,[this,"strokeMaterial"],ye.defaults.strokeMaterial),new ne("线材质参数","线材质参数",!1,!1,[this,"strokeMaterialParams"],ye.defaults.strokeMaterialParams),new ee("面样式","面样式集合",[]),new $("是否显示","是否显示",!1,!1,[this,"filled"],ye.defaults.filled),new $("贴地","贴地(面)",!1,!1,[this,"fillGround"],ye.defaults.fillGround),new pe("填充颜色","填充颜色",!1,!1,[this,"fillColor"],ye.defaults.fillColor),new de("填充材质","填充材质",!1,!1,[this,"fillMaterial"],ye.defaults.fillMaterial),new ne("填充材质参数","填充材质参数",!1,!1,[this,"fillMaterialParams"],ye.defaults.fillMaterialParams)]}}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new $("是否显示","A boolean Property specifying the visibility .",!1,!1,[this,"show"],ye.defaults.show),new $("允许拾取","是否允许拾取",!1,!1,[this,"allowPicking"],ye.defaults.allowPicking),new Se("飞入","飞入",["number"],n=>this.flyTo(n),[1]),new Se("清空飞入参数","清空飞入参数",[],()=>this.emptyFlyInParam(),[]),new Se("保存飞入参数","保存飞入参数flyInParam",[],()=>this.calcFlyInParam(),[]),new ne("flyInParam","flyInParam",!0,!1,[this,"flyInParam"],ye.defaults.flyInParam)]),new ee("标注文本样式","标注文本样式",[new $("是否显示","是否显示",!1,!1,[this,"textShow"],ye.defaults.textShow),new de("标注显示属性","要用于显示的文本属性",!1,!1,[this,"textProperty"],ye.defaults.textProperty),new de("默认文本","默认统一显示的文本",!1,!1,[this,"textDefaultText"],ye.defaults.textDefaultText),new pe("文本颜色","文本颜色",!1,!1,[this,"textColor"],ye.defaults.textColor),new pe("背景颜色","背景颜色",!0,!1,[this,"textBackgroundColor"],ye.defaults.textBackgroundColor),new de("字体","字体",!1,!1,[this,"textFontFamily"],ye.defaults.textFontFamily),new de("字体样式","字体样式",!1,!1,[this,"textFontStyle"],ye.defaults.textFontStyle),new de("字体粗细","字体粗细",!1,!1,[this,"textFontWeight"],ye.defaults.textFontWeight),new q("字体大小","字体大小",!1,!1,[this,"textFontSize"],ye.defaults.textFontSize),new lt("锚点","锚点",!1,!1,[this,"textAnchor"],ye.defaults.textAnchor),new lt("像素偏移","像素偏移",!1,!1,[this,"textOffset"],ye.defaults.textOffset)]),new ee("标注图标样式","标注图标样式",[new $("是否显示","是否显示",!1,!1,[this,"imageShow"],ye.defaults.imageShow),new ne("图片地址","图片地址",!1,!1,[this,"imageUrl"],ye.defaults.imageUrl),new lt("图片大小","图片大小",!1,!1,[this,"imageSize"],ye.defaults.imageSize),new lt("锚点","锚点",!1,!1,[this,"imageAnchor"],ye.defaults.imageAnchor),new lt("像素偏移","像素偏移",!1,!1,[this,"imageOffset"],ye.defaults.imageOffset)]),new ee("线样式","线样式",[new $("是否显示","是否显示",!1,!1,[this,"stroked"],ye.defaults.stroked),new q("线宽","线宽",!1,!1,[this,"strokeWidth"],ye.defaults.strokeWidth),new ce("线宽类型","线宽类型",!1,!1,[this,"strokeWidthType"],ye.defaults.strokeWidthTypes),new pe("线颜色","线颜色",!1,!1,[this,"strokeColor"],ye.defaults.strokeColor),new de("线材质","线材质",!1,!1,[this,"strokeMaterial"],ye.defaults.strokeMaterial),new ne("线材质参数","线材质参数",!1,!1,[this,"strokeMaterialParams"],ye.defaults.strokeMaterialParams),new $("贴地(线)","贴地(线)",!1,!1,[this,"strokeGround"],ye.defaults.strokeGround)]),new ee("填充样式","填充样式",[new $("是否显示","是否显示",!1,!1,[this,"filled"],ye.defaults.filled),new pe("填充颜色","填充颜色",!1,!1,[this,"fillColor"],ye.defaults.fillColor),new de("填充材质","填充材质",!1,!1,[this,"fillMaterial"],ye.defaults.fillMaterial),new ne("填充材质参数","填充材质参数",!1,!1,[this,"fillMaterialParams"],ye.defaults.fillMaterialParams),new $("贴地(面)","贴地(面)",!1,!1,[this,"fillGround"],ye.defaults.fillGround)]),new ee("通用","通用",[new ne("服务地址","服务地址",!0,!1,[this,"url"],ye.defaults.url),new Vi("loadFnStr","loadFnStr",!0,!1,[this,"loadFuncStr"],ye.defaults.defaultLoadFuncStr,ye.defaults.defaultLoadFuncDocStr),new q("要素最小可视距离","要素最小可视距离",!1,!1,[this,"minFeatureVisibleDistance"],ye.defaults.minFeatureVisibleDistance),new q("要素最大可视距离","要素最大可视距离",!1,!1,[this,"maxFeatureVisibleDistance"],ye.defaults.maxFeatureVisibleDistance),new ce("高度参考","高度参考",!1,!1,[this,"heightReference"],ye.defaults.heightReferences)])]}get strokeWidth(){return this.strokeStyle.width}set strokeWidth(t){this.strokeStyle={...this.strokeStyle,width:t}}get strokeWidthChanged(){return this.strokeStyleChanged}get strokeWidthType(){return this.strokeStyle.widthType}set strokeWidthType(t){this.strokeStyle={...this.strokeStyle,widthType:t}}get strokeWidthTypeChanged(){return this.strokeStyleChanged}get strokeColor(){return this.strokeStyle.color}set strokeColor(t){this.strokeStyle={...this.strokeStyle,color:[...t]}}get strokeColorChanged(){return this.strokeStyleChanged}get strokeMaterial(){return this.strokeStyle.material}set strokeMaterial(t){this.strokeStyle={...this.strokeStyle,material:t}}get strokeMaterialChanged(){return this.strokeStyleChanged}get strokeMaterialParams(){return this.strokeStyle.materialParams}set strokeMaterialParams(t){this.strokeStyle={...this.strokeStyle,materialParams:t}}get strokeMaterialParamsChanged(){return this.strokeStyleChanged}get strokeGround(){return this.strokeStyle.ground}set strokeGround(t){this.strokeStyle={...this.strokeStyle,ground:t}}get strokeGroundChanged(){return this.strokeStyleChanged}get fillColor(){return this.fillStyle.color}set fillColor(t){this.fillStyle={...this.fillStyle,color:[...t]}}get fillColorChanged(){return this.fillStyleChanged}get fillMaterial(){return this.fillStyle.material}set fillMaterial(t){this.fillStyle={...this.fillStyle,material:t}}get fillMaterialChanged(){return this.fillStyleChanged}get fillMaterialParams(){return this.fillStyle.materialParams}set fillMaterialParams(t){this.fillStyle={...this.fillStyle,materialParams:t}}get fillMaterialParamsChanged(){return this.fillStyleChanged}get fillGround(){return this.fillStyle.ground}set fillGround(t){this.fillStyle={...this.fillStyle,ground:t}}get fillGroundChanged(){return this.fillStyleChanged}get textProperty(){return this.textStyle.textProperty}set textProperty(t){this.textStyle={...this.textStyle,textProperty:t}}get textPropertyChanged(){return this.textStyleChanged}get textDefaultText(){return this.textStyle.defaultText}set textDefaultText(t){this.textStyle={...this.textStyle,defaultText:t}}get textDefaultTextChanged(){return this.textStyleChanged}get textColor(){return this.textStyle.color}set textColor(t){this.textStyle={...this.textStyle,color:t}}get textColorChanged(){return this.textStyleChanged}get textBackgroundColor(){return this.textStyle.backgroundColor}set textBackgroundColor(t){this.textStyle={...this.textStyle,backgroundColor:t}}get textBackgroundColorChanged(){return this.textStyleChanged}get textFontFamily(){return this.textStyle.fontFamily}set textFontFamily(t){this.textStyle={...this.textStyle,fontFamily:t}}get textFontFamilyChanged(){return this.textStyleChanged}get textFontStyle(){return this.textStyle.fontStyle}set textFontStyle(t){this.textStyle={...this.textStyle,fontStyle:t}}get textFontStyleChanged(){return this.textStyleChanged}get textFontWeight(){return this.textStyle.fontWeight}set textFontWeight(t){this.textStyle={...this.textStyle,fontWeight:t}}get textFontWeightChanged(){return this.textStyleChanged}get textFontSize(){return this.textStyle.fontSize}set textFontSize(t){this.textStyle={...this.textStyle,fontSize:t}}get textFontSizeChanged(){return this.textStyleChanged}get textAnchor(){return this.textStyle.anchor}set textAnchor(t){this.textStyle={...this.textStyle,anchor:t}}get textAnchorChanged(){return this.textStyleChanged}get textOffset(){return this.textStyle.offset}set textOffset(t){this.textStyle={...this.textStyle,offset:t}}get textOffsetChanged(){return this.textStyleChanged}get imageUrl(){return this.imageStyle.url}set imageUrl(t){this.imageStyle={...this.imageStyle,url:t}}get imageUrlChanged(){return this.imageStyleChanged}get imageSize(){return this.imageStyle.size}set imageSize(t){this.imageStyle={...this.imageStyle,size:t}}get imageSizeChanged(){return this.imageStyleChanged}get imageAnchor(){return this.imageStyle.anchor}set imageAnchor(t){this.imageStyle={...this.imageStyle,anchor:t}}get imageAnchorChanged(){return this.imageStyleChanged}get imageOffset(){return this.imageStyle.offset}set imageOffset(t){this.imageStyle={...this.imageStyle,offset:t}}get imageOffsetChanged(){return this.imageStyleChanged}};D(ye,"type",ye.register("ESGeoJson",ye,{chsName:"ESGeoJson",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"GeoJson数据加载"})),D(ye,"defaults",{...Be.defaults,show:!0,allowPicking:!0,url:iC,defaultLoadFuncStr:Uy,defaultLoadFuncDocStr:nC,data:tC,dataMd:rC,stroked:!0,strokeWidth:1,strokeWidthType:"world",strokeColor:[.79,.91,.06,1],strokeMaterial:"",strokeMaterialParams:{},strokeGround:!1,filled:!0,fillColor:[.79,.91,.06,.2],fillMaterial:"",fillMaterialParams:{},fillGround:!1,imageShow:!0,imageUrl:"${earthsdk3-assets-script-dir}/assets/img/location.png",imageSize:[32,32],imageAnchor:[.5,1],imageOffset:[0,0],textShow:!0,textProperty:"",textDefaultText:"默认标注",textColor:[1,1,1,1],textBackgroundColor:void 0,textFontFamily:"Arial",textFontStyle:"normal",textFontSize:16,textFontWeight:"normal",textAnchor:[0,1],textOffset:[-16,8],strokeWidthTypes:[["screen","screen"],["world","world"]],flyInParam:{position:[0,0,0],rotation:[0,0,0],flyDuration:1},minFeatureVisibleDistance:0,maxFeatureVisibleDistance:0,heightReferences:[["NONE","NONE"],["CLAMP_TO_GROUND","CLAMP_TO_GROUND"],["RELATIVE_TO_GROUND","RELATIVE_TO_GROUND"]]});let za=ye;(r=>{r.createDefaultProps=()=>({...Be.createDefaultProps(),show:!0,allowPicking:!0,loadFuncStr:void 0,url:void 0,stroked:!0,strokeStyle:M.reactJson({width:1,widthType:"world",color:[.79,.91,.06,1],material:"",materialParams:{},ground:!1}),filled:!0,fillStyle:M.reactJson({color:[.79,.91,.06,.2],material:"",materialParams:{},ground:!1}),imageShow:!0,imageStyle:M.reactJson({url:"${earthsdk3-assets-script-dir}/assets/img/location.png",size:[32,32],anchor:[.5,1],offset:[0,0]}),textShow:!0,textStyle:M.reactJson({textProperty:"",defaultText:"默认标注",color:[1,1,1,1],backgroundColor:void 0,fontFamily:"Arial",fontSize:16,fontStyle:"normal",fontWeight:"normal",anchor:[0,1],offset:[16,-8]}),minFeatureVisibleDistance:0,maxFeatureVisibleDistance:0,flyInParam:M.reactJsonWithUndefined(void 0),heightReference:"NONE"})})(za||(za={})),M.extendClassProps(za.prototype,za.createDefaultProps);const Lo=class Lo extends Ae{constructor(t){super(t);D(this,"editingBindMode","doublePoints");D(this,"_height",this.disposeVar(M.react(0)));{const n=()=>{this.height=this.points&&this.points.length>=2?this.points[1][2]-this.points[0][2]:0};n(),this.ad(this.pointsChanged.don(n))}this.stroked=!0,this.strokeStyle.width=2}get typeName(){return"ESHeightMeasurement"}get defaultProps(){return Lo.createDefaultProps()}get height(){return this._height.value}set height(t){this._height.value=t}get heightChanged(){return this._height.changed}getProperties(t){return[...super.getProperties(t)]}};D(Lo,"type",Lo.register("ESHeightMeasurement",Lo,{chsName:"高度测量",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"高度测量"})),D(Lo,"supportEditingModes",[...Ae.supportEditingModes,xe.DoublePointsAppend,xe.DoublePointsModify]),D(Lo,"defaults",{...Ae.defaults});let Ua=Lo;(r=>{r.createDefaultProps=()=>({...Ae.createDefaultProps()})})(Ua||(Ua={})),M.extendClassProps(Ua.prototype,Ua.createDefaultProps);const Ru=class Ru extends Kr{constructor(t){super(t);D(this,"_area",this.dv(M.react(0)));D(this,"_perimeter",this.dv(M.react(0)));D(this,"editingBindMode","doublePoints");this.radius=1,this.filled=!0,this.stroked=!1,this.collision=!1,this.strokeColor=[1,1,1,1],this.fillColor=[1,1,1,.5];const n=()=>{this._area.value=Math.PI*this.radius*this.radius,this._perimeter.value=2*Math.PI*this.radius};n(),this.d(this.radiusChanged.don(n))}get typeName(){return"ESLocalCircle"}get defaultProps(){return{...Ru.createDefaultProps()}}get area(){return this._area.value}get areaChanged(){return this._area.changed}get perimeter(){return this._perimeter.value}get perimeterChanged(){return this._perimeter.changed}toPolygon(t=10,n){return vv([...this.position],this.radius,t,n)[0].map(o=>[...o,this.position?this.position[2]:0])}getESProperties(){const t={...super.getESProperties()};return{...t,defaultMenu:"style",basic:[...t.basic,new q("圆半径","圆半径",!0,!1,[this,"radius"],1)],general:[...t.general],dataSource:[...t.dataSource],location:[],coordinate:[new $("是否编辑","是否编辑",!1,!1,[this,"editing"]),new q("面积","面积",!1,!0,[this,"area"]),new q("周长","周长",!1,!0,[this,"perimeter"]),new hi("三维坐标","三维坐标",!0,!1,[this,"position"],[0,0,0])],style:[...t.style]}}getProperties(t){return[...super.getProperties(t),new ee("ESLocalCircle","ESLocalCircle",[new q("圆半径","圆半径",!1,!1,[this,"radius"]),new q("面积","面积",!1,!0,[this,"area"]),new q("周长","周长",!1,!0,[this,"perimeter"])])]}};D(Ru,"type",Ru.register("ESLocalCircle",Ru,{chsName:"局部坐标圆形",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESLocalCircle"})),D(Ru,"defaults",{...Kr.defaults,fillStyle:{color:[1,1,1,.5],material:"",materialParams:{}}});let Wa=Ru;(r=>{r.createDefaultProps=()=>({...Kr.createDefaultProps(),radius:1})})(Wa||(Wa={})),M.extendClassProps(Wa.prototype,Wa.createDefaultProps);const Lu=class Lu extends Kr{get typeName(){return"ESLocalPolygon"}get defaultProps(){return{...Lu.createDefaultProps()}}constructor(e){super(e),this.filled=!0}getESProperties(){const e={...super.getESProperties()};return{...e,coordinate:[...e.coordinate,new ip("坐标","偏移量[x,y],单位米,不含高度",!1,!1,[this,"points"],[])]}}getProperties(e){return[...super.getProperties(e),new ee("ESLocalPolygon","ESLocalPolygon",[new ne("位置偏移数组","偏移量[x,y],单位米,不含高度",!1,!1,[this,"points"])])]}};D(Lu,"type",Lu.register("ESLocalPolygon",Lu,{chsName:"局部2D坐标多边形",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESLocalPolygon"})),D(Lu,"defaults",{...Kr.defaults,points:[],filled:!0});let us=Lu;(r=>{r.createDefaultProps=()=>({...Kr.createDefaultProps(),points:yf(void 0)})})(us||(us={})),M.extendClassProps(us.prototype,us.createDefaultProps);const zl=class zl extends Di{get typeName(){return"ESLocalPolygonZ"}get defaultProps(){return{...zl.createDefaultProps()}}constructor(e){super(e),this.filled=!0}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new gf("本地位置数组","本地位置数组",!0,!1,[this,"points"])])]}};D(zl,"type",zl.register("ESLocalPolygonZ",zl,{chsName:"局部坐标多边形",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESLocalPolygonZ"}));let qa=zl;(r=>{r.createDefaultProps=()=>({...Di.createDefaultProps(),points:M.reactPositions(void 0)})})(qa||(qa={})),M.extendClassProps(qa.prototype,qa.createDefaultProps);const Fu=class Fu extends Kr{get typeName(){return"ESLocalRectangle"}get defaultProps(){return{...Fu.createDefaultProps()}}constructor(e){super(e),this.filled=!0}getProperties(e){return[...super.getProperties(e),new ee("ESLocalRectangle","ESLocalRectangle",[new q("宽度","宽度",!1,!1,[this,"width"]),new q("高度","高度",!1,!1,[this,"height"])])]}};D(Fu,"type",Fu.register("ESLocalRectangle",Fu,{chsName:"局部坐标四边形",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESLocalRectangle"})),D(Fu,"defaults",{...Kr.defaults,width:5e5,height:3e5});let Ha=Fu;(r=>{r.createDefaultProps=()=>({...Kr.createDefaultProps(),width:5e5,height:3e5})})(Ha||(Ha={})),M.extendClassProps(Ha.prototype,Ha.createDefaultProps);const gs=class gs extends Ae{constructor(t){super(t);D(this,"editingBindMode","lineString");D(this,"_distance",this.dv(M.react(0)));D(this,"_deprecated",[{materialMode:{blue:"multipleArrows",purple:"singleArrow"}},"show"]);D(this,"_deprecatedWarningFunc",(()=>{this._deprecatedWarning()})());this.fillColor=[1,0,.73,1];const n=()=>{if(this.points&&this.points.length>=2){const i=Bc(this.points,"GEODESIC"),o=i[i.length-1];this._distance.value=o}else this._distance.value=0};n(),this.d(this.pointsChanged.don(n))}get typeName(){return"ESPipeFence"}get defaultProps(){return gs.createDefaultProps()}get distance(){return this._distance.value}get distanceChanged(){return this._distance.changed}getESProperties(){const t={...super.getESProperties()};return{...t,defaultMenu:"basic",basic:[...t.basic,new q("高度","height",!1,!1,[this,"height"],10),new q("宽度","width",!1,!1,[this,"width"],10),new ce("模式","materialMode",!1,!1,[this,"materialMode"],gs.defaults.materialModes,"purple")],coordinate:[...t.coordinate,new q("长度","距离",!1,!0,[this,"distance"])]}}getProperties(t){return[...super.getProperties(t),new ee("ESPipeFence","ESPipeFence",[new q("高度","height",!1,!1,[this,"height"]),new q("宽度","width",!1,!1,[this,"width"]),new ce("materialMode","materialMode",!1,!1,[this,"materialMode"],gs.defaults.materialModes)])]}};D(gs,"type",gs.register("ESPipeFence",gs,{chsName:"管道电子围栏",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"管道电子围栏"})),D(gs,"supportEditingModes",[...Ae.supportEditingModes,xe.LineStringAppend,xe.LineStringInsert]),D(gs,"defaults",{...Ae.defaults,strokeStyle:{width:1,widthType:"screen",color:[1,1,1,1],material:"",materialParams:{}},fillStyle:{color:[1,1,1,1],material:"",materialParams:{}},filled:!0,stroked:!0,materialModes:[["单箭头","singleArrow"],["多箭头","multipleArrows"]]});let Xa=gs;(r=>{r.createDefaultProps=()=>({...Ae.createDefaultProps(),height:10,width:10,materialMode:"singleArrow",filled:!0})})(Xa||(Xa={})),M.extendClassProps(Xa.prototype,Xa.createDefaultProps);const Fo=class Fo extends Yt{constructor(t){super(t);D(this,"_setLayerVisibleEvent",this.dv(new M.Event));D(this,"_setLayerColorEvent",this.dv(new M.Event))}get typeName(){return"ESPipeserTileset"}get defaultProps(){return Fo.createDefaultProps()}get setLayerVisibleEvent(){return this._setLayerVisibleEvent}setLayerVisible(t,n){this._setLayerVisibleEvent.emit(t,n)}get setLayerColorEvent(){return this._setLayerColorEvent}setLayerColor(t,n){this._setLayerColorEvent.emit(t,n)}getProperties(t){return[...super.getProperties(t),new ee("ESPipeserTileset","ESPipeserTileset",[new Se("setLayerVisible","setLayerVisible",["string","string"],(n,i)=>this.setLayerVisible(n,i),["",""]),new Se("setLayerColor","setLayerColor",["string","string"],(n,i)=>this.setLayerColor(n,i),["",""]),new ce("colorMode","colorMode",!0,!1,[this,"colorMode"],Fo.description.colorMode,"default")])]}};D(Fo,"type",Fo.register("ESPipeserTileset",Fo,{chsName:"PipeSer图层",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"PipeSer图层"})),D(Fo,"description",{colorMode:[["default","default"],["color","color"],["blend","blend"]]});let Ya=Fo;(r=>{r.createDefaultProps=()=>({colorMode:"default",...Yt.createDefaultProps()})})(Ya||(Ya={})),M.extendClassProps(Ya.prototype,Ya.createDefaultProps);const vs=class vs extends Ae{constructor(t){super(t);D(this,"editingBindMode","circular");this.filled=!0,this.collision=!1}get typeName(){return"ESPolygonFence"}get defaultProps(){return vs.createDefaultProps()}getESProperties(){const t={...super.getESProperties()};return{...t,defaultMenu:"basic",coordinate:[...t.coordinate,new q("面积","面积",!1,!0,[this,"area"]),new q("周长","周长",!1,!0,[this,"perimeter"])],basic:[...t.basic,new q("高度","height",!1,!1,[this,"height"],10),new ce("模式","materialMode",!1,!1,[this,"materialMode"],vs.defaults.materialModes,"danger")]}}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new q("高度","height",!1,!1,[this,"height"]),new ce("materialMode","materialMode",!1,!1,[this,"materialMode"],vs.defaults.materialModes)]),new ee("计算","计算",[new q("面积","面积",!1,!0,[this,"area"]),new q("周长","周长",!1,!0,[this,"perimeter"])])]}};D(vs,"type",vs.register("ESPolygonFence",vs,{chsName:"多边形电子围栏",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"多边形电子围栏"})),D(vs,"supportEditingModes",[...Ae.supportEditingModes,xe.CircularAppend,xe.CircularInsert,xe.HeightModify]),D(vs,"defaults",{...Ae.defaults,fillStyle:{color:[1,1,1,1],material:"",materialParams:{}},filled:!0,materialModes:[["模式一","danger"],["模式二","checkerboard"],["模式三","warning"],["模式四","cord"],["模式五","scanline"],["模式六","honeycomb"],["模式七","gradientColor"]]});let Ja=vs;(r=>{r.createDefaultProps=()=>({height:10,materialMode:"danger",...Ae.createDefaultProps()})})(Ja||(Ja={})),M.extendClassProps(Ja.prototype,Ja.createDefaultProps);const qs=class qs extends Ae{constructor(t){super(t);D(this,"_deprecated",["ground"]);D(this,"_deprecatedWarningFunc",(()=>{this._deprecatedWarning()})());D(this,"editingBindMode","doublePoints")}get typeName(){return"ESRectangle"}get defaultProps(){return qs.createDefaultProps()}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new $("是否贴地","A boolean Property specifying the visibility.",!1,!1,[this,"ground"]),new $("轮廓线半透明","轮廓线半透明.",!1,!1,[this,"outlineTranslucent"]),new q("高度","高度",!1,!1,[this,"height"]),new q("拉伸高度","拉伸高度",!1,!1,[this,"extrudedHeight"]),new kr("范围","西南东北",!0,!1,[this,"rectangle"],qs.defaults.rectangle),new q("纹理旋转角度","纹理旋转角度.",!1,!1,[this,"stRotation"]),new q("旋转角度","rotation",!1,!1,[this,"rotation"]),new $("是否单点编辑","是否单点编辑.",!1,!1,[this,"pointEditing"])])]}};D(qs,"type",qs.register("ESRectangle",qs,{chsName:"矩形",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"矩形"})),D(qs,"supportEditingModes",[...Ae.supportEditingModes,xe.DoublePointsAppend,xe.DoublePointsModify]),D(qs,"defaults",{...Ae.defaults,ground:!1,outlineTranslucent:!0,height:0,extrudedHeight:0,rectangle:void 0,stRotation:0,rotation:0,pointEditing:!1,allowPicking:!1});let Ka=qs;(r=>{r.createDefaultProps=()=>({...Ae.createDefaultProps(),ground:!1,outlineTranslucent:!0,height:0,extrudedHeight:0,rectangle:M.reactArrayWithUndefined(void 0),rotation:0,stRotation:0,pointEditing:!1,filled:!0})})(Ka||(Ka={})),M.extendClassProps(Ka.prototype,Ka.createDefaultProps);const ju=class ju extends Ue{get typeName(){return"ESPolygonWithHole"}get defaultProps(){return ju.createDefaultProps()}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new ne("裁切多边形数组","必须在内部,且没有相交,裁切的多边形数组",!0,!1,[this,"innerRings"],[])]}}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new ne("裁切多边形数组","必须在内部,且没有相交,裁切的多边形数组",!0,!1,[this,"innerRings"],[])])]}};D(ju,"type",ju.register("ESPolygonWithHole",ju,{chsName:"内部裁切多边形",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"带洞多边形"})),D(ju,"defaults",{...Ue.defaults,innerRings:[]});let Qa=ju;(r=>{r.createDefaultProps=()=>({...Ue.createDefaultProps(),innerRings:M.reactPositionsSet(void 0)})})(Qa||(Qa={})),M.extendClassProps(Qa.prototype,Qa.createDefaultProps);const Hs=class Hs extends Ue{constructor(t){super(t);D(this,"_startEvent",this.disposeVar(new M.Event));D(this,"_surfaceArea",this.disposeVar(M.react(0)));this.fillStyle.ground=!0}get typeName(){return"ESSurfaceAreaMeasurement"}get defaultProps(){return Hs.createDefaultProps()}get startEvent(){return this._startEvent}start(){this._startEvent.emit()}get surfaceArea(){return this._surfaceArea.value}set surfaceArea(t){this._surfaceArea.value=t}get surfaceChanged(){return this._surfaceArea.changed}getProperties(t){return[...super.getProperties(t),new ee("ESSurfaceAreaMeasurement","表面积测量",[new Se("开始计算","开始计算",[],()=>this.start(),[]),new q("插值距离","插值距离,单位米,为0时不插值",!1,!1,[this,"interpolation"],Hs.defaults.interpolation),new q("偏移高度","三角面整体偏移高度,单位米",!1,!1,[this,"offsetHeight"],Hs.defaults.offsetHeight)])]}};D(Hs,"type",Hs.register("ESSurfaceAreaMeasurement",Hs,{chsName:"表面积测量",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"表面积测量"})),D(Hs,"defaults",{...Ue.defaults,interpolation:.5,offsetHeight:0});let $a=Hs;(r=>{r.createDefaultProps=()=>({...Ue.createDefaultProps(),interpolation:void 0,offsetHeight:void 0})})($a||($a={})),M.extendClassProps($a.prototype,$a.createDefaultProps);const Xs=class Xs extends le{get typeName(){return"ESDatasmithRuntimeModel"}get defaultProps(){return Xs.createDefaultProps()}constructor(e){super(e)}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new q("下载进度","下载进度",!0,!0,[this,"downloadProgress"]),new ne("importOptions","导入参数",!0,!1,[this,"importOptions"],Xs.defaults.importOptions)],dataSource:[...e.dataSource,new ne("路径","url",!1,!1,[this,"url"])]}}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new ne("url","url",!1,!1,[this,"url"]),new q("下载进度","下载进度",!0,!0,[this,"downloadProgress"]),new ne("importOptions","导入参数",!0,!1,[this,"importOptions"],Xs.defaults.importOptions)])]}};D(Xs,"type",Xs.register("ESDatasmithRuntimeModel",Xs,{chsName:"Datasmith Model",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"Datasmith Model"})),D(Xs,"defaults",{...le.defaults,url:"",importOptions:{buildCollisions:"QueryAndPhysics",buildHierarchy:"Simplified",collisionType:"CTF_UseComplexAsSimple",bImportMetaData:!0}});let Za=Xs;(r=>{r.createDefaultProps=()=>({...le.createDefaultProps(),url:"",importOptions:M.reactJsonWithUndefined(void 0),downloadProgress:0})})(Za||(Za={})),M.extendClassProps(Za.prototype,Za.createDefaultProps);const dt=class dt extends us{get typeName(){return"ESDynamicWater"}get defaultProps(){return{...dt.createDefaultProps()}}constructor(e){super(e),this.stroked=!1,this.filled=!0}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new ce("水域类型","当为 custom 时其他控制效果的参数生效,否则不生效,使用对应水域类型的预定效果",!1,!1,[this,"waterType"],dt.defaults.waterTypes,dt.defaults.waterType),new q("频率","控制波数的数值(次/千米)",!1,!1,[this,"frequency"],dt.defaults.frequency),new et("振幅","控制水波振幅的数值",!1,!1,[this,"amplitude"],.01,[0,1],dt.defaults.amplitude),new et("流向","控制水流方向,局部坐标方向",!1,!1,[this,"flowDirection"],1,[0,360],dt.defaults.flowDirection),new et("波动频率","控制水波纹扰动的速率",!1,!1,[this,"waveVelocity"],.01,[0,1],dt.defaults.waveVelocity),new et("镜面反射强度","控制镜面反射强度的数值",!1,!1,[this,"specularIntensity"],.01,[0,1],dt.defaults.specularIntensity),new et("水体浑浊度","控制水体的浑浊程度,数值越大,浑浊程度越大,取值范围 0 - 10。",!1,!1,[this,"murkiness"],.1,[0,10],dt.defaults.murkiness),new q("水流速度","控制水流速度,单位 米/秒",!1,!1,[this,"flowSpeed"],dt.defaults.flowSpeed),new pe("水的底色","waterColor",!1,!1,[this,"waterColor"],dt.defaults.waterColor),new ne("水的图片","waterImage",!1,!1,[this,"waterImage"],dt.defaults.waterImage)]}}getProperties(e){return[...super.getProperties(e),new ce("水域类型","当为 custom 时其他控制效果的参数生效,否则不生效,使用对应水域类型的预定效果",!1,!1,[this,"waterType"],dt.defaults.waterTypes),new ne("水的图片","waterImage",!1,!1,[this,"waterImage"],dt.defaults.waterImage),new pe("水的底色","waterColor",!1,!1,[this,"waterColor"],dt.defaults.waterColor),new q("频率","控制波数的数值(次/千米)",!1,!1,[this,"frequency"],dt.defaults.frequency),new et("波动频率","控制水波纹扰动的速率",!1,!1,[this,"waveVelocity"],.01,[0,1],dt.defaults.waveVelocity),new et("振幅","控制水波振幅的数值",!1,!1,[this,"amplitude"],.01,[0,1],dt.defaults.amplitude),new et("镜面反射强度","控制镜面反射强度的数值",!1,!1,[this,"specularIntensity"],.01,[0,1],dt.defaults.specularIntensity),new et("流向","控制水流方向,局部坐标方向",!1,!1,[this,"flowDirection"],1,[0,360],dt.defaults.flowDirection),new et("水体浑浊度","控制水体的浑浊程度,数值越大,浑浊程度越大,取值范围 0 - 10。",!1,!1,[this,"murkiness"],.1,[0,10],dt.defaults.murkiness),new q("水流速度","控制水流速度,单位 米/秒",!1,!1,[this,"flowSpeed"],dt.defaults.flowSpeed)]}};D(dt,"type",dt.register("ESDynamicWater",dt,{chsName:"动态水面",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"局部多边形水面"})),D(dt,"defaults",{...us.defaults,waterColor:[.1497,.165,.0031,1],frequency:1e3,waveVelocity:.5,amplitude:.1,specularIntensity:.8,waterTypes:[["river","river"],["ocean","ocean"],["lake","lake"],["custom","custom"]],waterType:"river",flowDirection:0,flowSpeed:0,waterImage:void 0,murkiness:5});let eu=dt;(r=>{r.createDefaultProps=()=>({...us.createDefaultProps(),allowPicking:!0,waterImage:M.reactJsonWithUndefined(void 0),waterColor:[.1497,.165,.0031,1],frequency:1e3,waveVelocity:.5,amplitude:.1,specularIntensity:.8,waterType:"river",flowDirection:0,flowSpeed:0,murkiness:5})})(eu||(eu={})),M.extendClassProps(eu.prototype,eu.createDefaultProps);const pt=class pt extends Ue{get typeName(){return"ESGeoWater"}get defaultProps(){return pt.createDefaultProps()}constructor(e){super(e)}getESProperties(){const e={...super.getESProperties()};return{...e,defaultMenu:"basic",basic:[...e.basic,new ce("水域类型","当为custom是其他控制效果的参数生效,否则不生效,使用对应水域类型的预定效果",!1,!1,[this,"waterType"],pt.defaults.waterTypes,pt.defaults.waterType),new q("频率","控制波数的数值(次/千米)",!1,!1,[this,"frequency"],pt.defaults.frequency),new et("振幅","控制水波振幅的数值",!1,!1,[this,"amplitude"],.01,[0,1],pt.defaults.amplitude),new et("流向","控制水流方向,局部坐标方向",!1,!1,[this,"flowDirection"],1,[0,360],pt.defaults.flowDirection),new et("波动频率","控制水波纹扰动的速率",!1,!1,[this,"waveVelocity"],.01,[0,1],pt.defaults.waveVelocity),new et("镜面反射强度","控制镜面反射强度的数值",!1,!1,[this,"specularIntensity"],.01,[0,1],pt.defaults.specularIntensity),new et("水体浑浊度","控制水体的浑浊程度,数值越大,浑浊程度越大,取值范围0 - 10。",!1,!1,[this,"murkiness"],.1,[0,10],pt.defaults.murkiness),new q("水流速度","控制水流速度,单位 米/秒",!1,!1,[this,"flowSpeed"],pt.defaults.flowSpeed),new pe("水的底色","waterColor",!1,!1,[this,"waterColor"],pt.defaults.waterColor),new ne("水的图片","waterImage",!1,!1,[this,"waterImage"],pt.defaults.waterImage)]}}getProperties(e){return[...super.getProperties(e),new ee("ESGeoWater","ESGeoWater",[new ce("水域类型","当为custom是其他控制效果的参数生效,否则不生效,使用对应水域类型的预定效果",!1,!1,[this,"waterType"],pt.defaults.waterTypes),new ne("水的图片","waterImage",!1,!1,[this,"waterImage"],pt.defaults.waterImage),new pe("水的底色","waterColor",!1,!1,[this,"waterColor"],pt.defaults.waterColor),new q("频率","控制波数的数值(次/千米)",!1,!1,[this,"frequency"],pt.defaults.frequency),new et("波动频率","控制水波纹扰动的速率",!1,!1,[this,"waveVelocity"],.01,[0,1],pt.defaults.waveVelocity),new et("振幅","控制水波振幅的数值",!1,!1,[this,"amplitude"],.01,[0,1],pt.defaults.amplitude),new et("镜面反射强度","控制镜面反射强度的数值",!1,!1,[this,"specularIntensity"],.01,[0,1],pt.defaults.specularIntensity),new et("流向","控制水流方向,局部坐标方向",!1,!1,[this,"flowDirection"],1,[0,360],pt.defaults.flowDirection),new et("水体浑浊度","控制水体的浑浊程度,数值越大,浑浊程度越大,取值范围0 - 10。",!1,!1,[this,"murkiness"],.1,[0,10],pt.defaults.murkiness),new q("水流速度","控制水流速度,单位 米/秒",!1,!1,[this,"flowSpeed"],pt.defaults.flowSpeed)])]}};D(pt,"type",pt.register("ESGeoWater",pt,{chsName:"地理水面",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"地理动态水面"})),D(pt,"defaults",{...Ue.defaults,waterColor:[.1497,.165,.0031,.8],frequency:1e3,waveVelocity:.5,amplitude:.1,specularIntensity:.8,waterTypes:[["river","river"],["ocean","ocean"],["lake","lake"],["custom","custom"]],waterType:"river",flowDirection:0,flowSpeed:0,waterImage:{},murkiness:5});let tu=pt;(r=>{r.createDefaultProps=()=>({...Ue.createDefaultProps(),allowPicking:!0,waterImage:M.reactJsonWithUndefined(void 0),waterColor:[.1497,.165,.0031,1],frequency:1e3,waveVelocity:.5,amplitude:.1,specularIntensity:.8,waterType:"river",flowDirection:0,flowSpeed:0,murkiness:5})})(tu||(tu={})),M.extendClassProps(tu.prototype,tu.createDefaultProps);const ku=class ku extends le{get typeName(){return"ESLevelRuntimeModel"}get defaultProps(){return ku.createDefaultProps()}constructor(e){super(e)}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new q("下载进度","下载进度",!0,!0,[this,"downloadProgress"]),new de("levelName","levelName",!1,!1,[this,"levelName"],""),new q("levelLoadDistance","levelLoadDistance",!1,!1,[this,"levelLoadDistance"],1e3),new Kt("levelOffset","levelOffset",!1,!1,[this,"levelOffset"],[0,0,0])],dataSource:[...e.dataSource,new ne("url","url",!1,!1,[this,"url"],"")]}}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new ne("url","url",!1,!1,[this,"url"]),new de("levelName","levelName",!1,!1,[this,"levelName"]),new q("下载进度","下载进度",!0,!0,[this,"downloadProgress"]),new q("levelLoadDistance","levelLoadDistance",!1,!1,[this,"levelLoadDistance"]),new Kt("levelOffset","levelOffset",!1,!1,[this,"levelOffset"])])]}};D(ku,"type",ku.register("ESLevelRuntimeModel",ku,{chsName:"关卡包模型",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"关卡包模型"})),D(ku,"defaults",{...le.defaults,url:""});let ru=ku;(r=>{r.createDefaultProps=()=>({...le.createDefaultProps(),url:"",downloadProgress:0,levelName:"",levelOffset:M.reactArray([0,0,0]),levelLoadDistance:1e3})})(ru||(ru={})),M.extendClassProps(ru.prototype,ru.createDefaultProps);const Sr=class Sr extends gn{constructor(t){super(t);D(this,"_deprecated",[{materialMode:{blue:"multipleArrows",purple:"singleArrow"}},"show"]);D(this,"_deprecatedWarningFunc",(()=>{this._deprecatedWarning()})());this.filled=!0,this.stroked=!1,this.fillColor=[1,0,.73,1]}get typeName(){return"ESPipeline"}get defaultProps(){return Sr.createDefaultProps()}getESProperties(){const t={...super.getESProperties()};return{...t,defaultMenu:"basic",basic:[...t.basic,new q("半径","radius(米)",!1,!1,[this,"radius"],Sr.defaults.radius),new q("圆边数","sides(圆细分边)",!1,!1,[this,"sides"],Sr.defaults.sides),new q("材质速度","speed",!1,!1,[this,"speed"],Sr.defaults.speed),new ce("材质模式","materialMode",!1,!1,[this,"materialMode"],Sr.defaults.materialModes),new ne("材质图片和重复度","materialImage",!1,!1,[this,"materialImage"],Sr.defaults.materialImage)],style:[new ee("点样式","点样式集合",[]),new $("开启","开启点样式",!1,!1,[this,"pointed"],!1),new q("点大小","点大小(pointSize)",!1,!1,[this,"pointSize"],1),new ce("点类型","点类型(pointSizeType)",!1,!1,[this,"pointSizeType"],[["screen","screen"],["world","world"]],"screen"),new pe("点颜色","点颜色(pointColor)",!1,!1,[this,"pointColor"],[1,1,1,1]),new ee("线样式","线样式集合",[]),new $("开启线样式","开启线样式",!1,!1,[this,"stroked"],!0),new q("线宽","线宽(strokeWidth)",!1,!1,[this,"strokeWidth"],1),new ce("线类型","线类型(strokeWidthType)",!1,!1,[this,"strokeWidthType"],[["screen","screen"],["world","world"]],"screen"),new pe("线颜色","线颜色(strokeColor)",!1,!1,[this,"strokeColor"],[1,1,1,1]),new $("是否贴地","是否贴地(线)",!1,!1,[this,"strokeGround"],!1),new ee("面样式","面样式集合",[]),new $("开启","开启填充样式",!1,!1,[this,"filled"],!1),new pe("填充颜色","填充颜色(fillColor)",!1,!1,[this,"fillColor"],[1,1,1,1]),new $("是否贴地","是否贴地",!1,!1,[this,"fillGround"],!1)]}}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new q("半径","radius(米)",!1,!1,[this,"radius"],Sr.defaults.radius),new q("圆边数","sides(圆细分边)",!1,!1,[this,"sides"],Sr.defaults.sides),new ne("材质图片和重复度","materialImage",!1,!1,[this,"materialImage"],Sr.defaults.materialImage),new q("材质速度","speed",!1,!1,[this,"speed"],Sr.defaults.speed),new ce("材质模式","materialMode",!1,!1,[this,"materialMode"],Sr.defaults.materialModes)])]}};D(Sr,"type",Sr.register("ESPipeline",Sr,{chsName:"管线",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"ESPipeline"})),D(Sr,"defaults",{...gn.defaults,radius:10,sides:10,materialImage:{url:"",uDis:50,vDis:10},speed:1,materialModes:[["单箭头","singleArrow"],["多箭头","multipleArrows"]]});let nu=Sr;(r=>{r.createDefaultProps=()=>({...gn.createDefaultProps(),radius:10,sides:10,materialMode:"singleArrow",materialImage:M.reactJson(r.defaults.materialImage),speed:1})})(nu||(nu={})),M.extendClassProps(nu.prototype,nu.createDefaultProps);const bn=class bn extends Ae{constructor(t){super(t);D(this,"editingBindMode","visibility")}get typeName(){return"ESVisibilityAnalysis"}get defaultProps(){return bn.createDefaultProps()}getESProperties(){const t={...super.getESProperties()};return{...t,basic:[...t.basic,new pe("可视区域颜色","可视区域颜色.",!1,!1,[this,"visibleColor"],bn.defaults.visibleColor),new pe("遮挡区域颜色","遮挡区域颜色.",!1,!1,[this,"invisibleColor"],bn.defaults.invisibleColor),new q("视点高度偏移","heightOffset",!1,!1,[this,"heightOffset"],bn.defaults.heightOffset)]}}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new pe("可视区域颜色","可视区域颜色.",!1,!1,[this,"visibleColor"],bn.defaults.visibleColor),new pe("遮挡区域颜色","遮挡区域颜色.",!1,!1,[this,"invisibleColor"],bn.defaults.invisibleColor),new q("视点高度偏移","heightOffset",!1,!1,[this,"heightOffset"],bn.defaults.heightOffset)])]}};D(bn,"type",bn.register("ESVisibilityAnalysis",bn,{chsName:"通视分析,视线分析",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"通视分析,视线分析"})),D(bn,"supportEditingModes",[...Ae.supportEditingModes,xe.VisibilityAppend,xe.VisibilityModify]),D(bn,"defaults",{...Ae.defaults,visibleColor:[0,1,0,1],invisibleColor:[1,0,0,1],heightOffset:0});let iu=bn;(r=>{r.createDefaultProps=()=>({...Ae.createDefaultProps(),visibleColor:M.reactArray([0,1,0,1]),invisibleColor:M.reactArray([1,0,0,1]),heightOffset:0})})(iu||(iu={})),M.extendClassProps(iu.prototype,iu.createDefaultProps);const Gu=class Gu extends Ue{constructor(t){super(t);D(this,"_startEvent",this.dv(new M.Event));D(this,"_clearEvent",this.dv(new M.Event));D(this,"_volume",this.disposeVar(M.react(0)));this.filled=!1,this.stroked=!0,this.strokeStyle.width=2}get typeName(){return"ESVolumeMeasurement"}get defaultProps(){return Gu.createDefaultProps()}get startEvent(){return this._startEvent}start(){this._startEvent.emit()}get clearEvent(){return this._clearEvent}clear(){this._clearEvent.emit()}get volume(){return this._volume.value}set volume(t){this._volume.value=t}get volumeChanged(){return this._volume.changed}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new q("基准面高程","基准面高程",!0,!1,[this,"planeHeight"]),new q("采样间距 m","采样间距 m",!1,!1,[this,"gridWidth"]),new q("挖方","挖方 m³",!1,!0,[this,"cutVolume"]),new q("填方","填方 m³",!1,!0,[this,"fillVolume"]),new q("挖填方","挖填方 m³",!1,!0,[this,"cutAndFillVolume"]),new q("计算进度","计算进度",!1,!0,[this,"progress"]),new Se("开始分析","开始分析",[],()=>this.start(),[]),new Se("清空分析结果","清空分析结果",[],()=>this.clear(),[]),new $("是否开启深度检测","A boolean Property specifying the visibility.",!1,!1,[this,"depthTest"])])]}};D(Gu,"type",Gu.register("ESVolumeMeasurement",Gu,{chsName:"体积测量",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"体积测量"})),D(Gu,"defaults",{...Ue.defaults});let su=Gu;(r=>{r.createDefaultProps=()=>({...Ue.createDefaultProps(),planeHeight:M.react(void 0),gridWidth:1,cutVolume:0,fillVolume:0,cutAndFillVolume:0,progress:0,depthTest:!1})})(su||(su={})),M.extendClassProps(su.prototype,su.createDefaultProps);const Ul=class Ul extends os{constructor(t){super(t);D(this,"_human",this.dv(new os(`${this.id}_ESHuman`)));D(this,"_poi",this.dv(new as(`${this.id}_ESPoi2D`)));D(this,"combinationClass",!0);this.mainClass=this._human,this.d(this.components.disposableAdd(this._human)),this.d(this.components.disposableAdd(this._poi));{const{_human:n,_poi:i}=this;this.d(M.track([n,"show"],[this,"show"])),this.d(M.track([i,"show"],[this,"show"])),this.d(M.track([n,"allowPicking"],[this,"allowPicking"])),this.d(M.track([i,"allowPicking"],[this,"allowPicking"])),this.d(M.bind([n,"scale"],[this,"scale"])),this.d(M.bind([i,"scale"],[this,"scale"])),this.d(M.track([n,"collision"],[this,"collision"])),this.d(M.track([i,"collision"],[this,"collision"])),this.d(M.bind([n,"flyInParam"],[this,"flyInParam"])),this.d(M.bind([n,"flyToParam"],[this,"flyToParam"])),this.d(M.track([n,"animation"],[this,"animation"])),this.d(M.track([n,"mode"],[this,"mode"])),this.d(M.track([n,"minVisibleDistance"],[this,"minVisibleDistance"])),this.d(M.track([n,"maxVisibleDistance"],[this,"maxVisibleDistance"])),this.d(M.track([i,"name"],[this,"name"])),this.d(M.track([i,"mode"],[this,"poiMode"])),this.d(M.track([i,"autoAnchor"],[this,"autoAnchor"])),this.d(M.track([i,"screenRender"],[this,"screenRender"])),this.d(M.track([i,"size"],[this,"size"])),this.d(M.track([i,"anchor"],[this,"anchor"])),this.d(M.track([i,"sizeByContent"],[this,"sizeByContent"])),this.d(M.track([i,"renderMode"],[this,"renderMode"])),this.d(M.track([i,"rotationType"],[this,"rotationType"])),this.d(M.track([i,"zOrder"],[this,"zOrder"])),this.d(M.track([i,"minVisibleDistance"],[this,"minVisibleDistance"])),this.d(M.track([i,"maxVisibleDistance"],[this,"maxVisibleDistance"])),this.d(M.bind([n,"position"],[this,"position"])),this.d(M.bind([n,"rotation"],[this,"rotation"])),this.d(this.flyInEvent.don(o=>{n.flyIn(o)})),this.d(this.flyToEvent.don(o=>{n.flyTo(o)})),this.d(this.calcFlyToParamEvent.don(()=>{n.calcFlyToParam()})),this.d(this.calcFlyInParamEvent.don(()=>{n.calcFlyInParam()})),this.d(this.smoothMoveEvent.don((o,s)=>{n.smoothMove(o,s)})),this.d(this.smoothMoveWithRotationEvent.don((o,s,a)=>{n.smoothMoveWithRotation(o,s,a)})),this.d(this.smoothMoveOnGroundEvent.don((o,s,a,c)=>{n.smoothMoveOnGround(o,s,a,c)})),this.d(this.smoothMoveWithRotationOnGroundEvent.don((o,s,a,c,f)=>{n.smoothMoveWithRotationOnGround(o,s,a,c,f)})),this.d(this.automaticLandingEvent.don(()=>{n.automaticLanding()}))}}get typeName(){return"ESHumanPoi"}get defaultProps(){return Ul.createDefaultProps()}get human(){return this._human}get poi(){return this._poi}getESProperties(){const t={...super.getESProperties()};return{...t,basic:[...t.basic,new ce("poi模式","poiMode",!1,!1,[this,"poiMode"],as.defaults.modes,"SquareH01"),new q("poi高度偏移","poi高度偏移",!1,!1,[this,"poiOffsetHeight"],1.8)]}}getProperties(t){return[...super.getProperties(t),new ce("poi模式","poiMode",!1,!1,[this,"poiMode"],as.defaults.modes),new q("poi高度偏移","poi高度偏移",!1,!1,[this,"poiOffsetHeight"],1.8)]}};D(Ul,"type",Ul.register("ESHumanPoi",Ul,{chsName:"人员poi",tags:["ESObjects"],description:"ESHuman + ESPoi2D组合对象"}));let ou=Ul;(r=>{r.createDefaultProps=()=>({poiOffsetHeight:1.8,poiMode:"SquareH01",style:M.reactJson({}),autoAnchor:!0,screenRender:!0,size:M.reactArray([100,100]),anchor:M.reactArray([.5,1]),sizeByContent:!0,renderMode:0,rotationType:1,zOrder:0,...os.createDefaultProps()})})(ou||(ou={})),M.extendClassProps(ou.prototype,ou.createDefaultProps);const Cr=class Cr extends Ue{get typeName(){return"ESPit"}get defaultProps(){return Cr.createDefaultProps()}constructor(e){super(e),this.collision=!1,this.allowPicking=!1,this.filled=!0}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new q("深度","坑深度(米)",!1,!1,[this,"depth"],Cr.defaults.depth),new q("插值","插值距离(米)",!1,!1,[this,"interpolation"],Cr.defaults.interpolation),new q("透明度","透明度",!1,!1,[this,"opacity"],Cr.defaults.opacity),new ne("侧面图片","侧面图片",!1,!1,[this,"sideImage"],Cr.defaults.sideImage),new ne("底面图片","底面图片",!1,!1,[this,"bottomImage"],Cr.defaults.bottomImage)],style:[new ee("点样式","点样式集合",[]),new $("开启","开启点样式",!1,!1,[this,"pointed"],!1),new q("点大小","点大小(pointSize)",!1,!1,[this,"pointSize"],1),new ce("点类型","点类型(pointSizeType)",!1,!1,[this,"pointSizeType"],[["screen","screen"],["world","world"]],"screen"),new pe("点颜色","点颜色(pointColor)",!1,!1,[this,"pointColor"],[1,1,1,1]),new ee("线样式","线样式集合",[]),new $("开启","开启线样式",!1,!1,[this,"stroked"],!0),new q("线宽","线宽(strokeWidth)",!1,!1,[this,"strokeWidth"],1),new ce("线类型","线类型(strokeWidthType)",!1,!1,[this,"strokeWidthType"],[["screen","screen"],["world","world"]],"screen"),new pe("线颜色","线颜色(strokeColor)",!1,!1,[this,"strokeColor"],[1,1,1,1]),new $("是否贴地","是否贴地(线)",!1,!1,[this,"strokeGround"],!1),new ee("面样式","面样式集合",[]),new $("开启","开启填充样式",!1,!1,[this,"filled"],!0),new pe("填充颜色","填充颜色(fillColor)",!1,!1,[this,"fillColor"],[1,1,1,1]),new $("是否贴地","是否贴地",!1,!1,[this,"fillGround"],!1)]}}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new q("深度","坑深度(米)",!1,!1,[this,"depth"],Cr.defaults.depth),new q("插值","插值距离(米)",!1,!1,[this,"interpolation"],Cr.defaults.interpolation),new ne("侧面图片","侧面图片",!1,!1,[this,"sideImage"],Cr.defaults.sideImage),new ne("底面图片","底面图片",!1,!1,[this,"bottomImage"],Cr.defaults.bottomImage),new q("opacity","透明度",!1,!1,[this,"opacity"],Cr.defaults.opacity)])]}};D(Cr,"type",Cr.register("ESPit",Cr,{chsName:"坑",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"坑"})),D(Cr,"defaults",{...Ue.defaults,depth:100,sideImage:{url:we.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/ESPit/side.jpg"),uDis:50,vDis:50},bottomImage:{url:we.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/ESPit/bottom.jpg"),uDis:50,vDis:50},opacity:1,interpolation:50});let ls=Cr;(r=>{r.createDefaultProps=()=>({...Ue.createDefaultProps(),depth:100,sideImage:M.reactJson(r.defaults.sideImage),bottomImage:M.reactJson(r.defaults.bottomImage),opacity:1,interpolation:50})})(ls||(ls={})),M.extendClassProps(ls.prototype,ls.createDefaultProps);const Wl=class Wl extends ls{constructor(t){super(t);D(this,"_excavate",this.dv(new Fs(`${this.id}_ESExcavate`)));D(this,"_pit",this.dv(new ls(`${this.id}_ESPit`)));D(this,"combinationClass",!0);this.mainClass=this._pit,this.d(this.components.disposableAdd(this._excavate)),this.d(this.components.disposableAdd(this._pit));{const{_excavate:n,_pit:i}=this;this.d(M.track([n,"show"],[this,"show"])),this.d(M.track([i,"show"],[this,"show"])),this.d(M.track([n,"allowPicking"],[this,"allowPicking"])),this.d(M.track([i,"allowPicking"],[this,"allowPicking"])),this.d(M.track([n,"collision"],[this,"collision"])),this.d(M.track([i,"collision"],[this,"collision"])),this.d(M.bind([i,"points"],[this,"points"])),this.d(M.track([n,"points"],[this,"points"])),this.d(M.track([i,"pointed"],[this,"pointed"])),this.d(M.track([n,"pointed"],[this,"pointed"])),this.d(M.track([i,"pointStyle"],[this,"pointStyle"])),this.d(M.track([n,"pointStyle"],[this,"pointStyle"])),this.d(M.track([i,"stroked"],[this,"stroked"])),this.d(M.track([n,"stroked"],[this,"stroked"])),this.d(M.track([i,"strokeStyle"],[this,"strokeStyle"])),this.d(M.track([n,"strokeStyle"],[this,"strokeStyle"])),this.d(M.track([i,"filled"],[this,"filled"])),this.d(M.track([i,"fillStyle"],[this,"fillStyle"])),this.d(M.track([n,"fillStyle"],[this,"fillStyle"])),this.d(M.track([n,"mode"],[this,"mode"])),this.d(M.track([n,"targetID"],[this,"targetID"])),this.d(M.track([i,"depth"],[this,"depth"])),this.d(M.track([i,"sideImage"],[this,"sideImage"])),this.d(M.track([i,"bottomImage"],[this,"bottomImage"])),this.d(M.track([i,"opacity"],[this,"opacity"])),this.d(M.track([i,"interpolation"],[this,"interpolation"])),this.d(M.bind([i,"flyInParam"],[this,"flyInParam"])),this.d(M.bind([i,"flyToParam"],[this,"flyToParam"])),this.d(this.flyInEvent.don(o=>{i.flyIn(o)})),this.d(this.flyToEvent.don(o=>{i.flyTo(o)})),this.d(this.calcFlyToParamEvent.don(()=>{i.calcFlyToParam()})),this.d(this.calcFlyInParamEvent.don(()=>{i.calcFlyInParam()}))}}get typeName(){return"ESHole"}get defaultProps(){return Wl.createDefaultProps()}get excavate(){return this._excavate}getESProperties(){const t={...super.getESProperties()};return{...t,basic:[...t.basic,new ce("模式","mode",!1,!1,[this,"mode"],Fs.defaults.modes,"in"),new de("瓦片图层","targetID",!1,!1,[this,"targetID"],"")]}}};D(Wl,"type",Wl.register("ESHole",Wl,{chsName:"挖坑(带材质+深度)",tags:["ESObjects"],description:"挖坑"}));let au=Wl;(r=>{r.createDefaultProps=()=>({mode:"in",targetID:"",...ls.createDefaultProps()})})(au||(au={})),M.extendClassProps(au.prototype,au.createDefaultProps);const Bd={layerconfigfind:"/ts/layer/config/get",layerconfigsave:"/ts/layer/config/put",featureproperty:"/ts/editor/property",featureeditormuti:"/ts/editor/update",getts:"/ts/info"},sC=async(r,e)=>{try{const t=window.localStorage.getItem("Authorization"),n={headers:{...t?{Authorization:t}:{}},mode:"cors"},o=await(await fetch(r+`${Bd.layerconfigfind}?tileServiceName=${e}`,n)).text();return JSON.parse(o)}catch(t){console.error(t)}},oC=async(r,e,t)=>{try{const n=window.localStorage.getItem("Authorization"),i=t??{},o={method:"POST",headers:{"Content-Type":"application/json",...n?{Authorization:n}:{}},mode:"cors",body:JSON.stringify({tileServiceName:e,layerConfig:JSON.stringify(i)})},a=await(await fetch(r+Bd.layerconfigsave,o)).text();return JSON.parse(a)}catch(n){console.error(n)}},aC=async r=>{try{const e=window.localStorage.getItem("Authorization"),t={headers:{...e?{Authorization:e}:{}},mode:"cors"},i=await(await fetch(r,t)).text(),o=JSON.parse(i);if(o.status=="ok")return o.data.port;console.error(o.status);return}catch(e){console.error(e)}},uC=async(r,e,t)=>{try{const n={tileServiceName:e,featureId:t},i=window.localStorage.getItem("Authorization"),s=await(await fetch(r+Bd.featureproperty,{method:"post",headers:{"Content-Type":"application/json",...i?{Authorization:i}:{}},body:JSON.stringify(n),mode:"cors"})).text(),a=JSON.parse(s);if(a.status=="ok")return a.data;console.error(a.data.status);return}catch(n){console.error(n)}},Vu=class Vu extends Yt{constructor(t){super(t);D(this,"_es3DTileset",this.dv(new Yt(`${this.id}_ES3DTileset`)));D(this,"_ids",this.dv(M.reactJson([])));D(this,"combinationClass",!0);D(this,"_highlightInner3DtilesetEvent",this.dv(new M.Event));D(this,"_removeHighlightInner3DtilesetEvent",this.dv(new M.Event));D(this,"_tilesetServePort",this.dv(M.react("")));this.mainClass=this._es3DTileset;{const n=async()=>{if(typeof this.url!="string"){console.error("服务地址不合法, Init Error! 示例: http://localhost:9009/ts/info/ts01");return}this.url?this.refresh():this._es3DTileset.url=""};this.d(this.urlChanged.don(()=>{n()}))}{this.d(this.components.disposableAdd(this._es3DTileset));const n=this._es3DTileset;this.d(M.track([n,"allowPicking"],[this,"allowPicking"])),this.d(M.track([n,"collision"],[this,"collision"])),this.d(M.bind([n,"flyToParam"],[this,"flyToParam"])),this.d(M.bind([n,"flyToParam"],[this,"flyToParam"])),this.d(M.track([n,"actorTag"],[this,"actorTag"])),this.d(M.track([n,"materialMode"],[this,"materialMode"])),this.d(M.track([n,"highlight"],[this,"highlight"])),this.d(M.track([n,"maximumScreenSpaceError"],[this,"maximumScreenSpaceError"])),this.d(M.track([n,"highlightID"],[this,"highlightID"])),this.d(M.track([n,"highlightColor"],[this,"highlightColor"])),this.d(M.bind([n,"offset"],[this,"offset"])),this.d(M.bind([n,"rotation"],[this,"rotation"])),this.d(M.track([n,"czmImageBasedLightingFactor"],[this,"czmImageBasedLightingFactor"])),this.d(M.track([n,"czmLuminanceAtZenith"],[this,"czmLuminanceAtZenith"])),this.d(M.track([n,"czmMaximumMemoryUsage"],[this,"czmMaximumMemoryUsage"])),this.d(M.track([n,"czmClassificationType"],[this,"czmClassificationType"])),this.d(M.track([n,"czmStyleJson"],[this,"czmStyleJson"])),this.d(M.track([n,"czmBackFaceCulling"],[this,"czmBackFaceCulling"])),this.d(M.track([n,"czmDebugShowBoundingVolume"],[this,"czmDebugShowBoundingVolume"])),this.d(M.track([n,"czmDebugShowContentBoundingVolume"],[this,"czmDebugShowContentBoundingVolume"])),this.d(M.track([n,"czmSkipLevelOfDetail"],[this,"czmSkipLevelOfDetail"])),this.d(M.track([n,"colorBlendMode"],[this,"colorBlendMode"])),this.d(M.track([n,"cacheBytes"],[this,"cacheBytes"])),this.d(M.track([n,"clippingPlaneEnabled"],[this,"clippingPlaneEnabled"])),this.d(M.track([n,"unionClippingRegions"],[this,"unionClippingRegions"])),this.d(M.track([n,"clippingPlaneEdgeColor"],[this,"clippingPlaneEdgeColor"])),this.d(M.track([n,"clippingPlaneEdgeWidth"],[this,"clippingPlaneEdgeWidth"])),this.d(M.track([n,"materialParams"],[this,"materialParams"])),this.d(M.bind([n,"supportEdit"],[this,"supportEdit"])),this.d(M.bind([n,"clippingPlanesId"],[this,"clippingPlanesId"])),this.d(M.bind([n,"clippingPlaneIds"],[this,"clippingPlaneIds"])),this.d(M.bind([n,"flattenedPlaneId"],[this,"flattenedPlaneId"])),this.d(M.bind([n,"flattenedPlaneEnabled"],[this,"flattenedPlaneEnabled"])),this.d(M.bind([n,"clippingPlaneId"],[this,"clippingPlaneId"])),this.d(M.bind([n,"excavateId"],[this,"excavateId"]))}{const n=this._es3DTileset;this.d(this.refreshTilesetEvent.don(()=>{n.refreshTileset()})),this.d(this.highlightFeatureEvent.don((...i)=>{n.highlightFeature(...i)})),this.d(this.highlightFeatureAndFlyToEvent.don((...i)=>{n.highlightFeatureAndFlyTo(...i)})),this.d(this.setFeatureColorEvent.don((...i)=>{n.setFeatureColor(...i)})),this.d(this.setFeatureVisableEvent.don((...i)=>{n.setFeatureVisable(...i)})),this.d(this.resetFeatureStyleEvent.don((...i)=>{n.resetFeatureStyle(...i)})),this.d(this.setFeatureStyleEvent.don((...i)=>{n.setFeatureStyle(...i)})),this.d(this.flyInEvent.don((...i)=>{n.flyIn(i[0])})),this.d(this.flyToEvent.don((...i)=>{n.flyTo(i[0])})),this.d(this.calcFlyToParamEvent.don((...i)=>{n.calcFlyToParam(...i)})),this.d(this.calcFlyInParamEvent.don((...i)=>{n.calcFlyInParam(...i)}))}{const n=this._es3DTileset;this.d(n.tilesetReady.don(i=>{this.tilesetReady.emit(i)})),this.d(n.pickedEvent.don(i=>{i.assign({sceneObject:this}),this.pickedEvent.emit(i)}))}{const n=()=>{this.es3DTileset.show=this.show};n(),this.d(this.showChanged.don(()=>{n()}))}}get typeName(){return"ESRtsTileset"}get defaultProps(){return Vu.createDefaultProps()}get json(){return this._innerGetJson()}set json(t){this._innerSetJson(t)}get es3DTileset(){return this._es3DTileset}get ids(){return this._ids.value}get idsChanged(){return this._ids.changed}set ids(t){this._ids.value=t}async getFeatureProperty(t){return await uC(this.baseUrl,this.tileServiceName,t)}async getLayerConfig(){const t=await sC(this.baseUrl,this.tileServiceName);return!t||!Array.isArray(t)?this.layerConfig=[]:this.layerConfig=t,this.layerConfig}async saveLayerConfig(){const t=this.layerConfig;return await oC(this.baseUrl,this.tileServiceName,t)}get highlightInner3DtilesetEvent(){return this._highlightInner3DtilesetEvent}_highlightInner3Dtileset(t){this._highlightInner3DtilesetEvent.emit(t)}async highlightDSFeature(t){this._highlightInner3Dtileset(t)}get removeHighlightInner3DtilesetEvent(){return this._removeHighlightInner3DtilesetEvent}_removeHighlightInner3Dtileset(t){this._removeHighlightInner3DtilesetEvent.emit(t)}async removeHighlightDSFeature(t){this._removeHighlightInner3Dtileset(t)}async pickFeature(t,n){var a,c,f;const i=await t.pick(n),o=i.sceneObject;return!o||o.id!==this.id&&o.typeName!="ESRtsFeatureEditing"?void 0:o.typeName!="ESRtsFeatureEditing"?(this.ids=[...this.ids,(a=i==null?void 0:i.tilesetPickInfo)==null?void 0:a.id],{featureId:(c=i==null?void 0:i.tilesetPickInfo)==null?void 0:c.id,pickInnerFields:i==null?void 0:i.tilesetPickInfo}):{featureId:(f=i==null?void 0:i.sceneObject)==null?void 0:f.id,pickInnerFields:i==null?void 0:i.tilesetPickInfo}}get tilesetServePort(){return this._tilesetServePort.value}get tilesetServePortChanged(){return this._tilesetServePort.changed}set tilesetServePort(t){this._tilesetServePort.value=t}async getport(){const t=await aC(this.url);if(t)return this.tilesetServePort=t,t;throw new Error("服务地址port获取失败!")}async refresh(){var i;if(!this.url||typeof this.url!="string")return;const t=(i=this.url.match(/\/ts\/info\/(.*)/))==null?void 0:i[1],n=+new Date;if(t){const o=this.tileServiceIp,s=await this.getport();await this.getLayerConfig(),this._es3DTileset.url=`${o}:${s}/tiles/tileset.json?t=${n}`}console.log("3dtileset url:",this._es3DTileset.url)}get baseUrl(){var t;if(this.url&&typeof this.url=="string"){const n=(t=this.url.match(/^(https?:\/\/[^\/]+)/))==null?void 0:t[1];if(!n)throw new Error("服务地址不合法,baseUrl is not found! 示例: http://localhost:9009/ts/info/ts01");return n}else throw new Error("服务地址不合法,baseUrl is not found! 示例: http://localhost:9009/ts/info/ts01")}get tileServiceName(){var t;if(this.url&&typeof this.url=="string"){const n=(t=this.url.match(/\/ts\/info\/(.*)/))==null?void 0:t[1];if(!n)throw console.log(this.url),new Error("服务地址不合法,tileServiceName is not found! 示例: http://localhost:9009/ts/info/ms01,");return n}else throw new Error("服务地址不合法,tileServiceName is not found! 示例: http://localhost:9009/ts/info/ms01")}get tileServiceIp(){var t;if(this.url&&typeof this.url=="string"){const n=(t=this.url.match(/^(https?:\/\/[^:]+)/))==null?void 0:t[1];if(!n)throw new Error("服务地址不合法,ip is not found! 示例: http://localhost:9009/ts/info/ts01");return n}else throw new Error("服务地址不合法,ip is not found! 示例: http://localhost:9009/ts/info/ts01")}getProperties(t){return[...super.getProperties(t),new ee("ESRtsTileset","ESRtsTileset",[new ne("图层配置","图层配置(layerConfig)",!0,!1,[this,"layerConfig"],[])])]}};D(Vu,"type",Vu.register("ESRtsTileset",Vu,{chsName:"CIMRTS实时3DTileset图层",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"实时3DTileset图层"})),D(Vu,"defaults",{...Yt.defaults,layerConfig:[]});let uu=Vu;(r=>{r.createDefaultProps=()=>({layerConfig:M.reactJsonWithUndefined(void 0),...Yt.createDefaultProps()})})(uu||(uu={})),M.extendClassProps(uu.prototype,uu.createDefaultProps);function lC(r){return typeof r=="number"&&!isNaN(r)}const Bu=class Bu extends Yt{constructor(t){super(t);D(this,"combinationClass",!0)}get typeName(){return"ESRtsFeatureEditing"}get defaultProps(){return Bu.createDefaultProps()}get json(){return{...this._innerGetJson(),show:this.show,materials:this.materials,changeMaterial:this.changeMaterial,props:this.props,rotation:this.rotation}}set json(t){this._innerSetJson(t)}async init(t,n){this.featureId=n;const i=await t.getFeatureProperty(n);this.uiShowprops=i.allFields.map(a=>({featureClassName:a.featureClassName,fields:a.fields.map(c=>({key:c.name,type:c.type,value:c.type!="Double"?c.value:lC(c.value)?Number(c.value.toFixed(3)):""}))})),this.datasetName=i.datasetName,t.setFeatureVisable("id",[{value:this.featureId,visable:!1}]),this.d(()=>{t.setFeatureVisable("id",[{value:this.featureId,visable:!0}])});const o=t.tileServiceIp,s=t.tilesetServePort;if(!s)throw new Error("ESRtsFeatureEditing: port is not defined");this.url=`${o}:${s}/featuretiles/${this.featureId}/tileset.json`,this.allowPicking=!0,this.d(this.pickedEvent.don(a=>{a.assign({sceneObject:t}),t.pickedEvent.emit(a)})),this.d(()=>{this.editing=!1,t.removeHighlightDSFeature(this)})}getProperties(t){return[...super.getProperties(t)]}};D(Bu,"type",Bu.register("ESRtsFeatureEditing",Bu,{chsName:"ESRtsFeatureEditing",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"实时3DTileset图层"})),D(Bu,"defaults",{...Yt.defaults,layerConfig:{}});let lu=Bu;(r=>{r.createDefaultProps=()=>({...Yt.createDefaultProps(),datasetName:void 0,featureId:void 0,materials:M.reactJson({}),changeMaterial:M.reactJsonWithUndefined(void 0),uiShowprops:M.reactJson({}),props:M.reactJson({})})})(lu||(lu={})),M.extendClassProps(lu.prototype,lu.createDefaultProps);const cC=async r=>{try{const e=window.localStorage.getItem("Authorization"),t={headers:{...e?{Authorization:e}:{}},mode:"cors"},i=await(await fetch(r,t)).text(),o=JSON.parse(i);if(o.status=="ok")return o.data.port;console.error(o.status);return}catch(e){console.error(e)}},zu=class zu extends Yt{constructor(t){super(t);D(this,"_es3DTileset",this.dv(new Yt(`${this.id}_ES3DTileset`)));D(this,"combinationClass",!0);D(this,"_tilesetServePort",this.dv(M.react("")));this.mainClass=this._es3DTileset;{const n=async()=>{if(typeof this.url!="string"){console.error("服务地址不合法, Init Error! 示例: http://localhost:9009/ts/info/ms01");return}this.url?this.refresh():this._es3DTileset.url=""};this.d(this.urlChanged.don(()=>{n()}))}{this.d(this.components.disposableAdd(this._es3DTileset));const n=this._es3DTileset;this.d(M.track([n,"allowPicking"],[this,"allowPicking"])),this.d(M.track([n,"collision"],[this,"collision"])),this.d(M.bind([n,"flyToParam"],[this,"flyToParam"])),this.d(M.bind([n,"flyToParam"],[this,"flyToParam"])),this.d(M.track([n,"actorTag"],[this,"actorTag"])),this.d(M.track([n,"materialMode"],[this,"materialMode"])),this.d(M.track([n,"highlight"],[this,"highlight"])),this.d(M.track([n,"maximumScreenSpaceError"],[this,"maximumScreenSpaceError"])),this.d(M.track([n,"highlightID"],[this,"highlightID"])),this.d(M.track([n,"highlightColor"],[this,"highlightColor"])),this.d(M.bind([n,"offset"],[this,"offset"])),this.d(M.bind([n,"rotation"],[this,"rotation"])),this.d(M.track([n,"czmImageBasedLightingFactor"],[this,"czmImageBasedLightingFactor"])),this.d(M.track([n,"czmLuminanceAtZenith"],[this,"czmLuminanceAtZenith"])),this.d(M.track([n,"czmMaximumMemoryUsage"],[this,"czmMaximumMemoryUsage"])),this.d(M.track([n,"czmClassificationType"],[this,"czmClassificationType"])),this.d(M.track([n,"czmStyleJson"],[this,"czmStyleJson"])),this.d(M.track([n,"czmBackFaceCulling"],[this,"czmBackFaceCulling"])),this.d(M.track([n,"czmDebugShowBoundingVolume"],[this,"czmDebugShowBoundingVolume"])),this.d(M.track([n,"czmDebugShowContentBoundingVolume"],[this,"czmDebugShowContentBoundingVolume"])),this.d(M.track([n,"czmSkipLevelOfDetail"],[this,"czmSkipLevelOfDetail"])),this.d(M.track([n,"colorBlendMode"],[this,"colorBlendMode"])),this.d(M.track([n,"cacheBytes"],[this,"cacheBytes"])),this.d(M.track([n,"clippingPlaneEnabled"],[this,"clippingPlaneEnabled"])),this.d(M.track([n,"unionClippingRegions"],[this,"unionClippingRegions"])),this.d(M.track([n,"clippingPlaneEdgeColor"],[this,"clippingPlaneEdgeColor"])),this.d(M.track([n,"clippingPlaneEdgeWidth"],[this,"clippingPlaneEdgeWidth"])),this.d(M.track([n,"materialParams"],[this,"materialParams"])),this.d(M.bind([n,"supportEdit"],[this,"supportEdit"])),this.d(M.bind([n,"clippingPlanesId"],[this,"clippingPlanesId"])),this.d(M.bind([n,"clippingPlaneIds"],[this,"clippingPlaneIds"])),this.d(M.bind([n,"flattenedPlaneId"],[this,"flattenedPlaneId"])),this.d(M.bind([n,"flattenedPlaneEnabled"],[this,"flattenedPlaneEnabled"])),this.d(M.bind([n,"clippingPlaneId"],[this,"clippingPlaneId"])),this.d(M.bind([n,"excavateId"],[this,"excavateId"]))}{const n=this._es3DTileset;this.d(this.refreshTilesetEvent.don(()=>{n.refreshTileset()})),this.d(this.highlightFeatureEvent.don((...i)=>{n.highlightFeature(...i)})),this.d(this.highlightFeatureAndFlyToEvent.don((...i)=>{n.highlightFeatureAndFlyTo(...i)})),this.d(this.setFeatureColorEvent.don((...i)=>{n.setFeatureColor(...i)})),this.d(this.setFeatureVisableEvent.don((...i)=>{n.setFeatureVisable(...i)})),this.d(this.resetFeatureStyleEvent.don((...i)=>{n.resetFeatureStyle(...i)})),this.d(this.flyInEvent.don((...i)=>{n.flyIn(i[0])})),this.d(this.flyToEvent.don((...i)=>{n.flyTo(i[0])})),this.d(this.calcFlyToParamEvent.don((...i)=>{n.calcFlyToParam(...i)})),this.d(this.calcFlyInParamEvent.don((...i)=>{n.calcFlyInParam(...i)}))}{const n=this._es3DTileset;this.d(n.tilesetReady.don(i=>{this.tilesetReady.emit(i)})),this.d(n.pickedEvent.don(i=>{i.assign({sceneObject:this}),this.pickedEvent.emit(i)}))}{const n=()=>{this.es3DTileset.show=this.show};n(),this.d(this.showChanged.don(()=>{n()}))}}get typeName(){return"ESMsTileset"}get defaultProps(){return zu.createDefaultProps()}get json(){return this._innerGetJson()}set json(t){this._innerSetJson(t)}get es3DTileset(){return this._es3DTileset}get tilesetServePort(){return this._tilesetServePort.value}get tilesetServePortChanged(){return this._tilesetServePort.changed}set tilesetServePort(t){this._tilesetServePort.value=t}async getport(){const t=await cC(this.url);if(t)return this.tilesetServePort=t,t;throw new Error("服务地址port获取失败!")}async refresh(){var i;if(!this.url||typeof this.url!="string")return;const t=(i=this.url.match(/\/ts\/info\/(.*)/))==null?void 0:i[1],n=+new Date;if(t){const o=this.tileServiceIp,s=await this.getport();this._es3DTileset.url=`${o}:${s}/tiles/tileset.json?t=${n}`}console.log("3dtileset url:",this._es3DTileset.url)}get baseUrl(){var t;if(this.url&&typeof this.url=="string"){const n=(t=this.url.match(/^(https?:\/\/[^\/]+)/))==null?void 0:t[1];if(!n)throw new Error("服务地址不合法,baseUrl is not found! 示例: http://localhost:9009/ts/info/ms01");return n}else throw new Error("服务地址不合法,baseUrl is not found! 示例: http://localhost:9009/ts/info/ms01")}get tileServiceIp(){var t;if(this.url&&typeof this.url=="string"){const n=(t=this.url.match(/^(https?:\/\/[^:]+)/))==null?void 0:t[1];if(!n)throw new Error("服务地址不合法,ip is not found! 示例: http://localhost:9009/ts/info/ms01");return n}else throw new Error("服务地址不合法,ip is not found! 示例: http://localhost:9009/ts/info/ms01")}get tileServiceName(){var t;if(this.url&&typeof this.url=="string"){const n=(t=this.url.match(/\/ts\/info\/(.*)/))==null?void 0:t[1];if(!n)throw console.log(this.url),new Error("服务地址不合法,tileServiceName is not found! 示例: http://localhost:9009/ts/info/ms01,");return n}else throw new Error("服务地址不合法,tileServiceName is not found! 示例: http://localhost:9009/ts/info/ms01")}getProperties(t){return[...super.getProperties(t)]}};D(zu,"type",zu.register("ESMsTileset",zu,{chsName:"Modelser实时3DTileset图层",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"实时3DTileset图层"})),D(zu,"defaults",{...Yt.defaults,layerConfig:{}});let cu=zu;(r=>{r.createDefaultProps=()=>({...Yt.createDefaultProps()})})(cu||(cu={})),M.extendClassProps(cu.prototype,cu.createDefaultProps);const qy={defaultValue:[{type:"2",widget:"WidgetBlueprint'/ESFoliage/PoiSheng.PoiSheng'",povit:[.5,1],worldScale:.1,hiddenDistance:40},{type:"3",widget:"WidgetBlueprint'/ESFoliage/PoiShi.PoiShi'",povit:[.5,1],worldScale:.1,hiddenDistance:40},{type:"4",widget:"WidgetBlueprint'/ESFoliage/PoiShi.PoiShi'",povit:[.5,1],worldScale:.1,hiddenDistance:40},{type:"5",widget:"WidgetBlueprint'/ESFoliage/PoiXiang.PoiXiang'",povit:[.5,1],worldScale:.1,hiddenDistance:40},{type:"6",widget:"WidgetBlueprint'/ESFoliage/PoiCun.PoiCun'",povit:[.5,1],worldScale:.1,hiddenDistance:40}],sampleValue:`
637
637
  ## 参数类型为 ESPoiType[]
638
638
  \`\`\`js
639
639
  type Vector2D = [number, number]
@@ -647,7 +647,7 @@ type ESPoiType = {
647
647
  }
648
648
 
649
649
  \`\`\`
650
- `},jo=class jo extends Be{get typeName(){return"ESPoiTileset"}get defaultProps(){return jo.createDefaultProps()}constructor(e){super(e)}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new ne("路径","路径",!1,!1,[this,"url"]),new ne("poiTypes","类型为 {type: string, povit: Vector2D, widget: string, worldScale: number, hiddenDistance: number}[]",!1,!1,[this,"poiTypes"],jo.defaults.poiTypes,qy.sampleValue),new q("heightOffset","heightOffset",!1,!1,[this,"heightOffset"])])]}};D(jo,"type",jo.register("ESPoiTileset",jo,{chsName:"ESPoiTileset",tags:["ESObjects","_ES_Impl_UE"],description:"ESPoiTileset"})),D(jo,"defaults",{...Be.defaults,poiTypes:qy.defaultValue});let hu=jo;(r=>{r.createDefaultProps=()=>({...Be.createDefaultProps(),url:"",poiTypes:M.reactJsonWithUndefined(void 0),heightOffset:40})})(hu||(hu={})),M.extendClassProps(hu.prototype,hu.createDefaultProps);const Uu=class Uu extends we{get typeName(){return"ESScale"}get defaultProps(){return Uu.createDefaultProps()}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new $("是否显示","A boolean Property specifying the visibility .",!1,!1,[this,"show"]),new ce("定位","放到屏幕的哪个位置",!1,!1,[this,"screenPosition"],[["left","left"],["right","right"]]),new lt("位置","位置(bottom,right/left)",!1,!1,[this,"cssPosition"])])]}};D(Uu,"type",Uu.register("ESScale",Uu,{chsName:"比例尺",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"比例尺"})),D(Uu,"defaults",{...we.defaults,show:!0,screenPosition:"right",cssPosition:[40,18]});let fu=Uu;(r=>{r.createDefaultProps=()=>({...we.createDefaultProps(),show:!0,screenPosition:"right",cssPosition:[40,30]})})(fu||(fu={})),M.extendClassProps(fu.prototype,fu.createDefaultProps);const wn=class wn extends Ue{get typeName(){return"ESGeoExtrudedPolygon"}get defaultProps(){return wn.createDefaultProps()}constructor(e){super(e),this.collision=!1}getESProperties(){const e={...super.getESProperties()};return{...e,coordinate:[...e.coordinate,new q("高度","高度 m",!0,!1,[this,"height"],wn.defaults.height),new q("拉伸高度","拉伸高度 m",!0,!1,[this,"extrudedHeight"],wn.defaults.extrudedHeight),new $("应用每个位置高度","应用每个位置高度",!0,!1,[this,"perPositionHeight"],wn.defaults.perPositionHeight)],style:[new ee("点样式","点样式集合",[]),new $("开启","开启点样式",!1,!1,[this,"pointed"],!1),new q("点大小","点大小(pointSize)",!1,!1,[this,"pointSize"],1),new ce("点类型","点类型(pointSizeType)",!1,!1,[this,"pointSizeType"],[["screen","screen"],["world","world"]],"screen"),new pe("点颜色","点颜色(pointColor)",!1,!1,[this,"pointColor"],[1,1,1,1]),new ee("线样式","线样式集合",[]),new $("开启","开启线样式",!1,!1,[this,"stroked"],!1),new $("贴地","是否贴地",!1,!1,[this,"strokeGround"],!1),new q("线宽","线宽(strokeWidth)",!1,!1,[this,"strokeWidth"],1),new ce("线类型","线类型(strokeWidthType)",!1,!1,[this,"strokeWidthType"],[["screen","screen"],["world","world"]],"screen"),new pe("线颜色","线颜色(strokeColor)",!1,!1,[this,"strokeColor"],[1,1,1,1]),new ee("面样式","面样式集合",[]),new $("开启","开启填充样式",!1,!1,[this,"filled"],!0),new $("贴地","是否贴地",!1,!1,[this,"fillGround"],!1),new pe("填充颜色","填充颜色(fillColor)",!1,!1,[this,"fillColor"],[1,1,1,1])]}}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new q("高度","高度 m",!0,!1,[this,"height"],wn.defaults.height),new q("拉伸高度","拉伸高度 m",!0,!1,[this,"extrudedHeight"],wn.defaults.extrudedHeight),new $("应用每个位置高度","应用每个位置高度",!0,!1,[this,"perPositionHeight"],wn.defaults.perPositionHeight)])]}};D(wn,"type",wn.register("ESGeoExtrudedPolygon",wn,{chsName:"挤压多边形体",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"挤压多边形体"})),D(wn,"supportEditingModes",[...Ue.supportEditingModes,xe.HeightModify]),D(wn,"defaults",{...Ue.defaults,height:0,extrudedHeight:10,perPositionHeight:!1});let js=wn;(r=>{r.createDefaultProps=()=>({...Ue.createDefaultProps(),height:0,extrudedHeight:10,perPositionHeight:!1})})(js||(js={})),M.extendClassProps(js.prototype,js.createDefaultProps);const Wu=class Wu extends Ue{constructor(t){super(t);D(this,"_classification",this.dv(new xo(`${this.id}_ESClassification`)));D(this,"_geoExtrudedPolygon",this.dv(new js(`${this.id}_ESGeoExtrudedPolygon`)));D(this,"combinationClass",!0);this.mainClass=this._geoExtrudedPolygon,this.d(this.components.disposableAdd(this._classification)),this.d(this.components.disposableAdd(this._geoExtrudedPolygon));{const{_classification:n,_geoExtrudedPolygon:i}=this;i.perPositionHeight=!0,this.d(M.track([n,"collision"],[this,"collision"])),this.d(M.track([i,"collision"],[this,"collision"])),this.d(M.bind([i,"flyInParam"],[this,"flyInParam"])),this.d(M.bind([i,"flyToParam"],[this,"flyToParam"])),this.d(M.bind([i,"points"],[this,"points"])),this.d(M.bind([i,"extrudedHeight"],[this,"height"])),this.d(M.bind([n,"fillColor"],[this,"overheightColor"])),this.d(M.bind([i,"fillColor"],[this,"standardColor"]));{const o=()=>{const{height:a,points:c,maxHeight:f}=this;if(!c)return;const m=c.map(p=>[p[0],p[1],a]);n.points=m,n.height=f-a,f-a<=0?n.show=!1:n.show=this.show&&this.filled};o();const s=this.dv(M.createNextAnimateFrameEvent(this.heightChanged,this.pointsChanged,this.maxHeightChanged));this.d(s.don(o))}{const o=()=>{const{show:a,filled:c}=this;n.show=a&&c,i.show=a&&c};o();const s=this.dv(M.createNextAnimateFrameEvent(this.showChanged,this.filledChanged));this.d(s.don(o))}this.dispose(this.flyInEvent.don(o=>{i.flyIn(o)})),this.dispose(this.flyToEvent.don(o=>{i.flyTo(o)})),this.dispose(this.calcFlyToParamEvent.don(()=>{i.calcFlyToParam()})),this.dispose(this.calcFlyInParamEvent.don(()=>{i.calcFlyInParam()}))}}get typeName(){return"ESHeightLimitAnalysis"}get defaultProps(){return Wu.createDefaultProps()}get json(){return this._innerGetJson()}set json(t){this._innerSetJson(t)}get classification(){return this._classification}get geoExtrudedPolygon(){return this._geoExtrudedPolygon}getESProperties(){const t={...super.getESProperties()};return{...t,defaultMenu:"basic",basic:[...t.basic,new q("高度","控高的高度",!1,!1,[this,"height"],10),new q("最高高度","最高高度",!1,!1,[this,"maxHeight"],200),new pe("超高颜色","超高颜色",!1,!1,[this,"overheightColor"],[1,0,0,.5]),new pe("标准颜色","标准颜色",!1,!1,[this,"standardColor"],[0,1,0,.5])],style:[new ee("点样式","点样式集合",[]),new $("开启","开启点样式",!1,!1,[this,"pointed"],!1),new q("点大小","点大小(pointSize)",!1,!1,[this,"pointSize"],1),new ce("点类型","点类型(pointSizeType)",!1,!1,[this,"pointSizeType"],[["screen","screen"],["world","world"]],"screen"),new pe("点颜色","点颜色(pointColor)",!1,!1,[this,"pointColor"],[1,1,1,1]),new ee("线样式","线样式集合",[]),new $("开启","开启线样式",!1,!1,[this,"stroked"],!1),new $("贴地","是否贴地",!1,!1,[this,"strokeGround"],!1),new q("线宽","线宽(strokeWidth)",!1,!1,[this,"strokeWidth"],1),new ce("线类型","线类型(strokeWidthType)",!1,!1,[this,"strokeWidthType"],[["screen","screen"],["world","world"]],"screen"),new pe("线颜色","线颜色(strokeColor)",!1,!1,[this,"strokeColor"],[1,1,1,1]),new ee("面样式","面样式集合",[]),new $("开启","开启填充样式",!1,!1,[this,"filled"],!0),new $("贴地","是否贴地",!1,!1,[this,"fillGround"],!1),new pe("填充颜色","填充颜色(fillColor)",!1,!1,[this,"fillColor"],[1,1,1,1])]}}getProperties(t){return[...super.getProperties(t),new q("高度","控高的高度",!1,!1,[this,"height"],10),new q("最高高度","最高高度",!1,!1,[this,"maxHeight"],200),new pe("超高颜色","超高颜色",!1,!1,[this,"overheightColor"],[1,0,0,.5]),new pe("标准颜色","标准颜色",!1,!1,[this,"standardColor"],[0,1,0,.5])]}};D(Wu,"type",Wu.register("ESHeightLimitAnalysis",Wu,{chsName:"控高分析",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"控高分析对象"})),D(Wu,"supportEditingModes",[...Ue.supportEditingModes,xe.HeightModify]);let du=Wu;(r=>{r.createDefaultProps=()=>({height:10,maxHeight:200,overheightColor:[1,0,0,.5],standardColor:[0,1,0,.5],...Ue.createDefaultProps()})})(du||(du={})),M.extendClassProps(du.prototype,du.createDefaultProps);const xr=class xr extends Be{constructor(t){super(t);D(this,"_widgetEvent",this.dv(new M.Event));D(this,"_data",this.dv(M.react(void 0)));{const n=()=>{if(this.url)do{if(typeof this.url=="object"){this.data=this.url;break}if(Wy(this.url)){this.data=JSON.parse(this.url);break}fetch(we.context.getStrFromEnv(this.url)).then(i=>i.json()).then(i=>{this.data=i}).catch(i=>{console.warn("ESEntityCluster数据加载失败",i)})}while(!1)};n(),this.d(this.urlChanged.don(n))}}get typeName(){return"ESEntityCluster"}get defaultProps(){return xr.createDefaultProps()}get widgetEvent(){return this._widgetEvent}get data(){return this._data.value}set data(t){this._data.value=t}get dataChanged(){return this._data.changed}getFeatures(){if(this._data)return this._data;console.log("数据未加载完成,请稍后重试")}getESProperties(){const t={...super.getESProperties()};return{...t,basic:[...t.basic,new ne("地址","数据Url地址",!1,!1,[this,"url"],xr.defaults.url),new q("集合范围","用于扩展屏幕空间边界框的像素范围",!1,!1,[this,"pixelRange"],xr.defaults.pixelRange),new q("最小数量","可以聚合的屏幕空间对象的最小数量",!1,!1,[this,"minimumClusterSize"],xr.defaults.minimumClusterSize),new ce("高度模式","高度获取模式",!1,!1,[this,"heightReference"],xr.defaults.heightReferences,"None")]}}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new ne("url","数据Url地址",!1,!1,[this,"url"],xr.defaults.url),new q("pixelRange","用于扩展屏幕空间边界框的像素范围",!1,!1,[this,"pixelRange"],xr.defaults.pixelRange),new q("minimumClusterSize","可以聚合的屏幕空间对象的最小数量",!1,!1,[this,"minimumClusterSize"],xr.defaults.minimumClusterSize),new ne("style","用于设置聚合和非聚合的显示样式",!1,!1,[this,"style"],xr.defaults.style),new ce("heightReference","高度获取模式",!1,!1,[this,"heightReference"],xr.defaults.heightReferences)]),new ee("UE","UE",[new $("perspective","是否启用透视效果,自动缩放远处标签",!1,!1,[this,"perspective"],xr.defaults.perspective)])]}};D(xr,"type",xr.register("ESEntityCluster",xr,{chsName:"Poi聚合",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"用于聚合POI标注,提高性能。"})),D(xr,"defaults",{...Be.defaults,url:"",pixelRange:200,minimumClusterSize:2,style:{cluster:[{minValue:2,mode:"SquareV02",style:{}}],nonCluster:{mode:"SquareV03",style:{}}},heightReferences:[["None","None"],["CLAMP_TO_GROUND","CLAMP_TO_GROUND"],["CLAMP_TO_TERRAIN","CLAMP_TO_TERRAIN"]],perspective:!1});let pu=xr;(r=>{r.createDefaultProps=()=>({...Be.createDefaultProps(),url:"",pixelRange:200,minimumClusterSize:2,style:M.reactJsonWithUndefined(void 0),heightReference:"None",perspective:!1})})(pu||(pu={})),M.extendClassProps(pu.prototype,pu.createDefaultProps);class Wc extends M.Destroyable{constructor(){super();D(this,"_player",this.disposeVar(new Ni));const t=this._player;{const n=()=>{const i=(this.stopTime??0)-(this.startTime??0);t.duration=i>0?i:0};n(),this.d(this.startTimeChanged.don(n)),this.d(this.stopTimeChanged.don(n))}this.d(M.bind([t,"playing"],[this,"playing"])),this.d(M.bind([t,"loop"],[this,"loop"])),this.d(M.bind([t,"speed"],[this,"speed"])),this.d(t.currentTimeChanged.don(()=>{this.startTime!==void 0&&t.currentTime!==void 0&&(this.currentTime=t.currentTime+this.startTime)})),this.d(this.currentTimeChanged.don(()=>{if(this.currentTime===void 0||this.startTime===void 0)return;const n=this.currentTime-this.startTime;t.currentTime=M.clamp(n,0,t.duration)}))}get player(){return this._player}get ratio(){return this._player.ratio}get ratioChanged(){return this._player.ratioChanged}set ratio(t){this._player.ratio=t}}(r=>{r.createDefaultProps=()=>({...we.createDefaultProps(),currentTime:void 0,startTime:void 0,stopTime:void 0,playing:void 0,loop:void 0,speed:void 0})})(Wc||(Wc={})),M.extendClassProps(Wc.prototype,Wc.createDefaultProps);const qu=class qu extends we{constructor(t){super(t);D(this,"_absolutePlayer",this.dv(new Wc));const n=this.absolutePlayer;this.d(M.bind([n,"currentTime"],[this,"currentTime"])),this.d(M.bind([n,"startTime"],[this,"startTime"])),this.d(M.bind([n,"stopTime"],[this,"stopTime"])),this.d(M.bind([n,"playing"],[this,"playing"])),this.d(M.bind([n,"loop"],[this,"loop"])),this.d(M.bind([n,"speed"],[this,"speed"]))}get typeName(){return"ESPlayer"}get defaultProps(){return qu.createDefaultProps()}get absolutePlayer(){return this._absolutePlayer}get ratio(){return this._absolutePlayer.ratio}get ratioChanged(){return this._absolutePlayer.ratioChanged}set ratio(t){this._absolutePlayer.ratio=t}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new Kc("播放器","播放器",[this,"playing"],[this,"ratio"],[this,"loop"]),new Bi("currentTime","currentTime",!1,!1,[this,"currentTime"]),new Bi("startTime","startTime",!1,!1,[this,"startTime"]),new Bi("stopTime","stopTime",!1,!1,[this,"stopTime"]),new $("playing","playing",!1,!1,[this,"playing"]),new $("loop","loop",!1,!1,[this,"loop"]),new q("speed","speed",!1,!1,[this,"speed"])])]}};D(qu,"type",qu.register("ESPlayer",qu,{chsName:"ESPlayer",tags:["ESObjects","_ES_Impl_UE"],description:"ESPlayer"})),D(qu,"defaults",{...we.defaults,currentTime:0,startTime:0,stopTime:0,playing:!1,loop:!1,speed:1});let ks=qu;(r=>{r.createDefaultProps=()=>({...we.createDefaultProps(),currentTime:0,startTime:0,stopTime:0,playing:!1,loop:!1,speed:1})})(ks||(ks={})),M.extendClassProps(ks.prototype,ks.createDefaultProps);function Hy(r,e=!1){const t=r.map(i=>[i[0],[...i[1]],i[2]?[...i[2]]:void 0]),n=t.length;if(n===0)return t;if(n===1)return(!t[0][2]===void 0||e)&&(t[0][2]=void 0),t;for(let i=1;i<n;++i){if(t[i][2]!==void 0&&!e)continue;const o=t[i-1][1],s=t[i][1],a=ss(o),c=ss(s),f=M.Vector.distance(a,c);if(f===0){t[i][2]=t[i-1][2];continue}const m=kh(o,s),p=s[2]-o[2],g=Math.asin(p/f)*180/Math.PI,w=Number.isFinite(m)?m:0,_=Number.isFinite(g)?g:0;t[i][2]=[w,_,0]}return(t[0][2]===void 0||e)&&(t[0][2]=n>1?t[1][2]:void 0),t}function Xy(r,e=!1){const t=r.map(i=>[i[0],[...i[1]],i[2]?[...i[2]]:void 0]),n=t.length;if(n===0)return t;if(n===1)return(!t[0][2]===void 0||e)&&(t[0][2]=void 0),t;for(let i=n-2;i>=0;--i){if(t[i][2]!==void 0&&!e)continue;const o=t[i][1],s=t[i+1][1],a=ss(o),c=ss(s),f=M.Vector.distance(a,c);if(f===0){t[i][2]=t[i+1][2];continue}const m=kh(o,s),p=s[2]-o[2],g=Math.asin(p/f)*180/Math.PI,w=Number.isFinite(m)?m:0,_=Number.isFinite(g)?g:0;t[i][2]=[w,_,0]}return(t[n-1][2]===void 0||e)&&(t[n-1][2]=n>1?t[n-2][2]:[0,0,0]),t}function hC(r,e=!1){const t=Hy(r,e),n=Xy(r,e);if(t.length!==n.length)throw new Error("p.length !== n.length");const i=t.length;for(let o=0;o<i;o++){const s=t[o][2],a=n[o][2];s===void 0&&a===void 0?t[o][2]=void 0:s===void 0?t[o][2]=a:a===void 0?t[o][2]=s:t[o][2]=Ad(s,a,.5)}return t}function fC(r,e,t){let i;if(!r.timePosRots)return;const o=[],s=r.timePosRots.length;if(!(s<=2)){o.push(r.timePosRots[0]);for(let a=1;a<s-1;++a){const c=r.timePosRots[a-1][0],f=r.timePosRots[a][0],m=r.timePosRots[a+1][0],p=r.accumDistances[a-1],g=r.accumDistances[a],w=r.accumDistances[a+1];do{const _=g-p;if(_===0)continue;const y=_-(i??(e.length==1?e[0]:e[a-1]||e[e.length-1])*.5);let h=(y<0?0:y)/_;Number.isNaN(h)&&(h=0);const d=(1-h)*c+h*f,u=r.getCurrent(d);if(!u)break;o.push([d,u.position,u.rotation])}while(!1);t&&o.push(r.timePosRots[a]);do{const _=w-g;if(_===0)continue;let y=(e.length==1?e[0]:e[a-1]||e[e.length-1])*.5;const h=(e.length==1?e[0]:e[a]||e[e.length-1])*.5||0;y+h>_?(y=_*(y/(y+h)),i=_-y):i=void 0;let d=(y<0?0:y)/_;const u=(1-d)*f+d*m,l=r.getCurrent(u);if(!l)break;o.push([u,l.position,l.rotation])}while(!1)}o.push(r.timePosRots[s-1]),r.timePosRots=o}}function Yy(r,e){if(e<0)return[void 0,0];if(e>r.length-1)return[void 0,r.length-1];let t;do{if(t=r[e][2],t||e-1<0)break;--e}while(!0);return[t,e]}function Jy(r,e){if(e<0)return[void 0,0];if(e>r.length-1)return[void 0,r.length-1];let t;do{if(t=r[e][2],t||e+1>=r.length)break;++e}while(!0);return[t,e]}function dC(r,e,t="Lerp"){let n,i,o,s;if(r.length!==0){do{if(e<=r[0][0]){n=r[0][1],i=r[0][2],o=0,s=0;break}else if(e>=r[r.length-1][0]){const[f,m,p]=r[r.length-1];n=m,i=p,o=r.length-2,s=1;break}const c=r.findIndex(([f])=>e<=f);if(c===-1)throw new Error("nextIndex === -1");o=c-1;{const[f,m]=r[o],[p,g]=r[c],w=(e-f)/(p-f),_=Dd(m),y=Dd(g),h=M.Vector.lerp(_,y,w);n=hy(h),s=w}{let[f,m]=Yy(r,o),[p,g]=Jy(r,c);if(t==="Lerp")if(f&&p){if(m<0||g>=r.length)throw new Error("Invalid rotation index");const w=(e-r[m][0])/(r[g][0]-r[m][0]);i=Ad(f,p,w)}else f?i=f:p?i=p:i=void 0;else t==="Prev"?f&&(i=f):t==="Next"&&p&&(i=p)}}while(!1);return{position:n,rotation:i,index:o,ratio:s}}}function pC(r){try{const e=JSON.parse(r);if(Array.isArray(e)&&e.length>0){const t=typeof e[0][0]=="number",n=Array.isArray(e[0][1])&&e[0][1].length===3;return t&&n?e:void 0}throw new Error("解析有问题")}catch{const t=r.split(/\n|\r\n/),n=[],i=t.length;for(let o=0;o<i;++o){const s=t[o],a=s.split(/[^0-9e\.\+\-]+/).filter(c=>c!=="").map(c=>+c);a.length<4?console.warn(`第${o+1}行数据无法解析成路径的数据, 原内容为: ${s}`):a.length<7?n.push([a[0],[a[1],a[2],a[3]],void 0]):n.push([a[0],[a[1],a[2],a[3]],[a[4],a[5],a[6]]])}return n}}function gC(r,e,t){const{timePosRots:n}=r;if(!n)throw new Error("!timePosRots");if(n.length===0)throw new Error("timePosRots.length === 0");e=Math.max(e,n[0][0]),t=Math.min(t,n[n.length-1][0]);const i=r.getCurrent(e),o=r.getCurrent(t);if(!i||!o)return;const s=[];i.ratio<1&&s.push([e,i.position,i.rotation]);for(let a=i.index+1;a<=o.index;++a)s.push(n[a]);return o.ratio>0&&s.push([t,o.position,o.rotation]),s}const vC=`
650
+ `},jo=class jo extends Be{get typeName(){return"ESPoiTileset"}get defaultProps(){return jo.createDefaultProps()}constructor(e){super(e)}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new ne("路径","路径",!1,!1,[this,"url"]),new ne("poiTypes","类型为 {type: string, povit: Vector2D, widget: string, worldScale: number, hiddenDistance: number}[]",!1,!1,[this,"poiTypes"],jo.defaults.poiTypes,qy.sampleValue),new q("heightOffset","heightOffset",!1,!1,[this,"heightOffset"])])]}};D(jo,"type",jo.register("ESPoiTileset",jo,{chsName:"ESPoiTileset",tags:["ESObjects","_ES_Impl_UE"],description:"ESPoiTileset"})),D(jo,"defaults",{...Be.defaults,poiTypes:qy.defaultValue});let hu=jo;(r=>{r.createDefaultProps=()=>({...Be.createDefaultProps(),url:"",poiTypes:M.reactJsonWithUndefined(void 0),heightOffset:40})})(hu||(hu={})),M.extendClassProps(hu.prototype,hu.createDefaultProps);const Uu=class Uu extends we{get typeName(){return"ESScale"}get defaultProps(){return Uu.createDefaultProps()}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new $("是否显示","A boolean Property specifying the visibility .",!1,!1,[this,"show"]),new ce("定位","放到屏幕的哪个位置",!1,!1,[this,"screenPosition"],[["left","left"],["right","right"]]),new lt("位置","位置(bottom,right/left)",!1,!1,[this,"cssPosition"])])]}};D(Uu,"type",Uu.register("ESScale",Uu,{chsName:"比例尺",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"比例尺"})),D(Uu,"defaults",{...we.defaults,show:!0,screenPosition:"right",cssPosition:[40,18]});let fu=Uu;(r=>{r.createDefaultProps=()=>({...we.createDefaultProps(),show:!0,screenPosition:"right",cssPosition:[40,30]})})(fu||(fu={})),M.extendClassProps(fu.prototype,fu.createDefaultProps);const wn=class wn extends Ue{get typeName(){return"ESGeoExtrudedPolygon"}get defaultProps(){return wn.createDefaultProps()}constructor(e){super(e),this.collision=!1}getESProperties(){const e={...super.getESProperties()};return{...e,coordinate:[...e.coordinate,new q("高度","高度 m",!0,!1,[this,"height"],wn.defaults.height),new q("拉伸高度","拉伸高度 m",!0,!1,[this,"extrudedHeight"],wn.defaults.extrudedHeight),new $("应用每个位置高度","应用每个位置高度",!0,!1,[this,"perPositionHeight"],wn.defaults.perPositionHeight)],style:[new ee("点样式","点样式集合",[]),new $("开启","开启点样式",!1,!1,[this,"pointed"],!1),new q("点大小","点大小(pointSize)",!1,!1,[this,"pointSize"],1),new ce("点类型","点类型(pointSizeType)",!1,!1,[this,"pointSizeType"],[["screen","screen"],["world","world"]],"screen"),new pe("点颜色","点颜色(pointColor)",!1,!1,[this,"pointColor"],[1,1,1,1]),new ee("线样式","线样式集合",[]),new $("开启","开启线样式",!1,!1,[this,"stroked"],!1),new $("贴地","是否贴地",!1,!1,[this,"strokeGround"],!1),new q("线宽","线宽(strokeWidth)",!1,!1,[this,"strokeWidth"],1),new ce("线类型","线类型(strokeWidthType)",!1,!1,[this,"strokeWidthType"],[["screen","screen"],["world","world"]],"screen"),new pe("线颜色","线颜色(strokeColor)",!1,!1,[this,"strokeColor"],[1,1,1,1]),new ee("面样式","面样式集合",[]),new $("开启","开启填充样式",!1,!1,[this,"filled"],!0),new $("贴地","是否贴地",!1,!1,[this,"fillGround"],!1),new pe("填充颜色","填充颜色(fillColor)",!1,!1,[this,"fillColor"],[1,1,1,1])]}}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new q("高度","高度 m",!0,!1,[this,"height"],wn.defaults.height),new q("拉伸高度","拉伸高度 m",!0,!1,[this,"extrudedHeight"],wn.defaults.extrudedHeight),new $("应用每个位置高度","应用每个位置高度",!0,!1,[this,"perPositionHeight"],wn.defaults.perPositionHeight)])]}};D(wn,"type",wn.register("ESGeoExtrudedPolygon",wn,{chsName:"拉升多边形体",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"拉升多边形体"})),D(wn,"supportEditingModes",[...Ue.supportEditingModes,xe.HeightModify]),D(wn,"defaults",{...Ue.defaults,height:0,extrudedHeight:10,perPositionHeight:!1});let js=wn;(r=>{r.createDefaultProps=()=>({...Ue.createDefaultProps(),height:0,extrudedHeight:10,perPositionHeight:!1})})(js||(js={})),M.extendClassProps(js.prototype,js.createDefaultProps);const Wu=class Wu extends Ue{constructor(t){super(t);D(this,"_classification",this.dv(new xo(`${this.id}_ESClassification`)));D(this,"_geoExtrudedPolygon",this.dv(new js(`${this.id}_ESGeoExtrudedPolygon`)));D(this,"combinationClass",!0);this.mainClass=this._geoExtrudedPolygon,this.d(this.components.disposableAdd(this._classification)),this.d(this.components.disposableAdd(this._geoExtrudedPolygon));{const{_classification:n,_geoExtrudedPolygon:i}=this;i.perPositionHeight=!0,this.d(M.track([n,"collision"],[this,"collision"])),this.d(M.track([i,"collision"],[this,"collision"])),this.d(M.bind([i,"flyInParam"],[this,"flyInParam"])),this.d(M.bind([i,"flyToParam"],[this,"flyToParam"])),this.d(M.bind([i,"points"],[this,"points"])),this.d(M.bind([i,"extrudedHeight"],[this,"height"])),this.d(M.bind([n,"fillColor"],[this,"overheightColor"])),this.d(M.bind([i,"fillColor"],[this,"standardColor"]));{const o=()=>{const{height:a,points:c,maxHeight:f}=this;if(!c)return;const m=c.map(p=>[p[0],p[1],a]);n.points=m,n.height=f-a,f-a<=0?n.show=!1:n.show=this.show&&this.filled};o();const s=this.dv(M.createNextAnimateFrameEvent(this.heightChanged,this.pointsChanged,this.maxHeightChanged));this.d(s.don(o))}{const o=()=>{const{show:a,filled:c}=this;n.show=a&&c,i.show=a&&c};o();const s=this.dv(M.createNextAnimateFrameEvent(this.showChanged,this.filledChanged));this.d(s.don(o))}this.dispose(this.flyInEvent.don(o=>{i.flyIn(o)})),this.dispose(this.flyToEvent.don(o=>{i.flyTo(o)})),this.dispose(this.calcFlyToParamEvent.don(()=>{i.calcFlyToParam()})),this.dispose(this.calcFlyInParamEvent.don(()=>{i.calcFlyInParam()}))}}get typeName(){return"ESHeightLimitAnalysis"}get defaultProps(){return Wu.createDefaultProps()}get classification(){return this._classification}get geoExtrudedPolygon(){return this._geoExtrudedPolygon}getESProperties(){const t={...super.getESProperties()};return{...t,defaultMenu:"basic",basic:[...t.basic,new q("高度","控高的高度",!1,!1,[this,"height"],10),new q("最高高度","最高高度",!1,!1,[this,"maxHeight"],200),new pe("超高颜色","超高颜色",!1,!1,[this,"overheightColor"],[1,0,0,.5]),new pe("标准颜色","标准颜色",!1,!1,[this,"standardColor"],[0,1,0,.5])],style:[new ee("点样式","点样式集合",[]),new $("开启","开启点样式",!1,!1,[this,"pointed"],!1),new q("点大小","点大小(pointSize)",!1,!1,[this,"pointSize"],1),new ce("点类型","点类型(pointSizeType)",!1,!1,[this,"pointSizeType"],[["screen","screen"],["world","world"]],"screen"),new pe("点颜色","点颜色(pointColor)",!1,!1,[this,"pointColor"],[1,1,1,1]),new ee("线样式","线样式集合",[]),new $("开启","开启线样式",!1,!1,[this,"stroked"],!1),new $("贴地","是否贴地",!1,!1,[this,"strokeGround"],!1),new q("线宽","线宽(strokeWidth)",!1,!1,[this,"strokeWidth"],1),new ce("线类型","线类型(strokeWidthType)",!1,!1,[this,"strokeWidthType"],[["screen","screen"],["world","world"]],"screen"),new pe("线颜色","线颜色(strokeColor)",!1,!1,[this,"strokeColor"],[1,1,1,1]),new ee("面样式","面样式集合",[]),new $("开启","开启填充样式",!1,!1,[this,"filled"],!0),new $("贴地","是否贴地",!1,!1,[this,"fillGround"],!1),new pe("填充颜色","填充颜色(fillColor)",!1,!1,[this,"fillColor"],[1,1,1,1])]}}getProperties(t){return[...super.getProperties(t),new q("高度","控高的高度",!1,!1,[this,"height"],10),new q("最高高度","最高高度",!1,!1,[this,"maxHeight"],200),new pe("超高颜色","超高颜色",!1,!1,[this,"overheightColor"],[1,0,0,.5]),new pe("标准颜色","标准颜色",!1,!1,[this,"standardColor"],[0,1,0,.5])]}};D(Wu,"type",Wu.register("ESHeightLimitAnalysis",Wu,{chsName:"控高分析",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"控高分析对象"})),D(Wu,"supportEditingModes",[...Ue.supportEditingModes,xe.HeightModify]);let du=Wu;(r=>{r.createDefaultProps=()=>({height:10,maxHeight:200,overheightColor:[1,0,0,.5],standardColor:[0,1,0,.5],...Ue.createDefaultProps()})})(du||(du={})),M.extendClassProps(du.prototype,du.createDefaultProps);const xr=class xr extends Be{constructor(t){super(t);D(this,"_widgetEvent",this.dv(new M.Event));D(this,"_data",this.dv(M.react(void 0)));{const n=()=>{if(this.url)do{if(typeof this.url=="object"){this.data=this.url;break}if(Wy(this.url)){this.data=JSON.parse(this.url);break}fetch(we.context.getStrFromEnv(this.url)).then(i=>i.json()).then(i=>{this.data=i}).catch(i=>{console.warn("ESEntityCluster数据加载失败",i)})}while(!1)};n(),this.d(this.urlChanged.don(n))}}get typeName(){return"ESEntityCluster"}get defaultProps(){return xr.createDefaultProps()}get widgetEvent(){return this._widgetEvent}get data(){return this._data.value}set data(t){this._data.value=t}get dataChanged(){return this._data.changed}getFeatures(){if(this._data)return this._data;console.log("数据未加载完成,请稍后重试")}getESProperties(){const t={...super.getESProperties()};return{...t,basic:[...t.basic,new ne("地址","数据Url地址",!1,!1,[this,"url"],xr.defaults.url),new q("集合范围","用于扩展屏幕空间边界框的像素范围",!1,!1,[this,"pixelRange"],xr.defaults.pixelRange),new q("最小数量","可以聚合的屏幕空间对象的最小数量",!1,!1,[this,"minimumClusterSize"],xr.defaults.minimumClusterSize),new ce("高度模式","高度获取模式",!1,!1,[this,"heightReference"],xr.defaults.heightReferences,"None")]}}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new ne("url","数据Url地址",!1,!1,[this,"url"],xr.defaults.url),new q("pixelRange","用于扩展屏幕空间边界框的像素范围",!1,!1,[this,"pixelRange"],xr.defaults.pixelRange),new q("minimumClusterSize","可以聚合的屏幕空间对象的最小数量",!1,!1,[this,"minimumClusterSize"],xr.defaults.minimumClusterSize),new ne("style","用于设置聚合和非聚合的显示样式",!1,!1,[this,"style"],xr.defaults.style),new ce("heightReference","高度获取模式",!1,!1,[this,"heightReference"],xr.defaults.heightReferences)]),new ee("UE","UE",[new $("perspective","是否启用透视效果,自动缩放远处标签",!1,!1,[this,"perspective"],xr.defaults.perspective)])]}};D(xr,"type",xr.register("ESEntityCluster",xr,{chsName:"Poi聚合",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"用于聚合POI标注,提高性能。"})),D(xr,"defaults",{...Be.defaults,url:"",pixelRange:200,minimumClusterSize:2,style:{cluster:[{minValue:2,mode:"SquareV02",style:{}}],nonCluster:{mode:"SquareV03",style:{}}},heightReferences:[["None","None"],["CLAMP_TO_GROUND","CLAMP_TO_GROUND"],["CLAMP_TO_TERRAIN","CLAMP_TO_TERRAIN"]],perspective:!1});let pu=xr;(r=>{r.createDefaultProps=()=>({...Be.createDefaultProps(),url:"",pixelRange:200,minimumClusterSize:2,style:M.reactJsonWithUndefined(void 0),heightReference:"None",perspective:!1})})(pu||(pu={})),M.extendClassProps(pu.prototype,pu.createDefaultProps);class Wc extends M.Destroyable{constructor(){super();D(this,"_player",this.disposeVar(new Ni));const t=this._player;{const n=()=>{const i=(this.stopTime??0)-(this.startTime??0);t.duration=i>0?i:0};n(),this.d(this.startTimeChanged.don(n)),this.d(this.stopTimeChanged.don(n))}this.d(M.bind([t,"playing"],[this,"playing"])),this.d(M.bind([t,"loop"],[this,"loop"])),this.d(M.bind([t,"speed"],[this,"speed"])),this.d(t.currentTimeChanged.don(()=>{this.startTime!==void 0&&t.currentTime!==void 0&&(this.currentTime=t.currentTime+this.startTime)})),this.d(this.currentTimeChanged.don(()=>{if(this.currentTime===void 0||this.startTime===void 0)return;const n=this.currentTime-this.startTime;t.currentTime=M.clamp(n,0,t.duration)}))}get player(){return this._player}get ratio(){return this._player.ratio}get ratioChanged(){return this._player.ratioChanged}set ratio(t){this._player.ratio=t}}(r=>{r.createDefaultProps=()=>({...we.createDefaultProps(),currentTime:void 0,startTime:void 0,stopTime:void 0,playing:void 0,loop:void 0,speed:void 0})})(Wc||(Wc={})),M.extendClassProps(Wc.prototype,Wc.createDefaultProps);const qu=class qu extends we{constructor(t){super(t);D(this,"_absolutePlayer",this.dv(new Wc));const n=this.absolutePlayer;this.d(M.bind([n,"currentTime"],[this,"currentTime"])),this.d(M.bind([n,"startTime"],[this,"startTime"])),this.d(M.bind([n,"stopTime"],[this,"stopTime"])),this.d(M.bind([n,"playing"],[this,"playing"])),this.d(M.bind([n,"loop"],[this,"loop"])),this.d(M.bind([n,"speed"],[this,"speed"]))}get typeName(){return"ESPlayer"}get defaultProps(){return qu.createDefaultProps()}get absolutePlayer(){return this._absolutePlayer}get ratio(){return this._absolutePlayer.ratio}get ratioChanged(){return this._absolutePlayer.ratioChanged}set ratio(t){this._absolutePlayer.ratio=t}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new Kc("播放器","播放器",[this,"playing"],[this,"ratio"],[this,"loop"]),new Bi("currentTime","currentTime",!1,!1,[this,"currentTime"]),new Bi("startTime","startTime",!1,!1,[this,"startTime"]),new Bi("stopTime","stopTime",!1,!1,[this,"stopTime"]),new $("playing","playing",!1,!1,[this,"playing"]),new $("loop","loop",!1,!1,[this,"loop"]),new q("speed","speed",!1,!1,[this,"speed"])])]}};D(qu,"type",qu.register("ESPlayer",qu,{chsName:"ESPlayer",tags:["ESObjects","_ES_Impl_UE"],description:"ESPlayer"})),D(qu,"defaults",{...we.defaults,currentTime:0,startTime:0,stopTime:0,playing:!1,loop:!1,speed:1});let ks=qu;(r=>{r.createDefaultProps=()=>({...we.createDefaultProps(),currentTime:0,startTime:0,stopTime:0,playing:!1,loop:!1,speed:1})})(ks||(ks={})),M.extendClassProps(ks.prototype,ks.createDefaultProps);function Hy(r,e=!1){const t=r.map(i=>[i[0],[...i[1]],i[2]?[...i[2]]:void 0]),n=t.length;if(n===0)return t;if(n===1)return(!t[0][2]===void 0||e)&&(t[0][2]=void 0),t;for(let i=1;i<n;++i){if(t[i][2]!==void 0&&!e)continue;const o=t[i-1][1],s=t[i][1],a=ss(o),c=ss(s),f=M.Vector.distance(a,c);if(f===0){t[i][2]=t[i-1][2];continue}const m=kh(o,s),p=s[2]-o[2],g=Math.asin(p/f)*180/Math.PI,w=Number.isFinite(m)?m:0,_=Number.isFinite(g)?g:0;t[i][2]=[w,_,0]}return(t[0][2]===void 0||e)&&(t[0][2]=n>1?t[1][2]:void 0),t}function Xy(r,e=!1){const t=r.map(i=>[i[0],[...i[1]],i[2]?[...i[2]]:void 0]),n=t.length;if(n===0)return t;if(n===1)return(!t[0][2]===void 0||e)&&(t[0][2]=void 0),t;for(let i=n-2;i>=0;--i){if(t[i][2]!==void 0&&!e)continue;const o=t[i][1],s=t[i+1][1],a=ss(o),c=ss(s),f=M.Vector.distance(a,c);if(f===0){t[i][2]=t[i+1][2];continue}const m=kh(o,s),p=s[2]-o[2],g=Math.asin(p/f)*180/Math.PI,w=Number.isFinite(m)?m:0,_=Number.isFinite(g)?g:0;t[i][2]=[w,_,0]}return(t[n-1][2]===void 0||e)&&(t[n-1][2]=n>1?t[n-2][2]:[0,0,0]),t}function hC(r,e=!1){const t=Hy(r,e),n=Xy(r,e);if(t.length!==n.length)throw new Error("p.length !== n.length");const i=t.length;for(let o=0;o<i;o++){const s=t[o][2],a=n[o][2];s===void 0&&a===void 0?t[o][2]=void 0:s===void 0?t[o][2]=a:a===void 0?t[o][2]=s:t[o][2]=Ad(s,a,.5)}return t}function fC(r,e,t){let i;if(!r.timePosRots)return;const o=[],s=r.timePosRots.length;if(!(s<=2)){o.push(r.timePosRots[0]);for(let a=1;a<s-1;++a){const c=r.timePosRots[a-1][0],f=r.timePosRots[a][0],m=r.timePosRots[a+1][0],p=r.accumDistances[a-1],g=r.accumDistances[a],w=r.accumDistances[a+1];do{const _=g-p;if(_===0)continue;const y=_-(i??(e.length==1?e[0]:e[a-1]||e[e.length-1])*.5);let h=(y<0?0:y)/_;Number.isNaN(h)&&(h=0);const d=(1-h)*c+h*f,u=r.getCurrent(d);if(!u)break;o.push([d,u.position,u.rotation])}while(!1);t&&o.push(r.timePosRots[a]);do{const _=w-g;if(_===0)continue;let y=(e.length==1?e[0]:e[a-1]||e[e.length-1])*.5;const h=(e.length==1?e[0]:e[a]||e[e.length-1])*.5||0;y+h>_?(y=_*(y/(y+h)),i=_-y):i=void 0;let d=(y<0?0:y)/_;const u=(1-d)*f+d*m,l=r.getCurrent(u);if(!l)break;o.push([u,l.position,l.rotation])}while(!1)}o.push(r.timePosRots[s-1]),r.timePosRots=o}}function Yy(r,e){if(e<0)return[void 0,0];if(e>r.length-1)return[void 0,r.length-1];let t;do{if(t=r[e][2],t||e-1<0)break;--e}while(!0);return[t,e]}function Jy(r,e){if(e<0)return[void 0,0];if(e>r.length-1)return[void 0,r.length-1];let t;do{if(t=r[e][2],t||e+1>=r.length)break;++e}while(!0);return[t,e]}function dC(r,e,t="Lerp"){let n,i,o,s;if(r.length!==0){do{if(e<=r[0][0]){n=r[0][1],i=r[0][2],o=0,s=0;break}else if(e>=r[r.length-1][0]){const[f,m,p]=r[r.length-1];n=m,i=p,o=r.length-2,s=1;break}const c=r.findIndex(([f])=>e<=f);if(c===-1)throw new Error("nextIndex === -1");o=c-1;{const[f,m]=r[o],[p,g]=r[c],w=(e-f)/(p-f),_=Dd(m),y=Dd(g),h=M.Vector.lerp(_,y,w);n=hy(h),s=w}{let[f,m]=Yy(r,o),[p,g]=Jy(r,c);if(t==="Lerp")if(f&&p){if(m<0||g>=r.length)throw new Error("Invalid rotation index");const w=(e-r[m][0])/(r[g][0]-r[m][0]);i=Ad(f,p,w)}else f?i=f:p?i=p:i=void 0;else t==="Prev"?f&&(i=f):t==="Next"&&p&&(i=p)}}while(!1);return{position:n,rotation:i,index:o,ratio:s}}}function pC(r){try{const e=JSON.parse(r);if(Array.isArray(e)&&e.length>0){const t=typeof e[0][0]=="number",n=Array.isArray(e[0][1])&&e[0][1].length===3;return t&&n?e:void 0}throw new Error("解析有问题")}catch{const t=r.split(/\n|\r\n/),n=[],i=t.length;for(let o=0;o<i;++o){const s=t[o],a=s.split(/[^0-9e\.\+\-]+/).filter(c=>c!=="").map(c=>+c);a.length<4?console.warn(`第${o+1}行数据无法解析成路径的数据, 原内容为: ${s}`):a.length<7?n.push([a[0],[a[1],a[2],a[3]],void 0]):n.push([a[0],[a[1],a[2],a[3]],[a[4],a[5],a[6]]])}return n}}function gC(r,e,t){const{timePosRots:n}=r;if(!n)throw new Error("!timePosRots");if(n.length===0)throw new Error("timePosRots.length === 0");e=Math.max(e,n[0][0]),t=Math.min(t,n[n.length-1][0]);const i=r.getCurrent(e),o=r.getCurrent(t);if(!i||!o)return;const s=[];i.ratio<1&&s.push([e,i.position,i.rotation]);for(let a=i.index+1;a<=o.index;++a)s.push(n[a]);return o.ratio>0&&s.push([t,o.position,o.rotation]),s}const vC=`
651
651
  timePosRots是一个内部包含三个元素的数组,第一个表示时间戳,单位毫秒,第二个表示经纬度,第三个表示姿态(偏航、俯仰、翻转)。示例代码如下:
652
652
  \`\`\`
653
653
  [
@@ -770,10 +770,10 @@ ${Ky}
770
770
  `,Qy=Date.now();new Date(Qy).toISOString(),new Date(Qy+864e5).toISOString();const kt=class kt extends we{constructor(t){super(t);D(this,"_flyToEvent",this.disposeVar(new M.Event));D(this,"_resetClockEvent",this.disposeVar(new M.Event))}get typeName(){return"ESCzml"}get defaultProps(){return kt.createDefaultProps()}get flyToEvent(){return this._flyToEvent}flyTo(t){this._flyToEvent.emit(t)}get resetClockEvent(){return this._resetClockEvent}resetClock(){this._resetClockEvent.emit()}getESProperties(){const t={...super.getESProperties()};return{...t,defaultMenu:"basic",basic:[...t.basic,new ne("数据","数据",!0,!1,[this,"data"],kt.defaults.data,kt.defaults.dataMd),new ne("路径","路径",!1,!1,[this,"uri"],""),new $("启用","启用",!1,!1,[this,"clockEnabled"],!1),new q("倍速","倍速.",!1,!1,[this,"multiplier"],kt.defaults.multiplier),new $("自动设置时钟","自动设置时钟",!1,!1,[this,"autoResetClock"],!0),new Bi("开始时间","开始时间",!0,!1,[this,"startTime"],kt.defaults.startTime),new Bi("结束时间","结束时间",!0,!1,[this,"stopTime"],kt.defaults.stopTime),new Bi("当前时间","当前时间",!0,!1,[this,"currentTime"],kt.defaults.currentTime),new ce("clockStep","clockStep",!1,!1,[this,"clockStep"],[["TICK_DEPENDENT","TICK_DEPENDENT"],["SYSTEM_CLOCK_MULTIPLIER","SYSTEM_CLOCK_MULTIPLIER"],["SYSTEM_CLOCK","SYSTEM_CLOCK"]],"SYSTEM_CLOCK_MULTIPLIER"),new ce("clockRange","clockRange",!1,!1,[this,"clockRange"],[["UNBOUNDED","UNBOUNDED"],["CLAMPED","CLAMPED"],["LOOP_STOP","LOOP_STOP"]],"UNBOUNDED"),new $("是否启用动画","是否启用动画",!1,!1,[this,"shouldAnimate"],!1)],general:[...t.general,new de("唯一标识","id",!1,!0,[this,"id"]),new de("名称","name",!0,!1,[this,"name"]),new $("是否显示","show",!1,!1,[this,"show"],!0),new $("开启碰撞","collision",!1,!1,[this,"collision"],!1),new $("允许拾取","allowPicking",!1,!1,[this,"allowPicking"],!1)]}}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new $("是否显示","A boolean Property specifying the visibility .",!1,!1,[this,"show"]),new $("允许拾取","是否允许拾取",!1,!1,[this,"allowPicking"]),new Se("飞入","飞入",["number"],n=>this.flyTo(n),[1e3]),new ne("数据","数据",!0,!1,[this,"data"],kt.defaults.data,kt.defaults.dataMd),new ne("路径","路径",!1,!1,[this,"uri"]),new $("自动设置时钟","自动设置时钟",!1,!1,[this,"autoResetClock"]),new Se("重设时钟","根据当前加载的数据重设始终",[],()=>this.resetClock(),[]),new Vi("loadFnStr","loadFnStr",!0,!1,[this,"loadFuncStr"],kt.defaults.defaultLoadFuncStr,kt.defaults.defaultLoadFuncDocStr)]),new ee("时钟","时钟",[new $("启用","启用",!1,!1,[this,"clockEnabled"]),new Bi("开始时间","开始时间",!0,!1,[this,"startTime"],kt.defaults.startTime),new Bi("结束时间","结束时间",!0,!1,[this,"stopTime"],kt.defaults.stopTime),new Bi("当前时间","当前时间",!0,!1,[this,"currentTime"],kt.defaults.currentTime),new q("倍速","倍速.",!1,!1,[this,"multiplier"],kt.defaults.multiplier),new ce("clockStep","clockStep",!1,!1,[this,"clockStep"],[["TICK_DEPENDENT","TICK_DEPENDENT"],["SYSTEM_CLOCK_MULTIPLIER","SYSTEM_CLOCK_MULTIPLIER"],["SYSTEM_CLOCK","SYSTEM_CLOCK"]]),new ce("clockRange","clockRange",!1,!1,[this,"clockRange"],[["UNBOUNDED","UNBOUNDED"],["CLAMPED","CLAMPED"],["LOOP_STOP","LOOP_STOP"]]),new $("是否启用动画","是否启用动画",!1,!1,[this,"shouldAnimate"])])]}};D(kt,"type",kt.register("ESCzml",kt,{chsName:"ESCzml",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"Czml数据加载"})),D(kt,"defaults",{...we.defaults,show:!0,allowPicking:!0,data:yC,dataMd:mC,autoResetClock:!0,clockEnabled:!1,startTime:()=>Date.now(),stopTime:()=>Date.now()+864e5,currentTime:()=>Date.now(),multiplier:1,clockStep:"SYSTEM_CLOCK_MULTIPLIER",clockRange:"UNBOUNDED",shouldAnimate:!1,uri:"${earthsdk3-assets-script-dir}/assets/misc/simple.czml",defaultLoadFuncStr:Ky,defaultLoadFuncDocStr:_C});let yu=kt;(r=>{r.createDefaultProps=()=>({show:!0,uri:"",allowPicking:!1,data:M.reactJsonWithUndefined(void 0),autoResetClock:!0,clockEnabled:!1,startTime:void 0,stopTime:void 0,currentTime:void 0,multiplier:1,clockStep:"SYSTEM_CLOCK_MULTIPLIER",clockRange:"UNBOUNDED",shouldAnimate:!1,loadFuncStr:void 0,...we.createDefaultProps()})})(yu||(yu={})),M.extendClassProps(yu.prototype,yu.createDefaultProps);const Hu=class Hu extends we{get typeName(){return"ESNavigator"}get defaultProps(){return Hu.createDefaultProps()}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new $("是否显示","A boolean Property specifying the visibility .",!1,!1,[this,"show"]),new q("尺寸","尺寸",!1,!1,[this,"cssSize"]),new lt("位置","位置(top,right)",!1,!1,[this,"cssPosition"]),new Xl("图片地址","图片地址",!1,!1,[this,"imgUrl"])])]}};D(Hu,"type",Hu.register("ESNavigator",Hu,{chsName:"导航控件",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"导航控件"})),D(Hu,"defaults",{...we.defaults,show:!0,cssPosition:[170,30],cssSize:100,imgUrl:we.context.getStrFromEnv("${earthsdk3-assets-script-dir}/assets/img/zhinanzhen.png")});let mu=Hu;(r=>{r.createDefaultProps=()=>({...we.createDefaultProps(),show:!0,cssSize:100,cssPosition:[170,30],imgUrl:r.defaults.imgUrl})})(mu||(mu={})),M.extendClassProps(mu.prototype,mu.createDefaultProps);const Li=class Li extends we{get typeName(){return"ESViewerStatusBar"}get defaultProps(){return Li.createDefaultProps()}constructor(e){super(e)}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new $("是否显示","A boolean Property specifying the visibility .",!1,!1,[this,"show"],Li.defaults.show),new q("高度","height",!0,!1,[this,"height"],Li.defaults.height),new q("文字大小","fontSize",!0,!1,[this,"fontSize"],Li.defaults.fontSize),new pe("背景颜色"," 背景颜色",!0,!1,[this,"bgColor"],Li.defaults.bgColor)])]}};D(Li,"type",Li.register("ESViewerStatusBar",Li,{chsName:"状态栏",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"状态栏"})),D(Li,"defaults",{...we.defaults,show:!0,height:30,fontSize:14,bgColor:[71,71,71,.8]});let _u=Li;(r=>{r.createDefaultProps=()=>({...we.createDefaultProps(),show:!0,height:30,fontSize:14,bgColor:[.2784313725490196,.2784313725490196,.2784313725490196,.8]})})(_u||(_u={})),M.extendClassProps(_u.prototype,_u.createDefaultProps);const Fi=class Fi extends we{get typeName(){return"ESViewerStatusBarScale"}get defaultProps(){return Fi.createDefaultProps()}constructor(e){super(e)}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new $("是否显示","A boolean Property specifying the visibility .",!1,!1,[this,"show"],Fi.defaults.show),new q("高度","height",!0,!1,[this,"height"],Fi.defaults.height),new q("文字大小","fontSize",!0,!1,[this,"fontSize"],Fi.defaults.fontSize),new pe("背景颜色"," 背景颜色",!0,!1,[this,"bgColor"],Fi.defaults.bgColor)])]}};D(Fi,"type",Fi.register("ESViewerStatusBarScale",Fi,{chsName:"比例尺状态栏",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"状态栏"})),D(Fi,"defaults",{...we.defaults,show:!0,height:30,fontSize:14,bgColor:[71,71,71,.8]});let bu=Fi;(r=>{r.createDefaultProps=()=>({...we.createDefaultProps(),show:!0,height:30,fontSize:14,bgColor:[.2784313725490196,.2784313725490196,.2784313725490196,.8]})})(bu||(bu={})),M.extendClassProps(bu.prototype,bu.createDefaultProps);const Xu=class Xu extends le{get typeName(){return"ESGaussianSplatting"}get defaultProps(){return Xu.createDefaultProps()}constructor(e){super(e)}getESProperties(){const e={...super.getESProperties()};return{...e,basic:[...e.basic,new de("路径","url",!0,!1,[this,"url"]),new q("进度","progress",!1,!0,[this,"progress"],0)]}}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new de("路径","url",!0,!1,[this,"url"]),new q("进度","progress",!1,!0,[this,"progress"],0)])]}};D(Xu,"type",Xu.register("ESGaussianSplatting",Xu,{chsName:"高斯溅射模型",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"用于加载高斯溅射模型的 ES 对象"})),D(Xu,"defaults",{...le.defaults});let wu=Xu;(r=>{r.createDefaultProps=()=>({...le.createDefaultProps(),url:"",progress:0})})(wu||(wu={})),M.extendClassProps(wu.prototype,wu.createDefaultProps);const Ks=class Ks extends le{get typeName(){return"ESStaticMesh"}get defaultProps(){return Ks.createDefaultProps()}constructor(e){super(e)}getESProperties(){const e={...super.getESProperties()},t=[new de("mesh地址","mesh地址",!1,!1,[this,"mesh"],Ks.defaults.mesh)];return e.basic.push(...t),e}getProperties(e){return[...super.getProperties(e),new ee("ESStaticMesh","ESStaticMesh",[new de("mesh地址","mesh地址",!1,!1,[this,"mesh"],Ks.defaults.mesh)])]}};D(Ks,"type",Ks.register("ESStaticMesh",Ks,{chsName:"静态网格",tags:["ESObjects","_ES_Impl_UE"],description:"Unreal的Mesh对象"})),D(Ks,"defaults",{...le.defaults,mesh:"StaticMesh'/Engine/BasicShapes/Sphere.Sphere'"});let Eu=Ks;(r=>{r.createDefaultProps=()=>({...le.createDefaultProps(),mesh:""})})(Eu||(Eu={})),M.extendClassProps(Eu.prototype,Eu.createDefaultProps);const Yu=class Yu extends Ae{constructor(t){super(t);D(this,"_startEvent",this.dv(new M.Event));D(this,"_clearEvent",this.dv(new M.Event));D(this,"_eSGeoExtrudedPolygon");this._eSGeoExtrudedPolygon=this.disposeVar(new js(`${this.id}_ESGeoExtrudedPolygon`)),this.ad(this.components.disposableAdd(this._eSGeoExtrudedPolygon)),this.eSGeoExtrudedPolygon.perPositionHeight=!0,this.eSGeoExtrudedPolygon.extrudedHeight=0,this.stroked=!0,this.strokeWidth=2,this.strokeColor=[1,0,0,1],this.ad(M.track([this.eSGeoExtrudedPolygon,"show"],[this,"show"])),this.ad(M.track([this.eSGeoExtrudedPolygon,"stroked"],[this,"stroked"])),this.ad(M.track([this.eSGeoExtrudedPolygon,"strokeWidth"],[this,"strokeWidth"])),this.ad(M.track([this.eSGeoExtrudedPolygon,"strokeColor"],[this,"strokeColor"])),this.ad(M.track([this.eSGeoExtrudedPolygon,"filled"],[this,"filled"])),this.ad(M.track([this.eSGeoExtrudedPolygon,"fillColor"],[this,"fillColor"])),this.ad(M.track([this.eSGeoExtrudedPolygon,"points"],[this,"points"])),this.ad(this.clearEvent.don(()=>{this.points=void 0,this.depths=void 0,this.windowPositions=void 0}))}get typeName(){return"ESSkylineAnalysis"}get defaultProps(){return Yu.createDefaultProps()}get startEvent(){return this._startEvent}start(){this._startEvent.emit()}get clearEvent(){return this._clearEvent}clear(){this._clearEvent.emit()}get eSGeoExtrudedPolygon(){return this._eSGeoExtrudedPolygon}getESProperties(){const t={...super.getESProperties()};return{...t,basic:[...t.basic,new Se("开始分析","开始分析",[],()=>this.start(),[]),new Se("清除分析","清除分析",[],()=>this.clear(),[]),new ne("屏幕坐标","windowPositions",!1,!0,[this,"windowPositions"]),new ne("深度值","depths",!1,!0,[this,"depths"]),new q("半径","半径",!0,!1,[this,"radius"],1e4)]}}getProperties(t){return[...super.getProperties(t),new ee("通用","通用",[new Se("开始分析","开始分析",[],()=>this.start(),[]),new Se("清除分析","清除分析",[],()=>this.clear(),[]),new ne("屏幕坐标","windowPositions",!1,!0,[this,"windowPositions"]),new ne("深度值","depths",!1,!0,[this,"depths"]),new q("半径","半径",!0,!1,[this,"radius"],1e4)])]}};D(Yu,"type",Yu.register("ESSkylineAnalysis",Yu,{chsName:"天际线分析",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"分析类"})),D(Yu,"defaults",{...Ae.defaults,windowPositions:[],depths:[],radius:1e4});let Pu=Yu;(r=>{r.createDefaultProps=()=>({...Ae.createDefaultProps(),windowPositions:yf(void 0),depths:M.reactArrayWithUndefined(void 0),radius:M.react(void 0)})})(Pu||(Pu={})),M.extendClassProps(Pu.prototype,Pu.createDefaultProps);const Gn=class Gn extends Be{get typeName(){return"ESHeatMap"}get defaultProps(){return Gn.createDefaultProps()}constructor(e){super(e)}getESProperties(){const e=super.getESProperties();return{...e,basic:[...e.basic,new ne("data","数据",!0,!1,[this,"data"]),new ne("gradient","渐变",!0,!1,[this,"gradient"],Gn.defaults.gradient),new q("radius","半径",!0,!1,[this,"radius"],Gn.defaults.radius),new q("blur","模糊",!0,!1,[this,"blur"],Gn.defaults.blur),new $("is3D","3D",!0,!1,[this,"is3D"])]}}getProperties(e){return[...super.getProperties(e),new ee("通用","通用",[new ne("data","数据",!0,!1,[this,"data"]),new ne("gradient","渐变",!0,!1,[this,"gradient"],Gn.defaults.gradient),new q("radius","半径",!0,!1,[this,"radius"],Gn.defaults.radius),new q("blur","模糊",!0,!1,[this,"blur"],Gn.defaults.blur),new $("is3D","3D",!0,!1,[this,"is3D"])])]}};D(Gn,"type",Gn.register("ESHeatMap",Gn,{chsName:"热力图",tags:["ESObjects","_ES_Impl_Cesium","_ES_Impl_UE"],description:"用于热力图的显示"})),D(Gn,"defaults",{...Be.defaults,is3D:!1,data:[],radius:10,gradient:{".5":"green",".7":"yellow",".95":"red"},blur:.85});let Su=Gn;(r=>{r.createDefaultProps=()=>({...Be.createDefaultProps(),is3D:M.react(void 0),data:M.reactPositions(void 0),gradient:M.reactJsonWithUndefined(void 0),radius:M.react(void 0),blur:M.react(void 0)})})(Su||(Su={})),M.extendClassProps(Su.prototype,Su.createDefaultProps);function $y(r){return typeof r=="string"?document.getElementById(r):r}function zd(r){if(!r)throw new Error("container is not defined");r.innerHTML="";const e=document.createElement("div");return e.style.cssText="width: 100%; height: 100%; margin: 0px; padding: 0px; border: none; overflow: hidden; position: relative; z-index: 0; background: rgba(0,0,0,0);",r.appendChild(e),e}class Zy extends M.Destroyable{constructor(t,n){super();D(this,"_listeningSceneObjects",new Map);this._sceneObjectsMananger=t,this._createSceneObjectListeningFunc=n;const i=this._listeningSceneObjects,o=(s,a)=>{if(s)for(let c of s){const f=i.get(c);f&&(f.destroy(),i.delete(c))}if(a)for(let c of a){if(i.get(c)){console.warn(`listeningSceneObjects已存在某对象:${c.name}`,c);debugger}const m=this.createSceneObjectListeningFunc(c);m&&i.set(c,m)}};o(void 0,this._sceneObjectsMananger.sceneObjects),this.dispose(this._sceneObjectsMananger.sceneObjectsToChange.disposableOn(o)),this.dispose(()=>{for(let s of this._listeningSceneObjects.values())s.destroy();this._listeningSceneObjects.clear()})}get listeningSceneObjects(){return this._listeningSceneObjects}get createSceneObjectListeningFunc(){return this._createSceneObjectListeningFunc}}class bC extends M.Destroyable{constructor(e){super(),this._esObjectsManager=e;{const t=this._esObjectsManager;class n extends M.Destroyable{constructor(o){super(),this._esPath=o,this.dv(new M.ObjResettingWithEvent(t.activeViewerChanged,()=>{const s=t.activeViewer;if(!s)return;class a extends M.Destroyable{constructor(f){if(super(),this._esPath=f,!s)throw new Error("!viewer");const m=()=>{const p=t.activeViewer;p&&(this._esPath.path.currentTime=p.simulationTime)};m(),this.d(s.simulationTimeChanged.don(m))}}return new a(this._esPath)}))}}this.dv(new Zy(t.sceneObjectsManager,i=>{if(i instanceof Gs)return new n(i)}))}{const t=this._esObjectsManager;class n extends M.Destroyable{constructor(o){super();const s=()=>{const a=t.activeViewer;a&&(a.simulationTime=o.currentTime??0)};s(),this.d(o.currentTimeChanged.don(s))}}this.dv(new Zy(t.sceneObjectsManager,i=>{if(i instanceof ks)return new n(i)}))}}}class wC extends M.Destroyable{constructor(e){super(),e.forEach(t=>{this.d(t.path.currentPositionChanged.don(n=>{n&&t.sceneObjects.forEach(i=>{Reflect.has(i,"position")&&(i.position=[...n])})})),this.d(t.path.currentRotationChanged.don(n=>{n&&t.sceneObjects.forEach(i=>{Reflect.has(i,"rotation")&&(i.rotation=[...n])})}))})}}class EC extends M.Destroyable{constructor(t){super();D(this,"_player");D(this,"_channels",this.dv(M.reactArray([])));this._objectManager=t,this._player=this._objectManager.player,this.dv(new M.ObjResettingWithEvent(this.channelsChanged,()=>{if(this.channels.length===0)return;const n=[];for(let i=0;i<this.channels.length;i++){const o=this.channels[i],s=we.getSceneObjById(o.pathId);if(!s||!(s instanceof Gs))continue;const c=o.sceneObjectIds.map(f=>we.getSceneObjById(f)).filter(f=>f!==void 0);c.length!==0&&n.push({path:s,sceneObjects:c})}if(n.length!==0)return new wC(n)}))}get player(){return this._player}get channels(){return this._channels.value}get channelsChanged(){return this._channels.changed}set channels(t){this._channels.value=t}}function rf(r){if(r.data){const{type:e,value:t}=r.data;if(e==="UITreeA"&&t instanceof jr){const{sceneObject:n}=t;if(n)return n.id}}}function PC(r,e){const{property:t,customEventName:n,otherParams:i}=e,{dragstartDataMananger:o}=r;if(!(t instanceof hi)){if(!(t instanceof ap)){if(t instanceof de){const[s,a]=M.getReactFuncs(t.reactVar);if(n==="ondragover"){if(console.log("ondragover"),!i)throw new Error("!otherParams");const c=i[0];if(c.preventDefault(),!c.dataTransfer)return;rf(o)?c.dataTransfer.dropEffect="move":c.dataTransfer.dropEffect="none"}else if(n==="ondrop"){if(!i)throw new Error("!otherParams");i[0].preventDefault();const f=rf(o);f!==void 0&&a(f)}}else if(t instanceof rp){const[s,a]=M.getReactFuncs(t.reactVar);if(n==="ondragover"){if(console.log("ondragover"),!i)throw new Error("!otherParams");const c=i[0];if(c.preventDefault(),!c.dataTransfer)return;rf(o)?c.dataTransfer.dropEffect="move":c.dataTransfer.dropEffect="none"}else if(n==="ondrop"){if(!i)throw new Error("!otherParams");const c=i[0].$event,f=i[0].strinsPropDom,m=i[0].index;c.preventDefault();const p=rf(o);if(p!==void 0){f[m].firstChild.value=p;const g=new Event("input",{bubbles:!0,cancelable:!0});f[m].firstChild.dispatchEvent(g)}}}else if(t instanceof np){const[s,a]=M.getReactFuncs(t.reactVar)}}}}function e0(r,e,t,n){if(t)n.currentActiveEditing=[r,e];else if(n.currentActiveEditing){const[i,o]=n.currentActiveEditing;i===r&&o===e&&(t||(n.currentActiveEditing=void 0))}}const SC=["editing","positionEditing","locationEditing","pointEditing","rotationEditing"];class CC extends M.Destroyable{constructor(e,t){super(),this._sceneObject=e;const n=this._sceneObject;for(let i of SC){const o=i+"Changed",s=n[o];if(s){{const a=n[i];e0(n,i,a,t)}this.dispose(s.disposableOn(a=>e0(n,i,a,t)))}}}get sceneObject(){return this._sceneObject}}class xC extends M.Destroyable{constructor(){super();D(this,"_currentActiveEditing",this.disposeVar(M.reactArrayWithUndefined(void 0)));D(this,"_currentActiveEditingLastChangedTime",0);this.dispose(this._currentActiveEditing.changed.disposableOn((t,n)=>{if(this._currentActiveEditingLastChangedTime=Date.now(),n){const[i,o]=n;i[o]===!0&&(i[o]=!1)}if(t){const[i,o]=t;i[o]=!0}})),we.context.sceneObjCreatedEvent.don(t=>{t.dv(new CC(t,this))})}get currentActiveEditing(){return this._currentActiveEditing.value}set currentActiveEditing(t){this._currentActiveEditing.value=t}get currentActiveEditingChanged(){return this._currentActiveEditing.changed}get currentActiveEditingLastChangedTime(){return this._currentActiveEditingLastChangedTime}}class OC extends M.Destroyable{constructor(){super();D(this,"_sceneObjects",new Set);D(this,"_sceneObjectsToChange",this.dv(new M.Event));this.d(()=>{const t=M.length(this._sceneObjects);t!==0&&console.warn(`场景对象管理器销毁时仍然管理着${t}个场景对象!`)})}get sceneObjects(){return this._sceneObjects}get sceneObjectsToChange(){return this._sceneObjectsToChange}addSceneObject(t){if(this._sceneObjects.has(t))return console.warn(`创建失败:对象${t.typeName+":"+t.id}已经存在于场景对象管理器中!}`),!1;do this._sceneObjectsToChange.emit([],[t]),this._sceneObjects.add(t);while(!1);return!0}deleteSceneObject(t){if(!this._sceneObjects.has(t))return console.warn(`删除失败:对象${t.typeName+":"+t.id}不存在于场景对象管理器中!}`),!1;do this._sceneObjectsToChange.emit([t],[]),this._sceneObjects.delete(t);while(!1);return!0}createSceneObject(t,n){const i=we.context.createSceneObject(t,n);return i&&this.addSceneObject(i),i}createSceneObjectFromClass(t,n){const i=we.context.createSceneObjectFromClass(t,n);return i&&this.addSceneObject(i),i}createSceneObjectFromJson(t){const n=we.context.createSceneObjectFromJson(t);return n&&this.addSceneObject(n),n}}function t0(r,e){return r.length===e.length&&r.every((t,n)=>t===e[n])}class MC extends M.Destroyable{constructor(e){super(),this._viewer=e,this.d(M.track([this._viewer,"currentTime"],[this._viewer,"simulationTime"]))}}class IC extends M.Destroyable{constructor(e,t){super(),this._viewer=e,this._activeViewer=t;const n=Ai.createCommonProps(),i=[];Object.keys(n).forEach(c=>{const f=this._activeViewer[c+"Changed"];i.push(f)});const o=this.dv(M.createNextAnimateFrameEvent(...i)),s=()=>{this._viewer.status!=="Created"||this._activeViewer.status!=="Created"||Object.keys(n).forEach(c=>{this._viewer[c]=this._activeViewer[c]})};this.d(o.don(s));const a=this.dv(M.createAnimateFrame());a.restart(void 0,async()=>{if(this._viewer.status!=="Created"||this._activeViewer.status!=="Created")return;const c=this._activeViewer.getCurrentCameraInfo(),f=this._viewer.getCurrentCameraInfo();if(!c)return;const{position:m,rotation:p}=c;f&&t0(m,f.position)&&t0(p,f.rotation)||this._viewer.flyIn(m,p,0)}),this.d(()=>a.cancel())}}const TC=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" width="40" height="40" style="shape-rendering: auto; display: block; background: rgba(255, 255, 255, 0);" xmlns:xlink="http://www.w3.org/1999/xlink"><g><circle stroke-linecap="round" fill="none" stroke-dasharray="50.26548245743669 50.26548245743669" stroke="#ffffff" stroke-width="8" r="32" cy="50" cx="50">
771
771
  <animateTransform values="0 50 50;360 50 50" keyTimes="0;1" dur="1s" repeatCount="indefinite" type="rotate" attributeName="transform"></animateTransform>
772
772
  </circle><g></g></g></svg>
773
- `,NC='<svg t="1747028305766" class="icon" viewBox="0 0 1032 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3881" width="40" height="40"><path d="M0.1536 547.700736c-0.205824-0.187392-0.205824-0.49152 0.008192-0.68608l80.672768-73.590784a0.63488 0.63488 0 0 1 0.7936-0.029696l263.043072 203.0336c0.667648 0.515072 1.738752 0.498688 2.393088-0.038912l609.191936-500.133888a0.605184 0.605184 0 0 1 0.768 0.022528l74.84928 67.229696a0.454656 0.454656 0 0 1-0.002048 0.685056l-685.234176 618.19904a1.14688 1.14688 0 0 1-1.518592-0.012288L0.1536 547.700736z" fill="#ffffff" p-id="3882"></path></svg>',DC='<svg t="1747028398107" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1146" width="40" height="40"><path d="M415.744006 1.033277A0.992256 0.992256 0 0 1 416.747526 0.000061h189.5045c0.569344 0 1.017856 0.45056 1.001472 1.033216l-21.227518 754.803667a1.062912 1.062912 0 0 1-1.05984 1.032192h-146.933752c-0.569344 0-1.04448-0.45056-1.059839-1.032192L415.744006 1.033277zM511.510528 1024c-52.595709 0-95.231994-39.866366-95.231994-89.043963 0-49.176573 42.636285-89.042939 95.231994-89.042938 52.594685 0 95.231994 39.866366 95.231994 89.042938 0 49.177597-42.637309 89.043963-95.231994 89.043963z" fill="#ffffff" p-id="1147"></path></svg>',Ju=class Ju extends M.Destroyable{constructor(e){super();const t=()=>{const n=this.dv(new Oo);this.d(M.track([n,"show"],[e,"useDefaultStatusDiv"]));{const i=()=>{n.show=(e.useDefaultStatusDiv??!0)&&e.status!=="Created"};i(),this.d(e.useDefaultStatusDivChanged.don(i)),this.d(e.statusChanged.don(i)),n.cssText="width:100%;height:100%;position:absolute;left:0px;top:0px;"}e.add(n),this.d(()=>e.delete(n)),n.instanceClass=class extends M.Destroyable{constructor(s,a,c){super();D(this,"_div",document.createElement("div"));if(this._subContainer=s,!c)return;this._subContainer.appendChild(this._div),this.d(()=>this._subContainer.removeChild(this._div));{const _=()=>{a.show?this._div.style.opacity="1":this._div.style.opacity="0"};_(),this.d(a.showChanged.don(_))}let f,m,p,g,w;this._div.style.pointerEvents="none",this._div.style.position="absolute",this._div.style.width="100%",this._div.style.height="100%",this._div.style.backgroundColor="rgba(0, 0, 0, 0.4)",this._div.style.zIndex="100",this._div.style.transition="opacity 2s",f=document.createElement("div"),this._div.appendChild(f),f.style.width="auto",f.style.position="absolute",f.style.left="50%",f.style.top="50%",f.style.transform="translate(-50%,-50%)",f.style.background="rgba(120, 120, 0, 0.7)",f.style.color="white",f.style.fontSize="10px",f.style.background="none",f.style.display="flex",f.style.justifyContent="center",f.style.alignItems="center",m=document.createElement("div"),f.appendChild(m),m.style.pointerEvents="none",m.style.display="block",m.style.width="40px",m.innerHTML=Ju.defaultsSvg.loadingSvg,m.style.filter="drop-shadow(0px 0px 1px black)",p=document.createElement("div"),f.appendChild(p),p.style.pointerEvents="none",p.style.marginLeft="10px",p.style.display="flex",p.style.flexFlow="column",p.style.maxWidth="300px",g=document.createElement("div"),p.appendChild(g),g.style.fontSize="14px",g.style.fontWeight="800",g.style.marginBottom="5px",g.style.textShadow="0 0 2px black",w=document.createElement("div"),p.appendChild(w),w.style.fontWeight="400",w.style.textShadow="0 0 2px black";{const _=()=>{let h="Raw";c.status==="Raw"?h="初始状态":c.status==="Creating"?h="正在创建":c.status==="Created"?h="创建完成":c.status==="Error"?h="创建失败":c.status==="Reconnecting"&&(h="重新连接"),g.innerText=`${h}(${c.status})`,w.innerText=`${c.statusLog}`,(c.status==="Creating"||c.status==="Reconnecting")&&(m.innerHTML=Ju.defaultsSvg.loadingSvg),c.status==="Created"&&(m.innerHTML=Ju.defaultsSvg.successSvg),c.status==="Error"&&(m.innerHTML=Ju.defaultsSvg.warnSvg)};_();const y=this.dv(M.createNextAnimateFrameEvent(c.statusLogChanged,c.statusChanged));this.d(y.don(_))}}update(){const s=255*Math.random()|0,a=255*Math.random()|0,c=255*Math.random()|0;this._div.style.background=`rgba(${s}, ${a}, ${c}, 0.8)`}}};this.d(e.containerChanged.don(()=>{t()}))}};D(Ju,"defaultsSvg",{loadingSvg:TC,successSvg:NC,warnSvg:DC});let Ud=Ju;class AC extends M.Destroyable{constructor(e,t,n){super(),this._subContainer=e,this._overlayContainer=t,this._viewer=n;const i=this._subContainer,o=this._overlayContainer,s=this._viewer,a=()=>{const m=s.zIndex??"";i.style.zIndex=m,o.style.zIndex=m};a(),this.d(s.zIndexChanged.don(a));const c=()=>{i.style.display=s.show??!0?"block":"none"};c(),this.d(s.showChanged.don(c));const f=()=>{i.style.opacity=`${s.opacity??1}`};f(),this.d(s.opacityChanged.don(f))}}function nf(r){let e=M.getExtProp(r,"_relativeContainer");return e||(e=document.createElement("div"),e.style.position="relative",e.style.width="100%",e.style.height="100%",e.style.padding="0",e.style.margin="0",r.appendChild(e),M.setExtProp(r,"_relativeContainer",e)),e}class RC extends M.Destroyable{constructor(t,n){super();D(this,"_subContainer",document.createElement("div"));D(this,"_overlayContainer",document.createElement("div"));D(this,"_containerStyleController");this._container=t,this._viewer=n,this._containerStyleController=this.dv(new AC(this._subContainer,this._overlayContainer,this._viewer));const{subContainer:i,overlayContainer:o}=this;i.tabIndex=-1,i.style.outline="none",i.style.width="100%",i.style.height="100%",i.onpointerdown=()=>i.focus(),o.style.position="relative",o.setAttribute("earthsdk3","earthsdk3-overlayContainer"),i.setAttribute("earthsdk3","earthsdk3-subContainer"),nf(this._container).appendChild(i),this.d(()=>nf(this._container).removeChild(i)),nf(this._container).appendChild(o),this.d(()=>nf(this._container).removeChild(o))}get subContainer(){return this._subContainer}get overlayContainer(){return this._overlayContainer}get containerStyleController(){return this._containerStyleController}get container(){return this._container}}class LC extends M.Destroyable{constructor(){super(...arguments);D(this,"registerObjsMap",new Map)}register(t,n){return this.registerObjsMap.has(t)&&console.warn(`register warn:${t}已经被注册,再次注册会覆盖。`),this.registerObjsMap.set(t,n),t}getViewerConstructor(t){const n=this.registerObjsMap.get(t);if(!n){console.warn(`未找到${t}类!`);return}return n}createViewer(t){const n=t.type,i=this.getViewerConstructor(n);if(!i)throw new Error(`没有找到类型为${n}的Viewer构造器!`);return new i(t)}}class r0 extends M.Destroyable{constructor(e,t,n=!1,i=!1){if(super(),this._viewer=e,!t)throw new Error("ViewerCustomInteraction: container is null");const o=this.dv(M.DomElementEvent.create(t,"pointerdown")),s=this.dv(M.DomElementEvent.create(t,"pointermove")),a=this.dv(M.DomElementEvent.create(t,"pointerup")),c=this.dv(M.DomElementEvent.create(t,"pointerout")),f=this.dv(M.DomElementEvent.create(t,"pointerover")),m=this.dv(new M.PointerClick),p=this.dv(new M.PointerHover),g=()=>{const v=this._viewer.hoverTime*1e3;p.delayTime=v};this.d(this._viewer.hoverTimeChanged.don(()=>{g()})),this.d(o.don(v=>m.pointerDown(v))),this.d(s.don(v=>m.pointerMove(v))),this.d(a.don(v=>m.pointerUp(v))),this.d(c.don(v=>m.pointerOut(v))),this.d(o.don(v=>p.pointerDown(v))),this.d(s.don(v=>p.pointerMove(v))),this.d(a.don(v=>p.pointerUp(v))),this.d(c.don(v=>p.pointerOut(v)));const{x:w,y:_}=t.getBoundingClientRect(),y=i?w:0,h=i?_:0;this.d(p.hoverEvent.don(v=>{const[b,E]=M.getDomEventCurrentTargetPos(v,n);this._viewer.hoverEvent.emit({screenPosition:[b+y,E+h],pointerEvent:v})})),this.d(m.clickEvent.don(v=>{const[b,E]=M.getDomEventCurrentTargetPos(v,n);this._viewer.clickEvent.emit({screenPosition:[b+y,E+h],pointerEvent:v})})),this.d(m.dbclickEvent.don(v=>{const[b,E]=M.getDomEventCurrentTargetPos(v,n);v.button===0&&this._viewer.dblclickEvent.emit({screenPosition:[b+y,E+h],pointerEvent:v})})),this.d(o.don(v=>{const[b,E]=M.getDomEventCurrentTargetPos(v,n);v.button===0&&this._viewer.pointerDownEvent.emit({screenPosition:[b+y,E+h],pointerEvent:v})})),this.d(a.don(v=>{const[b,E]=M.getDomEventCurrentTargetPos(v,n);v.button===0&&this._viewer.pointerUpEvent.emit({screenPosition:[b+y,E+h],pointerEvent:v})})),this.d(s.don(v=>{const[b,E]=M.getDomEventCurrentTargetPos(v,n);this._viewer.pointerMoveEvent.emit({screenPosition:[b+y,E+h],pointerEvent:v})})),this.d(f.don(v=>{const[b,E]=M.getDomEventCurrentTargetPos(v,n);this._viewer.pointerOverEvent.emit({screenPosition:[b+y,E+h],pointerEvent:v})})),this.d(c.don(v=>{const[b,E]=M.getDomEventCurrentTargetPos(v,n);this._viewer.pointerOutEvent.emit({screenPosition:[b+y,E+h],pointerEvent:v})}));const d=this.dv(M.DomElementEvent.create(t,"keydown"));this.d(d.don(v=>this._viewer.keyDownEvent.emit(v)));const u=this.dv(M.DomElementEvent.create(t,"keyup"));this.d(u.don(v=>this._viewer.keyUpEvent.emit(v)));const l=this.dv(M.DomElementEvent.create(t,"wheel"));this.d(l.don(v=>this._viewer.wheelEvent.emit(v)))}}const ys=class ys extends M.Destroyable{constructor(t){super();D(this,"_forceRecreateEvent",this.dv(new M.Event));D(this,"_container",this.dv(M.react(void 0)));D(this,"_containerSize",this.dv(M.react(void 0)));D(this,"_editingEvent",this.disposeVar(new M.Event));D(this,"_status",this.dv(M.react("Raw")));D(this,"_statusLog",this.dv(M.react("")));D(this,"_statusContainer",this.dv(new Ud(this)));D(this,"_useCustomInteraction",this.dv(M.react(!0)));D(this,"_resetInteractionEvent",this.dv(M.createNextAnimateFrameEvent(this.containerChanged,this._useCustomInteraction.changed,this._forceRecreateEvent)));D(this,"_interactionResetting",this.dv(new M.ObjResettingWithEvent(this._resetInteractionEvent,()=>{if(!(!this.container||!this._useCustomInteraction.value))return new r0(this,this.container)})));D(this,"_viewerChanged",this.dv(new M.Event));D(this,"_containerResetEvent",this.dv(M.createNextAnimateFrameEvent(this.containerChanged,this._forceRecreateEvent)));D(this,"_containerResetting",this.dv(new M.ObjResettingWithEvent(this._containerResetEvent,()=>{if(this.container)return new RC(this.container,this)})));D(this,"_sceneObjectsMap",new Map);D(this,"_id");D(this,"_typeName");D(this,"_updateFuncReact",this.dv(M.react(void 0)));D(this,"_toDestroyFuncReact",this.dv(M.react(void 0)));D(this,"_statusInfo",ys.defaults.statusInfo);D(this,"_navigationMode",this.dv(M.react("Map")));D(this,"_syncViewer",this.dv(M.react(void 0)));D(this,"_syncEventDon",this.dv(new M.ObjResettingWithEvent(this.syncViewerChanged,()=>{const t=this.syncViewer;if(t)return new IC(this,t)})));D(this,"_timeSyncdon",this.dv(new M.ObjResettingWithEvent(this.timeSyncChanged,()=>{if(this.timeSync)return new MC(this)})));D(this,"_hoverEvent",this.dv(new M.Event));D(this,"_pointerOverEvent",this.dv(new M.Event));D(this,"_pointerMoveEvent",this.dv(new M.Event));D(this,"_pointerDownEvent",this.dv(new M.Event));D(this,"_pointerUpEvent",this.dv(new M.Event));D(this,"_pointerOutEvent",this.dv(new M.Event));D(this,"_clickEvent",this.dv(new M.Event));D(this,"_dblclickEvent",this.dv(new M.Event));D(this,"_keyDownEvent",this.dv(new M.Event));D(this,"_keyUpEvent",this.dv(new M.Event));D(this,"_wheelEvent",this.dv(new M.Event));D(this,"_actived",this.dv(M.react(!1)));this._id=t.id??M.createGuid();const n=$y(t.container);if(n)this._container.value=zd(n),this._typeName=t.type,this._initName();else throw new Error("container is not defined");{const i=()=>{n&&(this.show??!0?n.style.display="block":n.style.display="none")};i(),this.d(this.showChanged.don(i))}{const i=this._sceneObjectsMap,o=()=>{for(let[a,c]of i.entries())if(!c&&a){const f=Vo.context.createEngineObject(a,this);f&&i.set(a,f)}},s=()=>{for(let[a,c]of i.entries())c&&!c.isDestroyed()&&c.destroy(),i.set(a,void 0)};this.d(s),this.d(this.viewerChanged.don(a=>{s(),a&&o()}))}{const i=()=>{if(this.execOnceFuncStr)try{Function(`"use strict";return (${this.execOnceFuncStr})`)()(this)}catch(o){console.warn(`execOnceFuncStr不能转成函数!或者函数执行时错误!id: ${this.id} ${this.typeName} error: ${o}`)}};i(),this.d(this.execOnceFuncStrChanged.don(i))}{const i=()=>{if(this.updateFuncStr)try{this.updateFunc=Function(`"use strict";return (${this.updateFuncStr})`)()}catch(s){console.warn(`updateFuncStr不能转成函数!或者函数执行时错误!id: ${this.id} ${this.typeName} error: ${s}`)}};i(),this.d(this.updateFuncStrChanged.don(i));let o;this.d(()=>o&&o.destroy()),this.d(this.updateFuncChanged.don(()=>{o&&o.cancel(),this.updateFunc&&(o=o||M.createAnimateFrame(),o.restart(void 0,s=>{this.updateFunc&&this.updateFunc(this,s)}))}))}{const i=()=>{try{this.toDestroyFunc=this.toDestroyFuncStr&&Function(`"use strict";return (${this.toDestroyFuncStr})`)()||void 0}catch(o){console.warn(`toDestroyFuncStr不能转成函数!或者函数执行时错误!id: ${this.id} ${this.typeName} error: ${o}`),this.toDestroyFunc=void 0}};i(),this.d(this.toDestroyFuncStrChanged.don(i)),this.d(this.toDestroyEvent.don(()=>{this.toDestroyFunc&&this.toDestroyFunc(this)}))}}forceRecreate(){this._forceRecreateEvent.emit()}get container(){return this._container.value}set container(t){this._container.value=t}set containerOrId(t){if(typeof t=="string"){const n=document.getElementById(t);n&&n instanceof HTMLDivElement?this._container.value=zd(n):console.warn("containerOrId warn: !(container instanceof HTMLDivElement)")}else t instanceof HTMLDivElement?this._container.value=zd(t):console.warn("containerOrId warn: setting container failed!")}get containerChanged(){return this._container.changed}get containerSize(){return this._containerSize.value}set containerSize(t){this._containerSize.value=t}get containerSizeChanged(){return this._containerSize.changed}get editingEvent(){return this._editingEvent}get status(){return this._status.value}get statusChanged(){return this._status.changed}setStatus(t){this._status.value=t}get statusLog(){return this._statusLog.value}get statusLogChanged(){return this._statusLog.changed}setStatusLog(t){this._statusLog.value=t}get useCustomInteraction(){return this._useCustomInteraction.value}set useCustomInteraction(t){this._useCustomInteraction.value=t}get viewerChanged(){return this._viewerChanged}get containerResetEvent(){return this._containerResetEvent}get subContainer(){var t;return(t=this._containerResetting.obj)==null?void 0:t.subContainer}get subContainerChanged(){return this._containerResetting.objChanged}get overlayContainer(){var t;return(t=this._containerResetting.obj)==null?void 0:t.overlayContainer}get overlayContainerChanged(){return this._containerResetting.objChanged}get sceneObjectsMap(){return this._sceneObjectsMap}get sceneObjects(){return this._sceneObjectsMap.keys()}getEngineObject(t){return this.sceneObjectsMap.get(t)}add(...t){for(let n of t)if(!this.has(n)){const i=Vo.context.createEngineObject(n,this);i&&this._sceneObjectsMap.set(n,i),n.viewerAttached.emit(this)}}delete(...t){for(let n of t)if(this.has(n)){const i=this._sceneObjectsMap.get(n);i&&i.destroy(),this._sceneObjectsMap.delete(n),n.viewerDetached.emit(this)}}disposableAdd(...t){return this.add(...t),()=>this.delete(...t)}disAdd(...t){return this.disposableAdd(...t)}has(t){return this._sceneObjectsMap.has(t)}clearAllSceneObjects(){for(let t of this.sceneObjects)this.delete(t)}get id(){return this._id}set id(t){console.warn("ESViewer id is readonly")}get typeName(){return this._typeName}_initName(){this.name=`${this.typeName}_${(""+this.id).slice(-4)}`}get defaultProps(){return ys.createDefaultProps()}_getJson(t=!0){const n={id:this.id,type:this.typeName};for(let i of Object.keys(this.defaultProps))if(t){let o,s=this.defaultProps[i];s instanceof M.ReactiveVariable?o=s.equals(this[i]):o=s===this[i],o||(n[i]=this[i])}else n[i]=this[i];return n}_setJson(t,n,i){if(!(t instanceof Object)||t.type&&t.type!==this.typeName){console.error(`value.type && value.type${t.type} !== this.typeName${this.typeName}`);return}t.id&&t.id!==this.id&&console.warn(`value.id === undefined || value.id${t.id} !== this.id(${this.id})`);const o=n||[];o.push("id","type");const s=Object.keys(this.defaultProps).filter(a=>!o.includes(a));for(let a of s)if(a in t)this[a]=t[a]===null?void 0:t[a];else if(!(i??!1)){let c=this.defaultProps[a];c instanceof M.ReactiveVariable&&(c=c.value),this[a]=c}}get json(){return this._getJson()}set json(t){this._setJson(t,["devTags"])}get updateFunc(){return this._updateFuncReact.value}set updateFunc(t){this._updateFuncReact.value=t}get updateFuncChanged(){return this._updateFuncReact.changed}get toDestroyFunc(){return this._toDestroyFuncReact.value}set toDestroyFunc(t){this._toDestroyFuncReact.value=t}get toDestroyFuncChanged(){return this._toDestroyFuncReact.changed}get navigationMode(){return this._navigationMode.value}get navigationModeChanged(){return this._navigationMode.changed}getNavigationMode(){return this._navigationMode.value}getEngineType(){return this._typeName}get syncViewer(){return this._syncViewer.value}set syncViewer(t){this._syncViewer.value=t}get syncViewerChanged(){return this._syncViewer.changed}syncOtherViewer(t){t&&t.syncViewer&&(t.syncViewer=void 0),t===this?this._syncViewer.value=void 0:this._syncViewer.value=t}setCurrentTime(t){try{this.currentTime=typeof t=="string"?Date.parse(t):t}catch(n){console.warn(`时间格式不正确! value: ${t} error: ${n}`)}}async getVersion(){return window.g_XE3CopyRights??{}}get hoverEvent(){return this._hoverEvent}get pointerOverEvent(){return this._pointerOverEvent}get pointerMoveEvent(){return this._pointerMoveEvent}get pointerDownEvent(){return this._pointerDownEvent}get pointerUpEvent(){return this._pointerUpEvent}get pointerOutEvent(){return this._pointerOutEvent}get clickEvent(){return this._clickEvent}get dblclickEvent(){return this._dblclickEvent}get keyDownEvent(){return this._keyDownEvent}get keyUpEvent(){return this._keyUpEvent}get wheelEvent(){return this._wheelEvent}getProperties(t){return[new ee("ESViewer","ESViewer",[new Se("强制刷新","重载",[],()=>this.forceRecreate(),[]),new $("debug","debug",!0,!1,[this,"debug"],ys.defaults.debug),new $("是否可见","是否可见",!0,!1,[this,"show"]),new ce("位置点单位","lonLatFormat",!0,!1,[this,"lonLatFormat"],[["度","DECIMAL_DEGREE"],["度分","DEGREES_DECIMAL_MINUTES"],["度分秒","SEXAGESIMAL_DEGREE"]]),new $("是否开启文字避让","textAvoidance",!0,!1,[this,"textAvoidance"],!1),new de("ionAccessToken","ionAccessToken",!1,!1,[this,"ionAccessToken"]),new q("时钟","时钟",!1,!1,[this,"currentTime"]),new $("globeShow","globeShow",!0,!1,[this,"globeShow"]),new $("atmosphere","atmosphere",!1,!1,[this,"atmosphere"])]),new q("飞行像素范围","默认飞行定位时对象包围球所占的屏幕像素大小",!1,!1,[this,"flyToBoundingSize"]),new q("编辑高度偏移","编辑时默认的高度偏移",!1,!1,[this,"editingHeightOffset"]),new ee("Globe","Globe",[new ne("地形着色器","可以设置地形全局坡度,坡向,高程带,等高线等",!1,!1,[this,"terrainShader"])])]}get actived(){return this._actived.value}set actived(t){this._actived.value=t}get activedChanged(){return this._actived.changed}};D(ys,"context",new LC),D(ys,"register",ys.context.register.bind(ys.context)),D(ys,"defaults",{show:!0,debug:!1,statusInfo:{fps:0,position:[0,0,0],rotation:[0,0,0],length:0},terrainShader:{slope:{show:!1},aspect:{show:!1},elevationRamp:{show:!1,minHeight:-414,maxHeight:8777,color:[]},elevationContour:{show:!1,color:[1,0,0,1],spacing:150,width:2}},globeShow:!0});let Ai=ys;(r=>{r.createBaseProps=()=>({name:"未命名场景对象",extras:M.reactJson(void 0),devTags:M.reactArrayWithUndefined(void 0),debug:void 0,show:void 0,opacity:void 0,zIndex:void 0,useDefaultStatusDiv:!0,execOnceFuncStr:void 0,updateFuncStr:void 0,toDestroyFuncStr:void 0}),r.createCommonProps=()=>({globeShow:!0,ionAccessToken:"",lonLatFormat:"DECIMAL_DEGREE",fov:60,textAvoidance:!1,flyToBoundingSize:256,hoverTime:2,currentTime:Date.now(),simulationTime:Date.now(),timeSync:!1,rain:0,snow:0,cloud:0,fog:0,depthOfField:0,atmosphere:!0,editingPointSize:void 0,editingPointColor:M.reactArrayWithUndefined(void 0),editingAuxiliaryPointColor:M.reactArrayWithUndefined(void 0),editingLineWidth:void 0,editingLineColor:M.reactArrayWithUndefined(void 0),editingAxisSize:void 0,editingAuxiliaryPointSize:void 0,editingHeightOffset:0,editingLineShow:!0,editingEventListening:!0,terrainShader:r.defaults.terrainShader}),r.createDefaultProps=()=>({...(0,r.createBaseProps)(),...(0,r.createCommonProps)()})})(Ai||(Ai={})),M.extendClassProps(Ai.prototype,Ai.createDefaultProps);function n0(r,e){const t=r._lastCameraInfo;if(t){const n=e.viewerChanged.don(i=>{if(!i||!t)return;const{position:o,rotation:s}=t;e.flyIn(o,s,0),r._lastCameraInfo=void 0,n()})}}const FC=r=>{const e=Ai.createCommonProps(),t={};try{Object.keys(e).forEach(n=>{t[n]=r[n]})}catch(n){console.warn(n)}return t},i0=(r,e)=>{const t=Ai.createCommonProps();try{Object.keys(t).forEach(n=>{r[n]=e[n]})}catch(n){console.warn(n)}};class jC extends M.Destroyable{constructor(t){super();D(this,"_viewersChanged",this.disposeVar(new M.Event));D(this,"_viewers",new Set);D(this,"_viewersToChange",this.dv(new M.Event));this._sceneObjectsManager=t,this.d(()=>{for(const n of this._viewers)this.destroyViewer(n);this._viewers.clear()}),this.viewers.forEach(n=>{const i=this._sceneObjectsManager.sceneObjects;n.add(...i)}),this.d(()=>{const n=this._sceneObjectsManager.sceneObjects;this.viewers.forEach(i=>{i.delete(...n)})}),this.d(this._sceneObjectsManager.sceneObjectsToChange.don((n,i)=>{this.viewers.forEach(o=>{i.forEach(s=>{Ls(o.devTags,s.devTags)&&(o.has(s)?console.warn(`${o.typeName}中已存${s.typeName},检查逻辑是否有问题!`):o.add(s))}),n.forEach(s=>{Ls(o.devTags,s.devTags)&&(o.has(s)?o.delete(s):console.warn(`${o.typeName}中不存在${s.typeName},检查逻辑是否有问题!`))})}),i.length>0&&i.forEach(o=>{o.d(o.devTagsChanged.don(()=>{this.viewers.forEach(s=>{s.has(o)&&s.delete(o),console.log("sceneObjectsToChange",s.devTags,o.devTags,Ls(s.devTags,o.devTags)),Ls(s.devTags,o.devTags)&&(s.has(o)?console.warn(`${s.typeName}中已存${o.typeName},检查逻辑是否有问题!`):s.add(o))})}))})})),this.d(this.viewersChanged.don((n,i)=>{const o=this._sceneObjectsManager.sceneObjects;i.forEach(s=>{for(let a of o)Ls(s.devTags,a.devTags)&&(s.has(a)?console.warn(`${s.typeName}中已存${a.typeName},检查逻辑是否有问题!`):s.add(a))}),n.forEach(s=>{for(let a of o)Ls(s.devTags,a.devTags)&&(s.has(a)?s.delete(a):console.warn(`${s.typeName}中不存在${a.typeName},检查逻辑是否有问题!`))}),i.length>0&&i.forEach(s=>{s.d(s.devTagsChanged.don(()=>{s.clearAllSceneObjects();const a=this._sceneObjectsManager.sceneObjects;for(let c of a)console.log("viewersChanged",s.devTags,c.devTags,Ls(s.devTags,c.devTags)),Ls(s.devTags,c.devTags)&&(s.has(c)?console.warn(`${s.typeName}中已存${c.typeName},检查逻辑是否有问题!`):s.add(c))}))})}))}get viewersChanged(){return this._viewersChanged}get viewers(){return this._viewers}getViewers(){return[...this._viewers]}get viewersToChange(){return this._viewersToChange}createViewer(t){const n=Ai.context.createViewer(t);return this._viewers.add(n),this._viewersChanged.emit([],[n]),n}destroyViewer(t){return t.isDestroyed()?!0:(this._viewers.delete(t),this._viewersChanged.emit([t],[]),t.destroy(),t.isDestroyed())}}class Io extends M.Destroyable{constructor(...t){super();D(this,"_drgm",this.dv(new py));D(this,"_sobjm",this.dv(new OC));D(this,"_vrm",this.dv(new jC(this._sobjm)));D(this,"_sceneObjectEditingManager",this.disposeVar(new xC));D(this,"_activeViewer",this.dv(M.react(void 0)));D(this,"_syncOtherViewersToActived",this.dv(M.react(!1)));D(this,"_cmrvm",this.createSceneObjectFromClass(Co));D(this,"_cmrvmdon",this.d(()=>this._cmrvm&&this.destroySceneObject(this._cmrvm)));D(this,"_asset",{type:"ESObjectsManager",version:"0.1.0",createdTime:"",modifiedTime:"",name:"未命名项目"});D(this,"_sceneTree",this.dv(new zc("default",this.dragstartDataMananger,24,this)));D(this,"_propUiTreeManager",this.dv(new Vl(24)));D(this,"_sceneTreeMap",new Map);D(this,"_viewerCreatedEvent",this.dv(new M.Event));D(this,"_lastCameraInfo");D(this,"_lastActiveViewerJson");D(this,"syncEvent",this.dv(M.createNextAnimateFrameEvent(this.activeViewerChanged,this.syncOtherViewersToActivedChanged)));D(this,"_syncEventDon",this.d(this.syncEvent.don(()=>{const t=this.syncOtherViewersToActived;this.viewers.forEach(n=>{t?n.syncOtherViewer(this.activeViewer):n.syncOtherViewer(void 0)})})));D(this,"_player",this.createSceneObjectFromClass(ks));D(this,"_playerdon",this.d(()=>this._player&&this.destroySceneObject(this._player)));D(this,"_esPlyarAndPathTime",this.dv(new bC(this)));D(this,"_pathAnimationManager",this.dv(new EC(this)))}static get envs(){return we.context.environmentVariables}getSceneObjectById(t){return we.getSceneObjectById(t)}getSceneObject(t){return we.getSceneObject(t)}get $refs(){return we.$refs}get dragstartDataMananger(){return this._drgm}get sceneObjectsManager(){return this._sobjm}get viewers(){return this._vrm.viewers}getViewers(){return this._vrm.getViewers()}get sceneObjectEditingManager(){return this._sceneObjectEditingManager}get activeViewer(){return this._activeViewer.value}set activeViewer(t){this._activeViewer.value=t}get activeViewerChanged(){return this._activeViewer.changed}get syncOtherViewersToActived(){return this._syncOtherViewersToActived.value}set syncOtherViewersToActived(t){this._syncOtherViewersToActived.value=t}get syncOtherViewersToActivedChanged(){return this._syncOtherViewersToActived.changed}get cameraViewsManager(){return this._cmrvm}get json(){var p;const t=this._asset.createdTime||new Date().toISOString(),n=new Date().toISOString(),i=this._asset.name||"未命名项目",s={type:"ESObjectsManager",version:this._asset.version||"0.1.0",createdTime:t,modifiedTime:n,name:i},a=this.sceneTree.json,c=this._cmrvm.views,f=[...this._vrm.viewers].map(g=>g.json),m=(p=this.activeViewer)==null?void 0:p.getCurrentCameraInfo();return{asset:s,viewers:f,sceneTree:a,viewCollection:c,lastView:m}}set json(t){try{if(!t.asset)return;if(!t.asset.type||t.asset.type!=="ESObjectsManager"){console.warn("json装配失败! asset.type 不存在或者不是'ESObjectsManager'");return}if(this._asset.createdTime=t.asset&&t.asset.createdTime||new Date().toISOString(),this._asset.modifiedTime=t.asset&&t.asset.modifiedTime||"",this._asset.name=t.asset&&t.asset.name||"未命名项目",this._asset.version=t.asset&&t.asset.version||"0.1.0",t.sceneTree&&(this.sceneTree.json=t.sceneTree),t.viewCollection&&(this._cmrvm.views=t.viewCollection),!t.viewers||!Array.isArray(t.viewers)){console.warn("viewers is not an array or does not exist !");return}if(this._vrm.viewers.size===0||t.viewers.length===0){console.warn("viewers is empty !");return}this._vrm.viewers.forEach(n=>{const i=t.viewers.find(o=>o.id===n.id);i&&(n.json=i)})}catch(n){console.error(`ESObjectsManager解析json数据时发生错误! error: ${n}`)}}get sceneTree(){return this._sceneTree}get jsonLoadingEvent(){return this._sceneTree.jsonLoadingEvent}get propUiTreeManager(){return this._propUiTreeManager}propTreeCallback(t){return PC(this,t)}getSceneTrees(){return[...this._sceneTreeMap.values()]}getSceneTree(t="default"){if(t==="default")return this._sceneTree;if(!this._sceneTreeMap.has(t)){console.warn(`id为${t}的SceneTree不存在!`);return}return this._sceneTreeMap.get(t)}createSceneTree(t,n=24){if(this._sceneTreeMap.has(t)||t==="default")console.warn(`id为${t}的SceneTree已存在!`);else{const i=this.dv(new zc(t,this.dragstartDataMananger,n,this));this._sceneTreeMap.set(t,i)}return this.getSceneTree(t)}get viewerCreatedEvent(){return this._viewerCreatedEvent}createViewer(t){const n=this._vrm.createViewer(t);this.activeViewer||(this.activeViewer=n);const i=this.d(n.viewerChanged.don(o=>{o&&(this._viewerCreatedEvent.emit(n),i())}));return n}destroyViewer(t){return this._activeViewer.value===t&&(this._activeViewer.value=void 0),this._vrm.destroyViewer(t)}switchViewer(t,n=!0,i=!0,o=!0){var f;this.activeViewer&&this.activeViewer.getNavigationMode()!=="Map"&&this.activeViewer.changeToMap(),!this._lastCameraInfo&&n&&(this._lastCameraInfo=(f=this.activeViewer)==null?void 0:f.getCurrentCameraInfo()),!this._lastActiveViewerJson&&i&&(this._lastActiveViewerJson=this.activeViewer?FC(this.activeViewer):void 0),o&&this.activeViewer&&this.destroyViewer(this.activeViewer);const s=t.id,a=s?[...this.getViewers()].find(m=>m.id===s):[...this.getViewers()].find(m=>m.typeName===t.type);if(a)if(s&&a.typeName!==t.type)console.warn(`id为${s}的viewer的typeName和option.type${t.type}不相同!,虽然id一致但是typeName不同,所以会销毁并创建新的viewer`),this.destroyViewer(a);else return console.log("ESViewer exists, will be used"),n&&n0(this,a),i&&this._lastActiveViewerJson&&(i0(a,this._lastActiveViewerJson),this._lastActiveViewerJson=void 0),a.container===$y(t.container)?(a.containerOrId=t.container,a.forceRecreate()):a.containerOrId=t.container,this.activeViewer=a,a;console.log("No ESViewer exists, will be created");const c=this.createViewer(t);return n&&n0(this,c),i&&this._lastActiveViewerJson&&(i0(c,this._lastActiveViewerJson),this._lastActiveViewerJson=void 0),this.activeViewer=c,c}switchToCesiumViewer(...t){if(typeof t[0]=="object"&&!(t[0]instanceof HTMLDivElement)){const{container:n,viewSync:i,attributeSync:o,destroy:s,id:a}=t[0];return this.switchViewer({type:"ESCesiumViewer",container:n,id:a},i??!0,o??!0,s??!0)}else if(typeof t[0]=="string"||t[0]instanceof HTMLDivElement){const n={container:t[0],viewSync:t[1]??!0,attributeSync:t[2]??!0,destroy:t[3]??!0,id:t[4]},{container:i,viewSync:o,attributeSync:s,destroy:a,id:c}=n;return this.switchViewer({type:"ESCesiumViewer",container:i,id:c},o,s,a)}}switchToUEViewer(...t){let n,i={viewSync:!0,attributeSync:!0,destroy:!0};if(typeof t[0]=="object"&&!(t[0]instanceof HTMLDivElement)&&t[0].hasOwnProperty("uri")){const{container:c,uri:f,app:m,token:p,viewSync:g,attributeSync:w,destroy:_,id:y}=t[0];n={type:"ESUeViewer",container:c,id:y,options:{uri:f,app:m,token:p}},i={viewSync:g??!0,attributeSync:w??!0,destroy:_??!0}}else if(typeof t[0]=="object"&&!(t[0]instanceof HTMLDivElement)&&t[0].hasOwnProperty("ws")){const{container:c,ws:f,esmsg:m,viewSync:p,attributeSync:g,id:w,destroy:_}=t[0];n={type:"ESUeViewer",container:c,id:w,options:{ws:f,esmsg:m}},i={viewSync:p??!0,attributeSync:g??!0,destroy:_??!0}}else if(typeof t[0]=="object"&&!(t[0]instanceof HTMLDivElement)&&t[0].hasOwnProperty("project")){const{container:c,project:f,baseUrl:m,viewSync:p,attributeSync:g,id:w,destroy:_}=t[0];n={type:"ESUeViewer",container:c,id:w,options:{project:f,baseUrl:m}},i={viewSync:p??!0,attributeSync:g??!0,destroy:_??!0}}else(typeof t[0]=="string"||t[0]instanceof HTMLDivElement)&&(typeof t[1]=="string"&&t[1].startsWith("ws")?(n={type:"ESUeViewer",container:t[0],id:t[6],options:{ws:t[1],esmsg:t[2]??void 0}},i={viewSync:t[3]??!0,attributeSync:t[4]??!0,destroy:t[5]??!0}):typeof t[1]=="string"&&t[1].startsWith("http")?(n={type:"ESUeViewer",container:t[0],id:t[7],options:{uri:t[1],app:t[2],token:t[3]??void 0}},i={viewSync:t[4]??!0,attributeSync:t[5]??!0,destroy:t[6]??!0}):(n={type:"ESUeViewer",container:t[0],id:t[6],options:{project:t[1],baseUrl:t[2]??void 0}},i={viewSync:t[3]??!0,attributeSync:t[4]??!0,destroy:t[5]??!0}));if(!n)throw new Error("参数错误");const{viewSync:o,attributeSync:s,destroy:a}=i;return this.switchViewer(n,o,s,a)}createCesiumViewer(...t){let n;if(typeof t[0]=="object"&&!(t[0]instanceof HTMLDivElement)?n={...t[0],type:"ESCesiumViewer"}:(typeof t[0]=="string"||t[0]instanceof HTMLDivElement)&&(n={container:t[0],options:t[1]??void 0,id:t[2]??void 0,type:"ESCesiumViewer"}),!n)throw new Error("参数错误");return this.createViewer(n)}createUeViewer(...t){let n;if(typeof t[0]=="object"&&!(t[0]instanceof HTMLDivElement)?n={...t[0],type:"ESUeViewer"}:(typeof t[0]=="string"||t[0]instanceof HTMLDivElement)&&(typeof t[1]=="string"&&t[1].startsWith("ws")?n={type:"ESUeViewer",container:t[0],id:t[3]??void 0,options:{ws:t[1],esmsg:t[2]??void 0}}:typeof t[1]=="string"&&t[1].startsWith("http")?n={type:"ESUeViewer",container:t[0],id:t[4]??void 0,options:{uri:t[1],app:t[2],token:t[3]??void 0}}:n={type:"ESUeViewer",container:t[0],id:t[3]??void 0,options:{project:t[1],baseUrl:t[2]??void 0}}),!n)throw new Error("参数错误");return this.createViewer(n)}createSceneObject(t,n){return this._sobjm.createSceneObject(t,n)}createSceneObjectFromClass(t,n){return this._sobjm.createSceneObjectFromClass(t,n)}createSceneObjectFromJson(t){return this._sobjm.createSceneObjectFromJson(t)}destroySceneObject(t){const n=this._sobjm.deleteSceneObject(t);return t.destroy(),n}destroyAllSceneObjects(){const t=[...this._sobjm.sceneObjects];for(let n of t)n!=this._player&&n!=this._cmrvm&&this.destroySceneObject(n)}get player(){return this._player}get esPlyarAndPathTime(){return this._esPlyarAndPathTime}get pathAnimationManager(){return this._pathAnimationManager}}D(Io,"getSceneObjById",we.context.getSceneObjectById.bind(we.context)),D(Io,"getEnv",we.context.getEnv.bind(we.context)),D(Io,"setEnv",we.context.setEnv.bind(we.context)),(r=>{r.createDefaultProps=()=>({})})(Io||(Io={})),M.extendClassProps(Io.prototype,Io.createDefaultProps);function kC(){const r=navigator.userAgent;let e="Unknown";/Windows/.test(r)?e="Windows":/Macintosh/.test(r)?e="MacOS":/Linux/.test(r)?e="Linux":/Android/.test(r)?e="Android":/iOS|iPhone|iPad|iPod/.test(r)&&(e="iOS");let t="Unknown";return/x64|x86_64|Win64|WOW64/.test(r)?t="x64":/x86|i686|Win32/.test(r)?t="x86":/arm64|aarch64/.test(r)?t="arm64":/arm/.test(r)&&(t="arm"),{os:e.toLocaleLowerCase(),arch:t.toLocaleLowerCase()}}const GC=Date.now();function s0(r){const{os:e,arch:t}=kC(),n={version:r.version,commitdate:r.date,commitId:r.commitId,runningTime:(Date.now()-GC)/1e3/60|0,date:new Date().toLocaleString(),href:window.location.href,os:e,arch:t},o={method:"GET",headers:new Headers,redirect:"follow"},s=window.encodeURIComponent(JSON.stringify(n));fetch(`https://account.bjxbsj.cn/api/product/record?product=EarthSDKJS&content=${s}`,o).then(a=>a.text()).then(a=>console.log(a)).catch(a=>console.log("error",a))}X.copyright=void 0;try{const r="earthsdk3",e="3.0.8-beta.4",t="2025-06-16T06:42:12.000Z",n="北京西部世界科技有限公司",i="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",o="a5faeca49934cd291c0ac4be79130537ab818aff",a=((Date.now()-1750056132e3)/36e5).toFixed(1),c=`%c🌏 ${r}%c ${e}.${o.slice(0,8)}.${t} (距今${a}个小时)
773
+ `,NC='<svg t="1747028305766" class="icon" viewBox="0 0 1032 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3881" width="40" height="40"><path d="M0.1536 547.700736c-0.205824-0.187392-0.205824-0.49152 0.008192-0.68608l80.672768-73.590784a0.63488 0.63488 0 0 1 0.7936-0.029696l263.043072 203.0336c0.667648 0.515072 1.738752 0.498688 2.393088-0.038912l609.191936-500.133888a0.605184 0.605184 0 0 1 0.768 0.022528l74.84928 67.229696a0.454656 0.454656 0 0 1-0.002048 0.685056l-685.234176 618.19904a1.14688 1.14688 0 0 1-1.518592-0.012288L0.1536 547.700736z" fill="#ffffff" p-id="3882"></path></svg>',DC='<svg t="1747028398107" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1146" width="40" height="40"><path d="M415.744006 1.033277A0.992256 0.992256 0 0 1 416.747526 0.000061h189.5045c0.569344 0 1.017856 0.45056 1.001472 1.033216l-21.227518 754.803667a1.062912 1.062912 0 0 1-1.05984 1.032192h-146.933752c-0.569344 0-1.04448-0.45056-1.059839-1.032192L415.744006 1.033277zM511.510528 1024c-52.595709 0-95.231994-39.866366-95.231994-89.043963 0-49.176573 42.636285-89.042939 95.231994-89.042938 52.594685 0 95.231994 39.866366 95.231994 89.042938 0 49.177597-42.637309 89.043963-95.231994 89.043963z" fill="#ffffff" p-id="1147"></path></svg>',Ju=class Ju extends M.Destroyable{constructor(e){super();const t=()=>{const n=this.dv(new Oo);this.d(M.track([n,"show"],[e,"useDefaultStatusDiv"]));{const i=()=>{n.show=(e.useDefaultStatusDiv??!0)&&e.status!=="Created"};i(),this.d(e.useDefaultStatusDivChanged.don(i)),this.d(e.statusChanged.don(i)),n.cssText="width:100%;height:100%;position:absolute;left:0px;top:0px;"}e.add(n),this.d(()=>e.delete(n)),n.instanceClass=class extends M.Destroyable{constructor(s,a,c){super();D(this,"_div",document.createElement("div"));if(this._subContainer=s,!c)return;this._subContainer.appendChild(this._div),this.d(()=>this._subContainer.removeChild(this._div));{const _=()=>{a.show?this._div.style.opacity="1":this._div.style.opacity="0"};_(),this.d(a.showChanged.don(_))}let f,m,p,g,w;this._div.style.pointerEvents="none",this._div.style.position="absolute",this._div.style.width="100%",this._div.style.height="100%",this._div.style.backgroundColor="rgba(0, 0, 0, 0.4)",this._div.style.zIndex="100",this._div.style.transition="opacity 2s",f=document.createElement("div"),this._div.appendChild(f),f.style.width="auto",f.style.position="absolute",f.style.left="50%",f.style.top="50%",f.style.transform="translate(-50%,-50%)",f.style.background="rgba(120, 120, 0, 0.7)",f.style.color="white",f.style.fontSize="10px",f.style.background="none",f.style.display="flex",f.style.justifyContent="center",f.style.alignItems="center",m=document.createElement("div"),f.appendChild(m),m.style.pointerEvents="none",m.style.display="block",m.style.width="40px",m.innerHTML=Ju.defaultsSvg.loadingSvg,m.style.filter="drop-shadow(0px 0px 1px black)",p=document.createElement("div"),f.appendChild(p),p.style.pointerEvents="none",p.style.marginLeft="10px",p.style.display="flex",p.style.flexFlow="column",p.style.maxWidth="300px",g=document.createElement("div"),p.appendChild(g),g.style.fontSize="14px",g.style.fontWeight="800",g.style.marginBottom="5px",g.style.textShadow="0 0 2px black",w=document.createElement("div"),p.appendChild(w),w.style.fontWeight="400",w.style.textShadow="0 0 2px black";{const _=()=>{let h="Raw";c.status==="Raw"?h="初始状态":c.status==="Creating"?h="正在创建":c.status==="Created"?h="创建完成":c.status==="Error"?h="创建失败":c.status==="Reconnecting"&&(h="重新连接"),g.innerText=`${h}(${c.status})`,w.innerText=`${c.statusLog}`,(c.status==="Creating"||c.status==="Reconnecting")&&(m.innerHTML=Ju.defaultsSvg.loadingSvg),c.status==="Created"&&(m.innerHTML=Ju.defaultsSvg.successSvg),c.status==="Error"&&(m.innerHTML=Ju.defaultsSvg.warnSvg)};_();const y=this.dv(M.createNextAnimateFrameEvent(c.statusLogChanged,c.statusChanged));this.d(y.don(_))}}update(){const s=255*Math.random()|0,a=255*Math.random()|0,c=255*Math.random()|0;this._div.style.background=`rgba(${s}, ${a}, ${c}, 0.8)`}}};this.d(e.containerChanged.don(()=>{t()}))}};D(Ju,"defaultsSvg",{loadingSvg:TC,successSvg:NC,warnSvg:DC});let Ud=Ju;class AC extends M.Destroyable{constructor(e,t,n){super(),this._subContainer=e,this._overlayContainer=t,this._viewer=n;const i=this._subContainer,o=this._overlayContainer,s=this._viewer,a=()=>{const m=s.zIndex??"";i.style.zIndex=m,o.style.zIndex=m};a(),this.d(s.zIndexChanged.don(a));const c=()=>{i.style.display=s.show??!0?"block":"none"};c(),this.d(s.showChanged.don(c));const f=()=>{i.style.opacity=`${s.opacity??1}`};f(),this.d(s.opacityChanged.don(f))}}function nf(r){let e=M.getExtProp(r,"_relativeContainer");return e||(e=document.createElement("div"),e.style.position="relative",e.style.width="100%",e.style.height="100%",e.style.padding="0",e.style.margin="0",r.appendChild(e),M.setExtProp(r,"_relativeContainer",e)),e}class RC extends M.Destroyable{constructor(t,n){super();D(this,"_subContainer",document.createElement("div"));D(this,"_overlayContainer",document.createElement("div"));D(this,"_containerStyleController");this._container=t,this._viewer=n,this._containerStyleController=this.dv(new AC(this._subContainer,this._overlayContainer,this._viewer));const{subContainer:i,overlayContainer:o}=this;i.tabIndex=-1,i.style.outline="none",i.style.width="100%",i.style.height="100%",i.onpointerdown=()=>i.focus(),o.style.position="relative",o.setAttribute("earthsdk3","earthsdk3-overlayContainer"),i.setAttribute("earthsdk3","earthsdk3-subContainer"),nf(this._container).appendChild(i),this.d(()=>nf(this._container).removeChild(i)),nf(this._container).appendChild(o),this.d(()=>nf(this._container).removeChild(o))}get subContainer(){return this._subContainer}get overlayContainer(){return this._overlayContainer}get containerStyleController(){return this._containerStyleController}get container(){return this._container}}class LC extends M.Destroyable{constructor(){super(...arguments);D(this,"registerObjsMap",new Map)}register(t,n){return this.registerObjsMap.has(t)&&console.warn(`register warn:${t}已经被注册,再次注册会覆盖。`),this.registerObjsMap.set(t,n),t}getViewerConstructor(t){const n=this.registerObjsMap.get(t);if(!n){console.warn(`未找到${t}类!`);return}return n}createViewer(t){const n=t.type,i=this.getViewerConstructor(n);if(!i)throw new Error(`没有找到类型为${n}的Viewer构造器!`);return new i(t)}}class r0 extends M.Destroyable{constructor(e,t,n=!1,i=!1){if(super(),this._viewer=e,!t)throw new Error("ViewerCustomInteraction: container is null");const o=this.dv(M.DomElementEvent.create(t,"pointerdown")),s=this.dv(M.DomElementEvent.create(t,"pointermove")),a=this.dv(M.DomElementEvent.create(t,"pointerup")),c=this.dv(M.DomElementEvent.create(t,"pointerout")),f=this.dv(M.DomElementEvent.create(t,"pointerover")),m=this.dv(new M.PointerClick),p=this.dv(new M.PointerHover),g=()=>{const v=this._viewer.hoverTime*1e3;p.delayTime=v};this.d(this._viewer.hoverTimeChanged.don(()=>{g()})),this.d(o.don(v=>m.pointerDown(v))),this.d(s.don(v=>m.pointerMove(v))),this.d(a.don(v=>m.pointerUp(v))),this.d(c.don(v=>m.pointerOut(v))),this.d(o.don(v=>p.pointerDown(v))),this.d(s.don(v=>p.pointerMove(v))),this.d(a.don(v=>p.pointerUp(v))),this.d(c.don(v=>p.pointerOut(v)));const{x:w,y:_}=t.getBoundingClientRect(),y=i?w:0,h=i?_:0;this.d(p.hoverEvent.don(v=>{const[b,E]=M.getDomEventCurrentTargetPos(v,n);this._viewer.hoverEvent.emit({screenPosition:[b+y,E+h],pointerEvent:v})})),this.d(m.clickEvent.don(v=>{const[b,E]=M.getDomEventCurrentTargetPos(v,n);this._viewer.clickEvent.emit({screenPosition:[b+y,E+h],pointerEvent:v})})),this.d(m.dbclickEvent.don(v=>{const[b,E]=M.getDomEventCurrentTargetPos(v,n);v.button===0&&this._viewer.dblclickEvent.emit({screenPosition:[b+y,E+h],pointerEvent:v})})),this.d(o.don(v=>{const[b,E]=M.getDomEventCurrentTargetPos(v,n);v.button===0&&this._viewer.pointerDownEvent.emit({screenPosition:[b+y,E+h],pointerEvent:v})})),this.d(a.don(v=>{const[b,E]=M.getDomEventCurrentTargetPos(v,n);v.button===0&&this._viewer.pointerUpEvent.emit({screenPosition:[b+y,E+h],pointerEvent:v})})),this.d(s.don(v=>{const[b,E]=M.getDomEventCurrentTargetPos(v,n);this._viewer.pointerMoveEvent.emit({screenPosition:[b+y,E+h],pointerEvent:v})})),this.d(f.don(v=>{const[b,E]=M.getDomEventCurrentTargetPos(v,n);this._viewer.pointerOverEvent.emit({screenPosition:[b+y,E+h],pointerEvent:v})})),this.d(c.don(v=>{const[b,E]=M.getDomEventCurrentTargetPos(v,n);this._viewer.pointerOutEvent.emit({screenPosition:[b+y,E+h],pointerEvent:v})}));const d=this.dv(M.DomElementEvent.create(t,"keydown"));this.d(d.don(v=>this._viewer.keyDownEvent.emit(v)));const u=this.dv(M.DomElementEvent.create(t,"keyup"));this.d(u.don(v=>this._viewer.keyUpEvent.emit(v)));const l=this.dv(M.DomElementEvent.create(t,"wheel"));this.d(l.don(v=>this._viewer.wheelEvent.emit(v)))}}class FC extends M.Destroyable{constructor(t){super();D(this,"viewer");const n=this.viewer=t;this.ad(new M.ObjResettingWithEvent(n.rollerShutterChanged,()=>{var a;const i=(a=n.container)==null?void 0:a.parentElement;if(!i||!n.rollerShutter)return;const o=new M.Destroyable;this.viewer.splitPosition=.5;let s=this.getRollerShutterDIV();return i.appendChild(s),o.d(()=>{this.viewer.splitPosition=0,i.removeChild(s)}),o}))}getRollerShutterDIV(){let t=document.createElement("div");t.style.position="absolute",t.style.left="50%",t.style.top="0",t.style.backgroundColor="#d3d3d3",t.style.width="5px",t.style.height="100%",t.style.zIndex="9999";const n=i=>{if(!t.parentElement)return;i.preventDefault?i.preventDefault():i.returnValue=!1;const s=i.x/t.parentElement.offsetWidth;t.style.left=`${100*s}%`,this.viewer.splitPosition=s};return t.addEventListener("mousedown",i=>{document.addEventListener("mousemove",n)}),document.addEventListener("mouseup",i=>{document.removeEventListener("mousemove",n)}),t}}class jC extends M.Destroyable{constructor(t){super();D(this,"rollerShutterAnalysis");this.rollerShutterAnalysis=this.ad(new FC(t))}}const ys=class ys extends M.Destroyable{constructor(t){super();D(this,"_forceRecreateEvent",this.dv(new M.Event));D(this,"_container",this.dv(M.react(void 0)));D(this,"_containerSize",this.dv(M.react(void 0)));D(this,"_editingEvent",this.disposeVar(new M.Event));D(this,"_status",this.dv(M.react("Raw")));D(this,"_statusLog",this.dv(M.react("")));D(this,"_statusContainer",this.dv(new Ud(this)));D(this,"_useCustomInteraction",this.dv(M.react(!0)));D(this,"_resetInteractionEvent",this.dv(M.createNextAnimateFrameEvent(this.containerChanged,this._useCustomInteraction.changed,this._forceRecreateEvent)));D(this,"_interactionResetting",this.dv(new M.ObjResettingWithEvent(this._resetInteractionEvent,()=>{if(!(!this.container||!this._useCustomInteraction.value))return new r0(this,this.container)})));D(this,"_viewerChanged",this.dv(new M.Event));D(this,"_containerResetEvent",this.dv(M.createNextAnimateFrameEvent(this.containerChanged,this._forceRecreateEvent)));D(this,"_containerResetting",this.dv(new M.ObjResettingWithEvent(this._containerResetEvent,()=>{if(this.container)return new RC(this.container,this)})));D(this,"_sceneObjectsMap",new Map);D(this,"_id");D(this,"_typeName");D(this,"_updateFuncReact",this.dv(M.react(void 0)));D(this,"_toDestroyFuncReact",this.dv(M.react(void 0)));D(this,"_statusInfo",ys.defaults.statusInfo);D(this,"_navigationMode",this.dv(M.react("Map")));D(this,"_syncViewer",this.dv(M.react(void 0)));D(this,"_syncEventDon",this.dv(new M.ObjResettingWithEvent(this.syncViewerChanged,()=>{const t=this.syncViewer;if(t)return new IC(this,t)})));D(this,"_timeSyncdon",this.dv(new M.ObjResettingWithEvent(this.timeSyncChanged,()=>{if(this.timeSync)return new MC(this)})));D(this,"_hoverEvent",this.dv(new M.Event));D(this,"_pointerOverEvent",this.dv(new M.Event));D(this,"_pointerMoveEvent",this.dv(new M.Event));D(this,"_pointerDownEvent",this.dv(new M.Event));D(this,"_pointerUpEvent",this.dv(new M.Event));D(this,"_pointerOutEvent",this.dv(new M.Event));D(this,"_clickEvent",this.dv(new M.Event));D(this,"_dblclickEvent",this.dv(new M.Event));D(this,"_keyDownEvent",this.dv(new M.Event));D(this,"_keyUpEvent",this.dv(new M.Event));D(this,"_wheelEvent",this.dv(new M.Event));D(this,"_actived",this.dv(M.react(!1)));this._id=t.id??M.createGuid();const n=$y(t.container);if(n)this._container.value=zd(n),this._typeName=t.type,this._initName();else throw new Error("container is not defined");{const i=()=>{n&&(this.show??!0?n.style.display="block":n.style.display="none")};i(),this.d(this.showChanged.don(i))}{const i=this._sceneObjectsMap,o=()=>{for(let[a,c]of i.entries())if(!c&&a){const f=Vo.context.createEngineObject(a,this);f&&i.set(a,f)}},s=()=>{for(let[a,c]of i.entries())c&&!c.isDestroyed()&&c.destroy(),i.set(a,void 0)};this.d(s),this.d(this.viewerChanged.don(a=>{s(),a&&o()}))}{const i=()=>{if(this.execOnceFuncStr)try{Function(`"use strict";return (${this.execOnceFuncStr})`)()(this)}catch(o){console.warn(`execOnceFuncStr不能转成函数!或者函数执行时错误!id: ${this.id} ${this.typeName} error: ${o}`)}};i(),this.d(this.execOnceFuncStrChanged.don(i))}{const i=()=>{if(this.updateFuncStr)try{this.updateFunc=Function(`"use strict";return (${this.updateFuncStr})`)()}catch(s){console.warn(`updateFuncStr不能转成函数!或者函数执行时错误!id: ${this.id} ${this.typeName} error: ${s}`)}};i(),this.d(this.updateFuncStrChanged.don(i));let o;this.d(()=>o&&o.destroy()),this.d(this.updateFuncChanged.don(()=>{o&&o.cancel(),this.updateFunc&&(o=o||M.createAnimateFrame(),o.restart(void 0,s=>{this.updateFunc&&this.updateFunc(this,s)}))}))}{const i=()=>{try{this.toDestroyFunc=this.toDestroyFuncStr&&Function(`"use strict";return (${this.toDestroyFuncStr})`)()||void 0}catch(o){console.warn(`toDestroyFuncStr不能转成函数!或者函数执行时错误!id: ${this.id} ${this.typeName} error: ${o}`),this.toDestroyFunc=void 0}};i(),this.d(this.toDestroyFuncStrChanged.don(i)),this.d(this.toDestroyEvent.don(()=>{this.toDestroyFunc&&this.toDestroyFunc(this)}))}this.ad(new jC(this))}forceRecreate(){this._forceRecreateEvent.emit()}get container(){return this._container.value}set container(t){this._container.value=t}set containerOrId(t){if(typeof t=="string"){const n=document.getElementById(t);n&&n instanceof HTMLDivElement?this._container.value=zd(n):console.warn("containerOrId warn: !(container instanceof HTMLDivElement)")}else t instanceof HTMLDivElement?this._container.value=zd(t):console.warn("containerOrId warn: setting container failed!")}get containerChanged(){return this._container.changed}get containerSize(){return this._containerSize.value}set containerSize(t){this._containerSize.value=t}get containerSizeChanged(){return this._containerSize.changed}get editingEvent(){return this._editingEvent}get status(){return this._status.value}get statusChanged(){return this._status.changed}setStatus(t){this._status.value=t}get statusLog(){return this._statusLog.value}get statusLogChanged(){return this._statusLog.changed}setStatusLog(t){this._statusLog.value=t}get useCustomInteraction(){return this._useCustomInteraction.value}set useCustomInteraction(t){this._useCustomInteraction.value=t}get viewerChanged(){return this._viewerChanged}get containerResetEvent(){return this._containerResetEvent}get subContainer(){var t;return(t=this._containerResetting.obj)==null?void 0:t.subContainer}get subContainerChanged(){return this._containerResetting.objChanged}get overlayContainer(){var t;return(t=this._containerResetting.obj)==null?void 0:t.overlayContainer}get overlayContainerChanged(){return this._containerResetting.objChanged}get sceneObjectsMap(){return this._sceneObjectsMap}get sceneObjects(){return this._sceneObjectsMap.keys()}getEngineObject(t){return this.sceneObjectsMap.get(t)}add(...t){for(let n of t)if(!this.has(n)){const i=Vo.context.createEngineObject(n,this);i&&this._sceneObjectsMap.set(n,i),n.viewerAttached.emit(this)}}delete(...t){for(let n of t)if(this.has(n)){const i=this._sceneObjectsMap.get(n);i&&i.destroy(),this._sceneObjectsMap.delete(n),n.viewerDetached.emit(this)}}disposableAdd(...t){return this.add(...t),()=>this.delete(...t)}disAdd(...t){return this.disposableAdd(...t)}has(t){return this._sceneObjectsMap.has(t)}clearAllSceneObjects(){for(let t of this.sceneObjects)this.delete(t)}get id(){return this._id}set id(t){console.warn("ESViewer id is readonly")}get typeName(){return this._typeName}_initName(){this.name=`${this.typeName}_${(""+this.id).slice(-4)}`}get defaultProps(){return ys.createDefaultProps()}_getJson(t=!0){const n={id:this.id,type:this.typeName};for(let i of Object.keys(this.defaultProps))if(t){let o,s=this.defaultProps[i];s instanceof M.ReactiveVariable?o=s.equals(this[i]):o=s===this[i],o||(n[i]=this[i])}else n[i]=this[i];return n}_setJson(t,n,i){if(!(t instanceof Object)||t.type&&t.type!==this.typeName){console.error(`value.type && value.type${t.type} !== this.typeName${this.typeName}`);return}t.id&&t.id!==this.id&&console.warn(`value.id === undefined || value.id${t.id} !== this.id(${this.id})`);const o=n||[];o.push("id","type");const s=Object.keys(this.defaultProps).filter(a=>!o.includes(a));for(let a of s)if(a in t)this[a]=t[a]===null?void 0:t[a];else if(!(i??!1)){let c=this.defaultProps[a];c instanceof M.ReactiveVariable&&(c=c.value),this[a]=c}}get json(){return this._getJson()}set json(t){this._setJson(t,["devTags"])}get updateFunc(){return this._updateFuncReact.value}set updateFunc(t){this._updateFuncReact.value=t}get updateFuncChanged(){return this._updateFuncReact.changed}get toDestroyFunc(){return this._toDestroyFuncReact.value}set toDestroyFunc(t){this._toDestroyFuncReact.value=t}get toDestroyFuncChanged(){return this._toDestroyFuncReact.changed}get navigationMode(){return this._navigationMode.value}get navigationModeChanged(){return this._navigationMode.changed}getNavigationMode(){return this._navigationMode.value}getEngineType(){return this._typeName}get syncViewer(){return this._syncViewer.value}set syncViewer(t){this._syncViewer.value=t}get syncViewerChanged(){return this._syncViewer.changed}syncOtherViewer(t){t&&t.syncViewer&&(t.syncViewer=void 0),t===this?this._syncViewer.value=void 0:this._syncViewer.value=t}setCurrentTime(t){try{this.currentTime=typeof t=="string"?Date.parse(t):t}catch(n){console.warn(`时间格式不正确! value: ${t} error: ${n}`)}}async getVersion(){return window.g_XE3CopyRights??{}}get hoverEvent(){return this._hoverEvent}get pointerOverEvent(){return this._pointerOverEvent}get pointerMoveEvent(){return this._pointerMoveEvent}get pointerDownEvent(){return this._pointerDownEvent}get pointerUpEvent(){return this._pointerUpEvent}get pointerOutEvent(){return this._pointerOutEvent}get clickEvent(){return this._clickEvent}get dblclickEvent(){return this._dblclickEvent}get keyDownEvent(){return this._keyDownEvent}get keyUpEvent(){return this._keyUpEvent}get wheelEvent(){return this._wheelEvent}getProperties(t){return[new ee("ESViewer","ESViewer",[new Se("强制刷新","重载",[],()=>this.forceRecreate(),[]),new $("debug","debug",!0,!1,[this,"debug"],ys.defaults.debug),new $("是否可见","是否可见",!0,!1,[this,"show"]),new ce("位置点单位","lonLatFormat",!0,!1,[this,"lonLatFormat"],[["度","DECIMAL_DEGREE"],["度分","DEGREES_DECIMAL_MINUTES"],["度分秒","SEXAGESIMAL_DEGREE"]]),new $("是否开启文字避让","textAvoidance",!0,!1,[this,"textAvoidance"],!1),new de("ionAccessToken","ionAccessToken",!1,!1,[this,"ionAccessToken"]),new q("时钟","时钟",!1,!1,[this,"currentTime"]),new $("globeShow","globeShow",!0,!1,[this,"globeShow"]),new $("atmosphere","atmosphere",!1,!1,[this,"atmosphere"])]),new q("飞行像素范围","默认飞行定位时对象包围球所占的屏幕像素大小",!1,!1,[this,"flyToBoundingSize"]),new q("编辑高度偏移","编辑时默认的高度偏移",!1,!1,[this,"editingHeightOffset"]),new ee("Globe","Globe",[new ne("地形着色器","可以设置地形全局坡度,坡向,高程带,等高线等",!1,!1,[this,"terrainShader"])])]}get actived(){return this._actived.value}set actived(t){this._actived.value=t}get activedChanged(){return this._actived.changed}};D(ys,"context",new LC),D(ys,"register",ys.context.register.bind(ys.context)),D(ys,"defaults",{show:!0,debug:!1,statusInfo:{fps:0,position:[0,0,0],rotation:[0,0,0],length:0},terrainShader:{slope:{show:!1},aspect:{show:!1},elevationRamp:{show:!1,minHeight:-414,maxHeight:8777,color:[]},elevationContour:{show:!1,color:[1,0,0,1],spacing:150,width:2}},globeShow:!0,splitPosition:0});let Ai=ys;(r=>{r.createBaseProps=()=>({name:"未命名场景对象",extras:M.reactJson(void 0),devTags:M.reactArrayWithUndefined(void 0),debug:void 0,show:void 0,opacity:void 0,zIndex:void 0,useDefaultStatusDiv:!0,execOnceFuncStr:void 0,updateFuncStr:void 0,toDestroyFuncStr:void 0}),r.createCommonProps=()=>({globeShow:!0,ionAccessToken:"",lonLatFormat:"DECIMAL_DEGREE",fov:60,textAvoidance:!1,flyToBoundingSize:256,hoverTime:2,currentTime:Date.now(),simulationTime:Date.now(),timeSync:!1,rain:0,snow:0,cloud:0,fog:0,depthOfField:0,atmosphere:!0,editingPointSize:void 0,editingPointColor:M.reactArrayWithUndefined(void 0),editingAuxiliaryPointColor:M.reactArrayWithUndefined(void 0),editingLineWidth:void 0,editingLineColor:M.reactArrayWithUndefined(void 0),editingAxisSize:void 0,editingAuxiliaryPointSize:void 0,editingHeightOffset:0,editingLineShow:!0,editingEventListening:!0,terrainShader:r.defaults.terrainShader,splitPosition:M.react(void 0),rollerShutter:!1}),r.createDefaultProps=()=>({...(0,r.createBaseProps)(),...(0,r.createCommonProps)()})})(Ai||(Ai={})),M.extendClassProps(Ai.prototype,Ai.createDefaultProps);function n0(r,e){const t=r._lastCameraInfo;if(t){const n=e.viewerChanged.don(i=>{if(!i||!t)return;const{position:o,rotation:s}=t;e.flyIn(o,s,0),r._lastCameraInfo=void 0,n()})}}const kC=r=>{const e=Ai.createCommonProps(),t={};try{Object.keys(e).forEach(n=>{t[n]=r[n]})}catch(n){console.warn(n)}return t},i0=(r,e)=>{const t=Ai.createCommonProps();try{Object.keys(t).forEach(n=>{r[n]=e[n]})}catch(n){console.warn(n)}};class GC extends M.Destroyable{constructor(t){super();D(this,"_viewersChanged",this.disposeVar(new M.Event));D(this,"_viewers",new Set);D(this,"_viewersToChange",this.dv(new M.Event));this._sceneObjectsManager=t,this.d(()=>{for(const n of this._viewers)this.destroyViewer(n);this._viewers.clear()}),this.viewers.forEach(n=>{const i=this._sceneObjectsManager.sceneObjects;n.add(...i)}),this.d(()=>{const n=this._sceneObjectsManager.sceneObjects;this.viewers.forEach(i=>{i.delete(...n)})}),this.d(this._sceneObjectsManager.sceneObjectsToChange.don((n,i)=>{this.viewers.forEach(o=>{i.forEach(s=>{Ls(o.devTags,s.devTags)&&(o.has(s)?console.warn(`${o.typeName}中已存${s.typeName},检查逻辑是否有问题!`):o.add(s))}),n.forEach(s=>{Ls(o.devTags,s.devTags)&&(o.has(s)?o.delete(s):console.warn(`${o.typeName}中不存在${s.typeName},检查逻辑是否有问题!`))})}),i.length>0&&i.forEach(o=>{o.d(o.devTagsChanged.don(()=>{this.viewers.forEach(s=>{s.has(o)&&s.delete(o),console.log("sceneObjectsToChange",s.devTags,o.devTags,Ls(s.devTags,o.devTags)),Ls(s.devTags,o.devTags)&&(s.has(o)?console.warn(`${s.typeName}中已存${o.typeName},检查逻辑是否有问题!`):s.add(o))})}))})})),this.d(this.viewersChanged.don((n,i)=>{const o=this._sceneObjectsManager.sceneObjects;i.forEach(s=>{for(let a of o)Ls(s.devTags,a.devTags)&&(s.has(a)?console.warn(`${s.typeName}中已存${a.typeName},检查逻辑是否有问题!`):s.add(a))}),n.forEach(s=>{for(let a of o)Ls(s.devTags,a.devTags)&&(s.has(a)?s.delete(a):console.warn(`${s.typeName}中不存在${a.typeName},检查逻辑是否有问题!`))}),i.length>0&&i.forEach(s=>{s.d(s.devTagsChanged.don(()=>{s.clearAllSceneObjects();const a=this._sceneObjectsManager.sceneObjects;for(let c of a)console.log("viewersChanged",s.devTags,c.devTags,Ls(s.devTags,c.devTags)),Ls(s.devTags,c.devTags)&&(s.has(c)?console.warn(`${s.typeName}中已存${c.typeName},检查逻辑是否有问题!`):s.add(c))}))})}))}get viewersChanged(){return this._viewersChanged}get viewers(){return this._viewers}getViewers(){return[...this._viewers]}get viewersToChange(){return this._viewersToChange}createViewer(t){const n=Ai.context.createViewer(t);return this._viewers.add(n),this._viewersChanged.emit([],[n]),n}destroyViewer(t){return t.isDestroyed()?!0:(this._viewers.delete(t),this._viewersChanged.emit([t],[]),t.destroy(),t.isDestroyed())}}class Io extends M.Destroyable{constructor(...t){super();D(this,"_drgm",this.dv(new py));D(this,"_sobjm",this.dv(new OC));D(this,"_vrm",this.dv(new GC(this._sobjm)));D(this,"_sceneObjectEditingManager",this.disposeVar(new xC));D(this,"_activeViewer",this.dv(M.react(void 0)));D(this,"_syncOtherViewersToActived",this.dv(M.react(!1)));D(this,"_cmrvm",this.createSceneObjectFromClass(Co));D(this,"_cmrvmdon",this.d(()=>this._cmrvm&&this.destroySceneObject(this._cmrvm)));D(this,"_asset",{type:"ESObjectsManager",version:"0.1.0",createdTime:"",modifiedTime:"",name:"未命名项目"});D(this,"_sceneTree",this.dv(new zc("default",this.dragstartDataMananger,24,this)));D(this,"_propUiTreeManager",this.dv(new Vl(24)));D(this,"_sceneTreeMap",new Map);D(this,"_viewerCreatedEvent",this.dv(new M.Event));D(this,"_lastCameraInfo");D(this,"_lastActiveViewerJson");D(this,"syncEvent",this.dv(M.createNextAnimateFrameEvent(this.activeViewerChanged,this.syncOtherViewersToActivedChanged)));D(this,"_syncEventDon",this.d(this.syncEvent.don(()=>{const t=this.syncOtherViewersToActived;this.viewers.forEach(n=>{t?n.syncOtherViewer(this.activeViewer):n.syncOtherViewer(void 0)})})));D(this,"_player",this.createSceneObjectFromClass(ks));D(this,"_playerdon",this.d(()=>this._player&&this.destroySceneObject(this._player)));D(this,"_esPlyarAndPathTime",this.dv(new bC(this)));D(this,"_pathAnimationManager",this.dv(new EC(this)))}static get envs(){return we.context.environmentVariables}getSceneObjectById(t){return we.getSceneObjectById(t)}getSceneObject(t){return we.getSceneObject(t)}get $refs(){return we.$refs}get dragstartDataMananger(){return this._drgm}get sceneObjectsManager(){return this._sobjm}get viewers(){return this._vrm.viewers}getViewers(){return this._vrm.getViewers()}get sceneObjectEditingManager(){return this._sceneObjectEditingManager}get activeViewer(){return this._activeViewer.value}set activeViewer(t){this._activeViewer.value=t}get activeViewerChanged(){return this._activeViewer.changed}get syncOtherViewersToActived(){return this._syncOtherViewersToActived.value}set syncOtherViewersToActived(t){this._syncOtherViewersToActived.value=t}get syncOtherViewersToActivedChanged(){return this._syncOtherViewersToActived.changed}get cameraViewsManager(){return this._cmrvm}get json(){var p;const t=this._asset.createdTime||new Date().toISOString(),n=new Date().toISOString(),i=this._asset.name||"未命名项目",s={type:"ESObjectsManager",version:this._asset.version||"0.1.0",createdTime:t,modifiedTime:n,name:i},a=this.sceneTree.json,c=this._cmrvm.views,f=[...this._vrm.viewers].map(g=>g.json),m=(p=this.activeViewer)==null?void 0:p.getCurrentCameraInfo();return{asset:s,viewers:f,sceneTree:a,viewCollection:c,lastView:m}}set json(t){try{if(!t.asset)return;if(!t.asset.type||t.asset.type!=="ESObjectsManager"){console.warn("json装配失败! asset.type 不存在或者不是'ESObjectsManager'");return}if(this._asset.createdTime=t.asset&&t.asset.createdTime||new Date().toISOString(),this._asset.modifiedTime=t.asset&&t.asset.modifiedTime||"",this._asset.name=t.asset&&t.asset.name||"未命名项目",this._asset.version=t.asset&&t.asset.version||"0.1.0",t.sceneTree&&(this.sceneTree.json=t.sceneTree),t.viewCollection&&(this._cmrvm.views=t.viewCollection),!t.viewers||!Array.isArray(t.viewers)){console.warn("viewers is not an array or does not exist !");return}if(this._vrm.viewers.size===0||t.viewers.length===0){console.warn("viewers is empty !");return}this._vrm.viewers.forEach(n=>{const i=t.viewers.find(o=>o.id===n.id);i&&(n.json=i)})}catch(n){console.error(`ESObjectsManager解析json数据时发生错误! error: ${n}`)}}get sceneTree(){return this._sceneTree}get jsonLoadingEvent(){return this._sceneTree.jsonLoadingEvent}get propUiTreeManager(){return this._propUiTreeManager}propTreeCallback(t){return PC(this,t)}getSceneTrees(){return[...this._sceneTreeMap.values()]}getSceneTree(t="default"){if(t==="default")return this._sceneTree;if(!this._sceneTreeMap.has(t)){console.warn(`id为${t}的SceneTree不存在!`);return}return this._sceneTreeMap.get(t)}createSceneTree(t,n=24){if(this._sceneTreeMap.has(t)||t==="default")console.warn(`id为${t}的SceneTree已存在!`);else{const i=this.dv(new zc(t,this.dragstartDataMananger,n,this));this._sceneTreeMap.set(t,i)}return this.getSceneTree(t)}get viewerCreatedEvent(){return this._viewerCreatedEvent}createViewer(t){const n=this._vrm.createViewer(t);this.activeViewer||(this.activeViewer=n);const i=this.d(n.viewerChanged.don(o=>{o&&(this._viewerCreatedEvent.emit(n),i())}));return n}destroyViewer(t){return this._activeViewer.value===t&&(this._activeViewer.value=void 0),this._vrm.destroyViewer(t)}switchViewer(t,n=!0,i=!0,o=!0){var f;this.activeViewer&&this.activeViewer.getNavigationMode()!=="Map"&&this.activeViewer.changeToMap(),!this._lastCameraInfo&&n&&(this._lastCameraInfo=(f=this.activeViewer)==null?void 0:f.getCurrentCameraInfo()),!this._lastActiveViewerJson&&i&&(this._lastActiveViewerJson=this.activeViewer?kC(this.activeViewer):void 0),o&&this.activeViewer&&this.destroyViewer(this.activeViewer);const s=t.id,a=s?[...this.getViewers()].find(m=>m.id===s):[...this.getViewers()].find(m=>m.typeName===t.type);if(a)if(s&&a.typeName!==t.type)console.warn(`id为${s}的viewer的typeName和option.type${t.type}不相同!,虽然id一致但是typeName不同,所以会销毁并创建新的viewer`),this.destroyViewer(a);else return console.log("ESViewer exists, will be used"),n&&n0(this,a),i&&this._lastActiveViewerJson&&(i0(a,this._lastActiveViewerJson),this._lastActiveViewerJson=void 0),a.container===$y(t.container)?(a.containerOrId=t.container,a.forceRecreate()):a.containerOrId=t.container,this.activeViewer=a,a;console.log("No ESViewer exists, will be created");const c=this.createViewer(t);return n&&n0(this,c),i&&this._lastActiveViewerJson&&(i0(c,this._lastActiveViewerJson),this._lastActiveViewerJson=void 0),this.activeViewer=c,c}switchToCesiumViewer(...t){if(typeof t[0]=="object"&&!(t[0]instanceof HTMLDivElement)){const{container:n,viewSync:i,attributeSync:o,destroy:s,id:a}=t[0];return this.switchViewer({type:"ESCesiumViewer",container:n,id:a},i??!0,o??!0,s??!0)}else if(typeof t[0]=="string"||t[0]instanceof HTMLDivElement){const n={container:t[0],viewSync:t[1]??!0,attributeSync:t[2]??!0,destroy:t[3]??!0,id:t[4]},{container:i,viewSync:o,attributeSync:s,destroy:a,id:c}=n;return this.switchViewer({type:"ESCesiumViewer",container:i,id:c},o,s,a)}}switchToUEViewer(...t){let n,i={viewSync:!0,attributeSync:!0,destroy:!0};if(typeof t[0]=="object"&&!(t[0]instanceof HTMLDivElement)&&t[0].hasOwnProperty("uri")){const{container:c,uri:f,app:m,token:p,viewSync:g,attributeSync:w,destroy:_,id:y}=t[0];n={type:"ESUeViewer",container:c,id:y,options:{uri:f,app:m,token:p}},i={viewSync:g??!0,attributeSync:w??!0,destroy:_??!0}}else if(typeof t[0]=="object"&&!(t[0]instanceof HTMLDivElement)&&t[0].hasOwnProperty("ws")){const{container:c,ws:f,esmsg:m,viewSync:p,attributeSync:g,id:w,destroy:_}=t[0];n={type:"ESUeViewer",container:c,id:w,options:{ws:f,esmsg:m}},i={viewSync:p??!0,attributeSync:g??!0,destroy:_??!0}}else if(typeof t[0]=="object"&&!(t[0]instanceof HTMLDivElement)&&t[0].hasOwnProperty("project")){const{container:c,project:f,baseUrl:m,viewSync:p,attributeSync:g,id:w,destroy:_}=t[0];n={type:"ESUeViewer",container:c,id:w,options:{project:f,baseUrl:m}},i={viewSync:p??!0,attributeSync:g??!0,destroy:_??!0}}else(typeof t[0]=="string"||t[0]instanceof HTMLDivElement)&&(typeof t[1]=="string"&&t[1].startsWith("ws")?(n={type:"ESUeViewer",container:t[0],id:t[6],options:{ws:t[1],esmsg:t[2]??void 0}},i={viewSync:t[3]??!0,attributeSync:t[4]??!0,destroy:t[5]??!0}):typeof t[1]=="string"&&t[1].startsWith("http")?(n={type:"ESUeViewer",container:t[0],id:t[7],options:{uri:t[1],app:t[2],token:t[3]??void 0}},i={viewSync:t[4]??!0,attributeSync:t[5]??!0,destroy:t[6]??!0}):(n={type:"ESUeViewer",container:t[0],id:t[6],options:{project:t[1],baseUrl:t[2]??void 0}},i={viewSync:t[3]??!0,attributeSync:t[4]??!0,destroy:t[5]??!0}));if(!n)throw new Error("参数错误");const{viewSync:o,attributeSync:s,destroy:a}=i;return this.switchViewer(n,o,s,a)}createCesiumViewer(...t){let n;if(typeof t[0]=="object"&&!(t[0]instanceof HTMLDivElement)?n={...t[0],type:"ESCesiumViewer"}:(typeof t[0]=="string"||t[0]instanceof HTMLDivElement)&&(n={container:t[0],options:t[1]??void 0,id:t[2]??void 0,type:"ESCesiumViewer"}),!n)throw new Error("参数错误");return this.createViewer(n)}createUeViewer(...t){let n;if(typeof t[0]=="object"&&!(t[0]instanceof HTMLDivElement)?n={...t[0],type:"ESUeViewer"}:(typeof t[0]=="string"||t[0]instanceof HTMLDivElement)&&(typeof t[1]=="string"&&t[1].startsWith("ws")?n={type:"ESUeViewer",container:t[0],id:t[3]??void 0,options:{ws:t[1],esmsg:t[2]??void 0}}:typeof t[1]=="string"&&t[1].startsWith("http")?n={type:"ESUeViewer",container:t[0],id:t[4]??void 0,options:{uri:t[1],app:t[2],token:t[3]??void 0}}:n={type:"ESUeViewer",container:t[0],id:t[3]??void 0,options:{project:t[1],baseUrl:t[2]??void 0}}),!n)throw new Error("参数错误");return this.createViewer(n)}createSceneObject(t,n){return this._sobjm.createSceneObject(t,n)}createSceneObjectFromClass(t,n){return this._sobjm.createSceneObjectFromClass(t,n)}createSceneObjectFromJson(t){return this._sobjm.createSceneObjectFromJson(t)}destroySceneObject(t){const n=this._sobjm.deleteSceneObject(t);return t.destroy(),n}destroyAllSceneObjects(){const t=[...this._sobjm.sceneObjects];for(let n of t)n!=this._player&&n!=this._cmrvm&&this.destroySceneObject(n)}get player(){return this._player}get esPlyarAndPathTime(){return this._esPlyarAndPathTime}get pathAnimationManager(){return this._pathAnimationManager}}D(Io,"getSceneObjById",we.context.getSceneObjectById.bind(we.context)),D(Io,"getEnv",we.context.getEnv.bind(we.context)),D(Io,"setEnv",we.context.setEnv.bind(we.context)),(r=>{r.createDefaultProps=()=>({})})(Io||(Io={})),M.extendClassProps(Io.prototype,Io.createDefaultProps);function VC(){const r=navigator.userAgent;let e="Unknown";/Windows/.test(r)?e="Windows":/Macintosh/.test(r)?e="MacOS":/Linux/.test(r)?e="Linux":/Android/.test(r)?e="Android":/iOS|iPhone|iPad|iPod/.test(r)&&(e="iOS");let t="Unknown";return/x64|x86_64|Win64|WOW64/.test(r)?t="x64":/x86|i686|Win32/.test(r)?t="x86":/arm64|aarch64/.test(r)?t="arm64":/arm/.test(r)&&(t="arm"),{os:e.toLocaleLowerCase(),arch:t.toLocaleLowerCase()}}const BC=Date.now();function s0(r){const{os:e,arch:t}=VC(),n={version:r.version,commitdate:r.date,commitId:r.commitId,runningTime:(Date.now()-BC)/1e3/60|0,date:new Date().toLocaleString(),href:window.location.href,os:e,arch:t},o={method:"GET",headers:new Headers,redirect:"follow"},s=window.encodeURIComponent(JSON.stringify(n));fetch(`https://account.bjxbsj.cn/api/product/record?product=EarthSDKJS&content=${s}`,o).then(a=>a.text()).then(a=>console.log(a)).catch(a=>console.log("error",a))}X.copyright=void 0;try{const r="earthsdk3",e="3.0.8-beta.5",t="2025-06-19T00:47:05.000Z",n="北京西部世界科技有限公司",i="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",o="468c6a33b6cf9a394b5cc013cf77153920efc031",a=((Date.now()-1750294025e3)/36e5).toFixed(1),c=`%c🌏 ${r}%c ${e}.${o.slice(0,8)}.${t} (距今${a}个小时)
774
774
  %c${i?i+`
775
775
  `:""}当前网站正在使用${r},此软件版权归${n}所有
776
- `;X.copyright=Object.freeze({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){return OWNERLINK_},get gituri(){return GITURI_&&GITURI_.replace("${commitId}","a5faeca49934cd291c0ac4be79130537ab818aff")},get info(){return c},get date(){return"2025-06-16T06:42:12.000Z"},get author(){return"suplyang"},get version(){return"3.0.8-beta.4"},get name(){return"earthsdk3"},get commitId(){return"a5faeca49934cd291c0ac4be79130537ab818aff"},print(){console.info(this.info,`
776
+ `;X.copyright=Object.freeze({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){return OWNERLINK_},get gituri(){return GITURI_&&GITURI_.replace("${commitId}","468c6a33b6cf9a394b5cc013cf77153920efc031")},get info(){return c},get date(){return"2025-06-19T00:47:05.000Z"},get author(){return"suplyang"},get version(){return"3.0.8-beta.5"},get name(){return"earthsdk3"},get commitId(){return"468c6a33b6cf9a394b5cc013cf77153920efc031"},print(){console.info(this.info,`
777
777
  font-size: 18px;
778
778
  font-weight: 1000;
779
779
  line-height: 1;