@metagl/sdk-plotting 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +267 -86
- package/lacdt.plotting.d.ts +2 -2
- package/lacdt.plotting.js +1 -1
- package/package.json +1 -1
- package/types/Models/AnimationConfig.d.ts +1 -1
package/lacdt.plotting.js
CHANGED
|
@@ -471,4 +471,4 @@ mersenne-twister.js - https://gist.github.com/banksean/300494
|
|
|
471
471
|
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
472
472
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
473
473
|
*/
|
|
474
|
-
function NG(e){null==e&&(e=(new Date).getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,this.init_genrand(e)}NG.prototype.init_genrand=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti<this.N;this.mti++){e=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30;this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0}},NG.prototype.genrand_int32=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var i;for(this.mti==this.N+1&&this.init_genrand(5489),i=0;i<this.N-this.M;i++)e=this.mt[i]&this.UPPER_MASK|this.mt[i+1]&this.LOWER_MASK,this.mt[i]=this.mt[i+this.M]^e>>>1^t[1&e];for(;i<this.N-1;i++)e=this.mt[i]&this.UPPER_MASK|this.mt[i+1]&this.LOWER_MASK,this.mt[i]=this.mt[i+(this.M-this.N)]^e>>>1^t[1&e];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[1&e],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,(e^=e>>>18)>>>0},NG.prototype.random=function(){return this.genrand_int32()*(1/4294967296)};const kG=NG;var FG={EPSILON1:.1,EPSILON2:.01,EPSILON3:.001,EPSILON4:1e-4,EPSILON5:1e-5,EPSILON6:1e-6,EPSILON7:1e-7,EPSILON8:1e-8,EPSILON9:1e-9,EPSILON10:1e-10,EPSILON11:1e-11,EPSILON12:1e-12,EPSILON13:1e-13,EPSILON14:1e-14,EPSILON15:1e-15,EPSILON16:1e-16,EPSILON17:1e-17,EPSILON18:1e-18,EPSILON19:1e-19,EPSILON20:1e-20,EPSILON21:1e-21,GRAVITATIONALPARAMETER:3986004418e5,SOLAR_RADIUS:6955e5,LUNAR_RADIUS:1737400,SIXTY_FOUR_KILOBYTES:65536,FOUR_GIGABYTES:4294967296};FG.sign=HU(Math.sign,function(e){return 0===(e=+e)||e!=e?e:e>0?1:-1}),FG.signNotZero=function(e){return e<0?-1:1},FG.toSNorm=function(e,t){return t=HU(t,255),Math.round((.5*FG.clamp(e,-1,1)+.5)*t)},FG.fromSNorm=function(e,t){return t=HU(t,255),FG.clamp(e,0,t)/t*2-1},FG.normalize=function(e,t,i){return 0===(i=Math.max(i-t,0))?0:FG.clamp((e-t)/i,0,1)},FG.sinh=HU(Math.sinh,function(e){return(Math.exp(e)-Math.exp(-e))/2}),FG.cosh=HU(Math.cosh,function(e){return(Math.exp(e)+Math.exp(-e))/2}),FG.lerp=function(e,t,i){return(1-i)*e+i*t},FG.PI=Math.PI,FG.ONE_OVER_PI=1/Math.PI,FG.PI_OVER_TWO=Math.PI/2,FG.PI_OVER_THREE=Math.PI/3,FG.PI_OVER_FOUR=Math.PI/4,FG.PI_OVER_SIX=Math.PI/6,FG.THREE_PI_OVER_TWO=3*Math.PI/2,FG.TWO_PI=2*Math.PI,FG.ONE_OVER_TWO_PI=1/(2*Math.PI),FG.RADIANS_PER_DEGREE=Math.PI/180,FG.DEGREES_PER_RADIAN=180/Math.PI,FG.RADIANS_PER_ARCSECOND=FG.RADIANS_PER_DEGREE/3600,FG.toRadians=function(e){if(!DU(e))throw new IU("degrees is required.");return e*FG.RADIANS_PER_DEGREE},FG.toDegrees=function(e){if(!DU(e))throw new IU("radians is required.");return e*FG.DEGREES_PER_RADIAN},FG.convertLongitudeRange=function(e){if(!DU(e))throw new IU("angle is required.");var t=FG.TWO_PI,i=e-Math.floor(e/t)*t;return i<-Math.PI?i+t:i>=Math.PI?i-t:i},FG.clampToLatitudeRange=function(e){if(!DU(e))throw new IU("angle is required.");return FG.clamp(e,-1*FG.PI_OVER_TWO,FG.PI_OVER_TWO)},FG.negativePiToPi=function(e){if(!DU(e))throw new IU("angle is required.");return e>=-FG.PI&&e<=FG.PI?e:FG.zeroToTwoPi(e+FG.PI)-FG.PI},FG.zeroToTwoPi=function(e){if(!DU(e))throw new IU("angle is required.");if(e>=0&&e<=FG.TWO_PI)return e;var t=FG.mod(e,FG.TWO_PI);return Math.abs(t)<FG.EPSILON14&&Math.abs(e)>FG.EPSILON14?FG.TWO_PI:t},FG.mod=function(e,t){if(!DU(e))throw new IU("m is required.");if(!DU(t))throw new IU("n is required.");if(0===t)throw new IU("divisor cannot be 0.");return FG.sign(e)===FG.sign(t)&&Math.abs(e)<Math.abs(t)?e:(e%t+t)%t},FG.equalsEpsilon=function(e,t,i,n){if(!DU(e))throw new IU("left is required.");if(!DU(t))throw new IU("right is required.");i=HU(i,0),n=HU(n,i);var r=Math.abs(e-t);return r<=n||r<=i*Math.max(Math.abs(e),Math.abs(t))},FG.lessThan=function(e,t,i){if(!DU(e))throw new IU("first is required.");if(!DU(t))throw new IU("second is required.");if(!DU(i))throw new IU("absoluteEpsilon is required.");return e-t<-i},FG.lessThanOrEquals=function(e,t,i){if(!DU(e))throw new IU("first is required.");if(!DU(t))throw new IU("second is required.");if(!DU(i))throw new IU("absoluteEpsilon is required.");return e-t<i},FG.greaterThan=function(e,t,i){if(!DU(e))throw new IU("first is required.");if(!DU(t))throw new IU("second is required.");if(!DU(i))throw new IU("absoluteEpsilon is required.");return e-t>i},FG.greaterThanOrEquals=function(e,t,i){if(!DU(e))throw new IU("first is required.");if(!DU(t))throw new IU("second is required.");if(!DU(i))throw new IU("absoluteEpsilon is required.");return e-t>-i};var HG=[1];FG.factorial=function(e){if("number"!=typeof e||e<0)throw new IU("A number greater than or equal to 0 is required.");var t=HG.length;if(e>=t)for(var i=HG[t-1],n=t;n<=e;n++){var r=i*n;HG.push(r),i=r}return HG[e]},FG.incrementWrap=function(e,t,i){if(i=HU(i,0),!DU(e))throw new IU("n is required.");if(t<=i)throw new IU("maximumValue must be greater than minimumValue.");return++e>t&&(e=i),e},FG.isPowerOfTwo=function(e){if("number"!=typeof e||e<0||e>4294967295)throw new IU("A number between 0 and (2^32)-1 is required.");return 0!==e&&!(e&e-1)},FG.nextPowerOfTwo=function(e){if("number"!=typeof e||e<0||e>2147483648)throw new IU("A number between 0 and 2^31 is required.");return--e,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e},FG.previousPowerOfTwo=function(e){if("number"!=typeof e||e<0||e>4294967295)throw new IU("A number between 0 and (2^32)-1 is required.");return e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e=((e|=e>>32)>>>0)-(e>>>1)},FG.clamp=function(e,t,i){if(!DU(e))throw new IU("value is required");if(!DU(t))throw new IU("min is required.");if(!DU(i))throw new IU("max is required.");return e<t?t:e>i?i:e};var YG=new kG;FG.setRandomNumberSeed=function(e){if(!DU(e))throw new IU("seed is required.");YG=new kG(e)},FG.nextRandomNumber=function(){return YG.random()},FG.randomBetween=function(e,t){return FG.nextRandomNumber()*(t-e)+e},FG.acosClamped=function(e){if(!DU(e))throw new IU("value is required.");return Math.acos(FG.clamp(e,-1,1))},FG.asinClamped=function(e){if(!DU(e))throw new IU("value is required.");return Math.asin(FG.clamp(e,-1,1))},FG.chordLength=function(e,t){if(!DU(e))throw new IU("angle is required.");if(!DU(t))throw new IU("radius is required.");return 2*t*Math.sin(.5*e)},FG.logBase=function(e,t){if(!DU(e))throw new IU("number is required.");if(!DU(t))throw new IU("base is required.");return Math.log(e)/Math.log(t)},FG.cbrt=HU(Math.cbrt,function(e){var t=Math.pow(Math.abs(e),1/3);return e<0?-t:t}),FG.log2=HU(Math.log2,function(e){return Math.log(e)*Math.LOG2E}),FG.fog=function(e,t){var i=e*t;return 1-Math.exp(-i*i)},FG.fastApproximateAtan=function(e){return kU.typeOf.number("x",e),e*(-.1784*Math.abs(e)-.0663*e*e+1.0301)},FG.fastApproximateAtan2=function(e,t){var i,n;kU.typeOf.number("x",e),kU.typeOf.number("y",t);var r=Math.abs(e);i=Math.abs(t),n=Math.max(r,i);var o=(i=Math.min(r,i))/n;if(isNaN(o))throw new IU("either x or y must be nonzero");return r=FG.fastApproximateAtan(o),r=Math.abs(t)>Math.abs(e)?FG.PI_OVER_TWO-r:r,r=e<0?FG.PI-r:r,r=t<0?-r:r};const jG=FG;function UG(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),6*i<1?e+6*(t-e)*i:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}function GG(e,t,i,n){this.red=HU(e,1),this.green=HU(t,1),this.blue=HU(i,1),this.alpha=HU(n,1)}var QG,zG,WG;GG.fromCartesian4=function(e,t){return kU.typeOf.object("cartesian",e),DU(t)?(t.red=e.x,t.green=e.y,t.blue=e.z,t.alpha=e.w,t):new GG(e.x,e.y,e.z,e.w)},GG.fromBytes=function(e,t,i,n,r){return e=GG.byteToFloat(HU(e,255)),t=GG.byteToFloat(HU(t,255)),i=GG.byteToFloat(HU(i,255)),n=GG.byteToFloat(HU(n,255)),DU(r)?(r.red=e,r.green=t,r.blue=i,r.alpha=n,r):new GG(e,t,i,n)},GG.fromAlpha=function(e,t,i){return kU.typeOf.object("color",e),kU.typeOf.number("alpha",t),DU(i)?(i.red=e.red,i.green=e.green,i.blue=e.blue,i.alpha=t,i):new GG(e.red,e.green,e.blue,t)},RG.supportsTypedArrays()&&(QG=new ArrayBuffer(4),zG=new Uint32Array(QG),WG=new Uint8Array(QG)),GG.fromRgba=function(e,t){return zG[0]=e,GG.fromBytes(WG[0],WG[1],WG[2],WG[3],t)},GG.fromHsl=function(e,t,i,n,r){e=HU(e,0)%1,t=HU(t,0),i=HU(i,0),n=HU(n,1);var o=i,s=i,a=i;if(0!==t){var l,u=2*i-(l=i<.5?i*(1+t):i+t-i*t);o=UG(u,l,e+1/3),s=UG(u,l,e),a=UG(u,l,e-1/3)}return DU(r)?(r.red=o,r.green=s,r.blue=a,r.alpha=n,r):new GG(o,s,a,n)},GG.fromRandom=function(e,t){var i=(e=HU(e,HU.EMPTY_OBJECT)).red;if(!DU(i)){var n=HU(e.minimumRed,0),r=HU(e.maximumRed,1);kU.typeOf.number.lessThanOrEquals("minimumRed",n,r),i=n+jG.nextRandomNumber()*(r-n)}var o=e.green;if(!DU(o)){var s=HU(e.minimumGreen,0),a=HU(e.maximumGreen,1);kU.typeOf.number.lessThanOrEquals("minimumGreen",s,a),o=s+jG.nextRandomNumber()*(a-s)}var l=e.blue;if(!DU(l)){var u=HU(e.minimumBlue,0),c=HU(e.maximumBlue,1);kU.typeOf.number.lessThanOrEquals("minimumBlue",u,c),l=u+jG.nextRandomNumber()*(c-u)}var h=e.alpha;if(!DU(h)){var p=HU(e.minimumAlpha,0),d=HU(e.maximumAlpha,1);kU.typeOf.number.lessThanOrEquals("minumumAlpha",p,d),h=p+jG.nextRandomNumber()*(d-p)}return DU(t)?(t.red=i,t.green=o,t.blue=l,t.alpha=h,t):new GG(i,o,l,h)};var XG=/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i,VG=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i,JG=/^rgba?\(\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)(?:\s*,\s*([0-9.]+))?\s*\)$/i,KG=/^hsla?\(\s*([0-9.]+)\s*,\s*([0-9.]+%)\s*,\s*([0-9.]+%)(?:\s*,\s*([0-9.]+))?\s*\)$/i;GG.fromCssColorString=function(e,t){kU.typeOf.string("color",e),DU(t)||(t=new GG);var i=GG[(e=e.replace(/\s/g,"")).toUpperCase()];if(DU(i))return GG.clone(i,t),t;var n=XG.exec(e);return null!==n?(t.red=parseInt(n[1],16)/15,t.green=parseInt(n[2],16)/15,t.blue=parseInt(n[3],16)/15,t.alpha=parseInt(HU(n[4],"f"),16)/15,t):null!==(n=VG.exec(e))?(t.red=parseInt(n[1],16)/255,t.green=parseInt(n[2],16)/255,t.blue=parseInt(n[3],16)/255,t.alpha=parseInt(HU(n[4],"ff"),16)/255,t):null!==(n=JG.exec(e))?(t.red=parseFloat(n[1])/("%"===n[1].substr(-1)?100:255),t.green=parseFloat(n[2])/("%"===n[2].substr(-1)?100:255),t.blue=parseFloat(n[3])/("%"===n[3].substr(-1)?100:255),t.alpha=parseFloat(HU(n[4],"1.0")),t):null!==(n=KG.exec(e))?GG.fromHsl(parseFloat(n[1])/360,parseFloat(n[2])/100,parseFloat(n[3])/100,parseFloat(HU(n[4],"1.0")),t):t=void 0},GG.packedLength=4,GG.pack=function(e,t,i){return kU.typeOf.object("value",e),kU.defined("array",t),i=HU(i,0),t[i++]=e.red,t[i++]=e.green,t[i++]=e.blue,t[i]=e.alpha,t},GG.unpack=function(e,t,i){return kU.defined("array",e),t=HU(t,0),DU(i)||(i=new GG),i.red=e[t++],i.green=e[t++],i.blue=e[t++],i.alpha=e[t],i},GG.byteToFloat=function(e){return e/255},GG.floatToByte=function(e){return 1===e?255:256*e|0},GG.clone=function(e,t){if(DU(e))return DU(t)?(t.red=e.red,t.green=e.green,t.blue=e.blue,t.alpha=e.alpha,t):new GG(e.red,e.green,e.blue,e.alpha)},GG.equals=function(e,t){return e===t||DU(e)&&DU(t)&&e.red===t.red&&e.green===t.green&&e.blue===t.blue&&e.alpha===t.alpha},GG.equalsArray=function(e,t,i){return e.red===t[i]&&e.green===t[i+1]&&e.blue===t[i+2]&&e.alpha===t[i+3]},GG.prototype.clone=function(e){return GG.clone(this,e)},GG.prototype.equals=function(e){return GG.equals(this,e)},GG.prototype.equalsEpsilon=function(e,t){return this===e||DU(e)&&Math.abs(this.red-e.red)<=t&&Math.abs(this.green-e.green)<=t&&Math.abs(this.blue-e.blue)<=t&&Math.abs(this.alpha-e.alpha)<=t},GG.prototype.toString=function(){return"("+this.red+", "+this.green+", "+this.blue+", "+this.alpha+")"},GG.prototype.toCssColorString=function(){var e=GG.floatToByte(this.red),t=GG.floatToByte(this.green),i=GG.floatToByte(this.blue);return 1===this.alpha?"rgb("+e+","+t+","+i+")":"rgba("+e+","+t+","+i+","+this.alpha+")"},GG.prototype.toCssHexString=function(){var e=GG.floatToByte(this.red).toString(16);e.length<2&&(e="0"+e);var t=GG.floatToByte(this.green).toString(16);t.length<2&&(t="0"+t);var i=GG.floatToByte(this.blue).toString(16);if(i.length<2&&(i="0"+i),this.alpha<1){var n=GG.floatToByte(this.alpha).toString(16);return n.length<2&&(n="0"+n),"#"+e+t+i+n}return"#"+e+t+i},GG.prototype.toBytes=function(e){var t=GG.floatToByte(this.red),i=GG.floatToByte(this.green),n=GG.floatToByte(this.blue),r=GG.floatToByte(this.alpha);return DU(e)?(e[0]=t,e[1]=i,e[2]=n,e[3]=r,e):[t,i,n,r]},GG.prototype.toRgba=function(){return WG[0]=GG.floatToByte(this.red),WG[1]=GG.floatToByte(this.green),WG[2]=GG.floatToByte(this.blue),WG[3]=GG.floatToByte(this.alpha),zG[0]},GG.prototype.brighten=function(e,t){return kU.typeOf.number("magnitude",e),kU.typeOf.number.greaterThanOrEquals("magnitude",e,0),kU.typeOf.object("result",t),e=1-e,t.red=1-(1-this.red)*e,t.green=1-(1-this.green)*e,t.blue=1-(1-this.blue)*e,t.alpha=this.alpha,t},GG.prototype.darken=function(e,t){return kU.typeOf.number("magnitude",e),kU.typeOf.number.greaterThanOrEquals("magnitude",e,0),kU.typeOf.object("result",t),e=1-e,t.red=this.red*e,t.green=this.green*e,t.blue=this.blue*e,t.alpha=this.alpha,t},GG.prototype.withAlpha=function(e,t){return GG.fromAlpha(this,e,t)},GG.add=function(e,t,i){return kU.typeOf.object("left",e),kU.typeOf.object("right",t),kU.typeOf.object("result",i),i.red=e.red+t.red,i.green=e.green+t.green,i.blue=e.blue+t.blue,i.alpha=e.alpha+t.alpha,i},GG.subtract=function(e,t,i){return kU.typeOf.object("left",e),kU.typeOf.object("right",t),kU.typeOf.object("result",i),i.red=e.red-t.red,i.green=e.green-t.green,i.blue=e.blue-t.blue,i.alpha=e.alpha-t.alpha,i},GG.multiply=function(e,t,i){return kU.typeOf.object("left",e),kU.typeOf.object("right",t),kU.typeOf.object("result",i),i.red=e.red*t.red,i.green=e.green*t.green,i.blue=e.blue*t.blue,i.alpha=e.alpha*t.alpha,i},GG.divide=function(e,t,i){return kU.typeOf.object("left",e),kU.typeOf.object("right",t),kU.typeOf.object("result",i),i.red=e.red/t.red,i.green=e.green/t.green,i.blue=e.blue/t.blue,i.alpha=e.alpha/t.alpha,i},GG.mod=function(e,t,i){return kU.typeOf.object("left",e),kU.typeOf.object("right",t),kU.typeOf.object("result",i),i.red=e.red%t.red,i.green=e.green%t.green,i.blue=e.blue%t.blue,i.alpha=e.alpha%t.alpha,i},GG.lerp=function(e,t,i,n){return kU.typeOf.object("start",e),kU.typeOf.object("end",t),kU.typeOf.number("t",i),kU.typeOf.object("result",n),n.red=jG.lerp(e.red,t.red,i),n.green=jG.lerp(e.green,t.green,i),n.blue=jG.lerp(e.blue,t.blue,i),n.alpha=jG.lerp(e.alpha,t.alpha,i),n},GG.multiplyByScalar=function(e,t,i){return kU.typeOf.object("color",e),kU.typeOf.number("scalar",t),kU.typeOf.object("result",i),i.red=e.red*t,i.green=e.green*t,i.blue=e.blue*t,i.alpha=e.alpha*t,i},GG.divideByScalar=function(e,t,i){return kU.typeOf.object("color",e),kU.typeOf.number("scalar",t),kU.typeOf.object("result",i),i.red=e.red/t,i.green=e.green/t,i.blue=e.blue/t,i.alpha=e.alpha/t,i},GG.ALICEBLUE=Object.freeze(GG.fromCssColorString("#F0F8FF")),GG.ANTIQUEWHITE=Object.freeze(GG.fromCssColorString("#FAEBD7")),GG.AQUA=Object.freeze(GG.fromCssColorString("#00FFFF")),GG.AQUAMARINE=Object.freeze(GG.fromCssColorString("#7FFFD4")),GG.AZURE=Object.freeze(GG.fromCssColorString("#F0FFFF")),GG.BEIGE=Object.freeze(GG.fromCssColorString("#F5F5DC")),GG.BISQUE=Object.freeze(GG.fromCssColorString("#FFE4C4")),GG.BLACK=Object.freeze(GG.fromCssColorString("#000000")),GG.BLANCHEDALMOND=Object.freeze(GG.fromCssColorString("#FFEBCD")),GG.BLUE=Object.freeze(GG.fromCssColorString("#0000FF")),GG.BLUEVIOLET=Object.freeze(GG.fromCssColorString("#8A2BE2")),GG.BROWN=Object.freeze(GG.fromCssColorString("#A52A2A")),GG.BURLYWOOD=Object.freeze(GG.fromCssColorString("#DEB887")),GG.CADETBLUE=Object.freeze(GG.fromCssColorString("#5F9EA0")),GG.CHARTREUSE=Object.freeze(GG.fromCssColorString("#7FFF00")),GG.CHOCOLATE=Object.freeze(GG.fromCssColorString("#D2691E")),GG.CORAL=Object.freeze(GG.fromCssColorString("#FF7F50")),GG.CORNFLOWERBLUE=Object.freeze(GG.fromCssColorString("#6495ED")),GG.CORNSILK=Object.freeze(GG.fromCssColorString("#FFF8DC")),GG.CRIMSON=Object.freeze(GG.fromCssColorString("#DC143C")),GG.CYAN=Object.freeze(GG.fromCssColorString("#00FFFF")),GG.DARKBLUE=Object.freeze(GG.fromCssColorString("#00008B")),GG.DARKCYAN=Object.freeze(GG.fromCssColorString("#008B8B")),GG.DARKGOLDENROD=Object.freeze(GG.fromCssColorString("#B8860B")),GG.DARKGRAY=Object.freeze(GG.fromCssColorString("#A9A9A9")),GG.DARKGREEN=Object.freeze(GG.fromCssColorString("#006400")),GG.DARKGREY=GG.DARKGRAY,GG.DARKKHAKI=Object.freeze(GG.fromCssColorString("#BDB76B")),GG.DARKMAGENTA=Object.freeze(GG.fromCssColorString("#8B008B")),GG.DARKOLIVEGREEN=Object.freeze(GG.fromCssColorString("#556B2F")),GG.DARKORANGE=Object.freeze(GG.fromCssColorString("#FF8C00")),GG.DARKORCHID=Object.freeze(GG.fromCssColorString("#9932CC")),GG.DARKRED=Object.freeze(GG.fromCssColorString("#8B0000")),GG.DARKSALMON=Object.freeze(GG.fromCssColorString("#E9967A")),GG.DARKSEAGREEN=Object.freeze(GG.fromCssColorString("#8FBC8F")),GG.DARKSLATEBLUE=Object.freeze(GG.fromCssColorString("#483D8B")),GG.DARKSLATEGRAY=Object.freeze(GG.fromCssColorString("#2F4F4F")),GG.DARKSLATEGREY=GG.DARKSLATEGRAY,GG.DARKTURQUOISE=Object.freeze(GG.fromCssColorString("#00CED1")),GG.DARKVIOLET=Object.freeze(GG.fromCssColorString("#9400D3")),GG.DEEPPINK=Object.freeze(GG.fromCssColorString("#FF1493")),GG.DEEPSKYBLUE=Object.freeze(GG.fromCssColorString("#00BFFF")),GG.DIMGRAY=Object.freeze(GG.fromCssColorString("#696969")),GG.DIMGREY=GG.DIMGRAY,GG.DODGERBLUE=Object.freeze(GG.fromCssColorString("#1E90FF")),GG.FIREBRICK=Object.freeze(GG.fromCssColorString("#B22222")),GG.FLORALWHITE=Object.freeze(GG.fromCssColorString("#FFFAF0")),GG.FORESTGREEN=Object.freeze(GG.fromCssColorString("#228B22")),GG.FUCHSIA=Object.freeze(GG.fromCssColorString("#FF00FF")),GG.GAINSBORO=Object.freeze(GG.fromCssColorString("#DCDCDC")),GG.GHOSTWHITE=Object.freeze(GG.fromCssColorString("#F8F8FF")),GG.GOLD=Object.freeze(GG.fromCssColorString("#FFD700")),GG.GOLDENROD=Object.freeze(GG.fromCssColorString("#DAA520")),GG.GRAY=Object.freeze(GG.fromCssColorString("#808080")),GG.GREEN=Object.freeze(GG.fromCssColorString("#008000")),GG.GREENYELLOW=Object.freeze(GG.fromCssColorString("#ADFF2F")),GG.GREY=GG.GRAY,GG.HONEYDEW=Object.freeze(GG.fromCssColorString("#F0FFF0")),GG.HOTPINK=Object.freeze(GG.fromCssColorString("#FF69B4")),GG.INDIANRED=Object.freeze(GG.fromCssColorString("#CD5C5C")),GG.INDIGO=Object.freeze(GG.fromCssColorString("#4B0082")),GG.IVORY=Object.freeze(GG.fromCssColorString("#FFFFF0")),GG.KHAKI=Object.freeze(GG.fromCssColorString("#F0E68C")),GG.LAVENDER=Object.freeze(GG.fromCssColorString("#E6E6FA")),GG.LAVENDAR_BLUSH=Object.freeze(GG.fromCssColorString("#FFF0F5")),GG.LAWNGREEN=Object.freeze(GG.fromCssColorString("#7CFC00")),GG.LEMONCHIFFON=Object.freeze(GG.fromCssColorString("#FFFACD")),GG.LIGHTBLUE=Object.freeze(GG.fromCssColorString("#ADD8E6")),GG.LIGHTCORAL=Object.freeze(GG.fromCssColorString("#F08080")),GG.LIGHTCYAN=Object.freeze(GG.fromCssColorString("#E0FFFF")),GG.LIGHTGOLDENRODYELLOW=Object.freeze(GG.fromCssColorString("#FAFAD2")),GG.LIGHTGRAY=Object.freeze(GG.fromCssColorString("#D3D3D3")),GG.LIGHTGREEN=Object.freeze(GG.fromCssColorString("#90EE90")),GG.LIGHTGREY=GG.LIGHTGRAY,GG.LIGHTPINK=Object.freeze(GG.fromCssColorString("#FFB6C1")),GG.LIGHTSEAGREEN=Object.freeze(GG.fromCssColorString("#20B2AA")),GG.LIGHTSKYBLUE=Object.freeze(GG.fromCssColorString("#87CEFA")),GG.LIGHTSLATEGRAY=Object.freeze(GG.fromCssColorString("#778899")),GG.LIGHTSLATEGREY=GG.LIGHTSLATEGRAY,GG.LIGHTSTEELBLUE=Object.freeze(GG.fromCssColorString("#B0C4DE")),GG.LIGHTYELLOW=Object.freeze(GG.fromCssColorString("#FFFFE0")),GG.LIME=Object.freeze(GG.fromCssColorString("#00FF00")),GG.LIMEGREEN=Object.freeze(GG.fromCssColorString("#32CD32")),GG.LINEN=Object.freeze(GG.fromCssColorString("#FAF0E6")),GG.MAGENTA=Object.freeze(GG.fromCssColorString("#FF00FF")),GG.MAROON=Object.freeze(GG.fromCssColorString("#800000")),GG.MEDIUMAQUAMARINE=Object.freeze(GG.fromCssColorString("#66CDAA")),GG.MEDIUMBLUE=Object.freeze(GG.fromCssColorString("#0000CD")),GG.MEDIUMORCHID=Object.freeze(GG.fromCssColorString("#BA55D3")),GG.MEDIUMPURPLE=Object.freeze(GG.fromCssColorString("#9370DB")),GG.MEDIUMSEAGREEN=Object.freeze(GG.fromCssColorString("#3CB371")),GG.MEDIUMSLATEBLUE=Object.freeze(GG.fromCssColorString("#7B68EE")),GG.MEDIUMSPRINGGREEN=Object.freeze(GG.fromCssColorString("#00FA9A")),GG.MEDIUMTURQUOISE=Object.freeze(GG.fromCssColorString("#48D1CC")),GG.MEDIUMVIOLETRED=Object.freeze(GG.fromCssColorString("#C71585")),GG.MIDNIGHTBLUE=Object.freeze(GG.fromCssColorString("#191970")),GG.MINTCREAM=Object.freeze(GG.fromCssColorString("#F5FFFA")),GG.MISTYROSE=Object.freeze(GG.fromCssColorString("#FFE4E1")),GG.MOCCASIN=Object.freeze(GG.fromCssColorString("#FFE4B5")),GG.NAVAJOWHITE=Object.freeze(GG.fromCssColorString("#FFDEAD")),GG.NAVY=Object.freeze(GG.fromCssColorString("#000080")),GG.OLDLACE=Object.freeze(GG.fromCssColorString("#FDF5E6")),GG.OLIVE=Object.freeze(GG.fromCssColorString("#808000")),GG.OLIVEDRAB=Object.freeze(GG.fromCssColorString("#6B8E23")),GG.ORANGE=Object.freeze(GG.fromCssColorString("#FFA500")),GG.ORANGERED=Object.freeze(GG.fromCssColorString("#FF4500")),GG.ORCHID=Object.freeze(GG.fromCssColorString("#DA70D6")),GG.PALEGOLDENROD=Object.freeze(GG.fromCssColorString("#EEE8AA")),GG.PALEGREEN=Object.freeze(GG.fromCssColorString("#98FB98")),GG.PALETURQUOISE=Object.freeze(GG.fromCssColorString("#AFEEEE")),GG.PALEVIOLETRED=Object.freeze(GG.fromCssColorString("#DB7093")),GG.PAPAYAWHIP=Object.freeze(GG.fromCssColorString("#FFEFD5")),GG.PEACHPUFF=Object.freeze(GG.fromCssColorString("#FFDAB9")),GG.PERU=Object.freeze(GG.fromCssColorString("#CD853F")),GG.PINK=Object.freeze(GG.fromCssColorString("#FFC0CB")),GG.PLUM=Object.freeze(GG.fromCssColorString("#DDA0DD")),GG.POWDERBLUE=Object.freeze(GG.fromCssColorString("#B0E0E6")),GG.PURPLE=Object.freeze(GG.fromCssColorString("#800080")),GG.RED=Object.freeze(GG.fromCssColorString("#FF0000")),GG.ROSYBROWN=Object.freeze(GG.fromCssColorString("#BC8F8F")),GG.ROYALBLUE=Object.freeze(GG.fromCssColorString("#4169E1")),GG.SADDLEBROWN=Object.freeze(GG.fromCssColorString("#8B4513")),GG.SALMON=Object.freeze(GG.fromCssColorString("#FA8072")),GG.SANDYBROWN=Object.freeze(GG.fromCssColorString("#F4A460")),GG.SEAGREEN=Object.freeze(GG.fromCssColorString("#2E8B57")),GG.SEASHELL=Object.freeze(GG.fromCssColorString("#FFF5EE")),GG.SIENNA=Object.freeze(GG.fromCssColorString("#A0522D")),GG.SILVER=Object.freeze(GG.fromCssColorString("#C0C0C0")),GG.SKYBLUE=Object.freeze(GG.fromCssColorString("#87CEEB")),GG.SLATEBLUE=Object.freeze(GG.fromCssColorString("#6A5ACD")),GG.SLATEGRAY=Object.freeze(GG.fromCssColorString("#708090")),GG.SLATEGREY=GG.SLATEGRAY,GG.SNOW=Object.freeze(GG.fromCssColorString("#FFFAFA")),GG.SPRINGGREEN=Object.freeze(GG.fromCssColorString("#00FF7F")),GG.STEELBLUE=Object.freeze(GG.fromCssColorString("#4682B4")),GG.TAN=Object.freeze(GG.fromCssColorString("#D2B48C")),GG.TEAL=Object.freeze(GG.fromCssColorString("#008080")),GG.THISTLE=Object.freeze(GG.fromCssColorString("#D8BFD8")),GG.TOMATO=Object.freeze(GG.fromCssColorString("#FF6347")),GG.TURQUOISE=Object.freeze(GG.fromCssColorString("#40E0D0")),GG.VIOLET=Object.freeze(GG.fromCssColorString("#EE82EE")),GG.WHEAT=Object.freeze(GG.fromCssColorString("#F5DEB3")),GG.WHITE=Object.freeze(GG.fromCssColorString("#FFFFFF")),GG.WHITESMOKE=Object.freeze(GG.fromCssColorString("#F5F5F5")),GG.YELLOW=Object.freeze(GG.fromCssColorString("#FFFF00")),GG.YELLOWGREEN=Object.freeze(GG.fromCssColorString("#9ACD32")),GG.TRANSPARENT=Object.freeze(new GG(0,0,0,0));const ZG=GG;var qG,$G=function(){function e(){}return e.measureSize=function(e,t){if(!DU(e))throw new IU("text is required.");if(""!==e){t=HU(t,HU.EMPTY_OBJECT);var i=HU(t.font,"10px sans-serif"),n=HU(t.stroke,!1),r=HU(t.fill,!0),o=HU(t.strokeWidth,1),s=(HU(t.backgroundColor,ZG.TRANSPARENT),HU(t.padding,0),document.createElement("canvas"));s.width=1,s.height=1,s.style.font=i;var a=s.getContext("2d");DU(qG)||(DU(a.imageSmoothingEnabled)?qG="imageSmoothingEnabled":DU(a.mozImageSmoothingEnabled)?qG="mozImageSmoothingEnabled":DU(a.webkitImageSmoothingEnabled)?qG="webkitImageSmoothingEnabled":DU(a.msImageSmoothingEnabled)&&(qG="msImageSmoothingEnabled")),a.font=i,a.lineJoin="round",a.lineWidth=o,a[qG]=!1,a.textBaseline=HU(t.textBaseline,"bottom"),s.style.visibility="hidden",document.body.appendChild(s);var l=new OU(a,e,n,r);return document.body.removeChild(s),s.style.visibility="",l}},e}();const eQ=$G;var tQ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),iQ=function(){return iQ=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},iQ.apply(this,arguments)},nQ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},rQ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},oQ=function(e){function t(t,i,n){var r=e.call(this,t,i,iQ({},n))||this;r.maxPointNum=1,r.minPointNum=1,r.firstEditText=!0,r.canvasWidth=0,r.canvasHeight=0,r.scaleProperty=["scalev"],r.rotateByHeadingProperty=["rotation"],r.type="贴地文字",r.alpha=1,r.textSize=108,r.textFont="黑体",r.fontWeight=0,r.text="贴地文字",r.rotation=0,r.outlineShow=!1,r.outlineWidth=2,r.outlineColor="#000000",r.distanceDisplay=!1,r.distanceHeight=55e5,r.showMode=1,r.heightReference=Cesium.HeightReference.NONE,r.hideValues=["gridSwitch","gridLevel","gridIsAgg","gridColor","gridOutlineColor","gridUpdate"];var o=Math.ceil(t.viewer.camera.positionCartographic.height);if(r.scalev=Math.ceil(.001*o),n&&n.properties)for(var s in n.properties)r[s]=n.properties[s];return r}return tQ(t,e),t.prototype.setPrimitivePosition=function(e){if(e[0]||(e=e.slice(1)),!(e.length<1)){this.setInternalControlPosition(e);var t=e[0],i=Cesium.Math.toRadians(this.rotation),n=new Cesium.HeadingPitchRoll(i,0,0),r=Cesium.Transforms.headingPitchRollToFixedFrame(t,n,Cesium.Ellipsoid.WGS84,Cesium.Transforms.eastNorthUpToFixedFrame,new Cesium.Matrix4);if(2==this.showMode){var o=Cesium.Matrix4.fromRotationTranslation(Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(90)));Cesium.Matrix4.multiply(r,o,r)}var s=new Cesium.Cartesian3(this.canvasWidth*this.scalev,this.canvasHeight*this.scalev,1),a=Cesium.Matrix4.fromScale(s);Cesium.Matrix4.multiply(r,a,r),this.ent.modelMatrix=r}},t.prototype.initProps=function(e){},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(e){this._rotation=e,this.ent&&this.rotatable&&this.setPrimitivePosition(this._singleControlPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scalev",{get:function(){return this._scalev},set:function(e){e<.5&&(e=.5),_I.saveProp(this.type,"scalev",e),this._scalev=e,this.ent&&this.setPrimitivePosition(this._singleControlPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showMode",{get:function(){return this._showMode},set:function(e){this._showMode=e,this.ent&&this.createEnt(this._singleControlPosition[0])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"distanceDisplay",{get:function(){return this._distanceDisplay},set:function(e){this._distanceDisplay=e,this.ent&&this.createEnt(Cesium.Cartesian3.ZERO)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"distanceHeight",{get:function(){return this._distanceHeight},set:function(e){this._distanceHeight=e,this.ent&&this.createEnt(Cesium.Cartesian3.ZERO)},enumerable:!1,configurable:!0}),t.prototype.distanceCondition=function(){return this.distanceDisplay?new Cesium.DistanceDisplayConditionGeometryInstanceAttribute(0,this.distanceHeight):void 0},Object.defineProperty(t.prototype,"alpha",{get:function(){return this._alpha},set:function(e){this._alpha=e,this.ent&&this.editCanvas()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this._text},set:function(e){this._text=e,this.ent&&this.editCanvas()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textFont",{get:function(){return this._textFont},set:function(e){this._textFont=e,this.ent&&this.editCanvas()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textSize",{get:function(){return this._textSize},set:function(e){this._textSize=Number.parseFloat(e),this.ent&&this.editCanvas()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(e){this._fontWeight=e,this.ent&&this.editCanvas()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e,this.ent&&this.editCanvas()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"outlineShow",{get:function(){return this._outlineShow},set:function(e){this._outlineShow=e,this.ent&&this.editCanvas()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"outlineColor",{get:function(){return this._outlineColor},set:function(e){this._outlineColor=e,this.ent&&this.editCanvas()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"outlineWidth",{get:function(){return this._outlineWidth},set:function(e){this._outlineWidth=e,this.ent&&this.editCanvas()},enumerable:!1,configurable:!0}),t.prototype.scale=function(e,t){this.scalable&&(this.scalev=this.changeScaleByMouse(this.scalev,e,t),this.onPropertyChanged())},t.prototype.rotateByHeading=function(e,t){if(this.rotatable){var i=this.rotation+(t.x-e.x);this.rotation=i%360,this.onPropertyChanged()}},t.prototype.createHiDPICanvas=function(e,t,i){var n,r=(n=document.createElement("canvas").getContext("2d")||{},(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1));i||(i=r);var o=document.createElement("canvas");return o.width=e,o.height=t,o},t.prototype.drawText=function(){var e="";e=1==this.fontWeight?"bold "+this.textSize+"px "+this.textFont:"normal "+this.textSize+"px "+this.textFont;for(var t=eQ.measureSize("国",{font:e,fillColor:Cesium.Color.BLACK,stroke:this.outlineShow,strokeColor:this.outlineColor,strokeWidth:this.outlineWidth}),i=this.text.split("\n"),n=0,r=0;r<i.length;r++)i[r].length>n&&(n=i[r].length);if(t.width&&t.height){n>0&&i.length>0?(this.canvasWidth=n*t.width,this.canvasHeight=i.length*(t.height+this.outlineWidth/2)+20):(this.canvasWidth=t.width,this.canvasHeight=t.height+this.outlineWidth/2+20);var o=this.createHiDPICanvas(this.canvasWidth,this.canvasHeight,3),s=o.getContext("2d");s.fillStyle=this.color,s.globalAlpha=this.alpha,s.font=e,s.textBaseline="hanging",s.strokeStyle=this.outlineColor,s.lineWidth=this.outlineWidth;var a=t.ascent;if(i&&i.length>0){var l=a/6;for(r=0;r<i.length;r++)s.fillText(i[r],0,l),this.outlineShow&&s.strokeText(i[r],0,l),l+=t.height}else s.fillText(this.text,0,a/6),this.outlineShow&&s.strokeText(this.text,0,a/6);return o}},t.prototype.createMaterial=function(){var e={type:"AlphaText",uniforms:{image:this.drawText()},source:"\n #if __VERSION__ == 100\n #define TEXTURE texture2D\n #else\n #define TEXTURE texture\n #endif\n\n uniform sampler2D image;\n\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = fract(materialInput.st);\n vec4 texel = TEXTURE(image, st);\n material.diffuse = texel.rgb;\n material.alpha = texel.a;\n return material;\n }"};return this.material=new Cesium.Material({fabric:e,translucent:!0}),this.material},t.prototype.setColor=function(e){e.uniforms.color=Cesium.Color.fromCssColorString(this.color).withAlpha(1==this.alpha?1:this.alpha)},t.prototype.createEnt=function(e){this.ent instanceof Cesium.Primitive&&this.viewer.scene.primitives.remove(this.ent);var t=this.createMaterial(),i=new Cesium.GeometryInstance({geometry:Cesium.PlaneGeometry.createGeometry(new Cesium.PlaneGeometry({vertexFormat:Cesium.EllipsoidSurfaceAppearance.VERTEX_FORMAT})),attributes:{distanceDisplayCondition:this.distanceCondition()}}),n=new Cesium.Primitive({geometryInstances:i,appearance:new Cesium.EllipsoidSurfaceAppearance({material:t,flat:!0,aboveGround:!0}),asynchronous:!1,releaseGeometryInstances:!1});this.ent=n,this.editCanvas(),this.viewer.scene.primitives.add(n),this.fillShape(this.ent)},t.prototype.editCanvas=function(){this.ent.appearance.material.uniforms.image=this.drawText()},t.prototype.initShape=function(){this.createEnt(Cesium.Cartesian3.ZERO);var e=this;this.positionProperty=function(){var t=e._singleControlPosition.concat(Hf.cursorPos);t&&t.length>0&&t[0]&&e.setPrimitivePosition(t)}},t.prototype.toEdit=function(){e.prototype.toEdit.call(this);var t=this;this.positionProperty=function(){var e=t._singleControlPosition;t.setPrimitivePosition(e)}},t.prototype.finish=function(){if(this.ent){e.prototype.finish.call(this);var t=this._singleControlPosition;this.positionProperty=t}},nQ([em({name:"旋转",group:"外观",type:"whirl",order:8,min:-360,max:360,hiddenGroupName:!1}),rQ("design:type",Number),rQ("design:paramtypes",[Number])],t.prototype,"rotation",null),nQ([em({name:"缩放",group:"外观",type:"zoom",order:8,min:1,max:1e4,hiddenGroupName:!1}),rQ("design:type",Number),rQ("design:paramtypes",[Number])],t.prototype,"scalev",null),nQ([em({name:"显示模式",group:"外观",order:8,subOrder:4,type:"option",options:[{label:"贴地",value:1},{label:"立面",value:2}]}),rQ("design:type",Number),rQ("design:paramtypes",[Object])],t.prototype,"showMode",null),nQ([em({name:"可视高度",group:"通用",subGroup:"可视高度",subOrder:1,type:"checkboxSub",order:2,hiddenGroupName:!1}),rQ("design:type",Boolean),rQ("design:paramtypes",[Boolean])],t.prototype,"distanceDisplay",null),nQ([em({name:"可视高度距离",group:"通用",subGroup:"可视高度",subOrder:2,type:"number3",order:2,hiddenGroupName:!1,min:0,max:2e7}),rQ("design:type",Number),rQ("design:paramtypes",[Number])],t.prototype,"distanceHeight",null),nQ([em({name:"不透明度",group:"通用",type:"slider",order:2,min:0,max:1}),rQ("design:type",Number),rQ("design:paramtypes",[Number])],t.prototype,"alpha",null),nQ([em({name:"文字",group:"文本",order:6,type:"textArea",hiddenGroupName:!0}),rQ("design:type",String),rQ("design:paramtypes",[String])],t.prototype,"text",null),nQ([em({name:"字体",group:"文本",order:6,type:"font",hiddenGroupName:!0}),rQ("design:type",String),rQ("design:paramtypes",[String])],t.prototype,"textFont",null),nQ([em({name:"文字大小",group:"文本",subGroup:"大小粗细",order:6,subOrder:3,type:"size",min:40,max:400,hiddenGroupName:!0}),rQ("design:type",Number),rQ("design:paramtypes",[Number])],t.prototype,"textSize",null),nQ([em({name:"字体粗细",group:"文本",subGroup:"大小粗细",order:6,subOrder:4,type:"option",hiddenGroupName:!0,options:[{label:"正常",value:0},{label:"加粗",value:1}]}),rQ("design:type",Number),rQ("design:paramtypes",[Number])],t.prototype,"fontWeight",null),nQ([om(),em({name:"颜色",group:"文本",type:"color",order:6,subGroup:"填充",subOrder:4,noEmpty:!1}),rQ("design:type",String),rQ("design:paramtypes",[String])],t.prototype,"color",null),nQ([em({name:"是否描边",group:"文本",type:"checkboxSub",order:6,subGroup:"描边",subOrder:7}),rQ("design:type",Boolean),rQ("design:paramtypes",[Boolean])],t.prototype,"outlineShow",null),nQ([em({name:"描边颜色",group:"文本",subGroup:"描边",order:6,subOrder:8,type:"color"}),rQ("design:type",String),rQ("design:paramtypes",[String])],t.prototype,"outlineColor",null),nQ([em({name:"描边线宽",group:"文本",subGroup:"描边线宽",order:6,subOrder:9,type:"number4",min:1,max:6}),rQ("design:type",Number),rQ("design:paramtypes",[Number])],t.prototype,"outlineWidth",null),nQ([rm(),rQ("design:type",Function),rQ("design:paramtypes",[Object,Object,Object]),rQ("design:returntype",void 0)],t.prototype,"createHiDPICanvas",null),nQ([rm(),rQ("design:type",Function),rQ("design:paramtypes",[]),rQ("design:returntype",void 0)],t.prototype,"drawText",null),nQ([rm(),rQ("design:type",Object)],t.prototype,"material",void 0),nQ([rm(),rQ("design:type",Function),rQ("design:paramtypes",[]),rQ("design:returntype",void 0)],t.prototype,"editCanvas",null),t}(sI);const sQ=oQ;Cu.A.registerType(oQ,"EditorPlaneText","Graph");var aQ=__webpack_require__(6763),lQ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),uQ=function(){return uQ=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},uQ.apply(this,arguments)},cQ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},hQ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},pQ=function(e){function t(t,i,n){var r=e.call(this,t,i,uQ({},n))||this;if(r.isEditing=!1,r.maxPointNum=1,r.minPointNum=1,r._width=0,r._height=0,r._alpha=1,r._scalev=1,r.scaleProperty=["scalev"],r.type="动图",r.distanceDisplay?r.gifSwitch=!0:r.gifSwitch=!1,n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return lQ(t,e),Object.defineProperty(t.prototype,"imageUrl",{get:function(){return this._imageUrl},set:function(e){this._imageUrl=e,this.htmlElement&&(this.htmlElement.src=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e,this.htmlElement&&this.htmlElement.style&&(this.htmlElement.style.width=e+"px")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e,this.htmlElement&&this.htmlElement.style&&(this.htmlElement.style.height=e+"px")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return this._show},set:function(e){this._show=e,this.gifSwitch=!1,this.htmlElement&&this.htmlElement.style&&(this.htmlElement.style.display=this._show?"block":"none"),this.onPropertyChanged("show")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this._alpha},set:function(e){this._alpha=e,this.show=1===e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scalev",{get:function(){return this._scalev},set:function(e){_I.saveProp(this.type,"scalev",e),this._scalev=e,this.htmlElement&&this.htmlElement.style&&(this.htmlElement.style.transform="scale(".concat(e,")"))},enumerable:!1,configurable:!0}),t.prototype.initShape=function(){var e=this;if(this.ent=this.entities.add(new Cesium.Entity({point:{}})),this.ent.show=this.show,this.fillShape(this.ent),Object.assign(this.ent.point,{pixelSize:new Cesium.CallbackProperty(function(t,i){return e._width},!0),color:Cesium.Color.AQUA.withAlpha(.01),outlineWidth:0,outlineColor:Cesium.Color.AQUA.withAlpha(0),heightReference:Cesium.HeightReference.CLAMP_TO_GROUND}),this.ent){this.ent.position=new Cesium.CallbackProperty(function(t,i){return e.calcuteShape(e._singleControlPosition.concat(Hf.cursorPos),t)},!1),this.htmlElement=document.createElement("img"),aQ.log("this.imageUrl",this.imageUrl),this.imageUrl.indexOf("https")<0&&(this.imageUrl=this.imageUrl.replace("http","https")),aQ.log("this.imageUrl",this.imageUrl),this.htmlElement.src=this.imageUrl,this.htmlElement.style.position="absolute",this.htmlElement.style.pointerEvents="none",this.htmlElement.style.top="-500px",this.height>0&&(this.htmlElement.style.height=this.height+"px",this.htmlElement.style.width=this.width+"px",this.htmlElement.style.display=this.show?"block":"none",this.htmlElement.style.transform="scale(".concat(this.scalev,")"));var t=document.getElementsByTagName("app-cesium");(t&&t.length>0?t[0]:this.viewer.container).appendChild(this.htmlElement),this.htmlElement.onload=function(t){0===e._height&&(e._height=Number.parseInt(getComputedStyle(e.htmlElement).height),e._width=Number.parseInt(getComputedStyle(e.htmlElement).width)),e._cb=e.viewer.scene.preRender.addEventListener(function(){if(e.gifSwitch&&e.show){var t=Math.ceil(e.viewer.camera.positionCartographic.height);e.distanceDisplay?t&&e.distanceHeight&&(t>e.distanceHeight?e.htmlElement.style.display="none":e.htmlElement.style.display="block"):e.htmlElement.style.display="block"}!1===e.isEditing&&e.ent&&e.setHtmlPosition(e.ent.position._value)})}}},t.prototype.calcuteShape=function(e,t){if(e[0]&&!(e.length<this.minPointNum)){var i=e[0];return this.setHtmlPosition(i),this.setInternalControlPosition(e,t),i}},t.prototype.toEdit=function(){var t=this;this.isEditing=!0,e.prototype.toEdit.call(this),this.ent&&(this.ent.position=new Cesium.CallbackProperty(function(e,i){return t.calcuteShape(t._singleControlPosition,e)},!1))},t.prototype.finish=function(){this.ent&&(this.ent.position=this.calcuteShape(this._singleControlPosition,km.julianDate()),e.prototype.finish.call(this),this.isEditing=!1)},t.prototype.delete=function(){aQ.log("gif delete"),this.htmlElement.style.display="none",this.viewer.container.contains(this.htmlElement)&&this.htmlElement.parentNode.removeChild(this.htmlElement),this.viewer.scene.preRender.removeEventListener(this._cb),e.prototype.delete.call(this)},t.prototype.setHtmlPosition=function(e){var t=this.viewer.scene.cartesianToCanvasCoordinates(e);if(t&&Cesium.defined(t)){var i=Cesium.Ellipsoid.WGS84,n=this.viewer.camera;new Cesium.EllipsoidalOccluder(i,n.position).isPointVisible(e)?(this.htmlElement.style.visibility="visible",this.htmlElement.style.top=t.y-this.width/2+"px",this.htmlElement.style.left=t.x-this.width/2+"px"):this.htmlElement.style.visibility="hidden"}},t.prototype.scale=function(e,t){this.scalable&&(this.scalev=this.changeScaleByMouse(this.scalev,e,t),this.onPropertyChanged())},cQ([rm(),hQ("design:type",Object)],t.prototype,"isEditing",void 0),cQ([rm(),hQ("design:type",Object)],t.prototype,"maxPointNum",void 0),cQ([rm(),hQ("design:type",Object)],t.prototype,"minPointNum",void 0),cQ([rm(),hQ("design:type",Object)],t.prototype,"htmlElement",void 0),cQ([em({name:"图片路径",group:"外观",type:"display",order:8}),hQ("design:type",String),hQ("design:paramtypes",[String])],t.prototype,"imageUrl",null),cQ([em({name:"宽",group:"大小",subGroup:"大小",type:"block",order:3,subOrder:3,min:0,hiddenGroupName:!1}),hQ("design:type",Number),hQ("design:paramtypes",[Number])],t.prototype,"width",null),cQ([em({name:"高",group:"大小",subGroup:"大小",type:"block",order:3,subOrder:4,min:0,hiddenGroupName:!1}),hQ("design:type",Number),hQ("design:paramtypes",[Number])],t.prototype,"height",null),cQ([em({name:"可见性",group:"通用",subOrder:7,type:"boolean",order:2}),hQ("design:type",Boolean),hQ("design:paramtypes",[Boolean])],t.prototype,"show",null),cQ([rm(),hQ("design:type",Number),hQ("design:paramtypes",[Number])],t.prototype,"alpha",null),cQ([em({name:"缩放",group:"外观",type:"zoom",order:8,min:.001,hiddenGroupName:!1}),hQ("design:type",Number),hQ("design:paramtypes",[Number])],t.prototype,"scalev",null),cQ([rm(),hQ("design:type",Object)],t.prototype,"_cb",void 0),t}(qm);const dQ=pQ;Cu.A.registerType(pQ,"EditorHtmlImage","Graph");var fQ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),mQ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},gQ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},yQ=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},_Q=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},AQ=function(e){function t(t,i,n){var r=e.call(this,t,i,n)||this;return r.middleClosed=!1,r.outline=!0,r.hideValues=["interplate","heightReference","allowCrossGround"],r.minPointNum=2,r}return fQ(t,e),t.prototype.setCoordinates=function(e,t){},t.prototype.calcuteShape=function(e,t){var i=e.map(function(e){return km.cartesian2lonlat(e)});this.points=i,this.getPointCount=this.points.length;var n=this.generate().map(function(e){var t=e;return km.lonlat2Cartesian(t)});return n},t.prototype.generate=function(){throw new Error("Method not implemented.")},t.prototype.getPoints=function(){for(var e=[],t=0,i=1;i<this.points.length;i++)if(Math.abs(this.points[i][0])+Math.abs(this.points[i-1][0])>180){this.points[i-1][0]>0&&this.points[i][0]<0?t=1:this.points[i-1][0]<0&&this.points[i][0]>0&&(t=2);break}return 1==t?(this.points.forEach(function(t){var i=_Q([],yQ(t),!1);i[0]<0&&(i[0]=360+i[0]),e.push(i)}),e):2==t?(this.points.forEach(function(t){var i=_Q([],yQ(t),!1);i[0]>0&&(i[0]=i[0]-360),e.push(i)}),e):this.points},mQ([rm(),gQ("design:type",Array)],t.prototype,"points",void 0),mQ([rm(),gQ("design:type",Number)],t.prototype,"getPointCount",void 0),t}(BI);const vQ=Math.PI/2,CQ=(Math.PI,(e,t)=>Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))),bQ=e=>{let t=0;return e&&Array.isArray(e)&&e.length>0&&e.forEach((i,n)=>{n<e.length-1&&(t+=CQ(i,e[n+1]))}),t},wQ=e=>Math.pow(bQ(e),.99),xQ=(e,t)=>[(e[0]+t[0])/2,(e[1]+t[1])/2],SQ=(e,t)=>{let i,n=Math.asin(Math.abs(t[1]-e[1])/CQ(e,t));return t[1]>=e[1]&&t[0]>=e[0]?i=n+Math.PI:t[1]>=e[1]&&t[0]<e[0]?i=2*Math.PI-n:t[1]<e[1]&&t[0]<e[0]?i=n:t[1]<e[1]&&t[0]>=e[0]&&(i=Math.PI-n),i},MQ=(e,t,i)=>{let n=SQ(t,e)-SQ(t,i);return n<0?n+2*Math.PI:n},PQ=(e,t,i)=>(i[1]-e[1])*(t[0]-e[0])>(t[1]-e[1])*(i[0]-e[0]),EQ=(e,t,i,n,r)=>{e=Math.max(Math.min(e,1),0);let[o,s]=[1-e,e*e],a=s*e,l=o*o,u=l*o;return[u*t[0]+3*l*e*i[0]+3*o*s*n[0]+a*r[0],u*t[1]+3*l*e*i[1]+3*o*s*n[1]+a*r[1]]},LQ=(e,t,i,n,r)=>{let o=SQ(e,t),s=r?o+i:o-i,a=n*Math.cos(s),l=n*Math.sin(s);return[t[0]+a,t[1]+l]},TQ=(e,t,i,n)=>{let r=OQ(t,i,n),[o,s,a,l,u]=[null,null,null,null,null],c=Math.sqrt(r[0]*r[0]+r[1]*r[1]),h=r[0]/c,p=r[1]/c,d=CQ(t,i),f=CQ(i,n);return c>1e-4?PQ(t,i,n)?(a=e*d,l=i[0]-a*p,u=i[1]+a*h,o=[l,u],a=e*f,l=i[0]+a*p,u=i[1]-a*h,s=[l,u]):(a=e*d,l=i[0]+a*p,u=i[1]-a*h,o=[l,u],a=e*f,l=i[0]-a*p,u=i[1]+a*h,s=[l,u]):(l=i[0]+e*(t[0]-i[0]),u=i[1]+e*(t[1]-i[1]),o=[l,u],l=i[0]+e*(n[0]-i[0]),u=i[1]+e*(n[1]-i[1]),s=[l,u]),[o,s]},OQ=(e,t,i)=>{let n=e[0]-t[0],r=e[1]-t[1],o=Math.sqrt(n*n+r*r);n/=o,r/=o;let s=i[0]-t[0],a=i[1]-t[1],l=Math.sqrt(s*s+a*a);return s/=l,a/=l,[n+s,r+a]},DQ=function(e){if(e.length<=2)return e;{let t=[],i=e.length-1;for(let n=0;n<=1;n+=.01){let[r,o]=[0,0];for(let t=0;t<=i;t++){let s=IQ(i,t),a=Math.pow(n,t),l=Math.pow(1-n,i-t);r+=s*a*l*e[t][0],o+=s*a*l*e[t][1]}t.push([r,o])}return t.push(e[i]),t}},BQ=e=>{let t=1;switch(e){case e<=1:t=1;break;case 2===e:t=2;break;case 3===e:t=6;break;case 24===e:t=24;break;case 5===e:t=120;break;default:for(let i=1;i<=e;i++)t*=i}return t},IQ=(e,t)=>BQ(e)/(BQ(t)*BQ(e-t)),RQ=e=>{if(e.length<=2)return e;{let[t,i]=[2,[]],n=e.length-t-1;i.push(e[0]);for(let r=0;r<=n;r++)for(let n=0;n<=1;n+=.05){let[o,s]=[0,0];for(let i=0;i<=t;i++){let t=NQ(i,n);o+=t*e[r+i][0],s+=t*e[r+i][1]}i.push([o,s])}return i.push(e[e.length-1]),i}},NQ=(e,t)=>{let i=0;return 0===e?i=Math.pow(t-1,2)/2:1===e?i=(-2*Math.pow(t,2)+2*t+1)/2:2===e&&(i=Math.pow(t,2)/2),i};var kQ=__webpack_require__(6763),FQ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),HQ=function(){return HQ=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},HQ.apply(this,arguments)},YQ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},jQ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},UQ=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},GQ=function(e){function t(t,i,n){var r=e.call(this,t,i,HQ({},n))||this;if(r.type="双箭头",r.headHeightFactor=.25,r.headWidthFactor=.3,r.neckHeightFactor=.85,r.neckWidthFactor=.15,r.connPoint=null,r.fixPointCount=4,r.maxPointNum=4,r.minPointNum=3,n&&n.properties)for(var o in n.properties)n.properties[o]&&(r[o]=n.properties[o]);return r}return FQ(t,e),t.prototype.getPlotType=function(){return this.type},t.prototype.generate=function(){try{var e=this.getPointCount;if(e<2)return this.points;if(2===e)return this.points;var t=this.getPoints();if(e>2){var i=UQ([t[0],t[1],t[2]],3),n=i[0],r=i[1],o=i[2];3===e?(this.tempPoint4=this.getTempPoint4(n,r,o),this.connPoint=xQ(n,r)):4===e?(this.tempPoint4=t[3],this.connPoint=xQ(n,r)):(this.tempPoint4=t[3],this.connPoint=t[4]);var s=UQ([void 0,void 0],2),a=s[0],l=s[1];PQ(n,r,o)?(a=this.getArrowPoints(n,this.connPoint,this.tempPoint4,!1),l=this.getArrowPoints(this.connPoint,r,o,!0)):(a=this.getArrowPoints(r,this.connPoint,o,!1),l=this.getArrowPoints(this.connPoint,n,this.tempPoint4,!0));var u=a.length,c=(u-5)/2,h=a.slice(0,c),p=a.slice(c,c+5),d=a.slice(c+5,u),f=l.slice(0,c),m=l.slice(c,c+5),g=l.slice(c+5,u);f=DQ(f);var y=DQ(g.concat(h.slice(1)));return d=DQ(d),f.concat(m,y,p,d)}}catch(e){kQ.log(e)}},t.prototype.getArrowPoints=function(e,t,i,n){var r=xQ(e,t),o=CQ(r,i),s=LQ(i,r,0,.3*o,!0),a=LQ(i,r,0,.5*o,!0),l=[r,s=LQ(r,s,vQ,o/5,n),a=LQ(r,a,vQ,o/4,n),i],u=this.getArrowHeadPoints(l);if(!(u&&Array.isArray(u)&&u.length>0))throw new Error("插值出错");var c=UQ([u[0],u[4]],2),h=c[0],p=c[1],d=CQ(e,t)/wQ(l)/2,f=this.getArrowBodyPoints(l,h,p,d);if(f){var m=f.length,g=f.slice(0,m/2),y=f.slice(m/2,m);return g.push(h),y.push(p),(g=g.reverse()).push(t),(y=y.reverse()).push(e),g.reverse().concat(u,y)}},t.prototype.getArrowHeadPoints=function(e){try{var t=wQ(e)*this.headHeightFactor,i=e[e.length-1],n=t*this.headWidthFactor,r=t*this.neckWidthFactor,o=t*this.neckHeightFactor,s=LQ(e[e.length-2],i,0,t,!0),a=LQ(e[e.length-2],i,0,o,!0),l=LQ(i,s,vQ,n,!1),u=LQ(i,s,vQ,n,!0);return[LQ(i,a,vQ,r,!1),l,i,u,LQ(i,a,vQ,r,!0)]}catch(e){kQ.log(e)}},t.prototype.getArrowBodyPoints=function(e,t,i,n){for(var r=bQ(e),o=wQ(e)*n,s=(o-CQ(t,i))/2,a=UQ([0,[],[]],3),l=a[0],u=a[1],c=a[2],h=1;h<e.length-1;h++){var p=MQ(e[h-1],e[h],e[h+1])/2,d=(o/2-(l+=CQ(e[h-1],e[h]))/r*s)/Math.sin(p),f=LQ(e[h-1],e[h],Math.PI-p,d,!0),m=LQ(e[h-1],e[h],p,d,!1);u.push(f),c.push(m)}return u.concat(c)},t.prototype.getTempPoint4=function(e,t,i){try{var n=xQ(e,t),r=CQ(n,i),o=MQ(e,n,i),s=UQ([void 0,void 0,void 0,void 0],4),a=s[0],l=s[1],u=s[2],c=s[3];return o<vQ?(l=r*Math.sin(o),u=r*Math.cos(o),c=LQ(e,n,vQ,l,!1),a=LQ(n,c,vQ,u,!0)):o>=vQ&&o<Math.PI?(l=r*Math.sin(Math.PI-o),u=r*Math.cos(Math.PI-o),c=LQ(e,n,vQ,l,!1),a=LQ(n,c,vQ,u,!1)):o>=Math.PI&&o<1.5*Math.PI?(l=r*Math.sin(o-Math.PI),u=r*Math.cos(o-Math.PI),c=LQ(e,n,vQ,l,!0),a=LQ(n,c,vQ,u,!0)):(l=r*Math.sin(2*Math.PI-o),u=r*Math.cos(2*Math.PI-o),c=LQ(e,n,vQ,l,!0),a=LQ(n,c,vQ,u,!1)),a}catch(e){kQ.log(e)}},t.prototype.isPlot=function(){return!0},t.prototype.setPoints=function(e){this.points=e||[],this.points.length>=1&&this.generate()},t.prototype.updatePoint=function(e,t){t>=0&&t<this.points.length&&(this.points[t]=e,this.generate())},t.prototype.updateLastPoint=function(e){this.updatePoint(e,this.points.length-1)},t.prototype.finishDrawing=function(){3===this.getPointCount&&null!==this.tempPoint4&&this.points.push(this.tempPoint4),null!==this.connPoint&&this.points.push(this.connPoint)},YQ([rm(),jQ("design:type",Object)],t.prototype,"tempPoint4",void 0),YQ([rm(),jQ("design:type",Object)],t.prototype,"connPoint",void 0),YQ([rm(),jQ("design:type",Object)],t.prototype,"headHeightFactor",void 0),YQ([rm(),jQ("design:type",Number)],t.prototype,"headWidthFactor",void 0),YQ([rm(),jQ("design:type",Number)],t.prototype,"fixPointCount",void 0),YQ([rm(),jQ("design:type",Number)],t.prototype,"neckHeightFactor",void 0),YQ([rm(),jQ("design:type",Number)],t.prototype,"neckWidthFactor",void 0),t}(AQ);Cu.A.registerType(GQ,"EditorDoubleArrow","Graph");var QQ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),zQ=function(){return zQ=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},zQ.apply(this,arguments)},WQ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},XQ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},VQ=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},JQ=function(e){function t(t,i,n){var r=e.call(this,t,i,zQ({},n))||this;if(r.type="集结地",r.t=.4,r.fixPointCount=3,r.maxPointNum=3,n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return QQ(t,e),t.prototype.generate=function(){var e=this.getPoints(),t=this.getPointCount;if(e.length<2)return!1;if(2===t){var i=xQ(e[0],e[1]),n=CQ(e[0],i)/.9,r=LQ(e[0],i,vQ,n,!0);e=[e[0],r,e[1]]}var o=xQ(e[0],e[2]);e.push(o,e[0],e[1]);for(var s=VQ([[],void 0,void 0,void 0,[]],5),a=s[0],l=s[1],u=s[2],c=s[3],h=s[4],p=0;p<e.length-2;p++){l=e[p],u=e[p+1],c=e[p+2];var d=TQ(this.t,l,u,c);a=a.concat(d)}var f=a.length;a=[a[f-1]].concat(a.slice(0,f-1));for(p=0;p<e.length-2;p++){l=e[p],u=e[p+1],h.push(l);for(var m=0;m<=100;m++){r=EQ(m/100,l,a[2*p],a[2*p+1],u);h.push(r)}h.push(u)}return h},WQ([rm(),XQ("design:type",Number)],t.prototype,"t",void 0),WQ([rm(),XQ("design:type",Number)],t.prototype,"fixPointCount",void 0),t}(AQ);Cu.A.registerType(JQ,"EditorGatheringPlace","Graph");var KQ=__webpack_require__(6763),ZQ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),qQ=function(){return qQ=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},qQ.apply(this,arguments)},$Q=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},ez=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},tz=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},iz=function(e){function t(t,i,n){var r=e.call(this,t,i,qQ({},n))||this;if(r.type="进攻方向",r.headHeightFactor=.18,r.headWidthFactor=.3,r.neckHeightFactor=.85,r.neckWidthFactor=.15,r.headTailFactor=.8,r.minPointNum=3,n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return ZQ(t,e),t.prototype.generate=function(){try{var e=this.getPointCount;if(e<2)return!1;if(2===e)return this.points;var t=this.getPoints(),i=tz([t[0],t[1]],2),n=i[0],r=i[1];PQ(t[0],t[1],t[2])&&(n=t[1],r=t[0]);var o=[xQ(n,r)].concat(t.slice(2)),s=this.getArrowHeadPoints(o,n,r),a=tz([s[0],s[4]],2),l=a[0],u=a[1],c=CQ(n,r)/wQ(o),h=this.getArrowBodyPoints(o,l,u,c),p=h.length,d=[n].concat(h.slice(0,p/2));d.push(l);var f=[r].concat(h.slice(p/2,p));return f.push(u),d=RQ(d),f=RQ(f),d.concat(s,f.reverse())}catch(e){KQ.log(e)}},t.prototype.getArrowPoints=function(e,t,i,n){var r=xQ(e,t),o=CQ(r,i),s=LQ(i,r,0,.3*o,!0),a=LQ(i,r,0,.5*o,!0),l=[r,s=LQ(r,s,vQ,o/5,n),a=LQ(r,a,vQ,o/4,n),i],u=this.getArrowHeadPoints(l);if(!(u&&Array.isArray(u)&&u.length>0))throw new Error("插值出错");var c=tz([u[0],u[4]],2),h=c[0],p=c[1],d=CQ(e,t)/wQ(l)/2,f=this.getArrowBodyPoints(l,h,p,d);if(f){var m=f.length,g=f.slice(0,m/2),y=f.slice(m/2,m);return g.push(h),y.push(p),(g=g.reverse()).push(t),(y=y.reverse()).push(e),g.reverse().concat(u,y)}},t.prototype.getArrowHeadPoints=function(e,t,i){try{var n=wQ(e),r=n*this.headHeightFactor,o=e[e.length-1];n=CQ(o,e[e.length-2]);var s=CQ(t,i);r>s*this.headTailFactor&&(r=s*this.headTailFactor);var a=r*this.headWidthFactor,l=r*this.neckWidthFactor,u=(r=r>n?n:r)*this.neckHeightFactor,c=LQ(e[e.length-2],o,0,r,!0),h=LQ(e[e.length-2],o,0,u,!0),p=LQ(o,c,vQ,a,!1),d=LQ(o,c,vQ,a,!0);return[LQ(o,h,vQ,l,!1),p,o,d,LQ(o,h,vQ,l,!0)]}catch(e){KQ.log(e)}},t.prototype.getArrowBodyPoints=function(e,t,i,n){for(var r=bQ(e),o=wQ(e)*n,s=(o-CQ(t,i))/2,a=tz([0,[],[]],3),l=a[0],u=a[1],c=a[2],h=1;h<e.length-1;h++){var p=MQ(e[h-1],e[h],e[h+1])/2,d=(o/2-(l+=CQ(e[h-1],e[h]))/r*s)/Math.sin(p),f=LQ(e[h-1],e[h],Math.PI-p,d,!0),m=LQ(e[h-1],e[h],p,d,!1);u.push(f),c.push(m)}return u.concat(c)},t.prototype.getTempPoint4=function(e,t,i){try{var n=xQ(e,t),r=CQ(n,i),o=MQ(e,n,i),s=tz([void 0,void 0,void 0,void 0],4),a=s[0],l=s[1],u=s[2],c=s[3];return o<vQ?(l=r*Math.sin(o),u=r*Math.cos(o),c=LQ(e,n,vQ,l,!1),a=LQ(n,c,vQ,u,!0)):o>=vQ&&o<Math.PI?(l=r*Math.sin(Math.PI-o),u=r*Math.cos(Math.PI-o),c=LQ(e,n,vQ,l,!1),a=LQ(n,c,vQ,u,!1)):o>=Math.PI&&o<1.5*Math.PI?(l=r*Math.sin(o-Math.PI),u=r*Math.cos(o-Math.PI),c=LQ(e,n,vQ,l,!0),a=LQ(n,c,vQ,u,!0)):(l=r*Math.sin(2*Math.PI-o),u=r*Math.cos(2*Math.PI-o),c=LQ(e,n,vQ,l,!0),a=LQ(n,c,vQ,u,!1)),a}catch(e){KQ.log(e)}},$Q([rm(),ez("design:type",Number)],t.prototype,"headHeightFactor",void 0),$Q([rm(),ez("design:type",Number)],t.prototype,"headWidthFactor",void 0),$Q([rm(),ez("design:type",Number)],t.prototype,"neckHeightFactor",void 0),$Q([rm(),ez("design:type",Number)],t.prototype,"neckWidthFactor",void 0),$Q([rm(),ez("design:type",Number)],t.prototype,"tailWidthFactor",void 0),$Q([rm(),ez("design:type",Number)],t.prototype,"headTailFactor",void 0),$Q([rm(),ez("design:type",Number)],t.prototype,"swallowTailFactor",void 0),$Q([rm(),ez("design:type",Object)],t.prototype,"swallowTailPnt",void 0),t}(AQ);Cu.A.registerType(iz,"EditorAttackArrow","Graph");var nz=__webpack_require__(6763),rz=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),oz=function(){return oz=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},oz.apply(this,arguments)},sz=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},az=function(e){function t(t,i,n){var r=e.call(this,t,i,oz({},n))||this;if(r.type="进攻方向(尾)",r.headHeightFactor=.18,r.headWidthFactor=.3,r.neckHeightFactor=.85,r.neckWidthFactor=.15,r.tailWidthFactor=.1,r.headTailFactor=.8,r.swallowTailFactor=1,r.swallowTailPnt=null,n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return rz(t,e),t.prototype.generate=function(){try{var e=this.getPointCount;if(e<2)return!1;if(2===e)return this.points;var t=this.getPoints(),i=sz([t[0],t[1]],2),n=i[0],r=i[1];PQ(t[0],t[1],t[2])&&(n=t[1],r=t[0]);var o=[xQ(n,r)].concat(t.slice(2)),s=this.getArrowHeadPoints(o,n,r),a=sz([s[0],s[4]],2),l=a[0],u=a[1],c=CQ(n,r),h=wQ(o),p=h*this.tailWidthFactor*this.swallowTailFactor;this.swallowTailPnt=LQ(o[1],o[0],0,p,!0);var d=c/h,f=this.getArrowBodyPoints(o,l,u,d),m=f.length,g=[n].concat(f.slice(0,m/2));g.push(l);var y=[r].concat(f.slice(m/2,m));return y.push(u),g=RQ(g),y=RQ(y),g.concat(s,y.reverse(),[this.swallowTailPnt,g[0]])}catch(e){nz.log(e)}},t}(iz);Cu.A.registerType(az,"EditorTailedAttackArrow","Graph");var lz=__webpack_require__(6763),uz=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),cz=function(){return cz=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},cz.apply(this,arguments)},hz=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},pz=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},dz=function(e){function t(t,i,n){var r=e.call(this,t,i,cz({},n))||this;if(r.type="分队战斗行动(尾)",r.headHeightFactor=.18,r.headWidthFactor=.3,r.neckHeightFactor=.85,r.neckWidthFactor=.15,r.tailWidthFactor=.1,r.swallowTailFactor=1,r.swallowTailPnt=null,r.minPointNum=2,n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return uz(t,e),t.prototype.generate=function(){try{if(this.getPointCount<2)return!1;var e=this.getPoints(),t=this.getTailPoints(e),i=this.getArrowHeadPoints(e,t[0],t[2]),n=i[0],r=i[4],o=this.getArrowBodyPoints(e,n,r,this.tailWidthFactor),s=o.length,a=[t[0]].concat(o.slice(0,s/2));a.push(n);var l=[t[2]].concat(o.slice(s/2,s));return l.push(r),a=RQ(a),l=RQ(l),a.concat(i,l.reverse(),[t[1],a[0]])}catch(e){lz.log(e)}},t.prototype.getTailPoints=function(e){var t=wQ(e)*this.tailWidthFactor,i=LQ(e[1],e[0],vQ,t,!1),n=LQ(e[1],e[0],vQ,t,!0),r=t*this.swallowTailFactor;return[i,LQ(e[1],e[0],0,r,!0),n]},hz([rm(),pz("design:type",Number)],t.prototype,"fixPointCount",void 0),t}(iz);Cu.A.registerType(dz,"EditorTailedSquadCombat","Graph");var fz=__webpack_require__(6763),mz=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),gz=function(){return gz=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},gz.apply(this,arguments)},yz=function(e){function t(t,i,n){var r=e.call(this,t,i,gz({},n))||this;if(r.type="分队战斗行动",r.headHeightFactor=.18,r.headWidthFactor=.3,r.neckHeightFactor=.85,r.neckWidthFactor=.15,r.tailWidthFactor=.1,r.minPointNum=2,n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return mz(t,e),t.prototype.generate=function(){try{if(this.getPointCount<2)return!1;var e=this.getPoints(),t=this.getTailPoints(e),i=this.getArrowHeadPoints(e,t[0],t[1]),n=i[0],r=i[4],o=this.getArrowBodyPoints(e,n,r,this.tailWidthFactor),s=o.length,a=[t[0]].concat(o.slice(0,s/2));a.push(n);var l=[t[1]].concat(o.slice(s/2,s));return l.push(r),a=RQ(a),l=RQ(l),a.concat(i,l.reverse())}catch(e){fz.log(e)}},t.prototype.getTailPoints=function(e){var t=wQ(e)*this.tailWidthFactor;return[LQ(e[1],e[0],vQ,t,!1),LQ(e[1],e[0],vQ,t,!0)]},t}(iz);Cu.A.registerType(yz,"EditorSquadCombat","Graph");var _z=__webpack_require__(6763),Az=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),vz=function(){return vz=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},vz.apply(this,arguments)},Cz=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},bz=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},wz=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},xz=function(e){function t(t,i,n){var r=e.call(this,t,i,vz({},n))||this;if(r.type="粗单尖头箭头",r.tailWidthFactor=.1,r.neckWidthFactor=.2,r.headWidthFactor=.25,r.headAngle=Math.PI/8.5,r.neckAngle=Math.PI/13,r.fixPointCount=2,r.maxPointNum=2,r.minPointNum=2,n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return Az(t,e),t.prototype.generate=function(){try{if(this.getPointCount<2)return!1;var e=this.getPoints(),t=wz([e[0],e[1]],2),i=t[0],n=t[1],r=wQ(e),o=r*this.tailWidthFactor,s=r*this.neckWidthFactor,a=r*this.headWidthFactor,l=LQ(n,i,vQ,o,!0),u=LQ(n,i,vQ,o,!1),c=LQ(i,n,this.headAngle,a,!1),h=LQ(i,n,this.headAngle,a,!0);return[l,LQ(i,n,this.neckAngle,s,!1),c,n,h,LQ(i,n,this.neckAngle,s,!0),u]}catch(e){_z.log(e)}},Cz([rm(),bz("design:type",Number)],t.prototype,"headAngle",void 0),Cz([rm(),bz("design:type",Number)],t.prototype,"neckAngle",void 0),Cz([rm(),bz("design:type",Number)],t.prototype,"fixPointCount",void 0),t}(iz);Cu.A.registerType(xz,"EditorFineArrow","Graph");var Sz=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Mz=function(){return Mz=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Mz.apply(this,arguments)},Pz=function(e){function t(t,i,n){var r=e.call(this,t,i,Mz({},n))||this;if(r.type="粗单直箭头",r.tailWidthFactor=.05,r.neckWidthFactor=.1,r.headWidthFactor=.15,r.headAngle=Math.PI/4,r.neckAngle=.17741*Math.PI,n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return Sz(t,e),t}(xz);Cu.A.registerType(Pz,"EditorAssaultDirection","Graph");var Ez=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Lz=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},Tz=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Oz=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},Dz=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},Bz=function(e){function t(t,i,n){var r=e.call(this,t,i,n)||this;return r.middleClosed=!1,r}return Ez(t,e),t.prototype.setCoordinates=function(e,t){},t.prototype.calcuteShape=function(e,t){var i=e.map(function(e){return km.cartesian2lonlat(e)});this.points=i,this.getPointCount=this.points.length;var n=this.generate();n||(n=[]);var r=n.map(function(e){var t=e;return km.lonlat2Cartesian(t)});return r},t.prototype.generate=function(){throw new Error("Method not implemented.")},t.prototype.getPoints=function(){for(var e=[],t=0,i=1;i<this.points.length;i++)if(Math.abs(this.points[i][0])+Math.abs(this.points[i-1][0])>180){this.points[i-1][0]>0&&this.points[i][0]<0?t=1:this.points[i-1][0]<0&&this.points[i][0]>0&&(t=2);break}return 1==t?(this.points.forEach(function(t){var i=Dz([],Oz(t),!1);i[0]<0&&(i[0]=360+i[0]),e.push(i)}),e):2==t?(this.points.forEach(function(t){var i=Dz([],Oz(t),!1);i[0]>0&&(i[0]=i[0]-360),e.push(i)}),e):this.points},Lz([rm(),Tz("design:type",Array)],t.prototype,"points",void 0),Lz([rm(),Tz("design:type",Number)],t.prototype,"getPointCount",void 0),t}(eF),Iz=__webpack_require__(6763),Rz=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Nz=function(){return Nz=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Nz.apply(this,arguments)},kz=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},Fz=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Hz=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},Yz=function(e){function t(t,i,n){var r=e.call(this,t,i,Nz({},n))||this;if(r.type="细直箭头",r.maxPointNum=2,r.maxArrowLength=3e6,r.arrowLengthScale=5,Object.defineProperty(r,"moveHeight",{configurable:!0,enumerable:!0,get:function(){}}),n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return Rz(t,e),t.prototype.generate=function(){try{if(this.getPointCount<2)return!1;var e=this.getPoints(),t=Hz([e[0],e[1]],2),i=t[0],n=t[1],r=CQ(i,n);if(r<=0)return;var o=r/this.arrowLengthScale;return o=o>this.maxArrowLength?this.maxArrowLength:o,[i,n,LQ(i,n,Math.PI/6,o,!1),n,LQ(i,n,Math.PI/6,o,!0)]}catch(e){Iz.log(e)}},kz([rm(),Fz("design:type",Number)],t.prototype,"maxArrowLength",void 0),kz([rm(),Fz("design:type",Number)],t.prototype,"arrowLengthScale",void 0),t}(Bz);Cu.A.registerType(Yz,"EditorStraightLineArrow","Graph");var jz=__webpack_require__(6454);function Uz(e,t){return void 0===t&&(t=cr),jn(function(i,n){var r=null,o=null,s=null,a=function(){if(r){r.unsubscribe(),r=null;var e=o;o=null,n.next(e)}};function l(){var i=s+e,o=t.now();if(o<i)return r=this.schedule(void 0,i-o),void n.add(r);a()}i.subscribe(Un(n,function(i){o=i,s=t.now(),r||(r=t.schedule(l,e),n.add(r))},function(){a(),n.complete()},void 0,function(){o=r=null}))})}var Gz=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Qz=function(){return Qz=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Qz.apply(this,arguments)},zz=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},Wz=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Xz=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())})},Vz=function(e,t){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},Jz=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Kz=(__webpack_require__(1434),function(e){function t(t,i,n){var r=e.call(this,t,i,Qz({type:"路径规划线"},n))||this;if(r.recalculate$=new am,r.needRedraw=!1,r.routers=[],r.type="路径规划线",r.minPointNum=2,r.maxPointNum=2,r.recalculate$.pipe(Uz(500)).subscribe(function(e){r.calculate()}),n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return Gz(t,e),t.prototype.setPrimitivePosition=function(t){var i,n;t[0]||(t=t.slice(1)),t=t.filter(function(e){return e});var r=[],o=function(e){0==r.filter(function(t){return Cesium.Cartesian3.equals(t,e)}).length&&r.push(e)};try{for(var s=Jz(t),a=s.next();!a.done;a=s.next()){o(a.value)}}catch(e){i={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}0!=(t=r).length&&(this.last_pos=null,e.prototype.createEnt.call(this,t))},t.prototype.finish=function(){e.prototype.finish.call(this),this.recalculate$&&this.recalculate$.next(!0)},t.prototype.resetControlPosition=function(t){e.prototype.resetControlPosition.call(this,t),this.recalculate$&&this.recalculate$.next(!0)},t.prototype.calcuteShape=function(t,i){if(!this.routers||this.routers.length<2)return e.prototype.calcuteShape.call(this,t,i);t=this.routers,this.setInternalControlPosition(this._singleControlPosition,i);for(var n=[],r=[0],o=[],s=0,a=0;a<t.length-1;a++){var l=Cesium.Cartesian3.distance(t[a],t[a+1]);o.push(l),s+=l}for(var u=0;u<o.length;u++)r.push(o[u]/s+r[u]);if(this.interplate){n=[],this.interopLine=Cesium.HermiteSpline.createNaturalCubic({times:r,points:t});for(var c=10*t.length,h=0;h<=c;h++){var p=this.interopLine.evaluate(h/c);n.push(p)}}else this.interopLine=new Cesium.LinearSpline({times:r,points:t});return t},t.prototype.calculate=function(){return Xz(this,void 0,void 0,function(){var e,t,i,n,r,o,s,a,l,u,c,h,p,d,f,m,g;return Vz(this,function(y){switch(y.label){case 0:return this.ctrlPosition.length<2?[2]:(e=this.ctrlPosition[0],t=this.ctrlPosition[this.ctrlPosition.length-1],i='https://api.tianditu.gov.cn/drive?postStr={"orig":"'.concat(e.lon,",").concat(e.lat,'","dest":"').concat(t.lon,",").concat(t.lat,'","style":"0"}&type=search&tk=491891e3aa43f2e0d8530ff44e831952'),[4,fetch(i)]);case 1:return[4,y.sent().text()];case 2:if(n=y.sent(),r=new jz.XMLParser,o=r.parse(n),null!=(s=o.result.routelatlon)){a=s.split(";"),l=[];try{for(u=Jz(a),c=u.next();!c.done;c=u.next())h=c.value,2==(p=h.split(",")).length&&(d=[Number.parseFloat(p[0]),Number.parseFloat(p[1])],f=km.lonlat2Cartesian([d[0],d[1]]),l.push(f))}catch(e){m={error:e}}finally{try{c&&!c.done&&(g=u.return)&&g.call(u)}finally{if(m)throw m.error}}return this.routers=l,this.setPrimitivePosition(this.routers),[2]}return[2]}})})},zz([rm(),Wz("design:type",am)],t.prototype,"recalculate$",void 0),zz([rm(),Wz("design:type",Boolean)],t.prototype,"needRedraw",void 0),t}(eF));const Zz=Kz;Cu.A.registerType(Kz,"EditorRoutePolyline","Graph");var qz=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),$z=function(){return $z=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},$z.apply(this,arguments)},eW=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},tW=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},iW=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},nW=function(e){function t(t,i,n){var r=e.call(this,t,i,$z({},n))||this;if(r.minPointNum=2,r.type="立体线-墙",r.color="#00FF00",r.alpha=.8,r.moveHeight=null,n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return qz(t,e),Object.defineProperty(t.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(e){this._lineHeight=e,this.redraw()},enumerable:!1,configurable:!0}),t.prototype.internalmoveHeight=function(e,t){var i,n,r=this.getCenter(),o=km.getHeightByCartesian3(r,this.viewer),s=this.ChangeLengthByMouse(o,t.y-e.y,1),a=[];try{for(var l=iW(this._singleControlPosition),u=l.next();!u.done;u=l.next()){var c=u.value,h=km.getHeightByCartesian3(c,this.viewer)-o+s;h<0&&(h=0),a.push(km.getHeightdefineByXYZ(c,h,this.viewer))}}catch(e){i={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}this._singleControlPosition=a,this.onPropertyChanged()},t.prototype.initProps=function(e){},t.prototype.initShape=function(){var e=this;this.positionProperty=function(){var t=e._singleControlPosition;t&&e.setPrimitivePosition(t)},this.ent={},this.createEnt([]),this.fillShape(this.ent)},t.prototype.createEnt=function(e){if(!jf.Cartesian3ArrayEqual(this.last_pos,e)&&(this.last_pos=e,e&&!(e.length<=1))){this.p&&this.viewer.scene.primitives.remove(this.p);var t=Cesium.WallGeometry.fromConstantHeights({positions:e,minimumHeight:0,maximumHeight:this.lineHeight}),i=Cesium.WallGeometry.createGeometry(t),n=new Cesium.GeometryInstance({geometry:i,id:this.id}),r=Cesium.Material.fromType("Color");this.setColor(r),this.p=new Cesium.Primitive({geometryInstances:n,appearance:new Cesium.MaterialAppearance({material:r}),vertexCacheOptimize:!0,interleave:!1,compressVertices:!0,releaseGeometryInstances:!0,asynchronous:!1,allowPicking:!0,show:!0}),this.viewer.scene.primitives.add(this.p),this.fillShape(this.p),this.ent=this.p}},t.prototype.calcuteShape=function(e,t){if(e.length<this.minPointNum)return[];return this.setInternalControlPosition(e,t),e},t.prototype.setPrimitivePosition=function(e){e[0]||(e=e.slice(1)),this.setInternalControlPosition(e),this.createEnt(e)},t.prototype.flashPrimitive=function(){this.p.show=!this.p.show},t.prototype.toGeoJsonGeometry=function(){var e,t,i={type:"LineString",coordinates:[]};try{for(var n=iW(this.ctrlPosition),r=n.next();!r.done;r=n.next()){var o=r.value;i.coordinates.push([o.lon,o.lat,o.alt])}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return i},t.prototype.redraw=function(){this.last_pos=null,this.createEnt(this._singleControlPosition)},eW([rm(),tW("design:type",Object)],t.prototype,"last_pos",void 0),eW([rm(),em({name:"线高度",group:"外观",type:"number",order:8,min:1,max:1e5}),tW("design:type",Number),tW("design:paramtypes",[Number])],t.prototype,"lineHeight",null),eW([rm(),tW("design:type",Function),tW("design:paramtypes",[Cesium.Cartesian2,Cesium.Cartesian2]),tW("design:returntype",void 0)],t.prototype,"internalmoveHeight",null),t}(hI);const rW=nW;Cu.A.registerType(nW,"EditorGeometryWall","Graph");var oW=__webpack_require__(6763),sW=function(){return sW=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},sW.apply(this,arguments)},aW=function(){function e(){}return e.createObj0=function(t,i,n,r){var o;if(t.gvolType||t.obj&&(t=JSON.parse(JSON.stringify(t).replace(/obj/g,"gvolType"))),t.isCustom){if(t.gvolType)var s=Cu.A.typesMap[t.gvolType];if(!s)return void oW.warn("无效的标绘类型,请认真阅读接口指南");o=new s(i,n,t)}else switch(t.gvolType&&(t.gvolType=t.gvolType.replace("Editor","")),t.properties||(t.properties=sW({},t)),t.gvolType){case"RedFlag":o=new $N(i,n,t);break;case"Image":o=new JN(i,n,t);break;case"HtmlImage":o=new dQ(i,n,t);break;case"Point":o=new ok(i,n,t);break;case"Model":o=new mR(i,n,t);break;case"PinText":o=new mk(i,n,t);break;case"PinMakiIcon":case"PinIcon":o=new vk(i,n,t);break;case"PinImage":o=new xR(i,n,t);break;case"PinCanvas":o=new Mk(i,n,t);break;case"Polygon":o=new BI(i,n,t);break;case"Arrow1":o=new Tk(i,n,t);break;case"Circle":o=new GI(i,n,t);break;case"Ellipse":o=new Ik(i,n,t);break;case"Rectangle":o=new yI(i,n,t);break;case"RectangleExpand":o=new HI(i,n,t);break;case"Frustum":o=new Uk(i,n,t);break;case"Text":o=new nH(i,n,t);break;case"Video":o=new FY(i,n,t);break;case"Polyline":o=new eF(i,n,t);break;case"Bezier1":o=new uF(i,n,t);break;case"Bezier2":o=new dF(i,n,t);break;case"BezierN":o=new oF(i,n,t);break;case"BezierSpline":o=new _F(i,n,t);break;case"Curve":o=new bF(i,n,t);break;case"CircleArc":o=new MF(i,n,t);break;case"PointLine":o=new DF(i,n,t);break;case"PointSpline":o=new ZF(i,n,t);break;case"JBLine":o=new lH(i,n,t);break;case"JBPointObject":o=new gH(i,n,t,r);break;case"JBPointScreen":o=new PH(i,n,t,r);break;case"Radar":o=new FH(i,n,t);break;case"CommunicateWave":o=new $H(i,n,t);break;case"Particle":o=new LR(i,n,t);break;case"Cloud":o=new lY(i,n,t);break;case"GeometryPolygon":o=new WY(i,n,t);break;case"GeometryPolyline":o=new sj(i,n,t);break;case"GeometryWall":o=new rW(i,n,t);break;case"GeometryMultiPolygon":o=new _j(i,n,t);break;case"GeometryMultiPolyline":o=new Sj(i,n,t);break;case"GeojsonMultiPolygon":o=new eU(i,n,t);break;case"GeojsonMultiPolyline":o=new fU(i,n,t);break;case"GeojsonPolygon":o=new CU(i,n,t);break;case"GeojsonPolyline":o=new EU(i,n,t);break;case"CubeBox":o=new rR(i,n,t);break;case"Ellipsoid":o=new fY(i,n,t);break;case"Cylinder":o=new CY(i,n,t);break;case"PlaneText":o=new sQ(i,n,t);break;case"Sector":o=new PY(i,n,t);break;case"PointArc":o=new BY(i,n,t);break;case"JB":o=e.createJb(i,n,t);break;case"RouteText":o=new HF(i,n,t);break;case"AreaText":o=new XF(i,n,t);break;case"DoubleArrow":o=new GQ(i,n,t);break;case"GatheringPlace":o=new JQ(i,n,t);break;case"AttackArrow":o=new iz(i,n,t);break;case"TailedAttackArrow":o=new az(i,n,t);break;case"SquadCombat":o=new yz(i,n,t);break;case"TailedSquadCombat":o=new dz(i,n,t);break;case"AssaultDirection":o=new Pz(i,n,t);break;case"FineArrow":o=new xz(i,n,t);break;case"StraightLineArrow":o=new Yz(i,n,t);break;case"RoutePolyline":o=new Zz(i,n,t);break;default:return void oW.warn("无效的标绘类型,请认真阅读接口指南")}for(var a in t)o[a]=t[a];return o instanceof hI?o.initCtls(!1):o.initCtls(),o.initShape(),o},e.createJb=function(e,t,i){var n=e.code;return n?n.includes("-0")?"object"==e.showMode?new gH(e,t,i):new PH(e,t,i):new lH(e,t,i):(oW.log("missing jbcode param"),null)},e}(),lW=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),uW=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},cW=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},hW=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())})},pW=function(e,t){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},dW=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},fW=__webpack_require__(6380),mW=function(e){function t(i,n,r){var o=e.call(this)||this;return o._isChanged=!1,o.graphList=[],o._graphicList=[],o.treeList=[],"undefined"==typeof window||(o.cesService=r,window.gm=o,o.sg=qf.getInstance(),o.config=n,o.engine=i,o.serviceManager=i.serviceManager,o.viewer=i.viewer,o._animationManager=new HN(o.viewer),o.layer=null,o.editor=new kR(o.engine,o.config.editAfterCreate,o.config.isReadOnly,o.config.operatorEnable,o.layer),o.editor.onExport=function(e){var t=o.classToPlain(e),i=JSON.stringify(t),n=new Blob([i],{type:"text/json"}),r=document.createElement("a");r.download=e.name+".json",r.href=window.URL.createObjectURL(n),r.click()},t.baseJbUrl=n.baseJbUrl),o}return lW(t,e),Object.defineProperty(t,"svgCache",{get:function(){return t._svgCache||(t._svgCache=new Map),t._svgCache},enumerable:!1,configurable:!0}),t.getPng=function(e){return fW.algorithm.getPng(e)},t.getJbData=function(e){return t.baseJbUrl+e},Object.defineProperty(t.prototype,"isChanged",{get:function(){return this._isChanged||null!=this.graphList.find(function(e){return 1==e.graph.isChanged})},enumerable:!1,configurable:!0}),t.prototype.resetChanged=function(){var e,t;this._isChanged=!1;try{for(var i=dW(this.graphList),n=i.next();!n.done;n=i.next()){n.value.graph.isChanged=!1}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},Object.defineProperty(t.prototype,"graphicList",{get:function(){var e=this;return this._graphicList=[],this.graphList.forEach(function(t){e._graphicList.push(t.graph)}),this._graphicList},enumerable:!1,configurable:!0}),t.prototype.showUnClusteredPoint=function(){if(this.sg.gxCluster._customDataSource.clustering._billboardCollection){var e=this.sg.gxCluster._customDataSource.clustering._billboardCollection._billboards.filter(function(e){return e._clusterShow}).map(function(e){return e.id.id}),t=this.graphList.filter(function(t){return e.includes(t.graph.clusterPoint.id)});t.forEach(function(e){return e.graph.props.show.value=!0})}},Object.defineProperty(t.prototype,"animationManager",{get:function(){return this._animationManager},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.editor.start()},t.prototype.destroyHandler=function(){this.editor&&this.editor.destroyHandler()},t.prototype.create=function(e){var t=this.createObj(e);return t?(t.graphList=this.graphList,this.editor.create(t)):null},t.prototype.pickOrCreate=function(){},t.prototype.removeDrawItem=function(e){var t;if(this.graphList.length>0){var i=null===(t=this.graphList.find(function(t){return t.graph.id==e.id}))||void 0===t?void 0:t.graph;i&&this.delete(i)}},t.prototype.cancelCreate=function(){this.editor.cancelCreate(),this.deleteAll()},t.prototype.draw=function(e){var t=this.createObj(e);return t?(t.show=!0,this.graphList.push(t),t.graphList=this.graphList,this.editor.draw(t)):null},t.prototype.delete=function(e){var t=void 0;if(e){e.delete&&e.delete();var i=(t=e).id,n=this.graphList.find(function(e){return e.graph.id==i});jf.Remove(this.graphList,n)}else(t=this.editor.deleteSelectGraph())&&this.graphList.remove(t);return this._isChanged=!0,t},t.prototype.clean=function(){this.graphList.forEach(function(e){e.graph.delete()}),this.graphList.splice(0,this.graphList.length),this._isChanged=!0,this.sg.gxCluster&&this.sg.gxCluster.removeFromEarth()},t.prototype.deleteAll=function(){this.clean()},t.prototype.close=function(){this.clean(),this.editor.removeOperator()},t.prototype.load=function(e){var t,i,n=this;e.graphs.map(function(e){null!=e&&n.draw(e)});try{for(var r=dW(this.graphList),o=r.next();!o.done;o=r.next()){var s=o.value;s.graph.show=s.graph.show,s.graph.anchorHelper&&(s.graph.anchorHelper=gN(Qm,s.graph.anchorHelper),s.graph.anchorHelper.viewer=this.viewer,Qm.cesService=this.cesService)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}this._animationManager.load(e.animations),this.viewPoint=e.viewPoint,this._isChanged=!1},t.prototype.flyTo=function(e){this.viewPoint},t.prototype.classToPlain=function(e){var t=function(e,t){return fN.instanceToPlain(e,t)}(e);return t},t.prototype.save=function(){var e,t,i=[];try{for(var n=dW(this.graphList),r=n.next();!r.done;r=n.next()){var o=r.value,s=void 0;o.graph.anchorHelper&&(s=this.classToPlain(o.graph.anchorHelper));var a=this.classToPlain(o.graph);a.anchorHelper=s,i.push(a)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return{graphs:i,animations:this.animationManager.save()}},t.prototype.toGeoJson=function(e,t){var i,n,r={type:"Feature",properties:{},geometry:{type:"Point",coordinates:[1,2]}},o=Object.keys(e).remove("_ctrlPosition");try{for(var s=dW(o),a=s.next();!a.done;a=s.next()){var l=a.value;r.properties[l]=e[l]}}catch(e){i={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return r.geometry=t,r},t.prototype.createObj=function(e){var i=aW.createObj0(e,this.engine,this.layer,t.baseJbUrl);return this._isChanged=!0,i&&i.ent?i.ent:null},t.prototype.loadResource=function(e){return hW(this,void 0,void 0,function(){var t,i,n=this;return pW(this,function(r){switch(r.label){case 0:return this.config.clusterEnable?[4,this.serviceManager.clusterService.clusterConfig]:[3,2];case 1:(t=r.sent()).setImage=function(e,i){var r=e.map(function(e){return e._id}),o=n.graphList.filter(function(e){return r.includes(e.graph.clusterPoint.id)});o.forEach(function(e){return e.graph.props.show.value=!1}),t.setImage1(e,i)},this.sg.gxCluster=new GN(this.viewer,t),this.sg.gxClusterOption=t,this.sg.gxCluster.addToEarth(),this.viewer.camera.changed.addEventListener(function(){setTimeout(function(){n.showUnClusteredPoint()},50)},{passive:!0}),r.label=2;case 2:return e?[4,this.serviceManager.httpService.getData(e)]:[3,4];case 3:i=r.sent(),this.treeList=i,r.label=4;case 4:return this.serviceManager.plotService.storageJbs=JSON.parse(localStorage.getItem("recently"))||[],[2]}})})},t.prototype.parseIcons=function(e,t){return hW(this,void 0,void 0,function(){return pW(this,function(i){return this.iconsTreeDataResolve(e,t),this.iconsTreeHideFile(e),[2]})})},t.prototype.iconsTreeHideFile=function(e){var t=this;e.parent&&!e.children&&delete e.parent.children,e.children&&e.children.length>0&&e.children.forEach(function(e){return t.iconsTreeHideFile(e)})},t.prototype.iconsTreeDataResolve=function(e,t){var i=this;if(e.kind=t,"model"===t&&e.path&&(e.path=e.path.replace(/\\/g,"/")),"image"===t&&e.path&&(e.path=e.path.replace(/\\/g,"/")),e.data&&e.data.codeName){var n=e.data.codeName.lastIndexOf("-"),r=e.data.codeName.substr(0,n);if("1"===e.data.codeName[n-1]){var o={code:r,color:"#ff0000",name:e.label,obj:"JB"};e.params=o,e.kind="jbline1";var s=e.path.indexOf("军事标绘");e.path.substr(s,e.path.length-s);e.imagePath=e.path,delete e.extension}else if(e.data.noSvg)e.kind="image";else if(e.data.codeName.includes("-0-")){o={code:r,color:"#ff0000",name:e.label,obj:"JB",offsetX:e.data.offsetX,offsetY:e.data.offsetY};e.jbId=r,e.params=o,delete e.extension}}e.children&&e.children.length>0&&(e.data=e.children,e.children.forEach(function(t){return t.parent=e}),e.children.forEach(function(e){i.iconsTreeDataResolve(e,t)}))},uW([rm(),cW("design:type",Object)],t.prototype,"cesService",void 0),t}(iu);const gW=mW;var yW,_W=__webpack_require__(6763),AW=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())})},vW=function(e,t){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},CW=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},bW=function(){function e(e){this.geopptServicePlaceHolder="-gsph-",this.resourceTypeOpen=new am,this.resourceTypeClose=new am,this.showSelectionSub$=new am,this.curJb=null,this.curPlots=[],this._showFrameSelection=!1,this.detailFlag=!1,this.attrsFlag=!0,this.createFlag=!0,this.layerName="",this.layerId="",this.currentLayer=null,this.asideFlag=!1,this.copyFlag=!1,this.lockFlag=!1,this.$subject=new am,this.recentlyUsedJbArray=[],this.scalable=!0,this.rotatable=!0,this.scenarioList=[],this.isEmptyForLabel=!0,this.isRefresh=new am,this.savePageGraphBoardsSub$=new am,this.savePageGraphAnchorsSub$=new am,this.isCrossSelectedNodes2Or3="",this.clearCrossSelectedNodes$=new am,this.layerComponentRefresh$=new am,this.litener=function(){},this.onSelectChanged=new am,this.copystr=void 0,this.serviceManager=e.serviceManager,this._engine=e,this._viewer=e.viewer,this.fontMode=["微软雅黑","宋体","仿宋","楷体","隶书","幼圆","黑体"],this.fontSize=[12,14,16,18,20,22,24,26,28,36,48,60,72,84,96,108,120,132,144,156],this.lineWidth=[{label:"1",value:1},{label:"2",value:2},{label:"3",value:3},{label:"4",value:4},{label:"5",value:5}],this.rightClickPosition=new wW;var t=localStorage.getItem("pasteLocation");this.pasteLocation=!t||"true"==t}return Object.defineProperty(e.prototype,"gm",{get:function(){return this._gm||(this._gm=this.createOrEdit(this._baseUrl)),this._gm},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showFrameSelection",{get:function(){return this._showFrameSelection},set:function(e){this._showFrameSelection=e,this.showSelectionSub$.next(!1)},enumerable:!1,configurable:!0}),e.prototype.initConfig=function(){this.layerIpReg=new RegExp(window.config.geopptService,"g"),this.placeHolderReg=new RegExp(this.geopptServicePlaceHolder,"g")},e.prototype.controlScale=function(e){_W.log("scale: ",e),!e.o.scalable&&e.o.ent.billboard?e.o.ent.billboard.scale=e.value:e.o.ent&&e.o.ent.billboard&&(e.o.ent.billboard.scale=new Cesium.CallbackProperty(function(t,i){return e.value},!0))},e.prototype.contains=function(e,t){try{if(null==t||null==t||0==t.length||null==e||null==e)return!1;var i=new RegExp(t,"ig"),n=t.charCodeAt(0);if(n>=19968&&n<=40869){var r=e.match(i);if(null==r||0==r.length)return!1}else{var o=this.serviceManager.pinyinTool.makePy(e);if(null==o||0==o.length)return!1;var s=o[0].match(i);if(null==s||0==s.length)return!1}}catch(e){_W.log(e)}return!0},e.prototype.addPlot=function(e,t,i){if(i.stopPropagation(),e){if(["geojson","kml"].indexOf(e.kind)>-1)return!0;if("html"!=e.kind){var n=null,r=e.label;if("jb"==e.kind||"jbnew"==e.kind)n={obj:"JB",code:e.jbId,offsetX:e.data.offsetX,offsetY:e.data.offsetY,showMode:t?"screen":"object",name:r};else if("model"==e.kind){yT.deServiceIp;n={obj:"Model",uri:yT.geopptServiceIp+"/"+"".concat(e.path),scalev:100,minimumPixelSize:20,alpha:1}}else if(e.extension)switch(e.extension){case".png":case".jpeg":case".jpg":n={obj:"PinImage"},e.path&&(n.image="".concat(this.picPublicPath).concat(e.path)),t||(n.obj="Image");break;case".gif":n={obj:"HtmlImage"},e.path&&(n.imageUrl="".concat(this.picPublicPath).concat(e.path))}else(n=JB.deepClone(e.params)).image&&(n.image=VB.formatURL(n.image));e.gvolType&&(n.gvolType=e.gvolType),n.name=r,this.gm.create(n),this.setRecentlyUsedJb(e),_W.log("点击",e),this.plot_icon=e.path}}},e.prototype.draw=function(e,t,i,n){void 0===n&&(n=!0);var r=this.gm.draw(e);if(r){var o=r.graph;return o.iconName=t,o.name=i,n&&this.isRefresh.next([o]),o}return null},e.prototype.drawObj=function(e){this.gm.graphList.push(e)},e.prototype.setRecentlyUsedJb=function(e){var t=this.storageJbs.length;!!t&&this.storageJbs.find(function(t){return t.label===e.label})||(t>=4&&this.storageJbs.shift(),e.parent&&delete e.parent,e.hover=!1,this.storageJbs.push(JSON.parse(JSON.stringify(e))),localStorage.setItem("recently",JSON.stringify(this.storageJbs)))},Object.defineProperty(e.prototype,"editItem",{get:function(){return this._editItem},set:function(e){this._editItem instanceof qm&&this.editItem.propertyChanged.removeEventListener(this.litener),this._editItem=e,this._editItem&&(this.serviceManager.geojsonPlotService.currentGeojson=null),e instanceof qm&&e.propertyChanged.addEventListener(this.litener)},enumerable:!1,configurable:!0}),e.prototype.createOrEdit=function(e,t){var i=this;void 0===t&&(t=null);var n=yT.deServiceIp,r=new gW(this._engine,{layerId:"plot"+Fm.newGuid(),editAfterCreate:!0,baseJbUrl:n+"api/jb/jbsvg/",operatorEnable:!0,clusterEnable:!1,isReadOnly:!1},"");if(r.loadResource(e),r.editor.hideHTMLBoxesOperatorSub$.subscribe(function(){i.serviceManager.htmlDrawService.hideOperator()}),r.editor.stopContextMenu$.subscribe(function(e){i.rightClickPosition.showPasteButton=!1}),r.editor.isCrossSelectedNodes2Or3Sub$.subscribe(function(e){i.isCrossSelectedNodes2Or3=e}),t){var o=JSON.stringify(t);t=JSON.parse(o),r.load(t),t.html,t.geojson&&this.serviceManager.geojsonPlotService.setListByData(t.geojson,!0),t.bigfile&&(_W.log("json bigfile",t.bigfile),this.serviceManager.drawbigfileService.setListByData(t.bigfile)),t.music&&this.serviceManager.musicService.recoverData(t.music)}return this.plotList=r.graphList,r.editor.onEditCollectionChanged=function(e){i.isRefresh.next(e),e&&e.length>0?(i.editItem=1==e.length?e[0]:e,i.asideFlag=!0,i.detailFlag=!0,i.attrsFlag=!0,e.length,i.onSelectChanged.next(i.editItem)):(i.editItem=void 0,eI.currentBoxList.length&&!eI.currentEditGraphList.length&&r.editor.isCtrlPressed?i.onSelectChanged.next(eI.currentBoxList[0]):eI.currentEditGraphList.length||i.onSelectChanged.next(null)),i.litener()},r},e.prototype.clean=function(){this.gm&&(this.gm.close(),this.gm.animationManager.destroy()),this.serviceManager.geojsonPlotService.clearGjPlot(),this.serviceManager.drawbigfileService.cleanAll()},e.prototype.createEntityName=function(e){if(!this.plotList||0==this.plotList.length)return e;for(var t=0,i=function(){var i=0===t||1===t?e:"".concat(e,"(").concat(t,")");if(null==n.plotList.find(function(e){return e.graph.name===i}))return{value:i};t++},n=this;;){var r=i();if("object"==typeof r)return r.value}},e.prototype.saveData=function(e,t){return AW(this,void 0,void 0,function(){var t,i;return vW(this,function(n){switch(n.label){case 0:return e.gm&&delete e.gm,[4,this.serviceManager.configService.getDeServiceIp()];case 1:return t=n.sent(),i=new RegExp(t,"g"),e.content=e.content.replace(i,"hellogeovis"),[2]}})})},e.prototype.saveScenarios=function(){return AW(this,void 0,void 0,function(){var e,t,i,n,r,o,s,a,l;return vW(this,function(u){switch(u.label){case 0:this.serviceManager.geojsonPlotService.isEditing=!1,u.label=1;case 1:if(u.trys.push([1,10,,11]),e=this.gm.save(),t=(t=JSON.stringify(e)).replace(this.layerIpReg,this.geopptServicePlaceHolder),(e=JSON.parse(t)).geojson=this.serviceManager.geojsonPlotService.getListDataToSave(),e.bigfile=this.serviceManager.drawbigfileService.getListDataToSave(),e.tree=this.serviceManager.layerService.save(),e.music=this.serviceManager.musicService.saveData(),!(e.graphs&&Array.isArray(e.graphs)&&Array.isArray(e.graphs)))return[3,9];u.label=2;case 2:u.trys.push([2,7,8,9]),i=CW(e.graphs),n=i.next(),u.label=3;case 3:return n.done?[3,6]:!(r=n.value).resourceId||r.ossUrl?[3,5]:(_W.log("装配云地址>>>>"),[4,Fj(r.resourceId,r._name)]);case 4:o=u.sent(),_W.log("获取云地址结果>>>>",o),o&&"string"!=typeof o&&(r.ossUrl=o.ossUrl),u.label=5;case 5:return n=i.next(),[3,3];case 6:return[3,9];case 7:return s=u.sent(),a={error:s},[3,9];case 8:try{n&&!n.done&&(l=i.return)&&l.call(i)}finally{if(a)throw a.error}return[7];case 9:return _W.log("保存contentObj>>>",e),[2,e];case 10:return u.sent(),_W.log("保存出错"),[2,void 0];case 11:return[2]}})})},e.prototype.changeSelect=function(e){this.gm&&(e instanceof Array?this.gm.editor.currentEditGraphList=e:this.gm.editor.currentEditGraph=e)},e.prototype.removeAll=function(){this.gm&&this.gm.deleteAll(),this.editItem=null,this.plotList=[]},e.prototype.clear=function(){this.detailFlag=!1},e.prototype.copy=function(e,t,i){var n=this;if(_W.log("当前选中的 ",e),e){var r;if(e instanceof qm){if(r={type:"plot",data:this.gm.classToPlain(e)},i&&i.size>0){var o=i.get(e.id);o&&(r.data.name=o,r.data._name=o)}}else if(e instanceof Array&&e[0]instanceof qm){var s=[];e.forEach(function(e){s.push(n.gm.classToPlain(e))}),r={type:"plotArray",data:mN(s)},i&&i.size>0&&r.data.forEach(function(e){var t=i.get(e.id);t&&(e.name=t,e._name=t)})}this.copystr=JSON.stringify(r),this.addToClipbrd(this.copystr,t)}},e.prototype.addToClipbrd=function(e,t){function i(t){e&&(t.clipboardData.setData("text/plain",e),t.preventDefault())}document.addEventListener("copy",i,{passive:!1}),document.execCommand("copy"),document.removeEventListener("copy",i)},e.prototype.getFromClipbrd=function(){return AW(this,void 0,void 0,function(){return vW(this,function(e){switch(e.label){case 0:return[4,navigator.clipboard.readText()];case 1:return[2,e.sent()]}})})},e.prototype.pastePlot=function(e,t,i){var n,r,o,s,a=this;if("plot"==e.type){var l=e.data,u=l._name,c=this.GetPasateNam(l._name,this.plotList.map(function(e){return e.graph.name}));if(null!=i){if(!this.rightClickPosition.lon||!this.rightClickPosition.lat)return void alert("当前粘贴位置无效!");var h=i.lon-l._ctrlPosition[0].lon,p=i.lat-l._ctrlPosition[0].lat;try{for(var d=CW(l._ctrlPosition),f=d.next();!f.done;f=d.next()){(_=f.value).lon=_.lon+h,_.lat=_.lat+p}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}}else if(this.pasteLocation){var m=8e-8*t.camera.positionCartographic.height;try{for(var g=CW(l._ctrlPosition),y=g.next();!y.done;y=g.next()){var _;(_=y.value).lon=_.lon+m,_.lat=_.lat+m}}catch(e){o={error:e}}finally{try{y&&!y.done&&(s=g.return)&&s.call(g)}finally{if(o)throw o.error}}}l.id=Fm.newGuid(),l._name=c,l.name=c;var A=this.gm.draw(l);l._name=u,l.name=u;var v=new Map;v.set(A.graph.id,u),this.copy(A.graph,this._viewer,v),this.isRefresh.next([A.graph])}else if("plotArray"==e.type){if(!(null==i||this.rightClickPosition.lon&&this.rightClickPosition.lat))return void alert("当前粘贴位置无效!");var C=e.data,b=new Map,w=[];C.forEach(function(e){var n,r,o,s,l=e._name,u=a.GetPasateNam(e._name,a.plotList.map(function(e){return e.graph.name}));if(null!=i){var c=i.lon-e._ctrlPosition[0].lon,h=i.lat-e._ctrlPosition[0].lat;try{for(var p=CW(e._ctrlPosition),d=p.next();!d.done;d=p.next()){(y=d.value).lon=y.lon+c,y.lat=y.lat+h}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}}else if(a.pasteLocation){var f=8e-8*t.camera.positionCartographic.height;try{for(var m=CW(e._ctrlPosition),g=m.next();!g.done;g=m.next()){var y;(y=g.value).lon=y.lon+f,y.lat=y.lat+f}}catch(e){o={error:e}}finally{try{g&&!g.done&&(s=m.return)&&s.call(m)}finally{if(o)throw o.error}}}e.id=Fm.newGuid(),e._name=u,e.name=u;var _=a.gm.draw(e);e._name=l,e.name=l,b.set(_.graph.id,l),w.push(_.graph)}),this.isRefresh.next(w),this.copy(w,this._viewer,b)}else"html"==e.type||e.type},Object.defineProperty(e.prototype,"pasteLocation",{get:function(){return this._pasteLocation},set:function(e){this._pasteLocation=e,localStorage.setItem("pasteLocation",!0===e?"true":"false")},enumerable:!1,configurable:!0}),e.prototype.paste=function(e,t){return AW(this,void 0,void 0,function(){var i,n;return vW(this,function(r){switch(r.label){case 0:return[4,this.getFromClipbrd()];case 1:if(!(i=r.sent()))return alert("剪切板无内容"),[2];try{n=JSON.parse(i)}catch(e){_W.log("剪切板数据(格式不对): ",i)}return n&&(t?(_W.log("右键粘贴"),this.pastePlot(n,e,this.rightClickPosition)):(_W.log("贴在旁边"),this.pastePlot(n,e)),this.copystr=JSON.stringify(n)),[2]}})})},e.prototype.GetPasateNam=function(e,t){for(var i=0;;){var n=0==i?e:1==i?e+"副本":"".concat(e,"副本(").concat(i,")");if(null==t.find(function(e){return e==n}))return n;i++}},e.prototype.cut=function(){this.copystr=JSON.stringify(this.editItem.toJson()),this.gm.delete(this.editItem)},e.prototype.lock=function(){this.editItem},e.prototype.handleControlPoints=function(e){e.lat=Number(e.lat)+1,e.lgt=Number(e.lat)+1,e.controlPoints=[[e.lgt,e.lat]]},e.prototype.changeLabelStatus=function(e,t){this.isEmptyForLabel=!!e.target.value,t&&(t.isError=!this.isEmptyForLabel)},e.prototype.isAllow=function(){var e=this;this.isEmptyForLabel||this.throwError("this.isEmptyForLabel"),this.gm.graphList.forEach(function(t){for(var i in t.graph.__proto__.__meta__){var n=t.graph.__proto__.__meta__[i];n.isError&&e.throwError(n)}})},e.prototype.throwError=function(e){throw _W.error(e),new Error("属性面板中有属性不合法")},e.prototype.addPoint=function(e,t){var i,n,r=0,o=0,s=0,a=e[t].lon*Math.PI/180,l=e[t].lat*Math.PI/180;t===e.length-1?(i=e[t-1].lon*Math.PI/180,n=e[t-1].lat*Math.PI/180):(i=e[t+1].lon*Math.PI/180,n=e[t+1].lat*Math.PI/180),r=Math.cos(l)*Math.cos(a)+Math.cos(n)*Math.cos(i),o=Math.cos(l)*Math.sin(a)+Math.cos(n)*Math.sin(i),s=Math.sin(l)+Math.sin(n),r/=2,o/=2,s/=2;var u=Math.atan2(o,r),c=Math.atan2(s,Math.sqrt(r*r+o*o)),h={lon:180*u/Math.PI,lat:180*c/Math.PI,alt:e[t].alt},p=t===e.length-1?t:t+1;e.splice(p,0,h)},e.prototype.deletePoint=function(e,t){e.length>2&&e.splice(t,1)},e.prototype.editPoint=function(e){e&&(e.editFlag=!0,e.highLight=!1)},e.prototype.savePoint=function(e){var t=this.gm.editor.currentEditGraph;_W.log("copyPoints.length<minPointNum: ",t),this.copyPoints.length>(null==t?void 0:t.maxPointNum)||this.copyPoints.length<(null==t?void 0:t.minPointNum)?_W.log("坐标参数不符合要求"):(t.ctrlPosition=this.copyPoints,t.initCtls(),t.finish(),t.toEdit(),e&&e.emit())},e.prototype.cancel=function(e){this.copyPoints=[],e&&e.emit()},e.prototype.pasteByMouse=function(e){var t=this;this.pasteHandler||(this.pasteHandler=new Cesium.ScreenSpaceEventHandler(e.scene.canvas)),this.pasteHandler.setInputAction(function(i){if(t.gm.editor.startPickTarget)t.gm.editor.startPickTarget=!1;else{Hf.calculateMouseEvent(i);var n=e.camera.getPickRay(i.position),r=e.scene.globe.pick(n,e.scene);if(!Cesium.defined(r))return t.rightClickPosition.lon=void 0,void(t.rightClickPosition.lat=void 0);var o=e.scene.globe.ellipsoid.cartesianToCartographic(r);t.rightClickPosition.lat=Cesium.Math.toDegrees(o.latitude),t.rightClickPosition.lon=Cesium.Math.toDegrees(o.longitude),t.rightClickPosition.showPasteButton=!0}},Cesium.ScreenSpaceEventType.RIGHT_CLICK)},e.prototype.transformFromTree=function(e){var t=e.map(function(e){var t={};return"folder"!==e.icon?Object.keys(e).forEach(function(i){"entity"!==i&&(t[i]=e[i])}):delete(t=Object.assign({},e)).children,t});return t},e.prototype.plotEnable=function(e){this.gm&&(this.gm.editor.isReadOnly=e)},e}(),wW=function(){this.showPasteButton=!1},xW=__webpack_require__(6763),SW=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},MW=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},PW=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},EW=function(){function e(e){this.rename$=new am,this.itemTreeLocate$=new am,this.startDragTreeNodeInd=-1,this.startDragNodeFlag=!1,this.clearInCtrlList$=new am,this.isLayerCtrlPressed=!1,this.setCurrentNodeListSub$=new am,this.setCrossSelectedNodesSub$=new am,this.previousFolder=null,this.serviceManager=e,Qm.layService=this}return e.prototype.getTreeOptions=function(e){var t,i,n=mN(e.origin);e.parentNode?n.pid=e.parentNode.origin.id:n.pid=0,this.options.push(n);try{for(var r=SW(e.children),o=r.next();!o.done;o=r.next()){var s=o.value;this.getTreeOptions(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}},e.prototype.getNodeByid=function(e,t){var i,n;if(e==t.origin.id)return t;try{for(var r=SW(t.children),o=r.next();!o.done;o=r.next()){var s=o.value,a=this.getNodeByid(e,s);if(a)return a}}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return null},e.prototype.getById=function(e){var t,i;try{for(var n=SW(this.nodes),r=n.next();!r.done;r=n.next()){var o=r.value,s=this.getNodeByid(e,o);if(s)return s}}catch(e){t={error:e}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}},e.prototype.save=function(){var e,t;if(this.options=[],this.nodes&&this.nodes.length)try{for(var i=SW(this.nodes),n=i.next();!n.done;n=i.next()){var r=n.value;this.getTreeOptions(r)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return this.options},e.prototype.reNameElement=function(e){e.origin.lock||("folder"!==e.icon?(xW.log("子节点"),this.editEleName=e.title.trim(),this.selectedEle=e.origin.entity):(xW.log("文件夹"),this.editEleName=e.title.trim(),this.selectedEle=e.origin),!1===e.isChecked&&(e.isChecked=!0))},e.prototype.selectboxtoggle=function(e){this.previousFolder?this.previousFolder===e?this.previousFolder.isChecked=!this.previousFolder.isChecked:(this.previousFolder.isChecked=!1,e.isChecked=!0,this.previousFolder=e):(e.isChecked=!0,this.previousFolder=e)},e.prototype.editElelist=function(e){var t,i,n,r,o,s,a,l;xW.log("ele编辑校验",e);var u=!0,c=[];if("folder"!==e.icon){var h=null===(s=null===(o=e.origin.entity)||void 0===o?void 0:o.name)||void 0===s?void 0:s.trim();xW.log("子节点"),h&&""!==h||(this.serviceManager.message.error("元素名称不能为空"),u=!1,e.isChecked=!1),c=this.getChildnodes();try{for(var p=SW(c),d=p.next();!d.done;d=p.next()){var f=d.value;(null===(a=f.origin.entity)||void 0===a?void 0:a.id)!==this.selectedEle.id&&(null===(l=f.origin.entity)||void 0===l?void 0:l.name.trim())===this.selectedEle.name.trim()&&(this.serviceManager.message.error("元素名称不能重复"),u=!1,e.isChecked=!1)}}catch(e){t={error:e}}finally{try{d&&!d.done&&(i=p.return)&&i.call(p)}finally{if(t)throw t.error}}if(!u)return this.selectedEle.name=this.editEleName.trim(),this.editEleName="",this.selectedEle="",u}else{xW.log("文件夹");var m=e.origin.label.trim();m&&""!==m||(this.serviceManager.message.error("文件夹名称不能为空"),u=!1,e.isChecked=!1);try{for(var g=SW(this.nodes),y=g.next();!y.done;y=g.next()){var _=y.value;_.origin.id!==this.selectedEle.id&&_.origin.label.trim()===this.selectedEle.label.trim()&&(this.serviceManager.message.error("文件夹名称不能重复"),u=!1,e.isChecked=!1)}}catch(e){n={error:e}}finally{try{y&&!y.done&&(r=g.return)&&r.call(g)}finally{if(n)throw n.error}}if(!u)return this.selectedEle.label=this.editEleName.trim(),this.editEleName="",this.selectedEle="",u}return u},e.prototype.getChildnodes=function(){var e,t,i=[];try{for(var n=SW(this.nodes),r=n.next();!r.done;r=n.next()){var o=r.value;o.children.length>0&&i.push.apply(i,PW([],MW(o.children),!1))}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return i},e.prototype.eleAttrNameCheck=function(e){var t=this,i=this.getChildnodes(),n=e.name.trim();if(!n||""===n)return this.serviceManager.message.error("元素名称不能为空"),!0;var r=i.filter(function(t){var i;return(null===(i=t.origin.entity)||void 0===i?void 0:i.id)!==e.id}).find(function(e){var i;if((null===(i=e.origin.entity)||void 0===i?void 0:i.name.trim())===n)return t.serviceManager.message.error("元素名称不能重复"),!0});return!!r},e}(),LW=__webpack_require__(6763),TW=function(){function e(){}return e.prototype.error=function(e){LW.log(e)},e.prototype.success=function(e){LW.log(e)},e}(),OW=__webpack_require__(6763),DW=function(){function e(){this.isVisible=!1,this.isOpenPic=!1,this.isHtmlEditContent=!0,this.picList=[]}return e.prototype.updateImgs=function(){OW.log("this.plotResourceService.picList///",this.picList);var e=document.querySelector(".my-slider");if(OW.log("con",e),e){this.tnsObj&&this.tnsObj.destroy();var t="";this.picList.forEach(function(e){t="".concat(t,'<div style="width: 729.59px;\n height: 452px;"><img style="width:100%;height:100%" src=\'').concat(e.imgPath,"'></div>")}),t="<div id='mytns'>".concat(t,"</div>"),e.innerHTML=t,this.tnsObj=window.tns({container:"#mytns",items:1,swipeAngle:!1,speed:400,navPosition:"",controls:!1})}},e}(),BW=function(){function e(){}return e.strChineseFirstPY="YDYQSXMWZSSXJBYMGCCZQPSSQBYCDSCDQLDYLYBSSJGYZZJJFKCCLZDHWDWZJLJPFYYNWJJTMYHZWZHFLZPPQHGSCYYYNJQYXXGJHHSDSJNKKTMOMLCRXYPSNQSECCQZGGLLYJLMYZZSECYKYYHQWJSSGGYXYZYJWWKDJHYCHMYXJTLXJYQBYXZLDWRDJRWYSRLDZJPCBZJJBRCFTLECZSTZFXXZHTRQHYBDLYCZSSYMMRFMYQZPWWJJYFCRWFDFZQPYDDWYXKYJAWJFFXYPSFTZYHHYZYSWCJYXSCLCXXWZZXNBGNNXBXLZSZSBSGPYSYZDHMDZBQBZCWDZZYYTZHBTSYYBZGNTNXQYWQSKBPHHLXGYBFMJEBJHHGQTJCYSXSTKZHLYCKGLYSMZXYALMELDCCXGZYRJXSDLTYZCQKCNNJWHJTZZCQLJSTSTBNXBTYXCEQXGKWJYFLZQLYHYXSPSFXLMPBYSXXXYDJCZYLLLSJXFHJXPJBTFFYABYXBHZZBJYZLWLCZGGBTSSMDTJZXPTHYQTGLJSCQFZKJZJQNLZWLSLHDZBWJNCJZYZSQQYCQYRZCJJWYBRTWPYFTWEXCSKDZCTBZHYZZYYJXZCFFZZMJYXXSDZZOTTBZLQWFCKSZSXFYRLNYJMBDTHJXSQQCCSBXYYTSYFBXDZTGBCNSLCYZZPSAZYZZSCJCSHZQYDXLBPJLLMQXTYDZXSQJTZPXLCGLQTZWJBHCTSYJSFXYEJJTLBGXSXJMYJQQPFZASYJNTYDJXKJCDJSZCBARTDCLYJQMWNQNCLLLKBYBZZSYHQQLTWLCCXTXLLZNTYLNEWYZYXCZXXGRKRMTCNDNJTSYYSSDQDGHSDBJGHRWRQLYBGLXHLGTGXBQJDZPYJSJYJCTMRNYMGRZJCZGJMZMGXMPRYXKJNYMSGMZJYMKMFXMLDTGFBHCJHKYLPFMDXLQJJSMTQGZSJLQDLDGJYCALCMZCSDJLLNXDJFFFFJCZFMZFFPFKHKGDPSXKTACJDHHZDDCRRCFQYJKQCCWJDXHWJLYLLZGCFCQDSMLZPBJJPLSBCJGGDCKKDEZSQCCKJGCGKDJTJDLZYCXKLQSCGJCLTFPCQCZGWPJDQYZJJBYJHSJDZWGFSJGZKQCCZLLPSPKJGQJHZZLJPLGJGJJTHJJYJZCZMLZLYQBGJWMLJKXZDZNJQSYZMLJLLJKYWXMKJLHSKJGBMCLYYMKXJQLBMLLKMDXXKWYXYSLMLPSJQQJQXYXFJTJDXMXXLLCXQBSYJBGWYMBGGBCYXPJYGPEPFGDJGBHBNSQJYZJKJKHXQFGQZKFHYGKHDKLLSDJQXPQYKYBNQSXQNSZSWHBSXWHXWBZZXDMNSJBSBKBBZKLYLXGWXDRWYQZMYWSJQLCJXXJXKJEQXSCYETLZHLYYYSDZPAQYZCMTLSHTZCFYZYXYLJSDCJQAGYSLCQLYYYSHMRQQKLDXZSCSSSYDYCJYSFSJBFRSSZQSBXXPXJYSDRCKGJLGDKZJZBDKTCSYQPYHSTCLDJDHMXMCGXYZHJDDTMHLTXZXYLYMOHYJCLTYFBQQXPFBDFHHTKSQHZYYWCNXXCRWHOWGYJLEGWDQCWGFJYCSNTMYTOLBYGWQWESJPWNMLRYDZSZTXYQPZGCWXHNGPYXSHMYQJXZTDPPBFYHZHTJYFDZWKGKZBLDNTSXHQEEGZZYLZMMZYJZGXZXKHKSTXNXXWYLYAPSTHXDWHZYMPXAGKYDXBHNHXKDPJNMYHYLPMGOCSLNZHKXXLPZZLBMLSFBHHGYGYYGGBHSCYAQTYWLXTZQCEZYDQDQMMHTKLLSZHLSJZWFYHQSWSCWLQAZYNYTLSXTHAZNKZZSZZLAXXZWWCTGQQTDDYZTCCHYQZFLXPSLZYGPZSZNGLNDQTBDLXGTCTAJDKYWNSYZLJHHZZCWNYYZYWMHYCHHYXHJKZWSXHZYXLYSKQYSPSLYZWMYPPKBYGLKZHTYXAXQSYSHXASMCHKDSCRSWJPWXSGZJLWWSCHSJHSQNHCSEGNDAQTBAALZZMSSTDQJCJKTSCJAXPLGGXHHGXXZCXPDMMHLDGTYBYSJMXHMRCPXXJZCKZXSHMLQXXTTHXWZFKHCCZDYTCJYXQHLXDHYPJQXYLSYYDZOZJNYXQEZYSQYAYXWYPDGXDDXSPPYZNDLTWRHXYDXZZJHTCXMCZLHPYYYYMHZLLHNXMYLLLMDCPPXHMXDKYCYRDLTXJCHHZZXZLCCLYLNZSHZJZZLNNRLWHYQSNJHXYNTTTKYJPYCHHYEGKCTTWLGQRLGGTGTYGYHPYHYLQYQGCWYQKPYYYTTTTLHYHLLTYTTSPLKYZXGZWGPYDSSZZDQXSKCQNMJJZZBXYQMJRTFFBTKHZKBXLJJKDXJTLBWFZPPTKQTZTGPDGNTPJYFALQMKGXBDCLZFHZCLLLLADPMXDJHLCCLGYHDZFGYDDGCYYFGYDXKSSEBDHYKDKDKHNAXXYBPBYYHXZQGAFFQYJXDMLJCSQZLLPCHBSXGJYNDYBYQSPZWJLZKSDDTACTBXZDYZYPJZQSJNKKTKNJDJGYYPGTLFYQKASDNTCYHBLWDZHBBYDWJRYGKZYHEYYFJMSDTYFZJJHGCXPLXHLDWXXJKYTCYKSSSMTWCTTQZLPBSZDZWZXGZAGYKTYWXLHLSPBCLLOQMMZSSLCMBJCSZZKYDCZJGQQDSMCYTZQQLWZQZXSSFPTTFQMDDZDSHDTDWFHTDYZJYQJQKYPBDJYYXTLJHDRQXXXHAYDHRJLKLYTWHLLRLLRCXYLBWSRSZZSYMKZZHHKYHXKSMDSYDYCJPBZBSQLFCXXXNXKXWYWSDZYQOGGQMMYHCDZTTFJYYBGSTTTYBYKJDHKYXBELHTYPJQNFXFDYKZHQKZBYJTZBXHFDXKDASWTAWAJLDYJSFHBLDNNTNQJTJNCHXFJSRFWHZFMDRYJYJWZPDJKZYJYMPCYZNYNXFBYTFYFWYGDBNZZZDNYTXZEMMQBSQEHXFZMBMFLZZSRXYMJGSXWZJSPRYDJSJGXHJJGLJJYNZZJXHGXKYMLPYYYCXYTWQZSWHWLYRJLPXSLSXMFSWWKLCTNXNYNPSJSZHDZEPTXMYYWXYYSYWLXJQZQXZDCLEEELMCPJPCLWBXSQHFWWTFFJTNQJHJQDXHWLBYZNFJLALKYYJLDXHHYCSTYYWNRJYXYWTRMDRQHWQCMFJDYZMHMYYXJWMYZQZXTLMRSPWWCHAQBXYGZYPXYYRRCLMPYMGKSJSZYSRMYJSNXTPLNBAPPYPYLXYYZKYNLDZYJZCZNNLMZHHARQMPGWQTZMXXMLLHGDZXYHXKYXYCJMFFYYHJFSBSSQLXXNDYCANNMTCJCYPRRNYTYQNYYMBMSXNDLYLYSLJRLXYSXQMLLYZLZJJJKYZZCSFBZXXMSTBJGNXYZHLXNMCWSCYZYFZLXBRNNNYLBNRTGZQYSATSWRYHYJZMZDHZGZDWYBSSCSKXSYHYTXXGCQGXZZSHYXJSCRHMKKBXCZJYJYMKQHZJFNBHMQHYSNJNZYBKNQMCLGQHWLZNZSWXKHLJHYYBQLBFCDSXDLDSPFZPSKJYZWZXZDDXJSMMEGJSCSSMGCLXXKYYYLNYPWWWGYDKZJGGGZGGSYCKNJWNJPCXBJJTQTJWDSSPJXZXNZXUMELPXFSXTLLXCLJXJJLJZXCTPSWXLYDHLYQRWHSYCSQYYBYAYWJJJQFWQCQQCJQGXALDBZZYJGKGXPLTZYFXJLTPADKYQHPMATLCPDCKBMTXYBHKLENXDLEEGQDYMSAWHZMLJTWYGXLYQZLJEEYYBQQFFNLYXRDSCTGJGXYYNKLLYQKCCTLHJLQMKKZGCYYGLLLJDZGYDHZWXPYSJBZKDZGYZZHYWYFQYTYZSZYEZZLYMHJJHTSMQWYZLKYYWZCSRKQYTLTDXWCTYJKLWSQZWBDCQYNCJSRSZJLKCDCDTLZZZACQQZZDDXYPLXZBQJYLZLLLQDDZQJYJYJZYXNYYYNYJXKXDAZWYRDLJYYYRJLXLLDYXJCYWYWNQCCLDDNYYYNYCKCZHXXCCLGZQJGKWPPCQQJYSBZZXYJSQPXJPZBSBDSFNSFPZXHDWZTDWPPTFLZZBZDMYYPQJRSDZSQZSQXBDGCPZSWDWCSQZGMDHZXMWWFYBPDGPHTMJTHZSMMBGZMBZJCFZWFZBBZMQCFMBDMCJXLGPNJBBXGYHYYJGPTZGZMQBQTCGYXJXLWZKYDPDYMGCFTPFXYZTZXDZXTGKMTYBBCLBJASKYTSSQYYMSZXFJEWLXLLSZBQJJJAKLYLXLYCCTSXMCWFKKKBSXLLLLJYXTYLTJYYTDPJHNHNNKBYQNFQYYZBYYESSESSGDYHFHWTCJBSDZZTFDMXHCNJZYMQWSRYJDZJQPDQBBSTJGGFBKJBXTGQHNGWJXJGDLLTHZHHYYYYYYSXWTYYYCCBDBPYPZYCCZYJPZYWCBDLFWZCWJDXXHYHLHWZZXJTCZLCDPXUJCZZZLYXJJTXPHFXWPYWXZPTDZZBDZCYHJHMLXBQXSBYLRDTGJRRCTTTHYTCZWMXFYTWWZCWJWXJYWCSKYBZSCCTZQNHXNWXXKHKFHTSWOCCJYBCMPZZYKBNNZPBZHHZDLSYDDYTYFJPXYNGFXBYQXCBHXCPSXTYZDMKYSNXSXLHKMZXLYHDHKWHXXSSKQYHHCJYXGLHZXCSNHEKDTGZXQYPKDHEXTYKCNYMYYYPKQYYYKXZLTHJQTBYQHXBMYHSQCKWWYLLHCYYLNNEQXQWMCFBDCCMLJGGXDQKTLXKGNQCDGZJWYJJLYHHQTTTNWCHMXCXWHWSZJYDJCCDBQCDGDNYXZTHCQRXCBHZTQCBXWGQWYYBXHMBYMYQTYEXMQKYAQYRGYZSLFYKKQHYSSQYSHJGJCNXKZYCXSBXYXHYYLSTYCXQTHYSMGSCPMMGCCCCCMTZTASMGQZJHKLOSQYLSWTMXSYQKDZLJQQYPLSYCZTCQQPBBQJZCLPKHQZYYXXDTDDTSJCXFFLLCHQXMJLWCJCXTSPYCXNDTJSHJWXDQQJSKXYAMYLSJHMLALYKXCYYDMNMDQMXMCZNNCYBZKKYFLMCHCMLHXRCJJHSYLNMTJZGZGYWJXSRXCWJGJQHQZDQJDCJJZKJKGDZQGJJYJYLXZXXCDQHHHEYTMHLFSBDJSYYSHFYSTCZQLPBDRFRZTZYKYWHSZYQKWDQZRKMSYNBCRXQBJYFAZPZZEDZCJYWBCJWHYJBQSZYWRYSZPTDKZPFPBNZTKLQYHBBZPNPPTYZZYBQNYDCPJMMCYCQMCYFZZDCMNLFPBPLNGQJTBTTNJZPZBBZNJKLJQYLNBZQHKSJZNGGQSZZKYXSHPZSNBCGZKDDZQANZHJKDRTLZLSWJLJZLYWTJNDJZJHXYAYNCBGTZCSSQMNJPJYTYSWXZFKWJQTKHTZPLBHSNJZSYZBWZZZZLSYLSBJHDWWQPSLMMFBJDWAQYZTCJTBNNWZXQXCDSLQGDSDPDZHJTQQPSWLYYJZLGYXYZLCTCBJTKTYCZJTQKBSJLGMGZDMCSGPYNJZYQYYKNXRPWSZXMTNCSZZYXYBYHYZAXYWQCJTLLCKJJTJHGDXDXYQYZZBYWDLWQCGLZGJGQRQZCZSSBCRPCSKYDZNXJSQGXSSJMYDNSTZTPBDLTKZWXQWQTZEXNQCZGWEZKSSBYBRTSSSLCCGBPSZQSZLCCGLLLZXHZQTHCZMQGYZQZNMCOCSZJMMZSQPJYGQLJYJPPLDXRGZYXCCSXHSHGTZNLZWZKJCXTCFCJXLBMQBCZZWPQDNHXLJCTHYZLGYLNLSZZPCXDSCQQHJQKSXZPBAJYEMSMJTZDXLCJYRYYNWJBNGZZTMJXLTBSLYRZPYLSSCNXPHLLHYLLQQZQLXYMRSYCXZLMMCZLTZSDWTJJLLNZGGQXPFSKYGYGHBFZPDKMWGHCXMSGDXJMCJZDYCABXJDLNBCDQYGSKYDQTXDJJYXMSZQAZDZFSLQXYJSJZYLBTXXWXQQZBJZUFBBLYLWDSLJHXJYZJWTDJCZFQZQZZDZSXZZQLZCDZFJHYSPYMPQZMLPPLFFXJJNZZYLSJEYQZFPFZKSYWJJJHRDJZZXTXXGLGHYDXCSKYSWMMZCWYBAZBJKSHFHJCXMHFQHYXXYZFTSJYZFXYXPZLCHMZMBXHZZSXYFYMNCWDABAZLXKTCSHHXKXJJZJSTHYGXSXYYHHHJWXKZXSSBZZWHHHCWTZZZPJXSNXQQJGZYZYWLLCWXZFXXYXYHXMKYYSWSQMNLNAYCYSPMJKHWCQHYLAJJMZXHMMCNZHBHXCLXTJPLTXYJHDYYLTTXFSZHYXXSJBJYAYRSMXYPLCKDUYHLXRLNLLSTYZYYQYGYHHSCCSMZCTZQXKYQFPYYRPFFLKQUNTSZLLZMWWTCQQYZWTLLMLMPWMBZSSTZRBPDDTLQJJBXZCSRZQQYGWCSXFWZLXCCRSZDZMCYGGDZQSGTJSWLJMYMMZYHFBJDGYXCCPSHXNZCSBSJYJGJMPPWAFFYFNXHYZXZYLREMZGZCYZSSZDLLJCSQFNXZKPTXZGXJJGFMYYYSNBTYLBNLHPFZDCYFBMGQRRSSSZXYSGTZRNYDZZCDGPJAFJFZKNZBLCZSZPSGCYCJSZLMLRSZBZZLDLSLLYSXSQZQLYXZLSKKBRXBRBZCYCXZZZEEYFGKLZLYYHGZSGZLFJHGTGWKRAAJYZKZQTSSHJJXDCYZUYJLZYRZDQQHGJZXSSZBYKJPBFRTJXLLFQWJHYLQTYMBLPZDXTZYGBDHZZRBGXHWNJTJXLKSCFSMWLSDQYSJTXKZSCFWJLBXFTZLLJZLLQBLSQMQQCGCZFPBPHZCZJLPYYGGDTGWDCFCZQYYYQYSSCLXZSKLZZZGFFCQNWGLHQYZJJCZLQZZYJPJZZBPDCCMHJGXDQDGDLZQMFGPSYTSDYFWWDJZJYSXYYCZCYHZWPBYKXRYLYBHKJKSFXTZJMMCKHLLTNYYMSYXYZPYJQYCSYCWMTJJKQYRHLLQXPSGTLYYCLJSCPXJYZFNMLRGJJTYZBXYZMSJYJHHFZQMSYXRSZCWTLRTQZSSTKXGQKGSPTGCZNJSJCQCXHMXGGZTQYDJKZDLBZSXJLHYQGGGTHQSZPYHJHHGYYGKGGCWJZZYLCZLXQSFTGZSLLLMLJSKCTBLLZZSZMMNYTPZSXQHJCJYQXYZXZQZCPSHKZZYSXCDFGMWQRLLQXRFZTLYSTCTMJCXJJXHJNXTNRZTZFQYHQGLLGCXSZSJDJLJCYDSJTLNYXHSZXCGJZYQPYLFHDJSBPCCZHJJJQZJQDYBSSLLCMYTTMQTBHJQNNYGKYRQYQMZGCJKPDCGMYZHQLLSLLCLMHOLZGDYYFZSLJCQZLYLZQJESHNYLLJXGJXLYSYYYXNBZLJSSZCQQCJYLLZLTJYLLZLLBNYLGQCHXYYXOXCXQKYJXXXYKLXSXXYQXCYKQXQCSGYXXYQXYGYTQOHXHXPYXXXULCYEYCHZZCBWQBBWJQZSCSZSSLZYLKDESJZWMYMCYTSDSXXSCJPQQSQYLYYZYCMDJDZYWCBTJSYDJKCYDDJLBDJJSODZYSYXQQYXDHHGQQYQHDYXWGMMMAJDYBBBPPBCMUUPLJZSMTXERXJMHQNUTPJDCBSSMSSSTKJTSSMMTRCPLZSZMLQDSDMJMQPNQDXCFYNBFSDQXYXHYAYKQYDDLQYYYSSZBYDSLNTFQTZQPZMCHDHCZCWFDXTMYQSPHQYYXSRGJCWTJTZZQMGWJJTJHTQJBBHWZPXXHYQFXXQYWYYHYSCDYDHHQMNMTMWCPBSZPPZZGLMZFOLLCFWHMMSJZTTDHZZYFFYTZZGZYSKYJXQYJZQBHMBZZLYGHGFMSHPZFZSNCLPBQSNJXZSLXXFPMTYJYGBXLLDLXPZJYZJYHHZCYWHJYLSJEXFSZZYWXKZJLUYDTMLYMQJPWXYHXSKTQJEZRPXXZHHMHWQPWQLYJJQJJZSZCPHJLCHHNXJLQWZJHBMZYXBDHHYPZLHLHLGFWLCHYYTLHJXCJMSCPXSTKPNHQXSRTYXXTESYJCTLSSLSTDLLLWWYHDHRJZSFGXTSYCZYNYHTDHWJSLHTZDQDJZXXQHGYLTZPHCSQFCLNJTCLZPFSTPDYNYLGMJLLYCQHYSSHCHYLHQYQTMZYPBYWRFQYKQSYSLZDQJMPXYYSSRHZJNYWTQDFZBWWTWWRXCWHGYHXMKMYYYQMSMZHNGCEPMLQQMTCWCTMMPXJPJJHFXYYZSXZHTYBMSTSYJTTQQQYYLHYNPYQZLCYZHZWSMYLKFJXLWGXYPJYTYSYXYMZCKTTWLKSMZSYLMPWLZWXWQZSSAQSYXYRHSSNTSRAPXCPWCMGDXHXZDZYFJHGZTTSBJHGYZSZYSMYCLLLXBTYXHBBZJKSSDMALXHYCFYGMQYPJYCQXJLLLJGSLZGQLYCJCCZOTYXMTMTTLLWTGPXYMZMKLPSZZZXHKQYSXCTYJZYHXSHYXZKXLZWPSQPYHJWPJPWXQQYLXSDHMRSLZZYZWTTCYXYSZZSHBSCCSTPLWSSCJCHNLCGCHSSPHYLHFHHXJSXYLLNYLSZDHZXYLSXLWZYKCLDYAXZCMDDYSPJTQJZLNWQPSSSWCTSTSZLBLNXSMNYYMJQBQHRZWTYYDCHQLXKPZWBGQYBKFCMZWPZLLYYLSZYDWHXPSBCMLJBSCGBHXLQHYRLJXYSWXWXZSLDFHLSLYNJLZYFLYJYCDRJLFSYZFSLLCQYQFGJYHYXZLYLMSTDJCYHBZLLNWLXXYGYYHSMGDHXXHHLZZJZXCZZZCYQZFNGWPYLCPKPYYPMCLQKDGXZGGWQBDXZZKZFBXXLZXJTPJPTTBYTSZZDWSLCHZHSLTYXHQLHYXXXYYZYSWTXZKHLXZXZPYHGCHKCFSYHUTJRLXFJXPTZTWHPLYXFCRHXSHXKYXXYHZQDXQWULHYHMJTBFLKHTXCWHJFWJCFPQRYQXCYYYQYGRPYWSGSUNGWCHKZDXYFLXXHJJBYZWTSXXNCYJJYMSWZJQRMHXZWFQSYLZJZGBHYNSLBGTTCSYBYXXWXYHXYYXNSQYXMQYWRGYQLXBBZLJSYLPSYTJZYHYZAWLRORJMKSCZJXXXYXCHDYXRYXXJDTSQFXLYLTSFFYXLMTYJMJUYYYXLTZCSXQZQHZXLYYXZHDNBRXXXJCTYHLBRLMBRLLAXKYLLLJLYXXLYCRYLCJTGJCMTLZLLCYZZPZPCYAWHJJFYBDYYZSMPCKZDQYQPBPCJPDCYZMDPBCYYDYCNNPLMTMLRMFMMGWYZBSJGYGSMZQQQZTXMKQWGXLLPJGZBQCDJJJFPKJKCXBLJMSWMDTQJXLDLPPBXCWRCQFBFQJCZAHZGMYKPHYYHZYKNDKZMBPJYXPXYHLFPNYYGXJDBKXNXHJMZJXSTRSTLDXSKZYSYBZXJLXYSLBZYSLHXJPFXPQNBYLLJQKYGZMCYZZYMCCSLCLHZFWFWYXZMWSXTYNXJHPYYMCYSPMHYSMYDYSHQYZCHMJJMZCAAGCFJBBHPLYZYLXXSDJGXDHKXXTXXNBHRMLYJSLTXMRHNLXQJXYZLLYSWQGDLBJHDCGJYQYCMHWFMJYBMBYJYJWYMDPWHXQLDYGPDFXXBCGJSPCKRSSYZJMSLBZZJFLJJJLGXZGYXYXLSZQYXBEXYXHGCXBPLDYHWETTWWCJMBTXCHXYQXLLXFLYXLLJLSSFWDPZSMYJCLMWYTCZPCHQEKCQBWLCQYDPLQPPQZQFJQDJHYMMCXTXDRMJWRHXCJZYLQXDYYNHYYHRSLSRSYWWZJYMTLTLLGTQCJZYABTCKZCJYCCQLJZQXALMZYHYWLWDXZXQDLLQSHGPJFJLJHJABCQZDJGTKHSSTCYJLPSWZLXZXRWGLDLZRLZXTGSLLLLZLYXXWGDZYGBDPHZPBRLWSXQBPFDWOFMWHLYPCBJCCLDMBZPBZZLCYQXLDOMZBLZWPDWYYGDSTTHCSQSCCRSSSYSLFYBFNTYJSZDFNDPDHDZZMBBLSLCMYFFGTJJQWFTMTPJWFNLBZCMMJTGBDZLQLPYFHYYMJYLSDCHDZJWJCCTLJCLDTLJJCPDDSQDSSZYBNDBJLGGJZXSXNLYCYBJXQYCBYLZCFZPPGKCXZDZFZTJJFJSJXZBNZYJQTTYJYHTYCZHYMDJXTTMPXSPLZCDWSLSHXYPZGTFMLCJTYCBPMGDKWYCYZCDSZZYHFLYCTYGWHKJYYLSJCXGYWJCBLLCSNDDBTZBSCLYZCZZSSQDLLMQYYHFSLQLLXFTYHABXGWNYWYYPLLSDLDLLBJCYXJZMLHLJDXYYQYTDLLLBUGBFDFBBQJZZMDPJHGCLGMJJPGAEHHBWCQXAXHHHZCHXYPHJAXHLPHJPGPZJQCQZGJJZZUZDMQYYBZZPHYHYBWHAZYJHYKFGDPFQSDLZMLJXKXGALXZDAGLMDGXMWZQYXXDXXPFDMMSSYMPFMDMMKXKSYZYSHDZKXSYSMMZZZMSYDNZZCZXFPLSTMZDNMXCKJMZTYYMZMZZMSXHHDCZJEMXXKLJSTLWLSQLYJZLLZJSSDPPMHNLZJCZYHMXXHGZCJMDHXTKGRMXFWMCGMWKDTKSXQMMMFZZYDKMSCLCMPCGMHSPXQPZDSSLCXKYXTWLWJYAHZJGZQMCSNXYYMMPMLKJXMHLMLQMXCTKZMJQYSZJSYSZHSYJZJCDAJZYBSDQJZGWZQQXFKDMSDJLFWEHKZQKJPEYPZYSZCDWYJFFMZZYLTTDZZEFMZLBNPPLPLPEPSZALLTYLKCKQZKGENQLWAGYXYDPXLHSXQQWQCQXQCLHYXXMLYCCWLYMQYSKGCHLCJNSZKPYZKCQZQLJPDMDZHLASXLBYDWQLWDNBQCRYDDZTJYBKBWSZDXDTNPJDTCTQDFXQQMGNXECLTTBKPWSLCTYQLPWYZZKLPYGZCQQPLLKCCYLPQMZCZQCLJSLQZDJXLDDHPZQDLJJXZQDXYZQKZLJCYQDYJPPYPQYKJYRMPCBYMCXKLLZLLFQPYLLLMBSGLCYSSLRSYSQTMXYXZQZFDZUYSYZTFFMZZSMZQHZSSCCMLYXWTPZGXZJGZGSJSGKDDHTQGGZLLBJDZLCBCHYXYZHZFYWXYZYMSDBZZYJGTSMTFXQYXQSTDGSLNXDLRYZZLRYYLXQHTXSRTZNGZXBNQQZFMYKMZJBZYMKBPNLYZPBLMCNQYZZZSJZHJCTZKHYZZJRDYZHNPXGLFZTLKGJTCTSSYLLGZRZBBQZZKLPKLCZYSSUYXBJFPNJZZXCDWXZYJXZZDJJKGGRSRJKMSMZJLSJYWQSKYHQJSXPJZZZLSNSHRNYPZTWCHKLPSRZLZXYJQXQKYSJYCZTLQZYBBYBWZPQDWWYZCYTJCJXCKCWDKKZXSGKDZXWWYYJQYYTCYTDLLXWKCZKKLCCLZCQQDZLQLCSFQCHQHSFSMQZZLNBJJZBSJHTSZDYSJQJPDLZCDCWJKJZZLPYCGMZWDJJBSJQZSYZYHHXJPBJYDSSXDZNCGLQMBTSFSBPDZDLZNFGFJGFSMPXJQLMBLGQCYYXBQKDJJQYRFKZTJDHCZKLBSDZCFJTPLLJGXHYXZCSSZZXSTJYGKGCKGYOQXJPLZPBPGTGYJZGHZQZZLBJLSQFZGKQQJZGYCZBZQTLDXRJXBSXXPZXHYZYCLWDXJJHXMFDZPFZHQHQMQGKSLYHTYCGFRZGNQXCLPDLBZCSCZQLLJBLHBZCYPZZPPDYMZZSGYHCKCPZJGSLJLNSCDSLDLXBMSTLDDFJMKDJDHZLZXLSZQPQPGJLLYBDSZGQLBZLSLKYYHZTTNTJYQTZZPSZQZTLLJTYYLLQLLQYZQLBDZLSLYYZYMDFSZSNHLXZNCZQZPBWSKRFBSYZMTHBLGJPMCZZLSTLXSHTCSYZLZBLFEQHLXFLCJLYLJQCBZLZJHHSSTBRMHXZHJZCLXFNBGXGTQJCZTMSFZKJMSSNXLJKBHSJXNTNLZDNTLMSJXGZJYJCZXYJYJWRWWQNZTNFJSZPZSHZJFYRDJSFSZJZBJFZQZZHZLXFYSBZQLZSGYFTZDCSZXZJBQMSZKJRHYJZCKMJKHCHGTXKXQGLXPXFXTRTYLXJXHDTSJXHJZJXZWZLCQSBTXWXGXTXXHXFTSDKFJHZYJFJXRZSDLLLTQSQQZQWZXSYQTWGWBZCGZLLYZBCLMQQTZHZXZXLJFRMYZFLXYSQXXJKXRMQDZDMMYYBSQBHGZMWFWXGMXLZPYYTGZYCCDXYZXYWGSYJYZNBHPZJSQSYXSXRTFYZGRHZTXSZZTHCBFCLSYXZLZQMZLMPLMXZJXSFLBYZMYQHXJSXRXSQZZZSSLYFRCZJRCRXHHZXQYDYHXSJJHZCXZBTYNSYSXJBQLPXZQPYMLXZKYXLXCJLCYSXXZZLXDLLLJJYHZXGYJWKJRWYHCPSGNRZLFZWFZZNSXGXFLZSXZZZBFCSYJDBRJKRDHHGXJLJJTGXJXXSTJTJXLYXQFCSGSWMSBCTLQZZWLZZKXJMLTMJYHSDDBXGZHDLBMYJFRZFSGCLYJBPMLYSMSXLSZJQQHJZFXGFQFQBPXZGYYQXGZTCQWYLTLGWSGWHRLFSFGZJMGMGBGTJFSYZZGZYZAFLSSPMLPFLCWBJZCLJJMZLPJJLYMQDMYYYFBGYGYZMLYZDXQYXRQQQHSYYYQXYLJTYXFSFSLLGNQCYHYCWFHCCCFXPYLYPLLZYXXXXXKQHHXSHJZCFZSCZJXCPZWHHHHHAPYLQALPQAFYHXDYLUKMZQGGGDDESRNNZLTZGCHYPPYSQJJHCLLJTOLNJPZLJLHYMHEYDYDSQYCDDHGZUNDZCLZYZLLZNTNYZGSLHSLPJJBDGWXPCDUTJCKLKCLWKLLCASSTKZZDNQNTTLYYZSSYSSZZRYLJQKCQDHHCRXRZYDGRGCWCGZQFFFPPJFZYNAKRGYWYQPQXXFKJTSZZXSWZDDFBBXTBGTZKZNPZZPZXZPJSZBMQHKCYXYLDKLJNYPKYGHGDZJXXEAHPNZKZTZCMXCXMMJXNKSZQNMNLWBWWXJKYHCPSTMCSQTZJYXTPCTPDTNNPGLLLZSJLSPBLPLQHDTNJNLYYRSZFFJFQWDPHZDWMRZCCLODAXNSSNYZRESTYJWJYJDBCFXNMWTTBYLWSTSZGYBLJPXGLBOCLHPCBJLTMXZLJYLZXCLTPNCLCKXTPZJSWCYXSFYSZDKNTLBYJCYJLLSTGQCBXRYZXBXKLYLHZLQZLNZCXWJZLJZJNCJHXMNZZGJZZXTZJXYCYYCXXJYYXJJXSSSJSTSSTTPPGQTCSXWZDCSYFPTFBFHFBBLZJCLZZDBXGCXLQPXKFZFLSYLTUWBMQJHSZBMDDBCYSCCLDXYCDDQLYJJWMQLLCSGLJJSYFPYYCCYLTJANTJJPWYCMMGQYYSXDXQMZHSZXPFTWWZQSWQRFKJLZJQQYFBRXJHHFWJJZYQAZMYFRHCYYBYQWLPEXCCZSTYRLTTDMQLYKMBBGMYYJPRKZNPBSXYXBHYZDJDNGHPMFSGMWFZMFQMMBCMZZCJJLCNUXYQLMLRYGQZCYXZLWJGCJCGGMCJNFYZZJHYCPRRCMTZQZXHFQGTJXCCJEAQCRJYHPLQLSZDJRBCQHQDYRHYLYXJSYMHZYDWLDFRYHBPYDTSSCNWBXGLPZMLZZTQSSCPJMXXYCSJYTYCGHYCJWYRXXLFEMWJNMKLLSWTXHYYYNCMMCWJDQDJZGLLJWJRKHPZGGFLCCSCZMCBLTBHBQJXQDSPDJZZGKGLFQYWBZYZJLTSTDHQHCTCBCHFLQMPWDSHYYTQWCNZZJTLBYMBPDYYYXSQKXWYYFLXXNCWCXYPMAELYKKJMZZZBRXYYQJFLJPFHHHYTZZXSGQQMHSPGDZQWBWPJHZJDYSCQWZKTXXSQLZYYMYSDZGRXCKKUJLWPYSYSCSYZLRMLQSYLJXBCXTLWDQZPCYCYKPPPNSXFYZJJRCEMHSZMSXLXGLRWGCSTLRSXBZGBZGZTCPLUJLSLYLYMTXMTZPALZXPXJTJWTCYYZLBLXBZLQMYLXPGHDSLSSDMXMBDZZSXWHAMLCZCPJMCNHJYSNSYGCHSKQMZZQDLLKABLWJXSFMOCDXJRRLYQZKJMYBYQLYHETFJZFRFKSRYXFJTWDSXXSYSQJYSLYXWJHSNLXYYXHBHAWHHJZXWMYLJCSSLKYDZTXBZSYFDXGXZJKHSXXYBSSXDPYNZWRPTQZCZENYGCXQFJYKJBZMLJCMQQXUOXSLYXXLYLLJDZBTYMHPFSTTQQWLHOKYBLZZALZXQLHZWRRQHLSTMYPYXJJXMQSJFNBXYXYJXXYQYLTHYLQYFMLKLJTMLLHSZWKZHLJMLHLJKLJSTLQXYLMBHHLNLZXQJHXCFXXLHYHJJGBYZZKBXSCQDJQDSUJZYYHZHHMGSXCSYMXFEBCQWWRBPYYJQTYZCYQYQQZYHMWFFHGZFRJFCDPXNTQYZPDYKHJLFRZXPPXZDBBGZQSTLGDGYLCQMLCHHMFYWLZYXKJLYPQHSYWMQQGQZMLZJNSQXJQSYJYCBEHSXFSZPXZWFLLBCYYJDYTDTHWZSFJMQQYJLMQXXLLDTTKHHYBFPWTYYSQQWNQWLGWDEBZWCMYGCULKJXTMXMYJSXHYBRWFYMWFRXYQMXYSZTZZTFYKMLDHQDXWYYNLCRYJBLPSXCXYWLSPRRJWXHQYPHTYDNXHHMMYWYTZCSQMTSSCCDALWZTCPQPYJLLQZYJSWXMZZMMYLMXCLMXCZMXMZSQTZPPQQBLPGXQZHFLJJHYTJSRXWZXSCCDLXTYJDCQJXSLQYCLZXLZZXMXQRJMHRHZJBHMFLJLMLCLQNLDXZLLLPYPSYJYSXCQQDCMQJZZXHNPNXZMEKMXHYKYQLXSXTXJYYHWDCWDZHQYYBGYBCYSCFGPSJNZDYZZJZXRZRQJJYMCANYRJTLDPPYZBSTJKXXZYPFDWFGZZRPYMTNGXZQBYXNBUFNQKRJQZMJEGRZGYCLKXZDSKKNSXKCLJSPJYYZLQQJYBZSSQLLLKJXTBKTYLCCDDBLSPPFYLGYDTZJYQGGKQTTFZXBDKTYYHYBBFYTYYBCLPDYTGDHRYRNJSPTCSNYJQHKLLLZSLYDXXWBCJQSPXBPJZJCJDZFFXXBRMLAZHCSNDLBJDSZBLPRZTSWSBXBCLLXXLZDJZSJPYLYXXYFTFFFBHJJXGBYXJPMMMPSSJZJMTLYZJXSWXTYLEDQPJMYGQZJGDJLQJWJQLLSJGJGYGMSCLJJXDTYGJQJQJCJZCJGDZZSXQGSJGGCXHQXSNQLZZBXHSGZXCXYLJXYXYYDFQQJHJFXDHCTXJYRXYSQTJXYEFYYSSYYJXNCYZXFXMSYSZXYYSCHSHXZZZGZZZGFJDLTYLNPZGYJYZYYQZPBXQBDZTZCZYXXYHHSQXSHDHGQHJHGYWSZTMZMLHYXGEBTYLZKQWYTJZRCLEKYSTDBCYKQQSAYXCJXWWGSBHJYZYDHCSJKQCXSWXFLTYNYZPZCCZJQTZWJQDZZZQZLJJXLSBHPYXXPSXSHHEZTXFPTLQYZZXHYTXNCFZYYHXGNXMYWXTZSJPTHHGYMXMXQZXTSBCZYJYXXTYYZYPCQLMMSZMJZZLLZXGXZAAJZYXJMZXWDXZSXZDZXLEYJJZQBHZWZZZQTZPSXZTDSXJJJZNYAZPHXYYSRNQDTHZHYYKYJHDZXZLSWCLYBZYECWCYCRYLCXNHZYDZYDYJDFRJJHTRSQTXYXJRJHOJYNXELXSFSFJZGHPZSXZSZDZCQZBYYKLSGSJHCZSHDGQGXYZGXCHXZJWYQWGYHKSSEQZZNDZFKWYSSTCLZSTSYMCDHJXXYWEYXCZAYDMPXMDSXYBSQMJMZJMTZQLPJYQZCGQHXJHHLXXHLHDLDJQCLDWBSXFZZYYSCHTYTYYBHECXHYKGJPXHHYZJFXHWHBDZFYZBCAPNPGNYDMSXHMMMMAMYNBYJTMPXYYMCTHJBZYFCGTYHWPHFTWZZEZSBZEGPFMTSKFTYCMHFLLHGPZJXZJGZJYXZSBBQSCZZLZCCSTPGXMJSFTCCZJZDJXCYBZLFCJSYZFGSZLYBCWZZBYZDZYPSWYJZXZBDSYUXLZZBZFYGCZXBZHZFTPBGZGEJBSTGKDMFHYZZJHZLLZZGJQZLSFDJSSCBZGPDLFZFZSZYZYZSYGCXSNXXCHCZXTZZLJFZGQSQYXZJQDCCZTQCDXZJYQJQCHXZTDLGSCXZSYQJQTZWLQDQZTQCHQQJZYEZZZPBWKDJFCJPZTYPQYQTTYNLMBDKTJZPQZQZZFPZSBNJLGYJDXJDZZKZGQKXDLPZJTCJDQBXDJQJSTCKNXBXZMSLYJCQMTJQWWCJQNJNLLLHJCWQTBZQYDZCZPZZDZYDDCYZZZCCJTTJFZDPRRTZTJDCQTQZDTJNPLZBCLLCTZSXKJZQZPZLBZRBTJDCXFCZDBCCJJLTQQPLDCGZDBBZJCQDCJWYNLLZYZCCDWLLXWZLXRXNTQQCZXKQLSGDFQTDDGLRLAJJTKUYMKQLLTZYTDYYCZGJWYXDXFRSKSTQTENQMRKQZHHQKDLDAZFKYPBGGPZREBZZYKZZSPEGJXGYKQZZZSLYSYYYZWFQZYLZZLZHWCHKYPQGNPGBLPLRRJYXCCSYYHSFZFYBZYYTGZXYLXCZWXXZJZBLFFLGSKHYJZEYJHLPLLLLCZGXDRZELRHGKLZZYHZLYQSZZJZQLJZFLNBHGWLCZCFJYSPYXZLZLXGCCPZBLLCYBBBBUBBCBPCRNNZCZYRBFSRLDCGQYYQXYGMQZWTZYTYJXYFWTEHZZJYWLCCNTZYJJZDEDPZDZTSYQJHDYMBJNYJZLXTSSTPHNDJXXBYXQTZQDDTJTDYYTGWSCSZQFLSHLGLBCZPHDLYZJYCKWTYTYLBNYTSDSYCCTYSZYYEBHEXHQDTWNYGYCLXTSZYSTQMYGZAZCCSZZDSLZCLZRQXYYELJSBYMXSXZTEMBBLLYYLLYTDQYSHYMRQWKFKBFXNXSBYCHXBWJYHTQBPBSBWDZYLKGZSKYHXQZJXHXJXGNLJKZLYYCDXLFYFGHLJGJYBXQLYBXQPQGZTZPLNCYPXDJYQYDYMRBESJYYHKXXSTMXRCZZYWXYQYBMCLLYZHQYZWQXDBXBZWZMSLPDMYSKFMZKLZCYQYCZLQXFZZYDQZPZYGYJYZMZXDZFYFYTTQTZHGSPCZMLCCYTZXJCYTJMKSLPZHYSNZLLYTPZCTZZCKTXDHXXTQCYFKSMQCCYYAZHTJPCYLZLYJBJXTPNYLJYYNRXSYLMMNXJSMYBCSYSYLZYLXJJQYLDZLPQBFZZBLFNDXQKCZFYWHGQMRDSXYCYTXNQQJZYYPFZXDYZFPRXEJDGYQBXRCNFYYQPGHYJDYZXGRHTKYLNWDZNTSMPKLBTHBPYSZBZTJZSZZJTYYXZPHSSZZBZCZPTQFZMYFLYPYBBJQXZMXXDJMTSYSKKBJZXHJCKLPSMKYJZCXTMLJYXRZZQSLXXQPYZXMKYXXXJCLJPRMYYGADYSKQLSNDHYZKQXZYZTCGHZTLMLWZYBWSYCTBHJHJFCWZTXWYTKZLXQSHLYJZJXTMPLPYCGLTBZZTLZJCYJGDTCLKLPLLQPJMZPAPXYZLKKTKDZCZZBNZDYDYQZJYJGMCTXLTGXSZLMLHBGLKFWNWZHDXUHLFMKYSLGXDTWWFRJEJZTZHYDXYKSHWFZCQSHKTMQQHTZHYMJDJSKHXZJZBZZXYMPAGQMSTPXLSKLZYNWRTSQLSZBPSPSGZWYHTLKSSSWHZZLYYTNXJGMJSZSUFWNLSOZTXGXLSAMMLBWLDSZYLAKQCQCTMYCFJBSLXCLZZCLXXKSBZQCLHJPSQPLSXXCKSLNHPSFQQYTXYJZLQLDXZQJZDYYDJNZPTUZDSKJFSLJHYLZSQZLBTXYDGTQFDBYAZXDZHZJNHHQBYKNXJJQCZMLLJZKSPLDYCLBBLXKLELXJLBQYCXJXGCNLCQPLZLZYJTZLJGYZDZPLTQCSXFDMNYCXGBTJDCZNBGBQYQJWGKFHTNPYQZQGBKPBBYZMTJDYTBLSQMPSXTBNPDXKLEMYYCJYNZCTLDYKZZXDDXHQSHDGMZSJYCCTAYRZLPYLTLKXSLZCGGEXCLFXLKJRTLQJAQZNCMBYDKKCXGLCZJZXJHPTDJJMZQYKQSECQZDSHHADMLZFMMZBGNTJNNLGBYJBRBTMLBYJDZXLCJLPLDLPCQDHLXZLYCBLCXZZJADJLNZMMSSSMYBHBSQKBHRSXXJMXSDZNZPXLGBRHWGGFCXGMSKLLTSJYYCQLTSKYWYYHYWXBXQYWPYWYKQLSQPTNTKHQCWDQKTWPXXHCPTHTWUMSSYHBWCRWXHJMKMZNGWTMLKFGHKJYLSYYCXWHYECLQHKQHTTQKHFZLDXQWYZYYDESBPKYRZPJFYYZJCEQDZZDLATZBBFJLLCXDLMJSSXEGYGSJQXCWBXSSZPDYZCXDNYXPPZYDLYJCZPLTXLSXYZYRXCYYYDYLWWNZSAHJSYQYHGYWWAXTJZDAXYSRLTDPSSYYFNEJDXYZHLXLLLZQZSJNYQYQQXYJGHZGZCYJCHZLYCDSHWSHJZYJXCLLNXZJJYYXNFXMWFPYLCYLLABWDDHWDXJMCXZTZPMLQZHSFHZYNZTLLDYWLSLXHYMMYLMBWWKYXYADTXYLLDJPYBPWUXJMWMLLSAFDLLYFLBHHHBQQLTZJCQJLDJTFFKMMMBYTHYGDCQRDDWRQJXNBYSNWZDBYYTBJHPYBYTTJXAAHGQDQTMYSTQXKBTZPKJLZRBEQQSSMJJBDJOTGTBXPGBKTLHQXJJJCTHXQDWJLWRFWQGWSHCKRYSWGFTGYGBXSDWDWRFHWYTJJXXXJYZYSLPYYYPAYXHYDQKXSHXYXGSKQHYWFDDDPPLCJLQQEEWXKSYYKDYPLTJTHKJLTCYYHHJTTPLTZZCDLTHQKZXQYSTEEYWYYZYXXYYSTTJKLLPZMCYHQGXYHSRMBXPLLNQYDQHXSXXWGDQBSHYLLPJJJTHYJKYPPTHYYKTYEZYENMDSHLCRPQFDGFXZPSFTLJXXJBSWYYSKSFLXLPPLBBBLBSFXFYZBSJSSYLPBBFFFFSSCJDSTZSXZRYYSYFFSYZYZBJTBCTSBSDHRTJJBYTCXYJEYLXCBNEBJDSYXYKGSJZBXBYTFZWGENYHHTHZHHXFWGCSTBGXKLSXYWMTMBYXJSTZSCDYQRCYTWXZFHMYMCXLZNSDJTTTXRYCFYJSBSDYERXJLJXBBDEYNJGHXGCKGSCYMBLXJMSZNSKGXFBNBPTHFJAAFXYXFPXMYPQDTZCXZZPXRSYWZDLYBBKTYQPQJPZYPZJZNJPZJLZZFYSBTTSLMPTZRTDXQSJEHBZYLZDHLJSQMLHTXTJECXSLZZSPKTLZKQQYFSYGYWPCPQFHQHYTQXZKRSGTTSQCZLPTXCDYYZXSQZSLXLZMYCPCQBZYXHBSXLZDLTCDXTYLZJYYZPZYZLTXJSJXHLPMYTXCQRBLZSSFJZZTNJYTXMYJHLHPPLCYXQJQQKZZSCPZKSWALQSBLCCZJSXGWWWYGYKTJBBZTDKHXHKGTGPBKQYSLPXPJCKBMLLXDZSTBKLGGQKQLSBKKTFXRMDKBFTPZFRTBBRFERQGXYJPZSSTLBZTPSZQZSJDHLJQLZBPMSMMSXLQQNHKNBLRDDNXXDHDDJCYYGYLXGZLXSYGMQQGKHBPMXYXLYTQWLWGCPBMQXCYZYDRJBHTDJYHQSHTMJSBYPLWHLZFFNYPMHXXHPLTBQPFBJWQDBYGPNZTPFZJGSDDTQSHZEAWZZYLLTYYBWJKXXGHLFKXDJTMSZSQYNZGGSWQSPHTLSSKMCLZXYSZQZXNCJDQGZDLFNYKLJCJLLZLMZZNHYDSSHTHZZLZZBBHQZWWYCRZHLYQQJBEYFXXXWHSRXWQHWPSLMSSKZTTYGYQQWRSLALHMJTQJSMXQBJJZJXZYZKXBYQXBJXSHZTSFJLXMXZXFGHKZSZGGYLCLSARJYHSLLLMZXELGLXYDJYTLFBHBPNLYZFBBHPTGJKWETZHKJJXZXXGLLJLSTGSHJJYQLQZFKCGNNDJSSZFDBCTWWSEQFHQJBSAQTGYPQLBXBMMYWXGSLZHGLZGQYFLZBYFZJFRYSFMBYZHQGFWZSYFYJJPHZBYYZFFWODGRLMFTWLBZGYCQXCDJYGZYYYYTYTYDWEGAZYHXJLZYYHLRMGRXXZCLHNELJJTJTPWJYBJJBXJJTJTEEKHWSLJPLPSFYZPQQBDLQJJTYYQLYZKDKSQJYYQZLDQTGJQYZJSUCMRYQTHTEJMFCTYHYPKMHYZWJDQFHYYXWSHCTXRLJHQXHCCYYYJLTKTTYTMXGTCJTZAYYOCZLYLBSZYWJYTSJYHBYSHFJLYGJXXTMZYYLTXXYPZLXYJZYZYYPNHMYMDYYLBLHLSYYQQLLNJJYMSOYQBZGDLYXYLCQYXTSZEGXHZGLHWBLJHEYXTWQMAKBPQCGYSHHEGQCMWYYWLJYJHYYZLLJJYLHZYHMGSLJLJXCJJYCLYCJPCPZJZJMMYLCQLNQLJQJSXYJMLSZLJQLYCMMHCFMMFPQQMFYLQMCFFQMMMMHMZNFHHJGTTHHKHSLNCHHYQDXTMMQDCYZYXYQMYQYLTDCYYYZAZZCYMZYDLZFFFMMYCQZWZZMABTBYZTDMNZZGGDFTYPCGQYTTSSFFWFDTZQSSYSTWXJHXYTSXXYLBYQHWWKXHZXWZNNZZJZJJQJCCCHYYXBZXZCYZTLLCQXYNJYCYYCYNZZQYYYEWYCZDCJYCCHYJLBTZYYCQWMPWPYMLGKDLDLGKQQBGYCHJXY",e.oMultiDiff={19969:"DZ",19975:"WM",19988:"QJ",20048:"YL",20056:"SC",20060:"NM",20094:"QG",20127:"QJ",20167:"QC",20193:"YG",20250:"KH",20256:"ZC",20282:"SC",20285:"QJG",20291:"TD",20314:"YD",20340:"NE",20375:"TD",20389:"YJ",20391:"CZ",20415:"PB",20446:"YS",20447:"SQ",20504:"TC",20608:"KG",20854:"QJ",20857:"ZC",20911:"PF",20985:"AW",21032:"PB",21048:"XQ",21049:"SC",21089:"YS",21119:"JC",21242:"SB",21273:"SC",21305:"YP",21306:"QO",21330:"ZC",21333:"SDC",21345:"QK",21378:"CA",21397:"SC",21414:"XS",21442:"SC",21477:"JG",21480:"TD",21484:"ZS",21494:"YX",21505:"YX",21512:"HG",21523:"XH",21537:"PB",21542:"PF",21549:"KH",21571:"E",21574:"DA",21588:"TD",21589:"O",21618:"ZC",21621:"KHA",21632:"ZJ",21654:"KG",21679:"LKG",21683:"KH",21710:"A",21719:"YH",21734:"WOE",21769:"A",21780:"WN",21804:"XH",21834:"A",21899:"ZD",21903:"RN",21908:"WO",21939:"ZC",21956:"SA",21964:"YA",21970:"TD",22003:"A",22031:"JG",22040:"XS",22060:"ZC",22066:"ZC",22079:"MH",22129:"XJ",22179:"XA",22237:"NJ",22244:"TD",22280:"JQ",22300:"YH",22313:"XW",22331:"YQ",22343:"YJ",22351:"PH",22395:"DC",22412:"TD",22484:"PB",22500:"PB",22534:"ZD",22549:"DH",22561:"PB",22612:"TD",22771:"KQ",22831:"HB",22841:"JG",22855:"QJ",22865:"XQ",23013:"ML",23081:"WM",23487:"SX",23558:"QJ",23561:"YW",23586:"YW",23614:"YW",23615:"SN",23631:"PB",23646:"ZS",23663:"ZT",23673:"YG",23762:"TD",23769:"ZS",23780:"QJ",23884:"QK",24055:"XH",24113:"DC",24162:"ZC",24191:"GA",24273:"QJ",24324:"NL",24377:"TD",24378:"QJ",24439:"PF",24554:"ZS",24683:"TD",24694:"WE",24733:"LK",24925:"TN",25094:"ZG",25100:"XQ",25103:"XH",25153:"PB",25170:"PB",25179:"KG",25203:"PB",25240:"ZS",25282:"FB",25303:"NA",25324:"KG",25341:"ZY",25373:"WZ",25375:"XJ",25384:"A",25457:"A",25528:"SD",25530:"SC",25552:"TD",25774:"ZC",25874:"ZC",26044:"YW",26080:"WM",26292:"PB",26333:"PB",26355:"ZY",26366:"CZ",26397:"ZC",26399:"QJ",26415:"ZS",26451:"SB",26526:"ZC",26552:"JG",26561:"TD",26588:"JG",26597:"CZ",26629:"ZS",26638:"YL",26646:"XQ",26653:"KG",26657:"XJ",26727:"HG",26894:"ZC",26937:"ZS",26946:"ZC",26999:"KJ",27099:"KJ",27449:"YQ",27481:"XS",27542:"ZS",27663:"ZS",27748:"TS",27784:"SC",27788:"ZD",27795:"TD",27812:"O",27850:"PB",27852:"MB",27895:"SL",27898:"PL",27973:"QJ",27981:"KH",27986:"HX",27994:"XJ",28044:"YC",28065:"WG",28177:"SM",28267:"QJ",28291:"KH",28337:"ZQ",28463:"TL",28548:"DC",28601:"TD",28689:"PB",28805:"JG",28820:"QG",28846:"PB",28952:"TD",28975:"ZC",29100:"A",29325:"QJ",29575:"SL",29602:"FB",30010:"TD",30044:"CX",30058:"PF",30091:"YSP",30111:"YN",30229:"XJ",30427:"SC",30465:"SX",30631:"YQ",30655:"QJ",30684:"QJG",30707:"SD",30729:"XH",30796:"LG",30917:"PB",31074:"NM",31085:"JZ",31109:"SC",31181:"ZC",31192:"MLB",31293:"JQ",31400:"YX",31584:"YJ",31896:"ZN",31909:"ZY",31995:"XJ",32321:"PF",32327:"ZY",32418:"HG",32420:"XQ",32421:"HG",32438:"LG",32473:"GJ",32488:"TD",32521:"QJ",32527:"PB",32562:"ZSQ",32564:"JZ",32735:"ZD",32793:"PB",33071:"PF",33098:"XL",33100:"YA",33152:"PB",33261:"CX",33324:"BP",33333:"TD",33406:"YA",33426:"WM",33432:"PB",33445:"JG",33486:"ZN",33493:"TS",33507:"QJ",33540:"QJ",33544:"ZC",33564:"XQ",33617:"YT",33632:"QJ",33636:"XH",33637:"YX",33694:"WG",33705:"PF",33728:"YW",33882:"SR",34067:"WM",34074:"YW",34121:"QJ",34255:"ZC",34259:"XL",34425:"JH",34430:"XH",34485:"KH",34503:"YS",34532:"HG",34552:"XS",34558:"YE",34593:"ZL",34660:"YQ",34892:"XH",34928:"SC",34999:"QJ",35048:"PB",35059:"SC",35098:"ZC",35203:"TQ",35265:"JX",35299:"JX",35782:"SZ",35828:"YS",35830:"E",35843:"TD",35895:"YG",35977:"MH",36158:"JG",36228:"QJ",36426:"XQ",36466:"DC",36710:"JC",36711:"ZYG",36767:"PB",36866:"SK",36951:"YW",37034:"YX",37063:"XH",37218:"ZC",37325:"ZC",38063:"PB",38079:"TD",38085:"QY",38107:"DC",38116:"TD",38123:"YD",38224:"HG",38241:"XTC",38271:"ZC",38415:"YE",38426:"KH",38461:"YD",38463:"AE",38466:"PB",38477:"XJ",38518:"YT",38551:"WK",38585:"ZC",38704:"XS",38739:"LJ",38761:"GJ",38808:"SQ",39048:"JG",39049:"XJ",39052:"HG",39076:"CZ",39271:"XT",39534:"TD",39552:"TD",39584:"PB",39647:"SB",39730:"LG",39748:"TPB",40109:"ZQ",40479:"ND",40516:"HG",40536:"HG",40583:"QJ",40765:"YQ",40784:"QJ",40840:"YK",40863:"QJG"},e}(),IW=function(){function e(){}return e.prototype.makePy=function(e){if("string"!=typeof e)throw new Error("函数makePy需要字符串类型参数!");for(var t=new Array,i=0,n=e.length;i<n;i++){var r=e.charAt(i);t.push(this.checkCh(r))}return this.mkRslt(t)},e.prototype.checkCh=function(e){var t=e.charCodeAt(0);return t>40869||t<19968?e:BW.oMultiDiff[t]?BW.oMultiDiff[t]:BW.strChineseFirstPY.charAt(t-19968)},e.prototype.mkRslt=function(e){for(var t=[""],i=0,n=e.length;i<n;i++){var r=e[i],o=r.length;if(1==o)for(var s=0;s<t.length;s++)t[s]+=r;else{var a=t.slice(0);for(t=[],s=0;s<o;s++){for(var l=a.slice(0),u=0;u<l.length;u++)l[u]+=r.charAt(s);t=t.concat(l)}}}return t},e}();!function(e){e[e.byClick=0]="byClick",e[e.withPrevious=1]="withPrevious",e[e.afterPrevious=2]="afterPrevious"}(yW||(yW={}));var RW,NW=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),kW=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},FW=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},HW=function(e){function t(){return e.call(this)||this}return NW(t,e),Object.defineProperty(t.prototype,"htmlElement",{get:function(){return this._htmlElement||(this._htmlElement=document.getElementById(this.htmlElementId)),this._htmlElement},enumerable:!1,configurable:!0}),t.prototype.initAnimation=function(){},t.prototype.onTick=function(e){},t.prototype.stopAnimation=function(){},kW([rm(),FW("design:type",Object)],t.prototype,"_htmlElement",void 0),kW([rm(),FW("design:type",Object),FW("design:paramtypes",[])],t.prototype,"htmlElement",null),kW([rm(),FW("design:type",Object)],t.prototype,"sampledProperty",void 0),t=kW([HR("CssAnimationBase"),FW("design:paramtypes",[])],t)}(zR),YW=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),jW=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},UW=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},GW=function(e){function t(){var t=e.call(this)||this;return t.hasReadFulltime=!1,setTimeout(function(){t.initAnimation()},1e3),t}return YW(t,e),t.prototype.initAnimation=function(){this.media=document.getElementById(this.htmlElementId+"_media"),this.media&&!this.hasReadFulltime&&(this.initComplete=new am,this.fulltime=this.media.duration,this.duration=this.fulltime,this.hasReadFulltime=!0,this.initComplete.next(1))},t.prototype.onTick=function(e){var t=e;this.htmlElement&&(t>=this.beginTime+this.duration?this.stopAnimation():t>=this.beginTime&&this.media.paused&&this.media.play())},t.prototype.stopAnimation=function(){this.htmlElement&&this.media.load()},t=jW([HR("VideoAnimation"),UW("design:paramtypes",[])],t)}(HW),QW=__webpack_require__(6763),zW=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),WW=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},XW=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},VW=function(e){function t(){var t=e.call(this)||this;return t.hasReadFulltime=!1,setTimeout(function(){t.initAnimation()},1e3),t.hideValues=["fillBehavior"],t}return zW(t,e),Object.defineProperty(t.prototype,"target",{get:function(){return $B.getMusic(this.targetId)},enumerable:!1,configurable:!0}),t.prototype.initAnimation=function(){var e;this.label="音效",this.media=null===(e=this.target)||void 0===e?void 0:e.audioObj,this.media&&!this.hasReadFulltime&&(this.initComplete=new am,this.fulltime=this.media.duration,this.duration=this.fulltime,this.hasReadFulltime=!0,this.initComplete.next(1))},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration)this.stopAnimation();else if(t>=this.beginTime)try{this.media.paused&&this.media.play()}catch(e){QW.log(e)}},t.prototype.stopAnimation=function(){this.media.load()},WW([rm(),XW("design:type",Object),XW("design:paramtypes",[])],t.prototype,"target",null),WW([rm(),XW("design:type",Object)],t.prototype,"media",void 0),t=WW([HR("AudioAnimation"),XW("design:paramtypes",[])],t)}(zR),JW=__webpack_require__(6763),KW=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ZW=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},qW=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},$W=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},eX=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},tX=function(e){function t(){var t=e.apply(this,eX([],$W(arguments),!1))||this;return t.defaultValue=void 0,t}return KW(t,e),t.prototype.createSampledProperty=function(){},t.prototype.initAnimation=function(){var e=this;this.geojsonDataSource=this.viewer.dataSources._dataSources.find(function(t){return t.name===e.dataSourceName}),this.geojsonDataSource&&(JW.log("geojsonDataSource",this.geojsonDataSource),this.defaultValue=this.geojsonDataSource[this.property])},t.prototype.stopAnimation=function(){this.geojsonDataSource&&(this.geojsonDataSource[this.property]=this.defaultValue)},t.prototype.onTick=function(e){var t=this,i=e;if(this.geojsonDataSource)if(i>=this.beginTime+this.duration){var n=YR.HoldEnd;this.fillBehavior==n?this.geojsonDataSource[this.property]=this.to:this.stopAnimation(),this.geojsonDataSource.addedGJPlot.show=this.defaultValue}else if(i>=this.beginTime){var r=this.getCurrentValue(e);this.geojsonDataSource[this.property]=r,this.entityType&&this.geojsonDataSource.entities.values.forEach(function(e){return e[t.entityType][t.property]=r}),this.geojsonDataSource.addedGJPlot.show=r}},t.prototype.getCurrentValue=function(e){var t=e,i=this.beginTime+this.duration;return t<this.beginTime?this.from:t>i?this.to:this.sampledProperty.getValue(this.getCesiumAnimationTime(e))},ZW([rm(),qW("design:type",Object)],t.prototype,"geojsonDataSource",void 0),ZW([em({name:"起始值",group:"",type:"owner",order:5,max:1,min:0}),qW("design:type",Object)],t.prototype,"from",void 0),ZW([em({name:"终止值",group:"",type:"owner",order:6,max:1,min:0}),qW("design:type",Object)],t.prototype,"to",void 0),t=ZW([HR("GeojsonAnimation")],t)}(zR),iX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),nX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},rX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},oX=function(e){function t(){var t=e.call(this)||this;return t.isexecuted=!1,t.speed=1,t.hideValues=["fillBehavior"],t}return iX(t,e),t.prototype.stopAnimation=function(){},t.prototype.initAnimation=function(){this.isexecuted=!1},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration||t<this.beginTime)this.isexecuted=!1;else if(t>=this.beginTime){if(this.isexecuted){var i=this.viewer,n=i.camera,r=i.clock,o=i.scene;if(o.mode!==Cesium.SceneMode.SCENE3D)return;o.globe.ellipsoid.cartesianToCartographic(n.position).height,r.currentTime;n.rotate(Cesium.Cartesian3.UNIT_Z,Math.PI/86400*1440*(this.speed*IN.multiplier/100))}else void 0!==this.heading&&void 0!==this.pitch&&void 0!==this.roll&&void 0!==this.lon&&void 0!==this.lat&&void 0!==this.alt&&this.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(this.lon,this.lat,this.alt),orientation:{heading:Cesium.Math.toRadians(this.heading),pitch:Cesium.Math.toRadians(this.pitch),roll:this.roll}});this.isexecuted=!0}},t.prototype.set=function(){var e=this.viewer.camera,t=this.viewer.camera.positionWC;for(var i in this.lon=km.getLongitudeByCartesian3(t,this.viewer),this.lat=km.getLatitudeByCartesian3(t,this.viewer),this.alt=km.getHeightByCartesian3(t,this.viewer),this.heading=Cesium.Math.toDegrees(e.heading),this.pitch=Cesium.Math.toDegrees(e.pitch),this.roll=e.roll,this.__meta__)this.__meta__[i].isError=!1},nX([rm(),rX("design:type",Object)],t.prototype,"isexecuted",void 0),nX([em({name:"自转速率",group:"",type:"autoRotateSpeed",order:16,min:1,max:10}),rX("design:type",Number)],t.prototype,"speed",void 0),nX([em({name:"获取视角",group:"",type:"function",order:17}),rX("design:type",Function),rX("design:paramtypes",[]),rX("design:returntype",void 0)],t.prototype,"set",null),t=nX([HR("AutoRotationAnimation"),rX("design:paramtypes",[])],t)}(zR),sX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),aX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},lX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},uX=function(e){function t(){var t=e.call(this)||this;return t.pHeight=25e3,t.isexecuted=!1,t.hideValues=["fillBehavior"],t}return sX(t,e),t.prototype.stopAnimation=function(){},t.prototype.initAnimation=function(){this.isexecuted=!1},t.prototype.onTick=function(e){var t=this,i=e;i>=this.beginTime+this.duration||i<this.beginTime||this.isexecuted||(this.isexecuted=!0,this.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.lon,this.lat,1e3*this.pHeight),orientation:{heading:Cesium.Math.toRadians(this.heading),pitch:Cesium.Math.toRadians(this.pitch),roll:this.roll},duration:this.duration/(10*IN.multiplier)*3,easingFunction:function(e){return e},complete:function(){t.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(t.lon,t.lat,t.alt),orientation:{heading:Cesium.Math.toRadians(t.heading),pitch:Cesium.Math.toRadians(t.pitch),roll:t.roll},duration:t.duration/(10*IN.multiplier)*7,easingFunction:function(e){return e*(2-e)}})}}))},t.prototype.set=function(){var e=this.viewer.camera,t=this.viewer.camera.positionWC;for(var i in this.lon=km.getLongitudeByCartesian3(t,this.viewer),this.lat=km.getLatitudeByCartesian3(t,this.viewer),this.alt=km.getHeightByCartesian3(t,this.viewer),this.heading=Cesium.Math.toDegrees(e.heading),this.pitch=Cesium.Math.toDegrees(e.pitch),this.roll=e.roll,this.__meta__)this.__meta__[i].isError=!1},aX([em({name:"相机经度",group:"",type:"zoomSliderInput",order:11,min:-180,max:180}),lX("design:type",Number)],t.prototype,"lon",void 0),aX([em({name:"相机纬度",group:"",type:"zoomSliderInput",order:12,min:-90,max:90}),lX("design:type",Number)],t.prototype,"lat",void 0),aX([em({name:"相机高度",group:"",type:"zoomSliderInput",order:13,min:0,max:99999999}),lX("design:type",Number)],t.prototype,"alt",void 0),aX([em({name:"相机朝向",group:"",type:"zoomSliderInput",order:14,min:-360,max:360}),lX("design:type",Number)],t.prototype,"heading",void 0),aX([em({name:"相机俯仰",group:"",type:"zoomSliderInput",order:15,min:-360,max:360}),lX("design:type",Number)],t.prototype,"pitch",void 0),aX([em({name:"相机偏航",group:"",type:"zoomSliderInput",order:16,min:-360,max:360}),lX("design:type",Number)],t.prototype,"roll",void 0),aX([em({name:"拉起高度",group:"",type:"zoomSliderInput",order:16,min:0,max:99999}),lX("design:type",Object)],t.prototype,"pHeight",void 0),aX([rm(),lX("design:type",Object)],t.prototype,"isexecuted",void 0),aX([em({name:"获取视角",group:"",type:"function",order:17}),lX("design:type",Function),lX("design:paramtypes",[]),lX("design:returntype",void 0)],t.prototype,"set",null),t=aX([HR("ZoomToFlyAnimation"),lX("design:paramtypes",[])],t)}(zR),cX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),hX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},pX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},dX=function(e){function t(){var t=e.call(this)||this;return t.isexecuted=!1,t.hideValues=["fillBehavior"],t}return cX(t,e),t.prototype.stopAnimation=function(){},t.prototype.initAnimation=function(){this.isexecuted=!1},t.prototype.onTick=function(e){var t=e;t>=this.beginTime+this.duration?this.isexecuted=!1:t>=this.beginTime&&(this.isexecuted||this.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.lon,this.lat,this.alt),orientation:{heading:Cesium.Math.toRadians(this.heading),pitch:Cesium.Math.toRadians(this.pitch),roll:this.roll},duration:this.duration}),this.isexecuted=!0)},t.prototype.set=function(){var e=this.viewer.camera,t=this.viewer.camera.positionWC;for(var i in this.lon=km.getLongitudeByCartesian3(t,this.viewer),this.lat=km.getLatitudeByCartesian3(t,this.viewer),this.alt=km.getHeightByCartesian3(t,this.viewer),this.heading=Cesium.Math.toDegrees(e.heading),this.pitch=Cesium.Math.toDegrees(e.pitch),this.roll=e.roll,this.__meta__)this.__meta__[i].isError=!1},hX([rm(),pX("design:type",Object)],t.prototype,"isexecuted",void 0),hX([em({name:"相机经度",group:"",type:"numberNew",order:11,min:-180,max:180}),pX("design:type",Number)],t.prototype,"lon",void 0),hX([em({name:"相机纬度",group:"",type:"numberNew",order:12,min:-90,max:90}),pX("design:type",Number)],t.prototype,"lat",void 0),hX([em({name:"相机高度",group:"",type:"numberNew",order:13,min:0}),pX("design:type",Number)],t.prototype,"alt",void 0),hX([em({name:"相机朝向",group:"",type:"numberNew",order:14,min:-360,max:360}),pX("design:type",Number)],t.prototype,"heading",void 0),hX([em({name:"相机俯仰",group:"",type:"numberNew",order:15,min:-360,max:360}),pX("design:type",Number)],t.prototype,"pitch",void 0),hX([em({name:"相机偏航",group:"",type:"numberNew",order:16,min:-360,max:360}),pX("design:type",Number)],t.prototype,"roll",void 0),hX([em({name:"获取视角",group:"",type:"function",order:17}),pX("design:type",Function),pX("design:paramtypes",[]),pX("design:returntype",void 0)],t.prototype,"set",null),t=hX([HR("CameraFlyAnimation"),pX("design:paramtypes",[])],t)}(zR),fX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),mX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},gX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},yX=function(e){function t(){var t=e.call(this)||this;return t.isexecuted=!1,t.hideValues=["fillBehavior"],t}return fX(t,e),t.prototype.stopAnimation=function(){this.isexecuted=!1,this.polyLine,this.viewer.trackedEntity=void 0},t.prototype.initAnimation=function(){this.isexecuted=!1},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration)this.stopAnimation();else if(t>=this.beginTime){t-=this.beginTime;var i=this.polyLine.interopLine.evaluate(t/this.duration);this.viewer.scene.camera.setView({destination:i,orientation:{heading:Cesium.Math.toRadians(this.heading),pitch:Cesium.Math.toRadians(this.pitch),role:Cesium.Math.toRadians(this.roll)}})}},t.prototype.set=function(){var e=this.viewer.camera;this.viewer.camera.positionWC;for(var t in this.heading=Cesium.Math.toDegrees(e.heading),this.pitch=Cesium.Math.toDegrees(e.pitch),this.roll=Cesium.Math.toDegrees(e.roll),this.__meta__)this.__meta__[t].isError=!1},Object.defineProperty(t.prototype,"polyLine",{get:function(){return Yf.getGraph(this.polyLineId)},enumerable:!1,configurable:!0}),t.prototype.toRadians=function(e){return e*Math.PI/180},t.prototype.toDegrees=function(e){return 180*e/Math.PI},t.prototype.car3ToLonlat=function(e){var t=this.viewer.scene.globe.ellipsoid.cartesianToCartographic(e);return{lat:Cesium.Math.toDegrees(t.latitude),lng:Cesium.Math.toDegrees(t.longitude)}},mX([rm(),gX("design:type",Array)],t.prototype,"polyLinePosition",void 0),mX([rm(),gX("design:type",Object)],t.prototype,"defaultPolyLinePosition",void 0),mX([rm(),gX("design:type",Object)],t.prototype,"isexecuted",void 0),mX([em({name:"相机朝向",group:"",type:"numberNew",order:14,min:-360,max:360}),gX("design:type",Number)],t.prototype,"heading",void 0),mX([em({name:"相机俯仰",group:"",type:"numberNew",order:15,min:-360,max:360}),gX("design:type",Number)],t.prototype,"pitch",void 0),mX([em({name:"相机偏航",group:"",type:"numberNew",order:16,min:-360,max:360}),gX("design:type",Number)],t.prototype,"roll",void 0),mX([em({name:"获取视角",group:"",type:"function",order:17}),gX("design:type",Function),gX("design:paramtypes",[]),gX("design:returntype",void 0)],t.prototype,"set",null),mX([em({name:"路径线",group:"",type:"displayTarget",order:9}),rm(),gX("design:type",eF),gX("design:paramtypes",[])],t.prototype,"polyLine",null),mX([rm(),gX("design:type",Cesium.SampledPositionProperty)],t.prototype,"sampledProperty",void 0),t=mX([HR("CameraRoamAnimation"),gX("design:paramtypes",[])],t)}(zR),_X=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),AX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},vX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},CX=function(e){function t(){var t=e.call(this)||this;return t.isexecuted=!1,t.hideValues=["fillBehavior"],t}return _X(t,e),Object.defineProperty(t.prototype,"target",{get:function(){return Yf.getGraph(this.targetId)},enumerable:!1,configurable:!0}),t.prototype.stopAnimation=function(){this.isexecuted=!1},t.prototype.initAnimation=function(){this.isexecuted=!1},t.prototype.initTargetPosition=function(){if(this.target instanceof sI)if(this.target instanceof sQ||this.target instanceof nH){var e=this.target.ctrlPosition[0];this.targetPosition=Cesium.Cartesian3.fromDegrees(e.lon,e.lat,e.alt,this.viewer.scene.globe.ellipsoid)}else this.targetPosition=this.target.positionProperty;else this.target instanceof qI||this.target instanceof mR?this.targetPosition=this.target.ent.position.getValue():this.targetPosition=this.target.ent.position._value;this.targetPosition&&(this.targetLLA=this.car3ToLonlat(this.targetPosition))},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration)this.stopAnimation();else if(t>=this.beginTime){t-=this.beginTime,this.initTargetPosition();var i=this.polyLine.interopLine.evaluate(t/this.duration);if(this.targetPosition&&i){var n=this.computerOrient(i,this.targetPosition);this.viewer.scene.camera.setView({destination:i,orientation:{heading:Cesium.Math.toRadians(n.heading+90),pitch:Cesium.Math.toRadians(n.pitch),role:Cesium.Math.toRadians(n.roll)}})}}},Object.defineProperty(t.prototype,"polyLine",{get:function(){return Yf.getGraph(this.polyLineId)},enumerable:!1,configurable:!0}),t.prototype.car3ToLonlat=function(e){var t=this.viewer.scene.globe.ellipsoid.cartesianToCartographic(e);return{lat:Cesium.Math.toDegrees(t.latitude),lng:Cesium.Math.toDegrees(t.longitude)}},t.prototype.vec1ToVec2Mat=function(e,t){var i=Cesium.Cartesian3.cross(e,t,new Cesium.Cartesian3(0,0,0)),n=Cesium.Math.acosClamped(Cesium.Cartesian3.dot(e,t)/(Cesium.Cartesian3.magnitude(e)*Cesium.Cartesian3.magnitude(t))),r=Cesium.Quaternion.fromAxisAngle(i,n,new Cesium.Quaternion(0,0,0,0));return Cesium.Matrix3.fromQuaternion(r,new Cesium.Matrix3)},t.prototype.computerOrient=function(e,t){var i,n,r=Cesium.Transforms.eastNorthUpToFixedFrame(e),o=Cesium.Quaternion.clone(Cesium.Quaternion.IDENTITY),s=(Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY)),a=Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),l=new Cesium.Cartesian3(0,0,0);return s=Cesium.Matrix4.getMatrix3(r,s),l=Cesium.Cartesian3.subtract(t,e,l),a=Cesium.Matrix3.inverse(s,a),l=Cesium.Matrix3.multiplyByVector(a,l,l),i=this.vec1ToVec2Mat(Cesium.Cartesian3.UNIT_X,Cesium.Cartesian3.normalize(l,l)),o=Cesium.Quaternion.fromRotationMatrix(i,o),n=Cesium.HeadingPitchRoll.fromQuaternion(o,n),{heading:Cesium.Math.toDegrees(n.heading),pitch:Cesium.Math.toDegrees(n.pitch),roll:Cesium.Math.toDegrees(n.roll)}},AX([em({name:"标绘元素",group:"",type:"displayTarget",order:9}),rm(),vX("design:type",qm),vX("design:paramtypes",[])],t.prototype,"target",null),AX([rm(),vX("design:type",Object)],t.prototype,"isexecuted",void 0),AX([em({name:"路径线",group:"",type:"displayTarget",order:9}),rm(),vX("design:type",eF),vX("design:paramtypes",[])],t.prototype,"polyLine",null),t=AX([HR("FollowAnimation"),vX("design:paramtypes",[])],t)}(zR),bX=function(){function e(){}return e.getModelMatrix=function(t,i,n,r,o){if(null==t)return n;var s=Cesium.Property.getValueOrUndefined(t.position,i,e.positionScratch);if(Cesium.defined(s)){if(r){var a=r.scene.globe.ellipsoid.cartesianToCartographic(s),l=r.scene.globe.getHeight(a);o&&(l+=o),a.height=l,s=r.scene.globe.ellipsoid.cartographicToCartesian(a)}var u=Cesium.Property.getValueOrUndefined(t.orientation,i,e.orientationScratch);return n=Cesium.defined(u)?Cesium.Matrix4.fromRotationTranslation(Cesium.Matrix3.fromQuaternion(u),s,n):Cesium.Transforms.eastNorthUpToFixedFrame(s,void 0,n)}},e.matrix3Scratch=Cesium.Matrix3,e.positionScratch=Cesium.Cartesian3?new Cesium.Cartesian3:null,e.orientationScratch=Cesium.Quaternion?new Cesium.Quaternion:null,e}(),wX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),xX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},SX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},MX=function(e){function t(){var t=e.call(this)||this;return t.isexecuted=!1,t.cameraPath=void 0,t.heightConfig=2e5,t.scratch=new Cesium.Matrix4,t.hideValues=["fillBehavior"],t.startAngle=-180,t.endAngle=180,t}return wX(t,e),Object.defineProperty(t.prototype,"target",{get:function(){return Yf.getGraph(this.targetId)},enumerable:!1,configurable:!0}),t.prototype.stopAnimation=function(){this.isexecuted=!1},t.prototype.initAnimation=function(){this.isexecuted=!1},t.prototype.initTargetPosition=function(){if(this.target instanceof sI)if(this.target instanceof sQ||this.target instanceof nH){var e=this.target.ctrlPosition[0];this.targetPosition=Cesium.Cartesian3.fromDegrees(e.lon,e.lat,e.alt,this.viewer.scene.globe.ellipsoid)}else this.targetPosition=this.target.positionProperty;else this.target instanceof qI||this.target instanceof mR?this.targetPosition=this.target.ent.position.getValue():this.targetPosition=this.target.ent.position._value;this.targetPosition&&(this.targetLLA=this.car3ToLonlat(this.targetPosition))},t.prototype.createPathLine=function(){var e=this;if(this.initTargetPosition(),this.targetPosition){if(this.cameraPath&&this.removePathLine(),this.viewer.terrainProvider.availability){var t=this.viewer.terrainProvider.availability._maximumLevel?this.viewer.terrainProvider.availability._maximumLevel:10,i=[Cesium.Cartographic.fromDegrees(this.targetLLA.lon,this.targetLLA.lat)],n=Cesium.sampleTerrain(this.viewer.terrainProvider,t,i),r=this;n.then(function(e){if(e[0].height){var t=Math.ceil(e[0].height);r.__meta__.lineHeight.min=t,r.__meta__.lineHeight.max=t+r.heightConfig}})}else this.__meta__.lineHeight.min=0,this.__meta__.lineHeight.max=this.heightConfig;this.lineHeight||0===this.lineHeight||(this.lineHeight=this.__meta__.lineHeight.min+8e3),this.cameraPath=this.viewer.entities.add({name:"环绕路径线",polyline:{positions:new Cesium.CallbackProperty(function(t,i){var n=$u([e.targetLLA.lon,e.targetLLA.lat]),r=[],o=e.startAngle,s=e.endAngle;e.startAngle>e.endAngle&&(o=e.endAngle,s=e.startAngle);for(var a=o;a<s;a++){var l=Xh(n,e.circleRadius/1e3,a).geometry.coordinates,u=Cesium.Cartesian3.fromDegrees(l[0],l[1],e.lineHeight);r.push(u)}return r},!1),width:1,material:Cesium.Color.RED}})}},t.prototype.removePathLine=function(){this.cameraPath&&this.viewer.entities.contains(this.cameraPath)&&this.viewer.entities.remove(this.cameraPath)},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration)this.stopAnimation();else if(t>=this.beginTime){if(t-=this.beginTime,this.initTargetPosition(),!this.targetLLA)return;var i=$u([this.targetLLA.lon,this.targetLLA.lat]),n=(this.endAngle-this.startAngle)*(t/this.duration)+this.startAngle,r=Xh(i,this.circleRadius/1e3,n).geometry.coordinates,o=Cesium.Cartesian3.fromDegrees(r[0],r[1],this.lineHeight);if(o&&this.targetPosition){var s=this.computerOrient(o,this.targetPosition);this.viewer.scene.camera.setView({destination:o,orientation:{heading:Cesium.Math.toRadians(s.heading+90),pitch:Cesium.Math.toRadians(s.pitch),role:Cesium.Math.toRadians(s.roll)}})}}},Object.defineProperty(t.prototype,"startAngle",{get:function(){return this._startAngle},set:function(e){this._startAngle=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function(){return this._endAngle},set:function(e){this._endAngle=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cameraHeight",{get:function(){return this.lineHeight},set:function(e){this.lineHeight=e,this.setCamera()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cameraRadius",{get:function(){return this.circleRadius},set:function(e){this.circleRadius=e,this.setCamera()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cameraHeading",{get:function(){return this._cameraHeading},set:function(e){this._cameraHeading=e,this.setCamera()},enumerable:!1,configurable:!0}),t.prototype.setCamera=function(){if(this.target&&this.target.ent){bX.getModelMatrix(this.target.ent,this.viewer.clock.currentTime,this.scratch);var e=Cesium.Math.toRadians(this.cameraHeading),t=180*Math.asin(this.lineHeight/Math.sqrt(Math.pow(this.lineHeight,2)+Math.pow(this.circleRadius,2)))/Math.PI+10,i=Cesium.Math.toRadians(-1*t),n=Math.sqrt(Math.pow(this.lineHeight,2)+Math.pow(this.circleRadius,2));this.viewer.camera.lookAtTransform(this.scratch,new Cesium.HeadingPitchRange(e,i,n))}},t.prototype.car3ToLonlat=function(e){var t=this.viewer.scene.globe.ellipsoid.cartesianToCartographic(e),i=Cesium.Math.toDegrees(t.latitude);return{lon:Cesium.Math.toDegrees(t.longitude),lat:i,alt:t.height}},t.prototype.vec1ToVec2Mat=function(e,t){var i=Cesium.Cartesian3.cross(e,t,new Cesium.Cartesian3(0,0,0)),n=Cesium.Math.acosClamped(Cesium.Cartesian3.dot(e,t)/(Cesium.Cartesian3.magnitude(e)*Cesium.Cartesian3.magnitude(t))),r=Cesium.Quaternion.fromAxisAngle(i,n,new Cesium.Quaternion(0,0,0,0));return Cesium.Matrix3.fromQuaternion(r,new Cesium.Matrix3)},t.prototype.computerOrient=function(e,t){var i,n,r=Cesium.Transforms.eastNorthUpToFixedFrame(e),o=Cesium.Quaternion.clone(Cesium.Quaternion.IDENTITY),s=Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),a=Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),l=new Cesium.Cartesian3(0,0,0);return s=Cesium.Matrix4.getMatrix3(r,s),l=Cesium.Cartesian3.subtract(t,e,l),a=Cesium.Matrix3.inverse(s,a),l=Cesium.Matrix3.multiplyByVector(a,l,l),i=this.vec1ToVec2Mat(Cesium.Cartesian3.UNIT_X,Cesium.Cartesian3.normalize(l,l)),o=Cesium.Quaternion.fromRotationMatrix(i,o),n=Cesium.HeadingPitchRoll.fromQuaternion(o,n),{heading:Cesium.Math.toDegrees(n.heading),pitch:Cesium.Math.toDegrees(n.pitch),roll:Cesium.Math.toDegrees(n.roll)}},xX([rm(),SX("design:type",Object)],t.prototype,"scratch",void 0),xX([em({name:"标绘元素",group:"",type:"displayTarget",order:9}),rm(),SX("design:type",qm),SX("design:paramtypes",[])],t.prototype,"target",null),xX([rm(),SX("design:type",Object)],t.prototype,"isexecuted",void 0),xX([rm(),SX("design:type",Object)],t.prototype,"cameraPath",void 0),xX([rm(),SX("design:type",Object)],t.prototype,"heightConfig",void 0),xX([em({name:"视角高度",group:"",subGroup:"视角高度",subOrder:1,type:"cameraSlider",order:17,min:0,max:2e5,hiddenGroupName:!0}),SX("design:type",Number)],t.prototype,"lineHeight",void 0),xX([em({name:"环绕半径",group:"",subGroup:"环绕半径",subOrder:2,type:"cameraSlider",order:18,min:1,max:3e4,hiddenGroupName:!0}),SX("design:type",Number)],t.prototype,"circleRadius",void 0),xX([em({name:"开始角度",group:"",subGroup:"开始角度",subOrder:3,type:"cameraSlider2",order:0,max:180,min:-180,hiddenGroupName:!0}),SX("design:type",Number),SX("design:paramtypes",[Number])],t.prototype,"startAngle",null),xX([em({name:"结束角度",group:"",subGroup:"结束角度",subOrder:4,type:"cameraSlider2",order:0,max:180,min:-180,hiddenGroupName:!0}),SX("design:type",Number),SX("design:paramtypes",[Number])],t.prototype,"endAngle",null),t=xX([HR("SurroundAnimation"),SX("design:paramtypes",[])],t)}(zR),PX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),EX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},LX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},TX=function(e){function t(){var t=e.call(this)||this;return t.isexecuted=!1,t.cameraPath=void 0,t.hideValues=["fillBehavior"],t}return PX(t,e),Object.defineProperty(t.prototype,"target",{get:function(){return Yf.getGraph(this.targetId)},enumerable:!1,configurable:!0}),t.prototype.stopAnimation=function(){this.isexecuted=!1},t.prototype.initAnimation=function(){this.isexecuted=!1},t.prototype.initTargetPosition=function(){if(this.target instanceof sI)if(this.target instanceof sQ||this.target instanceof nH){var e=this.target.ctrlPosition[0];this.targetPosition=Cesium.Cartesian3.fromDegrees(e.lon,e.lat,e.alt,this.viewer.scene.globe.ellipsoid)}else this.targetPosition=this.target.positionProperty;else this.target instanceof qI||this.target instanceof mR?this.targetPosition=this.target.ent.position.getValue():this.targetPosition=this.target.ent.position._value;this.targetPosition&&(this.targetLLA=this.car3ToLonlat(this.targetPosition))},t.prototype.createPathLine=function(){var e=this;if(this.initTargetPosition(),this.targetPosition){if(this.cameraPath&&this.removePathLine(),this.viewer.terrainProvider.availability){var t=this.viewer.terrainProvider.availability._maximumLevel?this.viewer.terrainProvider.availability._maximumLevel:10,i=[Cesium.Cartographic.fromDegrees(this.targetLLA.lon,this.targetLLA.lat)],n=Cesium.sampleTerrain(this.viewer.terrainProvider,t,i),r=this;n.then(function(e){if(e[0].height){var t=Math.ceil(e[0].height);r.__meta__.startHeight.min=t,r.__meta__.startHeight.max=t+5e3,r.__meta__.endHeight.min=t,r.__meta__.endHeight.max=t+5e3}})}else this.__meta__.startHeight.min=0,this.__meta__.startHeight.max=5e3,this.__meta__.endHeight.min=0,this.__meta__.endHeight.max=5e3;this.startHeight||0===this.startHeight||(this.startHeight=this.__meta__.startHeight.min+2500),this.endHeight||0===this.endHeight||(this.endHeight=this.__meta__.endHeight.min+500),this.cameraPath=this.viewer.entities.add({name:"螺旋路径线",polyline:{positions:new Cesium.CallbackProperty(function(t,i){for(var n=$u([e.targetLLA.lon,e.targetLLA.lat]),r=[],o=1;o<360;o++){var s=o-180,a=e.startRadius-o/360*(e.startRadius-e.endRadius),l=Xh(n,a/1e3,s).geometry.coordinates,u=e.heightOfPoint(o),c=Cesium.Cartesian3.fromDegrees(l[0],l[1],u);r.push(c)}return r},!1),width:1,material:Cesium.Color.RED}})}},t.prototype.heightOfPoint=function(e){var t=0,i=this.startHeight-this.endHeight,n=i/2,r=i/4,o=i/8;return t=e<=90?n/90*e:e<=180?n+r/90*(e-90):e<=270?n+r+o/90*(e-180):n+r+o+o/90*(e-270),this.startHeight-t},t.prototype.removePathLine=function(){this.cameraPath&&this.viewer.entities.contains(this.cameraPath)&&this.viewer.entities.remove(this.cameraPath)},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration)this.stopAnimation();else if(t>=this.beginTime){if(t-=this.beginTime,this.initTargetPosition(),!this.targetLLA)return;var i=$u([this.targetLLA.lon,this.targetLLA.lat]),n=t/this.duration*360-180,r=this.startRadius-t/this.duration*(this.startRadius-this.endRadius),o=Xh(i,r/1e3,n).geometry.coordinates,s=this.heightOfPoint(t/this.duration*360),a=Cesium.Cartesian3.fromDegrees(o[0],o[1],s);if(a&&this.targetPosition){var l=this.computerOrient(a,this.targetPosition);this.viewer.scene.camera.setView({destination:a,orientation:{heading:Cesium.Math.toRadians(l.heading+90),pitch:Cesium.Math.toRadians(l.pitch),role:Cesium.Math.toRadians(l.roll)}})}}},t.prototype.car3ToLonlat=function(e){var t=this.viewer.scene.globe.ellipsoid.cartesianToCartographic(e),i=Cesium.Math.toDegrees(t.latitude);return{lon:Cesium.Math.toDegrees(t.longitude),lat:i,alt:t.height}},t.prototype.vec1ToVec2Mat=function(e,t){var i=Cesium.Cartesian3.cross(e,t,new Cesium.Cartesian3(0,0,0)),n=Cesium.Math.acosClamped(Cesium.Cartesian3.dot(e,t)/(Cesium.Cartesian3.magnitude(e)*Cesium.Cartesian3.magnitude(t))),r=Cesium.Quaternion.fromAxisAngle(i,n,new Cesium.Quaternion(0,0,0,0));return Cesium.Matrix3.fromQuaternion(r,new Cesium.Matrix3)},t.prototype.computerOrient=function(e,t){var i,n,r=Cesium.Transforms.eastNorthUpToFixedFrame(e),o=Cesium.Quaternion.clone(Cesium.Quaternion.IDENTITY),s=(Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY)),a=Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),l=new Cesium.Cartesian3(0,0,0);return s=Cesium.Matrix4.getMatrix3(r,s),l=Cesium.Cartesian3.subtract(t,e,l),a=Cesium.Matrix3.inverse(s,a),l=Cesium.Matrix3.multiplyByVector(a,l,l),i=this.vec1ToVec2Mat(Cesium.Cartesian3.UNIT_X,Cesium.Cartesian3.normalize(l,l)),o=Cesium.Quaternion.fromRotationMatrix(i,o),n=Cesium.HeadingPitchRoll.fromQuaternion(o,n),{heading:Cesium.Math.toDegrees(n.heading),pitch:Cesium.Math.toDegrees(n.pitch),roll:Cesium.Math.toDegrees(n.roll)}},EX([em({name:"标绘元素",group:"",type:"displayTarget",order:9}),rm(),LX("design:type",qm),LX("design:paramtypes",[])],t.prototype,"target",null),EX([rm(),LX("design:type",Object)],t.prototype,"isexecuted",void 0),EX([rm(),LX("design:type",Object)],t.prototype,"cameraPath",void 0),EX([em({name:"开始高度",group:"",subGroup:"开始高度",subOrder:1,type:"cameraSlider",order:17,min:0,max:5e3,hiddenGroupName:!0}),LX("design:type",Number)],t.prototype,"startHeight",void 0),EX([em({name:"结束高度",group:"",subGroup:"结束高度",subOrder:2,type:"cameraSlider",order:18,min:0,max:5e3,hiddenGroupName:!0}),LX("design:type",Number)],t.prototype,"endHeight",void 0),EX([em({name:"开始半径",group:"",subGroup:"开始半径",subOrder:3,type:"cameraSlider",order:19,max:2e3,min:0,hiddenGroupName:!0}),LX("design:type",Number)],t.prototype,"startRadius",void 0),EX([em({name:"结束半径",group:"",subGroup:"结束半径",subOrder:4,type:"cameraSlider",order:20,max:2e3,min:0,hiddenGroupName:!0}),LX("design:type",Number)],t.prototype,"endRadius",void 0),t=EX([HR("SpiralAnimation"),LX("design:paramtypes",[])],t)}(zR),OX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),DX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},BX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},IX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return OX(t,e),Object.defineProperty(t.prototype,"target",{get:function(){return Yf.getGraph(this.targetId)},enumerable:!1,configurable:!0}),t.prototype.stopAnimation=function(){this.target.ent.model.runAnimations=!1},t.prototype.initAnimation=function(){},t.prototype.onTick=function(e){var t=e;t>=this.beginTime+this.duration?this.stopAnimation():t>=this.beginTime&&(this.target.ent.model.runAnimations=!0)},DX([rm(),BX("design:type",mR),BX("design:paramtypes",[])],t.prototype,"target",null),t=DX([HR("GxModelAnimation")],t)}(zR);!function(e){e.All="0",e.Pass="1",e.Furture="2",e.No="3"}(RW||(RW={}));var RX,NX=__webpack_require__(6763),kX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),FX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},HX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},YX=function(e){function t(){var t=e.call(this)||this;return t.title="路径动画",t.headingFix=0,t.pathMode=RW.No,t.cameraType="none",t.defaultMap=new Map,t.keyPositionMap=new Map,t.scratch=new Cesium.Matrix4,t.cameraHeight=0,t}return kX(t,e),Object.defineProperty(t.prototype,"target",{get:function(){return Yf.getGraph(this.targetId)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"targetId",{get:function(){return this._targetId},set:function(e){var t=this;this._targetId=e,this.targetSub=this.target.positionChanged.subscribe(function(e){t.polyLine.setCtrlPosition(0,t.target.ctrlPosition[0]),t.polyLine.setPrimitivePosition(t.polyLine._singleControlPosition)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"polyLine",{get:function(){return Yf.getGraph(this.polyLineId)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cameraHeight",{get:function(){return this._cameraHeight},set:function(e){this._cameraHeight=e,"custom"===this.cameraType&&this.setCamera()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cameraHeading",{get:function(){return this._cameraHeading},set:function(e){this._cameraHeading=e,this.setCamera()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cameraPitch",{get:function(){return this._cameraPitch},set:function(e){this._cameraPitch=e,this.setCamera()},enumerable:!1,configurable:!0}),t.prototype.onReload=function(){this.targetId=this.targetId},t.prototype.initAnimation=function(){if(NX.log("initAnimation"),this.keyPositionMap=new Map,this.headingFix=Number.parseFloat(this.headingFix.toString()),this.defaultMap=new Map,this.target instanceof sI?this.defaultValue=this.target.positionProperty:this.target.ent&&(this.defaultValue=this.target.ent.position),this.target instanceof mR?(this.defaultMap.set("heading",this.target.heading),this.defaultMap.set("pitch",this.target.pitch),this.defaultMap.set("roll",this.target.roll)):(this.target instanceof ck||this.target instanceof xR)&&this.defaultMap.set("rotation",this.target.rotation),this.polyLine&&(this.defaultPercent=this.polyLine.percent),!this.target.animationInitPropArray.includes("PathAnimation")){this.target.animationInitPropArray.push("PathAnimation");var e=this.polyLine.interopLine.evaluate(0);this.target instanceof sI?this.target.positionProperty=e:this.target.ent.position=e}},t.prototype.onTick=function(e){var t=0,i=0;if(!this.__meta__.cameraType.hidden)switch(this.cameraType){case"none":void 0!==this.viewer.trackedEntity&&(this.viewer.trackedEntity=void 0);break;case"follow":this.viewer.trackedEntity!==this.target.ent&&(this.viewer.trackedEntity=this.target.ent);break;case"first":this.viewer.trackedEntity!==this.target.ent&&(this.viewer.trackedEntity=this.target.ent),bX.getModelMatrix(this.viewer.trackedEntity,this.viewer.clock.currentTime,this.scratch),t=200,i=50,this.viewer.scene.camera.lookAtTransform(this.scratch,new Cesium.Cartesian3(-t,0,i));break;case"god":this.viewer.trackedEntity!==this.target.ent&&(this.viewer.trackedEntity=this.target.ent),bX.getModelMatrix(this.viewer.trackedEntity,this.viewer.clock.currentTime,this.scratch),i=5e3+this.cameraHeight,this.viewer.scene.camera.lookAtTransform(this.scratch,new Cesium.Cartesian3(-1,0,i));break;case"custom":this.viewer.trackedEntity!==this.target.ent&&(this.viewer.trackedEntity=this.target.ent),this.setCamera()}var n=e;if(n>=this.beginTime+this.duration){var r=YR.HoldEnd;this.fillBehavior===r||this.stopAnimation()}else if(n>this.beginTime){(n-=this.beginTime)<.01&&(n=.01);var o=this.polyLine.interopLine,s=void 0;this.polyLine.clampToGround;var a=o.evaluate(n/this.duration);if(s=this.target.ent.position instanceof Cesium.Cartesian3?this.target.ent.position:this.target.ent.position.getValue(),this.polyLine.clampToGround){var l=Cesium.Cartographic.fromCartesian(a),u=this.viewer.scene.globe.getHeight(l);l.height=u,a=this.viewer.scene.globe.ellipsoid.cartographicToCartesian(l);var c=Cesium.Cartographic.fromCartesian(s),h=this.viewer.scene.globe.getHeight(c);c.height=h,s=this.viewer.scene.globe.ellipsoid.cartographicToCartesian(c)}var p=this.computerOrient(s,a);if(Object.is(p.heading,NaN)||Object.is(p.pitch,NaN)||Object.is(p.roll,NaN))return;if(this.target instanceof mR||this.target instanceof xR)try{this.target instanceof mR?(this.target.ent.position=a,this.target.heading=p.heading+this.headingFix,this.target.pitch=p.pitch,this.target.resetOrientation()):(this.target.rotation=p.heading+this.headingFix,this.target.positionProperty=a)}catch(e){NX.log(e)}else if(this.target instanceof sI){var d=o.evaluate(n/this.duration);this.target.positionProperty=d}else{var f=o.evaluate(n/this.duration);this.target.ent.position=f}switch(this.pathMode){case RW.All:break;case RW.Pass:this.polyLine.percent=n/this.duration;break;case RW.Furture:this.polyLine.percent=-n/this.duration;break;case RW.No:this.polyLine.percent=0}this.target.tmpHeading=p.heading}},t.prototype.stopAnimation=function(){var e=this;this.target instanceof sI?this.target.positionProperty=this.defaultValue:this.target.ent&&(this.target.ent.position=this.defaultValue),this.defaultMap.forEach(function(t,i){e.target[i]=t}),this.polyLine&&(this.polyLine.percent=this.defaultPercent,this.polyLine.terraininteropLine=void 0),this.viewer.trackedEntity=void 0,this.target.animationInitPropArray=[]},t.prototype.setCamera=function(){if(this.target&&this.target.ent){bX.getModelMatrix(this.target.ent,this.viewer.clock.currentTime,this.scratch);var e=Cesium.Math.toRadians(this.cameraHeading),t=this.cameraPitch;-90===this.cameraPitch&&(t=-89.9);var i=Cesium.Math.toRadians(t),n=this.cameraHeight;this.viewer.camera.lookAtTransform(this.scratch,new Cesium.HeadingPitchRange(e,i,n))}},t.prototype.computerOrient=function(e,t){var i,n,r=Cesium.Transforms.eastNorthUpToFixedFrame(e),o=Cesium.Quaternion.clone(Cesium.Quaternion.IDENTITY),s=(Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY)),a=Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),l=new Cesium.Cartesian3(0,0,0);return s=Cesium.Matrix4.getMatrix3(r,s),l=Cesium.Cartesian3.subtract(t,e,l),a=Cesium.Matrix3.inverse(s,a),l=Cesium.Matrix3.multiplyByVector(a,l,l),i=this.vec1ToVec2Mat(Cesium.Cartesian3.UNIT_X,Cesium.Cartesian3.normalize(l,l)),o=Cesium.Quaternion.fromRotationMatrix(i,o),n=Cesium.HeadingPitchRoll.fromQuaternion(o,n),{heading:Cesium.Math.toDegrees(n.heading),pitch:Cesium.Math.toDegrees(n.pitch),roll:Cesium.Math.toDegrees(n.roll)}},t.prototype.vec1ToVec2Mat=function(e,t){var i=Cesium.Cartesian3.cross(e,t,new Cesium.Cartesian3(0,0,0)),n=Cesium.Math.acosClamped(Cesium.Cartesian3.dot(e,t)/(Cesium.Cartesian3.magnitude(e)*Cesium.Cartesian3.magnitude(t))),r=Cesium.Quaternion.fromAxisAngle(i,n,new Cesium.Quaternion(0,0,0,0));return Cesium.Matrix3.fromQuaternion(r,new Cesium.Matrix3)},t.prototype.destroy=function(){this.targetSub.unsubscribe()},FX([em({name:"标绘元素",group:"",type:"displayTarget",order:9}),rm(),HX("design:type",qm),HX("design:paramtypes",[])],t.prototype,"target",null),FX([rm(),HX("design:type",sn)],t.prototype,"targetSub",void 0),FX([em({name:"路径线",group:"",type:"displayTarget",order:9}),rm(),HX("design:type",eF),HX("design:paramtypes",[])],t.prototype,"polyLine",null),FX([em({name:"航向修正",group:"",type:"numberNew",order:3,min:-360,max:360}),HX("design:type",Number)],t.prototype,"headingFix",void 0),FX([em({name:"显示路径",type:"pOption",group:"",order:8,options:[{text:"显示",value:RW.All},{text:"显示经过的",value:RW.Pass},{text:"显示将要经过",value:RW.Furture},{text:"不显示",value:RW.No}]}),HX("design:type",String)],t.prototype,"pathMode",void 0),FX([em({name:"视角",type:"pOption",group:"",order:9,options:[{text:"无",value:"none"},{text:"跟随视角",value:"follow"},{text:"第一视角",value:"first"},{text:"上帝视角",value:"god"},{text:"自定义",value:"custom"}]}),HX("design:type",Object)],t.prototype,"cameraType",void 0),FX([em({name:"距离",group:"相机",subGroup:"",subOrder:1,type:"pathCameraSlider",order:17,min:0,max:1e6,hiddenGroupName:!0}),HX("design:type",Number),HX("design:paramtypes",[Number])],t.prototype,"cameraHeight",null),FX([em({name:"方向",group:"相机",subGroup:"",subOrder:2,type:"pathCameraParam",order:18,min:-1e6,max:1e6,hiddenGroupName:!0}),HX("design:type",Number),HX("design:paramtypes",[Number])],t.prototype,"cameraHeading",null),FX([em({name:"俯仰",group:"相机",subGroup:"",subOrder:3,type:"pathCameraParam",order:19,min:-1e6,max:1e6,hiddenGroupName:!0}),HX("design:type",Number),HX("design:paramtypes",[Number])],t.prototype,"cameraPitch",null),FX([rm(),HX("design:type",Object)],t.prototype,"scratch",void 0),FX([rm(),HX("design:type",Object)],t.prototype,"defaultValue",void 0),FX([rm(),HX("design:type",Object)],t.prototype,"defaultOrientation",void 0),FX([rm(),HX("design:type",Object)],t.prototype,"defaultMap",void 0),FX([rm(),HX("design:type",Map)],t.prototype,"keyPositionMap",void 0),FX([rm(),HX("design:type",Object)],t.prototype,"defaultPercent",void 0),t=FX([HR("PathAnimation"),HX("design:paramtypes",[])],t)}(zR),jX=__webpack_require__(6763),UX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),GX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},QX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},zX=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},WX=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},XX=function(e){function t(){var t=e.apply(this,WX([],zX(arguments),!1))||this;return t.defaultMap=new Map,t}return UX(t,e),Object.defineProperty(t.prototype,"target",{get:function(){return Yf.getGraph(this.targetId)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fllowTarget",{get:function(){return Yf.getGraph(this.followTargetId)},enumerable:!1,configurable:!0}),t.prototype.stopAnimation=function(){var e=this;this.target instanceof sI?this.target.positionProperty=this.defaultValue:this.target.ent&&(this.target.ent.position=this.defaultValue),this.defaultMap.forEach(function(t,i){e.target[i]=t})},t.prototype.initAnimation=function(){var e,t,i,n,r,o;this.defaultMap=new Map,this.target instanceof sI?this.defaultValue=this.target.positionProperty:this.target.ent&&(this.defaultValue=this.target.ent.position,this.target instanceof mR?(this.defaultMap.set("heading",this.target.heading),this.defaultMap.set("pitch",this.target.pitch),this.defaultMap.set("roll",this.target.roll)):(this.target instanceof ck||this.target instanceof xR)&&this.defaultMap.set("rotation",this.target.rotation)),this.fllowTarget.tmpHeading=0,this.preheading=this.getFollowHeading();var s=(null===(e=this.target)||void 0===e?void 0:e.ctrlPosition[0].lon)-(null===(t=this.fllowTarget)||void 0===t?void 0:t.ctrlPosition[0].lon),a=(null===(i=this.target)||void 0===i?void 0:i.ctrlPosition[0].lat)-(null===(n=this.fllowTarget)||void 0===n?void 0:n.ctrlPosition[0].lat),l=(null===(r=this.target)||void 0===r?void 0:r.ctrlPosition[0].alt)-(null===(o=this.fllowTarget)||void 0===o?void 0:o.ctrlPosition[0].alt);this.positionsub=[s,a,l]},t.prototype.getFollowHeading=function(){return this.fllowTarget instanceof mR?this.fllowTarget.heading:this.fllowTarget instanceof xR||this.fllowTarget instanceof ck?this.fllowTarget.rotation:this.fllowTarget.tmpHeading},t.prototype.onTick=function(e){var t,i,n=e;if(n>=this.beginTime+this.duration){var r=YR.HoldEnd;this.fillBehavior===r||this.stopAnimation()}else if(n>this.beginTime){n-=this.beginTime;var o=void 0;if(this.fllowTarget instanceof sI){var s=null===(t=this.fllowTarget)||void 0===t?void 0:t.ctrlPosition[0];o=[s.lon,s.lat,s.alt]}else{var a=null===(i=this.fllowTarget)||void 0===i?void 0:i.ent.position._value;o=km.cartesian2lonlat(a)}var l=[o[0]+this.positionsub[0],o[1]+this.positionsub[1],o[2]+this.positionsub[2]],u=Cesium.Cartesian3.fromDegrees(l[0],l[1],l[2]);if(this.lastpos){var c=km.lonlat2Cartesian(o,o[2]),h=this.getFollowHeading()-this.preheading,p=this.RotateMatrix(c,h),d=Cesium.Matrix3.multiplyByVector(p,u,new Cesium.Cartesian3),f=this.computerOrient(this.lastpos,u);if(!f)return;if(this.target instanceof mR||this.target instanceof xR)try{this.lastpos&&(this.target instanceof mR?(this.target.ent.position=d,this.target.heading=f.heading,this.target.pitch=f.pitch,this.target.resetOrientation()):this.target.positionProperty=u)}catch(e){jX.log(e)}else this.target instanceof sI?this.target.positionProperty=d:this.target.ent.position=d;this.target.tmpHeading=f.heading}this.lastpos=u}},t.prototype.computerOrient=function(e,t){if(Cesium.Cartesian3.equals(e,t))return null;var i,n,r=Cesium.Transforms.eastNorthUpToFixedFrame(e),o=Cesium.Quaternion.clone(Cesium.Quaternion.IDENTITY),s=(Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY)),a=Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),l=new Cesium.Cartesian3(0,0,0);return s=Cesium.Matrix4.getMatrix3(r,s),l=Cesium.Cartesian3.subtract(t,e,l),a=Cesium.Matrix3.inverse(s,a),l=Cesium.Matrix3.multiplyByVector(a,l,l),i=this.vec1ToVec2Mat(Cesium.Cartesian3.UNIT_X,Cesium.Cartesian3.normalize(l,l)),o=Cesium.Quaternion.fromRotationMatrix(i,o),n=Cesium.HeadingPitchRoll.fromQuaternion(o,n),{heading:Cesium.Math.toDegrees(n.heading),pitch:Cesium.Math.toDegrees(n.pitch),roll:Cesium.Math.toDegrees(n.roll)}},t.prototype.RotateMatrix=function(e,t){var i=Cesium.Math.toRadians(t),n=Math.sin(i),r=Math.cos(i),o=Math.sqrt(e.x*e.x+e.y*e.y+e.z*e.z),s=e.x/o,a=e.y/o,l=e.z/o,u=[r+(1-r)*s*s,-n*l+(1-r)*s*a,n*a+(1-r)*s*l,n*l+(1-r)*s*a,r+(1-r)*a*a,-n*s+(1-r)*a*l,-n*a+(1-r)*s*l,n*s+(1-r)*a*l,r+(1-r)*l*l];return Cesium.Matrix3.fromArray(u)},t.prototype.vec1ToVec2Mat=function(e,t){var i=Cesium.Cartesian3.cross(e,t,new Cesium.Cartesian3(0,0,0)),n=Cesium.Math.acosClamped(Cesium.Cartesian3.dot(e,t)/(Cesium.Cartesian3.magnitude(e)*Cesium.Cartesian3.magnitude(t))),r=Cesium.Quaternion.fromAxisAngle(i,n,new Cesium.Quaternion(0,0,0,0));return Cesium.Matrix3.fromQuaternion(r,new Cesium.Matrix3)},GX([rm(),QX("design:type",Object)],t.prototype,"positionsub",void 0),GX([rm(),QX("design:type",Object)],t.prototype,"lastpos",void 0),GX([rm(),QX("design:type",Object)],t.prototype,"preheading",void 0),GX([rm(),QX("design:type",Object)],t.prototype,"defaultMap",void 0),GX([rm(),QX("design:type",Object)],t.prototype,"defaultValue",void 0),GX([em({name:"标绘元素",group:"",type:"displayTarget",order:9}),rm(),QX("design:type",qm),QX("design:paramtypes",[])],t.prototype,"target",null),GX([em({name:"跟随元素",group:"",type:"displayTarget",order:9}),rm(),QX("design:type",qm),QX("design:paramtypes",[])],t.prototype,"fllowTarget",null),t=GX([HR("TargetFllowAnimation")],t)}(zR);!function(e){e.LefttoRight="0",e.ToptoBottom="1"}(RX||(RX={}));var VX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),JX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},KX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ZX=function(e){function t(){var t=e.call(this)||this;return t.maskBehavior=RX.LefttoRight,t}return VX(t,e),Object.defineProperty(t.prototype,"target",{get:function(){return Yf.getGraph(this.targetId)},enumerable:!1,configurable:!0}),t.prototype.initAnimation=function(){},t.prototype.onTick=function(e){var t=e;switch(this.maskBehavior){case RX.LefttoRight:this.target.showRange=[0,0,t/this.duration*1,1];break;case RX.ToptoBottom:this.target.showRange=[0,(this.duration-t)/this.duration*1,1,1]}},t.prototype.stopAnimation=function(){this.target.showRange=[0,0,1,1]},JX([em({name:"蒙版方向",type:"pOption",group:"",order:4,options:[{text:"从左至右",value:RX.LefttoRight},{text:"从上至下",value:RX.ToptoBottom}]}),KX("design:type",String)],t.prototype,"maskBehavior",void 0),JX([rm(),KX("design:type",BI),KX("design:paramtypes",[])],t.prototype,"target",null),t=JX([HR("PolygonMaskAnimation"),KX("design:paramtypes",[])],t)}(zR),qX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),$X=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},eV=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},tV=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},iV=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},nV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qX(t,e),t.prototype.stopAnimation=function(){var e;null===(e=this.target)||void 0===e||e.setPrimitivePosition(this.ogigonalPositions)},t.prototype.initAnimation=function(){var e,t=[0],i=[];this.ogigonalPositions=iV([],tV(this.target._singleControlPosition),!1);var n=this.target.minPointNum,r=null===(e=this.target)||void 0===e?void 0:e._singleControlPosition;if(3==n){var o=Cesium.Cartesian3.lerp(this.target._singleControlPosition[0],this.target._singleControlPosition[1],.5,new Cesium.Cartesian3);(r=[]).push(o),r.push.apply(r,iV([],tV(this.target._singleControlPosition.slice(n-1)),!1))}if(r){for(var s=0,a=0;a<r.length-1;a++){var l=Cesium.Cartesian3.distance(r[a],r[a+1]);i.push(l),s+=l}for(a=0;a<i.length;a++)t.push(i[a]/s+t[a]);this.interopLine=Cesium.HermiteSpline.createNaturalCubic({times:t,points:r})}},t.prototype.onTick=function(e){var t,i=e;if(i<=this.beginTime+this.duration&&i>=this.beginTime){i-=this.beginTime;var n=this.target.minPointNum,r=i/this.duration,o=[];3==n?o.push(this.ogigonalPositions[0],this.ogigonalPositions[1]):o.push(this.ogigonalPositions[0]);for(var s=this.ogigonalPositions.length-(n-1),a=0;a<s;a++){var l=this.interopLine.evaluate((a+1)/s*r);o.push(l)}null===(t=this.target)||void 0===t||t.setPrimitivePosition(o)}},Object.defineProperty(t.prototype,"target",{get:function(){return Yf.getGraph(this.targetId)},enumerable:!1,configurable:!0}),$X([rm(),eV("design:type",Cesium.LinearSpline)],t.prototype,"interopLine",void 0),$X([rm(),eV("design:type",Array)],t.prototype,"ogigonalPositions",void 0),$X([em({name:"标绘元素",group:"",type:"displayTarget",order:9}),rm(),eV("design:type",AQ),eV("design:paramtypes",[])],t.prototype,"target",null),t=$X([HR("ArrowDirectAnimation")],t)}(zR),rV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),oV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},sV=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},aV=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},lV=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},uV=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},cV=function(e){function t(){var t=e.apply(this,lV([],aV(arguments),!1))||this;return t.pathMode=RW.Pass,t.keyPositionMap=new Map,t}return rV(t,e),Object.defineProperty(t.prototype,"target",{get:function(){return Yf.getGraph(this.targetId)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"polyLine",{get:function(){return Yf.getGraph(this.polyLineId)},enumerable:!1,configurable:!0}),t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration){var i=YR.HoldEnd;this.fillBehavior==i?this.target instanceof sI?this.target.positionProperty=this.entPosition:this.target.ent.position=this.entPosition:this.stopAnimation()}else if(t>this.beginTime){if(this.target instanceof sI){var n=this.sampledProperty.getValue(this.getCesiumAnimationTime(e));this.target.positionProperty=n}else this.target.ent.position=this.sampledProperty,this.target.ent.orientation=this.orientationProperty;switch(this.pathMode){case RW.All:break;case RW.Pass:this.polyLinePosition.push(this.sampledProperty.getValue(this.getCesiumAnimationTime(e)));break;case RW.Furture:var r=t,o=[];o.push(this.sampledProperty.getValue(this.getCesiumAnimationTime(e))),this.keyPositionMap.forEach(function(e,t){t>=r&&o.push(e)}),this.polyLinePosition=o;case RW.No:}}},t.prototype.initAnimation=function(){var e,t,i=this;this.keyPositionMap=new Map,this.sampledProperty=new Cesium.SampledPositionProperty,this.target instanceof sI?this.defaultValue=this.target.positionProperty:this.target.ent&&(this.defaultValue=this.target.ent.position,this.defaultOrientation=this.target.ent.orientation);for(var n=this.polyLine.calcuteShape(this.polyLine._singleControlPosition,Cesium.JulianDate.now()),r=[0],o=0;o<n.length-1;o++){var s=Cesium.Cartesian3.distance(n[o],n[o+1]);r.push(s)}var a=0;try{for(var l=uV(r),u=l.next();!u.done;u=l.next()){a+=u.value}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}var c=Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate);for(o=0;o<n.length;o++){var h=r[o]/a*this.duration,p=Cesium.JulianDate.addSeconds(c,h,new Cesium.JulianDate),d=(c=p).secondsOfDay-this.beginTime-this.animationBaseTime.secondsOfDay;this.keyPositionMap.set(d,n[o]),this.sampledProperty.addSample(p,n[o])}switch(this.entPosition=n[n.length-1],this.orientationProperty=new Cesium.VelocityOrientationProperty(this.sampledProperty),this.defaultPolyLinePosition=this.polyLine.ent.polyline.positions,this.polyLinePosition=[],this.pathMode){case RW.All:this.polyLinePosition=n;break;case RW.Pass:break;case RW.Furture:this.polyLinePosition=lV([],aV(n),!1);case RW.No:}this.polyLine.ent.polyline.positions=new Cesium.CallbackProperty(function(){return i.polyLinePosition},!1)},t.prototype.stopAnimation=function(){this.target instanceof sI?this.target.positionProperty=this.defaultValue:(this.target.ent.position=this.defaultValue,this.target.ent.orientation=this.defaultOrientation),this.polyLine.ent.polyline.positions=this.defaultPolyLinePosition},oV([em({name:"标绘元素",group:"",type:"displayTarget",order:9}),rm(),sV("design:type",qm),sV("design:paramtypes",[])],t.prototype,"target",null),oV([em({name:"路径线",group:"",type:"displayTarget",order:9}),rm(),sV("design:type",eF),sV("design:paramtypes",[])],t.prototype,"polyLine",null),oV([rm(),sV("design:type",Cesium.SampledPositionProperty)],t.prototype,"sampledProperty",void 0),oV([rm(),sV("design:type",Object)],t.prototype,"defaultValue",void 0),oV([rm(),sV("design:type",Object)],t.prototype,"defaultOrientation",void 0),oV([rm(),sV("design:type",Cesium.VelocityOrientationProperty)],t.prototype,"orientationProperty",void 0),oV([rm(),sV("design:type",Object)],t.prototype,"defaultPolyLinePosition",void 0),oV([rm(),sV("design:type",Cesium.Cartesian3)],t.prototype,"entPosition",void 0),oV([rm(),sV("design:type",Array)],t.prototype,"polyLinePosition",void 0),oV([rm(),sV("design:type",Map)],t.prototype,"keyPositionMap",void 0),t=oV([HR("PathShowAnimation")],t)}(zR),hV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),pV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},dV=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},fV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hV(t,e),Object.defineProperty(t.prototype,"viewerContainer",{get:function(){return this.viewer.container},enumerable:!1,configurable:!0}),t.prototype.createSampledProperty=function(){this.sampledProperty=new Cesium.SampledProperty(Number)},t.prototype.stopAnimation=function(){this.viewerContainer.style.opacity="1"},t.prototype.initAnimation=function(){this.createSampledProperty(),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),1),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration/2,new Cesium.JulianDate),0),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),1)},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration)this.stopAnimation();else if(t>=this.beginTime){var i=this.getCurrentValue(e);this.viewerContainer.style.opacity=i.toString()}},t.prototype.getCurrentValue=function(e){var t=e;return t<this.beginTime||t>this.beginTime+this.duration?1:this.sampledProperty.getValue(this.getCesiumAnimationTime(e))},pV([rm(),dV("design:type",Cesium.SampledProperty)],t.prototype,"sampledProperty",void 0),t=pV([HR("PageShowAnimation")],t)}(zR),mV=__webpack_require__(6763),gV=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},yV=function(){function e(e){this.both2DAnd3DSub$=new am,this.both2D3DOperateList=[],this.both2D3DActionSub$=new am,this.count=0,this.geoGraph={LineString:{name:"",ossUrl:"",resourceId:"",obj:"GeojsonPolyline",color:"#2bfff8",ctls:new Array,holes:new Array,alpha:.7,isVectorData:!1},MultiLineString:{name:"",ossUrl:"",resourceId:"",obj:"GeojsonMultiPolyline",color:"#2bfff8",ctls:new Array,holes:new Array,alpha:.7,isVectorData:!1},Polygon:{name:"",ossUrl:"",resourceId:"",obj:"GeojsonPolygon",color:"#2bfff8",ctls:new Array,holes:new Array,alpha:.7,isVectorData:!1},MultiPolygon:{name:"",ossUrl:"",resourceId:"",obj:"GeojsonMultiPolygon",color:"#2bfff8",ctls:new Array,holes:new Array,alpha:.7,isVectorData:!1}},this.serviceManager=e,this._viewer=e.viewer}return e.prototype.createPlot=function(e,t,i){var n=this;if(void 0===i&&(i=!0),mV.log("create plot begin >>>>>>>>>>>>>>"),e){if(["geojson","kml"].indexOf(e.kind)>-1)return!0;if(["html","richText","picCollection","videoBox","newRichText"].includes(e.kind))return this.serviceManager.htmlDrawService.currentBoxType=e.kind,"newRichText"!==e.kind&&(this.serviceManager.htmlDrawService.isDrawPanelShow=!0),"newRichText"===e.kind&&this.serviceManager.htmlDrawService.initParam(e),void("videoBox"===e.kind&&(this.serviceManager.htmlDrawService.currentBoxPath=e.original_url));var r,o=null;if(r=e.params&&e.params.obj&&"Text"==e.params.obj?e.params.text?this.serviceManager.plotService.createEntityName(e.params.text):void 0:e.label?e.extension?this.serviceManager.plotService.createEntityName(e.label.replace(e.extension,"")):this.serviceManager.plotService.createEntityName(e.label):void 0,r=ZB.createEntityName(r,this.serviceManager.plotService.gm.graphList.map(function(e){return e.name})),"jb"===e.kind||"jbnew"===e.kind)o={obj:"JB",code:e.jbId,offsetX:e.data.offsetX,offsetY:e.data.offsetY,showMode:t?"screen":"object",name:r};else if("model"==e.kind){o={obj:"Model",uri:"".concat(e.path),minimumPixelSize:20,alpha:1,icon:"gp-moxing"},this.plot_icon="gp-moxing",o.uri&&""!==o.uri||(i=!1)}else if(e.extension){switch(e.extension.toLowerCase()){case".tif":case".tiff":return void this.serviceManager.drawbigfileService.draw(e);case".zip":return mV.log("tif,zip>>>",e),void(e.service_info.serviceUrl?this.serviceManager.drawbigfileService.draw(e):mV.warn("资源不可用"));case".glb":(o={obj:"Model",uri:e.original_url,scalev:100,minimumPixelSize:20,alpha:1,icon:"gp-moxing"}).uri&&""!==o.uri||(i=!1),mV.warn("无效的参数,请认真阅读接口指南");break;case".bmp":case".ico":case".svg":case".png":case".jpeg":case".jpg":o={obj:"PinImage",icon:"gp-tuding"},e.path&&-1===e.path.indexOf("http")?o.image="".concat(this.serviceManager.plotService.picPublicPath).concat(e.path):o.image=e.original_url,t||(o.obj="Image",o.icon="gp-tupian1");break;case".gif":o={obj:"HtmlImage",icon:"gp-tuding"},e.path&&-1===e.path.indexOf("http")?o.imageUrl="".concat(this.serviceManager.plotService.picPublicPath).concat(e.path):o.imageUrl=e.path;break;case".ogg":case".mp3":var s=3e3,a=this.serviceManager.musicService.addMusic(e);if(a.audioObj){a.audioObj.load();var l=function(){s=Math.ceil(1e3*Number(a.audioObj.duration));var e={isAudio:!0,type:XB,animation:{type:"AudioAnimation",keyframes:[{val:0},{val:s}]},title:a.name,icon:"gv-Route",image:"视角动画图片/音效.png",webp:"视角动画WEBP文件/螺旋.webp"};n.addAnimation(e),a.audioObj.removeEventListener("canplay",l)};a.audioObj.addEventListener("canplay",l)}return}this.plot_icon=o.icon}else o=JB.deepClone(e.params),this.plot_icon=e.path;var u=r.lastIndexOf(".");return o.name=-1!==u?r.slice(0,r.lastIndexOf(".")):r,e.gvolType&&(o.gvolType=e.gvolType),i?this.createGraph(o):o}},e.prototype.createDraw=function(e){var t;if(e)if(Array.isArray(e))mV.warn("传入的feature,不应该是数组类型。");else{var i={gvolType:e.gvolType,ctls:new Array,holes:new Array},n=function(e,t){var i,n,r,o,s,a,l,u,c,h,p,d;if(t.holes.length=0,t.ctls.length=0,!Array.isArray(e)){if(e.geometry&&e.geometry.coordinates){var f=Nj(e.geometry.coordinates);if(1===f){var m=[],g=e.geometry.coordinates;m.push(new Vu(g[0],g[1],g[2])),t.ctls.push(new Vu(g[0],g[1],g[2])),t.holes.push(m)}else if(2===f){m=[];try{for(var y=Ej(e.geometry.coordinates),_=y.next();!_.done;_=y.next())g=_.value,m.push(new Vu(g[0],g[1],g[2])),t.ctls.push(new Vu(g[0],g[1],g[2]))}catch(e){i={error:e}}finally{try{_&&!_.done&&(n=y.return)&&n.call(y)}finally{if(i)throw i.error}}t.holes.push(m)}else if(3===f)try{for(var A=Ej(e.geometry.coordinates),v=A.next();!v.done;v=A.next()){g=v.value,m=[];try{for(var C=(s=void 0,Ej(g)),b=C.next();!b.done;b=C.next()){var w={lon:(O=b.value)[0],lat:O[1]};m.push(w),t.ctls.push(w)}}catch(e){s={error:e}}finally{try{b&&!b.done&&(a=C.return)&&a.call(C)}finally{if(s)throw s.error}}t.holes.push(m)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(o=A.return)&&o.call(A)}finally{if(r)throw r.error}}else if(4===f)try{for(var x=Ej(e.geometry.coordinates),S=x.next();!S.done;S=x.next()){g=S.value;try{for(var M=(c=void 0,Ej(g)),P=M.next();!P.done;P=M.next()){var E=P.value;m=[];try{for(var L=(p=void 0,Ej(E)),T=L.next();!T.done;T=L.next()){var O;w={lon:(O=T.value)[0],lat:O[1]},m.push(w),t.ctls.push(w)}}catch(e){p={error:e}}finally{try{T&&!T.done&&(d=L.return)&&d.call(L)}finally{if(p)throw p.error}}t.holes.push(m)}}catch(e){c={error:e}}finally{try{P&&!P.done&&(h=M.return)&&h.call(M)}finally{if(c)throw c.error}}}}catch(e){l={error:e}}finally{try{S&&!S.done&&(u=x.return)&&u.call(x)}finally{if(l)throw l.error}}}else e._ctrlPosition?(t.ctls=Array.from(e._ctrlPosition),e.holes&&(t.holes=Array.from(e.holes))):Pj.warn("传入的feature,feature.geometry 参数无效。");return t}}(e,JSON.parse(JSON.stringify(i)));Object.assign(e,n),t=this.serviceManager.plotService.draw(e,"gp-tubiaodian",e.name,!1)}return t},e.prototype.createDrawGeojson=function(e,t,i){var n=this;void 0===i&&(i=!1),this.count=0,Object.keys(this.geoGraph).forEach(function(e){n.geoGraph[e].isVectorData=!!i});var r=[];if(!e.features)return mV.log("格式有误"),r;var o=Dj(e.features);if(o){if(o.Point.length>0&&r.push(this.drawObj(o.Point,t,"Point")),o.MultiPoint.length>0&&r.push(this.drawObj(o.MultiPoint,t,"MultiPoint")),1===o.LineString.length&&0===o.MultiLineString.length&&r.push(this.drawObj(o.LineString,t,"LineString")),1===o.Polygon.length&&0===o.MultiPolygon.length&&r.push(this.drawObj(o.Polygon,t,"Polygon")),o.MultiLineString.length>0||o.LineString.length>1){var s=o.MultiLineString.concat(o.LineString);r.push(this.drawObj(s,t,"MultiLineString"))}if(o.MultiPolygon.length>0||o.Polygon.length>1){s=o.MultiPolygon.concat(o.Polygon);r.push(this.drawObj(s,t,"MultiPolygon"))}}return r},e.prototype.drawObj=function(e,t,i){var n;switch(i){case"Point":n=this.drawPoint(e,t);break;case"MultiPoint":n=this.drawMultiPoint(e,t);break;case"LineString":n=this.drawLineString(e,t);break;case"MultiLineString":n=this.drawMultiLineString(e,t);break;case"Polygon":n=this.drawPolygon(e,t);break;case"MultiPolygon":n=this.drawMultiPolygon(e,t)}return n},e.prototype.addAnimation=function(e,t,i){var n,r,o,s,a=this;mV.log("animationItem>>>>>>>>>>>>>>",e);var l=this.serviceManager.animationService.cloneAnimation(e.animation);l.image=e.image,l.title=e.title,1==l.keyframes.length&&(l.keyframes[0].shape="point"),l.viewer=this._viewer,l.startState||(l.startState=yW.withPrevious);var u=function(){l.label=e.title,l.id=ST(),a.serviceManager.animationService.rebuildAnimation(),a.serviceManager.animationService.showGlobalTimeLine=!1};if(l instanceof fV){var c=l;return u(),l}if(e.isHtml)return l instanceof GW&&mV.log("ani",l),u(),l;if(e.isGeojson){var h=void 0;if(this.serviceManager.geojsonService.geojsonList.length&&(h=this.serviceManager.geojsonService.geojsonList.filter(function(e){return e.id===t})[0]),h||(h=this.serviceManager.geojsonService.currentGeojson),l instanceof tX)if(h)(c=l).dataSourceName=h.id,c.geojsonDataSource=h.cesiumDataSource;return u(),l}if(e.isTif){var p=this.serviceManager.drawbigfileService.currentFile;if(l instanceof ZR)(c=l).targetId=p.id;return u(),l}if(e.isAudio){var d=this.serviceManager.musicService.currentMusic;if(l instanceof VW)(c=l).targetId=d.id;return u(),l}if(l instanceof dX)return(c=l).set(),u(),l;if(l instanceof oX)return(c=l).set(),u(),l;if(l instanceof uX)return(c=l).set(),u(),l;if(l instanceof yX){(c=l).set();var f,m=this.serviceManager.plotService.createEntityName("相机漫游"),g=Math.ceil(this._viewer.camera.positionCartographic.height)/50,y=this.serviceManager.plotService.gm.create({obj:"Polyline",color:"#f00",name:m,interplate:!0,clampToGround:!1,defaultHeight:g}).graph,_=function(e){y==e&&(u(),y.defaultHeight=void 0),f.unsubscribe()};f=this.serviceManager.plotService.gm.editor.onCreateFinished.subscribe(_),c.polyLineId=y.id}else{if(null==e.type&&l instanceof CX){var A,v=l,C=this.serviceManager.plotService.createEntityName("路径凝视"),b=Math.ceil(this._viewer.camera.positionCartographic.height)/50;this.serviceManager.plotService.gm.editor.pickTypes=[ok,nH,sQ,qI,mR],this.serviceManager.plotService.gm.editor.pickString="请选择凝视元素或绘制一个元素",this.serviceManager.plotService.gm.editor.startPickTarget=!0;var w=function(e){if(e){if(e instanceof Cesium.Cartesian3){var t=a._viewer.scene.globe.ellipsoid.cartesianToCartographic(e),i=Cesium.Math.toDegrees(t.latitude),n=Cesium.Math.toDegrees(t.longitude),r=t.height;if(!Cesium.defined(e))return;var o=a.serviceManager.plotService.gm.editor.layerId,s={obj:"Point",color:"#ED6F00",name:"图标点",_ctrlPosition:[{lon:n,lat:i,alt:r,time:void 0}]},l=new ok(s,a._viewer,o);for(var c in s)l[c]=s[c];l instanceof hI?l.initCtls(!1):l.initCtls(),l.initShape(),a.serviceManager.plotService.gm.editor.draw(l.ent),e=l}a.serviceManager.plotService.gm.graphList.indexOf(e.ent)<0&&(e.ent.graph.iconName="gp-tubiaodian",a.serviceManager.plotService.gm.graphList.push(e.ent),a.serviceManager.plotService.isRefresh.next([e.ent.graph])),v.targetId=e.id;var h,p=a.serviceManager.plotService.gm.create({obj:"Polyline",color:"#f00",name:C,interplate:!0,clampToGround:!1,defaultHeight:b}).graph;v.polyLineId=p.id,h=a.serviceManager.plotService.gm.editor.onCreateFinished.subscribe(function(e){p==e&&(u(),p.defaultHeight=void 0),h.unsubscribe()}),A.unsubscribe()}};return A=this.serviceManager.plotService.gm.editor.pickCompleted$.subscribe(w),l}if(null==e.type&&l instanceof MX){var x,S=l;this.serviceManager.plotService.gm.editor.pickTypes=[ok,nH,sQ,qI,mR],this.serviceManager.plotService.gm.editor.startPickTarget=!0,this.serviceManager.plotService.gm.editor.pickString="请选择环绕凝视元素或绘制一个元素";w=function(e){if(e){if(e instanceof Cesium.Cartesian3){var t=a._viewer.scene.globe.ellipsoid.cartesianToCartographic(e),i=Cesium.Math.toDegrees(t.latitude),n=Cesium.Math.toDegrees(t.longitude);t.height;if(!Cesium.defined(e))return;var r=a.serviceManager.plotService.gm.editor.layerId,o={obj:"Point",color:"#ED6F00",name:"图标点",_ctrlPosition:[{lon:n,lat:i,alt:0,time:void 0}]},s=new ok(o,a._viewer,r);for(var l in o)s[l]=o[l];s instanceof hI?s.initCtls(!1):s.initCtls(),s.initShape(),a.serviceManager.plotService.gm.editor.draw(s.ent),e=s}if(a.serviceManager.plotService.gm.graphList.indexOf(e.ent)<0&&(e.ent.graph.iconName="gp-tubiaodian",a.serviceManager.plotService.gm.graphList.push(e.ent),a.serviceManager.plotService.isRefresh.next([e.ent.graph])),S.targetId=e.id,a._viewer.terrainProvider.availability){var c=a._viewer.terrainProvider.availability._maximumLevel?a._viewer.terrainProvider.availability._maximumLevel:10,h=[Cesium.Cartographic.fromDegrees(e.ctrlPosition[0].lon,e.ctrlPosition[0].lat)];Cesium.sampleTerrain(a._viewer.terrainProvider,c,h).then(function(e){if(e[0].height){var t=Math.ceil(e[0].height);S.__meta__.lineHeight.min=t,S.__meta__.lineHeight.max=t+2e4}})}S.lineHeight=S.__meta__.lineHeight.min+400,S.circleRadius=1500,u(),x.unsubscribe()}};return x=this.serviceManager.plotService.gm.editor.pickCompleted$.subscribe(w),l}if(null==e.type&&l instanceof TX){var M,P=l;this.serviceManager.plotService.createEntityName("螺旋动画");P.startRadius=2e3,P.endRadius=500,this.serviceManager.plotService.gm.editor.pickTypes=[ok,nH,sQ,qI,mR],this.serviceManager.plotService.gm.editor.startPickTarget=!0,this.serviceManager.plotService.gm.editor.pickString="请选择螺旋凝视元素或绘制一个元素";w=function(e){if(e){if(e instanceof Cesium.Cartesian3){var t=a._viewer.scene.globe.ellipsoid.cartesianToCartographic(e),i=Cesium.Math.toDegrees(t.latitude),n=Cesium.Math.toDegrees(t.longitude);t.height;if(!Cesium.defined(e))return;var r=a.serviceManager.plotService.gm.editor.layerId,o={obj:"Point",color:"#ED6F00",name:"图标点",_ctrlPosition:[{lon:n,lat:i,alt:0,time:void 0}]},s=new ok(o,a._viewer,r);for(var l in o)s[l]=o[l];s instanceof hI?s.initCtls(!1):s.initCtls(),s.initShape(),a.serviceManager.plotService.gm.editor.draw(s.ent),e=s}if(a.serviceManager.plotService.gm.graphList.indexOf(e.ent)<0&&(e.ent.graph.iconName="gp-tubiaodian",a.serviceManager.plotService.gm.graphList.push(e.ent),a.serviceManager.plotService.isRefresh.next([e.ent.graph])),a._viewer.terrainProvider.availability){var c=a._viewer.terrainProvider.availability._maximumLevel?a._viewer.terrainProvider.availability._maximumLevel:10,h=[Cesium.Cartographic.fromDegrees(e.ctrlPosition[0].lon,e.ctrlPosition[0].lat)];Cesium.sampleTerrain(a._viewer.terrainProvider,c,h).then(function(e){if(e[0].height){var t=Math.ceil(e[0].height);P.__meta__.startHeight.min=t,P.__meta__.startHeight.max=t+5e3,P.__meta__.endHeight.min=t,P.__meta__.endHeight.max=t+5e3}})}P.startHeight=P.__meta__.startHeight.min+2500,P.endHeight=P.__meta__.endHeight.min+500,P.targetId=e.id,u(),M.unsubscribe()}};return M=this.serviceManager.plotService.gm.editor.pickCompleted$.subscribe(w),l}if(l instanceof XX){var E,L=this.serviceManager.plotService.gm.editor.currentEditGraphList[0],T=l;this.serviceManager.plotService.createEntityName("跟随动画");this.serviceManager.plotService.gm.editor.pickTypes=[ok,ck,xR,nH,sQ,qI,mR],this.serviceManager.plotService.gm.editor.startPickTarget=!0,this.serviceManager.plotService.gm.editor.pickString="请选择跟随元素";w=function(e){if(e)return e instanceof Cesium.Cartesian3?(E.unsubscribe(),void mV.log("未选中元素,动画取消")):void(e!=L?(a.serviceManager.plotService.gm.graphList.indexOf(e.ent)<0&&(a.serviceManager.plotService.gm.graphList.push(e.ent),a.serviceManager.plotService.isRefresh.next([e.ent.graph])),T.followTargetId=e.id,T.targetId=L.id,u(),E.unsubscribe()):mV.log("不能跟随自身,动画取消"))};return E=this.serviceManager.plotService.gm.editor.pickCompleted$.subscribe(w),l}var O;if(!(O=t?this.serviceManager.plotService.gm.editor.currentEditGraphList.filter(function(e){return e.id===t})[0]:this.serviceManager.plotService.gm.editor.currentEditGraphList[0]))return;if(l instanceof ZR)(c=l).targetId=O.id,u();else if(l instanceof IX){(c=l).targetId=O.id,u()}else if(l instanceof ZX){(c=l).targetId=O.id,u()}else if(l instanceof nV){(c=l).targetId=O.id,u()}else if(l instanceof YX){try{for(var D=gV(this.serviceManager.animationService.allAnimation),B=D.next();!B.done;B=D.next()){var I=B.value;try{for(var R=(o=void 0,gV(I)),N=R.next();!N.done;N=R.next()){var k=N.value;if(k instanceof YX&&k.target==O)return void mV.log("该元素已经包含路径动画,禁止重复创建!")}}catch(e){o={error:e}}finally{try{N&&!N.done&&(s=R.return)&&s.call(R)}finally{if(o)throw o.error}}}}catch(e){n={error:e}}finally{try{B&&!B.done&&(r=D.return)&&r.call(D)}finally{if(n)throw n.error}}var F,H=l;this.serviceManager.plotService.gm.editor.pickTypes=[eF],this.serviceManager.plotService.gm.editor.startPickTarget=!0,this.serviceManager.plotService.gm.editor.pickString="请选择路径线或绘制一条路径";w=function(e){var t,i,n,r;if(e){if(e instanceof Cesium.Cartesian3){var o,s,c=a.serviceManager.plotService.createEntityName("路径直线");"飞行动画"==l.title?(o=a.serviceManager.plotService.gm.create({obj:"Polyline",color:"#f00",name:c,interplate:!0,clampToGround:!1,defaultHeight:1e4}).graph,O instanceof mR&&(o.defaultHeight=O.elevation,O.heightReference=0)):o=a.serviceManager.plotService.gm.create({obj:"Polyline",color:"#f00",name:c,interplate:!0,clampToGround:!0,defaultHeight:0}).graph;o.addCtlPoint(O.ctrlPosition[0]);var h=km.getLongitudeByCartesian3(e,a._viewer),p=km.getLatitudeByCartesian3(e,a._viewer),d=km.getHeightByCartesian3(e,a._viewer);O instanceof mR&&"飞行动画"!=l.title&&(d=0);var f=new Vu(h,p,d);o.addCtlPoint(f),s=a.serviceManager.plotService.gm.editor.onCreateFinished.subscribe(function(e){o==e&&(u(),o.defaultHeight=void 0),s.unsubscribe()}),H.polyLineId=o.id}else{try{for(var m=gV(a.serviceManager.animationService.allAnimation),g=m.next();!g.done;g=m.next()){var y=g.value;try{for(var _=(n=void 0,gV(y)),A=_.next();!A.done;A=_.next()){var v=A.value;if(v instanceof YX&&v.polyLine==e)return mV.log("该路径已经作为路径动画,禁止重复选择!"),void(a.serviceManager.plotService.gm.editor.startPickTarget=!0)}}catch(e){n={error:e}}finally{try{A&&!A.done&&(r=_.return)&&r.call(_)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{g&&!g.done&&(i=m.return)&&i.call(m)}finally{if(t)throw t.error}}O.setCtrlPosition(0,e.ctrlPosition[0]),a.serviceManager.plotService.gm.graphList.indexOf(e.ent)<0&&(a.serviceManager.plotService.gm.graphList.push(e.ent),a.serviceManager.plotService.isRefresh.next([e.ent.graph])),H.polyLineId=e.id,u()}H.targetId=O.id,F.unsubscribe()}};F=this.serviceManager.plotService.gm.editor.pickCompleted$.subscribe(w)}else if(l instanceof cV){var Y=this.serviceManager.plotService.gm.draw({obj:"Point",color:"#f00",show:!1,ctls:[{lon:98,lat:37}]});Y.show=!1,(c=l).targetId=Y.id,c.polyLineId=O.id,u()}else if(l instanceof CX){(c=l).targetId=O.id;var j,U=this.serviceManager.plotService.createEntityName("路径凝视"),G=(g=Math.ceil(this._viewer.camera.positionCartographic.height)/10,this.serviceManager.plotService.gm.create({obj:"Polyline",color:"#f00",name:U,interplate:!0,clampToGround:!1,defaultHeight:g}).graph);_=function(e){G==e&&(u(),G.defaultHeight=void 0),j.unsubscribe()};j=this.serviceManager.plotService.gm.editor.onCreateFinished.subscribe(_),c.polyLineId=G.id}else if(l instanceof MX){var Q=l;Q.targetId=O.id;this.serviceManager.plotService.createEntityName("环绕动画");if(this._viewer.terrainProvider.availability){var z=this._viewer.terrainProvider.availability._maximumLevel?this._viewer.terrainProvider.availability._maximumLevel:10,W=[Cesium.Cartographic.fromDegrees(O.ctrlPosition[0].lon,O.ctrlPosition[0].lat)];Cesium.sampleTerrain(this._viewer.terrainProvider,z,W).then(function(e){if(e[0].height){var t=Math.ceil(e[0].height);Q.__meta__.lineHeight.min=t,Q.__meta__.lineHeight.max=t+2e4}})}Q.lineHeight=Q.__meta__.lineHeight.min+400,Q.circleRadius=1500,u()}else if(l instanceof TX){var X=l;X.targetId=O.id;this.serviceManager.plotService.createEntityName("螺旋动画");if(this._viewer.terrainProvider.availability){z=this._viewer.terrainProvider.availability._maximumLevel?this._viewer.terrainProvider.availability._maximumLevel:10,W=[Cesium.Cartographic.fromDegrees(O.ctrlPosition[0].lon,O.ctrlPosition[0].lat)];Cesium.sampleTerrain(this._viewer.terrainProvider,z,W).then(function(e){if(e[0].height){var t=Math.ceil(e[0].height);X.__meta__.startHeight.min=t,X.__meta__.startHeight.max=t+5e3,X.__meta__.endHeight.min=t,X.__meta__.endHeight.max=t+5e3}})}X.startHeight=X.__meta__.startHeight.min+2500,X.endHeight=X.__meta__.endHeight.min+500,X.startRadius=2e3,X.endRadius=500,u()}}},e.prototype.createGraph=function(e){var t=this.serviceManager.plotService.gm.create(e);return t?t.graph:null},e.prototype.drawPoint=function(e,t){var i=this,n=[];return e.forEach(function(e){i.count++;var r={name:t,obj:"Point",ctls:[new Vu(e.geometry.coordinates[0],e.geometry.coordinates[1])]};Object.assign(r,e.properties);var o=i.serviceManager.plotService.draw(r,"gp-tubiaodian","".concat(t,"-").concat(i.count),!1);n.push(o)}),n},e.prototype.drawMultiPoint=function(e,t){var i=this,n=[];return e.forEach(function(e){var r=[];e.geometry.coordinates.forEach(function(e){var t=new Vu(e[0],e[1]);r.push(t)}),r.forEach(function(e){i.count++;var r={name:t,obj:"Point",ctls:[e]},o=i.serviceManager.plotService.draw(r,"gp-tubiaodian","".concat(t,"-").concat(i.count),!1);n.push(o)})}),n},e.prototype.drawLineString=function(e,t){var i=this,n=[];return e.forEach(function(e,r){i.count++;var o=t;i.count>0&&(o+="-".concat(i.count));var s=Ij(e,JSON.parse(JSON.stringify(i.geoGraph.LineString)));s.jsonId=r;var a=i.serviceManager.plotService.draw(s,"gp-zhixian",o,!1);n.push(a)}),n},e.prototype.drawMultiLineString=function(e,t){var i=[],n=Rj(e,JSON.parse(JSON.stringify(this.geoGraph.MultiLineString))),r=this.serviceManager.plotService.draw(n,"gp-zhixian",t,!1);return i.push(r),i},e.prototype.drawPolygon=function(e,t){var i=this,n=[];return e.forEach(function(e,r){var o=t;i.count++,i.count>0&&(o+="-".concat(i.count));var s=Ij(e,JSON.parse(JSON.stringify(i.geoGraph.Polygon)));s.jsonId=r,mV.log("features polygon>>>",s);var a=i.serviceManager.plotService.draw(s,"gp-zidingyixingzhuang",o,!1);n.push(a)}),n},e.prototype.drawMultiPolygon=function(e,t){var i=[],n=Rj(e,this.geoGraph.MultiPolygon),r=this.serviceManager.plotService.draw(n,"gp-zidingyixingzhuang",t,!1);return i.push(r),i},e}(),_V=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),AV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},vV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _V(t,e),t.prototype.createSampledProperty=function(){this.sampledProperty=new Cesium.SampledProperty(Cesium.Color)},t.prototype.initAnimation=function(){this.createSampledProperty(),this.target&&this.target instanceof HF&&(this.property="textColor"),this.defaultValue=this.target[this.property],this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),Cesium.Color.fromCssColorString(this.from)),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),Cesium.Color.fromCssColorString(this.to))},t.prototype.getCurrentValue=function(e){var t=e;return t<this.beginTime?this.from:t>this.beginTime+this.duration?this.to:this.sampledProperty.getValue(this.getCesiumAnimationTime(e)).toCssColorString()},t=AV([HR("ColorAnimation")],t)}(ZR),CV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),bV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},wV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return CV(t,e),t.prototype.createSampledProperty=function(){this.sampledProperty=new Cesium.SampledProperty(Number)},t=bV([HR("NumberAnimation")],t)}(ZR),xV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),SV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},MV=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},PV=function(e){function t(){var t=e.call(this)||this;return t.count=0,t.flag=!1,t.hideValues=["from","to"],t}return xV(t,e),t.prototype.createSampledProperty=function(){},t.prototype.initAnimation=function(){this.defaultValue=this.target[this.property]},t.prototype.getCurrentValue=function(e){return this.count>100-this.frequency&&(this.count=0,this.flag=!this.flag),this.count++,this.flag?this.from:this.to},SV([em({name:"频率",group:"",type:"number",order:7,min:1,max:100}),MV("design:type",Number)],t.prototype,"frequency",void 0),t=SV([HR("RepeatAnimation"),MV("design:paramtypes",[])],t)}(ZR),EV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),LV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},TV=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},OV=function(e){function t(){var t=e.call(this)||this;return t.hideValues=["duration","fillBehavior"],t}return EV(t,e),t.prototype.onTick=function(e){e>=this.beginTime&&(this.isexecuted||this.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(this.lon,this.lat,this.alt),orientation:{heading:Cesium.Math.toRadians(this.heading),pitch:Cesium.Math.toRadians(this.pitch),roll:this.roll}}),this.isexecuted=!0)},t=LV([HR("CameraSetAnimation"),TV("design:paramtypes",[])],t)}(dX),DV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),BV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},IV=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},RV=function(e){function t(){var t=e.call(this)||this;return t.hideValues=["duration"],t}return DV(t,e),t.prototype.createSampledProperty=function(){},t.prototype.initAnimation=function(){this.defaultValue=this.target[this.property]},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration){var i=YR.HoldEnd;this.fillBehavior==i?this.target[this.property]=this.to:this.stopAnimation()}else t>=this.beginTime&&(this.target[this.property]=this.to)},t=BV([HR("StateChangeAnimation"),IV("design:paramtypes",[])],t)}(ZR),NV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),kV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},FV=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},HV=function(e){function t(){var t=e.call(this)||this;return t.stopped=!1,t.createSampledProperty(),t.hideValues=["from","to"],t}return NV(t,e),t.prototype.createSampledProperty=function(){this.sampledProperty=new Cesium.SampledProperty(Number)},t.prototype.initAnimation=function(){e.prototype.initAnimation.call(this),this.htmlElement&&("left"===this.property&&(this.from=0-Number.parseInt(getComputedStyle(this.htmlElement).width),this.to=Number.parseInt(getComputedStyle(this.htmlElement).left)),this.createSampledProperty(),this.defaultValue=this.htmlElement.style[this.property],"opacity"===this.property&&(this.htmlElement.style[this.property]=this.from),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),this.from),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),this.to))},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration){var i=YR.HoldEnd;this.fillBehavior===i?this.htmlElement.style[this.property]=this.to:this.stopAnimation()}else if(t>=this.beginTime){var n=this.getCurrentValue(e);"opacity"===this.property?this.htmlElement.style[this.property]=n+"":this.htmlElement.style[this.property]=n+"px"}},t.prototype.getCesiumAnimationTime=function(e){return Cesium.JulianDate.addSeconds(this.animationBaseTime,e,new Cesium.JulianDate)},t.prototype.getCurrentValue=function(e){return e>this.beginTime+this.duration?this.to:this.sampledProperty.getValue(this.getCesiumAnimationTime(e))},t.prototype.stopAnimation=function(){this.stopped=!0,this.htmlElement&&(this.htmlElement.style[this.property]=this.defaultValue,this.htmlElement.style.pointerEvents="all")},kV([rm(),FV("design:type",Cesium.SampledProperty)],t.prototype,"sampledProperty",void 0),kV([em({name:"起始值",group:"",order:1,type:"owner",max:1,min:0}),FV("design:type",Object)],t.prototype,"from",void 0),kV([em({name:"终止值",group:"",order:1,type:"owner",max:1,min:0}),FV("design:type",Object)],t.prototype,"to",void 0),t=kV([HR("CssValueAnimation"),FV("design:paramtypes",[])],t)}(HW),YV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),jV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},UV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return YV(t,e),t.prototype.createSampledProperty=function(){Cesium&&Cesium.SampledProperty&&(this.sampledProperty=new Cesium.SampledProperty(Number))},t=jV([HR("CssNumberAnimation")],t)}(HV),GV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),QV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},zV=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},WV=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},XV=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},VV=function(e){function t(){var t=e.apply(this,XV([],WV(arguments),!1))||this;return t.count=0,t.flag=!1,t.endVisible=!0,t}return GV(t,e),t.prototype.createSampledProperty=function(){},t.prototype.getCurrentValue=function(e){return this.count>this.frequency&&(this.count=0,this.flag=!this.flag),this.count++,this.flag?this.from:this.to},t.prototype.stopAnimation=function(){this.geojsonDataSource&&(this.geojsonDataSource[this.property]=this.endVisible)},QV([em({name:"频率",group:"",type:"number",order:7,min:0,max:100}),zV("design:type",Number)],t.prototype,"frequency",void 0),QV([em({name:"结束时显示",group:"",type:"boolean",order:8}),zV("design:type",Object)],t.prototype,"endVisible",void 0),t=QV([HR("GeojsonRepeatAnimation")],t)}(tX),JV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),KV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},ZV=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},qV=function(e){function t(){return e.call(this)||this}return JV(t,e),t.prototype.initAnimation=function(){this.defaultValue=this.htmlElement.style[this.property]},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration){var i=YR.HoldEnd;this.fillBehavior===i?this.htmlElement.style[this.property]=this.defaultValue:this.stopAnimation()}else t>=this.beginTime&&(this.htmlElement.style[this.property]=this.to)},t.prototype.stopAnimation=function(){this.htmlElement&&(this.htmlElement.style[this.property]=this.defaultValue)},t=KV([HR("CssPropChangeAnimation"),ZV("design:paramtypes",[])],t)}(HW),$V=__webpack_require__(6763),eJ=function(){function e(){this.synth=window.speechSynthesis}return e.getInstance=function(){return"undefined"==typeof window?{}:(e.instance||(e.instance=new e),e.instance)},e.prototype.init=function(){var e=this;if(this.synth){var t=this.synth.getVoices();if(0!==t.length){var i=t.filter(function(e){return e.localService&&"zh-CN"===e.lang});if(0!==i.length){var n=i.find(function(e){return"Microsoft Yaoyao - Chinese (Simplified, PRC)"===e.name});n||(n=i[0]),this.voice=n}}else setTimeout(function(){e.init()},2e3)}},e.prototype.speak=function(e,t){var i=this;return void 0===t&&(t=1),new Promise(function(n,r){if(!i.voice)return $V.log("语音不存在"),void r("语音不存在");if(qB.isNullOrEmpty(e))r(null);else{i.synth.speaking&&i.synth.cancel();var o=new SpeechSynthesisUtterance(e);o.voice=i.voice,o.pitch=1,o.rate=t,i.synth.speak(o),o.onend=function(e){$V.log("speak end"),n("speak end")},o.onerror=function(e){$V.log("speak onerror"),r("SpeechSynthesisUtterance.onerror")}}})},e.prototype.stop=function(){this.synth&&this.synth.cancel()},e.prototype.pause=function(){this.synth&&this.synth.pause()},e.prototype.replay=function(){this.synth&&this.synth.resume()},e}(),tJ=__webpack_require__(6763),iJ=function(){function e(){this.synth=window.speechSynthesis;var e=window.AudioContext;e&&(this.audioContext=new e,this.audioContext.resume())}return e.getInstance=function(){return"undefined"==typeof window?{}:(e.instance||(e.instance=new e),e.instance)},e.prototype.getRequest=function(e,t){void 0===t&&(t="aisxping");var i=new URLSearchParams(window.location.search).get("scene"),n=i||"sceneId1",r=window.config.uploadfileService+"/audio/buff?sceneId=".concat(n,"&msg=").concat(e,"&vcn=").concat(t);return new Request(r,{method:"get",headers:{"Content-Type":"application/json",responseType:"blob"}})},e.prototype.playSound=function(e){this.bufferSource=this.audioContext.createBufferSource(),this.bufferSource.buffer=e,this.bufferSource.connect(this.audioContext.destination),this.bufferSource.start()},e.prototype.init=function(e,t){void 0===t&&(t="aisxping");var i=this.getRequest(e,t);fetch(i).catch(function(e){tJ.error("讯飞语音请求错误",e)})},e.prototype.speak=function(e,t){var i=this;void 0===t&&(t="aisxping");var n=this.getRequest(e,t);return new Promise(function(e,t){fetch(n).then(function(e){return e.blob()}).then(function(t){e("speak end");var n=new FileReader;n.readAsArrayBuffer(t);var r=i;n.onload=function(e){this.result instanceof ArrayBuffer&&r.audioContext.decodeAudioData(this.result,function(e){r.playSound(e)},function(e){tJ.log("error with decoding audio data:",e)})}}).catch(function(e){t("SpeechSynthesisUtterance.onerror")})})},e.prototype.stop=function(){if(this.bufferSource)try{this.bufferSource.stop()}catch(e){tJ.log(e)}},e.prototype.pause=function(){if(this.audioContext)try{this.audioContext.suspend()}catch(e){tJ.log(e)}},e.prototype.replay=function(){if(this.audioContext)try{this.audioContext.resume()}catch(e){tJ.log(e)}},e}(),nJ=function(){function e(){this.isPause=!1}return e.getInstance=function(){return"undefined"==typeof window?{}:(e.instance||(e.instance=new e),e.instance)},e.prototype.init=function(t){if(!e.SpeakType.startsWith("1")){var i=e.SpeakType.split("-")[1];return iJ.getInstance().init(t,i)}},e.prototype.speak=function(t,i){if(void 0===i&&(i=1),this.isPause=!1,e.SpeakType.startsWith("1"))return eJ.getInstance().speak(t,i);var n=e.SpeakType.split("-")[1];return iJ.getInstance().speak(t,n)},e.prototype.stop=function(){this.isPause=!0,e.SpeakType.startsWith("1")?eJ.getInstance().stop():iJ.getInstance().stop()},e.prototype.pause=function(){this.isPause=!0,e.SpeakType.startsWith("1")?eJ.getInstance().pause():iJ.getInstance().pause()},e.prototype.replay=function(){this.isPause=!1,e.SpeakType.startsWith("1")?eJ.getInstance().replay():iJ.getInstance().replay()},e.SpeakType="1",e}(),rJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),oJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},sJ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},aJ=function(e){function t(){var t=e.call(this)||this;return t.rate=1,t.isSpeak=!0,t.rd=!0,t.hasSpoken=!1,t}return rJ(t,e),Object.defineProperty(t.prototype,"subText",{get:function(){return this.htmlElement?this.htmlElement.innerText:"zzz"},enumerable:!1,configurable:!0}),t.prototype.resetDuration=function(){this.duration=Number.parseFloat((this.subText.trim().length/4).toFixed(2))},t.prototype.onTick=function(e){var t=e;if(this.htmlElement)if(t>=this.beginTime+this.duration){var i=YR.HoldEnd;this.fillBehavior===i?this.htmlElement.style.display="none":this.stopAnimation()}else t>=this.beginTime&&(this.htmlElement.style.display="inline",nJ.SpeakType.startsWith("0")||!this.isSpeak||this.hasSpoken||(nJ.getInstance().speak(this.htmlElement.innerText,this.rate),this.hasSpoken=!0))},t.prototype.stopAnimation=function(){this.htmlElement&&(this.htmlElement.style.display="none",this.hasSpoken=!1)},oJ([rm(),sJ("design:type",String),sJ("design:paramtypes",[])],t.prototype,"subText",null),oJ([em({name:"语速",group:"",type:"number",order:4,min:0,max:10}),sJ("design:type",Object)],t.prototype,"rate",void 0),oJ([em({name:"朗读",group:"",type:"boolean",order:3}),sJ("design:type",Object)],t.prototype,"isSpeak",void 0),oJ([rm(),em({name:"动画时长",group:"",type:"resetDuration",order:4}),sJ("design:type",Object)],t.prototype,"rd",void 0),t=oJ([HR("SubtitleAnimation"),sJ("design:paramtypes",[])],t)}(HW),lJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),uJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},cJ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},hJ=function(e){function t(){var t=e.call(this)||this;return t.hideValues=["from","to"],t}return lJ(t,e),t.prototype.createSampledProperty=function(){this.sampledProperty=new Cesium.SampledProperty(Number)},t.prototype.initAnimation=function(){this.createSampledProperty(),this.target&&(this.defaultValue=this.target[this.property]),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),0),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),1)},t.prototype.getCurrentValue=function(e){var t=e;return t<this.beginTime?this.from:t>this.beginTime+this.duration?this.to:this.sampledProperty.getValue(this.getCesiumAnimationTime(e))},t=uJ([HR("ForwardAnimation"),cJ("design:paramtypes",[])],t)}(ZR),pJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),dJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},fJ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pJ(t,e),t.prototype.initAnimation=function(){var e=this;this.geojsonDataSource=this.viewer.dataSources._dataSources.find(function(t){return t.name===e.dataSourceName}),this.geojsonDataSource&&(this.defaultValue=this.geojsonDataSource[this.property])},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration){var i=YR.HoldEnd;this.fillBehavior===i?this.geojsonDataSource[this.property]=this.defaultValue:this.stopAnimation()}else t>=this.beginTime&&(this.geojsonDataSource[this.property]=this.to)},t=dJ([HR("GeojsonVisibleAnimation")],t)}(tX),mJ=__webpack_require__(6763),gJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),yJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},_J=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},AJ=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},vJ=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},CJ=function(e){function t(){var t=e.apply(this,vJ([],AJ(arguments),!1))||this;return t.direction="left",t}return gJ(t,e),t.prototype.initAnimation=function(){mJ.log("initAnimation",this.htmlElement),this.property="left",e.prototype.initAnimation.call(this),this.htmlElement&&("left"===this.direction?this.from=0-Number.parseInt(getComputedStyle(this.htmlElement).width):this.from=Number.parseInt(getComputedStyle(this.htmlElement.parentNode.parentNode).width),this.to=Number.parseInt(getComputedStyle(this.htmlElement).left),mJ.log("飞入动画",this.from,this.to),this.createSampledProperty(),this.defaultValue=this.htmlElement.style[this.property],this.htmlElement.style[this.property]=this.from+"px",this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),this.from),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),this.to))},yJ([em({name:"方向",type:"pOption",group:"",order:2,options:[{text:"左",value:"left"},{text:"右",value:"right"}]}),_J("design:type",Object)],t.prototype,"direction",void 0),t=yJ([HR("CssMoveHorizonAnimation")],t)}(UV),bJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),wJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},xJ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},SJ=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},MJ=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},PJ=function(e){function t(){var t=e.apply(this,MJ([],SJ(arguments),!1))||this;return t.direction="top",t}return bJ(t,e),t.prototype.initAnimation=function(){this.property="top",e.prototype.initAnimation.call(this),this.htmlElement&&("top"===this.direction?this.from=0-Number.parseInt(getComputedStyle(this.htmlElement).height):this.from=Number.parseInt(getComputedStyle(this.htmlElement.parentNode.parentNode).height),this.to=Number.parseInt(getComputedStyle(this.htmlElement).top),this.createSampledProperty(),this.defaultValue=this.htmlElement.style[this.property],this.htmlElement.style[this.property]=this.from+"px",this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),this.from),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),this.to))},wJ([em({name:"方向",type:"pOption",group:"",order:2,options:[{text:"上",value:"top"},{text:"下",value:"bottom"}]}),xJ("design:type",Object)],t.prototype,"direction",void 0),t=wJ([HR("CssMoveVerticalAnimation")],t)}(UV),EJ=__webpack_require__(6763),LJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),TJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},OJ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},DJ=function(e){function t(){return e.call(this)||this}return LJ(t,e),Object.defineProperty(t.prototype,"targetTif",{get:function(){return TT.getGp(this.targetId)},enumerable:!1,configurable:!0}),t.prototype.createSampledProperty=function(){this.sampledProperty=new Cesium.SampledProperty(Number)},t.prototype.initAnimation=function(){this.targetTif?(this.defaultValue=this.targetTif[this.property],this.createSampledProperty(),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),this.from),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),this.to)):EJ.error("动画关联标绘元素不存在")},t.prototype.setInitValue=function(){this.targetTif&&(this.targetTif[this.property]=1e-4)},t.prototype.onTick=function(e){if(this.targetTif){var t=e;if(t>=this.beginTime+this.duration)this.fillBehavior===YR.HoldEnd?this.targetTif[this.property]=this.to:this.targetTif[this.property]=1;else if(t>=this.beginTime){var i=this.getCurrentValue(e);this.targetTif[this.property]=i}}},TJ([rm(),OJ("design:type",LT),OJ("design:paramtypes",[])],t.prototype,"targetTif",null),t=TJ([HR("ShowTifAnimation"),OJ("design:paramtypes",[])],t)}(ZR),BJ=__webpack_require__(6763),IJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),RJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},NJ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},kJ=function(e){function t(){var t=e.call(this)||this;return t.increase=!1,t}return IJ(t,e),Object.defineProperty(t.prototype,"isIncrease",{get:function(){return this.increase},set:function(e){this.increase=e},enumerable:!1,configurable:!0}),t.prototype.createSampledProperty=function(){this.sampledProperty=new Cesium.SampledProperty(Number)},t.prototype.initAnimation=function(){this.target?(this.defaultValue=this.target[this.property],this.isIncrease?this.from=this.defaultValue:this.from=0,this.to=0,this.createSampledProperty(),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),this.from),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),this.to)):BJ.error("动画关联标绘元素不存在")},t.prototype.onTick=function(e){if(this.target){var t=e;if(t>=this.beginTime+this.duration)this.fillBehavior===YR.HoldEnd?this.target[this.property]=this.to:this.target[this.property]=this.defaultValue;else if(t>=this.beginTime){var i=this.getCurrentValue(e);this.target[this.property]=i}}},t.prototype.stopAnimation=function(){this.target&&void 0!==this.defaultValue&&(this.target[this.property]=this.defaultValue)},RJ([em({name:"渐隐",group:"",subOrder:6,type:"boolean",order:2}),NJ("design:type",Boolean),NJ("design:paramtypes",[Boolean])],t.prototype,"isIncrease",null),t=RJ([HR("HideAnimation"),NJ("design:paramtypes",[])],t)}(ZR),FJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),HJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},YJ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},jJ=function(e){function t(){var t=e.call(this)||this;return t.increase=!1,t}return FJ(t,e),Object.defineProperty(t.prototype,"isIncrease",{get:function(){return this.increase},set:function(e){this.increase=e,this.increase?this.from=0:this.from=1},enumerable:!1,configurable:!0}),t.prototype.initAnimation=function(){this.stopped=!1,this.htmlElement&&(this.createSampledProperty(),this.defaultValue=1,this.htmlElement.style.opacity=0,this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),this.from),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),this.to),this.htmlElement.style.pointerEvents="none")},t.prototype.onTick=function(e){var t=e;if(!this.stopped)if(t>=this.beginTime+this.duration){var i=YR.HoldEnd;this.fillBehavior===i?this.htmlElement.style.opacity=this.to:this.htmlElement.style.opacity=0}else if(t>=this.beginTime){var n=this.getCurrentValue(e);this.htmlElement.style.opacity=n+""}},HJ([em({name:"渐显",group:"",subOrder:6,type:"boolean",order:2}),YJ("design:type",Boolean),YJ("design:paramtypes",[Boolean])],t.prototype,"isIncrease",null),t=HJ([HR("CssShowAnimation"),YJ("design:paramtypes",[])],t)}(HV),UJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),GJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},QJ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},zJ=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},WJ=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},XJ=function(e){function t(){var t=e.apply(this,WJ([],zJ(arguments),!1))||this;return t.isexecuted=!1,t}return UJ(t,e),t.prototype.stopAnimation=function(){},t.prototype.initAnimation=function(){this.isexecuted=!1},t.prototype.onTick=function(e){e>=this.beginTime+this.duration&&(this.isexecuted=!1)},GJ([rm(),QJ("design:type",Object)],t.prototype,"isexecuted",void 0),t=GJ([HR("PopulationTimeAnimation")],t)}(zR),VJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),JJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},KJ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ZJ=function(e){function t(){var t=e.call(this)||this;return t.increase=!1,t}return VJ(t,e),Object.defineProperty(t.prototype,"isIncrease",{get:function(){return this.increase},set:function(e){this.increase=e,this.increase?this.from=1:this.from=0},enumerable:!1,configurable:!0}),t.prototype.initAnimation=function(){this.stopped=!1,this.htmlElement&&(this.createSampledProperty(),this.htmlElement.style.opacity=1,this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),this.from),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),this.to))},t.prototype.onTick=function(e){var t=e;if(!this.stopped)if(t>=this.beginTime+this.duration){var i=YR.HoldEnd;this.fillBehavior===i?this.htmlElement.style.opacity=this.to:this.htmlElement.style.opacity=1}else if(t>=this.beginTime){var n=this.getCurrentValue(e);this.htmlElement.style.opacity=n+""}},JJ([em({name:"渐隐",group:"",subOrder:6,type:"boolean",order:2}),KJ("design:type",Boolean),KJ("design:paramtypes",[Boolean])],t.prototype,"isIncrease",null),t=JJ([HR("CssHideAnimation"),KJ("design:paramtypes",[])],t)}(HV),qJ=__webpack_require__(6763),$J=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),eK=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},tK=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},iK=function(e){function t(){var t=e.call(this)||this;return t.maskBehavior=RX.LefttoRight,t.stopped=!1,t.isInited=!1,delete t.__meta__.fillBehavior,t}return $J(t,e),t.prototype.initAnimation=function(){this.isInited=!1,this.stopped=!1},t.prototype.onTick=function(e){var t,i=this,n=e;if(this.maskBehavior===RX.LefttoRight?t=this.startWidth/this.duration:this.maskBehavior===RX.ToptoBottom&&(t=this.startHeight/this.duration),n>=this.beginTime+this.duration)this.stopAnimation();else if(n>=this.beginTime){if(!this.isInited){if("html-draw-container"!==this.htmlElement.parentNode.id)return;if(this.htmlElement.style.display="inline",qJ.log("蒙版 初始化"),!this.currentAni)return;var r=document.getElementById("html-draw-container");if(!r)return;"html-box-subtitle"==this.htmlElement.className?(qJ.log("isSubtitle"),this.maskBox=document.createElement("div"),["width","bottom","left"].forEach(function(e){i.maskBox.style[e]=i.htmlElement.style[e]}),this.maskBox.style.height=getComputedStyle(this.htmlElement).height,this.maskBox.style["background-color"]="rgba(255, 255, 255, 0)",this.maskBox.style.position="absolute",this.maskBox.style.overflow="hidden",r.removeChild(this.htmlElement),this.htmlElement.style.bottom=0,this.htmlElement.style.left=0,this.htmlElement.style.width="1536px",this.htmlElement.style.wordWrap="break-word",r.appendChild(this.maskBox),this.maskBox.appendChild(this.htmlElement),this.startWidth=this.maskBox.style.width.split("%")[0],this.startHeight=this.maskBox.style.height.split("px")[0]):(this.maskBox=document.createElement("div"),["width","height","top","left"].forEach(function(e){i.maskBox.style[e]=i.htmlElement.style[e]}),this.maskBox.style["background-color"]="rgba(255, 255, 255, 0)",this.maskBox.style.position="absolute",this.maskBox.style.overflow="hidden",r.removeChild(this.htmlElement),this.htmlElement.style.top=0,this.htmlElement.style.left=0,this.htmlElement.style.wordWrap="break-word",r.appendChild(this.maskBox),this.maskBox.appendChild(this.htmlElement),this.startWidth=this.maskBox.style.width.split("px")[0],this.startHeight=this.maskBox.style.height.split("px")[0]),this.isInited=!0}"html-box-subtitle"==this.htmlElement.className?this.maskBehavior===RX.LefttoRight?this.maskBox.style.width=(n-this.beginTime)*t+"%":this.maskBehavior===RX.ToptoBottom&&(this.maskBox.style.height=(n-this.beginTime)*t+"px"):this.maskBehavior===RX.LefttoRight?this.maskBox.style.width=(n-this.beginTime)*t+"px":this.maskBehavior===RX.ToptoBottom&&(this.maskBox.style.height=(n-this.beginTime)*t+"px")}},t.prototype.stopAnimation=function(){var e=this;if(!this.stopped&&(this.stopped=!0,qJ.log("蒙版 stopAnimation"),this.currentAni)){var t=document.getElementById("html-draw-container");t&&this.maskBox&&this.maskBox instanceof HTMLElement&&(this.maskBox.removeChild(this.htmlElement),t.removeChild(this.maskBox),"html-box-subtitle"==this.htmlElement.className?(this.htmlElement.style.width="80%",this.htmlElement.style.bottom="100px",this.htmlElement.style.left="10%",this.htmlElement.style.height=getComputedStyle(this.htmlElement).height):["top","left"].forEach(function(t){e.htmlElement.style[t]=e.maskBox.style[t]}),t.appendChild(this.htmlElement))}},eK([em({name:"蒙版方向",type:"pOption",group:"",order:4,options:[{text:"从左至右",value:RX.LefttoRight},{text:"从上至下",value:RX.ToptoBottom}]}),tK("design:type",String)],t.prototype,"maskBehavior",void 0),t=eK([HR("CssMaskAnimation"),tK("design:paramtypes",[])],t)}(HW),nK=function(){function e(){}return e.init=function(){e.animationList=[{type:qm,animation:{type:"ColorAnimation",property:"color",from:"#ED6F00",to:"#00FF00",keyframes:[{val:0},{val:3e3}]},title:"颜色渐变",icon:"gv-taishibiaohui",image:"样式动画图片/颜色渐变.png",webp:"页面动画WEBP/颜色渐变.webp"},{type:ok,animation:{type:"PathAnimation",keyframes:[{val:0},{val:3e3}]},title:"路径动画",icon:"gv-Route",image:"样式动画图片/路径动画.png",webp:"页面动画WEBP/路径动画.webp"},{type:ok,animation:{type:"PathAnimation",keyframes:[{val:0},{val:3e3}]},title:"飞行动画",icon:"gv-Route",image:"样式动画图片/飞行动画.png",webp:"页面动画WEBP/飞行动画.webp"},{type:eF,animation:{type:"ForwardAnimation",property:"percent",keyframes:[{val:0},{val:3e3}]},title:"路径生长",icon:"gv-Route",image:"样式动画图片/路径生长.png",webp:"页面动画WEBP/路径生长.webp"},{type:mR,animation:{type:"PathAnimation",keyframes:[{val:0},{val:3e3}]},title:"路径动画",icon:"gv-Route",image:"样式动画图片/路径动画.png",webp:"页面动画WEBP/路径动画.webp"},{type:mR,animation:{type:"PathAnimation",keyframes:[{val:0},{val:3e3}]},title:"飞行动画",icon:"gv-Route",image:"样式动画图片/飞行动画.png",webp:"页面动画WEBP/飞行动画.webp"},{type:ck,animation:{type:"PathAnimation",keyframes:[{val:0},{val:3e3}],hideValues:["cameraType","cameraHeight"]},title:"路径动画",icon:"gv-Route",image:"样式动画图片/路径动画.png",webp:"页面动画WEBP/路径动画.webp"},{type:ck,animation:{type:"PathAnimation",keyframes:[{val:0},{val:3e3}],hideValues:["cameraType","cameraHeight"]},title:"飞行动画",icon:"gv-Route",image:"样式动画图片/飞行动画.png",webp:"页面动画WEBP/飞行动画.webp"},{type:xR,animation:{type:"PathAnimation",keyframes:[{val:0},{val:3e3}],hideValues:["cameraType","cameraHeight"]},title:"路径动画",icon:"gv-Route",image:"样式动画图片/路径动画.png",webp:"页面动画WEBP/路径动画.webp"},{type:xR,animation:{type:"PathAnimation",keyframes:[{val:0},{val:3e3}],hideValues:["cameraType","cameraHeight"]},title:"飞行动画",icon:"gv-Route",image:"样式动画图片/飞行动画.png",webp:"页面动画WEBP/飞行动画.webp"},{type:qm,animation:{type:"RepeatAnimation",keyframes:[{val:0},{val:3e3}],property:"show",from:!0,to:!1,frequency:90},title:"闪烁",icon:"gv-baozha",image:"样式动画图片/闪烁动画.png",webp:"页面动画WEBP/闪烁动画.webp"},{type:qm,animation:{type:"ShowAnimation",keyframes:[{val:0},{val:3e3}],from:1,to:1,property:"alpha",hideValues:["from","to"]},title:"显示",icon:"gp-yincang",image:"样式动画图片/显示动画.png",webp:"页面动画WEBP/显示动画.webp"},{type:qm,animation:{type:"HideAnimation",keyframes:[{val:0},{val:3e3}],from:0,to:0,property:"alpha",hideValues:["from","to"]},title:"隐藏",icon:"gp-yincang",image:"样式动画图片/隐藏动画.png",webp:"页面动画WEBP/隐藏动画.webp"},{type:fU,animation:{type:"ForwardAnimation",property:"percent",keyframes:[{val:0},{val:3e3}]},title:"路径生长",icon:"gv-Route",image:"样式动画图片/路径生长.png",webp:"页面动画WEBP/路径生长.webp"},{type:sj,animation:{type:"ForwardAnimation",property:"percent",keyframes:[{val:0},{val:3e3}]},title:"路径生长",icon:"gv-Route",image:"样式动画图片/路径生长.png",webp:"页面动画WEBP/路径生长.webp"},{isGeojson:!0,type:hO,animation:{type:"GeojsonRepeatAnimation",keyframes:[{val:0},{val:3e3}],property:"show",from:!0,to:!1,frequency:10},title:"闪烁",icon:"gv-baozha",image:"样式动画图片/闪烁动画.png",webp:"页面动画WEBP/闪烁动画.webp"},{isGeojson:!0,type:hO,animation:{type:"GeojsonVisibleAnimation",keyframes:[{val:0},{val:3e3}],property:"show",from:!1,to:!0,fillBehavior:"0",hideValues:["from","to"]},title:"显示",icon:"gv-yanjing_xianshi",image:"样式动画图片/显示动画.png",webp:"页面动画WEBP/显示动画.webp"},{isGeojson:!0,type:hO,animation:{type:"GeojsonVisibleAnimation",keyframes:[{val:0}],property:"show",from:!0,to:!1,fillBehavior:"0",hideValues:["from","to","duration"]},title:"隐藏",icon:"gp-yincang",image:"样式动画图片/隐藏动画.png",webp:"页面动画WEBP/隐藏动画.webp"},{type:ok,animation:{type:"FollowAnimation",keyframes:[{val:0},{val:1e4}]},title:"路径凝视",icon:"gv-Route",image:"视角动画图片/凝视.png",webp:"视角动画WEBP文件/凝视_00000_iSpt.webp"},{type:nH,animation:{type:"FollowAnimation",keyframes:[{val:0},{val:1e4}]},title:"路径凝视",icon:"gv-Route",image:"视角动画图片/凝视.png",webp:"视角动画WEBP文件/凝视_00000_iSpt.webp"},{type:sQ,animation:{type:"FollowAnimation",keyframes:[{val:0},{val:1e4}]},title:"路径凝视",icon:"gv-Route",image:"视角动画图片/凝视.png",webp:"视角动画WEBP文件/凝视_00000_iSpt.webp"},{type:qI,animation:{type:"FollowAnimation",keyframes:[{val:0},{val:1e4}]},title:"路径凝视",icon:"gv-Route",image:"视角动画图片/凝视.png",webp:"视角动画WEBP文件/凝视_00000_iSpt.webp"},{type:mR,animation:{type:"FollowAnimation",keyframes:[{val:0},{val:1e4}]},title:"路径凝视",icon:"gv-Route",image:"视角动画图片/凝视.png",webp:"视角动画WEBP文件/凝视_00000_iSpt.webp"},{type:ok,animation:{type:"SurroundAnimation",keyframes:[{val:0},{val:1e4}]},title:"环绕凝视",icon:"gv-Route",image:"视角动画图片/环绕.png",webp:"视角动画WEBP文件/环绕_00000_iSpt.webp"},{type:nH,animation:{type:"SurroundAnimation",keyframes:[{val:0},{val:1e4}]},title:"环绕凝视",icon:"gv-Route",image:"视角动画图片/环绕.png",webp:"视角动画WEBP文件/环绕_00000_iSpt.webp"},{type:sQ,animation:{type:"SurroundAnimation",keyframes:[{val:0},{val:1e4}]},title:"环绕凝视",icon:"gv-Route",image:"视角动画图片/环绕.png",webp:"视角动画WEBP文件/环绕_00000_iSpt.webp"},{type:qI,animation:{type:"SurroundAnimation",keyframes:[{val:0},{val:1e4}]},title:"环绕凝视",icon:"gv-Route",image:"视角动画图片/环绕.png",webp:"视角动画WEBP文件/环绕_00000_iSpt.webp"},{type:mR,animation:{type:"SurroundAnimation",keyframes:[{val:0},{val:1e4}]},title:"环绕凝视",icon:"gv-Route",image:"视角动画图片/环绕.png",webp:"视角动画WEBP文件/环绕_00000_iSpt.webp"},{type:ok,animation:{type:"SpiralAnimation",keyframes:[{val:0},{val:1e4}]},title:"螺旋凝视",icon:"gv-Route",image:"视角动画图片/螺旋.png",webp:"视角动画WEBP文件/螺旋.webp"},{type:nH,animation:{type:"SpiralAnimation",keyframes:[{val:0},{val:1e4}]},title:"螺旋凝视",icon:"gv-Route",image:"视角动画图片/螺旋.png",webp:"视角动画WEBP文件/螺旋.webp"},{type:sQ,animation:{type:"SpiralAnimation",keyframes:[{val:0},{val:1e4}]},title:"螺旋凝视",icon:"gv-Route",image:"视角动画图片/螺旋.png",webp:"视角动画WEBP文件/螺旋.webp"},{type:qI,animation:{type:"SpiralAnimation",keyframes:[{val:0},{val:1e4}]},title:"螺旋凝视",icon:"gv-Route",image:"视角动画图片/螺旋.png",webp:"视角动画WEBP文件/螺旋.webp"},{type:mR,animation:{type:"SpiralAnimation",keyframes:[{val:0},{val:1e4}]},title:"螺旋凝视",icon:"gv-Route",image:"视角动画图片/螺旋.png",webp:"视角动画WEBP文件/螺旋.webp"},{isAudio:!0,type:XB,animation:{type:"AudioAnimation",keyframes:[{val:0},{val:3e3}]},title:"音频播放",icon:"gv-Route",image:"视角动画图片/音效.png",webp:"视角动画WEBP文件/螺旋.webp"},{type:null,animation:{type:"CameraSetAnimation",keyframes:[{val:0}]},title:"视角切换",icon:"gp-shijiaoqiehuan",image:"视角动画图片/视角切换.png",webp:"视角动画WEBP文件/视角切换_00000_iSpt.webp"},{type:null,animation:{type:"CameraFlyAnimation",keyframes:[{val:0},{val:1e4}]},title:"视角飞入",icon:"gp-shijiaofeiru",image:"视角动画图片/视角飞入.png",webp:"视角动画WEBP文件/视角飞入_00000_iSpt.webp"},{type:null,animation:{type:"CameraRoamAnimation",keyframes:[{val:0},{val:1e4}]},title:"相机漫游",icon:"gp-lujingmanyou",image:"视角动画图片/相机漫游.png",webp:"视角动画WEBP文件/相机漫游_00000_iSpt.webp"},{type:null,animation:{type:"FollowAnimation",keyframes:[{val:0},{val:1e4}]},title:"路径凝视",icon:"gp-lujingmanyou",image:"视角动画图片/凝视.png",webp:"视角动画WEBP文件/凝视_00000_iSpt.webp"},{type:null,animation:{type:"SurroundAnimation",keyframes:[{val:0},{val:1e4}]},title:"环绕凝视",icon:"gv-Route",image:"视角动画图片/环绕.png",webp:"视角动画WEBP文件/环绕_00000_iSpt.webp"},{type:null,animation:{type:"SpiralAnimation",keyframes:[{val:0},{val:1e4}]},title:"螺旋凝视",icon:"gv-Route",image:"视角动画图片/螺旋.png",webp:"视角动画WEBP文件/螺旋.webp"},{type:mR,animation:{type:"GxModelAnimation",keyframes:[{val:0},{val:3e3}]},title:"骨骼动画",icon:"gv-Plotting",image:"样式动画图片/模型动画.png",webp:"页面动画WEBP/模型.webp"},{type:iz,animation:{type:"ArrowDirectAnimation",keyframes:[{val:0},{val:3e3}]},title:"箭头生长",icon:"gv-Route",image:"样式动画图片/箭头生长.png",webp:"页面动画WEBP/箭头生长.webp"},{type:ok,animation:{type:"TargetFllowAnimation",keyframes:[{val:0},{val:3e3}]},title:"目标跟随",icon:"gv-Route",image:"样式动画图片/目标跟随.png",webp:"页面动画WEBP/目标跟随.webp"},{type:LR,animation:{type:"TargetFllowAnimation",keyframes:[{val:0},{val:3e3}]},title:"目标跟随",icon:"gv-Route",image:"样式动画图片/目标跟随.png",webp:"页面动画WEBP/目标跟随.webp"},{type:mR,animation:{type:"TargetFllowAnimation",keyframes:[{val:0},{val:3e3}]},title:"目标跟随",icon:"gv-Route",image:"样式动画图片/目标跟随.png",webp:"页面动画WEBP/目标跟随.webp"},{isTif:!0,type:LT,animation:{type:"ShowTifAnimation",keyframes:[{val:0},{val:3e3}],from:0,to:1,property:"alpha",hideValues:["from","to"]},title:"显示",icon:"gv-yanjing_xianshi",image:"样式动画图片/显示动画.png",webp:"页面动画WEBP/显示动画.webp"},{type:xR,animation:{type:"TargetFllowAnimation",keyframes:[{val:0},{val:3e3}]},title:"目标跟随",icon:"gv-Route",image:"样式动画图片/目标跟随.png",webp:"页面动画WEBP/目标跟随.webp"},{type:nH,animation:{type:"TargetFllowAnimation",keyframes:[{val:0},{val:3e3}]},title:"目标跟随",icon:"gv-Route",image:"样式动画图片/目标跟随.png",webp:"页面动画WEBP/目标跟随.webp"},{type:BI,animation:{type:"NumberAnimation",keyframes:[{val:0},{val:3e3}],property:"percentAngle",from:0,to:360,minvalue:0,maxvalue:360},title:"旋转填充",icon:"gv-Route",image:"样式动画图片/旋转填充.png",webp:"页面动画WEBP/旋转填充.webp"},{type:WY,animation:{type:"NumberAnimation",keyframes:[{val:0},{val:3e3}],property:"percentAngle",from:0,to:360,minvalue:0,maxvalue:360},title:"旋转填充",icon:"gv-Route",image:"样式动画图片/旋转填充.png",webp:"页面动画WEBP/旋转填充.webp"},{type:null,animation:{type:"AutoRotationAnimation",keyframes:[{val:0},{val:1e4}]},title:"地球自转",icon:"gp-shijiaoqiehuan",image:"视角动画图片/地球自转.png",webp:"视角动画WEBP文件/地球自转.webp"},{type:null,animation:{type:"ZoomToFlyAnimation",keyframes:[{val:0},{val:1e4}]},title:"缩放至",icon:"gp-shijiaoqiehuan",image:"视角动画图片/缩放至.png",webp:"视角动画WEBP文件/缩放至.webp"}]},e.animationRegister=[vV,wV,iN,DJ,kJ,PV,YX,ZR,dX,OV,yX,fV,IX,RV,HV,UV,qV,CJ,PJ,jJ,ZJ,VV,tX,fJ,aJ,cV,hJ,CX,MX,TX,nV,XJ,GW,VW,iK,oX,uX,ZX],e.animationList=[],e}(),rK=__webpack_require__(5093),oK=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())})},sK=function(e,t){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},aK=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},lK=function(){function e(e){var t,i,n=this;this.takePicture=!1,this.pictureMove=!1,this.refSub$=new am,this.pageImage="",this.select$=new am,this.startPlay$=new am,this.allAnimation=[],this.timelineModeChanged$=new am,this.cesiumTimlineZoom$=new am,this._showGlobalTimeLine=!1,this.isPaused=!1,this.show=!1,this.isMultiSelect=!1,this.isInitAnimationListWrapper=!1,this.initAnimationListWrapper=new am,this.animationListWrapperNode=[],this.getLayersNodeList=new am,this.needDetectd$=new am,this.needRedraw$=new am,this.subjects=[],this.setTimelines$=new am,this.sliderMin=.1,this.sliderMax=80,this.stopAnimationSub$=new am,this.rePlayPage$=new am,this.currentSelected=[],this.animationType=!1,this.needRefresh=!1,this._currentTime=0,this.itemAnimation=[],this.serviceManager=e,this._viewer=e.viewer,nK.init();try{for(var r=aK(nK.animationList),o=r.next();!o.done;o=r.next()){var s=o.value;s.animation=HN.deserializeSingleAnimation(s.animation)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}this.onSelectGraph(null);var a=localStorage.getItem("showGlobalTimeLine");this.showGlobalTimeLine="true"==a,this.initAnimationListWrapper.pipe(Uz(300)).subscribe(function(){n.isInitAnimationListWrapper=!0,n.getLayersNodeList.next(null);var e=[];n.animationListWrapperNode.length&&(n.animationListWrapperNode.forEach(function(t,i){e=0===i?n.initAnimationList(t.origin.entity):n.intersectTwoArr(e,n.initAnimationList(t.origin.entity))}),n.animationType=!0,n.itemAnimation=e),n.isInitAnimationListWrapper=!1})}return Object.defineProperty(e.prototype,"showGlobalTimeLine",{get:function(){return this._showGlobalTimeLine},set:function(e){this._showGlobalTimeLine=e,localStorage.setItem("showGlobalTimeLine",e?"true":"false"),this.timelineModeChanged$.next(1),this.cesiumTimlineZoom$.next(1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){return this._component},set:function(e){var t=this;this._component=e,this.component.startAllPause.subscribe(function(e){t.isPaused=!0})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectTimeLine",{get:function(){return this._selectTimeLine},set:function(e){var t,i,n=this;if(this.select$.next(e),this.subjects.forEach(function(e){e.unsubscribe()}),this.subjects=[],this._selectTimeLine&&(this._selectTimeLine instanceof Array?this._selectTimeLine.forEach(function(e){return e.selected=!1}):this._selectTimeLine.selected=!1),this._selectTimeLine=e,this._selectTimeLine)if(this._selectTimeLine instanceof Array)this._selectTimeLine.forEach(function(e){var t,i;e.selected=!0;try{for(var r=aK(e.keyframes),o=r.next();!o.done;o=r.next()){var s=o.value;n.subjects.push(s.valueChanged.subscribe(function(e){n.needRedraw$.next(1)}))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}});else{this._selectTimeLine.selected=!0;try{for(var r=aK(this._selectTimeLine.keyframes),o=r.next();!o.done;o=r.next()){var s=o.value;this.subjects.push(s.valueChanged.subscribe(function(e){n.needRedraw$.next(1)}))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}}this.needRedraw$.next(1)},enumerable:!1,configurable:!0}),e.prototype.onSelectGraph=function(e){this.initAnimationList(e)},e.prototype.initAnimationList=function(e){var t,i;if(!this.isMultiSelect||this.isInitAnimationListWrapper){if(this.needDetectd$.next(1),e){if(e instanceof LT&&!e.isAni)return;var n=[];try{for(var r=aK(nK.animationList),o=r.next();!o.done;o=r.next()){var s=o.value;if((!(e instanceof gH||e instanceof PH)||"ColorAnimation"!=s.animation.type)&&(!(e instanceof HF&&"ForwardAnimation"==s.animation.type)&&null!=s.type&&e instanceof s.type)){if(s.animation instanceof ZR&&!e[s.animation.property]&&0!=e[s.animation.property])continue;n.push(s)}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}if(e instanceof FH){var a=n.findIndex(function(e){return"颜色渐变"===e.title});a>-1&&n.splice(a,1)}return this.animationType=!0,this.itemAnimation=n,n}var l=nK.animationList.filter(function(e){return null==e.type||null==e.type});return this.itemAnimation=l,this.animationType=!1,l}this.initAnimationListWrapper.next(null)},e.prototype.cloneAnimation=function(e){var t=HN.serializeSingleAnimation(e),i=e.type,n=JSON.stringify(t),r=JSON.parse(n);return r.type=i,r=HN.deserializeSingleAnimation(r)},e.prototype.loadFromGm=function(){var e=[],t=this.serviceManager.plotService.gm.animationManager.animationGroupList;this.animationGroupList=t;for(var i=nK.animationList.filter(function(e){return e.animation}),n=0;n<t.length;n++){for(var r=[],o=function(e){var o=t[n].animationList[e],s=i.find(function(e){return e.animation.type===o.type});s&&(o.image=s.image),r.push(o)},s=0;s<t[n].animationList.length;s++)o(s);e.push(r)}this.allAnimation=e,this.needDetectd$.next(1)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this._currentTime},set:function(e){this._currentTime=e},enumerable:!1,configurable:!0}),e.prototype.rebuildAnimation=function(){var e,t,i,n;if(!this.serviceManager.plotService.gm)return!1;this.stopAnimatin();var r=this.serviceManager.plotService.gm.animationManager.animationGroupList.map(function(e){return e.offsetSeconds});if(this.populationLayer?(this.serviceManager.plotService.gm.animationManager.animationGroupList=[],this.serviceManager.plotService.gm.animationManager.add(this.populationGroup)):this.serviceManager.plotService.gm.animationManager.animationGroupList=[],this.allAnimation){var o=0;try{for(var s=aK(this.allAnimation),a=s.next();!a.done;a=s.next()){var l=a.value,u=new aN;u.offsetSeconds=r[o]&&!this.serviceManager.plotService.gm.animationManager.animationGroupList.includes(this.populationGroup)?r[o]:0==o?0:this.serviceManager.plotService.gm.animationManager.animationGroupList[o-1].offsetSeconds+2,o++,this.serviceManager.plotService.gm.animationManager.add(u);try{for(var c=(i=void 0,aK(l)),h=c.next();!h.done;h=c.next()){var p=h.value;if(qB.isNullOrEmpty(p.label))return!1;u.add(p)}}catch(e){i={error:e}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}}return this.serviceManager.plotService.gm.animationManager.initAnimationTime(new Date(this.pageTime)),!0},e.prototype.startPlay=function(e){var t=this;if(this.pageTime=e.pageTime,this.isPaused)this._viewer.clock.shouldAnimate=!0;else{var i=this.serviceManager.engine.sceneManager.gm.animationManager;i.currentIndex=0,this.startPlay$.next(1),this.rebuildAnimation();var n=0;this.serviceManager.plotService.plotEnable(!0),i.animationGroupList.length>0?(i.start(new Date(e.pageTime)),this.cesiumTimlineZoom$.next(1),this.listener=function(){var e=i.animationGroupList[i.currentIndex];if(!e)return t._viewer.clock.onTick.removeEventListener(t.listener),t.listener=null,t.currentTime=0,t.isPaused=!1,void(t.needRefresh=!1);var r=t._viewer.clock.currentTime.secondsOfDay-i.baseTimeLine.secondsOfDay-e.beginTime;n=r,t.currentTime=n},this._viewer.clock.onTick.addEventListener(this.listener),this.needRefresh=!0):setTimeout(function(){})}},e.prototype.stopAnimatin=function(){return oK(this,void 0,void 0,function(){return sK(this,function(e){switch(e.label){case 0:return this.isPaused=!1,this._viewer.clock.onTick.removeEventListener(this.listener),this.serviceManager.plotService.gm?[4,this.serviceManager.plotService.gm.animationManager.stop()]:[3,2];case 1:e.sent(),this.currentTime=0,this._viewer.clock.shouldAnimate=!1,this.serviceManager.plotService.plotEnable(!1),e.label=2;case 2:return[2]}})})},e.prototype.stopTimelineAni=function(){this.component.stopAnimation()},e.prototype.deleteAnimationByTargetIdHtml=function(e){var t,i,n,r,o=!1;try{for(var s=aK(this.allAnimation),a=s.next();!a.done;a=s.next()){var l=a.value;try{for(var u=(n=void 0,aK(l)),c=u.next();!c.done;c=u.next()){var h=c.value;if(h instanceof HW&&h.htmlElementId===e){jf.Remove(l,h),o=!0,0===l.length&&jf.Remove(this.allAnimation,l);break}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(o)break}}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}this.needRedraw$.next(1)},e.prototype.getAnimationByTargetIdHtml=function(e){var t,i,n,r,o;try{for(var s=aK(this.allAnimation),a=s.next();!a.done;a=s.next()){var l=a.value;try{for(var u=(n=void 0,aK(l)),c=u.next();!c.done;c=u.next()){var h=c.value;if(h instanceof HW&&h.htmlElementId===e){o=h;break}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(o)break}}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}return o},e.prototype.addSubtitleAnimation=function(e){var t=this.cloneAnimation(e.animation);t.image=e.image,t.title=e.title,1===t.keyframes.length&&(t.keyframes[0].shape="point");var i=[].concat.apply([],this.allAnimation);if(t.label=ZB.createEntityName(e.title,i.map(function(e){return e.label})),t.id=ST(),this.showGlobalTimeLine=!1,this.allAnimation.length>0){var n=this.allAnimation.length;this.allAnimation[n-1].push(t)}else this.allAnimation.push([t])},e.prototype.addPopulationLayer=function(){var e=new Date("2005-06-01"),t=new Date("2020-06-16"),i=Cesium.TimeIntervalCollection.fromIso8601({iso8601:"".concat(rK(e).format("YYYY-MM-DD"),"/").concat(rK(t).format("YYYY-MM-DD"),"/P1Y"),leadingInterval:!0,trailingInterval:!0,isStopIncluded:!1,dataCallback:function(e,t){return{Time:0===t?Cesium.JulianDate.toIso8601(e.stop):Cesium.JulianDate.toIso8601(e.start)}}}),n=new Cesium.WebMapTileServiceImageryProvider({url:"https://192.168.160.230:8082/2016-08-15/proxy/svc_container_dynamic_raster/fc_gtiff_cog/cog/timeseries/population/{TileMatrix}/{TileCol}/{TileRow}?datatime={Time}&scale=1&TileMatrixSetId=WebMercatorQuad&resampling_method=nearest&rescale=0%2C577&return_mask=true&colormap_name=coolwarm",layer:"AMSR2_Snow_Water_Equivalent",style:"default",tileMatrixSetID:"2km",maximumLevel:15,format:"image/png",clock:this._viewer.clock,times:i,dimensions:{Layer:"AMSR2_Snow_Water_Equivalent",best:"best"}}),r=Cesium.JulianDate.fromDate(e),o=Cesium.JulianDate.fromDate(t);return this._viewer.clock.startTime=r.clone(),this._viewer.clock.currentTime=r.clone(),this._viewer.clock.stopTime=o.clone(),this.populationLayer=this._viewer.imageryLayers.addImageryProvider(n),{type:null,animation:{type:"PopulationTimeAnimation",keyframes:[{val:e.getTime()-(new Date).getTime()},{val:t.getTime()-e.getTime()}]},title:"人口时序",icon:"",image:"",webp:"",start:e,end:t}},e.prototype.removePopulationLayer=function(){this.populationLayer&&(this._viewer.imageryLayers.remove(this.populationLayer),this.populationLayer=null)},e.prototype.intersectTwoArr=function(e,t){return e.filter(function(e){return t.some(function(t){return t.title===e.title})})},e}();function uK(e,t){return void 0===t&&(t={}),function(i,n){nm.addTransformMetadata({target:i.constructor,propertyName:n,transformFn:e,options:t})}}var cK,hK,pK=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),dK=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},fK=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},mK=function(){function e(){this.id=ST(),this.draws=[],this.updateTime=new Date,this.del=!0,this.star=!1,this.share=!1,this.isDelt=!1,this.isEdited=!1,this.autoPlayTime=5,this.isSaved=!1,this.isPublish=!1}return dK([uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"createTime",void 0),dK([uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"updateTime",void 0),e}(),gK=function(){function e(){this.id=ST(),this.draws=[],this.star=!1,this.share=!1,this.autoPlayTime=5,this.downCount=0,this.praiseCount=0,this.seeCount=0,this.isDel=!1}return Object.defineProperty(e.prototype,"isEdited",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updateTime",{get:function(){return new Date},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSaved",{get:function(){return!0},set:function(e){},enumerable:!1,configurable:!0}),dK([uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"publishTime",void 0),e}(),yK=function(){function e(){this.del=!0}return dK([em({name:"id",group:"默认",type:"text",order:1}),fK("design:type",String)],e.prototype,"id",void 0),dK([em({name:"名称",group:"默认",type:"text",order:1}),fK("design:type",String)],e.prototype,"name",void 0),dK([em({name:"描述",group:"默认",type:"text",order:2}),fK("design:type",String)],e.prototype,"desc",void 0),dK([em({name:"名称拼音",group:"默认",type:"text",order:2}),fK("design:type",String)],e.prototype,"pinyin",void 0),dK([em({name:"等级",group:"默认",type:"text",order:2}),fK("design:type",Number)],e.prototype,"level",void 0),dK([em({name:"中心位置",group:"默认",type:"text",order:2}),fK("design:type",Object)],e.prototype,"center",void 0),dK([em({name:"位置",group:"默认",type:"text",order:2}),fK("design:type",Object)],e.prototype,"wkt",void 0),dK([uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"startTime",void 0),dK([uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"endTime",void 0),dK([uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"createTime",void 0),dK([uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"updateTime",void 0),e}(),_K=(function(e){function t(){return e.call(this)||this}pK(t,e)}(yK),function(){function e(){this.id=ST(),this.viewBtn=!1,this.viewBtnGroup=!0,this.skyBox=!0,this.skyAtmosphere=!0,this.skyWeather=!1,this.isVector=!1,this.isVector2=!1,this.globe=!1,this.sunLight=!1,this.pageTime=new Date,this.clouds=!0,this.cloudSpead=1,this.isEagle=!1,this.compass=!1,this.terrainShading=!1,this.graticule=!1,this.isFrameRate=!1,this.seaMaterial=!0,this.baseWaterColor="#02386C",this.specularIntensity=1,this.amplitude=3,this.isPlace=!1,this.exaggerValue=1,this.animateType="",this.animateTime=3,this.isAutoSetAnimate=!1}return dK([uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"createTime",void 0),dK([uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"updateTime",void 0),dK([em({name:"名称",type:"title-name",order:1,subOrder:1,noEmpty:!0,hiddenGroupName:!0}),fK("design:type",String)],e.prototype,"name",void 0),dK([em({name:"保存按钮",group:"视角",order:2,type:"button2",hiddenGroupName:!0}),fK("design:type",Boolean)],e.prototype,"viewBtn",void 0),dK([em({name:"视角组",group:"视角",order:3,type:"button3",hiddenGroupName:!0}),fK("design:type",Boolean)],e.prototype,"viewBtnGroup",void 0),dK([em({name:"星空",group:"效果",subOrder:6,type:"weather",order:2,subGroup:"分组1",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0}),fK("design:type",Boolean)],e.prototype,"skyBox",void 0),dK([em({name:"大气",group:"效果",subOrder:6,type:"weather",order:2,subGroup:"分组5",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0}),fK("design:type",Boolean)],e.prototype,"skyAtmosphere",void 0),dK([em({name:"雾",group:"效果",subOrder:6,type:"weather",order:2,subGroup:"分组6",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0}),fK("design:type",Boolean)],e.prototype,"skyWeather",void 0),dK([em({name:"光照",group:"效果",subOrder:7,type:"weather",order:2,subGroup:"分组4",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0,showSubGroup:!1}),fK("design:type",Boolean)],e.prototype,"globe",void 0),dK([em({name:"光照类型",group:"效果",subOrder:7,type:"lightType",order:2,subGroup:"分组4",hiddenGroupName:!0,subGroupLayout:"column",subGroupInline:!0}),fK("design:type",Boolean)],e.prototype,"sunLight",void 0),dK([em({name:"页面时间",group:"效果",subOrder:7,type:"datePage",order:2}),uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"pageTime",void 0),dK([em({name:"云层",group:"效果",subOrder:6,type:"weather",order:2,subGroup:"分组2",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0,showSubGroup:!1}),fK("design:type",Boolean)],e.prototype,"clouds",void 0),dK([em({name:"云层速率",group:"效果",subOrder:6,type:"cloudLayer",order:2,subGroup:"分组2",hiddenGroupName:!0,subGroupLayout:"column"}),fK("design:type",Number)],e.prototype,"cloudSpead",void 0),dK([em({name:"鸟瞰图",group:"工具",subOrder:6,type:"weather",order:2,subGroup:"分组1",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0}),fK("design:type",Boolean)],e.prototype,"isEagle",void 0),dK([em({name:"指北针",group:"工具",subOrder:8,type:"weather",order:2,subGroup:"分组3",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0}),fK("design:type",Boolean)],e.prototype,"compass",void 0),dK([em({name:"地形遮挡",group:"工具",subOrder:8,type:"weather",order:2,subGroup:"分组4",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0}),fK("design:type",Boolean)],e.prototype,"terrainShading",void 0),dK([em({name:"经纬网",group:"工具",subOrder:6,type:"weather",order:2,subGroup:"分组5",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0}),fK("design:type",Boolean)],e.prototype,"graticule",void 0),dK([em({name:"帧率",group:"工具",subOrder:8,type:"weather",order:2,subGroup:"分组6",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0}),fK("design:type",Boolean)],e.prototype,"isFrameRate",void 0),dK([em({name:"海洋",group:"效果",subOrder:9,type:"weather",order:2,subGroup:"分组7",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0,showSubGroup:!1}),fK("design:type",Boolean)],e.prototype,"seaMaterial",void 0),dK([em({name:"海水颜色",group:"效果",subOrder:9,type:"seaColor",order:2,subGroup:"分组7",hiddenGroupName:!0,subGroupLayout:"column",subGroupInline:!0}),fK("design:type",String)],e.prototype,"baseWaterColor",void 0),dK([em({name:"光照亮度",group:"效果",subOrder:9,type:"seaSlider",order:2,max:5,subGroup:"分组7",hiddenGroupName:!0,subGroupLayout:"column"}),fK("design:type",Number)],e.prototype,"specularIntensity",void 0),dK([em({name:"浪高",group:"效果",subOrder:9,type:"seaText",order:2,subGroup:"分组7",hiddenGroupName:!0,subGroupLayout:"column"}),fK("design:type",Number)],e.prototype,"amplitude",void 0),dK([em({name:"地形",group:"效果",subOrder:6,type:"weather",order:2,subGroup:"分组3",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0,showSubGroup:!1}),fK("design:type",Boolean)],e.prototype,"isPlace",void 0),dK([em({name:"夸张类型",group:"效果",subOrder:6,type:"exaggerType",order:2,subGroup:"分组3",hiddenGroupName:!0,subGroupLayout:"column",subGroupInline:!0}),fK("design:type",Boolean)],e.prototype,"exaggerType",void 0),dK([em({name:"夸张系数",group:"效果",subOrder:6,type:"exagger",order:2,subGroup:"分组3",hiddenGroupName:!0,subGroupLayout:"column"}),fK("design:type",Number)],e.prototype,"exaggerValue",void 0),e}()),AK=(function(e){function t(){return e.call(this)||this}pK(t,e)}(_K),function(){this.id="",this.alpha=1,this.saturation=1,this.contrast=1,this.brightness=1,this.hue=0,this.gamma=1,this.currentLevel=0});!function(e){e[e.Wechat=1]="Wechat",e[e.QQ=2]="QQ",e[e.Weibo=3]="Weibo"}(cK||(cK={})),function(e){e.Phone="Phone",e.Account="Account",e.Mail="Mail"}(hK||(hK={}));var vK=__webpack_require__(5240),CK=__webpack_require__.n(vK),bK=__webpack_require__(8287),wK=__webpack_require__(6763),xK=function(){function e(e){this.viewer=e,this.notice$=new am,this.openPage$=new am,this.judgeArrowSub$=new am,this.sceneList=[],this.currentPlotList=[],this.testList=[],this.alpha=.1,this.init$=new am,this.count=1,this.open$=new am,this.import$=new am,this.mergeScene$=new am,this.openCompleted=new am,this.resolutionChanged$=new am,this.pageLoadCompleted$=new am,this.scene$=new am,this.refresh$=new am,this.changeList=[],this.notify$=new am,this.init=!0,this.recoverScene$=new am,this.defaultSceneWidth=1366,this.defaultSceneHeight=768,this._viewer=e,this.manager=new(CK())}return e.prototype.addScene=function(e,t,i){var n=new mK;return"string"!=typeof e&&e.length>=0?n.name=this.genAddSceneName("新场景",e):"string"==typeof e&&(n.name=e||"新场景"),n.type="scene",n.draws=[],n.width=t||this.defaultSceneWidth,n.height=i||this.defaultSceneHeight,this.sceneList.unshift(n),n},e.prototype.genAddSceneName=function(e,t){for(var i=1,n=function(){var n="".concat(e).concat(i);if(null==t.find(function(e){return e==n}))return{value:n};i++};;){var r=n();if("object"==typeof r)return r.value}},e.prototype.convertPageImage=function(e){if(e.url)return e.url;var t=bK.hp.allocUnsafe(e.image.data.length);return t.fill(e.image.data,0),"data:image/jpeg;base64,"+t.toString("base64")},e.prototype.initScene=function(){this.scene=new mK,this.scene.name="新场景".concat(this.count++),this.scene.type="scene",this.scene.draws=[]},e.prototype.drawPoint=function(e){var t={id:ST(),kind:"Point",name:"点",position:e,point:{color:Cesium.Color.RED,pixelSize:10}};this._viewer.entities.add(t);return t},e.prototype.savePlot=function(e,t,i,n){if(this.scene&&this.plotList){var r=new yK;r.id=e.id,r.ownerId=this.scene.id;var o=this._viewer.scene.globe.ellipsoid;if("point"==t){var s=o.cartesianToCartographic(e.position),a=Cesium.Math.toDegrees(s.latitude),l=Cesium.Math.toDegrees(s.longitude),u=s.height;r.name=e.name,r.entity={type:"Point",coordinates:[l,a,u]}}"line"==t&&n&&(r.entity={type:"LineString",coordinates:i},r.name="线".concat(this.count++)),"polygon"==t&&n&&(r.entity={type:"Polygon",coordinates:[i]},r.name="面".concat(this.count++)),r.type=t,this.plotList||(this.plotList=[]);var c=this.plotList.length;return this.create(c,r),this.refresh$.next(!0),r}},e.prototype.remove=function(e){},e.prototype.add=function(e,t){},e.prototype.create=function(e,t){var i=this;this.add(e,t),this.manager.add({undo:function(){i.remove(e)},redo:function(){i.add(e,t)}}),wK.log("添加",this.plotList)},e.prototype.transormFromGraphManager=function(e){var t=e.draws.find(function(e){return"graph"==e.type});return t||((t=new yK).type="graph",e.draws.push(t)),t.ext=e.ext,t},e.prototype.transformToGraphManager=function(e){var t=e.draws.find(function(e){return"graph"==e.type});return t&&(e.ext=t.ext),jf.Remove(e.draws,t),t},e.prototype.transformFromEntity=function(e){var t=[];return wK.log("arr",e),e.map(function(e){var i=new yK;Object.defineProperties(i,{name:{value:e.name,writable:!0,enumerable:!0},type:{value:e.type,writable:!0,enumerable:!0},entity:{value:e.geometry,writable:!0,enumerable:!0},style:{value:e.style,writable:!0,enumerable:!0}}),t.push(i)}),wK.log("wwww",t),t},e.prototype.delete=function(e){window.event?e.keyCode:e.which},e.prototype.sceneEdited=function(){!this.scene||this.scene instanceof gK||this.scene.isEdited||(this.scene.isEdited=!0)},e.prototype.removeSceneEditFlag=function(){!this.scene||this.scene instanceof gK||(this.scene.isEdited=!1)},e}();function SK(e,t){e=e||{},this._tilingScheme=e.tilingScheme||new Cesium.GeographicTilingScheme,this._color=e.color||new Cesium.Color(1,1,1,.4),this._tileWidth=e.tileWidth||256,this._tileHeight=e.tileHeight||256,this._ready=!0,this._sexagesimal=e.sexagesimal||!1,this._numLines=e.numLines||50,this._scene=t,this._labels=new Cesium.LabelCollection,t.primitives.add(this._labels),this._polylines=new Cesium.PolylineCollection,t.primitives.add(this._polylines),this._ellipsoid=t.globe.ellipsoid;var i=document.createElement("canvas");i.width=256,i.height=256,this._canvas=i;var n=this;t.camera.moveEnd.addEventListener(function(){n._show&&(n._polylines.removeAll(),n._labels.removeAll(),n._currentExtent=null,n._drawGrid(n._getExtentView()))}),t.imageryLayers.addImageryProvider(this)}var MK=function(){try{return"x"in Object.defineProperty({},"x",{})}catch(e){return!1}}(),PK=Object.defineProperties;function EK(e){return e<.01?2:e<.1?1:0}MK&&PK||(PK=function(e){return e}),PK(SK.prototype,{url:{get:function(){}},proxy:{get:function(){}},tileWidth:{get:function(){return this._tileWidth}},tileHeight:{get:function(){return this._tileHeight}},maximumLevel:{get:function(){return 18}},minimumLevel:{get:function(){return 0}},tilingScheme:{get:function(){return this._tilingScheme}},rectangle:{get:function(){return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){}},errorEvent:{get:function(){return this._errorEvent}},ready:{get:function(){return this._ready}},credit:{get:function(){return this._credit}},hasAlphaChannel:{get:function(){return!0}}}),SK.prototype.makeLabel=function(e,t,i,n,r){this._labels.add({position:this._ellipsoid.cartographicToCartesian(new Cesium.Cartographic(e,t,10)),text:i,font:"16px Helvetica",style:Cesium.LabelStyle.FILL_AND_OUTLINE,fillColor:Cesium.Color.AZURE,outlineColor:Cesium.Color.BLACK,outlineWidth:2,pixelOffset:new Cesium.Cartesian2(5,n?18:-18),eyeOffset:Cesium.Cartesian3.ZERO,horizontalOrigin:Cesium.HorizontalOrigin.LEFT,verticalOrigin:n?Cesium.VerticalOrigin.BOTTOM:Cesium.VerticalOrigin.TOP,scale:1})},SK.prototype._drawGrid=function(e){if(!this._currentExtent||!this._currentExtent.equals(e)){this._currentExtent=e,this._polylines.removeAll(),this._labels.removeAll();this._canvasSize;var t,i=0,n=0;for(t=0;t<LK.length&&i<(e.north-e.south)/10;t++)i=LK[t];for(t=0;t<LK.length&&n<(e.east-e.west)/10;t++)n=LK[t];var r=(e.west<0?Math.ceil(e.west/n):Math.floor(e.west/n))*n,o=(e.south<0?Math.ceil(e.south/i):Math.floor(e.south/i))*i,s=(e.east<0?Math.ceil(e.east/i):Math.floor(e.east/i))*i,a=(e.north<0?Math.ceil(e.north/n):Math.floor(e.north/n))*n;r=Math.max(r-2*n,-Math.PI),s=Math.min(s+2*n,Math.PI),o=Math.max(o-2*i,-Math.PI/2),a=Math.min(a+2*n,Math.PI/2);var l,u,c=this._ellipsoid,h=Cesium.Math.toRadians(1),p=o+Math.floor((a-o)/i/2)*i;for(u=r;u<s;u+=n){var d=[];for(l=o;l<a;l+=h)d.push(new Cesium.Cartographic(u,l));d.push(new Cesium.Cartographic(u,a)),this._polylines.add({positions:c.cartographicArrayToCartesianArray(d),width:1});var f=Cesium.Math.toDegrees(u);this.makeLabel(u,p,this._sexagesimal?this._decToSex(f):f.toFixed(EK(n)),!1)}var m=r+Math.floor((s-r)/n/2)*n;for(l=o;l<a;l+=i){d=[];for(u=r;u<s;u+=h)d.push(new Cesium.Cartographic(u,l));d.push(new Cesium.Cartographic(s,l)),this._polylines.add({positions:c.cartographicArrayToCartesianArray(d),width:1});var g=Cesium.Math.toDegrees(l);this.makeLabel(m,l,this._sexagesimal?this._decToSex(g):g.toFixed(EK(i)),!0)}}},SK.prototype.requestImage=function(e,t,i){return this._show&&this._drawGrid(this._getExtentView()),this._canvas},SK.prototype.setVisible=function(e){this._show=e,e?(this._currentExtent=null,this._drawGrid(this._getExtentView())):(this._polylines.removeAll(),this._labels.removeAll())},SK.prototype.isVisible=function(){return this._show},SK.prototype._decToSex=function(e){var t=Math.floor(e),i=(60*(Math.abs(e)-t)).toFixed(2);return"60.00"==i&&(t+=1,i="0.00"),[t,":",i].join("")},SK.prototype._getExtentView=function(){for(var e=this._scene.camera,t=this._scene.canvas,i=[e.pickEllipsoid(new Cesium.Cartesian2(0,0),this._ellipsoid),e.pickEllipsoid(new Cesium.Cartesian2(t.width,0),this._ellipsoid),e.pickEllipsoid(new Cesium.Cartesian2(0,t.height),this._ellipsoid),e.pickEllipsoid(new Cesium.Cartesian2(t.width,t.height),this._ellipsoid)],n=0;n<4;n++)if(void 0===i[n])return Cesium.Rectangle.MAX_VALUE;return Cesium.Rectangle.fromCartographicArray(this._ellipsoid.cartesianArrayToCartographicArray(i))};var LK=[];"undefined"!=typeof Cesium&&(LK=Cesium.Math?[Cesium.Math.toRadians(.05),Cesium.Math.toRadians(.1),Cesium.Math.toRadians(.2),Cesium.Math.toRadians(.5),Cesium.Math.toRadians(1),Cesium.Math.toRadians(2),Cesium.Math.toRadians(5),Cesium.Math.toRadians(10)]:[]);const TK=SK;var OK=function(){function e(e){this.layer=new TK({},e.scene)}return e.prototype.show=function(){this.layer.setVisible(!0)},e.prototype.remove=function(){this.layer.setVisible(!1)},e}(),DK=__webpack_require__(6763),BK=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())})},IK=function(e,t){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},RK=function(){function e(){var e=this;this.CesiumCreated=new am,this.viewerLoaded$=new am,this.HeightChanged=new am,this.navDetectChanges2$=new am,this.hideLoadingSub$=new am,this.changeUnrealSub$=new am,this.isReLoad=!1,this.pageChangeLoading=!1,this.isAnimationPlayOrPause=!1,this.viewChangeSub$=new am,this.isZoomAnimation=!0,this.is2D=!1,this.clockMultipliers=[.5,1,1.25,1.5,2],this.isBrowserPageShow=!1,this.isZoomInBtnForbidden=!1,this.isZoomOutBtnForbidden=!1,this.maxZoomHeight=7e7,this.minZoomHeight=1e4,this.floatToolRefSub$=new am,this.isCtrlKeyPress=!1,this.isFullScreenPlay=!1,this.anchorRefreshSub$=new am,this.isTimelineAtDragging=!1,this.show=!1,this.CesiumCreated.subscribe(function(t){e.viewer=t,e.graticuleLayer=new OK(t),(e.viewer.cesiumWidget?e.viewer.cesiumWidget:e.viewer.widgetContainer).showErrorPanel=function(e,t,i){DK.error(e,t,i),alert("Cesium运行错误, 出现底层错误,请删除场景或联系客服解决")},e.viewer.camera.moveEnd.addEventListener(function(){e.viewChangeSub$.next(1)}),e.viewer.scene.postRender.addEventListener(function(t){document.querySelectorAll("[id^=gp-o-board-wrapper-]").forEach(function(t){var i=t.id.slice(19),n=e.getEntityByBoardID(i);if(n){var r=n.position.getValue();if(new Cesium.EllipsoidalOccluder(Cesium.Ellipsoid.WGS84,e.viewer.camera.position).isPointVisible(r)){var o=parseInt(t.dataset.offsetX),s=parseInt(t.dataset.offsetY),a=Cesium.SceneTransforms.wgs84ToWindowCoordinates(e.viewer.scene,r);t.style.top="".concat(Math.ceil(a.y)+o,"px"),t.style.left="".concat(Math.ceil(a.x)+s,"px"),"block"!==t.style.display&&(t.style.display="block");var l=document.querySelector("#board-line-".concat(i));if(l){var u=Math.sqrt(Math.pow(o,2)+Math.pow(s,2));l.style.width="".concat(u,"px");var c=2*Math.PI-Math.asin(o/u);s>0&&(c=Math.PI-c),l.style.transform="rotate(".concat(c,"rad)")}}else t.style.display="none"}})})}),this.clickHandler=function(e){"app-scenario"===e.target.nodeName.toLowerCase()&&DK.error("请退出预览模式")},Qm.cesService=this}return e.prototype.SetTerrain=function(e){var t=0;switch(e){case 1:this.viewer.terrainProvider=new Cesium.CesiumTerrainProvider({url:window.config.terrain}),t=1;break;case 2:this.viewer.terrainProvider=new Cesium.CesiumTerrainProvider({url:window.config.globalTerrain}),t=2;break;default:this.viewer.terrainProvider instanceof Cesium.EllipsoidTerrainProvider||(this.viewer.terrainProvider=new Cesium.EllipsoidTerrainProvider({ellipsoid:Cesium.Ellipsoid.WGS84})),t=0}return t},e.prototype.SetWater=function(e){return BK(this,void 0,void 0,function(){var t;return IK(this,function(i){switch(i.label){case 0:return this.sea?(this.sea.show=e,[3,3]):[3,1];case 1:return e?[4,uT.Render(this.viewer.scene)]:[3,3];case 2:(t=i.sent())&&(this.sea=t),i.label=3;case 3:return[2]}})})},e.prototype.getWmsLayer=function(){return{layers:"IMG_IDB-JPEG-4326",url:"",tileWidth:256,tileHeight:256,parameters:{format:"image/jpeg"},enablePickFeatures:!1}},e.prototype.toDegrees=function(e){var t=Cesium.Cartographic.fromCartesian(e);if(t)return[t.longitude/Math.PI*180,t.latitude/Math.PI*180]},e.prototype.flyToHome=function(){var e;null===(e=this.viewer)||void 0===e||e.camera.flyHome()},e.prototype.addNotAllowedCursor=function(){document.body.style.cursor="not-allowed",document.querySelector(".scenario-wrapper").style.pointerEvents="none",document.querySelector(".appcontent-ele").style.cursor="default";var e=document.querySelector(".multiplier-select .anticon");e&&(e.style.pointerEvents="none",e.style.cursor="default"),this.isAnimationPlayOrPause=!0,document.body.addEventListener("click",this.clickHandler)},e.prototype.removeNotAllowedCursor=function(){var e=this;document.body.style.cursor="",document.querySelector(".scenario-wrapper").style.pointerEvents="all",document.querySelector(".appcontent-ele").style.cursor="auto",setTimeout(function(){e.isAnimationPlayOrPause=!1},200),document.body.removeEventListener("click",this.clickHandler);var t=document.querySelector(".multiplier-select .anticon");t&&(t.style.pointerEvents="all",t.style.cursor="auto")},e.prototype.showPageLoading=function(){this.pageChangeLoading=!0,document.querySelector(".page-loading").style.display="flex"},e.prototype.hidePageLoading=function(){this.pageChangeLoading=!1,document.querySelector(".page-loading").style.display="none"},e.prototype.zoomInMap=function(){var e=this.minZoomHeight;if(this.viewer){var t=this.viewer.camera.positionCartographic;this.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,t.height/1.4<e?e:t.height/1.4),orientation:{direction:this.viewer.camera.direction,up:this.viewer.camera.up},duration:.3})}},e.prototype.getPick=function(e){var t;if(this.viewer.scene.mode==Cesium.SceneMode.SCENE3D){var i=this.viewer.camera.getPickRay(e);t=this.viewer.scene.globe.pick(i,this.viewer.scene)}else t=this.viewer.scene.camera.pickEllipsoid(e);return t},e.prototype.zoomInMapByScreenPosition=function(e){var t=this.calculateZoomInBastView(e);this.viewer.camera.flyTo({destination:t.destination,orientation:t.orientation,duration:1})},e.prototype.calculateZoomInBastView=function(e){var t=Cesium.Math,i=new Cesium.Cartesian3,n=new Cesium.Cartesian3,r=new Cesium.Cartesian3,o=new Cesium.Cartesian3,s=new Cesium.Cartesian3,a=new Cesium.Cartesian3,l=new Cesium.Cartesian3,u=new Cesium.Cartesian3,c=new Cesium.Cartesian3,h=new Cesium.Cartesian3,p=new Cesium.Cartesian3,d=new Cesium.Cartesian3,f={orientation:new Cesium.HeadingPitchRoll},m=this.viewer.camera.positionCartographic.height/1.4,g=this.viewer.camera,y=f.orientation;y.heading=g.heading,y.pitch=g.pitch,y.roll=g.roll;var _=this.getPick(e),A=Cesium.Cartesian3.normalize(g.position,i),v=n;Cesium.Cartesian3.clone(g.position,v);var C=_,b=c,w=s;Cesium.Cartesian3.clone(g.direction,w),Cesium.Cartesian3.add(v,Cesium.Cartesian3.multiplyByScalar(w,m,h),b);var x=a,S=l;Cesium.Cartesian3.subtract(C,v,x),Cesium.Cartesian3.normalize(x,S);var M=Cesium.Cartesian3.dot(A,S),P=Math.acos(-M),E=Cesium.Cartesian3.magnitude(v),L=Cesium.Cartesian3.magnitude(C),T=E-m,O=Cesium.Cartesian3.magnitude(x),D=Math.asin(t.clamp(O/L*Math.sin(P),-1,1))-Math.asin(t.clamp(T/L*Math.sin(P),-1,1))+P,B=r;Cesium.Cartesian3.normalize(v,B);var I=o;I=Cesium.Cartesian3.cross(S,B,I),I=Cesium.Cartesian3.normalize(I,I),Cesium.Cartesian3.normalize(Cesium.Cartesian3.cross(B,I,h),w),Cesium.Cartesian3.multiplyByScalar(Cesium.Cartesian3.normalize(b,h),Cesium.Cartesian3.magnitude(b)-m,b),Cesium.Cartesian3.normalize(v,v),Cesium.Cartesian3.multiplyByScalar(v,T,v);var R=u;if(Cesium.Cartesian3.multiplyByScalar(Cesium.Cartesian3.add(Cesium.Cartesian3.multiplyByScalar(B,Math.cos(D)-1,p),Cesium.Cartesian3.multiplyByScalar(w,Math.sin(D),d),h),T,R),Cesium.Cartesian3.add(v,R,v),Cesium.defined(this.screenSpaceCameraController)){var N=this.screenSpaceCameraController;if(N.enableAutoPitch){var k=this.viewer.camera.positionCartographic.height;if(k<=N.autoPitchStartHeight){var F=k/N.autoPitchStartHeight,H=N.autoPitchMinAngle+(N.autoPitchMaxAngle-N.autoPitchMinAngle)*F;f.orientation.pitch=Cesium.Math.toRadians(-H)}}}return{destination:v,orientation:f.orientation}},e.prototype.zoomOutMap=function(){var e=this.maxZoomHeight;if(this.viewer){var t=this.viewer.camera.positionCartographic;this.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,1.4*t.height>e?e:1.4*t.height),orientation:{direction:this.viewer.camera.direction,up:this.viewer.camera.up},duration:.3})}},e.prototype.setZoomAnimation=function(e){this.isMobileAgent()?DK.error("移动端不支持该功能"):(this.viewer.scene.screenSpaceCameraController._aggregator=e?this.userCacheSSCC:this.cacheSSCC,this.viewer.scene._screenSpaceCameraController._aggregator.reset(),localStorage.setItem("cameraZoomAnimation",e))},e.prototype.isMobileAgent=function(){return/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)},e.prototype.change2D=function(){var e=this,t=this.viewer.scene.camera.positionCartographic.clone(),i=this.viewer.camera.heading,n=this.viewer.camera.pitch,r=this.viewer.camera.roll;this.viewer.scene.morphTime=0;var o=function(){e.viewer.camera.setView({destination:Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,t.height),orientation:{heading:i,pitch:n,roll:r}}),e.viewer.scene.morphComplete.removeEventListener(o)};this.viewer.scene.morphComplete.addEventListener(o),this.is2D?(this.viewer.scene.morphTo3D(),this.is2D=!1):(this.viewer.scene.morphTo2D(),this.is2D=!0)},e.prototype.changeMultiplier=function(e){this.viewer.clock.multiplier=Number(e),IN.multiplier=this.viewer.clock.multiplier},e.prototype.getEntityByBoardID=function(e){for(var t=this.viewer.entities._entities._array,i=0;i<t.length;i++){if(t[i].graph&&t[i].graph.graphBoardId===e)return t[i];if(t[i].id===e)return t[i]}},e.prototype.getEntityByGraphID=function(e){var t;return null===(t=Yf.getGraph(e))||void 0===t?void 0:t.ent},e}(),NK=__webpack_require__(9919),kK=__webpack_require__.n(NK),FK=__webpack_require__(6763),HK=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},YK=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},jK=function(){function e(t,i,n,r,o,s,a,l,u){void 0===a&&(a=[]),void 0===l&&(l=""),void 0===u&&(u="");var c=this;this.options=[],this.error=!1,this.nameArr=new Array({}),this.isbeginChange=!1,this.oldValue=void 0,this.propertysub=new am,this.name=t,this.type=i,this.group=n,this.subGroup=r,this.title=s,this.element=o,this.options=a,this.min=l,this.max=u,this.propertysub.pipe(Uz(200)).subscribe(function(t){c.oldValue!=c.value&&(e.ProperyChanged.next({target:c,oldvalue:c.oldValue,newvalue:c.value}),c.isbeginChange=!1,c.oldValue=void 0)})}return Object.defineProperty(e.prototype,"value",{get:function(){if("innerHtml"===this.name)return this._value;if("color"===this.type){if(!this._value)return"#FFFFFFF";if(this._value.startsWith("rgb"))return kK()(this._value).hex}return this._value},set:function(e){this._value;if(this.min){var t=Number.parseFloat(e);if(isNaN(t)||t<Number.parseFloat(this.min))return FK.log("属性错误",this.name,e),void(this.error=!0);this.error=!1}if(this.max){t=Number.parseFloat(e);if(isNaN(t)||t>Number.parseFloat(this.max))return FK.log("属性错误",this.name,e),void(this.error=!0);this.error=!1}switch(this._value=e,this.name){case"innerHtml":this.element.innerHTML=e.replace(/\n/g,"<br>").replace(/\s/g," ");break;case"display":this.element.style[this.name]=!1===e?"none":"inline";break;case"isReadOnly":this.element.draggable=!0===e;break;case"top":this.element.style[this.name]=e+"px",this.element.style.bottom="unset";break;case"left":this.element.style[this.name]=e+"px",this.element.style.right="unset";break;case"bottom":this.element.style[this.name]=e+"px",this.element.style.top="unset";break;case"right":this.element.style[this.name]=e+"px",this.element.style.left="unset";break;case"position":this.element.style.left=e[0]+"px",this.element.style.top=e[1]+"px";break;case"height":case"width":case"border-width":case"line-height":case"padding-top":case"padding-left":case"padding-right":case"padding-bottom":case"padding":case"-webkit-text-stroke-width":case"font-size":this.element.style[this.name]=e+"px";break;case"font-weight":this.element.style[this.name]="正常"==e?"normal":"bold";break;case"font-family":default:this.element.style[this.name]=e;break;case"text-align-last":switch(e){case"gp-wenbenzuoduiqi":this.element.style[this.name]="left";break;case"gp-wenbenjuzhongduiqi":this.element.style[this.name]="center";break;case"gp-wenbenyouduiqi":this.element.style[this.name]="right";break;case"gp-wenbenquanbuduiqi":this.element.style[this.name]="justify";break;default:this.element.style[this.name]=e}break;case"text-align-vertical":var i=Number.parseInt(getComputedStyle(this.element).height),n=Number.parseInt(getComputedStyle(this.element)["font-size"]);switch(e){case"center":this.element.style["line-height"]=i+"px";break;case"top":this.element.style["line-height"]=n+"px";break;case"bottom":this.element.style["line-height"]=2*i-n+"px"}break;case"background-opacity":var r=getComputedStyle(this.element)["background-color"].split(","),o=r[0].slice(r[0].indexOf("(")+1),s=Number.parseInt(r[2]),a="rgba(".concat(o,",").concat(r[1],",").concat(s,",").concat(e,")");this.element.style["background-color"]=a;break;case"background-color":var l=1,u=getComputedStyle(this.element)["background-color"].split(",");4===u.length&&(l=Number.parseFloat(u[3]));var c=(255*l).toString(16);c.indexOf(".")>-1&&(c=c.split(".")[0]),this.element.style["background-color"]=e+c;break;case"background-size":switch(e){case"填充":this.element.style["background-size"]="cover";break;case"适应":this.element.style["background-size"]="contain";break;default:this.element.style["background-size"]="auto"}break;case"background-image":this.element.style["background-image"]='url("'.concat(e,'")');break;case"color":this.element.style[this.name]=e,this.element.style["-webkit-text-fill-color"]=e}},enumerable:!1,configurable:!0}),e.prototype.saveLocal=function(e){var t=this.target.classType+"-";-1===["top","bottom","right","left","height","width","innerHtml","background-image"].indexOf(this.name)&&("line-height"===this.name?localStorage.setItem(t+this.name,this.element.style[this.name]):localStorage.setItem(t+this.name,this._value)),this.target&&!this.target.isOperating&&(this.isbeginChange||(this.isbeginChange=!0,this.oldValue=e),this.target.isInit||this.propertysub.next(1))},e.prototype.checkMinValue=function(e){if(!this.min)return!0},e.ProperyChanged=new am,HK([rm(),YK("design:type",am)],e.prototype,"propertysub",void 0),e}(),UK=function(){function e(e){this.groupName=e,this.items=[],this.subGroups=[],this.state=!0}return e.prototype.toggle=function(){this.state=!this.state},e}(),GK=function(e){this.subgroupName=e,this.items=[]},QK=function(){function e(t){var i=this;this.options=[],this.error=!1,this.nameArr=new Array({}),this.isbeginChange=!1,this.oldValue=void 0,this.propertysub=new am,this.name=t.name,this.type=t.type,this.group=t.group,this.subGroup=t.subGroup,this.title=t.title,this.element=t.element,this.options=t.options,this.min=t.min,this.max=t.max,this.propertysub.pipe(Uz(200)).subscribe(function(t){i.oldValue!=i.value&&(e.ProperyChanged.next({target:i,oldvalue:i.oldValue,newvalue:i.value}),i.isbeginChange=!1,i.oldValue=void 0)})}return Object.defineProperty(e.prototype,"value",{get:function(){if("innerHtml"===this.name)return this._value;if("color"===this.type){if(!this._value)return"#00FFFFFF";if(this._value.startsWith("rgb"))return kK()(this._value).hex}return this._value},set:function(e){var t=this;this._value;if(this.min){var i=Number.parseFloat(e);if(isNaN(i)||i<Number.parseFloat(this.min))return FK.log("属性错误",this.name,e),void(this.error=!0);this.error=!1}if(this.max){i=Number.parseFloat(e);if(isNaN(i)||i>Number.parseFloat(this.max))return FK.log("属性错误",this.name,e),void(this.error=!0);this.error=!1}this._value=e,eI.currentBoxList.forEach(function(i){var n=i.element;switch(t.name){case"innerHtml":n.innerHTML=e.replace(/\n/g,"<br>").replace(/\s/g," ");break;case"display":void 0!==e&&(n.style[t.name]=!1===e?"none":"inline");break;case"isReadOnly":void 0!==e&&(!0===e?(n.contentEditable="false",n.draggable=!0):n.draggable=!1);break;case"top":n.style[t.name]=e+"px",n.style.bottom="unset";break;case"left":n.style[t.name]=e+"px",n.style.right="unset";break;case"bottom":n.style[t.name]=e+"px",n.style.top="unset";break;case"right":n.style[t.name]=e+"px",n.style.left="unset";break;case"position":n.style.left=e[0]+"px",n.style.top=e[1]+"px";break;case"height":case"width":case"border-width":case"line-height":case"padding":case"font-size":n.style[t.name]=e+"px";break;case"-webkit-text-stroke-width":var r=n.childNodes;2==r.length?r[1].style[t.name]=e+"px":n.style[t.name]=e+"px";break;case"font-weight":n.style[t.name]="正常"==e?"normal":"bold";break;case"font-family":default:n.style[t.name]=e;break;case"text-align-last":switch(e){case"gp-wenbenzuoduiqi":n.style[t.name]="left";break;case"gp-wenbenjuzhongduiqi":n.style[t.name]="center";break;case"gp-wenbenyouduiqi":n.style[t.name]="right";break;case"gp-wenbenquanbuduiqi":n.style[t.name]="justify";break;default:n.style[t.name]=e}break;case"text-align-vertical":var o=Number.parseInt(getComputedStyle(n).height),s=Number.parseInt(getComputedStyle(n)["font-size"]);switch(e){case"center":n.style["line-height"]=o+"px";break;case"top":n.style["line-height"]=s+"px";break;case"bottom":n.style["line-height"]=2*o-s+"px"}break;case"background-opacity":var a=getComputedStyle(n)["background-color"].split(","),l=a[0].slice(a[0].indexOf("(")+1),u=Number.parseInt(a[2]),c="rgba(".concat(l,",").concat(a[1],",").concat(u,",").concat(e,")");n.style["background-color"]=c;break;case"background-color":var h=1,p=getComputedStyle(n)["background-color"].split(",");4===p.length&&(h=Number.parseFloat(p[3]));var d=(255*h).toString(16);d.indexOf(".")>-1&&(d=d.split(".")[0]),n.style["background-color"]=e+d;break;case"background-size":switch(e){case"填充":n.style["background-size"]="cover";break;case"适应":n.style["background-size"]="contain";break;default:n.style["background-size"]="auto"}break;case"background-image":n.style["background-image"]='url("'.concat(e,'")');break;case"color":n.style[t.name]=e,n.style["-webkit-text-fill-color"]=e}})},enumerable:!1,configurable:!0}),e.ProperyChanged=new am,HK([rm(),YK("design:type",am)],e.prototype,"propertysub",void 0),e}(),zK=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},WK=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},XK=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},VK=function(){function e(){this.isOperating=!1,this.id="",this.groups=[],this.isInit=!1,this.propertyChanged=new Cesium.Event}return Object.defineProperty(e.prototype,"text",{get:function(){return this.element.innerHTML},set:function(e){this.element.innerHTML=e},enumerable:!1,configurable:!0}),e.getElementBgOp=function(e){var t=1,i=getComputedStyle(e)["background-color"];if(i.indexOf(",")>-1){var n=i.split(",");4===n.length&&(t=Number.parseFloat(n[3]))}return t},e.prototype.initHtml=function(e){this.element=e},Object.defineProperty(e.prototype,"show",{get:function(){return!!this.displayProps&&this.displayProps.value},set:function(e){this.displayProps&&(this.displayProps.value=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReadOnly",{get:function(){return!!this.isReadOnlyProps&&this.isReadOnlyProps.value},set:function(e){this.isReadOnlyProps&&(this.isReadOnlyProps.value=e)},enumerable:!1,configurable:!0}),e.prototype.onPropertyChanged=function(e){this.propertyChanged.raiseEvent(e)},e.prototype.initBase=function(){},e.prototype.initCssBase=function(){var t=this;this.isInit=!0,this.cssPropList.forEach(function(i){switch(i.target=t,i.name){case"background-opacity":i.value=e.getElementBgOp(t.element);break;case"background-size":var n=getComputedStyle(t.element)[i.name];"auto"===n?i.value="默认":"cover"==n?i.value="填充":"contain"==n&&(i.value="适应");break;case"background-image":var r=getComputedStyle(t.element)[i.name];i.value="none"===r?"":getComputedStyle(t.element)[i.name];break;case"innerHtml":i.value=t.element.innerHTML.replace(/<br>/g,"\n").replace(/ /g," ");break;case"top":case"left":case"bottom":case"right":case"height":case"width":case"font-size":case"border-width":case"line-height":case"padding-top":case"padding-left":case"padding-right":case"padding-bottom":case"padding":case"-webkit-text-stroke-width":i.value=Number.parseInt(getComputedStyle(t.element)[i.name]);break;case"text-align-vertical":i.value="";break;case"font-weight":var o=getComputedStyle(t.element)[i.name];i.value="400"===o?"正常":"700"===o?"加粗":getComputedStyle(t.element)[i.name];break;case"display":"none"===getComputedStyle(t.element)[i.name]?i.value=!1:i.value=!0;break;case"isReadOnly":"none"===getComputedStyle(t.element)["pointer-events"]?i.value=!0:i.value=!1;break;case"type":i.value=i.target.boxType;break;default:var s=getComputedStyle(t.element)[i.name];s&&(i.value=s)}})},e.prototype.parseStyleObj=function(e){var t,i;try{for(var n=XK(Object.keys(e)),r=n.next();!r.done;r=n.next()){var o=r.value,s=this.classType+"-"+o;if(s in localStorage)switch(o){case"background-color":var a=localStorage[s],l=localStorage[this.classType+"-background-opacity"];if(void 0!==l&&null!=l||(l=1),a.indexOf("#")>-1){var u=(255*l).toString(16);u.indexOf(".")>-1&&(u=u.split(".")[0]),e[o]=localStorage.getItem(s)+u}else{var c=a.split(","),h=c[0].slice(c[0].indexOf("(")+1),p=Number.parseInt(c[2]);e[o]="rgba(".concat(h,",").concat(c[1],",").concat(p,",").concat(l,")")}break;case"font-size":case"padding":e[o]=localStorage.getItem(s)+"px";break;default:e[o]=localStorage.getItem(s)}}}catch(e){t={error:e}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}},e.prototype.initGroup=function(){var e,t;this.cssPropList.forEach(function(e){return e.error=!1});var i=function(e){if("isReadOnly"===e.name||"display"===e.name)return"continue";if(e.group){var t=n.groups.find(function(t){return t.groupName===e.group});if(t||(t=new UK(e.group),n.groups.push(t)),e.subGroup){var i=t.subGroups.find(function(t){return t.subgroupName===e.subGroup});i||(i=new GK(e.subGroup),t.subGroups.push(i)),i.items.push(e)}else t.items.push(e)}},n=this;try{for(var r=XK(this.cssPropList),o=r.next();!o.done;o=r.next()){i(o.value)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},zK([rm(),WK("design:type",Object)],e.prototype,"isOperating",void 0),zK([rm(),WK("design:type",Object)],e.prototype,"element",void 0),zK([rm(),WK("design:type",Object)],e.prototype,"propertyChanged",void 0),zK([rm(),WK("design:type",String),WK("design:paramtypes",[Object])],e.prototype,"text",null),zK([rm(),WK("design:type",Array)],e.prototype,"cssPropList",void 0),zK([rm(),WK("design:type",Array)],e.prototype,"groups",void 0),zK([rm(),WK("design:type",jK)],e.prototype,"displayProps",void 0),zK([rm(),WK("design:type",jK)],e.prototype,"isReadOnlyProps",void 0),zK([rm(),WK("design:type",Object)],e.prototype,"__meta__",void 0),zK([rm(),WK("design:type",Boolean),WK("design:paramtypes",[Object])],e.prototype,"show",null),zK([rm(),WK("design:type",Boolean),WK("design:paramtypes",[Object])],e.prototype,"isReadOnly",null),e}(),JK=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),KK=function(e){function t(){var t=e.call(this)||this;return t.classType="html",t}return JK(t,e),t.prototype.init=function(){this.cssPropList=[new jK("display","boolean","外观","",this.element,"可见"),new jK("isReadOnly","boolean","外观","",this.element,"只读"),new jK("type","boxtype","通用","",this.element,"类型"),new jK("left","boxsize","通用","第一列",this.element,"X",[]),new jK("width","boxsize","通用","第一列",this.element,"w",[],"0"),new jK("top","boxsize","通用","第二列",this.element,"Y",[]),new jK("height","boxsize","通用","第二列",this.element,"H",[],"0"),new jK("background-opacity","slider","通用","不透明度",this.element,"不透明度",[],"0"),new jK("font-family","font-family","文本","字体",this.element,"字体"),new jK("font-size","font-size","文本","大小粗细",this.element,"文字大小",[],"0"),new jK("font-weight","option-input","文本","大小粗细",this.element,"文字粗细",["加粗","正常"]),new jK("position","","","",this.element,"位置"),new jK("line-height","number","文本","内边距行高",this.element,"行高",[],"0"),new jK("padding","number","文本","内边距行高",this.element,"内边距",[],"0"),new jK("text-align-last","align","文本","文字水平对齐",this.element,"文字水平对齐",[["gp-wenbenzuoduiqi","左对齐"],["gp-wenbenjuzhongduiqi","居中"],["gp-wenbenyouduiqi","右对齐"],["gp-wenbenquanbuduiqi","两端对齐"]]),new jK("color","color","文本","文字颜色",this.element,"文字颜色"),new jK("-webkit-text-stroke-color","color","文本","描边颜色",this.element,"描边颜色"),new jK("-webkit-text-stroke-width","strokeWidth","文本","描边线宽",this.element,"描边线宽",[],"0"),new jK("background-color","color","外观","",this.element,"背景色"),new jK("border-color","color","外观","",this.element,"边框颜色"),new jK("border-width","borderwidth","外观","",this.element,"边框宽度",[],"0"),new jK("border-style","borderstyle","外观","",this.element,"边框样式",["none","solid","double","dotted","dashed","ridge","outset"]),new jK("background-position","option-input","背景图","",this.element,"背景图位置",["","bottom","top","left","center","right"]),new jK("background-size","option-input","背景图","",this.element,"背景图大小",["默认","适应","填充"]),new jK("background-image","image-string","背景图","",this.element,"背景图")],this.displayProps=this.cssPropList[0],this.isReadOnlyProps=this.cssPropList[1],e.prototype.initCssBase.call(this),this.initGroup()},t.prototype.getInitialStyle=function(){var t={"background-color":"#000000",opacity:"1","background-repeat":"no-repeat",width:"0px",height:"0px",position:"absolute",cursor:"text","z-index":9,"background-position":"center","background-size":"contain",padding:"20px",display:"inline"};return Object.assign(t,{color:"#ffffff","text-align":"left","font-size":"22px","font-family":"微软雅黑","font-weight":"400","line-height":"normal"}),e.prototype.parseStyleObj.call(this,t),t},t}(VK),ZK=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},qK=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},$K=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},eZ=function(){function e(){this.isOperating=!1,this.id="",this.cssPropList=[],this.groups=[],this.isInit=!1,this.propertyChanged=new Cesium.Event,this.classType="htmlBoxMulti"}return Object.defineProperty(e.prototype,"element",{get:function(){return this.boxList.length>0?this.boxList[this.boxList.length-1].element:this._element},set:function(e){this._element=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.element.innerHTML},set:function(e){this.element.innerHTML=e},enumerable:!1,configurable:!0}),e.getElementBgOp=function(e){var t=1,i=getComputedStyle(e)["background-color"];if(i.indexOf(",")>-1){var n=i.split(",");4===n.length&&(t=Number.parseFloat(n[3]))}return t},e.prototype.init=function(e){var t,i;this.boxList=e,eI.boxList=e;var n=this.boxList[0].cssPropList,r=function(e){var t,i,n=0;try{for(var r=(t=void 0,$K(o.boxList)),s=r.next();!s.done;s=r.next()){var a=s.value.cssPropList.find(function(t){return t.name==e.name});a&&n++}}catch(e){t={error:e}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}if(n==o.boxList.length){var l=new QK(e);o.cssPropList.push(l)}},o=this;try{for(var s=$K(n),a=s.next();!a.done;a=s.next()){r(a.value)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}this.displayProps=this.cssPropList[0],this.isReadOnlyProps=this.cssPropList[1],this.initCssBase(),this.initGroup()},e.prototype.initHtml=function(e){this.element=e},Object.defineProperty(e.prototype,"show",{get:function(){return!!function(e){return e.every(function(e){return 1==e.show})}(this.boxList)},set:function(e){this.displayProps&&(this.displayProps.value=e,this.boxList.forEach(function(t){t.show=e}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReadOnly",{get:function(){return!!function(e){return e.every(function(e){return 1==e.isReadOnly})}(this.boxList)},set:function(e){this.isReadOnlyProps&&(this.isReadOnlyProps.value=e,this.boxList.forEach(function(t){t.isReadOnly=e}))},enumerable:!1,configurable:!0}),e.prototype.onPropertyChanged=function(e){this.propertyChanged.raiseEvent(e)},e.prototype.initCssBase=function(){var e=this;this.isInit=!0,this.cssPropList.forEach(function(t){var i=e.getPublicPropValue(t.name);if(i)switch(t.name){case"background-opacity":t.value=VK.getElementBgOp(i);break;case"background-size":var n=getComputedStyle(i)[t.name];"auto"===n?t.value="默认":"cover"==n?t.value="填充":"contain"==n&&(t.value="适应"),t.value=void 0;break;case"background-image":var r=getComputedStyle(i)[t.name];t.value="none"===r?"":getComputedStyle(i)[t.name];break;case"innerHtml":t.value=i.innerHTML.replace(/<br>/g,"\n").replace(/ /g," ");break;case"top":case"left":case"bottom":case"right":case"height":case"width":case"font-size":case"border-width":case"line-height":case"padding-top":case"padding-left":case"padding-right":case"padding-bottom":case"padding":case"-webkit-text-stroke-width":t.value=Number.parseInt(getComputedStyle(i)[t.name]);break;case"text-align-vertical":t.value="";break;case"font-weight":var o=getComputedStyle(i)[t.name];t.value="400"===o?"正常":"700"===o?"加粗":getComputedStyle(i)[t.name];break;case"display":"none"===getComputedStyle(i)[t.name]?t.value=!1:t.value=!0;break;case"isReadOnly":if(i.children[0].className.includes("scroll_box"))return;"none"===getComputedStyle(i)["pointer-events"]?t.value=!0:t.value=!1;break;case"type":t.value=e.boxList[0].boxType;break;default:var s=getComputedStyle(i)[t.name];s&&(t.value=s)}else t.value=void 0})},e.prototype.getPublicPropValue=function(e){if(this.boxList&&!(this.boxList.length<1)){for(var t=this.getProp(this.boxList[0],e),i=1;i<this.boxList.length;i++)if(this.getProp(this.boxList[i],e)!=t)return;return this.boxList[0].element}},e.prototype.getProp=function(e,t){var i=e.cssPropList.find(function(e){return e.name==t});return i?i.value:void 0},e.prototype.initGroup=function(){var e,t;this.cssPropList.forEach(function(e){return e.error=!1});var i=function(e){if("isReadOnly"===e.name||"display"===e.name)return"continue";if(e.group){var t=n.groups.find(function(t){return t.groupName===e.group});if(t||(t=new UK(e.group),n.groups.push(t)),e.subGroup){var i=t.subGroups.find(function(t){return t.subgroupName===e.subGroup});i||(i=new GK(e.subGroup),t.subGroups.push(i)),i.items.push(e)}else t.items.push(e)}},n=this;try{for(var r=$K(this.cssPropList),o=r.next();!o.done;o=r.next()){i(o.value)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.getInitialStyle=function(){var e={"background-color":"#000000",opacity:"1","background-repeat":"no-repeat",width:"0px",height:"0px",position:"absolute",cursor:"text","z-index":9,"background-position":"center","background-size":"contain",padding:"20px",display:"inline"};return Object.assign(e,{color:"#097EFF","text-align":"left","font-size":"22px","font-family":"微软雅黑","font-weight":"400","line-height":"normal"}),this.parseStyleObj(e),e},e.prototype.parseStyleObj=function(e){var t,i;try{for(var n=$K(Object.keys(e)),r=n.next();!r.done;r=n.next()){var o=r.value,s=this.classType+"-"+o;if(s in localStorage)switch(o){case"background-color":var a=localStorage[s],l=localStorage[this.classType+"-background-opacity"];if(void 0!==l&&null!=l||(l=1),a.indexOf("#")>-1){var u=(255*l).toString(16);u.indexOf(".")>-1&&(u=u.split(".")[0]),e[o]=localStorage.getItem(s)+u}else{var c=a.split(","),h=c[0].slice(c[0].indexOf("(")+1),p=Number.parseInt(c[2]);e[o]="rgba(".concat(h,",").concat(c[1],",").concat(p,",").concat(l,")")}break;case"font-size":case"padding":e[o]=localStorage.getItem(s)+"px";break;default:e[o]=localStorage.getItem(s)}}}catch(e){t={error:e}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}},ZK([rm(),qK("design:type",Object)],e.prototype,"isOperating",void 0),ZK([rm(),qK("design:type",HTMLElement)],e.prototype,"_element",void 0),ZK([rm(),qK("design:type",Object)],e.prototype,"propertyChanged",void 0),ZK([rm(),qK("design:type",String),qK("design:paramtypes",[Object])],e.prototype,"text",null),ZK([rm(),qK("design:type",QK)],e.prototype,"displayProps",void 0),ZK([rm(),qK("design:type",QK)],e.prototype,"isReadOnlyProps",void 0),ZK([rm(),qK("design:type",Object)],e.prototype,"__meta__",void 0),ZK([rm(),qK("design:type",Boolean),qK("design:paramtypes",[Object])],e.prototype,"show",null),ZK([rm(),qK("design:type",Boolean),qK("design:paramtypes",[Object])],e.prototype,"isReadOnly",null),e}(),tZ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),iZ=function(e){function t(){var t=e.call(this)||this;return t.classType="subtitle",t}return tZ(t,e),t.prototype.init=function(){this.cssPropList=[new jK("display","boolean","外观","",this.element,"可见"),new jK("isReadOnly","boolean","外观","",this.element,"只读"),new jK("background-opacity","slider","通用","不透明度",this.element,"不透明度",[],"0"),new jK("font-family","font-family","文本","字体",this.element,"字体"),new jK("font-size","font-size","文本","大小粗细",this.element,"文字大小",[],"0"),new jK("font-weight","option-input","文本","大小粗细",this.element,"文字粗细",["加粗","正常"]),new jK("position","","","",this.element,"位置"),new jK("padding","number","文本","内边距行高",this.element,"内边距",[],"0"),new jK("line-height","number","文本","内边距行高",this.element,"行高",[],"0"),new jK("text-align-last","align","文本","文字水平对齐",this.element,"文字水平对齐",[["gp-wenbenzuoduiqi","左对齐"],["gp-wenbenjuzhongduiqi","居中"],["gp-wenbenyouduiqi","右对齐"],["gp-wenbenquanbuduiqi","两端对齐"]]),new jK("color","color","文本","文字颜色",this.element,"文字颜色"),new jK("background-color","color","外观","",this.element,"背景色"),new jK("border-color","color","外观","",this.element,"边框颜色"),new jK("border-width","borderwidth","外观","",this.element,"边框宽度",[],"0"),new jK("border-style","borderstyle","外观","",this.element,"边框样式",["none","solid","double","dotted","dashed","ridge","outset"])],this.displayProps=this.cssPropList[0],this.isReadOnlyProps=this.cssPropList[1],e.prototype.initCssBase.call(this),this.initGroup()},t.prototype.getInitialStyle=function(){var t={"background-color":"#000000",opacity:1,"background-repeat":"no-repeat",width:"80%",left:"10%",bottom:"100px",position:"absolute",cursor:"move","z-index":9,color:"white","text-align":"center","font-size":"48px","line-height":"40px","background-position":"center","background-size":"contain","font-family":"微软雅黑","font-weight":"400",padding:"20px",display:"none"};return e.prototype.parseStyleObj.call(this,t),t},t}(VK),nZ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),rZ=function(e){function t(){var t=e.call(this)||this;return t.classType="newRichText",t}return nZ(t,e),t.prototype.init=function(){this.cssPropList=[new jK("display","boolean","外观","",this.element,"可见"),new jK("isReadOnly","boolean","外观","",this.element,"只读"),new jK("type","boxtype","通用","",this.element,"类型"),new jK("left","boxsize","通用","第一列",this.element,"X"),new jK("width","boxsize","通用","第一列",this.element,"w",[],"0"),new jK("top","boxsize","通用","第二列",this.element,"Y"),new jK("height","boxsize","通用","第二列",this.element,"H",[],"0"),new jK("background-opacity","slider","通用","不透明度",this.element,"不透明度",[],"0"),new jK("background-color","color","外观","",this.element,"背景色"),new jK("border-color","color","外观","",this.element,"边框颜色"),new jK("border-width","borderwidth","外观","",this.element,"边框宽度",[],"0"),new jK("border-style","borderstyle","外观","",this.element,"边框样式",["none","solid","double","dotted","dashed","ridge","outset"]),new jK("background-position","option-input","背景图","",this.element,"背景图位置",["","bottom","top","left","center","right"]),new jK("background-size","option-input","背景图","",this.element,"背景图大小",["默认","适应","填充"]),new jK("background-image","image-string","背景图","",this.element,"背景图")],this.displayProps=this.cssPropList[0],this.isReadOnlyProps=this.cssPropList[1],e.prototype.initCssBase.call(this),this.initGroup()},t.prototype.getInitialStyle=function(){var e={"background-color":"#000000",opacity:"1","background-repeat":"no-repeat",width:"0px",height:"0px",position:"absolute",cursor:"default","z-index":12,"background-position":"center","background-size":"contain",padding:"20px",display:"inline"};return Object.assign(e,{color:"#ffffff","text-align":"left","font-size":"32px","font-family":"微软雅黑","font-weight":"400","line-height":"1.5","overflow-wrap":"anywhere"}),e},t}(VK),oZ=__webpack_require__(6763),sZ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),aZ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},lZ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},uZ=function(e){function t(){var t=e.call(this)||this;return t.picList=[],t.classType="picCollection",t}return sZ(t,e),t.prototype.init=function(){this.cssPropList=[new jK("display","boolean","外观","",this.element,"可见"),new jK("isReadOnly","boolean","外观","",this.element,"只读"),new jK("type","boxtype","通用","",this.element,"类型"),new jK("left","boxsize","通用","第一列",this.element,"X"),new jK("width","boxsize","通用","第一列",this.element,"w",[],"0"),new jK("top","boxsize","通用","第二列",this.element,"Y"),new jK("height","boxsize","通用","第二列",this.element,"H",[],"0"),new jK("background-opacity","slider","通用","不透明度",this.element,"不透明度",[],"0"),new jK("background-color","color","外观","",this.element,"背景色"),new jK("border-color","color","外观","",this.element,"边框颜色"),new jK("border-width","borderwidth","外观","",this.element,"边框宽度",[],"0"),new jK("border-style","borderstyle","外观","",this.element,"边框样式",["none","solid","double","dotted","dashed","ridge","outset"])],this.displayProps=this.cssPropList[0],this.isReadOnlyProps=this.cssPropList[1],e.prototype.initCssBase.call(this),this.initGroup(),this.element.contentEditable=!1,this.setPicList([])},t.prototype.resetPicList=function(e){oZ.log("list",e);var t=document.getElementsByClassName("carouselContainer")[0];t&&(t.innerHTML="")},t.prototype.setPicList=function(e){var t=this;if(oZ.log("imgList",e,this.tnsObj),e.length>0&&(this.picList=e),e.length>0&&(this.picList=e),0!==this.picList.length){var i=document.createElement("div");i.className="carouselContainer",i.style.cssText="width:100%;height:100%;display:flex;justify-content: center;align-items: center;";var n='<button class="btn_left_'.concat(this.id,'" style="position: absolute;\n background-color: rgba(0, 0, 0, 0.3);\n z-index: 3;border: none;\n left: 0;\n width: 60px; \n height: 100%;\n top: 0;" nz-button nzType="text"><i style="font-size: 40px;" class="iconfont gp-arrow-left"></i></button>'),r='<button class="right_btn_'.concat(this.id,'" style="position: absolute;\n background-color: rgba(0, 0, 0, 0.3);\n z-index: 3;border: none;\n right: 0;\n width: 60px;\n height: 100%;\n top: 0;" nz-button nzType="text"><i style="font-size: 40px;" class="iconfont gp-arrow-right"></i></button>'),o="";this.picList.forEach(function(e){o="".concat(o,'<div style="text-align: center;height:100%"><img style="width: 80%;height:100%" src=\'').concat(e.imgPath,"'></div>")}),o="<div id='edittns_".concat(this.id,"'>").concat(o,"</div>"),i.innerHTML=o+n+r,this.element.innerHTML="",this.element.appendChild(i),document.querySelector(".btn_left_"+this.id).addEventListener("click",function(e){t.previous()}),document.querySelector(".right_btn_"+this.id).addEventListener("click",function(e){t.next()}),this.tnsObj=window.tns({container:"#edittns_"+this.id,items:1,swipeAngle:!1,speed:400,controls:!1,navPosition:""})}},t.prototype.previous=function(){this.tnsObj&&this.tnsObj.goTo("prev")},t.prototype.next=function(){this.tnsObj&&this.tnsObj.goTo("next")},t.prototype.getInitialStyle=function(){var t={"background-color":"#000000",opacity:"1","background-repeat":"no-repeat",width:"0px",height:"0px",position:"absolute",cursor:"move","z-index":9,"background-position":"center","background-size":"contain",padding:"20px",display:"inline"};return Object.assign(t,{color:"#097EFF","text-align":"left","font-size":"16px","font-family":"微软雅黑","font-weight":"400","line-height":"21px"}),e.prototype.parseStyleObj.call(this,t),t},aZ([rm(),lZ("design:type",Object)],t.prototype,"tnsObj",void 0),t}(VK),cZ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),hZ=function(e){function t(){var t=e.call(this)||this;return t.classType="richText",t}return cZ(t,e),t.prototype.init=function(){this.cssPropList=[new jK("display","boolean","外观","",this.element,"可见"),new jK("isReadOnly","boolean","外观","",this.element,"只读"),new jK("type","boxtype","通用","",this.element,"类型"),new jK("left","boxsize","通用","第一列",this.element,"X"),new jK("width","boxsize","通用","第一列",this.element,"w",[],"0"),new jK("top","boxsize","通用","第二列",this.element,"Y"),new jK("height","boxsize","通用","第二列",this.element,"H",[],"0"),new jK("background-opacity","slider","通用","不透明度",this.element,"不透明度",[],"0"),new jK("background-color","color","外观","",this.element,"背景色"),new jK("border-color","color","外观","",this.element,"边框颜色"),new jK("border-width","borderwidth","外观","",this.element,"边框宽度",[],"0"),new jK("border-style","borderstyle","外观","",this.element,"边框样式",["none","solid","double","dotted","dashed","ridge","outset"])],this.displayProps=this.cssPropList[0],this.isReadOnlyProps=this.cssPropList[1],e.prototype.initCssBase.call(this),this.initGroup()},t.prototype.getInitialStyle=function(){var t={"background-color":"#ffffff",opacity:"1","background-repeat":"no-repeat",width:"0px",height:"0px",position:"absolute",cursor:"move","z-index":9,"background-position":"center","background-size":"contain",padding:"20px",display:"inline"};return Object.assign(t,{color:"#000000","text-align":"left","font-size":"16px","font-family":"微软雅黑","font-weight":"400","line-height":"21px","overflow-wrap":"anywhere"}),e.prototype.parseStyleObj.call(this,t),t},t}(VK),pZ=__webpack_require__(6763),dZ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),fZ=function(e){function t(){var t=e.call(this)||this;return t.videoPath="",t.classType="videoBox",t}return dZ(t,e),t.prototype.init=function(){this.cssPropList=[new jK("display","boolean","外观","",this.element,"可见"),new jK("isReadOnly","boolean","外观","",this.element,"只读"),new jK("type","boxtype","通用","",this.element,"类型"),new jK("left","boxsize","通用","第一列",this.element,"X"),new jK("width","boxsize","通用","第一列",this.element,"w",[],"0"),new jK("top","boxsize","通用","第二列",this.element,"Y"),new jK("height","boxsize","通用","第二列",this.element,"H",[],"0"),new jK("background-opacity","slider","通用","不透明度",this.element,"不透明度",[],"0"),new jK("background-color","color","外观","",this.element,"背景色"),new jK("border-color","color","外观","",this.element,"边框颜色"),new jK("border-width","borderwidth","外观","",this.element,"边框宽度",[],"0"),new jK("border-style","borderstyle","外观","",this.element,"边框样式",["none","solid","double","dotted","dashed","ridge","outset"])],this.displayProps=this.cssPropList[0],this.isReadOnlyProps=this.cssPropList[1],e.prototype.initCssBase.call(this),this.initGroup()},t.prototype.setVideoBox=function(e){pZ.log("ele",e,this.videoPath);var t='<video id="'.concat(this.id,'_media" height="100%" width="100%" controls><source src="').concat(e.videoPath,'" type="video/mp4"><video/>'),i=document.createElement("div");i.className="videoContainer",i.style.cssText="width:100%;height:100%;display:flex;justify-content: center;align-items: center;",i.innerHTML=t,this.element.innerHTML="",this.element.appendChild(i)},t.prototype.getInitialStyle=function(){var t={"background-color":"#000000",opacity:"1","background-repeat":"no-repeat",width:"0px",height:"0px",position:"absolute",cursor:"move","z-index":9,"background-position":"center","background-size":"contain",padding:"20px",display:"inline"};return Object.assign(t,{color:"#097EFF","text-align":"left","font-size":"16px","font-family":"微软雅黑","font-weight":"400","line-height":"21px"}),e.prototype.parseStyleObj.call(this,t),t},t}(VK),mZ=function(){function e(){}return e.createBox=function(e){var t;switch(e){case"html":default:(t=new KK).name="文本框",t.boxType="文本框";break;case"richText":(t=new hZ).name="富文本",t.boxType="富文本";break;case"newRichText":(t=new rZ).name="富文本",t.boxType="富文本";break;case"picCollection":(t=new uZ).name="图片集",t.boxType="图片集";break;case"subtitle":(t=new iZ).name="字幕",t.boxType="字幕";break;case"videoBox":(t=new fZ).name="视频",t.boxType="视频"}return t},e}(),gZ=__webpack_require__(6763),yZ=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())})},_Z=function(e,t){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},AZ=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},vZ=function(){function e(e){var t=this;this._isReadOnly=!1,this.subTitleChange=new am,this.scalePercent=1,this.autoScale=!0,this.boxList=new Array,this.onBoxSelected=new am,this.onCtrlBoxesSelected=new am,this._currentBoxList=[],this.onBoxCreated=new am,this.selectedBoxBorderList=[],this.onVideoAnimationInit=new am,this.endHtmlPlot$=new am,this.obj={},this.isDrawPanelShow=!1,this.startX=0,this.startY=0,this.diffX=0,this.diffY=0,this.dragging=!1,this.isEditing=!1,this.movingBoxElement=null,this.currentBoxTop=null,this.currentBoxLeft=null,this.resizing=!1,this.resizingStartX=0,this.resizingStartY=0,this.heightStartY=0,this.widthStartX=0,this.heightOriginValue=0,this.widthOriginValue=0,this.topOriginValue=0,this.leftOriginValue=0,this.currentBoxHeight=null,this.currentBoxWidth=null,this.operatorEnd=new am,this.operatorMoveDiffX=0,this.operatorMoveDiffY=0,this.operatorMoving=!1,this.isCtrlPressedSub$=new am,this.tempDirection="",this.scaling=!1,this.mouseStartX=0,this.mouseStartY=0,this.isEdit=!1,this.serviceManager=e,this.serviceManager.richTextService.scalePercentCopySub$.subscribe(function(){t.serviceManager.richTextService.scalePercentCopy=t.scalePercent}),this.init()}return Object.defineProperty(e.prototype,"currentBox",{get:function(){return this._currentBox},set:function(e){this._currentBox=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReadOnly",{get:function(){return this._isReadOnly},set:function(e){this._isReadOnly=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"container",{get:function(){return this._container},set:function(e){this._container=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentBoxList",{get:function(){return this._currentBoxList},set:function(e){this._currentBoxList=e,eI.currentBoxList=e},enumerable:!1,configurable:!0}),e.prototype.getListDataToSave=function(){return this.convertBoxListToString(this.boxList)},e.prototype.convertBoxListToString=function(e){var t,i;e.forEach(function(e){e.html=e.element.outerHTML});var n=[];try{for(var r=AZ(e),o=r.next();!o.done;o=r.next()){var s=mN(o.value);n.push(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}return tm.Ay.serialize(n)},e.prototype.saveBoxData=function(e){return e.html=e.element.outerHTML,e},e.prototype.setBoxEditable=function(e){this.boxList.forEach(function(e){e.html=e.element.outerHTML})},e.prototype.setListByData=function(e){var t,i,n=this;if(e&&!(e.length<1)){e.forEach(function(e){var t=document.createElement("div");t.innerHTML=e.html,t.children[0].id=e.id,n.containerDiv.appendChild(t.children[0])});var r=[],o=this.containerDiv.getElementsByClassName("html-box"),s=Array.from(o),a=function(e){var t=s.find(function(t){return t.id===e.id});if(!t)return"continue";l.initBoxEvent(t);var i=mZ.createBox(e.classType);i.id=e.id?e.id:t.id,i.name=e.name,i.boxType=e.boxType,i.videoPath||(i.videoPath=e.videoPath),i.initHtml(t),i.init(),i instanceof uZ&&i.setPicList(e.picList),l.boxList.push(i),r.push(i)},l=this;try{for(var u=AZ(e),c=u.next();!c.done;c=u.next()){a(c.value)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(t)throw t.error}}return r}},e.prototype.showHtml=function(e){var t=this;!e||e.length<1||e.forEach(function(e){t.containerDiv.innerHTML+=e.html})},e.prototype.deleteBox=function(e){jf.Remove(this.boxList,e),this.currentBox===e&&this.setCurrentBox(null);var t=document.getElementById(e.id);t&&this.containerDiv.removeChild(t),this.onBoxSelected.next(null)},e.prototype.deleteBoxList=function(e){var t=this;this.currentBox&&e.find(function(e){return e.id===t.currentBox.id})&&this.setCurrentBox(null),e.forEach(function(e){var i=document.getElementById(e.id);i&&t.containerDiv.removeChild(i)})},e.prototype.clearHtmlDiv=function(){this.containerDiv&&(this.containerDiv.innerHTML="",this.boxList=[],this.setCurrentBox(null),this.selectedBoxBorderList=[])},e.prototype.init=function(){var e=this,t=document,i=document.getElementById("html-draw-container");i?i.style.pointerEvents="all":i=this.createRichTextPanel(),this.containerDiv=i,this.container=i,t.onmousedown=function(t){return e.startDraw(t)},t.addEventListener("mousemove",function(t){return e.updateBoxSize(t)}),t.addEventListener("mouseup",function(t){return e.drawEnd(t)})},e.prototype.createRichTextPanel=function(){var e=document.createElement("div");e.id="richTextPanel",e.style.cssText="\n transform-origin: left top;\n pointer-events: none;\n overflow: hidden;\n position: absolute;\n top: 0px;\n left: 100px;\n margin: 0px, 0px, 0px, 112.63px;\n transform: scale(0.748698);\n width: 1920px;\n height: 1080px;\n ";var t=document.createElement("div");t.id="html-draw-container",t.style.cssText="\n pointer-events: none;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow: auto;\n background: transparent;\n ";var i=document.createElement("div");i.className="operatorText",i.id="operatorText",i.style.cssText="\n pointer-events: all;\n display: none;\n position: absolute;\n top: -30;\n left: 400;\n flex-wrap: nowrap;\n background: linear-gradient(to right, #151515 10px, #353536DD 10px);\n z-index: 15;\n height: 34px;\n color: #ffffff;\n border-radius: 6px;\n align-content: center;\n ";var n=document.createElement("div");n.className="handler_div",n.innerText="........";var r=document.createElement("div");r.className="level_move",r.title="水平移动",r.innerText="移动";var o=document.createElement("div");o.className="all_zoom",o.title="整体缩放",o.innerText="缩放";var s=document.createElement("div");s.className="delete",s.title="删除",s.innerText="删除",i.appendChild(n),i.appendChild(r),i.appendChild(o),i.appendChild(s),e.appendChild(t),e.appendChild(i);var a=document.createElement("style");return a.textContent="\n .html-box{\n pointer-events: all;\n top: 20px !important;\n }\n .html-box11 {\n background-color: #ff000077;\n background-repeat: no-repeat;\n width: 0px;\n height: 0px;\n position: absolute;\n cursor: move;\n z-index: 10;\n color: #ffffff;\n text-align: center;\n font-size: 28px;\n }\n\n .select-box-div {\n height: 200px;\n width: 200px;\n position: absolute;\n border: 2px white solid;\n display: none;\n border-style: dashed;\n }\n\n .operator_div_move {\n width: 20px;\n height: 100%;\n text-align: center;\n cursor: move;\n overflow-wrap: anywhere;\n overflow: hidden;\n line-height: 4px;\n font-size: 12px;\n padding: 6px 1px 1px;\n }\n\n .handler_div {\n width: 10px;\n height: 100%;\n text-align: center;\n cursor: move;\n overflow-wrap: anywhere;\n overflow: hidden;\n line-height: 4px;\n font-size: 12px;\n color: #ffffff;\n padding: 6px 1px 1px;\n transform: scale(0.5);\n margin-top: 2px;\n }\n\n .level_move {\n padding: 0;\n font-size: 16px;\n margin: 5px;\n opacity: 0.8;\n }\n\n .all_zoom {\n padding: 0;\n font-size: 16px;\n margin: 5px;\n opacity: 0.8;\n }\n\n .delete {\n padding: 0;\n font-size: 16px;\n margin: 5px;\n opacity: 0.8;\n }\n /* 移动端适配 */\n @media (max-width: 768px) {\n #richTextPanel {\n width: 95vw;\n height: 95vh;\n aspect-ratio: auto;\n min-width: 320px;\n min-height: 568px;\n }\n }\n \n /* 平板适配 */\n @media (min-width: 769px) and (max-width: 1024px) {\n #richTextPanel {\n width: 95vw;\n height: 95vh;\n }\n }\n ",document.head.appendChild(a),document.body.appendChild(e),t},e.prototype.updateBoxSize=function(e){var t=this.calMouseCurrentOffset();if(this.isDrawPanelShow){var i=document.getElementsByClassName("active_box")[0];if(i){if(this.scaleValue(e.pageX)>this.scaleValue(t.left)+t.width||this.scaleValue(e.pageY)>this.scaleValue(t.top)+t.height)return void gZ.log("禁止绘制的范围");i.style.width=this.scaleValue(e.pageX)-this.startX+"px",i.style.height=this.scaleValue(e.pageY)-this.startY+"px"}}},e.prototype.updateOperatorPoint=function(e,t){var i=this;void 0===t&&(t=!1);var n=document.getElementsByClassName("operatorText")[0];if(n){if(n.style.transform="scale(".concat(1/this.scalePercent,")"),t)n.style.display="none";else{if(this.serviceManager.richTextService.editor&&this.serviceManager.richTextService.currentHtmlBox)return;this.currentBoxList[this.currentBoxList.length-1];if("unset"===e.style.top&&(n.style.bottom=Number.parseInt(getComputedStyle(e).bottom)-10+"px"),"unset"===e.style.bottom&&(n.style.top=Number.parseInt(getComputedStyle(e).top)-10+"px"),"unset"===e.style.left&&(n.style.right=Number.parseInt(getComputedStyle(e).right)-10+(Number.parseInt(getComputedStyle(e).width)+20)+"px"),"unset"===e.style.right&&(n.style.left=Number.parseInt(getComputedStyle(e).left)-10+(Number.parseInt(getComputedStyle(e).width)+20)+"px"),n.style.display="flex",this.currentBox instanceof KK||this.currentBox instanceof hZ||this.currentBox instanceof uZ||this.currentBox instanceof rZ){var r=parseFloat(n.style.top.slice(0,n.style.top.length-2)),o=parseFloat(n.style.left.slice(0,n.style.left.length-2)),s=document.getElementById("richTextPanel"),a=parseFloat(s.style.width.slice(0,s.style.width.length-2)),l=parseFloat(s.style.height.slice(0,s.style.height.length-2));r<0&&(gZ.log("上边超出拖拽区域!"),n.style.top="10px"),r>l-100&&(gZ.log("下边超出拖拽区域!"),n.style.top=l-100+"px"),o<0&&(gZ.log("左边超出拖拽区域!"),n.style.left="40px"),o>a-200&&(gZ.log("右边超出拖拽区域!"),n.style.left=a-200+"px")}}setTimeout(function(){var e=document.querySelector(".lock");e&&e.firstElementChild&&i.currentBox&&(e.firstElementChild.className=i.currentBox.isReadOnly?"iconfont gp-suodingkaobei":"iconfont gp-jiesuo")},0)}},e.prototype.hideOperator=function(){var e=document.getElementsByClassName("operatorText")[0];e&&(e.style.display="none")},e.prototype.showOperator=function(e,t){var i=this;void 0===t&&(t=!1),this.updateOperatorPoint(e,t);var n=document.getElementsByClassName("operatorText")[0];!function(){var e=document.querySelector(".level_move");e?e.onmousedown=function(t){gZ.log("开始移动富文本");e.getBoundingClientRect();n.style.display="none",i.startDragBox(t)}:gZ.warn("未找到.level_move元素");var t=document.querySelector(".all_zoom");t?t.onmousedown=function(e){t.getBoundingClientRect();n.style.display="none",i.startScale(e)}:gZ.warn("未找到.all_zoom元素");var r=document.querySelector(".delete");r?r.onmousedown=function(e){r.getBoundingClientRect();n.style.display="none",i.deleteAll()}:gZ.warn("未找到.delete元素")}();var r=document.querySelector(".handler_div");if(r){var o=document.querySelector("#tt001");r.onmousedown=function(e){o&&(o.addEventListener("mouseup",i.toolMoverMouseUp),o.addEventListener("mousemove",i.toolMoverMouseMove)),i.operatorMoving=!0,i.operatorMoveDiffX=e.clientX,i.operatorMoveDiffY=e.clientY,i.prevBoxTop=0,i.prevBoxLeft=0},this.toolMoverMouseUp=function(e){i.operatorMoving=!1,e.stopPropagation(),o&&(o.removeEventListener("mouseup",i.toolMoverMouseUp),o.removeEventListener("mousemove",i.toolMoverMouseMove))},this.toolMoverMouseMove=function(e){if(i.operatorMoving){var t=e.clientY-i.operatorMoveDiffY,n=e.clientX-i.operatorMoveDiffX;r.parentElement.style.top=parseFloat(r.parentElement.style.top)+(t-i.prevBoxTop)/i.scalePercent+"px",r.parentElement.style.left=parseFloat(r.parentElement.style.left)+(n-i.prevBoxLeft)/i.scalePercent+"px",i.prevBoxTop=t,i.prevBoxLeft=n}}}var s=document.querySelector(".lock");s&&(s.onclick=function(e){i.lockHTMlBox()})},e.prototype.lockHTMlBox=function(e){var t;t=e||this.currentBox;var i;gZ.log("锁定",event),i=!t.isReadOnly;var n=document.getElementsByClassName("html-box")[0];i?(t.isReadOnly=!0,t instanceof rZ&&this.serviceManager.richTextService.disable()):(t.isReadOnly=!1,t instanceof rZ&&(this.serviceManager.richTextService.enable(),n&&(n.style.pointerEvents="auto")));var r=document.querySelector(".lock");r&&r.firstElementChild&&(r.firstElementChild.className=i?"iconfont gp-suodingkaobei":"iconfont gp-jiesuo")},e.prototype.showSelectBox=function(e,t){void 0===t&&(t=!1),e||(e=this.currentBox.element);var i=this.selectedBoxBorderList.find(function(t){return t.id===e.id+"-s"});i?i.style.display="block":((i=document.createElement("div")).id=e.id+"-s",i.className="select-box",i.style.position="absolute",t||(i.style.border="3px dashed #E3C42E"),this.containerDiv.appendChild(i),t||this.addControlBar(i),this.selectedBoxBorderList.push(i)),t?(i.style.left="9%",i.style.width="82%",i.style.bottom=Number.parseInt(getComputedStyle(e).bottom)-10+"px",i.onkeydown=function(e){e.ctrlKey&&86==e.keyCode&&e.stopPropagation()},i.onkeyup=function(e){e.ctrlKey&&86==e.keyCode&&e.stopPropagation()}):("unset"===e.style.top&&(i.style.bottom=Number.parseInt(getComputedStyle(e).bottom)-3+"px"),"unset"===e.style.bottom&&(i.style.top=Number.parseInt(getComputedStyle(e).top)-3+"px"),"unset"===e.style.left&&(i.style.right=Number.parseInt(getComputedStyle(e).right)-3+"px"),"unset"===e.style.right&&(i.style.left=Number.parseInt(getComputedStyle(e).left)-3+"px"),i.style.width=Number.parseInt(getComputedStyle(e).width)+40+"px",i.style.height=Number.parseInt(getComputedStyle(e).height)+40+"px")},e.prototype.addControlBar=function(e){var t=this;[{tempDirection:"WN",cursor:"nw-resize",top:"-10px",left:"-10px"},{tempDirection:"W",cursor:"w-resize",top:"50%",left:"-11px"},{tempDirection:"WS",cursor:"sw-resize",left:"-10px",bottom:"-10px"},{tempDirection:"S",cursor:"s-resize",left:"50%",bottom:"-11px"},{tempDirection:"ES",cursor:"se-resize",right:"-10px",bottom:"-10px"},{tempDirection:"E",cursor:"e-resize",top:"50%",right:"-11px"},{tempDirection:"N",cursor:"n-resize",top:"-11px",left:"50%"},{tempDirection:"EN",cursor:"ne-resize",top:"-11px",right:"-11px"}].forEach(function(i){var n=document.createElement("div");n.className="html-control-bar";var r="height: 18px;width: 18px;z-index: 10;position: absolute;background-color: #FFFFFF;border: 2px solid #F3B713;border-radius: 50%;";r=r+"cursor:"+i.cursor+";",i.left&&(r=r+"left:"+i.left+";"),i.top&&(r=r+"top:"+i.top+";"),i.bottom&&(r=r+"bottom:"+i.bottom+";"),i.right&&(r=r+"right:"+i.right+";"),n.style.cssText=r,n.onmousedown=function(e){t.tempDirection=i.tempDirection,t.startResizing(e)},e.appendChild(n)})},e.prototype.startScale=function(e){this.mouseStartX=e.clientX,this.mouseStartY=e.clientY,this.movingBoxElement=this.currentBox.element,this.scaling=!0},e.prototype.getOwnerElement=function(){return(window.viewerHtmlElement?window.viewerHtmlElement:this.viewer.scene.canvas).parentElement},e.prototype.startResizing=function(e){this.resizing=!0,this.currentBoxHeight=this.currentBox.cssPropList.find(function(e){return"height"===e.name}),this.heightOriginValue=this.currentBoxHeight.value,this.currentBoxWidth=this.currentBox.cssPropList.find(function(e){return"width"===e.name}),this.widthOriginValue=this.currentBoxWidth.value,this.currentBoxTop=this.currentBox.cssPropList.find(function(e){return"top"===e.name}),this.topOriginValue=this.currentBoxTop.value,this.currentBoxLeft=this.currentBox.cssPropList.find(function(e){return"left"===e.name}),this.leftOriginValue=this.currentBoxLeft.value,this.resizingStartY=this.scaleValue(e.clientY),this.resizingStartX=this.scaleValue(e.clientX),this.movingBoxElement=this.currentBox.element},e.prototype.topHeightResizing=function(e){var t=this.scaleValue(e.clientY)-this.resizingStartY;this.heightOriginValue-t<=40?(this.currentBoxTop&&(this.currentBoxTop.value=this.topOriginValue+this.heightOriginValue-40),this.currentBoxHeight&&(this.currentBoxHeight.value=40)):(this.currentBoxTop&&(this.currentBoxTop.value=this.topOriginValue+t),this.currentBoxHeight&&(this.currentBoxHeight.value=this.heightOriginValue-t))},e.prototype.leftWidthResizing=function(e){var t=this.scaleValue(e.clientX)-this.resizingStartX;this.widthOriginValue-t<=40?(this.currentBoxLeft&&(this.currentBoxLeft.value=this.leftOriginValue+this.widthOriginValue-40),this.currentBoxWidth&&(this.currentBoxWidth.value=40)):(this.currentBoxLeft&&(this.currentBoxLeft.value=this.leftOriginValue+t),this.currentBoxWidth&&(this.currentBoxWidth.value=this.widthOriginValue-t))},e.prototype.widthResizing=function(e){var t=this.scaleValue(e.clientX)-this.resizingStartX;t+this.widthOriginValue<=40?this.currentBoxWidth&&(this.currentBoxWidth.value=40):this.currentBoxWidth&&(this.currentBoxWidth.value=this.widthOriginValue+t)},e.prototype.heightResizing=function(e){var t=this.scaleValue(e.clientY)-this.resizingStartY;t+this.heightOriginValue<=40?this.currentBoxHeight&&(this.currentBoxHeight.value=40):this.currentBoxHeight&&(this.currentBoxHeight.value=this.heightOriginValue+t)},e.prototype.startMoveHeight=function(e){this.resizing=!0,this.currentBoxHeight=this.currentBox.cssPropList.find(function(e){return"height"===e.name}),this.heightStartY=e.clientY,this.movingBoxElement=this.currentBox.element,this.heightOriginValue=this.currentBoxHeight.value},e.prototype.startMoveWidth=function(e){this.resizing=!0,this.currentBoxWidth=this.currentBox.cssPropList.find(function(e){return"width"===e.name}),this.widthStartX=e.clientX,this.movingBoxElement=this.currentBox.element,this.currentBoxWidth&&(this.widthOriginValue=this.currentBoxWidth.value)},e.prototype.updateSelectBox=function(){var e=this;this.currentBoxList.length>1?this.currentBoxList.forEach(function(t){e.selectedBoxBorderList.find(function(e){return e.id===t.id+"-s"})&&e.showSelectBox(t.element)}):this.currentBox&&this.showSelectBox(this.currentBox.element)},e.prototype.scaleValue=function(e){return Math.ceil(e/this.scalePercent)},e.prototype.reScaleValue=function(e){return Math.ceil(e*this.scalePercent)},e.prototype.calMouseCurrentOffset=function(){this.scalePercent;var e=this.container,t=e.getBoundingClientRect();return{top:t.top,left:t.left,width:e.offsetWidth,height:e.offsetHeight}},e.prototype.initParam=function(e){gZ.log("this.containerDiv//",this.containerDiv);var t=this.containerDiv.getElementsByClassName("html-box").length+1;this.setCurrentBox(null),this.isEditing=!0;var i=document.createElement("div");this.newBox=mZ.createBox(e.kind);var n=this.newBox.getInitialStyle();Object.assign(i.style,n),i.id=Fm.newGuid(),i.className="html-box active_box",i.style.width="400px",i.style.height="500px",i.style.left=30+30*t+"px",i.style.top=135+30*t+"px",i.innerHTML='<label class="box_placeholder" style="color:rgba(255,255,255,0.65);font-size:32px; ">单击选中富文本<br>双击编辑文本内容...</label>',i.onkeypress=function(e){e.stopPropagation()},this.initBoxEvent(i),this.containerDiv.appendChild(i);var r=i.style.backgroundColor,o=this.serviceManager.richTextService.rgbToRgba(r,.6);o&&(i.style.backgroundColor=o),this.newBox.id=i.id,this.newBox.name=ZB.createEntityName(this.newBox.name,this.boxList.map(function(e){return e.name})),this.newBox.initHtml(i),this.newBox.init();var s=this.newBox.cssPropList.find(function(e){return"type"===e.name});s&&(s.value=this.newBox.boxType),this.boxList.push(this.newBox),this.setCurrentBox(this.newBox),this.onBoxCreated.next(this.newBox),this.newBox.isInit=!1,gZ.log("initParam",this.newBox)},e.prototype.startDraw=function(e){if(this.isDrawPanelShow){var t=this.calMouseCurrentOffset();if(this.setCurrentBox(null),this.isEditing=!0,this.startX=this.scaleValue(e.pageX),this.startY=this.scaleValue(e.pageY),e.target.className.match(/html-box/))this.startDragBox(e);else{var i=document.createElement("div");this.newBox=mZ.createBox(this.currentBoxType);var n=this.newBox.getInitialStyle();Object.assign(i.style,n),i.id=Fm.newGuid(),i.className="html-box active_box",i.style.top=this.scaleValue(e.pageY-t.top)+"px",i.style.left=this.scaleValue(e.pageX-t.left)+"px",i.onkeypress=function(e){e.stopPropagation()},this.initBoxEvent(i),this.containerDiv.appendChild(i)}}},e.prototype.drawEnd=function(e){this.isDrawPanelShow=!1;var t=document.getElementsByClassName("active_box")[0];if(t){if(t.className="html-box",t.offsetWidth<50||t.offsetHeight<50)this.containerDiv.removeChild(t),this.onBoxCreated.next(1);else{if(this.newBox.id)return;this.newBox.id=t.id,this.newBox.name=ZB.createEntityName(this.newBox.name,this.boxList.map(function(e){return e.name})),this.newBox.initHtml(t),this.newBox.init();var i=this.newBox.cssPropList.find(function(e){return"type"===e.name});i&&(i.value=this.newBox.boxType),this.boxList.push(this.newBox),this.setCurrentBox(this.newBox),this.onBoxCreated.next(this.newBox),this.newBox.isInit=!1,"videoBox"===this.newBox.classType&&(this.newBox.videoPath=this.currentBoxPath,this.currentBox.setVideoBox(this.newBox))}this.endHtmlPlot$.next(1)}},e.prototype.setSubtitleListByData=function(e){var t,i,n=this;if(!e||0===e.length)return[];e.forEach(function(e){var t=document.createElement("div");t.innerHTML=e.html,t.children[0].id=e.id,n.containerDiv.appendChild(t.children[0])});var r=this.containerDiv.getElementsByClassName("html-box-subtitle"),o=Array.from(r),s=[],a=function(e){var t=o.find(function(t){return t.id===e.id});if(!t)return"continue";t.contentEditable="true",t.addEventListener("input",function(){n.subTitleChange.next(1)}),t.addEventListener("keydown",function(e){e.stopPropagation()}),t.addEventListener("keyup",function(e){e.stopPropagation()}),t.style.display="none";var i=new iZ;i.id=e.id?e.id:t.id,i.name=e.name,i.initHtml(t),i.init(),s.push(i)};try{for(var l=AZ(e),u=l.next();!u.done;u=l.next()){a(u.value)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(t)throw t.error}}return s},e.prototype.addSubtitleBox=function(e){var t=this,i=document.createElement("div");i.id=Fm.newGuid(),i.className="html-box-subtitle",i.innerHTML=e,i.onkeydown=function(e){e.stopPropagation()},i.contentEditable="true",this.containerDiv.appendChild(i),i.addEventListener("input",function(e){t.subTitleChange.next(1)}),i.addEventListener("keydown",function(e){e.stopPropagation()}),i.addEventListener("keyup",function(e){e.stopPropagation()});var n=new iZ;n.id=i.id,n.name="字幕",n.initHtml(i);var r=n.getInitialStyle();return Object.assign(i.style,r),n.init(),n.show=!1,n.element.onmousedown=function(e){gZ.log("e",e),!t.isDrawPanelShow&&e&&n&&t.setCurrentBox(n)},n},e.prototype.initBoxEvent=function(e){var t=this;e.onmousedown=function(e){e.ctrlKey&&eI.currentEditGraphList.length>0?t.setBoxEditable(!1):t.setBoxEditable(!0),t.boxOnMouseDown(e)},window.onmousemove=function(e){e.ctrlKey&&eI.currentEditGraphList.length>0?t.setBoxEditable(!1):t.setBoxEditable(!0),t.controlCurrentBox(e)},e.onmouseup=function(e){e.ctrlKey&&eI.currentEditGraphList.length>0?t.setBoxEditable(!1):t.setBoxEditable(!0),t.endDragBox()},window.onmouseup=function(e){t.scaling=!1,t.resizing=!1,t.endDragBox(),t.currentBoxHeight=null,t.currentBoxWidth=null,t.currentBox&&t.currentBox.element&&"subtitle"!==t.currentBox.classType&&t.updateOperatorPoint(t.currentBox.element)},e.onkeydown=function(e){e.stopPropagation()}},e.prototype.boxOnMouseDown=function(e){var t;if(!this.isReadOnly&&(!this.isDrawPanelShow&&e))if(t=this.boxList.find(function(t){return t.id===e.currentTarget.id}),t)this.setCurrentBox(t),this.currentBox instanceof VK||this.currentBox instanceof eZ||this.startDragBox(e);else if(e.target.parentElement||e.target.parentElement.id){var i=this.boxList.find(function(t){return t.id===e.target.parentElement.id});i&&(this.setCurrentBox(i),e.target.style.cursor="text")}},e.prototype.setCurrentBox=function(e,t,i){var n=this;if(void 0===t&&(t=!0),void 0===i&&(i=!1),this.currentBox instanceof rZ&&this.currentBox!==e&&this.serviceManager.richTextService.clear(),this.currentBox=e,e&&document.getElementById(e.id))if(document.getElementById(e.id).onkeydown=function(e){e.ctrlKey&&67==e.keyCode&&e.stopPropagation()},document.getElementById(e.id).onkeyup=function(e){e.ctrlKey&&67==e.keyCode&&e.stopPropagation()},e instanceof iZ||this.initBoxEvent(e.element),e instanceof iZ?(this.currentBox=e,this.showSelectBox(e.element,!0)):e instanceof rZ?(this.serviceManager.richTextService.currentHtmlBox||this.serviceManager.richTextService.editor||(this.showSelectBox(e.element),this.showOperator(e.element)),document.getElementById(e.id).ondblclick=function(t){e.isReadOnly||(n.serviceManager.richTextService.setCurrentRichText(e,n.currentBox,n.scalePercent),n.hideOperator())}):(this.showSelectBox(e.element),this.showOperator(e.element)),window.event&&window.event.ctrlKey||i){if(e instanceof iZ)return;this.isCtrlPressedSub$.next(!0);var r=this.currentBoxList.indexOf(e);if(r>-1){var o,s=this.selectedBoxBorderList.find(function(t){return t.id===e.id+"-s"});if(s&&(s.childNodes.forEach(function(e){e.style.backgroundColor="#FFFFFF"}),s.style.display="none"),this.currentBoxList.splice(r,1),this.currentBoxList.length>=1)(o=new eZ).init(this.currentBoxList),this.currentBox=o,t&&this.onCtrlBoxesSelected.next(this.currentBoxList);else this.onCtrlBoxesSelected.next(null)}else this.currentBoxList.push(e),this.currentBox=e,t&&0===eI.currentEditGraphList.length?this.onBoxSelected.next(e):t&&this.onCtrlBoxesSelected.next(this.currentBoxList);if(this.currentBoxList.length>1)(o=new eZ).init(this.currentBoxList),this.currentBox=o,t&&0===eI.currentEditGraphList.length&&(this.onBoxSelected.next(e),this.onCtrlBoxesSelected.next(this.currentBoxList));this.serviceManager.richTextService.clear(),eI.currentBoxList=this.currentBoxList,this.isCtrlPressedSub$.next(!1)}else this.currentBox=e,this.currentBoxList=[],this.currentBoxList.push(e),eI.currentBoxList=this.currentBoxList,this.selectedBoxBorderList.forEach(function(t){t.childNodes.forEach(function(e){e.style.backgroundColor="#FFFFFF"}),t.id!=e.id+"-s"&&(t.style.display="none")}),t&&this.onBoxSelected.next(e);else this.hideOperator(),this.currentBoxList=[],this.selectedBoxBorderList.forEach(function(e){return e.style.display="none"}),this.currentBox},e.prototype.addImage=function(e,t,i){this.calMouseCurrentOffset();var n=document.createElement("div");n.id=Fm.newGuid(),n.className="html-box",n.style.top=this.scaleValue(t)+"px",n.style.left=this.scaleValue(e)+"px",this.initBoxEvent(n),this.containerDiv.appendChild(n);var r=new KK;r.name="图片",r.boxType="文本框",r.id=n.id,r.initHtml(n),r.init();var o=r.getInitialStyle();o.height="200px",o.width="200px",Object.assign(n.style,o);var s=r.cssPropList.find(function(e){return"type"===e.name});s&&(s.value=r.boxType);var a=r.cssPropList.find(function(e){return"background-image"===e.name});a&&(a.value=i);var l=r.cssPropList.find(function(e){return"background-size"===e.name});l&&(l.value="适应"),this.boxList.push(r),this.setCurrentBox(r),this.onBoxCreated.next(r)},e.prototype.startDragBox=function(e){if(null!=this.currentBox&&null!=this.currentBox.cssPropList){var t=this.currentBox.cssPropList.find(function(e){return"isReadOnly"===e.name});if(!t||1!=t.value){this.dragging=!0,this.currentBox.isOperating=!0;var i=document.getElementsByClassName("moving_box")[0];if(i&&(i.className=i.className.replace("moving_box","")),e.target.className+=" moving_box",this.currentBox instanceof VK)this.diffX=this.scaleValue(e.clientX)-this.currentBox.element.offsetLeft,this.diffY=this.scaleValue(e.clientY)-this.currentBox.element.offsetTop,this.movingBoxElement=this.currentBox.element,this.currentBoxTop=this.currentBox.cssPropList.find(function(e){return"top"===e.name}),this.currentBoxLeft=this.currentBox.cssPropList.find(function(e){return"left"===e.name}),this.currentBoxTop&&this.currentBoxLeft&&(this.beginDragValue={top:this.currentBoxTop.value,left:this.currentBoxLeft.value});else if(this.currentBox instanceof eZ){var n=this.currentBoxList[this.currentBoxList.length-1];this.diffX=this.scaleValue(e.clientX)-n.element.offsetLeft,this.diffY=this.scaleValue(e.clientY)-n.element.offsetTop,this.movingBoxElement=n.element,this.currentBoxTop=n.cssPropList.find(function(e){return"top"===e.name}),this.currentBoxLeft=n.cssPropList.find(function(e){return"left"===e.name}),this.currentBoxTop&&this.currentBoxLeft&&(this.beginDragValue={top:this.currentBoxTop.value,left:this.currentBoxLeft.value});var r=new Map;this.currentBoxList.forEach(function(e){var t=e.cssPropList.find(function(e){return"top"===e.name}),i=e.cssPropList.find(function(e){return"left"===e.name});if(t&&i){var n={top:t.value,left:i.value};r.set(e.id,n)}}),this.multiBeginValue=r}gZ.log(this.diffX,"-----",this.diffY)}}},e.prototype.endDragBox=function(){if(this.dragging){var e=void 0;this.currentBoxTop&&this.currentBoxLeft&&(e={top:this.currentBoxTop.value,left:this.currentBoxLeft.value}),this.operatorEnd.next({target:this.currentBox,beginvalue:this.beginDragValue,endvalue:e,multiBeginValue:this.multiBeginValue}),this.dragging=!1,this.currentBox.isOperating=!1}},e.prototype.deleteAll=function(){this.containerDiv&&(this.containerDiv.innerHTML="",this.onBoxSelected.next(null))},e.prototype.controlCurrentBox=function(e){var t=this,i=window.getSelection();if((null==i||""===i.toString().trim())&&null!=this.currentBox&&null!=this.currentBox.cssPropList){var n=this.currentBox.cssPropList.find(function(e){return"isReadOnly"===e.name});if(!n||!0!==n.value){this.calMouseCurrentOffset();if(this.dragging||this.resizing||this.scaling){if(this.dragging){if(this.movingBoxElement){var r=this.scaleValue(e.pageY)-this.diffY,o=this.scaleValue(e.pageX)-this.diffX;if(this.currentBox instanceof VK)this.currentBoxTop&&(this.currentBoxTop.value=r),this.currentBoxLeft&&(this.currentBoxLeft.value=o);else if(this.currentBox instanceof eZ){var s=0,a=0;this.currentBoxTop&&(s=r-this.currentBoxTop.value,this.currentBoxTop.value=r),this.currentBoxLeft&&(a=o-this.currentBoxLeft.value,this.currentBoxLeft.value=o);for(var l=0;l<this.currentBoxList.length-1;l++){var u=this.currentBoxList[l].cssPropList.find(function(e){return"top"===e.name}),c=this.currentBoxList[l].cssPropList.find(function(e){return"left"===e.name});u&&c&&(u.value=u.value+s,c.value=c.value+a),this.showSelectBox(this.currentBoxList[l].element)}}}}else if(this.resizing){if(this.currentBoxList.length>1)return;switch(this.tempDirection){case"WN":this.topHeightResizing(e),this.leftWidthResizing(e);break;case"W":this.leftWidthResizing(e);break;case"WS":this.leftWidthResizing(e),this.heightResizing(e);break;case"S":this.heightResizing(e);break;case"ES":this.widthResizing(e),this.heightResizing(e);break;case"E":this.widthResizing(e);break;case"N":this.topHeightResizing(e);break;case"EN":this.topHeightResizing(e),this.widthResizing(e)}}else if(this.scaling){var h=e.clientX-this.mouseStartX;if(this.currentBox instanceof VK){var p=this.currentBox.cssPropList.find(function(e){return"width"===e.name}),d=this.currentBox.cssPropList.find(function(e){return"height"===e.name});d.value=p.value*(d.value+h)/p.value,p.value+=h,this.mouseStartX=e.clientX}else this.currentBox instanceof eZ&&(this.currentBoxList.forEach(function(e){var i=e.cssPropList.find(function(e){return"width"===e.name}),n=e.cssPropList.find(function(e){return"height"===e.name});n.value=n.value*(i.value+h)/i.value,i.value+=h,t.showSelectBox(e.element)}),this.mouseStartX=e.clientX)}this.showSelectBox(this.movingBoxElement)}}}},e.prototype.resetRichToolbarPos=function(){var e,t=document.getElementById("rich-text-tool-container");t&&((null===(e=this.currentBoxTop)||void 0===e?void 0:e.value)<50?t.style.top="0":t.style.top="-35px")},e.prototype.saveImage=function(e){return yZ(this,void 0,void 0,function(){var t,i;return _Z(this,function(n){return t=e.target.files[0],(i=new FormData).append("type","other"),i.append("file",t),[2]})})},e}();function CZ(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function bZ(e={},t={}){Object.keys(t).forEach(i=>{void 0===e[i]?e[i]=t[i]:CZ(t[i])&&CZ(e[i])&&Object.keys(t[i]).length>0&&bZ(e[i],t[i])})}const wZ={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function xZ(){const e="undefined"!=typeof document?document:{};return bZ(e,wZ),e}const SZ={document:wZ,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function MZ(){const e="undefined"!=typeof window?window:{};return bZ(e,SZ),e}class PZ extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function EZ(e=[]){const t=[];return e.forEach(e=>{Array.isArray(e)?t.push(...EZ(e)):t.push(e)}),t}function LZ(e,t){return Array.prototype.filter.call(e,t)}function TZ(e){return e.toLowerCase().replace(/-(.)/g,(e,t)=>t.toUpperCase())}function OZ(e,t){const i=MZ(),n=xZ();let r=[];if(!t&&e instanceof PZ)return e;if(!e)return new PZ(r);if("string"==typeof e){const i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){let e="div";0===i.indexOf("<li")&&(e="ul"),0===i.indexOf("<tr")&&(e="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(e="tr"),0===i.indexOf("<tbody")&&(e="table"),0===i.indexOf("<option")&&(e="select");const t=n.createElement(e);t.innerHTML=i;for(let e=0;e<t.childNodes.length;e+=1)r.push(t.childNodes[e])}else r=function(e,t){if("string"!=typeof e)return[e];const i=[],n=t.querySelectorAll(e);for(let e=0;e<n.length;e+=1)i.push(n[e]);return i}(e.trim(),t||n)}else if(e.nodeType||e===i||e===n)r.push(e);else if(Array.isArray(e)){if(e instanceof PZ)return e;r=e}return new PZ(function(e){const t=[];for(let i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}(r))}function DZ(...e){const t=EZ(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.add(...t)}),this}function BZ(...e){const t=EZ(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.remove(...t)}),this}function IZ(...e){const t=EZ(e.map(e=>e.split(" ")));return LZ(this,e=>t.filter(t=>e.classList.contains(t)).length>0).length>0}function RZ(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(e,t);else for(const t in e)this[i][t]=e[t],this[i].setAttribute(t,e[t]);return this}function NZ(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function kZ(){const e=this[0];if(!e)return;const t={};if(e.dataset)for(const i in e.dataset)t[i]=e.dataset[i];else for(let i=0;i<e.attributes.length;i+=1){const n=e.attributes[i];n.name.indexOf("data-")>=0&&(t[TZ(n.name.split("data-")[1])]=n.value)}for(const e in t)"false"===t[e]?t[e]=!1:"true"===t[e]?t[e]=!0:parseFloat(t[e])===1*t[e]&&(t[e]*=1);return t}function FZ(e){if(void 0===e){const e=this[0];if(!e)return;if(e.multiple&&"select"===e.nodeName.toLowerCase()){const t=[];for(let i=0;i<e.selectedOptions.length;i+=1)t.push(e.selectedOptions[i].value);return t}return e.value}for(let t=0;t<this.length;t+=1){const i=this[t];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(let t=0;t<i.options.length;t+=1)i.options[t].selected=e.indexOf(i.options[t].value)>=0;else i.value=e}return this}function HZ(...e){let[t,i,n,r]=e;function o(e){const t=e.target;if(!t)return;const r=e.target.dom7EventData||[];if(r.indexOf(e)<0&&r.unshift(e),OZ(t).is(i))n.apply(t,r);else{const e=OZ(t).parents();for(let t=0;t<e.length;t+=1)OZ(e[t]).is(i)&&n.apply(e[t],r)}}function s(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),n.apply(this,t)}"function"==typeof e[1]&&([t,n,r]=e,i=void 0),r||(r=!1);const a=t.split(" ");let l;for(let e=0;e<this.length;e+=1){const t=this[e];if(i)for(l=0;l<a.length;l+=1){const e=a[l];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:n,proxyListener:o}),t.addEventListener(e,o,r)}else for(l=0;l<a.length;l+=1){const e=a[l];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:n,proxyListener:s}),t.addEventListener(e,s,r)}}return this}function YZ(){const e=MZ();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function jZ(){const e=MZ();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function UZ(){if(this.length>0){const e=MZ(),t=xZ(),i=this[0],n=i.getBoundingClientRect(),r=t.body,o=i.clientTop||r.clientTop||0,s=i.clientLeft||r.clientLeft||0,a=i===e?e.scrollY:i.scrollTop,l=i===e?e.scrollX:i.scrollLeft;return{top:n.top+a-o,left:n.left+l-s}}return null}function GZ(){for(let e=0;e<this.length;e+=1)this[e].style.display="none";return this}function QZ(){const e=MZ();for(let t=0;t<this.length;t+=1){const i=this[t];"none"===i.style.display&&(i.style.display=""),"none"===e.getComputedStyle(i,null).getPropertyValue("display")&&(i.style.display="block")}return this}function zZ(e,t){const i=MZ();let n;if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(const t in e)this[n].style[t]=e[t];return this}if(this[0])return i.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function WZ(e){return e?(this.forEach((t,i)=>{e.apply(t,[t,i])}),this):this}function XZ(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function VZ(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this}function JZ(e){const t=MZ(),i=xZ(),n=this[0];let r,o;if(!n||void 0===e)return!1;if("string"==typeof e){if(n.matches)return n.matches(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);for(r=OZ(e),o=0;o<r.length;o+=1)if(r[o]===n)return!0;return!1}if(e===i)return n===i;if(e===t)return n===t;if(e.nodeType||e instanceof PZ){for(r=e.nodeType?[e]:e,o=0;o<r.length;o+=1)if(r[o]===n)return!0;return!1}return!1}function KZ(...e){let t;const i=xZ();for(let n=0;n<e.length;n+=1){t=e[n];for(let e=0;e<this.length;e+=1)if("string"==typeof t){const n=i.createElement("div");for(n.innerHTML=t;n.firstChild;)this[e].appendChild(n.firstChild)}else if(t instanceof PZ)for(let i=0;i<t.length;i+=1)this[e].appendChild(t[i]);else this[e].appendChild(t)}return this}function ZZ(e){const t=xZ();let i,n;for(i=0;i<this.length;i+=1)if("string"==typeof e){const r=t.createElement("div");for(r.innerHTML=e,n=r.childNodes.length-1;n>=0;n-=1)this[i].insertBefore(r.childNodes[n],this[i].childNodes[0])}else if(e instanceof PZ)for(n=0;n<e.length;n+=1)this[i].insertBefore(e[n],this[i].childNodes[0]);else this[i].insertBefore(e,this[i].childNodes[0]);return this}function qZ(e){const t=[];for(let i=0;i<this.length;i+=1)null!==this[i].parentNode&&(e?OZ(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return OZ(t)}function $Z(e){const t=[];for(let i=0;i<this.length;i+=1){let n=this[i].parentNode;for(;n;)e?OZ(n).is(e)&&t.push(n):t.push(n),n=n.parentNode}return OZ(t)}function eq(e){const t=[];for(let i=0;i<this.length;i+=1){const n=this[i].querySelectorAll(e);for(let e=0;e<n.length;e+=1)t.push(n[e])}return OZ(t)}function tq(e){const t=[];for(let i=0;i<this.length;i+=1){const n=this[i].children;for(let i=0;i<n.length;i+=1)e&&!OZ(n[i]).is(e)||t.push(n[i])}return OZ(t)}function iq(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function nq(){for(let e=0;e<this.length;e+=1){const t=this[e];if(1===t.nodeType){for(let e=0;e<t.childNodes.length;e+=1)t.childNodes[e].parentNode&&t.childNodes[e].parentNode.removeChild(t.childNodes[e]);t.textContent=""}}return this}OZ.fn=PZ.prototype;const rq="resize scroll".split(" ");function oq(e){return function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)rq.indexOf(e)<0&&(e in this[t]?this[t][e]():OZ(this[t]).trigger(e));return this}return this.on(e,...t)}}oq("click"),oq("blur");const sq=oq("focus"),aq=(oq("focusin"),oq("focusout"),oq("keyup"),oq("keydown"),oq("keypress"),oq("submit"),oq("change"),oq("mousedown"),oq("mousemove"),oq("mouseup"),oq("mouseenter"),oq("mouseleave"),oq("mouseout"),oq("mouseover"),oq("touchstart"),oq("touchend"),oq("touchmove"),oq("resize"),oq("scroll"),OZ);var lq=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s};function uq(e,t){for(var i="",n=(e.attr("style")||"").split(";"),r=n.length,o=0;o<r;o++){var s=n[o];if(s){var a=s.split(":");a[0].trim()===t&&(i=a[1].trim())}}return i}KZ&&(aq.fn.append=KZ),ZZ&&(aq.fn.prepend=ZZ),HZ&&(aq.fn.on=HZ),sq&&(aq.fn.focus=sq),RZ&&(aq.fn.attr=RZ),FZ&&(aq.fn.val=FZ),XZ&&(aq.fn.html=XZ),qZ&&(aq.fn.parent=qZ),IZ&&(aq.fn.hasClass=IZ),nq&&(aq.fn.empty=nq),zZ&&(aq.fn.css=zZ),DZ&&(aq.fn.addClass=DZ),BZ&&(aq.fn.removeClass=BZ),NZ&&(aq.fn.removeAttr=NZ),GZ&&(aq.fn.hide=GZ),QZ&&(aq.fn.show=QZ),UZ&&(aq.fn.offset=UZ),YZ&&(aq.fn.width=YZ),jZ&&(aq.fn.height=jZ),$Z&&(aq.fn.parents=$Z),JZ&&(aq.fn.is=JZ),kZ&&(aq.fn.dataset=kZ),VZ&&(aq.fn.text=VZ),tq&&(aq.fn.children=tq),iq&&(aq.fn.remove=iq),eq&&(aq.fn.find=eq),WZ&&(aq.fn.each=WZ);const cq=aq;var hq=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],pq=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},dq=function(){function e(){this.title="描边颜色",this.iconSvg='<svg t="1649915937162" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12814" width="64" height="64"><path d="M907.562667 907.562667h-230.4l-59.733334-159.829334H416.853333l-57.728 159.829334H128L431.317333 128h172.885334l303.317333 779.562667z m-196.992-46.933334h126.677333L570.965333 175.146667H465.066667L197.76 860.416h127.104l55.466667-159.872h271.104l59.221333 159.872zM614.4 604.842667H413.866667l99.370666-283.989334 101.12 283.946667z m-132.010667-47.189334h64l-33.109333-91.989333-30.848 91.989333z" p-id="12815"></path></svg>',this.tag="button",this.showDropPanel=!0,this.mark="textStrokeColor",this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,i=window.wangEditor.SlateEditor.marks(e);return i&&i[t]?i[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!pq(window.wangEditor.SlateEditor.nodes(e,{match:function(t){return"pre"===window.wangEditor.DomEditor.getNodeType(t)||!!window.wangEditor.SlateEditor.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var i=cq('<ul class="w-e-panel-content-color"></ul>');i.on("click","li",function(t){var i=t.target;if(null!=i&&(t.preventDefault(),null!=e.selection)){var n=cq(i).attr("data-value");if("0"===n)window.wangEditor.SlateEditor.removeMark(e,"textStrokeColor"),e.removeMark("textStrokeWidth");else{window.wangEditor.SlateEditor.addMark(e,"textStrokeColor",n);var r=window.wangEditor.SlateEditor.marks(e);r.textStrokeWidth&&"0px"!==r.textStrokeWidth||e.addMark("textStrokeWidth","1px")}}}),this.$content=i}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=this.getValue(e);e.getMenuConfig(t);hq.forEach(function(e){var t=cq('<div class="color-block" data-value="'.concat(e,'"></div>'));t.css("background-color",e);var i=cq('<li data-value="'.concat(e,'"></li>'));r===e&&i.addClass("active"),i.append(t),n.append(i)});var o=cq('\n <li data-value="0" class="clear">\n '.concat('<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>',"\n ").concat("无","\n </li>\n "));return n.prepend(o),n[0]},e}(),fq=function(){function e(){this.title="描边宽度",this.iconSvg="mk",this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"textStrokeWidth0px",text:"无"},{value:"textStrokeWidth1px",text:"1px"},{value:"textStrokeWidth2px",text:"2px"},{value:"textStrokeWidth3px",text:"3px"},{value:"textStrokeWidth4px",text:"4px"},{value:"textStrokeWidth5px",text:"5px"},{value:"textStrokeWidth6px",text:"6px"},{value:"textStrokeWidth7px",text:"7px"},{value:"textStrokeWidth8px",text:"8px"},{value:"textStrokeWidth9px",text:"9px"},{value:"textStrokeWidth10px",text:"10px"}],i=this.getValue(e);return t.forEach(function(e){e.value===i?e.selected=!0:delete e.selected}),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=window.wangEditor.SlateEditor.marks(e);if(t&&t.textStrokeWidth)return"textStrokeWidth".concat(t.textStrokeWidth);var i=function(e){var t=lq(window.wangEditor.SlateEditor.nodes(e,{match:function(e){if(e.textStrokeWidth)return e.textStrokeWidth.slice(0,-2)},universal:!0}),1),i=t[0];if(null==i)return"textStrokeWidth0px";var n=lq(i,1)[0].textStrokeWidth;return n.includes("px")?"textStrokeWidth".concat(n):"textStrokeWidth0px"}(e);return i||"textStrokeWidth0px"},e.prototype.isDisabled=function(e){return function(e){return null==e.selection||!lq(window.wangEditor.SlateEditor.nodes(e,{match:function(e){var t=window.wangEditor.DomEditor.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}(e)},e.prototype.exec=function(e,t){var i=t.toString().slice(15);"0"===i?e.removeMark("textStrokeWidth"):e.addMark("textStrokeWidth","".concat(i))},e}();function mq(e,t){null==e.data&&(e.data={});var i=e.data;null==i.style&&(i.style={}),Object.assign(i.style,t)}function gq(e,t){var i=e,n=i.textStrokeColor,r=i.textStrokeWidth,o=(i.textAlignLast,i.textAlign,t);return n&&mq(o,{"-webkit-text-stroke-color":n}),r&&mq(o,{"-webkit-text-stroke-width":r}),o}var yq={insertKeys:{index:5,keys:["text-stroke-color","text-stroke-width"]},toolbarKeys:["|","fontFamily","fontSize","color","bgColor","bold","italic","underline","through",{iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',key:"group-justify",menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"],title:"对齐"},{iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',key:"group-indent",menuKeys:["indent","delIndent"],title:"缩进"},"lineHeight","insertLink",{iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',key:"group-image",menuKeys:["uploadImage","insertImage"],title:"图片"},"divider","|"]},_q={};function Aq(e,t){if(!window.wangEditor.SlateText.isText(e))return t;var i,n,r=e.textStrokeColor,o=e.textStrokeWidth;if(!r&&!o)return t;0===aq("<div>".concat(t,"</div>")).children().filter(function(e){return"BR"!==e.tagName}).length?i=aq("<span>".concat(t,"</span>")):(i=aq(t),"span"!==((n=i).length?n[0].tagName.toLowerCase():"")&&(i=aq("<span>".concat(t,"</span>"))));return r&&i.css("-webkit-text-stroke-color",r),o&&i.css("-webkit-text-stroke-width",o),function(e){if(0===e.length)return"";return e[0].outerHTML}(i)}function vq(e,t){if(e=aq(e),!window.wangEditor.SlateText.isText(t))return t;var i=t,n=uq(e,"-webkit-text-stroke-color");n&&(i.textStrokeColor=n);var r=uq(e,"-webkit-text-stroke-width");r&&(i.textStrokeWidth=r);var o=uq(e,"-webkit-text-stroke");if(o){var s=o.split(" ")[0];i.textStrokeWidth=s,i.textStrokeColor=o.slice(s.length,o.length).trim()}return i}_q.placeholder="请输入内容",_q.onChange=function(e){},_q.hoverbarKeys={text:{menuKeys:[]}},_q.MENU_CONF={},_q.MENU_CONF.fontFamily={fontFamilyList:["宋体","仿宋","楷体","隶书","幼圆","黑体"]},_q.MENU_CONF.fontSize={fontSizeList:["12px","16px","18px","20px","24px","32px","40px","48px","56px","72px","88px","104px","120px","140px","160px","180px","200px"]},_q.MENU_CONF.lineHeight={lineHeightList:["1.0","1.5","2.0","2.5","3.0"]},_q.MENU_CONF.uploadImage={base64LimitSize:524288e3};var Cq=__webpack_require__(6763),bq=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},wq=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},xq=function(){function e(e){if(this.prevChangeContent="",this.sceneEditSub$=new am,this.scalePercentCopy=1,this.scalePercentCopySub$=new am,this.beyondRange=!1,this.serviceManager=e,window.wangEditor){var t={key:"text-stroke-color",factory:function(){return new dq}};window.wangEditor.Boot.registerMenu(t);var i={key:"text-stroke-width",factory:function(){return new fq}};window.wangEditor.Boot.registerMenu(i),window.wangEditor.Boot.registerRenderStyle(gq),window.wangEditor.Boot.registerStyleToHtml(Aq),window.wangEditor.Boot.registerParseStyleHtml(vq)}}return e.prototype.setCurrentRichText=function(e,t,i){var n;if(e&&e!==this.currentHtmlBox){t&&t.element.innerHTML.includes("box_placeholder")&&(e.element.innerHTML=""),this.currentHtmlBox=e;var r=e.element.innerHTML;if(r.includes("scroll_box")){var o=this.parseElement(r),s=void 0;if(o.childNodes.length>0){s=o.childNodes[0].outerHTML;for(var a=1;a<o.childNodes.length;a++)s+=o.childNodes[a].outerHTML}r=s}var l=e.element.childNodes;for(a=l.length-1;a>=0;a--)e.element.removeChild(l.item(a));var u=document.createElement("div");u.id="rich-text-tool-container",e.element.appendChild(u);var c=this.updateToolPos(e.element,i,705);u.style.position="absolute",u.style.left=c.curleft,u.style.top=c.curtop,u.style.width="".concat(695,"px"),u.style.height="40px",u.style.transform="scale(".concat(1/i,")"),u.style.zIndex="20";var h=document.createElement("div");h.className="wt-editor-content-wrapper",e.element.appendChild(h),h.style.zIndex="19",h.onkeydown=function(e){e.stopPropagation()},h.onkeyup=function(e){e.stopPropagation()},this.init(u,h,r);var p=document.getElementsByClassName("w-e-bar")[0];this.beyondRange?p&&p.setAttribute("type","bottom"):p&&p.setAttribute("type",""),this.mouseStateUpdate(e),e.isReadOnly&&(null===(n=this.editor)||void 0===n||n.disable())}},e.prototype.modelScale=function(e){var t=document.getElementsByClassName("w-e-modal")[0];Cq.log("model",t),t.style.transform="scale(".concat(1/e,")")},e.prototype.updateToolPos=function(e,t,i){var n={curleft:"",curtop:""},r=parseFloat(e.style.top.slice(0,e.style.top.length-2)),o=parseFloat(e.style.left.slice(0,e.style.left.length-2)),s=(parseFloat(e.style.width.slice(0,e.style.width.length-2)),parseFloat(e.style.height.slice(0,e.style.height.length-2))),a=document.getElementById("richTextPanel"),l=parseFloat(a.style.width.slice(0,a.style.width.length-2)),u=parseFloat(a.style.height.slice(0,a.style.height.length-2));r<170?(this.beyondRange=!0,Cq.log("上边超出显示区域!"),n.curtop=s+50+"px"):r>u-100?(this.beyondRange=!1,Cq.log("下边超出显示区域!"),n.curtop=u-100+"px"):(this.beyondRange=!1,n.curtop=-40/t/2-10/t-20+"px");var c=(i-i*t)/(2*t);return o<0?(Cq.log("左边超出显示区域!"),n.curleft=Math.abs(o)+c+"px"):o>l-i/t?(Cq.log("右边超出显示区域!"),n.curleft=l-i-o-c+"px",Cq.log("curValue.curleft ",n.curleft)):n.curleft="".concat(c,"px"),n},e.prototype.init=function(e,t,i){var n=this;if(window.wangEditor){var r=window.wangEditor.createEditor({html:i,selector:t,config:Object.assign(_q,{onChange:function(e){var t,i;if(e.getText()){var r=e.getHtml();if(r&&n.prevChangeContent){if(n.prevChangeContent!==r){n.sceneEditSub$.next(!0),n.prevChangeContent=r;var o=window.wangEditor.SlateEditor.nodes(e,{match:function(e){return"image"===e.type},universal:!0});if(null!==o){var s=function(e){var t=bq(e,2),i=t[0];t[1];Cq.log("粘贴或修改了图片节点------",i),setTimeout(function(){var e,t=n.editor.toDOMNode(i),r=null===(e=n.editor.getEditableContainer())||void 0===e?void 0:e.querySelector(".w-e-scroll");if(t&&r){var o=t.getBoundingClientRect(),s=r.getBoundingClientRect();o.top>s.top&&o.bottom<s.bottom||t.scrollIntoView(!1)}})};try{for(var a=wq(o),l=a.next();!l.done;l=a.next()){s(l.value)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(t)throw t.error}}}}}else n.prevChangeContent=r}}}),mode:"simple"}),o=(window.wangEditor.createToolbar({editor:r,selector:e,config:yq,mode:"default"}),r.hidePanelOrModal);return r.hidePanelOrModal=function(){"isClickOnColorPickPanel"!==window.wangeditorClickTarget&&o();var e=document.querySelectorAll(".w-e-bar .show-item-menus-dy");e&&e.length&&e.forEach(function(e){e.classList.remove("show-item-menus-dy")})},setTimeout(function(){var e=document.querySelectorAll(".w-e-bar .w-e-bar-item");e&&e.length&&e.forEach(function(e,t){if(e.className&&e.className.includes("w-e-bar-item-group")){var i=void 0;switch(t){case 10:i="对齐方式";break;case 15:i="缩进设置";break;case 20:i="上传图片"}e.setAttribute("data-tooltip",i),e.classList.add("w-e-menu-tooltip-v5"),e.addEventListener("click",function(){var t=document.querySelectorAll(".w-e-bar .w-e-select-list");t&&t.length&&t.forEach(function(e){e.style.display="none"}),e.classList.add("show-item-menus-dy")})}e.addEventListener("mouseleave",function(e){var t=e.currentTarget,i=t.querySelector(".w-e-select-list");!i&&((i=t.querySelector(".w-e-bar-item-menus-container"))&&i.parentNode.classList.contains("show-item-menus-dy")&&i.parentNode.classList.remove("show-item-menus-dy"),i)||(i||(i=t.querySelector(".w-e-drop-panel")),i&&(i.style.display="none"))})})},100),this.editor=r,setTimeout(function(){var e=window.wangEditor.SlateEditor.end(r,[]);n.editor.select(e)}),this.editor.on("modalOrPanelShow",function(e){var t;if("modal"===e.type){document.documentElement.style.setProperty("--rich-text-zdy-modal-transform-value","0px, 0px");var i,r=e.$elem[0],o=r.textContent,s="",a="";if(o.includes("链接文本")||o.includes("链接地址")?s="linkModal":o.includes("图片地址")&&(s="picModal"),!o)return;var l=null===(t=window.wangEditor.DomEditor.getToolbar(n.editor))||void 0===t?void 0:t.$toolbar[0];if(!l)return;if(i="bottom"===l.getAttribute("type")?"bottom":"top","linkModal"===s?a=l.querySelector('.w-e-menu-tooltip-v5[data-tooltip="超链接"]'):"picModal"===s&&(a=l.querySelector('.w-e-menu-tooltip-v5[data-tooltip="上传图片"]')),!a)return;if(r.classList.add("rich-text-modal-position-set"),"bottom"===i){var u=l.getBoundingClientRect().top-n.editor.getEditableContainer().getBoundingClientRect().top-r.getBoundingClientRect().height,c=a.getBoundingClientRect().right-r.getBoundingClientRect().right;document.documentElement.style.setProperty("--rich-text-zdy-modal-transform-value","".concat(c/window.scalePercent,"px, ").concat(u/window.scalePercent,"px"))}else if("top"===i){u=l.getBoundingClientRect().bottom-n.editor.getEditableContainer().getBoundingClientRect().top,c=a.getBoundingClientRect().right-r.getBoundingClientRect().right;document.documentElement.style.setProperty("--rich-text-zdy-modal-transform-value","".concat(c/window.scalePercent,"px, ").concat(u/window.scalePercent,"px"))}}}),this.editor}},e.prototype.clear=function(){if(this.editor||!this.currentHtmlBox)if(!this.editor||this.currentHtmlBox){if(this.editor&&this.currentHtmlBox){var e=this.editor.getHtml();this.editor.clear(),this.prevChangeContent="";for(var t,i=this.currentHtmlBox.element.childNodes,n=i.length-1;n>=0;n--)this.currentHtmlBox.element.removeChild(i.item(n));if((t=document.createElement("div")).className="scroll_box",t.style.height="100%",t.style.overflowY="auto",t.style.overflowX="hidden",t.style.boxSizing="content-box",e.includes("scroll_box"))this.currentHtmlBox.element.innerHTML=e;else{t.innerHTML=e;var r=this.stringIze(t);this.currentHtmlBox.element.innerHTML=r}"\n"===this.currentHtmlBox.element.innerText&&(this.currentHtmlBox.element.innerHTML='<label class="box_placeholder" style="color:rgba(255,255,255,0.65);font-size:32px; ">单击选中富文本<br>双击编辑文本内容...</label>'),this.currentHtmlBox.element.style.cursor="default",this.currentHtmlBox=void 0,this.editor=void 0}}else this.editor=void 0;else this.currentHtmlBox=void 0},e.prototype.stringIze=function(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML},e.prototype.parseElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},e.prototype.setTooltip=function(){this.serviceManager.advancedHtmlService.isHtmlEditContent=!1},e.prototype.disable=function(){this.editor&&this.currentHtmlBox&&this.editor.disable()},e.prototype.enable=function(){this.editor&&this.currentHtmlBox&&this.editor.enable()},e.prototype.mouseStateUpdate=function(e){e.element&&(e.element.style.cursor="text")},e.prototype.backColorUpdate=function(e){var t,i,n=e.cssPropList.find(function(e){return"background-color"===e.name}),r=e.cssPropList.find(function(e){return"background-opacity"===e.name}),o=document.getElementsByClassName("w-e-text-container")[0],s=o.firstElementChild.childNodes;if(o&&(n.value&&!r.value&&(o.style.backgroundColor=n.value),n.value&&r.value)){var a=this.hexToRgba(n.value,r.value);if(a){o.style.backgroundColor=a;try{for(var l=wq(s),u=l.next();!u.done;u=l.next()){var c=u.value;"p"===c.localName&&(c.style.backgroundColor="transparent")}}catch(e){t={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(t)throw t.error}}}}},e.prototype.hexToRgba=function(e,t){return"rgba("+parseInt("0x"+e.slice(1,3))+","+parseInt("0x"+e.slice(3,5))+","+parseInt("0x"+e.slice(5,7))+","+t+")"},e.prototype.rgbToRgba=function(e,t){var i=e.match(/[\d.]+/g);if(i.length>=3){return"rgba("+i[0]+","+i[1]+","+i[2]+","+t+")"}Cq.error("颜色格式不正确!")},e}(),Sq=__webpack_require__(6763),Mq=function(){function e(t){var i=this;this.boardOffsetX="100",this.boardOffsetY="100",this.wordNumberLimit=15,this.boardMoveZIndex=1,this.graphBoardStyle=[{id:1,pic:"/assets/images/label/label1.png",line:{"border-bottom":"3px solid rgba(255, 255, 255, 0.8)","margin-top":"10px"},boardLine:"3px solid rgba(255, 255, 255, 0.8)",boardPic:"/assets/images/label/board1.png",wordNumber:4},{id:2,pic:"/assets/images/label/label2.png",line:{"border-bottom":"3px dotted rgba(255, 229, 14, 0.8)","margin-top":"10px"},boardLine:"3px dotted rgba(255, 229, 14, 0.8)",boardPic:"/assets/images/label/board2.png",wordNumber:4},{id:3,pic:"/assets/images/label/label3.png",line:{"border-bottom":"3px dashed rgba(13, 217, 168, 0.8)","margin-top":"10px"},boardLine:"3px dashed rgba(13, 217, 168, 0.8)",boardPic:"/assets/images/label/board3.png",wordNumber:4},{id:4,pic:"/assets/images/label/label4.png",line:{"border-bottom":"3px solid rgba(255, 255, 255, 0.8)","margin-top":"10px"},boardLine:"3px solid rgba(255, 255, 255, 0.8)",boardPic:"/assets/images/label/board4.png",wordNumber:4},{id:5,pic:"/assets/images/label/label5.png",line:{"border-bottom":"3px dotted rgba(0, 168, 133, 0.8)","margin-top":"10px"},boardLine:"3px dotted rgba(0, 168, 133, 0.8)",boardPic:"/assets/images/label/board5.png",wordNumber:4},{id:6,pic:"/assets/images/label/label6.png",line:{"border-bottom":"3px dashed rgba(255, 255, 255, 0.8)","margin-top":"9px"},boardLine:"3px dashed rgba(255, 255, 255, 0.8)",boardPic:"/assets/images/label/board6.png",wordNumber:8},{id:7,pic:"/assets/images/label/label7.png",line:{"border-bottom":"3px solid rgba(0, 136, 240, 0.8)","margin-top":"10px"},boardLine:"3px solid rgba(0, 136, 240, 0.8)",boardPic:"/assets/images/label/board7.png",wordNumber:8},{id:8,pic:"/assets/images/label/label8.png",line:{"border-bottom":"3px dotted rgba(5, 167, 254, 0.8)","margin-top":"10px"},boardLine:"3px dotted rgba(5, 167, 254, 0.8)",boardPic:"/assets/images/label/board8.png",wordNumber:8},{id:9,pic:"/assets/images/label/label9.png",line:{"border-bottom":"3px dashed rgba(245, 230, 4, 0.8)","margin-top":"10px"},boardLine:"3px dashed rgba(245, 230, 4, 0.8)",boardPic:"/assets/images/label/board9.png",wordNumber:8},{id:10,pic:"/assets/images/label/label10.png",line:{"border-bottom":"3px solid rgba(169, 16, 0, 0.8)","margin-top":"10px"},boardLine:"3px solid rgba(169, 16, 0, 0.8)",boardPic:"/assets/images/label/board10.png",wordNumber:8},{id:11,pic:"/assets/images/label/label11.png",line:{"border-bottom":"3px dotted rgba(255, 255, 255, 0.8)","margin-top":"10px"},boardLine:"3px dotted rgba(255, 255, 255, 0.8)",boardPic:"/assets/images/label/board11.png",wordNumber:15},{id:12,pic:"/assets/images/label/label12.png",line:{"border-bottom":"3px dashed rgba(249, 74, 143, 0.8)","margin-top":"10px"},boardLine:"3px dashed rgba(249, 74, 143, 0.8)",boardPic:"/assets/images/label/board12.png",wordNumber:15},{id:13,pic:"/assets/images/label/label13.png",line:{"border-bottom":"3px solid rgba(15, 126, 75, 0.8)","margin-top":"10px"},boardLine:"3px solid rgba(15, 126, 75, 0.8)",boardPic:"/assets/images/label/board13.png",wordNumber:15},{id:14,pic:"/assets/images/label/label14.png",line:{"border-bottom":"3px dotted rgba(255, 255, 255, 0.8)","margin-top":"10px"},boardLine:"3px dotted rgba(255, 255, 255, 0.8)",boardPic:"/assets/images/label/board14.png",wordNumber:15},{id:15,pic:"/assets/images/label/label15.png",line:{"border-bottom":"3px dashed rgba(241, 72, 113, 0.8)","margin-top":"10px"},boardLine:"3px dashed rgba(241, 72, 113, 0.8)",boardPic:"/assets/images/label/board15.png",wordNumber:15}],this.boardGraphMap={},this.maxLengthTextSub$=new am,this.changeBoardStyleUndoRedoSub$=new am,this.isPrevent=!1,this.needDetchanged$=new am,this.both2DAnd3DSelectChanged=!1,this.serviceManager=t,e.instance=this,this.serviceManager.plotService.onSelectChanged.subscribe(function(e){i.propertyItem=e}),this.serviceManager.htmlDrawService.onBoxSelected.subscribe(function(e){i.propertyItem=e,"3D"!==i.serviceManager.plotService.isCrossSelectedNodes2Or3||i.serviceManager.animationService.isMultiSelect||i.serviceManager.plotService.clearCrossSelectedNodes$.next(null)}),this.serviceManager.htmlDrawService.onCtrlBoxesSelected.subscribe(function(e){i.propertyItem=e}),this.serviceManager.drawbigfileService.isRefresh$.subscribe(function(e){i.propertyItem=e,i.propertyType="bigfile"}),this.serviceManager.musicService.chooseMusic$.subscribe(function(e){i.propertyItem=e}),this.maxLengthTextSub$.pipe(Yx(2e3)).subscribe(function(){Sq.warn("输入内容不能超过".concat(i.wordNumberLimit,"个字"))})}return Object.defineProperty(e.prototype,"propertyItem",{get:function(){return this._propertyItem},set:function(e){this.isPrevent||(this.isPrevent=!0,this._propertyItem instanceof MX||this._propertyItem instanceof TX?this._propertyItem.removePathLine():this._propertyItem instanceof Array&&this._propertyItem.forEach(function(e){(e instanceof MX||e instanceof TX)&&e.removePathLine()}),e instanceof MX||e instanceof TX?e.createPathLine():e instanceof Array&&e[0]instanceof zR&&e.forEach(function(e){(e instanceof MX||e instanceof TX)&&e.createPathLine()}),this._propertyItem=e,e instanceof qm||e instanceof Array&&e[0]instanceof qm?(this.propertyType="Graph",this.serviceManager.layerService.isLayerCtrlPressed||this.serviceManager.plotService.gm.editor.isCtrlPressed||this.both2DAnd3DSelectChanged||this.serviceManager.plotService.showFrameSelection||(this.serviceManager.htmlDrawService.setCurrentBox(null,!1),this.serviceManager.geojsonService.currentGeojson=null),this.serviceManager.animationService.selectTimeLine=null):e instanceof VK||e instanceof Array&&e[0]instanceof VK?(this.propertyType="HtmlBox",this.serviceManager.layerService.isLayerCtrlPressed||this.serviceManager.plotService.gm.editor.isCtrlPressed||this.both2DAnd3DSelectChanged||this.serviceManager.plotService.showFrameSelection||(this.serviceManager.plotService.changeSelect(null),this.serviceManager.geojsonService.currentGeojson=null),this.serviceManager.animationService.selectTimeLine=null):e instanceof hO?(this.propertyType="Geojson",this.serviceManager.layerService.isLayerCtrlPressed||this.serviceManager.plotService.gm.editor.isCtrlPressed||this.both2DAnd3DSelectChanged||this.serviceManager.plotService.showFrameSelection||(this.serviceManager.htmlDrawService.setCurrentBox(null,!1),this.serviceManager.plotService.changeSelect(null)),this.serviceManager.animationService.selectTimeLine=null):e instanceof XB||e instanceof Array&&e[0]instanceof XB?(this.propertyType="Music",this.serviceManager.layerService.isLayerCtrlPressed||this.serviceManager.plotService.gm.editor.isCtrlPressed||this.both2DAnd3DSelectChanged||this.serviceManager.plotService.showFrameSelection||(this.serviceManager.htmlDrawService.setCurrentBox(null,!1),this.serviceManager.geojsonService.currentGeojson=null),this.serviceManager.animationService.selectTimeLine=null):e instanceof LT||e instanceof Array&&e[0]instanceof LT?(this.propertyType="GpLayer",this.serviceManager.layerService.isLayerCtrlPressed||this.serviceManager.plotService.gm.editor.isCtrlPressed||this.both2DAnd3DSelectChanged||this.serviceManager.plotService.showFrameSelection||(this.serviceManager.htmlDrawService.setCurrentBox(null,!1),this.serviceManager.geojsonService.currentGeojson=null),this.serviceManager.animationService.selectTimeLine=null):null!=e?(this.serviceManager.htmlDrawService.setCurrentBox(null,!1),this.serviceManager.plotService.changeSelect(null)):(this.propertyType="",!this.serviceManager.plotService.gm||this.serviceManager.plotService.gm.editor.isCtrlPressed||this.serviceManager.layerService.isLayerCtrlPressed||this.both2DAnd3DSelectChanged||this.serviceManager.plotService.showFrameSelection||(this.serviceManager.htmlDrawService.setCurrentBox(null,!1),this.serviceManager.plotService.changeSelect(null),this.serviceManager.musicService.clearMultiSelectMusics()),this.serviceManager.animationService.selectTimeLine=null),e instanceof zR?this.serviceManager.animationService.itemAnimation=[]:this.serviceManager.animationService.initAnimationList(e),this.isPrevent=!1)},enumerable:!1,configurable:!0}),e.prototype.setselectItem=function(e){this.isPrevent=!0,this.serviceManager.htmlDrawService.setCurrentBox(null,!1),this.serviceManager.animationService.selectTimeLine=null,this.serviceManager.geojsonService.currentGeojson=null,this.serviceManager.plotService.changeSelect(null),this.isPrevent=!1,e instanceof qm||e instanceof Array&&e[0]instanceof qm?this.serviceManager.plotService.changeSelect(e):e instanceof VK?this.serviceManager.htmlDrawService.setCurrentBox(e,!1):e instanceof hO?this.serviceManager.geojsonService.currentGeojson=e:this.serviceManager.animationService.selectTimeLine=e},e.prototype.changeGraphBoardShow=function(e,t){var i=this.serviceManager.plotService.gm.editor.currentEditGraphList;if(i.length>1)Sq.warn("只可同时为一个元素".concat(e?"添加":"取消","标牌"));else{t.o.graphBoardShow=e;var n=i[0].graphBoardId?i[0].graphBoardId:i[0].id;t.o.graphBoardShow?this.addGraphBoard(n):this.removeGraphBoard(n)}},e.prototype.changeGraphBoardStyle=function(e,t){var i=this.serviceManager.plotService.gm.editor.currentEditGraphList;if(i.length>1)Sq.warn("只可为一个元素添加标牌");else if(t.o.graphBoardShow){var n=t.o.graphBoardStyle;t.o.graphBoardStyle=e.id,t.o.graphBoardPic=e.boardPic;var r=this.selectEntityByBoardId(i[0].id).position.getValue(),o=this.getBoardDivByModel(i),s=document.querySelector("#gp-o-board-wrapper-".concat(o));s?this.setBoardStyle(s,e,o):this.createGraphBoard(e,o,t.o.graphBoardLinePosition,r),i[0].graphBoardId=o,this.changeBoardStyleUndoRedoSub$.next({o:t.o,meta:t.meta,oldValue:n}),Sq.log("已切换成标牌".concat(e.id))}},e.prototype.setBoardStyle=function(e,t,i){var n;this.wordNumberLimit=t.wordNumber,e.style.backgroundImage="url(".concat(t.boardPic,")");var r,o=e.querySelector("#board-line-".concat(i)),s=e.querySelector("#board-input-".concat(i));switch(o.style.borderBottom=t.boardLine,t.id){case 1:r="138px",e.style.width="264px",e.style.height="60px",e.style.padding="11px 25px 10px 25px",s.placeholder="四字标题",s.style.width=r,s.style.fontSize="32px",s.dataset.inputnocontentwidth=r;break;case 2:r="138px",e.style.width="239px",e.style.height="84px",e.style.padding="19px 25px 10px 25px",s.placeholder="四字标题",s.style.width=r,s.style.fontSize="32px",s.dataset.inputnocontentwidth=r;break;case 3:r="138px",e.style.width="244px",e.style.height="68px",e.style.padding="16px 25px 10px 25px",s.placeholder="四字标题",s.style.width=r,s.style.fontSize="32px",s.dataset.inputnocontentwidth=r;break;case 4:r="138px",e.style.width="216px",e.style.height="100px",e.style.padding="32px 25px 10px 25px",s.placeholder="四字标题",s.style.width=r,s.style.fontSize="32px",s.dataset.inputnocontentwidth=r;break;case 5:r="138px",e.style.width="250px",e.style.height="98px",e.style.padding="22px 25px 10px 25px",s.placeholder="四字标题",s.style.width=r,s.style.fontSize="32px",s.dataset.inputnocontentwidth=r;break;case 6:r="215px",e.style.width="291px",e.style.height="87px",e.style.padding="12px 25px 10px 25px",s.placeholder="最多可输入八个字",s.style.fontSize="24px",s.style.width=r,s.dataset.inputnocontentwidth=r;break;case 7:r="215px",e.style.width="283px",e.style.height="65px",e.style.padding="18px 25px 10px 25px",s.placeholder="最多可输入八个字",s.style.fontSize="24px",s.style.width=r,s.dataset.inputnocontentwidth=r;break;case 8:r="215px",e.style.width="376px",e.style.height="77px",e.style.padding="25px 25px 10px 25px",s.placeholder="最多可输入八个字",s.style.fontSize="24px",s.style.width=r,s.dataset.inputnocontentwidth=r;break;case 9:r="215px",e.style.width="297px",e.style.height="78px",e.style.padding="25px 25px 10px 25px",s.placeholder="最多可输入八个字",s.style.fontSize="24px",s.style.width=r,s.dataset.inputnocontentwidth=r;break;case 10:r="215px",e.style.width="309px",e.style.height="65px",e.style.padding="14px 25px 10px 25px",s.placeholder="最多可输入八个字",s.style.fontSize="24px",s.style.width=r,s.dataset.inputnocontentwidth=r;break;case 11:r="345px",e.style.width="421px",e.style.height="73px",e.style.padding="26px 25px 10px 25px",s.placeholder="此处最多可输入十五个文字内容...",s.style.fontSize="20px",s.style.width=r,s.dataset.inputnocontentwidth=r;break;case 12:r="345px",e.style.width="402px",e.style.height="62px",e.style.padding="20px 5px 10px 15px",s.placeholder="此处最多可输入十五个文字内容...",s.style.fontSize="20px",s.style.width=r,s.dataset.inputnocontentwidth=r;break;case 13:r="345px",e.style.width="410px",e.style.height="61px",e.style.padding="20px 5px 10px 45px",s.placeholder="此处最多可输入十五个文字内容...",s.style.fontSize="20px",s.style.width=r,s.dataset.inputnocontentwidth=r;break;case 14:r="345px",e.style.width="478px",e.style.height="79px",e.style.padding="18px 5px 10px 55px",s.placeholder="此处最多可输入十五个文字内容...",s.style.fontSize="20px",s.style.width=r,s.dataset.inputnocontentwidth=r;break;case 15:r="345px",e.style.width="383px",e.style.height="64px",e.style.padding="22px 25px 10px 25px",s.placeholder="此处最多可输入十五个文字内容...",s.style.fontSize="20px",s.style.width=r,s.dataset.inputnocontentwidth=r}s.className="board-input-style-".concat(t.id),s.style.letterSpacing="3px",s.setAttribute("maxlength","".concat(this.wordNumberLimit)),s.value&&s.value.length>this.wordNumberLimit&&(s.value=s.value.slice(0,this.wordNumberLimit)),this.computeInputWidth(s),this.boardGraphMap[i]=null===(n=document.querySelector("#gp-o-board-wrapper-".concat(i)))||void 0===n?void 0:n.outerHTML},e.prototype.createGraphBoard=function(e,t,i,n){var r,o=Cesium.SceneTransforms.wgs84ToWindowCoordinates(this.serviceManager.viewer.scene,n),s=document.createElement("div");s.id="gp-o-board-wrapper-".concat(t),s.style.position="absolute",s.dataset.offsetX=this.boardOffsetX,s.dataset.offsetY=this.boardOffsetY,s.style.backgroundSize="100% 100%",s.style.backgroundRepeat="no-repeat",s.style.padding="10px",s.style.textAlign="center";var a=document.createElement("input");a.type="text",a.autocomplete="off",a.id="board-input-".concat(t),a.style.outline="none",a.style.border="none",a.style.padding="0px",a.style.margin="0px",a.dataset.iszhcn="false",this.addEventToBoard(s,a);var l=document.createElement("div");l.id="board-line-".concat(t),l.style.height="0px",l.style.position="absolute",l.contentEditable="false",this.setBoardPosition(o,i,s,l),s.appendChild(a),s.appendChild(l),null===(r=document.querySelector("#cesium-div"))||void 0===r||r.appendChild(s),this.setBoardStyle(s,e,t),this.setGraphBoardRelation(t,s.id)},e.prototype.setBoardPosition=function(e,t,i,n){if(null!==i.dataset.offsetX&&void 0!==i.dataset.offsetX||(i.dataset.offsetX=this.boardOffsetX),null!==i.dataset.offsetY&&void 0!==i.dataset.offsetY||(i.dataset.offsetY=this.boardOffsetY),i.dataset.linePosition=t,"leftTop"===t){i.dataset.offsetX="-100",i.dataset.offsetY="-100",i.style.top="".concat(Math.ceil(e.y)+parseInt(i.dataset.offsetX),"px"),i.style.left="".concat(Math.ceil(e.x)+parseInt(i.dataset.offsetY),"px"),i.style.transform="translate(-100%, -100%)";var r=Math.floor(Math.sqrt(Math.pow(parseInt(i.dataset.offsetX),2)+Math.pow(parseInt(i.dataset.offsetY),2)));n.style.width="".concat(r,"px"),n.style.top="100%",n.style.left="100%",n.style.transformOrigin="left"}else if("leftBottom"===t){i.dataset.offsetX="100",i.dataset.offsetY="-100",i.style.top="".concat(Math.ceil(e.y)+parseInt(this.boardOffsetY),"px"),i.style.left="".concat(Math.ceil(e.x)+parseInt(this.boardOffsetX),"px");r=Math.floor(Math.sqrt(Math.pow(parseInt(i.dataset.offsetX),2)+Math.pow(parseInt(i.dataset.offsetY),2)));i.style.transform="translate(-100%, 0%)",n.style.width="".concat(r,"px"),n.style.top="0%",n.style.left="100%",n.style.transformOrigin="left"}else if("rightTop"===t){i.dataset.offsetX="-100",i.dataset.offsetY="100",i.style.top="".concat(Math.ceil(e.y)+parseInt(this.boardOffsetY),"px"),i.style.left="".concat(Math.ceil(e.x)+parseInt(this.boardOffsetX),"px");r=Math.floor(Math.sqrt(Math.pow(parseInt(i.dataset.offsetX),2)+Math.pow(parseInt(i.dataset.offsetY),2)));i.style.transform="translate(0%, -100%)",n.style.width="".concat(r,"px"),n.style.top="100%",n.style.left="0%",n.style.transformOrigin="left"}else if("rightBottom"===t){i.dataset.offsetX="100",i.dataset.offsetY="100",i.style.top="".concat(Math.ceil(e.y)+parseInt(this.boardOffsetY),"px"),i.style.left="".concat(Math.ceil(e.x)+parseInt(this.boardOffsetX),"px");r=Math.floor(Math.sqrt(Math.pow(parseInt(i.dataset.offsetX),2)+Math.pow(parseInt(i.dataset.offsetY),2)));i.style.transform="translate(0%, 0%)",n.style.width="".concat(r,"px"),n.style.top="0px",n.style.left="0px",n.style.transformOrigin="left"}},e.prototype.changeBoardPosition=function(e){var t=this.serviceManager.plotService.gm.editor.currentEditGraphList,i=this.getBoardDivByModel(t),n=document.querySelector("#gp-o-board-wrapper-".concat(i));if(n){var r=document.querySelector("#board-line-".concat(i)),o=this.selectEntityByBoardId(t[0].id).position.getValue(),s=Cesium.SceneTransforms.wgs84ToWindowCoordinates(this.serviceManager.viewer.scene,o);r&&this.setBoardPosition(s,e,n,r)}},e.prototype.setGraphBoardRelation=function(e,t){var i;this.boardGraphMap[e]||(this.selectEntityByBoardId(e).graph.graphBoardId=e);this.boardGraphMap[e]=null===(i=document.querySelector("#".concat(t)))||void 0===i?void 0:i.outerHTML},e.prototype.removeGraphBoard=function(e){var t,i=document.querySelector("#gp-o-board-wrapper-".concat(e));i&&(null===(t=document.querySelector("#cesium-div"))||void 0===t||t.removeChild(i))},e.prototype.addGraphBoard=function(e){var t,i,n=this.boardGraphMap[e];if(n)if("string"==typeof n){var r=document.createElement("div");r.innerHTML=n,null===(t=document.querySelector("#cesium-div"))||void 0===t||t.appendChild(r.childNodes[0])}else null===(i=document.querySelector("#cesium-div"))||void 0===i||i.appendChild(n);else{var o=this.serviceManager.plotService.gm.editor.currentEditGraphList;this.changeGraphBoardStyle(this.graphBoardStyle[0],{o:o[0]})}var s=document.querySelector("#gp-o-board-wrapper-".concat(e)),a=document.querySelector("#board-input-".concat(e));if(s&&a&&this.addEventToBoard(s,a),s){var l=parseInt(s.style.zIndex);this.boardMoveZIndex<l&&(this.boardMoveZIndex=l+1)}},e.prototype.getBoardDivByModel=function(e){var t=e[0].graphBoardId;return t||(t=e[0].id),t},e.prototype.addEventToBoard=function(e,t){var i,n=this;e.onmousedown=function(r){n.serviceManager.plotService.gm.editor.isReadOnly?i=null:(i=r,e.style.zIndex="".concat(n.boardMoveZIndex++),setTimeout(function(){i&&(e.style.cursor="move",t.style.cursor="move")},300))},e.onmouseup=function(n){i=null,e.style.cursor="default",t.style.cursor="default"},e.onmouseleave=function(n){i&&(i=null,e.style.cursor="default",t.style.cursor="default")},e.onmousemove=function(t){i&&e.dataset.offsetX&&e.dataset.offsetY&&(e.dataset.offsetX="".concat(parseInt(e.dataset.offsetX)-i.y+t.y),e.dataset.offsetY="".concat(parseInt(e.dataset.offsetY)-i.x+t.x),i=t)},e.onclick=function(t){if(!n.serviceManager.plotService.gm.editor.isReadOnly){var i=e.id.slice(19);n.serviceManager.plotService.gm.editor.nextMode("select",n.selectEntityByBoardId(i))}},t.addEventListener("compositionstart",function(e){t.dataset.iszhcn="true"}),t.addEventListener("compositionend",function(e){e.target.value.length>=n.wordNumberLimit&&n.maxLengthTextSub$.next(null),t.dataset.iszhcn="false"}),t.oninput=function(e){var i=e.key;"false"===t.dataset.iszhcn&&"delete"!==i&&"backspace"!==i&&"arrowup"!==i&&"arrowleft"!==i&&"arrowdown"!==i&&"arrowright"!==i&&e.target.value.length>=n.wordNumberLimit&&n.maxLengthTextSub$.next(null),n.computeInputWidth(t)}},e.prototype.selectEntityByBoardId=function(e){var t,i,n=this.serviceManager.plotService.gm.editor.currentEditGraphList;if(e&&1===n.length&&n[0].graphBoardId===e)return n[0].ent;for(var r=this.serviceManager.viewer.entities._entities._array,o=0;o<r.length;o++)if((null===(i=null===(t=r[o])||void 0===t?void 0:t.graph)||void 0===i?void 0:i.graphBoardId)===e)return r[o];var s=this.serviceManager.viewer.entities.getById(e);return s||null},e.prototype.computeInputWidth=function(e){if(e.value){var t=e.value,i=document.createElement("span");i.innerText=t,i.style.fontSize=e.style.fontSize,i.style.letterSpacing=e.style.letterSpacing,i.style.visibility="hidden",document.body.appendChild(i),e.style.width="".concat(i.getBoundingClientRect().width,"px"),document.body.removeChild(i)}else e.dataset.inputnocontentwidth&&(e.style.width=e.dataset.inputnocontentwidth);e.setAttribute("value",e.value)},e}();const Pq=function(){function e(e){this._engine=e,this._viewer=e.viewer}return e.prototype.load=function(e){this._baseUrl=e,this.plotService._baseUrl=e,this._propertyService||(this._propertyService=new Mq(this))},Object.defineProperty(e.prototype,"engine",{get:function(){return this._engine},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewer",{get:function(){return this._viewer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this._baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cesiumService",{get:function(){return this._cesiumService||(this._cesiumService=new RK),this._cesiumService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"configService",{get:function(){return this._configService||(this._configService=new yT),this._configService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actionService",{get:function(){return this._actionService||(this._actionService=new yV(this)),this._actionService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"httpService",{get:function(){return this._httpService||(this._httpService=QB),this._httpService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clusterService",{get:function(){return this._clusterService||(this._clusterService=new gT),this._clusterService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layerService",{get:function(){return this._layerService||(this._layerService=new EW(this)),this._layerService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"geojsonPlotService",{get:function(){return this._geojsonPlotService||(this._geojsonPlotService=new yO(this.viewer)),this._geojsonPlotService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"drawbigfileService",{get:function(){return this._drawbigfileService||(this._drawbigfileService=new NT(this)),this._drawbigfileService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"musicService",{get:function(){return this._musicService||(this._musicService=new iI(this.message)),this._musicService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"plotService",{get:function(){return this._plotService||(this._plotService=new bW(this.engine)),this._plotService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return this._message||(this._message=new TW),this._message},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"geojsonService",{get:function(){return this._geojsonService||(this._geojsonService=new yO(this.viewer)),this._geojsonService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"animationService",{get:function(){return this._animationService||(this._animationService=new lK(this)),this._animationService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"drawService",{get:function(){return this._drawService||(this._drawService=new xK(this.viewer)),this._drawService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pinyinTool",{get:function(){return this._pinyinTool||(this._pinyinTool=new IW),this._pinyinTool},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"htmlDrawService",{get:function(){return this._htmlDrawService||(this._htmlDrawService=new vZ(this)),this._htmlDrawService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"richTextService",{get:function(){return this._richTextService||(this._richTextService=new xq(this)),this._richTextService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"advancedHtmlService",{get:function(){return this._advancedHtmlService||(this._advancedHtmlService=new DW),this._advancedHtmlService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"propertyService",{get:function(){return this._propertyService||(this._propertyService=new Mq(this)),this._propertyService},enumerable:!1,configurable:!0}),e}();var Eq=__webpack_require__(6763),Lq=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Tq=function(e){function t(t){var i=e.call(this)||this;return i._serviceManager=t,i}return Lq(t,e),t.prototype.createPlot=function(e,t,i,n){var r,o;if(this.curTreeList&&this.curTreeList.length||(this.curTreeList=this._serviceManager.plotService.gm.treeList),this.plotDataBasic=this.curTreeList.find(function(e){return e.label===t}),this.plotDataBasic&&(r=this.plotDataBasic.children.find(function(e){return e.label===i})),r?(o=r.data.find(function(e){return e.label===n}),o&&e&&e.properties&&Object.assign(o.params,e.properties)):(e&&e.properties&&(e=JSON.parse(JSON.stringify(e).replace(/properties/g,"params"))),o=e),lu.isEmpty(o))return Eq.warn("无效的参数,请认真阅读接口指南"),null;var s=this._serviceManager.actionService.createPlot(o,!0);if(!s)return Eq.warn("无效的参数,请认真阅读接口指南"),null;var a=new ag(s);return this._serviceManager.engine.sceneTree.addSceneObject(a),this.fire("add",a),a},t.prototype.createPlotPicture=function(){this.plotDataPic=this.curTreeList.find(function(e){return"图片"===e.label})},t.prototype.createPlotModel=function(){this.plotDataModel=this.curTreeList.find(function(e){return"模型"===e.label})},t.prototype.loaded=function(){this.curTreeList=this._serviceManager.plotService.gm.treeList},t.prototype.onPick=function(e){this.editor&&(this.editor.onEditChanged=e)},t.prototype.open=function(){this._serviceManager.plotService.gm.start()},t.prototype.close=function(){this._serviceManager.plotService.gm.destroyHandler()},Object.defineProperty(t.prototype,"editor",{get:function(){return this._serviceManager.plotService.gm?this._serviceManager.plotService.gm.editor:void 0},enumerable:!1,configurable:!0}),t}(iu),Oq=__webpack_require__(6763),Dq=function(){return Dq=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Dq.apply(this,arguments)},Bq=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Iq=function(){function e(e){this.attrList=["show","alpha","saturation","contrast","brightness","hue"],this.gpList=[],this.viewer=e}return e.prototype.setListByData=function(e){var t,i,n=this;if(e&&e.length>0){try{for(var r=Bq(e),o=r.next();!o.done;o=r.next()){var s=o.value;this.initListData(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}this.gpList.sort(function(e,t){return e.currentLevel-t.currentLevel}),Oq.log("gplist>>>",this.gpList),this.gpList.forEach(function(e){var t;t="mbtiles"===e.serviceInfo.type?n.getLayer({url:e.serviceInfo.serviceUrl,maxZoom:e.serviceInfo.metaInfo.maxZoom},"mbtiles"):"shp"===e.serviceInfo.type?n.getLayer({url:e.serviceInfo.serviceUrl},"shp"):n.getLayer({url:e.serviceInfo.serviceUrl},"tif",e.serviceInfo),e.cesiumLayer=t})}},e.prototype.initListData=function(e){var t=this.createGpObjectNoLayer(Dq({},e));this.gpList.length>0&&this.gpList.find(function(t){return t.id===e.id})||this.gpList.push(t)},e.prototype.createGpObjectNoLayer=function(e){var t=new LT;return t.id=e.id,t.name=e.name,t.type=e.type,t.thumb=e.thumb,t._src=e._src,t.isAni=!0,t.serviceInfo=e.serviceInfo?e.serviceInfo:e.service_info,this.attrList.concat("currentLevel").forEach(function(i){void 0!==e["_".concat(i)]?t[i]=e["_".concat(i)]:"show"===i?t.show=!0:"hue"===i?t.hue=0:t[i]=1}),TT.register(t),t},e.prototype.getLayer=function(e,t,i){var n,r;if("mbtiles"===t)r=new Cesium.UrlTemplateImageryProvider({url:e.url,maximumLevel:Number(null==e?void 0:e.maxZoom),minimumLevel:Number(null==e?void 0:e.minZoom),tilingScheme:new Cesium.GeographicTilingScheme});else if("shp"===t)r=new Cesium.UrlTemplateImageryProvider({url:e.url});else if("tif"===t)if((null===(n=null==i?void 0:i.metaInfo)||void 0===n?void 0:n.bounds)&&parseFloat(null==i?void 0:i.maxZoom)>=0&&parseFloat(null==i?void 0:i.minZoom)>=0){var o=i.metaInfo.bounds.split(",");r=new Cesium.UrlTemplateImageryProvider({url:e.url,rectangle:Cesium.Rectangle.fromDegrees(Number(o[0]),Number(o[1]),Number(o[2]),Number(o[3])),maximumLevel:i.maxZoom,minimumLevel:i.minZoom})}else r=new Cesium.UrlTemplateImageryProvider({url:e.url});return this.viewer.imageryLayers.addImageryProvider(r)},e.prototype.cleanAll=function(){var e=this;this.gpList.forEach(function(t){var i=t.cesiumLayer;e.viewer.imageryLayers.remove(i)}),this.gpList.splice(0,this.gpList.length)},e}();const Rq=Iq;var Nq=__webpack_require__(6763),kq=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Fq=function(){function e(e){this.boxList=new Array,this.scalePercent=1,this.init(e)}return e.prototype.init=function(e){var t=document.getElementById("html-draw-container");if(t)this.containerDiv=t;else{this.outsideHtml=document.createElement("div"),this.outsideHtml.style.pointerEvents="none",this.outsideHtml.style.width="100%",this.outsideHtml.style.height="100%",this.outsideHtml.style.position="absolute",this.outsideHtml.style.top="0px",this.outsideHtml.style.left="0px",e.container.appendChild(this.outsideHtml);var i=document.createElement("div");i.id="html-draw-container",i.style.pointerEvents="all",this.containerDiv=i,this.outsideHtml.appendChild(this.containerDiv)}this.calculateScale()},e.prototype.calculateScale=function(){this.containerDiv.style.transform="scale("+this.scalePercent+")"},e.prototype.setListByData=function(e){var t,i,n=this;if(Nq.log("data",e),e&&!(e.length<1)){e.forEach(function(e){var t=document.createElement("div");t.innerHTML=e.html,t.children[0].id=e.id,n.containerDiv.appendChild(t.children[0])});var r=[],o=this.containerDiv.getElementsByClassName("html-box"),s=Array.from(o),a=function(e){var t=s.find(function(t){return t.id===e.id});if(!t)return"continue";var i=mZ.createBox(e.classType);i.id=e.id?e.id:t.id,i.name=e.name,i.boxType=e.boxType,i.videoPath||(i.videoPath=e.videoPath),i.initHtml(t),i.init(),i instanceof uZ&&i.setPicList(e.picList),l.boxList.push(i),r.push(i)},l=this;try{for(var u=kq(e),c=u.next();!c.done;c=u.next()){a(c.value)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(t)throw t.error}}return r}},e.prototype.clearHtmlDiv=function(){this.containerDiv&&(this.containerDiv.innerHTML="",this.boxList=[])},e}();const Hq=Fq;var Yq=__webpack_require__(6763),jq=function(){function e(){this.musicList=[]}return e.prototype.recoverData=function(e){var t=this;Yq.log("recoverdata",e),this.musicList.length=0,Array.isArray(e)&&e.length>0&&((e=this.removeRepeat(e)).forEach(function(e){var i=t.makeMusic(e);t.musicList.push(i),$B.register(i)}),this.currentMusic=this.musicList[0])},e.prototype.removeRepeat=function(e){var t={};return e=e.reduce(function(e,i){return!t[i.id]&&(t[i.id]=e.push(i)),e},[]),e},e.prototype.makeMusic=function(e){var t=new XB;return t.id=e.id,t.name=e.name,t.type="音频",t.iconName=e.iconName,t.src=e._src,t.muted=e._muted,t.volume=e._volume,t},e.prototype.clean=function(){this.musicList.length=0},e}();const Uq=jq;var Gq=function(){function e(e){this.containerDiv=e}return e.prototype.setSubtitleList=function(e){var t=this;if(!e||0===e.length)return[];e.forEach(function(e){var i=document.createElement("div");i.innerHTML=e.html,i.children[0].id=e.id,t.containerDiv.appendChild(i.children[0])})},e}();const Qq=Gq;var zq=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())})},Wq=function(e,t){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}};const Xq=function(){function e(e,t,i){this.cloudOpacity=.5,this.viewer=e,this.terrainUrl=t,this.globalTerrainUrl=i,this.graticuleLayer=new OK(e),this.init()}return e.prototype.init=function(){if(this.viewer);try{this.viewer.imageryLayers;var e=this.viewer.scene,t=new Cesium.SunLight;e.light=t,e.globe.dynamicAtmosphereLighting=!0,e.globe.dynamicAtmosphereLightingFromSun=!1,e.globe.enableLighting=!0,e.globe.lightingFadeOutDistance=1e7,e.globe.nightFadeInDistance=25e6,e.globe.baseColor=Cesium.Color.WHITE}catch(e){}},e.prototype.SetWater=function(e){return zq(this,void 0,void 0,function(){var t;return Wq(this,function(i){switch(i.label){case 0:return this.sea?(this.sea.show=e,[3,3]):[3,1];case 1:return e?[4,uT.Render(this.viewer.scene)]:[3,3];case 2:(t=i.sent())&&(this.sea=t),i.label=3;case 3:return[2]}})})},e.prototype.SetTerrain=function(e){var t=0;switch(e){case 1:this.viewer.terrainProvider=new Cesium.CesiumTerrainProvider({url:this.terrainUrl}),t=1;break;case 2:this.viewer.terrainProvider=new Cesium.CesiumTerrainProvider({url:this.globalTerrainUrl}),t=2;break;default:this.viewer.terrainProvider instanceof Cesium.EllipsoidTerrainProvider||(this.viewer.terrainProvider=new Cesium.EllipsoidTerrainProvider({ellipsoid:Cesium.Ellipsoid.WGS84})),t=0}return t},e}();var Vq=function(){function e(e){var t=this;this.isCenterMoved=!1,this.eagleEyeWidthNum=180,this.eagleEyeHeightNum=90,this.centerWidthNum=14,this.centerHeightNum=14,this.centerBottom=0,this.centerLeft=0,this.centerTop=0,this.latTop=0,this.longLeft=0,this.viewer=e,this.initEagleDiv(),this.viewer.camera.changed.addEventListener(function(e){t.isCenterMoved?t.isCenterMoved=!1:t.setEagleCenterPosition()}),this.showEagleDiv(!1)}return e.prototype.initEagleDiv=function(){var e=this;this.eagleDiv=document.createElement("div"),this.eagleDiv.className="cesiumEagleEye";var t=this.eagleDivStyle();Object.assign(this.eagleDiv.style,t),this.eagleDiv.contentEditable="false",document.getElementById("cesiumContainer").appendChild(this.eagleDiv),this.eagleDiv.addEventListener("click",function(t){e.getMousePosition(t)}),this.latDiv=document.createElement("div"),this.latDiv.className="lat",this.latDiv.contentEditable="false",this.eagleDiv.appendChild(this.latDiv),this.lonDiv=document.createElement("div"),this.lonDiv.className="long",this.lonDiv.contentEditable="false",this.eagleDiv.appendChild(this.lonDiv),this.eagleCenterDiv=document.createElement("div"),this.eagleCenterDiv.className="eagleEyeCenter",this.eagleCenterDiv.innerHTML='<img src="./resources/images/point.png" style="position: absolute;width: 100%;">',this.eagleDiv.appendChild(this.eagleCenterDiv),this.setEagleCenterPosition()},e.prototype.updateDivStyle=function(){var e=this.latDivStyle();Object.assign(this.latDiv.style,e);var t=this.lonDivStyle();Object.assign(this.lonDiv.style,t);var i=this.eagleCenterDivStyle();Object.assign(this.eagleCenterDiv.style,i)},e.prototype.showEagleDiv=function(e){this.eagleDiv&&(e?(this.eagleDiv.style.display="block",this.setEagleCenterPosition()):this.eagleDiv.style.display="none")},e.prototype.getMousePosition=function(e){this.isCenterMoved=!0;var t=e.offsetY,i=e.offsetX,n=t-this.centerHeightNum/2,r=i-this.centerHeightNum/2;this.centerTop=n,this.centerLeft=r,this.setEagleCenterByTopLeft(n,r)},e.prototype.setEagleCenterByTopLeft=function(e,t){var i=e+this.centerHeightNum/2,n=t+this.centerWidthNum/2;n>this.eagleEyeWidthNum-this.centerWidthNum/2&&(n=this.eagleEyeWidthNum-this.centerWidthNum/2),n<this.centerWidthNum/2&&(n=this.centerWidthNum/2),i>this.eagleEyeHeightNum-this.centerHeightNum/2&&(i=this.eagleEyeHeightNum-this.centerHeightNum/2),i<this.centerHeightNum/2&&(i=this.centerHeightNum/2),this.latTop=i,this.longLeft=n,this.longNum=2*t-180,this.centerTopNum=e,this.latNum=Number(2*(this.eagleEyeHeightNum-this.centerTopNum-this.centerHeightNum/2)-90);var r=this.viewer.camera.positionCartographic.height;this.longNum>179&&(this.longNum=179),(this.longNum<-179||"NaN"==this.longNum.toString())&&(this.longNum=-179),this.latNum>90&&(this.latNum=90),(this.latNum<-90||"NaN"==this.latNum.toString())&&(this.latNum=-90),this.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(this.longNum,this.latNum,r)}),this.updateDivStyle()},e.prototype.eagleDivStyle=function(){return{"border-radius":"6px",background:"url('./resources/images/world.jpg') no-repeat","background-size":"100% 100%",bottom:"0px",left:"0px",position:"absolute",width:this.eagleEyeWidthNum+"px",height:this.eagleEyeHeightNum+"px","caret-color":"transparent"}},e.prototype.lonDivStyle=function(){return{width:"0px",height:this.eagleEyeHeightNum+"px","margin-left":this.longLeft+"px","border-left":"1px solid white","pointer-events":"none","caret-color":"transparent"}},e.prototype.latDivStyle=function(){return{height:"0px",width:this.eagleEyeWidthNum+"px","margin-top":this.latTop+"px","border-top":"1px solid white","pointer-events":"none",float:"left","caret-color":"transparent"}},e.prototype.eagleCenterDivStyle=function(){return{width:this.centerWidthNum+"px",height:this.centerHeightNum+"px",position:"absolute",top:this.centerTop+"px",left:this.centerLeft+"px",color:"white","font-size":"26px","pointer-events":"none"}},e.prototype.calcLeft=function(e){var t=(e+=180)/360*this.eagleEyeWidthNum;return t>this.eagleEyeWidthNum-this.centerWidthNum/2&&(t=this.eagleEyeWidthNum-this.centerWidthNum/2),t<this.centerWidthNum/2&&(t=this.centerWidthNum/2),t},e.prototype.calcBottom=function(e){var t=(e+=90)/180*this.eagleEyeHeightNum;return t>this.eagleEyeHeightNum-this.centerHeightNum/2&&(t=this.eagleEyeHeightNum-this.centerHeightNum/2),t<this.centerHeightNum/2&&(t=this.centerHeightNum/2),t},e.prototype.setEagleCenterPosition=function(){var e=this.viewer.camera.positionCartographic;this.longNum=Number(Cesium.Math.toDegrees(e.longitude)),this.latNum=Number(Cesium.Math.toDegrees(e.latitude));var t=this.calcLeft(this.longNum);this.centerBottom=this.calcBottom(this.latNum);var i=this.eagleEyeHeightNum-this.centerBottom,n=t-this.centerWidthNum/2;this.centerTop=i-this.centerHeightNum/2,this.centerLeft=n,this.latTop=i,this.longLeft=t,this.updateDivStyle()},e}();const Jq=Vq;var Kq=__webpack_require__(6763);const Zq=function(){function e(e){this.viewer=e}return e.prototype.enable=function(e){Kq.log("exaggeration enable"),e?this.invokeCameraChanged(this.viewer):this.clearTerrain(this.viewer.scene)},e.prototype.invokeCameraChanged=function(e){var t=this;e.scene.cameraEventWaitTime=100,this.updateTerrain(e.scene,1),this.removeListener&&this.removeListener(),this.removeListener=e.camera.changed.addEventListener(function(i){var n=t.getLevel(Math.ceil(e.camera.positionCartographic.height));n&&n<=50&&t.updateTerrain(e.scene,n)})},e.prototype.getLevel=function(e){return e>3e6?50:e>15e5?30:e>75e4?15:e>375e3?10:e>187500||e>93750?5:e>46875||e>23437.5?1:void 0},e.prototype.clearTerrain=function(e){e.globe.terrainExaggeration=1,e.globe.material=void 0,this.removeListener&&(this.removeListener(),Kq.log("clear terrain",this.removeListener))},e.prototype.updateTerrain=function(e,t){void 0===t&&(t=50),e.globe.terrainExaggeration=t},e.prototype.updateTerrain1=function(e){e.globe.terrainExaggeration=1;var t=e.globe;t.terrainExaggerationRelativeHeight=1e3;var i=t.terrainExaggerationRelativeHeight,n=.5,r={entries:[{height:i+0,color:Cesium.Color.TRANSPARENT},{height:i+.01,color:Cesium.Color.DARKGREEN.withAlpha(n)},{height:i+100,color:Cesium.Color.GREEN.withAlpha(n)},{height:i+200,color:Cesium.Color.LIGHTGREEN.withAlpha(n)},{height:i+500,color:Cesium.Color.YELLOWGREEN.withAlpha(n)},{height:i+1e3,color:Cesium.Color.YELLOW.withAlpha(n)},{height:i+1500,color:Cesium.Color.ORANGE.withAlpha(n)},{height:i+2e3,color:Cesium.Color.ORANGERED.withAlpha(n)},{height:i+3e3,color:Cesium.Color.RED.withAlpha(n)},{height:i+4e3,color:Cesium.Color.ALICEBLUE.withAlpha(n)},{height:i+5e3,color:Cesium.Color.SNOW.withAlpha(n)},{height:i+6e3,color:Cesium.Color.WHITE.withAlpha(n)}],extendDownwards:!0,extendUpwards:!0};e.globe.material=Cesium.createElevationBandMaterial({scene:e,layers:[r]})},e}();var qq=function(){function e(e,t,i){this.viewer=e,this.cesiumManager=new Xq(e,t,i),this.terrainManager=new Zq(e),this.eagleManager=new Jq(e)}return e.prototype.initStatus=function(e,t){var i=this;void 0===t&&(t=!0),this.page=e;["skyBox","graticule","isEagle","isPlace","placeType","skyAtmosphere","globe","seaMaterial","sunLight","clouds","cloudSpead","skyWeather","isName","isVector","isVector2","isFrameRate","compass","baseWaterColor","specularIntensity","amplitude","terrainShading","exaggerValue"].forEach(function(t){i.click(t,e[t])})},e.prototype.click=function(e,t){null!=t&&this.imagetransform(e,t)},e.prototype.imagetransform=function(e,t){switch(e){case"skyAtmosphere":this.viewer.scene.skyAtmosphere.show!==t&&(this.viewer.scene.skyAtmosphere.show=t),this.viewer.scene.globe.showGroundAtmosphere=this.viewer.scene.skyAtmosphere.show;break;case"skyBox":this.viewer.scene.skyBox.show!==t&&(this.viewer.scene.skyBox.show=t);break;case"globe":if(!t){var i=new Cesium.SunLight;(n=this.viewer.scene).light=i,this.fixLightFunc&&this.viewer.scene.preRender.removeEventListener(this.fixLightFunc)}this.viewer.scene.globe.enableLighting!==t&&(this.viewer.scene.globe.enableLighting=t),t&&this.imagetransform("sunLight",this.viewer.scene.globe.dynamicAtmosphereLighting);break;case"sunLight":if(this.fixLightFunc&&this.viewer.scene.preRender.removeEventListener(this.fixLightFunc),!this.viewer.scene.globe.enableLighting)return;if(1==t){i=new Cesium.SunLight;(n=this.viewer.scene).light=i,n.globe.dynamicAtmosphereLighting=!0}else{var n=this.viewer.scene,r=new Cesium.DirectionalLight({direction:n.camera.directionWC});n.light=r,n.globe.dynamicAtmosphereLighting=!1,this.fixLightFunc=function(e,t){e.light.direction=Cesium.Cartesian3.clone(e.camera.directionWC,e.light.direction)},n.preRender.addEventListener(this.fixLightFunc)}break;case"exaggerValue":-1==t?(this.viewer.scene.globe.terrainExaggeration=1,this.terrainManager.enable(!0)):(this.terrainManager.enable(!1),this.viewer.scene.globe.terrainExaggeration=t);break;case"skyWeather":this.viewer.scene.fog.enabled!==t&&(this.viewer.scene.fog.enabled=t);break;case"clouds":this.viewer.scene.globe.enableCloud!==t&&(this.viewer.scene.globe.enableCloud=t);break;case"cloudSpead":this.viewer.scene.cloudSpeedTimes=t;break;case"graticule":this.graticuleLayerShow!==t&&t?(this.cesiumManager.graticuleLayer.show(),this.graticuleLayerShow=t):this.graticuleLayerShow===t||t||(this.cesiumManager.graticuleLayer.remove(),this.graticuleLayerShow=t);break;case"isEagle":this.eagleManager.showEagleDiv(t);break;case"seaMaterial":this.waterShow!==t&&(this.cesiumManager.SetWater(t),this.waterShow=t);break;case"isPlace":this.terrainShow!==t&&(t?this.placeType?this.cesiumManager.SetTerrain(2):this.cesiumManager.SetTerrain(1):this.cesiumManager.SetTerrain(0),this.terrainShow=t);break;case"placeType":if(!this.terrainShow)return;this.placeType!==t&&(this.placeType=t,this.placeType?this.cesiumManager.SetTerrain(2):this.cesiumManager.SetTerrain(1));break;case"isVector":case"isVector2":case"isName":break;case"isFrameRate":this.viewer.scene.debugShowFramesPerSecond!==t&&(this.viewer.scene.debugShowFramesPerSecond=t);break;case"compass":this.viewer.cesiumNavigation.navigationViewModel.showCompass=t;break;case"baseWaterColor":this.cesiumManager.sea?this.cesiumManager.sea.appearance.material.uniforms.baseWaterColor=Cesium.Color.fromCssColorString(t).withAlpha(.5):uT.baseWaterColor=Cesium.Color.fromCssColorString(t).withAlpha(.5);break;case"specularIntensity":this.cesiumManager.sea?this.cesiumManager.sea.appearance.material.uniforms.specularIntensity=t:uT.specularIntensity=t;break;case"amplitude":this.cesiumManager.sea?this.cesiumManager.sea.appearance.material.uniforms.amplitude=t:uT.amplitude=t;break;case"terrainShading":this.viewer.scene.globe.depthTestAgainstTerrain!==t&&(this.viewer.scene.globe.depthTestAgainstTerrain=t)}},e}();const $q=qq,e$=52.35987755982988,t$=3.141592653589793,i$=6378245,n$=.006693421622965943;const r$=class{static BD09ToGCJ02(e,t){let i=+e-.0065,n=+t-.006,r=Math.sqrt(i*i+n*n)-2e-5*Math.sin(n*e$),o=Math.atan2(n,i)-3e-6*Math.cos(i*e$);return[r*Math.cos(o),r*Math.sin(o)]}static GCJ02ToBD09(e,t){t=+t,e=+e;let i=Math.sqrt(e*e+t*t)+2e-5*Math.sin(t*e$),n=Math.atan2(t,e)+3e-6*Math.cos(e*e$);return[i*Math.cos(n)+.0065,i*Math.sin(n)+.006]}static WGS84ToGCJ02(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];{let i=this.delta(e,t);return[e+i[0],t+i[1]]}}static GCJ02ToWGS84(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];{let i=this.delta(e,t);return[2*e-(e+i[0]),2*t-(t+i[1])]}}static delta(e,t){let i=this.transformLng(e-105,t-35),n=this.transformLat(e-105,t-35);const r=t/180*t$;let o=Math.sin(r);o=1-n$*o*o;const s=Math.sqrt(o);return i=180*i/(i$/s*Math.cos(r)*t$),n=180*n/(6335552.717000426/(o*s)*t$),[i,n]}static transformLng(e,t){let i=300+(e=+e)+2*(t=+t)+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*t$)+20*Math.sin(2*e*t$))/3,i+=2*(20*Math.sin(e*t$)+40*Math.sin(e/3*t$))/3,i+=2*(150*Math.sin(e/12*t$)+300*Math.sin(e/30*t$))/3,i}static transformLat(e,t){let i=2*(e=+e)-100+3*(t=+t)+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*t$)+20*Math.sin(2*e*t$))/3,i+=2*(20*Math.sin(t*t$)+40*Math.sin(t/3*t$))/3,i+=2*(160*Math.sin(t/12*t$)+320*Math.sin(t*t$/30))/3,i}static out_of_china(e,t){return t=+t,!((e=+e)>73.66&&e<135.05&&t>3.86&&t<53.55)}};class o$ extends Cesium.WebMercatorTilingScheme{constructor(e){super(e);let t=new Cesium.WebMercatorProjection;this._projection.project=function(e,i){return i=r$.WGS84ToGCJ02(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude)),i=t.project(new Cesium.Cartographic(Cesium.Math.toRadians(i[0]),Cesium.Math.toRadians(i[1]))),new Cesium.Cartesian2(i.x,i.y)},this._projection.unproject=function(e,i){let n=t.unproject(e);return i=r$.GCJ02ToWGS84(Cesium.Math.toDegrees(n.longitude),Cesium.Math.toDegrees(n.latitude)),new Cesium.Cartographic(Cesium.Math.toRadians(i[0]),Cesium.Math.toRadians(i[1]))}}}const s$=o$;var a$=__webpack_require__(6763),l$=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},u$=function(){function e(e,t,i){this.baseLayerList=new Array,this.otherLayerList=new Array,this.districtLayerList=new Array,this.customLayerList=new Array,this.isWebp=!1,this.viewer=i,this.geopptWebUrl=e,this.geopptServiceUrl=t}return e.prototype.getConfig=function(){var e=this,t=this.geopptWebUrl+"/resources/online_data.json";fetch(t).then(function(e){return e.json()}).then(function(t){e.layerConfig=t,e.getDefaultConfigByOriginal(e.layerConfig);var i=e.layerConfig.find(function(e){return"底图"===e.label});i&&(e.baseLayerList=i.data,e.baseLayerList=e.formatData(e.baseLayerList));var n=e.layerConfig.find(function(e){return"其他"===e.label});n&&(e.otherLayerList=n.data,e.otherLayerList=e.formatData(e.otherLayerList));var r=e.layerConfig.find(function(e){return"自定义"===e.label});return r&&(e.customLayerList=r.data,e.customLayerList=e.formatData(e.customLayerList)),e.layerConfig})},e.prototype.pageToLayerList=function(e){if(this.layerConfig&&e){var t;try{t="string"==typeof e.pageConfig?JSON.parse(e.pageConfig):e.pageConfig}catch(e){a$.log(e)}t||(t=this.getConfig()),this.updateLayerList(t,e),this.currentConfig=t,e.pageConfig=t}},e.prototype.getDefaultConfigByOriginal=function(e){var t=this;this.defaultConfig={base:[],other:[]};var i=["alpha","saturation","contrast","brightness","hue","gamma","currentLevel"];function n(e){var t,n=new AK;if(e.visible&&(t={id:e.id,visible:!0}),i.forEach(function(i){if(void 0!==e[i]){var n=parseFloat(e[i]);t||(t={id:e.id}),t[i]=n}}),t)return!0!==t.visible&&(t.visible=!1),i.forEach(function(e){void 0===t[e]&&(t[e]=n[e])}),t}var r=e.find(function(e){return"底图"===e.label});r&&r.data&&r.data.forEach(function(e){var i=n(e);i&&t.defaultConfig.base.push(i)});var o=e.find(function(e){return"其他"===e.label});o&&o.data&&o.data.forEach(function(e){var i=n(e);i&&t.defaultConfig.other.push(i)})},e.prototype.resetLayerConfig=function(){var e=this;this.baseLayerList.forEach(function(t){var i=e.defaultConfig.base.find(function(e){return e.id===t.id});e.initLayerAttr(t,i),t.showProperty=!1}),this.otherLayerList.forEach(function(t){var i=e.defaultConfig.other.find(function(e){return e.id===t.id});e.initLayerAttr(t,i),t.showProperty=!1}),this.customLayerList.forEach(function(t){e.initLayerAttr(t),t.showProperty=!1})},e.prototype.initLayerAttr=function(e,t){if(t){if(e.id!==t.id)return e}else t=new AK;for(var i in t)"id"!==i&&"visible"!==i&&(e["".concat(i)]=t[i]);return e},e.prototype.updateLayerList=function(e,t){var i=this,n=JSON.stringify(e);if(e=JSON.parse(n),this.resetLayerConfig(),e.baseAttr){var r=this.getLayerById(e.baseAttr.id);r&&(this.initLayerAttr(r,e.baseAttr),this.setBaseMap(r))}else this.setBaseMap();var o=this.otherLayerList.concat(this.customLayerList),s=e.otherAttr.concat(e.customAttr);o.forEach(function(e){s.find(function(t){return t.id===e.id})||i.hideImage(e)}),s.sort(function(e,t){return e.currentLevel-t.currentLevel}),s.forEach(function(e){i.updateLayerByConfig(e)}),this.currentConfig=e,t&&(t.pageConfig=e)},e.prototype.updateLayerByConfig=function(e){var t=this.getLayerById(e.id);if(t)return this.initLayerAttr(t,e),t.visible&&t.cesiumLayer||this.showImage(t),t},e.prototype.getLayerById=function(e){var t;return t=this.baseLayerList.find(function(t){return t.id===e}),t||(t=this.otherLayerList.find(function(t){return t.id===e}),t||(t=this.customLayerList.find(function(t){return t.id===e}),t||void 0))},e.prototype.setBaseMap=function(e){this.baseImageLayer!==e&&(this.baseImageLayer&&this.hideImage(this.baseImageLayer),e&&this.showImage(e,!0),this.baseImageLayer=e)},e.prototype.showImage=function(e,t){var i=this,n=this.viewer;if("tileSet"!==e.paramType){if(e.visible&&e.cesiumLayer)return;if("url-mix"==e.paramType){var r=this.getMapProviders(e);r&&r.forEach(function(r){if(t)e.cesiumLayer=n.imageryLayers.addImageryProvider(r,0);else if(e.isTop)e.cesiumLayer=n.imageryLayers.addImageryProvider(r);else{var o=i.calculateIndex(n.imageryLayers);e.cesiumLayer=n.imageryLayers.addImageryProvider(r,o)}}),["alpha","saturation","contrast","brightness","hue","gamma","currentLevel"].forEach(function(t){e.cesiumLayer[t]=e[t]})}else if("url-arcgis"===e.paramType){var o=void 0;o=e.param.layerId?new Cesium.ArcGisMapServerImageryProvider({url:e.param.url,layers:e.param.layerId}):new Cesium.ArcGisMapServerImageryProvider({url:e.param.url}),e.cesiumLayer=n.imageryLayers.addImageryProvider(o),["alpha","saturation","contrast","brightness","hue","gamma","currentLevel"].forEach(function(t){e.cesiumLayer[t]=e[t]})}else{var s=this.getMapProvider(e);if(t)e.cesiumLayer=n.imageryLayers.addImageryProvider(s,0);else if(e.isTop)e.cesiumLayer=n.imageryLayers.addImageryProvider(s);else{var a=this.calculateIndex(n.imageryLayers);e.cesiumLayer=n.imageryLayers.addImageryProvider(s,a)}["alpha","saturation","contrast","brightness","hue","gamma","currentLevel"].forEach(function(t){e.cesiumLayer[t]=e[t]})}}else{if(e.visible&&e.cesiumTile)return;if(!e.param||!e.param.url)return;var l=void 0;if(e.param.type||"building"==e.param.type){if(e.param.shadows){h=void 0;"disabled"===e.param.shadows?h=Cesium.ShadowMode.DISABLED:"enabled"===e.param.shadows?h=Cesium.ShadowMode.ENABLED:"receive_only"===e.param.shadows?h=Cesium.ShadowMode.RECEIVE_ONLY:"cast_only"===e.param.shadows&&(h=Cesium.ShadowMode.CAST_ONLY),l=new Cesium.Cesium3DTileset({url:e.param.url,shadows:h})}else l=new Cesium.Cesium3DTileset({url:e.param.url});l.readyPromise.then(function(e){var t=e.boundingSphere,i=Cesium.Cartographic.fromCartesian(t.center),n=Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,0),r=Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,30),o=Cesium.Cartesian3.subtract(r,n,new Cesium.Cartesian3);e.modelMatrix=Cesium.Matrix4.fromTranslation(o)}).otherwise(function(e){a$.log(e)})}else{Cesium.ExperimentalFeatures.enableModelExperimental=!0;var u=performance.now(),c=new Cesium.CustomShader({uniforms:{u_time:{value:u,type:Cesium.UniformType.FLOAT}},varyings:{v_distanceFromTop:Cesium.VaryingType.FLOAT},mode:Cesium.CustomShaderMode.MODIFY_MATERIAL,lightingModel:Cesium.LightingModel.PBR,vertexShaderText:"\n out vec3 v_outPos;\n void vertexMain(VertexInput vsInput, inout czm_modelVertexOutput vsOutput) {\n v_outPos = vsOutput.positionMC;\n }\n ",fragmentShaderText:"\n in vec3 v_outPos;\n void fragmentMain(FragmentInput fsInput, inout czm_modelMaterial material) {\n float rmaxH = 100.0;\n float gmaxH = 200.0;\n float bmaxH = 200.0;\n float rz = clamp(v_outPos.z / rmaxH, 0.01, 1.0);\n float gz = clamp(v_outPos.z / gmaxH, 0.15, 0.6);\n float bz = clamp(v_outPos.z / bmaxH, 0.1, 0.7);\n vec3 c = vec3(rz,rz,rz);\n material.emissive = c;\n } \n "});if(e.param.shadows){var h=void 0;"disabled"===e.param.shadows?h=Cesium.ShadowMode.DISABLED:"enabled"===e.param.shadows?h=Cesium.ShadowMode.ENABLED:"receive_only"===e.param.shadows?h=Cesium.ShadowMode.RECEIVE_ONLY:"cast_only"===e.param.shadows&&(h=Cesium.ShadowMode.CAST_ONLY);var p={url:e.param.url,customShader:c,shadows:h};l=new Cesium.Cesium3DTileset(p)}else{p={url:e.param.url,customShader:c};l=new Cesium.Cesium3DTileset(p)}l.readyPromise.then(function(e){var t=e.boundingSphere,i=Cesium.Cartographic.fromCartesian(t.center),n=Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,0),r=Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,30),o=Cesium.Cartesian3.subtract(r,n,new Cesium.Cartesian3);e.modelMatrix=Cesium.Matrix4.fromTranslation(o)}).otherwise(function(e){a$.log(e)})}l&&(n.scene.primitives.add(l),e.cesiumTile=l),["alpha","saturation","contrast","brightness","hue","gamma","currentLevel"].forEach(function(t){e.cesiumTile[t]=e[t]})}e.visible=!0},e.prototype.hideImage=function(e){var t=this.viewer;if("tileSet"!==e.paramType){if(!e.visible&&!e.cesiumLayer)return;t.imageryLayers.remove(e.cesiumLayer),e.cesiumLayer=void 0}else t.scene.primitives.remove(e.cesiumTile);e.visible=!1},e.prototype.getMapProviders=function(e){if(null==e)return null;if("url-mix"!==e.paramType)switch(e.id){case"moren":case"tencent":e.param.customTags={sx:function(e,t,i,n){return t>>4},sy:function(e,t,i,n){return(1<<n)-i>>4}};break;case"skyearth_global":case"own_data":e.param.tilingScheme=new Cesium.GeographicTilingScheme}var t=[];return e.param.urls.forEach(function(i){e.param.url=i;var n=new Cesium.UrlTemplateImageryProvider(e.param);t.push(n)}),t},e.prototype.getMapProvider=function(e){if(null==e)return null;switch(e.id){case"moren":case"tencent":e.param.customTags={sx:function(e,t,i,n){return t>>4},sy:function(e,t,i,n){return(1<<n)-i>>4}};break;case"skyearth_global":case"own_data":e.param.tilingScheme=new Cesium.GeographicTilingScheme;break;case"gaode_satellite":var t={style:"img",crs:"WGS84"};return new Cesium.AmapImageryProvider(t);case"gaode":t={style:"img、elec、cva",crs:"WGS84"};return new Cesium.AmapImageryProvider(t);case"tencent":return new Cesium.TencentImageryProvider({style:"dem"});case"pic":return new Cesium.GoogleImageryProvider({style:"img"})}var i;switch(e.paramType){case"tms":"4326"==e.param.crs&&(e.param.tilingScheme=new Cesium.GeographicTilingScheme),i=new Cesium.TileMapServiceImageryProvider(e.param);break;case"url":"4326"==e.param.crs&&(e.param.tilingScheme=new Cesium.GeographicTilingScheme),i=new Cesium.UrlTemplateImageryProvider(e.param);break;case"url-ceshi":e.param.tilingScheme=new Cesium.WebMercatorTilingScheme,e.param.rectangle=new Cesium.Rectangle(Cesium.Math.toRadians(114.989864173882),Cesium.Math.toRadians(39.32319860444451),Cesium.Math.toRadians(117.0101335928688),Cesium.Math.toRadians(41.343470315312)),i=new Cesium.TileMapServiceImageryProvider(e.param);break;case"url-baidu":break;case"wms":this.resolveWmsWmtsParam(e),i=new Cesium.WebMapServiceImageryProvider(e.param);break;case"wmts":this.resolveWmsWmtsParam(e),i=new Cesium.WebMapTileServiceImageryProvider(e.param);break;case"tileSet":i=new Cesium.Cesium3DTileset(e.param);break;case"bing":i=new Cesium.UrlTemplateImageryProvider({url:e.param.url,subdomains:["0","1","2","3"],tilingScheme:"amap"==e.param.tilingScheme?new s$:new Cesium.WebMercatorTilingScheme,customTags:{q:function(e,t,i,n){var r=function(e,t,i){for(var n="",r=i;r>=0;--r){var o=1<<r,s=0;0!==(e&o)&&(s|=1),0!==(t&o)&&(s|=2),n+=s}return"0"===n[0]&&(n=n.substr(1)),n}(t,i,n);return r}}});break;case"baidutest":t={style:"pl",crs:"WGS84"}}return i},e.prototype.resolveWmsWmtsParam=function(e){e.param.tilingScheme&&("mct"===e.param.tilingScheme?e.param.tilingScheme=new Cesium.WebMercatorTilingScheme:e.param.tilingScheme.x&&(e.param.tilingScheme=new Cesium.GeographicTilingScheme({numberOfLevelZeroTilesX:e.param.tilingScheme.x,numberOfLevelZeroTilesY:e.param.tilingScheme.y}))),e.param.parameters&&e.param.parameters.minX&&(e.param.rectangle=Cesium.Rectangle.fromDegrees(e.param.parameters.minX,e.param.parameters.minY,e.param.parameters.maxX,e.param.parameters.maxY)),e.param.rectangle&&this.viewer.camera.flyTo({destination:e.param.rectangle})},e.prototype.calculateIndex=function(e){for(var t=e._layers.length-1;t>=0;t--){var i=this.getGpLayerByImageLayer(e._layers[t]);if(i&&!i.isTop)return i.currentLevel+1}return 0},e.prototype.getGpLayerByImageLayer=function(e){var t;return t=this.baseLayerList.concat(this.otherLayerList,this.customLayerList).find(function(t){if(t.cesiumLayer)return t.cesiumLayer===e||void 0}),t},e.prototype.formatData=function(e){var t,i,n,r,o=[];if(e&&e.length>0)try{for(var s=l$(e),a=s.next();!a.done;a=s.next()){var l=a.value;if(l.json_str){var u=JSON.parse(l.json_str),c=new LT;for(var h in u)c[h]=u[h];c.visible=!1,o.push(c)}else{c=new LT;for(var h in l)c[h]=l[h];c.visible=!1,c.initAttr={alpha:c.alpha,saturation:c.saturation,contrast:c.contrast,brightness:c.brightness,hue:c.hue,gamma:c.gamma},o.push(c)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}if(o&&o.length>0)try{for(var p=l$(o),d=p.next();!d.done;d=p.next()){var f=d.value;this.formatLayerUnit(f)}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}return o},e.prototype.formatLayerUnit=function(e){if("string"==typeof e.param)try{e.param=JSON.parse(e.param)}catch(t){e.param={},a$.error(t)}if(e.param&&e.param.url){e.param.url=this.icUrlTransform(e.param.url);var t=e.param.url.match(/format=(png|jpg)/);t&&(e.format=t[0].split("=")[1],this.isWebp=!1);var i=e.param.url.match(/format=webp/);i&&(e.format=i[0].split("=")[1],this.isWebp=!0)}return e},e.prototype.icUrlTransform=function(e){var t;if(-1!==e.indexOf("https://")||e.startsWith("wss://"))t=e;else if(-1!==e.indexOf("http://"))if(-1!==e.indexOf("icenter")||-1!==e.indexOf(":8310")){var i=(r=e.split("/"))[0]+"//"+r[2],n=this.geopptServiceUrl+"/proxyhttp/"+r[2];t=e.replace(i,n)}else{var r;t="https://"+(r=e.split("//"))[1]}else a$.log("其他");return t},e}();const c$=u$;var h$=__webpack_require__(6763),p$=function(){function e(){var e,t,i=this;this.$support=(e=document.createElement("canvas"),{canvas:!!(t=e.getContext("2d")),imageData:!!t.getImageData,dataURL:!!e.toDataURL,btoa:!!window.btoa}),this.downloadMime="image/octet-stream",this.genBitmapImage=function(e){var t=e.width,n=e.height,r=t*n*3,o=r+54,s=[66,77,255&o,o>>8&255,o>>16&255,o>>24&255,0,0,0,0,54,0,0,0],a=[40,0,0,0,255&t,t>>8&255,t>>16&255,t>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255,1,0,24,0,0,0,0,0,255&r,r>>8&255,r>>16&255,r>>24&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=(4-3*t%4)%4,u=e.data,c="",h=t<<2,p=n,d=String.fromCharCode;do{for(var f=h*(p-1),m="",g=0;g<t;g++){var y=g<<2;m+=d(u[f+y+2])+d(u[f+y+1])+d(u[f+y])}for(var _=0;_<l;_++)m+=String.fromCharCode(0);c+=m}while(--p);return i.encodeData(s.concat(a))+i.encodeData(c)},this.saveAsImage=function(e,t,n,r){if(i.$support.canvas&&i.$support.dataURL)if("string"==typeof e&&(e=document.getElementById(e)),null==r&&(r="png"),r=i.fixType(r),/bmp/.test(r)){var o=i.getImageData(i.scaleCanvas(e,t,n)),s=i.genBitmapImage(o);i.saveFile(i.makeURI(s,i.downloadMime))}else{var a=i.getDataURL(e,r,t,n);i.saveFile(a.replace(r,i.downloadMime))}},this.convertToImage=function(e,t,n,r){if(i.$support.canvas&&i.$support.dataURL){if("string"==typeof e&&(e=document.getElementById(e)),null==r&&(r="png"),r=i.fixType(r),/bmp/.test(r)){var o=i.getImageData(i.scaleCanvas(e,t,n)),s=i.genBitmapImage(o);return i.makeURI(s,"image/bmp")}return i.getDataURL(e,r,t,n)}}}return e.prototype.scaleCanvas=function(e,t,i){var n=e.width,r=e.height;null==t&&(t=n),null==i&&(i=r);try{var o=document.createElement("canvas"),s=o.getContext("2d");return o.width=t,o.height=i,s.drawImage(e,0,0,n,r,(t-n)/2,(i-r)/2,n,r),s.fillStyle="black",s.strokeStyle="black",s.font="16px",s.textBaseline="hanging",s.fillText(rK().format("L"),0,0),o}catch(e){h$.log(e)}},e.prototype.getDataURL=function(e,t,i,n){return(e=this.scaleCanvas(e,i,n)).toDataURL(t)},e.prototype.saveFile=function(e){document.location.href=e},e.prototype.genImage=function(e){var t=document.createElement("img");return t.src=e,t},e.prototype.fixType=function(e){return"image/"+(e=e.toLowerCase().replace(/jpg/i,"jpeg")).match(/png|jpeg|bmp|gif/)[0]},e.prototype.encodeData=function(e){if(!window.btoa)throw"btoa undefined";var t="";if("string"==typeof e)t=e;else for(var i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return btoa(t)},e.prototype.getImageData=function(e){var t=e.width,i=e.height;return e.getContext("2d").getImageData(0,0,t,i)},e.prototype.makeURI=function(e,t){return"data:"+t+";base64,"+e},e.prototype.scaleCanvasByResolution=function(e,t,i){var n=Number(JSON.parse(localStorage.getItem("resolutionScale")));n||(n=1);var r=e.width,o=e.height;void 0===t&&(t=r),void 0===i&&(i=o);try{var s=document.createElement("canvas"),a=s.getContext("2d");return s.width=t,s.height=i,a.drawImage(e,0,0,r,o,(t-r/n)/2,(i-o/n)/2,r/n,o/n),a.fillStyle="black",a.strokeStyle="black",a.font="16px",a.textBaseline="hanging",a.fillText(rK().format("L"),0,0),s}catch(e){h$.log(e)}},e}(),d$=function(){function e(e){var t=this;this.animationList=[{groupName:"",groupList:[{name:"无效果",value:"",animatePic:""}]},{groupName:"基础效果",groupList:[{name:"淡入",value:"animate__custom animate__custom__fadeIn"},{name:"闪白",value:"animate__custom animate__flash__white"},{name:"百叶窗",value:"animate__custom animate__custom__blind"},{name:"叠化",value:"animate__custom animate__custom__dissolve"}]}],this.isAutoSet=!1,this.pageAnimateTime=3,this.blindNum=6,this.pageAnimationCompleted$=new am,this.viewer=e,window.addEventListener("resize",function(){}),this.animationEndCallBack=function(){t.hideAnimationWrapper(),t.removeAddedElement(),t.isPageAnimationCompleted=!0,t.pageAnimationCompleted$.next(1);var e=document.querySelector(".pre-add-animation-wrapper");e&&e.remove()}}return Object.defineProperty(e.prototype,"isPageAnimationCompleted",{get:function(){return this._isPageAnimationCompleted},set:function(e){this._isPageAnimationCompleted=e},enumerable:!1,configurable:!0}),e.prototype.addAnimationToElement=function(e,t){if(!document.querySelector(".pre-add-animation-wrapper")){var i=document.createElement("div");i.className="pre-add-animation-wrapper";var n=document.createElement("div");n.className="pre-add-animation",i.appendChild(n),document.body.appendChild(i)}var r=t.animateType;t.animateTime=t.animateTime,this.isPageAnimationCompleted=!1;var o=document.querySelector(".pre-add-animation");if(this.restartAnimation(e,o),document.querySelector(".pre-add-animation-wrapper").style.zIndex="100",null==r?void 0:r.includes("animate__custom"))if(this.showAnimationWrapper(),this.clearPreAddElement(),this.removeAddedElement(),r.includes("animate__flash__white"))o.style.backgroundImage="",o.style.animationDuration="".concat(t.animateTime,"s"),this.addClassToPreAddElement(r);else if(r.includes("animate__custom__blind")){var s=this.viewer.scene.canvas,a=(d=new p$).scaleCanvasByResolution(s,o.getBoundingClientRect().width,o.getBoundingClientRect().height);o.style.backgroundImage="",o.style.animationDuration="".concat(t.animateTime,"s"),this.addClassToPreAddElement(r);for(var l=0;l<this.blindNum;l++){var u=document.createElement("div"),c=Math.ceil(o.getBoundingClientRect().width),h=Math.ceil(o.getBoundingClientRect().height/this.blindNum);u.style.width="".concat(o.getBoundingClientRect().width,"px"),u.style.height="".concat(h,"px"),u.style.display="inline-block",u.style.position="absolute",u.style.left="0px",u.style.top=h*l+"px",u.style.animationDuration="".concat(t.animateTime,"s"),u.classList.add("blind-tranform");var p=this.captureImage(o.getBoundingClientRect().width,o.getBoundingClientRect().height,c,h,l,a);u.style.backgroundImage="url(".concat(p,")"),u.style.backgroundSize="".concat(c,"px ").concat(h,"px"),u.style.backgroundRepeat="no-repeat",o.parentNode.appendChild(u)}}else if(r.includes("animate__custom__dissolve")){o.style.animationDuration="".concat(t.animateTime,"s"),this.addClassToPreAddElement(r);var d=new p$;s=this.viewer.scene.canvas,a=d.scaleCanvasByResolution(s,o.getBoundingClientRect().width,o.getBoundingClientRect().height),c=Math.ceil(o.getBoundingClientRect().width),h=Math.ceil(o.getBoundingClientRect().height),p=this.captureImage(o.getBoundingClientRect().width,o.getBoundingClientRect().height,c,h,0,a);o.style.backgroundImage="url(".concat(p,")"),o.style.backgroundRepeat="no-repeat"}else r.includes("animate__custom__fadeIn")&&(o.style.backgroundImage="",o.style.animationDuration="".concat(t.animateTime,"s"),this.addClassToPreAddElement(r));else this.showAnimationWrapper(),this.clearPreAddElement(),this.removeAddedElement(),this.addClassToPreAddElement("animate__custom__xxxx"),o.style.animationDuration="2s",document.querySelector(".pre-add-animation-wrapper").style.zIndex="-1";document.querySelector(".pre-add-animation-wrapper").removeEventListener("animationend",this.animationEndCallBack),document.querySelector(".pre-add-animation-wrapper").addEventListener("animationend",this.animationEndCallBack)},e.prototype.clearPreAddElement=function(){var e=document.querySelector(".pre-add-animation");e&&e.style&&(e.style.backgroundImage="",e.style.animationDuration="0s")},e.prototype.captureImage=function(e,t,i,n,r,o){if(i&&n)return this.partialCapture(o,i,n,r);var s=this.viewer.scene.canvas;return(new p$).convertToImage(s,e,t,"jpeg").toString()},e.prototype.hideAnimationWrapper=function(){var e=document.querySelector(".pre-add-animation-wrapper");e&&(e.style.display="none")},e.prototype.showAnimationWrapper=function(){document.querySelector(".pre-add-animation-wrapper").style.display="block"},e.prototype.removeAddedElement=function(){document.querySelectorAll(".blind-tranform").forEach(function(e){e.parentNode.removeChild(e)})},e.prototype.endAnimation=function(){this.removeAddedElement(),this.clearPreAddElement(),this.hideAnimationWrapper()},e.prototype.addClassToPreAddElement=function(e){document.querySelector(".pre-add-animation").className="pre-add-animation ".concat(e)},e.prototype.restartAnimation=function(e,t){e.style.animation="none",t.style.animation="none",e.offsetHeight,e.style.animation=null,t.style.animation=null},e.prototype.partialCapture=function(e,t,i,n){var r=document.createElement("canvas");r.width=t,r.height=i;var o=r.getContext("2d");return null==o||o.drawImage(e,0,i*n,t,i,0,0,t,i),null==r?void 0:r.toDataURL("image/png")},e}(),f$=__webpack_require__(6763),m$=__webpack_require__(8287).hp,g$=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())})},y$=function(e,t){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},_$=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},A$=function(){function e(e,t,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1);var r=this;this.fallBackPic="/resources/images/scene-pic.jpg",this.geopptServicePlaceHolder="-gsph-",this.placeHolderReg=new RegExp(this.geopptServicePlaceHolder,"g"),this.currentPageIndex=0,this.autoPlayMode=!1,this.stopRotate=!1,this.animationOnStop=function(e){r.stopRotate=e,r.gm.animationManager.canNextAnimation()||r.stopAnimatin(),r.onAnimationChanged&&r.onAnimationChanged()},this.ani=e.animationService;var o=e.configService.getGeopptWebUrlIp(),s=e.configService.getGeopptServiceUrlIp(),a=e.configService.getTerrainUrlIp(),l=e.configService.getGlobalTerrainUrlIp();e.configService.getPageUrlIp();this.engine=t,this.geopptWebUrl=o,this.geopptServiceUrl=s,t.viewer.scene.orderGroundPrimitives=new Cesium.OrderedGroundPrimitiveCollection,t.viewer.scene.primitives.add(t.viewer.scene.orderGroundPrimitives),this.viewer=t.viewer,this.showLayer=i,FR.DefaultConfig(),this.showLayer&&(this.lm=new c$(o,s,this.viewer),this.layerConfig=this.lm.getConfig()),this.showImageEffect=n,this.showImageEffect&&(this.iem=new $q(this.viewer,a,l)),this.pam=new d$(this.viewer)}return e.prototype.fetchPage=function(e){var t=this;fetch(e).then(function(e){return e.json()}).then(function(e){t.openScene(e).then(function(){var e=document.getElementById("pageList");if(e&&t.pages){for(var i=0;i<t.pages.length;i++){var n=t.pages[i],r=document.createElement("option");r.setAttribute("label",n.name),r.setAttribute("value",i.toString()),e.appendChild(r)}e.onchange=function(){var i=e.selectedIndex;t.changeSelect(t.pages[i]),t.currentPageIndex=i}}})}).catch(function(e){return f$.error("Request Failed",e)})},e.prototype.openScene=function(e){return g$(this,void 0,void 0,function(){var t,i,n,r,o,s,a,l,u,c;return y$(this,function(h){switch(h.label){case 0:return f$.log("this.drawService.open$.subscribe$",e),this.currentScene=e,i=[],(n=t instanceof gK)&&(t=gN(gK,e)),this.pages=[],i=this.currentScene.draws,f$.log("pages",i),0!==i.length?[3,2]:[4,this.add()];case 1:return h.sent(),[3,10];case 2:h.trys.push([2,7,8,9]),r=_$(i),o=r.next(),h.label=3;case 3:return o.done?[3,6]:((s=o.value).url||s.image?s.url=this.convertPageImage(s):s.url=this.fallBackPic,a=s,[4,this.getByPage(s.id,n)]);case 4:a.draws=h.sent(),this.transformToGraphManager(s),this.pages.push(s),h.label=5;case 5:return o=r.next(),[3,3];case 6:return[3,9];case 7:return l=h.sent(),u={error:l},[3,9];case 8:try{o&&!o.done&&(c=r.return)&&c.call(r)}finally{if(u)throw u.error}return[7];case 9:this.changeSelect(this.pages[0]),h.label=10;case 10:return[2]}})})},e.prototype.changeSelect=function(e){return g$(this,arguments,void 0,function(e,t,i){var n;return void 0===t&&(t=!0),void 0===i&&(i=!1),y$(this,function(r){return nJ.getInstance().stop(),this.clean(),this.stopAnimatin(),(n=document.querySelector("#GvolContainer"))&&this.pam.addAnimationToElement(n,e),this.loadPage(t,e,i),[2]})})},e.prototype.stopAnimatin=function(){return g$(this,void 0,void 0,function(){return y$(this,function(e){switch(e.label){case 0:return this.gm?[4,this.gm.animationManager.stop()]:[3,2];case 1:e.sent(),this.viewer.clock.shouldAnimate=!1,e.label=2;case 2:return[2]}})})},e.prototype.loadPage=function(e,t,i){return g$(this,void 0,void 0,function(){return y$(this,function(e){switch(e.label){case 0:return[4,this.createOrEdit(this.viewer,t.ext)];case 1:return e.sent(),this.currentPage=t,this.showLayer&&this.lm.pageToLayerList(this.currentPage),this.showImageEffect&&this.iem.initStatus(this.currentPage),this.pageLoadCompleted(),[2]}})})},e.prototype.pageLoadCompleted=function(){var e=this;this.gm.animationManager.playByGroup(new Date),this.plotEnable(!0),null==this.onAnimationChanged&&void 0===this.onAnimationChanged||this.autoPlayMode&&(this.pam.isPageAnimationCompleted?this.autoPlay():(this.pageAnimationCompletedSubscription&&(this.pageAnimationCompletedSubscription.unsubscribe(),this.pageAnimationCompletedSubscription=null),this.pageAnimationCompletedSubscription=this.pam.pageAnimationCompleted$.subscribe(function(t){e.autoPlay()})))},e.prototype.plotEnable=function(e){this.gm&&(this.gm.editor.isReadOnly=e)},e.prototype.createOrEdit=function(e){return g$(this,arguments,void 0,function(e,t){var i,n,r,o,s;return void 0===t&&(t=null),y$(this,function(a){return f$.log("恢复对象>>>",t),this.gm||(this.layerConfig={layerId:"plot"+Fm.newGuid(),editAfterCreate:!0,operatorEnable:!0,isReadOnly:!1},this.gm=new gW(this.engine,this.layerConfig),this.gm.animationManager.saStop$.subscribe(this.animationOnStop)),this.hm=new Hq(e),this.hm.outsideHtml&&this.currentScene&&(i=getComputedStyle(this.hm.outsideHtml),n=parseInt(i.width.substr(0,i.width.indexOf("p")))/this.currentScene.width,r=parseInt(i.height.substr(0,i.height.indexOf("p")))/this.currentScene.height,o=n<r?n:r,this.hm.scalePercent=o,this.hm.calculateScale()),this.sm=new Qq(this.hm.containerDiv),this.bfm=new Rq(e),this.mm=new Uq,t?(f$.log("createOrEdit",t),s=(s=JSON.stringify(t)).replace(this.placeHolderReg,this.geopptServiceUrl),t=JSON.parse(s),this.gm.load(t),t.html&&this.hm.setListByData(t.html),t.subtitle?this.sm.setSubtitleList(t.subtitle):this.sm.setSubtitleList([]),t.bigfile&&(f$.log("json bigfile",t.bigfile),this.bfm.setListByData(t.bigfile)),t.music&&this.mm.recoverData(t.music),this.plotList=this.gm.graphList,[2]):(this.sm.setSubtitleList([]),[2])})})},e.prototype.convertPageImage=function(e){if(e.url)return e.url;var t=m$.allocUnsafe(e.image.data.length);return t.fill(e.image.data,0),"data:image/jpeg;base64,"+t.toString("base64")},e.prototype.transformToGraphManager=function(e){var t=e.draws.find(function(e){return"graph"==e.type});return t&&(e.ext=t.ext),jf.Remove(e.draws,t),t},e.prototype.add=function(e){return g$(this,void 0,void 0,function(){var t;return y$(this,function(i){return null==window.viewer?(f$.log("球实例 未创建"),[2]):((t=new _K).pageTime=new Date,t.index=e?Number(e+1):this.pages.length+1,t.draws=[],this.changeSelect(this.pages[e]),[2])})})},e.prototype.getPage=function(e){return g$(this,arguments,void 0,function(e,t){var i;return void 0===t&&(t=!1),y$(this,function(n){switch(n.label){case 0:return i="".concat(this.geopptServiceUrl,"/page/getPage?id=").concat(e,"&isFromPublish=").concat(t),f$.log("getPage",i),[4,fetch(i)];case 1:return[4,n.sent().json()];case 2:return[2,n.sent()]}})})},e.prototype.getByPage=function(e){return g$(this,arguments,void 0,function(e,t){return void 0===t&&(t=!1),y$(this,function(i){switch(i.label){case 0:return[4,fetch("".concat(this.geopptServiceUrl,"/plot/getByPage?id=").concat(e,"&isFromPublish=").concat(t))];case 1:return[4,i.sent().json()];case 2:return[2,i.sent()]}})})},e.prototype.previousPage=function(){return g$(this,void 0,void 0,function(){return y$(this,function(e){switch(e.label){case 0:return this.pages&&this.pages.length>1&&this.currentPageIndex>0?[4,this.gm.animationManager.stop()]:[3,2];case 1:e.sent(),this.currentPageIndex=this.currentPageIndex-1,this.playState=C$.stoped,this.stopRotate=!1,this.changeSelect(this.pages[this.currentPageIndex]),e.label=2;case 2:return[2]}})})},e.prototype.nextPage=function(){return g$(this,void 0,void 0,function(){return y$(this,function(e){switch(e.label){case 0:return this.pages&&this.pages.length>1&&this.currentPageIndex<this.pages.length-1?[4,this.gm.animationManager.stop()]:[3,2];case 1:e.sent(),this.currentPageIndex=this.currentPageIndex+1,this.playState=C$.stoped,this.stopRotate=!1,this.changeSelect(this.pages[this.currentPageIndex]),e.label=2;case 2:return[2]}})})},e.prototype.playAndPause=function(){this.autoPlayMode?this.playState!=C$.playing||this.gm.animationManager.clock.isPaused?this.playState==C$.paused?this.continue():this.autoPlay():this.pause():this.playState!=C$.playing||this.gm.animationManager.clock.isPaused?this.playState==C$.paused?this.continue():this.next():this.pause()},e.prototype.pause=function(e){void 0===e&&(e=!1),this.playState=C$.paused,this.gm.animationManager.clock.pause(),this.stopRotate=!1,e&&this.clearAutoChanged()},e.prototype.continue=function(e){void 0===e&&(e=!1),this.gm.animationManager.clock.resume(),this.stopRotate=!0,this.playState=C$.playing,e&&this.setAutoChanged()},e.prototype.next=function(){var e=this;if(this.gm.animationManager.canNextAnimation()){var t=this.pages.find(function(t){return t.index==e.currentPageIndex+1});this.ani.startPlay(t),this.gm.animationManager.next(),this.playState=C$.playing,this.stopRotate=!0}else this.nextPage()},e.prototype.autoPlay=function(e){void 0===e&&(e=2),this.autoPlayMode&&(this.setAutoChanged(),this.next())},e.prototype.setAutoChanged=function(){var e=this;this.onAnimationChanged=function(){e.gm.animationManager.canNextAnimation()?(e.gm.animationManager.currentIndex+=1,e.gm.animationManager.clock.resume(),e.playState=C$.playing,e.stopRotate=!0):(e.playState=C$.stoped,e.hasFinished()?(e.onAnimationChanged=void 0,e.stopRotate=!1):e.next())}},e.prototype.clearAutoChanged=function(){this.onAnimationChanged=null},e.prototype.hasFinished=function(){return!(!this.pages||!this.gm)&&(this.currentPageIndex==this.pages.length-1&&this.gm.animationManager.currentIndex==this.gm.animationManager.animationGroupList.length-1&&this.playState==C$.stoped)},e.prototype.clean=function(){this.gm&&(this.gm.close(),this.gm.animationManager.destroy()),this.hm&&this.hm.clearHtmlDiv(),this.bfm&&this.bfm.cleanAll(),this.mm&&this.mm.clean()},e}();const v$=A$;var C$;!function(e){e[e.stoped=0]="stoped",e[e.playing=1]="playing",e[e.paused=2]="paused"}(C$||(C$={}));var b$=__webpack_require__(6763);const w$=class extends fT{constructor(e={}){const{container:t,options:i={},settings:n={},viewer:r=null,resourceUrl:o}=e;super(t,i,n,r),this._config=e,this._serviceManager=new Pq(this),this._serviceManager.load(o||i.resourceUrl),this._sceneManager=new v$(this._serviceManager,this,!1,!1),this._analysisModule=new zM(this),this._layerManager=new Bg(this),this._plot=new Tq(this._serviceManager),this._plot.loaded(),b$.log("[Plotting] 功能模块加载完成...")}getConfig(){return{...this._config}}capture(e,t,i){return capture(this._scene,e,t,i)}captureScreenExport(){const e=this.captureScreenshot();e&&e.then(e=>{e&&this.captureScreenSave(e,`${Date.now()}.png`)})}captureScreenshot(){const{when:e}=Cesium,t=e.defer();var i=this.viewer.scene.postRender.addEventListener(function(){i();try{this.viewer.scene.canvas.toBlob(function(e){t.resolve(e)},"image/png")}catch(e){t.reject(e)}},this);return this.viewer.scene.render(this.viewer.clock.currentTime),t.promise}captureScreenSave(e,t){if(null!==e)if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(e,t);else{const i=document.createElement("a"),n=document.querySelector("body");i.href=window.URL.createObjectURL(e),i.download=t,i.style.display="none",n.appendChild(i),i.click(),n.removeChild(i),window.URL.revokeObjectURL(i.href)}}get layerManager(){return this._layerManager}get tileLayer(){return this.layerManager.tileLayer}get graphicLayer(){return this.layerManager.graphicLayer}get plotLayer(){return this.layerManager.plotLayer}get dynamicLayer(){return this.layerManager.dynamicLayer}get serviceManager(){return this._serviceManager}get sceneManager(){return this._sceneManager}get analysisModule(){return this._analysisModule}get plot(){return this._plot}};__webpack_require__(5718);var x$=__webpack_require__(6763);function S$(e,t){const i=new Cesium.ClearCommand({pass:7});return i.boundingVolume=new Cesium.BoundingSphere,i.cull=!1,i._renderParams={},i.renderState=Cesium.RenderState.fromCache({}),i.execute=(n,r)=>{if(i.renderCallback){!function(e,t,i,n){var r=e._currentRenderState,o=e._currentPassState;e._currentRenderState=t,e._currentPassState=i,Cesium.RenderState.partialApply(e._gl,r,t,o,i,n)}(n,i.renderState,r,!1),i._renderParams.gl=n._gl,i._renderParams.owner=e,i._renderParams.id=t,i._renderParams.czm=i._renderParams.czm||{},i._renderParams.czm.context=n,i._renderParams.czm.passState=r,i._renderParams.czm.renderState=i.renderState,i._renderParams.czm.frameState=i.frameState,i._renderParams.czm.uniformState=n.uniformState,i._renderParams.czm.useLogDepth=i.frameState.useLogDepth;try{i.renderCallback(i._renderParams)}catch(e){x$.log("renderCallback执行有错: "+e)}}},i}class M${constructor(){this.show=!0,this.commands=[]}update(e){this.show&&this.commands.forEach(t=>{t.frameState=e,e.commandList.push(t)})}isDestroyed(){return!1}destroy(){return this.commands.length=0,Cesium.destroyObject(this)}}M$.createCommand=S$;const P$={GvolBase:zm.A,GvolObject:Cu.A,GvolGeoBase:rg.A,GvolLayer:ou,GvolPoint:Vu,Event:iu,CommandPrimitive:M$};class E$ extends zm.A{constructor(){super()}destroy(){return super.destroy()}}E$.defaultOptions={url:"",requestVertexNormals:!1,requestWaterMask:!1,requestMetadata:!0};E$.gvolSchema={title:"XbsjCesiumTerrainProvider Property",type:"object",properties:{url:{type:"string",title:"url",default:"",description:"url"},requestVertexNormals:{type:"boolean",title:"requestVertexNormals",default:!1,description:"requestVertexNormals"},requestWaterMask:{type:"boolean",title:"requestWaterMask",default:!1,description:"requestWaterMask"},requestMetadata:{type:"boolean",title:"requestMetadata",default:!0,description:"requestMetadata"}}},E$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url","requestVertexNormals","requestWaterMask","requestMetadata"]}];const L$=E$;class T$ extends zm.A{constructor(){super()}destroy(){return super.destroy()}}T$.defaultOptions={url:""};T$.gvolSchema={title:"GoogleEarthEnterpriseTerrainProvider Property",type:"object",properties:{url:{type:"string",title:"url",default:"",description:"url"}}},T$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url"]}];const O$=T$;class D$ extends zm.A{constructor(){super()}}D$.defaultOptions={tilingScheme:"GeographicTilingScheme"};D$.gvolSchema={title:"XbsjEllipsoidTerrainProvider Property",type:"object",properties:{tilingScheme:{type:"string",default:"GeographicTilingScheme",enum:["GeographicTilingScheme","WebMercatorTilingScheme"],description:"tilingScheme类型"}}},D$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["tilingScheme"]}];const B$={XbsjCesiumTerrainProvider:L$,XbsjEllipsoidTerrainProvider:D$,GoogleEarthEnterpriseTerrainProvider:O$};class I$ extends rg.A{constructor(e,t){super(e,t);const i=e.czm.scene;this._scene=i,e._gvolTerrains.push(this),this._terrainProvider=void 0,this._disposers=[],this._disposers.push((0,ng.A)(this,"enabled",this,"show")),zm.A.registerProperty(this,"gvolTerrainProvider",I$.defaultOptions.gvolTerrainProvider),this.gvolTerrainProvider.XbsjCesiumTerrainProvider=new B$.XbsjCesiumTerrainProvider,this.gvolTerrainProvider.XbsjEllipsoidTerrainProvider=new B$.XbsjEllipsoidTerrainProvider,this.gvolTerrainProvider.GoogleEarthEnterpriseTerrainProvider=new B$.GoogleEarthEnterpriseTerrainProvider,zm.A.registerProperty(this.gvolTerrainProvider,"XbsjCesiumTerrainProvider"),zm.A.registerProperty(this.gvolTerrainProvider,"XbsjEllipsoidTerrainProvider"),zm.A.registerProperty(this.gvolTerrainProvider,"GoogleEarthEnterpriseTerrainProvider"),this._disposers.push((0,Wm.reaction)(()=>{let e={_opt:this.gvolTerrainProvider[this.gvolTerrainProvider.type]};return{provider:this.gvolTerrainProvider,type:this.gvolTerrainProvider.type,providerOptions:e}},()=>{if("XbsjCesiumTerrainProvider"===this.gvolTerrainProvider.type){const e=this.gvolTerrainProvider.XbsjCesiumTerrainProvider;let t=e.url;if(e.url.startsWith("Ion(")){let i=/Ion\((\d+)/.exec(e.url),n=i[1]&&+i[1];n&&(t=Cesium.IonResource.fromAssetId(n))}this._terrainProvider=new Cesium.CesiumTerrainProvider({url:t,requestVertexNormals:e.requestVertexNormals,requestWaterMask:e.requestWaterMask,requestMetadata:e.requestMetadata})}else if("XbsjEllipsoidTerrainProvider"===this.gvolTerrainProvider.type){"WebMercatorTilingScheme"===this.gvolTerrainProvider.XbsjEllipsoidTerrainProvider.tilingScheme?this._terrainProvider=new Cesium.EllipsoidTerrainProvider({tilingScheme:new Cesium.WebMercatorTilingScheme}):this._terrainProvider=new Cesium.EllipsoidTerrainProvider}else{if("GoogleEarthEnterpriseTerrainProvider"!==this.gvolTerrainProvider.type)throw new Error("gvolTerrainProvider 未知类型!");{let e=this.gvolTerrainProvider.GoogleEarthEnterpriseTerrainProvider.url;this._terrainProvider=new Cesium.GoogleEarthEnterpriseTerrainProvider({url:e})}}this._terrainProvider&&(this._terrainProvider.show=this.show),this._earth._gvolTerrainZIndexDirty=!0},{fireImmediately:!0})),this._disposers.push((0,Wm.autorun)(()=>{const e=this.show;this._terrainProvider&&(this._terrainProvider.show=e)})),this._disposers.push((0,Wm.reaction)(()=>[this.show,this.gvolZIndex],()=>{this._earth._gvolTerrainZIndexDirty=!0},{fireImmediately:!0}))}flyTo(){this.rectangle&&4===this.rectangle.length&&this._scene.camera.flyTo({destination:new Cesium.Rectangle(...this.rectangle)})}gvolFromJSON(e){return super.gvolFromJSON(e)}isDestroyed(){return!1}destroy(){const e=this._earth._gvolTerrains.indexOf(this);if(-1===e)throw new Error("this._earth._gvolTerrains must contain!");return this._earth._gvolTerrains.splice(e,1),this._terrainProvider=void 0,this._earth._gvolTerrainZIndexDirty=!0,this._disposers.forEach(e=>e()),this._disposers.length=0,super.destroy()}}I$.TerrainProvider=B$,I$.defaultOptions={gvolTerrainProvider:{type:"XbsjEllipsoidTerrainProvider",XbsjEllipsoidTerrainProvider:null,XbsjCesiumTerrainProvider:null,GoogleEarthEnterpriseTerrainProvider:null},gvolZIndex:0,show:!0,rectangle:[-Math.PI,.5*-Math.PI,Math.PI,.5*Math.PI]};const R$={title:"Terrain Property",type:"object",properties:{gvolTerrainProvider:{type:"object",title:"地形资源提供",description:"地形资源提供",properties:{type:{type:"string",default:"XbsjEllipsoidTerrainProvider",enum:["XbsjEllipsoidTerrainProvider","XbsjCesiumTerrainProvider","GoogleEarthEnterpriseTerrainProvider"],description:"provider类型"},XbsjEllipsoidTerrainProvider:B$.XbsjEllipsoidTerrainProvider.gvolSchema,XbsjCesiumTerrainProvider:B$.XbsjCesiumTerrainProvider.gvolSchema,GoogleEarthEnterpriseTerrainProvider:B$.GoogleEarthEnterpriseTerrainProvider.gvolSchema}},gvolZIndex:{type:"number",title:"显示优先级",default:0,description:"显示优先级"},show:{type:"boolean",title:"显示",default:!0,description:"显示"},rectangle:{type:"array",title:"作用范围 [西, 南, 东, 北]",default:[-Math.PI,.5*-Math.PI,Math.PI,.5*Math.PI],description:"作用范围 [西, 南, 东, 北]"}}};I$.gvolSchema=R$;I$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["show","gvolTerrainProvider","gvolZIndex","rectangle"]}],Cu.A.registerType(I$,"Terrain");const N$=I$,k$=[{name:{chinese:"通用",english:"General"},properties:["show","alpha","brightness","contrast","hue","saturation","gamma","colorToAlphaThreshold","splitDirection","rectangle","gvolZIndex","gvolImageryProvider"]},{name:{chinese:"调试",english:"Debug"},properties:[]}];class F$ extends zm.A{constructor(){super(),(0,Wm.extendObservable)(this,{_imageryProvider:void 0,get provider(){return this._imageryProvider}},{_imageryProvider:Wm.observable.ref,provider:Wm.computed}),this._disposers=[],this._disposers.push((0,Wm.autorun)(()=>{this._imageryProvider=this.createImageryProvider()}))}createImageryProvider(){const e=null!=this.rectangle?Cesium.Rectangle.fromRadians(...this.rectangle):this.rectangle;let t;e&&(e=Cesium.Rectangle.MAX_VALUE),"WebMercator"===this.tilingScheme?t=new Cesium.WebMercatorTilingScheme:"Geographic"===this.tilingScheme&&(t=new Cesium.GeographicTilingScheme);let i={url:this.url,rectangle:e,token:this.token,layers:this.layers,tileWidth:this.tileWidth,tileHeight:this.tileHeight,tilingScheme:t,credit:this.credit,maximumLevel:this.maximumLevel};if(this.token||delete i.token,!this.url)return;return new Cesium.ArcGisMapServerImageryProvider(i)}destory(){this._disposers.forEach(e=>e()),this._disposers.length=0}}F$.defaultOptions={url:"",rectangle:void 0,token:"",layers:"",tileWidth:256,tileHeight:256,tilingScheme:"Geographic",credit:"",maximumLevel:18};F$.gvolSchema={title:"ArcGisMapServerImageryProvider Property",type:"object",properties:{url:{type:"string",title:"url",default:"",description:"url"},token:{type:"string",title:"token",default:"",description:"token"},layers:{type:"string",title:"layers",default:"",description:"layers"},tileWidth:{type:"number",title:"tileWidth",default:"256",description:"tileWidth"},tileHeight:{type:"number",title:"tileHeight",default:"256",description:"tileHeight"},tilingScheme:{type:"string",title:"tilingScheme",default:"WebMercator",description:"tilingScheme"},credit:{type:"string",title:"credit",default:"",description:"credit"},rectangle:{type:"string",title:"rectangle",default:"undefined",description:"rectangle"},maximumLevel:{type:"number",title:"maximumLevel",default:"0",description:"maximumLevel"}}},F$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url","rectangle","token","layers","tileWidth","tileHeight","tilingScheme","credit","maximumLevel"]}];const H$=F$;class Y$ extends zm.A{constructor(){super(),(0,Wm.extendObservable)(this,{_imageryProvider:void 0},{_imageryProvider:Wm.observable.ref}),this._disposers=[];const e=()=>{this._imageryProvider=this.createImageryProvider()};e(),this._disposers.push((0,Wm.reaction)(()=>({url:this.url,rectangle:this.rectangle&&[...this.rectangle],tilingScheme:this.tilingScheme}),e))}get provider(){return this._imageryProvider}createImageryProvider(){const e=null!=this.rectangle?Cesium.Rectangle.fromRadians(...this.rectangle):this.rectangle;let t;"WebMercator"===this.tilingScheme?t=new Cesium.WebMercatorTilingScheme:"Geographic"===this.tilingScheme&&(t=new Cesium.GeographicTilingScheme);return new Cesium.UrlTemplateImageryProvider({url:this.url,rectangle:e,tilingScheme:t,minimumLevel:this.minimumLevel,maximumLevel:this.maximumLevel})}destory(){this._disposers.forEach(e=>e()),this._disposers.length=0}}Y$.defaultOptions={url:"",rectangle:void 0,tilingScheme:"WebMercator",minimumLevel:0,maximumLevel:void 0};const j$={title:"UrlTemplateImageryProvider Property",type:"object",properties:{url:{type:"string",title:"url",default:"",description:"url"},rectangle:{type:"array | undefined",items:{type:"number",minimum:-Math.PI,maximum:Math.PI},minItems:4,maxItems:4,default:void 0,description:"rectangle"},tilingScheme:{type:"string",title:"tilingScheme",default:"WebMercator",description:"tilingScheme"},minimumLevel:{type:"string",title:"minimumLevel",default:"0",description:"minimumLevel"},maximumLevel:{type:"string",title:"maximumLevel",default:"undefined",description:"maximumLevel"}}};Y$.gvolSchema=j$,Y$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url","rectangle","tilingScheme"]}];const U$=Y$;class G$ extends zm.A{constructor(){super(),(0,Wm.extendObservable)(this,{_imageryProvider:void 0,get provider(){return this._imageryProvider}},{_imageryProvider:Wm.observable.ref,provider:Wm.computed}),this._disposers=[],this._disposers.push((0,Wm.autorun)(()=>{this._imageryProvider=this.createImageryProvider()}))}createImageryProvider(){const e=null!=this.rectangle?Cesium.Rectangle.fromRadians(...this.rectangle):this.rectangle;let t;"WebMercator"===this.tilingScheme?t=new Cesium.WebMercatorTilingScheme:"Geographic"===this.tilingScheme&&(t=new Cesium.GeographicTilingScheme);const i=this.tileMatrixLabels||void 0;return new Cesium.WebMapTileServiceImageryProvider({url:this.url,format:this.format,layer:this.layer,style:this.style,tileMatrixSetID:this.tileMatrixSetID,tileMatrixLabels:i,tileWidth:this.tileWidth,tileHeight:this.tileHeight,tilingScheme:t,rectangle:e,minimumLevel:this.minimumLevel,maximumLevel:this.maximumLevel})}destory(){this._disposers.forEach(e=>e()),this._disposers.length=0}}G$.defaultOptions={url:"",format:"image/jpeg",layer:"",style:"",tileMatrixSetID:"",tileMatrixLabels:"",tileWidth:256,tileHeight:256,tilingScheme:"WebMercator",rectangle:void 0,minimumLevel:0,maximumLevel:18};G$.gvolSchema={title:"WebMapTileServiceImageryProvider Property",type:"object",properties:{url:{type:"string",title:"url",default:"",description:"url"},format:{type:"string",title:"format",default:"image/jpeg",description:"format"},layer:{type:"string",title:"layer",default:"",description:"layer"},style:{type:"string",title:"style",default:"",description:"style"},tileMatrixSetID:{type:"string",title:"tileMatrixSetID",default:"",description:"tileMatrixSetID"},tileMatrixLabels:{type:"string",title:"tileMatrixLabels",default:"",description:"tileMatrixLabels"},tileWidth:{type:"number",title:"tileWidth",default:"256",description:"tileWidth"},tileHeight:{type:"number",title:"tileHeight",default:"256",description:"tileHeight"},tilingScheme:{type:"string",title:"tilingScheme",default:"WebMercator",description:"tilingScheme"},rectangle:{type:"string",title:"url",default:"undefined",description:"url"},minimumLevel:{type:"number",title:"minimumLevel",default:0,description:"minimumLevel"},maximumLevel:{type:"number",title:"maximumLevel",default:24,description:"maximumLevel"}}},G$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url","format","layer","style","tileMatrixSetID","tileMatrixLabels","tileWidth","tileHeight","tilingScheme","rectangle","minimumLevel","maximumLevel"]}];const Q$=G$;class z$ extends zm.A{constructor(){super(),(0,Wm.extendObservable)(this,{_imageryProvider:void 0},{_imageryProvider:Wm.observable.ref}),this._disposers=[],this._disposers.push((0,Wm.autorun)(()=>{this._imageryProvider=this.createImageryProvider()}))}get provider(){return this._imageryProvider}createImageryProvider(){let e;"WebMercator"===this.tilingScheme?e=new Cesium.WebMercatorTilingScheme:"Geographic"===this.tilingScheme&&(e=new Cesium.GeographicTilingScheme);const t=null!=this.rectangle?Cesium.Rectangle.fromRadians(...this.rectangle):this.rectangle;let i;return i=Cesium.XbsjImageryProviderTools?Cesium.XbsjImageryProviderTools.createImageryProvider({uri:this.url,srcCoordType:this.srcCoordType,dstCoordType:this.dstCoordType,rectangle:t,minimumLevel:this.minimumLevel,maximumLevel:this.maximumLevel,tilingScheme:e}):null,i}destory(){this._disposers.forEach(e=>e()),this._disposers.length=0}}z$.defaultOptions={url:"",srcCoordType:"WGS84",dstCoordType:"WGS84",rectangle:void 0,tilingScheme:"WebMercator",minimumLevel:0,maximumLevel:18};const W$={title:"XbsjImageryProvider Property",type:"object",properties:{url:{type:"string",title:"url",default:"",description:"url"},srcCoordType:{type:"string",title:"srcCoordType",default:"WGS84",description:"srcCoordType"},dstCoordType:{type:"string",title:"dstCoordType",default:"WGS84",description:"dstCoordType"},rectangle:{type:"array",items:{type:"number",minimum:-Math.PI,maximum:Math.PI},minItems:4,maxItems:4,default:void 0,description:"rectangle"},minimumLevel:{type:"number",title:"minimumLevel",default:0,description:"最小级别"},maximumLevel:{type:"number",title:"maximumLevel",default:18,description:"最大级别"}}};z$.gvolSchema=W$,z$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url","srcCoordType","dstCoordType","rectangle","minimumLevel","maximumLevel"]}];const X$=z$;class V$ extends zm.A{constructor(){super(),(0,Wm.extendObservable)(this,{_imageryProvider:void 0},{_imageryProvider:Wm.observable.ref}),this._disposers=[],this._disposers.push((0,Wm.autorun)(()=>{this._imageryProvider=this.createImageryProvider()}))}get provider(){return this._imageryProvider}createImageryProvider(){if(!this.url)return;const e=this.rectangle&&Cesium.Rectangle.fromRadians(...this.rectangle);return new Cesium.TileMapServiceImageryProvider({url:this.url,rectangle:e,fileExtension:this.fileExtension,maximumLevel:this.maximumLevel})}destory(){this._disposers.forEach(e=>e()),this._disposers.length=0}}V$.defaultOptions={url:"",fileExtension:"png",maximumLevel:void 0,rectangle:void 0};const J$={title:"TileMapServiceImageryProvider Property",type:"object",properties:{url:{type:"string",title:"url",default:"",description:"url"},rectangle:{type:["array","null"],items:{type:"number",minimum:-Math.PI,maximum:Math.PI},minItems:4,maxItems:4,default:null,description:"rectangle"},fileExtension:{type:"string",title:"fileExtension",default:"png",description:"fileExtension"},maximumLevel:{type:["integer","null"],title:"maximumLevel",default:null,description:"maximumLevel"}}};V$.gvolSchema=J$,V$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url","rectangle","fileExtension","maximumLevel"]}];const K$=V$;class Z$ extends zm.A{constructor(){super(),(0,Wm.extendObservable)(this,{_imageryProvider:void 0,get provider(){return this._imageryProvider}},{_imageryProvider:Wm.observable.ref,provider:Wm.computed}),this._disposers=[],this._disposers.push((0,Wm.autorun)(()=>{this._imageryProvider=this.createImageryProvider()}))}createImageryProvider(){const e=null!=this.rectangle?Cesium.Rectangle.fromRadians(...this.rectangle):this.rectangle;let t;"WebMercator"===this.tilingScheme?t=new Cesium.WebMercatorTilingScheme:"Geographic"===this.tilingScheme&&(t=new Cesium.GeographicTilingScheme);const i=this.tileMatrixLabels||void 0;return new Cesium.WebMapServiceImageryProvider({url:this.url,format:this.format,layers:this.layers,credit:this.credit,style:this.style,tileMatrixSetID:this.tileMatrixSetID,tileMatrixLabels:i,tileWidth:this.tileWidth,tileHeight:this.tileHeight,tilingScheme:t,rectangle:e,minimumLevel:this.minimumLevel,maximumLevel:this.maximumLevel,enablePickFeatures:!1,crs:this.crs,srs:this.srs})}destory(){this._disposers.forEach(e=>e()),this._disposers.length=0}}Z$.defaultOptions={url:"",format:"image/jpeg",layers:"",credit:"",style:"",tileMatrixSetID:"",tileMatrixLabels:"",tileWidth:256,tileHeight:256,tilingScheme:"WebMercator",rectangle:void 0,minimumLevel:0,maximumLevel:18,crs:"",srs:""};Z$.gvolSchema={title:"WebMapServiceImageryProvider Property",type:"object",properties:{url:{type:"string",title:"url",default:"",description:"url"},format:{type:"string",title:"format",default:"image/jpeg",description:"format"},layers:{type:"string",title:"layers",default:"",description:"layers"},credit:{type:"string",title:"credit",default:"",description:"credit"},style:{type:"string",title:"style",default:"",description:"style"},tileMatrixSetID:{type:"string",title:"tileMatrixSetID",default:"",description:"tileMatrixSetID"},tileMatrixLabels:{type:"string",title:"tileMatrixLabels",default:"",description:"tileMatrixLabels"},tileWidth:{type:"number",title:"tileWidth",default:"256",description:"tileWidth"},tileHeight:{type:"number",title:"tileHeight",default:"256",description:"tileHeight"},tilingScheme:{type:"string",title:"tilingScheme",default:"WebMercator",description:"tilingScheme"},rectangle:{type:"string",title:"url",default:"undefined",description:"url"},minimumLevel:{type:"string",title:"minimumLevel",default:"0",description:"minimumLevel"},maximumLevel:{type:"string",title:"maximumLevel",default:"0",description:"maximumLevel"},crs:{type:"string",title:"crs",default:"",description:"crs"},srs:{type:"string",title:"srs",default:"",description:"srs"}}},Z$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url","format","layers","credit","style","tileMatrixSetID","tileMatrixLabels","tileWidth","tileHeight","tilingScheme","rectangle","minimumLevel","maximumLevel","crs","srs"]}];const q$=Z$;class $$ extends zm.A{constructor(){super(),(0,Wm.extendObservable)(this,{_imageryProvider:void 0},{_imageryProvider:Wm.observable.ref}),this._disposers=[];this._disposers.push((0,Wm.reaction)(()=>({url:this.url}),()=>{this._imageryProvider=this.createImageryProvider()}))}get provider(){return this._imageryProvider||(this._imageryProvider=this.createImageryProvider()),this._imageryProvider}createImageryProvider(){return new Cesium.GoogleEarthEnterpriseImageryProvider({url:this.url})}destory(){this._disposers.forEach(e=>e()),this._disposers.length=0}}$$.defaultOptions={url:""};$$.gvolSchema={title:"GoogleEarthEnterpriseImageryProvider Property",type:"object",properties:{url:{type:"string",title:"url",default:"",description:"url"}}},$$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url"]}];const e0={UrlTemplateImageryProvider:U$,XbsjImageryProvider:X$,WebMapServiceImageryProvider:q$,WebMapTileServiceImageryProvider:Q$,TileMapServiceImageryProvider:K$,ArcGisMapServerImageryProvider:H$,GoogleEarthEnterpriseImageryProvider:$$},t0={title:"Imagery Property",type:"object",properties:{show:{type:"boolean",title:"show",default:!0,description:"是否在三维窗口中显示"},alpha:{type:"number",title:"alpha",default:1,description:"The alpha blending value of this layer, from 0.0 to 1.0."},brightness:{type:"number",title:"brightness",default:1,description:"The brightness of this layer. 1.0 uses the unmodified imagery"},contrast:{type:"number",title:"contrast",default:1,description:"The contrast of this layer. 1.0 uses the unmodified imagery color."},hue:{type:"number",title:"hue",default:0,description:"The hue of this layer. 0.0 uses the unmodified imagery color."},saturation:{type:"number",title:"saturation",default:1,description:"The saturation of this layer. 1.0 uses the unmodified imagery color."},gamma:{type:"number",title:"gamma",default:1,description:"The gamma correction to apply to this layer. 1.0 uses the unmodified imagery color."},colorToAlphaThreshold:{type:"number",title:"colorToAlphaThreshold",default:.004,description:"Threshold for color-to-alpha."},splitDirection:{type:"string",enum:["ImagerySplitDirection.NONE","ImagerySplitDirection.LEFT","ImagerySplitDirection.RIGHT"],title:"splitDirection",default:"ImagerySplitDirection.NONE",description:"The ImagerySplitDirection split to apply to this layer."},rectangle:{type:["array","undefined"],title:"rectangle",items:{type:"number"},default:void 0,minItems:4,maxItems:4,uniqueItems:!1,description:"The rectangle of the layer. This rectangle can limit the visible portion of the imagery provider."},gvolImageryProvider:{type:"object",title:"gvolImageryProvider",description:"影像资源信息配置",properties:{type:{type:"string",default:"XbsjImageryProvider",enum:["XbsjImageryProvider","UrlTemplateImageryProvider","WebMapServiceImageryProvider","WebMapTileServiceImageryProvider","TileMapServiceImageryProvider","ArcGisMapServerImageryProvider"],description:"provider类型"},XbsjImageryProvider:e0.XbsjImageryProvider.gvolSchema,UrlTemplateImageryProvider:e0.UrlTemplateImageryProvider.gvolSchema,WebMapServiceImageryProvider:e0.WebMapServiceImageryProvider.gvolSchema,WebMapTileServiceImageryProvider:e0.WebMapTileServiceImageryProvider.gvolSchema,createTileMapServiceImageryProvider:e0.TileMapServiceImageryProvider.gvolSchema,TileMapServiceImageryProvider:e0.TileMapServiceImageryProvider.gvolSchema,ArcGisMapServerImageryProvider:e0.ArcGisMapServerImageryProvider.gvolSchema}},gvolZIndex:{type:"number",title:"gvolZIndex",default:0,description:"确定影像的叠加顺序,zIndex越大约靠近顶层"}}},i0={alpha:1,brightness:1,contrast:1,hue:0,saturation:1,gamma:1,show:!0,colorToAlphaThreshold:.004};Object.assign(i0,{splitDirection:"ImagerySplitDirection.NONE",rectangle:void 0}),Object.assign(i0,{gvolImageryProvider:{XbsjImageryProvider:{},UrlTemplateImageryProvider:{},WebMapServiceImageryProvider:{},WebMapTileServiceImageryProvider:{},ArcGisMapServerImageryProvider:{},GoogleEarthEnterpriseImageryProvider:{},createTileMapServiceImageryProvider:{},TileMapServiceImageryProvider:{},type:"XbsjImageryProvider"},gvolZIndex:0});const n0=[["ImagerySplitDirection.NONE",0],["ImagerySplitDirection.LEFT",-1],["ImagerySplitDirection.RIGHT",1]],r0=new Map(n0,n0.map(([e,t])=>[t,e])),o0=(e,t)=>{if(!e.has(t))throw new Error(`prop ${t} is not right value!!!`);return e.get(t)};class s0 extends rg.A{constructor(e,t){super(e,t);const i=e.czm.scene;this._scene=i,(0,Wm.extendObservable)(this,{_imageryLayer:void 0},{_imageryLayer:Wm.observable.ref}),this.disposers.push(()=>{this._imageryLayer&&this._scene.imageryLayers.remove(this._imageryLayer),this._imageryLayer=void 0}),e._gvolImageries.push(this),this.disposers.push(()=>{const t=e._gvolImageries.indexOf(this);if(-1===t)throw new Error("earth._gvolImageries must contain!");e._gvolImageries.splice(t,1)}),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this.gvolImageryProvider.UrlTemplateImageryProvider=new e0.UrlTemplateImageryProvider,this.gvolImageryProvider.XbsjImageryProvider=new e0.XbsjImageryProvider,this.gvolImageryProvider.WebMapServiceImageryProvider=new e0.WebMapServiceImageryProvider,this.gvolImageryProvider.WebMapTileServiceImageryProvider=new e0.WebMapTileServiceImageryProvider,this.gvolImageryProvider.createTileMapServiceImageryProvider=new e0.TileMapServiceImageryProvider,this.gvolImageryProvider.TileMapServiceImageryProvider=new e0.TileMapServiceImageryProvider,this.gvolImageryProvider.ArcGisMapServerImageryProvider=new e0.ArcGisMapServerImageryProvider,this.gvolImageryProvider.GoogleEarthEnterpriseImageryProvider=new e0.GoogleEarthEnterpriseImageryProvider,this.disposers.push(zm.A.registerProperty(this,"gvolImageryProvider",s0.defaultOptions.gvolImageryProvider)),this.disposers.push(zm.A.registerProperty(this.gvolImageryProvider,"UrlTemplateImageryProvider",e0.UrlTemplateImageryProvider.defaultOptions)),this.disposers.push(zm.A.registerProperty(this.gvolImageryProvider,"XbsjImageryProvider",e0.XbsjImageryProvider.defaultOptions)),this.disposers.push(zm.A.registerProperty(this.gvolImageryProvider,"WebMapServiceImageryProvider",e0.WebMapServiceImageryProvider.defaultOptions)),this.disposers.push(zm.A.registerProperty(this.gvolImageryProvider,"WebMapTileServiceImageryProvider",e0.WebMapTileServiceImageryProvider.defaultOptions)),this.disposers.push(zm.A.registerProperty(this.gvolImageryProvider,"createTileMapServiceImageryProvider",e0.TileMapServiceImageryProvider.defaultOptions)),this.disposers.push(zm.A.registerProperty(this.gvolImageryProvider,"TileMapServiceImageryProvider",e0.TileMapServiceImageryProvider.defaultOptions)),this.disposers.push(zm.A.registerProperty(this.gvolImageryProvider,"ArcGisMapServerImageryProvider",e0.ArcGisMapServerImageryProvider.defaultOptions)),this.disposers.push(zm.A.registerProperty(this.gvolImageryProvider,"GoogleEarthEnterpriseImageryProvider",e0.GoogleEarthEnterpriseImageryProvider.defaultOptions)),this.disposers.push((0,Wm.reaction)(()=>{const e=this.gvolImageryProvider.type;return{provider:this.gvolImageryProvider&&this.gvolImageryProvider[e]&&this.gvolImageryProvider[e].provider,rectangle:this.rectangle}},({provider:e,rectangle:t})=>{this._imageryLayer&&this._scene.imageryLayers.remove(this._imageryLayer),e&&(this._imageryLayer=new Cesium.ImageryLayer(e,{alpha:this.alpha,brightness:this.brightness,contrast:this.contrast,hue:this.hue,saturation:this.saturation,gamma:this.gamma,show:this.show,colorToAlphaThreshold:this.colorToAlphaThreshold,splitDirection:o0(r0,this.splitDirection),rectangle:t&&Cesium.Rectangle.fromRadians(...t)}),this._scene.imageryLayers.add(this._imageryLayer),this._earth._gvolImageryZIndexDirty=!0)},{fireImmediately:!0})),this.disposers.push((0,Wm.autorun)(()=>{const e=this.alpha,t=this.brightness,i=this.contrast,n=this.hue,r=this.saturation,o=this.gamma,s=this.show,a=this.colorToAlphaThreshold,l=this.gvolZIndex,u=o0(r0,this.splitDirection);this._imageryLayer&&(this._imageryLayer.alpha=e,this._imageryLayer.brightness=t,this._imageryLayer.contrast=i,this._imageryLayer.hue=n,this._imageryLayer.saturation=r,this._imageryLayer.gamma=o,this._imageryLayer.show=s,this._imageryLayer.colorToAlphaThreshold=a,this._imageryLayer.splitDirection=u,this._imageryLayer.gvolZIndex=l)})),this.disposers.push((0,Wm.reaction)(()=>[this.show,this.gvolZIndex],()=>{this._imageryLayer&&(this._imageryLayer.show=this.show,this._imageryLayer.gvolZIndex=this.gvolZIndex),this._earth._gvolImageryZIndexDirty=!0}))}flyTo(){this.rectangle&&4===this.rectangle.length&&this._scene.camera.flyTo({destination:new Cesium.Rectangle(this.rectangle[0],this.rectangle[1],this.rectangle[2],this.rectangle[3])})}gvolFromJSON(e){return super.gvolFromJSON(e)}isDestroyed(){return!1}destroy(){return super.destroy()}}s0.ImageryProvider=e0,s0.defaultImageryProviderConfig=Object.freeze({TileMapServiceImageryProvider:{url:Ql.A.cesiumDir+"Assets/Textures/NaturalEarthII",fileExtension:"jpg"},type:"TileMapServiceImageryProvider"}),s0.defaultOptions=i0,Cu.A.registerType(s0,"Imagery"),s0.gvolSchema=t0,s0.gvolClassification=k$;const a0=s0,l0={url:"",basePath:"",show:!0,scale:1,minimumPixelSize:0,maximumScale:void 0,allowPicking:!0,incrementallyLoadTextures:!0,asynchronous:!0,clampAnimations:!0,shadows:"ShadowMode.ENABLED",debugShowBoundingVolume:!1,debugWireframe:!1,heightReference:"HeightReference.NONE",distanceDisplayCondition:void 0,color:[1,1,1,1],colorBlendMode:"ColorBlendMode.HIGHLIGHT",colorBlendAmount:.5,silhouetteColor:[1,0,0,1],silhouetteSize:0,lightColor:void 0,luminanceAtZenith:.2,specularEnvironmentMaps:void 0,gvolPosition:[0,0,0],gvolRotation:[0,0,0],gvolScale:[1,1,1],attachedPathGuid:"",cameraAttachedOffsetPosition:[0,0,0],cameraAttachedOffsetRotation:[0,-Math.PI/3,0],viewDistance:50};let u0,c0,h0,p0;class d0 extends rg.A{constructor(e,t){super(e,t);const i=e.czm.scene;(0,Wm.extendObservable)(this,{_primitive:void 0},{_primitive:Wm.observable.ref}),this.disposers.push(()=>{this._primitive&&(i.primitives.remove(this._primitive),this._primitive=void 0)}),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._createProperties=["url","allowPicking","incrementallyLoadTextures","asynchronous"],this._updateProperties=["show","scale","minimumPixelSize","maximumScale","clampAnimations","debugShowBoundingVolume","debugWireframe","colorBlendAmount","luminanceAtZenith","gvolPosition","gvolRotation","gvolScale","specularEnvironmentMaps"],this._updateProperties2=["shadows","distanceDisplayCondition","color","colorBlendMode","silhouetteColor","silhouetteSize","heightReference","lightColor"],this._scratchCartesian=new Cesium.Cartesian3,this._scratchModelMatrix=new Cesium.Matrix4;const n=()=>{var e,t,i,n,r,o,s,a,l,u;this._primitive&&(Ww.Math.getModelMatrix(this.gvolPosition,this.gvolRotation,this.gvolScale,this._scratchModelMatrix),this._primitive.modelMatrix=this._scratchModelMatrix,this._updateProperties.forEach(e=>{this._primitive[e]=this[e]}),e=this._primitive,t=new Cesium.Cartesian3(.170455150831422,.163151083190219,.196966760289763),i=new Cesium.Cartesian3(-.066550267689383,-.022088055746048,.078835009246127),n=new Cesium.Cartesian3(.038364097478591,.045714300098753,.063498904606215),r=new Cesium.Cartesian3(-.01436536331281,-.026490613715151,-.05018940406602),o=new Cesium.Cartesian3(-.05153278691789,-.050777795729986,-.056449044453032),s=new Cesium.Cartesian3(.043454596136534,.046672590104157,.05753010764661),a=new Cesium.Cartesian3(-.00164046627411,.001286638231156,.007228908989616),l=new Cesium.Cartesian3(-.042260855700641,-.046394335094707,-.057562936365585),u=new Cesium.Cartesian3(-.004953478914091,-.000479681664876,.008508150106928),u0=u0||[t,i,n,r,o,s,a,l,u],e.specularEnvironmentMaps?e.sphericalHarmonicCoefficients=u0:e.sphericalHarmonicCoefficients=void 0)};c0=c0||{"ShadowMode.CAST_ONLY":Cesium.ShadowMode.CAST_ONLY,"ShadowMode.DISABLED":Cesium.ShadowMode.DISABLED,"ShadowMode.ENABLED":Cesium.ShadowMode.ENABLED,"ShadowMode.RECEIVE_ONLY":Cesium.ShadowMode.RECEIVE_ONLY},h0=h0||{"ColorBlendMode.HIGHLIGHT":Cesium.ColorBlendMode.HIGHLIGHT,"ColorBlendMode.REPLACE":Cesium.ColorBlendMode.REPLACE,"ColorBlendMode.MIX":Cesium.ColorBlendMode.MIX},p0=p0||{"HeightReference.NONE":Cesium.HeightReference.NONE,"HeightReference.CLAMP_TO_GROUND":Cesium.HeightReference.CLAMP_TO_GROUND,"HeightReference.RELATIVE_TO_GROUND":Cesium.HeightReference.RELATIVE_TO_GROUND};const r=()=>{this._primitive&&(this._primitive.shadows=c0[this.shadows],this.distanceDisplayCondition?(!this._primitive.distanceDisplayCondition&&(this._primitive.distanceDisplayCondition=new Cesium.DistanceDisplayCondition),this._primitive.distanceDisplayCondition.near=this.distanceDisplayCondition[0],this._primitive.distanceDisplayCondition.far=this.distanceDisplayCondition[1]):this._primitive.distanceDisplayCondition=void 0,this._primitive.color.xbsjFromArray(...this.color),this._primitive.colorBlendMode=h0[this.colorBlendMode],this._primitive.silhouetteColor.xbsjFromArray(...this.silhouetteColor),this._primitive.silhouetteSize=this.silhouetteSize,this._primitive.heightReference=p0[this.heightReference],this.lightColor&&Array.isArray(this.lightColor)&&3===this.lightColor.length?(this._primitive.lightColor=this._scratchLightColor,this._primitive.lightColor.x=this.lightColor[0],this._primitive.lightColor.y=this.lightColor[1],this._primitive.lightColor.z=this.lightColor[2]):this._primitive.lightColor=void 0)};this._color=new Cesium.Color(1,1,1,1),this._silhouetteColor=new Cesium.Color(1,0,0,1),this._scratchLightColor=new Cesium.Cartesian3(1,1,1),this.disposers.push((0,Wm.reaction)(()=>{const e={};return this._createProperties.forEach(t=>{e[t]=this[t]}),e},e=>{this._primitive&&(this._earth.czm.scene.primitives.remove(this._primitive),this._primitive=void 0),e.scene=this._earth.czm.scene,this._primitive=this._earth.czm.scene.primitives.add(Cesium.Model.fromGltf(e)),this._primitive.id=this,this._primitive.color=this._color,this._primitive.silhouetteColor=this._silhouetteColor,n(),r()})),this.disposers.push((0,Wm.reaction)(()=>{const e={};return this._updateProperties.forEach(t=>{e[t]=this[t]}),JSON.stringify(e)},()=>{n()})),this.disposers.push((0,Wm.reaction)(()=>{const e={};return this._updateProperties2.forEach(t=>{e[t]=this[t]}),JSON.stringify(e)},()=>{r()})),this.disposers.push((0,Xx.p6)(this._earth,this,{positionProperty:"gvolPosition"})),this.disposers.push((0,Xx.Me)(this._earth,this,{positionPickingProperty:"creating",positionProperty:"gvolPosition"})),this.disposers.push((0,Xx.Wl)(this._earth,this,{positionProperty:"gvolPosition",rotationProperty:"gvolRotation"})),this.disposers.push((0,Xx.O9)(this._earth,this,{cameraAttachedFunc:function(e){const t=[],i=()=>{const t=this;for(let i=0;i<3;++i)e.position[i]=t.gvolPosition[i]+t.cameraAttachedOffsetPosition[i],e.rotation[i]=t.gvolRotation[i]+t.cameraAttachedOffsetRotation[i];e.viewDistance=t.viewDistance};return i(),t.push((0,Wm.reaction)(()=>({position:[...this.gvolPosition],rotation:[...this.gvolRotation],cameraAttachedOffsetPosition:[...this.cameraAttachedOffsetPosition],cameraAttachedOffsetRotation:[...this.cameraAttachedOffsetRotation],viewDistance:this.viewDistance}),i)),this._earth.camera.tracking.isCameraLike=!1,()=>{t.forEach(e=>e()),t.length=0}}})),(0,Wm.extendObservable)(this,{_ready:!1,get ready(){return this._ready},set ready(e){this._ready!==e&&(this._ready=e)}},{ready:Wm.computed}),this._readyDisposer=void 0,this.disposers.push(()=>this._readyDisposer=this._readyDisposer&&this._readyDisposer()),this.disposers.push((0,Wm.reaction)(()=>this._primitive,e=>{this._readyDisposer=this._readyDisposer&&this._readyDisposer(),this.ready=!1,e?this._readyDisposer=(()=>{let t=!0;return e.readyPromise.then(()=>{t&&(this.ready=!0),this._readyDisposer=this._readyDisposer&&this._readyDisposer()}),()=>t=!1})():this.ready=!1})),this.disposers.push(zm.A.registerPathAttachedGuid(this,{positionProperty:"gvolPosition",rotationProperty:"gvolRotation"}));{(0,Wm.extendObservable)(this,{_selfClicked:!1,_slefHovered:!1});const e=this._earth;this.disposers.push((0,Wm.reaction)(()=>({sc:this._selfClicked,sh:this._slefHovered}),()=>{this._selfClicked?(this.silhouetteColor.splice(0,4,...e.interaction.picking.clickedColor),this.silhouetteSize=3):this._slefHovered?(this.silhouetteColor.splice(0,4,...e.interaction.picking.hoveredColor),this.silhouetteSize=3):(this.silhouetteColor.splice(0,4,0,0,0,1),this.silhouetteSize=0)}))}}flyTo(){const e=this._earth.czm.scene.camera;if(e.cancelFlight(),this._flyToDisposer)throw new Error("_flyToDisposer should be undefined!");e._currentFlight={cancelTween:()=>{this._flyToDisposer=this._flyToDisposer&&this._flyToDisposer()}},this.ready?this._earth.camera.flyTo(this.gvolPosition,2*this._primitive.boundingSphere.radius):this._flyToDisposer=(0,Wm.reaction)(()=>this.ready,e=>{if(e){if(!this._primitive||!this._primitive.ready)throw new Error("this._primitive.ready should be true!");this._earth.camera.flyTo(this.gvolPosition,2*this._primitive.boundingSphere.radius),this._flyToDisposer=this._flyToDisposer&&this._flyToDisposer()}}),this._flyToOnlyOnce||(this._flyToOnlyOnce=!0,this.disposers.push(()=>{this._flyToDisposer=this._flyToDisposer&&this._flyToDisposer()}))}nativeModel(){return this._primitive}onclick(e){this._selfClicked=!0}onclickout(){this._selfClicked=!1}onmouseover(e){this._slefHovered=!0}onmouseout(){this._slefHovered=!1}}d0.ShadowMode={CAST_ONLY:"ShadowMode.CAST_ONLY",DISABLED:"ShadowMode.DISABLED",ENABLED:"ShadowMode.ENABLED",RECEIVE_ONLY:"ShadowMode.RECEIVE_ONLY"},d0.ColorBlendMode={HIGHLIGHT:"ColorBlendMode.HIGHLIGHT",REPLACE:"ColorBlendMode.REPLACE",MIX:"ColorBlendMode.MIX"},d0.HeightReference={NONE:"HeightReference.NONE",CLAMP_TO_GROUND:"HeightReference.CLAMP_TO_GROUND",RELATIVE_TO_GROUND:"HeightReference.RELATIVE_TO_GROUND"};const f0={title:"Model Property",type:"object",properties:{url:{type:"string",title:"资源URL路径",default:"",description:"资源URL路径"},basePath:{type:"string",title:"The base path that paths in the glTF JSON are relative to.",default:"",description:"The base path that paths in the glTF JSON are relative to."},show:{type:"boolean",title:"是否在三维窗口中显示",default:!0,description:"是否在三维窗口中显示"},scale:{type:"number",title:"A uniform scale applied to this model.",default:1,description:"A uniform scale applied to this model."},minimumPixelSize:{type:"number",title:"The approximate minimum pixel size of the model regardless of zoom.",default:0,description:"The approximate minimum pixel size of the model regardless of zoom."},maximumScale:{type:["number","undefined"],title:"The maximum scale for the model.",default:void 0,description:"The maximum scale for the model."},allowPicking:{type:"boolean",title:"When <code>true</code>, each glTF mesh and primitive is pickable with {@link Scene#pick}.",default:!0,description:"When <code>true</code>, each glTF mesh and primitive is pickable with {@link Scene#pick}."},incrementallyLoadTextures:{type:"boolean",default:!0,description:"Determine if textures may continue to stream in after the model is loaded."},asynchronous:{type:"boolean",default:!0,description:"Determines if model WebGL resource creation will be spread out over several frames or block until completion once all glTF files are loaded."},clampAnimations:{type:"boolean",default:!0,description:"Determines if the model's animations should hold a pose over frames where no keyframes are specified."},shadows:{type:"string",default:"ShadowMode.ENABLED",description:"Determines whether the model casts or receives shadows from each light source."},debugShowBoundingVolume:{type:"boolean",default:!0,description:"For debugging only. Draws the bounding sphere for each {@link DrawCommand} in the model."},debugWireframe:{type:"boolean",default:!1,description:"For debugging only. Draws the model in wireframe."},heightReference:{type:"string",default:"HeightReference.NONE",description:"Determines how the model is drawn relative to terrain."},distanceDisplayCondition:{type:["array","undefined"],default:"undefined",description:" 两个元素的数组,分别表示near和far"},color:{type:"array",items:{type:"number"},minItems:4,maxItems:4,default:[1,1,1,1],description:"颜色叠加"},colorBlendMode:{type:"string",default:"ColorBlendMode.HIGHLIGHT",description:"Defines how the color blends with the mode. "},colorBlendAmount:{type:"number",default:.5,description:"colorBlendAmount"},silhouetteColor:{type:"array",items:{type:"number"},minItems:4,maxItems:4,default:[1,0,0,1],description:"silhouetteColor"},silhouetteSize:{type:"number",default:0,description:"The size of the silhouette in pixels."},luminanceAtZenith:{type:"number",default:.2,description:"材质底色"},specularEnvironmentMaps:{type:["string","undefined"],default:void 0,description:"环境贴图"},gvolPosition:{type:"array",items:{type:"number"},minItems:3,maxItems:3,default:[0,0,0],description:"位置 [经度, 纬度, 高度]"},gvolRotation:{type:"array",items:{type:"number"},minItems:3,maxItems:3,default:[0,0,0],description:"姿态数组 [偏航角、俯仰角、翻转角]"},gvolScale:{type:"array",items:{type:"number"},minItems:3,maxItems:3,default:[1,1,1],description:"姿态数组 [偏航角、俯仰角、翻转角]"},attachedPathGuid:{type:"string",default:"",description:"绑定的路径的guid"},cameraAttachedOffsetPosition:{type:"array",items:{type:"number"},minItems:3,maxItems:3,default:[0,0,0],description:"位置偏移[经度偏移量, 纬度偏移量,高度偏移量]"},cameraAttachedOffsetRotation:{type:"array",items:{type:"number"},minItems:3,maxItems:3,default:[0,-Math.PI/3,0],description:"相机绑定后的姿态偏移"},viewDistance:{type:"number",default:50,description:"相机飞入时的视距设定"}}};d0.gvolSchema=f0;d0.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url","basePath","show","scale","minimumPixelSize","maximumScale","allowPicking","incrementallyLoadTextures","asynchronous","clampAnimations","shadows","debugShowBoundingVolume","debugWireframe","heightReference","distanceDisplayCondition","color","colorBlendMode","colorBlendAmount","silhouetteColor","silhouetteSize","luminanceAtZenith","specularEnvironmentMaps","gvolPosition","gvolRotation","gvolScale","attachedPathGuid","cameraAttachedOffsetPosition","cameraAttachedOffsetRotation","viewDistance"]}],d0.defaultOptions=l0,d0.gvolEnvirement=Ql.A.getScriptBaseUrl("geovisearth.sdk")+"images/envirment-003.ktx",Cu.A.registerType(d0,"Model2");const m0=d0,g0={videoUrl:"",maskUrl:"",position:[0,0,0],rotation:[0,0,0],fovH:Math.PI/3,fovV:Math.PI/6,near:1,far:1e4,showHelper:!0,show:!0};let y0,_0;function A0({position:e,heading:t,pitch:i,roll:n},r){y0=y0||new Cesium.Quaternion,_0=_0||new Cesium.Matrix3;const o=Cesium.Transforms.eastNorthUpToFixedFrame(e,void 0,r);var s=Cesium.Matrix3.fromRotationX(Cesium.Math.PI_OVER_TWO,_0);return Cesium.Matrix4.multiplyByMatrix3(o,s,o),s=Cesium.Matrix3.fromRotationY(-t,_0),Cesium.Matrix4.multiplyByMatrix3(o,s,o),s=Cesium.Matrix3.fromRotationX(i,_0),Cesium.Matrix4.multiplyByMatrix3(o,s,o),s=Cesium.Matrix3.fromRotationZ(-n,_0),Cesium.Matrix4.multiplyByMatrix3(o,s,o),o}class v0 extends rg.A{constructor(e,t){super(e,t),(0,Wm.extendObservable)(this,{_videoElement:void 0,twoPostionsEditing:!1},{_videoElement:Wm.observable.ref}),this._cameraVideo=void 0,this._videoElement=void 0,this._disposers=this._disposers||[],this._disposers.push((0,ng.A)(this,"enabled",this,"show")),this._settingVideoElement=void 0,this._disposers.push(()=>{this._settingVideoElement&&(this._settingVideoElement.unsubscribe(),this._settingVideoElement=void 0)}),(0,Wm.extendObservable)(this,{_imageUrl:""});const i=e=>{this._settingVideoElement&&(this._settingVideoElement.unsubscribe(),this._settingVideoElement=void 0),this._videoElement=this._videoElement&&yS(this._videoElement),this._imageUrl="",e.endsWith(".jpg")||e.endsWith(".png")||e.startsWith("data:image")?this._imageUrl=e:[".ogg",".webm",".mp4",".m3u8",".flv"].some(t=>e.endsWith(t))&&(this._settingVideoElement=rxjs.from(gS(e)).subscribe(e=>{this._videoElement=e}))};this._disposers.push((0,Wm.reaction)(()=>this.videoUrl,()=>{i(this.videoUrl)},{fireImmediately:!0})),this._disposers.push((0,Wm.reaction)(()=>({_videoElement:this._videoElement,_imageUrl:this._imageUrl,position:[...this.position],rotation:[...this.rotation],fovH:this.fovH,fovV:this.fovV,near:this.near,far:this.far,showHelper:this.showHelper,show:this.show}),()=>{if(this._cameraVideo){A0({position:Cesium.Cartesian3.fromRadians(this.position[0],this.position[1],this.position[2]),heading:this.rotation[0],pitch:this.rotation[1],roll:this.rotation[2]},this._cameraVideo.inverseViewMatrix);const e=Math.tan(.5*this.fovH)/Math.tan(.5*this.fovV),t=this.fovH>this.fovV?this.fovH:this.fovV;this._cameraVideo.frustum.fov=t,this._cameraVideo.frustum.aspectRatio=e,this._cameraVideo.frustum.near=this.near,this._cameraVideo.frustum.far=this.far,this._cameraVideo.videoElement=this._videoElement||this._imageUrl,this._cameraVideo.showHelperPrimitive=this.showHelper,this._cameraVideo.show=this.show,this._cameraVideo.alphaImage=this.maskUrl}else{if(!this._videoElement&&!this._imageUrl)return;var e=A0({position:Cesium.Cartesian3.fromRadians(this.position[0],this.position[1],this.position[2]),heading:this.rotation[0],pitch:this.rotation[1],roll:this.rotation[2]});const i=Math.tan(.5*this.fovH)/Math.tan(.5*this.fovV),n=this.fovH>this.fovV?this.fovH:this.fovV;var t=new Cesium.PerspectiveFrustum({fov:n,aspectRatio:i,near:this.near,far:this.far});const r=new Cesium.XbsjCameraVideo({inverseViewMatrix:e,frustum:t,videoElement:this._videoElement||this._imageUrl,showHelperPrimitive:this.showHelper});this._earth.czm.scene.primitives.add(r),this._cameraVideo=r,this._cameraVideo._primitive.classificationType=2,this._cameraVideo.show=this.show,this._cameraVideo.alphaImage=this.maskUrl}})),this._disposers.push((0,Wm.autorun)(()=>{this.twoPostionsEditing=this._earth.interaction.directionCameraBinding.target===this})),this._disposers.push((0,Wm.reaction)(()=>this.twoPostionsEditing,()=>{this.twoPostionsEditing||this._earth.interaction.directionCameraBinding.target!==this?this.twoPostionsEditing&&(this._earth.interaction.directionCameraBinding.target=this):this._earth.interaction.directionCameraBinding.target=void 0},{fireImmediately:!0})),this._disposers.push((0,Xx.p6)(this._earth,this)),this._disposers.push((0,Xx.Wl)(this._earth,this)),this._disposers.push((0,Wm.reaction)(()=>this.maskUrl,()=>{this._cameraVideo&&this._cameraVideo.alphaImage!==this.maskUrl&&(this._cameraVideo.alphaImage=this.maskUrl)}))}get isCameraLike(){return!0}get videoElement(){return this._videoElement}setFovAndAspectRatioForCesium(e,t){t>1?(this.fovH=e,this.fovV=2*Math.atan(Math.tan(.5*fovH)/t)):(this.fovV=e,this.fovH=2*Math.atan(t*Math.tan(.5*fovV)))}setFovAndAspectRatioForWebGL(e,t){this.fovV=e,this.fovH=2*Math.atan(t*Math.tan(.5*fovV))}get fov(){return this.fovH>this.fovV?this.fovH:this.fovV}get aspectRatio(){return Math.tan(.5*this.fovH)/Math.tan(.5*this.fovV)}flyTo(){this._earth.czm.scene.camera.flyTo({destination:Cesium.Cartesian3.fromRadians(this.position[0],this.position[1],this.position[2]),orientation:{heading:this.rotation[0],pitch:this.rotation[1],roll:this.rotation[2]}})}setPositionWithCurrentCamera(){const e=this._earth.czm.scene.camera,t=e.positionCartographic;this.position=[t.longitude,t.latitude,t.height],this.rotation=[e.heading,e.pitch,e.roll]}destroy(){return this._disposers&&this._disposers.forEach(e=>e()),this._disposers.length=0,this._videoElement=this._videoElement&&yS(this._videoElement),this._cameraVideo&&(this._earth.czm.scene.primitives.remove(this._cameraVideo),this._cameraVideo=void 0),super.destroy()}}v0.defaultOptions=g0,Cu.A.registerType(v0,"CameraVideo");const C0=v0,b0={position:[0,0,0],rotation:[0,0,0],fovH:Math.PI/3,fovV:Math.PI/6,near:5,far:200,show:!0};class w0 extends rg.A{constructor(e,t,i){super(e,i),t&&"object"==typeof t&&!Array.isArray(t)&&this.gvolFromJSON(t),(0,Wm.extendObservable)(this,{twoPostionsEditing:!1}),this._viewshed=new Cesium.XbsjViewshed(e.czm.scene),this._earth.czm.scene.primitives.add(this._viewshed),this._disposers=this._disposers||[],this._disposers.push((0,ng.A)(this,"enabled",this,"show")),this._disposers.push((0,Wm.autorun)(()=>{this._viewshed.position=Cesium.Cartesian3.fromRadians(this.position[0],this.position[1],this.position[2]),this._viewshed.heading=this.rotation[0],this._viewshed.pitch=this.rotation[1],this._viewshed.roll=this.rotation[2],this._viewshed.fovH=this.fovH,this._viewshed.fovV=this.fovV,this._viewshed.near=this.near,this._viewshed.far=this.far,this._viewshed.enabled=this.show})),this._disposers.push((0,Wm.autorun)(()=>{this.twoPostionsEditing=this._earth.interaction.directionCameraBinding.target===this})),this._disposers.push((0,Wm.reaction)(()=>this.twoPostionsEditing,()=>{this.twoPostionsEditing||this._earth.interaction.directionCameraBinding.target!==this?this.twoPostionsEditing&&(this._earth.interaction.directionCameraBinding.target=this):this._earth.interaction.directionCameraBinding.target=void 0},{fireImmediately:!0})),this._disposers.push((0,Xx.p6)(this._earth,this)),this._disposers.push((0,Xx.Wl)(this._earth,this))}get isCameraLike(){return!0}flyTo(){this._earth.czm.scene.camera.flyTo({destination:Cesium.Cartesian3.fromRadians(this.position[0],this.position[1],this.position[2]),orientation:{heading:this.rotation[0],pitch:this.rotation[1],roll:this.rotation[2]}})}setPositionWithCurrentCamera(){const e=this._earth.czm.scene.camera,t=e.positionCartographic;(0,Wm.runInAction)(()=>{this.position=[t.longitude,t.latitude,t.height],this.rotation=[e.heading,e.pitch,e.roll]})}destroy(){return this._disposers.forEach(e=>e()),this._disposers.length=0,this._earth.czm.scene.primitives.remove(this._viewshed),this._viewshed=void 0,super.destroy()}}w0.defaultOptions=b0,Cu.A.registerType(w0,"Viewshed");const x0=w0;var S0=__webpack_require__(4354),M0=__webpack_require__(6763),P0=function(){return P0=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},P0.apply(this,arguments)},E0=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},L0=function(){function e(e,t){this.camera=null,this.cameraPrimitive=null,this.shadowMap=null,this.customPrimitive=null,this.postProcessStage=null,this.isDestroyed=!1,this.subFrustums=[],this.isMultiFrustumMode=!1,this._enabled=!0,this.viewer=e,this.scene=e.scene,this.config=P0({visibleColor:S0.Color.fromCssColorString("#00ff00").withAlpha(.5),hiddenColor:S0.Color.fromCssColorString("#ff0000").withAlpha(.4),showFrustum:!1,minHeight:2,texelSnap:!0},t),this.initialize()}return e.prototype.initialize=function(){try{this.scene.globe.shadows=S0.ShadowMode.ENABLED,this.scene.globe.depthTestAgainstTerrain=!0,this.ensureBuildingShadows();var e=this.config.hfov;e>170?(this.isMultiFrustumMode=!0,this.initializeMultiFrustum()):this.initializeSingleFrustum()}catch(e){M0.error("ViewshedAnalysis 初始化失败",e),this.destroy()}},e.prototype.initializeSingleFrustum=function(){this.camera=new S0.Camera(this.scene);var e=S0.Cartographic.fromCartesian(this.config.position);e.height=Math.max(e.height,this.config.minHeight||2);var t=S0.Cartesian3.fromRadians(e.longitude,e.latitude,e.height);this.camera.setView({destination:t,orientation:{heading:this.config.heading,pitch:this.config.pitch,roll:0}});var i=S0.Math.toRadians(this.config.hfov),n=S0.Math.toRadians(this.config.vfov),r=this.config.hfov/this.config.vfov,o=r>=1?i:n,s=this.config.distance,a=this.config.near||this.calculateNear(s);this.camera.frustum=new S0.PerspectiveFrustum({fov:o,aspectRatio:r,near:a,far:s});var l=this.calculateShadowMapSize(s),u=this.scene.context;this.shadowMap=new S0.ShadowMap({lightCamera:this.camera,context:u,isSpotLight:!0,cascadesEnabled:!1,maximumDistance:s,darkness:1,size:l}),this.config.texelSnap&&this.snapCameraToTexel();var c=this.shadowMap,h=this;this.customPrimitive={isDestroyed:function(){return!1},update:function(e){h._enabled&&e.shadowMaps.push(c)}},this.scene.primitives.add(this.customPrimitive),this.config.showFrustum&&(this.cameraPrimitive=new S0.DebugCameraPrimitive({camera:this.camera,color:S0.Color.GREEN.withAlpha(.3)}),this.scene.primitives.add(this.cameraPrimitive)),this.createPostProcessStage()},e.prototype.initializeMultiFrustum=function(){var e=this,t=this.config.hfov,i=this.config.vfov,n=this.config.distance,r=Math.ceil(t/90),o=t/r,s=o+2;M0.log("多视锥体模式: hfov=".concat(t,"°, 拆分为 ").concat(r," 个子视锥体"));var a=S0.Cartographic.fromCartesian(this.config.position);a.height=Math.max(a.height,this.config.minHeight||2);for(var l=S0.Cartesian3.fromRadians(a.longitude,a.latitude,a.height),u=this.config.near||this.calculateNear(n),c=this.calculateShadowMapSize(n),h=-t/2+o/2,p=function(t){var a=h+t*o,p=S0.Math.toDegrees(d.config.heading)+a,f=new S0.Camera(d.scene);f.setView({destination:l,orientation:{heading:S0.Math.toRadians(p),pitch:d.config.pitch,roll:0}});var m=s/i,g=S0.Math.toRadians(m>=1?s:i);f.frustum=new S0.PerspectiveFrustum({fov:g,aspectRatio:m,near:u,far:n});var y=new S0.ShadowMap({lightCamera:f,isSpotLight:!0,cascadesEnabled:!1,maximumDistance:n,darkness:1,size:c}),_=function(){return e.createSubPostProcessStage(y,t)},A={camera:f,shadowMap:y,customPrimitive:null,cameraPrimitive:void 0,postProcessStage:null,postProcessStageCreator:_,headingOffset:a,enabled:!0},v={isDestroyed:function(){return!1},update:function(e){A.enabled&&e.shadowMaps.push(y)},show:!0};if(d.scene.primitives.add(v),A.customPrimitive=v,d.config.showFrustum){var C=new S0.DebugCameraPrimitive({camera:f,color:S0.Color.fromHsl(t/r,1,.5,.3)});d.scene.primitives.add(C),A.cameraPrimitive=C}var b=_();A.postProcessStage=b,d.subFrustums.push(A)},d=this,f=0;f<r;f++)p(f)},e.prototype.calculateNear=function(e){return e<=100?.5:e<=500?1:e<=1e3?2:e<=2e3?5:e<=5e3?10:e<=1e4?20:50},e.prototype.calculateShadowMapSize=function(e){return e<=1e3?2048:e<=3e3?3072:4096},e.prototype.ensureBuildingShadows=function(){var e,t,i=0,n=0;null===(e=this.scene.primitives._primitives)||void 0===e||e.forEach(function(e){e instanceof S0.Cesium3DTileset?e.shadows!==S0.ShadowMode.CAST_ONLY&&e.shadows!==S0.ShadowMode.ENABLED&&(e.shadows=S0.ShadowMode.CAST_ONLY,i++):e instanceof S0.Model?e.shadows!==S0.ShadowMode.DISABLED&&(e.shadows=S0.ShadowMode.DISABLED,n++):void 0!==e.shadows&&e.shadows!==S0.ShadowMode.DISABLED&&(e.shadows=S0.ShadowMode.DISABLED,n++)});for(var r=this.viewer.entities.values,o=0;o<r.length;o++){var s=r[o];if(s.model){var a=s.model;(null===(t=a.shadows)||void 0===t?void 0:t.getValue(S0.JulianDate.now()))!==S0.ShadowMode.DISABLED&&(a.shadows=new S0.ConstantProperty(S0.ShadowMode.DISABLED),n++)}}M0.log("3D Tiles 启用阴影: ".concat(i,", 其他对象禁用阴影: ").concat(n))},e.prototype.snapCameraToTexel=function(){if(this.camera&&this.shadowMap){var e=this.shadowMap._textureSize.x,t=this.config.distance/e,i=this.camera.position,n=new S0.Cartesian3(Math.round(i.x/t)*t,Math.round(i.y/t)*t,Math.round(i.z/t)*t);this.camera.position=n}},e.prototype.createPostProcessStage=function(){var e=this,t=new S0.Cartesian2,i=this.config.distance,n={shadowMap_texture:function(){return e.shadowMap._shadowMapTexture},shadowMap_matrix:function(){return e.shadowMap._shadowMapMatrix},shadowMap_lightPositionEC:function(){return e.shadowMap._lightPositionEC},shadowMap_lightDirectionEC:function(){return e.shadowMap._lightDirectionEC},shadowMap_texelSizeDepthBiasAndNormalShadingSmooth:function(){return t.x=1/e.shadowMap._textureSize.x,t.y=1/e.shadowMap._textureSize.y,S0.Cartesian4.fromElements(t.x,t.y,0,.1)},shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness:function(){return S0.Cartesian4.fromElements(0,e.shadowMap._distance,e.shadowMap.maximumDistance,.35)},viewshed_biasParams:function(){var e,t;return i<=100?(e=3e-4,t=5):i<=500?(e=5e-4,t=8):i<=1e3?(e=8e-4,t=10):i<=2e3?(e=.0015,t=12):i<=5e3?(e=.003,t=15):i<=1e4?(e=.005,t=18):(e=.008,t=20),S0.Cartesian4.fromElements(e,t,i,0)},viewshed_visibleColor:function(){return e.config.visibleColor},viewshed_hiddenColor:function(){return e.config.hiddenColor}};this.postProcessStage=this.scene.postProcessStages.add(new S0.PostProcessStage({fragmentShader:"\nuniform sampler2D colorTexture;\nuniform sampler2D depthTexture;\nuniform sampler2D shadowMap_texture;\nuniform mat4 shadowMap_matrix;\nuniform vec4 shadowMap_lightPositionEC;\nuniform vec4 shadowMap_lightDirectionEC;\nuniform vec4 shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness;\nuniform vec4 shadowMap_texelSizeDepthBiasAndNormalShadingSmooth;\nuniform vec4 viewshed_biasParams;\nuniform vec4 viewshed_visibleColor;\nuniform vec4 viewshed_hiddenColor;\n\nin vec2 v_textureCoordinates;\n\nvoid main() {\n out_FragColor = texture(colorTexture, v_textureCoordinates);\n float depth = czm_unpackDepth(texture(depthTexture, v_textureCoordinates));\n if (depth >= 1.0) return;\n\n vec4 posEC = czm_windowToEyeCoordinates(gl_FragCoord.xy, depth);\n posEC /= posEC.w;\n vec4 shadowPos = shadowMap_matrix * posEC;\n shadowPos /= shadowPos.w;\n\n if (any(lessThan(shadowPos.xyz, vec3(0.0))) ||\n any(greaterThan(shadowPos.xyz, vec3(1.0)))) {\n return;\n }\n\n float distToLight = length(posEC.xyz - shadowMap_lightPositionEC.xyz);\n float maxDist = shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness.z;\n if (distToLight > maxDist) return;\n\n float baseBias = viewshed_biasParams.x;\n float nearMult = viewshed_biasParams.y;\n float nearBoost = 1.0;\n if (distToLight < 50.0) {\n nearBoost = mix(nearMult, 1.0, distToLight / 50.0);\n }\n\n float depthFactor = shadowPos.z;\n float depthBias = baseBias * nearBoost * (1.0 + depthFactor * 0.5);\n float dx = abs(dFdx(shadowPos.z));\n float dy = abs(dFdy(shadowPos.z));\n float slope = max(dx, dy);\n float slopeBias = slope * 0.8;\n float finalBias = depthBias + slopeBias;\n float maxBiasLimit = baseBias * nearMult * 3.0;\n finalBias = min(finalBias, maxBiasLimit);\n\n float shadowDepth = shadowPos.z - finalBias;\n shadowDepth = clamp(shadowDepth, 0.0, 1.0);\n\n float visibility = czm_shadowDepthCompare(\n shadowMap_texture, shadowPos.xy, shadowDepth);\n\n // 避免重复混合\n float greenRatio = out_FragColor.g / max(max(out_FragColor.r, out_FragColor.b), 0.001);\n float redRatio = out_FragColor.r / max(max(out_FragColor.g, out_FragColor.b), 0.001);\n bool isAlreadyVisible = (greenRatio > 1.5 && out_FragColor.g > 0.3);\n bool isAlreadyHidden = (redRatio > 1.5 && out_FragColor.r > 0.3);\n\n if (isAlreadyVisible || isAlreadyHidden) return;\n\n if (visibility > 0.5) {\n out_FragColor = mix(out_FragColor, viewshed_visibleColor, viewshed_visibleColor.a);\n } else {\n out_FragColor = mix(out_FragColor, viewshed_hiddenColor, viewshed_hiddenColor.a);\n }\n}\n",uniforms:n}))},e.prototype.createSubPostProcessStage=function(e,t){var i=this,n=new S0.Cartesian2,r=this.config.distance,o={shadowMap_texture:function(){return e._shadowMapTexture},shadowMap_matrix:function(){return e._shadowMapMatrix},shadowMap_lightPositionEC:function(){return e._lightPositionEC},shadowMap_lightDirectionEC:function(){return e._lightDirectionEC},shadowMap_texelSizeDepthBiasAndNormalShadingSmooth:function(){return n.x=1/e._textureSize.x,n.y=1/e._textureSize.y,S0.Cartesian4.fromElements(n.x,n.y,0,.1)},shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness:function(){return S0.Cartesian4.fromElements(0,e._distance,e.maximumDistance,.35)},viewshed_biasParams:function(){var e,t;return r<=100?(e=3e-4,t=5):r<=500?(e=5e-4,t=8):r<=1e3?(e=8e-4,t=10):r<=2e3?(e=.0015,t=12):r<=5e3?(e=.003,t=15):r<=1e4?(e=.005,t=18):(e=.008,t=20),S0.Cartesian4.fromElements(e,t,r,0)},viewshed_visibleColor:function(){return i.config.visibleColor},viewshed_hiddenColor:function(){return i.config.hiddenColor}};return this.scene.postProcessStages.add(new S0.PostProcessStage({fragmentShader:"\nuniform sampler2D colorTexture;\nuniform sampler2D depthTexture;\nuniform sampler2D shadowMap_texture;\nuniform mat4 shadowMap_matrix;\nuniform vec4 shadowMap_lightPositionEC;\nuniform vec4 shadowMap_lightDirectionEC;\nuniform vec4 shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness;\nuniform vec4 shadowMap_texelSizeDepthBiasAndNormalShadingSmooth;\nuniform vec4 viewshed_biasParams;\nuniform vec4 viewshed_visibleColor;\nuniform vec4 viewshed_hiddenColor;\n\nin vec2 v_textureCoordinates;\n\nvoid main() {\n out_FragColor = texture(colorTexture, v_textureCoordinates);\n float depth = czm_unpackDepth(texture(depthTexture, v_textureCoordinates));\n if (depth >= 1.0) return;\n\n vec4 posEC = czm_windowToEyeCoordinates(gl_FragCoord.xy, depth);\n posEC /= posEC.w;\n vec4 shadowPos = shadowMap_matrix * posEC;\n shadowPos /= shadowPos.w;\n\n if (any(lessThan(shadowPos.xyz, vec3(0.0))) ||\n any(greaterThan(shadowPos.xyz, vec3(1.0)))) {\n return;\n }\n\n float distToLight = length(posEC.xyz - shadowMap_lightPositionEC.xyz);\n float maxDist = shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness.z;\n if (distToLight > maxDist) return;\n\n float baseBias = viewshed_biasParams.x;\n float nearMult = viewshed_biasParams.y;\n float nearBoost = 1.0;\n if (distToLight < 50.0) {\n nearBoost = mix(nearMult, 1.0, distToLight / 50.0);\n }\n\n float depthFactor = shadowPos.z;\n float depthBias = baseBias * nearBoost * (1.0 + depthFactor * 0.5);\n float dx = abs(dFdx(shadowPos.z));\n float dy = abs(dFdy(shadowPos.z));\n float slope = max(dx, dy);\n float slopeBias = slope * 0.8;\n float finalBias = depthBias + slopeBias;\n float maxBiasLimit = baseBias * nearMult * 3.0;\n finalBias = min(finalBias, maxBiasLimit);\n\n float shadowDepth = shadowPos.z - finalBias;\n shadowDepth = clamp(shadowDepth, 0.0, 1.0);\n\n float visibility = czm_shadowDepthCompare(\n shadowMap_texture, shadowPos.xy, shadowDepth);\n\n // 避免重复混合 - 多视锥体模式\n float greenRatio = out_FragColor.g / max(max(out_FragColor.r, out_FragColor.b), 0.001);\n float redRatio = out_FragColor.r / max(max(out_FragColor.g, out_FragColor.b), 0.001);\n bool isAlreadyVisible = (greenRatio > 1.5 && out_FragColor.g > 0.3);\n bool isAlreadyHidden = (redRatio > 1.5 && out_FragColor.r > 0.3);\n\n if (isAlreadyVisible || isAlreadyHidden) return;\n\n if (visibility > 0.5) {\n out_FragColor = mix(out_FragColor, viewshed_visibleColor, viewshed_visibleColor.a);\n } else {\n out_FragColor = mix(out_FragColor, viewshed_hiddenColor, viewshed_hiddenColor.a);\n }\n}\n",uniforms:o}))},e.prototype.show=function(){var e,t;if(this.isMultiFrustumMode&&this.subFrustums.length>0)try{for(var i=E0(this.subFrustums),n=i.next();!n.done;n=i.next()){var r=n.value;r.enabled=!0,r.customPrimitive&&(r.customPrimitive.show=!0),r.postProcessStage&&(r.postProcessStage.enabled=!0),r.cameraPrimitive&&(r.cameraPrimitive.show=!0)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}else this._enabled=!0,this.postProcessStage&&(this.postProcessStage.enabled=!0),this.cameraPrimitive&&(this.cameraPrimitive.show=!0)},e.prototype.hide=function(){var e,t;if(this.isMultiFrustumMode&&this.subFrustums.length>0)try{for(var i=E0(this.subFrustums),n=i.next();!n.done;n=i.next()){var r=n.value;r.enabled=!1,r.customPrimitive&&(r.customPrimitive.show=!1),r.postProcessStage&&(this.scene.postProcessStages.remove(r.postProcessStage),r.postProcessStage=null),r.cameraPrimitive&&(r.cameraPrimitive.show=!1)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}else this._enabled=!1,this.postProcessStage&&(this.postProcessStage.enabled=!1),this.cameraPrimitive&&(this.cameraPrimitive.show=!1)},e.prototype.updatePosition=function(e){var t,i;this.config.position=e;var n=S0.Cartographic.fromCartesian(e);n.height=Math.max(n.height,this.config.minHeight||2);var r=S0.Cartesian3.fromRadians(n.longitude,n.latitude,n.height);if(this.isMultiFrustumMode)try{for(var o=E0(this.subFrustums),s=o.next();!s.done;s=o.next()){s.value.camera.position=r}}catch(e){t={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}else this.camera&&(this.camera.position=r,this.config.texelSnap&&this.snapCameraToTexel())},e.prototype.updateOrientation=function(e,t){var i,n;if(this.config.heading=e,this.config.pitch=t,this.isMultiFrustumMode)try{for(var r=E0(this.subFrustums),o=r.next();!o.done;o=r.next()){var s=o.value,a=S0.Math.toDegrees(e)+s.headingOffset;s.camera.setView({destination:s.camera.position,orientation:{heading:S0.Math.toRadians(a),pitch:t,roll:0}})}}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}else this.camera&&this.camera.setView({destination:this.camera.position,orientation:{heading:e,pitch:t,roll:0}})},e.prototype.updateDistance=function(e){var t,i;if(this.config.distance=e,M0.warn("更新距离建议重新创建 ViewshedAnalysis"),this.isMultiFrustumMode)try{for(var n=E0(this.subFrustums),r=n.next();!r.done;r=n.next()){var o=r.value;o.camera.frustum.far=e,o.shadowMap.maximumDistance=e}}catch(e){t={error:e}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}else this.camera&&(this.camera.frustum.far=e,this.shadowMap&&(this.shadowMap.maximumDistance=e))},e.prototype.destroy=function(){var e,t;if(!this.isDestroyed){if(this.isMultiFrustumMode){try{for(var i=E0(this.subFrustums),n=i.next();!n.done;n=i.next()){var r=n.value;try{r.postProcessStage&&this.scene.postProcessStages.remove(r.postProcessStage)}catch(e){M0.warn("移除 postProcessStage 失败",e)}try{r.customPrimitive&&this.scene.primitives.remove(r.customPrimitive)}catch(e){M0.warn("移除 customPrimitive 失败",e)}try{r.cameraPrimitive&&this.scene.primitives.remove(r.cameraPrimitive)}catch(e){M0.warn("移除 cameraPrimitive 失败",e)}try{r.shadowMap&&"function"==typeof r.shadowMap.destroy&&r.shadowMap.destroy()}catch(e){M0.warn("销毁 shadowMap 失败",e)}}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}this.subFrustums=[]}else{try{this.postProcessStage&&this.scene.postProcessStages.remove(this.postProcessStage)}catch(e){M0.warn("移除 postProcessStage 失败",e)}try{this.customPrimitive&&this.scene.primitives.remove(this.customPrimitive)}catch(e){M0.warn("移除 customPrimitive 失败",e)}try{this.cameraPrimitive&&this.scene.primitives.remove(this.cameraPrimitive)}catch(e){M0.warn("移除 cameraPrimitive 失败",e)}try{this.shadowMap&&"function"==typeof this.shadowMap.destroy&&this.shadowMap.destroy()}catch(e){M0.warn("销毁 shadowMap 失败",e)}}this.isDestroyed=!0,M0.log("ViewshedAnalysis 已销毁")}},e}();const T0=L0;var O0=__webpack_require__(6763);let D0,B0;function I0(e,t,i,n,r,o){B0=B0||[0,0,0];const s=B0;let a,l,u=e+.01;return u>n?(u=e-.01,u>=0&&(Hw(u,i,r,s),a=s,l=t)):(Hw(u,i,r,s),a=t,l=s),a&&l&&(Ww.Math.hpr(a,l,o),o[0]+=.5*Math.PI),o}class R0 extends rg.A{constructor(e,t){super(e,t),this._polyline=new dx.A(e),this.disposers.push(()=>this._polyline.destroy()),this.disposers.push((0,ng.u)(this._polyline,"positions",this,"positions")),this.disposers.push((0,ng.u)(this._polyline,"loop",this,"loop")),this._polyline.show=this.enabled&&this.show&&this.showHelper,this.disposers.push((0,Wm.reaction)(()=>this.enabled&&this.show&&this.showHelper,e=>{this._polyline.show=e,this._polyline.showHelper=e})),this.disposers.push((0,Xx.hp)(this._earth,this,{polylineCreatingProperty:"creating"})),this.disposers.push((0,Xx.wJ)(this._earth,this,{polylineEditingProperty:"editing"})),this._cameras=[],this.disposers.push(()=>{this._cameras.forEach(e=>e.destroy()),this._cameras.length=0}),this.disposers.push((0,Wm.intercept)(this,"rotations",e=>("update"===e.type&&this.rotations.splice(0,this.rotations.length,...e.newValue),null))),this.disposers.push((0,Wm.intercept)(this.rotations,e=>{if("splice"===e.type){for(let t=e.index;t<e.index+e.removedCount;++t)this._cameras[t].destroy();const t=e.added.map(()=>new nM(this._earth));this._cameras.splice(e.index,e.removedCount,...t)}return e})),this.disposers.push((0,Wm.reaction)(()=>({positions:[...this.positions.map(e=>[...e])],rotations:[...this.rotations.map(e=>[...e])],show:this.enabled&&this.show&&this.showDirection}),()=>{if(this.positions.length!==this.rotations.length)return;for(let e=0;e<this.positions.length;++e){const t=this.rotations[e],i=this.positions[e];this._cameras[e].position=i,this._cameras[e].rotation=t}const e=this.enabled&&this.show&&this.showDirection;this._cameras.forEach(t=>t.show=e)})),this._curve=new dx.A(e),this._curve.arcType="NONE",this._curve.show=this.enabled&&this.show,this.disposers.push(()=>this._curve=this._curve&&this._curve.destroy()),this.disposers.push((0,Wm.reaction)(()=>this.enabled&&this.show,e=>{this._curve.show=e})),(0,Wm.extendObservable)(this,{currentD:0,currentShow:!1,_currentPosition:[0,0,0],_currentRotation:[0,0,0],get currentPosition(){return this._currentPosition},get currentRotation(){return this._currentRotation}},{currentPosition:Wm.computed,currentRotation:Wm.computed}),this.fromJsonFilterKeys.push("currentD","currentShow"),this.disposers.push((0,Wm.reaction)(()=>({positions:[...this.positions.map(e=>[...e])],slices:this.slices,loop:this.loop}),()=>{this.positions.length<3||Fw(this.positions,this.slices,this.loop,this._curve.positions)})),(0,Wm.extendObservable)(this,{_loopPositions:[],_loopRotations:[],_ds:[],get ds(){return this._ds},get length(){if(this.loop&&this._ds.length>2)return this._ds[this._ds.length-2];return 0===this._ds.length?0:this._ds[this._ds.length-1]}},{ds:Wm.computed,length:Wm.computed}),this.disposers.push((0,Wm.reaction)(()=>({cameraAttached:this.cameraAttached,loop:this.loop,positions:[...this.positions.map(e=>[...e])],rotations:[...this.rotations.map(e=>[...e])]}),()=>{this._updateCurrentPositionAndRotation()},{delay:100})),this.disposers.push((0,Wm.observe)(this,"currentD",()=>{this._updateCurrentPositionAndRotation()})),this._currentCamera=new nM(this._earth),this._currentPoints=new sx.A(this._earth),this.disposers.push(()=>{this._currentCamera=this._currentCamera&&this._currentCamera.destroy(),this._currentPoints=this._currentPoints&&this._currentPoints.destroy()}),this._currentPoints.points.push({});this.disposers.push((0,Wm.reaction)(()=>({show:this.enabled&&this.currentShow,position:[...this.currentPosition],rotation:[...this.currentRotation]}),()=>{const e=this.enabled&&this.currentShow;this._currentCamera.show=e,this._currentPoints.show=e,e&&(this._currentPoints.points[0].position=[...this.currentPosition],this._currentCamera.position=this.currentPosition,this._currentCamera.rotation=this.currentRotation)})),(0,Wm.extendObservable)(this,{_target:[0,0,0],_targetEnabled:!1}),this.disposers.push((0,Wm.reaction)(()=>({_targetEnabled:this._targetEnabled,_target:this._target&&[...this._target]||void 0}),()=>{this._targetEnabled&&this.targetTo(this._target)})),this.disposers.push((0,Xx.Me)(this._earth,this,{positionPickingProperty:"targetPicking",positionProperty:"_target"})),this.disposers.push((0,Wm.intercept)(this,"targetPicking",e=>(this._targetEnabled=e.newValue,e))),(0,Wm.extendObservable)(this,{_pathPlayingListener:void 0,get playing(){return!!this._pathPlayingListener},set playing(e){e&&!this._pathPlayingListener?this._play():!e&&this._pathPlayingListener&&(this._pathPlayingListener=this._pathPlayingListener&&this._pathPlayingListener())}},{_pathPlayingListener:Wm.observable.ref,playing:Wm.computed}),this.disposers.push(()=>{this.playing=!1}),this.disposers.push((0,Xx.O9)(this._earth,this,{cameraAttachedFunc:function(e){const t=[];return t.push((0,Wm.reaction)(()=>({currentPosition:[...this.currentPosition],currentRotation:[...this.currentRotation],cameraAttachedOffsetPosition:[...this.cameraAttachedOffsetPosition],cameraAttachedOffsetRotation:[...this.cameraAttachedOffsetRotation],viewDistance:this.viewDistance}),t=>{for(let i=0;i<3;++i)e.position[i]=t.currentPosition[i]+t.cameraAttachedOffsetPosition[i],e.rotation[i]=t.currentRotation[i]+t.cameraAttachedOffsetRotation[i];e.viewDistance=t.viewDistance})),this._earth.camera.tracking.isCameraLike=!0,()=>{t.forEach(e=>e()),t.length=0}}}))}_updateCurrentPositionAndRotation(){const e=this.currentD;this._ds=zw(this.positions,this.rotations,this.loop,this._ds,this._loopPositions,this._loopRotations);const t=this.loop?this._loopPositions:this.positions,i=this.loop?this._loopRotations:this.rotations;Hw(e,this._ds,t,this._currentPosition),this.alwaysAlongThePath?I0(e,this._currentPosition,this._ds,this.length,t,this._currentRotation):Qw(e,this._ds,i,this._currentRotation)}addHeight(e){this.positions.forEach(t=>t[2]+=e)}targetTo(e,t){this.positions.length===this.rotations.length&&this.positions.forEach((i,n)=>{t&&!~t.indexOf(n)||(Ww.Math.hpr(i,e,this.rotations[n]),this.rotations[n][0]+=Cesium.Math.PI_OVER_TWO)})}directionAlongThePath(e){var t=this.positions.length;for(let i=0;i<t;++i)if(!e||~e.indexOf(i)){const e=i+(this.loop?1:0),t=this.loop?this._loopPositions:this.positions;I0(this._ds[e],t[e],this._ds,this.length,t,this.rotations[i])}}directionLerpBetween(e=0,t=-1){if(-1===t&&(t=this.positions.length-1),t<e)return void O0.warn("directionLerpBetween 参数错误!");this.directionLerpBetween_scratchDs=[],zw(this.positions,this.rotations,!1,this.directionLerpBetween_scratchDs);const i=[this._ds[e],this._ds[t]],n=[this.rotations[e],this.rotations[t]];for(let r=e+1;r<t;++r)Qw(this._ds[r],i,n,this.rotations[r])}flyTo(){this._polyline.flyTo()}get isCameraLike(){return!0}currentCameraApply(){D0=D0||new Cesium.Cartesian3;const e=this._earth.czm.scene;Cesium.Cartesian3.fromRadians(...this.currentPosition,void 0,D0);e.camera.setView({destination:D0,orientation:{heading:this.currentRotation[0],pitch:this.currentRotation[1],roll:this.currentRotation[2]}})}_play(){const e=this._earth.czm.scene;this.currentSpeed>0&&this.currentD===this.length&&(this.currentD=0),this.currentSpeed<0&&0===this.currentD&&(this.currentD=this.length);let t=Date.now();this._pathPlayingListener=e.postUpdate.addEventListener((e,i)=>{let n=Date.now(),r=n-t;if(t=n,this.currentSpeed>0){const e=this.currentD+.001*r*this.currentSpeed;this.loopPlay?e>this.length?this.currentD=0:this.currentD=e:e>this.length?(this.currentD=this.length,this._pathPlayingListener=this._pathPlayingListener&&this._pathPlayingListener()):this.currentD=e}else{const e=this.currentD+.001*r*this.currentSpeed;this.loopPlay?this.currentD=e<0?this.length:e:e<0?(this.currentD=0,this._pathPlayingListener=this._pathPlayingListener&&this._pathPlayingListener()):this.currentD=e}})}destroy(){return super.destroy()}}R0.defaultOptions={positions:[],rotations:[],show:!0,showHelper:!1,showDirection:!1,loop:!1,slices:100,alwaysAlongThePath:!1,cameraAttachedOffsetPosition:[0,0,0],cameraAttachedOffsetRotation:[0,0,0],viewDistance:0,currentSpeed:50,loopPlay:!1};R0.gvolSchema={title:"Path Property",type:"object",properties:{show:{type:"boolean",title:"显示路径",default:"true",description:"显示路径"},showHelper:{type:"boolean",title:"辅助线框",default:"false",description:"辅助线框"},showDirection:{type:"boolean",title:"显示方向",default:"true",description:"显示方向"},loop:{type:"boolean",title:"是否为环线",default:"false",description:"是否为环线"},slices:{type:"number",title:"曲线分段数",default:"100",description:"曲线分段数"},alwaysAlongThePath:{type:"boolean",title:"始终沿着路径方向运动",default:"false",description:"始终沿着路径方向运动"},currentSpeed:{type:"number",title:"当前播放速度,单位为米",default:50,description:"当前播放速度,单位为米"},loopPlay:{type:"boolean",title:"是否循环播放",default:"false",description:"是否循环播放"}}};R0.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["show","showHelper","showDirection","loop","slices","alwaysAlongThePath"]}],Cu.A.registerType(R0,"Path");const N0=R0;const k0={};["airfield","airport","alcohol-shop","america-football","art-gallery","bakery","bank","bar","baseball","basketball","beer","bicycle","building","bus","cafe","camera","campsite","car","cemetery","cesium","chemist","cinema","circle","circle-stroked","city","clothing-store","college","commercial","cricket","cross","dam","danger","disability","dog-park","embassy","emergency-telephone","entrance","farm","fast-food","ferry","fire-station","fuel","garden","gift","golf","grocery","hairdresser","harbor","heart","heliport","hospital","ice-cream","industrial","land-use","laundry","library","lighthouse","lodging","logging","london-underground","marker","marker-stroked","minefield","mobilephone","monument","museum","music","oil-well","park","park2","parking","parking-garage","pharmacy","pitch","place-of-worship","playground","police","polling-place","post","prison","rail","rail-above","rail-light","rail-metro","rail-underground","religious-christian","religious-jewish","religious-muslim","restaurant","roadblock","rocket","school","scooter","shop","skiing","slaughterhouse","soccer","square","square-stroked","star","star-stroked","suitcase","swimming","telephone","tennis","theatre","toilets","town","town-hall","triangle","triangle-stroked","village","warehouse","waste-basket","water","wetland","zoo"].forEach(e=>k0[e]=e);const F0=k0;class H0{constructor(){const e=document.createElement("div");e.style.position="absolute",e.style.width="500px",e.style.height="400px",e._width=500,e._height=400,e.style.left="0px",e._left=0,e.style.bottom="0px",e._bottom=0,document.body.appendChild(e);const t=document.createElement("iframe");t.style.width="100%",t.style.height="100%",e.appendChild(t),e.style.display="none",e._show=!1,this._wrapper=e,this._iframe=t}setPosition(e,t){const i=this._wrapper;i._left===e&&i._bottom===t||(i.style.left=`${e}px`,i._left=e,i.style.bottom=`${t}px`,i._bottom=t)}set show(e){const t=this._wrapper;t._show!==!!e&&(t._show=!!e,t._show?t.style.display="block":t.style.display="none")}get show(){return this._wrapper._show}set uri(e){const t=this._iframe;t.src!==e&&(t.src=e)}get uri(){return this._iframe.src}set width(e){const t=this._wrapper;t.width!==e&&(t._width=e,t.style.width=`${e}px`)}get width(){return this._wrapper._width}set height(e){const t=this._wrapper;t.height!==e&&(t._height=e,t.style.height=`${e}px`)}get height(){return this._wrapper._height}destroy(){document.body.removeChild(this._wrapper),this._wrapper=void 0,this._iframe=void 0}}var Y0=__webpack_require__(6763);const j0={race:Ax};class U0 extends rg.A{constructor(e,t){super(e,t),zm.A.registerPosition(this),zm.A.registerProperty(this,"pinBuilder"),this.disposers.push((0,Xx.p6)(this._earth,this,{positionEditingProperty:"editing"})),this.disposers.push((0,Xx.Me)(this._earth,this,{positionPickingProperty:"creating"})),this.disposers.push((0,Xx.O9)(this._earth,this,{cameraAttachedFunc:function(e){const t=[];return t.push((0,SM.A)(e,"position",this,"position")),e.rotation=[0,-Math.PI/3,0],t.push((0,SM.A)(e,"viewDistance",this,"viewDistance")),this._earth.camera.tracking.isCameraLike=!1,t.push((0,Wm.reaction)(()=>({position:[...this.position],cameraAttachedOffsetPosition:[...this.cameraAttachedOffsetPosition],cameraAttachedOffsetRotation:[...this.cameraAttachedOffsetRotation],viewDistance:this.viewDistance}),t=>{for(let i=0;i<3;++i)e.position[i]=t.position[i]+t.cameraAttachedOffsetPosition[i],e.rotation[i]=t.cameraAttachedOffsetRotation[i];e.viewDistance=t.viewDistance})),this._earth.camera.tracking.isCameraLike=!1,()=>{t.forEach(e=>e()),t.length=0}}})),this._pinBuilder=this._earth._pinBuilder;const i=this._earth.czm.viewer;(0,Wm.extendObservable)(this,{_winPos:[0,0,0,0],get winPos(){return this._winPos}},{winPos:Wm.computed}),this._cartesian=new Cesium.Cartesian3,this._winCartesian=new Cesium.Cartesian2;const n=()=>{if(this.computingWinPos||this.imageUrl&&this.isDivImage)try{const t=this._earth.czm.scene,i=Cesium.Cartesian3.fromRadians(...this.position,void 0,this._cartesian);if(i){const n=t.cartesianToCanvasCoordinates(i,this._winCartesian);if(n){const t=e.czm.viewer.canvas.clientHeight,i=e.czm.viewer.canvas.clientWidth;this._winPos.splice(0,4,n.x,n.y,i-n.x,t-n.y)}}}catch(e){Y0.warn("Pin计算窗口坐标时有误")}};this.disposers.push((0,Wm.autorun)(()=>n())),this.disposers.push((()=>{const e=this._earth,t=j0.race(e.eventSource.contextSizeChanged,e.eventSource.cameraChanged).subscribe(n);return()=>{t.unsubscribe()}})()),this._position=Cesium.Cartesian3.fromDegrees(0,0,0),this._billboardEnt=i.entities.add({name:this.name,position:this._position,point:{pixelSize:5,color:Cesium.Color.YELLOW,outlineColor:Cesium.Color.BLACK,outlineWidth:1},billboard:{verticalOrigin:Cesium.VerticalOrigin.BOTTOM,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,scale:1},label:{text:"",style:Cesium.LabelStyle.FILL_AND_OUTLINE,font:"48px 楷体",fillColor:Cesium.Color.WHITE,outlineColor:Cesium.Color.BLACK,outlineWidth:6,scale:.5,disableDepthTestDistance:1e9,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,horizontalOrigin:Cesium.HorizontalOrigin.LEFT,pixelOffset:new Cesium.Cartesian2(20,-25),verticalOrigin:Cesium.VerticalOrigin.BOTTOM},polyline:{show:!1,positions:[]}}),this.disposers.push(()=>{i.entities.remove(this._billboardEnt)}),this._billboardEnt._gvolOwner=this,this.disposers.push(()=>{this._billboardEnt&&i.entities.remove(this._billboardEnt),this._billboardEnt=void 0}),this._fillColor=new Cesium.Color(...this.pinBuilder.fillColor),this._outlineColor=new Cesium.Color(...this.pinBuilder.outlineColor),this.disposers.push((0,Wm.autorun)(()=>{this._fillColor.xbsjFromArray(...this.pinBuilder.fillColor),this._outlineColor.xbsjFromArray(...this.pinBuilder.outlineColor),this.imageUrl&&this.isDivImage?this._billboardEnt.show=!1:(this.imageUrl&&!this.isDivImage?this._billboardEnt.billboard.image=this.imageUrl:this.pinBuilder.makiIcon?this._billboardEnt.billboard.image=this._pinBuilder.fromMakiIconId(this.pinBuilder.makiIcon,this._outlineColor,this.pinBuilder.size,this._fillColor):this.pinBuilder.text?this._billboardEnt.billboard.image=this._pinBuilder.fromText(this.pinBuilder.text,this._outlineColor,this.pinBuilder.size,this._fillColor):this._billboardEnt.billboard.image=this._pinBuilder.fromColor(this._outlineColor,this.pinBuilder.size,this._fillColor),this._billboardEnt.label.outlineColor=this._outlineColor,this._billboardEnt.label.fillColor=this._fillColor,this._billboardEnt.polyline.material=this._outlineColor)})),(0,Wm.extendObservable)(this,{_innerShow:!1});const r=()=>{const e=this.position.xepd(this._earth.camera.position);e>this.near&&e<this.far?this._innerShow=!0:this._innerShow=!1};r();const o=this._earth.czm.scene.camera;this.disposers.push((0,Wm.reaction)(()=>({cameraPos:[o.position.x,o.position.y,o.position.z],pos:[...this.position],near:this.near,far:this.far}),r));const s=()=>{if(this.imageUrl&&this.isDivImage){if(!this._divImage){const e=document.createElement("img");this.earth.czm.viewer.container.appendChild(e),this._divImage=e,this.disposers.push(()=>{this.earth.czm.viewer.container.removeChild(this._divImage),this._divImage=void 0})}this._currentImageUrl&&this._currentImageUrl===this.imageUrl||(this._divImage.src=this.imageUrl,this._currentImageUrl=this.imageUrl,this._divImage.style.position="absolute",this._divImage.style.left="0px",this._divImage.style.bottom="0px",this._divImage.style.pointerEvents="none",this._divImage.style.display="none",this._divImage.onload=()=>{Y0.log("divImage onload, width: ",this._divImage.naturalWidth),s()})}const e=!!this.imageUrl&&this.isDivImage&&this._divImage&&this.enabled&&this.show&&this._innerShow;if(this._divImage){const t=this._divImage;t.style.display=e?"block":"none",t.style.width!==this.scale*t.naturalWidth+"px"&&(t.style.width=this.scale*t.naturalWidth+"px"),t.style.height!==this.scale*t.naturalHeight+"px"&&(t.style.height=this.scale*t.naturalHeight+"px"),t.style.left!==`${this.winPos[0]}px`&&(t.style.left=this.winPos[0]-this.origin[0]*t.naturalWidth*this.scale+"px"),t.style.bottom!==`${this.winPos[3]}px`&&(t.style.bottom=this.winPos[3]-this.origin[1]*t.naturalHeight*this.scale+"px")}const t=this.enabled&&this.show&&!this.isDivImage;this._billboardEnt.show=t};s(),this.disposers.push((0,Wm.reaction)(()=>({enabled:this.enabled,show:this.show,isDivImage:this.isDivImage,_innerShow:this._innerShow,imageUrl:this.imageUrl,origin:[...this.origin],winPos:[...this.winPos]}),s)),this.disposers.push((0,Wm.autorun)(()=>{this._billboardEnt.label.text=this.pinBuilder.extText,this._billboardEnt.label.font=this.pinBuilder.extTextFont,this._billboardEnt.label.pixelOffset=new Cesium.Cartesian2(this.pinBuilder.extTextPixelOffset[0],this.pinBuilder.extTextPixelOffset[1])})),(0,Wm.extendObservable)(this,{_innerScale:1}),this.disposers.push((0,Wm.autorun)(()=>{this._billboardEnt.name=this.name,this._position=Cesium.Cartesian3.fromRadians(...this.position,void 0,this._position),this._billboardEnt.position=this._position;const e=this.scale*this._innerScale;this._billboardEnt.billboard.scale=e}));const a=()=>{const e=[Cesium.HorizontalOrigin.LEFT,Cesium.HorizontalOrigin.CENTER,Cesium.HorizontalOrigin.RIGHT],t=[Cesium.VerticalOrigin.BOTTOM,Cesium.VerticalOrigin.CENTER,Cesium.VerticalOrigin.TOP];this._billboardEnt.billboard.horizontalOrigin=e[2*this.origin[0]|0],this._billboardEnt.billboard.verticalOrigin=t[2*this.origin[1]|0]};a(),this.disposers.push((0,Wm.reaction)(()=>[...this.origin],a)),this._distanceDisplayCondition=new Cesium.DistanceDisplayCondition(this.near,this.far),this.disposers.push((0,Wm.autorun)(()=>{this.near<this.far?(this._distanceDisplayCondition.near=this.near,this._distanceDisplayCondition.far=this.far,this._billboardEnt.billboard.distanceDisplayCondition=this._distanceDisplayCondition,this._billboardEnt.point.distanceDisplayCondition=this._distanceDisplayCondition,this._billboardEnt.label.distanceDisplayCondition=this._distanceDisplayCondition):Y0.warn("this.near >= this.far, pin error!");const e=this.disableDepthTestDistance>1e7?1e7:this.disableDepthTestDistance;this._billboardEnt.billboard.disableDepthTestDistance=e,this._billboardEnt.point.disableDepthTestDistance=e,this._billboardEnt.label.disableDepthTestDistance=e})),this.disposers.push((0,Wm.autorun)(()=>{this._billboardEnt.point.show=this.enabled&&this.show&&this.pointShow}));const l=new Cesium.Cartesian3,u=new Cesium.Cartesian3,c=()=>{this._billboardEnt.polyline.show=this.enabled&&this.show&&this.lineShow;const e=Cesium.Cartesian3.fromRadians(this.position[0],this.position[1],this.position[2],void 0,l),t=Cesium.Cartesian3.fromRadians(this.position[0],this.position[1],this.position[2]-this.lineHeight,void 0,u);this._billboardEnt.polyline.positions=[e,t]};c(),this.disposers.push((0,Wm.reaction)(()=>({position:[...this.position],lineShow:this.lineShow,lineHieght:this.lineHeight}),c));{this._mutex=new LM,this.disposers.push(()=>this._mutex=this._mutex&&this._mutex.destroy());const e=LM.isStringValid,t=LM.setStringEmpty,i=[LM.createObj([this,"imageUrl",e,t]),LM.createObj([this.pinBuilder,"text",e,t]),LM.createObj([this.pinBuilder,"makiIcon",e,t])];this._mutex.mutexCollection=i}this.disposers.push(zm.A.registerPathAttachedGuid(this)),zm.A.registerProperty(this,"iframe"),this._popupIframe=void 0,this.disposers.push(()=>{this._popupIframe=this._popupIframe&&this._popupIframe.destroy()}),this.disposers.push((0,Wm.reaction)(()=>this.iframe.uri,()=>{""===this.iframe.uri?this._popupIframe&&(this._popupIframe.show=!1,this._popupIframe.uri=""):(this._createPopupIframe(),this._popupIframe.show&&this._popupIframe.uri!==this.iframe.uri&&(this._popupIframe.uri=this.iframe.uri))})),this.disposers.push((0,Wm.reaction)(()=>({width:this.iframe.width,height:this.iframe.height}),()=>{if(this._popupIframe&&this._popupIframe.show){const{width:e,height:t}=this.iframe;this._popupIframe.width=e,this._popupIframe.height=t}})),this.disposers.push((0,Wm.reaction)(()=>({winPos:[...this.winPos],offsetX:this.iframe.offsetX,offsetY:this.iframe.offsetY}),()=>{if(this._popupIframe&&this._popupIframe.show){const{winPos:[e,t,i,n]}=this;this._popupIframe.setPosition(e+this.iframe.offsetX,n+this.iframe.offsetY)}}))}_createPopupIframe(){if(!this._popupIframe){this._popupIframe=new H0,this._popupIframe.show=!1,this._popupIframe.width=this.iframe.width,this._popupIframe.height=this.iframe.height;const{winPos:[e,t,i,n]}=this;this._popupIframe.setPosition(e+this.iframe.offsetX,n+this.iframe.offsetY)}}onmouseover(){this._innerScale=1.1}onmouseout(){this._innerScale=1}onclick(){if(""!==this.iframe.uri&&this._popupIframe&&!this._popupIframe.show){this._popupIframe.show=!0,this._popupIframe.uri!==this.iframe.uri&&(this._popupIframe.uri=this.iframe.uri);const{width:e,height:t}=this.iframe;this._popupIframe.width=e,this._popupIframe.height=t;const{winPos:[i,n,r,o]}=this;this._popupIframe.setPosition(i+this.iframe.offsetX,o+this.iframe.offsetY)}}onclickout(){this._popupIframe&&this._popupIframe.show&&(this._popupIframe.show=!1)}flyTo(){this._earth.camera.flyTo(this.position,this.viewDistance,[0,-Math.PI/3,0])}destroy(){return super.destroy()}}U0.defaultOptions={position:[0,0,0],scale:1,imageUrl:"",isDivImage:!1,origin:[.5,0],pinBuilder:{text:"",extText:"",extTextFont:"48px 楷体",extTextPixelOffset:[30,-20],makiIcon:"",size:48,fillColor:[1,1,1,1],outlineColor:[0,.5,0,1]},iframe:{uri:"",width:500,height:400,offsetX:-250,offsetY:60},near:0,far:Number.MAX_VALUE,disableDepthTestDistance:Number.MAX_VALUE,show:!0,attachedPathGuid:"",pointShow:!1,lineShow:!1,lineHeight:0,computingWinPos:!0,cameraAttachedOffsetPosition:[0,0,0],cameraAttachedOffsetRotation:[0,-Math.PI/3,0],viewDistance:100},U0.MakiIcon=F0;const G0={title:"Pin Property",type:"object",properties:{show:{type:"boolean",title:"显示路径",default:!0,description:"显示路径"},origin:{type:"array",title:"原点",default:[.5,0],description:"原点"},position:{type:"array",title:"位置数组",default:[0,0,0],description:"位置数组"},viewDistance:{type:"number",title:"显示路径",default:100,description:"显示路径"},scale:{type:"number",title:"缩放比例",default:1,description:"缩放比例"},imageUrl:{type:"string",title:"图像路径",default:"",description:"图像路径"},isDivImage:{type:"boolean",title:"image是否用div绘制",default:"false",description:"image是否用div绘制"},pinBuilder:{title:"pinBuilder属性",type:"object",properties:{text:{type:"string",title:"文本",default:"",description:"文本"},extText:{type:"string",title:"附带文本",default:"",description:"附带文本"},extTextFont:{type:"string",title:"附带文本字体样式",default:"",description:"附带文本字体样式"},extTextPixelOffset:{type:"array",title:"像素偏移",default:[0,0],description:"像素偏移"},makiIcon:{type:"string",title:"图像字符",default:"",description:"图像字符"},size:{type:"number",title:"尺寸",default:48,description:"尺寸"},fillColor:{type:"array",title:"填充颜色",default:[1,1,1,1],description:"填充颜色"},outlineColor:{type:"array",title:"轮廓颜色",default:[0,.5,0,1],description:"轮廓颜色"}}},iframe:{uri:"",width:500,height:400,offsetX:-250,offsetY:60},pointShow:{type:"boolean",title:"点是否可见",default:!1,description:"点是否可见"},lineShow:{type:"boolean",title:"点是否可见",default:!1,description:"点是否可见"},lineHeight:{type:"number",title:"指示线条长度",default:0,description:"指示线条长度"},near:{type:"number",title:"最近可视距离",default:0,description:"最近可视距离"},far:{type:"number",title:"最远可视距离",default:Number.MAX_VALUE,description:"最远可视距离"},disableDepthTestDistance:{type:"number",title:"深度检测失效距离",default:Number.MAX_VALUE,description:"让深度检测失效的距离(在该距离以内不论是否被遮挡,都显示),设置为0时表示始终会被遮挡。"}}};U0.gvolSchema=G0;U0.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["disableDepthTestDistance","far","imageUrl","isDivImage","near","origin","pinBuilder","iframe","pointShow","lineShow","lineHeight","position","scale","show","viewDistance"]}],Cu.A.registerType(U0,"Pin");const Q0=U0;class z0 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,ng.A)(this,"enabled",this,"show"));const i=this._earth.czm.scene;this._primitive=void 0,this.disposers.push(()=>{this._primitive&&(i.primitives.remove(this._primitive),this._primitive=void 0)}),window.updateTimeRatioInner=new Function("instanceIndex","frameState","result","self","\n // return result;\n var data = self._cloneData[instanceIndex];\n var st = data.startTime;\n var dr = data.duration;\n const color = data.color;\n const bgColor = data.bgColor;\n const bidirectional = data.bidirectional;\n const repeat = data.repeat;\n const time = self.currentTime;\n var diff = time > st ? time - st : time + self.timeDuration - st;\n var timeRatio = Math.min(diff / dr, 1.0);\n // return timeRatio;\n result.timeRatio = timeRatio;\n color && result.color.splice(0, 4, ...color);\n if (bgColor) {\n if (!result.bgColor) {\n result.bgColor = [0, 0, 0, 0.2];\n }\n result.bgColor.splice(0, 4, ...bgColor);\n } else {\n result.bgColor = [color[0], color[1], color[2], 0.2];\n }\n result.bidirectional = (typeof bidirectional === 'number') ? bidirectional : 0;\n Number.isFinite(repeat) && (result.repeat = repeat);\n return result;\n ");const n=(e,t,i)=>window.updateTimeRatioInner(e,t,i,this),r=()=>{const e=this.color,t=this.show,i=this._primitive;if(i){i.show=t;const n=i.appearance.material.uniforms.color;n.red=e[0],n.green=e[1],n.blue=e[2],n.alpha=e[3]}};this.disposers.push((0,Wm.reaction)(()=>({data:JSON.stringify(this.data),translucentPass:this.translucentPass}),()=>{this._primitive&&(i.primitives.remove(this._primitive),this._primitive=void 0),this._cloneData=JSON.parse(JSON.stringify(this.data));const e=Cesium.xbsjCreateODLinesPrimitive(this._cloneData,this.color,n,this.translucentPass);this._primitive=i.primitives.add(e),r()})),this.disposers.push((0,Wm.reaction)(()=>({color:[...this.color],show:this.show,timeDuration:this.timeDuration,currentTime:this.currentTime,loopPlay:this.loopPlay}),r)),(0,Wm.extendObservable)(this,{_pathPlayingListener:void 0,get playing(){return!!this._pathPlayingListener},set playing(e){e&&!this._pathPlayingListener?this._play():!e&&this._pathPlayingListener&&(this._pathPlayingListener=this._pathPlayingListener&&this._pathPlayingListener())}},{_pathPlayingListener:Wm.observable.ref,playing:Wm.computed}),this.disposers.push(()=>{this.playing=!1})}_play(){const e=this._earth.czm.scene;this.currentD===this.timeDuration&&(this.currentD=0);let t=Date.now();this._pathPlayingListener=e.postUpdate.addEventListener((e,i)=>{let n=Date.now(),r=n-t;t=n;const o=this.currentTime+.001*r;this.loopPlay?o>this.timeDuration?this.currentTime=0:this.currentTime=o:o>this.timeDuration?(this.currentTime=this.timeDuration,this._pathPlayingListener=this._pathPlayingListener&&this._pathPlayingListener()):this.currentTime=o})}destroy(){return super.destroy()}}z0.defaultOptions={data:[],color:[1,1,1,1],show:!0,timeDuration:5,currentTime:0,loopPlay:!0,translucentPass:!0};z0.gvolSchema={title:"ODLines Property",type:"object",properties:{data:[],translucentPass:!0,show:{type:"boolean",title:"显示",default:!0,description:"显示"},timeDuration:{type:"number",title:"播放总时长",default:5,description:"播放总时长"},currentTime:{type:"number",title:"当前播放时刻",default:0,description:"当前播放时刻"},loopPlay:{type:"boolean",title:"是否循环播放",default:!0,description:"是否循环播放"}}};z0.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["show","data","color","timeDuration","currentTime","loopPlay","translucentPass"]}],Cu.A.registerType(z0,"ODLines");const W0=z0;var X0=__webpack_require__(6763),V0=function(){var e,t,i,n;return function(r,o,s,a,l,u,c){e=e||new Cesium.Matrix4,t=t||new Cesium.Quaternion,i=i||new Cesium.Matrix4;const h=a,p=l,d=[(n=n||Cesium.Cartesian3.fromElements)(-h,-p,0),n(1-h,-p,0),n(1-h,1-p,0),n(-h,1-p,0)];var f=Cesium.Transforms.eastNorthUpToFixedFrame(r,Cesium.Ellipsoid.WGS84,e),m=Cesium.Quaternion.fromAxisAngle(Cesium.Cartesian3.UNIT_Z,u,t),g=(0,Cesium.Matrix4.fromTranslationQuaternionRotationScale)(Cesium.Cartesian3.ZERO,m,n(o,s),i),y=Cesium.Matrix4.multiply(f,g,g);return void 0===c&&(c=[]),d.forEach(function(e,t){void 0===c[t]&&(c[t]=new Cesium.Cartesian3),Cesium.Matrix4.multiplyByPoint(y,e,c[t])}),c}}();let J0;const K0=function(e,t,i,n=i,r=.5,o=.5,s=0,a="",l,u,c){if(void 0===t||void 0===i)return void X0.error("必须设置center和width!");J0=J0||new Cesium.Cartesian3;const h=Cesium.Cartesian3.fromRadians(t[0],t[1],t[2],void 0,J0);n=n||i,s=s||0,l=l||new Cesium.Color(1,1,1,1),a=a||"";var p=V0(h,i,n,r,o,s),d=new Cesium.Material({fabric:{type:"Image",uniforms:{image:a}}});return d.uniforms.color.xbsjFromArray(...l),new Cesium.GroundPrimitive({geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(p),stRotation:-s}),id:e}),appearance:new Cesium.MaterialAppearance({material:d}),classificationType:u,asynchronous:!1,allowPicking:void 0===c||!!c})};class Z0 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,Xx.p6)(this._earth,this,{positionEditingProperty:"editing"})),this.disposers.push((0,Xx.Me)(this._earth,this,{positionPickingProperty:"creating"}));const i=this._earth.czm.scene;this._primitive=void 0,this.disposers.push(()=>{this._primitive&&(i.groundPrimitives.remove(this._primitive),this._primitive=void 0)}),this.disposers.push((0,ng.A)(this,"enabled",this,"show"));const n=()=>{const e=this.currentTime/this.timeDuration,t=this.color,i=this.show,n=this._primitive;if(n){n.show=i,n.appearance.material.uniforms.time=e;const r=n.appearance.material.uniforms.color;r.red=t[0],r.green=t[1],r.blue=t[2],r.alpha=t[3]}};this.disposers.push((0,Wm.reaction)(()=>({position:[...this.position],radius:this.radius}),()=>{this._primitive&&(i.groundPrimitives.remove(this._primitive),this._primitive=void 0);const e=K0(this,this.position,this.radius,void 0,void 0,void 0,void 0,void 0,void 0,void 0,!1);e.appearance.material=Cesium.Material.fromType("XbsjGroundScanline"),this._primitive=i.groundPrimitives.add(e),n()})),this.disposers.push((0,Wm.autorun)(n)),(0,Wm.extendObservable)(this,{_pathPlayingListener:void 0,get playing(){return!!this._pathPlayingListener},set playing(e){e&&!this._pathPlayingListener?this._play():!e&&this._pathPlayingListener&&(this._pathPlayingListener=this._pathPlayingListener&&this._pathPlayingListener())}},{_pathPlayingListener:Wm.observable.ref,playing:Wm.computed}),this.disposers.push(()=>{this.playing=!1})}_play(){const e=this._earth.czm.scene;this.currentTime===this.timeDuration&&(this.currentTime=0);let t=Date.now();this._pathPlayingListener=e.postUpdate.addEventListener((e,i)=>{let n=Date.now(),r=n-t;t=n;const o=this.currentTime+.001*r;this.loopPlay?o>this.timeDuration?this.currentTime=0:this.currentTime=o:o>this.timeDuration?(this.currentTime=this.timeDuration,this._pathPlayingListener=this._pathPlayingListener&&this._pathPlayingListener()):this.currentTime=o})}flyTo(){this._earth.camera.flyTo(this.position,2*this.radius,[0,-Math.PI/3,0])}}Z0.defaultOptions={position:[0,0,0],radius:100,color:[1,1,0,1],show:!0,timeDuration:1,currentTime:0,loopPlay:!0};Z0.gvolSchema={title:"Scanline Property",type:"object",properties:{position:{type:"array",items:{type:"number"},minItems:3,maxItems:3,default:[0,0,0],description:"位置 [经度, 纬度, 高度]"},radius:{type:"number",title:"半径",default:100,description:"半径"},color:{type:"array",items:{type:"number"},minItems:4,maxItems:4,default:[1,1,0,1],description:"颜色叠加"},show:{type:"boolean",title:"显示",default:!0,description:"显示"},timeDuration:{type:"number",title:"播放持续时间,单位秒",default:1,description:"播放持续时间,单位秒"},currentTime:{type:"number",title:"当前时间,单位秒",default:0,description:"当前时间,单位秒"},loopPlay:{type:"boolean",title:"是否循环播放",default:!0,description:"是否循环播放"}}};Z0.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["position","radius","color","show","timeDuration","currentTime","loopPlay"]}],Cu.A.registerType(Z0,"Scanline");const q0=Z0;var $0=__webpack_require__(5969),e1=__webpack_require__(1786);class t1 extends rg.A{constructor(e,t){super(e,t),(0,Wm.extendObservable)(this,{editingPolylineShow:!1}),this.disposers.push((0,Xx.hp)(this._earth,this,{polylineCreatingProperty:"creating"})),this.disposers.push((0,Xx.wJ)(this._earth,this,{polylineEditingProperty:"editing"})),this.disposers.push((0,ng.A)(this,"enabled",this,"show"))}get onlyMove(){return!0}get fixedPositionsNum(){}}t1.defaultOptions={positions:[],show:!0,ground:!0};t1.gvolSchema={title:"PlotBase Property",type:"object",properties:{show:{type:"boolean",title:"是否在三维窗口中显示",default:!0,description:"是否在三维窗口中显示"},ground:{type:"boolean",title:"是否贴地",default:!0,description:"是否贴地"},positions:{type:"array",title:"位置数组",default:[],description:"位置数组"}}};t1.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["show","ground","positions"]}];const i1=t1;class n1 extends rg.A{constructor(e,t){super(e,t),zm.A.registerProperty(this,"material",n1.defaultOptions.material),zm.A.registerProperty(this.material,"XbsjColorMaterial",n1.defaultOptions.material.XbsjColorMaterial),zm.A.registerProperty(this.material,"XbsjPolylineDashMaterial",n1.defaultOptions.material.XbsjPolylineDashMaterial),zm.A.registerProperty(this.material,"XbsjPolylineArrowMaterial",n1.defaultOptions.material.XbsjPolylineArrowMaterial),this._arcPolyline=new dx.A(e),this._edgePolyline=new dx.A(e),this._arcPolyline.type="NONE",this._edgePolyline.type="NONE",this._edgePolyline.positions=[[0,0,0],[0,0,0],[0,0,0]],this._boundingSphere=new Cesium.BoundingSphere,this._disposers=[],this._disposers.push((0,ng.A)(this,"enabled",this,"show")),this._centerCartesian=new Cesium.Cartesian3,this._hpr=new Cesium.HeadingPitchRoll,this._enu=new Cesium.Matrix4,this._carto=new Cesium.Cartographic,this._scrachCartesian=new Cesium.Cartesian3,(0,Wm.extendObservable)(this,{_positions:[]}),this._disposers.push((0,Wm.autorun)(()=>{this._hpr.heading=this.rotation[0],this._hpr.pitch=this.rotation[1],this._hpr.roll=this.rotation[2],this._edgePolyline.positions[1].splice(0,3,...this.center),this._centerCartesian=Cesium.Cartesian3.fromRadians(...this.center,void 0,this._centerCartesian),Cesium.Cartesian3.clone(this._centerCartesian,this._boundingSphere.center),this._boundingSphere.radius=this.radius,this._enu=Cesium.Transforms.headingPitchRollToFixedFrame(this._centerCartesian,this._hpr,void 0,void 0,this._enu);const e=2*Math.PI;if(this._positions.length=0,this.range[0]!==this.range[1]){const t=this.range[0]%e,i=this.range[1]%e,n=i<=t?i+e:i;for(let e=t;e<n;e+=this.granularity)this._positions.push(this._computPosition(e));this._positions.push(this._computPosition(n))}})),this._disposers.push((0,Wm.reaction)(()=>this._positions.map(e=>[...e]),e=>{this._arcPolyline.positions.splice(0,this._arcPolyline.positions.length,...e),this._positions.length>0&&(this._edgePolyline.positions[0].splice(0,3,...this._positions[0]),this._edgePolyline.positions[2].splice(0,3,...this._positions[this._positions.length-1]))})),["show","width","depthTest","arcType","material"].forEach(e=>{this._disposers.push((0,ng.A)(this._arcPolyline,e,this,e))}),["width","depthTest","arcType","material"].forEach(e=>{this._disposers.push((0,ng.A)(this,e,this._edgePolyline,e))}),this._disposers.push((0,Wm.autorun)(()=>{this._edgePolyline.show=this.show&&this.edgeShow})),this._disposers.push((0,Wm.reaction)(()=>this.show&&this.showHelper||this.isSelected,e=>{this._arcPolyline.showHelper=e},{fireImmediately:!0}))}_computPosition(e){const t=e,i=this.radius,n=Math.cos,r=Math.sin,o=this._scrachCartesian;"pitch"===this.axisType?Cesium.Cartesian3.fromElements(n(t)*i,0,r(t)*i,o):"roll"===this.axisType?Cesium.Cartesian3.fromElements(0,n(t)*i,r(t)*i,o):"heading"===this.axisType&&Cesium.Cartesian3.fromElements(n(-t)*i,r(-t)*i,0,o),Cesium.Matrix4.multiplyByPoint(this._enu,o,o);const s=Cesium.Cartographic.fromCartesian(o,void 0,this._carto);return[s.longitude,s.latitude,s.height]}get boundingSphere(){return this._boundingSphere}flyTo(){this._earth.czm.scene.camera.flyToBoundingSphere(this._boundingSphere)}destroy(){return this._disposers.forEach(e=>e()),this._disposers.length=0,this._arcPolyline=this._arcPolyline&&this._arcPolyline.destroy(),this._edgePolyline=this._edgePolyline&&this._edgePolyline.destroy(),super.destroy()}}n1.defaultOptions={center:[0,0,0],radius:1,rotation:[0,0,0],axisType:"heading",granularity:.02,range:[0,2*Math.PI],edgeShow:!1,show:!0,showHelper:!1,width:2,depthTest:!1,arcType:"NONE",material:{type:"XbsjColorMaterial",XbsjColorMaterial:{color:[1,0,1,1]},XbsjPolylineDashMaterial:{color:[1,0,1,1],gapColor:[0,0,0,0],dashLength:16,dashPattern:255},XbsjPolylineArrowMaterial:{color:[1,0,1,1]}}},Cu.A.registerType(n1,"Circle");const r1=n1;class o1 extends rg.A{constructor(e,t){super(e,t),(0,Wm.extendObservable)(this,{positions:[[0,0,0],[0,0,0]],_realSceneScale:1,_endRealSceneScale:1,_primitive:void 0},{_primitive:Wm.observable.ref}),this.disposers.push(()=>{this._primitive&&(this._earth.czm.scene.primitives.remove(this._primitive),this._primitive=void 0)}),this.disposers.push((0,ng.A)(this,"positions.0",this,"startPosition")),this.disposers.push((0,ng.A)(this,"positions.1",this,"endPosition")),this._boundingSphere=new Cesium.BoundingSphere,this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this.disposers.push((0,Wm.autorun)(()=>{this._primitive&&(this._primitive.show=this.show)})),this.disposers.push(Cx(this._earth,this,{positionProperty:"startPosition",screenScalePropery:"_realSceneScale",fixScreenSizeProperty:"fixScreenSize",scaleProperty:"radius"})),this.disposers.push(Cx(this._earth,this,{positionProperty:"endPosition",screenScalePropery:"_endRealSceneScale",fixScreenSizeProperty:"fixScreenSize",scaleProperty:"radius"}));var i=this;const n=()=>{if(!this._primitive)return;this._scratchCartesian=this._scratchCartesian||new Cesium.Cartesian3,this._scratchCartesian2=this._scratchCartesian2||new Cesium.Cartesian3,this._scratchCartesian3=this._scratchCartesian3||new Cesium.Cartesian3,this._scratchCartesian4=this._scratchCartesian4||new Cesium.Cartesian3,this._scratchQuat=this._scratchQuat||new Cesium.Quaternion;const e=this._scratchCartesian,t=this._scratchCartesian2,i=this._scratchCartesian3,n=this._scratchCartesian4,r=Cesium.Cartesian3.fromRadians(...this.startPosition,void 0,e),o=Cesium.Cartesian3.fromRadians(...this.endPosition,void 0,t);let s=Cesium.Cartesian3.subtract(o,r,i),a=Cesium.Cartesian3.magnitude(s);if(a>0){a=a>0?a:.001,s=Cesium.Cartesian3.normalize(s,s);const e=Cesium.Cartesian3.angleBetween(s,Cesium.Cartesian3.UNIT_Z),i=Cesium.Cartesian3.cross(Cesium.Cartesian3.UNIT_Z,s,n),o=Math.min(this._realSceneScale,this._endRealSceneScale,this.maxSceneScale),l=Cesium.Cartesian3.fromElements(o,o,a,t),u=Cesium.Quaternion.fromAxisAngle(i,e,this._scratchQuat);Cesium.Matrix4.fromTranslationQuaternionRotationScale(r,u,l,this._primitive.modelMatrix),this._boundingSphere.radius=a,this._boundingSphere.center=r}};this.disposers.push((0,Wm.autorun)(()=>{n()}));const r=e=>{this._primitive&&(this._earth.czm.scene.primitives.remove(this._primitive),this._primitive=void 0);const t=Cesium.XbsjCSG.cylinder({start:[0,0,0],end:[0,0,1],radius:1,slices:e}).toMesh(),i=new Cesium.XbsjCustomPrimitive({modelMatrix:Cesium.Matrix4.IDENTITY,positions:t.positions,indices:t.indices,normals:t.normals,colors:t.colors,color:void 0,translucent:!1,id:this});this._earth.czm.scene.primitives.add(i),this._primitive=i};r(),this.disposers.push((0,Wm.reaction)(()=>this.slices,r)),this.disposers.push((0,Wm.autorun)(()=>n())),this.disposers.push((0,Wm.autorun)(()=>{i._primitive&&(i._primitive.color.red=i.color[0],i._primitive.color.green=i.color[1],i._primitive.color.blue=i.color[2],i._primitive.color.alpha=i.color[3])})),this.disposers.push((0,Wm.autorun)(()=>{this._primitive&&(this._primitive.show=this.show)})),this.disposers.push((0,Xx.wJ)(this._earth,this,{polylineEditingProperty:"editing"}))}get boundingSphere(){return this._boundingSphere}flyTo(){this._earth.czm.scene.camera.flyToBoundingSphere(this._boundingSphere)}destroy(){return super.destroy()}}o1.defaultOptions={startPosition:[0,0,0],endPosition:[0,0,0],radius:1,slices:16,color:[1,0,0,1],show:!0,fixScreenSize:0,maxSceneScale:Number.POSITIVE_INFINITY},Cu.A.registerType(o1,"Cylinder");const s1=o1;var a1=__webpack_require__(6763);class l1 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this.textureWidth=2048,this.textureHeight=2048,zm.A.registerPosition(this),this.disposers.push((0,Xx.p6)(this._earth,this,{positionEditingProperty:"editing"})),this.disposers.push((0,Xx.Me)(this._earth,this,{positionPickingProperty:"creating"}));const i=this._earth.czm.scene;this._groundPrimitive=void 0,this.disposers.push(()=>{this._groundPrimitive&&i.groundPrimitives.remove(this._groundPrimitive),this._groundPrimitive=void 0}),this._material=new Cesium.Material({fabric:{type:"ImageMapXC",materials:{left:{type:"ScaleImageXC",uniforms:{image:Cesium.Material.DefaultImageId,repeat:new Cesium.Cartesian2(1,1),color:new Cesium.Color(1,1,1,1),stscale:new Cesium.Cartesian2(1,1)},components:{diffuse:"texture2D(image, fract(repeat * materialInput.st) * stscale).rgb * color.rgb",alpha:"texture2D(image, fract(repeat * materialInput.st) * stscale).a * color.a"}},right:{type:"ScaleImageXC",uniforms:{image:Cesium.Material.DefaultImageId,repeat:new Cesium.Cartesian2(1,1),color:new Cesium.Color(1,1,1,1),stscale:new Cesium.Cartesian2(1,1)},components:{diffuse:"texture2D(image, fract(repeat * materialInput.st) * stscale).rgb * color.rgb",alpha:"texture2D(image, fract(repeat * materialInput.st) * stscale).a * color.a"}}},uniforms:{t:0,opacity:1},components:{diffuse:"left.diffuse * (1.0 - t) + right.diffuse * t",alpha:"(left.alpha * (1.0 - t) + right.alpha * t) * opacity"}}});(()=>{this._leftHeatmapTexture&&this._leftHeatmapTexture.destroy(),this._leftHeatmapTexture=new Cesium.Texture({context:i.context,width:this.textureWidth,height:this.textureHeight}),this._rightHeatmapTexture&&this._rightHeatmapTexture.destroy(),this._rightHeatmapTexture=new Cesium.Texture({context:i.context,width:this.textureWidth,height:this.textureHeight}),this._material.materials.left.uniforms.image=this._leftHeatmapTexture,this._material.materials.right.uniforms.image=this._rightHeatmapTexture})(),this._scratchRect=new Cesium.Rectangle;const n=()=>{this._groundPrimitive&&i.groundPrimitives.remove(this._groundPrimitive),this._groundPrimitive=void 0;const e=this.origin[0],t=this.origin[1],n=K0(this,this.position,this.width,this.height,e,t,this.rotation,void 0);this._groundPrimitive=i.groundPrimitives.add(n),this._groundPrimitive.show=this.show,this._groundPrimitive.appearance.material=this._material};n(),this.disposers.push((0,Wm.reaction)(()=>({position:[...this.position],origin:[...this.origin],rotation:this.rotation,width:this.width,height:this.height}),()=>{n()})),this.disposers.push((0,Wm.reaction)(()=>this.show,()=>{this._groundPrimitive.show=this.show})),(0,Wm.extendObservable)(this,{_images:[]}),this.disposers.push((0,Wm.reaction)(()=>[...this.imageUrls],e=>{this._fetchTexturesSubscription&&this._fetchTexturesSubscription.unsubscribe(),this._fetchTexturesSubscription=void 0;const t=e.map(e=>new Promise((t,i)=>{Cesium.Resource.fetchImage({url:e}).then(e=>{t(e)})})),i=new rxjs.Observable(e=>{Promise.all(t).then(t=>{e.next(t)})});this._fetchTexturesSubscription=i.subscribe(e=>{if(e=e.filter(e=>{let t=e.width>this.textureWidth||e.height>this.textureHeight;return t&&a1.warn(`警告:图片尺寸大于${this.textureWidth}X${this.textureHeight},将被忽略。。`),!t}),this._images.splice(0,this._images.length,...e),this._images.length>0){const e=this._images[0];this.autoWidth?this.width=this.height*e.naturalWidth/e.naturalHeight:this.autoHeight&&(this.height=this.width*e.naturalHeight/e.naturalWidth)}})})),this._leftImage=void 0,this._rightImage=void 0;const r=new Uint8Array([255,255,255,0]),o=()=>{const e=this._images.length;if(0===e)return this._leftImage=void 0,this._rightImage=void 0,this._material.materials.left.uniforms.image.copyFrom({width:1,height:1,arrayBufferView:r}),this._material.materials.left.uniforms.stscale=new Cesium.Cartesian2(1/this.textureWidth,1/this.textureHeight),this._material.materials.right.uniforms.image.copyFrom({width:1,height:1,arrayBufferView:r}),void(this._material.materials.right.uniforms.stscale=new Cesium.Cartesian2(1/this.textureWidth,1/this.textureHeight));const t=this.currentTime>this.timeDuration?0:this.currentTime;let i=0,n=0;if(e>=2)if(this.times&&0!==this.times.length)i=this.times.findIndex(e=>e>t)-1,i<0?(i=0,n=0):i>=this._images.length-1?(i=this._images.length-2,n=1):n=(t-this.times[i])/(this.times[i+1]-this.times[i]);else{const r=this.timeDuration/(e-1),o=t/r;i=Math.floor(o),n=o-i}if(this._leftImage!==this._images[i]){this._leftImage=this._images[i];const e=this._leftImage;e&&(this._material.materials.left.uniforms.image.copyFrom(e),this._material.materials.left.uniforms.stscale=new Cesium.Cartesian2(e.width/this.textureWidth,e.height/this.textureHeight))}if(e>=2&&this._rightImage!==this._images[i+1]){this._rightImage=this._images[i+1];const e=this._rightImage;e&&(this._material.materials.right.uniforms.image.copyFrom(e),this._material.materials.right.uniforms.stscale=new Cesium.Cartesian2(e.width/this.textureWidth,e.height/this.textureHeight))}this._material.uniforms.t=n};o(),this.disposers.push((0,Wm.reaction)(()=>({currentTime:this.currentTime,timeDuration:this.timeDuration,images:[...this._images],times:[...this.times]}),o)),(0,Wm.extendObservable)(this,{_pathPlayingListener:void 0,get playing(){return!!this._pathPlayingListener},set playing(e){e&&!this._pathPlayingListener?this._play():!e&&this._pathPlayingListener&&(this._pathPlayingListener=this._pathPlayingListener&&this._pathPlayingListener())}},{_pathPlayingListener:Wm.observable.ref,playing:Wm.computed}),this.disposers.push(()=>{this.playing=!1});const s=()=>{this._material.uniforms.opacity=this.opacity};s(),this.disposers.push((0,Wm.reaction)(()=>this.opacity,s))}_play(){const e=this._earth.czm.scene;this.currentTime===this.timeDuration&&(this.currentTime=0);let t=Date.now();this._pathPlayingListener=e.postUpdate.addEventListener((e,i)=>{let n=Date.now(),r=n-t;t=n;const o=this.currentTime+.001*r;this.loopPlay?o>this.timeDuration?this.currentTime=0:this.currentTime=o:o>this.timeDuration?(this.currentTime=this.timeDuration,this._pathPlayingListener=this._pathPlayingListener&&this._pathPlayingListener()):this.currentTime=o})}flyTo(){this._earth.camera.flyTo(this.position,this.width,[0,-Math.PI/3,0])}destroy(){return super.destroy()}}l1.defaultOptions={position:[0,0,0],width:100,height:100,autoWidth:!1,autoHeight:!0,origin:[.5,.5],rotation:0,show:!0,imageUrls:[],timeDuration:1,currentTime:0,loopPlay:!0,times:[],opacity:1};l1.gvolSchema={title:"GroundImage Property",type:"object",properties:{show:{type:"boolean",title:"显示",default:!0,description:"显示"},origin:{type:"array",items:{type:"number"},minItems:2,maxItems:2,title:"原点",default:[.5,.5],description:"原点"},rotation:{type:"number",title:"旋转角",default:0,description:"旋转角"},position:{type:"array",items:{type:"number"},minItems:3,maxItems:3,title:"位置数组",default:[0,0,0],description:"位置数组"},width:{type:"number",title:"东西方向长度",default:100,description:"宽度"},height:{type:"number",title:"南北方向长度",default:100,description:"高度"},autoWidth:{type:"boolean",title:"是否自动计算宽度",default:!0,description:"是否自动计算宽度"},autoHeight:{type:"boolean",title:"是否自动计算高度",default:!0,description:"是否自动计算高度"},imageUrls:{type:"array",items:{type:"string"},title:"图像路径",default:[],description:"图像路径"},timeDuration:{type:"number",title:"播放总时长",default:1,description:"播放总时长"},currentTime:{type:"number",title:"当前播放时刻",default:0,description:"当前播放时刻"},loopPlay:{type:"boolean",title:"是否循环播放",default:!0,description:"是否循环播放"},times:{type:"boolean",title:"每个图象的播放时刻",default:[],description:"每个图象的播放时刻"},opacity:{type:"number",title:"不透明度",default:1,description:"不透明度"}}};l1.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["show","origin","rotation","position","width","height","autoWidth","autoHeight","imageUrls","timeDuration","currentTime","loopPlay","times"]}],Cu.A.registerType(l1,"GroundImage");const u1=l1;function c1(e,t){const i=e.appearance.material.uniforms;i.baseWaterColor.xbsjFromArray(...t.baseWaterColor),i.blendColor.xbsjFromArray(...t.blendColor),i.frequency=t.frequency,i.animationSpeed=t.animationSpeed,i.amplitude=t.amplitude,i.specularIntensity=t.specularIntensity,i.fadeFactor=t.fadeFactor,i.sizeAndVelocity.z=t.velocity[0],i.sizeAndVelocity.w=t.velocity[1]}class h1 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._primitive=void 0,this.disposers.push(()=>this._primitive&&this._earth.czm.scene.gvolWaterManager.destroyWaterPolygonPrimitive(this._primitive)),this._groundPrimitive=void 0,this.disposers.push(()=>this._groundPrimitive&&this._earth.czm.scene.gvolWaterManager.destroyWaterPolygonPrimitive(this._groundPrimitive)),this._boundingSphere=new Cesium.BoundingSphere;{const e=()=>{this._primitive&&(this._primitive.show=this.show,c1(this._primitive,this)),this._groundPrimitive&&(this._groundPrimitive.show=this.show,c1(this._groundPrimitive,this))};this.disposers.push((0,Wm.reaction)(()=>({show:this.show,baseWaterColor:[...this.baseWaterColor],blendColor:[...this.blendColor],frequency:this.frequency,animationSpeed:this.animationSpeed,amplitude:this.amplitude,specularIntensity:this.specularIntensity,fadeFactor:this.fadeFactor,velocity:[...this.velocity]}),e));const t=()=>{this._primitive&&this._earth.czm.scene.gvolWaterManager.destroyWaterPolygonPrimitive(this._primitive),this._primitive=void 0,this._groundPrimitive&&this._earth.czm.scene.gvolWaterManager.destroyWaterPolygonPrimitive(this._groundPrimitive),this._groundPrimitive=void 0;const e=[],t=this.positions.length/2;if(!(t<3)){for(let i=0;i<t;++i){const t=Cesium.Cartesian3.fromRadians(this.positions[2*i+0],this.positions[2*i+1],this.height);e.push(t)}this.ground?this._groundPrimitive=this._earth.czm.scene.gvolWaterManager.createWaterPolygonPrimitive(e,!0):this._primitive=this._earth.czm.scene.gvolWaterManager.createWaterPolygonPrimitive(e,!1)}},i=()=>{const e=this.positions.length/2;if(e>=3){const t=[];for(let i=0;i<e;++i)t.push(this.positions[2*i],this.positions[2*i+1],this.height);const i=Cesium.Cartesian3.fromRadiansArrayHeights(t);this._boundingSphere=Cesium.BoundingSphere.fromPoints(i,this._boundingSphere)}};this.disposers.push((0,Wm.reaction)(()=>({positions:[...this.positions],height:this.height,ground:this.ground}),()=>{t(),e(),i()}))}this._polyline=new dx.A(e),this.disposers.push(()=>this._polyline=this._polyline&&this._polyline.destroy()),this._polyline.material.type="XbsjColorMaterial",this._polyline.depthTest=!1,this._polyline.loop=!0,this.disposers.push((0,Wm.autorun)(()=>{this._polyline.material.XbsjColorMaterial.color=this.outline.color,this._polyline.width=this.outline.width,this._polyline.show=this.show&&this.outline.show,this._polyline.ground=this.ground}));{const e=()=>{const e=this.positions.length/2,t=[];for(let i=0;i<e;++i)t.push([this.positions[2*i],this.positions[2*i+1],this.height]);return t},t=e=>this._polyline&&(this._polyline.positions=e);t(e()),this.disposers.push((0,Wm.reaction)(e,t))}this.disposers.push((0,Xx.yt)(this._earth,this,{polygonCreatingWithHeight:"creating"})),this.disposers.push((0,Xx.s)(this._earth,this,{polygonEditingProperty:"editing"}))}get boundingSphere(){return this._boundingSphere}flyTo(){this._earth.czm.scene.camera.flyToBoundingSphere(this._boundingSphere)}destroy(){return super.destroy()}}h1.gvolSchema={title:"Water Property",type:"object",properties:{positions:{type:"array",title:"位置数组",default:[],description:"位置数组"},height:{type:"number",title:"水面高度",default:0,description:"水面高度"},show:{type:"boolean",title:"是否在三维窗口中显示",default:!0,description:"是否在三维窗口中显示"},baseWaterColor:{type:"array",items:{type:"number"},minItems:4,maxItems:4,default:[.2,.3,.6,1],description:"颜色叠加"},blendColor:{type:"array",items:{type:"number"},minItems:4,maxItems:4,default:[.5,.5,.5,.7],description:"颜色叠加"},frequency:{type:"number",title:"频率",default:5e3,description:"频率"},animationSpeed:{type:"number",title:"运动速度",default:.05,description:"运动速度"},amplitude:{type:"number",title:"amplitude",default:2,description:"amplitude"},specularIntensity:{type:"number",title:"specularIntensity",default:.5,description:"specularIntensity"},fadeFactor:{type:"number",title:"fadeFactor",default:1,description:"fadeFactor"},velocity:{type:"array",items:{type:"number"},minItems:2,maxItems:2,default:[10,10],description:"速度数组"},showHelper:{type:"boolean",title:"辅助线框",default:"false",description:"辅助线框"},outline:{},ground:{type:"boolean",title:"是否贴地",default:!0,description:"是否贴地"}}};h1.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["positions","height","show","baseWaterColor","blendColor","frequency","animationSpeed","amplitude","specularIntensity","fadeFactor","velocity","showHelper","outline","ground"]}],h1.defaultOptions={positions:[],height:0,show:!0,baseWaterColor:[.2,.3,.6,1],blendColor:[.5,.5,.5,.7],frequency:5e3,animationSpeed:.05,amplitude:2,specularIntensity:.5,fadeFactor:1,velocity:[10,10],showHelper:!1,outline:{show:!0,color:[0,1,0,1],width:2},ground:!1},Cu.A.registerType(h1,"Water");const p1=h1;var d1=__webpack_require__(6763);class f1 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),(0,Wm.extendObservable)(this,{_texture:void 0,_groundPrimitive:void 0},{_texture:Wm.observable.ref,_groundPrimitive:Wm.observable.ref}),this.disposers.push(()=>{this._groundPrimitive&&(e.czm.scene.groundPrimitives.remove(this._groundPrimitive),this._groundPrimitive=void 0),this._texture&&(this._texture=this._texture&&this._texture.destroy())});const i=()=>{if(!(this._texture&&this.canvasWidth===this._texture.width&&this.canvasHeight===this._texture.height)&&(this._texture=this._texture&&this._texture.destroy(),this.canvasWidth>0&&this.canvasHeight>0&&(this._texture=new Cesium.Texture({context:e.czm.scene.context,width:this.canvasWidth,height:this.canvasHeight,source:void 0,flipY:!0}))),!this._canvas){const e=document.createElement("canvas");this._canvas=e,this._ctx=e.getContext("2d")}this._canvas.width===this.canvasWidth&&this._canvas.height===this.canvasHeight||(this._canvas.width=this.canvasWidth,this._canvas.height=this.canvasHeight)};this._updateCanvas=i,i(),this.disposers.push((0,Wm.reaction)(()=>({canvasWidth:this.canvasWidth,canvasHeight:this.canvasHeight}),i));const n=()=>{this.autoRegisterEditing&&!this.creating&&this.registerEditing()};n(),this.disposers.push((0,Wm.reaction)(()=>this.autoRegisterEditing,n)),this._scratchColor=new Cesium.Color;const r=()=>{this._groundPrimitive&&(e.czm.scene.groundPrimitives.remove(this._groundPrimitive),this._groundPrimitive=void 0);const t=Cesium.ClassificationType.BOTH,i=K0(this,this.position,this.width,this.height,this.origin[0],this.origin[1],this.rotation,undefined,undefined,t);i.appearance.material._uniforms.image_0=()=>this._texture||e.czm.scene.context.defaultTexture,["red","green","blue","alpha"].forEach((e,t)=>this._scratchColor[e]=this.color[t]),i.appearance.material.uniforms.color=this._scratchColor,this._groundPrimitive=e.czm.scene.groundPrimitives.add(i)};r(),this.disposers.push((0,Wm.reaction)(()=>({position:[...this.position],origin:[...this.origin],rotation:this.rotation,width:this.width,height:this.height,color:[...this.color]}),r));const o=()=>{this._groundPrimitive&&(this._groundPrimitive.show=this.show)};o(),this.disposers.push((0,Wm.reaction)(()=>({show:this.show,_groundPrimitive:this._groundPrimitive}),o)),this._videoElement=void 0,this._videoAnimation=void 0,this.disposers.push(()=>{this._videoElement=this._videoElement&&yS(this._videoElement),this._videoAnimation&&(cancelAnimationFrame(this._videoAnimation),this._videoAnimation=void 0)}),this._settingVideoElement=void 0,this.disposers.push(()=>{this._settingVideoElement&&(this._settingVideoElement.unsubscribe(),this._settingVideoElement=void 0)});const s=()=>{if(this._imageSubscription&&(this._imageSubscription.unsubscribe(),this._imageSubscription=void 0),this._videoAnimation&&(cancelAnimationFrame(this._videoAnimation),this._videoAnimation=void 0),this._videoElement=this._videoElement&&yS(this._videoElement),this._settingVideoElement&&(this._settingVideoElement.unsubscribe(),this._settingVideoElement=void 0),"string"==typeof this.imageUrl)if(this.imageUrl.endsWith(".jpg")||this.imageUrl.endsWith(".png")||this.imageUrl.startsWith("data:image")){const e=new rxjs.Observable(e=>{Cesium.Resource.createIfNeeded(this.imageUrl).fetchImage().then(function(t){e.next(t)})});this._imageSubscription=e.subscribe(e=>{this.canvasWidth=e.naturalWidth,this.canvasHeight=e.naturalHeight,this.drawCanvas(t=>{t.clearRect(0,0,e.naturalWidth,e.naturalHeight),t.drawImage(e,0,0)})})}else[".ogg",".webm",".mp4",".m3u8",".flv"].some(e=>this.imageUrl.endsWith(e))?this._settingVideoElement=rxjs.from(gS(this.imageUrl)).subscribe(e=>{if(this._videoElement=e,this._videoElement){const t=()=>{this._videoAnimation=requestAnimationFrame(t),e.videoWidth>0&&e.videoHeight>0&&4===e.readyState&&(this.canvasWidth===e.videoWidth&&this.canvasHeight===e.videoHeight||(this.canvasWidth=e.videoWidth,this.canvasHeight=e.videoHeight),this._updateCanvas(),this._texture&&this._texture.copyFrom(e))};this._videoAnimation=requestAnimationFrame(t)}}):(this.canvasWidth=1,this.canvasHeight=1,this.drawCanvas(e=>{e.clearRect(0,0,1,1),e.fillStyle="white",e.fillRect(0,0,1,1)}),this._videoElement=void 0)};s(),this.disposers.push((0,Wm.reaction)(()=>this.imageUrl,s))}drawCanvas(e){this.canvasWidth>0&&this.canvasHeight>0?(this._updateCanvas(),e(this._ctx,this._canvas),this._texture.copyFrom(this._canvas)):d1.warn("canvas尺寸未设置,无法绘制!")}get texture(){return this._texture}set texture(e){this._texture=e}flyTo(){const e=Math.sqrt(this.width*this.width+this.height*this.height);this._earth.camera.flyTo(this.position,3*e)}registerEditing(){this.disposers.push((0,Xx.p6)(this._earth,this,{})),this.disposers.push((0,Xx.Me)(this._earth,this,{positionPickingProperty:"creating"}))}}f1.gvolSchema={title:"CustomGroundRectangle Property",type:"object",properties:{position:{type:"array",items:{type:"number"},minItems:3,maxItems:3,default:[0,0,0],description:"位置(经度, 纬度, 高度)"},origin:{type:"array",items:{type:"number"},minItems:2,maxItems:2,default:[.5,.5],description:"原点在纹理上的位置,旋转的中心点"},rotation:{type:"number",title:"偏航角",default:0,description:"偏航角"},width:{type:"number",title:"宽度,单位米",default:1e3,description:"宽度,单位米"},height:{type:"number",title:"高度,单位米",default:1e3,description:"高度,单位米"},canvasWidth:{type:"number",title:"画布宽度,单位像素",default:512,description:"画布宽度,单位像素"},canvasHeight:{type:"number",title:"画布高度,单位像素",default:512,description:"画布高度,单位像素"},show:{type:"boolean",title:"是否在三维窗口中显示",default:!0,description:"是否在三维窗口中显示"},color:{type:"array",items:{type:"number"},minItems:4,maxItems:4,default:[1,1,1,1],description:"颜色叠加"},imageUrl:{type:"string",title:"纹理对应的图像url",default:0,description:"纹理对应的图像url"},autoRegisterEditing:{type:"boolean",title:"是否自动注册编辑功能",default:!1,description:"是否自动注册编辑功能"}}};f1.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["position","origin","rotation","width","height","canvasWidth","canvasHeight","show","color","imageUrl","autoRegisterEditing"]}],f1.defaultOptions={position:[0,0,0],origin:[.5,.5],rotation:0,width:1e3,height:1e3,canvasWidth:512,canvasHeight:512,show:!0,color:[1,1,1,1],imageUrl:"",autoRegisterEditing:!1},Cu.A.registerType(f1,"CustomGroundRectangle");const m1=f1;if(!Array.prototype.xe_max){const N5=function(){return Math.max.apply(null,this)},k5=function(){return Math.min.apply(null,this)},F5=function(){var e,t;for(e=0,t=0;e<this.length;e++)t+=this[e];return t/this.length},H5=function(e){return Array.apply(null,new Array(e)).map(Number.prototype.valueOf,this[0])},Y5=function(e,t){var i,n,r=!1;for(i=0,n=this.length-1;i<this.length;n=i++)this[i][1]>t!=this[n][1]>t&&e<(this[n][0]-this[i][0])*(t-this[i][1])/(this[n][1]-this[i][1])+this[i][0]&&(r=!r);return r};Object.defineProperties(Array.prototype,{xe_max:{enumerable:!1,get:()=>N5},xe_min:{enumerable:!1,get:()=>k5},xe_mean:{enumerable:!1,get:()=>F5},xe_rep:{enumerable:!1,get:()=>H5},xe_pip:{enumerable:!1,get:()=>Y5}})}var g1=function(){var e={},t=function(e,t){var i,n=[0].xe_rep(t*t);for(i=0;i<t;i++)n[i*t+i]=e;return n},i=function(e,t,i,n){var r,o,s=Array(i*n);for(r=0;r<i;r++)for(o=0;o<n;o++)s[r*n+o]=e[r*n+o]+t[r*n+o];return s},n=function(e,t,i,n,r){var o,s,a,l=Array(i*r);for(o=0;o<i;o++)for(s=0;s<r;s++)for(l[o*r+s]=0,a=0;a<n;a++)l[o*r+s]+=e[o*n+a]*t[a*r+s];return l},r=function(e,t){var i,n,r,o=Array(t);for(i=0;i<t;i++)o[i]=e[i*t+i];for(i=0;i<t;i++){for(n=0;n<i;n++)o[i]-=e[i*t+n]*e[i*t+n];if(o[i]<=0)return!1;for(o[i]=Math.sqrt(o[i]),n=i+1;n<t;n++){for(r=0;r<i;r++)e[n*t+i]-=e[n*t+r]*e[i*t+r];e[n*t+i]/=o[i]}}for(i=0;i<t;i++)e[i*t+i]=o[i];return!0},o=function(e,t){var i,n,r,o;for(i=0;i<t;i++)for(e[i*t+i]=1/e[i*t+i],n=i+1;n<t;n++){for(o=0,r=i;r<n;r++)o-=e[n*t+r]*e[r*t+i];e[n*t+i]=o/e[n*t+n]}for(i=0;i<t;i++)for(n=i+1;n<t;n++)e[i*t+n]=0;for(i=0;i<t;i++){for(e[i*t+i]*=e[i*t+i],r=i+1;r<t;r++)e[i*t+i]+=e[r*t+i]*e[r*t+i];for(n=i+1;n<t;n++)for(r=n;r<t;r++)e[i*t+n]+=e[r*t+i]*e[r*t+n]}for(i=0;i<t;i++)for(n=0;n<i;n++)e[i*t+n]=e[n*t+i]},s=function(e,t){var i,n,r,o,s,a,l,u,c,h,p,d=t,f=Array(t*t),m=Array(t),g=Array(t),y=Array(t);for(i=0;i<t;i++)for(o=0;o<t;o++)f[i*t+o]=i==o?1:0;for(o=0;o<t;o++)y[o]=0;for(i=0;i<t;i++){for(u=0,o=0;o<t;o++)if(1!=y[o])for(s=0;s<t;s++)0==y[s]&&Math.abs(e[o*t+s])>=u&&(u=Math.abs(e[o*t+s]),r=o,n=s);if(++y[n],r!=n){for(a=0;a<t;a++)p=e[r*t+a],e[r*t+a]=e[n*t+a],e[n*t+a]=p;for(a=0;a<d;a++)p=f[r*t+a],f[r*t+a]=f[n*t+a],f[n*t+a]=p}if(g[i]=r,m[i]=n,0==e[n*t+n])return!1;for(h=1/e[n*t+n],e[n*t+n]=1,a=0;a<t;a++)e[n*t+a]*=h;for(a=0;a<d;a++)f[n*t+a]*=h;for(l=0;l<t;l++)if(l!=n){for(c=e[l*t+n],e[l*t+n]=0,a=0;a<t;a++)e[l*t+a]-=e[n*t+a]*c;for(a=0;a<d;a++)f[l*t+a]-=f[n*t+a]*c}}for(a=t-1;a>=0;a--)if(g[a]!=m[a])for(s=0;s<t;s++)p=e[s*t+g[a]],e[s*t+g[a]]=e[s*t+m[a]],e[s*t+m[a]]=p;return!0},a=function(e,t,i,n,r){return t+(n-t)/i*(1-Math.exp(-1/r*Math.pow(e/i,2)))},l=function(e,t,i,n,r){return t+(n-t)/i*(1-Math.exp(-1/r*(e/i)))},u=function(e,t,i,n,r){return e>i?t+(n-t)/i:t+(n-t)/i*(e/i*1.5-.5*Math.pow(e/i,3))};return e.train=function(e,c,h,p,d,f){var m={t:e,x:c,y:h,nugget:0,range:0,sill:0,A:1/3,n:0};switch(p){case"gaussian":m.model=a;break;case"exponential":m.model=l;break;case"spherical":m.model=u}var g,y,_,A,v=e.length,C=Array((v*v-v)/2);for(g=0,_=0;g<v;g++)for(y=0;y<g;y++,_++)C[_]=Array(2),C[_][0]=Math.pow(Math.pow(c[g]-c[y],2)+Math.pow(h[g]-h[y],2),.5),C[_][1]=Math.abs(e[g]-e[y]);C.sort(function(e,t){return e[0]-t[0]}),m.range=C[(v*v-v)/2-1][0];var b=(v*v-v)/2>30?30:(v*v-v)/2,w=m.range/b,x=[0].xe_rep(b),S=[0].xe_rep(b);if(b<30)for(A=0;A<b;A++)x[A]=C[A][0],S[A]=C[A][1];else{for(g=0,y=0,_=0,A=0;g<b&&y<(v*v-v)/2;g++,_=0){for(;C[y][0]<=(g+1)*w&&(x[A]+=C[y][0],S[A]+=C[y][1],_++,!(++y>=(v*v-v)/2)););_>0&&(x[A]/=_,S[A]/=_,A++)}if(A<2)return m}v=A,m.range=x[v-1]-x[0];var M=[1].xe_rep(2*v),P=Array(v),E=m.A;for(g=0;g<v;g++){switch(p){case"gaussian":M[2*g+1]=1-Math.exp(-1/E*Math.pow(x[g]/m.range,2));break;case"exponential":M[2*g+1]=1-Math.exp(-1/E*x[g]/m.range);break;case"spherical":M[2*g+1]=x[g]/m.range*1.5-.5*Math.pow(x[g]/m.range,3)}P[g]=S[g]}var L=function(e,t,i){var n,r,o=Array(i*t);for(n=0;n<t;n++)for(r=0;r<i;r++)o[r*t+n]=e[n*i+r];return o}(M,v,2),T=n(L,M,2,v,2),O=(T=i(T,t(1/f,2),2,2)).slice(0);r(T,2)?o(T,2):(s(O,2),T=O);var D=n(n(T,L,2,2,v),P,2,v,1);m.nugget=D[0],m.sill=D[1]*m.range+m.nugget,m.n=c.length,v=c.length;var B=Array(v*v);for(g=0;g<v;g++){for(y=0;y<g;y++)B[g*v+y]=m.model(Math.pow(Math.pow(c[g]-c[y],2)+Math.pow(h[g]-h[y],2),.5),m.nugget,m.range,m.sill,m.A),B[y*v+g]=B[g*v+y];B[g*v+g]=m.model(0,m.nugget,m.range,m.sill,m.A)}var I=i(B,t(d,v),v,v),R=I.slice(0);r(I,v)?o(I,v):(s(R,v),I=R);B=I.slice(0);var N=n(I,e,v,v,1);return m.K=B,m.M=N,m},e.predict=function(e,t,i){var r,o=Array(i.n);for(r=0;r<i.n;r++)o[r]=i.model(Math.pow(Math.pow(e-i.x[r],2)+Math.pow(t-i.y[r],2),.5),i.nugget,i.range,i.sill,i.A);return n(o,i.M,1,i.n,1)[0]},e.variance=function(e,t,i){var r,o=Array(i.n);for(r=0;r<i.n;r++)o[r]=i.model(Math.pow(Math.pow(e-i.x[r],2)+Math.pow(t-i.y[r],2),.5),i.nugget,i.range,i.sill,i.A);return i.model(0,i.nugget,i.range,i.sill,i.A)+n(n(o,i.K,1,i.n,i.n),o,1,i.n,1)[0]},e.grid=function(t,i,n){var r,o,s,a=t.length;if(0!=a){var l,u,c=[t[0][0][0],t[0][0][0]],h=[t[0][0][1],t[0][0][1]];for(r=0;r<a;r++)for(o=0;o<t[r].length;o++)t[r][o][0]<c[0]&&(c[0]=t[r][o][0]),t[r][o][0]>c[1]&&(c[1]=t[r][o][0]),t[r][o][1]<h[0]&&(h[0]=t[r][o][1]),t[r][o][1]>h[1]&&(h[1]=t[r][o][1]);var p=Array(2),d=Array(2),f=Array(2),m=Array(2),g=Math.ceil((c[1]-c[0])/n),y=Math.ceil((h[1]-h[0])/n),_=Array(g+1);for(r=0;r<=g;r++)_[r]=Array(y+1);for(r=0;r<a;r++){for(f[0]=t[r][0][0],f[1]=f[0],m[0]=t[r][0][1],m[1]=m[0],o=1;o<t[r].length;o++)t[r][o][0]<f[0]&&(f[0]=t[r][o][0]),t[r][o][0]>f[1]&&(f[1]=t[r][o][0]),t[r][o][1]<m[0]&&(m[0]=t[r][o][1]),t[r][o][1]>m[1]&&(m[1]=t[r][o][1]);for(p[0]=Math.floor((f[0]-(f[0]-c[0])%n-c[0])/n),p[1]=Math.ceil((f[1]-(f[1]-c[1])%n-c[0])/n),d[0]=Math.floor((m[0]-(m[0]-h[0])%n-h[0])/n),d[1]=Math.ceil((m[1]-(m[1]-h[1])%n-h[0])/n),o=p[0];o<=p[1];o++)for(s=d[0];s<=d[1];s++)l=c[0]+o*n,u=h[0]+s*n,t[r].xe_pip(l,u)&&(_[o][s]=e.predict(l,u,i))}return _.xlim=c,_.ylim=h,_.zlim=[i.t.xe_min(),i.t.xe_max()],_.width=n,_}},e.contour=function(e,t,i){},e.plot=function(e,t,i,n,r){var o=e.getContext("2d");o.clearRect(0,0,e.width,e.height);var s,a,l,u,c,h=[i[1]-i[0],n[1]-n[0],t.zlim[1]-t.zlim[0]],p=t.length,d=t[0].length,f=Math.ceil(t.width*e.width/(i[1]-i[0])),m=Math.ceil(t.width*e.height/(n[1]-n[0]));for(s=0;s<p;s++)for(a=0;a<d;a++)null!=t[s][a]&&(l=e.width*(s*t.width+t.xlim[0]-i[0])/h[0],u=e.height*(1-(a*t.width+t.ylim[0]-n[0])/h[1]),(c=(t[s][a]-t.zlim[0])/h[2])<0&&(c=0),c>1&&(c=1),o.fillStyle=r[Math.floor((r.length-1)*c)],o.fillRect(Math.round(l-f/2),Math.round(u-m/2),f,m))},e}();const y1=g1;var _1=__webpack_require__(6763);let A1,v1;function C1(e,t,i){const[n,r]=[0,1],o=255*(e=e<n?n:e>r?r:e)|0,s=t[4*o],a=t[4*o+1],l=t[4*o+2],u=t[4*o+3];return i||(i=[255,255,255,255]),i[0]=s,i[1]=a,i[2]=l,i[3]=u,i}class b1 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),zm.A.registerPosition(this),this.disposers.push((0,Xx.p6)(this._earth,this,{positionEditingProperty:"editing"})),this.disposers.push((0,Xx.Me)(this._earth,this,{positionPickingProperty:"creating"})),this._customGroundRectangle=new lacdt.Obj.CustomGroundRectangle(e),this.disposers.push((0,SM.A)(this._customGroundRectangle,"show",this,"show")),this.disposers.push(()=>{this._customGroundRectangle=this._customGroundRectangle&&this._customGroundRectangle.destroy()});const i=()=>{const e=this._customGroundRectangle;e.position=this.position,e.width=this.width,e.height=this.height,e.canvasWidth===this.dataWidth&&e.canvasHeight===this.dataHeight||(e.canvasWidth=this.dataWidth,e.canvasHeight=this.dataHeight,e.drawCanvas(e=>{e.fillStyle="white",e.fillRect(0,0,this.dataWidth,this.dataHeight)}))};i(),this.disposers.push((0,Wm.reaction)(()=>({position:[...this.position],width:this.width,height:this.height,dataWidth:this.dataWidth,dataHeight:this.dataHeight}),i)),this._imageData=void 0,this._colorPalette=new Uint8ClampedArray(1024),this._colorPalette.fill(255),this.disposers.push(()=>{this._imageData=void 0,this._colorPalette=void 0});const n=()=>{!function(e,t){if(t){if(!t instanceof Uint8ClampedArray)throw new Error("result类型不对!");if(1024!==t.length)throw new Error("result的数组长度不对,必须为256!")}if(!A1){var i=document.createElement("canvas"),n=i.getContext("2d");i.width=256,i.height=1,A1=n}var r=A1.createLinearGradient(0,0,256,1);e.forEach(e=>{r.addColorStop(e[0],e[1])}),A1.clearRect(0,0,256,1),A1.fillStyle=r,A1.fillRect(0,0,256,1);const o=A1.getImageData(0,0,256,1).data;t?o.forEach((e,i)=>t[i]=e):t=new Uint8ClampedArray(o)}(this.gradient,this._colorPalette)};n(),this.disposers.push((0,Wm.reaction)(()=>({gradient:[...this.gradient]}),n))}setGridData(e){const t=e;if(t&&t.length&&t.length===this.dataWidth*this.dataHeight){this._imageData&&this._imageData.width===this.dataWidth&&this._imageData.height===this.dataHeight||(this._imageData=new ImageData(this.dataWidth,this.dataHeight));const e=this.maxValue-this.minValue,i=[255,255,255,255],n=this.dataHeight,r=this.dataWidth,o=this._imageData.data,s=this.minValue,a=this._colorPalette;if(!v1){v1=Function(`\n "use strict";\n return (function(data, valueRange, color, dataHeight, dataWidth, imageData, minValue, colorPalette, getColorFromColorPalette){\n ${"\n for (let j=0; j<dataHeight; ++j) {\n for (let i=0; i<dataWidth; ++i) {\n const v = data[j*dataWidth+i];\n const ratio = (v - minValue) / valueRange;\n const c = getColorFromColorPalette(ratio, colorPalette, color);\n if (c) {\n const offset = (j*dataWidth+i) * 4;\n imageData[offset + 0] = c[0];\n imageData[offset + 1] = c[1];\n imageData[offset + 2] = c[2];\n imageData[offset + 3] = c[3];\n }\n }\n }\n "}\n });\n `)()}v1(t,e,i,n,r,o,s,a,C1);const l=this._customGroundRectangle;l.canvasWidth=this.dataWidth,l.canvasHeight=this.dataHeight,l.drawCanvas(e=>{e.putImageData(this._imageData,0,0)})}else{const e=this._customGroundRectangle;e.canvasWidth=this.dataWidth,e.canvasHeight=this.dataHeight,e.drawCanvas(e=>{e.fillStyle="white",e.fillRect(0,0,this.dataWidth,this.dataHeight)})}}copyfromOtherCanvas(e){e.width===this.dataWidth&&e.height===this.dataHeight?this._customGroundRectangle&&this._customGroundRectangle._texture&&this._customGroundRectangle._texture.copyFrom(e):_1.warn("请确保canvas尺寸一致!")}flyTo(){this._earth.camera.flyTo(this.position,this.width,[0,-Math.PI/3,0])}}b1.getGridDataFromKriging=function(e,t,i,n,{model:r="exponential",sigma2:o=0,alpha:s=100}={}){const a=n;try{const n=[],l=[],u=[];e.forEach(e=>{l.push(e[0]),u.push(e[1]),n.push(e[2])});const c=y1.train(n,l,u,r,o,s);for(let e=0;e<t;++e)for(let n=0;n<i;++n)if(a[n*t+e]=y1.predict(e,n,c),!isFinite(a[n*t+e]))throw new Error("克里金插值计算出错!");return a}catch(e){return void _1.warn("error: "+e)}},b1.interpolateGridData=function(e,t,i,n,r){try{if(!r)return;for(let o=0;o<n;++o)r[o]=t[o]*(1-e)+i[o]*e;return r}catch(e){return}},b1.defaultOptions={position:[0,0,0],width:100,height:100,origin:[.5,.5],rotation:0,show:!0,gradient:[[0,"green"],[.2,"blue"],[.6,"yellow"],[1,"red"]],minValue:0,maxValue:1,dataWidth:100,dataHeight:100},Cu.A.registerType(b1,"HeatMap");const w1=b1;function x1(e,t,i){let n;"function"==typeof e.next?n=e:(e[Symbol.iterator],n=e[Symbol.iterator]());let r=i||n.next().value;for(let e of n)r=t(r,e);return r}function S1(e){return x1(e,(e,t)=>e>t?e:t,Number.NEGATIVE_INFINITY)}function M1(e){return x1(e,(e,t)=>e<t?e:t,Number.POSITIVE_INFINITY)}function*P1(e,...t){const i=e.length;for(let n=0;n<i;++n){let i=e[n];t.forEach(e=>i=i[e]),yield i}}let E1;const L1=function(e,t){let i;E1=E1||new Cesium.Cartesian3;{const t=P1,n=e,r=[M1(t(n,"position","0")),M1(t(n,"position","1")),M1(t(n,"position","2"))],o=[S1(t(n,"position","0")),S1(t(n,"position","1")),S1(t(n,"position","2"))],s=[.5*(r[0]+o[0]),.5*(r[1]+o[1]),r[2]],a=Cesium.Cartesian3.fromRadians(...s,void 0,new Cesium.Cartesian3),l=Cesium.Transforms.eastNorthUpToFixedFrame(a,void 0,new Cesium.Matrix4),u=Cesium.Matrix4.inverse(l,new Cesium.Matrix4);e.forEach(e=>{const t=e.position;let i=Cesium.Cartesian3.fromRadians(t[0],t[1],t[2],void 0,E1);if(i=Cesium.Matrix4.multiplyByPoint(u,i,i),!i)throw new Error("localPosition 计算错误!");e.localPosition=[i.x,i.y,i.z]}),i=l}return i};!function(e=6,t=Math.PI/4,i=1080){Math.tan(.5*t)}();const T1=2*Math.PI*6378137,O1=.1*T1/256,D1=[...new Array(31).keys()].map(e=>O1/(1<<e)),B1=[...new Array(31).keys()].map(e=>T1/(1<<e));let I1,R1,N1,k1,F1;function H1(e,t,i){I1=I1||new Cesium.Cartesian3,R1=R1||new Cesium.Cartesian3,N1=N1||new Cesium.Cartesian3,k1=k1||new Cesium.Quaternion,F1=F1||new Cesium.Matrix4;const n=[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY],r=[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY];return e.index.forEach(e=>{const o=t[e].localPosition,s=i[t[e].type||0],a=t[e].rotation,l=t[e].scale;let u,c;{const e=Cesium.Quaternion.fromHeadingPitchRoll(new Cesium.HeadingPitchRoll(a[0],a[1],a[2]),k1),t=Cesium.Cartesian3.fromElements(l[0],l[1],l[2],N1);u=Cesium.Matrix4.fromTranslationQuaternionRotationScale(Cesium.Cartesian3.ZERO,e,t,F1)}{const e=s.center,t=s.size.map(e=>.5*e);c=[[e[0]-t[0],e[1]-t[1],e[2]-t[2]],[e[0]+t[0],e[1]-t[1],e[2]-t[2]],[e[0]+t[0],e[1]+t[1],e[2]-t[2]],[e[0]-t[0],e[1]+t[1],e[2]-t[2]],[e[0]-t[0],e[1]-t[1],e[2]+t[2]],[e[0]+t[0],e[1]-t[1],e[2]+t[2]],[e[0]+t[0],e[1]+t[1],e[2]+t[2]],[e[0]-t[0],e[1]+t[1],e[2]+t[2]]],c=c.map(e=>{const t=Cesium.Matrix4.multiplyByPoint(u,Cesium.Cartesian3.fromElements(e[0],e[1],e[2],I1),I1);return[t.x,t.y,t.z]})}const h=P1,p=[o[0]+M1(h(c,"0")),o[1]+M1(h(c,"1")),o[2]+M1(h(c,"2"))],d=[o[0]+S1(h(c,"0")),o[1]+S1(h(c,"1")),o[2]+S1(h(c,"2"))];for(let e=0;e<3;++e)n[e]=n[e]<p[e]?n[e]:p[e],r[e]=r[e]>d[e]?r[e]:d[e]}),[n,r]}const Y1=function(e,t){let i,n,r;{const t=P1,o=e;n=[M1(t(o,"localPosition","0")),M1(t(o,"localPosition","1")),M1(t(o,"localPosition","2"))],r=[S1(t(o,"localPosition","0")),S1(t(o,"localPosition","1")),S1(t(o,"localPosition","2"))];for(let e=0;e<3;++e)n[e]-=.001,r[e]+=.001;const s=r[0]-n[0],a=r[1]-n[1];i=S1([s,a])}let o=B1.findIndex(e=>e<i)-1;o<0&&(o=23);const s=e.length;let a={index:[...new Array(s).keys()],level:o,min:n,max:r,children:[],name:"R"};const l=[a];for(;l.length>0;){const t=l.pop(),i=t.level+1;if(i>23)continue;const n=B1[i];[[0,0],[0,1],[1,0],[1,1]].forEach(r=>{const o=[...t.min];o[0]+=n*r[0],o[1]+=n*r[1];const s=[...o];if(s[0]+=n,s[1]+=n,s[2]=t.max[2],o[0]<t.max[0]&&o[1]<t.max[1]){s[0]=s[0]>t.max[0]?t.max[0]:s[0],s[1]=s[1]>t.max[1]?t.max[1]:s[1];const n={index:[],level:i,min:o,max:s,children:[],name:`${t.name}${r[0]}${r[1]}`};t.index.forEach(t=>{const i=e[t].localPosition;i[0]>=o[0]&&i[0]<s[0]&&i[1]>=o[1]&&i[1]<s[1]&&n.index.push(t)}),n.index.length>0&&(t.children.push(n),l.push(n))}})}{const i=[a];for(;i.length>0;){const n=i[i.length-1];if(n.children&&n.children.length>0)if(n.children[0].extendMin){const e=n.children,t=P1;n.extendMin=[M1(t(e,"extendMin","0")),M1(t(e,"extendMin","1")),M1(t(e,"extendMin","2"))],n.extendMax=[S1(t(e,"extendMax","0")),S1(t(e,"extendMax","1")),S1(t(e,"extendMax","2"))],i.pop()}else n.children.forEach(e=>{i.push(e)});else{const[r,o]=H1(n,e,t);n.extendMin=r,n.extendMax=o,i.pop()}}}return a};const j1=function(e,t,i,n){const r={cmptMaps:new Map,treeData:t,treeTypes:i,rootJSON:void 0,tilesetJSON:void 0};let o;{let t;{const i=e.extendMin,n=e.extendMax,r=[.5*(i[0]+n[0]),.5*(i[1]+n[1]),.5*(i[2]+n[2])],o=[.5*(n[0]-i[0]),.5*(n[1]-i[1]),.5*(n[2]-i[2])];t=[r[0],r[1],r[2],o[0],0,0,0,o[1],0,0,0,o[2]]}const i=Cesium.Matrix4.toArray(n),s=D1[e.level],a=`L${e.level}-${e.name}.cmpt`;o={refine:"REPLACE",boundingVolume:{box:t},transform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],geometricError:16*s,content:{uri:a},extras:{gvolID:Cesium.createGuid(),parentXbsjID:null,level:e.level}};const l={asset:{generatetool:"cesiumlab2@www.cesiumlab.com",gltfUpAxis:"Z",version:"1.0"},root:{refine:"REPLACE",boundingVolume:{box:t},transform:i,geometricError:16*s,content:{uri:"./root.json"}}};r.tilesetJSON=l,r.cmptMaps.set(a,{block:e,geometricError:s})}const s=[{parentBlock:e,parentTile:o}];for(;s.length>0;){const{parentBlock:e,parentTile:i}=s.pop();e.children.forEach(e=>{let n,o;{function*u(i){const n=e.index.length;for(let r=0;r<n;++r){const n=e.index[r];yield t[n].localPosition[i]}}n=[M1(u(0)),M1(u(1)),M1(u(2))],o=[S1(u(0)),S1(u(1)),S1(u(2))]}const a=e.min,l=e.max;if(!(a[0]<=n[0]&&a[1]<=n[1]&&a[2]<=n[2]&&l[0]>o[0]&&l[1]>o[1]&&l[2]>o[2]))throw new Error("fillBlocks error");{let c;{const m=e.extendMin,g=e.extendMax,y=[.5*(m[0]+g[0]),.5*(m[1]+g[1]),.5*(m[2]+g[2])],_=[.5*(g[0]-m[0]),.5*(g[1]-m[1]),.5*(g[2]-m[2])];c=[y[0],y[1],y[2],_[0],0,0,0,_[1],0,0,0,_[2]]}const h=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],p=D1[e.level],d=`L${e.level}-${e.name}.cmpt`,f={refine:"REPLACE",boundingVolume:{box:c},transform:h,geometricError:16*p,extras:{gvolID:Cesium.createGuid(),parentXbsjID:i.gvolID,level:e.level},content:{uri:d}};i.children=i.children||[],i.children.push(f),r.cmptMaps.set(d,{block:e,geometricError:p}),e.children.length>0&&s.push({parentBlock:e,parentTile:f})}})}const a={asset:{generatetool:"cesiumlab2@www.cesiumlab.com",gltfUpAxis:"Z",version:"1.0"},root:o};return r.rootJSON=a,r};const U1=function(e,t,i=0,n=0,r=t.byteLength){const o=new Uint8Array(t.buffer||t,n,r),s=new Uint8Array(e,i,r);for(let e=0;e<r;++e)s[e]=o[e]},G1=new TextEncoder;const Q1=function(e){const t=16+e.reduce((e,t)=>e+t.byteLength,0),i=e.length,n=G1.encode("cmpt"),r=new ArrayBuffer(t),o=new Uint32Array(r,0,4);o[0]=new DataView(n.buffer).getUint32(0,!0),o[1]=1,o[2]=t,o[3]=i;let s=16;return e.forEach(e=>{if(e.byteLength%8!=0)throw new Error("tileBuffer.byteLength % 8 !== 0");U1(r,e,s),s+=e.byteLength}),r};const z1=function(e,t,i,n=0){const r=new Uint8Array(e,t,i);for(let e=0;e<i;++e)r[e]=n},W1=new TextEncoder;let X1,V1;const J1=function(e,t,i){const n={magic:"i3dm",version:1,byteLength:0,featureTableJSONByteLength:0,featureTableBinaryByteLength:0,batchTableJSONByteLength:0,batchTableBinaryByteLength:0,gltfFormat:0},r={featureTable:{JSON:void 0,JSONExtraByteLength:0,Binary:void 0,BinaryExtraByteLength:0},batchTable:{JSON:void 0,JSONExtraByteLength:0,Binary:void 0,BinaryExtraByteLength:0},urlOrBinaryGltf:void 0,urlOrBinaryGltfExtraByteLength:0};{const n=t.length,o=12*n,s=12*n*2,a=12*n*3;{const e={INSTANCES_LENGTH:n,POSITION:{byteOffset:0},NORMAL_UP:{byteOffset:o},NORMAL_RIGHT:{byteOffset:s},SCALE_NON_UNIFORM:{byteOffset:a},BATCH_ID:{byteOffset:12*n*4}},t=JSON.stringify(e);r.featureTable.JSON=W1.encode(t);const i=r.featureTable.JSON.byteLength;r.featureTable.JSONExtraByteLength=(8-i%8)%8}{const i=new ArrayBuffer(50*n),l=new Float32Array(i,0,3*n*4),u=new Uint16Array(i,48*n,n);t.forEach((t,i)=>{const n=e[t],r=n.localPosition;l[3*i+0]=r[0],l[3*i+1]=r[1],l[3*i+2]=r[2];{X1=X1||new Cesium.Matrix3,V1=V1||new Cesium.HeadingPitchRoll,V1.heading=n.rotation[0],V1.pitch=n.rotation[1],V1.roll=n.rotation[2];const e=Cesium.Matrix3.fromHeadingPitchRoll(V1,X1);l[o/4+3*i+0]=e[6],l[o/4+3*i+1]=e[7],l[o/4+3*i+2]=e[8],l[s/4+3*i+0]=e[0],l[s/4+3*i+1]=e[1],l[s/4+3*i+2]=e[2]}l[a/4+3*i+0]=n.scale[0],l[a/4+3*i+1]=n.scale[1],l[a/4+3*i+2]=n.scale[2],u[i]=i}),r.featureTable.Binary=i;const c=r.featureTable.Binary.byteLength;r.featureTable.BinaryExtraByteLength=(8-c%8)%8}{const e={id:t.map(e=>""+e)},i=JSON.stringify(e);r.batchTable.JSON=W1.encode(i);const n=r.batchTable.JSON.byteLength;r.batchTable.JSONExtraByteLength=(8-n%8)%8}{r.urlOrBinaryGltf=W1.encode(i);const e=r.urlOrBinaryGltf.byteLength;r.urlOrBinaryGltfExtraByteLength=(8-e%8)%8}}{n.featureTableJSONByteLength=r.featureTable.JSON.byteLength+r.featureTable.JSONExtraByteLength,n.featureTableBinaryByteLength=r.featureTable.Binary.byteLength+r.featureTable.BinaryExtraByteLength,n.batchTableJSONByteLength=(r.batchTable.JSON?r.batchTable.JSON.byteLength:0)+r.batchTable.JSONExtraByteLength,n.batchTableBinaryByteLength=(r.batchTable.Binary?r.batchTable.Binary.byteLength:0)+r.batchTable.BinaryExtraByteLength;const e=n.featureTableJSONByteLength+n.featureTableBinaryByteLength+n.batchTableJSONByteLength+n.batchTableBinaryByteLength+r.urlOrBinaryGltf.byteLength+r.urlOrBinaryGltfExtraByteLength;n.byteLength=32+e}const o=new ArrayBuffer(32);{const e=new Uint8Array(o,0,4);{const t=n.magic.length;for(let i=0;i<t;++i){const t=n.magic.codePointAt(i);if(t>255)throw new Error("codePoint > 255");e[i]=t}}const t=new Uint32Array(o,4,7);t[0]=n.version,t[1]=n.byteLength,t[2]=n.featureTableJSONByteLength,t[3]=n.featureTableBinaryByteLength,t[4]=n.batchTableJSONByteLength,t[5]=n.batchTableBinaryByteLength,t[6]=n.gltfFormat}const s=new ArrayBuffer(n.byteLength);{let e=0;U1(s,o,e),e+=o.byteLength,U1(s,r.featureTable.JSON,e),e+=r.featureTable.JSON.byteLength,z1(s,e,r.featureTable.JSONExtraByteLength,32),e+=r.featureTable.JSONExtraByteLength,U1(s,r.featureTable.Binary,e),e+=r.featureTable.Binary.byteLength,z1(s,e,r.featureTable.BinaryExtraByteLength,0),e+=r.featureTable.BinaryExtraByteLength,r.batchTable.JSON&&(U1(s,r.batchTable.JSON,e),e+=r.batchTable.JSON.byteLength,z1(s,e,r.batchTable.JSONExtraByteLength,32),e+=r.batchTable.JSONExtraByteLength),r.batchTable.Binary&&(U1(s,r.batchTable.Binary,e),e+=r.batchTable.Binary.byteLength,z1(s,e,r.batchTable.BinaryExtraByteLength,0),e+=r.batchTable.BinaryExtraByteLength),U1(s,r.urlOrBinaryGltf,e),e+=r.urlOrBinaryGltf.byteLength;const t=0===n.gltfFormat?32:0;if(z1(s,e,r.urlOrBinaryGltfExtraByteLength,t),e+=r.urlOrBinaryGltfExtraByteLength,e!==n.byteLength)throw new Error("targetByteOffset !== header.byteLength")}return s};const K1=function(e,t,i,n){const r={};e.index.forEach(e=>{const i=t[e].type||0;r[i]=r[i]||[],r[i].push(e)});const o=Object.keys(r).map(e=>{const o=i[e],s=r[e];let a=o.lods.findIndex(e=>{const t=e[0];return S1(o.size)<n*t});a=a<0?o.lods.length-1:a;const l=o.lods[a][1];return J1(t,s,l)});return Q1(o)};var Z1=__webpack_require__(6763);const q1=function(e,t){const i=L1(e,t),n=Y1(e,t),r=j1(n,e,t,i);return e=>function(e,t){const i=t.treeData,n=t.treeTypes;if(!e.endsWith(".cmpt"))return"tileset.json"===e?t.tilesetJSON:"root.json"===e?t.rootJSON:void 0;if(t.cmptMaps.has(e))try{const r=t.cmptMaps.get(e);return K1(r.block,i,n,r.geometricError)}catch(e){return void Z1.warn("createCmptFromBlock error!")}}(e,r)};const $1=class{constructor(){this._generators={}}createGenerator(e,t){const i=q1(e,t),n=Cesium.createGuid();return this._generators[n]=i,n}getGenerator(e){return this._generators[e]}destroyGenerator(e){delete this._generators[e]}destroy(){this._generators=void 0}};const e2=function(){if(window.gvolTreeGeneratorManager)return;const e=new $1;window.gvolTreeGeneratorManager=e;const t=Cesium.Resource.prototype.fetchJson,i=Cesium.Resource.prototype.fetchArrayBuffer;Cesium.Resource.prototype.fetchJson=function(...i){if(!this.url.startsWith("https://gvoltree.cn/"))return t.call(this,...i);{const t=this.url.substring(20,56),i=this.url.substring(57),n=e.getGenerator(t);if(n){const e=n(i);return Cesium.when.resolve(e)}}},Cesium.Resource.prototype.fetchArrayBuffer=function(...t){if(!this.url.startsWith("https://gvoltree.cn/"))return i.call(this,...t);{const t=this.url.substring(20,56),i=this.url.substring(57),n=e.getGenerator(t);if(n){let e=n(i);if(!(e instanceof ArrayBuffer)){const t=JSON.stringify(e);e=(new TextEncoder).encode(t)}return Cesium.when.resolve(e)}}}};var t2=__webpack_require__(6763);class i2 extends rg.A{constructor(e,t){super(e,t),this._treeData=[],this._treeTypes=[],this.disposers.push((0,ng.A)(this,"enabled",this,"show")),e2(),this._tileset=new Kw.A(e),this.disposers.push(()=>{this._tileset=this._tileset&&this._tileset.destroy()}),this._tgid=void 0,this.disposers.push(()=>{window.gvolTreeGeneratorManager.destroyGenerator(this._tgid),this._tgid=void 0}),this._recreatingTreeTileset=void 0,this.disposers.push(()=>{this._recreatingTreeTileset&&this._recreatingTreeTileset.unsubscribe()}),this._loadingTreeMeta=void 0,this.disposers.push(()=>{this._loadingTreeMeta&&(this._loadingTreeMeta.unsubscribe(),this._loadingTreeMeta=void 0)}),this._loadTreeMeta(this.treeMetas),this.disposers.push((0,Wm.reaction)(()=>JSON.stringify(this.treeMetas),()=>{this._loadTreeMeta(this.treeMetas)})),this._loadingTreeData=void 0,this.disposers.push(()=>{this._loadingTreeData&&(this._loadingTreeData.unsubscribe(),this._loadingTreeData=void 0)}),this._loadTreeData(this.treeDataUrl),this.disposers.push((0,Wm.reaction)(()=>this.treeDataUrl,()=>{this._loadTreeData(this.treeDataUrl)}));this.disposers.push((0,Wm.reaction)(()=>this.show,()=>{this._tileset.show=this.show}))}flyTo(){this._tileset.flyTo()}reload(){this._loadTreeData(this.treeDataUrl)}recreate(){this._recreateTreeTilesetDelay()}getTreeData(){return this._treeData}getTreeTypes(){return this._treeTypes}_recreateTreeTilesetDelay(){this._recreatingTreeTileset&&this._recreatingTreeTileset.unsubscribe(),this._recreatingTreeTileset=rxjs.timer(3e3).subscribe(()=>this._recreateTreeTileset(),void 0,this._recreatingTreeTileset=void 0)}_recreateTreeTileset(){this._treeTypes&&this._treeTypes.length>0&&this._treeData&&this._treeData.length>0&&(this._tgid=this._tgid&&window.gvolTreeGeneratorManager.destroyGenerator(this._tgid),this._tgid=window.gvolTreeGeneratorManager.createGenerator(this._treeData,this._treeTypes),this._tileset.url=`https://gvoltree.cn/${this._tgid}/tileset.json`)}_loadTreeMeta(e){if(this._loadingTreeMeta&&(this._loadingTreeMeta.unsubscribe(),this._loadingTreeMeta=void 0),!e||0===e.length)return;const t=e.map((e,t)=>({metaUrl:e.url,index:t}));this._loadingTreeMeta=rxjs.from(t).pipe(rxjs.operators.mergeMap(e=>{const{metaUrl:t,index:i}=e;return function(e){var t=new rxjs.Observable(t=>{try{Cesium.Resource.fetchJson(e).then(e=>{t.next(e),t.complete()}).otherwise(e=>{t.next(void 0),t.complete()})}catch(e){t2.warn(`catch 获取数据出错: fetchJson(metaUrl) ${e}`),t.next(void 0),t.complete()}});return t}(t).pipe(rxjs.operators.map(e=>({metaData:e,metaUrl:t,index:i})))},void 0,6),rxjs.operators.toArray(),rxjs.operators.map(e=>{if(e.some(e=>void 0!==e.metaData)){const t=new Array(e.length);e.forEach(e=>{const{metaUrl:i,metaData:n,index:r}=e;let o=i.lastIndexOf("?");o=-1===o?void 0:o;const s=i.substring(0,o);if(s.endsWith("meta.json")){const e=function(e,t,i){const{center:n,size:r,lod0Pixel:o}=i;let s=o;return{name:e,center:n,size:r,lods:i.lod.map(e=>{const i=[s,t+e.url];return s*=2,i})}}("anonymous",s.substring(0,s.lastIndexOf("meta.json")),n);t[r]=e}}),this._treeTypes=t,this._recreateTreeTilesetDelay()}})).subscribe(void 0,e=>{t2.error("treeMeta error! "+e),this._loadingTreeMeta=void 0},()=>{this._loadingTreeMeta=void 0})}_loadTreeData(e){if(this._loadingTreeData&&(this._loadingTreeData.unsubscribe(),this._loadingTreeData=void 0),!e)return;const t=(-1===e.lastIndexOf("?")?"?":"&")+"xxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)});var i=new rxjs.Observable(i=>{Cesium.Resource.fetchJson(e+t).then(e=>{i.next(e),i.complete()}).otherwise(e=>{i.error(e)})});this._loadingTreeData=i.subscribe(e=>{this._treeData=e,this._recreateTreeTilesetDelay()},e=>{t2.error("treeData error! "+e),this._loadingTreeData=void 0},()=>{this._loadingTreeData=void 0})}}i2.testRandomTreeData=function(e=500,t,i,n){const r=Math.PI/180;t=t||[116.39*r,39.9*r,0],i=i||3*(0|Math.sqrt(e)),n=n||3*(0|Math.sqrt(e));const o=i/(6378137*Math.cos(t[1])),s=n/6378137,a=[];for(let i=0;i<e;++i){const e=.3*Math.random()+.7,n={position:[t[0]+o*Math.random(),t[1]+s*Math.random(),1*Math.random()],rotation:[Math.random()*Math.PI,0,0],scale:[e,e,e],id:`id${i}`,type:0};a.push(n)}return a},i2.defaultOptions={treeDataUrl:"",treeMetas:[],show:!0};i2.gvolSchema={title:"Forest Property",type:"object",properties:{show:{type:"boolean",title:"显示",default:!0,description:"显示"},treeDataUrl:{type:"string",title:"点位信息url",default:"",description:"点位信息url"},treeMetas:{type:"array",items:{type:"Obj.Forest.TreeMeta"},minItems:0,title:"实例类型url集合",default:[],description:"实例类型url集合"}}};i2.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["show","treeDataUrl","treeMetas"]}],Cu.A.registerType(i2,"Forest");const n2=i2;const r2=function(e,t){var i;return t=t||{},e>=0?(i=65536*Math.floor(e/65536),t.high=i,t.low=e-i):(i=65536*Math.floor(-e/65536),t.high=-i,t.low=e+i),t};var o2=__webpack_require__(6763);const s2={high:void 0,low:void 0},a2=["size","origin","subImageYOffset","subImageWidth","subImageHeight","animateImageNum","startTime","duration","rotationSpeed","scale","pixelOffset","color","show"],l2={size:void 0,origin:void 0,subImageYOffset:0,subImageWidth:void 0,subImageHeight:void 0,animateImageNum:void 0,startTime:void 0,duration:void 0,rotationSpeed:0,scale:1,pixelOffset:[0,0],color:[255,255,255,255],show:!0},u2=[0,0,0,0];class c2{constructor(e,t){this._disposers=[],this._color=void 0,this._show=void 0,this._dynamicPoisPrimitive=e,a2.forEach(e=>{this[e]=t[e]||l2[e],void 0===this[e]&&o2.warn("有属性值未undefined")}),this._instancePositionHigh=[0,0,0],this._instancePositionLow=[0,0,0],this.instancePosition=t.instancePosition}get instancePosition(){return this._instancePosition}get instancePositionHigh(){return this._instancePositionHigh}get instancePositionLow(){return this._instancePositionLow}set instancePosition(e){if(this._instancePosition!==e){this._instancePosition=e;for(let e=0;e<3;++e){const t=r2(this._instancePosition[e],s2);this._instancePositionHigh[e]=t.high,this._instancePositionLow[e]=t.low}this._dynamicPoisPrimitive._instancePropertyDirty=!0}}get blendColor(){return this._show?this._color:u2}get allowPicking(){return!0}onclick(){this.scale=1.5}onclickout(){this.scale=1}onmouseover(){this.scale=1.2}onmouseout(){this.scale=1}isDestroyed(){return!1}_destroy(){return this._disposers.reverse(),this._disposers.forEach(e=>e()),this._disposers.length=0,Cesium.destroyObject(this)}destroy(){this._dynamicPoisPrimitive.remove(this)}}a2.forEach(function(e){Object.defineProperty(c2.prototype,e,{get(){return this["_"+e]},set(t){this["_"+e]!==t&&(this["_"+e]=t,this._dynamicPoisPrimitive._instancePropertyDirty=!0)}})});const h2=c2,p2=(e,t)=>`#version 300 es\n precision highp float;\n\n in vec2 positionOrTexCoord;\n\n ${e}\n\n // uniform vec4 czm_viewport;\n uniform float u_engineTime;\n uniform vec4 u_animateTextureSize; // u_animateTextureSize => imageWidth, imageHeight, 1.0/imageWidth, 1.0/imageHeight\n\n out vec2 v_texCoord;\n out vec4 v_color;\n out vec4 v_pickColor;\n void main() {\n ${t}\n\n vec4 p = czm_translateRelativeToEye(instancePositionHigh, instancePositionLow);\n vec4 instancePosition = czm_modelViewProjectionRelativeToEye * p;\n instancePosition /= instancePosition.w;\n\n float rotationRatio = 0.0;\n if (rotationSpeed != 0.0) {\n float rotationDuration = 2.0 * 3.14159265 / rotationSpeed;\n rotationRatio = mod(u_engineTime + startTime, rotationDuration) / rotationDuration;\n }\n vec2 localPos = (positionOrTexCoord - origin) * size * 2.0;\n mat2 scaleM = mat2(scale, 0.0, 0.0, scale);\n vec2 csr = vec2(cos(rotationRatio * 3.14159265 * 2.0), sin(rotationRatio * 3.14159265 * 2.0));\n mat2 rotateM = mat2(csr, -csr.y, csr.x);\n localPos = rotateM * scaleM * localPos;\n localPos /= czm_viewport.zw;\n vec2 offsetW = pixelOffset * 2.0 / czm_viewport.zw;\n gl_Position = vec4(localPos + instancePosition.xy + offsetW, instancePosition.z, 1.0);\n\n vec2 subImageSize = vec2(subImageWidth, subImageHeight);\n\n float timeRatio = 0.0;\n if (duration != 0.0) {\n timeRatio = mod(u_engineTime + startTime, duration) / duration;\n }\n float diffX = floor(timeRatio * animateImageNum) * (subImageSize.x * u_animateTextureSize.z);\n float diffY = subImageYOffset * u_animateTextureSize.w;\n\n v_texCoord = positionOrTexCoord * subImageSize * u_animateTextureSize.zw + vec2(diffX, diffY);\n v_color = blendColor;\n v_pickColor = _pickColor;\n }\n `;const d2=function(e,t,i){const n=new Cesium.ShaderSource({sources:[p2(t,i)]}),r=new Cesium.ShaderSource({sources:["#version 300 es\n precision highp float;\n in vec2 v_texCoord;\n in vec4 v_color;\n in vec4 v_pickColor;\n\n uniform sampler2D u_animateTexture;\n void main() {\n out_FragColor = texture(u_animateTexture, v_texCoord) * v_color;\n }\n"]});return Cesium.ShaderProgram.fromCache({context:e,vertexShaderSource:n,fragmentShaderSource:r})};const f2=function(e,t){var i={depthTest:{enabled:!0}};return e&&(i.depthMask=!1,i.blending=Cesium.BlendingState.ALPHA_BLEND),t&&(i.cull={enabled:!0,face:Cesium.CullFace.BACK}),i};const m2=function(e,t,i,n){const r=d2(e,i,n),o=new Cesium.Cartesian4(1,1,1,1),s={u_animateTexture:function(){return t._texture||e.defaultTexture},u_engineTime:function(){return Date.now()%108e5/1e3},u_animateTextureSize:function(){return t._textureSize?t._textureSize:o}},a=Cesium.RenderState.fromCache(f2(!0,!0)),l=Cesium.PrimitiveType.TRIANGLES,u=Cesium.Pass.TRANSLUCENT,c=Cesium.Matrix4.IDENTITY;return new Cesium.DrawCommand({primitiveType:l,renderState:a,shaderProgram:r,uniformMap:s,owner:this,pass:u,modelMatrix:c,cull:!1,instanceCount:t._instanceData.length})},g2=WebGLRenderingContext;var y2=__webpack_require__(6763);const _2=g2;function A2(e){let t=0,i={},n=0;return e.accessors.forEach(e=>{let r;switch(e.type){case WebGL2RenderingContext.BYTE:r=1;break;case WebGL2RenderingContext.SHORT:r=2;break;case WebGL2RenderingContext.UNSIGNED_BYTE:r=1;break;case WebGL2RenderingContext.UNSIGNED_SHORT:r=2;break;case WebGL2RenderingContext.FLOAT:r=4;break;case WebGL2RenderingContext.HALF_FLOAT:default:throw new Error("attributeType类型有误!")}if(r*=e.size,t+=r,e.propName&&!e.composite)i[e.propName]={offset:n,size:e.size,type:e.type,byteLength:r},n+=r;else if(e.type===WebGLRenderingContext.FLOAT&&e.composite)e.composite.forEach((t,r)=>{if("string"==typeof t[1])i[t[1]]={offset:n,size:t[0],type:e.type,byteLength:4*t[0]};else if(Array.isArray(t[1])){const r=[...t[1]];t[1].forEach((o,s)=>{i[o[1]]={offset:n,size:t[0],type:e.type,composite:r,byteLength:4*t[0]}})}n+=4*t[0]});else{if(e.propName||e.composite)throw new Error("Spec不合法,不能处理!");n+=r,y2.log("有属性被忽略!")}}),{props:i,vertexByteLength:t}}function v2(e,{userObjectIteratorOrIterable:t,userObjectLength:i=0,propsSpec:n,arrayBufferResult:r,arrayBufferResultOffset:o=0}={}){if(n=n||A2(e),r){if(r.byteLength-o<n.vertexByteLength*i)throw new Error("空间不足!")}else r=new ArrayBuffer(n.vertexByteLength*i),o=0;let s,a=0;if(t){let l=0,u=0;for(let c of t){const t=c.index||u;u++,void 0===s&&(s=t*n.vertexByteLength),a=(t+1)*n.vertexByteLength-s;const h=(e,i,s)=>{const a=n.props[e].offset+n.vertexByteLength*t,l=s;let u;switch(i){case WebGL2RenderingContext.BYTE:u=Int8Array;break;case WebGL2RenderingContext.SHORT:u=Int16Array;break;case WebGL2RenderingContext.UNSIGNED_BYTE:u=Uint8Array;break;case WebGL2RenderingContext.UNSIGNED_SHORT:u=Uint16Array;break;case WebGL2RenderingContext.FLOAT:u=Float32Array;break;case WebGL2RenderingContext.HALF_FLOAT:default:throw new Error("attributeType类型有误!")}var h=new u(r,a+o,l);if(1===l)h[0]=c[e];else for(let t=0;t<l;++t)h[t]=c[e][t]},p=e=>{const i=e[0][1],s=n.props[i].offset+n.vertexByteLength*t;let a=0,l=0;e.forEach(e=>{const t=e[1];l+=c[t]<<a,a+=e[0]}),new DataView(r,s+o,4).setFloat32(0,l,!0)};if(e.accessors.forEach(e=>{e.propName?h(e.propName,e.type,e.size):e.composite&&e.composite.forEach(t=>{"string"==typeof t[1]?h(t[1],e.type,t[0]):Array.isArray(t[1])&&p(t[1])})}),l++,l>=i)break}}return s+=o,{bufferChangedOffset:s,bufferChangedLength:a,arrayBufferResult:r}}const C2={accessors:[{type:_2.FLOAT,size:4,composite:[[2,"size"],[2,"origin"]]},{type:_2.FLOAT,size:4,composite:[[1,"subImageYOffset"],[1,"subImageWidth"],[1,"subImageHeight"],[1,"animateImageNum"]]},{type:_2.FLOAT,size:4,composite:[[3,"instancePositionHigh"],[1,"startTime"]]},{type:_2.FLOAT,size:4,composite:[[3,"instancePositionLow"],[1,"duration"]]},{type:_2.UNSIGNED_BYTE,size:4,propName:"_pickColor"},{type:_2.UNSIGNED_BYTE,size:4,propName:"blendColor"},{type:_2.FLOAT,size:4,composite:[[1,"rotationSpeed"],[1,"scale"],[2,"pixelOffset"]]}]};var b2=__webpack_require__(6763);const w2=function(e,t,i,n){const r=Object.entries(i).map(([e,i])=>{if(!n[e])return void b2.warn(`属性${e}没有使用!`);const r=n[e].index,{size:o,offset:s,type:a,stride:l}=i;return{index:r,vertexBuffer:t,componentsPerAttribute:o,componentDatatype:a,offsetInBytes:s,strideInBytes:l,normalize:a!==g2.FLOAT,instanceDivisor:1}}).filter(e=>!!e);{const t=Cesium.Buffer.createVertexBuffer({context:e,typedArray:new Float32Array([0,0,1,0,1,1,0,1]),usage:Cesium.BufferUsage.STATIC_DRAW}),i=n.positionOrTexCoord.index;r.push({index:i,vertexBuffer:t,componentsPerAttribute:2,componentDatatype:g2.FLOAT,offsetInBytes:0,strideInBytes:0,normalize:!1,instanceDivisor:0})}const o=Cesium.Buffer.createIndexBuffer({context:e,typedArray:new Uint16Array([0,1,2,0,2,3]),usage:Cesium.BufferUsage.STATIC_DRAW,indexDatatype:Cesium.IndexDatatype.UNSIGNED_SHORT});return new Cesium.VertexArray({context:e,attributes:r,indexBuffer:o})};const x2=class{constructor(){this._disposers=[],this._dynamicPois=[],this.show=!0,this._bs=void 0,this._texture=void 0,this._textureSize=new Cesium.Cartesian4(1,1,1,1),this._disposers.push(()=>{this._texture=this._texture&&this._texture.destroy(),this._textureSize=void 0}),this._command=void 0,this._disposers.push(()=>{Cesium.defined(this._command)&&(this._command.shaderProgram=this._command.shaderProgram&&this._command.shaderProgram.destroy(),this._command.vertexArray=this._command.vertexArray&&this._command.vertexArray.destroy(),this._command=void 0)}),this._instancePropertyDirty=!0,this._instanceLengthDirty=!0,this._instanceBuffer=void 0,this._disposers.push(()=>{this._instanceBuffer=this._instanceBuffer&&this._instanceBuffer.destroy()}),this._propLayoutSpec=C2,this._propsSpec=A2(this._propLayoutSpec),this._instanceData=[],this._imageUrl="",this._imageUrlDirty=!1,this._imageSubscription=void 0,this._disposers.push(()=>{this._imageSubscription&&(this._imageSubscription.unsubscribe(),this._imageSubscription=void 0)})}_updateImage(e){if(this._imageUrlDirty&&(this._imageUrlDirty=!1,this._imageSubscription&&(this._imageSubscription.unsubscribe(),this._imageSubscription=void 0),this._imageUrl)){const t=new rxjs.Observable(e=>{Cesium.Resource.createIfNeeded(this._imageUrl).fetchImage().then(function(t){e.next(t)})});this._imageSubscription=t.subscribe(t=>{this._texture=this._texture&&this._texture.destroy(),this._texture=new Cesium.Texture({context:e,source:t});const i=t.naturalWidth,n=t.naturalHeight;this._textureSize.x=i,this._textureSize.y=n,this._textureSize.z=1/i,this._textureSize.w=1/n})}}set imageUrl(e){this._imageUrl!==e&&(this._imageUrl=e,this._imageUrlDirty=!0)}get imageUrl(){return this._imageUrl}add(e){const t=new h2(this,e);return this._instanceData.push(t),this._instanceLengthDirty=!0,t}remove(e){const t=this._instanceData.indexOf(e);if(-1!==t){const e=this._instanceData[t];e._pickId=e._pickId&&e._pickId.destroy(),e._pickColor=void 0,e._destroy(),this._instanceData.splice(t,1),this._instanceLengthDirty=!0}}get(e){return this._instanceData[e]}getLength(){return this._instanceData.length}removeAll(){const e=this._instanceData.length;for(let t=0;t<e;++t){const e=this._instanceData[t];e._pickId=e._pickId&&e._pickId.destroy(),e._pickColor=void 0,e._destroy()}this._instanceData.length=0,this._instanceLengthDirty=!0}update(e){if(!this.show)return;const t=e.context;if(this._updateImage(t),!Cesium.defined(this._command)){const{attributeLayoutSpec:e,vsDecl:i,vsMainStart:n}=function(e){let t="",i="",n={},r=0,o=0;return e.accessors.forEach(e=>{if(e.propName){const i=1===e.size?"float":`vec${e.size}`;t+=`attribute ${i} ${e.propName}; \n`,n[e.propName]={size:e.size,offset:r,type:e.type}}else if(Array.isArray(e.composite)){let o="cmpt",s=0;e.composite.forEach(e=>{s+=e[0],"string"==typeof e[1]?o+="_"+e[1]:Array.isArray(e[1])&&e[1].forEach(e=>{o+="_"+e[1]})}),t+=`attribute ${1===s?"float":`vec${s}`} ${o}; \n`,n[o]={size:e.size,offset:r,type:e.type};let a=0;e.composite.forEach(e=>{const t=e[0];if("string"==typeof e[1]){const n="xyzw".substring(a,a+t);i+=`${1===t?"float":`vec${t}`} ${e[1]} = ${o}.${n}; \n`}else if(Array.isArray(e[1])&&1===e[0]){const t="xyzw"[a],n="cmptf_"+e[1].map(e=>e[1]).join("_");i+=`float ${n} = ${o}.${t}; \n`;let r=0,s=e[1].map(e=>{const t=`float ${e[1]} = floor(${n} * ${(1/(1<<r)).toExponential()}); ${n} -= ${e[1]} * ${(1<<r).toExponential()}; \n`;return r+=e[0],t});s=s.reverse(),i+=s.join("")}a+=t})}let s;if(e.type===WebGLRenderingContext.FLOAT)s=4*e.size;else{if(e.type!==WebGLRenderingContext.UNSIGNED_BYTE)throw new Error("a.type is not float or unsigned byte.");s=1*e.size}o+=s,r+=s}),Object.values(n).forEach(e=>{e.stride=o}),{vsDecl:t,vsMainStart:i,attributeLayoutSpec:n}}(C2);this._propLayoutSpec=C2,this._attributeLayoutSpec=e,this._command=m2(t,this,i,n),this._command.boundingVolume=this._bs,this._command.pickId="v_pickColor"}if(this._instanceLengthDirty){this._instanceLengthDirty=!1,this._instancePropertyDirty=!1,this._instanceBuffer=this._instanceBuffer&&this._instanceBuffer.destroy(),this._instanceArrayBuffer=void 0,this._command.vertexArray&&(this._command.vertexArray.destroy(),this._command.vertexArray=void 0,this._command.instanceCount=0);const t=this._instanceData;if(t.length>0){const i=e.context;t.forEach(e=>{e._pickId||(e._pickId=i.createPickId({primitive:this,id:e}),e._pickColor=e._pickId.color.toBytes())});const n=this._propLayoutSpec,r=this._propsSpec,[o,s]=function(e,t,i,n){const r=v2(t,{userObjectIteratorOrIterable:n,userObjectLength:n.length,propsSpec:i}),o=Cesium.Buffer.createVertexBuffer({context:e,typedArray:new Float32Array(r.arrayBufferResult),usage:Cesium.BufferUsage.STATIC_DRAW});return o.vertexArrayDestroyable=!1,[o,r.arrayBufferResult]}(i,n,r,t);this._instanceBuffer=o,this._instanceArrayBuffer=s;const a=this._attributeLayoutSpec,l=this._command.shaderProgram.vertexAttributes,u=w2(i,this._instanceBuffer,a,l);this._command.vertexArray=u,this._command.instanceCount=this._instanceData.length}}else if(this._instancePropertyDirty){this._instancePropertyDirty=!1;!function(e,t,i,n,r){const o=v2(e,{userObjectIteratorOrIterable:i,userObjectLength:i.length,propsSpec:t,arrayBufferResult:n});r.copyFromArrayView(new Float32Array(o.arrayBufferResult))}(this._propLayoutSpec,this._propsSpec,this._instanceData,this._instanceArrayBuffer,this._instanceBuffer)}Cesium.defined(this._command)&&this._command.vertexArray&&e.commandList.push(this._command)}isDestroyed(){return!1}destroy(){return this._disposers.reverse(),this._disposers.forEach(e=>e()),this._disposers.length=0,Cesium.destroyObject(this)}};class S2 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._primitive=void 0,this.disposers.push(()=>{this._primitive&&(e.czm.scene.primitives.remove(this._primitive),this._primitive=void 0)}),this._primitive=new x2,e.czm.scene.primitives.add(this._primitive)}getPrimitive(){return this._primitive}flyTo(){}}S2.gvolSchema={title:"DynamicPois Property",type:"object",properties:{show:{type:"boolean",title:"是否在三维窗口中显示",default:!0,description:"是否在三维窗口中显示"},imageUrl:{type:"string",title:"纹理对应的图像url",default:0,description:"纹理对应的图像url"}}};S2.defaultOptions={show:!0,imageUrl:""},Cu.A.registerType(S2,"DynamicPois");const M2=S2;var P2=__webpack_require__(6763);class E2 extends i1{constructor(e,t){super(e,t);const i=this._earth.czm.scene;this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._onlyMove=!1,this._fixedPositionsNum=void 0,this._road=void 0,this.disposers.push(()=>{this._road&&(i.groundPrimitives.remove(this._road),this._road=void 0)}),this._material=void 0,(0,Wm.extendObservable)(this,{_texture:void 0},{_texture:Wm.observable.ref}),this.disposers.push(()=>{this._material&&this._material.uniforms.image!==this._texture&&(this._texture.destroy(),this._texture=void 0),this._material&&(this._material.destroy(),this._material=void 0)});const n=()=>{let e=Ql.A.gvolEarthDir+"images/roadImages/4.jpg";""!==this.imageUrl&&(e=this.imageUrl),this._loadingImage=this._loadingImage&&this._loadingImage(),this._loadingImage=(()=>{let t=!0;return Cesium.Resource.fetchImage({url:e}).then(n=>{if(t){const t=n.naturalWidth,o=n.naturalHeight;if(this._texture=new Cesium.Texture({context:i.context,source:n,width:t,height:o}),Cesium.Math.isPowerOfTwo(t)&&Cesium.Math.isPowerOfTwo(o)){var r=new Cesium.Sampler({wrapS:Cesium.TextureWrap.CLAMP_TO_EDGE,wrapT:Cesium.TextureWrap.CLAMP_TO_EDGE,minificationFilter:Cesium.TextureMinificationFilter.LINEAR_MIPMAP_LINEAR,magnificationFilter:Cesium.TextureMagnificationFilter.LINEAR});this._texture.sampler=r,this._texture.generateMipmap(Cesium.MipmapHint.NICEST)}this._currentImageUrl=e}}).otherwise(e=>{P2.error("图像加载错误!"),this._loadingImage=this._loadingImage&&this._loadingImage()}),()=>{t=!1}})()};n(),this.disposers.push(lacdt.MVVM.watch(()=>({imageUrl:this.imageUrl}),n)),this._totalDistance=100;const r=()=>{if(!this._material){const e=Cesium.Material.fromType(Cesium.Material.ImageType);e.uniforms.repeat=new Cesium.Cartesian2(100,1),this._material=e}const e=this._material;e.uniforms.image=this._texture,this._texture&&(e.uniforms.repeat.x=this._totalDistance/this.width*(this._texture.height/this._texture.width)/this.scale)};r(),this.disposers.push(lacdt.MVVM.watch(()=>({scale:this.scale,_texture:this._texture}),r)),this._boundingSphere=new Cesium.BoundingSphere(Cesium.Cartesian3.fromDegrees(0,0,0),10);const o=()=>{this._road&&(i.groundPrimitives.remove(this._road),this._road=void 0);const e=this.positions;if(e.length>=2){const t=e.reduce((e,t)=>(e.push(...t),e),[]),[n]=e.reduce((e,t)=>e[1]?(e[0]+=_b(e[1],t),[e[0],t]):[0,t],[0,void 0]);this._totalDistance=n,r();const o=Cesium.Cartesian3.fromRadiansArrayHeights(t);this._boundingSphere=Cesium.BoundingSphere.fromPoints(o,this._boundingSphere),this._road=i.groundPrimitives.add(new Cesium.XbsjRoad({geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.GroundPolylineGeometry({positions:o,width:this.width})}),appearance:new Cesium.PolylineMaterialAppearance({material:this._material}),asynchronous:!1})),this._road.show=this.show}};o(),this.disposers.push(lacdt.MVVM.watch(()=>({positions:[...this.positions.map(e=>[...e])],width:this.width}),o));const s=()=>{this._road&&(this._road.show=this.show)};s(),this.disposers.push(lacdt.MVVM.watch(()=>({show:this.show}),s))}get onlyMove(){return this._onlyMove}get fixedPositionsNum(){return this._fixedPositionsNum}getTotalDistance(){return this._totalDistance}getTotalArea(){return this._totalDistance*this.width}flyTo(){this._earth.czm.scene.camera.flyToBoundingSphere(this._boundingSphere)}}E2.defaultOptions={positions:[],show:!0,width:15,scale:1,imageUrl:""},Cu.A.registerType(E2,"Road");const L2=E2;let T2;const O2=function(){if(T2)return T2;const e=Cesium.Cartesian2,t=Cesium.Cartesian3,i=Cesium.Cartesian4,n=Cesium.Cartographic,r=Cesium.CornerType,o=Cesium.EllipsoidTangentPlane,s=Cesium.Math,a=Cesium.Matrix3,l=Cesium.Matrix4,u=Cesium.PolylinePipeline,c=Cesium.Quaternion,h=Cesium.Transforms;var p=[new t,new t],d=new t,f=new t,m=new t,g=new t,y=new t,_=new t,A=new t,v=new t,C=new t,b=new t,w=new t,x={},S=new n;function M(e,i,n,r){var o,s=e[0],a=e[1],l=t.angleBetween(s,a),u=Math.ceil(l/r),c=new Array(u);if(i===n){for(o=0;o<u;o++)c[o]=i;return c.push(n),c}var h=(n-i)/u;for(o=1;o<u;o++){var p=i+o*h;c[o]=p}return c[0]=i,c.push(n),c}var P=new t,E=new t,L=new t(-1,0,0),T=new l,O=new l,D=new a,B=a.IDENTITY.clone(),I=new t,R=new i,N=new t;function k(i,n,r,s,u,c,p,d){var f=I,m=R;T=h.eastNorthUpToFixedFrame(i,u,T),f=l.multiplyByPointAsVector(T,L,f);var g=function(i,n,r,s){var a=new o(r,s),l=a.projectPointOntoPlane(t.add(r,i,P),P),u=a.projectPointOntoPlane(t.add(r,n,E),E),c=e.angleBetween(l,u);return u.x*l.y-u.y*l.x>=0?-c:c}(f=t.normalize(f,f),n,i,u);D=a.fromRotationZ(g,D),N.z=c,T=l.multiplyTransformation(T,l.fromRotationTranslation(D,N,O),T);var y=B;y[0]=p;for(var _=0;_<d;_++)for(var A=0;A<r.length;A+=3)m=t.fromArray(r,A,m),m=a.multiplyByVector(y,m,m),m=l.multiplyByPoint(T,m,m),s.push(m.x,m.y,m.z);return s}var F=new t;function H(e,i,n,r,o,s,a){for(var l=0;l<e.length;l+=3){r=k(t.fromArray(e,l,F),i,n,r,o,s[l/3],a,1)}return r}function Y(e,t){for(var i=e.length,n=new Array(3*i),r=0,o=t.x+t.width/2,s=t.height/2,a=0;a<i;a++)n[r++]=e[a].x-o,n[r++]=0,n[r++]=e[a].y-s;return n}var j=new c,U=new t,G=new a;function Q(e,i,n,o,l,u,h,p,d,f){var m,g,y=t.angleBetween(t.subtract(i,e,b),t.subtract(n,e,w)),_=o===r.BEVELED?0:Math.ceil(y/s.toRadians(5));if(m=l?a.fromQuaternion(c.fromAxisAngle(t.negate(e,b),y/(_+1),j),G):a.fromQuaternion(c.fromAxisAngle(e,y/(_+1),j),G),i=t.clone(i,U),_>0)for(var A=f?2:1,v=0;v<_;v++)i=a.multiplyByVector(m,i,i),g=t.subtract(i,e,b),g=t.normalize(g,g),l||(g=t.negate(g,g)),h=k(u.scaleToGeodeticSurface(i,w),g,p,h,u,d,1,A);else g=t.subtract(i,e,b),g=t.normalize(g,g),l||(g=t.negate(g,g)),h=k(u.scaleToGeodeticSurface(i,w),g,p,h,u,d,1,1),n=t.clone(n,U),g=t.subtract(n,e,b),g=t.normalize(g,g),l||(g=t.negate(g,g)),h=k(u.scaleToGeodeticSurface(n,w),g,p,h,u,d,1,1);return h}x.removeDuplicatesFromShape=function(t){for(var i=t.length,n=[],r=i-1,o=0;o<i;r=o++){var s=t[r],a=t[o];e.equals(s,a)||n.push(a)}return n},x.angleIsGreaterThanPi=function(e,i,n,r){var s=new o(n,r),a=s.projectPointOntoPlane(t.add(n,e,P),P),l=s.projectPointOntoPlane(t.add(n,i,E),E);return l.x*a.y-l.y*a.x>=0};var z=new t,W=new t;return x.computePositions=function(e,i,n,o,a){var l=o._ellipsoid,c=function(e,t){for(var i=new Array(e.length),n=0;n<e.length;n++){var r=e[n];S=t.cartesianToCartographic(r,S),i[n]=S.height,e[n]=t.scaleToGeodeticSurface(r,r)}return i}(e,l),h=o._granularity,w=o._cornerType,P=a?function(e,t){var i=e.length,n=new Array(6*i),r=0,o=t.x+t.width/2,s=t.height/2,a=e[0];n[r++]=a.x-o,n[r++]=0,n[r++]=a.y-s;for(var l=1;l<i;l++){var u=(a=e[l]).x-o,c=a.y-s;n[r++]=u,n[r++]=0,n[r++]=c,n[r++]=u,n[r++]=0,n[r++]=c}return a=e[0],n[r++]=a.x-o,n[r++]=0,n[r++]=a.y-s,n}(i,n):Y(i,n),E=a?Y(i,n):void 0,L=n.height/2,T=n.width/2,O=e.length,D=[],B=a?[]:void 0,I=d,R=f,N=m,F=g,j=y,U=_,G=A,X=v,V=C,J=e[0],K=e[1];F=l.geodeticSurfaceNormal(J,F),I=t.subtract(K,J,I),I=t.normalize(I,I),X=t.cross(F,I,X),X=t.normalize(X,X);var Z,q=c[0],$=c[1];a&&(B=k(J,X,E,B,l,q+L,1,1)),V=t.clone(J,V),J=K,R=t.negate(I,R);for(var ee=1;ee<O-1;ee++){var te=a?2:1;K=e[ee+1],I=t.subtract(K,J,I),I=t.normalize(I,I),N=t.add(I,R,N),N=t.normalize(N,N),F=l.geodeticSurfaceNormal(J,F);var ie=t.multiplyByScalar(F,t.dot(I,F),z);t.subtract(I,ie,ie),t.normalize(ie,ie);var ne=t.multiplyByScalar(F,t.dot(R,F),W);if(t.subtract(R,ne,ne),t.normalize(ne,ne),!s.equalsEpsilon(Math.abs(t.dot(ie,ne)),1,s.EPSILON7)){N=t.cross(N,F,N),N=t.cross(F,N,N),N=t.normalize(N,N);var re=1/Math.max(.25,t.magnitude(t.cross(N,R,b))),oe=x.angleIsGreaterThanPi(I,R,J,l);oe?(j=t.add(J,t.multiplyByScalar(N,re*T,N),j),U=t.add(j,t.multiplyByScalar(X,T,U),U),p[0]=t.clone(V,p[0]),p[1]=t.clone(U,p[1]),Z=M(p,q+L,$+L,h),D=H(u.generateArc({positions:p,granularity:h,ellipsoid:l}),X,P,D,l,Z,1),X=t.cross(F,I,X),X=t.normalize(X,X),G=t.add(j,t.multiplyByScalar(X,T,G),G),w===r.ROUNDED||w===r.BEVELED?Q(j,U,G,w,oe,l,D,P,$+L,a):D=k(J,N=t.negate(N,N),P,D,l,$+L,re,te),V=t.clone(G,V)):(j=t.add(J,t.multiplyByScalar(N,re*T,N),j),U=t.add(j,t.multiplyByScalar(X,-T,U),U),p[0]=t.clone(V,p[0]),p[1]=t.clone(U,p[1]),Z=M(p,q+L,$+L,h),D=H(u.generateArc({positions:p,granularity:h,ellipsoid:l}),X,P,D,l,Z,1),X=t.cross(F,I,X),X=t.normalize(X,X),G=t.add(j,t.multiplyByScalar(X,-T,G),G),w===r.ROUNDED||w===r.BEVELED?Q(j,U,G,w,oe,l,D,P,$+L,a):D=k(J,N,P,D,l,$+L,re,te),V=t.clone(G,V)),R=t.negate(I,R)}else D=k(V,X,P,D,l,q+L,1,1),V=J;q=$,$=c[ee+1],J=K}p[0]=t.clone(V,p[0]),p[1]=t.clone(J,p[1]),Z=M(p,q+L,$+L,h),D=H(u.generateArc({positions:p,granularity:h,ellipsoid:l}),X,P,D,l,Z,1),a&&(B=k(J,X,E,B,l,$+L,1,1)),O=D.length;var se=a?O+B.length:O,ae=new Float64Array(se);return ae.set(D),a&&ae.set(B,O),ae},T2=x,T2};let D2;const B2=function(){if(D2)return D2;const e=Cesium.arrayRemoveDuplicates,t=Cesium.BoundingRectangle,i=Cesium.BoundingSphere,n=(Cesium.Cartesian2,Cesium.Cartesian3),r=Cesium.ComponentDatatype,o=Cesium.CornerType,s=Cesium.defaultValue,a=Cesium.defined,l=Cesium.DeveloperError,u=Cesium.Ellipsoid,c=Cesium.Geometry,h=Cesium.GeometryAttribute,p=Cesium.GeometryAttributes,d=Cesium.GeometryPipeline,f=Cesium.IndexDatatype,m=Cesium.Math,g=Cesium.oneTimeWarning,y=Cesium.PolygonPipeline,_=O2(),A=Cesium.PrimitiveType,v=Cesium.VertexFormat,C=Cesium.WindingOrder;function b(e){var t=(e=s(e,s.EMPTY_OBJECT)).polylinePositions,i=e.shapePositions;if(!a(t))throw new l("options.polylinePositions is required.");if(!a(i))throw new l("options.shapePositions is required.");this._positions=t,this._shape=i,this._ellipsoid=u.clone(s(e.ellipsoid,u.WGS84)),this._cornerType=s(e.cornerType,o.ROUNDED),this._vertexFormat=v.clone(s(e.vertexFormat,v.DEFAULT)),this._granularity=s(e.granularity,m.RADIANS_PER_DEGREE),this._workerName="createPolylineVolumeGeometry";var r=1+t.length*n.packedLength;r+=1+i.length*n.packedLength,this.packedLength=r+u.packedLength+v.packedLength+2}b.pack=function(e,t,i){if(!a(e))throw new l("value is required");if(!a(t))throw new l("array is required");var r;i=s(i,0);var o=e._positions,c=o.length;for(t[i++]=c,r=0;r<c;++r,i+=n.packedLength)n.pack(o[r],t,i);var h=e._shape;for(c=h.length,t[i++]=c,r=0;r<c;++r,i+=n.packedLength)n.pack(h[r],t,i);return u.pack(e._ellipsoid,t,i),i+=u.packedLength,v.pack(e._vertexFormat,t,i),i+=v.packedLength,t[i++]=e._cornerType,t[i]=e._granularity,t};var w=u.clone(u.UNIT_SPHERE),x=new v,S={polylinePositions:void 0,shapePositions:void 0,ellipsoid:w,vertexFormat:x,cornerType:void 0,granularity:void 0};b.unpack=function(e,t,i){if(!a(e))throw new l("array is required");var r;t=s(t,0);var o=e[t++],c=new Array(o);for(r=0;r<o;++r,t+=n.packedLength)c[r]=n.unpack(e,t);o=e[t++];var h=new Array(o);for(r=0;r<o;++r,t+=n.packedLength)h[r]=n.unpack(e,t);var p=u.unpack(e,t,w);t+=u.packedLength;var d=v.unpack(e,t,x);t+=v.packedLength;var f=e[t++],m=e[t];return a(i)?(i._positions=c,i._shape=h,i._ellipsoid=u.clone(p,i._ellipsoid),i._vertexFormat=v.clone(d,i._vertexFormat),i._cornerType=f,i._granularity=m,i):(S.polylinePositions=c,S.shapePositions=h,S.cornerType=f,S.granularity=m,new b(S))};var M=new t;return b.createGeometry=function(o){var s=o._positions,a=e(s,n.equalsEpsilon),l=o._shape;if(l=_.removeDuplicatesFromShape(l),!(a.length<2||l.length<3)){y.computeWindingOrder2D(l)===C.CLOCKWISE&&l.reverse();var u=t.fromPoints(l,M);return function(e,t,n,o){var s=new p;o.position&&(s.position=new h({componentDatatype:r.DOUBLE,componentsPerAttribute:3,values:e}));var a,l,u,m,_,v,C=t.length,b=e.length/3,w=(b-2*C)/(2*C),x=y.triangulate(t),S=(w-1)*C*6+2*x.length,M=f.createTypedArray(b,S),P=2*C,E=0;for(a=0;a<w-1;a++){for(l=0;l<C-1;l++)v=(u=2*l+a*C*2)+P,_=(m=u+1)+P,M[E++]=m,M[E++]=u,M[E++]=_,M[E++]=_,M[E++]=u,M[E++]=v;_=(m=1+(u=2*C-2+a*C*2))+P,v=u+P,M[E++]=m,M[E++]=u,M[E++]=_,M[E++]=_,M[E++]=u,M[E++]=v}let L=[0];for(a=0;a<w-1;a++){const t=e,i=new Cesium.Cartesian3(t[8*a*3],t[8*a*3+1],t[8*a*3+2]),n=new Cesium.Cartesian3(t[8*(a+1)*3],t[8*(a+1)*3+1],t[8*(a+1)*3+2]),r=new Cesium.Cartesian3(t[8*a*3+3],t[8*a*3+3+1],t[8*a*3+3+2]),o=new Cesium.Cartesian3(t[8*(a+1)*3+3],t[8*(a+1)*3+3+1],t[8*(a+1)*3+3+2]),s=Cesium.Cartesian3.distance(i,n),l=Cesium.Cartesian3.distance(r,o);L.push(L[L.length-1]+Math.max(s,l))}if(L=L.map(e=>e/L[L.length-1]),o.st||o.tangent||o.bitangent){var T,O,D=new Float32Array(2*b),B=0;for(a=0;a<w;a++){for(T=L[a],O=t[0].z,D[B++]=T,D[B++]=O,l=1;l<C;l++)O=t[l].z,D[B++]=T,D[B++]=O,D[B++]=T,D[B++]=O;O=t[0].z,D[B++]=T,D[B++]=O}for(l=0;l<C;l++)T=0,O=t[l].z,D[B++]=T,D[B++]=O;for(l=0;l<C;l++)T=1-1e-12,O=t[l].z,D[B++]=T,D[B++]=O;s.st=new h({componentDatatype:r.FLOAT,componentsPerAttribute:2,values:new Float32Array(D)})}var I=b-2*C;for(a=0;a<x.length;a+=3){var R=x[a]+I,N=x[a+1]+I,k=x[a+2]+I;M[E++]=R,M[E++]=N,M[E++]=k,M[E++]=k+C,M[E++]=N+C,M[E++]=R+C}var F=new c({attributes:s,indices:M,boundingSphere:i.fromVertices(e),primitiveType:A.TRIANGLES});if(o.normal&&(F=d.computeNormal(F)),o.tangent||o.bitangent){try{F=d.computeTangentAndBitangent(F)}catch(e){g("polyline-volume-tangent-bitangent","Unable to compute tangents and bitangents for polyline volume geometry")}o.tangent||(F.attributes.tangent=void 0),o.bitangent||(F.attributes.bitangent=void 0),o.st||(F.attributes.st=void 0)}return F}(_.computePositions(a,l,u,o,!0),l,0,o._vertexFormat)}},D2=b,D2};var I2=__webpack_require__(6763);class R2 extends i1{constructor(e,t){super(e,t);const i=this._earth.czm.scene;this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._onlyMove=!1,this._fixedPositionsNum=void 0,this._primitive=void 0,this.disposers.push(()=>{this._primitive&&(i.primitives.remove(this._primitive),this._primitive=void 0)}),this._roofPrimitive=void 0,this.disposers.push(()=>{this._roofPrimitive&&(i.primitives.remove(this._roofPrimitive),this._roofPrimitive=void 0)}),this._updateWallMaterialAndTexture(i),this._updateRoofMaterialAndTexture(i),this._boundingSphere=new Cesium.BoundingSphere(Cesium.Cartesian3.fromDegrees(0,0,0),10),this._updateWall(i),this.disposers.push((0,Wm.reaction)(()=>this.show,()=>{this._updateShow()}))}_updateMaterial(){this._material||(this._material=Cesium.Material.fromType("Image"));const e=this._material;e.uniforms.image=this._texture,this._texture&&(e.uniforms.repeat.x=this._totalDistance/this.wallImageHeight*(this._texture.height/this._texture.width)/this.scale,e.uniforms.repeat.y=this.height/this.wallImageHeight)}_updateShow(){this._primitive&&(this._primitive.show=this.show),this._roofPrimitive&&(this._roofPrimitive.show=this.show)}_updateWall(e){const t=()=>{this._primitive&&(e.primitives.remove(this._primitive),this._primitive=void 0),this._roofPrimitive&&(e.primitives.remove(this._roofPrimitive),this._roofPrimitive=void 0);const t=this.positions;if(t.length>=2){const r=t.reduce((e,t)=>(e.push(...t),e),[]),[o]=t.reduce((e,t)=>e[1]?(e[0]+=_b(e[1],t),[e[0],t]):[0,t],[0,void 0]);this._totalDistance=o,this._updateMaterial(),this._updateRoofMaterial(),this._updateShow();const s=Cesium.Cartesian3.fromRadiansArrayHeights(r),a=Cesium.Cartesian3.fromRadiansArrayHeights(r);this._boundingSphere=Cesium.BoundingSphere.fromPoints(s,this._boundingSphere);{const t=.5*this.depth,n=this.height,r=[new Cesium.Cartesian3(-t,0,0),new Cesium.Cartesian3(t,0,0),new Cesium.Cartesian3(t,n,.99),new Cesium.Cartesian3(-t,n,.99)],o=B2(),a=o.createGeometry(new o({polylinePositions:s,vertexFormat:Cesium.VertexFormat.ALL,shapePositions:r,cornerType:Cesium.CornerType.BEVELED}));if(a){{const e=a.attributes.st.values,t=4,i=e.length-4*t,n=this.depth/this._totalDistance;e[i+2]+=n,e[i+4]+=n,e[i+8]-=n,e[i+14]-=n}{const e=a.attributes.st.values,t=4,i=e.length-4*t,n=this.depth/this.wallImageHeight;for(let t=0;t<i;t+=16)e[t+8+1]=0,e[t+10+1]=n}var i=new Cesium.GeometryInstance({geometry:a});this._primitive=e.primitives.add(new Cesium.Primitive({geometryInstances:[i],appearance:new Cesium.MaterialAppearance({material:this._material,translucent:!1,closed:!0,renderState:this.creating?{depthMask:!1}:void 0}),compressVertices:!1,asynchronous:!1}))}}{const t=.5*this.depth,i=this.height,r=[new Cesium.Cartesian3(-(t-.01),i,0),new Cesium.Cartesian3(t-.01,i,.99),new Cesium.Cartesian3(t,i+.01,.99),new Cesium.Cartesian3(-t,i+.01,0)],o=B2();var n=new Cesium.GeometryInstance({geometry:new o({polylinePositions:a,vertexFormat:Cesium.VertexFormat.ALL,shapePositions:r,cornerType:Cesium.CornerType.BEVELED})});this._roofPrimitive=e.primitives.add(new Cesium.Primitive({geometryInstances:[n],appearance:new Cesium.MaterialAppearance({material:this._roofMaterial,translucent:!1,closed:!0,renderState:this.creating?{depthMask:!1}:void 0}),compressVertices:!1,asynchronous:!1}))}}};t(),this.disposers.push(lacdt.MVVM.watch(()=>({positions:[...this.positions.map(e=>[...e])],height:this.height,depth:this.depth,creating:this.creating}),t))}_updateWallMaterialAndTexture(e){this._material=void 0,(0,Wm.extendObservable)(this,{_texture:void 0},{_texture:Wm.observable.ref}),this.disposers.push(()=>{this._material&&this._material.uniforms.image!==this._texture&&(this._texture.destroy(),this._texture=void 0),this._material&&(this._material.destroy(),this._material=void 0)});const t=()=>{let t=Ql.A.gvolEarthDir+"images/wallImages/4.jpg";""!==this.imageUrl&&(t=this.imageUrl),this._loadingImage=this._loadingImage&&this._loadingImage(),this._loadingImage=(()=>{let i=!0;return Cesium.Resource.fetchImage({url:t}).then(n=>{i&&(this._texture=k2(n,e),this._currentImageUrl=t)}).otherwise(e=>{I2.error("图像加载错误!"),this._loadingImage=this._loadingImage&&this._loadingImage()}),()=>{i=!1}})()};t(),this.disposers.push(lacdt.MVVM.watch(()=>({imageUrl:this.imageUrl}),t)),this._totalDistance=100,this._updateMaterial(),this.disposers.push(lacdt.MVVM.watch(()=>({scale:this.scale,_texture:this._texture,_totalDistance:this._totalDistance,wallImageHeight:this.wallImageHeight,height:this.height}),()=>this._updateMaterial()))}_updateRoofMaterial(){this._roofMaterial||(this._roofMaterial=Cesium.Material.fromType("Image"));const e=this._roofMaterial;e.uniforms.image=this._roofTexture,this._roofTexture&&(e.uniforms.repeat.x=this._totalDistance/this.roofImageHeight*(this._roofTexture.height/this._roofTexture.width)/this.scale,e.uniforms.repeat.y=this.depth/this.roofImageHeight)}_updateRoofMaterialAndTexture(e){this._roofMaterial=void 0,(0,Wm.extendObservable)(this,{_roofTexture:void 0},{_roofTexture:Wm.observable.ref}),this.disposers.push(()=>{this._roofMaterial&&this._roofMaterial.uniforms.image!==this._roofTexture&&(this._roofTexture.destroy(),this._roofTexture=void 0),this._roofMaterial&&(this._roofMaterial.destroy(),this._roofMaterial=void 0)});const t=()=>{let t=Ql.A.gvolEarthDir+"images/wallImages/4.jpg";""!==this.roofImageUrl&&(t=this.roofImageUrl),this._loadingRoofImage=this._loadingRoofImage&&this._loadingRoofImage(),this._loadingRoofImage=(()=>{let i=!0;return Cesium.Resource.fetchImage({url:t}).then(n=>{i&&(this._roofTexture=k2(n,e),this._currentRoofImageUrl=t)}).otherwise(e=>{I2.error("图像加载错误!"),this._loadingRoofImage=this._loadingRoofImage&&this._loadingRoofImage()}),()=>{i=!1}})()};t(),this.disposers.push(lacdt.MVVM.watch(()=>({roofImageUrl:this.roofImageUrl}),t)),this._totalDistance=100,this._updateRoofMaterial(),this.disposers.push(lacdt.MVVM.watch(()=>({scale:this.scale,_roofTexture:this._roofTexture,_totalDistance:this._totalDistance,roofImageHeight:this.roofImageHeight,depth:this.depth}),()=>this._updateRoofMaterial()))}get onlyMove(){return this._onlyMove}get fixedPositionsNum(){return this._fixedPositionsNum}flyTo(){this._earth.czm.scene.camera.flyToBoundingSphere(this._boundingSphere)}getTotalDistance(){return this._totalDistance}}R2.defaultOptions={positions:[],show:!0,depth:.8,height:3,scale:1,imageUrl:"",wallImageHeight:3,roofImageUrl:"",roofImageHeight:3},Cu.A.registerType(R2,"Wall");const N2=R2;function k2(e,t){const i=e.naturalWidth,n=e.naturalHeight,r=new Cesium.Texture({context:t.context,source:e,width:i,height:n});if(Cesium.Math.isPowerOfTwo(i)&&Cesium.Math.isPowerOfTwo(n)){const e=new Cesium.Sampler({wrapS:Cesium.TextureWrap.CLAMP_TO_EDGE,wrapT:Cesium.TextureWrap.CLAMP_TO_EDGE,minificationFilter:Cesium.TextureMinificationFilter.LINEAR_MIPMAP_LINEAR,magnificationFilter:Cesium.TextureMagnificationFilter.LINEAR});r.sampler=e,r.generateMipmap(Cesium.MipmapHint.NICEST)}return r}var F2=__webpack_require__(510);class H2 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._primitive=void 0,this.disposers.push(()=>this._primitive&&this._earth.czm.scene.primitives.remove(this._primitive)),this._classificationPrimitive=void 0,this.disposers.push(()=>this._classificationPrimitive&&this._earth.czm.scene.primitives.remove(this._classificationPrimitive)),this._boundingSphere=new Cesium.BoundingSphere;{const e=()=>{this._primitive&&(this._primitive.show=this.show&&this.showHelper),this._classificationPrimitive&&(this._classificationPrimitive.show=this.show)};this.disposers.push((0,Wm.reaction)(()=>({show:this.show,showHelper:this.showHelper}),e));const t=e=>{if(this._primitive&&this._earth.czm.scene.primitives.remove(this._primitive),this._primitive=void 0,e.length>=3){var t=new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromRadiansArray(e)),height:this.height,extrudedHeight:this.extrudedHeight}),i=new Cesium.GeometryInstance({geometry:t,id:this}),n=new Cesium.Primitive({geometryInstances:[i],appearance:new Cesium.MaterialAppearance({material:Cesium.Material.fromType("Color"),faceForward:!0,renderState:{depthTest:{enabled:this.depthTest}},closed:!0}),asynchronous:!1,allowPicking:this.allowPicking,compressVertices:!1});n.appearance.material.uniforms.color=Cesium.Color.YELLOW.withAlpha(.5),this._primitive=this._earth.czm.scene.primitives.add(n)}},i=e=>{if(this._classificationPrimitive&&this._earth.czm.scene.primitives.remove(this._classificationPrimitive),this._classificationPrimitive=void 0,e.length>=3){const r=this.color;var t=new Cesium.PolygonGeometry({vertexFormat:Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,polygonHierarchy:new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromRadiansArray(e)),height:this.height,extrudedHeight:this.extrudedHeight}),i=new Cesium.GeometryInstance({geometry:t,id:this,attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(new Cesium.Color(r[0],r[1],r[2],r[3])),show:new Cesium.ShowGeometryInstanceAttribute(!0)}}),n=new Cesium.ClassificationPrimitive({geometryInstances:[i],asynchronous:!1,allowPicking:this.allowPicking,compressVertices:!1,classificationType:2});this._classificationPrimitive=this._earth.czm.scene.primitives.add(n)}},n=()=>{const e=this.positions.length/2;if(e>=3){const t=[];for(let i=0;i<e;++i)t.push(this.positions[2*i],this.positions[2*i+1],.5*(this.height+this.extrudedHeight));const i=Cesium.Cartesian3.fromRadiansArrayHeights(t);this._boundingSphere=Cesium.BoundingSphere.fromPoints(i,this._boundingSphere)}};this.disposers.push((0,Wm.reaction)(()=>({positions:[...this.positions],height:this.height,extrudedHeight:this.extrudedHeight,depthTest:this.depthTest}),()=>{const r=(0,F2.A)(this.positions);t(r),i(r),e(),n()})),this.disposers.push((0,Wm.reaction)(()=>({color:[...this.color]}),()=>{const t=(0,F2.A)(this.positions);i(t),e()}))}this._polyline=new dx.A(e),this.disposers.push(()=>this._polyline=this._polyline&&this._polyline.destroy()),this._polyline.material.type="XbsjColorMaterial",this._polyline.depthTest=this.depthTest,this._polyline.loop=!0,(0,$w.A)(this._polyline,this),this.disposers.push((0,Wm.autorun)(()=>{this._polyline.material.XbsjColorMaterial.color=this.outline.color,this._polyline.width=this.outline.width,this._polyline.show=this.show&&this.showHelper&&this.outline.show,this._polyline.depthTest=this.depthTest}));{const e=()=>{const e=this.positions.length/2,t=[];for(let i=0;i<e;++i)t.push([this.positions[2*i],this.positions[2*i+1],this.height]);return t},t=e=>this._polyline&&(this._polyline.positions=e);t(e()),this.disposers.push((0,Wm.reaction)(e,t))}this.disposers.push((0,Xx.yt)(this._earth,this,{polygonCreatingWithHeight:"creating"})),this.disposers.push((0,Xx.s)(this._earth,this,{polygonEditingProperty:"editing"})),(0,Wm.extendObservable)(this,{_extrudedPosition:[0,0,0]});const i=()=>{this.positions.length>0&&this._extrudedPosition.splice(0,3,this.positions[0],this.positions[1],this.extrudedHeight)};i(),this.disposers.push((0,Wm.reaction)(()=>({positions:[...this.positions],extrudedHeight:this.extrudedHeight}),i));const n=()=>{this.extrudedHeight=this._extrudedPosition[2]};n(),this.disposers.push((0,Wm.reaction)(()=>[...this._extrudedPosition],n)),this.disposers.push((0,Xx.xA)(this._earth,this,{positionHeightEditing:"extrudedHeightEditing",positionProperty:"_extrudedPosition"}))}get boundingSphere(){return this._boundingSphere}flyTo(){this._earth.czm.scene.camera.flyToBoundingSphere(this._boundingSphere)}destroy(){return super.destroy()}}const Y2={title:"ClassificationPolygon Property",type:"object",properties:{positions:{type:"array",title:"位置数组",default:[],description:"位置数组"},height:{type:"number",title:"多边形的高度",default:0,description:"多边形的高度"},show:{type:"boolean",title:"是否在三维窗口中显示",default:!0,description:"是否在三维窗口中显示"},color:{type:"array",items:{type:"number"},minItems:4,maxItems:4,default:[1,1,1,1],description:"颜色叠加"},showHelper:{type:"boolean",title:"是否显示辅助线框",default:!1,description:"是否显示辅助线框"},outline:{title:"ClassificationPolygon outline Property",type:"object",properties:{show:{type:"boolean",title:"是否在三维窗口中显示",default:!0,description:"是否在三维窗口中显示"},color:{type:"array",items:{type:"number"},minItems:4,maxItems:4,default:[0,1,0,1],description:"颜色叠加"},width:{type:"number",title:"线框的宽度",default:2,description:"线框的宽度"}}},depthTest:{type:"boolean",title:"是否开启深度检测",default:!1,description:"是否开启深度检测"}}};H2.gvolSchema=Y2;H2.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["positions","height","show","color","showHelper","outline","depthTest"]}],H2.defaultOptions={positions:[],height:0,extrudedHeight:0,show:!0,color:[1,1,0,.5],showHelper:!1,outline:{show:!0,color:[0,1,0,1],width:2},depthTest:!1},Cu.A.registerType(H2,"ClassificationPolygon");const j2=H2;let U2,G2,Q2,z2,W2,X2;function V2(e,t,i){z2=z2||new Cesium.Cartesian3,W2=W2||new Cesium.Cartesian3,X2=X2||new Cesium.Cartesian3;var n=Cesium.Cartesian3.subtract(t,e,z2),r=Cesium.Cartesian3.subtract(i,e,W2),o=Cesium.Cartesian3.cross(n,r,X2);return.5*Cesium.Cartesian3.magnitude(o)}var J2=__webpack_require__(6763);class K2 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,Xx.hp)(this._earth,this,{polylineCreatingProperty:"creating"})),this.disposers.push((0,Xx.wJ)(this._earth,this,{polylineEditingProperty:"editing"})),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._createOutline(),this._createInnerPoints(),this._createTin(),this._createTexturePosRot(),this._totalArea=0}_createOutline(){this._polyline=new lacdt.Obj.Polyline(this._earth),this._polyline.loop=!0,this._polyline.ground=!1,this._polyline.material.XbsjColorMaterial.color=[0,1,0,1],this._polyline.width=3,this.disposers.push(()=>{this._polyline=this._polyline&&this._polyline.destroy()}),this._polyline.show=this.showHelper&&this.show,lacdt.Engine.Interaction.Picking.registerPickingParent(this._polyline,this);const e=()=>{this._polyline.show=this.showHelper&&this.show};e(),this.disposers.push(lacdt.MVVM.watch(()=>({show:this.show,showHelper:this.showHelper}),e));const t=()=>{this._polyline.positions=this.positions,e()};t(),this.disposers.push(lacdt.MVVM.watch(()=>({positions:[...this.positions]}),t))}_createTexturePosRot(){(0,Wm.extendObservable)(this,{_texturePosition:[0,0,0]}),this.disposers.push((0,ng.A)(this,"_texturePosition",this._cp,"position")),this.disposers.push((0,Xx.Wl)(this._earth,this,{rotationEditingProperty:"textureRotationEditing",positionProperty:"_texturePosition",rotationProperty:"textureRotation"}))}_createInnerPoints(){const e=this.earth;lacdt.MVVM.extend(this,{_innerPolylineShow:!0}),this._innerPolyline=new lacdt.Obj.Polyline(e),this._innerPolyline._pointsColor=[0,1,0,.95],this._innerPolyline.loop=!0,this._innerPolyline.ground=!1,this._innerPolyline.material.XbsjColorMaterial.color=[0,1,0,1],this._innerPolyline.depthTest=!1,this._innerPolyline.width=0,this._innerPolyline.showHelper=!0,(0,Wm.extendObservable)(this._innerPolyline,{editingPolylineShow:!1}),this.disposers.push(()=>{this._innerPolyline=this._innerPolyline&&this._innerPolyline.destroy()}),lacdt.Engine.Interaction.Picking.registerPickingParent(this._innerPolyline,this);const t=()=>{this._innerPolyline.show=this.showHelper&&this.show};t(),this.disposers.push(lacdt.MVVM.watch(()=>({show:this.show,showHelper:this.showHelper}),t))}_createTin(){this._cp=new ZS(this._earth),this._cp.renderState.depthTest.enabled=!0,this._cp.vertexShaderSource="#version 300 es\n// vtxf 使用 double 类型的 position 进行计算\n// attribute vec3 position3DHigh;\n// attribute vec3 position3DLow;\nin vec3 position;\nin vec3 normal;\nin vec2 st;\nin vec4 color;\nin float batchId;\nout vec3 v_positionEC;\nout vec3 v_normalEC;\nout vec2 v_st;\nout vec4 v_color;\nvoid main()\n{\n // vtxf 使用 double 类型的 position 进行计算\n // vec4 p = czm_translateRelativeToEye(position3DHigh, position3DLow);\n // v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\n // v_normalEC = czm_normal * normal; // normal in eye coordinates\n // v_st = st;\n // gl_Position = czm_modelViewProjectionRelativeToEye * p;\n v_positionEC = (czm_modelView * vec4(position, 1.0)).xyz; // position in eye coordinates\n v_normalEC = czm_normal * normal; // normal in eye coordinates\n v_st = st;\n v_color = color;\n gl_Position = czm_modelViewProjection * vec4(position, 1.0);\n}\n",this._cp.fragmentShaderSource="#version 300 es\nin vec3 v_positionEC;\nin vec3 v_normalEC;\nin vec2 v_st;\nin vec4 v_color;\nuniform sampler2D u_image;\nuniform vec4 u_color;\nvoid main()\n{\n vec3 positionToEyeEC = -v_positionEC;\n vec3 normalEC = normalize(v_normalEC);\n// #ifdef FACE_FORWARD\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\n// #endif\n\n czm_materialInput materialInput;\n materialInput.normalEC = normalEC;\n materialInput.positionToEyeEC = positionToEyeEC;\n materialInput.st = v_st;\n //czm_material material = czm_getMaterial(materialInput);\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec4 imageColor = texture(u_image, fract(materialInput.st));\n\n material.diffuse = imageColor.rgb;\n material.alpha = imageColor.a;\n\n material.diffuse *= v_color.rgb;\n material.alpha *= v_color.a;\n \n material.diffuse *= u_color.rgb;\n material.alpha *= u_color.a;\n\n#ifdef FLAT\n out_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n#else\n out_FragColor = czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC);\n#endif\n}\n",this.disposers.push(()=>{this._cp=this._cp&&this._cp.destroy()});const e=()=>{this._cp.show=this.show};e(),this.disposers.push(lacdt.MVVM.watch(()=>({show:this.show}),e));const t=()=>{if(this.positions.length>=3){const e=this.positions.map(e=>[180*e[0]/Math.PI,180*e[1]/Math.PI]),o=this._innerPolyline.positions.map(e=>[180*e[0]/Math.PI,180*e[1]/Math.PI]);for(var t=function(e,t,i){return void 0===i&&(i={}),ic(e.map(function(e){return $u(e,t)}),i)}([...e,...o]),i=0;i<this.positions.length;i++)t.features[i].properties.z=this.positions[i][2];for(let e=0;e<this._innerPolyline.positions.length;++e)t.features[e+this.positions.length].properties.z=this._innerPolyline.positions[e][2];e.push(e[0]);const s=ec([e]);const a=dh(t,"z").features.flatMap(e=>{const t=e.geometry.coordinates[0];{let e=Sh($u(t[0]),$u(t[1]));e=Sh(e,$u(t[2]));if(!ch(e,s))return[]}const i=[e.properties.a,e.properties.b,e.properties.c],n=t.map((e,t)=>[e[0]*Math.PI/180,e[1]*Math.PI/180,i[t]]);return n.length=3,n});if(0===a.length)return;var[n,r]=eS.getLocalPositions(a);this._totalArea=function(e){U2=U2||new Cesium.Cartesian3,G2=G2||new Cesium.Cartesian3,Q2=Q2||new Cesium.Cartesian3;const t=e.length/9;let i=0;for(let n=0;n<t;++n)i+=V2(Cesium.Cartesian3.fromElements(e[9*n+0],e[9*n+1],e[9*n+2],U2),Cesium.Cartesian3.fromElements(e[9*n+3],e[9*n+4],e[9*n+5],G2),Cesium.Cartesian3.fromElements(e[9*n+6],e[9*n+7],e[9*n+8],Q2));return i}(n);let l,u,c=new Cesium.Matrix4;{this._scratchM3=this._scratchM3||new Cesium.Matrix3,this._scratchHPR=this._scratchHPR||new Cesium.HeadingPitchRoll;let e=this._scratchHPR;e.heading=this.textureRotation[0],e.pitch=this.textureRotation[1],e.roll=this.textureRotation[2];let t=Cesium.Matrix3.fromHeadingPitchRoll(this._scratchHPR,this._scratchM3);Cesium.Matrix3.inverse(t,t),Cesium.Matrix4.fromRotationTranslation(t,void 0,c)}if(this._scratchCartesian3=this._scratchCartesian3||new Cesium.Cartesian3,this._cp.canvasWidth>0&&this._cp.canvasHeight>0){l=new Array(n.length/3*2);for(let e=0;e<n.length/3;e++){const t=n[3*e+0],i=n[3*e+1],r=n[3*e+2];let o=Cesium.Cartesian3.fromElements(t,i,r,this._scratchCartesian3);o=Cesium.Matrix4.multiplyByPoint(c,o,o),l[2*e+0]=o.x/this._cp.canvasWidth*this._cp.canvasHeight/this.imageHeight/this.imageWidthScale,l[2*e+1]=o.y/this._cp.canvasHeight*this._cp.canvasHeight/this.imageHeight}}if(this._normalCs||(this._normalCs=[new Cesium.Cartesian3,new Cesium.Cartesian3,new Cesium.Cartesian3]),u=new Array(n.length),n.length%9!=0)throw new Error("localPositions.length % 9 !== 0");for(let e=0;e<n.length/9;e++){for(let t=0;t<3;++t)Cesium.Cartesian3.fromArray(n,9*e+3*t,this._normalCs[t]);Cesium.Cartesian3.subtract(this._normalCs[1],this._normalCs[0],this._normalCs[1]),Cesium.Cartesian3.normalize(this._normalCs[1],this._normalCs[1]),Cesium.Cartesian3.subtract(this._normalCs[2],this._normalCs[0],this._normalCs[2]),Cesium.Cartesian3.normalize(this._normalCs[2],this._normalCs[2]);const t=Cesium.Cartesian3.cross(this._normalCs[1],this._normalCs[2],this._normalCs[0]);for(let i=0;i<3;++i)Cesium.Cartesian3.pack(t,u,9*e+3*i)}this._cp.positions=n,this._cp.position=r,this._cp.sts=l,this._cp.normals=u,this._cp.indices=[...new Array(n.length/3).keys()]}e()};t(),this.disposers.push(lacdt.MVVM.watch(()=>({positions:[...this.positions],innerPositions:[...this._innerPolyline.positions],canvasWidth:this._cp.canvasWidth,canvasHeight:this._cp.canvasHeight,imageUrl:this._cp.imageUrl,textureRotation:[...this.textureRotation],imageHeight:this.imageHeight,imageWidthScale:this.imageWidthScale}),t));{let e=Ql.A.gvolEarthDir+"images/wallImages/4.jpg";const t=()=>{""!==this.imageUrl?this._cp.imageUrl=this.imageUrl:this._cp.imageUrl=e};t(),this.disposers.push((0,Wm.reaction)(()=>this.imageUrl,t));const i=()=>{this._cp.imageUrl!==e?this.imageUrl=this._cp.imageUrl:this.imageUrl=""};i(),this.disposers.push((0,Wm.reaction)(()=>this._cp.imageUrl,i))}(0,Wm.extendObservable)(this,{innerCreating:!1,innerEditing:!1}),this.disposers.push((0,ng.A)(this,"innerCreating",this._innerPolyline,"creating")),this.disposers.push((0,ng.A)(this,"innerEditing",this._innerPolyline,"editing")),this.disposers.push((0,ng.A)(this,"innerPositions",this._innerPolyline,"positions"))}flyTo(){this.positions.length>0&&this._cp?this._cp.flyTo():J2.warn("需要先创建,才能飞入!")}getTotalArea(){return this._totalArea}}K2.defaultOptions={positions:[],innerPositions:[],show:!0,showHelper:!0,imageUrl:"",textureRotation:[0,0,0],imageHeight:3,imageWidthScale:1},Cu.A.registerType(K2,"Surface");const Z2=K2;var q2=__webpack_require__(6763);class $2 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,Xx.yt)(this._earth,this,{polygonCreatingWithHeight:"creating"})),this.disposers.push((0,Xx.s)(this._earth,this,{polygonEditingProperty:"editing"})),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._createSampledPositions(),this._createBottomSurface(),this._createWall(),this._createDiscard(),this._averageHeight=0}_createDiscard(){const e=()=>{this._fpc.enabled=this.show},t=()=>{this._fpc.polygons[0].positions=[...this.positions]},i=()=>{if(!this._fpc||this._fpc.guid!==this.discardGuid){this._fpc&&(this._fpc=this._fpc&&this._fpc.destroy());var i=new lacdt.Obj.FlattenedPolygonCollection(this._earth,this.discardGuid);i.flattenDiscard=!0,i.polygons.push({}),this._fpc=i,t(),e(),this.discardGuid=this.discardGuid||i.guid}};i(),this.disposers.push((0,Wm.reaction)(()=>this.discardGuid,i)),this.disposers.push(()=>{this._fpc=this._fpc&&this._fpc.destroy()}),t(),this.disposers.push((0,Wm.reaction)(()=>({positions:[...this.positions]}),t)),e(),this.disposers.push((0,Wm.reaction)(()=>this.show,e))}getDiscardGuid(){return this.discardGuid}_createBottomSurface(){this._bottomSurface=new Z2(this._earth),this._bottomSurface.showHelper=!1,this.disposers.push(()=>{this._bottomSurface=this._bottomSurface&&this._bottomSurface.destroy()}),lacdt.Engine.Interaction.Picking.registerPickingParent(this._bottomSurface,this);const e=()=>{this._bottomSurface.show=this.showHelper&&this.show};e(),this.disposers.push((0,Wm.reaction)(()=>({show:this.show,showHelper:this.showHelper}),e));const t=()=>{const t=[],i=this.positions.length/2;for(let e=0;e<i;++e)t.push([this.positions[2*e+0],this.positions[2*e+1],this.height]);this._bottomSurface.positions=t,e()};t(),this.disposers.push((0,Wm.reaction)(()=>({positions:[...this.positions],height:this.height}),t));{let e=Ql.A.gvolEarthDir+"images/wallImages/bottom.jpg";const t=()=>{""!==this.bottomImageUrl?this._bottomSurface.imageUrl=this.bottomImageUrl:this._bottomSurface.imageUrl=e};t(),this.disposers.push((0,Wm.reaction)(()=>this.bottomImageUrl,t));const i=()=>{this._bottomSurface.imageUrl!==e?this.bottomImageUrl=this._bottomSurface.imageUrl:this.bottomImageUrl=""};i(),this.disposers.push((0,Wm.reaction)(()=>this._bottomSurface.imageUrl,i))}this.disposers.push((0,ng.A)(this,"bottomTextureRotation",this._bottomSurface,"textureRotation")),this.disposers.push((0,ng.A)(this,"bottomImageHeight",this._bottomSurface,"imageHeight")),this.disposers.push((0,ng.A)(this,"bottomImageWidthScale",this._bottomSurface,"imageWidthScale")),(0,Wm.extendObservable)(this,{bottomTextureRotationEditing:!1}),this.disposers.push((0,ng.A)(this,"bottomTextureRotationEditing",this._bottomSurface,"textureRotationEditing"))}_createWall(){this._cp=new ZS(this._earth),this._cp.renderState.depthTest.enabled=!0,this._cp.vertexShaderSource="#version 300 es\n// vtxf 使用 double 类型的 position 进行计算\n// attribute vec3 position3DHigh;\n// attribute vec3 position3DLow;\nin vec3 position;\nin vec3 normal;\nin vec2 st;\nin vec4 color;\nin float batchId;\nout vec3 v_positionEC;\nout vec3 v_normalEC;\nout vec2 v_st;\nout vec4 v_color;\nvoid main()\n{\n // vtxf 使用 double 类型的 position 进行计算\n // vec4 p = czm_translateRelativeToEye(position3DHigh, position3DLow);\n // v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\n // v_normalEC = czm_normal * normal; // normal in eye coordinates\n // v_st = st;\n // gl_Position = czm_modelViewProjectionRelativeToEye * p;\n v_positionEC = (czm_modelView * vec4(position, 1.0)).xyz; // position in eye coordinates\n v_normalEC = czm_normal * normal; // normal in eye coordinates\n v_st = st;\n v_color = color;\n gl_Position = czm_modelViewProjection * vec4(position, 1.0);\n}\n",this._cp.fragmentShaderSource="#version 300 es\nin vec3 v_positionEC;\nin vec3 v_normalEC;\nin vec2 v_st;\nin vec4 v_color;\nuniform sampler2D u_image;\nuniform vec4 u_color;\nvoid main()\n{\n vec3 positionToEyeEC = -v_positionEC;\n vec3 normalEC = normalize(v_normalEC);\n// #ifdef FACE_FORWARD\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\n// #endif\n\n czm_materialInput materialInput;\n materialInput.normalEC = normalEC;\n materialInput.positionToEyeEC = positionToEyeEC;\n materialInput.st = v_st;\n //czm_material material = czm_getMaterial(materialInput);\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec4 imageColor = texture(u_image, fract(materialInput.st));\n\n material.diffuse = imageColor.rgb;\n material.alpha = imageColor.a;\n\n material.diffuse *= v_color.rgb;\n material.alpha *= v_color.a;\n \n material.diffuse *= u_color.rgb;\n material.alpha *= u_color.a;\n\n#ifdef FLAT\n out_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n#else\n out_FragColor = czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC);\n#endif\n}\n";{let e=Ql.A.gvolEarthDir+"images/wallImages/wall.jpg";const t=()=>{""!==this.wallImageUrl?this._cp.imageUrl=this.wallImageUrl:this._cp.imageUrl=e};t(),this.disposers.push((0,Wm.reaction)(()=>this.wallImageUrl,t));const i=()=>{this._cp.imageUrl!==e?this.wallImageUrl=this._cp.imageUrl:this.wallImageUrl=""};i(),this.disposers.push((0,Wm.reaction)(()=>this._cp.imageUrl,i))}this.disposers.push(()=>{this._cp=this._cp&&this._cp.destroy()});const e=()=>{this._cp.show=this.show};e(),this.disposers.push(lacdt.MVVM.watch(()=>({show:this.show}),e));const t=()=>{if(this.sampledPositions){if(this.sampledPositions.length>2){const e=this.sampledPositions.length,n=[];n.push(0);const r=this.sampledPositions;this._scratchCartesian03251552=this._scratchCartesian03251552||new Cesium.Cartesian3,this._scratchCartesian03251553=this._scratchCartesian03251553||new Cesium.Cartesian3;for(let t=0;t<e;++t){const i=Cesium.Cartesian3.fromRadians(r[t][0],r[t][1],0,void 0,this._scratchCartesian03251552),o=Cesium.Cartesian3.fromRadians(r[(t+1)%e][0],r[(t+1)%e][1],0,void 0,this._scratchCartesian03251553),s=Cesium.Cartesian3.distance(i,o);n.push(n[t]+s)}const o=new Array(3*(e+1)*2),s=new Array(2*(e+1)*2);for(let t=0;t<e+1;++t)o[3*t+0]=this.sampledPositions[t%e][0],o[3*t+1]=this.sampledPositions[t%e][1],o[3*t+2]=this.height,s[2*t+0]=n[t],s[2*t+1]=this.height;for(let t=0;t<e+1;++t)o[3*(e+1+t)+0]=this.sampledPositions[t%e][0],o[3*(e+1+t)+1]=this.sampledPositions[t%e][1],o[3*(e+1+t)+2]=this.sampledPositions[t%e][2],s[2*(e+1+t)+0]=n[t],s[2*(e+1+t)+1]=this.sampledPositions[t%e][2];const a=new Array(6*e);for(let t=0;t<e;++t)a[6*t+0]=t,a[6*t+1]=t+1,a[6*t+2]=t+(e+1),a[6*t+3]=t+1,a[6*t+4]=t+1+(e+1),a[6*t+5]=t+(e+1);const l=new Array(6*e),u=new Array(6*e*2);for(let t=0;t<6*e;++t){const e=a[t];l[t]=[o[3*e+0],o[3*e+1],o[3*e+2]];const i=s[2*e+0]/this._cp.canvasWidth*this._cp.canvasHeight/this.wallImageHeight/this.wallImageWidthScale,n=s[2*e+1]/this._cp.canvasHeight*this._cp.canvasHeight/this.wallImageHeight;u[2*t+0]=i,u[2*t+1]=n}var[t,i]=eS.getLocalPositions(l);let c;if(this._normalCs||(this._normalCs=[new Cesium.Cartesian3,new Cesium.Cartesian3,new Cesium.Cartesian3]),c=new Array(t.length),t.length%9!=0)throw new Error("localPositions.length % 9 !== 0");for(let e=0;e<t.length/9;e++){for(let i=0;i<3;++i)Cesium.Cartesian3.fromArray(t,9*e+3*i,this._normalCs[i]);Cesium.Cartesian3.subtract(this._normalCs[1],this._normalCs[0],this._normalCs[1]),Cesium.Cartesian3.normalize(this._normalCs[1],this._normalCs[1]),Cesium.Cartesian3.subtract(this._normalCs[2],this._normalCs[0],this._normalCs[2]),Cesium.Cartesian3.normalize(this._normalCs[2],this._normalCs[2]);const i=Cesium.Cartesian3.cross(this._normalCs[1],this._normalCs[2],this._normalCs[0]);for(let t=0;t<3;++t)Cesium.Cartesian3.pack(i,c,9*e+3*t)}if(t.length<=0)return;this._cp.positions=t,this._cp.position=i,this._cp.sts=u,this._cp.normals=c,this._cp.indices=[...new Array(t.length/3).keys()]}e()}};t(),this.disposers.push(lacdt.MVVM.watch(()=>({sampledPositions:[...this.sampledPositions],height:this.height,canvasWidth:this._cp.canvasWidth,canvasHeight:this._cp.canvasHeight,imageHeight:this.wallImageHeight,imageWidthScale:this.wallImageWidthScale}),t))}_createSampledPositions(){this._scratchCarto=this._scratchCarto||new Cesium.Cartographic(0,0);const e=()=>{const e=this.positions.length/2|0,t=[];this._scratchCC1=this._scratchCC1||new Cesium.Cartesian3,this._scratchCC2=this._scratchCC2||new Cesium.Cartesian3,this._scratchCC3=this._scratchCC3||new Cesium.Cartesian3,this._scratchCarto=this._scratchCarto||new Cesium.Cartographic;for(let i=0;i<e;++i){let n=(i+1)%e;const r=Cesium.Cartesian3.fromRadians(this.positions[2*i+0],this.positions[2*i+1],0,void 0,this._scratchCC1),o=Cesium.Cartesian3.fromRadians(this.positions[2*n+0],this.positions[2*n+1],0,void 0,this._scratchCC2),s=Cesium.Cartesian3.distance(r,o),a=0|Math.ceil(s/this.sampledDistance);t.push(new Cesium.Cartographic(this.positions[2*i+0],this.positions[2*i+1]));for(let e=1;e<a;++e){const i=Cesium.Cartesian3.lerp(r,o,e/a,this._scratchCC3),n=Cesium.Cartographic.fromCartesian(i,void 0,this._scratchCarto);t.push(new Cesium.Cartographic(n.longitude,n.latitude))}}return t};this._updateSampledPositionsTrigger=new rxjs.Subject,this._sampleHeightSubscription=this._updateSampledPositionsTrigger.pipe(rxjs.operators.debounceTime(2e3),rxjs.operators.map(()=>e()),rxjs.operators.switchMap(e=>{const t=[];this._cp&&this._cp._primitive&&t.push(this._cp._primitive),this._bottomSurface&&this._bottomSurface._cp&&t.push(this._bottomSurface._cp);const i=this._earth,n=i.interaction.editingPolygonBinding._editing._editing._polyline,r=i.interaction.editingPolygonBinding._editing._editing._points,o=i.interaction.flattenedPolygonCreatingBinding._polylineCreating._editing._polyline;n&&n._primitive&&t.push(n._primitive),r&&r._primitive&&t.push(r._primitive),o&&o._primitive&&t.push(o._primitive),this._fpc&&(this._fpc.enabled=!1);const s=this.notUseSampleHeightMostDetailed?new Promise((i,n)=>{try{for(let i of e)i.height=this._earth.czm.scene.sampleHeight(i,t);i(e)}catch(e){n(e)}}):this._earth.czm.scene.sampleHeightMostDetailed(e,t);return rxjs.from(s)})).subscribe(e=>{if(e.length>0&&e.every(e=>isFinite(e.height))){this._fpc&&(this._fpc.enabled=!0),this.sampledPositions=e.map(e=>[e.longitude,e.latitude,e.height]);const t=e.reduce((e,t)=>e+=t.height,0);this._averageHeight=t/e.length}else q2.warn("有位置点不能找到高程值,可能是没有开启地形深度监测!")}),this.disposers.push(()=>{this._sampleHeightSubscription&&(this._sampleHeightSubscription.unsubscribe(),this._sampleHeightSubscription=void 0),this._updateSampledPositionsTrigger&&(this._updateSampledPositionsTrigger.unsubscribe(),this._updateSampledPositionsTrigger=void 0)});this.disposers.push((0,Wm.reaction)(()=>({positions:[...this.positions],sampledDistance:this.sampledDistance}),()=>{this._gvolFromJSONParsing||this._updateSampledPositionsTrigger.next()}))}gvolFromJSON(e){this._gvolFromJSONParsing=!0,super.gvolFromJSON(e),this._gvolFromJSONParsing=!1}flyTo(){this.positions.length>0&&this._cp?this._cp.flyTo():q2.warn("创建后才可以飞入!")}getTotalVolume(){return(this._averageHeight-this.height)*this._bottomSurface.getTotalArea()}getTotalArea(){return this._bottomSurface.getTotalArea()}applyTerrain(){this.earth.terrainEffect.restrict.enabled=!0,this.earth.terrainEffect.restrict.innerDiscard=!0,this.earth.terrainEffect.restrict.positions=JSON.parse(JSON.stringify(this.positions))}}$2.defaultOptions={positions:[],sampledDistance:10,sampledPositions:[],height:0,innerPositions:[],show:!0,showHelper:!0,wallImageUrl:"",wallImageHeight:3,wallImageWidthScale:1,bottomImageUrl:"",bottomTextureRotation:[0,0,0],bottomImageHeight:3,bottomImageWidthScale:1,discardGuid:void 0,notUseSampleHeightMostDetailed:!1},Cu.A.registerType($2,"CutSurface");const e3=$2;var t3=__webpack_require__(6763);class i3 extends rg.A{constructor(e,t){super(e,t),this._viewer=e.czm.viewer;let i=this;this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._dataSource=void 0,this.disposers.push(()=>{this._dataSource&&(this._viewer.dataSources.remove(i._dataSource),this._dataSource=void 0)}),this.disposers.push(lL(()=>({url:i.url}),()=>{i._dataSource&&(i._viewer.dataSources.remove(i._dataSource),i._dataSource=void 0),i.url.length>0&&Cesium.GeoJsonDataSource.load(i.url).then(function(e){i._dataSource=e,i._viewer.dataSources.add(e),i._dataSource.show=i.show})})),this.disposers.push(lacdt.MVVM.watch(()=>({show:i.show}),()=>{i._dataSource&&(i._dataSource.show=i.show)}))}flyTo(){this._dataSource?this._viewer.flyTo(this._dataSource.entities.values,{duration:1}):t3.warn("没有geojson数据")}}i3.defaultOptions={name:"geoJSON",url:"",show:!0,gvolType:"XbsjGeoJSON"},Cu.A.registerType(i3,"XbsjGeoJSON");const n3=i3;var r3=__webpack_require__(6763);class o3 extends rg.A{constructor(e,t){super(e,t),this._viewer=e.czm.viewer;let i=this;this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._dataSource=void 0,this.disposers.push(()=>{this._dataSource&&(this._viewer.dataSources.remove(i._dataSource),this._dataSource=void 0)}),this.disposers.push(lL(()=>({url:i.url}),()=>{i._dataSource&&i._viewer.dataSources.remove(i._dataSource),i.url.length>0&&Cesium.KmlDataSource.load(i.url).then(function(e){i._dataSource=e,i._viewer.dataSources.add(e),i._dataSource.show=i.show})})),this.disposers.push(lacdt.MVVM.watch(()=>({show:i.show}),()=>{i._dataSource&&(i._dataSource.show=i.show)}))}flyTo(){this._dataSource?this._viewer.flyTo(this._dataSource.entities.values,{duration:1}):r3.warn("没有geojson数据")}}o3.defaultOptions={name:"KML",url:"",show:!0,gvolType:"XbsjKML"},Cu.A.registerType(o3,"XbsjKML");const s3=o3;var a3=__webpack_require__(6763);class l3 extends rg.A{constructor(e,t){super(e,t),this._viewer=e.czm.viewer;let i=this;this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._dataSource=void 0,this.disposers.push(()=>{this._dataSource&&(this._viewer.dataSources.remove(i._dataSource),this._dataSource=void 0)}),this.disposers.push(lL(()=>({url:i.url}),()=>{i._dataSource&&(i._viewer.dataSources.remove(i._dataSource),i._dataSource=void 0),i.url.length>0&&Cesium.CzmlDataSource.load(i.url).then(function(e){i._dataSource=e,i._viewer.dataSources.add(e),i._dataSource.show=i.show})})),this.disposers.push(lacdt.MVVM.watch(()=>({show:i.show}),()=>{i._dataSource&&(i._dataSource.show=i.show)}))}flyTo(){this._dataSource?this._viewer.zoomTo(this._dataSource):a3.warn("没有geojson数据")}}l3.defaultOptions={name:"Czml",url:"",show:!0,gvolType:"XbsjCzml"},Cu.A.registerType(l3,"XbsjCzml");const u3=l3;var c3=__webpack_require__(6763);class h3 extends rg.A{constructor(e,t){super(e,t),this._viewer=e.czm.viewer,this.disposers.push((0,ng.A)(this,"enabled",this,"show"))}flyTo(){c3.warn("未实现!")}}h3.defaultOptions={show:!0},Cu.A.registerType(h3,"Proxy");const p3=h3;var d3=__webpack_require__(6763);class f3 extends zm.A{constructor(){super(),this._nativeCommand=S$(this),this.disposers.push(()=>this._nativeCommand=void 0);const e=()=>{if(this.renderCallback)try{this._nativeCommand.renderCallback=Function('"use strict";return ('+this.renderCallback+")")()}catch(e){d3.error("renderCallback函数有问题!"),this._nativeCommand.renderCallback=void 0}};e(),this.disposers.push((0,Wm.reaction)(()=>this.renderCallback,e));const t=()=>{this.boundingVolume&&Array.isArray(this.boundingVolume)&&4===this.boundingVolume.length?(this._nativeCommand.boundingVolume.center.x=this.boundingVolume[0],this._nativeCommand.boundingVolume.center.y=this.boundingVolume[1],this._nativeCommand.boundingVolume.center.z=this.boundingVolume[2],this._nativeCommand.boundingVolume.radius=this.boundingVolume[3]):d3.log("boundingVolume设置错误")};t(),this.disposers.push((0,Wm.reaction)(()=>this.boundingVolume,t)),this._nativeCommand.cull=this.cull,this.disposers.push((0,Wm.reaction)(()=>this.cull,()=>{this._nativeCommand.cull=this.cull})),this._nativeCommand.pass=this.pass,this.disposers.push((0,Wm.reaction)(()=>this.pass,()=>{this._nativeCommand.pass=this.pass}));const i=()=>{let e;try{e=JSON.parse(this.renderState)}catch(e){d3.warn("this.renderState作为JSON对象解析失败!")}e&&(this._nativeCommand.renderState=Cesium.RenderState.fromCache(e))};i(),this.disposers.push((0,Wm.reaction)(()=>this.renderState,i))}}f3.defaultOptions={renderCallback:null,boundingVolume:[0,0,0,1],cull:!1,pass:7,renderState:"{}"};const m3=f3;var g3=__webpack_require__(6763);class y3 extends rg.A{constructor(e,t){super(e,t),this._viewer=e.czm.viewer,this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._primitive=new M$,this._earth.czm.scene.primitives.add(this._primitive),this.disposers.push(()=>{this._primitive&&(this._earth.czm.scene.primitives.remove(this._primitive),this._primitive=void 0)}),this.disposers.push((0,Wm.intercept)(this,"commands",e=>("update"===e.type&&e.newValue&&Array.isArray(e.newValue)&&e.object.value!==e.newValue&&this.commands.splice(0,this.commands.length,...e.newValue),null)));this.disposers.push(zm.A.registerArrayProperty(this,"commands",e=>{const t=new m3;return e=e&&e.toJSON&&e.toJSON()||e,t.gvolFromJSON(e),this._primitive._commands.push(t._nativeCommand),t},e=>{const t=this._primitive._commands.indexOf(e._nativeCommand);-1!==t&&this._primitive._commands.splice(t,1),e.destroy()})),this.disposers.push((0,Wm.reaction)(()=>this.show,()=>{this._primitive.show=this.show}))}flyTo(){g3.warn("未实现!")}}y3.defaultOptions={show:!0,commands:[]},Cu.A.registerType(y3,"NativeRender");const _3=y3;class A3 extends i1{constructor(e,t){super(e,t),this._onlyMove=!1,this._fixedPositionsNum=void 0,AL.extend(this,{_polylineShow:!0}),this._polyline=new lacdt.Obj.Polyline(e),this.disposers.push(()=>{this._polyline=this._polyline&&this._polyline.destroy()}),this._polyline.show=this._polylineShow&&this.show,fT.Interaction.Picking.registerPickingParent(this._polyline,this);const i=()=>{this._polyline.show=this._polylineShow&&this.show,this._polyline.width=this.width,this._polyline.material.XbsjColorMaterial.color=this.color,this._polyline.ground=this.ground,this._polyline.depthTest=this.depthTest,this._polyline.minShowHeight=this.minShowHeight,this._polyline.maxShowHeight=this.maxShowHeight};i(),this.disposers.push(AL.watch(()=>({show:this.show,polylineShow:this._polylineShow,width:this.width,color:[...this.color],ground:this.ground,depthTest:this.depthTest,minShowHeight:this.minShowHeight,maxShowHeight:this.maxShowHeight}),()=>i()))}get onlyMove(){return this._onlyMove}get fixedPositionsNum(){return this._fixedPositionsNum}flyTo(){this._polyline.flyTo()}}A3.defaultOptions={positions:[],show:!0,width:5,color:[0,1,0,1],depthTest:!1,minShowHeight:-Number.MAX_VALUE,maxShowHeight:Number.MAX_VALUE};const v3=A3;class C3 extends v3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=2,this._positions=new Array(6).fill(0).map(()=>[0,0,0]),this._leftArrowPosition1=[0,0,0],this._rightArrowPosition1=[0,0,0],this._leftArrowPosition2=[0,0,0],this._rightArrowPosition2=[0,0,0],this._leftArrowPosition3=[0,0,0],this._rightArrowPosition3=[0,0,0],this._leftArrowPosition4=[0,0,0],this._rightArrowPosition4=[0,0,0],this._leftArrowPosition5=[0,0,0],this._rightArrowPosition5=[0,0,0],this._leftArrowPosition6=[0,0,0],this._rightArrowPosition6=[0,0,0],this._leftArrowPosition7=[0,0,0],this._rightArrowPosition7=[0,0,0],this._polylinePositions=[],this._scratchHpr=[0,0,0],this._scratchPos=[0,0,0],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{if(2===e.length){e[1][2]=e[0][2];const t=Ww.Math.geoDistance(e[0],e[1]);e[0];if(t>0){const i=Ww.hpr(e[0],e[1],this._scratchHpr);if(!i)return;for(let n=0;n<6;++n)Ww.Math.geoMove(e[0],i[0]+Cesium.Math.PI_OVER_THREE*n,t,this._positions[n]);return this._polylinePositions.length=0,Ww.Math.geoMove(this._positions[0],i[0]+7*Math.PI/6,.1*t,this._leftArrowPosition1),Ww.Math.geoMove(this._positions[0],i[0]-7*Math.PI/6,.1*t,this._rightArrowPosition1),Ww.Math.geoMove(this._positions[1],i[0]+3*Math.PI/2,.1*t,this._leftArrowPosition2),Ww.Math.geoMove(this._positions[1],i[0]-Math.PI/6,.1*t,this._rightArrowPosition2),Ww.Math.geoMove(this._positions[4],i[0]+Math.PI/2,.1*t,this._leftArrowPosition3),Ww.Math.geoMove(this._positions[4],i[0]+Math.PI/6,.1*t,this._rightArrowPosition3),Ww.Math.geoMove(this._positions[5],i[0]-5*Math.PI/6,.1*t,this._leftArrowPosition4),Ww.Math.geoMove(this._positions[5],i[0]+5*Math.PI/6,.1*t,this._rightArrowPosition4),Ww.Math.geoMove(this._positions[2],i[0]-Math.PI/6,.1*t,this._leftArrowPosition5),Ww.Math.geoMove(this._positions[2],i[0]-Math.PI/2,.1*t,this._rightArrowPosition5),Ww.Math.geoMove(this._positions[3],i[0]+Math.PI/2,.1*t,this._leftArrowPosition6),Ww.Math.geoMove(this._positions[3],i[0]+Math.PI/6,.1*t,this._rightArrowPosition6),Ww.Math.geoMove(this.positions[0],i[0]+7*Math.PI/6,.1*t,this._leftArrowPosition7),Ww.Math.geoMove(this.positions[0],i[0]-(Math.PI+Math.PI/6),.1*t,this._rightArrowPosition7),this._polylinePositions.push([...e[0]]),this._polylinePositions.push([...this._positions[0]]),this._polylinePositions.push([...this._leftArrowPosition1]),this._polylinePositions.push([...this._positions[0]]),this._polylinePositions.push([...this._rightArrowPosition1]),this._polylinePositions.push([...this._positions[0]]),this._polylinePositions.push([...this._positions[1]]),this._polylinePositions.push([...this._leftArrowPosition2]),this._polylinePositions.push([...this._positions[1]]),this._polylinePositions.push([...this._rightArrowPosition2]),this._polylinePositions.push([...this._positions[1]]),this._polylinePositions.push([...this._positions[4]]),this._polylinePositions.push([...this._leftArrowPosition3]),this._polylinePositions.push([...this._positions[4]]),this._polylinePositions.push([...this._rightArrowPosition3]),this._polylinePositions.push([...this._positions[4]]),this._polylinePositions.push([...this._positions[5]]),this._polylinePositions.push([...this._leftArrowPosition4]),this._polylinePositions.push([...this._positions[5]]),this._polylinePositions.push([...this._rightArrowPosition4]),this._polylinePositions.push([...this._positions[5]]),this._polylinePositions.push([...this._positions[2]]),this._polylinePositions.push([...this._leftArrowPosition5]),this._polylinePositions.push([...this._positions[2]]),this._polylinePositions.push([...this._rightArrowPosition5]),this._polylinePositions.push([...this._positions[2]]),this._polylinePositions.push([...this._positions[3]]),this._polylinePositions.push([...this._leftArrowPosition6]),this._polylinePositions.push([...this._positions[3]]),this._polylinePositions.push([...this._rightArrowPosition6]),this._polylinePositions.push([...this._positions[3]]),this._polylinePositions.push([...e[0]]),this._polylinePositions.push([...this._leftArrowPosition7]),this._polylinePositions.push([...e[0]]),this._polylinePositions.push([...this._rightArrowPosition7]),this._polyline.positions=this._polylinePositions,void(this._polylineShow=!0)}}this._polylineShow=!1}))}}C3.registerType(C3,"GeoSectorSearch");const b3=C3;class w3 extends v3{constructor(e,t){super(e,t),this._leftArrowPosition=[0,0,0],this._rightArrowPosition=[0,0,0],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{const t=e.length,i=Ww.Math.distance(e);if(t<2)return void(this._polylineShow=!1);const n=Ww.Math.hpr(e[t-1],e[t-2]);n&&(Ww.Math.geoMove(e[t-1],n[0]+Math.PI/6,.1*i,this._leftArrowPosition),Ww.Math.geoMove(e[t-1],n[0]-Math.PI/6,.1*i,this._rightArrowPosition),e.push([...this._leftArrowPosition]),e.push([...e[t-1]]),e.push([...this._rightArrowPosition]),e.push([...e[t-1]]),this._polyline.positions=e,this._polylineShow=!0)}))}}w3.registerType(w3,"GeoPolylineArrow");const x3=w3;class S3 extends i1{constructor(e,t){super(e,t),this._onlyMove=!1,this._fixedPositionsNum=void 0,AL.extend(this,{_polygonShow:!0}),this._polygon=new lacdt.Obj.Polygon(e),this.disposers.push(()=>{this._polygon=this._polygon&&this._polygon.destroy()}),this._polygon.show=this._polygonShow&&this.show,fT.Interaction.Picking.registerPickingParent(this._polygon,this);const i=()=>{this._polygon.show=this._polygonShow&&this.show,this._polygon.width=this.width,this._polygon.color=this.color,this._polygon.ground=this.ground,this._polygon.outline.width=this.outlineWidth,this._polygon.outline.color=this.outlineColor,this._polygon.outline.show=this.outlineShow,this._polygon.depthTest=this.depthTest,this._polygon.extrudedHeight=this.extrudedHeight,this._polygon.minShowHeight=this.minShowHeight,this._polygon.maxShowHeight=this.maxShowHeight};i(),this.disposers.push(AL.watch(()=>({show:this._polygonShow&&this.show,width:this.width,color:[...this.color],ground:this.ground,outlineWidth:this.outlineWidth,outlineColor:this.outlineColor,outlineShow:this.outlineShow,depthTest:this.depthTest,extrudedHeight:this.extrudedHeight,minShowHeight:this.minShowHeight,maxShowHeight:this.maxShowHeight}),()=>i()))}get onlyMove(){return this._onlyMove}get fixedPositionsNum(){return this._fixedPositionsNum}flyTo(){this._polygon.flyTo()}}S3.defaultOptions={positions:[],show:!0,color:[0,1,0,.1],outlineWidth:2,outlineColor:[0,1,0,1],outlineShow:!0,depthTest:!1,extrudedHeight:null,minShowHeight:-Number.MAX_VALUE,maxShowHeight:Number.MAX_VALUE};const M3=S3;class P3 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=2,this._polygonPositions=[],this._hpr=[0,0,0],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{if(e.length<2)return void(this._polygonShow=!1);this._polygonPositions.length=0,this._polygonPositions.push(e[0][0],e[1][1]),this._polygonPositions.push(e[0][0],e[0][1]),this._polygonPositions.push(e[1][0],.5*(e[0][1]+e[1][1]));const t=e[1][0]-e[0][0];this._polygonPositions.push(e[0][0]+.01*t,.5*(e[0][1]+e[1][1])),this._polygonPositions.push(e[0][0]+.01*t,e[1][1]),this._polygon.positions=this._polygonPositions,this._polygon.height=e[0][2],this._polygonShow=!0}))}}P3.registerType(P3,"GeoTriFlag");const E3=P3;class L3 extends v3{constructor(e,t){super(e,t),this._leftArrowPosition=[0,0,0],this._rightArrowPosition=[0,0,0],this._positions=[],this.disposers.push(AL.watch(()=>({positions:[...this.positions.map(e=>[...e])],slices:this.slices}),({positions:e,slices:t})=>{const i=e.length,n=Ww.Math.distance(e);if(i<2)return void(this._polylineShow=!1);this._positions.length=0,Ww.Math.interpolatePositions(e,t,!1,this._positions);const r=this._positions.length,o=Ww.Math.hpr(this._positions[r-1],this._positions[r-2]);o?(Ww.Math.geoMove(this._positions[r-1],o[0]+Math.PI/6,.05*n,this._leftArrowPosition),Ww.Math.geoMove(this._positions[r-1],o[0]-Math.PI/6,.05*n,this._rightArrowPosition),this._positions.push([...this._leftArrowPosition]),this._positions.push([...this._positions[r-1]]),this._positions.push([...this._rightArrowPosition]),this._positions.push([...this._positions[r-1]]),this._polyline.positions=this._positions,this._polylineShow=!0):this._polylineShow=!1}))}}L3.defaultOptions={slices:100},L3.registerType(L3,"GeoCurveArrow");const T3=L3;class O3 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=4,this._keyPositions=new Array(50).fill(0).map(e=>[0,0,0]),this._bottomCurcePositions=new Array(20).fill(0).map(e=>[0,0,0]),this._leftArrowLeftPositions=new Array(20).fill(0).map(e=>[0,0,0]),this._leftArrowRightPositions=new Array(20).fill(0).map(e=>[0,0,0]),this._rightArrowLeftPositions=new Array(20).fill(0).map(e=>[0,0,0]),this._rightArrowRightPositions=new Array(20).fill(0).map(e=>[0,0,0]),this._polygonPositions=[],this._hpr=[0,0,0],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{const t=e.length;if(t<3||3===t&&Ww.Math.hasSamePosition(e))return void(this._polygonShow=!1);this._keyPositions[0].splice(0,3,...e[0]),this._keyPositions[1].splice(0,3,...e[1]),this._keyPositions[2].splice(0,3,...e[2]),4===e.length?this._keyPositions[3].splice(0,3,...e[3]):(Ww.Math.geoLerp(e[0],e[2],.5,this._keyPositions[3]),Ww.Math.geoLerp(e[1],this._keyPositions[3],2,this._keyPositions[3]));const i=this._keyPositions[0],n=this._keyPositions[1],r=this._keyPositions[2],o=this._keyPositions[3],s=Ww.Math.geoLerp(i,n,.5,this._keyPositions[4]),a=Ww.Math.geoLerp(r,o,.5,this._keyPositions[5]),l=Ww.Math.geoLerp(s,a,.1,this._keyPositions[6]);Ww.Math.Bezier.bezier2(i,l,n,19,this._bottomCurcePositions);const u=Ww.Math.geoDistance(i,n),c=n,h=r,p=Ww.Math.geoLerp(s,a,.3,this._keyPositions[7]),d=Ww.Math.hpr(c,h,this._hpr)[0],f=Ww.Math.geoMove(h,Math.PI+d,.1*u,this._keyPositions[8]),m=Ww.Math.geoMove(f,d-.5*Math.PI,.04*u,this._keyPositions[9]),g=Ww.Math.geoMove(f,d+.5*Math.PI,.04*u,this._keyPositions[10]),y=Ww.Math.geoLerp(m,g,-.5,this._keyPositions[11]),_=Ww.Math.geoLerp(m,g,1.5,this._keyPositions[12]),A=Ww.Math.geoLerp(m,p,.5,this._keyPositions[13]),v=Ww.Math.geoLerp(g,c,.5,this._keyPositions[14]),C=(Ww.Math.geoLerp(A,v,.3,this._keyPositions[15]),Ww.Math.geoLerp(A,v,1.3,this._keyPositions[16]));Ww.Math.Bezier.bezier2(c,C,g,19,this._rightArrowRightPositions);const b=Ww.Math.geoLerp(s,a,.3,this._keyPositions[17]),w=o,x=i,S=Ww.Math.hpr(x,w,this._hpr)[0],M=Ww.Math.geoMove(w,Math.PI+S,.1*u,this._keyPositions[18]),P=Ww.Math.geoMove(M,S-.5*Math.PI,.04*u,this._keyPositions[19]),E=Ww.Math.geoMove(M,S+.5*Math.PI,.04*u,this._keyPositions[20]),L=Ww.Math.geoLerp(P,E,-.5,this._keyPositions[21]),T=Ww.Math.geoLerp(P,E,1.5,this._keyPositions[22]),O=Ww.Math.geoLerp(P,x,.5,this._keyPositions[23]),D=Ww.Math.geoLerp(E,b,.5,this._keyPositions[24]),B=Ww.Math.geoLerp(O,D,-.3,this._keyPositions[25]);Ww.Math.geoLerp(O,D,.7,this._keyPositions[26]);Ww.Math.Bezier.bezier3(m,n,i,E,19,this._leftArrowRightPositions),Ww.Math.Bezier.bezier2(P,B,x,19,this._leftArrowLeftPositions),this._polygonPositions.length=0,this._bottomCurcePositions.forEach(e=>{this._polygonPositions.push(e[0],e[1])}),this._rightArrowRightPositions.forEach(e=>this._polygonPositions.push(e[0],e[1])),this._polygonPositions.push(_[0],_[1]),this._polygonPositions.push(h[0],h[1]),this._polygonPositions.push(y[0],y[1]),this._leftArrowRightPositions.forEach(e=>this._polygonPositions.push(e[0],e[1])),this._polygonPositions.push(T[0],T[1]),this._polygonPositions.push(w[0],w[1]),this._polygonPositions.push(L[0],L[1]),this._leftArrowLeftPositions.forEach(e=>this._polygonPositions.push(e[0],e[1])),this._polygon.positions=this._polygonPositions,this._polygon.height=e[0][2],this._polygonShow=!0}))}}O3.registerType(O3,"GeoDoubleArrow");const D3=O3,B3=new Array(360).fill(0).map(e=>[0,0,0]),I3=[];class R3 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=2,this._polygonPositions=new Array(4).fill(0).map(e=>[0,0,0]),this._pgPositions=[],this._nextPosition=[0,0,0],this.disposers.push(AL.watch(()=>({ps:[...this.positions.map(e=>[...e])],rotation:this.rotation}),()=>{const{positions:e,rotation:t}=this;if(e.length<2)return void(this._polygonShow=!1);const i=e,n=Math.min,r=Math.max,o=i[0][2];if(Ww.Math.geoDistance(i[0],i[1])<=0)return;const s=[.5*(i[0][0]+i[1][0]),.5*(i[0][1]+i[1][1]),.5*(i[0][2]+i[1][2])],a=[n(i[0][0],i[1][0]),n(i[0][1],i[1][1]),o],l=[r(i[0][0],i[1][0]),n(i[0][1],i[1][1]),o],u=[r(i[0][0],i[1][0]),r(i[0][1],i[1][1]),o],c=[n(i[0][0],i[1][0]),r(i[0][1],i[1][1]),o];B3.length=0,B3.push(a,l,u,c);for(let e of B3){const i=Ww.Math.geoDistance(s,e),n=Ww.Math.hpr(s,e);n&&Ww.Math.geoMove(s,n[0]+=t,i,e)}I3.length=0,B3.forEach(e=>{I3.push(e[0],e[1])}),this._polygon.positions=I3,this._polygon.height=o,this._polygonShow=!0}))}}R3.defaultOptions={rotation:0},R3.registerType(R3,"GeoRectangle");const N3=R3,k3=new Array(360).fill(0).map(e=>[0,0,0]),F3=[];class H3 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=2,this._polygonPositions=new Array(4).fill(0).map(e=>[0,0,0]),this._pgPositions=[],this._nextPosition=[0,0,0],this.disposers.push(AL.watch(()=>({positions:[...this.positions.map(e=>[...e])],rotation:this.rotation,width:this.width,height:this.height}),({positions:e,rotation:t,width:i,height:n})=>{if(e.length<=0)return void(this._polygonShow=!1);const r=e[0];k3.length=0,Ww.Math.geoMove(r,t,.5*i,this._nextPosition),Ww.Math.geoMove(this._nextPosition,t-.5*Math.PI,.5*n,this._nextPosition),k3.push([...this._nextPosition]),Ww.Math.geoMove(r,t,.5*-i,this._nextPosition),Ww.Math.geoMove(this._nextPosition,t-.5*Math.PI,.5*n,this._nextPosition),k3.push([...this._nextPosition]),Ww.Math.geoMove(r,t,.5*-i,this._nextPosition),Ww.Math.geoMove(this._nextPosition,t+.5*Math.PI,.5*n,this._nextPosition),k3.push([...this._nextPosition]),Ww.Math.geoMove(r,t,.5*i,this._nextPosition),Ww.Math.geoMove(this._nextPosition,t+.5*Math.PI,.5*n,this._nextPosition),k3.push([...this._nextPosition]),F3.length=0,k3.forEach(e=>{F3.push(e[0],e[1])}),this._polygon.positions=F3,this._polygon.height=e[0][2],this._polygonShow=!0}))}}H3.defaultOptions={rotation:0,width:2e5,height:1e5},H3.registerType(H3,"GeoRectangle2");const Y3=H3,j3=new Array(360).fill(0).map(e=>[0,0,0]),U3=[];class G3 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=2,this.disposers.push(AL.watch(()=>({positions:[...this.positions.map(e=>[...e])],holeRadius:this.holeRadius}),({positions:e,holeRadius:t})=>{if(e.length<2)return void(this._polygonShow=!1);const i=Ww.Math.geoDistance(e[0],e[1]);if(!Ww.Math.hpr(e[0],e[1]))return;for(let t=0;t<360;t++)Ww.Math.geoMove(e[0],t*Math.PI/180,i,j3[t]);if(U3.length=0,j3.forEach(e=>{U3.push(e[0],e[1])}),this._polygon.positions=U3,this.holeRadius>0&&this.holeRadius<i){for(let t=0;t<360;t++)Ww.Math.geoMove(e[0],t*Math.PI/180,this.holeRadius,j3[t]);U3.length=0,j3.forEach(e=>{U3.push(e[0],e[1])}),this._polygon.holePositions=U3}this._polygon.height=e[0][2],this._polygonShow=!0}))}}G3.defaultOptions={holeRadius:0},G3.registerType(G3,"GeoCircle");const Q3=G3,z3=new Array(360).fill(0).map(e=>[0,0,0]),W3=[];class X3 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=1,this.disposers.push(AL.watch(()=>({positions:[...this.positions.map(e=>[...e])],radius:this.radius,holeRadius:this.holeRadius,slice:this.slice}),({positions:e,radius:t,holeRadius:i,slice:n})=>{if(e.length<=0)return void(this._polygonShow=!1);const r=t;if(!(r<=0||n<=2)){for(let t=0;t<n;t++)Ww.Math.geoMove(e[0],t*Math.PI/180,r,z3[t]);if(W3.length=0,z3.forEach(e=>{W3.push(e[0],e[1])}),this._polygon.positions=W3,i>0&&i<r){for(let t=0;t<n;t++)Ww.Math.geoMove(e[0],t*Math.PI/180,this.holeRadius,z3[t]);W3.length=0,z3.forEach(e=>{W3.push(e[0],e[1])}),this._polygon.holePositions=W3}this._polygon.height=e[0][2],this._polygonShow=!0}}))}}X3.defaultOptions={radius:2e5,holeRadius:0,slice:360},X3.registerType(X3,"GeoCircle2");const V3=X3;class J3 extends M3{constructor(e,t){super(e,t),this._pgPositions=[],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{e.length<=1||(this._pgPositions.length=0,e.forEach(e=>{this._pgPositions.push(e[0],e[1])}),this._polygon.positions=this._pgPositions,this._polygon.height=e[0][2])}))}}J3.registerType(J3,"GeoPolygon");const K3=J3;class Z3 extends rg.A{constructor(e,t){super(e,t),this.disposers.push(fT.Interaction.InteractionProperty.registerPositionEditing(this._earth,this,{positionEditingProperty:"editing"})),this.disposers.push(fT.Interaction.InteractionProperty.registerPositionPicking(this._earth,this,{positionPickingProperty:"creating"})),this._pin=new lacdt.Obj.Pin(e),this.disposers.push(()=>this._pin=this._pin&&this._pin.destroy()),this.disposers.push(AL.watch(()=>{this._pin.position=[...this.position],this._pin.viewDistance=this.viewDistance,this._pin.scale=this.scale,this._pin.near=this.near,this._pin.far=this.far,this._pin.disableDepthTestDistance=this.disableDepthTestDistance,this._pin.enabled=this.enabled,this._pin.cameraAttached=this.cameraAttached,this._pin.attachedPathGuid=this.attachedPathGuid})),this.disposers.push(AL.bind(this,"cameraAttached",this,"_pin.cameraAttached")),this._div=document.createElement("div"),this._div.id=this._pin.guid,this._div.innerHTML=this.innerHTML,this._div.style.position="absolute",this._div.style.pointerEvents="none";let i=this._pin;this.disposers.push(AL.watch(()=>[...i.winPos],e=>{this._div.style.left=e[0]+"px",this._div.style.bottom=e[3]+"px"})),e.czm.viewer.container.appendChild(this._div),this.disposers.push(AL.watch(()=>({cameraPosition:[...e.camera.position],near:this.near,far:this.far,position:[...this.position],enabled:this.enabled}),e=>{let t=Ww.Math.distance([e.position,e.cameraPosition]);e.enabled&&e.near<=t&&t<=e.far?this._div.style.display="block":this._div.style.display="none"})),this._pin.show=!1,this.defaultImgUrl=function(){return"./assets/dialog.png"},this.innerHTML="<div\n style=\"height:50px;width:100px;left:-76px;\n bottom:0px;position: absolute;color: white;\n background-size: 100% 100%;padding: 5px;\n border-radius: 5px;cursor:pointer;\n background-image:url('"+this.defaultImgUrl()+"');\">\n 标记文字\n </div>",this.disposers.push(AL.watch(()=>{this._div.innerHTML=this.innerHTML}))}flyTo(){this._pin.flyTo()}destroy(){return this._div&&this._div.parentNode.removeChild(this._div),super.destroy()}}Z3.defaultOptions={position:[0,0,0],viewDistance:100,scale:1,near:0,cameraAttached:!1,attachedPathGuid:"",far:Number.MAX_VALUE,disableDepthTestDistance:Number.MAX_VALUE,show:!1,innerHTML:"",defaultImgUrl:Function},Z3.registerType(Z3,"GeoPin");const q3=Z3;class $3 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=2,this._polygonPositions=[],this._hpr=[0,0,0],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{if(e.length<2)return void(this._polygonShow=!1);this._polygonPositions.length=0,this._polygonPositions.push(e[0][0],e[1][1]),this._polygonPositions.push(e[0][0],e[0][1]),this._polygonPositions.push(e[1][0],e[0][1]),this._polygonPositions.push(e[1][0],.5*(e[0][1]+e[1][1]));const t=e[1][0]-e[0][0];this._polygonPositions.push(e[0][0]+.01*t,.5*(e[0][1]+e[1][1])),this._polygonPositions.push(e[0][0]+.01*t,e[1][1]),this._polygon.positions=this._polygonPositions,this._polygon.height=e[0][2],this._polygonShow=!0}))}}$3.registerType($3,"GeoRightAngleFlag");const e4=$3;class t4 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=2,this._polygonPositions=[],this._hpr=[0,0,0],this._keyPositions=new Array(50).fill(0).map(e=>[0,0,0]),this._bottomCurcePositions=new Array(20).fill(0).map(e=>[0,0,0]),this._sbottomCurcePositions=new Array(20).fill(0).map(e=>[0,0,0]),this._tbottomCurcePositions=new Array(20).fill(0).map(e=>[0,0,0]),this._fbottomCurcePositions=new Array(20).fill(0).map(e=>[0,0,0]),this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{if(e.length<2)return void(this._polygonShow=!1);this._keyPositions[0].splice(0,3,...e[0]),this._keyPositions[1].splice(0,3,...e[1]),this._polygonPositions.length=0,this._polygonPositions.push(e[0][0],e[1][1]),this._polygonPositions.push(e[0][0],e[0][1]);const t=e[1][0]-e[0][0],i=[e[0][0],e[0][1],0],n=[.5*(e[0][0]+e[1][0]),e[0][1],0],r=[.5*(e[0][0]+e[1][0])-2*t,e[0][1]-.8*t,0],o=[e[0][0],e[0][1]-t,0],s=Ww.Math.geoLerp(i,n,.9,this._keyPositions[4]),a=Ww.Math.geoLerp(r,o,.9,this._keyPositions[5]),l=Ww.Math.geoLerp(s,a,.2,this._keyPositions[6]);Ww.Math.Bezier.bezier2(i,l,n,19,this._bottomCurcePositions),this._bottomCurcePositions.forEach(e=>{this._polygonPositions.push(e[0],e[1])});const u=[.5*(e[0][0]+e[1][0]),e[0][1],0],c=[e[1][0],e[0][1],0],h=[.5*(e[0][0]+e[1][0])+t,e[0][1]-.1*t+t,0],p=[e[0][0],e[0][1]-t,0],d=Ww.Math.geoLerp(u,c,.1,this._keyPositions[7]),f=Ww.Math.geoLerp(h,p,.1,this._keyPositions[8]),m=Ww.Math.geoLerp(d,f,.2,this._keyPositions[9]);Ww.Math.Bezier.bezier2(u,m,c,19,this._sbottomCurcePositions),this._sbottomCurcePositions.forEach(e=>{this._polygonPositions.push(e[0],e[1])}),this._polygonPositions.push(e[1][0],e[0][1]),this._polygonPositions.push(e[1][0],.5*(e[0][1]+e[1][1]));const g=[e[1][0],.5*(e[0][1]+e[1][1]),0],y=[.5*(e[0][0]+e[1][0]),.5*(e[0][1]+e[1][1]),0],_=[e[1][0]-t,.5*(e[0][1]+e[1][1])+.5*t,0],A=[e[1][0]-6*t,.5*(e[0][1]+e[1][1])+2*t,0],v=Ww.Math.geoLerp(g,y,.1,this._keyPositions[7]),C=Ww.Math.geoLerp(_,A,.1,this._keyPositions[8]),b=Ww.Math.geoLerp(v,C,.2,this._keyPositions[9]);Ww.Math.Bezier.bezier2(g,b,y,19,this._tbottomCurcePositions),this._tbottomCurcePositions.forEach(e=>{this._polygonPositions.push(e[0],e[1])});const w=[.5*(e[0][0]+e[1][0]),.5*(e[0][1]+e[1][1]),0],x=[e[0][0]+.01*t,.5*(e[0][1]+e[1][1]),0],S=[.5*(e[0][0]+e[1][0])+5*t,.5*(e[0][1]+e[1][1])-1.1*t,0],M=[e[0][0]+1.01*t,.5*(e[0][1]+e[1][1])-t,0],P=Ww.Math.geoLerp(w,x,.9,this._keyPositions[4]),E=Ww.Math.geoLerp(S,M,.9,this._keyPositions[5]),L=Ww.Math.geoLerp(P,E,.2,this._keyPositions[6]);Ww.Math.Bezier.bezier2(w,L,x,19,this._fbottomCurcePositions),this._fbottomCurcePositions.forEach(e=>{this._polygonPositions.push(e[0],e[1])}),this._polygonPositions.push(e[0][0]+.01*t,e[1][1]),this._polygon.positions=this._polygonPositions,this._polygon.height=e[0][2],this._polygonShow=!0}))}}t4.registerType(t4,"GeoCurveFlag");const i4=t4;class n4 extends v3{constructor(e,t){super(e,t),this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{this._polyline.positions=e}))}}n4.registerType(n4,"GeoPolyline");const r4=n4;class o4 extends v3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=3,this._polylinePositions=new Array(360).fill(0).map(e=>[0,0,0]),this._pgPositions=[],this._nextPosition=[0,0,0],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{if(e.length<3)return void(this._polylineShow=!1);const t=Ww.Math.geoDistance(e[0],e[1]);this._polylinePositions.length=0,this._polylinePositions.push([...e[1]]);const i=Ww.Math.hpr(e[0],e[1]),n=Ww.Math.hpr(e[0],e[2]);var r=0;r=i[0]>=n[0]?(i[0]-n[0])*(180/Math.PI):(i[0]-n[0]+2*Math.PI)*(180/Math.PI);for(var o=0;o<r;o++)Ww.Math.geoMove(e[0],i[0]-=Math.PI/180,t,this._nextPosition),this._polylinePositions.push([...this._nextPosition]);this._polyline.positions=this._polylinePositions,this._polylineShow=!0}))}}o4.registerType(o4,"GeoArc");const s4=o4;class a4 extends v3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=3,this._bezierPositions=new Array(20).fill(0).map(e=>[0,0,0]),this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{e.length<3||Ww.Math.hasSamePosition(e)?this._polylineShow=!1:(Ww.Math.Bezier.bezier2(e[0],e[1],e[2],19,this._bezierPositions),this._polyline.positions=this._bezierPositions,this._polylineShow=!0)}))}}a4.registerType(a4,"GeoBezier2");const l4=a4;class u4 extends v3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=4,this._bezierPositions=new Array(20).fill(0).map(e=>[0,0,0]),this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{e.length<4||Ww.Math.hasSamePosition(e)?this._polylineShow=!1:(Ww.Math.Bezier.bezier3(e[0],e[1],e[2],e[3],19,this._bezierPositions),this._polyline.positions=this._bezierPositions,this._polylineShow=!0)}))}}u4.registerType(u4,"GeoBezier3");const c4=u4;class h4 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=3,this._polygonPositions=new Array(360).fill(0).map(e=>[0,0,0]),this._pgPositions=[],this._nextPosition=[0,0,0],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{if(e.length<3)return void(this._polygonShow=!1);const t=Ww.Math.geoDistance(e[0],e[1]);this._polygonPositions.length=0,this._polygonPositions.push([...e[0]]),this._polygonPositions.push([...e[1]]);const i=Ww.Math.hpr(e[0],e[1]),n=Ww.Math.hpr(e[0],e[2]);if(!i||!n)return;var r=0;r=i[0]>=n[0]?(i[0]-n[0])*(180/Math.PI):(i[0]-n[0]+2*Math.PI)*(180/Math.PI);for(var o=0;o<r;o++)Ww.Math.geoMove(e[0],i[0]-=Math.PI/180,t,this._nextPosition),this._polygonPositions.push([...this._nextPosition]);this._pgPositions.length=0,this._polygonPositions.forEach(e=>{this._pgPositions.push(e[0],e[1])}),this._polygon.positions=this._pgPositions,this._polygon.height=e[0][2],this._polygonShow=!0}))}}h4.registerType(h4,"GeoSector");const p4=h4;class d4 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=1,this._polygonPositions=new Array(360).fill(0).map(e=>[0,0,0]),this._pgPositions=[],this._nextPosition=[0,0,0],this.disposers.push(AL.watch(()=>({positions:[...this.positions.map(e=>[...e])],radius:this.radius,startAngle:this.startAngle,angle:this.angle}),({positions:e,radius:t,startAngle:i,angle:n})=>{if(e.length<=0)return void(this._polygonShow=!1);if(n<=0||t<=0)return;this._polygonPositions.length=0,this._polygonPositions.push([...e[0]]);const r=Math.PI/180;for(let t=0;t<n;++t)Ww.Math.geoMove(e[0]);const o=e[0];let s=i;const a=i+n;for(;s<a;)Ww.Math.geoMove(o,s,t,this._nextPosition),this._polygonPositions.push([...this._nextPosition]),s+=r;Ww.Math.geoMove(o,a,t,this._nextPosition),this._polygonPositions.push([...this._nextPosition]),this._pgPositions.length=0,this._polygonPositions.forEach(e=>{this._pgPositions.push(e[0],e[1])}),this._polygon.positions=this._pgPositions,this._polygon.height=e[0][2],this._polygonShow=!0}))}}d4.defaultOptions={radius:2e5,startAngle:0,angle:60*Math.PI/180},d4.registerType(d4,"GeoSector2");const f4=d4;class m4 extends v3{constructor(e,t){super(e,t),this._leftArrowPosition=[0,0,0],this._rightArrowPosition=[0,0,0],this._leftArrowPosition2=[0,0,0],this._rightArrowPosition2=[0,0,0],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{const t=e.length;Ww.Math.distance(e);if(t<2||Ww.Math.hasSamePosition(e))this._polylineShow=!1;else{if(t>2)for(var i=t-1;i>0;i--){i>1&&(i%2==0?e[i][0]=e[i-1][0]:e[i][1]=e[i-1][1]);const t=Ww.Math.hpr(e[i],e[i-1]);if(!t)return;Ww.Math.geoMove(e[i],t[0]+Math.PI/6,.1*Ww.Math.distance(e[i-1],e[i]),this._leftArrowPosition),Ww.Math.geoMove(e[i],t[0]-Math.PI/6,.1*Ww.Math.distance(e[i-1],e[i]),this._rightArrowPosition),e.push([...e[i]]),e.push([...this._leftArrowPosition]),e.push([...e[i]]),e.push([...this._rightArrowPosition]),e.push([...e[i]])}this._polyline.positions=e,this._polylineShow=!0}}))}}m4.registerType(m4,"GeoParallelSearch");const g4=m4;class y4 extends v3{constructor(e,t){super(e,t),this._positions=[],this.disposers.push(AL.watch(()=>({positions:[...this.positions.map(e=>[...e])],slices:this.slices}),({positions:e,slices:t})=>{e.length<2?this._polylineShow=!1:(this._positions.length=0,Ww.Math.interpolatePositions(e,t,!1,this._positions),this._polyline.positions=this._positions,this._polylineShow=!0)}))}}y4.defaultOptions={slices:100},y4.registerType(y4,"GeoCurve");const _4={GeoSectorSearch:b3,GeoPolylineArrow:x3,GeoTriFlag:E3,GeoCurveArrow:T3,GeoDoubleArrow:D3,GeoRectangle:N3,GeoRectangle2:Y3,GeoCircle:Q3,GeoCircle2:V3,GeoPolygon:K3,GeoPin:q3,GeoRightAngleFlag:e4,GeoCurveFlag:i4,GeoPolyline:r4,GeoArc:s4,GeoBezier2:l4,GeoBezier3:c4,GeoSector:p4,GeoSector2:f4,GeoParallelSearch:g4,GeoCurve:y4};class A4 extends i1{constructor(e,t){super(e,t),this._onlyMove=!1,this._fixedPositionsNum=void 0,AL.extend(this,{_polygonShow:!0}),this._polygon=new lacdt.Obj.Polygon(e),this.disposers.push(()=>{this._polygon=this._polygon&&this._polygon.destroy()}),this._polygon.show=this._polygonShow&&this.show,fT.Interaction.Picking.registerPickingParent(this._polygon,this);const i=()=>{this._polygon.show=this._polygonShow&&this.show,this._polygon.width=this.width,this._polygon.color=this.color,this._polygon.ground=this.ground,this._polygon.outline.width=this.outlineWidth,this._polygon.outline.color=this.outlineColor,this._polygon.outline.show=this.outlineShow,this._polygon.depthTest=this.depthTest};i(),this.disposers.push(AL.watch(()=>({show:this._polygonShow&&this.show,width:this.width,color:[...this.color],ground:this.ground,outlineWidth:this.outlineWidth,outlineColor:this.outlineColor,outlineShow:this.outlineShow,depthTest:this.depthTest}),()=>i()))}get onlyMove(){return this._onlyMove}get fixedPositionsNum(){return this._fixedPositionsNum}flyTo(){this._polygon.flyTo()}}A4.defaultOptions={positions:[],show:!0,color:[0,1,0,.1],outlineWidth:2,outlineColor:[0,1,0,1],outlineShow:!0,depthTest:!1};const v4=A4;function C4(e,t,i,n,r,o,s){let a=e*t,l=.7*a,u=Cesium.Cartesian3.distance(r[0],r[1]),c=!1;u<l&&(l=u,a=l/.7,c=!0);let h=Ww.Math.hpr(o[1],o[0],[0,0,0])[0],p=Ww.Math.geoMove(o[1],h,l,[0,0,0]),d=Ww.Math.geoMove(o[1],h,a,[0,0,0]),f=Ww.Math.hpr(p,o[1],[0,0,0])[0],m=Ww.Math.hpr(d,o[1],[0,0,0])[0];return s[0]=Ww.Math.geoMove(p,f-Cesium.Math.PI_OVER_TWO,i,[0,0,0]),s[4]=Ww.Math.geoMove(p,f+Cesium.Math.PI_OVER_TWO,i,[0,0,0]),s[1]=Ww.Math.geoMove(d,m-Cesium.Math.PI_OVER_TWO,i*n,[0,0,0]),s[3]=Ww.Math.geoMove(d,m+Cesium.Math.PI_OVER_TWO,i*n,[0,0,0]),s[2]=[...o[1]],c}var b4=__webpack_require__(6763);class w4 extends v4{constructor(e,t){super(e,t),this._onlyMove=!0,this._polygonPositions=[],this.a={b:{c:5},bb:5},AL.extend(this,{a:this.a},{a:AL.reaction.observable.ref}),this.disposers.push(AL.watch(()=>this.a,()=>{b4.log("this.a的数据改变了")})),this.disposers.push(AL.watch(()=>({minWidthScale:this.minWidthScale,dynamicWidthScale:this.dynamicWidthScale,arrowMaxHeightScale:this.arrowMaxHeightScale,arrowWingWidthScale:this.arrowWingWidthScale}),()=>{this.change(this.positions,this.minWidthScale,this.dynamicWidthScale,this.arrowMaxHeightScale,this.arrowWingWidthScale)})),this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],()=>{this.change(this.positions,this.minWidthScale,this.dynamicWidthScale,this.arrowMaxHeightScale,this.arrowWingWidthScale)}))}change(e,t,i,n,r){let o=[...e];const s=o.length;if(s<2||function(e,t){if(!e||!t)return!1;S4=0;for(let i=0;i<e.length;i++)if(S4=e[i]==t[i]?0:1,S4>0)return!1;return!0}(o[s-1],o[s-2]))return;let a=o.map(e=>Cesium.Cartesian3.fromRadians(...e,null,new Cesium.Cartesian3));this._polygonPositions.length=0;let l,u,c,h,p,d,f,m=[0,0,0],g=new Array(s).fill(0).map((e,t)=>(l=o[t-1],u=o[t+1],c=o[t],h=l?Ww.Math.hpr(c,l,m)[0]:0,p=u?Ww.Math.hpr(c,u,m)[0]:0,d=h&&p?2:1,f=(h+p)/d,f=h>p?f:f-Cesium.Math.PI,f<0?f+Cesium.Math.TWO_PI:f)),y=0,_=[];a.forEach((e,t)=>{l=a[t-1]||e,u=e,y+=Cesium.Cartesian3.distance(l,u),_.push(y)}),_=_.map(e=>y-e);const A=(i/=2)*y,v=(t/=2)*y;let C=new Array(_.length).fill(0).map((e,t)=>v+A*_[t]/y),b=[],w=C4(y,n,v,r,a.slice(-2),o.slice(-2),b),x=[],S=[];o.forEach((e,t)=>{0==t||t==s-1?(x.push(Ww.Math.geoMove(e,g[t]+Cesium.Math.PI_OVER_TWO,C[t])),S.push(Ww.Math.geoMove(e,g[t]-Cesium.Math.PI_OVER_TWO,C[t]))):(x.push(Ww.Math.geoMove(e,g[t]-Cesium.Math.PI,C[t])),S.push(Ww.Math.geoMove(e,g[t],C[t])))}),x.pop(),S.pop(),w&&(x.pop(),S.pop()),x.push(b[0]),S.push(b[b.length-1]);let M=Ww.Math.interpolatePositions(x,20*s,!1,[]),P=Ww.Math.interpolatePositions(S,20*s,!1,[]);M.forEach(e=>{this._polygonPositions.push(e[0],e[1])}),b.forEach(e=>{this._polygonPositions.push(e[0],e[1])});for(let e=P.length-1;e>=0;e--)this._polygonPositions.push(P[e][0],P[e][1]);this._polygon.positions=this._polygonPositions,this._polygon.height=o[0][2],this._polygonShow=!0}}w4.registerType(w4,"GeoArrow"),w4.defaultOptions={minWidthScale:.06,dynamicWidthScale:.1,arrowMaxHeightScale:.15,arrowWingWidthScale:2};const x4=w4;let S4;class M4 extends v4{constructor(e,t){super(e,t),this._onlyMove=!0,this._polygonPositions=[],this._fixedPositionsNum=2,this.disposers.push(AL.watch(()=>({showType:this.showType}),()=>this.changeShowType())),this.disposers.push(AL.watch(()=>({minWidthScale:this.minWidthScale,dynamicWidthScale:this.dynamicWidthScale,arrowMaxHeightScale:this.arrowMaxHeightScale,arrowWingWidthScale:this.arrowWingWidthScale}),()=>{this.change(this.positions,this.minWidthScale,this.dynamicWidthScale,this.arrowMaxHeightScale,this.arrowWingWidthScale)})),this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],()=>{this.change(this.positions,this.minWidthScale,this.dynamicWidthScale,this.arrowMaxHeightScale,this.arrowWingWidthScale)}))}changeShowType(){let e=P4[this.showType];Object.keys(e).forEach(t=>{this[t]=e[t]})}change(){if(this.positions.length<2||function(e,t){if(!e||!t)return!1;L4=0;for(let i=0;i<e.length;i++)if(L4=e[i]==t[i]?0:1,L4>0)return!1;return!0}(this.positions[0],this.positions[1]))return;let e=this.positions.map(e=>Cesium.Cartesian3.fromRadians(...e,null,new Cesium.Cartesian3));this._polygonPositions.length=0;let t=Ww.Math.geoDistance(...this.positions),i=Ww.Math.hpr(...this.positions)[0],n=Ww.Math.geoMove(this.positions[0],i,t*(1-this.arrowMaxHeightScale)),r=(this.dynamicWidthScale+this.minWidthScale)/2,o=this.minWidthScale/2,s=[Ww.Math.geoMove(this.positions[0],i+Cesium.Math.PI_OVER_TWO,t*r),Ww.Math.geoMove(this.positions[0],i-Cesium.Math.PI_OVER_TWO,t*r)],a=Ww.Math.hpr(n,this.positions[1])[0],l=[Ww.Math.geoMove(n,a+Cesium.Math.PI_OVER_TWO,t*o),Ww.Math.geoMove(n,a-Cesium.Math.PI_OVER_TWO,t*o)],u=[Ww.Math.hpr(s[0],l[0])[0],Ww.Math.hpr(s[1],l[1])[0]],c=[Ww.Math.geoDistance(l[0],s[0]),Ww.Math.geoDistance(l[1],s[1])],h=[[],[]];for(let e=0;e<20;e++)h[0].push(Ww.Math.geoMove(s[0],u[0],e*c[0]/20)),h[1].push(Ww.Math.geoMove(s[1],u[1],e*c[1]/20));if(this.tail){let e=Ww.Math.geoMove(this.positions[0],i,this.tailHeightScale*t);this._polygonPositions.push(e[0],e[1])}h[0].forEach(e=>{this._polygonPositions.push(e[0],e[1])});let p=[];C4(t,this.arrowMaxHeightScale,this.minWidthScale/2,this.arrowWingWidthScale,e,this.positions,p);for(let e=p.length-1;e>=0;e--)this._polygonPositions.push(p[e][0],p[e][1]);for(let e=h[1].length-1;e>=0;e--)this._polygonPositions.push(h[1][e][0],h[1][e][1]);this._polygon.positions=this._polygonPositions,this._polygon.height=this.positions[0][2],this._polygonShow=!0}}const P4={forkedTail:{minWidthScale:.06,dynamicWidthScale:.1,arrowMaxHeightScale:.15,arrowWingWidthScale:2,tail:!0},cusp:{minWidthScale:.06,dynamicWidthScale:.1,arrowMaxHeightScale:.15,arrowWingWidthScale:2,tail:!1},parallel:{minWidthScale:.12,dynamicWidthScale:0,arrowMaxHeightScale:.08,arrowWingWidthScale:2,tail:!1}};M4.defaultOptions={showType:"forkedTail",positions:[],tailHeightScale:.15,...P4.forkedTail},M4.registerType(M4,"GeoSimpleArrow");const E4=M4;let L4;let T4=new Cesium.Cartesian3;class O4 extends rg.A{constructor(e,t){super(e,t),this.disposers.push(fT.Interaction.InteractionProperty.registerPositionEditing(this._earth,this,{positionEditingProperty:"positionEditing"})),this.disposers.push(fT.Interaction.InteractionProperty.registerPositionPicking(this._earth,this,{positionPickingProperty:"creating"})),this.disposers.push(fT.Interaction.InteractionProperty.registerRotationEditing(this._earth,this,{rotationEditingProperty:"rotationEditing"})),this._viewer=e.czm.viewer;let i=new Cesium.Cartesian3;Cesium.Cartesian3.fromRadians(...this.position,null,i),this._modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this._updateCallback=()=>{},this._particleSystem=new Cesium.ParticleSystem({image:this.image,show:this.show&&this.enabled,startColor:new Cesium.Color(this.startColor[0],this.startColor[1],this.startColor[2],this.startColor[3]),endColor:new Cesium.Color(this.endColor[0],this.endColor[1],this.endColor[2],this.endColor[3]),startScale:this.startScale,endScale:this.endScale,minimumParticleLife:this.minimumParticleLife,maximumParticleLife:this.maximumParticleLife,minimumSpeed:this.minimumSpeed,maximumSpeed:this.maximumSpeed,imageSize:new Cesium.Cartesian2(this.particleSize,this.particleSize),emissionRate:this.emissionRate,lifetime:16,modelMatrix:this._modelMatrix,emitterModelMatrix:Cesium.Matrix4.IDENTITY,emitter:new Cesium.CircleEmitter(2),updateCallback:this._updateCallback}),this._viewer.scene.primitives.add(this._particleSystem),this.disposers.push(()=>{this._particleSystem&&(this._viewer.scene.primitives.remove(this._particleSystem),this._particleSystem=void 0)}),this.disposers.push(AL.watch(()=>({startColor:[...this.startColor],endColor:[...this.endColor],image:this.image,emissionRate:this.emissionRate,maximumSpeed:this.maximumSpeed,minimumSpeed:this.minimumSpeed,minimumImageSize:this.minimumImageSize,maximumImageSize:this.maximumImageSize,minimumParticleLife:this.minimumParticleLife,maximumParticleLife:this.maximumParticleLife,show:this.show&&this.enabled}),()=>this.update())),this.disposers.push(AL.watch(()=>({image:this.image}),()=>this.updateParticleSystem())),this.disposers.push(AL.watch(()=>({particleSize:this.particleSize}),()=>this.updateParticleSize())),this.disposers.push(AL.watch(()=>[...this.position,...this.rotation],()=>this.updateMatrix())),this.disposers.push(AL.watch(()=>({gravity:this.gravity}),()=>{this._particleSystem.updateCallback=this.updateGravity(this.gravity)})),this.disposers.push(AL.watch(()=>({emitterRadius:this.emitterRadius,emitterAngle:this.emitterAngle,emitterType:this.emitterType}),()=>this.updateEmitter()))}toBeFountain(){let e=D4.fountain;this.changeShowType(e)}toBeSmoke(){let e=D4.smoke;this.changeShowType(e)}changeShowType(e){Object.keys(e).forEach(t=>{this[t]=e[t]})}updateMatrix(){let e=new Cesium.Cartesian3,t=new Cesium.Matrix4;if(Cesium.Cartesian3.fromRadians(...this.position,null,e),!e.x&&!e.y&&!e.z)return;this._modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(e);let i=new Cesium.HeadingPitchRoll(...this.rotation),n=Cesium.Quaternion.fromHeadingPitchRoll(i,new Cesium.Quaternion);t=Cesium.Matrix4.fromTranslationQuaternionRotationScale(Cesium.Cartesian3.ZERO,n,new Cesium.Cartesian3(1,1,1),t),Cesium.Matrix4.multiply(this._modelMatrix,t,this._modelMatrix),this._particleSystem.modelMatrix=this._modelMatrix}updateParticleSize(){this._particleSystem.imageSize?(this._particleSystem.imageSize.x=this.particleSize,this._particleSystem.imageSize.y=this.particleSize,this._particleSystem.maximumImageSize.x=this.particleSize,this._particleSystem.maximumImageSize.y=this.particleSize,this._particleSystem.minimumImageSize.x=this.particleSize,this._particleSystem.minimumImageSize.y=this.particleSize):this._particleSystem.imageSize=new Cesium.Cartesian2(this.particleSize,this.particleSize)}updateParticleSystem(){this._particleSystem&&(this._viewer.scene.primitives.remove(this._particleSystem),this._particleSystem=void 0),this._particleSystem=new Cesium.ParticleSystem({image:this.image,show:this.show&&this.enabled,startColor:{red:this.startColor[0],green:this.startColor[1],blue:this.startColor[2],alpha:this.startColor[3]},endColor:{red:this.endColor[0],green:this.endColor[1],blue:this.endColor[2],alpha:this.endColor[3]},startScale:this.startScale,endScale:this.endScale,minimumParticleLife:this.minimumParticleLife,maximumParticleLife:this.maximumParticleLife,minimumSpeed:this.minimumSpeed,maximumSpeed:this.maximumSpeed,imageSize:new Cesium.Cartesian2(this.particleSize,this.particleSize),emissionRate:this.emissionRate,lifetime:16,modelMatrix:this._modelMatrix,emitterModelMatrix:Cesium.Matrix4.IDENTITY,emitter:this._emitter,updateCallback:this._updateCallback}),this._viewer.scene.primitives.add(this._particleSystem)}update(){this._particleSystem.startColor={red:this.startColor[0],green:this.startColor[1],blue:this.startColor[2],alpha:this.startColor[3]},this._particleSystem.endColor={red:this.endColor[0],green:this.endColor[1],blue:this.endColor[2],alpha:this.endColor[3]},this._particleSystem.startScale=this.startScale,this._particleSystem.endScale=this.endScale,this._particleSystem.emissionRate=this.emissionRate,this._particleSystem.minimumSpeed=this.minimumSpeed,this._particleSystem.maximumSpeed=this.maximumSpeed,this._particleSystem.minimumParticleLife=this.minimumParticleLife,this._particleSystem.maximumParticleLife=this.maximumParticleLife,this._particleSystem.show=this.show&&this.enabled}updateGravity(e){return this._updateCallback=(t,i)=>{Cesium.Cartesian3.normalize(t.position,T4),Cesium.Cartesian3.multiplyByScalar(T4,e*i,T4),t.velocity=Cesium.Cartesian3.add(t.velocity,T4,t.velocity)}}updateEmitter(){let e;if(e="BoxEmitter"!=this.emitterType?"ConeEmitter"==this.emitterType?this.emitterAngle:this.emitterRadius:new Cesium.Cartesian3(...new Array(3).fill(this.emitterRadius)),!this._particleSystem)return this._emitter=new Cesium[this.emitterType](e),this._emitter;this._particleSystem.emitter=new Cesium[this.emitterType](e),this._emitter=this._particleSystem.emitter}flyTo(){if(this._particleSystem){let e=Math.abs(this._particleSystem.minimumSpeed)>Math.abs(this._particleSystem.maximumSpeed)?Math.abs(this._particleSystem.minimumSpeed):Math.abs(this._particleSystem.maximumSpeed),t=Math.abs(this._particleSystem.minimumParticleLife)>Math.abs(this._particleSystem.maximumParticleLife)?Math.abs(this._particleSystem.minimumParticleLife):Math.abs(this._particleSystem.maximumParticleLife),i=new Cesium.Cartesian3;Cesium.Matrix4.getColumn(this._particleSystem.modelMatrix,3,i);let n=e*t,r=new Cesium.BoundingSphere(i,n);this._viewer.camera.flyToBoundingSphere(r,{duration:2})}}}const D4={fountain:{gravity:10,minimumSpeed:10,maximumSpeed:15,gravity:-10,emitterRadius:.1,emissionRate:20,startColor:[1,1,1,1],endColor:[1,1,1,0],emitterType:"CircleEmitter",rotation:[0,Cesium.Math.PI_OVER_TWO,0]},smoke:{startColor:[.12549,.69804,.66667,.7],endColor:[1,1,1,0],rotation:[0,0,0],emissionRate:5,gravity:0,minimumParticleLife:2,maximumParticleLife:2,minimumSpeed:1,maximumSpeed:4,emitterRadius:2,emitterType:"CircleEmitter"}};O4.defaultOptions={show:!0,enabled:!0,position:[1.6988083400554626,.6666896940162155,30],startScale:1,endScale:5,particleSize:25,image:"../../XbsjEarth-Plugins/plottingSymbol2/assets/SampleData/smoke.png",emitterAngle:1,...D4.smoke},O4.registerType(O4,"ParticleSystem");const B4=O4;let I4;const R4=function(){if(!I4){I4=document.createElement("canvas"),I4.width=20,I4.height=20;var e=I4.getContext("2d");e.beginPath(),e.arc(8,8,8,0,Cesium.Math.TWO_PI,!0),e.closePath(),e.fillStyle="rgb(255, 255, 255)",e.fill()}return I4};new Cesium.Cartesian3;class N4 extends rg.A{constructor(e,t){super(e,t),this.disposers.push(fT.Interaction.InteractionProperty.registerPositionEditing(this._earth,this,{positionEditingProperty:"editing"})),this.disposers.push(fT.Interaction.InteractionProperty.registerPositionPicking(this._earth,this,{positionPickingProperty:"creating"})),this._viewer=e.czm.viewer,this._modelMatrix=this._modelMatrix||Cesium.Matrix4.IDENTITY,this._position=new Cesium.Cartesian3,this._particleSystem=new Cesium.ParticleSystem({image:R4(),show:this.show&&this.enabled,startColor:{red:this.startColor[0],green:this.startColor[1],blue:this.startColor[2],alpha:this.startColor[3]},endColor:{red:this.endColor[0],green:this.endColor[1],blue:this.endColor[2],alpha:0},particleLife:this.particleLife,speed:this.radius/this.particleLife||0,imageSize:new Cesium.Cartesian2(7,7),bursts:[new Cesium.ParticleBurst({time:0,minimum:400,maximum:400})],emissionRate:0,lifetime:this.particleLife+this.burstInterval||2,modelMatrix:this._modelMatrix,emitter:new Cesium.SphereEmitter(.1)}),this._viewer.scene.primitives.add(this._particleSystem),this.disposers.push(()=>{this._particleSystem&&(this._viewer.scene.primitives.remove(this._particleSystem),this._particleSystem=void 0)}),this.disposers.push(AL.watch(()=>({startColor:[...this.startColor],endColor:[...this.endColor],show:this.show&&this.enabled}),()=>this.updateColor())),this.disposers.push(AL.watch(()=>({radius:this.radius,particleLife:this.particleLife,burstInterval:this.burstInterval}),()=>this.updateInitialVelocity())),this.disposers.push(AL.watch(()=>({position:[...this.position]}),()=>this.updateModelMatrix()))}updateColor(){this._particleSystem.startColor={red:this.startColor[0],green:this.startColor[1],blue:this.startColor[2],alpha:this.startColor[3]},this._particleSystem.endColor={red:this.endColor[0],green:this.endColor[1],blue:this.endColor[2],alpha:this.endColor[3]},this._particleSystem.show=this.show&&this.enabled}updateModelMatrix(){Cesium.Cartesian3.fromRadians(...this.position,null,this._position),(this._position.x||this._position.y||this._position.z)&&(this._modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(this._position),this._particleSystem.modelMatrix=this._modelMatrix)}updateInitialVelocity(){this._initialVelocity=this.radius/this.particleLife,this._particleSystem.lifetime=this.particleLife+this.burstInterval,this._particleSystem.minimumParticleLife=this.particleLife,this._particleSystem.maximumParticleLife=this.particleLife,this._particleSystem.minimumSpeed=this._initialVelocity,this._particleSystem.maximumSpeed=this._initialVelocity}flyTo(){this.boundingSphere=new Cesium.BoundingSphere(this._position,this.radius),this._viewer.camera.flyToBoundingSphere(this.boundingSphere,{duration:2})}}N4.defaultOptions={show:!0,radius:200,particleLife:.8,burstInterval:1,startColor:[.75,0,.8,1],endColor:[.75,0,.8,0],position:[1.7,.6666896940162155,100]},N4.registerType(N4,"ParticleSystemFireWork");const k4=N4;class F4 extends rg.A{constructor(e,t){super(e,t),this.disposers.push(fT.Interaction.InteractionProperty.registerPositionEditing(this._earth,this,{positionEditingProperty:"positionEditing"})),this.disposers.push(fT.Interaction.InteractionProperty.registerPositionPicking(this._earth,this,{positionPickingProperty:"creating"})),this.disposers.push(fT.Interaction.InteractionProperty.registerRotationEditing(this._earth,this,{rotationEditingProperty:"rotationEditing"})),this._viewer=e.czm.viewer,this._particleSystemList=[],this._modelMatrix=Cesium.Matrix4.clone(Cesium.Matrix4.IDENTITY,new Cesium.Matrix4),this._inverseModelMatrix=Cesium.Matrix4.clone(Cesium.Matrix4.IDENTITY,new Cesium.Matrix4),this._position=new Cesium.Cartesian3,this._colors=[],this.disposers.push(()=>{this._particleSystemList=this._particleSystemList.map(e=>{if(e)return this._viewer.scene.primitives.remove(e),e=void 0}),this._particleSystemList.length=0}),this.disposers.push(AL.watch(()=>[...this.position,...this.rotation],()=>this.updateMatrix())),this.disposers.push(AL.watch(()=>({show:this.show&&this.enabled,color:[...this.colors]}),()=>this.updateColors())),this.disposers.push(AL.watch(()=>({emissionRate:this.emissionRate,particleSize:this.particleSize}),()=>this.updateCommon())),this.disposers.push(AL.watch(()=>({radius:this.radius,rotate:this.rotate,height:this.height,particleLife:this.particleLife}),()=>this.update())),this.disposers.push(AL.watch(()=>this.particleNumber,()=>{this.update(),this.updateParticleSystemList()})),this.updateParticleSystemList()}updateCommon(){this._particleSystemList.forEach(e=>{e.emissionRate=this.emissionRate,e.minimumImageSize.x=this.particleSize,e.minimumImageSize.y=this.particleSize,e.maximumImageSize.x=this.particleSize,e.maximumImageSize.y=this.particleSize})}updateColors(){this._colors.length=0;for(let e=0;e<this.colors.length;e+=4)this._colors.push(new Cesium.Color(this.colors[e],this.colors[e+1],this.colors[e+2],this.colors[e+3]));let e=this._colors.length,t=0;this._particleSystemList.forEach((i,n)=>{t=n%e,i.startColor=this._colors[t],i.endColor=this._colors[t].withAlpha(0),i.show=this.show&&this.enabled})}update(){this._radiuStep=this.radius/this.particleLife,this._rotateSpeed=this.rotate/this.particleLife,this._speed=this.height/this.particleLife,this.changeUpdateCallBack()}updateMatrix(){let e=new Cesium.Matrix4;if(Cesium.Cartesian3.fromRadians(...this.position,null,this._position),!this._position.x&&!this._position.y&&!this._position.z)return;this._modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(this._position);let t=new Cesium.HeadingPitchRoll(...this.rotation),i=Cesium.Quaternion.fromHeadingPitchRoll(t,new Cesium.Quaternion);e=Cesium.Matrix4.fromTranslationQuaternionRotationScale(Cesium.Cartesian3.ZERO,i,new Cesium.Cartesian3(1,1,1),e),Cesium.Matrix4.multiply(this._modelMatrix,e,this._modelMatrix),this._inverseModelMatrix=Cesium.Matrix4.inverse(this._modelMatrix,this._inverseModelMatrix),this._particleSystemList.forEach((e,t)=>{e.modelMatrix=this._modelMatrix}),this.changeUpdateCallBack()}changeUpdateCallBack(){this._particleSystemList.forEach((e,t)=>{e.updateCallback=this.updateCallback(this._radiuStep,this._rotateSpeed,Cesium.Math.TWO_PI*t/this.particleNumber,this._speed,this._inverseModelMatrix,this._modelMatrix)})}updateCallback(e,t,i,n,r,o){let s=new Cesium.Cartesian3;return(a,l)=>{l=Cesium.Math.clamp(l,0,.05),s=Cesium.Matrix4.multiplyByPoint(r,a.position,s),i+=l*t,i%=Cesium.Math.TWO_PI,s.x+=Math.cos(i)*e*l,s.y+=Math.sin(i)*e*l,s.z-=n*l,a.position=Cesium.Matrix4.multiplyByPoint(o,s,a.position)}}updateParticleSystemList(){let e;this._particleSystemList=this._particleSystemList.map(e=>{if(e)return this._viewer.scene.primitives.remove(e),e=void 0}),this._particleSystemList.length=0;for(let t=0;t<this.particleNumber;++t){e=t%this._colors.length;let i=this.updateCallback(this._radiuStep,this._rotateSpeed,Cesium.Math.TWO_PI*t/this.particleNumber,this._speed,this._inverseModelMatrix,this._modelMatrix);this._particleSystemList.push(new Cesium.ParticleSystem({image:R4(),show:this.show&&this.enabled,startColor:this._colors[e],endColor:this._colors[e].withAlpha(0),particleLife:this.particleLife,speed:5e-6,imageSize:new Cesium.Cartesian2(this.particleSize,this.particleSize),emissionRate:this.emissionRate,modelMatrix:this._modelMatrix,lifetime:.1,emitter:new Cesium.CircleEmitter(.01),updateCallback:i}))}this._particleSystemList.forEach(e=>{this._viewer.scene.primitives.add(e)})}flyTo(){this.boundingSphere=new Cesium.BoundingSphere(this._position,Math.sqrt(2*Math.pow(this.radius,2),Math.pow(this.height,2))),this._viewer.camera.flyToBoundingSphere(this.boundingSphere,{duration:2})}toBeCometTail(){this.colors=[...H4.comet.colors],this.rotate=H4.comet.rotate}toBeRocketThruster(){this.colors=[...H4.rocket.colors],this.rotate=H4.rocket.rotate}}F4.defaultOptions={show:!0,particleSize:15,emissionRate:30,particleNumber:100,position:[1.67,.6,50],rotation:[0,0,0],colors:[.6,.6,.6,1,.6,.6,.9,.9,.5,.5,.7,.5],radius:30,rotate:.01,height:50,particleLife:3.5};const H4={rocket:{colors:[1,.5,.05,1,.9,.6,.01,1,.8,.05,.09,1,1,.05,.09,1],rotate:1},comet:{colors:[.6,.6,.6,1,.6,.6,.9,.9,.5,.5,.7,.5],rotate:.01}};F4.registerType(F4,"ParticleSystemTails");const Y4=F4;let j4=function(e,t,i,n,r=20){let o,s,a,l,u,c,h,p=[];p.push(e);for(let d=1;d<r;d++)o=d/r,s=o*o,a=s*o,l=1-o,u=l*l,c=u*l,h=new Cesium.Cartesian3,h.x=e.x*c+3*t.x*u*o+3*i.x*l*s+n.x*a,h.y=e.y*c+3*t.y*u*o+3*i.y*l*s+n.y*a,h.z=e.z*c+3*t.z*u*o+3*i.z*l*s+n.z*a,p.push(h);return p.push(n),p},U4=function(e,t,i,n){let r=Cesium.Cartesian3.distance(t,e);vector=Cesium.Cartesian3.subtract(t,e,new Cesium.Cartesian3),Cesium.Cartesian3.normalize(vector,vector);let o=Cesium.Cartesian3.multiplyByScalar(vector,r/3,new Cesium.Cartesian3),s=Cesium.Cartesian3.multiplyByScalar(vector,2*r/3,new Cesium.Cartesian3);Cesium.Cartesian3.add(e,o,o),Cesium.Cartesian3.add(e,s,s),i.push(o,s),n.push(vector)};var G4=__webpack_require__(6763);class Q4 extends v4{constructor(e,t){super(e,t),this._pgPositions=[],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],()=>{G4.log(this.positions);let e=this.positions.filter(e=>{let t=!0;if(t)return e});const t=e.length;if(t<=2)return;if(function(e,t){if(!e||!t)return!1;z4=0;for(let i=0;i<e.length;i++)if(z4=e[i]==t[i]?0:1,z4>0)return!1;return!0}(e[t-1],e[t-2]))return;this._pgPositions.length=0;let i=[];e.forEach(e=>{i.push(e)});let n=function(e,t=!1,i=20,n){if(e.length<3)return;let r,o,s,a=e.map(e=>Cesium.Cartesian3.fromRadians(...e,void 0,new Cesium.Cartesian3));n||(n=[]),r=a[0];let l,u,c,h=[],p=new Cesium.Cartesian3,d=new Cesium.Cartesian3,f=[];if(1==t)r=a[a.length-1],h=a.map((e,t)=>{o=e,s=a[t+1]||a[0],u=Cesium.Cartesian3.distance(r,o),c=Cesium.Cartesian3.distance(o,s),p=Cesium.Cartesian3.subtract(o,r,p),d=Cesium.Cartesian3.subtract(s,o,d),Cesium.Cartesian3.normalize(p,p),Cesium.Cartesian3.normalize(d,d),Cesium.Cartesian3.multiplyByScalar(p,u,p),Cesium.Cartesian3.multiplyByScalar(d,c,d),l=Cesium.Cartesian3.add(p,d,new Cesium.Cartesian3),Cesium.Cartesian3.normalize(l,l),r=o;let i=Cesium.Cartesian3.multiplyByScalar(l,.3*-u,new Cesium.Cartesian3),n=Cesium.Cartesian3.multiplyByScalar(l,.3*c,new Cesium.Cartesian3);return Cesium.Cartesian3.add(o,i,i),Cesium.Cartesian3.add(o,n,n),f.push(i,n),l}),f.push(f.shift());else{U4(a[0],a[1],f,h);for(let e=1;e<a.length-1;e++){r=a[e-1],o=a[e],s=a[e+1],u=Cesium.Cartesian3.distance(r,o),c=Cesium.Cartesian3.distance(o,s),p=Cesium.Cartesian3.subtract(o,r,p),d=Cesium.Cartesian3.subtract(s,o,d),Cesium.Cartesian3.normalize(p,p),Cesium.Cartesian3.normalize(d,d),Cesium.Cartesian3.multiplyByScalar(p,u,p),Cesium.Cartesian3.multiplyByScalar(d,c,d),l=Cesium.Cartesian3.add(p,d,new Cesium.Cartesian3),Cesium.Cartesian3.normalize(l,l),r=o;let t=Cesium.Cartesian3.multiplyByScalar(l,.3*-u,new Cesium.Cartesian3),i=Cesium.Cartesian3.multiplyByScalar(l,.3*c,new Cesium.Cartesian3);Cesium.Cartesian3.add(o,t,t),Cesium.Cartesian3.add(o,i,i),f.push(t,i),h.push(l)}U4(a[a.length-2],a[a.length-1],f,h)}for(let e=0;e<a.length;e++){let t=a[e]||a[a.length-1],r=a[e+1]||a[0],o=f[2*e]||f[f.length-2],s=f[2*e+1]||f[f.length-1];n.push(...j4(t,o,s,r,i))}return n.map(e=>{let t=Cesium.Cartographic.fromCartesian(e);return[t.longitude,t.latitude,t.height]})}(e,!0,20);n.forEach(e=>{this._pgPositions.push(e[0],e[1])}),this._polygon.positions=this._pgPositions,this._polygon.height=e[0][2]}))}}Q4.registerType(Q4,"GeoSmoothPolygon");let z4;const W4={GeoArrow:x4,GeoSimpleArrow:E4,ParticleSystem:B4,ParticleSystemFireWork:k4,ParticleSystemTails:Y4,GeoSmoothPolygon:Q4};var X4=function(){function e(e){this._init=!1,this.emitterModelMatrix=new Cesium.Matrix4,this.translation=new Cesium.Cartesian3,this.rotation=new Cesium.Quaternion,this.hpr=new Cesium.HeadingPitchRoll,this.trs=new Cesium.TranslationRotationScale,this._show=!1,this._target=e}return e.prototype.applyGravity=function(e,t){var i=e.position;Cesium.Cartesian3.normalize(i,new Cesium.Cartesian3),Cesium.Cartesian3.multiplyByScalar(new Cesium.Cartesian3,0*t,new Cesium.Cartesian3),e.velocity=Cesium.Cartesian3.add(e.velocity,new Cesium.Cartesian3,e.velocity)},e.prototype.init=function(){this._earth=this._target._parentLayer.viewer,this._earth.clock.shouldAnimate=!0,this.particleSystem=this._earth.scene.primitives.add(new Cesium.ParticleSystem({image:yu.formatUrlByBaseJs("resources/images/smoke.png"),startColor:Cesium.Color.RED.withAlpha(.7),endColor:Cesium.Color.WHITE.withAlpha(0),startScale:1,endScale:5,minimumParticleLife:1.2,maximumParticleLife:1.2,minimumSpeed:1,maximumSpeed:4,imageSize:new Cesium.Cartesian2(25,25),emissionRate:5,bursts:[new Cesium.ParticleBurst({time:5,minimum:10,maximum:100}),new Cesium.ParticleBurst({time:10,minimum:50,maximum:100}),new Cesium.ParticleBurst({time:15,minimum:200,maximum:300})],lifetime:16,emitter:new Cesium.CircleEmitter(2),emitterModelMatrix:this.computeEmitterModelMatrix(),updateCallback:this.applyGravity})),this._init=!0},Object.defineProperty(e.prototype,"show",{get:function(){return!!this._init&&this.particleSystem.show},set:function(e){this._show=e,this._show&&!this._init?this.init():this.particleSystem.show=e},enumerable:!1,configurable:!0}),e.prototype.updateFlame=function(){if(this._init&&this._show){var e=this._target._model;if(e&&e.show){var t=this._earth.camera.position,i=e.model.distanceDisplayCondition.getValue(),n=Cesium.Cartographic.fromCartesian(t).height;n<i.far&&n>i.near?(this.particleSystem.show=!0,this.particleSystem.modelMatrix=e.computeModelMatrix(Cesium.JulianDate.now(),new Cesium.Matrix4),this.particleSystem.emitterModelMatrix=this.computeEmitterModelMatrix()):this.particleSystem.show=!1}}},e.prototype.computeEmitterModelMatrix=function(){return this.hpr=Cesium.HeadingPitchRoll.fromDegrees(0,0,0,this.hpr),this.trs.translation=Cesium.Cartesian3.fromElements(-4,0,1.4,this.translation),this.trs.rotation=Cesium.Quaternion.fromHeadingPitchRoll(this.hpr,this.rotation),Cesium.Matrix4.fromTranslationRotationScale(this.trs,this.emitterModelMatrix)},e.prototype.dispose=function(){Cesium.defined(this._earth)&&this._earth.scene.primitives.remove(this.particleSystem)},e}();class V4 extends Cu.A{_model;_label;_point;_billbord;_canvasLine;_lineBillboard;_data;_position;_geoPoint;_flag=lg.None;_pedding=!0;_style=bg.DefaultStyle();_timePosition=new xg;_angle=0;_parentLayer=null;_init=!1;_type=null;_smoothTrack=!1;_inview=!1;_timeArray=[];_bUseIconColor=!0;_time;_speed;_show=!0;_isSelected=!1;_showLabel=!1;_labelInit=!1;_linkLine=null;_showLink=!0;_showModel=!1;_modelInit=!1;_backwardPath=null;_forewardPath=null;_flame=null;_userHPR;_color;_modelColor;_textColor;_outlineColor;_outlineWidth;_itemtype="target";_depthTest=!1;_partners=new Map;constructor(e,t,i,n,r=!1,o=!1){super(null,e),this._label&&(this._label.text=this.name),this._smoothTrack=r,this._position=Cesium.Cartesian3.fromDegrees(t,i,n),this._geoPoint=new Vu(t,i,n),this._textColor="white",this._outlineColor=Cesium.Color.WHITE,this._modelColor=""}getType(){return"target"}get forewardPath(){return Cesium.defined(this._forewardPath)||(this._forewardPath=new Ag(this,vg.foreward),this._forewardPath.trackLineColor=Cesium.Color.WHITE,this._forewardPath.trackPointColor=Cesium.Color.WHITE),this._forewardPath}get backwardPath(){return Cesium.defined(this._backwardPath)||(this._backwardPath=new Ag(this,vg.backward),this._backwardPath.trackLineColor=Cesium.Color.RED,this._backwardPath.trackPointColor=Cesium.Color.RED),this._backwardPath}get flame(){return this._flame||(this._flame=new X4(this)),this._flame}get showLabel(){return this._showLabel}set showLabel(e){this._showLabel=e,this._labelInit&&(this._label.show=this._showLabel)}get showModel(){return this._showModel}set showModel(e){this._showModel=e,this._modelInit&&(this._model.show=this._showModel)}get styleCode(){return this._type}set styleCode(e){this._type=e}get flag(){return this._flag}set flag(e){this._flag=e}getPosition(){return this._timePosition.getPosition((new Date).getTime())}get useIconColor(){return this._bUseIconColor}set useIconColor(e){this._bUseIconColor=e}get show(){return this._show}set show(e){this._show=e,this._point&&(this._point.show=e),this._billbord&&(this._billbord.show=e),this._label&&(this._label.show=e),this._model&&(this._model.show=e),this._linkLine&&(this._linkLine.show=this._showLink&&this._show);for(let t of this._partners)t[1].visible=e}get smoothTrack(){return this._smoothTrack}set smoothTrack(e){this._smoothTrack=e}get style(){return this._style}set style(e){this._style=e,this._parentLayer&&this._parentLayer.setTargetStyle(this)}updatePosition(e,t,i,n=5){let r=Cesium.Cartesian3.fromDegrees(Number(e),Number(t),Number(i));if(this._geoPoint=new Vu(e,t,i),!this._smoothTrack){this._position=r,this.flag=lg.Update,this._label&&(this._label.position=this._position),this._linkLine&&(this._linkLine.position=this._position),this._point.position=this._position,this._billbord.position=this._position,this._billbord.orientation=this.angle,this._model&&(this._model.position=this._position);for(let n of this._partners)n[1].position=new Vu(e,t,i)}this.backwardPath.show&&this.backwardPath.updatePosition(r),this.forewardPath.show&&this.forewardPath.updatePosition(r);let o=Cesium.JulianDate.now(),s=Cesium.JulianDate.addSeconds(o,n,new Cesium.JulianDate);var a=new Sg;a.position=r,a.time=Cesium.JulianDate.toDate(s).getTime(),this._timePosition.addSample(a),this.flag=lg.Update,this._flame&&this._flame.updateFlame()}getColor(){return this._parentLayer.highlightSelection&&this.isSelected?this._parentLayer.selectionColor:this._style.color}get model(){return this._model.model}get id(){return this.guid}get color(){return this._color?this._color:this._style.color}set color(e){let t=Cesium.Color.fromCssColorString(e);this._point&&(this._point.color=t),this._billbord&&this._bUseIconColor&&(this._billbord.color=t),this._color=e}get textColor(){return this._textColor}set textColor(e){let t=Cesium.Color.fromCssColorString(e);this._label&&(this._label.fillColor=t),this._textColor=e}get outlineColor(){return this._outlineColor}set outlineColor(e){this._label&&(this._label.outlineColor=e,this._label.style=Cesium.LabelStyle.FILL_AND_OUTLINE),this._outlineColor=e}get outlineWidth(){return this._outlineWidth}set outlineWidth(e){this._label&&(this._label.outlineWidth=e),this._outlineWidth=e}get depthTest(){return this._depthTest}set depthTest(e){this._depthTest=e,this._point&&(this._point.disableDepthTestDistance=this._depthTest?Number.POSITIVE_INFINITY:0),this._label&&(this._label.disableDepthTestDistance=this._depthTest?Number.POSITIVE_INFINITY:0),this._billbord&&(this._billbord.disableDepthTestDistance=this._depthTest?Number.POSITIVE_INFINITY:0)}get modelColor(){return this._modelColor}set modelColor(e){let t=Cesium.Color.fromCssColorString(e);this._model&&this._model.model&&(this._model.model.color=t),this._modelColor=e}get iconSize(){return this._style.iconSize}set iconSize(e){this._style.iconSize=e,this._billbord&&(this._billbord.width=e,this._billbord.height=e)}get fontbgColor(){return this._style.fontbgColor}set fontbgColor(e){this._style.fontbgColor=e,this._label&&this._labelInit&&(this._label.backgroundColor=Cesium.Color.fromCssColorString(e))}get showFontbgColor(){return this._style.showFontbgColor}set showFontbgColor(e){this._style.showFontbgColor=e,this._label&&this._labelInit&&(this._label.showBackground=e)}get isSelected(){return this._isSelected}set isSelected(e){this._isSelected=e,this.color=this.getColor()}get showLink(){return this._showLink}set showLink(e){this._showLink=e,this._linkLine&&(this._linkLine.show=this._showLink&&this._show)}get angle(){return this._angle}set angle(e){if(lu.isNumber(e)&&(this._angle=e,this._billbord&&(this._billbord.rotation=-1*Cesium.Math.toRadians(this._angle)),this._modelInit&&!this._userHPR)){let t=Cesium.Math.toRadians(e-90),i=new Cesium.HeadingPitchRoll(t,0,0),n=Cesium.Transforms.headingPitchRollQuaternion(this._model.position._value,i);this._model.orientation=n}}get modelHPR(){return this._userHPR}set modelHPR(e){if(this._userHPR=e,this._modelInit){let t=Cesium.Transforms.headingPitchRollQuaternion(this._model.position._value,e);this._model.orientation=t}}get time(){return this._time}set time(e){this._time=e}get speed(){return this._speed}set speed(e){this._speed=e}addPartner(e){let t=this._parentLayer.graphicGroup.add(e);return this._partners.set(t.id,t),t}removePartner(e){return this._partners.delete(e.id),this._parentLayer.graphGroup.remove(e)}clearPartner(){for(let e of this._partners)this._partners.delete(e[0]),this._parentLayer.graphGroup.remove(e[1])}get partnerList(){return this._partners}}var J4=function(){function e(){}return e.getPositions=function(e){if(e){var t=[];return e.forEach(function(e){t.push(Vu.toCartesian3(e))}),t}},e.getRadii=function(e){if(e&&e instanceof Array&&!(e.length<3))return new Cesium.Cartesian3(e[0],e[1],e[2])},e.getRectangleDegress=function(e){if(e&&!(e.length<3))return Cesium.Rectangle.fromDegrees(e[0],e[1],e[2],e[3])},e.getImage=function(e,t){if(void 0===t&&(t=!1),e)return new Cesium.ImageMaterialProperty({image:e,transparent:t,color:Cesium.Color.WHITE,repeat:new Cesium.Cartesian2(1,1)})},e.getClassificationType=function(e){var t=void 0;switch(e){case"both":t=Cesium.ClassificationType.BOTH;break;case"cesium_3D_tile":t=Cesium.ClassificationType.CESIUM_3D_TILE;break;case"terrain":t=Cesium.ClassificationType.TERRAIN}return t},e.getShadows=function(e){var t=void 0;switch(e){case"cast_only":t=Cesium.ShadowMode.CAST_ONLY;break;case"disabled":t=Cesium.ShadowMode.DISABLED;break;case"enabled":t=Cesium.ShadowMode.ENABLED;break;case"receive_only":t=Cesium.ShadowMode.RECEIVE_ONLY}return t},e.getGranularity=function(e){var t=Cesium.Math.DEGREES_PER_RADIAN;switch(e){case"degrees_per_radian":t=Cesium.Math.RADIANS_PER_DEGREE;break;case"epsilon1":t=Cesium.Math.EPSILON1;break;case"epsilon2":t=Cesium.Math.EPSILON2;break;case"epsilon3":t=Cesium.Math.EPSILON3;break;case"epsilon34":t=Cesium.Math.EPSILON4}return t},e.getColor=function(e){if(e)return Cesium.Color.fromCssColorString(e)},e.getDynamicColor=function(e){var t=this;return new Cesium.CallbackProperty(function(i,n){return t.getColor(e)},!1)},e.getDynamicValue=function(e){return new Cesium.CallbackProperty(function(t,i){return e},!1)},e.getPosition=function(e){if(e)return Vu.toCartesian3(e)},e.getNearFarScalar=function(e){if(e)return new Cesium.NearFarScalar(e[0],e[1],e[2],e[3])},e.getDynamicNearFarScalar=function(e){var t=this;return new Cesium.CallbackProperty(function(i,n){return t.getNearFarScalar(e)},!1)},e.getDistanceDisplayCondition=function(e){if(e)return new Cesium.DistanceDisplayCondition(e[0],e[1])},e.getDynamicDistanceDisplayCondition=function(e){var t=this;return new Cesium.CallbackProperty(function(i,n){return t.getDistanceDisplayCondition(e)},!1)},e.getCartesian2=function(e){if(e&&e instanceof Array&&!(e.length<2))return new Cesium.Cartesian2(e[0],e[1])},e.getVerticalOrigin=function(e){var t=void 0;switch(e){case"baseline":t=Cesium.VerticalOrigin.BASELINE;break;case"bottom":t=Cesium.VerticalOrigin.BOTTOM;break;case"center":t=Cesium.VerticalOrigin.CENTER;break;case"top":t=Cesium.VerticalOrigin.TOP}return t},e.getHorizontalOrigin=function(e){var t=void 0;switch(e){case"left":t=Cesium.HorizontalOrigin.LEFT;break;case"center":t=Cesium.HorizontalOrigin.CENTER;break;case"right":t=Cesium.HorizontalOrigin.RIGHT}return t},e.getHeightReference=function(e){var t=void 0;switch(e){case"clamp_to_ground":t=Cesium.HeightReference.CLAMP_TO_GROUND;break;case"none":t=Cesium.HeightReference.NONE;break;case"relative_to_ground":t=Cesium.HeightReference.RELATIVE_TO_GROUND}return t},e.getStyle=function(e){switch(e){case"fill":return Cesium.LabelStyle.FILL;case"outline":case"fill_and_outline":return Cesium.LabelStyle.FILL_AND_OUTLINE}},e.getPositionDegrees=function(e){if(e&&e instanceof Array&&!(e.length<2))return Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2])},e.getCartesian3=function(e){if(e&&e instanceof Array&&!(e.length<3))return new Cesium.Cartesian3(e[0],e[1],e[2])},e.getOrientation=function(e,t){return Cesium.Transforms.headingPitchRollQuaternion(e,t)},e.getHpr=function(e,t,i){return new Cesium.HeadingPitchRoll(e,t,i)},e.getHeading=function(e){if(e)return Cesium.Math.toRadians(e)},e}();class K4 extends Cu.A{_renderVisible;_father;_getRenderObj;_type;_opt;_event;_isEditing=!1;constructor(e){super(null),this._event=new iu,(0,Wm.extendObservable)(this,{name:""})}update(){this._getRenderObj&&this.getRenderObject().update()}onUpdateAttribute(e){this._event.on("updateAttribute",e)}offUpdateAttribute(e){this._event.off("updateAttribute",e)}updateAttribute(e){this._getRenderObj&&(this.getRenderObject().updateAttribute(e),this._event.fire("updateAttribute",{obj:this,key:e}))}getRenderObject(){if(this._getRenderObj)return this._getRenderObj()}updateVisible(){this._father?this._renderVisible=this._father.renderVisible&&this._opt.visible:this._renderVisible=this._opt.visible,this.updateAttribute("visible")}get id(){return this.guid}set extendInfo(e){this._opt.extendInfo=e}get extendInfo(){return this._opt.extendInfo}set visible(e){this._opt.visible=e,this.updateVisible()}get visible(){return this._opt.visible}get renderVisible(){return this._renderVisible}get father(){return this._father}getType(){return K4.type}static get type(){return"GraphicItem"}get clampToGround(){return!1}set isEditing(e){this._isEditing!==e&&(this._isEditing=e,this.updateAttribute("isEditing"))}get isEditing(){return this._isEditing}toJson(){const e={type:this._type,name:this.name,extendInfo:this.extendInfo};for(const t in this._opt)void 0!==this._opt[t]&&"constructor"!==t&&("positions"!==t?this._opt[t]instanceof Object&&this._opt[t].toJson?e[t]=this._opt[t].toJson():e[t]=this._opt[t]:e[t]=Vu.packArray(this._opt.positions));return e}parseJson(e){for(let t in e)"positions"===t&&e[t]&&!e[t].lenght&&e[t][0]instanceof Array&&(e[t]=Vu.unpackArray(e[t])),"position"===t&&e[t]&&e[t]instanceof Array&&(e[t]=Vu.unpack(e[t])),"lineStyle"!==t||!e[t]||e[t]instanceof q4||(e[t]=$4.createStyle(e[t])),this._opt[t]=yu.defaultValue(e[t],this._opt[t])}init(e){this._father=e,this.updateVisible()}destroy(){this.getRenderObject()&&this.getRenderObject().clear(),this._getRenderObj=void 0}getCenterPosition(){if(void 0!==this.position)return this.position;if(this.coordinates){let e=this.coordinates,t=this.height;return t||(t=0),new Vu((e[0]+e[2])/2,(e[1]+e[3])/2,t)}if(this.positions){const e=this.positions,t=[];e.forEach(e=>{t.push(Vu.toCartesian3(e))});let i=Cesium.BoundingSphere.fromPoints(t).center;return Vu.fromCartesian3(i)}}movePosition(e=0,t=0,i=0){if(void 0!==this.position&&(this.position.lon+=e,this.position.lat+=t,this.position.alt+=i,this.position=this.position),void 0!==this.coordinates&&(this.coordinates[0]+=e,this.coordinates[1]+=t,this.coordinates[2]+=e,this.coordinates[3]+=t,this.coordinates=this.coordinates),this.positions){const n=this.positions;n.forEach(n=>{n.lon+=e,n.lat+=t,n.alt+=i}),this.positions=n}}}class Z4{name;visible=!0;extendInfo;isEditing=!1}class q4{_material;toJson(){}getMaterial(){return this._material}}class $4{static createStyle(e){if(void 0!==e)switch(e.type){case a5.Arrow:return new t5(e);case a5.Color:return new e5(e);case a5.Dash:return new n5(e);case a5.Dynamic:return new o5(e);case a5.Glow:return new r5(e);case a5.Outline:return new i5(e)}}}class e5 extends q4{_color="#ff0000";constructor(e){super(),e||(e={}),this._color=yu.defaultValue(e.color,this._color),this._material=new Cesium.ColorMaterialProperty(new Cesium.CallbackProperty(()=>J4.getColor(this.color),!0))}set color(e){this._color=e}get color(){return this._color}getMaterial(){return this._material}toJson(){return{type:a5.Color,color:this.color}}}class t5 extends q4{_color="#ff0000";constructor(e){super(),e||(e={}),this._color=yu.defaultValue(e.color,this._color),this._material=new Cesium.PolylineArrowMaterialProperty(new Cesium.CallbackProperty(()=>J4.getColor(this.color),!1))}set color(e){this._color=e}get color(){return this._color}toJson(){return{type:a5.Arrow,color:this.color}}}class i5 extends q4{_color="#ff0000";_outlineWidth=3;_outlineColor="#00ff00";constructor(e){super(),e||(e={}),this._color=yu.defaultValue(e.color,this._color),this._outlineColor=yu.defaultValue(e.outlineColor,this._outlineColor),this._outlineWidth=yu.defaultValue(e.outlineWidth,this._outlineWidth),this._material=new Cesium.PolylineOutlineMaterialProperty({color:new Cesium.CallbackProperty(()=>J4.getColor(this.color),!1),outlineColor:new Cesium.CallbackProperty(()=>J4.getColor(this.outlineColor),!1),outlineWidth:new Cesium.CallbackProperty(()=>this.outlineWidth,!1)})}set color(e){this._color=e}get color(){return this._color}set outlineWidth(e){this._outlineWidth=e}get outlineWidth(){return this._outlineWidth}set outlineColor(e){this._outlineColor=e}get outlineColor(){return this._outlineColor}toJson(){return{type:a5.Outline,color:this.color,outlineColor:this.outlineColor,outlineWidth:this.outlineWidth}}}class n5 extends q4{_color="#ffff00";_gapColor="rgba(0,0,0,0)";_dashLength=16;_dashPattern=255;constructor(e){super(),e||(e={}),this._color=yu.defaultValue(e.color,this._color),this._gapColor=yu.defaultValue(e.gapColor,this._gapColor),this._dashLength=yu.defaultValue(e.dashLength,this._dashLength),this._dashPattern=yu.defaultValue(e.dashPattern,this._dashPattern),this._material=new Cesium.PolylineDashMaterialProperty({dashLength:new Cesium.CallbackProperty(()=>this.dashLength,!1),color:new Cesium.CallbackProperty(()=>J4.getColor(this._color),!1),gapColor:new Cesium.CallbackProperty(()=>J4.getColor(this._gapColor),!1),dashPattern:new Cesium.CallbackProperty(()=>this.dashPattern,!1)})}set color(e){this._color=e}get color(){return this._color}set gapColor(e){this._gapColor=e}get gapColor(){return this._gapColor}set dashLength(e){this._dashLength=e}get dashLength(){return this._dashLength}set dashPattern(e){this._dashPattern=e}get dashPattern(){return this._dashPattern}toJson(){return{type:a5.Dash,color:this.color,gapColor:this.gapColor,dashPattern:this.dashPattern,dashLength:this.dashLength}}}class r5 extends q4{_color="#ffffff";_glowPower=.25;_taperPower=1;constructor(e){super(),e||(e={}),this._color=yu.defaultValue(e.color,this._color),this._glowPower=yu.defaultValue(e.glowPower,this._glowPower),this._taperPower=yu.defaultValue(e.taperPower,this._taperPower),this._material=new Cesium.PolylineGlowMaterialProperty({glowPower:new Cesium.CallbackProperty(()=>this.glowPower,!1),color:new Cesium.CallbackProperty(()=>J4.getColor(this._color),!1),taperPower:new Cesium.CallbackProperty(()=>this.taperPower,!1)})}set color(e){this._color=e}get color(){return this._color}set glowPower(e){this._glowPower=e}get glowPower(){return this._glowPower}set taperPower(e){this._taperPower=e}get taperPower(){return this._taperPower}toJson(){return{type:a5.Glow,color:this.color,taperPower:this.taperPower,glowPower:this.glowPower}}}class o5 extends q4{_icon=s5.Attack;_color="#ff0000";_duration=1e4;_update;constructor(e){super(),e||(e={}),this._color=yu.defaultValue(e.color,this._color),this._icon=yu.defaultValue(e.icon,this._icon),this._duration=yu.defaultValue(e.duration,this._duration),this._updateMaterial()}_updateMaterial(){switch(this.icon){case s5.Arrow:this._material=new Cesium.PolylineArrowLinkMaterialProperty({color:J4.getColor(this.color),duration:this.duration});break;case s5.Attack:case s5.Pulse:this._material=new Cesium.PolylinePulseLinkMaterialProperty({color:J4.getColor(this.color),duration:this.duration});break;case s5.Trail:this._material=new Cesium.PolylineTrailLinkMaterialProperty({color:J4.getColor(this.color),duration:this.duration});break;case s5.Attack:this._material=new Cesium.PolylineAttackLinkMaterialProperty({color:J4.getColor(this.color),duration:this.duration})}}setUpdate(e){this._update=e}set icon(e){this._icon=e,this._updateMaterial(),this._update&&this._update("lineStyle")}get icon(){return this._icon}set color(e){this._color=e,this._material.color=J4.getColor(this.color)}get color(){return this._color}set duration(e){this._duration=e,this._material.duration=this.duration}get duration(){return this._duration}toJson(){return{type:this.icon,color:this.color,duration:this.duration}}}class s5{Arrow="arrow";Pulse="pulse";Trail="trail";Attack="attack"}class a5{Color="Color";Arrow="PolylineArrow";Dash="PolylineDash";Glow="PolylineGlow";Outline="PolylineOutline";Dynamic="Dynamic"}var l5,u5=function(){function e(e,t){switch(this._dataItem=e,this.renderType){case l5.Entity:this._renderRoot=t.getRenderRoot().entityRoot;break;case l5.Primitive:this._renderRoot=t.getRenderRoot().primitiveRoot;break;case l5.PostProcess:this._renderRoot=t.getRenderRoot().postProcessStages;break;case l5.Billboard:this._renderRoot=t.getRenderRoot().billboardCollection;break;case l5.Lable:this._renderRoot=t.getRenderRoot().labelCollection;break;case l5.DrawCombination:this._renderRoot=t.getRenderRoot()}this._viewer=t._viewer,this.init(),this.renderObj&&(this.renderType===l5.DrawCombination||(this.renderObj.dataId=e.id))}return Object.defineProperty(e.prototype,"renderType",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderObj",{get:function(){return this._renderObj},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.clear=function(){if(this._renderObj)switch(this.renderType){case l5.Entity:case l5.Primitive:case l5.PostProcess:case l5.Billboard:case l5.Lable:this._renderRoot.remove(this._renderObj);case l5.DrawCombination:}this._renderObj=void 0,this._dataItem=void 0,this._viewer=void 0,this._renderRoot=void 0},e.prototype.update=function(){},e.prototype.updateAttribute=function(e){},e}();!function(e){e.Entity="entity",e.Primitive="Primitive",e.PostProcess="PostProcess",e.Lable="Lable",e.Billboard="Billboard",e.DrawCombination="DrawCombination"}(l5||(l5={}));var c5=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),h5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c5(t,e),Object.defineProperty(t.prototype,"renderType",{get:function(){return l5.Entity},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.getRenderPositions(),this.updateAttributeForEditing(),this._renderObj=this._renderRoot.add(this._originProps),this._updateAllProp()},t.prototype.update=function(){this._renderObj&&this._renderRoot.remove(this._renderObj),this.init()},t.prototype._dealResProps=function(e){var t=this;this._resProps||(this._resProps={show:!1,polygon:{}});var i=this._dataItem;switch(e){case"show":this._resProps[e]=i.renderVisible;break;case"hierarchy":this._resProps.polygon[e]=i.dirty?this.getRenderPositions():this._positions;break;case"fill":this._resProps.polygon[e]=i.fill;break;case"material":i.material?this._resProps.polygon[e]=i.material:this._resProps.polygon[e]=J4.getColor(i.color);break;case"outline":this._resProps.polygon[e]=i.outline;break;case"outlineColor":this._resProps.polygon[e]=J4.getColor(i.outlineColor);break;case"outlineWidth":this._resProps.polygon[e]=i.outlineWidth;break;case"height":i.clampToGround||(this._resProps.polygon[e]=i.height);break;case"extrudedHeight":i.clampToGround||(this._resProps.polygon[e]=i.extrudedHeight);break;case"perPositionHeight":i.clampToGround||(this._resProps.polygon[e]=i.perPositionHeight);break;case"closeTop":i.clampToGround||(this._resProps.polygon[e]=i.closeTop);break;case"closeBottom":i.clampToGround||(this._resProps.polygon[e]=i.closeBottom);break;default:return}this._renderObj?i.isEditing&&-1!=["fill","outline","outlineColor","outlineWidth"].indexOf(e)?this._renderObj.polygon[e]=new Cesium.CallbackProperty(function(){return t._resProps.polygon[e]},!1):this._renderObj.polygon[e]=this._resProps.polygon[e]:i.isEditing&&-1!=["fill","outline","outlineColor","outlineWidth"].indexOf(e)&&(this._resProps.polygon[e]=new Cesium.CallbackProperty(function(){return t._resProps.polygon[e]},!1))},t.prototype.updateAttributeForEditing=function(){this._updateAllProp(),this._renderObj||(this._originProps=this._resProps)},t.prototype._updateAllProp=function(){for(var e=["show","hierarchy","fill","material","outline","outlineColor","outlineWidth","height","extrudedHeight","perPositionHeight","closeTop","closeTop"],t=0;t<e.length;t++)this._dealResProps(e[t])},t.prototype.updateAttribute=function(e){var t=this._dataItem;switch(e){case"visible":this._renderObj.show=this._dataItem.renderVisible;break;case"positions":this._positions=this.getRenderPositions(),this._renderObj.polygon.hierarchy=t.dirty?this.getRenderPositions():this._positions;break;case"height":this._renderObj.polygon.height=t.height;break;case"extrudedHeight":this._renderObj.polygon.extrudedHeight=t.extrudedHeight;break;case"fill":this._renderObj.polygon.fill=t.fill;break;case"color":this._renderObj.polygon.material=J4.getColor(t.color);break;case"material":this._renderObj.polygon.material=t.material;break;case"outline":this._renderObj.polygon.outline=t.outline;break;case"outlineColor":this._renderObj.polygon.outlineColor=J4.getColor(t.outlineColor);break;case"outlineWidth":this._renderObj.polygon.outlineWidth=t.outlineWidth;break;case"perPositionHeight":this._renderObj.polygon.perPositionHeight=t.perPositionHeight;break;case"closeTop":this._renderObj.polygon.closeTop=t.closeTop;break;case"closeBottom":this._renderObj.polygon.closeBottom=t.closeBottom;break;case"clampToGround":this.update();case"isEditing":this.updateAttributeForEditing();break;default:this._updateAllProp()}},t.prototype.getRenderPositions=function(){var e=this._dataItem;return this._positions=J4.getPositions(e.positions),this._positions},t}(u5);class p5 extends K4{_opt;_type="PolygonGraphic";constructor(e){super(e),this._opt=new d5,this.parseJson(e),this.fromJsonFilterKeys.push("perPositionHeight")}getType(){return p5.type}static get type(){return"PolygonGraphic"}init(e){if(super.init(e),this.father){let e=new h5(this,this.father.getRoot());this._getRenderObj=()=>e}}set positions(e){this._opt.positions=e,this.updateAttribute("positions")}get positions(){return this._opt.positions}set height(e){this._opt.height!==e&&(this._opt.height=e,this.updateAttribute("height"))}get height(){return this._opt.height}set extrudedHeight(e){this._opt.extrudedHeight!==e&&(this._opt.extrudedHeight=e,this.updateAttribute("extrudedHeight"))}get extrudedHeight(){return this._opt.extrudedHeight}set fill(e){this._opt.fill!==e&&(this._opt.fill=e,this.updateAttribute("fill"))}get fill(){return this._opt.fill}set color(e){this._opt.color!==e&&(this._opt.color=e,this.updateAttribute("color"))}get color(){return this._opt.color}set outline(e){this._opt.outline!==e&&(this._opt.outline=e,this.updateAttribute("outline"))}get outline(){return this._opt.outline}set outlineColor(e){this._opt.outlineColor!==e&&(this._opt.outlineColor=e,this.updateAttribute("outlineColor"))}get outlineColor(){return this._opt.outlineColor}set outlineWidth(e){this._opt.outlineWidth!==e&&(this._opt.outlineWidth=e,this.updateAttribute("outlineWidth"))}get outlineWidth(){return this._opt.outlineWidth}get perPositionHeight(){return this._opt.perPositionHeight}set closeTop(e){this._opt.closeTop!==e&&(this._opt.closeTop=e,this.updateAttribute("closeTop"))}get closeTop(){return this._opt.closeTop}set closeBottom(e){this._opt.closeBottom!==e&&(this._opt.closeBottom=e,this.updateAttribute("closeBottom"))}get closeBottom(){return this._opt.closeBottom}set clampToGround(e){this._opt.clampToGround=e,this.updateAttribute("clampToGround")}get clampToGround(){return this._opt.clampToGround}set dirty(e){this._opt.dirty=e}get dirty(){return this._opt.dirty}set material(e){this._opt.material=e,this.updateAttribute("material")}get material(){return this._opt.material}set stRotation(e){this._opt.stRotation=e,this.updateAttribute("stRotation")}get stRotation(){return this._opt.stRotation}}class d5 extends Z4{clampToGround=!1;positions;height;extrudedHeight;fill=!0;color="#ffff00";outline=!1;outlineColor="#ff0000";outlineWidth=1;perPositionHeight=!1;closeTop=!0;closeBottom=!0;dirty=!1;material;stRotation}Cu.A.registerType(p5,"PolygonGraphic","GraphicItem");var f5=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),m5=function(e){function t(t,i){return e.call(this,t,i)||this}return f5(t,e),Object.defineProperty(t.prototype,"renderType",{get:function(){return l5.Primitive},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.createMaterial(),this.createPrimitive(),this.renderObj&&(this.renderObj.dataId=this._dataItem.id)},t.prototype.update=function(){this._renderObj&&(this._renderRoot.remove(this._renderObj),this._renderObj=void 0),this.init(),this.updateAttribute("color"),this.updateAttribute("visible")},t.prototype.updateAttribute=function(e){var t=this._dataItem;switch(e){case"color":this._appearance.material.uniforms.color=J4.getColor(t[e]);break;case"visible":this._renderObj.show=t[e];break;case"radius":case"startAngle":case"endAngle":case"position":case"clampToGround":case"step":this.update()}},t.prototype.createMaterial=function(){var e=this._dataItem;this._appearance?this._appearance.material.uniforms.color=J4.getColor(e.color):this._appearance=new Cesium.MaterialAppearance({material:new Cesium.Material({fabric:{type:"Color",uniforms:{color:J4.getColor(e.color)}}}),faceForward:!0})},t.prototype.createPrimitive=function(){var e=this._dataItem,t=[],i=0==e.radius?1:e.radius;t=Math.abs(e.endAngle-e.startAngle)<360?Ff.getSectorPositions(e.position,i,e.startAngle,e.endAngle,e.step):Ff.getCirclePositions(e.position,i);var n=[];t.forEach(function(e){n.push(Vu.toCartesian3(e))});var r=new Cesium.GeometryInstance({geometry:new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(n),height:e.position.alt})});e.clampToGround?this._renderObj=this._renderRoot.add(new Cesium.GroundPrimitive({geometryInstances:r,appearance:this._appearance,asynchronous:!1})):this._renderObj=this._renderRoot.add(new Cesium.Primitive({geometryInstances:r,appearance:this._appearance,asynchronous:!1}))},t}(u5);class g5 extends K4{_opt;_type="CircularGraphic";constructor(e){super(e),this._opt=new y5,this.parseJson(e)}getType(){return g5.type}static get type(){return"CircularGraphic"}init(e){if(super.init(e),this.father){let e=new m5(this,this.father.getRoot());this._getRenderObj=()=>e}}set position(e){this._opt.position=e,this.updateAttribute("position")}get position(){return this._opt.position}set radius(e){this._opt.radius=e,this.updateAttribute("radius")}get radius(){return this._opt.radius}set startAngle(e){this._opt.startAngle=e,this.updateAttribute("startAngle")}get startAngle(){return this._opt.startAngle}set endAngle(e){this._opt.endAngle=e,this.updateAttribute("endAngle")}get endAngle(){return this._opt.endAngle}set color(e){this._opt.color=e,this.updateAttribute("color")}get color(){return this._opt.color}set clampToGround(e){this._opt.clampToGround=e,this.updateAttribute("clampToGround")}get clampToGround(){return this._opt.clampToGround}set step(e){this._opt.step=e,this.updateAttribute("step")}get step(){return this._opt.step}}class y5 extends Z4{position;clampToGround=!0;radius=1;startAngle=0;endAngle=360;color="rgba(255, 255, 0, 0.5)";step=64}Cu.A.registerType(g5,"CircularGraphic");var _5=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),A5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _5(t,e),Object.defineProperty(t.prototype,"renderType",{get:function(){return l5.Entity},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=this._dataItem;this.updateAttributeForEditing(),this._renderObj=this._renderRoot.add(this._originProps),this._renderObj.dataId=e.id,this._renderObj.dataName=e.name},t.prototype.update=function(){this._renderObj.show=this._dataItem.renderVisible},t.prototype._dealResProps=function(e){var t=this;this._resProps||(this._resProps={show:!1,position:{},label:{}});var i=this._dataItem;switch(e){case"show":this._resProps[e]=i.visible;break;case"position":this._resProps[e]=J4.getPositionDegrees([i.position.lon,i.position.lat,i.position.alt]);break;case"scale":this._resProps.label[e]=i.scale;break;case"text":this._resProps.label[e]=i.text;break;case"heightReference":this._resProps.label[e]=J4.getHeightReference(i.heightReference);break;case"fillColor":this._resProps.label[e]=J4.getColor(i.fillColor);break;case"outlineColor":this._resProps.label[e]=J4.getColor(i.outlineColor);break;case"backgroundColor":this._resProps.label[e]=J4.getColor(i.backgroundColor);break;case"horizontalOrigin":this._resProps.label[e]=J4.getHorizontalOrigin(i.horizontalOrigin);break;case"verticalOrigin":this._resProps.label[e]=J4.getVerticalOrigin(i.verticalOrigin);break;case"pixelOffset":this._resProps.label[e]=J4.getCartesian2(i.pixelOffset);break;case"eyeOffset":this._resProps.label[e]=J4.getCartesian3(i.eyeOffset);break;case"outlineWidth":this._resProps.label[e]=i.outlineWidth;break;case"font":this._resProps.label[e]=i.font;break;case"style":this._resProps.label[e]=J4.getStyle(i.style);break;case"showBackground":this._resProps.label[e]=i.showBackground;break;case"scaleByDistance":this._resProps.label[e]=J4.getNearFarScalar(i.scaleByDistance);break;case"pixelOffsetScaleByDistance":this._resProps.label[e]=J4.getNearFarScalar(i.pixelOffsetScaleByDistance);break;case"translucencyByDistance":this._resProps.label[e]=J4.getNearFarScalar(i.translucencyByDistance);break;case"disableDepthTestDistance":this._resProps.label[e]=i.isDepthTest?void 0:Number.POSITIVE_INFINITY;break;case"distanceDisplayCondition":this._resProps.label[e]=J4.getDistanceDisplayCondition(i.distanceDisplayCondition);break;default:return}this._renderObj&&(i.isEditing?"show"===e||"position"===e?this._renderObj[e]=new Cesium.CallbackProperty(function(){return t._resProps[e]},!1):this._renderObj.label[e]=new Cesium.CallbackProperty(function(){return t._resProps.label[e]},!1):"show"===e||"position"===e?this._renderObj[e]=this._resProps[e]:this._renderObj.label[e]=this._resProps.label[e])},t.prototype.updateAttributeForEditing=function(){this._updateAllProp(),this._renderObj||(this._originProps=this._resProps)},t.prototype._updateAllProp=function(){for(var e=["show","position","scale","text","heightReference","fillColor","outlineColor","backgroundColor","horizontalOrigin","verticalOrigin","pixelOffset","eyeOffset","outlineWidth","font","style","showBackground","scaleByDistance","pixelOffsetScaleByDistance","translucencyByDistance","disableDepthTestDistance","distanceDisplayCondition"],t=0;t<e.length;t++)this._dealResProps(e[t])},t.prototype.updateAttribute=function(e){if(this._renderObj&&this._dataItem)switch(e){case"visible":this.update();break;case"isEditing":this.updateAttributeForEditing();break;default:this._updateAllProp()}},t}(u5);class v5 extends K4{_opt;_type="LabelGraphic";constructor(e){super(e),this._opt=new C5,this.parseJson(e)}init(e){if(super.init(e),this.father){let e=new A5(this,this.father.getRoot());this._getRenderObj=()=>e}}getRenderObject(){return this._getRenderObj()}getType(){return v5.type}static get type(){return"LabelGraphic"}set position(e){this._opt.position=e,this.updateAttribute("position")}get position(){return this._opt.position}set text(e){this._opt.text=e,this.updateAttribute("text")}get text(){return this._opt.text}set scale(e){this._opt.scale!==e&&(this._opt.scale=e,this.updateAttribute("scale"))}get scale(){return this._opt.scale}set horizontalOrigin(e){this._opt.horizontalOrigin!==e&&(this._opt.horizontalOrigin=e,this.updateAttribute("horizontalOrigin"))}get horizontalOrigin(){return this._opt.horizontalOrigin}set verticalOrigin(e){this._opt.verticalOrigin!==e&&(this._opt.verticalOrigin=e,this.updateAttribute("verticalOrigin"))}get verticalOrigin(){return this._opt.verticalOrigin}set eyeOffset(e){this._opt.eyeOffset=e,this.updateAttribute("eyeOffset")}get eyeOffset(){return this._opt.eyeOffset}set pixelOffset(e){this._opt.pixelOffset=e,this.updateAttribute("pixelOffset")}get pixelOffset(){return this._opt.pixelOffset}set outlineWidth(e){this._opt.outlineWidth!==e&&(this._opt.outlineWidth=e,this.updateAttribute("outlineWidth"))}get outlineWidth(){return this._opt.outlineWidth}set font(e){this._opt.font!==e&&(this._opt.font=e,this.updateAttribute("font"))}get font(){return this._opt.font}set style(e){this._opt.style!==e&&(this._opt.style=e,this.updateAttribute("style"))}get style(){return this._opt.style}set fillColor(e){this._opt.fillColor!==e&&(this._opt.fillColor=e,this.updateAttribute("fillColor"))}get fillColor(){return this._opt.fillColor}set outlineColor(e){this._opt.outlineColor!==e&&(this._opt.outlineColor=e,this.updateAttribute("outlineColor"))}get outlineColor(){return this._opt.outlineColor}set backgroundColor(e){this._opt.backgroundColor!==e&&(this._opt.backgroundColor=e,this.updateAttribute("backgroundColor"))}get backgroundColor(){return this._opt.backgroundColor}set scaleByDistance(e){this._opt.scaleByDistance=e,this.updateAttribute("scaleByDistance")}get scaleByDistance(){return this._opt.scaleByDistance}set pixelOffsetScaleByDistance(e){this._opt.pixelOffsetScaleByDistance=e,this.updateAttribute("pixelOffsetScaleByDistance")}get pixelOffsetScaleByDistance(){return this._opt.pixelOffsetScaleByDistance}set showBackground(e){this._opt.showBackground=e,this.updateAttribute("showBackground")}get showBackground(){return this._opt.showBackground}set heightReference(e){this._opt.heightReference!==e&&(this._opt.heightReference=e,this.updateAttribute("heightReference"))}get heightReference(){return this._opt.heightReference}set translucencyByDistance(e){this._opt.translucencyByDistance=e,this.updateAttribute("translucencyByDistance")}get translucencyByDistance(){return this._opt.translucencyByDistance}set isDepthTest(e){this._opt.isDepthTest=e,this.updateAttribute("isDepthTest")}get isDepthTest(){return this._opt.isDepthTest}set distanceDisplayCondition(e){this._opt.distanceDisplayCondition=e,this.updateAttribute("distanceDisplayCondition")}get distanceDisplayCondition(){return this._opt.distanceDisplayCondition}}class C5 extends Z4{position;text;scale=1;horizontalOrigin;verticalOrigin;eyeOffset;pixelOffset;outlineWidth=1;font="30px sans-serif";style;fillColor;outlineColor;backgroundColor;scaleByDistance;pixelOffsetScaleByDistance;showBackground;heightReference;translucencyByDistance;isDepthTest=!0;distanceDisplayCondition}Cu.A.registerType(v5,"LabelGraphic");var b5=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),w5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return b5(t,e),t.prototype.init=function(){var e=this._dataItem;this._container=this._viewer.container,this._initDom(this._container),e.panelDrag&&this._bindEvent(),this._preRender(this._viewer),this._renderObj=this},t.prototype.clear=function(){this._container&&this._parentNode&&(this._removeElement(this._parentNode),this._removeEvent(),this._bubbleEvent&&this._viewer.scene.preRender.removeEventListener(this._bubbleEvent))},t.prototype.updateAttribute=function(e){var t=this._dataItem;if(t)switch(e){case"panelDrag":t.panelDrag?this._bindEvent():this._removeEvent();break;case"panelOffset":this._anchorOffset&&this._updatePanelPosition(this._anchorOffset.x+t.panelOffset.x,this._anchorOffset.y+t.panelOffset.y)}},t.prototype.update=function(){},t.prototype.pointIsVisible=function(e,t){if(t.scene.mode==Cesium.SceneMode.SCENE3D){var i=t.scene.camera.positionWC,n=t.scene.mapProjection.ellipsoid;if(new Cesium.EllipsoidalOccluder(n,i).isPointVisible(Vu.toCartesian3(e))){var r=t.scene,o=r.canvas,s=Cesium.SceneTransforms.wgs84ToWindowCoordinates(r,Vu.toCartesian3(e));return void 0!==s&&(s.x>0&&s.x<(void 0!==o.width?o.width:o.clientWidth)&&s.y>0&&s.y<(void 0!==o.height?o.height:o.clientHeight))}return!1}var a=t.scene.camera.frustum.computeCullingVolume(t.scene.camera.positionWC,t.scene.camera.directionWC,t.scene.camera.upWC),l=new Cesium.BoundingSphere(Vu.toCartesian3(e),1),u=Cesium.BoundingSphere.projectTo2D(l),c=a.computeVisibility(u);return c===Cesium.Intersect.INSIDE||c===Cesium.Intersect.INTERSECTING},t.prototype._preRender=function(e){var t,i,n=this,r=this._dataItem;e.scene.preRender.addEventListener(this._bubbleEvent=function(){if(r.renderVisible){if(r.bindObject instanceof x5){var o=r.bindObject.getRenderObject();if(!o._renderVisible)return void(n._renderVisible&&n._showDiv(!1));t=o._diagonalPanelOffset.x,i=o._diagonalPanelOffset.y}else{var s=void 0;if(r.bindObject instanceof Vu?s=r.bindObject:r.bindObject instanceof K4&&(s=r.bindObject.getCenterPosition()),!s)return;if(!n.pointIsVisible(s,e))return void(n._renderVisible&&n._showDiv(!1));var a=Vu.toScreen(s,e);if(!a)return;t=Math.round(a.x),i=Math.round(a.y)}n._anchorOffset={x:t,y:i},n._updateDiv(t,i)}else n._renderVisible&&n._showDiv(!1)})},t.prototype._updateDiv=function(e,t){var i=this._dataItem;if(this._renderVisible||(this._parentNode.style.cssText="visibility:hidden"),i.bubbleType===M5.FollowBubble){if(!this._renderVisible){var n=e+i.panelOffset.x,r=t+i.panelOffset.y;this._panelOffset&&(n=this._panelOffset.x,r=this._panelOffset.y),this._updatePanelPosition(n,r)}}else i.bubbleType===M5.FixedBubble&&(this._isMouseDown||this._updatePanelPosition(e+i.panelOffset.x,t+i.panelOffset.y));var o=this._updateLinePosition({x:e,y:t},this._panelNode);this._getDiagonalPanelOffset(o),this._renderVisible||(this._parentNode.style.cssText="display:none",this._showDiv(!0))},t.prototype._getDiagonalPanelOffset=function(e){if(this._panelOffset){var t,i;switch(e){case 1:t=this._panelOffset.x+this._panelNode.offsetWidth,i=this._panelOffset.y;break;case 2:t=this._panelOffset.x,i=this._panelOffset.y;break;case 3:t=this._panelOffset.x,i=this._panelOffset.y+this._panelNode.offsetHeight;break;case 4:t=this._panelOffset.x+this._panelNode.offsetWidth,i=this._panelOffset.y+this._panelNode.offsetHeight}this._diagonalPanelOffset={x:t,y:i}}},t.prototype._updateLinePosition=function(e,t){if(0!==t._offsetLeft||0!==t._offsetTop){var i,n={x:e.x,y:e.y};this._panelNode.offsetParent!==this._container&&(n.y=n.y+this._container.offsetTop,n.x=n.x+this._container.offsetLeft);var r=t.offsetWidth,o=t.offsetHeight,s=t.offsetLeft+r/2,a=t.offsetTop+o/2,l={x:0,y:0},u=s-n.x,c=a-n.y;u>=0&&c>0?(l.x=t.offsetLeft,l.y=t.offsetTop,i=4):u>=0&&c<=0?(l.x=t.offsetLeft,l.y=t.offsetTop+o,i=1):u<0&&c<=0?(l.x=t.offsetLeft+r,l.y=t.offsetTop+o,i=2):u<0&&c>0&&(l.x=t.offsetLeft+r,l.y=t.offsetTop,i=3),u=l.x-n.x,c=l.y-n.y;var h=Math.sqrt(u*u+c*c),p=h/2,d=Math.acos(u/h)*(c<0?-1:1),f=d/Math.PI*180,m=p*Math.sin(d),g=p*Math.cos(d)-p;return this._lineNode.style.width="".concat(h,"px"),this._lineNode.style.left="".concat(n.x-2,"px"),this._lineNode.style.top="".concat(n.y-2,"px"),this._lineNode.style.transform="translate(".concat(g,"px,").concat(m,"px) rotate(").concat(f,"deg)"),i}},t.prototype._updatePanelPosition=function(e,t){var i,n,r=this._container.clientWidth,o=this._container.clientHeight,s=this._panelNode.offsetWidth,a=this._panelNode.offsetHeight;i=e<0||s>=r?0:e+s>=r?r-s:e,n=t<0||a>=o?0:t+a>=o?o-a:t,this._panelOffset={x:i,y:n};var l=n,u=i;this._panelNode.offsetParent!==this._container&&(l=n+this._container.offsetTop,u=i+this._container.offsetLeft),this._panelNode.style.left="".concat(u,"px"),this._panelNode.style.top="".concat(l,"px")},t.prototype._showDiv=function(e){this._parentNode.style.display=e?"block":"none",this._renderVisible=e},t.prototype._initDom=function(e){var t="geoBubbleRoot";this._parentNode=this._createDom("geoBubble"),this._panelNode=this._createDom("geoBubblePanel","".concat("position:absolute;cursor:pointer;user-select:none;","top:0px;left:0px;")),this._lineNode=this._createDom("geoBubbleLine","".concat("position:absolute;border:1px dotted #fff;","top:0px;left:0px;")),this._parentNode.appendChild(this._panelNode),this._parentNode.appendChild(this._lineNode),this._showDiv(!1),this._getDom(".".concat(t))?this._rootNode=this._getDom(".".concat(t)):(this._rootNode=this._createDom(t),e.appendChild(this._rootNode)),this._rootNode.appendChild(this._parentNode)},t.prototype._createDom=function(e,t){var i=document.createElement("div");return i.setAttribute("class",e),i.style.cssText=t,i},t.prototype._getDivOffsetOfBody=function(e){},t.prototype._getDom=function(e){return document.querySelector(e)},t.prototype._mouseDown=function(e){if(this._dataItem.renderVisible)if(this._isMouseDown)this._isMouseDown=!1;else if(1===e.which){e.stopPropagation();var t=this._panelNode.getBoundingClientRect();this._isMouseDown=!0,this._downX=e.clientX-t.left,this._downY=e.clientY-t.top}},t.prototype._mouseMove=function(e){var t=this._dataItem;if(t.renderVisible&&!0===this._isMouseDown){e.stopPropagation();var i=this._container.getBoundingClientRect(),n=e.clientX-this._downX-i.left,r=e.clientY-this._downY-i.top;this._updatePanelPosition(n,r),t.panelOffset={x:this._panelOffset.x-this._anchorOffset.x,y:this._panelOffset.y-this._anchorOffset.y}}},t.prototype._mouseUp=function(e){this._isMouseDown=!1,this._dataItem.renderVisible},t.prototype._touchStart=function(e){if(this._dataItem.renderVisible)if(this._isMouseDown)this._isMouseDown=!1;else{e.stopPropagation();var t=this._panelNode.getBoundingClientRect();this._isMouseDown=!0,this._downX=e.touches.clientX-t.left,this._downY=e.touches.clientY-t.top}},t.prototype._touchMove=function(e){var t=this._dataItem;if(t.renderVisible&&(e.stopPropagation(),!0===this._isMouseDown)){var i=this._container.getBoundingClientRect(),n=e.touches.clientX-this._downX-i.left,r=e.touches.clientY-this._downY-i.top;this._updatePanelPosition(n,r),t.panelOffset={x:this._panelOffset.x-this._anchorOffset.x,y:this._panelOffset.y-this._anchorOffset.y}}},t.prototype._touchEnd=function(e){this._dataItem.renderVisible&&(e.stopPropagation(),this._isMouseDown=!1)},t.prototype._removeElement=function(e){var t=e.parentNode;t&&t.removeChild(e)},t.prototype._bindEvent=function(){var e=this;this._panelNode.addEventListener("mousedown",this._fnDown=function(t){return e._mouseDown(t)}),this._container.addEventListener("mouseup",this._fnUp=function(t){return e._mouseUp(t)}),this._container.addEventListener("mousemove",this._fnMove=function(t){return e._mouseMove(t)}),this._panelNode.addEventListener("touchstart",this._fnStart=function(t){return e._touchStart(t)}),this._container.addEventListener("touchend",this._fnEnd=function(t){return e._touchEnd(t)}),this._container.addEventListener("touchmove",this._fnTMove=function(t){return e._touchMove(t)})},t.prototype._removeEvent=function(){this._container&&(this._container.removeEventListener("mouseup",this._fnUp),this._panelNode.removeEventListener("mousedown",this._fnDown),this._container.removeEventListener("mousemove",this._fnMove),this._container.removeEventListener("touchend",this._fnEnd),this._panelNode.removeEventListener("touchstart",this._fnStart),this._container.removeEventListener("touchmove",this._fnTMove))},t}(u5);class x5 extends K4{_opt;_type="BubbleGraphic";constructor(e){super(e),this._opt=new S5,this.parseJson(e)}getType(){return x5.type}static get type(){return"BubbleGraphic"}get bubbleType(){return this._opt.bubbleType}set bubbleType(e){this._opt.bubbleType=e}get panelOffset(){return this._opt.panelOffset}set panelOffset(e){this._opt.panelOffset=e,this.updateAttribute("panelOffset")}get bindObject(){return this._opt.bindObject}set bindObject(e){this._opt.bindObject=e,this.updateAttribute("bindObject")}get panelDom(){return this.getRenderObject()._panelNode}get lineDom(){return this.getRenderObject()._lineNode}get panelDrag(){return this._opt.panelDrag}set panelDrag(e){this._opt.panelDrag=e,this.updateAttribute("panelDrag")}init(e){if(super.init(e),this.father){let e=new w5(this,this.father.getRoot());this._getRenderObj=()=>e}}getRenderObject(){return this._getRenderObj()}}class S5 extends Z4{panelOffset={x:200,y:100};panelDrag=!0;bindObject;bubbleType=M5.FixedBubble;visible=!0}class M5{FixedBubble="fixedBubble";FollowBubble="followBubble"}Cu.A.registerType(x5,"BubbleGraphic");var P5=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),E5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P5(t,e),Object.defineProperty(t.prototype,"renderType",{get:function(){return l5.Entity},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=this,t=this._dataItem;this.getRenderPositions(),t.lineStyle instanceof o5&&t.lineStyle.setUpdate(function(t){e.updateAttribute(t)}),this.updateAttributeForEditing(),this._renderObj=this._renderRoot.add(this._originProps),this._renderObj.dataId=t.id,this._renderObj.dataName=t.name},t.prototype.update=function(){var e=this,t=this._dataItem;this._renderObj.show=t.renderVisible,this.getRenderPositions(),t.lineStyle instanceof o5&&t.lineStyle.setUpdate(function(t){e.updateAttribute(t)}),this._renderObj.polyline.material=t.lineStyle.getMaterial()},t.prototype.getRenderPositions=function(){var e,t;if(void 0!==(t="ParabolaLineGraphic"==this._dataItem.getType()?(e=this._dataItem).interpolation?e.getInterpolationCallback(e.positions):e.positions:(e=this._dataItem).getInterpolationCallback(e.positions)))return 0===t.length?(this._positions=[],this._positions):(t[0]instanceof Vu?this._positions=J4.getPositions(t):this._positions=t,this._positions)},t.prototype._dealResProps=function(e){var t=this;this._resProps||(this._resProps={});var i=this._dataItem;switch(e){case"positions":this._resProps[e]=this.getRenderPositions();break;case"width":this._resProps[e]=i.width;break;case"material":this._resProps[e]=i.lineStyle.getMaterial();break;case"clampToGround":this._resProps[e]=i.clampToGround;break;case"arcType":this._resProps[e]=i.arcType;break;default:return}this._renderObj&&(i.isEditing&&"material"!=e?this._renderObj.polyline[e]=new Cesium.CallbackProperty(function(){return t._resProps[e]},!1):this._renderObj.polyline[e]=this._resProps[e])},t.prototype.updateAttributeForEditing=function(){var e=this._dataItem;this._updateAllProp(),this._renderObj||(this._originProps={show:e.renderVisible,polyline:this._resProps})},t.prototype._updateAllProp=function(){for(var e=["positions","width","material","clampToGround","arcType"],t=0;t<e.length;t++)this._dealResProps(e[t])},t.prototype.updateAttribute=function(e){var t=this,i=this._dataItem;switch(e){case"visible":this._renderObj.show=this._dataItem.renderVisible;break;case"lineStyle":i.lineStyle instanceof o5&&i.lineStyle.setUpdate(function(e){t.updateAttribute(e)}),this._renderObj.polyline.material=i.lineStyle.getMaterial();break;case"isEditing":this.updateAttributeForEditing();break;default:this._updateAllProp()}},t}(u5),L5=__webpack_require__(6763);class T5 extends K4{_opt;_type="PolylineGraphic";_interpolationCallback;constructor(e){super(e),this._opt=new O5,this.parseJson(e)}getType(){return T5.type}static get type(){return"PolylineGraphic"}init(e){if(super.init(e),this.father){let e=new E5(this,this.father.getRoot());this._getRenderObj=()=>e}}set positions(e){this._opt.positions=e,this.updateAttribute("positions")}get positions(){return this._opt.positions}set arcType(e){this._opt.arcType!==e&&(this._opt.arcType=e,this.updateAttribute("arcType"))}get arcType(){return this._opt.arcType}set clampToGround(e){this._opt.clampToGround!==e&&(!0!==e||this.arcType!==D5.None?(this._opt.clampToGround=e,this.updateAttribute("clampToGround")):L5.warn(`id为${this.id}的PolylineGraphic对象贴地属性设置无效,当ArcType属性的参数为非ArcTypeEnum.None时才可设置`))}get clampToGround(){return this.arcType!==D5.None&&this._opt.clampToGround}set width(e){this._opt.width!==e&&(this._opt.width=e,this.updateAttribute("width"))}get width(){return this._opt.width}set dirty(e){this._opt.dirty=e}get dirty(){return this._opt.dirty}set lineStyle(e){this._opt.lineStyle=e,this.updateAttribute("lineStyle")}get lineStyle(){return this._opt.lineStyle}setInterpolationCallback(e){this._interpolationCallback=e}getInterpolationCallback(){return this._interpolationCallback?this._interpolationCallback(value):value}}class O5 extends Z4{lineStyle=new e5("#ffff00");positions;arcType=D5.Geodesic;clampToGround=!1;width;dirty=!1}class D5{Geodesic=Cesium.ArcType.GEODESIC;None=Cesium.ArcType.NONE;Rhumb=Cesium.ArcType.RHUMB}Cu.A.registerType(T5,"PolylineGraphic");const B5={Tileset:Kw.A,Terrain:N$,Imagery:a0,Model:m0,CameraVideo:C0,Viewshed:x0,ViewshedAnalysis:T0,Polygon:dM.A,Polyline:dx.A,Path:N0,Pin:Q0,ODLines:W0,Scanline:q0,FlattenedPolygonCollection:$0.A,ClippingPlane:e1.A,Points:sx.A,Coordinates:Mx,Circle:r1,Cylinder:s1,PlotBase:i1,GroundImage:u1,Water:p1,CustomPrimitive:ZS,CustomGroundRectangle:m1,HeatMap:w1,Forest:n2,DynamicPois:M2,Road:L2,Wall:N2,ClassificationPolygon:j2,Surface:Z2,CutSurface:e3,GeoJSON:n3,KML:s3,Czml:u3,Proxy:p3,NativeRender:_3,Plots:_4,Radar:W4,GraphicGroup:vu,DynamicItem:V4,ColorStyle:e5,ArrowStyle:t5,OutlineStyle:i5,DashStyle:n5,GlowStyle:r5,DynamicStyle:o5,DynamicIconEnum:s5,CircularGraphic:g5,LabelGraphic:v5,BubbleGraphic:x5,PolylineGraphic:T5,PolygonGraphic:p5};window.LACDT||(window.LACDT={});var I5={copyright:Gl,Core:P$,Engine:w$,Obj:B5,Scene:CC,SceneTree:PC,LayerMgr:rC,MVVM:AL,Tool:Ww,HTML:Ql.A,Mixins:uC,ready:tu,cso:void 0,csn:void 0};window.GVOL_BASE_URL||(window.GVOL_BASE_URL="./"),Object.assign(window.LACDT,I5)})(),__webpack_exports__})());
|
|
474
|
+
function NG(e){null==e&&(e=(new Date).getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,this.init_genrand(e)}NG.prototype.init_genrand=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti<this.N;this.mti++){e=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30;this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0}},NG.prototype.genrand_int32=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var i;for(this.mti==this.N+1&&this.init_genrand(5489),i=0;i<this.N-this.M;i++)e=this.mt[i]&this.UPPER_MASK|this.mt[i+1]&this.LOWER_MASK,this.mt[i]=this.mt[i+this.M]^e>>>1^t[1&e];for(;i<this.N-1;i++)e=this.mt[i]&this.UPPER_MASK|this.mt[i+1]&this.LOWER_MASK,this.mt[i]=this.mt[i+(this.M-this.N)]^e>>>1^t[1&e];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[1&e],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,(e^=e>>>18)>>>0},NG.prototype.random=function(){return this.genrand_int32()*(1/4294967296)};const kG=NG;var FG={EPSILON1:.1,EPSILON2:.01,EPSILON3:.001,EPSILON4:1e-4,EPSILON5:1e-5,EPSILON6:1e-6,EPSILON7:1e-7,EPSILON8:1e-8,EPSILON9:1e-9,EPSILON10:1e-10,EPSILON11:1e-11,EPSILON12:1e-12,EPSILON13:1e-13,EPSILON14:1e-14,EPSILON15:1e-15,EPSILON16:1e-16,EPSILON17:1e-17,EPSILON18:1e-18,EPSILON19:1e-19,EPSILON20:1e-20,EPSILON21:1e-21,GRAVITATIONALPARAMETER:3986004418e5,SOLAR_RADIUS:6955e5,LUNAR_RADIUS:1737400,SIXTY_FOUR_KILOBYTES:65536,FOUR_GIGABYTES:4294967296};FG.sign=HU(Math.sign,function(e){return 0===(e=+e)||e!=e?e:e>0?1:-1}),FG.signNotZero=function(e){return e<0?-1:1},FG.toSNorm=function(e,t){return t=HU(t,255),Math.round((.5*FG.clamp(e,-1,1)+.5)*t)},FG.fromSNorm=function(e,t){return t=HU(t,255),FG.clamp(e,0,t)/t*2-1},FG.normalize=function(e,t,i){return 0===(i=Math.max(i-t,0))?0:FG.clamp((e-t)/i,0,1)},FG.sinh=HU(Math.sinh,function(e){return(Math.exp(e)-Math.exp(-e))/2}),FG.cosh=HU(Math.cosh,function(e){return(Math.exp(e)+Math.exp(-e))/2}),FG.lerp=function(e,t,i){return(1-i)*e+i*t},FG.PI=Math.PI,FG.ONE_OVER_PI=1/Math.PI,FG.PI_OVER_TWO=Math.PI/2,FG.PI_OVER_THREE=Math.PI/3,FG.PI_OVER_FOUR=Math.PI/4,FG.PI_OVER_SIX=Math.PI/6,FG.THREE_PI_OVER_TWO=3*Math.PI/2,FG.TWO_PI=2*Math.PI,FG.ONE_OVER_TWO_PI=1/(2*Math.PI),FG.RADIANS_PER_DEGREE=Math.PI/180,FG.DEGREES_PER_RADIAN=180/Math.PI,FG.RADIANS_PER_ARCSECOND=FG.RADIANS_PER_DEGREE/3600,FG.toRadians=function(e){if(!DU(e))throw new IU("degrees is required.");return e*FG.RADIANS_PER_DEGREE},FG.toDegrees=function(e){if(!DU(e))throw new IU("radians is required.");return e*FG.DEGREES_PER_RADIAN},FG.convertLongitudeRange=function(e){if(!DU(e))throw new IU("angle is required.");var t=FG.TWO_PI,i=e-Math.floor(e/t)*t;return i<-Math.PI?i+t:i>=Math.PI?i-t:i},FG.clampToLatitudeRange=function(e){if(!DU(e))throw new IU("angle is required.");return FG.clamp(e,-1*FG.PI_OVER_TWO,FG.PI_OVER_TWO)},FG.negativePiToPi=function(e){if(!DU(e))throw new IU("angle is required.");return e>=-FG.PI&&e<=FG.PI?e:FG.zeroToTwoPi(e+FG.PI)-FG.PI},FG.zeroToTwoPi=function(e){if(!DU(e))throw new IU("angle is required.");if(e>=0&&e<=FG.TWO_PI)return e;var t=FG.mod(e,FG.TWO_PI);return Math.abs(t)<FG.EPSILON14&&Math.abs(e)>FG.EPSILON14?FG.TWO_PI:t},FG.mod=function(e,t){if(!DU(e))throw new IU("m is required.");if(!DU(t))throw new IU("n is required.");if(0===t)throw new IU("divisor cannot be 0.");return FG.sign(e)===FG.sign(t)&&Math.abs(e)<Math.abs(t)?e:(e%t+t)%t},FG.equalsEpsilon=function(e,t,i,n){if(!DU(e))throw new IU("left is required.");if(!DU(t))throw new IU("right is required.");i=HU(i,0),n=HU(n,i);var r=Math.abs(e-t);return r<=n||r<=i*Math.max(Math.abs(e),Math.abs(t))},FG.lessThan=function(e,t,i){if(!DU(e))throw new IU("first is required.");if(!DU(t))throw new IU("second is required.");if(!DU(i))throw new IU("absoluteEpsilon is required.");return e-t<-i},FG.lessThanOrEquals=function(e,t,i){if(!DU(e))throw new IU("first is required.");if(!DU(t))throw new IU("second is required.");if(!DU(i))throw new IU("absoluteEpsilon is required.");return e-t<i},FG.greaterThan=function(e,t,i){if(!DU(e))throw new IU("first is required.");if(!DU(t))throw new IU("second is required.");if(!DU(i))throw new IU("absoluteEpsilon is required.");return e-t>i},FG.greaterThanOrEquals=function(e,t,i){if(!DU(e))throw new IU("first is required.");if(!DU(t))throw new IU("second is required.");if(!DU(i))throw new IU("absoluteEpsilon is required.");return e-t>-i};var HG=[1];FG.factorial=function(e){if("number"!=typeof e||e<0)throw new IU("A number greater than or equal to 0 is required.");var t=HG.length;if(e>=t)for(var i=HG[t-1],n=t;n<=e;n++){var r=i*n;HG.push(r),i=r}return HG[e]},FG.incrementWrap=function(e,t,i){if(i=HU(i,0),!DU(e))throw new IU("n is required.");if(t<=i)throw new IU("maximumValue must be greater than minimumValue.");return++e>t&&(e=i),e},FG.isPowerOfTwo=function(e){if("number"!=typeof e||e<0||e>4294967295)throw new IU("A number between 0 and (2^32)-1 is required.");return 0!==e&&!(e&e-1)},FG.nextPowerOfTwo=function(e){if("number"!=typeof e||e<0||e>2147483648)throw new IU("A number between 0 and 2^31 is required.");return--e,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e},FG.previousPowerOfTwo=function(e){if("number"!=typeof e||e<0||e>4294967295)throw new IU("A number between 0 and (2^32)-1 is required.");return e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e=((e|=e>>32)>>>0)-(e>>>1)},FG.clamp=function(e,t,i){if(!DU(e))throw new IU("value is required");if(!DU(t))throw new IU("min is required.");if(!DU(i))throw new IU("max is required.");return e<t?t:e>i?i:e};var YG=new kG;FG.setRandomNumberSeed=function(e){if(!DU(e))throw new IU("seed is required.");YG=new kG(e)},FG.nextRandomNumber=function(){return YG.random()},FG.randomBetween=function(e,t){return FG.nextRandomNumber()*(t-e)+e},FG.acosClamped=function(e){if(!DU(e))throw new IU("value is required.");return Math.acos(FG.clamp(e,-1,1))},FG.asinClamped=function(e){if(!DU(e))throw new IU("value is required.");return Math.asin(FG.clamp(e,-1,1))},FG.chordLength=function(e,t){if(!DU(e))throw new IU("angle is required.");if(!DU(t))throw new IU("radius is required.");return 2*t*Math.sin(.5*e)},FG.logBase=function(e,t){if(!DU(e))throw new IU("number is required.");if(!DU(t))throw new IU("base is required.");return Math.log(e)/Math.log(t)},FG.cbrt=HU(Math.cbrt,function(e){var t=Math.pow(Math.abs(e),1/3);return e<0?-t:t}),FG.log2=HU(Math.log2,function(e){return Math.log(e)*Math.LOG2E}),FG.fog=function(e,t){var i=e*t;return 1-Math.exp(-i*i)},FG.fastApproximateAtan=function(e){return kU.typeOf.number("x",e),e*(-.1784*Math.abs(e)-.0663*e*e+1.0301)},FG.fastApproximateAtan2=function(e,t){var i,n;kU.typeOf.number("x",e),kU.typeOf.number("y",t);var r=Math.abs(e);i=Math.abs(t),n=Math.max(r,i);var o=(i=Math.min(r,i))/n;if(isNaN(o))throw new IU("either x or y must be nonzero");return r=FG.fastApproximateAtan(o),r=Math.abs(t)>Math.abs(e)?FG.PI_OVER_TWO-r:r,r=e<0?FG.PI-r:r,r=t<0?-r:r};const jG=FG;function UG(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),6*i<1?e+6*(t-e)*i:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}function GG(e,t,i,n){this.red=HU(e,1),this.green=HU(t,1),this.blue=HU(i,1),this.alpha=HU(n,1)}var QG,zG,WG;GG.fromCartesian4=function(e,t){return kU.typeOf.object("cartesian",e),DU(t)?(t.red=e.x,t.green=e.y,t.blue=e.z,t.alpha=e.w,t):new GG(e.x,e.y,e.z,e.w)},GG.fromBytes=function(e,t,i,n,r){return e=GG.byteToFloat(HU(e,255)),t=GG.byteToFloat(HU(t,255)),i=GG.byteToFloat(HU(i,255)),n=GG.byteToFloat(HU(n,255)),DU(r)?(r.red=e,r.green=t,r.blue=i,r.alpha=n,r):new GG(e,t,i,n)},GG.fromAlpha=function(e,t,i){return kU.typeOf.object("color",e),kU.typeOf.number("alpha",t),DU(i)?(i.red=e.red,i.green=e.green,i.blue=e.blue,i.alpha=t,i):new GG(e.red,e.green,e.blue,t)},RG.supportsTypedArrays()&&(QG=new ArrayBuffer(4),zG=new Uint32Array(QG),WG=new Uint8Array(QG)),GG.fromRgba=function(e,t){return zG[0]=e,GG.fromBytes(WG[0],WG[1],WG[2],WG[3],t)},GG.fromHsl=function(e,t,i,n,r){e=HU(e,0)%1,t=HU(t,0),i=HU(i,0),n=HU(n,1);var o=i,s=i,a=i;if(0!==t){var l,u=2*i-(l=i<.5?i*(1+t):i+t-i*t);o=UG(u,l,e+1/3),s=UG(u,l,e),a=UG(u,l,e-1/3)}return DU(r)?(r.red=o,r.green=s,r.blue=a,r.alpha=n,r):new GG(o,s,a,n)},GG.fromRandom=function(e,t){var i=(e=HU(e,HU.EMPTY_OBJECT)).red;if(!DU(i)){var n=HU(e.minimumRed,0),r=HU(e.maximumRed,1);kU.typeOf.number.lessThanOrEquals("minimumRed",n,r),i=n+jG.nextRandomNumber()*(r-n)}var o=e.green;if(!DU(o)){var s=HU(e.minimumGreen,0),a=HU(e.maximumGreen,1);kU.typeOf.number.lessThanOrEquals("minimumGreen",s,a),o=s+jG.nextRandomNumber()*(a-s)}var l=e.blue;if(!DU(l)){var u=HU(e.minimumBlue,0),c=HU(e.maximumBlue,1);kU.typeOf.number.lessThanOrEquals("minimumBlue",u,c),l=u+jG.nextRandomNumber()*(c-u)}var h=e.alpha;if(!DU(h)){var p=HU(e.minimumAlpha,0),d=HU(e.maximumAlpha,1);kU.typeOf.number.lessThanOrEquals("minumumAlpha",p,d),h=p+jG.nextRandomNumber()*(d-p)}return DU(t)?(t.red=i,t.green=o,t.blue=l,t.alpha=h,t):new GG(i,o,l,h)};var XG=/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i,VG=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i,JG=/^rgba?\(\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)(?:\s*,\s*([0-9.]+))?\s*\)$/i,KG=/^hsla?\(\s*([0-9.]+)\s*,\s*([0-9.]+%)\s*,\s*([0-9.]+%)(?:\s*,\s*([0-9.]+))?\s*\)$/i;GG.fromCssColorString=function(e,t){kU.typeOf.string("color",e),DU(t)||(t=new GG);var i=GG[(e=e.replace(/\s/g,"")).toUpperCase()];if(DU(i))return GG.clone(i,t),t;var n=XG.exec(e);return null!==n?(t.red=parseInt(n[1],16)/15,t.green=parseInt(n[2],16)/15,t.blue=parseInt(n[3],16)/15,t.alpha=parseInt(HU(n[4],"f"),16)/15,t):null!==(n=VG.exec(e))?(t.red=parseInt(n[1],16)/255,t.green=parseInt(n[2],16)/255,t.blue=parseInt(n[3],16)/255,t.alpha=parseInt(HU(n[4],"ff"),16)/255,t):null!==(n=JG.exec(e))?(t.red=parseFloat(n[1])/("%"===n[1].substr(-1)?100:255),t.green=parseFloat(n[2])/("%"===n[2].substr(-1)?100:255),t.blue=parseFloat(n[3])/("%"===n[3].substr(-1)?100:255),t.alpha=parseFloat(HU(n[4],"1.0")),t):null!==(n=KG.exec(e))?GG.fromHsl(parseFloat(n[1])/360,parseFloat(n[2])/100,parseFloat(n[3])/100,parseFloat(HU(n[4],"1.0")),t):t=void 0},GG.packedLength=4,GG.pack=function(e,t,i){return kU.typeOf.object("value",e),kU.defined("array",t),i=HU(i,0),t[i++]=e.red,t[i++]=e.green,t[i++]=e.blue,t[i]=e.alpha,t},GG.unpack=function(e,t,i){return kU.defined("array",e),t=HU(t,0),DU(i)||(i=new GG),i.red=e[t++],i.green=e[t++],i.blue=e[t++],i.alpha=e[t],i},GG.byteToFloat=function(e){return e/255},GG.floatToByte=function(e){return 1===e?255:256*e|0},GG.clone=function(e,t){if(DU(e))return DU(t)?(t.red=e.red,t.green=e.green,t.blue=e.blue,t.alpha=e.alpha,t):new GG(e.red,e.green,e.blue,e.alpha)},GG.equals=function(e,t){return e===t||DU(e)&&DU(t)&&e.red===t.red&&e.green===t.green&&e.blue===t.blue&&e.alpha===t.alpha},GG.equalsArray=function(e,t,i){return e.red===t[i]&&e.green===t[i+1]&&e.blue===t[i+2]&&e.alpha===t[i+3]},GG.prototype.clone=function(e){return GG.clone(this,e)},GG.prototype.equals=function(e){return GG.equals(this,e)},GG.prototype.equalsEpsilon=function(e,t){return this===e||DU(e)&&Math.abs(this.red-e.red)<=t&&Math.abs(this.green-e.green)<=t&&Math.abs(this.blue-e.blue)<=t&&Math.abs(this.alpha-e.alpha)<=t},GG.prototype.toString=function(){return"("+this.red+", "+this.green+", "+this.blue+", "+this.alpha+")"},GG.prototype.toCssColorString=function(){var e=GG.floatToByte(this.red),t=GG.floatToByte(this.green),i=GG.floatToByte(this.blue);return 1===this.alpha?"rgb("+e+","+t+","+i+")":"rgba("+e+","+t+","+i+","+this.alpha+")"},GG.prototype.toCssHexString=function(){var e=GG.floatToByte(this.red).toString(16);e.length<2&&(e="0"+e);var t=GG.floatToByte(this.green).toString(16);t.length<2&&(t="0"+t);var i=GG.floatToByte(this.blue).toString(16);if(i.length<2&&(i="0"+i),this.alpha<1){var n=GG.floatToByte(this.alpha).toString(16);return n.length<2&&(n="0"+n),"#"+e+t+i+n}return"#"+e+t+i},GG.prototype.toBytes=function(e){var t=GG.floatToByte(this.red),i=GG.floatToByte(this.green),n=GG.floatToByte(this.blue),r=GG.floatToByte(this.alpha);return DU(e)?(e[0]=t,e[1]=i,e[2]=n,e[3]=r,e):[t,i,n,r]},GG.prototype.toRgba=function(){return WG[0]=GG.floatToByte(this.red),WG[1]=GG.floatToByte(this.green),WG[2]=GG.floatToByte(this.blue),WG[3]=GG.floatToByte(this.alpha),zG[0]},GG.prototype.brighten=function(e,t){return kU.typeOf.number("magnitude",e),kU.typeOf.number.greaterThanOrEquals("magnitude",e,0),kU.typeOf.object("result",t),e=1-e,t.red=1-(1-this.red)*e,t.green=1-(1-this.green)*e,t.blue=1-(1-this.blue)*e,t.alpha=this.alpha,t},GG.prototype.darken=function(e,t){return kU.typeOf.number("magnitude",e),kU.typeOf.number.greaterThanOrEquals("magnitude",e,0),kU.typeOf.object("result",t),e=1-e,t.red=this.red*e,t.green=this.green*e,t.blue=this.blue*e,t.alpha=this.alpha,t},GG.prototype.withAlpha=function(e,t){return GG.fromAlpha(this,e,t)},GG.add=function(e,t,i){return kU.typeOf.object("left",e),kU.typeOf.object("right",t),kU.typeOf.object("result",i),i.red=e.red+t.red,i.green=e.green+t.green,i.blue=e.blue+t.blue,i.alpha=e.alpha+t.alpha,i},GG.subtract=function(e,t,i){return kU.typeOf.object("left",e),kU.typeOf.object("right",t),kU.typeOf.object("result",i),i.red=e.red-t.red,i.green=e.green-t.green,i.blue=e.blue-t.blue,i.alpha=e.alpha-t.alpha,i},GG.multiply=function(e,t,i){return kU.typeOf.object("left",e),kU.typeOf.object("right",t),kU.typeOf.object("result",i),i.red=e.red*t.red,i.green=e.green*t.green,i.blue=e.blue*t.blue,i.alpha=e.alpha*t.alpha,i},GG.divide=function(e,t,i){return kU.typeOf.object("left",e),kU.typeOf.object("right",t),kU.typeOf.object("result",i),i.red=e.red/t.red,i.green=e.green/t.green,i.blue=e.blue/t.blue,i.alpha=e.alpha/t.alpha,i},GG.mod=function(e,t,i){return kU.typeOf.object("left",e),kU.typeOf.object("right",t),kU.typeOf.object("result",i),i.red=e.red%t.red,i.green=e.green%t.green,i.blue=e.blue%t.blue,i.alpha=e.alpha%t.alpha,i},GG.lerp=function(e,t,i,n){return kU.typeOf.object("start",e),kU.typeOf.object("end",t),kU.typeOf.number("t",i),kU.typeOf.object("result",n),n.red=jG.lerp(e.red,t.red,i),n.green=jG.lerp(e.green,t.green,i),n.blue=jG.lerp(e.blue,t.blue,i),n.alpha=jG.lerp(e.alpha,t.alpha,i),n},GG.multiplyByScalar=function(e,t,i){return kU.typeOf.object("color",e),kU.typeOf.number("scalar",t),kU.typeOf.object("result",i),i.red=e.red*t,i.green=e.green*t,i.blue=e.blue*t,i.alpha=e.alpha*t,i},GG.divideByScalar=function(e,t,i){return kU.typeOf.object("color",e),kU.typeOf.number("scalar",t),kU.typeOf.object("result",i),i.red=e.red/t,i.green=e.green/t,i.blue=e.blue/t,i.alpha=e.alpha/t,i},GG.ALICEBLUE=Object.freeze(GG.fromCssColorString("#F0F8FF")),GG.ANTIQUEWHITE=Object.freeze(GG.fromCssColorString("#FAEBD7")),GG.AQUA=Object.freeze(GG.fromCssColorString("#00FFFF")),GG.AQUAMARINE=Object.freeze(GG.fromCssColorString("#7FFFD4")),GG.AZURE=Object.freeze(GG.fromCssColorString("#F0FFFF")),GG.BEIGE=Object.freeze(GG.fromCssColorString("#F5F5DC")),GG.BISQUE=Object.freeze(GG.fromCssColorString("#FFE4C4")),GG.BLACK=Object.freeze(GG.fromCssColorString("#000000")),GG.BLANCHEDALMOND=Object.freeze(GG.fromCssColorString("#FFEBCD")),GG.BLUE=Object.freeze(GG.fromCssColorString("#0000FF")),GG.BLUEVIOLET=Object.freeze(GG.fromCssColorString("#8A2BE2")),GG.BROWN=Object.freeze(GG.fromCssColorString("#A52A2A")),GG.BURLYWOOD=Object.freeze(GG.fromCssColorString("#DEB887")),GG.CADETBLUE=Object.freeze(GG.fromCssColorString("#5F9EA0")),GG.CHARTREUSE=Object.freeze(GG.fromCssColorString("#7FFF00")),GG.CHOCOLATE=Object.freeze(GG.fromCssColorString("#D2691E")),GG.CORAL=Object.freeze(GG.fromCssColorString("#FF7F50")),GG.CORNFLOWERBLUE=Object.freeze(GG.fromCssColorString("#6495ED")),GG.CORNSILK=Object.freeze(GG.fromCssColorString("#FFF8DC")),GG.CRIMSON=Object.freeze(GG.fromCssColorString("#DC143C")),GG.CYAN=Object.freeze(GG.fromCssColorString("#00FFFF")),GG.DARKBLUE=Object.freeze(GG.fromCssColorString("#00008B")),GG.DARKCYAN=Object.freeze(GG.fromCssColorString("#008B8B")),GG.DARKGOLDENROD=Object.freeze(GG.fromCssColorString("#B8860B")),GG.DARKGRAY=Object.freeze(GG.fromCssColorString("#A9A9A9")),GG.DARKGREEN=Object.freeze(GG.fromCssColorString("#006400")),GG.DARKGREY=GG.DARKGRAY,GG.DARKKHAKI=Object.freeze(GG.fromCssColorString("#BDB76B")),GG.DARKMAGENTA=Object.freeze(GG.fromCssColorString("#8B008B")),GG.DARKOLIVEGREEN=Object.freeze(GG.fromCssColorString("#556B2F")),GG.DARKORANGE=Object.freeze(GG.fromCssColorString("#FF8C00")),GG.DARKORCHID=Object.freeze(GG.fromCssColorString("#9932CC")),GG.DARKRED=Object.freeze(GG.fromCssColorString("#8B0000")),GG.DARKSALMON=Object.freeze(GG.fromCssColorString("#E9967A")),GG.DARKSEAGREEN=Object.freeze(GG.fromCssColorString("#8FBC8F")),GG.DARKSLATEBLUE=Object.freeze(GG.fromCssColorString("#483D8B")),GG.DARKSLATEGRAY=Object.freeze(GG.fromCssColorString("#2F4F4F")),GG.DARKSLATEGREY=GG.DARKSLATEGRAY,GG.DARKTURQUOISE=Object.freeze(GG.fromCssColorString("#00CED1")),GG.DARKVIOLET=Object.freeze(GG.fromCssColorString("#9400D3")),GG.DEEPPINK=Object.freeze(GG.fromCssColorString("#FF1493")),GG.DEEPSKYBLUE=Object.freeze(GG.fromCssColorString("#00BFFF")),GG.DIMGRAY=Object.freeze(GG.fromCssColorString("#696969")),GG.DIMGREY=GG.DIMGRAY,GG.DODGERBLUE=Object.freeze(GG.fromCssColorString("#1E90FF")),GG.FIREBRICK=Object.freeze(GG.fromCssColorString("#B22222")),GG.FLORALWHITE=Object.freeze(GG.fromCssColorString("#FFFAF0")),GG.FORESTGREEN=Object.freeze(GG.fromCssColorString("#228B22")),GG.FUCHSIA=Object.freeze(GG.fromCssColorString("#FF00FF")),GG.GAINSBORO=Object.freeze(GG.fromCssColorString("#DCDCDC")),GG.GHOSTWHITE=Object.freeze(GG.fromCssColorString("#F8F8FF")),GG.GOLD=Object.freeze(GG.fromCssColorString("#FFD700")),GG.GOLDENROD=Object.freeze(GG.fromCssColorString("#DAA520")),GG.GRAY=Object.freeze(GG.fromCssColorString("#808080")),GG.GREEN=Object.freeze(GG.fromCssColorString("#008000")),GG.GREENYELLOW=Object.freeze(GG.fromCssColorString("#ADFF2F")),GG.GREY=GG.GRAY,GG.HONEYDEW=Object.freeze(GG.fromCssColorString("#F0FFF0")),GG.HOTPINK=Object.freeze(GG.fromCssColorString("#FF69B4")),GG.INDIANRED=Object.freeze(GG.fromCssColorString("#CD5C5C")),GG.INDIGO=Object.freeze(GG.fromCssColorString("#4B0082")),GG.IVORY=Object.freeze(GG.fromCssColorString("#FFFFF0")),GG.KHAKI=Object.freeze(GG.fromCssColorString("#F0E68C")),GG.LAVENDER=Object.freeze(GG.fromCssColorString("#E6E6FA")),GG.LAVENDAR_BLUSH=Object.freeze(GG.fromCssColorString("#FFF0F5")),GG.LAWNGREEN=Object.freeze(GG.fromCssColorString("#7CFC00")),GG.LEMONCHIFFON=Object.freeze(GG.fromCssColorString("#FFFACD")),GG.LIGHTBLUE=Object.freeze(GG.fromCssColorString("#ADD8E6")),GG.LIGHTCORAL=Object.freeze(GG.fromCssColorString("#F08080")),GG.LIGHTCYAN=Object.freeze(GG.fromCssColorString("#E0FFFF")),GG.LIGHTGOLDENRODYELLOW=Object.freeze(GG.fromCssColorString("#FAFAD2")),GG.LIGHTGRAY=Object.freeze(GG.fromCssColorString("#D3D3D3")),GG.LIGHTGREEN=Object.freeze(GG.fromCssColorString("#90EE90")),GG.LIGHTGREY=GG.LIGHTGRAY,GG.LIGHTPINK=Object.freeze(GG.fromCssColorString("#FFB6C1")),GG.LIGHTSEAGREEN=Object.freeze(GG.fromCssColorString("#20B2AA")),GG.LIGHTSKYBLUE=Object.freeze(GG.fromCssColorString("#87CEFA")),GG.LIGHTSLATEGRAY=Object.freeze(GG.fromCssColorString("#778899")),GG.LIGHTSLATEGREY=GG.LIGHTSLATEGRAY,GG.LIGHTSTEELBLUE=Object.freeze(GG.fromCssColorString("#B0C4DE")),GG.LIGHTYELLOW=Object.freeze(GG.fromCssColorString("#FFFFE0")),GG.LIME=Object.freeze(GG.fromCssColorString("#00FF00")),GG.LIMEGREEN=Object.freeze(GG.fromCssColorString("#32CD32")),GG.LINEN=Object.freeze(GG.fromCssColorString("#FAF0E6")),GG.MAGENTA=Object.freeze(GG.fromCssColorString("#FF00FF")),GG.MAROON=Object.freeze(GG.fromCssColorString("#800000")),GG.MEDIUMAQUAMARINE=Object.freeze(GG.fromCssColorString("#66CDAA")),GG.MEDIUMBLUE=Object.freeze(GG.fromCssColorString("#0000CD")),GG.MEDIUMORCHID=Object.freeze(GG.fromCssColorString("#BA55D3")),GG.MEDIUMPURPLE=Object.freeze(GG.fromCssColorString("#9370DB")),GG.MEDIUMSEAGREEN=Object.freeze(GG.fromCssColorString("#3CB371")),GG.MEDIUMSLATEBLUE=Object.freeze(GG.fromCssColorString("#7B68EE")),GG.MEDIUMSPRINGGREEN=Object.freeze(GG.fromCssColorString("#00FA9A")),GG.MEDIUMTURQUOISE=Object.freeze(GG.fromCssColorString("#48D1CC")),GG.MEDIUMVIOLETRED=Object.freeze(GG.fromCssColorString("#C71585")),GG.MIDNIGHTBLUE=Object.freeze(GG.fromCssColorString("#191970")),GG.MINTCREAM=Object.freeze(GG.fromCssColorString("#F5FFFA")),GG.MISTYROSE=Object.freeze(GG.fromCssColorString("#FFE4E1")),GG.MOCCASIN=Object.freeze(GG.fromCssColorString("#FFE4B5")),GG.NAVAJOWHITE=Object.freeze(GG.fromCssColorString("#FFDEAD")),GG.NAVY=Object.freeze(GG.fromCssColorString("#000080")),GG.OLDLACE=Object.freeze(GG.fromCssColorString("#FDF5E6")),GG.OLIVE=Object.freeze(GG.fromCssColorString("#808000")),GG.OLIVEDRAB=Object.freeze(GG.fromCssColorString("#6B8E23")),GG.ORANGE=Object.freeze(GG.fromCssColorString("#FFA500")),GG.ORANGERED=Object.freeze(GG.fromCssColorString("#FF4500")),GG.ORCHID=Object.freeze(GG.fromCssColorString("#DA70D6")),GG.PALEGOLDENROD=Object.freeze(GG.fromCssColorString("#EEE8AA")),GG.PALEGREEN=Object.freeze(GG.fromCssColorString("#98FB98")),GG.PALETURQUOISE=Object.freeze(GG.fromCssColorString("#AFEEEE")),GG.PALEVIOLETRED=Object.freeze(GG.fromCssColorString("#DB7093")),GG.PAPAYAWHIP=Object.freeze(GG.fromCssColorString("#FFEFD5")),GG.PEACHPUFF=Object.freeze(GG.fromCssColorString("#FFDAB9")),GG.PERU=Object.freeze(GG.fromCssColorString("#CD853F")),GG.PINK=Object.freeze(GG.fromCssColorString("#FFC0CB")),GG.PLUM=Object.freeze(GG.fromCssColorString("#DDA0DD")),GG.POWDERBLUE=Object.freeze(GG.fromCssColorString("#B0E0E6")),GG.PURPLE=Object.freeze(GG.fromCssColorString("#800080")),GG.RED=Object.freeze(GG.fromCssColorString("#FF0000")),GG.ROSYBROWN=Object.freeze(GG.fromCssColorString("#BC8F8F")),GG.ROYALBLUE=Object.freeze(GG.fromCssColorString("#4169E1")),GG.SADDLEBROWN=Object.freeze(GG.fromCssColorString("#8B4513")),GG.SALMON=Object.freeze(GG.fromCssColorString("#FA8072")),GG.SANDYBROWN=Object.freeze(GG.fromCssColorString("#F4A460")),GG.SEAGREEN=Object.freeze(GG.fromCssColorString("#2E8B57")),GG.SEASHELL=Object.freeze(GG.fromCssColorString("#FFF5EE")),GG.SIENNA=Object.freeze(GG.fromCssColorString("#A0522D")),GG.SILVER=Object.freeze(GG.fromCssColorString("#C0C0C0")),GG.SKYBLUE=Object.freeze(GG.fromCssColorString("#87CEEB")),GG.SLATEBLUE=Object.freeze(GG.fromCssColorString("#6A5ACD")),GG.SLATEGRAY=Object.freeze(GG.fromCssColorString("#708090")),GG.SLATEGREY=GG.SLATEGRAY,GG.SNOW=Object.freeze(GG.fromCssColorString("#FFFAFA")),GG.SPRINGGREEN=Object.freeze(GG.fromCssColorString("#00FF7F")),GG.STEELBLUE=Object.freeze(GG.fromCssColorString("#4682B4")),GG.TAN=Object.freeze(GG.fromCssColorString("#D2B48C")),GG.TEAL=Object.freeze(GG.fromCssColorString("#008080")),GG.THISTLE=Object.freeze(GG.fromCssColorString("#D8BFD8")),GG.TOMATO=Object.freeze(GG.fromCssColorString("#FF6347")),GG.TURQUOISE=Object.freeze(GG.fromCssColorString("#40E0D0")),GG.VIOLET=Object.freeze(GG.fromCssColorString("#EE82EE")),GG.WHEAT=Object.freeze(GG.fromCssColorString("#F5DEB3")),GG.WHITE=Object.freeze(GG.fromCssColorString("#FFFFFF")),GG.WHITESMOKE=Object.freeze(GG.fromCssColorString("#F5F5F5")),GG.YELLOW=Object.freeze(GG.fromCssColorString("#FFFF00")),GG.YELLOWGREEN=Object.freeze(GG.fromCssColorString("#9ACD32")),GG.TRANSPARENT=Object.freeze(new GG(0,0,0,0));const ZG=GG;var qG,$G=function(){function e(){}return e.measureSize=function(e,t){if(!DU(e))throw new IU("text is required.");if(""!==e){t=HU(t,HU.EMPTY_OBJECT);var i=HU(t.font,"10px sans-serif"),n=HU(t.stroke,!1),r=HU(t.fill,!0),o=HU(t.strokeWidth,1),s=(HU(t.backgroundColor,ZG.TRANSPARENT),HU(t.padding,0),document.createElement("canvas"));s.width=1,s.height=1,s.style.font=i;var a=s.getContext("2d");DU(qG)||(DU(a.imageSmoothingEnabled)?qG="imageSmoothingEnabled":DU(a.mozImageSmoothingEnabled)?qG="mozImageSmoothingEnabled":DU(a.webkitImageSmoothingEnabled)?qG="webkitImageSmoothingEnabled":DU(a.msImageSmoothingEnabled)&&(qG="msImageSmoothingEnabled")),a.font=i,a.lineJoin="round",a.lineWidth=o,a[qG]=!1,a.textBaseline=HU(t.textBaseline,"bottom"),s.style.visibility="hidden",document.body.appendChild(s);var l=new OU(a,e,n,r);return document.body.removeChild(s),s.style.visibility="",l}},e}();const eQ=$G;var tQ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),iQ=function(){return iQ=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},iQ.apply(this,arguments)},nQ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},rQ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},oQ=function(e){function t(t,i,n){var r=e.call(this,t,i,iQ({},n))||this;r.maxPointNum=1,r.minPointNum=1,r.firstEditText=!0,r.canvasWidth=0,r.canvasHeight=0,r.scaleProperty=["scalev"],r.rotateByHeadingProperty=["rotation"],r.type="贴地文字",r.alpha=1,r.textSize=108,r.textFont="黑体",r.fontWeight=0,r.text="贴地文字",r.rotation=0,r.outlineShow=!1,r.outlineWidth=2,r.outlineColor="#000000",r.distanceDisplay=!1,r.distanceHeight=55e5,r.showMode=1,r.heightReference=Cesium.HeightReference.NONE,r.hideValues=["gridSwitch","gridLevel","gridIsAgg","gridColor","gridOutlineColor","gridUpdate"];var o=Math.ceil(t.viewer.camera.positionCartographic.height);if(r.scalev=Math.ceil(.001*o),n&&n.properties)for(var s in n.properties)r[s]=n.properties[s];return r}return tQ(t,e),t.prototype.setPrimitivePosition=function(e){if(e[0]||(e=e.slice(1)),!(e.length<1)){this.setInternalControlPosition(e);var t=e[0],i=Cesium.Math.toRadians(this.rotation),n=new Cesium.HeadingPitchRoll(i,0,0),r=Cesium.Transforms.headingPitchRollToFixedFrame(t,n,Cesium.Ellipsoid.WGS84,Cesium.Transforms.eastNorthUpToFixedFrame,new Cesium.Matrix4);if(2==this.showMode){var o=Cesium.Matrix4.fromRotationTranslation(Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(90)));Cesium.Matrix4.multiply(r,o,r)}var s=new Cesium.Cartesian3(this.canvasWidth*this.scalev,this.canvasHeight*this.scalev,1),a=Cesium.Matrix4.fromScale(s);Cesium.Matrix4.multiply(r,a,r),this.ent.modelMatrix=r}},t.prototype.initProps=function(e){},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(e){this._rotation=e,this.ent&&this.rotatable&&this.setPrimitivePosition(this._singleControlPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scalev",{get:function(){return this._scalev},set:function(e){e<.5&&(e=.5),_I.saveProp(this.type,"scalev",e),this._scalev=e,this.ent&&this.setPrimitivePosition(this._singleControlPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showMode",{get:function(){return this._showMode},set:function(e){this._showMode=e,this.ent&&this.createEnt(this._singleControlPosition[0])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"distanceDisplay",{get:function(){return this._distanceDisplay},set:function(e){this._distanceDisplay=e,this.ent&&this.createEnt(Cesium.Cartesian3.ZERO)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"distanceHeight",{get:function(){return this._distanceHeight},set:function(e){this._distanceHeight=e,this.ent&&this.createEnt(Cesium.Cartesian3.ZERO)},enumerable:!1,configurable:!0}),t.prototype.distanceCondition=function(){return this.distanceDisplay?new Cesium.DistanceDisplayConditionGeometryInstanceAttribute(0,this.distanceHeight):void 0},Object.defineProperty(t.prototype,"alpha",{get:function(){return this._alpha},set:function(e){this._alpha=e,this.ent&&this.editCanvas()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this._text},set:function(e){this._text=e,this.ent&&this.editCanvas()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textFont",{get:function(){return this._textFont},set:function(e){this._textFont=e,this.ent&&this.editCanvas()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textSize",{get:function(){return this._textSize},set:function(e){this._textSize=Number.parseFloat(e),this.ent&&this.editCanvas()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fontWeight",{get:function(){return this._fontWeight},set:function(e){this._fontWeight=e,this.ent&&this.editCanvas()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e,this.ent&&this.editCanvas()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"outlineShow",{get:function(){return this._outlineShow},set:function(e){this._outlineShow=e,this.ent&&this.editCanvas()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"outlineColor",{get:function(){return this._outlineColor},set:function(e){this._outlineColor=e,this.ent&&this.editCanvas()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"outlineWidth",{get:function(){return this._outlineWidth},set:function(e){this._outlineWidth=e,this.ent&&this.editCanvas()},enumerable:!1,configurable:!0}),t.prototype.scale=function(e,t){this.scalable&&(this.scalev=this.changeScaleByMouse(this.scalev,e,t),this.onPropertyChanged())},t.prototype.rotateByHeading=function(e,t){if(this.rotatable){var i=this.rotation+(t.x-e.x);this.rotation=i%360,this.onPropertyChanged()}},t.prototype.createHiDPICanvas=function(e,t,i){var n,r=(n=document.createElement("canvas").getContext("2d")||{},(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1));i||(i=r);var o=document.createElement("canvas");return o.width=e,o.height=t,o},t.prototype.drawText=function(){var e="";e=1==this.fontWeight?"bold "+this.textSize+"px "+this.textFont:"normal "+this.textSize+"px "+this.textFont;for(var t=eQ.measureSize("国",{font:e,fillColor:Cesium.Color.BLACK,stroke:this.outlineShow,strokeColor:this.outlineColor,strokeWidth:this.outlineWidth}),i=this.text.split("\n"),n=0,r=0;r<i.length;r++)i[r].length>n&&(n=i[r].length);if(t.width&&t.height){n>0&&i.length>0?(this.canvasWidth=n*t.width,this.canvasHeight=i.length*(t.height+this.outlineWidth/2)+20):(this.canvasWidth=t.width,this.canvasHeight=t.height+this.outlineWidth/2+20);var o=this.createHiDPICanvas(this.canvasWidth,this.canvasHeight,3),s=o.getContext("2d");s.fillStyle=this.color,s.globalAlpha=this.alpha,s.font=e,s.textBaseline="hanging",s.strokeStyle=this.outlineColor,s.lineWidth=this.outlineWidth;var a=t.ascent;if(i&&i.length>0){var l=a/6;for(r=0;r<i.length;r++)s.fillText(i[r],0,l),this.outlineShow&&s.strokeText(i[r],0,l),l+=t.height}else s.fillText(this.text,0,a/6),this.outlineShow&&s.strokeText(this.text,0,a/6);return o}},t.prototype.createMaterial=function(){var e={type:"AlphaText",uniforms:{image:this.drawText()},source:"\n #if __VERSION__ == 100\n #define TEXTURE texture2D\n #else\n #define TEXTURE texture\n #endif\n\n uniform sampler2D image;\n\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = fract(materialInput.st);\n vec4 texel = TEXTURE(image, st);\n material.diffuse = texel.rgb;\n material.alpha = texel.a;\n return material;\n }"};return this.material=new Cesium.Material({fabric:e,translucent:!0}),this.material},t.prototype.setColor=function(e){e.uniforms.color=Cesium.Color.fromCssColorString(this.color).withAlpha(1==this.alpha?1:this.alpha)},t.prototype.createEnt=function(e){this.ent instanceof Cesium.Primitive&&this.viewer.scene.primitives.remove(this.ent);var t=this.createMaterial(),i=new Cesium.GeometryInstance({geometry:Cesium.PlaneGeometry.createGeometry(new Cesium.PlaneGeometry({vertexFormat:Cesium.EllipsoidSurfaceAppearance.VERTEX_FORMAT})),attributes:{distanceDisplayCondition:this.distanceCondition()}}),n=new Cesium.Primitive({geometryInstances:i,appearance:new Cesium.EllipsoidSurfaceAppearance({material:t,flat:!0,aboveGround:!0}),asynchronous:!1,releaseGeometryInstances:!1});this.ent=n,this.editCanvas(),this.viewer.scene.primitives.add(n),this.fillShape(this.ent)},t.prototype.editCanvas=function(){this.ent.appearance.material.uniforms.image=this.drawText()},t.prototype.initShape=function(){this.createEnt(Cesium.Cartesian3.ZERO);var e=this;this.positionProperty=function(){var t=e._singleControlPosition.concat(Hf.cursorPos);t&&t.length>0&&t[0]&&e.setPrimitivePosition(t)}},t.prototype.toEdit=function(){e.prototype.toEdit.call(this);var t=this;this.positionProperty=function(){var e=t._singleControlPosition;t.setPrimitivePosition(e)}},t.prototype.finish=function(){if(this.ent){e.prototype.finish.call(this);var t=this._singleControlPosition;this.positionProperty=t}},nQ([em({name:"旋转",group:"外观",type:"whirl",order:8,min:-360,max:360,hiddenGroupName:!1}),rQ("design:type",Number),rQ("design:paramtypes",[Number])],t.prototype,"rotation",null),nQ([em({name:"缩放",group:"外观",type:"zoom",order:8,min:1,max:1e4,hiddenGroupName:!1}),rQ("design:type",Number),rQ("design:paramtypes",[Number])],t.prototype,"scalev",null),nQ([em({name:"显示模式",group:"外观",order:8,subOrder:4,type:"option",options:[{label:"贴地",value:1},{label:"立面",value:2}]}),rQ("design:type",Number),rQ("design:paramtypes",[Object])],t.prototype,"showMode",null),nQ([em({name:"可视高度",group:"通用",subGroup:"可视高度",subOrder:1,type:"checkboxSub",order:2,hiddenGroupName:!1}),rQ("design:type",Boolean),rQ("design:paramtypes",[Boolean])],t.prototype,"distanceDisplay",null),nQ([em({name:"可视高度距离",group:"通用",subGroup:"可视高度",subOrder:2,type:"number3",order:2,hiddenGroupName:!1,min:0,max:2e7}),rQ("design:type",Number),rQ("design:paramtypes",[Number])],t.prototype,"distanceHeight",null),nQ([em({name:"不透明度",group:"通用",type:"slider",order:2,min:0,max:1}),rQ("design:type",Number),rQ("design:paramtypes",[Number])],t.prototype,"alpha",null),nQ([em({name:"文字",group:"文本",order:6,type:"textArea",hiddenGroupName:!0}),rQ("design:type",String),rQ("design:paramtypes",[String])],t.prototype,"text",null),nQ([em({name:"字体",group:"文本",order:6,type:"font",hiddenGroupName:!0}),rQ("design:type",String),rQ("design:paramtypes",[String])],t.prototype,"textFont",null),nQ([em({name:"文字大小",group:"文本",subGroup:"大小粗细",order:6,subOrder:3,type:"size",min:40,max:400,hiddenGroupName:!0}),rQ("design:type",Number),rQ("design:paramtypes",[Number])],t.prototype,"textSize",null),nQ([em({name:"字体粗细",group:"文本",subGroup:"大小粗细",order:6,subOrder:4,type:"option",hiddenGroupName:!0,options:[{label:"正常",value:0},{label:"加粗",value:1}]}),rQ("design:type",Number),rQ("design:paramtypes",[Number])],t.prototype,"fontWeight",null),nQ([om(),em({name:"颜色",group:"文本",type:"color",order:6,subGroup:"填充",subOrder:4,noEmpty:!1}),rQ("design:type",String),rQ("design:paramtypes",[String])],t.prototype,"color",null),nQ([em({name:"是否描边",group:"文本",type:"checkboxSub",order:6,subGroup:"描边",subOrder:7}),rQ("design:type",Boolean),rQ("design:paramtypes",[Boolean])],t.prototype,"outlineShow",null),nQ([em({name:"描边颜色",group:"文本",subGroup:"描边",order:6,subOrder:8,type:"color"}),rQ("design:type",String),rQ("design:paramtypes",[String])],t.prototype,"outlineColor",null),nQ([em({name:"描边线宽",group:"文本",subGroup:"描边线宽",order:6,subOrder:9,type:"number4",min:1,max:6}),rQ("design:type",Number),rQ("design:paramtypes",[Number])],t.prototype,"outlineWidth",null),nQ([rm(),rQ("design:type",Function),rQ("design:paramtypes",[Object,Object,Object]),rQ("design:returntype",void 0)],t.prototype,"createHiDPICanvas",null),nQ([rm(),rQ("design:type",Function),rQ("design:paramtypes",[]),rQ("design:returntype",void 0)],t.prototype,"drawText",null),nQ([rm(),rQ("design:type",Object)],t.prototype,"material",void 0),nQ([rm(),rQ("design:type",Function),rQ("design:paramtypes",[]),rQ("design:returntype",void 0)],t.prototype,"editCanvas",null),t}(sI);const sQ=oQ;Cu.A.registerType(oQ,"EditorPlaneText","Graph");var aQ=__webpack_require__(6763),lQ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),uQ=function(){return uQ=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},uQ.apply(this,arguments)},cQ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},hQ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},pQ=function(e){function t(t,i,n){var r=e.call(this,t,i,uQ({},n))||this;if(r.isEditing=!1,r.maxPointNum=1,r.minPointNum=1,r._width=0,r._height=0,r._alpha=1,r._scalev=1,r.scaleProperty=["scalev"],r.type="动图",r.distanceDisplay?r.gifSwitch=!0:r.gifSwitch=!1,n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return lQ(t,e),Object.defineProperty(t.prototype,"imageUrl",{get:function(){return this._imageUrl},set:function(e){this._imageUrl=e,this.htmlElement&&(this.htmlElement.src=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e,this.htmlElement&&this.htmlElement.style&&(this.htmlElement.style.width=e+"px")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e,this.htmlElement&&this.htmlElement.style&&(this.htmlElement.style.height=e+"px")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"show",{get:function(){return this._show},set:function(e){this._show=e,this.gifSwitch=!1,this.htmlElement&&this.htmlElement.style&&(this.htmlElement.style.display=this._show?"block":"none"),this.onPropertyChanged("show")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alpha",{get:function(){return this._alpha},set:function(e){this._alpha=e,this.show=1===e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scalev",{get:function(){return this._scalev},set:function(e){_I.saveProp(this.type,"scalev",e),this._scalev=e,this.htmlElement&&this.htmlElement.style&&(this.htmlElement.style.transform="scale(".concat(e,")"))},enumerable:!1,configurable:!0}),t.prototype.initShape=function(){var e=this;if(this.ent=this.entities.add(new Cesium.Entity({point:{}})),this.ent.show=this.show,this.fillShape(this.ent),Object.assign(this.ent.point,{pixelSize:new Cesium.CallbackProperty(function(t,i){return e._width},!0),color:Cesium.Color.AQUA.withAlpha(.01),outlineWidth:0,outlineColor:Cesium.Color.AQUA.withAlpha(0),heightReference:Cesium.HeightReference.CLAMP_TO_GROUND}),this.ent){this.ent.position=new Cesium.CallbackProperty(function(t,i){return e.calcuteShape(e._singleControlPosition.concat(Hf.cursorPos),t)},!1),this.htmlElement=document.createElement("img"),aQ.log("this.imageUrl",this.imageUrl),this.imageUrl.indexOf("https")<0&&(this.imageUrl=this.imageUrl.replace("http","https")),aQ.log("this.imageUrl",this.imageUrl),this.htmlElement.src=this.imageUrl,this.htmlElement.style.position="absolute",this.htmlElement.style.pointerEvents="none",this.htmlElement.style.top="-500px",this.height>0&&(this.htmlElement.style.height=this.height+"px",this.htmlElement.style.width=this.width+"px",this.htmlElement.style.display=this.show?"block":"none",this.htmlElement.style.transform="scale(".concat(this.scalev,")"));var t=document.getElementsByTagName("app-cesium");(t&&t.length>0?t[0]:this.viewer.container).appendChild(this.htmlElement),this.htmlElement.onload=function(t){0===e._height&&(e._height=Number.parseInt(getComputedStyle(e.htmlElement).height),e._width=Number.parseInt(getComputedStyle(e.htmlElement).width)),e._cb=e.viewer.scene.preRender.addEventListener(function(){if(e.gifSwitch&&e.show){var t=Math.ceil(e.viewer.camera.positionCartographic.height);e.distanceDisplay?t&&e.distanceHeight&&(t>e.distanceHeight?e.htmlElement.style.display="none":e.htmlElement.style.display="block"):e.htmlElement.style.display="block"}!1===e.isEditing&&e.ent&&e.setHtmlPosition(e.ent.position._value)})}}},t.prototype.calcuteShape=function(e,t){if(e[0]&&!(e.length<this.minPointNum)){var i=e[0];return this.setHtmlPosition(i),this.setInternalControlPosition(e,t),i}},t.prototype.toEdit=function(){var t=this;this.isEditing=!0,e.prototype.toEdit.call(this),this.ent&&(this.ent.position=new Cesium.CallbackProperty(function(e,i){return t.calcuteShape(t._singleControlPosition,e)},!1))},t.prototype.finish=function(){this.ent&&(this.ent.position=this.calcuteShape(this._singleControlPosition,km.julianDate()),e.prototype.finish.call(this),this.isEditing=!1)},t.prototype.delete=function(){aQ.log("gif delete"),this.htmlElement.style.display="none",this.viewer.container.contains(this.htmlElement)&&this.htmlElement.parentNode.removeChild(this.htmlElement),this.viewer.scene.preRender.removeEventListener(this._cb),e.prototype.delete.call(this)},t.prototype.setHtmlPosition=function(e){var t=this.viewer.scene.cartesianToCanvasCoordinates(e);if(t&&Cesium.defined(t)){var i=Cesium.Ellipsoid.WGS84,n=this.viewer.camera;new Cesium.EllipsoidalOccluder(i,n.position).isPointVisible(e)?(this.htmlElement.style.visibility="visible",this.htmlElement.style.top=t.y-this.width/2+"px",this.htmlElement.style.left=t.x-this.width/2+"px"):this.htmlElement.style.visibility="hidden"}},t.prototype.scale=function(e,t){this.scalable&&(this.scalev=this.changeScaleByMouse(this.scalev,e,t),this.onPropertyChanged())},cQ([rm(),hQ("design:type",Object)],t.prototype,"isEditing",void 0),cQ([rm(),hQ("design:type",Object)],t.prototype,"maxPointNum",void 0),cQ([rm(),hQ("design:type",Object)],t.prototype,"minPointNum",void 0),cQ([rm(),hQ("design:type",Object)],t.prototype,"htmlElement",void 0),cQ([em({name:"图片路径",group:"外观",type:"display",order:8}),hQ("design:type",String),hQ("design:paramtypes",[String])],t.prototype,"imageUrl",null),cQ([em({name:"宽",group:"大小",subGroup:"大小",type:"block",order:3,subOrder:3,min:0,hiddenGroupName:!1}),hQ("design:type",Number),hQ("design:paramtypes",[Number])],t.prototype,"width",null),cQ([em({name:"高",group:"大小",subGroup:"大小",type:"block",order:3,subOrder:4,min:0,hiddenGroupName:!1}),hQ("design:type",Number),hQ("design:paramtypes",[Number])],t.prototype,"height",null),cQ([em({name:"可见性",group:"通用",subOrder:7,type:"boolean",order:2}),hQ("design:type",Boolean),hQ("design:paramtypes",[Boolean])],t.prototype,"show",null),cQ([rm(),hQ("design:type",Number),hQ("design:paramtypes",[Number])],t.prototype,"alpha",null),cQ([em({name:"缩放",group:"外观",type:"zoom",order:8,min:.001,hiddenGroupName:!1}),hQ("design:type",Number),hQ("design:paramtypes",[Number])],t.prototype,"scalev",null),cQ([rm(),hQ("design:type",Object)],t.prototype,"_cb",void 0),t}(qm);const dQ=pQ;Cu.A.registerType(pQ,"EditorHtmlImage","Graph");var fQ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),mQ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},gQ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},yQ=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},_Q=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},AQ=function(e){function t(t,i,n){var r=e.call(this,t,i,n)||this;return r.middleClosed=!1,r.outline=!0,r.hideValues=["interplate","heightReference","allowCrossGround"],r.minPointNum=2,r}return fQ(t,e),t.prototype.setCoordinates=function(e,t){},t.prototype.calcuteShape=function(e,t){var i=e.map(function(e){return km.cartesian2lonlat(e)});this.points=i,this.getPointCount=this.points.length;var n=this.generate().map(function(e){var t=e;return km.lonlat2Cartesian(t)});return n},t.prototype.generate=function(){throw new Error("Method not implemented.")},t.prototype.getPoints=function(){for(var e=[],t=0,i=1;i<this.points.length;i++)if(Math.abs(this.points[i][0])+Math.abs(this.points[i-1][0])>180){this.points[i-1][0]>0&&this.points[i][0]<0?t=1:this.points[i-1][0]<0&&this.points[i][0]>0&&(t=2);break}return 1==t?(this.points.forEach(function(t){var i=_Q([],yQ(t),!1);i[0]<0&&(i[0]=360+i[0]),e.push(i)}),e):2==t?(this.points.forEach(function(t){var i=_Q([],yQ(t),!1);i[0]>0&&(i[0]=i[0]-360),e.push(i)}),e):this.points},mQ([rm(),gQ("design:type",Array)],t.prototype,"points",void 0),mQ([rm(),gQ("design:type",Number)],t.prototype,"getPointCount",void 0),t}(BI);const vQ=Math.PI/2,CQ=(Math.PI,(e,t)=>Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))),bQ=e=>{let t=0;return e&&Array.isArray(e)&&e.length>0&&e.forEach((i,n)=>{n<e.length-1&&(t+=CQ(i,e[n+1]))}),t},wQ=e=>Math.pow(bQ(e),.99),xQ=(e,t)=>[(e[0]+t[0])/2,(e[1]+t[1])/2],SQ=(e,t)=>{let i,n=Math.asin(Math.abs(t[1]-e[1])/CQ(e,t));return t[1]>=e[1]&&t[0]>=e[0]?i=n+Math.PI:t[1]>=e[1]&&t[0]<e[0]?i=2*Math.PI-n:t[1]<e[1]&&t[0]<e[0]?i=n:t[1]<e[1]&&t[0]>=e[0]&&(i=Math.PI-n),i},MQ=(e,t,i)=>{let n=SQ(t,e)-SQ(t,i);return n<0?n+2*Math.PI:n},PQ=(e,t,i)=>(i[1]-e[1])*(t[0]-e[0])>(t[1]-e[1])*(i[0]-e[0]),EQ=(e,t,i,n,r)=>{e=Math.max(Math.min(e,1),0);let[o,s]=[1-e,e*e],a=s*e,l=o*o,u=l*o;return[u*t[0]+3*l*e*i[0]+3*o*s*n[0]+a*r[0],u*t[1]+3*l*e*i[1]+3*o*s*n[1]+a*r[1]]},LQ=(e,t,i,n,r)=>{let o=SQ(e,t),s=r?o+i:o-i,a=n*Math.cos(s),l=n*Math.sin(s);return[t[0]+a,t[1]+l]},TQ=(e,t,i,n)=>{let r=OQ(t,i,n),[o,s,a,l,u]=[null,null,null,null,null],c=Math.sqrt(r[0]*r[0]+r[1]*r[1]),h=r[0]/c,p=r[1]/c,d=CQ(t,i),f=CQ(i,n);return c>1e-4?PQ(t,i,n)?(a=e*d,l=i[0]-a*p,u=i[1]+a*h,o=[l,u],a=e*f,l=i[0]+a*p,u=i[1]-a*h,s=[l,u]):(a=e*d,l=i[0]+a*p,u=i[1]-a*h,o=[l,u],a=e*f,l=i[0]-a*p,u=i[1]+a*h,s=[l,u]):(l=i[0]+e*(t[0]-i[0]),u=i[1]+e*(t[1]-i[1]),o=[l,u],l=i[0]+e*(n[0]-i[0]),u=i[1]+e*(n[1]-i[1]),s=[l,u]),[o,s]},OQ=(e,t,i)=>{let n=e[0]-t[0],r=e[1]-t[1],o=Math.sqrt(n*n+r*r);n/=o,r/=o;let s=i[0]-t[0],a=i[1]-t[1],l=Math.sqrt(s*s+a*a);return s/=l,a/=l,[n+s,r+a]},DQ=function(e){if(e.length<=2)return e;{let t=[],i=e.length-1;for(let n=0;n<=1;n+=.01){let[r,o]=[0,0];for(let t=0;t<=i;t++){let s=IQ(i,t),a=Math.pow(n,t),l=Math.pow(1-n,i-t);r+=s*a*l*e[t][0],o+=s*a*l*e[t][1]}t.push([r,o])}return t.push(e[i]),t}},BQ=e=>{let t=1;switch(e){case e<=1:t=1;break;case 2===e:t=2;break;case 3===e:t=6;break;case 24===e:t=24;break;case 5===e:t=120;break;default:for(let i=1;i<=e;i++)t*=i}return t},IQ=(e,t)=>BQ(e)/(BQ(t)*BQ(e-t)),RQ=e=>{if(e.length<=2)return e;{let[t,i]=[2,[]],n=e.length-t-1;i.push(e[0]);for(let r=0;r<=n;r++)for(let n=0;n<=1;n+=.05){let[o,s]=[0,0];for(let i=0;i<=t;i++){let t=NQ(i,n);o+=t*e[r+i][0],s+=t*e[r+i][1]}i.push([o,s])}return i.push(e[e.length-1]),i}},NQ=(e,t)=>{let i=0;return 0===e?i=Math.pow(t-1,2)/2:1===e?i=(-2*Math.pow(t,2)+2*t+1)/2:2===e&&(i=Math.pow(t,2)/2),i};var kQ=__webpack_require__(6763),FQ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),HQ=function(){return HQ=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},HQ.apply(this,arguments)},YQ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},jQ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},UQ=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},GQ=function(e){function t(t,i,n){var r=e.call(this,t,i,HQ({},n))||this;if(r.type="双箭头",r.headHeightFactor=.25,r.headWidthFactor=.3,r.neckHeightFactor=.85,r.neckWidthFactor=.15,r.connPoint=null,r.fixPointCount=4,r.maxPointNum=4,r.minPointNum=3,n&&n.properties)for(var o in n.properties)n.properties[o]&&(r[o]=n.properties[o]);return r}return FQ(t,e),t.prototype.getPlotType=function(){return this.type},t.prototype.generate=function(){try{var e=this.getPointCount;if(e<2)return this.points;if(2===e)return this.points;var t=this.getPoints();if(e>2){var i=UQ([t[0],t[1],t[2]],3),n=i[0],r=i[1],o=i[2];3===e?(this.tempPoint4=this.getTempPoint4(n,r,o),this.connPoint=xQ(n,r)):4===e?(this.tempPoint4=t[3],this.connPoint=xQ(n,r)):(this.tempPoint4=t[3],this.connPoint=t[4]);var s=UQ([void 0,void 0],2),a=s[0],l=s[1];PQ(n,r,o)?(a=this.getArrowPoints(n,this.connPoint,this.tempPoint4,!1),l=this.getArrowPoints(this.connPoint,r,o,!0)):(a=this.getArrowPoints(r,this.connPoint,o,!1),l=this.getArrowPoints(this.connPoint,n,this.tempPoint4,!0));var u=a.length,c=(u-5)/2,h=a.slice(0,c),p=a.slice(c,c+5),d=a.slice(c+5,u),f=l.slice(0,c),m=l.slice(c,c+5),g=l.slice(c+5,u);f=DQ(f);var y=DQ(g.concat(h.slice(1)));return d=DQ(d),f.concat(m,y,p,d)}}catch(e){kQ.log(e)}},t.prototype.getArrowPoints=function(e,t,i,n){var r=xQ(e,t),o=CQ(r,i),s=LQ(i,r,0,.3*o,!0),a=LQ(i,r,0,.5*o,!0),l=[r,s=LQ(r,s,vQ,o/5,n),a=LQ(r,a,vQ,o/4,n),i],u=this.getArrowHeadPoints(l);if(!(u&&Array.isArray(u)&&u.length>0))throw new Error("插值出错");var c=UQ([u[0],u[4]],2),h=c[0],p=c[1],d=CQ(e,t)/wQ(l)/2,f=this.getArrowBodyPoints(l,h,p,d);if(f){var m=f.length,g=f.slice(0,m/2),y=f.slice(m/2,m);return g.push(h),y.push(p),(g=g.reverse()).push(t),(y=y.reverse()).push(e),g.reverse().concat(u,y)}},t.prototype.getArrowHeadPoints=function(e){try{var t=wQ(e)*this.headHeightFactor,i=e[e.length-1],n=t*this.headWidthFactor,r=t*this.neckWidthFactor,o=t*this.neckHeightFactor,s=LQ(e[e.length-2],i,0,t,!0),a=LQ(e[e.length-2],i,0,o,!0),l=LQ(i,s,vQ,n,!1),u=LQ(i,s,vQ,n,!0);return[LQ(i,a,vQ,r,!1),l,i,u,LQ(i,a,vQ,r,!0)]}catch(e){kQ.log(e)}},t.prototype.getArrowBodyPoints=function(e,t,i,n){for(var r=bQ(e),o=wQ(e)*n,s=(o-CQ(t,i))/2,a=UQ([0,[],[]],3),l=a[0],u=a[1],c=a[2],h=1;h<e.length-1;h++){var p=MQ(e[h-1],e[h],e[h+1])/2,d=(o/2-(l+=CQ(e[h-1],e[h]))/r*s)/Math.sin(p),f=LQ(e[h-1],e[h],Math.PI-p,d,!0),m=LQ(e[h-1],e[h],p,d,!1);u.push(f),c.push(m)}return u.concat(c)},t.prototype.getTempPoint4=function(e,t,i){try{var n=xQ(e,t),r=CQ(n,i),o=MQ(e,n,i),s=UQ([void 0,void 0,void 0,void 0],4),a=s[0],l=s[1],u=s[2],c=s[3];return o<vQ?(l=r*Math.sin(o),u=r*Math.cos(o),c=LQ(e,n,vQ,l,!1),a=LQ(n,c,vQ,u,!0)):o>=vQ&&o<Math.PI?(l=r*Math.sin(Math.PI-o),u=r*Math.cos(Math.PI-o),c=LQ(e,n,vQ,l,!1),a=LQ(n,c,vQ,u,!1)):o>=Math.PI&&o<1.5*Math.PI?(l=r*Math.sin(o-Math.PI),u=r*Math.cos(o-Math.PI),c=LQ(e,n,vQ,l,!0),a=LQ(n,c,vQ,u,!0)):(l=r*Math.sin(2*Math.PI-o),u=r*Math.cos(2*Math.PI-o),c=LQ(e,n,vQ,l,!0),a=LQ(n,c,vQ,u,!1)),a}catch(e){kQ.log(e)}},t.prototype.isPlot=function(){return!0},t.prototype.setPoints=function(e){this.points=e||[],this.points.length>=1&&this.generate()},t.prototype.updatePoint=function(e,t){t>=0&&t<this.points.length&&(this.points[t]=e,this.generate())},t.prototype.updateLastPoint=function(e){this.updatePoint(e,this.points.length-1)},t.prototype.finishDrawing=function(){3===this.getPointCount&&null!==this.tempPoint4&&this.points.push(this.tempPoint4),null!==this.connPoint&&this.points.push(this.connPoint)},YQ([rm(),jQ("design:type",Object)],t.prototype,"tempPoint4",void 0),YQ([rm(),jQ("design:type",Object)],t.prototype,"connPoint",void 0),YQ([rm(),jQ("design:type",Object)],t.prototype,"headHeightFactor",void 0),YQ([rm(),jQ("design:type",Number)],t.prototype,"headWidthFactor",void 0),YQ([rm(),jQ("design:type",Number)],t.prototype,"fixPointCount",void 0),YQ([rm(),jQ("design:type",Number)],t.prototype,"neckHeightFactor",void 0),YQ([rm(),jQ("design:type",Number)],t.prototype,"neckWidthFactor",void 0),t}(AQ);Cu.A.registerType(GQ,"EditorDoubleArrow","Graph");var QQ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),zQ=function(){return zQ=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},zQ.apply(this,arguments)},WQ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},XQ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},VQ=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},JQ=function(e){function t(t,i,n){var r=e.call(this,t,i,zQ({},n))||this;if(r.type="集结地",r.t=.4,r.fixPointCount=3,r.maxPointNum=3,n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return QQ(t,e),t.prototype.generate=function(){var e=this.getPoints(),t=this.getPointCount;if(e.length<2)return!1;if(2===t){var i=xQ(e[0],e[1]),n=CQ(e[0],i)/.9,r=LQ(e[0],i,vQ,n,!0);e=[e[0],r,e[1]]}var o=xQ(e[0],e[2]);e.push(o,e[0],e[1]);for(var s=VQ([[],void 0,void 0,void 0,[]],5),a=s[0],l=s[1],u=s[2],c=s[3],h=s[4],p=0;p<e.length-2;p++){l=e[p],u=e[p+1],c=e[p+2];var d=TQ(this.t,l,u,c);a=a.concat(d)}var f=a.length;a=[a[f-1]].concat(a.slice(0,f-1));for(p=0;p<e.length-2;p++){l=e[p],u=e[p+1],h.push(l);for(var m=0;m<=100;m++){r=EQ(m/100,l,a[2*p],a[2*p+1],u);h.push(r)}h.push(u)}return h},WQ([rm(),XQ("design:type",Number)],t.prototype,"t",void 0),WQ([rm(),XQ("design:type",Number)],t.prototype,"fixPointCount",void 0),t}(AQ);Cu.A.registerType(JQ,"EditorGatheringPlace","Graph");var KQ=__webpack_require__(6763),ZQ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),qQ=function(){return qQ=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},qQ.apply(this,arguments)},$Q=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},ez=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},tz=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},iz=function(e){function t(t,i,n){var r=e.call(this,t,i,qQ({},n))||this;if(r.type="进攻方向",r.headHeightFactor=.18,r.headWidthFactor=.3,r.neckHeightFactor=.85,r.neckWidthFactor=.15,r.headTailFactor=.8,r.minPointNum=3,n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return ZQ(t,e),t.prototype.generate=function(){try{var e=this.getPointCount;if(e<2)return!1;if(2===e)return this.points;var t=this.getPoints(),i=tz([t[0],t[1]],2),n=i[0],r=i[1];PQ(t[0],t[1],t[2])&&(n=t[1],r=t[0]);var o=[xQ(n,r)].concat(t.slice(2)),s=this.getArrowHeadPoints(o,n,r),a=tz([s[0],s[4]],2),l=a[0],u=a[1],c=CQ(n,r)/wQ(o),h=this.getArrowBodyPoints(o,l,u,c),p=h.length,d=[n].concat(h.slice(0,p/2));d.push(l);var f=[r].concat(h.slice(p/2,p));return f.push(u),d=RQ(d),f=RQ(f),d.concat(s,f.reverse())}catch(e){KQ.log(e)}},t.prototype.getArrowPoints=function(e,t,i,n){var r=xQ(e,t),o=CQ(r,i),s=LQ(i,r,0,.3*o,!0),a=LQ(i,r,0,.5*o,!0),l=[r,s=LQ(r,s,vQ,o/5,n),a=LQ(r,a,vQ,o/4,n),i],u=this.getArrowHeadPoints(l);if(!(u&&Array.isArray(u)&&u.length>0))throw new Error("插值出错");var c=tz([u[0],u[4]],2),h=c[0],p=c[1],d=CQ(e,t)/wQ(l)/2,f=this.getArrowBodyPoints(l,h,p,d);if(f){var m=f.length,g=f.slice(0,m/2),y=f.slice(m/2,m);return g.push(h),y.push(p),(g=g.reverse()).push(t),(y=y.reverse()).push(e),g.reverse().concat(u,y)}},t.prototype.getArrowHeadPoints=function(e,t,i){try{var n=wQ(e),r=n*this.headHeightFactor,o=e[e.length-1];n=CQ(o,e[e.length-2]);var s=CQ(t,i);r>s*this.headTailFactor&&(r=s*this.headTailFactor);var a=r*this.headWidthFactor,l=r*this.neckWidthFactor,u=(r=r>n?n:r)*this.neckHeightFactor,c=LQ(e[e.length-2],o,0,r,!0),h=LQ(e[e.length-2],o,0,u,!0),p=LQ(o,c,vQ,a,!1),d=LQ(o,c,vQ,a,!0);return[LQ(o,h,vQ,l,!1),p,o,d,LQ(o,h,vQ,l,!0)]}catch(e){KQ.log(e)}},t.prototype.getArrowBodyPoints=function(e,t,i,n){for(var r=bQ(e),o=wQ(e)*n,s=(o-CQ(t,i))/2,a=tz([0,[],[]],3),l=a[0],u=a[1],c=a[2],h=1;h<e.length-1;h++){var p=MQ(e[h-1],e[h],e[h+1])/2,d=(o/2-(l+=CQ(e[h-1],e[h]))/r*s)/Math.sin(p),f=LQ(e[h-1],e[h],Math.PI-p,d,!0),m=LQ(e[h-1],e[h],p,d,!1);u.push(f),c.push(m)}return u.concat(c)},t.prototype.getTempPoint4=function(e,t,i){try{var n=xQ(e,t),r=CQ(n,i),o=MQ(e,n,i),s=tz([void 0,void 0,void 0,void 0],4),a=s[0],l=s[1],u=s[2],c=s[3];return o<vQ?(l=r*Math.sin(o),u=r*Math.cos(o),c=LQ(e,n,vQ,l,!1),a=LQ(n,c,vQ,u,!0)):o>=vQ&&o<Math.PI?(l=r*Math.sin(Math.PI-o),u=r*Math.cos(Math.PI-o),c=LQ(e,n,vQ,l,!1),a=LQ(n,c,vQ,u,!1)):o>=Math.PI&&o<1.5*Math.PI?(l=r*Math.sin(o-Math.PI),u=r*Math.cos(o-Math.PI),c=LQ(e,n,vQ,l,!0),a=LQ(n,c,vQ,u,!0)):(l=r*Math.sin(2*Math.PI-o),u=r*Math.cos(2*Math.PI-o),c=LQ(e,n,vQ,l,!0),a=LQ(n,c,vQ,u,!1)),a}catch(e){KQ.log(e)}},$Q([rm(),ez("design:type",Number)],t.prototype,"headHeightFactor",void 0),$Q([rm(),ez("design:type",Number)],t.prototype,"headWidthFactor",void 0),$Q([rm(),ez("design:type",Number)],t.prototype,"neckHeightFactor",void 0),$Q([rm(),ez("design:type",Number)],t.prototype,"neckWidthFactor",void 0),$Q([rm(),ez("design:type",Number)],t.prototype,"tailWidthFactor",void 0),$Q([rm(),ez("design:type",Number)],t.prototype,"headTailFactor",void 0),$Q([rm(),ez("design:type",Number)],t.prototype,"swallowTailFactor",void 0),$Q([rm(),ez("design:type",Object)],t.prototype,"swallowTailPnt",void 0),t}(AQ);Cu.A.registerType(iz,"EditorAttackArrow","Graph");var nz=__webpack_require__(6763),rz=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),oz=function(){return oz=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},oz.apply(this,arguments)},sz=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},az=function(e){function t(t,i,n){var r=e.call(this,t,i,oz({},n))||this;if(r.type="进攻方向(尾)",r.headHeightFactor=.18,r.headWidthFactor=.3,r.neckHeightFactor=.85,r.neckWidthFactor=.15,r.tailWidthFactor=.1,r.headTailFactor=.8,r.swallowTailFactor=1,r.swallowTailPnt=null,n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return rz(t,e),t.prototype.generate=function(){try{var e=this.getPointCount;if(e<2)return!1;if(2===e)return this.points;var t=this.getPoints(),i=sz([t[0],t[1]],2),n=i[0],r=i[1];PQ(t[0],t[1],t[2])&&(n=t[1],r=t[0]);var o=[xQ(n,r)].concat(t.slice(2)),s=this.getArrowHeadPoints(o,n,r),a=sz([s[0],s[4]],2),l=a[0],u=a[1],c=CQ(n,r),h=wQ(o),p=h*this.tailWidthFactor*this.swallowTailFactor;this.swallowTailPnt=LQ(o[1],o[0],0,p,!0);var d=c/h,f=this.getArrowBodyPoints(o,l,u,d),m=f.length,g=[n].concat(f.slice(0,m/2));g.push(l);var y=[r].concat(f.slice(m/2,m));return y.push(u),g=RQ(g),y=RQ(y),g.concat(s,y.reverse(),[this.swallowTailPnt,g[0]])}catch(e){nz.log(e)}},t}(iz);Cu.A.registerType(az,"EditorTailedAttackArrow","Graph");var lz=__webpack_require__(6763),uz=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),cz=function(){return cz=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},cz.apply(this,arguments)},hz=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},pz=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},dz=function(e){function t(t,i,n){var r=e.call(this,t,i,cz({},n))||this;if(r.type="分队战斗行动(尾)",r.headHeightFactor=.18,r.headWidthFactor=.3,r.neckHeightFactor=.85,r.neckWidthFactor=.15,r.tailWidthFactor=.1,r.swallowTailFactor=1,r.swallowTailPnt=null,r.minPointNum=2,n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return uz(t,e),t.prototype.generate=function(){try{if(this.getPointCount<2)return!1;var e=this.getPoints(),t=this.getTailPoints(e),i=this.getArrowHeadPoints(e,t[0],t[2]),n=i[0],r=i[4],o=this.getArrowBodyPoints(e,n,r,this.tailWidthFactor),s=o.length,a=[t[0]].concat(o.slice(0,s/2));a.push(n);var l=[t[2]].concat(o.slice(s/2,s));return l.push(r),a=RQ(a),l=RQ(l),a.concat(i,l.reverse(),[t[1],a[0]])}catch(e){lz.log(e)}},t.prototype.getTailPoints=function(e){var t=wQ(e)*this.tailWidthFactor,i=LQ(e[1],e[0],vQ,t,!1),n=LQ(e[1],e[0],vQ,t,!0),r=t*this.swallowTailFactor;return[i,LQ(e[1],e[0],0,r,!0),n]},hz([rm(),pz("design:type",Number)],t.prototype,"fixPointCount",void 0),t}(iz);Cu.A.registerType(dz,"EditorTailedSquadCombat","Graph");var fz=__webpack_require__(6763),mz=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),gz=function(){return gz=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},gz.apply(this,arguments)},yz=function(e){function t(t,i,n){var r=e.call(this,t,i,gz({},n))||this;if(r.type="分队战斗行动",r.headHeightFactor=.18,r.headWidthFactor=.3,r.neckHeightFactor=.85,r.neckWidthFactor=.15,r.tailWidthFactor=.1,r.minPointNum=2,n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return mz(t,e),t.prototype.generate=function(){try{if(this.getPointCount<2)return!1;var e=this.getPoints(),t=this.getTailPoints(e),i=this.getArrowHeadPoints(e,t[0],t[1]),n=i[0],r=i[4],o=this.getArrowBodyPoints(e,n,r,this.tailWidthFactor),s=o.length,a=[t[0]].concat(o.slice(0,s/2));a.push(n);var l=[t[1]].concat(o.slice(s/2,s));return l.push(r),a=RQ(a),l=RQ(l),a.concat(i,l.reverse())}catch(e){fz.log(e)}},t.prototype.getTailPoints=function(e){var t=wQ(e)*this.tailWidthFactor;return[LQ(e[1],e[0],vQ,t,!1),LQ(e[1],e[0],vQ,t,!0)]},t}(iz);Cu.A.registerType(yz,"EditorSquadCombat","Graph");var _z=__webpack_require__(6763),Az=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),vz=function(){return vz=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},vz.apply(this,arguments)},Cz=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},bz=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},wz=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},xz=function(e){function t(t,i,n){var r=e.call(this,t,i,vz({},n))||this;if(r.type="粗单尖头箭头",r.tailWidthFactor=.1,r.neckWidthFactor=.2,r.headWidthFactor=.25,r.headAngle=Math.PI/8.5,r.neckAngle=Math.PI/13,r.fixPointCount=2,r.maxPointNum=2,r.minPointNum=2,n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return Az(t,e),t.prototype.generate=function(){try{if(this.getPointCount<2)return!1;var e=this.getPoints(),t=wz([e[0],e[1]],2),i=t[0],n=t[1],r=wQ(e),o=r*this.tailWidthFactor,s=r*this.neckWidthFactor,a=r*this.headWidthFactor,l=LQ(n,i,vQ,o,!0),u=LQ(n,i,vQ,o,!1),c=LQ(i,n,this.headAngle,a,!1),h=LQ(i,n,this.headAngle,a,!0);return[l,LQ(i,n,this.neckAngle,s,!1),c,n,h,LQ(i,n,this.neckAngle,s,!0),u]}catch(e){_z.log(e)}},Cz([rm(),bz("design:type",Number)],t.prototype,"headAngle",void 0),Cz([rm(),bz("design:type",Number)],t.prototype,"neckAngle",void 0),Cz([rm(),bz("design:type",Number)],t.prototype,"fixPointCount",void 0),t}(iz);Cu.A.registerType(xz,"EditorFineArrow","Graph");var Sz=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Mz=function(){return Mz=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Mz.apply(this,arguments)},Pz=function(e){function t(t,i,n){var r=e.call(this,t,i,Mz({},n))||this;if(r.type="粗单直箭头",r.tailWidthFactor=.05,r.neckWidthFactor=.1,r.headWidthFactor=.15,r.headAngle=Math.PI/4,r.neckAngle=.17741*Math.PI,n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return Sz(t,e),t}(xz);Cu.A.registerType(Pz,"EditorAssaultDirection","Graph");var Ez=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Lz=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},Tz=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Oz=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},Dz=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},Bz=function(e){function t(t,i,n){var r=e.call(this,t,i,n)||this;return r.middleClosed=!1,r}return Ez(t,e),t.prototype.setCoordinates=function(e,t){},t.prototype.calcuteShape=function(e,t){var i=e.map(function(e){return km.cartesian2lonlat(e)});this.points=i,this.getPointCount=this.points.length;var n=this.generate();n||(n=[]);var r=n.map(function(e){var t=e;return km.lonlat2Cartesian(t)});return r},t.prototype.generate=function(){throw new Error("Method not implemented.")},t.prototype.getPoints=function(){for(var e=[],t=0,i=1;i<this.points.length;i++)if(Math.abs(this.points[i][0])+Math.abs(this.points[i-1][0])>180){this.points[i-1][0]>0&&this.points[i][0]<0?t=1:this.points[i-1][0]<0&&this.points[i][0]>0&&(t=2);break}return 1==t?(this.points.forEach(function(t){var i=Dz([],Oz(t),!1);i[0]<0&&(i[0]=360+i[0]),e.push(i)}),e):2==t?(this.points.forEach(function(t){var i=Dz([],Oz(t),!1);i[0]>0&&(i[0]=i[0]-360),e.push(i)}),e):this.points},Lz([rm(),Tz("design:type",Array)],t.prototype,"points",void 0),Lz([rm(),Tz("design:type",Number)],t.prototype,"getPointCount",void 0),t}(eF),Iz=__webpack_require__(6763),Rz=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Nz=function(){return Nz=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Nz.apply(this,arguments)},kz=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},Fz=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Hz=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},Yz=function(e){function t(t,i,n){var r=e.call(this,t,i,Nz({},n))||this;if(r.type="细直箭头",r.maxPointNum=2,r.maxArrowLength=3e6,r.arrowLengthScale=5,Object.defineProperty(r,"moveHeight",{configurable:!0,enumerable:!0,get:function(){}}),n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return Rz(t,e),t.prototype.generate=function(){try{if(this.getPointCount<2)return!1;var e=this.getPoints(),t=Hz([e[0],e[1]],2),i=t[0],n=t[1],r=CQ(i,n);if(r<=0)return;var o=r/this.arrowLengthScale;return o=o>this.maxArrowLength?this.maxArrowLength:o,[i,n,LQ(i,n,Math.PI/6,o,!1),n,LQ(i,n,Math.PI/6,o,!0)]}catch(e){Iz.log(e)}},kz([rm(),Fz("design:type",Number)],t.prototype,"maxArrowLength",void 0),kz([rm(),Fz("design:type",Number)],t.prototype,"arrowLengthScale",void 0),t}(Bz);Cu.A.registerType(Yz,"EditorStraightLineArrow","Graph");var jz=__webpack_require__(6454);function Uz(e,t){return void 0===t&&(t=cr),jn(function(i,n){var r=null,o=null,s=null,a=function(){if(r){r.unsubscribe(),r=null;var e=o;o=null,n.next(e)}};function l(){var i=s+e,o=t.now();if(o<i)return r=this.schedule(void 0,i-o),void n.add(r);a()}i.subscribe(Un(n,function(i){o=i,s=t.now(),r||(r=t.schedule(l,e),n.add(r))},function(){a(),n.complete()},void 0,function(){o=r=null}))})}var Gz=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Qz=function(){return Qz=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Qz.apply(this,arguments)},zz=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},Wz=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Xz=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())})},Vz=function(e,t){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},Jz=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Kz=(__webpack_require__(1434),function(e){function t(t,i,n){var r=e.call(this,t,i,Qz({type:"路径规划线"},n))||this;if(r.recalculate$=new am,r.needRedraw=!1,r.routers=[],r.type="路径规划线",r.minPointNum=2,r.maxPointNum=2,r.recalculate$.pipe(Uz(500)).subscribe(function(e){r.calculate()}),n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return Gz(t,e),t.prototype.setPrimitivePosition=function(t){var i,n;t[0]||(t=t.slice(1)),t=t.filter(function(e){return e});var r=[],o=function(e){0==r.filter(function(t){return Cesium.Cartesian3.equals(t,e)}).length&&r.push(e)};try{for(var s=Jz(t),a=s.next();!a.done;a=s.next()){o(a.value)}}catch(e){i={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}0!=(t=r).length&&(this.last_pos=null,e.prototype.createEnt.call(this,t))},t.prototype.finish=function(){e.prototype.finish.call(this),this.recalculate$&&this.recalculate$.next(!0)},t.prototype.resetControlPosition=function(t){e.prototype.resetControlPosition.call(this,t),this.recalculate$&&this.recalculate$.next(!0)},t.prototype.calcuteShape=function(t,i){if(!this.routers||this.routers.length<2)return e.prototype.calcuteShape.call(this,t,i);t=this.routers,this.setInternalControlPosition(this._singleControlPosition,i);for(var n=[],r=[0],o=[],s=0,a=0;a<t.length-1;a++){var l=Cesium.Cartesian3.distance(t[a],t[a+1]);o.push(l),s+=l}for(var u=0;u<o.length;u++)r.push(o[u]/s+r[u]);if(this.interplate){n=[],this.interopLine=Cesium.HermiteSpline.createNaturalCubic({times:r,points:t});for(var c=10*t.length,h=0;h<=c;h++){var p=this.interopLine.evaluate(h/c);n.push(p)}}else this.interopLine=new Cesium.LinearSpline({times:r,points:t});return t},t.prototype.calculate=function(){return Xz(this,void 0,void 0,function(){var e,t,i,n,r,o,s,a,l,u,c,h,p,d,f,m,g;return Vz(this,function(y){switch(y.label){case 0:return this.ctrlPosition.length<2?[2]:(e=this.ctrlPosition[0],t=this.ctrlPosition[this.ctrlPosition.length-1],i='https://api.tianditu.gov.cn/drive?postStr={"orig":"'.concat(e.lon,",").concat(e.lat,'","dest":"').concat(t.lon,",").concat(t.lat,'","style":"0"}&type=search&tk=491891e3aa43f2e0d8530ff44e831952'),[4,fetch(i)]);case 1:return[4,y.sent().text()];case 2:if(n=y.sent(),r=new jz.XMLParser,o=r.parse(n),null!=(s=o.result.routelatlon)){a=s.split(";"),l=[];try{for(u=Jz(a),c=u.next();!c.done;c=u.next())h=c.value,2==(p=h.split(",")).length&&(d=[Number.parseFloat(p[0]),Number.parseFloat(p[1])],f=km.lonlat2Cartesian([d[0],d[1]]),l.push(f))}catch(e){m={error:e}}finally{try{c&&!c.done&&(g=u.return)&&g.call(u)}finally{if(m)throw m.error}}return this.routers=l,this.setPrimitivePosition(this.routers),[2]}return[2]}})})},zz([rm(),Wz("design:type",am)],t.prototype,"recalculate$",void 0),zz([rm(),Wz("design:type",Boolean)],t.prototype,"needRedraw",void 0),t}(eF));const Zz=Kz;Cu.A.registerType(Kz,"EditorRoutePolyline","Graph");var qz=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),$z=function(){return $z=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},$z.apply(this,arguments)},eW=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},tW=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},iW=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},nW=function(e){function t(t,i,n){var r=e.call(this,t,i,$z({},n))||this;if(r.minPointNum=2,r.type="立体线-墙",r.color="#00FF00",r.alpha=.8,r.moveHeight=null,n&&n.properties)for(var o in n.properties)r[o]=n.properties[o];return r}return qz(t,e),Object.defineProperty(t.prototype,"lineHeight",{get:function(){return this._lineHeight},set:function(e){this._lineHeight=e,this.redraw()},enumerable:!1,configurable:!0}),t.prototype.internalmoveHeight=function(e,t){var i,n,r=this.getCenter(),o=km.getHeightByCartesian3(r,this.viewer),s=this.ChangeLengthByMouse(o,t.y-e.y,1),a=[];try{for(var l=iW(this._singleControlPosition),u=l.next();!u.done;u=l.next()){var c=u.value,h=km.getHeightByCartesian3(c,this.viewer)-o+s;h<0&&(h=0),a.push(km.getHeightdefineByXYZ(c,h,this.viewer))}}catch(e){i={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}this._singleControlPosition=a,this.onPropertyChanged()},t.prototype.initProps=function(e){},t.prototype.initShape=function(){var e=this;this.positionProperty=function(){var t=e._singleControlPosition;t&&e.setPrimitivePosition(t)},this.ent={},this.createEnt([]),this.fillShape(this.ent)},t.prototype.createEnt=function(e){if(!jf.Cartesian3ArrayEqual(this.last_pos,e)&&(this.last_pos=e,e&&!(e.length<=1))){this.p&&this.viewer.scene.primitives.remove(this.p);var t=Cesium.WallGeometry.fromConstantHeights({positions:e,minimumHeight:0,maximumHeight:this.lineHeight}),i=Cesium.WallGeometry.createGeometry(t),n=new Cesium.GeometryInstance({geometry:i,id:this.id}),r=Cesium.Material.fromType("Color");this.setColor(r),this.p=new Cesium.Primitive({geometryInstances:n,appearance:new Cesium.MaterialAppearance({material:r}),vertexCacheOptimize:!0,interleave:!1,compressVertices:!0,releaseGeometryInstances:!0,asynchronous:!1,allowPicking:!0,show:!0}),this.viewer.scene.primitives.add(this.p),this.fillShape(this.p),this.ent=this.p}},t.prototype.calcuteShape=function(e,t){if(e.length<this.minPointNum)return[];return this.setInternalControlPosition(e,t),e},t.prototype.setPrimitivePosition=function(e){e[0]||(e=e.slice(1)),this.setInternalControlPosition(e),this.createEnt(e)},t.prototype.flashPrimitive=function(){this.p.show=!this.p.show},t.prototype.toGeoJsonGeometry=function(){var e,t,i={type:"LineString",coordinates:[]};try{for(var n=iW(this.ctrlPosition),r=n.next();!r.done;r=n.next()){var o=r.value;i.coordinates.push([o.lon,o.lat,o.alt])}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return i},t.prototype.redraw=function(){this.last_pos=null,this.createEnt(this._singleControlPosition)},eW([rm(),tW("design:type",Object)],t.prototype,"last_pos",void 0),eW([rm(),em({name:"线高度",group:"外观",type:"number",order:8,min:1,max:1e5}),tW("design:type",Number),tW("design:paramtypes",[Number])],t.prototype,"lineHeight",null),eW([rm(),tW("design:type",Function),tW("design:paramtypes",[Cesium.Cartesian2,Cesium.Cartesian2]),tW("design:returntype",void 0)],t.prototype,"internalmoveHeight",null),t}(hI);const rW=nW;Cu.A.registerType(nW,"EditorGeometryWall","Graph");var oW=__webpack_require__(6763),sW=function(){return sW=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},sW.apply(this,arguments)},aW=function(){function e(){}return e.createObj0=function(t,i,n,r){var o;if(t.gvolType||t.obj&&(t=JSON.parse(JSON.stringify(t).replace(/obj/g,"gvolType"))),t.isCustom){if(t.gvolType)var s=Cu.A.typesMap[t.gvolType];if(!s)return void oW.warn("无效的标绘类型,请认真阅读接口指南");o=new s(i,n,t)}else switch(t.gvolType&&(t.gvolType=t.gvolType.replace("Editor","")),t.properties||(t.properties=sW({},t)),t.gvolType){case"RedFlag":o=new $N(i,n,t);break;case"Image":o=new JN(i,n,t);break;case"HtmlImage":o=new dQ(i,n,t);break;case"Point":o=new ok(i,n,t);break;case"Model":o=new mR(i,n,t);break;case"PinText":o=new mk(i,n,t);break;case"PinMakiIcon":case"PinIcon":o=new vk(i,n,t);break;case"PinImage":o=new xR(i,n,t);break;case"PinCanvas":o=new Mk(i,n,t);break;case"Polygon":o=new BI(i,n,t);break;case"Arrow1":o=new Tk(i,n,t);break;case"Circle":o=new GI(i,n,t);break;case"Ellipse":o=new Ik(i,n,t);break;case"Rectangle":o=new yI(i,n,t);break;case"RectangleExpand":o=new HI(i,n,t);break;case"Frustum":o=new Uk(i,n,t);break;case"Text":o=new nH(i,n,t);break;case"Video":o=new FY(i,n,t);break;case"Polyline":o=new eF(i,n,t);break;case"Bezier1":o=new uF(i,n,t);break;case"Bezier2":o=new dF(i,n,t);break;case"BezierN":o=new oF(i,n,t);break;case"BezierSpline":o=new _F(i,n,t);break;case"Curve":o=new bF(i,n,t);break;case"CircleArc":o=new MF(i,n,t);break;case"PointLine":o=new DF(i,n,t);break;case"PointSpline":o=new ZF(i,n,t);break;case"JBLine":o=new lH(i,n,t);break;case"JBPointObject":o=new gH(i,n,t,r);break;case"JBPointScreen":o=new PH(i,n,t,r);break;case"Radar":o=new FH(i,n,t);break;case"CommunicateWave":o=new $H(i,n,t);break;case"Particle":o=new LR(i,n,t);break;case"Cloud":o=new lY(i,n,t);break;case"GeometryPolygon":o=new WY(i,n,t);break;case"GeometryPolyline":o=new sj(i,n,t);break;case"GeometryWall":o=new rW(i,n,t);break;case"GeometryMultiPolygon":o=new _j(i,n,t);break;case"GeometryMultiPolyline":o=new Sj(i,n,t);break;case"GeojsonMultiPolygon":o=new eU(i,n,t);break;case"GeojsonMultiPolyline":o=new fU(i,n,t);break;case"GeojsonPolygon":o=new CU(i,n,t);break;case"GeojsonPolyline":o=new EU(i,n,t);break;case"CubeBox":o=new rR(i,n,t);break;case"Ellipsoid":o=new fY(i,n,t);break;case"Cylinder":o=new CY(i,n,t);break;case"PlaneText":o=new sQ(i,n,t);break;case"Sector":o=new PY(i,n,t);break;case"PointArc":o=new BY(i,n,t);break;case"JB":o=e.createJb(i,n,t);break;case"RouteText":o=new HF(i,n,t);break;case"AreaText":o=new XF(i,n,t);break;case"DoubleArrow":o=new GQ(i,n,t);break;case"GatheringPlace":o=new JQ(i,n,t);break;case"AttackArrow":o=new iz(i,n,t);break;case"TailedAttackArrow":o=new az(i,n,t);break;case"SquadCombat":o=new yz(i,n,t);break;case"TailedSquadCombat":o=new dz(i,n,t);break;case"AssaultDirection":o=new Pz(i,n,t);break;case"FineArrow":o=new xz(i,n,t);break;case"StraightLineArrow":o=new Yz(i,n,t);break;case"RoutePolyline":o=new Zz(i,n,t);break;default:return void oW.warn("无效的标绘类型,请认真阅读接口指南")}for(var a in t)o[a]=t[a];return o instanceof hI?o.initCtls(!1):o.initCtls(),o.initShape(),o},e.createJb=function(e,t,i){var n=e.code;return n?n.includes("-0")?"object"==e.showMode?new gH(e,t,i):new PH(e,t,i):new lH(e,t,i):(oW.log("missing jbcode param"),null)},e}(),lW=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),uW=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},cW=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},hW=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())})},pW=function(e,t){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},dW=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},fW=__webpack_require__(6380),mW=function(e){function t(i,n,r){var o=e.call(this)||this;return o._isChanged=!1,o.graphList=[],o._graphicList=[],o.treeList=[],"undefined"==typeof window||(o.cesService=r,window.gm=o,o.sg=qf.getInstance(),o.config=n,o.engine=i,o.serviceManager=i.serviceManager,o.viewer=i.viewer,o._animationManager=new HN(o.viewer),o.layer=null,o.editor=new kR(o.engine,o.config.editAfterCreate,o.config.isReadOnly,o.config.operatorEnable,o.layer),o.editor.onExport=function(e){var t=o.classToPlain(e),i=JSON.stringify(t),n=new Blob([i],{type:"text/json"}),r=document.createElement("a");r.download=e.name+".json",r.href=window.URL.createObjectURL(n),r.click()},t.baseJbUrl=n.baseJbUrl),o}return lW(t,e),Object.defineProperty(t,"svgCache",{get:function(){return t._svgCache||(t._svgCache=new Map),t._svgCache},enumerable:!1,configurable:!0}),t.getPng=function(e){return fW.algorithm.getPng(e)},t.getJbData=function(e){return t.baseJbUrl+e},Object.defineProperty(t.prototype,"isChanged",{get:function(){return this._isChanged||null!=this.graphList.find(function(e){return 1==e.graph.isChanged})},enumerable:!1,configurable:!0}),t.prototype.resetChanged=function(){var e,t;this._isChanged=!1;try{for(var i=dW(this.graphList),n=i.next();!n.done;n=i.next()){n.value.graph.isChanged=!1}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},Object.defineProperty(t.prototype,"graphicList",{get:function(){var e=this;return this._graphicList=[],this.graphList.forEach(function(t){e._graphicList.push(t.graph)}),this._graphicList},enumerable:!1,configurable:!0}),t.prototype.showUnClusteredPoint=function(){if(this.sg.gxCluster._customDataSource.clustering._billboardCollection){var e=this.sg.gxCluster._customDataSource.clustering._billboardCollection._billboards.filter(function(e){return e._clusterShow}).map(function(e){return e.id.id}),t=this.graphList.filter(function(t){return e.includes(t.graph.clusterPoint.id)});t.forEach(function(e){return e.graph.props.show.value=!0})}},Object.defineProperty(t.prototype,"animationManager",{get:function(){return this._animationManager},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.editor.start()},t.prototype.destroyHandler=function(){this.editor&&this.editor.destroyHandler()},t.prototype.create=function(e){var t=this.createObj(e);return t?(t.graphList=this.graphList,this.editor.create(t)):null},t.prototype.pickOrCreate=function(){},t.prototype.removeDrawItem=function(e){var t;if(this.graphList.length>0){var i=null===(t=this.graphList.find(function(t){return t.graph.id==e.id}))||void 0===t?void 0:t.graph;i&&this.delete(i)}},t.prototype.cancelCreate=function(){this.editor.cancelCreate(),this.deleteAll()},t.prototype.draw=function(e){var t=this.createObj(e);return t?(t.show=!0,this.graphList.push(t),t.graphList=this.graphList,this.editor.draw(t)):null},t.prototype.delete=function(e){var t=void 0;if(e){e.delete&&e.delete();var i=(t=e).id,n=this.graphList.find(function(e){return e.graph.id==i});jf.Remove(this.graphList,n)}else(t=this.editor.deleteSelectGraph())&&this.graphList.remove(t);return this._isChanged=!0,t},t.prototype.clean=function(){this.graphList.forEach(function(e){e.graph.delete()}),this.graphList.splice(0,this.graphList.length),this._isChanged=!0,this.sg.gxCluster&&this.sg.gxCluster.removeFromEarth()},t.prototype.deleteAll=function(){this.clean()},t.prototype.close=function(){this.clean(),this.editor.removeOperator()},t.prototype.load=function(e){var t,i,n=this;e.graphs.map(function(e){null!=e&&n.draw(e)});try{for(var r=dW(this.graphList),o=r.next();!o.done;o=r.next()){var s=o.value;s.graph.show=s.graph.show,s.graph.anchorHelper&&(s.graph.anchorHelper=gN(Qm,s.graph.anchorHelper),s.graph.anchorHelper.viewer=this.viewer,Qm.cesService=this.cesService)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}this._animationManager.load(e.animations),this.viewPoint=e.viewPoint,this._isChanged=!1},t.prototype.flyTo=function(e){this.viewPoint},t.prototype.classToPlain=function(e){var t=function(e,t){return fN.instanceToPlain(e,t)}(e);return t},t.prototype.save=function(){var e,t,i=[];try{for(var n=dW(this.graphList),r=n.next();!r.done;r=n.next()){var o=r.value,s=void 0;o.graph.anchorHelper&&(s=this.classToPlain(o.graph.anchorHelper));var a=this.classToPlain(o.graph);a.anchorHelper=s,i.push(a)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return{graphs:i,animations:this.animationManager.save()}},t.prototype.toGeoJson=function(e,t){var i,n,r={type:"Feature",properties:{},geometry:{type:"Point",coordinates:[1,2]}},o=Object.keys(e).remove("_ctrlPosition");try{for(var s=dW(o),a=s.next();!a.done;a=s.next()){var l=a.value;r.properties[l]=e[l]}}catch(e){i={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return r.geometry=t,r},t.prototype.createObj=function(e){var i=aW.createObj0(e,this.engine,this.layer,t.baseJbUrl);return this._isChanged=!0,i&&i.ent?i.ent:null},t.prototype.loadResource=function(e){return hW(this,void 0,void 0,function(){var t,i,n=this;return pW(this,function(r){switch(r.label){case 0:return this.config.clusterEnable?[4,this.serviceManager.clusterService.clusterConfig]:[3,2];case 1:(t=r.sent()).setImage=function(e,i){var r=e.map(function(e){return e._id}),o=n.graphList.filter(function(e){return r.includes(e.graph.clusterPoint.id)});o.forEach(function(e){return e.graph.props.show.value=!1}),t.setImage1(e,i)},this.sg.gxCluster=new GN(this.viewer,t),this.sg.gxClusterOption=t,this.sg.gxCluster.addToEarth(),this.viewer.camera.changed.addEventListener(function(){setTimeout(function(){n.showUnClusteredPoint()},50)},{passive:!0}),r.label=2;case 2:return e?[4,this.serviceManager.httpService.getData(e)]:[3,4];case 3:i=r.sent(),this.treeList=i,r.label=4;case 4:return this.serviceManager.plotService.storageJbs=JSON.parse(localStorage.getItem("recently"))||[],[2]}})})},t.prototype.parseIcons=function(e,t){return hW(this,void 0,void 0,function(){return pW(this,function(i){return this.iconsTreeDataResolve(e,t),this.iconsTreeHideFile(e),[2]})})},t.prototype.iconsTreeHideFile=function(e){var t=this;e.parent&&!e.children&&delete e.parent.children,e.children&&e.children.length>0&&e.children.forEach(function(e){return t.iconsTreeHideFile(e)})},t.prototype.iconsTreeDataResolve=function(e,t){var i=this;if(e.kind=t,"model"===t&&e.path&&(e.path=e.path.replace(/\\/g,"/")),"image"===t&&e.path&&(e.path=e.path.replace(/\\/g,"/")),e.data&&e.data.codeName){var n=e.data.codeName.lastIndexOf("-"),r=e.data.codeName.substr(0,n);if("1"===e.data.codeName[n-1]){var o={code:r,color:"#ff0000",name:e.label,obj:"JB"};e.params=o,e.kind="jbline1";var s=e.path.indexOf("军事标绘");e.path.substr(s,e.path.length-s);e.imagePath=e.path,delete e.extension}else if(e.data.noSvg)e.kind="image";else if(e.data.codeName.includes("-0-")){o={code:r,color:"#ff0000",name:e.label,obj:"JB",offsetX:e.data.offsetX,offsetY:e.data.offsetY};e.jbId=r,e.params=o,delete e.extension}}e.children&&e.children.length>0&&(e.data=e.children,e.children.forEach(function(t){return t.parent=e}),e.children.forEach(function(e){i.iconsTreeDataResolve(e,t)}))},uW([rm(),cW("design:type",Object)],t.prototype,"cesService",void 0),t}(iu);const gW=mW;var yW,_W=__webpack_require__(6763),AW=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())})},vW=function(e,t){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},CW=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},bW=function(){function e(e){this.geopptServicePlaceHolder="-gsph-",this.resourceTypeOpen=new am,this.resourceTypeClose=new am,this.showSelectionSub$=new am,this.curJb=null,this.curPlots=[],this._showFrameSelection=!1,this.detailFlag=!1,this.attrsFlag=!0,this.createFlag=!0,this.layerName="",this.layerId="",this.currentLayer=null,this.asideFlag=!1,this.copyFlag=!1,this.lockFlag=!1,this.$subject=new am,this.recentlyUsedJbArray=[],this.scalable=!0,this.rotatable=!0,this.scenarioList=[],this.isEmptyForLabel=!0,this.isRefresh=new am,this.savePageGraphBoardsSub$=new am,this.savePageGraphAnchorsSub$=new am,this.isCrossSelectedNodes2Or3="",this.clearCrossSelectedNodes$=new am,this.layerComponentRefresh$=new am,this.litener=function(){},this.onSelectChanged=new am,this.copystr=void 0,this.serviceManager=e.serviceManager,this._engine=e,this._viewer=e.viewer,this.fontMode=["微软雅黑","宋体","仿宋","楷体","隶书","幼圆","黑体"],this.fontSize=[12,14,16,18,20,22,24,26,28,36,48,60,72,84,96,108,120,132,144,156],this.lineWidth=[{label:"1",value:1},{label:"2",value:2},{label:"3",value:3},{label:"4",value:4},{label:"5",value:5}],this.rightClickPosition=new wW;var t=localStorage.getItem("pasteLocation");this.pasteLocation=!t||"true"==t}return Object.defineProperty(e.prototype,"gm",{get:function(){return this._gm||(this._gm=this.createOrEdit(this._baseUrl)),this._gm},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showFrameSelection",{get:function(){return this._showFrameSelection},set:function(e){this._showFrameSelection=e,this.showSelectionSub$.next(!1)},enumerable:!1,configurable:!0}),e.prototype.initConfig=function(){this.layerIpReg=new RegExp(window.config.geopptService,"g"),this.placeHolderReg=new RegExp(this.geopptServicePlaceHolder,"g")},e.prototype.controlScale=function(e){_W.log("scale: ",e),!e.o.scalable&&e.o.ent.billboard?e.o.ent.billboard.scale=e.value:e.o.ent&&e.o.ent.billboard&&(e.o.ent.billboard.scale=new Cesium.CallbackProperty(function(t,i){return e.value},!0))},e.prototype.contains=function(e,t){try{if(null==t||null==t||0==t.length||null==e||null==e)return!1;var i=new RegExp(t,"ig"),n=t.charCodeAt(0);if(n>=19968&&n<=40869){var r=e.match(i);if(null==r||0==r.length)return!1}else{var o=this.serviceManager.pinyinTool.makePy(e);if(null==o||0==o.length)return!1;var s=o[0].match(i);if(null==s||0==s.length)return!1}}catch(e){_W.log(e)}return!0},e.prototype.addPlot=function(e,t,i){if(i.stopPropagation(),e){if(["geojson","kml"].indexOf(e.kind)>-1)return!0;if("html"!=e.kind){var n=null,r=e.label;if("jb"==e.kind||"jbnew"==e.kind)n={obj:"JB",code:e.jbId,offsetX:e.data.offsetX,offsetY:e.data.offsetY,showMode:t?"screen":"object",name:r};else if("model"==e.kind){yT.deServiceIp;n={obj:"Model",uri:yT.geopptServiceIp+"/"+"".concat(e.path),scalev:100,minimumPixelSize:20,alpha:1}}else if(e.extension)switch(e.extension){case".png":case".jpeg":case".jpg":n={obj:"PinImage"},e.path&&(n.image="".concat(this.picPublicPath).concat(e.path)),t||(n.obj="Image");break;case".gif":n={obj:"HtmlImage"},e.path&&(n.imageUrl="".concat(this.picPublicPath).concat(e.path))}else(n=JB.deepClone(e.params)).image&&(n.image=VB.formatURL(n.image));e.gvolType&&(n.gvolType=e.gvolType),n.name=r,this.gm.create(n),this.setRecentlyUsedJb(e),_W.log("点击",e),this.plot_icon=e.path}}},e.prototype.draw=function(e,t,i,n){void 0===n&&(n=!0);var r=this.gm.draw(e);if(r){var o=r.graph;return o.iconName=t,o.name=i,n&&this.isRefresh.next([o]),o}return null},e.prototype.drawObj=function(e){this.gm.graphList.push(e)},e.prototype.setRecentlyUsedJb=function(e){var t=this.storageJbs.length;!!t&&this.storageJbs.find(function(t){return t.label===e.label})||(t>=4&&this.storageJbs.shift(),e.parent&&delete e.parent,e.hover=!1,this.storageJbs.push(JSON.parse(JSON.stringify(e))),localStorage.setItem("recently",JSON.stringify(this.storageJbs)))},Object.defineProperty(e.prototype,"editItem",{get:function(){return this._editItem},set:function(e){this._editItem instanceof qm&&this.editItem.propertyChanged.removeEventListener(this.litener),this._editItem=e,this._editItem&&(this.serviceManager.geojsonPlotService.currentGeojson=null),e instanceof qm&&e.propertyChanged.addEventListener(this.litener)},enumerable:!1,configurable:!0}),e.prototype.createOrEdit=function(e,t){var i=this;void 0===t&&(t=null);var n=yT.deServiceIp,r=new gW(this._engine,{layerId:"plot"+Fm.newGuid(),editAfterCreate:!0,baseJbUrl:n+"api/jb/jbsvg/",operatorEnable:!0,clusterEnable:!1,isReadOnly:!1},"");if(r.loadResource(e),r.editor.hideHTMLBoxesOperatorSub$.subscribe(function(){i.serviceManager.htmlDrawService.hideOperator()}),r.editor.stopContextMenu$.subscribe(function(e){i.rightClickPosition.showPasteButton=!1}),r.editor.isCrossSelectedNodes2Or3Sub$.subscribe(function(e){i.isCrossSelectedNodes2Or3=e}),t){var o=JSON.stringify(t);t=JSON.parse(o),r.load(t),t.html,t.geojson&&this.serviceManager.geojsonPlotService.setListByData(t.geojson,!0),t.bigfile&&(_W.log("json bigfile",t.bigfile),this.serviceManager.drawbigfileService.setListByData(t.bigfile)),t.music&&this.serviceManager.musicService.recoverData(t.music)}return this.plotList=r.graphList,r.editor.onEditCollectionChanged=function(e){i.isRefresh.next(e),e&&e.length>0?(i.editItem=1==e.length?e[0]:e,i.asideFlag=!0,i.detailFlag=!0,i.attrsFlag=!0,e.length,i.onSelectChanged.next(i.editItem)):(i.editItem=void 0,eI.currentBoxList.length&&!eI.currentEditGraphList.length&&r.editor.isCtrlPressed?i.onSelectChanged.next(eI.currentBoxList[0]):eI.currentEditGraphList.length||i.onSelectChanged.next(null)),i.litener()},r},e.prototype.clean=function(){this.gm&&(this.gm.close(),this.gm.animationManager.destroy()),this.serviceManager.geojsonPlotService.clearGjPlot(),this.serviceManager.drawbigfileService.cleanAll()},e.prototype.createEntityName=function(e){if(!this.plotList||0==this.plotList.length)return e;for(var t=0,i=function(){var i=0===t||1===t?e:"".concat(e,"(").concat(t,")");if(null==n.plotList.find(function(e){return e.graph.name===i}))return{value:i};t++},n=this;;){var r=i();if("object"==typeof r)return r.value}},e.prototype.saveData=function(e,t){return AW(this,void 0,void 0,function(){var t,i;return vW(this,function(n){switch(n.label){case 0:return e.gm&&delete e.gm,[4,this.serviceManager.configService.getDeServiceIp()];case 1:return t=n.sent(),i=new RegExp(t,"g"),e.content=e.content.replace(i,"hellogeovis"),[2]}})})},e.prototype.saveScenarios=function(){return AW(this,void 0,void 0,function(){var e,t,i,n,r,o,s,a,l;return vW(this,function(u){switch(u.label){case 0:this.serviceManager.geojsonPlotService.isEditing=!1,u.label=1;case 1:if(u.trys.push([1,10,,11]),e=this.gm.save(),t=(t=JSON.stringify(e)).replace(this.layerIpReg,this.geopptServicePlaceHolder),(e=JSON.parse(t)).geojson=this.serviceManager.geojsonPlotService.getListDataToSave(),e.bigfile=this.serviceManager.drawbigfileService.getListDataToSave(),e.tree=this.serviceManager.layerService.save(),e.music=this.serviceManager.musicService.saveData(),!(e.graphs&&Array.isArray(e.graphs)&&Array.isArray(e.graphs)))return[3,9];u.label=2;case 2:u.trys.push([2,7,8,9]),i=CW(e.graphs),n=i.next(),u.label=3;case 3:return n.done?[3,6]:!(r=n.value).resourceId||r.ossUrl?[3,5]:(_W.log("装配云地址>>>>"),[4,Fj(r.resourceId,r._name)]);case 4:o=u.sent(),_W.log("获取云地址结果>>>>",o),o&&"string"!=typeof o&&(r.ossUrl=o.ossUrl),u.label=5;case 5:return n=i.next(),[3,3];case 6:return[3,9];case 7:return s=u.sent(),a={error:s},[3,9];case 8:try{n&&!n.done&&(l=i.return)&&l.call(i)}finally{if(a)throw a.error}return[7];case 9:return _W.log("保存contentObj>>>",e),[2,e];case 10:return u.sent(),_W.log("保存出错"),[2,void 0];case 11:return[2]}})})},e.prototype.changeSelect=function(e){this.gm&&(e instanceof Array?this.gm.editor.currentEditGraphList=e:this.gm.editor.currentEditGraph=e)},e.prototype.removeAll=function(){this.gm&&this.gm.deleteAll(),this.editItem=null,this.plotList=[]},e.prototype.clear=function(){this.detailFlag=!1},e.prototype.copy=function(e,t,i){var n=this;if(_W.log("当前选中的 ",e),e){var r;if(e instanceof qm){if(r={type:"plot",data:this.gm.classToPlain(e)},i&&i.size>0){var o=i.get(e.id);o&&(r.data.name=o,r.data._name=o)}}else if(e instanceof Array&&e[0]instanceof qm){var s=[];e.forEach(function(e){s.push(n.gm.classToPlain(e))}),r={type:"plotArray",data:mN(s)},i&&i.size>0&&r.data.forEach(function(e){var t=i.get(e.id);t&&(e.name=t,e._name=t)})}this.copystr=JSON.stringify(r),this.addToClipbrd(this.copystr,t)}},e.prototype.addToClipbrd=function(e,t){function i(t){e&&(t.clipboardData.setData("text/plain",e),t.preventDefault())}document.addEventListener("copy",i,{passive:!1}),document.execCommand("copy"),document.removeEventListener("copy",i)},e.prototype.getFromClipbrd=function(){return AW(this,void 0,void 0,function(){return vW(this,function(e){switch(e.label){case 0:return[4,navigator.clipboard.readText()];case 1:return[2,e.sent()]}})})},e.prototype.pastePlot=function(e,t,i){var n,r,o,s,a=this;if("plot"==e.type){var l=e.data,u=l._name,c=this.GetPasateNam(l._name,this.plotList.map(function(e){return e.graph.name}));if(null!=i){if(!this.rightClickPosition.lon||!this.rightClickPosition.lat)return void alert("当前粘贴位置无效!");var h=i.lon-l._ctrlPosition[0].lon,p=i.lat-l._ctrlPosition[0].lat;try{for(var d=CW(l._ctrlPosition),f=d.next();!f.done;f=d.next()){(_=f.value).lon=_.lon+h,_.lat=_.lat+p}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}}else if(this.pasteLocation){var m=8e-8*t.camera.positionCartographic.height;try{for(var g=CW(l._ctrlPosition),y=g.next();!y.done;y=g.next()){var _;(_=y.value).lon=_.lon+m,_.lat=_.lat+m}}catch(e){o={error:e}}finally{try{y&&!y.done&&(s=g.return)&&s.call(g)}finally{if(o)throw o.error}}}l.id=Fm.newGuid(),l._name=c,l.name=c;var A=this.gm.draw(l);l._name=u,l.name=u;var v=new Map;v.set(A.graph.id,u),this.copy(A.graph,this._viewer,v),this.isRefresh.next([A.graph])}else if("plotArray"==e.type){if(!(null==i||this.rightClickPosition.lon&&this.rightClickPosition.lat))return void alert("当前粘贴位置无效!");var C=e.data,b=new Map,w=[];C.forEach(function(e){var n,r,o,s,l=e._name,u=a.GetPasateNam(e._name,a.plotList.map(function(e){return e.graph.name}));if(null!=i){var c=i.lon-e._ctrlPosition[0].lon,h=i.lat-e._ctrlPosition[0].lat;try{for(var p=CW(e._ctrlPosition),d=p.next();!d.done;d=p.next()){(y=d.value).lon=y.lon+c,y.lat=y.lat+h}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}}else if(a.pasteLocation){var f=8e-8*t.camera.positionCartographic.height;try{for(var m=CW(e._ctrlPosition),g=m.next();!g.done;g=m.next()){var y;(y=g.value).lon=y.lon+f,y.lat=y.lat+f}}catch(e){o={error:e}}finally{try{g&&!g.done&&(s=m.return)&&s.call(m)}finally{if(o)throw o.error}}}e.id=Fm.newGuid(),e._name=u,e.name=u;var _=a.gm.draw(e);e._name=l,e.name=l,b.set(_.graph.id,l),w.push(_.graph)}),this.isRefresh.next(w),this.copy(w,this._viewer,b)}else"html"==e.type||e.type},Object.defineProperty(e.prototype,"pasteLocation",{get:function(){return this._pasteLocation},set:function(e){this._pasteLocation=e,localStorage.setItem("pasteLocation",!0===e?"true":"false")},enumerable:!1,configurable:!0}),e.prototype.paste=function(e,t){return AW(this,void 0,void 0,function(){var i,n;return vW(this,function(r){switch(r.label){case 0:return[4,this.getFromClipbrd()];case 1:if(!(i=r.sent()))return alert("剪切板无内容"),[2];try{n=JSON.parse(i)}catch(e){_W.log("剪切板数据(格式不对): ",i)}return n&&(t?(_W.log("右键粘贴"),this.pastePlot(n,e,this.rightClickPosition)):(_W.log("贴在旁边"),this.pastePlot(n,e)),this.copystr=JSON.stringify(n)),[2]}})})},e.prototype.GetPasateNam=function(e,t){for(var i=0;;){var n=0==i?e:1==i?e+"副本":"".concat(e,"副本(").concat(i,")");if(null==t.find(function(e){return e==n}))return n;i++}},e.prototype.cut=function(){this.copystr=JSON.stringify(this.editItem.toJson()),this.gm.delete(this.editItem)},e.prototype.lock=function(){this.editItem},e.prototype.handleControlPoints=function(e){e.lat=Number(e.lat)+1,e.lgt=Number(e.lat)+1,e.controlPoints=[[e.lgt,e.lat]]},e.prototype.changeLabelStatus=function(e,t){this.isEmptyForLabel=!!e.target.value,t&&(t.isError=!this.isEmptyForLabel)},e.prototype.isAllow=function(){var e=this;this.isEmptyForLabel||this.throwError("this.isEmptyForLabel"),this.gm.graphList.forEach(function(t){for(var i in t.graph.__proto__.__meta__){var n=t.graph.__proto__.__meta__[i];n.isError&&e.throwError(n)}})},e.prototype.throwError=function(e){throw _W.error(e),new Error("属性面板中有属性不合法")},e.prototype.addPoint=function(e,t){var i,n,r=0,o=0,s=0,a=e[t].lon*Math.PI/180,l=e[t].lat*Math.PI/180;t===e.length-1?(i=e[t-1].lon*Math.PI/180,n=e[t-1].lat*Math.PI/180):(i=e[t+1].lon*Math.PI/180,n=e[t+1].lat*Math.PI/180),r=Math.cos(l)*Math.cos(a)+Math.cos(n)*Math.cos(i),o=Math.cos(l)*Math.sin(a)+Math.cos(n)*Math.sin(i),s=Math.sin(l)+Math.sin(n),r/=2,o/=2,s/=2;var u=Math.atan2(o,r),c=Math.atan2(s,Math.sqrt(r*r+o*o)),h={lon:180*u/Math.PI,lat:180*c/Math.PI,alt:e[t].alt},p=t===e.length-1?t:t+1;e.splice(p,0,h)},e.prototype.deletePoint=function(e,t){e.length>2&&e.splice(t,1)},e.prototype.editPoint=function(e){e&&(e.editFlag=!0,e.highLight=!1)},e.prototype.savePoint=function(e){var t=this.gm.editor.currentEditGraph;_W.log("copyPoints.length<minPointNum: ",t),this.copyPoints.length>(null==t?void 0:t.maxPointNum)||this.copyPoints.length<(null==t?void 0:t.minPointNum)?_W.log("坐标参数不符合要求"):(t.ctrlPosition=this.copyPoints,t.initCtls(),t.finish(),t.toEdit(),e&&e.emit())},e.prototype.cancel=function(e){this.copyPoints=[],e&&e.emit()},e.prototype.pasteByMouse=function(e){var t=this;this.pasteHandler||(this.pasteHandler=new Cesium.ScreenSpaceEventHandler(e.scene.canvas)),this.pasteHandler.setInputAction(function(i){if(t.gm.editor.startPickTarget)t.gm.editor.startPickTarget=!1;else{Hf.calculateMouseEvent(i);var n=e.camera.getPickRay(i.position),r=e.scene.globe.pick(n,e.scene);if(!Cesium.defined(r))return t.rightClickPosition.lon=void 0,void(t.rightClickPosition.lat=void 0);var o=e.scene.globe.ellipsoid.cartesianToCartographic(r);t.rightClickPosition.lat=Cesium.Math.toDegrees(o.latitude),t.rightClickPosition.lon=Cesium.Math.toDegrees(o.longitude),t.rightClickPosition.showPasteButton=!0}},Cesium.ScreenSpaceEventType.RIGHT_CLICK)},e.prototype.transformFromTree=function(e){var t=e.map(function(e){var t={};return"folder"!==e.icon?Object.keys(e).forEach(function(i){"entity"!==i&&(t[i]=e[i])}):delete(t=Object.assign({},e)).children,t});return t},e.prototype.plotEnable=function(e){this.gm&&(this.gm.editor.isReadOnly=e)},e}(),wW=function(){this.showPasteButton=!1},xW=__webpack_require__(6763),SW=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},MW=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},PW=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},EW=function(){function e(e){this.rename$=new am,this.itemTreeLocate$=new am,this.startDragTreeNodeInd=-1,this.startDragNodeFlag=!1,this.clearInCtrlList$=new am,this.isLayerCtrlPressed=!1,this.setCurrentNodeListSub$=new am,this.setCrossSelectedNodesSub$=new am,this.previousFolder=null,this.serviceManager=e,Qm.layService=this}return e.prototype.getTreeOptions=function(e){var t,i,n=mN(e.origin);e.parentNode?n.pid=e.parentNode.origin.id:n.pid=0,this.options.push(n);try{for(var r=SW(e.children),o=r.next();!o.done;o=r.next()){var s=o.value;this.getTreeOptions(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}},e.prototype.getNodeByid=function(e,t){var i,n;if(e==t.origin.id)return t;try{for(var r=SW(t.children),o=r.next();!o.done;o=r.next()){var s=o.value,a=this.getNodeByid(e,s);if(a)return a}}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return null},e.prototype.getById=function(e){var t,i;try{for(var n=SW(this.nodes),r=n.next();!r.done;r=n.next()){var o=r.value,s=this.getNodeByid(e,o);if(s)return s}}catch(e){t={error:e}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}},e.prototype.save=function(){var e,t;if(this.options=[],this.nodes&&this.nodes.length)try{for(var i=SW(this.nodes),n=i.next();!n.done;n=i.next()){var r=n.value;this.getTreeOptions(r)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return this.options},e.prototype.reNameElement=function(e){e.origin.lock||("folder"!==e.icon?(xW.log("子节点"),this.editEleName=e.title.trim(),this.selectedEle=e.origin.entity):(xW.log("文件夹"),this.editEleName=e.title.trim(),this.selectedEle=e.origin),!1===e.isChecked&&(e.isChecked=!0))},e.prototype.selectboxtoggle=function(e){this.previousFolder?this.previousFolder===e?this.previousFolder.isChecked=!this.previousFolder.isChecked:(this.previousFolder.isChecked=!1,e.isChecked=!0,this.previousFolder=e):(e.isChecked=!0,this.previousFolder=e)},e.prototype.editElelist=function(e){var t,i,n,r,o,s,a,l;xW.log("ele编辑校验",e);var u=!0,c=[];if("folder"!==e.icon){var h=null===(s=null===(o=e.origin.entity)||void 0===o?void 0:o.name)||void 0===s?void 0:s.trim();xW.log("子节点"),h&&""!==h||(this.serviceManager.message.error("元素名称不能为空"),u=!1,e.isChecked=!1),c=this.getChildnodes();try{for(var p=SW(c),d=p.next();!d.done;d=p.next()){var f=d.value;(null===(a=f.origin.entity)||void 0===a?void 0:a.id)!==this.selectedEle.id&&(null===(l=f.origin.entity)||void 0===l?void 0:l.name.trim())===this.selectedEle.name.trim()&&(this.serviceManager.message.error("元素名称不能重复"),u=!1,e.isChecked=!1)}}catch(e){t={error:e}}finally{try{d&&!d.done&&(i=p.return)&&i.call(p)}finally{if(t)throw t.error}}if(!u)return this.selectedEle.name=this.editEleName.trim(),this.editEleName="",this.selectedEle="",u}else{xW.log("文件夹");var m=e.origin.label.trim();m&&""!==m||(this.serviceManager.message.error("文件夹名称不能为空"),u=!1,e.isChecked=!1);try{for(var g=SW(this.nodes),y=g.next();!y.done;y=g.next()){var _=y.value;_.origin.id!==this.selectedEle.id&&_.origin.label.trim()===this.selectedEle.label.trim()&&(this.serviceManager.message.error("文件夹名称不能重复"),u=!1,e.isChecked=!1)}}catch(e){n={error:e}}finally{try{y&&!y.done&&(r=g.return)&&r.call(g)}finally{if(n)throw n.error}}if(!u)return this.selectedEle.label=this.editEleName.trim(),this.editEleName="",this.selectedEle="",u}return u},e.prototype.getChildnodes=function(){var e,t,i=[];try{for(var n=SW(this.nodes),r=n.next();!r.done;r=n.next()){var o=r.value;o.children.length>0&&i.push.apply(i,PW([],MW(o.children),!1))}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return i},e.prototype.eleAttrNameCheck=function(e){var t=this,i=this.getChildnodes(),n=e.name.trim();if(!n||""===n)return this.serviceManager.message.error("元素名称不能为空"),!0;var r=i.filter(function(t){var i;return(null===(i=t.origin.entity)||void 0===i?void 0:i.id)!==e.id}).find(function(e){var i;if((null===(i=e.origin.entity)||void 0===i?void 0:i.name.trim())===n)return t.serviceManager.message.error("元素名称不能重复"),!0});return!!r},e}(),LW=__webpack_require__(6763),TW=function(){function e(){}return e.prototype.error=function(e){LW.log(e)},e.prototype.success=function(e){LW.log(e)},e}(),OW=__webpack_require__(6763),DW=function(){function e(){this.isVisible=!1,this.isOpenPic=!1,this.isHtmlEditContent=!0,this.picList=[]}return e.prototype.updateImgs=function(){OW.log("this.plotResourceService.picList///",this.picList);var e=document.querySelector(".my-slider");if(OW.log("con",e),e){this.tnsObj&&this.tnsObj.destroy();var t="";this.picList.forEach(function(e){t="".concat(t,'<div style="width: 729.59px;\n height: 452px;"><img style="width:100%;height:100%" src=\'').concat(e.imgPath,"'></div>")}),t="<div id='mytns'>".concat(t,"</div>"),e.innerHTML=t,this.tnsObj=window.tns({container:"#mytns",items:1,swipeAngle:!1,speed:400,navPosition:"",controls:!1})}},e}(),BW=function(){function e(){}return e.strChineseFirstPY="YDYQSXMWZSSXJBYMGCCZQPSSQBYCDSCDQLDYLYBSSJGYZZJJFKCCLZDHWDWZJLJPFYYNWJJTMYHZWZHFLZPPQHGSCYYYNJQYXXGJHHSDSJNKKTMOMLCRXYPSNQSECCQZGGLLYJLMYZZSECYKYYHQWJSSGGYXYZYJWWKDJHYCHMYXJTLXJYQBYXZLDWRDJRWYSRLDZJPCBZJJBRCFTLECZSTZFXXZHTRQHYBDLYCZSSYMMRFMYQZPWWJJYFCRWFDFZQPYDDWYXKYJAWJFFXYPSFTZYHHYZYSWCJYXSCLCXXWZZXNBGNNXBXLZSZSBSGPYSYZDHMDZBQBZCWDZZYYTZHBTSYYBZGNTNXQYWQSKBPHHLXGYBFMJEBJHHGQTJCYSXSTKZHLYCKGLYSMZXYALMELDCCXGZYRJXSDLTYZCQKCNNJWHJTZZCQLJSTSTBNXBTYXCEQXGKWJYFLZQLYHYXSPSFXLMPBYSXXXYDJCZYLLLSJXFHJXPJBTFFYABYXBHZZBJYZLWLCZGGBTSSMDTJZXPTHYQTGLJSCQFZKJZJQNLZWLSLHDZBWJNCJZYZSQQYCQYRZCJJWYBRTWPYFTWEXCSKDZCTBZHYZZYYJXZCFFZZMJYXXSDZZOTTBZLQWFCKSZSXFYRLNYJMBDTHJXSQQCCSBXYYTSYFBXDZTGBCNSLCYZZPSAZYZZSCJCSHZQYDXLBPJLLMQXTYDZXSQJTZPXLCGLQTZWJBHCTSYJSFXYEJJTLBGXSXJMYJQQPFZASYJNTYDJXKJCDJSZCBARTDCLYJQMWNQNCLLLKBYBZZSYHQQLTWLCCXTXLLZNTYLNEWYZYXCZXXGRKRMTCNDNJTSYYSSDQDGHSDBJGHRWRQLYBGLXHLGTGXBQJDZPYJSJYJCTMRNYMGRZJCZGJMZMGXMPRYXKJNYMSGMZJYMKMFXMLDTGFBHCJHKYLPFMDXLQJJSMTQGZSJLQDLDGJYCALCMZCSDJLLNXDJFFFFJCZFMZFFPFKHKGDPSXKTACJDHHZDDCRRCFQYJKQCCWJDXHWJLYLLZGCFCQDSMLZPBJJPLSBCJGGDCKKDEZSQCCKJGCGKDJTJDLZYCXKLQSCGJCLTFPCQCZGWPJDQYZJJBYJHSJDZWGFSJGZKQCCZLLPSPKJGQJHZZLJPLGJGJJTHJJYJZCZMLZLYQBGJWMLJKXZDZNJQSYZMLJLLJKYWXMKJLHSKJGBMCLYYMKXJQLBMLLKMDXXKWYXYSLMLPSJQQJQXYXFJTJDXMXXLLCXQBSYJBGWYMBGGBCYXPJYGPEPFGDJGBHBNSQJYZJKJKHXQFGQZKFHYGKHDKLLSDJQXPQYKYBNQSXQNSZSWHBSXWHXWBZZXDMNSJBSBKBBZKLYLXGWXDRWYQZMYWSJQLCJXXJXKJEQXSCYETLZHLYYYSDZPAQYZCMTLSHTZCFYZYXYLJSDCJQAGYSLCQLYYYSHMRQQKLDXZSCSSSYDYCJYSFSJBFRSSZQSBXXPXJYSDRCKGJLGDKZJZBDKTCSYQPYHSTCLDJDHMXMCGXYZHJDDTMHLTXZXYLYMOHYJCLTYFBQQXPFBDFHHTKSQHZYYWCNXXCRWHOWGYJLEGWDQCWGFJYCSNTMYTOLBYGWQWESJPWNMLRYDZSZTXYQPZGCWXHNGPYXSHMYQJXZTDPPBFYHZHTJYFDZWKGKZBLDNTSXHQEEGZZYLZMMZYJZGXZXKHKSTXNXXWYLYAPSTHXDWHZYMPXAGKYDXBHNHXKDPJNMYHYLPMGOCSLNZHKXXLPZZLBMLSFBHHGYGYYGGBHSCYAQTYWLXTZQCEZYDQDQMMHTKLLSZHLSJZWFYHQSWSCWLQAZYNYTLSXTHAZNKZZSZZLAXXZWWCTGQQTDDYZTCCHYQZFLXPSLZYGPZSZNGLNDQTBDLXGTCTAJDKYWNSYZLJHHZZCWNYYZYWMHYCHHYXHJKZWSXHZYXLYSKQYSPSLYZWMYPPKBYGLKZHTYXAXQSYSHXASMCHKDSCRSWJPWXSGZJLWWSCHSJHSQNHCSEGNDAQTBAALZZMSSTDQJCJKTSCJAXPLGGXHHGXXZCXPDMMHLDGTYBYSJMXHMRCPXXJZCKZXSHMLQXXTTHXWZFKHCCZDYTCJYXQHLXDHYPJQXYLSYYDZOZJNYXQEZYSQYAYXWYPDGXDDXSPPYZNDLTWRHXYDXZZJHTCXMCZLHPYYYYMHZLLHNXMYLLLMDCPPXHMXDKYCYRDLTXJCHHZZXZLCCLYLNZSHZJZZLNNRLWHYQSNJHXYNTTTKYJPYCHHYEGKCTTWLGQRLGGTGTYGYHPYHYLQYQGCWYQKPYYYTTTTLHYHLLTYTTSPLKYZXGZWGPYDSSZZDQXSKCQNMJJZZBXYQMJRTFFBTKHZKBXLJJKDXJTLBWFZPPTKQTZTGPDGNTPJYFALQMKGXBDCLZFHZCLLLLADPMXDJHLCCLGYHDZFGYDDGCYYFGYDXKSSEBDHYKDKDKHNAXXYBPBYYHXZQGAFFQYJXDMLJCSQZLLPCHBSXGJYNDYBYQSPZWJLZKSDDTACTBXZDYZYPJZQSJNKKTKNJDJGYYPGTLFYQKASDNTCYHBLWDZHBBYDWJRYGKZYHEYYFJMSDTYFZJJHGCXPLXHLDWXXJKYTCYKSSSMTWCTTQZLPBSZDZWZXGZAGYKTYWXLHLSPBCLLOQMMZSSLCMBJCSZZKYDCZJGQQDSMCYTZQQLWZQZXSSFPTTFQMDDZDSHDTDWFHTDYZJYQJQKYPBDJYYXTLJHDRQXXXHAYDHRJLKLYTWHLLRLLRCXYLBWSRSZZSYMKZZHHKYHXKSMDSYDYCJPBZBSQLFCXXXNXKXWYWSDZYQOGGQMMYHCDZTTFJYYBGSTTTYBYKJDHKYXBELHTYPJQNFXFDYKZHQKZBYJTZBXHFDXKDASWTAWAJLDYJSFHBLDNNTNQJTJNCHXFJSRFWHZFMDRYJYJWZPDJKZYJYMPCYZNYNXFBYTFYFWYGDBNZZZDNYTXZEMMQBSQEHXFZMBMFLZZSRXYMJGSXWZJSPRYDJSJGXHJJGLJJYNZZJXHGXKYMLPYYYCXYTWQZSWHWLYRJLPXSLSXMFSWWKLCTNXNYNPSJSZHDZEPTXMYYWXYYSYWLXJQZQXZDCLEEELMCPJPCLWBXSQHFWWTFFJTNQJHJQDXHWLBYZNFJLALKYYJLDXHHYCSTYYWNRJYXYWTRMDRQHWQCMFJDYZMHMYYXJWMYZQZXTLMRSPWWCHAQBXYGZYPXYYRRCLMPYMGKSJSZYSRMYJSNXTPLNBAPPYPYLXYYZKYNLDZYJZCZNNLMZHHARQMPGWQTZMXXMLLHGDZXYHXKYXYCJMFFYYHJFSBSSQLXXNDYCANNMTCJCYPRRNYTYQNYYMBMSXNDLYLYSLJRLXYSXQMLLYZLZJJJKYZZCSFBZXXMSTBJGNXYZHLXNMCWSCYZYFZLXBRNNNYLBNRTGZQYSATSWRYHYJZMZDHZGZDWYBSSCSKXSYHYTXXGCQGXZZSHYXJSCRHMKKBXCZJYJYMKQHZJFNBHMQHYSNJNZYBKNQMCLGQHWLZNZSWXKHLJHYYBQLBFCDSXDLDSPFZPSKJYZWZXZDDXJSMMEGJSCSSMGCLXXKYYYLNYPWWWGYDKZJGGGZGGSYCKNJWNJPCXBJJTQTJWDSSPJXZXNZXUMELPXFSXTLLXCLJXJJLJZXCTPSWXLYDHLYQRWHSYCSQYYBYAYWJJJQFWQCQQCJQGXALDBZZYJGKGXPLTZYFXJLTPADKYQHPMATLCPDCKBMTXYBHKLENXDLEEGQDYMSAWHZMLJTWYGXLYQZLJEEYYBQQFFNLYXRDSCTGJGXYYNKLLYQKCCTLHJLQMKKZGCYYGLLLJDZGYDHZWXPYSJBZKDZGYZZHYWYFQYTYZSZYEZZLYMHJJHTSMQWYZLKYYWZCSRKQYTLTDXWCTYJKLWSQZWBDCQYNCJSRSZJLKCDCDTLZZZACQQZZDDXYPLXZBQJYLZLLLQDDZQJYJYJZYXNYYYNYJXKXDAZWYRDLJYYYRJLXLLDYXJCYWYWNQCCLDDNYYYNYCKCZHXXCCLGZQJGKWPPCQQJYSBZZXYJSQPXJPZBSBDSFNSFPZXHDWZTDWPPTFLZZBZDMYYPQJRSDZSQZSQXBDGCPZSWDWCSQZGMDHZXMWWFYBPDGPHTMJTHZSMMBGZMBZJCFZWFZBBZMQCFMBDMCJXLGPNJBBXGYHYYJGPTZGZMQBQTCGYXJXLWZKYDPDYMGCFTPFXYZTZXDZXTGKMTYBBCLBJASKYTSSQYYMSZXFJEWLXLLSZBQJJJAKLYLXLYCCTSXMCWFKKKBSXLLLLJYXTYLTJYYTDPJHNHNNKBYQNFQYYZBYYESSESSGDYHFHWTCJBSDZZTFDMXHCNJZYMQWSRYJDZJQPDQBBSTJGGFBKJBXTGQHNGWJXJGDLLTHZHHYYYYYYSXWTYYYCCBDBPYPZYCCZYJPZYWCBDLFWZCWJDXXHYHLHWZZXJTCZLCDPXUJCZZZLYXJJTXPHFXWPYWXZPTDZZBDZCYHJHMLXBQXSBYLRDTGJRRCTTTHYTCZWMXFYTWWZCWJWXJYWCSKYBZSCCTZQNHXNWXXKHKFHTSWOCCJYBCMPZZYKBNNZPBZHHZDLSYDDYTYFJPXYNGFXBYQXCBHXCPSXTYZDMKYSNXSXLHKMZXLYHDHKWHXXSSKQYHHCJYXGLHZXCSNHEKDTGZXQYPKDHEXTYKCNYMYYYPKQYYYKXZLTHJQTBYQHXBMYHSQCKWWYLLHCYYLNNEQXQWMCFBDCCMLJGGXDQKTLXKGNQCDGZJWYJJLYHHQTTTNWCHMXCXWHWSZJYDJCCDBQCDGDNYXZTHCQRXCBHZTQCBXWGQWYYBXHMBYMYQTYEXMQKYAQYRGYZSLFYKKQHYSSQYSHJGJCNXKZYCXSBXYXHYYLSTYCXQTHYSMGSCPMMGCCCCCMTZTASMGQZJHKLOSQYLSWTMXSYQKDZLJQQYPLSYCZTCQQPBBQJZCLPKHQZYYXXDTDDTSJCXFFLLCHQXMJLWCJCXTSPYCXNDTJSHJWXDQQJSKXYAMYLSJHMLALYKXCYYDMNMDQMXMCZNNCYBZKKYFLMCHCMLHXRCJJHSYLNMTJZGZGYWJXSRXCWJGJQHQZDQJDCJJZKJKGDZQGJJYJYLXZXXCDQHHHEYTMHLFSBDJSYYSHFYSTCZQLPBDRFRZTZYKYWHSZYQKWDQZRKMSYNBCRXQBJYFAZPZZEDZCJYWBCJWHYJBQSZYWRYSZPTDKZPFPBNZTKLQYHBBZPNPPTYZZYBQNYDCPJMMCYCQMCYFZZDCMNLFPBPLNGQJTBTTNJZPZBBZNJKLJQYLNBZQHKSJZNGGQSZZKYXSHPZSNBCGZKDDZQANZHJKDRTLZLSWJLJZLYWTJNDJZJHXYAYNCBGTZCSSQMNJPJYTYSWXZFKWJQTKHTZPLBHSNJZSYZBWZZZZLSYLSBJHDWWQPSLMMFBJDWAQYZTCJTBNNWZXQXCDSLQGDSDPDZHJTQQPSWLYYJZLGYXYZLCTCBJTKTYCZJTQKBSJLGMGZDMCSGPYNJZYQYYKNXRPWSZXMTNCSZZYXYBYHYZAXYWQCJTLLCKJJTJHGDXDXYQYZZBYWDLWQCGLZGJGQRQZCZSSBCRPCSKYDZNXJSQGXSSJMYDNSTZTPBDLTKZWXQWQTZEXNQCZGWEZKSSBYBRTSSSLCCGBPSZQSZLCCGLLLZXHZQTHCZMQGYZQZNMCOCSZJMMZSQPJYGQLJYJPPLDXRGZYXCCSXHSHGTZNLZWZKJCXTCFCJXLBMQBCZZWPQDNHXLJCTHYZLGYLNLSZZPCXDSCQQHJQKSXZPBAJYEMSMJTZDXLCJYRYYNWJBNGZZTMJXLTBSLYRZPYLSSCNXPHLLHYLLQQZQLXYMRSYCXZLMMCZLTZSDWTJJLLNZGGQXPFSKYGYGHBFZPDKMWGHCXMSGDXJMCJZDYCABXJDLNBCDQYGSKYDQTXDJJYXMSZQAZDZFSLQXYJSJZYLBTXXWXQQZBJZUFBBLYLWDSLJHXJYZJWTDJCZFQZQZZDZSXZZQLZCDZFJHYSPYMPQZMLPPLFFXJJNZZYLSJEYQZFPFZKSYWJJJHRDJZZXTXXGLGHYDXCSKYSWMMZCWYBAZBJKSHFHJCXMHFQHYXXYZFTSJYZFXYXPZLCHMZMBXHZZSXYFYMNCWDABAZLXKTCSHHXKXJJZJSTHYGXSXYYHHHJWXKZXSSBZZWHHHCWTZZZPJXSNXQQJGZYZYWLLCWXZFXXYXYHXMKYYSWSQMNLNAYCYSPMJKHWCQHYLAJJMZXHMMCNZHBHXCLXTJPLTXYJHDYYLTTXFSZHYXXSJBJYAYRSMXYPLCKDUYHLXRLNLLSTYZYYQYGYHHSCCSMZCTZQXKYQFPYYRPFFLKQUNTSZLLZMWWTCQQYZWTLLMLMPWMBZSSTZRBPDDTLQJJBXZCSRZQQYGWCSXFWZLXCCRSZDZMCYGGDZQSGTJSWLJMYMMZYHFBJDGYXCCPSHXNZCSBSJYJGJMPPWAFFYFNXHYZXZYLREMZGZCYZSSZDLLJCSQFNXZKPTXZGXJJGFMYYYSNBTYLBNLHPFZDCYFBMGQRRSSSZXYSGTZRNYDZZCDGPJAFJFZKNZBLCZSZPSGCYCJSZLMLRSZBZZLDLSLLYSXSQZQLYXZLSKKBRXBRBZCYCXZZZEEYFGKLZLYYHGZSGZLFJHGTGWKRAAJYZKZQTSSHJJXDCYZUYJLZYRZDQQHGJZXSSZBYKJPBFRTJXLLFQWJHYLQTYMBLPZDXTZYGBDHZZRBGXHWNJTJXLKSCFSMWLSDQYSJTXKZSCFWJLBXFTZLLJZLLQBLSQMQQCGCZFPBPHZCZJLPYYGGDTGWDCFCZQYYYQYSSCLXZSKLZZZGFFCQNWGLHQYZJJCZLQZZYJPJZZBPDCCMHJGXDQDGDLZQMFGPSYTSDYFWWDJZJYSXYYCZCYHZWPBYKXRYLYBHKJKSFXTZJMMCKHLLTNYYMSYXYZPYJQYCSYCWMTJJKQYRHLLQXPSGTLYYCLJSCPXJYZFNMLRGJJTYZBXYZMSJYJHHFZQMSYXRSZCWTLRTQZSSTKXGQKGSPTGCZNJSJCQCXHMXGGZTQYDJKZDLBZSXJLHYQGGGTHQSZPYHJHHGYYGKGGCWJZZYLCZLXQSFTGZSLLLMLJSKCTBLLZZSZMMNYTPZSXQHJCJYQXYZXZQZCPSHKZZYSXCDFGMWQRLLQXRFZTLYSTCTMJCXJJXHJNXTNRZTZFQYHQGLLGCXSZSJDJLJCYDSJTLNYXHSZXCGJZYQPYLFHDJSBPCCZHJJJQZJQDYBSSLLCMYTTMQTBHJQNNYGKYRQYQMZGCJKPDCGMYZHQLLSLLCLMHOLZGDYYFZSLJCQZLYLZQJESHNYLLJXGJXLYSYYYXNBZLJSSZCQQCJYLLZLTJYLLZLLBNYLGQCHXYYXOXCXQKYJXXXYKLXSXXYQXCYKQXQCSGYXXYQXYGYTQOHXHXPYXXXULCYEYCHZZCBWQBBWJQZSCSZSSLZYLKDESJZWMYMCYTSDSXXSCJPQQSQYLYYZYCMDJDZYWCBTJSYDJKCYDDJLBDJJSODZYSYXQQYXDHHGQQYQHDYXWGMMMAJDYBBBPPBCMUUPLJZSMTXERXJMHQNUTPJDCBSSMSSSTKJTSSMMTRCPLZSZMLQDSDMJMQPNQDXCFYNBFSDQXYXHYAYKQYDDLQYYYSSZBYDSLNTFQTZQPZMCHDHCZCWFDXTMYQSPHQYYXSRGJCWTJTZZQMGWJJTJHTQJBBHWZPXXHYQFXXQYWYYHYSCDYDHHQMNMTMWCPBSZPPZZGLMZFOLLCFWHMMSJZTTDHZZYFFYTZZGZYSKYJXQYJZQBHMBZZLYGHGFMSHPZFZSNCLPBQSNJXZSLXXFPMTYJYGBXLLDLXPZJYZJYHHZCYWHJYLSJEXFSZZYWXKZJLUYDTMLYMQJPWXYHXSKTQJEZRPXXZHHMHWQPWQLYJJQJJZSZCPHJLCHHNXJLQWZJHBMZYXBDHHYPZLHLHLGFWLCHYYTLHJXCJMSCPXSTKPNHQXSRTYXXTESYJCTLSSLSTDLLLWWYHDHRJZSFGXTSYCZYNYHTDHWJSLHTZDQDJZXXQHGYLTZPHCSQFCLNJTCLZPFSTPDYNYLGMJLLYCQHYSSHCHYLHQYQTMZYPBYWRFQYKQSYSLZDQJMPXYYSSRHZJNYWTQDFZBWWTWWRXCWHGYHXMKMYYYQMSMZHNGCEPMLQQMTCWCTMMPXJPJJHFXYYZSXZHTYBMSTSYJTTQQQYYLHYNPYQZLCYZHZWSMYLKFJXLWGXYPJYTYSYXYMZCKTTWLKSMZSYLMPWLZWXWQZSSAQSYXYRHSSNTSRAPXCPWCMGDXHXZDZYFJHGZTTSBJHGYZSZYSMYCLLLXBTYXHBBZJKSSDMALXHYCFYGMQYPJYCQXJLLLJGSLZGQLYCJCCZOTYXMTMTTLLWTGPXYMZMKLPSZZZXHKQYSXCTYJZYHXSHYXZKXLZWPSQPYHJWPJPWXQQYLXSDHMRSLZZYZWTTCYXYSZZSHBSCCSTPLWSSCJCHNLCGCHSSPHYLHFHHXJSXYLLNYLSZDHZXYLSXLWZYKCLDYAXZCMDDYSPJTQJZLNWQPSSSWCTSTSZLBLNXSMNYYMJQBQHRZWTYYDCHQLXKPZWBGQYBKFCMZWPZLLYYLSZYDWHXPSBCMLJBSCGBHXLQHYRLJXYSWXWXZSLDFHLSLYNJLZYFLYJYCDRJLFSYZFSLLCQYQFGJYHYXZLYLMSTDJCYHBZLLNWLXXYGYYHSMGDHXXHHLZZJZXCZZZCYQZFNGWPYLCPKPYYPMCLQKDGXZGGWQBDXZZKZFBXXLZXJTPJPTTBYTSZZDWSLCHZHSLTYXHQLHYXXXYYZYSWTXZKHLXZXZPYHGCHKCFSYHUTJRLXFJXPTZTWHPLYXFCRHXSHXKYXXYHZQDXQWULHYHMJTBFLKHTXCWHJFWJCFPQRYQXCYYYQYGRPYWSGSUNGWCHKZDXYFLXXHJJBYZWTSXXNCYJJYMSWZJQRMHXZWFQSYLZJZGBHYNSLBGTTCSYBYXXWXYHXYYXNSQYXMQYWRGYQLXBBZLJSYLPSYTJZYHYZAWLRORJMKSCZJXXXYXCHDYXRYXXJDTSQFXLYLTSFFYXLMTYJMJUYYYXLTZCSXQZQHZXLYYXZHDNBRXXXJCTYHLBRLMBRLLAXKYLLLJLYXXLYCRYLCJTGJCMTLZLLCYZZPZPCYAWHJJFYBDYYZSMPCKZDQYQPBPCJPDCYZMDPBCYYDYCNNPLMTMLRMFMMGWYZBSJGYGSMZQQQZTXMKQWGXLLPJGZBQCDJJJFPKJKCXBLJMSWMDTQJXLDLPPBXCWRCQFBFQJCZAHZGMYKPHYYHZYKNDKZMBPJYXPXYHLFPNYYGXJDBKXNXHJMZJXSTRSTLDXSKZYSYBZXJLXYSLBZYSLHXJPFXPQNBYLLJQKYGZMCYZZYMCCSLCLHZFWFWYXZMWSXTYNXJHPYYMCYSPMHYSMYDYSHQYZCHMJJMZCAAGCFJBBHPLYZYLXXSDJGXDHKXXTXXNBHRMLYJSLTXMRHNLXQJXYZLLYSWQGDLBJHDCGJYQYCMHWFMJYBMBYJYJWYMDPWHXQLDYGPDFXXBCGJSPCKRSSYZJMSLBZZJFLJJJLGXZGYXYXLSZQYXBEXYXHGCXBPLDYHWETTWWCJMBTXCHXYQXLLXFLYXLLJLSSFWDPZSMYJCLMWYTCZPCHQEKCQBWLCQYDPLQPPQZQFJQDJHYMMCXTXDRMJWRHXCJZYLQXDYYNHYYHRSLSRSYWWZJYMTLTLLGTQCJZYABTCKZCJYCCQLJZQXALMZYHYWLWDXZXQDLLQSHGPJFJLJHJABCQZDJGTKHSSTCYJLPSWZLXZXRWGLDLZRLZXTGSLLLLZLYXXWGDZYGBDPHZPBRLWSXQBPFDWOFMWHLYPCBJCCLDMBZPBZZLCYQXLDOMZBLZWPDWYYGDSTTHCSQSCCRSSSYSLFYBFNTYJSZDFNDPDHDZZMBBLSLCMYFFGTJJQWFTMTPJWFNLBZCMMJTGBDZLQLPYFHYYMJYLSDCHDZJWJCCTLJCLDTLJJCPDDSQDSSZYBNDBJLGGJZXSXNLYCYBJXQYCBYLZCFZPPGKCXZDZFZTJJFJSJXZBNZYJQTTYJYHTYCZHYMDJXTTMPXSPLZCDWSLSHXYPZGTFMLCJTYCBPMGDKWYCYZCDSZZYHFLYCTYGWHKJYYLSJCXGYWJCBLLCSNDDBTZBSCLYZCZZSSQDLLMQYYHFSLQLLXFTYHABXGWNYWYYPLLSDLDLLBJCYXJZMLHLJDXYYQYTDLLLBUGBFDFBBQJZZMDPJHGCLGMJJPGAEHHBWCQXAXHHHZCHXYPHJAXHLPHJPGPZJQCQZGJJZZUZDMQYYBZZPHYHYBWHAZYJHYKFGDPFQSDLZMLJXKXGALXZDAGLMDGXMWZQYXXDXXPFDMMSSYMPFMDMMKXKSYZYSHDZKXSYSMMZZZMSYDNZZCZXFPLSTMZDNMXCKJMZTYYMZMZZMSXHHDCZJEMXXKLJSTLWLSQLYJZLLZJSSDPPMHNLZJCZYHMXXHGZCJMDHXTKGRMXFWMCGMWKDTKSXQMMMFZZYDKMSCLCMPCGMHSPXQPZDSSLCXKYXTWLWJYAHZJGZQMCSNXYYMMPMLKJXMHLMLQMXCTKZMJQYSZJSYSZHSYJZJCDAJZYBSDQJZGWZQQXFKDMSDJLFWEHKZQKJPEYPZYSZCDWYJFFMZZYLTTDZZEFMZLBNPPLPLPEPSZALLTYLKCKQZKGENQLWAGYXYDPXLHSXQQWQCQXQCLHYXXMLYCCWLYMQYSKGCHLCJNSZKPYZKCQZQLJPDMDZHLASXLBYDWQLWDNBQCRYDDZTJYBKBWSZDXDTNPJDTCTQDFXQQMGNXECLTTBKPWSLCTYQLPWYZZKLPYGZCQQPLLKCCYLPQMZCZQCLJSLQZDJXLDDHPZQDLJJXZQDXYZQKZLJCYQDYJPPYPQYKJYRMPCBYMCXKLLZLLFQPYLLLMBSGLCYSSLRSYSQTMXYXZQZFDZUYSYZTFFMZZSMZQHZSSCCMLYXWTPZGXZJGZGSJSGKDDHTQGGZLLBJDZLCBCHYXYZHZFYWXYZYMSDBZZYJGTSMTFXQYXQSTDGSLNXDLRYZZLRYYLXQHTXSRTZNGZXBNQQZFMYKMZJBZYMKBPNLYZPBLMCNQYZZZSJZHJCTZKHYZZJRDYZHNPXGLFZTLKGJTCTSSYLLGZRZBBQZZKLPKLCZYSSUYXBJFPNJZZXCDWXZYJXZZDJJKGGRSRJKMSMZJLSJYWQSKYHQJSXPJZZZLSNSHRNYPZTWCHKLPSRZLZXYJQXQKYSJYCZTLQZYBBYBWZPQDWWYZCYTJCJXCKCWDKKZXSGKDZXWWYYJQYYTCYTDLLXWKCZKKLCCLZCQQDZLQLCSFQCHQHSFSMQZZLNBJJZBSJHTSZDYSJQJPDLZCDCWJKJZZLPYCGMZWDJJBSJQZSYZYHHXJPBJYDSSXDZNCGLQMBTSFSBPDZDLZNFGFJGFSMPXJQLMBLGQCYYXBQKDJJQYRFKZTJDHCZKLBSDZCFJTPLLJGXHYXZCSSZZXSTJYGKGCKGYOQXJPLZPBPGTGYJZGHZQZZLBJLSQFZGKQQJZGYCZBZQTLDXRJXBSXXPZXHYZYCLWDXJJHXMFDZPFZHQHQMQGKSLYHTYCGFRZGNQXCLPDLBZCSCZQLLJBLHBZCYPZZPPDYMZZSGYHCKCPZJGSLJLNSCDSLDLXBMSTLDDFJMKDJDHZLZXLSZQPQPGJLLYBDSZGQLBZLSLKYYHZTTNTJYQTZZPSZQZTLLJTYYLLQLLQYZQLBDZLSLYYZYMDFSZSNHLXZNCZQZPBWSKRFBSYZMTHBLGJPMCZZLSTLXSHTCSYZLZBLFEQHLXFLCJLYLJQCBZLZJHHSSTBRMHXZHJZCLXFNBGXGTQJCZTMSFZKJMSSNXLJKBHSJXNTNLZDNTLMSJXGZJYJCZXYJYJWRWWQNZTNFJSZPZSHZJFYRDJSFSZJZBJFZQZZHZLXFYSBZQLZSGYFTZDCSZXZJBQMSZKJRHYJZCKMJKHCHGTXKXQGLXPXFXTRTYLXJXHDTSJXHJZJXZWZLCQSBTXWXGXTXXHXFTSDKFJHZYJFJXRZSDLLLTQSQQZQWZXSYQTWGWBZCGZLLYZBCLMQQTZHZXZXLJFRMYZFLXYSQXXJKXRMQDZDMMYYBSQBHGZMWFWXGMXLZPYYTGZYCCDXYZXYWGSYJYZNBHPZJSQSYXSXRTFYZGRHZTXSZZTHCBFCLSYXZLZQMZLMPLMXZJXSFLBYZMYQHXJSXRXSQZZZSSLYFRCZJRCRXHHZXQYDYHXSJJHZCXZBTYNSYSXJBQLPXZQPYMLXZKYXLXCJLCYSXXZZLXDLLLJJYHZXGYJWKJRWYHCPSGNRZLFZWFZZNSXGXFLZSXZZZBFCSYJDBRJKRDHHGXJLJJTGXJXXSTJTJXLYXQFCSGSWMSBCTLQZZWLZZKXJMLTMJYHSDDBXGZHDLBMYJFRZFSGCLYJBPMLYSMSXLSZJQQHJZFXGFQFQBPXZGYYQXGZTCQWYLTLGWSGWHRLFSFGZJMGMGBGTJFSYZZGZYZAFLSSPMLPFLCWBJZCLJJMZLPJJLYMQDMYYYFBGYGYZMLYZDXQYXRQQQHSYYYQXYLJTYXFSFSLLGNQCYHYCWFHCCCFXPYLYPLLZYXXXXXKQHHXSHJZCFZSCZJXCPZWHHHHHAPYLQALPQAFYHXDYLUKMZQGGGDDESRNNZLTZGCHYPPYSQJJHCLLJTOLNJPZLJLHYMHEYDYDSQYCDDHGZUNDZCLZYZLLZNTNYZGSLHSLPJJBDGWXPCDUTJCKLKCLWKLLCASSTKZZDNQNTTLYYZSSYSSZZRYLJQKCQDHHCRXRZYDGRGCWCGZQFFFPPJFZYNAKRGYWYQPQXXFKJTSZZXSWZDDFBBXTBGTZKZNPZZPZXZPJSZBMQHKCYXYLDKLJNYPKYGHGDZJXXEAHPNZKZTZCMXCXMMJXNKSZQNMNLWBWWXJKYHCPSTMCSQTZJYXTPCTPDTNNPGLLLZSJLSPBLPLQHDTNJNLYYRSZFFJFQWDPHZDWMRZCCLODAXNSSNYZRESTYJWJYJDBCFXNMWTTBYLWSTSZGYBLJPXGLBOCLHPCBJLTMXZLJYLZXCLTPNCLCKXTPZJSWCYXSFYSZDKNTLBYJCYJLLSTGQCBXRYZXBXKLYLHZLQZLNZCXWJZLJZJNCJHXMNZZGJZZXTZJXYCYYCXXJYYXJJXSSSJSTSSTTPPGQTCSXWZDCSYFPTFBFHFBBLZJCLZZDBXGCXLQPXKFZFLSYLTUWBMQJHSZBMDDBCYSCCLDXYCDDQLYJJWMQLLCSGLJJSYFPYYCCYLTJANTJJPWYCMMGQYYSXDXQMZHSZXPFTWWZQSWQRFKJLZJQQYFBRXJHHFWJJZYQAZMYFRHCYYBYQWLPEXCCZSTYRLTTDMQLYKMBBGMYYJPRKZNPBSXYXBHYZDJDNGHPMFSGMWFZMFQMMBCMZZCJJLCNUXYQLMLRYGQZCYXZLWJGCJCGGMCJNFYZZJHYCPRRCMTZQZXHFQGTJXCCJEAQCRJYHPLQLSZDJRBCQHQDYRHYLYXJSYMHZYDWLDFRYHBPYDTSSCNWBXGLPZMLZZTQSSCPJMXXYCSJYTYCGHYCJWYRXXLFEMWJNMKLLSWTXHYYYNCMMCWJDQDJZGLLJWJRKHPZGGFLCCSCZMCBLTBHBQJXQDSPDJZZGKGLFQYWBZYZJLTSTDHQHCTCBCHFLQMPWDSHYYTQWCNZZJTLBYMBPDYYYXSQKXWYYFLXXNCWCXYPMAELYKKJMZZZBRXYYQJFLJPFHHHYTZZXSGQQMHSPGDZQWBWPJHZJDYSCQWZKTXXSQLZYYMYSDZGRXCKKUJLWPYSYSCSYZLRMLQSYLJXBCXTLWDQZPCYCYKPPPNSXFYZJJRCEMHSZMSXLXGLRWGCSTLRSXBZGBZGZTCPLUJLSLYLYMTXMTZPALZXPXJTJWTCYYZLBLXBZLQMYLXPGHDSLSSDMXMBDZZSXWHAMLCZCPJMCNHJYSNSYGCHSKQMZZQDLLKABLWJXSFMOCDXJRRLYQZKJMYBYQLYHETFJZFRFKSRYXFJTWDSXXSYSQJYSLYXWJHSNLXYYXHBHAWHHJZXWMYLJCSSLKYDZTXBZSYFDXGXZJKHSXXYBSSXDPYNZWRPTQZCZENYGCXQFJYKJBZMLJCMQQXUOXSLYXXLYLLJDZBTYMHPFSTTQQWLHOKYBLZZALZXQLHZWRRQHLSTMYPYXJJXMQSJFNBXYXYJXXYQYLTHYLQYFMLKLJTMLLHSZWKZHLJMLHLJKLJSTLQXYLMBHHLNLZXQJHXCFXXLHYHJJGBYZZKBXSCQDJQDSUJZYYHZHHMGSXCSYMXFEBCQWWRBPYYJQTYZCYQYQQZYHMWFFHGZFRJFCDPXNTQYZPDYKHJLFRZXPPXZDBBGZQSTLGDGYLCQMLCHHMFYWLZYXKJLYPQHSYWMQQGQZMLZJNSQXJQSYJYCBEHSXFSZPXZWFLLBCYYJDYTDTHWZSFJMQQYJLMQXXLLDTTKHHYBFPWTYYSQQWNQWLGWDEBZWCMYGCULKJXTMXMYJSXHYBRWFYMWFRXYQMXYSZTZZTFYKMLDHQDXWYYNLCRYJBLPSXCXYWLSPRRJWXHQYPHTYDNXHHMMYWYTZCSQMTSSCCDALWZTCPQPYJLLQZYJSWXMZZMMYLMXCLMXCZMXMZSQTZPPQQBLPGXQZHFLJJHYTJSRXWZXSCCDLXTYJDCQJXSLQYCLZXLZZXMXQRJMHRHZJBHMFLJLMLCLQNLDXZLLLPYPSYJYSXCQQDCMQJZZXHNPNXZMEKMXHYKYQLXSXTXJYYHWDCWDZHQYYBGYBCYSCFGPSJNZDYZZJZXRZRQJJYMCANYRJTLDPPYZBSTJKXXZYPFDWFGZZRPYMTNGXZQBYXNBUFNQKRJQZMJEGRZGYCLKXZDSKKNSXKCLJSPJYYZLQQJYBZSSQLLLKJXTBKTYLCCDDBLSPPFYLGYDTZJYQGGKQTTFZXBDKTYYHYBBFYTYYBCLPDYTGDHRYRNJSPTCSNYJQHKLLLZSLYDXXWBCJQSPXBPJZJCJDZFFXXBRMLAZHCSNDLBJDSZBLPRZTSWSBXBCLLXXLZDJZSJPYLYXXYFTFFFBHJJXGBYXJPMMMPSSJZJMTLYZJXSWXTYLEDQPJMYGQZJGDJLQJWJQLLSJGJGYGMSCLJJXDTYGJQJQJCJZCJGDZZSXQGSJGGCXHQXSNQLZZBXHSGZXCXYLJXYXYYDFQQJHJFXDHCTXJYRXYSQTJXYEFYYSSYYJXNCYZXFXMSYSZXYYSCHSHXZZZGZZZGFJDLTYLNPZGYJYZYYQZPBXQBDZTZCZYXXYHHSQXSHDHGQHJHGYWSZTMZMLHYXGEBTYLZKQWYTJZRCLEKYSTDBCYKQQSAYXCJXWWGSBHJYZYDHCSJKQCXSWXFLTYNYZPZCCZJQTZWJQDZZZQZLJJXLSBHPYXXPSXSHHEZTXFPTLQYZZXHYTXNCFZYYHXGNXMYWXTZSJPTHHGYMXMXQZXTSBCZYJYXXTYYZYPCQLMMSZMJZZLLZXGXZAAJZYXJMZXWDXZSXZDZXLEYJJZQBHZWZZZQTZPSXZTDSXJJJZNYAZPHXYYSRNQDTHZHYYKYJHDZXZLSWCLYBZYECWCYCRYLCXNHZYDZYDYJDFRJJHTRSQTXYXJRJHOJYNXELXSFSFJZGHPZSXZSZDZCQZBYYKLSGSJHCZSHDGQGXYZGXCHXZJWYQWGYHKSSEQZZNDZFKWYSSTCLZSTSYMCDHJXXYWEYXCZAYDMPXMDSXYBSQMJMZJMTZQLPJYQZCGQHXJHHLXXHLHDLDJQCLDWBSXFZZYYSCHTYTYYBHECXHYKGJPXHHYZJFXHWHBDZFYZBCAPNPGNYDMSXHMMMMAMYNBYJTMPXYYMCTHJBZYFCGTYHWPHFTWZZEZSBZEGPFMTSKFTYCMHFLLHGPZJXZJGZJYXZSBBQSCZZLZCCSTPGXMJSFTCCZJZDJXCYBZLFCJSYZFGSZLYBCWZZBYZDZYPSWYJZXZBDSYUXLZZBZFYGCZXBZHZFTPBGZGEJBSTGKDMFHYZZJHZLLZZGJQZLSFDJSSCBZGPDLFZFZSZYZYZSYGCXSNXXCHCZXTZZLJFZGQSQYXZJQDCCZTQCDXZJYQJQCHXZTDLGSCXZSYQJQTZWLQDQZTQCHQQJZYEZZZPBWKDJFCJPZTYPQYQTTYNLMBDKTJZPQZQZZFPZSBNJLGYJDXJDZZKZGQKXDLPZJTCJDQBXDJQJSTCKNXBXZMSLYJCQMTJQWWCJQNJNLLLHJCWQTBZQYDZCZPZZDZYDDCYZZZCCJTTJFZDPRRTZTJDCQTQZDTJNPLZBCLLCTZSXKJZQZPZLBZRBTJDCXFCZDBCCJJLTQQPLDCGZDBBZJCQDCJWYNLLZYZCCDWLLXWZLXRXNTQQCZXKQLSGDFQTDDGLRLAJJTKUYMKQLLTZYTDYYCZGJWYXDXFRSKSTQTENQMRKQZHHQKDLDAZFKYPBGGPZREBZZYKZZSPEGJXGYKQZZZSLYSYYYZWFQZYLZZLZHWCHKYPQGNPGBLPLRRJYXCCSYYHSFZFYBZYYTGZXYLXCZWXXZJZBLFFLGSKHYJZEYJHLPLLLLCZGXDRZELRHGKLZZYHZLYQSZZJZQLJZFLNBHGWLCZCFJYSPYXZLZLXGCCPZBLLCYBBBBUBBCBPCRNNZCZYRBFSRLDCGQYYQXYGMQZWTZYTYJXYFWTEHZZJYWLCCNTZYJJZDEDPZDZTSYQJHDYMBJNYJZLXTSSTPHNDJXXBYXQTZQDDTJTDYYTGWSCSZQFLSHLGLBCZPHDLYZJYCKWTYTYLBNYTSDSYCCTYSZYYEBHEXHQDTWNYGYCLXTSZYSTQMYGZAZCCSZZDSLZCLZRQXYYELJSBYMXSXZTEMBBLLYYLLYTDQYSHYMRQWKFKBFXNXSBYCHXBWJYHTQBPBSBWDZYLKGZSKYHXQZJXHXJXGNLJKZLYYCDXLFYFGHLJGJYBXQLYBXQPQGZTZPLNCYPXDJYQYDYMRBESJYYHKXXSTMXRCZZYWXYQYBMCLLYZHQYZWQXDBXBZWZMSLPDMYSKFMZKLZCYQYCZLQXFZZYDQZPZYGYJYZMZXDZFYFYTTQTZHGSPCZMLCCYTZXJCYTJMKSLPZHYSNZLLYTPZCTZZCKTXDHXXTQCYFKSMQCCYYAZHTJPCYLZLYJBJXTPNYLJYYNRXSYLMMNXJSMYBCSYSYLZYLXJJQYLDZLPQBFZZBLFNDXQKCZFYWHGQMRDSXYCYTXNQQJZYYPFZXDYZFPRXEJDGYQBXRCNFYYQPGHYJDYZXGRHTKYLNWDZNTSMPKLBTHBPYSZBZTJZSZZJTYYXZPHSSZZBZCZPTQFZMYFLYPYBBJQXZMXXDJMTSYSKKBJZXHJCKLPSMKYJZCXTMLJYXRZZQSLXXQPYZXMKYXXXJCLJPRMYYGADYSKQLSNDHYZKQXZYZTCGHZTLMLWZYBWSYCTBHJHJFCWZTXWYTKZLXQSHLYJZJXTMPLPYCGLTBZZTLZJCYJGDTCLKLPLLQPJMZPAPXYZLKKTKDZCZZBNZDYDYQZJYJGMCTXLTGXSZLMLHBGLKFWNWZHDXUHLFMKYSLGXDTWWFRJEJZTZHYDXYKSHWFZCQSHKTMQQHTZHYMJDJSKHXZJZBZZXYMPAGQMSTPXLSKLZYNWRTSQLSZBPSPSGZWYHTLKSSSWHZZLYYTNXJGMJSZSUFWNLSOZTXGXLSAMMLBWLDSZYLAKQCQCTMYCFJBSLXCLZZCLXXKSBZQCLHJPSQPLSXXCKSLNHPSFQQYTXYJZLQLDXZQJZDYYDJNZPTUZDSKJFSLJHYLZSQZLBTXYDGTQFDBYAZXDZHZJNHHQBYKNXJJQCZMLLJZKSPLDYCLBBLXKLELXJLBQYCXJXGCNLCQPLZLZYJTZLJGYZDZPLTQCSXFDMNYCXGBTJDCZNBGBQYQJWGKFHTNPYQZQGBKPBBYZMTJDYTBLSQMPSXTBNPDXKLEMYYCJYNZCTLDYKZZXDDXHQSHDGMZSJYCCTAYRZLPYLTLKXSLZCGGEXCLFXLKJRTLQJAQZNCMBYDKKCXGLCZJZXJHPTDJJMZQYKQSECQZDSHHADMLZFMMZBGNTJNNLGBYJBRBTMLBYJDZXLCJLPLDLPCQDHLXZLYCBLCXZZJADJLNZMMSSSMYBHBSQKBHRSXXJMXSDZNZPXLGBRHWGGFCXGMSKLLTSJYYCQLTSKYWYYHYWXBXQYWPYWYKQLSQPTNTKHQCWDQKTWPXXHCPTHTWUMSSYHBWCRWXHJMKMZNGWTMLKFGHKJYLSYYCXWHYECLQHKQHTTQKHFZLDXQWYZYYDESBPKYRZPJFYYZJCEQDZZDLATZBBFJLLCXDLMJSSXEGYGSJQXCWBXSSZPDYZCXDNYXPPZYDLYJCZPLTXLSXYZYRXCYYYDYLWWNZSAHJSYQYHGYWWAXTJZDAXYSRLTDPSSYYFNEJDXYZHLXLLLZQZSJNYQYQQXYJGHZGZCYJCHZLYCDSHWSHJZYJXCLLNXZJJYYXNFXMWFPYLCYLLABWDDHWDXJMCXZTZPMLQZHSFHZYNZTLLDYWLSLXHYMMYLMBWWKYXYADTXYLLDJPYBPWUXJMWMLLSAFDLLYFLBHHHBQQLTZJCQJLDJTFFKMMMBYTHYGDCQRDDWRQJXNBYSNWZDBYYTBJHPYBYTTJXAAHGQDQTMYSTQXKBTZPKJLZRBEQQSSMJJBDJOTGTBXPGBKTLHQXJJJCTHXQDWJLWRFWQGWSHCKRYSWGFTGYGBXSDWDWRFHWYTJJXXXJYZYSLPYYYPAYXHYDQKXSHXYXGSKQHYWFDDDPPLCJLQQEEWXKSYYKDYPLTJTHKJLTCYYHHJTTPLTZZCDLTHQKZXQYSTEEYWYYZYXXYYSTTJKLLPZMCYHQGXYHSRMBXPLLNQYDQHXSXXWGDQBSHYLLPJJJTHYJKYPPTHYYKTYEZYENMDSHLCRPQFDGFXZPSFTLJXXJBSWYYSKSFLXLPPLBBBLBSFXFYZBSJSSYLPBBFFFFSSCJDSTZSXZRYYSYFFSYZYZBJTBCTSBSDHRTJJBYTCXYJEYLXCBNEBJDSYXYKGSJZBXBYTFZWGENYHHTHZHHXFWGCSTBGXKLSXYWMTMBYXJSTZSCDYQRCYTWXZFHMYMCXLZNSDJTTTXRYCFYJSBSDYERXJLJXBBDEYNJGHXGCKGSCYMBLXJMSZNSKGXFBNBPTHFJAAFXYXFPXMYPQDTZCXZZPXRSYWZDLYBBKTYQPQJPZYPZJZNJPZJLZZFYSBTTSLMPTZRTDXQSJEHBZYLZDHLJSQMLHTXTJECXSLZZSPKTLZKQQYFSYGYWPCPQFHQHYTQXZKRSGTTSQCZLPTXCDYYZXSQZSLXLZMYCPCQBZYXHBSXLZDLTCDXTYLZJYYZPZYZLTXJSJXHLPMYTXCQRBLZSSFJZZTNJYTXMYJHLHPPLCYXQJQQKZZSCPZKSWALQSBLCCZJSXGWWWYGYKTJBBZTDKHXHKGTGPBKQYSLPXPJCKBMLLXDZSTBKLGGQKQLSBKKTFXRMDKBFTPZFRTBBRFERQGXYJPZSSTLBZTPSZQZSJDHLJQLZBPMSMMSXLQQNHKNBLRDDNXXDHDDJCYYGYLXGZLXSYGMQQGKHBPMXYXLYTQWLWGCPBMQXCYZYDRJBHTDJYHQSHTMJSBYPLWHLZFFNYPMHXXHPLTBQPFBJWQDBYGPNZTPFZJGSDDTQSHZEAWZZYLLTYYBWJKXXGHLFKXDJTMSZSQYNZGGSWQSPHTLSSKMCLZXYSZQZXNCJDQGZDLFNYKLJCJLLZLMZZNHYDSSHTHZZLZZBBHQZWWYCRZHLYQQJBEYFXXXWHSRXWQHWPSLMSSKZTTYGYQQWRSLALHMJTQJSMXQBJJZJXZYZKXBYQXBJXSHZTSFJLXMXZXFGHKZSZGGYLCLSARJYHSLLLMZXELGLXYDJYTLFBHBPNLYZFBBHPTGJKWETZHKJJXZXXGLLJLSTGSHJJYQLQZFKCGNNDJSSZFDBCTWWSEQFHQJBSAQTGYPQLBXBMMYWXGSLZHGLZGQYFLZBYFZJFRYSFMBYZHQGFWZSYFYJJPHZBYYZFFWODGRLMFTWLBZGYCQXCDJYGZYYYYTYTYDWEGAZYHXJLZYYHLRMGRXXZCLHNELJJTJTPWJYBJJBXJJTJTEEKHWSLJPLPSFYZPQQBDLQJJTYYQLYZKDKSQJYYQZLDQTGJQYZJSUCMRYQTHTEJMFCTYHYPKMHYZWJDQFHYYXWSHCTXRLJHQXHCCYYYJLTKTTYTMXGTCJTZAYYOCZLYLBSZYWJYTSJYHBYSHFJLYGJXXTMZYYLTXXYPZLXYJZYZYYPNHMYMDYYLBLHLSYYQQLLNJJYMSOYQBZGDLYXYLCQYXTSZEGXHZGLHWBLJHEYXTWQMAKBPQCGYSHHEGQCMWYYWLJYJHYYZLLJJYLHZYHMGSLJLJXCJJYCLYCJPCPZJZJMMYLCQLNQLJQJSXYJMLSZLJQLYCMMHCFMMFPQQMFYLQMCFFQMMMMHMZNFHHJGTTHHKHSLNCHHYQDXTMMQDCYZYXYQMYQYLTDCYYYZAZZCYMZYDLZFFFMMYCQZWZZMABTBYZTDMNZZGGDFTYPCGQYTTSSFFWFDTZQSSYSTWXJHXYTSXXYLBYQHWWKXHZXWZNNZZJZJJQJCCCHYYXBZXZCYZTLLCQXYNJYCYYCYNZZQYYYEWYCZDCJYCCHYJLBTZYYCQWMPWPYMLGKDLDLGKQQBGYCHJXY",e.oMultiDiff={19969:"DZ",19975:"WM",19988:"QJ",20048:"YL",20056:"SC",20060:"NM",20094:"QG",20127:"QJ",20167:"QC",20193:"YG",20250:"KH",20256:"ZC",20282:"SC",20285:"QJG",20291:"TD",20314:"YD",20340:"NE",20375:"TD",20389:"YJ",20391:"CZ",20415:"PB",20446:"YS",20447:"SQ",20504:"TC",20608:"KG",20854:"QJ",20857:"ZC",20911:"PF",20985:"AW",21032:"PB",21048:"XQ",21049:"SC",21089:"YS",21119:"JC",21242:"SB",21273:"SC",21305:"YP",21306:"QO",21330:"ZC",21333:"SDC",21345:"QK",21378:"CA",21397:"SC",21414:"XS",21442:"SC",21477:"JG",21480:"TD",21484:"ZS",21494:"YX",21505:"YX",21512:"HG",21523:"XH",21537:"PB",21542:"PF",21549:"KH",21571:"E",21574:"DA",21588:"TD",21589:"O",21618:"ZC",21621:"KHA",21632:"ZJ",21654:"KG",21679:"LKG",21683:"KH",21710:"A",21719:"YH",21734:"WOE",21769:"A",21780:"WN",21804:"XH",21834:"A",21899:"ZD",21903:"RN",21908:"WO",21939:"ZC",21956:"SA",21964:"YA",21970:"TD",22003:"A",22031:"JG",22040:"XS",22060:"ZC",22066:"ZC",22079:"MH",22129:"XJ",22179:"XA",22237:"NJ",22244:"TD",22280:"JQ",22300:"YH",22313:"XW",22331:"YQ",22343:"YJ",22351:"PH",22395:"DC",22412:"TD",22484:"PB",22500:"PB",22534:"ZD",22549:"DH",22561:"PB",22612:"TD",22771:"KQ",22831:"HB",22841:"JG",22855:"QJ",22865:"XQ",23013:"ML",23081:"WM",23487:"SX",23558:"QJ",23561:"YW",23586:"YW",23614:"YW",23615:"SN",23631:"PB",23646:"ZS",23663:"ZT",23673:"YG",23762:"TD",23769:"ZS",23780:"QJ",23884:"QK",24055:"XH",24113:"DC",24162:"ZC",24191:"GA",24273:"QJ",24324:"NL",24377:"TD",24378:"QJ",24439:"PF",24554:"ZS",24683:"TD",24694:"WE",24733:"LK",24925:"TN",25094:"ZG",25100:"XQ",25103:"XH",25153:"PB",25170:"PB",25179:"KG",25203:"PB",25240:"ZS",25282:"FB",25303:"NA",25324:"KG",25341:"ZY",25373:"WZ",25375:"XJ",25384:"A",25457:"A",25528:"SD",25530:"SC",25552:"TD",25774:"ZC",25874:"ZC",26044:"YW",26080:"WM",26292:"PB",26333:"PB",26355:"ZY",26366:"CZ",26397:"ZC",26399:"QJ",26415:"ZS",26451:"SB",26526:"ZC",26552:"JG",26561:"TD",26588:"JG",26597:"CZ",26629:"ZS",26638:"YL",26646:"XQ",26653:"KG",26657:"XJ",26727:"HG",26894:"ZC",26937:"ZS",26946:"ZC",26999:"KJ",27099:"KJ",27449:"YQ",27481:"XS",27542:"ZS",27663:"ZS",27748:"TS",27784:"SC",27788:"ZD",27795:"TD",27812:"O",27850:"PB",27852:"MB",27895:"SL",27898:"PL",27973:"QJ",27981:"KH",27986:"HX",27994:"XJ",28044:"YC",28065:"WG",28177:"SM",28267:"QJ",28291:"KH",28337:"ZQ",28463:"TL",28548:"DC",28601:"TD",28689:"PB",28805:"JG",28820:"QG",28846:"PB",28952:"TD",28975:"ZC",29100:"A",29325:"QJ",29575:"SL",29602:"FB",30010:"TD",30044:"CX",30058:"PF",30091:"YSP",30111:"YN",30229:"XJ",30427:"SC",30465:"SX",30631:"YQ",30655:"QJ",30684:"QJG",30707:"SD",30729:"XH",30796:"LG",30917:"PB",31074:"NM",31085:"JZ",31109:"SC",31181:"ZC",31192:"MLB",31293:"JQ",31400:"YX",31584:"YJ",31896:"ZN",31909:"ZY",31995:"XJ",32321:"PF",32327:"ZY",32418:"HG",32420:"XQ",32421:"HG",32438:"LG",32473:"GJ",32488:"TD",32521:"QJ",32527:"PB",32562:"ZSQ",32564:"JZ",32735:"ZD",32793:"PB",33071:"PF",33098:"XL",33100:"YA",33152:"PB",33261:"CX",33324:"BP",33333:"TD",33406:"YA",33426:"WM",33432:"PB",33445:"JG",33486:"ZN",33493:"TS",33507:"QJ",33540:"QJ",33544:"ZC",33564:"XQ",33617:"YT",33632:"QJ",33636:"XH",33637:"YX",33694:"WG",33705:"PF",33728:"YW",33882:"SR",34067:"WM",34074:"YW",34121:"QJ",34255:"ZC",34259:"XL",34425:"JH",34430:"XH",34485:"KH",34503:"YS",34532:"HG",34552:"XS",34558:"YE",34593:"ZL",34660:"YQ",34892:"XH",34928:"SC",34999:"QJ",35048:"PB",35059:"SC",35098:"ZC",35203:"TQ",35265:"JX",35299:"JX",35782:"SZ",35828:"YS",35830:"E",35843:"TD",35895:"YG",35977:"MH",36158:"JG",36228:"QJ",36426:"XQ",36466:"DC",36710:"JC",36711:"ZYG",36767:"PB",36866:"SK",36951:"YW",37034:"YX",37063:"XH",37218:"ZC",37325:"ZC",38063:"PB",38079:"TD",38085:"QY",38107:"DC",38116:"TD",38123:"YD",38224:"HG",38241:"XTC",38271:"ZC",38415:"YE",38426:"KH",38461:"YD",38463:"AE",38466:"PB",38477:"XJ",38518:"YT",38551:"WK",38585:"ZC",38704:"XS",38739:"LJ",38761:"GJ",38808:"SQ",39048:"JG",39049:"XJ",39052:"HG",39076:"CZ",39271:"XT",39534:"TD",39552:"TD",39584:"PB",39647:"SB",39730:"LG",39748:"TPB",40109:"ZQ",40479:"ND",40516:"HG",40536:"HG",40583:"QJ",40765:"YQ",40784:"QJ",40840:"YK",40863:"QJG"},e}(),IW=function(){function e(){}return e.prototype.makePy=function(e){if("string"!=typeof e)throw new Error("函数makePy需要字符串类型参数!");for(var t=new Array,i=0,n=e.length;i<n;i++){var r=e.charAt(i);t.push(this.checkCh(r))}return this.mkRslt(t)},e.prototype.checkCh=function(e){var t=e.charCodeAt(0);return t>40869||t<19968?e:BW.oMultiDiff[t]?BW.oMultiDiff[t]:BW.strChineseFirstPY.charAt(t-19968)},e.prototype.mkRslt=function(e){for(var t=[""],i=0,n=e.length;i<n;i++){var r=e[i],o=r.length;if(1==o)for(var s=0;s<t.length;s++)t[s]+=r;else{var a=t.slice(0);for(t=[],s=0;s<o;s++){for(var l=a.slice(0),u=0;u<l.length;u++)l[u]+=r.charAt(s);t=t.concat(l)}}}return t},e}();!function(e){e[e.byClick=0]="byClick",e[e.withPrevious=1]="withPrevious",e[e.afterPrevious=2]="afterPrevious"}(yW||(yW={}));var RW,NW=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),kW=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},FW=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},HW=function(e){function t(){return e.call(this)||this}return NW(t,e),Object.defineProperty(t.prototype,"htmlElement",{get:function(){return this._htmlElement||(this._htmlElement=document.getElementById(this.htmlElementId)),this._htmlElement},enumerable:!1,configurable:!0}),t.prototype.initAnimation=function(){},t.prototype.onTick=function(e){},t.prototype.stopAnimation=function(){},kW([rm(),FW("design:type",Object)],t.prototype,"_htmlElement",void 0),kW([rm(),FW("design:type",Object),FW("design:paramtypes",[])],t.prototype,"htmlElement",null),kW([rm(),FW("design:type",Object)],t.prototype,"sampledProperty",void 0),t=kW([HR("CssAnimationBase"),FW("design:paramtypes",[])],t)}(zR),YW=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),jW=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},UW=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},GW=function(e){function t(){var t=e.call(this)||this;return t.hasReadFulltime=!1,setTimeout(function(){t.initAnimation()},1e3),t}return YW(t,e),t.prototype.initAnimation=function(){this.media=document.getElementById(this.htmlElementId+"_media"),this.media&&!this.hasReadFulltime&&(this.initComplete=new am,this.fulltime=this.media.duration,this.duration=this.fulltime,this.hasReadFulltime=!0,this.initComplete.next(1))},t.prototype.onTick=function(e){var t=e;this.htmlElement&&(t>=this.beginTime+this.duration?this.stopAnimation():t>=this.beginTime&&this.media.paused&&this.media.play())},t.prototype.stopAnimation=function(){this.htmlElement&&this.media.load()},t=jW([HR("VideoAnimation"),UW("design:paramtypes",[])],t)}(HW),QW=__webpack_require__(6763),zW=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),WW=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},XW=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},VW=function(e){function t(){var t=e.call(this)||this;return t.hasReadFulltime=!1,setTimeout(function(){t.initAnimation()},1e3),t.hideValues=["fillBehavior"],t}return zW(t,e),Object.defineProperty(t.prototype,"target",{get:function(){return $B.getMusic(this.targetId)},enumerable:!1,configurable:!0}),t.prototype.initAnimation=function(){var e;this.label="音效",this.media=null===(e=this.target)||void 0===e?void 0:e.audioObj,this.media&&!this.hasReadFulltime&&(this.initComplete=new am,this.fulltime=this.media.duration,this.duration=this.fulltime,this.hasReadFulltime=!0,this.initComplete.next(1))},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration)this.stopAnimation();else if(t>=this.beginTime)try{this.media.paused&&this.media.play()}catch(e){QW.log(e)}},t.prototype.stopAnimation=function(){this.media.load()},WW([rm(),XW("design:type",Object),XW("design:paramtypes",[])],t.prototype,"target",null),WW([rm(),XW("design:type",Object)],t.prototype,"media",void 0),t=WW([HR("AudioAnimation"),XW("design:paramtypes",[])],t)}(zR),JW=__webpack_require__(6763),KW=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ZW=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},qW=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},$W=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},eX=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},tX=function(e){function t(){var t=e.apply(this,eX([],$W(arguments),!1))||this;return t.defaultValue=void 0,t}return KW(t,e),t.prototype.createSampledProperty=function(){},t.prototype.initAnimation=function(){var e=this;this.geojsonDataSource=this.viewer.dataSources._dataSources.find(function(t){return t.name===e.dataSourceName}),this.geojsonDataSource&&(JW.log("geojsonDataSource",this.geojsonDataSource),this.defaultValue=this.geojsonDataSource[this.property])},t.prototype.stopAnimation=function(){this.geojsonDataSource&&(this.geojsonDataSource[this.property]=this.defaultValue)},t.prototype.onTick=function(e){var t=this,i=e;if(this.geojsonDataSource)if(i>=this.beginTime+this.duration){var n=YR.HoldEnd;this.fillBehavior==n?this.geojsonDataSource[this.property]=this.to:this.stopAnimation(),this.geojsonDataSource.addedGJPlot.show=this.defaultValue}else if(i>=this.beginTime){var r=this.getCurrentValue(e);this.geojsonDataSource[this.property]=r,this.entityType&&this.geojsonDataSource.entities.values.forEach(function(e){return e[t.entityType][t.property]=r}),this.geojsonDataSource.addedGJPlot.show=r}},t.prototype.getCurrentValue=function(e){var t=e,i=this.beginTime+this.duration;return t<this.beginTime?this.from:t>i?this.to:this.sampledProperty.getValue(this.getCesiumAnimationTime(e))},ZW([rm(),qW("design:type",Object)],t.prototype,"geojsonDataSource",void 0),ZW([em({name:"起始值",group:"",type:"owner",order:5,max:1,min:0}),qW("design:type",Object)],t.prototype,"from",void 0),ZW([em({name:"终止值",group:"",type:"owner",order:6,max:1,min:0}),qW("design:type",Object)],t.prototype,"to",void 0),t=ZW([HR("GeojsonAnimation")],t)}(zR),iX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),nX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},rX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},oX=function(e){function t(){var t=e.call(this)||this;return t.isexecuted=!1,t.speed=1,t.hideValues=["fillBehavior"],t}return iX(t,e),t.prototype.stopAnimation=function(){},t.prototype.initAnimation=function(){this.isexecuted=!1},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration||t<this.beginTime)this.isexecuted=!1;else if(t>=this.beginTime){if(this.isexecuted){var i=this.viewer,n=i.camera,r=i.clock,o=i.scene;if(o.mode!==Cesium.SceneMode.SCENE3D)return;o.globe.ellipsoid.cartesianToCartographic(n.position).height,r.currentTime;n.rotate(Cesium.Cartesian3.UNIT_Z,Math.PI/86400*1440*(this.speed*IN.multiplier/100))}else void 0!==this.heading&&void 0!==this.pitch&&void 0!==this.roll&&void 0!==this.lon&&void 0!==this.lat&&void 0!==this.alt&&this.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(this.lon,this.lat,this.alt),orientation:{heading:Cesium.Math.toRadians(this.heading),pitch:Cesium.Math.toRadians(this.pitch),roll:this.roll}});this.isexecuted=!0}},t.prototype.set=function(){var e=this.viewer.camera,t=this.viewer.camera.positionWC;for(var i in this.lon=km.getLongitudeByCartesian3(t,this.viewer),this.lat=km.getLatitudeByCartesian3(t,this.viewer),this.alt=km.getHeightByCartesian3(t,this.viewer),this.heading=Cesium.Math.toDegrees(e.heading),this.pitch=Cesium.Math.toDegrees(e.pitch),this.roll=e.roll,this.__meta__)this.__meta__[i].isError=!1},nX([rm(),rX("design:type",Object)],t.prototype,"isexecuted",void 0),nX([em({name:"自转速率",group:"",type:"autoRotateSpeed",order:16,min:1,max:10}),rX("design:type",Number)],t.prototype,"speed",void 0),nX([em({name:"获取视角",group:"",type:"function",order:17}),rX("design:type",Function),rX("design:paramtypes",[]),rX("design:returntype",void 0)],t.prototype,"set",null),t=nX([HR("AutoRotationAnimation"),rX("design:paramtypes",[])],t)}(zR),sX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),aX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},lX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},uX=function(e){function t(){var t=e.call(this)||this;return t.pHeight=25e3,t.isexecuted=!1,t.hideValues=["fillBehavior"],t}return sX(t,e),t.prototype.stopAnimation=function(){},t.prototype.initAnimation=function(){this.isexecuted=!1},t.prototype.onTick=function(e){var t=this,i=e;i>=this.beginTime+this.duration||i<this.beginTime||this.isexecuted||(this.isexecuted=!0,this.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.lon,this.lat,1e3*this.pHeight),orientation:{heading:Cesium.Math.toRadians(this.heading),pitch:Cesium.Math.toRadians(this.pitch),roll:this.roll},duration:this.duration/(10*IN.multiplier)*3,easingFunction:function(e){return e},complete:function(){t.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(t.lon,t.lat,t.alt),orientation:{heading:Cesium.Math.toRadians(t.heading),pitch:Cesium.Math.toRadians(t.pitch),roll:t.roll},duration:t.duration/(10*IN.multiplier)*7,easingFunction:function(e){return e*(2-e)}})}}))},t.prototype.set=function(){var e=this.viewer.camera,t=this.viewer.camera.positionWC;for(var i in this.lon=km.getLongitudeByCartesian3(t,this.viewer),this.lat=km.getLatitudeByCartesian3(t,this.viewer),this.alt=km.getHeightByCartesian3(t,this.viewer),this.heading=Cesium.Math.toDegrees(e.heading),this.pitch=Cesium.Math.toDegrees(e.pitch),this.roll=e.roll,this.__meta__)this.__meta__[i].isError=!1},aX([em({name:"相机经度",group:"",type:"zoomSliderInput",order:11,min:-180,max:180}),lX("design:type",Number)],t.prototype,"lon",void 0),aX([em({name:"相机纬度",group:"",type:"zoomSliderInput",order:12,min:-90,max:90}),lX("design:type",Number)],t.prototype,"lat",void 0),aX([em({name:"相机高度",group:"",type:"zoomSliderInput",order:13,min:0,max:99999999}),lX("design:type",Number)],t.prototype,"alt",void 0),aX([em({name:"相机朝向",group:"",type:"zoomSliderInput",order:14,min:-360,max:360}),lX("design:type",Number)],t.prototype,"heading",void 0),aX([em({name:"相机俯仰",group:"",type:"zoomSliderInput",order:15,min:-360,max:360}),lX("design:type",Number)],t.prototype,"pitch",void 0),aX([em({name:"相机偏航",group:"",type:"zoomSliderInput",order:16,min:-360,max:360}),lX("design:type",Number)],t.prototype,"roll",void 0),aX([em({name:"拉起高度",group:"",type:"zoomSliderInput",order:16,min:0,max:99999}),lX("design:type",Object)],t.prototype,"pHeight",void 0),aX([rm(),lX("design:type",Object)],t.prototype,"isexecuted",void 0),aX([em({name:"获取视角",group:"",type:"function",order:17}),lX("design:type",Function),lX("design:paramtypes",[]),lX("design:returntype",void 0)],t.prototype,"set",null),t=aX([HR("ZoomToFlyAnimation"),lX("design:paramtypes",[])],t)}(zR),cX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),hX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},pX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},dX=function(e){function t(){var t=e.call(this)||this;return t.isexecuted=!1,t.hideValues=["fillBehavior"],t}return cX(t,e),t.prototype.stopAnimation=function(){},t.prototype.initAnimation=function(){this.isexecuted=!1},t.prototype.onTick=function(e){var t=e;t>=this.beginTime+this.duration?this.isexecuted=!1:t>=this.beginTime&&(this.isexecuted||this.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.lon,this.lat,this.alt),orientation:{heading:Cesium.Math.toRadians(this.heading),pitch:Cesium.Math.toRadians(this.pitch),roll:this.roll},duration:this.duration}),this.isexecuted=!0)},t.prototype.set=function(){var e=this.viewer.camera,t=this.viewer.camera.positionWC;for(var i in this.lon=km.getLongitudeByCartesian3(t,this.viewer),this.lat=km.getLatitudeByCartesian3(t,this.viewer),this.alt=km.getHeightByCartesian3(t,this.viewer),this.heading=Cesium.Math.toDegrees(e.heading),this.pitch=Cesium.Math.toDegrees(e.pitch),this.roll=e.roll,this.__meta__)this.__meta__[i].isError=!1},hX([rm(),pX("design:type",Object)],t.prototype,"isexecuted",void 0),hX([em({name:"相机经度",group:"",type:"numberNew",order:11,min:-180,max:180}),pX("design:type",Number)],t.prototype,"lon",void 0),hX([em({name:"相机纬度",group:"",type:"numberNew",order:12,min:-90,max:90}),pX("design:type",Number)],t.prototype,"lat",void 0),hX([em({name:"相机高度",group:"",type:"numberNew",order:13,min:0}),pX("design:type",Number)],t.prototype,"alt",void 0),hX([em({name:"相机朝向",group:"",type:"numberNew",order:14,min:-360,max:360}),pX("design:type",Number)],t.prototype,"heading",void 0),hX([em({name:"相机俯仰",group:"",type:"numberNew",order:15,min:-360,max:360}),pX("design:type",Number)],t.prototype,"pitch",void 0),hX([em({name:"相机偏航",group:"",type:"numberNew",order:16,min:-360,max:360}),pX("design:type",Number)],t.prototype,"roll",void 0),hX([em({name:"获取视角",group:"",type:"function",order:17}),pX("design:type",Function),pX("design:paramtypes",[]),pX("design:returntype",void 0)],t.prototype,"set",null),t=hX([HR("CameraFlyAnimation"),pX("design:paramtypes",[])],t)}(zR),fX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),mX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},gX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},yX=function(e){function t(){var t=e.call(this)||this;return t.isexecuted=!1,t.hideValues=["fillBehavior"],t}return fX(t,e),t.prototype.stopAnimation=function(){this.isexecuted=!1,this.polyLine,this.viewer.trackedEntity=void 0},t.prototype.initAnimation=function(){this.isexecuted=!1},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration)this.stopAnimation();else if(t>=this.beginTime){t-=this.beginTime;var i=this.polyLine.interopLine.evaluate(t/this.duration);this.viewer.scene.camera.setView({destination:i,orientation:{heading:Cesium.Math.toRadians(this.heading),pitch:Cesium.Math.toRadians(this.pitch),role:Cesium.Math.toRadians(this.roll)}})}},t.prototype.set=function(){var e=this.viewer.camera;this.viewer.camera.positionWC;for(var t in this.heading=Cesium.Math.toDegrees(e.heading),this.pitch=Cesium.Math.toDegrees(e.pitch),this.roll=Cesium.Math.toDegrees(e.roll),this.__meta__)this.__meta__[t].isError=!1},Object.defineProperty(t.prototype,"polyLine",{get:function(){return Yf.getGraph(this.polyLineId)},enumerable:!1,configurable:!0}),t.prototype.toRadians=function(e){return e*Math.PI/180},t.prototype.toDegrees=function(e){return 180*e/Math.PI},t.prototype.car3ToLonlat=function(e){var t=this.viewer.scene.globe.ellipsoid.cartesianToCartographic(e);return{lat:Cesium.Math.toDegrees(t.latitude),lng:Cesium.Math.toDegrees(t.longitude)}},mX([rm(),gX("design:type",Array)],t.prototype,"polyLinePosition",void 0),mX([rm(),gX("design:type",Object)],t.prototype,"defaultPolyLinePosition",void 0),mX([rm(),gX("design:type",Object)],t.prototype,"isexecuted",void 0),mX([em({name:"相机朝向",group:"",type:"numberNew",order:14,min:-360,max:360}),gX("design:type",Number)],t.prototype,"heading",void 0),mX([em({name:"相机俯仰",group:"",type:"numberNew",order:15,min:-360,max:360}),gX("design:type",Number)],t.prototype,"pitch",void 0),mX([em({name:"相机偏航",group:"",type:"numberNew",order:16,min:-360,max:360}),gX("design:type",Number)],t.prototype,"roll",void 0),mX([em({name:"获取视角",group:"",type:"function",order:17}),gX("design:type",Function),gX("design:paramtypes",[]),gX("design:returntype",void 0)],t.prototype,"set",null),mX([em({name:"路径线",group:"",type:"displayTarget",order:9}),rm(),gX("design:type",eF),gX("design:paramtypes",[])],t.prototype,"polyLine",null),mX([rm(),gX("design:type",Cesium.SampledPositionProperty)],t.prototype,"sampledProperty",void 0),t=mX([HR("CameraRoamAnimation"),gX("design:paramtypes",[])],t)}(zR),_X=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),AX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},vX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},CX=function(e){function t(){var t=e.call(this)||this;return t.isexecuted=!1,t.hideValues=["fillBehavior"],t}return _X(t,e),Object.defineProperty(t.prototype,"target",{get:function(){return Yf.getGraph(this.targetId)},enumerable:!1,configurable:!0}),t.prototype.stopAnimation=function(){this.isexecuted=!1},t.prototype.initAnimation=function(){this.isexecuted=!1},t.prototype.initTargetPosition=function(){if(this.target instanceof sI)if(this.target instanceof sQ||this.target instanceof nH){var e=this.target.ctrlPosition[0];this.targetPosition=Cesium.Cartesian3.fromDegrees(e.lon,e.lat,e.alt,this.viewer.scene.globe.ellipsoid)}else this.targetPosition=this.target.positionProperty;else this.target instanceof qI||this.target instanceof mR?this.targetPosition=this.target.ent.position.getValue():this.targetPosition=this.target.ent.position._value;this.targetPosition&&(this.targetLLA=this.car3ToLonlat(this.targetPosition))},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration)this.stopAnimation();else if(t>=this.beginTime){t-=this.beginTime,this.initTargetPosition();var i=this.polyLine.interopLine.evaluate(t/this.duration);if(this.targetPosition&&i){var n=this.computerOrient(i,this.targetPosition);this.viewer.scene.camera.setView({destination:i,orientation:{heading:Cesium.Math.toRadians(n.heading+90),pitch:Cesium.Math.toRadians(n.pitch),role:Cesium.Math.toRadians(n.roll)}})}}},Object.defineProperty(t.prototype,"polyLine",{get:function(){return Yf.getGraph(this.polyLineId)},enumerable:!1,configurable:!0}),t.prototype.car3ToLonlat=function(e){var t=this.viewer.scene.globe.ellipsoid.cartesianToCartographic(e);return{lat:Cesium.Math.toDegrees(t.latitude),lng:Cesium.Math.toDegrees(t.longitude)}},t.prototype.vec1ToVec2Mat=function(e,t){var i=Cesium.Cartesian3.cross(e,t,new Cesium.Cartesian3(0,0,0)),n=Cesium.Math.acosClamped(Cesium.Cartesian3.dot(e,t)/(Cesium.Cartesian3.magnitude(e)*Cesium.Cartesian3.magnitude(t))),r=Cesium.Quaternion.fromAxisAngle(i,n,new Cesium.Quaternion(0,0,0,0));return Cesium.Matrix3.fromQuaternion(r,new Cesium.Matrix3)},t.prototype.computerOrient=function(e,t){var i,n,r=Cesium.Transforms.eastNorthUpToFixedFrame(e),o=Cesium.Quaternion.clone(Cesium.Quaternion.IDENTITY),s=(Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY)),a=Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),l=new Cesium.Cartesian3(0,0,0);return s=Cesium.Matrix4.getMatrix3(r,s),l=Cesium.Cartesian3.subtract(t,e,l),a=Cesium.Matrix3.inverse(s,a),l=Cesium.Matrix3.multiplyByVector(a,l,l),i=this.vec1ToVec2Mat(Cesium.Cartesian3.UNIT_X,Cesium.Cartesian3.normalize(l,l)),o=Cesium.Quaternion.fromRotationMatrix(i,o),n=Cesium.HeadingPitchRoll.fromQuaternion(o,n),{heading:Cesium.Math.toDegrees(n.heading),pitch:Cesium.Math.toDegrees(n.pitch),roll:Cesium.Math.toDegrees(n.roll)}},AX([em({name:"标绘元素",group:"",type:"displayTarget",order:9}),rm(),vX("design:type",qm),vX("design:paramtypes",[])],t.prototype,"target",null),AX([rm(),vX("design:type",Object)],t.prototype,"isexecuted",void 0),AX([em({name:"路径线",group:"",type:"displayTarget",order:9}),rm(),vX("design:type",eF),vX("design:paramtypes",[])],t.prototype,"polyLine",null),t=AX([HR("FollowAnimation"),vX("design:paramtypes",[])],t)}(zR),bX=function(){function e(){}return e.getModelMatrix=function(t,i,n,r,o){if(null==t)return n;var s=Cesium.Property.getValueOrUndefined(t.position,i,e.positionScratch);if(Cesium.defined(s)){if(r){var a=r.scene.globe.ellipsoid.cartesianToCartographic(s),l=r.scene.globe.getHeight(a);o&&(l+=o),a.height=l,s=r.scene.globe.ellipsoid.cartographicToCartesian(a)}var u=Cesium.Property.getValueOrUndefined(t.orientation,i,e.orientationScratch);return n=Cesium.defined(u)?Cesium.Matrix4.fromRotationTranslation(Cesium.Matrix3.fromQuaternion(u),s,n):Cesium.Transforms.eastNorthUpToFixedFrame(s,void 0,n)}},e.matrix3Scratch=Cesium.Matrix3,e.positionScratch=Cesium.Cartesian3?new Cesium.Cartesian3:null,e.orientationScratch=Cesium.Quaternion?new Cesium.Quaternion:null,e}(),wX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),xX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},SX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},MX=function(e){function t(){var t=e.call(this)||this;return t.isexecuted=!1,t.cameraPath=void 0,t.heightConfig=2e5,t.scratch=new Cesium.Matrix4,t.hideValues=["fillBehavior"],t.startAngle=-180,t.endAngle=180,t}return wX(t,e),Object.defineProperty(t.prototype,"target",{get:function(){return Yf.getGraph(this.targetId)},enumerable:!1,configurable:!0}),t.prototype.stopAnimation=function(){this.isexecuted=!1},t.prototype.initAnimation=function(){this.isexecuted=!1},t.prototype.initTargetPosition=function(){if(this.target instanceof sI)if(this.target instanceof sQ||this.target instanceof nH){var e=this.target.ctrlPosition[0];this.targetPosition=Cesium.Cartesian3.fromDegrees(e.lon,e.lat,e.alt,this.viewer.scene.globe.ellipsoid)}else this.targetPosition=this.target.positionProperty;else this.target instanceof qI||this.target instanceof mR?this.targetPosition=this.target.ent.position.getValue():this.targetPosition=this.target.ent.position._value;this.targetPosition&&(this.targetLLA=this.car3ToLonlat(this.targetPosition))},t.prototype.createPathLine=function(){var e=this;if(this.initTargetPosition(),this.targetPosition){if(this.cameraPath&&this.removePathLine(),this.viewer.terrainProvider.availability){var t=this.viewer.terrainProvider.availability._maximumLevel?this.viewer.terrainProvider.availability._maximumLevel:10,i=[Cesium.Cartographic.fromDegrees(this.targetLLA.lon,this.targetLLA.lat)],n=Cesium.sampleTerrain(this.viewer.terrainProvider,t,i),r=this;n.then(function(e){if(e[0].height){var t=Math.ceil(e[0].height);r.__meta__.lineHeight.min=t,r.__meta__.lineHeight.max=t+r.heightConfig}})}else this.__meta__.lineHeight.min=0,this.__meta__.lineHeight.max=this.heightConfig;this.lineHeight||0===this.lineHeight||(this.lineHeight=this.__meta__.lineHeight.min+8e3),this.cameraPath=this.viewer.entities.add({name:"环绕路径线",polyline:{positions:new Cesium.CallbackProperty(function(t,i){var n=$u([e.targetLLA.lon,e.targetLLA.lat]),r=[],o=e.startAngle,s=e.endAngle;e.startAngle>e.endAngle&&(o=e.endAngle,s=e.startAngle);for(var a=o;a<s;a++){var l=Xh(n,e.circleRadius/1e3,a).geometry.coordinates,u=Cesium.Cartesian3.fromDegrees(l[0],l[1],e.lineHeight);r.push(u)}return r},!1),width:1,material:Cesium.Color.RED}})}},t.prototype.removePathLine=function(){this.cameraPath&&this.viewer.entities.contains(this.cameraPath)&&this.viewer.entities.remove(this.cameraPath)},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration)this.stopAnimation();else if(t>=this.beginTime){if(t-=this.beginTime,this.initTargetPosition(),!this.targetLLA)return;var i=$u([this.targetLLA.lon,this.targetLLA.lat]),n=(this.endAngle-this.startAngle)*(t/this.duration)+this.startAngle,r=Xh(i,this.circleRadius/1e3,n).geometry.coordinates,o=Cesium.Cartesian3.fromDegrees(r[0],r[1],this.lineHeight);if(o&&this.targetPosition){var s=this.computerOrient(o,this.targetPosition);this.viewer.scene.camera.setView({destination:o,orientation:{heading:Cesium.Math.toRadians(s.heading+90),pitch:Cesium.Math.toRadians(s.pitch),role:Cesium.Math.toRadians(s.roll)}})}}},Object.defineProperty(t.prototype,"startAngle",{get:function(){return this._startAngle},set:function(e){this._startAngle=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"endAngle",{get:function(){return this._endAngle},set:function(e){this._endAngle=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cameraHeight",{get:function(){return this.lineHeight},set:function(e){this.lineHeight=e,this.setCamera()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cameraRadius",{get:function(){return this.circleRadius},set:function(e){this.circleRadius=e,this.setCamera()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cameraHeading",{get:function(){return this._cameraHeading},set:function(e){this._cameraHeading=e,this.setCamera()},enumerable:!1,configurable:!0}),t.prototype.setCamera=function(){if(this.target&&this.target.ent){bX.getModelMatrix(this.target.ent,this.viewer.clock.currentTime,this.scratch);var e=Cesium.Math.toRadians(this.cameraHeading),t=180*Math.asin(this.lineHeight/Math.sqrt(Math.pow(this.lineHeight,2)+Math.pow(this.circleRadius,2)))/Math.PI+10,i=Cesium.Math.toRadians(-1*t),n=Math.sqrt(Math.pow(this.lineHeight,2)+Math.pow(this.circleRadius,2));this.viewer.camera.lookAtTransform(this.scratch,new Cesium.HeadingPitchRange(e,i,n))}},t.prototype.car3ToLonlat=function(e){var t=this.viewer.scene.globe.ellipsoid.cartesianToCartographic(e),i=Cesium.Math.toDegrees(t.latitude);return{lon:Cesium.Math.toDegrees(t.longitude),lat:i,alt:t.height}},t.prototype.vec1ToVec2Mat=function(e,t){var i=Cesium.Cartesian3.cross(e,t,new Cesium.Cartesian3(0,0,0)),n=Cesium.Math.acosClamped(Cesium.Cartesian3.dot(e,t)/(Cesium.Cartesian3.magnitude(e)*Cesium.Cartesian3.magnitude(t))),r=Cesium.Quaternion.fromAxisAngle(i,n,new Cesium.Quaternion(0,0,0,0));return Cesium.Matrix3.fromQuaternion(r,new Cesium.Matrix3)},t.prototype.computerOrient=function(e,t){var i,n,r=Cesium.Transforms.eastNorthUpToFixedFrame(e),o=Cesium.Quaternion.clone(Cesium.Quaternion.IDENTITY),s=Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),a=Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),l=new Cesium.Cartesian3(0,0,0);return s=Cesium.Matrix4.getMatrix3(r,s),l=Cesium.Cartesian3.subtract(t,e,l),a=Cesium.Matrix3.inverse(s,a),l=Cesium.Matrix3.multiplyByVector(a,l,l),i=this.vec1ToVec2Mat(Cesium.Cartesian3.UNIT_X,Cesium.Cartesian3.normalize(l,l)),o=Cesium.Quaternion.fromRotationMatrix(i,o),n=Cesium.HeadingPitchRoll.fromQuaternion(o,n),{heading:Cesium.Math.toDegrees(n.heading),pitch:Cesium.Math.toDegrees(n.pitch),roll:Cesium.Math.toDegrees(n.roll)}},xX([rm(),SX("design:type",Object)],t.prototype,"scratch",void 0),xX([em({name:"标绘元素",group:"",type:"displayTarget",order:9}),rm(),SX("design:type",qm),SX("design:paramtypes",[])],t.prototype,"target",null),xX([rm(),SX("design:type",Object)],t.prototype,"isexecuted",void 0),xX([rm(),SX("design:type",Object)],t.prototype,"cameraPath",void 0),xX([rm(),SX("design:type",Object)],t.prototype,"heightConfig",void 0),xX([em({name:"视角高度",group:"",subGroup:"视角高度",subOrder:1,type:"cameraSlider",order:17,min:0,max:2e5,hiddenGroupName:!0}),SX("design:type",Number)],t.prototype,"lineHeight",void 0),xX([em({name:"环绕半径",group:"",subGroup:"环绕半径",subOrder:2,type:"cameraSlider",order:18,min:1,max:3e4,hiddenGroupName:!0}),SX("design:type",Number)],t.prototype,"circleRadius",void 0),xX([em({name:"开始角度",group:"",subGroup:"开始角度",subOrder:3,type:"cameraSlider2",order:0,max:180,min:-180,hiddenGroupName:!0}),SX("design:type",Number),SX("design:paramtypes",[Number])],t.prototype,"startAngle",null),xX([em({name:"结束角度",group:"",subGroup:"结束角度",subOrder:4,type:"cameraSlider2",order:0,max:180,min:-180,hiddenGroupName:!0}),SX("design:type",Number),SX("design:paramtypes",[Number])],t.prototype,"endAngle",null),t=xX([HR("SurroundAnimation"),SX("design:paramtypes",[])],t)}(zR),PX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),EX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},LX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},TX=function(e){function t(){var t=e.call(this)||this;return t.isexecuted=!1,t.cameraPath=void 0,t.hideValues=["fillBehavior"],t}return PX(t,e),Object.defineProperty(t.prototype,"target",{get:function(){return Yf.getGraph(this.targetId)},enumerable:!1,configurable:!0}),t.prototype.stopAnimation=function(){this.isexecuted=!1},t.prototype.initAnimation=function(){this.isexecuted=!1},t.prototype.initTargetPosition=function(){if(this.target instanceof sI)if(this.target instanceof sQ||this.target instanceof nH){var e=this.target.ctrlPosition[0];this.targetPosition=Cesium.Cartesian3.fromDegrees(e.lon,e.lat,e.alt,this.viewer.scene.globe.ellipsoid)}else this.targetPosition=this.target.positionProperty;else this.target instanceof qI||this.target instanceof mR?this.targetPosition=this.target.ent.position.getValue():this.targetPosition=this.target.ent.position._value;this.targetPosition&&(this.targetLLA=this.car3ToLonlat(this.targetPosition))},t.prototype.createPathLine=function(){var e=this;if(this.initTargetPosition(),this.targetPosition){if(this.cameraPath&&this.removePathLine(),this.viewer.terrainProvider.availability){var t=this.viewer.terrainProvider.availability._maximumLevel?this.viewer.terrainProvider.availability._maximumLevel:10,i=[Cesium.Cartographic.fromDegrees(this.targetLLA.lon,this.targetLLA.lat)],n=Cesium.sampleTerrain(this.viewer.terrainProvider,t,i),r=this;n.then(function(e){if(e[0].height){var t=Math.ceil(e[0].height);r.__meta__.startHeight.min=t,r.__meta__.startHeight.max=t+5e3,r.__meta__.endHeight.min=t,r.__meta__.endHeight.max=t+5e3}})}else this.__meta__.startHeight.min=0,this.__meta__.startHeight.max=5e3,this.__meta__.endHeight.min=0,this.__meta__.endHeight.max=5e3;this.startHeight||0===this.startHeight||(this.startHeight=this.__meta__.startHeight.min+2500),this.endHeight||0===this.endHeight||(this.endHeight=this.__meta__.endHeight.min+500),this.cameraPath=this.viewer.entities.add({name:"螺旋路径线",polyline:{positions:new Cesium.CallbackProperty(function(t,i){for(var n=$u([e.targetLLA.lon,e.targetLLA.lat]),r=[],o=1;o<360;o++){var s=o-180,a=e.startRadius-o/360*(e.startRadius-e.endRadius),l=Xh(n,a/1e3,s).geometry.coordinates,u=e.heightOfPoint(o),c=Cesium.Cartesian3.fromDegrees(l[0],l[1],u);r.push(c)}return r},!1),width:1,material:Cesium.Color.RED}})}},t.prototype.heightOfPoint=function(e){var t=0,i=this.startHeight-this.endHeight,n=i/2,r=i/4,o=i/8;return t=e<=90?n/90*e:e<=180?n+r/90*(e-90):e<=270?n+r+o/90*(e-180):n+r+o+o/90*(e-270),this.startHeight-t},t.prototype.removePathLine=function(){this.cameraPath&&this.viewer.entities.contains(this.cameraPath)&&this.viewer.entities.remove(this.cameraPath)},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration)this.stopAnimation();else if(t>=this.beginTime){if(t-=this.beginTime,this.initTargetPosition(),!this.targetLLA)return;var i=$u([this.targetLLA.lon,this.targetLLA.lat]),n=t/this.duration*360-180,r=this.startRadius-t/this.duration*(this.startRadius-this.endRadius),o=Xh(i,r/1e3,n).geometry.coordinates,s=this.heightOfPoint(t/this.duration*360),a=Cesium.Cartesian3.fromDegrees(o[0],o[1],s);if(a&&this.targetPosition){var l=this.computerOrient(a,this.targetPosition);this.viewer.scene.camera.setView({destination:a,orientation:{heading:Cesium.Math.toRadians(l.heading+90),pitch:Cesium.Math.toRadians(l.pitch),role:Cesium.Math.toRadians(l.roll)}})}}},t.prototype.car3ToLonlat=function(e){var t=this.viewer.scene.globe.ellipsoid.cartesianToCartographic(e),i=Cesium.Math.toDegrees(t.latitude);return{lon:Cesium.Math.toDegrees(t.longitude),lat:i,alt:t.height}},t.prototype.vec1ToVec2Mat=function(e,t){var i=Cesium.Cartesian3.cross(e,t,new Cesium.Cartesian3(0,0,0)),n=Cesium.Math.acosClamped(Cesium.Cartesian3.dot(e,t)/(Cesium.Cartesian3.magnitude(e)*Cesium.Cartesian3.magnitude(t))),r=Cesium.Quaternion.fromAxisAngle(i,n,new Cesium.Quaternion(0,0,0,0));return Cesium.Matrix3.fromQuaternion(r,new Cesium.Matrix3)},t.prototype.computerOrient=function(e,t){var i,n,r=Cesium.Transforms.eastNorthUpToFixedFrame(e),o=Cesium.Quaternion.clone(Cesium.Quaternion.IDENTITY),s=(Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY)),a=Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),l=new Cesium.Cartesian3(0,0,0);return s=Cesium.Matrix4.getMatrix3(r,s),l=Cesium.Cartesian3.subtract(t,e,l),a=Cesium.Matrix3.inverse(s,a),l=Cesium.Matrix3.multiplyByVector(a,l,l),i=this.vec1ToVec2Mat(Cesium.Cartesian3.UNIT_X,Cesium.Cartesian3.normalize(l,l)),o=Cesium.Quaternion.fromRotationMatrix(i,o),n=Cesium.HeadingPitchRoll.fromQuaternion(o,n),{heading:Cesium.Math.toDegrees(n.heading),pitch:Cesium.Math.toDegrees(n.pitch),roll:Cesium.Math.toDegrees(n.roll)}},EX([em({name:"标绘元素",group:"",type:"displayTarget",order:9}),rm(),LX("design:type",qm),LX("design:paramtypes",[])],t.prototype,"target",null),EX([rm(),LX("design:type",Object)],t.prototype,"isexecuted",void 0),EX([rm(),LX("design:type",Object)],t.prototype,"cameraPath",void 0),EX([em({name:"开始高度",group:"",subGroup:"开始高度",subOrder:1,type:"cameraSlider",order:17,min:0,max:5e3,hiddenGroupName:!0}),LX("design:type",Number)],t.prototype,"startHeight",void 0),EX([em({name:"结束高度",group:"",subGroup:"结束高度",subOrder:2,type:"cameraSlider",order:18,min:0,max:5e3,hiddenGroupName:!0}),LX("design:type",Number)],t.prototype,"endHeight",void 0),EX([em({name:"开始半径",group:"",subGroup:"开始半径",subOrder:3,type:"cameraSlider",order:19,max:2e3,min:0,hiddenGroupName:!0}),LX("design:type",Number)],t.prototype,"startRadius",void 0),EX([em({name:"结束半径",group:"",subGroup:"结束半径",subOrder:4,type:"cameraSlider",order:20,max:2e3,min:0,hiddenGroupName:!0}),LX("design:type",Number)],t.prototype,"endRadius",void 0),t=EX([HR("SpiralAnimation"),LX("design:paramtypes",[])],t)}(zR),OX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),DX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},BX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},IX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return OX(t,e),Object.defineProperty(t.prototype,"target",{get:function(){return Yf.getGraph(this.targetId)},enumerable:!1,configurable:!0}),t.prototype.stopAnimation=function(){this.target.ent.model.runAnimations=!1},t.prototype.initAnimation=function(){},t.prototype.onTick=function(e){var t=e;t>=this.beginTime+this.duration?this.stopAnimation():t>=this.beginTime&&(this.target.ent.model.runAnimations=!0)},DX([rm(),BX("design:type",mR),BX("design:paramtypes",[])],t.prototype,"target",null),t=DX([HR("GxModelAnimation")],t)}(zR);!function(e){e.All="0",e.Pass="1",e.Furture="2",e.No="3"}(RW||(RW={}));var RX,NX=__webpack_require__(6763),kX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),FX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},HX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},YX=function(e){function t(){var t=e.call(this)||this;return t.title="路径动画",t.headingFix=0,t.pathMode=RW.No,t.cameraType="none",t.defaultMap=new Map,t.keyPositionMap=new Map,t.scratch=new Cesium.Matrix4,t.cameraHeight=0,t}return kX(t,e),Object.defineProperty(t.prototype,"target",{get:function(){return Yf.getGraph(this.targetId)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"targetId",{get:function(){return this._targetId},set:function(e){var t=this;this._targetId=e,this.targetSub=this.target.positionChanged.subscribe(function(e){t.polyLine.setCtrlPosition(0,t.target.ctrlPosition[0]),t.polyLine.setPrimitivePosition(t.polyLine._singleControlPosition)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"polyLine",{get:function(){return Yf.getGraph(this.polyLineId)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cameraHeight",{get:function(){return this._cameraHeight},set:function(e){this._cameraHeight=e,"custom"===this.cameraType&&this.setCamera()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cameraHeading",{get:function(){return this._cameraHeading},set:function(e){this._cameraHeading=e,this.setCamera()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cameraPitch",{get:function(){return this._cameraPitch},set:function(e){this._cameraPitch=e,this.setCamera()},enumerable:!1,configurable:!0}),t.prototype.onReload=function(){this.targetId=this.targetId},t.prototype.initAnimation=function(){if(NX.log("initAnimation"),this.keyPositionMap=new Map,this.headingFix=Number.parseFloat(this.headingFix.toString()),this.defaultMap=new Map,this.target instanceof sI?this.defaultValue=this.target.positionProperty:this.target.ent&&(this.defaultValue=this.target.ent.position),this.target instanceof mR?(this.defaultMap.set("heading",this.target.heading),this.defaultMap.set("pitch",this.target.pitch),this.defaultMap.set("roll",this.target.roll)):(this.target instanceof ck||this.target instanceof xR)&&this.defaultMap.set("rotation",this.target.rotation),this.polyLine&&(this.defaultPercent=this.polyLine.percent),!this.target.animationInitPropArray.includes("PathAnimation")){this.target.animationInitPropArray.push("PathAnimation");var e=this.polyLine.interopLine.evaluate(0);this.target instanceof sI?this.target.positionProperty=e:this.target.ent.position=e}},t.prototype.onTick=function(e){var t=0,i=0;if(!this.__meta__.cameraType.hidden)switch(this.cameraType){case"none":void 0!==this.viewer.trackedEntity&&(this.viewer.trackedEntity=void 0);break;case"follow":this.viewer.trackedEntity!==this.target.ent&&(this.viewer.trackedEntity=this.target.ent);break;case"first":this.viewer.trackedEntity!==this.target.ent&&(this.viewer.trackedEntity=this.target.ent),bX.getModelMatrix(this.viewer.trackedEntity,this.viewer.clock.currentTime,this.scratch),t=200,i=50,this.viewer.scene.camera.lookAtTransform(this.scratch,new Cesium.Cartesian3(-t,0,i));break;case"god":this.viewer.trackedEntity!==this.target.ent&&(this.viewer.trackedEntity=this.target.ent),bX.getModelMatrix(this.viewer.trackedEntity,this.viewer.clock.currentTime,this.scratch),i=5e3+this.cameraHeight,this.viewer.scene.camera.lookAtTransform(this.scratch,new Cesium.Cartesian3(-1,0,i));break;case"custom":this.viewer.trackedEntity!==this.target.ent&&(this.viewer.trackedEntity=this.target.ent),this.setCamera()}var n=e;if(n>=this.beginTime+this.duration){var r=YR.HoldEnd;this.fillBehavior===r||this.stopAnimation()}else if(n>this.beginTime){(n-=this.beginTime)<.01&&(n=.01);var o=this.polyLine.interopLine,s=void 0;this.polyLine.clampToGround;var a=o.evaluate(n/this.duration);if(s=this.target.ent.position instanceof Cesium.Cartesian3?this.target.ent.position:this.target.ent.position.getValue(),this.polyLine.clampToGround){var l=Cesium.Cartographic.fromCartesian(a),u=this.viewer.scene.globe.getHeight(l);l.height=u,a=this.viewer.scene.globe.ellipsoid.cartographicToCartesian(l);var c=Cesium.Cartographic.fromCartesian(s),h=this.viewer.scene.globe.getHeight(c);c.height=h,s=this.viewer.scene.globe.ellipsoid.cartographicToCartesian(c)}var p=this.computerOrient(s,a);if(Object.is(p.heading,NaN)||Object.is(p.pitch,NaN)||Object.is(p.roll,NaN))return;if(this.target instanceof mR||this.target instanceof xR)try{this.target instanceof mR?(this.target.ent.position=a,this.target.heading=p.heading+this.headingFix,this.target.pitch=p.pitch,this.target.resetOrientation()):(this.target.rotation=p.heading+this.headingFix,this.target.positionProperty=a)}catch(e){NX.log(e)}else if(this.target instanceof sI){var d=o.evaluate(n/this.duration);this.target.positionProperty=d}else{var f=o.evaluate(n/this.duration);this.target.ent.position=f}switch(this.pathMode){case RW.All:break;case RW.Pass:this.polyLine.percent=n/this.duration;break;case RW.Furture:this.polyLine.percent=-n/this.duration;break;case RW.No:this.polyLine.percent=0}this.target.tmpHeading=p.heading}},t.prototype.stopAnimation=function(){var e=this;this.target instanceof sI?this.target.positionProperty=this.defaultValue:this.target.ent&&(this.target.ent.position=this.defaultValue),this.defaultMap.forEach(function(t,i){e.target[i]=t}),this.polyLine&&(this.polyLine.percent=this.defaultPercent,this.polyLine.terraininteropLine=void 0),this.viewer.trackedEntity=void 0,this.target.animationInitPropArray=[]},t.prototype.setCamera=function(){if(this.target&&this.target.ent){bX.getModelMatrix(this.target.ent,this.viewer.clock.currentTime,this.scratch);var e=Cesium.Math.toRadians(this.cameraHeading),t=this.cameraPitch;-90===this.cameraPitch&&(t=-89.9);var i=Cesium.Math.toRadians(t),n=this.cameraHeight;this.viewer.camera.lookAtTransform(this.scratch,new Cesium.HeadingPitchRange(e,i,n))}},t.prototype.computerOrient=function(e,t){var i,n,r=Cesium.Transforms.eastNorthUpToFixedFrame(e),o=Cesium.Quaternion.clone(Cesium.Quaternion.IDENTITY),s=(Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY)),a=Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),l=new Cesium.Cartesian3(0,0,0);return s=Cesium.Matrix4.getMatrix3(r,s),l=Cesium.Cartesian3.subtract(t,e,l),a=Cesium.Matrix3.inverse(s,a),l=Cesium.Matrix3.multiplyByVector(a,l,l),i=this.vec1ToVec2Mat(Cesium.Cartesian3.UNIT_X,Cesium.Cartesian3.normalize(l,l)),o=Cesium.Quaternion.fromRotationMatrix(i,o),n=Cesium.HeadingPitchRoll.fromQuaternion(o,n),{heading:Cesium.Math.toDegrees(n.heading),pitch:Cesium.Math.toDegrees(n.pitch),roll:Cesium.Math.toDegrees(n.roll)}},t.prototype.vec1ToVec2Mat=function(e,t){var i=Cesium.Cartesian3.cross(e,t,new Cesium.Cartesian3(0,0,0)),n=Cesium.Math.acosClamped(Cesium.Cartesian3.dot(e,t)/(Cesium.Cartesian3.magnitude(e)*Cesium.Cartesian3.magnitude(t))),r=Cesium.Quaternion.fromAxisAngle(i,n,new Cesium.Quaternion(0,0,0,0));return Cesium.Matrix3.fromQuaternion(r,new Cesium.Matrix3)},t.prototype.destroy=function(){this.targetSub.unsubscribe()},FX([em({name:"标绘元素",group:"",type:"displayTarget",order:9}),rm(),HX("design:type",qm),HX("design:paramtypes",[])],t.prototype,"target",null),FX([rm(),HX("design:type",sn)],t.prototype,"targetSub",void 0),FX([em({name:"路径线",group:"",type:"displayTarget",order:9}),rm(),HX("design:type",eF),HX("design:paramtypes",[])],t.prototype,"polyLine",null),FX([em({name:"航向修正",group:"",type:"numberNew",order:3,min:-360,max:360}),HX("design:type",Number)],t.prototype,"headingFix",void 0),FX([em({name:"显示路径",type:"pOption",group:"",order:8,options:[{text:"显示",value:RW.All},{text:"显示经过的",value:RW.Pass},{text:"显示将要经过",value:RW.Furture},{text:"不显示",value:RW.No}]}),HX("design:type",String)],t.prototype,"pathMode",void 0),FX([em({name:"视角",type:"pOption",group:"",order:9,options:[{text:"无",value:"none"},{text:"跟随视角",value:"follow"},{text:"第一视角",value:"first"},{text:"上帝视角",value:"god"},{text:"自定义",value:"custom"}]}),HX("design:type",Object)],t.prototype,"cameraType",void 0),FX([em({name:"距离",group:"相机",subGroup:"",subOrder:1,type:"pathCameraSlider",order:17,min:0,max:1e6,hiddenGroupName:!0}),HX("design:type",Number),HX("design:paramtypes",[Number])],t.prototype,"cameraHeight",null),FX([em({name:"方向",group:"相机",subGroup:"",subOrder:2,type:"pathCameraParam",order:18,min:-1e6,max:1e6,hiddenGroupName:!0}),HX("design:type",Number),HX("design:paramtypes",[Number])],t.prototype,"cameraHeading",null),FX([em({name:"俯仰",group:"相机",subGroup:"",subOrder:3,type:"pathCameraParam",order:19,min:-1e6,max:1e6,hiddenGroupName:!0}),HX("design:type",Number),HX("design:paramtypes",[Number])],t.prototype,"cameraPitch",null),FX([rm(),HX("design:type",Object)],t.prototype,"scratch",void 0),FX([rm(),HX("design:type",Object)],t.prototype,"defaultValue",void 0),FX([rm(),HX("design:type",Object)],t.prototype,"defaultOrientation",void 0),FX([rm(),HX("design:type",Object)],t.prototype,"defaultMap",void 0),FX([rm(),HX("design:type",Map)],t.prototype,"keyPositionMap",void 0),FX([rm(),HX("design:type",Object)],t.prototype,"defaultPercent",void 0),t=FX([HR("PathAnimation"),HX("design:paramtypes",[])],t)}(zR),jX=__webpack_require__(6763),UX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),GX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},QX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},zX=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},WX=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},XX=function(e){function t(){var t=e.apply(this,WX([],zX(arguments),!1))||this;return t.defaultMap=new Map,t}return UX(t,e),Object.defineProperty(t.prototype,"target",{get:function(){return Yf.getGraph(this.targetId)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fllowTarget",{get:function(){return Yf.getGraph(this.followTargetId)},enumerable:!1,configurable:!0}),t.prototype.stopAnimation=function(){var e=this;this.target instanceof sI?this.target.positionProperty=this.defaultValue:this.target.ent&&(this.target.ent.position=this.defaultValue),this.defaultMap.forEach(function(t,i){e.target[i]=t})},t.prototype.initAnimation=function(){var e,t,i,n,r,o;this.defaultMap=new Map,this.target instanceof sI?this.defaultValue=this.target.positionProperty:this.target.ent&&(this.defaultValue=this.target.ent.position,this.target instanceof mR?(this.defaultMap.set("heading",this.target.heading),this.defaultMap.set("pitch",this.target.pitch),this.defaultMap.set("roll",this.target.roll)):(this.target instanceof ck||this.target instanceof xR)&&this.defaultMap.set("rotation",this.target.rotation)),this.fllowTarget.tmpHeading=0,this.preheading=this.getFollowHeading();var s=(null===(e=this.target)||void 0===e?void 0:e.ctrlPosition[0].lon)-(null===(t=this.fllowTarget)||void 0===t?void 0:t.ctrlPosition[0].lon),a=(null===(i=this.target)||void 0===i?void 0:i.ctrlPosition[0].lat)-(null===(n=this.fllowTarget)||void 0===n?void 0:n.ctrlPosition[0].lat),l=(null===(r=this.target)||void 0===r?void 0:r.ctrlPosition[0].alt)-(null===(o=this.fllowTarget)||void 0===o?void 0:o.ctrlPosition[0].alt);this.positionsub=[s,a,l]},t.prototype.getFollowHeading=function(){return this.fllowTarget instanceof mR?this.fllowTarget.heading:this.fllowTarget instanceof xR||this.fllowTarget instanceof ck?this.fllowTarget.rotation:this.fllowTarget.tmpHeading},t.prototype.onTick=function(e){var t,i,n=e;if(n>=this.beginTime+this.duration){var r=YR.HoldEnd;this.fillBehavior===r||this.stopAnimation()}else if(n>this.beginTime){n-=this.beginTime;var o=void 0;if(this.fllowTarget instanceof sI){var s=null===(t=this.fllowTarget)||void 0===t?void 0:t.ctrlPosition[0];o=[s.lon,s.lat,s.alt]}else{var a=null===(i=this.fllowTarget)||void 0===i?void 0:i.ent.position._value;o=km.cartesian2lonlat(a)}var l=[o[0]+this.positionsub[0],o[1]+this.positionsub[1],o[2]+this.positionsub[2]],u=Cesium.Cartesian3.fromDegrees(l[0],l[1],l[2]);if(this.lastpos){var c=km.lonlat2Cartesian(o,o[2]),h=this.getFollowHeading()-this.preheading,p=this.RotateMatrix(c,h),d=Cesium.Matrix3.multiplyByVector(p,u,new Cesium.Cartesian3),f=this.computerOrient(this.lastpos,u);if(!f)return;if(this.target instanceof mR||this.target instanceof xR)try{this.lastpos&&(this.target instanceof mR?(this.target.ent.position=d,this.target.heading=f.heading,this.target.pitch=f.pitch,this.target.resetOrientation()):this.target.positionProperty=u)}catch(e){jX.log(e)}else this.target instanceof sI?this.target.positionProperty=d:this.target.ent.position=d;this.target.tmpHeading=f.heading}this.lastpos=u}},t.prototype.computerOrient=function(e,t){if(Cesium.Cartesian3.equals(e,t))return null;var i,n,r=Cesium.Transforms.eastNorthUpToFixedFrame(e),o=Cesium.Quaternion.clone(Cesium.Quaternion.IDENTITY),s=(Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY)),a=Cesium.Matrix3.clone(Cesium.Matrix3.IDENTITY),l=new Cesium.Cartesian3(0,0,0);return s=Cesium.Matrix4.getMatrix3(r,s),l=Cesium.Cartesian3.subtract(t,e,l),a=Cesium.Matrix3.inverse(s,a),l=Cesium.Matrix3.multiplyByVector(a,l,l),i=this.vec1ToVec2Mat(Cesium.Cartesian3.UNIT_X,Cesium.Cartesian3.normalize(l,l)),o=Cesium.Quaternion.fromRotationMatrix(i,o),n=Cesium.HeadingPitchRoll.fromQuaternion(o,n),{heading:Cesium.Math.toDegrees(n.heading),pitch:Cesium.Math.toDegrees(n.pitch),roll:Cesium.Math.toDegrees(n.roll)}},t.prototype.RotateMatrix=function(e,t){var i=Cesium.Math.toRadians(t),n=Math.sin(i),r=Math.cos(i),o=Math.sqrt(e.x*e.x+e.y*e.y+e.z*e.z),s=e.x/o,a=e.y/o,l=e.z/o,u=[r+(1-r)*s*s,-n*l+(1-r)*s*a,n*a+(1-r)*s*l,n*l+(1-r)*s*a,r+(1-r)*a*a,-n*s+(1-r)*a*l,-n*a+(1-r)*s*l,n*s+(1-r)*a*l,r+(1-r)*l*l];return Cesium.Matrix3.fromArray(u)},t.prototype.vec1ToVec2Mat=function(e,t){var i=Cesium.Cartesian3.cross(e,t,new Cesium.Cartesian3(0,0,0)),n=Cesium.Math.acosClamped(Cesium.Cartesian3.dot(e,t)/(Cesium.Cartesian3.magnitude(e)*Cesium.Cartesian3.magnitude(t))),r=Cesium.Quaternion.fromAxisAngle(i,n,new Cesium.Quaternion(0,0,0,0));return Cesium.Matrix3.fromQuaternion(r,new Cesium.Matrix3)},GX([rm(),QX("design:type",Object)],t.prototype,"positionsub",void 0),GX([rm(),QX("design:type",Object)],t.prototype,"lastpos",void 0),GX([rm(),QX("design:type",Object)],t.prototype,"preheading",void 0),GX([rm(),QX("design:type",Object)],t.prototype,"defaultMap",void 0),GX([rm(),QX("design:type",Object)],t.prototype,"defaultValue",void 0),GX([em({name:"标绘元素",group:"",type:"displayTarget",order:9}),rm(),QX("design:type",qm),QX("design:paramtypes",[])],t.prototype,"target",null),GX([em({name:"跟随元素",group:"",type:"displayTarget",order:9}),rm(),QX("design:type",qm),QX("design:paramtypes",[])],t.prototype,"fllowTarget",null),t=GX([HR("TargetFllowAnimation")],t)}(zR);!function(e){e.LefttoRight="0",e.ToptoBottom="1"}(RX||(RX={}));var VX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),JX=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},KX=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ZX=function(e){function t(){var t=e.call(this)||this;return t.maskBehavior=RX.LefttoRight,t}return VX(t,e),Object.defineProperty(t.prototype,"target",{get:function(){return Yf.getGraph(this.targetId)},enumerable:!1,configurable:!0}),t.prototype.initAnimation=function(){},t.prototype.onTick=function(e){var t=e;switch(this.maskBehavior){case RX.LefttoRight:this.target.showRange=[0,0,t/this.duration*1,1];break;case RX.ToptoBottom:this.target.showRange=[0,(this.duration-t)/this.duration*1,1,1]}},t.prototype.stopAnimation=function(){this.target.showRange=[0,0,1,1]},JX([em({name:"蒙版方向",type:"pOption",group:"",order:4,options:[{text:"从左至右",value:RX.LefttoRight},{text:"从上至下",value:RX.ToptoBottom}]}),KX("design:type",String)],t.prototype,"maskBehavior",void 0),JX([rm(),KX("design:type",BI),KX("design:paramtypes",[])],t.prototype,"target",null),t=JX([HR("PolygonMaskAnimation"),KX("design:paramtypes",[])],t)}(zR),qX=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),$X=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},eV=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},tV=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},iV=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},nV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qX(t,e),t.prototype.stopAnimation=function(){var e;null===(e=this.target)||void 0===e||e.setPrimitivePosition(this.ogigonalPositions)},t.prototype.initAnimation=function(){var e,t=[0],i=[];this.ogigonalPositions=iV([],tV(this.target._singleControlPosition),!1);var n=this.target.minPointNum,r=null===(e=this.target)||void 0===e?void 0:e._singleControlPosition;if(3==n){var o=Cesium.Cartesian3.lerp(this.target._singleControlPosition[0],this.target._singleControlPosition[1],.5,new Cesium.Cartesian3);(r=[]).push(o),r.push.apply(r,iV([],tV(this.target._singleControlPosition.slice(n-1)),!1))}if(r){for(var s=0,a=0;a<r.length-1;a++){var l=Cesium.Cartesian3.distance(r[a],r[a+1]);i.push(l),s+=l}for(a=0;a<i.length;a++)t.push(i[a]/s+t[a]);this.interopLine=Cesium.HermiteSpline.createNaturalCubic({times:t,points:r})}},t.prototype.onTick=function(e){var t,i=e;if(i<=this.beginTime+this.duration&&i>=this.beginTime){i-=this.beginTime;var n=this.target.minPointNum,r=i/this.duration,o=[];3==n?o.push(this.ogigonalPositions[0],this.ogigonalPositions[1]):o.push(this.ogigonalPositions[0]);for(var s=this.ogigonalPositions.length-(n-1),a=0;a<s;a++){var l=this.interopLine.evaluate((a+1)/s*r);o.push(l)}null===(t=this.target)||void 0===t||t.setPrimitivePosition(o)}},Object.defineProperty(t.prototype,"target",{get:function(){return Yf.getGraph(this.targetId)},enumerable:!1,configurable:!0}),$X([rm(),eV("design:type",Cesium.LinearSpline)],t.prototype,"interopLine",void 0),$X([rm(),eV("design:type",Array)],t.prototype,"ogigonalPositions",void 0),$X([em({name:"标绘元素",group:"",type:"displayTarget",order:9}),rm(),eV("design:type",AQ),eV("design:paramtypes",[])],t.prototype,"target",null),t=$X([HR("ArrowDirectAnimation")],t)}(zR),rV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),oV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},sV=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},aV=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},lV=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},uV=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},cV=function(e){function t(){var t=e.apply(this,lV([],aV(arguments),!1))||this;return t.pathMode=RW.Pass,t.keyPositionMap=new Map,t}return rV(t,e),Object.defineProperty(t.prototype,"target",{get:function(){return Yf.getGraph(this.targetId)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"polyLine",{get:function(){return Yf.getGraph(this.polyLineId)},enumerable:!1,configurable:!0}),t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration){var i=YR.HoldEnd;this.fillBehavior==i?this.target instanceof sI?this.target.positionProperty=this.entPosition:this.target.ent.position=this.entPosition:this.stopAnimation()}else if(t>this.beginTime){if(this.target instanceof sI){var n=this.sampledProperty.getValue(this.getCesiumAnimationTime(e));this.target.positionProperty=n}else this.target.ent.position=this.sampledProperty,this.target.ent.orientation=this.orientationProperty;switch(this.pathMode){case RW.All:break;case RW.Pass:this.polyLinePosition.push(this.sampledProperty.getValue(this.getCesiumAnimationTime(e)));break;case RW.Furture:var r=t,o=[];o.push(this.sampledProperty.getValue(this.getCesiumAnimationTime(e))),this.keyPositionMap.forEach(function(e,t){t>=r&&o.push(e)}),this.polyLinePosition=o;case RW.No:}}},t.prototype.initAnimation=function(){var e,t,i=this;this.keyPositionMap=new Map,this.sampledProperty=new Cesium.SampledPositionProperty,this.target instanceof sI?this.defaultValue=this.target.positionProperty:this.target.ent&&(this.defaultValue=this.target.ent.position,this.defaultOrientation=this.target.ent.orientation);for(var n=this.polyLine.calcuteShape(this.polyLine._singleControlPosition,Cesium.JulianDate.now()),r=[0],o=0;o<n.length-1;o++){var s=Cesium.Cartesian3.distance(n[o],n[o+1]);r.push(s)}var a=0;try{for(var l=uV(r),u=l.next();!u.done;u=l.next()){a+=u.value}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}var c=Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate);for(o=0;o<n.length;o++){var h=r[o]/a*this.duration,p=Cesium.JulianDate.addSeconds(c,h,new Cesium.JulianDate),d=(c=p).secondsOfDay-this.beginTime-this.animationBaseTime.secondsOfDay;this.keyPositionMap.set(d,n[o]),this.sampledProperty.addSample(p,n[o])}switch(this.entPosition=n[n.length-1],this.orientationProperty=new Cesium.VelocityOrientationProperty(this.sampledProperty),this.defaultPolyLinePosition=this.polyLine.ent.polyline.positions,this.polyLinePosition=[],this.pathMode){case RW.All:this.polyLinePosition=n;break;case RW.Pass:break;case RW.Furture:this.polyLinePosition=lV([],aV(n),!1);case RW.No:}this.polyLine.ent.polyline.positions=new Cesium.CallbackProperty(function(){return i.polyLinePosition},!1)},t.prototype.stopAnimation=function(){this.target instanceof sI?this.target.positionProperty=this.defaultValue:(this.target.ent.position=this.defaultValue,this.target.ent.orientation=this.defaultOrientation),this.polyLine.ent.polyline.positions=this.defaultPolyLinePosition},oV([em({name:"标绘元素",group:"",type:"displayTarget",order:9}),rm(),sV("design:type",qm),sV("design:paramtypes",[])],t.prototype,"target",null),oV([em({name:"路径线",group:"",type:"displayTarget",order:9}),rm(),sV("design:type",eF),sV("design:paramtypes",[])],t.prototype,"polyLine",null),oV([rm(),sV("design:type",Cesium.SampledPositionProperty)],t.prototype,"sampledProperty",void 0),oV([rm(),sV("design:type",Object)],t.prototype,"defaultValue",void 0),oV([rm(),sV("design:type",Object)],t.prototype,"defaultOrientation",void 0),oV([rm(),sV("design:type",Cesium.VelocityOrientationProperty)],t.prototype,"orientationProperty",void 0),oV([rm(),sV("design:type",Object)],t.prototype,"defaultPolyLinePosition",void 0),oV([rm(),sV("design:type",Cesium.Cartesian3)],t.prototype,"entPosition",void 0),oV([rm(),sV("design:type",Array)],t.prototype,"polyLinePosition",void 0),oV([rm(),sV("design:type",Map)],t.prototype,"keyPositionMap",void 0),t=oV([HR("PathShowAnimation")],t)}(zR),hV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),pV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},dV=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},fV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hV(t,e),Object.defineProperty(t.prototype,"viewerContainer",{get:function(){return this.viewer.container},enumerable:!1,configurable:!0}),t.prototype.createSampledProperty=function(){this.sampledProperty=new Cesium.SampledProperty(Number)},t.prototype.stopAnimation=function(){this.viewerContainer.style.opacity="1"},t.prototype.initAnimation=function(){this.createSampledProperty(),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),1),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration/2,new Cesium.JulianDate),0),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),1)},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration)this.stopAnimation();else if(t>=this.beginTime){var i=this.getCurrentValue(e);this.viewerContainer.style.opacity=i.toString()}},t.prototype.getCurrentValue=function(e){var t=e;return t<this.beginTime||t>this.beginTime+this.duration?1:this.sampledProperty.getValue(this.getCesiumAnimationTime(e))},pV([rm(),dV("design:type",Cesium.SampledProperty)],t.prototype,"sampledProperty",void 0),t=pV([HR("PageShowAnimation")],t)}(zR),mV=__webpack_require__(6763),gV=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},yV=function(){function e(e){this.both2DAnd3DSub$=new am,this.both2D3DOperateList=[],this.both2D3DActionSub$=new am,this.count=0,this.geoGraph={LineString:{name:"",ossUrl:"",resourceId:"",obj:"GeojsonPolyline",color:"#2bfff8",ctls:new Array,holes:new Array,alpha:.7,isVectorData:!1},MultiLineString:{name:"",ossUrl:"",resourceId:"",obj:"GeojsonMultiPolyline",color:"#2bfff8",ctls:new Array,holes:new Array,alpha:.7,isVectorData:!1},Polygon:{name:"",ossUrl:"",resourceId:"",obj:"GeojsonPolygon",color:"#2bfff8",ctls:new Array,holes:new Array,alpha:.7,isVectorData:!1},MultiPolygon:{name:"",ossUrl:"",resourceId:"",obj:"GeojsonMultiPolygon",color:"#2bfff8",ctls:new Array,holes:new Array,alpha:.7,isVectorData:!1}},this.serviceManager=e,this._viewer=e.viewer}return e.prototype.createPlot=function(e,t,i){var n=this;if(void 0===i&&(i=!0),mV.log("create plot begin >>>>>>>>>>>>>>"),e){if(["geojson","kml"].indexOf(e.kind)>-1)return!0;if(["html","richText","picCollection","videoBox","newRichText"].includes(e.kind))return this.serviceManager.htmlDrawService.currentBoxType=e.kind,"newRichText"!==e.kind&&(this.serviceManager.htmlDrawService.isDrawPanelShow=!0),"newRichText"===e.kind&&this.serviceManager.htmlDrawService.initParam(e),void("videoBox"===e.kind&&(this.serviceManager.htmlDrawService.currentBoxPath=e.original_url));var r,o=null;if(r=e.params&&e.params.obj&&"Text"==e.params.obj?e.params.text?this.serviceManager.plotService.createEntityName(e.params.text):void 0:e.label?e.extension?this.serviceManager.plotService.createEntityName(e.label.replace(e.extension,"")):this.serviceManager.plotService.createEntityName(e.label):void 0,r=ZB.createEntityName(r,this.serviceManager.plotService.gm.graphList.map(function(e){return e.name})),"jb"===e.kind||"jbnew"===e.kind)o={obj:"JB",code:e.jbId,offsetX:e.data.offsetX,offsetY:e.data.offsetY,showMode:t?"screen":"object",name:r};else if("model"==e.kind){o={obj:"Model",uri:"".concat(e.path),minimumPixelSize:20,alpha:1,icon:"gp-moxing"},this.plot_icon="gp-moxing",o.uri&&""!==o.uri||(i=!1)}else if(e.extension){switch(e.extension.toLowerCase()){case".tif":case".tiff":return void this.serviceManager.drawbigfileService.draw(e);case".zip":return mV.log("tif,zip>>>",e),void(e.service_info.serviceUrl?this.serviceManager.drawbigfileService.draw(e):mV.warn("资源不可用"));case".glb":(o={obj:"Model",uri:e.original_url,scalev:100,minimumPixelSize:20,alpha:1,icon:"gp-moxing"}).uri&&""!==o.uri||(i=!1),mV.warn("无效的参数,请认真阅读接口指南");break;case".bmp":case".ico":case".svg":case".png":case".jpeg":case".jpg":o={obj:"PinImage",icon:"gp-tuding"},e.path&&-1===e.path.indexOf("http")?o.image="".concat(this.serviceManager.plotService.picPublicPath).concat(e.path):o.image=e.original_url,t||(o.obj="Image",o.icon="gp-tupian1");break;case".gif":o={obj:"HtmlImage",icon:"gp-tuding"},e.path&&-1===e.path.indexOf("http")?o.imageUrl="".concat(this.serviceManager.plotService.picPublicPath).concat(e.path):o.imageUrl=e.path;break;case".ogg":case".mp3":var s=3e3,a=this.serviceManager.musicService.addMusic(e);if(a.audioObj){a.audioObj.load();var l=function(){s=Math.ceil(1e3*Number(a.audioObj.duration));var e={isAudio:!0,type:XB,animation:{type:"AudioAnimation",keyframes:[{val:0},{val:s}]},title:a.name,icon:"gv-Route",image:"视角动画图片/音效.png",webp:"视角动画WEBP文件/螺旋.webp"};n.addAnimation(e),a.audioObj.removeEventListener("canplay",l)};a.audioObj.addEventListener("canplay",l)}return}this.plot_icon=o.icon}else o=JB.deepClone(e.params),this.plot_icon=e.path;var u=r.lastIndexOf(".");return o.name=-1!==u?r.slice(0,r.lastIndexOf(".")):r,e.gvolType&&(o.gvolType=e.gvolType),i?this.createGraph(o):o}},e.prototype.createDraw=function(e){var t;if(e)if(Array.isArray(e))mV.warn("传入的feature,不应该是数组类型。");else{var i={gvolType:e.gvolType,ctls:new Array,holes:new Array},n=function(e,t){var i,n,r,o,s,a,l,u,c,h,p,d;if(t.holes.length=0,t.ctls.length=0,!Array.isArray(e)){if(e.geometry&&e.geometry.coordinates){var f=Nj(e.geometry.coordinates);if(1===f){var m=[],g=e.geometry.coordinates;m.push(new Vu(g[0],g[1],g[2])),t.ctls.push(new Vu(g[0],g[1],g[2])),t.holes.push(m)}else if(2===f){m=[];try{for(var y=Ej(e.geometry.coordinates),_=y.next();!_.done;_=y.next())g=_.value,m.push(new Vu(g[0],g[1],g[2])),t.ctls.push(new Vu(g[0],g[1],g[2]))}catch(e){i={error:e}}finally{try{_&&!_.done&&(n=y.return)&&n.call(y)}finally{if(i)throw i.error}}t.holes.push(m)}else if(3===f)try{for(var A=Ej(e.geometry.coordinates),v=A.next();!v.done;v=A.next()){g=v.value,m=[];try{for(var C=(s=void 0,Ej(g)),b=C.next();!b.done;b=C.next()){var w={lon:(O=b.value)[0],lat:O[1]};m.push(w),t.ctls.push(w)}}catch(e){s={error:e}}finally{try{b&&!b.done&&(a=C.return)&&a.call(C)}finally{if(s)throw s.error}}t.holes.push(m)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(o=A.return)&&o.call(A)}finally{if(r)throw r.error}}else if(4===f)try{for(var x=Ej(e.geometry.coordinates),S=x.next();!S.done;S=x.next()){g=S.value;try{for(var M=(c=void 0,Ej(g)),P=M.next();!P.done;P=M.next()){var E=P.value;m=[];try{for(var L=(p=void 0,Ej(E)),T=L.next();!T.done;T=L.next()){var O;w={lon:(O=T.value)[0],lat:O[1]},m.push(w),t.ctls.push(w)}}catch(e){p={error:e}}finally{try{T&&!T.done&&(d=L.return)&&d.call(L)}finally{if(p)throw p.error}}t.holes.push(m)}}catch(e){c={error:e}}finally{try{P&&!P.done&&(h=M.return)&&h.call(M)}finally{if(c)throw c.error}}}}catch(e){l={error:e}}finally{try{S&&!S.done&&(u=x.return)&&u.call(x)}finally{if(l)throw l.error}}}else e._ctrlPosition?(t.ctls=Array.from(e._ctrlPosition),e.holes&&(t.holes=Array.from(e.holes))):Pj.warn("传入的feature,feature.geometry 参数无效。");return t}}(e,JSON.parse(JSON.stringify(i)));Object.assign(e,n),t=this.serviceManager.plotService.draw(e,"gp-tubiaodian",e.name,!1)}return t},e.prototype.createDrawGeojson=function(e,t,i){var n=this;void 0===i&&(i=!1),this.count=0,Object.keys(this.geoGraph).forEach(function(e){n.geoGraph[e].isVectorData=!!i});var r=[];if(!e.features)return mV.log("格式有误"),r;var o=Dj(e.features);if(o){if(o.Point.length>0&&r.push(this.drawObj(o.Point,t,"Point")),o.MultiPoint.length>0&&r.push(this.drawObj(o.MultiPoint,t,"MultiPoint")),1===o.LineString.length&&0===o.MultiLineString.length&&r.push(this.drawObj(o.LineString,t,"LineString")),1===o.Polygon.length&&0===o.MultiPolygon.length&&r.push(this.drawObj(o.Polygon,t,"Polygon")),o.MultiLineString.length>0||o.LineString.length>1){var s=o.MultiLineString.concat(o.LineString);r.push(this.drawObj(s,t,"MultiLineString"))}if(o.MultiPolygon.length>0||o.Polygon.length>1){s=o.MultiPolygon.concat(o.Polygon);r.push(this.drawObj(s,t,"MultiPolygon"))}}return r},e.prototype.drawObj=function(e,t,i){var n;switch(i){case"Point":n=this.drawPoint(e,t);break;case"MultiPoint":n=this.drawMultiPoint(e,t);break;case"LineString":n=this.drawLineString(e,t);break;case"MultiLineString":n=this.drawMultiLineString(e,t);break;case"Polygon":n=this.drawPolygon(e,t);break;case"MultiPolygon":n=this.drawMultiPolygon(e,t)}return n},e.prototype.addAnimation=function(e,t,i){var n,r,o,s,a=this;mV.log("animationItem>>>>>>>>>>>>>>",e);var l=this.serviceManager.animationService.cloneAnimation(e.animation);l.image=e.image,l.title=e.title,1==l.keyframes.length&&(l.keyframes[0].shape="point"),l.viewer=this._viewer,l.startState||(l.startState=yW.withPrevious);var u=function(){l.label=e.title,l.id=ST(),a.serviceManager.animationService.rebuildAnimation(),a.serviceManager.animationService.showGlobalTimeLine=!1};if(l instanceof fV){var c=l;return u(),l}if(e.isHtml)return l instanceof GW&&mV.log("ani",l),u(),l;if(e.isGeojson){var h=void 0;if(this.serviceManager.geojsonService.geojsonList.length&&(h=this.serviceManager.geojsonService.geojsonList.filter(function(e){return e.id===t})[0]),h||(h=this.serviceManager.geojsonService.currentGeojson),l instanceof tX)if(h)(c=l).dataSourceName=h.id,c.geojsonDataSource=h.cesiumDataSource;return u(),l}if(e.isTif){var p=this.serviceManager.drawbigfileService.currentFile;if(l instanceof ZR)(c=l).targetId=p.id;return u(),l}if(e.isAudio){var d=this.serviceManager.musicService.currentMusic;if(l instanceof VW)(c=l).targetId=d.id;return u(),l}if(l instanceof dX)return(c=l).set(),u(),l;if(l instanceof oX)return(c=l).set(),u(),l;if(l instanceof uX)return(c=l).set(),u(),l;if(l instanceof yX){(c=l).set();var f,m=this.serviceManager.plotService.createEntityName("相机漫游"),g=Math.ceil(this._viewer.camera.positionCartographic.height)/50,y=this.serviceManager.plotService.gm.create({obj:"Polyline",color:"#f00",name:m,interplate:!0,clampToGround:!1,defaultHeight:g}).graph,_=function(e){y==e&&(u(),y.defaultHeight=void 0),f.unsubscribe()};f=this.serviceManager.plotService.gm.editor.onCreateFinished.subscribe(_),c.polyLineId=y.id}else{if(null==e.type&&l instanceof CX){var A,v=l,C=this.serviceManager.plotService.createEntityName("路径凝视"),b=Math.ceil(this._viewer.camera.positionCartographic.height)/50;this.serviceManager.plotService.gm.editor.pickTypes=[ok,nH,sQ,qI,mR],this.serviceManager.plotService.gm.editor.pickString="请选择凝视元素或绘制一个元素",this.serviceManager.plotService.gm.editor.startPickTarget=!0;var w=function(e){if(e){if(e instanceof Cesium.Cartesian3){var t=a._viewer.scene.globe.ellipsoid.cartesianToCartographic(e),i=Cesium.Math.toDegrees(t.latitude),n=Cesium.Math.toDegrees(t.longitude),r=t.height;if(!Cesium.defined(e))return;var o=a.serviceManager.plotService.gm.editor.layerId,s={obj:"Point",color:"#ED6F00",name:"图标点",_ctrlPosition:[{lon:n,lat:i,alt:r,time:void 0}]},l=new ok(s,a._viewer,o);for(var c in s)l[c]=s[c];l instanceof hI?l.initCtls(!1):l.initCtls(),l.initShape(),a.serviceManager.plotService.gm.editor.draw(l.ent),e=l}a.serviceManager.plotService.gm.graphList.indexOf(e.ent)<0&&(e.ent.graph.iconName="gp-tubiaodian",a.serviceManager.plotService.gm.graphList.push(e.ent),a.serviceManager.plotService.isRefresh.next([e.ent.graph])),v.targetId=e.id;var h,p=a.serviceManager.plotService.gm.create({obj:"Polyline",color:"#f00",name:C,interplate:!0,clampToGround:!1,defaultHeight:b}).graph;v.polyLineId=p.id,h=a.serviceManager.plotService.gm.editor.onCreateFinished.subscribe(function(e){p==e&&(u(),p.defaultHeight=void 0),h.unsubscribe()}),A.unsubscribe()}};return A=this.serviceManager.plotService.gm.editor.pickCompleted$.subscribe(w),l}if(null==e.type&&l instanceof MX){var x,S=l;this.serviceManager.plotService.gm.editor.pickTypes=[ok,nH,sQ,qI,mR],this.serviceManager.plotService.gm.editor.startPickTarget=!0,this.serviceManager.plotService.gm.editor.pickString="请选择环绕凝视元素或绘制一个元素";w=function(e){if(e){if(e instanceof Cesium.Cartesian3){var t=a._viewer.scene.globe.ellipsoid.cartesianToCartographic(e),i=Cesium.Math.toDegrees(t.latitude),n=Cesium.Math.toDegrees(t.longitude);t.height;if(!Cesium.defined(e))return;var r=a.serviceManager.plotService.gm.editor.layerId,o={obj:"Point",color:"#ED6F00",name:"图标点",_ctrlPosition:[{lon:n,lat:i,alt:0,time:void 0}]},s=new ok(o,a._viewer,r);for(var l in o)s[l]=o[l];s instanceof hI?s.initCtls(!1):s.initCtls(),s.initShape(),a.serviceManager.plotService.gm.editor.draw(s.ent),e=s}if(a.serviceManager.plotService.gm.graphList.indexOf(e.ent)<0&&(e.ent.graph.iconName="gp-tubiaodian",a.serviceManager.plotService.gm.graphList.push(e.ent),a.serviceManager.plotService.isRefresh.next([e.ent.graph])),S.targetId=e.id,a._viewer.terrainProvider.availability){var c=a._viewer.terrainProvider.availability._maximumLevel?a._viewer.terrainProvider.availability._maximumLevel:10,h=[Cesium.Cartographic.fromDegrees(e.ctrlPosition[0].lon,e.ctrlPosition[0].lat)];Cesium.sampleTerrain(a._viewer.terrainProvider,c,h).then(function(e){if(e[0].height){var t=Math.ceil(e[0].height);S.__meta__.lineHeight.min=t,S.__meta__.lineHeight.max=t+2e4}})}S.lineHeight=S.__meta__.lineHeight.min+400,S.circleRadius=1500,u(),x.unsubscribe()}};return x=this.serviceManager.plotService.gm.editor.pickCompleted$.subscribe(w),l}if(null==e.type&&l instanceof TX){var M,P=l;this.serviceManager.plotService.createEntityName("螺旋动画");P.startRadius=2e3,P.endRadius=500,this.serviceManager.plotService.gm.editor.pickTypes=[ok,nH,sQ,qI,mR],this.serviceManager.plotService.gm.editor.startPickTarget=!0,this.serviceManager.plotService.gm.editor.pickString="请选择螺旋凝视元素或绘制一个元素";w=function(e){if(e){if(e instanceof Cesium.Cartesian3){var t=a._viewer.scene.globe.ellipsoid.cartesianToCartographic(e),i=Cesium.Math.toDegrees(t.latitude),n=Cesium.Math.toDegrees(t.longitude);t.height;if(!Cesium.defined(e))return;var r=a.serviceManager.plotService.gm.editor.layerId,o={obj:"Point",color:"#ED6F00",name:"图标点",_ctrlPosition:[{lon:n,lat:i,alt:0,time:void 0}]},s=new ok(o,a._viewer,r);for(var l in o)s[l]=o[l];s instanceof hI?s.initCtls(!1):s.initCtls(),s.initShape(),a.serviceManager.plotService.gm.editor.draw(s.ent),e=s}if(a.serviceManager.plotService.gm.graphList.indexOf(e.ent)<0&&(e.ent.graph.iconName="gp-tubiaodian",a.serviceManager.plotService.gm.graphList.push(e.ent),a.serviceManager.plotService.isRefresh.next([e.ent.graph])),a._viewer.terrainProvider.availability){var c=a._viewer.terrainProvider.availability._maximumLevel?a._viewer.terrainProvider.availability._maximumLevel:10,h=[Cesium.Cartographic.fromDegrees(e.ctrlPosition[0].lon,e.ctrlPosition[0].lat)];Cesium.sampleTerrain(a._viewer.terrainProvider,c,h).then(function(e){if(e[0].height){var t=Math.ceil(e[0].height);P.__meta__.startHeight.min=t,P.__meta__.startHeight.max=t+5e3,P.__meta__.endHeight.min=t,P.__meta__.endHeight.max=t+5e3}})}P.startHeight=P.__meta__.startHeight.min+2500,P.endHeight=P.__meta__.endHeight.min+500,P.targetId=e.id,u(),M.unsubscribe()}};return M=this.serviceManager.plotService.gm.editor.pickCompleted$.subscribe(w),l}if(l instanceof XX){var E,L=this.serviceManager.plotService.gm.editor.currentEditGraphList[0],T=l;this.serviceManager.plotService.createEntityName("跟随动画");this.serviceManager.plotService.gm.editor.pickTypes=[ok,ck,xR,nH,sQ,qI,mR],this.serviceManager.plotService.gm.editor.startPickTarget=!0,this.serviceManager.plotService.gm.editor.pickString="请选择跟随元素";w=function(e){if(e)return e instanceof Cesium.Cartesian3?(E.unsubscribe(),void mV.log("未选中元素,动画取消")):void(e!=L?(a.serviceManager.plotService.gm.graphList.indexOf(e.ent)<0&&(a.serviceManager.plotService.gm.graphList.push(e.ent),a.serviceManager.plotService.isRefresh.next([e.ent.graph])),T.followTargetId=e.id,T.targetId=L.id,u(),E.unsubscribe()):mV.log("不能跟随自身,动画取消"))};return E=this.serviceManager.plotService.gm.editor.pickCompleted$.subscribe(w),l}var O;if(!(O=t?this.serviceManager.plotService.gm.editor.currentEditGraphList.filter(function(e){return e.id===t})[0]:this.serviceManager.plotService.gm.editor.currentEditGraphList[0]))return;if(l instanceof ZR)(c=l).targetId=O.id,u();else if(l instanceof IX){(c=l).targetId=O.id,u()}else if(l instanceof ZX){(c=l).targetId=O.id,u()}else if(l instanceof nV){(c=l).targetId=O.id,u()}else if(l instanceof YX){try{for(var D=gV(this.serviceManager.animationService.allAnimation),B=D.next();!B.done;B=D.next()){var I=B.value;try{for(var R=(o=void 0,gV(I)),N=R.next();!N.done;N=R.next()){var k=N.value;if(k instanceof YX&&k.target==O)return void mV.log("该元素已经包含路径动画,禁止重复创建!")}}catch(e){o={error:e}}finally{try{N&&!N.done&&(s=R.return)&&s.call(R)}finally{if(o)throw o.error}}}}catch(e){n={error:e}}finally{try{B&&!B.done&&(r=D.return)&&r.call(D)}finally{if(n)throw n.error}}var F,H=l;this.serviceManager.plotService.gm.editor.pickTypes=[eF],this.serviceManager.plotService.gm.editor.startPickTarget=!0,this.serviceManager.plotService.gm.editor.pickString="请选择路径线或绘制一条路径";w=function(e){var t,i,n,r;if(e){if(e instanceof Cesium.Cartesian3){var o,s,c=a.serviceManager.plotService.createEntityName("路径直线");"飞行动画"==l.title?(o=a.serviceManager.plotService.gm.create({obj:"Polyline",color:"#f00",name:c,interplate:!0,clampToGround:!1,defaultHeight:1e4}).graph,O instanceof mR&&(o.defaultHeight=O.elevation,O.heightReference=0)):o=a.serviceManager.plotService.gm.create({obj:"Polyline",color:"#f00",name:c,interplate:!0,clampToGround:!0,defaultHeight:0}).graph;o.addCtlPoint(O.ctrlPosition[0]);var h=km.getLongitudeByCartesian3(e,a._viewer),p=km.getLatitudeByCartesian3(e,a._viewer),d=km.getHeightByCartesian3(e,a._viewer);O instanceof mR&&"飞行动画"!=l.title&&(d=0);var f=new Vu(h,p,d);o.addCtlPoint(f),s=a.serviceManager.plotService.gm.editor.onCreateFinished.subscribe(function(e){o==e&&(u(),o.defaultHeight=void 0),s.unsubscribe()}),H.polyLineId=o.id}else{try{for(var m=gV(a.serviceManager.animationService.allAnimation),g=m.next();!g.done;g=m.next()){var y=g.value;try{for(var _=(n=void 0,gV(y)),A=_.next();!A.done;A=_.next()){var v=A.value;if(v instanceof YX&&v.polyLine==e)return mV.log("该路径已经作为路径动画,禁止重复选择!"),void(a.serviceManager.plotService.gm.editor.startPickTarget=!0)}}catch(e){n={error:e}}finally{try{A&&!A.done&&(r=_.return)&&r.call(_)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{g&&!g.done&&(i=m.return)&&i.call(m)}finally{if(t)throw t.error}}O.setCtrlPosition(0,e.ctrlPosition[0]),a.serviceManager.plotService.gm.graphList.indexOf(e.ent)<0&&(a.serviceManager.plotService.gm.graphList.push(e.ent),a.serviceManager.plotService.isRefresh.next([e.ent.graph])),H.polyLineId=e.id,u()}H.targetId=O.id,F.unsubscribe()}};F=this.serviceManager.plotService.gm.editor.pickCompleted$.subscribe(w)}else if(l instanceof cV){var Y=this.serviceManager.plotService.gm.draw({obj:"Point",color:"#f00",show:!1,ctls:[{lon:98,lat:37}]});Y.show=!1,(c=l).targetId=Y.id,c.polyLineId=O.id,u()}else if(l instanceof CX){(c=l).targetId=O.id;var j,U=this.serviceManager.plotService.createEntityName("路径凝视"),G=(g=Math.ceil(this._viewer.camera.positionCartographic.height)/10,this.serviceManager.plotService.gm.create({obj:"Polyline",color:"#f00",name:U,interplate:!0,clampToGround:!1,defaultHeight:g}).graph);_=function(e){G==e&&(u(),G.defaultHeight=void 0),j.unsubscribe()};j=this.serviceManager.plotService.gm.editor.onCreateFinished.subscribe(_),c.polyLineId=G.id}else if(l instanceof MX){var Q=l;Q.targetId=O.id;this.serviceManager.plotService.createEntityName("环绕动画");if(this._viewer.terrainProvider.availability){var z=this._viewer.terrainProvider.availability._maximumLevel?this._viewer.terrainProvider.availability._maximumLevel:10,W=[Cesium.Cartographic.fromDegrees(O.ctrlPosition[0].lon,O.ctrlPosition[0].lat)];Cesium.sampleTerrain(this._viewer.terrainProvider,z,W).then(function(e){if(e[0].height){var t=Math.ceil(e[0].height);Q.__meta__.lineHeight.min=t,Q.__meta__.lineHeight.max=t+2e4}})}Q.lineHeight=Q.__meta__.lineHeight.min+400,Q.circleRadius=1500,u()}else if(l instanceof TX){var X=l;X.targetId=O.id;this.serviceManager.plotService.createEntityName("螺旋动画");if(this._viewer.terrainProvider.availability){z=this._viewer.terrainProvider.availability._maximumLevel?this._viewer.terrainProvider.availability._maximumLevel:10,W=[Cesium.Cartographic.fromDegrees(O.ctrlPosition[0].lon,O.ctrlPosition[0].lat)];Cesium.sampleTerrain(this._viewer.terrainProvider,z,W).then(function(e){if(e[0].height){var t=Math.ceil(e[0].height);X.__meta__.startHeight.min=t,X.__meta__.startHeight.max=t+5e3,X.__meta__.endHeight.min=t,X.__meta__.endHeight.max=t+5e3}})}X.startHeight=X.__meta__.startHeight.min+2500,X.endHeight=X.__meta__.endHeight.min+500,X.startRadius=2e3,X.endRadius=500,u()}}},e.prototype.createGraph=function(e){var t=this.serviceManager.plotService.gm.create(e);return t?t.graph:null},e.prototype.drawPoint=function(e,t){var i=this,n=[];return e.forEach(function(e){i.count++;var r={name:t,obj:"Point",ctls:[new Vu(e.geometry.coordinates[0],e.geometry.coordinates[1])]};Object.assign(r,e.properties);var o=i.serviceManager.plotService.draw(r,"gp-tubiaodian","".concat(t,"-").concat(i.count),!1);n.push(o)}),n},e.prototype.drawMultiPoint=function(e,t){var i=this,n=[];return e.forEach(function(e){var r=[];e.geometry.coordinates.forEach(function(e){var t=new Vu(e[0],e[1]);r.push(t)}),r.forEach(function(e){i.count++;var r={name:t,obj:"Point",ctls:[e]},o=i.serviceManager.plotService.draw(r,"gp-tubiaodian","".concat(t,"-").concat(i.count),!1);n.push(o)})}),n},e.prototype.drawLineString=function(e,t){var i=this,n=[];return e.forEach(function(e,r){i.count++;var o=t;i.count>0&&(o+="-".concat(i.count));var s=Ij(e,JSON.parse(JSON.stringify(i.geoGraph.LineString)));s.jsonId=r;var a=i.serviceManager.plotService.draw(s,"gp-zhixian",o,!1);n.push(a)}),n},e.prototype.drawMultiLineString=function(e,t){var i=[],n=Rj(e,JSON.parse(JSON.stringify(this.geoGraph.MultiLineString))),r=this.serviceManager.plotService.draw(n,"gp-zhixian",t,!1);return i.push(r),i},e.prototype.drawPolygon=function(e,t){var i=this,n=[];return e.forEach(function(e,r){var o=t;i.count++,i.count>0&&(o+="-".concat(i.count));var s=Ij(e,JSON.parse(JSON.stringify(i.geoGraph.Polygon)));s.jsonId=r,mV.log("features polygon>>>",s);var a=i.serviceManager.plotService.draw(s,"gp-zidingyixingzhuang",o,!1);n.push(a)}),n},e.prototype.drawMultiPolygon=function(e,t){var i=[],n=Rj(e,this.geoGraph.MultiPolygon),r=this.serviceManager.plotService.draw(n,"gp-zidingyixingzhuang",t,!1);return i.push(r),i},e}(),_V=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),AV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},vV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _V(t,e),t.prototype.createSampledProperty=function(){this.sampledProperty=new Cesium.SampledProperty(Cesium.Color)},t.prototype.initAnimation=function(){this.createSampledProperty(),this.target&&this.target instanceof HF&&(this.property="textColor"),this.defaultValue=this.target[this.property],this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),Cesium.Color.fromCssColorString(this.from)),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),Cesium.Color.fromCssColorString(this.to))},t.prototype.getCurrentValue=function(e){var t=e;return t<this.beginTime?this.from:t>this.beginTime+this.duration?this.to:this.sampledProperty.getValue(this.getCesiumAnimationTime(e)).toCssColorString()},t=AV([HR("ColorAnimation")],t)}(ZR),CV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),bV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},wV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return CV(t,e),t.prototype.createSampledProperty=function(){this.sampledProperty=new Cesium.SampledProperty(Number)},t=bV([HR("NumberAnimation")],t)}(ZR),xV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),SV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},MV=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},PV=function(e){function t(){var t=e.call(this)||this;return t.count=0,t.flag=!1,t.hideValues=["from","to"],t}return xV(t,e),t.prototype.createSampledProperty=function(){},t.prototype.initAnimation=function(){this.defaultValue=this.target[this.property]},t.prototype.getCurrentValue=function(e){return this.count>100-this.frequency&&(this.count=0,this.flag=!this.flag),this.count++,this.flag?this.from:this.to},SV([em({name:"频率",group:"",type:"number",order:7,min:1,max:100}),MV("design:type",Number)],t.prototype,"frequency",void 0),t=SV([HR("RepeatAnimation"),MV("design:paramtypes",[])],t)}(ZR),EV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),LV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},TV=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},OV=function(e){function t(){var t=e.call(this)||this;return t.hideValues=["duration","fillBehavior"],t}return EV(t,e),t.prototype.onTick=function(e){e>=this.beginTime&&(this.isexecuted||this.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(this.lon,this.lat,this.alt),orientation:{heading:Cesium.Math.toRadians(this.heading),pitch:Cesium.Math.toRadians(this.pitch),roll:this.roll}}),this.isexecuted=!0)},t=LV([HR("CameraSetAnimation"),TV("design:paramtypes",[])],t)}(dX),DV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),BV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},IV=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},RV=function(e){function t(){var t=e.call(this)||this;return t.hideValues=["duration"],t}return DV(t,e),t.prototype.createSampledProperty=function(){},t.prototype.initAnimation=function(){this.defaultValue=this.target[this.property]},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration){var i=YR.HoldEnd;this.fillBehavior==i?this.target[this.property]=this.to:this.stopAnimation()}else t>=this.beginTime&&(this.target[this.property]=this.to)},t=BV([HR("StateChangeAnimation"),IV("design:paramtypes",[])],t)}(ZR),NV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),kV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},FV=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},HV=function(e){function t(){var t=e.call(this)||this;return t.stopped=!1,t.createSampledProperty(),t.hideValues=["from","to"],t}return NV(t,e),t.prototype.createSampledProperty=function(){this.sampledProperty=new Cesium.SampledProperty(Number)},t.prototype.initAnimation=function(){e.prototype.initAnimation.call(this),this.htmlElement&&("left"===this.property&&(this.from=0-Number.parseInt(getComputedStyle(this.htmlElement).width),this.to=Number.parseInt(getComputedStyle(this.htmlElement).left)),this.createSampledProperty(),this.defaultValue=this.htmlElement.style[this.property],"opacity"===this.property&&(this.htmlElement.style[this.property]=this.from),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),this.from),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),this.to))},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration){var i=YR.HoldEnd;this.fillBehavior===i?this.htmlElement.style[this.property]=this.to:this.stopAnimation()}else if(t>=this.beginTime){var n=this.getCurrentValue(e);"opacity"===this.property?this.htmlElement.style[this.property]=n+"":this.htmlElement.style[this.property]=n+"px"}},t.prototype.getCesiumAnimationTime=function(e){return Cesium.JulianDate.addSeconds(this.animationBaseTime,e,new Cesium.JulianDate)},t.prototype.getCurrentValue=function(e){return e>this.beginTime+this.duration?this.to:this.sampledProperty.getValue(this.getCesiumAnimationTime(e))},t.prototype.stopAnimation=function(){this.stopped=!0,this.htmlElement&&(this.htmlElement.style[this.property]=this.defaultValue,this.htmlElement.style.pointerEvents="all")},kV([rm(),FV("design:type",Cesium.SampledProperty)],t.prototype,"sampledProperty",void 0),kV([em({name:"起始值",group:"",order:1,type:"owner",max:1,min:0}),FV("design:type",Object)],t.prototype,"from",void 0),kV([em({name:"终止值",group:"",order:1,type:"owner",max:1,min:0}),FV("design:type",Object)],t.prototype,"to",void 0),t=kV([HR("CssValueAnimation"),FV("design:paramtypes",[])],t)}(HW),YV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),jV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},UV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return YV(t,e),t.prototype.createSampledProperty=function(){Cesium&&Cesium.SampledProperty&&(this.sampledProperty=new Cesium.SampledProperty(Number))},t=jV([HR("CssNumberAnimation")],t)}(HV),GV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),QV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},zV=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},WV=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},XV=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},VV=function(e){function t(){var t=e.apply(this,XV([],WV(arguments),!1))||this;return t.count=0,t.flag=!1,t.endVisible=!0,t}return GV(t,e),t.prototype.createSampledProperty=function(){},t.prototype.getCurrentValue=function(e){return this.count>this.frequency&&(this.count=0,this.flag=!this.flag),this.count++,this.flag?this.from:this.to},t.prototype.stopAnimation=function(){this.geojsonDataSource&&(this.geojsonDataSource[this.property]=this.endVisible)},QV([em({name:"频率",group:"",type:"number",order:7,min:0,max:100}),zV("design:type",Number)],t.prototype,"frequency",void 0),QV([em({name:"结束时显示",group:"",type:"boolean",order:8}),zV("design:type",Object)],t.prototype,"endVisible",void 0),t=QV([HR("GeojsonRepeatAnimation")],t)}(tX),JV=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),KV=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},ZV=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},qV=function(e){function t(){return e.call(this)||this}return JV(t,e),t.prototype.initAnimation=function(){this.defaultValue=this.htmlElement.style[this.property]},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration){var i=YR.HoldEnd;this.fillBehavior===i?this.htmlElement.style[this.property]=this.defaultValue:this.stopAnimation()}else t>=this.beginTime&&(this.htmlElement.style[this.property]=this.to)},t.prototype.stopAnimation=function(){this.htmlElement&&(this.htmlElement.style[this.property]=this.defaultValue)},t=KV([HR("CssPropChangeAnimation"),ZV("design:paramtypes",[])],t)}(HW),$V=__webpack_require__(6763),eJ=function(){function e(){this.synth=window.speechSynthesis}return e.getInstance=function(){return"undefined"==typeof window?{}:(e.instance||(e.instance=new e),e.instance)},e.prototype.init=function(){var e=this;if(this.synth){var t=this.synth.getVoices();if(0!==t.length){var i=t.filter(function(e){return e.localService&&"zh-CN"===e.lang});if(0!==i.length){var n=i.find(function(e){return"Microsoft Yaoyao - Chinese (Simplified, PRC)"===e.name});n||(n=i[0]),this.voice=n}}else setTimeout(function(){e.init()},2e3)}},e.prototype.speak=function(e,t){var i=this;return void 0===t&&(t=1),new Promise(function(n,r){if(!i.voice)return $V.log("语音不存在"),void r("语音不存在");if(qB.isNullOrEmpty(e))r(null);else{i.synth.speaking&&i.synth.cancel();var o=new SpeechSynthesisUtterance(e);o.voice=i.voice,o.pitch=1,o.rate=t,i.synth.speak(o),o.onend=function(e){$V.log("speak end"),n("speak end")},o.onerror=function(e){$V.log("speak onerror"),r("SpeechSynthesisUtterance.onerror")}}})},e.prototype.stop=function(){this.synth&&this.synth.cancel()},e.prototype.pause=function(){this.synth&&this.synth.pause()},e.prototype.replay=function(){this.synth&&this.synth.resume()},e}(),tJ=__webpack_require__(6763),iJ=function(){function e(){this.synth=window.speechSynthesis;var e=window.AudioContext;e&&(this.audioContext=new e,this.audioContext.resume())}return e.getInstance=function(){return"undefined"==typeof window?{}:(e.instance||(e.instance=new e),e.instance)},e.prototype.getRequest=function(e,t){void 0===t&&(t="aisxping");var i=new URLSearchParams(window.location.search).get("scene"),n=i||"sceneId1",r=window.config.uploadfileService+"/audio/buff?sceneId=".concat(n,"&msg=").concat(e,"&vcn=").concat(t);return new Request(r,{method:"get",headers:{"Content-Type":"application/json",responseType:"blob"}})},e.prototype.playSound=function(e){this.bufferSource=this.audioContext.createBufferSource(),this.bufferSource.buffer=e,this.bufferSource.connect(this.audioContext.destination),this.bufferSource.start()},e.prototype.init=function(e,t){void 0===t&&(t="aisxping");var i=this.getRequest(e,t);fetch(i).catch(function(e){tJ.error("讯飞语音请求错误",e)})},e.prototype.speak=function(e,t){var i=this;void 0===t&&(t="aisxping");var n=this.getRequest(e,t);return new Promise(function(e,t){fetch(n).then(function(e){return e.blob()}).then(function(t){e("speak end");var n=new FileReader;n.readAsArrayBuffer(t);var r=i;n.onload=function(e){this.result instanceof ArrayBuffer&&r.audioContext.decodeAudioData(this.result,function(e){r.playSound(e)},function(e){tJ.log("error with decoding audio data:",e)})}}).catch(function(e){t("SpeechSynthesisUtterance.onerror")})})},e.prototype.stop=function(){if(this.bufferSource)try{this.bufferSource.stop()}catch(e){tJ.log(e)}},e.prototype.pause=function(){if(this.audioContext)try{this.audioContext.suspend()}catch(e){tJ.log(e)}},e.prototype.replay=function(){if(this.audioContext)try{this.audioContext.resume()}catch(e){tJ.log(e)}},e}(),nJ=function(){function e(){this.isPause=!1}return e.getInstance=function(){return"undefined"==typeof window?{}:(e.instance||(e.instance=new e),e.instance)},e.prototype.init=function(t){if(!e.SpeakType.startsWith("1")){var i=e.SpeakType.split("-")[1];return iJ.getInstance().init(t,i)}},e.prototype.speak=function(t,i){if(void 0===i&&(i=1),this.isPause=!1,e.SpeakType.startsWith("1"))return eJ.getInstance().speak(t,i);var n=e.SpeakType.split("-")[1];return iJ.getInstance().speak(t,n)},e.prototype.stop=function(){this.isPause=!0,e.SpeakType.startsWith("1")?eJ.getInstance().stop():iJ.getInstance().stop()},e.prototype.pause=function(){this.isPause=!0,e.SpeakType.startsWith("1")?eJ.getInstance().pause():iJ.getInstance().pause()},e.prototype.replay=function(){this.isPause=!1,e.SpeakType.startsWith("1")?eJ.getInstance().replay():iJ.getInstance().replay()},e.SpeakType="1",e}(),rJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),oJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},sJ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},aJ=function(e){function t(){var t=e.call(this)||this;return t.rate=1,t.isSpeak=!0,t.rd=!0,t.hasSpoken=!1,t}return rJ(t,e),Object.defineProperty(t.prototype,"subText",{get:function(){return this.htmlElement?this.htmlElement.innerText:"zzz"},enumerable:!1,configurable:!0}),t.prototype.resetDuration=function(){this.duration=Number.parseFloat((this.subText.trim().length/4).toFixed(2))},t.prototype.onTick=function(e){var t=e;if(this.htmlElement)if(t>=this.beginTime+this.duration){var i=YR.HoldEnd;this.fillBehavior===i?this.htmlElement.style.display="none":this.stopAnimation()}else t>=this.beginTime&&(this.htmlElement.style.display="inline",nJ.SpeakType.startsWith("0")||!this.isSpeak||this.hasSpoken||(nJ.getInstance().speak(this.htmlElement.innerText,this.rate),this.hasSpoken=!0))},t.prototype.stopAnimation=function(){this.htmlElement&&(this.htmlElement.style.display="none",this.hasSpoken=!1)},oJ([rm(),sJ("design:type",String),sJ("design:paramtypes",[])],t.prototype,"subText",null),oJ([em({name:"语速",group:"",type:"number",order:4,min:0,max:10}),sJ("design:type",Object)],t.prototype,"rate",void 0),oJ([em({name:"朗读",group:"",type:"boolean",order:3}),sJ("design:type",Object)],t.prototype,"isSpeak",void 0),oJ([rm(),em({name:"动画时长",group:"",type:"resetDuration",order:4}),sJ("design:type",Object)],t.prototype,"rd",void 0),t=oJ([HR("SubtitleAnimation"),sJ("design:paramtypes",[])],t)}(HW),lJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),uJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},cJ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},hJ=function(e){function t(){var t=e.call(this)||this;return t.hideValues=["from","to"],t}return lJ(t,e),t.prototype.createSampledProperty=function(){this.sampledProperty=new Cesium.SampledProperty(Number)},t.prototype.initAnimation=function(){this.createSampledProperty(),this.target&&(this.defaultValue=this.target[this.property]),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),0),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),1)},t.prototype.getCurrentValue=function(e){var t=e;return t<this.beginTime?this.from:t>this.beginTime+this.duration?this.to:this.sampledProperty.getValue(this.getCesiumAnimationTime(e))},t=uJ([HR("ForwardAnimation"),cJ("design:paramtypes",[])],t)}(ZR),pJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),dJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},fJ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pJ(t,e),t.prototype.initAnimation=function(){var e=this;this.geojsonDataSource=this.viewer.dataSources._dataSources.find(function(t){return t.name===e.dataSourceName}),this.geojsonDataSource&&(this.defaultValue=this.geojsonDataSource[this.property])},t.prototype.onTick=function(e){var t=e;if(t>=this.beginTime+this.duration){var i=YR.HoldEnd;this.fillBehavior===i?this.geojsonDataSource[this.property]=this.defaultValue:this.stopAnimation()}else t>=this.beginTime&&(this.geojsonDataSource[this.property]=this.to)},t=dJ([HR("GeojsonVisibleAnimation")],t)}(tX),mJ=__webpack_require__(6763),gJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),yJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},_J=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},AJ=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},vJ=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},CJ=function(e){function t(){var t=e.apply(this,vJ([],AJ(arguments),!1))||this;return t.direction="left",t}return gJ(t,e),t.prototype.initAnimation=function(){mJ.log("initAnimation",this.htmlElement),this.property="left",e.prototype.initAnimation.call(this),this.htmlElement&&("left"===this.direction?this.from=0-Number.parseInt(getComputedStyle(this.htmlElement).width):this.from=Number.parseInt(getComputedStyle(this.htmlElement.parentNode.parentNode).width),this.to=Number.parseInt(getComputedStyle(this.htmlElement).left),mJ.log("飞入动画",this.from,this.to),this.createSampledProperty(),this.defaultValue=this.htmlElement.style[this.property],this.htmlElement.style[this.property]=this.from+"px",this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),this.from),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),this.to))},yJ([em({name:"方向",type:"pOption",group:"",order:2,options:[{text:"左",value:"left"},{text:"右",value:"right"}]}),_J("design:type",Object)],t.prototype,"direction",void 0),t=yJ([HR("CssMoveHorizonAnimation")],t)}(UV),bJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),wJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},xJ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},SJ=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},MJ=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},PJ=function(e){function t(){var t=e.apply(this,MJ([],SJ(arguments),!1))||this;return t.direction="top",t}return bJ(t,e),t.prototype.initAnimation=function(){this.property="top",e.prototype.initAnimation.call(this),this.htmlElement&&("top"===this.direction?this.from=0-Number.parseInt(getComputedStyle(this.htmlElement).height):this.from=Number.parseInt(getComputedStyle(this.htmlElement.parentNode.parentNode).height),this.to=Number.parseInt(getComputedStyle(this.htmlElement).top),this.createSampledProperty(),this.defaultValue=this.htmlElement.style[this.property],this.htmlElement.style[this.property]=this.from+"px",this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),this.from),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),this.to))},wJ([em({name:"方向",type:"pOption",group:"",order:2,options:[{text:"上",value:"top"},{text:"下",value:"bottom"}]}),xJ("design:type",Object)],t.prototype,"direction",void 0),t=wJ([HR("CssMoveVerticalAnimation")],t)}(UV),EJ=__webpack_require__(6763),LJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),TJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},OJ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},DJ=function(e){function t(){return e.call(this)||this}return LJ(t,e),Object.defineProperty(t.prototype,"targetTif",{get:function(){return TT.getGp(this.targetId)},enumerable:!1,configurable:!0}),t.prototype.createSampledProperty=function(){this.sampledProperty=new Cesium.SampledProperty(Number)},t.prototype.initAnimation=function(){this.targetTif?(this.defaultValue=this.targetTif[this.property],this.createSampledProperty(),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),this.from),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),this.to)):EJ.error("动画关联标绘元素不存在")},t.prototype.setInitValue=function(){this.targetTif&&(this.targetTif[this.property]=1e-4)},t.prototype.onTick=function(e){if(this.targetTif){var t=e;if(t>=this.beginTime+this.duration)this.fillBehavior===YR.HoldEnd?this.targetTif[this.property]=this.to:this.targetTif[this.property]=1;else if(t>=this.beginTime){var i=this.getCurrentValue(e);this.targetTif[this.property]=i}}},TJ([rm(),OJ("design:type",LT),OJ("design:paramtypes",[])],t.prototype,"targetTif",null),t=TJ([HR("ShowTifAnimation"),OJ("design:paramtypes",[])],t)}(ZR),BJ=__webpack_require__(6763),IJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),RJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},NJ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},kJ=function(e){function t(){var t=e.call(this)||this;return t.increase=!1,t}return IJ(t,e),Object.defineProperty(t.prototype,"isIncrease",{get:function(){return this.increase},set:function(e){this.increase=e},enumerable:!1,configurable:!0}),t.prototype.createSampledProperty=function(){this.sampledProperty=new Cesium.SampledProperty(Number)},t.prototype.initAnimation=function(){this.target?(this.defaultValue=this.target[this.property],this.isIncrease?this.from=this.defaultValue:this.from=0,this.to=0,this.createSampledProperty(),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),this.from),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),this.to)):BJ.error("动画关联标绘元素不存在")},t.prototype.onTick=function(e){if(this.target){var t=e;if(t>=this.beginTime+this.duration)this.fillBehavior===YR.HoldEnd?this.target[this.property]=this.to:this.target[this.property]=this.defaultValue;else if(t>=this.beginTime){var i=this.getCurrentValue(e);this.target[this.property]=i}}},t.prototype.stopAnimation=function(){this.target&&void 0!==this.defaultValue&&(this.target[this.property]=this.defaultValue)},RJ([em({name:"渐隐",group:"",subOrder:6,type:"boolean",order:2}),NJ("design:type",Boolean),NJ("design:paramtypes",[Boolean])],t.prototype,"isIncrease",null),t=RJ([HR("HideAnimation"),NJ("design:paramtypes",[])],t)}(ZR),FJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),HJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},YJ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},jJ=function(e){function t(){var t=e.call(this)||this;return t.increase=!1,t}return FJ(t,e),Object.defineProperty(t.prototype,"isIncrease",{get:function(){return this.increase},set:function(e){this.increase=e,this.increase?this.from=0:this.from=1},enumerable:!1,configurable:!0}),t.prototype.initAnimation=function(){this.stopped=!1,this.htmlElement&&(this.createSampledProperty(),this.defaultValue=1,this.htmlElement.style.opacity=0,this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),this.from),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),this.to),this.htmlElement.style.pointerEvents="none")},t.prototype.onTick=function(e){var t=e;if(!this.stopped)if(t>=this.beginTime+this.duration){var i=YR.HoldEnd;this.fillBehavior===i?this.htmlElement.style.opacity=this.to:this.htmlElement.style.opacity=0}else if(t>=this.beginTime){var n=this.getCurrentValue(e);this.htmlElement.style.opacity=n+""}},HJ([em({name:"渐显",group:"",subOrder:6,type:"boolean",order:2}),YJ("design:type",Boolean),YJ("design:paramtypes",[Boolean])],t.prototype,"isIncrease",null),t=HJ([HR("CssShowAnimation"),YJ("design:paramtypes",[])],t)}(HV),UJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),GJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},QJ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},zJ=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},WJ=function(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},XJ=function(e){function t(){var t=e.apply(this,WJ([],zJ(arguments),!1))||this;return t.isexecuted=!1,t}return UJ(t,e),t.prototype.stopAnimation=function(){},t.prototype.initAnimation=function(){this.isexecuted=!1},t.prototype.onTick=function(e){e>=this.beginTime+this.duration&&(this.isexecuted=!1)},GJ([rm(),QJ("design:type",Object)],t.prototype,"isexecuted",void 0),t=GJ([HR("PopulationTimeAnimation")],t)}(zR),VJ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),JJ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},KJ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ZJ=function(e){function t(){var t=e.call(this)||this;return t.increase=!1,t}return VJ(t,e),Object.defineProperty(t.prototype,"isIncrease",{get:function(){return this.increase},set:function(e){this.increase=e,this.increase?this.from=1:this.from=0},enumerable:!1,configurable:!0}),t.prototype.initAnimation=function(){this.stopped=!1,this.htmlElement&&(this.createSampledProperty(),this.htmlElement.style.opacity=1,this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime,new Cesium.JulianDate),this.from),this.sampledProperty.addSample(Cesium.JulianDate.addSeconds(this.animationBaseTime,this.beginTime+this.duration,new Cesium.JulianDate),this.to))},t.prototype.onTick=function(e){var t=e;if(!this.stopped)if(t>=this.beginTime+this.duration){var i=YR.HoldEnd;this.fillBehavior===i?this.htmlElement.style.opacity=this.to:this.htmlElement.style.opacity=1}else if(t>=this.beginTime){var n=this.getCurrentValue(e);this.htmlElement.style.opacity=n+""}},JJ([em({name:"渐隐",group:"",subOrder:6,type:"boolean",order:2}),KJ("design:type",Boolean),KJ("design:paramtypes",[Boolean])],t.prototype,"isIncrease",null),t=JJ([HR("CssHideAnimation"),KJ("design:paramtypes",[])],t)}(HV),qJ=__webpack_require__(6763),$J=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),eK=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},tK=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},iK=function(e){function t(){var t=e.call(this)||this;return t.maskBehavior=RX.LefttoRight,t.stopped=!1,t.isInited=!1,delete t.__meta__.fillBehavior,t}return $J(t,e),t.prototype.initAnimation=function(){this.isInited=!1,this.stopped=!1},t.prototype.onTick=function(e){var t,i=this,n=e;if(this.maskBehavior===RX.LefttoRight?t=this.startWidth/this.duration:this.maskBehavior===RX.ToptoBottom&&(t=this.startHeight/this.duration),n>=this.beginTime+this.duration)this.stopAnimation();else if(n>=this.beginTime){if(!this.isInited){if("html-draw-container"!==this.htmlElement.parentNode.id)return;if(this.htmlElement.style.display="inline",qJ.log("蒙版 初始化"),!this.currentAni)return;var r=document.getElementById("html-draw-container");if(!r)return;"html-box-subtitle"==this.htmlElement.className?(qJ.log("isSubtitle"),this.maskBox=document.createElement("div"),["width","bottom","left"].forEach(function(e){i.maskBox.style[e]=i.htmlElement.style[e]}),this.maskBox.style.height=getComputedStyle(this.htmlElement).height,this.maskBox.style["background-color"]="rgba(255, 255, 255, 0)",this.maskBox.style.position="absolute",this.maskBox.style.overflow="hidden",r.removeChild(this.htmlElement),this.htmlElement.style.bottom=0,this.htmlElement.style.left=0,this.htmlElement.style.width="1536px",this.htmlElement.style.wordWrap="break-word",r.appendChild(this.maskBox),this.maskBox.appendChild(this.htmlElement),this.startWidth=this.maskBox.style.width.split("%")[0],this.startHeight=this.maskBox.style.height.split("px")[0]):(this.maskBox=document.createElement("div"),["width","height","top","left"].forEach(function(e){i.maskBox.style[e]=i.htmlElement.style[e]}),this.maskBox.style["background-color"]="rgba(255, 255, 255, 0)",this.maskBox.style.position="absolute",this.maskBox.style.overflow="hidden",r.removeChild(this.htmlElement),this.htmlElement.style.top=0,this.htmlElement.style.left=0,this.htmlElement.style.wordWrap="break-word",r.appendChild(this.maskBox),this.maskBox.appendChild(this.htmlElement),this.startWidth=this.maskBox.style.width.split("px")[0],this.startHeight=this.maskBox.style.height.split("px")[0]),this.isInited=!0}"html-box-subtitle"==this.htmlElement.className?this.maskBehavior===RX.LefttoRight?this.maskBox.style.width=(n-this.beginTime)*t+"%":this.maskBehavior===RX.ToptoBottom&&(this.maskBox.style.height=(n-this.beginTime)*t+"px"):this.maskBehavior===RX.LefttoRight?this.maskBox.style.width=(n-this.beginTime)*t+"px":this.maskBehavior===RX.ToptoBottom&&(this.maskBox.style.height=(n-this.beginTime)*t+"px")}},t.prototype.stopAnimation=function(){var e=this;if(!this.stopped&&(this.stopped=!0,qJ.log("蒙版 stopAnimation"),this.currentAni)){var t=document.getElementById("html-draw-container");t&&this.maskBox&&this.maskBox instanceof HTMLElement&&(this.maskBox.removeChild(this.htmlElement),t.removeChild(this.maskBox),"html-box-subtitle"==this.htmlElement.className?(this.htmlElement.style.width="80%",this.htmlElement.style.bottom="100px",this.htmlElement.style.left="10%",this.htmlElement.style.height=getComputedStyle(this.htmlElement).height):["top","left"].forEach(function(t){e.htmlElement.style[t]=e.maskBox.style[t]}),t.appendChild(this.htmlElement))}},eK([em({name:"蒙版方向",type:"pOption",group:"",order:4,options:[{text:"从左至右",value:RX.LefttoRight},{text:"从上至下",value:RX.ToptoBottom}]}),tK("design:type",String)],t.prototype,"maskBehavior",void 0),t=eK([HR("CssMaskAnimation"),tK("design:paramtypes",[])],t)}(HW),nK=function(){function e(){}return e.init=function(){e.animationList=[{type:qm,animation:{type:"ColorAnimation",property:"color",from:"#ED6F00",to:"#00FF00",keyframes:[{val:0},{val:3e3}]},title:"颜色渐变",icon:"gv-taishibiaohui",image:"样式动画图片/颜色渐变.png",webp:"页面动画WEBP/颜色渐变.webp"},{type:ok,animation:{type:"PathAnimation",keyframes:[{val:0},{val:3e3}]},title:"路径动画",icon:"gv-Route",image:"样式动画图片/路径动画.png",webp:"页面动画WEBP/路径动画.webp"},{type:ok,animation:{type:"PathAnimation",keyframes:[{val:0},{val:3e3}]},title:"飞行动画",icon:"gv-Route",image:"样式动画图片/飞行动画.png",webp:"页面动画WEBP/飞行动画.webp"},{type:eF,animation:{type:"ForwardAnimation",property:"percent",keyframes:[{val:0},{val:3e3}]},title:"路径生长",icon:"gv-Route",image:"样式动画图片/路径生长.png",webp:"页面动画WEBP/路径生长.webp"},{type:mR,animation:{type:"PathAnimation",keyframes:[{val:0},{val:3e3}]},title:"路径动画",icon:"gv-Route",image:"样式动画图片/路径动画.png",webp:"页面动画WEBP/路径动画.webp"},{type:mR,animation:{type:"PathAnimation",keyframes:[{val:0},{val:3e3}]},title:"飞行动画",icon:"gv-Route",image:"样式动画图片/飞行动画.png",webp:"页面动画WEBP/飞行动画.webp"},{type:ck,animation:{type:"PathAnimation",keyframes:[{val:0},{val:3e3}],hideValues:["cameraType","cameraHeight"]},title:"路径动画",icon:"gv-Route",image:"样式动画图片/路径动画.png",webp:"页面动画WEBP/路径动画.webp"},{type:ck,animation:{type:"PathAnimation",keyframes:[{val:0},{val:3e3}],hideValues:["cameraType","cameraHeight"]},title:"飞行动画",icon:"gv-Route",image:"样式动画图片/飞行动画.png",webp:"页面动画WEBP/飞行动画.webp"},{type:xR,animation:{type:"PathAnimation",keyframes:[{val:0},{val:3e3}],hideValues:["cameraType","cameraHeight"]},title:"路径动画",icon:"gv-Route",image:"样式动画图片/路径动画.png",webp:"页面动画WEBP/路径动画.webp"},{type:xR,animation:{type:"PathAnimation",keyframes:[{val:0},{val:3e3}],hideValues:["cameraType","cameraHeight"]},title:"飞行动画",icon:"gv-Route",image:"样式动画图片/飞行动画.png",webp:"页面动画WEBP/飞行动画.webp"},{type:qm,animation:{type:"RepeatAnimation",keyframes:[{val:0},{val:3e3}],property:"show",from:!0,to:!1,frequency:90},title:"闪烁",icon:"gv-baozha",image:"样式动画图片/闪烁动画.png",webp:"页面动画WEBP/闪烁动画.webp"},{type:qm,animation:{type:"ShowAnimation",keyframes:[{val:0},{val:3e3}],from:1,to:1,property:"alpha",hideValues:["from","to"]},title:"显示",icon:"gp-yincang",image:"样式动画图片/显示动画.png",webp:"页面动画WEBP/显示动画.webp"},{type:qm,animation:{type:"HideAnimation",keyframes:[{val:0},{val:3e3}],from:0,to:0,property:"alpha",hideValues:["from","to"]},title:"隐藏",icon:"gp-yincang",image:"样式动画图片/隐藏动画.png",webp:"页面动画WEBP/隐藏动画.webp"},{type:fU,animation:{type:"ForwardAnimation",property:"percent",keyframes:[{val:0},{val:3e3}]},title:"路径生长",icon:"gv-Route",image:"样式动画图片/路径生长.png",webp:"页面动画WEBP/路径生长.webp"},{type:sj,animation:{type:"ForwardAnimation",property:"percent",keyframes:[{val:0},{val:3e3}]},title:"路径生长",icon:"gv-Route",image:"样式动画图片/路径生长.png",webp:"页面动画WEBP/路径生长.webp"},{isGeojson:!0,type:hO,animation:{type:"GeojsonRepeatAnimation",keyframes:[{val:0},{val:3e3}],property:"show",from:!0,to:!1,frequency:10},title:"闪烁",icon:"gv-baozha",image:"样式动画图片/闪烁动画.png",webp:"页面动画WEBP/闪烁动画.webp"},{isGeojson:!0,type:hO,animation:{type:"GeojsonVisibleAnimation",keyframes:[{val:0},{val:3e3}],property:"show",from:!1,to:!0,fillBehavior:"0",hideValues:["from","to"]},title:"显示",icon:"gv-yanjing_xianshi",image:"样式动画图片/显示动画.png",webp:"页面动画WEBP/显示动画.webp"},{isGeojson:!0,type:hO,animation:{type:"GeojsonVisibleAnimation",keyframes:[{val:0}],property:"show",from:!0,to:!1,fillBehavior:"0",hideValues:["from","to","duration"]},title:"隐藏",icon:"gp-yincang",image:"样式动画图片/隐藏动画.png",webp:"页面动画WEBP/隐藏动画.webp"},{type:ok,animation:{type:"FollowAnimation",keyframes:[{val:0},{val:1e4}]},title:"路径凝视",icon:"gv-Route",image:"视角动画图片/凝视.png",webp:"视角动画WEBP文件/凝视_00000_iSpt.webp"},{type:nH,animation:{type:"FollowAnimation",keyframes:[{val:0},{val:1e4}]},title:"路径凝视",icon:"gv-Route",image:"视角动画图片/凝视.png",webp:"视角动画WEBP文件/凝视_00000_iSpt.webp"},{type:sQ,animation:{type:"FollowAnimation",keyframes:[{val:0},{val:1e4}]},title:"路径凝视",icon:"gv-Route",image:"视角动画图片/凝视.png",webp:"视角动画WEBP文件/凝视_00000_iSpt.webp"},{type:qI,animation:{type:"FollowAnimation",keyframes:[{val:0},{val:1e4}]},title:"路径凝视",icon:"gv-Route",image:"视角动画图片/凝视.png",webp:"视角动画WEBP文件/凝视_00000_iSpt.webp"},{type:mR,animation:{type:"FollowAnimation",keyframes:[{val:0},{val:1e4}]},title:"路径凝视",icon:"gv-Route",image:"视角动画图片/凝视.png",webp:"视角动画WEBP文件/凝视_00000_iSpt.webp"},{type:ok,animation:{type:"SurroundAnimation",keyframes:[{val:0},{val:1e4}]},title:"环绕凝视",icon:"gv-Route",image:"视角动画图片/环绕.png",webp:"视角动画WEBP文件/环绕_00000_iSpt.webp"},{type:nH,animation:{type:"SurroundAnimation",keyframes:[{val:0},{val:1e4}]},title:"环绕凝视",icon:"gv-Route",image:"视角动画图片/环绕.png",webp:"视角动画WEBP文件/环绕_00000_iSpt.webp"},{type:sQ,animation:{type:"SurroundAnimation",keyframes:[{val:0},{val:1e4}]},title:"环绕凝视",icon:"gv-Route",image:"视角动画图片/环绕.png",webp:"视角动画WEBP文件/环绕_00000_iSpt.webp"},{type:qI,animation:{type:"SurroundAnimation",keyframes:[{val:0},{val:1e4}]},title:"环绕凝视",icon:"gv-Route",image:"视角动画图片/环绕.png",webp:"视角动画WEBP文件/环绕_00000_iSpt.webp"},{type:mR,animation:{type:"SurroundAnimation",keyframes:[{val:0},{val:1e4}]},title:"环绕凝视",icon:"gv-Route",image:"视角动画图片/环绕.png",webp:"视角动画WEBP文件/环绕_00000_iSpt.webp"},{type:ok,animation:{type:"SpiralAnimation",keyframes:[{val:0},{val:1e4}]},title:"螺旋凝视",icon:"gv-Route",image:"视角动画图片/螺旋.png",webp:"视角动画WEBP文件/螺旋.webp"},{type:nH,animation:{type:"SpiralAnimation",keyframes:[{val:0},{val:1e4}]},title:"螺旋凝视",icon:"gv-Route",image:"视角动画图片/螺旋.png",webp:"视角动画WEBP文件/螺旋.webp"},{type:sQ,animation:{type:"SpiralAnimation",keyframes:[{val:0},{val:1e4}]},title:"螺旋凝视",icon:"gv-Route",image:"视角动画图片/螺旋.png",webp:"视角动画WEBP文件/螺旋.webp"},{type:qI,animation:{type:"SpiralAnimation",keyframes:[{val:0},{val:1e4}]},title:"螺旋凝视",icon:"gv-Route",image:"视角动画图片/螺旋.png",webp:"视角动画WEBP文件/螺旋.webp"},{type:mR,animation:{type:"SpiralAnimation",keyframes:[{val:0},{val:1e4}]},title:"螺旋凝视",icon:"gv-Route",image:"视角动画图片/螺旋.png",webp:"视角动画WEBP文件/螺旋.webp"},{isAudio:!0,type:XB,animation:{type:"AudioAnimation",keyframes:[{val:0},{val:3e3}]},title:"音频播放",icon:"gv-Route",image:"视角动画图片/音效.png",webp:"视角动画WEBP文件/螺旋.webp"},{type:null,animation:{type:"CameraSetAnimation",keyframes:[{val:0}]},title:"视角切换",icon:"gp-shijiaoqiehuan",image:"视角动画图片/视角切换.png",webp:"视角动画WEBP文件/视角切换_00000_iSpt.webp"},{type:null,animation:{type:"CameraFlyAnimation",keyframes:[{val:0},{val:1e4}]},title:"视角飞入",icon:"gp-shijiaofeiru",image:"视角动画图片/视角飞入.png",webp:"视角动画WEBP文件/视角飞入_00000_iSpt.webp"},{type:null,animation:{type:"CameraRoamAnimation",keyframes:[{val:0},{val:1e4}]},title:"相机漫游",icon:"gp-lujingmanyou",image:"视角动画图片/相机漫游.png",webp:"视角动画WEBP文件/相机漫游_00000_iSpt.webp"},{type:null,animation:{type:"FollowAnimation",keyframes:[{val:0},{val:1e4}]},title:"路径凝视",icon:"gp-lujingmanyou",image:"视角动画图片/凝视.png",webp:"视角动画WEBP文件/凝视_00000_iSpt.webp"},{type:null,animation:{type:"SurroundAnimation",keyframes:[{val:0},{val:1e4}]},title:"环绕凝视",icon:"gv-Route",image:"视角动画图片/环绕.png",webp:"视角动画WEBP文件/环绕_00000_iSpt.webp"},{type:null,animation:{type:"SpiralAnimation",keyframes:[{val:0},{val:1e4}]},title:"螺旋凝视",icon:"gv-Route",image:"视角动画图片/螺旋.png",webp:"视角动画WEBP文件/螺旋.webp"},{type:mR,animation:{type:"GxModelAnimation",keyframes:[{val:0},{val:3e3}]},title:"骨骼动画",icon:"gv-Plotting",image:"样式动画图片/模型动画.png",webp:"页面动画WEBP/模型.webp"},{type:iz,animation:{type:"ArrowDirectAnimation",keyframes:[{val:0},{val:3e3}]},title:"箭头生长",icon:"gv-Route",image:"样式动画图片/箭头生长.png",webp:"页面动画WEBP/箭头生长.webp"},{type:ok,animation:{type:"TargetFllowAnimation",keyframes:[{val:0},{val:3e3}]},title:"目标跟随",icon:"gv-Route",image:"样式动画图片/目标跟随.png",webp:"页面动画WEBP/目标跟随.webp"},{type:LR,animation:{type:"TargetFllowAnimation",keyframes:[{val:0},{val:3e3}]},title:"目标跟随",icon:"gv-Route",image:"样式动画图片/目标跟随.png",webp:"页面动画WEBP/目标跟随.webp"},{type:mR,animation:{type:"TargetFllowAnimation",keyframes:[{val:0},{val:3e3}]},title:"目标跟随",icon:"gv-Route",image:"样式动画图片/目标跟随.png",webp:"页面动画WEBP/目标跟随.webp"},{isTif:!0,type:LT,animation:{type:"ShowTifAnimation",keyframes:[{val:0},{val:3e3}],from:0,to:1,property:"alpha",hideValues:["from","to"]},title:"显示",icon:"gv-yanjing_xianshi",image:"样式动画图片/显示动画.png",webp:"页面动画WEBP/显示动画.webp"},{type:xR,animation:{type:"TargetFllowAnimation",keyframes:[{val:0},{val:3e3}]},title:"目标跟随",icon:"gv-Route",image:"样式动画图片/目标跟随.png",webp:"页面动画WEBP/目标跟随.webp"},{type:nH,animation:{type:"TargetFllowAnimation",keyframes:[{val:0},{val:3e3}]},title:"目标跟随",icon:"gv-Route",image:"样式动画图片/目标跟随.png",webp:"页面动画WEBP/目标跟随.webp"},{type:BI,animation:{type:"NumberAnimation",keyframes:[{val:0},{val:3e3}],property:"percentAngle",from:0,to:360,minvalue:0,maxvalue:360},title:"旋转填充",icon:"gv-Route",image:"样式动画图片/旋转填充.png",webp:"页面动画WEBP/旋转填充.webp"},{type:WY,animation:{type:"NumberAnimation",keyframes:[{val:0},{val:3e3}],property:"percentAngle",from:0,to:360,minvalue:0,maxvalue:360},title:"旋转填充",icon:"gv-Route",image:"样式动画图片/旋转填充.png",webp:"页面动画WEBP/旋转填充.webp"},{type:null,animation:{type:"AutoRotationAnimation",keyframes:[{val:0},{val:1e4}]},title:"地球自转",icon:"gp-shijiaoqiehuan",image:"视角动画图片/地球自转.png",webp:"视角动画WEBP文件/地球自转.webp"},{type:null,animation:{type:"ZoomToFlyAnimation",keyframes:[{val:0},{val:1e4}]},title:"缩放至",icon:"gp-shijiaoqiehuan",image:"视角动画图片/缩放至.png",webp:"视角动画WEBP文件/缩放至.webp"}]},e.animationRegister=[vV,wV,iN,DJ,kJ,PV,YX,ZR,dX,OV,yX,fV,IX,RV,HV,UV,qV,CJ,PJ,jJ,ZJ,VV,tX,fJ,aJ,cV,hJ,CX,MX,TX,nV,XJ,GW,VW,iK,oX,uX,ZX],e.animationList=[],e}(),rK=__webpack_require__(5093),oK=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())})},sK=function(e,t){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},aK=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},lK=function(){function e(e){var t,i,n=this;this.takePicture=!1,this.pictureMove=!1,this.refSub$=new am,this.pageImage="",this.select$=new am,this.startPlay$=new am,this.allAnimation=[],this.timelineModeChanged$=new am,this.cesiumTimlineZoom$=new am,this._showGlobalTimeLine=!1,this.isPaused=!1,this.show=!1,this.isMultiSelect=!1,this.isInitAnimationListWrapper=!1,this.initAnimationListWrapper=new am,this.animationListWrapperNode=[],this.getLayersNodeList=new am,this.needDetectd$=new am,this.needRedraw$=new am,this.subjects=[],this.setTimelines$=new am,this.sliderMin=.1,this.sliderMax=80,this.stopAnimationSub$=new am,this.rePlayPage$=new am,this.currentSelected=[],this.animationType=!1,this.needRefresh=!1,this._currentTime=0,this.itemAnimation=[],this.serviceManager=e,this._viewer=e.viewer,nK.init();try{for(var r=aK(nK.animationList),o=r.next();!o.done;o=r.next()){var s=o.value;s.animation=HN.deserializeSingleAnimation(s.animation)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}this.onSelectGraph(null);var a=localStorage.getItem("showGlobalTimeLine");this.showGlobalTimeLine="true"==a,this.initAnimationListWrapper.pipe(Uz(300)).subscribe(function(){n.isInitAnimationListWrapper=!0,n.getLayersNodeList.next(null);var e=[];n.animationListWrapperNode.length&&(n.animationListWrapperNode.forEach(function(t,i){e=0===i?n.initAnimationList(t.origin.entity):n.intersectTwoArr(e,n.initAnimationList(t.origin.entity))}),n.animationType=!0,n.itemAnimation=e),n.isInitAnimationListWrapper=!1})}return Object.defineProperty(e.prototype,"showGlobalTimeLine",{get:function(){return this._showGlobalTimeLine},set:function(e){this._showGlobalTimeLine=e,localStorage.setItem("showGlobalTimeLine",e?"true":"false"),this.timelineModeChanged$.next(1),this.cesiumTimlineZoom$.next(1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){return this._component},set:function(e){var t=this;this._component=e,this.component.startAllPause.subscribe(function(e){t.isPaused=!0})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectTimeLine",{get:function(){return this._selectTimeLine},set:function(e){var t,i,n=this;if(this.select$.next(e),this.subjects.forEach(function(e){e.unsubscribe()}),this.subjects=[],this._selectTimeLine&&(this._selectTimeLine instanceof Array?this._selectTimeLine.forEach(function(e){return e.selected=!1}):this._selectTimeLine.selected=!1),this._selectTimeLine=e,this._selectTimeLine)if(this._selectTimeLine instanceof Array)this._selectTimeLine.forEach(function(e){var t,i;e.selected=!0;try{for(var r=aK(e.keyframes),o=r.next();!o.done;o=r.next()){var s=o.value;n.subjects.push(s.valueChanged.subscribe(function(e){n.needRedraw$.next(1)}))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}});else{this._selectTimeLine.selected=!0;try{for(var r=aK(this._selectTimeLine.keyframes),o=r.next();!o.done;o=r.next()){var s=o.value;this.subjects.push(s.valueChanged.subscribe(function(e){n.needRedraw$.next(1)}))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}}this.needRedraw$.next(1)},enumerable:!1,configurable:!0}),e.prototype.onSelectGraph=function(e){this.initAnimationList(e)},e.prototype.initAnimationList=function(e){var t,i;if(!this.isMultiSelect||this.isInitAnimationListWrapper){if(this.needDetectd$.next(1),e){if(e instanceof LT&&!e.isAni)return;var n=[];try{for(var r=aK(nK.animationList),o=r.next();!o.done;o=r.next()){var s=o.value;if((!(e instanceof gH||e instanceof PH)||"ColorAnimation"!=s.animation.type)&&(!(e instanceof HF&&"ForwardAnimation"==s.animation.type)&&null!=s.type&&e instanceof s.type)){if(s.animation instanceof ZR&&!e[s.animation.property]&&0!=e[s.animation.property])continue;n.push(s)}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}if(e instanceof FH){var a=n.findIndex(function(e){return"颜色渐变"===e.title});a>-1&&n.splice(a,1)}return this.animationType=!0,this.itemAnimation=n,n}var l=nK.animationList.filter(function(e){return null==e.type||null==e.type});return this.itemAnimation=l,this.animationType=!1,l}this.initAnimationListWrapper.next(null)},e.prototype.cloneAnimation=function(e){var t=HN.serializeSingleAnimation(e),i=e.type,n=JSON.stringify(t),r=JSON.parse(n);return r.type=i,r=HN.deserializeSingleAnimation(r)},e.prototype.loadFromGm=function(){var e=[],t=this.serviceManager.plotService.gm.animationManager.animationGroupList;this.animationGroupList=t;for(var i=nK.animationList.filter(function(e){return e.animation}),n=0;n<t.length;n++){for(var r=[],o=function(e){var o=t[n].animationList[e],s=i.find(function(e){return e.animation.type===o.type});s&&(o.image=s.image),r.push(o)},s=0;s<t[n].animationList.length;s++)o(s);e.push(r)}this.allAnimation=e,this.needDetectd$.next(1)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this._currentTime},set:function(e){this._currentTime=e},enumerable:!1,configurable:!0}),e.prototype.rebuildAnimation=function(){var e,t,i,n;if(!this.serviceManager.plotService.gm)return!1;this.stopAnimatin();var r=this.serviceManager.plotService.gm.animationManager.animationGroupList.map(function(e){return e.offsetSeconds});if(this.populationLayer?(this.serviceManager.plotService.gm.animationManager.animationGroupList=[],this.serviceManager.plotService.gm.animationManager.add(this.populationGroup)):this.serviceManager.plotService.gm.animationManager.animationGroupList=[],this.allAnimation){var o=0;try{for(var s=aK(this.allAnimation),a=s.next();!a.done;a=s.next()){var l=a.value,u=new aN;u.offsetSeconds=r[o]&&!this.serviceManager.plotService.gm.animationManager.animationGroupList.includes(this.populationGroup)?r[o]:0==o?0:this.serviceManager.plotService.gm.animationManager.animationGroupList[o-1].offsetSeconds+2,o++,this.serviceManager.plotService.gm.animationManager.add(u);try{for(var c=(i=void 0,aK(l)),h=c.next();!h.done;h=c.next()){var p=h.value;if(qB.isNullOrEmpty(p.label))return!1;u.add(p)}}catch(e){i={error:e}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}}return this.serviceManager.plotService.gm.animationManager.initAnimationTime(new Date(this.pageTime)),!0},e.prototype.startPlay=function(e){var t=this;if(this.pageTime=e.pageTime,this.isPaused)this._viewer.clock.shouldAnimate=!0;else{var i=this.serviceManager.engine.sceneManager.gm.animationManager;i.currentIndex=0,this.startPlay$.next(1),this.rebuildAnimation();var n=0;this.serviceManager.plotService.plotEnable(!0),i.animationGroupList.length>0?(i.start(new Date(e.pageTime)),this.cesiumTimlineZoom$.next(1),this.listener=function(){var e=i.animationGroupList[i.currentIndex];if(!e)return t._viewer.clock.onTick.removeEventListener(t.listener),t.listener=null,t.currentTime=0,t.isPaused=!1,void(t.needRefresh=!1);var r=t._viewer.clock.currentTime.secondsOfDay-i.baseTimeLine.secondsOfDay-e.beginTime;n=r,t.currentTime=n},this._viewer.clock.onTick.addEventListener(this.listener),this.needRefresh=!0):setTimeout(function(){})}},e.prototype.stopAnimatin=function(){return oK(this,void 0,void 0,function(){return sK(this,function(e){switch(e.label){case 0:return this.isPaused=!1,this._viewer.clock.onTick.removeEventListener(this.listener),this.serviceManager.plotService.gm?[4,this.serviceManager.plotService.gm.animationManager.stop()]:[3,2];case 1:e.sent(),this.currentTime=0,this._viewer.clock.shouldAnimate=!1,this.serviceManager.plotService.plotEnable(!1),e.label=2;case 2:return[2]}})})},e.prototype.stopTimelineAni=function(){this.component.stopAnimation()},e.prototype.deleteAnimationByTargetIdHtml=function(e){var t,i,n,r,o=!1;try{for(var s=aK(this.allAnimation),a=s.next();!a.done;a=s.next()){var l=a.value;try{for(var u=(n=void 0,aK(l)),c=u.next();!c.done;c=u.next()){var h=c.value;if(h instanceof HW&&h.htmlElementId===e){jf.Remove(l,h),o=!0,0===l.length&&jf.Remove(this.allAnimation,l);break}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(o)break}}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}this.needRedraw$.next(1)},e.prototype.getAnimationByTargetIdHtml=function(e){var t,i,n,r,o;try{for(var s=aK(this.allAnimation),a=s.next();!a.done;a=s.next()){var l=a.value;try{for(var u=(n=void 0,aK(l)),c=u.next();!c.done;c=u.next()){var h=c.value;if(h instanceof HW&&h.htmlElementId===e){o=h;break}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(o)break}}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}return o},e.prototype.addSubtitleAnimation=function(e){var t=this.cloneAnimation(e.animation);t.image=e.image,t.title=e.title,1===t.keyframes.length&&(t.keyframes[0].shape="point");var i=[].concat.apply([],this.allAnimation);if(t.label=ZB.createEntityName(e.title,i.map(function(e){return e.label})),t.id=ST(),this.showGlobalTimeLine=!1,this.allAnimation.length>0){var n=this.allAnimation.length;this.allAnimation[n-1].push(t)}else this.allAnimation.push([t])},e.prototype.addPopulationLayer=function(){var e=new Date("2005-06-01"),t=new Date("2020-06-16"),i=Cesium.TimeIntervalCollection.fromIso8601({iso8601:"".concat(rK(e).format("YYYY-MM-DD"),"/").concat(rK(t).format("YYYY-MM-DD"),"/P1Y"),leadingInterval:!0,trailingInterval:!0,isStopIncluded:!1,dataCallback:function(e,t){return{Time:0===t?Cesium.JulianDate.toIso8601(e.stop):Cesium.JulianDate.toIso8601(e.start)}}}),n=new Cesium.WebMapTileServiceImageryProvider({url:"https://192.168.160.230:8082/2016-08-15/proxy/svc_container_dynamic_raster/fc_gtiff_cog/cog/timeseries/population/{TileMatrix}/{TileCol}/{TileRow}?datatime={Time}&scale=1&TileMatrixSetId=WebMercatorQuad&resampling_method=nearest&rescale=0%2C577&return_mask=true&colormap_name=coolwarm",layer:"AMSR2_Snow_Water_Equivalent",style:"default",tileMatrixSetID:"2km",maximumLevel:15,format:"image/png",clock:this._viewer.clock,times:i,dimensions:{Layer:"AMSR2_Snow_Water_Equivalent",best:"best"}}),r=Cesium.JulianDate.fromDate(e),o=Cesium.JulianDate.fromDate(t);return this._viewer.clock.startTime=r.clone(),this._viewer.clock.currentTime=r.clone(),this._viewer.clock.stopTime=o.clone(),this.populationLayer=this._viewer.imageryLayers.addImageryProvider(n),{type:null,animation:{type:"PopulationTimeAnimation",keyframes:[{val:e.getTime()-(new Date).getTime()},{val:t.getTime()-e.getTime()}]},title:"人口时序",icon:"",image:"",webp:"",start:e,end:t}},e.prototype.removePopulationLayer=function(){this.populationLayer&&(this._viewer.imageryLayers.remove(this.populationLayer),this.populationLayer=null)},e.prototype.intersectTwoArr=function(e,t){return e.filter(function(e){return t.some(function(t){return t.title===e.title})})},e}();function uK(e,t){return void 0===t&&(t={}),function(i,n){nm.addTransformMetadata({target:i.constructor,propertyName:n,transformFn:e,options:t})}}var cK,hK,pK=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),dK=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},fK=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},mK=function(){function e(){this.id=ST(),this.draws=[],this.updateTime=new Date,this.del=!0,this.star=!1,this.share=!1,this.isDelt=!1,this.isEdited=!1,this.autoPlayTime=5,this.isSaved=!1,this.isPublish=!1}return dK([uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"createTime",void 0),dK([uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"updateTime",void 0),e}(),gK=function(){function e(){this.id=ST(),this.draws=[],this.star=!1,this.share=!1,this.autoPlayTime=5,this.downCount=0,this.praiseCount=0,this.seeCount=0,this.isDel=!1}return Object.defineProperty(e.prototype,"isEdited",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updateTime",{get:function(){return new Date},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSaved",{get:function(){return!0},set:function(e){},enumerable:!1,configurable:!0}),dK([uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"publishTime",void 0),e}(),yK=function(){function e(){this.del=!0}return dK([em({name:"id",group:"默认",type:"text",order:1}),fK("design:type",String)],e.prototype,"id",void 0),dK([em({name:"名称",group:"默认",type:"text",order:1}),fK("design:type",String)],e.prototype,"name",void 0),dK([em({name:"描述",group:"默认",type:"text",order:2}),fK("design:type",String)],e.prototype,"desc",void 0),dK([em({name:"名称拼音",group:"默认",type:"text",order:2}),fK("design:type",String)],e.prototype,"pinyin",void 0),dK([em({name:"等级",group:"默认",type:"text",order:2}),fK("design:type",Number)],e.prototype,"level",void 0),dK([em({name:"中心位置",group:"默认",type:"text",order:2}),fK("design:type",Object)],e.prototype,"center",void 0),dK([em({name:"位置",group:"默认",type:"text",order:2}),fK("design:type",Object)],e.prototype,"wkt",void 0),dK([uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"startTime",void 0),dK([uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"endTime",void 0),dK([uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"createTime",void 0),dK([uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"updateTime",void 0),e}(),_K=(function(e){function t(){return e.call(this)||this}pK(t,e)}(yK),function(){function e(){this.id=ST(),this.viewBtn=!1,this.viewBtnGroup=!0,this.skyBox=!0,this.skyAtmosphere=!0,this.skyWeather=!1,this.isVector=!1,this.isVector2=!1,this.globe=!1,this.sunLight=!1,this.pageTime=new Date,this.clouds=!0,this.cloudSpead=1,this.isEagle=!1,this.compass=!1,this.terrainShading=!1,this.graticule=!1,this.isFrameRate=!1,this.seaMaterial=!0,this.baseWaterColor="#02386C",this.specularIntensity=1,this.amplitude=3,this.isPlace=!1,this.exaggerValue=1,this.animateType="",this.animateTime=3,this.isAutoSetAnimate=!1}return dK([uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"createTime",void 0),dK([uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"updateTime",void 0),dK([em({name:"名称",type:"title-name",order:1,subOrder:1,noEmpty:!0,hiddenGroupName:!0}),fK("design:type",String)],e.prototype,"name",void 0),dK([em({name:"保存按钮",group:"视角",order:2,type:"button2",hiddenGroupName:!0}),fK("design:type",Boolean)],e.prototype,"viewBtn",void 0),dK([em({name:"视角组",group:"视角",order:3,type:"button3",hiddenGroupName:!0}),fK("design:type",Boolean)],e.prototype,"viewBtnGroup",void 0),dK([em({name:"星空",group:"效果",subOrder:6,type:"weather",order:2,subGroup:"分组1",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0}),fK("design:type",Boolean)],e.prototype,"skyBox",void 0),dK([em({name:"大气",group:"效果",subOrder:6,type:"weather",order:2,subGroup:"分组5",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0}),fK("design:type",Boolean)],e.prototype,"skyAtmosphere",void 0),dK([em({name:"雾",group:"效果",subOrder:6,type:"weather",order:2,subGroup:"分组6",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0}),fK("design:type",Boolean)],e.prototype,"skyWeather",void 0),dK([em({name:"光照",group:"效果",subOrder:7,type:"weather",order:2,subGroup:"分组4",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0,showSubGroup:!1}),fK("design:type",Boolean)],e.prototype,"globe",void 0),dK([em({name:"光照类型",group:"效果",subOrder:7,type:"lightType",order:2,subGroup:"分组4",hiddenGroupName:!0,subGroupLayout:"column",subGroupInline:!0}),fK("design:type",Boolean)],e.prototype,"sunLight",void 0),dK([em({name:"页面时间",group:"效果",subOrder:7,type:"datePage",order:2}),uK(function(e){var t=e.value;return new Date(t)},{toClassOnly:!0}),fK("design:type",Date)],e.prototype,"pageTime",void 0),dK([em({name:"云层",group:"效果",subOrder:6,type:"weather",order:2,subGroup:"分组2",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0,showSubGroup:!1}),fK("design:type",Boolean)],e.prototype,"clouds",void 0),dK([em({name:"云层速率",group:"效果",subOrder:6,type:"cloudLayer",order:2,subGroup:"分组2",hiddenGroupName:!0,subGroupLayout:"column"}),fK("design:type",Number)],e.prototype,"cloudSpead",void 0),dK([em({name:"鸟瞰图",group:"工具",subOrder:6,type:"weather",order:2,subGroup:"分组1",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0}),fK("design:type",Boolean)],e.prototype,"isEagle",void 0),dK([em({name:"指北针",group:"工具",subOrder:8,type:"weather",order:2,subGroup:"分组3",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0}),fK("design:type",Boolean)],e.prototype,"compass",void 0),dK([em({name:"地形遮挡",group:"工具",subOrder:8,type:"weather",order:2,subGroup:"分组4",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0}),fK("design:type",Boolean)],e.prototype,"terrainShading",void 0),dK([em({name:"经纬网",group:"工具",subOrder:6,type:"weather",order:2,subGroup:"分组5",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0}),fK("design:type",Boolean)],e.prototype,"graticule",void 0),dK([em({name:"帧率",group:"工具",subOrder:8,type:"weather",order:2,subGroup:"分组6",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0}),fK("design:type",Boolean)],e.prototype,"isFrameRate",void 0),dK([em({name:"海洋",group:"效果",subOrder:9,type:"weather",order:2,subGroup:"分组7",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0,showSubGroup:!1}),fK("design:type",Boolean)],e.prototype,"seaMaterial",void 0),dK([em({name:"海水颜色",group:"效果",subOrder:9,type:"seaColor",order:2,subGroup:"分组7",hiddenGroupName:!0,subGroupLayout:"column",subGroupInline:!0}),fK("design:type",String)],e.prototype,"baseWaterColor",void 0),dK([em({name:"光照亮度",group:"效果",subOrder:9,type:"seaSlider",order:2,max:5,subGroup:"分组7",hiddenGroupName:!0,subGroupLayout:"column"}),fK("design:type",Number)],e.prototype,"specularIntensity",void 0),dK([em({name:"浪高",group:"效果",subOrder:9,type:"seaText",order:2,subGroup:"分组7",hiddenGroupName:!0,subGroupLayout:"column"}),fK("design:type",Number)],e.prototype,"amplitude",void 0),dK([em({name:"地形",group:"效果",subOrder:6,type:"weather",order:2,subGroup:"分组3",hiddenGroupName:!0,subGroupLayout:"column",subGroupHeader:!0,showSubGroup:!1}),fK("design:type",Boolean)],e.prototype,"isPlace",void 0),dK([em({name:"夸张类型",group:"效果",subOrder:6,type:"exaggerType",order:2,subGroup:"分组3",hiddenGroupName:!0,subGroupLayout:"column",subGroupInline:!0}),fK("design:type",Boolean)],e.prototype,"exaggerType",void 0),dK([em({name:"夸张系数",group:"效果",subOrder:6,type:"exagger",order:2,subGroup:"分组3",hiddenGroupName:!0,subGroupLayout:"column"}),fK("design:type",Number)],e.prototype,"exaggerValue",void 0),e}()),AK=(function(e){function t(){return e.call(this)||this}pK(t,e)}(_K),function(){this.id="",this.alpha=1,this.saturation=1,this.contrast=1,this.brightness=1,this.hue=0,this.gamma=1,this.currentLevel=0});!function(e){e[e.Wechat=1]="Wechat",e[e.QQ=2]="QQ",e[e.Weibo=3]="Weibo"}(cK||(cK={})),function(e){e.Phone="Phone",e.Account="Account",e.Mail="Mail"}(hK||(hK={}));var vK=__webpack_require__(5240),CK=__webpack_require__.n(vK),bK=__webpack_require__(8287),wK=__webpack_require__(6763),xK=function(){function e(e){this.viewer=e,this.notice$=new am,this.openPage$=new am,this.judgeArrowSub$=new am,this.sceneList=[],this.currentPlotList=[],this.testList=[],this.alpha=.1,this.init$=new am,this.count=1,this.open$=new am,this.import$=new am,this.mergeScene$=new am,this.openCompleted=new am,this.resolutionChanged$=new am,this.pageLoadCompleted$=new am,this.scene$=new am,this.refresh$=new am,this.changeList=[],this.notify$=new am,this.init=!0,this.recoverScene$=new am,this.defaultSceneWidth=1366,this.defaultSceneHeight=768,this._viewer=e,this.manager=new(CK())}return e.prototype.addScene=function(e,t,i){var n=new mK;return"string"!=typeof e&&e.length>=0?n.name=this.genAddSceneName("新场景",e):"string"==typeof e&&(n.name=e||"新场景"),n.type="scene",n.draws=[],n.width=t||this.defaultSceneWidth,n.height=i||this.defaultSceneHeight,this.sceneList.unshift(n),n},e.prototype.genAddSceneName=function(e,t){for(var i=1,n=function(){var n="".concat(e).concat(i);if(null==t.find(function(e){return e==n}))return{value:n};i++};;){var r=n();if("object"==typeof r)return r.value}},e.prototype.convertPageImage=function(e){if(e.url)return e.url;var t=bK.hp.allocUnsafe(e.image.data.length);return t.fill(e.image.data,0),"data:image/jpeg;base64,"+t.toString("base64")},e.prototype.initScene=function(){this.scene=new mK,this.scene.name="新场景".concat(this.count++),this.scene.type="scene",this.scene.draws=[]},e.prototype.drawPoint=function(e){var t={id:ST(),kind:"Point",name:"点",position:e,point:{color:Cesium.Color.RED,pixelSize:10}};this._viewer.entities.add(t);return t},e.prototype.savePlot=function(e,t,i,n){if(this.scene&&this.plotList){var r=new yK;r.id=e.id,r.ownerId=this.scene.id;var o=this._viewer.scene.globe.ellipsoid;if("point"==t){var s=o.cartesianToCartographic(e.position),a=Cesium.Math.toDegrees(s.latitude),l=Cesium.Math.toDegrees(s.longitude),u=s.height;r.name=e.name,r.entity={type:"Point",coordinates:[l,a,u]}}"line"==t&&n&&(r.entity={type:"LineString",coordinates:i},r.name="线".concat(this.count++)),"polygon"==t&&n&&(r.entity={type:"Polygon",coordinates:[i]},r.name="面".concat(this.count++)),r.type=t,this.plotList||(this.plotList=[]);var c=this.plotList.length;return this.create(c,r),this.refresh$.next(!0),r}},e.prototype.remove=function(e){},e.prototype.add=function(e,t){},e.prototype.create=function(e,t){var i=this;this.add(e,t),this.manager.add({undo:function(){i.remove(e)},redo:function(){i.add(e,t)}}),wK.log("添加",this.plotList)},e.prototype.transormFromGraphManager=function(e){var t=e.draws.find(function(e){return"graph"==e.type});return t||((t=new yK).type="graph",e.draws.push(t)),t.ext=e.ext,t},e.prototype.transformToGraphManager=function(e){var t=e.draws.find(function(e){return"graph"==e.type});return t&&(e.ext=t.ext),jf.Remove(e.draws,t),t},e.prototype.transformFromEntity=function(e){var t=[];return wK.log("arr",e),e.map(function(e){var i=new yK;Object.defineProperties(i,{name:{value:e.name,writable:!0,enumerable:!0},type:{value:e.type,writable:!0,enumerable:!0},entity:{value:e.geometry,writable:!0,enumerable:!0},style:{value:e.style,writable:!0,enumerable:!0}}),t.push(i)}),wK.log("wwww",t),t},e.prototype.delete=function(e){window.event?e.keyCode:e.which},e.prototype.sceneEdited=function(){!this.scene||this.scene instanceof gK||this.scene.isEdited||(this.scene.isEdited=!0)},e.prototype.removeSceneEditFlag=function(){!this.scene||this.scene instanceof gK||(this.scene.isEdited=!1)},e}();function SK(e,t){e=e||{},this._tilingScheme=e.tilingScheme||new Cesium.GeographicTilingScheme,this._color=e.color||new Cesium.Color(1,1,1,.4),this._tileWidth=e.tileWidth||256,this._tileHeight=e.tileHeight||256,this._ready=!0,this._sexagesimal=e.sexagesimal||!1,this._numLines=e.numLines||50,this._scene=t,this._labels=new Cesium.LabelCollection,t.primitives.add(this._labels),this._polylines=new Cesium.PolylineCollection,t.primitives.add(this._polylines),this._ellipsoid=t.globe.ellipsoid;var i=document.createElement("canvas");i.width=256,i.height=256,this._canvas=i;var n=this;t.camera.moveEnd.addEventListener(function(){n._show&&(n._polylines.removeAll(),n._labels.removeAll(),n._currentExtent=null,n._drawGrid(n._getExtentView()))}),t.imageryLayers.addImageryProvider(this)}var MK=function(){try{return"x"in Object.defineProperty({},"x",{})}catch(e){return!1}}(),PK=Object.defineProperties;function EK(e){return e<.01?2:e<.1?1:0}MK&&PK||(PK=function(e){return e}),PK(SK.prototype,{url:{get:function(){}},proxy:{get:function(){}},tileWidth:{get:function(){return this._tileWidth}},tileHeight:{get:function(){return this._tileHeight}},maximumLevel:{get:function(){return 18}},minimumLevel:{get:function(){return 0}},tilingScheme:{get:function(){return this._tilingScheme}},rectangle:{get:function(){return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){}},errorEvent:{get:function(){return this._errorEvent}},ready:{get:function(){return this._ready}},credit:{get:function(){return this._credit}},hasAlphaChannel:{get:function(){return!0}}}),SK.prototype.makeLabel=function(e,t,i,n,r){this._labels.add({position:this._ellipsoid.cartographicToCartesian(new Cesium.Cartographic(e,t,10)),text:i,font:"16px Helvetica",style:Cesium.LabelStyle.FILL_AND_OUTLINE,fillColor:Cesium.Color.AZURE,outlineColor:Cesium.Color.BLACK,outlineWidth:2,pixelOffset:new Cesium.Cartesian2(5,n?18:-18),eyeOffset:Cesium.Cartesian3.ZERO,horizontalOrigin:Cesium.HorizontalOrigin.LEFT,verticalOrigin:n?Cesium.VerticalOrigin.BOTTOM:Cesium.VerticalOrigin.TOP,scale:1})},SK.prototype._drawGrid=function(e){if(!this._currentExtent||!this._currentExtent.equals(e)){this._currentExtent=e,this._polylines.removeAll(),this._labels.removeAll();this._canvasSize;var t,i=0,n=0;for(t=0;t<LK.length&&i<(e.north-e.south)/10;t++)i=LK[t];for(t=0;t<LK.length&&n<(e.east-e.west)/10;t++)n=LK[t];var r=(e.west<0?Math.ceil(e.west/n):Math.floor(e.west/n))*n,o=(e.south<0?Math.ceil(e.south/i):Math.floor(e.south/i))*i,s=(e.east<0?Math.ceil(e.east/i):Math.floor(e.east/i))*i,a=(e.north<0?Math.ceil(e.north/n):Math.floor(e.north/n))*n;r=Math.max(r-2*n,-Math.PI),s=Math.min(s+2*n,Math.PI),o=Math.max(o-2*i,-Math.PI/2),a=Math.min(a+2*n,Math.PI/2);var l,u,c=this._ellipsoid,h=Cesium.Math.toRadians(1),p=o+Math.floor((a-o)/i/2)*i;for(u=r;u<s;u+=n){var d=[];for(l=o;l<a;l+=h)d.push(new Cesium.Cartographic(u,l));d.push(new Cesium.Cartographic(u,a)),this._polylines.add({positions:c.cartographicArrayToCartesianArray(d),width:1});var f=Cesium.Math.toDegrees(u);this.makeLabel(u,p,this._sexagesimal?this._decToSex(f):f.toFixed(EK(n)),!1)}var m=r+Math.floor((s-r)/n/2)*n;for(l=o;l<a;l+=i){d=[];for(u=r;u<s;u+=h)d.push(new Cesium.Cartographic(u,l));d.push(new Cesium.Cartographic(s,l)),this._polylines.add({positions:c.cartographicArrayToCartesianArray(d),width:1});var g=Cesium.Math.toDegrees(l);this.makeLabel(m,l,this._sexagesimal?this._decToSex(g):g.toFixed(EK(i)),!0)}}},SK.prototype.requestImage=function(e,t,i){return this._show&&this._drawGrid(this._getExtentView()),this._canvas},SK.prototype.setVisible=function(e){this._show=e,e?(this._currentExtent=null,this._drawGrid(this._getExtentView())):(this._polylines.removeAll(),this._labels.removeAll())},SK.prototype.isVisible=function(){return this._show},SK.prototype._decToSex=function(e){var t=Math.floor(e),i=(60*(Math.abs(e)-t)).toFixed(2);return"60.00"==i&&(t+=1,i="0.00"),[t,":",i].join("")},SK.prototype._getExtentView=function(){for(var e=this._scene.camera,t=this._scene.canvas,i=[e.pickEllipsoid(new Cesium.Cartesian2(0,0),this._ellipsoid),e.pickEllipsoid(new Cesium.Cartesian2(t.width,0),this._ellipsoid),e.pickEllipsoid(new Cesium.Cartesian2(0,t.height),this._ellipsoid),e.pickEllipsoid(new Cesium.Cartesian2(t.width,t.height),this._ellipsoid)],n=0;n<4;n++)if(void 0===i[n])return Cesium.Rectangle.MAX_VALUE;return Cesium.Rectangle.fromCartographicArray(this._ellipsoid.cartesianArrayToCartographicArray(i))};var LK=[];"undefined"!=typeof Cesium&&(LK=Cesium.Math?[Cesium.Math.toRadians(.05),Cesium.Math.toRadians(.1),Cesium.Math.toRadians(.2),Cesium.Math.toRadians(.5),Cesium.Math.toRadians(1),Cesium.Math.toRadians(2),Cesium.Math.toRadians(5),Cesium.Math.toRadians(10)]:[]);const TK=SK;var OK=function(){function e(e){this.layer=new TK({},e.scene)}return e.prototype.show=function(){this.layer.setVisible(!0)},e.prototype.remove=function(){this.layer.setVisible(!1)},e}(),DK=__webpack_require__(6763),BK=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())})},IK=function(e,t){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},RK=function(){function e(){var e=this;this.CesiumCreated=new am,this.viewerLoaded$=new am,this.HeightChanged=new am,this.navDetectChanges2$=new am,this.hideLoadingSub$=new am,this.changeUnrealSub$=new am,this.isReLoad=!1,this.pageChangeLoading=!1,this.isAnimationPlayOrPause=!1,this.viewChangeSub$=new am,this.isZoomAnimation=!0,this.is2D=!1,this.clockMultipliers=[.5,1,1.25,1.5,2],this.isBrowserPageShow=!1,this.isZoomInBtnForbidden=!1,this.isZoomOutBtnForbidden=!1,this.maxZoomHeight=7e7,this.minZoomHeight=1e4,this.floatToolRefSub$=new am,this.isCtrlKeyPress=!1,this.isFullScreenPlay=!1,this.anchorRefreshSub$=new am,this.isTimelineAtDragging=!1,this.show=!1,this.CesiumCreated.subscribe(function(t){e.viewer=t,e.graticuleLayer=new OK(t),(e.viewer.cesiumWidget?e.viewer.cesiumWidget:e.viewer.widgetContainer).showErrorPanel=function(e,t,i){DK.error(e,t,i),alert("Cesium运行错误, 出现底层错误,请删除场景或联系客服解决")},e.viewer.camera.moveEnd.addEventListener(function(){e.viewChangeSub$.next(1)}),e.viewer.scene.postRender.addEventListener(function(t){document.querySelectorAll("[id^=gp-o-board-wrapper-]").forEach(function(t){var i=t.id.slice(19),n=e.getEntityByBoardID(i);if(n){var r=n.position.getValue();if(new Cesium.EllipsoidalOccluder(Cesium.Ellipsoid.WGS84,e.viewer.camera.position).isPointVisible(r)){var o=parseInt(t.dataset.offsetX),s=parseInt(t.dataset.offsetY),a=Cesium.SceneTransforms.wgs84ToWindowCoordinates(e.viewer.scene,r);t.style.top="".concat(Math.ceil(a.y)+o,"px"),t.style.left="".concat(Math.ceil(a.x)+s,"px"),"block"!==t.style.display&&(t.style.display="block");var l=document.querySelector("#board-line-".concat(i));if(l){var u=Math.sqrt(Math.pow(o,2)+Math.pow(s,2));l.style.width="".concat(u,"px");var c=2*Math.PI-Math.asin(o/u);s>0&&(c=Math.PI-c),l.style.transform="rotate(".concat(c,"rad)")}}else t.style.display="none"}})})}),this.clickHandler=function(e){"app-scenario"===e.target.nodeName.toLowerCase()&&DK.error("请退出预览模式")},Qm.cesService=this}return e.prototype.SetTerrain=function(e){var t=0;switch(e){case 1:this.viewer.terrainProvider=new Cesium.CesiumTerrainProvider({url:window.config.terrain}),t=1;break;case 2:this.viewer.terrainProvider=new Cesium.CesiumTerrainProvider({url:window.config.globalTerrain}),t=2;break;default:this.viewer.terrainProvider instanceof Cesium.EllipsoidTerrainProvider||(this.viewer.terrainProvider=new Cesium.EllipsoidTerrainProvider({ellipsoid:Cesium.Ellipsoid.WGS84})),t=0}return t},e.prototype.SetWater=function(e){return BK(this,void 0,void 0,function(){var t;return IK(this,function(i){switch(i.label){case 0:return this.sea?(this.sea.show=e,[3,3]):[3,1];case 1:return e?[4,uT.Render(this.viewer.scene)]:[3,3];case 2:(t=i.sent())&&(this.sea=t),i.label=3;case 3:return[2]}})})},e.prototype.getWmsLayer=function(){return{layers:"IMG_IDB-JPEG-4326",url:"",tileWidth:256,tileHeight:256,parameters:{format:"image/jpeg"},enablePickFeatures:!1}},e.prototype.toDegrees=function(e){var t=Cesium.Cartographic.fromCartesian(e);if(t)return[t.longitude/Math.PI*180,t.latitude/Math.PI*180]},e.prototype.flyToHome=function(){var e;null===(e=this.viewer)||void 0===e||e.camera.flyHome()},e.prototype.addNotAllowedCursor=function(){document.body.style.cursor="not-allowed",document.querySelector(".scenario-wrapper").style.pointerEvents="none",document.querySelector(".appcontent-ele").style.cursor="default";var e=document.querySelector(".multiplier-select .anticon");e&&(e.style.pointerEvents="none",e.style.cursor="default"),this.isAnimationPlayOrPause=!0,document.body.addEventListener("click",this.clickHandler)},e.prototype.removeNotAllowedCursor=function(){var e=this;document.body.style.cursor="",document.querySelector(".scenario-wrapper").style.pointerEvents="all",document.querySelector(".appcontent-ele").style.cursor="auto",setTimeout(function(){e.isAnimationPlayOrPause=!1},200),document.body.removeEventListener("click",this.clickHandler);var t=document.querySelector(".multiplier-select .anticon");t&&(t.style.pointerEvents="all",t.style.cursor="auto")},e.prototype.showPageLoading=function(){this.pageChangeLoading=!0,document.querySelector(".page-loading").style.display="flex"},e.prototype.hidePageLoading=function(){this.pageChangeLoading=!1,document.querySelector(".page-loading").style.display="none"},e.prototype.zoomInMap=function(){var e=this.minZoomHeight;if(this.viewer){var t=this.viewer.camera.positionCartographic;this.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,t.height/1.4<e?e:t.height/1.4),orientation:{direction:this.viewer.camera.direction,up:this.viewer.camera.up},duration:.3})}},e.prototype.getPick=function(e){var t;if(this.viewer.scene.mode==Cesium.SceneMode.SCENE3D){var i=this.viewer.camera.getPickRay(e);t=this.viewer.scene.globe.pick(i,this.viewer.scene)}else t=this.viewer.scene.camera.pickEllipsoid(e);return t},e.prototype.zoomInMapByScreenPosition=function(e){var t=this.calculateZoomInBastView(e);this.viewer.camera.flyTo({destination:t.destination,orientation:t.orientation,duration:1})},e.prototype.calculateZoomInBastView=function(e){var t=Cesium.Math,i=new Cesium.Cartesian3,n=new Cesium.Cartesian3,r=new Cesium.Cartesian3,o=new Cesium.Cartesian3,s=new Cesium.Cartesian3,a=new Cesium.Cartesian3,l=new Cesium.Cartesian3,u=new Cesium.Cartesian3,c=new Cesium.Cartesian3,h=new Cesium.Cartesian3,p=new Cesium.Cartesian3,d=new Cesium.Cartesian3,f={orientation:new Cesium.HeadingPitchRoll},m=this.viewer.camera.positionCartographic.height/1.4,g=this.viewer.camera,y=f.orientation;y.heading=g.heading,y.pitch=g.pitch,y.roll=g.roll;var _=this.getPick(e),A=Cesium.Cartesian3.normalize(g.position,i),v=n;Cesium.Cartesian3.clone(g.position,v);var C=_,b=c,w=s;Cesium.Cartesian3.clone(g.direction,w),Cesium.Cartesian3.add(v,Cesium.Cartesian3.multiplyByScalar(w,m,h),b);var x=a,S=l;Cesium.Cartesian3.subtract(C,v,x),Cesium.Cartesian3.normalize(x,S);var M=Cesium.Cartesian3.dot(A,S),P=Math.acos(-M),E=Cesium.Cartesian3.magnitude(v),L=Cesium.Cartesian3.magnitude(C),T=E-m,O=Cesium.Cartesian3.magnitude(x),D=Math.asin(t.clamp(O/L*Math.sin(P),-1,1))-Math.asin(t.clamp(T/L*Math.sin(P),-1,1))+P,B=r;Cesium.Cartesian3.normalize(v,B);var I=o;I=Cesium.Cartesian3.cross(S,B,I),I=Cesium.Cartesian3.normalize(I,I),Cesium.Cartesian3.normalize(Cesium.Cartesian3.cross(B,I,h),w),Cesium.Cartesian3.multiplyByScalar(Cesium.Cartesian3.normalize(b,h),Cesium.Cartesian3.magnitude(b)-m,b),Cesium.Cartesian3.normalize(v,v),Cesium.Cartesian3.multiplyByScalar(v,T,v);var R=u;if(Cesium.Cartesian3.multiplyByScalar(Cesium.Cartesian3.add(Cesium.Cartesian3.multiplyByScalar(B,Math.cos(D)-1,p),Cesium.Cartesian3.multiplyByScalar(w,Math.sin(D),d),h),T,R),Cesium.Cartesian3.add(v,R,v),Cesium.defined(this.screenSpaceCameraController)){var N=this.screenSpaceCameraController;if(N.enableAutoPitch){var k=this.viewer.camera.positionCartographic.height;if(k<=N.autoPitchStartHeight){var F=k/N.autoPitchStartHeight,H=N.autoPitchMinAngle+(N.autoPitchMaxAngle-N.autoPitchMinAngle)*F;f.orientation.pitch=Cesium.Math.toRadians(-H)}}}return{destination:v,orientation:f.orientation}},e.prototype.zoomOutMap=function(){var e=this.maxZoomHeight;if(this.viewer){var t=this.viewer.camera.positionCartographic;this.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,1.4*t.height>e?e:1.4*t.height),orientation:{direction:this.viewer.camera.direction,up:this.viewer.camera.up},duration:.3})}},e.prototype.setZoomAnimation=function(e){this.isMobileAgent()?DK.error("移动端不支持该功能"):(this.viewer.scene.screenSpaceCameraController._aggregator=e?this.userCacheSSCC:this.cacheSSCC,this.viewer.scene._screenSpaceCameraController._aggregator.reset(),localStorage.setItem("cameraZoomAnimation",e))},e.prototype.isMobileAgent=function(){return/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)},e.prototype.change2D=function(){var e=this,t=this.viewer.scene.camera.positionCartographic.clone(),i=this.viewer.camera.heading,n=this.viewer.camera.pitch,r=this.viewer.camera.roll;this.viewer.scene.morphTime=0;var o=function(){e.viewer.camera.setView({destination:Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,t.height),orientation:{heading:i,pitch:n,roll:r}}),e.viewer.scene.morphComplete.removeEventListener(o)};this.viewer.scene.morphComplete.addEventListener(o),this.is2D?(this.viewer.scene.morphTo3D(),this.is2D=!1):(this.viewer.scene.morphTo2D(),this.is2D=!0)},e.prototype.changeMultiplier=function(e){this.viewer.clock.multiplier=Number(e),IN.multiplier=this.viewer.clock.multiplier},e.prototype.getEntityByBoardID=function(e){for(var t=this.viewer.entities._entities._array,i=0;i<t.length;i++){if(t[i].graph&&t[i].graph.graphBoardId===e)return t[i];if(t[i].id===e)return t[i]}},e.prototype.getEntityByGraphID=function(e){var t;return null===(t=Yf.getGraph(e))||void 0===t?void 0:t.ent},e}(),NK=__webpack_require__(9919),kK=__webpack_require__.n(NK),FK=__webpack_require__(6763),HK=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},YK=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},jK=function(){function e(t,i,n,r,o,s,a,l,u){void 0===a&&(a=[]),void 0===l&&(l=""),void 0===u&&(u="");var c=this;this.options=[],this.error=!1,this.nameArr=new Array({}),this.isbeginChange=!1,this.oldValue=void 0,this.propertysub=new am,this.name=t,this.type=i,this.group=n,this.subGroup=r,this.title=s,this.element=o,this.options=a,this.min=l,this.max=u,this.propertysub.pipe(Uz(200)).subscribe(function(t){c.oldValue!=c.value&&(e.ProperyChanged.next({target:c,oldvalue:c.oldValue,newvalue:c.value}),c.isbeginChange=!1,c.oldValue=void 0)})}return Object.defineProperty(e.prototype,"value",{get:function(){if("innerHtml"===this.name)return this._value;if("color"===this.type){if(!this._value)return"#FFFFFFF";if(this._value.startsWith("rgb"))return kK()(this._value).hex}return this._value},set:function(e){this._value;if(this.min){var t=Number.parseFloat(e);if(isNaN(t)||t<Number.parseFloat(this.min))return FK.log("属性错误",this.name,e),void(this.error=!0);this.error=!1}if(this.max){t=Number.parseFloat(e);if(isNaN(t)||t>Number.parseFloat(this.max))return FK.log("属性错误",this.name,e),void(this.error=!0);this.error=!1}switch(this._value=e,this.name){case"innerHtml":this.element.innerHTML=e.replace(/\n/g,"<br>").replace(/\s/g," ");break;case"display":this.element.style[this.name]=!1===e?"none":"inline";break;case"isReadOnly":this.element.draggable=!0===e;break;case"top":this.element.style[this.name]=e+"px",this.element.style.bottom="unset";break;case"left":this.element.style[this.name]=e+"px",this.element.style.right="unset";break;case"bottom":this.element.style[this.name]=e+"px",this.element.style.top="unset";break;case"right":this.element.style[this.name]=e+"px",this.element.style.left="unset";break;case"position":this.element.style.left=e[0]+"px",this.element.style.top=e[1]+"px";break;case"height":case"width":case"border-width":case"line-height":case"padding-top":case"padding-left":case"padding-right":case"padding-bottom":case"padding":case"-webkit-text-stroke-width":case"font-size":this.element.style[this.name]=e+"px";break;case"font-weight":this.element.style[this.name]="正常"==e?"normal":"bold";break;case"font-family":default:this.element.style[this.name]=e;break;case"text-align-last":switch(e){case"gp-wenbenzuoduiqi":this.element.style[this.name]="left";break;case"gp-wenbenjuzhongduiqi":this.element.style[this.name]="center";break;case"gp-wenbenyouduiqi":this.element.style[this.name]="right";break;case"gp-wenbenquanbuduiqi":this.element.style[this.name]="justify";break;default:this.element.style[this.name]=e}break;case"text-align-vertical":var i=Number.parseInt(getComputedStyle(this.element).height),n=Number.parseInt(getComputedStyle(this.element)["font-size"]);switch(e){case"center":this.element.style["line-height"]=i+"px";break;case"top":this.element.style["line-height"]=n+"px";break;case"bottom":this.element.style["line-height"]=2*i-n+"px"}break;case"background-opacity":var r=getComputedStyle(this.element)["background-color"].split(","),o=r[0].slice(r[0].indexOf("(")+1),s=Number.parseInt(r[2]),a="rgba(".concat(o,",").concat(r[1],",").concat(s,",").concat(e,")");this.element.style["background-color"]=a;break;case"background-color":var l=1,u=getComputedStyle(this.element)["background-color"].split(",");4===u.length&&(l=Number.parseFloat(u[3]));var c=(255*l).toString(16);c.indexOf(".")>-1&&(c=c.split(".")[0]),this.element.style["background-color"]=e+c;break;case"background-size":switch(e){case"填充":this.element.style["background-size"]="cover";break;case"适应":this.element.style["background-size"]="contain";break;default:this.element.style["background-size"]="auto"}break;case"background-image":this.element.style["background-image"]='url("'.concat(e,'")');break;case"color":this.element.style[this.name]=e,this.element.style["-webkit-text-fill-color"]=e}},enumerable:!1,configurable:!0}),e.prototype.saveLocal=function(e){var t=this.target.classType+"-";-1===["top","bottom","right","left","height","width","innerHtml","background-image"].indexOf(this.name)&&("line-height"===this.name?localStorage.setItem(t+this.name,this.element.style[this.name]):localStorage.setItem(t+this.name,this._value)),this.target&&!this.target.isOperating&&(this.isbeginChange||(this.isbeginChange=!0,this.oldValue=e),this.target.isInit||this.propertysub.next(1))},e.prototype.checkMinValue=function(e){if(!this.min)return!0},e.ProperyChanged=new am,HK([rm(),YK("design:type",am)],e.prototype,"propertysub",void 0),e}(),UK=function(){function e(e){this.groupName=e,this.items=[],this.subGroups=[],this.state=!0}return e.prototype.toggle=function(){this.state=!this.state},e}(),GK=function(e){this.subgroupName=e,this.items=[]},QK=function(){function e(t){var i=this;this.options=[],this.error=!1,this.nameArr=new Array({}),this.isbeginChange=!1,this.oldValue=void 0,this.propertysub=new am,this.name=t.name,this.type=t.type,this.group=t.group,this.subGroup=t.subGroup,this.title=t.title,this.element=t.element,this.options=t.options,this.min=t.min,this.max=t.max,this.propertysub.pipe(Uz(200)).subscribe(function(t){i.oldValue!=i.value&&(e.ProperyChanged.next({target:i,oldvalue:i.oldValue,newvalue:i.value}),i.isbeginChange=!1,i.oldValue=void 0)})}return Object.defineProperty(e.prototype,"value",{get:function(){if("innerHtml"===this.name)return this._value;if("color"===this.type){if(!this._value)return"#00FFFFFF";if(this._value.startsWith("rgb"))return kK()(this._value).hex}return this._value},set:function(e){var t=this;this._value;if(this.min){var i=Number.parseFloat(e);if(isNaN(i)||i<Number.parseFloat(this.min))return FK.log("属性错误",this.name,e),void(this.error=!0);this.error=!1}if(this.max){i=Number.parseFloat(e);if(isNaN(i)||i>Number.parseFloat(this.max))return FK.log("属性错误",this.name,e),void(this.error=!0);this.error=!1}this._value=e,eI.currentBoxList.forEach(function(i){var n=i.element;switch(t.name){case"innerHtml":n.innerHTML=e.replace(/\n/g,"<br>").replace(/\s/g," ");break;case"display":void 0!==e&&(n.style[t.name]=!1===e?"none":"inline");break;case"isReadOnly":void 0!==e&&(!0===e?(n.contentEditable="false",n.draggable=!0):n.draggable=!1);break;case"top":n.style[t.name]=e+"px",n.style.bottom="unset";break;case"left":n.style[t.name]=e+"px",n.style.right="unset";break;case"bottom":n.style[t.name]=e+"px",n.style.top="unset";break;case"right":n.style[t.name]=e+"px",n.style.left="unset";break;case"position":n.style.left=e[0]+"px",n.style.top=e[1]+"px";break;case"height":case"width":case"border-width":case"line-height":case"padding":case"font-size":n.style[t.name]=e+"px";break;case"-webkit-text-stroke-width":var r=n.childNodes;2==r.length?r[1].style[t.name]=e+"px":n.style[t.name]=e+"px";break;case"font-weight":n.style[t.name]="正常"==e?"normal":"bold";break;case"font-family":default:n.style[t.name]=e;break;case"text-align-last":switch(e){case"gp-wenbenzuoduiqi":n.style[t.name]="left";break;case"gp-wenbenjuzhongduiqi":n.style[t.name]="center";break;case"gp-wenbenyouduiqi":n.style[t.name]="right";break;case"gp-wenbenquanbuduiqi":n.style[t.name]="justify";break;default:n.style[t.name]=e}break;case"text-align-vertical":var o=Number.parseInt(getComputedStyle(n).height),s=Number.parseInt(getComputedStyle(n)["font-size"]);switch(e){case"center":n.style["line-height"]=o+"px";break;case"top":n.style["line-height"]=s+"px";break;case"bottom":n.style["line-height"]=2*o-s+"px"}break;case"background-opacity":var a=getComputedStyle(n)["background-color"].split(","),l=a[0].slice(a[0].indexOf("(")+1),u=Number.parseInt(a[2]),c="rgba(".concat(l,",").concat(a[1],",").concat(u,",").concat(e,")");n.style["background-color"]=c;break;case"background-color":var h=1,p=getComputedStyle(n)["background-color"].split(",");4===p.length&&(h=Number.parseFloat(p[3]));var d=(255*h).toString(16);d.indexOf(".")>-1&&(d=d.split(".")[0]),n.style["background-color"]=e+d;break;case"background-size":switch(e){case"填充":n.style["background-size"]="cover";break;case"适应":n.style["background-size"]="contain";break;default:n.style["background-size"]="auto"}break;case"background-image":n.style["background-image"]='url("'.concat(e,'")');break;case"color":n.style[t.name]=e,n.style["-webkit-text-fill-color"]=e}})},enumerable:!1,configurable:!0}),e.ProperyChanged=new am,HK([rm(),YK("design:type",am)],e.prototype,"propertysub",void 0),e}(),zK=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},WK=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},XK=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},VK=function(){function e(){this.isOperating=!1,this.id="",this.groups=[],this.isInit=!1,this.propertyChanged=new Cesium.Event}return Object.defineProperty(e.prototype,"text",{get:function(){return this.element.innerHTML},set:function(e){this.element.innerHTML=e},enumerable:!1,configurable:!0}),e.getElementBgOp=function(e){var t=1,i=getComputedStyle(e)["background-color"];if(i.indexOf(",")>-1){var n=i.split(",");4===n.length&&(t=Number.parseFloat(n[3]))}return t},e.prototype.initHtml=function(e){this.element=e},Object.defineProperty(e.prototype,"show",{get:function(){return!!this.displayProps&&this.displayProps.value},set:function(e){this.displayProps&&(this.displayProps.value=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReadOnly",{get:function(){return!!this.isReadOnlyProps&&this.isReadOnlyProps.value},set:function(e){this.isReadOnlyProps&&(this.isReadOnlyProps.value=e)},enumerable:!1,configurable:!0}),e.prototype.onPropertyChanged=function(e){this.propertyChanged.raiseEvent(e)},e.prototype.initBase=function(){},e.prototype.initCssBase=function(){var t=this;this.isInit=!0,this.cssPropList.forEach(function(i){switch(i.target=t,i.name){case"background-opacity":i.value=e.getElementBgOp(t.element);break;case"background-size":var n=getComputedStyle(t.element)[i.name];"auto"===n?i.value="默认":"cover"==n?i.value="填充":"contain"==n&&(i.value="适应");break;case"background-image":var r=getComputedStyle(t.element)[i.name];i.value="none"===r?"":getComputedStyle(t.element)[i.name];break;case"innerHtml":i.value=t.element.innerHTML.replace(/<br>/g,"\n").replace(/ /g," ");break;case"top":case"left":case"bottom":case"right":case"height":case"width":case"font-size":case"border-width":case"line-height":case"padding-top":case"padding-left":case"padding-right":case"padding-bottom":case"padding":case"-webkit-text-stroke-width":i.value=Number.parseInt(getComputedStyle(t.element)[i.name]);break;case"text-align-vertical":i.value="";break;case"font-weight":var o=getComputedStyle(t.element)[i.name];i.value="400"===o?"正常":"700"===o?"加粗":getComputedStyle(t.element)[i.name];break;case"display":"none"===getComputedStyle(t.element)[i.name]?i.value=!1:i.value=!0;break;case"isReadOnly":"none"===getComputedStyle(t.element)["pointer-events"]?i.value=!0:i.value=!1;break;case"type":i.value=i.target.boxType;break;default:var s=getComputedStyle(t.element)[i.name];s&&(i.value=s)}})},e.prototype.parseStyleObj=function(e){var t,i;try{for(var n=XK(Object.keys(e)),r=n.next();!r.done;r=n.next()){var o=r.value,s=this.classType+"-"+o;if(s in localStorage)switch(o){case"background-color":var a=localStorage[s],l=localStorage[this.classType+"-background-opacity"];if(void 0!==l&&null!=l||(l=1),a.indexOf("#")>-1){var u=(255*l).toString(16);u.indexOf(".")>-1&&(u=u.split(".")[0]),e[o]=localStorage.getItem(s)+u}else{var c=a.split(","),h=c[0].slice(c[0].indexOf("(")+1),p=Number.parseInt(c[2]);e[o]="rgba(".concat(h,",").concat(c[1],",").concat(p,",").concat(l,")")}break;case"font-size":case"padding":e[o]=localStorage.getItem(s)+"px";break;default:e[o]=localStorage.getItem(s)}}}catch(e){t={error:e}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}},e.prototype.initGroup=function(){var e,t;this.cssPropList.forEach(function(e){return e.error=!1});var i=function(e){if("isReadOnly"===e.name||"display"===e.name)return"continue";if(e.group){var t=n.groups.find(function(t){return t.groupName===e.group});if(t||(t=new UK(e.group),n.groups.push(t)),e.subGroup){var i=t.subGroups.find(function(t){return t.subgroupName===e.subGroup});i||(i=new GK(e.subGroup),t.subGroups.push(i)),i.items.push(e)}else t.items.push(e)}},n=this;try{for(var r=XK(this.cssPropList),o=r.next();!o.done;o=r.next()){i(o.value)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},zK([rm(),WK("design:type",Object)],e.prototype,"isOperating",void 0),zK([rm(),WK("design:type",Object)],e.prototype,"element",void 0),zK([rm(),WK("design:type",Object)],e.prototype,"propertyChanged",void 0),zK([rm(),WK("design:type",String),WK("design:paramtypes",[Object])],e.prototype,"text",null),zK([rm(),WK("design:type",Array)],e.prototype,"cssPropList",void 0),zK([rm(),WK("design:type",Array)],e.prototype,"groups",void 0),zK([rm(),WK("design:type",jK)],e.prototype,"displayProps",void 0),zK([rm(),WK("design:type",jK)],e.prototype,"isReadOnlyProps",void 0),zK([rm(),WK("design:type",Object)],e.prototype,"__meta__",void 0),zK([rm(),WK("design:type",Boolean),WK("design:paramtypes",[Object])],e.prototype,"show",null),zK([rm(),WK("design:type",Boolean),WK("design:paramtypes",[Object])],e.prototype,"isReadOnly",null),e}(),JK=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),KK=function(e){function t(){var t=e.call(this)||this;return t.classType="html",t}return JK(t,e),t.prototype.init=function(){this.cssPropList=[new jK("display","boolean","外观","",this.element,"可见"),new jK("isReadOnly","boolean","外观","",this.element,"只读"),new jK("type","boxtype","通用","",this.element,"类型"),new jK("left","boxsize","通用","第一列",this.element,"X",[]),new jK("width","boxsize","通用","第一列",this.element,"w",[],"0"),new jK("top","boxsize","通用","第二列",this.element,"Y",[]),new jK("height","boxsize","通用","第二列",this.element,"H",[],"0"),new jK("background-opacity","slider","通用","不透明度",this.element,"不透明度",[],"0"),new jK("font-family","font-family","文本","字体",this.element,"字体"),new jK("font-size","font-size","文本","大小粗细",this.element,"文字大小",[],"0"),new jK("font-weight","option-input","文本","大小粗细",this.element,"文字粗细",["加粗","正常"]),new jK("position","","","",this.element,"位置"),new jK("line-height","number","文本","内边距行高",this.element,"行高",[],"0"),new jK("padding","number","文本","内边距行高",this.element,"内边距",[],"0"),new jK("text-align-last","align","文本","文字水平对齐",this.element,"文字水平对齐",[["gp-wenbenzuoduiqi","左对齐"],["gp-wenbenjuzhongduiqi","居中"],["gp-wenbenyouduiqi","右对齐"],["gp-wenbenquanbuduiqi","两端对齐"]]),new jK("color","color","文本","文字颜色",this.element,"文字颜色"),new jK("-webkit-text-stroke-color","color","文本","描边颜色",this.element,"描边颜色"),new jK("-webkit-text-stroke-width","strokeWidth","文本","描边线宽",this.element,"描边线宽",[],"0"),new jK("background-color","color","外观","",this.element,"背景色"),new jK("border-color","color","外观","",this.element,"边框颜色"),new jK("border-width","borderwidth","外观","",this.element,"边框宽度",[],"0"),new jK("border-style","borderstyle","外观","",this.element,"边框样式",["none","solid","double","dotted","dashed","ridge","outset"]),new jK("background-position","option-input","背景图","",this.element,"背景图位置",["","bottom","top","left","center","right"]),new jK("background-size","option-input","背景图","",this.element,"背景图大小",["默认","适应","填充"]),new jK("background-image","image-string","背景图","",this.element,"背景图")],this.displayProps=this.cssPropList[0],this.isReadOnlyProps=this.cssPropList[1],e.prototype.initCssBase.call(this),this.initGroup()},t.prototype.getInitialStyle=function(){var t={"background-color":"#000000",opacity:"1","background-repeat":"no-repeat",width:"0px",height:"0px",position:"absolute",cursor:"text","z-index":9,"background-position":"center","background-size":"contain",padding:"20px",display:"inline"};return Object.assign(t,{color:"#ffffff","text-align":"left","font-size":"22px","font-family":"微软雅黑","font-weight":"400","line-height":"normal"}),e.prototype.parseStyleObj.call(this,t),t},t}(VK),ZK=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},qK=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},$K=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},eZ=function(){function e(){this.isOperating=!1,this.id="",this.cssPropList=[],this.groups=[],this.isInit=!1,this.propertyChanged=new Cesium.Event,this.classType="htmlBoxMulti"}return Object.defineProperty(e.prototype,"element",{get:function(){return this.boxList.length>0?this.boxList[this.boxList.length-1].element:this._element},set:function(e){this._element=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.element.innerHTML},set:function(e){this.element.innerHTML=e},enumerable:!1,configurable:!0}),e.getElementBgOp=function(e){var t=1,i=getComputedStyle(e)["background-color"];if(i.indexOf(",")>-1){var n=i.split(",");4===n.length&&(t=Number.parseFloat(n[3]))}return t},e.prototype.init=function(e){var t,i;this.boxList=e,eI.boxList=e;var n=this.boxList[0].cssPropList,r=function(e){var t,i,n=0;try{for(var r=(t=void 0,$K(o.boxList)),s=r.next();!s.done;s=r.next()){var a=s.value.cssPropList.find(function(t){return t.name==e.name});a&&n++}}catch(e){t={error:e}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}if(n==o.boxList.length){var l=new QK(e);o.cssPropList.push(l)}},o=this;try{for(var s=$K(n),a=s.next();!a.done;a=s.next()){r(a.value)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}this.displayProps=this.cssPropList[0],this.isReadOnlyProps=this.cssPropList[1],this.initCssBase(),this.initGroup()},e.prototype.initHtml=function(e){this.element=e},Object.defineProperty(e.prototype,"show",{get:function(){return!!function(e){return e.every(function(e){return 1==e.show})}(this.boxList)},set:function(e){this.displayProps&&(this.displayProps.value=e,this.boxList.forEach(function(t){t.show=e}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReadOnly",{get:function(){return!!function(e){return e.every(function(e){return 1==e.isReadOnly})}(this.boxList)},set:function(e){this.isReadOnlyProps&&(this.isReadOnlyProps.value=e,this.boxList.forEach(function(t){t.isReadOnly=e}))},enumerable:!1,configurable:!0}),e.prototype.onPropertyChanged=function(e){this.propertyChanged.raiseEvent(e)},e.prototype.initCssBase=function(){var e=this;this.isInit=!0,this.cssPropList.forEach(function(t){var i=e.getPublicPropValue(t.name);if(i)switch(t.name){case"background-opacity":t.value=VK.getElementBgOp(i);break;case"background-size":var n=getComputedStyle(i)[t.name];"auto"===n?t.value="默认":"cover"==n?t.value="填充":"contain"==n&&(t.value="适应"),t.value=void 0;break;case"background-image":var r=getComputedStyle(i)[t.name];t.value="none"===r?"":getComputedStyle(i)[t.name];break;case"innerHtml":t.value=i.innerHTML.replace(/<br>/g,"\n").replace(/ /g," ");break;case"top":case"left":case"bottom":case"right":case"height":case"width":case"font-size":case"border-width":case"line-height":case"padding-top":case"padding-left":case"padding-right":case"padding-bottom":case"padding":case"-webkit-text-stroke-width":t.value=Number.parseInt(getComputedStyle(i)[t.name]);break;case"text-align-vertical":t.value="";break;case"font-weight":var o=getComputedStyle(i)[t.name];t.value="400"===o?"正常":"700"===o?"加粗":getComputedStyle(i)[t.name];break;case"display":"none"===getComputedStyle(i)[t.name]?t.value=!1:t.value=!0;break;case"isReadOnly":if(i.children[0].className.includes("scroll_box"))return;"none"===getComputedStyle(i)["pointer-events"]?t.value=!0:t.value=!1;break;case"type":t.value=e.boxList[0].boxType;break;default:var s=getComputedStyle(i)[t.name];s&&(t.value=s)}else t.value=void 0})},e.prototype.getPublicPropValue=function(e){if(this.boxList&&!(this.boxList.length<1)){for(var t=this.getProp(this.boxList[0],e),i=1;i<this.boxList.length;i++)if(this.getProp(this.boxList[i],e)!=t)return;return this.boxList[0].element}},e.prototype.getProp=function(e,t){var i=e.cssPropList.find(function(e){return e.name==t});return i?i.value:void 0},e.prototype.initGroup=function(){var e,t;this.cssPropList.forEach(function(e){return e.error=!1});var i=function(e){if("isReadOnly"===e.name||"display"===e.name)return"continue";if(e.group){var t=n.groups.find(function(t){return t.groupName===e.group});if(t||(t=new UK(e.group),n.groups.push(t)),e.subGroup){var i=t.subGroups.find(function(t){return t.subgroupName===e.subGroup});i||(i=new GK(e.subGroup),t.subGroups.push(i)),i.items.push(e)}else t.items.push(e)}},n=this;try{for(var r=$K(this.cssPropList),o=r.next();!o.done;o=r.next()){i(o.value)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.getInitialStyle=function(){var e={"background-color":"#000000",opacity:"1","background-repeat":"no-repeat",width:"0px",height:"0px",position:"absolute",cursor:"text","z-index":9,"background-position":"center","background-size":"contain",padding:"20px",display:"inline"};return Object.assign(e,{color:"#097EFF","text-align":"left","font-size":"22px","font-family":"微软雅黑","font-weight":"400","line-height":"normal"}),this.parseStyleObj(e),e},e.prototype.parseStyleObj=function(e){var t,i;try{for(var n=$K(Object.keys(e)),r=n.next();!r.done;r=n.next()){var o=r.value,s=this.classType+"-"+o;if(s in localStorage)switch(o){case"background-color":var a=localStorage[s],l=localStorage[this.classType+"-background-opacity"];if(void 0!==l&&null!=l||(l=1),a.indexOf("#")>-1){var u=(255*l).toString(16);u.indexOf(".")>-1&&(u=u.split(".")[0]),e[o]=localStorage.getItem(s)+u}else{var c=a.split(","),h=c[0].slice(c[0].indexOf("(")+1),p=Number.parseInt(c[2]);e[o]="rgba(".concat(h,",").concat(c[1],",").concat(p,",").concat(l,")")}break;case"font-size":case"padding":e[o]=localStorage.getItem(s)+"px";break;default:e[o]=localStorage.getItem(s)}}}catch(e){t={error:e}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}},ZK([rm(),qK("design:type",Object)],e.prototype,"isOperating",void 0),ZK([rm(),qK("design:type",HTMLElement)],e.prototype,"_element",void 0),ZK([rm(),qK("design:type",Object)],e.prototype,"propertyChanged",void 0),ZK([rm(),qK("design:type",String),qK("design:paramtypes",[Object])],e.prototype,"text",null),ZK([rm(),qK("design:type",QK)],e.prototype,"displayProps",void 0),ZK([rm(),qK("design:type",QK)],e.prototype,"isReadOnlyProps",void 0),ZK([rm(),qK("design:type",Object)],e.prototype,"__meta__",void 0),ZK([rm(),qK("design:type",Boolean),qK("design:paramtypes",[Object])],e.prototype,"show",null),ZK([rm(),qK("design:type",Boolean),qK("design:paramtypes",[Object])],e.prototype,"isReadOnly",null),e}(),tZ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),iZ=function(e){function t(){var t=e.call(this)||this;return t.classType="subtitle",t}return tZ(t,e),t.prototype.init=function(){this.cssPropList=[new jK("display","boolean","外观","",this.element,"可见"),new jK("isReadOnly","boolean","外观","",this.element,"只读"),new jK("background-opacity","slider","通用","不透明度",this.element,"不透明度",[],"0"),new jK("font-family","font-family","文本","字体",this.element,"字体"),new jK("font-size","font-size","文本","大小粗细",this.element,"文字大小",[],"0"),new jK("font-weight","option-input","文本","大小粗细",this.element,"文字粗细",["加粗","正常"]),new jK("position","","","",this.element,"位置"),new jK("padding","number","文本","内边距行高",this.element,"内边距",[],"0"),new jK("line-height","number","文本","内边距行高",this.element,"行高",[],"0"),new jK("text-align-last","align","文本","文字水平对齐",this.element,"文字水平对齐",[["gp-wenbenzuoduiqi","左对齐"],["gp-wenbenjuzhongduiqi","居中"],["gp-wenbenyouduiqi","右对齐"],["gp-wenbenquanbuduiqi","两端对齐"]]),new jK("color","color","文本","文字颜色",this.element,"文字颜色"),new jK("background-color","color","外观","",this.element,"背景色"),new jK("border-color","color","外观","",this.element,"边框颜色"),new jK("border-width","borderwidth","外观","",this.element,"边框宽度",[],"0"),new jK("border-style","borderstyle","外观","",this.element,"边框样式",["none","solid","double","dotted","dashed","ridge","outset"])],this.displayProps=this.cssPropList[0],this.isReadOnlyProps=this.cssPropList[1],e.prototype.initCssBase.call(this),this.initGroup()},t.prototype.getInitialStyle=function(){var t={"background-color":"#000000",opacity:1,"background-repeat":"no-repeat",width:"80%",left:"10%",bottom:"100px",position:"absolute",cursor:"move","z-index":9,color:"white","text-align":"center","font-size":"48px","line-height":"40px","background-position":"center","background-size":"contain","font-family":"微软雅黑","font-weight":"400",padding:"20px",display:"none"};return e.prototype.parseStyleObj.call(this,t),t},t}(VK),nZ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),rZ=function(e){function t(){var t=e.call(this)||this;return t.classType="newRichText",t}return nZ(t,e),t.prototype.init=function(){this.cssPropList=[new jK("display","boolean","外观","",this.element,"可见"),new jK("isReadOnly","boolean","外观","",this.element,"只读"),new jK("type","boxtype","通用","",this.element,"类型"),new jK("left","boxsize","通用","第一列",this.element,"X"),new jK("width","boxsize","通用","第一列",this.element,"w",[],"0"),new jK("top","boxsize","通用","第二列",this.element,"Y"),new jK("height","boxsize","通用","第二列",this.element,"H",[],"0"),new jK("background-opacity","slider","通用","不透明度",this.element,"不透明度",[],"0"),new jK("background-color","color","外观","",this.element,"背景色"),new jK("border-color","color","外观","",this.element,"边框颜色"),new jK("border-width","borderwidth","外观","",this.element,"边框宽度",[],"0"),new jK("border-style","borderstyle","外观","",this.element,"边框样式",["none","solid","double","dotted","dashed","ridge","outset"]),new jK("background-position","option-input","背景图","",this.element,"背景图位置",["","bottom","top","left","center","right"]),new jK("background-size","option-input","背景图","",this.element,"背景图大小",["默认","适应","填充"]),new jK("background-image","image-string","背景图","",this.element,"背景图")],this.displayProps=this.cssPropList[0],this.isReadOnlyProps=this.cssPropList[1],e.prototype.initCssBase.call(this),this.initGroup()},t.prototype.getInitialStyle=function(){var e={"background-color":"#000000",opacity:"1","background-repeat":"no-repeat",width:"0px",height:"0px",position:"absolute",cursor:"default","z-index":12,"background-position":"center","background-size":"contain",padding:"20px",display:"inline"};return Object.assign(e,{color:"#ffffff","text-align":"left","font-size":"32px","font-family":"微软雅黑","font-weight":"400","line-height":"1.5","overflow-wrap":"anywhere"}),e},t}(VK),oZ=__webpack_require__(6763),sZ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),aZ=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},lZ=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},uZ=function(e){function t(){var t=e.call(this)||this;return t.picList=[],t.classType="picCollection",t}return sZ(t,e),t.prototype.init=function(){this.cssPropList=[new jK("display","boolean","外观","",this.element,"可见"),new jK("isReadOnly","boolean","外观","",this.element,"只读"),new jK("type","boxtype","通用","",this.element,"类型"),new jK("left","boxsize","通用","第一列",this.element,"X"),new jK("width","boxsize","通用","第一列",this.element,"w",[],"0"),new jK("top","boxsize","通用","第二列",this.element,"Y"),new jK("height","boxsize","通用","第二列",this.element,"H",[],"0"),new jK("background-opacity","slider","通用","不透明度",this.element,"不透明度",[],"0"),new jK("background-color","color","外观","",this.element,"背景色"),new jK("border-color","color","外观","",this.element,"边框颜色"),new jK("border-width","borderwidth","外观","",this.element,"边框宽度",[],"0"),new jK("border-style","borderstyle","外观","",this.element,"边框样式",["none","solid","double","dotted","dashed","ridge","outset"])],this.displayProps=this.cssPropList[0],this.isReadOnlyProps=this.cssPropList[1],e.prototype.initCssBase.call(this),this.initGroup(),this.element.contentEditable=!1,this.setPicList([])},t.prototype.resetPicList=function(e){oZ.log("list",e);var t=document.getElementsByClassName("carouselContainer")[0];t&&(t.innerHTML="")},t.prototype.setPicList=function(e){var t=this;if(oZ.log("imgList",e,this.tnsObj),e.length>0&&(this.picList=e),e.length>0&&(this.picList=e),0!==this.picList.length){var i=document.createElement("div");i.className="carouselContainer",i.style.cssText="width:100%;height:100%;display:flex;justify-content: center;align-items: center;";var n='<button class="btn_left_'.concat(this.id,'" style="position: absolute;\n background-color: rgba(0, 0, 0, 0.3);\n z-index: 3;border: none;\n left: 0;\n width: 60px; \n height: 100%;\n top: 0;" nz-button nzType="text"><i style="font-size: 40px;" class="iconfont gp-arrow-left"></i></button>'),r='<button class="right_btn_'.concat(this.id,'" style="position: absolute;\n background-color: rgba(0, 0, 0, 0.3);\n z-index: 3;border: none;\n right: 0;\n width: 60px;\n height: 100%;\n top: 0;" nz-button nzType="text"><i style="font-size: 40px;" class="iconfont gp-arrow-right"></i></button>'),o="";this.picList.forEach(function(e){o="".concat(o,'<div style="text-align: center;height:100%"><img style="width: 80%;height:100%" src=\'').concat(e.imgPath,"'></div>")}),o="<div id='edittns_".concat(this.id,"'>").concat(o,"</div>"),i.innerHTML=o+n+r,this.element.innerHTML="",this.element.appendChild(i),document.querySelector(".btn_left_"+this.id).addEventListener("click",function(e){t.previous()}),document.querySelector(".right_btn_"+this.id).addEventListener("click",function(e){t.next()}),this.tnsObj=window.tns({container:"#edittns_"+this.id,items:1,swipeAngle:!1,speed:400,controls:!1,navPosition:""})}},t.prototype.previous=function(){this.tnsObj&&this.tnsObj.goTo("prev")},t.prototype.next=function(){this.tnsObj&&this.tnsObj.goTo("next")},t.prototype.getInitialStyle=function(){var t={"background-color":"#000000",opacity:"1","background-repeat":"no-repeat",width:"0px",height:"0px",position:"absolute",cursor:"move","z-index":9,"background-position":"center","background-size":"contain",padding:"20px",display:"inline"};return Object.assign(t,{color:"#097EFF","text-align":"left","font-size":"16px","font-family":"微软雅黑","font-weight":"400","line-height":"21px"}),e.prototype.parseStyleObj.call(this,t),t},aZ([rm(),lZ("design:type",Object)],t.prototype,"tnsObj",void 0),t}(VK),cZ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),hZ=function(e){function t(){var t=e.call(this)||this;return t.classType="richText",t}return cZ(t,e),t.prototype.init=function(){this.cssPropList=[new jK("display","boolean","外观","",this.element,"可见"),new jK("isReadOnly","boolean","外观","",this.element,"只读"),new jK("type","boxtype","通用","",this.element,"类型"),new jK("left","boxsize","通用","第一列",this.element,"X"),new jK("width","boxsize","通用","第一列",this.element,"w",[],"0"),new jK("top","boxsize","通用","第二列",this.element,"Y"),new jK("height","boxsize","通用","第二列",this.element,"H",[],"0"),new jK("background-opacity","slider","通用","不透明度",this.element,"不透明度",[],"0"),new jK("background-color","color","外观","",this.element,"背景色"),new jK("border-color","color","外观","",this.element,"边框颜色"),new jK("border-width","borderwidth","外观","",this.element,"边框宽度",[],"0"),new jK("border-style","borderstyle","外观","",this.element,"边框样式",["none","solid","double","dotted","dashed","ridge","outset"])],this.displayProps=this.cssPropList[0],this.isReadOnlyProps=this.cssPropList[1],e.prototype.initCssBase.call(this),this.initGroup()},t.prototype.getInitialStyle=function(){var t={"background-color":"#ffffff",opacity:"1","background-repeat":"no-repeat",width:"0px",height:"0px",position:"absolute",cursor:"move","z-index":9,"background-position":"center","background-size":"contain",padding:"20px",display:"inline"};return Object.assign(t,{color:"#000000","text-align":"left","font-size":"16px","font-family":"微软雅黑","font-weight":"400","line-height":"21px","overflow-wrap":"anywhere"}),e.prototype.parseStyleObj.call(this,t),t},t}(VK),pZ=__webpack_require__(6763),dZ=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),fZ=function(e){function t(){var t=e.call(this)||this;return t.videoPath="",t.classType="videoBox",t}return dZ(t,e),t.prototype.init=function(){this.cssPropList=[new jK("display","boolean","外观","",this.element,"可见"),new jK("isReadOnly","boolean","外观","",this.element,"只读"),new jK("type","boxtype","通用","",this.element,"类型"),new jK("left","boxsize","通用","第一列",this.element,"X"),new jK("width","boxsize","通用","第一列",this.element,"w",[],"0"),new jK("top","boxsize","通用","第二列",this.element,"Y"),new jK("height","boxsize","通用","第二列",this.element,"H",[],"0"),new jK("background-opacity","slider","通用","不透明度",this.element,"不透明度",[],"0"),new jK("background-color","color","外观","",this.element,"背景色"),new jK("border-color","color","外观","",this.element,"边框颜色"),new jK("border-width","borderwidth","外观","",this.element,"边框宽度",[],"0"),new jK("border-style","borderstyle","外观","",this.element,"边框样式",["none","solid","double","dotted","dashed","ridge","outset"])],this.displayProps=this.cssPropList[0],this.isReadOnlyProps=this.cssPropList[1],e.prototype.initCssBase.call(this),this.initGroup()},t.prototype.setVideoBox=function(e){pZ.log("ele",e,this.videoPath);var t='<video id="'.concat(this.id,'_media" height="100%" width="100%" controls><source src="').concat(e.videoPath,'" type="video/mp4"><video/>'),i=document.createElement("div");i.className="videoContainer",i.style.cssText="width:100%;height:100%;display:flex;justify-content: center;align-items: center;",i.innerHTML=t,this.element.innerHTML="",this.element.appendChild(i)},t.prototype.getInitialStyle=function(){var t={"background-color":"#000000",opacity:"1","background-repeat":"no-repeat",width:"0px",height:"0px",position:"absolute",cursor:"move","z-index":9,"background-position":"center","background-size":"contain",padding:"20px",display:"inline"};return Object.assign(t,{color:"#097EFF","text-align":"left","font-size":"16px","font-family":"微软雅黑","font-weight":"400","line-height":"21px"}),e.prototype.parseStyleObj.call(this,t),t},t}(VK),mZ=function(){function e(){}return e.createBox=function(e){var t;switch(e){case"html":default:(t=new KK).name="文本框",t.boxType="文本框";break;case"richText":(t=new hZ).name="富文本",t.boxType="富文本";break;case"newRichText":(t=new rZ).name="富文本",t.boxType="富文本";break;case"picCollection":(t=new uZ).name="图片集",t.boxType="图片集";break;case"subtitle":(t=new iZ).name="字幕",t.boxType="字幕";break;case"videoBox":(t=new fZ).name="视频",t.boxType="视频"}return t},e}(),gZ=__webpack_require__(6763),yZ=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())})},_Z=function(e,t){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},AZ=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},vZ=function(){function e(e){var t=this;this._isReadOnly=!1,this.subTitleChange=new am,this.scalePercent=1,this.autoScale=!0,this.boxList=new Array,this.onBoxSelected=new am,this.onCtrlBoxesSelected=new am,this._currentBoxList=[],this.onBoxCreated=new am,this.selectedBoxBorderList=[],this.onVideoAnimationInit=new am,this.endHtmlPlot$=new am,this.obj={},this.isDrawPanelShow=!1,this.startX=0,this.startY=0,this.diffX=0,this.diffY=0,this.dragging=!1,this.isEditing=!1,this.movingBoxElement=null,this.currentBoxTop=null,this.currentBoxLeft=null,this.resizing=!1,this.resizingStartX=0,this.resizingStartY=0,this.heightStartY=0,this.widthStartX=0,this.heightOriginValue=0,this.widthOriginValue=0,this.topOriginValue=0,this.leftOriginValue=0,this.currentBoxHeight=null,this.currentBoxWidth=null,this.operatorEnd=new am,this.operatorMoveDiffX=0,this.operatorMoveDiffY=0,this.operatorMoving=!1,this.isCtrlPressedSub$=new am,this.tempDirection="",this.scaling=!1,this.mouseStartX=0,this.mouseStartY=0,this.isEdit=!1,this.serviceManager=e,this.serviceManager.richTextService.scalePercentCopySub$.subscribe(function(){t.serviceManager.richTextService.scalePercentCopy=t.scalePercent}),this.init()}return Object.defineProperty(e.prototype,"currentBox",{get:function(){return this._currentBox},set:function(e){this._currentBox=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReadOnly",{get:function(){return this._isReadOnly},set:function(e){this._isReadOnly=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"container",{get:function(){return this._container},set:function(e){this._container=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentBoxList",{get:function(){return this._currentBoxList},set:function(e){this._currentBoxList=e,eI.currentBoxList=e},enumerable:!1,configurable:!0}),e.prototype.getListDataToSave=function(){return this.convertBoxListToString(this.boxList)},e.prototype.convertBoxListToString=function(e){var t,i;e.forEach(function(e){e.html=e.element.outerHTML});var n=[];try{for(var r=AZ(e),o=r.next();!o.done;o=r.next()){var s=mN(o.value);n.push(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}return tm.Ay.serialize(n)},e.prototype.saveBoxData=function(e){return e.html=e.element.outerHTML,e},e.prototype.setBoxEditable=function(e){this.boxList.forEach(function(e){e.html=e.element.outerHTML})},e.prototype.setListByData=function(e){var t,i,n=this;if(e&&!(e.length<1)){e.forEach(function(e){var t=document.createElement("div");t.innerHTML=e.html,t.children[0].id=e.id,n.containerDiv.appendChild(t.children[0])});var r=[],o=this.containerDiv.getElementsByClassName("html-box"),s=Array.from(o),a=function(e){var t=s.find(function(t){return t.id===e.id});if(!t)return"continue";l.initBoxEvent(t);var i=mZ.createBox(e.classType);i.id=e.id?e.id:t.id,i.name=e.name,i.boxType=e.boxType,i.videoPath||(i.videoPath=e.videoPath),i.initHtml(t),i.init(),i instanceof uZ&&i.setPicList(e.picList),l.boxList.push(i),r.push(i)},l=this;try{for(var u=AZ(e),c=u.next();!c.done;c=u.next()){a(c.value)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(t)throw t.error}}return r}},e.prototype.showHtml=function(e){var t=this;!e||e.length<1||e.forEach(function(e){t.containerDiv.innerHTML+=e.html})},e.prototype.deleteBox=function(e){jf.Remove(this.boxList,e),this.currentBox===e&&this.setCurrentBox(null);var t=document.getElementById(e.id);t&&this.containerDiv.removeChild(t),this.onBoxSelected.next(null)},e.prototype.deleteBoxList=function(e){var t=this;this.currentBox&&e.find(function(e){return e.id===t.currentBox.id})&&this.setCurrentBox(null),e.forEach(function(e){var i=document.getElementById(e.id);i&&t.containerDiv.removeChild(i)})},e.prototype.clearHtmlDiv=function(){this.containerDiv&&(this.containerDiv.innerHTML="",this.boxList=[],this.setCurrentBox(null),this.selectedBoxBorderList=[])},e.prototype.init=function(){var e=this,t=document,i=document.getElementById("html-draw-container");i?i.style.pointerEvents="all":i=this.createRichTextPanel(),this.containerDiv=i,this.container=i,t.onmousedown=function(t){return e.startDraw(t)},t.addEventListener("mousemove",function(t){return e.updateBoxSize(t)}),t.addEventListener("mouseup",function(t){return e.drawEnd(t)})},e.prototype.createRichTextPanel=function(){var e=document.createElement("div");e.id="richTextPanel",e.style.cssText="\n transform-origin: left top;\n pointer-events: none;\n overflow: hidden;\n position: absolute;\n top: 0px;\n left: 100px;\n margin: 0px, 0px, 0px, 112.63px;\n transform: scale(0.748698);\n width: 1920px;\n height: 1080px;\n ";var t=document.createElement("div");t.id="html-draw-container",t.style.cssText="\n pointer-events: none;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow: auto;\n background: transparent;\n ";var i=document.createElement("div");i.className="operatorText",i.id="operatorText",i.style.cssText="\n pointer-events: all;\n display: none;\n position: absolute;\n top: -30;\n left: 400;\n flex-wrap: nowrap;\n background: linear-gradient(to right, #151515 10px, #353536DD 10px);\n z-index: 15;\n height: 34px;\n color: #ffffff;\n border-radius: 6px;\n align-content: center;\n ";var n=document.createElement("div");n.className="handler_div",n.innerText="........";var r=document.createElement("div");r.className="level_move",r.title="水平移动",r.innerText="移动";var o=document.createElement("div");o.className="all_zoom",o.title="整体缩放",o.innerText="缩放";var s=document.createElement("div");s.className="delete",s.title="删除",s.innerText="删除",i.appendChild(n),i.appendChild(r),i.appendChild(o),i.appendChild(s),e.appendChild(t),e.appendChild(i);var a=document.createElement("style");return a.textContent="\n .html-box{\n pointer-events: all;\n top: 20px !important;\n }\n .html-box11 {\n background-color: #ff000077;\n background-repeat: no-repeat;\n width: 0px;\n height: 0px;\n position: absolute;\n cursor: move;\n z-index: 10;\n color: #ffffff;\n text-align: center;\n font-size: 28px;\n }\n\n .select-box-div {\n height: 200px;\n width: 200px;\n position: absolute;\n border: 2px white solid;\n display: none;\n border-style: dashed;\n }\n\n .operator_div_move {\n width: 20px;\n height: 100%;\n text-align: center;\n cursor: move;\n overflow-wrap: anywhere;\n overflow: hidden;\n line-height: 4px;\n font-size: 12px;\n padding: 6px 1px 1px;\n }\n\n .handler_div {\n width: 10px;\n height: 100%;\n text-align: center;\n cursor: move;\n overflow-wrap: anywhere;\n overflow: hidden;\n line-height: 4px;\n font-size: 12px;\n color: #ffffff;\n padding: 6px 1px 1px;\n transform: scale(0.5);\n margin-top: 2px;\n }\n\n .level_move {\n padding: 0;\n font-size: 16px;\n margin: 5px;\n opacity: 0.8;\n }\n\n .all_zoom {\n padding: 0;\n font-size: 16px;\n margin: 5px;\n opacity: 0.8;\n }\n\n .delete {\n padding: 0;\n font-size: 16px;\n margin: 5px;\n opacity: 0.8;\n }\n /* 移动端适配 */\n @media (max-width: 768px) {\n #richTextPanel {\n width: 95vw;\n height: 95vh;\n aspect-ratio: auto;\n min-width: 320px;\n min-height: 568px;\n }\n }\n \n /* 平板适配 */\n @media (min-width: 769px) and (max-width: 1024px) {\n #richTextPanel {\n width: 95vw;\n height: 95vh;\n }\n }\n ",document.head.appendChild(a),document.body.appendChild(e),t},e.prototype.updateBoxSize=function(e){var t=this.calMouseCurrentOffset();if(this.isDrawPanelShow){var i=document.getElementsByClassName("active_box")[0];if(i){if(this.scaleValue(e.pageX)>this.scaleValue(t.left)+t.width||this.scaleValue(e.pageY)>this.scaleValue(t.top)+t.height)return void gZ.log("禁止绘制的范围");i.style.width=this.scaleValue(e.pageX)-this.startX+"px",i.style.height=this.scaleValue(e.pageY)-this.startY+"px"}}},e.prototype.updateOperatorPoint=function(e,t){var i=this;void 0===t&&(t=!1);var n=document.getElementsByClassName("operatorText")[0];if(n){if(n.style.transform="scale(".concat(1/this.scalePercent,")"),t)n.style.display="none";else{if(this.serviceManager.richTextService.editor&&this.serviceManager.richTextService.currentHtmlBox)return;this.currentBoxList[this.currentBoxList.length-1];if("unset"===e.style.top&&(n.style.bottom=Number.parseInt(getComputedStyle(e).bottom)-10+"px"),"unset"===e.style.bottom&&(n.style.top=Number.parseInt(getComputedStyle(e).top)-10+"px"),"unset"===e.style.left&&(n.style.right=Number.parseInt(getComputedStyle(e).right)-10+(Number.parseInt(getComputedStyle(e).width)+20)+"px"),"unset"===e.style.right&&(n.style.left=Number.parseInt(getComputedStyle(e).left)-10+(Number.parseInt(getComputedStyle(e).width)+20)+"px"),n.style.display="flex",this.currentBox instanceof KK||this.currentBox instanceof hZ||this.currentBox instanceof uZ||this.currentBox instanceof rZ){var r=parseFloat(n.style.top.slice(0,n.style.top.length-2)),o=parseFloat(n.style.left.slice(0,n.style.left.length-2)),s=document.getElementById("richTextPanel"),a=parseFloat(s.style.width.slice(0,s.style.width.length-2)),l=parseFloat(s.style.height.slice(0,s.style.height.length-2));r<0&&(gZ.log("上边超出拖拽区域!"),n.style.top="10px"),r>l-100&&(gZ.log("下边超出拖拽区域!"),n.style.top=l-100+"px"),o<0&&(gZ.log("左边超出拖拽区域!"),n.style.left="40px"),o>a-200&&(gZ.log("右边超出拖拽区域!"),n.style.left=a-200+"px")}}setTimeout(function(){var e=document.querySelector(".lock");e&&e.firstElementChild&&i.currentBox&&(e.firstElementChild.className=i.currentBox.isReadOnly?"iconfont gp-suodingkaobei":"iconfont gp-jiesuo")},0)}},e.prototype.hideOperator=function(){var e=document.getElementsByClassName("operatorText")[0];e&&(e.style.display="none")},e.prototype.showOperator=function(e,t){var i=this;void 0===t&&(t=!1),this.updateOperatorPoint(e,t);var n=document.getElementsByClassName("operatorText")[0];!function(){var e=document.querySelector(".level_move");e?e.onmousedown=function(t){gZ.log("开始移动富文本");e.getBoundingClientRect();n.style.display="none",i.startDragBox(t)}:gZ.warn("未找到.level_move元素");var t=document.querySelector(".all_zoom");t?t.onmousedown=function(e){t.getBoundingClientRect();n.style.display="none",i.startScale(e)}:gZ.warn("未找到.all_zoom元素");var r=document.querySelector(".delete");r?r.onmousedown=function(e){r.getBoundingClientRect();n.style.display="none",i.deleteAll()}:gZ.warn("未找到.delete元素")}();var r=document.querySelector(".handler_div");if(r){var o=document.querySelector("#tt001");r.onmousedown=function(e){o&&(o.addEventListener("mouseup",i.toolMoverMouseUp),o.addEventListener("mousemove",i.toolMoverMouseMove)),i.operatorMoving=!0,i.operatorMoveDiffX=e.clientX,i.operatorMoveDiffY=e.clientY,i.prevBoxTop=0,i.prevBoxLeft=0},this.toolMoverMouseUp=function(e){i.operatorMoving=!1,e.stopPropagation(),o&&(o.removeEventListener("mouseup",i.toolMoverMouseUp),o.removeEventListener("mousemove",i.toolMoverMouseMove))},this.toolMoverMouseMove=function(e){if(i.operatorMoving){var t=e.clientY-i.operatorMoveDiffY,n=e.clientX-i.operatorMoveDiffX;r.parentElement.style.top=parseFloat(r.parentElement.style.top)+(t-i.prevBoxTop)/i.scalePercent+"px",r.parentElement.style.left=parseFloat(r.parentElement.style.left)+(n-i.prevBoxLeft)/i.scalePercent+"px",i.prevBoxTop=t,i.prevBoxLeft=n}}}var s=document.querySelector(".lock");s&&(s.onclick=function(e){i.lockHTMlBox()})},e.prototype.lockHTMlBox=function(e){var t;t=e||this.currentBox;var i;gZ.log("锁定",event),i=!t.isReadOnly;var n=document.getElementsByClassName("html-box")[0];i?(t.isReadOnly=!0,t instanceof rZ&&this.serviceManager.richTextService.disable()):(t.isReadOnly=!1,t instanceof rZ&&(this.serviceManager.richTextService.enable(),n&&(n.style.pointerEvents="auto")));var r=document.querySelector(".lock");r&&r.firstElementChild&&(r.firstElementChild.className=i?"iconfont gp-suodingkaobei":"iconfont gp-jiesuo")},e.prototype.showSelectBox=function(e,t){void 0===t&&(t=!1),e||(e=this.currentBox.element);var i=this.selectedBoxBorderList.find(function(t){return t.id===e.id+"-s"});i?i.style.display="block":((i=document.createElement("div")).id=e.id+"-s",i.className="select-box",i.style.position="absolute",t||(i.style.border="3px dashed #E3C42E"),this.containerDiv.appendChild(i),t||this.addControlBar(i),this.selectedBoxBorderList.push(i)),t?(i.style.left="9%",i.style.width="82%",i.style.bottom=Number.parseInt(getComputedStyle(e).bottom)-10+"px",i.onkeydown=function(e){e.ctrlKey&&86==e.keyCode&&e.stopPropagation()},i.onkeyup=function(e){e.ctrlKey&&86==e.keyCode&&e.stopPropagation()}):("unset"===e.style.top&&(i.style.bottom=Number.parseInt(getComputedStyle(e).bottom)-3+"px"),"unset"===e.style.bottom&&(i.style.top=Number.parseInt(getComputedStyle(e).top)-3+"px"),"unset"===e.style.left&&(i.style.right=Number.parseInt(getComputedStyle(e).right)-3+"px"),"unset"===e.style.right&&(i.style.left=Number.parseInt(getComputedStyle(e).left)-3+"px"),i.style.width=Number.parseInt(getComputedStyle(e).width)+40+"px",i.style.height=Number.parseInt(getComputedStyle(e).height)+40+"px")},e.prototype.addControlBar=function(e){var t=this;[{tempDirection:"WN",cursor:"nw-resize",top:"-10px",left:"-10px"},{tempDirection:"W",cursor:"w-resize",top:"50%",left:"-11px"},{tempDirection:"WS",cursor:"sw-resize",left:"-10px",bottom:"-10px"},{tempDirection:"S",cursor:"s-resize",left:"50%",bottom:"-11px"},{tempDirection:"ES",cursor:"se-resize",right:"-10px",bottom:"-10px"},{tempDirection:"E",cursor:"e-resize",top:"50%",right:"-11px"},{tempDirection:"N",cursor:"n-resize",top:"-11px",left:"50%"},{tempDirection:"EN",cursor:"ne-resize",top:"-11px",right:"-11px"}].forEach(function(i){var n=document.createElement("div");n.className="html-control-bar";var r="height: 18px;width: 18px;z-index: 10;position: absolute;background-color: #FFFFFF;border: 2px solid #F3B713;border-radius: 50%;";r=r+"cursor:"+i.cursor+";",i.left&&(r=r+"left:"+i.left+";"),i.top&&(r=r+"top:"+i.top+";"),i.bottom&&(r=r+"bottom:"+i.bottom+";"),i.right&&(r=r+"right:"+i.right+";"),n.style.cssText=r,n.onmousedown=function(e){t.tempDirection=i.tempDirection,t.startResizing(e)},e.appendChild(n)})},e.prototype.startScale=function(e){this.mouseStartX=e.clientX,this.mouseStartY=e.clientY,this.movingBoxElement=this.currentBox.element,this.scaling=!0},e.prototype.getOwnerElement=function(){return(window.viewerHtmlElement?window.viewerHtmlElement:this.viewer.scene.canvas).parentElement},e.prototype.startResizing=function(e){this.resizing=!0,this.currentBoxHeight=this.currentBox.cssPropList.find(function(e){return"height"===e.name}),this.heightOriginValue=this.currentBoxHeight.value,this.currentBoxWidth=this.currentBox.cssPropList.find(function(e){return"width"===e.name}),this.widthOriginValue=this.currentBoxWidth.value,this.currentBoxTop=this.currentBox.cssPropList.find(function(e){return"top"===e.name}),this.topOriginValue=this.currentBoxTop.value,this.currentBoxLeft=this.currentBox.cssPropList.find(function(e){return"left"===e.name}),this.leftOriginValue=this.currentBoxLeft.value,this.resizingStartY=this.scaleValue(e.clientY),this.resizingStartX=this.scaleValue(e.clientX),this.movingBoxElement=this.currentBox.element},e.prototype.topHeightResizing=function(e){var t=this.scaleValue(e.clientY)-this.resizingStartY;this.heightOriginValue-t<=40?(this.currentBoxTop&&(this.currentBoxTop.value=this.topOriginValue+this.heightOriginValue-40),this.currentBoxHeight&&(this.currentBoxHeight.value=40)):(this.currentBoxTop&&(this.currentBoxTop.value=this.topOriginValue+t),this.currentBoxHeight&&(this.currentBoxHeight.value=this.heightOriginValue-t))},e.prototype.leftWidthResizing=function(e){var t=this.scaleValue(e.clientX)-this.resizingStartX;this.widthOriginValue-t<=40?(this.currentBoxLeft&&(this.currentBoxLeft.value=this.leftOriginValue+this.widthOriginValue-40),this.currentBoxWidth&&(this.currentBoxWidth.value=40)):(this.currentBoxLeft&&(this.currentBoxLeft.value=this.leftOriginValue+t),this.currentBoxWidth&&(this.currentBoxWidth.value=this.widthOriginValue-t))},e.prototype.widthResizing=function(e){var t=this.scaleValue(e.clientX)-this.resizingStartX;t+this.widthOriginValue<=40?this.currentBoxWidth&&(this.currentBoxWidth.value=40):this.currentBoxWidth&&(this.currentBoxWidth.value=this.widthOriginValue+t)},e.prototype.heightResizing=function(e){var t=this.scaleValue(e.clientY)-this.resizingStartY;t+this.heightOriginValue<=40?this.currentBoxHeight&&(this.currentBoxHeight.value=40):this.currentBoxHeight&&(this.currentBoxHeight.value=this.heightOriginValue+t)},e.prototype.startMoveHeight=function(e){this.resizing=!0,this.currentBoxHeight=this.currentBox.cssPropList.find(function(e){return"height"===e.name}),this.heightStartY=e.clientY,this.movingBoxElement=this.currentBox.element,this.heightOriginValue=this.currentBoxHeight.value},e.prototype.startMoveWidth=function(e){this.resizing=!0,this.currentBoxWidth=this.currentBox.cssPropList.find(function(e){return"width"===e.name}),this.widthStartX=e.clientX,this.movingBoxElement=this.currentBox.element,this.currentBoxWidth&&(this.widthOriginValue=this.currentBoxWidth.value)},e.prototype.updateSelectBox=function(){var e=this;this.currentBoxList.length>1?this.currentBoxList.forEach(function(t){e.selectedBoxBorderList.find(function(e){return e.id===t.id+"-s"})&&e.showSelectBox(t.element)}):this.currentBox&&this.showSelectBox(this.currentBox.element)},e.prototype.scaleValue=function(e){return Math.ceil(e/this.scalePercent)},e.prototype.reScaleValue=function(e){return Math.ceil(e*this.scalePercent)},e.prototype.calMouseCurrentOffset=function(){this.scalePercent;var e=this.container,t=e.getBoundingClientRect();return{top:t.top,left:t.left,width:e.offsetWidth,height:e.offsetHeight}},e.prototype.initParam=function(e){gZ.log("this.containerDiv//",this.containerDiv);var t=this.containerDiv.getElementsByClassName("html-box").length+1;this.setCurrentBox(null),this.isEditing=!0;var i=document.createElement("div");this.newBox=mZ.createBox(e.kind);var n=this.newBox.getInitialStyle();Object.assign(i.style,n),i.id=Fm.newGuid(),i.className="html-box active_box",i.style.width="400px",i.style.height="500px",i.style.left=30+30*t+"px",i.style.top=135+30*t+"px",i.innerHTML='<label class="box_placeholder" style="color:rgba(255,255,255,0.65);font-size:32px; ">单击选中富文本<br>双击编辑文本内容...</label>',i.onkeypress=function(e){e.stopPropagation()},this.initBoxEvent(i),this.containerDiv.appendChild(i);var r=i.style.backgroundColor,o=this.serviceManager.richTextService.rgbToRgba(r,.6);o&&(i.style.backgroundColor=o),this.newBox.id=i.id,this.newBox.name=ZB.createEntityName(this.newBox.name,this.boxList.map(function(e){return e.name})),this.newBox.initHtml(i),this.newBox.init();var s=this.newBox.cssPropList.find(function(e){return"type"===e.name});s&&(s.value=this.newBox.boxType),this.boxList.push(this.newBox),this.setCurrentBox(this.newBox),this.onBoxCreated.next(this.newBox),this.newBox.isInit=!1,gZ.log("initParam",this.newBox)},e.prototype.startDraw=function(e){if(this.isDrawPanelShow){var t=this.calMouseCurrentOffset();if(this.setCurrentBox(null),this.isEditing=!0,this.startX=this.scaleValue(e.pageX),this.startY=this.scaleValue(e.pageY),e.target.className.match(/html-box/))this.startDragBox(e);else{var i=document.createElement("div");this.newBox=mZ.createBox(this.currentBoxType);var n=this.newBox.getInitialStyle();Object.assign(i.style,n),i.id=Fm.newGuid(),i.className="html-box active_box",i.style.top=this.scaleValue(e.pageY-t.top)+"px",i.style.left=this.scaleValue(e.pageX-t.left)+"px",i.onkeypress=function(e){e.stopPropagation()},this.initBoxEvent(i),this.containerDiv.appendChild(i)}}},e.prototype.drawEnd=function(e){this.isDrawPanelShow=!1;var t=document.getElementsByClassName("active_box")[0];if(t){if(t.className="html-box",t.offsetWidth<50||t.offsetHeight<50)this.containerDiv.removeChild(t),this.onBoxCreated.next(1);else{if(this.newBox.id)return;this.newBox.id=t.id,this.newBox.name=ZB.createEntityName(this.newBox.name,this.boxList.map(function(e){return e.name})),this.newBox.initHtml(t),this.newBox.init();var i=this.newBox.cssPropList.find(function(e){return"type"===e.name});i&&(i.value=this.newBox.boxType),this.boxList.push(this.newBox),this.setCurrentBox(this.newBox),this.onBoxCreated.next(this.newBox),this.newBox.isInit=!1,"videoBox"===this.newBox.classType&&(this.newBox.videoPath=this.currentBoxPath,this.currentBox.setVideoBox(this.newBox))}this.endHtmlPlot$.next(1)}},e.prototype.setSubtitleListByData=function(e){var t,i,n=this;if(!e||0===e.length)return[];e.forEach(function(e){var t=document.createElement("div");t.innerHTML=e.html,t.children[0].id=e.id,n.containerDiv.appendChild(t.children[0])});var r=this.containerDiv.getElementsByClassName("html-box-subtitle"),o=Array.from(r),s=[],a=function(e){var t=o.find(function(t){return t.id===e.id});if(!t)return"continue";t.contentEditable="true",t.addEventListener("input",function(){n.subTitleChange.next(1)}),t.addEventListener("keydown",function(e){e.stopPropagation()}),t.addEventListener("keyup",function(e){e.stopPropagation()}),t.style.display="none";var i=new iZ;i.id=e.id?e.id:t.id,i.name=e.name,i.initHtml(t),i.init(),s.push(i)};try{for(var l=AZ(e),u=l.next();!u.done;u=l.next()){a(u.value)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(t)throw t.error}}return s},e.prototype.addSubtitleBox=function(e){var t=this,i=document.createElement("div");i.id=Fm.newGuid(),i.className="html-box-subtitle",i.innerHTML=e,i.onkeydown=function(e){e.stopPropagation()},i.contentEditable="true",this.containerDiv.appendChild(i),i.addEventListener("input",function(e){t.subTitleChange.next(1)}),i.addEventListener("keydown",function(e){e.stopPropagation()}),i.addEventListener("keyup",function(e){e.stopPropagation()});var n=new iZ;n.id=i.id,n.name="字幕",n.initHtml(i);var r=n.getInitialStyle();return Object.assign(i.style,r),n.init(),n.show=!1,n.element.onmousedown=function(e){gZ.log("e",e),!t.isDrawPanelShow&&e&&n&&t.setCurrentBox(n)},n},e.prototype.initBoxEvent=function(e){var t=this;e.onmousedown=function(e){e.ctrlKey&&eI.currentEditGraphList.length>0?t.setBoxEditable(!1):t.setBoxEditable(!0),t.boxOnMouseDown(e)},window.onmousemove=function(e){e.ctrlKey&&eI.currentEditGraphList.length>0?t.setBoxEditable(!1):t.setBoxEditable(!0),t.controlCurrentBox(e)},e.onmouseup=function(e){e.ctrlKey&&eI.currentEditGraphList.length>0?t.setBoxEditable(!1):t.setBoxEditable(!0),t.endDragBox()},window.onmouseup=function(e){t.scaling=!1,t.resizing=!1,t.endDragBox(),t.currentBoxHeight=null,t.currentBoxWidth=null,t.currentBox&&t.currentBox.element&&"subtitle"!==t.currentBox.classType&&t.updateOperatorPoint(t.currentBox.element)},e.onkeydown=function(e){e.stopPropagation()}},e.prototype.boxOnMouseDown=function(e){var t;if(!this.isReadOnly&&(!this.isDrawPanelShow&&e))if(t=this.boxList.find(function(t){return t.id===e.currentTarget.id}),t)this.setCurrentBox(t),this.currentBox instanceof VK||this.currentBox instanceof eZ||this.startDragBox(e);else if(e.target.parentElement||e.target.parentElement.id){var i=this.boxList.find(function(t){return t.id===e.target.parentElement.id});i&&(this.setCurrentBox(i),e.target.style.cursor="text")}},e.prototype.setCurrentBox=function(e,t,i){var n=this;if(void 0===t&&(t=!0),void 0===i&&(i=!1),this.currentBox instanceof rZ&&this.currentBox!==e&&this.serviceManager.richTextService.clear(),this.currentBox=e,e&&document.getElementById(e.id))if(document.getElementById(e.id).onkeydown=function(e){e.ctrlKey&&67==e.keyCode&&e.stopPropagation()},document.getElementById(e.id).onkeyup=function(e){e.ctrlKey&&67==e.keyCode&&e.stopPropagation()},e instanceof iZ||this.initBoxEvent(e.element),e instanceof iZ?(this.currentBox=e,this.showSelectBox(e.element,!0)):e instanceof rZ?(this.serviceManager.richTextService.currentHtmlBox||this.serviceManager.richTextService.editor||(this.showSelectBox(e.element),this.showOperator(e.element)),document.getElementById(e.id).ondblclick=function(t){e.isReadOnly||(n.serviceManager.richTextService.setCurrentRichText(e,n.currentBox,n.scalePercent),n.hideOperator())}):(this.showSelectBox(e.element),this.showOperator(e.element)),window.event&&window.event.ctrlKey||i){if(e instanceof iZ)return;this.isCtrlPressedSub$.next(!0);var r=this.currentBoxList.indexOf(e);if(r>-1){var o,s=this.selectedBoxBorderList.find(function(t){return t.id===e.id+"-s"});if(s&&(s.childNodes.forEach(function(e){e.style.backgroundColor="#FFFFFF"}),s.style.display="none"),this.currentBoxList.splice(r,1),this.currentBoxList.length>=1)(o=new eZ).init(this.currentBoxList),this.currentBox=o,t&&this.onCtrlBoxesSelected.next(this.currentBoxList);else this.onCtrlBoxesSelected.next(null)}else this.currentBoxList.push(e),this.currentBox=e,t&&0===eI.currentEditGraphList.length?this.onBoxSelected.next(e):t&&this.onCtrlBoxesSelected.next(this.currentBoxList);if(this.currentBoxList.length>1)(o=new eZ).init(this.currentBoxList),this.currentBox=o,t&&0===eI.currentEditGraphList.length&&(this.onBoxSelected.next(e),this.onCtrlBoxesSelected.next(this.currentBoxList));this.serviceManager.richTextService.clear(),eI.currentBoxList=this.currentBoxList,this.isCtrlPressedSub$.next(!1)}else this.currentBox=e,this.currentBoxList=[],this.currentBoxList.push(e),eI.currentBoxList=this.currentBoxList,this.selectedBoxBorderList.forEach(function(t){t.childNodes.forEach(function(e){e.style.backgroundColor="#FFFFFF"}),t.id!=e.id+"-s"&&(t.style.display="none")}),t&&this.onBoxSelected.next(e);else this.hideOperator(),this.currentBoxList=[],this.selectedBoxBorderList.forEach(function(e){return e.style.display="none"}),this.currentBox},e.prototype.addImage=function(e,t,i){this.calMouseCurrentOffset();var n=document.createElement("div");n.id=Fm.newGuid(),n.className="html-box",n.style.top=this.scaleValue(t)+"px",n.style.left=this.scaleValue(e)+"px",this.initBoxEvent(n),this.containerDiv.appendChild(n);var r=new KK;r.name="图片",r.boxType="文本框",r.id=n.id,r.initHtml(n),r.init();var o=r.getInitialStyle();o.height="200px",o.width="200px",Object.assign(n.style,o);var s=r.cssPropList.find(function(e){return"type"===e.name});s&&(s.value=r.boxType);var a=r.cssPropList.find(function(e){return"background-image"===e.name});a&&(a.value=i);var l=r.cssPropList.find(function(e){return"background-size"===e.name});l&&(l.value="适应"),this.boxList.push(r),this.setCurrentBox(r),this.onBoxCreated.next(r)},e.prototype.startDragBox=function(e){if(null!=this.currentBox&&null!=this.currentBox.cssPropList){var t=this.currentBox.cssPropList.find(function(e){return"isReadOnly"===e.name});if(!t||1!=t.value){this.dragging=!0,this.currentBox.isOperating=!0;var i=document.getElementsByClassName("moving_box")[0];if(i&&(i.className=i.className.replace("moving_box","")),e.target.className+=" moving_box",this.currentBox instanceof VK)this.diffX=this.scaleValue(e.clientX)-this.currentBox.element.offsetLeft,this.diffY=this.scaleValue(e.clientY)-this.currentBox.element.offsetTop,this.movingBoxElement=this.currentBox.element,this.currentBoxTop=this.currentBox.cssPropList.find(function(e){return"top"===e.name}),this.currentBoxLeft=this.currentBox.cssPropList.find(function(e){return"left"===e.name}),this.currentBoxTop&&this.currentBoxLeft&&(this.beginDragValue={top:this.currentBoxTop.value,left:this.currentBoxLeft.value});else if(this.currentBox instanceof eZ){var n=this.currentBoxList[this.currentBoxList.length-1];this.diffX=this.scaleValue(e.clientX)-n.element.offsetLeft,this.diffY=this.scaleValue(e.clientY)-n.element.offsetTop,this.movingBoxElement=n.element,this.currentBoxTop=n.cssPropList.find(function(e){return"top"===e.name}),this.currentBoxLeft=n.cssPropList.find(function(e){return"left"===e.name}),this.currentBoxTop&&this.currentBoxLeft&&(this.beginDragValue={top:this.currentBoxTop.value,left:this.currentBoxLeft.value});var r=new Map;this.currentBoxList.forEach(function(e){var t=e.cssPropList.find(function(e){return"top"===e.name}),i=e.cssPropList.find(function(e){return"left"===e.name});if(t&&i){var n={top:t.value,left:i.value};r.set(e.id,n)}}),this.multiBeginValue=r}gZ.log(this.diffX,"-----",this.diffY)}}},e.prototype.endDragBox=function(){if(this.dragging){var e=void 0;this.currentBoxTop&&this.currentBoxLeft&&(e={top:this.currentBoxTop.value,left:this.currentBoxLeft.value}),this.operatorEnd.next({target:this.currentBox,beginvalue:this.beginDragValue,endvalue:e,multiBeginValue:this.multiBeginValue}),this.dragging=!1,this.currentBox.isOperating=!1}},e.prototype.deleteAll=function(){this.containerDiv&&(this.containerDiv.innerHTML="",this.onBoxSelected.next(null))},e.prototype.controlCurrentBox=function(e){var t=this,i=window.getSelection();if((null==i||""===i.toString().trim())&&null!=this.currentBox&&null!=this.currentBox.cssPropList){var n=this.currentBox.cssPropList.find(function(e){return"isReadOnly"===e.name});if(!n||!0!==n.value){this.calMouseCurrentOffset();if(this.dragging||this.resizing||this.scaling){if(this.dragging){if(this.movingBoxElement){var r=this.scaleValue(e.pageY)-this.diffY,o=this.scaleValue(e.pageX)-this.diffX;if(this.currentBox instanceof VK)this.currentBoxTop&&(this.currentBoxTop.value=r),this.currentBoxLeft&&(this.currentBoxLeft.value=o);else if(this.currentBox instanceof eZ){var s=0,a=0;this.currentBoxTop&&(s=r-this.currentBoxTop.value,this.currentBoxTop.value=r),this.currentBoxLeft&&(a=o-this.currentBoxLeft.value,this.currentBoxLeft.value=o);for(var l=0;l<this.currentBoxList.length-1;l++){var u=this.currentBoxList[l].cssPropList.find(function(e){return"top"===e.name}),c=this.currentBoxList[l].cssPropList.find(function(e){return"left"===e.name});u&&c&&(u.value=u.value+s,c.value=c.value+a),this.showSelectBox(this.currentBoxList[l].element)}}}}else if(this.resizing){if(this.currentBoxList.length>1)return;switch(this.tempDirection){case"WN":this.topHeightResizing(e),this.leftWidthResizing(e);break;case"W":this.leftWidthResizing(e);break;case"WS":this.leftWidthResizing(e),this.heightResizing(e);break;case"S":this.heightResizing(e);break;case"ES":this.widthResizing(e),this.heightResizing(e);break;case"E":this.widthResizing(e);break;case"N":this.topHeightResizing(e);break;case"EN":this.topHeightResizing(e),this.widthResizing(e)}}else if(this.scaling){var h=e.clientX-this.mouseStartX;if(this.currentBox instanceof VK){var p=this.currentBox.cssPropList.find(function(e){return"width"===e.name}),d=this.currentBox.cssPropList.find(function(e){return"height"===e.name});d.value=p.value*(d.value+h)/p.value,p.value+=h,this.mouseStartX=e.clientX}else this.currentBox instanceof eZ&&(this.currentBoxList.forEach(function(e){var i=e.cssPropList.find(function(e){return"width"===e.name}),n=e.cssPropList.find(function(e){return"height"===e.name});n.value=n.value*(i.value+h)/i.value,i.value+=h,t.showSelectBox(e.element)}),this.mouseStartX=e.clientX)}this.showSelectBox(this.movingBoxElement)}}}},e.prototype.resetRichToolbarPos=function(){var e,t=document.getElementById("rich-text-tool-container");t&&((null===(e=this.currentBoxTop)||void 0===e?void 0:e.value)<50?t.style.top="0":t.style.top="-35px")},e.prototype.saveImage=function(e){return yZ(this,void 0,void 0,function(){var t,i;return _Z(this,function(n){return t=e.target.files[0],(i=new FormData).append("type","other"),i.append("file",t),[2]})})},e}();function CZ(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function bZ(e={},t={}){Object.keys(t).forEach(i=>{void 0===e[i]?e[i]=t[i]:CZ(t[i])&&CZ(e[i])&&Object.keys(t[i]).length>0&&bZ(e[i],t[i])})}const wZ={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function xZ(){const e="undefined"!=typeof document?document:{};return bZ(e,wZ),e}const SZ={document:wZ,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function MZ(){const e="undefined"!=typeof window?window:{};return bZ(e,SZ),e}class PZ extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function EZ(e=[]){const t=[];return e.forEach(e=>{Array.isArray(e)?t.push(...EZ(e)):t.push(e)}),t}function LZ(e,t){return Array.prototype.filter.call(e,t)}function TZ(e){return e.toLowerCase().replace(/-(.)/g,(e,t)=>t.toUpperCase())}function OZ(e,t){const i=MZ(),n=xZ();let r=[];if(!t&&e instanceof PZ)return e;if(!e)return new PZ(r);if("string"==typeof e){const i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){let e="div";0===i.indexOf("<li")&&(e="ul"),0===i.indexOf("<tr")&&(e="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(e="tr"),0===i.indexOf("<tbody")&&(e="table"),0===i.indexOf("<option")&&(e="select");const t=n.createElement(e);t.innerHTML=i;for(let e=0;e<t.childNodes.length;e+=1)r.push(t.childNodes[e])}else r=function(e,t){if("string"!=typeof e)return[e];const i=[],n=t.querySelectorAll(e);for(let e=0;e<n.length;e+=1)i.push(n[e]);return i}(e.trim(),t||n)}else if(e.nodeType||e===i||e===n)r.push(e);else if(Array.isArray(e)){if(e instanceof PZ)return e;r=e}return new PZ(function(e){const t=[];for(let i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}(r))}function DZ(...e){const t=EZ(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.add(...t)}),this}function BZ(...e){const t=EZ(e.map(e=>e.split(" ")));return this.forEach(e=>{e.classList.remove(...t)}),this}function IZ(...e){const t=EZ(e.map(e=>e.split(" ")));return LZ(this,e=>t.filter(t=>e.classList.contains(t)).length>0).length>0}function RZ(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(e,t);else for(const t in e)this[i][t]=e[t],this[i].setAttribute(t,e[t]);return this}function NZ(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function kZ(){const e=this[0];if(!e)return;const t={};if(e.dataset)for(const i in e.dataset)t[i]=e.dataset[i];else for(let i=0;i<e.attributes.length;i+=1){const n=e.attributes[i];n.name.indexOf("data-")>=0&&(t[TZ(n.name.split("data-")[1])]=n.value)}for(const e in t)"false"===t[e]?t[e]=!1:"true"===t[e]?t[e]=!0:parseFloat(t[e])===1*t[e]&&(t[e]*=1);return t}function FZ(e){if(void 0===e){const e=this[0];if(!e)return;if(e.multiple&&"select"===e.nodeName.toLowerCase()){const t=[];for(let i=0;i<e.selectedOptions.length;i+=1)t.push(e.selectedOptions[i].value);return t}return e.value}for(let t=0;t<this.length;t+=1){const i=this[t];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(let t=0;t<i.options.length;t+=1)i.options[t].selected=e.indexOf(i.options[t].value)>=0;else i.value=e}return this}function HZ(...e){let[t,i,n,r]=e;function o(e){const t=e.target;if(!t)return;const r=e.target.dom7EventData||[];if(r.indexOf(e)<0&&r.unshift(e),OZ(t).is(i))n.apply(t,r);else{const e=OZ(t).parents();for(let t=0;t<e.length;t+=1)OZ(e[t]).is(i)&&n.apply(e[t],r)}}function s(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),n.apply(this,t)}"function"==typeof e[1]&&([t,n,r]=e,i=void 0),r||(r=!1);const a=t.split(" ");let l;for(let e=0;e<this.length;e+=1){const t=this[e];if(i)for(l=0;l<a.length;l+=1){const e=a[l];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:n,proxyListener:o}),t.addEventListener(e,o,r)}else for(l=0;l<a.length;l+=1){const e=a[l];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:n,proxyListener:s}),t.addEventListener(e,s,r)}}return this}function YZ(){const e=MZ();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function jZ(){const e=MZ();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function UZ(){if(this.length>0){const e=MZ(),t=xZ(),i=this[0],n=i.getBoundingClientRect(),r=t.body,o=i.clientTop||r.clientTop||0,s=i.clientLeft||r.clientLeft||0,a=i===e?e.scrollY:i.scrollTop,l=i===e?e.scrollX:i.scrollLeft;return{top:n.top+a-o,left:n.left+l-s}}return null}function GZ(){for(let e=0;e<this.length;e+=1)this[e].style.display="none";return this}function QZ(){const e=MZ();for(let t=0;t<this.length;t+=1){const i=this[t];"none"===i.style.display&&(i.style.display=""),"none"===e.getComputedStyle(i,null).getPropertyValue("display")&&(i.style.display="block")}return this}function zZ(e,t){const i=MZ();let n;if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(const t in e)this[n].style[t]=e[t];return this}if(this[0])return i.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function WZ(e){return e?(this.forEach((t,i)=>{e.apply(t,[t,i])}),this):this}function XZ(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function VZ(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this}function JZ(e){const t=MZ(),i=xZ(),n=this[0];let r,o;if(!n||void 0===e)return!1;if("string"==typeof e){if(n.matches)return n.matches(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);for(r=OZ(e),o=0;o<r.length;o+=1)if(r[o]===n)return!0;return!1}if(e===i)return n===i;if(e===t)return n===t;if(e.nodeType||e instanceof PZ){for(r=e.nodeType?[e]:e,o=0;o<r.length;o+=1)if(r[o]===n)return!0;return!1}return!1}function KZ(...e){let t;const i=xZ();for(let n=0;n<e.length;n+=1){t=e[n];for(let e=0;e<this.length;e+=1)if("string"==typeof t){const n=i.createElement("div");for(n.innerHTML=t;n.firstChild;)this[e].appendChild(n.firstChild)}else if(t instanceof PZ)for(let i=0;i<t.length;i+=1)this[e].appendChild(t[i]);else this[e].appendChild(t)}return this}function ZZ(e){const t=xZ();let i,n;for(i=0;i<this.length;i+=1)if("string"==typeof e){const r=t.createElement("div");for(r.innerHTML=e,n=r.childNodes.length-1;n>=0;n-=1)this[i].insertBefore(r.childNodes[n],this[i].childNodes[0])}else if(e instanceof PZ)for(n=0;n<e.length;n+=1)this[i].insertBefore(e[n],this[i].childNodes[0]);else this[i].insertBefore(e,this[i].childNodes[0]);return this}function qZ(e){const t=[];for(let i=0;i<this.length;i+=1)null!==this[i].parentNode&&(e?OZ(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return OZ(t)}function $Z(e){const t=[];for(let i=0;i<this.length;i+=1){let n=this[i].parentNode;for(;n;)e?OZ(n).is(e)&&t.push(n):t.push(n),n=n.parentNode}return OZ(t)}function eq(e){const t=[];for(let i=0;i<this.length;i+=1){const n=this[i].querySelectorAll(e);for(let e=0;e<n.length;e+=1)t.push(n[e])}return OZ(t)}function tq(e){const t=[];for(let i=0;i<this.length;i+=1){const n=this[i].children;for(let i=0;i<n.length;i+=1)e&&!OZ(n[i]).is(e)||t.push(n[i])}return OZ(t)}function iq(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function nq(){for(let e=0;e<this.length;e+=1){const t=this[e];if(1===t.nodeType){for(let e=0;e<t.childNodes.length;e+=1)t.childNodes[e].parentNode&&t.childNodes[e].parentNode.removeChild(t.childNodes[e]);t.textContent=""}}return this}OZ.fn=PZ.prototype;const rq="resize scroll".split(" ");function oq(e){return function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)rq.indexOf(e)<0&&(e in this[t]?this[t][e]():OZ(this[t]).trigger(e));return this}return this.on(e,...t)}}oq("click"),oq("blur");const sq=oq("focus"),aq=(oq("focusin"),oq("focusout"),oq("keyup"),oq("keydown"),oq("keypress"),oq("submit"),oq("change"),oq("mousedown"),oq("mousemove"),oq("mouseup"),oq("mouseenter"),oq("mouseleave"),oq("mouseout"),oq("mouseover"),oq("touchstart"),oq("touchend"),oq("touchmove"),oq("resize"),oq("scroll"),OZ);var lq=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s};function uq(e,t){for(var i="",n=(e.attr("style")||"").split(";"),r=n.length,o=0;o<r;o++){var s=n[o];if(s){var a=s.split(":");a[0].trim()===t&&(i=a[1].trim())}}return i}KZ&&(aq.fn.append=KZ),ZZ&&(aq.fn.prepend=ZZ),HZ&&(aq.fn.on=HZ),sq&&(aq.fn.focus=sq),RZ&&(aq.fn.attr=RZ),FZ&&(aq.fn.val=FZ),XZ&&(aq.fn.html=XZ),qZ&&(aq.fn.parent=qZ),IZ&&(aq.fn.hasClass=IZ),nq&&(aq.fn.empty=nq),zZ&&(aq.fn.css=zZ),DZ&&(aq.fn.addClass=DZ),BZ&&(aq.fn.removeClass=BZ),NZ&&(aq.fn.removeAttr=NZ),GZ&&(aq.fn.hide=GZ),QZ&&(aq.fn.show=QZ),UZ&&(aq.fn.offset=UZ),YZ&&(aq.fn.width=YZ),jZ&&(aq.fn.height=jZ),$Z&&(aq.fn.parents=$Z),JZ&&(aq.fn.is=JZ),kZ&&(aq.fn.dataset=kZ),VZ&&(aq.fn.text=VZ),tq&&(aq.fn.children=tq),iq&&(aq.fn.remove=iq),eq&&(aq.fn.find=eq),WZ&&(aq.fn.each=WZ);const cq=aq;var hq=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],pq=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},dq=function(){function e(){this.title="描边颜色",this.iconSvg='<svg t="1649915937162" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12814" width="64" height="64"><path d="M907.562667 907.562667h-230.4l-59.733334-159.829334H416.853333l-57.728 159.829334H128L431.317333 128h172.885334l303.317333 779.562667z m-196.992-46.933334h126.677333L570.965333 175.146667H465.066667L197.76 860.416h127.104l55.466667-159.872h271.104l59.221333 159.872zM614.4 604.842667H413.866667l99.370666-283.989334 101.12 283.946667z m-132.010667-47.189334h64l-33.109333-91.989333-30.848 91.989333z" p-id="12815"></path></svg>',this.tag="button",this.showDropPanel=!0,this.mark="textStrokeColor",this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,i=window.wangEditor.SlateEditor.marks(e);return i&&i[t]?i[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!pq(window.wangEditor.SlateEditor.nodes(e,{match:function(t){return"pre"===window.wangEditor.DomEditor.getNodeType(t)||!!window.wangEditor.SlateEditor.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var i=cq('<ul class="w-e-panel-content-color"></ul>');i.on("click","li",function(t){var i=t.target;if(null!=i&&(t.preventDefault(),null!=e.selection)){var n=cq(i).attr("data-value");if("0"===n)window.wangEditor.SlateEditor.removeMark(e,"textStrokeColor"),e.removeMark("textStrokeWidth");else{window.wangEditor.SlateEditor.addMark(e,"textStrokeColor",n);var r=window.wangEditor.SlateEditor.marks(e);r.textStrokeWidth&&"0px"!==r.textStrokeWidth||e.addMark("textStrokeWidth","1px")}}}),this.$content=i}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=this.getValue(e);e.getMenuConfig(t);hq.forEach(function(e){var t=cq('<div class="color-block" data-value="'.concat(e,'"></div>'));t.css("background-color",e);var i=cq('<li data-value="'.concat(e,'"></li>'));r===e&&i.addClass("active"),i.append(t),n.append(i)});var o=cq('\n <li data-value="0" class="clear">\n '.concat('<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>',"\n ").concat("无","\n </li>\n "));return n.prepend(o),n[0]},e}(),fq=function(){function e(){this.title="描边宽度",this.iconSvg="mk",this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"textStrokeWidth0px",text:"无"},{value:"textStrokeWidth1px",text:"1px"},{value:"textStrokeWidth2px",text:"2px"},{value:"textStrokeWidth3px",text:"3px"},{value:"textStrokeWidth4px",text:"4px"},{value:"textStrokeWidth5px",text:"5px"},{value:"textStrokeWidth6px",text:"6px"},{value:"textStrokeWidth7px",text:"7px"},{value:"textStrokeWidth8px",text:"8px"},{value:"textStrokeWidth9px",text:"9px"},{value:"textStrokeWidth10px",text:"10px"}],i=this.getValue(e);return t.forEach(function(e){e.value===i?e.selected=!0:delete e.selected}),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=window.wangEditor.SlateEditor.marks(e);if(t&&t.textStrokeWidth)return"textStrokeWidth".concat(t.textStrokeWidth);var i=function(e){var t=lq(window.wangEditor.SlateEditor.nodes(e,{match:function(e){if(e.textStrokeWidth)return e.textStrokeWidth.slice(0,-2)},universal:!0}),1),i=t[0];if(null==i)return"textStrokeWidth0px";var n=lq(i,1)[0].textStrokeWidth;return n.includes("px")?"textStrokeWidth".concat(n):"textStrokeWidth0px"}(e);return i||"textStrokeWidth0px"},e.prototype.isDisabled=function(e){return function(e){return null==e.selection||!lq(window.wangEditor.SlateEditor.nodes(e,{match:function(e){var t=window.wangEditor.DomEditor.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}(e)},e.prototype.exec=function(e,t){var i=t.toString().slice(15);"0"===i?e.removeMark("textStrokeWidth"):e.addMark("textStrokeWidth","".concat(i))},e}();function mq(e,t){null==e.data&&(e.data={});var i=e.data;null==i.style&&(i.style={}),Object.assign(i.style,t)}function gq(e,t){var i=e,n=i.textStrokeColor,r=i.textStrokeWidth,o=(i.textAlignLast,i.textAlign,t);return n&&mq(o,{"-webkit-text-stroke-color":n}),r&&mq(o,{"-webkit-text-stroke-width":r}),o}var yq={insertKeys:{index:5,keys:["text-stroke-color","text-stroke-width"]},toolbarKeys:["|","fontFamily","fontSize","color","bgColor","bold","italic","underline","through",{iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',key:"group-justify",menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"],title:"对齐"},{iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',key:"group-indent",menuKeys:["indent","delIndent"],title:"缩进"},"lineHeight","insertLink",{iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',key:"group-image",menuKeys:["uploadImage","insertImage"],title:"图片"},"divider","|"]},_q={};function Aq(e,t){if(!window.wangEditor.SlateText.isText(e))return t;var i,n,r=e.textStrokeColor,o=e.textStrokeWidth;if(!r&&!o)return t;0===aq("<div>".concat(t,"</div>")).children().filter(function(e){return"BR"!==e.tagName}).length?i=aq("<span>".concat(t,"</span>")):(i=aq(t),"span"!==((n=i).length?n[0].tagName.toLowerCase():"")&&(i=aq("<span>".concat(t,"</span>"))));return r&&i.css("-webkit-text-stroke-color",r),o&&i.css("-webkit-text-stroke-width",o),function(e){if(0===e.length)return"";return e[0].outerHTML}(i)}function vq(e,t){if(e=aq(e),!window.wangEditor.SlateText.isText(t))return t;var i=t,n=uq(e,"-webkit-text-stroke-color");n&&(i.textStrokeColor=n);var r=uq(e,"-webkit-text-stroke-width");r&&(i.textStrokeWidth=r);var o=uq(e,"-webkit-text-stroke");if(o){var s=o.split(" ")[0];i.textStrokeWidth=s,i.textStrokeColor=o.slice(s.length,o.length).trim()}return i}_q.placeholder="请输入内容",_q.onChange=function(e){},_q.hoverbarKeys={text:{menuKeys:[]}},_q.MENU_CONF={},_q.MENU_CONF.fontFamily={fontFamilyList:["宋体","仿宋","楷体","隶书","幼圆","黑体"]},_q.MENU_CONF.fontSize={fontSizeList:["12px","16px","18px","20px","24px","32px","40px","48px","56px","72px","88px","104px","120px","140px","160px","180px","200px"]},_q.MENU_CONF.lineHeight={lineHeightList:["1.0","1.5","2.0","2.5","3.0"]},_q.MENU_CONF.uploadImage={base64LimitSize:524288e3};var Cq=__webpack_require__(6763),bq=function(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s},wq=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},xq=function(){function e(e){if(this.prevChangeContent="",this.sceneEditSub$=new am,this.scalePercentCopy=1,this.scalePercentCopySub$=new am,this.beyondRange=!1,this.serviceManager=e,window.wangEditor){var t={key:"text-stroke-color",factory:function(){return new dq}};window.wangEditor.Boot.registerMenu(t);var i={key:"text-stroke-width",factory:function(){return new fq}};window.wangEditor.Boot.registerMenu(i),window.wangEditor.Boot.registerRenderStyle(gq),window.wangEditor.Boot.registerStyleToHtml(Aq),window.wangEditor.Boot.registerParseStyleHtml(vq)}}return e.prototype.setCurrentRichText=function(e,t,i){var n;if(e&&e!==this.currentHtmlBox){t&&t.element.innerHTML.includes("box_placeholder")&&(e.element.innerHTML=""),this.currentHtmlBox=e;var r=e.element.innerHTML;if(r.includes("scroll_box")){var o=this.parseElement(r),s=void 0;if(o.childNodes.length>0){s=o.childNodes[0].outerHTML;for(var a=1;a<o.childNodes.length;a++)s+=o.childNodes[a].outerHTML}r=s}var l=e.element.childNodes;for(a=l.length-1;a>=0;a--)e.element.removeChild(l.item(a));var u=document.createElement("div");u.id="rich-text-tool-container",e.element.appendChild(u);var c=this.updateToolPos(e.element,i,705);u.style.position="absolute",u.style.left=c.curleft,u.style.top=c.curtop,u.style.width="".concat(695,"px"),u.style.height="40px",u.style.transform="scale(".concat(1/i,")"),u.style.zIndex="20";var h=document.createElement("div");h.className="wt-editor-content-wrapper",e.element.appendChild(h),h.style.zIndex="19",h.onkeydown=function(e){e.stopPropagation()},h.onkeyup=function(e){e.stopPropagation()},this.init(u,h,r);var p=document.getElementsByClassName("w-e-bar")[0];this.beyondRange?p&&p.setAttribute("type","bottom"):p&&p.setAttribute("type",""),this.mouseStateUpdate(e),e.isReadOnly&&(null===(n=this.editor)||void 0===n||n.disable())}},e.prototype.modelScale=function(e){var t=document.getElementsByClassName("w-e-modal")[0];Cq.log("model",t),t.style.transform="scale(".concat(1/e,")")},e.prototype.updateToolPos=function(e,t,i){var n={curleft:"",curtop:""},r=parseFloat(e.style.top.slice(0,e.style.top.length-2)),o=parseFloat(e.style.left.slice(0,e.style.left.length-2)),s=(parseFloat(e.style.width.slice(0,e.style.width.length-2)),parseFloat(e.style.height.slice(0,e.style.height.length-2))),a=document.getElementById("richTextPanel"),l=parseFloat(a.style.width.slice(0,a.style.width.length-2)),u=parseFloat(a.style.height.slice(0,a.style.height.length-2));r<170?(this.beyondRange=!0,Cq.log("上边超出显示区域!"),n.curtop=s+50+"px"):r>u-100?(this.beyondRange=!1,Cq.log("下边超出显示区域!"),n.curtop=u-100+"px"):(this.beyondRange=!1,n.curtop=-40/t/2-10/t-20+"px");var c=(i-i*t)/(2*t);return o<0?(Cq.log("左边超出显示区域!"),n.curleft=Math.abs(o)+c+"px"):o>l-i/t?(Cq.log("右边超出显示区域!"),n.curleft=l-i-o-c+"px",Cq.log("curValue.curleft ",n.curleft)):n.curleft="".concat(c,"px"),n},e.prototype.init=function(e,t,i){var n=this;if(window.wangEditor){var r=window.wangEditor.createEditor({html:i,selector:t,config:Object.assign(_q,{onChange:function(e){var t,i;if(e.getText()){var r=e.getHtml();if(r&&n.prevChangeContent){if(n.prevChangeContent!==r){n.sceneEditSub$.next(!0),n.prevChangeContent=r;var o=window.wangEditor.SlateEditor.nodes(e,{match:function(e){return"image"===e.type},universal:!0});if(null!==o){var s=function(e){var t=bq(e,2),i=t[0];t[1];Cq.log("粘贴或修改了图片节点------",i),setTimeout(function(){var e,t=n.editor.toDOMNode(i),r=null===(e=n.editor.getEditableContainer())||void 0===e?void 0:e.querySelector(".w-e-scroll");if(t&&r){var o=t.getBoundingClientRect(),s=r.getBoundingClientRect();o.top>s.top&&o.bottom<s.bottom||t.scrollIntoView(!1)}})};try{for(var a=wq(o),l=a.next();!l.done;l=a.next()){s(l.value)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(t)throw t.error}}}}}else n.prevChangeContent=r}}}),mode:"simple"}),o=(window.wangEditor.createToolbar({editor:r,selector:e,config:yq,mode:"default"}),r.hidePanelOrModal);return r.hidePanelOrModal=function(){"isClickOnColorPickPanel"!==window.wangeditorClickTarget&&o();var e=document.querySelectorAll(".w-e-bar .show-item-menus-dy");e&&e.length&&e.forEach(function(e){e.classList.remove("show-item-menus-dy")})},setTimeout(function(){var e=document.querySelectorAll(".w-e-bar .w-e-bar-item");e&&e.length&&e.forEach(function(e,t){if(e.className&&e.className.includes("w-e-bar-item-group")){var i=void 0;switch(t){case 10:i="对齐方式";break;case 15:i="缩进设置";break;case 20:i="上传图片"}e.setAttribute("data-tooltip",i),e.classList.add("w-e-menu-tooltip-v5"),e.addEventListener("click",function(){var t=document.querySelectorAll(".w-e-bar .w-e-select-list");t&&t.length&&t.forEach(function(e){e.style.display="none"}),e.classList.add("show-item-menus-dy")})}e.addEventListener("mouseleave",function(e){var t=e.currentTarget,i=t.querySelector(".w-e-select-list");!i&&((i=t.querySelector(".w-e-bar-item-menus-container"))&&i.parentNode.classList.contains("show-item-menus-dy")&&i.parentNode.classList.remove("show-item-menus-dy"),i)||(i||(i=t.querySelector(".w-e-drop-panel")),i&&(i.style.display="none"))})})},100),this.editor=r,setTimeout(function(){var e=window.wangEditor.SlateEditor.end(r,[]);n.editor.select(e)}),this.editor.on("modalOrPanelShow",function(e){var t;if("modal"===e.type){document.documentElement.style.setProperty("--rich-text-zdy-modal-transform-value","0px, 0px");var i,r=e.$elem[0],o=r.textContent,s="",a="";if(o.includes("链接文本")||o.includes("链接地址")?s="linkModal":o.includes("图片地址")&&(s="picModal"),!o)return;var l=null===(t=window.wangEditor.DomEditor.getToolbar(n.editor))||void 0===t?void 0:t.$toolbar[0];if(!l)return;if(i="bottom"===l.getAttribute("type")?"bottom":"top","linkModal"===s?a=l.querySelector('.w-e-menu-tooltip-v5[data-tooltip="超链接"]'):"picModal"===s&&(a=l.querySelector('.w-e-menu-tooltip-v5[data-tooltip="上传图片"]')),!a)return;if(r.classList.add("rich-text-modal-position-set"),"bottom"===i){var u=l.getBoundingClientRect().top-n.editor.getEditableContainer().getBoundingClientRect().top-r.getBoundingClientRect().height,c=a.getBoundingClientRect().right-r.getBoundingClientRect().right;document.documentElement.style.setProperty("--rich-text-zdy-modal-transform-value","".concat(c/window.scalePercent,"px, ").concat(u/window.scalePercent,"px"))}else if("top"===i){u=l.getBoundingClientRect().bottom-n.editor.getEditableContainer().getBoundingClientRect().top,c=a.getBoundingClientRect().right-r.getBoundingClientRect().right;document.documentElement.style.setProperty("--rich-text-zdy-modal-transform-value","".concat(c/window.scalePercent,"px, ").concat(u/window.scalePercent,"px"))}}}),this.editor}},e.prototype.clear=function(){if(this.editor||!this.currentHtmlBox)if(!this.editor||this.currentHtmlBox){if(this.editor&&this.currentHtmlBox){var e=this.editor.getHtml();this.editor.clear(),this.prevChangeContent="";for(var t,i=this.currentHtmlBox.element.childNodes,n=i.length-1;n>=0;n--)this.currentHtmlBox.element.removeChild(i.item(n));if((t=document.createElement("div")).className="scroll_box",t.style.height="100%",t.style.overflowY="auto",t.style.overflowX="hidden",t.style.boxSizing="content-box",e.includes("scroll_box"))this.currentHtmlBox.element.innerHTML=e;else{t.innerHTML=e;var r=this.stringIze(t);this.currentHtmlBox.element.innerHTML=r}"\n"===this.currentHtmlBox.element.innerText&&(this.currentHtmlBox.element.innerHTML='<label class="box_placeholder" style="color:rgba(255,255,255,0.65);font-size:32px; ">单击选中富文本<br>双击编辑文本内容...</label>'),this.currentHtmlBox.element.style.cursor="default",this.currentHtmlBox=void 0,this.editor=void 0}}else this.editor=void 0;else this.currentHtmlBox=void 0},e.prototype.stringIze=function(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML},e.prototype.parseElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},e.prototype.setTooltip=function(){this.serviceManager.advancedHtmlService.isHtmlEditContent=!1},e.prototype.disable=function(){this.editor&&this.currentHtmlBox&&this.editor.disable()},e.prototype.enable=function(){this.editor&&this.currentHtmlBox&&this.editor.enable()},e.prototype.mouseStateUpdate=function(e){e.element&&(e.element.style.cursor="text")},e.prototype.backColorUpdate=function(e){var t,i,n=e.cssPropList.find(function(e){return"background-color"===e.name}),r=e.cssPropList.find(function(e){return"background-opacity"===e.name}),o=document.getElementsByClassName("w-e-text-container")[0],s=o.firstElementChild.childNodes;if(o&&(n.value&&!r.value&&(o.style.backgroundColor=n.value),n.value&&r.value)){var a=this.hexToRgba(n.value,r.value);if(a){o.style.backgroundColor=a;try{for(var l=wq(s),u=l.next();!u.done;u=l.next()){var c=u.value;"p"===c.localName&&(c.style.backgroundColor="transparent")}}catch(e){t={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(t)throw t.error}}}}},e.prototype.hexToRgba=function(e,t){return"rgba("+parseInt("0x"+e.slice(1,3))+","+parseInt("0x"+e.slice(3,5))+","+parseInt("0x"+e.slice(5,7))+","+t+")"},e.prototype.rgbToRgba=function(e,t){var i=e.match(/[\d.]+/g);if(i.length>=3){return"rgba("+i[0]+","+i[1]+","+i[2]+","+t+")"}Cq.error("颜色格式不正确!")},e}(),Sq=__webpack_require__(6763),Mq=function(){function e(t){var i=this;this.boardOffsetX="100",this.boardOffsetY="100",this.wordNumberLimit=15,this.boardMoveZIndex=1,this.graphBoardStyle=[{id:1,pic:"/assets/images/label/label1.png",line:{"border-bottom":"3px solid rgba(255, 255, 255, 0.8)","margin-top":"10px"},boardLine:"3px solid rgba(255, 255, 255, 0.8)",boardPic:"/assets/images/label/board1.png",wordNumber:4},{id:2,pic:"/assets/images/label/label2.png",line:{"border-bottom":"3px dotted rgba(255, 229, 14, 0.8)","margin-top":"10px"},boardLine:"3px dotted rgba(255, 229, 14, 0.8)",boardPic:"/assets/images/label/board2.png",wordNumber:4},{id:3,pic:"/assets/images/label/label3.png",line:{"border-bottom":"3px dashed rgba(13, 217, 168, 0.8)","margin-top":"10px"},boardLine:"3px dashed rgba(13, 217, 168, 0.8)",boardPic:"/assets/images/label/board3.png",wordNumber:4},{id:4,pic:"/assets/images/label/label4.png",line:{"border-bottom":"3px solid rgba(255, 255, 255, 0.8)","margin-top":"10px"},boardLine:"3px solid rgba(255, 255, 255, 0.8)",boardPic:"/assets/images/label/board4.png",wordNumber:4},{id:5,pic:"/assets/images/label/label5.png",line:{"border-bottom":"3px dotted rgba(0, 168, 133, 0.8)","margin-top":"10px"},boardLine:"3px dotted rgba(0, 168, 133, 0.8)",boardPic:"/assets/images/label/board5.png",wordNumber:4},{id:6,pic:"/assets/images/label/label6.png",line:{"border-bottom":"3px dashed rgba(255, 255, 255, 0.8)","margin-top":"9px"},boardLine:"3px dashed rgba(255, 255, 255, 0.8)",boardPic:"/assets/images/label/board6.png",wordNumber:8},{id:7,pic:"/assets/images/label/label7.png",line:{"border-bottom":"3px solid rgba(0, 136, 240, 0.8)","margin-top":"10px"},boardLine:"3px solid rgba(0, 136, 240, 0.8)",boardPic:"/assets/images/label/board7.png",wordNumber:8},{id:8,pic:"/assets/images/label/label8.png",line:{"border-bottom":"3px dotted rgba(5, 167, 254, 0.8)","margin-top":"10px"},boardLine:"3px dotted rgba(5, 167, 254, 0.8)",boardPic:"/assets/images/label/board8.png",wordNumber:8},{id:9,pic:"/assets/images/label/label9.png",line:{"border-bottom":"3px dashed rgba(245, 230, 4, 0.8)","margin-top":"10px"},boardLine:"3px dashed rgba(245, 230, 4, 0.8)",boardPic:"/assets/images/label/board9.png",wordNumber:8},{id:10,pic:"/assets/images/label/label10.png",line:{"border-bottom":"3px solid rgba(169, 16, 0, 0.8)","margin-top":"10px"},boardLine:"3px solid rgba(169, 16, 0, 0.8)",boardPic:"/assets/images/label/board10.png",wordNumber:8},{id:11,pic:"/assets/images/label/label11.png",line:{"border-bottom":"3px dotted rgba(255, 255, 255, 0.8)","margin-top":"10px"},boardLine:"3px dotted rgba(255, 255, 255, 0.8)",boardPic:"/assets/images/label/board11.png",wordNumber:15},{id:12,pic:"/assets/images/label/label12.png",line:{"border-bottom":"3px dashed rgba(249, 74, 143, 0.8)","margin-top":"10px"},boardLine:"3px dashed rgba(249, 74, 143, 0.8)",boardPic:"/assets/images/label/board12.png",wordNumber:15},{id:13,pic:"/assets/images/label/label13.png",line:{"border-bottom":"3px solid rgba(15, 126, 75, 0.8)","margin-top":"10px"},boardLine:"3px solid rgba(15, 126, 75, 0.8)",boardPic:"/assets/images/label/board13.png",wordNumber:15},{id:14,pic:"/assets/images/label/label14.png",line:{"border-bottom":"3px dotted rgba(255, 255, 255, 0.8)","margin-top":"10px"},boardLine:"3px dotted rgba(255, 255, 255, 0.8)",boardPic:"/assets/images/label/board14.png",wordNumber:15},{id:15,pic:"/assets/images/label/label15.png",line:{"border-bottom":"3px dashed rgba(241, 72, 113, 0.8)","margin-top":"10px"},boardLine:"3px dashed rgba(241, 72, 113, 0.8)",boardPic:"/assets/images/label/board15.png",wordNumber:15}],this.boardGraphMap={},this.maxLengthTextSub$=new am,this.changeBoardStyleUndoRedoSub$=new am,this.isPrevent=!1,this.needDetchanged$=new am,this.both2DAnd3DSelectChanged=!1,this.serviceManager=t,e.instance=this,this.serviceManager.plotService.onSelectChanged.subscribe(function(e){i.propertyItem=e}),this.serviceManager.htmlDrawService.onBoxSelected.subscribe(function(e){i.propertyItem=e,"3D"!==i.serviceManager.plotService.isCrossSelectedNodes2Or3||i.serviceManager.animationService.isMultiSelect||i.serviceManager.plotService.clearCrossSelectedNodes$.next(null)}),this.serviceManager.htmlDrawService.onCtrlBoxesSelected.subscribe(function(e){i.propertyItem=e}),this.serviceManager.drawbigfileService.isRefresh$.subscribe(function(e){i.propertyItem=e,i.propertyType="bigfile"}),this.serviceManager.musicService.chooseMusic$.subscribe(function(e){i.propertyItem=e}),this.maxLengthTextSub$.pipe(Yx(2e3)).subscribe(function(){Sq.warn("输入内容不能超过".concat(i.wordNumberLimit,"个字"))})}return Object.defineProperty(e.prototype,"propertyItem",{get:function(){return this._propertyItem},set:function(e){this.isPrevent||(this.isPrevent=!0,this._propertyItem instanceof MX||this._propertyItem instanceof TX?this._propertyItem.removePathLine():this._propertyItem instanceof Array&&this._propertyItem.forEach(function(e){(e instanceof MX||e instanceof TX)&&e.removePathLine()}),e instanceof MX||e instanceof TX?e.createPathLine():e instanceof Array&&e[0]instanceof zR&&e.forEach(function(e){(e instanceof MX||e instanceof TX)&&e.createPathLine()}),this._propertyItem=e,e instanceof qm||e instanceof Array&&e[0]instanceof qm?(this.propertyType="Graph",this.serviceManager.layerService.isLayerCtrlPressed||this.serviceManager.plotService.gm.editor.isCtrlPressed||this.both2DAnd3DSelectChanged||this.serviceManager.plotService.showFrameSelection||(this.serviceManager.htmlDrawService.setCurrentBox(null,!1),this.serviceManager.geojsonService.currentGeojson=null),this.serviceManager.animationService.selectTimeLine=null):e instanceof VK||e instanceof Array&&e[0]instanceof VK?(this.propertyType="HtmlBox",this.serviceManager.layerService.isLayerCtrlPressed||this.serviceManager.plotService.gm.editor.isCtrlPressed||this.both2DAnd3DSelectChanged||this.serviceManager.plotService.showFrameSelection||(this.serviceManager.plotService.changeSelect(null),this.serviceManager.geojsonService.currentGeojson=null),this.serviceManager.animationService.selectTimeLine=null):e instanceof hO?(this.propertyType="Geojson",this.serviceManager.layerService.isLayerCtrlPressed||this.serviceManager.plotService.gm.editor.isCtrlPressed||this.both2DAnd3DSelectChanged||this.serviceManager.plotService.showFrameSelection||(this.serviceManager.htmlDrawService.setCurrentBox(null,!1),this.serviceManager.plotService.changeSelect(null)),this.serviceManager.animationService.selectTimeLine=null):e instanceof XB||e instanceof Array&&e[0]instanceof XB?(this.propertyType="Music",this.serviceManager.layerService.isLayerCtrlPressed||this.serviceManager.plotService.gm.editor.isCtrlPressed||this.both2DAnd3DSelectChanged||this.serviceManager.plotService.showFrameSelection||(this.serviceManager.htmlDrawService.setCurrentBox(null,!1),this.serviceManager.geojsonService.currentGeojson=null),this.serviceManager.animationService.selectTimeLine=null):e instanceof LT||e instanceof Array&&e[0]instanceof LT?(this.propertyType="GpLayer",this.serviceManager.layerService.isLayerCtrlPressed||this.serviceManager.plotService.gm.editor.isCtrlPressed||this.both2DAnd3DSelectChanged||this.serviceManager.plotService.showFrameSelection||(this.serviceManager.htmlDrawService.setCurrentBox(null,!1),this.serviceManager.geojsonService.currentGeojson=null),this.serviceManager.animationService.selectTimeLine=null):null!=e?(this.serviceManager.htmlDrawService.setCurrentBox(null,!1),this.serviceManager.plotService.changeSelect(null)):(this.propertyType="",!this.serviceManager.plotService.gm||this.serviceManager.plotService.gm.editor.isCtrlPressed||this.serviceManager.layerService.isLayerCtrlPressed||this.both2DAnd3DSelectChanged||this.serviceManager.plotService.showFrameSelection||(this.serviceManager.htmlDrawService.setCurrentBox(null,!1),this.serviceManager.plotService.changeSelect(null),this.serviceManager.musicService.clearMultiSelectMusics()),this.serviceManager.animationService.selectTimeLine=null),e instanceof zR?this.serviceManager.animationService.itemAnimation=[]:this.serviceManager.animationService.initAnimationList(e),this.isPrevent=!1)},enumerable:!1,configurable:!0}),e.prototype.setselectItem=function(e){this.isPrevent=!0,this.serviceManager.htmlDrawService.setCurrentBox(null,!1),this.serviceManager.animationService.selectTimeLine=null,this.serviceManager.geojsonService.currentGeojson=null,this.serviceManager.plotService.changeSelect(null),this.isPrevent=!1,e instanceof qm||e instanceof Array&&e[0]instanceof qm?this.serviceManager.plotService.changeSelect(e):e instanceof VK?this.serviceManager.htmlDrawService.setCurrentBox(e,!1):e instanceof hO?this.serviceManager.geojsonService.currentGeojson=e:this.serviceManager.animationService.selectTimeLine=e},e.prototype.changeGraphBoardShow=function(e,t){var i=this.serviceManager.plotService.gm.editor.currentEditGraphList;if(i.length>1)Sq.warn("只可同时为一个元素".concat(e?"添加":"取消","标牌"));else{t.o.graphBoardShow=e;var n=i[0].graphBoardId?i[0].graphBoardId:i[0].id;t.o.graphBoardShow?this.addGraphBoard(n):this.removeGraphBoard(n)}},e.prototype.changeGraphBoardStyle=function(e,t){var i=this.serviceManager.plotService.gm.editor.currentEditGraphList;if(i.length>1)Sq.warn("只可为一个元素添加标牌");else if(t.o.graphBoardShow){var n=t.o.graphBoardStyle;t.o.graphBoardStyle=e.id,t.o.graphBoardPic=e.boardPic;var r=this.selectEntityByBoardId(i[0].id).position.getValue(),o=this.getBoardDivByModel(i),s=document.querySelector("#gp-o-board-wrapper-".concat(o));s?this.setBoardStyle(s,e,o):this.createGraphBoard(e,o,t.o.graphBoardLinePosition,r),i[0].graphBoardId=o,this.changeBoardStyleUndoRedoSub$.next({o:t.o,meta:t.meta,oldValue:n}),Sq.log("已切换成标牌".concat(e.id))}},e.prototype.setBoardStyle=function(e,t,i){var n;this.wordNumberLimit=t.wordNumber,e.style.backgroundImage="url(".concat(t.boardPic,")");var r,o=e.querySelector("#board-line-".concat(i)),s=e.querySelector("#board-input-".concat(i));switch(o.style.borderBottom=t.boardLine,t.id){case 1:r="138px",e.style.width="264px",e.style.height="60px",e.style.padding="11px 25px 10px 25px",s.placeholder="四字标题",s.style.width=r,s.style.fontSize="32px",s.dataset.inputnocontentwidth=r;break;case 2:r="138px",e.style.width="239px",e.style.height="84px",e.style.padding="19px 25px 10px 25px",s.placeholder="四字标题",s.style.width=r,s.style.fontSize="32px",s.dataset.inputnocontentwidth=r;break;case 3:r="138px",e.style.width="244px",e.style.height="68px",e.style.padding="16px 25px 10px 25px",s.placeholder="四字标题",s.style.width=r,s.style.fontSize="32px",s.dataset.inputnocontentwidth=r;break;case 4:r="138px",e.style.width="216px",e.style.height="100px",e.style.padding="32px 25px 10px 25px",s.placeholder="四字标题",s.style.width=r,s.style.fontSize="32px",s.dataset.inputnocontentwidth=r;break;case 5:r="138px",e.style.width="250px",e.style.height="98px",e.style.padding="22px 25px 10px 25px",s.placeholder="四字标题",s.style.width=r,s.style.fontSize="32px",s.dataset.inputnocontentwidth=r;break;case 6:r="215px",e.style.width="291px",e.style.height="87px",e.style.padding="12px 25px 10px 25px",s.placeholder="最多可输入八个字",s.style.fontSize="24px",s.style.width=r,s.dataset.inputnocontentwidth=r;break;case 7:r="215px",e.style.width="283px",e.style.height="65px",e.style.padding="18px 25px 10px 25px",s.placeholder="最多可输入八个字",s.style.fontSize="24px",s.style.width=r,s.dataset.inputnocontentwidth=r;break;case 8:r="215px",e.style.width="376px",e.style.height="77px",e.style.padding="25px 25px 10px 25px",s.placeholder="最多可输入八个字",s.style.fontSize="24px",s.style.width=r,s.dataset.inputnocontentwidth=r;break;case 9:r="215px",e.style.width="297px",e.style.height="78px",e.style.padding="25px 25px 10px 25px",s.placeholder="最多可输入八个字",s.style.fontSize="24px",s.style.width=r,s.dataset.inputnocontentwidth=r;break;case 10:r="215px",e.style.width="309px",e.style.height="65px",e.style.padding="14px 25px 10px 25px",s.placeholder="最多可输入八个字",s.style.fontSize="24px",s.style.width=r,s.dataset.inputnocontentwidth=r;break;case 11:r="345px",e.style.width="421px",e.style.height="73px",e.style.padding="26px 25px 10px 25px",s.placeholder="此处最多可输入十五个文字内容...",s.style.fontSize="20px",s.style.width=r,s.dataset.inputnocontentwidth=r;break;case 12:r="345px",e.style.width="402px",e.style.height="62px",e.style.padding="20px 5px 10px 15px",s.placeholder="此处最多可输入十五个文字内容...",s.style.fontSize="20px",s.style.width=r,s.dataset.inputnocontentwidth=r;break;case 13:r="345px",e.style.width="410px",e.style.height="61px",e.style.padding="20px 5px 10px 45px",s.placeholder="此处最多可输入十五个文字内容...",s.style.fontSize="20px",s.style.width=r,s.dataset.inputnocontentwidth=r;break;case 14:r="345px",e.style.width="478px",e.style.height="79px",e.style.padding="18px 5px 10px 55px",s.placeholder="此处最多可输入十五个文字内容...",s.style.fontSize="20px",s.style.width=r,s.dataset.inputnocontentwidth=r;break;case 15:r="345px",e.style.width="383px",e.style.height="64px",e.style.padding="22px 25px 10px 25px",s.placeholder="此处最多可输入十五个文字内容...",s.style.fontSize="20px",s.style.width=r,s.dataset.inputnocontentwidth=r}s.className="board-input-style-".concat(t.id),s.style.letterSpacing="3px",s.setAttribute("maxlength","".concat(this.wordNumberLimit)),s.value&&s.value.length>this.wordNumberLimit&&(s.value=s.value.slice(0,this.wordNumberLimit)),this.computeInputWidth(s),this.boardGraphMap[i]=null===(n=document.querySelector("#gp-o-board-wrapper-".concat(i)))||void 0===n?void 0:n.outerHTML},e.prototype.createGraphBoard=function(e,t,i,n){var r,o=Cesium.SceneTransforms.wgs84ToWindowCoordinates(this.serviceManager.viewer.scene,n),s=document.createElement("div");s.id="gp-o-board-wrapper-".concat(t),s.style.position="absolute",s.dataset.offsetX=this.boardOffsetX,s.dataset.offsetY=this.boardOffsetY,s.style.backgroundSize="100% 100%",s.style.backgroundRepeat="no-repeat",s.style.padding="10px",s.style.textAlign="center";var a=document.createElement("input");a.type="text",a.autocomplete="off",a.id="board-input-".concat(t),a.style.outline="none",a.style.border="none",a.style.padding="0px",a.style.margin="0px",a.dataset.iszhcn="false",this.addEventToBoard(s,a);var l=document.createElement("div");l.id="board-line-".concat(t),l.style.height="0px",l.style.position="absolute",l.contentEditable="false",this.setBoardPosition(o,i,s,l),s.appendChild(a),s.appendChild(l),null===(r=document.querySelector("#cesium-div"))||void 0===r||r.appendChild(s),this.setBoardStyle(s,e,t),this.setGraphBoardRelation(t,s.id)},e.prototype.setBoardPosition=function(e,t,i,n){if(null!==i.dataset.offsetX&&void 0!==i.dataset.offsetX||(i.dataset.offsetX=this.boardOffsetX),null!==i.dataset.offsetY&&void 0!==i.dataset.offsetY||(i.dataset.offsetY=this.boardOffsetY),i.dataset.linePosition=t,"leftTop"===t){i.dataset.offsetX="-100",i.dataset.offsetY="-100",i.style.top="".concat(Math.ceil(e.y)+parseInt(i.dataset.offsetX),"px"),i.style.left="".concat(Math.ceil(e.x)+parseInt(i.dataset.offsetY),"px"),i.style.transform="translate(-100%, -100%)";var r=Math.floor(Math.sqrt(Math.pow(parseInt(i.dataset.offsetX),2)+Math.pow(parseInt(i.dataset.offsetY),2)));n.style.width="".concat(r,"px"),n.style.top="100%",n.style.left="100%",n.style.transformOrigin="left"}else if("leftBottom"===t){i.dataset.offsetX="100",i.dataset.offsetY="-100",i.style.top="".concat(Math.ceil(e.y)+parseInt(this.boardOffsetY),"px"),i.style.left="".concat(Math.ceil(e.x)+parseInt(this.boardOffsetX),"px");r=Math.floor(Math.sqrt(Math.pow(parseInt(i.dataset.offsetX),2)+Math.pow(parseInt(i.dataset.offsetY),2)));i.style.transform="translate(-100%, 0%)",n.style.width="".concat(r,"px"),n.style.top="0%",n.style.left="100%",n.style.transformOrigin="left"}else if("rightTop"===t){i.dataset.offsetX="-100",i.dataset.offsetY="100",i.style.top="".concat(Math.ceil(e.y)+parseInt(this.boardOffsetY),"px"),i.style.left="".concat(Math.ceil(e.x)+parseInt(this.boardOffsetX),"px");r=Math.floor(Math.sqrt(Math.pow(parseInt(i.dataset.offsetX),2)+Math.pow(parseInt(i.dataset.offsetY),2)));i.style.transform="translate(0%, -100%)",n.style.width="".concat(r,"px"),n.style.top="100%",n.style.left="0%",n.style.transformOrigin="left"}else if("rightBottom"===t){i.dataset.offsetX="100",i.dataset.offsetY="100",i.style.top="".concat(Math.ceil(e.y)+parseInt(this.boardOffsetY),"px"),i.style.left="".concat(Math.ceil(e.x)+parseInt(this.boardOffsetX),"px");r=Math.floor(Math.sqrt(Math.pow(parseInt(i.dataset.offsetX),2)+Math.pow(parseInt(i.dataset.offsetY),2)));i.style.transform="translate(0%, 0%)",n.style.width="".concat(r,"px"),n.style.top="0px",n.style.left="0px",n.style.transformOrigin="left"}},e.prototype.changeBoardPosition=function(e){var t=this.serviceManager.plotService.gm.editor.currentEditGraphList,i=this.getBoardDivByModel(t),n=document.querySelector("#gp-o-board-wrapper-".concat(i));if(n){var r=document.querySelector("#board-line-".concat(i)),o=this.selectEntityByBoardId(t[0].id).position.getValue(),s=Cesium.SceneTransforms.wgs84ToWindowCoordinates(this.serviceManager.viewer.scene,o);r&&this.setBoardPosition(s,e,n,r)}},e.prototype.setGraphBoardRelation=function(e,t){var i;this.boardGraphMap[e]||(this.selectEntityByBoardId(e).graph.graphBoardId=e);this.boardGraphMap[e]=null===(i=document.querySelector("#".concat(t)))||void 0===i?void 0:i.outerHTML},e.prototype.removeGraphBoard=function(e){var t,i=document.querySelector("#gp-o-board-wrapper-".concat(e));i&&(null===(t=document.querySelector("#cesium-div"))||void 0===t||t.removeChild(i))},e.prototype.addGraphBoard=function(e){var t,i,n=this.boardGraphMap[e];if(n)if("string"==typeof n){var r=document.createElement("div");r.innerHTML=n,null===(t=document.querySelector("#cesium-div"))||void 0===t||t.appendChild(r.childNodes[0])}else null===(i=document.querySelector("#cesium-div"))||void 0===i||i.appendChild(n);else{var o=this.serviceManager.plotService.gm.editor.currentEditGraphList;this.changeGraphBoardStyle(this.graphBoardStyle[0],{o:o[0]})}var s=document.querySelector("#gp-o-board-wrapper-".concat(e)),a=document.querySelector("#board-input-".concat(e));if(s&&a&&this.addEventToBoard(s,a),s){var l=parseInt(s.style.zIndex);this.boardMoveZIndex<l&&(this.boardMoveZIndex=l+1)}},e.prototype.getBoardDivByModel=function(e){var t=e[0].graphBoardId;return t||(t=e[0].id),t},e.prototype.addEventToBoard=function(e,t){var i,n=this;e.onmousedown=function(r){n.serviceManager.plotService.gm.editor.isReadOnly?i=null:(i=r,e.style.zIndex="".concat(n.boardMoveZIndex++),setTimeout(function(){i&&(e.style.cursor="move",t.style.cursor="move")},300))},e.onmouseup=function(n){i=null,e.style.cursor="default",t.style.cursor="default"},e.onmouseleave=function(n){i&&(i=null,e.style.cursor="default",t.style.cursor="default")},e.onmousemove=function(t){i&&e.dataset.offsetX&&e.dataset.offsetY&&(e.dataset.offsetX="".concat(parseInt(e.dataset.offsetX)-i.y+t.y),e.dataset.offsetY="".concat(parseInt(e.dataset.offsetY)-i.x+t.x),i=t)},e.onclick=function(t){if(!n.serviceManager.plotService.gm.editor.isReadOnly){var i=e.id.slice(19);n.serviceManager.plotService.gm.editor.nextMode("select",n.selectEntityByBoardId(i))}},t.addEventListener("compositionstart",function(e){t.dataset.iszhcn="true"}),t.addEventListener("compositionend",function(e){e.target.value.length>=n.wordNumberLimit&&n.maxLengthTextSub$.next(null),t.dataset.iszhcn="false"}),t.oninput=function(e){var i=e.key;"false"===t.dataset.iszhcn&&"delete"!==i&&"backspace"!==i&&"arrowup"!==i&&"arrowleft"!==i&&"arrowdown"!==i&&"arrowright"!==i&&e.target.value.length>=n.wordNumberLimit&&n.maxLengthTextSub$.next(null),n.computeInputWidth(t)}},e.prototype.selectEntityByBoardId=function(e){var t,i,n=this.serviceManager.plotService.gm.editor.currentEditGraphList;if(e&&1===n.length&&n[0].graphBoardId===e)return n[0].ent;for(var r=this.serviceManager.viewer.entities._entities._array,o=0;o<r.length;o++)if((null===(i=null===(t=r[o])||void 0===t?void 0:t.graph)||void 0===i?void 0:i.graphBoardId)===e)return r[o];var s=this.serviceManager.viewer.entities.getById(e);return s||null},e.prototype.computeInputWidth=function(e){if(e.value){var t=e.value,i=document.createElement("span");i.innerText=t,i.style.fontSize=e.style.fontSize,i.style.letterSpacing=e.style.letterSpacing,i.style.visibility="hidden",document.body.appendChild(i),e.style.width="".concat(i.getBoundingClientRect().width,"px"),document.body.removeChild(i)}else e.dataset.inputnocontentwidth&&(e.style.width=e.dataset.inputnocontentwidth);e.setAttribute("value",e.value)},e}();const Pq=function(){function e(e){this._engine=e,this._viewer=e.viewer}return e.prototype.load=function(e){this._baseUrl=e,this.plotService._baseUrl=e,this._propertyService||(this._propertyService=new Mq(this))},Object.defineProperty(e.prototype,"engine",{get:function(){return this._engine},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewer",{get:function(){return this._viewer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this._baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cesiumService",{get:function(){return this._cesiumService||(this._cesiumService=new RK),this._cesiumService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"configService",{get:function(){return this._configService||(this._configService=new yT),this._configService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actionService",{get:function(){return this._actionService||(this._actionService=new yV(this)),this._actionService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"httpService",{get:function(){return this._httpService||(this._httpService=QB),this._httpService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clusterService",{get:function(){return this._clusterService||(this._clusterService=new gT),this._clusterService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layerService",{get:function(){return this._layerService||(this._layerService=new EW(this)),this._layerService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"geojsonPlotService",{get:function(){return this._geojsonPlotService||(this._geojsonPlotService=new yO(this.viewer)),this._geojsonPlotService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"drawbigfileService",{get:function(){return this._drawbigfileService||(this._drawbigfileService=new NT(this)),this._drawbigfileService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"musicService",{get:function(){return this._musicService||(this._musicService=new iI(this.message)),this._musicService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"plotService",{get:function(){return this._plotService||(this._plotService=new bW(this.engine)),this._plotService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return this._message||(this._message=new TW),this._message},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"geojsonService",{get:function(){return this._geojsonService||(this._geojsonService=new yO(this.viewer)),this._geojsonService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"animationService",{get:function(){return this._animationService||(this._animationService=new lK(this)),this._animationService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"drawService",{get:function(){return this._drawService||(this._drawService=new xK(this.viewer)),this._drawService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pinyinTool",{get:function(){return this._pinyinTool||(this._pinyinTool=new IW),this._pinyinTool},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"htmlDrawService",{get:function(){return this._htmlDrawService||(this._htmlDrawService=new vZ(this)),this._htmlDrawService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"richTextService",{get:function(){return this._richTextService||(this._richTextService=new xq(this)),this._richTextService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"advancedHtmlService",{get:function(){return this._advancedHtmlService||(this._advancedHtmlService=new DW),this._advancedHtmlService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"propertyService",{get:function(){return this._propertyService||(this._propertyService=new Mq(this)),this._propertyService},enumerable:!1,configurable:!0}),e}();var Eq=__webpack_require__(6763),Lq=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Tq=function(e){function t(t){var i=e.call(this)||this;return i._serviceManager=t,i}return Lq(t,e),t.prototype.createPlot=function(e,t,i,n){var r,o;if(this.curTreeList&&this.curTreeList.length||(this.curTreeList=this._serviceManager.plotService.gm.treeList),this.plotDataBasic=this.curTreeList.find(function(e){return e.label===t}),this.plotDataBasic&&(r=this.plotDataBasic.children.find(function(e){return e.label===i})),r?(o=r.data.find(function(e){return e.label===n}),o&&e&&e.properties&&Object.assign(o.params,e.properties)):(e&&e.properties&&(e=JSON.parse(JSON.stringify(e).replace(/properties/g,"params"))),o=e),lu.isEmpty(o))return Eq.warn("无效的参数,请认真阅读接口指南"),null;var s=this._serviceManager.actionService.createPlot(o,!0);if(!s)return Eq.warn("无效的参数,请认真阅读接口指南"),null;var a=new ag(s);return this._serviceManager.engine.sceneTree.addSceneObject(a),this.fire("add",a),a},t.prototype.createPlotPicture=function(){this.plotDataPic=this.curTreeList.find(function(e){return"图片"===e.label})},t.prototype.createPlotModel=function(){this.plotDataModel=this.curTreeList.find(function(e){return"模型"===e.label})},t.prototype.loaded=function(){this.curTreeList=this._serviceManager.plotService.gm.treeList},t.prototype.onPick=function(e){this.editor&&(this.editor.onEditChanged=e)},t.prototype.open=function(){this._serviceManager.plotService.gm.start()},t.prototype.close=function(){this._serviceManager.plotService.gm.destroyHandler()},Object.defineProperty(t.prototype,"editor",{get:function(){return this._serviceManager.plotService.gm?this._serviceManager.plotService.gm.editor:void 0},enumerable:!1,configurable:!0}),t}(iu),Oq=__webpack_require__(6763),Dq=function(){return Dq=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Dq.apply(this,arguments)},Bq=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Iq=function(){function e(e){this.attrList=["show","alpha","saturation","contrast","brightness","hue"],this.gpList=[],this.viewer=e}return e.prototype.setListByData=function(e){var t,i,n=this;if(e&&e.length>0){try{for(var r=Bq(e),o=r.next();!o.done;o=r.next()){var s=o.value;this.initListData(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}this.gpList.sort(function(e,t){return e.currentLevel-t.currentLevel}),Oq.log("gplist>>>",this.gpList),this.gpList.forEach(function(e){var t;t="mbtiles"===e.serviceInfo.type?n.getLayer({url:e.serviceInfo.serviceUrl,maxZoom:e.serviceInfo.metaInfo.maxZoom},"mbtiles"):"shp"===e.serviceInfo.type?n.getLayer({url:e.serviceInfo.serviceUrl},"shp"):n.getLayer({url:e.serviceInfo.serviceUrl},"tif",e.serviceInfo),e.cesiumLayer=t})}},e.prototype.initListData=function(e){var t=this.createGpObjectNoLayer(Dq({},e));this.gpList.length>0&&this.gpList.find(function(t){return t.id===e.id})||this.gpList.push(t)},e.prototype.createGpObjectNoLayer=function(e){var t=new LT;return t.id=e.id,t.name=e.name,t.type=e.type,t.thumb=e.thumb,t._src=e._src,t.isAni=!0,t.serviceInfo=e.serviceInfo?e.serviceInfo:e.service_info,this.attrList.concat("currentLevel").forEach(function(i){void 0!==e["_".concat(i)]?t[i]=e["_".concat(i)]:"show"===i?t.show=!0:"hue"===i?t.hue=0:t[i]=1}),TT.register(t),t},e.prototype.getLayer=function(e,t,i){var n,r;if("mbtiles"===t)r=new Cesium.UrlTemplateImageryProvider({url:e.url,maximumLevel:Number(null==e?void 0:e.maxZoom),minimumLevel:Number(null==e?void 0:e.minZoom),tilingScheme:new Cesium.GeographicTilingScheme});else if("shp"===t)r=new Cesium.UrlTemplateImageryProvider({url:e.url});else if("tif"===t)if((null===(n=null==i?void 0:i.metaInfo)||void 0===n?void 0:n.bounds)&&parseFloat(null==i?void 0:i.maxZoom)>=0&&parseFloat(null==i?void 0:i.minZoom)>=0){var o=i.metaInfo.bounds.split(",");r=new Cesium.UrlTemplateImageryProvider({url:e.url,rectangle:Cesium.Rectangle.fromDegrees(Number(o[0]),Number(o[1]),Number(o[2]),Number(o[3])),maximumLevel:i.maxZoom,minimumLevel:i.minZoom})}else r=new Cesium.UrlTemplateImageryProvider({url:e.url});return this.viewer.imageryLayers.addImageryProvider(r)},e.prototype.cleanAll=function(){var e=this;this.gpList.forEach(function(t){var i=t.cesiumLayer;e.viewer.imageryLayers.remove(i)}),this.gpList.splice(0,this.gpList.length)},e}();const Rq=Iq;var Nq=__webpack_require__(6763),kq=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Fq=function(){function e(e){this.boxList=new Array,this.scalePercent=1,this.init(e)}return e.prototype.init=function(e){var t=document.getElementById("html-draw-container");if(t)this.containerDiv=t;else{this.outsideHtml=document.createElement("div"),this.outsideHtml.style.pointerEvents="none",this.outsideHtml.style.width="100%",this.outsideHtml.style.height="100%",this.outsideHtml.style.position="absolute",this.outsideHtml.style.top="0px",this.outsideHtml.style.left="0px",e.container.appendChild(this.outsideHtml);var i=document.createElement("div");i.id="html-draw-container",i.style.pointerEvents="all",this.containerDiv=i,this.outsideHtml.appendChild(this.containerDiv)}this.calculateScale()},e.prototype.calculateScale=function(){this.containerDiv.style.transform="scale("+this.scalePercent+")"},e.prototype.setListByData=function(e){var t,i,n=this;if(Nq.log("data",e),e&&!(e.length<1)){e.forEach(function(e){var t=document.createElement("div");t.innerHTML=e.html,t.children[0].id=e.id,n.containerDiv.appendChild(t.children[0])});var r=[],o=this.containerDiv.getElementsByClassName("html-box"),s=Array.from(o),a=function(e){var t=s.find(function(t){return t.id===e.id});if(!t)return"continue";var i=mZ.createBox(e.classType);i.id=e.id?e.id:t.id,i.name=e.name,i.boxType=e.boxType,i.videoPath||(i.videoPath=e.videoPath),i.initHtml(t),i.init(),i instanceof uZ&&i.setPicList(e.picList),l.boxList.push(i),r.push(i)},l=this;try{for(var u=kq(e),c=u.next();!c.done;c=u.next()){a(c.value)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(t)throw t.error}}return r}},e.prototype.clearHtmlDiv=function(){this.containerDiv&&(this.containerDiv.innerHTML="",this.boxList=[])},e}();const Hq=Fq;var Yq=__webpack_require__(6763),jq=function(){function e(){this.musicList=[]}return e.prototype.recoverData=function(e){var t=this;Yq.log("recoverdata",e),this.musicList.length=0,Array.isArray(e)&&e.length>0&&((e=this.removeRepeat(e)).forEach(function(e){var i=t.makeMusic(e);t.musicList.push(i),$B.register(i)}),this.currentMusic=this.musicList[0])},e.prototype.removeRepeat=function(e){var t={};return e=e.reduce(function(e,i){return!t[i.id]&&(t[i.id]=e.push(i)),e},[]),e},e.prototype.makeMusic=function(e){var t=new XB;return t.id=e.id,t.name=e.name,t.type="音频",t.iconName=e.iconName,t.src=e._src,t.muted=e._muted,t.volume=e._volume,t},e.prototype.clean=function(){this.musicList.length=0},e}();const Uq=jq;var Gq=function(){function e(e){this.containerDiv=e}return e.prototype.setSubtitleList=function(e){var t=this;if(!e||0===e.length)return[];e.forEach(function(e){var i=document.createElement("div");i.innerHTML=e.html,i.children[0].id=e.id,t.containerDiv.appendChild(i.children[0])})},e}();const Qq=Gq;var zq=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())})},Wq=function(e,t){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}};const Xq=function(){function e(e,t,i){this.cloudOpacity=.5,this.viewer=e,this.terrainUrl=t,this.globalTerrainUrl=i,this.graticuleLayer=new OK(e),this.init()}return e.prototype.init=function(){if(this.viewer);try{this.viewer.imageryLayers;var e=this.viewer.scene,t=new Cesium.SunLight;e.light=t,e.globe.dynamicAtmosphereLighting=!0,e.globe.dynamicAtmosphereLightingFromSun=!1,e.globe.enableLighting=!0,e.globe.lightingFadeOutDistance=1e7,e.globe.nightFadeInDistance=25e6,e.globe.baseColor=Cesium.Color.WHITE}catch(e){}},e.prototype.SetWater=function(e){return zq(this,void 0,void 0,function(){var t;return Wq(this,function(i){switch(i.label){case 0:return this.sea?(this.sea.show=e,[3,3]):[3,1];case 1:return e?[4,uT.Render(this.viewer.scene)]:[3,3];case 2:(t=i.sent())&&(this.sea=t),i.label=3;case 3:return[2]}})})},e.prototype.SetTerrain=function(e){var t=0;switch(e){case 1:this.viewer.terrainProvider=new Cesium.CesiumTerrainProvider({url:this.terrainUrl}),t=1;break;case 2:this.viewer.terrainProvider=new Cesium.CesiumTerrainProvider({url:this.globalTerrainUrl}),t=2;break;default:this.viewer.terrainProvider instanceof Cesium.EllipsoidTerrainProvider||(this.viewer.terrainProvider=new Cesium.EllipsoidTerrainProvider({ellipsoid:Cesium.Ellipsoid.WGS84})),t=0}return t},e}();var Vq=function(){function e(e){var t=this;this.isCenterMoved=!1,this.eagleEyeWidthNum=180,this.eagleEyeHeightNum=90,this.centerWidthNum=14,this.centerHeightNum=14,this.centerBottom=0,this.centerLeft=0,this.centerTop=0,this.latTop=0,this.longLeft=0,this.viewer=e,this.initEagleDiv(),this.viewer.camera.changed.addEventListener(function(e){t.isCenterMoved?t.isCenterMoved=!1:t.setEagleCenterPosition()}),this.showEagleDiv(!1)}return e.prototype.initEagleDiv=function(){var e=this;this.eagleDiv=document.createElement("div"),this.eagleDiv.className="cesiumEagleEye";var t=this.eagleDivStyle();Object.assign(this.eagleDiv.style,t),this.eagleDiv.contentEditable="false",document.getElementById("cesiumContainer").appendChild(this.eagleDiv),this.eagleDiv.addEventListener("click",function(t){e.getMousePosition(t)}),this.latDiv=document.createElement("div"),this.latDiv.className="lat",this.latDiv.contentEditable="false",this.eagleDiv.appendChild(this.latDiv),this.lonDiv=document.createElement("div"),this.lonDiv.className="long",this.lonDiv.contentEditable="false",this.eagleDiv.appendChild(this.lonDiv),this.eagleCenterDiv=document.createElement("div"),this.eagleCenterDiv.className="eagleEyeCenter",this.eagleCenterDiv.innerHTML='<img src="./resources/images/point.png" style="position: absolute;width: 100%;">',this.eagleDiv.appendChild(this.eagleCenterDiv),this.setEagleCenterPosition()},e.prototype.updateDivStyle=function(){var e=this.latDivStyle();Object.assign(this.latDiv.style,e);var t=this.lonDivStyle();Object.assign(this.lonDiv.style,t);var i=this.eagleCenterDivStyle();Object.assign(this.eagleCenterDiv.style,i)},e.prototype.showEagleDiv=function(e){this.eagleDiv&&(e?(this.eagleDiv.style.display="block",this.setEagleCenterPosition()):this.eagleDiv.style.display="none")},e.prototype.getMousePosition=function(e){this.isCenterMoved=!0;var t=e.offsetY,i=e.offsetX,n=t-this.centerHeightNum/2,r=i-this.centerHeightNum/2;this.centerTop=n,this.centerLeft=r,this.setEagleCenterByTopLeft(n,r)},e.prototype.setEagleCenterByTopLeft=function(e,t){var i=e+this.centerHeightNum/2,n=t+this.centerWidthNum/2;n>this.eagleEyeWidthNum-this.centerWidthNum/2&&(n=this.eagleEyeWidthNum-this.centerWidthNum/2),n<this.centerWidthNum/2&&(n=this.centerWidthNum/2),i>this.eagleEyeHeightNum-this.centerHeightNum/2&&(i=this.eagleEyeHeightNum-this.centerHeightNum/2),i<this.centerHeightNum/2&&(i=this.centerHeightNum/2),this.latTop=i,this.longLeft=n,this.longNum=2*t-180,this.centerTopNum=e,this.latNum=Number(2*(this.eagleEyeHeightNum-this.centerTopNum-this.centerHeightNum/2)-90);var r=this.viewer.camera.positionCartographic.height;this.longNum>179&&(this.longNum=179),(this.longNum<-179||"NaN"==this.longNum.toString())&&(this.longNum=-179),this.latNum>90&&(this.latNum=90),(this.latNum<-90||"NaN"==this.latNum.toString())&&(this.latNum=-90),this.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(this.longNum,this.latNum,r)}),this.updateDivStyle()},e.prototype.eagleDivStyle=function(){return{"border-radius":"6px",background:"url('./resources/images/world.jpg') no-repeat","background-size":"100% 100%",bottom:"0px",left:"0px",position:"absolute",width:this.eagleEyeWidthNum+"px",height:this.eagleEyeHeightNum+"px","caret-color":"transparent"}},e.prototype.lonDivStyle=function(){return{width:"0px",height:this.eagleEyeHeightNum+"px","margin-left":this.longLeft+"px","border-left":"1px solid white","pointer-events":"none","caret-color":"transparent"}},e.prototype.latDivStyle=function(){return{height:"0px",width:this.eagleEyeWidthNum+"px","margin-top":this.latTop+"px","border-top":"1px solid white","pointer-events":"none",float:"left","caret-color":"transparent"}},e.prototype.eagleCenterDivStyle=function(){return{width:this.centerWidthNum+"px",height:this.centerHeightNum+"px",position:"absolute",top:this.centerTop+"px",left:this.centerLeft+"px",color:"white","font-size":"26px","pointer-events":"none"}},e.prototype.calcLeft=function(e){var t=(e+=180)/360*this.eagleEyeWidthNum;return t>this.eagleEyeWidthNum-this.centerWidthNum/2&&(t=this.eagleEyeWidthNum-this.centerWidthNum/2),t<this.centerWidthNum/2&&(t=this.centerWidthNum/2),t},e.prototype.calcBottom=function(e){var t=(e+=90)/180*this.eagleEyeHeightNum;return t>this.eagleEyeHeightNum-this.centerHeightNum/2&&(t=this.eagleEyeHeightNum-this.centerHeightNum/2),t<this.centerHeightNum/2&&(t=this.centerHeightNum/2),t},e.prototype.setEagleCenterPosition=function(){var e=this.viewer.camera.positionCartographic;this.longNum=Number(Cesium.Math.toDegrees(e.longitude)),this.latNum=Number(Cesium.Math.toDegrees(e.latitude));var t=this.calcLeft(this.longNum);this.centerBottom=this.calcBottom(this.latNum);var i=this.eagleEyeHeightNum-this.centerBottom,n=t-this.centerWidthNum/2;this.centerTop=i-this.centerHeightNum/2,this.centerLeft=n,this.latTop=i,this.longLeft=t,this.updateDivStyle()},e}();const Jq=Vq;var Kq=__webpack_require__(6763);const Zq=function(){function e(e){this.viewer=e}return e.prototype.enable=function(e){Kq.log("exaggeration enable"),e?this.invokeCameraChanged(this.viewer):this.clearTerrain(this.viewer.scene)},e.prototype.invokeCameraChanged=function(e){var t=this;e.scene.cameraEventWaitTime=100,this.updateTerrain(e.scene,1),this.removeListener&&this.removeListener(),this.removeListener=e.camera.changed.addEventListener(function(i){var n=t.getLevel(Math.ceil(e.camera.positionCartographic.height));n&&n<=50&&t.updateTerrain(e.scene,n)})},e.prototype.getLevel=function(e){return e>3e6?50:e>15e5?30:e>75e4?15:e>375e3?10:e>187500||e>93750?5:e>46875||e>23437.5?1:void 0},e.prototype.clearTerrain=function(e){e.globe.terrainExaggeration=1,e.globe.material=void 0,this.removeListener&&(this.removeListener(),Kq.log("clear terrain",this.removeListener))},e.prototype.updateTerrain=function(e,t){void 0===t&&(t=50),e.globe.terrainExaggeration=t},e.prototype.updateTerrain1=function(e){e.globe.terrainExaggeration=1;var t=e.globe;t.terrainExaggerationRelativeHeight=1e3;var i=t.terrainExaggerationRelativeHeight,n=.5,r={entries:[{height:i+0,color:Cesium.Color.TRANSPARENT},{height:i+.01,color:Cesium.Color.DARKGREEN.withAlpha(n)},{height:i+100,color:Cesium.Color.GREEN.withAlpha(n)},{height:i+200,color:Cesium.Color.LIGHTGREEN.withAlpha(n)},{height:i+500,color:Cesium.Color.YELLOWGREEN.withAlpha(n)},{height:i+1e3,color:Cesium.Color.YELLOW.withAlpha(n)},{height:i+1500,color:Cesium.Color.ORANGE.withAlpha(n)},{height:i+2e3,color:Cesium.Color.ORANGERED.withAlpha(n)},{height:i+3e3,color:Cesium.Color.RED.withAlpha(n)},{height:i+4e3,color:Cesium.Color.ALICEBLUE.withAlpha(n)},{height:i+5e3,color:Cesium.Color.SNOW.withAlpha(n)},{height:i+6e3,color:Cesium.Color.WHITE.withAlpha(n)}],extendDownwards:!0,extendUpwards:!0};e.globe.material=Cesium.createElevationBandMaterial({scene:e,layers:[r]})},e}();var qq=function(){function e(e,t,i){this.viewer=e,this.cesiumManager=new Xq(e,t,i),this.terrainManager=new Zq(e),this.eagleManager=new Jq(e)}return e.prototype.initStatus=function(e,t){var i=this;void 0===t&&(t=!0),this.page=e;["skyBox","graticule","isEagle","isPlace","placeType","skyAtmosphere","globe","seaMaterial","sunLight","clouds","cloudSpead","skyWeather","isName","isVector","isVector2","isFrameRate","compass","baseWaterColor","specularIntensity","amplitude","terrainShading","exaggerValue"].forEach(function(t){i.click(t,e[t])})},e.prototype.click=function(e,t){null!=t&&this.imagetransform(e,t)},e.prototype.imagetransform=function(e,t){switch(e){case"skyAtmosphere":this.viewer.scene.skyAtmosphere.show!==t&&(this.viewer.scene.skyAtmosphere.show=t),this.viewer.scene.globe.showGroundAtmosphere=this.viewer.scene.skyAtmosphere.show;break;case"skyBox":this.viewer.scene.skyBox.show!==t&&(this.viewer.scene.skyBox.show=t);break;case"globe":if(!t){var i=new Cesium.SunLight;(n=this.viewer.scene).light=i,this.fixLightFunc&&this.viewer.scene.preRender.removeEventListener(this.fixLightFunc)}this.viewer.scene.globe.enableLighting!==t&&(this.viewer.scene.globe.enableLighting=t),t&&this.imagetransform("sunLight",this.viewer.scene.globe.dynamicAtmosphereLighting);break;case"sunLight":if(this.fixLightFunc&&this.viewer.scene.preRender.removeEventListener(this.fixLightFunc),!this.viewer.scene.globe.enableLighting)return;if(1==t){i=new Cesium.SunLight;(n=this.viewer.scene).light=i,n.globe.dynamicAtmosphereLighting=!0}else{var n=this.viewer.scene,r=new Cesium.DirectionalLight({direction:n.camera.directionWC});n.light=r,n.globe.dynamicAtmosphereLighting=!1,this.fixLightFunc=function(e,t){e.light.direction=Cesium.Cartesian3.clone(e.camera.directionWC,e.light.direction)},n.preRender.addEventListener(this.fixLightFunc)}break;case"exaggerValue":-1==t?(this.viewer.scene.globe.terrainExaggeration=1,this.terrainManager.enable(!0)):(this.terrainManager.enable(!1),this.viewer.scene.globe.terrainExaggeration=t);break;case"skyWeather":this.viewer.scene.fog.enabled!==t&&(this.viewer.scene.fog.enabled=t);break;case"clouds":this.viewer.scene.globe.enableCloud!==t&&(this.viewer.scene.globe.enableCloud=t);break;case"cloudSpead":this.viewer.scene.cloudSpeedTimes=t;break;case"graticule":this.graticuleLayerShow!==t&&t?(this.cesiumManager.graticuleLayer.show(),this.graticuleLayerShow=t):this.graticuleLayerShow===t||t||(this.cesiumManager.graticuleLayer.remove(),this.graticuleLayerShow=t);break;case"isEagle":this.eagleManager.showEagleDiv(t);break;case"seaMaterial":this.waterShow!==t&&(this.cesiumManager.SetWater(t),this.waterShow=t);break;case"isPlace":this.terrainShow!==t&&(t?this.placeType?this.cesiumManager.SetTerrain(2):this.cesiumManager.SetTerrain(1):this.cesiumManager.SetTerrain(0),this.terrainShow=t);break;case"placeType":if(!this.terrainShow)return;this.placeType!==t&&(this.placeType=t,this.placeType?this.cesiumManager.SetTerrain(2):this.cesiumManager.SetTerrain(1));break;case"isVector":case"isVector2":case"isName":break;case"isFrameRate":this.viewer.scene.debugShowFramesPerSecond!==t&&(this.viewer.scene.debugShowFramesPerSecond=t);break;case"compass":this.viewer.cesiumNavigation.navigationViewModel.showCompass=t;break;case"baseWaterColor":this.cesiumManager.sea?this.cesiumManager.sea.appearance.material.uniforms.baseWaterColor=Cesium.Color.fromCssColorString(t).withAlpha(.5):uT.baseWaterColor=Cesium.Color.fromCssColorString(t).withAlpha(.5);break;case"specularIntensity":this.cesiumManager.sea?this.cesiumManager.sea.appearance.material.uniforms.specularIntensity=t:uT.specularIntensity=t;break;case"amplitude":this.cesiumManager.sea?this.cesiumManager.sea.appearance.material.uniforms.amplitude=t:uT.amplitude=t;break;case"terrainShading":this.viewer.scene.globe.depthTestAgainstTerrain!==t&&(this.viewer.scene.globe.depthTestAgainstTerrain=t)}},e}();const $q=qq,e$=52.35987755982988,t$=3.141592653589793,i$=6378245,n$=.006693421622965943;const r$=class{static BD09ToGCJ02(e,t){let i=+e-.0065,n=+t-.006,r=Math.sqrt(i*i+n*n)-2e-5*Math.sin(n*e$),o=Math.atan2(n,i)-3e-6*Math.cos(i*e$);return[r*Math.cos(o),r*Math.sin(o)]}static GCJ02ToBD09(e,t){t=+t,e=+e;let i=Math.sqrt(e*e+t*t)+2e-5*Math.sin(t*e$),n=Math.atan2(t,e)+3e-6*Math.cos(e*e$);return[i*Math.cos(n)+.0065,i*Math.sin(n)+.006]}static WGS84ToGCJ02(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];{let i=this.delta(e,t);return[e+i[0],t+i[1]]}}static GCJ02ToWGS84(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];{let i=this.delta(e,t);return[2*e-(e+i[0]),2*t-(t+i[1])]}}static delta(e,t){let i=this.transformLng(e-105,t-35),n=this.transformLat(e-105,t-35);const r=t/180*t$;let o=Math.sin(r);o=1-n$*o*o;const s=Math.sqrt(o);return i=180*i/(i$/s*Math.cos(r)*t$),n=180*n/(6335552.717000426/(o*s)*t$),[i,n]}static transformLng(e,t){let i=300+(e=+e)+2*(t=+t)+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*t$)+20*Math.sin(2*e*t$))/3,i+=2*(20*Math.sin(e*t$)+40*Math.sin(e/3*t$))/3,i+=2*(150*Math.sin(e/12*t$)+300*Math.sin(e/30*t$))/3,i}static transformLat(e,t){let i=2*(e=+e)-100+3*(t=+t)+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*t$)+20*Math.sin(2*e*t$))/3,i+=2*(20*Math.sin(t*t$)+40*Math.sin(t/3*t$))/3,i+=2*(160*Math.sin(t/12*t$)+320*Math.sin(t*t$/30))/3,i}static out_of_china(e,t){return t=+t,!((e=+e)>73.66&&e<135.05&&t>3.86&&t<53.55)}};class o$ extends Cesium.WebMercatorTilingScheme{constructor(e){super(e);let t=new Cesium.WebMercatorProjection;this._projection.project=function(e,i){return i=r$.WGS84ToGCJ02(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude)),i=t.project(new Cesium.Cartographic(Cesium.Math.toRadians(i[0]),Cesium.Math.toRadians(i[1]))),new Cesium.Cartesian2(i.x,i.y)},this._projection.unproject=function(e,i){let n=t.unproject(e);return i=r$.GCJ02ToWGS84(Cesium.Math.toDegrees(n.longitude),Cesium.Math.toDegrees(n.latitude)),new Cesium.Cartographic(Cesium.Math.toRadians(i[0]),Cesium.Math.toRadians(i[1]))}}}const s$=o$;var a$=__webpack_require__(6763),l$=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},u$=function(){function e(e,t,i){this.baseLayerList=new Array,this.otherLayerList=new Array,this.districtLayerList=new Array,this.customLayerList=new Array,this.isWebp=!1,this.viewer=i,this.geopptWebUrl=e,this.geopptServiceUrl=t}return e.prototype.getConfig=function(){var e=this,t=this.geopptWebUrl+"/resources/online_data.json";fetch(t).then(function(e){return e.json()}).then(function(t){e.layerConfig=t,e.getDefaultConfigByOriginal(e.layerConfig);var i=e.layerConfig.find(function(e){return"底图"===e.label});i&&(e.baseLayerList=i.data,e.baseLayerList=e.formatData(e.baseLayerList));var n=e.layerConfig.find(function(e){return"其他"===e.label});n&&(e.otherLayerList=n.data,e.otherLayerList=e.formatData(e.otherLayerList));var r=e.layerConfig.find(function(e){return"自定义"===e.label});return r&&(e.customLayerList=r.data,e.customLayerList=e.formatData(e.customLayerList)),e.layerConfig})},e.prototype.pageToLayerList=function(e){if(this.layerConfig&&e){var t;try{t="string"==typeof e.pageConfig?JSON.parse(e.pageConfig):e.pageConfig}catch(e){a$.log(e)}t||(t=this.getConfig()),this.updateLayerList(t,e),this.currentConfig=t,e.pageConfig=t}},e.prototype.getDefaultConfigByOriginal=function(e){var t=this;this.defaultConfig={base:[],other:[]};var i=["alpha","saturation","contrast","brightness","hue","gamma","currentLevel"];function n(e){var t,n=new AK;if(e.visible&&(t={id:e.id,visible:!0}),i.forEach(function(i){if(void 0!==e[i]){var n=parseFloat(e[i]);t||(t={id:e.id}),t[i]=n}}),t)return!0!==t.visible&&(t.visible=!1),i.forEach(function(e){void 0===t[e]&&(t[e]=n[e])}),t}var r=e.find(function(e){return"底图"===e.label});r&&r.data&&r.data.forEach(function(e){var i=n(e);i&&t.defaultConfig.base.push(i)});var o=e.find(function(e){return"其他"===e.label});o&&o.data&&o.data.forEach(function(e){var i=n(e);i&&t.defaultConfig.other.push(i)})},e.prototype.resetLayerConfig=function(){var e=this;this.baseLayerList.forEach(function(t){var i=e.defaultConfig.base.find(function(e){return e.id===t.id});e.initLayerAttr(t,i),t.showProperty=!1}),this.otherLayerList.forEach(function(t){var i=e.defaultConfig.other.find(function(e){return e.id===t.id});e.initLayerAttr(t,i),t.showProperty=!1}),this.customLayerList.forEach(function(t){e.initLayerAttr(t),t.showProperty=!1})},e.prototype.initLayerAttr=function(e,t){if(t){if(e.id!==t.id)return e}else t=new AK;for(var i in t)"id"!==i&&"visible"!==i&&(e["".concat(i)]=t[i]);return e},e.prototype.updateLayerList=function(e,t){var i=this,n=JSON.stringify(e);if(e=JSON.parse(n),this.resetLayerConfig(),e.baseAttr){var r=this.getLayerById(e.baseAttr.id);r&&(this.initLayerAttr(r,e.baseAttr),this.setBaseMap(r))}else this.setBaseMap();var o=this.otherLayerList.concat(this.customLayerList),s=e.otherAttr.concat(e.customAttr);o.forEach(function(e){s.find(function(t){return t.id===e.id})||i.hideImage(e)}),s.sort(function(e,t){return e.currentLevel-t.currentLevel}),s.forEach(function(e){i.updateLayerByConfig(e)}),this.currentConfig=e,t&&(t.pageConfig=e)},e.prototype.updateLayerByConfig=function(e){var t=this.getLayerById(e.id);if(t)return this.initLayerAttr(t,e),t.visible&&t.cesiumLayer||this.showImage(t),t},e.prototype.getLayerById=function(e){var t;return t=this.baseLayerList.find(function(t){return t.id===e}),t||(t=this.otherLayerList.find(function(t){return t.id===e}),t||(t=this.customLayerList.find(function(t){return t.id===e}),t||void 0))},e.prototype.setBaseMap=function(e){this.baseImageLayer!==e&&(this.baseImageLayer&&this.hideImage(this.baseImageLayer),e&&this.showImage(e,!0),this.baseImageLayer=e)},e.prototype.showImage=function(e,t){var i=this,n=this.viewer;if("tileSet"!==e.paramType){if(e.visible&&e.cesiumLayer)return;if("url-mix"==e.paramType){var r=this.getMapProviders(e);r&&r.forEach(function(r){if(t)e.cesiumLayer=n.imageryLayers.addImageryProvider(r,0);else if(e.isTop)e.cesiumLayer=n.imageryLayers.addImageryProvider(r);else{var o=i.calculateIndex(n.imageryLayers);e.cesiumLayer=n.imageryLayers.addImageryProvider(r,o)}}),["alpha","saturation","contrast","brightness","hue","gamma","currentLevel"].forEach(function(t){e.cesiumLayer[t]=e[t]})}else if("url-arcgis"===e.paramType){var o=void 0;o=e.param.layerId?new Cesium.ArcGisMapServerImageryProvider({url:e.param.url,layers:e.param.layerId}):new Cesium.ArcGisMapServerImageryProvider({url:e.param.url}),e.cesiumLayer=n.imageryLayers.addImageryProvider(o),["alpha","saturation","contrast","brightness","hue","gamma","currentLevel"].forEach(function(t){e.cesiumLayer[t]=e[t]})}else{var s=this.getMapProvider(e);if(t)e.cesiumLayer=n.imageryLayers.addImageryProvider(s,0);else if(e.isTop)e.cesiumLayer=n.imageryLayers.addImageryProvider(s);else{var a=this.calculateIndex(n.imageryLayers);e.cesiumLayer=n.imageryLayers.addImageryProvider(s,a)}["alpha","saturation","contrast","brightness","hue","gamma","currentLevel"].forEach(function(t){e.cesiumLayer[t]=e[t]})}}else{if(e.visible&&e.cesiumTile)return;if(!e.param||!e.param.url)return;var l=void 0;if(e.param.type||"building"==e.param.type){if(e.param.shadows){h=void 0;"disabled"===e.param.shadows?h=Cesium.ShadowMode.DISABLED:"enabled"===e.param.shadows?h=Cesium.ShadowMode.ENABLED:"receive_only"===e.param.shadows?h=Cesium.ShadowMode.RECEIVE_ONLY:"cast_only"===e.param.shadows&&(h=Cesium.ShadowMode.CAST_ONLY),l=new Cesium.Cesium3DTileset({url:e.param.url,shadows:h})}else l=new Cesium.Cesium3DTileset({url:e.param.url});l.readyPromise.then(function(e){var t=e.boundingSphere,i=Cesium.Cartographic.fromCartesian(t.center),n=Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,0),r=Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,30),o=Cesium.Cartesian3.subtract(r,n,new Cesium.Cartesian3);e.modelMatrix=Cesium.Matrix4.fromTranslation(o)}).otherwise(function(e){a$.log(e)})}else{Cesium.ExperimentalFeatures.enableModelExperimental=!0;var u=performance.now(),c=new Cesium.CustomShader({uniforms:{u_time:{value:u,type:Cesium.UniformType.FLOAT}},varyings:{v_distanceFromTop:Cesium.VaryingType.FLOAT},mode:Cesium.CustomShaderMode.MODIFY_MATERIAL,lightingModel:Cesium.LightingModel.PBR,vertexShaderText:"\n out vec3 v_outPos;\n void vertexMain(VertexInput vsInput, inout czm_modelVertexOutput vsOutput) {\n v_outPos = vsOutput.positionMC;\n }\n ",fragmentShaderText:"\n in vec3 v_outPos;\n void fragmentMain(FragmentInput fsInput, inout czm_modelMaterial material) {\n float rmaxH = 100.0;\n float gmaxH = 200.0;\n float bmaxH = 200.0;\n float rz = clamp(v_outPos.z / rmaxH, 0.01, 1.0);\n float gz = clamp(v_outPos.z / gmaxH, 0.15, 0.6);\n float bz = clamp(v_outPos.z / bmaxH, 0.1, 0.7);\n vec3 c = vec3(rz,rz,rz);\n material.emissive = c;\n } \n "});if(e.param.shadows){var h=void 0;"disabled"===e.param.shadows?h=Cesium.ShadowMode.DISABLED:"enabled"===e.param.shadows?h=Cesium.ShadowMode.ENABLED:"receive_only"===e.param.shadows?h=Cesium.ShadowMode.RECEIVE_ONLY:"cast_only"===e.param.shadows&&(h=Cesium.ShadowMode.CAST_ONLY);var p={url:e.param.url,customShader:c,shadows:h};l=new Cesium.Cesium3DTileset(p)}else{p={url:e.param.url,customShader:c};l=new Cesium.Cesium3DTileset(p)}l.readyPromise.then(function(e){var t=e.boundingSphere,i=Cesium.Cartographic.fromCartesian(t.center),n=Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,0),r=Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,30),o=Cesium.Cartesian3.subtract(r,n,new Cesium.Cartesian3);e.modelMatrix=Cesium.Matrix4.fromTranslation(o)}).otherwise(function(e){a$.log(e)})}l&&(n.scene.primitives.add(l),e.cesiumTile=l),["alpha","saturation","contrast","brightness","hue","gamma","currentLevel"].forEach(function(t){e.cesiumTile[t]=e[t]})}e.visible=!0},e.prototype.hideImage=function(e){var t=this.viewer;if("tileSet"!==e.paramType){if(!e.visible&&!e.cesiumLayer)return;t.imageryLayers.remove(e.cesiumLayer),e.cesiumLayer=void 0}else t.scene.primitives.remove(e.cesiumTile);e.visible=!1},e.prototype.getMapProviders=function(e){if(null==e)return null;if("url-mix"!==e.paramType)switch(e.id){case"moren":case"tencent":e.param.customTags={sx:function(e,t,i,n){return t>>4},sy:function(e,t,i,n){return(1<<n)-i>>4}};break;case"skyearth_global":case"own_data":e.param.tilingScheme=new Cesium.GeographicTilingScheme}var t=[];return e.param.urls.forEach(function(i){e.param.url=i;var n=new Cesium.UrlTemplateImageryProvider(e.param);t.push(n)}),t},e.prototype.getMapProvider=function(e){if(null==e)return null;switch(e.id){case"moren":case"tencent":e.param.customTags={sx:function(e,t,i,n){return t>>4},sy:function(e,t,i,n){return(1<<n)-i>>4}};break;case"skyearth_global":case"own_data":e.param.tilingScheme=new Cesium.GeographicTilingScheme;break;case"gaode_satellite":var t={style:"img",crs:"WGS84"};return new Cesium.AmapImageryProvider(t);case"gaode":t={style:"img、elec、cva",crs:"WGS84"};return new Cesium.AmapImageryProvider(t);case"tencent":return new Cesium.TencentImageryProvider({style:"dem"});case"pic":return new Cesium.GoogleImageryProvider({style:"img"})}var i;switch(e.paramType){case"tms":"4326"==e.param.crs&&(e.param.tilingScheme=new Cesium.GeographicTilingScheme),i=new Cesium.TileMapServiceImageryProvider(e.param);break;case"url":"4326"==e.param.crs&&(e.param.tilingScheme=new Cesium.GeographicTilingScheme),i=new Cesium.UrlTemplateImageryProvider(e.param);break;case"url-ceshi":e.param.tilingScheme=new Cesium.WebMercatorTilingScheme,e.param.rectangle=new Cesium.Rectangle(Cesium.Math.toRadians(114.989864173882),Cesium.Math.toRadians(39.32319860444451),Cesium.Math.toRadians(117.0101335928688),Cesium.Math.toRadians(41.343470315312)),i=new Cesium.TileMapServiceImageryProvider(e.param);break;case"url-baidu":break;case"wms":this.resolveWmsWmtsParam(e),i=new Cesium.WebMapServiceImageryProvider(e.param);break;case"wmts":this.resolveWmsWmtsParam(e),i=new Cesium.WebMapTileServiceImageryProvider(e.param);break;case"tileSet":i=new Cesium.Cesium3DTileset(e.param);break;case"bing":i=new Cesium.UrlTemplateImageryProvider({url:e.param.url,subdomains:["0","1","2","3"],tilingScheme:"amap"==e.param.tilingScheme?new s$:new Cesium.WebMercatorTilingScheme,customTags:{q:function(e,t,i,n){var r=function(e,t,i){for(var n="",r=i;r>=0;--r){var o=1<<r,s=0;0!==(e&o)&&(s|=1),0!==(t&o)&&(s|=2),n+=s}return"0"===n[0]&&(n=n.substr(1)),n}(t,i,n);return r}}});break;case"baidutest":t={style:"pl",crs:"WGS84"}}return i},e.prototype.resolveWmsWmtsParam=function(e){e.param.tilingScheme&&("mct"===e.param.tilingScheme?e.param.tilingScheme=new Cesium.WebMercatorTilingScheme:e.param.tilingScheme.x&&(e.param.tilingScheme=new Cesium.GeographicTilingScheme({numberOfLevelZeroTilesX:e.param.tilingScheme.x,numberOfLevelZeroTilesY:e.param.tilingScheme.y}))),e.param.parameters&&e.param.parameters.minX&&(e.param.rectangle=Cesium.Rectangle.fromDegrees(e.param.parameters.minX,e.param.parameters.minY,e.param.parameters.maxX,e.param.parameters.maxY)),e.param.rectangle&&this.viewer.camera.flyTo({destination:e.param.rectangle})},e.prototype.calculateIndex=function(e){for(var t=e._layers.length-1;t>=0;t--){var i=this.getGpLayerByImageLayer(e._layers[t]);if(i&&!i.isTop)return i.currentLevel+1}return 0},e.prototype.getGpLayerByImageLayer=function(e){var t;return t=this.baseLayerList.concat(this.otherLayerList,this.customLayerList).find(function(t){if(t.cesiumLayer)return t.cesiumLayer===e||void 0}),t},e.prototype.formatData=function(e){var t,i,n,r,o=[];if(e&&e.length>0)try{for(var s=l$(e),a=s.next();!a.done;a=s.next()){var l=a.value;if(l.json_str){var u=JSON.parse(l.json_str),c=new LT;for(var h in u)c[h]=u[h];c.visible=!1,o.push(c)}else{c=new LT;for(var h in l)c[h]=l[h];c.visible=!1,c.initAttr={alpha:c.alpha,saturation:c.saturation,contrast:c.contrast,brightness:c.brightness,hue:c.hue,gamma:c.gamma},o.push(c)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}if(o&&o.length>0)try{for(var p=l$(o),d=p.next();!d.done;d=p.next()){var f=d.value;this.formatLayerUnit(f)}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}return o},e.prototype.formatLayerUnit=function(e){if("string"==typeof e.param)try{e.param=JSON.parse(e.param)}catch(t){e.param={},a$.error(t)}if(e.param&&e.param.url){e.param.url=this.icUrlTransform(e.param.url);var t=e.param.url.match(/format=(png|jpg)/);t&&(e.format=t[0].split("=")[1],this.isWebp=!1);var i=e.param.url.match(/format=webp/);i&&(e.format=i[0].split("=")[1],this.isWebp=!0)}return e},e.prototype.icUrlTransform=function(e){var t;if(-1!==e.indexOf("https://")||e.startsWith("wss://"))t=e;else if(-1!==e.indexOf("http://"))if(-1!==e.indexOf("icenter")||-1!==e.indexOf(":8310")){var i=(r=e.split("/"))[0]+"//"+r[2],n=this.geopptServiceUrl+"/proxyhttp/"+r[2];t=e.replace(i,n)}else{var r;t="https://"+(r=e.split("//"))[1]}else a$.log("其他");return t},e}();const c$=u$;var h$=__webpack_require__(6763),p$=function(){function e(){var e,t,i=this;this.$support=(e=document.createElement("canvas"),{canvas:!!(t=e.getContext("2d")),imageData:!!t.getImageData,dataURL:!!e.toDataURL,btoa:!!window.btoa}),this.downloadMime="image/octet-stream",this.genBitmapImage=function(e){var t=e.width,n=e.height,r=t*n*3,o=r+54,s=[66,77,255&o,o>>8&255,o>>16&255,o>>24&255,0,0,0,0,54,0,0,0],a=[40,0,0,0,255&t,t>>8&255,t>>16&255,t>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255,1,0,24,0,0,0,0,0,255&r,r>>8&255,r>>16&255,r>>24&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=(4-3*t%4)%4,u=e.data,c="",h=t<<2,p=n,d=String.fromCharCode;do{for(var f=h*(p-1),m="",g=0;g<t;g++){var y=g<<2;m+=d(u[f+y+2])+d(u[f+y+1])+d(u[f+y])}for(var _=0;_<l;_++)m+=String.fromCharCode(0);c+=m}while(--p);return i.encodeData(s.concat(a))+i.encodeData(c)},this.saveAsImage=function(e,t,n,r){if(i.$support.canvas&&i.$support.dataURL)if("string"==typeof e&&(e=document.getElementById(e)),null==r&&(r="png"),r=i.fixType(r),/bmp/.test(r)){var o=i.getImageData(i.scaleCanvas(e,t,n)),s=i.genBitmapImage(o);i.saveFile(i.makeURI(s,i.downloadMime))}else{var a=i.getDataURL(e,r,t,n);i.saveFile(a.replace(r,i.downloadMime))}},this.convertToImage=function(e,t,n,r){if(i.$support.canvas&&i.$support.dataURL){if("string"==typeof e&&(e=document.getElementById(e)),null==r&&(r="png"),r=i.fixType(r),/bmp/.test(r)){var o=i.getImageData(i.scaleCanvas(e,t,n)),s=i.genBitmapImage(o);return i.makeURI(s,"image/bmp")}return i.getDataURL(e,r,t,n)}}}return e.prototype.scaleCanvas=function(e,t,i){var n=e.width,r=e.height;null==t&&(t=n),null==i&&(i=r);try{var o=document.createElement("canvas"),s=o.getContext("2d");return o.width=t,o.height=i,s.drawImage(e,0,0,n,r,(t-n)/2,(i-r)/2,n,r),s.fillStyle="black",s.strokeStyle="black",s.font="16px",s.textBaseline="hanging",s.fillText(rK().format("L"),0,0),o}catch(e){h$.log(e)}},e.prototype.getDataURL=function(e,t,i,n){return(e=this.scaleCanvas(e,i,n)).toDataURL(t)},e.prototype.saveFile=function(e){document.location.href=e},e.prototype.genImage=function(e){var t=document.createElement("img");return t.src=e,t},e.prototype.fixType=function(e){return"image/"+(e=e.toLowerCase().replace(/jpg/i,"jpeg")).match(/png|jpeg|bmp|gif/)[0]},e.prototype.encodeData=function(e){if(!window.btoa)throw"btoa undefined";var t="";if("string"==typeof e)t=e;else for(var i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return btoa(t)},e.prototype.getImageData=function(e){var t=e.width,i=e.height;return e.getContext("2d").getImageData(0,0,t,i)},e.prototype.makeURI=function(e,t){return"data:"+t+";base64,"+e},e.prototype.scaleCanvasByResolution=function(e,t,i){var n=Number(JSON.parse(localStorage.getItem("resolutionScale")));n||(n=1);var r=e.width,o=e.height;void 0===t&&(t=r),void 0===i&&(i=o);try{var s=document.createElement("canvas"),a=s.getContext("2d");return s.width=t,s.height=i,a.drawImage(e,0,0,r,o,(t-r/n)/2,(i-o/n)/2,r/n,o/n),a.fillStyle="black",a.strokeStyle="black",a.font="16px",a.textBaseline="hanging",a.fillText(rK().format("L"),0,0),s}catch(e){h$.log(e)}},e}(),d$=function(){function e(e){var t=this;this.animationList=[{groupName:"",groupList:[{name:"无效果",value:"",animatePic:""}]},{groupName:"基础效果",groupList:[{name:"淡入",value:"animate__custom animate__custom__fadeIn"},{name:"闪白",value:"animate__custom animate__flash__white"},{name:"百叶窗",value:"animate__custom animate__custom__blind"},{name:"叠化",value:"animate__custom animate__custom__dissolve"}]}],this.isAutoSet=!1,this.pageAnimateTime=3,this.blindNum=6,this.pageAnimationCompleted$=new am,this.viewer=e,window.addEventListener("resize",function(){}),this.animationEndCallBack=function(){t.hideAnimationWrapper(),t.removeAddedElement(),t.isPageAnimationCompleted=!0,t.pageAnimationCompleted$.next(1);var e=document.querySelector(".pre-add-animation-wrapper");e&&e.remove()}}return Object.defineProperty(e.prototype,"isPageAnimationCompleted",{get:function(){return this._isPageAnimationCompleted},set:function(e){this._isPageAnimationCompleted=e},enumerable:!1,configurable:!0}),e.prototype.addAnimationToElement=function(e,t){if(!document.querySelector(".pre-add-animation-wrapper")){var i=document.createElement("div");i.className="pre-add-animation-wrapper";var n=document.createElement("div");n.className="pre-add-animation",i.appendChild(n),document.body.appendChild(i)}var r=t.animateType;t.animateTime=t.animateTime,this.isPageAnimationCompleted=!1;var o=document.querySelector(".pre-add-animation");if(this.restartAnimation(e,o),document.querySelector(".pre-add-animation-wrapper").style.zIndex="100",null==r?void 0:r.includes("animate__custom"))if(this.showAnimationWrapper(),this.clearPreAddElement(),this.removeAddedElement(),r.includes("animate__flash__white"))o.style.backgroundImage="",o.style.animationDuration="".concat(t.animateTime,"s"),this.addClassToPreAddElement(r);else if(r.includes("animate__custom__blind")){var s=this.viewer.scene.canvas,a=(d=new p$).scaleCanvasByResolution(s,o.getBoundingClientRect().width,o.getBoundingClientRect().height);o.style.backgroundImage="",o.style.animationDuration="".concat(t.animateTime,"s"),this.addClassToPreAddElement(r);for(var l=0;l<this.blindNum;l++){var u=document.createElement("div"),c=Math.ceil(o.getBoundingClientRect().width),h=Math.ceil(o.getBoundingClientRect().height/this.blindNum);u.style.width="".concat(o.getBoundingClientRect().width,"px"),u.style.height="".concat(h,"px"),u.style.display="inline-block",u.style.position="absolute",u.style.left="0px",u.style.top=h*l+"px",u.style.animationDuration="".concat(t.animateTime,"s"),u.classList.add("blind-tranform");var p=this.captureImage(o.getBoundingClientRect().width,o.getBoundingClientRect().height,c,h,l,a);u.style.backgroundImage="url(".concat(p,")"),u.style.backgroundSize="".concat(c,"px ").concat(h,"px"),u.style.backgroundRepeat="no-repeat",o.parentNode.appendChild(u)}}else if(r.includes("animate__custom__dissolve")){o.style.animationDuration="".concat(t.animateTime,"s"),this.addClassToPreAddElement(r);var d=new p$;s=this.viewer.scene.canvas,a=d.scaleCanvasByResolution(s,o.getBoundingClientRect().width,o.getBoundingClientRect().height),c=Math.ceil(o.getBoundingClientRect().width),h=Math.ceil(o.getBoundingClientRect().height),p=this.captureImage(o.getBoundingClientRect().width,o.getBoundingClientRect().height,c,h,0,a);o.style.backgroundImage="url(".concat(p,")"),o.style.backgroundRepeat="no-repeat"}else r.includes("animate__custom__fadeIn")&&(o.style.backgroundImage="",o.style.animationDuration="".concat(t.animateTime,"s"),this.addClassToPreAddElement(r));else this.showAnimationWrapper(),this.clearPreAddElement(),this.removeAddedElement(),this.addClassToPreAddElement("animate__custom__xxxx"),o.style.animationDuration="2s",document.querySelector(".pre-add-animation-wrapper").style.zIndex="-1";document.querySelector(".pre-add-animation-wrapper").removeEventListener("animationend",this.animationEndCallBack),document.querySelector(".pre-add-animation-wrapper").addEventListener("animationend",this.animationEndCallBack)},e.prototype.clearPreAddElement=function(){var e=document.querySelector(".pre-add-animation");e&&e.style&&(e.style.backgroundImage="",e.style.animationDuration="0s")},e.prototype.captureImage=function(e,t,i,n,r,o){if(i&&n)return this.partialCapture(o,i,n,r);var s=this.viewer.scene.canvas;return(new p$).convertToImage(s,e,t,"jpeg").toString()},e.prototype.hideAnimationWrapper=function(){var e=document.querySelector(".pre-add-animation-wrapper");e&&(e.style.display="none")},e.prototype.showAnimationWrapper=function(){document.querySelector(".pre-add-animation-wrapper").style.display="block"},e.prototype.removeAddedElement=function(){document.querySelectorAll(".blind-tranform").forEach(function(e){e.parentNode.removeChild(e)})},e.prototype.endAnimation=function(){this.removeAddedElement(),this.clearPreAddElement(),this.hideAnimationWrapper()},e.prototype.addClassToPreAddElement=function(e){document.querySelector(".pre-add-animation").className="pre-add-animation ".concat(e)},e.prototype.restartAnimation=function(e,t){e.style.animation="none",t.style.animation="none",e.offsetHeight,e.style.animation=null,t.style.animation=null},e.prototype.partialCapture=function(e,t,i,n){var r=document.createElement("canvas");r.width=t,r.height=i;var o=r.getContext("2d");return null==o||o.drawImage(e,0,i*n,t,i,0,0,t,i),null==r?void 0:r.toDataURL("image/png")},e}(),f$=__webpack_require__(6763),m$=__webpack_require__(8287).hp,g$=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof i?e:new i(function(t){t(e)})}(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())})},y$=function(e,t){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&a[0]?n.return:a[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;switch(n=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{i=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},_$=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},A$=function(){function e(e,t,i,n){void 0===i&&(i=!1),void 0===n&&(n=!1);var r=this;this.fallBackPic="/resources/images/scene-pic.jpg",this.geopptServicePlaceHolder="-gsph-",this.placeHolderReg=new RegExp(this.geopptServicePlaceHolder,"g"),this.currentPageIndex=0,this.autoPlayMode=!1,this.stopRotate=!1,this.animationOnStop=function(e){r.stopRotate=e,r.gm.animationManager.canNextAnimation()||r.stopAnimatin(),r.onAnimationChanged&&r.onAnimationChanged()},this.ani=e.animationService;var o=e.configService.getGeopptWebUrlIp(),s=e.configService.getGeopptServiceUrlIp(),a=e.configService.getTerrainUrlIp(),l=e.configService.getGlobalTerrainUrlIp();e.configService.getPageUrlIp();this.engine=t,this.geopptWebUrl=o,this.geopptServiceUrl=s,t.viewer.scene.orderGroundPrimitives=new Cesium.OrderedGroundPrimitiveCollection,t.viewer.scene.primitives.add(t.viewer.scene.orderGroundPrimitives),this.viewer=t.viewer,this.showLayer=i,FR.DefaultConfig(),this.showLayer&&(this.lm=new c$(o,s,this.viewer),this.layerConfig=this.lm.getConfig()),this.showImageEffect=n,this.showImageEffect&&(this.iem=new $q(this.viewer,a,l)),this.pam=new d$(this.viewer)}return e.prototype.fetchPage=function(e){var t=this;fetch(e).then(function(e){return e.json()}).then(function(e){t.openScene(e).then(function(){var e=document.getElementById("pageList");if(e&&t.pages){for(var i=0;i<t.pages.length;i++){var n=t.pages[i],r=document.createElement("option");r.setAttribute("label",n.name),r.setAttribute("value",i.toString()),e.appendChild(r)}e.onchange=function(){var i=e.selectedIndex;t.changeSelect(t.pages[i]),t.currentPageIndex=i}}})}).catch(function(e){return f$.error("Request Failed",e)})},e.prototype.openScene=function(e){return g$(this,void 0,void 0,function(){var t,i,n,r,o,s,a,l,u,c;return y$(this,function(h){switch(h.label){case 0:return f$.log("this.drawService.open$.subscribe$",e),this.currentScene=e,i=[],(n=t instanceof gK)&&(t=gN(gK,e)),this.pages=[],i=this.currentScene.draws,f$.log("pages",i),0!==i.length?[3,2]:[4,this.add()];case 1:return h.sent(),[3,10];case 2:h.trys.push([2,7,8,9]),r=_$(i),o=r.next(),h.label=3;case 3:return o.done?[3,6]:((s=o.value).url||s.image?s.url=this.convertPageImage(s):s.url=this.fallBackPic,a=s,[4,this.getByPage(s.id,n)]);case 4:a.draws=h.sent(),this.transformToGraphManager(s),this.pages.push(s),h.label=5;case 5:return o=r.next(),[3,3];case 6:return[3,9];case 7:return l=h.sent(),u={error:l},[3,9];case 8:try{o&&!o.done&&(c=r.return)&&c.call(r)}finally{if(u)throw u.error}return[7];case 9:this.changeSelect(this.pages[0]),h.label=10;case 10:return[2]}})})},e.prototype.changeSelect=function(e){return g$(this,arguments,void 0,function(e,t,i){var n;return void 0===t&&(t=!0),void 0===i&&(i=!1),y$(this,function(r){return nJ.getInstance().stop(),this.clean(),this.stopAnimatin(),(n=document.querySelector("#GvolContainer"))&&this.pam.addAnimationToElement(n,e),this.loadPage(t,e,i),[2]})})},e.prototype.stopAnimatin=function(){return g$(this,void 0,void 0,function(){return y$(this,function(e){switch(e.label){case 0:return this.gm?[4,this.gm.animationManager.stop()]:[3,2];case 1:e.sent(),this.viewer.clock.shouldAnimate=!1,e.label=2;case 2:return[2]}})})},e.prototype.loadPage=function(e,t,i){return g$(this,void 0,void 0,function(){return y$(this,function(e){switch(e.label){case 0:return[4,this.createOrEdit(this.viewer,t.ext)];case 1:return e.sent(),this.currentPage=t,this.showLayer&&this.lm.pageToLayerList(this.currentPage),this.showImageEffect&&this.iem.initStatus(this.currentPage),this.pageLoadCompleted(),[2]}})})},e.prototype.pageLoadCompleted=function(){var e=this;this.gm.animationManager.playByGroup(new Date),this.plotEnable(!0),null==this.onAnimationChanged&&void 0===this.onAnimationChanged||this.autoPlayMode&&(this.pam.isPageAnimationCompleted?this.autoPlay():(this.pageAnimationCompletedSubscription&&(this.pageAnimationCompletedSubscription.unsubscribe(),this.pageAnimationCompletedSubscription=null),this.pageAnimationCompletedSubscription=this.pam.pageAnimationCompleted$.subscribe(function(t){e.autoPlay()})))},e.prototype.plotEnable=function(e){this.gm&&(this.gm.editor.isReadOnly=e)},e.prototype.createOrEdit=function(e){return g$(this,arguments,void 0,function(e,t){var i,n,r,o,s;return void 0===t&&(t=null),y$(this,function(a){return f$.log("恢复对象>>>",t),this.gm||(this.layerConfig={layerId:"plot"+Fm.newGuid(),editAfterCreate:!0,operatorEnable:!0,isReadOnly:!1},this.gm=new gW(this.engine,this.layerConfig),this.gm.animationManager.saStop$.subscribe(this.animationOnStop)),this.hm=new Hq(e),this.hm.outsideHtml&&this.currentScene&&(i=getComputedStyle(this.hm.outsideHtml),n=parseInt(i.width.substr(0,i.width.indexOf("p")))/this.currentScene.width,r=parseInt(i.height.substr(0,i.height.indexOf("p")))/this.currentScene.height,o=n<r?n:r,this.hm.scalePercent=o,this.hm.calculateScale()),this.sm=new Qq(this.hm.containerDiv),this.bfm=new Rq(e),this.mm=new Uq,t?(f$.log("createOrEdit",t),s=(s=JSON.stringify(t)).replace(this.placeHolderReg,this.geopptServiceUrl),t=JSON.parse(s),this.gm.load(t),t.html&&this.hm.setListByData(t.html),t.subtitle?this.sm.setSubtitleList(t.subtitle):this.sm.setSubtitleList([]),t.bigfile&&(f$.log("json bigfile",t.bigfile),this.bfm.setListByData(t.bigfile)),t.music&&this.mm.recoverData(t.music),this.plotList=this.gm.graphList,[2]):(this.sm.setSubtitleList([]),[2])})})},e.prototype.convertPageImage=function(e){if(e.url)return e.url;var t=m$.allocUnsafe(e.image.data.length);return t.fill(e.image.data,0),"data:image/jpeg;base64,"+t.toString("base64")},e.prototype.transformToGraphManager=function(e){var t=e.draws.find(function(e){return"graph"==e.type});return t&&(e.ext=t.ext),jf.Remove(e.draws,t),t},e.prototype.add=function(e){return g$(this,void 0,void 0,function(){var t;return y$(this,function(i){return null==window.viewer?(f$.log("球实例 未创建"),[2]):((t=new _K).pageTime=new Date,t.index=e?Number(e+1):this.pages.length+1,t.draws=[],this.changeSelect(this.pages[e]),[2])})})},e.prototype.getPage=function(e){return g$(this,arguments,void 0,function(e,t){var i;return void 0===t&&(t=!1),y$(this,function(n){switch(n.label){case 0:return i="".concat(this.geopptServiceUrl,"/page/getPage?id=").concat(e,"&isFromPublish=").concat(t),f$.log("getPage",i),[4,fetch(i)];case 1:return[4,n.sent().json()];case 2:return[2,n.sent()]}})})},e.prototype.getByPage=function(e){return g$(this,arguments,void 0,function(e,t){return void 0===t&&(t=!1),y$(this,function(i){switch(i.label){case 0:return[4,fetch("".concat(this.geopptServiceUrl,"/plot/getByPage?id=").concat(e,"&isFromPublish=").concat(t))];case 1:return[4,i.sent().json()];case 2:return[2,i.sent()]}})})},e.prototype.previousPage=function(){return g$(this,void 0,void 0,function(){return y$(this,function(e){switch(e.label){case 0:return this.pages&&this.pages.length>1&&this.currentPageIndex>0?[4,this.gm.animationManager.stop()]:[3,2];case 1:e.sent(),this.currentPageIndex=this.currentPageIndex-1,this.playState=C$.stoped,this.stopRotate=!1,this.changeSelect(this.pages[this.currentPageIndex]),e.label=2;case 2:return[2]}})})},e.prototype.nextPage=function(){return g$(this,void 0,void 0,function(){return y$(this,function(e){switch(e.label){case 0:return this.pages&&this.pages.length>1&&this.currentPageIndex<this.pages.length-1?[4,this.gm.animationManager.stop()]:[3,2];case 1:e.sent(),this.currentPageIndex=this.currentPageIndex+1,this.playState=C$.stoped,this.stopRotate=!1,this.changeSelect(this.pages[this.currentPageIndex]),e.label=2;case 2:return[2]}})})},e.prototype.playAndPause=function(){this.autoPlayMode?this.playState!=C$.playing||this.gm.animationManager.clock.isPaused?this.playState==C$.paused?this.continue():this.autoPlay():this.pause():this.playState!=C$.playing||this.gm.animationManager.clock.isPaused?this.playState==C$.paused?this.continue():this.next():this.pause()},e.prototype.pause=function(e){void 0===e&&(e=!1),this.playState=C$.paused,this.gm.animationManager.clock.pause(),this.stopRotate=!1,e&&this.clearAutoChanged()},e.prototype.continue=function(e){void 0===e&&(e=!1),this.gm.animationManager.clock.resume(),this.stopRotate=!0,this.playState=C$.playing,e&&this.setAutoChanged()},e.prototype.next=function(){var e=this;if(this.gm.animationManager.canNextAnimation()){var t=this.pages.find(function(t){return t.index==e.currentPageIndex+1});this.ani.startPlay(t),this.gm.animationManager.next(),this.playState=C$.playing,this.stopRotate=!0}else this.nextPage()},e.prototype.autoPlay=function(e){void 0===e&&(e=2),this.autoPlayMode&&(this.setAutoChanged(),this.next())},e.prototype.setAutoChanged=function(){var e=this;this.onAnimationChanged=function(){e.gm.animationManager.canNextAnimation()?(e.gm.animationManager.currentIndex+=1,e.gm.animationManager.clock.resume(),e.playState=C$.playing,e.stopRotate=!0):(e.playState=C$.stoped,e.hasFinished()?(e.onAnimationChanged=void 0,e.stopRotate=!1):e.next())}},e.prototype.clearAutoChanged=function(){this.onAnimationChanged=null},e.prototype.hasFinished=function(){return!(!this.pages||!this.gm)&&(this.currentPageIndex==this.pages.length-1&&this.gm.animationManager.currentIndex==this.gm.animationManager.animationGroupList.length-1&&this.playState==C$.stoped)},e.prototype.clean=function(){this.gm&&(this.gm.close(),this.gm.animationManager.destroy()),this.hm&&this.hm.clearHtmlDiv(),this.bfm&&this.bfm.cleanAll(),this.mm&&this.mm.clean()},e}();const v$=A$;var C$;!function(e){e[e.stoped=0]="stoped",e[e.playing=1]="playing",e[e.paused=2]="paused"}(C$||(C$={}));var b$=__webpack_require__(6763);const w$=class extends fT{constructor(e={}){const{container:t,options:i={},settings:n={},viewer:r=null,resourceUrl:o}=e;super(t,i,n,r),this._config=e,this._serviceManager=new Pq(this),this._serviceManager.load(o||i.resourceUrl),this._sceneManager=new v$(this._serviceManager,this,!1,!1),this._analysisModule=new zM(this),this._layerManager=new Bg(this),this._plot=new Tq(this._serviceManager),this._plot.loaded(),b$.log("[Plotting] 功能模块加载完成...")}getConfig(){return{...this._config}}capture(e,t,i){return capture(this._scene,e,t,i)}captureScreenExport(){const e=this.captureScreenshot();e&&e.then(e=>{e&&this.captureScreenSave(e,`${Date.now()}.png`)})}captureScreenshot(){const{when:e}=Cesium,t=e.defer();var i=this.viewer.scene.postRender.addEventListener(function(){i();try{this.viewer.scene.canvas.toBlob(function(e){t.resolve(e)},"image/png")}catch(e){t.reject(e)}},this);return this.viewer.scene.render(this.viewer.clock.currentTime),t.promise}captureScreenSave(e,t){if(null!==e)if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(e,t);else{const i=document.createElement("a"),n=document.querySelector("body");i.href=window.URL.createObjectURL(e),i.download=t,i.style.display="none",n.appendChild(i),i.click(),n.removeChild(i),window.URL.revokeObjectURL(i.href)}}get layerManager(){return this._layerManager}get tileLayer(){return this.layerManager.tileLayer}get graphicLayer(){return this.layerManager.graphicLayer}get plotLayer(){return this.layerManager.plotLayer}get dynamicLayer(){return this.layerManager.dynamicLayer}get serviceManager(){return this._serviceManager}get sceneManager(){return this._sceneManager}get analysisModule(){return this._analysisModule}get plot(){return this._plot}};__webpack_require__(5718);var x$=__webpack_require__(6763);function S$(e,t){const i=new Cesium.ClearCommand({pass:7});return i.boundingVolume=new Cesium.BoundingSphere,i.cull=!1,i._renderParams={},i.renderState=Cesium.RenderState.fromCache({}),i.execute=(n,r)=>{if(i.renderCallback){!function(e,t,i,n){var r=e._currentRenderState,o=e._currentPassState;e._currentRenderState=t,e._currentPassState=i,Cesium.RenderState.partialApply(e._gl,r,t,o,i,n)}(n,i.renderState,r,!1),i._renderParams.gl=n._gl,i._renderParams.owner=e,i._renderParams.id=t,i._renderParams.czm=i._renderParams.czm||{},i._renderParams.czm.context=n,i._renderParams.czm.passState=r,i._renderParams.czm.renderState=i.renderState,i._renderParams.czm.frameState=i.frameState,i._renderParams.czm.uniformState=n.uniformState,i._renderParams.czm.useLogDepth=i.frameState.useLogDepth;try{i.renderCallback(i._renderParams)}catch(e){x$.log("renderCallback执行有错: "+e)}}},i}class M${constructor(){this.show=!0,this.commands=[]}update(e){this.show&&this.commands.forEach(t=>{t.frameState=e,e.commandList.push(t)})}isDestroyed(){return!1}destroy(){return this.commands.length=0,Cesium.destroyObject(this)}}M$.createCommand=S$;const P$={GvolBase:zm.A,GvolObject:Cu.A,GvolGeoBase:rg.A,GvolLayer:ou,GvolPoint:Vu,Event:iu,CommandPrimitive:M$};class E$ extends zm.A{constructor(){super()}destroy(){return super.destroy()}}E$.defaultOptions={url:"",requestVertexNormals:!1,requestWaterMask:!1,requestMetadata:!0};E$.gvolSchema={title:"XbsjCesiumTerrainProvider Property",type:"object",properties:{url:{type:"string",title:"url",default:"",description:"url"},requestVertexNormals:{type:"boolean",title:"requestVertexNormals",default:!1,description:"requestVertexNormals"},requestWaterMask:{type:"boolean",title:"requestWaterMask",default:!1,description:"requestWaterMask"},requestMetadata:{type:"boolean",title:"requestMetadata",default:!0,description:"requestMetadata"}}},E$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url","requestVertexNormals","requestWaterMask","requestMetadata"]}];const L$=E$;class T$ extends zm.A{constructor(){super()}destroy(){return super.destroy()}}T$.defaultOptions={url:""};T$.gvolSchema={title:"GoogleEarthEnterpriseTerrainProvider Property",type:"object",properties:{url:{type:"string",title:"url",default:"",description:"url"}}},T$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url"]}];const O$=T$;class D$ extends zm.A{constructor(){super()}}D$.defaultOptions={tilingScheme:"GeographicTilingScheme"};D$.gvolSchema={title:"XbsjEllipsoidTerrainProvider Property",type:"object",properties:{tilingScheme:{type:"string",default:"GeographicTilingScheme",enum:["GeographicTilingScheme","WebMercatorTilingScheme"],description:"tilingScheme类型"}}},D$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["tilingScheme"]}];const B$={XbsjCesiumTerrainProvider:L$,XbsjEllipsoidTerrainProvider:D$,GoogleEarthEnterpriseTerrainProvider:O$};class I$ extends rg.A{constructor(e,t){super(e,t);const i=e.czm.scene;this._scene=i,e._gvolTerrains.push(this),this._terrainProvider=void 0,this._disposers=[],this._disposers.push((0,ng.A)(this,"enabled",this,"show")),zm.A.registerProperty(this,"gvolTerrainProvider",I$.defaultOptions.gvolTerrainProvider),this.gvolTerrainProvider.XbsjCesiumTerrainProvider=new B$.XbsjCesiumTerrainProvider,this.gvolTerrainProvider.XbsjEllipsoidTerrainProvider=new B$.XbsjEllipsoidTerrainProvider,this.gvolTerrainProvider.GoogleEarthEnterpriseTerrainProvider=new B$.GoogleEarthEnterpriseTerrainProvider,zm.A.registerProperty(this.gvolTerrainProvider,"XbsjCesiumTerrainProvider"),zm.A.registerProperty(this.gvolTerrainProvider,"XbsjEllipsoidTerrainProvider"),zm.A.registerProperty(this.gvolTerrainProvider,"GoogleEarthEnterpriseTerrainProvider"),this._disposers.push((0,Wm.reaction)(()=>{let e={_opt:this.gvolTerrainProvider[this.gvolTerrainProvider.type]};return{provider:this.gvolTerrainProvider,type:this.gvolTerrainProvider.type,providerOptions:e}},()=>{if("XbsjCesiumTerrainProvider"===this.gvolTerrainProvider.type){const e=this.gvolTerrainProvider.XbsjCesiumTerrainProvider;let t=e.url;if(e.url.startsWith("Ion(")){let i=/Ion\((\d+)/.exec(e.url),n=i[1]&&+i[1];n&&(t=Cesium.IonResource.fromAssetId(n))}this._terrainProvider=new Cesium.CesiumTerrainProvider({url:t,requestVertexNormals:e.requestVertexNormals,requestWaterMask:e.requestWaterMask,requestMetadata:e.requestMetadata})}else if("XbsjEllipsoidTerrainProvider"===this.gvolTerrainProvider.type){"WebMercatorTilingScheme"===this.gvolTerrainProvider.XbsjEllipsoidTerrainProvider.tilingScheme?this._terrainProvider=new Cesium.EllipsoidTerrainProvider({tilingScheme:new Cesium.WebMercatorTilingScheme}):this._terrainProvider=new Cesium.EllipsoidTerrainProvider}else{if("GoogleEarthEnterpriseTerrainProvider"!==this.gvolTerrainProvider.type)throw new Error("gvolTerrainProvider 未知类型!");{let e=this.gvolTerrainProvider.GoogleEarthEnterpriseTerrainProvider.url;this._terrainProvider=new Cesium.GoogleEarthEnterpriseTerrainProvider({url:e})}}this._terrainProvider&&(this._terrainProvider.show=this.show),this._earth._gvolTerrainZIndexDirty=!0},{fireImmediately:!0})),this._disposers.push((0,Wm.autorun)(()=>{const e=this.show;this._terrainProvider&&(this._terrainProvider.show=e)})),this._disposers.push((0,Wm.reaction)(()=>[this.show,this.gvolZIndex],()=>{this._earth._gvolTerrainZIndexDirty=!0},{fireImmediately:!0}))}flyTo(){this.rectangle&&4===this.rectangle.length&&this._scene.camera.flyTo({destination:new Cesium.Rectangle(...this.rectangle)})}gvolFromJSON(e){return super.gvolFromJSON(e)}isDestroyed(){return!1}destroy(){const e=this._earth._gvolTerrains.indexOf(this);if(-1===e)throw new Error("this._earth._gvolTerrains must contain!");return this._earth._gvolTerrains.splice(e,1),this._terrainProvider=void 0,this._earth._gvolTerrainZIndexDirty=!0,this._disposers.forEach(e=>e()),this._disposers.length=0,super.destroy()}}I$.TerrainProvider=B$,I$.defaultOptions={gvolTerrainProvider:{type:"XbsjEllipsoidTerrainProvider",XbsjEllipsoidTerrainProvider:null,XbsjCesiumTerrainProvider:null,GoogleEarthEnterpriseTerrainProvider:null},gvolZIndex:0,show:!0,rectangle:[-Math.PI,.5*-Math.PI,Math.PI,.5*Math.PI]};const R$={title:"Terrain Property",type:"object",properties:{gvolTerrainProvider:{type:"object",title:"地形资源提供",description:"地形资源提供",properties:{type:{type:"string",default:"XbsjEllipsoidTerrainProvider",enum:["XbsjEllipsoidTerrainProvider","XbsjCesiumTerrainProvider","GoogleEarthEnterpriseTerrainProvider"],description:"provider类型"},XbsjEllipsoidTerrainProvider:B$.XbsjEllipsoidTerrainProvider.gvolSchema,XbsjCesiumTerrainProvider:B$.XbsjCesiumTerrainProvider.gvolSchema,GoogleEarthEnterpriseTerrainProvider:B$.GoogleEarthEnterpriseTerrainProvider.gvolSchema}},gvolZIndex:{type:"number",title:"显示优先级",default:0,description:"显示优先级"},show:{type:"boolean",title:"显示",default:!0,description:"显示"},rectangle:{type:"array",title:"作用范围 [西, 南, 东, 北]",default:[-Math.PI,.5*-Math.PI,Math.PI,.5*Math.PI],description:"作用范围 [西, 南, 东, 北]"}}};I$.gvolSchema=R$;I$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["show","gvolTerrainProvider","gvolZIndex","rectangle"]}],Cu.A.registerType(I$,"Terrain");const N$=I$,k$=[{name:{chinese:"通用",english:"General"},properties:["show","alpha","brightness","contrast","hue","saturation","gamma","colorToAlphaThreshold","splitDirection","rectangle","gvolZIndex","gvolImageryProvider"]},{name:{chinese:"调试",english:"Debug"},properties:[]}];class F$ extends zm.A{constructor(){super(),(0,Wm.extendObservable)(this,{_imageryProvider:void 0,get provider(){return this._imageryProvider}},{_imageryProvider:Wm.observable.ref,provider:Wm.computed}),this._disposers=[],this._disposers.push((0,Wm.autorun)(()=>{this._imageryProvider=this.createImageryProvider()}))}createImageryProvider(){const e=null!=this.rectangle?Cesium.Rectangle.fromRadians(...this.rectangle):Cesium.Rectangle.MAX_VALUE;let t;"WebMercator"===this.tilingScheme?t=new Cesium.WebMercatorTilingScheme:"Geographic"===this.tilingScheme&&(t=new Cesium.GeographicTilingScheme);let i={url:this.url,rectangle:e,token:this.token,layers:this.layers,tileWidth:this.tileWidth,tileHeight:this.tileHeight,tilingScheme:t,credit:this.credit,maximumLevel:this.maximumLevel};if(this.token||delete i.token,!this.url)return;return new Cesium.ArcGisMapServerImageryProvider(i)}destory(){this._disposers.forEach(e=>e()),this._disposers.length=0}}F$.defaultOptions={url:"",rectangle:void 0,token:"",layers:"",tileWidth:256,tileHeight:256,tilingScheme:"Geographic",credit:"",maximumLevel:18};F$.gvolSchema={title:"ArcGisMapServerImageryProvider Property",type:"object",properties:{url:{type:"string",title:"url",default:"",description:"url"},token:{type:"string",title:"token",default:"",description:"token"},layers:{type:"string",title:"layers",default:"",description:"layers"},tileWidth:{type:"number",title:"tileWidth",default:"256",description:"tileWidth"},tileHeight:{type:"number",title:"tileHeight",default:"256",description:"tileHeight"},tilingScheme:{type:"string",title:"tilingScheme",default:"WebMercator",description:"tilingScheme"},credit:{type:"string",title:"credit",default:"",description:"credit"},rectangle:{type:"string",title:"rectangle",default:"undefined",description:"rectangle"},maximumLevel:{type:"number",title:"maximumLevel",default:"0",description:"maximumLevel"}}},F$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url","rectangle","token","layers","tileWidth","tileHeight","tilingScheme","credit","maximumLevel"]}];const H$=F$;class Y$ extends zm.A{constructor(){super(),(0,Wm.extendObservable)(this,{_imageryProvider:void 0},{_imageryProvider:Wm.observable.ref}),this._disposers=[];const e=()=>{this._imageryProvider=this.createImageryProvider()};e(),this._disposers.push((0,Wm.reaction)(()=>({url:this.url,rectangle:this.rectangle&&[...this.rectangle],tilingScheme:this.tilingScheme}),e))}get provider(){return this._imageryProvider}createImageryProvider(){const e=null!=this.rectangle?Cesium.Rectangle.fromRadians(...this.rectangle):this.rectangle;let t;"WebMercator"===this.tilingScheme?t=new Cesium.WebMercatorTilingScheme:"Geographic"===this.tilingScheme&&(t=new Cesium.GeographicTilingScheme);return new Cesium.UrlTemplateImageryProvider({url:this.url,rectangle:e,tilingScheme:t,minimumLevel:this.minimumLevel,maximumLevel:this.maximumLevel})}destory(){this._disposers.forEach(e=>e()),this._disposers.length=0}}Y$.defaultOptions={url:"",rectangle:void 0,tilingScheme:"WebMercator",minimumLevel:0,maximumLevel:void 0};const j$={title:"UrlTemplateImageryProvider Property",type:"object",properties:{url:{type:"string",title:"url",default:"",description:"url"},rectangle:{type:"array | undefined",items:{type:"number",minimum:-Math.PI,maximum:Math.PI},minItems:4,maxItems:4,default:void 0,description:"rectangle"},tilingScheme:{type:"string",title:"tilingScheme",default:"WebMercator",description:"tilingScheme"},minimumLevel:{type:"string",title:"minimumLevel",default:"0",description:"minimumLevel"},maximumLevel:{type:"string",title:"maximumLevel",default:"undefined",description:"maximumLevel"}}};Y$.gvolSchema=j$,Y$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url","rectangle","tilingScheme"]}];const U$=Y$;class G$ extends zm.A{constructor(){super(),(0,Wm.extendObservable)(this,{_imageryProvider:void 0,get provider(){return this._imageryProvider}},{_imageryProvider:Wm.observable.ref,provider:Wm.computed}),this._disposers=[],this._disposers.push((0,Wm.autorun)(()=>{this._imageryProvider=this.createImageryProvider()}))}createImageryProvider(){const e=null!=this.rectangle?Cesium.Rectangle.fromRadians(...this.rectangle):this.rectangle;let t;"WebMercator"===this.tilingScheme?t=new Cesium.WebMercatorTilingScheme:"Geographic"===this.tilingScheme&&(t=new Cesium.GeographicTilingScheme);const i=this.tileMatrixLabels||void 0;return new Cesium.WebMapTileServiceImageryProvider({url:this.url,format:this.format,layer:this.layer,style:this.style,tileMatrixSetID:this.tileMatrixSetID,tileMatrixLabels:i,tileWidth:this.tileWidth,tileHeight:this.tileHeight,tilingScheme:t,rectangle:e,minimumLevel:this.minimumLevel,maximumLevel:this.maximumLevel})}destory(){this._disposers.forEach(e=>e()),this._disposers.length=0}}G$.defaultOptions={url:"",format:"image/jpeg",layer:"",style:"",tileMatrixSetID:"",tileMatrixLabels:"",tileWidth:256,tileHeight:256,tilingScheme:"WebMercator",rectangle:void 0,minimumLevel:0,maximumLevel:18};G$.gvolSchema={title:"WebMapTileServiceImageryProvider Property",type:"object",properties:{url:{type:"string",title:"url",default:"",description:"url"},format:{type:"string",title:"format",default:"image/jpeg",description:"format"},layer:{type:"string",title:"layer",default:"",description:"layer"},style:{type:"string",title:"style",default:"",description:"style"},tileMatrixSetID:{type:"string",title:"tileMatrixSetID",default:"",description:"tileMatrixSetID"},tileMatrixLabels:{type:"string",title:"tileMatrixLabels",default:"",description:"tileMatrixLabels"},tileWidth:{type:"number",title:"tileWidth",default:"256",description:"tileWidth"},tileHeight:{type:"number",title:"tileHeight",default:"256",description:"tileHeight"},tilingScheme:{type:"string",title:"tilingScheme",default:"WebMercator",description:"tilingScheme"},rectangle:{type:"string",title:"url",default:"undefined",description:"url"},minimumLevel:{type:"number",title:"minimumLevel",default:0,description:"minimumLevel"},maximumLevel:{type:"number",title:"maximumLevel",default:24,description:"maximumLevel"}}},G$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url","format","layer","style","tileMatrixSetID","tileMatrixLabels","tileWidth","tileHeight","tilingScheme","rectangle","minimumLevel","maximumLevel"]}];const Q$=G$;class z$ extends zm.A{constructor(){super(),(0,Wm.extendObservable)(this,{_imageryProvider:void 0},{_imageryProvider:Wm.observable.ref}),this._disposers=[],this._disposers.push((0,Wm.autorun)(()=>{this._imageryProvider=this.createImageryProvider()}))}get provider(){return this._imageryProvider}createImageryProvider(){let e;"WebMercator"===this.tilingScheme?e=new Cesium.WebMercatorTilingScheme:"Geographic"===this.tilingScheme&&(e=new Cesium.GeographicTilingScheme);const t=null!=this.rectangle?Cesium.Rectangle.fromRadians(...this.rectangle):this.rectangle;let i;return i=Cesium.XbsjImageryProviderTools?Cesium.XbsjImageryProviderTools.createImageryProvider({uri:this.url,srcCoordType:this.srcCoordType,dstCoordType:this.dstCoordType,rectangle:t,minimumLevel:this.minimumLevel,maximumLevel:this.maximumLevel,tilingScheme:e}):null,i}destory(){this._disposers.forEach(e=>e()),this._disposers.length=0}}z$.defaultOptions={url:"",srcCoordType:"WGS84",dstCoordType:"WGS84",rectangle:void 0,tilingScheme:"WebMercator",minimumLevel:0,maximumLevel:18};const W$={title:"XbsjImageryProvider Property",type:"object",properties:{url:{type:"string",title:"url",default:"",description:"url"},srcCoordType:{type:"string",title:"srcCoordType",default:"WGS84",description:"srcCoordType"},dstCoordType:{type:"string",title:"dstCoordType",default:"WGS84",description:"dstCoordType"},rectangle:{type:"array",items:{type:"number",minimum:-Math.PI,maximum:Math.PI},minItems:4,maxItems:4,default:void 0,description:"rectangle"},minimumLevel:{type:"number",title:"minimumLevel",default:0,description:"最小级别"},maximumLevel:{type:"number",title:"maximumLevel",default:18,description:"最大级别"}}};z$.gvolSchema=W$,z$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url","srcCoordType","dstCoordType","rectangle","minimumLevel","maximumLevel"]}];const X$=z$;class V$ extends zm.A{constructor(){super(),(0,Wm.extendObservable)(this,{_imageryProvider:void 0},{_imageryProvider:Wm.observable.ref}),this._disposers=[],this._disposers.push((0,Wm.autorun)(()=>{this._imageryProvider=this.createImageryProvider()}))}get provider(){return this._imageryProvider}createImageryProvider(){if(!this.url)return;const e=this.rectangle&&Cesium.Rectangle.fromRadians(...this.rectangle);return new Cesium.TileMapServiceImageryProvider({url:this.url,rectangle:e,fileExtension:this.fileExtension,maximumLevel:this.maximumLevel})}destory(){this._disposers.forEach(e=>e()),this._disposers.length=0}}V$.defaultOptions={url:"",fileExtension:"png",maximumLevel:void 0,rectangle:void 0};const J$={title:"TileMapServiceImageryProvider Property",type:"object",properties:{url:{type:"string",title:"url",default:"",description:"url"},rectangle:{type:["array","null"],items:{type:"number",minimum:-Math.PI,maximum:Math.PI},minItems:4,maxItems:4,default:null,description:"rectangle"},fileExtension:{type:"string",title:"fileExtension",default:"png",description:"fileExtension"},maximumLevel:{type:["integer","null"],title:"maximumLevel",default:null,description:"maximumLevel"}}};V$.gvolSchema=J$,V$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url","rectangle","fileExtension","maximumLevel"]}];const K$=V$;class Z$ extends zm.A{constructor(){super(),(0,Wm.extendObservable)(this,{_imageryProvider:void 0,get provider(){return this._imageryProvider}},{_imageryProvider:Wm.observable.ref,provider:Wm.computed}),this._disposers=[],this._disposers.push((0,Wm.autorun)(()=>{this._imageryProvider=this.createImageryProvider()}))}createImageryProvider(){const e=null!=this.rectangle?Cesium.Rectangle.fromRadians(...this.rectangle):this.rectangle;let t;"WebMercator"===this.tilingScheme?t=new Cesium.WebMercatorTilingScheme:"Geographic"===this.tilingScheme&&(t=new Cesium.GeographicTilingScheme);const i=this.tileMatrixLabels||void 0;return new Cesium.WebMapServiceImageryProvider({url:this.url,format:this.format,layers:this.layers,credit:this.credit,style:this.style,tileMatrixSetID:this.tileMatrixSetID,tileMatrixLabels:i,tileWidth:this.tileWidth,tileHeight:this.tileHeight,tilingScheme:t,rectangle:e,minimumLevel:this.minimumLevel,maximumLevel:this.maximumLevel,enablePickFeatures:!1,crs:this.crs,srs:this.srs})}destory(){this._disposers.forEach(e=>e()),this._disposers.length=0}}Z$.defaultOptions={url:"",format:"image/jpeg",layers:"",credit:"",style:"",tileMatrixSetID:"",tileMatrixLabels:"",tileWidth:256,tileHeight:256,tilingScheme:"WebMercator",rectangle:void 0,minimumLevel:0,maximumLevel:18,crs:"",srs:""};Z$.gvolSchema={title:"WebMapServiceImageryProvider Property",type:"object",properties:{url:{type:"string",title:"url",default:"",description:"url"},format:{type:"string",title:"format",default:"image/jpeg",description:"format"},layers:{type:"string",title:"layers",default:"",description:"layers"},credit:{type:"string",title:"credit",default:"",description:"credit"},style:{type:"string",title:"style",default:"",description:"style"},tileMatrixSetID:{type:"string",title:"tileMatrixSetID",default:"",description:"tileMatrixSetID"},tileMatrixLabels:{type:"string",title:"tileMatrixLabels",default:"",description:"tileMatrixLabels"},tileWidth:{type:"number",title:"tileWidth",default:"256",description:"tileWidth"},tileHeight:{type:"number",title:"tileHeight",default:"256",description:"tileHeight"},tilingScheme:{type:"string",title:"tilingScheme",default:"WebMercator",description:"tilingScheme"},rectangle:{type:"string",title:"url",default:"undefined",description:"url"},minimumLevel:{type:"string",title:"minimumLevel",default:"0",description:"minimumLevel"},maximumLevel:{type:"string",title:"maximumLevel",default:"0",description:"maximumLevel"},crs:{type:"string",title:"crs",default:"",description:"crs"},srs:{type:"string",title:"srs",default:"",description:"srs"}}},Z$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url","format","layers","credit","style","tileMatrixSetID","tileMatrixLabels","tileWidth","tileHeight","tilingScheme","rectangle","minimumLevel","maximumLevel","crs","srs"]}];const q$=Z$;class $$ extends zm.A{constructor(){super(),(0,Wm.extendObservable)(this,{_imageryProvider:void 0},{_imageryProvider:Wm.observable.ref}),this._disposers=[];this._disposers.push((0,Wm.reaction)(()=>({url:this.url}),()=>{this._imageryProvider=this.createImageryProvider()}))}get provider(){return this._imageryProvider||(this._imageryProvider=this.createImageryProvider()),this._imageryProvider}createImageryProvider(){return new Cesium.GoogleEarthEnterpriseImageryProvider({url:this.url})}destory(){this._disposers.forEach(e=>e()),this._disposers.length=0}}$$.defaultOptions={url:""};$$.gvolSchema={title:"GoogleEarthEnterpriseImageryProvider Property",type:"object",properties:{url:{type:"string",title:"url",default:"",description:"url"}}},$$.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url"]}];const e0={UrlTemplateImageryProvider:U$,XbsjImageryProvider:X$,WebMapServiceImageryProvider:q$,WebMapTileServiceImageryProvider:Q$,TileMapServiceImageryProvider:K$,ArcGisMapServerImageryProvider:H$,GoogleEarthEnterpriseImageryProvider:$$},t0={title:"Imagery Property",type:"object",properties:{show:{type:"boolean",title:"show",default:!0,description:"是否在三维窗口中显示"},alpha:{type:"number",title:"alpha",default:1,description:"The alpha blending value of this layer, from 0.0 to 1.0."},brightness:{type:"number",title:"brightness",default:1,description:"The brightness of this layer. 1.0 uses the unmodified imagery"},contrast:{type:"number",title:"contrast",default:1,description:"The contrast of this layer. 1.0 uses the unmodified imagery color."},hue:{type:"number",title:"hue",default:0,description:"The hue of this layer. 0.0 uses the unmodified imagery color."},saturation:{type:"number",title:"saturation",default:1,description:"The saturation of this layer. 1.0 uses the unmodified imagery color."},gamma:{type:"number",title:"gamma",default:1,description:"The gamma correction to apply to this layer. 1.0 uses the unmodified imagery color."},colorToAlphaThreshold:{type:"number",title:"colorToAlphaThreshold",default:.004,description:"Threshold for color-to-alpha."},splitDirection:{type:"string",enum:["ImagerySplitDirection.NONE","ImagerySplitDirection.LEFT","ImagerySplitDirection.RIGHT"],title:"splitDirection",default:"ImagerySplitDirection.NONE",description:"The ImagerySplitDirection split to apply to this layer."},rectangle:{type:["array","undefined"],title:"rectangle",items:{type:"number"},default:void 0,minItems:4,maxItems:4,uniqueItems:!1,description:"The rectangle of the layer. This rectangle can limit the visible portion of the imagery provider."},gvolImageryProvider:{type:"object",title:"gvolImageryProvider",description:"影像资源信息配置",properties:{type:{type:"string",default:"XbsjImageryProvider",enum:["XbsjImageryProvider","UrlTemplateImageryProvider","WebMapServiceImageryProvider","WebMapTileServiceImageryProvider","TileMapServiceImageryProvider","ArcGisMapServerImageryProvider"],description:"provider类型"},XbsjImageryProvider:e0.XbsjImageryProvider.gvolSchema,UrlTemplateImageryProvider:e0.UrlTemplateImageryProvider.gvolSchema,WebMapServiceImageryProvider:e0.WebMapServiceImageryProvider.gvolSchema,WebMapTileServiceImageryProvider:e0.WebMapTileServiceImageryProvider.gvolSchema,createTileMapServiceImageryProvider:e0.TileMapServiceImageryProvider.gvolSchema,TileMapServiceImageryProvider:e0.TileMapServiceImageryProvider.gvolSchema,ArcGisMapServerImageryProvider:e0.ArcGisMapServerImageryProvider.gvolSchema}},gvolZIndex:{type:"number",title:"gvolZIndex",default:0,description:"确定影像的叠加顺序,zIndex越大约靠近顶层"}}},i0={alpha:1,brightness:1,contrast:1,hue:0,saturation:1,gamma:1,show:!0,colorToAlphaThreshold:.004};Object.assign(i0,{splitDirection:"ImagerySplitDirection.NONE",rectangle:void 0}),Object.assign(i0,{gvolImageryProvider:{XbsjImageryProvider:{},UrlTemplateImageryProvider:{},WebMapServiceImageryProvider:{},WebMapTileServiceImageryProvider:{},ArcGisMapServerImageryProvider:{},GoogleEarthEnterpriseImageryProvider:{},createTileMapServiceImageryProvider:{},TileMapServiceImageryProvider:{},type:"XbsjImageryProvider"},gvolZIndex:0});const n0=[["ImagerySplitDirection.NONE",0],["ImagerySplitDirection.LEFT",-1],["ImagerySplitDirection.RIGHT",1]],r0=new Map(n0,n0.map(([e,t])=>[t,e])),o0=(e,t)=>{if(!e.has(t))throw new Error(`prop ${t} is not right value!!!`);return e.get(t)};class s0 extends rg.A{constructor(e,t){super(e,t);const i=e.czm.scene;this._scene=i,(0,Wm.extendObservable)(this,{_imageryLayer:void 0},{_imageryLayer:Wm.observable.ref}),this.disposers.push(()=>{this._imageryLayer&&this._scene.imageryLayers.remove(this._imageryLayer),this._imageryLayer=void 0}),e._gvolImageries.push(this),this.disposers.push(()=>{const t=e._gvolImageries.indexOf(this);if(-1===t)throw new Error("earth._gvolImageries must contain!");e._gvolImageries.splice(t,1)}),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this.gvolImageryProvider.UrlTemplateImageryProvider=new e0.UrlTemplateImageryProvider,this.gvolImageryProvider.XbsjImageryProvider=new e0.XbsjImageryProvider,this.gvolImageryProvider.WebMapServiceImageryProvider=new e0.WebMapServiceImageryProvider,this.gvolImageryProvider.WebMapTileServiceImageryProvider=new e0.WebMapTileServiceImageryProvider,this.gvolImageryProvider.createTileMapServiceImageryProvider=new e0.TileMapServiceImageryProvider,this.gvolImageryProvider.TileMapServiceImageryProvider=new e0.TileMapServiceImageryProvider,this.gvolImageryProvider.ArcGisMapServerImageryProvider=new e0.ArcGisMapServerImageryProvider,this.gvolImageryProvider.GoogleEarthEnterpriseImageryProvider=new e0.GoogleEarthEnterpriseImageryProvider,this.disposers.push(zm.A.registerProperty(this,"gvolImageryProvider",s0.defaultOptions.gvolImageryProvider)),this.disposers.push(zm.A.registerProperty(this.gvolImageryProvider,"UrlTemplateImageryProvider",e0.UrlTemplateImageryProvider.defaultOptions)),this.disposers.push(zm.A.registerProperty(this.gvolImageryProvider,"XbsjImageryProvider",e0.XbsjImageryProvider.defaultOptions)),this.disposers.push(zm.A.registerProperty(this.gvolImageryProvider,"WebMapServiceImageryProvider",e0.WebMapServiceImageryProvider.defaultOptions)),this.disposers.push(zm.A.registerProperty(this.gvolImageryProvider,"WebMapTileServiceImageryProvider",e0.WebMapTileServiceImageryProvider.defaultOptions)),this.disposers.push(zm.A.registerProperty(this.gvolImageryProvider,"createTileMapServiceImageryProvider",e0.TileMapServiceImageryProvider.defaultOptions)),this.disposers.push(zm.A.registerProperty(this.gvolImageryProvider,"TileMapServiceImageryProvider",e0.TileMapServiceImageryProvider.defaultOptions)),this.disposers.push(zm.A.registerProperty(this.gvolImageryProvider,"ArcGisMapServerImageryProvider",e0.ArcGisMapServerImageryProvider.defaultOptions)),this.disposers.push(zm.A.registerProperty(this.gvolImageryProvider,"GoogleEarthEnterpriseImageryProvider",e0.GoogleEarthEnterpriseImageryProvider.defaultOptions)),this.disposers.push((0,Wm.reaction)(()=>{const e=this.gvolImageryProvider.type;return{provider:this.gvolImageryProvider&&this.gvolImageryProvider[e]&&this.gvolImageryProvider[e].provider,rectangle:this.rectangle}},({provider:e,rectangle:t})=>{this._imageryLayer&&this._scene.imageryLayers.remove(this._imageryLayer),e&&(this._imageryLayer=new Cesium.ImageryLayer(e,{alpha:this.alpha,brightness:this.brightness,contrast:this.contrast,hue:this.hue,saturation:this.saturation,gamma:this.gamma,show:this.show,colorToAlphaThreshold:this.colorToAlphaThreshold,splitDirection:o0(r0,this.splitDirection),rectangle:t&&Cesium.Rectangle.fromRadians(...t)}),this._scene.imageryLayers.add(this._imageryLayer),this._earth._gvolImageryZIndexDirty=!0)},{fireImmediately:!0})),this.disposers.push((0,Wm.autorun)(()=>{const e=this.alpha,t=this.brightness,i=this.contrast,n=this.hue,r=this.saturation,o=this.gamma,s=this.show,a=this.colorToAlphaThreshold,l=this.gvolZIndex,u=o0(r0,this.splitDirection);this._imageryLayer&&(this._imageryLayer.alpha=e,this._imageryLayer.brightness=t,this._imageryLayer.contrast=i,this._imageryLayer.hue=n,this._imageryLayer.saturation=r,this._imageryLayer.gamma=o,this._imageryLayer.show=s,this._imageryLayer.colorToAlphaThreshold=a,this._imageryLayer.splitDirection=u,this._imageryLayer.gvolZIndex=l)})),this.disposers.push((0,Wm.reaction)(()=>[this.show,this.gvolZIndex],()=>{this._imageryLayer&&(this._imageryLayer.show=this.show,this._imageryLayer.gvolZIndex=this.gvolZIndex),this._earth._gvolImageryZIndexDirty=!0}))}flyTo(){this.rectangle&&4===this.rectangle.length&&this._scene.camera.flyTo({destination:new Cesium.Rectangle(this.rectangle[0],this.rectangle[1],this.rectangle[2],this.rectangle[3])})}gvolFromJSON(e){return super.gvolFromJSON(e)}isDestroyed(){return!1}destroy(){return super.destroy()}}s0.ImageryProvider=e0,s0.defaultImageryProviderConfig=Object.freeze({TileMapServiceImageryProvider:{url:Ql.A.cesiumDir+"Assets/Textures/NaturalEarthII",fileExtension:"jpg"},type:"TileMapServiceImageryProvider"}),s0.defaultOptions=i0,Cu.A.registerType(s0,"Imagery"),s0.gvolSchema=t0,s0.gvolClassification=k$;const a0=s0,l0={url:"",basePath:"",show:!0,scale:1,minimumPixelSize:0,maximumScale:void 0,allowPicking:!0,incrementallyLoadTextures:!0,asynchronous:!0,clampAnimations:!0,shadows:"ShadowMode.ENABLED",debugShowBoundingVolume:!1,debugWireframe:!1,heightReference:"HeightReference.NONE",distanceDisplayCondition:void 0,color:[1,1,1,1],colorBlendMode:"ColorBlendMode.HIGHLIGHT",colorBlendAmount:.5,silhouetteColor:[1,0,0,1],silhouetteSize:0,lightColor:void 0,luminanceAtZenith:.2,specularEnvironmentMaps:void 0,gvolPosition:[0,0,0],gvolRotation:[0,0,0],gvolScale:[1,1,1],attachedPathGuid:"",cameraAttachedOffsetPosition:[0,0,0],cameraAttachedOffsetRotation:[0,-Math.PI/3,0],viewDistance:50};let u0,c0,h0,p0;class d0 extends rg.A{constructor(e,t){super(e,t);const i=e.czm.scene;(0,Wm.extendObservable)(this,{_primitive:void 0},{_primitive:Wm.observable.ref}),this.disposers.push(()=>{this._primitive&&(i.primitives.remove(this._primitive),this._primitive=void 0)}),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._createProperties=["url","allowPicking","incrementallyLoadTextures","asynchronous"],this._updateProperties=["show","scale","minimumPixelSize","maximumScale","clampAnimations","debugShowBoundingVolume","debugWireframe","colorBlendAmount","luminanceAtZenith","gvolPosition","gvolRotation","gvolScale","specularEnvironmentMaps"],this._updateProperties2=["shadows","distanceDisplayCondition","color","colorBlendMode","silhouetteColor","silhouetteSize","heightReference","lightColor"],this._scratchCartesian=new Cesium.Cartesian3,this._scratchModelMatrix=new Cesium.Matrix4;const n=()=>{var e,t,i,n,r,o,s,a,l,u;this._primitive&&(Ww.Math.getModelMatrix(this.gvolPosition,this.gvolRotation,this.gvolScale,this._scratchModelMatrix),this._primitive.modelMatrix=this._scratchModelMatrix,this._updateProperties.forEach(e=>{this._primitive[e]=this[e]}),e=this._primitive,t=new Cesium.Cartesian3(.170455150831422,.163151083190219,.196966760289763),i=new Cesium.Cartesian3(-.066550267689383,-.022088055746048,.078835009246127),n=new Cesium.Cartesian3(.038364097478591,.045714300098753,.063498904606215),r=new Cesium.Cartesian3(-.01436536331281,-.026490613715151,-.05018940406602),o=new Cesium.Cartesian3(-.05153278691789,-.050777795729986,-.056449044453032),s=new Cesium.Cartesian3(.043454596136534,.046672590104157,.05753010764661),a=new Cesium.Cartesian3(-.00164046627411,.001286638231156,.007228908989616),l=new Cesium.Cartesian3(-.042260855700641,-.046394335094707,-.057562936365585),u=new Cesium.Cartesian3(-.004953478914091,-.000479681664876,.008508150106928),u0=u0||[t,i,n,r,o,s,a,l,u],e.specularEnvironmentMaps?e.sphericalHarmonicCoefficients=u0:e.sphericalHarmonicCoefficients=void 0)};c0=c0||{"ShadowMode.CAST_ONLY":Cesium.ShadowMode.CAST_ONLY,"ShadowMode.DISABLED":Cesium.ShadowMode.DISABLED,"ShadowMode.ENABLED":Cesium.ShadowMode.ENABLED,"ShadowMode.RECEIVE_ONLY":Cesium.ShadowMode.RECEIVE_ONLY},h0=h0||{"ColorBlendMode.HIGHLIGHT":Cesium.ColorBlendMode.HIGHLIGHT,"ColorBlendMode.REPLACE":Cesium.ColorBlendMode.REPLACE,"ColorBlendMode.MIX":Cesium.ColorBlendMode.MIX},p0=p0||{"HeightReference.NONE":Cesium.HeightReference.NONE,"HeightReference.CLAMP_TO_GROUND":Cesium.HeightReference.CLAMP_TO_GROUND,"HeightReference.RELATIVE_TO_GROUND":Cesium.HeightReference.RELATIVE_TO_GROUND};const r=()=>{this._primitive&&(this._primitive.shadows=c0[this.shadows],this.distanceDisplayCondition?(!this._primitive.distanceDisplayCondition&&(this._primitive.distanceDisplayCondition=new Cesium.DistanceDisplayCondition),this._primitive.distanceDisplayCondition.near=this.distanceDisplayCondition[0],this._primitive.distanceDisplayCondition.far=this.distanceDisplayCondition[1]):this._primitive.distanceDisplayCondition=void 0,this._primitive.color.xbsjFromArray(...this.color),this._primitive.colorBlendMode=h0[this.colorBlendMode],this._primitive.silhouetteColor.xbsjFromArray(...this.silhouetteColor),this._primitive.silhouetteSize=this.silhouetteSize,this._primitive.heightReference=p0[this.heightReference],this.lightColor&&Array.isArray(this.lightColor)&&3===this.lightColor.length?(this._primitive.lightColor=this._scratchLightColor,this._primitive.lightColor.x=this.lightColor[0],this._primitive.lightColor.y=this.lightColor[1],this._primitive.lightColor.z=this.lightColor[2]):this._primitive.lightColor=void 0)};this._color=new Cesium.Color(1,1,1,1),this._silhouetteColor=new Cesium.Color(1,0,0,1),this._scratchLightColor=new Cesium.Cartesian3(1,1,1),this.disposers.push((0,Wm.reaction)(()=>{const e={};return this._createProperties.forEach(t=>{e[t]=this[t]}),e},e=>{this._primitive&&(this._earth.czm.scene.primitives.remove(this._primitive),this._primitive=void 0),e.scene=this._earth.czm.scene,this._primitive=this._earth.czm.scene.primitives.add(Cesium.Model.fromGltf(e)),this._primitive.id=this,this._primitive.color=this._color,this._primitive.silhouetteColor=this._silhouetteColor,n(),r()})),this.disposers.push((0,Wm.reaction)(()=>{const e={};return this._updateProperties.forEach(t=>{e[t]=this[t]}),JSON.stringify(e)},()=>{n()})),this.disposers.push((0,Wm.reaction)(()=>{const e={};return this._updateProperties2.forEach(t=>{e[t]=this[t]}),JSON.stringify(e)},()=>{r()})),this.disposers.push((0,Xx.p6)(this._earth,this,{positionProperty:"gvolPosition"})),this.disposers.push((0,Xx.Me)(this._earth,this,{positionPickingProperty:"creating",positionProperty:"gvolPosition"})),this.disposers.push((0,Xx.Wl)(this._earth,this,{positionProperty:"gvolPosition",rotationProperty:"gvolRotation"})),this.disposers.push((0,Xx.O9)(this._earth,this,{cameraAttachedFunc:function(e){const t=[],i=()=>{const t=this;for(let i=0;i<3;++i)e.position[i]=t.gvolPosition[i]+t.cameraAttachedOffsetPosition[i],e.rotation[i]=t.gvolRotation[i]+t.cameraAttachedOffsetRotation[i];e.viewDistance=t.viewDistance};return i(),t.push((0,Wm.reaction)(()=>({position:[...this.gvolPosition],rotation:[...this.gvolRotation],cameraAttachedOffsetPosition:[...this.cameraAttachedOffsetPosition],cameraAttachedOffsetRotation:[...this.cameraAttachedOffsetRotation],viewDistance:this.viewDistance}),i)),this._earth.camera.tracking.isCameraLike=!1,()=>{t.forEach(e=>e()),t.length=0}}})),(0,Wm.extendObservable)(this,{_ready:!1,get ready(){return this._ready},set ready(e){this._ready!==e&&(this._ready=e)}},{ready:Wm.computed}),this._readyDisposer=void 0,this.disposers.push(()=>this._readyDisposer=this._readyDisposer&&this._readyDisposer()),this.disposers.push((0,Wm.reaction)(()=>this._primitive,e=>{this._readyDisposer=this._readyDisposer&&this._readyDisposer(),this.ready=!1,e?this._readyDisposer=(()=>{let t=!0;return e.readyPromise.then(()=>{t&&(this.ready=!0),this._readyDisposer=this._readyDisposer&&this._readyDisposer()}),()=>t=!1})():this.ready=!1})),this.disposers.push(zm.A.registerPathAttachedGuid(this,{positionProperty:"gvolPosition",rotationProperty:"gvolRotation"}));{(0,Wm.extendObservable)(this,{_selfClicked:!1,_slefHovered:!1});const e=this._earth;this.disposers.push((0,Wm.reaction)(()=>({sc:this._selfClicked,sh:this._slefHovered}),()=>{this._selfClicked?(this.silhouetteColor.splice(0,4,...e.interaction.picking.clickedColor),this.silhouetteSize=3):this._slefHovered?(this.silhouetteColor.splice(0,4,...e.interaction.picking.hoveredColor),this.silhouetteSize=3):(this.silhouetteColor.splice(0,4,0,0,0,1),this.silhouetteSize=0)}))}}flyTo(){const e=this._earth.czm.scene.camera;if(e.cancelFlight(),this._flyToDisposer)throw new Error("_flyToDisposer should be undefined!");e._currentFlight={cancelTween:()=>{this._flyToDisposer=this._flyToDisposer&&this._flyToDisposer()}},this.ready?this._earth.camera.flyTo(this.gvolPosition,2*this._primitive.boundingSphere.radius):this._flyToDisposer=(0,Wm.reaction)(()=>this.ready,e=>{if(e){if(!this._primitive||!this._primitive.ready)throw new Error("this._primitive.ready should be true!");this._earth.camera.flyTo(this.gvolPosition,2*this._primitive.boundingSphere.radius),this._flyToDisposer=this._flyToDisposer&&this._flyToDisposer()}}),this._flyToOnlyOnce||(this._flyToOnlyOnce=!0,this.disposers.push(()=>{this._flyToDisposer=this._flyToDisposer&&this._flyToDisposer()}))}nativeModel(){return this._primitive}onclick(e){this._selfClicked=!0}onclickout(){this._selfClicked=!1}onmouseover(e){this._slefHovered=!0}onmouseout(){this._slefHovered=!1}}d0.ShadowMode={CAST_ONLY:"ShadowMode.CAST_ONLY",DISABLED:"ShadowMode.DISABLED",ENABLED:"ShadowMode.ENABLED",RECEIVE_ONLY:"ShadowMode.RECEIVE_ONLY"},d0.ColorBlendMode={HIGHLIGHT:"ColorBlendMode.HIGHLIGHT",REPLACE:"ColorBlendMode.REPLACE",MIX:"ColorBlendMode.MIX"},d0.HeightReference={NONE:"HeightReference.NONE",CLAMP_TO_GROUND:"HeightReference.CLAMP_TO_GROUND",RELATIVE_TO_GROUND:"HeightReference.RELATIVE_TO_GROUND"};const f0={title:"Model Property",type:"object",properties:{url:{type:"string",title:"资源URL路径",default:"",description:"资源URL路径"},basePath:{type:"string",title:"The base path that paths in the glTF JSON are relative to.",default:"",description:"The base path that paths in the glTF JSON are relative to."},show:{type:"boolean",title:"是否在三维窗口中显示",default:!0,description:"是否在三维窗口中显示"},scale:{type:"number",title:"A uniform scale applied to this model.",default:1,description:"A uniform scale applied to this model."},minimumPixelSize:{type:"number",title:"The approximate minimum pixel size of the model regardless of zoom.",default:0,description:"The approximate minimum pixel size of the model regardless of zoom."},maximumScale:{type:["number","undefined"],title:"The maximum scale for the model.",default:void 0,description:"The maximum scale for the model."},allowPicking:{type:"boolean",title:"When <code>true</code>, each glTF mesh and primitive is pickable with {@link Scene#pick}.",default:!0,description:"When <code>true</code>, each glTF mesh and primitive is pickable with {@link Scene#pick}."},incrementallyLoadTextures:{type:"boolean",default:!0,description:"Determine if textures may continue to stream in after the model is loaded."},asynchronous:{type:"boolean",default:!0,description:"Determines if model WebGL resource creation will be spread out over several frames or block until completion once all glTF files are loaded."},clampAnimations:{type:"boolean",default:!0,description:"Determines if the model's animations should hold a pose over frames where no keyframes are specified."},shadows:{type:"string",default:"ShadowMode.ENABLED",description:"Determines whether the model casts or receives shadows from each light source."},debugShowBoundingVolume:{type:"boolean",default:!0,description:"For debugging only. Draws the bounding sphere for each {@link DrawCommand} in the model."},debugWireframe:{type:"boolean",default:!1,description:"For debugging only. Draws the model in wireframe."},heightReference:{type:"string",default:"HeightReference.NONE",description:"Determines how the model is drawn relative to terrain."},distanceDisplayCondition:{type:["array","undefined"],default:"undefined",description:" 两个元素的数组,分别表示near和far"},color:{type:"array",items:{type:"number"},minItems:4,maxItems:4,default:[1,1,1,1],description:"颜色叠加"},colorBlendMode:{type:"string",default:"ColorBlendMode.HIGHLIGHT",description:"Defines how the color blends with the mode. "},colorBlendAmount:{type:"number",default:.5,description:"colorBlendAmount"},silhouetteColor:{type:"array",items:{type:"number"},minItems:4,maxItems:4,default:[1,0,0,1],description:"silhouetteColor"},silhouetteSize:{type:"number",default:0,description:"The size of the silhouette in pixels."},luminanceAtZenith:{type:"number",default:.2,description:"材质底色"},specularEnvironmentMaps:{type:["string","undefined"],default:void 0,description:"环境贴图"},gvolPosition:{type:"array",items:{type:"number"},minItems:3,maxItems:3,default:[0,0,0],description:"位置 [经度, 纬度, 高度]"},gvolRotation:{type:"array",items:{type:"number"},minItems:3,maxItems:3,default:[0,0,0],description:"姿态数组 [偏航角、俯仰角、翻转角]"},gvolScale:{type:"array",items:{type:"number"},minItems:3,maxItems:3,default:[1,1,1],description:"姿态数组 [偏航角、俯仰角、翻转角]"},attachedPathGuid:{type:"string",default:"",description:"绑定的路径的guid"},cameraAttachedOffsetPosition:{type:"array",items:{type:"number"},minItems:3,maxItems:3,default:[0,0,0],description:"位置偏移[经度偏移量, 纬度偏移量,高度偏移量]"},cameraAttachedOffsetRotation:{type:"array",items:{type:"number"},minItems:3,maxItems:3,default:[0,-Math.PI/3,0],description:"相机绑定后的姿态偏移"},viewDistance:{type:"number",default:50,description:"相机飞入时的视距设定"}}};d0.gvolSchema=f0;d0.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["url","basePath","show","scale","minimumPixelSize","maximumScale","allowPicking","incrementallyLoadTextures","asynchronous","clampAnimations","shadows","debugShowBoundingVolume","debugWireframe","heightReference","distanceDisplayCondition","color","colorBlendMode","colorBlendAmount","silhouetteColor","silhouetteSize","luminanceAtZenith","specularEnvironmentMaps","gvolPosition","gvolRotation","gvolScale","attachedPathGuid","cameraAttachedOffsetPosition","cameraAttachedOffsetRotation","viewDistance"]}],d0.defaultOptions=l0,d0.gvolEnvirement=Ql.A.getScriptBaseUrl("geovisearth.sdk")+"images/envirment-003.ktx",Cu.A.registerType(d0,"Model2");const m0=d0,g0={videoUrl:"",maskUrl:"",position:[0,0,0],rotation:[0,0,0],fovH:Math.PI/3,fovV:Math.PI/6,near:1,far:1e4,showHelper:!0,show:!0};let y0,_0;function A0({position:e,heading:t,pitch:i,roll:n},r){y0=y0||new Cesium.Quaternion,_0=_0||new Cesium.Matrix3;const o=Cesium.Transforms.eastNorthUpToFixedFrame(e,void 0,r);var s=Cesium.Matrix3.fromRotationX(Cesium.Math.PI_OVER_TWO,_0);return Cesium.Matrix4.multiplyByMatrix3(o,s,o),s=Cesium.Matrix3.fromRotationY(-t,_0),Cesium.Matrix4.multiplyByMatrix3(o,s,o),s=Cesium.Matrix3.fromRotationX(i,_0),Cesium.Matrix4.multiplyByMatrix3(o,s,o),s=Cesium.Matrix3.fromRotationZ(-n,_0),Cesium.Matrix4.multiplyByMatrix3(o,s,o),o}class v0 extends rg.A{constructor(e,t){super(e,t),(0,Wm.extendObservable)(this,{_videoElement:void 0,twoPostionsEditing:!1},{_videoElement:Wm.observable.ref}),this._cameraVideo=void 0,this._videoElement=void 0,this._disposers=this._disposers||[],this._disposers.push((0,ng.A)(this,"enabled",this,"show")),this._settingVideoElement=void 0,this._disposers.push(()=>{this._settingVideoElement&&(this._settingVideoElement.unsubscribe(),this._settingVideoElement=void 0)}),(0,Wm.extendObservable)(this,{_imageUrl:""});const i=e=>{this._settingVideoElement&&(this._settingVideoElement.unsubscribe(),this._settingVideoElement=void 0),this._videoElement=this._videoElement&&yS(this._videoElement),this._imageUrl="",e.endsWith(".jpg")||e.endsWith(".png")||e.startsWith("data:image")?this._imageUrl=e:[".ogg",".webm",".mp4",".m3u8",".flv"].some(t=>e.endsWith(t))&&(this._settingVideoElement=rxjs.from(gS(e)).subscribe(e=>{this._videoElement=e}))};this._disposers.push((0,Wm.reaction)(()=>this.videoUrl,()=>{i(this.videoUrl)},{fireImmediately:!0})),this._disposers.push((0,Wm.reaction)(()=>({_videoElement:this._videoElement,_imageUrl:this._imageUrl,position:[...this.position],rotation:[...this.rotation],fovH:this.fovH,fovV:this.fovV,near:this.near,far:this.far,showHelper:this.showHelper,show:this.show}),()=>{if(this._cameraVideo){A0({position:Cesium.Cartesian3.fromRadians(this.position[0],this.position[1],this.position[2]),heading:this.rotation[0],pitch:this.rotation[1],roll:this.rotation[2]},this._cameraVideo.inverseViewMatrix);const e=Math.tan(.5*this.fovH)/Math.tan(.5*this.fovV),t=this.fovH>this.fovV?this.fovH:this.fovV;this._cameraVideo.frustum.fov=t,this._cameraVideo.frustum.aspectRatio=e,this._cameraVideo.frustum.near=this.near,this._cameraVideo.frustum.far=this.far,this._cameraVideo.videoElement=this._videoElement||this._imageUrl,this._cameraVideo.showHelperPrimitive=this.showHelper,this._cameraVideo.show=this.show,this._cameraVideo.alphaImage=this.maskUrl}else{if(!this._videoElement&&!this._imageUrl)return;var e=A0({position:Cesium.Cartesian3.fromRadians(this.position[0],this.position[1],this.position[2]),heading:this.rotation[0],pitch:this.rotation[1],roll:this.rotation[2]});const i=Math.tan(.5*this.fovH)/Math.tan(.5*this.fovV),n=this.fovH>this.fovV?this.fovH:this.fovV;var t=new Cesium.PerspectiveFrustum({fov:n,aspectRatio:i,near:this.near,far:this.far});const r=new Cesium.XbsjCameraVideo({inverseViewMatrix:e,frustum:t,videoElement:this._videoElement||this._imageUrl,showHelperPrimitive:this.showHelper});this._earth.czm.scene.primitives.add(r),this._cameraVideo=r,this._cameraVideo._primitive.classificationType=2,this._cameraVideo.show=this.show,this._cameraVideo.alphaImage=this.maskUrl}})),this._disposers.push((0,Wm.autorun)(()=>{this.twoPostionsEditing=this._earth.interaction.directionCameraBinding.target===this})),this._disposers.push((0,Wm.reaction)(()=>this.twoPostionsEditing,()=>{this.twoPostionsEditing||this._earth.interaction.directionCameraBinding.target!==this?this.twoPostionsEditing&&(this._earth.interaction.directionCameraBinding.target=this):this._earth.interaction.directionCameraBinding.target=void 0},{fireImmediately:!0})),this._disposers.push((0,Xx.p6)(this._earth,this)),this._disposers.push((0,Xx.Wl)(this._earth,this)),this._disposers.push((0,Wm.reaction)(()=>this.maskUrl,()=>{this._cameraVideo&&this._cameraVideo.alphaImage!==this.maskUrl&&(this._cameraVideo.alphaImage=this.maskUrl)}))}get isCameraLike(){return!0}get videoElement(){return this._videoElement}setFovAndAspectRatioForCesium(e,t){t>1?(this.fovH=e,this.fovV=2*Math.atan(Math.tan(.5*fovH)/t)):(this.fovV=e,this.fovH=2*Math.atan(t*Math.tan(.5*fovV)))}setFovAndAspectRatioForWebGL(e,t){this.fovV=e,this.fovH=2*Math.atan(t*Math.tan(.5*fovV))}get fov(){return this.fovH>this.fovV?this.fovH:this.fovV}get aspectRatio(){return Math.tan(.5*this.fovH)/Math.tan(.5*this.fovV)}flyTo(){this._earth.czm.scene.camera.flyTo({destination:Cesium.Cartesian3.fromRadians(this.position[0],this.position[1],this.position[2]),orientation:{heading:this.rotation[0],pitch:this.rotation[1],roll:this.rotation[2]}})}setPositionWithCurrentCamera(){const e=this._earth.czm.scene.camera,t=e.positionCartographic;this.position=[t.longitude,t.latitude,t.height],this.rotation=[e.heading,e.pitch,e.roll]}destroy(){return this._disposers&&this._disposers.forEach(e=>e()),this._disposers.length=0,this._videoElement=this._videoElement&&yS(this._videoElement),this._cameraVideo&&(this._earth.czm.scene.primitives.remove(this._cameraVideo),this._cameraVideo=void 0),super.destroy()}}v0.defaultOptions=g0,Cu.A.registerType(v0,"CameraVideo");const C0=v0,b0={position:[0,0,0],rotation:[0,0,0],fovH:Math.PI/3,fovV:Math.PI/6,near:5,far:200,show:!0};class w0 extends rg.A{constructor(e,t,i){super(e,i),t&&"object"==typeof t&&!Array.isArray(t)&&this.gvolFromJSON(t),(0,Wm.extendObservable)(this,{twoPostionsEditing:!1}),this._viewshed=new Cesium.XbsjViewshed(e.czm.scene),this._earth.czm.scene.primitives.add(this._viewshed),this._disposers=this._disposers||[],this._disposers.push((0,ng.A)(this,"enabled",this,"show")),this._disposers.push((0,Wm.autorun)(()=>{this._viewshed.position=Cesium.Cartesian3.fromRadians(this.position[0],this.position[1],this.position[2]),this._viewshed.heading=this.rotation[0],this._viewshed.pitch=this.rotation[1],this._viewshed.roll=this.rotation[2],this._viewshed.fovH=this.fovH,this._viewshed.fovV=this.fovV,this._viewshed.near=this.near,this._viewshed.far=this.far,this._viewshed.enabled=this.show})),this._disposers.push((0,Wm.autorun)(()=>{this.twoPostionsEditing=this._earth.interaction.directionCameraBinding.target===this})),this._disposers.push((0,Wm.reaction)(()=>this.twoPostionsEditing,()=>{this.twoPostionsEditing||this._earth.interaction.directionCameraBinding.target!==this?this.twoPostionsEditing&&(this._earth.interaction.directionCameraBinding.target=this):this._earth.interaction.directionCameraBinding.target=void 0},{fireImmediately:!0})),this._disposers.push((0,Xx.p6)(this._earth,this)),this._disposers.push((0,Xx.Wl)(this._earth,this))}get isCameraLike(){return!0}flyTo(){this._earth.czm.scene.camera.flyTo({destination:Cesium.Cartesian3.fromRadians(this.position[0],this.position[1],this.position[2]),orientation:{heading:this.rotation[0],pitch:this.rotation[1],roll:this.rotation[2]}})}setPositionWithCurrentCamera(){const e=this._earth.czm.scene.camera,t=e.positionCartographic;(0,Wm.runInAction)(()=>{this.position=[t.longitude,t.latitude,t.height],this.rotation=[e.heading,e.pitch,e.roll]})}destroy(){return this._disposers.forEach(e=>e()),this._disposers.length=0,this._earth.czm.scene.primitives.remove(this._viewshed),this._viewshed=void 0,super.destroy()}}w0.defaultOptions=b0,Cu.A.registerType(w0,"Viewshed");const x0=w0;var S0=__webpack_require__(4354),M0=__webpack_require__(6763),P0=function(){return P0=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},P0.apply(this,arguments)},E0=function(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},L0=function(){function e(e,t){this.camera=null,this.cameraPrimitive=null,this.shadowMap=null,this.customPrimitive=null,this.postProcessStage=null,this.isDestroyed=!1,this.subFrustums=[],this.isMultiFrustumMode=!1,this._enabled=!0,this.viewer=e,this.scene=e.scene,this.config=P0({visibleColor:S0.Color.fromCssColorString("#00ff00").withAlpha(.5),hiddenColor:S0.Color.fromCssColorString("#ff0000").withAlpha(.4),showFrustum:!1,minHeight:2,texelSnap:!0},t),this.initialize()}return e.prototype.initialize=function(){try{this.scene.globe.shadows=S0.ShadowMode.ENABLED,this.scene.globe.depthTestAgainstTerrain=!0,this.ensureBuildingShadows();var e=this.config.hfov;e>170?(this.isMultiFrustumMode=!0,this.initializeMultiFrustum()):this.initializeSingleFrustum()}catch(e){M0.error("ViewshedAnalysis 初始化失败",e),this.destroy()}},e.prototype.initializeSingleFrustum=function(){this.camera=new S0.Camera(this.scene);var e=S0.Cartographic.fromCartesian(this.config.position);e.height=Math.max(e.height,this.config.minHeight||2);var t=S0.Cartesian3.fromRadians(e.longitude,e.latitude,e.height);this.camera.setView({destination:t,orientation:{heading:this.config.heading,pitch:this.config.pitch,roll:0}});var i=S0.Math.toRadians(this.config.hfov),n=S0.Math.toRadians(this.config.vfov),r=this.config.hfov/this.config.vfov,o=r>=1?i:n,s=this.config.distance,a=this.config.near||this.calculateNear(s);this.camera.frustum=new S0.PerspectiveFrustum({fov:o,aspectRatio:r,near:a,far:s});var l=this.calculateShadowMapSize(s),u=this.scene.context;this.shadowMap=new S0.ShadowMap({lightCamera:this.camera,context:u,isSpotLight:!0,cascadesEnabled:!1,maximumDistance:s,darkness:1,size:l}),this.config.texelSnap&&this.snapCameraToTexel();var c=this.shadowMap,h=this;this.customPrimitive={isDestroyed:function(){return!1},update:function(e){h._enabled&&e.shadowMaps.push(c)}},this.scene.primitives.add(this.customPrimitive),this.config.showFrustum&&(this.cameraPrimitive=new S0.DebugCameraPrimitive({camera:this.camera,color:S0.Color.GREEN.withAlpha(.3)}),this.scene.primitives.add(this.cameraPrimitive)),this.createPostProcessStage()},e.prototype.initializeMultiFrustum=function(){var e=this,t=this.config.hfov,i=this.config.vfov,n=this.config.distance,r=Math.ceil(t/90),o=t/r,s=o+2;M0.log("多视锥体模式: hfov=".concat(t,"°, 拆分为 ").concat(r," 个子视锥体"));var a=S0.Cartographic.fromCartesian(this.config.position);a.height=Math.max(a.height,this.config.minHeight||2);for(var l=S0.Cartesian3.fromRadians(a.longitude,a.latitude,a.height),u=this.config.near||this.calculateNear(n),c=this.calculateShadowMapSize(n),h=-t/2+o/2,p=function(t){var a=h+t*o,p=S0.Math.toDegrees(d.config.heading)+a,f=new S0.Camera(d.scene);f.setView({destination:l,orientation:{heading:S0.Math.toRadians(p),pitch:d.config.pitch,roll:0}});var m=s/i,g=S0.Math.toRadians(m>=1?s:i);f.frustum=new S0.PerspectiveFrustum({fov:g,aspectRatio:m,near:u,far:n});var y=new S0.ShadowMap({lightCamera:f,isSpotLight:!0,cascadesEnabled:!1,maximumDistance:n,darkness:1,size:c}),_=function(){return e.createSubPostProcessStage(y,t)},A={camera:f,shadowMap:y,customPrimitive:null,cameraPrimitive:void 0,postProcessStage:null,postProcessStageCreator:_,headingOffset:a,enabled:!0},v={isDestroyed:function(){return!1},update:function(e){A.enabled&&e.shadowMaps.push(y)},show:!0};if(d.scene.primitives.add(v),A.customPrimitive=v,d.config.showFrustum){var C=new S0.DebugCameraPrimitive({camera:f,color:S0.Color.fromHsl(t/r,1,.5,.3)});d.scene.primitives.add(C),A.cameraPrimitive=C}var b=_();A.postProcessStage=b,d.subFrustums.push(A)},d=this,f=0;f<r;f++)p(f)},e.prototype.calculateNear=function(e){return e<=100?.5:e<=500?1:e<=1e3?2:e<=2e3?5:e<=5e3?10:e<=1e4?20:50},e.prototype.calculateShadowMapSize=function(e){return e<=1e3?2048:e<=3e3?3072:4096},e.prototype.ensureBuildingShadows=function(){var e,t,i=0,n=0;null===(e=this.scene.primitives._primitives)||void 0===e||e.forEach(function(e){e instanceof S0.Cesium3DTileset?e.shadows!==S0.ShadowMode.CAST_ONLY&&e.shadows!==S0.ShadowMode.ENABLED&&(e.shadows=S0.ShadowMode.CAST_ONLY,i++):e instanceof S0.Model?e.shadows!==S0.ShadowMode.DISABLED&&(e.shadows=S0.ShadowMode.DISABLED,n++):void 0!==e.shadows&&e.shadows!==S0.ShadowMode.DISABLED&&(e.shadows=S0.ShadowMode.DISABLED,n++)});for(var r=this.viewer.entities.values,o=0;o<r.length;o++){var s=r[o];if(s.model){var a=s.model;(null===(t=a.shadows)||void 0===t?void 0:t.getValue(S0.JulianDate.now()))!==S0.ShadowMode.DISABLED&&(a.shadows=new S0.ConstantProperty(S0.ShadowMode.DISABLED),n++)}}M0.log("3D Tiles 启用阴影: ".concat(i,", 其他对象禁用阴影: ").concat(n))},e.prototype.snapCameraToTexel=function(){if(this.camera&&this.shadowMap){var e=this.shadowMap._textureSize.x,t=this.config.distance/e,i=this.camera.position,n=new S0.Cartesian3(Math.round(i.x/t)*t,Math.round(i.y/t)*t,Math.round(i.z/t)*t);this.camera.position=n}},e.prototype.createPostProcessStage=function(){var e=this,t=new S0.Cartesian2,i=this.config.distance,n={shadowMap_texture:function(){return e.shadowMap._shadowMapTexture},shadowMap_matrix:function(){return e.shadowMap._shadowMapMatrix},shadowMap_lightPositionEC:function(){return e.shadowMap._lightPositionEC},shadowMap_lightDirectionEC:function(){return e.shadowMap._lightDirectionEC},shadowMap_texelSizeDepthBiasAndNormalShadingSmooth:function(){return t.x=1/e.shadowMap._textureSize.x,t.y=1/e.shadowMap._textureSize.y,S0.Cartesian4.fromElements(t.x,t.y,0,.1)},shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness:function(){return S0.Cartesian4.fromElements(0,e.shadowMap._distance,e.shadowMap.maximumDistance,.35)},viewshed_biasParams:function(){var e,t;return i<=100?(e=3e-4,t=5):i<=500?(e=5e-4,t=8):i<=1e3?(e=8e-4,t=10):i<=2e3?(e=.0015,t=12):i<=5e3?(e=.003,t=15):i<=1e4?(e=.005,t=18):(e=.008,t=20),S0.Cartesian4.fromElements(e,t,i,0)},viewshed_visibleColor:function(){return e.config.visibleColor},viewshed_hiddenColor:function(){return e.config.hiddenColor}};this.postProcessStage=this.scene.postProcessStages.add(new S0.PostProcessStage({fragmentShader:"\nuniform sampler2D colorTexture;\nuniform sampler2D depthTexture;\nuniform sampler2D shadowMap_texture;\nuniform mat4 shadowMap_matrix;\nuniform vec4 shadowMap_lightPositionEC;\nuniform vec4 shadowMap_lightDirectionEC;\nuniform vec4 shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness;\nuniform vec4 shadowMap_texelSizeDepthBiasAndNormalShadingSmooth;\nuniform vec4 viewshed_biasParams;\nuniform vec4 viewshed_visibleColor;\nuniform vec4 viewshed_hiddenColor;\n\nin vec2 v_textureCoordinates;\n\nvoid main() {\n out_FragColor = texture(colorTexture, v_textureCoordinates);\n float depth = czm_unpackDepth(texture(depthTexture, v_textureCoordinates));\n if (depth >= 1.0) return;\n\n vec4 posEC = czm_windowToEyeCoordinates(gl_FragCoord.xy, depth);\n posEC /= posEC.w;\n vec4 shadowPos = shadowMap_matrix * posEC;\n shadowPos /= shadowPos.w;\n\n if (any(lessThan(shadowPos.xyz, vec3(0.0))) ||\n any(greaterThan(shadowPos.xyz, vec3(1.0)))) {\n return;\n }\n\n float distToLight = length(posEC.xyz - shadowMap_lightPositionEC.xyz);\n float maxDist = shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness.z;\n if (distToLight > maxDist) return;\n\n float baseBias = viewshed_biasParams.x;\n float nearMult = viewshed_biasParams.y;\n float nearBoost = 1.0;\n if (distToLight < 50.0) {\n nearBoost = mix(nearMult, 1.0, distToLight / 50.0);\n }\n\n float depthFactor = shadowPos.z;\n float depthBias = baseBias * nearBoost * (1.0 + depthFactor * 0.5);\n float dx = abs(dFdx(shadowPos.z));\n float dy = abs(dFdy(shadowPos.z));\n float slope = max(dx, dy);\n float slopeBias = slope * 0.8;\n float finalBias = depthBias + slopeBias;\n float maxBiasLimit = baseBias * nearMult * 3.0;\n finalBias = min(finalBias, maxBiasLimit);\n\n float shadowDepth = shadowPos.z - finalBias;\n shadowDepth = clamp(shadowDepth, 0.0, 1.0);\n\n float visibility = czm_shadowDepthCompare(\n shadowMap_texture, shadowPos.xy, shadowDepth);\n\n // 避免重复混合\n float greenRatio = out_FragColor.g / max(max(out_FragColor.r, out_FragColor.b), 0.001);\n float redRatio = out_FragColor.r / max(max(out_FragColor.g, out_FragColor.b), 0.001);\n bool isAlreadyVisible = (greenRatio > 1.5 && out_FragColor.g > 0.3);\n bool isAlreadyHidden = (redRatio > 1.5 && out_FragColor.r > 0.3);\n\n if (isAlreadyVisible || isAlreadyHidden) return;\n\n if (visibility > 0.5) {\n out_FragColor = mix(out_FragColor, viewshed_visibleColor, viewshed_visibleColor.a);\n } else {\n out_FragColor = mix(out_FragColor, viewshed_hiddenColor, viewshed_hiddenColor.a);\n }\n}\n",uniforms:n}))},e.prototype.createSubPostProcessStage=function(e,t){var i=this,n=new S0.Cartesian2,r=this.config.distance,o={shadowMap_texture:function(){return e._shadowMapTexture},shadowMap_matrix:function(){return e._shadowMapMatrix},shadowMap_lightPositionEC:function(){return e._lightPositionEC},shadowMap_lightDirectionEC:function(){return e._lightDirectionEC},shadowMap_texelSizeDepthBiasAndNormalShadingSmooth:function(){return n.x=1/e._textureSize.x,n.y=1/e._textureSize.y,S0.Cartesian4.fromElements(n.x,n.y,0,.1)},shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness:function(){return S0.Cartesian4.fromElements(0,e._distance,e.maximumDistance,.35)},viewshed_biasParams:function(){var e,t;return r<=100?(e=3e-4,t=5):r<=500?(e=5e-4,t=8):r<=1e3?(e=8e-4,t=10):r<=2e3?(e=.0015,t=12):r<=5e3?(e=.003,t=15):r<=1e4?(e=.005,t=18):(e=.008,t=20),S0.Cartesian4.fromElements(e,t,r,0)},viewshed_visibleColor:function(){return i.config.visibleColor},viewshed_hiddenColor:function(){return i.config.hiddenColor}};return this.scene.postProcessStages.add(new S0.PostProcessStage({fragmentShader:"\nuniform sampler2D colorTexture;\nuniform sampler2D depthTexture;\nuniform sampler2D shadowMap_texture;\nuniform mat4 shadowMap_matrix;\nuniform vec4 shadowMap_lightPositionEC;\nuniform vec4 shadowMap_lightDirectionEC;\nuniform vec4 shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness;\nuniform vec4 shadowMap_texelSizeDepthBiasAndNormalShadingSmooth;\nuniform vec4 viewshed_biasParams;\nuniform vec4 viewshed_visibleColor;\nuniform vec4 viewshed_hiddenColor;\n\nin vec2 v_textureCoordinates;\n\nvoid main() {\n out_FragColor = texture(colorTexture, v_textureCoordinates);\n float depth = czm_unpackDepth(texture(depthTexture, v_textureCoordinates));\n if (depth >= 1.0) return;\n\n vec4 posEC = czm_windowToEyeCoordinates(gl_FragCoord.xy, depth);\n posEC /= posEC.w;\n vec4 shadowPos = shadowMap_matrix * posEC;\n shadowPos /= shadowPos.w;\n\n if (any(lessThan(shadowPos.xyz, vec3(0.0))) ||\n any(greaterThan(shadowPos.xyz, vec3(1.0)))) {\n return;\n }\n\n float distToLight = length(posEC.xyz - shadowMap_lightPositionEC.xyz);\n float maxDist = shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness.z;\n if (distToLight > maxDist) return;\n\n float baseBias = viewshed_biasParams.x;\n float nearMult = viewshed_biasParams.y;\n float nearBoost = 1.0;\n if (distToLight < 50.0) {\n nearBoost = mix(nearMult, 1.0, distToLight / 50.0);\n }\n\n float depthFactor = shadowPos.z;\n float depthBias = baseBias * nearBoost * (1.0 + depthFactor * 0.5);\n float dx = abs(dFdx(shadowPos.z));\n float dy = abs(dFdy(shadowPos.z));\n float slope = max(dx, dy);\n float slopeBias = slope * 0.8;\n float finalBias = depthBias + slopeBias;\n float maxBiasLimit = baseBias * nearMult * 3.0;\n finalBias = min(finalBias, maxBiasLimit);\n\n float shadowDepth = shadowPos.z - finalBias;\n shadowDepth = clamp(shadowDepth, 0.0, 1.0);\n\n float visibility = czm_shadowDepthCompare(\n shadowMap_texture, shadowPos.xy, shadowDepth);\n\n // 避免重复混合 - 多视锥体模式\n float greenRatio = out_FragColor.g / max(max(out_FragColor.r, out_FragColor.b), 0.001);\n float redRatio = out_FragColor.r / max(max(out_FragColor.g, out_FragColor.b), 0.001);\n bool isAlreadyVisible = (greenRatio > 1.5 && out_FragColor.g > 0.3);\n bool isAlreadyHidden = (redRatio > 1.5 && out_FragColor.r > 0.3);\n\n if (isAlreadyVisible || isAlreadyHidden) return;\n\n if (visibility > 0.5) {\n out_FragColor = mix(out_FragColor, viewshed_visibleColor, viewshed_visibleColor.a);\n } else {\n out_FragColor = mix(out_FragColor, viewshed_hiddenColor, viewshed_hiddenColor.a);\n }\n}\n",uniforms:o}))},e.prototype.show=function(){var e,t;if(this.isMultiFrustumMode&&this.subFrustums.length>0)try{for(var i=E0(this.subFrustums),n=i.next();!n.done;n=i.next()){var r=n.value;r.enabled=!0,r.customPrimitive&&(r.customPrimitive.show=!0),r.postProcessStage&&(r.postProcessStage.enabled=!0),r.cameraPrimitive&&(r.cameraPrimitive.show=!0)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}else this._enabled=!0,this.postProcessStage&&(this.postProcessStage.enabled=!0),this.cameraPrimitive&&(this.cameraPrimitive.show=!0)},e.prototype.hide=function(){var e,t;if(this.isMultiFrustumMode&&this.subFrustums.length>0)try{for(var i=E0(this.subFrustums),n=i.next();!n.done;n=i.next()){var r=n.value;r.enabled=!1,r.customPrimitive&&(r.customPrimitive.show=!1),r.postProcessStage&&(this.scene.postProcessStages.remove(r.postProcessStage),r.postProcessStage=null),r.cameraPrimitive&&(r.cameraPrimitive.show=!1)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}else this._enabled=!1,this.postProcessStage&&(this.postProcessStage.enabled=!1),this.cameraPrimitive&&(this.cameraPrimitive.show=!1)},e.prototype.updatePosition=function(e){var t,i;this.config.position=e;var n=S0.Cartographic.fromCartesian(e);n.height=Math.max(n.height,this.config.minHeight||2);var r=S0.Cartesian3.fromRadians(n.longitude,n.latitude,n.height);if(this.isMultiFrustumMode)try{for(var o=E0(this.subFrustums),s=o.next();!s.done;s=o.next()){s.value.camera.position=r}}catch(e){t={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}else this.camera&&(this.camera.position=r,this.config.texelSnap&&this.snapCameraToTexel())},e.prototype.updateOrientation=function(e,t){var i,n;if(this.config.heading=e,this.config.pitch=t,this.isMultiFrustumMode)try{for(var r=E0(this.subFrustums),o=r.next();!o.done;o=r.next()){var s=o.value,a=S0.Math.toDegrees(e)+s.headingOffset;s.camera.setView({destination:s.camera.position,orientation:{heading:S0.Math.toRadians(a),pitch:t,roll:0}})}}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}else this.camera&&this.camera.setView({destination:this.camera.position,orientation:{heading:e,pitch:t,roll:0}})},e.prototype.updateDistance=function(e){var t,i;if(this.config.distance=e,M0.warn("更新距离建议重新创建 ViewshedAnalysis"),this.isMultiFrustumMode)try{for(var n=E0(this.subFrustums),r=n.next();!r.done;r=n.next()){var o=r.value;o.camera.frustum.far=e,o.shadowMap.maximumDistance=e}}catch(e){t={error:e}}finally{try{r&&!r.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}else this.camera&&(this.camera.frustum.far=e,this.shadowMap&&(this.shadowMap.maximumDistance=e))},e.prototype.destroy=function(){var e,t;if(!this.isDestroyed){if(this.isMultiFrustumMode){try{for(var i=E0(this.subFrustums),n=i.next();!n.done;n=i.next()){var r=n.value;try{r.postProcessStage&&this.scene.postProcessStages.remove(r.postProcessStage)}catch(e){M0.warn("移除 postProcessStage 失败",e)}try{r.customPrimitive&&this.scene.primitives.remove(r.customPrimitive)}catch(e){M0.warn("移除 customPrimitive 失败",e)}try{r.cameraPrimitive&&this.scene.primitives.remove(r.cameraPrimitive)}catch(e){M0.warn("移除 cameraPrimitive 失败",e)}try{r.shadowMap&&"function"==typeof r.shadowMap.destroy&&r.shadowMap.destroy()}catch(e){M0.warn("销毁 shadowMap 失败",e)}}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}this.subFrustums=[]}else{try{this.postProcessStage&&this.scene.postProcessStages.remove(this.postProcessStage)}catch(e){M0.warn("移除 postProcessStage 失败",e)}try{this.customPrimitive&&this.scene.primitives.remove(this.customPrimitive)}catch(e){M0.warn("移除 customPrimitive 失败",e)}try{this.cameraPrimitive&&this.scene.primitives.remove(this.cameraPrimitive)}catch(e){M0.warn("移除 cameraPrimitive 失败",e)}try{this.shadowMap&&"function"==typeof this.shadowMap.destroy&&this.shadowMap.destroy()}catch(e){M0.warn("销毁 shadowMap 失败",e)}}this.isDestroyed=!0,M0.log("ViewshedAnalysis 已销毁")}},e}();const T0=L0;var O0=__webpack_require__(6763);let D0,B0;function I0(e,t,i,n,r,o){B0=B0||[0,0,0];const s=B0;let a,l,u=e+.01;return u>n?(u=e-.01,u>=0&&(Hw(u,i,r,s),a=s,l=t)):(Hw(u,i,r,s),a=t,l=s),a&&l&&(Ww.Math.hpr(a,l,o),o[0]+=.5*Math.PI),o}class R0 extends rg.A{constructor(e,t){super(e,t),this._polyline=new dx.A(e),this.disposers.push(()=>this._polyline.destroy()),this.disposers.push((0,ng.u)(this._polyline,"positions",this,"positions")),this.disposers.push((0,ng.u)(this._polyline,"loop",this,"loop")),this._polyline.show=this.enabled&&this.show&&this.showHelper,this.disposers.push((0,Wm.reaction)(()=>this.enabled&&this.show&&this.showHelper,e=>{this._polyline.show=e,this._polyline.showHelper=e})),this.disposers.push((0,Xx.hp)(this._earth,this,{polylineCreatingProperty:"creating"})),this.disposers.push((0,Xx.wJ)(this._earth,this,{polylineEditingProperty:"editing"})),this._cameras=[],this.disposers.push(()=>{this._cameras.forEach(e=>e.destroy()),this._cameras.length=0}),this.disposers.push((0,Wm.intercept)(this,"rotations",e=>("update"===e.type&&this.rotations.splice(0,this.rotations.length,...e.newValue),null))),this.disposers.push((0,Wm.intercept)(this.rotations,e=>{if("splice"===e.type){for(let t=e.index;t<e.index+e.removedCount;++t)this._cameras[t].destroy();const t=e.added.map(()=>new nM(this._earth));this._cameras.splice(e.index,e.removedCount,...t)}return e})),this.disposers.push((0,Wm.reaction)(()=>({positions:[...this.positions.map(e=>[...e])],rotations:[...this.rotations.map(e=>[...e])],show:this.enabled&&this.show&&this.showDirection}),()=>{if(this.positions.length!==this.rotations.length)return;for(let e=0;e<this.positions.length;++e){const t=this.rotations[e],i=this.positions[e];this._cameras[e].position=i,this._cameras[e].rotation=t}const e=this.enabled&&this.show&&this.showDirection;this._cameras.forEach(t=>t.show=e)})),this._curve=new dx.A(e),this._curve.arcType="NONE",this._curve.show=this.enabled&&this.show,this.disposers.push(()=>this._curve=this._curve&&this._curve.destroy()),this.disposers.push((0,Wm.reaction)(()=>this.enabled&&this.show,e=>{this._curve.show=e})),(0,Wm.extendObservable)(this,{currentD:0,currentShow:!1,_currentPosition:[0,0,0],_currentRotation:[0,0,0],get currentPosition(){return this._currentPosition},get currentRotation(){return this._currentRotation}},{currentPosition:Wm.computed,currentRotation:Wm.computed}),this.fromJsonFilterKeys.push("currentD","currentShow"),this.disposers.push((0,Wm.reaction)(()=>({positions:[...this.positions.map(e=>[...e])],slices:this.slices,loop:this.loop}),()=>{this.positions.length<3||Fw(this.positions,this.slices,this.loop,this._curve.positions)})),(0,Wm.extendObservable)(this,{_loopPositions:[],_loopRotations:[],_ds:[],get ds(){return this._ds},get length(){if(this.loop&&this._ds.length>2)return this._ds[this._ds.length-2];return 0===this._ds.length?0:this._ds[this._ds.length-1]}},{ds:Wm.computed,length:Wm.computed}),this.disposers.push((0,Wm.reaction)(()=>({cameraAttached:this.cameraAttached,loop:this.loop,positions:[...this.positions.map(e=>[...e])],rotations:[...this.rotations.map(e=>[...e])]}),()=>{this._updateCurrentPositionAndRotation()},{delay:100})),this.disposers.push((0,Wm.observe)(this,"currentD",()=>{this._updateCurrentPositionAndRotation()})),this._currentCamera=new nM(this._earth),this._currentPoints=new sx.A(this._earth),this.disposers.push(()=>{this._currentCamera=this._currentCamera&&this._currentCamera.destroy(),this._currentPoints=this._currentPoints&&this._currentPoints.destroy()}),this._currentPoints.points.push({});this.disposers.push((0,Wm.reaction)(()=>({show:this.enabled&&this.currentShow,position:[...this.currentPosition],rotation:[...this.currentRotation]}),()=>{const e=this.enabled&&this.currentShow;this._currentCamera.show=e,this._currentPoints.show=e,e&&(this._currentPoints.points[0].position=[...this.currentPosition],this._currentCamera.position=this.currentPosition,this._currentCamera.rotation=this.currentRotation)})),(0,Wm.extendObservable)(this,{_target:[0,0,0],_targetEnabled:!1}),this.disposers.push((0,Wm.reaction)(()=>({_targetEnabled:this._targetEnabled,_target:this._target&&[...this._target]||void 0}),()=>{this._targetEnabled&&this.targetTo(this._target)})),this.disposers.push((0,Xx.Me)(this._earth,this,{positionPickingProperty:"targetPicking",positionProperty:"_target"})),this.disposers.push((0,Wm.intercept)(this,"targetPicking",e=>(this._targetEnabled=e.newValue,e))),(0,Wm.extendObservable)(this,{_pathPlayingListener:void 0,get playing(){return!!this._pathPlayingListener},set playing(e){e&&!this._pathPlayingListener?this._play():!e&&this._pathPlayingListener&&(this._pathPlayingListener=this._pathPlayingListener&&this._pathPlayingListener())}},{_pathPlayingListener:Wm.observable.ref,playing:Wm.computed}),this.disposers.push(()=>{this.playing=!1}),this.disposers.push((0,Xx.O9)(this._earth,this,{cameraAttachedFunc:function(e){const t=[];return t.push((0,Wm.reaction)(()=>({currentPosition:[...this.currentPosition],currentRotation:[...this.currentRotation],cameraAttachedOffsetPosition:[...this.cameraAttachedOffsetPosition],cameraAttachedOffsetRotation:[...this.cameraAttachedOffsetRotation],viewDistance:this.viewDistance}),t=>{for(let i=0;i<3;++i)e.position[i]=t.currentPosition[i]+t.cameraAttachedOffsetPosition[i],e.rotation[i]=t.currentRotation[i]+t.cameraAttachedOffsetRotation[i];e.viewDistance=t.viewDistance})),this._earth.camera.tracking.isCameraLike=!0,()=>{t.forEach(e=>e()),t.length=0}}}))}_updateCurrentPositionAndRotation(){const e=this.currentD;this._ds=zw(this.positions,this.rotations,this.loop,this._ds,this._loopPositions,this._loopRotations);const t=this.loop?this._loopPositions:this.positions,i=this.loop?this._loopRotations:this.rotations;Hw(e,this._ds,t,this._currentPosition),this.alwaysAlongThePath?I0(e,this._currentPosition,this._ds,this.length,t,this._currentRotation):Qw(e,this._ds,i,this._currentRotation)}addHeight(e){this.positions.forEach(t=>t[2]+=e)}targetTo(e,t){this.positions.length===this.rotations.length&&this.positions.forEach((i,n)=>{t&&!~t.indexOf(n)||(Ww.Math.hpr(i,e,this.rotations[n]),this.rotations[n][0]+=Cesium.Math.PI_OVER_TWO)})}directionAlongThePath(e){var t=this.positions.length;for(let i=0;i<t;++i)if(!e||~e.indexOf(i)){const e=i+(this.loop?1:0),t=this.loop?this._loopPositions:this.positions;I0(this._ds[e],t[e],this._ds,this.length,t,this.rotations[i])}}directionLerpBetween(e=0,t=-1){if(-1===t&&(t=this.positions.length-1),t<e)return void O0.warn("directionLerpBetween 参数错误!");this.directionLerpBetween_scratchDs=[],zw(this.positions,this.rotations,!1,this.directionLerpBetween_scratchDs);const i=[this._ds[e],this._ds[t]],n=[this.rotations[e],this.rotations[t]];for(let r=e+1;r<t;++r)Qw(this._ds[r],i,n,this.rotations[r])}flyTo(){this._polyline.flyTo()}get isCameraLike(){return!0}currentCameraApply(){D0=D0||new Cesium.Cartesian3;const e=this._earth.czm.scene;Cesium.Cartesian3.fromRadians(...this.currentPosition,void 0,D0);e.camera.setView({destination:D0,orientation:{heading:this.currentRotation[0],pitch:this.currentRotation[1],roll:this.currentRotation[2]}})}_play(){const e=this._earth.czm.scene;this.currentSpeed>0&&this.currentD===this.length&&(this.currentD=0),this.currentSpeed<0&&0===this.currentD&&(this.currentD=this.length);let t=Date.now();this._pathPlayingListener=e.postUpdate.addEventListener((e,i)=>{let n=Date.now(),r=n-t;if(t=n,this.currentSpeed>0){const e=this.currentD+.001*r*this.currentSpeed;this.loopPlay?e>this.length?this.currentD=0:this.currentD=e:e>this.length?(this.currentD=this.length,this._pathPlayingListener=this._pathPlayingListener&&this._pathPlayingListener()):this.currentD=e}else{const e=this.currentD+.001*r*this.currentSpeed;this.loopPlay?this.currentD=e<0?this.length:e:e<0?(this.currentD=0,this._pathPlayingListener=this._pathPlayingListener&&this._pathPlayingListener()):this.currentD=e}})}destroy(){return super.destroy()}}R0.defaultOptions={positions:[],rotations:[],show:!0,showHelper:!1,showDirection:!1,loop:!1,slices:100,alwaysAlongThePath:!1,cameraAttachedOffsetPosition:[0,0,0],cameraAttachedOffsetRotation:[0,0,0],viewDistance:0,currentSpeed:50,loopPlay:!1};R0.gvolSchema={title:"Path Property",type:"object",properties:{show:{type:"boolean",title:"显示路径",default:"true",description:"显示路径"},showHelper:{type:"boolean",title:"辅助线框",default:"false",description:"辅助线框"},showDirection:{type:"boolean",title:"显示方向",default:"true",description:"显示方向"},loop:{type:"boolean",title:"是否为环线",default:"false",description:"是否为环线"},slices:{type:"number",title:"曲线分段数",default:"100",description:"曲线分段数"},alwaysAlongThePath:{type:"boolean",title:"始终沿着路径方向运动",default:"false",description:"始终沿着路径方向运动"},currentSpeed:{type:"number",title:"当前播放速度,单位为米",default:50,description:"当前播放速度,单位为米"},loopPlay:{type:"boolean",title:"是否循环播放",default:"false",description:"是否循环播放"}}};R0.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["show","showHelper","showDirection","loop","slices","alwaysAlongThePath"]}],Cu.A.registerType(R0,"Path");const N0=R0;const k0={};["airfield","airport","alcohol-shop","america-football","art-gallery","bakery","bank","bar","baseball","basketball","beer","bicycle","building","bus","cafe","camera","campsite","car","cemetery","cesium","chemist","cinema","circle","circle-stroked","city","clothing-store","college","commercial","cricket","cross","dam","danger","disability","dog-park","embassy","emergency-telephone","entrance","farm","fast-food","ferry","fire-station","fuel","garden","gift","golf","grocery","hairdresser","harbor","heart","heliport","hospital","ice-cream","industrial","land-use","laundry","library","lighthouse","lodging","logging","london-underground","marker","marker-stroked","minefield","mobilephone","monument","museum","music","oil-well","park","park2","parking","parking-garage","pharmacy","pitch","place-of-worship","playground","police","polling-place","post","prison","rail","rail-above","rail-light","rail-metro","rail-underground","religious-christian","religious-jewish","religious-muslim","restaurant","roadblock","rocket","school","scooter","shop","skiing","slaughterhouse","soccer","square","square-stroked","star","star-stroked","suitcase","swimming","telephone","tennis","theatre","toilets","town","town-hall","triangle","triangle-stroked","village","warehouse","waste-basket","water","wetland","zoo"].forEach(e=>k0[e]=e);const F0=k0;class H0{constructor(){const e=document.createElement("div");e.style.position="absolute",e.style.width="500px",e.style.height="400px",e._width=500,e._height=400,e.style.left="0px",e._left=0,e.style.bottom="0px",e._bottom=0,document.body.appendChild(e);const t=document.createElement("iframe");t.style.width="100%",t.style.height="100%",e.appendChild(t),e.style.display="none",e._show=!1,this._wrapper=e,this._iframe=t}setPosition(e,t){const i=this._wrapper;i._left===e&&i._bottom===t||(i.style.left=`${e}px`,i._left=e,i.style.bottom=`${t}px`,i._bottom=t)}set show(e){const t=this._wrapper;t._show!==!!e&&(t._show=!!e,t._show?t.style.display="block":t.style.display="none")}get show(){return this._wrapper._show}set uri(e){const t=this._iframe;t.src!==e&&(t.src=e)}get uri(){return this._iframe.src}set width(e){const t=this._wrapper;t.width!==e&&(t._width=e,t.style.width=`${e}px`)}get width(){return this._wrapper._width}set height(e){const t=this._wrapper;t.height!==e&&(t._height=e,t.style.height=`${e}px`)}get height(){return this._wrapper._height}destroy(){document.body.removeChild(this._wrapper),this._wrapper=void 0,this._iframe=void 0}}var Y0=__webpack_require__(6763);const j0={race:Ax};class U0 extends rg.A{constructor(e,t){super(e,t),zm.A.registerPosition(this),zm.A.registerProperty(this,"pinBuilder"),this.disposers.push((0,Xx.p6)(this._earth,this,{positionEditingProperty:"editing"})),this.disposers.push((0,Xx.Me)(this._earth,this,{positionPickingProperty:"creating"})),this.disposers.push((0,Xx.O9)(this._earth,this,{cameraAttachedFunc:function(e){const t=[];return t.push((0,SM.A)(e,"position",this,"position")),e.rotation=[0,-Math.PI/3,0],t.push((0,SM.A)(e,"viewDistance",this,"viewDistance")),this._earth.camera.tracking.isCameraLike=!1,t.push((0,Wm.reaction)(()=>({position:[...this.position],cameraAttachedOffsetPosition:[...this.cameraAttachedOffsetPosition],cameraAttachedOffsetRotation:[...this.cameraAttachedOffsetRotation],viewDistance:this.viewDistance}),t=>{for(let i=0;i<3;++i)e.position[i]=t.position[i]+t.cameraAttachedOffsetPosition[i],e.rotation[i]=t.cameraAttachedOffsetRotation[i];e.viewDistance=t.viewDistance})),this._earth.camera.tracking.isCameraLike=!1,()=>{t.forEach(e=>e()),t.length=0}}})),this._pinBuilder=this._earth._pinBuilder;const i=this._earth.czm.viewer;(0,Wm.extendObservable)(this,{_winPos:[0,0,0,0],get winPos(){return this._winPos}},{winPos:Wm.computed}),this._cartesian=new Cesium.Cartesian3,this._winCartesian=new Cesium.Cartesian2;const n=()=>{if(this.computingWinPos||this.imageUrl&&this.isDivImage)try{const t=this._earth.czm.scene,i=Cesium.Cartesian3.fromRadians(...this.position,void 0,this._cartesian);if(i){const n=t.cartesianToCanvasCoordinates(i,this._winCartesian);if(n){const t=e.czm.viewer.canvas.clientHeight,i=e.czm.viewer.canvas.clientWidth;this._winPos.splice(0,4,n.x,n.y,i-n.x,t-n.y)}}}catch(e){Y0.warn("Pin计算窗口坐标时有误")}};this.disposers.push((0,Wm.autorun)(()=>n())),this.disposers.push((()=>{const e=this._earth,t=j0.race(e.eventSource.contextSizeChanged,e.eventSource.cameraChanged).subscribe(n);return()=>{t.unsubscribe()}})()),this._position=Cesium.Cartesian3.fromDegrees(0,0,0),this._billboardEnt=i.entities.add({name:this.name,position:this._position,point:{pixelSize:5,color:Cesium.Color.YELLOW,outlineColor:Cesium.Color.BLACK,outlineWidth:1},billboard:{verticalOrigin:Cesium.VerticalOrigin.BOTTOM,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,scale:1},label:{text:"",style:Cesium.LabelStyle.FILL_AND_OUTLINE,font:"48px 楷体",fillColor:Cesium.Color.WHITE,outlineColor:Cesium.Color.BLACK,outlineWidth:6,scale:.5,disableDepthTestDistance:1e9,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,horizontalOrigin:Cesium.HorizontalOrigin.LEFT,pixelOffset:new Cesium.Cartesian2(20,-25),verticalOrigin:Cesium.VerticalOrigin.BOTTOM},polyline:{show:!1,positions:[]}}),this.disposers.push(()=>{i.entities.remove(this._billboardEnt)}),this._billboardEnt._gvolOwner=this,this.disposers.push(()=>{this._billboardEnt&&i.entities.remove(this._billboardEnt),this._billboardEnt=void 0}),this._fillColor=new Cesium.Color(...this.pinBuilder.fillColor),this._outlineColor=new Cesium.Color(...this.pinBuilder.outlineColor),this.disposers.push((0,Wm.autorun)(()=>{this._fillColor.xbsjFromArray(...this.pinBuilder.fillColor),this._outlineColor.xbsjFromArray(...this.pinBuilder.outlineColor),this.imageUrl&&this.isDivImage?this._billboardEnt.show=!1:(this.imageUrl&&!this.isDivImage?this._billboardEnt.billboard.image=this.imageUrl:this.pinBuilder.makiIcon?this._billboardEnt.billboard.image=this._pinBuilder.fromMakiIconId(this.pinBuilder.makiIcon,this._outlineColor,this.pinBuilder.size,this._fillColor):this.pinBuilder.text?this._billboardEnt.billboard.image=this._pinBuilder.fromText(this.pinBuilder.text,this._outlineColor,this.pinBuilder.size,this._fillColor):this._billboardEnt.billboard.image=this._pinBuilder.fromColor(this._outlineColor,this.pinBuilder.size,this._fillColor),this._billboardEnt.label.outlineColor=this._outlineColor,this._billboardEnt.label.fillColor=this._fillColor,this._billboardEnt.polyline.material=this._outlineColor)})),(0,Wm.extendObservable)(this,{_innerShow:!1});const r=()=>{const e=this.position.xepd(this._earth.camera.position);e>this.near&&e<this.far?this._innerShow=!0:this._innerShow=!1};r();const o=this._earth.czm.scene.camera;this.disposers.push((0,Wm.reaction)(()=>({cameraPos:[o.position.x,o.position.y,o.position.z],pos:[...this.position],near:this.near,far:this.far}),r));const s=()=>{if(this.imageUrl&&this.isDivImage){if(!this._divImage){const e=document.createElement("img");this.earth.czm.viewer.container.appendChild(e),this._divImage=e,this.disposers.push(()=>{this.earth.czm.viewer.container.removeChild(this._divImage),this._divImage=void 0})}this._currentImageUrl&&this._currentImageUrl===this.imageUrl||(this._divImage.src=this.imageUrl,this._currentImageUrl=this.imageUrl,this._divImage.style.position="absolute",this._divImage.style.left="0px",this._divImage.style.bottom="0px",this._divImage.style.pointerEvents="none",this._divImage.style.display="none",this._divImage.onload=()=>{Y0.log("divImage onload, width: ",this._divImage.naturalWidth),s()})}const e=!!this.imageUrl&&this.isDivImage&&this._divImage&&this.enabled&&this.show&&this._innerShow;if(this._divImage){const t=this._divImage;t.style.display=e?"block":"none",t.style.width!==this.scale*t.naturalWidth+"px"&&(t.style.width=this.scale*t.naturalWidth+"px"),t.style.height!==this.scale*t.naturalHeight+"px"&&(t.style.height=this.scale*t.naturalHeight+"px"),t.style.left!==`${this.winPos[0]}px`&&(t.style.left=this.winPos[0]-this.origin[0]*t.naturalWidth*this.scale+"px"),t.style.bottom!==`${this.winPos[3]}px`&&(t.style.bottom=this.winPos[3]-this.origin[1]*t.naturalHeight*this.scale+"px")}const t=this.enabled&&this.show&&!this.isDivImage;this._billboardEnt.show=t};s(),this.disposers.push((0,Wm.reaction)(()=>({enabled:this.enabled,show:this.show,isDivImage:this.isDivImage,_innerShow:this._innerShow,imageUrl:this.imageUrl,origin:[...this.origin],winPos:[...this.winPos]}),s)),this.disposers.push((0,Wm.autorun)(()=>{this._billboardEnt.label.text=this.pinBuilder.extText,this._billboardEnt.label.font=this.pinBuilder.extTextFont,this._billboardEnt.label.pixelOffset=new Cesium.Cartesian2(this.pinBuilder.extTextPixelOffset[0],this.pinBuilder.extTextPixelOffset[1])})),(0,Wm.extendObservable)(this,{_innerScale:1}),this.disposers.push((0,Wm.autorun)(()=>{this._billboardEnt.name=this.name,this._position=Cesium.Cartesian3.fromRadians(...this.position,void 0,this._position),this._billboardEnt.position=this._position;const e=this.scale*this._innerScale;this._billboardEnt.billboard.scale=e}));const a=()=>{const e=[Cesium.HorizontalOrigin.LEFT,Cesium.HorizontalOrigin.CENTER,Cesium.HorizontalOrigin.RIGHT],t=[Cesium.VerticalOrigin.BOTTOM,Cesium.VerticalOrigin.CENTER,Cesium.VerticalOrigin.TOP];this._billboardEnt.billboard.horizontalOrigin=e[2*this.origin[0]|0],this._billboardEnt.billboard.verticalOrigin=t[2*this.origin[1]|0]};a(),this.disposers.push((0,Wm.reaction)(()=>[...this.origin],a)),this._distanceDisplayCondition=new Cesium.DistanceDisplayCondition(this.near,this.far),this.disposers.push((0,Wm.autorun)(()=>{this.near<this.far?(this._distanceDisplayCondition.near=this.near,this._distanceDisplayCondition.far=this.far,this._billboardEnt.billboard.distanceDisplayCondition=this._distanceDisplayCondition,this._billboardEnt.point.distanceDisplayCondition=this._distanceDisplayCondition,this._billboardEnt.label.distanceDisplayCondition=this._distanceDisplayCondition):Y0.warn("this.near >= this.far, pin error!");const e=this.disableDepthTestDistance>1e7?1e7:this.disableDepthTestDistance;this._billboardEnt.billboard.disableDepthTestDistance=e,this._billboardEnt.point.disableDepthTestDistance=e,this._billboardEnt.label.disableDepthTestDistance=e})),this.disposers.push((0,Wm.autorun)(()=>{this._billboardEnt.point.show=this.enabled&&this.show&&this.pointShow}));const l=new Cesium.Cartesian3,u=new Cesium.Cartesian3,c=()=>{this._billboardEnt.polyline.show=this.enabled&&this.show&&this.lineShow;const e=Cesium.Cartesian3.fromRadians(this.position[0],this.position[1],this.position[2],void 0,l),t=Cesium.Cartesian3.fromRadians(this.position[0],this.position[1],this.position[2]-this.lineHeight,void 0,u);this._billboardEnt.polyline.positions=[e,t]};c(),this.disposers.push((0,Wm.reaction)(()=>({position:[...this.position],lineShow:this.lineShow,lineHieght:this.lineHeight}),c));{this._mutex=new LM,this.disposers.push(()=>this._mutex=this._mutex&&this._mutex.destroy());const e=LM.isStringValid,t=LM.setStringEmpty,i=[LM.createObj([this,"imageUrl",e,t]),LM.createObj([this.pinBuilder,"text",e,t]),LM.createObj([this.pinBuilder,"makiIcon",e,t])];this._mutex.mutexCollection=i}this.disposers.push(zm.A.registerPathAttachedGuid(this)),zm.A.registerProperty(this,"iframe"),this._popupIframe=void 0,this.disposers.push(()=>{this._popupIframe=this._popupIframe&&this._popupIframe.destroy()}),this.disposers.push((0,Wm.reaction)(()=>this.iframe.uri,()=>{""===this.iframe.uri?this._popupIframe&&(this._popupIframe.show=!1,this._popupIframe.uri=""):(this._createPopupIframe(),this._popupIframe.show&&this._popupIframe.uri!==this.iframe.uri&&(this._popupIframe.uri=this.iframe.uri))})),this.disposers.push((0,Wm.reaction)(()=>({width:this.iframe.width,height:this.iframe.height}),()=>{if(this._popupIframe&&this._popupIframe.show){const{width:e,height:t}=this.iframe;this._popupIframe.width=e,this._popupIframe.height=t}})),this.disposers.push((0,Wm.reaction)(()=>({winPos:[...this.winPos],offsetX:this.iframe.offsetX,offsetY:this.iframe.offsetY}),()=>{if(this._popupIframe&&this._popupIframe.show){const{winPos:[e,t,i,n]}=this;this._popupIframe.setPosition(e+this.iframe.offsetX,n+this.iframe.offsetY)}}))}_createPopupIframe(){if(!this._popupIframe){this._popupIframe=new H0,this._popupIframe.show=!1,this._popupIframe.width=this.iframe.width,this._popupIframe.height=this.iframe.height;const{winPos:[e,t,i,n]}=this;this._popupIframe.setPosition(e+this.iframe.offsetX,n+this.iframe.offsetY)}}onmouseover(){this._innerScale=1.1}onmouseout(){this._innerScale=1}onclick(){if(""!==this.iframe.uri&&this._popupIframe&&!this._popupIframe.show){this._popupIframe.show=!0,this._popupIframe.uri!==this.iframe.uri&&(this._popupIframe.uri=this.iframe.uri);const{width:e,height:t}=this.iframe;this._popupIframe.width=e,this._popupIframe.height=t;const{winPos:[i,n,r,o]}=this;this._popupIframe.setPosition(i+this.iframe.offsetX,o+this.iframe.offsetY)}}onclickout(){this._popupIframe&&this._popupIframe.show&&(this._popupIframe.show=!1)}flyTo(){this._earth.camera.flyTo(this.position,this.viewDistance,[0,-Math.PI/3,0])}destroy(){return super.destroy()}}U0.defaultOptions={position:[0,0,0],scale:1,imageUrl:"",isDivImage:!1,origin:[.5,0],pinBuilder:{text:"",extText:"",extTextFont:"48px 楷体",extTextPixelOffset:[30,-20],makiIcon:"",size:48,fillColor:[1,1,1,1],outlineColor:[0,.5,0,1]},iframe:{uri:"",width:500,height:400,offsetX:-250,offsetY:60},near:0,far:Number.MAX_VALUE,disableDepthTestDistance:Number.MAX_VALUE,show:!0,attachedPathGuid:"",pointShow:!1,lineShow:!1,lineHeight:0,computingWinPos:!0,cameraAttachedOffsetPosition:[0,0,0],cameraAttachedOffsetRotation:[0,-Math.PI/3,0],viewDistance:100},U0.MakiIcon=F0;const G0={title:"Pin Property",type:"object",properties:{show:{type:"boolean",title:"显示路径",default:!0,description:"显示路径"},origin:{type:"array",title:"原点",default:[.5,0],description:"原点"},position:{type:"array",title:"位置数组",default:[0,0,0],description:"位置数组"},viewDistance:{type:"number",title:"显示路径",default:100,description:"显示路径"},scale:{type:"number",title:"缩放比例",default:1,description:"缩放比例"},imageUrl:{type:"string",title:"图像路径",default:"",description:"图像路径"},isDivImage:{type:"boolean",title:"image是否用div绘制",default:"false",description:"image是否用div绘制"},pinBuilder:{title:"pinBuilder属性",type:"object",properties:{text:{type:"string",title:"文本",default:"",description:"文本"},extText:{type:"string",title:"附带文本",default:"",description:"附带文本"},extTextFont:{type:"string",title:"附带文本字体样式",default:"",description:"附带文本字体样式"},extTextPixelOffset:{type:"array",title:"像素偏移",default:[0,0],description:"像素偏移"},makiIcon:{type:"string",title:"图像字符",default:"",description:"图像字符"},size:{type:"number",title:"尺寸",default:48,description:"尺寸"},fillColor:{type:"array",title:"填充颜色",default:[1,1,1,1],description:"填充颜色"},outlineColor:{type:"array",title:"轮廓颜色",default:[0,.5,0,1],description:"轮廓颜色"}}},iframe:{uri:"",width:500,height:400,offsetX:-250,offsetY:60},pointShow:{type:"boolean",title:"点是否可见",default:!1,description:"点是否可见"},lineShow:{type:"boolean",title:"点是否可见",default:!1,description:"点是否可见"},lineHeight:{type:"number",title:"指示线条长度",default:0,description:"指示线条长度"},near:{type:"number",title:"最近可视距离",default:0,description:"最近可视距离"},far:{type:"number",title:"最远可视距离",default:Number.MAX_VALUE,description:"最远可视距离"},disableDepthTestDistance:{type:"number",title:"深度检测失效距离",default:Number.MAX_VALUE,description:"让深度检测失效的距离(在该距离以内不论是否被遮挡,都显示),设置为0时表示始终会被遮挡。"}}};U0.gvolSchema=G0;U0.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["disableDepthTestDistance","far","imageUrl","isDivImage","near","origin","pinBuilder","iframe","pointShow","lineShow","lineHeight","position","scale","show","viewDistance"]}],Cu.A.registerType(U0,"Pin");const Q0=U0;class z0 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,ng.A)(this,"enabled",this,"show"));const i=this._earth.czm.scene;this._primitive=void 0,this.disposers.push(()=>{this._primitive&&(i.primitives.remove(this._primitive),this._primitive=void 0)}),window.updateTimeRatioInner=new Function("instanceIndex","frameState","result","self","\n // return result;\n var data = self._cloneData[instanceIndex];\n var st = data.startTime;\n var dr = data.duration;\n const color = data.color;\n const bgColor = data.bgColor;\n const bidirectional = data.bidirectional;\n const repeat = data.repeat;\n const time = self.currentTime;\n var diff = time > st ? time - st : time + self.timeDuration - st;\n var timeRatio = Math.min(diff / dr, 1.0);\n // return timeRatio;\n result.timeRatio = timeRatio;\n color && result.color.splice(0, 4, ...color);\n if (bgColor) {\n if (!result.bgColor) {\n result.bgColor = [0, 0, 0, 0.2];\n }\n result.bgColor.splice(0, 4, ...bgColor);\n } else {\n result.bgColor = [color[0], color[1], color[2], 0.2];\n }\n result.bidirectional = (typeof bidirectional === 'number') ? bidirectional : 0;\n Number.isFinite(repeat) && (result.repeat = repeat);\n return result;\n ");const n=(e,t,i)=>window.updateTimeRatioInner(e,t,i,this),r=()=>{const e=this.color,t=this.show,i=this._primitive;if(i){i.show=t;const n=i.appearance.material.uniforms.color;n.red=e[0],n.green=e[1],n.blue=e[2],n.alpha=e[3]}};this.disposers.push((0,Wm.reaction)(()=>({data:JSON.stringify(this.data),translucentPass:this.translucentPass}),()=>{this._primitive&&(i.primitives.remove(this._primitive),this._primitive=void 0),this._cloneData=JSON.parse(JSON.stringify(this.data));const e=Cesium.xbsjCreateODLinesPrimitive(this._cloneData,this.color,n,this.translucentPass);this._primitive=i.primitives.add(e),r()})),this.disposers.push((0,Wm.reaction)(()=>({color:[...this.color],show:this.show,timeDuration:this.timeDuration,currentTime:this.currentTime,loopPlay:this.loopPlay}),r)),(0,Wm.extendObservable)(this,{_pathPlayingListener:void 0,get playing(){return!!this._pathPlayingListener},set playing(e){e&&!this._pathPlayingListener?this._play():!e&&this._pathPlayingListener&&(this._pathPlayingListener=this._pathPlayingListener&&this._pathPlayingListener())}},{_pathPlayingListener:Wm.observable.ref,playing:Wm.computed}),this.disposers.push(()=>{this.playing=!1})}_play(){const e=this._earth.czm.scene;this.currentD===this.timeDuration&&(this.currentD=0);let t=Date.now();this._pathPlayingListener=e.postUpdate.addEventListener((e,i)=>{let n=Date.now(),r=n-t;t=n;const o=this.currentTime+.001*r;this.loopPlay?o>this.timeDuration?this.currentTime=0:this.currentTime=o:o>this.timeDuration?(this.currentTime=this.timeDuration,this._pathPlayingListener=this._pathPlayingListener&&this._pathPlayingListener()):this.currentTime=o})}destroy(){return super.destroy()}}z0.defaultOptions={data:[],color:[1,1,1,1],show:!0,timeDuration:5,currentTime:0,loopPlay:!0,translucentPass:!0};z0.gvolSchema={title:"ODLines Property",type:"object",properties:{data:[],translucentPass:!0,show:{type:"boolean",title:"显示",default:!0,description:"显示"},timeDuration:{type:"number",title:"播放总时长",default:5,description:"播放总时长"},currentTime:{type:"number",title:"当前播放时刻",default:0,description:"当前播放时刻"},loopPlay:{type:"boolean",title:"是否循环播放",default:!0,description:"是否循环播放"}}};z0.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["show","data","color","timeDuration","currentTime","loopPlay","translucentPass"]}],Cu.A.registerType(z0,"ODLines");const W0=z0;var X0=__webpack_require__(6763),V0=function(){var e,t,i,n;return function(r,o,s,a,l,u,c){e=e||new Cesium.Matrix4,t=t||new Cesium.Quaternion,i=i||new Cesium.Matrix4;const h=a,p=l,d=[(n=n||Cesium.Cartesian3.fromElements)(-h,-p,0),n(1-h,-p,0),n(1-h,1-p,0),n(-h,1-p,0)];var f=Cesium.Transforms.eastNorthUpToFixedFrame(r,Cesium.Ellipsoid.WGS84,e),m=Cesium.Quaternion.fromAxisAngle(Cesium.Cartesian3.UNIT_Z,u,t),g=(0,Cesium.Matrix4.fromTranslationQuaternionRotationScale)(Cesium.Cartesian3.ZERO,m,n(o,s),i),y=Cesium.Matrix4.multiply(f,g,g);return void 0===c&&(c=[]),d.forEach(function(e,t){void 0===c[t]&&(c[t]=new Cesium.Cartesian3),Cesium.Matrix4.multiplyByPoint(y,e,c[t])}),c}}();let J0;const K0=function(e,t,i,n=i,r=.5,o=.5,s=0,a="",l,u,c){if(void 0===t||void 0===i)return void X0.error("必须设置center和width!");J0=J0||new Cesium.Cartesian3;const h=Cesium.Cartesian3.fromRadians(t[0],t[1],t[2],void 0,J0);n=n||i,s=s||0,l=l||new Cesium.Color(1,1,1,1),a=a||"";var p=V0(h,i,n,r,o,s),d=new Cesium.Material({fabric:{type:"Image",uniforms:{image:a}}});return d.uniforms.color.xbsjFromArray(...l),new Cesium.GroundPrimitive({geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(p),stRotation:-s}),id:e}),appearance:new Cesium.MaterialAppearance({material:d}),classificationType:u,asynchronous:!1,allowPicking:void 0===c||!!c})};class Z0 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,Xx.p6)(this._earth,this,{positionEditingProperty:"editing"})),this.disposers.push((0,Xx.Me)(this._earth,this,{positionPickingProperty:"creating"}));const i=this._earth.czm.scene;this._primitive=void 0,this.disposers.push(()=>{this._primitive&&(i.groundPrimitives.remove(this._primitive),this._primitive=void 0)}),this.disposers.push((0,ng.A)(this,"enabled",this,"show"));const n=()=>{const e=this.currentTime/this.timeDuration,t=this.color,i=this.show,n=this._primitive;if(n){n.show=i,n.appearance.material.uniforms.time=e;const r=n.appearance.material.uniforms.color;r.red=t[0],r.green=t[1],r.blue=t[2],r.alpha=t[3]}};this.disposers.push((0,Wm.reaction)(()=>({position:[...this.position],radius:this.radius}),()=>{this._primitive&&(i.groundPrimitives.remove(this._primitive),this._primitive=void 0);const e=K0(this,this.position,this.radius,void 0,void 0,void 0,void 0,void 0,void 0,void 0,!1);e.appearance.material=Cesium.Material.fromType("XbsjGroundScanline"),this._primitive=i.groundPrimitives.add(e),n()})),this.disposers.push((0,Wm.autorun)(n)),(0,Wm.extendObservable)(this,{_pathPlayingListener:void 0,get playing(){return!!this._pathPlayingListener},set playing(e){e&&!this._pathPlayingListener?this._play():!e&&this._pathPlayingListener&&(this._pathPlayingListener=this._pathPlayingListener&&this._pathPlayingListener())}},{_pathPlayingListener:Wm.observable.ref,playing:Wm.computed}),this.disposers.push(()=>{this.playing=!1})}_play(){const e=this._earth.czm.scene;this.currentTime===this.timeDuration&&(this.currentTime=0);let t=Date.now();this._pathPlayingListener=e.postUpdate.addEventListener((e,i)=>{let n=Date.now(),r=n-t;t=n;const o=this.currentTime+.001*r;this.loopPlay?o>this.timeDuration?this.currentTime=0:this.currentTime=o:o>this.timeDuration?(this.currentTime=this.timeDuration,this._pathPlayingListener=this._pathPlayingListener&&this._pathPlayingListener()):this.currentTime=o})}flyTo(){this._earth.camera.flyTo(this.position,2*this.radius,[0,-Math.PI/3,0])}}Z0.defaultOptions={position:[0,0,0],radius:100,color:[1,1,0,1],show:!0,timeDuration:1,currentTime:0,loopPlay:!0};Z0.gvolSchema={title:"Scanline Property",type:"object",properties:{position:{type:"array",items:{type:"number"},minItems:3,maxItems:3,default:[0,0,0],description:"位置 [经度, 纬度, 高度]"},radius:{type:"number",title:"半径",default:100,description:"半径"},color:{type:"array",items:{type:"number"},minItems:4,maxItems:4,default:[1,1,0,1],description:"颜色叠加"},show:{type:"boolean",title:"显示",default:!0,description:"显示"},timeDuration:{type:"number",title:"播放持续时间,单位秒",default:1,description:"播放持续时间,单位秒"},currentTime:{type:"number",title:"当前时间,单位秒",default:0,description:"当前时间,单位秒"},loopPlay:{type:"boolean",title:"是否循环播放",default:!0,description:"是否循环播放"}}};Z0.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["position","radius","color","show","timeDuration","currentTime","loopPlay"]}],Cu.A.registerType(Z0,"Scanline");const q0=Z0;var $0=__webpack_require__(5969),e1=__webpack_require__(1786);class t1 extends rg.A{constructor(e,t){super(e,t),(0,Wm.extendObservable)(this,{editingPolylineShow:!1}),this.disposers.push((0,Xx.hp)(this._earth,this,{polylineCreatingProperty:"creating"})),this.disposers.push((0,Xx.wJ)(this._earth,this,{polylineEditingProperty:"editing"})),this.disposers.push((0,ng.A)(this,"enabled",this,"show"))}get onlyMove(){return!0}get fixedPositionsNum(){}}t1.defaultOptions={positions:[],show:!0,ground:!0};t1.gvolSchema={title:"PlotBase Property",type:"object",properties:{show:{type:"boolean",title:"是否在三维窗口中显示",default:!0,description:"是否在三维窗口中显示"},ground:{type:"boolean",title:"是否贴地",default:!0,description:"是否贴地"},positions:{type:"array",title:"位置数组",default:[],description:"位置数组"}}};t1.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["show","ground","positions"]}];const i1=t1;class n1 extends rg.A{constructor(e,t){super(e,t),zm.A.registerProperty(this,"material",n1.defaultOptions.material),zm.A.registerProperty(this.material,"XbsjColorMaterial",n1.defaultOptions.material.XbsjColorMaterial),zm.A.registerProperty(this.material,"XbsjPolylineDashMaterial",n1.defaultOptions.material.XbsjPolylineDashMaterial),zm.A.registerProperty(this.material,"XbsjPolylineArrowMaterial",n1.defaultOptions.material.XbsjPolylineArrowMaterial),this._arcPolyline=new dx.A(e),this._edgePolyline=new dx.A(e),this._arcPolyline.type="NONE",this._edgePolyline.type="NONE",this._edgePolyline.positions=[[0,0,0],[0,0,0],[0,0,0]],this._boundingSphere=new Cesium.BoundingSphere,this._disposers=[],this._disposers.push((0,ng.A)(this,"enabled",this,"show")),this._centerCartesian=new Cesium.Cartesian3,this._hpr=new Cesium.HeadingPitchRoll,this._enu=new Cesium.Matrix4,this._carto=new Cesium.Cartographic,this._scrachCartesian=new Cesium.Cartesian3,(0,Wm.extendObservable)(this,{_positions:[]}),this._disposers.push((0,Wm.autorun)(()=>{this._hpr.heading=this.rotation[0],this._hpr.pitch=this.rotation[1],this._hpr.roll=this.rotation[2],this._edgePolyline.positions[1].splice(0,3,...this.center),this._centerCartesian=Cesium.Cartesian3.fromRadians(...this.center,void 0,this._centerCartesian),Cesium.Cartesian3.clone(this._centerCartesian,this._boundingSphere.center),this._boundingSphere.radius=this.radius,this._enu=Cesium.Transforms.headingPitchRollToFixedFrame(this._centerCartesian,this._hpr,void 0,void 0,this._enu);const e=2*Math.PI;if(this._positions.length=0,this.range[0]!==this.range[1]){const t=this.range[0]%e,i=this.range[1]%e,n=i<=t?i+e:i;for(let e=t;e<n;e+=this.granularity)this._positions.push(this._computPosition(e));this._positions.push(this._computPosition(n))}})),this._disposers.push((0,Wm.reaction)(()=>this._positions.map(e=>[...e]),e=>{this._arcPolyline.positions.splice(0,this._arcPolyline.positions.length,...e),this._positions.length>0&&(this._edgePolyline.positions[0].splice(0,3,...this._positions[0]),this._edgePolyline.positions[2].splice(0,3,...this._positions[this._positions.length-1]))})),["show","width","depthTest","arcType","material"].forEach(e=>{this._disposers.push((0,ng.A)(this._arcPolyline,e,this,e))}),["width","depthTest","arcType","material"].forEach(e=>{this._disposers.push((0,ng.A)(this,e,this._edgePolyline,e))}),this._disposers.push((0,Wm.autorun)(()=>{this._edgePolyline.show=this.show&&this.edgeShow})),this._disposers.push((0,Wm.reaction)(()=>this.show&&this.showHelper||this.isSelected,e=>{this._arcPolyline.showHelper=e},{fireImmediately:!0}))}_computPosition(e){const t=e,i=this.radius,n=Math.cos,r=Math.sin,o=this._scrachCartesian;"pitch"===this.axisType?Cesium.Cartesian3.fromElements(n(t)*i,0,r(t)*i,o):"roll"===this.axisType?Cesium.Cartesian3.fromElements(0,n(t)*i,r(t)*i,o):"heading"===this.axisType&&Cesium.Cartesian3.fromElements(n(-t)*i,r(-t)*i,0,o),Cesium.Matrix4.multiplyByPoint(this._enu,o,o);const s=Cesium.Cartographic.fromCartesian(o,void 0,this._carto);return[s.longitude,s.latitude,s.height]}get boundingSphere(){return this._boundingSphere}flyTo(){this._earth.czm.scene.camera.flyToBoundingSphere(this._boundingSphere)}destroy(){return this._disposers.forEach(e=>e()),this._disposers.length=0,this._arcPolyline=this._arcPolyline&&this._arcPolyline.destroy(),this._edgePolyline=this._edgePolyline&&this._edgePolyline.destroy(),super.destroy()}}n1.defaultOptions={center:[0,0,0],radius:1,rotation:[0,0,0],axisType:"heading",granularity:.02,range:[0,2*Math.PI],edgeShow:!1,show:!0,showHelper:!1,width:2,depthTest:!1,arcType:"NONE",material:{type:"XbsjColorMaterial",XbsjColorMaterial:{color:[1,0,1,1]},XbsjPolylineDashMaterial:{color:[1,0,1,1],gapColor:[0,0,0,0],dashLength:16,dashPattern:255},XbsjPolylineArrowMaterial:{color:[1,0,1,1]}}},Cu.A.registerType(n1,"Circle");const r1=n1;class o1 extends rg.A{constructor(e,t){super(e,t),(0,Wm.extendObservable)(this,{positions:[[0,0,0],[0,0,0]],_realSceneScale:1,_endRealSceneScale:1,_primitive:void 0},{_primitive:Wm.observable.ref}),this.disposers.push(()=>{this._primitive&&(this._earth.czm.scene.primitives.remove(this._primitive),this._primitive=void 0)}),this.disposers.push((0,ng.A)(this,"positions.0",this,"startPosition")),this.disposers.push((0,ng.A)(this,"positions.1",this,"endPosition")),this._boundingSphere=new Cesium.BoundingSphere,this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this.disposers.push((0,Wm.autorun)(()=>{this._primitive&&(this._primitive.show=this.show)})),this.disposers.push(Cx(this._earth,this,{positionProperty:"startPosition",screenScalePropery:"_realSceneScale",fixScreenSizeProperty:"fixScreenSize",scaleProperty:"radius"})),this.disposers.push(Cx(this._earth,this,{positionProperty:"endPosition",screenScalePropery:"_endRealSceneScale",fixScreenSizeProperty:"fixScreenSize",scaleProperty:"radius"}));var i=this;const n=()=>{if(!this._primitive)return;this._scratchCartesian=this._scratchCartesian||new Cesium.Cartesian3,this._scratchCartesian2=this._scratchCartesian2||new Cesium.Cartesian3,this._scratchCartesian3=this._scratchCartesian3||new Cesium.Cartesian3,this._scratchCartesian4=this._scratchCartesian4||new Cesium.Cartesian3,this._scratchQuat=this._scratchQuat||new Cesium.Quaternion;const e=this._scratchCartesian,t=this._scratchCartesian2,i=this._scratchCartesian3,n=this._scratchCartesian4,r=Cesium.Cartesian3.fromRadians(...this.startPosition,void 0,e),o=Cesium.Cartesian3.fromRadians(...this.endPosition,void 0,t);let s=Cesium.Cartesian3.subtract(o,r,i),a=Cesium.Cartesian3.magnitude(s);if(a>0){a=a>0?a:.001,s=Cesium.Cartesian3.normalize(s,s);const e=Cesium.Cartesian3.angleBetween(s,Cesium.Cartesian3.UNIT_Z),i=Cesium.Cartesian3.cross(Cesium.Cartesian3.UNIT_Z,s,n),o=Math.min(this._realSceneScale,this._endRealSceneScale,this.maxSceneScale),l=Cesium.Cartesian3.fromElements(o,o,a,t),u=Cesium.Quaternion.fromAxisAngle(i,e,this._scratchQuat);Cesium.Matrix4.fromTranslationQuaternionRotationScale(r,u,l,this._primitive.modelMatrix),this._boundingSphere.radius=a,this._boundingSphere.center=r}};this.disposers.push((0,Wm.autorun)(()=>{n()}));const r=e=>{this._primitive&&(this._earth.czm.scene.primitives.remove(this._primitive),this._primitive=void 0);const t=Cesium.XbsjCSG.cylinder({start:[0,0,0],end:[0,0,1],radius:1,slices:e}).toMesh(),i=new Cesium.XbsjCustomPrimitive({modelMatrix:Cesium.Matrix4.IDENTITY,positions:t.positions,indices:t.indices,normals:t.normals,colors:t.colors,color:void 0,translucent:!1,id:this});this._earth.czm.scene.primitives.add(i),this._primitive=i};r(),this.disposers.push((0,Wm.reaction)(()=>this.slices,r)),this.disposers.push((0,Wm.autorun)(()=>n())),this.disposers.push((0,Wm.autorun)(()=>{i._primitive&&(i._primitive.color.red=i.color[0],i._primitive.color.green=i.color[1],i._primitive.color.blue=i.color[2],i._primitive.color.alpha=i.color[3])})),this.disposers.push((0,Wm.autorun)(()=>{this._primitive&&(this._primitive.show=this.show)})),this.disposers.push((0,Xx.wJ)(this._earth,this,{polylineEditingProperty:"editing"}))}get boundingSphere(){return this._boundingSphere}flyTo(){this._earth.czm.scene.camera.flyToBoundingSphere(this._boundingSphere)}destroy(){return super.destroy()}}o1.defaultOptions={startPosition:[0,0,0],endPosition:[0,0,0],radius:1,slices:16,color:[1,0,0,1],show:!0,fixScreenSize:0,maxSceneScale:Number.POSITIVE_INFINITY},Cu.A.registerType(o1,"Cylinder");const s1=o1;var a1=__webpack_require__(6763);class l1 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this.textureWidth=2048,this.textureHeight=2048,zm.A.registerPosition(this),this.disposers.push((0,Xx.p6)(this._earth,this,{positionEditingProperty:"editing"})),this.disposers.push((0,Xx.Me)(this._earth,this,{positionPickingProperty:"creating"}));const i=this._earth.czm.scene;this._groundPrimitive=void 0,this.disposers.push(()=>{this._groundPrimitive&&i.groundPrimitives.remove(this._groundPrimitive),this._groundPrimitive=void 0}),this._material=new Cesium.Material({fabric:{type:"ImageMapXC",materials:{left:{type:"ScaleImageXC",uniforms:{image:Cesium.Material.DefaultImageId,repeat:new Cesium.Cartesian2(1,1),color:new Cesium.Color(1,1,1,1),stscale:new Cesium.Cartesian2(1,1)},components:{diffuse:"texture2D(image, fract(repeat * materialInput.st) * stscale).rgb * color.rgb",alpha:"texture2D(image, fract(repeat * materialInput.st) * stscale).a * color.a"}},right:{type:"ScaleImageXC",uniforms:{image:Cesium.Material.DefaultImageId,repeat:new Cesium.Cartesian2(1,1),color:new Cesium.Color(1,1,1,1),stscale:new Cesium.Cartesian2(1,1)},components:{diffuse:"texture2D(image, fract(repeat * materialInput.st) * stscale).rgb * color.rgb",alpha:"texture2D(image, fract(repeat * materialInput.st) * stscale).a * color.a"}}},uniforms:{t:0,opacity:1},components:{diffuse:"left.diffuse * (1.0 - t) + right.diffuse * t",alpha:"(left.alpha * (1.0 - t) + right.alpha * t) * opacity"}}});(()=>{this._leftHeatmapTexture&&this._leftHeatmapTexture.destroy(),this._leftHeatmapTexture=new Cesium.Texture({context:i.context,width:this.textureWidth,height:this.textureHeight}),this._rightHeatmapTexture&&this._rightHeatmapTexture.destroy(),this._rightHeatmapTexture=new Cesium.Texture({context:i.context,width:this.textureWidth,height:this.textureHeight}),this._material.materials.left.uniforms.image=this._leftHeatmapTexture,this._material.materials.right.uniforms.image=this._rightHeatmapTexture})(),this._scratchRect=new Cesium.Rectangle;const n=()=>{this._groundPrimitive&&i.groundPrimitives.remove(this._groundPrimitive),this._groundPrimitive=void 0;const e=this.origin[0],t=this.origin[1],n=K0(this,this.position,this.width,this.height,e,t,this.rotation,void 0);this._groundPrimitive=i.groundPrimitives.add(n),this._groundPrimitive.show=this.show,this._groundPrimitive.appearance.material=this._material};n(),this.disposers.push((0,Wm.reaction)(()=>({position:[...this.position],origin:[...this.origin],rotation:this.rotation,width:this.width,height:this.height}),()=>{n()})),this.disposers.push((0,Wm.reaction)(()=>this.show,()=>{this._groundPrimitive.show=this.show})),(0,Wm.extendObservable)(this,{_images:[]}),this.disposers.push((0,Wm.reaction)(()=>[...this.imageUrls],e=>{this._fetchTexturesSubscription&&this._fetchTexturesSubscription.unsubscribe(),this._fetchTexturesSubscription=void 0;const t=e.map(e=>new Promise((t,i)=>{Cesium.Resource.fetchImage({url:e}).then(e=>{t(e)})})),i=new rxjs.Observable(e=>{Promise.all(t).then(t=>{e.next(t)})});this._fetchTexturesSubscription=i.subscribe(e=>{if(e=e.filter(e=>{let t=e.width>this.textureWidth||e.height>this.textureHeight;return t&&a1.warn(`警告:图片尺寸大于${this.textureWidth}X${this.textureHeight},将被忽略。。`),!t}),this._images.splice(0,this._images.length,...e),this._images.length>0){const e=this._images[0];this.autoWidth?this.width=this.height*e.naturalWidth/e.naturalHeight:this.autoHeight&&(this.height=this.width*e.naturalHeight/e.naturalWidth)}})})),this._leftImage=void 0,this._rightImage=void 0;const r=new Uint8Array([255,255,255,0]),o=()=>{const e=this._images.length;if(0===e)return this._leftImage=void 0,this._rightImage=void 0,this._material.materials.left.uniforms.image.copyFrom({width:1,height:1,arrayBufferView:r}),this._material.materials.left.uniforms.stscale=new Cesium.Cartesian2(1/this.textureWidth,1/this.textureHeight),this._material.materials.right.uniforms.image.copyFrom({width:1,height:1,arrayBufferView:r}),void(this._material.materials.right.uniforms.stscale=new Cesium.Cartesian2(1/this.textureWidth,1/this.textureHeight));const t=this.currentTime>this.timeDuration?0:this.currentTime;let i=0,n=0;if(e>=2)if(this.times&&0!==this.times.length)i=this.times.findIndex(e=>e>t)-1,i<0?(i=0,n=0):i>=this._images.length-1?(i=this._images.length-2,n=1):n=(t-this.times[i])/(this.times[i+1]-this.times[i]);else{const r=this.timeDuration/(e-1),o=t/r;i=Math.floor(o),n=o-i}if(this._leftImage!==this._images[i]){this._leftImage=this._images[i];const e=this._leftImage;e&&(this._material.materials.left.uniforms.image.copyFrom(e),this._material.materials.left.uniforms.stscale=new Cesium.Cartesian2(e.width/this.textureWidth,e.height/this.textureHeight))}if(e>=2&&this._rightImage!==this._images[i+1]){this._rightImage=this._images[i+1];const e=this._rightImage;e&&(this._material.materials.right.uniforms.image.copyFrom(e),this._material.materials.right.uniforms.stscale=new Cesium.Cartesian2(e.width/this.textureWidth,e.height/this.textureHeight))}this._material.uniforms.t=n};o(),this.disposers.push((0,Wm.reaction)(()=>({currentTime:this.currentTime,timeDuration:this.timeDuration,images:[...this._images],times:[...this.times]}),o)),(0,Wm.extendObservable)(this,{_pathPlayingListener:void 0,get playing(){return!!this._pathPlayingListener},set playing(e){e&&!this._pathPlayingListener?this._play():!e&&this._pathPlayingListener&&(this._pathPlayingListener=this._pathPlayingListener&&this._pathPlayingListener())}},{_pathPlayingListener:Wm.observable.ref,playing:Wm.computed}),this.disposers.push(()=>{this.playing=!1});const s=()=>{this._material.uniforms.opacity=this.opacity};s(),this.disposers.push((0,Wm.reaction)(()=>this.opacity,s))}_play(){const e=this._earth.czm.scene;this.currentTime===this.timeDuration&&(this.currentTime=0);let t=Date.now();this._pathPlayingListener=e.postUpdate.addEventListener((e,i)=>{let n=Date.now(),r=n-t;t=n;const o=this.currentTime+.001*r;this.loopPlay?o>this.timeDuration?this.currentTime=0:this.currentTime=o:o>this.timeDuration?(this.currentTime=this.timeDuration,this._pathPlayingListener=this._pathPlayingListener&&this._pathPlayingListener()):this.currentTime=o})}flyTo(){this._earth.camera.flyTo(this.position,this.width,[0,-Math.PI/3,0])}destroy(){return super.destroy()}}l1.defaultOptions={position:[0,0,0],width:100,height:100,autoWidth:!1,autoHeight:!0,origin:[.5,.5],rotation:0,show:!0,imageUrls:[],timeDuration:1,currentTime:0,loopPlay:!0,times:[],opacity:1};l1.gvolSchema={title:"GroundImage Property",type:"object",properties:{show:{type:"boolean",title:"显示",default:!0,description:"显示"},origin:{type:"array",items:{type:"number"},minItems:2,maxItems:2,title:"原点",default:[.5,.5],description:"原点"},rotation:{type:"number",title:"旋转角",default:0,description:"旋转角"},position:{type:"array",items:{type:"number"},minItems:3,maxItems:3,title:"位置数组",default:[0,0,0],description:"位置数组"},width:{type:"number",title:"东西方向长度",default:100,description:"宽度"},height:{type:"number",title:"南北方向长度",default:100,description:"高度"},autoWidth:{type:"boolean",title:"是否自动计算宽度",default:!0,description:"是否自动计算宽度"},autoHeight:{type:"boolean",title:"是否自动计算高度",default:!0,description:"是否自动计算高度"},imageUrls:{type:"array",items:{type:"string"},title:"图像路径",default:[],description:"图像路径"},timeDuration:{type:"number",title:"播放总时长",default:1,description:"播放总时长"},currentTime:{type:"number",title:"当前播放时刻",default:0,description:"当前播放时刻"},loopPlay:{type:"boolean",title:"是否循环播放",default:!0,description:"是否循环播放"},times:{type:"boolean",title:"每个图象的播放时刻",default:[],description:"每个图象的播放时刻"},opacity:{type:"number",title:"不透明度",default:1,description:"不透明度"}}};l1.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["show","origin","rotation","position","width","height","autoWidth","autoHeight","imageUrls","timeDuration","currentTime","loopPlay","times"]}],Cu.A.registerType(l1,"GroundImage");const u1=l1;function c1(e,t){const i=e.appearance.material.uniforms;i.baseWaterColor.xbsjFromArray(...t.baseWaterColor),i.blendColor.xbsjFromArray(...t.blendColor),i.frequency=t.frequency,i.animationSpeed=t.animationSpeed,i.amplitude=t.amplitude,i.specularIntensity=t.specularIntensity,i.fadeFactor=t.fadeFactor,i.sizeAndVelocity.z=t.velocity[0],i.sizeAndVelocity.w=t.velocity[1]}class h1 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._primitive=void 0,this.disposers.push(()=>this._primitive&&this._earth.czm.scene.gvolWaterManager.destroyWaterPolygonPrimitive(this._primitive)),this._groundPrimitive=void 0,this.disposers.push(()=>this._groundPrimitive&&this._earth.czm.scene.gvolWaterManager.destroyWaterPolygonPrimitive(this._groundPrimitive)),this._boundingSphere=new Cesium.BoundingSphere;{const e=()=>{this._primitive&&(this._primitive.show=this.show,c1(this._primitive,this)),this._groundPrimitive&&(this._groundPrimitive.show=this.show,c1(this._groundPrimitive,this))};this.disposers.push((0,Wm.reaction)(()=>({show:this.show,baseWaterColor:[...this.baseWaterColor],blendColor:[...this.blendColor],frequency:this.frequency,animationSpeed:this.animationSpeed,amplitude:this.amplitude,specularIntensity:this.specularIntensity,fadeFactor:this.fadeFactor,velocity:[...this.velocity]}),e));const t=()=>{this._primitive&&this._earth.czm.scene.gvolWaterManager.destroyWaterPolygonPrimitive(this._primitive),this._primitive=void 0,this._groundPrimitive&&this._earth.czm.scene.gvolWaterManager.destroyWaterPolygonPrimitive(this._groundPrimitive),this._groundPrimitive=void 0;const e=[],t=this.positions.length/2;if(!(t<3)){for(let i=0;i<t;++i){const t=Cesium.Cartesian3.fromRadians(this.positions[2*i+0],this.positions[2*i+1],this.height);e.push(t)}this.ground?this._groundPrimitive=this._earth.czm.scene.gvolWaterManager.createWaterPolygonPrimitive(e,!0):this._primitive=this._earth.czm.scene.gvolWaterManager.createWaterPolygonPrimitive(e,!1)}},i=()=>{const e=this.positions.length/2;if(e>=3){const t=[];for(let i=0;i<e;++i)t.push(this.positions[2*i],this.positions[2*i+1],this.height);const i=Cesium.Cartesian3.fromRadiansArrayHeights(t);this._boundingSphere=Cesium.BoundingSphere.fromPoints(i,this._boundingSphere)}};this.disposers.push((0,Wm.reaction)(()=>({positions:[...this.positions],height:this.height,ground:this.ground}),()=>{t(),e(),i()}))}this._polyline=new dx.A(e),this.disposers.push(()=>this._polyline=this._polyline&&this._polyline.destroy()),this._polyline.material.type="XbsjColorMaterial",this._polyline.depthTest=!1,this._polyline.loop=!0,this.disposers.push((0,Wm.autorun)(()=>{this._polyline.material.XbsjColorMaterial.color=this.outline.color,this._polyline.width=this.outline.width,this._polyline.show=this.show&&this.outline.show,this._polyline.ground=this.ground}));{const e=()=>{const e=this.positions.length/2,t=[];for(let i=0;i<e;++i)t.push([this.positions[2*i],this.positions[2*i+1],this.height]);return t},t=e=>this._polyline&&(this._polyline.positions=e);t(e()),this.disposers.push((0,Wm.reaction)(e,t))}this.disposers.push((0,Xx.yt)(this._earth,this,{polygonCreatingWithHeight:"creating"})),this.disposers.push((0,Xx.s)(this._earth,this,{polygonEditingProperty:"editing"}))}get boundingSphere(){return this._boundingSphere}flyTo(){this._earth.czm.scene.camera.flyToBoundingSphere(this._boundingSphere)}destroy(){return super.destroy()}}h1.gvolSchema={title:"Water Property",type:"object",properties:{positions:{type:"array",title:"位置数组",default:[],description:"位置数组"},height:{type:"number",title:"水面高度",default:0,description:"水面高度"},show:{type:"boolean",title:"是否在三维窗口中显示",default:!0,description:"是否在三维窗口中显示"},baseWaterColor:{type:"array",items:{type:"number"},minItems:4,maxItems:4,default:[.2,.3,.6,1],description:"颜色叠加"},blendColor:{type:"array",items:{type:"number"},minItems:4,maxItems:4,default:[.5,.5,.5,.7],description:"颜色叠加"},frequency:{type:"number",title:"频率",default:5e3,description:"频率"},animationSpeed:{type:"number",title:"运动速度",default:.05,description:"运动速度"},amplitude:{type:"number",title:"amplitude",default:2,description:"amplitude"},specularIntensity:{type:"number",title:"specularIntensity",default:.5,description:"specularIntensity"},fadeFactor:{type:"number",title:"fadeFactor",default:1,description:"fadeFactor"},velocity:{type:"array",items:{type:"number"},minItems:2,maxItems:2,default:[10,10],description:"速度数组"},showHelper:{type:"boolean",title:"辅助线框",default:"false",description:"辅助线框"},outline:{},ground:{type:"boolean",title:"是否贴地",default:!0,description:"是否贴地"}}};h1.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["positions","height","show","baseWaterColor","blendColor","frequency","animationSpeed","amplitude","specularIntensity","fadeFactor","velocity","showHelper","outline","ground"]}],h1.defaultOptions={positions:[],height:0,show:!0,baseWaterColor:[.2,.3,.6,1],blendColor:[.5,.5,.5,.7],frequency:5e3,animationSpeed:.05,amplitude:2,specularIntensity:.5,fadeFactor:1,velocity:[10,10],showHelper:!1,outline:{show:!0,color:[0,1,0,1],width:2},ground:!1},Cu.A.registerType(h1,"Water");const p1=h1;var d1=__webpack_require__(6763);class f1 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),(0,Wm.extendObservable)(this,{_texture:void 0,_groundPrimitive:void 0},{_texture:Wm.observable.ref,_groundPrimitive:Wm.observable.ref}),this.disposers.push(()=>{this._groundPrimitive&&(e.czm.scene.groundPrimitives.remove(this._groundPrimitive),this._groundPrimitive=void 0),this._texture&&(this._texture=this._texture&&this._texture.destroy())});const i=()=>{if(!(this._texture&&this.canvasWidth===this._texture.width&&this.canvasHeight===this._texture.height)&&(this._texture=this._texture&&this._texture.destroy(),this.canvasWidth>0&&this.canvasHeight>0&&(this._texture=new Cesium.Texture({context:e.czm.scene.context,width:this.canvasWidth,height:this.canvasHeight,source:void 0,flipY:!0}))),!this._canvas){const e=document.createElement("canvas");this._canvas=e,this._ctx=e.getContext("2d")}this._canvas.width===this.canvasWidth&&this._canvas.height===this.canvasHeight||(this._canvas.width=this.canvasWidth,this._canvas.height=this.canvasHeight)};this._updateCanvas=i,i(),this.disposers.push((0,Wm.reaction)(()=>({canvasWidth:this.canvasWidth,canvasHeight:this.canvasHeight}),i));const n=()=>{this.autoRegisterEditing&&!this.creating&&this.registerEditing()};n(),this.disposers.push((0,Wm.reaction)(()=>this.autoRegisterEditing,n)),this._scratchColor=new Cesium.Color;const r=()=>{this._groundPrimitive&&(e.czm.scene.groundPrimitives.remove(this._groundPrimitive),this._groundPrimitive=void 0);const t=Cesium.ClassificationType.BOTH,i=K0(this,this.position,this.width,this.height,this.origin[0],this.origin[1],this.rotation,undefined,undefined,t);i.appearance.material._uniforms.image_0=()=>this._texture||e.czm.scene.context.defaultTexture,["red","green","blue","alpha"].forEach((e,t)=>this._scratchColor[e]=this.color[t]),i.appearance.material.uniforms.color=this._scratchColor,this._groundPrimitive=e.czm.scene.groundPrimitives.add(i)};r(),this.disposers.push((0,Wm.reaction)(()=>({position:[...this.position],origin:[...this.origin],rotation:this.rotation,width:this.width,height:this.height,color:[...this.color]}),r));const o=()=>{this._groundPrimitive&&(this._groundPrimitive.show=this.show)};o(),this.disposers.push((0,Wm.reaction)(()=>({show:this.show,_groundPrimitive:this._groundPrimitive}),o)),this._videoElement=void 0,this._videoAnimation=void 0,this.disposers.push(()=>{this._videoElement=this._videoElement&&yS(this._videoElement),this._videoAnimation&&(cancelAnimationFrame(this._videoAnimation),this._videoAnimation=void 0)}),this._settingVideoElement=void 0,this.disposers.push(()=>{this._settingVideoElement&&(this._settingVideoElement.unsubscribe(),this._settingVideoElement=void 0)});const s=()=>{if(this._imageSubscription&&(this._imageSubscription.unsubscribe(),this._imageSubscription=void 0),this._videoAnimation&&(cancelAnimationFrame(this._videoAnimation),this._videoAnimation=void 0),this._videoElement=this._videoElement&&yS(this._videoElement),this._settingVideoElement&&(this._settingVideoElement.unsubscribe(),this._settingVideoElement=void 0),"string"==typeof this.imageUrl)if(this.imageUrl.endsWith(".jpg")||this.imageUrl.endsWith(".png")||this.imageUrl.startsWith("data:image")){const e=new rxjs.Observable(e=>{Cesium.Resource.createIfNeeded(this.imageUrl).fetchImage().then(function(t){e.next(t)})});this._imageSubscription=e.subscribe(e=>{this.canvasWidth=e.naturalWidth,this.canvasHeight=e.naturalHeight,this.drawCanvas(t=>{t.clearRect(0,0,e.naturalWidth,e.naturalHeight),t.drawImage(e,0,0)})})}else[".ogg",".webm",".mp4",".m3u8",".flv"].some(e=>this.imageUrl.endsWith(e))?this._settingVideoElement=rxjs.from(gS(this.imageUrl)).subscribe(e=>{if(this._videoElement=e,this._videoElement){const t=()=>{this._videoAnimation=requestAnimationFrame(t),e.videoWidth>0&&e.videoHeight>0&&4===e.readyState&&(this.canvasWidth===e.videoWidth&&this.canvasHeight===e.videoHeight||(this.canvasWidth=e.videoWidth,this.canvasHeight=e.videoHeight),this._updateCanvas(),this._texture&&this._texture.copyFrom(e))};this._videoAnimation=requestAnimationFrame(t)}}):(this.canvasWidth=1,this.canvasHeight=1,this.drawCanvas(e=>{e.clearRect(0,0,1,1),e.fillStyle="white",e.fillRect(0,0,1,1)}),this._videoElement=void 0)};s(),this.disposers.push((0,Wm.reaction)(()=>this.imageUrl,s))}drawCanvas(e){this.canvasWidth>0&&this.canvasHeight>0?(this._updateCanvas(),e(this._ctx,this._canvas),this._texture.copyFrom(this._canvas)):d1.warn("canvas尺寸未设置,无法绘制!")}get texture(){return this._texture}set texture(e){this._texture=e}flyTo(){const e=Math.sqrt(this.width*this.width+this.height*this.height);this._earth.camera.flyTo(this.position,3*e)}registerEditing(){this.disposers.push((0,Xx.p6)(this._earth,this,{})),this.disposers.push((0,Xx.Me)(this._earth,this,{positionPickingProperty:"creating"}))}}f1.gvolSchema={title:"CustomGroundRectangle Property",type:"object",properties:{position:{type:"array",items:{type:"number"},minItems:3,maxItems:3,default:[0,0,0],description:"位置(经度, 纬度, 高度)"},origin:{type:"array",items:{type:"number"},minItems:2,maxItems:2,default:[.5,.5],description:"原点在纹理上的位置,旋转的中心点"},rotation:{type:"number",title:"偏航角",default:0,description:"偏航角"},width:{type:"number",title:"宽度,单位米",default:1e3,description:"宽度,单位米"},height:{type:"number",title:"高度,单位米",default:1e3,description:"高度,单位米"},canvasWidth:{type:"number",title:"画布宽度,单位像素",default:512,description:"画布宽度,单位像素"},canvasHeight:{type:"number",title:"画布高度,单位像素",default:512,description:"画布高度,单位像素"},show:{type:"boolean",title:"是否在三维窗口中显示",default:!0,description:"是否在三维窗口中显示"},color:{type:"array",items:{type:"number"},minItems:4,maxItems:4,default:[1,1,1,1],description:"颜色叠加"},imageUrl:{type:"string",title:"纹理对应的图像url",default:0,description:"纹理对应的图像url"},autoRegisterEditing:{type:"boolean",title:"是否自动注册编辑功能",default:!1,description:"是否自动注册编辑功能"}}};f1.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["position","origin","rotation","width","height","canvasWidth","canvasHeight","show","color","imageUrl","autoRegisterEditing"]}],f1.defaultOptions={position:[0,0,0],origin:[.5,.5],rotation:0,width:1e3,height:1e3,canvasWidth:512,canvasHeight:512,show:!0,color:[1,1,1,1],imageUrl:"",autoRegisterEditing:!1},Cu.A.registerType(f1,"CustomGroundRectangle");const m1=f1;if(!Array.prototype.xe_max){const N5=function(){return Math.max.apply(null,this)},k5=function(){return Math.min.apply(null,this)},F5=function(){var e,t;for(e=0,t=0;e<this.length;e++)t+=this[e];return t/this.length},H5=function(e){return Array.apply(null,new Array(e)).map(Number.prototype.valueOf,this[0])},Y5=function(e,t){var i,n,r=!1;for(i=0,n=this.length-1;i<this.length;n=i++)this[i][1]>t!=this[n][1]>t&&e<(this[n][0]-this[i][0])*(t-this[i][1])/(this[n][1]-this[i][1])+this[i][0]&&(r=!r);return r};Object.defineProperties(Array.prototype,{xe_max:{enumerable:!1,get:()=>N5},xe_min:{enumerable:!1,get:()=>k5},xe_mean:{enumerable:!1,get:()=>F5},xe_rep:{enumerable:!1,get:()=>H5},xe_pip:{enumerable:!1,get:()=>Y5}})}var g1=function(){var e={},t=function(e,t){var i,n=[0].xe_rep(t*t);for(i=0;i<t;i++)n[i*t+i]=e;return n},i=function(e,t,i,n){var r,o,s=Array(i*n);for(r=0;r<i;r++)for(o=0;o<n;o++)s[r*n+o]=e[r*n+o]+t[r*n+o];return s},n=function(e,t,i,n,r){var o,s,a,l=Array(i*r);for(o=0;o<i;o++)for(s=0;s<r;s++)for(l[o*r+s]=0,a=0;a<n;a++)l[o*r+s]+=e[o*n+a]*t[a*r+s];return l},r=function(e,t){var i,n,r,o=Array(t);for(i=0;i<t;i++)o[i]=e[i*t+i];for(i=0;i<t;i++){for(n=0;n<i;n++)o[i]-=e[i*t+n]*e[i*t+n];if(o[i]<=0)return!1;for(o[i]=Math.sqrt(o[i]),n=i+1;n<t;n++){for(r=0;r<i;r++)e[n*t+i]-=e[n*t+r]*e[i*t+r];e[n*t+i]/=o[i]}}for(i=0;i<t;i++)e[i*t+i]=o[i];return!0},o=function(e,t){var i,n,r,o;for(i=0;i<t;i++)for(e[i*t+i]=1/e[i*t+i],n=i+1;n<t;n++){for(o=0,r=i;r<n;r++)o-=e[n*t+r]*e[r*t+i];e[n*t+i]=o/e[n*t+n]}for(i=0;i<t;i++)for(n=i+1;n<t;n++)e[i*t+n]=0;for(i=0;i<t;i++){for(e[i*t+i]*=e[i*t+i],r=i+1;r<t;r++)e[i*t+i]+=e[r*t+i]*e[r*t+i];for(n=i+1;n<t;n++)for(r=n;r<t;r++)e[i*t+n]+=e[r*t+i]*e[r*t+n]}for(i=0;i<t;i++)for(n=0;n<i;n++)e[i*t+n]=e[n*t+i]},s=function(e,t){var i,n,r,o,s,a,l,u,c,h,p,d=t,f=Array(t*t),m=Array(t),g=Array(t),y=Array(t);for(i=0;i<t;i++)for(o=0;o<t;o++)f[i*t+o]=i==o?1:0;for(o=0;o<t;o++)y[o]=0;for(i=0;i<t;i++){for(u=0,o=0;o<t;o++)if(1!=y[o])for(s=0;s<t;s++)0==y[s]&&Math.abs(e[o*t+s])>=u&&(u=Math.abs(e[o*t+s]),r=o,n=s);if(++y[n],r!=n){for(a=0;a<t;a++)p=e[r*t+a],e[r*t+a]=e[n*t+a],e[n*t+a]=p;for(a=0;a<d;a++)p=f[r*t+a],f[r*t+a]=f[n*t+a],f[n*t+a]=p}if(g[i]=r,m[i]=n,0==e[n*t+n])return!1;for(h=1/e[n*t+n],e[n*t+n]=1,a=0;a<t;a++)e[n*t+a]*=h;for(a=0;a<d;a++)f[n*t+a]*=h;for(l=0;l<t;l++)if(l!=n){for(c=e[l*t+n],e[l*t+n]=0,a=0;a<t;a++)e[l*t+a]-=e[n*t+a]*c;for(a=0;a<d;a++)f[l*t+a]-=f[n*t+a]*c}}for(a=t-1;a>=0;a--)if(g[a]!=m[a])for(s=0;s<t;s++)p=e[s*t+g[a]],e[s*t+g[a]]=e[s*t+m[a]],e[s*t+m[a]]=p;return!0},a=function(e,t,i,n,r){return t+(n-t)/i*(1-Math.exp(-1/r*Math.pow(e/i,2)))},l=function(e,t,i,n,r){return t+(n-t)/i*(1-Math.exp(-1/r*(e/i)))},u=function(e,t,i,n,r){return e>i?t+(n-t)/i:t+(n-t)/i*(e/i*1.5-.5*Math.pow(e/i,3))};return e.train=function(e,c,h,p,d,f){var m={t:e,x:c,y:h,nugget:0,range:0,sill:0,A:1/3,n:0};switch(p){case"gaussian":m.model=a;break;case"exponential":m.model=l;break;case"spherical":m.model=u}var g,y,_,A,v=e.length,C=Array((v*v-v)/2);for(g=0,_=0;g<v;g++)for(y=0;y<g;y++,_++)C[_]=Array(2),C[_][0]=Math.pow(Math.pow(c[g]-c[y],2)+Math.pow(h[g]-h[y],2),.5),C[_][1]=Math.abs(e[g]-e[y]);C.sort(function(e,t){return e[0]-t[0]}),m.range=C[(v*v-v)/2-1][0];var b=(v*v-v)/2>30?30:(v*v-v)/2,w=m.range/b,x=[0].xe_rep(b),S=[0].xe_rep(b);if(b<30)for(A=0;A<b;A++)x[A]=C[A][0],S[A]=C[A][1];else{for(g=0,y=0,_=0,A=0;g<b&&y<(v*v-v)/2;g++,_=0){for(;C[y][0]<=(g+1)*w&&(x[A]+=C[y][0],S[A]+=C[y][1],_++,!(++y>=(v*v-v)/2)););_>0&&(x[A]/=_,S[A]/=_,A++)}if(A<2)return m}v=A,m.range=x[v-1]-x[0];var M=[1].xe_rep(2*v),P=Array(v),E=m.A;for(g=0;g<v;g++){switch(p){case"gaussian":M[2*g+1]=1-Math.exp(-1/E*Math.pow(x[g]/m.range,2));break;case"exponential":M[2*g+1]=1-Math.exp(-1/E*x[g]/m.range);break;case"spherical":M[2*g+1]=x[g]/m.range*1.5-.5*Math.pow(x[g]/m.range,3)}P[g]=S[g]}var L=function(e,t,i){var n,r,o=Array(i*t);for(n=0;n<t;n++)for(r=0;r<i;r++)o[r*t+n]=e[n*i+r];return o}(M,v,2),T=n(L,M,2,v,2),O=(T=i(T,t(1/f,2),2,2)).slice(0);r(T,2)?o(T,2):(s(O,2),T=O);var D=n(n(T,L,2,2,v),P,2,v,1);m.nugget=D[0],m.sill=D[1]*m.range+m.nugget,m.n=c.length,v=c.length;var B=Array(v*v);for(g=0;g<v;g++){for(y=0;y<g;y++)B[g*v+y]=m.model(Math.pow(Math.pow(c[g]-c[y],2)+Math.pow(h[g]-h[y],2),.5),m.nugget,m.range,m.sill,m.A),B[y*v+g]=B[g*v+y];B[g*v+g]=m.model(0,m.nugget,m.range,m.sill,m.A)}var I=i(B,t(d,v),v,v),R=I.slice(0);r(I,v)?o(I,v):(s(R,v),I=R);B=I.slice(0);var N=n(I,e,v,v,1);return m.K=B,m.M=N,m},e.predict=function(e,t,i){var r,o=Array(i.n);for(r=0;r<i.n;r++)o[r]=i.model(Math.pow(Math.pow(e-i.x[r],2)+Math.pow(t-i.y[r],2),.5),i.nugget,i.range,i.sill,i.A);return n(o,i.M,1,i.n,1)[0]},e.variance=function(e,t,i){var r,o=Array(i.n);for(r=0;r<i.n;r++)o[r]=i.model(Math.pow(Math.pow(e-i.x[r],2)+Math.pow(t-i.y[r],2),.5),i.nugget,i.range,i.sill,i.A);return i.model(0,i.nugget,i.range,i.sill,i.A)+n(n(o,i.K,1,i.n,i.n),o,1,i.n,1)[0]},e.grid=function(t,i,n){var r,o,s,a=t.length;if(0!=a){var l,u,c=[t[0][0][0],t[0][0][0]],h=[t[0][0][1],t[0][0][1]];for(r=0;r<a;r++)for(o=0;o<t[r].length;o++)t[r][o][0]<c[0]&&(c[0]=t[r][o][0]),t[r][o][0]>c[1]&&(c[1]=t[r][o][0]),t[r][o][1]<h[0]&&(h[0]=t[r][o][1]),t[r][o][1]>h[1]&&(h[1]=t[r][o][1]);var p=Array(2),d=Array(2),f=Array(2),m=Array(2),g=Math.ceil((c[1]-c[0])/n),y=Math.ceil((h[1]-h[0])/n),_=Array(g+1);for(r=0;r<=g;r++)_[r]=Array(y+1);for(r=0;r<a;r++){for(f[0]=t[r][0][0],f[1]=f[0],m[0]=t[r][0][1],m[1]=m[0],o=1;o<t[r].length;o++)t[r][o][0]<f[0]&&(f[0]=t[r][o][0]),t[r][o][0]>f[1]&&(f[1]=t[r][o][0]),t[r][o][1]<m[0]&&(m[0]=t[r][o][1]),t[r][o][1]>m[1]&&(m[1]=t[r][o][1]);for(p[0]=Math.floor((f[0]-(f[0]-c[0])%n-c[0])/n),p[1]=Math.ceil((f[1]-(f[1]-c[1])%n-c[0])/n),d[0]=Math.floor((m[0]-(m[0]-h[0])%n-h[0])/n),d[1]=Math.ceil((m[1]-(m[1]-h[1])%n-h[0])/n),o=p[0];o<=p[1];o++)for(s=d[0];s<=d[1];s++)l=c[0]+o*n,u=h[0]+s*n,t[r].xe_pip(l,u)&&(_[o][s]=e.predict(l,u,i))}return _.xlim=c,_.ylim=h,_.zlim=[i.t.xe_min(),i.t.xe_max()],_.width=n,_}},e.contour=function(e,t,i){},e.plot=function(e,t,i,n,r){var o=e.getContext("2d");o.clearRect(0,0,e.width,e.height);var s,a,l,u,c,h=[i[1]-i[0],n[1]-n[0],t.zlim[1]-t.zlim[0]],p=t.length,d=t[0].length,f=Math.ceil(t.width*e.width/(i[1]-i[0])),m=Math.ceil(t.width*e.height/(n[1]-n[0]));for(s=0;s<p;s++)for(a=0;a<d;a++)null!=t[s][a]&&(l=e.width*(s*t.width+t.xlim[0]-i[0])/h[0],u=e.height*(1-(a*t.width+t.ylim[0]-n[0])/h[1]),(c=(t[s][a]-t.zlim[0])/h[2])<0&&(c=0),c>1&&(c=1),o.fillStyle=r[Math.floor((r.length-1)*c)],o.fillRect(Math.round(l-f/2),Math.round(u-m/2),f,m))},e}();const y1=g1;var _1=__webpack_require__(6763);let A1,v1;function C1(e,t,i){const[n,r]=[0,1],o=255*(e=e<n?n:e>r?r:e)|0,s=t[4*o],a=t[4*o+1],l=t[4*o+2],u=t[4*o+3];return i||(i=[255,255,255,255]),i[0]=s,i[1]=a,i[2]=l,i[3]=u,i}class b1 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),zm.A.registerPosition(this),this.disposers.push((0,Xx.p6)(this._earth,this,{positionEditingProperty:"editing"})),this.disposers.push((0,Xx.Me)(this._earth,this,{positionPickingProperty:"creating"})),this._customGroundRectangle=new lacdt.Obj.CustomGroundRectangle(e),this.disposers.push((0,SM.A)(this._customGroundRectangle,"show",this,"show")),this.disposers.push(()=>{this._customGroundRectangle=this._customGroundRectangle&&this._customGroundRectangle.destroy()});const i=()=>{const e=this._customGroundRectangle;e.position=this.position,e.width=this.width,e.height=this.height,e.canvasWidth===this.dataWidth&&e.canvasHeight===this.dataHeight||(e.canvasWidth=this.dataWidth,e.canvasHeight=this.dataHeight,e.drawCanvas(e=>{e.fillStyle="white",e.fillRect(0,0,this.dataWidth,this.dataHeight)}))};i(),this.disposers.push((0,Wm.reaction)(()=>({position:[...this.position],width:this.width,height:this.height,dataWidth:this.dataWidth,dataHeight:this.dataHeight}),i)),this._imageData=void 0,this._colorPalette=new Uint8ClampedArray(1024),this._colorPalette.fill(255),this.disposers.push(()=>{this._imageData=void 0,this._colorPalette=void 0});const n=()=>{!function(e,t){if(t){if(!t instanceof Uint8ClampedArray)throw new Error("result类型不对!");if(1024!==t.length)throw new Error("result的数组长度不对,必须为256!")}if(!A1){var i=document.createElement("canvas"),n=i.getContext("2d");i.width=256,i.height=1,A1=n}var r=A1.createLinearGradient(0,0,256,1);e.forEach(e=>{r.addColorStop(e[0],e[1])}),A1.clearRect(0,0,256,1),A1.fillStyle=r,A1.fillRect(0,0,256,1);const o=A1.getImageData(0,0,256,1).data;t?o.forEach((e,i)=>t[i]=e):t=new Uint8ClampedArray(o)}(this.gradient,this._colorPalette)};n(),this.disposers.push((0,Wm.reaction)(()=>({gradient:[...this.gradient]}),n))}setGridData(e){const t=e;if(t&&t.length&&t.length===this.dataWidth*this.dataHeight){this._imageData&&this._imageData.width===this.dataWidth&&this._imageData.height===this.dataHeight||(this._imageData=new ImageData(this.dataWidth,this.dataHeight));const e=this.maxValue-this.minValue,i=[255,255,255,255],n=this.dataHeight,r=this.dataWidth,o=this._imageData.data,s=this.minValue,a=this._colorPalette;if(!v1){v1=Function(`\n "use strict";\n return (function(data, valueRange, color, dataHeight, dataWidth, imageData, minValue, colorPalette, getColorFromColorPalette){\n ${"\n for (let j=0; j<dataHeight; ++j) {\n for (let i=0; i<dataWidth; ++i) {\n const v = data[j*dataWidth+i];\n const ratio = (v - minValue) / valueRange;\n const c = getColorFromColorPalette(ratio, colorPalette, color);\n if (c) {\n const offset = (j*dataWidth+i) * 4;\n imageData[offset + 0] = c[0];\n imageData[offset + 1] = c[1];\n imageData[offset + 2] = c[2];\n imageData[offset + 3] = c[3];\n }\n }\n }\n "}\n });\n `)()}v1(t,e,i,n,r,o,s,a,C1);const l=this._customGroundRectangle;l.canvasWidth=this.dataWidth,l.canvasHeight=this.dataHeight,l.drawCanvas(e=>{e.putImageData(this._imageData,0,0)})}else{const e=this._customGroundRectangle;e.canvasWidth=this.dataWidth,e.canvasHeight=this.dataHeight,e.drawCanvas(e=>{e.fillStyle="white",e.fillRect(0,0,this.dataWidth,this.dataHeight)})}}copyfromOtherCanvas(e){e.width===this.dataWidth&&e.height===this.dataHeight?this._customGroundRectangle&&this._customGroundRectangle._texture&&this._customGroundRectangle._texture.copyFrom(e):_1.warn("请确保canvas尺寸一致!")}flyTo(){this._earth.camera.flyTo(this.position,this.width,[0,-Math.PI/3,0])}}b1.getGridDataFromKriging=function(e,t,i,n,{model:r="exponential",sigma2:o=0,alpha:s=100}={}){const a=n;try{const n=[],l=[],u=[];e.forEach(e=>{l.push(e[0]),u.push(e[1]),n.push(e[2])});const c=y1.train(n,l,u,r,o,s);for(let e=0;e<t;++e)for(let n=0;n<i;++n)if(a[n*t+e]=y1.predict(e,n,c),!isFinite(a[n*t+e]))throw new Error("克里金插值计算出错!");return a}catch(e){return void _1.warn("error: "+e)}},b1.interpolateGridData=function(e,t,i,n,r){try{if(!r)return;for(let o=0;o<n;++o)r[o]=t[o]*(1-e)+i[o]*e;return r}catch(e){return}},b1.defaultOptions={position:[0,0,0],width:100,height:100,origin:[.5,.5],rotation:0,show:!0,gradient:[[0,"green"],[.2,"blue"],[.6,"yellow"],[1,"red"]],minValue:0,maxValue:1,dataWidth:100,dataHeight:100},Cu.A.registerType(b1,"HeatMap");const w1=b1;function x1(e,t,i){let n;"function"==typeof e.next?n=e:(e[Symbol.iterator],n=e[Symbol.iterator]());let r=i||n.next().value;for(let e of n)r=t(r,e);return r}function S1(e){return x1(e,(e,t)=>e>t?e:t,Number.NEGATIVE_INFINITY)}function M1(e){return x1(e,(e,t)=>e<t?e:t,Number.POSITIVE_INFINITY)}function*P1(e,...t){const i=e.length;for(let n=0;n<i;++n){let i=e[n];t.forEach(e=>i=i[e]),yield i}}let E1;const L1=function(e,t){let i;E1=E1||new Cesium.Cartesian3;{const t=P1,n=e,r=[M1(t(n,"position","0")),M1(t(n,"position","1")),M1(t(n,"position","2"))],o=[S1(t(n,"position","0")),S1(t(n,"position","1")),S1(t(n,"position","2"))],s=[.5*(r[0]+o[0]),.5*(r[1]+o[1]),r[2]],a=Cesium.Cartesian3.fromRadians(...s,void 0,new Cesium.Cartesian3),l=Cesium.Transforms.eastNorthUpToFixedFrame(a,void 0,new Cesium.Matrix4),u=Cesium.Matrix4.inverse(l,new Cesium.Matrix4);e.forEach(e=>{const t=e.position;let i=Cesium.Cartesian3.fromRadians(t[0],t[1],t[2],void 0,E1);if(i=Cesium.Matrix4.multiplyByPoint(u,i,i),!i)throw new Error("localPosition 计算错误!");e.localPosition=[i.x,i.y,i.z]}),i=l}return i};!function(e=6,t=Math.PI/4,i=1080){Math.tan(.5*t)}();const T1=2*Math.PI*6378137,O1=.1*T1/256,D1=[...new Array(31).keys()].map(e=>O1/(1<<e)),B1=[...new Array(31).keys()].map(e=>T1/(1<<e));let I1,R1,N1,k1,F1;function H1(e,t,i){I1=I1||new Cesium.Cartesian3,R1=R1||new Cesium.Cartesian3,N1=N1||new Cesium.Cartesian3,k1=k1||new Cesium.Quaternion,F1=F1||new Cesium.Matrix4;const n=[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY],r=[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY];return e.index.forEach(e=>{const o=t[e].localPosition,s=i[t[e].type||0],a=t[e].rotation,l=t[e].scale;let u,c;{const e=Cesium.Quaternion.fromHeadingPitchRoll(new Cesium.HeadingPitchRoll(a[0],a[1],a[2]),k1),t=Cesium.Cartesian3.fromElements(l[0],l[1],l[2],N1);u=Cesium.Matrix4.fromTranslationQuaternionRotationScale(Cesium.Cartesian3.ZERO,e,t,F1)}{const e=s.center,t=s.size.map(e=>.5*e);c=[[e[0]-t[0],e[1]-t[1],e[2]-t[2]],[e[0]+t[0],e[1]-t[1],e[2]-t[2]],[e[0]+t[0],e[1]+t[1],e[2]-t[2]],[e[0]-t[0],e[1]+t[1],e[2]-t[2]],[e[0]-t[0],e[1]-t[1],e[2]+t[2]],[e[0]+t[0],e[1]-t[1],e[2]+t[2]],[e[0]+t[0],e[1]+t[1],e[2]+t[2]],[e[0]-t[0],e[1]+t[1],e[2]+t[2]]],c=c.map(e=>{const t=Cesium.Matrix4.multiplyByPoint(u,Cesium.Cartesian3.fromElements(e[0],e[1],e[2],I1),I1);return[t.x,t.y,t.z]})}const h=P1,p=[o[0]+M1(h(c,"0")),o[1]+M1(h(c,"1")),o[2]+M1(h(c,"2"))],d=[o[0]+S1(h(c,"0")),o[1]+S1(h(c,"1")),o[2]+S1(h(c,"2"))];for(let e=0;e<3;++e)n[e]=n[e]<p[e]?n[e]:p[e],r[e]=r[e]>d[e]?r[e]:d[e]}),[n,r]}const Y1=function(e,t){let i,n,r;{const t=P1,o=e;n=[M1(t(o,"localPosition","0")),M1(t(o,"localPosition","1")),M1(t(o,"localPosition","2"))],r=[S1(t(o,"localPosition","0")),S1(t(o,"localPosition","1")),S1(t(o,"localPosition","2"))];for(let e=0;e<3;++e)n[e]-=.001,r[e]+=.001;const s=r[0]-n[0],a=r[1]-n[1];i=S1([s,a])}let o=B1.findIndex(e=>e<i)-1;o<0&&(o=23);const s=e.length;let a={index:[...new Array(s).keys()],level:o,min:n,max:r,children:[],name:"R"};const l=[a];for(;l.length>0;){const t=l.pop(),i=t.level+1;if(i>23)continue;const n=B1[i];[[0,0],[0,1],[1,0],[1,1]].forEach(r=>{const o=[...t.min];o[0]+=n*r[0],o[1]+=n*r[1];const s=[...o];if(s[0]+=n,s[1]+=n,s[2]=t.max[2],o[0]<t.max[0]&&o[1]<t.max[1]){s[0]=s[0]>t.max[0]?t.max[0]:s[0],s[1]=s[1]>t.max[1]?t.max[1]:s[1];const n={index:[],level:i,min:o,max:s,children:[],name:`${t.name}${r[0]}${r[1]}`};t.index.forEach(t=>{const i=e[t].localPosition;i[0]>=o[0]&&i[0]<s[0]&&i[1]>=o[1]&&i[1]<s[1]&&n.index.push(t)}),n.index.length>0&&(t.children.push(n),l.push(n))}})}{const i=[a];for(;i.length>0;){const n=i[i.length-1];if(n.children&&n.children.length>0)if(n.children[0].extendMin){const e=n.children,t=P1;n.extendMin=[M1(t(e,"extendMin","0")),M1(t(e,"extendMin","1")),M1(t(e,"extendMin","2"))],n.extendMax=[S1(t(e,"extendMax","0")),S1(t(e,"extendMax","1")),S1(t(e,"extendMax","2"))],i.pop()}else n.children.forEach(e=>{i.push(e)});else{const[r,o]=H1(n,e,t);n.extendMin=r,n.extendMax=o,i.pop()}}}return a};const j1=function(e,t,i,n){const r={cmptMaps:new Map,treeData:t,treeTypes:i,rootJSON:void 0,tilesetJSON:void 0};let o;{let t;{const i=e.extendMin,n=e.extendMax,r=[.5*(i[0]+n[0]),.5*(i[1]+n[1]),.5*(i[2]+n[2])],o=[.5*(n[0]-i[0]),.5*(n[1]-i[1]),.5*(n[2]-i[2])];t=[r[0],r[1],r[2],o[0],0,0,0,o[1],0,0,0,o[2]]}const i=Cesium.Matrix4.toArray(n),s=D1[e.level],a=`L${e.level}-${e.name}.cmpt`;o={refine:"REPLACE",boundingVolume:{box:t},transform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],geometricError:16*s,content:{uri:a},extras:{gvolID:Cesium.createGuid(),parentXbsjID:null,level:e.level}};const l={asset:{generatetool:"cesiumlab2@www.cesiumlab.com",gltfUpAxis:"Z",version:"1.0"},root:{refine:"REPLACE",boundingVolume:{box:t},transform:i,geometricError:16*s,content:{uri:"./root.json"}}};r.tilesetJSON=l,r.cmptMaps.set(a,{block:e,geometricError:s})}const s=[{parentBlock:e,parentTile:o}];for(;s.length>0;){const{parentBlock:e,parentTile:i}=s.pop();e.children.forEach(e=>{let n,o;{function*u(i){const n=e.index.length;for(let r=0;r<n;++r){const n=e.index[r];yield t[n].localPosition[i]}}n=[M1(u(0)),M1(u(1)),M1(u(2))],o=[S1(u(0)),S1(u(1)),S1(u(2))]}const a=e.min,l=e.max;if(!(a[0]<=n[0]&&a[1]<=n[1]&&a[2]<=n[2]&&l[0]>o[0]&&l[1]>o[1]&&l[2]>o[2]))throw new Error("fillBlocks error");{let c;{const m=e.extendMin,g=e.extendMax,y=[.5*(m[0]+g[0]),.5*(m[1]+g[1]),.5*(m[2]+g[2])],_=[.5*(g[0]-m[0]),.5*(g[1]-m[1]),.5*(g[2]-m[2])];c=[y[0],y[1],y[2],_[0],0,0,0,_[1],0,0,0,_[2]]}const h=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],p=D1[e.level],d=`L${e.level}-${e.name}.cmpt`,f={refine:"REPLACE",boundingVolume:{box:c},transform:h,geometricError:16*p,extras:{gvolID:Cesium.createGuid(),parentXbsjID:i.gvolID,level:e.level},content:{uri:d}};i.children=i.children||[],i.children.push(f),r.cmptMaps.set(d,{block:e,geometricError:p}),e.children.length>0&&s.push({parentBlock:e,parentTile:f})}})}const a={asset:{generatetool:"cesiumlab2@www.cesiumlab.com",gltfUpAxis:"Z",version:"1.0"},root:o};return r.rootJSON=a,r};const U1=function(e,t,i=0,n=0,r=t.byteLength){const o=new Uint8Array(t.buffer||t,n,r),s=new Uint8Array(e,i,r);for(let e=0;e<r;++e)s[e]=o[e]},G1=new TextEncoder;const Q1=function(e){const t=16+e.reduce((e,t)=>e+t.byteLength,0),i=e.length,n=G1.encode("cmpt"),r=new ArrayBuffer(t),o=new Uint32Array(r,0,4);o[0]=new DataView(n.buffer).getUint32(0,!0),o[1]=1,o[2]=t,o[3]=i;let s=16;return e.forEach(e=>{if(e.byteLength%8!=0)throw new Error("tileBuffer.byteLength % 8 !== 0");U1(r,e,s),s+=e.byteLength}),r};const z1=function(e,t,i,n=0){const r=new Uint8Array(e,t,i);for(let e=0;e<i;++e)r[e]=n},W1=new TextEncoder;let X1,V1;const J1=function(e,t,i){const n={magic:"i3dm",version:1,byteLength:0,featureTableJSONByteLength:0,featureTableBinaryByteLength:0,batchTableJSONByteLength:0,batchTableBinaryByteLength:0,gltfFormat:0},r={featureTable:{JSON:void 0,JSONExtraByteLength:0,Binary:void 0,BinaryExtraByteLength:0},batchTable:{JSON:void 0,JSONExtraByteLength:0,Binary:void 0,BinaryExtraByteLength:0},urlOrBinaryGltf:void 0,urlOrBinaryGltfExtraByteLength:0};{const n=t.length,o=12*n,s=12*n*2,a=12*n*3;{const e={INSTANCES_LENGTH:n,POSITION:{byteOffset:0},NORMAL_UP:{byteOffset:o},NORMAL_RIGHT:{byteOffset:s},SCALE_NON_UNIFORM:{byteOffset:a},BATCH_ID:{byteOffset:12*n*4}},t=JSON.stringify(e);r.featureTable.JSON=W1.encode(t);const i=r.featureTable.JSON.byteLength;r.featureTable.JSONExtraByteLength=(8-i%8)%8}{const i=new ArrayBuffer(50*n),l=new Float32Array(i,0,3*n*4),u=new Uint16Array(i,48*n,n);t.forEach((t,i)=>{const n=e[t],r=n.localPosition;l[3*i+0]=r[0],l[3*i+1]=r[1],l[3*i+2]=r[2];{X1=X1||new Cesium.Matrix3,V1=V1||new Cesium.HeadingPitchRoll,V1.heading=n.rotation[0],V1.pitch=n.rotation[1],V1.roll=n.rotation[2];const e=Cesium.Matrix3.fromHeadingPitchRoll(V1,X1);l[o/4+3*i+0]=e[6],l[o/4+3*i+1]=e[7],l[o/4+3*i+2]=e[8],l[s/4+3*i+0]=e[0],l[s/4+3*i+1]=e[1],l[s/4+3*i+2]=e[2]}l[a/4+3*i+0]=n.scale[0],l[a/4+3*i+1]=n.scale[1],l[a/4+3*i+2]=n.scale[2],u[i]=i}),r.featureTable.Binary=i;const c=r.featureTable.Binary.byteLength;r.featureTable.BinaryExtraByteLength=(8-c%8)%8}{const e={id:t.map(e=>""+e)},i=JSON.stringify(e);r.batchTable.JSON=W1.encode(i);const n=r.batchTable.JSON.byteLength;r.batchTable.JSONExtraByteLength=(8-n%8)%8}{r.urlOrBinaryGltf=W1.encode(i);const e=r.urlOrBinaryGltf.byteLength;r.urlOrBinaryGltfExtraByteLength=(8-e%8)%8}}{n.featureTableJSONByteLength=r.featureTable.JSON.byteLength+r.featureTable.JSONExtraByteLength,n.featureTableBinaryByteLength=r.featureTable.Binary.byteLength+r.featureTable.BinaryExtraByteLength,n.batchTableJSONByteLength=(r.batchTable.JSON?r.batchTable.JSON.byteLength:0)+r.batchTable.JSONExtraByteLength,n.batchTableBinaryByteLength=(r.batchTable.Binary?r.batchTable.Binary.byteLength:0)+r.batchTable.BinaryExtraByteLength;const e=n.featureTableJSONByteLength+n.featureTableBinaryByteLength+n.batchTableJSONByteLength+n.batchTableBinaryByteLength+r.urlOrBinaryGltf.byteLength+r.urlOrBinaryGltfExtraByteLength;n.byteLength=32+e}const o=new ArrayBuffer(32);{const e=new Uint8Array(o,0,4);{const t=n.magic.length;for(let i=0;i<t;++i){const t=n.magic.codePointAt(i);if(t>255)throw new Error("codePoint > 255");e[i]=t}}const t=new Uint32Array(o,4,7);t[0]=n.version,t[1]=n.byteLength,t[2]=n.featureTableJSONByteLength,t[3]=n.featureTableBinaryByteLength,t[4]=n.batchTableJSONByteLength,t[5]=n.batchTableBinaryByteLength,t[6]=n.gltfFormat}const s=new ArrayBuffer(n.byteLength);{let e=0;U1(s,o,e),e+=o.byteLength,U1(s,r.featureTable.JSON,e),e+=r.featureTable.JSON.byteLength,z1(s,e,r.featureTable.JSONExtraByteLength,32),e+=r.featureTable.JSONExtraByteLength,U1(s,r.featureTable.Binary,e),e+=r.featureTable.Binary.byteLength,z1(s,e,r.featureTable.BinaryExtraByteLength,0),e+=r.featureTable.BinaryExtraByteLength,r.batchTable.JSON&&(U1(s,r.batchTable.JSON,e),e+=r.batchTable.JSON.byteLength,z1(s,e,r.batchTable.JSONExtraByteLength,32),e+=r.batchTable.JSONExtraByteLength),r.batchTable.Binary&&(U1(s,r.batchTable.Binary,e),e+=r.batchTable.Binary.byteLength,z1(s,e,r.batchTable.BinaryExtraByteLength,0),e+=r.batchTable.BinaryExtraByteLength),U1(s,r.urlOrBinaryGltf,e),e+=r.urlOrBinaryGltf.byteLength;const t=0===n.gltfFormat?32:0;if(z1(s,e,r.urlOrBinaryGltfExtraByteLength,t),e+=r.urlOrBinaryGltfExtraByteLength,e!==n.byteLength)throw new Error("targetByteOffset !== header.byteLength")}return s};const K1=function(e,t,i,n){const r={};e.index.forEach(e=>{const i=t[e].type||0;r[i]=r[i]||[],r[i].push(e)});const o=Object.keys(r).map(e=>{const o=i[e],s=r[e];let a=o.lods.findIndex(e=>{const t=e[0];return S1(o.size)<n*t});a=a<0?o.lods.length-1:a;const l=o.lods[a][1];return J1(t,s,l)});return Q1(o)};var Z1=__webpack_require__(6763);const q1=function(e,t){const i=L1(e,t),n=Y1(e,t),r=j1(n,e,t,i);return e=>function(e,t){const i=t.treeData,n=t.treeTypes;if(!e.endsWith(".cmpt"))return"tileset.json"===e?t.tilesetJSON:"root.json"===e?t.rootJSON:void 0;if(t.cmptMaps.has(e))try{const r=t.cmptMaps.get(e);return K1(r.block,i,n,r.geometricError)}catch(e){return void Z1.warn("createCmptFromBlock error!")}}(e,r)};const $1=class{constructor(){this._generators={}}createGenerator(e,t){const i=q1(e,t),n=Cesium.createGuid();return this._generators[n]=i,n}getGenerator(e){return this._generators[e]}destroyGenerator(e){delete this._generators[e]}destroy(){this._generators=void 0}};const e2=function(){if(window.gvolTreeGeneratorManager)return;const e=new $1;window.gvolTreeGeneratorManager=e;const t=Cesium.Resource.prototype.fetchJson,i=Cesium.Resource.prototype.fetchArrayBuffer;Cesium.Resource.prototype.fetchJson=function(...i){if(!this.url.startsWith("https://gvoltree.cn/"))return t.call(this,...i);{const t=this.url.substring(20,56),i=this.url.substring(57),n=e.getGenerator(t);if(n){const e=n(i);return Cesium.when.resolve(e)}}},Cesium.Resource.prototype.fetchArrayBuffer=function(...t){if(!this.url.startsWith("https://gvoltree.cn/"))return i.call(this,...t);{const t=this.url.substring(20,56),i=this.url.substring(57),n=e.getGenerator(t);if(n){let e=n(i);if(!(e instanceof ArrayBuffer)){const t=JSON.stringify(e);e=(new TextEncoder).encode(t)}return Cesium.when.resolve(e)}}}};var t2=__webpack_require__(6763);class i2 extends rg.A{constructor(e,t){super(e,t),this._treeData=[],this._treeTypes=[],this.disposers.push((0,ng.A)(this,"enabled",this,"show")),e2(),this._tileset=new Kw.A(e),this.disposers.push(()=>{this._tileset=this._tileset&&this._tileset.destroy()}),this._tgid=void 0,this.disposers.push(()=>{window.gvolTreeGeneratorManager.destroyGenerator(this._tgid),this._tgid=void 0}),this._recreatingTreeTileset=void 0,this.disposers.push(()=>{this._recreatingTreeTileset&&this._recreatingTreeTileset.unsubscribe()}),this._loadingTreeMeta=void 0,this.disposers.push(()=>{this._loadingTreeMeta&&(this._loadingTreeMeta.unsubscribe(),this._loadingTreeMeta=void 0)}),this._loadTreeMeta(this.treeMetas),this.disposers.push((0,Wm.reaction)(()=>JSON.stringify(this.treeMetas),()=>{this._loadTreeMeta(this.treeMetas)})),this._loadingTreeData=void 0,this.disposers.push(()=>{this._loadingTreeData&&(this._loadingTreeData.unsubscribe(),this._loadingTreeData=void 0)}),this._loadTreeData(this.treeDataUrl),this.disposers.push((0,Wm.reaction)(()=>this.treeDataUrl,()=>{this._loadTreeData(this.treeDataUrl)}));this.disposers.push((0,Wm.reaction)(()=>this.show,()=>{this._tileset.show=this.show}))}flyTo(){this._tileset.flyTo()}reload(){this._loadTreeData(this.treeDataUrl)}recreate(){this._recreateTreeTilesetDelay()}getTreeData(){return this._treeData}getTreeTypes(){return this._treeTypes}_recreateTreeTilesetDelay(){this._recreatingTreeTileset&&this._recreatingTreeTileset.unsubscribe(),this._recreatingTreeTileset=rxjs.timer(3e3).subscribe(()=>this._recreateTreeTileset(),void 0,this._recreatingTreeTileset=void 0)}_recreateTreeTileset(){this._treeTypes&&this._treeTypes.length>0&&this._treeData&&this._treeData.length>0&&(this._tgid=this._tgid&&window.gvolTreeGeneratorManager.destroyGenerator(this._tgid),this._tgid=window.gvolTreeGeneratorManager.createGenerator(this._treeData,this._treeTypes),this._tileset.url=`https://gvoltree.cn/${this._tgid}/tileset.json`)}_loadTreeMeta(e){if(this._loadingTreeMeta&&(this._loadingTreeMeta.unsubscribe(),this._loadingTreeMeta=void 0),!e||0===e.length)return;const t=e.map((e,t)=>({metaUrl:e.url,index:t}));this._loadingTreeMeta=rxjs.from(t).pipe(rxjs.operators.mergeMap(e=>{const{metaUrl:t,index:i}=e;return function(e){var t=new rxjs.Observable(t=>{try{Cesium.Resource.fetchJson(e).then(e=>{t.next(e),t.complete()}).otherwise(e=>{t.next(void 0),t.complete()})}catch(e){t2.warn(`catch 获取数据出错: fetchJson(metaUrl) ${e}`),t.next(void 0),t.complete()}});return t}(t).pipe(rxjs.operators.map(e=>({metaData:e,metaUrl:t,index:i})))},void 0,6),rxjs.operators.toArray(),rxjs.operators.map(e=>{if(e.some(e=>void 0!==e.metaData)){const t=new Array(e.length);e.forEach(e=>{const{metaUrl:i,metaData:n,index:r}=e;let o=i.lastIndexOf("?");o=-1===o?void 0:o;const s=i.substring(0,o);if(s.endsWith("meta.json")){const e=function(e,t,i){const{center:n,size:r,lod0Pixel:o}=i;let s=o;return{name:e,center:n,size:r,lods:i.lod.map(e=>{const i=[s,t+e.url];return s*=2,i})}}("anonymous",s.substring(0,s.lastIndexOf("meta.json")),n);t[r]=e}}),this._treeTypes=t,this._recreateTreeTilesetDelay()}})).subscribe(void 0,e=>{t2.error("treeMeta error! "+e),this._loadingTreeMeta=void 0},()=>{this._loadingTreeMeta=void 0})}_loadTreeData(e){if(this._loadingTreeData&&(this._loadingTreeData.unsubscribe(),this._loadingTreeData=void 0),!e)return;const t=(-1===e.lastIndexOf("?")?"?":"&")+"xxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)});var i=new rxjs.Observable(i=>{Cesium.Resource.fetchJson(e+t).then(e=>{i.next(e),i.complete()}).otherwise(e=>{i.error(e)})});this._loadingTreeData=i.subscribe(e=>{this._treeData=e,this._recreateTreeTilesetDelay()},e=>{t2.error("treeData error! "+e),this._loadingTreeData=void 0},()=>{this._loadingTreeData=void 0})}}i2.testRandomTreeData=function(e=500,t,i,n){const r=Math.PI/180;t=t||[116.39*r,39.9*r,0],i=i||3*(0|Math.sqrt(e)),n=n||3*(0|Math.sqrt(e));const o=i/(6378137*Math.cos(t[1])),s=n/6378137,a=[];for(let i=0;i<e;++i){const e=.3*Math.random()+.7,n={position:[t[0]+o*Math.random(),t[1]+s*Math.random(),1*Math.random()],rotation:[Math.random()*Math.PI,0,0],scale:[e,e,e],id:`id${i}`,type:0};a.push(n)}return a},i2.defaultOptions={treeDataUrl:"",treeMetas:[],show:!0};i2.gvolSchema={title:"Forest Property",type:"object",properties:{show:{type:"boolean",title:"显示",default:!0,description:"显示"},treeDataUrl:{type:"string",title:"点位信息url",default:"",description:"点位信息url"},treeMetas:{type:"array",items:{type:"Obj.Forest.TreeMeta"},minItems:0,title:"实例类型url集合",default:[],description:"实例类型url集合"}}};i2.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["show","treeDataUrl","treeMetas"]}],Cu.A.registerType(i2,"Forest");const n2=i2;const r2=function(e,t){var i;return t=t||{},e>=0?(i=65536*Math.floor(e/65536),t.high=i,t.low=e-i):(i=65536*Math.floor(-e/65536),t.high=-i,t.low=e+i),t};var o2=__webpack_require__(6763);const s2={high:void 0,low:void 0},a2=["size","origin","subImageYOffset","subImageWidth","subImageHeight","animateImageNum","startTime","duration","rotationSpeed","scale","pixelOffset","color","show"],l2={size:void 0,origin:void 0,subImageYOffset:0,subImageWidth:void 0,subImageHeight:void 0,animateImageNum:void 0,startTime:void 0,duration:void 0,rotationSpeed:0,scale:1,pixelOffset:[0,0],color:[255,255,255,255],show:!0},u2=[0,0,0,0];class c2{constructor(e,t){this._disposers=[],this._color=void 0,this._show=void 0,this._dynamicPoisPrimitive=e,a2.forEach(e=>{this[e]=t[e]||l2[e],void 0===this[e]&&o2.warn("有属性值未undefined")}),this._instancePositionHigh=[0,0,0],this._instancePositionLow=[0,0,0],this.instancePosition=t.instancePosition}get instancePosition(){return this._instancePosition}get instancePositionHigh(){return this._instancePositionHigh}get instancePositionLow(){return this._instancePositionLow}set instancePosition(e){if(this._instancePosition!==e){this._instancePosition=e;for(let e=0;e<3;++e){const t=r2(this._instancePosition[e],s2);this._instancePositionHigh[e]=t.high,this._instancePositionLow[e]=t.low}this._dynamicPoisPrimitive._instancePropertyDirty=!0}}get blendColor(){return this._show?this._color:u2}get allowPicking(){return!0}onclick(){this.scale=1.5}onclickout(){this.scale=1}onmouseover(){this.scale=1.2}onmouseout(){this.scale=1}isDestroyed(){return!1}_destroy(){return this._disposers.reverse(),this._disposers.forEach(e=>e()),this._disposers.length=0,Cesium.destroyObject(this)}destroy(){this._dynamicPoisPrimitive.remove(this)}}a2.forEach(function(e){Object.defineProperty(c2.prototype,e,{get(){return this["_"+e]},set(t){this["_"+e]!==t&&(this["_"+e]=t,this._dynamicPoisPrimitive._instancePropertyDirty=!0)}})});const h2=c2,p2=(e,t)=>`#version 300 es\n precision highp float;\n\n in vec2 positionOrTexCoord;\n\n ${e}\n\n // uniform vec4 czm_viewport;\n uniform float u_engineTime;\n uniform vec4 u_animateTextureSize; // u_animateTextureSize => imageWidth, imageHeight, 1.0/imageWidth, 1.0/imageHeight\n\n out vec2 v_texCoord;\n out vec4 v_color;\n out vec4 v_pickColor;\n void main() {\n ${t}\n\n vec4 p = czm_translateRelativeToEye(instancePositionHigh, instancePositionLow);\n vec4 instancePosition = czm_modelViewProjectionRelativeToEye * p;\n instancePosition /= instancePosition.w;\n\n float rotationRatio = 0.0;\n if (rotationSpeed != 0.0) {\n float rotationDuration = 2.0 * 3.14159265 / rotationSpeed;\n rotationRatio = mod(u_engineTime + startTime, rotationDuration) / rotationDuration;\n }\n vec2 localPos = (positionOrTexCoord - origin) * size * 2.0;\n mat2 scaleM = mat2(scale, 0.0, 0.0, scale);\n vec2 csr = vec2(cos(rotationRatio * 3.14159265 * 2.0), sin(rotationRatio * 3.14159265 * 2.0));\n mat2 rotateM = mat2(csr, -csr.y, csr.x);\n localPos = rotateM * scaleM * localPos;\n localPos /= czm_viewport.zw;\n vec2 offsetW = pixelOffset * 2.0 / czm_viewport.zw;\n gl_Position = vec4(localPos + instancePosition.xy + offsetW, instancePosition.z, 1.0);\n\n vec2 subImageSize = vec2(subImageWidth, subImageHeight);\n\n float timeRatio = 0.0;\n if (duration != 0.0) {\n timeRatio = mod(u_engineTime + startTime, duration) / duration;\n }\n float diffX = floor(timeRatio * animateImageNum) * (subImageSize.x * u_animateTextureSize.z);\n float diffY = subImageYOffset * u_animateTextureSize.w;\n\n v_texCoord = positionOrTexCoord * subImageSize * u_animateTextureSize.zw + vec2(diffX, diffY);\n v_color = blendColor;\n v_pickColor = _pickColor;\n }\n `;const d2=function(e,t,i){const n=new Cesium.ShaderSource({sources:[p2(t,i)]}),r=new Cesium.ShaderSource({sources:["#version 300 es\n precision highp float;\n in vec2 v_texCoord;\n in vec4 v_color;\n in vec4 v_pickColor;\n\n uniform sampler2D u_animateTexture;\n void main() {\n out_FragColor = texture(u_animateTexture, v_texCoord) * v_color;\n }\n"]});return Cesium.ShaderProgram.fromCache({context:e,vertexShaderSource:n,fragmentShaderSource:r})};const f2=function(e,t){var i={depthTest:{enabled:!0}};return e&&(i.depthMask=!1,i.blending=Cesium.BlendingState.ALPHA_BLEND),t&&(i.cull={enabled:!0,face:Cesium.CullFace.BACK}),i};const m2=function(e,t,i,n){const r=d2(e,i,n),o=new Cesium.Cartesian4(1,1,1,1),s={u_animateTexture:function(){return t._texture||e.defaultTexture},u_engineTime:function(){return Date.now()%108e5/1e3},u_animateTextureSize:function(){return t._textureSize?t._textureSize:o}},a=Cesium.RenderState.fromCache(f2(!0,!0)),l=Cesium.PrimitiveType.TRIANGLES,u=Cesium.Pass.TRANSLUCENT,c=Cesium.Matrix4.IDENTITY;return new Cesium.DrawCommand({primitiveType:l,renderState:a,shaderProgram:r,uniformMap:s,owner:this,pass:u,modelMatrix:c,cull:!1,instanceCount:t._instanceData.length})},g2=WebGLRenderingContext;var y2=__webpack_require__(6763);const _2=g2;function A2(e){let t=0,i={},n=0;return e.accessors.forEach(e=>{let r;switch(e.type){case WebGL2RenderingContext.BYTE:r=1;break;case WebGL2RenderingContext.SHORT:r=2;break;case WebGL2RenderingContext.UNSIGNED_BYTE:r=1;break;case WebGL2RenderingContext.UNSIGNED_SHORT:r=2;break;case WebGL2RenderingContext.FLOAT:r=4;break;case WebGL2RenderingContext.HALF_FLOAT:default:throw new Error("attributeType类型有误!")}if(r*=e.size,t+=r,e.propName&&!e.composite)i[e.propName]={offset:n,size:e.size,type:e.type,byteLength:r},n+=r;else if(e.type===WebGLRenderingContext.FLOAT&&e.composite)e.composite.forEach((t,r)=>{if("string"==typeof t[1])i[t[1]]={offset:n,size:t[0],type:e.type,byteLength:4*t[0]};else if(Array.isArray(t[1])){const r=[...t[1]];t[1].forEach((o,s)=>{i[o[1]]={offset:n,size:t[0],type:e.type,composite:r,byteLength:4*t[0]}})}n+=4*t[0]});else{if(e.propName||e.composite)throw new Error("Spec不合法,不能处理!");n+=r,y2.log("有属性被忽略!")}}),{props:i,vertexByteLength:t}}function v2(e,{userObjectIteratorOrIterable:t,userObjectLength:i=0,propsSpec:n,arrayBufferResult:r,arrayBufferResultOffset:o=0}={}){if(n=n||A2(e),r){if(r.byteLength-o<n.vertexByteLength*i)throw new Error("空间不足!")}else r=new ArrayBuffer(n.vertexByteLength*i),o=0;let s,a=0;if(t){let l=0,u=0;for(let c of t){const t=c.index||u;u++,void 0===s&&(s=t*n.vertexByteLength),a=(t+1)*n.vertexByteLength-s;const h=(e,i,s)=>{const a=n.props[e].offset+n.vertexByteLength*t,l=s;let u;switch(i){case WebGL2RenderingContext.BYTE:u=Int8Array;break;case WebGL2RenderingContext.SHORT:u=Int16Array;break;case WebGL2RenderingContext.UNSIGNED_BYTE:u=Uint8Array;break;case WebGL2RenderingContext.UNSIGNED_SHORT:u=Uint16Array;break;case WebGL2RenderingContext.FLOAT:u=Float32Array;break;case WebGL2RenderingContext.HALF_FLOAT:default:throw new Error("attributeType类型有误!")}var h=new u(r,a+o,l);if(1===l)h[0]=c[e];else for(let t=0;t<l;++t)h[t]=c[e][t]},p=e=>{const i=e[0][1],s=n.props[i].offset+n.vertexByteLength*t;let a=0,l=0;e.forEach(e=>{const t=e[1];l+=c[t]<<a,a+=e[0]}),new DataView(r,s+o,4).setFloat32(0,l,!0)};if(e.accessors.forEach(e=>{e.propName?h(e.propName,e.type,e.size):e.composite&&e.composite.forEach(t=>{"string"==typeof t[1]?h(t[1],e.type,t[0]):Array.isArray(t[1])&&p(t[1])})}),l++,l>=i)break}}return s+=o,{bufferChangedOffset:s,bufferChangedLength:a,arrayBufferResult:r}}const C2={accessors:[{type:_2.FLOAT,size:4,composite:[[2,"size"],[2,"origin"]]},{type:_2.FLOAT,size:4,composite:[[1,"subImageYOffset"],[1,"subImageWidth"],[1,"subImageHeight"],[1,"animateImageNum"]]},{type:_2.FLOAT,size:4,composite:[[3,"instancePositionHigh"],[1,"startTime"]]},{type:_2.FLOAT,size:4,composite:[[3,"instancePositionLow"],[1,"duration"]]},{type:_2.UNSIGNED_BYTE,size:4,propName:"_pickColor"},{type:_2.UNSIGNED_BYTE,size:4,propName:"blendColor"},{type:_2.FLOAT,size:4,composite:[[1,"rotationSpeed"],[1,"scale"],[2,"pixelOffset"]]}]};var b2=__webpack_require__(6763);const w2=function(e,t,i,n){const r=Object.entries(i).map(([e,i])=>{if(!n[e])return void b2.warn(`属性${e}没有使用!`);const r=n[e].index,{size:o,offset:s,type:a,stride:l}=i;return{index:r,vertexBuffer:t,componentsPerAttribute:o,componentDatatype:a,offsetInBytes:s,strideInBytes:l,normalize:a!==g2.FLOAT,instanceDivisor:1}}).filter(e=>!!e);{const t=Cesium.Buffer.createVertexBuffer({context:e,typedArray:new Float32Array([0,0,1,0,1,1,0,1]),usage:Cesium.BufferUsage.STATIC_DRAW}),i=n.positionOrTexCoord.index;r.push({index:i,vertexBuffer:t,componentsPerAttribute:2,componentDatatype:g2.FLOAT,offsetInBytes:0,strideInBytes:0,normalize:!1,instanceDivisor:0})}const o=Cesium.Buffer.createIndexBuffer({context:e,typedArray:new Uint16Array([0,1,2,0,2,3]),usage:Cesium.BufferUsage.STATIC_DRAW,indexDatatype:Cesium.IndexDatatype.UNSIGNED_SHORT});return new Cesium.VertexArray({context:e,attributes:r,indexBuffer:o})};const x2=class{constructor(){this._disposers=[],this._dynamicPois=[],this.show=!0,this._bs=void 0,this._texture=void 0,this._textureSize=new Cesium.Cartesian4(1,1,1,1),this._disposers.push(()=>{this._texture=this._texture&&this._texture.destroy(),this._textureSize=void 0}),this._command=void 0,this._disposers.push(()=>{Cesium.defined(this._command)&&(this._command.shaderProgram=this._command.shaderProgram&&this._command.shaderProgram.destroy(),this._command.vertexArray=this._command.vertexArray&&this._command.vertexArray.destroy(),this._command=void 0)}),this._instancePropertyDirty=!0,this._instanceLengthDirty=!0,this._instanceBuffer=void 0,this._disposers.push(()=>{this._instanceBuffer=this._instanceBuffer&&this._instanceBuffer.destroy()}),this._propLayoutSpec=C2,this._propsSpec=A2(this._propLayoutSpec),this._instanceData=[],this._imageUrl="",this._imageUrlDirty=!1,this._imageSubscription=void 0,this._disposers.push(()=>{this._imageSubscription&&(this._imageSubscription.unsubscribe(),this._imageSubscription=void 0)})}_updateImage(e){if(this._imageUrlDirty&&(this._imageUrlDirty=!1,this._imageSubscription&&(this._imageSubscription.unsubscribe(),this._imageSubscription=void 0),this._imageUrl)){const t=new rxjs.Observable(e=>{Cesium.Resource.createIfNeeded(this._imageUrl).fetchImage().then(function(t){e.next(t)})});this._imageSubscription=t.subscribe(t=>{this._texture=this._texture&&this._texture.destroy(),this._texture=new Cesium.Texture({context:e,source:t});const i=t.naturalWidth,n=t.naturalHeight;this._textureSize.x=i,this._textureSize.y=n,this._textureSize.z=1/i,this._textureSize.w=1/n})}}set imageUrl(e){this._imageUrl!==e&&(this._imageUrl=e,this._imageUrlDirty=!0)}get imageUrl(){return this._imageUrl}add(e){const t=new h2(this,e);return this._instanceData.push(t),this._instanceLengthDirty=!0,t}remove(e){const t=this._instanceData.indexOf(e);if(-1!==t){const e=this._instanceData[t];e._pickId=e._pickId&&e._pickId.destroy(),e._pickColor=void 0,e._destroy(),this._instanceData.splice(t,1),this._instanceLengthDirty=!0}}get(e){return this._instanceData[e]}getLength(){return this._instanceData.length}removeAll(){const e=this._instanceData.length;for(let t=0;t<e;++t){const e=this._instanceData[t];e._pickId=e._pickId&&e._pickId.destroy(),e._pickColor=void 0,e._destroy()}this._instanceData.length=0,this._instanceLengthDirty=!0}update(e){if(!this.show)return;const t=e.context;if(this._updateImage(t),!Cesium.defined(this._command)){const{attributeLayoutSpec:e,vsDecl:i,vsMainStart:n}=function(e){let t="",i="",n={},r=0,o=0;return e.accessors.forEach(e=>{if(e.propName){const i=1===e.size?"float":`vec${e.size}`;t+=`attribute ${i} ${e.propName}; \n`,n[e.propName]={size:e.size,offset:r,type:e.type}}else if(Array.isArray(e.composite)){let o="cmpt",s=0;e.composite.forEach(e=>{s+=e[0],"string"==typeof e[1]?o+="_"+e[1]:Array.isArray(e[1])&&e[1].forEach(e=>{o+="_"+e[1]})}),t+=`attribute ${1===s?"float":`vec${s}`} ${o}; \n`,n[o]={size:e.size,offset:r,type:e.type};let a=0;e.composite.forEach(e=>{const t=e[0];if("string"==typeof e[1]){const n="xyzw".substring(a,a+t);i+=`${1===t?"float":`vec${t}`} ${e[1]} = ${o}.${n}; \n`}else if(Array.isArray(e[1])&&1===e[0]){const t="xyzw"[a],n="cmptf_"+e[1].map(e=>e[1]).join("_");i+=`float ${n} = ${o}.${t}; \n`;let r=0,s=e[1].map(e=>{const t=`float ${e[1]} = floor(${n} * ${(1/(1<<r)).toExponential()}); ${n} -= ${e[1]} * ${(1<<r).toExponential()}; \n`;return r+=e[0],t});s=s.reverse(),i+=s.join("")}a+=t})}let s;if(e.type===WebGLRenderingContext.FLOAT)s=4*e.size;else{if(e.type!==WebGLRenderingContext.UNSIGNED_BYTE)throw new Error("a.type is not float or unsigned byte.");s=1*e.size}o+=s,r+=s}),Object.values(n).forEach(e=>{e.stride=o}),{vsDecl:t,vsMainStart:i,attributeLayoutSpec:n}}(C2);this._propLayoutSpec=C2,this._attributeLayoutSpec=e,this._command=m2(t,this,i,n),this._command.boundingVolume=this._bs,this._command.pickId="v_pickColor"}if(this._instanceLengthDirty){this._instanceLengthDirty=!1,this._instancePropertyDirty=!1,this._instanceBuffer=this._instanceBuffer&&this._instanceBuffer.destroy(),this._instanceArrayBuffer=void 0,this._command.vertexArray&&(this._command.vertexArray.destroy(),this._command.vertexArray=void 0,this._command.instanceCount=0);const t=this._instanceData;if(t.length>0){const i=e.context;t.forEach(e=>{e._pickId||(e._pickId=i.createPickId({primitive:this,id:e}),e._pickColor=e._pickId.color.toBytes())});const n=this._propLayoutSpec,r=this._propsSpec,[o,s]=function(e,t,i,n){const r=v2(t,{userObjectIteratorOrIterable:n,userObjectLength:n.length,propsSpec:i}),o=Cesium.Buffer.createVertexBuffer({context:e,typedArray:new Float32Array(r.arrayBufferResult),usage:Cesium.BufferUsage.STATIC_DRAW});return o.vertexArrayDestroyable=!1,[o,r.arrayBufferResult]}(i,n,r,t);this._instanceBuffer=o,this._instanceArrayBuffer=s;const a=this._attributeLayoutSpec,l=this._command.shaderProgram.vertexAttributes,u=w2(i,this._instanceBuffer,a,l);this._command.vertexArray=u,this._command.instanceCount=this._instanceData.length}}else if(this._instancePropertyDirty){this._instancePropertyDirty=!1;!function(e,t,i,n,r){const o=v2(e,{userObjectIteratorOrIterable:i,userObjectLength:i.length,propsSpec:t,arrayBufferResult:n});r.copyFromArrayView(new Float32Array(o.arrayBufferResult))}(this._propLayoutSpec,this._propsSpec,this._instanceData,this._instanceArrayBuffer,this._instanceBuffer)}Cesium.defined(this._command)&&this._command.vertexArray&&e.commandList.push(this._command)}isDestroyed(){return!1}destroy(){return this._disposers.reverse(),this._disposers.forEach(e=>e()),this._disposers.length=0,Cesium.destroyObject(this)}};class S2 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._primitive=void 0,this.disposers.push(()=>{this._primitive&&(e.czm.scene.primitives.remove(this._primitive),this._primitive=void 0)}),this._primitive=new x2,e.czm.scene.primitives.add(this._primitive)}getPrimitive(){return this._primitive}flyTo(){}}S2.gvolSchema={title:"DynamicPois Property",type:"object",properties:{show:{type:"boolean",title:"是否在三维窗口中显示",default:!0,description:"是否在三维窗口中显示"},imageUrl:{type:"string",title:"纹理对应的图像url",default:0,description:"纹理对应的图像url"}}};S2.defaultOptions={show:!0,imageUrl:""},Cu.A.registerType(S2,"DynamicPois");const M2=S2;var P2=__webpack_require__(6763);class E2 extends i1{constructor(e,t){super(e,t);const i=this._earth.czm.scene;this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._onlyMove=!1,this._fixedPositionsNum=void 0,this._road=void 0,this.disposers.push(()=>{this._road&&(i.groundPrimitives.remove(this._road),this._road=void 0)}),this._material=void 0,(0,Wm.extendObservable)(this,{_texture:void 0},{_texture:Wm.observable.ref}),this.disposers.push(()=>{this._material&&this._material.uniforms.image!==this._texture&&(this._texture.destroy(),this._texture=void 0),this._material&&(this._material.destroy(),this._material=void 0)});const n=()=>{let e=Ql.A.gvolEarthDir+"images/roadImages/4.jpg";""!==this.imageUrl&&(e=this.imageUrl),this._loadingImage=this._loadingImage&&this._loadingImage(),this._loadingImage=(()=>{let t=!0;return Cesium.Resource.fetchImage({url:e}).then(n=>{if(t){const t=n.naturalWidth,o=n.naturalHeight;if(this._texture=new Cesium.Texture({context:i.context,source:n,width:t,height:o}),Cesium.Math.isPowerOfTwo(t)&&Cesium.Math.isPowerOfTwo(o)){var r=new Cesium.Sampler({wrapS:Cesium.TextureWrap.CLAMP_TO_EDGE,wrapT:Cesium.TextureWrap.CLAMP_TO_EDGE,minificationFilter:Cesium.TextureMinificationFilter.LINEAR_MIPMAP_LINEAR,magnificationFilter:Cesium.TextureMagnificationFilter.LINEAR});this._texture.sampler=r,this._texture.generateMipmap(Cesium.MipmapHint.NICEST)}this._currentImageUrl=e}}).otherwise(e=>{P2.error("图像加载错误!"),this._loadingImage=this._loadingImage&&this._loadingImage()}),()=>{t=!1}})()};n(),this.disposers.push(lacdt.MVVM.watch(()=>({imageUrl:this.imageUrl}),n)),this._totalDistance=100;const r=()=>{if(!this._material){const e=Cesium.Material.fromType(Cesium.Material.ImageType);e.uniforms.repeat=new Cesium.Cartesian2(100,1),this._material=e}const e=this._material;e.uniforms.image=this._texture,this._texture&&(e.uniforms.repeat.x=this._totalDistance/this.width*(this._texture.height/this._texture.width)/this.scale)};r(),this.disposers.push(lacdt.MVVM.watch(()=>({scale:this.scale,_texture:this._texture}),r)),this._boundingSphere=new Cesium.BoundingSphere(Cesium.Cartesian3.fromDegrees(0,0,0),10);const o=()=>{this._road&&(i.groundPrimitives.remove(this._road),this._road=void 0);const e=this.positions;if(e.length>=2){const t=e.reduce((e,t)=>(e.push(...t),e),[]),[n]=e.reduce((e,t)=>e[1]?(e[0]+=_b(e[1],t),[e[0],t]):[0,t],[0,void 0]);this._totalDistance=n,r();const o=Cesium.Cartesian3.fromRadiansArrayHeights(t);this._boundingSphere=Cesium.BoundingSphere.fromPoints(o,this._boundingSphere),this._road=i.groundPrimitives.add(new Cesium.XbsjRoad({geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.GroundPolylineGeometry({positions:o,width:this.width})}),appearance:new Cesium.PolylineMaterialAppearance({material:this._material}),asynchronous:!1})),this._road.show=this.show}};o(),this.disposers.push(lacdt.MVVM.watch(()=>({positions:[...this.positions.map(e=>[...e])],width:this.width}),o));const s=()=>{this._road&&(this._road.show=this.show)};s(),this.disposers.push(lacdt.MVVM.watch(()=>({show:this.show}),s))}get onlyMove(){return this._onlyMove}get fixedPositionsNum(){return this._fixedPositionsNum}getTotalDistance(){return this._totalDistance}getTotalArea(){return this._totalDistance*this.width}flyTo(){this._earth.czm.scene.camera.flyToBoundingSphere(this._boundingSphere)}}E2.defaultOptions={positions:[],show:!0,width:15,scale:1,imageUrl:""},Cu.A.registerType(E2,"Road");const L2=E2;let T2;const O2=function(){if(T2)return T2;const e=Cesium.Cartesian2,t=Cesium.Cartesian3,i=Cesium.Cartesian4,n=Cesium.Cartographic,r=Cesium.CornerType,o=Cesium.EllipsoidTangentPlane,s=Cesium.Math,a=Cesium.Matrix3,l=Cesium.Matrix4,u=Cesium.PolylinePipeline,c=Cesium.Quaternion,h=Cesium.Transforms;var p=[new t,new t],d=new t,f=new t,m=new t,g=new t,y=new t,_=new t,A=new t,v=new t,C=new t,b=new t,w=new t,x={},S=new n;function M(e,i,n,r){var o,s=e[0],a=e[1],l=t.angleBetween(s,a),u=Math.ceil(l/r),c=new Array(u);if(i===n){for(o=0;o<u;o++)c[o]=i;return c.push(n),c}var h=(n-i)/u;for(o=1;o<u;o++){var p=i+o*h;c[o]=p}return c[0]=i,c.push(n),c}var P=new t,E=new t,L=new t(-1,0,0),T=new l,O=new l,D=new a,B=a.IDENTITY.clone(),I=new t,R=new i,N=new t;function k(i,n,r,s,u,c,p,d){var f=I,m=R;T=h.eastNorthUpToFixedFrame(i,u,T),f=l.multiplyByPointAsVector(T,L,f);var g=function(i,n,r,s){var a=new o(r,s),l=a.projectPointOntoPlane(t.add(r,i,P),P),u=a.projectPointOntoPlane(t.add(r,n,E),E),c=e.angleBetween(l,u);return u.x*l.y-u.y*l.x>=0?-c:c}(f=t.normalize(f,f),n,i,u);D=a.fromRotationZ(g,D),N.z=c,T=l.multiplyTransformation(T,l.fromRotationTranslation(D,N,O),T);var y=B;y[0]=p;for(var _=0;_<d;_++)for(var A=0;A<r.length;A+=3)m=t.fromArray(r,A,m),m=a.multiplyByVector(y,m,m),m=l.multiplyByPoint(T,m,m),s.push(m.x,m.y,m.z);return s}var F=new t;function H(e,i,n,r,o,s,a){for(var l=0;l<e.length;l+=3){r=k(t.fromArray(e,l,F),i,n,r,o,s[l/3],a,1)}return r}function Y(e,t){for(var i=e.length,n=new Array(3*i),r=0,o=t.x+t.width/2,s=t.height/2,a=0;a<i;a++)n[r++]=e[a].x-o,n[r++]=0,n[r++]=e[a].y-s;return n}var j=new c,U=new t,G=new a;function Q(e,i,n,o,l,u,h,p,d,f){var m,g,y=t.angleBetween(t.subtract(i,e,b),t.subtract(n,e,w)),_=o===r.BEVELED?0:Math.ceil(y/s.toRadians(5));if(m=l?a.fromQuaternion(c.fromAxisAngle(t.negate(e,b),y/(_+1),j),G):a.fromQuaternion(c.fromAxisAngle(e,y/(_+1),j),G),i=t.clone(i,U),_>0)for(var A=f?2:1,v=0;v<_;v++)i=a.multiplyByVector(m,i,i),g=t.subtract(i,e,b),g=t.normalize(g,g),l||(g=t.negate(g,g)),h=k(u.scaleToGeodeticSurface(i,w),g,p,h,u,d,1,A);else g=t.subtract(i,e,b),g=t.normalize(g,g),l||(g=t.negate(g,g)),h=k(u.scaleToGeodeticSurface(i,w),g,p,h,u,d,1,1),n=t.clone(n,U),g=t.subtract(n,e,b),g=t.normalize(g,g),l||(g=t.negate(g,g)),h=k(u.scaleToGeodeticSurface(n,w),g,p,h,u,d,1,1);return h}x.removeDuplicatesFromShape=function(t){for(var i=t.length,n=[],r=i-1,o=0;o<i;r=o++){var s=t[r],a=t[o];e.equals(s,a)||n.push(a)}return n},x.angleIsGreaterThanPi=function(e,i,n,r){var s=new o(n,r),a=s.projectPointOntoPlane(t.add(n,e,P),P),l=s.projectPointOntoPlane(t.add(n,i,E),E);return l.x*a.y-l.y*a.x>=0};var z=new t,W=new t;return x.computePositions=function(e,i,n,o,a){var l=o._ellipsoid,c=function(e,t){for(var i=new Array(e.length),n=0;n<e.length;n++){var r=e[n];S=t.cartesianToCartographic(r,S),i[n]=S.height,e[n]=t.scaleToGeodeticSurface(r,r)}return i}(e,l),h=o._granularity,w=o._cornerType,P=a?function(e,t){var i=e.length,n=new Array(6*i),r=0,o=t.x+t.width/2,s=t.height/2,a=e[0];n[r++]=a.x-o,n[r++]=0,n[r++]=a.y-s;for(var l=1;l<i;l++){var u=(a=e[l]).x-o,c=a.y-s;n[r++]=u,n[r++]=0,n[r++]=c,n[r++]=u,n[r++]=0,n[r++]=c}return a=e[0],n[r++]=a.x-o,n[r++]=0,n[r++]=a.y-s,n}(i,n):Y(i,n),E=a?Y(i,n):void 0,L=n.height/2,T=n.width/2,O=e.length,D=[],B=a?[]:void 0,I=d,R=f,N=m,F=g,j=y,U=_,G=A,X=v,V=C,J=e[0],K=e[1];F=l.geodeticSurfaceNormal(J,F),I=t.subtract(K,J,I),I=t.normalize(I,I),X=t.cross(F,I,X),X=t.normalize(X,X);var Z,q=c[0],$=c[1];a&&(B=k(J,X,E,B,l,q+L,1,1)),V=t.clone(J,V),J=K,R=t.negate(I,R);for(var ee=1;ee<O-1;ee++){var te=a?2:1;K=e[ee+1],I=t.subtract(K,J,I),I=t.normalize(I,I),N=t.add(I,R,N),N=t.normalize(N,N),F=l.geodeticSurfaceNormal(J,F);var ie=t.multiplyByScalar(F,t.dot(I,F),z);t.subtract(I,ie,ie),t.normalize(ie,ie);var ne=t.multiplyByScalar(F,t.dot(R,F),W);if(t.subtract(R,ne,ne),t.normalize(ne,ne),!s.equalsEpsilon(Math.abs(t.dot(ie,ne)),1,s.EPSILON7)){N=t.cross(N,F,N),N=t.cross(F,N,N),N=t.normalize(N,N);var re=1/Math.max(.25,t.magnitude(t.cross(N,R,b))),oe=x.angleIsGreaterThanPi(I,R,J,l);oe?(j=t.add(J,t.multiplyByScalar(N,re*T,N),j),U=t.add(j,t.multiplyByScalar(X,T,U),U),p[0]=t.clone(V,p[0]),p[1]=t.clone(U,p[1]),Z=M(p,q+L,$+L,h),D=H(u.generateArc({positions:p,granularity:h,ellipsoid:l}),X,P,D,l,Z,1),X=t.cross(F,I,X),X=t.normalize(X,X),G=t.add(j,t.multiplyByScalar(X,T,G),G),w===r.ROUNDED||w===r.BEVELED?Q(j,U,G,w,oe,l,D,P,$+L,a):D=k(J,N=t.negate(N,N),P,D,l,$+L,re,te),V=t.clone(G,V)):(j=t.add(J,t.multiplyByScalar(N,re*T,N),j),U=t.add(j,t.multiplyByScalar(X,-T,U),U),p[0]=t.clone(V,p[0]),p[1]=t.clone(U,p[1]),Z=M(p,q+L,$+L,h),D=H(u.generateArc({positions:p,granularity:h,ellipsoid:l}),X,P,D,l,Z,1),X=t.cross(F,I,X),X=t.normalize(X,X),G=t.add(j,t.multiplyByScalar(X,-T,G),G),w===r.ROUNDED||w===r.BEVELED?Q(j,U,G,w,oe,l,D,P,$+L,a):D=k(J,N,P,D,l,$+L,re,te),V=t.clone(G,V)),R=t.negate(I,R)}else D=k(V,X,P,D,l,q+L,1,1),V=J;q=$,$=c[ee+1],J=K}p[0]=t.clone(V,p[0]),p[1]=t.clone(J,p[1]),Z=M(p,q+L,$+L,h),D=H(u.generateArc({positions:p,granularity:h,ellipsoid:l}),X,P,D,l,Z,1),a&&(B=k(J,X,E,B,l,$+L,1,1)),O=D.length;var se=a?O+B.length:O,ae=new Float64Array(se);return ae.set(D),a&&ae.set(B,O),ae},T2=x,T2};let D2;const B2=function(){if(D2)return D2;const e=Cesium.arrayRemoveDuplicates,t=Cesium.BoundingRectangle,i=Cesium.BoundingSphere,n=(Cesium.Cartesian2,Cesium.Cartesian3),r=Cesium.ComponentDatatype,o=Cesium.CornerType,s=Cesium.defaultValue,a=Cesium.defined,l=Cesium.DeveloperError,u=Cesium.Ellipsoid,c=Cesium.Geometry,h=Cesium.GeometryAttribute,p=Cesium.GeometryAttributes,d=Cesium.GeometryPipeline,f=Cesium.IndexDatatype,m=Cesium.Math,g=Cesium.oneTimeWarning,y=Cesium.PolygonPipeline,_=O2(),A=Cesium.PrimitiveType,v=Cesium.VertexFormat,C=Cesium.WindingOrder;function b(e){var t=(e=s(e,s.EMPTY_OBJECT)).polylinePositions,i=e.shapePositions;if(!a(t))throw new l("options.polylinePositions is required.");if(!a(i))throw new l("options.shapePositions is required.");this._positions=t,this._shape=i,this._ellipsoid=u.clone(s(e.ellipsoid,u.WGS84)),this._cornerType=s(e.cornerType,o.ROUNDED),this._vertexFormat=v.clone(s(e.vertexFormat,v.DEFAULT)),this._granularity=s(e.granularity,m.RADIANS_PER_DEGREE),this._workerName="createPolylineVolumeGeometry";var r=1+t.length*n.packedLength;r+=1+i.length*n.packedLength,this.packedLength=r+u.packedLength+v.packedLength+2}b.pack=function(e,t,i){if(!a(e))throw new l("value is required");if(!a(t))throw new l("array is required");var r;i=s(i,0);var o=e._positions,c=o.length;for(t[i++]=c,r=0;r<c;++r,i+=n.packedLength)n.pack(o[r],t,i);var h=e._shape;for(c=h.length,t[i++]=c,r=0;r<c;++r,i+=n.packedLength)n.pack(h[r],t,i);return u.pack(e._ellipsoid,t,i),i+=u.packedLength,v.pack(e._vertexFormat,t,i),i+=v.packedLength,t[i++]=e._cornerType,t[i]=e._granularity,t};var w=u.clone(u.UNIT_SPHERE),x=new v,S={polylinePositions:void 0,shapePositions:void 0,ellipsoid:w,vertexFormat:x,cornerType:void 0,granularity:void 0};b.unpack=function(e,t,i){if(!a(e))throw new l("array is required");var r;t=s(t,0);var o=e[t++],c=new Array(o);for(r=0;r<o;++r,t+=n.packedLength)c[r]=n.unpack(e,t);o=e[t++];var h=new Array(o);for(r=0;r<o;++r,t+=n.packedLength)h[r]=n.unpack(e,t);var p=u.unpack(e,t,w);t+=u.packedLength;var d=v.unpack(e,t,x);t+=v.packedLength;var f=e[t++],m=e[t];return a(i)?(i._positions=c,i._shape=h,i._ellipsoid=u.clone(p,i._ellipsoid),i._vertexFormat=v.clone(d,i._vertexFormat),i._cornerType=f,i._granularity=m,i):(S.polylinePositions=c,S.shapePositions=h,S.cornerType=f,S.granularity=m,new b(S))};var M=new t;return b.createGeometry=function(o){var s=o._positions,a=e(s,n.equalsEpsilon),l=o._shape;if(l=_.removeDuplicatesFromShape(l),!(a.length<2||l.length<3)){y.computeWindingOrder2D(l)===C.CLOCKWISE&&l.reverse();var u=t.fromPoints(l,M);return function(e,t,n,o){var s=new p;o.position&&(s.position=new h({componentDatatype:r.DOUBLE,componentsPerAttribute:3,values:e}));var a,l,u,m,_,v,C=t.length,b=e.length/3,w=(b-2*C)/(2*C),x=y.triangulate(t),S=(w-1)*C*6+2*x.length,M=f.createTypedArray(b,S),P=2*C,E=0;for(a=0;a<w-1;a++){for(l=0;l<C-1;l++)v=(u=2*l+a*C*2)+P,_=(m=u+1)+P,M[E++]=m,M[E++]=u,M[E++]=_,M[E++]=_,M[E++]=u,M[E++]=v;_=(m=1+(u=2*C-2+a*C*2))+P,v=u+P,M[E++]=m,M[E++]=u,M[E++]=_,M[E++]=_,M[E++]=u,M[E++]=v}let L=[0];for(a=0;a<w-1;a++){const t=e,i=new Cesium.Cartesian3(t[8*a*3],t[8*a*3+1],t[8*a*3+2]),n=new Cesium.Cartesian3(t[8*(a+1)*3],t[8*(a+1)*3+1],t[8*(a+1)*3+2]),r=new Cesium.Cartesian3(t[8*a*3+3],t[8*a*3+3+1],t[8*a*3+3+2]),o=new Cesium.Cartesian3(t[8*(a+1)*3+3],t[8*(a+1)*3+3+1],t[8*(a+1)*3+3+2]),s=Cesium.Cartesian3.distance(i,n),l=Cesium.Cartesian3.distance(r,o);L.push(L[L.length-1]+Math.max(s,l))}if(L=L.map(e=>e/L[L.length-1]),o.st||o.tangent||o.bitangent){var T,O,D=new Float32Array(2*b),B=0;for(a=0;a<w;a++){for(T=L[a],O=t[0].z,D[B++]=T,D[B++]=O,l=1;l<C;l++)O=t[l].z,D[B++]=T,D[B++]=O,D[B++]=T,D[B++]=O;O=t[0].z,D[B++]=T,D[B++]=O}for(l=0;l<C;l++)T=0,O=t[l].z,D[B++]=T,D[B++]=O;for(l=0;l<C;l++)T=1-1e-12,O=t[l].z,D[B++]=T,D[B++]=O;s.st=new h({componentDatatype:r.FLOAT,componentsPerAttribute:2,values:new Float32Array(D)})}var I=b-2*C;for(a=0;a<x.length;a+=3){var R=x[a]+I,N=x[a+1]+I,k=x[a+2]+I;M[E++]=R,M[E++]=N,M[E++]=k,M[E++]=k+C,M[E++]=N+C,M[E++]=R+C}var F=new c({attributes:s,indices:M,boundingSphere:i.fromVertices(e),primitiveType:A.TRIANGLES});if(o.normal&&(F=d.computeNormal(F)),o.tangent||o.bitangent){try{F=d.computeTangentAndBitangent(F)}catch(e){g("polyline-volume-tangent-bitangent","Unable to compute tangents and bitangents for polyline volume geometry")}o.tangent||(F.attributes.tangent=void 0),o.bitangent||(F.attributes.bitangent=void 0),o.st||(F.attributes.st=void 0)}return F}(_.computePositions(a,l,u,o,!0),l,0,o._vertexFormat)}},D2=b,D2};var I2=__webpack_require__(6763);class R2 extends i1{constructor(e,t){super(e,t);const i=this._earth.czm.scene;this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._onlyMove=!1,this._fixedPositionsNum=void 0,this._primitive=void 0,this.disposers.push(()=>{this._primitive&&(i.primitives.remove(this._primitive),this._primitive=void 0)}),this._roofPrimitive=void 0,this.disposers.push(()=>{this._roofPrimitive&&(i.primitives.remove(this._roofPrimitive),this._roofPrimitive=void 0)}),this._updateWallMaterialAndTexture(i),this._updateRoofMaterialAndTexture(i),this._boundingSphere=new Cesium.BoundingSphere(Cesium.Cartesian3.fromDegrees(0,0,0),10),this._updateWall(i),this.disposers.push((0,Wm.reaction)(()=>this.show,()=>{this._updateShow()}))}_updateMaterial(){this._material||(this._material=Cesium.Material.fromType("Image"));const e=this._material;e.uniforms.image=this._texture,this._texture&&(e.uniforms.repeat.x=this._totalDistance/this.wallImageHeight*(this._texture.height/this._texture.width)/this.scale,e.uniforms.repeat.y=this.height/this.wallImageHeight)}_updateShow(){this._primitive&&(this._primitive.show=this.show),this._roofPrimitive&&(this._roofPrimitive.show=this.show)}_updateWall(e){const t=()=>{this._primitive&&(e.primitives.remove(this._primitive),this._primitive=void 0),this._roofPrimitive&&(e.primitives.remove(this._roofPrimitive),this._roofPrimitive=void 0);const t=this.positions;if(t.length>=2){const r=t.reduce((e,t)=>(e.push(...t),e),[]),[o]=t.reduce((e,t)=>e[1]?(e[0]+=_b(e[1],t),[e[0],t]):[0,t],[0,void 0]);this._totalDistance=o,this._updateMaterial(),this._updateRoofMaterial(),this._updateShow();const s=Cesium.Cartesian3.fromRadiansArrayHeights(r),a=Cesium.Cartesian3.fromRadiansArrayHeights(r);this._boundingSphere=Cesium.BoundingSphere.fromPoints(s,this._boundingSphere);{const t=.5*this.depth,n=this.height,r=[new Cesium.Cartesian3(-t,0,0),new Cesium.Cartesian3(t,0,0),new Cesium.Cartesian3(t,n,.99),new Cesium.Cartesian3(-t,n,.99)],o=B2(),a=o.createGeometry(new o({polylinePositions:s,vertexFormat:Cesium.VertexFormat.ALL,shapePositions:r,cornerType:Cesium.CornerType.BEVELED}));if(a){{const e=a.attributes.st.values,t=4,i=e.length-4*t,n=this.depth/this._totalDistance;e[i+2]+=n,e[i+4]+=n,e[i+8]-=n,e[i+14]-=n}{const e=a.attributes.st.values,t=4,i=e.length-4*t,n=this.depth/this.wallImageHeight;for(let t=0;t<i;t+=16)e[t+8+1]=0,e[t+10+1]=n}var i=new Cesium.GeometryInstance({geometry:a});this._primitive=e.primitives.add(new Cesium.Primitive({geometryInstances:[i],appearance:new Cesium.MaterialAppearance({material:this._material,translucent:!1,closed:!0,renderState:this.creating?{depthMask:!1}:void 0}),compressVertices:!1,asynchronous:!1}))}}{const t=.5*this.depth,i=this.height,r=[new Cesium.Cartesian3(-(t-.01),i,0),new Cesium.Cartesian3(t-.01,i,.99),new Cesium.Cartesian3(t,i+.01,.99),new Cesium.Cartesian3(-t,i+.01,0)],o=B2();var n=new Cesium.GeometryInstance({geometry:new o({polylinePositions:a,vertexFormat:Cesium.VertexFormat.ALL,shapePositions:r,cornerType:Cesium.CornerType.BEVELED})});this._roofPrimitive=e.primitives.add(new Cesium.Primitive({geometryInstances:[n],appearance:new Cesium.MaterialAppearance({material:this._roofMaterial,translucent:!1,closed:!0,renderState:this.creating?{depthMask:!1}:void 0}),compressVertices:!1,asynchronous:!1}))}}};t(),this.disposers.push(lacdt.MVVM.watch(()=>({positions:[...this.positions.map(e=>[...e])],height:this.height,depth:this.depth,creating:this.creating}),t))}_updateWallMaterialAndTexture(e){this._material=void 0,(0,Wm.extendObservable)(this,{_texture:void 0},{_texture:Wm.observable.ref}),this.disposers.push(()=>{this._material&&this._material.uniforms.image!==this._texture&&(this._texture.destroy(),this._texture=void 0),this._material&&(this._material.destroy(),this._material=void 0)});const t=()=>{let t=Ql.A.gvolEarthDir+"images/wallImages/4.jpg";""!==this.imageUrl&&(t=this.imageUrl),this._loadingImage=this._loadingImage&&this._loadingImage(),this._loadingImage=(()=>{let i=!0;return Cesium.Resource.fetchImage({url:t}).then(n=>{i&&(this._texture=k2(n,e),this._currentImageUrl=t)}).otherwise(e=>{I2.error("图像加载错误!"),this._loadingImage=this._loadingImage&&this._loadingImage()}),()=>{i=!1}})()};t(),this.disposers.push(lacdt.MVVM.watch(()=>({imageUrl:this.imageUrl}),t)),this._totalDistance=100,this._updateMaterial(),this.disposers.push(lacdt.MVVM.watch(()=>({scale:this.scale,_texture:this._texture,_totalDistance:this._totalDistance,wallImageHeight:this.wallImageHeight,height:this.height}),()=>this._updateMaterial()))}_updateRoofMaterial(){this._roofMaterial||(this._roofMaterial=Cesium.Material.fromType("Image"));const e=this._roofMaterial;e.uniforms.image=this._roofTexture,this._roofTexture&&(e.uniforms.repeat.x=this._totalDistance/this.roofImageHeight*(this._roofTexture.height/this._roofTexture.width)/this.scale,e.uniforms.repeat.y=this.depth/this.roofImageHeight)}_updateRoofMaterialAndTexture(e){this._roofMaterial=void 0,(0,Wm.extendObservable)(this,{_roofTexture:void 0},{_roofTexture:Wm.observable.ref}),this.disposers.push(()=>{this._roofMaterial&&this._roofMaterial.uniforms.image!==this._roofTexture&&(this._roofTexture.destroy(),this._roofTexture=void 0),this._roofMaterial&&(this._roofMaterial.destroy(),this._roofMaterial=void 0)});const t=()=>{let t=Ql.A.gvolEarthDir+"images/wallImages/4.jpg";""!==this.roofImageUrl&&(t=this.roofImageUrl),this._loadingRoofImage=this._loadingRoofImage&&this._loadingRoofImage(),this._loadingRoofImage=(()=>{let i=!0;return Cesium.Resource.fetchImage({url:t}).then(n=>{i&&(this._roofTexture=k2(n,e),this._currentRoofImageUrl=t)}).otherwise(e=>{I2.error("图像加载错误!"),this._loadingRoofImage=this._loadingRoofImage&&this._loadingRoofImage()}),()=>{i=!1}})()};t(),this.disposers.push(lacdt.MVVM.watch(()=>({roofImageUrl:this.roofImageUrl}),t)),this._totalDistance=100,this._updateRoofMaterial(),this.disposers.push(lacdt.MVVM.watch(()=>({scale:this.scale,_roofTexture:this._roofTexture,_totalDistance:this._totalDistance,roofImageHeight:this.roofImageHeight,depth:this.depth}),()=>this._updateRoofMaterial()))}get onlyMove(){return this._onlyMove}get fixedPositionsNum(){return this._fixedPositionsNum}flyTo(){this._earth.czm.scene.camera.flyToBoundingSphere(this._boundingSphere)}getTotalDistance(){return this._totalDistance}}R2.defaultOptions={positions:[],show:!0,depth:.8,height:3,scale:1,imageUrl:"",wallImageHeight:3,roofImageUrl:"",roofImageHeight:3},Cu.A.registerType(R2,"Wall");const N2=R2;function k2(e,t){const i=e.naturalWidth,n=e.naturalHeight,r=new Cesium.Texture({context:t.context,source:e,width:i,height:n});if(Cesium.Math.isPowerOfTwo(i)&&Cesium.Math.isPowerOfTwo(n)){const e=new Cesium.Sampler({wrapS:Cesium.TextureWrap.CLAMP_TO_EDGE,wrapT:Cesium.TextureWrap.CLAMP_TO_EDGE,minificationFilter:Cesium.TextureMinificationFilter.LINEAR_MIPMAP_LINEAR,magnificationFilter:Cesium.TextureMagnificationFilter.LINEAR});r.sampler=e,r.generateMipmap(Cesium.MipmapHint.NICEST)}return r}var F2=__webpack_require__(510);class H2 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._primitive=void 0,this.disposers.push(()=>this._primitive&&this._earth.czm.scene.primitives.remove(this._primitive)),this._classificationPrimitive=void 0,this.disposers.push(()=>this._classificationPrimitive&&this._earth.czm.scene.primitives.remove(this._classificationPrimitive)),this._boundingSphere=new Cesium.BoundingSphere;{const e=()=>{this._primitive&&(this._primitive.show=this.show&&this.showHelper),this._classificationPrimitive&&(this._classificationPrimitive.show=this.show)};this.disposers.push((0,Wm.reaction)(()=>({show:this.show,showHelper:this.showHelper}),e));const t=e=>{if(this._primitive&&this._earth.czm.scene.primitives.remove(this._primitive),this._primitive=void 0,e.length>=3){var t=new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromRadiansArray(e)),height:this.height,extrudedHeight:this.extrudedHeight}),i=new Cesium.GeometryInstance({geometry:t,id:this}),n=new Cesium.Primitive({geometryInstances:[i],appearance:new Cesium.MaterialAppearance({material:Cesium.Material.fromType("Color"),faceForward:!0,renderState:{depthTest:{enabled:this.depthTest}},closed:!0}),asynchronous:!1,allowPicking:this.allowPicking,compressVertices:!1});n.appearance.material.uniforms.color=Cesium.Color.YELLOW.withAlpha(.5),this._primitive=this._earth.czm.scene.primitives.add(n)}},i=e=>{if(this._classificationPrimitive&&this._earth.czm.scene.primitives.remove(this._classificationPrimitive),this._classificationPrimitive=void 0,e.length>=3){const r=this.color;var t=new Cesium.PolygonGeometry({vertexFormat:Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,polygonHierarchy:new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromRadiansArray(e)),height:this.height,extrudedHeight:this.extrudedHeight}),i=new Cesium.GeometryInstance({geometry:t,id:this,attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(new Cesium.Color(r[0],r[1],r[2],r[3])),show:new Cesium.ShowGeometryInstanceAttribute(!0)}}),n=new Cesium.ClassificationPrimitive({geometryInstances:[i],asynchronous:!1,allowPicking:this.allowPicking,compressVertices:!1,classificationType:2});this._classificationPrimitive=this._earth.czm.scene.primitives.add(n)}},n=()=>{const e=this.positions.length/2;if(e>=3){const t=[];for(let i=0;i<e;++i)t.push(this.positions[2*i],this.positions[2*i+1],.5*(this.height+this.extrudedHeight));const i=Cesium.Cartesian3.fromRadiansArrayHeights(t);this._boundingSphere=Cesium.BoundingSphere.fromPoints(i,this._boundingSphere)}};this.disposers.push((0,Wm.reaction)(()=>({positions:[...this.positions],height:this.height,extrudedHeight:this.extrudedHeight,depthTest:this.depthTest}),()=>{const r=(0,F2.A)(this.positions);t(r),i(r),e(),n()})),this.disposers.push((0,Wm.reaction)(()=>({color:[...this.color]}),()=>{const t=(0,F2.A)(this.positions);i(t),e()}))}this._polyline=new dx.A(e),this.disposers.push(()=>this._polyline=this._polyline&&this._polyline.destroy()),this._polyline.material.type="XbsjColorMaterial",this._polyline.depthTest=this.depthTest,this._polyline.loop=!0,(0,$w.A)(this._polyline,this),this.disposers.push((0,Wm.autorun)(()=>{this._polyline.material.XbsjColorMaterial.color=this.outline.color,this._polyline.width=this.outline.width,this._polyline.show=this.show&&this.showHelper&&this.outline.show,this._polyline.depthTest=this.depthTest}));{const e=()=>{const e=this.positions.length/2,t=[];for(let i=0;i<e;++i)t.push([this.positions[2*i],this.positions[2*i+1],this.height]);return t},t=e=>this._polyline&&(this._polyline.positions=e);t(e()),this.disposers.push((0,Wm.reaction)(e,t))}this.disposers.push((0,Xx.yt)(this._earth,this,{polygonCreatingWithHeight:"creating"})),this.disposers.push((0,Xx.s)(this._earth,this,{polygonEditingProperty:"editing"})),(0,Wm.extendObservable)(this,{_extrudedPosition:[0,0,0]});const i=()=>{this.positions.length>0&&this._extrudedPosition.splice(0,3,this.positions[0],this.positions[1],this.extrudedHeight)};i(),this.disposers.push((0,Wm.reaction)(()=>({positions:[...this.positions],extrudedHeight:this.extrudedHeight}),i));const n=()=>{this.extrudedHeight=this._extrudedPosition[2]};n(),this.disposers.push((0,Wm.reaction)(()=>[...this._extrudedPosition],n)),this.disposers.push((0,Xx.xA)(this._earth,this,{positionHeightEditing:"extrudedHeightEditing",positionProperty:"_extrudedPosition"}))}get boundingSphere(){return this._boundingSphere}flyTo(){this._earth.czm.scene.camera.flyToBoundingSphere(this._boundingSphere)}destroy(){return super.destroy()}}const Y2={title:"ClassificationPolygon Property",type:"object",properties:{positions:{type:"array",title:"位置数组",default:[],description:"位置数组"},height:{type:"number",title:"多边形的高度",default:0,description:"多边形的高度"},show:{type:"boolean",title:"是否在三维窗口中显示",default:!0,description:"是否在三维窗口中显示"},color:{type:"array",items:{type:"number"},minItems:4,maxItems:4,default:[1,1,1,1],description:"颜色叠加"},showHelper:{type:"boolean",title:"是否显示辅助线框",default:!1,description:"是否显示辅助线框"},outline:{title:"ClassificationPolygon outline Property",type:"object",properties:{show:{type:"boolean",title:"是否在三维窗口中显示",default:!0,description:"是否在三维窗口中显示"},color:{type:"array",items:{type:"number"},minItems:4,maxItems:4,default:[0,1,0,1],description:"颜色叠加"},width:{type:"number",title:"线框的宽度",default:2,description:"线框的宽度"}}},depthTest:{type:"boolean",title:"是否开启深度检测",default:!1,description:"是否开启深度检测"}}};H2.gvolSchema=Y2;H2.gvolClassification=[{name:{chinese:"通用",english:"General"},properties:["positions","height","show","color","showHelper","outline","depthTest"]}],H2.defaultOptions={positions:[],height:0,extrudedHeight:0,show:!0,color:[1,1,0,.5],showHelper:!1,outline:{show:!0,color:[0,1,0,1],width:2},depthTest:!1},Cu.A.registerType(H2,"ClassificationPolygon");const j2=H2;let U2,G2,Q2,z2,W2,X2;function V2(e,t,i){z2=z2||new Cesium.Cartesian3,W2=W2||new Cesium.Cartesian3,X2=X2||new Cesium.Cartesian3;var n=Cesium.Cartesian3.subtract(t,e,z2),r=Cesium.Cartesian3.subtract(i,e,W2),o=Cesium.Cartesian3.cross(n,r,X2);return.5*Cesium.Cartesian3.magnitude(o)}var J2=__webpack_require__(6763);class K2 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,Xx.hp)(this._earth,this,{polylineCreatingProperty:"creating"})),this.disposers.push((0,Xx.wJ)(this._earth,this,{polylineEditingProperty:"editing"})),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._createOutline(),this._createInnerPoints(),this._createTin(),this._createTexturePosRot(),this._totalArea=0}_createOutline(){this._polyline=new lacdt.Obj.Polyline(this._earth),this._polyline.loop=!0,this._polyline.ground=!1,this._polyline.material.XbsjColorMaterial.color=[0,1,0,1],this._polyline.width=3,this.disposers.push(()=>{this._polyline=this._polyline&&this._polyline.destroy()}),this._polyline.show=this.showHelper&&this.show,lacdt.Engine.Interaction.Picking.registerPickingParent(this._polyline,this);const e=()=>{this._polyline.show=this.showHelper&&this.show};e(),this.disposers.push(lacdt.MVVM.watch(()=>({show:this.show,showHelper:this.showHelper}),e));const t=()=>{this._polyline.positions=this.positions,e()};t(),this.disposers.push(lacdt.MVVM.watch(()=>({positions:[...this.positions]}),t))}_createTexturePosRot(){(0,Wm.extendObservable)(this,{_texturePosition:[0,0,0]}),this.disposers.push((0,ng.A)(this,"_texturePosition",this._cp,"position")),this.disposers.push((0,Xx.Wl)(this._earth,this,{rotationEditingProperty:"textureRotationEditing",positionProperty:"_texturePosition",rotationProperty:"textureRotation"}))}_createInnerPoints(){const e=this.earth;lacdt.MVVM.extend(this,{_innerPolylineShow:!0}),this._innerPolyline=new lacdt.Obj.Polyline(e),this._innerPolyline._pointsColor=[0,1,0,.95],this._innerPolyline.loop=!0,this._innerPolyline.ground=!1,this._innerPolyline.material.XbsjColorMaterial.color=[0,1,0,1],this._innerPolyline.depthTest=!1,this._innerPolyline.width=0,this._innerPolyline.showHelper=!0,(0,Wm.extendObservable)(this._innerPolyline,{editingPolylineShow:!1}),this.disposers.push(()=>{this._innerPolyline=this._innerPolyline&&this._innerPolyline.destroy()}),lacdt.Engine.Interaction.Picking.registerPickingParent(this._innerPolyline,this);const t=()=>{this._innerPolyline.show=this.showHelper&&this.show};t(),this.disposers.push(lacdt.MVVM.watch(()=>({show:this.show,showHelper:this.showHelper}),t))}_createTin(){this._cp=new ZS(this._earth),this._cp.renderState.depthTest.enabled=!0,this._cp.vertexShaderSource="#version 300 es\n// vtxf 使用 double 类型的 position 进行计算\n// attribute vec3 position3DHigh;\n// attribute vec3 position3DLow;\nin vec3 position;\nin vec3 normal;\nin vec2 st;\nin vec4 color;\nin float batchId;\nout vec3 v_positionEC;\nout vec3 v_normalEC;\nout vec2 v_st;\nout vec4 v_color;\nvoid main()\n{\n // vtxf 使用 double 类型的 position 进行计算\n // vec4 p = czm_translateRelativeToEye(position3DHigh, position3DLow);\n // v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\n // v_normalEC = czm_normal * normal; // normal in eye coordinates\n // v_st = st;\n // gl_Position = czm_modelViewProjectionRelativeToEye * p;\n v_positionEC = (czm_modelView * vec4(position, 1.0)).xyz; // position in eye coordinates\n v_normalEC = czm_normal * normal; // normal in eye coordinates\n v_st = st;\n v_color = color;\n gl_Position = czm_modelViewProjection * vec4(position, 1.0);\n}\n",this._cp.fragmentShaderSource="#version 300 es\nin vec3 v_positionEC;\nin vec3 v_normalEC;\nin vec2 v_st;\nin vec4 v_color;\nuniform sampler2D u_image;\nuniform vec4 u_color;\nvoid main()\n{\n vec3 positionToEyeEC = -v_positionEC;\n vec3 normalEC = normalize(v_normalEC);\n// #ifdef FACE_FORWARD\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\n// #endif\n\n czm_materialInput materialInput;\n materialInput.normalEC = normalEC;\n materialInput.positionToEyeEC = positionToEyeEC;\n materialInput.st = v_st;\n //czm_material material = czm_getMaterial(materialInput);\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec4 imageColor = texture(u_image, fract(materialInput.st));\n\n material.diffuse = imageColor.rgb;\n material.alpha = imageColor.a;\n\n material.diffuse *= v_color.rgb;\n material.alpha *= v_color.a;\n \n material.diffuse *= u_color.rgb;\n material.alpha *= u_color.a;\n\n#ifdef FLAT\n out_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n#else\n out_FragColor = czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC);\n#endif\n}\n",this.disposers.push(()=>{this._cp=this._cp&&this._cp.destroy()});const e=()=>{this._cp.show=this.show};e(),this.disposers.push(lacdt.MVVM.watch(()=>({show:this.show}),e));const t=()=>{if(this.positions.length>=3){const e=this.positions.map(e=>[180*e[0]/Math.PI,180*e[1]/Math.PI]),o=this._innerPolyline.positions.map(e=>[180*e[0]/Math.PI,180*e[1]/Math.PI]);for(var t=function(e,t,i){return void 0===i&&(i={}),ic(e.map(function(e){return $u(e,t)}),i)}([...e,...o]),i=0;i<this.positions.length;i++)t.features[i].properties.z=this.positions[i][2];for(let e=0;e<this._innerPolyline.positions.length;++e)t.features[e+this.positions.length].properties.z=this._innerPolyline.positions[e][2];e.push(e[0]);const s=ec([e]);const a=dh(t,"z").features.flatMap(e=>{const t=e.geometry.coordinates[0];{let e=Sh($u(t[0]),$u(t[1]));e=Sh(e,$u(t[2]));if(!ch(e,s))return[]}const i=[e.properties.a,e.properties.b,e.properties.c],n=t.map((e,t)=>[e[0]*Math.PI/180,e[1]*Math.PI/180,i[t]]);return n.length=3,n});if(0===a.length)return;var[n,r]=eS.getLocalPositions(a);this._totalArea=function(e){U2=U2||new Cesium.Cartesian3,G2=G2||new Cesium.Cartesian3,Q2=Q2||new Cesium.Cartesian3;const t=e.length/9;let i=0;for(let n=0;n<t;++n)i+=V2(Cesium.Cartesian3.fromElements(e[9*n+0],e[9*n+1],e[9*n+2],U2),Cesium.Cartesian3.fromElements(e[9*n+3],e[9*n+4],e[9*n+5],G2),Cesium.Cartesian3.fromElements(e[9*n+6],e[9*n+7],e[9*n+8],Q2));return i}(n);let l,u,c=new Cesium.Matrix4;{this._scratchM3=this._scratchM3||new Cesium.Matrix3,this._scratchHPR=this._scratchHPR||new Cesium.HeadingPitchRoll;let e=this._scratchHPR;e.heading=this.textureRotation[0],e.pitch=this.textureRotation[1],e.roll=this.textureRotation[2];let t=Cesium.Matrix3.fromHeadingPitchRoll(this._scratchHPR,this._scratchM3);Cesium.Matrix3.inverse(t,t),Cesium.Matrix4.fromRotationTranslation(t,void 0,c)}if(this._scratchCartesian3=this._scratchCartesian3||new Cesium.Cartesian3,this._cp.canvasWidth>0&&this._cp.canvasHeight>0){l=new Array(n.length/3*2);for(let e=0;e<n.length/3;e++){const t=n[3*e+0],i=n[3*e+1],r=n[3*e+2];let o=Cesium.Cartesian3.fromElements(t,i,r,this._scratchCartesian3);o=Cesium.Matrix4.multiplyByPoint(c,o,o),l[2*e+0]=o.x/this._cp.canvasWidth*this._cp.canvasHeight/this.imageHeight/this.imageWidthScale,l[2*e+1]=o.y/this._cp.canvasHeight*this._cp.canvasHeight/this.imageHeight}}if(this._normalCs||(this._normalCs=[new Cesium.Cartesian3,new Cesium.Cartesian3,new Cesium.Cartesian3]),u=new Array(n.length),n.length%9!=0)throw new Error("localPositions.length % 9 !== 0");for(let e=0;e<n.length/9;e++){for(let t=0;t<3;++t)Cesium.Cartesian3.fromArray(n,9*e+3*t,this._normalCs[t]);Cesium.Cartesian3.subtract(this._normalCs[1],this._normalCs[0],this._normalCs[1]),Cesium.Cartesian3.normalize(this._normalCs[1],this._normalCs[1]),Cesium.Cartesian3.subtract(this._normalCs[2],this._normalCs[0],this._normalCs[2]),Cesium.Cartesian3.normalize(this._normalCs[2],this._normalCs[2]);const t=Cesium.Cartesian3.cross(this._normalCs[1],this._normalCs[2],this._normalCs[0]);for(let i=0;i<3;++i)Cesium.Cartesian3.pack(t,u,9*e+3*i)}this._cp.positions=n,this._cp.position=r,this._cp.sts=l,this._cp.normals=u,this._cp.indices=[...new Array(n.length/3).keys()]}e()};t(),this.disposers.push(lacdt.MVVM.watch(()=>({positions:[...this.positions],innerPositions:[...this._innerPolyline.positions],canvasWidth:this._cp.canvasWidth,canvasHeight:this._cp.canvasHeight,imageUrl:this._cp.imageUrl,textureRotation:[...this.textureRotation],imageHeight:this.imageHeight,imageWidthScale:this.imageWidthScale}),t));{let e=Ql.A.gvolEarthDir+"images/wallImages/4.jpg";const t=()=>{""!==this.imageUrl?this._cp.imageUrl=this.imageUrl:this._cp.imageUrl=e};t(),this.disposers.push((0,Wm.reaction)(()=>this.imageUrl,t));const i=()=>{this._cp.imageUrl!==e?this.imageUrl=this._cp.imageUrl:this.imageUrl=""};i(),this.disposers.push((0,Wm.reaction)(()=>this._cp.imageUrl,i))}(0,Wm.extendObservable)(this,{innerCreating:!1,innerEditing:!1}),this.disposers.push((0,ng.A)(this,"innerCreating",this._innerPolyline,"creating")),this.disposers.push((0,ng.A)(this,"innerEditing",this._innerPolyline,"editing")),this.disposers.push((0,ng.A)(this,"innerPositions",this._innerPolyline,"positions"))}flyTo(){this.positions.length>0&&this._cp?this._cp.flyTo():J2.warn("需要先创建,才能飞入!")}getTotalArea(){return this._totalArea}}K2.defaultOptions={positions:[],innerPositions:[],show:!0,showHelper:!0,imageUrl:"",textureRotation:[0,0,0],imageHeight:3,imageWidthScale:1},Cu.A.registerType(K2,"Surface");const Z2=K2;var q2=__webpack_require__(6763);class $2 extends rg.A{constructor(e,t){super(e,t),this.disposers.push((0,Xx.yt)(this._earth,this,{polygonCreatingWithHeight:"creating"})),this.disposers.push((0,Xx.s)(this._earth,this,{polygonEditingProperty:"editing"})),this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._createSampledPositions(),this._createBottomSurface(),this._createWall(),this._createDiscard(),this._averageHeight=0}_createDiscard(){const e=()=>{this._fpc.enabled=this.show},t=()=>{this._fpc.polygons[0].positions=[...this.positions]},i=()=>{if(!this._fpc||this._fpc.guid!==this.discardGuid){this._fpc&&(this._fpc=this._fpc&&this._fpc.destroy());var i=new lacdt.Obj.FlattenedPolygonCollection(this._earth,this.discardGuid);i.flattenDiscard=!0,i.polygons.push({}),this._fpc=i,t(),e(),this.discardGuid=this.discardGuid||i.guid}};i(),this.disposers.push((0,Wm.reaction)(()=>this.discardGuid,i)),this.disposers.push(()=>{this._fpc=this._fpc&&this._fpc.destroy()}),t(),this.disposers.push((0,Wm.reaction)(()=>({positions:[...this.positions]}),t)),e(),this.disposers.push((0,Wm.reaction)(()=>this.show,e))}getDiscardGuid(){return this.discardGuid}_createBottomSurface(){this._bottomSurface=new Z2(this._earth),this._bottomSurface.showHelper=!1,this.disposers.push(()=>{this._bottomSurface=this._bottomSurface&&this._bottomSurface.destroy()}),lacdt.Engine.Interaction.Picking.registerPickingParent(this._bottomSurface,this);const e=()=>{this._bottomSurface.show=this.showHelper&&this.show};e(),this.disposers.push((0,Wm.reaction)(()=>({show:this.show,showHelper:this.showHelper}),e));const t=()=>{const t=[],i=this.positions.length/2;for(let e=0;e<i;++e)t.push([this.positions[2*e+0],this.positions[2*e+1],this.height]);this._bottomSurface.positions=t,e()};t(),this.disposers.push((0,Wm.reaction)(()=>({positions:[...this.positions],height:this.height}),t));{let e=Ql.A.gvolEarthDir+"images/wallImages/bottom.jpg";const t=()=>{""!==this.bottomImageUrl?this._bottomSurface.imageUrl=this.bottomImageUrl:this._bottomSurface.imageUrl=e};t(),this.disposers.push((0,Wm.reaction)(()=>this.bottomImageUrl,t));const i=()=>{this._bottomSurface.imageUrl!==e?this.bottomImageUrl=this._bottomSurface.imageUrl:this.bottomImageUrl=""};i(),this.disposers.push((0,Wm.reaction)(()=>this._bottomSurface.imageUrl,i))}this.disposers.push((0,ng.A)(this,"bottomTextureRotation",this._bottomSurface,"textureRotation")),this.disposers.push((0,ng.A)(this,"bottomImageHeight",this._bottomSurface,"imageHeight")),this.disposers.push((0,ng.A)(this,"bottomImageWidthScale",this._bottomSurface,"imageWidthScale")),(0,Wm.extendObservable)(this,{bottomTextureRotationEditing:!1}),this.disposers.push((0,ng.A)(this,"bottomTextureRotationEditing",this._bottomSurface,"textureRotationEditing"))}_createWall(){this._cp=new ZS(this._earth),this._cp.renderState.depthTest.enabled=!0,this._cp.vertexShaderSource="#version 300 es\n// vtxf 使用 double 类型的 position 进行计算\n// attribute vec3 position3DHigh;\n// attribute vec3 position3DLow;\nin vec3 position;\nin vec3 normal;\nin vec2 st;\nin vec4 color;\nin float batchId;\nout vec3 v_positionEC;\nout vec3 v_normalEC;\nout vec2 v_st;\nout vec4 v_color;\nvoid main()\n{\n // vtxf 使用 double 类型的 position 进行计算\n // vec4 p = czm_translateRelativeToEye(position3DHigh, position3DLow);\n // v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\n // v_normalEC = czm_normal * normal; // normal in eye coordinates\n // v_st = st;\n // gl_Position = czm_modelViewProjectionRelativeToEye * p;\n v_positionEC = (czm_modelView * vec4(position, 1.0)).xyz; // position in eye coordinates\n v_normalEC = czm_normal * normal; // normal in eye coordinates\n v_st = st;\n v_color = color;\n gl_Position = czm_modelViewProjection * vec4(position, 1.0);\n}\n",this._cp.fragmentShaderSource="#version 300 es\nin vec3 v_positionEC;\nin vec3 v_normalEC;\nin vec2 v_st;\nin vec4 v_color;\nuniform sampler2D u_image;\nuniform vec4 u_color;\nvoid main()\n{\n vec3 positionToEyeEC = -v_positionEC;\n vec3 normalEC = normalize(v_normalEC);\n// #ifdef FACE_FORWARD\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\n// #endif\n\n czm_materialInput materialInput;\n materialInput.normalEC = normalEC;\n materialInput.positionToEyeEC = positionToEyeEC;\n materialInput.st = v_st;\n //czm_material material = czm_getMaterial(materialInput);\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec4 imageColor = texture(u_image, fract(materialInput.st));\n\n material.diffuse = imageColor.rgb;\n material.alpha = imageColor.a;\n\n material.diffuse *= v_color.rgb;\n material.alpha *= v_color.a;\n \n material.diffuse *= u_color.rgb;\n material.alpha *= u_color.a;\n\n#ifdef FLAT\n out_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n#else\n out_FragColor = czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC);\n#endif\n}\n";{let e=Ql.A.gvolEarthDir+"images/wallImages/wall.jpg";const t=()=>{""!==this.wallImageUrl?this._cp.imageUrl=this.wallImageUrl:this._cp.imageUrl=e};t(),this.disposers.push((0,Wm.reaction)(()=>this.wallImageUrl,t));const i=()=>{this._cp.imageUrl!==e?this.wallImageUrl=this._cp.imageUrl:this.wallImageUrl=""};i(),this.disposers.push((0,Wm.reaction)(()=>this._cp.imageUrl,i))}this.disposers.push(()=>{this._cp=this._cp&&this._cp.destroy()});const e=()=>{this._cp.show=this.show};e(),this.disposers.push(lacdt.MVVM.watch(()=>({show:this.show}),e));const t=()=>{if(this.sampledPositions){if(this.sampledPositions.length>2){const e=this.sampledPositions.length,n=[];n.push(0);const r=this.sampledPositions;this._scratchCartesian03251552=this._scratchCartesian03251552||new Cesium.Cartesian3,this._scratchCartesian03251553=this._scratchCartesian03251553||new Cesium.Cartesian3;for(let t=0;t<e;++t){const i=Cesium.Cartesian3.fromRadians(r[t][0],r[t][1],0,void 0,this._scratchCartesian03251552),o=Cesium.Cartesian3.fromRadians(r[(t+1)%e][0],r[(t+1)%e][1],0,void 0,this._scratchCartesian03251553),s=Cesium.Cartesian3.distance(i,o);n.push(n[t]+s)}const o=new Array(3*(e+1)*2),s=new Array(2*(e+1)*2);for(let t=0;t<e+1;++t)o[3*t+0]=this.sampledPositions[t%e][0],o[3*t+1]=this.sampledPositions[t%e][1],o[3*t+2]=this.height,s[2*t+0]=n[t],s[2*t+1]=this.height;for(let t=0;t<e+1;++t)o[3*(e+1+t)+0]=this.sampledPositions[t%e][0],o[3*(e+1+t)+1]=this.sampledPositions[t%e][1],o[3*(e+1+t)+2]=this.sampledPositions[t%e][2],s[2*(e+1+t)+0]=n[t],s[2*(e+1+t)+1]=this.sampledPositions[t%e][2];const a=new Array(6*e);for(let t=0;t<e;++t)a[6*t+0]=t,a[6*t+1]=t+1,a[6*t+2]=t+(e+1),a[6*t+3]=t+1,a[6*t+4]=t+1+(e+1),a[6*t+5]=t+(e+1);const l=new Array(6*e),u=new Array(6*e*2);for(let t=0;t<6*e;++t){const e=a[t];l[t]=[o[3*e+0],o[3*e+1],o[3*e+2]];const i=s[2*e+0]/this._cp.canvasWidth*this._cp.canvasHeight/this.wallImageHeight/this.wallImageWidthScale,n=s[2*e+1]/this._cp.canvasHeight*this._cp.canvasHeight/this.wallImageHeight;u[2*t+0]=i,u[2*t+1]=n}var[t,i]=eS.getLocalPositions(l);let c;if(this._normalCs||(this._normalCs=[new Cesium.Cartesian3,new Cesium.Cartesian3,new Cesium.Cartesian3]),c=new Array(t.length),t.length%9!=0)throw new Error("localPositions.length % 9 !== 0");for(let e=0;e<t.length/9;e++){for(let i=0;i<3;++i)Cesium.Cartesian3.fromArray(t,9*e+3*i,this._normalCs[i]);Cesium.Cartesian3.subtract(this._normalCs[1],this._normalCs[0],this._normalCs[1]),Cesium.Cartesian3.normalize(this._normalCs[1],this._normalCs[1]),Cesium.Cartesian3.subtract(this._normalCs[2],this._normalCs[0],this._normalCs[2]),Cesium.Cartesian3.normalize(this._normalCs[2],this._normalCs[2]);const i=Cesium.Cartesian3.cross(this._normalCs[1],this._normalCs[2],this._normalCs[0]);for(let t=0;t<3;++t)Cesium.Cartesian3.pack(i,c,9*e+3*t)}if(t.length<=0)return;this._cp.positions=t,this._cp.position=i,this._cp.sts=u,this._cp.normals=c,this._cp.indices=[...new Array(t.length/3).keys()]}e()}};t(),this.disposers.push(lacdt.MVVM.watch(()=>({sampledPositions:[...this.sampledPositions],height:this.height,canvasWidth:this._cp.canvasWidth,canvasHeight:this._cp.canvasHeight,imageHeight:this.wallImageHeight,imageWidthScale:this.wallImageWidthScale}),t))}_createSampledPositions(){this._scratchCarto=this._scratchCarto||new Cesium.Cartographic(0,0);const e=()=>{const e=this.positions.length/2|0,t=[];this._scratchCC1=this._scratchCC1||new Cesium.Cartesian3,this._scratchCC2=this._scratchCC2||new Cesium.Cartesian3,this._scratchCC3=this._scratchCC3||new Cesium.Cartesian3,this._scratchCarto=this._scratchCarto||new Cesium.Cartographic;for(let i=0;i<e;++i){let n=(i+1)%e;const r=Cesium.Cartesian3.fromRadians(this.positions[2*i+0],this.positions[2*i+1],0,void 0,this._scratchCC1),o=Cesium.Cartesian3.fromRadians(this.positions[2*n+0],this.positions[2*n+1],0,void 0,this._scratchCC2),s=Cesium.Cartesian3.distance(r,o),a=0|Math.ceil(s/this.sampledDistance);t.push(new Cesium.Cartographic(this.positions[2*i+0],this.positions[2*i+1]));for(let e=1;e<a;++e){const i=Cesium.Cartesian3.lerp(r,o,e/a,this._scratchCC3),n=Cesium.Cartographic.fromCartesian(i,void 0,this._scratchCarto);t.push(new Cesium.Cartographic(n.longitude,n.latitude))}}return t};this._updateSampledPositionsTrigger=new rxjs.Subject,this._sampleHeightSubscription=this._updateSampledPositionsTrigger.pipe(rxjs.operators.debounceTime(2e3),rxjs.operators.map(()=>e()),rxjs.operators.switchMap(e=>{const t=[];this._cp&&this._cp._primitive&&t.push(this._cp._primitive),this._bottomSurface&&this._bottomSurface._cp&&t.push(this._bottomSurface._cp);const i=this._earth,n=i.interaction.editingPolygonBinding._editing._editing._polyline,r=i.interaction.editingPolygonBinding._editing._editing._points,o=i.interaction.flattenedPolygonCreatingBinding._polylineCreating._editing._polyline;n&&n._primitive&&t.push(n._primitive),r&&r._primitive&&t.push(r._primitive),o&&o._primitive&&t.push(o._primitive),this._fpc&&(this._fpc.enabled=!1);const s=this.notUseSampleHeightMostDetailed?new Promise((i,n)=>{try{for(let i of e)i.height=this._earth.czm.scene.sampleHeight(i,t);i(e)}catch(e){n(e)}}):this._earth.czm.scene.sampleHeightMostDetailed(e,t);return rxjs.from(s)})).subscribe(e=>{if(e.length>0&&e.every(e=>isFinite(e.height))){this._fpc&&(this._fpc.enabled=!0),this.sampledPositions=e.map(e=>[e.longitude,e.latitude,e.height]);const t=e.reduce((e,t)=>e+=t.height,0);this._averageHeight=t/e.length}else q2.warn("有位置点不能找到高程值,可能是没有开启地形深度监测!")}),this.disposers.push(()=>{this._sampleHeightSubscription&&(this._sampleHeightSubscription.unsubscribe(),this._sampleHeightSubscription=void 0),this._updateSampledPositionsTrigger&&(this._updateSampledPositionsTrigger.unsubscribe(),this._updateSampledPositionsTrigger=void 0)});this.disposers.push((0,Wm.reaction)(()=>({positions:[...this.positions],sampledDistance:this.sampledDistance}),()=>{this._gvolFromJSONParsing||this._updateSampledPositionsTrigger.next()}))}gvolFromJSON(e){this._gvolFromJSONParsing=!0,super.gvolFromJSON(e),this._gvolFromJSONParsing=!1}flyTo(){this.positions.length>0&&this._cp?this._cp.flyTo():q2.warn("创建后才可以飞入!")}getTotalVolume(){return(this._averageHeight-this.height)*this._bottomSurface.getTotalArea()}getTotalArea(){return this._bottomSurface.getTotalArea()}applyTerrain(){this.earth.terrainEffect.restrict.enabled=!0,this.earth.terrainEffect.restrict.innerDiscard=!0,this.earth.terrainEffect.restrict.positions=JSON.parse(JSON.stringify(this.positions))}}$2.defaultOptions={positions:[],sampledDistance:10,sampledPositions:[],height:0,innerPositions:[],show:!0,showHelper:!0,wallImageUrl:"",wallImageHeight:3,wallImageWidthScale:1,bottomImageUrl:"",bottomTextureRotation:[0,0,0],bottomImageHeight:3,bottomImageWidthScale:1,discardGuid:void 0,notUseSampleHeightMostDetailed:!1},Cu.A.registerType($2,"CutSurface");const e3=$2;var t3=__webpack_require__(6763);class i3 extends rg.A{constructor(e,t){super(e,t),this._viewer=e.czm.viewer;let i=this;this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._dataSource=void 0,this.disposers.push(()=>{this._dataSource&&(this._viewer.dataSources.remove(i._dataSource),this._dataSource=void 0)}),this.disposers.push(lL(()=>({url:i.url}),()=>{i._dataSource&&(i._viewer.dataSources.remove(i._dataSource),i._dataSource=void 0),i.url.length>0&&Cesium.GeoJsonDataSource.load(i.url).then(function(e){i._dataSource=e,i._viewer.dataSources.add(e),i._dataSource.show=i.show})})),this.disposers.push(lacdt.MVVM.watch(()=>({show:i.show}),()=>{i._dataSource&&(i._dataSource.show=i.show)}))}flyTo(){this._dataSource?this._viewer.flyTo(this._dataSource.entities.values,{duration:1}):t3.warn("没有geojson数据")}}i3.defaultOptions={name:"geoJSON",url:"",show:!0,gvolType:"XbsjGeoJSON"},Cu.A.registerType(i3,"XbsjGeoJSON");const n3=i3;var r3=__webpack_require__(6763);class o3 extends rg.A{constructor(e,t){super(e,t),this._viewer=e.czm.viewer;let i=this;this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._dataSource=void 0,this.disposers.push(()=>{this._dataSource&&(this._viewer.dataSources.remove(i._dataSource),this._dataSource=void 0)}),this.disposers.push(lL(()=>({url:i.url}),()=>{i._dataSource&&i._viewer.dataSources.remove(i._dataSource),i.url.length>0&&Cesium.KmlDataSource.load(i.url).then(function(e){i._dataSource=e,i._viewer.dataSources.add(e),i._dataSource.show=i.show})})),this.disposers.push(lacdt.MVVM.watch(()=>({show:i.show}),()=>{i._dataSource&&(i._dataSource.show=i.show)}))}flyTo(){this._dataSource?this._viewer.flyTo(this._dataSource.entities.values,{duration:1}):r3.warn("没有geojson数据")}}o3.defaultOptions={name:"KML",url:"",show:!0,gvolType:"XbsjKML"},Cu.A.registerType(o3,"XbsjKML");const s3=o3;var a3=__webpack_require__(6763);class l3 extends rg.A{constructor(e,t){super(e,t),this._viewer=e.czm.viewer;let i=this;this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._dataSource=void 0,this.disposers.push(()=>{this._dataSource&&(this._viewer.dataSources.remove(i._dataSource),this._dataSource=void 0)}),this.disposers.push(lL(()=>({url:i.url}),()=>{i._dataSource&&(i._viewer.dataSources.remove(i._dataSource),i._dataSource=void 0),i.url.length>0&&Cesium.CzmlDataSource.load(i.url).then(function(e){i._dataSource=e,i._viewer.dataSources.add(e),i._dataSource.show=i.show})})),this.disposers.push(lacdt.MVVM.watch(()=>({show:i.show}),()=>{i._dataSource&&(i._dataSource.show=i.show)}))}flyTo(){this._dataSource?this._viewer.zoomTo(this._dataSource):a3.warn("没有geojson数据")}}l3.defaultOptions={name:"Czml",url:"",show:!0,gvolType:"XbsjCzml"},Cu.A.registerType(l3,"XbsjCzml");const u3=l3;var c3=__webpack_require__(6763);class h3 extends rg.A{constructor(e,t){super(e,t),this._viewer=e.czm.viewer,this.disposers.push((0,ng.A)(this,"enabled",this,"show"))}flyTo(){c3.warn("未实现!")}}h3.defaultOptions={show:!0},Cu.A.registerType(h3,"Proxy");const p3=h3;var d3=__webpack_require__(6763);class f3 extends zm.A{constructor(){super(),this._nativeCommand=S$(this),this.disposers.push(()=>this._nativeCommand=void 0);const e=()=>{if(this.renderCallback)try{this._nativeCommand.renderCallback=Function('"use strict";return ('+this.renderCallback+")")()}catch(e){d3.error("renderCallback函数有问题!"),this._nativeCommand.renderCallback=void 0}};e(),this.disposers.push((0,Wm.reaction)(()=>this.renderCallback,e));const t=()=>{this.boundingVolume&&Array.isArray(this.boundingVolume)&&4===this.boundingVolume.length?(this._nativeCommand.boundingVolume.center.x=this.boundingVolume[0],this._nativeCommand.boundingVolume.center.y=this.boundingVolume[1],this._nativeCommand.boundingVolume.center.z=this.boundingVolume[2],this._nativeCommand.boundingVolume.radius=this.boundingVolume[3]):d3.log("boundingVolume设置错误")};t(),this.disposers.push((0,Wm.reaction)(()=>this.boundingVolume,t)),this._nativeCommand.cull=this.cull,this.disposers.push((0,Wm.reaction)(()=>this.cull,()=>{this._nativeCommand.cull=this.cull})),this._nativeCommand.pass=this.pass,this.disposers.push((0,Wm.reaction)(()=>this.pass,()=>{this._nativeCommand.pass=this.pass}));const i=()=>{let e;try{e=JSON.parse(this.renderState)}catch(e){d3.warn("this.renderState作为JSON对象解析失败!")}e&&(this._nativeCommand.renderState=Cesium.RenderState.fromCache(e))};i(),this.disposers.push((0,Wm.reaction)(()=>this.renderState,i))}}f3.defaultOptions={renderCallback:null,boundingVolume:[0,0,0,1],cull:!1,pass:7,renderState:"{}"};const m3=f3;var g3=__webpack_require__(6763);class y3 extends rg.A{constructor(e,t){super(e,t),this._viewer=e.czm.viewer,this.disposers.push((0,ng.A)(this,"enabled",this,"show")),this._primitive=new M$,this._earth.czm.scene.primitives.add(this._primitive),this.disposers.push(()=>{this._primitive&&(this._earth.czm.scene.primitives.remove(this._primitive),this._primitive=void 0)}),this.disposers.push((0,Wm.intercept)(this,"commands",e=>("update"===e.type&&e.newValue&&Array.isArray(e.newValue)&&e.object.value!==e.newValue&&this.commands.splice(0,this.commands.length,...e.newValue),null)));this.disposers.push(zm.A.registerArrayProperty(this,"commands",e=>{const t=new m3;return e=e&&e.toJSON&&e.toJSON()||e,t.gvolFromJSON(e),this._primitive._commands.push(t._nativeCommand),t},e=>{const t=this._primitive._commands.indexOf(e._nativeCommand);-1!==t&&this._primitive._commands.splice(t,1),e.destroy()})),this.disposers.push((0,Wm.reaction)(()=>this.show,()=>{this._primitive.show=this.show}))}flyTo(){g3.warn("未实现!")}}y3.defaultOptions={show:!0,commands:[]},Cu.A.registerType(y3,"NativeRender");const _3=y3;class A3 extends i1{constructor(e,t){super(e,t),this._onlyMove=!1,this._fixedPositionsNum=void 0,AL.extend(this,{_polylineShow:!0}),this._polyline=new lacdt.Obj.Polyline(e),this.disposers.push(()=>{this._polyline=this._polyline&&this._polyline.destroy()}),this._polyline.show=this._polylineShow&&this.show,fT.Interaction.Picking.registerPickingParent(this._polyline,this);const i=()=>{this._polyline.show=this._polylineShow&&this.show,this._polyline.width=this.width,this._polyline.material.XbsjColorMaterial.color=this.color,this._polyline.ground=this.ground,this._polyline.depthTest=this.depthTest,this._polyline.minShowHeight=this.minShowHeight,this._polyline.maxShowHeight=this.maxShowHeight};i(),this.disposers.push(AL.watch(()=>({show:this.show,polylineShow:this._polylineShow,width:this.width,color:[...this.color],ground:this.ground,depthTest:this.depthTest,minShowHeight:this.minShowHeight,maxShowHeight:this.maxShowHeight}),()=>i()))}get onlyMove(){return this._onlyMove}get fixedPositionsNum(){return this._fixedPositionsNum}flyTo(){this._polyline.flyTo()}}A3.defaultOptions={positions:[],show:!0,width:5,color:[0,1,0,1],depthTest:!1,minShowHeight:-Number.MAX_VALUE,maxShowHeight:Number.MAX_VALUE};const v3=A3;class C3 extends v3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=2,this._positions=new Array(6).fill(0).map(()=>[0,0,0]),this._leftArrowPosition1=[0,0,0],this._rightArrowPosition1=[0,0,0],this._leftArrowPosition2=[0,0,0],this._rightArrowPosition2=[0,0,0],this._leftArrowPosition3=[0,0,0],this._rightArrowPosition3=[0,0,0],this._leftArrowPosition4=[0,0,0],this._rightArrowPosition4=[0,0,0],this._leftArrowPosition5=[0,0,0],this._rightArrowPosition5=[0,0,0],this._leftArrowPosition6=[0,0,0],this._rightArrowPosition6=[0,0,0],this._leftArrowPosition7=[0,0,0],this._rightArrowPosition7=[0,0,0],this._polylinePositions=[],this._scratchHpr=[0,0,0],this._scratchPos=[0,0,0],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{if(2===e.length){e[1][2]=e[0][2];const t=Ww.Math.geoDistance(e[0],e[1]);e[0];if(t>0){const i=Ww.hpr(e[0],e[1],this._scratchHpr);if(!i)return;for(let n=0;n<6;++n)Ww.Math.geoMove(e[0],i[0]+Cesium.Math.PI_OVER_THREE*n,t,this._positions[n]);return this._polylinePositions.length=0,Ww.Math.geoMove(this._positions[0],i[0]+7*Math.PI/6,.1*t,this._leftArrowPosition1),Ww.Math.geoMove(this._positions[0],i[0]-7*Math.PI/6,.1*t,this._rightArrowPosition1),Ww.Math.geoMove(this._positions[1],i[0]+3*Math.PI/2,.1*t,this._leftArrowPosition2),Ww.Math.geoMove(this._positions[1],i[0]-Math.PI/6,.1*t,this._rightArrowPosition2),Ww.Math.geoMove(this._positions[4],i[0]+Math.PI/2,.1*t,this._leftArrowPosition3),Ww.Math.geoMove(this._positions[4],i[0]+Math.PI/6,.1*t,this._rightArrowPosition3),Ww.Math.geoMove(this._positions[5],i[0]-5*Math.PI/6,.1*t,this._leftArrowPosition4),Ww.Math.geoMove(this._positions[5],i[0]+5*Math.PI/6,.1*t,this._rightArrowPosition4),Ww.Math.geoMove(this._positions[2],i[0]-Math.PI/6,.1*t,this._leftArrowPosition5),Ww.Math.geoMove(this._positions[2],i[0]-Math.PI/2,.1*t,this._rightArrowPosition5),Ww.Math.geoMove(this._positions[3],i[0]+Math.PI/2,.1*t,this._leftArrowPosition6),Ww.Math.geoMove(this._positions[3],i[0]+Math.PI/6,.1*t,this._rightArrowPosition6),Ww.Math.geoMove(this.positions[0],i[0]+7*Math.PI/6,.1*t,this._leftArrowPosition7),Ww.Math.geoMove(this.positions[0],i[0]-(Math.PI+Math.PI/6),.1*t,this._rightArrowPosition7),this._polylinePositions.push([...e[0]]),this._polylinePositions.push([...this._positions[0]]),this._polylinePositions.push([...this._leftArrowPosition1]),this._polylinePositions.push([...this._positions[0]]),this._polylinePositions.push([...this._rightArrowPosition1]),this._polylinePositions.push([...this._positions[0]]),this._polylinePositions.push([...this._positions[1]]),this._polylinePositions.push([...this._leftArrowPosition2]),this._polylinePositions.push([...this._positions[1]]),this._polylinePositions.push([...this._rightArrowPosition2]),this._polylinePositions.push([...this._positions[1]]),this._polylinePositions.push([...this._positions[4]]),this._polylinePositions.push([...this._leftArrowPosition3]),this._polylinePositions.push([...this._positions[4]]),this._polylinePositions.push([...this._rightArrowPosition3]),this._polylinePositions.push([...this._positions[4]]),this._polylinePositions.push([...this._positions[5]]),this._polylinePositions.push([...this._leftArrowPosition4]),this._polylinePositions.push([...this._positions[5]]),this._polylinePositions.push([...this._rightArrowPosition4]),this._polylinePositions.push([...this._positions[5]]),this._polylinePositions.push([...this._positions[2]]),this._polylinePositions.push([...this._leftArrowPosition5]),this._polylinePositions.push([...this._positions[2]]),this._polylinePositions.push([...this._rightArrowPosition5]),this._polylinePositions.push([...this._positions[2]]),this._polylinePositions.push([...this._positions[3]]),this._polylinePositions.push([...this._leftArrowPosition6]),this._polylinePositions.push([...this._positions[3]]),this._polylinePositions.push([...this._rightArrowPosition6]),this._polylinePositions.push([...this._positions[3]]),this._polylinePositions.push([...e[0]]),this._polylinePositions.push([...this._leftArrowPosition7]),this._polylinePositions.push([...e[0]]),this._polylinePositions.push([...this._rightArrowPosition7]),this._polyline.positions=this._polylinePositions,void(this._polylineShow=!0)}}this._polylineShow=!1}))}}C3.registerType(C3,"GeoSectorSearch");const b3=C3;class w3 extends v3{constructor(e,t){super(e,t),this._leftArrowPosition=[0,0,0],this._rightArrowPosition=[0,0,0],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{const t=e.length,i=Ww.Math.distance(e);if(t<2)return void(this._polylineShow=!1);const n=Ww.Math.hpr(e[t-1],e[t-2]);n&&(Ww.Math.geoMove(e[t-1],n[0]+Math.PI/6,.1*i,this._leftArrowPosition),Ww.Math.geoMove(e[t-1],n[0]-Math.PI/6,.1*i,this._rightArrowPosition),e.push([...this._leftArrowPosition]),e.push([...e[t-1]]),e.push([...this._rightArrowPosition]),e.push([...e[t-1]]),this._polyline.positions=e,this._polylineShow=!0)}))}}w3.registerType(w3,"GeoPolylineArrow");const x3=w3;class S3 extends i1{constructor(e,t){super(e,t),this._onlyMove=!1,this._fixedPositionsNum=void 0,AL.extend(this,{_polygonShow:!0}),this._polygon=new lacdt.Obj.Polygon(e),this.disposers.push(()=>{this._polygon=this._polygon&&this._polygon.destroy()}),this._polygon.show=this._polygonShow&&this.show,fT.Interaction.Picking.registerPickingParent(this._polygon,this);const i=()=>{this._polygon.show=this._polygonShow&&this.show,this._polygon.width=this.width,this._polygon.color=this.color,this._polygon.ground=this.ground,this._polygon.outline.width=this.outlineWidth,this._polygon.outline.color=this.outlineColor,this._polygon.outline.show=this.outlineShow,this._polygon.depthTest=this.depthTest,this._polygon.extrudedHeight=this.extrudedHeight,this._polygon.minShowHeight=this.minShowHeight,this._polygon.maxShowHeight=this.maxShowHeight};i(),this.disposers.push(AL.watch(()=>({show:this._polygonShow&&this.show,width:this.width,color:[...this.color],ground:this.ground,outlineWidth:this.outlineWidth,outlineColor:this.outlineColor,outlineShow:this.outlineShow,depthTest:this.depthTest,extrudedHeight:this.extrudedHeight,minShowHeight:this.minShowHeight,maxShowHeight:this.maxShowHeight}),()=>i()))}get onlyMove(){return this._onlyMove}get fixedPositionsNum(){return this._fixedPositionsNum}flyTo(){this._polygon.flyTo()}}S3.defaultOptions={positions:[],show:!0,color:[0,1,0,.1],outlineWidth:2,outlineColor:[0,1,0,1],outlineShow:!0,depthTest:!1,extrudedHeight:null,minShowHeight:-Number.MAX_VALUE,maxShowHeight:Number.MAX_VALUE};const M3=S3;class P3 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=2,this._polygonPositions=[],this._hpr=[0,0,0],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{if(e.length<2)return void(this._polygonShow=!1);this._polygonPositions.length=0,this._polygonPositions.push(e[0][0],e[1][1]),this._polygonPositions.push(e[0][0],e[0][1]),this._polygonPositions.push(e[1][0],.5*(e[0][1]+e[1][1]));const t=e[1][0]-e[0][0];this._polygonPositions.push(e[0][0]+.01*t,.5*(e[0][1]+e[1][1])),this._polygonPositions.push(e[0][0]+.01*t,e[1][1]),this._polygon.positions=this._polygonPositions,this._polygon.height=e[0][2],this._polygonShow=!0}))}}P3.registerType(P3,"GeoTriFlag");const E3=P3;class L3 extends v3{constructor(e,t){super(e,t),this._leftArrowPosition=[0,0,0],this._rightArrowPosition=[0,0,0],this._positions=[],this.disposers.push(AL.watch(()=>({positions:[...this.positions.map(e=>[...e])],slices:this.slices}),({positions:e,slices:t})=>{const i=e.length,n=Ww.Math.distance(e);if(i<2)return void(this._polylineShow=!1);this._positions.length=0,Ww.Math.interpolatePositions(e,t,!1,this._positions);const r=this._positions.length,o=Ww.Math.hpr(this._positions[r-1],this._positions[r-2]);o?(Ww.Math.geoMove(this._positions[r-1],o[0]+Math.PI/6,.05*n,this._leftArrowPosition),Ww.Math.geoMove(this._positions[r-1],o[0]-Math.PI/6,.05*n,this._rightArrowPosition),this._positions.push([...this._leftArrowPosition]),this._positions.push([...this._positions[r-1]]),this._positions.push([...this._rightArrowPosition]),this._positions.push([...this._positions[r-1]]),this._polyline.positions=this._positions,this._polylineShow=!0):this._polylineShow=!1}))}}L3.defaultOptions={slices:100},L3.registerType(L3,"GeoCurveArrow");const T3=L3;class O3 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=4,this._keyPositions=new Array(50).fill(0).map(e=>[0,0,0]),this._bottomCurcePositions=new Array(20).fill(0).map(e=>[0,0,0]),this._leftArrowLeftPositions=new Array(20).fill(0).map(e=>[0,0,0]),this._leftArrowRightPositions=new Array(20).fill(0).map(e=>[0,0,0]),this._rightArrowLeftPositions=new Array(20).fill(0).map(e=>[0,0,0]),this._rightArrowRightPositions=new Array(20).fill(0).map(e=>[0,0,0]),this._polygonPositions=[],this._hpr=[0,0,0],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{const t=e.length;if(t<3||3===t&&Ww.Math.hasSamePosition(e))return void(this._polygonShow=!1);this._keyPositions[0].splice(0,3,...e[0]),this._keyPositions[1].splice(0,3,...e[1]),this._keyPositions[2].splice(0,3,...e[2]),4===e.length?this._keyPositions[3].splice(0,3,...e[3]):(Ww.Math.geoLerp(e[0],e[2],.5,this._keyPositions[3]),Ww.Math.geoLerp(e[1],this._keyPositions[3],2,this._keyPositions[3]));const i=this._keyPositions[0],n=this._keyPositions[1],r=this._keyPositions[2],o=this._keyPositions[3],s=Ww.Math.geoLerp(i,n,.5,this._keyPositions[4]),a=Ww.Math.geoLerp(r,o,.5,this._keyPositions[5]),l=Ww.Math.geoLerp(s,a,.1,this._keyPositions[6]);Ww.Math.Bezier.bezier2(i,l,n,19,this._bottomCurcePositions);const u=Ww.Math.geoDistance(i,n),c=n,h=r,p=Ww.Math.geoLerp(s,a,.3,this._keyPositions[7]),d=Ww.Math.hpr(c,h,this._hpr)[0],f=Ww.Math.geoMove(h,Math.PI+d,.1*u,this._keyPositions[8]),m=Ww.Math.geoMove(f,d-.5*Math.PI,.04*u,this._keyPositions[9]),g=Ww.Math.geoMove(f,d+.5*Math.PI,.04*u,this._keyPositions[10]),y=Ww.Math.geoLerp(m,g,-.5,this._keyPositions[11]),_=Ww.Math.geoLerp(m,g,1.5,this._keyPositions[12]),A=Ww.Math.geoLerp(m,p,.5,this._keyPositions[13]),v=Ww.Math.geoLerp(g,c,.5,this._keyPositions[14]),C=(Ww.Math.geoLerp(A,v,.3,this._keyPositions[15]),Ww.Math.geoLerp(A,v,1.3,this._keyPositions[16]));Ww.Math.Bezier.bezier2(c,C,g,19,this._rightArrowRightPositions);const b=Ww.Math.geoLerp(s,a,.3,this._keyPositions[17]),w=o,x=i,S=Ww.Math.hpr(x,w,this._hpr)[0],M=Ww.Math.geoMove(w,Math.PI+S,.1*u,this._keyPositions[18]),P=Ww.Math.geoMove(M,S-.5*Math.PI,.04*u,this._keyPositions[19]),E=Ww.Math.geoMove(M,S+.5*Math.PI,.04*u,this._keyPositions[20]),L=Ww.Math.geoLerp(P,E,-.5,this._keyPositions[21]),T=Ww.Math.geoLerp(P,E,1.5,this._keyPositions[22]),O=Ww.Math.geoLerp(P,x,.5,this._keyPositions[23]),D=Ww.Math.geoLerp(E,b,.5,this._keyPositions[24]),B=Ww.Math.geoLerp(O,D,-.3,this._keyPositions[25]);Ww.Math.geoLerp(O,D,.7,this._keyPositions[26]);Ww.Math.Bezier.bezier3(m,n,i,E,19,this._leftArrowRightPositions),Ww.Math.Bezier.bezier2(P,B,x,19,this._leftArrowLeftPositions),this._polygonPositions.length=0,this._bottomCurcePositions.forEach(e=>{this._polygonPositions.push(e[0],e[1])}),this._rightArrowRightPositions.forEach(e=>this._polygonPositions.push(e[0],e[1])),this._polygonPositions.push(_[0],_[1]),this._polygonPositions.push(h[0],h[1]),this._polygonPositions.push(y[0],y[1]),this._leftArrowRightPositions.forEach(e=>this._polygonPositions.push(e[0],e[1])),this._polygonPositions.push(T[0],T[1]),this._polygonPositions.push(w[0],w[1]),this._polygonPositions.push(L[0],L[1]),this._leftArrowLeftPositions.forEach(e=>this._polygonPositions.push(e[0],e[1])),this._polygon.positions=this._polygonPositions,this._polygon.height=e[0][2],this._polygonShow=!0}))}}O3.registerType(O3,"GeoDoubleArrow");const D3=O3,B3=new Array(360).fill(0).map(e=>[0,0,0]),I3=[];class R3 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=2,this._polygonPositions=new Array(4).fill(0).map(e=>[0,0,0]),this._pgPositions=[],this._nextPosition=[0,0,0],this.disposers.push(AL.watch(()=>({ps:[...this.positions.map(e=>[...e])],rotation:this.rotation}),()=>{const{positions:e,rotation:t}=this;if(e.length<2)return void(this._polygonShow=!1);const i=e,n=Math.min,r=Math.max,o=i[0][2];if(Ww.Math.geoDistance(i[0],i[1])<=0)return;const s=[.5*(i[0][0]+i[1][0]),.5*(i[0][1]+i[1][1]),.5*(i[0][2]+i[1][2])],a=[n(i[0][0],i[1][0]),n(i[0][1],i[1][1]),o],l=[r(i[0][0],i[1][0]),n(i[0][1],i[1][1]),o],u=[r(i[0][0],i[1][0]),r(i[0][1],i[1][1]),o],c=[n(i[0][0],i[1][0]),r(i[0][1],i[1][1]),o];B3.length=0,B3.push(a,l,u,c);for(let e of B3){const i=Ww.Math.geoDistance(s,e),n=Ww.Math.hpr(s,e);n&&Ww.Math.geoMove(s,n[0]+=t,i,e)}I3.length=0,B3.forEach(e=>{I3.push(e[0],e[1])}),this._polygon.positions=I3,this._polygon.height=o,this._polygonShow=!0}))}}R3.defaultOptions={rotation:0},R3.registerType(R3,"GeoRectangle");const N3=R3,k3=new Array(360).fill(0).map(e=>[0,0,0]),F3=[];class H3 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=2,this._polygonPositions=new Array(4).fill(0).map(e=>[0,0,0]),this._pgPositions=[],this._nextPosition=[0,0,0],this.disposers.push(AL.watch(()=>({positions:[...this.positions.map(e=>[...e])],rotation:this.rotation,width:this.width,height:this.height}),({positions:e,rotation:t,width:i,height:n})=>{if(e.length<=0)return void(this._polygonShow=!1);const r=e[0];k3.length=0,Ww.Math.geoMove(r,t,.5*i,this._nextPosition),Ww.Math.geoMove(this._nextPosition,t-.5*Math.PI,.5*n,this._nextPosition),k3.push([...this._nextPosition]),Ww.Math.geoMove(r,t,.5*-i,this._nextPosition),Ww.Math.geoMove(this._nextPosition,t-.5*Math.PI,.5*n,this._nextPosition),k3.push([...this._nextPosition]),Ww.Math.geoMove(r,t,.5*-i,this._nextPosition),Ww.Math.geoMove(this._nextPosition,t+.5*Math.PI,.5*n,this._nextPosition),k3.push([...this._nextPosition]),Ww.Math.geoMove(r,t,.5*i,this._nextPosition),Ww.Math.geoMove(this._nextPosition,t+.5*Math.PI,.5*n,this._nextPosition),k3.push([...this._nextPosition]),F3.length=0,k3.forEach(e=>{F3.push(e[0],e[1])}),this._polygon.positions=F3,this._polygon.height=e[0][2],this._polygonShow=!0}))}}H3.defaultOptions={rotation:0,width:2e5,height:1e5},H3.registerType(H3,"GeoRectangle2");const Y3=H3,j3=new Array(360).fill(0).map(e=>[0,0,0]),U3=[];class G3 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=2,this.disposers.push(AL.watch(()=>({positions:[...this.positions.map(e=>[...e])],holeRadius:this.holeRadius}),({positions:e,holeRadius:t})=>{if(e.length<2)return void(this._polygonShow=!1);const i=Ww.Math.geoDistance(e[0],e[1]);if(!Ww.Math.hpr(e[0],e[1]))return;for(let t=0;t<360;t++)Ww.Math.geoMove(e[0],t*Math.PI/180,i,j3[t]);if(U3.length=0,j3.forEach(e=>{U3.push(e[0],e[1])}),this._polygon.positions=U3,this.holeRadius>0&&this.holeRadius<i){for(let t=0;t<360;t++)Ww.Math.geoMove(e[0],t*Math.PI/180,this.holeRadius,j3[t]);U3.length=0,j3.forEach(e=>{U3.push(e[0],e[1])}),this._polygon.holePositions=U3}this._polygon.height=e[0][2],this._polygonShow=!0}))}}G3.defaultOptions={holeRadius:0},G3.registerType(G3,"GeoCircle");const Q3=G3,z3=new Array(360).fill(0).map(e=>[0,0,0]),W3=[];class X3 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=1,this.disposers.push(AL.watch(()=>({positions:[...this.positions.map(e=>[...e])],radius:this.radius,holeRadius:this.holeRadius,slice:this.slice}),({positions:e,radius:t,holeRadius:i,slice:n})=>{if(e.length<=0)return void(this._polygonShow=!1);const r=t;if(!(r<=0||n<=2)){for(let t=0;t<n;t++)Ww.Math.geoMove(e[0],t*Math.PI/180,r,z3[t]);if(W3.length=0,z3.forEach(e=>{W3.push(e[0],e[1])}),this._polygon.positions=W3,i>0&&i<r){for(let t=0;t<n;t++)Ww.Math.geoMove(e[0],t*Math.PI/180,this.holeRadius,z3[t]);W3.length=0,z3.forEach(e=>{W3.push(e[0],e[1])}),this._polygon.holePositions=W3}this._polygon.height=e[0][2],this._polygonShow=!0}}))}}X3.defaultOptions={radius:2e5,holeRadius:0,slice:360},X3.registerType(X3,"GeoCircle2");const V3=X3;class J3 extends M3{constructor(e,t){super(e,t),this._pgPositions=[],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{e.length<=1||(this._pgPositions.length=0,e.forEach(e=>{this._pgPositions.push(e[0],e[1])}),this._polygon.positions=this._pgPositions,this._polygon.height=e[0][2])}))}}J3.registerType(J3,"GeoPolygon");const K3=J3;class Z3 extends rg.A{constructor(e,t){super(e,t),this.disposers.push(fT.Interaction.InteractionProperty.registerPositionEditing(this._earth,this,{positionEditingProperty:"editing"})),this.disposers.push(fT.Interaction.InteractionProperty.registerPositionPicking(this._earth,this,{positionPickingProperty:"creating"})),this._pin=new lacdt.Obj.Pin(e),this.disposers.push(()=>this._pin=this._pin&&this._pin.destroy()),this.disposers.push(AL.watch(()=>{this._pin.position=[...this.position],this._pin.viewDistance=this.viewDistance,this._pin.scale=this.scale,this._pin.near=this.near,this._pin.far=this.far,this._pin.disableDepthTestDistance=this.disableDepthTestDistance,this._pin.enabled=this.enabled,this._pin.cameraAttached=this.cameraAttached,this._pin.attachedPathGuid=this.attachedPathGuid})),this.disposers.push(AL.bind(this,"cameraAttached",this,"_pin.cameraAttached")),this._div=document.createElement("div"),this._div.id=this._pin.guid,this._div.innerHTML=this.innerHTML,this._div.style.position="absolute",this._div.style.pointerEvents="none";let i=this._pin;this.disposers.push(AL.watch(()=>[...i.winPos],e=>{this._div.style.left=e[0]+"px",this._div.style.bottom=e[3]+"px"})),e.czm.viewer.container.appendChild(this._div),this.disposers.push(AL.watch(()=>({cameraPosition:[...e.camera.position],near:this.near,far:this.far,position:[...this.position],enabled:this.enabled}),e=>{let t=Ww.Math.distance([e.position,e.cameraPosition]);e.enabled&&e.near<=t&&t<=e.far?this._div.style.display="block":this._div.style.display="none"})),this._pin.show=!1,this.defaultImgUrl=function(){return"./assets/dialog.png"},this.innerHTML="<div\n style=\"height:50px;width:100px;left:-76px;\n bottom:0px;position: absolute;color: white;\n background-size: 100% 100%;padding: 5px;\n border-radius: 5px;cursor:pointer;\n background-image:url('"+this.defaultImgUrl()+"');\">\n 标记文字\n </div>",this.disposers.push(AL.watch(()=>{this._div.innerHTML=this.innerHTML}))}flyTo(){this._pin.flyTo()}destroy(){return this._div&&this._div.parentNode.removeChild(this._div),super.destroy()}}Z3.defaultOptions={position:[0,0,0],viewDistance:100,scale:1,near:0,cameraAttached:!1,attachedPathGuid:"",far:Number.MAX_VALUE,disableDepthTestDistance:Number.MAX_VALUE,show:!1,innerHTML:"",defaultImgUrl:Function},Z3.registerType(Z3,"GeoPin");const q3=Z3;class $3 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=2,this._polygonPositions=[],this._hpr=[0,0,0],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{if(e.length<2)return void(this._polygonShow=!1);this._polygonPositions.length=0,this._polygonPositions.push(e[0][0],e[1][1]),this._polygonPositions.push(e[0][0],e[0][1]),this._polygonPositions.push(e[1][0],e[0][1]),this._polygonPositions.push(e[1][0],.5*(e[0][1]+e[1][1]));const t=e[1][0]-e[0][0];this._polygonPositions.push(e[0][0]+.01*t,.5*(e[0][1]+e[1][1])),this._polygonPositions.push(e[0][0]+.01*t,e[1][1]),this._polygon.positions=this._polygonPositions,this._polygon.height=e[0][2],this._polygonShow=!0}))}}$3.registerType($3,"GeoRightAngleFlag");const e4=$3;class t4 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=2,this._polygonPositions=[],this._hpr=[0,0,0],this._keyPositions=new Array(50).fill(0).map(e=>[0,0,0]),this._bottomCurcePositions=new Array(20).fill(0).map(e=>[0,0,0]),this._sbottomCurcePositions=new Array(20).fill(0).map(e=>[0,0,0]),this._tbottomCurcePositions=new Array(20).fill(0).map(e=>[0,0,0]),this._fbottomCurcePositions=new Array(20).fill(0).map(e=>[0,0,0]),this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{if(e.length<2)return void(this._polygonShow=!1);this._keyPositions[0].splice(0,3,...e[0]),this._keyPositions[1].splice(0,3,...e[1]),this._polygonPositions.length=0,this._polygonPositions.push(e[0][0],e[1][1]),this._polygonPositions.push(e[0][0],e[0][1]);const t=e[1][0]-e[0][0],i=[e[0][0],e[0][1],0],n=[.5*(e[0][0]+e[1][0]),e[0][1],0],r=[.5*(e[0][0]+e[1][0])-2*t,e[0][1]-.8*t,0],o=[e[0][0],e[0][1]-t,0],s=Ww.Math.geoLerp(i,n,.9,this._keyPositions[4]),a=Ww.Math.geoLerp(r,o,.9,this._keyPositions[5]),l=Ww.Math.geoLerp(s,a,.2,this._keyPositions[6]);Ww.Math.Bezier.bezier2(i,l,n,19,this._bottomCurcePositions),this._bottomCurcePositions.forEach(e=>{this._polygonPositions.push(e[0],e[1])});const u=[.5*(e[0][0]+e[1][0]),e[0][1],0],c=[e[1][0],e[0][1],0],h=[.5*(e[0][0]+e[1][0])+t,e[0][1]-.1*t+t,0],p=[e[0][0],e[0][1]-t,0],d=Ww.Math.geoLerp(u,c,.1,this._keyPositions[7]),f=Ww.Math.geoLerp(h,p,.1,this._keyPositions[8]),m=Ww.Math.geoLerp(d,f,.2,this._keyPositions[9]);Ww.Math.Bezier.bezier2(u,m,c,19,this._sbottomCurcePositions),this._sbottomCurcePositions.forEach(e=>{this._polygonPositions.push(e[0],e[1])}),this._polygonPositions.push(e[1][0],e[0][1]),this._polygonPositions.push(e[1][0],.5*(e[0][1]+e[1][1]));const g=[e[1][0],.5*(e[0][1]+e[1][1]),0],y=[.5*(e[0][0]+e[1][0]),.5*(e[0][1]+e[1][1]),0],_=[e[1][0]-t,.5*(e[0][1]+e[1][1])+.5*t,0],A=[e[1][0]-6*t,.5*(e[0][1]+e[1][1])+2*t,0],v=Ww.Math.geoLerp(g,y,.1,this._keyPositions[7]),C=Ww.Math.geoLerp(_,A,.1,this._keyPositions[8]),b=Ww.Math.geoLerp(v,C,.2,this._keyPositions[9]);Ww.Math.Bezier.bezier2(g,b,y,19,this._tbottomCurcePositions),this._tbottomCurcePositions.forEach(e=>{this._polygonPositions.push(e[0],e[1])});const w=[.5*(e[0][0]+e[1][0]),.5*(e[0][1]+e[1][1]),0],x=[e[0][0]+.01*t,.5*(e[0][1]+e[1][1]),0],S=[.5*(e[0][0]+e[1][0])+5*t,.5*(e[0][1]+e[1][1])-1.1*t,0],M=[e[0][0]+1.01*t,.5*(e[0][1]+e[1][1])-t,0],P=Ww.Math.geoLerp(w,x,.9,this._keyPositions[4]),E=Ww.Math.geoLerp(S,M,.9,this._keyPositions[5]),L=Ww.Math.geoLerp(P,E,.2,this._keyPositions[6]);Ww.Math.Bezier.bezier2(w,L,x,19,this._fbottomCurcePositions),this._fbottomCurcePositions.forEach(e=>{this._polygonPositions.push(e[0],e[1])}),this._polygonPositions.push(e[0][0]+.01*t,e[1][1]),this._polygon.positions=this._polygonPositions,this._polygon.height=e[0][2],this._polygonShow=!0}))}}t4.registerType(t4,"GeoCurveFlag");const i4=t4;class n4 extends v3{constructor(e,t){super(e,t),this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{this._polyline.positions=e}))}}n4.registerType(n4,"GeoPolyline");const r4=n4;class o4 extends v3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=3,this._polylinePositions=new Array(360).fill(0).map(e=>[0,0,0]),this._pgPositions=[],this._nextPosition=[0,0,0],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{if(e.length<3)return void(this._polylineShow=!1);const t=Ww.Math.geoDistance(e[0],e[1]);this._polylinePositions.length=0,this._polylinePositions.push([...e[1]]);const i=Ww.Math.hpr(e[0],e[1]),n=Ww.Math.hpr(e[0],e[2]);var r=0;r=i[0]>=n[0]?(i[0]-n[0])*(180/Math.PI):(i[0]-n[0]+2*Math.PI)*(180/Math.PI);for(var o=0;o<r;o++)Ww.Math.geoMove(e[0],i[0]-=Math.PI/180,t,this._nextPosition),this._polylinePositions.push([...this._nextPosition]);this._polyline.positions=this._polylinePositions,this._polylineShow=!0}))}}o4.registerType(o4,"GeoArc");const s4=o4;class a4 extends v3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=3,this._bezierPositions=new Array(20).fill(0).map(e=>[0,0,0]),this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{e.length<3||Ww.Math.hasSamePosition(e)?this._polylineShow=!1:(Ww.Math.Bezier.bezier2(e[0],e[1],e[2],19,this._bezierPositions),this._polyline.positions=this._bezierPositions,this._polylineShow=!0)}))}}a4.registerType(a4,"GeoBezier2");const l4=a4;class u4 extends v3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=4,this._bezierPositions=new Array(20).fill(0).map(e=>[0,0,0]),this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{e.length<4||Ww.Math.hasSamePosition(e)?this._polylineShow=!1:(Ww.Math.Bezier.bezier3(e[0],e[1],e[2],e[3],19,this._bezierPositions),this._polyline.positions=this._bezierPositions,this._polylineShow=!0)}))}}u4.registerType(u4,"GeoBezier3");const c4=u4;class h4 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=3,this._polygonPositions=new Array(360).fill(0).map(e=>[0,0,0]),this._pgPositions=[],this._nextPosition=[0,0,0],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{if(e.length<3)return void(this._polygonShow=!1);const t=Ww.Math.geoDistance(e[0],e[1]);this._polygonPositions.length=0,this._polygonPositions.push([...e[0]]),this._polygonPositions.push([...e[1]]);const i=Ww.Math.hpr(e[0],e[1]),n=Ww.Math.hpr(e[0],e[2]);if(!i||!n)return;var r=0;r=i[0]>=n[0]?(i[0]-n[0])*(180/Math.PI):(i[0]-n[0]+2*Math.PI)*(180/Math.PI);for(var o=0;o<r;o++)Ww.Math.geoMove(e[0],i[0]-=Math.PI/180,t,this._nextPosition),this._polygonPositions.push([...this._nextPosition]);this._pgPositions.length=0,this._polygonPositions.forEach(e=>{this._pgPositions.push(e[0],e[1])}),this._polygon.positions=this._pgPositions,this._polygon.height=e[0][2],this._polygonShow=!0}))}}h4.registerType(h4,"GeoSector");const p4=h4;class d4 extends M3{constructor(e,t){super(e,t),this._onlyMove=!0,this._fixedPositionsNum=1,this._polygonPositions=new Array(360).fill(0).map(e=>[0,0,0]),this._pgPositions=[],this._nextPosition=[0,0,0],this.disposers.push(AL.watch(()=>({positions:[...this.positions.map(e=>[...e])],radius:this.radius,startAngle:this.startAngle,angle:this.angle}),({positions:e,radius:t,startAngle:i,angle:n})=>{if(e.length<=0)return void(this._polygonShow=!1);if(n<=0||t<=0)return;this._polygonPositions.length=0,this._polygonPositions.push([...e[0]]);const r=Math.PI/180;for(let t=0;t<n;++t)Ww.Math.geoMove(e[0]);const o=e[0];let s=i;const a=i+n;for(;s<a;)Ww.Math.geoMove(o,s,t,this._nextPosition),this._polygonPositions.push([...this._nextPosition]),s+=r;Ww.Math.geoMove(o,a,t,this._nextPosition),this._polygonPositions.push([...this._nextPosition]),this._pgPositions.length=0,this._polygonPositions.forEach(e=>{this._pgPositions.push(e[0],e[1])}),this._polygon.positions=this._pgPositions,this._polygon.height=e[0][2],this._polygonShow=!0}))}}d4.defaultOptions={radius:2e5,startAngle:0,angle:60*Math.PI/180},d4.registerType(d4,"GeoSector2");const f4=d4;class m4 extends v3{constructor(e,t){super(e,t),this._leftArrowPosition=[0,0,0],this._rightArrowPosition=[0,0,0],this._leftArrowPosition2=[0,0,0],this._rightArrowPosition2=[0,0,0],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],e=>{const t=e.length;Ww.Math.distance(e);if(t<2||Ww.Math.hasSamePosition(e))this._polylineShow=!1;else{if(t>2)for(var i=t-1;i>0;i--){i>1&&(i%2==0?e[i][0]=e[i-1][0]:e[i][1]=e[i-1][1]);const t=Ww.Math.hpr(e[i],e[i-1]);if(!t)return;Ww.Math.geoMove(e[i],t[0]+Math.PI/6,.1*Ww.Math.distance(e[i-1],e[i]),this._leftArrowPosition),Ww.Math.geoMove(e[i],t[0]-Math.PI/6,.1*Ww.Math.distance(e[i-1],e[i]),this._rightArrowPosition),e.push([...e[i]]),e.push([...this._leftArrowPosition]),e.push([...e[i]]),e.push([...this._rightArrowPosition]),e.push([...e[i]])}this._polyline.positions=e,this._polylineShow=!0}}))}}m4.registerType(m4,"GeoParallelSearch");const g4=m4;class y4 extends v3{constructor(e,t){super(e,t),this._positions=[],this.disposers.push(AL.watch(()=>({positions:[...this.positions.map(e=>[...e])],slices:this.slices}),({positions:e,slices:t})=>{e.length<2?this._polylineShow=!1:(this._positions.length=0,Ww.Math.interpolatePositions(e,t,!1,this._positions),this._polyline.positions=this._positions,this._polylineShow=!0)}))}}y4.defaultOptions={slices:100},y4.registerType(y4,"GeoCurve");const _4={GeoSectorSearch:b3,GeoPolylineArrow:x3,GeoTriFlag:E3,GeoCurveArrow:T3,GeoDoubleArrow:D3,GeoRectangle:N3,GeoRectangle2:Y3,GeoCircle:Q3,GeoCircle2:V3,GeoPolygon:K3,GeoPin:q3,GeoRightAngleFlag:e4,GeoCurveFlag:i4,GeoPolyline:r4,GeoArc:s4,GeoBezier2:l4,GeoBezier3:c4,GeoSector:p4,GeoSector2:f4,GeoParallelSearch:g4,GeoCurve:y4};class A4 extends i1{constructor(e,t){super(e,t),this._onlyMove=!1,this._fixedPositionsNum=void 0,AL.extend(this,{_polygonShow:!0}),this._polygon=new lacdt.Obj.Polygon(e),this.disposers.push(()=>{this._polygon=this._polygon&&this._polygon.destroy()}),this._polygon.show=this._polygonShow&&this.show,fT.Interaction.Picking.registerPickingParent(this._polygon,this);const i=()=>{this._polygon.show=this._polygonShow&&this.show,this._polygon.width=this.width,this._polygon.color=this.color,this._polygon.ground=this.ground,this._polygon.outline.width=this.outlineWidth,this._polygon.outline.color=this.outlineColor,this._polygon.outline.show=this.outlineShow,this._polygon.depthTest=this.depthTest};i(),this.disposers.push(AL.watch(()=>({show:this._polygonShow&&this.show,width:this.width,color:[...this.color],ground:this.ground,outlineWidth:this.outlineWidth,outlineColor:this.outlineColor,outlineShow:this.outlineShow,depthTest:this.depthTest}),()=>i()))}get onlyMove(){return this._onlyMove}get fixedPositionsNum(){return this._fixedPositionsNum}flyTo(){this._polygon.flyTo()}}A4.defaultOptions={positions:[],show:!0,color:[0,1,0,.1],outlineWidth:2,outlineColor:[0,1,0,1],outlineShow:!0,depthTest:!1};const v4=A4;function C4(e,t,i,n,r,o,s){let a=e*t,l=.7*a,u=Cesium.Cartesian3.distance(r[0],r[1]),c=!1;u<l&&(l=u,a=l/.7,c=!0);let h=Ww.Math.hpr(o[1],o[0],[0,0,0])[0],p=Ww.Math.geoMove(o[1],h,l,[0,0,0]),d=Ww.Math.geoMove(o[1],h,a,[0,0,0]),f=Ww.Math.hpr(p,o[1],[0,0,0])[0],m=Ww.Math.hpr(d,o[1],[0,0,0])[0];return s[0]=Ww.Math.geoMove(p,f-Cesium.Math.PI_OVER_TWO,i,[0,0,0]),s[4]=Ww.Math.geoMove(p,f+Cesium.Math.PI_OVER_TWO,i,[0,0,0]),s[1]=Ww.Math.geoMove(d,m-Cesium.Math.PI_OVER_TWO,i*n,[0,0,0]),s[3]=Ww.Math.geoMove(d,m+Cesium.Math.PI_OVER_TWO,i*n,[0,0,0]),s[2]=[...o[1]],c}var b4=__webpack_require__(6763);class w4 extends v4{constructor(e,t){super(e,t),this._onlyMove=!0,this._polygonPositions=[],this.a={b:{c:5},bb:5},AL.extend(this,{a:this.a},{a:AL.reaction.observable.ref}),this.disposers.push(AL.watch(()=>this.a,()=>{b4.log("this.a的数据改变了")})),this.disposers.push(AL.watch(()=>({minWidthScale:this.minWidthScale,dynamicWidthScale:this.dynamicWidthScale,arrowMaxHeightScale:this.arrowMaxHeightScale,arrowWingWidthScale:this.arrowWingWidthScale}),()=>{this.change(this.positions,this.minWidthScale,this.dynamicWidthScale,this.arrowMaxHeightScale,this.arrowWingWidthScale)})),this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],()=>{this.change(this.positions,this.minWidthScale,this.dynamicWidthScale,this.arrowMaxHeightScale,this.arrowWingWidthScale)}))}change(e,t,i,n,r){let o=[...e];const s=o.length;if(s<2||function(e,t){if(!e||!t)return!1;S4=0;for(let i=0;i<e.length;i++)if(S4=e[i]==t[i]?0:1,S4>0)return!1;return!0}(o[s-1],o[s-2]))return;let a=o.map(e=>Cesium.Cartesian3.fromRadians(...e,null,new Cesium.Cartesian3));this._polygonPositions.length=0;let l,u,c,h,p,d,f,m=[0,0,0],g=new Array(s).fill(0).map((e,t)=>(l=o[t-1],u=o[t+1],c=o[t],h=l?Ww.Math.hpr(c,l,m)[0]:0,p=u?Ww.Math.hpr(c,u,m)[0]:0,d=h&&p?2:1,f=(h+p)/d,f=h>p?f:f-Cesium.Math.PI,f<0?f+Cesium.Math.TWO_PI:f)),y=0,_=[];a.forEach((e,t)=>{l=a[t-1]||e,u=e,y+=Cesium.Cartesian3.distance(l,u),_.push(y)}),_=_.map(e=>y-e);const A=(i/=2)*y,v=(t/=2)*y;let C=new Array(_.length).fill(0).map((e,t)=>v+A*_[t]/y),b=[],w=C4(y,n,v,r,a.slice(-2),o.slice(-2),b),x=[],S=[];o.forEach((e,t)=>{0==t||t==s-1?(x.push(Ww.Math.geoMove(e,g[t]+Cesium.Math.PI_OVER_TWO,C[t])),S.push(Ww.Math.geoMove(e,g[t]-Cesium.Math.PI_OVER_TWO,C[t]))):(x.push(Ww.Math.geoMove(e,g[t]-Cesium.Math.PI,C[t])),S.push(Ww.Math.geoMove(e,g[t],C[t])))}),x.pop(),S.pop(),w&&(x.pop(),S.pop()),x.push(b[0]),S.push(b[b.length-1]);let M=Ww.Math.interpolatePositions(x,20*s,!1,[]),P=Ww.Math.interpolatePositions(S,20*s,!1,[]);M.forEach(e=>{this._polygonPositions.push(e[0],e[1])}),b.forEach(e=>{this._polygonPositions.push(e[0],e[1])});for(let e=P.length-1;e>=0;e--)this._polygonPositions.push(P[e][0],P[e][1]);this._polygon.positions=this._polygonPositions,this._polygon.height=o[0][2],this._polygonShow=!0}}w4.registerType(w4,"GeoArrow"),w4.defaultOptions={minWidthScale:.06,dynamicWidthScale:.1,arrowMaxHeightScale:.15,arrowWingWidthScale:2};const x4=w4;let S4;class M4 extends v4{constructor(e,t){super(e,t),this._onlyMove=!0,this._polygonPositions=[],this._fixedPositionsNum=2,this.disposers.push(AL.watch(()=>({showType:this.showType}),()=>this.changeShowType())),this.disposers.push(AL.watch(()=>({minWidthScale:this.minWidthScale,dynamicWidthScale:this.dynamicWidthScale,arrowMaxHeightScale:this.arrowMaxHeightScale,arrowWingWidthScale:this.arrowWingWidthScale}),()=>{this.change(this.positions,this.minWidthScale,this.dynamicWidthScale,this.arrowMaxHeightScale,this.arrowWingWidthScale)})),this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],()=>{this.change(this.positions,this.minWidthScale,this.dynamicWidthScale,this.arrowMaxHeightScale,this.arrowWingWidthScale)}))}changeShowType(){let e=P4[this.showType];Object.keys(e).forEach(t=>{this[t]=e[t]})}change(){if(this.positions.length<2||function(e,t){if(!e||!t)return!1;L4=0;for(let i=0;i<e.length;i++)if(L4=e[i]==t[i]?0:1,L4>0)return!1;return!0}(this.positions[0],this.positions[1]))return;let e=this.positions.map(e=>Cesium.Cartesian3.fromRadians(...e,null,new Cesium.Cartesian3));this._polygonPositions.length=0;let t=Ww.Math.geoDistance(...this.positions),i=Ww.Math.hpr(...this.positions)[0],n=Ww.Math.geoMove(this.positions[0],i,t*(1-this.arrowMaxHeightScale)),r=(this.dynamicWidthScale+this.minWidthScale)/2,o=this.minWidthScale/2,s=[Ww.Math.geoMove(this.positions[0],i+Cesium.Math.PI_OVER_TWO,t*r),Ww.Math.geoMove(this.positions[0],i-Cesium.Math.PI_OVER_TWO,t*r)],a=Ww.Math.hpr(n,this.positions[1])[0],l=[Ww.Math.geoMove(n,a+Cesium.Math.PI_OVER_TWO,t*o),Ww.Math.geoMove(n,a-Cesium.Math.PI_OVER_TWO,t*o)],u=[Ww.Math.hpr(s[0],l[0])[0],Ww.Math.hpr(s[1],l[1])[0]],c=[Ww.Math.geoDistance(l[0],s[0]),Ww.Math.geoDistance(l[1],s[1])],h=[[],[]];for(let e=0;e<20;e++)h[0].push(Ww.Math.geoMove(s[0],u[0],e*c[0]/20)),h[1].push(Ww.Math.geoMove(s[1],u[1],e*c[1]/20));if(this.tail){let e=Ww.Math.geoMove(this.positions[0],i,this.tailHeightScale*t);this._polygonPositions.push(e[0],e[1])}h[0].forEach(e=>{this._polygonPositions.push(e[0],e[1])});let p=[];C4(t,this.arrowMaxHeightScale,this.minWidthScale/2,this.arrowWingWidthScale,e,this.positions,p);for(let e=p.length-1;e>=0;e--)this._polygonPositions.push(p[e][0],p[e][1]);for(let e=h[1].length-1;e>=0;e--)this._polygonPositions.push(h[1][e][0],h[1][e][1]);this._polygon.positions=this._polygonPositions,this._polygon.height=this.positions[0][2],this._polygonShow=!0}}const P4={forkedTail:{minWidthScale:.06,dynamicWidthScale:.1,arrowMaxHeightScale:.15,arrowWingWidthScale:2,tail:!0},cusp:{minWidthScale:.06,dynamicWidthScale:.1,arrowMaxHeightScale:.15,arrowWingWidthScale:2,tail:!1},parallel:{minWidthScale:.12,dynamicWidthScale:0,arrowMaxHeightScale:.08,arrowWingWidthScale:2,tail:!1}};M4.defaultOptions={showType:"forkedTail",positions:[],tailHeightScale:.15,...P4.forkedTail},M4.registerType(M4,"GeoSimpleArrow");const E4=M4;let L4;let T4=new Cesium.Cartesian3;class O4 extends rg.A{constructor(e,t){super(e,t),this.disposers.push(fT.Interaction.InteractionProperty.registerPositionEditing(this._earth,this,{positionEditingProperty:"positionEditing"})),this.disposers.push(fT.Interaction.InteractionProperty.registerPositionPicking(this._earth,this,{positionPickingProperty:"creating"})),this.disposers.push(fT.Interaction.InteractionProperty.registerRotationEditing(this._earth,this,{rotationEditingProperty:"rotationEditing"})),this._viewer=e.czm.viewer;let i=new Cesium.Cartesian3;Cesium.Cartesian3.fromRadians(...this.position,null,i),this._modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this._updateCallback=()=>{},this._particleSystem=new Cesium.ParticleSystem({image:this.image,show:this.show&&this.enabled,startColor:new Cesium.Color(this.startColor[0],this.startColor[1],this.startColor[2],this.startColor[3]),endColor:new Cesium.Color(this.endColor[0],this.endColor[1],this.endColor[2],this.endColor[3]),startScale:this.startScale,endScale:this.endScale,minimumParticleLife:this.minimumParticleLife,maximumParticleLife:this.maximumParticleLife,minimumSpeed:this.minimumSpeed,maximumSpeed:this.maximumSpeed,imageSize:new Cesium.Cartesian2(this.particleSize,this.particleSize),emissionRate:this.emissionRate,lifetime:16,modelMatrix:this._modelMatrix,emitterModelMatrix:Cesium.Matrix4.IDENTITY,emitter:new Cesium.CircleEmitter(2),updateCallback:this._updateCallback}),this._viewer.scene.primitives.add(this._particleSystem),this.disposers.push(()=>{this._particleSystem&&(this._viewer.scene.primitives.remove(this._particleSystem),this._particleSystem=void 0)}),this.disposers.push(AL.watch(()=>({startColor:[...this.startColor],endColor:[...this.endColor],image:this.image,emissionRate:this.emissionRate,maximumSpeed:this.maximumSpeed,minimumSpeed:this.minimumSpeed,minimumImageSize:this.minimumImageSize,maximumImageSize:this.maximumImageSize,minimumParticleLife:this.minimumParticleLife,maximumParticleLife:this.maximumParticleLife,show:this.show&&this.enabled}),()=>this.update())),this.disposers.push(AL.watch(()=>({image:this.image}),()=>this.updateParticleSystem())),this.disposers.push(AL.watch(()=>({particleSize:this.particleSize}),()=>this.updateParticleSize())),this.disposers.push(AL.watch(()=>[...this.position,...this.rotation],()=>this.updateMatrix())),this.disposers.push(AL.watch(()=>({gravity:this.gravity}),()=>{this._particleSystem.updateCallback=this.updateGravity(this.gravity)})),this.disposers.push(AL.watch(()=>({emitterRadius:this.emitterRadius,emitterAngle:this.emitterAngle,emitterType:this.emitterType}),()=>this.updateEmitter()))}toBeFountain(){let e=D4.fountain;this.changeShowType(e)}toBeSmoke(){let e=D4.smoke;this.changeShowType(e)}changeShowType(e){Object.keys(e).forEach(t=>{this[t]=e[t]})}updateMatrix(){let e=new Cesium.Cartesian3,t=new Cesium.Matrix4;if(Cesium.Cartesian3.fromRadians(...this.position,null,e),!e.x&&!e.y&&!e.z)return;this._modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(e);let i=new Cesium.HeadingPitchRoll(...this.rotation),n=Cesium.Quaternion.fromHeadingPitchRoll(i,new Cesium.Quaternion);t=Cesium.Matrix4.fromTranslationQuaternionRotationScale(Cesium.Cartesian3.ZERO,n,new Cesium.Cartesian3(1,1,1),t),Cesium.Matrix4.multiply(this._modelMatrix,t,this._modelMatrix),this._particleSystem.modelMatrix=this._modelMatrix}updateParticleSize(){this._particleSystem.imageSize?(this._particleSystem.imageSize.x=this.particleSize,this._particleSystem.imageSize.y=this.particleSize,this._particleSystem.maximumImageSize.x=this.particleSize,this._particleSystem.maximumImageSize.y=this.particleSize,this._particleSystem.minimumImageSize.x=this.particleSize,this._particleSystem.minimumImageSize.y=this.particleSize):this._particleSystem.imageSize=new Cesium.Cartesian2(this.particleSize,this.particleSize)}updateParticleSystem(){this._particleSystem&&(this._viewer.scene.primitives.remove(this._particleSystem),this._particleSystem=void 0),this._particleSystem=new Cesium.ParticleSystem({image:this.image,show:this.show&&this.enabled,startColor:{red:this.startColor[0],green:this.startColor[1],blue:this.startColor[2],alpha:this.startColor[3]},endColor:{red:this.endColor[0],green:this.endColor[1],blue:this.endColor[2],alpha:this.endColor[3]},startScale:this.startScale,endScale:this.endScale,minimumParticleLife:this.minimumParticleLife,maximumParticleLife:this.maximumParticleLife,minimumSpeed:this.minimumSpeed,maximumSpeed:this.maximumSpeed,imageSize:new Cesium.Cartesian2(this.particleSize,this.particleSize),emissionRate:this.emissionRate,lifetime:16,modelMatrix:this._modelMatrix,emitterModelMatrix:Cesium.Matrix4.IDENTITY,emitter:this._emitter,updateCallback:this._updateCallback}),this._viewer.scene.primitives.add(this._particleSystem)}update(){this._particleSystem.startColor={red:this.startColor[0],green:this.startColor[1],blue:this.startColor[2],alpha:this.startColor[3]},this._particleSystem.endColor={red:this.endColor[0],green:this.endColor[1],blue:this.endColor[2],alpha:this.endColor[3]},this._particleSystem.startScale=this.startScale,this._particleSystem.endScale=this.endScale,this._particleSystem.emissionRate=this.emissionRate,this._particleSystem.minimumSpeed=this.minimumSpeed,this._particleSystem.maximumSpeed=this.maximumSpeed,this._particleSystem.minimumParticleLife=this.minimumParticleLife,this._particleSystem.maximumParticleLife=this.maximumParticleLife,this._particleSystem.show=this.show&&this.enabled}updateGravity(e){return this._updateCallback=(t,i)=>{Cesium.Cartesian3.normalize(t.position,T4),Cesium.Cartesian3.multiplyByScalar(T4,e*i,T4),t.velocity=Cesium.Cartesian3.add(t.velocity,T4,t.velocity)}}updateEmitter(){let e;if(e="BoxEmitter"!=this.emitterType?"ConeEmitter"==this.emitterType?this.emitterAngle:this.emitterRadius:new Cesium.Cartesian3(...new Array(3).fill(this.emitterRadius)),!this._particleSystem)return this._emitter=new Cesium[this.emitterType](e),this._emitter;this._particleSystem.emitter=new Cesium[this.emitterType](e),this._emitter=this._particleSystem.emitter}flyTo(){if(this._particleSystem){let e=Math.abs(this._particleSystem.minimumSpeed)>Math.abs(this._particleSystem.maximumSpeed)?Math.abs(this._particleSystem.minimumSpeed):Math.abs(this._particleSystem.maximumSpeed),t=Math.abs(this._particleSystem.minimumParticleLife)>Math.abs(this._particleSystem.maximumParticleLife)?Math.abs(this._particleSystem.minimumParticleLife):Math.abs(this._particleSystem.maximumParticleLife),i=new Cesium.Cartesian3;Cesium.Matrix4.getColumn(this._particleSystem.modelMatrix,3,i);let n=e*t,r=new Cesium.BoundingSphere(i,n);this._viewer.camera.flyToBoundingSphere(r,{duration:2})}}}const D4={fountain:{gravity:10,minimumSpeed:10,maximumSpeed:15,gravity:-10,emitterRadius:.1,emissionRate:20,startColor:[1,1,1,1],endColor:[1,1,1,0],emitterType:"CircleEmitter",rotation:[0,Cesium.Math.PI_OVER_TWO,0]},smoke:{startColor:[.12549,.69804,.66667,.7],endColor:[1,1,1,0],rotation:[0,0,0],emissionRate:5,gravity:0,minimumParticleLife:2,maximumParticleLife:2,minimumSpeed:1,maximumSpeed:4,emitterRadius:2,emitterType:"CircleEmitter"}};O4.defaultOptions={show:!0,enabled:!0,position:[1.6988083400554626,.6666896940162155,30],startScale:1,endScale:5,particleSize:25,image:"../../XbsjEarth-Plugins/plottingSymbol2/assets/SampleData/smoke.png",emitterAngle:1,...D4.smoke},O4.registerType(O4,"ParticleSystem");const B4=O4;let I4;const R4=function(){if(!I4){I4=document.createElement("canvas"),I4.width=20,I4.height=20;var e=I4.getContext("2d");e.beginPath(),e.arc(8,8,8,0,Cesium.Math.TWO_PI,!0),e.closePath(),e.fillStyle="rgb(255, 255, 255)",e.fill()}return I4};new Cesium.Cartesian3;class N4 extends rg.A{constructor(e,t){super(e,t),this.disposers.push(fT.Interaction.InteractionProperty.registerPositionEditing(this._earth,this,{positionEditingProperty:"editing"})),this.disposers.push(fT.Interaction.InteractionProperty.registerPositionPicking(this._earth,this,{positionPickingProperty:"creating"})),this._viewer=e.czm.viewer,this._modelMatrix=this._modelMatrix||Cesium.Matrix4.IDENTITY,this._position=new Cesium.Cartesian3,this._particleSystem=new Cesium.ParticleSystem({image:R4(),show:this.show&&this.enabled,startColor:{red:this.startColor[0],green:this.startColor[1],blue:this.startColor[2],alpha:this.startColor[3]},endColor:{red:this.endColor[0],green:this.endColor[1],blue:this.endColor[2],alpha:0},particleLife:this.particleLife,speed:this.radius/this.particleLife||0,imageSize:new Cesium.Cartesian2(7,7),bursts:[new Cesium.ParticleBurst({time:0,minimum:400,maximum:400})],emissionRate:0,lifetime:this.particleLife+this.burstInterval||2,modelMatrix:this._modelMatrix,emitter:new Cesium.SphereEmitter(.1)}),this._viewer.scene.primitives.add(this._particleSystem),this.disposers.push(()=>{this._particleSystem&&(this._viewer.scene.primitives.remove(this._particleSystem),this._particleSystem=void 0)}),this.disposers.push(AL.watch(()=>({startColor:[...this.startColor],endColor:[...this.endColor],show:this.show&&this.enabled}),()=>this.updateColor())),this.disposers.push(AL.watch(()=>({radius:this.radius,particleLife:this.particleLife,burstInterval:this.burstInterval}),()=>this.updateInitialVelocity())),this.disposers.push(AL.watch(()=>({position:[...this.position]}),()=>this.updateModelMatrix()))}updateColor(){this._particleSystem.startColor={red:this.startColor[0],green:this.startColor[1],blue:this.startColor[2],alpha:this.startColor[3]},this._particleSystem.endColor={red:this.endColor[0],green:this.endColor[1],blue:this.endColor[2],alpha:this.endColor[3]},this._particleSystem.show=this.show&&this.enabled}updateModelMatrix(){Cesium.Cartesian3.fromRadians(...this.position,null,this._position),(this._position.x||this._position.y||this._position.z)&&(this._modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(this._position),this._particleSystem.modelMatrix=this._modelMatrix)}updateInitialVelocity(){this._initialVelocity=this.radius/this.particleLife,this._particleSystem.lifetime=this.particleLife+this.burstInterval,this._particleSystem.minimumParticleLife=this.particleLife,this._particleSystem.maximumParticleLife=this.particleLife,this._particleSystem.minimumSpeed=this._initialVelocity,this._particleSystem.maximumSpeed=this._initialVelocity}flyTo(){this.boundingSphere=new Cesium.BoundingSphere(this._position,this.radius),this._viewer.camera.flyToBoundingSphere(this.boundingSphere,{duration:2})}}N4.defaultOptions={show:!0,radius:200,particleLife:.8,burstInterval:1,startColor:[.75,0,.8,1],endColor:[.75,0,.8,0],position:[1.7,.6666896940162155,100]},N4.registerType(N4,"ParticleSystemFireWork");const k4=N4;class F4 extends rg.A{constructor(e,t){super(e,t),this.disposers.push(fT.Interaction.InteractionProperty.registerPositionEditing(this._earth,this,{positionEditingProperty:"positionEditing"})),this.disposers.push(fT.Interaction.InteractionProperty.registerPositionPicking(this._earth,this,{positionPickingProperty:"creating"})),this.disposers.push(fT.Interaction.InteractionProperty.registerRotationEditing(this._earth,this,{rotationEditingProperty:"rotationEditing"})),this._viewer=e.czm.viewer,this._particleSystemList=[],this._modelMatrix=Cesium.Matrix4.clone(Cesium.Matrix4.IDENTITY,new Cesium.Matrix4),this._inverseModelMatrix=Cesium.Matrix4.clone(Cesium.Matrix4.IDENTITY,new Cesium.Matrix4),this._position=new Cesium.Cartesian3,this._colors=[],this.disposers.push(()=>{this._particleSystemList=this._particleSystemList.map(e=>{if(e)return this._viewer.scene.primitives.remove(e),e=void 0}),this._particleSystemList.length=0}),this.disposers.push(AL.watch(()=>[...this.position,...this.rotation],()=>this.updateMatrix())),this.disposers.push(AL.watch(()=>({show:this.show&&this.enabled,color:[...this.colors]}),()=>this.updateColors())),this.disposers.push(AL.watch(()=>({emissionRate:this.emissionRate,particleSize:this.particleSize}),()=>this.updateCommon())),this.disposers.push(AL.watch(()=>({radius:this.radius,rotate:this.rotate,height:this.height,particleLife:this.particleLife}),()=>this.update())),this.disposers.push(AL.watch(()=>this.particleNumber,()=>{this.update(),this.updateParticleSystemList()})),this.updateParticleSystemList()}updateCommon(){this._particleSystemList.forEach(e=>{e.emissionRate=this.emissionRate,e.minimumImageSize.x=this.particleSize,e.minimumImageSize.y=this.particleSize,e.maximumImageSize.x=this.particleSize,e.maximumImageSize.y=this.particleSize})}updateColors(){this._colors.length=0;for(let e=0;e<this.colors.length;e+=4)this._colors.push(new Cesium.Color(this.colors[e],this.colors[e+1],this.colors[e+2],this.colors[e+3]));let e=this._colors.length,t=0;this._particleSystemList.forEach((i,n)=>{t=n%e,i.startColor=this._colors[t],i.endColor=this._colors[t].withAlpha(0),i.show=this.show&&this.enabled})}update(){this._radiuStep=this.radius/this.particleLife,this._rotateSpeed=this.rotate/this.particleLife,this._speed=this.height/this.particleLife,this.changeUpdateCallBack()}updateMatrix(){let e=new Cesium.Matrix4;if(Cesium.Cartesian3.fromRadians(...this.position,null,this._position),!this._position.x&&!this._position.y&&!this._position.z)return;this._modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(this._position);let t=new Cesium.HeadingPitchRoll(...this.rotation),i=Cesium.Quaternion.fromHeadingPitchRoll(t,new Cesium.Quaternion);e=Cesium.Matrix4.fromTranslationQuaternionRotationScale(Cesium.Cartesian3.ZERO,i,new Cesium.Cartesian3(1,1,1),e),Cesium.Matrix4.multiply(this._modelMatrix,e,this._modelMatrix),this._inverseModelMatrix=Cesium.Matrix4.inverse(this._modelMatrix,this._inverseModelMatrix),this._particleSystemList.forEach((e,t)=>{e.modelMatrix=this._modelMatrix}),this.changeUpdateCallBack()}changeUpdateCallBack(){this._particleSystemList.forEach((e,t)=>{e.updateCallback=this.updateCallback(this._radiuStep,this._rotateSpeed,Cesium.Math.TWO_PI*t/this.particleNumber,this._speed,this._inverseModelMatrix,this._modelMatrix)})}updateCallback(e,t,i,n,r,o){let s=new Cesium.Cartesian3;return(a,l)=>{l=Cesium.Math.clamp(l,0,.05),s=Cesium.Matrix4.multiplyByPoint(r,a.position,s),i+=l*t,i%=Cesium.Math.TWO_PI,s.x+=Math.cos(i)*e*l,s.y+=Math.sin(i)*e*l,s.z-=n*l,a.position=Cesium.Matrix4.multiplyByPoint(o,s,a.position)}}updateParticleSystemList(){let e;this._particleSystemList=this._particleSystemList.map(e=>{if(e)return this._viewer.scene.primitives.remove(e),e=void 0}),this._particleSystemList.length=0;for(let t=0;t<this.particleNumber;++t){e=t%this._colors.length;let i=this.updateCallback(this._radiuStep,this._rotateSpeed,Cesium.Math.TWO_PI*t/this.particleNumber,this._speed,this._inverseModelMatrix,this._modelMatrix);this._particleSystemList.push(new Cesium.ParticleSystem({image:R4(),show:this.show&&this.enabled,startColor:this._colors[e],endColor:this._colors[e].withAlpha(0),particleLife:this.particleLife,speed:5e-6,imageSize:new Cesium.Cartesian2(this.particleSize,this.particleSize),emissionRate:this.emissionRate,modelMatrix:this._modelMatrix,lifetime:.1,emitter:new Cesium.CircleEmitter(.01),updateCallback:i}))}this._particleSystemList.forEach(e=>{this._viewer.scene.primitives.add(e)})}flyTo(){this.boundingSphere=new Cesium.BoundingSphere(this._position,Math.sqrt(2*Math.pow(this.radius,2),Math.pow(this.height,2))),this._viewer.camera.flyToBoundingSphere(this.boundingSphere,{duration:2})}toBeCometTail(){this.colors=[...H4.comet.colors],this.rotate=H4.comet.rotate}toBeRocketThruster(){this.colors=[...H4.rocket.colors],this.rotate=H4.rocket.rotate}}F4.defaultOptions={show:!0,particleSize:15,emissionRate:30,particleNumber:100,position:[1.67,.6,50],rotation:[0,0,0],colors:[.6,.6,.6,1,.6,.6,.9,.9,.5,.5,.7,.5],radius:30,rotate:.01,height:50,particleLife:3.5};const H4={rocket:{colors:[1,.5,.05,1,.9,.6,.01,1,.8,.05,.09,1,1,.05,.09,1],rotate:1},comet:{colors:[.6,.6,.6,1,.6,.6,.9,.9,.5,.5,.7,.5],rotate:.01}};F4.registerType(F4,"ParticleSystemTails");const Y4=F4;let j4=function(e,t,i,n,r=20){let o,s,a,l,u,c,h,p=[];p.push(e);for(let d=1;d<r;d++)o=d/r,s=o*o,a=s*o,l=1-o,u=l*l,c=u*l,h=new Cesium.Cartesian3,h.x=e.x*c+3*t.x*u*o+3*i.x*l*s+n.x*a,h.y=e.y*c+3*t.y*u*o+3*i.y*l*s+n.y*a,h.z=e.z*c+3*t.z*u*o+3*i.z*l*s+n.z*a,p.push(h);return p.push(n),p},U4=function(e,t,i,n){let r=Cesium.Cartesian3.distance(t,e);vector=Cesium.Cartesian3.subtract(t,e,new Cesium.Cartesian3),Cesium.Cartesian3.normalize(vector,vector);let o=Cesium.Cartesian3.multiplyByScalar(vector,r/3,new Cesium.Cartesian3),s=Cesium.Cartesian3.multiplyByScalar(vector,2*r/3,new Cesium.Cartesian3);Cesium.Cartesian3.add(e,o,o),Cesium.Cartesian3.add(e,s,s),i.push(o,s),n.push(vector)};var G4=__webpack_require__(6763);class Q4 extends v4{constructor(e,t){super(e,t),this._pgPositions=[],this.disposers.push(AL.watch(()=>[...this.positions.map(e=>[...e])],()=>{G4.log(this.positions);let e=this.positions.filter(e=>{let t=!0;if(t)return e});const t=e.length;if(t<=2)return;if(function(e,t){if(!e||!t)return!1;z4=0;for(let i=0;i<e.length;i++)if(z4=e[i]==t[i]?0:1,z4>0)return!1;return!0}(e[t-1],e[t-2]))return;this._pgPositions.length=0;let i=[];e.forEach(e=>{i.push(e)});let n=function(e,t=!1,i=20,n){if(e.length<3)return;let r,o,s,a=e.map(e=>Cesium.Cartesian3.fromRadians(...e,void 0,new Cesium.Cartesian3));n||(n=[]),r=a[0];let l,u,c,h=[],p=new Cesium.Cartesian3,d=new Cesium.Cartesian3,f=[];if(1==t)r=a[a.length-1],h=a.map((e,t)=>{o=e,s=a[t+1]||a[0],u=Cesium.Cartesian3.distance(r,o),c=Cesium.Cartesian3.distance(o,s),p=Cesium.Cartesian3.subtract(o,r,p),d=Cesium.Cartesian3.subtract(s,o,d),Cesium.Cartesian3.normalize(p,p),Cesium.Cartesian3.normalize(d,d),Cesium.Cartesian3.multiplyByScalar(p,u,p),Cesium.Cartesian3.multiplyByScalar(d,c,d),l=Cesium.Cartesian3.add(p,d,new Cesium.Cartesian3),Cesium.Cartesian3.normalize(l,l),r=o;let i=Cesium.Cartesian3.multiplyByScalar(l,.3*-u,new Cesium.Cartesian3),n=Cesium.Cartesian3.multiplyByScalar(l,.3*c,new Cesium.Cartesian3);return Cesium.Cartesian3.add(o,i,i),Cesium.Cartesian3.add(o,n,n),f.push(i,n),l}),f.push(f.shift());else{U4(a[0],a[1],f,h);for(let e=1;e<a.length-1;e++){r=a[e-1],o=a[e],s=a[e+1],u=Cesium.Cartesian3.distance(r,o),c=Cesium.Cartesian3.distance(o,s),p=Cesium.Cartesian3.subtract(o,r,p),d=Cesium.Cartesian3.subtract(s,o,d),Cesium.Cartesian3.normalize(p,p),Cesium.Cartesian3.normalize(d,d),Cesium.Cartesian3.multiplyByScalar(p,u,p),Cesium.Cartesian3.multiplyByScalar(d,c,d),l=Cesium.Cartesian3.add(p,d,new Cesium.Cartesian3),Cesium.Cartesian3.normalize(l,l),r=o;let t=Cesium.Cartesian3.multiplyByScalar(l,.3*-u,new Cesium.Cartesian3),i=Cesium.Cartesian3.multiplyByScalar(l,.3*c,new Cesium.Cartesian3);Cesium.Cartesian3.add(o,t,t),Cesium.Cartesian3.add(o,i,i),f.push(t,i),h.push(l)}U4(a[a.length-2],a[a.length-1],f,h)}for(let e=0;e<a.length;e++){let t=a[e]||a[a.length-1],r=a[e+1]||a[0],o=f[2*e]||f[f.length-2],s=f[2*e+1]||f[f.length-1];n.push(...j4(t,o,s,r,i))}return n.map(e=>{let t=Cesium.Cartographic.fromCartesian(e);return[t.longitude,t.latitude,t.height]})}(e,!0,20);n.forEach(e=>{this._pgPositions.push(e[0],e[1])}),this._polygon.positions=this._pgPositions,this._polygon.height=e[0][2]}))}}Q4.registerType(Q4,"GeoSmoothPolygon");let z4;const W4={GeoArrow:x4,GeoSimpleArrow:E4,ParticleSystem:B4,ParticleSystemFireWork:k4,ParticleSystemTails:Y4,GeoSmoothPolygon:Q4};var X4=function(){function e(e){this._init=!1,this.emitterModelMatrix=new Cesium.Matrix4,this.translation=new Cesium.Cartesian3,this.rotation=new Cesium.Quaternion,this.hpr=new Cesium.HeadingPitchRoll,this.trs=new Cesium.TranslationRotationScale,this._show=!1,this._target=e}return e.prototype.applyGravity=function(e,t){var i=e.position;Cesium.Cartesian3.normalize(i,new Cesium.Cartesian3),Cesium.Cartesian3.multiplyByScalar(new Cesium.Cartesian3,0*t,new Cesium.Cartesian3),e.velocity=Cesium.Cartesian3.add(e.velocity,new Cesium.Cartesian3,e.velocity)},e.prototype.init=function(){this._earth=this._target._parentLayer.viewer,this._earth.clock.shouldAnimate=!0,this.particleSystem=this._earth.scene.primitives.add(new Cesium.ParticleSystem({image:yu.formatUrlByBaseJs("resources/images/smoke.png"),startColor:Cesium.Color.RED.withAlpha(.7),endColor:Cesium.Color.WHITE.withAlpha(0),startScale:1,endScale:5,minimumParticleLife:1.2,maximumParticleLife:1.2,minimumSpeed:1,maximumSpeed:4,imageSize:new Cesium.Cartesian2(25,25),emissionRate:5,bursts:[new Cesium.ParticleBurst({time:5,minimum:10,maximum:100}),new Cesium.ParticleBurst({time:10,minimum:50,maximum:100}),new Cesium.ParticleBurst({time:15,minimum:200,maximum:300})],lifetime:16,emitter:new Cesium.CircleEmitter(2),emitterModelMatrix:this.computeEmitterModelMatrix(),updateCallback:this.applyGravity})),this._init=!0},Object.defineProperty(e.prototype,"show",{get:function(){return!!this._init&&this.particleSystem.show},set:function(e){this._show=e,this._show&&!this._init?this.init():this.particleSystem.show=e},enumerable:!1,configurable:!0}),e.prototype.updateFlame=function(){if(this._init&&this._show){var e=this._target._model;if(e&&e.show){var t=this._earth.camera.position,i=e.model.distanceDisplayCondition.getValue(),n=Cesium.Cartographic.fromCartesian(t).height;n<i.far&&n>i.near?(this.particleSystem.show=!0,this.particleSystem.modelMatrix=e.computeModelMatrix(Cesium.JulianDate.now(),new Cesium.Matrix4),this.particleSystem.emitterModelMatrix=this.computeEmitterModelMatrix()):this.particleSystem.show=!1}}},e.prototype.computeEmitterModelMatrix=function(){return this.hpr=Cesium.HeadingPitchRoll.fromDegrees(0,0,0,this.hpr),this.trs.translation=Cesium.Cartesian3.fromElements(-4,0,1.4,this.translation),this.trs.rotation=Cesium.Quaternion.fromHeadingPitchRoll(this.hpr,this.rotation),Cesium.Matrix4.fromTranslationRotationScale(this.trs,this.emitterModelMatrix)},e.prototype.dispose=function(){Cesium.defined(this._earth)&&this._earth.scene.primitives.remove(this.particleSystem)},e}();class V4 extends Cu.A{_model;_label;_point;_billbord;_canvasLine;_lineBillboard;_data;_position;_geoPoint;_flag=lg.None;_pedding=!0;_style=bg.DefaultStyle();_timePosition=new xg;_angle=0;_parentLayer=null;_init=!1;_type=null;_smoothTrack=!1;_inview=!1;_timeArray=[];_bUseIconColor=!0;_time;_speed;_show=!0;_isSelected=!1;_showLabel=!1;_labelInit=!1;_linkLine=null;_showLink=!0;_showModel=!1;_modelInit=!1;_backwardPath=null;_forewardPath=null;_flame=null;_userHPR;_color;_modelColor;_textColor;_outlineColor;_outlineWidth;_itemtype="target";_depthTest=!1;_partners=new Map;constructor(e,t,i,n,r=!1,o=!1){super(null,e),this._label&&(this._label.text=this.name),this._smoothTrack=r,this._position=Cesium.Cartesian3.fromDegrees(t,i,n),this._geoPoint=new Vu(t,i,n),this._textColor="white",this._outlineColor=Cesium.Color.WHITE,this._modelColor=""}getType(){return"target"}get forewardPath(){return Cesium.defined(this._forewardPath)||(this._forewardPath=new Ag(this,vg.foreward),this._forewardPath.trackLineColor=Cesium.Color.WHITE,this._forewardPath.trackPointColor=Cesium.Color.WHITE),this._forewardPath}get backwardPath(){return Cesium.defined(this._backwardPath)||(this._backwardPath=new Ag(this,vg.backward),this._backwardPath.trackLineColor=Cesium.Color.RED,this._backwardPath.trackPointColor=Cesium.Color.RED),this._backwardPath}get flame(){return this._flame||(this._flame=new X4(this)),this._flame}get showLabel(){return this._showLabel}set showLabel(e){this._showLabel=e,this._labelInit&&(this._label.show=this._showLabel)}get showModel(){return this._showModel}set showModel(e){this._showModel=e,this._modelInit&&(this._model.show=this._showModel)}get styleCode(){return this._type}set styleCode(e){this._type=e}get flag(){return this._flag}set flag(e){this._flag=e}getPosition(){return this._timePosition.getPosition((new Date).getTime())}get useIconColor(){return this._bUseIconColor}set useIconColor(e){this._bUseIconColor=e}get show(){return this._show}set show(e){this._show=e,this._point&&(this._point.show=e),this._billbord&&(this._billbord.show=e),this._label&&(this._label.show=e),this._model&&(this._model.show=e),this._linkLine&&(this._linkLine.show=this._showLink&&this._show);for(let t of this._partners)t[1].visible=e}get smoothTrack(){return this._smoothTrack}set smoothTrack(e){this._smoothTrack=e}get style(){return this._style}set style(e){this._style=e,this._parentLayer&&this._parentLayer.setTargetStyle(this)}updatePosition(e,t,i,n=5){let r=Cesium.Cartesian3.fromDegrees(Number(e),Number(t),Number(i));if(this._geoPoint=new Vu(e,t,i),!this._smoothTrack){this._position=r,this.flag=lg.Update,this._label&&(this._label.position=this._position),this._linkLine&&(this._linkLine.position=this._position),this._point.position=this._position,this._billbord.position=this._position,this._billbord.orientation=this.angle,this._model&&(this._model.position=this._position);for(let n of this._partners)n[1].position=new Vu(e,t,i)}this.backwardPath.show&&this.backwardPath.updatePosition(r),this.forewardPath.show&&this.forewardPath.updatePosition(r);let o=Cesium.JulianDate.now(),s=Cesium.JulianDate.addSeconds(o,n,new Cesium.JulianDate);var a=new Sg;a.position=r,a.time=Cesium.JulianDate.toDate(s).getTime(),this._timePosition.addSample(a),this.flag=lg.Update,this._flame&&this._flame.updateFlame()}getColor(){return this._parentLayer.highlightSelection&&this.isSelected?this._parentLayer.selectionColor:this._style.color}get model(){return this._model.model}get id(){return this.guid}get color(){return this._color?this._color:this._style.color}set color(e){let t=Cesium.Color.fromCssColorString(e);this._point&&(this._point.color=t),this._billbord&&this._bUseIconColor&&(this._billbord.color=t),this._color=e}get textColor(){return this._textColor}set textColor(e){let t=Cesium.Color.fromCssColorString(e);this._label&&(this._label.fillColor=t),this._textColor=e}get outlineColor(){return this._outlineColor}set outlineColor(e){this._label&&(this._label.outlineColor=e,this._label.style=Cesium.LabelStyle.FILL_AND_OUTLINE),this._outlineColor=e}get outlineWidth(){return this._outlineWidth}set outlineWidth(e){this._label&&(this._label.outlineWidth=e),this._outlineWidth=e}get depthTest(){return this._depthTest}set depthTest(e){this._depthTest=e,this._point&&(this._point.disableDepthTestDistance=this._depthTest?Number.POSITIVE_INFINITY:0),this._label&&(this._label.disableDepthTestDistance=this._depthTest?Number.POSITIVE_INFINITY:0),this._billbord&&(this._billbord.disableDepthTestDistance=this._depthTest?Number.POSITIVE_INFINITY:0)}get modelColor(){return this._modelColor}set modelColor(e){let t=Cesium.Color.fromCssColorString(e);this._model&&this._model.model&&(this._model.model.color=t),this._modelColor=e}get iconSize(){return this._style.iconSize}set iconSize(e){this._style.iconSize=e,this._billbord&&(this._billbord.width=e,this._billbord.height=e)}get fontbgColor(){return this._style.fontbgColor}set fontbgColor(e){this._style.fontbgColor=e,this._label&&this._labelInit&&(this._label.backgroundColor=Cesium.Color.fromCssColorString(e))}get showFontbgColor(){return this._style.showFontbgColor}set showFontbgColor(e){this._style.showFontbgColor=e,this._label&&this._labelInit&&(this._label.showBackground=e)}get isSelected(){return this._isSelected}set isSelected(e){this._isSelected=e,this.color=this.getColor()}get showLink(){return this._showLink}set showLink(e){this._showLink=e,this._linkLine&&(this._linkLine.show=this._showLink&&this._show)}get angle(){return this._angle}set angle(e){if(lu.isNumber(e)&&(this._angle=e,this._billbord&&(this._billbord.rotation=-1*Cesium.Math.toRadians(this._angle)),this._modelInit&&!this._userHPR)){let t=Cesium.Math.toRadians(e-90),i=new Cesium.HeadingPitchRoll(t,0,0),n=Cesium.Transforms.headingPitchRollQuaternion(this._model.position._value,i);this._model.orientation=n}}get modelHPR(){return this._userHPR}set modelHPR(e){if(this._userHPR=e,this._modelInit){let t=Cesium.Transforms.headingPitchRollQuaternion(this._model.position._value,e);this._model.orientation=t}}get time(){return this._time}set time(e){this._time=e}get speed(){return this._speed}set speed(e){this._speed=e}addPartner(e){let t=this._parentLayer.graphicGroup.add(e);return this._partners.set(t.id,t),t}removePartner(e){return this._partners.delete(e.id),this._parentLayer.graphGroup.remove(e)}clearPartner(){for(let e of this._partners)this._partners.delete(e[0]),this._parentLayer.graphGroup.remove(e[1])}get partnerList(){return this._partners}}var J4=function(){function e(){}return e.getPositions=function(e){if(e){var t=[];return e.forEach(function(e){t.push(Vu.toCartesian3(e))}),t}},e.getRadii=function(e){if(e&&e instanceof Array&&!(e.length<3))return new Cesium.Cartesian3(e[0],e[1],e[2])},e.getRectangleDegress=function(e){if(e&&!(e.length<3))return Cesium.Rectangle.fromDegrees(e[0],e[1],e[2],e[3])},e.getImage=function(e,t){if(void 0===t&&(t=!1),e)return new Cesium.ImageMaterialProperty({image:e,transparent:t,color:Cesium.Color.WHITE,repeat:new Cesium.Cartesian2(1,1)})},e.getClassificationType=function(e){var t=void 0;switch(e){case"both":t=Cesium.ClassificationType.BOTH;break;case"cesium_3D_tile":t=Cesium.ClassificationType.CESIUM_3D_TILE;break;case"terrain":t=Cesium.ClassificationType.TERRAIN}return t},e.getShadows=function(e){var t=void 0;switch(e){case"cast_only":t=Cesium.ShadowMode.CAST_ONLY;break;case"disabled":t=Cesium.ShadowMode.DISABLED;break;case"enabled":t=Cesium.ShadowMode.ENABLED;break;case"receive_only":t=Cesium.ShadowMode.RECEIVE_ONLY}return t},e.getGranularity=function(e){var t=Cesium.Math.DEGREES_PER_RADIAN;switch(e){case"degrees_per_radian":t=Cesium.Math.RADIANS_PER_DEGREE;break;case"epsilon1":t=Cesium.Math.EPSILON1;break;case"epsilon2":t=Cesium.Math.EPSILON2;break;case"epsilon3":t=Cesium.Math.EPSILON3;break;case"epsilon34":t=Cesium.Math.EPSILON4}return t},e.getColor=function(e){if(e)return Cesium.Color.fromCssColorString(e)},e.getDynamicColor=function(e){var t=this;return new Cesium.CallbackProperty(function(i,n){return t.getColor(e)},!1)},e.getDynamicValue=function(e){return new Cesium.CallbackProperty(function(t,i){return e},!1)},e.getPosition=function(e){if(e)return Vu.toCartesian3(e)},e.getNearFarScalar=function(e){if(e)return new Cesium.NearFarScalar(e[0],e[1],e[2],e[3])},e.getDynamicNearFarScalar=function(e){var t=this;return new Cesium.CallbackProperty(function(i,n){return t.getNearFarScalar(e)},!1)},e.getDistanceDisplayCondition=function(e){if(e)return new Cesium.DistanceDisplayCondition(e[0],e[1])},e.getDynamicDistanceDisplayCondition=function(e){var t=this;return new Cesium.CallbackProperty(function(i,n){return t.getDistanceDisplayCondition(e)},!1)},e.getCartesian2=function(e){if(e&&e instanceof Array&&!(e.length<2))return new Cesium.Cartesian2(e[0],e[1])},e.getVerticalOrigin=function(e){var t=void 0;switch(e){case"baseline":t=Cesium.VerticalOrigin.BASELINE;break;case"bottom":t=Cesium.VerticalOrigin.BOTTOM;break;case"center":t=Cesium.VerticalOrigin.CENTER;break;case"top":t=Cesium.VerticalOrigin.TOP}return t},e.getHorizontalOrigin=function(e){var t=void 0;switch(e){case"left":t=Cesium.HorizontalOrigin.LEFT;break;case"center":t=Cesium.HorizontalOrigin.CENTER;break;case"right":t=Cesium.HorizontalOrigin.RIGHT}return t},e.getHeightReference=function(e){var t=void 0;switch(e){case"clamp_to_ground":t=Cesium.HeightReference.CLAMP_TO_GROUND;break;case"none":t=Cesium.HeightReference.NONE;break;case"relative_to_ground":t=Cesium.HeightReference.RELATIVE_TO_GROUND}return t},e.getStyle=function(e){switch(e){case"fill":return Cesium.LabelStyle.FILL;case"outline":case"fill_and_outline":return Cesium.LabelStyle.FILL_AND_OUTLINE}},e.getPositionDegrees=function(e){if(e&&e instanceof Array&&!(e.length<2))return Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2])},e.getCartesian3=function(e){if(e&&e instanceof Array&&!(e.length<3))return new Cesium.Cartesian3(e[0],e[1],e[2])},e.getOrientation=function(e,t){return Cesium.Transforms.headingPitchRollQuaternion(e,t)},e.getHpr=function(e,t,i){return new Cesium.HeadingPitchRoll(e,t,i)},e.getHeading=function(e){if(e)return Cesium.Math.toRadians(e)},e}();class K4 extends Cu.A{_renderVisible;_father;_getRenderObj;_type;_opt;_event;_isEditing=!1;constructor(e){super(null),this._event=new iu,(0,Wm.extendObservable)(this,{name:""})}update(){this._getRenderObj&&this.getRenderObject().update()}onUpdateAttribute(e){this._event.on("updateAttribute",e)}offUpdateAttribute(e){this._event.off("updateAttribute",e)}updateAttribute(e){this._getRenderObj&&(this.getRenderObject().updateAttribute(e),this._event.fire("updateAttribute",{obj:this,key:e}))}getRenderObject(){if(this._getRenderObj)return this._getRenderObj()}updateVisible(){this._father?this._renderVisible=this._father.renderVisible&&this._opt.visible:this._renderVisible=this._opt.visible,this.updateAttribute("visible")}get id(){return this.guid}set extendInfo(e){this._opt.extendInfo=e}get extendInfo(){return this._opt.extendInfo}set visible(e){this._opt.visible=e,this.updateVisible()}get visible(){return this._opt.visible}get renderVisible(){return this._renderVisible}get father(){return this._father}getType(){return K4.type}static get type(){return"GraphicItem"}get clampToGround(){return!1}set isEditing(e){this._isEditing!==e&&(this._isEditing=e,this.updateAttribute("isEditing"))}get isEditing(){return this._isEditing}toJson(){const e={type:this._type,name:this.name,extendInfo:this.extendInfo};for(const t in this._opt)void 0!==this._opt[t]&&"constructor"!==t&&("positions"!==t?this._opt[t]instanceof Object&&this._opt[t].toJson?e[t]=this._opt[t].toJson():e[t]=this._opt[t]:e[t]=Vu.packArray(this._opt.positions));return e}parseJson(e){for(let t in e)"positions"===t&&e[t]&&!e[t].lenght&&e[t][0]instanceof Array&&(e[t]=Vu.unpackArray(e[t])),"position"===t&&e[t]&&e[t]instanceof Array&&(e[t]=Vu.unpack(e[t])),"lineStyle"!==t||!e[t]||e[t]instanceof q4||(e[t]=$4.createStyle(e[t])),this._opt[t]=yu.defaultValue(e[t],this._opt[t])}init(e){this._father=e,this.updateVisible()}destroy(){this.getRenderObject()&&this.getRenderObject().clear(),this._getRenderObj=void 0}getCenterPosition(){if(void 0!==this.position)return this.position;if(this.coordinates){let e=this.coordinates,t=this.height;return t||(t=0),new Vu((e[0]+e[2])/2,(e[1]+e[3])/2,t)}if(this.positions){const e=this.positions,t=[];e.forEach(e=>{t.push(Vu.toCartesian3(e))});let i=Cesium.BoundingSphere.fromPoints(t).center;return Vu.fromCartesian3(i)}}movePosition(e=0,t=0,i=0){if(void 0!==this.position&&(this.position.lon+=e,this.position.lat+=t,this.position.alt+=i,this.position=this.position),void 0!==this.coordinates&&(this.coordinates[0]+=e,this.coordinates[1]+=t,this.coordinates[2]+=e,this.coordinates[3]+=t,this.coordinates=this.coordinates),this.positions){const n=this.positions;n.forEach(n=>{n.lon+=e,n.lat+=t,n.alt+=i}),this.positions=n}}}class Z4{name;visible=!0;extendInfo;isEditing=!1}class q4{_material;toJson(){}getMaterial(){return this._material}}class $4{static createStyle(e){if(void 0!==e)switch(e.type){case a5.Arrow:return new t5(e);case a5.Color:return new e5(e);case a5.Dash:return new n5(e);case a5.Dynamic:return new o5(e);case a5.Glow:return new r5(e);case a5.Outline:return new i5(e)}}}class e5 extends q4{_color="#ff0000";constructor(e){super(),e||(e={}),this._color=yu.defaultValue(e.color,this._color),this._material=new Cesium.ColorMaterialProperty(new Cesium.CallbackProperty(()=>J4.getColor(this.color),!0))}set color(e){this._color=e}get color(){return this._color}getMaterial(){return this._material}toJson(){return{type:a5.Color,color:this.color}}}class t5 extends q4{_color="#ff0000";constructor(e){super(),e||(e={}),this._color=yu.defaultValue(e.color,this._color),this._material=new Cesium.PolylineArrowMaterialProperty(new Cesium.CallbackProperty(()=>J4.getColor(this.color),!1))}set color(e){this._color=e}get color(){return this._color}toJson(){return{type:a5.Arrow,color:this.color}}}class i5 extends q4{_color="#ff0000";_outlineWidth=3;_outlineColor="#00ff00";constructor(e){super(),e||(e={}),this._color=yu.defaultValue(e.color,this._color),this._outlineColor=yu.defaultValue(e.outlineColor,this._outlineColor),this._outlineWidth=yu.defaultValue(e.outlineWidth,this._outlineWidth),this._material=new Cesium.PolylineOutlineMaterialProperty({color:new Cesium.CallbackProperty(()=>J4.getColor(this.color),!1),outlineColor:new Cesium.CallbackProperty(()=>J4.getColor(this.outlineColor),!1),outlineWidth:new Cesium.CallbackProperty(()=>this.outlineWidth,!1)})}set color(e){this._color=e}get color(){return this._color}set outlineWidth(e){this._outlineWidth=e}get outlineWidth(){return this._outlineWidth}set outlineColor(e){this._outlineColor=e}get outlineColor(){return this._outlineColor}toJson(){return{type:a5.Outline,color:this.color,outlineColor:this.outlineColor,outlineWidth:this.outlineWidth}}}class n5 extends q4{_color="#ffff00";_gapColor="rgba(0,0,0,0)";_dashLength=16;_dashPattern=255;constructor(e){super(),e||(e={}),this._color=yu.defaultValue(e.color,this._color),this._gapColor=yu.defaultValue(e.gapColor,this._gapColor),this._dashLength=yu.defaultValue(e.dashLength,this._dashLength),this._dashPattern=yu.defaultValue(e.dashPattern,this._dashPattern),this._material=new Cesium.PolylineDashMaterialProperty({dashLength:new Cesium.CallbackProperty(()=>this.dashLength,!1),color:new Cesium.CallbackProperty(()=>J4.getColor(this._color),!1),gapColor:new Cesium.CallbackProperty(()=>J4.getColor(this._gapColor),!1),dashPattern:new Cesium.CallbackProperty(()=>this.dashPattern,!1)})}set color(e){this._color=e}get color(){return this._color}set gapColor(e){this._gapColor=e}get gapColor(){return this._gapColor}set dashLength(e){this._dashLength=e}get dashLength(){return this._dashLength}set dashPattern(e){this._dashPattern=e}get dashPattern(){return this._dashPattern}toJson(){return{type:a5.Dash,color:this.color,gapColor:this.gapColor,dashPattern:this.dashPattern,dashLength:this.dashLength}}}class r5 extends q4{_color="#ffffff";_glowPower=.25;_taperPower=1;constructor(e){super(),e||(e={}),this._color=yu.defaultValue(e.color,this._color),this._glowPower=yu.defaultValue(e.glowPower,this._glowPower),this._taperPower=yu.defaultValue(e.taperPower,this._taperPower),this._material=new Cesium.PolylineGlowMaterialProperty({glowPower:new Cesium.CallbackProperty(()=>this.glowPower,!1),color:new Cesium.CallbackProperty(()=>J4.getColor(this._color),!1),taperPower:new Cesium.CallbackProperty(()=>this.taperPower,!1)})}set color(e){this._color=e}get color(){return this._color}set glowPower(e){this._glowPower=e}get glowPower(){return this._glowPower}set taperPower(e){this._taperPower=e}get taperPower(){return this._taperPower}toJson(){return{type:a5.Glow,color:this.color,taperPower:this.taperPower,glowPower:this.glowPower}}}class o5 extends q4{_icon=s5.Attack;_color="#ff0000";_duration=1e4;_update;constructor(e){super(),e||(e={}),this._color=yu.defaultValue(e.color,this._color),this._icon=yu.defaultValue(e.icon,this._icon),this._duration=yu.defaultValue(e.duration,this._duration),this._updateMaterial()}_updateMaterial(){switch(this.icon){case s5.Arrow:this._material=new Cesium.PolylineArrowLinkMaterialProperty({color:J4.getColor(this.color),duration:this.duration});break;case s5.Attack:case s5.Pulse:this._material=new Cesium.PolylinePulseLinkMaterialProperty({color:J4.getColor(this.color),duration:this.duration});break;case s5.Trail:this._material=new Cesium.PolylineTrailLinkMaterialProperty({color:J4.getColor(this.color),duration:this.duration});break;case s5.Attack:this._material=new Cesium.PolylineAttackLinkMaterialProperty({color:J4.getColor(this.color),duration:this.duration})}}setUpdate(e){this._update=e}set icon(e){this._icon=e,this._updateMaterial(),this._update&&this._update("lineStyle")}get icon(){return this._icon}set color(e){this._color=e,this._material.color=J4.getColor(this.color)}get color(){return this._color}set duration(e){this._duration=e,this._material.duration=this.duration}get duration(){return this._duration}toJson(){return{type:this.icon,color:this.color,duration:this.duration}}}class s5{Arrow="arrow";Pulse="pulse";Trail="trail";Attack="attack"}class a5{Color="Color";Arrow="PolylineArrow";Dash="PolylineDash";Glow="PolylineGlow";Outline="PolylineOutline";Dynamic="Dynamic"}var l5,u5=function(){function e(e,t){switch(this._dataItem=e,this.renderType){case l5.Entity:this._renderRoot=t.getRenderRoot().entityRoot;break;case l5.Primitive:this._renderRoot=t.getRenderRoot().primitiveRoot;break;case l5.PostProcess:this._renderRoot=t.getRenderRoot().postProcessStages;break;case l5.Billboard:this._renderRoot=t.getRenderRoot().billboardCollection;break;case l5.Lable:this._renderRoot=t.getRenderRoot().labelCollection;break;case l5.DrawCombination:this._renderRoot=t.getRenderRoot()}this._viewer=t._viewer,this.init(),this.renderObj&&(this.renderType===l5.DrawCombination||(this.renderObj.dataId=e.id))}return Object.defineProperty(e.prototype,"renderType",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderObj",{get:function(){return this._renderObj},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.clear=function(){if(this._renderObj)switch(this.renderType){case l5.Entity:case l5.Primitive:case l5.PostProcess:case l5.Billboard:case l5.Lable:this._renderRoot.remove(this._renderObj);case l5.DrawCombination:}this._renderObj=void 0,this._dataItem=void 0,this._viewer=void 0,this._renderRoot=void 0},e.prototype.update=function(){},e.prototype.updateAttribute=function(e){},e}();!function(e){e.Entity="entity",e.Primitive="Primitive",e.PostProcess="PostProcess",e.Lable="Lable",e.Billboard="Billboard",e.DrawCombination="DrawCombination"}(l5||(l5={}));var c5=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),h5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c5(t,e),Object.defineProperty(t.prototype,"renderType",{get:function(){return l5.Entity},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.getRenderPositions(),this.updateAttributeForEditing(),this._renderObj=this._renderRoot.add(this._originProps),this._updateAllProp()},t.prototype.update=function(){this._renderObj&&this._renderRoot.remove(this._renderObj),this.init()},t.prototype._dealResProps=function(e){var t=this;this._resProps||(this._resProps={show:!1,polygon:{}});var i=this._dataItem;switch(e){case"show":this._resProps[e]=i.renderVisible;break;case"hierarchy":this._resProps.polygon[e]=i.dirty?this.getRenderPositions():this._positions;break;case"fill":this._resProps.polygon[e]=i.fill;break;case"material":i.material?this._resProps.polygon[e]=i.material:this._resProps.polygon[e]=J4.getColor(i.color);break;case"outline":this._resProps.polygon[e]=i.outline;break;case"outlineColor":this._resProps.polygon[e]=J4.getColor(i.outlineColor);break;case"outlineWidth":this._resProps.polygon[e]=i.outlineWidth;break;case"height":i.clampToGround||(this._resProps.polygon[e]=i.height);break;case"extrudedHeight":i.clampToGround||(this._resProps.polygon[e]=i.extrudedHeight);break;case"perPositionHeight":i.clampToGround||(this._resProps.polygon[e]=i.perPositionHeight);break;case"closeTop":i.clampToGround||(this._resProps.polygon[e]=i.closeTop);break;case"closeBottom":i.clampToGround||(this._resProps.polygon[e]=i.closeBottom);break;default:return}this._renderObj?i.isEditing&&-1!=["fill","outline","outlineColor","outlineWidth"].indexOf(e)?this._renderObj.polygon[e]=new Cesium.CallbackProperty(function(){return t._resProps.polygon[e]},!1):this._renderObj.polygon[e]=this._resProps.polygon[e]:i.isEditing&&-1!=["fill","outline","outlineColor","outlineWidth"].indexOf(e)&&(this._resProps.polygon[e]=new Cesium.CallbackProperty(function(){return t._resProps.polygon[e]},!1))},t.prototype.updateAttributeForEditing=function(){this._updateAllProp(),this._renderObj||(this._originProps=this._resProps)},t.prototype._updateAllProp=function(){for(var e=["show","hierarchy","fill","material","outline","outlineColor","outlineWidth","height","extrudedHeight","perPositionHeight","closeTop","closeTop"],t=0;t<e.length;t++)this._dealResProps(e[t])},t.prototype.updateAttribute=function(e){var t=this._dataItem;switch(e){case"visible":this._renderObj.show=this._dataItem.renderVisible;break;case"positions":this._positions=this.getRenderPositions(),this._renderObj.polygon.hierarchy=t.dirty?this.getRenderPositions():this._positions;break;case"height":this._renderObj.polygon.height=t.height;break;case"extrudedHeight":this._renderObj.polygon.extrudedHeight=t.extrudedHeight;break;case"fill":this._renderObj.polygon.fill=t.fill;break;case"color":this._renderObj.polygon.material=J4.getColor(t.color);break;case"material":this._renderObj.polygon.material=t.material;break;case"outline":this._renderObj.polygon.outline=t.outline;break;case"outlineColor":this._renderObj.polygon.outlineColor=J4.getColor(t.outlineColor);break;case"outlineWidth":this._renderObj.polygon.outlineWidth=t.outlineWidth;break;case"perPositionHeight":this._renderObj.polygon.perPositionHeight=t.perPositionHeight;break;case"closeTop":this._renderObj.polygon.closeTop=t.closeTop;break;case"closeBottom":this._renderObj.polygon.closeBottom=t.closeBottom;break;case"clampToGround":this.update();case"isEditing":this.updateAttributeForEditing();break;default:this._updateAllProp()}},t.prototype.getRenderPositions=function(){var e=this._dataItem;return this._positions=J4.getPositions(e.positions),this._positions},t}(u5);class p5 extends K4{_opt;_type="PolygonGraphic";constructor(e){super(e),this._opt=new d5,this.parseJson(e),this.fromJsonFilterKeys.push("perPositionHeight")}getType(){return p5.type}static get type(){return"PolygonGraphic"}init(e){if(super.init(e),this.father){let e=new h5(this,this.father.getRoot());this._getRenderObj=()=>e}}set positions(e){this._opt.positions=e,this.updateAttribute("positions")}get positions(){return this._opt.positions}set height(e){this._opt.height!==e&&(this._opt.height=e,this.updateAttribute("height"))}get height(){return this._opt.height}set extrudedHeight(e){this._opt.extrudedHeight!==e&&(this._opt.extrudedHeight=e,this.updateAttribute("extrudedHeight"))}get extrudedHeight(){return this._opt.extrudedHeight}set fill(e){this._opt.fill!==e&&(this._opt.fill=e,this.updateAttribute("fill"))}get fill(){return this._opt.fill}set color(e){this._opt.color!==e&&(this._opt.color=e,this.updateAttribute("color"))}get color(){return this._opt.color}set outline(e){this._opt.outline!==e&&(this._opt.outline=e,this.updateAttribute("outline"))}get outline(){return this._opt.outline}set outlineColor(e){this._opt.outlineColor!==e&&(this._opt.outlineColor=e,this.updateAttribute("outlineColor"))}get outlineColor(){return this._opt.outlineColor}set outlineWidth(e){this._opt.outlineWidth!==e&&(this._opt.outlineWidth=e,this.updateAttribute("outlineWidth"))}get outlineWidth(){return this._opt.outlineWidth}get perPositionHeight(){return this._opt.perPositionHeight}set closeTop(e){this._opt.closeTop!==e&&(this._opt.closeTop=e,this.updateAttribute("closeTop"))}get closeTop(){return this._opt.closeTop}set closeBottom(e){this._opt.closeBottom!==e&&(this._opt.closeBottom=e,this.updateAttribute("closeBottom"))}get closeBottom(){return this._opt.closeBottom}set clampToGround(e){this._opt.clampToGround=e,this.updateAttribute("clampToGround")}get clampToGround(){return this._opt.clampToGround}set dirty(e){this._opt.dirty=e}get dirty(){return this._opt.dirty}set material(e){this._opt.material=e,this.updateAttribute("material")}get material(){return this._opt.material}set stRotation(e){this._opt.stRotation=e,this.updateAttribute("stRotation")}get stRotation(){return this._opt.stRotation}}class d5 extends Z4{clampToGround=!1;positions;height;extrudedHeight;fill=!0;color="#ffff00";outline=!1;outlineColor="#ff0000";outlineWidth=1;perPositionHeight=!1;closeTop=!0;closeBottom=!0;dirty=!1;material;stRotation}Cu.A.registerType(p5,"PolygonGraphic","GraphicItem");var f5=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),m5=function(e){function t(t,i){return e.call(this,t,i)||this}return f5(t,e),Object.defineProperty(t.prototype,"renderType",{get:function(){return l5.Primitive},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.createMaterial(),this.createPrimitive(),this.renderObj&&(this.renderObj.dataId=this._dataItem.id)},t.prototype.update=function(){this._renderObj&&(this._renderRoot.remove(this._renderObj),this._renderObj=void 0),this.init(),this.updateAttribute("color"),this.updateAttribute("visible")},t.prototype.updateAttribute=function(e){var t=this._dataItem;switch(e){case"color":this._appearance.material.uniforms.color=J4.getColor(t[e]);break;case"visible":this._renderObj.show=t[e];break;case"radius":case"startAngle":case"endAngle":case"position":case"clampToGround":case"step":this.update()}},t.prototype.createMaterial=function(){var e=this._dataItem;this._appearance?this._appearance.material.uniforms.color=J4.getColor(e.color):this._appearance=new Cesium.MaterialAppearance({material:new Cesium.Material({fabric:{type:"Color",uniforms:{color:J4.getColor(e.color)}}}),faceForward:!0})},t.prototype.createPrimitive=function(){var e=this._dataItem,t=[],i=0==e.radius?1:e.radius;t=Math.abs(e.endAngle-e.startAngle)<360?Ff.getSectorPositions(e.position,i,e.startAngle,e.endAngle,e.step):Ff.getCirclePositions(e.position,i);var n=[];t.forEach(function(e){n.push(Vu.toCartesian3(e))});var r=new Cesium.GeometryInstance({geometry:new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(n),height:e.position.alt})});e.clampToGround?this._renderObj=this._renderRoot.add(new Cesium.GroundPrimitive({geometryInstances:r,appearance:this._appearance,asynchronous:!1})):this._renderObj=this._renderRoot.add(new Cesium.Primitive({geometryInstances:r,appearance:this._appearance,asynchronous:!1}))},t}(u5);class g5 extends K4{_opt;_type="CircularGraphic";constructor(e){super(e),this._opt=new y5,this.parseJson(e)}getType(){return g5.type}static get type(){return"CircularGraphic"}init(e){if(super.init(e),this.father){let e=new m5(this,this.father.getRoot());this._getRenderObj=()=>e}}set position(e){this._opt.position=e,this.updateAttribute("position")}get position(){return this._opt.position}set radius(e){this._opt.radius=e,this.updateAttribute("radius")}get radius(){return this._opt.radius}set startAngle(e){this._opt.startAngle=e,this.updateAttribute("startAngle")}get startAngle(){return this._opt.startAngle}set endAngle(e){this._opt.endAngle=e,this.updateAttribute("endAngle")}get endAngle(){return this._opt.endAngle}set color(e){this._opt.color=e,this.updateAttribute("color")}get color(){return this._opt.color}set clampToGround(e){this._opt.clampToGround=e,this.updateAttribute("clampToGround")}get clampToGround(){return this._opt.clampToGround}set step(e){this._opt.step=e,this.updateAttribute("step")}get step(){return this._opt.step}}class y5 extends Z4{position;clampToGround=!0;radius=1;startAngle=0;endAngle=360;color="rgba(255, 255, 0, 0.5)";step=64}Cu.A.registerType(g5,"CircularGraphic");var _5=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),A5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _5(t,e),Object.defineProperty(t.prototype,"renderType",{get:function(){return l5.Entity},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=this._dataItem;this.updateAttributeForEditing(),this._renderObj=this._renderRoot.add(this._originProps),this._renderObj.dataId=e.id,this._renderObj.dataName=e.name},t.prototype.update=function(){this._renderObj.show=this._dataItem.renderVisible},t.prototype._dealResProps=function(e){var t=this;this._resProps||(this._resProps={show:!1,position:{},label:{}});var i=this._dataItem;switch(e){case"show":this._resProps[e]=i.visible;break;case"position":this._resProps[e]=J4.getPositionDegrees([i.position.lon,i.position.lat,i.position.alt]);break;case"scale":this._resProps.label[e]=i.scale;break;case"text":this._resProps.label[e]=i.text;break;case"heightReference":this._resProps.label[e]=J4.getHeightReference(i.heightReference);break;case"fillColor":this._resProps.label[e]=J4.getColor(i.fillColor);break;case"outlineColor":this._resProps.label[e]=J4.getColor(i.outlineColor);break;case"backgroundColor":this._resProps.label[e]=J4.getColor(i.backgroundColor);break;case"horizontalOrigin":this._resProps.label[e]=J4.getHorizontalOrigin(i.horizontalOrigin);break;case"verticalOrigin":this._resProps.label[e]=J4.getVerticalOrigin(i.verticalOrigin);break;case"pixelOffset":this._resProps.label[e]=J4.getCartesian2(i.pixelOffset);break;case"eyeOffset":this._resProps.label[e]=J4.getCartesian3(i.eyeOffset);break;case"outlineWidth":this._resProps.label[e]=i.outlineWidth;break;case"font":this._resProps.label[e]=i.font;break;case"style":this._resProps.label[e]=J4.getStyle(i.style);break;case"showBackground":this._resProps.label[e]=i.showBackground;break;case"scaleByDistance":this._resProps.label[e]=J4.getNearFarScalar(i.scaleByDistance);break;case"pixelOffsetScaleByDistance":this._resProps.label[e]=J4.getNearFarScalar(i.pixelOffsetScaleByDistance);break;case"translucencyByDistance":this._resProps.label[e]=J4.getNearFarScalar(i.translucencyByDistance);break;case"disableDepthTestDistance":this._resProps.label[e]=i.isDepthTest?void 0:Number.POSITIVE_INFINITY;break;case"distanceDisplayCondition":this._resProps.label[e]=J4.getDistanceDisplayCondition(i.distanceDisplayCondition);break;default:return}this._renderObj&&(i.isEditing?"show"===e||"position"===e?this._renderObj[e]=new Cesium.CallbackProperty(function(){return t._resProps[e]},!1):this._renderObj.label[e]=new Cesium.CallbackProperty(function(){return t._resProps.label[e]},!1):"show"===e||"position"===e?this._renderObj[e]=this._resProps[e]:this._renderObj.label[e]=this._resProps.label[e])},t.prototype.updateAttributeForEditing=function(){this._updateAllProp(),this._renderObj||(this._originProps=this._resProps)},t.prototype._updateAllProp=function(){for(var e=["show","position","scale","text","heightReference","fillColor","outlineColor","backgroundColor","horizontalOrigin","verticalOrigin","pixelOffset","eyeOffset","outlineWidth","font","style","showBackground","scaleByDistance","pixelOffsetScaleByDistance","translucencyByDistance","disableDepthTestDistance","distanceDisplayCondition"],t=0;t<e.length;t++)this._dealResProps(e[t])},t.prototype.updateAttribute=function(e){if(this._renderObj&&this._dataItem)switch(e){case"visible":this.update();break;case"isEditing":this.updateAttributeForEditing();break;default:this._updateAllProp()}},t}(u5);class v5 extends K4{_opt;_type="LabelGraphic";constructor(e){super(e),this._opt=new C5,this.parseJson(e)}init(e){if(super.init(e),this.father){let e=new A5(this,this.father.getRoot());this._getRenderObj=()=>e}}getRenderObject(){return this._getRenderObj()}getType(){return v5.type}static get type(){return"LabelGraphic"}set position(e){this._opt.position=e,this.updateAttribute("position")}get position(){return this._opt.position}set text(e){this._opt.text=e,this.updateAttribute("text")}get text(){return this._opt.text}set scale(e){this._opt.scale!==e&&(this._opt.scale=e,this.updateAttribute("scale"))}get scale(){return this._opt.scale}set horizontalOrigin(e){this._opt.horizontalOrigin!==e&&(this._opt.horizontalOrigin=e,this.updateAttribute("horizontalOrigin"))}get horizontalOrigin(){return this._opt.horizontalOrigin}set verticalOrigin(e){this._opt.verticalOrigin!==e&&(this._opt.verticalOrigin=e,this.updateAttribute("verticalOrigin"))}get verticalOrigin(){return this._opt.verticalOrigin}set eyeOffset(e){this._opt.eyeOffset=e,this.updateAttribute("eyeOffset")}get eyeOffset(){return this._opt.eyeOffset}set pixelOffset(e){this._opt.pixelOffset=e,this.updateAttribute("pixelOffset")}get pixelOffset(){return this._opt.pixelOffset}set outlineWidth(e){this._opt.outlineWidth!==e&&(this._opt.outlineWidth=e,this.updateAttribute("outlineWidth"))}get outlineWidth(){return this._opt.outlineWidth}set font(e){this._opt.font!==e&&(this._opt.font=e,this.updateAttribute("font"))}get font(){return this._opt.font}set style(e){this._opt.style!==e&&(this._opt.style=e,this.updateAttribute("style"))}get style(){return this._opt.style}set fillColor(e){this._opt.fillColor!==e&&(this._opt.fillColor=e,this.updateAttribute("fillColor"))}get fillColor(){return this._opt.fillColor}set outlineColor(e){this._opt.outlineColor!==e&&(this._opt.outlineColor=e,this.updateAttribute("outlineColor"))}get outlineColor(){return this._opt.outlineColor}set backgroundColor(e){this._opt.backgroundColor!==e&&(this._opt.backgroundColor=e,this.updateAttribute("backgroundColor"))}get backgroundColor(){return this._opt.backgroundColor}set scaleByDistance(e){this._opt.scaleByDistance=e,this.updateAttribute("scaleByDistance")}get scaleByDistance(){return this._opt.scaleByDistance}set pixelOffsetScaleByDistance(e){this._opt.pixelOffsetScaleByDistance=e,this.updateAttribute("pixelOffsetScaleByDistance")}get pixelOffsetScaleByDistance(){return this._opt.pixelOffsetScaleByDistance}set showBackground(e){this._opt.showBackground=e,this.updateAttribute("showBackground")}get showBackground(){return this._opt.showBackground}set heightReference(e){this._opt.heightReference!==e&&(this._opt.heightReference=e,this.updateAttribute("heightReference"))}get heightReference(){return this._opt.heightReference}set translucencyByDistance(e){this._opt.translucencyByDistance=e,this.updateAttribute("translucencyByDistance")}get translucencyByDistance(){return this._opt.translucencyByDistance}set isDepthTest(e){this._opt.isDepthTest=e,this.updateAttribute("isDepthTest")}get isDepthTest(){return this._opt.isDepthTest}set distanceDisplayCondition(e){this._opt.distanceDisplayCondition=e,this.updateAttribute("distanceDisplayCondition")}get distanceDisplayCondition(){return this._opt.distanceDisplayCondition}}class C5 extends Z4{position;text;scale=1;horizontalOrigin;verticalOrigin;eyeOffset;pixelOffset;outlineWidth=1;font="30px sans-serif";style;fillColor;outlineColor;backgroundColor;scaleByDistance;pixelOffsetScaleByDistance;showBackground;heightReference;translucencyByDistance;isDepthTest=!0;distanceDisplayCondition}Cu.A.registerType(v5,"LabelGraphic");var b5=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),w5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return b5(t,e),t.prototype.init=function(){var e=this._dataItem;this._container=this._viewer.container,this._initDom(this._container),e.panelDrag&&this._bindEvent(),this._preRender(this._viewer),this._renderObj=this},t.prototype.clear=function(){this._container&&this._parentNode&&(this._removeElement(this._parentNode),this._removeEvent(),this._bubbleEvent&&this._viewer.scene.preRender.removeEventListener(this._bubbleEvent))},t.prototype.updateAttribute=function(e){var t=this._dataItem;if(t)switch(e){case"panelDrag":t.panelDrag?this._bindEvent():this._removeEvent();break;case"panelOffset":this._anchorOffset&&this._updatePanelPosition(this._anchorOffset.x+t.panelOffset.x,this._anchorOffset.y+t.panelOffset.y)}},t.prototype.update=function(){},t.prototype.pointIsVisible=function(e,t){if(t.scene.mode==Cesium.SceneMode.SCENE3D){var i=t.scene.camera.positionWC,n=t.scene.mapProjection.ellipsoid;if(new Cesium.EllipsoidalOccluder(n,i).isPointVisible(Vu.toCartesian3(e))){var r=t.scene,o=r.canvas,s=Cesium.SceneTransforms.wgs84ToWindowCoordinates(r,Vu.toCartesian3(e));return void 0!==s&&(s.x>0&&s.x<(void 0!==o.width?o.width:o.clientWidth)&&s.y>0&&s.y<(void 0!==o.height?o.height:o.clientHeight))}return!1}var a=t.scene.camera.frustum.computeCullingVolume(t.scene.camera.positionWC,t.scene.camera.directionWC,t.scene.camera.upWC),l=new Cesium.BoundingSphere(Vu.toCartesian3(e),1),u=Cesium.BoundingSphere.projectTo2D(l),c=a.computeVisibility(u);return c===Cesium.Intersect.INSIDE||c===Cesium.Intersect.INTERSECTING},t.prototype._preRender=function(e){var t,i,n=this,r=this._dataItem;e.scene.preRender.addEventListener(this._bubbleEvent=function(){if(r.renderVisible){if(r.bindObject instanceof x5){var o=r.bindObject.getRenderObject();if(!o._renderVisible)return void(n._renderVisible&&n._showDiv(!1));t=o._diagonalPanelOffset.x,i=o._diagonalPanelOffset.y}else{var s=void 0;if(r.bindObject instanceof Vu?s=r.bindObject:r.bindObject instanceof K4&&(s=r.bindObject.getCenterPosition()),!s)return;if(!n.pointIsVisible(s,e))return void(n._renderVisible&&n._showDiv(!1));var a=Vu.toScreen(s,e);if(!a)return;t=Math.round(a.x),i=Math.round(a.y)}n._anchorOffset={x:t,y:i},n._updateDiv(t,i)}else n._renderVisible&&n._showDiv(!1)})},t.prototype._updateDiv=function(e,t){var i=this._dataItem;if(this._renderVisible||(this._parentNode.style.cssText="visibility:hidden"),i.bubbleType===M5.FollowBubble){if(!this._renderVisible){var n=e+i.panelOffset.x,r=t+i.panelOffset.y;this._panelOffset&&(n=this._panelOffset.x,r=this._panelOffset.y),this._updatePanelPosition(n,r)}}else i.bubbleType===M5.FixedBubble&&(this._isMouseDown||this._updatePanelPosition(e+i.panelOffset.x,t+i.panelOffset.y));var o=this._updateLinePosition({x:e,y:t},this._panelNode);this._getDiagonalPanelOffset(o),this._renderVisible||(this._parentNode.style.cssText="display:none",this._showDiv(!0))},t.prototype._getDiagonalPanelOffset=function(e){if(this._panelOffset){var t,i;switch(e){case 1:t=this._panelOffset.x+this._panelNode.offsetWidth,i=this._panelOffset.y;break;case 2:t=this._panelOffset.x,i=this._panelOffset.y;break;case 3:t=this._panelOffset.x,i=this._panelOffset.y+this._panelNode.offsetHeight;break;case 4:t=this._panelOffset.x+this._panelNode.offsetWidth,i=this._panelOffset.y+this._panelNode.offsetHeight}this._diagonalPanelOffset={x:t,y:i}}},t.prototype._updateLinePosition=function(e,t){if(0!==t._offsetLeft||0!==t._offsetTop){var i,n={x:e.x,y:e.y};this._panelNode.offsetParent!==this._container&&(n.y=n.y+this._container.offsetTop,n.x=n.x+this._container.offsetLeft);var r=t.offsetWidth,o=t.offsetHeight,s=t.offsetLeft+r/2,a=t.offsetTop+o/2,l={x:0,y:0},u=s-n.x,c=a-n.y;u>=0&&c>0?(l.x=t.offsetLeft,l.y=t.offsetTop,i=4):u>=0&&c<=0?(l.x=t.offsetLeft,l.y=t.offsetTop+o,i=1):u<0&&c<=0?(l.x=t.offsetLeft+r,l.y=t.offsetTop+o,i=2):u<0&&c>0&&(l.x=t.offsetLeft+r,l.y=t.offsetTop,i=3),u=l.x-n.x,c=l.y-n.y;var h=Math.sqrt(u*u+c*c),p=h/2,d=Math.acos(u/h)*(c<0?-1:1),f=d/Math.PI*180,m=p*Math.sin(d),g=p*Math.cos(d)-p;return this._lineNode.style.width="".concat(h,"px"),this._lineNode.style.left="".concat(n.x-2,"px"),this._lineNode.style.top="".concat(n.y-2,"px"),this._lineNode.style.transform="translate(".concat(g,"px,").concat(m,"px) rotate(").concat(f,"deg)"),i}},t.prototype._updatePanelPosition=function(e,t){var i,n,r=this._container.clientWidth,o=this._container.clientHeight,s=this._panelNode.offsetWidth,a=this._panelNode.offsetHeight;i=e<0||s>=r?0:e+s>=r?r-s:e,n=t<0||a>=o?0:t+a>=o?o-a:t,this._panelOffset={x:i,y:n};var l=n,u=i;this._panelNode.offsetParent!==this._container&&(l=n+this._container.offsetTop,u=i+this._container.offsetLeft),this._panelNode.style.left="".concat(u,"px"),this._panelNode.style.top="".concat(l,"px")},t.prototype._showDiv=function(e){this._parentNode.style.display=e?"block":"none",this._renderVisible=e},t.prototype._initDom=function(e){var t="geoBubbleRoot";this._parentNode=this._createDom("geoBubble"),this._panelNode=this._createDom("geoBubblePanel","".concat("position:absolute;cursor:pointer;user-select:none;","top:0px;left:0px;")),this._lineNode=this._createDom("geoBubbleLine","".concat("position:absolute;border:1px dotted #fff;","top:0px;left:0px;")),this._parentNode.appendChild(this._panelNode),this._parentNode.appendChild(this._lineNode),this._showDiv(!1),this._getDom(".".concat(t))?this._rootNode=this._getDom(".".concat(t)):(this._rootNode=this._createDom(t),e.appendChild(this._rootNode)),this._rootNode.appendChild(this._parentNode)},t.prototype._createDom=function(e,t){var i=document.createElement("div");return i.setAttribute("class",e),i.style.cssText=t,i},t.prototype._getDivOffsetOfBody=function(e){},t.prototype._getDom=function(e){return document.querySelector(e)},t.prototype._mouseDown=function(e){if(this._dataItem.renderVisible)if(this._isMouseDown)this._isMouseDown=!1;else if(1===e.which){e.stopPropagation();var t=this._panelNode.getBoundingClientRect();this._isMouseDown=!0,this._downX=e.clientX-t.left,this._downY=e.clientY-t.top}},t.prototype._mouseMove=function(e){var t=this._dataItem;if(t.renderVisible&&!0===this._isMouseDown){e.stopPropagation();var i=this._container.getBoundingClientRect(),n=e.clientX-this._downX-i.left,r=e.clientY-this._downY-i.top;this._updatePanelPosition(n,r),t.panelOffset={x:this._panelOffset.x-this._anchorOffset.x,y:this._panelOffset.y-this._anchorOffset.y}}},t.prototype._mouseUp=function(e){this._isMouseDown=!1,this._dataItem.renderVisible},t.prototype._touchStart=function(e){if(this._dataItem.renderVisible)if(this._isMouseDown)this._isMouseDown=!1;else{e.stopPropagation();var t=this._panelNode.getBoundingClientRect();this._isMouseDown=!0,this._downX=e.touches.clientX-t.left,this._downY=e.touches.clientY-t.top}},t.prototype._touchMove=function(e){var t=this._dataItem;if(t.renderVisible&&(e.stopPropagation(),!0===this._isMouseDown)){var i=this._container.getBoundingClientRect(),n=e.touches.clientX-this._downX-i.left,r=e.touches.clientY-this._downY-i.top;this._updatePanelPosition(n,r),t.panelOffset={x:this._panelOffset.x-this._anchorOffset.x,y:this._panelOffset.y-this._anchorOffset.y}}},t.prototype._touchEnd=function(e){this._dataItem.renderVisible&&(e.stopPropagation(),this._isMouseDown=!1)},t.prototype._removeElement=function(e){var t=e.parentNode;t&&t.removeChild(e)},t.prototype._bindEvent=function(){var e=this;this._panelNode.addEventListener("mousedown",this._fnDown=function(t){return e._mouseDown(t)}),this._container.addEventListener("mouseup",this._fnUp=function(t){return e._mouseUp(t)}),this._container.addEventListener("mousemove",this._fnMove=function(t){return e._mouseMove(t)}),this._panelNode.addEventListener("touchstart",this._fnStart=function(t){return e._touchStart(t)}),this._container.addEventListener("touchend",this._fnEnd=function(t){return e._touchEnd(t)}),this._container.addEventListener("touchmove",this._fnTMove=function(t){return e._touchMove(t)})},t.prototype._removeEvent=function(){this._container&&(this._container.removeEventListener("mouseup",this._fnUp),this._panelNode.removeEventListener("mousedown",this._fnDown),this._container.removeEventListener("mousemove",this._fnMove),this._container.removeEventListener("touchend",this._fnEnd),this._panelNode.removeEventListener("touchstart",this._fnStart),this._container.removeEventListener("touchmove",this._fnTMove))},t}(u5);class x5 extends K4{_opt;_type="BubbleGraphic";constructor(e){super(e),this._opt=new S5,this.parseJson(e)}getType(){return x5.type}static get type(){return"BubbleGraphic"}get bubbleType(){return this._opt.bubbleType}set bubbleType(e){this._opt.bubbleType=e}get panelOffset(){return this._opt.panelOffset}set panelOffset(e){this._opt.panelOffset=e,this.updateAttribute("panelOffset")}get bindObject(){return this._opt.bindObject}set bindObject(e){this._opt.bindObject=e,this.updateAttribute("bindObject")}get panelDom(){return this.getRenderObject()._panelNode}get lineDom(){return this.getRenderObject()._lineNode}get panelDrag(){return this._opt.panelDrag}set panelDrag(e){this._opt.panelDrag=e,this.updateAttribute("panelDrag")}init(e){if(super.init(e),this.father){let e=new w5(this,this.father.getRoot());this._getRenderObj=()=>e}}getRenderObject(){return this._getRenderObj()}}class S5 extends Z4{panelOffset={x:200,y:100};panelDrag=!0;bindObject;bubbleType=M5.FixedBubble;visible=!0}class M5{FixedBubble="fixedBubble";FollowBubble="followBubble"}Cu.A.registerType(x5,"BubbleGraphic");var P5=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),E5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P5(t,e),Object.defineProperty(t.prototype,"renderType",{get:function(){return l5.Entity},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=this,t=this._dataItem;this.getRenderPositions(),t.lineStyle instanceof o5&&t.lineStyle.setUpdate(function(t){e.updateAttribute(t)}),this.updateAttributeForEditing(),this._renderObj=this._renderRoot.add(this._originProps),this._renderObj.dataId=t.id,this._renderObj.dataName=t.name},t.prototype.update=function(){var e=this,t=this._dataItem;this._renderObj.show=t.renderVisible,this.getRenderPositions(),t.lineStyle instanceof o5&&t.lineStyle.setUpdate(function(t){e.updateAttribute(t)}),this._renderObj.polyline.material=t.lineStyle.getMaterial()},t.prototype.getRenderPositions=function(){var e,t;if(void 0!==(t="ParabolaLineGraphic"==this._dataItem.getType()?(e=this._dataItem).interpolation?e.getInterpolationCallback(e.positions):e.positions:(e=this._dataItem).getInterpolationCallback(e.positions)))return 0===t.length?(this._positions=[],this._positions):(t[0]instanceof Vu?this._positions=J4.getPositions(t):this._positions=t,this._positions)},t.prototype._dealResProps=function(e){var t=this;this._resProps||(this._resProps={});var i=this._dataItem;switch(e){case"positions":this._resProps[e]=this.getRenderPositions();break;case"width":this._resProps[e]=i.width;break;case"material":this._resProps[e]=i.lineStyle.getMaterial();break;case"clampToGround":this._resProps[e]=i.clampToGround;break;case"arcType":this._resProps[e]=i.arcType;break;default:return}this._renderObj&&(i.isEditing&&"material"!=e?this._renderObj.polyline[e]=new Cesium.CallbackProperty(function(){return t._resProps[e]},!1):this._renderObj.polyline[e]=this._resProps[e])},t.prototype.updateAttributeForEditing=function(){var e=this._dataItem;this._updateAllProp(),this._renderObj||(this._originProps={show:e.renderVisible,polyline:this._resProps})},t.prototype._updateAllProp=function(){for(var e=["positions","width","material","clampToGround","arcType"],t=0;t<e.length;t++)this._dealResProps(e[t])},t.prototype.updateAttribute=function(e){var t=this,i=this._dataItem;switch(e){case"visible":this._renderObj.show=this._dataItem.renderVisible;break;case"lineStyle":i.lineStyle instanceof o5&&i.lineStyle.setUpdate(function(e){t.updateAttribute(e)}),this._renderObj.polyline.material=i.lineStyle.getMaterial();break;case"isEditing":this.updateAttributeForEditing();break;default:this._updateAllProp()}},t}(u5),L5=__webpack_require__(6763);class T5 extends K4{_opt;_type="PolylineGraphic";_interpolationCallback;constructor(e){super(e),this._opt=new O5,this.parseJson(e)}getType(){return T5.type}static get type(){return"PolylineGraphic"}init(e){if(super.init(e),this.father){let e=new E5(this,this.father.getRoot());this._getRenderObj=()=>e}}set positions(e){this._opt.positions=e,this.updateAttribute("positions")}get positions(){return this._opt.positions}set arcType(e){this._opt.arcType!==e&&(this._opt.arcType=e,this.updateAttribute("arcType"))}get arcType(){return this._opt.arcType}set clampToGround(e){this._opt.clampToGround!==e&&(!0!==e||this.arcType!==D5.None?(this._opt.clampToGround=e,this.updateAttribute("clampToGround")):L5.warn(`id为${this.id}的PolylineGraphic对象贴地属性设置无效,当ArcType属性的参数为非ArcTypeEnum.None时才可设置`))}get clampToGround(){return this.arcType!==D5.None&&this._opt.clampToGround}set width(e){this._opt.width!==e&&(this._opt.width=e,this.updateAttribute("width"))}get width(){return this._opt.width}set dirty(e){this._opt.dirty=e}get dirty(){return this._opt.dirty}set lineStyle(e){this._opt.lineStyle=e,this.updateAttribute("lineStyle")}get lineStyle(){return this._opt.lineStyle}setInterpolationCallback(e){this._interpolationCallback=e}getInterpolationCallback(){return this._interpolationCallback?this._interpolationCallback(value):value}}class O5 extends Z4{lineStyle=new e5("#ffff00");positions;arcType=D5.Geodesic;clampToGround=!1;width;dirty=!1}class D5{Geodesic=Cesium.ArcType.GEODESIC;None=Cesium.ArcType.NONE;Rhumb=Cesium.ArcType.RHUMB}Cu.A.registerType(T5,"PolylineGraphic");const B5={Tileset:Kw.A,Terrain:N$,Imagery:a0,Model:m0,CameraVideo:C0,Viewshed:x0,ViewshedAnalysis:T0,Polygon:dM.A,Polyline:dx.A,Path:N0,Pin:Q0,ODLines:W0,Scanline:q0,FlattenedPolygonCollection:$0.A,ClippingPlane:e1.A,Points:sx.A,Coordinates:Mx,Circle:r1,Cylinder:s1,PlotBase:i1,GroundImage:u1,Water:p1,CustomPrimitive:ZS,CustomGroundRectangle:m1,HeatMap:w1,Forest:n2,DynamicPois:M2,Road:L2,Wall:N2,ClassificationPolygon:j2,Surface:Z2,CutSurface:e3,GeoJSON:n3,KML:s3,Czml:u3,Proxy:p3,NativeRender:_3,Plots:_4,Radar:W4,GraphicGroup:vu,DynamicItem:V4,ColorStyle:e5,ArrowStyle:t5,OutlineStyle:i5,DashStyle:n5,GlowStyle:r5,DynamicStyle:o5,DynamicIconEnum:s5,CircularGraphic:g5,LabelGraphic:v5,BubbleGraphic:x5,PolylineGraphic:T5,PolygonGraphic:p5};window.LACDT||(window.LACDT={});var I5={copyright:Gl,Core:P$,Engine:w$,Obj:B5,Scene:CC,SceneTree:PC,LayerMgr:rC,MVVM:AL,Tool:Ww,HTML:Ql.A,Mixins:uC,ready:tu,cso:void 0,csn:void 0};window.GVOL_BASE_URL||(window.GVOL_BASE_URL="./"),Object.assign(window.LACDT,I5)})(),__webpack_exports__})());
|